1 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
3 * python/py-inferior.c (infpy_get_progspace): New function.
4 (inferior_object_getset): Add progspace property.
5 * NEWS: Mention the new property.
7 2018-09-13 Tom Tromey <tom@tromey.com>
10 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
12 2018-09-13 Tom Tromey <tom@tromey.com>
15 * rust-lang.c (rust_enum_variant): Now static.
16 (rust_empty_enum_p): New function.
17 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
20 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
22 * python/py-inferior.c (infpy_repr): New.
23 (inferior_object_type): Register infpy_repr.
24 * python/py-objfile.c (objfpy_repr): New.
25 (objfile_object_type): Register objfpy_repr.
27 2018-09-12 John Baldwin <jhb@FreeBSD.org>
29 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
31 2018-09-12 John Baldwin <jhb@FreeBSD.org>
33 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
36 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
38 * common/common-utils.c: Don't include '<sys/stat.h>'.
39 (is_regular_file): Move to...
40 * common/filestuff.c (is_regular_file): ... here.
41 * common/common-utils.h (is_regular_file): Move to...
42 * common/filestuff.h (is_regular_file): ... here.
44 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
46 * skip.c (debug_skip): New variable.
47 (skiplist_entry::do_skip_file_p): Add debug output.
48 (skiplist_entry::do_skip_gfile_p): Likewise.
49 (skiplist_entry::skip_function_p): Likewise.
50 (_initialize_step_skip): Create debug command.
51 * NEWS: Mention set/show debug skip.
53 2018-09-11 Xavier Roirand <roirand@adacore.com>
55 * darwin-nat.c (should_disable_startup_with_shell):
57 (darwin_nat_target::create_inferior): Add call.
59 2018-09-11 Xavier Roirand <roirand@adacore.com>
61 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
62 inf_port, msg_state>: Initialize.
63 (struct darwin_thread_info) <signaled, single_step>: Change
65 (struct darwin_thread_info) <event>: Initialize.
67 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
71 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
74 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
77 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
81 * gnulib/aclocal.m4: Regenerate.
82 * gnulib/config.in: Regenerate.
83 * gnulib/configure: Regenerate.
84 * gnulib/import/Makefile.am: Update.
85 * gnulib/import/Makefile.in: Update.
86 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
87 * gnulib/import/_Noreturn.h: ... this.
88 * gnulib/import/alloca.in.h: Update.
89 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
90 * gnulib/import/arg-nonnull.h: ... this.
91 * gnulib/import/assure.h: Update.
92 * gnulib/import/at-func.c: Update.
93 * gnulib/import/basename-lgpl.c: Update.
94 * gnulib/import/extra/snippet/c++defs.h: Rename to...
95 * gnulib/import/c++defs.h: ... this.
96 * gnulib/import/canonicalize-lgpl.c: Update.
97 * gnulib/import/cdefs.h: Update.
98 * gnulib/import/chdir-long.c: Update.
99 * gnulib/import/chdir-long.h: Update.
100 * gnulib/import/cloexec.c: Update.
101 * gnulib/import/cloexec.h: Update.
102 * gnulib/import/close.c: Update.
103 * gnulib/import/closedir.c: Update.
104 * gnulib/import/config.charset: Update.
105 * gnulib/import/dirent-private.h: Update.
106 * gnulib/import/dirent.in.h: Update.
107 * gnulib/import/dirfd.c: Update.
108 * gnulib/import/dirname-lgpl.c: Update.
109 * gnulib/import/dirname.h: Update.
110 * gnulib/import/dosname.h: Update.
111 * gnulib/import/dup-safer-flag.c: Update.
112 * gnulib/import/dup-safer.c: Update.
113 * gnulib/import/dup.c: Update.
114 * gnulib/import/dup2.c: Update.
115 * gnulib/import/errno.in.h: Update.
116 * gnulib/import/error.c: Update.
117 * gnulib/import/error.h: Update.
118 * gnulib/import/exitfail.c: Update.
119 * gnulib/import/exitfail.h: Update.
120 * gnulib/import/extra/update-copyright: Update.
121 * gnulib/import/fchdir.c: Update.
122 * gnulib/import/fcntl.c: Update.
123 * gnulib/import/fcntl.in.h: Update.
124 * gnulib/import/fd-hook.c: Update.
125 * gnulib/import/fd-hook.h: Update.
126 * gnulib/import/fd-safer-flag.c: Update.
127 * gnulib/import/fd-safer.c: Update.
128 * gnulib/import/fdopendir.c: Update.
129 * gnulib/import/filename.h: Update.
130 * gnulib/import/filenamecat-lgpl.c: Update.
131 * gnulib/import/filenamecat.h: Update.
132 * gnulib/import/flexmember.h: Update.
133 * gnulib/import/float+.h: Update.
134 * gnulib/import/float.c: Update.
135 * gnulib/import/float.in.h: Update.
136 * gnulib/import/fnmatch.c: Update.
137 * gnulib/import/fnmatch.in.h: Update.
138 * gnulib/import/fnmatch_loop.c: Update.
139 * gnulib/import/fpucw.h: Update.
140 * gnulib/import/frexp.c: Update.
141 * gnulib/import/frexpl.c: Update.
142 * gnulib/import/fstat.c: Update.
143 * gnulib/import/fstatat.c: Update.
144 * gnulib/import/getcwd-lgpl.c: Update.
145 * gnulib/import/getcwd.c: Update.
146 * gnulib/import/getdtablesize.c: Update.
147 * gnulib/import/getlogin_r.c: Update.
148 * gnulib/import/getprogname.c: Update.
149 * gnulib/import/getprogname.h: Update.
150 * gnulib/import/gettext.h: Update.
151 * gnulib/import/gettimeofday.c: Update.
152 * gnulib/import/glob-libc.h: Update.
153 * gnulib/import/glob.c: Update.
154 * gnulib/import/glob.in.h: Update.
155 * gnulib/import/glob_internal.h: Update.
156 * gnulib/import/glob_pattern_p.c: Update.
157 * gnulib/import/globfree.c: Update.
158 * gnulib/import/hard-locale.c: Update.
159 * gnulib/import/hard-locale.h: Update.
160 * gnulib/import/intprops.h: Update.
161 * gnulib/import/inttypes.in.h: Update.
162 * gnulib/import/isnan.c: Update.
163 * gnulib/import/isnand-nolibm.h: Update.
164 * gnulib/import/isnand.c: Update.
165 * gnulib/import/isnanl-nolibm.h: Update.
166 * gnulib/import/isnanl.c: Update.
167 * gnulib/import/itold.c: Update.
168 * gnulib/import/libc-config.h: Update.
169 * gnulib/import/limits.in.h: Update.
170 * gnulib/import/localcharset.c: Update.
171 * gnulib/import/localcharset.h: Update.
172 * gnulib/import/localtime-buffer.c: Update.
173 * gnulib/import/localtime-buffer.h: Update.
174 * gnulib/import/lstat.c: Update.
175 * gnulib/import/m4/00gnulib.m4: Update.
176 * gnulib/import/m4/__inline.m4: Update.
177 * gnulib/import/m4/absolute-header.m4: Update.
178 * gnulib/import/m4/alloca.m4: Update.
179 * gnulib/import/m4/builtin-expect.m4: Update.
180 * gnulib/import/m4/canonicalize.m4: Update.
181 * gnulib/import/m4/chdir-long.m4: Update.
182 * gnulib/import/m4/close.m4: Update.
183 * gnulib/import/m4/closedir.m4: Update.
184 * gnulib/import/m4/configmake.m4: Update.
185 * gnulib/import/m4/d-ino.m4: Update.
186 * gnulib/import/m4/d-type.m4: Update.
187 * gnulib/import/m4/dirent_h.m4: Update.
188 * gnulib/import/m4/dirfd.m4: Update.
189 * gnulib/import/m4/dirname.m4: Update.
190 * gnulib/import/m4/double-slash-root.m4: Update.
191 * gnulib/import/m4/dup.m4: Update.
192 * gnulib/import/m4/dup2.m4: Update.
193 * gnulib/import/m4/eealloc.m4: Update.
194 * gnulib/import/m4/environ.m4: Update.
195 * gnulib/import/m4/errno_h.m4: Update.
196 * gnulib/import/m4/error.m4: Update.
197 * gnulib/import/m4/exponentd.m4: Update.
198 * gnulib/import/m4/exponentl.m4: Update.
199 * gnulib/import/m4/extensions.m4: Update.
200 * gnulib/import/m4/extern-inline.m4: Update.
201 * gnulib/import/m4/fchdir.m4: Update.
202 * gnulib/import/m4/fcntl-o.m4: Update.
203 * gnulib/import/m4/fcntl.m4: Update.
204 * gnulib/import/m4/fcntl_h.m4: Update.
205 * gnulib/import/m4/fdopendir.m4: Update.
206 * gnulib/import/m4/filenamecat.m4: Update.
207 * gnulib/import/m4/flexmember.m4: Update.
208 * gnulib/import/m4/float_h.m4: Update.
209 * gnulib/import/m4/fnmatch.m4: Update.
210 * gnulib/import/m4/fnmatch_h.m4: Update.
211 * gnulib/import/m4/fpieee.m4: Update.
212 * gnulib/import/m4/frexp.m4: Update.
213 * gnulib/import/m4/frexpl.m4: Update.
214 * gnulib/import/m4/fstat.m4: Update.
215 * gnulib/import/m4/fstatat.m4: Update.
216 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
217 * gnulib/import/m4/getcwd-path-max.m4: Update.
218 * gnulib/import/m4/getcwd.m4: Update.
219 * gnulib/import/m4/getdtablesize.m4: Update.
220 * gnulib/import/m4/getlogin.m4: Update.
221 * gnulib/import/m4/getlogin_r.m4: Update.
222 * gnulib/import/m4/getpagesize.m4: Update.
223 * gnulib/import/m4/getprogname.m4: Update.
224 * gnulib/import/m4/gettimeofday.m4: Update.
225 * gnulib/import/m4/glibc21.m4: Update.
226 * gnulib/import/m4/glob.m4: Update.
227 * gnulib/import/m4/glob_h.m4: Update.
228 * gnulib/import/m4/gnulib-cache.m4: Update.
229 * gnulib/import/m4/gnulib-common.m4: Update.
230 * gnulib/import/m4/gnulib-comp.m4: Update.
231 * gnulib/import/m4/gnulib-tool.m4: Update.
232 * gnulib/import/m4/hard-locale.m4: Update.
233 * gnulib/import/m4/include_next.m4: Update.
234 * gnulib/import/m4/inttypes-pri.m4: Update.
235 * gnulib/import/m4/inttypes.m4: Update.
236 * gnulib/import/m4/isnand.m4: Update.
237 * gnulib/import/m4/isnanl.m4: Update.
238 * gnulib/import/m4/largefile.m4: Update.
239 * gnulib/import/m4/limits-h.m4: Update.
240 * gnulib/import/m4/localcharset.m4: Update.
241 * gnulib/import/m4/locale-fr.m4: Update.
242 * gnulib/import/m4/locale-ja.m4: Update.
243 * gnulib/import/m4/locale-zh.m4: Update.
244 * gnulib/import/m4/localtime-buffer.m4: Update.
245 * gnulib/import/m4/longlong.m4: Update.
246 * gnulib/import/m4/lstat.m4: Update.
247 * gnulib/import/m4/malloc.m4: Update.
248 * gnulib/import/m4/malloca.m4: Update.
249 * gnulib/import/m4/math_h.m4: Update.
250 * gnulib/import/m4/mbrtowc.m4: Update.
251 * gnulib/import/m4/mbsinit.m4: Update.
252 * gnulib/import/m4/mbsrtowcs.m4: Update.
253 * gnulib/import/m4/mbstate_t.m4: Update.
254 * gnulib/import/m4/memchr.m4: Update.
255 * gnulib/import/m4/memmem.m4: Update.
256 * gnulib/import/m4/mempcpy.m4: Update.
257 * gnulib/import/m4/memrchr.m4: Update.
258 * gnulib/import/m4/mkdir.m4: Update.
259 * gnulib/import/m4/mkstemp.m4: Update.
260 * gnulib/import/m4/mmap-anon.m4: Update.
261 * gnulib/import/m4/mode_t.m4: Update.
262 * gnulib/import/m4/msvc-inval.m4: Update.
263 * gnulib/import/m4/msvc-nothrow.m4: Update.
264 * gnulib/import/m4/multiarch.m4: Update.
265 * gnulib/import/m4/nocrash.m4: Update.
266 * gnulib/import/m4/off_t.m4: Update.
267 * gnulib/import/m4/onceonly.m4: Update.
268 * gnulib/import/m4/open-cloexec.m4: Update.
269 * gnulib/import/m4/open.m4: Update.
270 * gnulib/import/m4/openat.m4: Update.
271 * gnulib/import/m4/opendir.m4: Update.
272 * gnulib/import/m4/pathmax.m4: Update.
273 * gnulib/import/m4/rawmemchr.m4: Update.
274 * gnulib/import/m4/readdir.m4: Update.
275 * gnulib/import/m4/readlink.m4: Update.
276 * gnulib/import/m4/realloc.m4: Update.
277 * gnulib/import/m4/rename.m4: Update.
278 * gnulib/import/m4/rewinddir.m4: Update.
279 * gnulib/import/m4/rmdir.m4: Update.
280 * gnulib/import/m4/save-cwd.m4: Update.
281 * gnulib/import/m4/secure_getenv.m4: Update.
282 * gnulib/import/m4/setenv.m4: Update.
283 * gnulib/import/m4/signal_h.m4: Update.
284 * gnulib/import/m4/ssize_t.m4: Update.
285 * gnulib/import/m4/stat-time.m4: Update.
286 * gnulib/import/m4/stat.m4: Update.
287 * gnulib/import/m4/std-gnu11.m4: Update.
288 * gnulib/import/m4/stdbool.m4: Update.
289 * gnulib/import/m4/stddef_h.m4: Update.
290 * gnulib/import/m4/stdint.m4: Update.
291 * gnulib/import/m4/stdio_h.m4: Update.
292 * gnulib/import/m4/stdlib_h.m4: Update.
293 * gnulib/import/m4/strchrnul.m4: Update.
294 * gnulib/import/m4/strdup.m4: Update.
295 * gnulib/import/m4/strerror.m4: Update.
296 * gnulib/import/m4/string_h.m4: Update.
297 * gnulib/import/m4/strstr.m4: Update.
298 * gnulib/import/m4/strtok_r.m4: Update.
299 * gnulib/import/m4/sys_socket_h.m4: Update.
300 * gnulib/import/m4/sys_stat_h.m4: Update.
301 * gnulib/import/m4/sys_time_h.m4: Update.
302 * gnulib/import/m4/sys_types_h.m4: Update.
303 * gnulib/import/m4/tempname.m4: Update.
304 * gnulib/import/m4/time_h.m4: Update.
305 * gnulib/import/m4/unistd-safer.m4: Update.
306 * gnulib/import/m4/unistd_h.m4: Update.
307 * gnulib/import/m4/warn-on-use.m4: Update.
308 * gnulib/import/m4/wchar_h.m4: Update.
309 * gnulib/import/m4/wchar_t.m4: Update.
310 * gnulib/import/m4/wctype_h.m4: Update.
311 * gnulib/import/m4/wint_t.m4: Update.
312 * gnulib/import/malloc.c: Update.
313 * gnulib/import/malloc/scratch_buffer.h: Update.
314 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
315 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
316 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
317 * gnulib/import/malloca.c: Update.
318 * gnulib/import/malloca.h: Update.
319 * gnulib/import/malloca.valgrind: Update.
320 * gnulib/import/math.in.h: Update.
321 * gnulib/import/mbrtowc.c: Update.
322 * gnulib/import/mbsinit.c: Update.
323 * gnulib/import/mbsrtowcs-impl.h: Update.
324 * gnulib/import/mbsrtowcs-state.c: Update.
325 * gnulib/import/mbsrtowcs.c: Update.
326 * gnulib/import/memchr.c: Update.
327 * gnulib/import/memmem.c: Update.
328 * gnulib/import/mempcpy.c: Update.
329 * gnulib/import/memrchr.c: Update.
330 * gnulib/import/mkdir.c: Update.
331 * gnulib/import/mkstemp.c: Update.
332 * gnulib/import/msvc-inval.c: Update.
333 * gnulib/import/msvc-inval.h: Update.
334 * gnulib/import/msvc-nothrow.c: Update.
335 * gnulib/import/msvc-nothrow.h: Update.
336 * gnulib/import/open.c: Update.
337 * gnulib/import/openat-die.c: Update.
338 * gnulib/import/openat-priv.h: Update.
339 * gnulib/import/openat-proc.c: Update.
340 * gnulib/import/openat.c: Update.
341 * gnulib/import/openat.h: Update.
342 * gnulib/import/opendir.c: Update.
343 * gnulib/import/pathmax.h: Update.
344 * gnulib/import/pipe-safer.c: Update.
345 * gnulib/import/rawmemchr.c: Update.
346 * gnulib/import/readdir.c: Update.
347 * gnulib/import/readlink.c: Update.
348 * gnulib/import/realloc.c: Update.
349 * gnulib/import/ref-add.sin: Update.
350 * gnulib/import/ref-del.sin: Update.
351 * gnulib/import/rename.c: Update.
352 * gnulib/import/rewinddir.c: Update.
353 * gnulib/import/rmdir.c: Update.
354 * gnulib/import/same-inode.h: Update.
355 * gnulib/import/save-cwd.c: Update.
356 * gnulib/import/save-cwd.h: Update.
357 * gnulib/import/scratch_buffer.h: Update.
358 * gnulib/import/secure_getenv.c: Update.
359 * gnulib/import/setenv.c: Update.
360 * gnulib/import/signal.in.h: Update.
361 * gnulib/import/stat-time.c: Update.
362 * gnulib/import/stat-time.h: Update.
363 * gnulib/import/stat-w32.c: Update.
364 * gnulib/import/stat-w32.h: Update.
365 * gnulib/import/stat.c: Update.
366 * gnulib/import/stdbool.in.h: Update.
367 * gnulib/import/stddef.in.h: Update.
368 * gnulib/import/stdint.in.h: Update.
369 * gnulib/import/stdio.in.h: Update.
370 * gnulib/import/stdlib.in.h: Update.
371 * gnulib/import/str-two-way.h: Update.
372 * gnulib/import/strchrnul.c: Update.
373 * gnulib/import/strdup.c: Update.
374 * gnulib/import/streq.h: Update.
375 * gnulib/import/strerror-override.c: Update.
376 * gnulib/import/strerror-override.h: Update.
377 * gnulib/import/strerror.c: Update.
378 * gnulib/import/string.in.h: Update.
379 * gnulib/import/stripslash.c: Update.
380 * gnulib/import/strnlen1.c: Update.
381 * gnulib/import/strnlen1.h: Update.
382 * gnulib/import/strstr.c: Update.
383 * gnulib/import/strtok_r.c: Update.
384 * gnulib/import/sys_stat.in.h: Update.
385 * gnulib/import/sys_time.in.h: Update.
386 * gnulib/import/sys_types.in.h: Update.
387 * gnulib/import/tempname.c: Update.
388 * gnulib/import/tempname.h: Update.
389 * gnulib/import/time.in.h: Update.
390 * gnulib/import/unistd--.h: Update.
391 * gnulib/import/unistd-safer.h: Update.
392 * gnulib/import/unistd.in.h: Update.
393 * gnulib/import/unsetenv.c: Update.
394 * gnulib/import/verify.h: Update.
395 * gnulib/import/extra/snippet/warn-on-use.h: Update.
396 * gnulib/import/wchar.in.h: Update.
397 * gnulib/import/wctype.in.h: Update.
398 * gnulib/import/xalloc-oversized.h: Update.
399 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
400 "53e2c179f26a890fa6685af4b6c1397ee370433b".
402 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
404 * record-btrace.c (get_thread_current_frame): Remove
407 2018-09-10 Jerome Guitton <guitton@adacore.com>
409 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
410 with check_tag to 1 if and only if the type is tagged and the
411 component being searched cannot been found in the current
412 view. Otherwise, always call ada_to_fixed_type with
415 2018-09-10 Xavier Roirand <roirand@adacore.com>
417 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
419 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
420 * ada-varobj.c (ada_varobj_get_number_of_children,
421 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
423 2018-09-10 Xavier Roirand <roirand@adacore.com>
425 * ada-valprint.c (ada_value_print): Use type instead of
428 2018-09-10 Xavier Roirand <roirand@adacore.com>
430 * ada-lang.c (ada_value_subscript): Handle case when parameter is
431 an array of access to unconstrained array.
433 2018-09-10 Xavier Roirand <roirand@adacore.com>
435 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
436 (ada_check_typedef): Use it.
438 2018-09-10 Xavier Roirand <roirand@adacore.com>
440 * ada-varobj.c (ada_varobj_describe_struct_child)
441 (ada_varobj_describe_child): Handle union case like struct one.
443 2018-09-10 Tom Tromey <tom@tromey.com>
446 * python/python.c (_initialize_python): Make example in "python"
447 help work in Python 3.
449 2018-09-10 Eli Zaretskii <eliz@gnu.org>
451 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
452 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
453 $(EXEEXT) to the script, as it is not a program.
455 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
457 * python/py-prettyprint.c (pretty_print_one_value): Return
459 (print_string_repr): Adjust.
460 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
461 * python/python-internal.h (apply_varobj_pretty_printer): Return
463 * varobj.c (varobj_value_get_print_value): Adjust.
465 2018-09-08 Tom Tromey <tom@tromey.com>
468 * python/py-prettyprint.c (pretty_print_one_value): Check for
471 2018-09-08 Joel Brobecker <brobecker@adacore.com>
473 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
474 replace_operator_with_call.
476 2018-09-08 Joel Brobecker <brobecker@adacore.com>
478 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
480 2018-09-08 Joel Brobecker <brobecker@adacore.com>
482 * ada-typeprint.c (print_range): Print the bounds using TYPE
483 rather than its TYPE_TARGET_TYPE.
485 2018-09-08 Joel Brobecker <brobecker@adacore.com>
487 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
488 call to ada_to_fixed_value_create.
490 2018-09-08 Jerome Guitton <guitton@adacore.com>
492 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
494 2018-09-08 Joel Brobecker <brobecker@adacore.com>
496 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
499 2018-09-08 Joel Brobecker <brobecker@adacore.com>
501 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
502 Move update of loop variable "fi".
504 2018-09-08 Joel Brobecker <brobecker@adacore.com>
506 * ada-lang.c (value_assign_to_component): In the case of
507 big-endian targets, extract the bits of the given VAL
508 using an src_offset of zero if container is not a scalar.
510 2018-09-06 Simon Ser <contact@emersion.fr>
513 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
514 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
515 * fbsd-tdep.c (fbsd_make_note_desc): New.
516 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
517 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
518 * target.h (enum target_object) Add FreeBSD-specific
519 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
521 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
523 * compile/compile-c.h (generate_c_for_variable_locations):
524 Change reference to pointer.
525 * compile/compile-c-support.c (compile_program) <compute>:
527 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
528 (generate_c_for_for_one_variable): Likewise
529 (generate_c_for_variable_locations): Likewise
530 * compile/compile-c-types.c (compile_c_instance::convert_type):
532 * compile/compile-cplus-symbols.c (convert_one_symbol):
533 std::move the scope passed to enter_scope.
534 * compile/compile-cplus-types.c
535 (compile_cplus_instance::enter_scope): Make parameter
537 (compile_cplus_instance::new_scope): Change reference to
539 (compile_cplus_instance::convert_type): Likewise
540 (compile_cplus_convert_typedef): std::move the scope passed to
542 (compile_cplus_convert_struct_or_union): Likewise.
543 (compile_cplus_convert_enum): Likewise.
544 (compile_cplus_convert_namespace): Likewise.
545 * compile/compile-cplus.h (compile_cplus_instance)
546 <enter_scope>: Make parameter rvalue-reference.
547 * compile/compile-internal.h (compile_instance)
548 <get_cached_type>: Likewise
549 * compile/compile-loc2c.c (push): Likewise
553 (print_label): Likewise
554 (pushf_register_address): Likewise
555 (pushf_register): Likewise
556 (do_compile_dwarf_expr_to_c): Likewise
557 (compile_dwarf_expr_to_c): Likewise
558 (compile_dwarf_bounds_to_c): Likewise
559 * compile/compile.c (compile_instance::get_cached_type):
561 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
562 (compile_dwarf_bounds_to_c): Likewise
563 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
564 (dwarf2_compile_property_to_c): Likewise
565 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
566 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
569 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
571 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
572 * tui/tui-data.c (init_content_element): Don't initialize it.
574 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
576 * tui/tui-data.h (struct tui_win_info)
577 <detail::opaque>: Remove.
578 * tui/tui-data.c (init_win_info): Remove assignment.
580 2018-09-05 Tom Tromey <tom@tromey.com>
582 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
584 * target-float.c (host_float_ops<T>::to_string)
585 (host_float_ops<T>::from_string): Use
586 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
587 * configure: Rebuild.
589 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
591 * printcmd.c (printf_c_string): Use
592 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
593 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
595 2018-09-05 Tom Tromey <tom@tromey.com>
597 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
599 2018-09-05 Tom de Vries <tdevries@suse.de>
601 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
602 with resolve_abstract_p == true.
603 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
604 defaulting to false. Propagate resolve_abstract_p to
605 dwarf2_fetch_die_loc_sect_off.
606 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
607 parameter, defaulting to false.
608 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
609 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
611 * dwarf2read.h (struct die_info): Forward-declare.
612 (die_info_ptr): New typedef.
613 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
615 2018-09-05 Joel Brobecker <brobecker@adacore.com>
619 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
620 Pedro Alves <palves@redhat.com>
622 * gnulib/Makefile.in (aclocal_m4_deps): Move to
623 "aclocal-m4-deps.mk". Include file here.
624 $(srcdir)/aclocal.m4: Add "configure.ac".
625 * gnulib/aclocal-m4-deps.mk: New file.
626 * gnulib/update-gnulib.sh: Automatically update
627 "aclocal-m4-deps.mk".
629 2018-09-04 Tom Tromey <tom@tromey.com>
631 * configure: Rebuild.
632 * configure.ac: Remove multi-ice code.
634 2018-09-04 Tom Tromey <tom@tromey.com>
636 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
639 2018-09-04 Tom Tromey <tom@tromey.com>
641 * Makefile.in (printcmd.o, target-float.o): Remove.
642 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
644 2018-09-04 Tom Tromey <tom@tromey.com>
646 * gnulib/Makefile.in: Remove obsolete comment.
647 * Makefile.in: Remove obsolete comment.
649 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
651 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
654 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
656 * riscv-tdep.c: Add 'prologue-value.h' include.
657 (struct riscv_unwind_cache): New struct.
658 (riscv_debug_unwinder): New global.
659 (riscv_scan_prologue): Update arguments, capture register details
661 (riscv_skip_prologue): Reformat arguments line, move end of
662 prologue calculation into riscv_scan_prologue.
663 (riscv_frame_cache): Update return type, create
664 riscv_unwind_cache, scan the prologue, and fill in remaining cache
666 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
667 (riscv_frame_prev_register): Use the trad_frame within the
669 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
672 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
674 * trad-frame.h (trad_frame_set_realreg): Declare.
675 (trad_frame_set_addr): Declare.
676 * trad-frame.c (trad_frame_set_realreg): Define new function.
677 (trad_frame_set_addr): Define new function.
678 (trad_frame_set_reg_realreg): Use new function.
679 (trad_frame_set_reg_addr): Use new function.
681 2018-09-01 Keith Seitz <keiths@redhat.com>
683 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
684 pulongest instead of "%lld".
685 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
688 2018-08-31 Tom Tromey <tom@tromey.com>
690 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
693 2018-08-31 Pedro Alves <palves@redhat.com>
695 * gdbarch.h: Regenerate.
697 2018-08-31 Pedro Alves <palves@redhat.com>
699 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
700 * target.h (Hardware watchpoint interfaces): Describe
701 continuable/steppable/non-steppable watchpoints.
702 * gdbarch.h, gdbarch.c: Regenerate.
704 2018-08-31 Pedro Alves <palves@redhat.com>
706 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
709 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
710 * target.h (target_ops::have_continuable_watchpoint): Delete.
711 (target_have_continuable_watchpoint): Delete.
712 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
713 * target-delegates.c: Regenerate.
715 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
717 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
718 the files present in "gnulib/import/m4/".
720 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
722 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
723 c.sw, c.swsp, and c.sdsp.
725 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
727 * riscv-tdep.c (struct riscv_inferior_data): Delete.
728 (riscv_read_misa_reg): Don't cache value read into inferior data.
729 (riscv_new_inferior_data): Delete.
730 (riscv_inferior_data_cleanup): Delete.
731 (riscv_inferior_data): Delete.
732 (riscv_invalidate_inferior_data): Delete.
733 (_initialize_riscv_tdep): Remove initialisation of inferior data.
735 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
737 * compile/compile-cplus-types.c
738 (compile_cplus_instance::leave_scope): Take the address of scope
740 (compile_cplus_instance::convert_qualified_base): Compare quals
743 2018-08-30 Keith Seitz <keiths@redhat.com>
745 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
746 Use "%s" and host_address_to_string instead of "%p" in printf.
748 2018-08-29 Keith Seitz <keiths@redhat.com>
750 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
751 and compile-cplus-types.c.
752 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
753 * c-lang.c (cplus_language_defn): Set C++ compile functions.
754 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
756 * compile/compile-c-support.c: Include compile-cplus.h.
757 (load_libcompile): Templatize.
758 (get_compile_context): "New" function.
759 (c_get_compile_context): Use get_compile_context.
760 (cplus_get_compile_context): New function.
761 (cplus_push_user_expression, cplus_pop_user_expression)
762 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
763 (cplus_compute_program): Define new structs/functions.
764 * compile/compile-cplus-symmbols.c: New file.
765 * compile/compile-cplus-types.c: New file.
766 * compile/compile-cplus.h: New file.
767 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
769 * compile/compile-object-load.c (get_out_value_type): Use
770 strncmp_iw when comparing symbol names.
771 (compile_object_load): Add mst_bss and mst_data.
772 * compile/compile.c (_initialize_compile): Remove
773 -Wno-implicit-function-declaration from `compile_args'.
774 * compile/gcc-cp-plugin.h: New file.
775 * NEWS: Mention C++ compile support and new debug options.
777 2018-08-29 Keith Seitz <keiths@redhat.com>
779 * linespec.c (collect_info::add_symbol): Make virtual.
780 (struct symbol_searcher_collect_info): New struct.
781 (symbol_searcher::find_all_symbols): New method.
782 * symtab.h (class symbol_searcher): New class.
784 2018-08-29 Keith Seitz <keiths@redhat.com>
786 * linespec.c (struct linespec) <function_symbols, label_symbols>:
787 Change to vector of block_symbol. Update all users.
788 (struct collect_info) <symbols>: Likewise.
789 (collect_info::add_symbol): Take block_symbol as argument.
791 (decode_compound_collector) <m_symbols>: Change type to vector
792 of block_symbol. Update all users.
793 (decode_compound_collector::operator ()): Change parameter type
795 (find_method, find_function_symbols, find_linespec_symbols)
796 (find_label_symbols_in_block, find_label_symbols): Change symbol
797 vectors to block_symbol vectors.
798 * symtab.h (symbol_found_callback_ftype): Change parameter type to
801 2018-08-29 Keith Seitz <keiths@redhat.com>
803 * linespec.c (symbolp): Remove typedef and VEC definitions.
804 (bound_minimal_symbol_d): Likewise.
806 2018-08-29 Keith Seitz <keiths@redhat.com>
808 * linespec.c (decode_compound_collector::decode_compound_collector):
809 Remove initialization for `m_symtabs'.
810 (decode_compound_collector::release_symbols): Change return type
811 to std::vector. Update all callers.
812 (class decode_compound_collector) <m_symbols>: Change type to
814 (lookup_prefix_sym): Change return type to std::vector. Update all
816 (compare_symbols): Remove.
817 (std_compare_symbols): Rename to `compare_symbols'.
818 (find_method): Change `sym_classes' parameter to std::vector.
819 Update all callers. Use std::sort to sort sym_classes.
820 (find_linespec_symbols): Remove cleanup.
822 2018-08-29 Keith Seitz <keiths@redhat.com>
824 * linespec.c (struct linespec) <minimal_symbols>: Change type to
825 std::vector. Update all users.
826 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
827 (struct collect_info) <minimal_symbols>: Likewise.
828 (compare_msymbols): Return bool. Change parameters to const
829 bound_minimal_symbol references.
830 (find_method, find_function_symbols, find_linespec_symbols): Change
831 `minsyms' parameter to std::vector. Update all callers.
833 2018-08-29 Keith Seitz <keiths@redhat.com>
835 * linespec.c (struct linespec) <label_symbols>: Change type to
836 std::vector. Update all users.
837 (find_label_symbols_in_block): Change `result' parameter to
838 std::vector. Update all callers.
839 (find_label_symbols): Return std::vector. Update all callers.
841 2018-08-29 Keith Seitz <keiths@redhat.com>
843 * linespec.c (struct linespec) <function_symbols>: Change type to
844 std::vector. Update all users.
845 (struct collect_info) <function_symbols>: Likewise.
846 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
847 (std_compare_symbols): New function.
848 (find_method, find_function_symbols, find_linespec_symbols)
849 (find_label_symbols_in_block): Change `symbols' parameter to
850 std::vector. Update all callers.
851 (find_label_symbols): Likewise for `function_symbols' and
854 2018-08-29 Keith Seitz <keiths@redhat.com>
856 * linespec.c (symtab_vector_up): Define.
857 (struct linespec) <file_symtabs>: Change type to std::vector *.
859 (struct collect_info) <file_symtabs>: Likewise.
860 (collect_symtabs_from_filename): Return symtab_vector_up.
862 (decode_objc): Remove cleanup.
863 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
864 (symtab_collector::release_symtabs): Return symtab_vector_up.
866 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
868 (collect_symtabs_from_filename, symtabs_from_filename): Return
869 symtab_vector_up. Update all callers.
871 2018-08-29 Tom Tromey <tom@tromey.com>
873 * csky-tdep.c (csky_analyze_prologue): Use
874 core_addr_to_string_nz.
876 2018-08-29 Tom Tromey <tom@tromey.com>
878 * windows-nat.c (struct xlate_exception) <them>: Change type to
880 (xlate): Fix formatting. Remove last entry.
881 (struct xlate_exception, xlate): Comment out.
882 (windows_nat_target::resume): Use ranged for.
884 2018-08-29 Jim Wilson <jimw@sifive.com>
886 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
887 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
889 (riscv_linux_nat_target::store_registers): Likewise.
891 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
895 * gnulib/aclocal.m4: Regenerate.
896 * gnulib/config.in: Regenerate.
897 * gnulib/configure: Regenerate.
898 * gnulib/import/Makefile.am: Update.
899 * gnulib/import/Makefile.in: Update.
900 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
901 * gnulib/import/_Noreturn.h: ... this.
902 * gnulib/import/alloca.in.h: Update.
903 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
904 * gnulib/import/arg-nonnull.h: ... this.
905 * gnulib/import/assure.h: Update.
906 * gnulib/import/at-func.c: Update.
907 * gnulib/import/basename-lgpl.c: Update.
908 * gnulib/import/extra/snippet/c++defs.h: Rename to...
909 * gnulib/import/c++defs.h: ... this.
910 * gnulib/import/canonicalize-lgpl.c: Update.
911 * gnulib/import/cdefs.h: Update.
912 * gnulib/import/chdir-long.c: Update.
913 * gnulib/import/chdir-long.h: Update.
914 * gnulib/import/cloexec.c: Update.
915 * gnulib/import/cloexec.h: Update.
916 * gnulib/import/close.c: Update.
917 * gnulib/import/closedir.c: Update.
918 * gnulib/import/config.charset: Update.
919 * gnulib/import/dirent-private.h: Update.
920 * gnulib/import/dirent.in.h: Update.
921 * gnulib/import/dirfd.c: Update.
922 * gnulib/import/dirname-lgpl.c: Update.
923 * gnulib/import/dirname.h: Update.
924 * gnulib/import/dosname.h: Update.
925 * gnulib/import/dup-safer-flag.c: Update.
926 * gnulib/import/dup-safer.c: Update.
927 * gnulib/import/dup.c: Update.
928 * gnulib/import/dup2.c: Update.
929 * gnulib/import/errno.in.h: Update.
930 * gnulib/import/error.c: Update.
931 * gnulib/import/error.h: Update.
932 * gnulib/import/exitfail.c: Update.
933 * gnulib/import/exitfail.h: Update.
934 * gnulib/import/extra/update-copyright: Update.
935 * gnulib/import/fchdir.c: Update.
936 * gnulib/import/fcntl.c: Update.
937 * gnulib/import/fcntl.in.h: Update.
938 * gnulib/import/fd-hook.c: Update.
939 * gnulib/import/fd-hook.h: Update.
940 * gnulib/import/fd-safer-flag.c: Update.
941 * gnulib/import/fd-safer.c: Update.
942 * gnulib/import/fdopendir.c: Update.
943 * gnulib/import/filename.h: Update.
944 * gnulib/import/filenamecat-lgpl.c: Update.
945 * gnulib/import/filenamecat.h: Update.
946 * gnulib/import/flexmember.h: Update.
947 * gnulib/import/float+.h: Update.
948 * gnulib/import/float.c: Update.
949 * gnulib/import/float.in.h: Update.
950 * gnulib/import/fnmatch.c: Update.
951 * gnulib/import/fnmatch.in.h: Update.
952 * gnulib/import/fnmatch_loop.c: Update.
953 * gnulib/import/fpucw.h: Update.
954 * gnulib/import/frexp.c: Update.
955 * gnulib/import/frexpl.c: Update.
956 * gnulib/import/fstat.c: Update.
957 * gnulib/import/fstatat.c: Update.
958 * gnulib/import/getcwd-lgpl.c: Update.
959 * gnulib/import/getcwd.c: Update.
960 * gnulib/import/getdtablesize.c: Update.
961 * gnulib/import/getlogin_r.c: Update.
962 * gnulib/import/getprogname.c: Update.
963 * gnulib/import/getprogname.h: Update.
964 * gnulib/import/gettext.h: Update.
965 * gnulib/import/gettimeofday.c: Update.
966 * gnulib/import/glob-libc.h: Update.
967 * gnulib/import/glob.c: Update.
968 * gnulib/import/glob.in.h: Update.
969 * gnulib/import/glob_internal.h: Update.
970 * gnulib/import/glob_pattern_p.c: Update.
971 * gnulib/import/globfree.c: Update.
972 * gnulib/import/hard-locale.c: Update.
973 * gnulib/import/hard-locale.h: Update.
974 * gnulib/import/intprops.h: Update.
975 * gnulib/import/inttypes.in.h: Update.
976 * gnulib/import/isnan.c: Update.
977 * gnulib/import/isnand-nolibm.h: Update.
978 * gnulib/import/isnand.c: Update.
979 * gnulib/import/isnanl-nolibm.h: Update.
980 * gnulib/import/isnanl.c: Update.
981 * gnulib/import/itold.c: Update.
982 * gnulib/import/libc-config.h: Update.
983 * gnulib/import/limits.in.h: Update.
984 * gnulib/import/localcharset.c: Update.
985 * gnulib/import/localcharset.h: Update.
986 * gnulib/import/localtime-buffer.c: Update.
987 * gnulib/import/localtime-buffer.h: Update.
988 * gnulib/import/lstat.c: Update.
989 * gnulib/import/m4/00gnulib.m4: Update.
990 * gnulib/import/m4/__inline.m4: Update.
991 * gnulib/import/m4/absolute-header.m4: Update.
992 * gnulib/import/m4/alloca.m4: Update.
993 * gnulib/import/m4/builtin-expect.m4: Update.
994 * gnulib/import/m4/canonicalize.m4: Update.
995 * gnulib/import/m4/chdir-long.m4: Update.
996 * gnulib/import/m4/close.m4: Update.
997 * gnulib/import/m4/closedir.m4: Update.
998 * gnulib/import/m4/configmake.m4: Update.
999 * gnulib/import/m4/d-ino.m4: Update.
1000 * gnulib/import/m4/d-type.m4: Update.
1001 * gnulib/import/m4/dirent_h.m4: Update.
1002 * gnulib/import/m4/dirfd.m4: Update.
1003 * gnulib/import/m4/dirname.m4: Update.
1004 * gnulib/import/m4/double-slash-root.m4: Update.
1005 * gnulib/import/m4/dup.m4: Update.
1006 * gnulib/import/m4/dup2.m4: Update.
1007 * gnulib/import/m4/eealloc.m4: Update.
1008 * gnulib/import/m4/environ.m4: Update.
1009 * gnulib/import/m4/errno_h.m4: Update.
1010 * gnulib/import/m4/error.m4: Update.
1011 * gnulib/import/m4/exponentd.m4: Update.
1012 * gnulib/import/m4/exponentl.m4: Update.
1013 * gnulib/import/m4/extensions.m4: Update.
1014 * gnulib/import/m4/extern-inline.m4: Update.
1015 * gnulib/import/m4/fchdir.m4: Update.
1016 * gnulib/import/m4/fcntl-o.m4: Update.
1017 * gnulib/import/m4/fcntl.m4: Update.
1018 * gnulib/import/m4/fcntl_h.m4: Update.
1019 * gnulib/import/m4/fdopendir.m4: Update.
1020 * gnulib/import/m4/filenamecat.m4: Update.
1021 * gnulib/import/m4/flexmember.m4: Update.
1022 * gnulib/import/m4/float_h.m4: Update.
1023 * gnulib/import/m4/fnmatch.m4: Update.
1024 * gnulib/import/m4/fnmatch_h.m4: Update.
1025 * gnulib/import/m4/fpieee.m4: Update.
1026 * gnulib/import/m4/frexp.m4: Update.
1027 * gnulib/import/m4/frexpl.m4: Update.
1028 * gnulib/import/m4/fstat.m4: Update.
1029 * gnulib/import/m4/fstatat.m4: Update.
1030 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1031 * gnulib/import/m4/getcwd-path-max.m4: Update.
1032 * gnulib/import/m4/getcwd.m4: Update.
1033 * gnulib/import/m4/getdtablesize.m4: Update.
1034 * gnulib/import/m4/getlogin.m4: Update.
1035 * gnulib/import/m4/getlogin_r.m4: Update.
1036 * gnulib/import/m4/getpagesize.m4: Update.
1037 * gnulib/import/m4/getprogname.m4: Update.
1038 * gnulib/import/m4/gettimeofday.m4: Update.
1039 * gnulib/import/m4/glibc21.m4: Update.
1040 * gnulib/import/m4/glob.m4: Update.
1041 * gnulib/import/m4/glob_h.m4: Update.
1042 * gnulib/import/m4/gnulib-cache.m4: Update.
1043 * gnulib/import/m4/gnulib-common.m4: Update.
1044 * gnulib/import/m4/gnulib-comp.m4: Update.
1045 * gnulib/import/m4/gnulib-tool.m4: Update.
1046 * gnulib/import/m4/hard-locale.m4: Update.
1047 * gnulib/import/m4/include_next.m4: Update.
1048 * gnulib/import/m4/inttypes-pri.m4: Update.
1049 * gnulib/import/m4/inttypes.m4: Update.
1050 * gnulib/import/m4/isnand.m4: Update.
1051 * gnulib/import/m4/isnanl.m4: Update.
1052 * gnulib/import/m4/largefile.m4: Update.
1053 * gnulib/import/m4/limits-h.m4: Update.
1054 * gnulib/import/m4/localcharset.m4: Update.
1055 * gnulib/import/m4/locale-fr.m4: Update.
1056 * gnulib/import/m4/locale-ja.m4: Update.
1057 * gnulib/import/m4/locale-zh.m4: Update.
1058 * gnulib/import/m4/localtime-buffer.m4: Update.
1059 * gnulib/import/m4/longlong.m4: Update.
1060 * gnulib/import/m4/lstat.m4: Update.
1061 * gnulib/import/m4/malloc.m4: Update.
1062 * gnulib/import/m4/malloca.m4: Update.
1063 * gnulib/import/m4/math_h.m4: Update.
1064 * gnulib/import/m4/mbrtowc.m4: Update.
1065 * gnulib/import/m4/mbsinit.m4: Update.
1066 * gnulib/import/m4/mbsrtowcs.m4: Update.
1067 * gnulib/import/m4/mbstate_t.m4: Update.
1068 * gnulib/import/m4/memchr.m4: Update.
1069 * gnulib/import/m4/memmem.m4: Update.
1070 * gnulib/import/m4/mempcpy.m4: Update.
1071 * gnulib/import/m4/memrchr.m4: Update.
1072 * gnulib/import/m4/mkdir.m4: Update.
1073 * gnulib/import/m4/mkstemp.m4: Update.
1074 * gnulib/import/m4/mmap-anon.m4: Update.
1075 * gnulib/import/m4/mode_t.m4: Update.
1076 * gnulib/import/m4/msvc-inval.m4: Update.
1077 * gnulib/import/m4/msvc-nothrow.m4: Update.
1078 * gnulib/import/m4/multiarch.m4: Update.
1079 * gnulib/import/m4/nocrash.m4: Update.
1080 * gnulib/import/m4/off_t.m4: Update.
1081 * gnulib/import/m4/onceonly.m4: Update.
1082 * gnulib/import/m4/open-cloexec.m4: Update.
1083 * gnulib/import/m4/open.m4: Update.
1084 * gnulib/import/m4/openat.m4: Update.
1085 * gnulib/import/m4/opendir.m4: Update.
1086 * gnulib/import/m4/pathmax.m4: Update.
1087 * gnulib/import/m4/rawmemchr.m4: Update.
1088 * gnulib/import/m4/readdir.m4: Update.
1089 * gnulib/import/m4/readlink.m4: Update.
1090 * gnulib/import/m4/realloc.m4: Update.
1091 * gnulib/import/m4/rename.m4: Update.
1092 * gnulib/import/m4/rewinddir.m4: Update.
1093 * gnulib/import/m4/rmdir.m4: Update.
1094 * gnulib/import/m4/save-cwd.m4: Update.
1095 * gnulib/import/m4/secure_getenv.m4: Update.
1096 * gnulib/import/m4/setenv.m4: Update.
1097 * gnulib/import/m4/signal_h.m4: Update.
1098 * gnulib/import/m4/ssize_t.m4: Update.
1099 * gnulib/import/m4/stat-time.m4: Update.
1100 * gnulib/import/m4/stat.m4: Update.
1101 * gnulib/import/m4/std-gnu11.m4: Update.
1102 * gnulib/import/m4/stdbool.m4: Update.
1103 * gnulib/import/m4/stddef_h.m4: Update.
1104 * gnulib/import/m4/stdint.m4: Update.
1105 * gnulib/import/m4/stdio_h.m4: Update.
1106 * gnulib/import/m4/stdlib_h.m4: Update.
1107 * gnulib/import/m4/strchrnul.m4: Update.
1108 * gnulib/import/m4/strdup.m4: Update.
1109 * gnulib/import/m4/strerror.m4: Update.
1110 * gnulib/import/m4/string_h.m4: Update.
1111 * gnulib/import/m4/strstr.m4: Update.
1112 * gnulib/import/m4/strtok_r.m4: Update.
1113 * gnulib/import/m4/sys_socket_h.m4: Update.
1114 * gnulib/import/m4/sys_stat_h.m4: Update.
1115 * gnulib/import/m4/sys_time_h.m4: Update.
1116 * gnulib/import/m4/sys_types_h.m4: Update.
1117 * gnulib/import/m4/tempname.m4: Update.
1118 * gnulib/import/m4/time_h.m4: Update.
1119 * gnulib/import/m4/unistd-safer.m4: Update.
1120 * gnulib/import/m4/unistd_h.m4: Update.
1121 * gnulib/import/m4/warn-on-use.m4: Update.
1122 * gnulib/import/m4/wchar_h.m4: Update.
1123 * gnulib/import/m4/wchar_t.m4: Update.
1124 * gnulib/import/m4/wctype_h.m4: Update.
1125 * gnulib/import/m4/wint_t.m4: Update.
1126 * gnulib/import/malloc.c: Update.
1127 * gnulib/import/malloc/scratch_buffer.h: Update.
1128 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1129 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1130 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1131 * gnulib/import/malloca.c: Update.
1132 * gnulib/import/malloca.h: Update.
1133 * gnulib/import/malloca.valgrind: Update.
1134 * gnulib/import/math.in.h: Update.
1135 * gnulib/import/mbrtowc.c: Update.
1136 * gnulib/import/mbsinit.c: Update.
1137 * gnulib/import/mbsrtowcs-impl.h: Update.
1138 * gnulib/import/mbsrtowcs-state.c: Update.
1139 * gnulib/import/mbsrtowcs.c: Update.
1140 * gnulib/import/memchr.c: Update.
1141 * gnulib/import/memmem.c: Update.
1142 * gnulib/import/mempcpy.c: Update.
1143 * gnulib/import/memrchr.c: Update.
1144 * gnulib/import/mkdir.c: Update.
1145 * gnulib/import/mkstemp.c: Update.
1146 * gnulib/import/msvc-inval.c: Update.
1147 * gnulib/import/msvc-inval.h: Update.
1148 * gnulib/import/msvc-nothrow.c: Update.
1149 * gnulib/import/msvc-nothrow.h: Update.
1150 * gnulib/import/open.c: Update.
1151 * gnulib/import/openat-die.c: Update.
1152 * gnulib/import/openat-priv.h: Update.
1153 * gnulib/import/openat-proc.c: Update.
1154 * gnulib/import/openat.c: Update.
1155 * gnulib/import/openat.h: Update.
1156 * gnulib/import/opendir.c: Update.
1157 * gnulib/import/pathmax.h: Update.
1158 * gnulib/import/pipe-safer.c: Update.
1159 * gnulib/import/rawmemchr.c: Update.
1160 * gnulib/import/readdir.c: Update.
1161 * gnulib/import/readlink.c: Update.
1162 * gnulib/import/realloc.c: Update.
1163 * gnulib/import/ref-add.sin: Update.
1164 * gnulib/import/ref-del.sin: Update.
1165 * gnulib/import/rename.c: Update.
1166 * gnulib/import/rewinddir.c: Update.
1167 * gnulib/import/rmdir.c: Update.
1168 * gnulib/import/same-inode.h: Update.
1169 * gnulib/import/save-cwd.c: Update.
1170 * gnulib/import/save-cwd.h: Update.
1171 * gnulib/import/scratch_buffer.h: Update.
1172 * gnulib/import/secure_getenv.c: Update.
1173 * gnulib/import/setenv.c: Update.
1174 * gnulib/import/signal.in.h: Update.
1175 * gnulib/import/stat-time.c: Update.
1176 * gnulib/import/stat-time.h: Update.
1177 * gnulib/import/stat-w32.c: Update.
1178 * gnulib/import/stat-w32.h: Update.
1179 * gnulib/import/stat.c: Update.
1180 * gnulib/import/stdbool.in.h: Update.
1181 * gnulib/import/stddef.in.h: Update.
1182 * gnulib/import/stdint.in.h: Update.
1183 * gnulib/import/stdio.in.h: Update.
1184 * gnulib/import/stdlib.in.h: Update.
1185 * gnulib/import/str-two-way.h: Update.
1186 * gnulib/import/strchrnul.c: Update.
1187 * gnulib/import/strdup.c: Update.
1188 * gnulib/import/streq.h: Update.
1189 * gnulib/import/strerror-override.c: Update.
1190 * gnulib/import/strerror-override.h: Update.
1191 * gnulib/import/strerror.c: Update.
1192 * gnulib/import/string.in.h: Update.
1193 * gnulib/import/stripslash.c: Update.
1194 * gnulib/import/strnlen1.c: Update.
1195 * gnulib/import/strnlen1.h: Update.
1196 * gnulib/import/strstr.c: Update.
1197 * gnulib/import/strtok_r.c: Update.
1198 * gnulib/import/sys_stat.in.h: Update.
1199 * gnulib/import/sys_time.in.h: Update.
1200 * gnulib/import/sys_types.in.h: Update.
1201 * gnulib/import/tempname.c: Update.
1202 * gnulib/import/tempname.h: Update.
1203 * gnulib/import/time.in.h: Update.
1204 * gnulib/import/unistd--.h: Update.
1205 * gnulib/import/unistd-safer.h: Update.
1206 * gnulib/import/unistd.in.h: Update.
1207 * gnulib/import/unsetenv.c: Update.
1208 * gnulib/import/verify.h: Update.
1209 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1210 * gnulib/import/wchar.in.h: Update.
1211 * gnulib/import/wctype.in.h: Update.
1212 * gnulib/import/xalloc-oversized.h: Update.
1213 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1214 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1216 2018-08-16 Gary Benson <gbenson@redhat.com>
1219 * gdb/main.c (captured_main_1): Exit with nonzero status
1220 in batch mode if the last command to be executed failed.
1221 * NEWS: Mention the above.
1223 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1225 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1226 end of warning message.
1228 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1231 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1232 (aarch64_extract_return_value): Use
1233 aapcs_is_vfp_call_or_return_candidate.
1234 (aarch64_return_in_memory): Likewise.
1235 (aarch64_store_return_value): Likewise.
1237 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1240 (aapcs_is_vfp_call_or_return_candidate): Make static
1241 (pass_in_v_or_stack): Remove function.
1242 (pass_in_v_vfp_candidate): New function.
1243 (aarch64_push_dummy_call): Check for float register candidates.
1245 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1247 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1248 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1249 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1251 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1254 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1255 (struct ipa_sym_addresses): Rename to...
1256 (struct ipa_sym_addresses_common): ... this.
1257 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1259 2018-08-28 Tom Tromey <tom@tromey.com>
1261 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1262 (token_fifo): Now a std::vector.
1263 (yylex, c_parse): Update.
1264 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1265 (token_fifo): Now a std::vector.
1266 (yylex, d_parse): Update.
1267 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1268 (token_fifo): Now a std::vector.
1269 (yylex, go_parse): Update.
1271 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1273 * parser-defs.h (struct type_stack) <elements>: Change type to
1274 std::vector<union type_stack_elt>.
1275 <depth, size>: Remove.
1276 * parse.c (parse_exp_in_context_1): Adjust.
1277 (type_stack_reserve): Remove.
1278 (check_type_stack_depth): Remove.
1279 (insert_into_type_stack): Adjust to std::vector.
1280 (insert_type): Likewise.
1281 (push_type): Likewise.
1282 (push_type_int): Likewise.
1283 (insert_type_address_space): Likewise.
1284 (pop_type): Likewise.
1285 (pop_type_int): Likewise.
1286 (pop_typelist): Likewise.
1287 (pop_type_stack): Likewise.
1288 (append_type_stack): Likewise.
1289 (push_type_stack): Likewise.
1290 (get_type_stack): Likewise.
1291 (type_stack_cleanup): Likewise.
1292 (push_typelist): Likewise.
1293 (follow_types): Likewise.
1294 (_initialize_parse): Likewise.
1296 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1298 * NEWS: Mention csky target.
1300 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1301 Hafiz Abid Qadeer <abidh@codesourcery.com>
1302 Don Breazeal <donb@codesourcery.com>
1304 * csky-linux-tdep.c: New file.
1305 * csky-tdep.c: Likewise.
1306 * csky-tdep.h: Likewise.
1307 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1309 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1310 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1311 * configure.tgt: Add csky support.
1313 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1315 * python/py-framefilter.c (py_print_frame): Print frame architecture
1316 when printing on an MI output.
1318 2018-08-27 Tom Tromey <tom@tromey.com>
1321 * configure: Rebuild.
1322 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1324 2018-08-27 Tom Tromey <tom@tromey.com>
1326 * aarch64-linux-tdep.c
1327 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1330 2018-08-27 Tom Tromey <tom@tromey.com>
1332 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1334 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1335 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1336 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1337 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1340 2018-08-27 Tom Tromey <tom@tromey.com>
1342 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1343 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1345 2018-08-27 Tom Tromey <tom@tromey.com>
1347 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1348 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1350 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1352 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1354 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1355 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1356 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1358 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1359 (ppc64_linux_sigaction_tramp_frame)
1360 (ppc32_linux_sighandler_tramp_frame)
1361 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1362 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1363 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1364 * mn10300-linux-tdep.c (am33_linux_sigframe)
1365 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1366 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1367 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1368 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1369 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1370 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1371 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1372 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1373 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1374 * microblaze-linux-tdep.c
1375 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1376 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1377 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1378 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1379 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1380 * common/common-types.h (ULONGEST_MAX): New define.
1381 (CORE_ADDR_MAX): Fix formatting.
1382 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1383 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1384 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1385 (arm_linux_rt_sigreturn_tramp_frame)
1386 (arm_eabi_linux_sigreturn_tramp_frame)
1387 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1388 (thumb2_eabi_linux_sigreturn_tramp_frame)
1389 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1390 (arm_linux_restart_syscall_tramp_frame)
1391 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1392 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1393 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1395 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1397 2018-08-27 Tom Tromey <tom@tromey.com>
1399 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1401 * mips-tdep.c (mips_deal_with_atomic_sequence)
1402 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1403 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1404 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1405 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1407 * aarch64-tdep.c (aarch64_software_single_step): Use
1410 2018-08-27 Tom Tromey <tom@tromey.com>
1412 * linespec.c (complete_linespec_component): Add cast to "char".
1413 * completer.c (completion_tracker::build_completion_result): Add
1416 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1418 * solist.h (struct solist, struct target_so_ops): Fix
1421 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1423 * ada-tasks.c (ada_task_info_s): Remove typedef.
1424 (DEF_VEC_O(ada_task_info_s)): Remove.
1425 (struct ada_tasks_inferior_data): Initialize fields.
1426 <task_list>: Make an std::vector.
1427 (get_ada_tasks_inferior_data): Allocate with new.
1428 (ada_get_task_number): Adjust.
1429 (get_task_number_from_id): Likewise.
1430 (valid_task_id): Likewise.
1431 (ada_get_task_info_from_ptid): Likewise.
1432 (iterate_over_live_ada_tasks): Likewise.
1433 (add_ada_task): Likewise.
1434 (read_known_tasks): Likewise.
1435 (ada_build_task_list): Likewise.
1436 (print_ada_task_info): Likewise.
1437 (info_task): Likewise.
1438 (task_command_1): Likewise.
1440 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1442 * ada-lang.c (add_angle_brackets): Return std::string.
1444 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
1446 * python/py-threadevent.c (py_get_event_thread): Initialize
1449 2018-08-24 Pedro Alves <palves@redhat.com>
1451 * python/py-bpevent.c (create_breakpoint_event_object): Use
1452 copy-initialization.
1453 * python/py-continueevent.c (emit_continue_event): Use
1454 copy-initialization.
1455 * python/py-exitedevent.c (create_exited_event_object): Return a
1457 (emit_exited_event): Use copy-initialization.
1458 * python/py-inferior.c (python_new_inferior)
1459 (python_inferior_deleted, add_thread_object): Use
1460 copy-initialization.
1461 * python/py-infevents.c (create_inferior_call_event_object)
1462 (create_register_changed_event_object)
1463 (create_memory_changed_event_object): Return a gdbpy_ref<>.
1464 (emit_inferior_call_event, emit_memory_changed_event)
1465 (emit_register_changed_event): Use copy-initialization.
1466 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1467 Return a gdbpy_ref<>.
1468 (emit_new_objfile_event): Use copy-initialization.
1469 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
1470 (emit_clear_objfiles_event): Use copy-initialization.
1471 * python/py-signalevent.c (create_signal_event_object): Use
1472 copy-initialization.
1473 * python/py-threadevent.c (create_thread_event_object): Use
1474 copy-initialization.
1476 2018-08-24 Pedro Alves <palves@redhat.com>
1477 Simon Marchi <simon.marchi@ericsson.com>
1480 * python/py-continueevent.c: Include "gdbthread.h".
1481 (create_continue_event_object): Add intro comment. Add 'ptid'
1482 parameter. Use it to find thread to pass to
1483 create_thread_event_object.
1484 (emit_continue_event): Pass PTID down to
1485 create_continue_event_object.
1486 * python/py-event.h (py_get_event_thread): Declare.
1487 (create_thread_event_object): Remove default from 'thread'
1489 * python/py-stopevent.c (create_stop_event_object): Use
1490 py_get_event_thread.
1491 * python/py-threadevent.c (get_event_thread): Rename to ...
1492 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
1493 and use it to find the thread.
1494 (create_thread_event_object): Assert that THREAD isn't null.
1495 Don't find the event thread here.
1497 2018-08-23 Kevin Buettner <kevinb@redhat.com>
1499 * block.h (blockrange, blockranges): New struct declarations.
1500 (struct block): Add new field named `ranges'.
1501 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
1502 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
1503 macros for accessing ranges in struct block.
1504 (make_blockranges): New declaration.
1505 block.c (make_blockranges): New function.
1506 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
1508 * symtab.h (find_pc_partial_function): Add new parameter `block'.
1509 * blockframe.c (cache_pc_function_block): New static global.
1510 (clear_pc_function_cache): Clear cache_pc_function_block.
1511 (find_pc_partial_function): Move comment to symtab.h. Add
1512 support for non-contiguous blocks.
1513 * cli/cli-cmds.c (block.h): Include.
1514 (print_disassembly): Handle printing of non-contiguous blocks.
1515 (disassemble_current_function): Likewise.
1516 (disassemble_command): Likewise.
1518 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
1520 * blockframe.c (get_pc_function_start): Likewise.
1521 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
1522 (gcc_symbol_address): Likewise.
1523 * compile/compile-object-run.c (compile_object_run): Likewise.
1524 * compile/compile.c (get_expr_block_and_pc): Likewise.
1525 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
1526 (func_addr_to_tail_call_list): Likewise.
1527 * findvar.c (default_read_var_value): Likewise.
1528 * inline-frame.c (inline_frame_this_id): Likewise.
1529 (skip-inline_frames): Likewise.
1530 * infcmd.c (until_next_command): Likewise.
1531 * linespec.c (convert_linespec_to_sals): Likewise.
1532 * parse.c (parse_exp_in_context_1): Likewise.
1533 * printcmd.c (build_address_symbolic): likewise.
1534 (info_address_command): Likewise.
1535 symtab.c (find_function_start_sal): Likewise.
1536 (skip_prologue_sal): Likewise.
1537 (find_function_alias_target): Likewise.
1538 (find_gnu_ifunc): Likewise.
1539 * stack.c (find_frame_funname): Likewise.
1540 * symtab.c (fixup_symbol_section): Likewise.
1541 (find_function_start_sal): Likewise.
1542 (skip_prologue_sal): Likewsie.
1543 (find_function_alias_target): Likewise.
1544 (find_gnu_ifunc): Likewise.
1545 * tracepoint.c (info_scope_command): Likewise.
1546 * value.c (value_fn_field): Likewise.
1548 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
1549 in place of find_pc_partial_function.
1550 * blockframe.c (find_function_entry_range_from_pc): New function.
1551 * symtab.h (find_function_entry_range_from_pc): Declare and document.
1552 * objfiles.c (objfile_relocate1): Relocate start and end addresses
1553 for each range in a block.
1556 2018-08-23 Xavier Roirand <roirand@adacore.com>
1558 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
1561 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1563 * solib-svr4.c (read_program_headers_from_bfd): Return
1564 gdb::optional<gdb::byte_vector>.
1565 (svr4_exec_displacement): Adjust.
1567 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1569 * solib-svr4.c (read_program_header): Return
1570 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
1571 (find_program_interpreter): Return
1572 gdb::optional<gdb::byte_vector>.
1573 (scan_dyntag_auxv): Adjust.
1574 (enable_break): Adjust.
1575 (svr4_exec_displacement): Adjust.
1577 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1579 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
1580 * inf-child.c (inf_child_target::terminal_save_inferior): New.
1582 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1584 * guile/scm-string.c (gdbscm_scm_from_printf): Use
1586 * guile/scm-utils.c (gdbscm_printf): Likewise.
1587 * serial.c (serial_printf): Likewise.
1588 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
1590 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
1592 * stack.c (print_frame): Print frame architecture when printing on
1594 * NEWS: Mention new "arch" attribute in frame output.
1596 2018-08-21 Alan Hayward <alan.hayward@arm.com>
1598 * arch/aarch64.h (aarch64_regnum): Update comment.
1600 2018-08-21 Alan Hayward <alan.hayward@arm.com>
1602 * NEWS: Add SVE to 8.2 section.
1604 2018-08-21 Pedro Alves <palves@redhat.com>
1606 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
1607 out from gdbscm_parse_function_args.
1608 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
1609 gdbscm_parse_function_args_1.
1611 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
1614 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
1617 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
1619 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
1621 2018-08-19 Michael Spang <spang@google.com>
1624 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
1625 for PT_TLS segments.
1627 2018-08-18 Kevin Buettner <kevinb@redhat.com>
1629 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
1630 dwarf_variable_value.
1631 * dwarf2-frame.c (class dwarf_expr_executor):
1632 Add override for dwarf_variable_value.
1633 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
1634 (class symbol_needs_eval_context): Likewise.
1635 (indirect_synthetic_pointer): Add forward declaration.
1636 (sect_variable_value): New function.
1637 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
1638 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
1639 for DW_OP_GNU_variable_value.
1641 2018-08-16 Tom Tromey <tom@tromey.com>
1643 * top.c (read_command_file): Update.
1644 (command_line_input): Remove "repeat" argument.
1645 * ada-lang.c (get_selections): Update.
1646 * linespec.c (decode_line_2): Update.
1647 * defs.h (command_line_input): Remove argument.
1648 * cli/cli-script.c (read_next_line): Update.
1649 * python/py-gdb-readline.c: Update.
1651 2018-08-17 Tom Tromey <tom@tromey.com>
1653 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
1656 2018-08-15 Tom Tromey <tom@tromey.com>
1658 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
1660 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
1662 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
1663 If used, use find_pc_partial_function to find address range
1665 * mi/mi-main.c (mi_cmd_list_features): Report
1666 "data-disassemble-a-option" feature.
1667 * NEWS: Mention new -data-disassemble option -a.
1669 2018-08-13 Tom Tromey <tom@tromey.com>
1671 * common/common-defs.h (_FORTIFY_SOURCE): Define.
1673 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1675 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
1676 (aarch64_linux_collect_sve_regset): Likewise.
1677 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
1678 * regcache.h (regcache_map_entry_size): New function.
1680 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1682 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
1683 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
1684 (SVE_HEADER_VL_LENGTH): Likewise.
1685 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
1686 (SVE_HEADER_FLAGS_LENGTH): Likewise.
1687 (SVE_HEADER_RESERVED_LENGTH): Likewise.
1688 (SVE_HEADER_SIZE_OFFSET): Likewise.
1689 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
1690 (SVE_HEADER_VL_OFFSET): Likewise.
1691 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
1692 (SVE_HEADER_FLAGS_OFFSET): Likewise.
1693 (SVE_HEADER_RESERVED_OFFSET): Likewise.
1694 (SVE_HEADER_SIZE): Likewise.
1695 (aarch64_linux_core_read_vq): Add function.
1696 (aarch64_linux_core_read_description): Check for SVE section.
1698 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1700 * aarch64-fbsd-tdep.c
1701 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
1703 * aarch64-linux-tdep.c
1704 (aarch64_linux_iterate_over_regset_sections): Likewise.
1705 * alpha-linux-tdep.c
1706 (alpha_linux_iterate_over_regset_sections):
1708 (alphanbsd_iterate_over_regset_sections): Likewise.
1710 (amd64fbsd_iterate_over_regset_sections): Likewise.
1711 * amd64-linux-tdep.c
1712 (amd64_linux_iterate_over_regset_sections): Likewise.
1714 (armbsd_iterate_over_regset_sections): Likewise.
1716 (arm_fbsd_iterate_over_regset_sections): Likewise.
1718 (arm_linux_iterate_over_regset_sections): Likewise.
1719 * corelow.c (get_core_registers_cb): Likewise.
1720 (core_target::fetch_registers): Likewise.
1721 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1722 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
1723 * gdbarch.h (void): Regenerate.
1724 * gdbarch.sh: Add supply_size and collect_size.
1725 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
1726 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
1727 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
1728 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
1729 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
1730 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
1731 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
1732 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
1733 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
1734 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
1735 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
1736 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
1737 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
1738 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
1739 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
1740 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
1741 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
1742 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
1743 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
1744 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
1745 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
1746 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
1747 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
1748 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
1749 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
1750 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
1751 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
1752 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
1753 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
1754 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
1756 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
1758 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
1761 2018-08-10 Keith Seitz <keiths@redhat.com>
1763 * compile/compile-c-support.c (add_code_header, add_code_footer):
1764 Move into policy class.
1765 (c_push_user_expression, pop_user_expression_nop)
1766 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
1767 (compile_program): New host class.
1768 (c_compile_program): New typedef.
1769 (c_compute_porgram): Use c_compile_program.
1771 2018-08-10 Keith Seitz <keiths@redhat.com>
1773 * compile/compile-internal.h (compile_instance::~compile_instance):
1774 Remove calls to htab_delete.
1775 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
1776 * compile.c (compile_instance::compile_instance): Initialize
1777 htab unique pointers.
1778 (compile_instance::get_cached_type, compile_instance::insert_type)
1779 (compile_instance::error_symbol_once): Update for unique_ptr.
1781 2018-08-10 Keith Seitz <keiths@redhat.com>
1783 * compile/compile-c-symbols.c (struct symbol_error)
1784 (hash_symbol_error, eq_symbol_error, del_symbol_error)
1785 (compile_instance::insert_symbol_error)
1786 (compile_instance::error_symbol_once): Move to ...
1787 * compile/compile.c: ... here.
1789 2018-08-10 Keith Seitz <keiths@redhat.com>
1791 * compile/compile-c-support.c (c_get_compile_context): Use `new'
1792 instead of `new_compile_instance'.
1793 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
1795 If the symbol error map is not initialized, create it.
1796 (generate_c_for_for_one_symbol): Do not check/initialize
1797 the symbol error map.
1798 * compile/compile-c-types.c (compile_c_instance): Make a class.
1800 (compile_instance::compile_instance): Initialize the type cache.
1801 (get_cached_type): New function.
1802 (insert_type): Update description.
1803 (compile_c_instance::m_default_cflags): Define.
1804 (convert_type): Update description. Use get_cached_type.
1805 (delete_instance): Moved to destructor.
1806 (new_compile_instance): Moved to constructor.
1807 * compile/compile-c.h (compile_c_instance): Make class inheriting
1808 from compile_instance.
1809 <base>: Remove field.
1810 <type_map, symbol_err_map>: Move to base class.
1811 <c_plugin>: Rename to `m_plugin' and remove pointer type.
1812 * compile/compile-internal.h (compile_instance): Make class.
1813 <type_map_t, symbol_err_map_t>: Define.
1814 <fe>: Rename to `m_gcc_fe'.
1815 <scope, block, gcc_target_options>: Add `m_' prefix.
1816 <m_type_map, m_symbol_err_map>: New fields, moved from
1819 (convert_type, new_compile_instance): Remove.
1820 * compile/compile.c (cleanup_compile_instance): Remove.
1821 (compile_to_object): Use unique_ptr to eliminate cleanups.
1822 (compile_instance::set_print_callback, compile_instance::version)
1823 (compile_instance::set_verbose)
1824 (compile_instance::set_driver_filename)
1825 (compile_instance::set_triplet_regexp)
1826 (compile_instance::set_arguments)
1827 (compile_instance::set_source_file)
1828 (compile_instance::compile): Define.
1830 2018-08-10 Keith Seitz <keiths@redhat.com>
1832 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
1833 * compile/compile-c-types.c: Define GCC_METHODN macros and include
1834 gcc-c-fe.def to define C plugin.
1835 (delete_instance): Delete `c_plugin'.
1836 (new_compile_instance): Initialize `c_plugin'.
1837 * compile/compile-c.h: Include gcc_c_plugin.h.
1838 (struct compile_c_instance) <c_plugin>: New member.
1839 * gcc-c-plugin.h: New file.
1840 Update all callers with API change.
1842 2018-08-10 Keith Seitz <keiths@redhat.com>
1844 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
1845 (HFILES_NO_SRCDIR): ... to here.
1846 Add compile-internal.h and compile-c.h.
1847 * compile/compile-c-support.c: Include compile-c.h.
1848 * compile/compile-c-symbols.c: Include compile-c.h.
1849 (generate_c_for_variable_locations): Update comment.
1850 * compile/compile-c-types.c: Include compile-c.h.
1851 * compile/compile-c.h: New file -- moved C language declarations
1852 from other files here.
1853 * compile/compile-internal.h: Do not include hashtab.h or
1854 common/enum-flags.h.
1855 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
1856 (gcc_convert_symbol, gcc_symbol_address)
1857 (generate_c_for_variable_locations, c_get_mode_for_size)
1858 (c_get_range_decl_name): Definitions moved to compile-c.h.
1859 * compile/compile-loc2c.c: Include compile-c.h.
1861 2018-08-10 Keith Seitz <keiths@redhat.com>
1863 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
1864 (c_symbol_substitution_name): ... this.
1867 2018-08-10 Keith Seitz <keiths@redhat.com>
1869 * compile/compile-c-support.c (c_compute_program): Use
1870 unique_xmalloc_ptr to eliminate cleanup.
1871 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
1872 Return a unique_xmalloc_ptr and eliminate cleanup.
1873 * compile/compile-internal.h (generate_c_for_variable_locations):
1874 Return unique_xmalloc_ptr and update description.
1876 2018-08-10 Alan Hayward <alan.hayward@arm.com>
1878 * corelow.c (core_target::get_core_register_section): Rename
1879 min_size to section_min_size.
1881 2018-08-09 Jim Wilson <jimw@sifive.com>
1883 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
1884 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
1885 * NEWS: Mention new GNU/Linux RISC-V target.
1886 * configure.host: Add riscv*-*-linux*.
1887 * configure.nat: Add riscv*.
1888 * configure.tgt: Add riscv*-*-linux*.
1889 * riscv-linux-nat.c: New file.
1890 * riscv-linux-tdep.c: New file.
1892 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1894 * infrun.c (resume): Make static, add forward declaration.
1895 (proceed): Update header comment.
1896 * infrun.h (resume): Delete declaration.
1898 2018-08-09 Tom Tromey <tom@tromey.com>
1900 * riscv-tdep.h: Minor formatting fixes.
1902 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
1904 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
1905 * dwarf-index-cache.c (create_dir_and_check): Likewise.
1906 (test_mkdir_recursive): Likewise.
1907 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
1909 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1911 * valarith.c (value_subscripted_rvalue): If an array is not in
1912 memory, and we don't know the upper bound, then we can't know that
1913 the requested element exists or not.
1915 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
1917 * target.c (str_comma_list_concat_elem): Fix typo in comment.
1918 (target_options_to_string): Add comment.
1920 2018-08-08 Tom Tromey <tom@tromey.com>
1922 * unittests/scoped_mmap-selftests.c: Check result of "write".
1924 2018-08-08 Jim Wilson <jimw@sifive.com>
1926 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
1927 (decode_register_index_short): New.
1928 (decode_j_type_insn, decode_cj_type_insn): New.
1929 (decode_b_type_insn, decode_cb_type_insn): New.
1930 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
1931 local xlen. Check xlen when decoding ambiguous compressed insns. In
1932 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
1933 is_c_sw_insn instead of is_sw_insn.
1934 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
1935 (riscv_software_single_step): New.
1936 * riscv-tdep.h (riscv_software_single_step): Declare.
1938 * riscv-tdep.c (riscv_isa_xlen): Drop static.
1939 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
1941 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
1944 * target.c (dispose_inferior): Don't dispose of inferiors that are
1947 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
1949 * remote.c (remote_target::download_tracepoint): Change char* to
1952 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1954 * target.h (target_options_to_string): Return an std::string.
1955 * target.c (str_comma_list_concat_elem): Return void, use
1957 (do_option): Likewise.
1958 (target_options_to_string): Return an std::string.
1959 * linux-nat.c (linux_nat_target::wait): Adjust.
1960 * target-debug.h (target_debug_print_options): Adjust.
1962 2018-08-07 Tom Tromey <tom@tromey.com>
1964 * Makefile.in (CPPFLAGS): New variable.
1965 (INTERNAL_CPPFLAGS): Use it.
1967 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1969 * NEWS: Mention the index cache.
1971 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1973 * common/pathstuff.h (get_standard_cache_dir): New.
1974 * common/pathstuff.c (get_standard_cache_dir): New.
1975 * build-id.h (build_id_to_string): New.
1976 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
1977 DEBUG_STR_SUFFIX): Move to here.
1978 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
1979 DEBUG_STR_SUFFIX): Move from there.
1980 (write_psymtabs_to_index): Make non-static, add basename
1981 parameter. Write to temporary files, rename when done.
1982 (save_gdb_index_command): Adjust call to
1983 write_psymtabs_to_index.
1984 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
1986 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
1987 (get_gdb_index_contents_from_cache): New.
1988 (get_gdb_index_contents_from_cache_dwz): New.
1989 (dwarf2_initialize_objfile): Read index from cache.
1990 (dwarf2_build_psymtabs): Save to index.
1991 * dwarf-index-cache.h: New file.
1992 * dwarf-index-cache.c: New file.
1993 * dwarf-index-write.h: New file.
1995 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1997 * gnulib/aclocal.m4: Re-generate.
1998 * gnulib/config.in: Re-generate.
1999 * gnulib/configure: Re-generate.
2000 * gnulib/import/Makefile.am: Re-generate.
2001 * gnulib/import/Makefile.in: Re-generate.
2002 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2003 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2004 * gnulib/import/m4/mkdir.m4: New file.
2005 * gnulib/import/mkdir.c: New file.
2006 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2009 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2011 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2012 * common/scoped_mmap.c: New file.
2013 * common/scoped_mmap.h (destroy): New method.
2014 (~scoped_mmap, reset): Use destroy.
2015 (scoped_mmap): New move constructor.
2016 (mmap_file): New declaration.
2017 * unittests/scoped_mmap-selftests.c (test_normal,
2018 test_invalid_filename, run_tests): New functions.
2019 (_initialize_scoped_mmap_selftests): Register selftest.
2021 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2023 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2024 (read_gdb_index_from_buffer): ... this. Remove section
2025 parameter, add buffer parameter.
2026 (get_gdb_index_contents_ftype,
2027 get_gdb_index_contents_dwz_ftype): New typedefs.
2028 (dwarf2_read_gdb_index): Add callback parameters to get the
2030 (get_gdb_index_contents_from_section): New.
2031 (dwarf2_initialize_objfile): Update call to
2032 dwarf2_read_gdb_index.
2034 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2036 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2037 (gdb_open_cloexec): Likewise.
2038 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2039 (commandline_from_pid): Likewise.
2040 (linux_xfer_osdata_threads): Likewise.
2041 (linux_xfer_osdata_fds): Likewise.
2042 * ada-lang.c (is_package_name): Likewise.
2043 * auxv.c (procfs_xfer_auxv): Likewise.
2044 * breakpoint.c (print_one_breakpoint_location): Use
2046 (print_one_catch_solib): Use string_printf.
2047 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2048 (add_pe_forwarded_sym): Likewise.
2049 * dwarf2read.c (create_type_unit_group): Likewise.
2050 (build_error_marker_type): Likewise.
2051 * infcall.c (get_function_name): Likewise.
2052 * valprint.c (print_converted_chars_to_obstack): Likewise.
2053 * xtensa-tdep.c (xtensa_register_type): Likewise.
2055 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2057 * remote.c (remote_target::download_tracepoint): Fix format
2060 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2062 * tracefile.c: Include common/byte-vector.h.
2063 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2064 with trace_regblock_size if needed. Update uses of buf.
2066 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2068 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2069 std::vector<unsigned char>.
2070 * tracepoint.c (collection_list::collection_list): Remove
2071 m_regs_mask initializer from initializer list. Resize
2072 m_regs_mask using the largest remote register number.
2073 (collection_list::add_remote_register): Remove size check on
2074 m_regs_mask. Use at to access element.
2075 (collection_list::stringify): Change type of temp_buf to
2076 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2077 stringify the register mask. Use pack_hex_byte for the register
2080 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2082 * tracepoint.h (class collection_list) <add_register>: Remove.
2083 <add_remote_register, add_ax_registers, add_local_register>:
2085 <add_memrange>: Add scope parameter.
2086 * tracepoint.c (encode_actions_1): Likewise.
2087 (collection_list::add_register): Rename to ...
2088 (collection_list::add_remote_register): ... this. Update
2090 (collection_list::add_ax_registers, add_local_register): New
2092 (collection_list::add_memrange): Add scope parameter. Call
2093 add_local_register instead of add_register.
2094 (finalize_tracepoint_aexpr): New function.
2095 (collection_list::collect_symbol): Update calls to add_memrange.
2096 Call add_local_register instead of add_register. Call
2097 add_ax_registers. Call finalize_tracepoint_aexpr.
2098 (encode_actions_1): Get remote regnos for $reg action. Call
2099 add_remote_register, add_ax_registers, and add_local_register.
2100 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2101 (validate_actionline): Call finalize_tracepoint_aexpr.
2103 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2105 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2106 Replace array buf with gdb::char_vector buf, of size
2107 get_remote_packet_size (). Replace references to buf and
2108 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2109 and xsnprintf with snprintf. Raise errors if the buffer is too
2112 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2114 * remote.c (remote_target::download_tracepoint): Fix the has_more
2115 predicate in the QTDP action list iteration.
2117 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2119 * remote.c (remote_target::download_tracepoint): Fix indentation
2122 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2124 * proc-api.c (_initialize_proc_api): Remove c, unused.
2125 * procfs.c (procfs_init_inferior): Remove signals, unused.
2126 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2129 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2130 Andrew Burgess <andrew.burgess@embecosm.com>
2132 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2133 'W_STOPCODE (0)' as this could be ambiguous.
2135 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2137 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2138 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2141 2018-08-02 Tom Tromey <tom@tromey.com>
2144 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2146 (process_structure_scope): Likewise.
2148 2018-08-02 Xavier Roirand <roirand@adacore.com>
2151 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2154 2018-08-02 Tom Tromey <tom@tromey.com>
2156 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2157 (darwin_suspend_inferior, darwin_resume_inferior)
2158 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2159 (darwin_check_new_threads): Check result of get_darwin_inferior.
2161 2018-07-31 Joel Brobecker <brobecker@adacore.com>
2165 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2167 * varobj.c (varobj_get_path_expr_parent): Report an error if
2168 parent is a dynamic varobj.
2170 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2172 * gnulib/aclocal.m4: Re-generate.
2173 * gnulib/config.in: Re-generate.
2174 * gnulib/configure: Re-generate.
2175 * gnulib/import/Makefile.in: Re-generate.
2176 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2177 * gnulib/import/m4/onceonly.m4: Re-generate.
2179 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2181 * target-descriptions.c (struct xml_test_tdesc): New.
2182 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2183 (record_xml_tdesc): Update.
2184 (maintenance_check_xml_descriptions): Update.
2185 * target-descriptions.h (record_xml_tdesc): Update comment.
2187 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2189 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2190 checking array bounds are defined.
2192 2018-07-30 Tom Tromey <tom@tromey.com>
2194 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2195 irreflexivity violation.
2197 2018-07-30 Tom Tromey <tom@tromey.com>
2199 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2200 * value.c (unpack_long): Remove lint code.
2201 * valops.c (value_ind): Remove lint code.
2202 * valarith.c (value_x_binop, value_x_unop, value_equal)
2203 (value_pos): Remove lint code.
2205 2018-07-28 Tom de Vries <tdevries@suse.de>
2207 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2208 with undefined upper bound as <optimized out>.
2210 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2212 * gcore.in: Rename variable "name" to "prefix". Expand
2215 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2217 * windows-nat.c (windows_nat_target::create_inferior): Update to
2218 call close() in global namespace.
2220 2018-07-26 Tom Tromey <tom@tromey.com>
2222 * dwarf-index-write.c (add_address_entry): Don't add objfile
2224 * dbxread.c (find_stab_function): Rename from
2225 find_stab_function_addr. Return a bound_minimal_symbol.
2226 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2227 Don't add objfile offsets.
2228 (end_psymtab): Use raw_text_low, raw_text_high,
2229 MSYMBOL_VALUE_RAW_ADDRESS.
2230 (read_ofile_symtab): Update.
2231 (process_one_symbol): Update.
2232 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2234 (dw2_relocate): Remove.
2235 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2237 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2239 (process_psymtab_comp_unit_reader, add_partial_symbol)
2240 (add_partial_subprogram, dwarf2_ranges_read): Update.
2241 (load_partial_dies): Update.
2242 (add_address_entry): Don't add objfile offsets.
2243 (dwarf2_build_include_psymtabs): Update.
2244 (create_addrmap_from_aranges): Don't add objfile offsets.
2245 (dw2_find_pc_sect_compunit_symtab): Update.
2246 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2247 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2249 (parse_partial_symbols): Don't add objfile offsets. Use
2250 raw_text_low, raw_text_high. Update.
2251 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2252 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2253 or call 'relocate' quick function. Clear psymbol_map.
2254 * psympriv.h (struct partial_symbol) <address>: Add section
2256 <set_unrelocated_address>: Rename from set_address.
2257 <raw_text_low, raw_text_high>: New methods.
2258 <text_low, text_high>: Add objfile parameter.
2259 (add_psymbol_to_bcache): Add 'section' parameter. Call
2260 set_unrelocated_address.
2261 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2262 (find_pc_psymbol): Update.
2263 (fixup_psymbol_section, relocate_psymtabs): Remove.
2264 (dump_psymtab, psym_functions): Update.
2265 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2267 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2268 (start_psymtab_common): Update.
2269 * symfile-debug.c (debug_qf_relocate): Remove.
2270 (debug_sym_quick_functions): Update.
2271 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2272 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2275 2018-07-26 Tom Tromey <tromey@redhat.com>
2277 * dbxread.c (end_psymtab): Use text_high_valid and
2279 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2280 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2281 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2283 <text_low_valid, text_high_valid>: New fields.
2284 <set_text_low, set_text_high>: Update.
2285 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2287 2018-07-26 Tom Tromey <tom@tromey.com>
2289 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2291 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2292 textlow and texthigh fields.
2293 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2295 * mdebugread.c (parse_lines, parse_partial_symbols)
2296 (psymtab_to_symtab_1): Update.
2297 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2298 Rename fields. Update comment. Now private.
2299 <text_low, text_high, set_text_low, set_text_high>: New methods.
2300 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2301 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2302 (start_psymtab_common, maintenance_info_psymtabs)
2303 (maintenance_check_psymtabs): Update.
2304 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2306 (scan_xcoff_symtab): Update.
2308 2018-07-26 Tom Tromey <tromey@redhat.com>
2310 * psympriv.h (struct partial_symbol) <unrelocated_address,
2311 address, set_address>: New methods.
2312 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2313 (fixup_psymbol_section, relocate_psymtabs): Update.
2314 (print_partial_symbols): Add 'objfile' parameter. Update.
2315 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2318 2018-07-26 Tom Tromey <tom@tromey.com>
2320 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2321 (debug_names::write_psymbols): Update.
2322 * psympriv.h (struct partial_symbol): Derive from
2323 general_symbol_info.
2324 <obj_section>: New method.
2325 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2326 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2327 (find_pc_sect_psymbol, fixup_psymbol_section)
2328 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2329 (print_partial_symbols, recursively_search_psymtabs)
2330 (compare_psymbols, psymbol_hash, psymbol_compare)
2331 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2332 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2334 2018-07-26 Tom Tromey <tromey@redhat.com>
2336 * dbxread.c (end_psymtab): Remove dead code.
2338 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2340 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2341 DWARF unwinders are disabled.
2342 * dwarf2-frame.c: Add dwarf2read.h include.
2343 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2345 (dwarf2_frame_unwinders_enabled_p): Define.
2346 (show_dwarf_unwinders_enabled_p): New function.
2347 (_initialize_dwarf2_frame): Register switch to control DWARF
2349 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2350 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2351 (show_dwarf_cmdlist): Remove static keyword.
2352 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2353 (show_dwarf_cmdlist): Declare.
2354 * NEWS: Document new feature.
2356 2018-07-26 Tom de Vries <tdevries@suse.de>
2358 PR breakpoints/23366
2359 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2361 2018-07-26 Tom de Vries <tdevries@suse.de>
2363 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2364 DW_AT_count can't be translated to a dynamic prop.
2366 2018-07-25 Tom de Vries <tdevries@suse.de>
2368 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2371 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2373 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2375 2018-07-25 Joel Brobecker <brobecker@adacore.com>
2377 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2379 2018-07-24 Keith Seitz <keiths@redhat.comt
2382 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2383 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2384 instead of add_symbol_to_list.
2385 (read_file_scope): Call prepare_one_comp_unit before reading
2388 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2390 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2392 2018-07-24 Tom Tromey <tom@tromey.com>
2394 * utils.c (malloc, realloc, free): Don't declare.
2395 * configure, config.in: Rebuild.
2396 * configure.ac: Don't check for declarations of free, malloc, or
2399 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2401 * aarch64-linux-nat.c
2402 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2404 * arm-linux-nat.c (fetch_regs): Likewise.
2405 (store_regs): Likewise.
2406 (fetch_vfp_regs): Likewise.
2407 (store_vfp_regs): Likewise.
2408 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2409 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2410 (arm_linux_nat_target::insert_watchpoint): Likewise.
2411 (arm_linux_nat_target::remove_watchpoint): Likewise.
2412 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2414 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2416 * ppc-linux-nat.c (fetch_register): Likewise.
2417 (fetch_all_gp_regs): Likewise.
2418 (fetch_ppc_registers): Likewise.
2419 (store_all_gp_regs): Likewise.
2420 (store_ppc_registers): Likewise.
2421 (hwdebug_insert_point): Likewise.
2422 (can_use_watchpoint_cond_accel): Likewise.
2423 * remote-sim.c (gdb_os_write_stdout): Likewise.
2425 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2426 Tom Tromey <tom@tromey.com>
2428 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
2430 * configure: Rebuild.
2432 2018-07-22 Tom Tromey <tom@tromey.com>
2434 * regformats/regdat.sh: Define xmltarget_${name} inside
2435 #ifndef IN_PROCESS_AGENT.
2437 2018-07-22 Tom Tromey <tom@tromey.com>
2439 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
2441 2018-07-22 Tom Tromey <tom@tromey.com>
2443 * symfile.c (reread_symbols): Notify iter, not objfile.
2445 2018-07-22 Tom Tromey <tom@tromey.com>
2447 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
2449 (ravenscar_thread_target::prepare_to_store): Likewise.
2451 2018-07-22 Tom Tromey <tom@tromey.com>
2453 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
2454 unused variable. Call value_fetch_lazy when needed.
2455 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2456 Remove unused variable. Call value_fetch_lazy when needed.
2458 2018-07-22 Tom Tromey <tom@tromey.com>
2460 * m32c-tdep.c (mark_dma): Return void.
2461 (make_regs): Remove unused declarations.
2463 2018-07-22 Tom Tromey <tom@tromey.com>
2465 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
2466 cmdscm_get_valid_command_smob_arg_unsafe for effect.
2467 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
2468 bkscm_get_valid_block_smob_arg_unsafe for effect.
2470 2018-07-22 Tom Tromey <tom@tromey.com>
2472 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
2475 2018-07-22 Tom Tromey <tom@tromey.com>
2477 * windows-nat.c (saved_context): Conditionally define.
2478 * remote.c (remote_target::remote_btrace_maybe_reopen):
2479 Conditionally declare "warned".
2480 * inflow.c (sigquit_ours): Conditionally define.
2481 (new_tty): Move "tty" declaration inside #if.
2482 * guile/guile.c (guile_datadir): Conditionally define.
2483 * charset.c (set_be_le_names): Move some declarations inside #if.
2484 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
2486 (parse_xml_btrace_conf): Likewise.
2488 2018-07-22 Tom Tromey <tom@tromey.com>
2490 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
2492 2018-07-22 Tom Tromey <tom@tromey.com>
2494 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
2495 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
2496 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
2497 * buildsym-legacy.c (get_macro_table): Remove unused variable.
2498 * stack.c (frame_apply_level_command): Remove unused variable.
2499 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
2500 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
2501 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
2503 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
2504 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
2505 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
2507 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
2508 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
2510 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
2511 Remove unused variable.
2512 * cli/cli-script.c (recurse_read_control_structure): Remove unused
2514 * common/tdesc.c (print_xml_feature::visit): Remove unused
2516 * compile/compile-object-load.c (store_regs): Remove unused
2518 * complaints.c (clear_complaints): Remove unused variable.
2519 * corelow.c (core_target_open): Remove unused variable.
2520 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
2522 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
2524 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
2526 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
2528 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
2530 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
2532 * ia64-tdep.c (examine_prologue): Remove unused variable.
2533 * infcall.c (run_inferior_call): Remove unused variable.
2534 * inferior.c (exit_inferior): Remove unused variable.
2535 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
2536 * linespec.c (decode_line_2): Remove unused variable.
2537 * linux-nat.c (super_close): Remove.
2538 * linux-tdep.c (linux_info_proc): Remove unused variable.
2539 * mi/mi-main.c (mi_execute_command): Remove unused variable.
2540 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
2541 Remove unused variable.
2542 * parse.c (find_minsym_type_and_address): Remove unused variable.
2543 * printcmd.c (info_symbol_command, printf_floating): Remove unused
2545 * python/py-breakpoint.c (bppy_set_commands): Remove unused
2547 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
2549 * record-btrace.c (record_btrace_target::store_registers): Remove
2551 (cmd_show_record_btrace_cpu): Remove unused variable.
2552 * riscv-tdep.c (riscv_register_reggroup_p)
2553 (riscv_push_dummy_call, riscv_return_value): Remove unused
2555 * rust-exp.y (literal): Remove unused variable.
2556 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
2558 <STRUCTOP_ANONYMOUS>: Likewise.
2559 * s390-linux-tdep.c (s390_linux_init_abi_31)
2560 (s390_linux_init_abi_64): Remove unused variable.
2561 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
2562 (file_select_thread, net_windows_open, _initialize_ser_windows):
2563 Remove unused variables.
2564 * symtab.c (find_pc_sect_line): Remove unused variable.
2565 * target-memory.c (compute_garbled_blocks): Remove unused
2567 (target_write_memory_blocks): Remove unused variable.
2568 * target.c (target_stack::unpush): Remove unused variables.
2569 * tracepoint.c (start_tracing, all_tracepoint_actions)
2570 (merge_uploaded_trace_state_variables)
2571 (print_one_static_tracepoint_marker): Remove unused variable.
2572 * unittests/basic_string_view/element_access/char/1.cc (test01):
2573 Remove unused variable.
2574 * windows-nat.c (windows_continue, windows_add_all_dlls)
2575 (do_initial_windows_stuff, windows_nat_target::create_inferior):
2576 Remove unused variables.
2578 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2580 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
2581 attr_profile in HAVE_ELF.
2582 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
2585 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
2587 * frame.c (frame_register_unwind): Change parameter name.
2588 (frame_unwind_register): Likewise.
2589 (frame_unwind_register_value): Likewise.
2590 (frame_unwind_register_signed): Likewise.
2591 (frame_unwind_register_unsigned): Likewise.
2592 * frame.h (frame_register_unwind): Likewise.
2593 (frame_unwind_register): Likewise.
2594 (frame_unwind_register_value): Likewise.
2595 (frame_unwind_register_signed): Likewise.
2596 (frame_unwind_register_unsigned): Likewise.
2597 (frame_unwind_arch): Likewise.
2599 2018-07-20 Maciej W. Rozycki <macro@mips.com>
2601 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
2604 2018-07-20 Maciej W. Rozycki <macro@mips.com>
2606 * mips-linux-nat.c (mips_linux_nat_target::read_description):
2607 Call `get_ptrace_pid' rather than extracting the ptrace PID by
2610 2018-07-20 Keith Seitz <keiths@redhat.com>
2612 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
2613 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
2614 m_compunit_symtab, m_language>: Add "m_" prefix.
2616 * buildsym.c: Update all uses.
2618 2018-07-20 Tom Tromey <tom@tromey.com>
2620 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
2621 * buildsym.h (record_line_ftype): Remove typedef.
2623 2018-07-20 Tom Tromey <tom@tromey.com>
2625 * buildsym-legacy.h (augment_type_symtab): Don't declare.
2626 (end_expandable_symtab): Likewise.
2627 (end_symtab_get_static_block): Likewise.
2628 (end_symtab_from_static_block): Likewise.
2629 * buildsym-legacy.c (augment_type_symtab): Remove.
2630 (end_expandable_symtab): Remove.
2631 (end_symtab_get_static_block): Remove.
2632 (end_symtab_from_static_block): Remove.
2634 2018-07-20 Tom Tromey <tom@tromey.com>
2636 * dwarf2read.c: Include buildsym.h.
2637 (struct dwarf2_cu) <builder>: New method.
2638 (fixup_go_packaging): Update.
2639 (process_full_comp_unit, process_full_type_unit): Update. Don't
2640 use scoped_free_pendings.
2641 (using_directives): Add "cu" parameter, remove "language".
2642 (read_import_statement, setup_type_unit_groups, )
2643 (read_func_scope, read_lexical_block_scope)
2644 (dwarf2_record_block_ranges, read_namespace): Update.
2645 (lnp_state_machine::lnp_state_machine): Add cu parameter.
2646 (lnp_state_machine::handle_end_sequence): Update.
2647 (class lnp_state_machine) <m_cu>: New member.
2648 <m_record_line_callback>: Remove.
2649 <m_currently_recording_lines>: New member.
2650 (lnp_state_machine::handle_set_file): Update.
2651 (noop_record_line): Remove.
2652 (dwarf_record_line_p): Add cu parameter.
2653 (dwarf_record_line_1, dwarf_finish_line): Likewise.
2654 (lnp_state_machine::record_line)
2655 (lnp_state_machine::lnp_state_machine)
2656 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
2657 (dwarf_decode_lines): Update.
2658 (dwarf2_start_subfile): Add cu parameter.
2659 (dwarf2_start_symtab, new_symbol): Update.
2660 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
2661 Remove dwarf2_per_objfile parameter.
2662 (dwarf_decode_macros): Update.
2664 2018-07-20 Tom Tromey <tom@tromey.com>
2666 * stabsread.c (define_symbol): Update.
2667 * buildsym-legacy.h (get_buildsym_compunit): Declare.
2668 * dwarf2read.c (new_symbol): Update.
2669 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
2670 * cp-namespace.c: Include buildsym.h.
2671 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
2672 * buildsym-legacy.c (get_buildsym_compunit): New function.
2674 2018-07-20 Tom Tromey <tom@tromey.com>
2676 * xcoffread.c: Include buildsym-legacy.h.
2677 * windows-nat.c: Include buildsym-legacy.h.
2678 * stabsread.c: Include buildsym-legacy.h.
2679 * mdebugread.c: Include buildsym-legacy.h.
2680 * buildsym-legacy.h: New file.
2681 * buildsym-legacy.c: New file, from buildsym.c.
2682 * go32-nat.c: Include buildsym-legacy.h.
2683 * dwarf2read.c: Include buildsym-legacy.h.
2684 * dbxread.c: Include buildsym-legacy.h.
2685 * cp-namespace.c: Include buildsym-legacy.h.
2686 * coffread.c: Include buildsym-legacy.h.
2687 * buildsym.h: Move some contents to buildsym-legacy.h.
2688 * buildsym.c: Include buildsym-legacy.h. Move many functions to
2690 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
2692 2018-07-20 Tom Tromey <tom@tromey.com>
2694 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
2695 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
2696 (buildsym_compunit::buildsym_compunit)
2697 (buildsym_compunit::~buildsym_compunit)
2698 (buildsym_compunit::get_macro_table): Define.
2700 2018-07-20 Tom Tromey <tom@tromey.com>
2702 * buildsym.c (reset_symtab_globals): Remove.
2703 (buildsym_compunit::end_symtab_from_static_block): Update.
2704 (buildsym_compunit::augment_type_symtab): Update.
2705 (end_symtab_from_static_block): Call free_buildsym_compunit.
2706 (augment_type_symtab, end_symtab, end_expandable_symtab):
2709 2018-07-20 Tom Tromey <tom@tromey.com>
2711 * arch-utils.c: Do not include buildsym.h.
2712 * mipsread.c: Do not include buildsym.h.
2713 * machoread.c: Do not include buildsym.h.
2714 * elfread.c: Do not include buildsym.h.
2716 2018-07-20 Tom Tromey <tom@tromey.com>
2718 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
2720 (buildsym_compunit): Add new constructor.
2721 (struct buildsym_compunit) <get_last_source_file, finish_block,
2722 record_block_range, start_subfile, patch_subfile_names,
2723 push_subfile, pop_subfile, record_line, get_compunit_symtab,
2724 set_last_source_start_addr, get_last_source_start_addr,
2725 get_local_using_directives, set_local_using_directives,
2726 get_global_using_directives, outermost_context_p,
2727 get_current_context_stack, get_context_stack_depth,
2728 get_current_subfile, get_local_symbols, get_file_symbols,
2729 get_global_symbols, record_debugformat, record_producer,
2730 push_context, pop_context, end_symtab_get_static_block,
2731 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
2733 <record_pending_block, finish_block_internal, make_blockvector,
2734 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
2738 2018-05-22 Tom Tromey <tom@tromey.com>
2740 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2742 (finish_block_internal): Update.
2744 2018-07-20 Tom Tromey <tom@tromey.com>
2746 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2748 (finish_block_internal): Update.
2750 2018-07-20 Tom Tromey <tom@tromey.com>
2752 * buildsym.h (EXTERN): Don't define or undef.
2753 * buildsym.c (EXTERN): Don't define.
2755 2018-07-20 Tom Tromey <tom@tromey.com>
2757 * buildsym.c: Remove TODO comment.
2759 2018-07-20 Tom Tromey <tom@tromey.com>
2761 * coffread.c (coff_symtab_read): Update.
2762 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2763 (xcoff_new_init): Update.
2764 * mipsread.c (mipscoff_new_init): Update.
2765 * mdebugread.c (mdebug_build_psymtabs): Update.
2766 * elfread.c (elf_new_init): Update.
2767 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2769 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
2770 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2771 (stabsect_build_psymtabs): Update.
2772 * buildsym.h (buildsym_init): Don't declare.
2773 * buildsym.c: Update comment.
2774 (prepare_for_building): Remove.
2775 (start_symtab, restart_symtab): Update.
2776 (reset_symtab_globals): Update comment.
2777 (buildsym_init): Remove.
2779 2018-07-20 Tom Tromey <tom@tromey.com>
2781 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
2782 * stabsread.c (patch_block_stabs, define_symbol, read_type)
2783 (read_enum_type, common_block_start, common_block_end)
2784 (cleanup_undefined_types_1, finish_global_stabs): Update.
2785 * mdebugread.c (psymtab_to_symtab_1): Update.
2786 * dwarf2read.c (fixup_go_packaging, read_func_scope)
2787 (read_lexical_block_scope, new_symbol): Update.
2788 * dbxread.c (process_one_symbol): Update.
2789 * coffread.c (coff_symtab_read, process_coff_symbol)
2790 (coff_read_enum_type): Update.
2791 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
2793 (get_local_symbols, get_file_symbols, get_global_symbols): New
2795 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
2797 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
2798 (~scoped_free_pendings): Update.
2799 (finish_block, prepare_for_building, reset_symtab_globals)
2800 (end_symtab_get_static_block, end_symtab_with_blockvector)
2801 (augment_type_symtab, push_context): Update.
2802 (get_local_symbols, get_file_symbols, get_global_symbols): New
2804 (buildsym_init): Update.
2806 2018-07-20 Tom Tromey <tom@tromey.com>
2808 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
2809 (process_full_type_unit): Likewise.
2810 (dwarf2_start_symtab): Set list_in_scope.
2812 2018-07-20 Tom Tromey <tom@tromey.com>
2814 * dwarf2read.c (process_psymtab_comp_unit_reader)
2815 (build_type_psymtabs_reader): Do not set list_in_scope.
2817 2018-07-20 Tom Tromey <tom@tromey.com>
2819 * buildsym.c (free_pendings): Remove.
2820 (add_symbol_to_list, scoped_free_pendings)
2821 (finish_block_internal, buildsym_init): Update.
2823 2018-07-20 Tom Tromey <tom@tromey.com>
2825 * xcoffread.c (read_xcoff_symtab): Update.
2826 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
2828 * dbxread.c (process_one_symbol): Update.
2829 * coffread.c (coff_symtab_read): Update.
2830 * buildsym.h (finish_block): Update.
2831 * buildsym.c (finish_block): Remove "listhead" argument.
2832 (end_symtab_get_static_block): Update.
2834 2018-07-20 Tom Tromey <tom@tromey.com>
2836 * buildsym.h (class scoped_free_pendings): Remove constructor.
2837 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
2839 <m_pending_block_obstack, m_pending_blocks>: New members.
2840 (pending_block_obstack, pending_blocks): Remove.
2841 (scoped_free_pendings::scoped_free_pendings): Default.
2842 (~scoped_free_pendings): Update.
2843 (free_pending_blocks): Remove.
2844 (finish_block_internal, record_pending_block, make_blockvector)
2845 (end_symtab_get_static_block, augment_type_symtab, push_context)
2846 (buildsym_init): Update.
2848 2018-07-20 Tom Tromey <tom@tromey.com>
2850 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
2851 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
2853 (pending_addrmap, pending_addrmap_obstack)
2854 (pending_addrmap_interesting): Remove.
2855 (scoped_free_pendings, record_block_range, make_blockvector)
2856 (prepare_for_building, reset_symtab_globals, buildsym_init):
2859 2018-07-20 Tom Tromey <tom@tromey.com>
2861 * xcoffread.c (process_linenos): Update.
2862 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
2863 * mdebugread.c (psymtab_to_symtab_1): Update.
2864 * dwarf2read.c (setup_type_unit_groups)
2865 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
2866 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
2867 * dbxread.c (process_one_symbol): Update.
2868 * coffread.c (coff_symtab_read, enter_linenos)
2869 (process_coff_symbol): Update.
2870 * buildsym.h (current_subfile): Don't declare.
2871 (get_current_subfile): Declare.
2872 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
2874 (start_subfile, free_buildsym_compunit, push_subfile)
2875 (prepare_for_building, start_symtab): Update.
2876 (get_current_subfile): New function.
2878 2018-07-20 Tom Tromey <tom@tromey.com>
2880 * coffread.c (coff_symtab_read): Update.
2881 * xcoffread.c (read_xcoff_symtab): Update.
2882 * dwarf2read.c (new_symbol): Update.
2883 (read_func_scope, read_lexical_block_scope): Update.
2884 * dbxread.c (process_one_symbol): Update.
2885 * buildsym.h (context_stack, context_stack_depth): Don't declare.
2886 (outermost_context_p): Remove macro.
2887 (outermost_context_p, get_current_context_stack)
2888 (get_context_stack_depth): Declare.
2889 (pop_context): Return struct context_stack.
2890 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
2892 (context_stack_size): Remove.
2893 (INITIAL_CONTEXT_STACK_SIZE): Remove.
2894 (prepare_for_building, end_symtab_get_static_block)
2895 (augment_type_symtab, push_context): Update.
2896 (pop_context): Return struct context_stack.
2897 (outermost_context_p, get_current_context_stack)
2898 (get_context_stack_depth): New functions.
2899 (buildsym_init): Update.
2901 2018-07-20 Tom Tromey <tom@tromey.com>
2903 * rust-exp.y: Now a pure parser. Update all rules.
2904 (%union): Move earlier.
2905 (current_parser, work_obstack): Remove globals.
2906 (rust_parser, ~rust_parser): Update.
2907 (class rust_parser) <copy_name, concat3, crate_name, super_name,
2908 lex_character, lex_number, lex_string, lex_identifier,
2909 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
2910 convert_name, convert_params_to_expression,
2911 convert_ast_to_expression, ast_basic_type, ast_operation,
2912 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
2913 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
2914 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
2915 ast_array_type, ast_slice_type, ast_reference_type,
2916 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
2917 (rust_parse): Update.
2918 (rustyyerror, rustyylex): Add parser parameter.
2919 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
2920 (rust_lex_stringish_test, rust_lex_test_sequence)
2921 (rust_lex_test_trailing_dot, rust_lex_test_completion)
2922 (rust_lex_test_push_back, rust_lex_tests): Update.
2924 2018-07-19 Pedro Alves <palves@redhat.com>
2926 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
2927 gdb::unique_xmalloc_ptr.
2928 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
2929 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
2930 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
2931 copy-initialization.
2932 * guile/scm-pretty-print.c (ppscm_print_children): Use
2933 gdb::unique_xmalloc_ptr instead of cleanups.
2934 (gdbscm_apply_val_pretty_printer): Remove cleanups.
2935 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
2936 gdb::unique_xmalloc_ptr.
2937 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2938 Adjust to use gdb::unique_xmalloc_ptr.
2939 * guile/scm-utils.c (extract_arg): Adjust.
2940 * guile/scm-value.c (gdbscm_value_field): Adjust to use
2941 gdb::unique_xmalloc_ptr instead of a cleanup.
2943 2018-07-19 Tom Tromey <tom@tromey.com>
2945 * utils.c (do_value_free_to_mark)
2946 (make_cleanup_value_free_to_mark): Remove.
2947 * utils.h (make_cleanup_value_free_to_mark): Remove.
2949 2018-07-19 Pedro Alves <palves@redhat.com>
2951 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
2952 forwarding reference.
2954 2018-07-18 Pedro Alves <palves@redhat.com>
2956 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
2957 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
2960 2018-07-18 Pedro Alves <palves@redhat.com>
2962 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
2964 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
2966 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
2967 directly instead of a cleanup.
2968 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
2969 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
2970 (vlscm_binop_gdbthrow): New, factored out from ...
2971 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
2972 (vlscm_rich_compare): Use gdbscm_wrap.
2973 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
2974 instead of a cleanup.
2975 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
2977 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2978 Use xfree directly instead of a cleanup.
2979 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
2980 Adjust to use gdbscm_wrap and scoped_value_mark.
2981 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
2982 (gdbscm_value_address, gdbscm_value_dereference)
2983 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
2985 (gdbscm_value_dynamic_type): Use scoped_value_mark.
2986 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
2988 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
2989 gdbscm_wrap and scoped_value_mark.
2990 (gdbscm_value_to_string): Use xfree directly instead of a
2991 cleanup. Move 'buffer' unique_ptr to TRY scope.
2992 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
2993 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
2995 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
2996 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
2998 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3001 2018-07-18 Tom de Vries <tdevries@suse.de>
3003 * findvar.c (default_read_var_value): Also resolve dynamic type for
3004 LOC_OPTIMIZED_OUT vars.
3006 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3008 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3011 2018-07-17 Tom Tromey <tom@tromey.com>
3013 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3014 (compute_enum_list, pascm_set_param_value_x)
3015 (gdbscm_parameter_value): Update.
3016 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3017 (gdbscm_scm_to_host_string): Update.
3018 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3020 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3021 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3022 * guile/scm-string.c (gdbscm_scm_to_string): Return
3024 (gdbscm_scm_to_host_string): Likewise.
3026 2018-07-17 Tom Tromey <tom@tromey.com>
3028 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3029 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3030 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3031 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3034 2018-07-17 Tom Tromey <tom@tromey.com>
3036 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3037 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3039 * guile/scm-cmd.c (cmdscm_function): Update.
3040 * guile/scm-pretty-print.c
3041 (ppscm_print_exception_unless_memory_error): Update.
3042 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3043 Return unique_xmalloc_ptr.
3045 2018-07-17 Tom Tromey <tom@tromey.com>
3047 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3050 2018-07-17 Jim Wilson <jimw@sifive.com>
3052 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3053 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3054 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3055 unecessary braces after EF_RISCV_RVC test. Delete call to
3056 set_gdbarch_decr_pc_after_break.
3058 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3059 RISCV_LAST_FP_REGNUM + 1.
3060 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3062 2018-07-17 Tom Tromey <tom@tromey.com>
3064 * configure.ac: Remove --disable-gdbcli.
3065 * configure: Rebuild.
3066 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3067 (SUBDIR_CLI_CFLAGS): Remove.
3068 (SFILES): Use SUBDIR_CLI_SRCS.
3069 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3071 2018-07-17 Tom Tromey <tom@tromey.com>
3074 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3076 2018-07-16 Jim Wilson <jimw@sifive.com>
3078 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3080 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3082 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3084 (libunwind_frame_sniffer): Likewise.
3085 (libunwind_frame_prev_register): Likewise.
3086 (libunwind_sigtramp_frame_sniffer): Likewise.
3087 * ia64-tdep.c (ia64_access_reg): Likewise.
3088 (ia64_access_rse_reg): Likewise.
3089 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3090 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3092 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3094 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3096 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3098 * remote-sim.c (gdbsim_target::close,
3099 gdbsim_target::mourn_inferior): Remove unused variables.
3101 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3103 * ia64-tdep.c (ktab_buf): New global.
3104 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3105 (get_kernel_table): Adjust.
3107 2018-07-16 Tom Tromey <tom@tromey.com>
3109 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3110 * dwarf2read.c (using_directives, new_symbol): Use
3111 outermost_context_p.
3112 * dbxread.c (process_one_symbol): Use outermost_context_p.
3113 * coffread.c (coff_symtab_read): Use outermost_context_p.
3115 2018-07-16 Tom Tromey <tom@tromey.com>
3117 * dwarf2read.c (using_directives, read_func_scope)
3118 (read_lexical_block_scope): Update.
3119 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3120 * buildsym.h (local_using_directives, global_using_directives):
3122 (get_local_using_directives, set_local_using_directives)
3123 (get_global_using_directives): Declare.
3124 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3125 m_global_using_directives>: New members.
3126 (finish_block_internal, prepare_for_building)
3127 (reset_symtab_globals, end_symtab_get_static_block)
3128 (push_context): Update.
3129 (get_local_using_directives, set_local_using_directives)
3130 (get_global_using_directives): New functions.
3131 (buildsym_init): Update.
3133 2018-07-16 Tom Tromey <tom@tromey.com>
3135 * xcoffread.c (xcoff_initial_scan): Don't call
3136 free_pending_blocks.
3137 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3138 * buildsym.h (class scoped_free_pendings): Add constructor.
3139 (free_pending_blocks): Don't declare.
3140 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3141 (free_pending_blocks): Now static.
3143 2018-07-16 Tom Tromey <tom@tromey.com>
3145 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3146 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3148 (struct subfile_stack): Remove.
3149 (subfile_stack): Remove.
3150 (push_subfile, pop_subfile, buildsym_init): Update.
3152 2018-07-16 Tom Tromey <tom@tromey.com>
3154 * buildsym.c (push_subfile): Use gdb_assert.
3155 (pop_subfile): Use gdb_assert.
3157 2018-07-16 Tom Tromey <tom@tromey.com>
3159 * buildsym.h (merge_symbol_lists): Remove.
3160 * buildsym.c (merge_symbol_lists): Remove.
3162 2018-07-16 Tom Tromey <tom@tromey.com>
3164 * stabsread.c (scan_file_globals): Update comment.
3165 * stabsread.h (scan_file_globals): Move from buildsym.h.
3166 * buildsym.h (scan_file_globals): Move to stabsread.h.
3168 2018-07-16 Tom Tromey <tom@tromey.com>
3170 * xcoffread.c (xcoff_new_init): Update.
3171 * mipsread.c (mipscoff_new_init): Update.
3172 * mdebugread.c (mdebug_build_psymtabs): Update.
3173 * elfread.c (elf_new_init): Update.
3174 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3175 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3176 * buildsym.h (buildsym_new_init): Don't declare.
3177 * buildsym.c (buildsym_new_init): Remove.
3179 2018-07-16 Tom Tromey <tom@tromey.com>
3181 * stabsread.h (within_function): Move from buildsym.h.
3182 * stabsread.c (start_stabs): Clear within_function.
3183 * coffread.c (coff_start_symtab): Clear within_function.
3184 * buildsym.h (within_function): Move to stabsread.h.
3185 * buildsym.c (prepare_for_building): Update.
3187 2018-07-16 Tom Tromey <tom@tromey.com>
3189 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3190 * dwarf2read.c (dwarf2_start_symtab): Don't set
3191 processing_gcc_compilation.
3192 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3194 2018-07-16 Tom Tromey <tom@tromey.com>
3196 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3197 (next_symbol_text_func): Move from buildsym.h.
3198 * stabsread.c (hashname): Move from buildsym.c.
3199 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3200 (next_symbol_text_func, hashname): Move to stabsread.h.
3201 * buildsym.c: Don't include bcache.h
3202 (hashname): Move to stasbread.c.
3204 2018-07-16 Tom Tromey <tom@tromey.com>
3206 * buildsym.h (context_stack_size): Don't declare.
3207 * buildsym.c (context_stack_size): New global.
3209 2018-07-16 Tom Tromey <tom@tromey.com>
3211 * dbxread.c (processing_acc_compilation): New global.
3212 * buildsym.h (processing_acc_compilation): Don't declare.
3214 2018-07-16 Tom Tromey <tom@tromey.com>
3216 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3217 * dbxread.c (read_ofile_symtab): Update.
3218 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3219 * buildsym.h (last_source_start_addr): Remove.
3220 (set_last_source_start_addr, get_last_source_start_addr):
3222 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3224 (struct buildsym_compunit) <m_last_source_start_addr>: New
3226 (prepare_for_building): Remove start_addr parameter.
3227 (start_symtab, restart_symtab, end_symtab_get_static_block)
3228 (end_symtab_with_blockvector): Update.
3229 (set_last_source_start_addr, get_last_source_start_addr): New
3232 2018-07-16 Tom Tromey <tom@tromey.com>
3234 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3236 (have_line_numbers): Remove.
3237 (record_line, prepare_for_building, end_symtab_get_static_block)
3238 (augment_type_symtab): Update.
3240 2018-07-16 Tom Tromey <tom@tromey.com>
3242 * buildsym.c (~buildsym_compunit): Free the macro table.
3243 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3245 <m_pending_macros>: New member.
3246 (pending_macros): Remove.
3247 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3248 (reset_symtab_globals, end_symtab_get_static_block)
3249 (end_symtab_with_blockvector, augment_type_symtab)
3250 (buildsym_init): Update.
3252 2018-07-16 Tom Tromey <tom@tromey.com>
3254 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3256 (buildsym_compunit::set_last_source_file): New method.
3257 <m_last_source_file>: New member.
3258 (prepare_for_building): Remove "name" parameter.
3259 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3260 (last_source_file): Remove.
3261 (set_last_source_file, get_last_source_file): Update.
3263 2018-07-16 Tom Tromey <tom@tromey.com>
3265 * buildsym.c (prepare_for_building): Add assert.
3267 2018-07-16 Tom Tromey <tom@tromey.com>
3269 * buildsym.c (~buildsym_compunit): Update.
3270 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3271 (start_subfile, patch_subfile_names)
3272 (end_symtab_with_blockvector): Update.
3274 2018-07-16 Tom Tromey <tom@tromey.com>
3276 * buildsym.c (struct buildsym_compunit): Add constructor,
3277 destructor, initializers.
3278 (start_buildsym_compunit): Remove.
3279 (free_buildsym_compunit): Use "delete".
3280 (start_symtab, restart_symtab): Use "new".
3282 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3284 * symfile.c (set_objfile_default_section_offset): Remove struct
3287 2018-07-14 Stafford Horne <shorne@gmail.com>
3289 * (Responsible Maintainers): Add myself as or1k maintainer.
3291 2018-07-13 Tom Tromey <tom@tromey.com>
3293 * symfile.c (set_objfile_default_section_offset): Use extra braces
3296 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3298 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3301 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3303 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3304 unittests/cli-utils-selftests.c
3305 * unittests/cli-utils-selftests.c: New file.
3307 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3309 * NEWS: Mention new commands. Mention change to 'thread apply'.
3311 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3313 * thread.c (thr_try_catch_cmd): New function.
3314 (thread_apply_all_command): Handle qcs flags.
3315 (thread_apply_command): Handle qcs flags.
3316 (taas_command): New function.
3317 (tfaas_command): New function.
3318 (_initialize_thread): Update to setup the new commands 'taas
3319 and 'tfaas'. Change doc string for 'thread apply'.
3321 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3323 * stack.c: (trailing_outermost_frame): New function, mostly
3324 extracted from backtrace_command_1.
3325 (leading_innermost_frame): New function.
3326 (backtrace_command_1): Update to call trailing_outermost_frame.
3327 (frame_apply_command_count): New function.
3328 (frame_apply_level_command): New function.
3329 (frame_apply_all_command): New function.
3330 (frame_apply_command): New function.
3331 (faas_command): New function.
3332 (frame_cmd_list): New variable.
3333 (_initialize_stack): Update to setup the new commands 'frame apply'
3336 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3338 * cli-utils.c (number_or_range_parser::get_number): Only handle
3339 numbers or convenience var as numbers.
3340 (parse_flags): New function.
3341 (parse_flags_qcs): New function.
3342 (number_or_range_parser::finished): Ensure parsing end is detected
3343 before end of string.
3344 * cli-utils.h (parse_flags): New function.
3345 (parse_flags_qcs): New function.
3346 (number_or_range_parser): Remove m_finished bool.
3347 (number_or_range_parser::skip_range): Set m_in_range to false.
3349 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3351 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3354 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3355 Jan Kratochvil <jan.kratochvil@redhat.com>
3356 Paul Fertser <fercerpav@gmail.com>
3357 Tsutomu Seki <sekiriki@gmail.com>
3358 Pedro Alves <palves@redhat.com>
3360 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3361 'unittests/parse-connection-spec-selftests.c'.
3362 (COMMON_SFILES): Add 'common/netstuff.c'.
3363 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3364 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3365 * common/netstuff.c: New file.
3366 * common/netstuff.h: New file.
3367 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3368 (wait_for_connect): Update comment. New parameter
3369 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3370 Use 'sock' directly instead of 'scb->fd'.
3371 (try_connect): New function, with code from 'net_open'.
3372 (net_open): Rewrite main loop to deal with multiple
3373 sockets/addresses. Handle IPv6-style hostnames; implement
3374 support for IPv6 connections.
3375 * unittests/parse-connection-spec-selftests.c: New file.
3377 2018-07-11 Pedro Alves <palves@redhat.com>
3380 * remote.c (remote_target::remote_detach_pid): Call
3381 set_current_process.
3383 2018-07-11 Pedro Alves <palves@redhat.com>
3385 * h8300-tdep.c (h8300_gdbarch_init): Remove
3386 set_gdbarch_ecoff_reg_to_regnum calls.
3388 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3391 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3392 offsets/sizes for static members of a class/struct.
3394 2018-07-11 Alan Hayward <alan.hayward@arm.com>
3396 * target-descriptions.c (tdesc_register_bitsize): Rename.
3397 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3398 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3399 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3401 2018-07-10 Tom Tromey <tom@tromey.com>
3403 * breakpoint.c (moribund_locations): Now static and a
3405 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3406 (build_bpstat_chain, update_global_location_list)
3407 (breakpoint_retire_moribund): Update.
3408 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3411 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3413 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3414 (riscv_register_reggroup_p): Use new function, remove unneeded
3416 (riscv_push_dummy_call): Extend assert to compare against xlen or
3417 flen based on register type.
3419 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3421 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3423 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3425 * remote.c (show_hardware_watchpoint_limit): New function.
3426 (show_hardware_watchpoint_length_limit): New function.
3427 (show_hardware_breakpoint_limit): New function.
3428 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
3429 where appropriate, update help text.
3431 2018-07-09 Tom Tromey <tom@tromey.com>
3433 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
3434 (CLIBS): Don't mention NAT_CLIBS.
3436 2018-07-09 Tom Tromey <tom@tromey.com>
3438 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
3439 (LIBGDB_OBS, clean mostlyclean): Update.
3440 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
3442 2018-07-09 Tom Tromey <tom@tromey.com>
3444 * Makefile.in (%.c: %.y): Use ECHO_YACC.
3445 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
3446 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
3448 2018-07-09 Tom Tromey <tom@tromey.com>
3450 * Makefile.in (ALLDEPFILES): Remove exec.c.
3451 (COMMON_OBS): Remove exec.o.
3452 (COMMON_SFILES): Add exec.c.
3454 2018-07-09 Tom Tromey <tom@tromey.com>
3456 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
3458 2018-07-09 Tom Tromey <tom@tromey.com>
3460 * Makefile.in (clean mostlyclean): Remove stamp-version.
3461 (version.c): Depend on stamp-version.
3462 (stamp-version): New rule, from version.c rule.
3464 2018-07-09 Tom Tromey <tom@tromey.com>
3466 * Makefile.in (init.c): Depend on stamp-init.
3467 (stamp-init): New rule, from init.c rule.
3468 (clean mostlyclean): Remove stamp-init.
3470 2018-07-09 Tom Tromey <tom@tromey.com>
3472 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
3473 SUBDIR_GCC_COMPILE_SRCS.
3475 2018-07-09 Tom Tromey <tom@tromey.com>
3477 * Makefile.in (init.c): Remove some unused sed rules.
3479 2018-07-09 Tom Tromey <tom@tromey.com>
3481 * Makefile.in (TSOBS): Remove.
3482 (INIT_FILES): Update.
3483 (LIBGDB_OBS): Update.
3484 (COMMON_SFILES): Add inflow.c.
3485 (SFILES): Remove inflow.c.
3487 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3489 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
3491 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
3493 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
3494 get_saveloc_name, is_signal_frame_name, step_name,
3495 init_remote_name, create_addr_space_name,
3496 destroy_addr_space_name, search_unwind_table_name,
3497 find_dyn_list_name): Constify.
3499 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
3501 * darwin-nat.c (darwin_pthread_kill): New function.
3502 (darwin_resume_thread): Use darwin_pthread_kill.
3504 2018-07-05 Tom de Vries <tdevries@suse.de>
3506 * macroexp.c (macro_buffer) <operator=>: New member function.
3508 2018-07-04 Tom Tromey <tom@tromey.com>
3510 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
3512 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
3514 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
3515 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
3516 * maint.c: Likewise.
3519 2018-07-04 Joel Brobecker <brobecker@adacore.com>
3521 * NEWS: Create a new section for the next release branch.
3522 Rename the section of the current branch, now that it has
3525 2018-07-04 Joel Brobecker <brobecker@adacore.com>
3527 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
3528 * version.in: Bump version to 8.2.50.DATE-git.
3530 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3531 Pedro Alves <palves@redhat.com>
3533 * linux-nat.c (linux_init_ptrace): Rename to ...
3534 (linux_init_ptrace_procfs): ... this. Call
3535 linux_proc_init_warnings.
3536 (linux_nat_target::post_attach)
3537 (linux_nat_target::post_startup_inferior): Adjust.
3538 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
3539 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
3541 2018-07-04 Tom de Vries <tdevries@suse.de>
3543 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
3545 (read_comp_unit_head): ... here.
3547 2018-07-03 Tom Tromey <tom@tromey.com>
3549 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
3550 (stop_tracing, tstatus_command)
3551 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
3552 (print_one_static_tracepoint_marker): Update.
3553 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
3555 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
3557 (all_tracepoints, static_tracepoints_here): Return std::vector.
3559 2018-07-03 Tom Tromey <tom@tromey.com>
3561 * common/ptid.c (ptid_equal): Remove.
3562 * common/ptid.h (ptid_equal): Don't declare.
3563 * ada-tasks.c: Update.
3564 * breakpoint.c: Update.
3565 * common/agent.c: Update.
3566 * corelow.c: Update.
3567 * darwin-nat-info.c: Update.
3568 * darwin-nat.c: Update.
3570 * dtrace-probe.c: Update.
3571 * dummy-frame.c: Update.
3572 * fbsd-nat.c: Update.
3574 * gdbthread.h: Update.
3575 * gnu-nat.c: Update.
3576 * go32-nat.c: Update.
3577 * inf-loop.c: Update.
3578 * inf-ptrace.c: Update.
3579 * infcall.c: Update.
3583 * linux-fork.c: Update.
3584 * linux-nat.c: Update.
3585 * linux-thread-db.c: Update.
3586 * mi/mi-cmd-var.c: Update.
3587 * mi/mi-interp.c: Update.
3588 * mi/mi-main.c: Update.
3589 * nto-procfs.c: Update.
3590 * ppc-linux-tdep.c: Update.
3592 * python/py-inferior.c: Update.
3593 * python/py-record-btrace.c: Update.
3594 * python/py-record.c: Update.
3595 * ravenscar-thread.c: Update.
3596 * regcache.c: Update.
3597 * remote-sim.c: Update.
3599 * sol-thread.c: Update.
3602 * tui/tui-stack.c: Update.
3604 * windows-nat.c: Update.
3605 * windows-tdep.c: Update.
3607 2018-07-03 Tom Tromey <tom@tromey.com>
3609 * common/ptid.c (ptid_match): Remove.
3610 * common/ptid.h (ptid_match): Don't declare.
3611 * fbsd-nat.c: Update.
3614 * linux-nat.c: Update.
3615 * record-btrace.c: Update.
3616 * regcache.c: Update.
3619 2018-07-03 Tom Tromey <tom@tromey.com>
3621 * common/ptid.c (ptid_tid_p): Remove.
3622 * common/ptid.h (ptid_tid_p): Don't declare.
3623 * sol-thread.c: Update.
3625 2018-07-03 Tom Tromey <tom@tromey.com>
3627 * common/ptid.c (ptid_lwp_p): Remove.
3628 * common/ptid.h (ptid_lwp_p): Don't declare.
3629 * fbsd-nat.c: Update.
3630 * linux-nat.c: Update.
3631 * nat/linux-procfs.c: Update.
3632 * nat/x86-linux-dregs.c: Update.
3633 * sol-thread.c: Update.
3635 2018-07-03 Tom Tromey <tom@tromey.com>
3637 * common/ptid.c (ptid_is_pid): Remove.
3638 * common/ptid.h (ptid_is_pid): Don't declare.
3640 * linux-nat.c: Update.
3641 * mi/mi-interp.c: Update.
3645 2018-07-03 Tom Tromey <tom@tromey.com>
3647 * common/ptid.c (ptid_get_tid): Remove.
3648 * common/ptid.h (ptid_get_tid): Don't declare.
3649 * ada-tasks.c: Update.
3650 * aix-thread.c: Update.
3651 * bsd-uthread.c: Update.
3652 * darwin-nat.c: Update.
3653 * fbsd-nat.c: Update.
3654 * i386-darwin-nat.c: Update.
3656 * linux-tdep.c: Update.
3657 * nto-procfs.c: Update.
3658 * ppc-ravenscar-thread.c: Update.
3659 * python/py-infthread.c: Update.
3660 * ravenscar-thread.c: Update.
3661 * sol-thread.c: Update.
3662 * sparc-ravenscar-thread.c: Update.
3663 * windows-nat.c: Update.
3665 2018-07-03 Tom Tromey <tom@tromey.com>
3667 * common/ptid.c (ptid_get_lwp): Remove.
3668 * common/ptid.h (ptid_get_lwp): Don't declare.
3669 * aarch64-linux-nat.c: Update.
3670 * ada-tasks.c: Update.
3671 * aix-thread.c: Update.
3672 * amd64-linux-nat.c: Update.
3673 * arm-linux-nat.c: Update.
3674 * corelow.c: Update.
3675 * fbsd-nat.c: Update.
3676 * fbsd-tdep.c: Update.
3677 * gnu-nat.c: Update.
3678 * i386-cygwin-tdep.c: Update.
3679 * i386-gnu-nat.c: Update.
3680 * i386-linux-nat.c: Update.
3681 * ia64-linux-nat.c: Update.
3682 * inf-ptrace.c: Update.
3684 * linux-fork.c: Update.
3685 * linux-nat.c: Update.
3686 * linux-tdep.c: Update.
3687 * linux-thread-db.c: Update.
3688 * mips-linux-nat.c: Update.
3689 * nat/aarch64-linux-hw-point.c: Update.
3690 * nat/aarch64-linux.c: Update.
3691 * nat/linux-btrace.c: Update.
3692 * nat/linux-osdata.c: Update.
3693 * nat/linux-procfs.c: Update.
3694 * nat/x86-linux-dregs.c: Update.
3695 * obsd-nat.c: Update.
3696 * ppc-fbsd-nat.c: Update.
3697 * ppc-linux-nat.c: Update.
3699 * python/py-infthread.c: Update.
3700 * ravenscar-thread.c: Update.
3702 * s390-linux-nat.c: Update.
3703 * sol-thread.c: Update.
3704 * sol2-tdep.c: Update.
3705 * spu-linux-nat.c: Update.
3706 * x86-linux-nat.c: Update.
3707 * xtensa-linux-nat.c: Update.
3709 2018-07-03 Tom Tromey <tom@tromey.com>
3711 * common/ptid.c (ptid_get_pid): Remove.
3712 * common/ptid.h (ptid_get_pid): Don't declare.
3713 * aarch64-linux-nat.c: Update.
3714 * ada-lang.c: Update.
3715 * aix-thread.c: Update.
3716 * alpha-bsd-nat.c: Update.
3717 * amd64-fbsd-nat.c: Update.
3718 * amd64-linux-nat.c: Update.
3719 * arm-linux-nat.c: Update.
3720 * arm-nbsd-nat.c: Update.
3722 * break-catch-syscall.c: Update.
3723 * breakpoint.c: Update.
3724 * bsd-uthread.c: Update.
3725 * corelow.c: Update.
3727 * darwin-nat.c: Update.
3728 * fbsd-nat.c: Update.
3729 * fbsd-tdep.c: Update.
3731 * gnu-nat.c: Update.
3732 * hppa-nbsd-nat.c: Update.
3733 * hppa-obsd-nat.c: Update.
3734 * i386-fbsd-nat.c: Update.
3735 * ia64-linux-nat.c: Update.
3736 * inf-ptrace.c: Update.
3738 * inferior.c: Update.
3739 * inferior.h: Update.
3742 * linux-fork.c: Update.
3743 * linux-nat.c: Update.
3744 * linux-tdep.c: Update.
3745 * linux-thread-db.c: Update.
3746 * m68k-bsd-nat.c: Update.
3747 * mi/mi-interp.c: Update.
3748 * mi/mi-main.c: Update.
3749 * mips-linux-nat.c: Update.
3750 * mips-nbsd-nat.c: Update.
3751 * mips64-obsd-nat.c: Update.
3752 * nat/aarch64-linux-hw-point.c: Update.
3753 * nat/aarch64-linux.c: Update.
3754 * nat/linux-btrace.c: Update.
3755 * nat/linux-osdata.c: Update.
3756 * nat/linux-procfs.c: Update.
3757 * nat/x86-linux-dregs.c: Update.
3758 * nto-procfs.c: Update.
3759 * obsd-nat.c: Update.
3760 * ppc-linux-nat.c: Update.
3761 * ppc-nbsd-nat.c: Update.
3762 * ppc-obsd-nat.c: Update.
3763 * proc-service.c: Update.
3765 * python/py-inferior.c: Update.
3766 * python/py-infthread.c: Update.
3767 * ravenscar-thread.c: Update.
3769 * remote-sim.c: Update.
3771 * rs6000-nat.c: Update.
3772 * s390-linux-nat.c: Update.
3773 * sh-nbsd-nat.c: Update.
3774 * sol-thread.c: Update.
3775 * sparc-nat.c: Update.
3776 * sparc64-tdep.c: Update.
3777 * spu-linux-nat.c: Update.
3778 * spu-tdep.c: Update.
3779 * target-debug.h: Update.
3782 * tid-parse.c: Update.
3783 * tracefile-tfile.c: Update.
3784 * vax-bsd-nat.c: Update.
3785 * windows-nat.c: Update.
3786 * x86-linux-nat.c: Update.
3787 * x86-nat.c: Update.
3789 2018-07-03 Tom Tromey <tom@tromey.com>
3791 * common/ptid.c (pid_to_ptid): Remove.
3792 * common/ptid.h (pid_to_ptid): Don't declare.
3793 * aix-thread.c: Update.
3794 * arm-linux-nat.c: Update.
3795 * common/ptid.c: Update.
3796 * common/ptid.h: Update.
3797 * corelow.c: Update.
3799 * darwin-nat.c: Update.
3800 * fbsd-nat.c: Update.
3801 * fork-child.c: Update.
3802 * gnu-nat.c: Update.
3803 * go32-nat.c: Update.
3804 * inf-ptrace.c: Update.
3806 * inferior.c: Update.
3808 * linux-fork.c: Update.
3809 * linux-nat.c: Update.
3810 * nat/aarch64-linux-hw-point.c: Update.
3811 * nat/fork-inferior.c: Update.
3812 * nat/x86-linux-dregs.c: Update.
3813 * nto-procfs.c: Update.
3814 * obsd-nat.c: Update.
3816 * progspace.c: Update.
3818 * rs6000-nat.c: Update.
3819 * s390-linux-nat.c: Update.
3820 * sol-thread.c: Update.
3821 * spu-linux-nat.c: Update.
3824 * tracefile-tfile.c: Update.
3825 * windows-nat.c: Update.
3827 2018-07-03 Tom Tromey <tom@tromey.com>
3829 * common/ptid.h (ptid_build): Don't declare.
3830 * common/ptid.c (ptid_build): Remove.
3831 * aix-thread.c: Update.
3832 * bsd-kvm.c: Update.
3833 * bsd-uthread.c: Update.
3834 * common/agent.c: Update.
3835 * common/ptid.c: Update.
3836 * common/ptid.h: Update.
3837 * corelow.c: Update.
3838 * darwin-nat.c: Update.
3839 * fbsd-nat.c: Update.
3840 * gnu-nat.c: Update.
3841 * linux-fork.c: Update.
3842 * linux-nat.c: Update.
3843 * linux-thread-db.c: Update.
3844 * nat/linux-osdata.c: Update.
3845 * nat/linux-procfs.c: Update.
3846 * nto-procfs.c: Update.
3847 * obsd-nat.c: Update.
3848 * proc-service.c: Update.
3850 * ravenscar-thread.c: Update.
3851 * remote-sim.c: Update.
3853 * sol-thread.c: Update.
3855 * windows-nat.c: Update.
3857 2018-07-03 Tom Tromey <tom@tromey.com>
3859 * infrun.c (follow_exec): Use exit_inferior_silent.
3860 * inferior.c (exit_inferior_num_silent): Remove.
3861 * inferior.h (exit_inferior_num_silent): Don't declare.
3863 2018-07-03 Tom Tromey <tom@tromey.com>
3866 * darwin-nat.c (darwin_attach_pid): Reset inferior and
3867 inferior_ptid on error.
3869 2018-07-02 Maciej W. Rozycki <macro@mips.com>
3870 Simon Marchi <simon.marchi@polymtl.ca>
3873 * disasm.h (gdb_disassembler): Add
3874 `m_disassembler_options_holder'. member
3875 * disasm.c (get_all_disassembler_options): New function.
3876 (gdb_disassembler::gdb_disassembler): Use it.
3877 (gdb_buffered_insn_length_init_dis): Likewise.
3878 (gdb_buffered_insn_length): Adjust accordingly.
3879 (set_disassembler_options): Handle options with arguments.
3880 (show_disassembler_options_sfunc): Likewise. Add a leading new
3881 line if showing options with descriptions.
3882 (disassembler_options_completer): Adapt to using the
3883 `disasm_options_and_args_t' structure.
3884 * mips-tdep.c (mips_disassembler_options): New variable.
3885 (mips_disassembler_options_o32): Likewise.
3886 (mips_disassembler_options_n32): Likewise.
3887 (mips_disassembler_options_n64): Likewise.
3888 (gdb_print_insn_mips): Don't set `disassembler_options'.
3889 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
3891 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
3892 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
3893 `gdbarch_disassembler_options_implicit' and
3894 `gdbarch_valid_disassembler_options'.
3895 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
3896 `disasm_options_and_args_t' structure.
3897 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
3899 (valid_disassembler_options): Switch from `disasm_options_t' to
3900 the `disasm_options_and_args_t' structure.
3901 * NEWS: Document `set disassembler-options' support for the MIPS
3903 * gdbarch.h: Regenerate.
3904 * gdbarch.c: Regenerate.
3906 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3908 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
3910 2018-06-29 Joel Brobecker <brobecker@adacore.com>
3912 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
3913 parameter in call to amd64_target_description.
3914 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
3915 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
3916 (amd64fbsd_init_abi): Likewise.
3917 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
3918 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
3919 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
3920 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
3922 2018-06-29 Pedro Alves <palves@redhat.com>
3924 * gdb/amd64-tdep.h (amd64_create_target_description): Add
3925 "segments" parameter.
3926 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
3927 (_initialize_amd64_tdep): Update call to
3928 amd64_create_target_description.
3929 (amd64_target_description): Add "segments" parameter. Adjust
3930 the implementation to use it.
3931 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
3932 call to amd64_create_target_description.
3933 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
3934 * gdb/arch/amd64.h (amd64_create_target_description): Add
3935 "segments" register.
3936 * gdb/arch/amd64.c (amd64_create_target_description): Add
3937 "segments" parameter. Call create_feature_i386_64bit_segments
3938 only if SEGMENTS is true.
3939 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
3940 call to amd64_create_target_description.
3942 2018-06-29 Pedro Alves <palves@redhat.com>
3944 * thread.c (thread_target_id_str): New, factored out from ...
3945 (print_thread_info_1): ... here. Use it to compute the max
3946 "Target Id" column width.
3948 2018-06-29 Pedro Alves <palves@redhat.com>
3950 * remote.c (remote_target::extra_thread_info): Delete
3951 'display_buf' and 'n' locals. from the cache, regardless of
3952 packet mechanims is in use. Use cache for qThreadExtra and qP
3955 2018-06-29 Pedro Alves <palves@redhat.com>
3957 * blockframe.c (find_pc_sect_containing_function): New function.
3958 * breakpoint.c (print_breakpoint_location): Don't call
3959 find_pc_sect_function.
3960 * linespec.c (create_sals_line_offset): Record the location's
3962 * linespec.c (convert_address_location_to_sals): Fill in sal's
3963 symbol with find_pc_sect_containing_function.
3964 * symtab.c (find_function_start_sal): Rename to ...
3965 (find_function_start_sal_1): ... this.
3966 (find_function_start_sal): Reimplement as wrapper around
3967 find_function_start_sal_1, and use
3968 find_pc_sect_containing_function to fill in the sal's symbol.
3969 (find_function_start_sal(symbol*, bool)): Adjust.
3970 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
3972 (find_pc_sect_containing_function): Declare.
3974 2018-06-29 Pedro Alves <palves@redhat.com>
3976 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
3977 true if the the location has no symbol.
3979 2018-06-28 Tom Tromey <tom@tromey.com>
3981 * NEWS: Mention --enable-codesign.
3982 * silent-rules.mk (ECHO_SIGN): New variable.
3983 * configure.ac: Add --enable-codesign.
3984 * configure: Rebuild.
3985 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
3986 (gdb$(EXEEXT)): Optionally invoke codesign.
3988 2018-06-28 Pedro Alves <palves@redhat.com>
3990 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
3992 (switch_to_thread_no_regs): Adjust comment.
3993 * infcmd.c (stop_pc): Delete.
3994 (post_create_inferior, info_program_command): Replace references
3995 to stop_pc with references to thread_info->suspend.stop_pc.
3996 * inferior.h (stop_pc): Delete declaration.
3997 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
3998 (handle_inferior_event_1, handle_signal_stop)
3999 (process_event_stop_test, keep_going_stepped_thread)
4000 (handle_step_into_function, handle_step_into_function_backward)
4001 (print_stop_location): Replace references to stop_pc with
4002 references to thread_info->suspend.stop_pc.
4003 (struct infcall_suspend_state) <stop_pc>: Delete field.
4004 (save_infcall_suspend_state, restore_infcall_suspend_state):
4005 Remove references to inf_stat->stop_pc.
4006 * linux-fork.c (fork_load_infrun_state): Likewise.
4007 * record-btrace.c (record_btrace_set_replay): Likewise.
4008 * record-full.c (record_full_goto_entry): Likewise.
4009 * remote.c (print_one_stopped_thread): Likewise.
4010 * target.c (target_resume): Extend comment.
4011 * thread.c (set_executing_thread): New.
4012 (set_executing): Use it.
4013 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4014 Remove references to stop_pc.
4016 2018-06-28 Pedro Alves <palves@redhat.com>
4018 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4019 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4021 2018-06-28 Tom Tromey <tom@tromey.com>
4023 * coffread.c (coff_symfile_finish): Update.
4024 * xcoffread.c (xcoff_symfile_finish): Update.
4025 * elfread.c (elf_symfile_finish): Update.
4026 * symfile.h (dwarf2_free_objfile): Don't declare.
4027 * dwarf2read.c (_initialize_dwarf2_read): Use
4028 register_objfile_data_with_cleanup.
4029 (dwarf2_free_objfile): Now static. Change signature.
4031 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4033 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4034 option "-o" to add-symbol-file-load to add an offset to each
4035 section's load address.
4036 * symfile.c (set_objfile_default_section_offset): New function.
4038 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4040 * symfile.c (add_symbol_file_command): Make sure that sections
4041 with the same name are sorted in the same order.
4043 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4045 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4046 require the second argument. If omitted, load sections at the
4047 addresses specified in the file.
4049 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4051 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4052 (_initialize_symfile): Add option "-o" to symbol-file to add an
4053 offset to each section of the symbol file.
4055 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4057 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4059 2018-06-27 Tom Tromey <tom@tromey.com>
4061 * stack.c (_initialize_stack): Update "func" help text.
4063 2018-06-27 Tom Tromey <tom@tromey.com>
4065 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4067 (unwind_infopy_str, pyuw_create_unwind_info)
4068 (unwind_infopy_add_saved_register, pyuw_sniffer)
4069 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4071 (struct saved_reg): Add constructor.
4072 <value>: Now a gdbpy_ref<>.
4074 2018-06-27 Tom Tromey <tom@tromey.com>
4076 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4078 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4080 * gdb-gdb.py.in: Format using autopep8.
4082 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4084 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4085 (type_lookup_function): Recognize CORE_ADDR values.
4087 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4089 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4092 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4094 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4097 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4099 * gdb-gdb.py: Move to...
4100 * gdb-gdb.py.in: ... here.
4101 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4102 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4104 (distclean): Remove gdb-gdb.py when cleaning.
4105 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4106 * configure: Re-generate.
4108 2018-06-27 Pedro Alves <palves@redhat.com>
4110 * proc-service.c (get_ps_regcache): New.
4111 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4112 (ps_lsetfpregs): Use it.
4114 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
4117 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4118 (dwarf_decode_lines_1): Adjust.
4120 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4122 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4124 <info_proc>: Likewise.
4126 2018-06-26 Joel Brobecker <brobecker@adacore.com>
4128 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4129 to windows_fetch_one_register, and only handle the case of
4130 fetching one register. Move the code that reloads the context
4131 and iterates over all registers if R is negative to...
4132 (windows_nat_target::fetch_registers): ... here.
4133 (do_windows_store_inferior_registers): Rename to
4134 windows_store_one_register, and only handle the case of storing
4135 one register. Move the code that handles the case where r is
4137 (windows_nat_target::store_registers) ... here.
4139 2018-06-26 Tom Tromey <tom@tromey.com>
4142 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4143 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4145 (rust_internal_print_type): Add podata parameter.
4146 (rust_print_type): Update.
4148 2018-06-26 Tom Tromey <tom@tromey.com>
4150 * typeprint.h (struct print_offset_data) <update, finish,
4151 maybe_print_hole>: New methods.
4152 <indentation>: New constant.
4153 * typeprint.c (print_offset_data::indentation): Define.
4154 (print_offset_data::maybe_print_hole, print_offset_data::update)
4155 (print_offset_data::finish): Move from c-typeprint.c and rename.
4156 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4157 (print_spaces_filtered_with_print_options): Update.
4158 (c_print_type_union_field_offset, maybe_print_hole)
4159 (c_print_type_struct_field_offset): Move to typeprint.c and
4161 (c_type_print_base_struct_union): Update.
4163 2018-06-25 Pedro Alves <palves@redhat.com>
4165 * gdbthread.h (thread_info_ref, delete_thread)
4166 (delete_thread_silent, first_thread_of_inferior)
4167 (any_thread_of_inferior, switch_to_thread)
4168 (enable_thread_stack_temporaries)
4169 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4170 (get_last_thread_stack_temporary)
4171 (value_in_thread_stack_temporaries, can_access_registers_thread):
4172 Spell out "struct thread_info" instead of just "thread_info".
4173 * inferior.h (notice_new_inferior): Likewise.
4175 2018-06-25 Pedro Alves <palves@redhat.com>
4177 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4178 pass thread_info pointer to delete_thread.
4179 (windows_nat_target::detach): Pass inferior pointer to
4181 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4183 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4184 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4185 and pass a thread_info pointer to delete_thread.
4186 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4187 pass thread_info pointer to delete_thread.
4188 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4189 delete_thread_silent call.
4190 * procfs.c (procfs_target::detach): Pass inferior pointer to
4192 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4193 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4194 delete_thread_silent call.
4195 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4196 pass thread_info pointer to delete_thread.
4197 (windows_nat_target::detach): Pass inferior pointer to
4200 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4202 * regcache.c (readable_regcache::read_part): Fix asserts.
4203 (reg_buffer::raw_collect_part): New function.
4204 (regcache::write_part): Fix asserts.
4205 (reg_buffer::raw_supply_part): New function.
4206 (regcache::transfer_regset_register): New helper function.
4207 (regcache::transfer_regset): Call new functions.
4208 (regcache_supply_regset): Use gdb_byte*.
4209 (regcache::supply_regset): Likewise.
4210 (regcache_collect_regset): Likewise.
4211 (regcache::collect_regset): Likewise.
4212 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4213 (reg_buffer::raw_supply_part): Likewise.
4214 (regcache::transfer_regset_register): Likewise.
4215 (regcache::transfer_regset): Use gdb_byte*.
4217 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4219 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4221 2018-06-21 Pedro Alves <palves@redhat.com>
4223 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4224 instead of a ptid_t. All callers adjusted.
4225 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4227 (print_ada_task_info, display_current_task_id, task_command_1):
4229 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4231 (breakpoint_kind): Adjust.
4232 (remove_breakpoints_pid): Rename to ...
4233 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4234 pointer. All callers adjusted.
4235 (bpstat_clear_actions): Use inferior_thread.
4236 (get_bpstat_thread): New.
4237 (bpstat_do_actions): Use it.
4238 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4239 to take a thread_info pointer. All callers adjusted.
4240 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4241 (breakpoint_re_set_thread): Use inferior_thread.
4242 * breakpoint.h (struct inferior): Forward declare.
4243 (bpstat_stop_status): Update.
4244 (remove_breakpoints_pid): Delete.
4245 (remove_breakpoints_inf): New.
4246 * bsd-uthread.c (bsd_uthread_target::wait)
4247 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4248 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4249 (maint_btrace_packet_history_cmd)
4250 (maint_btrace_clear_packet_history_cmd): Adjust.
4251 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4253 * cli/cli-interp.c: Include "inferior.h".
4254 * common/refcounted-object.h (struct
4255 refcounted_object_ref_policy): New.
4256 * compile/compile-object-load.c: Include gdbthread.h.
4257 (store_regs): Use inferior_thread.
4258 * corelow.c (core_target::close): Use current_inferior.
4259 (core_target_open): Adjust to use first_thread_of_inferior and use
4260 the current inferior.
4261 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4262 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4263 <thread>: ... this new field. All references adjusted.
4264 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4265 Take a thread_info pointer instead of a ptid_t.
4266 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4267 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4268 thread_info pointer instead of a ptid_t.
4269 * elfread.c: Include "inferior.h".
4270 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4271 Use inferior_thread.
4272 * eval.c (evaluate_subexp): Likewise.
4273 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4275 * gdb_proc_service.h (struct thread_info): Forward declare.
4276 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4277 <thread>: ... this new field. All references adjusted.
4278 * gdbarch.h, gdbarch.c: Regenerate.
4279 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4280 'thread' parameter. All implementations and callers adjusted.
4281 * gdbthread.h (thread_info) <set_running>: New method.
4282 (delete_thread, delete_thread_silent): Take a thread_info pointer
4284 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4285 (first_thread_of_process): Delete, replaced by ...
4286 (first_thread_of_inferior): ... this new function. All callers
4288 (any_live_thread_of_process): Delete, replaced by ...
4289 (any_live_thread_of_inferior): ... this new function. All callers
4291 (switch_to_thread, switch_to_no_thread): Declare.
4292 (is_executing): Delete.
4293 (enable_thread_stack_temporaries): Update comment.
4294 <enable_thread_stack_temporaries>: Take a thread_info pointer
4295 instead of a ptid_t. Incref the thread.
4296 <~enable_thread_stack_temporaries>: Decref the thread.
4299 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4300 (get_last_thread_stack_temporary)
4301 (value_in_thread_stack_temporaries, can_access_registers_thread):
4302 Take a thread_info pointer instead of a ptid_t. All callers
4304 * infcall.c (get_call_return_value): Use inferior_thread.
4305 (run_inferior_call): Work with thread pointers instead of ptid_t.
4306 (call_function_by_hand_dummy): Work with thread pointers instead
4307 of ptid_t. Use thread_info_ref.
4308 * infcmd.c (proceed_thread_callback): Access thread's state
4310 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4311 access thread's state directly.
4312 (continue_command): Use inferior_thread.
4313 (info_program_command): Use find_thread_ptid and access thread
4315 (proceed_after_attach_callback): Use thread state directly.
4316 (notice_new_inferior): Take a thread_info pointer instead of a
4317 ptid_t. All callers adjusted.
4318 (exit_inferior): Take an inferior pointer instead of a pid. All
4320 (exit_inferior_silent): New.
4321 (detach_inferior): Delete.
4322 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4323 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4324 (detach_inferior_command, kill_inferior_command): Use
4325 find_inferior_id instead of valid_gdb_inferior_id and
4326 gdb_inferior_id_to_pid.
4327 (inferior_command): Use inferior and thread pointers.
4328 * inferior.h (struct thread_info): Forward declare.
4329 (notice_new_inferior): Take a thread_info pointer instead of a
4330 ptid_t. All callers adjusted.
4331 (detach_inferior): Delete declaration.
4332 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4333 instead of a pid. All callers adjusted.
4334 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4335 (valid_gdb_inferior_id): Delete.
4336 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4337 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4338 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4340 <inf>: ... this new field.
4341 <step_ptid>: Delete, replaced by ...
4342 <step_thread>: ... this new field.
4343 (get_displaced_stepping_state): Take an inferior pointer instead
4344 of a pid. All callers adjusted.
4345 (displaced_step_in_progress_any_inferior): Adjust.
4346 (displaced_step_in_progress_thread): Take a thread pointer instead
4347 of a ptid_t. All callers adjusted.
4348 (displaced_step_in_progress, add_displaced_stepping_state): Take
4349 an inferior pointer instead of a pid. All callers adjusted.
4350 (get_displaced_step_closure_by_addr): Adjust.
4351 (remove_displaced_stepping_state): Take an inferior pointer
4352 instead of a pid. All callers adjusted.
4353 (displaced_step_prepare_throw, displaced_step_prepare)
4354 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4355 All callers adjusted.
4356 (start_step_over): Adjust.
4357 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4358 displaced step queue.
4359 (do_target_resume): Adjust.
4360 (fetch_inferior_event): Use inferior_thread.
4361 (context_switch, get_inferior_stop_soon): Take an
4362 execution_control_state pointer instead of a ptid_t. All callers
4364 (switch_to_thread_cleanup): Delete.
4365 (stop_all_threads): Use scoped_restore_current_thread.
4366 * inline-frame.c: Include "gdbthread.h".
4367 (inline_state) <inline_state>: Take a thread pointer instead of a
4368 ptid_t. All callers adjusted.
4369 <ptid>: Delete, replaced by ...
4370 <thread>: ... this new field.
4371 (find_inline_frame_state): Take a thread pointer instead of a
4372 ptid_t. All callers adjusted.
4373 (skip_inline_frames, step_into_inline_frame)
4374 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4375 pointer instead of a ptid_t. All callers adjusted.
4376 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4377 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4378 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4380 * linux-nat.c (get_detach_signal): Likewise.
4381 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4382 (thread_db_notice_clone): Adjust.
4383 (thread_db_find_new_threads_silently)
4384 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4385 a thread pointer instead of a ptid_t. All callers adjusted.
4386 * mi/mi-cmd-var.c: Include "inferior.h".
4387 (mi_cmd_var_update_iter): Update to use thread pointers.
4388 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4390 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4392 (mi_output_running): ... this new function.
4393 (mi_on_resume_1): Adjust to use it.
4394 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4395 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4397 (interrupt_thread_callback): : Adjust to use thread and inferior
4399 * proc-service.c: Include "gdbthread.h".
4400 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4401 * progspace-and-thread.c: Include "inferior.h".
4402 * progspace.c: Include "inferior.h".
4403 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4404 hold a reference to an inferior_object.
4405 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4407 * python/py-inferior.c (struct inferior_object): Give the type a
4408 tag name instead of a typedef.
4409 (python_on_normal_stop): No need to check if the current thread is
4411 (inferior_to_inferior_object): Change return type to
4412 inferior_object. All callers adjusted.
4413 (find_thread_object): Delete, bits factored out to ...
4414 (thread_to_thread_object): ... this new function.
4415 * python/py-infthread.c (create_thread_object): Use
4416 inferior_to_inferior_object.
4417 (thpy_is_stopped): Use thread pointer directly.
4418 (gdbpy_selected_thread): Use inferior_thread.
4419 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4420 field, replaced with ...
4421 <thread>: ... this new field. All users adjusted.
4422 (btpy_insn_or_gap_new): Drop const.
4423 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
4425 * python/py-record.c: Include "gdbthread.h".
4426 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4427 a ptid_t. All callers adjusted.
4428 (gdbpy_current_recording): Use inferior_thread.
4429 * python/py-record.h (recpy_record_object) <ptid>: Delete
4430 field, replaced with ...
4431 <thread>: ... this new field. All users adjusted.
4432 (recpy_element_object) <ptid>: Delete
4433 field, replaced with ...
4434 <thread>: ... this new field. All users adjusted.
4435 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4436 a ptid_t. All callers adjusted.
4437 * python/py-threadevent.c: Include "gdbthread.h".
4438 (get_event_thread): Use thread_to_thread_object.
4439 * python/python-internal.h (struct inferior_object): Forward
4441 (find_thread_object, find_inferior_object): Delete declarations.
4442 (thread_to_thread_object, inferior_to_inferior_object): New
4444 * record-btrace.c: Include "inferior.h".
4445 (require_btrace_thread): Use inferior_thread.
4446 (record_btrace_frame_sniffer)
4447 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
4448 (get_thread_current_frame): Use scoped_restore_current_thread and
4450 (get_thread_current_frame): Use thread pointer directly.
4451 (record_btrace_replay_at_breakpoint): Use thread's inferior
4453 * record-full.c: Include "inferior.h".
4454 * regcache.c: Include "gdbthread.h".
4455 (get_thread_arch_regcache): Use the inferior's address space
4457 (get_thread_regcache, registers_changed_thread): New.
4458 * regcache.h (get_thread_regcache(thread_info *thread)): New
4460 (registers_changed_thread): New.
4461 (remote_target) <remote_detach_1>: Swap order of parameters.
4462 (remote_add_thread): <remote_add_thread>: Return the new thread.
4463 (get_remote_thread_info(ptid_t)): New overload.
4464 (remote_target::remote_notice_new_inferior): Use thread pointers
4466 (remote_target::process_initial_stop_replies): Use
4467 thread_info::set_running.
4468 (remote_target::remote_detach_1, remote_target::detach)
4469 (extended_remote_target::detach): Adjust.
4470 * stack.c (frame_show_address): Use inferior_thread.
4471 * target-debug.h (target_debug_print_thread_info_pp): New.
4472 * target-delegates.c: Regenerate.
4473 * target.c (default_thread_address_space): Delete.
4474 (memory_xfer_partial_1): Use current_inferior.
4475 (target_detach): Use current_inferior.
4476 (target_thread_address_space): Delete.
4477 (generic_mourn_inferior): Use current_inferior.
4478 * target.h (struct target_ops) <thread_address_space>: Delete.
4479 (target_thread_address_space): Delete.
4480 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
4482 (delete_thread_1, delete_thread, delete_thread_silent): Take a
4483 thread pointer instead of a ptid_t. Adjust all callers.
4484 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
4485 (first_thread_of_process): Delete, replaced by ...
4486 (first_thread_of_inferior): ... this new function. All callers
4488 (any_thread_of_process): Rename to ...
4489 (any_thread_of_inferior): ... this, and take an inferior pointer.
4490 (any_live_thread_of_process): Rename to ...
4491 (any_live_thread_of_inferior): ... this, and take an inferior
4493 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4494 (value_in_thread_stack_temporaries)
4495 (get_last_thread_stack_temporary): Take a thread pointer instead
4496 of a ptid_t. Adjust all callers.
4497 (thread_info::set_running): New.
4498 (validate_registers_access): Use inferior_thread.
4499 (can_access_registers_ptid): Rename to ...
4500 (can_access_registers_thread): ... this, and take a thread
4502 (print_thread_info_1): Adjust to compare thread pointers instead
4504 (switch_to_no_thread, switch_to_thread): Make extern.
4505 (scoped_restore_current_thread::~scoped_restore_current_thread):
4506 Use m_thread pointer directly.
4507 (scoped_restore_current_thread::scoped_restore_current_thread):
4508 Use inferior_thread.
4509 (thread_command): Use thread pointer directly.
4510 (thread_num_make_value_helper): Use inferior_thread.
4511 * top.c (execute_command): Use inferior_thread.
4512 * tui/tui-interp.c: Include "inferior.h".
4513 * varobj.c (varobj_create): Use inferior_thread.
4514 (value_of_root_1): Use find_thread_global_id instead of
4515 global_thread_id_to_ptid.
4517 2018-06-21 Alan Hayward <alan.hayward@arm.com>
4519 * regcache.c (readable_regcache::read_part): Avoid memcpy when
4521 (regcache::write_part): Likewise.
4522 (readable_regcache::cooked_read_part): Update comment.
4523 (readable_regcache::cooked_write_part): Likewise.
4524 * regcache.h: (readable_regcache::read_part): Likewise.
4525 (regcache::write_part): Likewise.
4527 2018-06-21 Richard Bunt <richard.bunt@arm.com>
4528 Dirk Schubert <dirk.schubert@arm.com>
4530 * aarch64-linux-nat.c (post_attach): New.
4531 (aarch64_linux_nat_target::post_attach): Override post_attach to
4532 record the number of hardware debug registers.
4534 2018-06-20 Tom Tromey <tom@tromey.com>
4536 * python/py-param.c (add_setshow_generic): Make parameters const.
4537 (parmpy_init): Update.
4539 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4541 * regcache.h (regcache_cooked_read_ftype): Rename to...
4542 (register_read_ftype): ...this, change type to function_view.
4543 (class reg_buffer) <save>: Remove src parameter.
4544 (readonly_detached_regcache) <readonly_detached_regcache>: Make
4545 parameter non-const in first overload. Remove src parameter in
4547 * regcache.c (do_cooked_read): Remove.
4548 (readonly_detached_regcache::readonly_detached_regcache): Make
4549 parameter non-const, adjust call to other constructor.
4550 (reg_buffer::save): Remove src parameter.
4551 * frame.c (do_frame_register_read): Remove.
4552 (frame_save_as_regcache): Use lambda function.
4553 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
4554 parameter to ppu2spu_data *.
4555 (ppu2spu_sniffer): Use lambda function.
4557 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4559 * record-full.c (record_full_target::insert_breakpoint): Remove
4560 "struct" keyword, add const.
4562 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4564 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
4565 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
4566 * configure.ac: Remove AC_PREREQ, add missing quoting.
4567 * gnulib/configure.ac: Modernize usage of
4568 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
4569 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
4570 (AUTOMAKE_VERSION): Bump to 1.15.1.
4571 * configure: Re-generate.
4572 * config.in: Re-generate.
4573 * aclocal.m4: Re-generate.
4574 * gnulib/aclocal.m4: Re-generate.
4575 * gnulib/config.in: Re-generate.
4576 * gnulib/configure: Re-generate.
4577 * gnulib/import/Makefile.in: Re-generate.
4579 2018-06-19 Pedro Alves <palves@redhat.com>
4581 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
4582 (lookup_minimal_symbol_by_pc_section): ... here with
4583 gdb_assert_not_reached added.
4585 2018-06-19 Pedro Alves <palves@redhat.com>
4587 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
4588 parameter with a block parameter. Compare location's block symbol
4589 with the frame's block instead of addresses.
4590 (skip_inline_frames): Pass the current block instead of the
4591 frame's address. Break out as soon as we determine the frame
4592 should not be skipped.
4594 2018-06-18 Tom Tromey <tom@tromey.com>
4596 * solib-aix.c (solib_aix_get_section_offsets): Return
4598 (solib_aix_solib_create_inferior_hook): Update.
4600 2018-06-18 Tom Tromey <tom@tromey.com>
4602 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
4604 2018-06-18 Tom Tromey <tom@tromey.com>
4606 * solib-frv.c (frv_relocate_main_executable): Use
4608 * solib-dsbt.c (dsbt_relocate_main_executable): Use
4611 2018-06-18 Tom Tromey <tom@tromey.com>
4613 * objfiles.h (inhibit_section_map_updates): Update.
4614 (resume_section_map_updates, resume_section_map_updates_cleanup):
4616 * solib-svr4.c (svr4_handle_solib_event): Update.
4617 * objfiles.c (inhibit_section_map_updates): Return
4618 scoped_restore_tmpl<int>.
4619 (resume_section_map_updates, resume_section_map_updates_cleanup):
4622 2018-06-18 Tom Tromey <tom@tromey.com>
4624 * valprint.h (read_string): Update.
4625 * valprint.c (read_string): Change type of "buffer".
4626 (val_print_string): Update.
4627 * python/py-value.c (valpy_string): Update.
4628 * language.h (struct language_defn) <la_get_string>: Change
4630 (default_get_string, c_get_string): Update.
4631 * language.c (default_get_string): Change type of "buffer".
4632 * guile/scm-value.c (gdbscm_value_to_string): Update.
4633 * c-lang.c (c_get_string): Change type of "buffer".
4635 2018-06-18 Tom Tromey <tom@tromey.com>
4637 * ser-mingw.c (struct pipe_state_destroyer): New.
4638 (pipe_state_up): New typedef.
4639 (cleanup_pipe_state): Remove.
4640 (pipe_windows_open): Use pipe_state_up. Don't release argv.
4642 2018-06-18 Tom Tromey <tom@tromey.com>
4644 * rust-lang.h (rust_yyerror): Don't declare.
4645 * rust-lang.c (rust_language_defn): Update.
4646 * rust-exp.y (yyerror): Now static.
4647 * parse.c (parse_exp_in_context_1): Update.
4648 * p-lang.h (p_yyerror): Don't declare.
4649 * p-lang.c (p_language_defn): Update.
4650 * p-exp.y (yyerror): Now static.
4651 * opencl-lang.c (opencl_language_defn): Update.
4652 * objc-lang.c (objc_language_defn): Update.
4653 * m2-lang.h (m2_yyerror): Don't declare.
4654 * m2-lang.c (m2_language_defn): Update.
4655 * m2-exp.y (yyerror): Now static.
4656 * language.h (struct language_defn) <la_error>: Remove.
4657 * language.c (unk_lang_error): Remove.
4658 (unknown_language_defn, auto_language_defn): Remove.
4659 * go-lang.h (go_yyerror): Don't declare.
4660 * go-lang.c (go_language_defn): Update.
4661 * go-exp.y (yyerror): Now static.
4662 * f-lang.h (f_yyerror): Don't declare.
4663 * f-lang.c (f_language_defn): Update.
4664 * f-exp.y (yyerror): Now static.
4665 * d-lang.h (d_yyerror): Don't declare.
4666 * d-lang.c (d_language_defn): Update.
4667 * d-exp.y (yyerror): Now static.
4668 * c-lang.h (c_yyerror): Don't declare.
4669 * c-lang.c (c_language_defn, cplus_language_defn)
4670 (asm_language_defn, minimal_language_defn): Update.
4671 * c-exp.y (yyerror): Now static.
4672 * ada-lang.h (ada_yyerror): Don't declare.
4673 * ada-lang.c (ada_language_defn): Update.
4674 * ada-exp.y (yyerror): Now static.
4676 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4678 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
4679 (store_sveregs_to_thread): Likewise.
4680 (aarch64_linux_fetch_inferior_registers): Check for SVE.
4681 (aarch64_linux_store_inferior_registers): Likewise.
4682 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
4684 (aarch64_sve_regs_copy_to_regcache): Likewise.
4685 (aarch64_sve_regs_copy_from_regcache): Likewise.
4686 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
4688 (aarch64_sve_regs_copy_to_regcache): Likewise.
4689 (aarch64_sve_regs_copy_from_regcache): Likewise.
4690 (sve_context): Structure from Linux headers.
4691 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
4692 (SVE_SIG_ZREG_SIZE): Likewise.
4693 (SVE_SIG_PREG_SIZE): Likewise.
4694 (SVE_SIG_FFR_SIZE): Likewise.
4695 (SVE_SIG_REGS_OFFSET): Likewise.
4696 (SVE_SIG_ZREGS_OFFSET): Likewise.
4697 (SVE_SIG_ZREG_OFFSET): Likewise.
4698 (SVE_SIG_ZREGS_SIZE): Likewise.
4699 (SVE_SIG_PREGS_OFFSET): Likewise.
4700 (SVE_SIG_PREG_OFFSET): Likewise.
4701 (SVE_SIG_PREGS_SIZE): Likewise.
4702 (SVE_SIG_FFR_OFFSET): Likewise.
4703 (SVE_SIG_REGS_SIZE): Likewise.
4704 (SVE_SIG_CONTEXT_SIZE): Likewise.
4705 (SVE_PT_REGS_MASK): Likewise.
4706 (SVE_PT_REGS_FPSIMD): Likewise.
4707 (SVE_PT_REGS_SVE): Likewise.
4708 (SVE_PT_VL_INHERIT): Likewise.
4709 (SVE_PT_VL_ONEXEC): Likewise.
4710 (SVE_PT_REGS_OFFSET): Likewise.
4711 (SVE_PT_FPSIMD_OFFSET): Likewise.
4712 (SVE_PT_FPSIMD_SIZE): Likewise.
4713 (SVE_PT_SVE_ZREG_SIZE): Likewise.
4714 (SVE_PT_SVE_PREG_SIZE): Likewise.
4715 (SVE_PT_SVE_FFR_SIZE): Likewise.
4716 (SVE_PT_SVE_FPSR_SIZE): Likewise.
4717 (SVE_PT_SVE_FPCR_SIZE): Likewise.
4718 (__SVE_SIG_TO_PT): Likewise.
4719 (SVE_PT_SVE_OFFSET): Likewise.
4720 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
4721 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
4722 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
4723 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
4724 (SVE_PT_SVE_PREG_OFFSET): Likewise.
4725 (SVE_PT_SVE_PREGS_SIZE): Likewise.
4726 (SVE_PT_SVE_FFR_OFFSET): Likewise.
4727 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
4728 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
4729 (SVE_PT_SVE_SIZE): Likewise.
4730 (SVE_PT_SIZE): Likewise.
4731 (HAS_SVE_STATE): New define.
4733 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4735 * nat/aarch64-sve-linux-sigcontext.h: New file.
4736 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
4738 (SVE_VQ_MIN): Likewise.
4739 (SVE_VQ_MAX): Likewise.
4740 (SVE_VL_MIN): Likewise.
4741 (SVE_VL_MAX): Likewise.
4742 (SVE_NUM_ZREGS): Likewise.
4743 (SVE_NUM_PREGS): Likewise.
4744 (sve_vl_valid): Likewise.
4745 (struct user_sve_header): Likewise.
4747 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4748 Richard Bunt <Richard.Bunt@arm.com>
4750 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
4751 was requested by GDB.
4753 2018-06-15 Tom de Vries <tdevries@suse.de>
4755 * MAINTAINERS (Write After Approval): Add Tom de Vries.
4757 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
4759 * gnulib/update-gnulib.sh: Print expected versions of
4762 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
4764 * arch-utils.c (default_type_align): Use type_length_units.
4765 * gdbtypes.c (type_align): Use type_length_units.
4767 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4769 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
4770 of 'define' command.
4772 2018-06-14 Tom de Vries <tdevries@suse.de>
4775 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
4776 get_no_prettyformat_print_options.
4778 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
4780 * sparc-nat.h: Include target.h.
4781 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
4782 <fetch_registers>: Remove this argument in function call.
4783 <store_registers>: Remove this argument in function call, remove
4785 <low_forget_process>: Call sparc64_forget_process instead of
4786 sparc_forget_process.
4788 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4790 * procfs.c (_initialize_procfs): Use add_inf_child_target.
4791 (procfs_target::make_corefile_notes): Adjust to new
4792 target_read_alloc return type.
4794 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4795 Stephen Roberts <stephen.roberts@arm.com>
4798 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
4799 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
4800 Move should_notify_stop local into more inner scope.
4802 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4803 Stephen Roberts <stephen.roberts@arm.com>
4806 * infrun.c (resume_1): Add call to mark_async_event_handler.
4808 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4810 * infrun.c (do_target_wait): Change old version of $pc printed.
4812 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
4814 * dwarf2read.c (read_index_from_section): Rename to...
4815 (read_gdb_index_from_section): ... this, update all callers.
4816 (dwarf2_read_index): Rename to...
4817 (dwarf2_read_gdb_index): ... this, update all callers.
4819 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
4821 * gdb/hppa-linux-nat.c
4822 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
4823 hppa_linux_nat_target::fetch_registers.
4825 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4827 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
4828 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
4829 (AARCH64_DWARF_SVE_FFR): Likewise.
4830 (AARCH64_DWARF_SVE_P0): Likewise.
4831 (AARCH64_DWARF_SVE_Z0): Likewise.
4833 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4835 * common/common-regcache.h (raw_compare): New function.
4836 * regcache.c (regcache::raw_compare): Likewise.
4837 * regcache.h (regcache::raw_compare): New declaration.
4839 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4841 * common/common-regcache.h (reg_buffer_common): New structure.
4842 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
4843 (reg_buffer::raw_supply): Likewise.
4844 (reg_buffer::raw_supply_integer): Likewise.
4845 (reg_buffer::raw_supply_zeroed): Likewise.
4846 (reg_buffer::raw_collect): Likewise.
4847 (reg_buffer::raw_collect_integer): Likewise.
4848 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
4849 (reg_buffer::raw_supply): Likewise.
4850 (reg_buffer::raw_supply_integer): Likewise.
4851 (reg_buffer::raw_supply_zeroed): Likewise.
4852 (reg_buffer::raw_collect): Likewise.
4853 (reg_buffer::raw_collect_integer): Likewise.
4855 2018-06-10 Tom Tromey <tom@tromey.com>
4857 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
4858 (class remote_state) <stop_reply_queue>: Now std::vector.
4859 (remote_state::~remote_state)
4860 (remote_target::stop_reply_queue_length): Update.
4861 (struct queue_iter_param, remove_child_of_pending_fork)
4862 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
4863 (check_pending_event_prevents_wildcard_vcont_callback)
4864 (remove_stop_reply_for_inferior)
4865 (remove_stop_reply_of_remote_state)
4866 (remote_notif_remove_once_on_match)
4867 (stop_reply_match_ptid_and_ws)
4868 (remote_kill_child_of_pending_fork): Remove.
4869 (remote_target::remove_new_fork_children)
4870 (remote_target::check_pending_events_prevent_wildcard_vcont)
4871 (remote_target::discard_pending_stop_replies)
4872 (remote_target::discard_pending_stop_replies_in_queue)
4873 (remote_target::remote_notif_remove_queued_reply)
4874 (remote_target::queued_stop_reply)
4875 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
4876 (remote_target::wait, remote_target::kill_new_fork_children)
4877 (remote_target::async): Update.
4879 2018-06-10 Tom Tromey <tom@tromey.com>
4881 * record-full.c (record_full_arch_list_cleanups): Remove.
4882 (record_full_message): Use try/catch.
4883 (record_full_wait_cleanups): Remove.
4884 (record_full_wait_1): Use try/catch.
4885 (record_full_restore): Likewise.
4887 2018-06-10 Tom Tromey <tom@tromey.com>
4889 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
4890 declare VEC. Add constructor.
4891 <in_target_beneath>: Now bool.
4892 (record_full_breakpoints): Now a std::vector, static.
4893 (record_full_sync_record_breakpoints)
4894 (record_full_init_record_breakpoints)
4895 (record_full_target::insert_breakpoint)
4896 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
4898 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
4900 * dwarf2read.c (process_cu_includes): Remove struct keyword.
4901 * serial.c (serial_interface_lookup): Remove struct keyword.
4903 2018-06-10 Tom Tromey <tom@tromey.com>
4905 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
4907 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
4909 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
4911 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
4912 "beneath" as a method.
4913 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
4914 Use "beneath" as a method.
4916 2018-06-10 Tom Tromey <tom@tromey.com>
4918 * tracefile.c (struct trace_file_writer_deleter): New.
4919 <operator()>: Rename from trace_file_writer_xfree.
4920 (trace_file_writer_up): New typedef.
4921 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
4923 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4925 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
4926 <m_registers, m_register_status>: Change type to
4928 * regcache.c (reg_buffer::reg_buffer): Use new instead of
4931 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4933 * common/common-regcache.h (enum register_status): Add
4934 underlying type "signed char".
4935 * regcache.h (reg_buffer) <m_register_status>: Change type to
4937 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
4938 register_status instead of signed char.
4939 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
4940 (reg_buffer::get_register_status): Remove cast.
4941 (readable_regcache::raw_read): Remove cast.
4942 (readable_regcache::cooked_read): Remove cast.
4944 2018-06-09 Tom Tromey <tom@tromey.com>
4946 * source.c (reverse_search_command, forward_search_command): Use
4949 2018-06-09 Tom Tromey <tom@tromey.com>
4951 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
4952 (serial_ops_list): Now static, std::vector.
4953 (serial_interface_lookup, serial_add_interface): Update.
4955 2018-06-09 Tom Tromey <tom@tromey.com>
4957 * dwarf2read.c (process_cu_includes): Update.
4958 (process_full_comp_unit): Update.
4959 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
4962 2018-06-08 Paul Koning <paul_koning@dell.com>
4966 * python/python.c (do_start_initialization):
4967 Avoid call to internal Python API.
4968 (init__gdb_module): New function.
4970 2018-06-08 Gary Benson <gbenson@redhat.com>
4972 * linux-thread-db.c (valprint.h): New include.
4973 (struct check_thread_db_info): New structure.
4974 (check_thread_db_on_load, tdb_testinfo): New static globals.
4975 (check_thread_db, check_thread_db_callback): New functions.
4976 (try_thread_db_load_1): Run integrity checks if requested.
4977 (maintenance_check_libthread_db): New function.
4978 (_initialize_thread_db): Register "maint check libthread-db"
4979 and "maint set/show check-libthread-db".
4980 * NEWS: Mention the above new commands.
4982 2018-06-08 Tom Tromey <tom@tromey.com>
4984 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
4987 2018-06-08 Tom Tromey <tom@tromey.com>
4989 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
4991 2018-06-08 Tom Tromey <tom@tromey.com>
4993 * common/btrace-common.h (struct btrace_data): Add constructor,
4994 destructor, move assignment operator.
4995 <empty, clear, fini>: New methods.
4996 <format>: Initialize.
4997 (btrace_data_init, btrace_data_fini, btrace_data_clear)
4998 (btrace_data_empty): Don't declare.
4999 * common/btrace-common.c (btrace_data_init): Remove.
5000 (btrace_data::fini): Rename from btrace_data_fini.
5001 (btrace_data::empty): Rename from btrace_data_empty.
5002 (btrace_data::clear): Rename from btrace_data_clear. Return
5004 * btrace.h (make_cleanup_btrace_data): Don't declare.
5005 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5006 (parse_xml_btrace): Update.
5007 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5008 (maint_btrace_clear_packet_history_cmd): Update.
5010 2018-06-07 Pedro Alves <palves@redhat.com>
5012 * target.h (target_ops) <beneath>: Now a method. All references
5014 (class target_stack): New.
5015 * target.c (g_target_stack): New.
5016 (g_current_top_target): Delete.
5017 (current_top_target): Get the top target out of g_target_stack.
5018 (target_stack::push, target_stack::unpush): New.
5019 (push_target, unpush_target): Reimplement.
5020 (target_is_pushed): Reimplement in terms of g_target_stack.
5021 (target_ops::beneath, target_stack::find_beneath): New.
5023 2018-06-07 Pedro Alves <palves@redhat.com>
5025 * target.h (find_target_beneath): Delete declaration.
5026 * target.c (find_target_beneath): Delete definition.
5027 * aix-thread.c: All callers of find_target_beneath adjusted to
5028 call target_ops::beneath instead.
5029 * bsd-uthread.c: Likewise.
5030 * linux-thread-db.c: Likewise.
5031 * ravenscar-thread.c: Likewise.
5032 * sol-thread.c: Likewise.
5033 * spu-multiarch.c: Likewise.
5035 2018-06-07 Pedro Alves <palves@redhat.com>
5037 * target.h (target_ops) <beneath>: Now a method. All references
5039 (target_ops) <m_beneath>: New.
5040 * target.c (target_ops::beneath): New.
5041 * corelow.c: Adjust all references to target_ops::beneath.
5042 * linux-thread-db.c: Likewise.
5043 * make-target-delegates: Likewise.
5044 * record-btrace.c: Likewise.
5045 * record-full.c: Likewise.
5046 * remote.c: Likewise.
5047 * target.c: Likewise.
5048 * target-delegates.c: Regenerate.
5050 2018-06-07 Pedro Alves <palves@redhat.com>
5052 * target.h (target_stack): Delete.
5053 (current_top_target): Declare function.
5054 * target.c (target_stack): Delete.
5055 (g_current_top_target): New.
5056 (current_top_target): New function.
5057 * auxv.c: Use current_top_target instead of target_stack
5059 * avr-tdep.c: Likewise.
5060 * breakpoint.c: Likewise.
5061 * corefile.c: Likewise.
5062 * elfread.c: Likewise.
5064 * exceptions.c: Likewise.
5065 * frame.c: Likewise.
5066 * gdbarch-selftests.c: Likewise.
5067 * gnu-v3-abi.c: Likewise.
5068 * ia64-tdep.c: Likewise.
5069 * ia64-vms-tdep.c: Likewise.
5070 * infcall.c: Likewise.
5071 * infcmd.c: Likewise.
5072 * infrun.c: Likewise.
5073 * linespec.c: Likewise.
5074 * linux-tdep.c: Likewise.
5075 * minsyms.c: Likewise.
5076 * ppc-linux-nat.c: Likewise.
5077 * ppc-linux-tdep.c: Likewise.
5078 * procfs.c: Likewise.
5079 * regcache.c: Likewise.
5080 * remote.c: Likewise.
5081 * rs6000-tdep.c: Likewise.
5082 * s390-linux-nat.c: Likewise.
5083 * s390-tdep.c: Likewise.
5084 * solib-aix.c: Likewise.
5085 * solib-darwin.c: Likewise.
5086 * solib-dsbt.c: Likewise.
5087 * solib-spu.c: Likewise.
5088 * solib-svr4.c: Likewise.
5089 * solib-target.c: Likewise.
5090 * sparc-tdep.c: Likewise.
5091 * sparc64-tdep.c: Likewise.
5092 * spu-tdep.c: Likewise.
5093 * symfile.c: Likewise.
5094 * symtab.c: Likewise.
5095 * target-descriptions.c: Likewise.
5096 * target-memory.c: Likewise.
5097 * target.c: Likewise.
5098 * target.h: Likewise.
5099 * tracefile-tfile.c: Likewise.
5100 * tracepoint.c: Likewise.
5101 * valops.c: Likewise.
5102 * valprint.c: Likewise.
5103 * value.c: Likewise.
5104 * windows-tdep.c: Likewise.
5105 * mi/mi-main.c: Likewise.
5107 2018-06-07 Tom Tromey <tom@tromey.com>
5109 * valprint.h (build_address_symbolic): Declare.
5110 * printcmd.c (print_address_symbolic): Update.
5111 (build_address_symbolic): Change "name" and "filename" to
5113 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5115 * defs.h (build_address_symbolic): Remove declaration.
5117 2018-06-07 Alan Hayward <alan.hayward@arm.com>
5119 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5120 (aarch64_vnv_type): Add function.
5121 (aarch64_pseudo_register_name): Add V regs for SVE.
5122 (aarch64_pseudo_register_type): Likewise.
5123 (aarch64_pseudo_register_reggroup_p): Likewise.
5124 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5125 (aarch64_pseudo_read_value): Add V regs for SVE.
5126 (aarch64_pseudo_write_2): Use V0 offset for SVE
5127 (aarch64_pseudo_write): Add V regs for SVE.
5128 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5130 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5132 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5133 (sve_vl_from_vq): Likewise.
5135 2018-06-05 Tom Tromey <tom@tromey.com>
5137 * cli/cli-cmds.c (show_version): Update.
5138 * top.c (print_gdb_version): Add "interactive" parameter.
5140 * main.c (captured_main_1): Update.
5141 * top.h (print_gdb_version): Add "interactive" parameter and a
5144 2018-06-05 David Malcolm <dmalcolm@redhat.com>
5146 * common/enum-flags.h: Add trailing semicolon to example in
5149 2018-06-05 Tom Tromey <tom@tromey.com>
5152 * NEWS: Add entry about pager.
5153 * utils.c (pagination_disabled_for_command): New global.
5154 (prompt_for_continue): Allow "c" response to prompt.
5155 (reinitialize_more_filter): Clear
5156 pagination_disabled_for_command.
5157 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5159 2018-06-04 Tom Tromey <tom@tromey.com>
5161 * ada-lang.h (ada_lookup_symbol_list): Update.
5162 * ada-lang.c (resolve_subexp): Update.
5163 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5165 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5166 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5167 results parameter to std::vector.
5168 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5170 * ada-exp.y (block_lookup): Update.
5171 (select_possible_type_sym): Change type of syms. Remove nsyms
5173 (write_var_or_type, write_name_assoc): Update.
5175 2018-06-04 Joel Brobecker <brobecker@adacore.com>
5177 * windows-nat.c (windows_nat_target::xfer_partial): Return
5178 TARGET_XFER_E_IO if we need to delegate to the target beneath
5179 but BENEATH is NULL.
5181 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5183 * Makefile.in (config.status): Add configure.nat as a
5186 2018-06-04 Tom Tromey <tom@tromey.com>
5188 * cp-name-parser.y (cpname_state): Add method declarations.
5189 (HANDLE_QUAL): Update.
5190 (cpname_state::d_grab, cpname_state::fill_comp)
5191 (cpname_state::make_operator, cpname_state::make_dtor)
5192 (cpname_state::make_builtin_type, cpname_state::make_name)
5193 (cpname_state::d_qualify, cpname_state::d_int_type)
5194 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5195 (%union): Move earlier.
5197 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5199 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5201 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5203 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5204 (aarch64_pseudo_write_1): Likewise.
5205 (aarch64_pseudo_read_value): Use helper.
5206 (aarch64_pseudo_write): Likewise.
5208 2018-06-04 Pedro Alves <palves@redhat.com>
5210 * darwin-nat.c (darwin_ops): Delete.
5211 (darwin_attach_pid): Use get_native_target.
5213 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5215 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5216 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5218 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5220 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5221 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5222 (aarch64_gdbarch_init): Check for SVE.
5223 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5225 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5227 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5228 * aarch64-tdep.h (aarch64_read_description): Likewise.
5229 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5230 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5231 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5232 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5233 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5235 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5237 * value.c (value_fetch_lazy_bitfield): New.
5238 (value_fetch_lazy_memory): New.
5239 (value_fetch_lazy_register): New.
5240 (value_fetch_lazy): Factor out to smaller functions.
5242 2018-06-01 Tom Tromey <tom@tromey.com>
5244 * cp-name-parser.y (backslashable, represented): Now const.
5246 2018-06-01 Tom Tromey <tom@tromey.com>
5248 * cp-name-parser.y: Include parser-defs.h.
5249 (parser_fprintf): Remove declaration.
5251 2018-06-01 Tom Tromey <tom@tromey.com>
5253 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5255 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5256 (global_result): Remove globals.
5257 (struct cpname_state): New.
5258 (yyparse): Don't declare.
5259 (yylex, yyerror): Move declarations after %union.
5260 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5261 (make_name): Add state parameter.
5263 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5265 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5267 (yylex): Add lvalp, state parameters.
5268 (yyerror): Add state parameter.
5269 (cp_demangled_name_to_comp): Update.
5271 2018-06-01 Tom Tromey <tom@tromey.com>
5273 * cp-name-parser.y (parser_fprintf): Declare.
5274 (GDB_YY_REMAP_PREFIX): Define.
5275 Include yy-remap.h. Don't redefine yy* identifiers.
5277 2018-06-01 Tom Tromey <tom@tromey.com>
5279 * python/py-type.c (typy_legacy_template_argument): Update.
5280 * cp-support.h (cp_demangled_name_to_comp): Update.
5281 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5282 parameter to be a "std::string *".
5285 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5287 * ada-lex.l: Include "diagnostics.h" instead of
5288 "common/diagnostics.h".
5289 * unittests/environ-selftests.c: Likewise.
5290 * common/diagnostics.h: Moved to ../include.
5292 2018-06-01 Joel Brobecker <brobecker@adacore.com>
5294 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5295 to language_mode_manual while calling breakpoint_re_set_one.
5297 2018-06-01 Tom Tromey <tom@tromey.com>
5299 * valops.c (value_cast_structs, destructor_name_p): Update.
5300 * symtab.c (gdb_mangle_name): Update.
5301 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5303 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5304 (pascal_object_print_value_fields, pascal_object_print_value):
5306 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5307 * linespec.c (find_methods): Update.
5308 * gdbtypes.h (type_name_no_tag): Remove.
5309 (type_name_or_error): Rename from type_name_no_tag_or_error.
5310 * gdbtypes.c (type_name_no_tag): Remove.
5311 (type_name_or_error): Rename from type_name_no_tag_or_error.
5312 (lookup_struct_elt_type, check_typedef): Update.
5313 * expprint.c (print_subexp_standard): Update.
5314 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5315 * d-namespace.c (d_lookup_nested_symbol): Update.
5316 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5317 (cp_print_class_member): Update.
5318 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5319 * completer.c (add_struct_fields): Update.
5320 * c-typeprint.c (cp_type_print_derivation_info)
5321 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5323 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5324 (ada_prefer_type, ada_is_exception_sym): Update.
5326 2018-06-01 Tom Tromey <tom@tromey.com>
5328 * valops.c (enum_constant_from_type, value_namespace_elt)
5329 (value_maybe_namespace_elt): Update.
5330 * valarith.c (find_size_for_pointer_math): Update.
5331 * target-descriptions.c (make_gdb_type): Update.
5332 * symmisc.c (print_symbol): Update.
5333 * stabsread.c (define_symbol, read_type)
5334 (complain_about_struct_wipeout, add_undefined_type)
5335 (cleanup_undefined_types_1): Update.
5336 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5337 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5338 (rust_internal_print_type, rust_composite_type)
5339 (rust_evaluate_funcall, rust_evaluate_subexp)
5340 (rust_inclusive_range_type_p): Update.
5341 * python/py-type.c (typy_get_tag): Update.
5342 * p-typeprint.c (pascal_type_print_base): Update.
5343 * mdebugread.c (parse_symbol, parse_type): Update.
5344 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5346 * guile/scm-type.c (gdbscm_type_tag): Update.
5347 * go-lang.c (sixg_string_p): Update.
5348 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5350 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5351 (TYPE_TAG_NAME): Remove.
5352 * gdbtypes.c (type_name_no_tag): Simplify.
5353 (check_typedef, check_types_equal, recursive_dump_type)
5354 (copy_type_recursive, arch_composite_type): Update.
5355 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5356 in summary mode when needed.
5357 * eval.c (evaluate_funcall): Update.
5358 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5359 (process_structure_scope, read_enumeration_type)
5360 (read_namespace_type, read_module_type, determine_prefix): Update.
5361 * cp-support.c (inspect_type): Update.
5362 * coffread.c (process_coff_symbol, decode_base_type): Update.
5363 * c-varobj.c (c_is_path_expr_parent): Update.
5364 * c-typeprint.c (c_type_print_base_struct_union): Update.
5365 (c_type_print_base_1): Update. Print struct/class/union/enum in
5366 summary when using C language.
5367 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5368 (gen_maybe_namespace_elt): Update.
5369 * ada-lang.c (ada_type_name): Simplify.
5370 (empty_record, ada_template_to_fixed_record_type_1)
5371 (template_to_static_fixed_type)
5372 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5374 2018-06-01 Tom Tromey <tom@tromey.com>
5376 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5378 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5379 (c_print_type): Update.
5380 (c_print_type): New overload.
5381 (c_type_print_varspec_prefix, c_type_print_args)
5382 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5383 (c_type_print_base_struct_union, c_type_print_base_1)
5384 (cp_type_print_method_args): Add "language" parameter.
5385 (c_type_print_base): Update.
5386 * c-lang.h (c_print_type): Add new overload.
5388 2018-06-01 Tom Tromey <tom@tromey.com>
5390 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5391 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5393 2018-06-01 Alan Hayward <alan.hayward@arm.com>
5395 * aarch64-tdep.c (aarch64_sve_register_names): New const
5397 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5398 (AARCH64_SVE_Z_REGS_NUM): New define.
5399 (AARCH64_SVE_P_REGS_NUM): Likewise.
5400 (AARCH64_SVE_NUM_REGS): Likewise.
5402 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
5404 * nat/linux-ptrace.h [__alpha__]
5405 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5408 2018-05-31 Maciej W. Rozycki <macro@mips.com>
5410 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5411 the endianness selected.
5412 * NEWS: Document `set endian auto' mode operation update.
5414 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5416 * Makefile.in: Add new header.
5417 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5418 (sve_vl_from_vg): Likewise.
5419 (sve_vq_from_vl): Likewise.
5420 (sve_vl_from_vq): Likewise.
5421 (sve_vq_from_vg): Likewise.
5422 (sve_vg_from_vq): Likewise.
5423 * configure.nat: Add new c file.
5424 * nat/aarch64-sve-linux-ptrace.c: New file.
5425 * nat/aarch64-sve-linux-ptrace.h: New file.
5427 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5429 * aarch64-linux-nat.c (aarch64_linux_read_description):
5431 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5433 * aarch64-tdep.c (tdesc_aarch64_list): Add.
5434 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
5435 (aarch64_gdbarch_init): Add parmeter zero.
5436 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
5437 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
5438 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
5440 * doc/gdb.texinfo: Describe SVE feature
5441 * features/aarch64-sve.c: New file.
5443 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
5446 * gdbarch.sh (significant_addr_bit): Default to zero when
5447 not set by target architecture.
5448 * gdbarch.c: Re-generated.
5449 * utils.c (address_significant): Update.
5451 2018-05-30 Joel Brobecker <brobecker@adacore.com>
5453 * stack.c (func_command): Remove trailing newline in call to error.
5455 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5457 * regcache.h (regcache_raw_collect): Remove, update callers to
5458 use regcache::raw_collect.
5459 * regcache.c (regcache_raw_collect): Remove.
5461 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5463 * regcache.h (regcache_raw_supply): Remove, update callers to
5464 use detached_regcache::raw_supply.
5465 * regcache.c (regcache_raw_supply): Remove.
5467 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5469 * regcache.h (regcache_cooked_write_part): Remove, update
5470 callers to use regcache::cooked_write_part.
5471 * regcache.c (regcache_cooked_write_part): Remove.
5473 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5475 * regcache.h (regcache_cooked_read_part): Remove, update callers
5476 to use readable_regcache::cooked_read_part.
5477 * regcache.c (regcache_cooked_read_part): Remove.
5479 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5481 * regcache.h (regcache_cooked_read_value): Remove, update
5482 callers to use readable_regcache::cooked_read_value.
5483 * regcache.c (regcache_cooked_read_value): Remove.
5485 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5487 * regcache.h (regcache_cooked_write): Remove, update callers to
5488 use regcache::cooked_write.
5489 * regcache.c (regcache_cooked_write): Remove.
5491 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5493 * regcache.h (regcache_invalidate): Remove, update callers to
5494 use detached_regcache::invalidate instead.
5495 * regcache.c (regcache_invalidate): Remove.
5497 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5499 * regcache.h (regcache_raw_write_part): Remove, update callers
5500 to use regcache::raw_write_part instead.
5501 * regcache.c (regcache_raw_write_part): Remove.
5503 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5505 * regcache.h (regcache_raw_read_part): Remove, update callers to
5506 use readable_regcache::raw_read_part instead.
5507 * regcache.c (regcache_raw_read_part): Remove.
5509 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5511 * regcache.h (regcache_cooked_read): Remove, update callers to
5512 use readable_regcache::cooked_read instead.
5513 * regcache.c (regcache_cooked_read): Remove.
5515 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5517 * regcache.h (regcache_raw_write): Remove, update callers to use
5518 regcache::raw_write instead.
5519 * regcache.c (regcache_raw_write): Remove.
5521 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5523 * regcache.h (regcache_raw_read): Remove, update callers to use
5524 readable_regcache::raw_read instead.
5525 * regcache.c (regcache_raw_read): Remove.
5527 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5529 * regcache.h (regcache_raw_update): Remove, update callers to
5530 use readable_regcache::raw_update instead.
5531 * regcache.c (regcache_raw_update): Remove.
5533 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5535 * regcache.h (regcache_register_status): Remove, update callers
5536 to use reg_buffer::get_register_status directly instead.
5537 * regcache.c (regcache_register_status): Remove.
5539 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5541 * regcache.h (regcache_get_ptid): Remove, update all callers to
5542 call regcache::ptid instead.
5543 * regcache.c (regcache_get_ptid): Remove.
5545 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5547 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
5549 2018-05-30 Pedro Alves <palves@redhat.com>
5551 * common/common-exceptions.h (exception_rethrow): Use
5554 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
5556 * breakpoint.c (print_solib_event, check_status_catch_solib):
5557 Remove struct keyword in range-based for loops.
5558 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
5559 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
5561 * linespec.c (find_superclass_methods, search_minsyms_for_name):
5563 * symfile.c (addr_info_make_relative): Likewise.
5564 * thread.c (value_in_thread_stack_temporaries): Likewise.
5566 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
5569 * valops.c (value_struct_elt_for_reference): Call check_typedef on
5570 aggregate type to get its real type before accessing it.
5572 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
5574 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
5575 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
5576 * coff-pe-read.c (add_pe_forwarded_sym): Replace
5577 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
5578 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
5579 * jit.c (jit_breakpoint_re_set_internal): Likewise.
5580 * printcmd.c (info_address_command): Likewise.
5582 2018-05-29 Tom Tromey <tom@tromey.com>
5584 * windows-nat.c (handle_exception): Update fall-through comment.
5586 2018-05-29 Tom Tromey <tom@tromey.com>
5588 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
5589 (struct program_space) <added_solibs>: Now a std::vector.
5590 * breakpoint.c (print_solib_event): Update.
5591 (check_status_catch_solib): Update.
5592 * progspace.c (clear_program_space_solib_cache): Update.
5593 * solib.c (update_solib_list): Update.
5595 2018-05-29 Tom Tromey <tom@tromey.com>
5597 * python/py-type.c (typy_richcompare): Update.
5598 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
5599 * gdbtypes.h (types_deeply_equal): Return bool.
5600 (types_equal): Likewise.
5601 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
5603 (check_types_equal): Change worklist to std::vector. Return
5605 (struct type_equality_entry): Add constructor.
5606 (compare_maybe_null_strings): Return bool.
5607 (check_types_worklist): Return bool. Change worklist to
5609 (types_deeply_equal): Use std::vector.
5610 (types_equal): Return bool.
5611 (compare_maybe_null_strings): Simplify.
5613 2018-05-29 Tom Tromey <tom@tromey.com>
5615 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
5617 2018-05-29 Tom Tromey <tom@tromey.com>
5619 * objc-lang.h: Don't include cp-support.h.
5620 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
5623 2018-05-27 Tom Tromey <tom@tromey.com>
5625 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
5627 2018-05-25 Tom Tromey <tom@tromey.com>
5629 * value.c (value::location): Initialize.
5631 2018-05-25 Tom Tromey <tom@tromey.com>
5633 * dbxread.c (init_bincl_list): Remove.
5634 (bincl_list): Now a std::vector.
5635 (bincls_allocated, next_bincl): Remove.
5636 (free_bincl_list, do_free_bincl_list_cleanup)
5637 (make_cleanup_free_bincl_list): Remove.
5638 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
5640 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
5641 (struct header_file_location): Add constructor.
5642 (add_bincl_to_list): Remove.
5644 2018-05-25 Tom Tromey <tom@tromey.com>
5646 * tui/tui.c (tui_enable): Update.
5647 * mi/mi-interp.c (mi_interp::init): Update.
5648 * interps.h (class interp) <name>: New method.
5649 <m_name>: Rename from name.
5650 (~scoped_restore_interp): Update.
5651 * interps.c (interp::interp): Update.
5652 (interp_add, interp_set, interp_lookup_existing)
5653 (current_interp_named_p): Update.
5655 2018-05-25 Tom Tromey <tom@tromey.com>
5657 * interps.c (interp_name): Remove.
5658 * mi/mi-interp.c (mi_interp::init): Update.
5659 * interps.h (interp_name): Remove.
5660 (~scoped_restore_interp): Update.
5661 * tui/tui.c (tui_enable): Update.
5663 2018-05-25 Tom Tromey <tom@tromey.com>
5665 * utils.c (fputs_maybe_filtered): Update.
5666 * linespec.c (decode_line_full): Update.
5667 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
5668 (mi_print_breakpoint_for_event, mi_solib_loaded)
5669 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
5670 (mi_user_selected_context_changed): Update.
5671 * mi/mi-main.c (mi_execute_command): Update.
5672 * cli/cli-script.c (execute_control_command): Update.
5673 * python/python.c (execute_gdb_command): Update.
5674 * solib.c (info_sharedlibrary_command): Update.
5675 * interps.c (interp_ui_out): Remove.
5676 * interps.h (interp_ui_out): Remove.
5678 2018-05-25 Tom Tromey <tom@tromey.com>
5680 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
5681 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
5682 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
5684 2018-05-25 Tom Tromey <tom@tromey.com>
5686 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
5687 * interps.c (interp_exec): Use scoped_restore.
5689 2018-05-25 Tom Tromey <tom@tromey.com>
5691 * remote.c (remote_target::remote_file_get): Use
5693 (remote_target::remote_file_put): Likewise.
5695 2018-05-25 Tom Tromey <tom@tromey.com>
5697 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
5699 (get_pe_section_index, add_pe_exported_sym): Update.
5700 (read_pe_exported_syms): Use gdb::def_vector.
5702 2018-05-25 Tom Tromey <tom@tromey.com>
5704 * frame.c (remove_prev_frame): Remove.
5705 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
5707 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5709 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
5711 * mips-linux-nat.c (supply_fpregset): Always call
5712 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
5713 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
5714 `mips_fill_fpregset'.
5715 * mips-linux-tdep.c (mips_supply_fpregset)
5716 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
5717 (mips_fill_fpregset_wrapper): Remove functions.
5718 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
5719 (mips_linux_fpregset): Remove variable.
5720 (mips_linux_iterate_over_regset_sections): Use
5721 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
5722 (mips_linux_o32_sigframe_init): Remove comment.
5724 2018-05-25 Pedro Alves <palves@redhat.com>
5726 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
5727 (struct readahead_cache, struct packet_reg, struct
5728 remote_arch_state, class remote_state): Move higher up in the
5730 (remote_target::m_remote_state): Now an object instead of a pointer.
5731 (remote_target::get_remote_state): Adjust.
5733 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5735 * stack.c (select_and_print_frame): Delete.
5736 (struct function_bounds): Move struct within function.
5737 (func_command): Most content moved into new function
5738 find_frame_for_function, use new function, print result, add
5740 (find_frame_for_function): New function, now returns a result.
5742 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5744 * stack.c (iterate_over_block_arg_vars): Fix comment.
5745 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
5747 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5751 (scoped_restore_selected_frame::scoped_restore_selected_frame):
5753 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
5755 * frame.h (class scoped_restore_selected_frame): New class.
5756 * stack.c (print_frame_local_vars): Remove catching and rethrowing
5757 of any exception, use scoped_restore_selected_frame to restore the
5760 2018-05-24 Pedro Alves <palves@redhat.com>
5762 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
5765 2018-05-23 Tom Tromey <tom@tromey.com>
5767 * complaints.c (struct complaints): Remove.
5768 (symfile_complaint_book): Remove.
5769 (series): New global.
5770 (complaint_internal): Update.
5771 (clear_complaints): Update.
5773 2018-05-23 Tom Tromey <tom@tromey.com>
5775 * complaints.c (counters): New global.
5776 (struct complain): Remove.
5777 (struct complaints) <root>: Remove.
5778 (complaint_sentinel): Remove.
5779 (symfile_complaint_book): Update.
5780 (find_complaint) Remove.
5781 (complaint_internal, clear_complaints): Update.
5783 2018-05-23 Tom Tromey <tom@tromey.com>
5785 * complaints.c (struct complain) <file, line>: Remove.
5786 (find_complaint): Remove file, line parameters.
5787 (complaint_internal): Update.
5789 2018-05-23 Tom Tromey <tom@tromey.com>
5791 * complaints.c (vcomplaint): Remove.
5792 (complaint_internal) Merge in contents of vcomplaint.
5794 2018-05-23 Tom Tromey <tom@tromey.com>
5796 * complaints.c (struct complaints) <explanation>: Remove.
5797 (symfile_explanations): Remove.
5798 (symfile_complaint_book): Update.
5799 (vcomplaint): Update.
5800 (struct explanation): Remove.
5802 2018-05-23 Tom Tromey <tom@tromey.com>
5804 * complaints.c (symfile_complaints): Remove.
5805 (complaint_internal): Remove "complaints" parameter.
5806 (clear_complaints, vcomplaint): Remove "c" parameter.
5807 (get_complaints): Remove.
5808 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
5809 (dwarf2_debug_line_missing_file_complaint)
5810 (dwarf2_debug_line_missing_end_sequence_complaint)
5811 (dwarf2_complex_location_expr_complaint)
5812 (dwarf2_const_value_length_mismatch_complaint)
5813 (dwarf2_section_buffer_overflow_complaint)
5814 (dwarf2_macro_malformed_definition_complaint)
5815 (dwarf2_invalid_attrib_class_complaint)
5816 (create_addrmap_from_index, dw2_symtab_iter_next)
5817 (dw2_expand_marked_cus)
5818 (dw2_debug_names_iterator::find_vec_in_debug_names)
5819 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
5820 (create_debug_type_hash_table, init_cutu_and_read_dies)
5821 (partial_die_parent_scope, add_partial_enumeration)
5822 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
5823 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
5824 (read_import_statement, read_file_scope, create_dwo_cu_reader)
5825 (create_cus_hash_table, create_dwp_hash_table)
5826 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5827 (dwarf2_rnglists_process, dwarf2_ranges_process)
5828 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
5829 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
5830 (handle_struct_member_die, process_structure_scope)
5831 (read_array_type, read_common_block, read_module_type)
5832 (read_tag_pointer_type, read_typedef, read_base_type)
5833 (read_subrange_type, load_partial_dies, partial_die_info::read)
5834 (partial_die_info::read, partial_die_info::read)
5835 (partial_die_info::read, read_checked_initial_length_and_offset)
5836 (dwarf2_string_attr, read_formatted_entries)
5837 (dwarf_decode_line_header)
5838 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5839 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
5840 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
5841 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5842 (get_signatured_type, get_DW_AT_signature_type)
5843 (decode_locdesc, file_file_name, consume_improper_spaces)
5844 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
5845 (dwarf_decode_macro_bytes, dwarf_decode_macros)
5846 (dwarf2_symbol_mark_computed, set_die_type)
5847 (read_attribute_value): Update.
5848 * stap-probe.c (handle_stap_probe, get_stap_base_address):
5850 * dbxread.c (unknown_symtype_complaint)
5851 (lbrac_mismatch_complaint, repeated_header_complaint)
5852 (set_namestring, function_outside_compilation_unit_complaint)
5853 (read_dbx_symtab, process_one_symbol): Update.
5854 * gdbtypes.c (stub_noname_complaint): Update.
5855 * windows-nat.c (handle_unload_dll): Update.
5856 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
5857 (decode_base_type): Update.
5858 * xcoffread.c (bf_notfound_complaint, ef_complaint)
5859 (eb_complaint, record_include_begin, record_include_end)
5860 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
5861 (process_xcoff_symbol, read_symbol)
5862 (function_outside_compilation_unit_complaint)
5863 (scan_xcoff_symtab): Update.
5864 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
5865 * buildsym.c (finish_block_internal, make_blockvector)
5866 (end_symtab_get_static_block, augment_type_symtab): Update.
5867 * dtrace-probe.c (dtrace_process_dof)
5868 (dtrace_static_probe_ops::get_probes): Update.
5869 * complaints.h (struct complaint): Don't declare.
5870 (symfile_complaints): Remove.
5871 (complaint_internal): Remove "complaints" parameter.
5872 (complaint): Likewise.
5873 (clear_complaints): Likewise.
5874 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5875 (reread_symbols): Update.
5876 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
5877 (dwarf2_frame_cache, decode_frame_entry): Update.
5878 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
5879 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5880 (info_selectors_command): Update.
5881 * macrotab.c (macro_include, check_for_redefinition)
5882 (macro_undef): Update.
5883 * objfiles.c (filter_overlapping_sections): Update.
5884 * stabsread.c (invalid_cpp_abbrev_complaint)
5885 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
5886 (define_symbol, error_type, read_type, rs6000_builtin_type)
5887 (stabs_method_name_from_physname, read_member_functions)
5888 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
5889 (attach_fields_to_type, complain_about_struct_wipeout)
5890 (read_range_type, read_args, common_block_start)
5891 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
5893 * mdebugread.c (index_complaint, unknown_ext_complaint)
5894 (basic_type_complaint, bad_tag_guess_complaint)
5895 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
5896 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
5897 (parse_procedure, parse_lines)
5898 (function_outside_compilation_unit_complaint)
5899 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
5900 (bad_tag_guess_complaint, reg_value_complaint): Update.
5901 * cp-support.c (demangled_name_complaint): Update.
5902 * macroscope.c (sal_macro_scope): Update.
5903 * dwarf-index-write.c (class debug_names): Update.
5905 2018-05-23 Tom Tromey <tom@tromey.com>
5907 * complaints.c (clear_complaints): Remove "noisy" parameter.
5908 * complaints.h (clear_complaints): Update.
5909 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5910 (reread_symbols): Update.
5912 2018-05-23 Tom Tromey <tom@tromey.com>
5914 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
5916 (vcomplaint, clear_complaints): Update.
5917 (symfile_explanations): Remove some messages.
5919 2018-05-23 Tom Tromey <tom@tromey.com>
5921 * complaints.c (internal_complaint): Remove.
5922 * complaints.h (internal_complaint): Remove.
5924 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5926 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
5928 2018-05-22 Pedro Alves <palves@redhat.com>
5930 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
5931 (remote_fileio_badfd, remote_fileio_return_errno)
5932 (remote_fileio_return_success, remote_fileio_func_open)
5933 (remote_fileio_func_open, remote_fileio_func_close)
5934 (remote_fileio_func_read, remote_fileio_func_write)
5935 (remote_fileio_func_lseek, remote_fileio_func_rename)
5936 (remote_fileio_func_unlink, remote_fileio_func_stat)
5937 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
5938 (remote_fileio_func_isatty, remote_fileio_func_system): Add
5939 remote_target parameter.
5940 (remote_fio_func_map) <func>: Add remote_target parameter.
5941 (do_remote_fileio_request, remote_fileio_request):
5942 * remote-fileio.h (remote_fileio_request):
5943 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
5944 remote_target parameter.
5945 (remote_notif_process, handle_notification): Adjust to pass down
5947 (remote_notif_state_allocate): Add remote_target parameter. Save
5949 * remote-notif.h (struct remote_target): Forward declare.
5950 (struct notif_client) <parse, ack, can_get_pending_events>: Add
5951 remote_target parameter.
5952 (struct remote_notif_state) <remote>: New field.
5953 (remote_notif_ack, remote_notif_parse): Add remote_target
5955 (remote_notif_state_allocate, remote_notif_state_allocate): Add
5956 remote_target parameter.
5957 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
5958 (threads_listing_context, rmt_thread_action, protocol_feature)
5959 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
5960 (packet_result, struct threads_listing_context, remote_state):
5961 Move definitions and declarations higher up.
5962 (remote_target) <~remote_target>: Declare.
5963 (remote_download_command_source, remote_file_put, remote_file_get)
5964 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
5965 (remote_hostio_pread_vFile, remote_hostio_send_command)
5966 (remote_hostio_set_filesystem, remote_hostio_open)
5967 (remote_hostio_close, remote_hostio_unlink, remote_state)
5968 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
5969 (get_memory_write_packet_size, get_memory_read_packet_size)
5970 (append_pending_thread_resumptions, remote_detach_1)
5971 (append_resumption, remote_resume_with_vcont)
5972 (add_current_inferior_and_thread, wait_ns, wait_as)
5973 (process_stop_reply, remote_notice_new_inferior)
5974 (process_initial_stop_replies, remote_add_thread)
5975 (btrace_sync_conf, remote_btrace_maybe_reopen)
5976 (remove_new_fork_children, kill_new_fork_children)
5977 (discard_pending_stop_replies, stop_reply_queue_length)
5978 (check_pending_events_prevent_wildcard_vcont)
5979 (discard_pending_stop_replies_in_queue, stop_reply)
5980 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
5981 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
5982 (remote_interrupt_as, remote_interrupt_ns)
5983 (remote_get_noisy_reply, remote_query_attached)
5984 (remote_add_inferior, remote_current_thread, get_current_thread)
5985 (set_thread, set_general_thread, set_continue_thread)
5986 (set_general_process, write_ptid)
5987 (remote_unpack_thread_info_response, remote_get_threadinfo)
5988 (parse_threadlist_response, remote_get_threadlist)
5989 (remote_threadlist_iterator, remote_get_threads_with_ql)
5990 (remote_get_threads_with_qxfer)
5991 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
5992 (get_offsets, remote_check_symbols, remote_supported_packet)
5993 (remote_query_supported, remote_packet_size)
5994 (remote_serial_quit_handler, remote_detach_pid)
5995 (remote_vcont_probe, remote_resume_with_hc)
5996 (send_interrupt_sequence, interrupt_query)
5997 (remote_notif_get_pending_events, fetch_register_using_p)
5998 (send_g_packet, process_g_packet, fetch_registers_using_g)
5999 (store_register_using_P, store_registers_using_G)
6000 (set_remote_traceframe, check_binary_download)
6001 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6002 (remote_xfer_live_readonly_partial, remote_read_bytes)
6003 (remote_send_printf, remote_flash_write, readchar)
6004 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6005 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6006 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6007 (extended_remote_disable_randomization, extended_remote_run)
6008 (send_environment_packet, extended_remote_environment_support)
6009 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6010 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6011 (packet_command): Now methods of ...
6012 (remote_target): ... this class.
6013 (m_remote_state) <remote_target>: New field.
6014 (struct remote_state) <stop_reply_queue,
6015 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6017 (remote_state::remote_state): Allocate stop_reply_queue.
6018 (remote_state): Delete global.
6019 (get_remote_state_raw): Delete.
6020 (remote_target::get_remote_state): Allocate m_remote_state on
6022 (get_current_remote_target): New.
6023 (remote_ops, extended_remote_ops): Delete.
6024 (wait_forever_enabled_p, remote_async_inferior_event_token):
6025 Delete, moved to struct remote_state.
6026 (remote_target::close): Delete self. Destruction bits split to
6028 (remote_target::~remote_target): ... this.
6029 (show_memory_packet_size): Adjust to use
6030 get_current_remote_target.
6031 (struct protocol_feature) <func>: Add remote_target parameter.
6032 All callers adjusted.
6033 (curr_quit_handler_target): New.
6034 (remote_serial_quit_handler): Reimplement.
6035 (remote_target::open_1): Adjust to use get_current_remote_target.
6036 Heap-allocate remote_target/extended_remote_target instances.
6037 (vcont_builder::vcont_builder): Add remote_target parameter, and
6038 save it in m_remote. All callers adjusted.
6039 (vcont_builder::m_remote): New field.
6040 (vcont_builder::restart, vcont_builder::flush)
6041 (vcont_builder::push_action): Use it.
6042 (remote_target::commit_resume): Use it.
6043 (struct queue_iter_param) <remote>: New field.
6044 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6045 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6046 (check_pending_event_prevents_wildcard_vcont_callback)
6047 (remote_target::check_pending_events_prevent_wildcard_vcont)
6048 (remote_target::discard_pending_stop_replies)
6049 (remote_target::discard_pending_stop_replies_in_queue)
6050 (remote_target::remote_notif_remove_queued_reply): Fill in
6052 (remote_notif_get_pending_events): New.
6053 (remote_target::readchar, remote_target::remote_serial_write):
6054 Save/restore curr_quit_handler_target.
6056 (kill_new_fork_children): Fill in 'remote' field.
6057 (packet_command): Use get_current_remote_target, defer to
6058 remote_target method of same name.
6059 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6060 parameter, and save it in m_remote. All callers adjusted.
6061 (scoped_remote_fd::release): Use m_remote.
6062 (scoped_remote_fd::m_remote): New field.
6063 (remote_file_put, remote_file_get, remote_file_delete): Use
6064 get_current_remote_target, defer to remote_target method of same
6066 (remote_btrace_reset): Add remote_state paremeter. Update all
6068 (remote_async_inferior_event_handler). Pass down 'data'.
6069 (remote_new_objfile): Use get_current_remote_target.
6070 (remote_target::vcont_r_supported): New.
6071 (set_range_stepping): Use get_current_remote_target and
6072 remote_target::vcont_r_supported.
6073 (_initialize_remote): Don't allocate 'remote_state' and
6074 'stop_reply_queue' globals.
6075 * remote.h (struct remote_target): Forward declare.
6076 (getpkt, putpkt, remote_notif_get_pending_events): Add
6077 'remote_target' parameter.
6079 2018-05-22 Pedro Alves <palves@redhat.com>
6081 * remote.c (vcont_builder): Now a class. Make all data members
6083 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6085 (vcont_builder_restart): Rename to ...
6086 (vcont_builder::restart): ... this.
6087 (vcont_builder_flush): Rename to ...
6088 (vcont_builder::flush): ... this.
6089 (vcont_builder_push_action): Rename to ...
6090 (vcont_builder::push_action): ... this.
6091 (remote_target::commit_resume): Adjust.
6093 2018-05-22 Pedro Alves <palves@redhat.com>
6095 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6096 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6097 (get_fixed_memory_packet_size): New.
6098 (get_memory_packet_size): Use it.
6099 (set_memory_packet_size): Don't override the config size with
6100 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6101 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6102 Don't refer to get_memory_packet_size if not connected to a remote
6103 target. Show "(default)" if configured size is 0.
6105 2018-05-22 Pedro Alves <palves@redhat.com>
6107 * remote.c (remote_target::mourn_inferior): Move
6108 discard_pending_stop_replies call here from ...
6109 (_initialize_remote): ... here.
6111 2018-05-22 Pedro Alves <palves@redhat.com>
6113 * remote.c (compare_section_command): Remove set_general_process
6116 2018-05-22 Pedro Alves <palves@redhat.com>
6118 * remote.c (struct packet_reg, struct remote_arch_state):
6119 Move higher up in the file.
6120 (remote_state) <m_arch_states>: Store remote_arch_state values
6121 instead of remote_arch_state pointers.
6122 (remote_state::get_remote_arch_state): Adjust.
6124 2018-05-22 Pedro Alves <palves@redhat.com>
6126 * remote.c: Include <unordered_map>.
6127 (remote_state): Now a class.
6128 (remote_state) <get_remote_arch_state>: Declare method.
6129 <get_remote_arch_state>: New field.
6130 (remote_arch_state) <remote_arch_state>: Declare ctor.
6131 <regs>: Now a unique_ptr.
6132 (remote_gdbarch_data_handle): Delete.
6133 (get_remote_arch_state): Delete.
6134 (remote_state::get_remote_arch_state): New.
6135 (get_remote_state): Adjust to call remote_state's
6136 get_remote_arch_state method.
6137 (init_remote_state): Delete, bits factored out to ...
6138 (remote_arch_state::remote_arch_state): ... this new method.
6139 (get_remote_packet_size, get_memory_packet_size)
6140 (process_g_packet, remote_target::fetch_registers)
6141 (remote_target::prepare_to_store, store_registers_using_G)
6142 (remote_target::store_registers, remote_target::get_trace_status):
6143 Adjust to call remote_state's method.
6144 (_initialize_remote): Remove reference to
6145 remote_gdbarch_data_handle.
6147 2018-05-22 Pedro Alves <palves@redhat.com>
6149 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6150 pread>: New method declarations.
6151 (remote_target::open_1): Adjust.
6152 (readahead_cache_invalidate): Rename to ...
6153 (readahead_cache::invalidate): ... this, and adjust to be a class
6155 (readahead_cache_invalidate_fd): Rename to ...
6156 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6158 (remote_hostio_pwrite): Adjust.
6159 (remote_hostio_pread_from_cache): Rename to ...
6160 (readahead_cache::pread): ... this, and adjust to be a class
6162 (remote_hostio_close): Adjust.
6164 2018-05-22 Pedro Alves <palves@redhat.com>
6166 * remote.c (remote_hostio_close_cleanup): Delete.
6167 (class scoped_remote_fd): New.
6168 (remote_file_put, remote_file_get): Use it.
6170 2018-05-22 Pedro Alves <palves@redhat.com>
6172 (struct vCont_action_support): Use bool and initialize all fields.
6173 (struct readahead_cache): Initialize all fields.
6174 (remote_state): Use bool and initialize all fields.
6175 (remote_state::remote_state, remote_state::~remote_state): New.
6176 (new_remote_state): Delete.
6177 (_initialize_remote): Use new to allocate remote_state.
6179 2018-05-22 Pedro Alves <palves@redhat.com>
6183 * c-exp.y: Include "c-support.h".
6184 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6185 of tolower. Use c_ident_is_alpha to scan names.
6186 * c-lang.c: Include "c-support.h".
6187 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6188 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6189 * c-support.h: New file, with bits factored out from ...
6190 * cp-name-parser.y: ... this file.
6191 Include "c-support.h".
6192 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6193 c-support.h and renamed.
6194 (symbol_end, yylex): Adjust.
6196 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6198 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6199 parameter type to CORE_ADDR.
6200 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6201 parameter type in declaration to CORE_ADDR.
6202 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6203 target_auxv_search to get AT_HWCAP and use the result to get the
6205 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6206 to CORE_ADDR. Remove the cast of the return value to unsigned
6207 long. Fix error predicate of target_auxv_search.
6208 (ppc_linux_nat_target::read_description): Change the type of the
6209 hwcap variable to CORE_ADDR.
6211 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6213 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6214 if the size of fpscr is larger than 32 bits.
6216 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6218 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6219 (ppc32_linux_vsxregmap): New global.
6220 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6221 regcache_supply_regset, and regcache_collect_regset.
6222 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6223 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6224 (fetch_vsx_register, store_vsx_register): Remove.
6225 (fetch_vsx_registers): Add regno parameter. Get regset using
6226 ppc_linux_vsxregset. Use regset to supply registers.
6227 (store_vsx_registers): Add regno parameter. Get regset using
6228 ppc_linux_vsxregset. Use regset to collect registers.
6229 (fetch_register): Call fetch_vsx_registers instead of
6231 (store_register): Call store_vsx_registers instead of
6233 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6234 new regno parameter.
6235 (store_ppc_registers): Call store_vsx_registers with -1 for the
6236 new regno parameter.
6237 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6238 (ppc_collect_vsxregset): Remove.
6240 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6242 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6244 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6245 for vector register offset fields.
6246 (ppc64_fbsd_reg_offsets): Likewise.
6247 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6248 to vector register offset fields.
6249 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6250 to vector register offset fields.
6251 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6252 vector register offset fields.
6253 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6254 initializers for vector register offset fields.
6255 (rs6000_aix64_reg_offsets): Likewise.
6256 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6257 (ppc_supply_vrregset): Remove.
6258 (ppc_collect_vrregset): Remove.
6259 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6260 (ppc_linux_vrregset) : New function.
6261 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6262 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6263 (ppc32_linux_vrregset): Remove.
6264 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6265 and use result instead of ppc32_linux_vrregset.
6266 (ppc32_linux_reg_offsets): Remove initializers for vector register
6268 (ppc64_linux_reg_offsets): Likewise.
6269 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6270 * ppc-linux-nat.c: Include regset.h.
6271 (gdb_vrregset_t): Adjust comment to account for little-endian
6273 (supply_vrregset, fill_vrregset): Remove.
6274 (fetch_altivec_register, store_altivec_register): Remove.
6275 (fetch_altivec_registers): Add regno parameter. Get regset using
6276 ppc_linux_vrregset. Use regset to supply registers.
6277 (store_altivec_registers): Add regno parameter. Get regset using
6278 ppc_linux_vrregset. Use regset to collect registers.
6279 (fetch_register): Call fetch_altivec_registers instead of
6280 fetch_altivec_register.
6281 (store_register): Call store_altivec_registers instead of
6282 store_altivec_register.
6283 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6284 the new regno parameter.
6285 (store_ppc_registers): Call store_altivec_registers with -1 for
6286 the new regno parameter.
6288 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6290 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6291 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6292 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6293 (gdb_vrregset_t): Change array type size to
6294 PPC_LINUX_SIZEOF_VRREGSET.
6295 (gdb_vsxregset_t): Change array type size to
6296 PPC_LINUX_SIZEOF_VSXREGSET.
6297 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6298 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6299 PPC_LINUX_SIZEOF_VSXREGSET.
6301 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6303 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6304 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6306 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6307 ppc_linux_target_wordsize with tid.
6308 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6310 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6311 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6312 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6313 tid parameter. Remove static specifier.
6314 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6315 (ppc_linux_target_wordsize): New declaration.
6317 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6319 * arch/ppc-linux-common.c: New file.
6320 * arch/ppc-linux-common.h: New file.
6321 * arch/ppc-linux-tdesc.h: New file.
6322 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6323 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6324 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6325 arch/ppc-linux-tdesc.h.
6326 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6327 arch/ppc-linux-tdesc.h.
6328 (ppc_linux_nat_target::read_description): Remove target
6329 description matching code. Fill a ppc_linux_features struct and
6330 call ppc_linux_match_description with it. Move comment about ISA
6331 2.05 to ppc-linux-common.c.
6332 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6333 arch/ppc-linux-tdesc.h.
6334 (ppc_linux_core_read_description): Remove target description
6335 matching code. Fill a ppc_linux_features struct and call
6336 ppc_linux_match_description with it.
6337 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6338 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6339 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6340 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6341 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6342 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6343 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6344 (tdesc_powerpc_e500l): Remove.
6346 2018-05-22 Joel Brobecker <brobecker@adacore.com>
6348 * ada-lang.c (catch_assert_command): Pass empty string instead
6349 of NULL for excep_string argument.
6351 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6353 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6354 the width of the requested register exceeds the width of the
6357 2018-05-21 Tom Tromey <tom@tromey.com>
6359 * printcmd.c (output_command): Remove.
6360 (output_command_const): Rename to output_command.
6361 * valprint.h (output_command): Rename from output_command_const.
6362 * tracepoint.c (trace_dump_actions): Call output_command.
6364 2018-05-21 Tom Tromey <tom@tromey.com>
6366 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6367 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6368 * ada-lang.h (create_ada_exception_catchpoint): Update.
6369 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6371 (create_excep_cond_exprs, ~ada_catchpoint)
6372 (should_stop_exception, print_one_exception)
6373 (print_mention_exception, print_recreate_exception): Update.
6374 (ada_get_next_arg): Remove.
6375 (catch_ada_exception_command_split): Use std::string. Change type
6376 of "excep_string", "cond_string".
6377 (catch_ada_exception_command): Update.
6378 (create_ada_exception_catchpoint): Change type of excep_string.
6379 (ada_exception_sal): Remove excep_string parameter.
6380 (~ada_catchpoint): Remove.
6382 2018-05-21 Tom Tromey <tom@tromey.com>
6384 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6387 2018-05-21 Tom Tromey <tom@tromey.com>
6389 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6390 Return unique_xmalloc_ptr.
6391 (print_it_exception): Update.
6393 2018-05-21 Tom Tromey <tom@tromey.com>
6395 * tracepoint.c (trace_dump_actions): Use std::string.
6397 2018-05-21 Tom Tromey <tom@tromey.com>
6399 * symfile.c (reread_symbols): Use std::string for original_name.
6401 2018-05-21 Tom Tromey <tom@tromey.com>
6403 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6404 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6407 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6409 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6411 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6412 * objfiles.c (get_objfile_bfd_data): Allocate
6413 objfile_per_bfd_storage with obstack_new when allocating on
6416 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6418 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6420 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6421 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6422 * mdebugread.c (mdebug_build_psymtabs): Likewise.
6423 (add_pending): Likewise.
6424 (parse_symbol): Likewise.
6425 (parse_partial_symbols): Likewise.
6426 (psymtab_to_symtab_1): Likewise.
6427 (new_psymtab): Likewise.
6428 (elfmdebug_build_psymtabs): Likewise.
6429 * minsyms.c (terminate_minimal_symbol_table): Likewise.
6430 * objfiles.c (get_objfile_bfd_data): Likewise.
6431 (objfile_register_static_link): Likewise.
6432 * psymtab.c (allocate_psymtab): Likewise.
6433 * stabsread.c (read_member_functions): Likewise.
6434 * xcoffread.c (xcoff_end_psymtab): Likewise.
6436 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6438 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
6439 compiler supports std::is_trivially_constructible.
6440 * common/poison.h: Include obstack.h.
6441 (IsMallocable): Define to is_trivially_constructible if the
6442 compiler supports it, define to true_type otherwise.
6446 (XOBNEWVEC): Redefine.
6447 * gdb_obstack.h (obstack_zalloc): New.
6448 (OBSTACK_ZALLOC): Redefine.
6449 (obstack_calloc): New.
6450 (OBSTACK_CALLOC): Redefine.
6452 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
6453 (gdbarch_obstack): New declaration in gdbarch.h, definition in
6455 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
6456 obstack_calloc/obstack_zalloc.
6457 (gdbarch_obstack_zalloc): Remove.
6458 * target-descriptions.c (tdesc_data_init): Use obstack_new.
6460 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6462 * stack.c (backtrace_command_1): Remove useless variable int i.
6464 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6466 * stack.c (print_frame_info): Fix comment.
6468 2018-05-18 Tom Tromey <tom@tromey.com>
6470 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
6471 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
6472 (~dwarf2_per_objfile): Update
6473 (dwarf2_get_dwz_file): Use new.
6474 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6477 2018-05-18 Tom Tromey <tom@tromey.com>
6479 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
6481 * dwarf2read.c (struct dwp_file): Add constructor and
6483 (open_and_init_dwp_file): Return a unique_ptr.
6484 (dwarf2_per_objfile, create_dwp_hash_table)
6485 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
6486 (lookup_dwo_unit_in_dwp): Update.
6487 (open_and_init_dwp_file, get_dwp_file): Update.
6489 2018-05-18 Tom Tromey <tom@tromey.com>
6491 * dwarf2read.c (dwarf2_per_objfile): Update.
6492 (struct mapped_index): Add initializers.
6493 (dwarf2_read_index): Use new.
6494 (dw2_symtab_iter_init): Update.
6495 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
6498 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6500 * dwarf2read.c (mapped_index) <total_size>: Remove.
6502 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6504 * unittests/format_pieces-selftests.c (test_format_specifier):
6507 2018-05-18 Tom Tromey <tom@tromey.com>
6509 * c-typeprint.c (maybe_print_hole): New function.
6510 (c_print_type_struct_field_offset): Update.
6511 (c_type_print_base_struct_union): Call maybe_print_hole.
6513 2018-05-17 Keith Seitz <keiths@redhat.com>
6515 * breakpoint.c (build_bpstat_chain): New function, moved from
6517 (bpstat_stop_status): Add optional parameter, `stop_chain'.
6518 If no stop chain is passed, call build_bpstat_chain to build it.
6519 * breakpoint.h (build_bpstat_chain): Declare.
6520 (bpstat_stop_status): Move documentation here from breakpoint.c.
6521 * infrun.c (handle_signal_stop): Before eliding inlined frames,
6522 build the stop chain and pass it to skip_inline_frames.
6523 Pass this stop chain to bpstat_stop_status.
6524 * inline-frame.c: Include breakpoint.h.
6525 (stopped_by_user_bp_inline_frame): New function.
6526 (skip_inline_frames): Add parameter `stop_chain'.
6527 Move documention to inline-frame.h.
6528 If non-NULL, use stopped_by_user_bp_inline_frame to determine
6529 whether the frame should be elided.
6530 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
6531 Add moved documentation and update for new parameter.
6533 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6536 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6537 unittests/format_pieces-selftests.c.
6538 * common/format.h (format_piece) <operator==>: New.
6539 (format_pieces) <operator[]>: Remove.
6540 * common/format.c (format_pieces::format_pieces): Handle \e.
6541 * unittests/format_pieces-selftests.c: New.
6543 2018-05-17 Tom Tromey <tom@tromey.com>
6546 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
6547 (dw2_instantiate_symtab): Add skip_partial parameter.
6548 (dw2_find_last_source_symtab, dw2_map_expand_apply)
6549 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
6550 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
6551 (dw2_expand_symtabs_matching_one)
6552 (dw2_find_pc_sect_compunit_symtab)
6553 (dw2_debug_names_lookup_symbol)
6554 (dw2_debug_names_expand_symtabs_for_function): Update.
6555 (init_cutu_and_read_dies): Add skip_partial parameter.
6556 (process_psymtab_comp_unit, build_type_psymtabs_1)
6557 (process_skeletonless_type_unit, load_partial_comp_unit)
6558 (psymtab_to_symtab_1): Update.
6559 (load_full_comp_unit): Add skip_partial parameter.
6560 (process_imported_unit_die, dwarf2_read_addr_index)
6561 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
6562 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
6563 (read_signatured_type): Update.
6565 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6567 * value.c (release_value): Remove unused variable.
6568 (record_latest_value): Likewise.
6569 (access_value_history): Likewise.
6570 (preserve_values): Likewise.
6572 2018-05-17 Tom Tromey <tom@tromey.com>
6574 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
6577 2018-05-16 Maciej W. Rozycki <macro@mips.com>
6580 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
6581 Also handle registers whose width is not a multiple of
6583 (linux_nat_trad_target::store_register): Likewise.
6585 2018-05-16 Tom Tromey <tom@tromey.com>
6587 * gdbcore.h (core_bfd): Redefine.
6588 * corelow.c (core_target::close): Update.
6589 (core_target_open): Update.
6590 * progspace.h (struct program_space) <cbfd>: Now a
6593 2018-05-16 Tom Tromey <tom@tromey.com>
6596 * symfile-add-flags.h (enum symfile_add_flags)
6597 <SYMFILE_NOT_FILENAME>: New constant.
6598 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
6599 objfile name from BFD.
6600 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
6601 * minidebug.c (find_separate_debug_file_in_section): Put
6602 ".gnu_debugdata" into BFD's file name.
6604 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
6606 * regcache.c (regcache_read_ftype, regcache_write_ftype):
6609 2018-05-15 Tamar Christina <tamar.christina@arm.com>
6612 * aarch64-tdep.c (aarch64_analyze_prologue,
6613 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
6614 Indicate not interested in errors.
6616 2018-05-15 Maciej W. Rozycki <macro@mips.com>
6618 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
6619 Supply the MIPS_ZERO_REGNUM register.
6621 2018-05-15 Maciej W. Rozycki <macro@mips.com>
6623 * mips-tdep.c (mask_address_var): Make variable static.
6625 2018-05-14 Tom Tromey <tom@tromey.com>
6627 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
6629 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
6631 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
6632 FXSAVE_ADDR for the mxcsr register.
6634 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
6636 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
6638 2018-05-11 Pedro Alves <palves@redhat.com>
6640 * corelow.c (core_target) <core_target>: No longer inline.
6641 Initialize m_core_gdbarch, m_core_vec and build the section table
6643 <~core_target>: New.
6644 <core_gdbarch, get_core_register_section>: New methods.
6645 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
6646 factored out from ...
6647 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
6649 (sniff_core_bfd): Add gdbarch parameter.
6650 (core_close): Delete, merged into ...
6651 (core_target::close): ... here. Delete self.
6652 (core_close_cleanup): Delete.
6653 (core_target_open): Allocate a core_target on the heap. Use a
6654 unique_ptr instead of a cleanup. Bits moved into the core_target
6655 ctor. Adjust to use core_target methods instead of globals.
6656 (get_core_register_section): Rename to ...
6657 (core_target::get_core_register_section): ... this and adjust.
6658 (struct get_core_registers_cb_data): New.
6659 (get_core_registers_cb): Use it. Use bool.
6660 (core_target::fetch_registers, core_target::files_info)
6661 (core_target::xfer_partial, core_target::read_description)
6662 (core_target::pid_to, core_target::thread_name): Adjust to
6663 reference class fields instead of globals.
6664 * target.h (struct target_ops_deleter, target_ops_up): New.
6666 2018-05-11 Pedro Alves <palves@redhat.com>
6668 * corefile.c (core_file_command): Move to corelow.c.
6669 * corelow.c (the_core_target): Delete.
6670 (core_file_command): Moved from corefile.c. Check exec_bfd
6671 instead of the_core_target. Use target_detach instead of calling
6672 into the_core_target directly.
6673 (maybe_say_no_core_file_now): New.
6674 (core_target::detach): Use it.
6675 (_initialize_corelow): Remove references to the_core_target.
6676 * gdbcore.h (the_core_target): Delete.
6678 2018-05-11 Tom Tromey <tromey@redhat.com>
6679 Pedro Alves <palves@redhat.com>
6681 * corefile.c (core_bfd): Remove.
6682 * gdbcore.h (core_bfd): Now a macro.
6683 * progspace.h (struct program_space) <cbfd>: New field.
6685 2018-05-11 Tom Tromey <tom@tromey.com>
6687 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
6690 2018-05-10 Tom Tromey <tom@tromey.com>
6692 * configure: Rebuild.
6693 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
6695 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6698 * regformats/regdat.sh: Adjust script, following the addition
6699 of the new expedite_regs parameter to init_target_desc.
6701 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
6704 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
6705 set_gdbarch_significant_addr_bit.
6706 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
6707 set_gdbarch_significant_addr_bit.
6708 * utils.c (address_significant): Update to sign extend addr.
6710 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
6712 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
6713 (xtensa_linux_init_abi): Limit tdep->num_regs by
6714 tdep->num_nopriv_regs.
6715 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
6716 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
6719 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
6721 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
6723 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6725 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
6726 (I387_MXCSR_INIT_VAL): New constant.
6727 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
6728 buffer if it was supplied by the inferior.
6729 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
6730 (i387_xsave_get_clear_bv): New function.
6731 (i387_supply_xsave): Only read x87 control registers from the
6732 xsave buffer if the feature is enabled, and the state will have
6733 been written, otherwise, provide a suitable default.
6734 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
6735 including x87 control registers. Update control registers if they
6736 have changed from the default value, and mark features as enabled
6738 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
6740 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6742 * spu-tdep.c (info_spu_event_command): Fix output formatting.
6744 2018-05-07 Tom Tromey <tom@tromey.com>
6746 * configure: Rebuild.
6747 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
6749 2018-05-07 Tom Tromey <tom@tromey.com>
6752 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
6753 bit. Use correct value for VDIV.
6755 2018-05-04 Tom Tromey <tom@tromey.com>
6757 * configure: Rebuild.
6758 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
6760 2018-05-04 Tom Tromey <tom@tromey.com>
6762 * linux-record.c (record_linux_system_call) <case
6763 RECORD_SYS_RECVFROM>: Add "break".
6765 2018-05-04 Tom Tromey <tom@tromey.com>
6767 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
6768 Add missing "break".
6769 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
6770 Add missing "break".
6772 2018-05-04 Tom Tromey <tom@tromey.com>
6774 * rs6000-tdep.c (ppc_process_record_op4)
6775 (ppc_process_record_op63): Add fall-through comment.
6777 2018-05-04 Tom Tromey <tom@tromey.com>
6779 * i386-tdep.c (i386_process_record): Add fall-through comment.
6781 2018-05-04 Tom Tromey <tom@tromey.com>
6783 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
6786 2018-05-04 Tom Tromey <tom@tromey.com>
6788 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
6789 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
6790 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
6792 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
6794 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
6797 2018-05-04 Tom Tromey <tom@tromey.com>
6799 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
6801 2018-05-04 Tom Tromey <tom@tromey.com>
6803 * s390-tdep.c (s390_process_record): Fix fall-through comments.
6804 * xcoffread.c (scan_xcoff_symtab): Move comment later.
6805 * symfile.c (section_is_mapped): Fix fall-through comment.
6806 * stabsread.c (define_symbol, read_member_functions): Fix
6807 fall-through comment.
6808 * s390-linux-tdep.c (s390_process_record): Fix fall-through
6810 * remote.c (remote_wait_as): Fix fall-through comment.
6811 * p-exp.y (yylex): Fix fall-through comment.
6812 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
6814 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
6815 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
6816 * jv-exp.y (yylex): Fix fall-through comment.
6817 * go-exp.y (lex_one_token): Fix fall-through comment.
6818 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
6819 fall-through comment.
6820 * f-exp.y (yylex): Fix fall-through comment.
6821 * dwarf2read.c (process_die): Fix fall-through comments.
6822 * dbxread.c (process_one_symbol): Fix fall-through comment.
6823 * d-exp.y (lex_one_token): Fix fall-through comment.
6824 * cp-name-parser.y (yylex): Fix fall-through comment.
6825 * coffread.c (coff_symtab_read): Fix fall-through comment.
6826 * c-exp.y (lex_one_token): Fix fall-through comment.
6827 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
6829 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
6832 2018-05-04 Tom Tromey <tom@tromey.com>
6835 * NEWS: Mention gdb.execute change.
6836 * gdbcmd.h (execute_control_command): Don't declare.
6837 * python/python.c (execute_gdb_command): Use read_command_lines_1,
6838 execute_control_commands, execute_control_commands_to_string.
6839 * cli/cli-script.h (execute_control_commands)
6840 (execute_control_commands_to_string): Declare.
6841 (execute_control_command): Add from_tty parameter.
6842 * cli/cli-script.c (execute_control_commands)
6843 (execute_control_commands_to_string): New functions.
6844 (execute_user_command): Use execute_control_commands.
6845 (execute_control_command_1): Add "from_tty" parameter. Update.
6846 (execute_control_command): Likewise.
6848 2018-05-04 Tom Tromey <tom@tromey.com>
6851 * NEWS: Mention that breakpoint commands are writable.
6852 * python/py-breakpoint.c (bppy_set_commands): New function.
6853 (breakpoint_object_getset) <"commands">: Use it.
6855 2018-05-04 Tom Tromey <tom@tromey.com>
6857 * tracepoint.c (actions_command): Update.
6858 * mi/mi-cmd-break.c (mi_command_line_array)
6859 (mi_command_line_array_cnt, mi_command_line_array_ptr)
6860 (mi_read_next_line): Remove.
6861 (mi_cmd_break_commands): Update.
6862 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
6864 * cli/cli-script.c (get_command_line): Update.
6865 (process_next_line): Use function_view. Constify.
6866 (recurse_read_control_structure, read_command_lines)
6867 (read_command_lines_1): Change argument types to function_view.
6868 (do_define_command, document_command): Update.
6869 * breakpoint.h (check_tracepoint_command): Don't declare.
6870 * breakpoint.c (check_tracepoint_command): Remove.
6871 (commands_command_1, create_tracepoint_from_upload): Update.
6873 2018-05-04 Tom Tromey <tom@tromey.com>
6876 * cli/cli-script.h (enum command_control_type) <define_control>:
6878 * cli/cli-script.c (multi_line_command_p): Handle define_control.
6879 (build_command_line, execute_control_command_1)
6880 (process_next_line): Likewise.
6881 (do_define_command): New function, extracted from define_command.
6882 (define_command): Use it.
6884 2018-05-04 Tom Tromey <tom@tromey.com>
6886 * tracepoint.c (actions_command): Update.
6887 * cli/cli-script.h (read_command_lines): Update.
6888 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
6889 (MAX_TMPBUF): Remove define.
6890 (define_command): Use string_printf.
6891 (document_command): Likewise.
6892 * breakpoint.c (commands_command_1): Update.
6894 2018-05-04 Tom Tromey <tom@tromey.com>
6896 * top.c (execute_command): Update.
6897 * cli/cli-script.h (print_command_lines): Now varargs.
6898 * cli/cli-script.c (print_command_lines): Now varargs.
6899 (execute_control_command_1) <case while_control, case if_control>:
6902 2018-05-04 Tom Tromey <tom@tromey.com>
6904 * tracepoint.c (all_tracepoint_actions): Rename from
6905 all_tracepoint_actions_and_cleanup. Change return type.
6906 (actions_command, encode_actions_1, encode_actions)
6907 (trace_dump_actions, tdump_command): Update.
6908 * remote.c (remote_download_command_source): Update.
6909 * python/python.c (gdbpy_eval_from_control_command)
6910 (python_command, python_interactive_command): Update.
6911 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
6912 * guile/guile.c (guile_command)
6913 (gdbscm_eval_from_control_command, guile_command): Update.
6914 * compile/compile.c (compile_code_command)
6915 (compile_print_command, compile_to_object): Update.
6916 * cli/cli-script.h (struct command_lines_deleter): New.
6917 (counted_command_line): New typedef.
6918 (struct command_line): Add constructor, destructor.
6919 <body_list>: Remove.
6920 <body_list_0, body_list_1>: New members.
6921 (command_line_up): Remove typedef.
6922 (read_command_lines, read_command_lines_1, get_command_line):
6924 (copy_command_lines): Don't declare.
6925 * cli/cli-script.c (build_command_line): Use "new".
6926 (get_command_line): Return counted_command_line.
6927 (print_command_lines, execute_user_command)
6928 (execute_control_command_1, while_command, if_command): Update.
6929 (realloc_body_list): Remove.
6930 (process_next_line, recurse_read_control_structure): Update.
6931 (read_command_lines, read_command_lines_1): Return counted_command_line.
6932 (free_command_lines): Use "delete".
6933 (copy_command_lines): Remove.
6934 (define_command, document_command, show_user_1): Update.
6935 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
6936 a counted_command_line.
6937 * breakpoint.h (counted_command_line): Remove typedef.
6938 (breakpoint_set_commands): Update.
6939 * breakpoint.c (check_no_tracepoint_commands)
6940 (validate_commands_for_breakpoint): Update.
6941 (breakpoint_set_commands): Change commands to be a
6942 counted_command_line.
6943 (commands_command_1, update_dprintf_command_list)
6944 (create_tracepoint_from_upload): Update.
6946 2018-05-04 Tom Tromey <tom@tromey.com>
6948 * cli/cli-decode.h (cmd_list_element): New constructor.
6949 (~cmd_list_element): New destructor.
6950 (struct cmd_list_element): Add initializers.
6951 * cli/cli-decode.c (do_add_cmd): Use "new".
6952 (delete_cmd): Use "delete".
6954 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6955 Pedro Alves <palves@redhat.com>
6957 PR breakpoints/19806 and support for PR external/20207.
6958 * NEWS: Mention Aarch64 watchpoint improvements.
6959 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
6960 watchpoints and PR external/20207 watchpoints.
6961 * nat/aarch64-linux-hw-point.c
6962 (kernel_supports_any_contiguous_range): New.
6963 (aarch64_watchpoint_offset): New.
6964 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
6965 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
6966 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
6967 (aarch64_align_watchpoint): New parameters aligned_offset_p and
6968 next_addr_orig_p. Support PR external/20207 watchpoints.
6969 (aarch64_downgrade_regs): New.
6970 (aarch64_dr_state_insert_one_point): New parameters offset and
6972 (aarch64_dr_state_remove_one_point): Likewise.
6973 (aarch64_handle_breakpoint): Update caller.
6974 (aarch64_handle_aligned_watchpoint): Likewise.
6975 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
6977 (aarch64_linux_set_debug_regs): Remove const from state. Call
6978 aarch64_downgrade_regs.
6979 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
6980 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
6981 (DR_CONTROL_MASK): ... this.
6982 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
6983 (unsigned int aarch64_watchpoint_offset): New prototype.
6984 (aarch64_linux_set_debug_regs): Remove const from state.
6985 * utils.c (align_up, align_down): Move to ...
6986 * common/common-utils.c (align_up, align_down): ... here.
6987 * utils.h (align_up, align_down): Move to ...
6988 * common/common-utils.h (align_up, align_down): ... here.
6990 2018-05-04 Joel Brobecker <brobecker@adacore.com>
6992 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
6993 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
6994 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
6995 Re-implement to match the ABI as summarized in GCC's
6996 gcc/config/sparc/sparc.c. All callers updated.
6997 (sparc32_store_arguments): Remove assertion.
6999 2018-05-04 Tom Tromey <tom@tromey.com>
7001 * printcmd.c: Don't include tui.h.
7002 (decode_format): Use skip_spaces.
7004 2018-05-04 Tom Tromey <tom@tromey.com>
7007 * printcmd.c (last_count): New global.
7008 (x_command): Use saved count when repeating.
7010 2018-05-04 Tom Tromey <tom@tromey.com>
7012 * nto-procfs.c (do_closedir_cleanup): Remove.
7013 (procfs_pidlist): Use gdb_dir_up.
7014 * procfs.c (do_closedir_cleanup): Remove.
7015 (proc_update_threads): Use gdb_dir_up.
7016 * common/filestuff.h (struct gdb_dir_deleter): New.
7017 (gdb_dir_up): New typedef.
7019 2018-05-04 Tom Tromey <tom@tromey.com>
7021 * ada-lang.c (print_mention_exception): Use std::string.
7023 2018-05-04 Tom Tromey <tom@tromey.com>
7025 * ada-lang.c (create_excep_cond_exprs): Update.
7026 (ada_exception_catchpoint_cond_string): Use std::string.
7028 2018-05-04 Tom Tromey <tom@tromey.com>
7030 * ada-lang.c (xget_renaming_scope): Return std::string.
7031 (old_renaming_is_invisible): Update.
7033 2018-05-04 Tom Tromey <tom@tromey.com>
7035 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7036 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7038 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7040 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7042 2018-05-04 Tom Tromey <tom@tromey.com>
7044 * remote.c (remote_query_supported_append): Change type.
7045 (remote_check_symbols): Update.
7047 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7050 * configure.ac: Prepend libpython.
7051 * python/python-config.py: Likewise.
7052 * configure: Regenerate.
7054 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7056 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7058 2018-05-03 Pedro Alves <palves@redhat.com>
7061 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7062 override. Write 'true' instead of '1'.
7063 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7066 2018-05-02 Pedro Alves <palves@redhat.com>
7068 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7069 add_inf_child_target.
7070 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7071 add_inf_child_target.
7072 * aix-thread.c (aix_thread_target_info): New.
7073 (aix_thread_target) <shortname, longname, doc>: Delete.
7075 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7076 add_inf_child_target.
7077 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7078 add_inf_child_target.
7079 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7080 add_inf_child_target.
7081 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7082 add_inf_child_target.
7083 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7084 add_inf_child_target.
7085 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7086 add_inf_child_target.
7087 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7088 add_inf_child_target.
7089 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7090 add_inf_child_target.
7091 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7092 add_inf_child_target.
7093 * bfd-target.c (target_bfd_target_info): New.
7094 (target_bfd) <shortname, longname, doc>: Delete.
7096 * bsd-kvm.c (bsd_kvm_target_info): New.
7097 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7099 (bsd_kvm_target::open): Rename to ...
7100 (bsd_kvm_target_open): ... this. Adjust.
7101 * bsd-uthread.c (bsd_uthread_target_info): New.
7102 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7104 * corefile.c (core_file_command): Adjust.
7105 * corelow.c (core_target_info): New.
7106 (core_target) <shortname, longname, doc>: Delete.
7108 (core_target::open): Rename to ...
7109 (core_target_open): ... this. Adjust.
7110 * ctf.c (ctf_target_info): New.
7111 (ctf_target) <shortname, longname, doc>: Delete.
7113 (ctf_target::open): Rename to ...
7114 (ctf_target_open): ... this.
7115 (_initialize_ctf): Adjust.
7116 * exec.c (exec_target_info): New.
7117 (exec_target) <shortname, longname, doc>: Delete.
7119 (exec_target::open): Rename to ...
7120 (exec_target_open): ... this.
7121 * gdbcore.h (core_target_open): Declare.
7122 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7123 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7124 add_inf_child_target.
7125 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7126 add_inf_child_target.
7127 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7128 add_inf_child_target.
7129 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7130 add_inf_child_target.
7131 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7132 add_inf_child_target.
7133 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7134 add_inf_child_target.
7135 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7136 add_inf_child_target.
7137 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7138 add_inf_child_target.
7139 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7140 add_inf_child_target.
7141 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7142 add_inf_child_target.
7143 * inf-child.c (inf_child_target_info): New.
7144 (inf_child_target::info): New.
7145 (inf_child_open_target): Remove 'target' parameter. Use
7146 get_native_target instead.
7147 (inf_child_target::open): Delete.
7148 (add_inf_child_target): New.
7149 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7152 (add_inf_child_target): Declare.
7153 (inf_child_open_target): Declare.
7154 * linux-thread-db.c (thread_db_target_info): New.
7155 (thread_db_target) <shortname, longname, doc>: Delete.
7157 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7158 add_inf_child_target.
7159 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7160 add_inf_child_target.
7161 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7162 add_inf_child_target.
7163 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7164 add_inf_child_target.
7165 * make-target-delegates (print_class): Adjust.
7166 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7167 add_inf_child_target.
7168 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7169 add_inf_child_target.
7170 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7171 add_inf_child_target.
7172 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7173 add_inf_child_target.
7174 * nto-procfs.c (nto_native_target_info): New.
7175 (nto_procfs_target_native) <shortname, longname, doc>:
7178 (nto_procfs_target_info): New.
7179 (nto_procfs_target_procfs) <shortname, longname, doc>:
7182 (init_procfs_targets): Adjust.
7183 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7184 add_inf_child_target.
7185 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7186 add_inf_child_target.
7187 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7188 add_inf_child_target.
7189 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7190 add_inf_child_target.
7191 * ravenscar-thread.c (ravenscar_target_info): New.
7192 (ravenscar_thread_target) <shortname, longname, doc>:
7195 * record-btrace.c (record_btrace_target_info):
7196 (record_btrace_target) <shortname, longname, doc>: Delete.
7198 (record_btrace_target::open): Rename to ...
7199 (record_btrace_target_open): ... this. Adjust.
7200 * record-full.c (record_longname, record_doc): New.
7201 (record_full_base_target) <shortname, longname, doc>: Delete.
7203 (record_full_target_info): New.
7204 (record_full_target): <shortname>: Delete.
7206 (record_full_core_open_1, record_full_open_1): Update comments.
7207 (record_full_base_target::open): Rename to ...
7208 (record_full_open): ... this.
7209 (cmd_record_full_restore): Update.
7210 (_initialize_record_full): Update.
7211 * remote-sim.c (remote_sim_target_info): New.
7212 (gdbsim_target) <shortname, longname, doc>: Delete.
7214 (gdbsim_target::open): Rename to ...
7215 (gdbsim_target_open): ... this.
7216 (_initialize_remote_sim): Adjust.
7217 * remote.c (remote_doc): New.
7218 (remote_target_info): New.
7219 (remote_target) <shortname, longname, doc>: Delete.
7221 (extended_remote_target_info): New.
7222 (extended_remote_target) <shortname, longname, doc>: Delete.
7224 (remote_target::open_1): Make static. Adjust.
7225 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7226 * s390-linux-nat.c (_initialize_s390_nat): Use
7227 add_inf_child_target.
7228 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7229 add_inf_child_target.
7230 * sol-thread.c (thread_db_target_info): New.
7231 (sol_thread_target) <shortname, longname, doc>: Delete.
7233 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7234 add_inf_child_target.
7235 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7236 add_inf_child_target.
7237 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7238 add_inf_child_target.
7239 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7240 add_inf_child_target.
7241 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7242 add_inf_child_target.
7243 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7244 add_inf_child_target.
7245 * spu-linux-nat.c (_initialize_spu_nat): Use
7246 add_inf_child_target.
7247 * spu-multiarch.c (spu_multiarch_target_info): New.
7248 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7250 * target-delegates.c: Regenerate.
7251 * target.c: Include <unordered_map>.
7252 (target_ops_p): Delete.
7253 (DEF_VEC_P(target_ops_p)): Delete.
7254 (target_factories): New.
7255 (test_target_info): New.
7256 (test_target_ops::info): New.
7257 (open_target): Adjust to use target_factories.
7258 (add_target_with_completer): Rename to ...
7259 (add_target): ... this. Change prototype. Register target_info
7260 and open callback in target_factories. Register target_info in
7261 command context instead of target_ops.
7262 (add_target): Delete old implementation.
7263 (add_deprecated_target_alias): Change prototype. Adjust.
7264 (the_native_target): New.
7265 (set_native_target, get_native_target): New.
7266 (find_default_run_target): Use the_native_target.
7267 (find_attach_target, find_run_target): Simplify.
7268 (target_ops::open): Delete.
7269 (dummy_target_info): New.
7270 (dummy_target::shortname, dummy_target::longname)
7271 (dummy_target::doc): Delete.
7272 (dummy_target::info): New.
7273 (debug_target::shortname, debug_target::longname)
7274 (debug_target::doc): Delete.
7275 (debug_target::info): New.
7276 * target.h (struct target_info): New.
7277 (target_ops::~target_ops): Add comment.
7278 (target_ops::info): New.
7279 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7280 longer virtual. Implement in terms of target_info.
7281 (set_native_target, get_native_target): Declare.
7282 (target_open_ftype): New.
7283 (add_target, add_target_with_completer)
7284 (add_deprecated_target_alias): Change prototype.
7285 (test_target) <shortname, longname, doc>: Delete.
7287 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7288 add_inf_child_target.
7289 * tracefile-tfile.c (tfile_target_info): New.
7290 (tfile_target) <shortname, longname, doc>: Delete.
7292 (tfile_target::open): Rename to ...
7293 (tfile_target_open): ... this.
7294 (_initialize_tracefile_tfile): Adjust.
7295 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7296 add_inf_child_target.
7297 * windows-nat.c (_initialize_windows_nat): Use
7298 add_inf_child_target.
7299 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7300 add_inf_child_target.
7302 2018-05-02 Pedro Alves <palves@redhat.com>
7304 * linux-nat.h (linux_nat_target) <low_new_thread,
7305 low_delete_thread, low_new_fork, low_forget_process,
7306 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7307 New virtual methods.
7308 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7309 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7310 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7311 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7312 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7314 * linux-fork.c (delete_fork): Adjust to call low method.
7315 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7316 (linux_nat_new_fork, linux_nat_forget_process_hook)
7317 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7318 (linux_nat_status_is_event):
7319 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7320 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7322 (sigtrap_is_event): Rename to ...
7323 (linux_nat_target::low_status_is_event): ... this.
7324 (linux_nat_set_status_is_event): Delete.
7325 (save_stop_reason, linux_nat_wait_1)
7326 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7328 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7329 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7330 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7331 (linux_nat_set_prepare_to_resume): Delete.
7332 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7333 low virtual methods.
7334 * amd64-linux-nat.c: Likewise.
7335 * arm-linux-nat.c: Likewise.
7336 * i386-linux-nat.c: Likewise.
7337 * ia64-linux-nat.c: Likewise.
7338 * mips-linux-nat.c: Likewise.
7339 * ppc-linux-nat.c: Likewise.
7340 * s390-linux-nat.c: Likewise.
7341 * sparc64-linux-nat.c: Likewise.
7342 * x86-linux-nat.c: Likewise.
7343 * x86-linux-nat.h: Include "nat/x86-linux.h".
7344 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7345 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7348 2018-05-02 Pedro Alves <palves@redhat.com>
7350 * target.h (target_ops)
7351 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7352 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7353 stopped_by_watchpoint, have_continuable_watchpoint,
7354 stopped_data_address, watchpoint_addr_within_range,
7355 can_accel_watchpoint_condition, can_run, thread_alive,
7356 has_all_memory, has_memory, has_stack, has_registers,
7357 has_execution, can_async_p, is_async_p, supports_non_stop,
7358 always_non_stop_p, can_execute_reverse, supports_multi_process,
7359 supports_enable_disable_tracepoint,
7360 supports_disable_randomization, supports_string_tracing,
7361 supports_evaluation_of_breakpoint_conditions,
7362 can_run_breakpoint_commands, filesystem_is_local,
7363 can_download_tracepoint, get_trace_state_variable_value,
7364 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7365 record_is_replaying, record_will_replay,
7366 augmented_libraries_svr4_read>: Adjust to return bool.
7367 * aarch64-linux-nat.c: All implementations adjusted.
7368 * aix-thread.c: All implementations adjusted.
7369 * arm-linux-nat.c: All implementations adjusted.
7370 * breakpoint.c: All implementations adjusted.
7371 * bsd-kvm.c: All implementations adjusted.
7372 * bsd-uthread.c: All implementations adjusted.
7373 * corelow.c: All implementations adjusted.
7374 * ctf.c: All implementations adjusted.
7375 * darwin-nat.c: All implementations adjusted.
7376 * darwin-nat.h: All implementations adjusted.
7377 * exec.c: All implementations adjusted.
7378 * fbsd-nat.c: All implementations adjusted.
7379 * fbsd-nat.h: All implementations adjusted.
7380 * gnu-nat.c: All implementations adjusted.
7381 * gnu-nat.h: All implementations adjusted.
7382 * go32-nat.c: All implementations adjusted.
7383 * ia64-linux-nat.c: All implementations adjusted.
7384 * inf-child.c: All implementations adjusted.
7385 * inf-child.h: All implementations adjusted.
7386 * inf-ptrace.c: All implementations adjusted.
7387 * inf-ptrace.h: All implementations adjusted.
7388 * linux-nat.c: All implementations adjusted.
7389 * linux-nat.h: All implementations adjusted.
7390 * mips-linux-nat.c: All implementations adjusted.
7391 * nto-procfs.c: All implementations adjusted.
7392 * ppc-linux-nat.c: All implementations adjusted.
7393 * procfs.c: All implementations adjusted.
7394 * ravenscar-thread.c: All implementations adjusted.
7395 * record-btrace.c: All implementations adjusted.
7396 * record-full.c: All implementations adjusted.
7397 * remote-sim.c: All implementations adjusted.
7398 * remote.c: All implementations adjusted.
7399 * s390-linux-nat.c: All implementations adjusted.
7400 * sol-thread.c: All implementations adjusted.
7401 * spu-multiarch.c: All implementations adjusted.
7402 * target-delegates.c: All implementations adjusted.
7403 * target.c: All implementations adjusted.
7404 * target.h: All implementations adjusted.
7405 * tracefile-tfile.c: All implementations adjusted.
7406 * tracefile.c: All implementations adjusted.
7407 * tracefile.h: All implementations adjusted.
7408 * windows-nat.c: All implementations adjusted.
7409 * x86-linux-nat.h: All implementations adjusted.
7410 * x86-nat.h: All implementations adjusted.
7412 2018-05-02 Pedro Alves <palves@redhat.com>
7414 * make-target-delegates (scan_target_h): Don't trim lines here.
7415 Replace sequences of tabs and/or whitespace with a single
7417 (top level, parsing methods): Trim each line before processing it
7420 2018-05-02 Pedro Alves <palves@redhat.com>
7421 John Baldwin <jhb@freebsd.org>
7423 * target.h (enum strata) <debug_stratum>: New.
7424 (struct target_ops) <all delegation methods>: Replace by C++
7425 virtual methods, and drop "to_" prefix. All references updated
7427 <to_shortname, to_longname, to_doc, to_data,
7428 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
7429 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
7430 virtual methods. All references updated throughout.
7431 <can_attach, supports_terminal_ours, can_create_inferior,
7432 get_thread_control_capabilities, attach_no_wait>: New
7434 <insert_breakpoint, remove_breakpoint>: Now
7435 TARGET_DEFAULT_NORETURN methods.
7436 <info_proc>: Now returns bool.
7438 (OPS_MAGIC): Delete.
7439 (current_target): Delete. All references replaced by references
7441 (target_stack): ... this. New.
7442 (target_shortname, target_longname): Adjust.
7443 (target_can_run): Now a function declaration.
7444 (default_child_has_all_memory, default_child_has_memory)
7445 (default_child_has_stack, default_child_has_registers)
7446 (default_child_has_execution): Remove target_ops parameter.
7447 (complete_target_initialization): Delete.
7448 (memory_breakpoint_target): New template class.
7449 (test_target_ops): Refactor as a C++ class with virtual methods.
7450 * make-target-delegates (NAME_PART): Tighten.
7451 (POINTER_PART, CP_SYMBOL): New.
7452 (SIMPLE_RETURN_PART): Reimplement.
7453 (VEC_RETURN_PART): Expect less.
7454 (RETURN_PART, VIRTUAL_PART): New.
7455 (METHOD): Adjust to C++ virtual methods.
7456 (scan_target_h): Remove reference to C99.
7457 (dname): Output "target_ops::" prefix.
7458 (write_function_header): Adjust to output a C++ class method.
7459 (write_declaration): New.
7460 (write_delegator): Adjust to output a C++ class method.
7461 (tdname): Output "dummy_target::" prefix.
7462 (write_tdefault, write_debugmethod): Adjust to output a C++ class
7464 (tdefault_names, debug_names): Delete.
7465 (return_types, tdefaults, styles, argtypes_array): New.
7466 (top level): All methods are delegators.
7468 (top level): Print dummy_target and debug_target classes.
7469 * target-delegates.c: Regenerate.
7470 * target-debug.h (target_debug_print_enum_info_proc_what)
7471 (target_debug_print_thread_control_capabilities)
7472 (target_debug_print_thread_info_p): New.
7473 * target.c (dummy_target): Delete.
7474 (the_dummy_target, the_debug_target): New.
7475 (target_stack): Now extern.
7476 (set_targetdebug): Push/unpush debug target.
7477 (default_child_has_all_memory, default_child_has_memory)
7478 (default_child_has_stack, default_child_has_registers)
7479 (default_child_has_execution): Remove target_ops parameter.
7480 (complete_target_initialization): Delete.
7481 (add_target_with_completer): No longer call
7482 complete_target_initialization.
7483 (target_supports_terminal_ours): Use regular delegation.
7484 (update_current_target): Delete.
7485 (push_target): No longer check magic number. Don't call
7486 update_current_target.
7487 (unpush_target): Don't call update_current_target.
7488 (target_is_pushed): No longer check magic number.
7489 (target_require_runnable): Skip for all stratums over
7491 (target_ops::info_proc): New.
7492 (target_info_proc): Use find_target_at and
7493 find_default_run_target.
7494 (target_supports_disable_randomization): Use regular delegation.
7495 (target_get_osdata): Use find_target_at.
7496 (target_ops::open, target_ops::close, target_ops::can_attach)
7497 (target_ops::attach, target_ops::can_create_inferior)
7498 (target_ops::create_inferior, target_ops::can_run)
7499 (target_can_run): New.
7500 (default_fileio_target): Use regular delegation.
7501 (target_ops::fileio_open, target_ops::fileio_pwrite)
7502 (target_ops::fileio_pread, target_ops::fileio_fstat)
7503 (target_ops::fileio_close, target_ops::fileio_unlink)
7504 (target_ops::fileio_readlink): New.
7505 (target_fileio_open_1, target_fileio_unlink)
7506 (target_fileio_readlink): Always call the target method. Handle
7508 (return_zero, return_zero_has_execution): Delete.
7509 (init_dummy_target): Delete.
7510 (dummy_target::dummy_target, dummy_target::shortname)
7511 (dummy_target::longname, dummy_target::doc)
7512 (debug_target::debug_target, debug_target::shortname)
7513 (debug_target::longname, debug_target::doc): New.
7514 (target_supports_delete_record): Use regular delegation.
7515 (setup_target_debug): Delete.
7516 (maintenance_print_target_stack): Skip debug_stratum.
7517 (initialize_targets): Instantiate the_dummy_target and
7519 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
7521 (target_auxv_search, fprint_target_auxv): Adjust.
7522 (info_auxv_command): Adjust to use target_stack.
7523 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
7524 * exceptions.c (print_flush): Handle a NULL target_stack.
7525 * regcache.c (target_ops_no_register): Refactor as class with
7528 * exec.c (exec_target): New class.
7529 (exec_ops): Now an exec_target.
7530 (exec_open, exec_close_1, exec_get_section_table)
7531 (exec_xfer_partial, exec_files_info, exec_has_memory)
7532 (exec_make_note_section): Refactor as exec_target methods.
7533 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
7535 (exec_target::find_memory_regions): New.
7536 (_initialize_exec): Don't call init_exec_ops.
7537 * gdbcore.h (exec_file_clear): Delete.
7539 * corefile.c (core_target): Delete.
7540 (core_file_command): Adjust.
7541 * corelow.c (core_target): New class.
7542 (the_core_target): New.
7543 (core_close): Remove target_ops parameter.
7544 (core_close_cleanup): Adjust.
7545 (core_target::close): New.
7546 (core_open, core_detach, get_core_registers, core_files_info)
7547 (core_xfer_partial, core_thread_alive, core_read_description)
7548 (core_pid_to_str, core_thread_name, core_has_memory)
7549 (core_has_stack, core_has_registers, core_info_proc): Rework as
7550 core_target methods.
7551 (ignore, core_remove_breakpoint, init_core_ops): Delete.
7552 (_initialize_corelow): Initialize the_core_target.
7553 * gdbcore.h (core_target): Delete.
7554 (the_core_target): New.
7556 * ctf.c: (ctf_target): New class.
7557 (ctf_ops): Now a ctf_target.
7558 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
7559 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
7560 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
7562 (init_ctf_ops): Delete.
7563 (_initialize_ctf): Don't call it.
7564 * tracefile-tfile.c (tfile_target): New class.
7565 (tfile_ops): Now a tfile_target.
7566 (tfile_open, tfile_close, tfile_files_info)
7567 (tfile_get_tracepoint_status, tfile_trace_find)
7568 (tfile_fetch_registers, tfile_xfer_partial)
7569 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
7570 Refactor as tfile_target methods.
7571 (tfile_xfer_partial_features): Remove target_ops parameter.
7572 (init_tfile_ops): Delete.
7573 (_initialize_tracefile_tfile): Don't call it.
7574 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
7575 (tracefile_has_stack, tracefile_has_registers)
7576 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
7577 tracefile_target methods.
7578 (init_tracefile_ops): Delete.
7579 (tracefile_target::tracefile_target): New.
7580 * tracefile.h: Include "target.h".
7581 (tracefile_target): New class.
7582 (init_tracefile_ops): Delete.
7584 * spu-multiarch.c (spu_multiarch_target): New class.
7585 (spu_ops): Now a spu_multiarch_target.
7586 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
7587 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
7588 (spu_search_memory, spu_mourn_inferior): Refactor as
7589 spu_multiarch_target methods.
7590 (init_spu_ops): Delete.
7591 (_initialize_spu_multiarch): Remove references to init_spu_ops,
7592 complete_target_initialization.
7594 * ravenscar-thread.c (ravenscar_thread_target): New class.
7595 (ravenscar_ops): Now a ravenscar_thread_target.
7596 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
7597 (ravenscar_thread_alive, ravenscar_pid_to_str)
7598 (ravenscar_fetch_registers, ravenscar_store_registers)
7599 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
7600 (ravenscar_stopped_by_hw_breakpoint)
7601 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
7602 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
7603 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
7605 (init_ravenscar_thread_ops): Delete.
7606 (_initialize_ravenscar): Remove references to
7607 init_ravenscar_thread_ops and complete_target_initialization.
7609 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
7610 (bsd_uthread_target): New class.
7611 (bsd_uthread_ops): Now a bsd_uthread_target.
7612 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
7613 (bsd_uthread_close, bsd_uthread_mourn_inferior)
7614 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
7615 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
7616 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
7617 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
7618 (bsd_uthread_target): Delete function.
7619 (_initialize_bsd_uthread): Remove reference to
7620 complete_target_initialization.
7622 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
7623 (target_bfd): ... this new class.
7624 (target_bfd_xfer_partial, target_bfd_get_section_table)
7625 (target_bfd_close): Refactor as target_bfd methods.
7626 (target_bfd::~target_bfd): New.
7627 (target_bfd_reopen): Adjust.
7628 (target_bfd::close): New.
7630 * record-btrace.c (record_btrace_target): New class.
7631 (record_btrace_ops): Now a record_btrace_target.
7632 (record_btrace_open, record_btrace_stop_recording)
7633 (record_btrace_disconnect, record_btrace_close)
7634 (record_btrace_async, record_btrace_info)
7635 (record_btrace_insn_history, record_btrace_insn_history_range)
7636 (record_btrace_insn_history_from, record_btrace_call_history)
7637 (record_btrace_call_history_range)
7638 (record_btrace_call_history_from, record_btrace_record_method)
7639 (record_btrace_is_replaying, record_btrace_will_replay)
7640 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7641 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
7642 (record_btrace_store_registers, record_btrace_prepare_to_store)
7643 (record_btrace_to_get_unwinder)
7644 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
7645 (record_btrace_commit_resume, record_btrace_wait)
7646 (record_btrace_stop, record_btrace_can_execute_reverse)
7647 (record_btrace_stopped_by_sw_breakpoint)
7648 (record_btrace_supports_stopped_by_sw_breakpoint)
7649 (record_btrace_stopped_by_hw_breakpoint)
7650 (record_btrace_supports_stopped_by_hw_breakpoint)
7651 (record_btrace_update_thread_list, record_btrace_thread_alive)
7652 (record_btrace_goto_begin, record_btrace_goto_end)
7653 (record_btrace_goto, record_btrace_stop_replaying_all)
7654 (record_btrace_execution_direction)
7655 (record_btrace_prepare_to_generate_core)
7656 (record_btrace_done_generating_core): Refactor as
7657 record_btrace_target methods.
7658 (init_record_btrace_ops): Delete.
7659 (_initialize_record_btrace): Remove reference to
7660 init_record_btrace_ops.
7661 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
7662 the execution_direction global.
7663 (record_full_base_target, record_full_target)
7664 (record_full_core_target): New classes.
7665 (record_full_ops): Now a record_full_target.
7666 (record_full_core_ops): Now a record_full_core_target.
7667 (record_full_target::detach, record_full_target::disconnect)
7668 (record_full_core_target::disconnect)
7669 (record_full_target::mourn_inferior, record_full_target::kill):
7671 (record_full_open, record_full_close, record_full_async): Refactor
7672 as methods of the record_full_base_target class.
7673 (record_full_resume, record_full_commit_resume): Refactor
7674 as methods of the record_full_target class.
7675 (record_full_wait, record_full_stopped_by_watchpoint)
7676 (record_full_stopped_data_address)
7677 (record_full_stopped_by_sw_breakpoint)
7678 (record_full_supports_stopped_by_sw_breakpoint)
7679 (record_full_stopped_by_hw_breakpoint)
7680 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
7681 methods of the record_full_base_target class.
7682 (record_full_store_registers, record_full_xfer_partial)
7683 (record_full_insert_breakpoint, record_full_remove_breakpoint):
7684 Refactor as methods of the record_full_target class.
7685 (record_full_can_execute_reverse, record_full_get_bookmark)
7686 (record_full_goto_bookmark, record_full_execution_direction)
7687 (record_full_record_method, record_full_info, record_full_delete)
7688 (record_full_is_replaying, record_full_will_replay)
7689 (record_full_goto_begin, record_full_goto_end, record_full_goto)
7690 (record_full_stop_replaying): Refactor as methods of the
7691 record_full_base_target class.
7692 (record_full_core_resume, record_full_core_kill)
7693 (record_full_core_fetch_registers)
7694 (record_full_core_prepare_to_store)
7695 (record_full_core_store_registers, record_full_core_xfer_partial)
7696 (record_full_core_insert_breakpoint)
7697 (record_full_core_remove_breakpoint)
7698 (record_full_core_has_execution): Refactor
7699 as methods of the record_full_core_target class.
7700 (record_full_base_target::supports_delete_record): New.
7701 (init_record_full_ops): Delete.
7702 (init_record_full_core_ops): Delete.
7703 (record_full_save): Refactor as method of the
7704 record_full_base_target class.
7705 (_initialize_record_full): Remove references to
7706 init_record_full_ops and init_record_full_core_ops.
7708 * remote.c (remote_target, extended_remote_target): New classes.
7709 (remote_ops): Now a remote_target.
7710 (extended_remote_ops): Now an extended_remote_target.
7711 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
7712 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
7713 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
7714 (remote_pass_signals, remote_set_syscall_catchpoint)
7715 (remote_program_signals, )
7716 (remote_thread_always_alive): Remove target_ops parameter.
7717 (remote_thread_alive, remote_thread_name)
7718 (remote_update_thread_list, remote_threads_extra_info)
7719 (remote_static_tracepoint_marker_at)
7720 (remote_static_tracepoint_markers_by_strid)
7721 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
7722 (remote_open): Refactor as methods of remote_target.
7723 (extended_remote_open, extended_remote_detach)
7724 (extended_remote_attach, extended_remote_post_attach):
7725 (extended_remote_supports_disable_randomization)
7726 (extended_remote_create_inferior): : Refactor as method of
7727 extended_remote_target.
7728 (remote_set_permissions, remote_open_1, remote_detach)
7729 (remote_follow_fork, remote_follow_exec, remote_disconnect)
7730 (remote_resume, remote_commit_resume, remote_stop)
7731 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
7732 (remote_terminal_ours, remote_wait, remote_fetch_registers)
7733 (remote_prepare_to_store, remote_store_registers)
7734 (remote_flash_erase, remote_flash_done, remote_files_info)
7735 (remote_kill, remote_mourn, remote_insert_breakpoint)
7736 (remote_remove_breakpoint, remote_insert_watchpoint)
7737 (remote_watchpoint_addr_within_range)
7738 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
7739 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
7740 (remote_supports_stopped_by_sw_breakpoint)
7741 (remote_stopped_by_hw_breakpoint)
7742 (remote_supports_stopped_by_hw_breakpoint)
7743 (remote_stopped_by_watchpoint, remote_stopped_data_address)
7744 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
7745 (remote_verify_memory): Refactor as methods of remote_target.
7746 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
7748 (remote_xfer_partial, remote_get_memory_xfer_limit)
7749 (remote_search_memory, remote_rcmd, remote_memory_map)
7750 (remote_pid_to_str, remote_get_thread_local_address)
7751 (remote_get_tib_address, remote_read_description): Refactor as
7752 methods of remote_target.
7753 (remote_target::fileio_open, remote_target::fileio_pwrite)
7754 (remote_target::fileio_pread, remote_target::fileio_close): New.
7755 (remote_hostio_readlink, remote_hostio_fstat)
7756 (remote_filesystem_is_local, remote_can_execute_reverse)
7757 (remote_supports_non_stop, remote_supports_disable_randomization)
7758 (remote_supports_multi_process, remote_supports_cond_breakpoints)
7759 (remote_supports_enable_disable_tracepoint)
7760 (remote_supports_string_tracing)
7761 (remote_can_run_breakpoint_commands, remote_trace_init)
7762 (remote_download_tracepoint, remote_can_download_tracepoint)
7763 (remote_download_trace_state_variable, remote_enable_tracepoint)
7764 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
7765 (remote_trace_start, remote_get_trace_status)
7766 (remote_get_tracepoint_status, remote_trace_stop)
7767 (remote_trace_find, remote_get_trace_state_variable_value)
7768 (remote_save_trace_data, remote_get_raw_trace_data)
7769 (remote_set_disconnected_tracing, remote_core_of_thread)
7770 (remote_set_circular_trace_buffer, remote_traceframe_info)
7771 (remote_get_min_fast_tracepoint_insn_len)
7772 (remote_set_trace_buffer_size, remote_set_trace_notes)
7773 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
7774 (remote_disable_btrace, remote_teardown_btrace)
7775 (remote_read_btrace, remote_btrace_conf)
7776 (remote_augmented_libraries_svr4_read, remote_load)
7777 (remote_pid_to_exec_file, remote_can_do_single_step)
7778 (remote_execution_direction, remote_thread_handle_to_thread_info):
7779 Refactor as methods of remote_target.
7780 (init_remote_ops, init_extended_remote_ops): Delete.
7781 (remote_can_async_p, remote_is_async_p, remote_async)
7782 (remote_thread_events, remote_upload_tracepoints)
7783 (remote_upload_trace_state_variables): Refactor as methods of
7785 (_initialize_remote): Remove references to init_remote_ops and
7786 init_extended_remote_ops.
7788 * remote-sim.c (gdbsim_target): New class.
7789 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
7790 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
7791 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
7792 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
7793 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
7794 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
7795 Refactor as methods of gdbsim_target.
7796 (gdbsim_ops): Now a gdbsim_target.
7797 (init_gdbsim_ops): Delete.
7798 (gdbsim_cntrl_c): Adjust.
7799 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
7801 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
7802 (the_amd64_linux_nat_target): New.
7803 (amd64_linux_fetch_inferior_registers)
7804 (amd64_linux_store_inferior_registers): Refactor as methods of
7805 amd64_linux_nat_target.
7806 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
7807 * i386-linux-nat.c: Don't include "linux-nat.h".
7808 (i386_linux_nat_target): New class.
7809 (the_i386_linux_nat_target): New.
7810 (i386_linux_fetch_inferior_registers)
7811 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
7812 as methods of i386_linux_nat_target.
7813 (_initialize_i386_linux_nat): Adjust. Set linux_target.
7814 * inf-child.c (inf_child_ops): Delete.
7815 (inf_child_fetch_inferior_registers)
7816 (inf_child_store_inferior_registers): Delete.
7817 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
7818 methods of inf_child_target.
7819 (inf_child_target::supports_terminal_ours)
7820 (inf_child_target::terminal_init)
7821 (inf_child_target::terminal_inferior)
7822 (inf_child_target::terminal_ours_for_output)
7823 (inf_child_target::terminal_ours, inf_child_target::interrupt)
7824 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
7826 (inf_child_open, inf_child_disconnect, inf_child_close)
7827 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
7828 (inf_child_post_startup_inferior, inf_child_can_run)
7829 (inf_child_pid_to_exec_file): Refactor as methods of
7831 (inf_child_follow_fork): Delete.
7832 (inf_child_target::can_create_inferior)
7833 (inf_child_target::can_attach): New.
7834 (inf_child_target::has_all_memory, inf_child_target::has_memory)
7835 (inf_child_target::has_stack, inf_child_target::has_registers)
7836 (inf_child_target::has_execution): New.
7837 (inf_child_fileio_open, inf_child_fileio_pwrite)
7838 (inf_child_fileio_pread, inf_child_fileio_fstat)
7839 (inf_child_fileio_close, inf_child_fileio_unlink)
7840 (inf_child_fileio_readlink, inf_child_use_agent)
7841 (inf_child_can_use_agent): Refactor as methods of
7843 (return_zero, inf_child_target): Delete.
7844 (inf_child_target::inf_child_target): New.
7845 * inf-child.h: Include "target.h".
7846 (inf_child_target): Delete function prototype.
7847 (inf_child_target): New class.
7848 (inf_child_open_target, inf_child_mourn_inferior)
7849 (inf_child_maybe_unpush_target): Delete.
7850 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
7851 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
7852 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
7853 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
7854 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
7855 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
7856 (inf_ptrace_wait, inf_ptrace_xfer_partial)
7857 (inf_ptrace_thread_alive, inf_ptrace_files_info)
7858 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
7859 methods of inf_ptrace_target.
7860 (inf_ptrace_target): Delete function.
7861 * inf-ptrace.h: Include "inf-child.h".
7862 (inf_ptrace_target): Delete function declaration.
7863 (inf_ptrace_target): New class.
7864 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
7865 * linux-nat.c (linux_target): New.
7866 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
7867 (linux_nat_target::~linux_nat_target): New.
7868 (linux_child_post_attach, linux_child_post_startup_inferior)
7869 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
7870 (linux_child_remove_fork_catchpoint)
7871 (linux_child_insert_vfork_catchpoint)
7872 (linux_child_remove_vfork_catchpoint)
7873 (linux_child_insert_exec_catchpoint)
7874 (linux_child_remove_exec_catchpoint)
7875 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
7876 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
7877 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
7878 (linux_nat_stopped_data_address)
7879 (linux_nat_stopped_by_sw_breakpoint)
7880 (linux_nat_supports_stopped_by_sw_breakpoint)
7881 (linux_nat_stopped_by_hw_breakpoint)
7882 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
7883 (linux_nat_kill, linux_nat_mourn_inferior)
7884 (linux_nat_xfer_partial, linux_nat_thread_alive)
7885 (linux_nat_update_thread_list, linux_nat_pid_to_str)
7886 (linux_nat_thread_name, linux_child_pid_to_exec_file)
7887 (linux_child_static_tracepoint_markers_by_strid)
7888 (linux_nat_is_async_p, linux_nat_can_async_p)
7889 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
7890 (linux_nat_supports_multi_process)
7891 (linux_nat_supports_disable_randomization, linux_nat_async)
7892 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
7893 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
7894 (linux_nat_fileio_open, linux_nat_fileio_readlink)
7895 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
7896 methods of linux_nat_target.
7897 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
7898 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
7900 (check_stopped_by_watchpoint): Adjust.
7901 (linux_xfer_partial): Delete.
7902 (linux_target_install_ops, linux_target, linux_nat_add_target):
7904 (linux_nat_target::linux_nat_target): New.
7905 * linux-nat.h: Include "inf-ptrace.h".
7906 (linux_nat_target): New.
7907 (linux_target, linux_target_install_ops, linux_nat_add_target):
7908 Delete function declarations.
7909 (linux_target): Declare global.
7910 * linux-thread-db.c (thread_db_target): New.
7911 (thread_db_target::thread_db_target): New.
7912 (thread_db_ops): Delete.
7913 (the_thread_db_target): New.
7914 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
7915 (thread_db_update_thread_list, thread_db_pid_to_str)
7916 (thread_db_extra_thread_info)
7917 (thread_db_thread_handle_to_thread_info)
7918 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
7919 (thread_db_resume): Refactor as methods of thread_db_target.
7920 (init_thread_db_ops): Delete.
7921 (_initialize_thread_db): Remove reference to init_thread_db_ops.
7922 * x86-linux-nat.c: Don't include "linux-nat.h".
7923 (super_post_startup_inferior): Delete.
7924 (x86_linux_nat_target::~x86_linux_nat_target): New.
7925 (x86_linux_child_post_startup_inferior)
7926 (x86_linux_read_description, x86_linux_enable_btrace)
7927 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
7928 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
7929 methods of x86_linux_nat_target.
7930 (x86_linux_create_target): Delete. Bits folded ...
7931 (x86_linux_add_target): ... here. Now takes a linux_nat_target
7933 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
7934 (x86_linux_nat_target): New class.
7935 (x86_linux_create_target): Delete.
7936 (x86_linux_add_target): Now takes a linux_nat_target pointer.
7937 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
7938 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
7939 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
7940 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
7941 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
7943 (x86_use_watchpoints): Delete.
7944 * x86-nat.h: Include "breakpoint.h" and "target.h".
7945 (x86_use_watchpoints): Delete.
7946 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
7947 (x86_stopped_by_watchpoint, x86_stopped_data_address)
7948 (x86_insert_watchpoint, x86_remove_watchpoint)
7949 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
7950 (x86_stopped_by_hw_breakpoint): New declarations.
7951 (x86_nat_target): New template class.
7953 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
7954 (the_ppc_linux_nat_target): New.
7955 (ppc_linux_fetch_inferior_registers)
7956 (ppc_linux_can_use_hw_breakpoint)
7957 (ppc_linux_region_ok_for_hw_watchpoint)
7958 (ppc_linux_ranged_break_num_registers)
7959 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
7960 (ppc_linux_insert_mask_watchpoint)
7961 (ppc_linux_remove_mask_watchpoint)
7962 (ppc_linux_can_accel_watchpoint_condition)
7963 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
7964 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
7965 (ppc_linux_watchpoint_addr_within_range)
7966 (ppc_linux_masked_watch_num_registers)
7967 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
7968 (ppc_linux_read_description): Refactor as methods of
7969 ppc_linux_nat_target.
7970 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
7972 * procfs.c (procfs_xfer_partial): Delete forward declaration.
7973 (procfs_target): New class.
7974 (the_procfs_target): New.
7975 (procfs_target): Delete function.
7976 (procfs_auxv_parse, procfs_attach, procfs_detach)
7977 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
7978 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
7979 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
7980 (procfs_create_inferior, procfs_update_thread_list)
7981 (procfs_thread_alive, procfs_pid_to_str)
7982 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
7983 (procfs_stopped_data_address, procfs_insert_watchpoint)
7984 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
7985 (proc_find_memory_regions, procfs_info_proc)
7986 (procfs_make_note_section): Refactor as methods of procfs_target.
7987 (_initialize_procfs): Adjust.
7988 * sol-thread.c (sol_thread_target): New class.
7989 (sol_thread_ops): Now a sol_thread_target.
7990 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
7991 (sol_thread_fetch_registers, sol_thread_store_registers)
7992 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
7993 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
7994 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
7995 (init_sol_thread_ops): Delete.
7996 (_initialize_sol_thread): Adjust. Remove references to
7997 init_sol_thread_ops and complete_target_initialization.
7999 * windows-nat.c (windows_nat_target): New class.
8000 (windows_fetch_inferior_registers)
8001 (windows_store_inferior_registers, windows_resume, windows_wait)
8002 (windows_attach, windows_detach, windows_pid_to_exec_file)
8003 (windows_files_info, windows_create_inferior)
8004 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8005 (windows_close, windows_pid_to_str, windows_xfer_partial)
8006 (windows_get_tib_address, windows_get_ada_task_ptid)
8007 (windows_thread_name, windows_thread_alive): Refactor as
8008 windows_nat_target methods.
8009 (do_initial_windows_stuff): Adjust.
8010 (windows_target): Delete function.
8011 (_initialize_windows_nat): Adjust.
8013 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8014 (darwin_mourn_inferior, darwin_kill_inferior)
8015 (darwin_create_inferior, darwin_attach, darwin_detach)
8016 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8017 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8018 (darwin_supports_multi_process): Refactor as darwin_nat_target
8020 (darwin_resume_to, darwin_files_info): Delete.
8021 (_initialize_darwin_inferior): Rename to ...
8022 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8023 * darwin-nat.h: Include "inf-child.h".
8024 (darwin_nat_target): New class.
8025 (darwin_complete_target): Delete.
8026 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8027 (darwin_target): New.
8028 (i386_darwin_fetch_inferior_registers)
8029 (i386_darwin_store_inferior_registers): Refactor as methods of
8031 (darwin_complete_target): Delete, with ...
8032 (_initialize_i386_darwin_nat): ... bits factored out here.
8034 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8035 (the_alpha_linux_nat_target): New.
8036 (alpha_linux_register_u_offset): Refactor as
8037 alpha_linux_nat_target method.
8038 (_initialize_alpha_linux_nat): Adjust.
8039 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8040 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8041 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8042 methods of linux_nat_trad_target.
8043 (linux_trad_target): Delete.
8044 * linux-nat-trad.h (linux_trad_target): Delete function.
8045 (linux_nat_trad_target): New class.
8046 * mips-linux-nat.c (mips_linux_nat_target): New class.
8047 (super_fetch_registers, super_store_registers, super_close):
8049 (the_mips_linux_nat_target): New.
8050 (mips64_linux_regsets_fetch_registers)
8051 (mips64_linux_regsets_store_registers)
8052 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8053 (mips_linux_register_u_offset, mips_linux_read_description)
8054 (mips_linux_can_use_hw_breakpoint)
8055 (mips_linux_stopped_by_watchpoint)
8056 (mips_linux_stopped_data_address)
8057 (mips_linux_region_ok_for_hw_watchpoint)
8058 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8059 (mips_linux_close): Refactor as methods of mips_linux_nat.
8060 (_initialize_mips_linux_nat): Adjust to C++ification.
8062 * aix-thread.c (aix_thread_target): New class.
8063 (aix_thread_ops): Now an aix_thread_target.
8064 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8065 (aix_thread_fetch_registers, aix_thread_store_registers)
8066 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8067 (aix_thread_thread_alive, aix_thread_pid_to_str)
8068 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8069 Refactor as methods of aix_thread_target.
8070 (init_aix_thread_ops): Delete.
8071 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8072 and complete_target_initialization.
8073 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8074 (rs6000_nat_target): New class.
8075 (the_rs6000_nat_target): New.
8076 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8077 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8078 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8079 (super_create_inferior): Delete.
8080 (_initialize_rs6000_nat): Adjust to C++ification.
8082 * arm-linux-nat.c (arm_linux_nat_target): New class.
8083 (the_arm_linux_nat_target): New.
8084 (arm_linux_fetch_inferior_registers)
8085 (arm_linux_store_inferior_registers, arm_linux_read_description)
8086 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8087 (arm_linux_remove_hw_breakpoint)
8088 (arm_linux_region_ok_for_hw_watchpoint)
8089 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8090 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8091 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8092 arm_linux_nat_target.
8093 (_initialize_arm_linux_nat): Adjust to C++ification.
8095 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8096 (the_aarch64_linux_nat_target): New.
8097 (aarch64_linux_fetch_inferior_registers)
8098 (aarch64_linux_store_inferior_registers)
8099 (aarch64_linux_child_post_startup_inferior)
8100 (aarch64_linux_read_description)
8101 (aarch64_linux_can_use_hw_breakpoint)
8102 (aarch64_linux_insert_hw_breakpoint)
8103 (aarch64_linux_remove_hw_breakpoint)
8104 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8105 (aarch64_linux_region_ok_for_hw_watchpoint)
8106 (aarch64_linux_stopped_data_address)
8107 (aarch64_linux_stopped_by_watchpoint)
8108 (aarch64_linux_watchpoint_addr_within_range)
8109 (aarch64_linux_can_do_single_step): Refactor as methods of
8110 aarch64_linux_nat_target.
8111 (super_post_startup_inferior): Delete.
8112 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8114 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8115 (the_hppa_linux_nat_target): New.
8116 (hppa_linux_fetch_inferior_registers)
8117 (hppa_linux_store_inferior_registers): Refactor as methods of
8118 hppa_linux_nat_target.
8119 (_initialize_hppa_linux_nat): Adjust to C++ification.
8121 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8122 (the_ia64_linux_nat_target): New.
8123 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8124 (ia64_linux_stopped_data_address)
8125 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8126 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8127 ia64_linux_nat_target methods.
8128 (super_xfer_partial): Delete.
8129 (_initialize_ia64_linux_nat): Adjust to C++ification.
8131 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8132 (the_m32r_linux_nat_target): New.
8133 (m32r_linux_fetch_inferior_registers)
8134 (m32r_linux_store_inferior_registers): Refactor as
8135 m32r_linux_nat_target methods.
8136 (_initialize_m32r_linux_nat): Adjust to C++ification.
8138 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8139 (the_m68k_linux_nat_target): New.
8140 (m68k_linux_fetch_inferior_registers)
8141 (m68k_linux_store_inferior_registers): Refactor as
8142 m68k_linux_nat_target methods.
8143 (_initialize_m68k_linux_nat): Adjust to C++ification.
8145 * s390-linux-nat.c (s390_linux_nat_target): New class.
8146 (the_s390_linux_nat_target): New.
8147 (s390_linux_fetch_inferior_registers)
8148 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8149 (s390_insert_watchpoint, s390_remove_watchpoint)
8150 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8151 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8152 (s390_auxv_parse, s390_read_description): Refactor as methods of
8153 s390_linux_nat_target.
8154 (_initialize_s390_nat): Adjust to C++ification.
8156 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8157 (the_sparc_linux_nat_target): New.
8158 (_initialize_sparc_linux_nat): Adjust to C++ification.
8159 * sparc-nat.c (sparc_fetch_inferior_registers)
8160 (sparc_store_inferior_registers): Remove target_ops parameter.
8161 * sparc-nat.h (sparc_fetch_inferior_registers)
8162 (sparc_store_inferior_registers): Remove target_ops parameter.
8163 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8164 (the_sparc64_linux_nat_target): New.
8165 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8167 * spu-linux-nat.c (spu_linux_nat_target): New class.
8168 (the_spu_linux_nat_target): New.
8169 (spu_child_post_startup_inferior, spu_child_post_attach)
8170 (spu_child_wait, spu_fetch_inferior_registers)
8171 (spu_store_inferior_registers, spu_xfer_partial)
8172 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8174 (_initialize_spu_nat): Adjust to C++ification.
8176 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8177 (the_tilegx_linux_nat_target): New.
8178 (fetch_inferior_registers, store_inferior_registers):
8179 Refactor as methods.
8180 (_initialize_tile_linux_nat): Adjust to C++ification.
8182 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8183 (the_xtensa_linux_nat_target): New.
8184 (xtensa_linux_fetch_inferior_registers)
8185 (xtensa_linux_store_inferior_registers): Refactor as
8186 xtensa_linux_nat_target methods.
8187 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8189 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8190 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8191 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8192 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8193 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8194 (fbsd_stopped_by_sw_breakpoint)
8195 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8196 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8197 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8198 (fbsd_post_startup_inferior, fbsd_post_attach)
8199 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8200 (fbsd_set_syscall_catchpoint)
8201 (super_xfer_partial, super_resume, super_wait)
8202 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8203 (fbsd_handle_debug_trap): Remove target_ops parameter.
8204 (fbsd_nat_add_target): Delete.
8205 * fbsd-nat.h: Include "inf-ptrace.h".
8206 (fbsd_nat_add_target): Delete.
8207 (USE_SIGTRAP_SIGINFO): Define.
8208 (fbsd_nat_target): New class.
8210 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8211 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8212 (amd64bsd_target): Delete.
8213 * amd64-bsd-nat.h: New file.
8214 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8216 (amd64_fbsd_nat_target): New class.
8217 (the_amd64_fbsd_nat_target): New.
8218 (amd64fbsd_read_description): Refactor as method of
8219 amd64_fbsd_nat_target.
8220 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8221 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8222 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8223 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8224 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8225 (i386bsd_target): Delete.
8226 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8227 (i386bsd_fetch_inferior_registers)
8228 (i386bsd_store_inferior_registers): Declare.
8229 (i386_bsd_nat_target): New class.
8230 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8231 (the_i386_fbsd_nat_target): New.
8232 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8233 i386_fbsd_nat_target methods.
8234 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8235 (_initialize_i386fbsd_nat): Adjust to C++ification.
8236 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8237 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8238 (_initialize_x86_bsd_nat): Adjust to C++ification.
8239 * x86-bsd-nat.h: Include "x86-nat.h".
8240 (x86bsd_target): Delete declaration.
8241 (x86bsd_nat_target): New class.
8243 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8244 (the_aarch64_fbsd_nat_target): New.
8245 (aarch64_fbsd_fetch_inferior_registers)
8246 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8247 aarch64_fbsd_nat_target.
8248 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8249 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8250 (the_alpha_bsd_nat_target): New.
8251 (alphabsd_fetch_inferior_registers)
8252 (alphabsd_store_inferior_registers): Refactor as
8253 alpha_bsd_nat_target methods.
8254 (_initialize_alphabsd_nat): Refactor as methods of
8255 alpha_bsd_nat_target.
8256 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8257 (the_amd64_nbsd_nat_target): New.
8258 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8259 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8260 (the_amd64_obsd_nat_target): New.
8261 (_initialize_amd64obsd_nat): Adjust to C++ification.
8262 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8263 (the_arm_fbsd_nat_target): New.
8264 (arm_fbsd_fetch_inferior_registers)
8265 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8266 (_initialize_arm_fbsd_nat): Refactor as methods of
8267 arm_fbsd_nat_target.
8268 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8269 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8270 (the_arm_netbsd_nat_target): New.
8271 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8272 arm_netbsd_nat_target.
8273 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8274 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8275 (the_hppa_nbsd_nat_target): New.
8276 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8277 hppa_nbsd_nat_target methods.
8278 (_initialize_hppanbsd_nat): Adjust to C++ification.
8279 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8280 (the_hppa_obsd_nat_target): New.
8281 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8282 methods of hppa_obsd_nat_target.
8283 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8285 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8286 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8288 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8289 (_initialize_i386obsd_nat): Use add_target.
8290 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8291 (the_m68k_bsd_nat_target): New.
8292 (m68kbsd_fetch_inferior_registers)
8293 (m68kbsd_store_inferior_registers): Refactor as methods of
8294 m68k_bsd_nat_target.
8295 (_initialize_m68kbsd_nat): Adjust to C++ification.
8296 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8297 (the_mips_fbsd_nat_target): New.
8298 (mips_fbsd_fetch_inferior_registers)
8299 (mips_fbsd_store_inferior_registers): Refactor as methods of
8300 mips_fbsd_nat_target.
8301 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8303 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8304 (the_mips_nbsd_nat_target): New.
8305 (mipsnbsd_fetch_inferior_registers)
8306 (mipsnbsd_store_inferior_registers): Refactor as methods of
8307 mips_nbsd_nat_target.
8308 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8309 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8310 (the_mips64_obsd_nat_target): New.
8311 (mips64obsd_fetch_inferior_registers)
8312 (mips64obsd_store_inferior_registers): Refactor as methods of
8313 mips64_obsd_nat_target.
8314 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8316 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8318 * nbsd-nat.h: Include "inf-ptrace.h".
8319 (nbsd_nat_target): New class.
8320 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8321 (obsd_wait): Refactor as methods of obsd_nat_target.
8322 (obsd_add_target): Delete.
8323 * obsd-nat.h: Include "inf-ptrace.h".
8324 (obsd_nat_target): New class.
8325 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8326 (the_ppc_fbsd_nat_target): New.
8327 (ppcfbsd_fetch_inferior_registers)
8328 (ppcfbsd_store_inferior_registers): Refactor as methods of
8329 ppc_fbsd_nat_target.
8330 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8332 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8333 (the_ppc_nbsd_nat_target): New.
8334 (ppcnbsd_fetch_inferior_registers)
8335 (ppcnbsd_store_inferior_registers): Refactor as methods of
8336 ppc_nbsd_nat_target.
8337 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8338 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8339 (the_ppc_obsd_nat_target): New.
8340 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8341 methods of ppc_obsd_nat_target.
8342 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8344 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8345 (the_sh_nbsd_nat_target): New.
8346 (shnbsd_fetch_inferior_registers)
8347 (shnbsd_store_inferior_registers): Refactor as methods of
8349 (_initialize_shnbsd_nat): Adjust to C++ification.
8350 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8351 (inf_ptrace_xfer_partial): Delete.
8352 (sparc_xfer_partial, sparc_target): Delete.
8353 * sparc-nat.h (sparc_fetch_inferior_registers)
8354 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8355 (sparc_target): Delete function declaration.
8356 (sparc_target): New template class.
8357 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8358 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8359 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8360 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8362 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8363 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8364 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8365 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8367 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8368 (the_vax_bsd_nat_target): New.
8369 (vaxbsd_fetch_inferior_registers)
8370 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8372 (_initialize_vaxbsd_nat): Adjust to C++ification.
8374 * bsd-kvm.c (bsd_kvm_target): New class.
8375 (bsd_kvm_ops): Now a bsd_kvm_target.
8376 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8377 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8378 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8380 (bsd_kvm_return_one): Delete.
8381 (bsd_kvm_add_target): Adjust to C++ification.
8383 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8384 (nto_procfs_target_procfs): New classes.
8385 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8386 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8387 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8388 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8389 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8390 (procfs_remove_hw_breakpoint, procfs_resume)
8391 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8392 (procfs_kill_inferior, procfs_store_registers)
8393 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8394 as methods of nto_procfs_target.
8395 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8396 (nto_native_ops): Delete.
8397 (procfs_open, procfs_native_open): Delete.
8398 (nto_native_ops): Now an nto_procfs_target_native.
8399 (init_procfs_targets): Adjust to C++ification.
8400 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8401 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8402 Refactor as methods of nto_procfs_target.
8404 * go32-nat.c (go32_nat_target): New class.
8405 (the_go32_nat_target): New.
8406 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8407 (go32_store_registers, go32_xfer_partial, go32_files_info)
8408 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8409 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8410 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8411 (go32_pid_to_str): Refactor as methods of go32_nat_target.
8412 (go32_target): Delete.
8413 (_initialize_go32_nat): Adjust to C++ification.
8415 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8416 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8417 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8418 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8420 (gnu_target): Delete.
8421 * gnu-nat.h (gnu_target): Delete.
8422 (gnu_nat_target): New class.
8423 * i386-gnu-nat.c (gnu_base_target): New.
8424 (i386_gnu_nat_target): New class.
8425 (the_i386_gnu_nat_target): New.
8426 (_initialize_i386gnu_nat): Adjust to C++ification.
8428 2018-05-02 Pedro Alves <palves@redhat.com>
8430 * bfd-target.c (target_bfd_xclose): Rename to ...
8431 (target_bfd_close): ... this.
8432 (target_bfd_reopen): Adjust.
8433 * target.c (target_close): Remove references to to_xclose.
8434 * target.h (target_ops::to_xclose): Delete.
8435 (target_ops::to_close): Update comments.
8437 2018-05-02 Pedro Alves <palves@redhat.com>
8439 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
8441 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
8442 * inf-ptrace.c (inf_ptrace_register_u_offset)
8443 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8444 (inf_ptrace_store_register, inf_ptrace_store_registers)
8445 (inf_ptrace_trad_target): Move to ...
8446 * linux-nat-trad.c: ... this new file.
8447 * linux-nat-trad.h: New file.
8448 * linux-nat.c (linux_target_install_ops): Make extern.
8449 (linux_trad_target): Delete.
8450 * linux-nat.h (linux_trad_target): Delete declaration.
8451 (linux_target_install_ops): Declare.
8452 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
8455 2018-05-02 Pedro Alves <palves@redhat.com>
8457 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8458 procfs_target/add_target here.
8459 * procfs.c (procfs_target): Make static.
8460 (_initialize_procfs): Call add_target here.
8461 * procfs.h (struct target_ops): Remove forward declaration.
8462 (procfs_target): Remove declaration.
8463 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
8465 2018-05-02 Pedro Alves <palves@redhat.com>
8467 * procfs.c (procfs_stopped_by_watchpoint)
8468 (procfs_insert_watchpoint, procfs_remove_watchpoint)
8469 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
8471 (procfs_use_watchpoints): Delete, move contents...
8472 (procfs_target): ... here.
8473 * procfs.h (procfs_use_watchpoints): Delete declaration.
8474 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8475 procfs_use_watchpoints.
8476 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8477 procfs_use_watchpoints.
8479 2018-05-02 Tom Tromey <tom@tromey.com>
8482 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
8483 and var_zuinteger_unlimited.
8484 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
8485 and PARAM_ZUINTEGER_UNLIMITED.
8486 (set_parameter_value): Handle var_zuinteger and
8487 var_zuinteger_unlimited.
8488 (add_setshow_generic): Likewise.
8489 (parmpy_init): Likewise.
8491 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
8494 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
8495 pointer is not null before dereferencing it.
8497 2018-04-30 Tom Tromey <tom@tromey.com>
8499 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
8502 2018-04-30 Tom Tromey <tom@tromey.com>
8504 * breakpoint.c (mention): Remove use of is_mi_like_p.
8505 (print_mention_ranged_breakpoint): Likewise.
8506 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
8509 2018-04-30 Tom Tromey <tom@tromey.com>
8511 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
8513 2018-04-30 Tom Tromey <tom@tromey.com>
8515 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
8516 (info_spu_event_command): Remove some uses of is_mi_like_p.
8518 2018-04-30 Tom Tromey <tom@tromey.com>
8520 * python/py-framefilter.c (py_print_single_arg)
8521 (enumerate_locals, py_print_args, py_print_frame): Remove some
8522 uses of is_mi_like_p.
8524 2018-04-30 Tom Tromey <tom@tromey.com>
8527 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
8528 * ui-out.h (ui_out::is_mi_like_p): Now const.
8529 (ui_out::do_is_mi_like_p): Now const.
8530 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
8532 2018-04-30 Tom Tromey <tom@tromey.com>
8534 * varobj.c (varobj_set_visualizer): Use new_reference.
8535 * python/python.c (gdbpy_decode_line): Use new_reference.
8536 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
8539 2018-04-30 Tom Tromey <tom@tromey.com>
8541 * varobj.c (install_new_value): Use new_reference.
8542 * value.h (value_incref): Return void. Swap intro comment with
8544 * value.c (set_value_parent): Use new_reference.
8545 (value_incref): Return void. Update intro comment.
8546 (release_value): Use new_reference.
8547 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
8549 2018-04-30 Tom Tromey <tom@tromey.com>
8551 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
8552 * gdb_bfd.h (new_bfd_ref): Remove.
8553 (gdb_bfd_open): Update comment.
8554 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
8555 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
8556 (gdb_bfd_fdopenr): Use new_reference.
8557 * exec.c (exec_file_attach): Use new_reference.
8559 2018-04-30 Tom Tromey <tom@tromey.com>
8561 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
8564 2018-04-30 Tom Tromey <tom@tromey.com>
8566 * jit.c (jit_read_code_entry): Use type_align.
8567 * i386-tdep.c (i386_gdbarch_init): Don't call
8568 set_gdbarch_long_long_align_bit.
8569 * gdbarch.sh: Remove long_long_align_bit.
8570 * gdbarch.c, gdbarch.h: Rebuild.
8571 * arc-tdep.c (arc_type_align): New function.
8572 (arc_gdbarch_init): Use arc_type_align. Don't call
8573 set_gdbarch_long_long_align_bit.
8575 2018-04-30 Tom Tromey <tom@tromey.com>
8577 * rust-lang.c (rust_type_alignment): Remove.
8578 (rust_composite_type): Use type_align.
8580 2018-04-30 Tom Tromey <tom@tromey.com>
8582 * NEWS: Mention Type.align.
8583 * python/py-type.c (typy_get_alignof): New function.
8584 (type_object_getset): Add "alignof".
8586 2018-04-30 Tom Tromey <tom@tromey.com>
8590 * std-operator.def (UNOP_ALIGNOF): New operator.
8591 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
8593 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
8594 * c-lang.c (c_op_print_tab): Add alignof.
8595 * c-exp.y (ALIGNOF): New token.
8596 (exp): Add "ALIGNOF" production.
8597 (ident_tokens): Add _Alignof and alignof.
8599 2018-04-30 Tom Tromey <tom@tromey.com>
8601 * i386-tdep.c (i386_type_align): New function.
8602 (i386_gdbarch_init): Update.
8603 * gdbarch.sh (type_align): New method.
8604 * gdbarch.c, gdbarch.h: Rebuild.
8605 * arch-utils.h (default_type_align): Declare.
8606 * arch-utils.c (default_type_align): New function.
8607 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
8608 (struct type) <align_log2>: New field.
8609 <instance_flags>: Now a bitfield.
8610 (TYPE_RAW_ALIGN): New macro.
8611 (type_align, type_raw_align, set_type_align): Declare.
8612 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
8614 * dwarf2read.c (quirk_rust_enum): Set type alignment.
8615 (get_alignment, maybe_set_alignment): New functions.
8616 (read_structure_type, read_enumeration_type, read_array_type)
8617 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
8618 (read_subrange_type, read_base_type): Set type alignment.
8620 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
8622 * dwarf2read.c (read_index_from_section): Use bool.
8624 2018-04-29 Fabian Groffen <grobian@gentoo.org>
8627 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
8630 2018-04-29 John Reiser <jreiser@BitWagon.com>
8633 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
8634 last step, and do it atomically.
8636 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
8638 * compile/compile-c-types.c (convert_int, convert_float):
8641 2018-04-27 Tom Tromey <tom@tromey.com>
8644 * rust-lang.c (rust_inclusive_range_type_p): New function.
8645 (rust_range): Handle inclusive ranges.
8646 (rust_compute_range): Likewise.
8647 * rust-exp.y (struct rust_op) <inclusive>: New field.
8648 (DOTDOTEQ): New constant.
8649 (range_expr): Add "..=" productions.
8650 (operator_tokens): Add "..=" token.
8651 (ast_range): Add "inclusive" parameter.
8652 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
8654 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
8656 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
8657 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
8659 * expprint.c (print_subexp_standard): Handle new bounds values.
8660 (dump_subexp_body_standard): Likewise.
8662 2018-04-27 Tom Tromey <tom@tromey.com>
8664 * configure: Rebuild.
8665 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
8666 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
8668 (class symbol_needs_eval_context): Likewise.
8669 * dwarf2read.c (mock_mapped_index::symbol_name_count)
8670 (mock_mapped_index::symbol_name_at): Use "override". Remove
8672 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
8674 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
8675 * aarch64-tdep.c (instruction_reader::read): Use "override".
8676 (instruction_reader_test::read): Likewise.
8677 * arm-tdep.c (instruction_reader::read): Use "override".
8678 (instruction_reader_thumb::read): Likewise.
8680 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
8683 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
8684 instead of remote_send.
8685 (remote_send): Remove.
8687 2018-04-26 Pedro Alves <palves@redhat.com>
8689 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
8690 find_function_start_sal instead of find_pc_line.
8692 2018-04-26 Pedro Alves <palves@redhat.com>
8694 * breakpoint.c (set_breakpoint_location_function): Handle
8696 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
8697 * elfread.c (elf_symtab_read): Give data symbols with
8698 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
8699 (elf_rel_plt_read): Update comment.
8700 * linespec.c (convert_linespec_to_sals): Handle
8702 (minsym_found): Handle mst_data_gnu_ifunc.
8703 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
8704 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
8705 * parse.c (find_minsym_type_and_address): Handle
8707 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
8708 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
8709 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
8711 <mst_data_gnu_ifunc>: New enumerator.
8713 2018-04-26 Pedro Alves <palves@redhat.com>
8715 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
8716 (lookup_minimal_symbol_by_pc_section): ... this. Replace
8717 'want_trampoline' parameter by a lookup_msym_prefer parameter.
8719 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
8720 (lookup_minimal_symbol_by_pc): Adjust.
8721 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
8722 (lookup_solib_trampoline_symbol_by_pc): Adjust.
8723 * minsyms.h (lookup_msym_prefer): New enum.
8724 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8725 parameter by a lookup_msym_prefer parameter.
8727 2018-04-26 Pedro Alves <palves@redhat.com>
8729 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
8730 ends in "@plt" instead of looking at the symbol's section.
8732 2018-04-26 Pedro Alves <palves@redhat.com>
8734 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
8736 (find_pc_partial_function_gnu_ifunc): Rename to ...
8737 (find_pc_partial_function): ... this, and remove references to
8739 (find_pc_partial_function): Delete old implementation.
8740 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
8742 2018-04-26 Pedro Alves <palves@redhat.com>
8744 * linespec.c (struct bound_minimal_symbol_search_key): New.
8745 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
8746 skip first line if we found a GNU ifunc minimal symbol by name.
8747 (compare_msymbols): Change parameters to work with a destructured
8749 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
8752 2018-04-26 Pedro Alves <palves@redhat.com>
8754 * breakpoint.c (set_breakpoint_location_function): Don't resolve
8755 ifunc targets here. Instead, if we have an ifunc minsym, use its
8757 (add_location_to_breakpoint): Store the minsym and the objfile in
8758 the breakpoint location.
8759 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
8760 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
8761 Record the minsym in the sal.
8762 * symtab.h (symtab_and_line) <msymbol>: New field.
8764 2018-04-26 Pedro Alves <palves@redhat.com>
8766 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
8767 unless we actually resolved the ifunc.
8769 2018-04-26 Pedro Alves <palves@redhat.com>
8771 * c-exp.y (variable production): Prefer ifunc minsyms over
8772 regular function symbols.
8773 * symtab.c (find_gnu_ifunc): New function.
8774 * minsyms.h (lookup_msym_prefer): New enum.
8775 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8776 parameter by a lookup_msym_prefer parameter.
8777 * symtab.h (find_gnu_ifunc): New declaration.
8779 2018-04-26 Pedro Alves <palves@redhat.com>
8781 * blockframe.c (find_gnu_ifunc_target_type): New function.
8782 (find_function_type): New.
8783 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
8784 return a value with a memory address.
8785 (eval_call): For calls to GNU ifunc functions, try to find the
8786 type of the target function from the type that the resolver
8788 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
8790 * infcall.c (find_function_return_type): Delete.
8791 (find_function_addr): Add 'function_type' parameter. For calls to
8792 GNU ifunc functions, try to find the type of the target function
8793 from the type that the resolver returns, and return it via
8795 (call_function_by_hand_dummy): Adjust to use the function type
8796 returned by find_function_addr.
8797 (find_function_addr): Add 'function_type' parameter and move
8799 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
8802 2018-04-26 Pedro Alves <palves@redhat.com>
8804 * c-exp.y (variable production): Skip finding an alias for ifunc
8807 2018-04-26 Pedro Alves <palves@redhat.com>
8809 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
8811 2018-04-25 Pedro Alves <palves@redhat.com>
8813 * infcmd.c (kill_command): Print the pid as string, not the whole
8814 thread's ptid. Add comment. s/has been killed/killed/ in output
8816 * remote.c (remote_detach_1): Print the pid as string, not the
8817 whole thread's ptid.
8819 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8820 Sergio Durigan Junior <sergiodj@redhat.com>
8821 Pedro Alves <palves@redhat.com>
8823 * infcmd.c (kill_command): Print message when inferior has
8825 * inferior.c (print_inferior_events): Remove 'static'. Set as
8827 (add_inferior): Improve message printed when
8828 'print_inferior_events' is on.
8829 (exit_inferior): Remove message printed when
8830 'print_inferior_events' is on.
8831 (detach_inferior): Improve message printed when
8832 'print_inferior_events' is on.
8833 (initialize_inferiors): Use 'add_inferior_silent' to set
8834 'current_inferior_'.
8835 * inferior.h (print_inferior_events): Declare here as
8837 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
8838 '[Detaching...]' messages when 'print_inferior_events' is on.
8839 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
8840 as prefix/suffix for messages. Remove periods. Fix erroneous
8841 'Detaching after fork from child...', replace it by '... from
8843 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
8844 prefix/suffix when printing 'Detaching...' messages. Print
8845 them when 'print_inferior_events' is on.
8846 * remote.c (remote_detach_1): Print message when detaching
8847 from inferior and '!is_fork_parent'.
8849 2018-04-24 Tom Tromey <tom@tromey.com>
8851 * cli-out.h: Reindent.
8853 2018-04-24 Tom Tromey <tom@tromey.com>
8855 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
8856 (cli_ui_out::do_field_string): Use fputs_filtered.
8857 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
8859 2018-04-23 Tom Tromey <tom@tromey.com>
8861 * guile/scm-frame.c (gdbscm_frame_read_var): Use
8862 gdb::unique_xmalloc_ptr.
8864 2018-04-23 Tom Tromey <tom@tromey.com>
8866 * configure: Rebuild.
8868 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
8871 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
8872 prepare_for_testing. Set normal_bp to r_debug_state if target
8875 2018-04-21 Pedro Alves <palves@redhat.com>
8876 Rajendra SY <rajendra.sy@gmail.com>
8878 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
8879 * remote.c (extended_remote_attach): In all-stop mode, mark the
8880 thread as executing.
8882 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8884 * thread.c (thread_apply_all_command): Fix comment.
8885 (thread_command): Fix comment.
8887 2018-04-10 Alan Hayward <alan.hayward@arm.com>
8889 * common/tdesc.h (tdesc_create_feature): Remove xml filename
8891 * features/aarch64-core.c (create_feature_aarch64_core):
8893 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
8895 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
8897 * features/i386/32bit-avx512.c
8898 (create_feature_i386_32bit_avx512): Likewise.
8899 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
8901 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
8903 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
8905 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
8907 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
8909 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
8911 * features/i386/64bit-avx512.c
8912 (create_feature_i386_64bit_avx512): Likewise.
8913 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
8915 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
8917 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
8919 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
8921 * features/i386/64bit-segments.c
8922 (create_feature_i386_64bit_segments): Likewise.
8923 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
8925 * features/i386/x32-core.c
8926 (create_feature_i386_x32_core): Likewise.
8927 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
8928 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
8929 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
8930 * target-descriptions.c: In generated code, don't pass xml
8933 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8935 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
8936 (print_xml_feature::visit_post): Likewise.
8937 (print_xml_feature::visit): Likewise.
8938 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
8939 (print_xml_feature): Add new class.
8940 * regformats/regdat.sh: Null xmltarget on feature targets.
8941 * target-descriptions.c (struct target_desc): Add xmltarget.
8942 (maintenance_check_tdesc_xml_convert): Add unittest function.
8943 (tdesc_get_features_xml): Add function to get xml.
8944 (maintenance_check_xml_descriptions): Test xml generation.
8945 * xml-tdesc.c (string_read_description_xml): Add function.
8946 * xml-tdesc.h (string_read_description_xml): Add declaration.
8948 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8950 * features/Makefile: Add feature marker to targets with new style
8951 target descriptions.
8952 * regformats/aarch64.dat: Regenerate.
8953 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
8954 * regformats/i386/amd64-avx-linux.dat: Likewise.
8955 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
8956 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
8957 * regformats/i386/amd64-linux.dat: Likewise.
8958 * regformats/i386/amd64-mpx-linux.dat: Likewise.
8959 * regformats/i386/amd64.dat: Likewise.
8960 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
8961 * regformats/i386/i386-avx-linux.dat: Likewise.
8962 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
8963 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
8964 * regformats/i386/i386-linux.dat: Likewise.
8965 * regformats/i386/i386-mmx-linux.dat: Likewise.
8966 * regformats/i386/i386-mpx-linux.dat: Likewise.
8967 * regformats/i386/i386.dat: Likewise.
8968 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
8969 * regformats/i386/x32-avx-linux.dat: Likewise.
8970 * regformats/i386/x32-linux.dat: Likewise.
8971 * regformats/tic6x-c62x-linux.dat: Likewise.
8972 * regformats/tic6x-c64x-linux.dat: Likewise.
8973 * regformats/tic6x-c64xp-linux.dat: Likewise.
8974 * regformats/regdat.sh: Parse feature marker.
8976 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8978 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
8979 (tdesc_osabi_name): Likewise.
8980 * target-descriptions.c (tdesc_architecture_name): Add new
8982 (tdesc_osabi_name): Likewise.
8984 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8986 * common/tdesc.c (tdesc_predefined_type): Move to here.
8987 (tdesc_named_type): Likewise.
8988 (tdesc_create_vector): Likewise.
8989 (tdesc_create_struct): Likewise.
8990 (tdesc_set_struct_size): Likewise.
8991 (tdesc_create_union): Likewise.
8992 (tdesc_create_flags): Likewise.
8993 (tdesc_create_enum): Likewise.
8994 (tdesc_add_field): Likewise.
8995 (tdesc_add_typed_bitfield): Likewise.
8996 (tdesc_add_bitfield): Likewise.
8997 (tdesc_add_flag): Likewise.
8998 (tdesc_add_enum_value): Likewise.
8999 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9000 (struct tdesc_type_vector): Likewise.
9001 (struct tdesc_type_field): Likewise.
9002 (struct tdesc_type_with_fields): Likewise.
9003 (tdesc_create_enum): Add declaration.
9004 (tdesc_add_typed_bitfield): Likewise.
9005 (tdesc_add_enum_value): Likewise.
9006 * target-descriptions.c (tdesc_type_field): Move from here.
9007 (tdesc_type_builtin): Likewise.
9008 (tdesc_type_vector): Likewise.
9009 (tdesc_type_with_fields): Likewise.
9010 (tdesc_predefined_types): Likewise.
9011 (tdesc_named_type): Likewise.
9012 (tdesc_create_vector): Likewise.
9013 (tdesc_create_struct): Likewise.
9014 (tdesc_set_struct_size): Likewise.
9015 (tdesc_create_union): Likewise.
9016 (tdesc_create_flags): Likewise.
9017 (tdesc_create_enum): Likewise.
9018 (tdesc_add_field): Likewise.
9019 (tdesc_add_typed_bitfield): Likewise.
9020 (tdesc_add_bitfield): Likewise.
9021 (tdesc_add_flag): Likewise.
9022 (tdesc_add_enum_value): Likewise.
9023 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9024 (tdesc_add_typed_bitfield): Likewise.
9025 (tdesc_add_enum_value): Likewise.
9027 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9029 * common/tdesc.c (tdesc_feature::accept): Move to here.
9030 (tdesc_feature::operator==): Likewise.
9031 (tdesc_create_reg): Likewise.
9032 * common/tdesc.h (tdesc_type_kind): Likewise.
9033 (struct tdesc_type): Likewise.
9034 (struct tdesc_feature): Likewise.
9035 * regformats/regdat.sh: Create a feature.
9036 * target-descriptions.c (tdesc_type_kind): Move from here.
9037 (tdesc_type): Likewise.
9038 (tdesc_type_up): Likewise.
9039 (tdesc_feature): Likewise.
9040 (tdesc_create_reg): Likewise.
9042 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9044 * Makefile.in: Add arch/tdesc.c
9045 * common/tdesc.c: New file.
9046 * common/tdesc.h (tdesc_element_visitor): Move to here.
9047 (tdesc_element): Likewise.
9048 (tdesc_reg): Likewise.
9049 (tdesc_reg_up): Likewise.
9050 * regformats/regdef.h (reg): Add offset to constructors.
9051 * target-descriptions.c (tdesc_element_visitor): Move from here.
9052 (tdesc_element): Likewise.
9053 (tdesc_reg): Likewise.
9054 (tdesc_reg_up): Likewise.
9056 2018-04-17 Tom Tromey <tom@tromey.com>
9058 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9061 2018-04-17 Tom Tromey <tom@tromey.com>
9063 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9065 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9067 * symtab.c (print_symbol_info): Skip printing filename and line
9068 number when `last' is NULL.
9069 (symtab_symbol_info): Use empty string instead of NULL for first
9070 invocation of print_symbol_info.
9071 (rbreak_command): Pass NULL to `last' parameter of
9074 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9076 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9079 2018-04-16 Pedro Alves <palves@redhat.com>
9081 * MAINTAINERS (sh): Remove.
9082 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9083 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9084 (ALLDEPFILES): Remove sh64-tdep.c.
9085 * NEWS: Mentions that support for SH-5/SH64 is removed.
9086 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9087 (sh*-*-openbsd*): Ditto.
9088 (sh64-*-elf*): Remove.
9090 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9091 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9092 * sh-tdep.c: No longer include "sh64-tdep.h".
9093 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9094 * sh64-tdep.c, sh64-tdep.h: Remove files.
9096 2018-04-16 Pedro Alves <palves@redhat.com>
9098 * MAINTAINERS: Remove m88k.
9099 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9100 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9101 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9102 * NEWS: Mention that support for m88k was removed.
9103 * configure.host (m88*-*-*): Remove support.
9104 * configure.nat (m88k-*-*): Remove support.
9105 * configure.tgt (m88*-*-openbsd*): Remove.
9106 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9108 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9110 * configure.tgt (x86_tobjs): New variable.
9111 (amd64_tobjs, i386_tobjs): Use it.
9113 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9115 * symtab.c (print_symbol_info): Precede the symbol definition by
9116 the line number when available.
9117 * NEWS: Advertise this enhancement.
9119 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9121 * NEWS (New options): announce set/show record btrace cpu.
9122 * btrace.c: Include record-btrace.h.
9123 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9124 the vendor is unknown.
9125 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9126 Maybe overwrite the btrace configuration's cpu.
9127 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9128 (btrace_fetch): Add cpu parameter. Update callers.
9129 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9130 Maybe overwrite the btrace configuration's cpu. Skip enabling
9131 errata workarounds if the vendor is unknown.
9132 * python/py-record-btrace.c: Include record-btrace.h.
9133 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9134 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9135 * record-btrace.c (record_btrace_cpu_state_kind): New.
9136 (record_btrace_cpu): New.
9137 (set_record_btrace_cpu_cmdlist): New.
9138 (record_btrace_get_cpu): New.
9139 (require_btrace_thread, record_btrace_info)
9140 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9141 (cmd_set_record_btrace_cpu_none): New.
9142 (cmd_set_record_btrace_cpu_auto): New.
9143 (cmd_set_record_btrace_cpu): New.
9144 (cmd_show_record_btrace_cpu): New.
9145 (_initialize_record_btrace): Initialize set/show record btrace cpu
9147 * record-btrace.h (record_btrace_get_cpu): New.
9149 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9151 * record.c (set_record_command): Fix typo in message.
9153 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9155 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9157 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9159 * infrun.c (process_event_stop_test): Call
9160 gdbarch_in_indirect_branch_thunk.
9161 * gdbarch.sh (in_indirect_branch_thunk): New.
9162 * gdbarch.c: Regenerated.
9163 * gdbarch.h: Regenerated.
9166 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9167 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9168 (ALLDEPFILES): Add x86-tdep.c.
9169 * arch-utils.h (default_in_indirect_branch_thunk): New.
9170 * arch-utils.c (default_in_indirect_branch_thunk): New.
9171 * i386-tdep: Include x86-tdep.h.
9172 (i386_in_indirect_branch_thunk): New.
9173 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9175 * amd64-tdep: Include x86-tdep.h.
9176 (amd64_in_indirect_branch_thunk): New.
9177 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9179 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9182 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9183 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9184 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9187 2018-04-12 Tom Tromey <tom@tromey.com>
9189 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9190 (rust_evaluate_subexp): Likewise.
9192 2018-04-12 Pedro Alves <palves@redhat.com>
9194 * procfs.c (procfs_detach): Make forward declaration's prototype
9195 match definition's protototype.
9196 (proc_get_LDT_entry): Remove stale do_cleanups call.
9198 2018-04-12 Pedro Alves <palves@redhat.com>
9200 * target.h (target_ops::to_has_exited): Delete.
9201 (target_has_exited): Delete.
9202 * target-delegates.c: Regenerate.
9204 2018-04-11 Pedro Alves <palves@redhat.com>
9206 * target.c (fileio_fh_t::t): Add comment.
9207 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9208 (target_fileio_close): Handle a NULL target.
9209 (invalidate_fileio_fh): New.
9210 (target_close): Call it.
9211 * remote.c (remote_hostio_send_command): No longer check whether
9212 remote_desc is open.
9214 2018-04-11 Pedro Alves <palves@redhat.com>
9216 * target.c (fileio_fh_t): Make it a named struct instead of a
9218 (fileio_fh_t::is_closed): New method.
9219 (DEF_VEC_O (fileio_fh_t)): Remove.
9220 (fileio_fhandles): Now a std::vector.
9221 (is_closed_fileio_fh): Delete.
9222 (acquire_fileio_fd): Adjust. Rename parameters.
9223 (release_fileio_fd): Adjust.
9224 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9225 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9226 (target_fileio_close): Adjust.
9228 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9230 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9233 2018-04-10 Pedro Alves <palves@redhat.com>
9235 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9236 (scoped_finish_thread_state): New class.
9237 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9239 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9240 (fetch_inferior_event, normal_stop): Likewise.
9241 * thread.c (finish_thread_state_cleanup): Delete.
9243 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9244 Pedro Alves <palves@redhat.com>
9246 * value.c: Include "selftest.h" and "common/array-view.h".
9247 (struct range) <operator ==>: New.
9248 (test_ranges_contain): New.
9249 (check_ranges_vector): New.
9250 (test_insert_into_bit_range_vector): New.
9251 (_initialize_values): Register selftests.
9252 * common/array-view.h (operator==, operator!=): New.
9254 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9256 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9258 * inline-frame.c: Include <algorithm>.
9259 (struct inline_state): Add constructor.
9260 (inline_state_s): Remove.
9261 (DEF_VEC_O(inline_state_s)): Remove.
9262 (inline_states): Change type to std::vector.
9263 (find_inline_frame_state): Adjust to std::vector.
9264 (allocate_inline_frame_state): Remove.
9265 (clear_inline_frame_state): Adjust to std::vector.
9266 (skip_inline_frames): Adjust to std::vector.
9268 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9270 * tracepoint.h (struct trace_state_variable): Add constructor.
9271 <name>: Change type to std::string.
9272 * tracepoint.c (tsv_s): Remove.
9273 (DEF_VEC_O(tsv_s)): Remove.
9274 (tvariables): Change to std::vector.
9275 (create_trace_state_variable): Adjust to std::vector.
9276 (find_trace_state_variable): Likewise.
9277 (find_trace_state_variable_by_number): Likewise.
9278 (delete_trace_state_variable): Likewise.
9279 (trace_variable_command): Adjust to std::string.
9280 (delete_trace_variable_command): Likewise.
9281 (tvariables_info_1): Adjust to std::vector.
9282 (save_trace_state_variables): Likewise.
9283 (start_tracing): Likewise.
9284 (merge_uploaded_trace_state_variables): Adjust to std::vector
9286 * target.h (struct target_ops)
9287 <to_download_trace_state_variable>: Pass reference to
9288 trace_state_variable.
9289 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9290 * target-delegates.c: Re-generate.
9291 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9292 (mi_tsv_deleted): Likewise.
9293 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9294 * remote.c (remote_download_trace_state_variable): Change
9295 pointer to reference and adjust.
9296 * make-target-delegates (parse_argtypes): Handle references.
9297 (write_function_header): Likewise.
9298 (munge_type): Likewise.
9300 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9302 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9303 string_view-selftests.c.
9304 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9306 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9307 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9308 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9309 * unittests/basic_string_view/element_access/char/1.cc:
9311 * unittests/basic_string_view/element_access/char/empty.cc:
9313 * unittests/basic_string_view/element_access/char/front_back.cc:
9315 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9316 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9318 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9320 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9322 * unittests/basic_string_view/operations/compare/char/1.cc:
9324 * unittests/basic_string_view/operations/compare/char/13650.cc:
9326 * unittests/basic_string_view/operations/copy/char/1.cc:
9328 * unittests/basic_string_view/operations/data/char/1.cc:
9330 * unittests/basic_string_view/operations/find/char/1.cc:
9332 * unittests/basic_string_view/operations/find/char/2.cc:
9334 * unittests/basic_string_view/operations/find/char/3.cc:
9336 * unittests/basic_string_view/operations/find/char/4.cc:
9338 * unittests/basic_string_view/operations/rfind/char/1.cc:
9340 * unittests/basic_string_view/operations/rfind/char/2.cc:
9342 * unittests/basic_string_view/operations/rfind/char/3.cc:
9344 * unittests/basic_string_view/operations/substr/char/1.cc:
9346 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9347 * unittests/string_view-selftests.c: New file.
9349 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9351 * unittests/basic_string_view/capacity/1.cc: New file.
9352 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9353 * unittests/basic_string_view/cons/char/1.cc: New file.
9354 * unittests/basic_string_view/cons/char/2.cc: New file.
9355 * unittests/basic_string_view/cons/char/3.cc: New file.
9356 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9357 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9358 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9359 * unittests/basic_string_view/element_access/char/1.cc: New file.
9360 * unittests/basic_string_view/element_access/char/2.cc: New file.
9361 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9362 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9363 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9364 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9365 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9366 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9367 * unittests/basic_string_view/include.cc: New file.
9368 * unittests/basic_string_view/inserters/char/1.cc: New file.
9369 * unittests/basic_string_view/inserters/char/2.cc: New file.
9370 * unittests/basic_string_view/inserters/char/3.cc: New file.
9371 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9372 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9373 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9374 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9375 * unittests/basic_string_view/literals/types.cc: New file.
9376 * unittests/basic_string_view/literals/values.cc: New file.
9377 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9378 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9379 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9380 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9381 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9382 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9383 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9384 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9385 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9386 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9387 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9388 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9389 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9390 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9391 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9392 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9393 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9394 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9395 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9396 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9397 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9398 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9399 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9400 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9401 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9402 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9403 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9404 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9405 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9406 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9407 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9408 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9409 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9410 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9411 * unittests/basic_string_view/operators/char/2.cc: New file.
9412 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9413 * unittests/basic_string_view/range_access/char/1.cc: New file.
9414 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9415 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9416 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9417 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9418 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9419 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9420 * unittests/basic_string_view/requirements/typedefs.cc: New file.
9421 * unittests/basic_string_view/typedefs.cc: New file.
9422 * unittests/basic_string_view/types/1.cc: New file.
9424 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9426 * common/gdb_string_view.h: Remove libstdc++ implementation
9427 details, adjust to gdb reality.
9428 * common/gdb_string_view.tcc: Likewise.
9429 * cli/cli-script.c (struct string_view): Remove.
9430 (user_args) <m_args>: Change element type to gdb::string_view.
9431 (user_args::insert_args): Adjust.
9433 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9435 * common/gdb_string_view.h: New file.
9436 * common/gdb_string_view.tcc: New file.
9438 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9440 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9441 * configure: Re-generate.
9443 2018-04-09 Pedro Alves <palves@redhat.com>
9445 * gdbarch.sh: Include "observable.h" instead of "observer.h".
9446 (set_target_gdbarch): Call
9447 gdb::observers::architecture_changed.notify instead of
9448 observer_notify_architecture_changed.
9450 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9452 * tracepoint.c (struct current_traceframe_cleanup): Remove.
9453 (do_restore_current_traceframe_cleanup): Remove.
9454 (restore_current_traceframe_cleanup_dtor): Remove.
9455 (make_cleanup_restore_current_traceframe): Remove.
9456 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
9458 * tracepoint.h (struct scoped_restore_current_traceframe): New.
9459 * infrun.c (fetch_inferior_event): Use
9460 scoped_restore_current_traceframe.
9462 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9464 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
9466 <n_allocated_type_units>: Remove.
9467 <all_type_units>: Change to std::vector.
9468 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9469 to std::vector change.
9470 (dwarf2_per_objfile::get_cutu): Likewise.
9471 (dwarf2_per_objfile::get_tu): Likewise.
9472 (create_signatured_type_table_from_index): Likewise.
9473 (create_signatured_type_table_from_debug_names): Likewise.
9474 (dw2_symtab_iter_next): Likewise.
9475 (dw2_print_stats): Likewise.
9476 (dw2_expand_all_symtabs): Likewise.
9477 (dw2_expand_marked_cus): Likewise.
9478 (dw2_debug_names_iterator::next): Likewise.
9479 (dwarf2_initialize_objfile): Likewise.
9480 (add_signatured_type_cu_to_table): Likewise.
9481 (create_all_type_units): Likewise.
9482 (add_type_unit): Likewise.
9483 (struct tu_abbrev_offset): Add constructor.
9484 (build_type_psymtabs_1): Adjust to std::vector change.
9485 (print_tu_stats): Likewise.
9486 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9487 (write_debug_names): Likewise.
9489 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9491 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
9492 Make an std::vector.
9493 <n_comp_units>: Remove.
9494 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9495 to std::vector change.
9496 (dwarf2_per_objfile::get_cutu): Likewise.
9497 (dwarf2_per_objfile::get_cu): Likewise.
9498 (create_cus_from_index): Likewise.
9499 (create_addrmap_from_index): Likewise.
9500 (create_addrmap_from_aranges): Likewise.
9501 (dwarf2_read_index): Likewise.
9502 (dw2_find_last_source_symtab): Likewise.
9503 (dw2_map_symtabs_matching_filename): Likewise.
9504 (dw2_symtab_iter_next): Likewise.
9505 (dw2_print_stats): Likewise.
9506 (dw2_expand_all_symtabs): Likewise.
9507 (dw2_expand_symtabs_with_fullname): Likewise.
9508 (dw2_expand_marked_cus): Likewise.
9509 (dw2_map_symbol_filenames): Likewise.
9510 (create_cus_from_debug_names): Likewise.
9511 (dwarf2_read_debug_names): Likewise.
9512 (dw2_debug_names_iterator::next): Likewise.
9513 (dwarf2_initialize_objfile): Likewise.
9514 (set_partial_user): Likewise.
9515 (dwarf2_build_psymtabs_hard): Likewise.
9516 (read_comp_units_from_section): Remove arguments, adjust to
9518 (create_all_comp_units): Adjust to std::vector and
9519 read_comp_units_from_section changes.
9520 (dwarf2_find_containing_comp_unit): Adjust to std::vector
9522 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9523 (psyms_seen_size): Likewise.
9524 (write_gdbindex): Likewise.
9525 (write_debug_names): Likewise.
9527 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9529 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
9530 with dwarf2_per_objfile.
9531 (create_cus_from_index): Likewise.
9532 (create_signatured_type_table_from_index): Likewise.
9533 (dwarf2_read_index): Likewise.
9534 (dwarf2_initialize_objfile): Likewise.
9535 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
9536 per_cu rather than get_dwarf2_per_objfile.
9538 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9540 * dwarf2read.h (struct signatured_type): Forward declare.
9541 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
9543 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
9544 (dw2_get_cutu): ...this.
9545 (dwarf2_per_objfile::get_cu): Rename from...
9546 (dw2_get_cu): ...this.
9547 (dwarf2_per_objfile::get_tu): New.
9548 (create_addrmap_from_index): Adjust.
9549 (create_addrmap_from_aranges): Adjust.
9550 (dw2_find_last_source_symtab): Adjust.
9551 (dw2_map_symtabs_matching_filename): Adjust.
9552 (dw2_symtab_iter_next): Adjust.
9553 (dw2_print_stats): Adjust.
9554 (dw2_expand_all_symtabs): Adjust.
9555 (dw2_expand_symtabs_with_fullname): Adjust.
9556 (dw2_expand_marked_cus): Adjust.
9557 (dw_expand_symtabs_matching_file_matcher): Adjust.
9558 (dw2_map_symbol_filenames): Adjust.
9559 (dw2_debug_names_iterator::next): Adjust.
9560 (dwarf2_initialize_objfile): Adjust.
9561 (set_partial_user): Adjust.
9562 (dwarf2_build_psymtabs_hard): Adjust.
9564 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9566 * dwarf2read.c (create_signatured_type_table_from_debug_names):
9567 Remove unused variables.
9568 (dw2_map_symtabs_matching_filename): Likewise.
9569 (dwarf2_record_block_ranges): Likewise.
9570 (dwarf2_read_addr_index): Likewise.
9571 (follow_die_offset): Likewise.
9573 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9575 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
9576 to symbol_file_add_main.
9578 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9581 * mi/mi-console.c (do_fputc_async_safe): New.
9582 (mi_console_file::write_async_safe): New.
9583 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
9584 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
9586 * ui-file.c (ui_file::putstrn): Adjust call to
9587 fputstrn_unfiltered.
9588 * utils.c (printchar): Replace do_fputs and do_fprintf
9589 parameters by do_fputc.
9590 (fputstr_filtered): Adjust call to printchar.
9591 (fputstr_unfiltered): Likewise.
9592 (fputstrn_filtered): Likewise.
9593 (fputstrn_unfiltered): Add do_fputc parameter, pass to
9595 * utils.h (do_fputc_ftype): New typedef.
9596 (fputstrn_unfiltered): Add do_fputc parameter.
9598 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9600 * regformats/i386/i386-avx.dat: Remove.
9602 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9605 * amd64-tdep.c (amd64_none_init_abi): New function.
9606 (amd64_x32_none_init_abi): New function.
9607 (_initialize_amd64_tdep): Register handlers for x86-64 and
9608 x64_32 with GDB_OSABI_NONE.
9609 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
9610 GDB_OSABI_NONE osabi.
9612 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9615 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
9617 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
9618 * osabi.c (gdb_osabi_names): Add "unknown" entry.
9620 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9622 * common/byte-vector.h (char_vector): New type.
9623 * target.h (target_read_alloc): Return
9624 gdb::optional<byte_vector>.
9625 (target_read_stralloc): Return gdb::optional<char_vector>.
9626 (target_get_osdata): Return gdb::optional<char_vector>.
9627 * target.c (target_read_alloc_1): Templatize. Replacement
9628 manual memory management with vector.
9629 (target_read_alloc): Change return type, adjust.
9630 (target_read_stralloc): Change return type, adjust.
9631 (target_get_osdata): Change return type, adjust.
9632 * auxv.c (struct auxv_info) <length>: Remove.
9633 <data>: Change type to gdb::optional<byte_vector>.
9634 (auxv_inferior_data_cleanup): Free auxv_info with delete.
9635 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
9636 (target_auxv_search): Adjust.
9637 (fprint_target_auxv): Adjust.
9638 * avr-tdep.c (avr_io_reg_read_command): Adjust.
9639 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
9640 (linux_make_corefile_notes): Adjust.
9641 * osdata.c (get_osdata): Adjust.
9642 * remote.c (remote_get_threads_with_qxfer): Adjust.
9643 (remote_memory_map): Adjust.
9644 (remote_traceframe_info): Adjust.
9645 (btrace_read_config): Adjust.
9646 (remote_read_btrace): Adjust.
9647 (remote_pid_to_exec_file): Adjust.
9648 * solib-aix.c (solib_aix_get_library_list): Adjust.
9649 * solib-dsbt.c (decode_loadmap): Don't free buf.
9650 (dsbt_get_initial_loadmaps): Adjust.
9651 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
9652 * solib-target.c (solib_target_current_sos): Adjust.
9653 * tracepoint.c (sdata_make_value): Adjust.
9654 * xml-support.c (xinclude_start_include): Adjust.
9655 (xml_fetch_content_from_file): Adjust.
9656 * xml-support.h (xml_fetch_another): Change return type.
9657 (xml_fetch_content_from_file): Change return type.
9658 * xml-syscall.c (xml_init_syscalls_info): Adjust.
9659 * xml-tdesc.c (file_read_description_xml): Adjust.
9660 (fetch_available_features_from_target): Change return type.
9661 (target_fetch_description_xml): Adjust.
9662 (target_read_description_xml): Adjust.
9664 2018-04-06 Tom Tromey <tom@tromey.com>
9666 * value.c (~value): Update.
9667 (struct value) <contents>: Now unique_xmalloc_ptr.
9668 (value_contents_bits_eq, allocate_value_contents)
9669 (value_contents_raw, value_contents_all_raw)
9670 (value_contents_for_printing, value_contents_for_printing_const)
9671 (set_value_enclosing_type): Update.
9673 2018-04-06 Tom Tromey <tom@tromey.com>
9675 * value.c (range_s): Remove typedef, VEC.
9676 (struct range): Add operator<.
9677 (range_lessthan): Remove.
9678 (ranges_contain): Change type.
9680 (struct value) <unavailable, optimized_out>: Now std::vector.
9681 (value_entirely_available)
9682 (value_entirely_covered_by_range_vector)
9683 (value_entirely_unavailable, value_entirely_optimized_out):
9685 (insert_into_bit_range_vector): Change argument type.
9686 (find_first_range_overlap): Likewise.
9687 (struct ranges_and_idx, value_contents_bits_eq)
9688 (require_not_optimized_out, require_available): Update.
9689 (ranges_copy_adjusted): Change argument types.
9690 (value_optimized_out, value_copy, value_fetch_lazy): Update.
9692 2018-04-06 Tom Tromey <tom@tromey.com>
9694 * value.c (~value): Update.
9695 (struct value) <parent>: Now a value_ref_ptr.
9696 (value_parent, set_value_parent, value_address, value_copy):
9699 2018-04-06 Tom Tromey <tom@tromey.com>
9701 * value.c (struct value): Add constructor, destructor, and member
9703 (allocate_value_lazy, value_decref): Update.
9705 2018-04-06 Tom Tromey <tom@tromey.com>
9707 * value.c (struct value) <released, next>: Remove.
9708 (all_values): Now a std::vector.
9709 (allocate_value_lazy): Update.
9710 (value_next): Remove.
9711 (value_mark, value_free_to_mark, release_value)
9712 (value_release_to_mark): Update.
9714 2018-04-06 Tom Tromey <tom@tromey.com>
9716 * value.h (fetch_subexp_value, value_release_to_mark): Update.
9717 (free_value_chain): Remove.
9718 * value.c (free_value_chain): Remove.
9719 (value_release_to_mark): Return a std::vector.
9720 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
9722 (check_condition): Update.
9723 * eval.c (fetch_subexp_value): Change "val_chain" to a
9725 * breakpoint.c (update_watchpoint): Update.
9726 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
9728 2018-04-06 Tom Tromey <tom@tromey.com>
9730 * value.h (free_all_values): Remove.
9731 * value.c (free_all_values): Remove.
9733 2018-04-06 Tom Tromey <tom@tromey.com>
9735 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
9736 (value_history_chain, value_history_count): Remove.
9737 (value_history): New global.
9738 (record_latest_value, access_value_history, show_values)
9739 (preserve_values): Update.
9741 2018-04-06 Tom Tromey <tom@tromey.com>
9743 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
9744 * varobj.c (varobj_set_display_format, varobj_set_value)
9745 (install_default_visualizer, construct_visualizer)
9746 (install_new_value, ~varobj, varobj_get_value_type)
9747 (my_value_of_variable, varobj_editable_p): Update.
9748 * c-varobj.c (c_describe_child, c_value_of_variable)
9749 (cplus_number_of_children, cplus_describe_child): Update.
9750 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
9751 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
9752 (ada_value_of_variable, ada_value_is_changeable_p): Update.
9754 2018-04-06 Tom Tromey <tom@tromey.com>
9756 * printcmd.c (last_examine_address): Change type to
9758 (do_examine, x_command): Update.
9760 2018-04-06 Tom Tromey <tom@tromey.com>
9762 * value.c (release_value): Update.
9763 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
9764 (struct bpstats) <val>: Now a value_ref_ptr.
9765 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9766 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9767 (~watchpoint, print_it_watchpoint, watch_command_1)
9768 (invalidate_bp_value_on_memory_change): Update.
9770 2018-04-06 Tom Tromey <tom@tromey.com>
9772 * varobj.c (varobj_clear_saved_item)
9773 (update_dynamic_varobj_children, install_new_value, ~varobj):
9775 * value.h (value_incref): Move declaration earlier.
9776 (value_decref): Rename from value_free.
9777 (struct value_ref_policy): New.
9778 (value_ref_ptr): New typedef.
9779 (struct value_deleter): Remove.
9780 (gdb_value_up): Remove typedef.
9781 (release_value): Change return type.
9782 (release_value_or_incref): Remove.
9783 * value.c (set_value_parent): Update.
9784 (value_incref): Change return type.
9785 (value_decref): Rename from value_free.
9786 (value_free_to_mark, free_all_values, free_value_chain): Update.
9787 (release_value): Return value_ref_ptr.
9788 (release_value_or_incref): Remove.
9789 (record_latest_value, set_internalvar, clear_internalvar):
9791 * stack.c (info_frame_command): Don't call value_free.
9792 * python/py-value.c (valpy_dealloc, valpy_new)
9793 (value_to_value_object): Update.
9794 * printcmd.c (do_examine): Update.
9795 * opencl-lang.c (lval_func_free_closure): Update.
9796 * mi/mi-main.c (register_changed_p): Don't call value_free.
9797 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
9798 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
9799 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
9801 * guile/scm-value.c (vlscm_free_value_smob)
9802 (vlscm_scm_from_value): Update.
9803 * frame.c (frame_register_unwind, frame_unwind_register_signed)
9804 (frame_unwind_register_unsigned, get_frame_register_bytes)
9805 (put_frame_register_bytes): Don't call value_free.
9806 * findvar.c (address_from_register): Don't call value_free.
9807 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
9808 * dwarf2loc.c (entry_data_value_free_closure)
9809 (value_of_dwarf_reg_entry, free_pieced_value_closure)
9810 (dwarf2_evaluate_loc_desc_full): Update.
9811 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9812 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9813 (~watchpoint, watch_command_1)
9814 (invalidate_bp_value_on_memory_change): Update.
9815 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
9817 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
9820 * warning.m4: Add -Wno-error=deprecated-register.
9821 * configure: Re-generate.
9823 2018-04-05 Tom Tromey <tom@tromey.com>
9825 * linespec.h: Remove include of "vec.h".
9827 2018-04-05 Tom Tromey <tom@tromey.com>
9829 * linespec.c (typep): Remove typedef.
9830 (find_methods, find_superclass_methods): Take a std::vector.
9831 (find_method): Use std::vector.
9833 2018-04-05 Tom Tromey <tom@tromey.com>
9835 * utils.c (compare_strings): Remove.
9836 * utils.h (compare_strings): Remove.
9837 * objc-lang.h (find_imps): Update.
9838 * objc-lang.c (find_methods): Take a std::vector.
9839 (uniquify_strings, find_imps): Likewise.
9840 * linespec.c (find_methods): Take a std::vector.
9841 (decode_objc): Use std::vector.
9842 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
9844 (find_method, find_function_symbols): Use std::vector.
9846 2018-04-05 Tom Tromey <tom@tromey.com>
9848 * completer.c (completion_tracker::completion_tracker): Remove
9850 (completion_tracker::discard_completions): Likewise.
9851 * breakpoint.c (ambiguous_names_p): Remove cast.
9852 * ada-lang.c (_initialize_ada_language): Remove cast.
9853 * utils.h (streq): Update.
9854 (streq_hash): Add new declaration.
9855 * utils.c (streq): Return bool.
9856 (streq_hash): New function.
9858 2018-04-05 Tom Tromey <tom@tromey.com>
9860 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
9861 Remove a string copy.
9863 2018-04-05 Tom Tromey <tom@tromey.com>
9865 * linespec.c (filter_results): Use std::vector.
9866 (decode_line_2, decode_line_full): Update.
9868 2018-04-05 Tom Tromey <tom@tromey.com>
9870 * linespec.c (canonical_to_fullform): Return std::string.
9871 (filter_results): Update.
9872 (struct decode_line_2_item): Add constructor.
9873 <fullform, displayform>: Now std::string.
9874 (decode_line_2_compare_items): Now a std::sort comparator.
9875 (decode_line_2): Update.
9877 2018-04-05 Tom Tromey <tom@tromey.com>
9879 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
9880 (unexpected_linespec_error): Update.
9881 (linespec_parse_basic, parse_linespec): Update.
9883 2018-04-05 Tom Tromey <tom@tromey.com>
9885 * linespec.c (linespec_parse_basic): Reindent.
9887 2018-04-05 Tom Tromey <tom@tromey.com>
9889 * minsyms.h (iterate_over_minimal_symbols): Update.
9890 * minsyms.c (iterate_over_minimal_symbols): Take a
9892 * linespec.c (struct collect_minsyms): Remove.
9893 (compare_msyms): Now a std::sort comparator.
9894 (add_minsym): Add parameters.
9895 (search_minsyms_for_name): Update. Use std::vector.
9897 2018-04-03 Tom Tromey <tom@tromey.com>
9899 * mipsread.c (read_alphacoff_dynamic_symtab): Use
9902 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
9904 * MAINTAINERS (Write After Approval): Add Weimin Pan.
9906 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
9909 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
9910 printing static type.
9912 2018-04-01 Tom Tromey <tom@tromey.com>
9914 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
9915 (rs6000_xfer_shared_libraries): Update.
9917 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9919 * common/gdb_vecs.h (char_ptr): Remove.
9920 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
9922 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9924 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
9926 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
9928 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9930 * tracepoint.h (struct uploaded_tp): Initialize fields.
9931 <actions, step_actions, cmd_strings>: Change type to
9932 std::vector<char *>.
9933 * tracepoint.c (get_uploaded_tp): Allocate with new.
9934 (free_uploaded_tps): Free with delete.
9935 (parse_tracepoint_definition): Adjust to std::vector change.
9936 * breakpoint.c (read_uploaded_action): Likewise.
9937 (create_tracepoint_from_upload): Likewise.
9938 * ctf.c (ctf_write_uploaded_tp): Likewise.
9939 (SET_ARRAY_FIELD): Likewise.
9940 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
9942 2018-03-30 Tom Tromey <tom@tromey.com>
9944 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
9946 (svr4_keep_data_in_core): Update.
9947 (svr4_read_so_list): Update.
9949 2018-03-30 Tom Tromey <tom@tromey.com>
9951 * windows-nat.c (handle_output_debug_string, handle_exception):
9953 * target.h (target_read_string): Update.
9954 * target.c (target_read_string): Change "string" to
9956 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9958 * solib-frv.c (frv_current_sos): Update.
9959 * solib-dsbt.c (dsbt_current_sos): Update.
9960 * solib-darwin.c (darwin_current_sos): Update.
9961 * linux-thread-db.c (inferior_has_bug): Update.
9962 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
9963 Update. Remove alloca.
9964 * ada-lang.c (ada_main_name): Update.
9966 2018-03-30 Tom Tromey <tom@tromey.com>
9968 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
9969 (struct dwo_file_deleter): New.
9970 (dwo_file_up): New typedef.
9971 (open_and_init_dwo_file): Use dwo_file_up.
9972 (free_dwo_file_cleanup): Remove.
9974 2018-03-30 Tom Tromey <tom@tromey.com>
9976 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
9977 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
9979 2018-03-30 Tom Tromey <tom@tromey.com>
9981 * dwarf2read.c (class free_cached_comp_units): New class.
9982 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
9983 (free_cached_comp_units): Remove function.
9985 2018-03-30 Tom Tromey <tom@tromey.com>
9987 * utils.h (make_cleanup_unpush_target): Remove.
9988 * inf-ptrace.c (struct target_unpusher): New.
9989 (target_unpush_up) New typedef.
9990 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
9992 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
9994 2018-03-27 Tom Tromey <tom@tromey.com>
9996 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
9998 2018-03-27 Pedro Alves <palves@redhat.com>
9999 Tom Tromey <tom@tromey.com>
10001 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10002 destructor. Now a class.
10003 (gdb_readline_wrapper_cleanup): Remove function.
10004 (gdb_readline_wrapper): Remove cleanups.
10006 2018-03-27 Tom Tromey <tom@tromey.com>
10008 * typeprint.h (struct type_print_options) <local_typedefs,
10009 global_typedefs>: Remove "struct" keyword.
10010 (class typedef_hash_table): New class.
10011 (recursively_update_typedef_hash, add_template_parameters)
10012 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10013 (find_typedef_in_hash): Don't declare.
10014 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10015 (typedef_hash_table::recursively_update): Rename from
10016 recursively_update_typedef_hash. Now a member.
10017 (typedef_hash_table::add_template_parameters): Rename from
10018 add_template_parameters. Now a member.
10019 (typedef_hash_table::typedef_hash_table): Now a constructor;
10020 rename from create_typedef_hash.
10021 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10022 rename from free_typedef_hash.
10023 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10024 (do_free_global_table): Remove.
10025 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10026 from copy_type_recursive.
10027 (create_global_typedef_table): Remove.
10028 (typedef_hash_table::find_global_typedef): Now a member of
10029 typedef_hash_table.
10030 (typedef_hash_table::find_typedef): Rename from
10031 find_typedef_in_hash; now a member.
10032 (whatis_exp): Update.
10033 * extension.h (struct ext_lang_type_printers): Add constructor and
10035 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10037 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10038 Now a constructor; rename from start_ext_lang_type_printers.
10039 (ext_lang_type_printers): Now a destructor; rename from
10040 free_ext_lang_type_printers.
10041 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10043 (c_type_print_base_struct_union): Update. Remove cleanups.
10045 2018-03-27 Tom Tromey <tom@tromey.com>
10047 * dwarf-index-write.c: Include <cmath>.
10049 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10051 * NEWS: Add entry describing new "set|show varsize-limit" command.
10052 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10054 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10057 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10059 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10060 dwarf-index-write.c
10061 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10062 * dwarf-index-common.c: New file.
10063 * dwarf-index-common.h: New file.
10064 * dwarf-index-write.c: New file.
10065 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10066 (struct dwarf2_section_info): Move from here.
10067 (dwarf2_section_info_def): Likewise.
10068 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10069 (offset_type): Likewise.
10070 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10071 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10072 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10073 (byte_swap): Likewise.
10074 (MAYBE_SWAP): Likewise.
10075 (dwarf2_per_cu_ptr): Likewise.
10076 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10077 (struct tu_stats): Likewise.
10078 (struct dwarf2_per_objfile): Likewise.
10079 (struct dwarf2_per_cu_data): Likewise.
10080 (struct signatured_type): Likewise.
10081 (sig_type_ptr): Likewise.
10082 (DEF_VEC_P (sig_type_ptr)): Likewise.
10083 (INDEX4_SUFFIX): Likewise.
10084 (INDEX5_SUFFIX): Likewise.
10085 (DEBUG_STR_SUFFIX): Likewise.
10086 (dwarf2_read_section): Make non-static.
10087 (mapped_index_string_hash): Move from here.
10088 (dwarf5_djb_hash): Likewise.
10089 (file_write): Likewise.
10090 (class data_buf): Likewise.
10091 (struct symtab_index_entry): Likewise.
10092 (struct mapped_symtab): Likewise.
10093 (find_slot): Likewise.
10094 (hash_expand): Likewise.
10095 (add_index_entry): Likewise.
10096 (uniquify_cu_indices): Likewise.
10097 (class c_str_view): Likewise.
10098 (class c_str_view_hasher): Likewise.
10099 (class vector_hasher): Likewise.
10100 (write_hash_table): Likewise.
10101 (psym_index_map): Likewise.
10102 (struct addrmap_index_data): Likewise.
10103 (add_address_entry): Likewise.
10104 (add_address_entry_worker): Likewise.
10105 (write_address_map): Likewise.
10106 (symbol_kind): Likewise.
10107 (write_psymbols): Likewise.
10108 (struct signatured_type_index_data): Likewise.
10109 (write_one_signatured_type): Likewise.
10110 (recursively_count_psymbols): Likewise.
10111 (recursively_write_psymbols): Likewise.
10112 (class debug_names): Likewise.
10113 (check_dwarf64_offsets): Likewise.
10114 (psyms_seen_size): Likewise.
10115 (write_gdbindex): Likewise.
10116 (write_debug_names): Likewise.
10117 (assert_file_size): Likewise.
10118 (write_psymtabs_to_index): Likewise.
10119 (save_gdb_index_command): Likewise.
10120 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10122 * dwarf2read.h: New file.
10124 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10127 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10128 symbol name if the CU's language stores symbol names in linkage
10130 * language.h (struct language_defn)
10131 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10132 all instances of this struct.
10134 2018-03-26 Tom Tromey <tom@tromey.com>
10136 * stack.c (backtrace_command_1): Remove verbose code.
10138 2018-03-26 Tom Tromey <tom@tromey.com>
10140 * python/py-framefilter.c (py_print_type): Don't catch
10141 exceptions. Return void.
10142 (py_print_value): Likewise.
10143 (py_print_single_arg): Likewise.
10144 (enumerate_args): Don't catch exceptions.
10145 (py_print_args): Likewise.
10146 (py_print_frame): Likewise.
10147 (gdbpy_apply_frame_filter): Catch exceptions here.
10149 2018-03-26 Tom Tromey <tom@tromey.com>
10151 * stack.c (_initialize_stack): Remove trailing newlines from help
10152 text. Add "Usage" line to "backtrace" help.
10154 2018-03-26 Tom Tromey <tom@tromey.com>
10157 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10159 2018-03-26 Tom Tromey <tom@tromey.com>
10161 * python/py-framefilter.c (py_print_single_arg): Return
10162 EXT_LANG_BT_ERROR from catch.
10164 2018-03-26 Tom Tromey <tom@tromey.com>
10166 PR backtrace/15584:
10167 * stack.c (backtrace_command_1): Move some code into no-filters
10170 2018-03-26 Tom Tromey <tom@tromey.com>
10172 * python/py-framefilter.c (throw_quit_or_print_exception): New
10174 (gdbpy_apply_frame_filter): Use it.
10176 2018-03-26 Tom Tromey <tom@tromey.com>
10179 * python/py-framefilter.c (py_print_type, py_print_value)
10180 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10183 2018-03-26 Tom Tromey <tom@tromey.com>
10185 * python/py-framefilter.c (enumerate_args): Use
10186 gdb::unique_xmalloc_ptr.
10188 2018-03-26 Tom Tromey <tom@tromey.com>
10190 * python/py-framefilter.c (py_print_frame): Return
10192 (gdbpy_apply_frame_filter): Update comment.
10193 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10195 <EXT_LANG_BT_NO_FILTERS>: Change value.
10197 2018-03-26 Tom Tromey <tom@tromey.com>
10199 PR backtrace/15582:
10200 * stack.c (backtrace_command): Parse "hide" argument.
10201 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10202 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10205 2018-03-26 Tom Tromey <tom@tromey.com>
10207 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10209 (backtrace_command): Remove "fulltrace", add "flags".
10211 2018-03-26 Tom Tromey <tom@tromey.com>
10213 * stack.c (backtrace_command): Rewrite command line parsing.
10215 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10217 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10219 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10221 * filename-seen-cache.h: Add include guard.
10223 2018-03-26 Keith Seitz <keiths@redhat.com>
10225 * symfile.c (place_section): Remove "struct" from section_addr_info
10227 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10228 "struct" keyword from section_addr_info.
10230 2018-03-26 Alan Hayward <alan.hayward@arm.com>
10232 * regformats/regdef.h (reg): Add constructors.
10234 2018-03-25 Pedro Alves <palves@redhat.com>
10236 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10237 if then/else bodies in var_func_name extraction.
10239 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
10241 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10242 lookup_minimal_symbol() to find symbol entry.
10243 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10245 2018-03-23 Keith Seitz <keiths@redhat.com>
10248 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10249 nested type definitions for C++, too.
10251 2018-03-23 Tom Tromey <tom@tromey.com>
10253 * machoread.c (struct oso_el): Add a constructor. Don't define as
10255 (macho_register_oso): Remove.
10256 (macho_symtab_read): Take a std::vector.
10257 (oso_el_compare_name): Now a std::sort comparator.
10258 (macho_symfile_read_all_oso): Take a std::vector.
10259 (macho_symfile_read): Use std::vector. Remove cleanups.
10261 2018-03-22 Tom Tromey <tom@tromey.com>
10263 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10264 (record_full_goto_bookmark): Use std::string.
10266 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10269 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10272 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10274 * rs6000-tdep.c (store_insn_p): New function.
10275 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10276 and cr_reg to their unshifted values. Use store_insn_p to
10277 match LR saves using either R1 or fdata->alloca_reg. Use
10278 store_insn_p to match CR saves. Set alloca_reg_offset
10279 when alloca_reg and framep are set. Remove lr_reg shift
10280 when assigning to fdata->lr_register.
10282 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10284 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10285 command line args instead of emitting a warning.
10287 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10289 * tracepoint.h (struct static_tracepoint_marker): Initialize
10290 fields, define default constructor, move constructor and move
10291 assignment, disable the rest.
10292 <str_id, extra>: Make std::string.
10293 (release_static_tracepoint_marker): Remove.
10294 (free_current_marker): Remove.
10295 * tracepoint.c (free_current_marker): Remove.
10296 (parse_static_tracepoint_marker_definition): Adjust to
10297 std::string, use new hex2str overload.
10298 (release_static_tracepoint_marker): Remove.
10299 (print_one_static_tracepoint_marker): Get marker by reference
10300 and adjust to std::string.
10301 (info_static_tracepoint_markers_command): Adjust to std::vector
10303 * target.h (static_tracepoint_marker_p): Remove typedef.
10304 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10305 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10307 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10309 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10310 (target_debug_print_std_vector_static_tracepoint_marker): New.
10311 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10313 (target_debug_print_static_tracepoint_marker_p): ... this.
10314 * target-delegates.c: Re-generate.
10315 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10317 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10318 (decode_static_tracepoint_spec): Adjust to std::vector.
10319 (tracepoint_print_one_detail): Adjust to std::string.
10320 (strace_marker_decode_location): Adjust to std::string.
10321 (update_static_tracepoint): Adjust to std::string, remove call
10322 to release_static_tracepoint_marker.
10323 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10324 Adjust to std::vector.
10325 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10326 (remote_static_tracepoint_markers_by_strid): Adjust to
10328 * common/rsp-low.h (hex2str): New overload with explicit count
10330 * common/rsp-low.c (hex2str): New overload with explicit count
10332 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10333 (_initialize_rsp_low_selftests): Add test_hex2str test.
10334 * unittests/tracepoint-selftests.c
10335 (test_parse_static_tracepoint_marker_definition): Adjust to
10338 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10340 * tracepoint.c (parse_static_tracepoint_marker_definition):
10341 Consider case where the definition is followed by more
10343 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10344 tracepoint-selftests.c.
10345 * unittests/tracepoint-selftests.c: New.
10347 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10349 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10352 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10354 * symtab.c (find_pc_sect_line): fixed indentation.
10356 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10358 * symtab.c (find_pc_sect_line): now uses binary search.
10360 2018-03-19 Tom Tromey <tom@tromey.com>
10362 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10363 "IDENT" production.
10365 2018-03-19 Pedro Alves <palves@redhat.com>
10366 Tom Tromey <tom@tromey.com>
10368 * unittests/observable-selftests.c: New file.
10369 * common/observable.h: New file.
10370 * observable.h: New file.
10371 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10372 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10373 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10374 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10375 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10376 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10377 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10378 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10379 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10380 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10381 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10382 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10383 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10384 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10385 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10386 tui/tui-interp.c, valops.c: Update all users.
10387 * tui/tui-hooks.c (tui_bp_created_observer)
10388 (tui_bp_deleted_observer, tui_bp_modified_observer)
10389 (tui_inferior_exit_observer, tui_before_prompt_observer)
10390 (tui_normal_stop_observer, tui_register_changed_observer):
10392 (tui_observers_token): New global.
10393 (attach_or_detach, tui_attach_detach_observers): New functions.
10394 (tui_install_hooks, tui_remove_hooks): Use
10395 tui_attach_detach_observers.
10396 * record-btrace.c (record_btrace_thread_observer): Remove.
10397 (record_btrace_thread_observer_token): New global.
10398 * observer.sh: Remove.
10399 * observer.c: Rename to observable.c.
10400 * observable.c (namespace gdb_observers): Define new objects.
10401 (observer_debug): Move into gdb_observers namespace.
10402 (struct observer, struct observer_list, xalloc_observer_list_node)
10403 (xfree_observer_list_node, generic_observer_attach)
10404 (generic_observer_detach, generic_observer_notify): Remove.
10405 (_initialize_observer): Update.
10406 Don't include observer.inc.
10407 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10408 (clean mostlyclean): Likewise.
10409 (observer.h, observer.inc): Remove targets.
10410 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10411 (COMMON_SFILES): Use observable.c, not observer.c.
10412 * .gitignore: Remove observer.h.
10414 2018-03-18 Tom Tromey <tom@tromey.com>
10416 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10418 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10420 2018-03-17 Tom Tromey <tom@tromey.com>
10422 * auto-load.c (auto_load_objfile_script_1): Use std::string.
10424 2018-03-17 Tom Tromey <tom@tromey.com>
10426 * target.c (class scoped_target_fd): New.
10427 (target_fileio_close_cleanup): Remove.
10428 (target_fileio_read_alloc_1): Use scoped_target_fd.
10430 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
10432 * silent-rules.mk: New.
10433 * Makefile.in: Include silent-rules.mk
10434 (srcdir, VPATH, top_srcdir): Move up.
10435 (COMPILE): Add ECHO_CXX.
10436 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
10437 (init.c): Add ECHO_INIT_C.
10438 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10439 (version.c): Add ECHO_GEN.
10440 (printcmd.o): Add ECHO_CXX.
10441 (target-float.o): Add ECHO_CXX.
10442 (ada-exp.o): Add ECHO_CXX.
10443 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
10444 (insight$(EXEEXT)): Add ECHO_CXXLD.
10445 * gnulib/configure.ac: Add AM_SILENT_RULES.
10446 * gnulib/aclocal.m4: Re-generate.
10447 * gnulib/configure: Re-generate.
10448 * gnulib/import/Makefile.in: Re-generate.
10450 2018-03-16 Tom Tromey <tom@tromey.com>
10452 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
10453 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
10454 * utils.c (do_free_section_addr_info)
10455 (make_cleanup_free_section_addr_info): Remove.
10456 * symfile.h (struct other_sections): Add constructor.
10457 (struct section_addr_info): Remove.
10458 (section_addr_info): New typedef.
10459 (struct sym_fns) <sym_offsets>: Change type of parameter.
10460 (build_section_addr_info_from_objfile)
10461 (relative_addr_info_to_section_offsets, addr_info_make_relative)
10462 (default_symfile_offsets, symbol_file_add)
10463 (symbol_file_add_from_bfd)
10464 (build_section_addr_info_from_section_table): Update.
10465 (alloc_section_addr_info, free_section_addr_info): Don't declare.
10466 * symfile.c (alloc_section_addr_info): Remove.
10467 (build_section_addr_info_from_section_table): Change return type.
10469 (build_section_addr_info_from_bfd)
10470 (build_section_addr_info_from_objfile): Likewise.
10471 (free_section_addr_info): Remove.
10472 (relative_addr_info_to_section_offsets): Change type of "addrs".
10473 (addrs_section_compar): Now a std::sort comparator.
10474 (addrs_section_sort): Change return type.
10475 (addr_info_make_relative): Change type of "addrs". Update.
10476 (default_symfile_offsets, syms_from_objfile_1)
10477 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
10478 (symbol_file_add_separate): Update.
10479 (symbol_file_add): Change type of "addrs". Update.
10480 (add_symbol_file_command): Update. Remove cleanups.
10481 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
10483 * symfile-debug.c (debug_sym_offsets): Change type of "info".
10484 * solib.c (solib_read_symbols): Update.
10485 * objfiles.c (objfile_relocate): Update. Remove cleanups.
10486 * machoread.c (macho_symfile_offsets): Update.
10487 * jit.c (jit_bfd_try_read_symtab): Update.
10489 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
10491 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10492 unittests/utils-selftests.c.
10493 * unittests/utils-selftests.c: New file.
10495 2018-03-14 Tom Tromey <tom@tromey.com>
10498 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
10501 2018-03-14 Tom Tromey <tom@tromey.com>
10504 * printcmd.c (printf_pointer): Allow "-" in format.
10506 2018-03-14 Tom Tromey <tom@tromey.com>
10508 * printcmd.c (_initialize_printcmd): Add usage to printf.
10510 2018-03-14 Yao Qi <qiyao@sourceware.org>
10512 * MAINTAINERS: Update my email address.
10514 2018-03-13 Tom Tromey <tom@tromey.com>
10516 * machoread.c (macho_check_dsym): Change filenamep to a
10518 (macho_symfile_read): Update.
10519 * symfile.c (load_command): Use std::string.
10521 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
10523 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
10524 to error message string.
10525 (riscv_register_name): Use xsnprintf instead of sprintf.
10526 (riscv_insn::fetch_instruction): Use gdb_assert instead of
10528 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
10530 (riscv_push_dummy_call): Likewise.
10532 2018-03-12 Tom Tromey <tom@tromey.com>
10534 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
10535 Use gdb::byte_vector.
10536 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
10538 2018-03-12 Yao Qi <yao.qi@linaro.org>
10540 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
10541 parameter type to readable_regcache.
10542 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
10545 2018-03-11 Tom Tromey <tom@tromey.com>
10547 * dwarf2read.c (struct nextfield): Add initializers.
10548 (struct nextfnfield): Remove.
10549 (struct fnfieldlist): Add initializers. Remove "length" and
10550 "head", use std::vector.
10551 (struct decl_field_list): Remove.
10552 (struct field_info): Add initializers.
10553 <fields, baseclasses>: Now std::vector.
10554 <nbaseclasses, nfnfields, typedef_field_list_count,
10555 nested_types_list_count>: Remove.
10556 (dwarf2_add_field, dwarf2_add_type_defn)
10557 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
10558 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
10559 (process_structure_scope): Update.
10561 2018-03-11 Tom Tromey <tom@tromey.com>
10563 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
10564 for use by std::sort.
10565 (build_type_psymtabs_1): Use std::vector.
10567 2018-03-09 Eli Zaretskii <eliz@gnu.org>
10569 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
10570 and LIBMPFR in the printed configuration.
10572 2018-03-08 Tom Tromey <tom@tromey.com>
10574 * source.c (get_filename_and_charpos): Use scoped_fd.
10575 * nto-procfs.c (procfs_open_1): Use scoped_fd.
10576 (procfs_pidlist): Likewise.
10577 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
10578 (iterate_over_mappings): Likewise.
10580 2018-03-08 Tom Tromey <tom@tromey.com>
10582 * infcall.c (struct call_return_meta_info)
10583 <stack_temporaries_enabled>: Remove.
10584 (get_call_return_value, call_function_by_hand_dummy): Update.
10585 * thread.c (disable_thread_stack_temporaries): Remove.
10586 (enable_thread_stack_temporaries): Remove.
10587 (thread_stack_temporaries_enabled_p): Return bool.
10588 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
10589 (get_last_thread_stack_temporary): Update.
10590 * eval.c (evaluate_subexp): Update.
10591 * gdbthread.h (class enable_thread_stack_temporaries): Now a
10592 class, not a function.
10593 (value_ptr, value_vec): Remove typedefs.
10594 (class thread_info) <stack_temporaries_enabled>: Now bool.
10595 <stack_temporaries>: Now a std::vector.
10596 (thread_stack_temporaries_enabled_p)
10597 (value_in_thread_stack_temporaries): Return bool.
10599 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
10601 * remote.c (putpkt_binary): Fix omitted bytes reporting.
10602 (getpkt_or_notif_sane_1): Likewise.
10604 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10606 * build-id.c (build_id_to_debug_bfd): Use std::string.
10608 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10610 * build-id.c (find_separate_debug_file_by_buildid): Return
10612 * build-id.h (find_separate_debug_file_by_buildid): Return
10614 * coffread.c (coff_symfile_read): Adjust to std::string.
10615 * elfread.c (elf_symfile_read): Adjust to std::string.
10616 * symfile.c (separate_debug_file_exists): Change parameter to
10618 (find_separate_debug_file): Return std::string.
10619 (find_separate_debug_file_by_debuglink): Return std::string.
10620 * symfile.h (find_separate_debug_file_by_debuglink): Return
10623 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10625 * common/xml-utils.c (xml_escape_text): Move code to...
10626 (xml_escape_text_append): ... this new function.
10627 * common/xml-utils.h (xml_escape_text_append): New declaration.
10628 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
10630 (_initialize_xml_utils): register test_xml_escape_text_append as
10633 2018-03-07 Alan Hayward <alan.hayward@arm.com>
10635 * defs.h: Remove MAX_REGISTER_SIZE.
10636 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
10638 * python/py-unwind.c (pyuw_sniffer): Likewise.
10640 2018-03-07 Tom Tromey <tom@tromey.com>
10642 * linux-tdep.c (linux_info_proc): Update.
10643 * target.h (struct target_ops) <to_fileio_readlink>: Return
10645 (target_fileio_readlink): Return optional<string>.
10646 * remote.c (remote_hostio_readlink): Return optional<string>.
10647 * inf-child.c (inf_child_fileio_readlink): Return
10649 * target.c (target_fileio_readlink): Return optional<string>.
10651 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10653 * regcache.c (cooked_read_test): Add riscv to the list of
10654 architectures that have a save_reggroup.
10656 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
10658 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
10659 value is not a dynamic class object.
10661 2018-03-06 Tom Tromey <tom@tromey.com>
10663 * rust-exp.y: Formatting fixes.
10665 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10667 * riscv-tdep.c (riscv_register_name): Remove target description
10669 (riscv_gdbarch_init): Remove target description check.
10671 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10673 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
10675 * riscv-tdep.h: Likewise.
10677 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10679 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
10680 (riscv_pseudo_register_write): Delete.
10681 (riscv_gdbarch_init): Remove all use of pseudo registers.
10683 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10685 * record-btrace.c (btrace_print_lines): Replace cleanup
10686 parameter with RAII equivalents.
10687 (btrace_insn_history): Replace cleanup with RAII equivalents.
10688 * ui-out.h (make_cleanup_ui_out_list_begin_end,
10689 make_cleanup_ui_out_tuple_begin_end): Remove.
10690 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
10691 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
10692 make_cleanup_ui_out_list_begin_end): Remove.
10694 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10696 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
10697 parameter types to std::vector. Use bool.
10698 (record_btrace_wait): Replace VEC(tp_t) with
10699 std::vector<thread_info *>.
10700 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
10702 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10704 * record-btrace.c (record_btrace_disable_callback): Remove.
10705 (struct scoped_btrace_disable): New.
10706 (record_btrace_open): Use scoped_btrace_disable.
10708 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10710 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
10711 reading values from registers.
10713 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10715 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
10718 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10720 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
10721 change parameter type. Use GDB's print functions, and use
10722 core_addr_to_string where appropriate.
10723 (riscv_push_dummy_call): Use core_addr_to_string where
10724 appropriate, update call to riscv_print_arg_location, and reindent
10726 (riscv_return_value): Update call to riscv_print_arg_location.
10728 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10729 Tim Newsome <tim@sifive.com>
10730 Albert Ou <a0u@eecs.berkeley.edu>
10731 Darius Rad <darius@bluespec.com>
10733 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
10734 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
10735 (ALLDEPFILES): Add riscv-tdep.c
10736 * configure.tgt: Add riscv support.
10737 * riscv-tdep.c: New file.
10738 * riscv-tdep.h: New file.
10739 * NEWS: Mention new target.
10740 * MAINTAINERS: Add entry for riscv.
10742 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10744 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
10745 fields within aggregates.
10747 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
10749 * record-btrace.c (btrace_print_lines): Change type of flags to
10750 gdb_disassembly_flags.
10752 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10754 * fbsd-nat.c: Include "inf-ptrace.h".
10755 (USE_SIGTRAP_SIGINFO): Conditionally define.
10756 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
10757 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
10758 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
10760 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
10762 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
10764 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
10765 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
10766 "supports_stopped_by_hw_breakpoint" target methods.
10768 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10770 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
10771 * fbsd-nat.c (debug_fbsd_nat): New variable.
10772 (show_fbsd_nat_debug): New function.
10773 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
10774 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
10776 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10778 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
10779 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
10781 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
10782 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
10785 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10787 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
10788 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
10790 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10792 * charset.c (struct charset_vector): New.
10793 (charsets): Change type to charset_vector.
10794 (find_charset_names): Adjust.
10796 (_initialize_charset): Adjust.
10798 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10800 * progspace.h (struct program_space) <deleted_solibs>: Change
10801 type to std::vector<std::string>.
10802 * progspace.c (clear_program_space_solib_cache): Adjust.
10803 * breakpoint.c (print_solib_event): Adjust.
10804 (check_status_catch_solib): Adjust.
10805 * solib.c (update_solib_list): Adjust.
10806 * ui-out.h (class ui_out) <field_string>: New overload.
10807 * ui-out.c (ui_out::field_string): New overload.
10809 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10811 * progspace.h (struct program_space): Add constructor and
10812 destructor, initialize fields.
10813 (add_program_space): Remove.
10814 * progspace.c (add_program_space): Rename to...
10815 (program_space::program_space): ... this.
10816 (release_program_space): Rename to...
10817 (program_space::~program_space): ... this.
10818 (delete_program_space): Use delete to delete program_space.
10819 (initialize_progspace): Use new to allocate program_space.
10820 * inferior.c (add_inferior_with_spaces): Likewise.
10821 (clone_inferior_command): Likewise.
10822 * infrun.c (follow_fork_inferior): Likewise.
10823 (handle_vfork_child_exec_or_exit): Likewise.
10825 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10827 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
10828 (delim_string_to_char_ptr_vec): Return std::vector of
10829 gdb::unique_xmalloc_ptr.
10830 (dirnames_to_char_ptr_vec_append): Take std::vector of
10831 gdb::unique_xmalloc_ptr.
10832 (dirnames_to_char_ptr_vec): Return std::vector of
10833 gdb::unique_xmalloc_ptr.
10834 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
10835 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
10836 (delim_string_to_char_ptr_vec): Return an std::vector of
10837 gdb::unique_xmalloc_ptr, adjust the code.
10838 (dirnames_to_char_ptr_vec_append): Take an std::vector of
10839 gdb::unique_xmalloc_ptr, adjust the code.
10840 (dirnames_to_char_ptr_vec): Return an std::vector of
10841 gdb::unique_xmalloc_ptr, adjust the code.
10842 * auto-load.c (auto_load_safe_path_vec): Change type to
10843 std::vector of gdb::unique_xmalloc_ptr.
10844 (auto_load_expand_dir_vars): Return an std::vector of
10845 gdb::unique_xmalloc_ptr, adjust the code.
10846 (auto_load_safe_path_vec_update): Adjust.
10847 (filename_is_in_auto_load_safe_path_vec): Adjust.
10848 (auto_load_objfile_script_1): Adjust.
10849 * build-id.c (build_id_to_debug_bfd): Adjust.
10850 * linux-thread-db.c (thread_db_load_search): Adjust.
10851 * source.c (add_path): Adjust.
10853 * symfile.c (find_separate_debug_file): Adjust.
10854 * utils.c (do_free_char_ptr_vec): Remove.
10855 (make_cleanup_free_char_ptr_vec): Remove.
10857 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
10860 * common/pathstuff.c: Conditionally include "<windows.h>".
10862 2018-03-01 Georg Sauthoff <mail@georg.so>
10865 * gcore.in: Quote variables and switch interpreter to bash.
10867 2018-03-01 Tom Tromey <tom@tromey.com>
10869 * dwarf2read.c (alloc_discriminant_info): Fix default_index
10870 assertion. Add assertion for discriminant_index.
10871 (quirk_rust_enum): Use correct base type name in univariant case.
10873 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
10875 * record.c (get_call_history_modifiers): Return a
10876 record_print_flags.
10877 (cmd_record_call_history): Adjust.
10878 * record-btrace.c (record_btrace_call_history): Adjust.
10879 (record_btrace_call_history_range): Adjust.
10880 (record_btrace_call_history_from): Adjust.
10881 * target-debug.h (target_debug_print_record_print_flags): New.
10882 * target-delegates.c: Re-generate.
10883 * target.c (target_call_history): Change flags type.
10884 (target_call_history_from): Likewise.
10885 (target_call_history_range): Likewise.
10886 * target.h (struct target_ops) <target_call_history>: Likewise.
10887 (target_call_history_from): Likewise.
10888 (target_call_history_range): Likewise.
10890 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10891 Simon Marchi <simon.marchi@polymtl.ca>
10893 * common/common-utils.c: Include "sys/stat.h".
10894 (is_regular_file): Move here from "source.c"; change return
10896 * common/common-utils.h (is_regular_file): New prototype.
10897 * common/pathstuff.c (contains_dir_separator): New function.
10898 * common/pathstuff.h (contains_dir_separator): New prototype.
10899 * source.c: Don't include "sys/stat.h".
10900 (is_regular_file): Move to "common/common-utils.c".
10902 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10904 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
10905 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
10906 * auto-load.c: Include "common/pathstuff.h".
10907 * common/common-def.h (current_directory): Move here.
10908 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
10910 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
10912 * common/pathstuff.c: New file.
10913 * common/pathstuff.h: New file.
10914 * compile/compile.c: Include "common/pathstuff.h".
10915 * defs.h (current_directory): Move to "common/common-defs.h".
10916 * dwarf2read.c: Include "common/pathstuff.h".
10917 * exec.c: Likewise.
10918 * guile/scm-safe-call.c: Likewise.
10919 * linux-thread-db.c: Likewise.
10920 * main.c: Likewise.
10921 * nto-tdep.c: Likewise.
10922 * objfiles.c: Likewise.
10923 * source.c: Likewise.
10924 * symtab.c: Likewise.
10925 * utils.c: Include "common/pathstuff.h".
10926 (gdb_realpath): Move to "common/pathstuff.c".
10927 (gdb_realpath_keepfile): Likewise.
10928 (gdb_abspath): Likewise.
10929 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
10930 (gdb_realpath_keepfile): Likewise.
10931 (gdb_abspath): Likewise.
10933 2018-02-28 John Baldwin <jhb@FreeBSD.org>
10935 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
10936 wildcard process pid for super_resume for kernels with a
10939 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
10941 * compile/compile.c (get_args): Add additional comments
10942 explaining function.
10944 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
10945 Tom Tromey <tom@tromey.com>
10947 * target.h (memory_write_request_s): Remove typedef. Don't define
10949 (target_write_memory_blocks): Change argument to std::vector.
10950 (struct memory_write_request): Add constructor.
10951 * target-memory.c (compare_block_starting_address): Return bool.
10952 Change argument types.
10953 (claim_memory): Change arguments to use std::vector.
10954 (split_regular_and_flash_blocks, blocks_to_erase)
10955 (compute_garbled_blocks): Likewise.
10956 (cleanup_request_data, cleanup_write_requests_vector): Remove.
10957 (target_write_memory_blocks): Change argument to std::vector.
10958 * symfile.c (struct load_section_data): Add constructor and
10959 destructor. Use std::vector for "requests".
10960 (struct load_progress_data): Add initializers.
10961 (load_section_callback): Update. Use "new".
10962 (clear_memory_write_data): Remove.
10963 (generic_load): Update.
10965 2018-02-27 Alan Hayward <alan.hayward@arm.com>
10967 * arch/aarch64.h: Use common/tdesc.h.
10969 2018-02-26 Maciej W. Rozycki <macro@mips.com>
10971 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
10972 architecture with a 64-bit ABI.
10974 2018-02-26 Maciej W. Rozycki <macro@mips.com>
10976 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
10977 ahead of target description loading.
10979 2018-02-26 Tom Tromey <tom@tromey.com>
10981 * stack.c (backtrace_command_1): Update.
10982 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
10984 * python/py-framefilter.c (py_print_frame)
10985 (gdbpy_apply_frame_filter): Change type of "flags".
10986 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
10988 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
10989 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
10990 * extension.h (enum frame_filter_flag): Rename from
10991 frame_filter_flags.
10992 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
10993 (apply_ext_lang_frame_filter): Change type of "flags".
10994 * extension.c (apply_ext_lang_frame_filter): Change type of
10996 * extension-priv.h (struct extension_language_ops)
10997 <apply_frame_filter>: Change type of "flags".
10999 2018-02-26 Tom Tromey <tom@tromey.com>
11002 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11003 off-by-one in py_end computation.
11004 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11006 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11009 2018-02-26 Tom Tromey <tom@tromey.com>
11011 * dwarf2read.c (struct variant_field): New.
11012 (struct nextfield) <variant>: New field.
11013 (dwarf2_add_field): Handle DW_TAG_variant_part.
11014 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11015 discriminated union.
11016 (read_structure_type): Handle DW_TAG_variant_part.
11017 (handle_struct_member_die): New function, extracted from
11018 process_structure_scope. Handle DW_TAG_variant.
11019 (process_structure_scope): Handle discriminated unions. Call
11020 handle_struct_member_die.
11022 2018-02-26 Tom Tromey <tom@tromey.com>
11024 * rust-lang.h (rust_last_path_segment): Declare.
11025 * rust-lang.c (rust_last_path_segment): Now public. Change
11027 (struct disr_info): Remove.
11028 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11029 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11030 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11031 (rust_enum_p, rust_enum_variant): New function.
11032 (rust_underscore_fields): Remove "offset" parameter.
11033 (rust_print_enum): New function.
11034 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11035 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11036 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11038 (rust_internal_print_type): New function, from rust_print_type.
11040 (rust_print_type): Call rust_internal_print_type.
11041 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11042 Update enum handling.
11043 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11044 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11045 (rust_union_quirks): New functions.
11046 (process_full_comp_unit, process_full_type_unit): Call
11048 (process_structure_scope): Update rust_unions if necessary.
11050 2018-02-26 Tom Tromey <tom@tromey.com>
11052 * value.h (value_union_variant): Declare.
11053 * valops.c (value_union_variant): New function.
11054 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11055 (struct discriminant_info): New.
11056 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11058 (struct main_type) <flag_discriminated_union>: New field.
11060 2018-02-26 Tom Tromey <tom@tromey.com>
11062 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11063 unittests/unpack-selftests.c.
11064 * unittests/unpack-selftests.c: New file.
11065 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11067 2018-02-26 Yao Qi <yao.qi@linaro.org>
11069 * dwarf2read.c (struct partial_die_info) <read>: New method.
11070 (read_partial_die): Remove the declaration.
11071 (load_partial_dies): Update.
11072 (partial_die_info::partial_die_info):
11073 (read_partial_die): Change it to partial_die_info::read.
11075 2018-02-26 Yao Qi <yao.qi@linaro.org>
11077 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11078 (fixup_partial_die): Remove declaration.
11079 (scan_partial_symbols): Update.
11080 (partial_die_parent_scope): Likewise.
11081 (partial_die_full_name): Likewise.
11082 (fixup_partial_die): Change it to partial_die_info::fixup.
11084 2018-02-26 Yao Qi <yao.qi@linaro.org>
11086 * dwarf2read.c (read_partial_die): Update the declaration.
11087 (load_partial_dies): Caller update.
11088 (read_partial_die): Remove one argument abbrev_len.
11090 2018-02-26 Yao Qi <yao.qi@linaro.org>
11092 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11093 assignment operator.
11094 (load_partial_dies): Use ctor and copy ctor.
11095 (read_partial_die): Update.
11096 (dwarf2_cu::find_partial_die): Use ctor.
11098 2018-02-26 Yao Qi <yao.qi@linaro.org>
11100 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11101 (find_partial_die_in_comp_unit): Change it to
11102 dwarf2_cu::find_partial_die.
11103 (find_partial_die): Update.
11105 2018-02-26 Yao Qi <yao.qi@linaro.org>
11107 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11110 2018-02-26 Yao Qi <yao.qi@linaro.org>
11112 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11114 2018-02-26 Alan Hayward <alan.hayward@arm.com>
11116 * arch/amd64.h: Use common/tdesc.h.
11117 * arch/i386.c: Likewise.
11118 * arch/i386.h: Likewise.
11119 * arch/tic6x.c: Likewise.
11120 * arch/tdesc.h: Move file from here...
11121 * common/tdesc.h: ...to here.
11122 * features/aarch64-core.c: Regenerate.
11123 * features/aarch64-fpu.c: Regenerate.
11124 * features/i386/32bit-avx.c: Regenerate.
11125 * features/i386/32bit-avx512.c: Regenerate.
11126 * features/i386/32bit-core.c: Regenerate.
11127 * features/i386/32bit-linux.c: Regenerate.
11128 * features/i386/32bit-mpx.c: Regenerate.
11129 * features/i386/32bit-pkeys.c: Regenerate.
11130 * features/i386/32bit-sse.c: Regenerate.
11131 * features/i386/64bit-avx.c: Regenerate.
11132 * features/i386/64bit-avx512.c: Regenerate.
11133 * features/i386/64bit-core.c: Regenerate.
11134 * features/i386/64bit-linux.c: Regenerate.
11135 * features/i386/64bit-mpx.c: Regenerate.
11136 * features/i386/64bit-pkeys.c: Regenerate.
11137 * features/i386/64bit-segments.c: Regenerate.
11138 * features/i386/64bit-sse.c: Regenerate.
11139 * features/i386/x32-core.c: Regenerate.
11140 * features/tic6x-c6xp.c: Regenerate.
11141 * features/tic6x-core.c: Regenerate.
11142 * features/tic6x-gp.c: Regenerate.
11143 * target-descriptions.c: Use common/tdesc.h.
11144 * target-descriptions.h: Likewise.
11146 2018-02-24 Tom Tromey <tom@tromey.com>
11148 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11149 (try_thread_db_load_from_dir, thread_db_load_search): Use
11151 (info_auto_load_libthread_db_compare): Return bool. Change
11153 (info_auto_load_libthread_db): Use std::vector, std::string.
11156 2018-02-24 Tom Tromey <tom@tromey.com>
11158 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11160 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11162 * gdbarch.c: Rebuild.
11163 * gdbarch.h: Rebuild.
11164 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11165 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11166 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11169 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11171 * gdbtypes.h (sect_offset): Change type to uint64_t.
11172 (sect_offset_str): New function.
11173 * dwarf2read.c (create_addrmap_from_aranges): Use
11175 (error_check_comp_unit_head): Likewise.
11176 (create_debug_type_hash_table): Likewise.
11177 (read_cutu_die_from_dwo): Likewise.
11178 (init_cutu_and_read_dies): Likewise.
11179 (init_cutu_and_read_dies_no_follow): Likewise.
11180 (process_psymtab_comp_unit_reader): Likewise.
11181 (partial_die_parent_scope): Likewise.
11182 (peek_die_abbrev): Likewise.
11183 (process_queue): Likewise.
11184 (dwarf2_physname): Likewise.
11185 (read_namespace_alias): Likewise.
11186 (read_import_statement): Likewise.
11187 (create_dwo_cu_reader): Likewise.
11188 (create_cus_hash_table): Likewise.
11189 (lookup_dwo_cutu): Likewise.
11190 (inherit_abstract_dies): Likewise.
11191 (read_func_scope): Likewise.
11192 (read_call_site_scope): Likewise.
11193 (dwarf2_add_member_fn): Likewise.
11194 (read_common_block): Likewise.
11195 (read_module_type): Likewise.
11196 (read_typedef): Likewise.
11197 (read_subrange_type): Likewise.
11198 (load_partial_dies): Likewise.
11199 (read_partial_die): Likewise.
11200 (find_partial_die): Likewise.
11201 (read_str_index): Likewise.
11202 (dwarf2_string_attr): Likewise.
11203 (build_error_marker_type): Likewise.
11204 (lookup_die_type): Likewise.
11205 (dump_die_shallow): Likewise.
11206 (follow_die_ref): Likewise.
11207 (dwarf2_fetch_die_loc_sect_off): Likewise.
11208 (dwarf2_fetch_constant_bytes): Likewise.
11209 (follow_die_sig): Likewise.
11210 (get_signatured_type): Likewise.
11211 (get_DW_AT_signature_type): Likewise.
11212 (dwarf2_find_containing_comp_unit): Likewise.
11213 (set_die_type): Likewise.
11215 2018-02-21 John Baldwin <jhb@FreeBSD.org>
11217 * arch/aarch64.c: Include "common-defs.h".
11218 * arch/amd64.c: Likewise.
11219 * arch/i386.c: Likewise.
11221 2018-02-21 Tom Tromey <tom@tromey.com>
11223 * value.h: (extract_field_op): Update.
11224 * eval.c (extract_field_op): Return a const char *.
11225 * expression.h (parse_expression_for_completion): Update.
11226 * completer.c (complete_expression): Update.
11227 (add_struct_fields): Make fieldname const.
11228 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11229 (mark_completion_tag, parse_exp_in_context_1): Update.
11230 (parse_expression_for_completion): Change "name" to
11231 unique_xmalloc_ptr*.
11233 2018-02-21 Tom Tromey <tom@tromey.com>
11235 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11237 2018-02-21 Yao Qi <yao.qi@linaro.org>
11239 * avr-tdep.c (avr_read_pc): Change parameter type to
11241 * gdbarch.sh (read_pc): Likewise.
11242 * gdbarch.c: Re-generated.
11243 * gdbarch.h: Re-generated.
11244 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11246 * ia64-tdep.c (ia64_read_pc): Likewise.
11247 * mips-tdep.c (mips_read_pc): Likewise.
11248 * spu-tdep.c (spu_read_pc): Likewise.
11250 2018-02-21 Yao Qi <yao.qi@linaro.org>
11252 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11253 * regcache-dump.c: New file.
11254 * regcache.c: Move register_dump to regcache-dump.c.
11255 (maintenance_print_registers): Likewise.
11256 (maintenance_print_raw_registers): Likewise.
11257 (maintenance_print_cooked_registers): Likewise.
11258 (maintenance_print_register_groups): Likewise.
11259 (maintenance_print_remote_registers): Likewise.
11260 (_initialize_regcache): Likewise.
11261 * regcache.h (register_dump): Moved from regcache.c.
11263 2018-02-21 Yao Qi <yao.qi@linaro.org>
11265 * regcache.c (regcache::regcache): Update.
11266 (regcache::invalidate): Move it to detached_regcache::invalidate.
11267 (get_thread_arch_aspace_regcache): Update.
11268 (regcache::raw_update): Update.
11269 (regcache::cooked_read): Remove some code.
11270 (regcache::cooked_read_value): Likewise.
11271 (regcache::raw_write): Remove assert on m_readonly_p.
11272 (regcache::raw_supply_integer): Move it to
11273 detached_regcache::raw_supply_integer.
11274 (regcache::raw_supply_zeroed): Likewise.
11275 * regcache.h (detached_regcache) <raw_supply_integer>: New
11277 <raw_supply_zeroed, invalidate>: Likewise.
11278 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11279 <invalidate>: Likewise.
11280 <m_readonly_p>: Removed.
11282 2018-02-21 Yao Qi <yao.qi@linaro.org>
11284 * infcmd.c (get_return_value): Let stop_regs point to
11285 get_current_regcache.
11286 * regcache.c (regcache::regcache): Remove.
11287 (register_dump_reg_buffer): New class.
11288 (regcache_print): Adjust.
11289 * regcache.h (regcache): Remove constructors.
11291 2018-02-21 Yao Qi <yao.qi@linaro.org>
11293 * regcache.c (class register_dump): New class.
11294 (register_dump_regcache, register_dump_none): New class.
11295 (register_dump_remote, register_dump_groups): New class.
11296 (regcache_print): Update.
11297 * regcache.h (regcache_dump_what): Move it to regcache.c.
11298 (regcache) <dump>: Remove.
11300 2018-02-21 Yao Qi <yao.qi@linaro.org>
11302 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11304 (jit_unwind_reg_set_impl): Call raw_supply.
11305 (jit_frame_sniffer): Use reg_buffer_rw.
11306 * record-full.c (record_full_core_regbuf): Change its type.
11307 (record_full_core_open_1): Use reg_buffer_rw.
11308 (record_full_close): Likewise.
11309 (record_full_core_fetch_registers): Use regcache->raw_supply.
11310 (record_full_core_store_registers): Likewise.
11311 * regcache.c (regcache::get_register_status): Move it to
11313 (regcache_raw_set_cached_value): Remove.
11314 (regcache::raw_set_cached_value): Remove.
11315 (regcache::raw_write): Call raw_supply.
11316 (regcache::raw_supply): Move it to reg_buffer_rw.
11317 * regcache.h (regcache_raw_set_cached_value): Remove.
11318 (reg_buffer_rw): New class.
11320 2018-02-21 Yao Qi <yao.qi@linaro.org>
11322 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11323 readonly_detached_regcache.
11324 (dummy_frame_prev_register): Use regcache->cooked_read.
11325 * frame.c (frame_save_as_regcache): Change return type.
11326 (frame_pop): Update.
11327 * frame.h (frame_save_as_regcache): Update declaration.
11328 * inferior.h (get_infcall_suspend_state_regcache): Update
11330 * infrun.c (infcall_suspend_state) <registers>: use
11331 readonly_detached_regcache.
11332 (save_infcall_suspend_state): Don't use regcache_dup.
11333 (get_infcall_suspend_state_regcache): Change return type.
11334 * linux-fork.c (struct fork_info) <savedregs>: Change to
11335 readonly_detached_regcache.
11337 (fork_save_infrun_state): Don't use regcache_dup.
11338 (info_checkpoints_command): Adjust.
11339 * mi/mi-main.c (register_changed_p): Update declaration.
11340 (mi_cmd_data_list_changed_registers): Use
11341 readonly_detached_regcache.
11342 (register_changed_p): Change parameter type to
11343 readonly_detached_regcache.
11344 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11345 readonly_detached_regcache.
11346 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11347 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11349 (regcache::save): Move it to reg_buffer.
11350 (regcache::restore): Change parameter type.
11351 (regcache_dup): Remove.
11352 * regcache.h (reg_buffer) <save>: New method.
11353 (readonly_detached_regcache): New class.
11354 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11355 readonly_detached_regcache.
11356 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11358 2018-02-21 Yao Qi <yao.qi@linaro.org>
11360 * frame.c (frame_save_as_regcache): Use regcache method save.
11361 (frame_pop): Use regcache method restore.
11362 * infrun.c (restore_infcall_suspend_state): Likewise.
11363 * linux-fork.c (fork_load_infrun_state): Likewise.
11364 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11366 * regcache.c (regcache_save): Remove.
11367 (regcache::restore): More asserts.
11368 (regcache_cpy): Remove.
11369 * regcache.h (regcache_save): Remove the declaration.
11370 (regcache::restore): Move from private to public.
11371 Remove the friend declaration of regcache_cpy.
11372 (regcache_cpy): Remove declaration.
11374 2018-02-21 Yao Qi <yao.qi@linaro.org>
11376 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11377 parameter type to 'readable_regcache *'.
11378 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11379 * arm-tdep.c (arm_neon_quad_read): Likewise.
11380 (arm_pseudo_read): Likewise.
11381 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11382 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11383 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11384 * gdbarch.c: Re-generated.
11385 * gdbarch.h: Re-generated.
11386 * gdbarch.sh (pseudo_register_read): Change parameter type to
11387 'readable_regcache *'.
11388 (pseudo_register_read_value): Likewise.
11389 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11390 (h8300_pseudo_register_read): Likewise.
11391 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11392 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11393 (i386_pseudo_register_read_into_value): Likewise.
11394 (i386_pseudo_register_read_value): Likewise.
11395 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11397 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11398 * m32c-tdep.c (m32c_raw_read): Likewise.
11399 (m32c_read_flg): Likewise.
11400 (m32c_banked_register): Likewise.
11401 (m32c_banked_read): Likewise.
11402 (m32c_sb_read): Likewise.
11403 (m32c_part_read): Likewise.
11404 (m32c_cat_read): Likewise.
11405 (m32c_r3r2r1r0_read): Likewise.
11406 (m32c_pseudo_register_read): Likewise.
11407 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11408 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11409 (mep_pseudo_cr64_read): Likewise.
11410 (mep_pseudo_register_read): Likewise.
11411 * mips-tdep.c (mips_pseudo_register_read): Likewise.
11412 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11413 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11414 * regcache.c (regcache::raw_read): Move it to readable_regcache.
11415 (regcache::cooked_read): Likewise.
11416 (regcache::cooked_read_value): Likewise.
11417 (regcache_cooked_read_signed):
11418 (regcache::cooked_read): Likewise.
11419 * regcache.h (readable_regcache): New class.
11420 (regcache): Inherit readable_regcache. Move some methods to
11422 * rl78-tdep.c (rl78_pseudo_register_read): Change
11423 parameter type to 'readable_regcache *'.
11424 * rs6000-tdep.c (do_regcache_raw_read): Remove.
11425 (e500_pseudo_register_read): Change parameter type to
11426 'readable_regcache *'.
11427 (dfp_pseudo_register_read): Likewise.
11428 (vsx_pseudo_register_read): Likewise.
11429 (efpr_pseudo_register_read): Likewise.
11430 * s390-tdep.c (s390_pseudo_register_read): Likewise.
11431 * sh-tdep.c (sh_pseudo_register_read): Likewise.
11432 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
11433 (sh64_pseudo_register_read): Likewise.
11434 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11435 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11436 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11437 (spu_pseudo_register_read): Likewise.
11438 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11439 (xtensa_pseudo_register_read): Likewise.
11441 2018-02-21 Yao Qi <yao.qi@linaro.org>
11443 * regcache.c (regcache::regcache): Call reg_buffer ctor.
11444 (regcache::arch): Move it to reg_buffer::arch.
11445 (regcache::register_buffer): Likewise.
11446 (regcache::assert_regnum): Likewise.
11447 (regcache::num_raw_registers): Likewise.
11448 * regcache.h (reg_buffer): New class.
11449 (regcache): Inherit reg_buffer.
11451 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
11453 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
11454 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
11456 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
11458 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
11460 2018-02-19 Alan Hayward <alan.hayward@arm.com>
11462 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
11463 (SFILES): Remove common/*.c files.
11464 (COMMON_OBS): Remove some *.o files built from common/*.c files.
11465 * common/common.host: Add common reference.
11466 * configure.ac: Likewise.
11467 * configure: Regenerate.
11469 2018-02-16 Yao Qi <yao.qi@linaro.org>
11471 * block.c (block_namespace_info): Inherit allocate_on_obstack.
11472 (block_initialize_namespace): Use new.
11473 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
11474 (dwarf2_free_objfile): Use delete.
11475 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11476 (copy_type_recursive): Use new.
11477 * gdb_obstack.h (allocate_on_obstack): New.
11479 2018-02-15 Yao Qi <yao.qi@linaro.org>
11482 * inferior.c (exit_inferior_1): Reset inf->control.
11484 2018-02-15 Joel Brobecker <brobecker@adacore.com>
11486 * ada-lang.c (ada_to_fixed_value_create): Delete advance
11489 2018-02-14 Pedro Alves <palves@redhat.com>
11491 * frame-unwind.c (frame_unwind_try_unwinder): Always call
11492 frame_cleanup_after_sniffer on exception.
11494 2018-02-14 Tom Tromey <tom@tromey.com>
11496 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
11498 (solib_bfd_open): Make pathname const.
11499 * solib.c (solib_bfd_open): Make pathname const.
11500 * solib-spu.c (spu_bfd_fopen): Make name const.
11501 (spu_bfd_open): Make pathname const.
11502 * solib-darwin.c (darwin_bfd_open): Make pathname const.
11503 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
11505 2018-02-14 Tom Tromey <tom@tromey.com>
11507 * symfile.c (symfile_bfd_open): Update.
11508 * source.h (openp, source_full_path_of, find_and_open_source):
11509 Change argument type to unique_xmalloc_ptr.
11510 * source.c (openp): Take a unique_xmalloc_ptr.
11511 (source_full_path_of, find_and_open_source): Likewise.
11512 (open_source_file, symtab_to_fullname): Update.
11513 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
11514 unique_xmalloc_ptr.
11515 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
11516 (exec_file_find): Update.
11517 * psymtab.c (psymtab_to_fullname): Update.
11518 * nto-tdep.h (nto_find_and_open_solib): Update.
11519 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
11520 unique_xmalloc_ptr.
11521 * exec.c (exec_file_attach): Update.
11522 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
11523 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
11525 2018-02-14 Tom Tromey <tom@tromey.com>
11527 * solib.c: Include source.h.
11528 * nto-tdep.c: Include source.h.
11529 * mi/mi-cmd-env.c: Include source.h.
11530 * infcmd.c: Include source.h.
11531 * exec.c: Include source.h.
11532 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
11533 (add_path, directory_switch, source_path, init_source_path): Move
11535 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
11536 (add_path, directory_switch, source_path, init_source_path):
11539 2018-02-14 Tom Tromey <tom@tromey.com>
11541 * solist.h (exec_file_find, solib_find): Return
11542 unique_xmalloc_ptr.
11543 (solib_bfd_fopen): Take a const char *.
11544 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
11545 (exec_file_find, solib_find): Likewise.
11546 (solib_bfd_fopen): Do not take ownership of "pathname".
11547 (solib_bfd_open): Use unique_xmalloc_ptr.
11548 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
11549 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
11550 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
11551 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
11553 2018-02-14 Joel Brobecker <brobecker@adacore.com>
11555 * ada-lang.c (name_match_type_from_name): Remove reference to
11556 ada_name_for_lookup in function's documentation.
11557 * ada-lang.h (ada_name_for_lookup): Delete declaration.
11559 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11561 * defs.h (enum openp_flags): New enum.
11562 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
11563 Move to enum openp_flags.
11564 (openp_flags): New enum flags.
11565 (openp): Change parameter type to openp_flags.
11566 * source.c (openp): Change parameter type to openp_flags.
11567 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
11568 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
11570 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11572 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
11575 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
11577 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
11579 (class dwarf2_queue_guard): ...the destructor of this new class.
11580 (dw2_do_instantiate_symtab): Create instance of the new class
11581 dwarf2_queue_guard, remove cleanup.
11583 2018-02-09 Tom Tromey <tom@tromey.com>
11585 * source.c (find_source_lines): Don't reference past the end of
11588 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11590 * remote.c (remote_btrace_maybe_reopen): Change error message.
11591 * btrace.c (btrace_enable): Likewise.
11592 (parse_xml_btrace): Likewise.
11593 (parse_xml_btrace_conf): Likewise.
11595 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11597 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
11598 (linux_enable_pt, linux_enable_bts): Call
11599 diagnose_perf_event_open_fail.
11601 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11603 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
11604 Remove parameter and change return type. Update callers. Move it.
11605 (linux_enable_bts, linux_enable_pt): Improve error message.
11606 (linux_enable_pt): Remove zero buffer size check.
11607 (linux_enable_btrace): Improve error messages. Remove NULL return
11610 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11612 * btrace.c (btrace_enable): Remove target_supports_btrace call.
11613 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
11614 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
11615 (linux_supports_pt, linux_supports_btrace): Remove.
11616 (linux_enable_bts): Call cpu_supports_bts.
11617 * nat/linux-btrace.h (linux_supports_btrace): Remove.
11618 * remote.c (remote_supports_btrace): Remove.
11619 (init_remote_ops): Remove remote_supports_btrace.
11620 * target-delegates.c: Regenerated.
11621 * target.c (target_supports_btrace): Remove.
11622 * target.h (target_ops) <to_supports_btrace>: Remove
11623 (target_supports_btrace): Remove.
11624 * x86-linux-nat.c (x86_linux_create_target): Remove
11625 linux_supports_btrace.
11627 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11629 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
11631 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
11632 exception and use message in own exception.
11634 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11636 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
11637 (perf_event_pt_event_type): Use gdb_file_up.
11638 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
11639 scoped_fd, and scoped_mmap.
11641 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11643 * common/scoped_mmap.h: New.
11644 * unittests/scoped_mmap-selftest.c: New.
11645 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11646 unittests/scoped_mmap-selftest.c.
11648 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11650 * common/scoped_fd.h: New.
11651 * unittests/scoped_fd-selftest.c: New.
11652 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11653 unittests/scoped_fd-selftest.c.
11655 2018-02-09 Tom Tromey <tom@tromey.com>
11657 * auto-load.c (auto_load_section_scripts): Use
11658 gdb::unique_xmalloc_ptr.
11660 2018-02-09 Tom Tromey <tom@tromey.com>
11662 * auto-load.c (execute_script_contents): Use std::string.
11664 2018-02-09 Joel Brobecker <brobecker@adacore.com>
11666 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
11667 Python function, rather than a new command.
11669 2018-02-08 Tom Tromey <tom@tromey.com>
11671 * solib.c (solib_find_1): Use std::string.
11672 (solib_bfd_fopen): Use unique_xmalloc_ptr.
11674 2018-02-08 Tom Tromey <tom@tromey.com>
11676 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
11678 2018-02-08 Tom Tromey <tom@tromey.com>
11680 * source.c (find_source_lines): Use gdb::def_vector.
11682 2018-02-08 Tom Tromey <tom@tromey.com>
11684 * macrocmd.c (struct temporary_macro_definition): New.
11685 (macro_define_command): Use temporary_macro_definition. Remove
11687 (free_macro_definition_ptr): Remove.
11689 2018-02-08 Tom Tromey <tom@tromey.com>
11691 * macroexp.c (maybe_expand): Use std::string.
11693 2018-02-08 Tom Tromey <tom@tromey.com>
11695 * macroexp.c (struct macro_buffer): Add initializers for some
11697 (init_buffer, init_shared_buffer, free_buffer)
11698 (free_buffer_return_text): Remove.
11699 (macro_buffer): New constructors.
11700 (~macro_buffer): New destructor.
11701 (macro_buffer::set_shared): New method.
11702 (macro_buffer::resize_buffer, macro_buffer::appendc)
11703 (macro_buffer::appendmem): Now methods, not free functions.
11704 (set_token, append_tokens_without_splicing, stringify)
11705 (macro_stringify): Update.
11706 (gather_arguments): Change return type. Remove argc_p argument,
11707 add args_ptr argument. Use std::vector.
11708 (substitute_args): Remove argc argument. Accept std::vector.
11709 (expand): Update. Use std::vector.
11710 (scan, macro_expand, macro_expand_next): Update.
11712 2018-02-08 Tom Tromey <tom@tromey.com>
11714 * symtab.c (default_collect_symbol_completion_matches_break_on):
11715 Use unique_xmalloc_ptr.
11716 * macroscope.h: (sal_macro_scope, user_macro_scope)
11717 (default_macro_scope): Return unique_xmalloc_ptr.
11718 * macroscope.c (sal_macro_scope, user_macro_scope)
11719 (default_macro_scope): Return unique_xmalloc_ptr.
11720 * macroexp.h (macro_expand, macro_expand_once): Return
11721 unique_xmalloc_ptr.
11722 * macroexp.c (macro_expand, macro_expand_once): Return
11723 unique_xmalloc_ptr.
11724 * macrocmd.c (macro_expand_command, macro_expand_once_command)
11725 (info_macro_command, info_macros_command): Use
11726 unique_xmalloc_ptr.
11727 * compile/compile-c-support.c (write_macro_definitions): Use
11728 unique_xmalloc_ptr.
11729 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
11731 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
11733 * value.c (value_static_field): Assign field type instead of
11734 containing type when returning an optimized out value.
11736 2018-02-06 Yao Qi <yao.qi@linaro.org>
11738 * ft32-tdep.c (ft32_read_pc): Remove.
11739 (ft32_write_pc): Remove.
11740 (ft32_gdbarch_init): Update.
11741 * m32r-tdep.c (m32r_read_pc): Remove.
11742 (m32r_gdbarch_init): Update.
11743 * mep-tdep.c (mep_read_pc): Remove.
11744 (mep_gdbarch_init): Update.
11745 * microblaze-tdep.c (microblaze_write_pc): Remove.
11746 (microblaze_gdbarch_init): Update.
11747 * mn10300-tdep.c (mn10300_read_pc): Remove.
11748 (mn10300_write_pc): Remove.
11749 (mn10300_gdbarch_init): Update.
11750 * moxie-tdep.c (moxie_read_pc): Remove.
11751 (moxie_write_pc): Remove.
11752 (moxie_gdbarch_init): Update.
11754 2018-02-06 Yao Qi <yao.qi@linaro.org>
11756 * expprint.c (print_subexp_standard): Handle
11757 OP_F77_UNDETERMINED_ARGLIST.
11758 (dump_subexp_body_standard): Likewise.
11760 2018-02-05 Alan Hayward <alan.hayward@arm.com>
11762 * target-descriptions.c (tdesc_element_visitor) Add empty
11764 (tdesc_type): Move make_gdb_type from here.
11765 (tdesc_type_builtin): Likewise.
11766 (tdesc_type_vector): Likewise.
11767 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
11768 (make_gdb_type_struct): Move from tdesc_type_with_fields.
11769 (make_gdb_type_union): Likewise.
11770 (make_gdb_type_flags): Likewise.
11771 (make_gdb_type_enum): Likewise.
11772 (make_gdb_type): New function.
11773 (tdesc_register_type): Use static make_gdb_type.
11775 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
11777 * infcmd.c (default_print_one_register_info): Align natural-format
11778 column values consistently one under another.
11779 (pad_to_column): New function.
11781 2018-02-05 Joel Brobecker <brobecker@adacore.com>
11783 * dwarf2read.c (dwarf2_physname): Move commment.
11785 2018-02-01 Leszek Swirski <leszeks@google.com>
11787 * varobj.c (varobj_formatted_print_options): Allow recursive
11788 pretty printing if pretty printing is enabled.
11790 2018-02-01 Leszek Swirski <leszeks@google.com>
11792 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
11793 names after a structop as a filename.
11795 2018-02-01 Yao Qi <yao.qi@linaro.org>
11797 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
11798 (arm_record_coproc_data_proc): Likewise.
11800 2018-02-01 Yao Qi <yao.qi@linaro.org>
11802 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
11804 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
11806 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
11807 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
11809 2018-01-31 Pedro Alves <palves@redhat.com>
11811 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
11812 * inflow.c (child_terminal_save_inferior): Wrap reference to
11813 tcgetpgrp in HAVE_TERMIOS_H.
11814 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
11816 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
11817 always iterate over all inferiors.
11818 (gdbsim_cntrl_c): Adjust.
11819 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
11821 2018-01-31 Joel Brobecker <brobecker@adacore.com>
11823 * gdbtypes.c (lookup_array_range_type): Make sure the array's
11824 index type is objfile-owned if the element type is as well.
11826 2018-01-31 Joel Brobecker <brobecker@adacore.com>
11830 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
11832 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
11833 "features/s390x-linux64.c".
11834 (_initialize_s390_linux_tdep): Remove initialization of tdescs
11835 s390_linux32 and s390x_linux64.
11836 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
11838 * s390-tdep.c: Include "features/s390-linux32.c" and
11839 "features/s390x-linux64.c".
11840 (s390_tdesc_valid): Add check for tdesc_has_registers.
11841 (s390_gdbarch_init): Make sure there is always a valid tdesc.
11842 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
11843 tdesc_s390x_linux64.
11844 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
11845 tdesc_s390x_linux64 to...
11846 * s390-tdep.h: ...here.
11848 2018-01-30 Pedro Alves <palves@redhat.com>
11851 * config.in, configure: Regenerate.
11852 * configure.ac: Check for getpgid.
11853 * go32-nat.c (go32_pass_ctrlc): New.
11854 (go32_target): Install it.
11855 * inf-child.c (inf_child_target): Install
11856 child_terminal_save_inferior, child_pass_ctrlc and
11858 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
11859 (inf_ptrace_target): No longer install it.
11860 * infcmd.c (interrupt_target_1): Adjust.
11861 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
11862 (child_interrupt): Declare.
11863 (inferior::terminal_state): New.
11864 * inflow.c (struct terminal_info): Update comments.
11865 (inferior_process_group): Delete.
11866 (terminal_is_ours): Delete.
11867 (gdb_tty_state): New.
11868 (child_terminal_init): Adjust.
11869 (is_gdb_terminal, sharing_input_terminal_1)
11870 (sharing_input_terminal): New functions.
11871 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
11872 Set the process's actual process group in the foreground if
11873 possible. Handle is_ours_for_output/is_ours distinction. Don't
11874 mark terminal as the inferior's if not sharing GDB's terminal.
11875 Don't check attach_flag.
11876 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
11877 pass down a target_terminal_state.
11878 (child_terminal_save_inferior): New, factored out from ...
11879 (child_terminal_ours_1): ... this. Handle
11880 target_terminal_state::is_ours_for_output.
11881 (child_interrupt, child_pass_ctrlc): New.
11882 (inflow_inferior_exit): Clear the inferior's terminal_state.
11883 (copy_terminal_info): Copy the inferior's terminal state.
11884 (_initialize_inflow): Remove reference to terminal_is_ours.
11885 * inflow.h (inferior_process_group): Delete.
11886 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
11887 * procfs.c (procfs_target): Don't install procfs_interrupt.
11888 (procfs_interrupt): Delete.
11889 * remote.c (remote_serial_quit_handler): Adjust.
11890 (remote_interrupt): Remove ptid parameter. Adjust.
11891 * target-delegates.c: Regenerate.
11892 * target.c: Include "terminal.h".
11893 (target_terminal::terminal_state): Rename to ...
11894 (target_terminal::m_terminal_state): ... this.
11895 (target_terminal::init): Adjust.
11896 (target_terminal::inferior): Adjust to per-inferior
11898 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
11899 (target_terminal::ours, target_terminal::ours_for_output): Use
11900 target_terminal_is_ours_kind.
11901 (target_interrupt): Remove ptid parameter. Adjust.
11902 (default_target_pass_ctrlc): Adjust.
11903 * target.h (target_ops::to_terminal_save_inferior): New field.
11904 (target_ops::to_interrupt): Remove ptid_t parameter.
11905 (target_interrupt): Remove ptid_t parameter. Update comment.
11906 (target_pass_ctrlc): Update comment.
11907 * target/target.h (target_terminal_state): New scoped enum,
11908 factored out of ...
11909 (target_terminal::terminal_state): ... here.
11910 (target_terminal::inferior): Update comments.
11911 (target_terminal::restore_inferior): New.
11912 (target_terminal::is_inferior, target_terminal::is_ours)
11913 (target_terminal::is_ours_for_output): Adjust.
11914 (target_terminal::scoped_restore_terminal_state): Adjust to
11915 rename, and call restore_inferior() instead of inferior().
11916 (target_terminal::scoped_restore_terminal_state::m_state): Change
11918 (target_terminal::terminal_state): Rename to ...
11919 (target_terminal::m_terminal_state): ... this and change type.
11921 2018-01-30 Pedro Alves <palves@redhat.com>
11923 * linux-nat.c (wait_for_signal): New function.
11924 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
11926 (async_terminal_is_ours)
11927 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
11928 (linux_nat_add_target): Don't override
11929 to_terminal_inferior/to_terminal_ours.
11931 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
11933 * remote.c (remote_follow_fork): Don't call "detach_inferior".
11935 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
11937 * dwarf2read.c (free_dwo_files): Add forward-declaration.
11938 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
11939 dwarf2_per_objfile_free here.
11940 (dwarf2_per_objfile_free): Remove.
11941 (_initialize_dwarf2_read): Don't register
11942 dwarf2_per_objfile_free as a registry cleanup.
11944 2018-01-27 Eli Zaretskii <eliz@gnu.org>
11946 Avoid compilation errors in MinGW native builds
11948 The error is triggered by including python-internal.h, and the
11951 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
11952 from build-gnulib/import/math.h:27,
11953 from d:/usr/Python26/include/pyport.h:235,
11954 from d:/usr/Python26/include/Python.h:58,
11955 from python/python-internal.h:94,
11956 from python/py-arch.c:24:
11957 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
11961 This happens because Python headers define 'hypot' to expand t
11962 '_hypot' in the Windows builds.
11963 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
11964 'hypoth'. This avoids a compilation error.
11966 2018-01-26 Alan Hayward <alan.hayward@arm.com>
11968 * MAINTAINERS (Write After Approval): Fix ordering.
11970 2018-01-26 Alan Hayward <alan.hayward@arm.com>
11972 * MAINTAINERS (Write After Approval): Add Alan Hayward.
11974 2018-01-26 Alan Modra <amodra@gmail.com>
11976 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
11977 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
11978 Remove nop. Make const. Comment.
11979 (powerpc32_plt_stub_so_2): New.
11980 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
11981 Correct count. Update uses.
11982 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
11983 Move common code reading PLT entry word. Correct
11984 powerpc32_plt_stub PLT address calculation.
11985 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
11986 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
11987 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
11988 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
11989 (ppc64_standard_linkage8): Likewise.
11990 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
11991 Correct insns description.
11992 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
11994 2018-01-24 Pedro Alves <palves@redhat.com>
11996 GCC PR libstdc++/83906
11997 * gdbtypes.c (operator==(const dynamic_prop &,
11998 const dynamic_prop &)): New.
11999 (operator==(const range_bounds &, const range_bounds &)): New.
12000 (check_types_equal): Use them instead of memcmp.
12001 * gdbtypes.h (operator==(const dynamic_prop &,
12002 const dynamic_prop &)): Declare.
12003 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12004 (operator==(const range_bounds &, const range_bounds &)): Declare.
12005 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12007 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12009 * s390-linux-tdep.c (s390_record_address_mask)
12010 (s390_record_calc_disp_common, s390_record_calc_disp)
12011 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12012 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12013 (s390_process_record): Move to s390-tdep.c.
12014 (s390_linux_init_abi_any): Adjust.
12015 * s390-tdep.c (s390_record_address_mask)
12016 (s390_record_calc_disp_common, s390_record_calc_disp)
12017 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12018 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12019 (s390_process_record): Moved from s390-linux-tdep.c
12020 (s390_gdbarch_init): Adjust.
12022 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12024 * s390-linux-nat.c (s390-tdep.h): New include.
12025 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12026 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12027 (ALLDEPFILES): Add s390-tdep.c.
12028 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12029 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12030 * s390-tdep.h: ...this. New file.
12031 * s390-linux-tdep.c (s390-tdep.h): New include.
12032 (_initialize_s390_tdep): Rename to...
12033 (_initialize_s390_linux_tdep): ...this and adjust.
12034 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12035 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12037 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12038 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12039 (s390_is_partial_instruction, s390_software_single_step)
12040 (is_non_branch_ril, s390_displaced_step_copy_insn)
12041 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12042 (s390_prologue_data, s390_addr, s390_store, s390_load)
12043 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12044 (s390_register_call_saved, s390_guess_tracepoint_registers)
12045 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12046 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12047 (s390_pseudo_register_name, s390_pseudo_register_type)
12048 (s390_pseudo_register_read, s390_pseudo_register_write)
12049 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12050 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12051 (s390_addr_bits_remove, s390_address_class_type_flags)
12052 (s390_address_class_type_flags_to_name)
12053 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12054 (s390_function_arg_float, s390_function_arg_vector)
12055 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12056 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12057 (s390_frame_align, s390_register_return_value, s390_return_value)
12058 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12059 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12060 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12061 (s390_trad_frame_prev_register, s390_unwind_cache)
12062 (s390_prologue_frame_unwind_cache)
12063 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12064 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12065 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12066 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12067 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12068 (s390_frame_base_address, s390_local_base_address)
12069 (s390_frame_base, s390_gcc_target_options)
12070 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12071 (s390_validate_reg_range, s390_tdesc_valid)
12072 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12073 * s390-tdep.c: ...this. New file.
12075 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12077 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12078 (s390_process_record, s390_gdbarch_tdep_alloc)
12079 (s390_linux_init_abi_any): Use/set new hook.
12081 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12083 * s390-linux-tdep.c (osabi.h): New include.
12084 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12085 (s390_linux_init_abi_any): New functions.
12086 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12088 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12090 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12091 tdesc_has_registers check
12093 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12095 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12096 (s390_validate_reg_range): New macro.
12097 (s390_gdbarch_init): Adjust.
12099 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12101 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12102 (s390_gdbarch_tdep_alloc): Adjust.
12103 (s390_gdbarch_init): Adjust.
12105 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12107 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12108 <have_tdb>: Change type to bool.
12109 (s390_gdbarch_tdep_alloc): Adjust.
12110 (s390_gdbarch_init): Adjust.
12112 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12114 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12115 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12116 (s390_gdbarch_tdep_alloc): New function.
12117 (s390_gdbarch_init): Allocate tdep at start and use its fields
12118 instead of separate variables.
12120 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12122 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12123 when looking for cached gdbarch and add comment for remaining.
12125 2018-01-22 Pedro Alves <palves@redhat.com>
12126 Sergio Durigan Junior <sergiodj@redhat.com>
12128 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12131 2018-01-22 Maciej W. Rozycki <macro@mips.com>
12133 * MAINTAINERS: Update my company e-mail address.
12135 2018-01-22 Yao Qi <yao.qi@linaro.org>
12137 * regcache.c (cooked_write_test): New function.
12138 (_initialize_regcache): Register the test.
12140 2018-01-22 Yao Qi <yao.qi@linaro.org>
12142 * ia64-tdep.c (ia64_pseudo_register_read): Call
12143 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12144 * m32c-tdep.c (m32c_cat_read): Likewise.
12145 (m32c_r3r2r1r0_read): Likewise.
12146 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12147 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12149 2018-01-22 Yao Qi <yao.qi@linaro.org>
12151 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12152 method raw_read instead of regcache_raw_read.
12153 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12154 * arm-tdep.c (arm_neon_quad_read): Likewise.
12155 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12156 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12157 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12158 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12159 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12160 (i386_pseudo_register_read_into_value): Likewise.
12161 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12162 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12163 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12164 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12165 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12166 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12167 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12168 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12169 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12171 2018-01-22 Yao Qi <yao.qi@linaro.org>
12173 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12174 * configure.tgt: Remove target mt.
12175 * mt-tdep.c: Remove.
12176 * regcache.c (cooked_read_test): Remove the check for mt.
12178 2018-01-22 Yao Qi <yao.qi@linaro.org>
12180 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12181 instead of gdbarch_pseudo_register_read_value.
12183 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12185 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12188 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12190 * linespec.c (create_sals_line_offset): Remove code that preserved
12191 the symtab_and_line's line number.
12193 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12195 * varobj.c (varobj_create): Don't set valid_block when creating a
12198 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12200 * varobj.c (varobj_create): Remove out of date comment.
12202 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12205 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12206 updating innermost block.
12207 * parse.c (innermost_block_tracker::update): Take extra type
12208 parameter, and check types match before updating innermost block.
12209 (write_dollar_variable): Update innermost block for registers.
12210 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12211 (innermost_block_tracker::innermost_block_tracker): Initialise
12213 (innermost_block_tracker::reset): Take type parameter.
12214 (innermost_block_tracker::update): Take type parameter, and pass
12215 type through as needed.
12216 (innermost_block_tracker::m_types): New member.
12217 * varobj.c (varobj_create): Pass type when reseting innermost
12220 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12222 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12223 * ada-lang.c (resolve_subexp): Likewise.
12224 * breakpoint.c (set_breakpoint_condition) Likewise.
12225 (watch_command_1) Likewise.
12226 * c-exp.y (variable): Likewise.
12227 * d-exp.y (PrimaryExpression): Likewise.
12228 * f-exp.y (variable): Likewise.
12229 * go-exp.y (variable): Likewise.
12230 * m2-exp.y (variable): Likewise.
12231 * objfiles.c (objfile::~objfile): Likewise.
12232 * p-exp.y (variable): Likewise.
12233 * parse.c (innermost_block): Change type.
12234 * parser-defs.h (class innermost_block_tracker): New.
12235 (innermost_block): Change to innermost_block_tracker.
12236 * printcmd.c (display_command): Switch to innermost_block API.
12237 (do_one_display): Likewise.
12238 * rust-exp.y (do_one_display): Likewise.
12239 * symfile.c (clear_symtab_users): Likewise.
12240 * varobj.c (varobj_create): Switch to innermost_block API, replace
12241 use of innermost_block with block stored on varobj object.
12243 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12245 * expression.h (innermost_block): Remove declaration.
12246 * varobj.c: Add 'parser-defs.h' include.
12248 2018-01-19 Tom Tromey <tom@tromey.com>
12250 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12251 symbols in the static and global blocks.
12253 2018-01-19 James Clarke <jrtc27@jrtc27.com>
12255 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12256 gdb_ptrace.h, and move including gdb_wait.h ...
12257 * nat/linux-ptrace.h: ... to here.
12259 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12261 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12262 inf_ptrace_detach_success.
12263 (inf_ptrace_detach_success): Add inferior parameter, use it
12264 instead of inferior_ptid, pass it to detach_inferior.
12265 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12267 * inferior.c (detach_inferior): Add overload that takes an
12269 * inferior.h (detach_inferior): Likewise.
12270 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12271 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12272 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12274 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12276 * target.h (struct target_ops) <to_detach>: Add inferior
12278 (target_detach): Likewise.
12279 * target.c (dispose_inferior): Pass inferior down.
12280 (target_detach): Pass inferior down. Assert that it is equal to
12281 the current inferior.
12282 * aix-thread.c (aix_thread_detach): Pass inferior down.
12283 * corefile.c (core_file_command): Pass current_inferior() down.
12284 * corelow.c (core_detach): Add inferior parameter.
12285 * darwin-nat.c (darwin_detach): Likewise.
12286 * gnu-nat.c (gnu_detach): Likewise.
12287 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12288 * infcmd.c (detach_command): Pass current_inferior() down to
12290 * infrun.c (follow_fork_inferior): Pass parent_inf to
12292 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12294 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12295 * linux-thread-db.c (thread_db_detach): Likewise.
12296 * nto-procfs.c (procfs_detach): Likewise.
12297 * procfs.c (procfs_detach): Likewise.
12298 * record.c (record_detach): Likewise.
12299 * record.h (struct inferior): Forward-declare.
12300 (record_detach): Add inferior parameter.
12301 * remote-sim.c (gdbsim_detach): Likewise.
12302 * remote.c (remote_detach_1): Likewise.
12303 (remote_detach): Likewise.
12304 (extended_remote_detach): Likewise.
12305 * sol-thread.c (sol_thread_detach): Likewise.
12306 * target-debug.h (target_debug_print_inferior_p): New macro.
12307 * target-delegates.c: Re-generate.
12308 * top.c (kill_or_detach): Pass inferior down to target_detach.
12309 * windows-nat.c (windows_detach): Add inferior parameter.
12311 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12313 * target.h (struct target_ops) <to_detach>: Remove args
12315 (target_detach): Likewise.
12316 * target.c (dispose_inferior): Adjust.
12317 (target_detach): Remove args parameter, adjust.
12318 * aix-thread.c (aix_thread_detach): Adjust.
12319 * corefile.c (core_file_command): Adjust.
12320 * corelow.c (core_detach): Adjust.
12321 * darwin-nat.c (darwin_detach): Adjust.
12322 * gnu-nat.c (gnu_detach): Adjust.
12323 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12324 * infcmd.c (detach_command): Adjust
12325 * infrun.c (follow_fork_inferior): Adjust.
12326 (handle_vfork_child_exec_or_exit): Adjust.
12327 * linux-fork.c (linux_fork_detach): Remove args parameter.
12328 * linux-fork.h (linux_fork_detach): Likewise.
12329 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12330 * linux-thread-db.c (thread_db_detach): Likewise.
12331 * nto-procfs.c (procfs_detach): Likewise.
12332 * procfs.c (procfs_detach): Likewise.
12333 (do_detach): Remove signo parameter.
12334 * record.c (record_detach): Remove args parameter.
12335 * record.h (record_detach): Likewise.
12336 * remote-sim.c (gdbsim_detach): Likewise.
12337 * remote.c (remote_detach_1): Likewise.
12338 (remote_detach): Likewise.
12339 (extended_remote_detach): Likewise.
12340 * sol-thread.c (sol_thread_detach): Likewise.
12341 * target-delegates.c: Re-generate.
12342 * top.c (struct qt_args) <args>: Remove field.
12343 (kill_or_detach): Don't pass args.
12344 (quit_force): Don't set args.
12345 * windows-nat.c (windows_detach): Remove args parameter.
12347 2018-01-19 Yao Qi <yao.qi@linaro.org>
12349 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12350 (arm_linux_init_abi): Install it.
12352 2018-01-19 Yao Qi <yao.qi@linaro.org>
12354 * osabi.c (gdb_osabi_names): Extend the regexp for
12355 arm-linux-gnueabihf.
12357 2018-01-18 Yao Qi <yao.qi@linaro.org>
12359 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12361 (abbrev_table::add_abbrev): Update.
12362 (abbrev_table::lookup_abbrev): Update.
12364 2018-01-18 Yao Qi <yao.qi@linaro.org>
12366 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12368 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12370 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12373 2018-01-17 Tom Tromey <tom@tromey.com>
12375 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12377 2018-01-17 Tom Tromey <tom@tromey.com>
12379 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12380 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12381 (create_array_type_with_stride): Update.
12382 * dwarf2read.c (set_die_type): Update.
12384 2018-01-17 Tom Tromey <tom@tromey.com>
12386 * dwarf2read.c (delayed_method_info): Remove typedef.
12387 (dwarf2_cu::method_info): Now a std::vector.
12388 (add_to_method_list): Update.
12389 (free_delayed_list): Remove.
12390 (compute_delayed_physnames): Update.
12391 (process_full_comp_unit, process_full_type_unit): Clear the method
12392 list. Remove cleanups.
12393 (psymtab_include_file_name): Add name_holder parameter. Use
12394 unique_xmalloc_ptr.
12395 (dwarf_decode_lines): Update.
12397 2018-01-17 Tom Tromey <tom@tromey.com>
12398 Simon Marchi <simon.marchi@ericsson.com>
12400 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12401 (dwarf2_per_objfile::free_cached_comp_units)
12402 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12403 (init_cutu_and_read_dies_no_follow): Update.
12404 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12405 (dwarf2_cu::~dwarf2_cu): New.
12406 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12407 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12409 2018-01-17 Tom Tromey <tom@tromey.com>
12410 Simon Marchi <simon.marchi@ericsson.com>
12412 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12413 (struct die_reader_specs) <abbrev_table>: New member.
12414 (struct abbrev_table): Add constructor.
12415 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12416 <abbrev_obstack>: Now an auto_obstack.
12417 (abbrev_table_up): New typedef.
12418 (init_cu_die_reader): Add abbrev_table parameter.
12419 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12420 Add result_dwo_abbrev_table.
12421 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12422 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12424 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12426 (skip_children): Update.
12427 (abbrev_table::alloc_abbrev): Rename from
12428 abbrev_table_alloc_abbrev.
12429 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
12430 (abbrev_table::lookup_abbrev): Rename from
12431 abbrev_table_lookup_abbrev.
12432 (abbrev_table_read_table): Return abbrev_table_up.
12433 (abbrev_table_free, abbrev_table_free_cleanup)
12434 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
12435 (load_partial_dies): Update.
12437 2018-01-17 Tom Tromey <tom@tromey.com>
12439 * dwarf2read.c (dwarf2_compute_name): Update comment.
12440 (read_func_scope, read_variable): Update.
12441 (new_symbol): Remove.
12442 (new_symbol_full): Rename to new_symbol.
12444 2018-01-17 Mike Gulick <mgulick@mathworks.com>
12447 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
12448 a warning instead of throwing an error, set section size to 0 and return
12450 * gdb_bfd.h (gdb_bfd_map_section): Update description.
12452 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12454 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
12456 (linux_ptrace_attach_fail_reason_string): Likewise.
12457 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
12459 (linux_ptrace_attach_fail_reason_string): Likewise.
12460 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
12462 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12464 * linux-nat.c (linux_nat_attach): Remove xstrdup.
12466 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
12469 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
12470 checking for fs_base/gs_base fields in struct user_regs_struct.
12471 * configure: Regenerate.
12473 2018-01-17 Yao Qi <yao.qi@linaro.org>
12475 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12477 (aarch64_linux_init_abi): Install it to gdbarch hook
12478 gcc_target_options.
12480 2018-01-15 Pedro Alves <palves@redhat.com>
12482 * common/signals-state-save-restore.c
12483 (save_original_signals_state): Fix typos.
12485 2017-01-12 Tom Tromey <tom@tromey.com>
12486 Sergio Durigan Junior <sergiodj@redhat.com>
12488 * Makefile.in (install-only): Install gdb-add-index.
12490 2018-01-12 John Baldwin <jhb@FreeBSD.org>
12492 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
12494 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12496 * infrun.c (keep_going_pass_signal): Clear step-over info when
12497 insert_breakpoints fails.
12499 2018-01-11 Pedro Alves <palves@redhat.com>
12502 * infrun.c (resume): Rename to ...
12503 (resume_1): ... this.
12504 (resume): Reimplement as wrapper around resume_1.
12506 2018-01-11 Pedro Alves <palves@redhat.com>
12509 * remote.c (remote_parse_stop_reply): Default to the last-set
12510 general thread instead of to 'magic_null_ptid'.
12512 2018-01-10 Pedro Alves <palves@redhat.com>
12514 * language.h (language_get_symbol_name_matcher): Rename ...
12515 (get_symbol_name_matcher): ... this.
12516 * language.c (language_get_symbol_name_matcher): Ditto.
12517 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
12520 2018-01-10 Pedro Alves <palves@redhat.com>
12524 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
12525 Adjust to use language_get_symbol_name_matcher instead of
12526 language_defn::la_get_symbol_name_matcher.
12527 * language.c (language_get_symbol_name_matcher): If in Ada mode
12528 and the lookup name is a verbatim match, return Ada's matcher.
12529 * language.h (language_get_symbol_name_matcher): Adjust comment.
12530 (ada_lookup_name_info::verbatim_p):: New method.
12532 2018-01-10 Pedro Alves <palves@redhat.com>
12535 * ada-lang.c (ada_collect_symbol_completion_matches): If the
12536 minsym's language is language_auto or language_cplus, pass down
12537 language_ada instead.
12538 * symtab.c (compare_symbol_name): Don't frob symbol language here.
12540 2018-01-10 Pedro Alves <palves@redhat.com>
12543 * minsyms.c (linkage_name_str): New function.
12544 (iterate_over_minimal_symbols): Use it.
12546 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12548 * NEWS: Document that 'info proc' now works on FreeBSD.
12550 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12552 * configure.ac: Check for kinfo_getfile in libutil.
12553 * configure: Regenerate.
12554 * config.in: Regenerate.
12555 * fbsd-nat.c: Include "fbsd-tdep.h".
12556 (fbsd_fetch_cmdline): New.
12557 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
12558 rather than calling error.
12559 (fbsd_info_proc): New.
12560 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
12561 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
12562 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
12564 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12566 * fbsd-nat.c (struct free_deleter): Remove.
12567 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
12569 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12571 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
12572 NULL for an empty pathname.
12574 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12576 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
12577 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
12578 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12579 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12580 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
12581 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
12582 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
12583 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
12584 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
12585 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
12586 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
12587 (fbsd_core_fetch_timeval, fbsd_print_sigset)
12588 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
12589 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
12590 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
12592 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
12594 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
12595 (gnu_xfer_auxv): New function.
12596 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
12597 TARGET_OBJECT_AUXV.
12599 2018-01-08 Yao Qi <yao.qi@linaro.org>
12600 Simon Marchi <simon.marchi@ericsson.com>
12602 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
12604 (COMMON_OBS): Remove selftest.o.
12605 * configure.ac: Append selftest-arch.c and common/selftest.c to
12606 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
12607 * configure: Re-generated.
12608 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
12610 (maintenance_info_selftests): Likewise.
12612 2018-01-08 Xavier Roirand <roirand@adacore.com>
12614 * ada-valprint.c (val_print_packed_array_elements): Use
12615 proper number of elements when printing an array indexed
12616 by an enumeration type.
12618 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12620 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
12621 (dw2_get_file_names_reader): Adjust.
12622 (lookup_dwo_signatured_type): Adjust.
12623 (lookup_dwp_signatured_type): Adjust.
12624 (lookup_signatured_type): Adjust.
12625 (create_type_unit_group): Adjust.
12626 (get_type_unit_group): Adjust.
12627 (process_psymtab_comp_unit_reader): Adjust.
12628 (build_type_psymtabs_reader): Adjust.
12629 (scan_partial_symbols): Adjust.
12630 (add_partial_symbol): Adjust.
12631 (add_partial_subprogram): Adjust.
12632 (peek_die_abbrev): Adjust.
12633 (fixup_go_packaging): Adjust.
12634 (process_imported_unit_die): Adjust.
12635 (dwarf2_compute_name): Adjust.
12636 (dwarf2_physname): Adjust.
12637 (read_import_statement): Adjust.
12638 (handle_DW_AT_stmt_list): Adjust.
12639 (read_file_scope): Adjust.
12640 (read_func_scope): Adjust.
12641 (read_lexical_block_scope): Adjust.
12642 (read_call_site_scope): Adjust.
12643 (read_variable): Adjust.
12644 (dwarf2_rnglists_process): Adjust.
12645 (dwarf2_ranges_process): Adjust.
12646 (dwarf2_ranges_read): Adjust.
12647 (dwarf2_get_pc_bounds): Adjust.
12648 (dwarf2_record_block_ranges): Adjust.
12649 (dwarf2_add_field): Adjust.
12650 (dwarf2_add_member_fn): Adjust.
12651 (read_structure_type): Adjust.
12652 (process_structure_scope): Adjust.
12653 (read_enumeration_type): Adjust.
12654 (read_array_type): Adjust.
12655 (mark_common_block_symbol_computed): Adjust.
12656 (read_common_block): Adjust.
12657 (read_namespace_type): Adjust.
12658 (read_namespace): Adjust.
12659 (read_module_type): Adjust.
12660 (read_tag_pointer_type): Adjust.
12661 (read_tag_ptr_to_member_type): Adjust.
12662 (read_tag_string_type): Adjust.
12663 (read_subroutine_type): Adjust.
12664 (read_typedef): Adjust.
12665 (read_base_type): Adjust.
12666 (attr_to_dynamic_prop): Adjust.
12667 (read_subrange_type): Adjust.
12668 (read_unspecified_type): Adjust.
12669 (dwarf2_read_abbrevs): Adjust.
12670 (load_partial_dies): Adjust.
12671 (read_partial_die): Adjust.
12672 (find_partial_die): Adjust.
12673 (guess_partial_die_structure_name): Adjust.
12674 (fixup_partial_die): Adjust.
12675 (read_attribute_value): Adjust.
12676 (read_addr_index): Adjust.
12677 (read_addr_index_from_leb128): Adjust.
12678 (read_str_index): Adjust.
12679 (dwarf2_string_attr): Adjust.
12680 (get_debug_line_section): Adjust.
12681 (dwarf_decode_line_header): Adjust.
12682 (lnp_state_machine::check_line_address): Adjust.
12683 (dwarf_decode_lines_1): Adjust.
12684 (dwarf_decode_lines): Adjust.
12685 (dwarf2_start_symtab): Adjust.
12686 (var_decode_location): Adjust.
12687 (new_symbol_full): Adjust.
12688 (dwarf2_const_value_data): Adjust.
12689 (dwarf2_const_value_attr): Adjust.
12690 (dwarf2_const_value): Adjust.
12691 (die_type): Adjust.
12692 (die_containing_type): Adjust.
12693 (build_error_marker_type): Adjust.
12694 (lookup_die_type): Adjust.
12695 (guess_full_die_structure_name): Adjust.
12696 (anonymous_struct_prefix): Adjust.
12697 (determine_prefix): Adjust.
12698 (dwarf2_name): Adjust.
12699 (follow_die_ref_or_sig): Adjust.
12700 (follow_die_offset): Adjust.
12701 (follow_die_ref): Adjust.
12702 (follow_die_sig_1): Adjust.
12703 (follow_die_sig): Adjust.
12704 (get_signatured_type): Adjust.
12705 (get_DW_AT_signature_type): Adjust.
12706 (decode_locdesc): Adjust.
12707 (dwarf_decode_macros): Adjust.
12708 (cu_debug_loc_section): Adjust.
12709 (fill_in_loclist_baton): Adjust.
12710 (dwarf2_symbol_mark_computed): Adjust.
12711 (init_one_comp_unit): Don't assign
12712 dwarf2_cu::dwarf2_per_objfile.
12713 (set_die_type): Adjust.
12715 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12717 * dwarf2read.c (struct mapped_debug_names): Add constructor.
12718 <dwarf2_per_objfile>: New field.
12719 (dwarf2_per_objfile): Remove global.
12720 (get_dwarf2_per_objfile): New function.
12721 (set_dwarf2_per_objfile): New function.
12722 (dwarf2_build_psymtabs_hard): Change objfile parameter to
12723 dwarf2_per_objfile.
12724 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12725 (read_abbrev_offset): Likewise.
12726 (read_indirect_string): Likewise.
12727 (read_indirect_line_string): Likewise.
12728 (read_indirect_string_at_offset): Likewise.
12729 (read_indirect_string_from_dwz): Likewise.
12730 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12731 dwarf2_per_objfile.
12732 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12733 (create_all_comp_units): Change objfile parameter to
12734 dwarf2_per_objfile.
12735 (create_all_type_units): Likewise.
12736 (process_queue): Add dwarf2_per_objfile parameter.
12737 (read_and_check_comp_unit_head): Likewise.
12738 (lookup_dwo_unit_in_dwp): Likewise.
12739 (get_dwp_file): Likewise.
12740 (process_cu_includes): Likewise.
12741 (struct free_dwo_file_cleanup_data): New struct.
12742 (dwarf2_has_info): Use get_dwarf2_per_objfile and
12743 set_dwarf2_per_objfile.
12744 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
12745 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
12746 context, adjust calls.
12747 (dw2_instantiate_symtab): Likewise.
12748 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
12749 (dw2_get_cu): Likewise.
12750 (create_cu_from_index_list): Change objfile parameter to
12751 dwarf2_per_objfile.
12752 (create_cus_from_index_list): Get dwarf2_per_objfile from
12753 context, adjust calls.
12754 (create_cus_from_index): Likewise.
12755 (create_signatured_type_table_from_index): Change objfile
12756 parameter to dwarf2_per_objfile.
12757 (create_signatured_type_table_from_debug_names): Change objfile
12758 parameter to dwarf2_per_objfile.
12759 (create_addrmap_from_index): Likewise.
12760 (create_addrmap_from_aranges): Likewise.
12761 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
12762 (dw2_setup): Remove.
12763 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
12765 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
12766 get_dwarf2_per_objfile.
12767 (dw2_forget_cached_source_info): Likewise.
12768 (dw2_map_symtabs_matching_filename): Likewise.
12769 (struct dw2_symtab_iterator) <index>: Remove.
12770 <dwarf2_per_objfile>: New field.
12771 (dw2_symtab_iter_init): Replace index parameter with
12772 dwarf2_per_objfile.
12773 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
12774 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
12775 (dw2_print_stats): Likewise.
12776 (dw2_dump): Likewise.
12777 (dw2_expand_symtabs_for_function): Likewise.
12778 (dw2_expand_all_symtabs): Likewise.
12779 (dw2_expand_symtabs_with_fullname): Likewise.
12780 (dw2_expand_marked_cus): Replace index and objfile parameters
12781 with dwarf2_per_objfile.
12782 (dw_expand_symtabs_matching_file_matcher): Add
12783 dwarf2_per_objfile parameter and adjust calls.
12784 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
12786 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
12787 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
12789 (create_cus_from_debug_names_list): Replace objfile parameter
12790 with dwarf2_per_objfile and adjust calls.
12791 (create_cus_from_debug_names): Likewise.
12792 (dwarf2_read_debug_names): Likewise.
12793 (mapped_debug_names::namei_to_name): Adjust call.
12794 (dw2_debug_names_iterator::next): Likewise.
12795 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
12796 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
12797 (dw2_debug_names_dump): Likewise.
12798 (dw2_debug_names_expand_symtabs_for_function): Likewise.
12799 (dw2_debug_names_expand_symtabs_matching): Likewise.
12800 (dwarf2_initialize_objfile): Likewise.
12801 (dwarf2_build_psymtabs): Likewise.
12802 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
12804 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
12805 (read_and_check_comp_unit_head): Likewise.
12806 (read_abbrev_offset): Likewise.
12807 (create_debug_type_hash_table): Likewise.
12808 (create_debug_types_hash_table): Likewise.
12809 (create_all_type_units): Replace objfile parameter with
12810 dwarf2_per_objfile.
12811 (add_type_unit): Add dwarf2_per_objfile parameter.
12812 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
12813 with dwarf2_per_objfile.
12814 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
12815 (lookup_dwp_signatured_type): Likewise.
12816 (lookup_signatured_type): Likewise.
12817 (read_cutu_die_from_dwo): Likewise.
12818 (init_tu_and_read_dwo_dies): Likewise.
12819 (init_cutu_and_read_dies): Likewise.
12820 (init_cutu_and_read_dies_no_follow): Likewise.
12821 (allocate_type_unit_groups_table): Add objfile parameter.
12822 (create_type_unit_group): Use dwarf2_per_objfile from cu.
12823 (get_type_unit_group): Likewise.
12824 (process_psymtab_comp_unit): Update call.
12825 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
12826 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
12827 (print_tu_stats): Likewise.
12828 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
12829 in void* parameter.
12830 (build_type_psymtabs): Change objfile parameter to
12831 dwarf2_per_objfile.
12832 (process_skeletonless_type_unit): Use dwarf2_per_objfile
12833 passed in void* parameter.
12834 (process_skeletonless_type_units): Change objfile parameter to
12835 dwarf2_per_objfile.
12836 (set_partial_user): Likewise.
12837 (dwarf2_build_psymtabs_hard): Likewise.
12838 (read_comp_units_from_section): Likewise.
12839 (create_all_comp_units): Likewise.
12840 (scan_partial_symbols): Update calls.
12841 (add_partial_symbol): Likewise.
12842 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
12843 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
12844 (process_queue): Add dwarf2_per_objfile parameter.
12845 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
12846 (compute_compunit_symtab_includes): Likewise.
12847 (process_cu_includes): Add dwarf2_per_objfile parameter.
12848 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
12849 (process_full_type_unit): Likewise.
12850 (process_imported_unit_die): Update call.
12851 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
12852 (read_file_scope): Likewise.
12853 (allocate_dwo_file_hash_table): Add objfile parameter.
12854 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
12855 (create_cus_hash_table): Likewise.
12856 (create_dwp_hash_table): Likewise.
12857 (create_dwo_unit_in_dwp_v1): Likewise.
12858 (create_dwp_v2_section): Likewise.
12859 (create_dwo_unit_in_dwp_v2): Likewise.
12860 (lookup_dwo_unit_in_dwp): Likewise.
12861 (try_open_dwop_file): Likewise.
12862 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
12863 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
12864 cleanup to include a reference to dwarf2_per_objfile.
12865 (open_dwp_file): Add dwarf2_per_objfile parameter.
12866 (open_and_init_dwp_file): Likewise.
12867 (get_dwp_file): Likewise.
12868 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
12869 (queue_and_load_all_dwo_tus): Update call.
12870 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
12872 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
12873 (dwarf2_ranges_process): Likewise.
12874 (dwarf2_get_pc_bounds): Likewise.
12875 (mark_common_block_symbol_computed): Likewise.
12876 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12877 (dwarf2_read_abbrevs): Update call.
12878 (read_partial_die): Use dwarf2_per_objfile from cu.
12879 (find_partial_die): Likewise.
12880 (fixup_partial_die): Likewise.
12881 (read_attribute_value): Likewise.
12882 (read_indirect_string_at_offset_from): Add objfile parameter.
12883 (read_indirect_string_at_offset): Add dwarf2_per_objfile
12885 (read_indirect_string_from_dwz): Add objfile parameter.
12886 (read_indirect_string): Add objfile parameter.
12887 (read_addr_index_1): Add dwarf2_per_objfile parameter.
12888 (read_addr_index): Use dwarf2_per_objfile from cu.
12889 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
12891 (read_str_index): Use dwarf2_per_objfile from cu.
12892 (get_debug_line_section): Likewise.
12893 (read_formatted_entries): Add dwarf2_per_objfile parameter.
12894 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
12895 (new_symbol_full): Use dwarf2_per_objfile from cu.
12896 (build_error_marker_type): Likewise.
12897 (lookup_die_type): Likewise.
12898 (determine_prefix): Likewise.
12899 (follow_die_offset): Likewise.
12900 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
12901 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
12902 (dwarf2_fetch_die_type_sect_off): Likewise.
12903 (dwarf2_get_die_type): Likewise.
12904 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
12905 (get_signatured_type): Likewise.
12906 (get_DW_AT_signature_type): Likewise.
12907 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
12908 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
12909 (cu_debug_loc_section): Likewise.
12910 (fill_in_loclist_baton): Likewise.
12911 (dwarf2_symbol_mark_computed): Likewise.
12912 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12913 dwarf2_per_objfile.
12914 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
12916 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12917 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
12918 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
12919 (set_die_type): Use dwarf2_free_objfile from cu.
12920 (get_die_type_at_offset): Likewise.
12921 (dwarf2_per_objfile_free): Don't assign global variable.
12922 (debug_names) <constructor>: Add dwarf2_per_objfile
12923 parameter, update m_debugstrlookup construction.
12924 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
12926 <m_dwarf2_per_objfile>: New field.
12927 <lookup>: Use m_dwarf2_per_objfile.
12928 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
12929 (psyms_seen_size): Likewise.
12930 (write_gdbindex): Replace objfile parameter with
12931 dwarf2_per_objfile.
12932 (write_debug_names): Likewise.
12933 (write_psymtabs_to_index): Likewise.
12934 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
12937 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12939 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
12940 <dwarf2_per_objfile>: New field.
12941 (struct dwarf2_per_cu_data) <objfile>: Remove.
12942 <dwarf2_per_objfile>: New field.
12943 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
12945 (create_signatured_type_table_from_index): Likewise.
12946 (create_debug_type_hash_table): Likewise.
12947 (fill_in_sig_entry_from_dwo_entry): Likewise.
12948 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
12949 (create_type_unit_group): Assign dwarf2_per_objfile instead of
12951 (create_partial_symtab): Access objfile through
12952 dwarf2_per_objfile.
12953 (process_psymtab_comp_unit_reader): Likewise.
12954 (read_comp_units_from_section): Likewise.
12955 (scan_partial_symbols): Likewise.
12956 (add_partial_symbol): Likewise.
12957 (add_partial_subprogram): Likewise.
12958 (peek_die_abbrev): Likewise.
12959 (fixup_go_packaging): Likewise.
12960 (process_full_comp_unit): Likewise.
12961 (process_full_type_unit): Likewise.
12962 (process_imported_unit_die): Likewise.
12963 (dwarf2_compute_name): Likewise.
12964 (dwarf2_physname): Likewise.
12965 (read_import_statement): Likewise.
12966 (create_cus_hash_table): Assign dwarf2_physname instead of
12968 (read_func_scope): Access objfile through dwarf2_per_objfile.
12969 (read_lexical_block_scope): Likewise.
12970 (read_call_site_scope): Likewise.
12971 (read_variable): Likewise.
12972 (dwarf2_rnglists_process): Likewise.
12973 (dwarf2_ranges_process): Likewise.
12974 (dwarf2_ranges_read): Likewise.
12975 (dwarf2_record_block_ranges): Likewise.
12976 (dwarf2_add_field): Likewise.
12977 (dwarf2_add_member_fn): Likewise.
12978 (read_structure_type): Likewise.
12979 (process_structure_scope): Likewise.
12980 (read_enumeration_type): Likewise.
12981 (read_array_type): Likewise.
12982 (read_common_block): Likewise.
12983 (read_namespace_type): Likewise.
12984 (read_namespace): Likewise.
12985 (read_module_type): Likewise.
12986 (read_tag_pointer_type): Likewise.
12987 (read_tag_ptr_to_member_type): Likewise.
12988 (read_tag_string_type): Likewise.
12989 (read_subroutine_type): Likewise.
12990 (read_typedef): Likewise.
12991 (read_base_type): Likewise.
12992 (attr_to_dynamic_prop): Likewise.
12993 (read_subrange_type): Likewise.
12994 (read_unspecified_type): Likewise.
12995 (load_partial_dies): Likewise.
12996 (read_partial_die): Likewise.
12997 (find_partial_die): Likewise.
12998 (guess_partial_die_structure_name): Likewise.
12999 (fixup_partial_die): Likewise.
13000 (read_attribute_value): Likewise.
13001 (read_addr_index_from_leb128): Likewise.
13002 (dwarf2_read_addr_index): Likewise.
13003 (dwarf2_string_attr): Likewise.
13004 (lnp_state_machine::check_line_address): Likewise.
13005 (dwarf_decode_lines_1): Likewise.
13006 (dwarf_decode_lines): Likewise.
13007 (dwarf2_start_symtab): Likewise.
13008 (var_decode_location): Likewise.
13009 (new_symbol_full): Likewise.
13010 (dwarf2_const_value_data): Likewise.
13011 (dwarf2_const_value_attr): Likewise.
13012 (dwarf2_const_value): Likewise.
13013 (die_type): Likewise.
13014 (die_containing_type): Likewise.
13015 (lookup_die_type): Likewise.
13016 (guess_full_die_structure_name): Likewise.
13017 (anonymous_struct_prefix): Likewise.
13018 (dwarf2_name): Likewise.
13019 (follow_die_ref_or_sig): Likewise.
13020 (follow_die_offset): Likewise.
13021 (follow_die_ref): Likewise.
13022 (dwarf2_fetch_die_loc_sect_off): Likewise.
13023 (dwarf2_fetch_constant_bytes): Likewise.
13024 (dwarf2_fetch_die_type_sect_off): Likewise.
13025 (dwarf2_get_die_type): Likewise.
13026 (follow_die_sig): Likewise.
13027 (decode_locdesc): Likewise.
13028 (dwarf2_per_cu_objfile): Likewise.
13029 (dwarf2_per_cu_text_offset): Likewise.
13030 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13032 (set_die_type): Access objfile through
13033 dwarf2_per_objfile.
13035 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13037 * valprint.c (converted_character_d): Remove typedef.
13038 (DEF_VEC_O (converted_character_d)): Remove.
13039 (count_next_character): Use std::vector.
13040 (print_converted_chars_to_obstack): Likewise.
13041 (generic_printstr): Likewise.
13043 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13045 * xml-support.h (struct gdb_xml_value): Add constructor.
13046 <value>: Change type to unique_xmalloc_ptr.
13047 (gdb_xml_value_s): Remove typedef.
13048 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13049 (gdb_xml_element_start_handler): Change parameter type to
13051 (xml_find_attribute): Likewise.
13052 * xml-support.c (xml_find_attribute): Change parameter type to
13053 std::vector and adjust.
13054 (gdb_xml_values_cleanup): Remove.
13055 (gdb_xml_parser::start_element): Adjust to std::vector.
13056 (xinclude_start_include): Change paraeter type to std::vector
13058 * btrace.c (check_xml_btrace_version): Likewise.
13059 (parse_xml_btrace_block): Likewise.
13060 (parse_xml_btrace_pt_config_cpu): Likewise.
13061 (parse_xml_btrace_pt): Likewise.
13062 (parse_xml_btrace_conf_bts): Likewise.
13063 (parse_xml_btrace_conf_pt): Likewise.
13064 * memory-map.c (memory_map_start_memory): Likewise.
13065 (memory_map_start_property): Likewise.
13066 * osdata.c (osdata_start_osdata): Likewise.
13067 (osdata_start_item): Likewise.
13068 (osdata_start_column): Likewise.
13069 * remote.c (start_thread): Likewise.
13070 * solib-aix.c (library_list_start_library): Likewise.
13071 (library_list_start_list): Likewise.
13072 * solib-svr4.c (library_list_start_library): Likewise.
13073 (svr4_library_list_start_list): Likewise.
13074 * solib-target.c (library_list_start_segment): Likewise.
13075 (library_list_start_section): Likewise.
13076 (library_list_start_library): Likewise.
13077 (library_list_start_list): Likewise.
13078 * tracepoint.c (traceframe_info_start_memory): Likewise.
13079 (traceframe_info_start_tvar): Likewise.
13080 * xml-syscall.c (syscall_start_syscall): Likewise.
13081 * xml-tdesc.c (tdesc_start_target): Likewise.
13082 (tdesc_start_feature): Likewise.
13083 (tdesc_start_reg): Likewise.
13084 (tdesc_start_union): Likewise.
13085 (tdesc_start_struct): Likewise.
13086 (tdesc_start_flags): Likewise.
13087 (tdesc_start_enum): Likewise.
13088 (tdesc_start_field): Likewise.
13089 (tdesc_start_enum_value): Likewise.
13090 (tdesc_start_vector): Likewise.
13092 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13094 * extension.h (struct xmethod_worker) <clone>: Remove.
13095 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13097 (python_xmethod_worker::clone): Remove.
13098 * valops.c (find_overload_match): Use std::move instead of
13101 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13103 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13104 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13105 <free_xmethod_worker_data>: Remove.
13106 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13107 <get_xmethod_arg_types>: Remove.
13108 <get_xmethod_result_type>: Remove.
13109 <invoke_xmethod>: Remove.
13110 * extension.c (new_xmethod_worker): Remove.
13111 (clone_xmethod_worker): Remove.
13112 (get_matching_xmethod_workers): Return void, pass std::vector by
13114 (get_xmethod_arg_types): Rename to...
13115 (xmethod_worker::get_arg_types): ... this, and adjust.
13116 (get_xmethod_result_type): Rename to...
13117 (xmethod_worker::get_result_type): ... this, and adjust.
13118 (invoke_xmethod): Remove.
13119 (free_xmethod_worker): Remove.
13120 (free_xmethod_worker_vec): Remove.
13121 * extension.h (enum ext_lang_rc): Move here from
13123 (struct xmethod_worker): Add constructor and destructor.
13126 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13127 virtual pure methods.
13128 <get_arg_types, get_result_type>: New methods.
13129 (xmethod_worker_ptr): Remove typedef.
13130 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13131 (xmethod_worker_vec): Remove typedef.
13132 (xmethod_worker_up): New typedef.
13133 (invoke_xmethod): Remove.
13134 (clone_xmethod_worker): Remove.
13135 (free_xmethod_worker): Remove.
13136 (free_xmethod_worker_vec): Remove.
13137 (get_xmethod_arg_types): Remove.
13138 (get_xmethod_result_type): Remove.
13139 * valops.c (find_method_list): Use std::vector, don't use
13140 intermediate vector.
13141 (value_find_oload_method_list): Use std::vector.
13142 (find_overload_match): Use std::vector.
13143 (find_oload_champ): Use std::vector.
13144 * value.c (value_free): Use operator delete.
13145 (value_of_xmethod): Rename to...
13146 (value_from_xmethod): ... this. Don't assign
13147 xmethod_worker::value, take rvalue-reference.
13148 (result_type_of_xmethod): Adjust.
13149 (call_xmethod): Adjust.
13150 * value.h: Include extension.h.
13151 (struct xmethod_worker): Don't forward-declare.
13152 (value_of_xmethod): Rename to...
13153 (value_from_xmethod): ... this, take rvalue-reference.
13154 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13155 (struct python_xmethod_worker): ... this, add constructor and
13157 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13158 (gdbpy_free_xmethod_worker_data): Rename to...
13159 (python_xmethod_worker::~python_xmethod_worker): ... this and
13161 (gdbpy_clone_xmethod_worker_data): Rename to...
13162 (python_xmethod_worker::clone): ... this and adjust.
13163 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13165 (gdbpy_get_xmethod_arg_types): Rename to...
13166 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13167 (gdbpy_get_xmethod_result_type): Rename to...
13168 (python_xmethod_worker::do_get_result_type): ... this and
13170 (gdbpy_invoke_xmethod): Rename to...
13171 (python_xmethod_worker::invoke): ... this and adjust.
13172 (new_python_xmethod_worker): Rename to...
13173 (python_xmethod_worker::python_xmethod_worker): ... this and
13175 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13177 (gdbpy_free_xmethod_worker_data): Remove.
13178 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13179 (gdbpy_get_xmethod_arg_types): Remove.
13180 (gdbpy_get_xmethod_result_type): Remove.
13181 (gdbpy_invoke_xmethod): Remove.
13182 * python/python.c (python_extension_ops): Remove obsolete
13185 2018-01-05 Pedro Alves <palves@redhat.com>
13188 * common/signals-state-save-restore.c
13189 (save_original_signals_state): New parameter 'quiet'. Warn if we
13190 find a custom handler preinstalled, instead of internal erroring.
13191 But only warn if !quiet.
13192 * common/signals-state-save-restore.h
13193 (save_original_signals_state): New parameter 'quiet'.
13194 * main.c (captured_main_1): Move save_original_signals_state call
13195 after option handling, and pass QUIET.
13197 2018-01-05 Pedro Alves <palves@redhat.com>
13199 * spu-tdep.c (spu_catch_start): Pass
13200 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13202 2018-01-05 Pedro Alves <palves@redhat.com>
13205 * ada-lang.c (literal_symbol_name_matcher): New function.
13206 (ada_get_symbol_name_matcher): Use it for
13207 symbol_name_match_type::SEARCH_NAME.
13208 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13209 it down instead of assuming symbol_name_match_type::FULL.
13210 * block.h (block_lookup_symbol): New parameter 'match_type'.
13211 * c-valprint.c (print_unpacked_pointer): Use
13212 lookup_symbol_search_name instead of lookup_symbol.
13213 * compile/compile-object-load.c (get_out_value_type): Pass down
13214 symbol_name_match_type::SEARCH_NAME.
13215 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13216 symbol_name_match_type::FULL.
13217 * cp-support.c (cp_get_symbol_name_matcher): Handle
13218 symbol_name_match_type::SEARCH_NAME.
13219 * infrun.c (insert_exception_resume_breakpoint): Use
13220 lookup_symbol_search_name.
13221 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13222 * psymtab.c (maintenance_check_psymtabs): Use
13223 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13224 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13225 SYMBOL_SEARCH_NAME.
13226 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13227 if symbol_name_match_type::SEARCH_NAME.
13228 (lookup_symbol_in_language): Pass down
13229 symbol_name_match_type::FULL.
13230 (lookup_symbol_search_name): New.
13231 (lookup_language_this): Pass down
13232 symbol_name_match_type::SEARCH_NAME.
13233 (lookup_symbol_aux, lookup_local_symbol): New parameter
13234 'match_type'. Pass it down.
13235 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13236 (lookup_symbol_search_name): New declaration.
13237 (lookup_symbol_in_block): New 'match_type' parameter.
13239 2018-01-05 Pedro Alves <palves@redhat.com>
13242 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13244 (ada_lookup_symbol): Reimplement in terms of
13245 ada_lookup_symbol_list, bits factored out from
13246 ada_lookup_encoded_symbol.
13248 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13250 * ada-exp.y (write_object_renaming): When subscripting an array
13251 using a symbol as the index, pass the block in call to
13252 ada_lookup_encoded_symbol when looking that symbol up.
13254 2018-01-05 Jerome Guitton <guitton@adacore.com>
13256 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13259 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13261 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13262 the case where VALUE_LVAL (val0) is not lval_memory.
13264 2018-01-05 Xavier Roirand <roirand@adacore.com>
13266 * ada-valprint.c (print_optional_low_bound): Handle
13267 character-indexed array printing like boolean-indexed array
13270 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13272 * NEWS: Create a new section for the next release branch.
13273 Rename the section of the current branch, now that it has
13276 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13278 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13279 * version.in: Bump version to 8.1.50.DATE-git.
13281 2018-01-03 Xavier Roirand <roirand@adacore.com>
13283 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13285 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13287 (default_exception_support_info) <catch_handlers_sym>: Add field.
13288 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13289 (ada_exception_name_addr_1): Add "catch handlers" handling.
13290 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13291 Update all callers.
13292 (create_excep_cond_exprs) <ex>: Add parameter.
13293 (re_set_exception): Update create_excep_cond_exprs call.
13294 (print_it_exception, print_one_exception, print_mention_exception)
13295 (print_recreate_exception): Add "catch handler" handling.
13296 (allocate_location_catch_handlers, re_set_catch_handlers)
13297 (check_status_catch_handlers, print_it_catch_handlers)
13298 (print_one_catch_handlers, print_mention_catch_handlers)
13299 (print_recreate_catch_handlers): New function.
13300 (catch_handlers_breakpoint_ops): New variable.
13301 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13302 Add parameter. Add "catch handler" handling.
13303 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13304 Add "catch handler" handling.
13305 (ada_exception_catchpoint_cond_string): Add "catch handler"
13307 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13309 (catch_ada_handlers_command): New function.
13310 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13311 operations structure.
13312 (_initialize_ada_language): Add "catch handlers" command entry.
13313 * NEWS: Document "catch handlers" feature.
13315 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13317 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13318 account when creating the array type of the slice.
13319 (ada_value_slice): Likewise.
13321 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13323 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13325 (create_array_type_with_stride): Add byte_stride_prop parameter.
13326 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13327 New parameter. Update all callers in this file.
13328 (array_type_has_dynamic_stride): New function.
13329 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13330 of arrays with dynamic byte strides.
13331 * dwarf2read.c (read_array_type): Add support for dynamic
13332 DW_AT_byte_stride attributes.
13334 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13336 * dwarf2read.c (read_unspecified_type): Treat
13337 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13339 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13341 Update copyright year range in all GDB files.
13343 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13345 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13346 and gdb/testsuite/gdb.base/step-line.c.
13348 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13350 * copyright.py (main): Dump the contents of
13351 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13352 even if BY_HAND is empty.
13354 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13356 * top.c (print_gdb_version): Update Copyright year in version
13359 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13361 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
13363 For older changes see ChangeLog-2017.
13369 version-control: never