1 2018-09-12 John Baldwin <jhb@FreeBSD.org>
3 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
5 2018-09-12 John Baldwin <jhb@FreeBSD.org>
7 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
10 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
12 * common/common-utils.c: Don't include '<sys/stat.h>'.
13 (is_regular_file): Move to...
14 * common/filestuff.c (is_regular_file): ... here.
15 * common/common-utils.h (is_regular_file): Move to...
16 * common/filestuff.h (is_regular_file): ... here.
18 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
20 * skip.c (debug_skip): New variable.
21 (skiplist_entry::do_skip_file_p): Add debug output.
22 (skiplist_entry::do_skip_gfile_p): Likewise.
23 (skiplist_entry::skip_function_p): Likewise.
24 (_initialize_step_skip): Create debug command.
25 * NEWS: Mention set/show debug skip.
27 2018-09-11 Xavier Roirand <roirand@adacore.com>
29 * darwin-nat.c (should_disable_startup_with_shell):
31 (darwin_nat_target::create_inferior): Add call.
33 2018-09-11 Xavier Roirand <roirand@adacore.com>
35 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
36 inf_port, msg_state>: Initialize.
37 (struct darwin_thread_info) <signaled, single_step>: Change
39 (struct darwin_thread_info) <event>: Initialize.
41 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
45 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
48 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
51 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
55 * gnulib/aclocal.m4: Regenerate.
56 * gnulib/config.in: Regenerate.
57 * gnulib/configure: Regenerate.
58 * gnulib/import/Makefile.am: Update.
59 * gnulib/import/Makefile.in: Update.
60 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
61 * gnulib/import/_Noreturn.h: ... this.
62 * gnulib/import/alloca.in.h: Update.
63 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
64 * gnulib/import/arg-nonnull.h: ... this.
65 * gnulib/import/assure.h: Update.
66 * gnulib/import/at-func.c: Update.
67 * gnulib/import/basename-lgpl.c: Update.
68 * gnulib/import/extra/snippet/c++defs.h: Rename to...
69 * gnulib/import/c++defs.h: ... this.
70 * gnulib/import/canonicalize-lgpl.c: Update.
71 * gnulib/import/cdefs.h: Update.
72 * gnulib/import/chdir-long.c: Update.
73 * gnulib/import/chdir-long.h: Update.
74 * gnulib/import/cloexec.c: Update.
75 * gnulib/import/cloexec.h: Update.
76 * gnulib/import/close.c: Update.
77 * gnulib/import/closedir.c: Update.
78 * gnulib/import/config.charset: Update.
79 * gnulib/import/dirent-private.h: Update.
80 * gnulib/import/dirent.in.h: Update.
81 * gnulib/import/dirfd.c: Update.
82 * gnulib/import/dirname-lgpl.c: Update.
83 * gnulib/import/dirname.h: Update.
84 * gnulib/import/dosname.h: Update.
85 * gnulib/import/dup-safer-flag.c: Update.
86 * gnulib/import/dup-safer.c: Update.
87 * gnulib/import/dup.c: Update.
88 * gnulib/import/dup2.c: Update.
89 * gnulib/import/errno.in.h: Update.
90 * gnulib/import/error.c: Update.
91 * gnulib/import/error.h: Update.
92 * gnulib/import/exitfail.c: Update.
93 * gnulib/import/exitfail.h: Update.
94 * gnulib/import/extra/update-copyright: Update.
95 * gnulib/import/fchdir.c: Update.
96 * gnulib/import/fcntl.c: Update.
97 * gnulib/import/fcntl.in.h: Update.
98 * gnulib/import/fd-hook.c: Update.
99 * gnulib/import/fd-hook.h: Update.
100 * gnulib/import/fd-safer-flag.c: Update.
101 * gnulib/import/fd-safer.c: Update.
102 * gnulib/import/fdopendir.c: Update.
103 * gnulib/import/filename.h: Update.
104 * gnulib/import/filenamecat-lgpl.c: Update.
105 * gnulib/import/filenamecat.h: Update.
106 * gnulib/import/flexmember.h: Update.
107 * gnulib/import/float+.h: Update.
108 * gnulib/import/float.c: Update.
109 * gnulib/import/float.in.h: Update.
110 * gnulib/import/fnmatch.c: Update.
111 * gnulib/import/fnmatch.in.h: Update.
112 * gnulib/import/fnmatch_loop.c: Update.
113 * gnulib/import/fpucw.h: Update.
114 * gnulib/import/frexp.c: Update.
115 * gnulib/import/frexpl.c: Update.
116 * gnulib/import/fstat.c: Update.
117 * gnulib/import/fstatat.c: Update.
118 * gnulib/import/getcwd-lgpl.c: Update.
119 * gnulib/import/getcwd.c: Update.
120 * gnulib/import/getdtablesize.c: Update.
121 * gnulib/import/getlogin_r.c: Update.
122 * gnulib/import/getprogname.c: Update.
123 * gnulib/import/getprogname.h: Update.
124 * gnulib/import/gettext.h: Update.
125 * gnulib/import/gettimeofday.c: Update.
126 * gnulib/import/glob-libc.h: Update.
127 * gnulib/import/glob.c: Update.
128 * gnulib/import/glob.in.h: Update.
129 * gnulib/import/glob_internal.h: Update.
130 * gnulib/import/glob_pattern_p.c: Update.
131 * gnulib/import/globfree.c: Update.
132 * gnulib/import/hard-locale.c: Update.
133 * gnulib/import/hard-locale.h: Update.
134 * gnulib/import/intprops.h: Update.
135 * gnulib/import/inttypes.in.h: Update.
136 * gnulib/import/isnan.c: Update.
137 * gnulib/import/isnand-nolibm.h: Update.
138 * gnulib/import/isnand.c: Update.
139 * gnulib/import/isnanl-nolibm.h: Update.
140 * gnulib/import/isnanl.c: Update.
141 * gnulib/import/itold.c: Update.
142 * gnulib/import/libc-config.h: Update.
143 * gnulib/import/limits.in.h: Update.
144 * gnulib/import/localcharset.c: Update.
145 * gnulib/import/localcharset.h: Update.
146 * gnulib/import/localtime-buffer.c: Update.
147 * gnulib/import/localtime-buffer.h: Update.
148 * gnulib/import/lstat.c: Update.
149 * gnulib/import/m4/00gnulib.m4: Update.
150 * gnulib/import/m4/__inline.m4: Update.
151 * gnulib/import/m4/absolute-header.m4: Update.
152 * gnulib/import/m4/alloca.m4: Update.
153 * gnulib/import/m4/builtin-expect.m4: Update.
154 * gnulib/import/m4/canonicalize.m4: Update.
155 * gnulib/import/m4/chdir-long.m4: Update.
156 * gnulib/import/m4/close.m4: Update.
157 * gnulib/import/m4/closedir.m4: Update.
158 * gnulib/import/m4/configmake.m4: Update.
159 * gnulib/import/m4/d-ino.m4: Update.
160 * gnulib/import/m4/d-type.m4: Update.
161 * gnulib/import/m4/dirent_h.m4: Update.
162 * gnulib/import/m4/dirfd.m4: Update.
163 * gnulib/import/m4/dirname.m4: Update.
164 * gnulib/import/m4/double-slash-root.m4: Update.
165 * gnulib/import/m4/dup.m4: Update.
166 * gnulib/import/m4/dup2.m4: Update.
167 * gnulib/import/m4/eealloc.m4: Update.
168 * gnulib/import/m4/environ.m4: Update.
169 * gnulib/import/m4/errno_h.m4: Update.
170 * gnulib/import/m4/error.m4: Update.
171 * gnulib/import/m4/exponentd.m4: Update.
172 * gnulib/import/m4/exponentl.m4: Update.
173 * gnulib/import/m4/extensions.m4: Update.
174 * gnulib/import/m4/extern-inline.m4: Update.
175 * gnulib/import/m4/fchdir.m4: Update.
176 * gnulib/import/m4/fcntl-o.m4: Update.
177 * gnulib/import/m4/fcntl.m4: Update.
178 * gnulib/import/m4/fcntl_h.m4: Update.
179 * gnulib/import/m4/fdopendir.m4: Update.
180 * gnulib/import/m4/filenamecat.m4: Update.
181 * gnulib/import/m4/flexmember.m4: Update.
182 * gnulib/import/m4/float_h.m4: Update.
183 * gnulib/import/m4/fnmatch.m4: Update.
184 * gnulib/import/m4/fnmatch_h.m4: Update.
185 * gnulib/import/m4/fpieee.m4: Update.
186 * gnulib/import/m4/frexp.m4: Update.
187 * gnulib/import/m4/frexpl.m4: Update.
188 * gnulib/import/m4/fstat.m4: Update.
189 * gnulib/import/m4/fstatat.m4: Update.
190 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
191 * gnulib/import/m4/getcwd-path-max.m4: Update.
192 * gnulib/import/m4/getcwd.m4: Update.
193 * gnulib/import/m4/getdtablesize.m4: Update.
194 * gnulib/import/m4/getlogin.m4: Update.
195 * gnulib/import/m4/getlogin_r.m4: Update.
196 * gnulib/import/m4/getpagesize.m4: Update.
197 * gnulib/import/m4/getprogname.m4: Update.
198 * gnulib/import/m4/gettimeofday.m4: Update.
199 * gnulib/import/m4/glibc21.m4: Update.
200 * gnulib/import/m4/glob.m4: Update.
201 * gnulib/import/m4/glob_h.m4: Update.
202 * gnulib/import/m4/gnulib-cache.m4: Update.
203 * gnulib/import/m4/gnulib-common.m4: Update.
204 * gnulib/import/m4/gnulib-comp.m4: Update.
205 * gnulib/import/m4/gnulib-tool.m4: Update.
206 * gnulib/import/m4/hard-locale.m4: Update.
207 * gnulib/import/m4/include_next.m4: Update.
208 * gnulib/import/m4/inttypes-pri.m4: Update.
209 * gnulib/import/m4/inttypes.m4: Update.
210 * gnulib/import/m4/isnand.m4: Update.
211 * gnulib/import/m4/isnanl.m4: Update.
212 * gnulib/import/m4/largefile.m4: Update.
213 * gnulib/import/m4/limits-h.m4: Update.
214 * gnulib/import/m4/localcharset.m4: Update.
215 * gnulib/import/m4/locale-fr.m4: Update.
216 * gnulib/import/m4/locale-ja.m4: Update.
217 * gnulib/import/m4/locale-zh.m4: Update.
218 * gnulib/import/m4/localtime-buffer.m4: Update.
219 * gnulib/import/m4/longlong.m4: Update.
220 * gnulib/import/m4/lstat.m4: Update.
221 * gnulib/import/m4/malloc.m4: Update.
222 * gnulib/import/m4/malloca.m4: Update.
223 * gnulib/import/m4/math_h.m4: Update.
224 * gnulib/import/m4/mbrtowc.m4: Update.
225 * gnulib/import/m4/mbsinit.m4: Update.
226 * gnulib/import/m4/mbsrtowcs.m4: Update.
227 * gnulib/import/m4/mbstate_t.m4: Update.
228 * gnulib/import/m4/memchr.m4: Update.
229 * gnulib/import/m4/memmem.m4: Update.
230 * gnulib/import/m4/mempcpy.m4: Update.
231 * gnulib/import/m4/memrchr.m4: Update.
232 * gnulib/import/m4/mkdir.m4: Update.
233 * gnulib/import/m4/mkstemp.m4: Update.
234 * gnulib/import/m4/mmap-anon.m4: Update.
235 * gnulib/import/m4/mode_t.m4: Update.
236 * gnulib/import/m4/msvc-inval.m4: Update.
237 * gnulib/import/m4/msvc-nothrow.m4: Update.
238 * gnulib/import/m4/multiarch.m4: Update.
239 * gnulib/import/m4/nocrash.m4: Update.
240 * gnulib/import/m4/off_t.m4: Update.
241 * gnulib/import/m4/onceonly.m4: Update.
242 * gnulib/import/m4/open-cloexec.m4: Update.
243 * gnulib/import/m4/open.m4: Update.
244 * gnulib/import/m4/openat.m4: Update.
245 * gnulib/import/m4/opendir.m4: Update.
246 * gnulib/import/m4/pathmax.m4: Update.
247 * gnulib/import/m4/rawmemchr.m4: Update.
248 * gnulib/import/m4/readdir.m4: Update.
249 * gnulib/import/m4/readlink.m4: Update.
250 * gnulib/import/m4/realloc.m4: Update.
251 * gnulib/import/m4/rename.m4: Update.
252 * gnulib/import/m4/rewinddir.m4: Update.
253 * gnulib/import/m4/rmdir.m4: Update.
254 * gnulib/import/m4/save-cwd.m4: Update.
255 * gnulib/import/m4/secure_getenv.m4: Update.
256 * gnulib/import/m4/setenv.m4: Update.
257 * gnulib/import/m4/signal_h.m4: Update.
258 * gnulib/import/m4/ssize_t.m4: Update.
259 * gnulib/import/m4/stat-time.m4: Update.
260 * gnulib/import/m4/stat.m4: Update.
261 * gnulib/import/m4/std-gnu11.m4: Update.
262 * gnulib/import/m4/stdbool.m4: Update.
263 * gnulib/import/m4/stddef_h.m4: Update.
264 * gnulib/import/m4/stdint.m4: Update.
265 * gnulib/import/m4/stdio_h.m4: Update.
266 * gnulib/import/m4/stdlib_h.m4: Update.
267 * gnulib/import/m4/strchrnul.m4: Update.
268 * gnulib/import/m4/strdup.m4: Update.
269 * gnulib/import/m4/strerror.m4: Update.
270 * gnulib/import/m4/string_h.m4: Update.
271 * gnulib/import/m4/strstr.m4: Update.
272 * gnulib/import/m4/strtok_r.m4: Update.
273 * gnulib/import/m4/sys_socket_h.m4: Update.
274 * gnulib/import/m4/sys_stat_h.m4: Update.
275 * gnulib/import/m4/sys_time_h.m4: Update.
276 * gnulib/import/m4/sys_types_h.m4: Update.
277 * gnulib/import/m4/tempname.m4: Update.
278 * gnulib/import/m4/time_h.m4: Update.
279 * gnulib/import/m4/unistd-safer.m4: Update.
280 * gnulib/import/m4/unistd_h.m4: Update.
281 * gnulib/import/m4/warn-on-use.m4: Update.
282 * gnulib/import/m4/wchar_h.m4: Update.
283 * gnulib/import/m4/wchar_t.m4: Update.
284 * gnulib/import/m4/wctype_h.m4: Update.
285 * gnulib/import/m4/wint_t.m4: Update.
286 * gnulib/import/malloc.c: Update.
287 * gnulib/import/malloc/scratch_buffer.h: Update.
288 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
289 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
290 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
291 * gnulib/import/malloca.c: Update.
292 * gnulib/import/malloca.h: Update.
293 * gnulib/import/malloca.valgrind: Update.
294 * gnulib/import/math.in.h: Update.
295 * gnulib/import/mbrtowc.c: Update.
296 * gnulib/import/mbsinit.c: Update.
297 * gnulib/import/mbsrtowcs-impl.h: Update.
298 * gnulib/import/mbsrtowcs-state.c: Update.
299 * gnulib/import/mbsrtowcs.c: Update.
300 * gnulib/import/memchr.c: Update.
301 * gnulib/import/memmem.c: Update.
302 * gnulib/import/mempcpy.c: Update.
303 * gnulib/import/memrchr.c: Update.
304 * gnulib/import/mkdir.c: Update.
305 * gnulib/import/mkstemp.c: Update.
306 * gnulib/import/msvc-inval.c: Update.
307 * gnulib/import/msvc-inval.h: Update.
308 * gnulib/import/msvc-nothrow.c: Update.
309 * gnulib/import/msvc-nothrow.h: Update.
310 * gnulib/import/open.c: Update.
311 * gnulib/import/openat-die.c: Update.
312 * gnulib/import/openat-priv.h: Update.
313 * gnulib/import/openat-proc.c: Update.
314 * gnulib/import/openat.c: Update.
315 * gnulib/import/openat.h: Update.
316 * gnulib/import/opendir.c: Update.
317 * gnulib/import/pathmax.h: Update.
318 * gnulib/import/pipe-safer.c: Update.
319 * gnulib/import/rawmemchr.c: Update.
320 * gnulib/import/readdir.c: Update.
321 * gnulib/import/readlink.c: Update.
322 * gnulib/import/realloc.c: Update.
323 * gnulib/import/ref-add.sin: Update.
324 * gnulib/import/ref-del.sin: Update.
325 * gnulib/import/rename.c: Update.
326 * gnulib/import/rewinddir.c: Update.
327 * gnulib/import/rmdir.c: Update.
328 * gnulib/import/same-inode.h: Update.
329 * gnulib/import/save-cwd.c: Update.
330 * gnulib/import/save-cwd.h: Update.
331 * gnulib/import/scratch_buffer.h: Update.
332 * gnulib/import/secure_getenv.c: Update.
333 * gnulib/import/setenv.c: Update.
334 * gnulib/import/signal.in.h: Update.
335 * gnulib/import/stat-time.c: Update.
336 * gnulib/import/stat-time.h: Update.
337 * gnulib/import/stat-w32.c: Update.
338 * gnulib/import/stat-w32.h: Update.
339 * gnulib/import/stat.c: Update.
340 * gnulib/import/stdbool.in.h: Update.
341 * gnulib/import/stddef.in.h: Update.
342 * gnulib/import/stdint.in.h: Update.
343 * gnulib/import/stdio.in.h: Update.
344 * gnulib/import/stdlib.in.h: Update.
345 * gnulib/import/str-two-way.h: Update.
346 * gnulib/import/strchrnul.c: Update.
347 * gnulib/import/strdup.c: Update.
348 * gnulib/import/streq.h: Update.
349 * gnulib/import/strerror-override.c: Update.
350 * gnulib/import/strerror-override.h: Update.
351 * gnulib/import/strerror.c: Update.
352 * gnulib/import/string.in.h: Update.
353 * gnulib/import/stripslash.c: Update.
354 * gnulib/import/strnlen1.c: Update.
355 * gnulib/import/strnlen1.h: Update.
356 * gnulib/import/strstr.c: Update.
357 * gnulib/import/strtok_r.c: Update.
358 * gnulib/import/sys_stat.in.h: Update.
359 * gnulib/import/sys_time.in.h: Update.
360 * gnulib/import/sys_types.in.h: Update.
361 * gnulib/import/tempname.c: Update.
362 * gnulib/import/tempname.h: Update.
363 * gnulib/import/time.in.h: Update.
364 * gnulib/import/unistd--.h: Update.
365 * gnulib/import/unistd-safer.h: Update.
366 * gnulib/import/unistd.in.h: Update.
367 * gnulib/import/unsetenv.c: Update.
368 * gnulib/import/verify.h: Update.
369 * gnulib/import/extra/snippet/warn-on-use.h: Update.
370 * gnulib/import/wchar.in.h: Update.
371 * gnulib/import/wctype.in.h: Update.
372 * gnulib/import/xalloc-oversized.h: Update.
373 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
374 "53e2c179f26a890fa6685af4b6c1397ee370433b".
376 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
378 * record-btrace.c (get_thread_current_frame): Remove
381 2018-09-10 Jerome Guitton <guitton@adacore.com>
383 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
384 with check_tag to 1 if and only if the type is tagged and the
385 component being searched cannot been found in the current
386 view. Otherwise, always call ada_to_fixed_type with
389 2018-09-10 Xavier Roirand <roirand@adacore.com>
391 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
393 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
394 * ada-varobj.c (ada_varobj_get_number_of_children,
395 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
397 2018-09-10 Xavier Roirand <roirand@adacore.com>
399 * ada-valprint.c (ada_value_print): Use type instead of
402 2018-09-10 Xavier Roirand <roirand@adacore.com>
404 * ada-lang.c (ada_value_subscript): Handle case when parameter is
405 an array of access to unconstrained array.
407 2018-09-10 Xavier Roirand <roirand@adacore.com>
409 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
410 (ada_check_typedef): Use it.
412 2018-09-10 Xavier Roirand <roirand@adacore.com>
414 * ada-varobj.c (ada_varobj_describe_struct_child)
415 (ada_varobj_describe_child): Handle union case like struct one.
417 2018-09-10 Tom Tromey <tom@tromey.com>
420 * python/python.c (_initialize_python): Make example in "python"
421 help work in Python 3.
423 2018-09-10 Eli Zaretskii <eliz@gnu.org>
425 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
426 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
427 $(EXEEXT) to the script, as it is not a program.
429 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
431 * python/py-prettyprint.c (pretty_print_one_value): Return
433 (print_string_repr): Adjust.
434 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
435 * python/python-internal.h (apply_varobj_pretty_printer): Return
437 * varobj.c (varobj_value_get_print_value): Adjust.
439 2018-09-08 Tom Tromey <tom@tromey.com>
442 * python/py-prettyprint.c (pretty_print_one_value): Check for
445 2018-09-08 Joel Brobecker <brobecker@adacore.com>
447 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
448 replace_operator_with_call.
450 2018-09-08 Joel Brobecker <brobecker@adacore.com>
452 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
454 2018-09-08 Joel Brobecker <brobecker@adacore.com>
456 * ada-typeprint.c (print_range): Print the bounds using TYPE
457 rather than its TYPE_TARGET_TYPE.
459 2018-09-08 Joel Brobecker <brobecker@adacore.com>
461 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
462 call to ada_to_fixed_value_create.
464 2018-09-08 Jerome Guitton <guitton@adacore.com>
466 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
468 2018-09-08 Joel Brobecker <brobecker@adacore.com>
470 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
473 2018-09-08 Joel Brobecker <brobecker@adacore.com>
475 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
476 Move update of loop variable "fi".
478 2018-09-08 Joel Brobecker <brobecker@adacore.com>
480 * ada-lang.c (value_assign_to_component): In the case of
481 big-endian targets, extract the bits of the given VAL
482 using an src_offset of zero if container is not a scalar.
484 2018-09-06 Simon Ser <contact@emersion.fr>
487 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
488 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
489 * fbsd-tdep.c (fbsd_make_note_desc): New.
490 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
491 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
492 * target.h (enum target_object) Add FreeBSD-specific
493 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
495 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
497 * compile/compile-c.h (generate_c_for_variable_locations):
498 Change reference to pointer.
499 * compile/compile-c-support.c (compile_program) <compute>:
501 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
502 (generate_c_for_for_one_variable): Likewise
503 (generate_c_for_variable_locations): Likewise
504 * compile/compile-c-types.c (compile_c_instance::convert_type):
506 * compile/compile-cplus-symbols.c (convert_one_symbol):
507 std::move the scope passed to enter_scope.
508 * compile/compile-cplus-types.c
509 (compile_cplus_instance::enter_scope): Make parameter
511 (compile_cplus_instance::new_scope): Change reference to
513 (compile_cplus_instance::convert_type): Likewise
514 (compile_cplus_convert_typedef): std::move the scope passed to
516 (compile_cplus_convert_struct_or_union): Likewise.
517 (compile_cplus_convert_enum): Likewise.
518 (compile_cplus_convert_namespace): Likewise.
519 * compile/compile-cplus.h (compile_cplus_instance)
520 <enter_scope>: Make parameter rvalue-reference.
521 * compile/compile-internal.h (compile_instance)
522 <get_cached_type>: Likewise
523 * compile/compile-loc2c.c (push): Likewise
527 (print_label): Likewise
528 (pushf_register_address): Likewise
529 (pushf_register): Likewise
530 (do_compile_dwarf_expr_to_c): Likewise
531 (compile_dwarf_expr_to_c): Likewise
532 (compile_dwarf_bounds_to_c): Likewise
533 * compile/compile.c (compile_instance::get_cached_type):
535 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
536 (compile_dwarf_bounds_to_c): Likewise
537 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
538 (dwarf2_compile_property_to_c): Likewise
539 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
540 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
543 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
545 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
546 * tui/tui-data.c (init_content_element): Don't initialize it.
548 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
550 * tui/tui-data.h (struct tui_win_info)
551 <detail::opaque>: Remove.
552 * tui/tui-data.c (init_win_info): Remove assignment.
554 2018-09-05 Tom Tromey <tom@tromey.com>
556 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
558 * target-float.c (host_float_ops<T>::to_string)
559 (host_float_ops<T>::from_string): Use
560 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
561 * configure: Rebuild.
563 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
565 * printcmd.c (printf_c_string): Use
566 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
567 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
569 2018-09-05 Tom Tromey <tom@tromey.com>
571 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
573 2018-09-05 Tom de Vries <tdevries@suse.de>
575 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
576 with resolve_abstract_p == true.
577 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
578 defaulting to false. Propagate resolve_abstract_p to
579 dwarf2_fetch_die_loc_sect_off.
580 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
581 parameter, defaulting to false.
582 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
583 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
585 * dwarf2read.h (struct die_info): Forward-declare.
586 (die_info_ptr): New typedef.
587 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
589 2018-09-05 Joel Brobecker <brobecker@adacore.com>
593 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
594 Pedro Alves <palves@redhat.com>
596 * gnulib/Makefile.in (aclocal_m4_deps): Move to
597 "aclocal-m4-deps.mk". Include file here.
598 $(srcdir)/aclocal.m4: Add "configure.ac".
599 * gnulib/aclocal-m4-deps.mk: New file.
600 * gnulib/update-gnulib.sh: Automatically update
601 "aclocal-m4-deps.mk".
603 2018-09-04 Tom Tromey <tom@tromey.com>
605 * configure: Rebuild.
606 * configure.ac: Remove multi-ice code.
608 2018-09-04 Tom Tromey <tom@tromey.com>
610 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
613 2018-09-04 Tom Tromey <tom@tromey.com>
615 * Makefile.in (printcmd.o, target-float.o): Remove.
616 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
618 2018-09-04 Tom Tromey <tom@tromey.com>
620 * gnulib/Makefile.in: Remove obsolete comment.
621 * Makefile.in: Remove obsolete comment.
623 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
625 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
628 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
630 * riscv-tdep.c: Add 'prologue-value.h' include.
631 (struct riscv_unwind_cache): New struct.
632 (riscv_debug_unwinder): New global.
633 (riscv_scan_prologue): Update arguments, capture register details
635 (riscv_skip_prologue): Reformat arguments line, move end of
636 prologue calculation into riscv_scan_prologue.
637 (riscv_frame_cache): Update return type, create
638 riscv_unwind_cache, scan the prologue, and fill in remaining cache
640 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
641 (riscv_frame_prev_register): Use the trad_frame within the
643 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
646 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
648 * trad-frame.h (trad_frame_set_realreg): Declare.
649 (trad_frame_set_addr): Declare.
650 * trad-frame.c (trad_frame_set_realreg): Define new function.
651 (trad_frame_set_addr): Define new function.
652 (trad_frame_set_reg_realreg): Use new function.
653 (trad_frame_set_reg_addr): Use new function.
655 2018-09-01 Keith Seitz <keiths@redhat.com>
657 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
658 pulongest instead of "%lld".
659 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
662 2018-08-31 Tom Tromey <tom@tromey.com>
664 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
667 2018-08-31 Pedro Alves <palves@redhat.com>
669 * gdbarch.h: Regenerate.
671 2018-08-31 Pedro Alves <palves@redhat.com>
673 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
674 * target.h (Hardware watchpoint interfaces): Describe
675 continuable/steppable/non-steppable watchpoints.
676 * gdbarch.h, gdbarch.c: Regenerate.
678 2018-08-31 Pedro Alves <palves@redhat.com>
680 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
683 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
684 * target.h (target_ops::have_continuable_watchpoint): Delete.
685 (target_have_continuable_watchpoint): Delete.
686 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
687 * target-delegates.c: Regenerate.
689 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
691 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
692 the files present in "gnulib/import/m4/".
694 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
696 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
697 c.sw, c.swsp, and c.sdsp.
699 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
701 * riscv-tdep.c (struct riscv_inferior_data): Delete.
702 (riscv_read_misa_reg): Don't cache value read into inferior data.
703 (riscv_new_inferior_data): Delete.
704 (riscv_inferior_data_cleanup): Delete.
705 (riscv_inferior_data): Delete.
706 (riscv_invalidate_inferior_data): Delete.
707 (_initialize_riscv_tdep): Remove initialisation of inferior data.
709 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
711 * compile/compile-cplus-types.c
712 (compile_cplus_instance::leave_scope): Take the address of scope
714 (compile_cplus_instance::convert_qualified_base): Compare quals
717 2018-08-30 Keith Seitz <keiths@redhat.com>
719 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
720 Use "%s" and host_address_to_string instead of "%p" in printf.
722 2018-08-29 Keith Seitz <keiths@redhat.com>
724 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
725 and compile-cplus-types.c.
726 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
727 * c-lang.c (cplus_language_defn): Set C++ compile functions.
728 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
730 * compile/compile-c-support.c: Include compile-cplus.h.
731 (load_libcompile): Templatize.
732 (get_compile_context): "New" function.
733 (c_get_compile_context): Use get_compile_context.
734 (cplus_get_compile_context): New function.
735 (cplus_push_user_expression, cplus_pop_user_expression)
736 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
737 (cplus_compute_program): Define new structs/functions.
738 * compile/compile-cplus-symmbols.c: New file.
739 * compile/compile-cplus-types.c: New file.
740 * compile/compile-cplus.h: New file.
741 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
743 * compile/compile-object-load.c (get_out_value_type): Use
744 strncmp_iw when comparing symbol names.
745 (compile_object_load): Add mst_bss and mst_data.
746 * compile/compile.c (_initialize_compile): Remove
747 -Wno-implicit-function-declaration from `compile_args'.
748 * compile/gcc-cp-plugin.h: New file.
749 * NEWS: Mention C++ compile support and new debug options.
751 2018-08-29 Keith Seitz <keiths@redhat.com>
753 * linespec.c (collect_info::add_symbol): Make virtual.
754 (struct symbol_searcher_collect_info): New struct.
755 (symbol_searcher::find_all_symbols): New method.
756 * symtab.h (class symbol_searcher): New class.
758 2018-08-29 Keith Seitz <keiths@redhat.com>
760 * linespec.c (struct linespec) <function_symbols, label_symbols>:
761 Change to vector of block_symbol. Update all users.
762 (struct collect_info) <symbols>: Likewise.
763 (collect_info::add_symbol): Take block_symbol as argument.
765 (decode_compound_collector) <m_symbols>: Change type to vector
766 of block_symbol. Update all users.
767 (decode_compound_collector::operator ()): Change parameter type
769 (find_method, find_function_symbols, find_linespec_symbols)
770 (find_label_symbols_in_block, find_label_symbols): Change symbol
771 vectors to block_symbol vectors.
772 * symtab.h (symbol_found_callback_ftype): Change parameter type to
775 2018-08-29 Keith Seitz <keiths@redhat.com>
777 * linespec.c (symbolp): Remove typedef and VEC definitions.
778 (bound_minimal_symbol_d): Likewise.
780 2018-08-29 Keith Seitz <keiths@redhat.com>
782 * linespec.c (decode_compound_collector::decode_compound_collector):
783 Remove initialization for `m_symtabs'.
784 (decode_compound_collector::release_symbols): Change return type
785 to std::vector. Update all callers.
786 (class decode_compound_collector) <m_symbols>: Change type to
788 (lookup_prefix_sym): Change return type to std::vector. Update all
790 (compare_symbols): Remove.
791 (std_compare_symbols): Rename to `compare_symbols'.
792 (find_method): Change `sym_classes' parameter to std::vector.
793 Update all callers. Use std::sort to sort sym_classes.
794 (find_linespec_symbols): Remove cleanup.
796 2018-08-29 Keith Seitz <keiths@redhat.com>
798 * linespec.c (struct linespec) <minimal_symbols>: Change type to
799 std::vector. Update all users.
800 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
801 (struct collect_info) <minimal_symbols>: Likewise.
802 (compare_msymbols): Return bool. Change parameters to const
803 bound_minimal_symbol references.
804 (find_method, find_function_symbols, find_linespec_symbols): Change
805 `minsyms' parameter to std::vector. Update all callers.
807 2018-08-29 Keith Seitz <keiths@redhat.com>
809 * linespec.c (struct linespec) <label_symbols>: Change type to
810 std::vector. Update all users.
811 (find_label_symbols_in_block): Change `result' parameter to
812 std::vector. Update all callers.
813 (find_label_symbols): Return std::vector. Update all callers.
815 2018-08-29 Keith Seitz <keiths@redhat.com>
817 * linespec.c (struct linespec) <function_symbols>: Change type to
818 std::vector. Update all users.
819 (struct collect_info) <function_symbols>: Likewise.
820 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
821 (std_compare_symbols): New function.
822 (find_method, find_function_symbols, find_linespec_symbols)
823 (find_label_symbols_in_block): Change `symbols' parameter to
824 std::vector. Update all callers.
825 (find_label_symbols): Likewise for `function_symbols' and
828 2018-08-29 Keith Seitz <keiths@redhat.com>
830 * linespec.c (symtab_vector_up): Define.
831 (struct linespec) <file_symtabs>: Change type to std::vector *.
833 (struct collect_info) <file_symtabs>: Likewise.
834 (collect_symtabs_from_filename): Return symtab_vector_up.
836 (decode_objc): Remove cleanup.
837 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
838 (symtab_collector::release_symtabs): Return symtab_vector_up.
840 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
842 (collect_symtabs_from_filename, symtabs_from_filename): Return
843 symtab_vector_up. Update all callers.
845 2018-08-29 Tom Tromey <tom@tromey.com>
847 * csky-tdep.c (csky_analyze_prologue): Use
848 core_addr_to_string_nz.
850 2018-08-29 Tom Tromey <tom@tromey.com>
852 * windows-nat.c (struct xlate_exception) <them>: Change type to
854 (xlate): Fix formatting. Remove last entry.
855 (struct xlate_exception, xlate): Comment out.
856 (windows_nat_target::resume): Use ranged for.
858 2018-08-29 Jim Wilson <jimw@sifive.com>
860 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
861 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
863 (riscv_linux_nat_target::store_registers): Likewise.
865 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
869 * gnulib/aclocal.m4: Regenerate.
870 * gnulib/config.in: Regenerate.
871 * gnulib/configure: Regenerate.
872 * gnulib/import/Makefile.am: Update.
873 * gnulib/import/Makefile.in: Update.
874 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
875 * gnulib/import/_Noreturn.h: ... this.
876 * gnulib/import/alloca.in.h: Update.
877 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
878 * gnulib/import/arg-nonnull.h: ... this.
879 * gnulib/import/assure.h: Update.
880 * gnulib/import/at-func.c: Update.
881 * gnulib/import/basename-lgpl.c: Update.
882 * gnulib/import/extra/snippet/c++defs.h: Rename to...
883 * gnulib/import/c++defs.h: ... this.
884 * gnulib/import/canonicalize-lgpl.c: Update.
885 * gnulib/import/cdefs.h: Update.
886 * gnulib/import/chdir-long.c: Update.
887 * gnulib/import/chdir-long.h: Update.
888 * gnulib/import/cloexec.c: Update.
889 * gnulib/import/cloexec.h: Update.
890 * gnulib/import/close.c: Update.
891 * gnulib/import/closedir.c: Update.
892 * gnulib/import/config.charset: Update.
893 * gnulib/import/dirent-private.h: Update.
894 * gnulib/import/dirent.in.h: Update.
895 * gnulib/import/dirfd.c: Update.
896 * gnulib/import/dirname-lgpl.c: Update.
897 * gnulib/import/dirname.h: Update.
898 * gnulib/import/dosname.h: Update.
899 * gnulib/import/dup-safer-flag.c: Update.
900 * gnulib/import/dup-safer.c: Update.
901 * gnulib/import/dup.c: Update.
902 * gnulib/import/dup2.c: Update.
903 * gnulib/import/errno.in.h: Update.
904 * gnulib/import/error.c: Update.
905 * gnulib/import/error.h: Update.
906 * gnulib/import/exitfail.c: Update.
907 * gnulib/import/exitfail.h: Update.
908 * gnulib/import/extra/update-copyright: Update.
909 * gnulib/import/fchdir.c: Update.
910 * gnulib/import/fcntl.c: Update.
911 * gnulib/import/fcntl.in.h: Update.
912 * gnulib/import/fd-hook.c: Update.
913 * gnulib/import/fd-hook.h: Update.
914 * gnulib/import/fd-safer-flag.c: Update.
915 * gnulib/import/fd-safer.c: Update.
916 * gnulib/import/fdopendir.c: Update.
917 * gnulib/import/filename.h: Update.
918 * gnulib/import/filenamecat-lgpl.c: Update.
919 * gnulib/import/filenamecat.h: Update.
920 * gnulib/import/flexmember.h: Update.
921 * gnulib/import/float+.h: Update.
922 * gnulib/import/float.c: Update.
923 * gnulib/import/float.in.h: Update.
924 * gnulib/import/fnmatch.c: Update.
925 * gnulib/import/fnmatch.in.h: Update.
926 * gnulib/import/fnmatch_loop.c: Update.
927 * gnulib/import/fpucw.h: Update.
928 * gnulib/import/frexp.c: Update.
929 * gnulib/import/frexpl.c: Update.
930 * gnulib/import/fstat.c: Update.
931 * gnulib/import/fstatat.c: Update.
932 * gnulib/import/getcwd-lgpl.c: Update.
933 * gnulib/import/getcwd.c: Update.
934 * gnulib/import/getdtablesize.c: Update.
935 * gnulib/import/getlogin_r.c: Update.
936 * gnulib/import/getprogname.c: Update.
937 * gnulib/import/getprogname.h: Update.
938 * gnulib/import/gettext.h: Update.
939 * gnulib/import/gettimeofday.c: Update.
940 * gnulib/import/glob-libc.h: Update.
941 * gnulib/import/glob.c: Update.
942 * gnulib/import/glob.in.h: Update.
943 * gnulib/import/glob_internal.h: Update.
944 * gnulib/import/glob_pattern_p.c: Update.
945 * gnulib/import/globfree.c: Update.
946 * gnulib/import/hard-locale.c: Update.
947 * gnulib/import/hard-locale.h: Update.
948 * gnulib/import/intprops.h: Update.
949 * gnulib/import/inttypes.in.h: Update.
950 * gnulib/import/isnan.c: Update.
951 * gnulib/import/isnand-nolibm.h: Update.
952 * gnulib/import/isnand.c: Update.
953 * gnulib/import/isnanl-nolibm.h: Update.
954 * gnulib/import/isnanl.c: Update.
955 * gnulib/import/itold.c: Update.
956 * gnulib/import/libc-config.h: Update.
957 * gnulib/import/limits.in.h: Update.
958 * gnulib/import/localcharset.c: Update.
959 * gnulib/import/localcharset.h: Update.
960 * gnulib/import/localtime-buffer.c: Update.
961 * gnulib/import/localtime-buffer.h: Update.
962 * gnulib/import/lstat.c: Update.
963 * gnulib/import/m4/00gnulib.m4: Update.
964 * gnulib/import/m4/__inline.m4: Update.
965 * gnulib/import/m4/absolute-header.m4: Update.
966 * gnulib/import/m4/alloca.m4: Update.
967 * gnulib/import/m4/builtin-expect.m4: Update.
968 * gnulib/import/m4/canonicalize.m4: Update.
969 * gnulib/import/m4/chdir-long.m4: Update.
970 * gnulib/import/m4/close.m4: Update.
971 * gnulib/import/m4/closedir.m4: Update.
972 * gnulib/import/m4/configmake.m4: Update.
973 * gnulib/import/m4/d-ino.m4: Update.
974 * gnulib/import/m4/d-type.m4: Update.
975 * gnulib/import/m4/dirent_h.m4: Update.
976 * gnulib/import/m4/dirfd.m4: Update.
977 * gnulib/import/m4/dirname.m4: Update.
978 * gnulib/import/m4/double-slash-root.m4: Update.
979 * gnulib/import/m4/dup.m4: Update.
980 * gnulib/import/m4/dup2.m4: Update.
981 * gnulib/import/m4/eealloc.m4: Update.
982 * gnulib/import/m4/environ.m4: Update.
983 * gnulib/import/m4/errno_h.m4: Update.
984 * gnulib/import/m4/error.m4: Update.
985 * gnulib/import/m4/exponentd.m4: Update.
986 * gnulib/import/m4/exponentl.m4: Update.
987 * gnulib/import/m4/extensions.m4: Update.
988 * gnulib/import/m4/extern-inline.m4: Update.
989 * gnulib/import/m4/fchdir.m4: Update.
990 * gnulib/import/m4/fcntl-o.m4: Update.
991 * gnulib/import/m4/fcntl.m4: Update.
992 * gnulib/import/m4/fcntl_h.m4: Update.
993 * gnulib/import/m4/fdopendir.m4: Update.
994 * gnulib/import/m4/filenamecat.m4: Update.
995 * gnulib/import/m4/flexmember.m4: Update.
996 * gnulib/import/m4/float_h.m4: Update.
997 * gnulib/import/m4/fnmatch.m4: Update.
998 * gnulib/import/m4/fnmatch_h.m4: Update.
999 * gnulib/import/m4/fpieee.m4: Update.
1000 * gnulib/import/m4/frexp.m4: Update.
1001 * gnulib/import/m4/frexpl.m4: Update.
1002 * gnulib/import/m4/fstat.m4: Update.
1003 * gnulib/import/m4/fstatat.m4: Update.
1004 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1005 * gnulib/import/m4/getcwd-path-max.m4: Update.
1006 * gnulib/import/m4/getcwd.m4: Update.
1007 * gnulib/import/m4/getdtablesize.m4: Update.
1008 * gnulib/import/m4/getlogin.m4: Update.
1009 * gnulib/import/m4/getlogin_r.m4: Update.
1010 * gnulib/import/m4/getpagesize.m4: Update.
1011 * gnulib/import/m4/getprogname.m4: Update.
1012 * gnulib/import/m4/gettimeofday.m4: Update.
1013 * gnulib/import/m4/glibc21.m4: Update.
1014 * gnulib/import/m4/glob.m4: Update.
1015 * gnulib/import/m4/glob_h.m4: Update.
1016 * gnulib/import/m4/gnulib-cache.m4: Update.
1017 * gnulib/import/m4/gnulib-common.m4: Update.
1018 * gnulib/import/m4/gnulib-comp.m4: Update.
1019 * gnulib/import/m4/gnulib-tool.m4: Update.
1020 * gnulib/import/m4/hard-locale.m4: Update.
1021 * gnulib/import/m4/include_next.m4: Update.
1022 * gnulib/import/m4/inttypes-pri.m4: Update.
1023 * gnulib/import/m4/inttypes.m4: Update.
1024 * gnulib/import/m4/isnand.m4: Update.
1025 * gnulib/import/m4/isnanl.m4: Update.
1026 * gnulib/import/m4/largefile.m4: Update.
1027 * gnulib/import/m4/limits-h.m4: Update.
1028 * gnulib/import/m4/localcharset.m4: Update.
1029 * gnulib/import/m4/locale-fr.m4: Update.
1030 * gnulib/import/m4/locale-ja.m4: Update.
1031 * gnulib/import/m4/locale-zh.m4: Update.
1032 * gnulib/import/m4/localtime-buffer.m4: Update.
1033 * gnulib/import/m4/longlong.m4: Update.
1034 * gnulib/import/m4/lstat.m4: Update.
1035 * gnulib/import/m4/malloc.m4: Update.
1036 * gnulib/import/m4/malloca.m4: Update.
1037 * gnulib/import/m4/math_h.m4: Update.
1038 * gnulib/import/m4/mbrtowc.m4: Update.
1039 * gnulib/import/m4/mbsinit.m4: Update.
1040 * gnulib/import/m4/mbsrtowcs.m4: Update.
1041 * gnulib/import/m4/mbstate_t.m4: Update.
1042 * gnulib/import/m4/memchr.m4: Update.
1043 * gnulib/import/m4/memmem.m4: Update.
1044 * gnulib/import/m4/mempcpy.m4: Update.
1045 * gnulib/import/m4/memrchr.m4: Update.
1046 * gnulib/import/m4/mkdir.m4: Update.
1047 * gnulib/import/m4/mkstemp.m4: Update.
1048 * gnulib/import/m4/mmap-anon.m4: Update.
1049 * gnulib/import/m4/mode_t.m4: Update.
1050 * gnulib/import/m4/msvc-inval.m4: Update.
1051 * gnulib/import/m4/msvc-nothrow.m4: Update.
1052 * gnulib/import/m4/multiarch.m4: Update.
1053 * gnulib/import/m4/nocrash.m4: Update.
1054 * gnulib/import/m4/off_t.m4: Update.
1055 * gnulib/import/m4/onceonly.m4: Update.
1056 * gnulib/import/m4/open-cloexec.m4: Update.
1057 * gnulib/import/m4/open.m4: Update.
1058 * gnulib/import/m4/openat.m4: Update.
1059 * gnulib/import/m4/opendir.m4: Update.
1060 * gnulib/import/m4/pathmax.m4: Update.
1061 * gnulib/import/m4/rawmemchr.m4: Update.
1062 * gnulib/import/m4/readdir.m4: Update.
1063 * gnulib/import/m4/readlink.m4: Update.
1064 * gnulib/import/m4/realloc.m4: Update.
1065 * gnulib/import/m4/rename.m4: Update.
1066 * gnulib/import/m4/rewinddir.m4: Update.
1067 * gnulib/import/m4/rmdir.m4: Update.
1068 * gnulib/import/m4/save-cwd.m4: Update.
1069 * gnulib/import/m4/secure_getenv.m4: Update.
1070 * gnulib/import/m4/setenv.m4: Update.
1071 * gnulib/import/m4/signal_h.m4: Update.
1072 * gnulib/import/m4/ssize_t.m4: Update.
1073 * gnulib/import/m4/stat-time.m4: Update.
1074 * gnulib/import/m4/stat.m4: Update.
1075 * gnulib/import/m4/std-gnu11.m4: Update.
1076 * gnulib/import/m4/stdbool.m4: Update.
1077 * gnulib/import/m4/stddef_h.m4: Update.
1078 * gnulib/import/m4/stdint.m4: Update.
1079 * gnulib/import/m4/stdio_h.m4: Update.
1080 * gnulib/import/m4/stdlib_h.m4: Update.
1081 * gnulib/import/m4/strchrnul.m4: Update.
1082 * gnulib/import/m4/strdup.m4: Update.
1083 * gnulib/import/m4/strerror.m4: Update.
1084 * gnulib/import/m4/string_h.m4: Update.
1085 * gnulib/import/m4/strstr.m4: Update.
1086 * gnulib/import/m4/strtok_r.m4: Update.
1087 * gnulib/import/m4/sys_socket_h.m4: Update.
1088 * gnulib/import/m4/sys_stat_h.m4: Update.
1089 * gnulib/import/m4/sys_time_h.m4: Update.
1090 * gnulib/import/m4/sys_types_h.m4: Update.
1091 * gnulib/import/m4/tempname.m4: Update.
1092 * gnulib/import/m4/time_h.m4: Update.
1093 * gnulib/import/m4/unistd-safer.m4: Update.
1094 * gnulib/import/m4/unistd_h.m4: Update.
1095 * gnulib/import/m4/warn-on-use.m4: Update.
1096 * gnulib/import/m4/wchar_h.m4: Update.
1097 * gnulib/import/m4/wchar_t.m4: Update.
1098 * gnulib/import/m4/wctype_h.m4: Update.
1099 * gnulib/import/m4/wint_t.m4: Update.
1100 * gnulib/import/malloc.c: Update.
1101 * gnulib/import/malloc/scratch_buffer.h: Update.
1102 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1103 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1104 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1105 * gnulib/import/malloca.c: Update.
1106 * gnulib/import/malloca.h: Update.
1107 * gnulib/import/malloca.valgrind: Update.
1108 * gnulib/import/math.in.h: Update.
1109 * gnulib/import/mbrtowc.c: Update.
1110 * gnulib/import/mbsinit.c: Update.
1111 * gnulib/import/mbsrtowcs-impl.h: Update.
1112 * gnulib/import/mbsrtowcs-state.c: Update.
1113 * gnulib/import/mbsrtowcs.c: Update.
1114 * gnulib/import/memchr.c: Update.
1115 * gnulib/import/memmem.c: Update.
1116 * gnulib/import/mempcpy.c: Update.
1117 * gnulib/import/memrchr.c: Update.
1118 * gnulib/import/mkdir.c: Update.
1119 * gnulib/import/mkstemp.c: Update.
1120 * gnulib/import/msvc-inval.c: Update.
1121 * gnulib/import/msvc-inval.h: Update.
1122 * gnulib/import/msvc-nothrow.c: Update.
1123 * gnulib/import/msvc-nothrow.h: Update.
1124 * gnulib/import/open.c: Update.
1125 * gnulib/import/openat-die.c: Update.
1126 * gnulib/import/openat-priv.h: Update.
1127 * gnulib/import/openat-proc.c: Update.
1128 * gnulib/import/openat.c: Update.
1129 * gnulib/import/openat.h: Update.
1130 * gnulib/import/opendir.c: Update.
1131 * gnulib/import/pathmax.h: Update.
1132 * gnulib/import/pipe-safer.c: Update.
1133 * gnulib/import/rawmemchr.c: Update.
1134 * gnulib/import/readdir.c: Update.
1135 * gnulib/import/readlink.c: Update.
1136 * gnulib/import/realloc.c: Update.
1137 * gnulib/import/ref-add.sin: Update.
1138 * gnulib/import/ref-del.sin: Update.
1139 * gnulib/import/rename.c: Update.
1140 * gnulib/import/rewinddir.c: Update.
1141 * gnulib/import/rmdir.c: Update.
1142 * gnulib/import/same-inode.h: Update.
1143 * gnulib/import/save-cwd.c: Update.
1144 * gnulib/import/save-cwd.h: Update.
1145 * gnulib/import/scratch_buffer.h: Update.
1146 * gnulib/import/secure_getenv.c: Update.
1147 * gnulib/import/setenv.c: Update.
1148 * gnulib/import/signal.in.h: Update.
1149 * gnulib/import/stat-time.c: Update.
1150 * gnulib/import/stat-time.h: Update.
1151 * gnulib/import/stat-w32.c: Update.
1152 * gnulib/import/stat-w32.h: Update.
1153 * gnulib/import/stat.c: Update.
1154 * gnulib/import/stdbool.in.h: Update.
1155 * gnulib/import/stddef.in.h: Update.
1156 * gnulib/import/stdint.in.h: Update.
1157 * gnulib/import/stdio.in.h: Update.
1158 * gnulib/import/stdlib.in.h: Update.
1159 * gnulib/import/str-two-way.h: Update.
1160 * gnulib/import/strchrnul.c: Update.
1161 * gnulib/import/strdup.c: Update.
1162 * gnulib/import/streq.h: Update.
1163 * gnulib/import/strerror-override.c: Update.
1164 * gnulib/import/strerror-override.h: Update.
1165 * gnulib/import/strerror.c: Update.
1166 * gnulib/import/string.in.h: Update.
1167 * gnulib/import/stripslash.c: Update.
1168 * gnulib/import/strnlen1.c: Update.
1169 * gnulib/import/strnlen1.h: Update.
1170 * gnulib/import/strstr.c: Update.
1171 * gnulib/import/strtok_r.c: Update.
1172 * gnulib/import/sys_stat.in.h: Update.
1173 * gnulib/import/sys_time.in.h: Update.
1174 * gnulib/import/sys_types.in.h: Update.
1175 * gnulib/import/tempname.c: Update.
1176 * gnulib/import/tempname.h: Update.
1177 * gnulib/import/time.in.h: Update.
1178 * gnulib/import/unistd--.h: Update.
1179 * gnulib/import/unistd-safer.h: Update.
1180 * gnulib/import/unistd.in.h: Update.
1181 * gnulib/import/unsetenv.c: Update.
1182 * gnulib/import/verify.h: Update.
1183 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1184 * gnulib/import/wchar.in.h: Update.
1185 * gnulib/import/wctype.in.h: Update.
1186 * gnulib/import/xalloc-oversized.h: Update.
1187 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1188 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1190 2018-08-16 Gary Benson <gbenson@redhat.com>
1193 * gdb/main.c (captured_main_1): Exit with nonzero status
1194 in batch mode if the last command to be executed failed.
1195 * NEWS: Mention the above.
1197 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1199 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1200 end of warning message.
1202 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1205 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1206 (aarch64_extract_return_value): Use
1207 aapcs_is_vfp_call_or_return_candidate.
1208 (aarch64_return_in_memory): Likewise.
1209 (aarch64_store_return_value): Likewise.
1211 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1214 (aapcs_is_vfp_call_or_return_candidate): Make static
1215 (pass_in_v_or_stack): Remove function.
1216 (pass_in_v_vfp_candidate): New function.
1217 (aarch64_push_dummy_call): Check for float register candidates.
1219 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1221 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1222 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1223 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1225 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1228 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1229 (struct ipa_sym_addresses): Rename to...
1230 (struct ipa_sym_addresses_common): ... this.
1231 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1233 2018-08-28 Tom Tromey <tom@tromey.com>
1235 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1236 (token_fifo): Now a std::vector.
1237 (yylex, c_parse): Update.
1238 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1239 (token_fifo): Now a std::vector.
1240 (yylex, d_parse): Update.
1241 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1242 (token_fifo): Now a std::vector.
1243 (yylex, go_parse): Update.
1245 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1247 * parser-defs.h (struct type_stack) <elements>: Change type to
1248 std::vector<union type_stack_elt>.
1249 <depth, size>: Remove.
1250 * parse.c (parse_exp_in_context_1): Adjust.
1251 (type_stack_reserve): Remove.
1252 (check_type_stack_depth): Remove.
1253 (insert_into_type_stack): Adjust to std::vector.
1254 (insert_type): Likewise.
1255 (push_type): Likewise.
1256 (push_type_int): Likewise.
1257 (insert_type_address_space): Likewise.
1258 (pop_type): Likewise.
1259 (pop_type_int): Likewise.
1260 (pop_typelist): Likewise.
1261 (pop_type_stack): Likewise.
1262 (append_type_stack): Likewise.
1263 (push_type_stack): Likewise.
1264 (get_type_stack): Likewise.
1265 (type_stack_cleanup): Likewise.
1266 (push_typelist): Likewise.
1267 (follow_types): Likewise.
1268 (_initialize_parse): Likewise.
1270 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1272 * NEWS: Mention csky target.
1274 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1275 Hafiz Abid Qadeer <abidh@codesourcery.com>
1276 Don Breazeal <donb@codesourcery.com>
1278 * csky-linux-tdep.c: New file.
1279 * csky-tdep.c: Likewise.
1280 * csky-tdep.h: Likewise.
1281 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1283 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1284 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1285 * configure.tgt: Add csky support.
1287 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1289 * python/py-framefilter.c (py_print_frame): Print frame architecture
1290 when printing on an MI output.
1292 2018-08-27 Tom Tromey <tom@tromey.com>
1295 * configure: Rebuild.
1296 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1298 2018-08-27 Tom Tromey <tom@tromey.com>
1300 * aarch64-linux-tdep.c
1301 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1304 2018-08-27 Tom Tromey <tom@tromey.com>
1306 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1308 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1309 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1310 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1311 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1314 2018-08-27 Tom Tromey <tom@tromey.com>
1316 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1317 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1319 2018-08-27 Tom Tromey <tom@tromey.com>
1321 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1322 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1324 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1326 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1328 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1329 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1330 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1332 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1333 (ppc64_linux_sigaction_tramp_frame)
1334 (ppc32_linux_sighandler_tramp_frame)
1335 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1336 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1337 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1338 * mn10300-linux-tdep.c (am33_linux_sigframe)
1339 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1340 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1341 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1342 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1343 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1344 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1345 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1346 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1347 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1348 * microblaze-linux-tdep.c
1349 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1350 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1351 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1352 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1353 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1354 * common/common-types.h (ULONGEST_MAX): New define.
1355 (CORE_ADDR_MAX): Fix formatting.
1356 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1357 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1358 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1359 (arm_linux_rt_sigreturn_tramp_frame)
1360 (arm_eabi_linux_sigreturn_tramp_frame)
1361 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1362 (thumb2_eabi_linux_sigreturn_tramp_frame)
1363 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1364 (arm_linux_restart_syscall_tramp_frame)
1365 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1366 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1367 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1369 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1371 2018-08-27 Tom Tromey <tom@tromey.com>
1373 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1375 * mips-tdep.c (mips_deal_with_atomic_sequence)
1376 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1377 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1378 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1379 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1381 * aarch64-tdep.c (aarch64_software_single_step): Use
1384 2018-08-27 Tom Tromey <tom@tromey.com>
1386 * linespec.c (complete_linespec_component): Add cast to "char".
1387 * completer.c (completion_tracker::build_completion_result): Add
1390 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1392 * solist.h (struct solist, struct target_so_ops): Fix
1395 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1397 * ada-tasks.c (ada_task_info_s): Remove typedef.
1398 (DEF_VEC_O(ada_task_info_s)): Remove.
1399 (struct ada_tasks_inferior_data): Initialize fields.
1400 <task_list>: Make an std::vector.
1401 (get_ada_tasks_inferior_data): Allocate with new.
1402 (ada_get_task_number): Adjust.
1403 (get_task_number_from_id): Likewise.
1404 (valid_task_id): Likewise.
1405 (ada_get_task_info_from_ptid): Likewise.
1406 (iterate_over_live_ada_tasks): Likewise.
1407 (add_ada_task): Likewise.
1408 (read_known_tasks): Likewise.
1409 (ada_build_task_list): Likewise.
1410 (print_ada_task_info): Likewise.
1411 (info_task): Likewise.
1412 (task_command_1): Likewise.
1414 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1416 * ada-lang.c (add_angle_brackets): Return std::string.
1418 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
1420 * python/py-threadevent.c (py_get_event_thread): Initialize
1423 2018-08-24 Pedro Alves <palves@redhat.com>
1425 * python/py-bpevent.c (create_breakpoint_event_object): Use
1426 copy-initialization.
1427 * python/py-continueevent.c (emit_continue_event): Use
1428 copy-initialization.
1429 * python/py-exitedevent.c (create_exited_event_object): Return a
1431 (emit_exited_event): Use copy-initialization.
1432 * python/py-inferior.c (python_new_inferior)
1433 (python_inferior_deleted, add_thread_object): Use
1434 copy-initialization.
1435 * python/py-infevents.c (create_inferior_call_event_object)
1436 (create_register_changed_event_object)
1437 (create_memory_changed_event_object): Return a gdbpy_ref<>.
1438 (emit_inferior_call_event, emit_memory_changed_event)
1439 (emit_register_changed_event): Use copy-initialization.
1440 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1441 Return a gdbpy_ref<>.
1442 (emit_new_objfile_event): Use copy-initialization.
1443 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
1444 (emit_clear_objfiles_event): Use copy-initialization.
1445 * python/py-signalevent.c (create_signal_event_object): Use
1446 copy-initialization.
1447 * python/py-threadevent.c (create_thread_event_object): Use
1448 copy-initialization.
1450 2018-08-24 Pedro Alves <palves@redhat.com>
1451 Simon Marchi <simon.marchi@ericsson.com>
1454 * python/py-continueevent.c: Include "gdbthread.h".
1455 (create_continue_event_object): Add intro comment. Add 'ptid'
1456 parameter. Use it to find thread to pass to
1457 create_thread_event_object.
1458 (emit_continue_event): Pass PTID down to
1459 create_continue_event_object.
1460 * python/py-event.h (py_get_event_thread): Declare.
1461 (create_thread_event_object): Remove default from 'thread'
1463 * python/py-stopevent.c (create_stop_event_object): Use
1464 py_get_event_thread.
1465 * python/py-threadevent.c (get_event_thread): Rename to ...
1466 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
1467 and use it to find the thread.
1468 (create_thread_event_object): Assert that THREAD isn't null.
1469 Don't find the event thread here.
1471 2018-08-23 Kevin Buettner <kevinb@redhat.com>
1473 * block.h (blockrange, blockranges): New struct declarations.
1474 (struct block): Add new field named `ranges'.
1475 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
1476 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
1477 macros for accessing ranges in struct block.
1478 (make_blockranges): New declaration.
1479 block.c (make_blockranges): New function.
1480 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
1482 * symtab.h (find_pc_partial_function): Add new parameter `block'.
1483 * blockframe.c (cache_pc_function_block): New static global.
1484 (clear_pc_function_cache): Clear cache_pc_function_block.
1485 (find_pc_partial_function): Move comment to symtab.h. Add
1486 support for non-contiguous blocks.
1487 * cli/cli-cmds.c (block.h): Include.
1488 (print_disassembly): Handle printing of non-contiguous blocks.
1489 (disassemble_current_function): Likewise.
1490 (disassemble_command): Likewise.
1492 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
1494 * blockframe.c (get_pc_function_start): Likewise.
1495 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
1496 (gcc_symbol_address): Likewise.
1497 * compile/compile-object-run.c (compile_object_run): Likewise.
1498 * compile/compile.c (get_expr_block_and_pc): Likewise.
1499 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
1500 (func_addr_to_tail_call_list): Likewise.
1501 * findvar.c (default_read_var_value): Likewise.
1502 * inline-frame.c (inline_frame_this_id): Likewise.
1503 (skip-inline_frames): Likewise.
1504 * infcmd.c (until_next_command): Likewise.
1505 * linespec.c (convert_linespec_to_sals): Likewise.
1506 * parse.c (parse_exp_in_context_1): Likewise.
1507 * printcmd.c (build_address_symbolic): likewise.
1508 (info_address_command): Likewise.
1509 symtab.c (find_function_start_sal): Likewise.
1510 (skip_prologue_sal): Likewise.
1511 (find_function_alias_target): Likewise.
1512 (find_gnu_ifunc): Likewise.
1513 * stack.c (find_frame_funname): Likewise.
1514 * symtab.c (fixup_symbol_section): Likewise.
1515 (find_function_start_sal): Likewise.
1516 (skip_prologue_sal): Likewsie.
1517 (find_function_alias_target): Likewise.
1518 (find_gnu_ifunc): Likewise.
1519 * tracepoint.c (info_scope_command): Likewise.
1520 * value.c (value_fn_field): Likewise.
1522 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
1523 in place of find_pc_partial_function.
1524 * blockframe.c (find_function_entry_range_from_pc): New function.
1525 * symtab.h (find_function_entry_range_from_pc): Declare and document.
1526 * objfiles.c (objfile_relocate1): Relocate start and end addresses
1527 for each range in a block.
1530 2018-08-23 Xavier Roirand <roirand@adacore.com>
1532 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
1535 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1537 * solib-svr4.c (read_program_headers_from_bfd): Return
1538 gdb::optional<gdb::byte_vector>.
1539 (svr4_exec_displacement): Adjust.
1541 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1543 * solib-svr4.c (read_program_header): Return
1544 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
1545 (find_program_interpreter): Return
1546 gdb::optional<gdb::byte_vector>.
1547 (scan_dyntag_auxv): Adjust.
1548 (enable_break): Adjust.
1549 (svr4_exec_displacement): Adjust.
1551 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1553 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
1554 * inf-child.c (inf_child_target::terminal_save_inferior): New.
1556 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1558 * guile/scm-string.c (gdbscm_scm_from_printf): Use
1560 * guile/scm-utils.c (gdbscm_printf): Likewise.
1561 * serial.c (serial_printf): Likewise.
1562 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
1564 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
1566 * stack.c (print_frame): Print frame architecture when printing on
1568 * NEWS: Mention new "arch" attribute in frame output.
1570 2018-08-21 Alan Hayward <alan.hayward@arm.com>
1572 * arch/aarch64.h (aarch64_regnum): Update comment.
1574 2018-08-21 Alan Hayward <alan.hayward@arm.com>
1576 * NEWS: Add SVE to 8.2 section.
1578 2018-08-21 Pedro Alves <palves@redhat.com>
1580 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
1581 out from gdbscm_parse_function_args.
1582 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
1583 gdbscm_parse_function_args_1.
1585 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
1588 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
1591 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
1593 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
1595 2018-08-19 Michael Spang <spang@google.com>
1598 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
1599 for PT_TLS segments.
1601 2018-08-18 Kevin Buettner <kevinb@redhat.com>
1603 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
1604 dwarf_variable_value.
1605 * dwarf2-frame.c (class dwarf_expr_executor):
1606 Add override for dwarf_variable_value.
1607 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
1608 (class symbol_needs_eval_context): Likewise.
1609 (indirect_synthetic_pointer): Add forward declaration.
1610 (sect_variable_value): New function.
1611 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
1612 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
1613 for DW_OP_GNU_variable_value.
1615 2018-08-16 Tom Tromey <tom@tromey.com>
1617 * top.c (read_command_file): Update.
1618 (command_line_input): Remove "repeat" argument.
1619 * ada-lang.c (get_selections): Update.
1620 * linespec.c (decode_line_2): Update.
1621 * defs.h (command_line_input): Remove argument.
1622 * cli/cli-script.c (read_next_line): Update.
1623 * python/py-gdb-readline.c: Update.
1625 2018-08-17 Tom Tromey <tom@tromey.com>
1627 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
1630 2018-08-15 Tom Tromey <tom@tromey.com>
1632 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
1634 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
1636 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
1637 If used, use find_pc_partial_function to find address range
1639 * mi/mi-main.c (mi_cmd_list_features): Report
1640 "data-disassemble-a-option" feature.
1641 * NEWS: Mention new -data-disassemble option -a.
1643 2018-08-13 Tom Tromey <tom@tromey.com>
1645 * common/common-defs.h (_FORTIFY_SOURCE): Define.
1647 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1649 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
1650 (aarch64_linux_collect_sve_regset): Likewise.
1651 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
1652 * regcache.h (regcache_map_entry_size): New function.
1654 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1656 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
1657 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
1658 (SVE_HEADER_VL_LENGTH): Likewise.
1659 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
1660 (SVE_HEADER_FLAGS_LENGTH): Likewise.
1661 (SVE_HEADER_RESERVED_LENGTH): Likewise.
1662 (SVE_HEADER_SIZE_OFFSET): Likewise.
1663 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
1664 (SVE_HEADER_VL_OFFSET): Likewise.
1665 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
1666 (SVE_HEADER_FLAGS_OFFSET): Likewise.
1667 (SVE_HEADER_RESERVED_OFFSET): Likewise.
1668 (SVE_HEADER_SIZE): Likewise.
1669 (aarch64_linux_core_read_vq): Add function.
1670 (aarch64_linux_core_read_description): Check for SVE section.
1672 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1674 * aarch64-fbsd-tdep.c
1675 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
1677 * aarch64-linux-tdep.c
1678 (aarch64_linux_iterate_over_regset_sections): Likewise.
1679 * alpha-linux-tdep.c
1680 (alpha_linux_iterate_over_regset_sections):
1682 (alphanbsd_iterate_over_regset_sections): Likewise.
1684 (amd64fbsd_iterate_over_regset_sections): Likewise.
1685 * amd64-linux-tdep.c
1686 (amd64_linux_iterate_over_regset_sections): Likewise.
1688 (armbsd_iterate_over_regset_sections): Likewise.
1690 (arm_fbsd_iterate_over_regset_sections): Likewise.
1692 (arm_linux_iterate_over_regset_sections): Likewise.
1693 * corelow.c (get_core_registers_cb): Likewise.
1694 (core_target::fetch_registers): Likewise.
1695 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1696 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
1697 * gdbarch.h (void): Regenerate.
1698 * gdbarch.sh: Add supply_size and collect_size.
1699 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
1700 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
1701 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
1702 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
1703 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
1704 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
1705 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
1706 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
1707 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
1708 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
1709 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
1710 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
1711 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
1712 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
1713 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
1714 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
1715 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
1716 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
1717 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
1718 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
1719 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
1720 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
1721 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
1722 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
1723 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
1724 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
1725 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
1726 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
1727 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
1728 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
1730 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
1732 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
1735 2018-08-10 Keith Seitz <keiths@redhat.com>
1737 * compile/compile-c-support.c (add_code_header, add_code_footer):
1738 Move into policy class.
1739 (c_push_user_expression, pop_user_expression_nop)
1740 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
1741 (compile_program): New host class.
1742 (c_compile_program): New typedef.
1743 (c_compute_porgram): Use c_compile_program.
1745 2018-08-10 Keith Seitz <keiths@redhat.com>
1747 * compile/compile-internal.h (compile_instance::~compile_instance):
1748 Remove calls to htab_delete.
1749 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
1750 * compile.c (compile_instance::compile_instance): Initialize
1751 htab unique pointers.
1752 (compile_instance::get_cached_type, compile_instance::insert_type)
1753 (compile_instance::error_symbol_once): Update for unique_ptr.
1755 2018-08-10 Keith Seitz <keiths@redhat.com>
1757 * compile/compile-c-symbols.c (struct symbol_error)
1758 (hash_symbol_error, eq_symbol_error, del_symbol_error)
1759 (compile_instance::insert_symbol_error)
1760 (compile_instance::error_symbol_once): Move to ...
1761 * compile/compile.c: ... here.
1763 2018-08-10 Keith Seitz <keiths@redhat.com>
1765 * compile/compile-c-support.c (c_get_compile_context): Use `new'
1766 instead of `new_compile_instance'.
1767 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
1769 If the symbol error map is not initialized, create it.
1770 (generate_c_for_for_one_symbol): Do not check/initialize
1771 the symbol error map.
1772 * compile/compile-c-types.c (compile_c_instance): Make a class.
1774 (compile_instance::compile_instance): Initialize the type cache.
1775 (get_cached_type): New function.
1776 (insert_type): Update description.
1777 (compile_c_instance::m_default_cflags): Define.
1778 (convert_type): Update description. Use get_cached_type.
1779 (delete_instance): Moved to destructor.
1780 (new_compile_instance): Moved to constructor.
1781 * compile/compile-c.h (compile_c_instance): Make class inheriting
1782 from compile_instance.
1783 <base>: Remove field.
1784 <type_map, symbol_err_map>: Move to base class.
1785 <c_plugin>: Rename to `m_plugin' and remove pointer type.
1786 * compile/compile-internal.h (compile_instance): Make class.
1787 <type_map_t, symbol_err_map_t>: Define.
1788 <fe>: Rename to `m_gcc_fe'.
1789 <scope, block, gcc_target_options>: Add `m_' prefix.
1790 <m_type_map, m_symbol_err_map>: New fields, moved from
1793 (convert_type, new_compile_instance): Remove.
1794 * compile/compile.c (cleanup_compile_instance): Remove.
1795 (compile_to_object): Use unique_ptr to eliminate cleanups.
1796 (compile_instance::set_print_callback, compile_instance::version)
1797 (compile_instance::set_verbose)
1798 (compile_instance::set_driver_filename)
1799 (compile_instance::set_triplet_regexp)
1800 (compile_instance::set_arguments)
1801 (compile_instance::set_source_file)
1802 (compile_instance::compile): Define.
1804 2018-08-10 Keith Seitz <keiths@redhat.com>
1806 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
1807 * compile/compile-c-types.c: Define GCC_METHODN macros and include
1808 gcc-c-fe.def to define C plugin.
1809 (delete_instance): Delete `c_plugin'.
1810 (new_compile_instance): Initialize `c_plugin'.
1811 * compile/compile-c.h: Include gcc_c_plugin.h.
1812 (struct compile_c_instance) <c_plugin>: New member.
1813 * gcc-c-plugin.h: New file.
1814 Update all callers with API change.
1816 2018-08-10 Keith Seitz <keiths@redhat.com>
1818 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
1819 (HFILES_NO_SRCDIR): ... to here.
1820 Add compile-internal.h and compile-c.h.
1821 * compile/compile-c-support.c: Include compile-c.h.
1822 * compile/compile-c-symbols.c: Include compile-c.h.
1823 (generate_c_for_variable_locations): Update comment.
1824 * compile/compile-c-types.c: Include compile-c.h.
1825 * compile/compile-c.h: New file -- moved C language declarations
1826 from other files here.
1827 * compile/compile-internal.h: Do not include hashtab.h or
1828 common/enum-flags.h.
1829 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
1830 (gcc_convert_symbol, gcc_symbol_address)
1831 (generate_c_for_variable_locations, c_get_mode_for_size)
1832 (c_get_range_decl_name): Definitions moved to compile-c.h.
1833 * compile/compile-loc2c.c: Include compile-c.h.
1835 2018-08-10 Keith Seitz <keiths@redhat.com>
1837 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
1838 (c_symbol_substitution_name): ... this.
1841 2018-08-10 Keith Seitz <keiths@redhat.com>
1843 * compile/compile-c-support.c (c_compute_program): Use
1844 unique_xmalloc_ptr to eliminate cleanup.
1845 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
1846 Return a unique_xmalloc_ptr and eliminate cleanup.
1847 * compile/compile-internal.h (generate_c_for_variable_locations):
1848 Return unique_xmalloc_ptr and update description.
1850 2018-08-10 Alan Hayward <alan.hayward@arm.com>
1852 * corelow.c (core_target::get_core_register_section): Rename
1853 min_size to section_min_size.
1855 2018-08-09 Jim Wilson <jimw@sifive.com>
1857 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
1858 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
1859 * NEWS: Mention new GNU/Linux RISC-V target.
1860 * configure.host: Add riscv*-*-linux*.
1861 * configure.nat: Add riscv*.
1862 * configure.tgt: Add riscv*-*-linux*.
1863 * riscv-linux-nat.c: New file.
1864 * riscv-linux-tdep.c: New file.
1866 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1868 * infrun.c (resume): Make static, add forward declaration.
1869 (proceed): Update header comment.
1870 * infrun.h (resume): Delete declaration.
1872 2018-08-09 Tom Tromey <tom@tromey.com>
1874 * riscv-tdep.h: Minor formatting fixes.
1876 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
1878 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
1879 * dwarf-index-cache.c (create_dir_and_check): Likewise.
1880 (test_mkdir_recursive): Likewise.
1881 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
1883 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1885 * valarith.c (value_subscripted_rvalue): If an array is not in
1886 memory, and we don't know the upper bound, then we can't know that
1887 the requested element exists or not.
1889 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
1891 * target.c (str_comma_list_concat_elem): Fix typo in comment.
1892 (target_options_to_string): Add comment.
1894 2018-08-08 Tom Tromey <tom@tromey.com>
1896 * unittests/scoped_mmap-selftests.c: Check result of "write".
1898 2018-08-08 Jim Wilson <jimw@sifive.com>
1900 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
1901 (decode_register_index_short): New.
1902 (decode_j_type_insn, decode_cj_type_insn): New.
1903 (decode_b_type_insn, decode_cb_type_insn): New.
1904 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
1905 local xlen. Check xlen when decoding ambiguous compressed insns. In
1906 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
1907 is_c_sw_insn instead of is_sw_insn.
1908 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
1909 (riscv_software_single_step): New.
1910 * riscv-tdep.h (riscv_software_single_step): Declare.
1912 * riscv-tdep.c (riscv_isa_xlen): Drop static.
1913 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
1915 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
1918 * target.c (dispose_inferior): Don't dispose of inferiors that are
1921 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
1923 * remote.c (remote_target::download_tracepoint): Change char* to
1926 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1928 * target.h (target_options_to_string): Return an std::string.
1929 * target.c (str_comma_list_concat_elem): Return void, use
1931 (do_option): Likewise.
1932 (target_options_to_string): Return an std::string.
1933 * linux-nat.c (linux_nat_target::wait): Adjust.
1934 * target-debug.h (target_debug_print_options): Adjust.
1936 2018-08-07 Tom Tromey <tom@tromey.com>
1938 * Makefile.in (CPPFLAGS): New variable.
1939 (INTERNAL_CPPFLAGS): Use it.
1941 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1943 * NEWS: Mention the index cache.
1945 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1947 * common/pathstuff.h (get_standard_cache_dir): New.
1948 * common/pathstuff.c (get_standard_cache_dir): New.
1949 * build-id.h (build_id_to_string): New.
1950 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
1951 DEBUG_STR_SUFFIX): Move to here.
1952 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
1953 DEBUG_STR_SUFFIX): Move from there.
1954 (write_psymtabs_to_index): Make non-static, add basename
1955 parameter. Write to temporary files, rename when done.
1956 (save_gdb_index_command): Adjust call to
1957 write_psymtabs_to_index.
1958 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
1960 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
1961 (get_gdb_index_contents_from_cache): New.
1962 (get_gdb_index_contents_from_cache_dwz): New.
1963 (dwarf2_initialize_objfile): Read index from cache.
1964 (dwarf2_build_psymtabs): Save to index.
1965 * dwarf-index-cache.h: New file.
1966 * dwarf-index-cache.c: New file.
1967 * dwarf-index-write.h: New file.
1969 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1971 * gnulib/aclocal.m4: Re-generate.
1972 * gnulib/config.in: Re-generate.
1973 * gnulib/configure: Re-generate.
1974 * gnulib/import/Makefile.am: Re-generate.
1975 * gnulib/import/Makefile.in: Re-generate.
1976 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1977 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1978 * gnulib/import/m4/mkdir.m4: New file.
1979 * gnulib/import/mkdir.c: New file.
1980 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
1983 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1985 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
1986 * common/scoped_mmap.c: New file.
1987 * common/scoped_mmap.h (destroy): New method.
1988 (~scoped_mmap, reset): Use destroy.
1989 (scoped_mmap): New move constructor.
1990 (mmap_file): New declaration.
1991 * unittests/scoped_mmap-selftests.c (test_normal,
1992 test_invalid_filename, run_tests): New functions.
1993 (_initialize_scoped_mmap_selftests): Register selftest.
1995 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1997 * dwarf2read.c (read_gdb_index_from_section): Rename to...
1998 (read_gdb_index_from_buffer): ... this. Remove section
1999 parameter, add buffer parameter.
2000 (get_gdb_index_contents_ftype,
2001 get_gdb_index_contents_dwz_ftype): New typedefs.
2002 (dwarf2_read_gdb_index): Add callback parameters to get the
2004 (get_gdb_index_contents_from_section): New.
2005 (dwarf2_initialize_objfile): Update call to
2006 dwarf2_read_gdb_index.
2008 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2010 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2011 (gdb_open_cloexec): Likewise.
2012 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2013 (commandline_from_pid): Likewise.
2014 (linux_xfer_osdata_threads): Likewise.
2015 (linux_xfer_osdata_fds): Likewise.
2016 * ada-lang.c (is_package_name): Likewise.
2017 * auxv.c (procfs_xfer_auxv): Likewise.
2018 * breakpoint.c (print_one_breakpoint_location): Use
2020 (print_one_catch_solib): Use string_printf.
2021 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2022 (add_pe_forwarded_sym): Likewise.
2023 * dwarf2read.c (create_type_unit_group): Likewise.
2024 (build_error_marker_type): Likewise.
2025 * infcall.c (get_function_name): Likewise.
2026 * valprint.c (print_converted_chars_to_obstack): Likewise.
2027 * xtensa-tdep.c (xtensa_register_type): Likewise.
2029 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2031 * remote.c (remote_target::download_tracepoint): Fix format
2034 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2036 * tracefile.c: Include common/byte-vector.h.
2037 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2038 with trace_regblock_size if needed. Update uses of buf.
2040 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2042 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2043 std::vector<unsigned char>.
2044 * tracepoint.c (collection_list::collection_list): Remove
2045 m_regs_mask initializer from initializer list. Resize
2046 m_regs_mask using the largest remote register number.
2047 (collection_list::add_remote_register): Remove size check on
2048 m_regs_mask. Use at to access element.
2049 (collection_list::stringify): Change type of temp_buf to
2050 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2051 stringify the register mask. Use pack_hex_byte for the register
2054 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2056 * tracepoint.h (class collection_list) <add_register>: Remove.
2057 <add_remote_register, add_ax_registers, add_local_register>:
2059 <add_memrange>: Add scope parameter.
2060 * tracepoint.c (encode_actions_1): Likewise.
2061 (collection_list::add_register): Rename to ...
2062 (collection_list::add_remote_register): ... this. Update
2064 (collection_list::add_ax_registers, add_local_register): New
2066 (collection_list::add_memrange): Add scope parameter. Call
2067 add_local_register instead of add_register.
2068 (finalize_tracepoint_aexpr): New function.
2069 (collection_list::collect_symbol): Update calls to add_memrange.
2070 Call add_local_register instead of add_register. Call
2071 add_ax_registers. Call finalize_tracepoint_aexpr.
2072 (encode_actions_1): Get remote regnos for $reg action. Call
2073 add_remote_register, add_ax_registers, and add_local_register.
2074 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2075 (validate_actionline): Call finalize_tracepoint_aexpr.
2077 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2079 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2080 Replace array buf with gdb::char_vector buf, of size
2081 get_remote_packet_size (). Replace references to buf and
2082 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2083 and xsnprintf with snprintf. Raise errors if the buffer is too
2086 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2088 * remote.c (remote_target::download_tracepoint): Fix the has_more
2089 predicate in the QTDP action list iteration.
2091 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2093 * remote.c (remote_target::download_tracepoint): Fix indentation
2096 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2098 * proc-api.c (_initialize_proc_api): Remove c, unused.
2099 * procfs.c (procfs_init_inferior): Remove signals, unused.
2100 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2103 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2104 Andrew Burgess <andrew.burgess@embecosm.com>
2106 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2107 'W_STOPCODE (0)' as this could be ambiguous.
2109 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2111 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2112 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2115 2018-08-02 Tom Tromey <tom@tromey.com>
2118 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2120 (process_structure_scope): Likewise.
2122 2018-08-02 Xavier Roirand <roirand@adacore.com>
2125 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2128 2018-08-02 Tom Tromey <tom@tromey.com>
2130 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2131 (darwin_suspend_inferior, darwin_resume_inferior)
2132 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2133 (darwin_check_new_threads): Check result of get_darwin_inferior.
2135 2018-07-31 Joel Brobecker <brobecker@adacore.com>
2139 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2141 * varobj.c (varobj_get_path_expr_parent): Report an error if
2142 parent is a dynamic varobj.
2144 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2146 * gnulib/aclocal.m4: Re-generate.
2147 * gnulib/config.in: Re-generate.
2148 * gnulib/configure: Re-generate.
2149 * gnulib/import/Makefile.in: Re-generate.
2150 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2151 * gnulib/import/m4/onceonly.m4: Re-generate.
2153 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2155 * target-descriptions.c (struct xml_test_tdesc): New.
2156 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2157 (record_xml_tdesc): Update.
2158 (maintenance_check_xml_descriptions): Update.
2159 * target-descriptions.h (record_xml_tdesc): Update comment.
2161 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2163 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2164 checking array bounds are defined.
2166 2018-07-30 Tom Tromey <tom@tromey.com>
2168 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2169 irreflexivity violation.
2171 2018-07-30 Tom Tromey <tom@tromey.com>
2173 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2174 * value.c (unpack_long): Remove lint code.
2175 * valops.c (value_ind): Remove lint code.
2176 * valarith.c (value_x_binop, value_x_unop, value_equal)
2177 (value_pos): Remove lint code.
2179 2018-07-28 Tom de Vries <tdevries@suse.de>
2181 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2182 with undefined upper bound as <optimized out>.
2184 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2186 * gcore.in: Rename variable "name" to "prefix". Expand
2189 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2191 * windows-nat.c (windows_nat_target::create_inferior): Update to
2192 call close() in global namespace.
2194 2018-07-26 Tom Tromey <tom@tromey.com>
2196 * dwarf-index-write.c (add_address_entry): Don't add objfile
2198 * dbxread.c (find_stab_function): Rename from
2199 find_stab_function_addr. Return a bound_minimal_symbol.
2200 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2201 Don't add objfile offsets.
2202 (end_psymtab): Use raw_text_low, raw_text_high,
2203 MSYMBOL_VALUE_RAW_ADDRESS.
2204 (read_ofile_symtab): Update.
2205 (process_one_symbol): Update.
2206 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2208 (dw2_relocate): Remove.
2209 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2211 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2213 (process_psymtab_comp_unit_reader, add_partial_symbol)
2214 (add_partial_subprogram, dwarf2_ranges_read): Update.
2215 (load_partial_dies): Update.
2216 (add_address_entry): Don't add objfile offsets.
2217 (dwarf2_build_include_psymtabs): Update.
2218 (create_addrmap_from_aranges): Don't add objfile offsets.
2219 (dw2_find_pc_sect_compunit_symtab): Update.
2220 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2221 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2223 (parse_partial_symbols): Don't add objfile offsets. Use
2224 raw_text_low, raw_text_high. Update.
2225 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2226 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2227 or call 'relocate' quick function. Clear psymbol_map.
2228 * psympriv.h (struct partial_symbol) <address>: Add section
2230 <set_unrelocated_address>: Rename from set_address.
2231 <raw_text_low, raw_text_high>: New methods.
2232 <text_low, text_high>: Add objfile parameter.
2233 (add_psymbol_to_bcache): Add 'section' parameter. Call
2234 set_unrelocated_address.
2235 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2236 (find_pc_psymbol): Update.
2237 (fixup_psymbol_section, relocate_psymtabs): Remove.
2238 (dump_psymtab, psym_functions): Update.
2239 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2241 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2242 (start_psymtab_common): Update.
2243 * symfile-debug.c (debug_qf_relocate): Remove.
2244 (debug_sym_quick_functions): Update.
2245 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2246 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2249 2018-07-26 Tom Tromey <tromey@redhat.com>
2251 * dbxread.c (end_psymtab): Use text_high_valid and
2253 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2254 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2255 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2257 <text_low_valid, text_high_valid>: New fields.
2258 <set_text_low, set_text_high>: Update.
2259 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2261 2018-07-26 Tom Tromey <tom@tromey.com>
2263 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2265 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2266 textlow and texthigh fields.
2267 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2269 * mdebugread.c (parse_lines, parse_partial_symbols)
2270 (psymtab_to_symtab_1): Update.
2271 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2272 Rename fields. Update comment. Now private.
2273 <text_low, text_high, set_text_low, set_text_high>: New methods.
2274 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2275 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2276 (start_psymtab_common, maintenance_info_psymtabs)
2277 (maintenance_check_psymtabs): Update.
2278 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2280 (scan_xcoff_symtab): Update.
2282 2018-07-26 Tom Tromey <tromey@redhat.com>
2284 * psympriv.h (struct partial_symbol) <unrelocated_address,
2285 address, set_address>: New methods.
2286 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2287 (fixup_psymbol_section, relocate_psymtabs): Update.
2288 (print_partial_symbols): Add 'objfile' parameter. Update.
2289 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2292 2018-07-26 Tom Tromey <tom@tromey.com>
2294 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2295 (debug_names::write_psymbols): Update.
2296 * psympriv.h (struct partial_symbol): Derive from
2297 general_symbol_info.
2298 <obj_section>: New method.
2299 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2300 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2301 (find_pc_sect_psymbol, fixup_psymbol_section)
2302 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2303 (print_partial_symbols, recursively_search_psymtabs)
2304 (compare_psymbols, psymbol_hash, psymbol_compare)
2305 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2306 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2308 2018-07-26 Tom Tromey <tromey@redhat.com>
2310 * dbxread.c (end_psymtab): Remove dead code.
2312 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2314 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2315 DWARF unwinders are disabled.
2316 * dwarf2-frame.c: Add dwarf2read.h include.
2317 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2319 (dwarf2_frame_unwinders_enabled_p): Define.
2320 (show_dwarf_unwinders_enabled_p): New function.
2321 (_initialize_dwarf2_frame): Register switch to control DWARF
2323 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2324 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2325 (show_dwarf_cmdlist): Remove static keyword.
2326 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2327 (show_dwarf_cmdlist): Declare.
2328 * NEWS: Document new feature.
2330 2018-07-26 Tom de Vries <tdevries@suse.de>
2332 PR breakpoints/23366
2333 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2335 2018-07-26 Tom de Vries <tdevries@suse.de>
2337 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2338 DW_AT_count can't be translated to a dynamic prop.
2340 2018-07-25 Tom de Vries <tdevries@suse.de>
2342 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2345 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2347 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2349 2018-07-25 Joel Brobecker <brobecker@adacore.com>
2351 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2353 2018-07-24 Keith Seitz <keiths@redhat.comt
2356 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2357 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2358 instead of add_symbol_to_list.
2359 (read_file_scope): Call prepare_one_comp_unit before reading
2362 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2364 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2366 2018-07-24 Tom Tromey <tom@tromey.com>
2368 * utils.c (malloc, realloc, free): Don't declare.
2369 * configure, config.in: Rebuild.
2370 * configure.ac: Don't check for declarations of free, malloc, or
2373 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2375 * aarch64-linux-nat.c
2376 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2378 * arm-linux-nat.c (fetch_regs): Likewise.
2379 (store_regs): Likewise.
2380 (fetch_vfp_regs): Likewise.
2381 (store_vfp_regs): Likewise.
2382 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2383 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2384 (arm_linux_nat_target::insert_watchpoint): Likewise.
2385 (arm_linux_nat_target::remove_watchpoint): Likewise.
2386 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2388 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2390 * ppc-linux-nat.c (fetch_register): Likewise.
2391 (fetch_all_gp_regs): Likewise.
2392 (fetch_ppc_registers): Likewise.
2393 (store_all_gp_regs): Likewise.
2394 (store_ppc_registers): Likewise.
2395 (hwdebug_insert_point): Likewise.
2396 (can_use_watchpoint_cond_accel): Likewise.
2397 * remote-sim.c (gdb_os_write_stdout): Likewise.
2399 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2400 Tom Tromey <tom@tromey.com>
2402 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
2404 * configure: Rebuild.
2406 2018-07-22 Tom Tromey <tom@tromey.com>
2408 * regformats/regdat.sh: Define xmltarget_${name} inside
2409 #ifndef IN_PROCESS_AGENT.
2411 2018-07-22 Tom Tromey <tom@tromey.com>
2413 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
2415 2018-07-22 Tom Tromey <tom@tromey.com>
2417 * symfile.c (reread_symbols): Notify iter, not objfile.
2419 2018-07-22 Tom Tromey <tom@tromey.com>
2421 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
2423 (ravenscar_thread_target::prepare_to_store): Likewise.
2425 2018-07-22 Tom Tromey <tom@tromey.com>
2427 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
2428 unused variable. Call value_fetch_lazy when needed.
2429 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2430 Remove unused variable. Call value_fetch_lazy when needed.
2432 2018-07-22 Tom Tromey <tom@tromey.com>
2434 * m32c-tdep.c (mark_dma): Return void.
2435 (make_regs): Remove unused declarations.
2437 2018-07-22 Tom Tromey <tom@tromey.com>
2439 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
2440 cmdscm_get_valid_command_smob_arg_unsafe for effect.
2441 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
2442 bkscm_get_valid_block_smob_arg_unsafe for effect.
2444 2018-07-22 Tom Tromey <tom@tromey.com>
2446 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
2449 2018-07-22 Tom Tromey <tom@tromey.com>
2451 * windows-nat.c (saved_context): Conditionally define.
2452 * remote.c (remote_target::remote_btrace_maybe_reopen):
2453 Conditionally declare "warned".
2454 * inflow.c (sigquit_ours): Conditionally define.
2455 (new_tty): Move "tty" declaration inside #if.
2456 * guile/guile.c (guile_datadir): Conditionally define.
2457 * charset.c (set_be_le_names): Move some declarations inside #if.
2458 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
2460 (parse_xml_btrace_conf): Likewise.
2462 2018-07-22 Tom Tromey <tom@tromey.com>
2464 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
2466 2018-07-22 Tom Tromey <tom@tromey.com>
2468 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
2469 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
2470 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
2471 * buildsym-legacy.c (get_macro_table): Remove unused variable.
2472 * stack.c (frame_apply_level_command): Remove unused variable.
2473 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
2474 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
2475 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
2477 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
2478 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
2479 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
2481 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
2482 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
2484 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
2485 Remove unused variable.
2486 * cli/cli-script.c (recurse_read_control_structure): Remove unused
2488 * common/tdesc.c (print_xml_feature::visit): Remove unused
2490 * compile/compile-object-load.c (store_regs): Remove unused
2492 * complaints.c (clear_complaints): Remove unused variable.
2493 * corelow.c (core_target_open): Remove unused variable.
2494 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
2496 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
2498 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
2500 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
2502 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
2504 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
2506 * ia64-tdep.c (examine_prologue): Remove unused variable.
2507 * infcall.c (run_inferior_call): Remove unused variable.
2508 * inferior.c (exit_inferior): Remove unused variable.
2509 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
2510 * linespec.c (decode_line_2): Remove unused variable.
2511 * linux-nat.c (super_close): Remove.
2512 * linux-tdep.c (linux_info_proc): Remove unused variable.
2513 * mi/mi-main.c (mi_execute_command): Remove unused variable.
2514 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
2515 Remove unused variable.
2516 * parse.c (find_minsym_type_and_address): Remove unused variable.
2517 * printcmd.c (info_symbol_command, printf_floating): Remove unused
2519 * python/py-breakpoint.c (bppy_set_commands): Remove unused
2521 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
2523 * record-btrace.c (record_btrace_target::store_registers): Remove
2525 (cmd_show_record_btrace_cpu): Remove unused variable.
2526 * riscv-tdep.c (riscv_register_reggroup_p)
2527 (riscv_push_dummy_call, riscv_return_value): Remove unused
2529 * rust-exp.y (literal): Remove unused variable.
2530 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
2532 <STRUCTOP_ANONYMOUS>: Likewise.
2533 * s390-linux-tdep.c (s390_linux_init_abi_31)
2534 (s390_linux_init_abi_64): Remove unused variable.
2535 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
2536 (file_select_thread, net_windows_open, _initialize_ser_windows):
2537 Remove unused variables.
2538 * symtab.c (find_pc_sect_line): Remove unused variable.
2539 * target-memory.c (compute_garbled_blocks): Remove unused
2541 (target_write_memory_blocks): Remove unused variable.
2542 * target.c (target_stack::unpush): Remove unused variables.
2543 * tracepoint.c (start_tracing, all_tracepoint_actions)
2544 (merge_uploaded_trace_state_variables)
2545 (print_one_static_tracepoint_marker): Remove unused variable.
2546 * unittests/basic_string_view/element_access/char/1.cc (test01):
2547 Remove unused variable.
2548 * windows-nat.c (windows_continue, windows_add_all_dlls)
2549 (do_initial_windows_stuff, windows_nat_target::create_inferior):
2550 Remove unused variables.
2552 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2554 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
2555 attr_profile in HAVE_ELF.
2556 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
2559 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
2561 * frame.c (frame_register_unwind): Change parameter name.
2562 (frame_unwind_register): Likewise.
2563 (frame_unwind_register_value): Likewise.
2564 (frame_unwind_register_signed): Likewise.
2565 (frame_unwind_register_unsigned): Likewise.
2566 * frame.h (frame_register_unwind): Likewise.
2567 (frame_unwind_register): Likewise.
2568 (frame_unwind_register_value): Likewise.
2569 (frame_unwind_register_signed): Likewise.
2570 (frame_unwind_register_unsigned): Likewise.
2571 (frame_unwind_arch): Likewise.
2573 2018-07-20 Maciej W. Rozycki <macro@mips.com>
2575 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
2578 2018-07-20 Maciej W. Rozycki <macro@mips.com>
2580 * mips-linux-nat.c (mips_linux_nat_target::read_description):
2581 Call `get_ptrace_pid' rather than extracting the ptrace PID by
2584 2018-07-20 Keith Seitz <keiths@redhat.com>
2586 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
2587 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
2588 m_compunit_symtab, m_language>: Add "m_" prefix.
2590 * buildsym.c: Update all uses.
2592 2018-07-20 Tom Tromey <tom@tromey.com>
2594 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
2595 * buildsym.h (record_line_ftype): Remove typedef.
2597 2018-07-20 Tom Tromey <tom@tromey.com>
2599 * buildsym-legacy.h (augment_type_symtab): Don't declare.
2600 (end_expandable_symtab): Likewise.
2601 (end_symtab_get_static_block): Likewise.
2602 (end_symtab_from_static_block): Likewise.
2603 * buildsym-legacy.c (augment_type_symtab): Remove.
2604 (end_expandable_symtab): Remove.
2605 (end_symtab_get_static_block): Remove.
2606 (end_symtab_from_static_block): Remove.
2608 2018-07-20 Tom Tromey <tom@tromey.com>
2610 * dwarf2read.c: Include buildsym.h.
2611 (struct dwarf2_cu) <builder>: New method.
2612 (fixup_go_packaging): Update.
2613 (process_full_comp_unit, process_full_type_unit): Update. Don't
2614 use scoped_free_pendings.
2615 (using_directives): Add "cu" parameter, remove "language".
2616 (read_import_statement, setup_type_unit_groups, )
2617 (read_func_scope, read_lexical_block_scope)
2618 (dwarf2_record_block_ranges, read_namespace): Update.
2619 (lnp_state_machine::lnp_state_machine): Add cu parameter.
2620 (lnp_state_machine::handle_end_sequence): Update.
2621 (class lnp_state_machine) <m_cu>: New member.
2622 <m_record_line_callback>: Remove.
2623 <m_currently_recording_lines>: New member.
2624 (lnp_state_machine::handle_set_file): Update.
2625 (noop_record_line): Remove.
2626 (dwarf_record_line_p): Add cu parameter.
2627 (dwarf_record_line_1, dwarf_finish_line): Likewise.
2628 (lnp_state_machine::record_line)
2629 (lnp_state_machine::lnp_state_machine)
2630 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
2631 (dwarf_decode_lines): Update.
2632 (dwarf2_start_subfile): Add cu parameter.
2633 (dwarf2_start_symtab, new_symbol): Update.
2634 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
2635 Remove dwarf2_per_objfile parameter.
2636 (dwarf_decode_macros): Update.
2638 2018-07-20 Tom Tromey <tom@tromey.com>
2640 * stabsread.c (define_symbol): Update.
2641 * buildsym-legacy.h (get_buildsym_compunit): Declare.
2642 * dwarf2read.c (new_symbol): Update.
2643 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
2644 * cp-namespace.c: Include buildsym.h.
2645 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
2646 * buildsym-legacy.c (get_buildsym_compunit): New function.
2648 2018-07-20 Tom Tromey <tom@tromey.com>
2650 * xcoffread.c: Include buildsym-legacy.h.
2651 * windows-nat.c: Include buildsym-legacy.h.
2652 * stabsread.c: Include buildsym-legacy.h.
2653 * mdebugread.c: Include buildsym-legacy.h.
2654 * buildsym-legacy.h: New file.
2655 * buildsym-legacy.c: New file, from buildsym.c.
2656 * go32-nat.c: Include buildsym-legacy.h.
2657 * dwarf2read.c: Include buildsym-legacy.h.
2658 * dbxread.c: Include buildsym-legacy.h.
2659 * cp-namespace.c: Include buildsym-legacy.h.
2660 * coffread.c: Include buildsym-legacy.h.
2661 * buildsym.h: Move some contents to buildsym-legacy.h.
2662 * buildsym.c: Include buildsym-legacy.h. Move many functions to
2664 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
2666 2018-07-20 Tom Tromey <tom@tromey.com>
2668 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
2669 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
2670 (buildsym_compunit::buildsym_compunit)
2671 (buildsym_compunit::~buildsym_compunit)
2672 (buildsym_compunit::get_macro_table): Define.
2674 2018-07-20 Tom Tromey <tom@tromey.com>
2676 * buildsym.c (reset_symtab_globals): Remove.
2677 (buildsym_compunit::end_symtab_from_static_block): Update.
2678 (buildsym_compunit::augment_type_symtab): Update.
2679 (end_symtab_from_static_block): Call free_buildsym_compunit.
2680 (augment_type_symtab, end_symtab, end_expandable_symtab):
2683 2018-07-20 Tom Tromey <tom@tromey.com>
2685 * arch-utils.c: Do not include buildsym.h.
2686 * mipsread.c: Do not include buildsym.h.
2687 * machoread.c: Do not include buildsym.h.
2688 * elfread.c: Do not include buildsym.h.
2690 2018-07-20 Tom Tromey <tom@tromey.com>
2692 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
2694 (buildsym_compunit): Add new constructor.
2695 (struct buildsym_compunit) <get_last_source_file, finish_block,
2696 record_block_range, start_subfile, patch_subfile_names,
2697 push_subfile, pop_subfile, record_line, get_compunit_symtab,
2698 set_last_source_start_addr, get_last_source_start_addr,
2699 get_local_using_directives, set_local_using_directives,
2700 get_global_using_directives, outermost_context_p,
2701 get_current_context_stack, get_context_stack_depth,
2702 get_current_subfile, get_local_symbols, get_file_symbols,
2703 get_global_symbols, record_debugformat, record_producer,
2704 push_context, pop_context, end_symtab_get_static_block,
2705 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
2707 <record_pending_block, finish_block_internal, make_blockvector,
2708 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
2712 2018-05-22 Tom Tromey <tom@tromey.com>
2714 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2716 (finish_block_internal): Update.
2718 2018-07-20 Tom Tromey <tom@tromey.com>
2720 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2722 (finish_block_internal): Update.
2724 2018-07-20 Tom Tromey <tom@tromey.com>
2726 * buildsym.h (EXTERN): Don't define or undef.
2727 * buildsym.c (EXTERN): Don't define.
2729 2018-07-20 Tom Tromey <tom@tromey.com>
2731 * buildsym.c: Remove TODO comment.
2733 2018-07-20 Tom Tromey <tom@tromey.com>
2735 * coffread.c (coff_symtab_read): Update.
2736 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2737 (xcoff_new_init): Update.
2738 * mipsread.c (mipscoff_new_init): Update.
2739 * mdebugread.c (mdebug_build_psymtabs): Update.
2740 * elfread.c (elf_new_init): Update.
2741 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2743 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
2744 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2745 (stabsect_build_psymtabs): Update.
2746 * buildsym.h (buildsym_init): Don't declare.
2747 * buildsym.c: Update comment.
2748 (prepare_for_building): Remove.
2749 (start_symtab, restart_symtab): Update.
2750 (reset_symtab_globals): Update comment.
2751 (buildsym_init): Remove.
2753 2018-07-20 Tom Tromey <tom@tromey.com>
2755 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
2756 * stabsread.c (patch_block_stabs, define_symbol, read_type)
2757 (read_enum_type, common_block_start, common_block_end)
2758 (cleanup_undefined_types_1, finish_global_stabs): Update.
2759 * mdebugread.c (psymtab_to_symtab_1): Update.
2760 * dwarf2read.c (fixup_go_packaging, read_func_scope)
2761 (read_lexical_block_scope, new_symbol): Update.
2762 * dbxread.c (process_one_symbol): Update.
2763 * coffread.c (coff_symtab_read, process_coff_symbol)
2764 (coff_read_enum_type): Update.
2765 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
2767 (get_local_symbols, get_file_symbols, get_global_symbols): New
2769 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
2771 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
2772 (~scoped_free_pendings): Update.
2773 (finish_block, prepare_for_building, reset_symtab_globals)
2774 (end_symtab_get_static_block, end_symtab_with_blockvector)
2775 (augment_type_symtab, push_context): Update.
2776 (get_local_symbols, get_file_symbols, get_global_symbols): New
2778 (buildsym_init): Update.
2780 2018-07-20 Tom Tromey <tom@tromey.com>
2782 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
2783 (process_full_type_unit): Likewise.
2784 (dwarf2_start_symtab): Set list_in_scope.
2786 2018-07-20 Tom Tromey <tom@tromey.com>
2788 * dwarf2read.c (process_psymtab_comp_unit_reader)
2789 (build_type_psymtabs_reader): Do not set list_in_scope.
2791 2018-07-20 Tom Tromey <tom@tromey.com>
2793 * buildsym.c (free_pendings): Remove.
2794 (add_symbol_to_list, scoped_free_pendings)
2795 (finish_block_internal, buildsym_init): Update.
2797 2018-07-20 Tom Tromey <tom@tromey.com>
2799 * xcoffread.c (read_xcoff_symtab): Update.
2800 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
2802 * dbxread.c (process_one_symbol): Update.
2803 * coffread.c (coff_symtab_read): Update.
2804 * buildsym.h (finish_block): Update.
2805 * buildsym.c (finish_block): Remove "listhead" argument.
2806 (end_symtab_get_static_block): Update.
2808 2018-07-20 Tom Tromey <tom@tromey.com>
2810 * buildsym.h (class scoped_free_pendings): Remove constructor.
2811 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
2813 <m_pending_block_obstack, m_pending_blocks>: New members.
2814 (pending_block_obstack, pending_blocks): Remove.
2815 (scoped_free_pendings::scoped_free_pendings): Default.
2816 (~scoped_free_pendings): Update.
2817 (free_pending_blocks): Remove.
2818 (finish_block_internal, record_pending_block, make_blockvector)
2819 (end_symtab_get_static_block, augment_type_symtab, push_context)
2820 (buildsym_init): Update.
2822 2018-07-20 Tom Tromey <tom@tromey.com>
2824 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
2825 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
2827 (pending_addrmap, pending_addrmap_obstack)
2828 (pending_addrmap_interesting): Remove.
2829 (scoped_free_pendings, record_block_range, make_blockvector)
2830 (prepare_for_building, reset_symtab_globals, buildsym_init):
2833 2018-07-20 Tom Tromey <tom@tromey.com>
2835 * xcoffread.c (process_linenos): Update.
2836 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
2837 * mdebugread.c (psymtab_to_symtab_1): Update.
2838 * dwarf2read.c (setup_type_unit_groups)
2839 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
2840 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
2841 * dbxread.c (process_one_symbol): Update.
2842 * coffread.c (coff_symtab_read, enter_linenos)
2843 (process_coff_symbol): Update.
2844 * buildsym.h (current_subfile): Don't declare.
2845 (get_current_subfile): Declare.
2846 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
2848 (start_subfile, free_buildsym_compunit, push_subfile)
2849 (prepare_for_building, start_symtab): Update.
2850 (get_current_subfile): New function.
2852 2018-07-20 Tom Tromey <tom@tromey.com>
2854 * coffread.c (coff_symtab_read): Update.
2855 * xcoffread.c (read_xcoff_symtab): Update.
2856 * dwarf2read.c (new_symbol): Update.
2857 (read_func_scope, read_lexical_block_scope): Update.
2858 * dbxread.c (process_one_symbol): Update.
2859 * buildsym.h (context_stack, context_stack_depth): Don't declare.
2860 (outermost_context_p): Remove macro.
2861 (outermost_context_p, get_current_context_stack)
2862 (get_context_stack_depth): Declare.
2863 (pop_context): Return struct context_stack.
2864 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
2866 (context_stack_size): Remove.
2867 (INITIAL_CONTEXT_STACK_SIZE): Remove.
2868 (prepare_for_building, end_symtab_get_static_block)
2869 (augment_type_symtab, push_context): Update.
2870 (pop_context): Return struct context_stack.
2871 (outermost_context_p, get_current_context_stack)
2872 (get_context_stack_depth): New functions.
2873 (buildsym_init): Update.
2875 2018-07-20 Tom Tromey <tom@tromey.com>
2877 * rust-exp.y: Now a pure parser. Update all rules.
2878 (%union): Move earlier.
2879 (current_parser, work_obstack): Remove globals.
2880 (rust_parser, ~rust_parser): Update.
2881 (class rust_parser) <copy_name, concat3, crate_name, super_name,
2882 lex_character, lex_number, lex_string, lex_identifier,
2883 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
2884 convert_name, convert_params_to_expression,
2885 convert_ast_to_expression, ast_basic_type, ast_operation,
2886 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
2887 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
2888 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
2889 ast_array_type, ast_slice_type, ast_reference_type,
2890 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
2891 (rust_parse): Update.
2892 (rustyyerror, rustyylex): Add parser parameter.
2893 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
2894 (rust_lex_stringish_test, rust_lex_test_sequence)
2895 (rust_lex_test_trailing_dot, rust_lex_test_completion)
2896 (rust_lex_test_push_back, rust_lex_tests): Update.
2898 2018-07-19 Pedro Alves <palves@redhat.com>
2900 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
2901 gdb::unique_xmalloc_ptr.
2902 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
2903 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
2904 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
2905 copy-initialization.
2906 * guile/scm-pretty-print.c (ppscm_print_children): Use
2907 gdb::unique_xmalloc_ptr instead of cleanups.
2908 (gdbscm_apply_val_pretty_printer): Remove cleanups.
2909 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
2910 gdb::unique_xmalloc_ptr.
2911 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2912 Adjust to use gdb::unique_xmalloc_ptr.
2913 * guile/scm-utils.c (extract_arg): Adjust.
2914 * guile/scm-value.c (gdbscm_value_field): Adjust to use
2915 gdb::unique_xmalloc_ptr instead of a cleanup.
2917 2018-07-19 Tom Tromey <tom@tromey.com>
2919 * utils.c (do_value_free_to_mark)
2920 (make_cleanup_value_free_to_mark): Remove.
2921 * utils.h (make_cleanup_value_free_to_mark): Remove.
2923 2018-07-19 Pedro Alves <palves@redhat.com>
2925 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
2926 forwarding reference.
2928 2018-07-18 Pedro Alves <palves@redhat.com>
2930 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
2931 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
2934 2018-07-18 Pedro Alves <palves@redhat.com>
2936 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
2938 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
2940 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
2941 directly instead of a cleanup.
2942 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
2943 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
2944 (vlscm_binop_gdbthrow): New, factored out from ...
2945 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
2946 (vlscm_rich_compare): Use gdbscm_wrap.
2947 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
2948 instead of a cleanup.
2949 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
2951 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2952 Use xfree directly instead of a cleanup.
2953 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
2954 Adjust to use gdbscm_wrap and scoped_value_mark.
2955 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
2956 (gdbscm_value_address, gdbscm_value_dereference)
2957 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
2959 (gdbscm_value_dynamic_type): Use scoped_value_mark.
2960 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
2962 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
2963 gdbscm_wrap and scoped_value_mark.
2964 (gdbscm_value_to_string): Use xfree directly instead of a
2965 cleanup. Move 'buffer' unique_ptr to TRY scope.
2966 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
2967 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
2969 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
2970 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
2972 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
2975 2018-07-18 Tom de Vries <tdevries@suse.de>
2977 * findvar.c (default_read_var_value): Also resolve dynamic type for
2978 LOC_OPTIMIZED_OUT vars.
2980 2018-07-18 Maciej W. Rozycki <macro@mips.com>
2982 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
2985 2018-07-17 Tom Tromey <tom@tromey.com>
2987 * guile/scm-param.c (pascm_set_func, pascm_show_func)
2988 (compute_enum_list, pascm_set_param_value_x)
2989 (gdbscm_parameter_value): Update.
2990 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
2991 (gdbscm_scm_to_host_string): Update.
2992 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
2994 * guile/scm-cmd.c (cmdscm_add_completion): Update.
2995 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
2996 * guile/scm-string.c (gdbscm_scm_to_string): Return
2998 (gdbscm_scm_to_host_string): Likewise.
3000 2018-07-17 Tom Tromey <tom@tromey.com>
3002 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3003 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3004 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3005 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3008 2018-07-17 Tom Tromey <tom@tromey.com>
3010 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3011 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3013 * guile/scm-cmd.c (cmdscm_function): Update.
3014 * guile/scm-pretty-print.c
3015 (ppscm_print_exception_unless_memory_error): Update.
3016 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3017 Return unique_xmalloc_ptr.
3019 2018-07-17 Tom Tromey <tom@tromey.com>
3021 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3024 2018-07-17 Jim Wilson <jimw@sifive.com>
3026 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3027 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3028 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3029 unecessary braces after EF_RISCV_RVC test. Delete call to
3030 set_gdbarch_decr_pc_after_break.
3032 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3033 RISCV_LAST_FP_REGNUM + 1.
3034 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3036 2018-07-17 Tom Tromey <tom@tromey.com>
3038 * configure.ac: Remove --disable-gdbcli.
3039 * configure: Rebuild.
3040 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3041 (SUBDIR_CLI_CFLAGS): Remove.
3042 (SFILES): Use SUBDIR_CLI_SRCS.
3043 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3045 2018-07-17 Tom Tromey <tom@tromey.com>
3048 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3050 2018-07-16 Jim Wilson <jimw@sifive.com>
3052 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3054 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3056 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3058 (libunwind_frame_sniffer): Likewise.
3059 (libunwind_frame_prev_register): Likewise.
3060 (libunwind_sigtramp_frame_sniffer): Likewise.
3061 * ia64-tdep.c (ia64_access_reg): Likewise.
3062 (ia64_access_rse_reg): Likewise.
3063 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3064 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3066 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3068 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3070 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3072 * remote-sim.c (gdbsim_target::close,
3073 gdbsim_target::mourn_inferior): Remove unused variables.
3075 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3077 * ia64-tdep.c (ktab_buf): New global.
3078 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3079 (get_kernel_table): Adjust.
3081 2018-07-16 Tom Tromey <tom@tromey.com>
3083 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3084 * dwarf2read.c (using_directives, new_symbol): Use
3085 outermost_context_p.
3086 * dbxread.c (process_one_symbol): Use outermost_context_p.
3087 * coffread.c (coff_symtab_read): Use outermost_context_p.
3089 2018-07-16 Tom Tromey <tom@tromey.com>
3091 * dwarf2read.c (using_directives, read_func_scope)
3092 (read_lexical_block_scope): Update.
3093 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3094 * buildsym.h (local_using_directives, global_using_directives):
3096 (get_local_using_directives, set_local_using_directives)
3097 (get_global_using_directives): Declare.
3098 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3099 m_global_using_directives>: New members.
3100 (finish_block_internal, prepare_for_building)
3101 (reset_symtab_globals, end_symtab_get_static_block)
3102 (push_context): Update.
3103 (get_local_using_directives, set_local_using_directives)
3104 (get_global_using_directives): New functions.
3105 (buildsym_init): Update.
3107 2018-07-16 Tom Tromey <tom@tromey.com>
3109 * xcoffread.c (xcoff_initial_scan): Don't call
3110 free_pending_blocks.
3111 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3112 * buildsym.h (class scoped_free_pendings): Add constructor.
3113 (free_pending_blocks): Don't declare.
3114 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3115 (free_pending_blocks): Now static.
3117 2018-07-16 Tom Tromey <tom@tromey.com>
3119 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3120 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3122 (struct subfile_stack): Remove.
3123 (subfile_stack): Remove.
3124 (push_subfile, pop_subfile, buildsym_init): Update.
3126 2018-07-16 Tom Tromey <tom@tromey.com>
3128 * buildsym.c (push_subfile): Use gdb_assert.
3129 (pop_subfile): Use gdb_assert.
3131 2018-07-16 Tom Tromey <tom@tromey.com>
3133 * buildsym.h (merge_symbol_lists): Remove.
3134 * buildsym.c (merge_symbol_lists): Remove.
3136 2018-07-16 Tom Tromey <tom@tromey.com>
3138 * stabsread.c (scan_file_globals): Update comment.
3139 * stabsread.h (scan_file_globals): Move from buildsym.h.
3140 * buildsym.h (scan_file_globals): Move to stabsread.h.
3142 2018-07-16 Tom Tromey <tom@tromey.com>
3144 * xcoffread.c (xcoff_new_init): Update.
3145 * mipsread.c (mipscoff_new_init): Update.
3146 * mdebugread.c (mdebug_build_psymtabs): Update.
3147 * elfread.c (elf_new_init): Update.
3148 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3149 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3150 * buildsym.h (buildsym_new_init): Don't declare.
3151 * buildsym.c (buildsym_new_init): Remove.
3153 2018-07-16 Tom Tromey <tom@tromey.com>
3155 * stabsread.h (within_function): Move from buildsym.h.
3156 * stabsread.c (start_stabs): Clear within_function.
3157 * coffread.c (coff_start_symtab): Clear within_function.
3158 * buildsym.h (within_function): Move to stabsread.h.
3159 * buildsym.c (prepare_for_building): Update.
3161 2018-07-16 Tom Tromey <tom@tromey.com>
3163 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3164 * dwarf2read.c (dwarf2_start_symtab): Don't set
3165 processing_gcc_compilation.
3166 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3168 2018-07-16 Tom Tromey <tom@tromey.com>
3170 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3171 (next_symbol_text_func): Move from buildsym.h.
3172 * stabsread.c (hashname): Move from buildsym.c.
3173 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3174 (next_symbol_text_func, hashname): Move to stabsread.h.
3175 * buildsym.c: Don't include bcache.h
3176 (hashname): Move to stasbread.c.
3178 2018-07-16 Tom Tromey <tom@tromey.com>
3180 * buildsym.h (context_stack_size): Don't declare.
3181 * buildsym.c (context_stack_size): New global.
3183 2018-07-16 Tom Tromey <tom@tromey.com>
3185 * dbxread.c (processing_acc_compilation): New global.
3186 * buildsym.h (processing_acc_compilation): Don't declare.
3188 2018-07-16 Tom Tromey <tom@tromey.com>
3190 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3191 * dbxread.c (read_ofile_symtab): Update.
3192 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3193 * buildsym.h (last_source_start_addr): Remove.
3194 (set_last_source_start_addr, get_last_source_start_addr):
3196 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3198 (struct buildsym_compunit) <m_last_source_start_addr>: New
3200 (prepare_for_building): Remove start_addr parameter.
3201 (start_symtab, restart_symtab, end_symtab_get_static_block)
3202 (end_symtab_with_blockvector): Update.
3203 (set_last_source_start_addr, get_last_source_start_addr): New
3206 2018-07-16 Tom Tromey <tom@tromey.com>
3208 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3210 (have_line_numbers): Remove.
3211 (record_line, prepare_for_building, end_symtab_get_static_block)
3212 (augment_type_symtab): Update.
3214 2018-07-16 Tom Tromey <tom@tromey.com>
3216 * buildsym.c (~buildsym_compunit): Free the macro table.
3217 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3219 <m_pending_macros>: New member.
3220 (pending_macros): Remove.
3221 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3222 (reset_symtab_globals, end_symtab_get_static_block)
3223 (end_symtab_with_blockvector, augment_type_symtab)
3224 (buildsym_init): Update.
3226 2018-07-16 Tom Tromey <tom@tromey.com>
3228 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3230 (buildsym_compunit::set_last_source_file): New method.
3231 <m_last_source_file>: New member.
3232 (prepare_for_building): Remove "name" parameter.
3233 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3234 (last_source_file): Remove.
3235 (set_last_source_file, get_last_source_file): Update.
3237 2018-07-16 Tom Tromey <tom@tromey.com>
3239 * buildsym.c (prepare_for_building): Add assert.
3241 2018-07-16 Tom Tromey <tom@tromey.com>
3243 * buildsym.c (~buildsym_compunit): Update.
3244 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3245 (start_subfile, patch_subfile_names)
3246 (end_symtab_with_blockvector): Update.
3248 2018-07-16 Tom Tromey <tom@tromey.com>
3250 * buildsym.c (struct buildsym_compunit): Add constructor,
3251 destructor, initializers.
3252 (start_buildsym_compunit): Remove.
3253 (free_buildsym_compunit): Use "delete".
3254 (start_symtab, restart_symtab): Use "new".
3256 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3258 * symfile.c (set_objfile_default_section_offset): Remove struct
3261 2018-07-14 Stafford Horne <shorne@gmail.com>
3263 * (Responsible Maintainers): Add myself as or1k maintainer.
3265 2018-07-13 Tom Tromey <tom@tromey.com>
3267 * symfile.c (set_objfile_default_section_offset): Use extra braces
3270 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3272 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3275 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3277 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3278 unittests/cli-utils-selftests.c
3279 * unittests/cli-utils-selftests.c: New file.
3281 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3283 * NEWS: Mention new commands. Mention change to 'thread apply'.
3285 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3287 * thread.c (thr_try_catch_cmd): New function.
3288 (thread_apply_all_command): Handle qcs flags.
3289 (thread_apply_command): Handle qcs flags.
3290 (taas_command): New function.
3291 (tfaas_command): New function.
3292 (_initialize_thread): Update to setup the new commands 'taas
3293 and 'tfaas'. Change doc string for 'thread apply'.
3295 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3297 * stack.c: (trailing_outermost_frame): New function, mostly
3298 extracted from backtrace_command_1.
3299 (leading_innermost_frame): New function.
3300 (backtrace_command_1): Update to call trailing_outermost_frame.
3301 (frame_apply_command_count): New function.
3302 (frame_apply_level_command): New function.
3303 (frame_apply_all_command): New function.
3304 (frame_apply_command): New function.
3305 (faas_command): New function.
3306 (frame_cmd_list): New variable.
3307 (_initialize_stack): Update to setup the new commands 'frame apply'
3310 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3312 * cli-utils.c (number_or_range_parser::get_number): Only handle
3313 numbers or convenience var as numbers.
3314 (parse_flags): New function.
3315 (parse_flags_qcs): New function.
3316 (number_or_range_parser::finished): Ensure parsing end is detected
3317 before end of string.
3318 * cli-utils.h (parse_flags): New function.
3319 (parse_flags_qcs): New function.
3320 (number_or_range_parser): Remove m_finished bool.
3321 (number_or_range_parser::skip_range): Set m_in_range to false.
3323 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3325 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3328 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3329 Jan Kratochvil <jan.kratochvil@redhat.com>
3330 Paul Fertser <fercerpav@gmail.com>
3331 Tsutomu Seki <sekiriki@gmail.com>
3332 Pedro Alves <palves@redhat.com>
3334 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3335 'unittests/parse-connection-spec-selftests.c'.
3336 (COMMON_SFILES): Add 'common/netstuff.c'.
3337 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3338 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3339 * common/netstuff.c: New file.
3340 * common/netstuff.h: New file.
3341 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3342 (wait_for_connect): Update comment. New parameter
3343 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3344 Use 'sock' directly instead of 'scb->fd'.
3345 (try_connect): New function, with code from 'net_open'.
3346 (net_open): Rewrite main loop to deal with multiple
3347 sockets/addresses. Handle IPv6-style hostnames; implement
3348 support for IPv6 connections.
3349 * unittests/parse-connection-spec-selftests.c: New file.
3351 2018-07-11 Pedro Alves <palves@redhat.com>
3354 * remote.c (remote_target::remote_detach_pid): Call
3355 set_current_process.
3357 2018-07-11 Pedro Alves <palves@redhat.com>
3359 * h8300-tdep.c (h8300_gdbarch_init): Remove
3360 set_gdbarch_ecoff_reg_to_regnum calls.
3362 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3365 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3366 offsets/sizes for static members of a class/struct.
3368 2018-07-11 Alan Hayward <alan.hayward@arm.com>
3370 * target-descriptions.c (tdesc_register_bitsize): Rename.
3371 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3372 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3373 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3375 2018-07-10 Tom Tromey <tom@tromey.com>
3377 * breakpoint.c (moribund_locations): Now static and a
3379 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3380 (build_bpstat_chain, update_global_location_list)
3381 (breakpoint_retire_moribund): Update.
3382 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3385 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3387 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3388 (riscv_register_reggroup_p): Use new function, remove unneeded
3390 (riscv_push_dummy_call): Extend assert to compare against xlen or
3391 flen based on register type.
3393 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3395 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3397 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3399 * remote.c (show_hardware_watchpoint_limit): New function.
3400 (show_hardware_watchpoint_length_limit): New function.
3401 (show_hardware_breakpoint_limit): New function.
3402 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
3403 where appropriate, update help text.
3405 2018-07-09 Tom Tromey <tom@tromey.com>
3407 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
3408 (CLIBS): Don't mention NAT_CLIBS.
3410 2018-07-09 Tom Tromey <tom@tromey.com>
3412 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
3413 (LIBGDB_OBS, clean mostlyclean): Update.
3414 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
3416 2018-07-09 Tom Tromey <tom@tromey.com>
3418 * Makefile.in (%.c: %.y): Use ECHO_YACC.
3419 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
3420 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
3422 2018-07-09 Tom Tromey <tom@tromey.com>
3424 * Makefile.in (ALLDEPFILES): Remove exec.c.
3425 (COMMON_OBS): Remove exec.o.
3426 (COMMON_SFILES): Add exec.c.
3428 2018-07-09 Tom Tromey <tom@tromey.com>
3430 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
3432 2018-07-09 Tom Tromey <tom@tromey.com>
3434 * Makefile.in (clean mostlyclean): Remove stamp-version.
3435 (version.c): Depend on stamp-version.
3436 (stamp-version): New rule, from version.c rule.
3438 2018-07-09 Tom Tromey <tom@tromey.com>
3440 * Makefile.in (init.c): Depend on stamp-init.
3441 (stamp-init): New rule, from init.c rule.
3442 (clean mostlyclean): Remove stamp-init.
3444 2018-07-09 Tom Tromey <tom@tromey.com>
3446 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
3447 SUBDIR_GCC_COMPILE_SRCS.
3449 2018-07-09 Tom Tromey <tom@tromey.com>
3451 * Makefile.in (init.c): Remove some unused sed rules.
3453 2018-07-09 Tom Tromey <tom@tromey.com>
3455 * Makefile.in (TSOBS): Remove.
3456 (INIT_FILES): Update.
3457 (LIBGDB_OBS): Update.
3458 (COMMON_SFILES): Add inflow.c.
3459 (SFILES): Remove inflow.c.
3461 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3463 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
3465 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
3467 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
3468 get_saveloc_name, is_signal_frame_name, step_name,
3469 init_remote_name, create_addr_space_name,
3470 destroy_addr_space_name, search_unwind_table_name,
3471 find_dyn_list_name): Constify.
3473 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
3475 * darwin-nat.c (darwin_pthread_kill): New function.
3476 (darwin_resume_thread): Use darwin_pthread_kill.
3478 2018-07-05 Tom de Vries <tdevries@suse.de>
3480 * macroexp.c (macro_buffer) <operator=>: New member function.
3482 2018-07-04 Tom Tromey <tom@tromey.com>
3484 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
3486 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
3488 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
3489 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
3490 * maint.c: Likewise.
3493 2018-07-04 Joel Brobecker <brobecker@adacore.com>
3495 * NEWS: Create a new section for the next release branch.
3496 Rename the section of the current branch, now that it has
3499 2018-07-04 Joel Brobecker <brobecker@adacore.com>
3501 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
3502 * version.in: Bump version to 8.2.50.DATE-git.
3504 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3505 Pedro Alves <palves@redhat.com>
3507 * linux-nat.c (linux_init_ptrace): Rename to ...
3508 (linux_init_ptrace_procfs): ... this. Call
3509 linux_proc_init_warnings.
3510 (linux_nat_target::post_attach)
3511 (linux_nat_target::post_startup_inferior): Adjust.
3512 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
3513 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
3515 2018-07-04 Tom de Vries <tdevries@suse.de>
3517 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
3519 (read_comp_unit_head): ... here.
3521 2018-07-03 Tom Tromey <tom@tromey.com>
3523 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
3524 (stop_tracing, tstatus_command)
3525 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
3526 (print_one_static_tracepoint_marker): Update.
3527 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
3529 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
3531 (all_tracepoints, static_tracepoints_here): Return std::vector.
3533 2018-07-03 Tom Tromey <tom@tromey.com>
3535 * common/ptid.c (ptid_equal): Remove.
3536 * common/ptid.h (ptid_equal): Don't declare.
3537 * ada-tasks.c: Update.
3538 * breakpoint.c: Update.
3539 * common/agent.c: Update.
3540 * corelow.c: Update.
3541 * darwin-nat-info.c: Update.
3542 * darwin-nat.c: Update.
3544 * dtrace-probe.c: Update.
3545 * dummy-frame.c: Update.
3546 * fbsd-nat.c: Update.
3548 * gdbthread.h: Update.
3549 * gnu-nat.c: Update.
3550 * go32-nat.c: Update.
3551 * inf-loop.c: Update.
3552 * inf-ptrace.c: Update.
3553 * infcall.c: Update.
3557 * linux-fork.c: Update.
3558 * linux-nat.c: Update.
3559 * linux-thread-db.c: Update.
3560 * mi/mi-cmd-var.c: Update.
3561 * mi/mi-interp.c: Update.
3562 * mi/mi-main.c: Update.
3563 * nto-procfs.c: Update.
3564 * ppc-linux-tdep.c: Update.
3566 * python/py-inferior.c: Update.
3567 * python/py-record-btrace.c: Update.
3568 * python/py-record.c: Update.
3569 * ravenscar-thread.c: Update.
3570 * regcache.c: Update.
3571 * remote-sim.c: Update.
3573 * sol-thread.c: Update.
3576 * tui/tui-stack.c: Update.
3578 * windows-nat.c: Update.
3579 * windows-tdep.c: Update.
3581 2018-07-03 Tom Tromey <tom@tromey.com>
3583 * common/ptid.c (ptid_match): Remove.
3584 * common/ptid.h (ptid_match): Don't declare.
3585 * fbsd-nat.c: Update.
3588 * linux-nat.c: Update.
3589 * record-btrace.c: Update.
3590 * regcache.c: Update.
3593 2018-07-03 Tom Tromey <tom@tromey.com>
3595 * common/ptid.c (ptid_tid_p): Remove.
3596 * common/ptid.h (ptid_tid_p): Don't declare.
3597 * sol-thread.c: Update.
3599 2018-07-03 Tom Tromey <tom@tromey.com>
3601 * common/ptid.c (ptid_lwp_p): Remove.
3602 * common/ptid.h (ptid_lwp_p): Don't declare.
3603 * fbsd-nat.c: Update.
3604 * linux-nat.c: Update.
3605 * nat/linux-procfs.c: Update.
3606 * nat/x86-linux-dregs.c: Update.
3607 * sol-thread.c: Update.
3609 2018-07-03 Tom Tromey <tom@tromey.com>
3611 * common/ptid.c (ptid_is_pid): Remove.
3612 * common/ptid.h (ptid_is_pid): Don't declare.
3614 * linux-nat.c: Update.
3615 * mi/mi-interp.c: Update.
3619 2018-07-03 Tom Tromey <tom@tromey.com>
3621 * common/ptid.c (ptid_get_tid): Remove.
3622 * common/ptid.h (ptid_get_tid): Don't declare.
3623 * ada-tasks.c: Update.
3624 * aix-thread.c: Update.
3625 * bsd-uthread.c: Update.
3626 * darwin-nat.c: Update.
3627 * fbsd-nat.c: Update.
3628 * i386-darwin-nat.c: Update.
3630 * linux-tdep.c: Update.
3631 * nto-procfs.c: Update.
3632 * ppc-ravenscar-thread.c: Update.
3633 * python/py-infthread.c: Update.
3634 * ravenscar-thread.c: Update.
3635 * sol-thread.c: Update.
3636 * sparc-ravenscar-thread.c: Update.
3637 * windows-nat.c: Update.
3639 2018-07-03 Tom Tromey <tom@tromey.com>
3641 * common/ptid.c (ptid_get_lwp): Remove.
3642 * common/ptid.h (ptid_get_lwp): Don't declare.
3643 * aarch64-linux-nat.c: Update.
3644 * ada-tasks.c: Update.
3645 * aix-thread.c: Update.
3646 * amd64-linux-nat.c: Update.
3647 * arm-linux-nat.c: Update.
3648 * corelow.c: Update.
3649 * fbsd-nat.c: Update.
3650 * fbsd-tdep.c: Update.
3651 * gnu-nat.c: Update.
3652 * i386-cygwin-tdep.c: Update.
3653 * i386-gnu-nat.c: Update.
3654 * i386-linux-nat.c: Update.
3655 * ia64-linux-nat.c: Update.
3656 * inf-ptrace.c: Update.
3658 * linux-fork.c: Update.
3659 * linux-nat.c: Update.
3660 * linux-tdep.c: Update.
3661 * linux-thread-db.c: Update.
3662 * mips-linux-nat.c: Update.
3663 * nat/aarch64-linux-hw-point.c: Update.
3664 * nat/aarch64-linux.c: Update.
3665 * nat/linux-btrace.c: Update.
3666 * nat/linux-osdata.c: Update.
3667 * nat/linux-procfs.c: Update.
3668 * nat/x86-linux-dregs.c: Update.
3669 * obsd-nat.c: Update.
3670 * ppc-fbsd-nat.c: Update.
3671 * ppc-linux-nat.c: Update.
3673 * python/py-infthread.c: Update.
3674 * ravenscar-thread.c: Update.
3676 * s390-linux-nat.c: Update.
3677 * sol-thread.c: Update.
3678 * sol2-tdep.c: Update.
3679 * spu-linux-nat.c: Update.
3680 * x86-linux-nat.c: Update.
3681 * xtensa-linux-nat.c: Update.
3683 2018-07-03 Tom Tromey <tom@tromey.com>
3685 * common/ptid.c (ptid_get_pid): Remove.
3686 * common/ptid.h (ptid_get_pid): Don't declare.
3687 * aarch64-linux-nat.c: Update.
3688 * ada-lang.c: Update.
3689 * aix-thread.c: Update.
3690 * alpha-bsd-nat.c: Update.
3691 * amd64-fbsd-nat.c: Update.
3692 * amd64-linux-nat.c: Update.
3693 * arm-linux-nat.c: Update.
3694 * arm-nbsd-nat.c: Update.
3696 * break-catch-syscall.c: Update.
3697 * breakpoint.c: Update.
3698 * bsd-uthread.c: Update.
3699 * corelow.c: Update.
3701 * darwin-nat.c: Update.
3702 * fbsd-nat.c: Update.
3703 * fbsd-tdep.c: Update.
3705 * gnu-nat.c: Update.
3706 * hppa-nbsd-nat.c: Update.
3707 * hppa-obsd-nat.c: Update.
3708 * i386-fbsd-nat.c: Update.
3709 * ia64-linux-nat.c: Update.
3710 * inf-ptrace.c: Update.
3712 * inferior.c: Update.
3713 * inferior.h: Update.
3716 * linux-fork.c: Update.
3717 * linux-nat.c: Update.
3718 * linux-tdep.c: Update.
3719 * linux-thread-db.c: Update.
3720 * m68k-bsd-nat.c: Update.
3721 * mi/mi-interp.c: Update.
3722 * mi/mi-main.c: Update.
3723 * mips-linux-nat.c: Update.
3724 * mips-nbsd-nat.c: Update.
3725 * mips64-obsd-nat.c: Update.
3726 * nat/aarch64-linux-hw-point.c: Update.
3727 * nat/aarch64-linux.c: Update.
3728 * nat/linux-btrace.c: Update.
3729 * nat/linux-osdata.c: Update.
3730 * nat/linux-procfs.c: Update.
3731 * nat/x86-linux-dregs.c: Update.
3732 * nto-procfs.c: Update.
3733 * obsd-nat.c: Update.
3734 * ppc-linux-nat.c: Update.
3735 * ppc-nbsd-nat.c: Update.
3736 * ppc-obsd-nat.c: Update.
3737 * proc-service.c: Update.
3739 * python/py-inferior.c: Update.
3740 * python/py-infthread.c: Update.
3741 * ravenscar-thread.c: Update.
3743 * remote-sim.c: Update.
3745 * rs6000-nat.c: Update.
3746 * s390-linux-nat.c: Update.
3747 * sh-nbsd-nat.c: Update.
3748 * sol-thread.c: Update.
3749 * sparc-nat.c: Update.
3750 * sparc64-tdep.c: Update.
3751 * spu-linux-nat.c: Update.
3752 * spu-tdep.c: Update.
3753 * target-debug.h: Update.
3756 * tid-parse.c: Update.
3757 * tracefile-tfile.c: Update.
3758 * vax-bsd-nat.c: Update.
3759 * windows-nat.c: Update.
3760 * x86-linux-nat.c: Update.
3761 * x86-nat.c: Update.
3763 2018-07-03 Tom Tromey <tom@tromey.com>
3765 * common/ptid.c (pid_to_ptid): Remove.
3766 * common/ptid.h (pid_to_ptid): Don't declare.
3767 * aix-thread.c: Update.
3768 * arm-linux-nat.c: Update.
3769 * common/ptid.c: Update.
3770 * common/ptid.h: Update.
3771 * corelow.c: Update.
3773 * darwin-nat.c: Update.
3774 * fbsd-nat.c: Update.
3775 * fork-child.c: Update.
3776 * gnu-nat.c: Update.
3777 * go32-nat.c: Update.
3778 * inf-ptrace.c: Update.
3780 * inferior.c: Update.
3782 * linux-fork.c: Update.
3783 * linux-nat.c: Update.
3784 * nat/aarch64-linux-hw-point.c: Update.
3785 * nat/fork-inferior.c: Update.
3786 * nat/x86-linux-dregs.c: Update.
3787 * nto-procfs.c: Update.
3788 * obsd-nat.c: Update.
3790 * progspace.c: Update.
3792 * rs6000-nat.c: Update.
3793 * s390-linux-nat.c: Update.
3794 * sol-thread.c: Update.
3795 * spu-linux-nat.c: Update.
3798 * tracefile-tfile.c: Update.
3799 * windows-nat.c: Update.
3801 2018-07-03 Tom Tromey <tom@tromey.com>
3803 * common/ptid.h (ptid_build): Don't declare.
3804 * common/ptid.c (ptid_build): Remove.
3805 * aix-thread.c: Update.
3806 * bsd-kvm.c: Update.
3807 * bsd-uthread.c: Update.
3808 * common/agent.c: Update.
3809 * common/ptid.c: Update.
3810 * common/ptid.h: Update.
3811 * corelow.c: Update.
3812 * darwin-nat.c: Update.
3813 * fbsd-nat.c: Update.
3814 * gnu-nat.c: Update.
3815 * linux-fork.c: Update.
3816 * linux-nat.c: Update.
3817 * linux-thread-db.c: Update.
3818 * nat/linux-osdata.c: Update.
3819 * nat/linux-procfs.c: Update.
3820 * nto-procfs.c: Update.
3821 * obsd-nat.c: Update.
3822 * proc-service.c: Update.
3824 * ravenscar-thread.c: Update.
3825 * remote-sim.c: Update.
3827 * sol-thread.c: Update.
3829 * windows-nat.c: Update.
3831 2018-07-03 Tom Tromey <tom@tromey.com>
3833 * infrun.c (follow_exec): Use exit_inferior_silent.
3834 * inferior.c (exit_inferior_num_silent): Remove.
3835 * inferior.h (exit_inferior_num_silent): Don't declare.
3837 2018-07-03 Tom Tromey <tom@tromey.com>
3840 * darwin-nat.c (darwin_attach_pid): Reset inferior and
3841 inferior_ptid on error.
3843 2018-07-02 Maciej W. Rozycki <macro@mips.com>
3844 Simon Marchi <simon.marchi@polymtl.ca>
3847 * disasm.h (gdb_disassembler): Add
3848 `m_disassembler_options_holder'. member
3849 * disasm.c (get_all_disassembler_options): New function.
3850 (gdb_disassembler::gdb_disassembler): Use it.
3851 (gdb_buffered_insn_length_init_dis): Likewise.
3852 (gdb_buffered_insn_length): Adjust accordingly.
3853 (set_disassembler_options): Handle options with arguments.
3854 (show_disassembler_options_sfunc): Likewise. Add a leading new
3855 line if showing options with descriptions.
3856 (disassembler_options_completer): Adapt to using the
3857 `disasm_options_and_args_t' structure.
3858 * mips-tdep.c (mips_disassembler_options): New variable.
3859 (mips_disassembler_options_o32): Likewise.
3860 (mips_disassembler_options_n32): Likewise.
3861 (mips_disassembler_options_n64): Likewise.
3862 (gdb_print_insn_mips): Don't set `disassembler_options'.
3863 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
3865 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
3866 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
3867 `gdbarch_disassembler_options_implicit' and
3868 `gdbarch_valid_disassembler_options'.
3869 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
3870 `disasm_options_and_args_t' structure.
3871 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
3873 (valid_disassembler_options): Switch from `disasm_options_t' to
3874 the `disasm_options_and_args_t' structure.
3875 * NEWS: Document `set disassembler-options' support for the MIPS
3877 * gdbarch.h: Regenerate.
3878 * gdbarch.c: Regenerate.
3880 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3882 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
3884 2018-06-29 Joel Brobecker <brobecker@adacore.com>
3886 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
3887 parameter in call to amd64_target_description.
3888 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
3889 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
3890 (amd64fbsd_init_abi): Likewise.
3891 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
3892 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
3893 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
3894 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
3896 2018-06-29 Pedro Alves <palves@redhat.com>
3898 * gdb/amd64-tdep.h (amd64_create_target_description): Add
3899 "segments" parameter.
3900 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
3901 (_initialize_amd64_tdep): Update call to
3902 amd64_create_target_description.
3903 (amd64_target_description): Add "segments" parameter. Adjust
3904 the implementation to use it.
3905 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
3906 call to amd64_create_target_description.
3907 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
3908 * gdb/arch/amd64.h (amd64_create_target_description): Add
3909 "segments" register.
3910 * gdb/arch/amd64.c (amd64_create_target_description): Add
3911 "segments" parameter. Call create_feature_i386_64bit_segments
3912 only if SEGMENTS is true.
3913 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
3914 call to amd64_create_target_description.
3916 2018-06-29 Pedro Alves <palves@redhat.com>
3918 * thread.c (thread_target_id_str): New, factored out from ...
3919 (print_thread_info_1): ... here. Use it to compute the max
3920 "Target Id" column width.
3922 2018-06-29 Pedro Alves <palves@redhat.com>
3924 * remote.c (remote_target::extra_thread_info): Delete
3925 'display_buf' and 'n' locals. from the cache, regardless of
3926 packet mechanims is in use. Use cache for qThreadExtra and qP
3929 2018-06-29 Pedro Alves <palves@redhat.com>
3931 * blockframe.c (find_pc_sect_containing_function): New function.
3932 * breakpoint.c (print_breakpoint_location): Don't call
3933 find_pc_sect_function.
3934 * linespec.c (create_sals_line_offset): Record the location's
3936 * linespec.c (convert_address_location_to_sals): Fill in sal's
3937 symbol with find_pc_sect_containing_function.
3938 * symtab.c (find_function_start_sal): Rename to ...
3939 (find_function_start_sal_1): ... this.
3940 (find_function_start_sal): Reimplement as wrapper around
3941 find_function_start_sal_1, and use
3942 find_pc_sect_containing_function to fill in the sal's symbol.
3943 (find_function_start_sal(symbol*, bool)): Adjust.
3944 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
3946 (find_pc_sect_containing_function): Declare.
3948 2018-06-29 Pedro Alves <palves@redhat.com>
3950 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
3951 true if the the location has no symbol.
3953 2018-06-28 Tom Tromey <tom@tromey.com>
3955 * NEWS: Mention --enable-codesign.
3956 * silent-rules.mk (ECHO_SIGN): New variable.
3957 * configure.ac: Add --enable-codesign.
3958 * configure: Rebuild.
3959 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
3960 (gdb$(EXEEXT)): Optionally invoke codesign.
3962 2018-06-28 Pedro Alves <palves@redhat.com>
3964 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
3966 (switch_to_thread_no_regs): Adjust comment.
3967 * infcmd.c (stop_pc): Delete.
3968 (post_create_inferior, info_program_command): Replace references
3969 to stop_pc with references to thread_info->suspend.stop_pc.
3970 * inferior.h (stop_pc): Delete declaration.
3971 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
3972 (handle_inferior_event_1, handle_signal_stop)
3973 (process_event_stop_test, keep_going_stepped_thread)
3974 (handle_step_into_function, handle_step_into_function_backward)
3975 (print_stop_location): Replace references to stop_pc with
3976 references to thread_info->suspend.stop_pc.
3977 (struct infcall_suspend_state) <stop_pc>: Delete field.
3978 (save_infcall_suspend_state, restore_infcall_suspend_state):
3979 Remove references to inf_stat->stop_pc.
3980 * linux-fork.c (fork_load_infrun_state): Likewise.
3981 * record-btrace.c (record_btrace_set_replay): Likewise.
3982 * record-full.c (record_full_goto_entry): Likewise.
3983 * remote.c (print_one_stopped_thread): Likewise.
3984 * target.c (target_resume): Extend comment.
3985 * thread.c (set_executing_thread): New.
3986 (set_executing): Use it.
3987 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
3988 Remove references to stop_pc.
3990 2018-06-28 Pedro Alves <palves@redhat.com>
3992 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
3993 Moving fetching stop_pc until after ecs->event_thread is refreshed.
3995 2018-06-28 Tom Tromey <tom@tromey.com>
3997 * coffread.c (coff_symfile_finish): Update.
3998 * xcoffread.c (xcoff_symfile_finish): Update.
3999 * elfread.c (elf_symfile_finish): Update.
4000 * symfile.h (dwarf2_free_objfile): Don't declare.
4001 * dwarf2read.c (_initialize_dwarf2_read): Use
4002 register_objfile_data_with_cleanup.
4003 (dwarf2_free_objfile): Now static. Change signature.
4005 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4007 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4008 option "-o" to add-symbol-file-load to add an offset to each
4009 section's load address.
4010 * symfile.c (set_objfile_default_section_offset): New function.
4012 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4014 * symfile.c (add_symbol_file_command): Make sure that sections
4015 with the same name are sorted in the same order.
4017 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4019 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4020 require the second argument. If omitted, load sections at the
4021 addresses specified in the file.
4023 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4025 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4026 (_initialize_symfile): Add option "-o" to symbol-file to add an
4027 offset to each section of the symbol file.
4029 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4031 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4033 2018-06-27 Tom Tromey <tom@tromey.com>
4035 * stack.c (_initialize_stack): Update "func" help text.
4037 2018-06-27 Tom Tromey <tom@tromey.com>
4039 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4041 (unwind_infopy_str, pyuw_create_unwind_info)
4042 (unwind_infopy_add_saved_register, pyuw_sniffer)
4043 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4045 (struct saved_reg): Add constructor.
4046 <value>: Now a gdbpy_ref<>.
4048 2018-06-27 Tom Tromey <tom@tromey.com>
4050 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4052 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4054 * gdb-gdb.py.in: Format using autopep8.
4056 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4058 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4059 (type_lookup_function): Recognize CORE_ADDR values.
4061 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4063 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4066 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4068 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4071 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4073 * gdb-gdb.py: Move to...
4074 * gdb-gdb.py.in: ... here.
4075 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4076 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4078 (distclean): Remove gdb-gdb.py when cleaning.
4079 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4080 * configure: Re-generate.
4082 2018-06-27 Pedro Alves <palves@redhat.com>
4084 * proc-service.c (get_ps_regcache): New.
4085 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4086 (ps_lsetfpregs): Use it.
4088 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
4091 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4092 (dwarf_decode_lines_1): Adjust.
4094 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4096 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4098 <info_proc>: Likewise.
4100 2018-06-26 Joel Brobecker <brobecker@adacore.com>
4102 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4103 to windows_fetch_one_register, and only handle the case of
4104 fetching one register. Move the code that reloads the context
4105 and iterates over all registers if R is negative to...
4106 (windows_nat_target::fetch_registers): ... here.
4107 (do_windows_store_inferior_registers): Rename to
4108 windows_store_one_register, and only handle the case of storing
4109 one register. Move the code that handles the case where r is
4111 (windows_nat_target::store_registers) ... here.
4113 2018-06-26 Tom Tromey <tom@tromey.com>
4116 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4117 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4119 (rust_internal_print_type): Add podata parameter.
4120 (rust_print_type): Update.
4122 2018-06-26 Tom Tromey <tom@tromey.com>
4124 * typeprint.h (struct print_offset_data) <update, finish,
4125 maybe_print_hole>: New methods.
4126 <indentation>: New constant.
4127 * typeprint.c (print_offset_data::indentation): Define.
4128 (print_offset_data::maybe_print_hole, print_offset_data::update)
4129 (print_offset_data::finish): Move from c-typeprint.c and rename.
4130 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4131 (print_spaces_filtered_with_print_options): Update.
4132 (c_print_type_union_field_offset, maybe_print_hole)
4133 (c_print_type_struct_field_offset): Move to typeprint.c and
4135 (c_type_print_base_struct_union): Update.
4137 2018-06-25 Pedro Alves <palves@redhat.com>
4139 * gdbthread.h (thread_info_ref, delete_thread)
4140 (delete_thread_silent, first_thread_of_inferior)
4141 (any_thread_of_inferior, switch_to_thread)
4142 (enable_thread_stack_temporaries)
4143 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4144 (get_last_thread_stack_temporary)
4145 (value_in_thread_stack_temporaries, can_access_registers_thread):
4146 Spell out "struct thread_info" instead of just "thread_info".
4147 * inferior.h (notice_new_inferior): Likewise.
4149 2018-06-25 Pedro Alves <palves@redhat.com>
4151 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4152 pass thread_info pointer to delete_thread.
4153 (windows_nat_target::detach): Pass inferior pointer to
4155 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4157 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4158 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4159 and pass a thread_info pointer to delete_thread.
4160 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4161 pass thread_info pointer to delete_thread.
4162 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4163 delete_thread_silent call.
4164 * procfs.c (procfs_target::detach): Pass inferior pointer to
4166 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4167 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4168 delete_thread_silent call.
4169 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4170 pass thread_info pointer to delete_thread.
4171 (windows_nat_target::detach): Pass inferior pointer to
4174 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4176 * regcache.c (readable_regcache::read_part): Fix asserts.
4177 (reg_buffer::raw_collect_part): New function.
4178 (regcache::write_part): Fix asserts.
4179 (reg_buffer::raw_supply_part): New function.
4180 (regcache::transfer_regset_register): New helper function.
4181 (regcache::transfer_regset): Call new functions.
4182 (regcache_supply_regset): Use gdb_byte*.
4183 (regcache::supply_regset): Likewise.
4184 (regcache_collect_regset): Likewise.
4185 (regcache::collect_regset): Likewise.
4186 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4187 (reg_buffer::raw_supply_part): Likewise.
4188 (regcache::transfer_regset_register): Likewise.
4189 (regcache::transfer_regset): Use gdb_byte*.
4191 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4193 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4195 2018-06-21 Pedro Alves <palves@redhat.com>
4197 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4198 instead of a ptid_t. All callers adjusted.
4199 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4201 (print_ada_task_info, display_current_task_id, task_command_1):
4203 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4205 (breakpoint_kind): Adjust.
4206 (remove_breakpoints_pid): Rename to ...
4207 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4208 pointer. All callers adjusted.
4209 (bpstat_clear_actions): Use inferior_thread.
4210 (get_bpstat_thread): New.
4211 (bpstat_do_actions): Use it.
4212 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4213 to take a thread_info pointer. All callers adjusted.
4214 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4215 (breakpoint_re_set_thread): Use inferior_thread.
4216 * breakpoint.h (struct inferior): Forward declare.
4217 (bpstat_stop_status): Update.
4218 (remove_breakpoints_pid): Delete.
4219 (remove_breakpoints_inf): New.
4220 * bsd-uthread.c (bsd_uthread_target::wait)
4221 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4222 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4223 (maint_btrace_packet_history_cmd)
4224 (maint_btrace_clear_packet_history_cmd): Adjust.
4225 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4227 * cli/cli-interp.c: Include "inferior.h".
4228 * common/refcounted-object.h (struct
4229 refcounted_object_ref_policy): New.
4230 * compile/compile-object-load.c: Include gdbthread.h.
4231 (store_regs): Use inferior_thread.
4232 * corelow.c (core_target::close): Use current_inferior.
4233 (core_target_open): Adjust to use first_thread_of_inferior and use
4234 the current inferior.
4235 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4236 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4237 <thread>: ... this new field. All references adjusted.
4238 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4239 Take a thread_info pointer instead of a ptid_t.
4240 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4241 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4242 thread_info pointer instead of a ptid_t.
4243 * elfread.c: Include "inferior.h".
4244 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4245 Use inferior_thread.
4246 * eval.c (evaluate_subexp): Likewise.
4247 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4249 * gdb_proc_service.h (struct thread_info): Forward declare.
4250 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4251 <thread>: ... this new field. All references adjusted.
4252 * gdbarch.h, gdbarch.c: Regenerate.
4253 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4254 'thread' parameter. All implementations and callers adjusted.
4255 * gdbthread.h (thread_info) <set_running>: New method.
4256 (delete_thread, delete_thread_silent): Take a thread_info pointer
4258 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4259 (first_thread_of_process): Delete, replaced by ...
4260 (first_thread_of_inferior): ... this new function. All callers
4262 (any_live_thread_of_process): Delete, replaced by ...
4263 (any_live_thread_of_inferior): ... this new function. All callers
4265 (switch_to_thread, switch_to_no_thread): Declare.
4266 (is_executing): Delete.
4267 (enable_thread_stack_temporaries): Update comment.
4268 <enable_thread_stack_temporaries>: Take a thread_info pointer
4269 instead of a ptid_t. Incref the thread.
4270 <~enable_thread_stack_temporaries>: Decref the thread.
4273 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4274 (get_last_thread_stack_temporary)
4275 (value_in_thread_stack_temporaries, can_access_registers_thread):
4276 Take a thread_info pointer instead of a ptid_t. All callers
4278 * infcall.c (get_call_return_value): Use inferior_thread.
4279 (run_inferior_call): Work with thread pointers instead of ptid_t.
4280 (call_function_by_hand_dummy): Work with thread pointers instead
4281 of ptid_t. Use thread_info_ref.
4282 * infcmd.c (proceed_thread_callback): Access thread's state
4284 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4285 access thread's state directly.
4286 (continue_command): Use inferior_thread.
4287 (info_program_command): Use find_thread_ptid and access thread
4289 (proceed_after_attach_callback): Use thread state directly.
4290 (notice_new_inferior): Take a thread_info pointer instead of a
4291 ptid_t. All callers adjusted.
4292 (exit_inferior): Take an inferior pointer instead of a pid. All
4294 (exit_inferior_silent): New.
4295 (detach_inferior): Delete.
4296 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4297 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4298 (detach_inferior_command, kill_inferior_command): Use
4299 find_inferior_id instead of valid_gdb_inferior_id and
4300 gdb_inferior_id_to_pid.
4301 (inferior_command): Use inferior and thread pointers.
4302 * inferior.h (struct thread_info): Forward declare.
4303 (notice_new_inferior): Take a thread_info pointer instead of a
4304 ptid_t. All callers adjusted.
4305 (detach_inferior): Delete declaration.
4306 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4307 instead of a pid. All callers adjusted.
4308 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4309 (valid_gdb_inferior_id): Delete.
4310 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4311 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4312 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4314 <inf>: ... this new field.
4315 <step_ptid>: Delete, replaced by ...
4316 <step_thread>: ... this new field.
4317 (get_displaced_stepping_state): Take an inferior pointer instead
4318 of a pid. All callers adjusted.
4319 (displaced_step_in_progress_any_inferior): Adjust.
4320 (displaced_step_in_progress_thread): Take a thread pointer instead
4321 of a ptid_t. All callers adjusted.
4322 (displaced_step_in_progress, add_displaced_stepping_state): Take
4323 an inferior pointer instead of a pid. All callers adjusted.
4324 (get_displaced_step_closure_by_addr): Adjust.
4325 (remove_displaced_stepping_state): Take an inferior pointer
4326 instead of a pid. All callers adjusted.
4327 (displaced_step_prepare_throw, displaced_step_prepare)
4328 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4329 All callers adjusted.
4330 (start_step_over): Adjust.
4331 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4332 displaced step queue.
4333 (do_target_resume): Adjust.
4334 (fetch_inferior_event): Use inferior_thread.
4335 (context_switch, get_inferior_stop_soon): Take an
4336 execution_control_state pointer instead of a ptid_t. All callers
4338 (switch_to_thread_cleanup): Delete.
4339 (stop_all_threads): Use scoped_restore_current_thread.
4340 * inline-frame.c: Include "gdbthread.h".
4341 (inline_state) <inline_state>: Take a thread pointer instead of a
4342 ptid_t. All callers adjusted.
4343 <ptid>: Delete, replaced by ...
4344 <thread>: ... this new field.
4345 (find_inline_frame_state): Take a thread pointer instead of a
4346 ptid_t. All callers adjusted.
4347 (skip_inline_frames, step_into_inline_frame)
4348 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4349 pointer instead of a ptid_t. All callers adjusted.
4350 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4351 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4352 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4354 * linux-nat.c (get_detach_signal): Likewise.
4355 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4356 (thread_db_notice_clone): Adjust.
4357 (thread_db_find_new_threads_silently)
4358 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4359 a thread pointer instead of a ptid_t. All callers adjusted.
4360 * mi/mi-cmd-var.c: Include "inferior.h".
4361 (mi_cmd_var_update_iter): Update to use thread pointers.
4362 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4364 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4366 (mi_output_running): ... this new function.
4367 (mi_on_resume_1): Adjust to use it.
4368 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4369 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4371 (interrupt_thread_callback): : Adjust to use thread and inferior
4373 * proc-service.c: Include "gdbthread.h".
4374 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4375 * progspace-and-thread.c: Include "inferior.h".
4376 * progspace.c: Include "inferior.h".
4377 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4378 hold a reference to an inferior_object.
4379 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4381 * python/py-inferior.c (struct inferior_object): Give the type a
4382 tag name instead of a typedef.
4383 (python_on_normal_stop): No need to check if the current thread is
4385 (inferior_to_inferior_object): Change return type to
4386 inferior_object. All callers adjusted.
4387 (find_thread_object): Delete, bits factored out to ...
4388 (thread_to_thread_object): ... this new function.
4389 * python/py-infthread.c (create_thread_object): Use
4390 inferior_to_inferior_object.
4391 (thpy_is_stopped): Use thread pointer directly.
4392 (gdbpy_selected_thread): Use inferior_thread.
4393 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4394 field, replaced with ...
4395 <thread>: ... this new field. All users adjusted.
4396 (btpy_insn_or_gap_new): Drop const.
4397 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
4399 * python/py-record.c: Include "gdbthread.h".
4400 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4401 a ptid_t. All callers adjusted.
4402 (gdbpy_current_recording): Use inferior_thread.
4403 * python/py-record.h (recpy_record_object) <ptid>: Delete
4404 field, replaced with ...
4405 <thread>: ... this new field. All users adjusted.
4406 (recpy_element_object) <ptid>: Delete
4407 field, replaced with ...
4408 <thread>: ... this new field. All users adjusted.
4409 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4410 a ptid_t. All callers adjusted.
4411 * python/py-threadevent.c: Include "gdbthread.h".
4412 (get_event_thread): Use thread_to_thread_object.
4413 * python/python-internal.h (struct inferior_object): Forward
4415 (find_thread_object, find_inferior_object): Delete declarations.
4416 (thread_to_thread_object, inferior_to_inferior_object): New
4418 * record-btrace.c: Include "inferior.h".
4419 (require_btrace_thread): Use inferior_thread.
4420 (record_btrace_frame_sniffer)
4421 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
4422 (get_thread_current_frame): Use scoped_restore_current_thread and
4424 (get_thread_current_frame): Use thread pointer directly.
4425 (record_btrace_replay_at_breakpoint): Use thread's inferior
4427 * record-full.c: Include "inferior.h".
4428 * regcache.c: Include "gdbthread.h".
4429 (get_thread_arch_regcache): Use the inferior's address space
4431 (get_thread_regcache, registers_changed_thread): New.
4432 * regcache.h (get_thread_regcache(thread_info *thread)): New
4434 (registers_changed_thread): New.
4435 (remote_target) <remote_detach_1>: Swap order of parameters.
4436 (remote_add_thread): <remote_add_thread>: Return the new thread.
4437 (get_remote_thread_info(ptid_t)): New overload.
4438 (remote_target::remote_notice_new_inferior): Use thread pointers
4440 (remote_target::process_initial_stop_replies): Use
4441 thread_info::set_running.
4442 (remote_target::remote_detach_1, remote_target::detach)
4443 (extended_remote_target::detach): Adjust.
4444 * stack.c (frame_show_address): Use inferior_thread.
4445 * target-debug.h (target_debug_print_thread_info_pp): New.
4446 * target-delegates.c: Regenerate.
4447 * target.c (default_thread_address_space): Delete.
4448 (memory_xfer_partial_1): Use current_inferior.
4449 (target_detach): Use current_inferior.
4450 (target_thread_address_space): Delete.
4451 (generic_mourn_inferior): Use current_inferior.
4452 * target.h (struct target_ops) <thread_address_space>: Delete.
4453 (target_thread_address_space): Delete.
4454 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
4456 (delete_thread_1, delete_thread, delete_thread_silent): Take a
4457 thread pointer instead of a ptid_t. Adjust all callers.
4458 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
4459 (first_thread_of_process): Delete, replaced by ...
4460 (first_thread_of_inferior): ... this new function. All callers
4462 (any_thread_of_process): Rename to ...
4463 (any_thread_of_inferior): ... this, and take an inferior pointer.
4464 (any_live_thread_of_process): Rename to ...
4465 (any_live_thread_of_inferior): ... this, and take an inferior
4467 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4468 (value_in_thread_stack_temporaries)
4469 (get_last_thread_stack_temporary): Take a thread pointer instead
4470 of a ptid_t. Adjust all callers.
4471 (thread_info::set_running): New.
4472 (validate_registers_access): Use inferior_thread.
4473 (can_access_registers_ptid): Rename to ...
4474 (can_access_registers_thread): ... this, and take a thread
4476 (print_thread_info_1): Adjust to compare thread pointers instead
4478 (switch_to_no_thread, switch_to_thread): Make extern.
4479 (scoped_restore_current_thread::~scoped_restore_current_thread):
4480 Use m_thread pointer directly.
4481 (scoped_restore_current_thread::scoped_restore_current_thread):
4482 Use inferior_thread.
4483 (thread_command): Use thread pointer directly.
4484 (thread_num_make_value_helper): Use inferior_thread.
4485 * top.c (execute_command): Use inferior_thread.
4486 * tui/tui-interp.c: Include "inferior.h".
4487 * varobj.c (varobj_create): Use inferior_thread.
4488 (value_of_root_1): Use find_thread_global_id instead of
4489 global_thread_id_to_ptid.
4491 2018-06-21 Alan Hayward <alan.hayward@arm.com>
4493 * regcache.c (readable_regcache::read_part): Avoid memcpy when
4495 (regcache::write_part): Likewise.
4496 (readable_regcache::cooked_read_part): Update comment.
4497 (readable_regcache::cooked_write_part): Likewise.
4498 * regcache.h: (readable_regcache::read_part): Likewise.
4499 (regcache::write_part): Likewise.
4501 2018-06-21 Richard Bunt <richard.bunt@arm.com>
4502 Dirk Schubert <dirk.schubert@arm.com>
4504 * aarch64-linux-nat.c (post_attach): New.
4505 (aarch64_linux_nat_target::post_attach): Override post_attach to
4506 record the number of hardware debug registers.
4508 2018-06-20 Tom Tromey <tom@tromey.com>
4510 * python/py-param.c (add_setshow_generic): Make parameters const.
4511 (parmpy_init): Update.
4513 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4515 * regcache.h (regcache_cooked_read_ftype): Rename to...
4516 (register_read_ftype): ...this, change type to function_view.
4517 (class reg_buffer) <save>: Remove src parameter.
4518 (readonly_detached_regcache) <readonly_detached_regcache>: Make
4519 parameter non-const in first overload. Remove src parameter in
4521 * regcache.c (do_cooked_read): Remove.
4522 (readonly_detached_regcache::readonly_detached_regcache): Make
4523 parameter non-const, adjust call to other constructor.
4524 (reg_buffer::save): Remove src parameter.
4525 * frame.c (do_frame_register_read): Remove.
4526 (frame_save_as_regcache): Use lambda function.
4527 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
4528 parameter to ppu2spu_data *.
4529 (ppu2spu_sniffer): Use lambda function.
4531 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4533 * record-full.c (record_full_target::insert_breakpoint): Remove
4534 "struct" keyword, add const.
4536 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4538 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
4539 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
4540 * configure.ac: Remove AC_PREREQ, add missing quoting.
4541 * gnulib/configure.ac: Modernize usage of
4542 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
4543 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
4544 (AUTOMAKE_VERSION): Bump to 1.15.1.
4545 * configure: Re-generate.
4546 * config.in: Re-generate.
4547 * aclocal.m4: Re-generate.
4548 * gnulib/aclocal.m4: Re-generate.
4549 * gnulib/config.in: Re-generate.
4550 * gnulib/configure: Re-generate.
4551 * gnulib/import/Makefile.in: Re-generate.
4553 2018-06-19 Pedro Alves <palves@redhat.com>
4555 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
4556 (lookup_minimal_symbol_by_pc_section): ... here with
4557 gdb_assert_not_reached added.
4559 2018-06-19 Pedro Alves <palves@redhat.com>
4561 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
4562 parameter with a block parameter. Compare location's block symbol
4563 with the frame's block instead of addresses.
4564 (skip_inline_frames): Pass the current block instead of the
4565 frame's address. Break out as soon as we determine the frame
4566 should not be skipped.
4568 2018-06-18 Tom Tromey <tom@tromey.com>
4570 * solib-aix.c (solib_aix_get_section_offsets): Return
4572 (solib_aix_solib_create_inferior_hook): Update.
4574 2018-06-18 Tom Tromey <tom@tromey.com>
4576 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
4578 2018-06-18 Tom Tromey <tom@tromey.com>
4580 * solib-frv.c (frv_relocate_main_executable): Use
4582 * solib-dsbt.c (dsbt_relocate_main_executable): Use
4585 2018-06-18 Tom Tromey <tom@tromey.com>
4587 * objfiles.h (inhibit_section_map_updates): Update.
4588 (resume_section_map_updates, resume_section_map_updates_cleanup):
4590 * solib-svr4.c (svr4_handle_solib_event): Update.
4591 * objfiles.c (inhibit_section_map_updates): Return
4592 scoped_restore_tmpl<int>.
4593 (resume_section_map_updates, resume_section_map_updates_cleanup):
4596 2018-06-18 Tom Tromey <tom@tromey.com>
4598 * valprint.h (read_string): Update.
4599 * valprint.c (read_string): Change type of "buffer".
4600 (val_print_string): Update.
4601 * python/py-value.c (valpy_string): Update.
4602 * language.h (struct language_defn) <la_get_string>: Change
4604 (default_get_string, c_get_string): Update.
4605 * language.c (default_get_string): Change type of "buffer".
4606 * guile/scm-value.c (gdbscm_value_to_string): Update.
4607 * c-lang.c (c_get_string): Change type of "buffer".
4609 2018-06-18 Tom Tromey <tom@tromey.com>
4611 * ser-mingw.c (struct pipe_state_destroyer): New.
4612 (pipe_state_up): New typedef.
4613 (cleanup_pipe_state): Remove.
4614 (pipe_windows_open): Use pipe_state_up. Don't release argv.
4616 2018-06-18 Tom Tromey <tom@tromey.com>
4618 * rust-lang.h (rust_yyerror): Don't declare.
4619 * rust-lang.c (rust_language_defn): Update.
4620 * rust-exp.y (yyerror): Now static.
4621 * parse.c (parse_exp_in_context_1): Update.
4622 * p-lang.h (p_yyerror): Don't declare.
4623 * p-lang.c (p_language_defn): Update.
4624 * p-exp.y (yyerror): Now static.
4625 * opencl-lang.c (opencl_language_defn): Update.
4626 * objc-lang.c (objc_language_defn): Update.
4627 * m2-lang.h (m2_yyerror): Don't declare.
4628 * m2-lang.c (m2_language_defn): Update.
4629 * m2-exp.y (yyerror): Now static.
4630 * language.h (struct language_defn) <la_error>: Remove.
4631 * language.c (unk_lang_error): Remove.
4632 (unknown_language_defn, auto_language_defn): Remove.
4633 * go-lang.h (go_yyerror): Don't declare.
4634 * go-lang.c (go_language_defn): Update.
4635 * go-exp.y (yyerror): Now static.
4636 * f-lang.h (f_yyerror): Don't declare.
4637 * f-lang.c (f_language_defn): Update.
4638 * f-exp.y (yyerror): Now static.
4639 * d-lang.h (d_yyerror): Don't declare.
4640 * d-lang.c (d_language_defn): Update.
4641 * d-exp.y (yyerror): Now static.
4642 * c-lang.h (c_yyerror): Don't declare.
4643 * c-lang.c (c_language_defn, cplus_language_defn)
4644 (asm_language_defn, minimal_language_defn): Update.
4645 * c-exp.y (yyerror): Now static.
4646 * ada-lang.h (ada_yyerror): Don't declare.
4647 * ada-lang.c (ada_language_defn): Update.
4648 * ada-exp.y (yyerror): Now static.
4650 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4652 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
4653 (store_sveregs_to_thread): Likewise.
4654 (aarch64_linux_fetch_inferior_registers): Check for SVE.
4655 (aarch64_linux_store_inferior_registers): Likewise.
4656 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
4658 (aarch64_sve_regs_copy_to_regcache): Likewise.
4659 (aarch64_sve_regs_copy_from_regcache): Likewise.
4660 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
4662 (aarch64_sve_regs_copy_to_regcache): Likewise.
4663 (aarch64_sve_regs_copy_from_regcache): Likewise.
4664 (sve_context): Structure from Linux headers.
4665 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
4666 (SVE_SIG_ZREG_SIZE): Likewise.
4667 (SVE_SIG_PREG_SIZE): Likewise.
4668 (SVE_SIG_FFR_SIZE): Likewise.
4669 (SVE_SIG_REGS_OFFSET): Likewise.
4670 (SVE_SIG_ZREGS_OFFSET): Likewise.
4671 (SVE_SIG_ZREG_OFFSET): Likewise.
4672 (SVE_SIG_ZREGS_SIZE): Likewise.
4673 (SVE_SIG_PREGS_OFFSET): Likewise.
4674 (SVE_SIG_PREG_OFFSET): Likewise.
4675 (SVE_SIG_PREGS_SIZE): Likewise.
4676 (SVE_SIG_FFR_OFFSET): Likewise.
4677 (SVE_SIG_REGS_SIZE): Likewise.
4678 (SVE_SIG_CONTEXT_SIZE): Likewise.
4679 (SVE_PT_REGS_MASK): Likewise.
4680 (SVE_PT_REGS_FPSIMD): Likewise.
4681 (SVE_PT_REGS_SVE): Likewise.
4682 (SVE_PT_VL_INHERIT): Likewise.
4683 (SVE_PT_VL_ONEXEC): Likewise.
4684 (SVE_PT_REGS_OFFSET): Likewise.
4685 (SVE_PT_FPSIMD_OFFSET): Likewise.
4686 (SVE_PT_FPSIMD_SIZE): Likewise.
4687 (SVE_PT_SVE_ZREG_SIZE): Likewise.
4688 (SVE_PT_SVE_PREG_SIZE): Likewise.
4689 (SVE_PT_SVE_FFR_SIZE): Likewise.
4690 (SVE_PT_SVE_FPSR_SIZE): Likewise.
4691 (SVE_PT_SVE_FPCR_SIZE): Likewise.
4692 (__SVE_SIG_TO_PT): Likewise.
4693 (SVE_PT_SVE_OFFSET): Likewise.
4694 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
4695 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
4696 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
4697 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
4698 (SVE_PT_SVE_PREG_OFFSET): Likewise.
4699 (SVE_PT_SVE_PREGS_SIZE): Likewise.
4700 (SVE_PT_SVE_FFR_OFFSET): Likewise.
4701 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
4702 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
4703 (SVE_PT_SVE_SIZE): Likewise.
4704 (SVE_PT_SIZE): Likewise.
4705 (HAS_SVE_STATE): New define.
4707 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4709 * nat/aarch64-sve-linux-sigcontext.h: New file.
4710 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
4712 (SVE_VQ_MIN): Likewise.
4713 (SVE_VQ_MAX): Likewise.
4714 (SVE_VL_MIN): Likewise.
4715 (SVE_VL_MAX): Likewise.
4716 (SVE_NUM_ZREGS): Likewise.
4717 (SVE_NUM_PREGS): Likewise.
4718 (sve_vl_valid): Likewise.
4719 (struct user_sve_header): Likewise.
4721 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4722 Richard Bunt <Richard.Bunt@arm.com>
4724 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
4725 was requested by GDB.
4727 2018-06-15 Tom de Vries <tdevries@suse.de>
4729 * MAINTAINERS (Write After Approval): Add Tom de Vries.
4731 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
4733 * gnulib/update-gnulib.sh: Print expected versions of
4736 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
4738 * arch-utils.c (default_type_align): Use type_length_units.
4739 * gdbtypes.c (type_align): Use type_length_units.
4741 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4743 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
4744 of 'define' command.
4746 2018-06-14 Tom de Vries <tdevries@suse.de>
4749 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
4750 get_no_prettyformat_print_options.
4752 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
4754 * sparc-nat.h: Include target.h.
4755 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
4756 <fetch_registers>: Remove this argument in function call.
4757 <store_registers>: Remove this argument in function call, remove
4759 <low_forget_process>: Call sparc64_forget_process instead of
4760 sparc_forget_process.
4762 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4764 * procfs.c (_initialize_procfs): Use add_inf_child_target.
4765 (procfs_target::make_corefile_notes): Adjust to new
4766 target_read_alloc return type.
4768 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4769 Stephen Roberts <stephen.roberts@arm.com>
4772 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
4773 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
4774 Move should_notify_stop local into more inner scope.
4776 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4777 Stephen Roberts <stephen.roberts@arm.com>
4780 * infrun.c (resume_1): Add call to mark_async_event_handler.
4782 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4784 * infrun.c (do_target_wait): Change old version of $pc printed.
4786 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
4788 * dwarf2read.c (read_index_from_section): Rename to...
4789 (read_gdb_index_from_section): ... this, update all callers.
4790 (dwarf2_read_index): Rename to...
4791 (dwarf2_read_gdb_index): ... this, update all callers.
4793 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
4795 * gdb/hppa-linux-nat.c
4796 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
4797 hppa_linux_nat_target::fetch_registers.
4799 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4801 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
4802 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
4803 (AARCH64_DWARF_SVE_FFR): Likewise.
4804 (AARCH64_DWARF_SVE_P0): Likewise.
4805 (AARCH64_DWARF_SVE_Z0): Likewise.
4807 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4809 * common/common-regcache.h (raw_compare): New function.
4810 * regcache.c (regcache::raw_compare): Likewise.
4811 * regcache.h (regcache::raw_compare): New declaration.
4813 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4815 * common/common-regcache.h (reg_buffer_common): New structure.
4816 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
4817 (reg_buffer::raw_supply): Likewise.
4818 (reg_buffer::raw_supply_integer): Likewise.
4819 (reg_buffer::raw_supply_zeroed): Likewise.
4820 (reg_buffer::raw_collect): Likewise.
4821 (reg_buffer::raw_collect_integer): Likewise.
4822 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
4823 (reg_buffer::raw_supply): Likewise.
4824 (reg_buffer::raw_supply_integer): Likewise.
4825 (reg_buffer::raw_supply_zeroed): Likewise.
4826 (reg_buffer::raw_collect): Likewise.
4827 (reg_buffer::raw_collect_integer): Likewise.
4829 2018-06-10 Tom Tromey <tom@tromey.com>
4831 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
4832 (class remote_state) <stop_reply_queue>: Now std::vector.
4833 (remote_state::~remote_state)
4834 (remote_target::stop_reply_queue_length): Update.
4835 (struct queue_iter_param, remove_child_of_pending_fork)
4836 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
4837 (check_pending_event_prevents_wildcard_vcont_callback)
4838 (remove_stop_reply_for_inferior)
4839 (remove_stop_reply_of_remote_state)
4840 (remote_notif_remove_once_on_match)
4841 (stop_reply_match_ptid_and_ws)
4842 (remote_kill_child_of_pending_fork): Remove.
4843 (remote_target::remove_new_fork_children)
4844 (remote_target::check_pending_events_prevent_wildcard_vcont)
4845 (remote_target::discard_pending_stop_replies)
4846 (remote_target::discard_pending_stop_replies_in_queue)
4847 (remote_target::remote_notif_remove_queued_reply)
4848 (remote_target::queued_stop_reply)
4849 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
4850 (remote_target::wait, remote_target::kill_new_fork_children)
4851 (remote_target::async): Update.
4853 2018-06-10 Tom Tromey <tom@tromey.com>
4855 * record-full.c (record_full_arch_list_cleanups): Remove.
4856 (record_full_message): Use try/catch.
4857 (record_full_wait_cleanups): Remove.
4858 (record_full_wait_1): Use try/catch.
4859 (record_full_restore): Likewise.
4861 2018-06-10 Tom Tromey <tom@tromey.com>
4863 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
4864 declare VEC. Add constructor.
4865 <in_target_beneath>: Now bool.
4866 (record_full_breakpoints): Now a std::vector, static.
4867 (record_full_sync_record_breakpoints)
4868 (record_full_init_record_breakpoints)
4869 (record_full_target::insert_breakpoint)
4870 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
4872 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
4874 * dwarf2read.c (process_cu_includes): Remove struct keyword.
4875 * serial.c (serial_interface_lookup): Remove struct keyword.
4877 2018-06-10 Tom Tromey <tom@tromey.com>
4879 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
4881 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
4883 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
4885 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
4886 "beneath" as a method.
4887 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
4888 Use "beneath" as a method.
4890 2018-06-10 Tom Tromey <tom@tromey.com>
4892 * tracefile.c (struct trace_file_writer_deleter): New.
4893 <operator()>: Rename from trace_file_writer_xfree.
4894 (trace_file_writer_up): New typedef.
4895 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
4897 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4899 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
4900 <m_registers, m_register_status>: Change type to
4902 * regcache.c (reg_buffer::reg_buffer): Use new instead of
4905 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4907 * common/common-regcache.h (enum register_status): Add
4908 underlying type "signed char".
4909 * regcache.h (reg_buffer) <m_register_status>: Change type to
4911 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
4912 register_status instead of signed char.
4913 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
4914 (reg_buffer::get_register_status): Remove cast.
4915 (readable_regcache::raw_read): Remove cast.
4916 (readable_regcache::cooked_read): Remove cast.
4918 2018-06-09 Tom Tromey <tom@tromey.com>
4920 * source.c (reverse_search_command, forward_search_command): Use
4923 2018-06-09 Tom Tromey <tom@tromey.com>
4925 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
4926 (serial_ops_list): Now static, std::vector.
4927 (serial_interface_lookup, serial_add_interface): Update.
4929 2018-06-09 Tom Tromey <tom@tromey.com>
4931 * dwarf2read.c (process_cu_includes): Update.
4932 (process_full_comp_unit): Update.
4933 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
4936 2018-06-08 Paul Koning <paul_koning@dell.com>
4940 * python/python.c (do_start_initialization):
4941 Avoid call to internal Python API.
4942 (init__gdb_module): New function.
4944 2018-06-08 Gary Benson <gbenson@redhat.com>
4946 * linux-thread-db.c (valprint.h): New include.
4947 (struct check_thread_db_info): New structure.
4948 (check_thread_db_on_load, tdb_testinfo): New static globals.
4949 (check_thread_db, check_thread_db_callback): New functions.
4950 (try_thread_db_load_1): Run integrity checks if requested.
4951 (maintenance_check_libthread_db): New function.
4952 (_initialize_thread_db): Register "maint check libthread-db"
4953 and "maint set/show check-libthread-db".
4954 * NEWS: Mention the above new commands.
4956 2018-06-08 Tom Tromey <tom@tromey.com>
4958 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
4961 2018-06-08 Tom Tromey <tom@tromey.com>
4963 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
4965 2018-06-08 Tom Tromey <tom@tromey.com>
4967 * common/btrace-common.h (struct btrace_data): Add constructor,
4968 destructor, move assignment operator.
4969 <empty, clear, fini>: New methods.
4970 <format>: Initialize.
4971 (btrace_data_init, btrace_data_fini, btrace_data_clear)
4972 (btrace_data_empty): Don't declare.
4973 * common/btrace-common.c (btrace_data_init): Remove.
4974 (btrace_data::fini): Rename from btrace_data_fini.
4975 (btrace_data::empty): Rename from btrace_data_empty.
4976 (btrace_data::clear): Rename from btrace_data_clear. Return
4978 * btrace.h (make_cleanup_btrace_data): Don't declare.
4979 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
4980 (parse_xml_btrace): Update.
4981 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
4982 (maint_btrace_clear_packet_history_cmd): Update.
4984 2018-06-07 Pedro Alves <palves@redhat.com>
4986 * target.h (target_ops) <beneath>: Now a method. All references
4988 (class target_stack): New.
4989 * target.c (g_target_stack): New.
4990 (g_current_top_target): Delete.
4991 (current_top_target): Get the top target out of g_target_stack.
4992 (target_stack::push, target_stack::unpush): New.
4993 (push_target, unpush_target): Reimplement.
4994 (target_is_pushed): Reimplement in terms of g_target_stack.
4995 (target_ops::beneath, target_stack::find_beneath): New.
4997 2018-06-07 Pedro Alves <palves@redhat.com>
4999 * target.h (find_target_beneath): Delete declaration.
5000 * target.c (find_target_beneath): Delete definition.
5001 * aix-thread.c: All callers of find_target_beneath adjusted to
5002 call target_ops::beneath instead.
5003 * bsd-uthread.c: Likewise.
5004 * linux-thread-db.c: Likewise.
5005 * ravenscar-thread.c: Likewise.
5006 * sol-thread.c: Likewise.
5007 * spu-multiarch.c: Likewise.
5009 2018-06-07 Pedro Alves <palves@redhat.com>
5011 * target.h (target_ops) <beneath>: Now a method. All references
5013 (target_ops) <m_beneath>: New.
5014 * target.c (target_ops::beneath): New.
5015 * corelow.c: Adjust all references to target_ops::beneath.
5016 * linux-thread-db.c: Likewise.
5017 * make-target-delegates: Likewise.
5018 * record-btrace.c: Likewise.
5019 * record-full.c: Likewise.
5020 * remote.c: Likewise.
5021 * target.c: Likewise.
5022 * target-delegates.c: Regenerate.
5024 2018-06-07 Pedro Alves <palves@redhat.com>
5026 * target.h (target_stack): Delete.
5027 (current_top_target): Declare function.
5028 * target.c (target_stack): Delete.
5029 (g_current_top_target): New.
5030 (current_top_target): New function.
5031 * auxv.c: Use current_top_target instead of target_stack
5033 * avr-tdep.c: Likewise.
5034 * breakpoint.c: Likewise.
5035 * corefile.c: Likewise.
5036 * elfread.c: Likewise.
5038 * exceptions.c: Likewise.
5039 * frame.c: Likewise.
5040 * gdbarch-selftests.c: Likewise.
5041 * gnu-v3-abi.c: Likewise.
5042 * ia64-tdep.c: Likewise.
5043 * ia64-vms-tdep.c: Likewise.
5044 * infcall.c: Likewise.
5045 * infcmd.c: Likewise.
5046 * infrun.c: Likewise.
5047 * linespec.c: Likewise.
5048 * linux-tdep.c: Likewise.
5049 * minsyms.c: Likewise.
5050 * ppc-linux-nat.c: Likewise.
5051 * ppc-linux-tdep.c: Likewise.
5052 * procfs.c: Likewise.
5053 * regcache.c: Likewise.
5054 * remote.c: Likewise.
5055 * rs6000-tdep.c: Likewise.
5056 * s390-linux-nat.c: Likewise.
5057 * s390-tdep.c: Likewise.
5058 * solib-aix.c: Likewise.
5059 * solib-darwin.c: Likewise.
5060 * solib-dsbt.c: Likewise.
5061 * solib-spu.c: Likewise.
5062 * solib-svr4.c: Likewise.
5063 * solib-target.c: Likewise.
5064 * sparc-tdep.c: Likewise.
5065 * sparc64-tdep.c: Likewise.
5066 * spu-tdep.c: Likewise.
5067 * symfile.c: Likewise.
5068 * symtab.c: Likewise.
5069 * target-descriptions.c: Likewise.
5070 * target-memory.c: Likewise.
5071 * target.c: Likewise.
5072 * target.h: Likewise.
5073 * tracefile-tfile.c: Likewise.
5074 * tracepoint.c: Likewise.
5075 * valops.c: Likewise.
5076 * valprint.c: Likewise.
5077 * value.c: Likewise.
5078 * windows-tdep.c: Likewise.
5079 * mi/mi-main.c: Likewise.
5081 2018-06-07 Tom Tromey <tom@tromey.com>
5083 * valprint.h (build_address_symbolic): Declare.
5084 * printcmd.c (print_address_symbolic): Update.
5085 (build_address_symbolic): Change "name" and "filename" to
5087 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5089 * defs.h (build_address_symbolic): Remove declaration.
5091 2018-06-07 Alan Hayward <alan.hayward@arm.com>
5093 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5094 (aarch64_vnv_type): Add function.
5095 (aarch64_pseudo_register_name): Add V regs for SVE.
5096 (aarch64_pseudo_register_type): Likewise.
5097 (aarch64_pseudo_register_reggroup_p): Likewise.
5098 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5099 (aarch64_pseudo_read_value): Add V regs for SVE.
5100 (aarch64_pseudo_write_2): Use V0 offset for SVE
5101 (aarch64_pseudo_write): Add V regs for SVE.
5102 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5104 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5106 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5107 (sve_vl_from_vq): Likewise.
5109 2018-06-05 Tom Tromey <tom@tromey.com>
5111 * cli/cli-cmds.c (show_version): Update.
5112 * top.c (print_gdb_version): Add "interactive" parameter.
5114 * main.c (captured_main_1): Update.
5115 * top.h (print_gdb_version): Add "interactive" parameter and a
5118 2018-06-05 David Malcolm <dmalcolm@redhat.com>
5120 * common/enum-flags.h: Add trailing semicolon to example in
5123 2018-06-05 Tom Tromey <tom@tromey.com>
5126 * NEWS: Add entry about pager.
5127 * utils.c (pagination_disabled_for_command): New global.
5128 (prompt_for_continue): Allow "c" response to prompt.
5129 (reinitialize_more_filter): Clear
5130 pagination_disabled_for_command.
5131 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5133 2018-06-04 Tom Tromey <tom@tromey.com>
5135 * ada-lang.h (ada_lookup_symbol_list): Update.
5136 * ada-lang.c (resolve_subexp): Update.
5137 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5139 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5140 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5141 results parameter to std::vector.
5142 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5144 * ada-exp.y (block_lookup): Update.
5145 (select_possible_type_sym): Change type of syms. Remove nsyms
5147 (write_var_or_type, write_name_assoc): Update.
5149 2018-06-04 Joel Brobecker <brobecker@adacore.com>
5151 * windows-nat.c (windows_nat_target::xfer_partial): Return
5152 TARGET_XFER_E_IO if we need to delegate to the target beneath
5153 but BENEATH is NULL.
5155 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5157 * Makefile.in (config.status): Add configure.nat as a
5160 2018-06-04 Tom Tromey <tom@tromey.com>
5162 * cp-name-parser.y (cpname_state): Add method declarations.
5163 (HANDLE_QUAL): Update.
5164 (cpname_state::d_grab, cpname_state::fill_comp)
5165 (cpname_state::make_operator, cpname_state::make_dtor)
5166 (cpname_state::make_builtin_type, cpname_state::make_name)
5167 (cpname_state::d_qualify, cpname_state::d_int_type)
5168 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5169 (%union): Move earlier.
5171 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5173 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5175 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5177 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5178 (aarch64_pseudo_write_1): Likewise.
5179 (aarch64_pseudo_read_value): Use helper.
5180 (aarch64_pseudo_write): Likewise.
5182 2018-06-04 Pedro Alves <palves@redhat.com>
5184 * darwin-nat.c (darwin_ops): Delete.
5185 (darwin_attach_pid): Use get_native_target.
5187 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5189 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5190 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5192 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5194 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5195 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5196 (aarch64_gdbarch_init): Check for SVE.
5197 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5199 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5201 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5202 * aarch64-tdep.h (aarch64_read_description): Likewise.
5203 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5204 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5205 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5206 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5207 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5209 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5211 * value.c (value_fetch_lazy_bitfield): New.
5212 (value_fetch_lazy_memory): New.
5213 (value_fetch_lazy_register): New.
5214 (value_fetch_lazy): Factor out to smaller functions.
5216 2018-06-01 Tom Tromey <tom@tromey.com>
5218 * cp-name-parser.y (backslashable, represented): Now const.
5220 2018-06-01 Tom Tromey <tom@tromey.com>
5222 * cp-name-parser.y: Include parser-defs.h.
5223 (parser_fprintf): Remove declaration.
5225 2018-06-01 Tom Tromey <tom@tromey.com>
5227 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5229 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5230 (global_result): Remove globals.
5231 (struct cpname_state): New.
5232 (yyparse): Don't declare.
5233 (yylex, yyerror): Move declarations after %union.
5234 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5235 (make_name): Add state parameter.
5237 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5239 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5241 (yylex): Add lvalp, state parameters.
5242 (yyerror): Add state parameter.
5243 (cp_demangled_name_to_comp): Update.
5245 2018-06-01 Tom Tromey <tom@tromey.com>
5247 * cp-name-parser.y (parser_fprintf): Declare.
5248 (GDB_YY_REMAP_PREFIX): Define.
5249 Include yy-remap.h. Don't redefine yy* identifiers.
5251 2018-06-01 Tom Tromey <tom@tromey.com>
5253 * python/py-type.c (typy_legacy_template_argument): Update.
5254 * cp-support.h (cp_demangled_name_to_comp): Update.
5255 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5256 parameter to be a "std::string *".
5259 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5261 * ada-lex.l: Include "diagnostics.h" instead of
5262 "common/diagnostics.h".
5263 * unittests/environ-selftests.c: Likewise.
5264 * common/diagnostics.h: Moved to ../include.
5266 2018-06-01 Joel Brobecker <brobecker@adacore.com>
5268 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5269 to language_mode_manual while calling breakpoint_re_set_one.
5271 2018-06-01 Tom Tromey <tom@tromey.com>
5273 * valops.c (value_cast_structs, destructor_name_p): Update.
5274 * symtab.c (gdb_mangle_name): Update.
5275 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5277 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5278 (pascal_object_print_value_fields, pascal_object_print_value):
5280 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5281 * linespec.c (find_methods): Update.
5282 * gdbtypes.h (type_name_no_tag): Remove.
5283 (type_name_or_error): Rename from type_name_no_tag_or_error.
5284 * gdbtypes.c (type_name_no_tag): Remove.
5285 (type_name_or_error): Rename from type_name_no_tag_or_error.
5286 (lookup_struct_elt_type, check_typedef): Update.
5287 * expprint.c (print_subexp_standard): Update.
5288 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5289 * d-namespace.c (d_lookup_nested_symbol): Update.
5290 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5291 (cp_print_class_member): Update.
5292 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5293 * completer.c (add_struct_fields): Update.
5294 * c-typeprint.c (cp_type_print_derivation_info)
5295 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5297 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5298 (ada_prefer_type, ada_is_exception_sym): Update.
5300 2018-06-01 Tom Tromey <tom@tromey.com>
5302 * valops.c (enum_constant_from_type, value_namespace_elt)
5303 (value_maybe_namespace_elt): Update.
5304 * valarith.c (find_size_for_pointer_math): Update.
5305 * target-descriptions.c (make_gdb_type): Update.
5306 * symmisc.c (print_symbol): Update.
5307 * stabsread.c (define_symbol, read_type)
5308 (complain_about_struct_wipeout, add_undefined_type)
5309 (cleanup_undefined_types_1): Update.
5310 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5311 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5312 (rust_internal_print_type, rust_composite_type)
5313 (rust_evaluate_funcall, rust_evaluate_subexp)
5314 (rust_inclusive_range_type_p): Update.
5315 * python/py-type.c (typy_get_tag): Update.
5316 * p-typeprint.c (pascal_type_print_base): Update.
5317 * mdebugread.c (parse_symbol, parse_type): Update.
5318 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5320 * guile/scm-type.c (gdbscm_type_tag): Update.
5321 * go-lang.c (sixg_string_p): Update.
5322 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5324 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5325 (TYPE_TAG_NAME): Remove.
5326 * gdbtypes.c (type_name_no_tag): Simplify.
5327 (check_typedef, check_types_equal, recursive_dump_type)
5328 (copy_type_recursive, arch_composite_type): Update.
5329 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5330 in summary mode when needed.
5331 * eval.c (evaluate_funcall): Update.
5332 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5333 (process_structure_scope, read_enumeration_type)
5334 (read_namespace_type, read_module_type, determine_prefix): Update.
5335 * cp-support.c (inspect_type): Update.
5336 * coffread.c (process_coff_symbol, decode_base_type): Update.
5337 * c-varobj.c (c_is_path_expr_parent): Update.
5338 * c-typeprint.c (c_type_print_base_struct_union): Update.
5339 (c_type_print_base_1): Update. Print struct/class/union/enum in
5340 summary when using C language.
5341 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5342 (gen_maybe_namespace_elt): Update.
5343 * ada-lang.c (ada_type_name): Simplify.
5344 (empty_record, ada_template_to_fixed_record_type_1)
5345 (template_to_static_fixed_type)
5346 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5348 2018-06-01 Tom Tromey <tom@tromey.com>
5350 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5352 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5353 (c_print_type): Update.
5354 (c_print_type): New overload.
5355 (c_type_print_varspec_prefix, c_type_print_args)
5356 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5357 (c_type_print_base_struct_union, c_type_print_base_1)
5358 (cp_type_print_method_args): Add "language" parameter.
5359 (c_type_print_base): Update.
5360 * c-lang.h (c_print_type): Add new overload.
5362 2018-06-01 Tom Tromey <tom@tromey.com>
5364 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5365 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5367 2018-06-01 Alan Hayward <alan.hayward@arm.com>
5369 * aarch64-tdep.c (aarch64_sve_register_names): New const
5371 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5372 (AARCH64_SVE_Z_REGS_NUM): New define.
5373 (AARCH64_SVE_P_REGS_NUM): Likewise.
5374 (AARCH64_SVE_NUM_REGS): Likewise.
5376 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
5378 * nat/linux-ptrace.h [__alpha__]
5379 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5382 2018-05-31 Maciej W. Rozycki <macro@mips.com>
5384 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5385 the endianness selected.
5386 * NEWS: Document `set endian auto' mode operation update.
5388 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5390 * Makefile.in: Add new header.
5391 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5392 (sve_vl_from_vg): Likewise.
5393 (sve_vq_from_vl): Likewise.
5394 (sve_vl_from_vq): Likewise.
5395 (sve_vq_from_vg): Likewise.
5396 (sve_vg_from_vq): Likewise.
5397 * configure.nat: Add new c file.
5398 * nat/aarch64-sve-linux-ptrace.c: New file.
5399 * nat/aarch64-sve-linux-ptrace.h: New file.
5401 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5403 * aarch64-linux-nat.c (aarch64_linux_read_description):
5405 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5407 * aarch64-tdep.c (tdesc_aarch64_list): Add.
5408 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
5409 (aarch64_gdbarch_init): Add parmeter zero.
5410 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
5411 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
5412 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
5414 * doc/gdb.texinfo: Describe SVE feature
5415 * features/aarch64-sve.c: New file.
5417 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
5420 * gdbarch.sh (significant_addr_bit): Default to zero when
5421 not set by target architecture.
5422 * gdbarch.c: Re-generated.
5423 * utils.c (address_significant): Update.
5425 2018-05-30 Joel Brobecker <brobecker@adacore.com>
5427 * stack.c (func_command): Remove trailing newline in call to error.
5429 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5431 * regcache.h (regcache_raw_collect): Remove, update callers to
5432 use regcache::raw_collect.
5433 * regcache.c (regcache_raw_collect): Remove.
5435 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5437 * regcache.h (regcache_raw_supply): Remove, update callers to
5438 use detached_regcache::raw_supply.
5439 * regcache.c (regcache_raw_supply): Remove.
5441 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5443 * regcache.h (regcache_cooked_write_part): Remove, update
5444 callers to use regcache::cooked_write_part.
5445 * regcache.c (regcache_cooked_write_part): Remove.
5447 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5449 * regcache.h (regcache_cooked_read_part): Remove, update callers
5450 to use readable_regcache::cooked_read_part.
5451 * regcache.c (regcache_cooked_read_part): Remove.
5453 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5455 * regcache.h (regcache_cooked_read_value): Remove, update
5456 callers to use readable_regcache::cooked_read_value.
5457 * regcache.c (regcache_cooked_read_value): Remove.
5459 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5461 * regcache.h (regcache_cooked_write): Remove, update callers to
5462 use regcache::cooked_write.
5463 * regcache.c (regcache_cooked_write): Remove.
5465 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5467 * regcache.h (regcache_invalidate): Remove, update callers to
5468 use detached_regcache::invalidate instead.
5469 * regcache.c (regcache_invalidate): Remove.
5471 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5473 * regcache.h (regcache_raw_write_part): Remove, update callers
5474 to use regcache::raw_write_part instead.
5475 * regcache.c (regcache_raw_write_part): Remove.
5477 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5479 * regcache.h (regcache_raw_read_part): Remove, update callers to
5480 use readable_regcache::raw_read_part instead.
5481 * regcache.c (regcache_raw_read_part): Remove.
5483 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5485 * regcache.h (regcache_cooked_read): Remove, update callers to
5486 use readable_regcache::cooked_read instead.
5487 * regcache.c (regcache_cooked_read): Remove.
5489 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5491 * regcache.h (regcache_raw_write): Remove, update callers to use
5492 regcache::raw_write instead.
5493 * regcache.c (regcache_raw_write): Remove.
5495 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5497 * regcache.h (regcache_raw_read): Remove, update callers to use
5498 readable_regcache::raw_read instead.
5499 * regcache.c (regcache_raw_read): Remove.
5501 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5503 * regcache.h (regcache_raw_update): Remove, update callers to
5504 use readable_regcache::raw_update instead.
5505 * regcache.c (regcache_raw_update): Remove.
5507 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5509 * regcache.h (regcache_register_status): Remove, update callers
5510 to use reg_buffer::get_register_status directly instead.
5511 * regcache.c (regcache_register_status): Remove.
5513 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5515 * regcache.h (regcache_get_ptid): Remove, update all callers to
5516 call regcache::ptid instead.
5517 * regcache.c (regcache_get_ptid): Remove.
5519 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5521 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
5523 2018-05-30 Pedro Alves <palves@redhat.com>
5525 * common/common-exceptions.h (exception_rethrow): Use
5528 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
5530 * breakpoint.c (print_solib_event, check_status_catch_solib):
5531 Remove struct keyword in range-based for loops.
5532 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
5533 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
5535 * linespec.c (find_superclass_methods, search_minsyms_for_name):
5537 * symfile.c (addr_info_make_relative): Likewise.
5538 * thread.c (value_in_thread_stack_temporaries): Likewise.
5540 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
5543 * valops.c (value_struct_elt_for_reference): Call check_typedef on
5544 aggregate type to get its real type before accessing it.
5546 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
5548 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
5549 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
5550 * coff-pe-read.c (add_pe_forwarded_sym): Replace
5551 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
5552 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
5553 * jit.c (jit_breakpoint_re_set_internal): Likewise.
5554 * printcmd.c (info_address_command): Likewise.
5556 2018-05-29 Tom Tromey <tom@tromey.com>
5558 * windows-nat.c (handle_exception): Update fall-through comment.
5560 2018-05-29 Tom Tromey <tom@tromey.com>
5562 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
5563 (struct program_space) <added_solibs>: Now a std::vector.
5564 * breakpoint.c (print_solib_event): Update.
5565 (check_status_catch_solib): Update.
5566 * progspace.c (clear_program_space_solib_cache): Update.
5567 * solib.c (update_solib_list): Update.
5569 2018-05-29 Tom Tromey <tom@tromey.com>
5571 * python/py-type.c (typy_richcompare): Update.
5572 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
5573 * gdbtypes.h (types_deeply_equal): Return bool.
5574 (types_equal): Likewise.
5575 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
5577 (check_types_equal): Change worklist to std::vector. Return
5579 (struct type_equality_entry): Add constructor.
5580 (compare_maybe_null_strings): Return bool.
5581 (check_types_worklist): Return bool. Change worklist to
5583 (types_deeply_equal): Use std::vector.
5584 (types_equal): Return bool.
5585 (compare_maybe_null_strings): Simplify.
5587 2018-05-29 Tom Tromey <tom@tromey.com>
5589 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
5591 2018-05-29 Tom Tromey <tom@tromey.com>
5593 * objc-lang.h: Don't include cp-support.h.
5594 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
5597 2018-05-27 Tom Tromey <tom@tromey.com>
5599 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
5601 2018-05-25 Tom Tromey <tom@tromey.com>
5603 * value.c (value::location): Initialize.
5605 2018-05-25 Tom Tromey <tom@tromey.com>
5607 * dbxread.c (init_bincl_list): Remove.
5608 (bincl_list): Now a std::vector.
5609 (bincls_allocated, next_bincl): Remove.
5610 (free_bincl_list, do_free_bincl_list_cleanup)
5611 (make_cleanup_free_bincl_list): Remove.
5612 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
5614 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
5615 (struct header_file_location): Add constructor.
5616 (add_bincl_to_list): Remove.
5618 2018-05-25 Tom Tromey <tom@tromey.com>
5620 * tui/tui.c (tui_enable): Update.
5621 * mi/mi-interp.c (mi_interp::init): Update.
5622 * interps.h (class interp) <name>: New method.
5623 <m_name>: Rename from name.
5624 (~scoped_restore_interp): Update.
5625 * interps.c (interp::interp): Update.
5626 (interp_add, interp_set, interp_lookup_existing)
5627 (current_interp_named_p): Update.
5629 2018-05-25 Tom Tromey <tom@tromey.com>
5631 * interps.c (interp_name): Remove.
5632 * mi/mi-interp.c (mi_interp::init): Update.
5633 * interps.h (interp_name): Remove.
5634 (~scoped_restore_interp): Update.
5635 * tui/tui.c (tui_enable): Update.
5637 2018-05-25 Tom Tromey <tom@tromey.com>
5639 * utils.c (fputs_maybe_filtered): Update.
5640 * linespec.c (decode_line_full): Update.
5641 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
5642 (mi_print_breakpoint_for_event, mi_solib_loaded)
5643 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
5644 (mi_user_selected_context_changed): Update.
5645 * mi/mi-main.c (mi_execute_command): Update.
5646 * cli/cli-script.c (execute_control_command): Update.
5647 * python/python.c (execute_gdb_command): Update.
5648 * solib.c (info_sharedlibrary_command): Update.
5649 * interps.c (interp_ui_out): Remove.
5650 * interps.h (interp_ui_out): Remove.
5652 2018-05-25 Tom Tromey <tom@tromey.com>
5654 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
5655 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
5656 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
5658 2018-05-25 Tom Tromey <tom@tromey.com>
5660 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
5661 * interps.c (interp_exec): Use scoped_restore.
5663 2018-05-25 Tom Tromey <tom@tromey.com>
5665 * remote.c (remote_target::remote_file_get): Use
5667 (remote_target::remote_file_put): Likewise.
5669 2018-05-25 Tom Tromey <tom@tromey.com>
5671 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
5673 (get_pe_section_index, add_pe_exported_sym): Update.
5674 (read_pe_exported_syms): Use gdb::def_vector.
5676 2018-05-25 Tom Tromey <tom@tromey.com>
5678 * frame.c (remove_prev_frame): Remove.
5679 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
5681 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5683 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
5685 * mips-linux-nat.c (supply_fpregset): Always call
5686 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
5687 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
5688 `mips_fill_fpregset'.
5689 * mips-linux-tdep.c (mips_supply_fpregset)
5690 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
5691 (mips_fill_fpregset_wrapper): Remove functions.
5692 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
5693 (mips_linux_fpregset): Remove variable.
5694 (mips_linux_iterate_over_regset_sections): Use
5695 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
5696 (mips_linux_o32_sigframe_init): Remove comment.
5698 2018-05-25 Pedro Alves <palves@redhat.com>
5700 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
5701 (struct readahead_cache, struct packet_reg, struct
5702 remote_arch_state, class remote_state): Move higher up in the
5704 (remote_target::m_remote_state): Now an object instead of a pointer.
5705 (remote_target::get_remote_state): Adjust.
5707 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5709 * stack.c (select_and_print_frame): Delete.
5710 (struct function_bounds): Move struct within function.
5711 (func_command): Most content moved into new function
5712 find_frame_for_function, use new function, print result, add
5714 (find_frame_for_function): New function, now returns a result.
5716 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5718 * stack.c (iterate_over_block_arg_vars): Fix comment.
5719 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
5721 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5725 (scoped_restore_selected_frame::scoped_restore_selected_frame):
5727 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
5729 * frame.h (class scoped_restore_selected_frame): New class.
5730 * stack.c (print_frame_local_vars): Remove catching and rethrowing
5731 of any exception, use scoped_restore_selected_frame to restore the
5734 2018-05-24 Pedro Alves <palves@redhat.com>
5736 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
5739 2018-05-23 Tom Tromey <tom@tromey.com>
5741 * complaints.c (struct complaints): Remove.
5742 (symfile_complaint_book): Remove.
5743 (series): New global.
5744 (complaint_internal): Update.
5745 (clear_complaints): Update.
5747 2018-05-23 Tom Tromey <tom@tromey.com>
5749 * complaints.c (counters): New global.
5750 (struct complain): Remove.
5751 (struct complaints) <root>: Remove.
5752 (complaint_sentinel): Remove.
5753 (symfile_complaint_book): Update.
5754 (find_complaint) Remove.
5755 (complaint_internal, clear_complaints): Update.
5757 2018-05-23 Tom Tromey <tom@tromey.com>
5759 * complaints.c (struct complain) <file, line>: Remove.
5760 (find_complaint): Remove file, line parameters.
5761 (complaint_internal): Update.
5763 2018-05-23 Tom Tromey <tom@tromey.com>
5765 * complaints.c (vcomplaint): Remove.
5766 (complaint_internal) Merge in contents of vcomplaint.
5768 2018-05-23 Tom Tromey <tom@tromey.com>
5770 * complaints.c (struct complaints) <explanation>: Remove.
5771 (symfile_explanations): Remove.
5772 (symfile_complaint_book): Update.
5773 (vcomplaint): Update.
5774 (struct explanation): Remove.
5776 2018-05-23 Tom Tromey <tom@tromey.com>
5778 * complaints.c (symfile_complaints): Remove.
5779 (complaint_internal): Remove "complaints" parameter.
5780 (clear_complaints, vcomplaint): Remove "c" parameter.
5781 (get_complaints): Remove.
5782 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
5783 (dwarf2_debug_line_missing_file_complaint)
5784 (dwarf2_debug_line_missing_end_sequence_complaint)
5785 (dwarf2_complex_location_expr_complaint)
5786 (dwarf2_const_value_length_mismatch_complaint)
5787 (dwarf2_section_buffer_overflow_complaint)
5788 (dwarf2_macro_malformed_definition_complaint)
5789 (dwarf2_invalid_attrib_class_complaint)
5790 (create_addrmap_from_index, dw2_symtab_iter_next)
5791 (dw2_expand_marked_cus)
5792 (dw2_debug_names_iterator::find_vec_in_debug_names)
5793 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
5794 (create_debug_type_hash_table, init_cutu_and_read_dies)
5795 (partial_die_parent_scope, add_partial_enumeration)
5796 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
5797 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
5798 (read_import_statement, read_file_scope, create_dwo_cu_reader)
5799 (create_cus_hash_table, create_dwp_hash_table)
5800 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5801 (dwarf2_rnglists_process, dwarf2_ranges_process)
5802 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
5803 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
5804 (handle_struct_member_die, process_structure_scope)
5805 (read_array_type, read_common_block, read_module_type)
5806 (read_tag_pointer_type, read_typedef, read_base_type)
5807 (read_subrange_type, load_partial_dies, partial_die_info::read)
5808 (partial_die_info::read, partial_die_info::read)
5809 (partial_die_info::read, read_checked_initial_length_and_offset)
5810 (dwarf2_string_attr, read_formatted_entries)
5811 (dwarf_decode_line_header)
5812 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5813 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
5814 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
5815 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5816 (get_signatured_type, get_DW_AT_signature_type)
5817 (decode_locdesc, file_file_name, consume_improper_spaces)
5818 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
5819 (dwarf_decode_macro_bytes, dwarf_decode_macros)
5820 (dwarf2_symbol_mark_computed, set_die_type)
5821 (read_attribute_value): Update.
5822 * stap-probe.c (handle_stap_probe, get_stap_base_address):
5824 * dbxread.c (unknown_symtype_complaint)
5825 (lbrac_mismatch_complaint, repeated_header_complaint)
5826 (set_namestring, function_outside_compilation_unit_complaint)
5827 (read_dbx_symtab, process_one_symbol): Update.
5828 * gdbtypes.c (stub_noname_complaint): Update.
5829 * windows-nat.c (handle_unload_dll): Update.
5830 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
5831 (decode_base_type): Update.
5832 * xcoffread.c (bf_notfound_complaint, ef_complaint)
5833 (eb_complaint, record_include_begin, record_include_end)
5834 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
5835 (process_xcoff_symbol, read_symbol)
5836 (function_outside_compilation_unit_complaint)
5837 (scan_xcoff_symtab): Update.
5838 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
5839 * buildsym.c (finish_block_internal, make_blockvector)
5840 (end_symtab_get_static_block, augment_type_symtab): Update.
5841 * dtrace-probe.c (dtrace_process_dof)
5842 (dtrace_static_probe_ops::get_probes): Update.
5843 * complaints.h (struct complaint): Don't declare.
5844 (symfile_complaints): Remove.
5845 (complaint_internal): Remove "complaints" parameter.
5846 (complaint): Likewise.
5847 (clear_complaints): Likewise.
5848 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5849 (reread_symbols): Update.
5850 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
5851 (dwarf2_frame_cache, decode_frame_entry): Update.
5852 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
5853 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5854 (info_selectors_command): Update.
5855 * macrotab.c (macro_include, check_for_redefinition)
5856 (macro_undef): Update.
5857 * objfiles.c (filter_overlapping_sections): Update.
5858 * stabsread.c (invalid_cpp_abbrev_complaint)
5859 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
5860 (define_symbol, error_type, read_type, rs6000_builtin_type)
5861 (stabs_method_name_from_physname, read_member_functions)
5862 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
5863 (attach_fields_to_type, complain_about_struct_wipeout)
5864 (read_range_type, read_args, common_block_start)
5865 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
5867 * mdebugread.c (index_complaint, unknown_ext_complaint)
5868 (basic_type_complaint, bad_tag_guess_complaint)
5869 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
5870 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
5871 (parse_procedure, parse_lines)
5872 (function_outside_compilation_unit_complaint)
5873 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
5874 (bad_tag_guess_complaint, reg_value_complaint): Update.
5875 * cp-support.c (demangled_name_complaint): Update.
5876 * macroscope.c (sal_macro_scope): Update.
5877 * dwarf-index-write.c (class debug_names): Update.
5879 2018-05-23 Tom Tromey <tom@tromey.com>
5881 * complaints.c (clear_complaints): Remove "noisy" parameter.
5882 * complaints.h (clear_complaints): Update.
5883 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5884 (reread_symbols): Update.
5886 2018-05-23 Tom Tromey <tom@tromey.com>
5888 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
5890 (vcomplaint, clear_complaints): Update.
5891 (symfile_explanations): Remove some messages.
5893 2018-05-23 Tom Tromey <tom@tromey.com>
5895 * complaints.c (internal_complaint): Remove.
5896 * complaints.h (internal_complaint): Remove.
5898 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5900 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
5902 2018-05-22 Pedro Alves <palves@redhat.com>
5904 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
5905 (remote_fileio_badfd, remote_fileio_return_errno)
5906 (remote_fileio_return_success, remote_fileio_func_open)
5907 (remote_fileio_func_open, remote_fileio_func_close)
5908 (remote_fileio_func_read, remote_fileio_func_write)
5909 (remote_fileio_func_lseek, remote_fileio_func_rename)
5910 (remote_fileio_func_unlink, remote_fileio_func_stat)
5911 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
5912 (remote_fileio_func_isatty, remote_fileio_func_system): Add
5913 remote_target parameter.
5914 (remote_fio_func_map) <func>: Add remote_target parameter.
5915 (do_remote_fileio_request, remote_fileio_request):
5916 * remote-fileio.h (remote_fileio_request):
5917 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
5918 remote_target parameter.
5919 (remote_notif_process, handle_notification): Adjust to pass down
5921 (remote_notif_state_allocate): Add remote_target parameter. Save
5923 * remote-notif.h (struct remote_target): Forward declare.
5924 (struct notif_client) <parse, ack, can_get_pending_events>: Add
5925 remote_target parameter.
5926 (struct remote_notif_state) <remote>: New field.
5927 (remote_notif_ack, remote_notif_parse): Add remote_target
5929 (remote_notif_state_allocate, remote_notif_state_allocate): Add
5930 remote_target parameter.
5931 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
5932 (threads_listing_context, rmt_thread_action, protocol_feature)
5933 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
5934 (packet_result, struct threads_listing_context, remote_state):
5935 Move definitions and declarations higher up.
5936 (remote_target) <~remote_target>: Declare.
5937 (remote_download_command_source, remote_file_put, remote_file_get)
5938 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
5939 (remote_hostio_pread_vFile, remote_hostio_send_command)
5940 (remote_hostio_set_filesystem, remote_hostio_open)
5941 (remote_hostio_close, remote_hostio_unlink, remote_state)
5942 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
5943 (get_memory_write_packet_size, get_memory_read_packet_size)
5944 (append_pending_thread_resumptions, remote_detach_1)
5945 (append_resumption, remote_resume_with_vcont)
5946 (add_current_inferior_and_thread, wait_ns, wait_as)
5947 (process_stop_reply, remote_notice_new_inferior)
5948 (process_initial_stop_replies, remote_add_thread)
5949 (btrace_sync_conf, remote_btrace_maybe_reopen)
5950 (remove_new_fork_children, kill_new_fork_children)
5951 (discard_pending_stop_replies, stop_reply_queue_length)
5952 (check_pending_events_prevent_wildcard_vcont)
5953 (discard_pending_stop_replies_in_queue, stop_reply)
5954 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
5955 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
5956 (remote_interrupt_as, remote_interrupt_ns)
5957 (remote_get_noisy_reply, remote_query_attached)
5958 (remote_add_inferior, remote_current_thread, get_current_thread)
5959 (set_thread, set_general_thread, set_continue_thread)
5960 (set_general_process, write_ptid)
5961 (remote_unpack_thread_info_response, remote_get_threadinfo)
5962 (parse_threadlist_response, remote_get_threadlist)
5963 (remote_threadlist_iterator, remote_get_threads_with_ql)
5964 (remote_get_threads_with_qxfer)
5965 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
5966 (get_offsets, remote_check_symbols, remote_supported_packet)
5967 (remote_query_supported, remote_packet_size)
5968 (remote_serial_quit_handler, remote_detach_pid)
5969 (remote_vcont_probe, remote_resume_with_hc)
5970 (send_interrupt_sequence, interrupt_query)
5971 (remote_notif_get_pending_events, fetch_register_using_p)
5972 (send_g_packet, process_g_packet, fetch_registers_using_g)
5973 (store_register_using_P, store_registers_using_G)
5974 (set_remote_traceframe, check_binary_download)
5975 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
5976 (remote_xfer_live_readonly_partial, remote_read_bytes)
5977 (remote_send_printf, remote_flash_write, readchar)
5978 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
5979 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
5980 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
5981 (extended_remote_disable_randomization, extended_remote_run)
5982 (send_environment_packet, extended_remote_environment_support)
5983 (extended_remote_set_inferior_cwd, remote_write_qxfer)
5984 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
5985 (packet_command): Now methods of ...
5986 (remote_target): ... this class.
5987 (m_remote_state) <remote_target>: New field.
5988 (struct remote_state) <stop_reply_queue,
5989 remote_async_inferior_event_token, wait_forever_enabled_p>: New
5991 (remote_state::remote_state): Allocate stop_reply_queue.
5992 (remote_state): Delete global.
5993 (get_remote_state_raw): Delete.
5994 (remote_target::get_remote_state): Allocate m_remote_state on
5996 (get_current_remote_target): New.
5997 (remote_ops, extended_remote_ops): Delete.
5998 (wait_forever_enabled_p, remote_async_inferior_event_token):
5999 Delete, moved to struct remote_state.
6000 (remote_target::close): Delete self. Destruction bits split to
6002 (remote_target::~remote_target): ... this.
6003 (show_memory_packet_size): Adjust to use
6004 get_current_remote_target.
6005 (struct protocol_feature) <func>: Add remote_target parameter.
6006 All callers adjusted.
6007 (curr_quit_handler_target): New.
6008 (remote_serial_quit_handler): Reimplement.
6009 (remote_target::open_1): Adjust to use get_current_remote_target.
6010 Heap-allocate remote_target/extended_remote_target instances.
6011 (vcont_builder::vcont_builder): Add remote_target parameter, and
6012 save it in m_remote. All callers adjusted.
6013 (vcont_builder::m_remote): New field.
6014 (vcont_builder::restart, vcont_builder::flush)
6015 (vcont_builder::push_action): Use it.
6016 (remote_target::commit_resume): Use it.
6017 (struct queue_iter_param) <remote>: New field.
6018 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6019 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6020 (check_pending_event_prevents_wildcard_vcont_callback)
6021 (remote_target::check_pending_events_prevent_wildcard_vcont)
6022 (remote_target::discard_pending_stop_replies)
6023 (remote_target::discard_pending_stop_replies_in_queue)
6024 (remote_target::remote_notif_remove_queued_reply): Fill in
6026 (remote_notif_get_pending_events): New.
6027 (remote_target::readchar, remote_target::remote_serial_write):
6028 Save/restore curr_quit_handler_target.
6030 (kill_new_fork_children): Fill in 'remote' field.
6031 (packet_command): Use get_current_remote_target, defer to
6032 remote_target method of same name.
6033 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6034 parameter, and save it in m_remote. All callers adjusted.
6035 (scoped_remote_fd::release): Use m_remote.
6036 (scoped_remote_fd::m_remote): New field.
6037 (remote_file_put, remote_file_get, remote_file_delete): Use
6038 get_current_remote_target, defer to remote_target method of same
6040 (remote_btrace_reset): Add remote_state paremeter. Update all
6042 (remote_async_inferior_event_handler). Pass down 'data'.
6043 (remote_new_objfile): Use get_current_remote_target.
6044 (remote_target::vcont_r_supported): New.
6045 (set_range_stepping): Use get_current_remote_target and
6046 remote_target::vcont_r_supported.
6047 (_initialize_remote): Don't allocate 'remote_state' and
6048 'stop_reply_queue' globals.
6049 * remote.h (struct remote_target): Forward declare.
6050 (getpkt, putpkt, remote_notif_get_pending_events): Add
6051 'remote_target' parameter.
6053 2018-05-22 Pedro Alves <palves@redhat.com>
6055 * remote.c (vcont_builder): Now a class. Make all data members
6057 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6059 (vcont_builder_restart): Rename to ...
6060 (vcont_builder::restart): ... this.
6061 (vcont_builder_flush): Rename to ...
6062 (vcont_builder::flush): ... this.
6063 (vcont_builder_push_action): Rename to ...
6064 (vcont_builder::push_action): ... this.
6065 (remote_target::commit_resume): Adjust.
6067 2018-05-22 Pedro Alves <palves@redhat.com>
6069 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6070 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6071 (get_fixed_memory_packet_size): New.
6072 (get_memory_packet_size): Use it.
6073 (set_memory_packet_size): Don't override the config size with
6074 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6075 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6076 Don't refer to get_memory_packet_size if not connected to a remote
6077 target. Show "(default)" if configured size is 0.
6079 2018-05-22 Pedro Alves <palves@redhat.com>
6081 * remote.c (remote_target::mourn_inferior): Move
6082 discard_pending_stop_replies call here from ...
6083 (_initialize_remote): ... here.
6085 2018-05-22 Pedro Alves <palves@redhat.com>
6087 * remote.c (compare_section_command): Remove set_general_process
6090 2018-05-22 Pedro Alves <palves@redhat.com>
6092 * remote.c (struct packet_reg, struct remote_arch_state):
6093 Move higher up in the file.
6094 (remote_state) <m_arch_states>: Store remote_arch_state values
6095 instead of remote_arch_state pointers.
6096 (remote_state::get_remote_arch_state): Adjust.
6098 2018-05-22 Pedro Alves <palves@redhat.com>
6100 * remote.c: Include <unordered_map>.
6101 (remote_state): Now a class.
6102 (remote_state) <get_remote_arch_state>: Declare method.
6103 <get_remote_arch_state>: New field.
6104 (remote_arch_state) <remote_arch_state>: Declare ctor.
6105 <regs>: Now a unique_ptr.
6106 (remote_gdbarch_data_handle): Delete.
6107 (get_remote_arch_state): Delete.
6108 (remote_state::get_remote_arch_state): New.
6109 (get_remote_state): Adjust to call remote_state's
6110 get_remote_arch_state method.
6111 (init_remote_state): Delete, bits factored out to ...
6112 (remote_arch_state::remote_arch_state): ... this new method.
6113 (get_remote_packet_size, get_memory_packet_size)
6114 (process_g_packet, remote_target::fetch_registers)
6115 (remote_target::prepare_to_store, store_registers_using_G)
6116 (remote_target::store_registers, remote_target::get_trace_status):
6117 Adjust to call remote_state's method.
6118 (_initialize_remote): Remove reference to
6119 remote_gdbarch_data_handle.
6121 2018-05-22 Pedro Alves <palves@redhat.com>
6123 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6124 pread>: New method declarations.
6125 (remote_target::open_1): Adjust.
6126 (readahead_cache_invalidate): Rename to ...
6127 (readahead_cache::invalidate): ... this, and adjust to be a class
6129 (readahead_cache_invalidate_fd): Rename to ...
6130 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6132 (remote_hostio_pwrite): Adjust.
6133 (remote_hostio_pread_from_cache): Rename to ...
6134 (readahead_cache::pread): ... this, and adjust to be a class
6136 (remote_hostio_close): Adjust.
6138 2018-05-22 Pedro Alves <palves@redhat.com>
6140 * remote.c (remote_hostio_close_cleanup): Delete.
6141 (class scoped_remote_fd): New.
6142 (remote_file_put, remote_file_get): Use it.
6144 2018-05-22 Pedro Alves <palves@redhat.com>
6146 (struct vCont_action_support): Use bool and initialize all fields.
6147 (struct readahead_cache): Initialize all fields.
6148 (remote_state): Use bool and initialize all fields.
6149 (remote_state::remote_state, remote_state::~remote_state): New.
6150 (new_remote_state): Delete.
6151 (_initialize_remote): Use new to allocate remote_state.
6153 2018-05-22 Pedro Alves <palves@redhat.com>
6157 * c-exp.y: Include "c-support.h".
6158 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6159 of tolower. Use c_ident_is_alpha to scan names.
6160 * c-lang.c: Include "c-support.h".
6161 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6162 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6163 * c-support.h: New file, with bits factored out from ...
6164 * cp-name-parser.y: ... this file.
6165 Include "c-support.h".
6166 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6167 c-support.h and renamed.
6168 (symbol_end, yylex): Adjust.
6170 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6172 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6173 parameter type to CORE_ADDR.
6174 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6175 parameter type in declaration to CORE_ADDR.
6176 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6177 target_auxv_search to get AT_HWCAP and use the result to get the
6179 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6180 to CORE_ADDR. Remove the cast of the return value to unsigned
6181 long. Fix error predicate of target_auxv_search.
6182 (ppc_linux_nat_target::read_description): Change the type of the
6183 hwcap variable to CORE_ADDR.
6185 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6187 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6188 if the size of fpscr is larger than 32 bits.
6190 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6192 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6193 (ppc32_linux_vsxregmap): New global.
6194 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6195 regcache_supply_regset, and regcache_collect_regset.
6196 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6197 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6198 (fetch_vsx_register, store_vsx_register): Remove.
6199 (fetch_vsx_registers): Add regno parameter. Get regset using
6200 ppc_linux_vsxregset. Use regset to supply registers.
6201 (store_vsx_registers): Add regno parameter. Get regset using
6202 ppc_linux_vsxregset. Use regset to collect registers.
6203 (fetch_register): Call fetch_vsx_registers instead of
6205 (store_register): Call store_vsx_registers instead of
6207 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6208 new regno parameter.
6209 (store_ppc_registers): Call store_vsx_registers with -1 for the
6210 new regno parameter.
6211 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6212 (ppc_collect_vsxregset): Remove.
6214 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6216 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6218 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6219 for vector register offset fields.
6220 (ppc64_fbsd_reg_offsets): Likewise.
6221 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6222 to vector register offset fields.
6223 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6224 to vector register offset fields.
6225 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6226 vector register offset fields.
6227 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6228 initializers for vector register offset fields.
6229 (rs6000_aix64_reg_offsets): Likewise.
6230 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6231 (ppc_supply_vrregset): Remove.
6232 (ppc_collect_vrregset): Remove.
6233 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6234 (ppc_linux_vrregset) : New function.
6235 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6236 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6237 (ppc32_linux_vrregset): Remove.
6238 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6239 and use result instead of ppc32_linux_vrregset.
6240 (ppc32_linux_reg_offsets): Remove initializers for vector register
6242 (ppc64_linux_reg_offsets): Likewise.
6243 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6244 * ppc-linux-nat.c: Include regset.h.
6245 (gdb_vrregset_t): Adjust comment to account for little-endian
6247 (supply_vrregset, fill_vrregset): Remove.
6248 (fetch_altivec_register, store_altivec_register): Remove.
6249 (fetch_altivec_registers): Add regno parameter. Get regset using
6250 ppc_linux_vrregset. Use regset to supply registers.
6251 (store_altivec_registers): Add regno parameter. Get regset using
6252 ppc_linux_vrregset. Use regset to collect registers.
6253 (fetch_register): Call fetch_altivec_registers instead of
6254 fetch_altivec_register.
6255 (store_register): Call store_altivec_registers instead of
6256 store_altivec_register.
6257 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6258 the new regno parameter.
6259 (store_ppc_registers): Call store_altivec_registers with -1 for
6260 the new regno parameter.
6262 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6264 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6265 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6266 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6267 (gdb_vrregset_t): Change array type size to
6268 PPC_LINUX_SIZEOF_VRREGSET.
6269 (gdb_vsxregset_t): Change array type size to
6270 PPC_LINUX_SIZEOF_VSXREGSET.
6271 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6272 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6273 PPC_LINUX_SIZEOF_VSXREGSET.
6275 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6277 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6278 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6280 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6281 ppc_linux_target_wordsize with tid.
6282 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6284 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6285 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6286 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6287 tid parameter. Remove static specifier.
6288 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6289 (ppc_linux_target_wordsize): New declaration.
6291 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6293 * arch/ppc-linux-common.c: New file.
6294 * arch/ppc-linux-common.h: New file.
6295 * arch/ppc-linux-tdesc.h: New file.
6296 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6297 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6298 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6299 arch/ppc-linux-tdesc.h.
6300 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6301 arch/ppc-linux-tdesc.h.
6302 (ppc_linux_nat_target::read_description): Remove target
6303 description matching code. Fill a ppc_linux_features struct and
6304 call ppc_linux_match_description with it. Move comment about ISA
6305 2.05 to ppc-linux-common.c.
6306 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6307 arch/ppc-linux-tdesc.h.
6308 (ppc_linux_core_read_description): Remove target description
6309 matching code. Fill a ppc_linux_features struct and call
6310 ppc_linux_match_description with it.
6311 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6312 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6313 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6314 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6315 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6316 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6317 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6318 (tdesc_powerpc_e500l): Remove.
6320 2018-05-22 Joel Brobecker <brobecker@adacore.com>
6322 * ada-lang.c (catch_assert_command): Pass empty string instead
6323 of NULL for excep_string argument.
6325 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6327 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6328 the width of the requested register exceeds the width of the
6331 2018-05-21 Tom Tromey <tom@tromey.com>
6333 * printcmd.c (output_command): Remove.
6334 (output_command_const): Rename to output_command.
6335 * valprint.h (output_command): Rename from output_command_const.
6336 * tracepoint.c (trace_dump_actions): Call output_command.
6338 2018-05-21 Tom Tromey <tom@tromey.com>
6340 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6341 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6342 * ada-lang.h (create_ada_exception_catchpoint): Update.
6343 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6345 (create_excep_cond_exprs, ~ada_catchpoint)
6346 (should_stop_exception, print_one_exception)
6347 (print_mention_exception, print_recreate_exception): Update.
6348 (ada_get_next_arg): Remove.
6349 (catch_ada_exception_command_split): Use std::string. Change type
6350 of "excep_string", "cond_string".
6351 (catch_ada_exception_command): Update.
6352 (create_ada_exception_catchpoint): Change type of excep_string.
6353 (ada_exception_sal): Remove excep_string parameter.
6354 (~ada_catchpoint): Remove.
6356 2018-05-21 Tom Tromey <tom@tromey.com>
6358 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6361 2018-05-21 Tom Tromey <tom@tromey.com>
6363 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6364 Return unique_xmalloc_ptr.
6365 (print_it_exception): Update.
6367 2018-05-21 Tom Tromey <tom@tromey.com>
6369 * tracepoint.c (trace_dump_actions): Use std::string.
6371 2018-05-21 Tom Tromey <tom@tromey.com>
6373 * symfile.c (reread_symbols): Use std::string for original_name.
6375 2018-05-21 Tom Tromey <tom@tromey.com>
6377 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6378 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6381 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6383 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6385 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6386 * objfiles.c (get_objfile_bfd_data): Allocate
6387 objfile_per_bfd_storage with obstack_new when allocating on
6390 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6392 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6394 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6395 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6396 * mdebugread.c (mdebug_build_psymtabs): Likewise.
6397 (add_pending): Likewise.
6398 (parse_symbol): Likewise.
6399 (parse_partial_symbols): Likewise.
6400 (psymtab_to_symtab_1): Likewise.
6401 (new_psymtab): Likewise.
6402 (elfmdebug_build_psymtabs): Likewise.
6403 * minsyms.c (terminate_minimal_symbol_table): Likewise.
6404 * objfiles.c (get_objfile_bfd_data): Likewise.
6405 (objfile_register_static_link): Likewise.
6406 * psymtab.c (allocate_psymtab): Likewise.
6407 * stabsread.c (read_member_functions): Likewise.
6408 * xcoffread.c (xcoff_end_psymtab): Likewise.
6410 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6412 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
6413 compiler supports std::is_trivially_constructible.
6414 * common/poison.h: Include obstack.h.
6415 (IsMallocable): Define to is_trivially_constructible if the
6416 compiler supports it, define to true_type otherwise.
6420 (XOBNEWVEC): Redefine.
6421 * gdb_obstack.h (obstack_zalloc): New.
6422 (OBSTACK_ZALLOC): Redefine.
6423 (obstack_calloc): New.
6424 (OBSTACK_CALLOC): Redefine.
6426 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
6427 (gdbarch_obstack): New declaration in gdbarch.h, definition in
6429 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
6430 obstack_calloc/obstack_zalloc.
6431 (gdbarch_obstack_zalloc): Remove.
6432 * target-descriptions.c (tdesc_data_init): Use obstack_new.
6434 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6436 * stack.c (backtrace_command_1): Remove useless variable int i.
6438 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6440 * stack.c (print_frame_info): Fix comment.
6442 2018-05-18 Tom Tromey <tom@tromey.com>
6444 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
6445 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
6446 (~dwarf2_per_objfile): Update
6447 (dwarf2_get_dwz_file): Use new.
6448 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6451 2018-05-18 Tom Tromey <tom@tromey.com>
6453 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
6455 * dwarf2read.c (struct dwp_file): Add constructor and
6457 (open_and_init_dwp_file): Return a unique_ptr.
6458 (dwarf2_per_objfile, create_dwp_hash_table)
6459 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
6460 (lookup_dwo_unit_in_dwp): Update.
6461 (open_and_init_dwp_file, get_dwp_file): Update.
6463 2018-05-18 Tom Tromey <tom@tromey.com>
6465 * dwarf2read.c (dwarf2_per_objfile): Update.
6466 (struct mapped_index): Add initializers.
6467 (dwarf2_read_index): Use new.
6468 (dw2_symtab_iter_init): Update.
6469 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
6472 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6474 * dwarf2read.c (mapped_index) <total_size>: Remove.
6476 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6478 * unittests/format_pieces-selftests.c (test_format_specifier):
6481 2018-05-18 Tom Tromey <tom@tromey.com>
6483 * c-typeprint.c (maybe_print_hole): New function.
6484 (c_print_type_struct_field_offset): Update.
6485 (c_type_print_base_struct_union): Call maybe_print_hole.
6487 2018-05-17 Keith Seitz <keiths@redhat.com>
6489 * breakpoint.c (build_bpstat_chain): New function, moved from
6491 (bpstat_stop_status): Add optional parameter, `stop_chain'.
6492 If no stop chain is passed, call build_bpstat_chain to build it.
6493 * breakpoint.h (build_bpstat_chain): Declare.
6494 (bpstat_stop_status): Move documentation here from breakpoint.c.
6495 * infrun.c (handle_signal_stop): Before eliding inlined frames,
6496 build the stop chain and pass it to skip_inline_frames.
6497 Pass this stop chain to bpstat_stop_status.
6498 * inline-frame.c: Include breakpoint.h.
6499 (stopped_by_user_bp_inline_frame): New function.
6500 (skip_inline_frames): Add parameter `stop_chain'.
6501 Move documention to inline-frame.h.
6502 If non-NULL, use stopped_by_user_bp_inline_frame to determine
6503 whether the frame should be elided.
6504 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
6505 Add moved documentation and update for new parameter.
6507 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6510 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6511 unittests/format_pieces-selftests.c.
6512 * common/format.h (format_piece) <operator==>: New.
6513 (format_pieces) <operator[]>: Remove.
6514 * common/format.c (format_pieces::format_pieces): Handle \e.
6515 * unittests/format_pieces-selftests.c: New.
6517 2018-05-17 Tom Tromey <tom@tromey.com>
6520 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
6521 (dw2_instantiate_symtab): Add skip_partial parameter.
6522 (dw2_find_last_source_symtab, dw2_map_expand_apply)
6523 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
6524 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
6525 (dw2_expand_symtabs_matching_one)
6526 (dw2_find_pc_sect_compunit_symtab)
6527 (dw2_debug_names_lookup_symbol)
6528 (dw2_debug_names_expand_symtabs_for_function): Update.
6529 (init_cutu_and_read_dies): Add skip_partial parameter.
6530 (process_psymtab_comp_unit, build_type_psymtabs_1)
6531 (process_skeletonless_type_unit, load_partial_comp_unit)
6532 (psymtab_to_symtab_1): Update.
6533 (load_full_comp_unit): Add skip_partial parameter.
6534 (process_imported_unit_die, dwarf2_read_addr_index)
6535 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
6536 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
6537 (read_signatured_type): Update.
6539 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6541 * value.c (release_value): Remove unused variable.
6542 (record_latest_value): Likewise.
6543 (access_value_history): Likewise.
6544 (preserve_values): Likewise.
6546 2018-05-17 Tom Tromey <tom@tromey.com>
6548 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
6551 2018-05-16 Maciej W. Rozycki <macro@mips.com>
6554 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
6555 Also handle registers whose width is not a multiple of
6557 (linux_nat_trad_target::store_register): Likewise.
6559 2018-05-16 Tom Tromey <tom@tromey.com>
6561 * gdbcore.h (core_bfd): Redefine.
6562 * corelow.c (core_target::close): Update.
6563 (core_target_open): Update.
6564 * progspace.h (struct program_space) <cbfd>: Now a
6567 2018-05-16 Tom Tromey <tom@tromey.com>
6570 * symfile-add-flags.h (enum symfile_add_flags)
6571 <SYMFILE_NOT_FILENAME>: New constant.
6572 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
6573 objfile name from BFD.
6574 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
6575 * minidebug.c (find_separate_debug_file_in_section): Put
6576 ".gnu_debugdata" into BFD's file name.
6578 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
6580 * regcache.c (regcache_read_ftype, regcache_write_ftype):
6583 2018-05-15 Tamar Christina <tamar.christina@arm.com>
6586 * aarch64-tdep.c (aarch64_analyze_prologue,
6587 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
6588 Indicate not interested in errors.
6590 2018-05-15 Maciej W. Rozycki <macro@mips.com>
6592 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
6593 Supply the MIPS_ZERO_REGNUM register.
6595 2018-05-15 Maciej W. Rozycki <macro@mips.com>
6597 * mips-tdep.c (mask_address_var): Make variable static.
6599 2018-05-14 Tom Tromey <tom@tromey.com>
6601 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
6603 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
6605 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
6606 FXSAVE_ADDR for the mxcsr register.
6608 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
6610 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
6612 2018-05-11 Pedro Alves <palves@redhat.com>
6614 * corelow.c (core_target) <core_target>: No longer inline.
6615 Initialize m_core_gdbarch, m_core_vec and build the section table
6617 <~core_target>: New.
6618 <core_gdbarch, get_core_register_section>: New methods.
6619 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
6620 factored out from ...
6621 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
6623 (sniff_core_bfd): Add gdbarch parameter.
6624 (core_close): Delete, merged into ...
6625 (core_target::close): ... here. Delete self.
6626 (core_close_cleanup): Delete.
6627 (core_target_open): Allocate a core_target on the heap. Use a
6628 unique_ptr instead of a cleanup. Bits moved into the core_target
6629 ctor. Adjust to use core_target methods instead of globals.
6630 (get_core_register_section): Rename to ...
6631 (core_target::get_core_register_section): ... this and adjust.
6632 (struct get_core_registers_cb_data): New.
6633 (get_core_registers_cb): Use it. Use bool.
6634 (core_target::fetch_registers, core_target::files_info)
6635 (core_target::xfer_partial, core_target::read_description)
6636 (core_target::pid_to, core_target::thread_name): Adjust to
6637 reference class fields instead of globals.
6638 * target.h (struct target_ops_deleter, target_ops_up): New.
6640 2018-05-11 Pedro Alves <palves@redhat.com>
6642 * corefile.c (core_file_command): Move to corelow.c.
6643 * corelow.c (the_core_target): Delete.
6644 (core_file_command): Moved from corefile.c. Check exec_bfd
6645 instead of the_core_target. Use target_detach instead of calling
6646 into the_core_target directly.
6647 (maybe_say_no_core_file_now): New.
6648 (core_target::detach): Use it.
6649 (_initialize_corelow): Remove references to the_core_target.
6650 * gdbcore.h (the_core_target): Delete.
6652 2018-05-11 Tom Tromey <tromey@redhat.com>
6653 Pedro Alves <palves@redhat.com>
6655 * corefile.c (core_bfd): Remove.
6656 * gdbcore.h (core_bfd): Now a macro.
6657 * progspace.h (struct program_space) <cbfd>: New field.
6659 2018-05-11 Tom Tromey <tom@tromey.com>
6661 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
6664 2018-05-10 Tom Tromey <tom@tromey.com>
6666 * configure: Rebuild.
6667 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
6669 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6672 * regformats/regdat.sh: Adjust script, following the addition
6673 of the new expedite_regs parameter to init_target_desc.
6675 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
6678 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
6679 set_gdbarch_significant_addr_bit.
6680 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
6681 set_gdbarch_significant_addr_bit.
6682 * utils.c (address_significant): Update to sign extend addr.
6684 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
6686 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
6687 (xtensa_linux_init_abi): Limit tdep->num_regs by
6688 tdep->num_nopriv_regs.
6689 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
6690 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
6693 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
6695 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
6697 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6699 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
6700 (I387_MXCSR_INIT_VAL): New constant.
6701 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
6702 buffer if it was supplied by the inferior.
6703 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
6704 (i387_xsave_get_clear_bv): New function.
6705 (i387_supply_xsave): Only read x87 control registers from the
6706 xsave buffer if the feature is enabled, and the state will have
6707 been written, otherwise, provide a suitable default.
6708 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
6709 including x87 control registers. Update control registers if they
6710 have changed from the default value, and mark features as enabled
6712 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
6714 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6716 * spu-tdep.c (info_spu_event_command): Fix output formatting.
6718 2018-05-07 Tom Tromey <tom@tromey.com>
6720 * configure: Rebuild.
6721 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
6723 2018-05-07 Tom Tromey <tom@tromey.com>
6726 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
6727 bit. Use correct value for VDIV.
6729 2018-05-04 Tom Tromey <tom@tromey.com>
6731 * configure: Rebuild.
6732 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
6734 2018-05-04 Tom Tromey <tom@tromey.com>
6736 * linux-record.c (record_linux_system_call) <case
6737 RECORD_SYS_RECVFROM>: Add "break".
6739 2018-05-04 Tom Tromey <tom@tromey.com>
6741 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
6742 Add missing "break".
6743 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
6744 Add missing "break".
6746 2018-05-04 Tom Tromey <tom@tromey.com>
6748 * rs6000-tdep.c (ppc_process_record_op4)
6749 (ppc_process_record_op63): Add fall-through comment.
6751 2018-05-04 Tom Tromey <tom@tromey.com>
6753 * i386-tdep.c (i386_process_record): Add fall-through comment.
6755 2018-05-04 Tom Tromey <tom@tromey.com>
6757 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
6760 2018-05-04 Tom Tromey <tom@tromey.com>
6762 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
6763 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
6764 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
6766 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
6768 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
6771 2018-05-04 Tom Tromey <tom@tromey.com>
6773 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
6775 2018-05-04 Tom Tromey <tom@tromey.com>
6777 * s390-tdep.c (s390_process_record): Fix fall-through comments.
6778 * xcoffread.c (scan_xcoff_symtab): Move comment later.
6779 * symfile.c (section_is_mapped): Fix fall-through comment.
6780 * stabsread.c (define_symbol, read_member_functions): Fix
6781 fall-through comment.
6782 * s390-linux-tdep.c (s390_process_record): Fix fall-through
6784 * remote.c (remote_wait_as): Fix fall-through comment.
6785 * p-exp.y (yylex): Fix fall-through comment.
6786 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
6788 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
6789 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
6790 * jv-exp.y (yylex): Fix fall-through comment.
6791 * go-exp.y (lex_one_token): Fix fall-through comment.
6792 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
6793 fall-through comment.
6794 * f-exp.y (yylex): Fix fall-through comment.
6795 * dwarf2read.c (process_die): Fix fall-through comments.
6796 * dbxread.c (process_one_symbol): Fix fall-through comment.
6797 * d-exp.y (lex_one_token): Fix fall-through comment.
6798 * cp-name-parser.y (yylex): Fix fall-through comment.
6799 * coffread.c (coff_symtab_read): Fix fall-through comment.
6800 * c-exp.y (lex_one_token): Fix fall-through comment.
6801 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
6803 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
6806 2018-05-04 Tom Tromey <tom@tromey.com>
6809 * NEWS: Mention gdb.execute change.
6810 * gdbcmd.h (execute_control_command): Don't declare.
6811 * python/python.c (execute_gdb_command): Use read_command_lines_1,
6812 execute_control_commands, execute_control_commands_to_string.
6813 * cli/cli-script.h (execute_control_commands)
6814 (execute_control_commands_to_string): Declare.
6815 (execute_control_command): Add from_tty parameter.
6816 * cli/cli-script.c (execute_control_commands)
6817 (execute_control_commands_to_string): New functions.
6818 (execute_user_command): Use execute_control_commands.
6819 (execute_control_command_1): Add "from_tty" parameter. Update.
6820 (execute_control_command): Likewise.
6822 2018-05-04 Tom Tromey <tom@tromey.com>
6825 * NEWS: Mention that breakpoint commands are writable.
6826 * python/py-breakpoint.c (bppy_set_commands): New function.
6827 (breakpoint_object_getset) <"commands">: Use it.
6829 2018-05-04 Tom Tromey <tom@tromey.com>
6831 * tracepoint.c (actions_command): Update.
6832 * mi/mi-cmd-break.c (mi_command_line_array)
6833 (mi_command_line_array_cnt, mi_command_line_array_ptr)
6834 (mi_read_next_line): Remove.
6835 (mi_cmd_break_commands): Update.
6836 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
6838 * cli/cli-script.c (get_command_line): Update.
6839 (process_next_line): Use function_view. Constify.
6840 (recurse_read_control_structure, read_command_lines)
6841 (read_command_lines_1): Change argument types to function_view.
6842 (do_define_command, document_command): Update.
6843 * breakpoint.h (check_tracepoint_command): Don't declare.
6844 * breakpoint.c (check_tracepoint_command): Remove.
6845 (commands_command_1, create_tracepoint_from_upload): Update.
6847 2018-05-04 Tom Tromey <tom@tromey.com>
6850 * cli/cli-script.h (enum command_control_type) <define_control>:
6852 * cli/cli-script.c (multi_line_command_p): Handle define_control.
6853 (build_command_line, execute_control_command_1)
6854 (process_next_line): Likewise.
6855 (do_define_command): New function, extracted from define_command.
6856 (define_command): Use it.
6858 2018-05-04 Tom Tromey <tom@tromey.com>
6860 * tracepoint.c (actions_command): Update.
6861 * cli/cli-script.h (read_command_lines): Update.
6862 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
6863 (MAX_TMPBUF): Remove define.
6864 (define_command): Use string_printf.
6865 (document_command): Likewise.
6866 * breakpoint.c (commands_command_1): Update.
6868 2018-05-04 Tom Tromey <tom@tromey.com>
6870 * top.c (execute_command): Update.
6871 * cli/cli-script.h (print_command_lines): Now varargs.
6872 * cli/cli-script.c (print_command_lines): Now varargs.
6873 (execute_control_command_1) <case while_control, case if_control>:
6876 2018-05-04 Tom Tromey <tom@tromey.com>
6878 * tracepoint.c (all_tracepoint_actions): Rename from
6879 all_tracepoint_actions_and_cleanup. Change return type.
6880 (actions_command, encode_actions_1, encode_actions)
6881 (trace_dump_actions, tdump_command): Update.
6882 * remote.c (remote_download_command_source): Update.
6883 * python/python.c (gdbpy_eval_from_control_command)
6884 (python_command, python_interactive_command): Update.
6885 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
6886 * guile/guile.c (guile_command)
6887 (gdbscm_eval_from_control_command, guile_command): Update.
6888 * compile/compile.c (compile_code_command)
6889 (compile_print_command, compile_to_object): Update.
6890 * cli/cli-script.h (struct command_lines_deleter): New.
6891 (counted_command_line): New typedef.
6892 (struct command_line): Add constructor, destructor.
6893 <body_list>: Remove.
6894 <body_list_0, body_list_1>: New members.
6895 (command_line_up): Remove typedef.
6896 (read_command_lines, read_command_lines_1, get_command_line):
6898 (copy_command_lines): Don't declare.
6899 * cli/cli-script.c (build_command_line): Use "new".
6900 (get_command_line): Return counted_command_line.
6901 (print_command_lines, execute_user_command)
6902 (execute_control_command_1, while_command, if_command): Update.
6903 (realloc_body_list): Remove.
6904 (process_next_line, recurse_read_control_structure): Update.
6905 (read_command_lines, read_command_lines_1): Return counted_command_line.
6906 (free_command_lines): Use "delete".
6907 (copy_command_lines): Remove.
6908 (define_command, document_command, show_user_1): Update.
6909 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
6910 a counted_command_line.
6911 * breakpoint.h (counted_command_line): Remove typedef.
6912 (breakpoint_set_commands): Update.
6913 * breakpoint.c (check_no_tracepoint_commands)
6914 (validate_commands_for_breakpoint): Update.
6915 (breakpoint_set_commands): Change commands to be a
6916 counted_command_line.
6917 (commands_command_1, update_dprintf_command_list)
6918 (create_tracepoint_from_upload): Update.
6920 2018-05-04 Tom Tromey <tom@tromey.com>
6922 * cli/cli-decode.h (cmd_list_element): New constructor.
6923 (~cmd_list_element): New destructor.
6924 (struct cmd_list_element): Add initializers.
6925 * cli/cli-decode.c (do_add_cmd): Use "new".
6926 (delete_cmd): Use "delete".
6928 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6929 Pedro Alves <palves@redhat.com>
6931 PR breakpoints/19806 and support for PR external/20207.
6932 * NEWS: Mention Aarch64 watchpoint improvements.
6933 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
6934 watchpoints and PR external/20207 watchpoints.
6935 * nat/aarch64-linux-hw-point.c
6936 (kernel_supports_any_contiguous_range): New.
6937 (aarch64_watchpoint_offset): New.
6938 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
6939 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
6940 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
6941 (aarch64_align_watchpoint): New parameters aligned_offset_p and
6942 next_addr_orig_p. Support PR external/20207 watchpoints.
6943 (aarch64_downgrade_regs): New.
6944 (aarch64_dr_state_insert_one_point): New parameters offset and
6946 (aarch64_dr_state_remove_one_point): Likewise.
6947 (aarch64_handle_breakpoint): Update caller.
6948 (aarch64_handle_aligned_watchpoint): Likewise.
6949 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
6951 (aarch64_linux_set_debug_regs): Remove const from state. Call
6952 aarch64_downgrade_regs.
6953 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
6954 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
6955 (DR_CONTROL_MASK): ... this.
6956 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
6957 (unsigned int aarch64_watchpoint_offset): New prototype.
6958 (aarch64_linux_set_debug_regs): Remove const from state.
6959 * utils.c (align_up, align_down): Move to ...
6960 * common/common-utils.c (align_up, align_down): ... here.
6961 * utils.h (align_up, align_down): Move to ...
6962 * common/common-utils.h (align_up, align_down): ... here.
6964 2018-05-04 Joel Brobecker <brobecker@adacore.com>
6966 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
6967 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
6968 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
6969 Re-implement to match the ABI as summarized in GCC's
6970 gcc/config/sparc/sparc.c. All callers updated.
6971 (sparc32_store_arguments): Remove assertion.
6973 2018-05-04 Tom Tromey <tom@tromey.com>
6975 * printcmd.c: Don't include tui.h.
6976 (decode_format): Use skip_spaces.
6978 2018-05-04 Tom Tromey <tom@tromey.com>
6981 * printcmd.c (last_count): New global.
6982 (x_command): Use saved count when repeating.
6984 2018-05-04 Tom Tromey <tom@tromey.com>
6986 * nto-procfs.c (do_closedir_cleanup): Remove.
6987 (procfs_pidlist): Use gdb_dir_up.
6988 * procfs.c (do_closedir_cleanup): Remove.
6989 (proc_update_threads): Use gdb_dir_up.
6990 * common/filestuff.h (struct gdb_dir_deleter): New.
6991 (gdb_dir_up): New typedef.
6993 2018-05-04 Tom Tromey <tom@tromey.com>
6995 * ada-lang.c (print_mention_exception): Use std::string.
6997 2018-05-04 Tom Tromey <tom@tromey.com>
6999 * ada-lang.c (create_excep_cond_exprs): Update.
7000 (ada_exception_catchpoint_cond_string): Use std::string.
7002 2018-05-04 Tom Tromey <tom@tromey.com>
7004 * ada-lang.c (xget_renaming_scope): Return std::string.
7005 (old_renaming_is_invisible): Update.
7007 2018-05-04 Tom Tromey <tom@tromey.com>
7009 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7010 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7012 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7014 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7016 2018-05-04 Tom Tromey <tom@tromey.com>
7018 * remote.c (remote_query_supported_append): Change type.
7019 (remote_check_symbols): Update.
7021 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7024 * configure.ac: Prepend libpython.
7025 * python/python-config.py: Likewise.
7026 * configure: Regenerate.
7028 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7030 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7032 2018-05-03 Pedro Alves <palves@redhat.com>
7035 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7036 override. Write 'true' instead of '1'.
7037 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7040 2018-05-02 Pedro Alves <palves@redhat.com>
7042 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7043 add_inf_child_target.
7044 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7045 add_inf_child_target.
7046 * aix-thread.c (aix_thread_target_info): New.
7047 (aix_thread_target) <shortname, longname, doc>: Delete.
7049 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7050 add_inf_child_target.
7051 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7052 add_inf_child_target.
7053 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7054 add_inf_child_target.
7055 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7056 add_inf_child_target.
7057 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7058 add_inf_child_target.
7059 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7060 add_inf_child_target.
7061 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7062 add_inf_child_target.
7063 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7064 add_inf_child_target.
7065 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7066 add_inf_child_target.
7067 * bfd-target.c (target_bfd_target_info): New.
7068 (target_bfd) <shortname, longname, doc>: Delete.
7070 * bsd-kvm.c (bsd_kvm_target_info): New.
7071 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7073 (bsd_kvm_target::open): Rename to ...
7074 (bsd_kvm_target_open): ... this. Adjust.
7075 * bsd-uthread.c (bsd_uthread_target_info): New.
7076 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7078 * corefile.c (core_file_command): Adjust.
7079 * corelow.c (core_target_info): New.
7080 (core_target) <shortname, longname, doc>: Delete.
7082 (core_target::open): Rename to ...
7083 (core_target_open): ... this. Adjust.
7084 * ctf.c (ctf_target_info): New.
7085 (ctf_target) <shortname, longname, doc>: Delete.
7087 (ctf_target::open): Rename to ...
7088 (ctf_target_open): ... this.
7089 (_initialize_ctf): Adjust.
7090 * exec.c (exec_target_info): New.
7091 (exec_target) <shortname, longname, doc>: Delete.
7093 (exec_target::open): Rename to ...
7094 (exec_target_open): ... this.
7095 * gdbcore.h (core_target_open): Declare.
7096 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7097 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7098 add_inf_child_target.
7099 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7100 add_inf_child_target.
7101 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7102 add_inf_child_target.
7103 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7104 add_inf_child_target.
7105 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7106 add_inf_child_target.
7107 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7108 add_inf_child_target.
7109 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7110 add_inf_child_target.
7111 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7112 add_inf_child_target.
7113 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7114 add_inf_child_target.
7115 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7116 add_inf_child_target.
7117 * inf-child.c (inf_child_target_info): New.
7118 (inf_child_target::info): New.
7119 (inf_child_open_target): Remove 'target' parameter. Use
7120 get_native_target instead.
7121 (inf_child_target::open): Delete.
7122 (add_inf_child_target): New.
7123 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7126 (add_inf_child_target): Declare.
7127 (inf_child_open_target): Declare.
7128 * linux-thread-db.c (thread_db_target_info): New.
7129 (thread_db_target) <shortname, longname, doc>: Delete.
7131 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7132 add_inf_child_target.
7133 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7134 add_inf_child_target.
7135 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7136 add_inf_child_target.
7137 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7138 add_inf_child_target.
7139 * make-target-delegates (print_class): Adjust.
7140 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7141 add_inf_child_target.
7142 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7143 add_inf_child_target.
7144 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7145 add_inf_child_target.
7146 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7147 add_inf_child_target.
7148 * nto-procfs.c (nto_native_target_info): New.
7149 (nto_procfs_target_native) <shortname, longname, doc>:
7152 (nto_procfs_target_info): New.
7153 (nto_procfs_target_procfs) <shortname, longname, doc>:
7156 (init_procfs_targets): Adjust.
7157 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7158 add_inf_child_target.
7159 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7160 add_inf_child_target.
7161 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7162 add_inf_child_target.
7163 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7164 add_inf_child_target.
7165 * ravenscar-thread.c (ravenscar_target_info): New.
7166 (ravenscar_thread_target) <shortname, longname, doc>:
7169 * record-btrace.c (record_btrace_target_info):
7170 (record_btrace_target) <shortname, longname, doc>: Delete.
7172 (record_btrace_target::open): Rename to ...
7173 (record_btrace_target_open): ... this. Adjust.
7174 * record-full.c (record_longname, record_doc): New.
7175 (record_full_base_target) <shortname, longname, doc>: Delete.
7177 (record_full_target_info): New.
7178 (record_full_target): <shortname>: Delete.
7180 (record_full_core_open_1, record_full_open_1): Update comments.
7181 (record_full_base_target::open): Rename to ...
7182 (record_full_open): ... this.
7183 (cmd_record_full_restore): Update.
7184 (_initialize_record_full): Update.
7185 * remote-sim.c (remote_sim_target_info): New.
7186 (gdbsim_target) <shortname, longname, doc>: Delete.
7188 (gdbsim_target::open): Rename to ...
7189 (gdbsim_target_open): ... this.
7190 (_initialize_remote_sim): Adjust.
7191 * remote.c (remote_doc): New.
7192 (remote_target_info): New.
7193 (remote_target) <shortname, longname, doc>: Delete.
7195 (extended_remote_target_info): New.
7196 (extended_remote_target) <shortname, longname, doc>: Delete.
7198 (remote_target::open_1): Make static. Adjust.
7199 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7200 * s390-linux-nat.c (_initialize_s390_nat): Use
7201 add_inf_child_target.
7202 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7203 add_inf_child_target.
7204 * sol-thread.c (thread_db_target_info): New.
7205 (sol_thread_target) <shortname, longname, doc>: Delete.
7207 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7208 add_inf_child_target.
7209 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7210 add_inf_child_target.
7211 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7212 add_inf_child_target.
7213 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7214 add_inf_child_target.
7215 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7216 add_inf_child_target.
7217 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7218 add_inf_child_target.
7219 * spu-linux-nat.c (_initialize_spu_nat): Use
7220 add_inf_child_target.
7221 * spu-multiarch.c (spu_multiarch_target_info): New.
7222 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7224 * target-delegates.c: Regenerate.
7225 * target.c: Include <unordered_map>.
7226 (target_ops_p): Delete.
7227 (DEF_VEC_P(target_ops_p)): Delete.
7228 (target_factories): New.
7229 (test_target_info): New.
7230 (test_target_ops::info): New.
7231 (open_target): Adjust to use target_factories.
7232 (add_target_with_completer): Rename to ...
7233 (add_target): ... this. Change prototype. Register target_info
7234 and open callback in target_factories. Register target_info in
7235 command context instead of target_ops.
7236 (add_target): Delete old implementation.
7237 (add_deprecated_target_alias): Change prototype. Adjust.
7238 (the_native_target): New.
7239 (set_native_target, get_native_target): New.
7240 (find_default_run_target): Use the_native_target.
7241 (find_attach_target, find_run_target): Simplify.
7242 (target_ops::open): Delete.
7243 (dummy_target_info): New.
7244 (dummy_target::shortname, dummy_target::longname)
7245 (dummy_target::doc): Delete.
7246 (dummy_target::info): New.
7247 (debug_target::shortname, debug_target::longname)
7248 (debug_target::doc): Delete.
7249 (debug_target::info): New.
7250 * target.h (struct target_info): New.
7251 (target_ops::~target_ops): Add comment.
7252 (target_ops::info): New.
7253 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7254 longer virtual. Implement in terms of target_info.
7255 (set_native_target, get_native_target): Declare.
7256 (target_open_ftype): New.
7257 (add_target, add_target_with_completer)
7258 (add_deprecated_target_alias): Change prototype.
7259 (test_target) <shortname, longname, doc>: Delete.
7261 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7262 add_inf_child_target.
7263 * tracefile-tfile.c (tfile_target_info): New.
7264 (tfile_target) <shortname, longname, doc>: Delete.
7266 (tfile_target::open): Rename to ...
7267 (tfile_target_open): ... this.
7268 (_initialize_tracefile_tfile): Adjust.
7269 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7270 add_inf_child_target.
7271 * windows-nat.c (_initialize_windows_nat): Use
7272 add_inf_child_target.
7273 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7274 add_inf_child_target.
7276 2018-05-02 Pedro Alves <palves@redhat.com>
7278 * linux-nat.h (linux_nat_target) <low_new_thread,
7279 low_delete_thread, low_new_fork, low_forget_process,
7280 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7281 New virtual methods.
7282 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7283 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7284 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7285 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7286 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7288 * linux-fork.c (delete_fork): Adjust to call low method.
7289 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7290 (linux_nat_new_fork, linux_nat_forget_process_hook)
7291 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7292 (linux_nat_status_is_event):
7293 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7294 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7296 (sigtrap_is_event): Rename to ...
7297 (linux_nat_target::low_status_is_event): ... this.
7298 (linux_nat_set_status_is_event): Delete.
7299 (save_stop_reason, linux_nat_wait_1)
7300 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7302 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7303 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7304 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7305 (linux_nat_set_prepare_to_resume): Delete.
7306 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7307 low virtual methods.
7308 * amd64-linux-nat.c: Likewise.
7309 * arm-linux-nat.c: Likewise.
7310 * i386-linux-nat.c: Likewise.
7311 * ia64-linux-nat.c: Likewise.
7312 * mips-linux-nat.c: Likewise.
7313 * ppc-linux-nat.c: Likewise.
7314 * s390-linux-nat.c: Likewise.
7315 * sparc64-linux-nat.c: Likewise.
7316 * x86-linux-nat.c: Likewise.
7317 * x86-linux-nat.h: Include "nat/x86-linux.h".
7318 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7319 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7322 2018-05-02 Pedro Alves <palves@redhat.com>
7324 * target.h (target_ops)
7325 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7326 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7327 stopped_by_watchpoint, have_continuable_watchpoint,
7328 stopped_data_address, watchpoint_addr_within_range,
7329 can_accel_watchpoint_condition, can_run, thread_alive,
7330 has_all_memory, has_memory, has_stack, has_registers,
7331 has_execution, can_async_p, is_async_p, supports_non_stop,
7332 always_non_stop_p, can_execute_reverse, supports_multi_process,
7333 supports_enable_disable_tracepoint,
7334 supports_disable_randomization, supports_string_tracing,
7335 supports_evaluation_of_breakpoint_conditions,
7336 can_run_breakpoint_commands, filesystem_is_local,
7337 can_download_tracepoint, get_trace_state_variable_value,
7338 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7339 record_is_replaying, record_will_replay,
7340 augmented_libraries_svr4_read>: Adjust to return bool.
7341 * aarch64-linux-nat.c: All implementations adjusted.
7342 * aix-thread.c: All implementations adjusted.
7343 * arm-linux-nat.c: All implementations adjusted.
7344 * breakpoint.c: All implementations adjusted.
7345 * bsd-kvm.c: All implementations adjusted.
7346 * bsd-uthread.c: All implementations adjusted.
7347 * corelow.c: All implementations adjusted.
7348 * ctf.c: All implementations adjusted.
7349 * darwin-nat.c: All implementations adjusted.
7350 * darwin-nat.h: All implementations adjusted.
7351 * exec.c: All implementations adjusted.
7352 * fbsd-nat.c: All implementations adjusted.
7353 * fbsd-nat.h: All implementations adjusted.
7354 * gnu-nat.c: All implementations adjusted.
7355 * gnu-nat.h: All implementations adjusted.
7356 * go32-nat.c: All implementations adjusted.
7357 * ia64-linux-nat.c: All implementations adjusted.
7358 * inf-child.c: All implementations adjusted.
7359 * inf-child.h: All implementations adjusted.
7360 * inf-ptrace.c: All implementations adjusted.
7361 * inf-ptrace.h: All implementations adjusted.
7362 * linux-nat.c: All implementations adjusted.
7363 * linux-nat.h: All implementations adjusted.
7364 * mips-linux-nat.c: All implementations adjusted.
7365 * nto-procfs.c: All implementations adjusted.
7366 * ppc-linux-nat.c: All implementations adjusted.
7367 * procfs.c: All implementations adjusted.
7368 * ravenscar-thread.c: All implementations adjusted.
7369 * record-btrace.c: All implementations adjusted.
7370 * record-full.c: All implementations adjusted.
7371 * remote-sim.c: All implementations adjusted.
7372 * remote.c: All implementations adjusted.
7373 * s390-linux-nat.c: All implementations adjusted.
7374 * sol-thread.c: All implementations adjusted.
7375 * spu-multiarch.c: All implementations adjusted.
7376 * target-delegates.c: All implementations adjusted.
7377 * target.c: All implementations adjusted.
7378 * target.h: All implementations adjusted.
7379 * tracefile-tfile.c: All implementations adjusted.
7380 * tracefile.c: All implementations adjusted.
7381 * tracefile.h: All implementations adjusted.
7382 * windows-nat.c: All implementations adjusted.
7383 * x86-linux-nat.h: All implementations adjusted.
7384 * x86-nat.h: All implementations adjusted.
7386 2018-05-02 Pedro Alves <palves@redhat.com>
7388 * make-target-delegates (scan_target_h): Don't trim lines here.
7389 Replace sequences of tabs and/or whitespace with a single
7391 (top level, parsing methods): Trim each line before processing it
7394 2018-05-02 Pedro Alves <palves@redhat.com>
7395 John Baldwin <jhb@freebsd.org>
7397 * target.h (enum strata) <debug_stratum>: New.
7398 (struct target_ops) <all delegation methods>: Replace by C++
7399 virtual methods, and drop "to_" prefix. All references updated
7401 <to_shortname, to_longname, to_doc, to_data,
7402 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
7403 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
7404 virtual methods. All references updated throughout.
7405 <can_attach, supports_terminal_ours, can_create_inferior,
7406 get_thread_control_capabilities, attach_no_wait>: New
7408 <insert_breakpoint, remove_breakpoint>: Now
7409 TARGET_DEFAULT_NORETURN methods.
7410 <info_proc>: Now returns bool.
7412 (OPS_MAGIC): Delete.
7413 (current_target): Delete. All references replaced by references
7415 (target_stack): ... this. New.
7416 (target_shortname, target_longname): Adjust.
7417 (target_can_run): Now a function declaration.
7418 (default_child_has_all_memory, default_child_has_memory)
7419 (default_child_has_stack, default_child_has_registers)
7420 (default_child_has_execution): Remove target_ops parameter.
7421 (complete_target_initialization): Delete.
7422 (memory_breakpoint_target): New template class.
7423 (test_target_ops): Refactor as a C++ class with virtual methods.
7424 * make-target-delegates (NAME_PART): Tighten.
7425 (POINTER_PART, CP_SYMBOL): New.
7426 (SIMPLE_RETURN_PART): Reimplement.
7427 (VEC_RETURN_PART): Expect less.
7428 (RETURN_PART, VIRTUAL_PART): New.
7429 (METHOD): Adjust to C++ virtual methods.
7430 (scan_target_h): Remove reference to C99.
7431 (dname): Output "target_ops::" prefix.
7432 (write_function_header): Adjust to output a C++ class method.
7433 (write_declaration): New.
7434 (write_delegator): Adjust to output a C++ class method.
7435 (tdname): Output "dummy_target::" prefix.
7436 (write_tdefault, write_debugmethod): Adjust to output a C++ class
7438 (tdefault_names, debug_names): Delete.
7439 (return_types, tdefaults, styles, argtypes_array): New.
7440 (top level): All methods are delegators.
7442 (top level): Print dummy_target and debug_target classes.
7443 * target-delegates.c: Regenerate.
7444 * target-debug.h (target_debug_print_enum_info_proc_what)
7445 (target_debug_print_thread_control_capabilities)
7446 (target_debug_print_thread_info_p): New.
7447 * target.c (dummy_target): Delete.
7448 (the_dummy_target, the_debug_target): New.
7449 (target_stack): Now extern.
7450 (set_targetdebug): Push/unpush debug target.
7451 (default_child_has_all_memory, default_child_has_memory)
7452 (default_child_has_stack, default_child_has_registers)
7453 (default_child_has_execution): Remove target_ops parameter.
7454 (complete_target_initialization): Delete.
7455 (add_target_with_completer): No longer call
7456 complete_target_initialization.
7457 (target_supports_terminal_ours): Use regular delegation.
7458 (update_current_target): Delete.
7459 (push_target): No longer check magic number. Don't call
7460 update_current_target.
7461 (unpush_target): Don't call update_current_target.
7462 (target_is_pushed): No longer check magic number.
7463 (target_require_runnable): Skip for all stratums over
7465 (target_ops::info_proc): New.
7466 (target_info_proc): Use find_target_at and
7467 find_default_run_target.
7468 (target_supports_disable_randomization): Use regular delegation.
7469 (target_get_osdata): Use find_target_at.
7470 (target_ops::open, target_ops::close, target_ops::can_attach)
7471 (target_ops::attach, target_ops::can_create_inferior)
7472 (target_ops::create_inferior, target_ops::can_run)
7473 (target_can_run): New.
7474 (default_fileio_target): Use regular delegation.
7475 (target_ops::fileio_open, target_ops::fileio_pwrite)
7476 (target_ops::fileio_pread, target_ops::fileio_fstat)
7477 (target_ops::fileio_close, target_ops::fileio_unlink)
7478 (target_ops::fileio_readlink): New.
7479 (target_fileio_open_1, target_fileio_unlink)
7480 (target_fileio_readlink): Always call the target method. Handle
7482 (return_zero, return_zero_has_execution): Delete.
7483 (init_dummy_target): Delete.
7484 (dummy_target::dummy_target, dummy_target::shortname)
7485 (dummy_target::longname, dummy_target::doc)
7486 (debug_target::debug_target, debug_target::shortname)
7487 (debug_target::longname, debug_target::doc): New.
7488 (target_supports_delete_record): Use regular delegation.
7489 (setup_target_debug): Delete.
7490 (maintenance_print_target_stack): Skip debug_stratum.
7491 (initialize_targets): Instantiate the_dummy_target and
7493 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
7495 (target_auxv_search, fprint_target_auxv): Adjust.
7496 (info_auxv_command): Adjust to use target_stack.
7497 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
7498 * exceptions.c (print_flush): Handle a NULL target_stack.
7499 * regcache.c (target_ops_no_register): Refactor as class with
7502 * exec.c (exec_target): New class.
7503 (exec_ops): Now an exec_target.
7504 (exec_open, exec_close_1, exec_get_section_table)
7505 (exec_xfer_partial, exec_files_info, exec_has_memory)
7506 (exec_make_note_section): Refactor as exec_target methods.
7507 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
7509 (exec_target::find_memory_regions): New.
7510 (_initialize_exec): Don't call init_exec_ops.
7511 * gdbcore.h (exec_file_clear): Delete.
7513 * corefile.c (core_target): Delete.
7514 (core_file_command): Adjust.
7515 * corelow.c (core_target): New class.
7516 (the_core_target): New.
7517 (core_close): Remove target_ops parameter.
7518 (core_close_cleanup): Adjust.
7519 (core_target::close): New.
7520 (core_open, core_detach, get_core_registers, core_files_info)
7521 (core_xfer_partial, core_thread_alive, core_read_description)
7522 (core_pid_to_str, core_thread_name, core_has_memory)
7523 (core_has_stack, core_has_registers, core_info_proc): Rework as
7524 core_target methods.
7525 (ignore, core_remove_breakpoint, init_core_ops): Delete.
7526 (_initialize_corelow): Initialize the_core_target.
7527 * gdbcore.h (core_target): Delete.
7528 (the_core_target): New.
7530 * ctf.c: (ctf_target): New class.
7531 (ctf_ops): Now a ctf_target.
7532 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
7533 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
7534 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
7536 (init_ctf_ops): Delete.
7537 (_initialize_ctf): Don't call it.
7538 * tracefile-tfile.c (tfile_target): New class.
7539 (tfile_ops): Now a tfile_target.
7540 (tfile_open, tfile_close, tfile_files_info)
7541 (tfile_get_tracepoint_status, tfile_trace_find)
7542 (tfile_fetch_registers, tfile_xfer_partial)
7543 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
7544 Refactor as tfile_target methods.
7545 (tfile_xfer_partial_features): Remove target_ops parameter.
7546 (init_tfile_ops): Delete.
7547 (_initialize_tracefile_tfile): Don't call it.
7548 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
7549 (tracefile_has_stack, tracefile_has_registers)
7550 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
7551 tracefile_target methods.
7552 (init_tracefile_ops): Delete.
7553 (tracefile_target::tracefile_target): New.
7554 * tracefile.h: Include "target.h".
7555 (tracefile_target): New class.
7556 (init_tracefile_ops): Delete.
7558 * spu-multiarch.c (spu_multiarch_target): New class.
7559 (spu_ops): Now a spu_multiarch_target.
7560 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
7561 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
7562 (spu_search_memory, spu_mourn_inferior): Refactor as
7563 spu_multiarch_target methods.
7564 (init_spu_ops): Delete.
7565 (_initialize_spu_multiarch): Remove references to init_spu_ops,
7566 complete_target_initialization.
7568 * ravenscar-thread.c (ravenscar_thread_target): New class.
7569 (ravenscar_ops): Now a ravenscar_thread_target.
7570 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
7571 (ravenscar_thread_alive, ravenscar_pid_to_str)
7572 (ravenscar_fetch_registers, ravenscar_store_registers)
7573 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
7574 (ravenscar_stopped_by_hw_breakpoint)
7575 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
7576 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
7577 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
7579 (init_ravenscar_thread_ops): Delete.
7580 (_initialize_ravenscar): Remove references to
7581 init_ravenscar_thread_ops and complete_target_initialization.
7583 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
7584 (bsd_uthread_target): New class.
7585 (bsd_uthread_ops): Now a bsd_uthread_target.
7586 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
7587 (bsd_uthread_close, bsd_uthread_mourn_inferior)
7588 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
7589 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
7590 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
7591 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
7592 (bsd_uthread_target): Delete function.
7593 (_initialize_bsd_uthread): Remove reference to
7594 complete_target_initialization.
7596 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
7597 (target_bfd): ... this new class.
7598 (target_bfd_xfer_partial, target_bfd_get_section_table)
7599 (target_bfd_close): Refactor as target_bfd methods.
7600 (target_bfd::~target_bfd): New.
7601 (target_bfd_reopen): Adjust.
7602 (target_bfd::close): New.
7604 * record-btrace.c (record_btrace_target): New class.
7605 (record_btrace_ops): Now a record_btrace_target.
7606 (record_btrace_open, record_btrace_stop_recording)
7607 (record_btrace_disconnect, record_btrace_close)
7608 (record_btrace_async, record_btrace_info)
7609 (record_btrace_insn_history, record_btrace_insn_history_range)
7610 (record_btrace_insn_history_from, record_btrace_call_history)
7611 (record_btrace_call_history_range)
7612 (record_btrace_call_history_from, record_btrace_record_method)
7613 (record_btrace_is_replaying, record_btrace_will_replay)
7614 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7615 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
7616 (record_btrace_store_registers, record_btrace_prepare_to_store)
7617 (record_btrace_to_get_unwinder)
7618 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
7619 (record_btrace_commit_resume, record_btrace_wait)
7620 (record_btrace_stop, record_btrace_can_execute_reverse)
7621 (record_btrace_stopped_by_sw_breakpoint)
7622 (record_btrace_supports_stopped_by_sw_breakpoint)
7623 (record_btrace_stopped_by_hw_breakpoint)
7624 (record_btrace_supports_stopped_by_hw_breakpoint)
7625 (record_btrace_update_thread_list, record_btrace_thread_alive)
7626 (record_btrace_goto_begin, record_btrace_goto_end)
7627 (record_btrace_goto, record_btrace_stop_replaying_all)
7628 (record_btrace_execution_direction)
7629 (record_btrace_prepare_to_generate_core)
7630 (record_btrace_done_generating_core): Refactor as
7631 record_btrace_target methods.
7632 (init_record_btrace_ops): Delete.
7633 (_initialize_record_btrace): Remove reference to
7634 init_record_btrace_ops.
7635 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
7636 the execution_direction global.
7637 (record_full_base_target, record_full_target)
7638 (record_full_core_target): New classes.
7639 (record_full_ops): Now a record_full_target.
7640 (record_full_core_ops): Now a record_full_core_target.
7641 (record_full_target::detach, record_full_target::disconnect)
7642 (record_full_core_target::disconnect)
7643 (record_full_target::mourn_inferior, record_full_target::kill):
7645 (record_full_open, record_full_close, record_full_async): Refactor
7646 as methods of the record_full_base_target class.
7647 (record_full_resume, record_full_commit_resume): Refactor
7648 as methods of the record_full_target class.
7649 (record_full_wait, record_full_stopped_by_watchpoint)
7650 (record_full_stopped_data_address)
7651 (record_full_stopped_by_sw_breakpoint)
7652 (record_full_supports_stopped_by_sw_breakpoint)
7653 (record_full_stopped_by_hw_breakpoint)
7654 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
7655 methods of the record_full_base_target class.
7656 (record_full_store_registers, record_full_xfer_partial)
7657 (record_full_insert_breakpoint, record_full_remove_breakpoint):
7658 Refactor as methods of the record_full_target class.
7659 (record_full_can_execute_reverse, record_full_get_bookmark)
7660 (record_full_goto_bookmark, record_full_execution_direction)
7661 (record_full_record_method, record_full_info, record_full_delete)
7662 (record_full_is_replaying, record_full_will_replay)
7663 (record_full_goto_begin, record_full_goto_end, record_full_goto)
7664 (record_full_stop_replaying): Refactor as methods of the
7665 record_full_base_target class.
7666 (record_full_core_resume, record_full_core_kill)
7667 (record_full_core_fetch_registers)
7668 (record_full_core_prepare_to_store)
7669 (record_full_core_store_registers, record_full_core_xfer_partial)
7670 (record_full_core_insert_breakpoint)
7671 (record_full_core_remove_breakpoint)
7672 (record_full_core_has_execution): Refactor
7673 as methods of the record_full_core_target class.
7674 (record_full_base_target::supports_delete_record): New.
7675 (init_record_full_ops): Delete.
7676 (init_record_full_core_ops): Delete.
7677 (record_full_save): Refactor as method of the
7678 record_full_base_target class.
7679 (_initialize_record_full): Remove references to
7680 init_record_full_ops and init_record_full_core_ops.
7682 * remote.c (remote_target, extended_remote_target): New classes.
7683 (remote_ops): Now a remote_target.
7684 (extended_remote_ops): Now an extended_remote_target.
7685 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
7686 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
7687 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
7688 (remote_pass_signals, remote_set_syscall_catchpoint)
7689 (remote_program_signals, )
7690 (remote_thread_always_alive): Remove target_ops parameter.
7691 (remote_thread_alive, remote_thread_name)
7692 (remote_update_thread_list, remote_threads_extra_info)
7693 (remote_static_tracepoint_marker_at)
7694 (remote_static_tracepoint_markers_by_strid)
7695 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
7696 (remote_open): Refactor as methods of remote_target.
7697 (extended_remote_open, extended_remote_detach)
7698 (extended_remote_attach, extended_remote_post_attach):
7699 (extended_remote_supports_disable_randomization)
7700 (extended_remote_create_inferior): : Refactor as method of
7701 extended_remote_target.
7702 (remote_set_permissions, remote_open_1, remote_detach)
7703 (remote_follow_fork, remote_follow_exec, remote_disconnect)
7704 (remote_resume, remote_commit_resume, remote_stop)
7705 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
7706 (remote_terminal_ours, remote_wait, remote_fetch_registers)
7707 (remote_prepare_to_store, remote_store_registers)
7708 (remote_flash_erase, remote_flash_done, remote_files_info)
7709 (remote_kill, remote_mourn, remote_insert_breakpoint)
7710 (remote_remove_breakpoint, remote_insert_watchpoint)
7711 (remote_watchpoint_addr_within_range)
7712 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
7713 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
7714 (remote_supports_stopped_by_sw_breakpoint)
7715 (remote_stopped_by_hw_breakpoint)
7716 (remote_supports_stopped_by_hw_breakpoint)
7717 (remote_stopped_by_watchpoint, remote_stopped_data_address)
7718 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
7719 (remote_verify_memory): Refactor as methods of remote_target.
7720 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
7722 (remote_xfer_partial, remote_get_memory_xfer_limit)
7723 (remote_search_memory, remote_rcmd, remote_memory_map)
7724 (remote_pid_to_str, remote_get_thread_local_address)
7725 (remote_get_tib_address, remote_read_description): Refactor as
7726 methods of remote_target.
7727 (remote_target::fileio_open, remote_target::fileio_pwrite)
7728 (remote_target::fileio_pread, remote_target::fileio_close): New.
7729 (remote_hostio_readlink, remote_hostio_fstat)
7730 (remote_filesystem_is_local, remote_can_execute_reverse)
7731 (remote_supports_non_stop, remote_supports_disable_randomization)
7732 (remote_supports_multi_process, remote_supports_cond_breakpoints)
7733 (remote_supports_enable_disable_tracepoint)
7734 (remote_supports_string_tracing)
7735 (remote_can_run_breakpoint_commands, remote_trace_init)
7736 (remote_download_tracepoint, remote_can_download_tracepoint)
7737 (remote_download_trace_state_variable, remote_enable_tracepoint)
7738 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
7739 (remote_trace_start, remote_get_trace_status)
7740 (remote_get_tracepoint_status, remote_trace_stop)
7741 (remote_trace_find, remote_get_trace_state_variable_value)
7742 (remote_save_trace_data, remote_get_raw_trace_data)
7743 (remote_set_disconnected_tracing, remote_core_of_thread)
7744 (remote_set_circular_trace_buffer, remote_traceframe_info)
7745 (remote_get_min_fast_tracepoint_insn_len)
7746 (remote_set_trace_buffer_size, remote_set_trace_notes)
7747 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
7748 (remote_disable_btrace, remote_teardown_btrace)
7749 (remote_read_btrace, remote_btrace_conf)
7750 (remote_augmented_libraries_svr4_read, remote_load)
7751 (remote_pid_to_exec_file, remote_can_do_single_step)
7752 (remote_execution_direction, remote_thread_handle_to_thread_info):
7753 Refactor as methods of remote_target.
7754 (init_remote_ops, init_extended_remote_ops): Delete.
7755 (remote_can_async_p, remote_is_async_p, remote_async)
7756 (remote_thread_events, remote_upload_tracepoints)
7757 (remote_upload_trace_state_variables): Refactor as methods of
7759 (_initialize_remote): Remove references to init_remote_ops and
7760 init_extended_remote_ops.
7762 * remote-sim.c (gdbsim_target): New class.
7763 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
7764 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
7765 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
7766 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
7767 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
7768 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
7769 Refactor as methods of gdbsim_target.
7770 (gdbsim_ops): Now a gdbsim_target.
7771 (init_gdbsim_ops): Delete.
7772 (gdbsim_cntrl_c): Adjust.
7773 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
7775 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
7776 (the_amd64_linux_nat_target): New.
7777 (amd64_linux_fetch_inferior_registers)
7778 (amd64_linux_store_inferior_registers): Refactor as methods of
7779 amd64_linux_nat_target.
7780 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
7781 * i386-linux-nat.c: Don't include "linux-nat.h".
7782 (i386_linux_nat_target): New class.
7783 (the_i386_linux_nat_target): New.
7784 (i386_linux_fetch_inferior_registers)
7785 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
7786 as methods of i386_linux_nat_target.
7787 (_initialize_i386_linux_nat): Adjust. Set linux_target.
7788 * inf-child.c (inf_child_ops): Delete.
7789 (inf_child_fetch_inferior_registers)
7790 (inf_child_store_inferior_registers): Delete.
7791 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
7792 methods of inf_child_target.
7793 (inf_child_target::supports_terminal_ours)
7794 (inf_child_target::terminal_init)
7795 (inf_child_target::terminal_inferior)
7796 (inf_child_target::terminal_ours_for_output)
7797 (inf_child_target::terminal_ours, inf_child_target::interrupt)
7798 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
7800 (inf_child_open, inf_child_disconnect, inf_child_close)
7801 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
7802 (inf_child_post_startup_inferior, inf_child_can_run)
7803 (inf_child_pid_to_exec_file): Refactor as methods of
7805 (inf_child_follow_fork): Delete.
7806 (inf_child_target::can_create_inferior)
7807 (inf_child_target::can_attach): New.
7808 (inf_child_target::has_all_memory, inf_child_target::has_memory)
7809 (inf_child_target::has_stack, inf_child_target::has_registers)
7810 (inf_child_target::has_execution): New.
7811 (inf_child_fileio_open, inf_child_fileio_pwrite)
7812 (inf_child_fileio_pread, inf_child_fileio_fstat)
7813 (inf_child_fileio_close, inf_child_fileio_unlink)
7814 (inf_child_fileio_readlink, inf_child_use_agent)
7815 (inf_child_can_use_agent): Refactor as methods of
7817 (return_zero, inf_child_target): Delete.
7818 (inf_child_target::inf_child_target): New.
7819 * inf-child.h: Include "target.h".
7820 (inf_child_target): Delete function prototype.
7821 (inf_child_target): New class.
7822 (inf_child_open_target, inf_child_mourn_inferior)
7823 (inf_child_maybe_unpush_target): Delete.
7824 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
7825 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
7826 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
7827 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
7828 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
7829 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
7830 (inf_ptrace_wait, inf_ptrace_xfer_partial)
7831 (inf_ptrace_thread_alive, inf_ptrace_files_info)
7832 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
7833 methods of inf_ptrace_target.
7834 (inf_ptrace_target): Delete function.
7835 * inf-ptrace.h: Include "inf-child.h".
7836 (inf_ptrace_target): Delete function declaration.
7837 (inf_ptrace_target): New class.
7838 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
7839 * linux-nat.c (linux_target): New.
7840 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
7841 (linux_nat_target::~linux_nat_target): New.
7842 (linux_child_post_attach, linux_child_post_startup_inferior)
7843 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
7844 (linux_child_remove_fork_catchpoint)
7845 (linux_child_insert_vfork_catchpoint)
7846 (linux_child_remove_vfork_catchpoint)
7847 (linux_child_insert_exec_catchpoint)
7848 (linux_child_remove_exec_catchpoint)
7849 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
7850 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
7851 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
7852 (linux_nat_stopped_data_address)
7853 (linux_nat_stopped_by_sw_breakpoint)
7854 (linux_nat_supports_stopped_by_sw_breakpoint)
7855 (linux_nat_stopped_by_hw_breakpoint)
7856 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
7857 (linux_nat_kill, linux_nat_mourn_inferior)
7858 (linux_nat_xfer_partial, linux_nat_thread_alive)
7859 (linux_nat_update_thread_list, linux_nat_pid_to_str)
7860 (linux_nat_thread_name, linux_child_pid_to_exec_file)
7861 (linux_child_static_tracepoint_markers_by_strid)
7862 (linux_nat_is_async_p, linux_nat_can_async_p)
7863 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
7864 (linux_nat_supports_multi_process)
7865 (linux_nat_supports_disable_randomization, linux_nat_async)
7866 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
7867 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
7868 (linux_nat_fileio_open, linux_nat_fileio_readlink)
7869 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
7870 methods of linux_nat_target.
7871 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
7872 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
7874 (check_stopped_by_watchpoint): Adjust.
7875 (linux_xfer_partial): Delete.
7876 (linux_target_install_ops, linux_target, linux_nat_add_target):
7878 (linux_nat_target::linux_nat_target): New.
7879 * linux-nat.h: Include "inf-ptrace.h".
7880 (linux_nat_target): New.
7881 (linux_target, linux_target_install_ops, linux_nat_add_target):
7882 Delete function declarations.
7883 (linux_target): Declare global.
7884 * linux-thread-db.c (thread_db_target): New.
7885 (thread_db_target::thread_db_target): New.
7886 (thread_db_ops): Delete.
7887 (the_thread_db_target): New.
7888 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
7889 (thread_db_update_thread_list, thread_db_pid_to_str)
7890 (thread_db_extra_thread_info)
7891 (thread_db_thread_handle_to_thread_info)
7892 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
7893 (thread_db_resume): Refactor as methods of thread_db_target.
7894 (init_thread_db_ops): Delete.
7895 (_initialize_thread_db): Remove reference to init_thread_db_ops.
7896 * x86-linux-nat.c: Don't include "linux-nat.h".
7897 (super_post_startup_inferior): Delete.
7898 (x86_linux_nat_target::~x86_linux_nat_target): New.
7899 (x86_linux_child_post_startup_inferior)
7900 (x86_linux_read_description, x86_linux_enable_btrace)
7901 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
7902 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
7903 methods of x86_linux_nat_target.
7904 (x86_linux_create_target): Delete. Bits folded ...
7905 (x86_linux_add_target): ... here. Now takes a linux_nat_target
7907 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
7908 (x86_linux_nat_target): New class.
7909 (x86_linux_create_target): Delete.
7910 (x86_linux_add_target): Now takes a linux_nat_target pointer.
7911 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
7912 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
7913 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
7914 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
7915 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
7917 (x86_use_watchpoints): Delete.
7918 * x86-nat.h: Include "breakpoint.h" and "target.h".
7919 (x86_use_watchpoints): Delete.
7920 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
7921 (x86_stopped_by_watchpoint, x86_stopped_data_address)
7922 (x86_insert_watchpoint, x86_remove_watchpoint)
7923 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
7924 (x86_stopped_by_hw_breakpoint): New declarations.
7925 (x86_nat_target): New template class.
7927 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
7928 (the_ppc_linux_nat_target): New.
7929 (ppc_linux_fetch_inferior_registers)
7930 (ppc_linux_can_use_hw_breakpoint)
7931 (ppc_linux_region_ok_for_hw_watchpoint)
7932 (ppc_linux_ranged_break_num_registers)
7933 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
7934 (ppc_linux_insert_mask_watchpoint)
7935 (ppc_linux_remove_mask_watchpoint)
7936 (ppc_linux_can_accel_watchpoint_condition)
7937 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
7938 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
7939 (ppc_linux_watchpoint_addr_within_range)
7940 (ppc_linux_masked_watch_num_registers)
7941 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
7942 (ppc_linux_read_description): Refactor as methods of
7943 ppc_linux_nat_target.
7944 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
7946 * procfs.c (procfs_xfer_partial): Delete forward declaration.
7947 (procfs_target): New class.
7948 (the_procfs_target): New.
7949 (procfs_target): Delete function.
7950 (procfs_auxv_parse, procfs_attach, procfs_detach)
7951 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
7952 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
7953 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
7954 (procfs_create_inferior, procfs_update_thread_list)
7955 (procfs_thread_alive, procfs_pid_to_str)
7956 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
7957 (procfs_stopped_data_address, procfs_insert_watchpoint)
7958 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
7959 (proc_find_memory_regions, procfs_info_proc)
7960 (procfs_make_note_section): Refactor as methods of procfs_target.
7961 (_initialize_procfs): Adjust.
7962 * sol-thread.c (sol_thread_target): New class.
7963 (sol_thread_ops): Now a sol_thread_target.
7964 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
7965 (sol_thread_fetch_registers, sol_thread_store_registers)
7966 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
7967 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
7968 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
7969 (init_sol_thread_ops): Delete.
7970 (_initialize_sol_thread): Adjust. Remove references to
7971 init_sol_thread_ops and complete_target_initialization.
7973 * windows-nat.c (windows_nat_target): New class.
7974 (windows_fetch_inferior_registers)
7975 (windows_store_inferior_registers, windows_resume, windows_wait)
7976 (windows_attach, windows_detach, windows_pid_to_exec_file)
7977 (windows_files_info, windows_create_inferior)
7978 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
7979 (windows_close, windows_pid_to_str, windows_xfer_partial)
7980 (windows_get_tib_address, windows_get_ada_task_ptid)
7981 (windows_thread_name, windows_thread_alive): Refactor as
7982 windows_nat_target methods.
7983 (do_initial_windows_stuff): Adjust.
7984 (windows_target): Delete function.
7985 (_initialize_windows_nat): Adjust.
7987 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
7988 (darwin_mourn_inferior, darwin_kill_inferior)
7989 (darwin_create_inferior, darwin_attach, darwin_detach)
7990 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
7991 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
7992 (darwin_supports_multi_process): Refactor as darwin_nat_target
7994 (darwin_resume_to, darwin_files_info): Delete.
7995 (_initialize_darwin_inferior): Rename to ...
7996 (_initialize_darwin_nat): ... this. Adjust to C++ification.
7997 * darwin-nat.h: Include "inf-child.h".
7998 (darwin_nat_target): New class.
7999 (darwin_complete_target): Delete.
8000 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8001 (darwin_target): New.
8002 (i386_darwin_fetch_inferior_registers)
8003 (i386_darwin_store_inferior_registers): Refactor as methods of
8005 (darwin_complete_target): Delete, with ...
8006 (_initialize_i386_darwin_nat): ... bits factored out here.
8008 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8009 (the_alpha_linux_nat_target): New.
8010 (alpha_linux_register_u_offset): Refactor as
8011 alpha_linux_nat_target method.
8012 (_initialize_alpha_linux_nat): Adjust.
8013 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8014 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8015 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8016 methods of linux_nat_trad_target.
8017 (linux_trad_target): Delete.
8018 * linux-nat-trad.h (linux_trad_target): Delete function.
8019 (linux_nat_trad_target): New class.
8020 * mips-linux-nat.c (mips_linux_nat_target): New class.
8021 (super_fetch_registers, super_store_registers, super_close):
8023 (the_mips_linux_nat_target): New.
8024 (mips64_linux_regsets_fetch_registers)
8025 (mips64_linux_regsets_store_registers)
8026 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8027 (mips_linux_register_u_offset, mips_linux_read_description)
8028 (mips_linux_can_use_hw_breakpoint)
8029 (mips_linux_stopped_by_watchpoint)
8030 (mips_linux_stopped_data_address)
8031 (mips_linux_region_ok_for_hw_watchpoint)
8032 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8033 (mips_linux_close): Refactor as methods of mips_linux_nat.
8034 (_initialize_mips_linux_nat): Adjust to C++ification.
8036 * aix-thread.c (aix_thread_target): New class.
8037 (aix_thread_ops): Now an aix_thread_target.
8038 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8039 (aix_thread_fetch_registers, aix_thread_store_registers)
8040 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8041 (aix_thread_thread_alive, aix_thread_pid_to_str)
8042 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8043 Refactor as methods of aix_thread_target.
8044 (init_aix_thread_ops): Delete.
8045 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8046 and complete_target_initialization.
8047 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8048 (rs6000_nat_target): New class.
8049 (the_rs6000_nat_target): New.
8050 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8051 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8052 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8053 (super_create_inferior): Delete.
8054 (_initialize_rs6000_nat): Adjust to C++ification.
8056 * arm-linux-nat.c (arm_linux_nat_target): New class.
8057 (the_arm_linux_nat_target): New.
8058 (arm_linux_fetch_inferior_registers)
8059 (arm_linux_store_inferior_registers, arm_linux_read_description)
8060 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8061 (arm_linux_remove_hw_breakpoint)
8062 (arm_linux_region_ok_for_hw_watchpoint)
8063 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8064 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8065 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8066 arm_linux_nat_target.
8067 (_initialize_arm_linux_nat): Adjust to C++ification.
8069 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8070 (the_aarch64_linux_nat_target): New.
8071 (aarch64_linux_fetch_inferior_registers)
8072 (aarch64_linux_store_inferior_registers)
8073 (aarch64_linux_child_post_startup_inferior)
8074 (aarch64_linux_read_description)
8075 (aarch64_linux_can_use_hw_breakpoint)
8076 (aarch64_linux_insert_hw_breakpoint)
8077 (aarch64_linux_remove_hw_breakpoint)
8078 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8079 (aarch64_linux_region_ok_for_hw_watchpoint)
8080 (aarch64_linux_stopped_data_address)
8081 (aarch64_linux_stopped_by_watchpoint)
8082 (aarch64_linux_watchpoint_addr_within_range)
8083 (aarch64_linux_can_do_single_step): Refactor as methods of
8084 aarch64_linux_nat_target.
8085 (super_post_startup_inferior): Delete.
8086 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8088 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8089 (the_hppa_linux_nat_target): New.
8090 (hppa_linux_fetch_inferior_registers)
8091 (hppa_linux_store_inferior_registers): Refactor as methods of
8092 hppa_linux_nat_target.
8093 (_initialize_hppa_linux_nat): Adjust to C++ification.
8095 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8096 (the_ia64_linux_nat_target): New.
8097 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8098 (ia64_linux_stopped_data_address)
8099 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8100 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8101 ia64_linux_nat_target methods.
8102 (super_xfer_partial): Delete.
8103 (_initialize_ia64_linux_nat): Adjust to C++ification.
8105 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8106 (the_m32r_linux_nat_target): New.
8107 (m32r_linux_fetch_inferior_registers)
8108 (m32r_linux_store_inferior_registers): Refactor as
8109 m32r_linux_nat_target methods.
8110 (_initialize_m32r_linux_nat): Adjust to C++ification.
8112 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8113 (the_m68k_linux_nat_target): New.
8114 (m68k_linux_fetch_inferior_registers)
8115 (m68k_linux_store_inferior_registers): Refactor as
8116 m68k_linux_nat_target methods.
8117 (_initialize_m68k_linux_nat): Adjust to C++ification.
8119 * s390-linux-nat.c (s390_linux_nat_target): New class.
8120 (the_s390_linux_nat_target): New.
8121 (s390_linux_fetch_inferior_registers)
8122 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8123 (s390_insert_watchpoint, s390_remove_watchpoint)
8124 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8125 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8126 (s390_auxv_parse, s390_read_description): Refactor as methods of
8127 s390_linux_nat_target.
8128 (_initialize_s390_nat): Adjust to C++ification.
8130 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8131 (the_sparc_linux_nat_target): New.
8132 (_initialize_sparc_linux_nat): Adjust to C++ification.
8133 * sparc-nat.c (sparc_fetch_inferior_registers)
8134 (sparc_store_inferior_registers): Remove target_ops parameter.
8135 * sparc-nat.h (sparc_fetch_inferior_registers)
8136 (sparc_store_inferior_registers): Remove target_ops parameter.
8137 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8138 (the_sparc64_linux_nat_target): New.
8139 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8141 * spu-linux-nat.c (spu_linux_nat_target): New class.
8142 (the_spu_linux_nat_target): New.
8143 (spu_child_post_startup_inferior, spu_child_post_attach)
8144 (spu_child_wait, spu_fetch_inferior_registers)
8145 (spu_store_inferior_registers, spu_xfer_partial)
8146 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8148 (_initialize_spu_nat): Adjust to C++ification.
8150 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8151 (the_tilegx_linux_nat_target): New.
8152 (fetch_inferior_registers, store_inferior_registers):
8153 Refactor as methods.
8154 (_initialize_tile_linux_nat): Adjust to C++ification.
8156 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8157 (the_xtensa_linux_nat_target): New.
8158 (xtensa_linux_fetch_inferior_registers)
8159 (xtensa_linux_store_inferior_registers): Refactor as
8160 xtensa_linux_nat_target methods.
8161 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8163 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8164 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8165 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8166 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8167 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8168 (fbsd_stopped_by_sw_breakpoint)
8169 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8170 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8171 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8172 (fbsd_post_startup_inferior, fbsd_post_attach)
8173 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8174 (fbsd_set_syscall_catchpoint)
8175 (super_xfer_partial, super_resume, super_wait)
8176 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8177 (fbsd_handle_debug_trap): Remove target_ops parameter.
8178 (fbsd_nat_add_target): Delete.
8179 * fbsd-nat.h: Include "inf-ptrace.h".
8180 (fbsd_nat_add_target): Delete.
8181 (USE_SIGTRAP_SIGINFO): Define.
8182 (fbsd_nat_target): New class.
8184 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8185 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8186 (amd64bsd_target): Delete.
8187 * amd64-bsd-nat.h: New file.
8188 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8190 (amd64_fbsd_nat_target): New class.
8191 (the_amd64_fbsd_nat_target): New.
8192 (amd64fbsd_read_description): Refactor as method of
8193 amd64_fbsd_nat_target.
8194 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8195 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8196 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8197 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8198 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8199 (i386bsd_target): Delete.
8200 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8201 (i386bsd_fetch_inferior_registers)
8202 (i386bsd_store_inferior_registers): Declare.
8203 (i386_bsd_nat_target): New class.
8204 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8205 (the_i386_fbsd_nat_target): New.
8206 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8207 i386_fbsd_nat_target methods.
8208 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8209 (_initialize_i386fbsd_nat): Adjust to C++ification.
8210 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8211 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8212 (_initialize_x86_bsd_nat): Adjust to C++ification.
8213 * x86-bsd-nat.h: Include "x86-nat.h".
8214 (x86bsd_target): Delete declaration.
8215 (x86bsd_nat_target): New class.
8217 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8218 (the_aarch64_fbsd_nat_target): New.
8219 (aarch64_fbsd_fetch_inferior_registers)
8220 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8221 aarch64_fbsd_nat_target.
8222 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8223 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8224 (the_alpha_bsd_nat_target): New.
8225 (alphabsd_fetch_inferior_registers)
8226 (alphabsd_store_inferior_registers): Refactor as
8227 alpha_bsd_nat_target methods.
8228 (_initialize_alphabsd_nat): Refactor as methods of
8229 alpha_bsd_nat_target.
8230 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8231 (the_amd64_nbsd_nat_target): New.
8232 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8233 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8234 (the_amd64_obsd_nat_target): New.
8235 (_initialize_amd64obsd_nat): Adjust to C++ification.
8236 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8237 (the_arm_fbsd_nat_target): New.
8238 (arm_fbsd_fetch_inferior_registers)
8239 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8240 (_initialize_arm_fbsd_nat): Refactor as methods of
8241 arm_fbsd_nat_target.
8242 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8243 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8244 (the_arm_netbsd_nat_target): New.
8245 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8246 arm_netbsd_nat_target.
8247 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8248 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8249 (the_hppa_nbsd_nat_target): New.
8250 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8251 hppa_nbsd_nat_target methods.
8252 (_initialize_hppanbsd_nat): Adjust to C++ification.
8253 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8254 (the_hppa_obsd_nat_target): New.
8255 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8256 methods of hppa_obsd_nat_target.
8257 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8259 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8260 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8262 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8263 (_initialize_i386obsd_nat): Use add_target.
8264 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8265 (the_m68k_bsd_nat_target): New.
8266 (m68kbsd_fetch_inferior_registers)
8267 (m68kbsd_store_inferior_registers): Refactor as methods of
8268 m68k_bsd_nat_target.
8269 (_initialize_m68kbsd_nat): Adjust to C++ification.
8270 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8271 (the_mips_fbsd_nat_target): New.
8272 (mips_fbsd_fetch_inferior_registers)
8273 (mips_fbsd_store_inferior_registers): Refactor as methods of
8274 mips_fbsd_nat_target.
8275 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8277 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8278 (the_mips_nbsd_nat_target): New.
8279 (mipsnbsd_fetch_inferior_registers)
8280 (mipsnbsd_store_inferior_registers): Refactor as methods of
8281 mips_nbsd_nat_target.
8282 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8283 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8284 (the_mips64_obsd_nat_target): New.
8285 (mips64obsd_fetch_inferior_registers)
8286 (mips64obsd_store_inferior_registers): Refactor as methods of
8287 mips64_obsd_nat_target.
8288 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8290 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8292 * nbsd-nat.h: Include "inf-ptrace.h".
8293 (nbsd_nat_target): New class.
8294 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8295 (obsd_wait): Refactor as methods of obsd_nat_target.
8296 (obsd_add_target): Delete.
8297 * obsd-nat.h: Include "inf-ptrace.h".
8298 (obsd_nat_target): New class.
8299 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8300 (the_ppc_fbsd_nat_target): New.
8301 (ppcfbsd_fetch_inferior_registers)
8302 (ppcfbsd_store_inferior_registers): Refactor as methods of
8303 ppc_fbsd_nat_target.
8304 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8306 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8307 (the_ppc_nbsd_nat_target): New.
8308 (ppcnbsd_fetch_inferior_registers)
8309 (ppcnbsd_store_inferior_registers): Refactor as methods of
8310 ppc_nbsd_nat_target.
8311 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8312 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8313 (the_ppc_obsd_nat_target): New.
8314 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8315 methods of ppc_obsd_nat_target.
8316 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8318 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8319 (the_sh_nbsd_nat_target): New.
8320 (shnbsd_fetch_inferior_registers)
8321 (shnbsd_store_inferior_registers): Refactor as methods of
8323 (_initialize_shnbsd_nat): Adjust to C++ification.
8324 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8325 (inf_ptrace_xfer_partial): Delete.
8326 (sparc_xfer_partial, sparc_target): Delete.
8327 * sparc-nat.h (sparc_fetch_inferior_registers)
8328 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8329 (sparc_target): Delete function declaration.
8330 (sparc_target): New template class.
8331 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8332 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8333 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8334 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8336 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8337 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8338 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8339 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8341 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8342 (the_vax_bsd_nat_target): New.
8343 (vaxbsd_fetch_inferior_registers)
8344 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8346 (_initialize_vaxbsd_nat): Adjust to C++ification.
8348 * bsd-kvm.c (bsd_kvm_target): New class.
8349 (bsd_kvm_ops): Now a bsd_kvm_target.
8350 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8351 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8352 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8354 (bsd_kvm_return_one): Delete.
8355 (bsd_kvm_add_target): Adjust to C++ification.
8357 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8358 (nto_procfs_target_procfs): New classes.
8359 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8360 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8361 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8362 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8363 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8364 (procfs_remove_hw_breakpoint, procfs_resume)
8365 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8366 (procfs_kill_inferior, procfs_store_registers)
8367 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8368 as methods of nto_procfs_target.
8369 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8370 (nto_native_ops): Delete.
8371 (procfs_open, procfs_native_open): Delete.
8372 (nto_native_ops): Now an nto_procfs_target_native.
8373 (init_procfs_targets): Adjust to C++ification.
8374 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8375 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8376 Refactor as methods of nto_procfs_target.
8378 * go32-nat.c (go32_nat_target): New class.
8379 (the_go32_nat_target): New.
8380 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8381 (go32_store_registers, go32_xfer_partial, go32_files_info)
8382 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8383 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8384 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8385 (go32_pid_to_str): Refactor as methods of go32_nat_target.
8386 (go32_target): Delete.
8387 (_initialize_go32_nat): Adjust to C++ification.
8389 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8390 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8391 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8392 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8394 (gnu_target): Delete.
8395 * gnu-nat.h (gnu_target): Delete.
8396 (gnu_nat_target): New class.
8397 * i386-gnu-nat.c (gnu_base_target): New.
8398 (i386_gnu_nat_target): New class.
8399 (the_i386_gnu_nat_target): New.
8400 (_initialize_i386gnu_nat): Adjust to C++ification.
8402 2018-05-02 Pedro Alves <palves@redhat.com>
8404 * bfd-target.c (target_bfd_xclose): Rename to ...
8405 (target_bfd_close): ... this.
8406 (target_bfd_reopen): Adjust.
8407 * target.c (target_close): Remove references to to_xclose.
8408 * target.h (target_ops::to_xclose): Delete.
8409 (target_ops::to_close): Update comments.
8411 2018-05-02 Pedro Alves <palves@redhat.com>
8413 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
8415 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
8416 * inf-ptrace.c (inf_ptrace_register_u_offset)
8417 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8418 (inf_ptrace_store_register, inf_ptrace_store_registers)
8419 (inf_ptrace_trad_target): Move to ...
8420 * linux-nat-trad.c: ... this new file.
8421 * linux-nat-trad.h: New file.
8422 * linux-nat.c (linux_target_install_ops): Make extern.
8423 (linux_trad_target): Delete.
8424 * linux-nat.h (linux_trad_target): Delete declaration.
8425 (linux_target_install_ops): Declare.
8426 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
8429 2018-05-02 Pedro Alves <palves@redhat.com>
8431 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8432 procfs_target/add_target here.
8433 * procfs.c (procfs_target): Make static.
8434 (_initialize_procfs): Call add_target here.
8435 * procfs.h (struct target_ops): Remove forward declaration.
8436 (procfs_target): Remove declaration.
8437 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
8439 2018-05-02 Pedro Alves <palves@redhat.com>
8441 * procfs.c (procfs_stopped_by_watchpoint)
8442 (procfs_insert_watchpoint, procfs_remove_watchpoint)
8443 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
8445 (procfs_use_watchpoints): Delete, move contents...
8446 (procfs_target): ... here.
8447 * procfs.h (procfs_use_watchpoints): Delete declaration.
8448 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8449 procfs_use_watchpoints.
8450 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8451 procfs_use_watchpoints.
8453 2018-05-02 Tom Tromey <tom@tromey.com>
8456 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
8457 and var_zuinteger_unlimited.
8458 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
8459 and PARAM_ZUINTEGER_UNLIMITED.
8460 (set_parameter_value): Handle var_zuinteger and
8461 var_zuinteger_unlimited.
8462 (add_setshow_generic): Likewise.
8463 (parmpy_init): Likewise.
8465 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
8468 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
8469 pointer is not null before dereferencing it.
8471 2018-04-30 Tom Tromey <tom@tromey.com>
8473 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
8476 2018-04-30 Tom Tromey <tom@tromey.com>
8478 * breakpoint.c (mention): Remove use of is_mi_like_p.
8479 (print_mention_ranged_breakpoint): Likewise.
8480 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
8483 2018-04-30 Tom Tromey <tom@tromey.com>
8485 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
8487 2018-04-30 Tom Tromey <tom@tromey.com>
8489 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
8490 (info_spu_event_command): Remove some uses of is_mi_like_p.
8492 2018-04-30 Tom Tromey <tom@tromey.com>
8494 * python/py-framefilter.c (py_print_single_arg)
8495 (enumerate_locals, py_print_args, py_print_frame): Remove some
8496 uses of is_mi_like_p.
8498 2018-04-30 Tom Tromey <tom@tromey.com>
8501 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
8502 * ui-out.h (ui_out::is_mi_like_p): Now const.
8503 (ui_out::do_is_mi_like_p): Now const.
8504 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
8506 2018-04-30 Tom Tromey <tom@tromey.com>
8508 * varobj.c (varobj_set_visualizer): Use new_reference.
8509 * python/python.c (gdbpy_decode_line): Use new_reference.
8510 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
8513 2018-04-30 Tom Tromey <tom@tromey.com>
8515 * varobj.c (install_new_value): Use new_reference.
8516 * value.h (value_incref): Return void. Swap intro comment with
8518 * value.c (set_value_parent): Use new_reference.
8519 (value_incref): Return void. Update intro comment.
8520 (release_value): Use new_reference.
8521 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
8523 2018-04-30 Tom Tromey <tom@tromey.com>
8525 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
8526 * gdb_bfd.h (new_bfd_ref): Remove.
8527 (gdb_bfd_open): Update comment.
8528 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
8529 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
8530 (gdb_bfd_fdopenr): Use new_reference.
8531 * exec.c (exec_file_attach): Use new_reference.
8533 2018-04-30 Tom Tromey <tom@tromey.com>
8535 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
8538 2018-04-30 Tom Tromey <tom@tromey.com>
8540 * jit.c (jit_read_code_entry): Use type_align.
8541 * i386-tdep.c (i386_gdbarch_init): Don't call
8542 set_gdbarch_long_long_align_bit.
8543 * gdbarch.sh: Remove long_long_align_bit.
8544 * gdbarch.c, gdbarch.h: Rebuild.
8545 * arc-tdep.c (arc_type_align): New function.
8546 (arc_gdbarch_init): Use arc_type_align. Don't call
8547 set_gdbarch_long_long_align_bit.
8549 2018-04-30 Tom Tromey <tom@tromey.com>
8551 * rust-lang.c (rust_type_alignment): Remove.
8552 (rust_composite_type): Use type_align.
8554 2018-04-30 Tom Tromey <tom@tromey.com>
8556 * NEWS: Mention Type.align.
8557 * python/py-type.c (typy_get_alignof): New function.
8558 (type_object_getset): Add "alignof".
8560 2018-04-30 Tom Tromey <tom@tromey.com>
8564 * std-operator.def (UNOP_ALIGNOF): New operator.
8565 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
8567 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
8568 * c-lang.c (c_op_print_tab): Add alignof.
8569 * c-exp.y (ALIGNOF): New token.
8570 (exp): Add "ALIGNOF" production.
8571 (ident_tokens): Add _Alignof and alignof.
8573 2018-04-30 Tom Tromey <tom@tromey.com>
8575 * i386-tdep.c (i386_type_align): New function.
8576 (i386_gdbarch_init): Update.
8577 * gdbarch.sh (type_align): New method.
8578 * gdbarch.c, gdbarch.h: Rebuild.
8579 * arch-utils.h (default_type_align): Declare.
8580 * arch-utils.c (default_type_align): New function.
8581 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
8582 (struct type) <align_log2>: New field.
8583 <instance_flags>: Now a bitfield.
8584 (TYPE_RAW_ALIGN): New macro.
8585 (type_align, type_raw_align, set_type_align): Declare.
8586 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
8588 * dwarf2read.c (quirk_rust_enum): Set type alignment.
8589 (get_alignment, maybe_set_alignment): New functions.
8590 (read_structure_type, read_enumeration_type, read_array_type)
8591 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
8592 (read_subrange_type, read_base_type): Set type alignment.
8594 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
8596 * dwarf2read.c (read_index_from_section): Use bool.
8598 2018-04-29 Fabian Groffen <grobian@gentoo.org>
8601 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
8604 2018-04-29 John Reiser <jreiser@BitWagon.com>
8607 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
8608 last step, and do it atomically.
8610 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
8612 * compile/compile-c-types.c (convert_int, convert_float):
8615 2018-04-27 Tom Tromey <tom@tromey.com>
8618 * rust-lang.c (rust_inclusive_range_type_p): New function.
8619 (rust_range): Handle inclusive ranges.
8620 (rust_compute_range): Likewise.
8621 * rust-exp.y (struct rust_op) <inclusive>: New field.
8622 (DOTDOTEQ): New constant.
8623 (range_expr): Add "..=" productions.
8624 (operator_tokens): Add "..=" token.
8625 (ast_range): Add "inclusive" parameter.
8626 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
8628 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
8630 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
8631 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
8633 * expprint.c (print_subexp_standard): Handle new bounds values.
8634 (dump_subexp_body_standard): Likewise.
8636 2018-04-27 Tom Tromey <tom@tromey.com>
8638 * configure: Rebuild.
8639 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
8640 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
8642 (class symbol_needs_eval_context): Likewise.
8643 * dwarf2read.c (mock_mapped_index::symbol_name_count)
8644 (mock_mapped_index::symbol_name_at): Use "override". Remove
8646 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
8648 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
8649 * aarch64-tdep.c (instruction_reader::read): Use "override".
8650 (instruction_reader_test::read): Likewise.
8651 * arm-tdep.c (instruction_reader::read): Use "override".
8652 (instruction_reader_thumb::read): Likewise.
8654 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
8657 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
8658 instead of remote_send.
8659 (remote_send): Remove.
8661 2018-04-26 Pedro Alves <palves@redhat.com>
8663 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
8664 find_function_start_sal instead of find_pc_line.
8666 2018-04-26 Pedro Alves <palves@redhat.com>
8668 * breakpoint.c (set_breakpoint_location_function): Handle
8670 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
8671 * elfread.c (elf_symtab_read): Give data symbols with
8672 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
8673 (elf_rel_plt_read): Update comment.
8674 * linespec.c (convert_linespec_to_sals): Handle
8676 (minsym_found): Handle mst_data_gnu_ifunc.
8677 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
8678 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
8679 * parse.c (find_minsym_type_and_address): Handle
8681 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
8682 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
8683 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
8685 <mst_data_gnu_ifunc>: New enumerator.
8687 2018-04-26 Pedro Alves <palves@redhat.com>
8689 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
8690 (lookup_minimal_symbol_by_pc_section): ... this. Replace
8691 'want_trampoline' parameter by a lookup_msym_prefer parameter.
8693 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
8694 (lookup_minimal_symbol_by_pc): Adjust.
8695 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
8696 (lookup_solib_trampoline_symbol_by_pc): Adjust.
8697 * minsyms.h (lookup_msym_prefer): New enum.
8698 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8699 parameter by a lookup_msym_prefer parameter.
8701 2018-04-26 Pedro Alves <palves@redhat.com>
8703 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
8704 ends in "@plt" instead of looking at the symbol's section.
8706 2018-04-26 Pedro Alves <palves@redhat.com>
8708 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
8710 (find_pc_partial_function_gnu_ifunc): Rename to ...
8711 (find_pc_partial_function): ... this, and remove references to
8713 (find_pc_partial_function): Delete old implementation.
8714 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
8716 2018-04-26 Pedro Alves <palves@redhat.com>
8718 * linespec.c (struct bound_minimal_symbol_search_key): New.
8719 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
8720 skip first line if we found a GNU ifunc minimal symbol by name.
8721 (compare_msymbols): Change parameters to work with a destructured
8723 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
8726 2018-04-26 Pedro Alves <palves@redhat.com>
8728 * breakpoint.c (set_breakpoint_location_function): Don't resolve
8729 ifunc targets here. Instead, if we have an ifunc minsym, use its
8731 (add_location_to_breakpoint): Store the minsym and the objfile in
8732 the breakpoint location.
8733 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
8734 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
8735 Record the minsym in the sal.
8736 * symtab.h (symtab_and_line) <msymbol>: New field.
8738 2018-04-26 Pedro Alves <palves@redhat.com>
8740 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
8741 unless we actually resolved the ifunc.
8743 2018-04-26 Pedro Alves <palves@redhat.com>
8745 * c-exp.y (variable production): Prefer ifunc minsyms over
8746 regular function symbols.
8747 * symtab.c (find_gnu_ifunc): New function.
8748 * minsyms.h (lookup_msym_prefer): New enum.
8749 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8750 parameter by a lookup_msym_prefer parameter.
8751 * symtab.h (find_gnu_ifunc): New declaration.
8753 2018-04-26 Pedro Alves <palves@redhat.com>
8755 * blockframe.c (find_gnu_ifunc_target_type): New function.
8756 (find_function_type): New.
8757 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
8758 return a value with a memory address.
8759 (eval_call): For calls to GNU ifunc functions, try to find the
8760 type of the target function from the type that the resolver
8762 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
8764 * infcall.c (find_function_return_type): Delete.
8765 (find_function_addr): Add 'function_type' parameter. For calls to
8766 GNU ifunc functions, try to find the type of the target function
8767 from the type that the resolver returns, and return it via
8769 (call_function_by_hand_dummy): Adjust to use the function type
8770 returned by find_function_addr.
8771 (find_function_addr): Add 'function_type' parameter and move
8773 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
8776 2018-04-26 Pedro Alves <palves@redhat.com>
8778 * c-exp.y (variable production): Skip finding an alias for ifunc
8781 2018-04-26 Pedro Alves <palves@redhat.com>
8783 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
8785 2018-04-25 Pedro Alves <palves@redhat.com>
8787 * infcmd.c (kill_command): Print the pid as string, not the whole
8788 thread's ptid. Add comment. s/has been killed/killed/ in output
8790 * remote.c (remote_detach_1): Print the pid as string, not the
8791 whole thread's ptid.
8793 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8794 Sergio Durigan Junior <sergiodj@redhat.com>
8795 Pedro Alves <palves@redhat.com>
8797 * infcmd.c (kill_command): Print message when inferior has
8799 * inferior.c (print_inferior_events): Remove 'static'. Set as
8801 (add_inferior): Improve message printed when
8802 'print_inferior_events' is on.
8803 (exit_inferior): Remove message printed when
8804 'print_inferior_events' is on.
8805 (detach_inferior): Improve message printed when
8806 'print_inferior_events' is on.
8807 (initialize_inferiors): Use 'add_inferior_silent' to set
8808 'current_inferior_'.
8809 * inferior.h (print_inferior_events): Declare here as
8811 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
8812 '[Detaching...]' messages when 'print_inferior_events' is on.
8813 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
8814 as prefix/suffix for messages. Remove periods. Fix erroneous
8815 'Detaching after fork from child...', replace it by '... from
8817 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
8818 prefix/suffix when printing 'Detaching...' messages. Print
8819 them when 'print_inferior_events' is on.
8820 * remote.c (remote_detach_1): Print message when detaching
8821 from inferior and '!is_fork_parent'.
8823 2018-04-24 Tom Tromey <tom@tromey.com>
8825 * cli-out.h: Reindent.
8827 2018-04-24 Tom Tromey <tom@tromey.com>
8829 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
8830 (cli_ui_out::do_field_string): Use fputs_filtered.
8831 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
8833 2018-04-23 Tom Tromey <tom@tromey.com>
8835 * guile/scm-frame.c (gdbscm_frame_read_var): Use
8836 gdb::unique_xmalloc_ptr.
8838 2018-04-23 Tom Tromey <tom@tromey.com>
8840 * configure: Rebuild.
8842 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
8845 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
8846 prepare_for_testing. Set normal_bp to r_debug_state if target
8849 2018-04-21 Pedro Alves <palves@redhat.com>
8850 Rajendra SY <rajendra.sy@gmail.com>
8852 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
8853 * remote.c (extended_remote_attach): In all-stop mode, mark the
8854 thread as executing.
8856 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8858 * thread.c (thread_apply_all_command): Fix comment.
8859 (thread_command): Fix comment.
8861 2018-04-10 Alan Hayward <alan.hayward@arm.com>
8863 * common/tdesc.h (tdesc_create_feature): Remove xml filename
8865 * features/aarch64-core.c (create_feature_aarch64_core):
8867 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
8869 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
8871 * features/i386/32bit-avx512.c
8872 (create_feature_i386_32bit_avx512): Likewise.
8873 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
8875 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
8877 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
8879 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
8881 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
8883 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
8885 * features/i386/64bit-avx512.c
8886 (create_feature_i386_64bit_avx512): Likewise.
8887 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
8889 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
8891 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
8893 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
8895 * features/i386/64bit-segments.c
8896 (create_feature_i386_64bit_segments): Likewise.
8897 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
8899 * features/i386/x32-core.c
8900 (create_feature_i386_x32_core): Likewise.
8901 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
8902 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
8903 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
8904 * target-descriptions.c: In generated code, don't pass xml
8907 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8909 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
8910 (print_xml_feature::visit_post): Likewise.
8911 (print_xml_feature::visit): Likewise.
8912 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
8913 (print_xml_feature): Add new class.
8914 * regformats/regdat.sh: Null xmltarget on feature targets.
8915 * target-descriptions.c (struct target_desc): Add xmltarget.
8916 (maintenance_check_tdesc_xml_convert): Add unittest function.
8917 (tdesc_get_features_xml): Add function to get xml.
8918 (maintenance_check_xml_descriptions): Test xml generation.
8919 * xml-tdesc.c (string_read_description_xml): Add function.
8920 * xml-tdesc.h (string_read_description_xml): Add declaration.
8922 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8924 * features/Makefile: Add feature marker to targets with new style
8925 target descriptions.
8926 * regformats/aarch64.dat: Regenerate.
8927 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
8928 * regformats/i386/amd64-avx-linux.dat: Likewise.
8929 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
8930 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
8931 * regformats/i386/amd64-linux.dat: Likewise.
8932 * regformats/i386/amd64-mpx-linux.dat: Likewise.
8933 * regformats/i386/amd64.dat: Likewise.
8934 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
8935 * regformats/i386/i386-avx-linux.dat: Likewise.
8936 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
8937 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
8938 * regformats/i386/i386-linux.dat: Likewise.
8939 * regformats/i386/i386-mmx-linux.dat: Likewise.
8940 * regformats/i386/i386-mpx-linux.dat: Likewise.
8941 * regformats/i386/i386.dat: Likewise.
8942 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
8943 * regformats/i386/x32-avx-linux.dat: Likewise.
8944 * regformats/i386/x32-linux.dat: Likewise.
8945 * regformats/tic6x-c62x-linux.dat: Likewise.
8946 * regformats/tic6x-c64x-linux.dat: Likewise.
8947 * regformats/tic6x-c64xp-linux.dat: Likewise.
8948 * regformats/regdat.sh: Parse feature marker.
8950 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8952 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
8953 (tdesc_osabi_name): Likewise.
8954 * target-descriptions.c (tdesc_architecture_name): Add new
8956 (tdesc_osabi_name): Likewise.
8958 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8960 * common/tdesc.c (tdesc_predefined_type): Move to here.
8961 (tdesc_named_type): Likewise.
8962 (tdesc_create_vector): Likewise.
8963 (tdesc_create_struct): Likewise.
8964 (tdesc_set_struct_size): Likewise.
8965 (tdesc_create_union): Likewise.
8966 (tdesc_create_flags): Likewise.
8967 (tdesc_create_enum): Likewise.
8968 (tdesc_add_field): Likewise.
8969 (tdesc_add_typed_bitfield): Likewise.
8970 (tdesc_add_bitfield): Likewise.
8971 (tdesc_add_flag): Likewise.
8972 (tdesc_add_enum_value): Likewise.
8973 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
8974 (struct tdesc_type_vector): Likewise.
8975 (struct tdesc_type_field): Likewise.
8976 (struct tdesc_type_with_fields): Likewise.
8977 (tdesc_create_enum): Add declaration.
8978 (tdesc_add_typed_bitfield): Likewise.
8979 (tdesc_add_enum_value): Likewise.
8980 * target-descriptions.c (tdesc_type_field): Move from here.
8981 (tdesc_type_builtin): Likewise.
8982 (tdesc_type_vector): Likewise.
8983 (tdesc_type_with_fields): Likewise.
8984 (tdesc_predefined_types): Likewise.
8985 (tdesc_named_type): Likewise.
8986 (tdesc_create_vector): Likewise.
8987 (tdesc_create_struct): Likewise.
8988 (tdesc_set_struct_size): Likewise.
8989 (tdesc_create_union): Likewise.
8990 (tdesc_create_flags): Likewise.
8991 (tdesc_create_enum): Likewise.
8992 (tdesc_add_field): Likewise.
8993 (tdesc_add_typed_bitfield): Likewise.
8994 (tdesc_add_bitfield): Likewise.
8995 (tdesc_add_flag): Likewise.
8996 (tdesc_add_enum_value): Likewise.
8997 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
8998 (tdesc_add_typed_bitfield): Likewise.
8999 (tdesc_add_enum_value): Likewise.
9001 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9003 * common/tdesc.c (tdesc_feature::accept): Move to here.
9004 (tdesc_feature::operator==): Likewise.
9005 (tdesc_create_reg): Likewise.
9006 * common/tdesc.h (tdesc_type_kind): Likewise.
9007 (struct tdesc_type): Likewise.
9008 (struct tdesc_feature): Likewise.
9009 * regformats/regdat.sh: Create a feature.
9010 * target-descriptions.c (tdesc_type_kind): Move from here.
9011 (tdesc_type): Likewise.
9012 (tdesc_type_up): Likewise.
9013 (tdesc_feature): Likewise.
9014 (tdesc_create_reg): Likewise.
9016 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9018 * Makefile.in: Add arch/tdesc.c
9019 * common/tdesc.c: New file.
9020 * common/tdesc.h (tdesc_element_visitor): Move to here.
9021 (tdesc_element): Likewise.
9022 (tdesc_reg): Likewise.
9023 (tdesc_reg_up): Likewise.
9024 * regformats/regdef.h (reg): Add offset to constructors.
9025 * target-descriptions.c (tdesc_element_visitor): Move from here.
9026 (tdesc_element): Likewise.
9027 (tdesc_reg): Likewise.
9028 (tdesc_reg_up): Likewise.
9030 2018-04-17 Tom Tromey <tom@tromey.com>
9032 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9035 2018-04-17 Tom Tromey <tom@tromey.com>
9037 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9039 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9041 * symtab.c (print_symbol_info): Skip printing filename and line
9042 number when `last' is NULL.
9043 (symtab_symbol_info): Use empty string instead of NULL for first
9044 invocation of print_symbol_info.
9045 (rbreak_command): Pass NULL to `last' parameter of
9048 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9050 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9053 2018-04-16 Pedro Alves <palves@redhat.com>
9055 * MAINTAINERS (sh): Remove.
9056 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9057 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9058 (ALLDEPFILES): Remove sh64-tdep.c.
9059 * NEWS: Mentions that support for SH-5/SH64 is removed.
9060 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9061 (sh*-*-openbsd*): Ditto.
9062 (sh64-*-elf*): Remove.
9064 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9065 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9066 * sh-tdep.c: No longer include "sh64-tdep.h".
9067 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9068 * sh64-tdep.c, sh64-tdep.h: Remove files.
9070 2018-04-16 Pedro Alves <palves@redhat.com>
9072 * MAINTAINERS: Remove m88k.
9073 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9074 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9075 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9076 * NEWS: Mention that support for m88k was removed.
9077 * configure.host (m88*-*-*): Remove support.
9078 * configure.nat (m88k-*-*): Remove support.
9079 * configure.tgt (m88*-*-openbsd*): Remove.
9080 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9082 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9084 * configure.tgt (x86_tobjs): New variable.
9085 (amd64_tobjs, i386_tobjs): Use it.
9087 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9089 * symtab.c (print_symbol_info): Precede the symbol definition by
9090 the line number when available.
9091 * NEWS: Advertise this enhancement.
9093 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9095 * NEWS (New options): announce set/show record btrace cpu.
9096 * btrace.c: Include record-btrace.h.
9097 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9098 the vendor is unknown.
9099 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9100 Maybe overwrite the btrace configuration's cpu.
9101 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9102 (btrace_fetch): Add cpu parameter. Update callers.
9103 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9104 Maybe overwrite the btrace configuration's cpu. Skip enabling
9105 errata workarounds if the vendor is unknown.
9106 * python/py-record-btrace.c: Include record-btrace.h.
9107 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9108 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9109 * record-btrace.c (record_btrace_cpu_state_kind): New.
9110 (record_btrace_cpu): New.
9111 (set_record_btrace_cpu_cmdlist): New.
9112 (record_btrace_get_cpu): New.
9113 (require_btrace_thread, record_btrace_info)
9114 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9115 (cmd_set_record_btrace_cpu_none): New.
9116 (cmd_set_record_btrace_cpu_auto): New.
9117 (cmd_set_record_btrace_cpu): New.
9118 (cmd_show_record_btrace_cpu): New.
9119 (_initialize_record_btrace): Initialize set/show record btrace cpu
9121 * record-btrace.h (record_btrace_get_cpu): New.
9123 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9125 * record.c (set_record_command): Fix typo in message.
9127 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9129 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9131 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9133 * infrun.c (process_event_stop_test): Call
9134 gdbarch_in_indirect_branch_thunk.
9135 * gdbarch.sh (in_indirect_branch_thunk): New.
9136 * gdbarch.c: Regenerated.
9137 * gdbarch.h: Regenerated.
9140 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9141 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9142 (ALLDEPFILES): Add x86-tdep.c.
9143 * arch-utils.h (default_in_indirect_branch_thunk): New.
9144 * arch-utils.c (default_in_indirect_branch_thunk): New.
9145 * i386-tdep: Include x86-tdep.h.
9146 (i386_in_indirect_branch_thunk): New.
9147 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9149 * amd64-tdep: Include x86-tdep.h.
9150 (amd64_in_indirect_branch_thunk): New.
9151 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9153 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9156 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9157 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9158 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9161 2018-04-12 Tom Tromey <tom@tromey.com>
9163 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9164 (rust_evaluate_subexp): Likewise.
9166 2018-04-12 Pedro Alves <palves@redhat.com>
9168 * procfs.c (procfs_detach): Make forward declaration's prototype
9169 match definition's protototype.
9170 (proc_get_LDT_entry): Remove stale do_cleanups call.
9172 2018-04-12 Pedro Alves <palves@redhat.com>
9174 * target.h (target_ops::to_has_exited): Delete.
9175 (target_has_exited): Delete.
9176 * target-delegates.c: Regenerate.
9178 2018-04-11 Pedro Alves <palves@redhat.com>
9180 * target.c (fileio_fh_t::t): Add comment.
9181 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9182 (target_fileio_close): Handle a NULL target.
9183 (invalidate_fileio_fh): New.
9184 (target_close): Call it.
9185 * remote.c (remote_hostio_send_command): No longer check whether
9186 remote_desc is open.
9188 2018-04-11 Pedro Alves <palves@redhat.com>
9190 * target.c (fileio_fh_t): Make it a named struct instead of a
9192 (fileio_fh_t::is_closed): New method.
9193 (DEF_VEC_O (fileio_fh_t)): Remove.
9194 (fileio_fhandles): Now a std::vector.
9195 (is_closed_fileio_fh): Delete.
9196 (acquire_fileio_fd): Adjust. Rename parameters.
9197 (release_fileio_fd): Adjust.
9198 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9199 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9200 (target_fileio_close): Adjust.
9202 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9204 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9207 2018-04-10 Pedro Alves <palves@redhat.com>
9209 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9210 (scoped_finish_thread_state): New class.
9211 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9213 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9214 (fetch_inferior_event, normal_stop): Likewise.
9215 * thread.c (finish_thread_state_cleanup): Delete.
9217 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9218 Pedro Alves <palves@redhat.com>
9220 * value.c: Include "selftest.h" and "common/array-view.h".
9221 (struct range) <operator ==>: New.
9222 (test_ranges_contain): New.
9223 (check_ranges_vector): New.
9224 (test_insert_into_bit_range_vector): New.
9225 (_initialize_values): Register selftests.
9226 * common/array-view.h (operator==, operator!=): New.
9228 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9230 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9232 * inline-frame.c: Include <algorithm>.
9233 (struct inline_state): Add constructor.
9234 (inline_state_s): Remove.
9235 (DEF_VEC_O(inline_state_s)): Remove.
9236 (inline_states): Change type to std::vector.
9237 (find_inline_frame_state): Adjust to std::vector.
9238 (allocate_inline_frame_state): Remove.
9239 (clear_inline_frame_state): Adjust to std::vector.
9240 (skip_inline_frames): Adjust to std::vector.
9242 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9244 * tracepoint.h (struct trace_state_variable): Add constructor.
9245 <name>: Change type to std::string.
9246 * tracepoint.c (tsv_s): Remove.
9247 (DEF_VEC_O(tsv_s)): Remove.
9248 (tvariables): Change to std::vector.
9249 (create_trace_state_variable): Adjust to std::vector.
9250 (find_trace_state_variable): Likewise.
9251 (find_trace_state_variable_by_number): Likewise.
9252 (delete_trace_state_variable): Likewise.
9253 (trace_variable_command): Adjust to std::string.
9254 (delete_trace_variable_command): Likewise.
9255 (tvariables_info_1): Adjust to std::vector.
9256 (save_trace_state_variables): Likewise.
9257 (start_tracing): Likewise.
9258 (merge_uploaded_trace_state_variables): Adjust to std::vector
9260 * target.h (struct target_ops)
9261 <to_download_trace_state_variable>: Pass reference to
9262 trace_state_variable.
9263 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9264 * target-delegates.c: Re-generate.
9265 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9266 (mi_tsv_deleted): Likewise.
9267 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9268 * remote.c (remote_download_trace_state_variable): Change
9269 pointer to reference and adjust.
9270 * make-target-delegates (parse_argtypes): Handle references.
9271 (write_function_header): Likewise.
9272 (munge_type): Likewise.
9274 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9276 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9277 string_view-selftests.c.
9278 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9280 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9281 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9282 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9283 * unittests/basic_string_view/element_access/char/1.cc:
9285 * unittests/basic_string_view/element_access/char/empty.cc:
9287 * unittests/basic_string_view/element_access/char/front_back.cc:
9289 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9290 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9292 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9294 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9296 * unittests/basic_string_view/operations/compare/char/1.cc:
9298 * unittests/basic_string_view/operations/compare/char/13650.cc:
9300 * unittests/basic_string_view/operations/copy/char/1.cc:
9302 * unittests/basic_string_view/operations/data/char/1.cc:
9304 * unittests/basic_string_view/operations/find/char/1.cc:
9306 * unittests/basic_string_view/operations/find/char/2.cc:
9308 * unittests/basic_string_view/operations/find/char/3.cc:
9310 * unittests/basic_string_view/operations/find/char/4.cc:
9312 * unittests/basic_string_view/operations/rfind/char/1.cc:
9314 * unittests/basic_string_view/operations/rfind/char/2.cc:
9316 * unittests/basic_string_view/operations/rfind/char/3.cc:
9318 * unittests/basic_string_view/operations/substr/char/1.cc:
9320 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9321 * unittests/string_view-selftests.c: New file.
9323 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9325 * unittests/basic_string_view/capacity/1.cc: New file.
9326 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9327 * unittests/basic_string_view/cons/char/1.cc: New file.
9328 * unittests/basic_string_view/cons/char/2.cc: New file.
9329 * unittests/basic_string_view/cons/char/3.cc: New file.
9330 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9331 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9332 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9333 * unittests/basic_string_view/element_access/char/1.cc: New file.
9334 * unittests/basic_string_view/element_access/char/2.cc: New file.
9335 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9336 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9337 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9338 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9339 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9340 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9341 * unittests/basic_string_view/include.cc: New file.
9342 * unittests/basic_string_view/inserters/char/1.cc: New file.
9343 * unittests/basic_string_view/inserters/char/2.cc: New file.
9344 * unittests/basic_string_view/inserters/char/3.cc: New file.
9345 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9346 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9347 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9348 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9349 * unittests/basic_string_view/literals/types.cc: New file.
9350 * unittests/basic_string_view/literals/values.cc: New file.
9351 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9352 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9353 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9354 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9355 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9356 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9357 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9358 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9359 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9360 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9361 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9362 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9363 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9364 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9365 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9366 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9367 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9368 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9369 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9370 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9371 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9372 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9373 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9374 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9375 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9376 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9377 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9378 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9379 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9380 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9381 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9382 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9383 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9384 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9385 * unittests/basic_string_view/operators/char/2.cc: New file.
9386 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9387 * unittests/basic_string_view/range_access/char/1.cc: New file.
9388 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9389 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9390 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9391 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9392 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9393 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9394 * unittests/basic_string_view/requirements/typedefs.cc: New file.
9395 * unittests/basic_string_view/typedefs.cc: New file.
9396 * unittests/basic_string_view/types/1.cc: New file.
9398 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9400 * common/gdb_string_view.h: Remove libstdc++ implementation
9401 details, adjust to gdb reality.
9402 * common/gdb_string_view.tcc: Likewise.
9403 * cli/cli-script.c (struct string_view): Remove.
9404 (user_args) <m_args>: Change element type to gdb::string_view.
9405 (user_args::insert_args): Adjust.
9407 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9409 * common/gdb_string_view.h: New file.
9410 * common/gdb_string_view.tcc: New file.
9412 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9414 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9415 * configure: Re-generate.
9417 2018-04-09 Pedro Alves <palves@redhat.com>
9419 * gdbarch.sh: Include "observable.h" instead of "observer.h".
9420 (set_target_gdbarch): Call
9421 gdb::observers::architecture_changed.notify instead of
9422 observer_notify_architecture_changed.
9424 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9426 * tracepoint.c (struct current_traceframe_cleanup): Remove.
9427 (do_restore_current_traceframe_cleanup): Remove.
9428 (restore_current_traceframe_cleanup_dtor): Remove.
9429 (make_cleanup_restore_current_traceframe): Remove.
9430 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
9432 * tracepoint.h (struct scoped_restore_current_traceframe): New.
9433 * infrun.c (fetch_inferior_event): Use
9434 scoped_restore_current_traceframe.
9436 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9438 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
9440 <n_allocated_type_units>: Remove.
9441 <all_type_units>: Change to std::vector.
9442 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9443 to std::vector change.
9444 (dwarf2_per_objfile::get_cutu): Likewise.
9445 (dwarf2_per_objfile::get_tu): Likewise.
9446 (create_signatured_type_table_from_index): Likewise.
9447 (create_signatured_type_table_from_debug_names): Likewise.
9448 (dw2_symtab_iter_next): Likewise.
9449 (dw2_print_stats): Likewise.
9450 (dw2_expand_all_symtabs): Likewise.
9451 (dw2_expand_marked_cus): Likewise.
9452 (dw2_debug_names_iterator::next): Likewise.
9453 (dwarf2_initialize_objfile): Likewise.
9454 (add_signatured_type_cu_to_table): Likewise.
9455 (create_all_type_units): Likewise.
9456 (add_type_unit): Likewise.
9457 (struct tu_abbrev_offset): Add constructor.
9458 (build_type_psymtabs_1): Adjust to std::vector change.
9459 (print_tu_stats): Likewise.
9460 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9461 (write_debug_names): Likewise.
9463 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9465 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
9466 Make an std::vector.
9467 <n_comp_units>: Remove.
9468 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9469 to std::vector change.
9470 (dwarf2_per_objfile::get_cutu): Likewise.
9471 (dwarf2_per_objfile::get_cu): Likewise.
9472 (create_cus_from_index): Likewise.
9473 (create_addrmap_from_index): Likewise.
9474 (create_addrmap_from_aranges): Likewise.
9475 (dwarf2_read_index): Likewise.
9476 (dw2_find_last_source_symtab): Likewise.
9477 (dw2_map_symtabs_matching_filename): Likewise.
9478 (dw2_symtab_iter_next): Likewise.
9479 (dw2_print_stats): Likewise.
9480 (dw2_expand_all_symtabs): Likewise.
9481 (dw2_expand_symtabs_with_fullname): Likewise.
9482 (dw2_expand_marked_cus): Likewise.
9483 (dw2_map_symbol_filenames): Likewise.
9484 (create_cus_from_debug_names): Likewise.
9485 (dwarf2_read_debug_names): Likewise.
9486 (dw2_debug_names_iterator::next): Likewise.
9487 (dwarf2_initialize_objfile): Likewise.
9488 (set_partial_user): Likewise.
9489 (dwarf2_build_psymtabs_hard): Likewise.
9490 (read_comp_units_from_section): Remove arguments, adjust to
9492 (create_all_comp_units): Adjust to std::vector and
9493 read_comp_units_from_section changes.
9494 (dwarf2_find_containing_comp_unit): Adjust to std::vector
9496 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9497 (psyms_seen_size): Likewise.
9498 (write_gdbindex): Likewise.
9499 (write_debug_names): Likewise.
9501 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9503 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
9504 with dwarf2_per_objfile.
9505 (create_cus_from_index): Likewise.
9506 (create_signatured_type_table_from_index): Likewise.
9507 (dwarf2_read_index): Likewise.
9508 (dwarf2_initialize_objfile): Likewise.
9509 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
9510 per_cu rather than get_dwarf2_per_objfile.
9512 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9514 * dwarf2read.h (struct signatured_type): Forward declare.
9515 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
9517 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
9518 (dw2_get_cutu): ...this.
9519 (dwarf2_per_objfile::get_cu): Rename from...
9520 (dw2_get_cu): ...this.
9521 (dwarf2_per_objfile::get_tu): New.
9522 (create_addrmap_from_index): Adjust.
9523 (create_addrmap_from_aranges): Adjust.
9524 (dw2_find_last_source_symtab): Adjust.
9525 (dw2_map_symtabs_matching_filename): Adjust.
9526 (dw2_symtab_iter_next): Adjust.
9527 (dw2_print_stats): Adjust.
9528 (dw2_expand_all_symtabs): Adjust.
9529 (dw2_expand_symtabs_with_fullname): Adjust.
9530 (dw2_expand_marked_cus): Adjust.
9531 (dw_expand_symtabs_matching_file_matcher): Adjust.
9532 (dw2_map_symbol_filenames): Adjust.
9533 (dw2_debug_names_iterator::next): Adjust.
9534 (dwarf2_initialize_objfile): Adjust.
9535 (set_partial_user): Adjust.
9536 (dwarf2_build_psymtabs_hard): Adjust.
9538 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9540 * dwarf2read.c (create_signatured_type_table_from_debug_names):
9541 Remove unused variables.
9542 (dw2_map_symtabs_matching_filename): Likewise.
9543 (dwarf2_record_block_ranges): Likewise.
9544 (dwarf2_read_addr_index): Likewise.
9545 (follow_die_offset): Likewise.
9547 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9549 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
9550 to symbol_file_add_main.
9552 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9555 * mi/mi-console.c (do_fputc_async_safe): New.
9556 (mi_console_file::write_async_safe): New.
9557 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
9558 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
9560 * ui-file.c (ui_file::putstrn): Adjust call to
9561 fputstrn_unfiltered.
9562 * utils.c (printchar): Replace do_fputs and do_fprintf
9563 parameters by do_fputc.
9564 (fputstr_filtered): Adjust call to printchar.
9565 (fputstr_unfiltered): Likewise.
9566 (fputstrn_filtered): Likewise.
9567 (fputstrn_unfiltered): Add do_fputc parameter, pass to
9569 * utils.h (do_fputc_ftype): New typedef.
9570 (fputstrn_unfiltered): Add do_fputc parameter.
9572 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9574 * regformats/i386/i386-avx.dat: Remove.
9576 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9579 * amd64-tdep.c (amd64_none_init_abi): New function.
9580 (amd64_x32_none_init_abi): New function.
9581 (_initialize_amd64_tdep): Register handlers for x86-64 and
9582 x64_32 with GDB_OSABI_NONE.
9583 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
9584 GDB_OSABI_NONE osabi.
9586 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9589 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
9591 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
9592 * osabi.c (gdb_osabi_names): Add "unknown" entry.
9594 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9596 * common/byte-vector.h (char_vector): New type.
9597 * target.h (target_read_alloc): Return
9598 gdb::optional<byte_vector>.
9599 (target_read_stralloc): Return gdb::optional<char_vector>.
9600 (target_get_osdata): Return gdb::optional<char_vector>.
9601 * target.c (target_read_alloc_1): Templatize. Replacement
9602 manual memory management with vector.
9603 (target_read_alloc): Change return type, adjust.
9604 (target_read_stralloc): Change return type, adjust.
9605 (target_get_osdata): Change return type, adjust.
9606 * auxv.c (struct auxv_info) <length>: Remove.
9607 <data>: Change type to gdb::optional<byte_vector>.
9608 (auxv_inferior_data_cleanup): Free auxv_info with delete.
9609 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
9610 (target_auxv_search): Adjust.
9611 (fprint_target_auxv): Adjust.
9612 * avr-tdep.c (avr_io_reg_read_command): Adjust.
9613 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
9614 (linux_make_corefile_notes): Adjust.
9615 * osdata.c (get_osdata): Adjust.
9616 * remote.c (remote_get_threads_with_qxfer): Adjust.
9617 (remote_memory_map): Adjust.
9618 (remote_traceframe_info): Adjust.
9619 (btrace_read_config): Adjust.
9620 (remote_read_btrace): Adjust.
9621 (remote_pid_to_exec_file): Adjust.
9622 * solib-aix.c (solib_aix_get_library_list): Adjust.
9623 * solib-dsbt.c (decode_loadmap): Don't free buf.
9624 (dsbt_get_initial_loadmaps): Adjust.
9625 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
9626 * solib-target.c (solib_target_current_sos): Adjust.
9627 * tracepoint.c (sdata_make_value): Adjust.
9628 * xml-support.c (xinclude_start_include): Adjust.
9629 (xml_fetch_content_from_file): Adjust.
9630 * xml-support.h (xml_fetch_another): Change return type.
9631 (xml_fetch_content_from_file): Change return type.
9632 * xml-syscall.c (xml_init_syscalls_info): Adjust.
9633 * xml-tdesc.c (file_read_description_xml): Adjust.
9634 (fetch_available_features_from_target): Change return type.
9635 (target_fetch_description_xml): Adjust.
9636 (target_read_description_xml): Adjust.
9638 2018-04-06 Tom Tromey <tom@tromey.com>
9640 * value.c (~value): Update.
9641 (struct value) <contents>: Now unique_xmalloc_ptr.
9642 (value_contents_bits_eq, allocate_value_contents)
9643 (value_contents_raw, value_contents_all_raw)
9644 (value_contents_for_printing, value_contents_for_printing_const)
9645 (set_value_enclosing_type): Update.
9647 2018-04-06 Tom Tromey <tom@tromey.com>
9649 * value.c (range_s): Remove typedef, VEC.
9650 (struct range): Add operator<.
9651 (range_lessthan): Remove.
9652 (ranges_contain): Change type.
9654 (struct value) <unavailable, optimized_out>: Now std::vector.
9655 (value_entirely_available)
9656 (value_entirely_covered_by_range_vector)
9657 (value_entirely_unavailable, value_entirely_optimized_out):
9659 (insert_into_bit_range_vector): Change argument type.
9660 (find_first_range_overlap): Likewise.
9661 (struct ranges_and_idx, value_contents_bits_eq)
9662 (require_not_optimized_out, require_available): Update.
9663 (ranges_copy_adjusted): Change argument types.
9664 (value_optimized_out, value_copy, value_fetch_lazy): Update.
9666 2018-04-06 Tom Tromey <tom@tromey.com>
9668 * value.c (~value): Update.
9669 (struct value) <parent>: Now a value_ref_ptr.
9670 (value_parent, set_value_parent, value_address, value_copy):
9673 2018-04-06 Tom Tromey <tom@tromey.com>
9675 * value.c (struct value): Add constructor, destructor, and member
9677 (allocate_value_lazy, value_decref): Update.
9679 2018-04-06 Tom Tromey <tom@tromey.com>
9681 * value.c (struct value) <released, next>: Remove.
9682 (all_values): Now a std::vector.
9683 (allocate_value_lazy): Update.
9684 (value_next): Remove.
9685 (value_mark, value_free_to_mark, release_value)
9686 (value_release_to_mark): Update.
9688 2018-04-06 Tom Tromey <tom@tromey.com>
9690 * value.h (fetch_subexp_value, value_release_to_mark): Update.
9691 (free_value_chain): Remove.
9692 * value.c (free_value_chain): Remove.
9693 (value_release_to_mark): Return a std::vector.
9694 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
9696 (check_condition): Update.
9697 * eval.c (fetch_subexp_value): Change "val_chain" to a
9699 * breakpoint.c (update_watchpoint): Update.
9700 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
9702 2018-04-06 Tom Tromey <tom@tromey.com>
9704 * value.h (free_all_values): Remove.
9705 * value.c (free_all_values): Remove.
9707 2018-04-06 Tom Tromey <tom@tromey.com>
9709 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
9710 (value_history_chain, value_history_count): Remove.
9711 (value_history): New global.
9712 (record_latest_value, access_value_history, show_values)
9713 (preserve_values): Update.
9715 2018-04-06 Tom Tromey <tom@tromey.com>
9717 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
9718 * varobj.c (varobj_set_display_format, varobj_set_value)
9719 (install_default_visualizer, construct_visualizer)
9720 (install_new_value, ~varobj, varobj_get_value_type)
9721 (my_value_of_variable, varobj_editable_p): Update.
9722 * c-varobj.c (c_describe_child, c_value_of_variable)
9723 (cplus_number_of_children, cplus_describe_child): Update.
9724 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
9725 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
9726 (ada_value_of_variable, ada_value_is_changeable_p): Update.
9728 2018-04-06 Tom Tromey <tom@tromey.com>
9730 * printcmd.c (last_examine_address): Change type to
9732 (do_examine, x_command): Update.
9734 2018-04-06 Tom Tromey <tom@tromey.com>
9736 * value.c (release_value): Update.
9737 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
9738 (struct bpstats) <val>: Now a value_ref_ptr.
9739 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9740 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9741 (~watchpoint, print_it_watchpoint, watch_command_1)
9742 (invalidate_bp_value_on_memory_change): Update.
9744 2018-04-06 Tom Tromey <tom@tromey.com>
9746 * varobj.c (varobj_clear_saved_item)
9747 (update_dynamic_varobj_children, install_new_value, ~varobj):
9749 * value.h (value_incref): Move declaration earlier.
9750 (value_decref): Rename from value_free.
9751 (struct value_ref_policy): New.
9752 (value_ref_ptr): New typedef.
9753 (struct value_deleter): Remove.
9754 (gdb_value_up): Remove typedef.
9755 (release_value): Change return type.
9756 (release_value_or_incref): Remove.
9757 * value.c (set_value_parent): Update.
9758 (value_incref): Change return type.
9759 (value_decref): Rename from value_free.
9760 (value_free_to_mark, free_all_values, free_value_chain): Update.
9761 (release_value): Return value_ref_ptr.
9762 (release_value_or_incref): Remove.
9763 (record_latest_value, set_internalvar, clear_internalvar):
9765 * stack.c (info_frame_command): Don't call value_free.
9766 * python/py-value.c (valpy_dealloc, valpy_new)
9767 (value_to_value_object): Update.
9768 * printcmd.c (do_examine): Update.
9769 * opencl-lang.c (lval_func_free_closure): Update.
9770 * mi/mi-main.c (register_changed_p): Don't call value_free.
9771 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
9772 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
9773 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
9775 * guile/scm-value.c (vlscm_free_value_smob)
9776 (vlscm_scm_from_value): Update.
9777 * frame.c (frame_register_unwind, frame_unwind_register_signed)
9778 (frame_unwind_register_unsigned, get_frame_register_bytes)
9779 (put_frame_register_bytes): Don't call value_free.
9780 * findvar.c (address_from_register): Don't call value_free.
9781 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
9782 * dwarf2loc.c (entry_data_value_free_closure)
9783 (value_of_dwarf_reg_entry, free_pieced_value_closure)
9784 (dwarf2_evaluate_loc_desc_full): Update.
9785 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9786 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9787 (~watchpoint, watch_command_1)
9788 (invalidate_bp_value_on_memory_change): Update.
9789 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
9791 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
9794 * warning.m4: Add -Wno-error=deprecated-register.
9795 * configure: Re-generate.
9797 2018-04-05 Tom Tromey <tom@tromey.com>
9799 * linespec.h: Remove include of "vec.h".
9801 2018-04-05 Tom Tromey <tom@tromey.com>
9803 * linespec.c (typep): Remove typedef.
9804 (find_methods, find_superclass_methods): Take a std::vector.
9805 (find_method): Use std::vector.
9807 2018-04-05 Tom Tromey <tom@tromey.com>
9809 * utils.c (compare_strings): Remove.
9810 * utils.h (compare_strings): Remove.
9811 * objc-lang.h (find_imps): Update.
9812 * objc-lang.c (find_methods): Take a std::vector.
9813 (uniquify_strings, find_imps): Likewise.
9814 * linespec.c (find_methods): Take a std::vector.
9815 (decode_objc): Use std::vector.
9816 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
9818 (find_method, find_function_symbols): Use std::vector.
9820 2018-04-05 Tom Tromey <tom@tromey.com>
9822 * completer.c (completion_tracker::completion_tracker): Remove
9824 (completion_tracker::discard_completions): Likewise.
9825 * breakpoint.c (ambiguous_names_p): Remove cast.
9826 * ada-lang.c (_initialize_ada_language): Remove cast.
9827 * utils.h (streq): Update.
9828 (streq_hash): Add new declaration.
9829 * utils.c (streq): Return bool.
9830 (streq_hash): New function.
9832 2018-04-05 Tom Tromey <tom@tromey.com>
9834 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
9835 Remove a string copy.
9837 2018-04-05 Tom Tromey <tom@tromey.com>
9839 * linespec.c (filter_results): Use std::vector.
9840 (decode_line_2, decode_line_full): Update.
9842 2018-04-05 Tom Tromey <tom@tromey.com>
9844 * linespec.c (canonical_to_fullform): Return std::string.
9845 (filter_results): Update.
9846 (struct decode_line_2_item): Add constructor.
9847 <fullform, displayform>: Now std::string.
9848 (decode_line_2_compare_items): Now a std::sort comparator.
9849 (decode_line_2): Update.
9851 2018-04-05 Tom Tromey <tom@tromey.com>
9853 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
9854 (unexpected_linespec_error): Update.
9855 (linespec_parse_basic, parse_linespec): Update.
9857 2018-04-05 Tom Tromey <tom@tromey.com>
9859 * linespec.c (linespec_parse_basic): Reindent.
9861 2018-04-05 Tom Tromey <tom@tromey.com>
9863 * minsyms.h (iterate_over_minimal_symbols): Update.
9864 * minsyms.c (iterate_over_minimal_symbols): Take a
9866 * linespec.c (struct collect_minsyms): Remove.
9867 (compare_msyms): Now a std::sort comparator.
9868 (add_minsym): Add parameters.
9869 (search_minsyms_for_name): Update. Use std::vector.
9871 2018-04-03 Tom Tromey <tom@tromey.com>
9873 * mipsread.c (read_alphacoff_dynamic_symtab): Use
9876 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
9878 * MAINTAINERS (Write After Approval): Add Weimin Pan.
9880 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
9883 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
9884 printing static type.
9886 2018-04-01 Tom Tromey <tom@tromey.com>
9888 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
9889 (rs6000_xfer_shared_libraries): Update.
9891 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9893 * common/gdb_vecs.h (char_ptr): Remove.
9894 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
9896 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9898 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
9900 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
9902 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9904 * tracepoint.h (struct uploaded_tp): Initialize fields.
9905 <actions, step_actions, cmd_strings>: Change type to
9906 std::vector<char *>.
9907 * tracepoint.c (get_uploaded_tp): Allocate with new.
9908 (free_uploaded_tps): Free with delete.
9909 (parse_tracepoint_definition): Adjust to std::vector change.
9910 * breakpoint.c (read_uploaded_action): Likewise.
9911 (create_tracepoint_from_upload): Likewise.
9912 * ctf.c (ctf_write_uploaded_tp): Likewise.
9913 (SET_ARRAY_FIELD): Likewise.
9914 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
9916 2018-03-30 Tom Tromey <tom@tromey.com>
9918 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
9920 (svr4_keep_data_in_core): Update.
9921 (svr4_read_so_list): Update.
9923 2018-03-30 Tom Tromey <tom@tromey.com>
9925 * windows-nat.c (handle_output_debug_string, handle_exception):
9927 * target.h (target_read_string): Update.
9928 * target.c (target_read_string): Change "string" to
9930 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9932 * solib-frv.c (frv_current_sos): Update.
9933 * solib-dsbt.c (dsbt_current_sos): Update.
9934 * solib-darwin.c (darwin_current_sos): Update.
9935 * linux-thread-db.c (inferior_has_bug): Update.
9936 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
9937 Update. Remove alloca.
9938 * ada-lang.c (ada_main_name): Update.
9940 2018-03-30 Tom Tromey <tom@tromey.com>
9942 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
9943 (struct dwo_file_deleter): New.
9944 (dwo_file_up): New typedef.
9945 (open_and_init_dwo_file): Use dwo_file_up.
9946 (free_dwo_file_cleanup): Remove.
9948 2018-03-30 Tom Tromey <tom@tromey.com>
9950 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
9951 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
9953 2018-03-30 Tom Tromey <tom@tromey.com>
9955 * dwarf2read.c (class free_cached_comp_units): New class.
9956 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
9957 (free_cached_comp_units): Remove function.
9959 2018-03-30 Tom Tromey <tom@tromey.com>
9961 * utils.h (make_cleanup_unpush_target): Remove.
9962 * inf-ptrace.c (struct target_unpusher): New.
9963 (target_unpush_up) New typedef.
9964 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
9966 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
9968 2018-03-27 Tom Tromey <tom@tromey.com>
9970 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
9972 2018-03-27 Pedro Alves <palves@redhat.com>
9973 Tom Tromey <tom@tromey.com>
9975 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
9976 destructor. Now a class.
9977 (gdb_readline_wrapper_cleanup): Remove function.
9978 (gdb_readline_wrapper): Remove cleanups.
9980 2018-03-27 Tom Tromey <tom@tromey.com>
9982 * typeprint.h (struct type_print_options) <local_typedefs,
9983 global_typedefs>: Remove "struct" keyword.
9984 (class typedef_hash_table): New class.
9985 (recursively_update_typedef_hash, add_template_parameters)
9986 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
9987 (find_typedef_in_hash): Don't declare.
9988 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
9989 (typedef_hash_table::recursively_update): Rename from
9990 recursively_update_typedef_hash. Now a member.
9991 (typedef_hash_table::add_template_parameters): Rename from
9992 add_template_parameters. Now a member.
9993 (typedef_hash_table::typedef_hash_table): Now a constructor;
9994 rename from create_typedef_hash.
9995 (typedef_hash_table::~typedef_hash_table): Now a destructor;
9996 rename from free_typedef_hash.
9997 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
9998 (do_free_global_table): Remove.
9999 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10000 from copy_type_recursive.
10001 (create_global_typedef_table): Remove.
10002 (typedef_hash_table::find_global_typedef): Now a member of
10003 typedef_hash_table.
10004 (typedef_hash_table::find_typedef): Rename from
10005 find_typedef_in_hash; now a member.
10006 (whatis_exp): Update.
10007 * extension.h (struct ext_lang_type_printers): Add constructor and
10009 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10011 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10012 Now a constructor; rename from start_ext_lang_type_printers.
10013 (ext_lang_type_printers): Now a destructor; rename from
10014 free_ext_lang_type_printers.
10015 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10017 (c_type_print_base_struct_union): Update. Remove cleanups.
10019 2018-03-27 Tom Tromey <tom@tromey.com>
10021 * dwarf-index-write.c: Include <cmath>.
10023 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10025 * NEWS: Add entry describing new "set|show varsize-limit" command.
10026 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10028 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10031 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10033 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10034 dwarf-index-write.c
10035 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10036 * dwarf-index-common.c: New file.
10037 * dwarf-index-common.h: New file.
10038 * dwarf-index-write.c: New file.
10039 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10040 (struct dwarf2_section_info): Move from here.
10041 (dwarf2_section_info_def): Likewise.
10042 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10043 (offset_type): Likewise.
10044 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10045 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10046 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10047 (byte_swap): Likewise.
10048 (MAYBE_SWAP): Likewise.
10049 (dwarf2_per_cu_ptr): Likewise.
10050 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10051 (struct tu_stats): Likewise.
10052 (struct dwarf2_per_objfile): Likewise.
10053 (struct dwarf2_per_cu_data): Likewise.
10054 (struct signatured_type): Likewise.
10055 (sig_type_ptr): Likewise.
10056 (DEF_VEC_P (sig_type_ptr)): Likewise.
10057 (INDEX4_SUFFIX): Likewise.
10058 (INDEX5_SUFFIX): Likewise.
10059 (DEBUG_STR_SUFFIX): Likewise.
10060 (dwarf2_read_section): Make non-static.
10061 (mapped_index_string_hash): Move from here.
10062 (dwarf5_djb_hash): Likewise.
10063 (file_write): Likewise.
10064 (class data_buf): Likewise.
10065 (struct symtab_index_entry): Likewise.
10066 (struct mapped_symtab): Likewise.
10067 (find_slot): Likewise.
10068 (hash_expand): Likewise.
10069 (add_index_entry): Likewise.
10070 (uniquify_cu_indices): Likewise.
10071 (class c_str_view): Likewise.
10072 (class c_str_view_hasher): Likewise.
10073 (class vector_hasher): Likewise.
10074 (write_hash_table): Likewise.
10075 (psym_index_map): Likewise.
10076 (struct addrmap_index_data): Likewise.
10077 (add_address_entry): Likewise.
10078 (add_address_entry_worker): Likewise.
10079 (write_address_map): Likewise.
10080 (symbol_kind): Likewise.
10081 (write_psymbols): Likewise.
10082 (struct signatured_type_index_data): Likewise.
10083 (write_one_signatured_type): Likewise.
10084 (recursively_count_psymbols): Likewise.
10085 (recursively_write_psymbols): Likewise.
10086 (class debug_names): Likewise.
10087 (check_dwarf64_offsets): Likewise.
10088 (psyms_seen_size): Likewise.
10089 (write_gdbindex): Likewise.
10090 (write_debug_names): Likewise.
10091 (assert_file_size): Likewise.
10092 (write_psymtabs_to_index): Likewise.
10093 (save_gdb_index_command): Likewise.
10094 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10096 * dwarf2read.h: New file.
10098 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10101 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10102 symbol name if the CU's language stores symbol names in linkage
10104 * language.h (struct language_defn)
10105 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10106 all instances of this struct.
10108 2018-03-26 Tom Tromey <tom@tromey.com>
10110 * stack.c (backtrace_command_1): Remove verbose code.
10112 2018-03-26 Tom Tromey <tom@tromey.com>
10114 * python/py-framefilter.c (py_print_type): Don't catch
10115 exceptions. Return void.
10116 (py_print_value): Likewise.
10117 (py_print_single_arg): Likewise.
10118 (enumerate_args): Don't catch exceptions.
10119 (py_print_args): Likewise.
10120 (py_print_frame): Likewise.
10121 (gdbpy_apply_frame_filter): Catch exceptions here.
10123 2018-03-26 Tom Tromey <tom@tromey.com>
10125 * stack.c (_initialize_stack): Remove trailing newlines from help
10126 text. Add "Usage" line to "backtrace" help.
10128 2018-03-26 Tom Tromey <tom@tromey.com>
10131 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10133 2018-03-26 Tom Tromey <tom@tromey.com>
10135 * python/py-framefilter.c (py_print_single_arg): Return
10136 EXT_LANG_BT_ERROR from catch.
10138 2018-03-26 Tom Tromey <tom@tromey.com>
10140 PR backtrace/15584:
10141 * stack.c (backtrace_command_1): Move some code into no-filters
10144 2018-03-26 Tom Tromey <tom@tromey.com>
10146 * python/py-framefilter.c (throw_quit_or_print_exception): New
10148 (gdbpy_apply_frame_filter): Use it.
10150 2018-03-26 Tom Tromey <tom@tromey.com>
10153 * python/py-framefilter.c (py_print_type, py_print_value)
10154 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10157 2018-03-26 Tom Tromey <tom@tromey.com>
10159 * python/py-framefilter.c (enumerate_args): Use
10160 gdb::unique_xmalloc_ptr.
10162 2018-03-26 Tom Tromey <tom@tromey.com>
10164 * python/py-framefilter.c (py_print_frame): Return
10166 (gdbpy_apply_frame_filter): Update comment.
10167 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10169 <EXT_LANG_BT_NO_FILTERS>: Change value.
10171 2018-03-26 Tom Tromey <tom@tromey.com>
10173 PR backtrace/15582:
10174 * stack.c (backtrace_command): Parse "hide" argument.
10175 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10176 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10179 2018-03-26 Tom Tromey <tom@tromey.com>
10181 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10183 (backtrace_command): Remove "fulltrace", add "flags".
10185 2018-03-26 Tom Tromey <tom@tromey.com>
10187 * stack.c (backtrace_command): Rewrite command line parsing.
10189 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10191 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10193 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10195 * filename-seen-cache.h: Add include guard.
10197 2018-03-26 Keith Seitz <keiths@redhat.com>
10199 * symfile.c (place_section): Remove "struct" from section_addr_info
10201 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10202 "struct" keyword from section_addr_info.
10204 2018-03-26 Alan Hayward <alan.hayward@arm.com>
10206 * regformats/regdef.h (reg): Add constructors.
10208 2018-03-25 Pedro Alves <palves@redhat.com>
10210 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10211 if then/else bodies in var_func_name extraction.
10213 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
10215 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10216 lookup_minimal_symbol() to find symbol entry.
10217 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10219 2018-03-23 Keith Seitz <keiths@redhat.com>
10222 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10223 nested type definitions for C++, too.
10225 2018-03-23 Tom Tromey <tom@tromey.com>
10227 * machoread.c (struct oso_el): Add a constructor. Don't define as
10229 (macho_register_oso): Remove.
10230 (macho_symtab_read): Take a std::vector.
10231 (oso_el_compare_name): Now a std::sort comparator.
10232 (macho_symfile_read_all_oso): Take a std::vector.
10233 (macho_symfile_read): Use std::vector. Remove cleanups.
10235 2018-03-22 Tom Tromey <tom@tromey.com>
10237 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10238 (record_full_goto_bookmark): Use std::string.
10240 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10243 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10246 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10248 * rs6000-tdep.c (store_insn_p): New function.
10249 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10250 and cr_reg to their unshifted values. Use store_insn_p to
10251 match LR saves using either R1 or fdata->alloca_reg. Use
10252 store_insn_p to match CR saves. Set alloca_reg_offset
10253 when alloca_reg and framep are set. Remove lr_reg shift
10254 when assigning to fdata->lr_register.
10256 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10258 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10259 command line args instead of emitting a warning.
10261 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10263 * tracepoint.h (struct static_tracepoint_marker): Initialize
10264 fields, define default constructor, move constructor and move
10265 assignment, disable the rest.
10266 <str_id, extra>: Make std::string.
10267 (release_static_tracepoint_marker): Remove.
10268 (free_current_marker): Remove.
10269 * tracepoint.c (free_current_marker): Remove.
10270 (parse_static_tracepoint_marker_definition): Adjust to
10271 std::string, use new hex2str overload.
10272 (release_static_tracepoint_marker): Remove.
10273 (print_one_static_tracepoint_marker): Get marker by reference
10274 and adjust to std::string.
10275 (info_static_tracepoint_markers_command): Adjust to std::vector
10277 * target.h (static_tracepoint_marker_p): Remove typedef.
10278 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10279 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10281 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10283 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10284 (target_debug_print_std_vector_static_tracepoint_marker): New.
10285 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10287 (target_debug_print_static_tracepoint_marker_p): ... this.
10288 * target-delegates.c: Re-generate.
10289 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10291 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10292 (decode_static_tracepoint_spec): Adjust to std::vector.
10293 (tracepoint_print_one_detail): Adjust to std::string.
10294 (strace_marker_decode_location): Adjust to std::string.
10295 (update_static_tracepoint): Adjust to std::string, remove call
10296 to release_static_tracepoint_marker.
10297 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10298 Adjust to std::vector.
10299 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10300 (remote_static_tracepoint_markers_by_strid): Adjust to
10302 * common/rsp-low.h (hex2str): New overload with explicit count
10304 * common/rsp-low.c (hex2str): New overload with explicit count
10306 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10307 (_initialize_rsp_low_selftests): Add test_hex2str test.
10308 * unittests/tracepoint-selftests.c
10309 (test_parse_static_tracepoint_marker_definition): Adjust to
10312 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10314 * tracepoint.c (parse_static_tracepoint_marker_definition):
10315 Consider case where the definition is followed by more
10317 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10318 tracepoint-selftests.c.
10319 * unittests/tracepoint-selftests.c: New.
10321 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10323 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10326 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10328 * symtab.c (find_pc_sect_line): fixed indentation.
10330 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10332 * symtab.c (find_pc_sect_line): now uses binary search.
10334 2018-03-19 Tom Tromey <tom@tromey.com>
10336 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10337 "IDENT" production.
10339 2018-03-19 Pedro Alves <palves@redhat.com>
10340 Tom Tromey <tom@tromey.com>
10342 * unittests/observable-selftests.c: New file.
10343 * common/observable.h: New file.
10344 * observable.h: New file.
10345 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10346 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10347 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10348 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10349 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10350 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10351 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10352 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10353 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10354 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10355 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10356 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10357 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10358 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10359 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10360 tui/tui-interp.c, valops.c: Update all users.
10361 * tui/tui-hooks.c (tui_bp_created_observer)
10362 (tui_bp_deleted_observer, tui_bp_modified_observer)
10363 (tui_inferior_exit_observer, tui_before_prompt_observer)
10364 (tui_normal_stop_observer, tui_register_changed_observer):
10366 (tui_observers_token): New global.
10367 (attach_or_detach, tui_attach_detach_observers): New functions.
10368 (tui_install_hooks, tui_remove_hooks): Use
10369 tui_attach_detach_observers.
10370 * record-btrace.c (record_btrace_thread_observer): Remove.
10371 (record_btrace_thread_observer_token): New global.
10372 * observer.sh: Remove.
10373 * observer.c: Rename to observable.c.
10374 * observable.c (namespace gdb_observers): Define new objects.
10375 (observer_debug): Move into gdb_observers namespace.
10376 (struct observer, struct observer_list, xalloc_observer_list_node)
10377 (xfree_observer_list_node, generic_observer_attach)
10378 (generic_observer_detach, generic_observer_notify): Remove.
10379 (_initialize_observer): Update.
10380 Don't include observer.inc.
10381 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10382 (clean mostlyclean): Likewise.
10383 (observer.h, observer.inc): Remove targets.
10384 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10385 (COMMON_SFILES): Use observable.c, not observer.c.
10386 * .gitignore: Remove observer.h.
10388 2018-03-18 Tom Tromey <tom@tromey.com>
10390 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10392 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10394 2018-03-17 Tom Tromey <tom@tromey.com>
10396 * auto-load.c (auto_load_objfile_script_1): Use std::string.
10398 2018-03-17 Tom Tromey <tom@tromey.com>
10400 * target.c (class scoped_target_fd): New.
10401 (target_fileio_close_cleanup): Remove.
10402 (target_fileio_read_alloc_1): Use scoped_target_fd.
10404 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
10406 * silent-rules.mk: New.
10407 * Makefile.in: Include silent-rules.mk
10408 (srcdir, VPATH, top_srcdir): Move up.
10409 (COMPILE): Add ECHO_CXX.
10410 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
10411 (init.c): Add ECHO_INIT_C.
10412 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10413 (version.c): Add ECHO_GEN.
10414 (printcmd.o): Add ECHO_CXX.
10415 (target-float.o): Add ECHO_CXX.
10416 (ada-exp.o): Add ECHO_CXX.
10417 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
10418 (insight$(EXEEXT)): Add ECHO_CXXLD.
10419 * gnulib/configure.ac: Add AM_SILENT_RULES.
10420 * gnulib/aclocal.m4: Re-generate.
10421 * gnulib/configure: Re-generate.
10422 * gnulib/import/Makefile.in: Re-generate.
10424 2018-03-16 Tom Tromey <tom@tromey.com>
10426 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
10427 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
10428 * utils.c (do_free_section_addr_info)
10429 (make_cleanup_free_section_addr_info): Remove.
10430 * symfile.h (struct other_sections): Add constructor.
10431 (struct section_addr_info): Remove.
10432 (section_addr_info): New typedef.
10433 (struct sym_fns) <sym_offsets>: Change type of parameter.
10434 (build_section_addr_info_from_objfile)
10435 (relative_addr_info_to_section_offsets, addr_info_make_relative)
10436 (default_symfile_offsets, symbol_file_add)
10437 (symbol_file_add_from_bfd)
10438 (build_section_addr_info_from_section_table): Update.
10439 (alloc_section_addr_info, free_section_addr_info): Don't declare.
10440 * symfile.c (alloc_section_addr_info): Remove.
10441 (build_section_addr_info_from_section_table): Change return type.
10443 (build_section_addr_info_from_bfd)
10444 (build_section_addr_info_from_objfile): Likewise.
10445 (free_section_addr_info): Remove.
10446 (relative_addr_info_to_section_offsets): Change type of "addrs".
10447 (addrs_section_compar): Now a std::sort comparator.
10448 (addrs_section_sort): Change return type.
10449 (addr_info_make_relative): Change type of "addrs". Update.
10450 (default_symfile_offsets, syms_from_objfile_1)
10451 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
10452 (symbol_file_add_separate): Update.
10453 (symbol_file_add): Change type of "addrs". Update.
10454 (add_symbol_file_command): Update. Remove cleanups.
10455 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
10457 * symfile-debug.c (debug_sym_offsets): Change type of "info".
10458 * solib.c (solib_read_symbols): Update.
10459 * objfiles.c (objfile_relocate): Update. Remove cleanups.
10460 * machoread.c (macho_symfile_offsets): Update.
10461 * jit.c (jit_bfd_try_read_symtab): Update.
10463 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
10465 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10466 unittests/utils-selftests.c.
10467 * unittests/utils-selftests.c: New file.
10469 2018-03-14 Tom Tromey <tom@tromey.com>
10472 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
10475 2018-03-14 Tom Tromey <tom@tromey.com>
10478 * printcmd.c (printf_pointer): Allow "-" in format.
10480 2018-03-14 Tom Tromey <tom@tromey.com>
10482 * printcmd.c (_initialize_printcmd): Add usage to printf.
10484 2018-03-14 Yao Qi <qiyao@sourceware.org>
10486 * MAINTAINERS: Update my email address.
10488 2018-03-13 Tom Tromey <tom@tromey.com>
10490 * machoread.c (macho_check_dsym): Change filenamep to a
10492 (macho_symfile_read): Update.
10493 * symfile.c (load_command): Use std::string.
10495 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
10497 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
10498 to error message string.
10499 (riscv_register_name): Use xsnprintf instead of sprintf.
10500 (riscv_insn::fetch_instruction): Use gdb_assert instead of
10502 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
10504 (riscv_push_dummy_call): Likewise.
10506 2018-03-12 Tom Tromey <tom@tromey.com>
10508 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
10509 Use gdb::byte_vector.
10510 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
10512 2018-03-12 Yao Qi <yao.qi@linaro.org>
10514 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
10515 parameter type to readable_regcache.
10516 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
10519 2018-03-11 Tom Tromey <tom@tromey.com>
10521 * dwarf2read.c (struct nextfield): Add initializers.
10522 (struct nextfnfield): Remove.
10523 (struct fnfieldlist): Add initializers. Remove "length" and
10524 "head", use std::vector.
10525 (struct decl_field_list): Remove.
10526 (struct field_info): Add initializers.
10527 <fields, baseclasses>: Now std::vector.
10528 <nbaseclasses, nfnfields, typedef_field_list_count,
10529 nested_types_list_count>: Remove.
10530 (dwarf2_add_field, dwarf2_add_type_defn)
10531 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
10532 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
10533 (process_structure_scope): Update.
10535 2018-03-11 Tom Tromey <tom@tromey.com>
10537 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
10538 for use by std::sort.
10539 (build_type_psymtabs_1): Use std::vector.
10541 2018-03-09 Eli Zaretskii <eliz@gnu.org>
10543 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
10544 and LIBMPFR in the printed configuration.
10546 2018-03-08 Tom Tromey <tom@tromey.com>
10548 * source.c (get_filename_and_charpos): Use scoped_fd.
10549 * nto-procfs.c (procfs_open_1): Use scoped_fd.
10550 (procfs_pidlist): Likewise.
10551 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
10552 (iterate_over_mappings): Likewise.
10554 2018-03-08 Tom Tromey <tom@tromey.com>
10556 * infcall.c (struct call_return_meta_info)
10557 <stack_temporaries_enabled>: Remove.
10558 (get_call_return_value, call_function_by_hand_dummy): Update.
10559 * thread.c (disable_thread_stack_temporaries): Remove.
10560 (enable_thread_stack_temporaries): Remove.
10561 (thread_stack_temporaries_enabled_p): Return bool.
10562 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
10563 (get_last_thread_stack_temporary): Update.
10564 * eval.c (evaluate_subexp): Update.
10565 * gdbthread.h (class enable_thread_stack_temporaries): Now a
10566 class, not a function.
10567 (value_ptr, value_vec): Remove typedefs.
10568 (class thread_info) <stack_temporaries_enabled>: Now bool.
10569 <stack_temporaries>: Now a std::vector.
10570 (thread_stack_temporaries_enabled_p)
10571 (value_in_thread_stack_temporaries): Return bool.
10573 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
10575 * remote.c (putpkt_binary): Fix omitted bytes reporting.
10576 (getpkt_or_notif_sane_1): Likewise.
10578 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10580 * build-id.c (build_id_to_debug_bfd): Use std::string.
10582 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10584 * build-id.c (find_separate_debug_file_by_buildid): Return
10586 * build-id.h (find_separate_debug_file_by_buildid): Return
10588 * coffread.c (coff_symfile_read): Adjust to std::string.
10589 * elfread.c (elf_symfile_read): Adjust to std::string.
10590 * symfile.c (separate_debug_file_exists): Change parameter to
10592 (find_separate_debug_file): Return std::string.
10593 (find_separate_debug_file_by_debuglink): Return std::string.
10594 * symfile.h (find_separate_debug_file_by_debuglink): Return
10597 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10599 * common/xml-utils.c (xml_escape_text): Move code to...
10600 (xml_escape_text_append): ... this new function.
10601 * common/xml-utils.h (xml_escape_text_append): New declaration.
10602 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
10604 (_initialize_xml_utils): register test_xml_escape_text_append as
10607 2018-03-07 Alan Hayward <alan.hayward@arm.com>
10609 * defs.h: Remove MAX_REGISTER_SIZE.
10610 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
10612 * python/py-unwind.c (pyuw_sniffer): Likewise.
10614 2018-03-07 Tom Tromey <tom@tromey.com>
10616 * linux-tdep.c (linux_info_proc): Update.
10617 * target.h (struct target_ops) <to_fileio_readlink>: Return
10619 (target_fileio_readlink): Return optional<string>.
10620 * remote.c (remote_hostio_readlink): Return optional<string>.
10621 * inf-child.c (inf_child_fileio_readlink): Return
10623 * target.c (target_fileio_readlink): Return optional<string>.
10625 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10627 * regcache.c (cooked_read_test): Add riscv to the list of
10628 architectures that have a save_reggroup.
10630 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
10632 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
10633 value is not a dynamic class object.
10635 2018-03-06 Tom Tromey <tom@tromey.com>
10637 * rust-exp.y: Formatting fixes.
10639 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10641 * riscv-tdep.c (riscv_register_name): Remove target description
10643 (riscv_gdbarch_init): Remove target description check.
10645 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10647 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
10649 * riscv-tdep.h: Likewise.
10651 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10653 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
10654 (riscv_pseudo_register_write): Delete.
10655 (riscv_gdbarch_init): Remove all use of pseudo registers.
10657 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10659 * record-btrace.c (btrace_print_lines): Replace cleanup
10660 parameter with RAII equivalents.
10661 (btrace_insn_history): Replace cleanup with RAII equivalents.
10662 * ui-out.h (make_cleanup_ui_out_list_begin_end,
10663 make_cleanup_ui_out_tuple_begin_end): Remove.
10664 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
10665 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
10666 make_cleanup_ui_out_list_begin_end): Remove.
10668 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10670 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
10671 parameter types to std::vector. Use bool.
10672 (record_btrace_wait): Replace VEC(tp_t) with
10673 std::vector<thread_info *>.
10674 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
10676 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10678 * record-btrace.c (record_btrace_disable_callback): Remove.
10679 (struct scoped_btrace_disable): New.
10680 (record_btrace_open): Use scoped_btrace_disable.
10682 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10684 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
10685 reading values from registers.
10687 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10689 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
10692 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10694 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
10695 change parameter type. Use GDB's print functions, and use
10696 core_addr_to_string where appropriate.
10697 (riscv_push_dummy_call): Use core_addr_to_string where
10698 appropriate, update call to riscv_print_arg_location, and reindent
10700 (riscv_return_value): Update call to riscv_print_arg_location.
10702 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10703 Tim Newsome <tim@sifive.com>
10704 Albert Ou <a0u@eecs.berkeley.edu>
10705 Darius Rad <darius@bluespec.com>
10707 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
10708 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
10709 (ALLDEPFILES): Add riscv-tdep.c
10710 * configure.tgt: Add riscv support.
10711 * riscv-tdep.c: New file.
10712 * riscv-tdep.h: New file.
10713 * NEWS: Mention new target.
10714 * MAINTAINERS: Add entry for riscv.
10716 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10718 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
10719 fields within aggregates.
10721 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
10723 * record-btrace.c (btrace_print_lines): Change type of flags to
10724 gdb_disassembly_flags.
10726 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10728 * fbsd-nat.c: Include "inf-ptrace.h".
10729 (USE_SIGTRAP_SIGINFO): Conditionally define.
10730 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
10731 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
10732 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
10734 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
10736 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
10738 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
10739 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
10740 "supports_stopped_by_hw_breakpoint" target methods.
10742 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10744 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
10745 * fbsd-nat.c (debug_fbsd_nat): New variable.
10746 (show_fbsd_nat_debug): New function.
10747 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
10748 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
10750 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10752 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
10753 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
10755 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
10756 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
10759 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10761 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
10762 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
10764 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10766 * charset.c (struct charset_vector): New.
10767 (charsets): Change type to charset_vector.
10768 (find_charset_names): Adjust.
10770 (_initialize_charset): Adjust.
10772 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10774 * progspace.h (struct program_space) <deleted_solibs>: Change
10775 type to std::vector<std::string>.
10776 * progspace.c (clear_program_space_solib_cache): Adjust.
10777 * breakpoint.c (print_solib_event): Adjust.
10778 (check_status_catch_solib): Adjust.
10779 * solib.c (update_solib_list): Adjust.
10780 * ui-out.h (class ui_out) <field_string>: New overload.
10781 * ui-out.c (ui_out::field_string): New overload.
10783 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10785 * progspace.h (struct program_space): Add constructor and
10786 destructor, initialize fields.
10787 (add_program_space): Remove.
10788 * progspace.c (add_program_space): Rename to...
10789 (program_space::program_space): ... this.
10790 (release_program_space): Rename to...
10791 (program_space::~program_space): ... this.
10792 (delete_program_space): Use delete to delete program_space.
10793 (initialize_progspace): Use new to allocate program_space.
10794 * inferior.c (add_inferior_with_spaces): Likewise.
10795 (clone_inferior_command): Likewise.
10796 * infrun.c (follow_fork_inferior): Likewise.
10797 (handle_vfork_child_exec_or_exit): Likewise.
10799 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10801 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
10802 (delim_string_to_char_ptr_vec): Return std::vector of
10803 gdb::unique_xmalloc_ptr.
10804 (dirnames_to_char_ptr_vec_append): Take std::vector of
10805 gdb::unique_xmalloc_ptr.
10806 (dirnames_to_char_ptr_vec): Return std::vector of
10807 gdb::unique_xmalloc_ptr.
10808 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
10809 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
10810 (delim_string_to_char_ptr_vec): Return an std::vector of
10811 gdb::unique_xmalloc_ptr, adjust the code.
10812 (dirnames_to_char_ptr_vec_append): Take an std::vector of
10813 gdb::unique_xmalloc_ptr, adjust the code.
10814 (dirnames_to_char_ptr_vec): Return an std::vector of
10815 gdb::unique_xmalloc_ptr, adjust the code.
10816 * auto-load.c (auto_load_safe_path_vec): Change type to
10817 std::vector of gdb::unique_xmalloc_ptr.
10818 (auto_load_expand_dir_vars): Return an std::vector of
10819 gdb::unique_xmalloc_ptr, adjust the code.
10820 (auto_load_safe_path_vec_update): Adjust.
10821 (filename_is_in_auto_load_safe_path_vec): Adjust.
10822 (auto_load_objfile_script_1): Adjust.
10823 * build-id.c (build_id_to_debug_bfd): Adjust.
10824 * linux-thread-db.c (thread_db_load_search): Adjust.
10825 * source.c (add_path): Adjust.
10827 * symfile.c (find_separate_debug_file): Adjust.
10828 * utils.c (do_free_char_ptr_vec): Remove.
10829 (make_cleanup_free_char_ptr_vec): Remove.
10831 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
10834 * common/pathstuff.c: Conditionally include "<windows.h>".
10836 2018-03-01 Georg Sauthoff <mail@georg.so>
10839 * gcore.in: Quote variables and switch interpreter to bash.
10841 2018-03-01 Tom Tromey <tom@tromey.com>
10843 * dwarf2read.c (alloc_discriminant_info): Fix default_index
10844 assertion. Add assertion for discriminant_index.
10845 (quirk_rust_enum): Use correct base type name in univariant case.
10847 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
10849 * record.c (get_call_history_modifiers): Return a
10850 record_print_flags.
10851 (cmd_record_call_history): Adjust.
10852 * record-btrace.c (record_btrace_call_history): Adjust.
10853 (record_btrace_call_history_range): Adjust.
10854 (record_btrace_call_history_from): Adjust.
10855 * target-debug.h (target_debug_print_record_print_flags): New.
10856 * target-delegates.c: Re-generate.
10857 * target.c (target_call_history): Change flags type.
10858 (target_call_history_from): Likewise.
10859 (target_call_history_range): Likewise.
10860 * target.h (struct target_ops) <target_call_history>: Likewise.
10861 (target_call_history_from): Likewise.
10862 (target_call_history_range): Likewise.
10864 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10865 Simon Marchi <simon.marchi@polymtl.ca>
10867 * common/common-utils.c: Include "sys/stat.h".
10868 (is_regular_file): Move here from "source.c"; change return
10870 * common/common-utils.h (is_regular_file): New prototype.
10871 * common/pathstuff.c (contains_dir_separator): New function.
10872 * common/pathstuff.h (contains_dir_separator): New prototype.
10873 * source.c: Don't include "sys/stat.h".
10874 (is_regular_file): Move to "common/common-utils.c".
10876 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10878 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
10879 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
10880 * auto-load.c: Include "common/pathstuff.h".
10881 * common/common-def.h (current_directory): Move here.
10882 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
10884 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
10886 * common/pathstuff.c: New file.
10887 * common/pathstuff.h: New file.
10888 * compile/compile.c: Include "common/pathstuff.h".
10889 * defs.h (current_directory): Move to "common/common-defs.h".
10890 * dwarf2read.c: Include "common/pathstuff.h".
10891 * exec.c: Likewise.
10892 * guile/scm-safe-call.c: Likewise.
10893 * linux-thread-db.c: Likewise.
10894 * main.c: Likewise.
10895 * nto-tdep.c: Likewise.
10896 * objfiles.c: Likewise.
10897 * source.c: Likewise.
10898 * symtab.c: Likewise.
10899 * utils.c: Include "common/pathstuff.h".
10900 (gdb_realpath): Move to "common/pathstuff.c".
10901 (gdb_realpath_keepfile): Likewise.
10902 (gdb_abspath): Likewise.
10903 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
10904 (gdb_realpath_keepfile): Likewise.
10905 (gdb_abspath): Likewise.
10907 2018-02-28 John Baldwin <jhb@FreeBSD.org>
10909 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
10910 wildcard process pid for super_resume for kernels with a
10913 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
10915 * compile/compile.c (get_args): Add additional comments
10916 explaining function.
10918 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
10919 Tom Tromey <tom@tromey.com>
10921 * target.h (memory_write_request_s): Remove typedef. Don't define
10923 (target_write_memory_blocks): Change argument to std::vector.
10924 (struct memory_write_request): Add constructor.
10925 * target-memory.c (compare_block_starting_address): Return bool.
10926 Change argument types.
10927 (claim_memory): Change arguments to use std::vector.
10928 (split_regular_and_flash_blocks, blocks_to_erase)
10929 (compute_garbled_blocks): Likewise.
10930 (cleanup_request_data, cleanup_write_requests_vector): Remove.
10931 (target_write_memory_blocks): Change argument to std::vector.
10932 * symfile.c (struct load_section_data): Add constructor and
10933 destructor. Use std::vector for "requests".
10934 (struct load_progress_data): Add initializers.
10935 (load_section_callback): Update. Use "new".
10936 (clear_memory_write_data): Remove.
10937 (generic_load): Update.
10939 2018-02-27 Alan Hayward <alan.hayward@arm.com>
10941 * arch/aarch64.h: Use common/tdesc.h.
10943 2018-02-26 Maciej W. Rozycki <macro@mips.com>
10945 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
10946 architecture with a 64-bit ABI.
10948 2018-02-26 Maciej W. Rozycki <macro@mips.com>
10950 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
10951 ahead of target description loading.
10953 2018-02-26 Tom Tromey <tom@tromey.com>
10955 * stack.c (backtrace_command_1): Update.
10956 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
10958 * python/py-framefilter.c (py_print_frame)
10959 (gdbpy_apply_frame_filter): Change type of "flags".
10960 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
10962 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
10963 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
10964 * extension.h (enum frame_filter_flag): Rename from
10965 frame_filter_flags.
10966 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
10967 (apply_ext_lang_frame_filter): Change type of "flags".
10968 * extension.c (apply_ext_lang_frame_filter): Change type of
10970 * extension-priv.h (struct extension_language_ops)
10971 <apply_frame_filter>: Change type of "flags".
10973 2018-02-26 Tom Tromey <tom@tromey.com>
10976 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
10977 off-by-one in py_end computation.
10978 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
10980 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
10983 2018-02-26 Tom Tromey <tom@tromey.com>
10985 * dwarf2read.c (struct variant_field): New.
10986 (struct nextfield) <variant>: New field.
10987 (dwarf2_add_field): Handle DW_TAG_variant_part.
10988 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
10989 discriminated union.
10990 (read_structure_type): Handle DW_TAG_variant_part.
10991 (handle_struct_member_die): New function, extracted from
10992 process_structure_scope. Handle DW_TAG_variant.
10993 (process_structure_scope): Handle discriminated unions. Call
10994 handle_struct_member_die.
10996 2018-02-26 Tom Tromey <tom@tromey.com>
10998 * rust-lang.h (rust_last_path_segment): Declare.
10999 * rust-lang.c (rust_last_path_segment): Now public. Change
11001 (struct disr_info): Remove.
11002 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11003 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11004 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11005 (rust_enum_p, rust_enum_variant): New function.
11006 (rust_underscore_fields): Remove "offset" parameter.
11007 (rust_print_enum): New function.
11008 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11009 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11010 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11012 (rust_internal_print_type): New function, from rust_print_type.
11014 (rust_print_type): Call rust_internal_print_type.
11015 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11016 Update enum handling.
11017 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11018 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11019 (rust_union_quirks): New functions.
11020 (process_full_comp_unit, process_full_type_unit): Call
11022 (process_structure_scope): Update rust_unions if necessary.
11024 2018-02-26 Tom Tromey <tom@tromey.com>
11026 * value.h (value_union_variant): Declare.
11027 * valops.c (value_union_variant): New function.
11028 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11029 (struct discriminant_info): New.
11030 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11032 (struct main_type) <flag_discriminated_union>: New field.
11034 2018-02-26 Tom Tromey <tom@tromey.com>
11036 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11037 unittests/unpack-selftests.c.
11038 * unittests/unpack-selftests.c: New file.
11039 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11041 2018-02-26 Yao Qi <yao.qi@linaro.org>
11043 * dwarf2read.c (struct partial_die_info) <read>: New method.
11044 (read_partial_die): Remove the declaration.
11045 (load_partial_dies): Update.
11046 (partial_die_info::partial_die_info):
11047 (read_partial_die): Change it to partial_die_info::read.
11049 2018-02-26 Yao Qi <yao.qi@linaro.org>
11051 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11052 (fixup_partial_die): Remove declaration.
11053 (scan_partial_symbols): Update.
11054 (partial_die_parent_scope): Likewise.
11055 (partial_die_full_name): Likewise.
11056 (fixup_partial_die): Change it to partial_die_info::fixup.
11058 2018-02-26 Yao Qi <yao.qi@linaro.org>
11060 * dwarf2read.c (read_partial_die): Update the declaration.
11061 (load_partial_dies): Caller update.
11062 (read_partial_die): Remove one argument abbrev_len.
11064 2018-02-26 Yao Qi <yao.qi@linaro.org>
11066 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11067 assignment operator.
11068 (load_partial_dies): Use ctor and copy ctor.
11069 (read_partial_die): Update.
11070 (dwarf2_cu::find_partial_die): Use ctor.
11072 2018-02-26 Yao Qi <yao.qi@linaro.org>
11074 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11075 (find_partial_die_in_comp_unit): Change it to
11076 dwarf2_cu::find_partial_die.
11077 (find_partial_die): Update.
11079 2018-02-26 Yao Qi <yao.qi@linaro.org>
11081 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11084 2018-02-26 Yao Qi <yao.qi@linaro.org>
11086 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11088 2018-02-26 Alan Hayward <alan.hayward@arm.com>
11090 * arch/amd64.h: Use common/tdesc.h.
11091 * arch/i386.c: Likewise.
11092 * arch/i386.h: Likewise.
11093 * arch/tic6x.c: Likewise.
11094 * arch/tdesc.h: Move file from here...
11095 * common/tdesc.h: ...to here.
11096 * features/aarch64-core.c: Regenerate.
11097 * features/aarch64-fpu.c: Regenerate.
11098 * features/i386/32bit-avx.c: Regenerate.
11099 * features/i386/32bit-avx512.c: Regenerate.
11100 * features/i386/32bit-core.c: Regenerate.
11101 * features/i386/32bit-linux.c: Regenerate.
11102 * features/i386/32bit-mpx.c: Regenerate.
11103 * features/i386/32bit-pkeys.c: Regenerate.
11104 * features/i386/32bit-sse.c: Regenerate.
11105 * features/i386/64bit-avx.c: Regenerate.
11106 * features/i386/64bit-avx512.c: Regenerate.
11107 * features/i386/64bit-core.c: Regenerate.
11108 * features/i386/64bit-linux.c: Regenerate.
11109 * features/i386/64bit-mpx.c: Regenerate.
11110 * features/i386/64bit-pkeys.c: Regenerate.
11111 * features/i386/64bit-segments.c: Regenerate.
11112 * features/i386/64bit-sse.c: Regenerate.
11113 * features/i386/x32-core.c: Regenerate.
11114 * features/tic6x-c6xp.c: Regenerate.
11115 * features/tic6x-core.c: Regenerate.
11116 * features/tic6x-gp.c: Regenerate.
11117 * target-descriptions.c: Use common/tdesc.h.
11118 * target-descriptions.h: Likewise.
11120 2018-02-24 Tom Tromey <tom@tromey.com>
11122 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11123 (try_thread_db_load_from_dir, thread_db_load_search): Use
11125 (info_auto_load_libthread_db_compare): Return bool. Change
11127 (info_auto_load_libthread_db): Use std::vector, std::string.
11130 2018-02-24 Tom Tromey <tom@tromey.com>
11132 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11134 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11136 * gdbarch.c: Rebuild.
11137 * gdbarch.h: Rebuild.
11138 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11139 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11140 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11143 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11145 * gdbtypes.h (sect_offset): Change type to uint64_t.
11146 (sect_offset_str): New function.
11147 * dwarf2read.c (create_addrmap_from_aranges): Use
11149 (error_check_comp_unit_head): Likewise.
11150 (create_debug_type_hash_table): Likewise.
11151 (read_cutu_die_from_dwo): Likewise.
11152 (init_cutu_and_read_dies): Likewise.
11153 (init_cutu_and_read_dies_no_follow): Likewise.
11154 (process_psymtab_comp_unit_reader): Likewise.
11155 (partial_die_parent_scope): Likewise.
11156 (peek_die_abbrev): Likewise.
11157 (process_queue): Likewise.
11158 (dwarf2_physname): Likewise.
11159 (read_namespace_alias): Likewise.
11160 (read_import_statement): Likewise.
11161 (create_dwo_cu_reader): Likewise.
11162 (create_cus_hash_table): Likewise.
11163 (lookup_dwo_cutu): Likewise.
11164 (inherit_abstract_dies): Likewise.
11165 (read_func_scope): Likewise.
11166 (read_call_site_scope): Likewise.
11167 (dwarf2_add_member_fn): Likewise.
11168 (read_common_block): Likewise.
11169 (read_module_type): Likewise.
11170 (read_typedef): Likewise.
11171 (read_subrange_type): Likewise.
11172 (load_partial_dies): Likewise.
11173 (read_partial_die): Likewise.
11174 (find_partial_die): Likewise.
11175 (read_str_index): Likewise.
11176 (dwarf2_string_attr): Likewise.
11177 (build_error_marker_type): Likewise.
11178 (lookup_die_type): Likewise.
11179 (dump_die_shallow): Likewise.
11180 (follow_die_ref): Likewise.
11181 (dwarf2_fetch_die_loc_sect_off): Likewise.
11182 (dwarf2_fetch_constant_bytes): Likewise.
11183 (follow_die_sig): Likewise.
11184 (get_signatured_type): Likewise.
11185 (get_DW_AT_signature_type): Likewise.
11186 (dwarf2_find_containing_comp_unit): Likewise.
11187 (set_die_type): Likewise.
11189 2018-02-21 John Baldwin <jhb@FreeBSD.org>
11191 * arch/aarch64.c: Include "common-defs.h".
11192 * arch/amd64.c: Likewise.
11193 * arch/i386.c: Likewise.
11195 2018-02-21 Tom Tromey <tom@tromey.com>
11197 * value.h: (extract_field_op): Update.
11198 * eval.c (extract_field_op): Return a const char *.
11199 * expression.h (parse_expression_for_completion): Update.
11200 * completer.c (complete_expression): Update.
11201 (add_struct_fields): Make fieldname const.
11202 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11203 (mark_completion_tag, parse_exp_in_context_1): Update.
11204 (parse_expression_for_completion): Change "name" to
11205 unique_xmalloc_ptr*.
11207 2018-02-21 Tom Tromey <tom@tromey.com>
11209 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11211 2018-02-21 Yao Qi <yao.qi@linaro.org>
11213 * avr-tdep.c (avr_read_pc): Change parameter type to
11215 * gdbarch.sh (read_pc): Likewise.
11216 * gdbarch.c: Re-generated.
11217 * gdbarch.h: Re-generated.
11218 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11220 * ia64-tdep.c (ia64_read_pc): Likewise.
11221 * mips-tdep.c (mips_read_pc): Likewise.
11222 * spu-tdep.c (spu_read_pc): Likewise.
11224 2018-02-21 Yao Qi <yao.qi@linaro.org>
11226 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11227 * regcache-dump.c: New file.
11228 * regcache.c: Move register_dump to regcache-dump.c.
11229 (maintenance_print_registers): Likewise.
11230 (maintenance_print_raw_registers): Likewise.
11231 (maintenance_print_cooked_registers): Likewise.
11232 (maintenance_print_register_groups): Likewise.
11233 (maintenance_print_remote_registers): Likewise.
11234 (_initialize_regcache): Likewise.
11235 * regcache.h (register_dump): Moved from regcache.c.
11237 2018-02-21 Yao Qi <yao.qi@linaro.org>
11239 * regcache.c (regcache::regcache): Update.
11240 (regcache::invalidate): Move it to detached_regcache::invalidate.
11241 (get_thread_arch_aspace_regcache): Update.
11242 (regcache::raw_update): Update.
11243 (regcache::cooked_read): Remove some code.
11244 (regcache::cooked_read_value): Likewise.
11245 (regcache::raw_write): Remove assert on m_readonly_p.
11246 (regcache::raw_supply_integer): Move it to
11247 detached_regcache::raw_supply_integer.
11248 (regcache::raw_supply_zeroed): Likewise.
11249 * regcache.h (detached_regcache) <raw_supply_integer>: New
11251 <raw_supply_zeroed, invalidate>: Likewise.
11252 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11253 <invalidate>: Likewise.
11254 <m_readonly_p>: Removed.
11256 2018-02-21 Yao Qi <yao.qi@linaro.org>
11258 * infcmd.c (get_return_value): Let stop_regs point to
11259 get_current_regcache.
11260 * regcache.c (regcache::regcache): Remove.
11261 (register_dump_reg_buffer): New class.
11262 (regcache_print): Adjust.
11263 * regcache.h (regcache): Remove constructors.
11265 2018-02-21 Yao Qi <yao.qi@linaro.org>
11267 * regcache.c (class register_dump): New class.
11268 (register_dump_regcache, register_dump_none): New class.
11269 (register_dump_remote, register_dump_groups): New class.
11270 (regcache_print): Update.
11271 * regcache.h (regcache_dump_what): Move it to regcache.c.
11272 (regcache) <dump>: Remove.
11274 2018-02-21 Yao Qi <yao.qi@linaro.org>
11276 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11278 (jit_unwind_reg_set_impl): Call raw_supply.
11279 (jit_frame_sniffer): Use reg_buffer_rw.
11280 * record-full.c (record_full_core_regbuf): Change its type.
11281 (record_full_core_open_1): Use reg_buffer_rw.
11282 (record_full_close): Likewise.
11283 (record_full_core_fetch_registers): Use regcache->raw_supply.
11284 (record_full_core_store_registers): Likewise.
11285 * regcache.c (regcache::get_register_status): Move it to
11287 (regcache_raw_set_cached_value): Remove.
11288 (regcache::raw_set_cached_value): Remove.
11289 (regcache::raw_write): Call raw_supply.
11290 (regcache::raw_supply): Move it to reg_buffer_rw.
11291 * regcache.h (regcache_raw_set_cached_value): Remove.
11292 (reg_buffer_rw): New class.
11294 2018-02-21 Yao Qi <yao.qi@linaro.org>
11296 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11297 readonly_detached_regcache.
11298 (dummy_frame_prev_register): Use regcache->cooked_read.
11299 * frame.c (frame_save_as_regcache): Change return type.
11300 (frame_pop): Update.
11301 * frame.h (frame_save_as_regcache): Update declaration.
11302 * inferior.h (get_infcall_suspend_state_regcache): Update
11304 * infrun.c (infcall_suspend_state) <registers>: use
11305 readonly_detached_regcache.
11306 (save_infcall_suspend_state): Don't use regcache_dup.
11307 (get_infcall_suspend_state_regcache): Change return type.
11308 * linux-fork.c (struct fork_info) <savedregs>: Change to
11309 readonly_detached_regcache.
11311 (fork_save_infrun_state): Don't use regcache_dup.
11312 (info_checkpoints_command): Adjust.
11313 * mi/mi-main.c (register_changed_p): Update declaration.
11314 (mi_cmd_data_list_changed_registers): Use
11315 readonly_detached_regcache.
11316 (register_changed_p): Change parameter type to
11317 readonly_detached_regcache.
11318 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11319 readonly_detached_regcache.
11320 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11321 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11323 (regcache::save): Move it to reg_buffer.
11324 (regcache::restore): Change parameter type.
11325 (regcache_dup): Remove.
11326 * regcache.h (reg_buffer) <save>: New method.
11327 (readonly_detached_regcache): New class.
11328 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11329 readonly_detached_regcache.
11330 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11332 2018-02-21 Yao Qi <yao.qi@linaro.org>
11334 * frame.c (frame_save_as_regcache): Use regcache method save.
11335 (frame_pop): Use regcache method restore.
11336 * infrun.c (restore_infcall_suspend_state): Likewise.
11337 * linux-fork.c (fork_load_infrun_state): Likewise.
11338 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11340 * regcache.c (regcache_save): Remove.
11341 (regcache::restore): More asserts.
11342 (regcache_cpy): Remove.
11343 * regcache.h (regcache_save): Remove the declaration.
11344 (regcache::restore): Move from private to public.
11345 Remove the friend declaration of regcache_cpy.
11346 (regcache_cpy): Remove declaration.
11348 2018-02-21 Yao Qi <yao.qi@linaro.org>
11350 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11351 parameter type to 'readable_regcache *'.
11352 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11353 * arm-tdep.c (arm_neon_quad_read): Likewise.
11354 (arm_pseudo_read): Likewise.
11355 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11356 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11357 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11358 * gdbarch.c: Re-generated.
11359 * gdbarch.h: Re-generated.
11360 * gdbarch.sh (pseudo_register_read): Change parameter type to
11361 'readable_regcache *'.
11362 (pseudo_register_read_value): Likewise.
11363 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11364 (h8300_pseudo_register_read): Likewise.
11365 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11366 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11367 (i386_pseudo_register_read_into_value): Likewise.
11368 (i386_pseudo_register_read_value): Likewise.
11369 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11371 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11372 * m32c-tdep.c (m32c_raw_read): Likewise.
11373 (m32c_read_flg): Likewise.
11374 (m32c_banked_register): Likewise.
11375 (m32c_banked_read): Likewise.
11376 (m32c_sb_read): Likewise.
11377 (m32c_part_read): Likewise.
11378 (m32c_cat_read): Likewise.
11379 (m32c_r3r2r1r0_read): Likewise.
11380 (m32c_pseudo_register_read): Likewise.
11381 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11382 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11383 (mep_pseudo_cr64_read): Likewise.
11384 (mep_pseudo_register_read): Likewise.
11385 * mips-tdep.c (mips_pseudo_register_read): Likewise.
11386 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11387 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11388 * regcache.c (regcache::raw_read): Move it to readable_regcache.
11389 (regcache::cooked_read): Likewise.
11390 (regcache::cooked_read_value): Likewise.
11391 (regcache_cooked_read_signed):
11392 (regcache::cooked_read): Likewise.
11393 * regcache.h (readable_regcache): New class.
11394 (regcache): Inherit readable_regcache. Move some methods to
11396 * rl78-tdep.c (rl78_pseudo_register_read): Change
11397 parameter type to 'readable_regcache *'.
11398 * rs6000-tdep.c (do_regcache_raw_read): Remove.
11399 (e500_pseudo_register_read): Change parameter type to
11400 'readable_regcache *'.
11401 (dfp_pseudo_register_read): Likewise.
11402 (vsx_pseudo_register_read): Likewise.
11403 (efpr_pseudo_register_read): Likewise.
11404 * s390-tdep.c (s390_pseudo_register_read): Likewise.
11405 * sh-tdep.c (sh_pseudo_register_read): Likewise.
11406 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
11407 (sh64_pseudo_register_read): Likewise.
11408 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11409 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11410 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11411 (spu_pseudo_register_read): Likewise.
11412 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11413 (xtensa_pseudo_register_read): Likewise.
11415 2018-02-21 Yao Qi <yao.qi@linaro.org>
11417 * regcache.c (regcache::regcache): Call reg_buffer ctor.
11418 (regcache::arch): Move it to reg_buffer::arch.
11419 (regcache::register_buffer): Likewise.
11420 (regcache::assert_regnum): Likewise.
11421 (regcache::num_raw_registers): Likewise.
11422 * regcache.h (reg_buffer): New class.
11423 (regcache): Inherit reg_buffer.
11425 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
11427 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
11428 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
11430 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
11432 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
11434 2018-02-19 Alan Hayward <alan.hayward@arm.com>
11436 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
11437 (SFILES): Remove common/*.c files.
11438 (COMMON_OBS): Remove some *.o files built from common/*.c files.
11439 * common/common.host: Add common reference.
11440 * configure.ac: Likewise.
11441 * configure: Regenerate.
11443 2018-02-16 Yao Qi <yao.qi@linaro.org>
11445 * block.c (block_namespace_info): Inherit allocate_on_obstack.
11446 (block_initialize_namespace): Use new.
11447 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
11448 (dwarf2_free_objfile): Use delete.
11449 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11450 (copy_type_recursive): Use new.
11451 * gdb_obstack.h (allocate_on_obstack): New.
11453 2018-02-15 Yao Qi <yao.qi@linaro.org>
11456 * inferior.c (exit_inferior_1): Reset inf->control.
11458 2018-02-15 Joel Brobecker <brobecker@adacore.com>
11460 * ada-lang.c (ada_to_fixed_value_create): Delete advance
11463 2018-02-14 Pedro Alves <palves@redhat.com>
11465 * frame-unwind.c (frame_unwind_try_unwinder): Always call
11466 frame_cleanup_after_sniffer on exception.
11468 2018-02-14 Tom Tromey <tom@tromey.com>
11470 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
11472 (solib_bfd_open): Make pathname const.
11473 * solib.c (solib_bfd_open): Make pathname const.
11474 * solib-spu.c (spu_bfd_fopen): Make name const.
11475 (spu_bfd_open): Make pathname const.
11476 * solib-darwin.c (darwin_bfd_open): Make pathname const.
11477 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
11479 2018-02-14 Tom Tromey <tom@tromey.com>
11481 * symfile.c (symfile_bfd_open): Update.
11482 * source.h (openp, source_full_path_of, find_and_open_source):
11483 Change argument type to unique_xmalloc_ptr.
11484 * source.c (openp): Take a unique_xmalloc_ptr.
11485 (source_full_path_of, find_and_open_source): Likewise.
11486 (open_source_file, symtab_to_fullname): Update.
11487 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
11488 unique_xmalloc_ptr.
11489 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
11490 (exec_file_find): Update.
11491 * psymtab.c (psymtab_to_fullname): Update.
11492 * nto-tdep.h (nto_find_and_open_solib): Update.
11493 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
11494 unique_xmalloc_ptr.
11495 * exec.c (exec_file_attach): Update.
11496 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
11497 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
11499 2018-02-14 Tom Tromey <tom@tromey.com>
11501 * solib.c: Include source.h.
11502 * nto-tdep.c: Include source.h.
11503 * mi/mi-cmd-env.c: Include source.h.
11504 * infcmd.c: Include source.h.
11505 * exec.c: Include source.h.
11506 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
11507 (add_path, directory_switch, source_path, init_source_path): Move
11509 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
11510 (add_path, directory_switch, source_path, init_source_path):
11513 2018-02-14 Tom Tromey <tom@tromey.com>
11515 * solist.h (exec_file_find, solib_find): Return
11516 unique_xmalloc_ptr.
11517 (solib_bfd_fopen): Take a const char *.
11518 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
11519 (exec_file_find, solib_find): Likewise.
11520 (solib_bfd_fopen): Do not take ownership of "pathname".
11521 (solib_bfd_open): Use unique_xmalloc_ptr.
11522 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
11523 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
11524 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
11525 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
11527 2018-02-14 Joel Brobecker <brobecker@adacore.com>
11529 * ada-lang.c (name_match_type_from_name): Remove reference to
11530 ada_name_for_lookup in function's documentation.
11531 * ada-lang.h (ada_name_for_lookup): Delete declaration.
11533 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11535 * defs.h (enum openp_flags): New enum.
11536 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
11537 Move to enum openp_flags.
11538 (openp_flags): New enum flags.
11539 (openp): Change parameter type to openp_flags.
11540 * source.c (openp): Change parameter type to openp_flags.
11541 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
11542 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
11544 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11546 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
11549 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
11551 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
11553 (class dwarf2_queue_guard): ...the destructor of this new class.
11554 (dw2_do_instantiate_symtab): Create instance of the new class
11555 dwarf2_queue_guard, remove cleanup.
11557 2018-02-09 Tom Tromey <tom@tromey.com>
11559 * source.c (find_source_lines): Don't reference past the end of
11562 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11564 * remote.c (remote_btrace_maybe_reopen): Change error message.
11565 * btrace.c (btrace_enable): Likewise.
11566 (parse_xml_btrace): Likewise.
11567 (parse_xml_btrace_conf): Likewise.
11569 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11571 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
11572 (linux_enable_pt, linux_enable_bts): Call
11573 diagnose_perf_event_open_fail.
11575 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11577 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
11578 Remove parameter and change return type. Update callers. Move it.
11579 (linux_enable_bts, linux_enable_pt): Improve error message.
11580 (linux_enable_pt): Remove zero buffer size check.
11581 (linux_enable_btrace): Improve error messages. Remove NULL return
11584 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11586 * btrace.c (btrace_enable): Remove target_supports_btrace call.
11587 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
11588 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
11589 (linux_supports_pt, linux_supports_btrace): Remove.
11590 (linux_enable_bts): Call cpu_supports_bts.
11591 * nat/linux-btrace.h (linux_supports_btrace): Remove.
11592 * remote.c (remote_supports_btrace): Remove.
11593 (init_remote_ops): Remove remote_supports_btrace.
11594 * target-delegates.c: Regenerated.
11595 * target.c (target_supports_btrace): Remove.
11596 * target.h (target_ops) <to_supports_btrace>: Remove
11597 (target_supports_btrace): Remove.
11598 * x86-linux-nat.c (x86_linux_create_target): Remove
11599 linux_supports_btrace.
11601 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11603 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
11605 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
11606 exception and use message in own exception.
11608 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11610 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
11611 (perf_event_pt_event_type): Use gdb_file_up.
11612 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
11613 scoped_fd, and scoped_mmap.
11615 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11617 * common/scoped_mmap.h: New.
11618 * unittests/scoped_mmap-selftest.c: New.
11619 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11620 unittests/scoped_mmap-selftest.c.
11622 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11624 * common/scoped_fd.h: New.
11625 * unittests/scoped_fd-selftest.c: New.
11626 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11627 unittests/scoped_fd-selftest.c.
11629 2018-02-09 Tom Tromey <tom@tromey.com>
11631 * auto-load.c (auto_load_section_scripts): Use
11632 gdb::unique_xmalloc_ptr.
11634 2018-02-09 Tom Tromey <tom@tromey.com>
11636 * auto-load.c (execute_script_contents): Use std::string.
11638 2018-02-09 Joel Brobecker <brobecker@adacore.com>
11640 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
11641 Python function, rather than a new command.
11643 2018-02-08 Tom Tromey <tom@tromey.com>
11645 * solib.c (solib_find_1): Use std::string.
11646 (solib_bfd_fopen): Use unique_xmalloc_ptr.
11648 2018-02-08 Tom Tromey <tom@tromey.com>
11650 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
11652 2018-02-08 Tom Tromey <tom@tromey.com>
11654 * source.c (find_source_lines): Use gdb::def_vector.
11656 2018-02-08 Tom Tromey <tom@tromey.com>
11658 * macrocmd.c (struct temporary_macro_definition): New.
11659 (macro_define_command): Use temporary_macro_definition. Remove
11661 (free_macro_definition_ptr): Remove.
11663 2018-02-08 Tom Tromey <tom@tromey.com>
11665 * macroexp.c (maybe_expand): Use std::string.
11667 2018-02-08 Tom Tromey <tom@tromey.com>
11669 * macroexp.c (struct macro_buffer): Add initializers for some
11671 (init_buffer, init_shared_buffer, free_buffer)
11672 (free_buffer_return_text): Remove.
11673 (macro_buffer): New constructors.
11674 (~macro_buffer): New destructor.
11675 (macro_buffer::set_shared): New method.
11676 (macro_buffer::resize_buffer, macro_buffer::appendc)
11677 (macro_buffer::appendmem): Now methods, not free functions.
11678 (set_token, append_tokens_without_splicing, stringify)
11679 (macro_stringify): Update.
11680 (gather_arguments): Change return type. Remove argc_p argument,
11681 add args_ptr argument. Use std::vector.
11682 (substitute_args): Remove argc argument. Accept std::vector.
11683 (expand): Update. Use std::vector.
11684 (scan, macro_expand, macro_expand_next): Update.
11686 2018-02-08 Tom Tromey <tom@tromey.com>
11688 * symtab.c (default_collect_symbol_completion_matches_break_on):
11689 Use unique_xmalloc_ptr.
11690 * macroscope.h: (sal_macro_scope, user_macro_scope)
11691 (default_macro_scope): Return unique_xmalloc_ptr.
11692 * macroscope.c (sal_macro_scope, user_macro_scope)
11693 (default_macro_scope): Return unique_xmalloc_ptr.
11694 * macroexp.h (macro_expand, macro_expand_once): Return
11695 unique_xmalloc_ptr.
11696 * macroexp.c (macro_expand, macro_expand_once): Return
11697 unique_xmalloc_ptr.
11698 * macrocmd.c (macro_expand_command, macro_expand_once_command)
11699 (info_macro_command, info_macros_command): Use
11700 unique_xmalloc_ptr.
11701 * compile/compile-c-support.c (write_macro_definitions): Use
11702 unique_xmalloc_ptr.
11703 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
11705 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
11707 * value.c (value_static_field): Assign field type instead of
11708 containing type when returning an optimized out value.
11710 2018-02-06 Yao Qi <yao.qi@linaro.org>
11712 * ft32-tdep.c (ft32_read_pc): Remove.
11713 (ft32_write_pc): Remove.
11714 (ft32_gdbarch_init): Update.
11715 * m32r-tdep.c (m32r_read_pc): Remove.
11716 (m32r_gdbarch_init): Update.
11717 * mep-tdep.c (mep_read_pc): Remove.
11718 (mep_gdbarch_init): Update.
11719 * microblaze-tdep.c (microblaze_write_pc): Remove.
11720 (microblaze_gdbarch_init): Update.
11721 * mn10300-tdep.c (mn10300_read_pc): Remove.
11722 (mn10300_write_pc): Remove.
11723 (mn10300_gdbarch_init): Update.
11724 * moxie-tdep.c (moxie_read_pc): Remove.
11725 (moxie_write_pc): Remove.
11726 (moxie_gdbarch_init): Update.
11728 2018-02-06 Yao Qi <yao.qi@linaro.org>
11730 * expprint.c (print_subexp_standard): Handle
11731 OP_F77_UNDETERMINED_ARGLIST.
11732 (dump_subexp_body_standard): Likewise.
11734 2018-02-05 Alan Hayward <alan.hayward@arm.com>
11736 * target-descriptions.c (tdesc_element_visitor) Add empty
11738 (tdesc_type): Move make_gdb_type from here.
11739 (tdesc_type_builtin): Likewise.
11740 (tdesc_type_vector): Likewise.
11741 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
11742 (make_gdb_type_struct): Move from tdesc_type_with_fields.
11743 (make_gdb_type_union): Likewise.
11744 (make_gdb_type_flags): Likewise.
11745 (make_gdb_type_enum): Likewise.
11746 (make_gdb_type): New function.
11747 (tdesc_register_type): Use static make_gdb_type.
11749 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
11751 * infcmd.c (default_print_one_register_info): Align natural-format
11752 column values consistently one under another.
11753 (pad_to_column): New function.
11755 2018-02-05 Joel Brobecker <brobecker@adacore.com>
11757 * dwarf2read.c (dwarf2_physname): Move commment.
11759 2018-02-01 Leszek Swirski <leszeks@google.com>
11761 * varobj.c (varobj_formatted_print_options): Allow recursive
11762 pretty printing if pretty printing is enabled.
11764 2018-02-01 Leszek Swirski <leszeks@google.com>
11766 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
11767 names after a structop as a filename.
11769 2018-02-01 Yao Qi <yao.qi@linaro.org>
11771 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
11772 (arm_record_coproc_data_proc): Likewise.
11774 2018-02-01 Yao Qi <yao.qi@linaro.org>
11776 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
11778 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
11780 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
11781 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
11783 2018-01-31 Pedro Alves <palves@redhat.com>
11785 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
11786 * inflow.c (child_terminal_save_inferior): Wrap reference to
11787 tcgetpgrp in HAVE_TERMIOS_H.
11788 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
11790 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
11791 always iterate over all inferiors.
11792 (gdbsim_cntrl_c): Adjust.
11793 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
11795 2018-01-31 Joel Brobecker <brobecker@adacore.com>
11797 * gdbtypes.c (lookup_array_range_type): Make sure the array's
11798 index type is objfile-owned if the element type is as well.
11800 2018-01-31 Joel Brobecker <brobecker@adacore.com>
11804 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
11806 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
11807 "features/s390x-linux64.c".
11808 (_initialize_s390_linux_tdep): Remove initialization of tdescs
11809 s390_linux32 and s390x_linux64.
11810 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
11812 * s390-tdep.c: Include "features/s390-linux32.c" and
11813 "features/s390x-linux64.c".
11814 (s390_tdesc_valid): Add check for tdesc_has_registers.
11815 (s390_gdbarch_init): Make sure there is always a valid tdesc.
11816 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
11817 tdesc_s390x_linux64.
11818 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
11819 tdesc_s390x_linux64 to...
11820 * s390-tdep.h: ...here.
11822 2018-01-30 Pedro Alves <palves@redhat.com>
11825 * config.in, configure: Regenerate.
11826 * configure.ac: Check for getpgid.
11827 * go32-nat.c (go32_pass_ctrlc): New.
11828 (go32_target): Install it.
11829 * inf-child.c (inf_child_target): Install
11830 child_terminal_save_inferior, child_pass_ctrlc and
11832 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
11833 (inf_ptrace_target): No longer install it.
11834 * infcmd.c (interrupt_target_1): Adjust.
11835 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
11836 (child_interrupt): Declare.
11837 (inferior::terminal_state): New.
11838 * inflow.c (struct terminal_info): Update comments.
11839 (inferior_process_group): Delete.
11840 (terminal_is_ours): Delete.
11841 (gdb_tty_state): New.
11842 (child_terminal_init): Adjust.
11843 (is_gdb_terminal, sharing_input_terminal_1)
11844 (sharing_input_terminal): New functions.
11845 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
11846 Set the process's actual process group in the foreground if
11847 possible. Handle is_ours_for_output/is_ours distinction. Don't
11848 mark terminal as the inferior's if not sharing GDB's terminal.
11849 Don't check attach_flag.
11850 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
11851 pass down a target_terminal_state.
11852 (child_terminal_save_inferior): New, factored out from ...
11853 (child_terminal_ours_1): ... this. Handle
11854 target_terminal_state::is_ours_for_output.
11855 (child_interrupt, child_pass_ctrlc): New.
11856 (inflow_inferior_exit): Clear the inferior's terminal_state.
11857 (copy_terminal_info): Copy the inferior's terminal state.
11858 (_initialize_inflow): Remove reference to terminal_is_ours.
11859 * inflow.h (inferior_process_group): Delete.
11860 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
11861 * procfs.c (procfs_target): Don't install procfs_interrupt.
11862 (procfs_interrupt): Delete.
11863 * remote.c (remote_serial_quit_handler): Adjust.
11864 (remote_interrupt): Remove ptid parameter. Adjust.
11865 * target-delegates.c: Regenerate.
11866 * target.c: Include "terminal.h".
11867 (target_terminal::terminal_state): Rename to ...
11868 (target_terminal::m_terminal_state): ... this.
11869 (target_terminal::init): Adjust.
11870 (target_terminal::inferior): Adjust to per-inferior
11872 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
11873 (target_terminal::ours, target_terminal::ours_for_output): Use
11874 target_terminal_is_ours_kind.
11875 (target_interrupt): Remove ptid parameter. Adjust.
11876 (default_target_pass_ctrlc): Adjust.
11877 * target.h (target_ops::to_terminal_save_inferior): New field.
11878 (target_ops::to_interrupt): Remove ptid_t parameter.
11879 (target_interrupt): Remove ptid_t parameter. Update comment.
11880 (target_pass_ctrlc): Update comment.
11881 * target/target.h (target_terminal_state): New scoped enum,
11882 factored out of ...
11883 (target_terminal::terminal_state): ... here.
11884 (target_terminal::inferior): Update comments.
11885 (target_terminal::restore_inferior): New.
11886 (target_terminal::is_inferior, target_terminal::is_ours)
11887 (target_terminal::is_ours_for_output): Adjust.
11888 (target_terminal::scoped_restore_terminal_state): Adjust to
11889 rename, and call restore_inferior() instead of inferior().
11890 (target_terminal::scoped_restore_terminal_state::m_state): Change
11892 (target_terminal::terminal_state): Rename to ...
11893 (target_terminal::m_terminal_state): ... this and change type.
11895 2018-01-30 Pedro Alves <palves@redhat.com>
11897 * linux-nat.c (wait_for_signal): New function.
11898 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
11900 (async_terminal_is_ours)
11901 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
11902 (linux_nat_add_target): Don't override
11903 to_terminal_inferior/to_terminal_ours.
11905 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
11907 * remote.c (remote_follow_fork): Don't call "detach_inferior".
11909 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
11911 * dwarf2read.c (free_dwo_files): Add forward-declaration.
11912 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
11913 dwarf2_per_objfile_free here.
11914 (dwarf2_per_objfile_free): Remove.
11915 (_initialize_dwarf2_read): Don't register
11916 dwarf2_per_objfile_free as a registry cleanup.
11918 2018-01-27 Eli Zaretskii <eliz@gnu.org>
11920 Avoid compilation errors in MinGW native builds
11922 The error is triggered by including python-internal.h, and the
11925 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
11926 from build-gnulib/import/math.h:27,
11927 from d:/usr/Python26/include/pyport.h:235,
11928 from d:/usr/Python26/include/Python.h:58,
11929 from python/python-internal.h:94,
11930 from python/py-arch.c:24:
11931 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
11935 This happens because Python headers define 'hypot' to expand t
11936 '_hypot' in the Windows builds.
11937 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
11938 'hypoth'. This avoids a compilation error.
11940 2018-01-26 Alan Hayward <alan.hayward@arm.com>
11942 * MAINTAINERS (Write After Approval): Fix ordering.
11944 2018-01-26 Alan Hayward <alan.hayward@arm.com>
11946 * MAINTAINERS (Write After Approval): Add Alan Hayward.
11948 2018-01-26 Alan Modra <amodra@gmail.com>
11950 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
11951 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
11952 Remove nop. Make const. Comment.
11953 (powerpc32_plt_stub_so_2): New.
11954 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
11955 Correct count. Update uses.
11956 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
11957 Move common code reading PLT entry word. Correct
11958 powerpc32_plt_stub PLT address calculation.
11959 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
11960 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
11961 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
11962 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
11963 (ppc64_standard_linkage8): Likewise.
11964 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
11965 Correct insns description.
11966 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
11968 2018-01-24 Pedro Alves <palves@redhat.com>
11970 GCC PR libstdc++/83906
11971 * gdbtypes.c (operator==(const dynamic_prop &,
11972 const dynamic_prop &)): New.
11973 (operator==(const range_bounds &, const range_bounds &)): New.
11974 (check_types_equal): Use them instead of memcmp.
11975 * gdbtypes.h (operator==(const dynamic_prop &,
11976 const dynamic_prop &)): Declare.
11977 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
11978 (operator==(const range_bounds &, const range_bounds &)): Declare.
11979 (operator!=(const range_bounds &, const range_bounds &)): Declare.
11981 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11983 * s390-linux-tdep.c (s390_record_address_mask)
11984 (s390_record_calc_disp_common, s390_record_calc_disp)
11985 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
11986 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
11987 (s390_process_record): Move to s390-tdep.c.
11988 (s390_linux_init_abi_any): Adjust.
11989 * s390-tdep.c (s390_record_address_mask)
11990 (s390_record_calc_disp_common, s390_record_calc_disp)
11991 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
11992 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
11993 (s390_process_record): Moved from s390-linux-tdep.c
11994 (s390_gdbarch_init): Adjust.
11996 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11998 * s390-linux-nat.c (s390-tdep.h): New include.
11999 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12000 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12001 (ALLDEPFILES): Add s390-tdep.c.
12002 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12003 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12004 * s390-tdep.h: ...this. New file.
12005 * s390-linux-tdep.c (s390-tdep.h): New include.
12006 (_initialize_s390_tdep): Rename to...
12007 (_initialize_s390_linux_tdep): ...this and adjust.
12008 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12009 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12011 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12012 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12013 (s390_is_partial_instruction, s390_software_single_step)
12014 (is_non_branch_ril, s390_displaced_step_copy_insn)
12015 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12016 (s390_prologue_data, s390_addr, s390_store, s390_load)
12017 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12018 (s390_register_call_saved, s390_guess_tracepoint_registers)
12019 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12020 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12021 (s390_pseudo_register_name, s390_pseudo_register_type)
12022 (s390_pseudo_register_read, s390_pseudo_register_write)
12023 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12024 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12025 (s390_addr_bits_remove, s390_address_class_type_flags)
12026 (s390_address_class_type_flags_to_name)
12027 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12028 (s390_function_arg_float, s390_function_arg_vector)
12029 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12030 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12031 (s390_frame_align, s390_register_return_value, s390_return_value)
12032 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12033 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12034 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12035 (s390_trad_frame_prev_register, s390_unwind_cache)
12036 (s390_prologue_frame_unwind_cache)
12037 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12038 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12039 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12040 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12041 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12042 (s390_frame_base_address, s390_local_base_address)
12043 (s390_frame_base, s390_gcc_target_options)
12044 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12045 (s390_validate_reg_range, s390_tdesc_valid)
12046 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12047 * s390-tdep.c: ...this. New file.
12049 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12051 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12052 (s390_process_record, s390_gdbarch_tdep_alloc)
12053 (s390_linux_init_abi_any): Use/set new hook.
12055 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12057 * s390-linux-tdep.c (osabi.h): New include.
12058 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12059 (s390_linux_init_abi_any): New functions.
12060 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12062 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12064 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12065 tdesc_has_registers check
12067 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12069 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12070 (s390_validate_reg_range): New macro.
12071 (s390_gdbarch_init): Adjust.
12073 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12075 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12076 (s390_gdbarch_tdep_alloc): Adjust.
12077 (s390_gdbarch_init): Adjust.
12079 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12081 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12082 <have_tdb>: Change type to bool.
12083 (s390_gdbarch_tdep_alloc): Adjust.
12084 (s390_gdbarch_init): Adjust.
12086 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12088 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12089 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12090 (s390_gdbarch_tdep_alloc): New function.
12091 (s390_gdbarch_init): Allocate tdep at start and use its fields
12092 instead of separate variables.
12094 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12096 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12097 when looking for cached gdbarch and add comment for remaining.
12099 2018-01-22 Pedro Alves <palves@redhat.com>
12100 Sergio Durigan Junior <sergiodj@redhat.com>
12102 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12105 2018-01-22 Maciej W. Rozycki <macro@mips.com>
12107 * MAINTAINERS: Update my company e-mail address.
12109 2018-01-22 Yao Qi <yao.qi@linaro.org>
12111 * regcache.c (cooked_write_test): New function.
12112 (_initialize_regcache): Register the test.
12114 2018-01-22 Yao Qi <yao.qi@linaro.org>
12116 * ia64-tdep.c (ia64_pseudo_register_read): Call
12117 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12118 * m32c-tdep.c (m32c_cat_read): Likewise.
12119 (m32c_r3r2r1r0_read): Likewise.
12120 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12121 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12123 2018-01-22 Yao Qi <yao.qi@linaro.org>
12125 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12126 method raw_read instead of regcache_raw_read.
12127 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12128 * arm-tdep.c (arm_neon_quad_read): Likewise.
12129 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12130 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12131 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12132 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12133 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12134 (i386_pseudo_register_read_into_value): Likewise.
12135 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12136 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12137 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12138 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12139 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12140 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12141 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12142 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12143 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12145 2018-01-22 Yao Qi <yao.qi@linaro.org>
12147 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12148 * configure.tgt: Remove target mt.
12149 * mt-tdep.c: Remove.
12150 * regcache.c (cooked_read_test): Remove the check for mt.
12152 2018-01-22 Yao Qi <yao.qi@linaro.org>
12154 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12155 instead of gdbarch_pseudo_register_read_value.
12157 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12159 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12162 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12164 * linespec.c (create_sals_line_offset): Remove code that preserved
12165 the symtab_and_line's line number.
12167 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12169 * varobj.c (varobj_create): Don't set valid_block when creating a
12172 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12174 * varobj.c (varobj_create): Remove out of date comment.
12176 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12179 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12180 updating innermost block.
12181 * parse.c (innermost_block_tracker::update): Take extra type
12182 parameter, and check types match before updating innermost block.
12183 (write_dollar_variable): Update innermost block for registers.
12184 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12185 (innermost_block_tracker::innermost_block_tracker): Initialise
12187 (innermost_block_tracker::reset): Take type parameter.
12188 (innermost_block_tracker::update): Take type parameter, and pass
12189 type through as needed.
12190 (innermost_block_tracker::m_types): New member.
12191 * varobj.c (varobj_create): Pass type when reseting innermost
12194 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12196 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12197 * ada-lang.c (resolve_subexp): Likewise.
12198 * breakpoint.c (set_breakpoint_condition) Likewise.
12199 (watch_command_1) Likewise.
12200 * c-exp.y (variable): Likewise.
12201 * d-exp.y (PrimaryExpression): Likewise.
12202 * f-exp.y (variable): Likewise.
12203 * go-exp.y (variable): Likewise.
12204 * m2-exp.y (variable): Likewise.
12205 * objfiles.c (objfile::~objfile): Likewise.
12206 * p-exp.y (variable): Likewise.
12207 * parse.c (innermost_block): Change type.
12208 * parser-defs.h (class innermost_block_tracker): New.
12209 (innermost_block): Change to innermost_block_tracker.
12210 * printcmd.c (display_command): Switch to innermost_block API.
12211 (do_one_display): Likewise.
12212 * rust-exp.y (do_one_display): Likewise.
12213 * symfile.c (clear_symtab_users): Likewise.
12214 * varobj.c (varobj_create): Switch to innermost_block API, replace
12215 use of innermost_block with block stored on varobj object.
12217 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12219 * expression.h (innermost_block): Remove declaration.
12220 * varobj.c: Add 'parser-defs.h' include.
12222 2018-01-19 Tom Tromey <tom@tromey.com>
12224 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12225 symbols in the static and global blocks.
12227 2018-01-19 James Clarke <jrtc27@jrtc27.com>
12229 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12230 gdb_ptrace.h, and move including gdb_wait.h ...
12231 * nat/linux-ptrace.h: ... to here.
12233 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12235 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12236 inf_ptrace_detach_success.
12237 (inf_ptrace_detach_success): Add inferior parameter, use it
12238 instead of inferior_ptid, pass it to detach_inferior.
12239 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12241 * inferior.c (detach_inferior): Add overload that takes an
12243 * inferior.h (detach_inferior): Likewise.
12244 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12245 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12246 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12248 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12250 * target.h (struct target_ops) <to_detach>: Add inferior
12252 (target_detach): Likewise.
12253 * target.c (dispose_inferior): Pass inferior down.
12254 (target_detach): Pass inferior down. Assert that it is equal to
12255 the current inferior.
12256 * aix-thread.c (aix_thread_detach): Pass inferior down.
12257 * corefile.c (core_file_command): Pass current_inferior() down.
12258 * corelow.c (core_detach): Add inferior parameter.
12259 * darwin-nat.c (darwin_detach): Likewise.
12260 * gnu-nat.c (gnu_detach): Likewise.
12261 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12262 * infcmd.c (detach_command): Pass current_inferior() down to
12264 * infrun.c (follow_fork_inferior): Pass parent_inf to
12266 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12268 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12269 * linux-thread-db.c (thread_db_detach): Likewise.
12270 * nto-procfs.c (procfs_detach): Likewise.
12271 * procfs.c (procfs_detach): Likewise.
12272 * record.c (record_detach): Likewise.
12273 * record.h (struct inferior): Forward-declare.
12274 (record_detach): Add inferior parameter.
12275 * remote-sim.c (gdbsim_detach): Likewise.
12276 * remote.c (remote_detach_1): Likewise.
12277 (remote_detach): Likewise.
12278 (extended_remote_detach): Likewise.
12279 * sol-thread.c (sol_thread_detach): Likewise.
12280 * target-debug.h (target_debug_print_inferior_p): New macro.
12281 * target-delegates.c: Re-generate.
12282 * top.c (kill_or_detach): Pass inferior down to target_detach.
12283 * windows-nat.c (windows_detach): Add inferior parameter.
12285 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12287 * target.h (struct target_ops) <to_detach>: Remove args
12289 (target_detach): Likewise.
12290 * target.c (dispose_inferior): Adjust.
12291 (target_detach): Remove args parameter, adjust.
12292 * aix-thread.c (aix_thread_detach): Adjust.
12293 * corefile.c (core_file_command): Adjust.
12294 * corelow.c (core_detach): Adjust.
12295 * darwin-nat.c (darwin_detach): Adjust.
12296 * gnu-nat.c (gnu_detach): Adjust.
12297 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12298 * infcmd.c (detach_command): Adjust
12299 * infrun.c (follow_fork_inferior): Adjust.
12300 (handle_vfork_child_exec_or_exit): Adjust.
12301 * linux-fork.c (linux_fork_detach): Remove args parameter.
12302 * linux-fork.h (linux_fork_detach): Likewise.
12303 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12304 * linux-thread-db.c (thread_db_detach): Likewise.
12305 * nto-procfs.c (procfs_detach): Likewise.
12306 * procfs.c (procfs_detach): Likewise.
12307 (do_detach): Remove signo parameter.
12308 * record.c (record_detach): Remove args parameter.
12309 * record.h (record_detach): Likewise.
12310 * remote-sim.c (gdbsim_detach): Likewise.
12311 * remote.c (remote_detach_1): Likewise.
12312 (remote_detach): Likewise.
12313 (extended_remote_detach): Likewise.
12314 * sol-thread.c (sol_thread_detach): Likewise.
12315 * target-delegates.c: Re-generate.
12316 * top.c (struct qt_args) <args>: Remove field.
12317 (kill_or_detach): Don't pass args.
12318 (quit_force): Don't set args.
12319 * windows-nat.c (windows_detach): Remove args parameter.
12321 2018-01-19 Yao Qi <yao.qi@linaro.org>
12323 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12324 (arm_linux_init_abi): Install it.
12326 2018-01-19 Yao Qi <yao.qi@linaro.org>
12328 * osabi.c (gdb_osabi_names): Extend the regexp for
12329 arm-linux-gnueabihf.
12331 2018-01-18 Yao Qi <yao.qi@linaro.org>
12333 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12335 (abbrev_table::add_abbrev): Update.
12336 (abbrev_table::lookup_abbrev): Update.
12338 2018-01-18 Yao Qi <yao.qi@linaro.org>
12340 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12342 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12344 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12347 2018-01-17 Tom Tromey <tom@tromey.com>
12349 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12351 2018-01-17 Tom Tromey <tom@tromey.com>
12353 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12354 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12355 (create_array_type_with_stride): Update.
12356 * dwarf2read.c (set_die_type): Update.
12358 2018-01-17 Tom Tromey <tom@tromey.com>
12360 * dwarf2read.c (delayed_method_info): Remove typedef.
12361 (dwarf2_cu::method_info): Now a std::vector.
12362 (add_to_method_list): Update.
12363 (free_delayed_list): Remove.
12364 (compute_delayed_physnames): Update.
12365 (process_full_comp_unit, process_full_type_unit): Clear the method
12366 list. Remove cleanups.
12367 (psymtab_include_file_name): Add name_holder parameter. Use
12368 unique_xmalloc_ptr.
12369 (dwarf_decode_lines): Update.
12371 2018-01-17 Tom Tromey <tom@tromey.com>
12372 Simon Marchi <simon.marchi@ericsson.com>
12374 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12375 (dwarf2_per_objfile::free_cached_comp_units)
12376 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12377 (init_cutu_and_read_dies_no_follow): Update.
12378 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12379 (dwarf2_cu::~dwarf2_cu): New.
12380 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12381 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12383 2018-01-17 Tom Tromey <tom@tromey.com>
12384 Simon Marchi <simon.marchi@ericsson.com>
12386 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12387 (struct die_reader_specs) <abbrev_table>: New member.
12388 (struct abbrev_table): Add constructor.
12389 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12390 <abbrev_obstack>: Now an auto_obstack.
12391 (abbrev_table_up): New typedef.
12392 (init_cu_die_reader): Add abbrev_table parameter.
12393 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12394 Add result_dwo_abbrev_table.
12395 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12396 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12398 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12400 (skip_children): Update.
12401 (abbrev_table::alloc_abbrev): Rename from
12402 abbrev_table_alloc_abbrev.
12403 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
12404 (abbrev_table::lookup_abbrev): Rename from
12405 abbrev_table_lookup_abbrev.
12406 (abbrev_table_read_table): Return abbrev_table_up.
12407 (abbrev_table_free, abbrev_table_free_cleanup)
12408 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
12409 (load_partial_dies): Update.
12411 2018-01-17 Tom Tromey <tom@tromey.com>
12413 * dwarf2read.c (dwarf2_compute_name): Update comment.
12414 (read_func_scope, read_variable): Update.
12415 (new_symbol): Remove.
12416 (new_symbol_full): Rename to new_symbol.
12418 2018-01-17 Mike Gulick <mgulick@mathworks.com>
12421 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
12422 a warning instead of throwing an error, set section size to 0 and return
12424 * gdb_bfd.h (gdb_bfd_map_section): Update description.
12426 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12428 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
12430 (linux_ptrace_attach_fail_reason_string): Likewise.
12431 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
12433 (linux_ptrace_attach_fail_reason_string): Likewise.
12434 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
12436 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12438 * linux-nat.c (linux_nat_attach): Remove xstrdup.
12440 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
12443 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
12444 checking for fs_base/gs_base fields in struct user_regs_struct.
12445 * configure: Regenerate.
12447 2018-01-17 Yao Qi <yao.qi@linaro.org>
12449 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12451 (aarch64_linux_init_abi): Install it to gdbarch hook
12452 gcc_target_options.
12454 2018-01-15 Pedro Alves <palves@redhat.com>
12456 * common/signals-state-save-restore.c
12457 (save_original_signals_state): Fix typos.
12459 2017-01-12 Tom Tromey <tom@tromey.com>
12460 Sergio Durigan Junior <sergiodj@redhat.com>
12462 * Makefile.in (install-only): Install gdb-add-index.
12464 2018-01-12 John Baldwin <jhb@FreeBSD.org>
12466 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
12468 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12470 * infrun.c (keep_going_pass_signal): Clear step-over info when
12471 insert_breakpoints fails.
12473 2018-01-11 Pedro Alves <palves@redhat.com>
12476 * infrun.c (resume): Rename to ...
12477 (resume_1): ... this.
12478 (resume): Reimplement as wrapper around resume_1.
12480 2018-01-11 Pedro Alves <palves@redhat.com>
12483 * remote.c (remote_parse_stop_reply): Default to the last-set
12484 general thread instead of to 'magic_null_ptid'.
12486 2018-01-10 Pedro Alves <palves@redhat.com>
12488 * language.h (language_get_symbol_name_matcher): Rename ...
12489 (get_symbol_name_matcher): ... this.
12490 * language.c (language_get_symbol_name_matcher): Ditto.
12491 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
12494 2018-01-10 Pedro Alves <palves@redhat.com>
12498 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
12499 Adjust to use language_get_symbol_name_matcher instead of
12500 language_defn::la_get_symbol_name_matcher.
12501 * language.c (language_get_symbol_name_matcher): If in Ada mode
12502 and the lookup name is a verbatim match, return Ada's matcher.
12503 * language.h (language_get_symbol_name_matcher): Adjust comment.
12504 (ada_lookup_name_info::verbatim_p):: New method.
12506 2018-01-10 Pedro Alves <palves@redhat.com>
12509 * ada-lang.c (ada_collect_symbol_completion_matches): If the
12510 minsym's language is language_auto or language_cplus, pass down
12511 language_ada instead.
12512 * symtab.c (compare_symbol_name): Don't frob symbol language here.
12514 2018-01-10 Pedro Alves <palves@redhat.com>
12517 * minsyms.c (linkage_name_str): New function.
12518 (iterate_over_minimal_symbols): Use it.
12520 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12522 * NEWS: Document that 'info proc' now works on FreeBSD.
12524 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12526 * configure.ac: Check for kinfo_getfile in libutil.
12527 * configure: Regenerate.
12528 * config.in: Regenerate.
12529 * fbsd-nat.c: Include "fbsd-tdep.h".
12530 (fbsd_fetch_cmdline): New.
12531 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
12532 rather than calling error.
12533 (fbsd_info_proc): New.
12534 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
12535 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
12536 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
12538 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12540 * fbsd-nat.c (struct free_deleter): Remove.
12541 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
12543 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12545 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
12546 NULL for an empty pathname.
12548 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12550 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
12551 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
12552 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12553 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12554 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
12555 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
12556 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
12557 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
12558 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
12559 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
12560 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
12561 (fbsd_core_fetch_timeval, fbsd_print_sigset)
12562 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
12563 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
12564 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
12566 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
12568 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
12569 (gnu_xfer_auxv): New function.
12570 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
12571 TARGET_OBJECT_AUXV.
12573 2018-01-08 Yao Qi <yao.qi@linaro.org>
12574 Simon Marchi <simon.marchi@ericsson.com>
12576 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
12578 (COMMON_OBS): Remove selftest.o.
12579 * configure.ac: Append selftest-arch.c and common/selftest.c to
12580 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
12581 * configure: Re-generated.
12582 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
12584 (maintenance_info_selftests): Likewise.
12586 2018-01-08 Xavier Roirand <roirand@adacore.com>
12588 * ada-valprint.c (val_print_packed_array_elements): Use
12589 proper number of elements when printing an array indexed
12590 by an enumeration type.
12592 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12594 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
12595 (dw2_get_file_names_reader): Adjust.
12596 (lookup_dwo_signatured_type): Adjust.
12597 (lookup_dwp_signatured_type): Adjust.
12598 (lookup_signatured_type): Adjust.
12599 (create_type_unit_group): Adjust.
12600 (get_type_unit_group): Adjust.
12601 (process_psymtab_comp_unit_reader): Adjust.
12602 (build_type_psymtabs_reader): Adjust.
12603 (scan_partial_symbols): Adjust.
12604 (add_partial_symbol): Adjust.
12605 (add_partial_subprogram): Adjust.
12606 (peek_die_abbrev): Adjust.
12607 (fixup_go_packaging): Adjust.
12608 (process_imported_unit_die): Adjust.
12609 (dwarf2_compute_name): Adjust.
12610 (dwarf2_physname): Adjust.
12611 (read_import_statement): Adjust.
12612 (handle_DW_AT_stmt_list): Adjust.
12613 (read_file_scope): Adjust.
12614 (read_func_scope): Adjust.
12615 (read_lexical_block_scope): Adjust.
12616 (read_call_site_scope): Adjust.
12617 (read_variable): Adjust.
12618 (dwarf2_rnglists_process): Adjust.
12619 (dwarf2_ranges_process): Adjust.
12620 (dwarf2_ranges_read): Adjust.
12621 (dwarf2_get_pc_bounds): Adjust.
12622 (dwarf2_record_block_ranges): Adjust.
12623 (dwarf2_add_field): Adjust.
12624 (dwarf2_add_member_fn): Adjust.
12625 (read_structure_type): Adjust.
12626 (process_structure_scope): Adjust.
12627 (read_enumeration_type): Adjust.
12628 (read_array_type): Adjust.
12629 (mark_common_block_symbol_computed): Adjust.
12630 (read_common_block): Adjust.
12631 (read_namespace_type): Adjust.
12632 (read_namespace): Adjust.
12633 (read_module_type): Adjust.
12634 (read_tag_pointer_type): Adjust.
12635 (read_tag_ptr_to_member_type): Adjust.
12636 (read_tag_string_type): Adjust.
12637 (read_subroutine_type): Adjust.
12638 (read_typedef): Adjust.
12639 (read_base_type): Adjust.
12640 (attr_to_dynamic_prop): Adjust.
12641 (read_subrange_type): Adjust.
12642 (read_unspecified_type): Adjust.
12643 (dwarf2_read_abbrevs): Adjust.
12644 (load_partial_dies): Adjust.
12645 (read_partial_die): Adjust.
12646 (find_partial_die): Adjust.
12647 (guess_partial_die_structure_name): Adjust.
12648 (fixup_partial_die): Adjust.
12649 (read_attribute_value): Adjust.
12650 (read_addr_index): Adjust.
12651 (read_addr_index_from_leb128): Adjust.
12652 (read_str_index): Adjust.
12653 (dwarf2_string_attr): Adjust.
12654 (get_debug_line_section): Adjust.
12655 (dwarf_decode_line_header): Adjust.
12656 (lnp_state_machine::check_line_address): Adjust.
12657 (dwarf_decode_lines_1): Adjust.
12658 (dwarf_decode_lines): Adjust.
12659 (dwarf2_start_symtab): Adjust.
12660 (var_decode_location): Adjust.
12661 (new_symbol_full): Adjust.
12662 (dwarf2_const_value_data): Adjust.
12663 (dwarf2_const_value_attr): Adjust.
12664 (dwarf2_const_value): Adjust.
12665 (die_type): Adjust.
12666 (die_containing_type): Adjust.
12667 (build_error_marker_type): Adjust.
12668 (lookup_die_type): Adjust.
12669 (guess_full_die_structure_name): Adjust.
12670 (anonymous_struct_prefix): Adjust.
12671 (determine_prefix): Adjust.
12672 (dwarf2_name): Adjust.
12673 (follow_die_ref_or_sig): Adjust.
12674 (follow_die_offset): Adjust.
12675 (follow_die_ref): Adjust.
12676 (follow_die_sig_1): Adjust.
12677 (follow_die_sig): Adjust.
12678 (get_signatured_type): Adjust.
12679 (get_DW_AT_signature_type): Adjust.
12680 (decode_locdesc): Adjust.
12681 (dwarf_decode_macros): Adjust.
12682 (cu_debug_loc_section): Adjust.
12683 (fill_in_loclist_baton): Adjust.
12684 (dwarf2_symbol_mark_computed): Adjust.
12685 (init_one_comp_unit): Don't assign
12686 dwarf2_cu::dwarf2_per_objfile.
12687 (set_die_type): Adjust.
12689 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12691 * dwarf2read.c (struct mapped_debug_names): Add constructor.
12692 <dwarf2_per_objfile>: New field.
12693 (dwarf2_per_objfile): Remove global.
12694 (get_dwarf2_per_objfile): New function.
12695 (set_dwarf2_per_objfile): New function.
12696 (dwarf2_build_psymtabs_hard): Change objfile parameter to
12697 dwarf2_per_objfile.
12698 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12699 (read_abbrev_offset): Likewise.
12700 (read_indirect_string): Likewise.
12701 (read_indirect_line_string): Likewise.
12702 (read_indirect_string_at_offset): Likewise.
12703 (read_indirect_string_from_dwz): Likewise.
12704 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12705 dwarf2_per_objfile.
12706 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12707 (create_all_comp_units): Change objfile parameter to
12708 dwarf2_per_objfile.
12709 (create_all_type_units): Likewise.
12710 (process_queue): Add dwarf2_per_objfile parameter.
12711 (read_and_check_comp_unit_head): Likewise.
12712 (lookup_dwo_unit_in_dwp): Likewise.
12713 (get_dwp_file): Likewise.
12714 (process_cu_includes): Likewise.
12715 (struct free_dwo_file_cleanup_data): New struct.
12716 (dwarf2_has_info): Use get_dwarf2_per_objfile and
12717 set_dwarf2_per_objfile.
12718 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
12719 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
12720 context, adjust calls.
12721 (dw2_instantiate_symtab): Likewise.
12722 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
12723 (dw2_get_cu): Likewise.
12724 (create_cu_from_index_list): Change objfile parameter to
12725 dwarf2_per_objfile.
12726 (create_cus_from_index_list): Get dwarf2_per_objfile from
12727 context, adjust calls.
12728 (create_cus_from_index): Likewise.
12729 (create_signatured_type_table_from_index): Change objfile
12730 parameter to dwarf2_per_objfile.
12731 (create_signatured_type_table_from_debug_names): Change objfile
12732 parameter to dwarf2_per_objfile.
12733 (create_addrmap_from_index): Likewise.
12734 (create_addrmap_from_aranges): Likewise.
12735 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
12736 (dw2_setup): Remove.
12737 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
12739 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
12740 get_dwarf2_per_objfile.
12741 (dw2_forget_cached_source_info): Likewise.
12742 (dw2_map_symtabs_matching_filename): Likewise.
12743 (struct dw2_symtab_iterator) <index>: Remove.
12744 <dwarf2_per_objfile>: New field.
12745 (dw2_symtab_iter_init): Replace index parameter with
12746 dwarf2_per_objfile.
12747 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
12748 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
12749 (dw2_print_stats): Likewise.
12750 (dw2_dump): Likewise.
12751 (dw2_expand_symtabs_for_function): Likewise.
12752 (dw2_expand_all_symtabs): Likewise.
12753 (dw2_expand_symtabs_with_fullname): Likewise.
12754 (dw2_expand_marked_cus): Replace index and objfile parameters
12755 with dwarf2_per_objfile.
12756 (dw_expand_symtabs_matching_file_matcher): Add
12757 dwarf2_per_objfile parameter and adjust calls.
12758 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
12760 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
12761 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
12763 (create_cus_from_debug_names_list): Replace objfile parameter
12764 with dwarf2_per_objfile and adjust calls.
12765 (create_cus_from_debug_names): Likewise.
12766 (dwarf2_read_debug_names): Likewise.
12767 (mapped_debug_names::namei_to_name): Adjust call.
12768 (dw2_debug_names_iterator::next): Likewise.
12769 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
12770 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
12771 (dw2_debug_names_dump): Likewise.
12772 (dw2_debug_names_expand_symtabs_for_function): Likewise.
12773 (dw2_debug_names_expand_symtabs_matching): Likewise.
12774 (dwarf2_initialize_objfile): Likewise.
12775 (dwarf2_build_psymtabs): Likewise.
12776 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
12778 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
12779 (read_and_check_comp_unit_head): Likewise.
12780 (read_abbrev_offset): Likewise.
12781 (create_debug_type_hash_table): Likewise.
12782 (create_debug_types_hash_table): Likewise.
12783 (create_all_type_units): Replace objfile parameter with
12784 dwarf2_per_objfile.
12785 (add_type_unit): Add dwarf2_per_objfile parameter.
12786 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
12787 with dwarf2_per_objfile.
12788 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
12789 (lookup_dwp_signatured_type): Likewise.
12790 (lookup_signatured_type): Likewise.
12791 (read_cutu_die_from_dwo): Likewise.
12792 (init_tu_and_read_dwo_dies): Likewise.
12793 (init_cutu_and_read_dies): Likewise.
12794 (init_cutu_and_read_dies_no_follow): Likewise.
12795 (allocate_type_unit_groups_table): Add objfile parameter.
12796 (create_type_unit_group): Use dwarf2_per_objfile from cu.
12797 (get_type_unit_group): Likewise.
12798 (process_psymtab_comp_unit): Update call.
12799 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
12800 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
12801 (print_tu_stats): Likewise.
12802 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
12803 in void* parameter.
12804 (build_type_psymtabs): Change objfile parameter to
12805 dwarf2_per_objfile.
12806 (process_skeletonless_type_unit): Use dwarf2_per_objfile
12807 passed in void* parameter.
12808 (process_skeletonless_type_units): Change objfile parameter to
12809 dwarf2_per_objfile.
12810 (set_partial_user): Likewise.
12811 (dwarf2_build_psymtabs_hard): Likewise.
12812 (read_comp_units_from_section): Likewise.
12813 (create_all_comp_units): Likewise.
12814 (scan_partial_symbols): Update calls.
12815 (add_partial_symbol): Likewise.
12816 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
12817 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
12818 (process_queue): Add dwarf2_per_objfile parameter.
12819 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
12820 (compute_compunit_symtab_includes): Likewise.
12821 (process_cu_includes): Add dwarf2_per_objfile parameter.
12822 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
12823 (process_full_type_unit): Likewise.
12824 (process_imported_unit_die): Update call.
12825 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
12826 (read_file_scope): Likewise.
12827 (allocate_dwo_file_hash_table): Add objfile parameter.
12828 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
12829 (create_cus_hash_table): Likewise.
12830 (create_dwp_hash_table): Likewise.
12831 (create_dwo_unit_in_dwp_v1): Likewise.
12832 (create_dwp_v2_section): Likewise.
12833 (create_dwo_unit_in_dwp_v2): Likewise.
12834 (lookup_dwo_unit_in_dwp): Likewise.
12835 (try_open_dwop_file): Likewise.
12836 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
12837 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
12838 cleanup to include a reference to dwarf2_per_objfile.
12839 (open_dwp_file): Add dwarf2_per_objfile parameter.
12840 (open_and_init_dwp_file): Likewise.
12841 (get_dwp_file): Likewise.
12842 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
12843 (queue_and_load_all_dwo_tus): Update call.
12844 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
12846 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
12847 (dwarf2_ranges_process): Likewise.
12848 (dwarf2_get_pc_bounds): Likewise.
12849 (mark_common_block_symbol_computed): Likewise.
12850 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12851 (dwarf2_read_abbrevs): Update call.
12852 (read_partial_die): Use dwarf2_per_objfile from cu.
12853 (find_partial_die): Likewise.
12854 (fixup_partial_die): Likewise.
12855 (read_attribute_value): Likewise.
12856 (read_indirect_string_at_offset_from): Add objfile parameter.
12857 (read_indirect_string_at_offset): Add dwarf2_per_objfile
12859 (read_indirect_string_from_dwz): Add objfile parameter.
12860 (read_indirect_string): Add objfile parameter.
12861 (read_addr_index_1): Add dwarf2_per_objfile parameter.
12862 (read_addr_index): Use dwarf2_per_objfile from cu.
12863 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
12865 (read_str_index): Use dwarf2_per_objfile from cu.
12866 (get_debug_line_section): Likewise.
12867 (read_formatted_entries): Add dwarf2_per_objfile parameter.
12868 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
12869 (new_symbol_full): Use dwarf2_per_objfile from cu.
12870 (build_error_marker_type): Likewise.
12871 (lookup_die_type): Likewise.
12872 (determine_prefix): Likewise.
12873 (follow_die_offset): Likewise.
12874 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
12875 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
12876 (dwarf2_fetch_die_type_sect_off): Likewise.
12877 (dwarf2_get_die_type): Likewise.
12878 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
12879 (get_signatured_type): Likewise.
12880 (get_DW_AT_signature_type): Likewise.
12881 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
12882 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
12883 (cu_debug_loc_section): Likewise.
12884 (fill_in_loclist_baton): Likewise.
12885 (dwarf2_symbol_mark_computed): Likewise.
12886 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12887 dwarf2_per_objfile.
12888 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
12890 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12891 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
12892 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
12893 (set_die_type): Use dwarf2_free_objfile from cu.
12894 (get_die_type_at_offset): Likewise.
12895 (dwarf2_per_objfile_free): Don't assign global variable.
12896 (debug_names) <constructor>: Add dwarf2_per_objfile
12897 parameter, update m_debugstrlookup construction.
12898 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
12900 <m_dwarf2_per_objfile>: New field.
12901 <lookup>: Use m_dwarf2_per_objfile.
12902 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
12903 (psyms_seen_size): Likewise.
12904 (write_gdbindex): Replace objfile parameter with
12905 dwarf2_per_objfile.
12906 (write_debug_names): Likewise.
12907 (write_psymtabs_to_index): Likewise.
12908 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
12911 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12913 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
12914 <dwarf2_per_objfile>: New field.
12915 (struct dwarf2_per_cu_data) <objfile>: Remove.
12916 <dwarf2_per_objfile>: New field.
12917 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
12919 (create_signatured_type_table_from_index): Likewise.
12920 (create_debug_type_hash_table): Likewise.
12921 (fill_in_sig_entry_from_dwo_entry): Likewise.
12922 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
12923 (create_type_unit_group): Assign dwarf2_per_objfile instead of
12925 (create_partial_symtab): Access objfile through
12926 dwarf2_per_objfile.
12927 (process_psymtab_comp_unit_reader): Likewise.
12928 (read_comp_units_from_section): Likewise.
12929 (scan_partial_symbols): Likewise.
12930 (add_partial_symbol): Likewise.
12931 (add_partial_subprogram): Likewise.
12932 (peek_die_abbrev): Likewise.
12933 (fixup_go_packaging): Likewise.
12934 (process_full_comp_unit): Likewise.
12935 (process_full_type_unit): Likewise.
12936 (process_imported_unit_die): Likewise.
12937 (dwarf2_compute_name): Likewise.
12938 (dwarf2_physname): Likewise.
12939 (read_import_statement): Likewise.
12940 (create_cus_hash_table): Assign dwarf2_physname instead of
12942 (read_func_scope): Access objfile through dwarf2_per_objfile.
12943 (read_lexical_block_scope): Likewise.
12944 (read_call_site_scope): Likewise.
12945 (read_variable): Likewise.
12946 (dwarf2_rnglists_process): Likewise.
12947 (dwarf2_ranges_process): Likewise.
12948 (dwarf2_ranges_read): Likewise.
12949 (dwarf2_record_block_ranges): Likewise.
12950 (dwarf2_add_field): Likewise.
12951 (dwarf2_add_member_fn): Likewise.
12952 (read_structure_type): Likewise.
12953 (process_structure_scope): Likewise.
12954 (read_enumeration_type): Likewise.
12955 (read_array_type): Likewise.
12956 (read_common_block): Likewise.
12957 (read_namespace_type): Likewise.
12958 (read_namespace): Likewise.
12959 (read_module_type): Likewise.
12960 (read_tag_pointer_type): Likewise.
12961 (read_tag_ptr_to_member_type): Likewise.
12962 (read_tag_string_type): Likewise.
12963 (read_subroutine_type): Likewise.
12964 (read_typedef): Likewise.
12965 (read_base_type): Likewise.
12966 (attr_to_dynamic_prop): Likewise.
12967 (read_subrange_type): Likewise.
12968 (read_unspecified_type): Likewise.
12969 (load_partial_dies): Likewise.
12970 (read_partial_die): Likewise.
12971 (find_partial_die): Likewise.
12972 (guess_partial_die_structure_name): Likewise.
12973 (fixup_partial_die): Likewise.
12974 (read_attribute_value): Likewise.
12975 (read_addr_index_from_leb128): Likewise.
12976 (dwarf2_read_addr_index): Likewise.
12977 (dwarf2_string_attr): Likewise.
12978 (lnp_state_machine::check_line_address): Likewise.
12979 (dwarf_decode_lines_1): Likewise.
12980 (dwarf_decode_lines): Likewise.
12981 (dwarf2_start_symtab): Likewise.
12982 (var_decode_location): Likewise.
12983 (new_symbol_full): Likewise.
12984 (dwarf2_const_value_data): Likewise.
12985 (dwarf2_const_value_attr): Likewise.
12986 (dwarf2_const_value): Likewise.
12987 (die_type): Likewise.
12988 (die_containing_type): Likewise.
12989 (lookup_die_type): Likewise.
12990 (guess_full_die_structure_name): Likewise.
12991 (anonymous_struct_prefix): Likewise.
12992 (dwarf2_name): Likewise.
12993 (follow_die_ref_or_sig): Likewise.
12994 (follow_die_offset): Likewise.
12995 (follow_die_ref): Likewise.
12996 (dwarf2_fetch_die_loc_sect_off): Likewise.
12997 (dwarf2_fetch_constant_bytes): Likewise.
12998 (dwarf2_fetch_die_type_sect_off): Likewise.
12999 (dwarf2_get_die_type): Likewise.
13000 (follow_die_sig): Likewise.
13001 (decode_locdesc): Likewise.
13002 (dwarf2_per_cu_objfile): Likewise.
13003 (dwarf2_per_cu_text_offset): Likewise.
13004 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13006 (set_die_type): Access objfile through
13007 dwarf2_per_objfile.
13009 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13011 * valprint.c (converted_character_d): Remove typedef.
13012 (DEF_VEC_O (converted_character_d)): Remove.
13013 (count_next_character): Use std::vector.
13014 (print_converted_chars_to_obstack): Likewise.
13015 (generic_printstr): Likewise.
13017 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13019 * xml-support.h (struct gdb_xml_value): Add constructor.
13020 <value>: Change type to unique_xmalloc_ptr.
13021 (gdb_xml_value_s): Remove typedef.
13022 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13023 (gdb_xml_element_start_handler): Change parameter type to
13025 (xml_find_attribute): Likewise.
13026 * xml-support.c (xml_find_attribute): Change parameter type to
13027 std::vector and adjust.
13028 (gdb_xml_values_cleanup): Remove.
13029 (gdb_xml_parser::start_element): Adjust to std::vector.
13030 (xinclude_start_include): Change paraeter type to std::vector
13032 * btrace.c (check_xml_btrace_version): Likewise.
13033 (parse_xml_btrace_block): Likewise.
13034 (parse_xml_btrace_pt_config_cpu): Likewise.
13035 (parse_xml_btrace_pt): Likewise.
13036 (parse_xml_btrace_conf_bts): Likewise.
13037 (parse_xml_btrace_conf_pt): Likewise.
13038 * memory-map.c (memory_map_start_memory): Likewise.
13039 (memory_map_start_property): Likewise.
13040 * osdata.c (osdata_start_osdata): Likewise.
13041 (osdata_start_item): Likewise.
13042 (osdata_start_column): Likewise.
13043 * remote.c (start_thread): Likewise.
13044 * solib-aix.c (library_list_start_library): Likewise.
13045 (library_list_start_list): Likewise.
13046 * solib-svr4.c (library_list_start_library): Likewise.
13047 (svr4_library_list_start_list): Likewise.
13048 * solib-target.c (library_list_start_segment): Likewise.
13049 (library_list_start_section): Likewise.
13050 (library_list_start_library): Likewise.
13051 (library_list_start_list): Likewise.
13052 * tracepoint.c (traceframe_info_start_memory): Likewise.
13053 (traceframe_info_start_tvar): Likewise.
13054 * xml-syscall.c (syscall_start_syscall): Likewise.
13055 * xml-tdesc.c (tdesc_start_target): Likewise.
13056 (tdesc_start_feature): Likewise.
13057 (tdesc_start_reg): Likewise.
13058 (tdesc_start_union): Likewise.
13059 (tdesc_start_struct): Likewise.
13060 (tdesc_start_flags): Likewise.
13061 (tdesc_start_enum): Likewise.
13062 (tdesc_start_field): Likewise.
13063 (tdesc_start_enum_value): Likewise.
13064 (tdesc_start_vector): Likewise.
13066 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13068 * extension.h (struct xmethod_worker) <clone>: Remove.
13069 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13071 (python_xmethod_worker::clone): Remove.
13072 * valops.c (find_overload_match): Use std::move instead of
13075 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13077 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13078 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13079 <free_xmethod_worker_data>: Remove.
13080 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13081 <get_xmethod_arg_types>: Remove.
13082 <get_xmethod_result_type>: Remove.
13083 <invoke_xmethod>: Remove.
13084 * extension.c (new_xmethod_worker): Remove.
13085 (clone_xmethod_worker): Remove.
13086 (get_matching_xmethod_workers): Return void, pass std::vector by
13088 (get_xmethod_arg_types): Rename to...
13089 (xmethod_worker::get_arg_types): ... this, and adjust.
13090 (get_xmethod_result_type): Rename to...
13091 (xmethod_worker::get_result_type): ... this, and adjust.
13092 (invoke_xmethod): Remove.
13093 (free_xmethod_worker): Remove.
13094 (free_xmethod_worker_vec): Remove.
13095 * extension.h (enum ext_lang_rc): Move here from
13097 (struct xmethod_worker): Add constructor and destructor.
13100 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13101 virtual pure methods.
13102 <get_arg_types, get_result_type>: New methods.
13103 (xmethod_worker_ptr): Remove typedef.
13104 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13105 (xmethod_worker_vec): Remove typedef.
13106 (xmethod_worker_up): New typedef.
13107 (invoke_xmethod): Remove.
13108 (clone_xmethod_worker): Remove.
13109 (free_xmethod_worker): Remove.
13110 (free_xmethod_worker_vec): Remove.
13111 (get_xmethod_arg_types): Remove.
13112 (get_xmethod_result_type): Remove.
13113 * valops.c (find_method_list): Use std::vector, don't use
13114 intermediate vector.
13115 (value_find_oload_method_list): Use std::vector.
13116 (find_overload_match): Use std::vector.
13117 (find_oload_champ): Use std::vector.
13118 * value.c (value_free): Use operator delete.
13119 (value_of_xmethod): Rename to...
13120 (value_from_xmethod): ... this. Don't assign
13121 xmethod_worker::value, take rvalue-reference.
13122 (result_type_of_xmethod): Adjust.
13123 (call_xmethod): Adjust.
13124 * value.h: Include extension.h.
13125 (struct xmethod_worker): Don't forward-declare.
13126 (value_of_xmethod): Rename to...
13127 (value_from_xmethod): ... this, take rvalue-reference.
13128 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13129 (struct python_xmethod_worker): ... this, add constructor and
13131 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13132 (gdbpy_free_xmethod_worker_data): Rename to...
13133 (python_xmethod_worker::~python_xmethod_worker): ... this and
13135 (gdbpy_clone_xmethod_worker_data): Rename to...
13136 (python_xmethod_worker::clone): ... this and adjust.
13137 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13139 (gdbpy_get_xmethod_arg_types): Rename to...
13140 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13141 (gdbpy_get_xmethod_result_type): Rename to...
13142 (python_xmethod_worker::do_get_result_type): ... this and
13144 (gdbpy_invoke_xmethod): Rename to...
13145 (python_xmethod_worker::invoke): ... this and adjust.
13146 (new_python_xmethod_worker): Rename to...
13147 (python_xmethod_worker::python_xmethod_worker): ... this and
13149 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13151 (gdbpy_free_xmethod_worker_data): Remove.
13152 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13153 (gdbpy_get_xmethod_arg_types): Remove.
13154 (gdbpy_get_xmethod_result_type): Remove.
13155 (gdbpy_invoke_xmethod): Remove.
13156 * python/python.c (python_extension_ops): Remove obsolete
13159 2018-01-05 Pedro Alves <palves@redhat.com>
13162 * common/signals-state-save-restore.c
13163 (save_original_signals_state): New parameter 'quiet'. Warn if we
13164 find a custom handler preinstalled, instead of internal erroring.
13165 But only warn if !quiet.
13166 * common/signals-state-save-restore.h
13167 (save_original_signals_state): New parameter 'quiet'.
13168 * main.c (captured_main_1): Move save_original_signals_state call
13169 after option handling, and pass QUIET.
13171 2018-01-05 Pedro Alves <palves@redhat.com>
13173 * spu-tdep.c (spu_catch_start): Pass
13174 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13176 2018-01-05 Pedro Alves <palves@redhat.com>
13179 * ada-lang.c (literal_symbol_name_matcher): New function.
13180 (ada_get_symbol_name_matcher): Use it for
13181 symbol_name_match_type::SEARCH_NAME.
13182 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13183 it down instead of assuming symbol_name_match_type::FULL.
13184 * block.h (block_lookup_symbol): New parameter 'match_type'.
13185 * c-valprint.c (print_unpacked_pointer): Use
13186 lookup_symbol_search_name instead of lookup_symbol.
13187 * compile/compile-object-load.c (get_out_value_type): Pass down
13188 symbol_name_match_type::SEARCH_NAME.
13189 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13190 symbol_name_match_type::FULL.
13191 * cp-support.c (cp_get_symbol_name_matcher): Handle
13192 symbol_name_match_type::SEARCH_NAME.
13193 * infrun.c (insert_exception_resume_breakpoint): Use
13194 lookup_symbol_search_name.
13195 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13196 * psymtab.c (maintenance_check_psymtabs): Use
13197 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13198 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13199 SYMBOL_SEARCH_NAME.
13200 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13201 if symbol_name_match_type::SEARCH_NAME.
13202 (lookup_symbol_in_language): Pass down
13203 symbol_name_match_type::FULL.
13204 (lookup_symbol_search_name): New.
13205 (lookup_language_this): Pass down
13206 symbol_name_match_type::SEARCH_NAME.
13207 (lookup_symbol_aux, lookup_local_symbol): New parameter
13208 'match_type'. Pass it down.
13209 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13210 (lookup_symbol_search_name): New declaration.
13211 (lookup_symbol_in_block): New 'match_type' parameter.
13213 2018-01-05 Pedro Alves <palves@redhat.com>
13216 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13218 (ada_lookup_symbol): Reimplement in terms of
13219 ada_lookup_symbol_list, bits factored out from
13220 ada_lookup_encoded_symbol.
13222 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13224 * ada-exp.y (write_object_renaming): When subscripting an array
13225 using a symbol as the index, pass the block in call to
13226 ada_lookup_encoded_symbol when looking that symbol up.
13228 2018-01-05 Jerome Guitton <guitton@adacore.com>
13230 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13233 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13235 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13236 the case where VALUE_LVAL (val0) is not lval_memory.
13238 2018-01-05 Xavier Roirand <roirand@adacore.com>
13240 * ada-valprint.c (print_optional_low_bound): Handle
13241 character-indexed array printing like boolean-indexed array
13244 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13246 * NEWS: Create a new section for the next release branch.
13247 Rename the section of the current branch, now that it has
13250 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13252 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13253 * version.in: Bump version to 8.1.50.DATE-git.
13255 2018-01-03 Xavier Roirand <roirand@adacore.com>
13257 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13259 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13261 (default_exception_support_info) <catch_handlers_sym>: Add field.
13262 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13263 (ada_exception_name_addr_1): Add "catch handlers" handling.
13264 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13265 Update all callers.
13266 (create_excep_cond_exprs) <ex>: Add parameter.
13267 (re_set_exception): Update create_excep_cond_exprs call.
13268 (print_it_exception, print_one_exception, print_mention_exception)
13269 (print_recreate_exception): Add "catch handler" handling.
13270 (allocate_location_catch_handlers, re_set_catch_handlers)
13271 (check_status_catch_handlers, print_it_catch_handlers)
13272 (print_one_catch_handlers, print_mention_catch_handlers)
13273 (print_recreate_catch_handlers): New function.
13274 (catch_handlers_breakpoint_ops): New variable.
13275 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13276 Add parameter. Add "catch handler" handling.
13277 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13278 Add "catch handler" handling.
13279 (ada_exception_catchpoint_cond_string): Add "catch handler"
13281 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13283 (catch_ada_handlers_command): New function.
13284 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13285 operations structure.
13286 (_initialize_ada_language): Add "catch handlers" command entry.
13287 * NEWS: Document "catch handlers" feature.
13289 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13291 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13292 account when creating the array type of the slice.
13293 (ada_value_slice): Likewise.
13295 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13297 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13299 (create_array_type_with_stride): Add byte_stride_prop parameter.
13300 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13301 New parameter. Update all callers in this file.
13302 (array_type_has_dynamic_stride): New function.
13303 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13304 of arrays with dynamic byte strides.
13305 * dwarf2read.c (read_array_type): Add support for dynamic
13306 DW_AT_byte_stride attributes.
13308 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13310 * dwarf2read.c (read_unspecified_type): Treat
13311 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13313 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13315 Update copyright year range in all GDB files.
13317 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13319 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13320 and gdb/testsuite/gdb.base/step-line.c.
13322 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13324 * copyright.py (main): Dump the contents of
13325 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13326 even if BY_HAND is empty.
13328 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13330 * top.c (print_gdb_version): Update Copyright year in version
13333 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13335 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
13337 For older changes see ChangeLog-2017.
13343 version-control: never