1 2018-09-13 Tom Tromey <tom@tromey.com>
3 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
5 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
6 2018-09-13 Tom Tromey <tom@tromey.com>
8 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
9 (pspy_get_objfiles): New function.
10 (progspace_object_methods): New.
11 (pspace_object_type): Add tp_methods callback.
12 * python/python-internal.h (build_objfiles_list): New
14 * python/python.c (build_objfiles_list): New function.
15 (gdbpy_objfiles): Implement using build_objfiles_list.
16 * NEWS: Mention the Progspace.objfiles method.
18 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
20 * python/py-inferior.c (infpy_get_progspace): New function.
21 (inferior_object_getset): Add progspace property.
22 * NEWS: Mention the new property.
24 2018-09-13 Tom Tromey <tom@tromey.com>
27 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
29 2018-09-13 Tom Tromey <tom@tromey.com>
32 * rust-lang.c (rust_enum_variant): Now static.
33 (rust_empty_enum_p): New function.
34 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
37 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
39 * python/py-inferior.c (infpy_repr): New.
40 (inferior_object_type): Register infpy_repr.
41 * python/py-objfile.c (objfpy_repr): New.
42 (objfile_object_type): Register objfpy_repr.
44 2018-09-12 John Baldwin <jhb@FreeBSD.org>
46 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
48 2018-09-12 John Baldwin <jhb@FreeBSD.org>
50 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
53 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
55 * common/common-utils.c: Don't include '<sys/stat.h>'.
56 (is_regular_file): Move to...
57 * common/filestuff.c (is_regular_file): ... here.
58 * common/common-utils.h (is_regular_file): Move to...
59 * common/filestuff.h (is_regular_file): ... here.
61 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
63 * skip.c (debug_skip): New variable.
64 (skiplist_entry::do_skip_file_p): Add debug output.
65 (skiplist_entry::do_skip_gfile_p): Likewise.
66 (skiplist_entry::skip_function_p): Likewise.
67 (_initialize_step_skip): Create debug command.
68 * NEWS: Mention set/show debug skip.
70 2018-09-11 Xavier Roirand <roirand@adacore.com>
72 * darwin-nat.c (should_disable_startup_with_shell):
74 (darwin_nat_target::create_inferior): Add call.
76 2018-09-11 Xavier Roirand <roirand@adacore.com>
78 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
79 inf_port, msg_state>: Initialize.
80 (struct darwin_thread_info) <signaled, single_step>: Change
82 (struct darwin_thread_info) <event>: Initialize.
84 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
88 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
91 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
94 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
98 * gnulib/aclocal.m4: Regenerate.
99 * gnulib/config.in: Regenerate.
100 * gnulib/configure: Regenerate.
101 * gnulib/import/Makefile.am: Update.
102 * gnulib/import/Makefile.in: Update.
103 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
104 * gnulib/import/_Noreturn.h: ... this.
105 * gnulib/import/alloca.in.h: Update.
106 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
107 * gnulib/import/arg-nonnull.h: ... this.
108 * gnulib/import/assure.h: Update.
109 * gnulib/import/at-func.c: Update.
110 * gnulib/import/basename-lgpl.c: Update.
111 * gnulib/import/extra/snippet/c++defs.h: Rename to...
112 * gnulib/import/c++defs.h: ... this.
113 * gnulib/import/canonicalize-lgpl.c: Update.
114 * gnulib/import/cdefs.h: Update.
115 * gnulib/import/chdir-long.c: Update.
116 * gnulib/import/chdir-long.h: Update.
117 * gnulib/import/cloexec.c: Update.
118 * gnulib/import/cloexec.h: Update.
119 * gnulib/import/close.c: Update.
120 * gnulib/import/closedir.c: Update.
121 * gnulib/import/config.charset: Update.
122 * gnulib/import/dirent-private.h: Update.
123 * gnulib/import/dirent.in.h: Update.
124 * gnulib/import/dirfd.c: Update.
125 * gnulib/import/dirname-lgpl.c: Update.
126 * gnulib/import/dirname.h: Update.
127 * gnulib/import/dosname.h: Update.
128 * gnulib/import/dup-safer-flag.c: Update.
129 * gnulib/import/dup-safer.c: Update.
130 * gnulib/import/dup.c: Update.
131 * gnulib/import/dup2.c: Update.
132 * gnulib/import/errno.in.h: Update.
133 * gnulib/import/error.c: Update.
134 * gnulib/import/error.h: Update.
135 * gnulib/import/exitfail.c: Update.
136 * gnulib/import/exitfail.h: Update.
137 * gnulib/import/extra/update-copyright: Update.
138 * gnulib/import/fchdir.c: Update.
139 * gnulib/import/fcntl.c: Update.
140 * gnulib/import/fcntl.in.h: Update.
141 * gnulib/import/fd-hook.c: Update.
142 * gnulib/import/fd-hook.h: Update.
143 * gnulib/import/fd-safer-flag.c: Update.
144 * gnulib/import/fd-safer.c: Update.
145 * gnulib/import/fdopendir.c: Update.
146 * gnulib/import/filename.h: Update.
147 * gnulib/import/filenamecat-lgpl.c: Update.
148 * gnulib/import/filenamecat.h: Update.
149 * gnulib/import/flexmember.h: Update.
150 * gnulib/import/float+.h: Update.
151 * gnulib/import/float.c: Update.
152 * gnulib/import/float.in.h: Update.
153 * gnulib/import/fnmatch.c: Update.
154 * gnulib/import/fnmatch.in.h: Update.
155 * gnulib/import/fnmatch_loop.c: Update.
156 * gnulib/import/fpucw.h: Update.
157 * gnulib/import/frexp.c: Update.
158 * gnulib/import/frexpl.c: Update.
159 * gnulib/import/fstat.c: Update.
160 * gnulib/import/fstatat.c: Update.
161 * gnulib/import/getcwd-lgpl.c: Update.
162 * gnulib/import/getcwd.c: Update.
163 * gnulib/import/getdtablesize.c: Update.
164 * gnulib/import/getlogin_r.c: Update.
165 * gnulib/import/getprogname.c: Update.
166 * gnulib/import/getprogname.h: Update.
167 * gnulib/import/gettext.h: Update.
168 * gnulib/import/gettimeofday.c: Update.
169 * gnulib/import/glob-libc.h: Update.
170 * gnulib/import/glob.c: Update.
171 * gnulib/import/glob.in.h: Update.
172 * gnulib/import/glob_internal.h: Update.
173 * gnulib/import/glob_pattern_p.c: Update.
174 * gnulib/import/globfree.c: Update.
175 * gnulib/import/hard-locale.c: Update.
176 * gnulib/import/hard-locale.h: Update.
177 * gnulib/import/intprops.h: Update.
178 * gnulib/import/inttypes.in.h: Update.
179 * gnulib/import/isnan.c: Update.
180 * gnulib/import/isnand-nolibm.h: Update.
181 * gnulib/import/isnand.c: Update.
182 * gnulib/import/isnanl-nolibm.h: Update.
183 * gnulib/import/isnanl.c: Update.
184 * gnulib/import/itold.c: Update.
185 * gnulib/import/libc-config.h: Update.
186 * gnulib/import/limits.in.h: Update.
187 * gnulib/import/localcharset.c: Update.
188 * gnulib/import/localcharset.h: Update.
189 * gnulib/import/localtime-buffer.c: Update.
190 * gnulib/import/localtime-buffer.h: Update.
191 * gnulib/import/lstat.c: Update.
192 * gnulib/import/m4/00gnulib.m4: Update.
193 * gnulib/import/m4/__inline.m4: Update.
194 * gnulib/import/m4/absolute-header.m4: Update.
195 * gnulib/import/m4/alloca.m4: Update.
196 * gnulib/import/m4/builtin-expect.m4: Update.
197 * gnulib/import/m4/canonicalize.m4: Update.
198 * gnulib/import/m4/chdir-long.m4: Update.
199 * gnulib/import/m4/close.m4: Update.
200 * gnulib/import/m4/closedir.m4: Update.
201 * gnulib/import/m4/configmake.m4: Update.
202 * gnulib/import/m4/d-ino.m4: Update.
203 * gnulib/import/m4/d-type.m4: Update.
204 * gnulib/import/m4/dirent_h.m4: Update.
205 * gnulib/import/m4/dirfd.m4: Update.
206 * gnulib/import/m4/dirname.m4: Update.
207 * gnulib/import/m4/double-slash-root.m4: Update.
208 * gnulib/import/m4/dup.m4: Update.
209 * gnulib/import/m4/dup2.m4: Update.
210 * gnulib/import/m4/eealloc.m4: Update.
211 * gnulib/import/m4/environ.m4: Update.
212 * gnulib/import/m4/errno_h.m4: Update.
213 * gnulib/import/m4/error.m4: Update.
214 * gnulib/import/m4/exponentd.m4: Update.
215 * gnulib/import/m4/exponentl.m4: Update.
216 * gnulib/import/m4/extensions.m4: Update.
217 * gnulib/import/m4/extern-inline.m4: Update.
218 * gnulib/import/m4/fchdir.m4: Update.
219 * gnulib/import/m4/fcntl-o.m4: Update.
220 * gnulib/import/m4/fcntl.m4: Update.
221 * gnulib/import/m4/fcntl_h.m4: Update.
222 * gnulib/import/m4/fdopendir.m4: Update.
223 * gnulib/import/m4/filenamecat.m4: Update.
224 * gnulib/import/m4/flexmember.m4: Update.
225 * gnulib/import/m4/float_h.m4: Update.
226 * gnulib/import/m4/fnmatch.m4: Update.
227 * gnulib/import/m4/fnmatch_h.m4: Update.
228 * gnulib/import/m4/fpieee.m4: Update.
229 * gnulib/import/m4/frexp.m4: Update.
230 * gnulib/import/m4/frexpl.m4: Update.
231 * gnulib/import/m4/fstat.m4: Update.
232 * gnulib/import/m4/fstatat.m4: Update.
233 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
234 * gnulib/import/m4/getcwd-path-max.m4: Update.
235 * gnulib/import/m4/getcwd.m4: Update.
236 * gnulib/import/m4/getdtablesize.m4: Update.
237 * gnulib/import/m4/getlogin.m4: Update.
238 * gnulib/import/m4/getlogin_r.m4: Update.
239 * gnulib/import/m4/getpagesize.m4: Update.
240 * gnulib/import/m4/getprogname.m4: Update.
241 * gnulib/import/m4/gettimeofday.m4: Update.
242 * gnulib/import/m4/glibc21.m4: Update.
243 * gnulib/import/m4/glob.m4: Update.
244 * gnulib/import/m4/glob_h.m4: Update.
245 * gnulib/import/m4/gnulib-cache.m4: Update.
246 * gnulib/import/m4/gnulib-common.m4: Update.
247 * gnulib/import/m4/gnulib-comp.m4: Update.
248 * gnulib/import/m4/gnulib-tool.m4: Update.
249 * gnulib/import/m4/hard-locale.m4: Update.
250 * gnulib/import/m4/include_next.m4: Update.
251 * gnulib/import/m4/inttypes-pri.m4: Update.
252 * gnulib/import/m4/inttypes.m4: Update.
253 * gnulib/import/m4/isnand.m4: Update.
254 * gnulib/import/m4/isnanl.m4: Update.
255 * gnulib/import/m4/largefile.m4: Update.
256 * gnulib/import/m4/limits-h.m4: Update.
257 * gnulib/import/m4/localcharset.m4: Update.
258 * gnulib/import/m4/locale-fr.m4: Update.
259 * gnulib/import/m4/locale-ja.m4: Update.
260 * gnulib/import/m4/locale-zh.m4: Update.
261 * gnulib/import/m4/localtime-buffer.m4: Update.
262 * gnulib/import/m4/longlong.m4: Update.
263 * gnulib/import/m4/lstat.m4: Update.
264 * gnulib/import/m4/malloc.m4: Update.
265 * gnulib/import/m4/malloca.m4: Update.
266 * gnulib/import/m4/math_h.m4: Update.
267 * gnulib/import/m4/mbrtowc.m4: Update.
268 * gnulib/import/m4/mbsinit.m4: Update.
269 * gnulib/import/m4/mbsrtowcs.m4: Update.
270 * gnulib/import/m4/mbstate_t.m4: Update.
271 * gnulib/import/m4/memchr.m4: Update.
272 * gnulib/import/m4/memmem.m4: Update.
273 * gnulib/import/m4/mempcpy.m4: Update.
274 * gnulib/import/m4/memrchr.m4: Update.
275 * gnulib/import/m4/mkdir.m4: Update.
276 * gnulib/import/m4/mkstemp.m4: Update.
277 * gnulib/import/m4/mmap-anon.m4: Update.
278 * gnulib/import/m4/mode_t.m4: Update.
279 * gnulib/import/m4/msvc-inval.m4: Update.
280 * gnulib/import/m4/msvc-nothrow.m4: Update.
281 * gnulib/import/m4/multiarch.m4: Update.
282 * gnulib/import/m4/nocrash.m4: Update.
283 * gnulib/import/m4/off_t.m4: Update.
284 * gnulib/import/m4/onceonly.m4: Update.
285 * gnulib/import/m4/open-cloexec.m4: Update.
286 * gnulib/import/m4/open.m4: Update.
287 * gnulib/import/m4/openat.m4: Update.
288 * gnulib/import/m4/opendir.m4: Update.
289 * gnulib/import/m4/pathmax.m4: Update.
290 * gnulib/import/m4/rawmemchr.m4: Update.
291 * gnulib/import/m4/readdir.m4: Update.
292 * gnulib/import/m4/readlink.m4: Update.
293 * gnulib/import/m4/realloc.m4: Update.
294 * gnulib/import/m4/rename.m4: Update.
295 * gnulib/import/m4/rewinddir.m4: Update.
296 * gnulib/import/m4/rmdir.m4: Update.
297 * gnulib/import/m4/save-cwd.m4: Update.
298 * gnulib/import/m4/secure_getenv.m4: Update.
299 * gnulib/import/m4/setenv.m4: Update.
300 * gnulib/import/m4/signal_h.m4: Update.
301 * gnulib/import/m4/ssize_t.m4: Update.
302 * gnulib/import/m4/stat-time.m4: Update.
303 * gnulib/import/m4/stat.m4: Update.
304 * gnulib/import/m4/std-gnu11.m4: Update.
305 * gnulib/import/m4/stdbool.m4: Update.
306 * gnulib/import/m4/stddef_h.m4: Update.
307 * gnulib/import/m4/stdint.m4: Update.
308 * gnulib/import/m4/stdio_h.m4: Update.
309 * gnulib/import/m4/stdlib_h.m4: Update.
310 * gnulib/import/m4/strchrnul.m4: Update.
311 * gnulib/import/m4/strdup.m4: Update.
312 * gnulib/import/m4/strerror.m4: Update.
313 * gnulib/import/m4/string_h.m4: Update.
314 * gnulib/import/m4/strstr.m4: Update.
315 * gnulib/import/m4/strtok_r.m4: Update.
316 * gnulib/import/m4/sys_socket_h.m4: Update.
317 * gnulib/import/m4/sys_stat_h.m4: Update.
318 * gnulib/import/m4/sys_time_h.m4: Update.
319 * gnulib/import/m4/sys_types_h.m4: Update.
320 * gnulib/import/m4/tempname.m4: Update.
321 * gnulib/import/m4/time_h.m4: Update.
322 * gnulib/import/m4/unistd-safer.m4: Update.
323 * gnulib/import/m4/unistd_h.m4: Update.
324 * gnulib/import/m4/warn-on-use.m4: Update.
325 * gnulib/import/m4/wchar_h.m4: Update.
326 * gnulib/import/m4/wchar_t.m4: Update.
327 * gnulib/import/m4/wctype_h.m4: Update.
328 * gnulib/import/m4/wint_t.m4: Update.
329 * gnulib/import/malloc.c: Update.
330 * gnulib/import/malloc/scratch_buffer.h: Update.
331 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
332 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
333 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
334 * gnulib/import/malloca.c: Update.
335 * gnulib/import/malloca.h: Update.
336 * gnulib/import/malloca.valgrind: Update.
337 * gnulib/import/math.in.h: Update.
338 * gnulib/import/mbrtowc.c: Update.
339 * gnulib/import/mbsinit.c: Update.
340 * gnulib/import/mbsrtowcs-impl.h: Update.
341 * gnulib/import/mbsrtowcs-state.c: Update.
342 * gnulib/import/mbsrtowcs.c: Update.
343 * gnulib/import/memchr.c: Update.
344 * gnulib/import/memmem.c: Update.
345 * gnulib/import/mempcpy.c: Update.
346 * gnulib/import/memrchr.c: Update.
347 * gnulib/import/mkdir.c: Update.
348 * gnulib/import/mkstemp.c: Update.
349 * gnulib/import/msvc-inval.c: Update.
350 * gnulib/import/msvc-inval.h: Update.
351 * gnulib/import/msvc-nothrow.c: Update.
352 * gnulib/import/msvc-nothrow.h: Update.
353 * gnulib/import/open.c: Update.
354 * gnulib/import/openat-die.c: Update.
355 * gnulib/import/openat-priv.h: Update.
356 * gnulib/import/openat-proc.c: Update.
357 * gnulib/import/openat.c: Update.
358 * gnulib/import/openat.h: Update.
359 * gnulib/import/opendir.c: Update.
360 * gnulib/import/pathmax.h: Update.
361 * gnulib/import/pipe-safer.c: Update.
362 * gnulib/import/rawmemchr.c: Update.
363 * gnulib/import/readdir.c: Update.
364 * gnulib/import/readlink.c: Update.
365 * gnulib/import/realloc.c: Update.
366 * gnulib/import/ref-add.sin: Update.
367 * gnulib/import/ref-del.sin: Update.
368 * gnulib/import/rename.c: Update.
369 * gnulib/import/rewinddir.c: Update.
370 * gnulib/import/rmdir.c: Update.
371 * gnulib/import/same-inode.h: Update.
372 * gnulib/import/save-cwd.c: Update.
373 * gnulib/import/save-cwd.h: Update.
374 * gnulib/import/scratch_buffer.h: Update.
375 * gnulib/import/secure_getenv.c: Update.
376 * gnulib/import/setenv.c: Update.
377 * gnulib/import/signal.in.h: Update.
378 * gnulib/import/stat-time.c: Update.
379 * gnulib/import/stat-time.h: Update.
380 * gnulib/import/stat-w32.c: Update.
381 * gnulib/import/stat-w32.h: Update.
382 * gnulib/import/stat.c: Update.
383 * gnulib/import/stdbool.in.h: Update.
384 * gnulib/import/stddef.in.h: Update.
385 * gnulib/import/stdint.in.h: Update.
386 * gnulib/import/stdio.in.h: Update.
387 * gnulib/import/stdlib.in.h: Update.
388 * gnulib/import/str-two-way.h: Update.
389 * gnulib/import/strchrnul.c: Update.
390 * gnulib/import/strdup.c: Update.
391 * gnulib/import/streq.h: Update.
392 * gnulib/import/strerror-override.c: Update.
393 * gnulib/import/strerror-override.h: Update.
394 * gnulib/import/strerror.c: Update.
395 * gnulib/import/string.in.h: Update.
396 * gnulib/import/stripslash.c: Update.
397 * gnulib/import/strnlen1.c: Update.
398 * gnulib/import/strnlen1.h: Update.
399 * gnulib/import/strstr.c: Update.
400 * gnulib/import/strtok_r.c: Update.
401 * gnulib/import/sys_stat.in.h: Update.
402 * gnulib/import/sys_time.in.h: Update.
403 * gnulib/import/sys_types.in.h: Update.
404 * gnulib/import/tempname.c: Update.
405 * gnulib/import/tempname.h: Update.
406 * gnulib/import/time.in.h: Update.
407 * gnulib/import/unistd--.h: Update.
408 * gnulib/import/unistd-safer.h: Update.
409 * gnulib/import/unistd.in.h: Update.
410 * gnulib/import/unsetenv.c: Update.
411 * gnulib/import/verify.h: Update.
412 * gnulib/import/extra/snippet/warn-on-use.h: Update.
413 * gnulib/import/wchar.in.h: Update.
414 * gnulib/import/wctype.in.h: Update.
415 * gnulib/import/xalloc-oversized.h: Update.
416 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
417 "53e2c179f26a890fa6685af4b6c1397ee370433b".
419 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
421 * record-btrace.c (get_thread_current_frame): Remove
424 2018-09-10 Jerome Guitton <guitton@adacore.com>
426 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
427 with check_tag to 1 if and only if the type is tagged and the
428 component being searched cannot been found in the current
429 view. Otherwise, always call ada_to_fixed_type with
432 2018-09-10 Xavier Roirand <roirand@adacore.com>
434 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
436 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
437 * ada-varobj.c (ada_varobj_get_number_of_children,
438 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
440 2018-09-10 Xavier Roirand <roirand@adacore.com>
442 * ada-valprint.c (ada_value_print): Use type instead of
445 2018-09-10 Xavier Roirand <roirand@adacore.com>
447 * ada-lang.c (ada_value_subscript): Handle case when parameter is
448 an array of access to unconstrained array.
450 2018-09-10 Xavier Roirand <roirand@adacore.com>
452 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
453 (ada_check_typedef): Use it.
455 2018-09-10 Xavier Roirand <roirand@adacore.com>
457 * ada-varobj.c (ada_varobj_describe_struct_child)
458 (ada_varobj_describe_child): Handle union case like struct one.
460 2018-09-10 Tom Tromey <tom@tromey.com>
463 * python/python.c (_initialize_python): Make example in "python"
464 help work in Python 3.
466 2018-09-10 Eli Zaretskii <eliz@gnu.org>
468 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
469 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
470 $(EXEEXT) to the script, as it is not a program.
472 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
474 * python/py-prettyprint.c (pretty_print_one_value): Return
476 (print_string_repr): Adjust.
477 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
478 * python/python-internal.h (apply_varobj_pretty_printer): Return
480 * varobj.c (varobj_value_get_print_value): Adjust.
482 2018-09-08 Tom Tromey <tom@tromey.com>
485 * python/py-prettyprint.c (pretty_print_one_value): Check for
488 2018-09-08 Joel Brobecker <brobecker@adacore.com>
490 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
491 replace_operator_with_call.
493 2018-09-08 Joel Brobecker <brobecker@adacore.com>
495 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
497 2018-09-08 Joel Brobecker <brobecker@adacore.com>
499 * ada-typeprint.c (print_range): Print the bounds using TYPE
500 rather than its TYPE_TARGET_TYPE.
502 2018-09-08 Joel Brobecker <brobecker@adacore.com>
504 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
505 call to ada_to_fixed_value_create.
507 2018-09-08 Jerome Guitton <guitton@adacore.com>
509 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
511 2018-09-08 Joel Brobecker <brobecker@adacore.com>
513 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
516 2018-09-08 Joel Brobecker <brobecker@adacore.com>
518 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
519 Move update of loop variable "fi".
521 2018-09-08 Joel Brobecker <brobecker@adacore.com>
523 * ada-lang.c (value_assign_to_component): In the case of
524 big-endian targets, extract the bits of the given VAL
525 using an src_offset of zero if container is not a scalar.
527 2018-09-06 Simon Ser <contact@emersion.fr>
530 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
531 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
532 * fbsd-tdep.c (fbsd_make_note_desc): New.
533 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
534 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
535 * target.h (enum target_object) Add FreeBSD-specific
536 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
538 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
540 * compile/compile-c.h (generate_c_for_variable_locations):
541 Change reference to pointer.
542 * compile/compile-c-support.c (compile_program) <compute>:
544 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
545 (generate_c_for_for_one_variable): Likewise
546 (generate_c_for_variable_locations): Likewise
547 * compile/compile-c-types.c (compile_c_instance::convert_type):
549 * compile/compile-cplus-symbols.c (convert_one_symbol):
550 std::move the scope passed to enter_scope.
551 * compile/compile-cplus-types.c
552 (compile_cplus_instance::enter_scope): Make parameter
554 (compile_cplus_instance::new_scope): Change reference to
556 (compile_cplus_instance::convert_type): Likewise
557 (compile_cplus_convert_typedef): std::move the scope passed to
559 (compile_cplus_convert_struct_or_union): Likewise.
560 (compile_cplus_convert_enum): Likewise.
561 (compile_cplus_convert_namespace): Likewise.
562 * compile/compile-cplus.h (compile_cplus_instance)
563 <enter_scope>: Make parameter rvalue-reference.
564 * compile/compile-internal.h (compile_instance)
565 <get_cached_type>: Likewise
566 * compile/compile-loc2c.c (push): Likewise
570 (print_label): Likewise
571 (pushf_register_address): Likewise
572 (pushf_register): Likewise
573 (do_compile_dwarf_expr_to_c): Likewise
574 (compile_dwarf_expr_to_c): Likewise
575 (compile_dwarf_bounds_to_c): Likewise
576 * compile/compile.c (compile_instance::get_cached_type):
578 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
579 (compile_dwarf_bounds_to_c): Likewise
580 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
581 (dwarf2_compile_property_to_c): Likewise
582 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
583 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
586 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
588 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
589 * tui/tui-data.c (init_content_element): Don't initialize it.
591 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
593 * tui/tui-data.h (struct tui_win_info)
594 <detail::opaque>: Remove.
595 * tui/tui-data.c (init_win_info): Remove assignment.
597 2018-09-05 Tom Tromey <tom@tromey.com>
599 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
601 * target-float.c (host_float_ops<T>::to_string)
602 (host_float_ops<T>::from_string): Use
603 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
604 * configure: Rebuild.
606 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
608 * printcmd.c (printf_c_string): Use
609 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
610 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
612 2018-09-05 Tom Tromey <tom@tromey.com>
614 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
616 2018-09-05 Tom de Vries <tdevries@suse.de>
618 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
619 with resolve_abstract_p == true.
620 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
621 defaulting to false. Propagate resolve_abstract_p to
622 dwarf2_fetch_die_loc_sect_off.
623 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
624 parameter, defaulting to false.
625 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
626 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
628 * dwarf2read.h (struct die_info): Forward-declare.
629 (die_info_ptr): New typedef.
630 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
632 2018-09-05 Joel Brobecker <brobecker@adacore.com>
636 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
637 Pedro Alves <palves@redhat.com>
639 * gnulib/Makefile.in (aclocal_m4_deps): Move to
640 "aclocal-m4-deps.mk". Include file here.
641 $(srcdir)/aclocal.m4: Add "configure.ac".
642 * gnulib/aclocal-m4-deps.mk: New file.
643 * gnulib/update-gnulib.sh: Automatically update
644 "aclocal-m4-deps.mk".
646 2018-09-04 Tom Tromey <tom@tromey.com>
648 * configure: Rebuild.
649 * configure.ac: Remove multi-ice code.
651 2018-09-04 Tom Tromey <tom@tromey.com>
653 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
656 2018-09-04 Tom Tromey <tom@tromey.com>
658 * Makefile.in (printcmd.o, target-float.o): Remove.
659 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
661 2018-09-04 Tom Tromey <tom@tromey.com>
663 * gnulib/Makefile.in: Remove obsolete comment.
664 * Makefile.in: Remove obsolete comment.
666 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
668 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
671 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
673 * riscv-tdep.c: Add 'prologue-value.h' include.
674 (struct riscv_unwind_cache): New struct.
675 (riscv_debug_unwinder): New global.
676 (riscv_scan_prologue): Update arguments, capture register details
678 (riscv_skip_prologue): Reformat arguments line, move end of
679 prologue calculation into riscv_scan_prologue.
680 (riscv_frame_cache): Update return type, create
681 riscv_unwind_cache, scan the prologue, and fill in remaining cache
683 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
684 (riscv_frame_prev_register): Use the trad_frame within the
686 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
689 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
691 * trad-frame.h (trad_frame_set_realreg): Declare.
692 (trad_frame_set_addr): Declare.
693 * trad-frame.c (trad_frame_set_realreg): Define new function.
694 (trad_frame_set_addr): Define new function.
695 (trad_frame_set_reg_realreg): Use new function.
696 (trad_frame_set_reg_addr): Use new function.
698 2018-09-01 Keith Seitz <keiths@redhat.com>
700 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
701 pulongest instead of "%lld".
702 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
705 2018-08-31 Tom Tromey <tom@tromey.com>
707 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
710 2018-08-31 Pedro Alves <palves@redhat.com>
712 * gdbarch.h: Regenerate.
714 2018-08-31 Pedro Alves <palves@redhat.com>
716 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
717 * target.h (Hardware watchpoint interfaces): Describe
718 continuable/steppable/non-steppable watchpoints.
719 * gdbarch.h, gdbarch.c: Regenerate.
721 2018-08-31 Pedro Alves <palves@redhat.com>
723 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
726 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
727 * target.h (target_ops::have_continuable_watchpoint): Delete.
728 (target_have_continuable_watchpoint): Delete.
729 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
730 * target-delegates.c: Regenerate.
732 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
734 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
735 the files present in "gnulib/import/m4/".
737 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
739 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
740 c.sw, c.swsp, and c.sdsp.
742 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
744 * riscv-tdep.c (struct riscv_inferior_data): Delete.
745 (riscv_read_misa_reg): Don't cache value read into inferior data.
746 (riscv_new_inferior_data): Delete.
747 (riscv_inferior_data_cleanup): Delete.
748 (riscv_inferior_data): Delete.
749 (riscv_invalidate_inferior_data): Delete.
750 (_initialize_riscv_tdep): Remove initialisation of inferior data.
752 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
754 * compile/compile-cplus-types.c
755 (compile_cplus_instance::leave_scope): Take the address of scope
757 (compile_cplus_instance::convert_qualified_base): Compare quals
760 2018-08-30 Keith Seitz <keiths@redhat.com>
762 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
763 Use "%s" and host_address_to_string instead of "%p" in printf.
765 2018-08-29 Keith Seitz <keiths@redhat.com>
767 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
768 and compile-cplus-types.c.
769 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
770 * c-lang.c (cplus_language_defn): Set C++ compile functions.
771 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
773 * compile/compile-c-support.c: Include compile-cplus.h.
774 (load_libcompile): Templatize.
775 (get_compile_context): "New" function.
776 (c_get_compile_context): Use get_compile_context.
777 (cplus_get_compile_context): New function.
778 (cplus_push_user_expression, cplus_pop_user_expression)
779 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
780 (cplus_compute_program): Define new structs/functions.
781 * compile/compile-cplus-symmbols.c: New file.
782 * compile/compile-cplus-types.c: New file.
783 * compile/compile-cplus.h: New file.
784 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
786 * compile/compile-object-load.c (get_out_value_type): Use
787 strncmp_iw when comparing symbol names.
788 (compile_object_load): Add mst_bss and mst_data.
789 * compile/compile.c (_initialize_compile): Remove
790 -Wno-implicit-function-declaration from `compile_args'.
791 * compile/gcc-cp-plugin.h: New file.
792 * NEWS: Mention C++ compile support and new debug options.
794 2018-08-29 Keith Seitz <keiths@redhat.com>
796 * linespec.c (collect_info::add_symbol): Make virtual.
797 (struct symbol_searcher_collect_info): New struct.
798 (symbol_searcher::find_all_symbols): New method.
799 * symtab.h (class symbol_searcher): New class.
801 2018-08-29 Keith Seitz <keiths@redhat.com>
803 * linespec.c (struct linespec) <function_symbols, label_symbols>:
804 Change to vector of block_symbol. Update all users.
805 (struct collect_info) <symbols>: Likewise.
806 (collect_info::add_symbol): Take block_symbol as argument.
808 (decode_compound_collector) <m_symbols>: Change type to vector
809 of block_symbol. Update all users.
810 (decode_compound_collector::operator ()): Change parameter type
812 (find_method, find_function_symbols, find_linespec_symbols)
813 (find_label_symbols_in_block, find_label_symbols): Change symbol
814 vectors to block_symbol vectors.
815 * symtab.h (symbol_found_callback_ftype): Change parameter type to
818 2018-08-29 Keith Seitz <keiths@redhat.com>
820 * linespec.c (symbolp): Remove typedef and VEC definitions.
821 (bound_minimal_symbol_d): Likewise.
823 2018-08-29 Keith Seitz <keiths@redhat.com>
825 * linespec.c (decode_compound_collector::decode_compound_collector):
826 Remove initialization for `m_symtabs'.
827 (decode_compound_collector::release_symbols): Change return type
828 to std::vector. Update all callers.
829 (class decode_compound_collector) <m_symbols>: Change type to
831 (lookup_prefix_sym): Change return type to std::vector. Update all
833 (compare_symbols): Remove.
834 (std_compare_symbols): Rename to `compare_symbols'.
835 (find_method): Change `sym_classes' parameter to std::vector.
836 Update all callers. Use std::sort to sort sym_classes.
837 (find_linespec_symbols): Remove cleanup.
839 2018-08-29 Keith Seitz <keiths@redhat.com>
841 * linespec.c (struct linespec) <minimal_symbols>: Change type to
842 std::vector. Update all users.
843 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
844 (struct collect_info) <minimal_symbols>: Likewise.
845 (compare_msymbols): Return bool. Change parameters to const
846 bound_minimal_symbol references.
847 (find_method, find_function_symbols, find_linespec_symbols): Change
848 `minsyms' parameter to std::vector. Update all callers.
850 2018-08-29 Keith Seitz <keiths@redhat.com>
852 * linespec.c (struct linespec) <label_symbols>: Change type to
853 std::vector. Update all users.
854 (find_label_symbols_in_block): Change `result' parameter to
855 std::vector. Update all callers.
856 (find_label_symbols): Return std::vector. Update all callers.
858 2018-08-29 Keith Seitz <keiths@redhat.com>
860 * linespec.c (struct linespec) <function_symbols>: Change type to
861 std::vector. Update all users.
862 (struct collect_info) <function_symbols>: Likewise.
863 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
864 (std_compare_symbols): New function.
865 (find_method, find_function_symbols, find_linespec_symbols)
866 (find_label_symbols_in_block): Change `symbols' parameter to
867 std::vector. Update all callers.
868 (find_label_symbols): Likewise for `function_symbols' and
871 2018-08-29 Keith Seitz <keiths@redhat.com>
873 * linespec.c (symtab_vector_up): Define.
874 (struct linespec) <file_symtabs>: Change type to std::vector *.
876 (struct collect_info) <file_symtabs>: Likewise.
877 (collect_symtabs_from_filename): Return symtab_vector_up.
879 (decode_objc): Remove cleanup.
880 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
881 (symtab_collector::release_symtabs): Return symtab_vector_up.
883 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
885 (collect_symtabs_from_filename, symtabs_from_filename): Return
886 symtab_vector_up. Update all callers.
888 2018-08-29 Tom Tromey <tom@tromey.com>
890 * csky-tdep.c (csky_analyze_prologue): Use
891 core_addr_to_string_nz.
893 2018-08-29 Tom Tromey <tom@tromey.com>
895 * windows-nat.c (struct xlate_exception) <them>: Change type to
897 (xlate): Fix formatting. Remove last entry.
898 (struct xlate_exception, xlate): Comment out.
899 (windows_nat_target::resume): Use ranged for.
901 2018-08-29 Jim Wilson <jimw@sifive.com>
903 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
904 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
906 (riscv_linux_nat_target::store_registers): Likewise.
908 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
912 * gnulib/aclocal.m4: Regenerate.
913 * gnulib/config.in: Regenerate.
914 * gnulib/configure: Regenerate.
915 * gnulib/import/Makefile.am: Update.
916 * gnulib/import/Makefile.in: Update.
917 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
918 * gnulib/import/_Noreturn.h: ... this.
919 * gnulib/import/alloca.in.h: Update.
920 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
921 * gnulib/import/arg-nonnull.h: ... this.
922 * gnulib/import/assure.h: Update.
923 * gnulib/import/at-func.c: Update.
924 * gnulib/import/basename-lgpl.c: Update.
925 * gnulib/import/extra/snippet/c++defs.h: Rename to...
926 * gnulib/import/c++defs.h: ... this.
927 * gnulib/import/canonicalize-lgpl.c: Update.
928 * gnulib/import/cdefs.h: Update.
929 * gnulib/import/chdir-long.c: Update.
930 * gnulib/import/chdir-long.h: Update.
931 * gnulib/import/cloexec.c: Update.
932 * gnulib/import/cloexec.h: Update.
933 * gnulib/import/close.c: Update.
934 * gnulib/import/closedir.c: Update.
935 * gnulib/import/config.charset: Update.
936 * gnulib/import/dirent-private.h: Update.
937 * gnulib/import/dirent.in.h: Update.
938 * gnulib/import/dirfd.c: Update.
939 * gnulib/import/dirname-lgpl.c: Update.
940 * gnulib/import/dirname.h: Update.
941 * gnulib/import/dosname.h: Update.
942 * gnulib/import/dup-safer-flag.c: Update.
943 * gnulib/import/dup-safer.c: Update.
944 * gnulib/import/dup.c: Update.
945 * gnulib/import/dup2.c: Update.
946 * gnulib/import/errno.in.h: Update.
947 * gnulib/import/error.c: Update.
948 * gnulib/import/error.h: Update.
949 * gnulib/import/exitfail.c: Update.
950 * gnulib/import/exitfail.h: Update.
951 * gnulib/import/extra/update-copyright: Update.
952 * gnulib/import/fchdir.c: Update.
953 * gnulib/import/fcntl.c: Update.
954 * gnulib/import/fcntl.in.h: Update.
955 * gnulib/import/fd-hook.c: Update.
956 * gnulib/import/fd-hook.h: Update.
957 * gnulib/import/fd-safer-flag.c: Update.
958 * gnulib/import/fd-safer.c: Update.
959 * gnulib/import/fdopendir.c: Update.
960 * gnulib/import/filename.h: Update.
961 * gnulib/import/filenamecat-lgpl.c: Update.
962 * gnulib/import/filenamecat.h: Update.
963 * gnulib/import/flexmember.h: Update.
964 * gnulib/import/float+.h: Update.
965 * gnulib/import/float.c: Update.
966 * gnulib/import/float.in.h: Update.
967 * gnulib/import/fnmatch.c: Update.
968 * gnulib/import/fnmatch.in.h: Update.
969 * gnulib/import/fnmatch_loop.c: Update.
970 * gnulib/import/fpucw.h: Update.
971 * gnulib/import/frexp.c: Update.
972 * gnulib/import/frexpl.c: Update.
973 * gnulib/import/fstat.c: Update.
974 * gnulib/import/fstatat.c: Update.
975 * gnulib/import/getcwd-lgpl.c: Update.
976 * gnulib/import/getcwd.c: Update.
977 * gnulib/import/getdtablesize.c: Update.
978 * gnulib/import/getlogin_r.c: Update.
979 * gnulib/import/getprogname.c: Update.
980 * gnulib/import/getprogname.h: Update.
981 * gnulib/import/gettext.h: Update.
982 * gnulib/import/gettimeofday.c: Update.
983 * gnulib/import/glob-libc.h: Update.
984 * gnulib/import/glob.c: Update.
985 * gnulib/import/glob.in.h: Update.
986 * gnulib/import/glob_internal.h: Update.
987 * gnulib/import/glob_pattern_p.c: Update.
988 * gnulib/import/globfree.c: Update.
989 * gnulib/import/hard-locale.c: Update.
990 * gnulib/import/hard-locale.h: Update.
991 * gnulib/import/intprops.h: Update.
992 * gnulib/import/inttypes.in.h: Update.
993 * gnulib/import/isnan.c: Update.
994 * gnulib/import/isnand-nolibm.h: Update.
995 * gnulib/import/isnand.c: Update.
996 * gnulib/import/isnanl-nolibm.h: Update.
997 * gnulib/import/isnanl.c: Update.
998 * gnulib/import/itold.c: Update.
999 * gnulib/import/libc-config.h: Update.
1000 * gnulib/import/limits.in.h: Update.
1001 * gnulib/import/localcharset.c: Update.
1002 * gnulib/import/localcharset.h: Update.
1003 * gnulib/import/localtime-buffer.c: Update.
1004 * gnulib/import/localtime-buffer.h: Update.
1005 * gnulib/import/lstat.c: Update.
1006 * gnulib/import/m4/00gnulib.m4: Update.
1007 * gnulib/import/m4/__inline.m4: Update.
1008 * gnulib/import/m4/absolute-header.m4: Update.
1009 * gnulib/import/m4/alloca.m4: Update.
1010 * gnulib/import/m4/builtin-expect.m4: Update.
1011 * gnulib/import/m4/canonicalize.m4: Update.
1012 * gnulib/import/m4/chdir-long.m4: Update.
1013 * gnulib/import/m4/close.m4: Update.
1014 * gnulib/import/m4/closedir.m4: Update.
1015 * gnulib/import/m4/configmake.m4: Update.
1016 * gnulib/import/m4/d-ino.m4: Update.
1017 * gnulib/import/m4/d-type.m4: Update.
1018 * gnulib/import/m4/dirent_h.m4: Update.
1019 * gnulib/import/m4/dirfd.m4: Update.
1020 * gnulib/import/m4/dirname.m4: Update.
1021 * gnulib/import/m4/double-slash-root.m4: Update.
1022 * gnulib/import/m4/dup.m4: Update.
1023 * gnulib/import/m4/dup2.m4: Update.
1024 * gnulib/import/m4/eealloc.m4: Update.
1025 * gnulib/import/m4/environ.m4: Update.
1026 * gnulib/import/m4/errno_h.m4: Update.
1027 * gnulib/import/m4/error.m4: Update.
1028 * gnulib/import/m4/exponentd.m4: Update.
1029 * gnulib/import/m4/exponentl.m4: Update.
1030 * gnulib/import/m4/extensions.m4: Update.
1031 * gnulib/import/m4/extern-inline.m4: Update.
1032 * gnulib/import/m4/fchdir.m4: Update.
1033 * gnulib/import/m4/fcntl-o.m4: Update.
1034 * gnulib/import/m4/fcntl.m4: Update.
1035 * gnulib/import/m4/fcntl_h.m4: Update.
1036 * gnulib/import/m4/fdopendir.m4: Update.
1037 * gnulib/import/m4/filenamecat.m4: Update.
1038 * gnulib/import/m4/flexmember.m4: Update.
1039 * gnulib/import/m4/float_h.m4: Update.
1040 * gnulib/import/m4/fnmatch.m4: Update.
1041 * gnulib/import/m4/fnmatch_h.m4: Update.
1042 * gnulib/import/m4/fpieee.m4: Update.
1043 * gnulib/import/m4/frexp.m4: Update.
1044 * gnulib/import/m4/frexpl.m4: Update.
1045 * gnulib/import/m4/fstat.m4: Update.
1046 * gnulib/import/m4/fstatat.m4: Update.
1047 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1048 * gnulib/import/m4/getcwd-path-max.m4: Update.
1049 * gnulib/import/m4/getcwd.m4: Update.
1050 * gnulib/import/m4/getdtablesize.m4: Update.
1051 * gnulib/import/m4/getlogin.m4: Update.
1052 * gnulib/import/m4/getlogin_r.m4: Update.
1053 * gnulib/import/m4/getpagesize.m4: Update.
1054 * gnulib/import/m4/getprogname.m4: Update.
1055 * gnulib/import/m4/gettimeofday.m4: Update.
1056 * gnulib/import/m4/glibc21.m4: Update.
1057 * gnulib/import/m4/glob.m4: Update.
1058 * gnulib/import/m4/glob_h.m4: Update.
1059 * gnulib/import/m4/gnulib-cache.m4: Update.
1060 * gnulib/import/m4/gnulib-common.m4: Update.
1061 * gnulib/import/m4/gnulib-comp.m4: Update.
1062 * gnulib/import/m4/gnulib-tool.m4: Update.
1063 * gnulib/import/m4/hard-locale.m4: Update.
1064 * gnulib/import/m4/include_next.m4: Update.
1065 * gnulib/import/m4/inttypes-pri.m4: Update.
1066 * gnulib/import/m4/inttypes.m4: Update.
1067 * gnulib/import/m4/isnand.m4: Update.
1068 * gnulib/import/m4/isnanl.m4: Update.
1069 * gnulib/import/m4/largefile.m4: Update.
1070 * gnulib/import/m4/limits-h.m4: Update.
1071 * gnulib/import/m4/localcharset.m4: Update.
1072 * gnulib/import/m4/locale-fr.m4: Update.
1073 * gnulib/import/m4/locale-ja.m4: Update.
1074 * gnulib/import/m4/locale-zh.m4: Update.
1075 * gnulib/import/m4/localtime-buffer.m4: Update.
1076 * gnulib/import/m4/longlong.m4: Update.
1077 * gnulib/import/m4/lstat.m4: Update.
1078 * gnulib/import/m4/malloc.m4: Update.
1079 * gnulib/import/m4/malloca.m4: Update.
1080 * gnulib/import/m4/math_h.m4: Update.
1081 * gnulib/import/m4/mbrtowc.m4: Update.
1082 * gnulib/import/m4/mbsinit.m4: Update.
1083 * gnulib/import/m4/mbsrtowcs.m4: Update.
1084 * gnulib/import/m4/mbstate_t.m4: Update.
1085 * gnulib/import/m4/memchr.m4: Update.
1086 * gnulib/import/m4/memmem.m4: Update.
1087 * gnulib/import/m4/mempcpy.m4: Update.
1088 * gnulib/import/m4/memrchr.m4: Update.
1089 * gnulib/import/m4/mkdir.m4: Update.
1090 * gnulib/import/m4/mkstemp.m4: Update.
1091 * gnulib/import/m4/mmap-anon.m4: Update.
1092 * gnulib/import/m4/mode_t.m4: Update.
1093 * gnulib/import/m4/msvc-inval.m4: Update.
1094 * gnulib/import/m4/msvc-nothrow.m4: Update.
1095 * gnulib/import/m4/multiarch.m4: Update.
1096 * gnulib/import/m4/nocrash.m4: Update.
1097 * gnulib/import/m4/off_t.m4: Update.
1098 * gnulib/import/m4/onceonly.m4: Update.
1099 * gnulib/import/m4/open-cloexec.m4: Update.
1100 * gnulib/import/m4/open.m4: Update.
1101 * gnulib/import/m4/openat.m4: Update.
1102 * gnulib/import/m4/opendir.m4: Update.
1103 * gnulib/import/m4/pathmax.m4: Update.
1104 * gnulib/import/m4/rawmemchr.m4: Update.
1105 * gnulib/import/m4/readdir.m4: Update.
1106 * gnulib/import/m4/readlink.m4: Update.
1107 * gnulib/import/m4/realloc.m4: Update.
1108 * gnulib/import/m4/rename.m4: Update.
1109 * gnulib/import/m4/rewinddir.m4: Update.
1110 * gnulib/import/m4/rmdir.m4: Update.
1111 * gnulib/import/m4/save-cwd.m4: Update.
1112 * gnulib/import/m4/secure_getenv.m4: Update.
1113 * gnulib/import/m4/setenv.m4: Update.
1114 * gnulib/import/m4/signal_h.m4: Update.
1115 * gnulib/import/m4/ssize_t.m4: Update.
1116 * gnulib/import/m4/stat-time.m4: Update.
1117 * gnulib/import/m4/stat.m4: Update.
1118 * gnulib/import/m4/std-gnu11.m4: Update.
1119 * gnulib/import/m4/stdbool.m4: Update.
1120 * gnulib/import/m4/stddef_h.m4: Update.
1121 * gnulib/import/m4/stdint.m4: Update.
1122 * gnulib/import/m4/stdio_h.m4: Update.
1123 * gnulib/import/m4/stdlib_h.m4: Update.
1124 * gnulib/import/m4/strchrnul.m4: Update.
1125 * gnulib/import/m4/strdup.m4: Update.
1126 * gnulib/import/m4/strerror.m4: Update.
1127 * gnulib/import/m4/string_h.m4: Update.
1128 * gnulib/import/m4/strstr.m4: Update.
1129 * gnulib/import/m4/strtok_r.m4: Update.
1130 * gnulib/import/m4/sys_socket_h.m4: Update.
1131 * gnulib/import/m4/sys_stat_h.m4: Update.
1132 * gnulib/import/m4/sys_time_h.m4: Update.
1133 * gnulib/import/m4/sys_types_h.m4: Update.
1134 * gnulib/import/m4/tempname.m4: Update.
1135 * gnulib/import/m4/time_h.m4: Update.
1136 * gnulib/import/m4/unistd-safer.m4: Update.
1137 * gnulib/import/m4/unistd_h.m4: Update.
1138 * gnulib/import/m4/warn-on-use.m4: Update.
1139 * gnulib/import/m4/wchar_h.m4: Update.
1140 * gnulib/import/m4/wchar_t.m4: Update.
1141 * gnulib/import/m4/wctype_h.m4: Update.
1142 * gnulib/import/m4/wint_t.m4: Update.
1143 * gnulib/import/malloc.c: Update.
1144 * gnulib/import/malloc/scratch_buffer.h: Update.
1145 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1146 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1147 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1148 * gnulib/import/malloca.c: Update.
1149 * gnulib/import/malloca.h: Update.
1150 * gnulib/import/malloca.valgrind: Update.
1151 * gnulib/import/math.in.h: Update.
1152 * gnulib/import/mbrtowc.c: Update.
1153 * gnulib/import/mbsinit.c: Update.
1154 * gnulib/import/mbsrtowcs-impl.h: Update.
1155 * gnulib/import/mbsrtowcs-state.c: Update.
1156 * gnulib/import/mbsrtowcs.c: Update.
1157 * gnulib/import/memchr.c: Update.
1158 * gnulib/import/memmem.c: Update.
1159 * gnulib/import/mempcpy.c: Update.
1160 * gnulib/import/memrchr.c: Update.
1161 * gnulib/import/mkdir.c: Update.
1162 * gnulib/import/mkstemp.c: Update.
1163 * gnulib/import/msvc-inval.c: Update.
1164 * gnulib/import/msvc-inval.h: Update.
1165 * gnulib/import/msvc-nothrow.c: Update.
1166 * gnulib/import/msvc-nothrow.h: Update.
1167 * gnulib/import/open.c: Update.
1168 * gnulib/import/openat-die.c: Update.
1169 * gnulib/import/openat-priv.h: Update.
1170 * gnulib/import/openat-proc.c: Update.
1171 * gnulib/import/openat.c: Update.
1172 * gnulib/import/openat.h: Update.
1173 * gnulib/import/opendir.c: Update.
1174 * gnulib/import/pathmax.h: Update.
1175 * gnulib/import/pipe-safer.c: Update.
1176 * gnulib/import/rawmemchr.c: Update.
1177 * gnulib/import/readdir.c: Update.
1178 * gnulib/import/readlink.c: Update.
1179 * gnulib/import/realloc.c: Update.
1180 * gnulib/import/ref-add.sin: Update.
1181 * gnulib/import/ref-del.sin: Update.
1182 * gnulib/import/rename.c: Update.
1183 * gnulib/import/rewinddir.c: Update.
1184 * gnulib/import/rmdir.c: Update.
1185 * gnulib/import/same-inode.h: Update.
1186 * gnulib/import/save-cwd.c: Update.
1187 * gnulib/import/save-cwd.h: Update.
1188 * gnulib/import/scratch_buffer.h: Update.
1189 * gnulib/import/secure_getenv.c: Update.
1190 * gnulib/import/setenv.c: Update.
1191 * gnulib/import/signal.in.h: Update.
1192 * gnulib/import/stat-time.c: Update.
1193 * gnulib/import/stat-time.h: Update.
1194 * gnulib/import/stat-w32.c: Update.
1195 * gnulib/import/stat-w32.h: Update.
1196 * gnulib/import/stat.c: Update.
1197 * gnulib/import/stdbool.in.h: Update.
1198 * gnulib/import/stddef.in.h: Update.
1199 * gnulib/import/stdint.in.h: Update.
1200 * gnulib/import/stdio.in.h: Update.
1201 * gnulib/import/stdlib.in.h: Update.
1202 * gnulib/import/str-two-way.h: Update.
1203 * gnulib/import/strchrnul.c: Update.
1204 * gnulib/import/strdup.c: Update.
1205 * gnulib/import/streq.h: Update.
1206 * gnulib/import/strerror-override.c: Update.
1207 * gnulib/import/strerror-override.h: Update.
1208 * gnulib/import/strerror.c: Update.
1209 * gnulib/import/string.in.h: Update.
1210 * gnulib/import/stripslash.c: Update.
1211 * gnulib/import/strnlen1.c: Update.
1212 * gnulib/import/strnlen1.h: Update.
1213 * gnulib/import/strstr.c: Update.
1214 * gnulib/import/strtok_r.c: Update.
1215 * gnulib/import/sys_stat.in.h: Update.
1216 * gnulib/import/sys_time.in.h: Update.
1217 * gnulib/import/sys_types.in.h: Update.
1218 * gnulib/import/tempname.c: Update.
1219 * gnulib/import/tempname.h: Update.
1220 * gnulib/import/time.in.h: Update.
1221 * gnulib/import/unistd--.h: Update.
1222 * gnulib/import/unistd-safer.h: Update.
1223 * gnulib/import/unistd.in.h: Update.
1224 * gnulib/import/unsetenv.c: Update.
1225 * gnulib/import/verify.h: Update.
1226 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1227 * gnulib/import/wchar.in.h: Update.
1228 * gnulib/import/wctype.in.h: Update.
1229 * gnulib/import/xalloc-oversized.h: Update.
1230 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1231 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1233 2018-08-16 Gary Benson <gbenson@redhat.com>
1236 * gdb/main.c (captured_main_1): Exit with nonzero status
1237 in batch mode if the last command to be executed failed.
1238 * NEWS: Mention the above.
1240 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1242 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1243 end of warning message.
1245 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1248 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1249 (aarch64_extract_return_value): Use
1250 aapcs_is_vfp_call_or_return_candidate.
1251 (aarch64_return_in_memory): Likewise.
1252 (aarch64_store_return_value): Likewise.
1254 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1257 (aapcs_is_vfp_call_or_return_candidate): Make static
1258 (pass_in_v_or_stack): Remove function.
1259 (pass_in_v_vfp_candidate): New function.
1260 (aarch64_push_dummy_call): Check for float register candidates.
1262 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1264 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1265 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1266 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1268 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1271 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1272 (struct ipa_sym_addresses): Rename to...
1273 (struct ipa_sym_addresses_common): ... this.
1274 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1276 2018-08-28 Tom Tromey <tom@tromey.com>
1278 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1279 (token_fifo): Now a std::vector.
1280 (yylex, c_parse): Update.
1281 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1282 (token_fifo): Now a std::vector.
1283 (yylex, d_parse): Update.
1284 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1285 (token_fifo): Now a std::vector.
1286 (yylex, go_parse): Update.
1288 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1290 * parser-defs.h (struct type_stack) <elements>: Change type to
1291 std::vector<union type_stack_elt>.
1292 <depth, size>: Remove.
1293 * parse.c (parse_exp_in_context_1): Adjust.
1294 (type_stack_reserve): Remove.
1295 (check_type_stack_depth): Remove.
1296 (insert_into_type_stack): Adjust to std::vector.
1297 (insert_type): Likewise.
1298 (push_type): Likewise.
1299 (push_type_int): Likewise.
1300 (insert_type_address_space): Likewise.
1301 (pop_type): Likewise.
1302 (pop_type_int): Likewise.
1303 (pop_typelist): Likewise.
1304 (pop_type_stack): Likewise.
1305 (append_type_stack): Likewise.
1306 (push_type_stack): Likewise.
1307 (get_type_stack): Likewise.
1308 (type_stack_cleanup): Likewise.
1309 (push_typelist): Likewise.
1310 (follow_types): Likewise.
1311 (_initialize_parse): Likewise.
1313 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1315 * NEWS: Mention csky target.
1317 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1318 Hafiz Abid Qadeer <abidh@codesourcery.com>
1319 Don Breazeal <donb@codesourcery.com>
1321 * csky-linux-tdep.c: New file.
1322 * csky-tdep.c: Likewise.
1323 * csky-tdep.h: Likewise.
1324 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1326 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1327 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1328 * configure.tgt: Add csky support.
1330 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1332 * python/py-framefilter.c (py_print_frame): Print frame architecture
1333 when printing on an MI output.
1335 2018-08-27 Tom Tromey <tom@tromey.com>
1338 * configure: Rebuild.
1339 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1341 2018-08-27 Tom Tromey <tom@tromey.com>
1343 * aarch64-linux-tdep.c
1344 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1347 2018-08-27 Tom Tromey <tom@tromey.com>
1349 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1351 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1352 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1353 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1354 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1357 2018-08-27 Tom Tromey <tom@tromey.com>
1359 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1360 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1362 2018-08-27 Tom Tromey <tom@tromey.com>
1364 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1365 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1367 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1369 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1371 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1372 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1373 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1375 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1376 (ppc64_linux_sigaction_tramp_frame)
1377 (ppc32_linux_sighandler_tramp_frame)
1378 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1379 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1380 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1381 * mn10300-linux-tdep.c (am33_linux_sigframe)
1382 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1383 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1384 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1385 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1386 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1387 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1388 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1389 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1390 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1391 * microblaze-linux-tdep.c
1392 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1393 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1394 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1395 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1396 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1397 * common/common-types.h (ULONGEST_MAX): New define.
1398 (CORE_ADDR_MAX): Fix formatting.
1399 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1400 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1401 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1402 (arm_linux_rt_sigreturn_tramp_frame)
1403 (arm_eabi_linux_sigreturn_tramp_frame)
1404 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1405 (thumb2_eabi_linux_sigreturn_tramp_frame)
1406 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1407 (arm_linux_restart_syscall_tramp_frame)
1408 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1409 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1410 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1412 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1414 2018-08-27 Tom Tromey <tom@tromey.com>
1416 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1418 * mips-tdep.c (mips_deal_with_atomic_sequence)
1419 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1420 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1421 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1422 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1424 * aarch64-tdep.c (aarch64_software_single_step): Use
1427 2018-08-27 Tom Tromey <tom@tromey.com>
1429 * linespec.c (complete_linespec_component): Add cast to "char".
1430 * completer.c (completion_tracker::build_completion_result): Add
1433 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1435 * solist.h (struct solist, struct target_so_ops): Fix
1438 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1440 * ada-tasks.c (ada_task_info_s): Remove typedef.
1441 (DEF_VEC_O(ada_task_info_s)): Remove.
1442 (struct ada_tasks_inferior_data): Initialize fields.
1443 <task_list>: Make an std::vector.
1444 (get_ada_tasks_inferior_data): Allocate with new.
1445 (ada_get_task_number): Adjust.
1446 (get_task_number_from_id): Likewise.
1447 (valid_task_id): Likewise.
1448 (ada_get_task_info_from_ptid): Likewise.
1449 (iterate_over_live_ada_tasks): Likewise.
1450 (add_ada_task): Likewise.
1451 (read_known_tasks): Likewise.
1452 (ada_build_task_list): Likewise.
1453 (print_ada_task_info): Likewise.
1454 (info_task): Likewise.
1455 (task_command_1): Likewise.
1457 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1459 * ada-lang.c (add_angle_brackets): Return std::string.
1461 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
1463 * python/py-threadevent.c (py_get_event_thread): Initialize
1466 2018-08-24 Pedro Alves <palves@redhat.com>
1468 * python/py-bpevent.c (create_breakpoint_event_object): Use
1469 copy-initialization.
1470 * python/py-continueevent.c (emit_continue_event): Use
1471 copy-initialization.
1472 * python/py-exitedevent.c (create_exited_event_object): Return a
1474 (emit_exited_event): Use copy-initialization.
1475 * python/py-inferior.c (python_new_inferior)
1476 (python_inferior_deleted, add_thread_object): Use
1477 copy-initialization.
1478 * python/py-infevents.c (create_inferior_call_event_object)
1479 (create_register_changed_event_object)
1480 (create_memory_changed_event_object): Return a gdbpy_ref<>.
1481 (emit_inferior_call_event, emit_memory_changed_event)
1482 (emit_register_changed_event): Use copy-initialization.
1483 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1484 Return a gdbpy_ref<>.
1485 (emit_new_objfile_event): Use copy-initialization.
1486 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
1487 (emit_clear_objfiles_event): Use copy-initialization.
1488 * python/py-signalevent.c (create_signal_event_object): Use
1489 copy-initialization.
1490 * python/py-threadevent.c (create_thread_event_object): Use
1491 copy-initialization.
1493 2018-08-24 Pedro Alves <palves@redhat.com>
1494 Simon Marchi <simon.marchi@ericsson.com>
1497 * python/py-continueevent.c: Include "gdbthread.h".
1498 (create_continue_event_object): Add intro comment. Add 'ptid'
1499 parameter. Use it to find thread to pass to
1500 create_thread_event_object.
1501 (emit_continue_event): Pass PTID down to
1502 create_continue_event_object.
1503 * python/py-event.h (py_get_event_thread): Declare.
1504 (create_thread_event_object): Remove default from 'thread'
1506 * python/py-stopevent.c (create_stop_event_object): Use
1507 py_get_event_thread.
1508 * python/py-threadevent.c (get_event_thread): Rename to ...
1509 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
1510 and use it to find the thread.
1511 (create_thread_event_object): Assert that THREAD isn't null.
1512 Don't find the event thread here.
1514 2018-08-23 Kevin Buettner <kevinb@redhat.com>
1516 * block.h (blockrange, blockranges): New struct declarations.
1517 (struct block): Add new field named `ranges'.
1518 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
1519 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
1520 macros for accessing ranges in struct block.
1521 (make_blockranges): New declaration.
1522 block.c (make_blockranges): New function.
1523 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
1525 * symtab.h (find_pc_partial_function): Add new parameter `block'.
1526 * blockframe.c (cache_pc_function_block): New static global.
1527 (clear_pc_function_cache): Clear cache_pc_function_block.
1528 (find_pc_partial_function): Move comment to symtab.h. Add
1529 support for non-contiguous blocks.
1530 * cli/cli-cmds.c (block.h): Include.
1531 (print_disassembly): Handle printing of non-contiguous blocks.
1532 (disassemble_current_function): Likewise.
1533 (disassemble_command): Likewise.
1535 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
1537 * blockframe.c (get_pc_function_start): Likewise.
1538 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
1539 (gcc_symbol_address): Likewise.
1540 * compile/compile-object-run.c (compile_object_run): Likewise.
1541 * compile/compile.c (get_expr_block_and_pc): Likewise.
1542 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
1543 (func_addr_to_tail_call_list): Likewise.
1544 * findvar.c (default_read_var_value): Likewise.
1545 * inline-frame.c (inline_frame_this_id): Likewise.
1546 (skip-inline_frames): Likewise.
1547 * infcmd.c (until_next_command): Likewise.
1548 * linespec.c (convert_linespec_to_sals): Likewise.
1549 * parse.c (parse_exp_in_context_1): Likewise.
1550 * printcmd.c (build_address_symbolic): likewise.
1551 (info_address_command): Likewise.
1552 symtab.c (find_function_start_sal): Likewise.
1553 (skip_prologue_sal): Likewise.
1554 (find_function_alias_target): Likewise.
1555 (find_gnu_ifunc): Likewise.
1556 * stack.c (find_frame_funname): Likewise.
1557 * symtab.c (fixup_symbol_section): Likewise.
1558 (find_function_start_sal): Likewise.
1559 (skip_prologue_sal): Likewsie.
1560 (find_function_alias_target): Likewise.
1561 (find_gnu_ifunc): Likewise.
1562 * tracepoint.c (info_scope_command): Likewise.
1563 * value.c (value_fn_field): Likewise.
1565 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
1566 in place of find_pc_partial_function.
1567 * blockframe.c (find_function_entry_range_from_pc): New function.
1568 * symtab.h (find_function_entry_range_from_pc): Declare and document.
1569 * objfiles.c (objfile_relocate1): Relocate start and end addresses
1570 for each range in a block.
1573 2018-08-23 Xavier Roirand <roirand@adacore.com>
1575 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
1578 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1580 * solib-svr4.c (read_program_headers_from_bfd): Return
1581 gdb::optional<gdb::byte_vector>.
1582 (svr4_exec_displacement): Adjust.
1584 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1586 * solib-svr4.c (read_program_header): Return
1587 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
1588 (find_program_interpreter): Return
1589 gdb::optional<gdb::byte_vector>.
1590 (scan_dyntag_auxv): Adjust.
1591 (enable_break): Adjust.
1592 (svr4_exec_displacement): Adjust.
1594 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1596 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
1597 * inf-child.c (inf_child_target::terminal_save_inferior): New.
1599 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1601 * guile/scm-string.c (gdbscm_scm_from_printf): Use
1603 * guile/scm-utils.c (gdbscm_printf): Likewise.
1604 * serial.c (serial_printf): Likewise.
1605 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
1607 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
1609 * stack.c (print_frame): Print frame architecture when printing on
1611 * NEWS: Mention new "arch" attribute in frame output.
1613 2018-08-21 Alan Hayward <alan.hayward@arm.com>
1615 * arch/aarch64.h (aarch64_regnum): Update comment.
1617 2018-08-21 Alan Hayward <alan.hayward@arm.com>
1619 * NEWS: Add SVE to 8.2 section.
1621 2018-08-21 Pedro Alves <palves@redhat.com>
1623 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
1624 out from gdbscm_parse_function_args.
1625 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
1626 gdbscm_parse_function_args_1.
1628 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
1631 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
1634 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
1636 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
1638 2018-08-19 Michael Spang <spang@google.com>
1641 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
1642 for PT_TLS segments.
1644 2018-08-18 Kevin Buettner <kevinb@redhat.com>
1646 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
1647 dwarf_variable_value.
1648 * dwarf2-frame.c (class dwarf_expr_executor):
1649 Add override for dwarf_variable_value.
1650 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
1651 (class symbol_needs_eval_context): Likewise.
1652 (indirect_synthetic_pointer): Add forward declaration.
1653 (sect_variable_value): New function.
1654 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
1655 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
1656 for DW_OP_GNU_variable_value.
1658 2018-08-16 Tom Tromey <tom@tromey.com>
1660 * top.c (read_command_file): Update.
1661 (command_line_input): Remove "repeat" argument.
1662 * ada-lang.c (get_selections): Update.
1663 * linespec.c (decode_line_2): Update.
1664 * defs.h (command_line_input): Remove argument.
1665 * cli/cli-script.c (read_next_line): Update.
1666 * python/py-gdb-readline.c: Update.
1668 2018-08-17 Tom Tromey <tom@tromey.com>
1670 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
1673 2018-08-15 Tom Tromey <tom@tromey.com>
1675 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
1677 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
1679 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
1680 If used, use find_pc_partial_function to find address range
1682 * mi/mi-main.c (mi_cmd_list_features): Report
1683 "data-disassemble-a-option" feature.
1684 * NEWS: Mention new -data-disassemble option -a.
1686 2018-08-13 Tom Tromey <tom@tromey.com>
1688 * common/common-defs.h (_FORTIFY_SOURCE): Define.
1690 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1692 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
1693 (aarch64_linux_collect_sve_regset): Likewise.
1694 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
1695 * regcache.h (regcache_map_entry_size): New function.
1697 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1699 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
1700 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
1701 (SVE_HEADER_VL_LENGTH): Likewise.
1702 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
1703 (SVE_HEADER_FLAGS_LENGTH): Likewise.
1704 (SVE_HEADER_RESERVED_LENGTH): Likewise.
1705 (SVE_HEADER_SIZE_OFFSET): Likewise.
1706 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
1707 (SVE_HEADER_VL_OFFSET): Likewise.
1708 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
1709 (SVE_HEADER_FLAGS_OFFSET): Likewise.
1710 (SVE_HEADER_RESERVED_OFFSET): Likewise.
1711 (SVE_HEADER_SIZE): Likewise.
1712 (aarch64_linux_core_read_vq): Add function.
1713 (aarch64_linux_core_read_description): Check for SVE section.
1715 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1717 * aarch64-fbsd-tdep.c
1718 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
1720 * aarch64-linux-tdep.c
1721 (aarch64_linux_iterate_over_regset_sections): Likewise.
1722 * alpha-linux-tdep.c
1723 (alpha_linux_iterate_over_regset_sections):
1725 (alphanbsd_iterate_over_regset_sections): Likewise.
1727 (amd64fbsd_iterate_over_regset_sections): Likewise.
1728 * amd64-linux-tdep.c
1729 (amd64_linux_iterate_over_regset_sections): Likewise.
1731 (armbsd_iterate_over_regset_sections): Likewise.
1733 (arm_fbsd_iterate_over_regset_sections): Likewise.
1735 (arm_linux_iterate_over_regset_sections): Likewise.
1736 * corelow.c (get_core_registers_cb): Likewise.
1737 (core_target::fetch_registers): Likewise.
1738 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1739 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
1740 * gdbarch.h (void): Regenerate.
1741 * gdbarch.sh: Add supply_size and collect_size.
1742 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
1743 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
1744 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
1745 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
1746 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
1747 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
1748 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
1749 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
1750 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
1751 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
1752 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
1753 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
1754 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
1755 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
1756 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
1757 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
1758 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
1759 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
1760 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
1761 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
1762 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
1763 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
1764 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
1765 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
1766 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
1767 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
1768 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
1769 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
1770 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
1771 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
1773 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
1775 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
1778 2018-08-10 Keith Seitz <keiths@redhat.com>
1780 * compile/compile-c-support.c (add_code_header, add_code_footer):
1781 Move into policy class.
1782 (c_push_user_expression, pop_user_expression_nop)
1783 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
1784 (compile_program): New host class.
1785 (c_compile_program): New typedef.
1786 (c_compute_porgram): Use c_compile_program.
1788 2018-08-10 Keith Seitz <keiths@redhat.com>
1790 * compile/compile-internal.h (compile_instance::~compile_instance):
1791 Remove calls to htab_delete.
1792 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
1793 * compile.c (compile_instance::compile_instance): Initialize
1794 htab unique pointers.
1795 (compile_instance::get_cached_type, compile_instance::insert_type)
1796 (compile_instance::error_symbol_once): Update for unique_ptr.
1798 2018-08-10 Keith Seitz <keiths@redhat.com>
1800 * compile/compile-c-symbols.c (struct symbol_error)
1801 (hash_symbol_error, eq_symbol_error, del_symbol_error)
1802 (compile_instance::insert_symbol_error)
1803 (compile_instance::error_symbol_once): Move to ...
1804 * compile/compile.c: ... here.
1806 2018-08-10 Keith Seitz <keiths@redhat.com>
1808 * compile/compile-c-support.c (c_get_compile_context): Use `new'
1809 instead of `new_compile_instance'.
1810 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
1812 If the symbol error map is not initialized, create it.
1813 (generate_c_for_for_one_symbol): Do not check/initialize
1814 the symbol error map.
1815 * compile/compile-c-types.c (compile_c_instance): Make a class.
1817 (compile_instance::compile_instance): Initialize the type cache.
1818 (get_cached_type): New function.
1819 (insert_type): Update description.
1820 (compile_c_instance::m_default_cflags): Define.
1821 (convert_type): Update description. Use get_cached_type.
1822 (delete_instance): Moved to destructor.
1823 (new_compile_instance): Moved to constructor.
1824 * compile/compile-c.h (compile_c_instance): Make class inheriting
1825 from compile_instance.
1826 <base>: Remove field.
1827 <type_map, symbol_err_map>: Move to base class.
1828 <c_plugin>: Rename to `m_plugin' and remove pointer type.
1829 * compile/compile-internal.h (compile_instance): Make class.
1830 <type_map_t, symbol_err_map_t>: Define.
1831 <fe>: Rename to `m_gcc_fe'.
1832 <scope, block, gcc_target_options>: Add `m_' prefix.
1833 <m_type_map, m_symbol_err_map>: New fields, moved from
1836 (convert_type, new_compile_instance): Remove.
1837 * compile/compile.c (cleanup_compile_instance): Remove.
1838 (compile_to_object): Use unique_ptr to eliminate cleanups.
1839 (compile_instance::set_print_callback, compile_instance::version)
1840 (compile_instance::set_verbose)
1841 (compile_instance::set_driver_filename)
1842 (compile_instance::set_triplet_regexp)
1843 (compile_instance::set_arguments)
1844 (compile_instance::set_source_file)
1845 (compile_instance::compile): Define.
1847 2018-08-10 Keith Seitz <keiths@redhat.com>
1849 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
1850 * compile/compile-c-types.c: Define GCC_METHODN macros and include
1851 gcc-c-fe.def to define C plugin.
1852 (delete_instance): Delete `c_plugin'.
1853 (new_compile_instance): Initialize `c_plugin'.
1854 * compile/compile-c.h: Include gcc_c_plugin.h.
1855 (struct compile_c_instance) <c_plugin>: New member.
1856 * gcc-c-plugin.h: New file.
1857 Update all callers with API change.
1859 2018-08-10 Keith Seitz <keiths@redhat.com>
1861 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
1862 (HFILES_NO_SRCDIR): ... to here.
1863 Add compile-internal.h and compile-c.h.
1864 * compile/compile-c-support.c: Include compile-c.h.
1865 * compile/compile-c-symbols.c: Include compile-c.h.
1866 (generate_c_for_variable_locations): Update comment.
1867 * compile/compile-c-types.c: Include compile-c.h.
1868 * compile/compile-c.h: New file -- moved C language declarations
1869 from other files here.
1870 * compile/compile-internal.h: Do not include hashtab.h or
1871 common/enum-flags.h.
1872 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
1873 (gcc_convert_symbol, gcc_symbol_address)
1874 (generate_c_for_variable_locations, c_get_mode_for_size)
1875 (c_get_range_decl_name): Definitions moved to compile-c.h.
1876 * compile/compile-loc2c.c: Include compile-c.h.
1878 2018-08-10 Keith Seitz <keiths@redhat.com>
1880 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
1881 (c_symbol_substitution_name): ... this.
1884 2018-08-10 Keith Seitz <keiths@redhat.com>
1886 * compile/compile-c-support.c (c_compute_program): Use
1887 unique_xmalloc_ptr to eliminate cleanup.
1888 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
1889 Return a unique_xmalloc_ptr and eliminate cleanup.
1890 * compile/compile-internal.h (generate_c_for_variable_locations):
1891 Return unique_xmalloc_ptr and update description.
1893 2018-08-10 Alan Hayward <alan.hayward@arm.com>
1895 * corelow.c (core_target::get_core_register_section): Rename
1896 min_size to section_min_size.
1898 2018-08-09 Jim Wilson <jimw@sifive.com>
1900 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
1901 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
1902 * NEWS: Mention new GNU/Linux RISC-V target.
1903 * configure.host: Add riscv*-*-linux*.
1904 * configure.nat: Add riscv*.
1905 * configure.tgt: Add riscv*-*-linux*.
1906 * riscv-linux-nat.c: New file.
1907 * riscv-linux-tdep.c: New file.
1909 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1911 * infrun.c (resume): Make static, add forward declaration.
1912 (proceed): Update header comment.
1913 * infrun.h (resume): Delete declaration.
1915 2018-08-09 Tom Tromey <tom@tromey.com>
1917 * riscv-tdep.h: Minor formatting fixes.
1919 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
1921 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
1922 * dwarf-index-cache.c (create_dir_and_check): Likewise.
1923 (test_mkdir_recursive): Likewise.
1924 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
1926 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1928 * valarith.c (value_subscripted_rvalue): If an array is not in
1929 memory, and we don't know the upper bound, then we can't know that
1930 the requested element exists or not.
1932 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
1934 * target.c (str_comma_list_concat_elem): Fix typo in comment.
1935 (target_options_to_string): Add comment.
1937 2018-08-08 Tom Tromey <tom@tromey.com>
1939 * unittests/scoped_mmap-selftests.c: Check result of "write".
1941 2018-08-08 Jim Wilson <jimw@sifive.com>
1943 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
1944 (decode_register_index_short): New.
1945 (decode_j_type_insn, decode_cj_type_insn): New.
1946 (decode_b_type_insn, decode_cb_type_insn): New.
1947 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
1948 local xlen. Check xlen when decoding ambiguous compressed insns. In
1949 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
1950 is_c_sw_insn instead of is_sw_insn.
1951 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
1952 (riscv_software_single_step): New.
1953 * riscv-tdep.h (riscv_software_single_step): Declare.
1955 * riscv-tdep.c (riscv_isa_xlen): Drop static.
1956 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
1958 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
1961 * target.c (dispose_inferior): Don't dispose of inferiors that are
1964 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
1966 * remote.c (remote_target::download_tracepoint): Change char* to
1969 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1971 * target.h (target_options_to_string): Return an std::string.
1972 * target.c (str_comma_list_concat_elem): Return void, use
1974 (do_option): Likewise.
1975 (target_options_to_string): Return an std::string.
1976 * linux-nat.c (linux_nat_target::wait): Adjust.
1977 * target-debug.h (target_debug_print_options): Adjust.
1979 2018-08-07 Tom Tromey <tom@tromey.com>
1981 * Makefile.in (CPPFLAGS): New variable.
1982 (INTERNAL_CPPFLAGS): Use it.
1984 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1986 * NEWS: Mention the index cache.
1988 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1990 * common/pathstuff.h (get_standard_cache_dir): New.
1991 * common/pathstuff.c (get_standard_cache_dir): New.
1992 * build-id.h (build_id_to_string): New.
1993 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
1994 DEBUG_STR_SUFFIX): Move to here.
1995 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
1996 DEBUG_STR_SUFFIX): Move from there.
1997 (write_psymtabs_to_index): Make non-static, add basename
1998 parameter. Write to temporary files, rename when done.
1999 (save_gdb_index_command): Adjust call to
2000 write_psymtabs_to_index.
2001 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2003 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2004 (get_gdb_index_contents_from_cache): New.
2005 (get_gdb_index_contents_from_cache_dwz): New.
2006 (dwarf2_initialize_objfile): Read index from cache.
2007 (dwarf2_build_psymtabs): Save to index.
2008 * dwarf-index-cache.h: New file.
2009 * dwarf-index-cache.c: New file.
2010 * dwarf-index-write.h: New file.
2012 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2014 * gnulib/aclocal.m4: Re-generate.
2015 * gnulib/config.in: Re-generate.
2016 * gnulib/configure: Re-generate.
2017 * gnulib/import/Makefile.am: Re-generate.
2018 * gnulib/import/Makefile.in: Re-generate.
2019 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2020 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2021 * gnulib/import/m4/mkdir.m4: New file.
2022 * gnulib/import/mkdir.c: New file.
2023 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2026 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2028 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2029 * common/scoped_mmap.c: New file.
2030 * common/scoped_mmap.h (destroy): New method.
2031 (~scoped_mmap, reset): Use destroy.
2032 (scoped_mmap): New move constructor.
2033 (mmap_file): New declaration.
2034 * unittests/scoped_mmap-selftests.c (test_normal,
2035 test_invalid_filename, run_tests): New functions.
2036 (_initialize_scoped_mmap_selftests): Register selftest.
2038 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2040 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2041 (read_gdb_index_from_buffer): ... this. Remove section
2042 parameter, add buffer parameter.
2043 (get_gdb_index_contents_ftype,
2044 get_gdb_index_contents_dwz_ftype): New typedefs.
2045 (dwarf2_read_gdb_index): Add callback parameters to get the
2047 (get_gdb_index_contents_from_section): New.
2048 (dwarf2_initialize_objfile): Update call to
2049 dwarf2_read_gdb_index.
2051 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2053 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2054 (gdb_open_cloexec): Likewise.
2055 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2056 (commandline_from_pid): Likewise.
2057 (linux_xfer_osdata_threads): Likewise.
2058 (linux_xfer_osdata_fds): Likewise.
2059 * ada-lang.c (is_package_name): Likewise.
2060 * auxv.c (procfs_xfer_auxv): Likewise.
2061 * breakpoint.c (print_one_breakpoint_location): Use
2063 (print_one_catch_solib): Use string_printf.
2064 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2065 (add_pe_forwarded_sym): Likewise.
2066 * dwarf2read.c (create_type_unit_group): Likewise.
2067 (build_error_marker_type): Likewise.
2068 * infcall.c (get_function_name): Likewise.
2069 * valprint.c (print_converted_chars_to_obstack): Likewise.
2070 * xtensa-tdep.c (xtensa_register_type): Likewise.
2072 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2074 * remote.c (remote_target::download_tracepoint): Fix format
2077 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2079 * tracefile.c: Include common/byte-vector.h.
2080 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2081 with trace_regblock_size if needed. Update uses of buf.
2083 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2085 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2086 std::vector<unsigned char>.
2087 * tracepoint.c (collection_list::collection_list): Remove
2088 m_regs_mask initializer from initializer list. Resize
2089 m_regs_mask using the largest remote register number.
2090 (collection_list::add_remote_register): Remove size check on
2091 m_regs_mask. Use at to access element.
2092 (collection_list::stringify): Change type of temp_buf to
2093 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2094 stringify the register mask. Use pack_hex_byte for the register
2097 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2099 * tracepoint.h (class collection_list) <add_register>: Remove.
2100 <add_remote_register, add_ax_registers, add_local_register>:
2102 <add_memrange>: Add scope parameter.
2103 * tracepoint.c (encode_actions_1): Likewise.
2104 (collection_list::add_register): Rename to ...
2105 (collection_list::add_remote_register): ... this. Update
2107 (collection_list::add_ax_registers, add_local_register): New
2109 (collection_list::add_memrange): Add scope parameter. Call
2110 add_local_register instead of add_register.
2111 (finalize_tracepoint_aexpr): New function.
2112 (collection_list::collect_symbol): Update calls to add_memrange.
2113 Call add_local_register instead of add_register. Call
2114 add_ax_registers. Call finalize_tracepoint_aexpr.
2115 (encode_actions_1): Get remote regnos for $reg action. Call
2116 add_remote_register, add_ax_registers, and add_local_register.
2117 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2118 (validate_actionline): Call finalize_tracepoint_aexpr.
2120 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2122 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2123 Replace array buf with gdb::char_vector buf, of size
2124 get_remote_packet_size (). Replace references to buf and
2125 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2126 and xsnprintf with snprintf. Raise errors if the buffer is too
2129 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2131 * remote.c (remote_target::download_tracepoint): Fix the has_more
2132 predicate in the QTDP action list iteration.
2134 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2136 * remote.c (remote_target::download_tracepoint): Fix indentation
2139 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2141 * proc-api.c (_initialize_proc_api): Remove c, unused.
2142 * procfs.c (procfs_init_inferior): Remove signals, unused.
2143 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2146 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2147 Andrew Burgess <andrew.burgess@embecosm.com>
2149 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2150 'W_STOPCODE (0)' as this could be ambiguous.
2152 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2154 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2155 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2158 2018-08-02 Tom Tromey <tom@tromey.com>
2161 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2163 (process_structure_scope): Likewise.
2165 2018-08-02 Xavier Roirand <roirand@adacore.com>
2168 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2171 2018-08-02 Tom Tromey <tom@tromey.com>
2173 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2174 (darwin_suspend_inferior, darwin_resume_inferior)
2175 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2176 (darwin_check_new_threads): Check result of get_darwin_inferior.
2178 2018-07-31 Joel Brobecker <brobecker@adacore.com>
2182 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2184 * varobj.c (varobj_get_path_expr_parent): Report an error if
2185 parent is a dynamic varobj.
2187 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2189 * gnulib/aclocal.m4: Re-generate.
2190 * gnulib/config.in: Re-generate.
2191 * gnulib/configure: Re-generate.
2192 * gnulib/import/Makefile.in: Re-generate.
2193 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2194 * gnulib/import/m4/onceonly.m4: Re-generate.
2196 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2198 * target-descriptions.c (struct xml_test_tdesc): New.
2199 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2200 (record_xml_tdesc): Update.
2201 (maintenance_check_xml_descriptions): Update.
2202 * target-descriptions.h (record_xml_tdesc): Update comment.
2204 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2206 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2207 checking array bounds are defined.
2209 2018-07-30 Tom Tromey <tom@tromey.com>
2211 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2212 irreflexivity violation.
2214 2018-07-30 Tom Tromey <tom@tromey.com>
2216 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2217 * value.c (unpack_long): Remove lint code.
2218 * valops.c (value_ind): Remove lint code.
2219 * valarith.c (value_x_binop, value_x_unop, value_equal)
2220 (value_pos): Remove lint code.
2222 2018-07-28 Tom de Vries <tdevries@suse.de>
2224 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2225 with undefined upper bound as <optimized out>.
2227 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2229 * gcore.in: Rename variable "name" to "prefix". Expand
2232 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2234 * windows-nat.c (windows_nat_target::create_inferior): Update to
2235 call close() in global namespace.
2237 2018-07-26 Tom Tromey <tom@tromey.com>
2239 * dwarf-index-write.c (add_address_entry): Don't add objfile
2241 * dbxread.c (find_stab_function): Rename from
2242 find_stab_function_addr. Return a bound_minimal_symbol.
2243 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2244 Don't add objfile offsets.
2245 (end_psymtab): Use raw_text_low, raw_text_high,
2246 MSYMBOL_VALUE_RAW_ADDRESS.
2247 (read_ofile_symtab): Update.
2248 (process_one_symbol): Update.
2249 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2251 (dw2_relocate): Remove.
2252 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2254 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2256 (process_psymtab_comp_unit_reader, add_partial_symbol)
2257 (add_partial_subprogram, dwarf2_ranges_read): Update.
2258 (load_partial_dies): Update.
2259 (add_address_entry): Don't add objfile offsets.
2260 (dwarf2_build_include_psymtabs): Update.
2261 (create_addrmap_from_aranges): Don't add objfile offsets.
2262 (dw2_find_pc_sect_compunit_symtab): Update.
2263 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2264 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2266 (parse_partial_symbols): Don't add objfile offsets. Use
2267 raw_text_low, raw_text_high. Update.
2268 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2269 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2270 or call 'relocate' quick function. Clear psymbol_map.
2271 * psympriv.h (struct partial_symbol) <address>: Add section
2273 <set_unrelocated_address>: Rename from set_address.
2274 <raw_text_low, raw_text_high>: New methods.
2275 <text_low, text_high>: Add objfile parameter.
2276 (add_psymbol_to_bcache): Add 'section' parameter. Call
2277 set_unrelocated_address.
2278 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2279 (find_pc_psymbol): Update.
2280 (fixup_psymbol_section, relocate_psymtabs): Remove.
2281 (dump_psymtab, psym_functions): Update.
2282 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2284 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2285 (start_psymtab_common): Update.
2286 * symfile-debug.c (debug_qf_relocate): Remove.
2287 (debug_sym_quick_functions): Update.
2288 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2289 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2292 2018-07-26 Tom Tromey <tromey@redhat.com>
2294 * dbxread.c (end_psymtab): Use text_high_valid and
2296 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2297 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2298 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2300 <text_low_valid, text_high_valid>: New fields.
2301 <set_text_low, set_text_high>: Update.
2302 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2304 2018-07-26 Tom Tromey <tom@tromey.com>
2306 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2308 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2309 textlow and texthigh fields.
2310 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2312 * mdebugread.c (parse_lines, parse_partial_symbols)
2313 (psymtab_to_symtab_1): Update.
2314 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2315 Rename fields. Update comment. Now private.
2316 <text_low, text_high, set_text_low, set_text_high>: New methods.
2317 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2318 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2319 (start_psymtab_common, maintenance_info_psymtabs)
2320 (maintenance_check_psymtabs): Update.
2321 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2323 (scan_xcoff_symtab): Update.
2325 2018-07-26 Tom Tromey <tromey@redhat.com>
2327 * psympriv.h (struct partial_symbol) <unrelocated_address,
2328 address, set_address>: New methods.
2329 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2330 (fixup_psymbol_section, relocate_psymtabs): Update.
2331 (print_partial_symbols): Add 'objfile' parameter. Update.
2332 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2335 2018-07-26 Tom Tromey <tom@tromey.com>
2337 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2338 (debug_names::write_psymbols): Update.
2339 * psympriv.h (struct partial_symbol): Derive from
2340 general_symbol_info.
2341 <obj_section>: New method.
2342 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2343 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2344 (find_pc_sect_psymbol, fixup_psymbol_section)
2345 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2346 (print_partial_symbols, recursively_search_psymtabs)
2347 (compare_psymbols, psymbol_hash, psymbol_compare)
2348 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2349 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2351 2018-07-26 Tom Tromey <tromey@redhat.com>
2353 * dbxread.c (end_psymtab): Remove dead code.
2355 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2357 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2358 DWARF unwinders are disabled.
2359 * dwarf2-frame.c: Add dwarf2read.h include.
2360 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2362 (dwarf2_frame_unwinders_enabled_p): Define.
2363 (show_dwarf_unwinders_enabled_p): New function.
2364 (_initialize_dwarf2_frame): Register switch to control DWARF
2366 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2367 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2368 (show_dwarf_cmdlist): Remove static keyword.
2369 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2370 (show_dwarf_cmdlist): Declare.
2371 * NEWS: Document new feature.
2373 2018-07-26 Tom de Vries <tdevries@suse.de>
2375 PR breakpoints/23366
2376 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2378 2018-07-26 Tom de Vries <tdevries@suse.de>
2380 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2381 DW_AT_count can't be translated to a dynamic prop.
2383 2018-07-25 Tom de Vries <tdevries@suse.de>
2385 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2388 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2390 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2392 2018-07-25 Joel Brobecker <brobecker@adacore.com>
2394 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2396 2018-07-24 Keith Seitz <keiths@redhat.comt
2399 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2400 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2401 instead of add_symbol_to_list.
2402 (read_file_scope): Call prepare_one_comp_unit before reading
2405 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2407 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2409 2018-07-24 Tom Tromey <tom@tromey.com>
2411 * utils.c (malloc, realloc, free): Don't declare.
2412 * configure, config.in: Rebuild.
2413 * configure.ac: Don't check for declarations of free, malloc, or
2416 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2418 * aarch64-linux-nat.c
2419 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2421 * arm-linux-nat.c (fetch_regs): Likewise.
2422 (store_regs): Likewise.
2423 (fetch_vfp_regs): Likewise.
2424 (store_vfp_regs): Likewise.
2425 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2426 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2427 (arm_linux_nat_target::insert_watchpoint): Likewise.
2428 (arm_linux_nat_target::remove_watchpoint): Likewise.
2429 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2431 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2433 * ppc-linux-nat.c (fetch_register): Likewise.
2434 (fetch_all_gp_regs): Likewise.
2435 (fetch_ppc_registers): Likewise.
2436 (store_all_gp_regs): Likewise.
2437 (store_ppc_registers): Likewise.
2438 (hwdebug_insert_point): Likewise.
2439 (can_use_watchpoint_cond_accel): Likewise.
2440 * remote-sim.c (gdb_os_write_stdout): Likewise.
2442 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2443 Tom Tromey <tom@tromey.com>
2445 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
2447 * configure: Rebuild.
2449 2018-07-22 Tom Tromey <tom@tromey.com>
2451 * regformats/regdat.sh: Define xmltarget_${name} inside
2452 #ifndef IN_PROCESS_AGENT.
2454 2018-07-22 Tom Tromey <tom@tromey.com>
2456 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
2458 2018-07-22 Tom Tromey <tom@tromey.com>
2460 * symfile.c (reread_symbols): Notify iter, not objfile.
2462 2018-07-22 Tom Tromey <tom@tromey.com>
2464 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
2466 (ravenscar_thread_target::prepare_to_store): Likewise.
2468 2018-07-22 Tom Tromey <tom@tromey.com>
2470 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
2471 unused variable. Call value_fetch_lazy when needed.
2472 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2473 Remove unused variable. Call value_fetch_lazy when needed.
2475 2018-07-22 Tom Tromey <tom@tromey.com>
2477 * m32c-tdep.c (mark_dma): Return void.
2478 (make_regs): Remove unused declarations.
2480 2018-07-22 Tom Tromey <tom@tromey.com>
2482 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
2483 cmdscm_get_valid_command_smob_arg_unsafe for effect.
2484 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
2485 bkscm_get_valid_block_smob_arg_unsafe for effect.
2487 2018-07-22 Tom Tromey <tom@tromey.com>
2489 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
2492 2018-07-22 Tom Tromey <tom@tromey.com>
2494 * windows-nat.c (saved_context): Conditionally define.
2495 * remote.c (remote_target::remote_btrace_maybe_reopen):
2496 Conditionally declare "warned".
2497 * inflow.c (sigquit_ours): Conditionally define.
2498 (new_tty): Move "tty" declaration inside #if.
2499 * guile/guile.c (guile_datadir): Conditionally define.
2500 * charset.c (set_be_le_names): Move some declarations inside #if.
2501 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
2503 (parse_xml_btrace_conf): Likewise.
2505 2018-07-22 Tom Tromey <tom@tromey.com>
2507 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
2509 2018-07-22 Tom Tromey <tom@tromey.com>
2511 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
2512 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
2513 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
2514 * buildsym-legacy.c (get_macro_table): Remove unused variable.
2515 * stack.c (frame_apply_level_command): Remove unused variable.
2516 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
2517 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
2518 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
2520 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
2521 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
2522 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
2524 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
2525 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
2527 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
2528 Remove unused variable.
2529 * cli/cli-script.c (recurse_read_control_structure): Remove unused
2531 * common/tdesc.c (print_xml_feature::visit): Remove unused
2533 * compile/compile-object-load.c (store_regs): Remove unused
2535 * complaints.c (clear_complaints): Remove unused variable.
2536 * corelow.c (core_target_open): Remove unused variable.
2537 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
2539 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
2541 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
2543 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
2545 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
2547 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
2549 * ia64-tdep.c (examine_prologue): Remove unused variable.
2550 * infcall.c (run_inferior_call): Remove unused variable.
2551 * inferior.c (exit_inferior): Remove unused variable.
2552 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
2553 * linespec.c (decode_line_2): Remove unused variable.
2554 * linux-nat.c (super_close): Remove.
2555 * linux-tdep.c (linux_info_proc): Remove unused variable.
2556 * mi/mi-main.c (mi_execute_command): Remove unused variable.
2557 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
2558 Remove unused variable.
2559 * parse.c (find_minsym_type_and_address): Remove unused variable.
2560 * printcmd.c (info_symbol_command, printf_floating): Remove unused
2562 * python/py-breakpoint.c (bppy_set_commands): Remove unused
2564 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
2566 * record-btrace.c (record_btrace_target::store_registers): Remove
2568 (cmd_show_record_btrace_cpu): Remove unused variable.
2569 * riscv-tdep.c (riscv_register_reggroup_p)
2570 (riscv_push_dummy_call, riscv_return_value): Remove unused
2572 * rust-exp.y (literal): Remove unused variable.
2573 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
2575 <STRUCTOP_ANONYMOUS>: Likewise.
2576 * s390-linux-tdep.c (s390_linux_init_abi_31)
2577 (s390_linux_init_abi_64): Remove unused variable.
2578 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
2579 (file_select_thread, net_windows_open, _initialize_ser_windows):
2580 Remove unused variables.
2581 * symtab.c (find_pc_sect_line): Remove unused variable.
2582 * target-memory.c (compute_garbled_blocks): Remove unused
2584 (target_write_memory_blocks): Remove unused variable.
2585 * target.c (target_stack::unpush): Remove unused variables.
2586 * tracepoint.c (start_tracing, all_tracepoint_actions)
2587 (merge_uploaded_trace_state_variables)
2588 (print_one_static_tracepoint_marker): Remove unused variable.
2589 * unittests/basic_string_view/element_access/char/1.cc (test01):
2590 Remove unused variable.
2591 * windows-nat.c (windows_continue, windows_add_all_dlls)
2592 (do_initial_windows_stuff, windows_nat_target::create_inferior):
2593 Remove unused variables.
2595 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2597 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
2598 attr_profile in HAVE_ELF.
2599 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
2602 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
2604 * frame.c (frame_register_unwind): Change parameter name.
2605 (frame_unwind_register): Likewise.
2606 (frame_unwind_register_value): Likewise.
2607 (frame_unwind_register_signed): Likewise.
2608 (frame_unwind_register_unsigned): Likewise.
2609 * frame.h (frame_register_unwind): Likewise.
2610 (frame_unwind_register): Likewise.
2611 (frame_unwind_register_value): Likewise.
2612 (frame_unwind_register_signed): Likewise.
2613 (frame_unwind_register_unsigned): Likewise.
2614 (frame_unwind_arch): Likewise.
2616 2018-07-20 Maciej W. Rozycki <macro@mips.com>
2618 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
2621 2018-07-20 Maciej W. Rozycki <macro@mips.com>
2623 * mips-linux-nat.c (mips_linux_nat_target::read_description):
2624 Call `get_ptrace_pid' rather than extracting the ptrace PID by
2627 2018-07-20 Keith Seitz <keiths@redhat.com>
2629 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
2630 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
2631 m_compunit_symtab, m_language>: Add "m_" prefix.
2633 * buildsym.c: Update all uses.
2635 2018-07-20 Tom Tromey <tom@tromey.com>
2637 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
2638 * buildsym.h (record_line_ftype): Remove typedef.
2640 2018-07-20 Tom Tromey <tom@tromey.com>
2642 * buildsym-legacy.h (augment_type_symtab): Don't declare.
2643 (end_expandable_symtab): Likewise.
2644 (end_symtab_get_static_block): Likewise.
2645 (end_symtab_from_static_block): Likewise.
2646 * buildsym-legacy.c (augment_type_symtab): Remove.
2647 (end_expandable_symtab): Remove.
2648 (end_symtab_get_static_block): Remove.
2649 (end_symtab_from_static_block): Remove.
2651 2018-07-20 Tom Tromey <tom@tromey.com>
2653 * dwarf2read.c: Include buildsym.h.
2654 (struct dwarf2_cu) <builder>: New method.
2655 (fixup_go_packaging): Update.
2656 (process_full_comp_unit, process_full_type_unit): Update. Don't
2657 use scoped_free_pendings.
2658 (using_directives): Add "cu" parameter, remove "language".
2659 (read_import_statement, setup_type_unit_groups, )
2660 (read_func_scope, read_lexical_block_scope)
2661 (dwarf2_record_block_ranges, read_namespace): Update.
2662 (lnp_state_machine::lnp_state_machine): Add cu parameter.
2663 (lnp_state_machine::handle_end_sequence): Update.
2664 (class lnp_state_machine) <m_cu>: New member.
2665 <m_record_line_callback>: Remove.
2666 <m_currently_recording_lines>: New member.
2667 (lnp_state_machine::handle_set_file): Update.
2668 (noop_record_line): Remove.
2669 (dwarf_record_line_p): Add cu parameter.
2670 (dwarf_record_line_1, dwarf_finish_line): Likewise.
2671 (lnp_state_machine::record_line)
2672 (lnp_state_machine::lnp_state_machine)
2673 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
2674 (dwarf_decode_lines): Update.
2675 (dwarf2_start_subfile): Add cu parameter.
2676 (dwarf2_start_symtab, new_symbol): Update.
2677 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
2678 Remove dwarf2_per_objfile parameter.
2679 (dwarf_decode_macros): Update.
2681 2018-07-20 Tom Tromey <tom@tromey.com>
2683 * stabsread.c (define_symbol): Update.
2684 * buildsym-legacy.h (get_buildsym_compunit): Declare.
2685 * dwarf2read.c (new_symbol): Update.
2686 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
2687 * cp-namespace.c: Include buildsym.h.
2688 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
2689 * buildsym-legacy.c (get_buildsym_compunit): New function.
2691 2018-07-20 Tom Tromey <tom@tromey.com>
2693 * xcoffread.c: Include buildsym-legacy.h.
2694 * windows-nat.c: Include buildsym-legacy.h.
2695 * stabsread.c: Include buildsym-legacy.h.
2696 * mdebugread.c: Include buildsym-legacy.h.
2697 * buildsym-legacy.h: New file.
2698 * buildsym-legacy.c: New file, from buildsym.c.
2699 * go32-nat.c: Include buildsym-legacy.h.
2700 * dwarf2read.c: Include buildsym-legacy.h.
2701 * dbxread.c: Include buildsym-legacy.h.
2702 * cp-namespace.c: Include buildsym-legacy.h.
2703 * coffread.c: Include buildsym-legacy.h.
2704 * buildsym.h: Move some contents to buildsym-legacy.h.
2705 * buildsym.c: Include buildsym-legacy.h. Move many functions to
2707 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
2709 2018-07-20 Tom Tromey <tom@tromey.com>
2711 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
2712 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
2713 (buildsym_compunit::buildsym_compunit)
2714 (buildsym_compunit::~buildsym_compunit)
2715 (buildsym_compunit::get_macro_table): Define.
2717 2018-07-20 Tom Tromey <tom@tromey.com>
2719 * buildsym.c (reset_symtab_globals): Remove.
2720 (buildsym_compunit::end_symtab_from_static_block): Update.
2721 (buildsym_compunit::augment_type_symtab): Update.
2722 (end_symtab_from_static_block): Call free_buildsym_compunit.
2723 (augment_type_symtab, end_symtab, end_expandable_symtab):
2726 2018-07-20 Tom Tromey <tom@tromey.com>
2728 * arch-utils.c: Do not include buildsym.h.
2729 * mipsread.c: Do not include buildsym.h.
2730 * machoread.c: Do not include buildsym.h.
2731 * elfread.c: Do not include buildsym.h.
2733 2018-07-20 Tom Tromey <tom@tromey.com>
2735 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
2737 (buildsym_compunit): Add new constructor.
2738 (struct buildsym_compunit) <get_last_source_file, finish_block,
2739 record_block_range, start_subfile, patch_subfile_names,
2740 push_subfile, pop_subfile, record_line, get_compunit_symtab,
2741 set_last_source_start_addr, get_last_source_start_addr,
2742 get_local_using_directives, set_local_using_directives,
2743 get_global_using_directives, outermost_context_p,
2744 get_current_context_stack, get_context_stack_depth,
2745 get_current_subfile, get_local_symbols, get_file_symbols,
2746 get_global_symbols, record_debugformat, record_producer,
2747 push_context, pop_context, end_symtab_get_static_block,
2748 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
2750 <record_pending_block, finish_block_internal, make_blockvector,
2751 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
2755 2018-05-22 Tom Tromey <tom@tromey.com>
2757 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2759 (finish_block_internal): Update.
2761 2018-07-20 Tom Tromey <tom@tromey.com>
2763 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2765 (finish_block_internal): Update.
2767 2018-07-20 Tom Tromey <tom@tromey.com>
2769 * buildsym.h (EXTERN): Don't define or undef.
2770 * buildsym.c (EXTERN): Don't define.
2772 2018-07-20 Tom Tromey <tom@tromey.com>
2774 * buildsym.c: Remove TODO comment.
2776 2018-07-20 Tom Tromey <tom@tromey.com>
2778 * coffread.c (coff_symtab_read): Update.
2779 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2780 (xcoff_new_init): Update.
2781 * mipsread.c (mipscoff_new_init): Update.
2782 * mdebugread.c (mdebug_build_psymtabs): Update.
2783 * elfread.c (elf_new_init): Update.
2784 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2786 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
2787 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2788 (stabsect_build_psymtabs): Update.
2789 * buildsym.h (buildsym_init): Don't declare.
2790 * buildsym.c: Update comment.
2791 (prepare_for_building): Remove.
2792 (start_symtab, restart_symtab): Update.
2793 (reset_symtab_globals): Update comment.
2794 (buildsym_init): Remove.
2796 2018-07-20 Tom Tromey <tom@tromey.com>
2798 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
2799 * stabsread.c (patch_block_stabs, define_symbol, read_type)
2800 (read_enum_type, common_block_start, common_block_end)
2801 (cleanup_undefined_types_1, finish_global_stabs): Update.
2802 * mdebugread.c (psymtab_to_symtab_1): Update.
2803 * dwarf2read.c (fixup_go_packaging, read_func_scope)
2804 (read_lexical_block_scope, new_symbol): Update.
2805 * dbxread.c (process_one_symbol): Update.
2806 * coffread.c (coff_symtab_read, process_coff_symbol)
2807 (coff_read_enum_type): Update.
2808 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
2810 (get_local_symbols, get_file_symbols, get_global_symbols): New
2812 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
2814 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
2815 (~scoped_free_pendings): Update.
2816 (finish_block, prepare_for_building, reset_symtab_globals)
2817 (end_symtab_get_static_block, end_symtab_with_blockvector)
2818 (augment_type_symtab, push_context): Update.
2819 (get_local_symbols, get_file_symbols, get_global_symbols): New
2821 (buildsym_init): Update.
2823 2018-07-20 Tom Tromey <tom@tromey.com>
2825 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
2826 (process_full_type_unit): Likewise.
2827 (dwarf2_start_symtab): Set list_in_scope.
2829 2018-07-20 Tom Tromey <tom@tromey.com>
2831 * dwarf2read.c (process_psymtab_comp_unit_reader)
2832 (build_type_psymtabs_reader): Do not set list_in_scope.
2834 2018-07-20 Tom Tromey <tom@tromey.com>
2836 * buildsym.c (free_pendings): Remove.
2837 (add_symbol_to_list, scoped_free_pendings)
2838 (finish_block_internal, buildsym_init): Update.
2840 2018-07-20 Tom Tromey <tom@tromey.com>
2842 * xcoffread.c (read_xcoff_symtab): Update.
2843 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
2845 * dbxread.c (process_one_symbol): Update.
2846 * coffread.c (coff_symtab_read): Update.
2847 * buildsym.h (finish_block): Update.
2848 * buildsym.c (finish_block): Remove "listhead" argument.
2849 (end_symtab_get_static_block): Update.
2851 2018-07-20 Tom Tromey <tom@tromey.com>
2853 * buildsym.h (class scoped_free_pendings): Remove constructor.
2854 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
2856 <m_pending_block_obstack, m_pending_blocks>: New members.
2857 (pending_block_obstack, pending_blocks): Remove.
2858 (scoped_free_pendings::scoped_free_pendings): Default.
2859 (~scoped_free_pendings): Update.
2860 (free_pending_blocks): Remove.
2861 (finish_block_internal, record_pending_block, make_blockvector)
2862 (end_symtab_get_static_block, augment_type_symtab, push_context)
2863 (buildsym_init): Update.
2865 2018-07-20 Tom Tromey <tom@tromey.com>
2867 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
2868 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
2870 (pending_addrmap, pending_addrmap_obstack)
2871 (pending_addrmap_interesting): Remove.
2872 (scoped_free_pendings, record_block_range, make_blockvector)
2873 (prepare_for_building, reset_symtab_globals, buildsym_init):
2876 2018-07-20 Tom Tromey <tom@tromey.com>
2878 * xcoffread.c (process_linenos): Update.
2879 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
2880 * mdebugread.c (psymtab_to_symtab_1): Update.
2881 * dwarf2read.c (setup_type_unit_groups)
2882 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
2883 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
2884 * dbxread.c (process_one_symbol): Update.
2885 * coffread.c (coff_symtab_read, enter_linenos)
2886 (process_coff_symbol): Update.
2887 * buildsym.h (current_subfile): Don't declare.
2888 (get_current_subfile): Declare.
2889 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
2891 (start_subfile, free_buildsym_compunit, push_subfile)
2892 (prepare_for_building, start_symtab): Update.
2893 (get_current_subfile): New function.
2895 2018-07-20 Tom Tromey <tom@tromey.com>
2897 * coffread.c (coff_symtab_read): Update.
2898 * xcoffread.c (read_xcoff_symtab): Update.
2899 * dwarf2read.c (new_symbol): Update.
2900 (read_func_scope, read_lexical_block_scope): Update.
2901 * dbxread.c (process_one_symbol): Update.
2902 * buildsym.h (context_stack, context_stack_depth): Don't declare.
2903 (outermost_context_p): Remove macro.
2904 (outermost_context_p, get_current_context_stack)
2905 (get_context_stack_depth): Declare.
2906 (pop_context): Return struct context_stack.
2907 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
2909 (context_stack_size): Remove.
2910 (INITIAL_CONTEXT_STACK_SIZE): Remove.
2911 (prepare_for_building, end_symtab_get_static_block)
2912 (augment_type_symtab, push_context): Update.
2913 (pop_context): Return struct context_stack.
2914 (outermost_context_p, get_current_context_stack)
2915 (get_context_stack_depth): New functions.
2916 (buildsym_init): Update.
2918 2018-07-20 Tom Tromey <tom@tromey.com>
2920 * rust-exp.y: Now a pure parser. Update all rules.
2921 (%union): Move earlier.
2922 (current_parser, work_obstack): Remove globals.
2923 (rust_parser, ~rust_parser): Update.
2924 (class rust_parser) <copy_name, concat3, crate_name, super_name,
2925 lex_character, lex_number, lex_string, lex_identifier,
2926 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
2927 convert_name, convert_params_to_expression,
2928 convert_ast_to_expression, ast_basic_type, ast_operation,
2929 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
2930 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
2931 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
2932 ast_array_type, ast_slice_type, ast_reference_type,
2933 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
2934 (rust_parse): Update.
2935 (rustyyerror, rustyylex): Add parser parameter.
2936 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
2937 (rust_lex_stringish_test, rust_lex_test_sequence)
2938 (rust_lex_test_trailing_dot, rust_lex_test_completion)
2939 (rust_lex_test_push_back, rust_lex_tests): Update.
2941 2018-07-19 Pedro Alves <palves@redhat.com>
2943 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
2944 gdb::unique_xmalloc_ptr.
2945 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
2946 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
2947 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
2948 copy-initialization.
2949 * guile/scm-pretty-print.c (ppscm_print_children): Use
2950 gdb::unique_xmalloc_ptr instead of cleanups.
2951 (gdbscm_apply_val_pretty_printer): Remove cleanups.
2952 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
2953 gdb::unique_xmalloc_ptr.
2954 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2955 Adjust to use gdb::unique_xmalloc_ptr.
2956 * guile/scm-utils.c (extract_arg): Adjust.
2957 * guile/scm-value.c (gdbscm_value_field): Adjust to use
2958 gdb::unique_xmalloc_ptr instead of a cleanup.
2960 2018-07-19 Tom Tromey <tom@tromey.com>
2962 * utils.c (do_value_free_to_mark)
2963 (make_cleanup_value_free_to_mark): Remove.
2964 * utils.h (make_cleanup_value_free_to_mark): Remove.
2966 2018-07-19 Pedro Alves <palves@redhat.com>
2968 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
2969 forwarding reference.
2971 2018-07-18 Pedro Alves <palves@redhat.com>
2973 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
2974 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
2977 2018-07-18 Pedro Alves <palves@redhat.com>
2979 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
2981 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
2983 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
2984 directly instead of a cleanup.
2985 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
2986 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
2987 (vlscm_binop_gdbthrow): New, factored out from ...
2988 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
2989 (vlscm_rich_compare): Use gdbscm_wrap.
2990 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
2991 instead of a cleanup.
2992 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
2994 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2995 Use xfree directly instead of a cleanup.
2996 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
2997 Adjust to use gdbscm_wrap and scoped_value_mark.
2998 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
2999 (gdbscm_value_address, gdbscm_value_dereference)
3000 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3002 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3003 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3005 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3006 gdbscm_wrap and scoped_value_mark.
3007 (gdbscm_value_to_string): Use xfree directly instead of a
3008 cleanup. Move 'buffer' unique_ptr to TRY scope.
3009 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3010 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3012 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3013 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3015 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3018 2018-07-18 Tom de Vries <tdevries@suse.de>
3020 * findvar.c (default_read_var_value): Also resolve dynamic type for
3021 LOC_OPTIMIZED_OUT vars.
3023 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3025 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3028 2018-07-17 Tom Tromey <tom@tromey.com>
3030 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3031 (compute_enum_list, pascm_set_param_value_x)
3032 (gdbscm_parameter_value): Update.
3033 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3034 (gdbscm_scm_to_host_string): Update.
3035 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3037 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3038 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3039 * guile/scm-string.c (gdbscm_scm_to_string): Return
3041 (gdbscm_scm_to_host_string): Likewise.
3043 2018-07-17 Tom Tromey <tom@tromey.com>
3045 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3046 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3047 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3048 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3051 2018-07-17 Tom Tromey <tom@tromey.com>
3053 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3054 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3056 * guile/scm-cmd.c (cmdscm_function): Update.
3057 * guile/scm-pretty-print.c
3058 (ppscm_print_exception_unless_memory_error): Update.
3059 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3060 Return unique_xmalloc_ptr.
3062 2018-07-17 Tom Tromey <tom@tromey.com>
3064 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3067 2018-07-17 Jim Wilson <jimw@sifive.com>
3069 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3070 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3071 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3072 unecessary braces after EF_RISCV_RVC test. Delete call to
3073 set_gdbarch_decr_pc_after_break.
3075 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3076 RISCV_LAST_FP_REGNUM + 1.
3077 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3079 2018-07-17 Tom Tromey <tom@tromey.com>
3081 * configure.ac: Remove --disable-gdbcli.
3082 * configure: Rebuild.
3083 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3084 (SUBDIR_CLI_CFLAGS): Remove.
3085 (SFILES): Use SUBDIR_CLI_SRCS.
3086 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3088 2018-07-17 Tom Tromey <tom@tromey.com>
3091 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3093 2018-07-16 Jim Wilson <jimw@sifive.com>
3095 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3097 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3099 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3101 (libunwind_frame_sniffer): Likewise.
3102 (libunwind_frame_prev_register): Likewise.
3103 (libunwind_sigtramp_frame_sniffer): Likewise.
3104 * ia64-tdep.c (ia64_access_reg): Likewise.
3105 (ia64_access_rse_reg): Likewise.
3106 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3107 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3109 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3111 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3113 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3115 * remote-sim.c (gdbsim_target::close,
3116 gdbsim_target::mourn_inferior): Remove unused variables.
3118 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3120 * ia64-tdep.c (ktab_buf): New global.
3121 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3122 (get_kernel_table): Adjust.
3124 2018-07-16 Tom Tromey <tom@tromey.com>
3126 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3127 * dwarf2read.c (using_directives, new_symbol): Use
3128 outermost_context_p.
3129 * dbxread.c (process_one_symbol): Use outermost_context_p.
3130 * coffread.c (coff_symtab_read): Use outermost_context_p.
3132 2018-07-16 Tom Tromey <tom@tromey.com>
3134 * dwarf2read.c (using_directives, read_func_scope)
3135 (read_lexical_block_scope): Update.
3136 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3137 * buildsym.h (local_using_directives, global_using_directives):
3139 (get_local_using_directives, set_local_using_directives)
3140 (get_global_using_directives): Declare.
3141 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3142 m_global_using_directives>: New members.
3143 (finish_block_internal, prepare_for_building)
3144 (reset_symtab_globals, end_symtab_get_static_block)
3145 (push_context): Update.
3146 (get_local_using_directives, set_local_using_directives)
3147 (get_global_using_directives): New functions.
3148 (buildsym_init): Update.
3150 2018-07-16 Tom Tromey <tom@tromey.com>
3152 * xcoffread.c (xcoff_initial_scan): Don't call
3153 free_pending_blocks.
3154 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3155 * buildsym.h (class scoped_free_pendings): Add constructor.
3156 (free_pending_blocks): Don't declare.
3157 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3158 (free_pending_blocks): Now static.
3160 2018-07-16 Tom Tromey <tom@tromey.com>
3162 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3163 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3165 (struct subfile_stack): Remove.
3166 (subfile_stack): Remove.
3167 (push_subfile, pop_subfile, buildsym_init): Update.
3169 2018-07-16 Tom Tromey <tom@tromey.com>
3171 * buildsym.c (push_subfile): Use gdb_assert.
3172 (pop_subfile): Use gdb_assert.
3174 2018-07-16 Tom Tromey <tom@tromey.com>
3176 * buildsym.h (merge_symbol_lists): Remove.
3177 * buildsym.c (merge_symbol_lists): Remove.
3179 2018-07-16 Tom Tromey <tom@tromey.com>
3181 * stabsread.c (scan_file_globals): Update comment.
3182 * stabsread.h (scan_file_globals): Move from buildsym.h.
3183 * buildsym.h (scan_file_globals): Move to stabsread.h.
3185 2018-07-16 Tom Tromey <tom@tromey.com>
3187 * xcoffread.c (xcoff_new_init): Update.
3188 * mipsread.c (mipscoff_new_init): Update.
3189 * mdebugread.c (mdebug_build_psymtabs): Update.
3190 * elfread.c (elf_new_init): Update.
3191 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3192 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3193 * buildsym.h (buildsym_new_init): Don't declare.
3194 * buildsym.c (buildsym_new_init): Remove.
3196 2018-07-16 Tom Tromey <tom@tromey.com>
3198 * stabsread.h (within_function): Move from buildsym.h.
3199 * stabsread.c (start_stabs): Clear within_function.
3200 * coffread.c (coff_start_symtab): Clear within_function.
3201 * buildsym.h (within_function): Move to stabsread.h.
3202 * buildsym.c (prepare_for_building): Update.
3204 2018-07-16 Tom Tromey <tom@tromey.com>
3206 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3207 * dwarf2read.c (dwarf2_start_symtab): Don't set
3208 processing_gcc_compilation.
3209 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3211 2018-07-16 Tom Tromey <tom@tromey.com>
3213 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3214 (next_symbol_text_func): Move from buildsym.h.
3215 * stabsread.c (hashname): Move from buildsym.c.
3216 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3217 (next_symbol_text_func, hashname): Move to stabsread.h.
3218 * buildsym.c: Don't include bcache.h
3219 (hashname): Move to stasbread.c.
3221 2018-07-16 Tom Tromey <tom@tromey.com>
3223 * buildsym.h (context_stack_size): Don't declare.
3224 * buildsym.c (context_stack_size): New global.
3226 2018-07-16 Tom Tromey <tom@tromey.com>
3228 * dbxread.c (processing_acc_compilation): New global.
3229 * buildsym.h (processing_acc_compilation): Don't declare.
3231 2018-07-16 Tom Tromey <tom@tromey.com>
3233 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3234 * dbxread.c (read_ofile_symtab): Update.
3235 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3236 * buildsym.h (last_source_start_addr): Remove.
3237 (set_last_source_start_addr, get_last_source_start_addr):
3239 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3241 (struct buildsym_compunit) <m_last_source_start_addr>: New
3243 (prepare_for_building): Remove start_addr parameter.
3244 (start_symtab, restart_symtab, end_symtab_get_static_block)
3245 (end_symtab_with_blockvector): Update.
3246 (set_last_source_start_addr, get_last_source_start_addr): New
3249 2018-07-16 Tom Tromey <tom@tromey.com>
3251 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3253 (have_line_numbers): Remove.
3254 (record_line, prepare_for_building, end_symtab_get_static_block)
3255 (augment_type_symtab): Update.
3257 2018-07-16 Tom Tromey <tom@tromey.com>
3259 * buildsym.c (~buildsym_compunit): Free the macro table.
3260 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3262 <m_pending_macros>: New member.
3263 (pending_macros): Remove.
3264 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3265 (reset_symtab_globals, end_symtab_get_static_block)
3266 (end_symtab_with_blockvector, augment_type_symtab)
3267 (buildsym_init): Update.
3269 2018-07-16 Tom Tromey <tom@tromey.com>
3271 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3273 (buildsym_compunit::set_last_source_file): New method.
3274 <m_last_source_file>: New member.
3275 (prepare_for_building): Remove "name" parameter.
3276 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3277 (last_source_file): Remove.
3278 (set_last_source_file, get_last_source_file): Update.
3280 2018-07-16 Tom Tromey <tom@tromey.com>
3282 * buildsym.c (prepare_for_building): Add assert.
3284 2018-07-16 Tom Tromey <tom@tromey.com>
3286 * buildsym.c (~buildsym_compunit): Update.
3287 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3288 (start_subfile, patch_subfile_names)
3289 (end_symtab_with_blockvector): Update.
3291 2018-07-16 Tom Tromey <tom@tromey.com>
3293 * buildsym.c (struct buildsym_compunit): Add constructor,
3294 destructor, initializers.
3295 (start_buildsym_compunit): Remove.
3296 (free_buildsym_compunit): Use "delete".
3297 (start_symtab, restart_symtab): Use "new".
3299 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3301 * symfile.c (set_objfile_default_section_offset): Remove struct
3304 2018-07-14 Stafford Horne <shorne@gmail.com>
3306 * (Responsible Maintainers): Add myself as or1k maintainer.
3308 2018-07-13 Tom Tromey <tom@tromey.com>
3310 * symfile.c (set_objfile_default_section_offset): Use extra braces
3313 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3315 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3318 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3320 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3321 unittests/cli-utils-selftests.c
3322 * unittests/cli-utils-selftests.c: New file.
3324 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3326 * NEWS: Mention new commands. Mention change to 'thread apply'.
3328 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3330 * thread.c (thr_try_catch_cmd): New function.
3331 (thread_apply_all_command): Handle qcs flags.
3332 (thread_apply_command): Handle qcs flags.
3333 (taas_command): New function.
3334 (tfaas_command): New function.
3335 (_initialize_thread): Update to setup the new commands 'taas
3336 and 'tfaas'. Change doc string for 'thread apply'.
3338 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3340 * stack.c: (trailing_outermost_frame): New function, mostly
3341 extracted from backtrace_command_1.
3342 (leading_innermost_frame): New function.
3343 (backtrace_command_1): Update to call trailing_outermost_frame.
3344 (frame_apply_command_count): New function.
3345 (frame_apply_level_command): New function.
3346 (frame_apply_all_command): New function.
3347 (frame_apply_command): New function.
3348 (faas_command): New function.
3349 (frame_cmd_list): New variable.
3350 (_initialize_stack): Update to setup the new commands 'frame apply'
3353 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3355 * cli-utils.c (number_or_range_parser::get_number): Only handle
3356 numbers or convenience var as numbers.
3357 (parse_flags): New function.
3358 (parse_flags_qcs): New function.
3359 (number_or_range_parser::finished): Ensure parsing end is detected
3360 before end of string.
3361 * cli-utils.h (parse_flags): New function.
3362 (parse_flags_qcs): New function.
3363 (number_or_range_parser): Remove m_finished bool.
3364 (number_or_range_parser::skip_range): Set m_in_range to false.
3366 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3368 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3371 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3372 Jan Kratochvil <jan.kratochvil@redhat.com>
3373 Paul Fertser <fercerpav@gmail.com>
3374 Tsutomu Seki <sekiriki@gmail.com>
3375 Pedro Alves <palves@redhat.com>
3377 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3378 'unittests/parse-connection-spec-selftests.c'.
3379 (COMMON_SFILES): Add 'common/netstuff.c'.
3380 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3381 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3382 * common/netstuff.c: New file.
3383 * common/netstuff.h: New file.
3384 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3385 (wait_for_connect): Update comment. New parameter
3386 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3387 Use 'sock' directly instead of 'scb->fd'.
3388 (try_connect): New function, with code from 'net_open'.
3389 (net_open): Rewrite main loop to deal with multiple
3390 sockets/addresses. Handle IPv6-style hostnames; implement
3391 support for IPv6 connections.
3392 * unittests/parse-connection-spec-selftests.c: New file.
3394 2018-07-11 Pedro Alves <palves@redhat.com>
3397 * remote.c (remote_target::remote_detach_pid): Call
3398 set_current_process.
3400 2018-07-11 Pedro Alves <palves@redhat.com>
3402 * h8300-tdep.c (h8300_gdbarch_init): Remove
3403 set_gdbarch_ecoff_reg_to_regnum calls.
3405 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3408 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3409 offsets/sizes for static members of a class/struct.
3411 2018-07-11 Alan Hayward <alan.hayward@arm.com>
3413 * target-descriptions.c (tdesc_register_bitsize): Rename.
3414 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3415 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3416 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3418 2018-07-10 Tom Tromey <tom@tromey.com>
3420 * breakpoint.c (moribund_locations): Now static and a
3422 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3423 (build_bpstat_chain, update_global_location_list)
3424 (breakpoint_retire_moribund): Update.
3425 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3428 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3430 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3431 (riscv_register_reggroup_p): Use new function, remove unneeded
3433 (riscv_push_dummy_call): Extend assert to compare against xlen or
3434 flen based on register type.
3436 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3438 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3440 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3442 * remote.c (show_hardware_watchpoint_limit): New function.
3443 (show_hardware_watchpoint_length_limit): New function.
3444 (show_hardware_breakpoint_limit): New function.
3445 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
3446 where appropriate, update help text.
3448 2018-07-09 Tom Tromey <tom@tromey.com>
3450 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
3451 (CLIBS): Don't mention NAT_CLIBS.
3453 2018-07-09 Tom Tromey <tom@tromey.com>
3455 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
3456 (LIBGDB_OBS, clean mostlyclean): Update.
3457 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
3459 2018-07-09 Tom Tromey <tom@tromey.com>
3461 * Makefile.in (%.c: %.y): Use ECHO_YACC.
3462 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
3463 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
3465 2018-07-09 Tom Tromey <tom@tromey.com>
3467 * Makefile.in (ALLDEPFILES): Remove exec.c.
3468 (COMMON_OBS): Remove exec.o.
3469 (COMMON_SFILES): Add exec.c.
3471 2018-07-09 Tom Tromey <tom@tromey.com>
3473 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
3475 2018-07-09 Tom Tromey <tom@tromey.com>
3477 * Makefile.in (clean mostlyclean): Remove stamp-version.
3478 (version.c): Depend on stamp-version.
3479 (stamp-version): New rule, from version.c rule.
3481 2018-07-09 Tom Tromey <tom@tromey.com>
3483 * Makefile.in (init.c): Depend on stamp-init.
3484 (stamp-init): New rule, from init.c rule.
3485 (clean mostlyclean): Remove stamp-init.
3487 2018-07-09 Tom Tromey <tom@tromey.com>
3489 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
3490 SUBDIR_GCC_COMPILE_SRCS.
3492 2018-07-09 Tom Tromey <tom@tromey.com>
3494 * Makefile.in (init.c): Remove some unused sed rules.
3496 2018-07-09 Tom Tromey <tom@tromey.com>
3498 * Makefile.in (TSOBS): Remove.
3499 (INIT_FILES): Update.
3500 (LIBGDB_OBS): Update.
3501 (COMMON_SFILES): Add inflow.c.
3502 (SFILES): Remove inflow.c.
3504 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3506 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
3508 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
3510 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
3511 get_saveloc_name, is_signal_frame_name, step_name,
3512 init_remote_name, create_addr_space_name,
3513 destroy_addr_space_name, search_unwind_table_name,
3514 find_dyn_list_name): Constify.
3516 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
3518 * darwin-nat.c (darwin_pthread_kill): New function.
3519 (darwin_resume_thread): Use darwin_pthread_kill.
3521 2018-07-05 Tom de Vries <tdevries@suse.de>
3523 * macroexp.c (macro_buffer) <operator=>: New member function.
3525 2018-07-04 Tom Tromey <tom@tromey.com>
3527 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
3529 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
3531 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
3532 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
3533 * maint.c: Likewise.
3536 2018-07-04 Joel Brobecker <brobecker@adacore.com>
3538 * NEWS: Create a new section for the next release branch.
3539 Rename the section of the current branch, now that it has
3542 2018-07-04 Joel Brobecker <brobecker@adacore.com>
3544 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
3545 * version.in: Bump version to 8.2.50.DATE-git.
3547 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3548 Pedro Alves <palves@redhat.com>
3550 * linux-nat.c (linux_init_ptrace): Rename to ...
3551 (linux_init_ptrace_procfs): ... this. Call
3552 linux_proc_init_warnings.
3553 (linux_nat_target::post_attach)
3554 (linux_nat_target::post_startup_inferior): Adjust.
3555 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
3556 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
3558 2018-07-04 Tom de Vries <tdevries@suse.de>
3560 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
3562 (read_comp_unit_head): ... here.
3564 2018-07-03 Tom Tromey <tom@tromey.com>
3566 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
3567 (stop_tracing, tstatus_command)
3568 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
3569 (print_one_static_tracepoint_marker): Update.
3570 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
3572 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
3574 (all_tracepoints, static_tracepoints_here): Return std::vector.
3576 2018-07-03 Tom Tromey <tom@tromey.com>
3578 * common/ptid.c (ptid_equal): Remove.
3579 * common/ptid.h (ptid_equal): Don't declare.
3580 * ada-tasks.c: Update.
3581 * breakpoint.c: Update.
3582 * common/agent.c: Update.
3583 * corelow.c: Update.
3584 * darwin-nat-info.c: Update.
3585 * darwin-nat.c: Update.
3587 * dtrace-probe.c: Update.
3588 * dummy-frame.c: Update.
3589 * fbsd-nat.c: Update.
3591 * gdbthread.h: Update.
3592 * gnu-nat.c: Update.
3593 * go32-nat.c: Update.
3594 * inf-loop.c: Update.
3595 * inf-ptrace.c: Update.
3596 * infcall.c: Update.
3600 * linux-fork.c: Update.
3601 * linux-nat.c: Update.
3602 * linux-thread-db.c: Update.
3603 * mi/mi-cmd-var.c: Update.
3604 * mi/mi-interp.c: Update.
3605 * mi/mi-main.c: Update.
3606 * nto-procfs.c: Update.
3607 * ppc-linux-tdep.c: Update.
3609 * python/py-inferior.c: Update.
3610 * python/py-record-btrace.c: Update.
3611 * python/py-record.c: Update.
3612 * ravenscar-thread.c: Update.
3613 * regcache.c: Update.
3614 * remote-sim.c: Update.
3616 * sol-thread.c: Update.
3619 * tui/tui-stack.c: Update.
3621 * windows-nat.c: Update.
3622 * windows-tdep.c: Update.
3624 2018-07-03 Tom Tromey <tom@tromey.com>
3626 * common/ptid.c (ptid_match): Remove.
3627 * common/ptid.h (ptid_match): Don't declare.
3628 * fbsd-nat.c: Update.
3631 * linux-nat.c: Update.
3632 * record-btrace.c: Update.
3633 * regcache.c: Update.
3636 2018-07-03 Tom Tromey <tom@tromey.com>
3638 * common/ptid.c (ptid_tid_p): Remove.
3639 * common/ptid.h (ptid_tid_p): Don't declare.
3640 * sol-thread.c: Update.
3642 2018-07-03 Tom Tromey <tom@tromey.com>
3644 * common/ptid.c (ptid_lwp_p): Remove.
3645 * common/ptid.h (ptid_lwp_p): Don't declare.
3646 * fbsd-nat.c: Update.
3647 * linux-nat.c: Update.
3648 * nat/linux-procfs.c: Update.
3649 * nat/x86-linux-dregs.c: Update.
3650 * sol-thread.c: Update.
3652 2018-07-03 Tom Tromey <tom@tromey.com>
3654 * common/ptid.c (ptid_is_pid): Remove.
3655 * common/ptid.h (ptid_is_pid): Don't declare.
3657 * linux-nat.c: Update.
3658 * mi/mi-interp.c: Update.
3662 2018-07-03 Tom Tromey <tom@tromey.com>
3664 * common/ptid.c (ptid_get_tid): Remove.
3665 * common/ptid.h (ptid_get_tid): Don't declare.
3666 * ada-tasks.c: Update.
3667 * aix-thread.c: Update.
3668 * bsd-uthread.c: Update.
3669 * darwin-nat.c: Update.
3670 * fbsd-nat.c: Update.
3671 * i386-darwin-nat.c: Update.
3673 * linux-tdep.c: Update.
3674 * nto-procfs.c: Update.
3675 * ppc-ravenscar-thread.c: Update.
3676 * python/py-infthread.c: Update.
3677 * ravenscar-thread.c: Update.
3678 * sol-thread.c: Update.
3679 * sparc-ravenscar-thread.c: Update.
3680 * windows-nat.c: Update.
3682 2018-07-03 Tom Tromey <tom@tromey.com>
3684 * common/ptid.c (ptid_get_lwp): Remove.
3685 * common/ptid.h (ptid_get_lwp): Don't declare.
3686 * aarch64-linux-nat.c: Update.
3687 * ada-tasks.c: Update.
3688 * aix-thread.c: Update.
3689 * amd64-linux-nat.c: Update.
3690 * arm-linux-nat.c: Update.
3691 * corelow.c: Update.
3692 * fbsd-nat.c: Update.
3693 * fbsd-tdep.c: Update.
3694 * gnu-nat.c: Update.
3695 * i386-cygwin-tdep.c: Update.
3696 * i386-gnu-nat.c: Update.
3697 * i386-linux-nat.c: Update.
3698 * ia64-linux-nat.c: Update.
3699 * inf-ptrace.c: Update.
3701 * linux-fork.c: Update.
3702 * linux-nat.c: Update.
3703 * linux-tdep.c: Update.
3704 * linux-thread-db.c: Update.
3705 * mips-linux-nat.c: Update.
3706 * nat/aarch64-linux-hw-point.c: Update.
3707 * nat/aarch64-linux.c: Update.
3708 * nat/linux-btrace.c: Update.
3709 * nat/linux-osdata.c: Update.
3710 * nat/linux-procfs.c: Update.
3711 * nat/x86-linux-dregs.c: Update.
3712 * obsd-nat.c: Update.
3713 * ppc-fbsd-nat.c: Update.
3714 * ppc-linux-nat.c: Update.
3716 * python/py-infthread.c: Update.
3717 * ravenscar-thread.c: Update.
3719 * s390-linux-nat.c: Update.
3720 * sol-thread.c: Update.
3721 * sol2-tdep.c: Update.
3722 * spu-linux-nat.c: Update.
3723 * x86-linux-nat.c: Update.
3724 * xtensa-linux-nat.c: Update.
3726 2018-07-03 Tom Tromey <tom@tromey.com>
3728 * common/ptid.c (ptid_get_pid): Remove.
3729 * common/ptid.h (ptid_get_pid): Don't declare.
3730 * aarch64-linux-nat.c: Update.
3731 * ada-lang.c: Update.
3732 * aix-thread.c: Update.
3733 * alpha-bsd-nat.c: Update.
3734 * amd64-fbsd-nat.c: Update.
3735 * amd64-linux-nat.c: Update.
3736 * arm-linux-nat.c: Update.
3737 * arm-nbsd-nat.c: Update.
3739 * break-catch-syscall.c: Update.
3740 * breakpoint.c: Update.
3741 * bsd-uthread.c: Update.
3742 * corelow.c: Update.
3744 * darwin-nat.c: Update.
3745 * fbsd-nat.c: Update.
3746 * fbsd-tdep.c: Update.
3748 * gnu-nat.c: Update.
3749 * hppa-nbsd-nat.c: Update.
3750 * hppa-obsd-nat.c: Update.
3751 * i386-fbsd-nat.c: Update.
3752 * ia64-linux-nat.c: Update.
3753 * inf-ptrace.c: Update.
3755 * inferior.c: Update.
3756 * inferior.h: Update.
3759 * linux-fork.c: Update.
3760 * linux-nat.c: Update.
3761 * linux-tdep.c: Update.
3762 * linux-thread-db.c: Update.
3763 * m68k-bsd-nat.c: Update.
3764 * mi/mi-interp.c: Update.
3765 * mi/mi-main.c: Update.
3766 * mips-linux-nat.c: Update.
3767 * mips-nbsd-nat.c: Update.
3768 * mips64-obsd-nat.c: Update.
3769 * nat/aarch64-linux-hw-point.c: Update.
3770 * nat/aarch64-linux.c: Update.
3771 * nat/linux-btrace.c: Update.
3772 * nat/linux-osdata.c: Update.
3773 * nat/linux-procfs.c: Update.
3774 * nat/x86-linux-dregs.c: Update.
3775 * nto-procfs.c: Update.
3776 * obsd-nat.c: Update.
3777 * ppc-linux-nat.c: Update.
3778 * ppc-nbsd-nat.c: Update.
3779 * ppc-obsd-nat.c: Update.
3780 * proc-service.c: Update.
3782 * python/py-inferior.c: Update.
3783 * python/py-infthread.c: Update.
3784 * ravenscar-thread.c: Update.
3786 * remote-sim.c: Update.
3788 * rs6000-nat.c: Update.
3789 * s390-linux-nat.c: Update.
3790 * sh-nbsd-nat.c: Update.
3791 * sol-thread.c: Update.
3792 * sparc-nat.c: Update.
3793 * sparc64-tdep.c: Update.
3794 * spu-linux-nat.c: Update.
3795 * spu-tdep.c: Update.
3796 * target-debug.h: Update.
3799 * tid-parse.c: Update.
3800 * tracefile-tfile.c: Update.
3801 * vax-bsd-nat.c: Update.
3802 * windows-nat.c: Update.
3803 * x86-linux-nat.c: Update.
3804 * x86-nat.c: Update.
3806 2018-07-03 Tom Tromey <tom@tromey.com>
3808 * common/ptid.c (pid_to_ptid): Remove.
3809 * common/ptid.h (pid_to_ptid): Don't declare.
3810 * aix-thread.c: Update.
3811 * arm-linux-nat.c: Update.
3812 * common/ptid.c: Update.
3813 * common/ptid.h: Update.
3814 * corelow.c: Update.
3816 * darwin-nat.c: Update.
3817 * fbsd-nat.c: Update.
3818 * fork-child.c: Update.
3819 * gnu-nat.c: Update.
3820 * go32-nat.c: Update.
3821 * inf-ptrace.c: Update.
3823 * inferior.c: Update.
3825 * linux-fork.c: Update.
3826 * linux-nat.c: Update.
3827 * nat/aarch64-linux-hw-point.c: Update.
3828 * nat/fork-inferior.c: Update.
3829 * nat/x86-linux-dregs.c: Update.
3830 * nto-procfs.c: Update.
3831 * obsd-nat.c: Update.
3833 * progspace.c: Update.
3835 * rs6000-nat.c: Update.
3836 * s390-linux-nat.c: Update.
3837 * sol-thread.c: Update.
3838 * spu-linux-nat.c: Update.
3841 * tracefile-tfile.c: Update.
3842 * windows-nat.c: Update.
3844 2018-07-03 Tom Tromey <tom@tromey.com>
3846 * common/ptid.h (ptid_build): Don't declare.
3847 * common/ptid.c (ptid_build): Remove.
3848 * aix-thread.c: Update.
3849 * bsd-kvm.c: Update.
3850 * bsd-uthread.c: Update.
3851 * common/agent.c: Update.
3852 * common/ptid.c: Update.
3853 * common/ptid.h: Update.
3854 * corelow.c: Update.
3855 * darwin-nat.c: Update.
3856 * fbsd-nat.c: Update.
3857 * gnu-nat.c: Update.
3858 * linux-fork.c: Update.
3859 * linux-nat.c: Update.
3860 * linux-thread-db.c: Update.
3861 * nat/linux-osdata.c: Update.
3862 * nat/linux-procfs.c: Update.
3863 * nto-procfs.c: Update.
3864 * obsd-nat.c: Update.
3865 * proc-service.c: Update.
3867 * ravenscar-thread.c: Update.
3868 * remote-sim.c: Update.
3870 * sol-thread.c: Update.
3872 * windows-nat.c: Update.
3874 2018-07-03 Tom Tromey <tom@tromey.com>
3876 * infrun.c (follow_exec): Use exit_inferior_silent.
3877 * inferior.c (exit_inferior_num_silent): Remove.
3878 * inferior.h (exit_inferior_num_silent): Don't declare.
3880 2018-07-03 Tom Tromey <tom@tromey.com>
3883 * darwin-nat.c (darwin_attach_pid): Reset inferior and
3884 inferior_ptid on error.
3886 2018-07-02 Maciej W. Rozycki <macro@mips.com>
3887 Simon Marchi <simon.marchi@polymtl.ca>
3890 * disasm.h (gdb_disassembler): Add
3891 `m_disassembler_options_holder'. member
3892 * disasm.c (get_all_disassembler_options): New function.
3893 (gdb_disassembler::gdb_disassembler): Use it.
3894 (gdb_buffered_insn_length_init_dis): Likewise.
3895 (gdb_buffered_insn_length): Adjust accordingly.
3896 (set_disassembler_options): Handle options with arguments.
3897 (show_disassembler_options_sfunc): Likewise. Add a leading new
3898 line if showing options with descriptions.
3899 (disassembler_options_completer): Adapt to using the
3900 `disasm_options_and_args_t' structure.
3901 * mips-tdep.c (mips_disassembler_options): New variable.
3902 (mips_disassembler_options_o32): Likewise.
3903 (mips_disassembler_options_n32): Likewise.
3904 (mips_disassembler_options_n64): Likewise.
3905 (gdb_print_insn_mips): Don't set `disassembler_options'.
3906 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
3908 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
3909 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
3910 `gdbarch_disassembler_options_implicit' and
3911 `gdbarch_valid_disassembler_options'.
3912 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
3913 `disasm_options_and_args_t' structure.
3914 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
3916 (valid_disassembler_options): Switch from `disasm_options_t' to
3917 the `disasm_options_and_args_t' structure.
3918 * NEWS: Document `set disassembler-options' support for the MIPS
3920 * gdbarch.h: Regenerate.
3921 * gdbarch.c: Regenerate.
3923 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3925 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
3927 2018-06-29 Joel Brobecker <brobecker@adacore.com>
3929 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
3930 parameter in call to amd64_target_description.
3931 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
3932 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
3933 (amd64fbsd_init_abi): Likewise.
3934 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
3935 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
3936 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
3937 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
3939 2018-06-29 Pedro Alves <palves@redhat.com>
3941 * gdb/amd64-tdep.h (amd64_create_target_description): Add
3942 "segments" parameter.
3943 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
3944 (_initialize_amd64_tdep): Update call to
3945 amd64_create_target_description.
3946 (amd64_target_description): Add "segments" parameter. Adjust
3947 the implementation to use it.
3948 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
3949 call to amd64_create_target_description.
3950 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
3951 * gdb/arch/amd64.h (amd64_create_target_description): Add
3952 "segments" register.
3953 * gdb/arch/amd64.c (amd64_create_target_description): Add
3954 "segments" parameter. Call create_feature_i386_64bit_segments
3955 only if SEGMENTS is true.
3956 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
3957 call to amd64_create_target_description.
3959 2018-06-29 Pedro Alves <palves@redhat.com>
3961 * thread.c (thread_target_id_str): New, factored out from ...
3962 (print_thread_info_1): ... here. Use it to compute the max
3963 "Target Id" column width.
3965 2018-06-29 Pedro Alves <palves@redhat.com>
3967 * remote.c (remote_target::extra_thread_info): Delete
3968 'display_buf' and 'n' locals. from the cache, regardless of
3969 packet mechanims is in use. Use cache for qThreadExtra and qP
3972 2018-06-29 Pedro Alves <palves@redhat.com>
3974 * blockframe.c (find_pc_sect_containing_function): New function.
3975 * breakpoint.c (print_breakpoint_location): Don't call
3976 find_pc_sect_function.
3977 * linespec.c (create_sals_line_offset): Record the location's
3979 * linespec.c (convert_address_location_to_sals): Fill in sal's
3980 symbol with find_pc_sect_containing_function.
3981 * symtab.c (find_function_start_sal): Rename to ...
3982 (find_function_start_sal_1): ... this.
3983 (find_function_start_sal): Reimplement as wrapper around
3984 find_function_start_sal_1, and use
3985 find_pc_sect_containing_function to fill in the sal's symbol.
3986 (find_function_start_sal(symbol*, bool)): Adjust.
3987 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
3989 (find_pc_sect_containing_function): Declare.
3991 2018-06-29 Pedro Alves <palves@redhat.com>
3993 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
3994 true if the the location has no symbol.
3996 2018-06-28 Tom Tromey <tom@tromey.com>
3998 * NEWS: Mention --enable-codesign.
3999 * silent-rules.mk (ECHO_SIGN): New variable.
4000 * configure.ac: Add --enable-codesign.
4001 * configure: Rebuild.
4002 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4003 (gdb$(EXEEXT)): Optionally invoke codesign.
4005 2018-06-28 Pedro Alves <palves@redhat.com>
4007 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4009 (switch_to_thread_no_regs): Adjust comment.
4010 * infcmd.c (stop_pc): Delete.
4011 (post_create_inferior, info_program_command): Replace references
4012 to stop_pc with references to thread_info->suspend.stop_pc.
4013 * inferior.h (stop_pc): Delete declaration.
4014 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4015 (handle_inferior_event_1, handle_signal_stop)
4016 (process_event_stop_test, keep_going_stepped_thread)
4017 (handle_step_into_function, handle_step_into_function_backward)
4018 (print_stop_location): Replace references to stop_pc with
4019 references to thread_info->suspend.stop_pc.
4020 (struct infcall_suspend_state) <stop_pc>: Delete field.
4021 (save_infcall_suspend_state, restore_infcall_suspend_state):
4022 Remove references to inf_stat->stop_pc.
4023 * linux-fork.c (fork_load_infrun_state): Likewise.
4024 * record-btrace.c (record_btrace_set_replay): Likewise.
4025 * record-full.c (record_full_goto_entry): Likewise.
4026 * remote.c (print_one_stopped_thread): Likewise.
4027 * target.c (target_resume): Extend comment.
4028 * thread.c (set_executing_thread): New.
4029 (set_executing): Use it.
4030 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4031 Remove references to stop_pc.
4033 2018-06-28 Pedro Alves <palves@redhat.com>
4035 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4036 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4038 2018-06-28 Tom Tromey <tom@tromey.com>
4040 * coffread.c (coff_symfile_finish): Update.
4041 * xcoffread.c (xcoff_symfile_finish): Update.
4042 * elfread.c (elf_symfile_finish): Update.
4043 * symfile.h (dwarf2_free_objfile): Don't declare.
4044 * dwarf2read.c (_initialize_dwarf2_read): Use
4045 register_objfile_data_with_cleanup.
4046 (dwarf2_free_objfile): Now static. Change signature.
4048 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4050 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4051 option "-o" to add-symbol-file-load to add an offset to each
4052 section's load address.
4053 * symfile.c (set_objfile_default_section_offset): New function.
4055 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4057 * symfile.c (add_symbol_file_command): Make sure that sections
4058 with the same name are sorted in the same order.
4060 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4062 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4063 require the second argument. If omitted, load sections at the
4064 addresses specified in the file.
4066 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4068 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4069 (_initialize_symfile): Add option "-o" to symbol-file to add an
4070 offset to each section of the symbol file.
4072 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4074 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4076 2018-06-27 Tom Tromey <tom@tromey.com>
4078 * stack.c (_initialize_stack): Update "func" help text.
4080 2018-06-27 Tom Tromey <tom@tromey.com>
4082 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4084 (unwind_infopy_str, pyuw_create_unwind_info)
4085 (unwind_infopy_add_saved_register, pyuw_sniffer)
4086 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4088 (struct saved_reg): Add constructor.
4089 <value>: Now a gdbpy_ref<>.
4091 2018-06-27 Tom Tromey <tom@tromey.com>
4093 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4095 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4097 * gdb-gdb.py.in: Format using autopep8.
4099 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4101 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4102 (type_lookup_function): Recognize CORE_ADDR values.
4104 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4106 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4109 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4111 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4114 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4116 * gdb-gdb.py: Move to...
4117 * gdb-gdb.py.in: ... here.
4118 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4119 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4121 (distclean): Remove gdb-gdb.py when cleaning.
4122 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4123 * configure: Re-generate.
4125 2018-06-27 Pedro Alves <palves@redhat.com>
4127 * proc-service.c (get_ps_regcache): New.
4128 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4129 (ps_lsetfpregs): Use it.
4131 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
4134 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4135 (dwarf_decode_lines_1): Adjust.
4137 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4139 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4141 <info_proc>: Likewise.
4143 2018-06-26 Joel Brobecker <brobecker@adacore.com>
4145 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4146 to windows_fetch_one_register, and only handle the case of
4147 fetching one register. Move the code that reloads the context
4148 and iterates over all registers if R is negative to...
4149 (windows_nat_target::fetch_registers): ... here.
4150 (do_windows_store_inferior_registers): Rename to
4151 windows_store_one_register, and only handle the case of storing
4152 one register. Move the code that handles the case where r is
4154 (windows_nat_target::store_registers) ... here.
4156 2018-06-26 Tom Tromey <tom@tromey.com>
4159 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4160 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4162 (rust_internal_print_type): Add podata parameter.
4163 (rust_print_type): Update.
4165 2018-06-26 Tom Tromey <tom@tromey.com>
4167 * typeprint.h (struct print_offset_data) <update, finish,
4168 maybe_print_hole>: New methods.
4169 <indentation>: New constant.
4170 * typeprint.c (print_offset_data::indentation): Define.
4171 (print_offset_data::maybe_print_hole, print_offset_data::update)
4172 (print_offset_data::finish): Move from c-typeprint.c and rename.
4173 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4174 (print_spaces_filtered_with_print_options): Update.
4175 (c_print_type_union_field_offset, maybe_print_hole)
4176 (c_print_type_struct_field_offset): Move to typeprint.c and
4178 (c_type_print_base_struct_union): Update.
4180 2018-06-25 Pedro Alves <palves@redhat.com>
4182 * gdbthread.h (thread_info_ref, delete_thread)
4183 (delete_thread_silent, first_thread_of_inferior)
4184 (any_thread_of_inferior, switch_to_thread)
4185 (enable_thread_stack_temporaries)
4186 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4187 (get_last_thread_stack_temporary)
4188 (value_in_thread_stack_temporaries, can_access_registers_thread):
4189 Spell out "struct thread_info" instead of just "thread_info".
4190 * inferior.h (notice_new_inferior): Likewise.
4192 2018-06-25 Pedro Alves <palves@redhat.com>
4194 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4195 pass thread_info pointer to delete_thread.
4196 (windows_nat_target::detach): Pass inferior pointer to
4198 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4200 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4201 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4202 and pass a thread_info pointer to delete_thread.
4203 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4204 pass thread_info pointer to delete_thread.
4205 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4206 delete_thread_silent call.
4207 * procfs.c (procfs_target::detach): Pass inferior pointer to
4209 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4210 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4211 delete_thread_silent call.
4212 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4213 pass thread_info pointer to delete_thread.
4214 (windows_nat_target::detach): Pass inferior pointer to
4217 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4219 * regcache.c (readable_regcache::read_part): Fix asserts.
4220 (reg_buffer::raw_collect_part): New function.
4221 (regcache::write_part): Fix asserts.
4222 (reg_buffer::raw_supply_part): New function.
4223 (regcache::transfer_regset_register): New helper function.
4224 (regcache::transfer_regset): Call new functions.
4225 (regcache_supply_regset): Use gdb_byte*.
4226 (regcache::supply_regset): Likewise.
4227 (regcache_collect_regset): Likewise.
4228 (regcache::collect_regset): Likewise.
4229 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4230 (reg_buffer::raw_supply_part): Likewise.
4231 (regcache::transfer_regset_register): Likewise.
4232 (regcache::transfer_regset): Use gdb_byte*.
4234 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4236 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4238 2018-06-21 Pedro Alves <palves@redhat.com>
4240 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4241 instead of a ptid_t. All callers adjusted.
4242 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4244 (print_ada_task_info, display_current_task_id, task_command_1):
4246 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4248 (breakpoint_kind): Adjust.
4249 (remove_breakpoints_pid): Rename to ...
4250 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4251 pointer. All callers adjusted.
4252 (bpstat_clear_actions): Use inferior_thread.
4253 (get_bpstat_thread): New.
4254 (bpstat_do_actions): Use it.
4255 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4256 to take a thread_info pointer. All callers adjusted.
4257 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4258 (breakpoint_re_set_thread): Use inferior_thread.
4259 * breakpoint.h (struct inferior): Forward declare.
4260 (bpstat_stop_status): Update.
4261 (remove_breakpoints_pid): Delete.
4262 (remove_breakpoints_inf): New.
4263 * bsd-uthread.c (bsd_uthread_target::wait)
4264 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4265 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4266 (maint_btrace_packet_history_cmd)
4267 (maint_btrace_clear_packet_history_cmd): Adjust.
4268 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4270 * cli/cli-interp.c: Include "inferior.h".
4271 * common/refcounted-object.h (struct
4272 refcounted_object_ref_policy): New.
4273 * compile/compile-object-load.c: Include gdbthread.h.
4274 (store_regs): Use inferior_thread.
4275 * corelow.c (core_target::close): Use current_inferior.
4276 (core_target_open): Adjust to use first_thread_of_inferior and use
4277 the current inferior.
4278 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4279 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4280 <thread>: ... this new field. All references adjusted.
4281 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4282 Take a thread_info pointer instead of a ptid_t.
4283 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4284 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4285 thread_info pointer instead of a ptid_t.
4286 * elfread.c: Include "inferior.h".
4287 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4288 Use inferior_thread.
4289 * eval.c (evaluate_subexp): Likewise.
4290 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4292 * gdb_proc_service.h (struct thread_info): Forward declare.
4293 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4294 <thread>: ... this new field. All references adjusted.
4295 * gdbarch.h, gdbarch.c: Regenerate.
4296 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4297 'thread' parameter. All implementations and callers adjusted.
4298 * gdbthread.h (thread_info) <set_running>: New method.
4299 (delete_thread, delete_thread_silent): Take a thread_info pointer
4301 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4302 (first_thread_of_process): Delete, replaced by ...
4303 (first_thread_of_inferior): ... this new function. All callers
4305 (any_live_thread_of_process): Delete, replaced by ...
4306 (any_live_thread_of_inferior): ... this new function. All callers
4308 (switch_to_thread, switch_to_no_thread): Declare.
4309 (is_executing): Delete.
4310 (enable_thread_stack_temporaries): Update comment.
4311 <enable_thread_stack_temporaries>: Take a thread_info pointer
4312 instead of a ptid_t. Incref the thread.
4313 <~enable_thread_stack_temporaries>: Decref the thread.
4316 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4317 (get_last_thread_stack_temporary)
4318 (value_in_thread_stack_temporaries, can_access_registers_thread):
4319 Take a thread_info pointer instead of a ptid_t. All callers
4321 * infcall.c (get_call_return_value): Use inferior_thread.
4322 (run_inferior_call): Work with thread pointers instead of ptid_t.
4323 (call_function_by_hand_dummy): Work with thread pointers instead
4324 of ptid_t. Use thread_info_ref.
4325 * infcmd.c (proceed_thread_callback): Access thread's state
4327 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4328 access thread's state directly.
4329 (continue_command): Use inferior_thread.
4330 (info_program_command): Use find_thread_ptid and access thread
4332 (proceed_after_attach_callback): Use thread state directly.
4333 (notice_new_inferior): Take a thread_info pointer instead of a
4334 ptid_t. All callers adjusted.
4335 (exit_inferior): Take an inferior pointer instead of a pid. All
4337 (exit_inferior_silent): New.
4338 (detach_inferior): Delete.
4339 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4340 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4341 (detach_inferior_command, kill_inferior_command): Use
4342 find_inferior_id instead of valid_gdb_inferior_id and
4343 gdb_inferior_id_to_pid.
4344 (inferior_command): Use inferior and thread pointers.
4345 * inferior.h (struct thread_info): Forward declare.
4346 (notice_new_inferior): Take a thread_info pointer instead of a
4347 ptid_t. All callers adjusted.
4348 (detach_inferior): Delete declaration.
4349 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4350 instead of a pid. All callers adjusted.
4351 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4352 (valid_gdb_inferior_id): Delete.
4353 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4354 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4355 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4357 <inf>: ... this new field.
4358 <step_ptid>: Delete, replaced by ...
4359 <step_thread>: ... this new field.
4360 (get_displaced_stepping_state): Take an inferior pointer instead
4361 of a pid. All callers adjusted.
4362 (displaced_step_in_progress_any_inferior): Adjust.
4363 (displaced_step_in_progress_thread): Take a thread pointer instead
4364 of a ptid_t. All callers adjusted.
4365 (displaced_step_in_progress, add_displaced_stepping_state): Take
4366 an inferior pointer instead of a pid. All callers adjusted.
4367 (get_displaced_step_closure_by_addr): Adjust.
4368 (remove_displaced_stepping_state): Take an inferior pointer
4369 instead of a pid. All callers adjusted.
4370 (displaced_step_prepare_throw, displaced_step_prepare)
4371 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4372 All callers adjusted.
4373 (start_step_over): Adjust.
4374 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4375 displaced step queue.
4376 (do_target_resume): Adjust.
4377 (fetch_inferior_event): Use inferior_thread.
4378 (context_switch, get_inferior_stop_soon): Take an
4379 execution_control_state pointer instead of a ptid_t. All callers
4381 (switch_to_thread_cleanup): Delete.
4382 (stop_all_threads): Use scoped_restore_current_thread.
4383 * inline-frame.c: Include "gdbthread.h".
4384 (inline_state) <inline_state>: Take a thread pointer instead of a
4385 ptid_t. All callers adjusted.
4386 <ptid>: Delete, replaced by ...
4387 <thread>: ... this new field.
4388 (find_inline_frame_state): Take a thread pointer instead of a
4389 ptid_t. All callers adjusted.
4390 (skip_inline_frames, step_into_inline_frame)
4391 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4392 pointer instead of a ptid_t. All callers adjusted.
4393 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4394 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4395 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4397 * linux-nat.c (get_detach_signal): Likewise.
4398 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4399 (thread_db_notice_clone): Adjust.
4400 (thread_db_find_new_threads_silently)
4401 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4402 a thread pointer instead of a ptid_t. All callers adjusted.
4403 * mi/mi-cmd-var.c: Include "inferior.h".
4404 (mi_cmd_var_update_iter): Update to use thread pointers.
4405 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4407 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4409 (mi_output_running): ... this new function.
4410 (mi_on_resume_1): Adjust to use it.
4411 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4412 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4414 (interrupt_thread_callback): : Adjust to use thread and inferior
4416 * proc-service.c: Include "gdbthread.h".
4417 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4418 * progspace-and-thread.c: Include "inferior.h".
4419 * progspace.c: Include "inferior.h".
4420 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4421 hold a reference to an inferior_object.
4422 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4424 * python/py-inferior.c (struct inferior_object): Give the type a
4425 tag name instead of a typedef.
4426 (python_on_normal_stop): No need to check if the current thread is
4428 (inferior_to_inferior_object): Change return type to
4429 inferior_object. All callers adjusted.
4430 (find_thread_object): Delete, bits factored out to ...
4431 (thread_to_thread_object): ... this new function.
4432 * python/py-infthread.c (create_thread_object): Use
4433 inferior_to_inferior_object.
4434 (thpy_is_stopped): Use thread pointer directly.
4435 (gdbpy_selected_thread): Use inferior_thread.
4436 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4437 field, replaced with ...
4438 <thread>: ... this new field. All users adjusted.
4439 (btpy_insn_or_gap_new): Drop const.
4440 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
4442 * python/py-record.c: Include "gdbthread.h".
4443 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4444 a ptid_t. All callers adjusted.
4445 (gdbpy_current_recording): Use inferior_thread.
4446 * python/py-record.h (recpy_record_object) <ptid>: Delete
4447 field, replaced with ...
4448 <thread>: ... this new field. All users adjusted.
4449 (recpy_element_object) <ptid>: Delete
4450 field, replaced with ...
4451 <thread>: ... this new field. All users adjusted.
4452 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4453 a ptid_t. All callers adjusted.
4454 * python/py-threadevent.c: Include "gdbthread.h".
4455 (get_event_thread): Use thread_to_thread_object.
4456 * python/python-internal.h (struct inferior_object): Forward
4458 (find_thread_object, find_inferior_object): Delete declarations.
4459 (thread_to_thread_object, inferior_to_inferior_object): New
4461 * record-btrace.c: Include "inferior.h".
4462 (require_btrace_thread): Use inferior_thread.
4463 (record_btrace_frame_sniffer)
4464 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
4465 (get_thread_current_frame): Use scoped_restore_current_thread and
4467 (get_thread_current_frame): Use thread pointer directly.
4468 (record_btrace_replay_at_breakpoint): Use thread's inferior
4470 * record-full.c: Include "inferior.h".
4471 * regcache.c: Include "gdbthread.h".
4472 (get_thread_arch_regcache): Use the inferior's address space
4474 (get_thread_regcache, registers_changed_thread): New.
4475 * regcache.h (get_thread_regcache(thread_info *thread)): New
4477 (registers_changed_thread): New.
4478 (remote_target) <remote_detach_1>: Swap order of parameters.
4479 (remote_add_thread): <remote_add_thread>: Return the new thread.
4480 (get_remote_thread_info(ptid_t)): New overload.
4481 (remote_target::remote_notice_new_inferior): Use thread pointers
4483 (remote_target::process_initial_stop_replies): Use
4484 thread_info::set_running.
4485 (remote_target::remote_detach_1, remote_target::detach)
4486 (extended_remote_target::detach): Adjust.
4487 * stack.c (frame_show_address): Use inferior_thread.
4488 * target-debug.h (target_debug_print_thread_info_pp): New.
4489 * target-delegates.c: Regenerate.
4490 * target.c (default_thread_address_space): Delete.
4491 (memory_xfer_partial_1): Use current_inferior.
4492 (target_detach): Use current_inferior.
4493 (target_thread_address_space): Delete.
4494 (generic_mourn_inferior): Use current_inferior.
4495 * target.h (struct target_ops) <thread_address_space>: Delete.
4496 (target_thread_address_space): Delete.
4497 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
4499 (delete_thread_1, delete_thread, delete_thread_silent): Take a
4500 thread pointer instead of a ptid_t. Adjust all callers.
4501 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
4502 (first_thread_of_process): Delete, replaced by ...
4503 (first_thread_of_inferior): ... this new function. All callers
4505 (any_thread_of_process): Rename to ...
4506 (any_thread_of_inferior): ... this, and take an inferior pointer.
4507 (any_live_thread_of_process): Rename to ...
4508 (any_live_thread_of_inferior): ... this, and take an inferior
4510 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4511 (value_in_thread_stack_temporaries)
4512 (get_last_thread_stack_temporary): Take a thread pointer instead
4513 of a ptid_t. Adjust all callers.
4514 (thread_info::set_running): New.
4515 (validate_registers_access): Use inferior_thread.
4516 (can_access_registers_ptid): Rename to ...
4517 (can_access_registers_thread): ... this, and take a thread
4519 (print_thread_info_1): Adjust to compare thread pointers instead
4521 (switch_to_no_thread, switch_to_thread): Make extern.
4522 (scoped_restore_current_thread::~scoped_restore_current_thread):
4523 Use m_thread pointer directly.
4524 (scoped_restore_current_thread::scoped_restore_current_thread):
4525 Use inferior_thread.
4526 (thread_command): Use thread pointer directly.
4527 (thread_num_make_value_helper): Use inferior_thread.
4528 * top.c (execute_command): Use inferior_thread.
4529 * tui/tui-interp.c: Include "inferior.h".
4530 * varobj.c (varobj_create): Use inferior_thread.
4531 (value_of_root_1): Use find_thread_global_id instead of
4532 global_thread_id_to_ptid.
4534 2018-06-21 Alan Hayward <alan.hayward@arm.com>
4536 * regcache.c (readable_regcache::read_part): Avoid memcpy when
4538 (regcache::write_part): Likewise.
4539 (readable_regcache::cooked_read_part): Update comment.
4540 (readable_regcache::cooked_write_part): Likewise.
4541 * regcache.h: (readable_regcache::read_part): Likewise.
4542 (regcache::write_part): Likewise.
4544 2018-06-21 Richard Bunt <richard.bunt@arm.com>
4545 Dirk Schubert <dirk.schubert@arm.com>
4547 * aarch64-linux-nat.c (post_attach): New.
4548 (aarch64_linux_nat_target::post_attach): Override post_attach to
4549 record the number of hardware debug registers.
4551 2018-06-20 Tom Tromey <tom@tromey.com>
4553 * python/py-param.c (add_setshow_generic): Make parameters const.
4554 (parmpy_init): Update.
4556 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4558 * regcache.h (regcache_cooked_read_ftype): Rename to...
4559 (register_read_ftype): ...this, change type to function_view.
4560 (class reg_buffer) <save>: Remove src parameter.
4561 (readonly_detached_regcache) <readonly_detached_regcache>: Make
4562 parameter non-const in first overload. Remove src parameter in
4564 * regcache.c (do_cooked_read): Remove.
4565 (readonly_detached_regcache::readonly_detached_regcache): Make
4566 parameter non-const, adjust call to other constructor.
4567 (reg_buffer::save): Remove src parameter.
4568 * frame.c (do_frame_register_read): Remove.
4569 (frame_save_as_regcache): Use lambda function.
4570 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
4571 parameter to ppu2spu_data *.
4572 (ppu2spu_sniffer): Use lambda function.
4574 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4576 * record-full.c (record_full_target::insert_breakpoint): Remove
4577 "struct" keyword, add const.
4579 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4581 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
4582 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
4583 * configure.ac: Remove AC_PREREQ, add missing quoting.
4584 * gnulib/configure.ac: Modernize usage of
4585 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
4586 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
4587 (AUTOMAKE_VERSION): Bump to 1.15.1.
4588 * configure: Re-generate.
4589 * config.in: Re-generate.
4590 * aclocal.m4: Re-generate.
4591 * gnulib/aclocal.m4: Re-generate.
4592 * gnulib/config.in: Re-generate.
4593 * gnulib/configure: Re-generate.
4594 * gnulib/import/Makefile.in: Re-generate.
4596 2018-06-19 Pedro Alves <palves@redhat.com>
4598 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
4599 (lookup_minimal_symbol_by_pc_section): ... here with
4600 gdb_assert_not_reached added.
4602 2018-06-19 Pedro Alves <palves@redhat.com>
4604 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
4605 parameter with a block parameter. Compare location's block symbol
4606 with the frame's block instead of addresses.
4607 (skip_inline_frames): Pass the current block instead of the
4608 frame's address. Break out as soon as we determine the frame
4609 should not be skipped.
4611 2018-06-18 Tom Tromey <tom@tromey.com>
4613 * solib-aix.c (solib_aix_get_section_offsets): Return
4615 (solib_aix_solib_create_inferior_hook): Update.
4617 2018-06-18 Tom Tromey <tom@tromey.com>
4619 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
4621 2018-06-18 Tom Tromey <tom@tromey.com>
4623 * solib-frv.c (frv_relocate_main_executable): Use
4625 * solib-dsbt.c (dsbt_relocate_main_executable): Use
4628 2018-06-18 Tom Tromey <tom@tromey.com>
4630 * objfiles.h (inhibit_section_map_updates): Update.
4631 (resume_section_map_updates, resume_section_map_updates_cleanup):
4633 * solib-svr4.c (svr4_handle_solib_event): Update.
4634 * objfiles.c (inhibit_section_map_updates): Return
4635 scoped_restore_tmpl<int>.
4636 (resume_section_map_updates, resume_section_map_updates_cleanup):
4639 2018-06-18 Tom Tromey <tom@tromey.com>
4641 * valprint.h (read_string): Update.
4642 * valprint.c (read_string): Change type of "buffer".
4643 (val_print_string): Update.
4644 * python/py-value.c (valpy_string): Update.
4645 * language.h (struct language_defn) <la_get_string>: Change
4647 (default_get_string, c_get_string): Update.
4648 * language.c (default_get_string): Change type of "buffer".
4649 * guile/scm-value.c (gdbscm_value_to_string): Update.
4650 * c-lang.c (c_get_string): Change type of "buffer".
4652 2018-06-18 Tom Tromey <tom@tromey.com>
4654 * ser-mingw.c (struct pipe_state_destroyer): New.
4655 (pipe_state_up): New typedef.
4656 (cleanup_pipe_state): Remove.
4657 (pipe_windows_open): Use pipe_state_up. Don't release argv.
4659 2018-06-18 Tom Tromey <tom@tromey.com>
4661 * rust-lang.h (rust_yyerror): Don't declare.
4662 * rust-lang.c (rust_language_defn): Update.
4663 * rust-exp.y (yyerror): Now static.
4664 * parse.c (parse_exp_in_context_1): Update.
4665 * p-lang.h (p_yyerror): Don't declare.
4666 * p-lang.c (p_language_defn): Update.
4667 * p-exp.y (yyerror): Now static.
4668 * opencl-lang.c (opencl_language_defn): Update.
4669 * objc-lang.c (objc_language_defn): Update.
4670 * m2-lang.h (m2_yyerror): Don't declare.
4671 * m2-lang.c (m2_language_defn): Update.
4672 * m2-exp.y (yyerror): Now static.
4673 * language.h (struct language_defn) <la_error>: Remove.
4674 * language.c (unk_lang_error): Remove.
4675 (unknown_language_defn, auto_language_defn): Remove.
4676 * go-lang.h (go_yyerror): Don't declare.
4677 * go-lang.c (go_language_defn): Update.
4678 * go-exp.y (yyerror): Now static.
4679 * f-lang.h (f_yyerror): Don't declare.
4680 * f-lang.c (f_language_defn): Update.
4681 * f-exp.y (yyerror): Now static.
4682 * d-lang.h (d_yyerror): Don't declare.
4683 * d-lang.c (d_language_defn): Update.
4684 * d-exp.y (yyerror): Now static.
4685 * c-lang.h (c_yyerror): Don't declare.
4686 * c-lang.c (c_language_defn, cplus_language_defn)
4687 (asm_language_defn, minimal_language_defn): Update.
4688 * c-exp.y (yyerror): Now static.
4689 * ada-lang.h (ada_yyerror): Don't declare.
4690 * ada-lang.c (ada_language_defn): Update.
4691 * ada-exp.y (yyerror): Now static.
4693 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4695 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
4696 (store_sveregs_to_thread): Likewise.
4697 (aarch64_linux_fetch_inferior_registers): Check for SVE.
4698 (aarch64_linux_store_inferior_registers): Likewise.
4699 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
4701 (aarch64_sve_regs_copy_to_regcache): Likewise.
4702 (aarch64_sve_regs_copy_from_regcache): Likewise.
4703 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
4705 (aarch64_sve_regs_copy_to_regcache): Likewise.
4706 (aarch64_sve_regs_copy_from_regcache): Likewise.
4707 (sve_context): Structure from Linux headers.
4708 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
4709 (SVE_SIG_ZREG_SIZE): Likewise.
4710 (SVE_SIG_PREG_SIZE): Likewise.
4711 (SVE_SIG_FFR_SIZE): Likewise.
4712 (SVE_SIG_REGS_OFFSET): Likewise.
4713 (SVE_SIG_ZREGS_OFFSET): Likewise.
4714 (SVE_SIG_ZREG_OFFSET): Likewise.
4715 (SVE_SIG_ZREGS_SIZE): Likewise.
4716 (SVE_SIG_PREGS_OFFSET): Likewise.
4717 (SVE_SIG_PREG_OFFSET): Likewise.
4718 (SVE_SIG_PREGS_SIZE): Likewise.
4719 (SVE_SIG_FFR_OFFSET): Likewise.
4720 (SVE_SIG_REGS_SIZE): Likewise.
4721 (SVE_SIG_CONTEXT_SIZE): Likewise.
4722 (SVE_PT_REGS_MASK): Likewise.
4723 (SVE_PT_REGS_FPSIMD): Likewise.
4724 (SVE_PT_REGS_SVE): Likewise.
4725 (SVE_PT_VL_INHERIT): Likewise.
4726 (SVE_PT_VL_ONEXEC): Likewise.
4727 (SVE_PT_REGS_OFFSET): Likewise.
4728 (SVE_PT_FPSIMD_OFFSET): Likewise.
4729 (SVE_PT_FPSIMD_SIZE): Likewise.
4730 (SVE_PT_SVE_ZREG_SIZE): Likewise.
4731 (SVE_PT_SVE_PREG_SIZE): Likewise.
4732 (SVE_PT_SVE_FFR_SIZE): Likewise.
4733 (SVE_PT_SVE_FPSR_SIZE): Likewise.
4734 (SVE_PT_SVE_FPCR_SIZE): Likewise.
4735 (__SVE_SIG_TO_PT): Likewise.
4736 (SVE_PT_SVE_OFFSET): Likewise.
4737 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
4738 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
4739 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
4740 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
4741 (SVE_PT_SVE_PREG_OFFSET): Likewise.
4742 (SVE_PT_SVE_PREGS_SIZE): Likewise.
4743 (SVE_PT_SVE_FFR_OFFSET): Likewise.
4744 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
4745 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
4746 (SVE_PT_SVE_SIZE): Likewise.
4747 (SVE_PT_SIZE): Likewise.
4748 (HAS_SVE_STATE): New define.
4750 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4752 * nat/aarch64-sve-linux-sigcontext.h: New file.
4753 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
4755 (SVE_VQ_MIN): Likewise.
4756 (SVE_VQ_MAX): Likewise.
4757 (SVE_VL_MIN): Likewise.
4758 (SVE_VL_MAX): Likewise.
4759 (SVE_NUM_ZREGS): Likewise.
4760 (SVE_NUM_PREGS): Likewise.
4761 (sve_vl_valid): Likewise.
4762 (struct user_sve_header): Likewise.
4764 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4765 Richard Bunt <Richard.Bunt@arm.com>
4767 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
4768 was requested by GDB.
4770 2018-06-15 Tom de Vries <tdevries@suse.de>
4772 * MAINTAINERS (Write After Approval): Add Tom de Vries.
4774 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
4776 * gnulib/update-gnulib.sh: Print expected versions of
4779 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
4781 * arch-utils.c (default_type_align): Use type_length_units.
4782 * gdbtypes.c (type_align): Use type_length_units.
4784 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4786 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
4787 of 'define' command.
4789 2018-06-14 Tom de Vries <tdevries@suse.de>
4792 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
4793 get_no_prettyformat_print_options.
4795 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
4797 * sparc-nat.h: Include target.h.
4798 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
4799 <fetch_registers>: Remove this argument in function call.
4800 <store_registers>: Remove this argument in function call, remove
4802 <low_forget_process>: Call sparc64_forget_process instead of
4803 sparc_forget_process.
4805 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4807 * procfs.c (_initialize_procfs): Use add_inf_child_target.
4808 (procfs_target::make_corefile_notes): Adjust to new
4809 target_read_alloc return type.
4811 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4812 Stephen Roberts <stephen.roberts@arm.com>
4815 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
4816 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
4817 Move should_notify_stop local into more inner scope.
4819 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4820 Stephen Roberts <stephen.roberts@arm.com>
4823 * infrun.c (resume_1): Add call to mark_async_event_handler.
4825 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4827 * infrun.c (do_target_wait): Change old version of $pc printed.
4829 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
4831 * dwarf2read.c (read_index_from_section): Rename to...
4832 (read_gdb_index_from_section): ... this, update all callers.
4833 (dwarf2_read_index): Rename to...
4834 (dwarf2_read_gdb_index): ... this, update all callers.
4836 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
4838 * gdb/hppa-linux-nat.c
4839 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
4840 hppa_linux_nat_target::fetch_registers.
4842 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4844 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
4845 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
4846 (AARCH64_DWARF_SVE_FFR): Likewise.
4847 (AARCH64_DWARF_SVE_P0): Likewise.
4848 (AARCH64_DWARF_SVE_Z0): Likewise.
4850 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4852 * common/common-regcache.h (raw_compare): New function.
4853 * regcache.c (regcache::raw_compare): Likewise.
4854 * regcache.h (regcache::raw_compare): New declaration.
4856 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4858 * common/common-regcache.h (reg_buffer_common): New structure.
4859 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
4860 (reg_buffer::raw_supply): Likewise.
4861 (reg_buffer::raw_supply_integer): Likewise.
4862 (reg_buffer::raw_supply_zeroed): Likewise.
4863 (reg_buffer::raw_collect): Likewise.
4864 (reg_buffer::raw_collect_integer): Likewise.
4865 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
4866 (reg_buffer::raw_supply): Likewise.
4867 (reg_buffer::raw_supply_integer): Likewise.
4868 (reg_buffer::raw_supply_zeroed): Likewise.
4869 (reg_buffer::raw_collect): Likewise.
4870 (reg_buffer::raw_collect_integer): Likewise.
4872 2018-06-10 Tom Tromey <tom@tromey.com>
4874 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
4875 (class remote_state) <stop_reply_queue>: Now std::vector.
4876 (remote_state::~remote_state)
4877 (remote_target::stop_reply_queue_length): Update.
4878 (struct queue_iter_param, remove_child_of_pending_fork)
4879 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
4880 (check_pending_event_prevents_wildcard_vcont_callback)
4881 (remove_stop_reply_for_inferior)
4882 (remove_stop_reply_of_remote_state)
4883 (remote_notif_remove_once_on_match)
4884 (stop_reply_match_ptid_and_ws)
4885 (remote_kill_child_of_pending_fork): Remove.
4886 (remote_target::remove_new_fork_children)
4887 (remote_target::check_pending_events_prevent_wildcard_vcont)
4888 (remote_target::discard_pending_stop_replies)
4889 (remote_target::discard_pending_stop_replies_in_queue)
4890 (remote_target::remote_notif_remove_queued_reply)
4891 (remote_target::queued_stop_reply)
4892 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
4893 (remote_target::wait, remote_target::kill_new_fork_children)
4894 (remote_target::async): Update.
4896 2018-06-10 Tom Tromey <tom@tromey.com>
4898 * record-full.c (record_full_arch_list_cleanups): Remove.
4899 (record_full_message): Use try/catch.
4900 (record_full_wait_cleanups): Remove.
4901 (record_full_wait_1): Use try/catch.
4902 (record_full_restore): Likewise.
4904 2018-06-10 Tom Tromey <tom@tromey.com>
4906 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
4907 declare VEC. Add constructor.
4908 <in_target_beneath>: Now bool.
4909 (record_full_breakpoints): Now a std::vector, static.
4910 (record_full_sync_record_breakpoints)
4911 (record_full_init_record_breakpoints)
4912 (record_full_target::insert_breakpoint)
4913 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
4915 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
4917 * dwarf2read.c (process_cu_includes): Remove struct keyword.
4918 * serial.c (serial_interface_lookup): Remove struct keyword.
4920 2018-06-10 Tom Tromey <tom@tromey.com>
4922 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
4924 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
4926 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
4928 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
4929 "beneath" as a method.
4930 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
4931 Use "beneath" as a method.
4933 2018-06-10 Tom Tromey <tom@tromey.com>
4935 * tracefile.c (struct trace_file_writer_deleter): New.
4936 <operator()>: Rename from trace_file_writer_xfree.
4937 (trace_file_writer_up): New typedef.
4938 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
4940 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4942 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
4943 <m_registers, m_register_status>: Change type to
4945 * regcache.c (reg_buffer::reg_buffer): Use new instead of
4948 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4950 * common/common-regcache.h (enum register_status): Add
4951 underlying type "signed char".
4952 * regcache.h (reg_buffer) <m_register_status>: Change type to
4954 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
4955 register_status instead of signed char.
4956 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
4957 (reg_buffer::get_register_status): Remove cast.
4958 (readable_regcache::raw_read): Remove cast.
4959 (readable_regcache::cooked_read): Remove cast.
4961 2018-06-09 Tom Tromey <tom@tromey.com>
4963 * source.c (reverse_search_command, forward_search_command): Use
4966 2018-06-09 Tom Tromey <tom@tromey.com>
4968 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
4969 (serial_ops_list): Now static, std::vector.
4970 (serial_interface_lookup, serial_add_interface): Update.
4972 2018-06-09 Tom Tromey <tom@tromey.com>
4974 * dwarf2read.c (process_cu_includes): Update.
4975 (process_full_comp_unit): Update.
4976 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
4979 2018-06-08 Paul Koning <paul_koning@dell.com>
4983 * python/python.c (do_start_initialization):
4984 Avoid call to internal Python API.
4985 (init__gdb_module): New function.
4987 2018-06-08 Gary Benson <gbenson@redhat.com>
4989 * linux-thread-db.c (valprint.h): New include.
4990 (struct check_thread_db_info): New structure.
4991 (check_thread_db_on_load, tdb_testinfo): New static globals.
4992 (check_thread_db, check_thread_db_callback): New functions.
4993 (try_thread_db_load_1): Run integrity checks if requested.
4994 (maintenance_check_libthread_db): New function.
4995 (_initialize_thread_db): Register "maint check libthread-db"
4996 and "maint set/show check-libthread-db".
4997 * NEWS: Mention the above new commands.
4999 2018-06-08 Tom Tromey <tom@tromey.com>
5001 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5004 2018-06-08 Tom Tromey <tom@tromey.com>
5006 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5008 2018-06-08 Tom Tromey <tom@tromey.com>
5010 * common/btrace-common.h (struct btrace_data): Add constructor,
5011 destructor, move assignment operator.
5012 <empty, clear, fini>: New methods.
5013 <format>: Initialize.
5014 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5015 (btrace_data_empty): Don't declare.
5016 * common/btrace-common.c (btrace_data_init): Remove.
5017 (btrace_data::fini): Rename from btrace_data_fini.
5018 (btrace_data::empty): Rename from btrace_data_empty.
5019 (btrace_data::clear): Rename from btrace_data_clear. Return
5021 * btrace.h (make_cleanup_btrace_data): Don't declare.
5022 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5023 (parse_xml_btrace): Update.
5024 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5025 (maint_btrace_clear_packet_history_cmd): Update.
5027 2018-06-07 Pedro Alves <palves@redhat.com>
5029 * target.h (target_ops) <beneath>: Now a method. All references
5031 (class target_stack): New.
5032 * target.c (g_target_stack): New.
5033 (g_current_top_target): Delete.
5034 (current_top_target): Get the top target out of g_target_stack.
5035 (target_stack::push, target_stack::unpush): New.
5036 (push_target, unpush_target): Reimplement.
5037 (target_is_pushed): Reimplement in terms of g_target_stack.
5038 (target_ops::beneath, target_stack::find_beneath): New.
5040 2018-06-07 Pedro Alves <palves@redhat.com>
5042 * target.h (find_target_beneath): Delete declaration.
5043 * target.c (find_target_beneath): Delete definition.
5044 * aix-thread.c: All callers of find_target_beneath adjusted to
5045 call target_ops::beneath instead.
5046 * bsd-uthread.c: Likewise.
5047 * linux-thread-db.c: Likewise.
5048 * ravenscar-thread.c: Likewise.
5049 * sol-thread.c: Likewise.
5050 * spu-multiarch.c: Likewise.
5052 2018-06-07 Pedro Alves <palves@redhat.com>
5054 * target.h (target_ops) <beneath>: Now a method. All references
5056 (target_ops) <m_beneath>: New.
5057 * target.c (target_ops::beneath): New.
5058 * corelow.c: Adjust all references to target_ops::beneath.
5059 * linux-thread-db.c: Likewise.
5060 * make-target-delegates: Likewise.
5061 * record-btrace.c: Likewise.
5062 * record-full.c: Likewise.
5063 * remote.c: Likewise.
5064 * target.c: Likewise.
5065 * target-delegates.c: Regenerate.
5067 2018-06-07 Pedro Alves <palves@redhat.com>
5069 * target.h (target_stack): Delete.
5070 (current_top_target): Declare function.
5071 * target.c (target_stack): Delete.
5072 (g_current_top_target): New.
5073 (current_top_target): New function.
5074 * auxv.c: Use current_top_target instead of target_stack
5076 * avr-tdep.c: Likewise.
5077 * breakpoint.c: Likewise.
5078 * corefile.c: Likewise.
5079 * elfread.c: Likewise.
5081 * exceptions.c: Likewise.
5082 * frame.c: Likewise.
5083 * gdbarch-selftests.c: Likewise.
5084 * gnu-v3-abi.c: Likewise.
5085 * ia64-tdep.c: Likewise.
5086 * ia64-vms-tdep.c: Likewise.
5087 * infcall.c: Likewise.
5088 * infcmd.c: Likewise.
5089 * infrun.c: Likewise.
5090 * linespec.c: Likewise.
5091 * linux-tdep.c: Likewise.
5092 * minsyms.c: Likewise.
5093 * ppc-linux-nat.c: Likewise.
5094 * ppc-linux-tdep.c: Likewise.
5095 * procfs.c: Likewise.
5096 * regcache.c: Likewise.
5097 * remote.c: Likewise.
5098 * rs6000-tdep.c: Likewise.
5099 * s390-linux-nat.c: Likewise.
5100 * s390-tdep.c: Likewise.
5101 * solib-aix.c: Likewise.
5102 * solib-darwin.c: Likewise.
5103 * solib-dsbt.c: Likewise.
5104 * solib-spu.c: Likewise.
5105 * solib-svr4.c: Likewise.
5106 * solib-target.c: Likewise.
5107 * sparc-tdep.c: Likewise.
5108 * sparc64-tdep.c: Likewise.
5109 * spu-tdep.c: Likewise.
5110 * symfile.c: Likewise.
5111 * symtab.c: Likewise.
5112 * target-descriptions.c: Likewise.
5113 * target-memory.c: Likewise.
5114 * target.c: Likewise.
5115 * target.h: Likewise.
5116 * tracefile-tfile.c: Likewise.
5117 * tracepoint.c: Likewise.
5118 * valops.c: Likewise.
5119 * valprint.c: Likewise.
5120 * value.c: Likewise.
5121 * windows-tdep.c: Likewise.
5122 * mi/mi-main.c: Likewise.
5124 2018-06-07 Tom Tromey <tom@tromey.com>
5126 * valprint.h (build_address_symbolic): Declare.
5127 * printcmd.c (print_address_symbolic): Update.
5128 (build_address_symbolic): Change "name" and "filename" to
5130 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5132 * defs.h (build_address_symbolic): Remove declaration.
5134 2018-06-07 Alan Hayward <alan.hayward@arm.com>
5136 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5137 (aarch64_vnv_type): Add function.
5138 (aarch64_pseudo_register_name): Add V regs for SVE.
5139 (aarch64_pseudo_register_type): Likewise.
5140 (aarch64_pseudo_register_reggroup_p): Likewise.
5141 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5142 (aarch64_pseudo_read_value): Add V regs for SVE.
5143 (aarch64_pseudo_write_2): Use V0 offset for SVE
5144 (aarch64_pseudo_write): Add V regs for SVE.
5145 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5147 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5149 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5150 (sve_vl_from_vq): Likewise.
5152 2018-06-05 Tom Tromey <tom@tromey.com>
5154 * cli/cli-cmds.c (show_version): Update.
5155 * top.c (print_gdb_version): Add "interactive" parameter.
5157 * main.c (captured_main_1): Update.
5158 * top.h (print_gdb_version): Add "interactive" parameter and a
5161 2018-06-05 David Malcolm <dmalcolm@redhat.com>
5163 * common/enum-flags.h: Add trailing semicolon to example in
5166 2018-06-05 Tom Tromey <tom@tromey.com>
5169 * NEWS: Add entry about pager.
5170 * utils.c (pagination_disabled_for_command): New global.
5171 (prompt_for_continue): Allow "c" response to prompt.
5172 (reinitialize_more_filter): Clear
5173 pagination_disabled_for_command.
5174 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5176 2018-06-04 Tom Tromey <tom@tromey.com>
5178 * ada-lang.h (ada_lookup_symbol_list): Update.
5179 * ada-lang.c (resolve_subexp): Update.
5180 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5182 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5183 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5184 results parameter to std::vector.
5185 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5187 * ada-exp.y (block_lookup): Update.
5188 (select_possible_type_sym): Change type of syms. Remove nsyms
5190 (write_var_or_type, write_name_assoc): Update.
5192 2018-06-04 Joel Brobecker <brobecker@adacore.com>
5194 * windows-nat.c (windows_nat_target::xfer_partial): Return
5195 TARGET_XFER_E_IO if we need to delegate to the target beneath
5196 but BENEATH is NULL.
5198 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5200 * Makefile.in (config.status): Add configure.nat as a
5203 2018-06-04 Tom Tromey <tom@tromey.com>
5205 * cp-name-parser.y (cpname_state): Add method declarations.
5206 (HANDLE_QUAL): Update.
5207 (cpname_state::d_grab, cpname_state::fill_comp)
5208 (cpname_state::make_operator, cpname_state::make_dtor)
5209 (cpname_state::make_builtin_type, cpname_state::make_name)
5210 (cpname_state::d_qualify, cpname_state::d_int_type)
5211 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5212 (%union): Move earlier.
5214 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5216 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5218 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5220 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5221 (aarch64_pseudo_write_1): Likewise.
5222 (aarch64_pseudo_read_value): Use helper.
5223 (aarch64_pseudo_write): Likewise.
5225 2018-06-04 Pedro Alves <palves@redhat.com>
5227 * darwin-nat.c (darwin_ops): Delete.
5228 (darwin_attach_pid): Use get_native_target.
5230 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5232 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5233 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5235 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5237 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5238 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5239 (aarch64_gdbarch_init): Check for SVE.
5240 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5242 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5244 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5245 * aarch64-tdep.h (aarch64_read_description): Likewise.
5246 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5247 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5248 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5249 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5250 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5252 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5254 * value.c (value_fetch_lazy_bitfield): New.
5255 (value_fetch_lazy_memory): New.
5256 (value_fetch_lazy_register): New.
5257 (value_fetch_lazy): Factor out to smaller functions.
5259 2018-06-01 Tom Tromey <tom@tromey.com>
5261 * cp-name-parser.y (backslashable, represented): Now const.
5263 2018-06-01 Tom Tromey <tom@tromey.com>
5265 * cp-name-parser.y: Include parser-defs.h.
5266 (parser_fprintf): Remove declaration.
5268 2018-06-01 Tom Tromey <tom@tromey.com>
5270 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5272 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5273 (global_result): Remove globals.
5274 (struct cpname_state): New.
5275 (yyparse): Don't declare.
5276 (yylex, yyerror): Move declarations after %union.
5277 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5278 (make_name): Add state parameter.
5280 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5282 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5284 (yylex): Add lvalp, state parameters.
5285 (yyerror): Add state parameter.
5286 (cp_demangled_name_to_comp): Update.
5288 2018-06-01 Tom Tromey <tom@tromey.com>
5290 * cp-name-parser.y (parser_fprintf): Declare.
5291 (GDB_YY_REMAP_PREFIX): Define.
5292 Include yy-remap.h. Don't redefine yy* identifiers.
5294 2018-06-01 Tom Tromey <tom@tromey.com>
5296 * python/py-type.c (typy_legacy_template_argument): Update.
5297 * cp-support.h (cp_demangled_name_to_comp): Update.
5298 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5299 parameter to be a "std::string *".
5302 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5304 * ada-lex.l: Include "diagnostics.h" instead of
5305 "common/diagnostics.h".
5306 * unittests/environ-selftests.c: Likewise.
5307 * common/diagnostics.h: Moved to ../include.
5309 2018-06-01 Joel Brobecker <brobecker@adacore.com>
5311 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5312 to language_mode_manual while calling breakpoint_re_set_one.
5314 2018-06-01 Tom Tromey <tom@tromey.com>
5316 * valops.c (value_cast_structs, destructor_name_p): Update.
5317 * symtab.c (gdb_mangle_name): Update.
5318 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5320 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5321 (pascal_object_print_value_fields, pascal_object_print_value):
5323 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5324 * linespec.c (find_methods): Update.
5325 * gdbtypes.h (type_name_no_tag): Remove.
5326 (type_name_or_error): Rename from type_name_no_tag_or_error.
5327 * gdbtypes.c (type_name_no_tag): Remove.
5328 (type_name_or_error): Rename from type_name_no_tag_or_error.
5329 (lookup_struct_elt_type, check_typedef): Update.
5330 * expprint.c (print_subexp_standard): Update.
5331 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5332 * d-namespace.c (d_lookup_nested_symbol): Update.
5333 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5334 (cp_print_class_member): Update.
5335 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5336 * completer.c (add_struct_fields): Update.
5337 * c-typeprint.c (cp_type_print_derivation_info)
5338 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5340 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5341 (ada_prefer_type, ada_is_exception_sym): Update.
5343 2018-06-01 Tom Tromey <tom@tromey.com>
5345 * valops.c (enum_constant_from_type, value_namespace_elt)
5346 (value_maybe_namespace_elt): Update.
5347 * valarith.c (find_size_for_pointer_math): Update.
5348 * target-descriptions.c (make_gdb_type): Update.
5349 * symmisc.c (print_symbol): Update.
5350 * stabsread.c (define_symbol, read_type)
5351 (complain_about_struct_wipeout, add_undefined_type)
5352 (cleanup_undefined_types_1): Update.
5353 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5354 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5355 (rust_internal_print_type, rust_composite_type)
5356 (rust_evaluate_funcall, rust_evaluate_subexp)
5357 (rust_inclusive_range_type_p): Update.
5358 * python/py-type.c (typy_get_tag): Update.
5359 * p-typeprint.c (pascal_type_print_base): Update.
5360 * mdebugread.c (parse_symbol, parse_type): Update.
5361 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5363 * guile/scm-type.c (gdbscm_type_tag): Update.
5364 * go-lang.c (sixg_string_p): Update.
5365 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5367 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5368 (TYPE_TAG_NAME): Remove.
5369 * gdbtypes.c (type_name_no_tag): Simplify.
5370 (check_typedef, check_types_equal, recursive_dump_type)
5371 (copy_type_recursive, arch_composite_type): Update.
5372 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5373 in summary mode when needed.
5374 * eval.c (evaluate_funcall): Update.
5375 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5376 (process_structure_scope, read_enumeration_type)
5377 (read_namespace_type, read_module_type, determine_prefix): Update.
5378 * cp-support.c (inspect_type): Update.
5379 * coffread.c (process_coff_symbol, decode_base_type): Update.
5380 * c-varobj.c (c_is_path_expr_parent): Update.
5381 * c-typeprint.c (c_type_print_base_struct_union): Update.
5382 (c_type_print_base_1): Update. Print struct/class/union/enum in
5383 summary when using C language.
5384 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5385 (gen_maybe_namespace_elt): Update.
5386 * ada-lang.c (ada_type_name): Simplify.
5387 (empty_record, ada_template_to_fixed_record_type_1)
5388 (template_to_static_fixed_type)
5389 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5391 2018-06-01 Tom Tromey <tom@tromey.com>
5393 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5395 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5396 (c_print_type): Update.
5397 (c_print_type): New overload.
5398 (c_type_print_varspec_prefix, c_type_print_args)
5399 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5400 (c_type_print_base_struct_union, c_type_print_base_1)
5401 (cp_type_print_method_args): Add "language" parameter.
5402 (c_type_print_base): Update.
5403 * c-lang.h (c_print_type): Add new overload.
5405 2018-06-01 Tom Tromey <tom@tromey.com>
5407 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5408 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5410 2018-06-01 Alan Hayward <alan.hayward@arm.com>
5412 * aarch64-tdep.c (aarch64_sve_register_names): New const
5414 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5415 (AARCH64_SVE_Z_REGS_NUM): New define.
5416 (AARCH64_SVE_P_REGS_NUM): Likewise.
5417 (AARCH64_SVE_NUM_REGS): Likewise.
5419 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
5421 * nat/linux-ptrace.h [__alpha__]
5422 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5425 2018-05-31 Maciej W. Rozycki <macro@mips.com>
5427 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5428 the endianness selected.
5429 * NEWS: Document `set endian auto' mode operation update.
5431 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5433 * Makefile.in: Add new header.
5434 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5435 (sve_vl_from_vg): Likewise.
5436 (sve_vq_from_vl): Likewise.
5437 (sve_vl_from_vq): Likewise.
5438 (sve_vq_from_vg): Likewise.
5439 (sve_vg_from_vq): Likewise.
5440 * configure.nat: Add new c file.
5441 * nat/aarch64-sve-linux-ptrace.c: New file.
5442 * nat/aarch64-sve-linux-ptrace.h: New file.
5444 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5446 * aarch64-linux-nat.c (aarch64_linux_read_description):
5448 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5450 * aarch64-tdep.c (tdesc_aarch64_list): Add.
5451 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
5452 (aarch64_gdbarch_init): Add parmeter zero.
5453 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
5454 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
5455 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
5457 * doc/gdb.texinfo: Describe SVE feature
5458 * features/aarch64-sve.c: New file.
5460 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
5463 * gdbarch.sh (significant_addr_bit): Default to zero when
5464 not set by target architecture.
5465 * gdbarch.c: Re-generated.
5466 * utils.c (address_significant): Update.
5468 2018-05-30 Joel Brobecker <brobecker@adacore.com>
5470 * stack.c (func_command): Remove trailing newline in call to error.
5472 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5474 * regcache.h (regcache_raw_collect): Remove, update callers to
5475 use regcache::raw_collect.
5476 * regcache.c (regcache_raw_collect): Remove.
5478 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5480 * regcache.h (regcache_raw_supply): Remove, update callers to
5481 use detached_regcache::raw_supply.
5482 * regcache.c (regcache_raw_supply): Remove.
5484 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5486 * regcache.h (regcache_cooked_write_part): Remove, update
5487 callers to use regcache::cooked_write_part.
5488 * regcache.c (regcache_cooked_write_part): Remove.
5490 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5492 * regcache.h (regcache_cooked_read_part): Remove, update callers
5493 to use readable_regcache::cooked_read_part.
5494 * regcache.c (regcache_cooked_read_part): Remove.
5496 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5498 * regcache.h (regcache_cooked_read_value): Remove, update
5499 callers to use readable_regcache::cooked_read_value.
5500 * regcache.c (regcache_cooked_read_value): Remove.
5502 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5504 * regcache.h (regcache_cooked_write): Remove, update callers to
5505 use regcache::cooked_write.
5506 * regcache.c (regcache_cooked_write): Remove.
5508 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5510 * regcache.h (regcache_invalidate): Remove, update callers to
5511 use detached_regcache::invalidate instead.
5512 * regcache.c (regcache_invalidate): Remove.
5514 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5516 * regcache.h (regcache_raw_write_part): Remove, update callers
5517 to use regcache::raw_write_part instead.
5518 * regcache.c (regcache_raw_write_part): Remove.
5520 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5522 * regcache.h (regcache_raw_read_part): Remove, update callers to
5523 use readable_regcache::raw_read_part instead.
5524 * regcache.c (regcache_raw_read_part): Remove.
5526 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5528 * regcache.h (regcache_cooked_read): Remove, update callers to
5529 use readable_regcache::cooked_read instead.
5530 * regcache.c (regcache_cooked_read): Remove.
5532 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5534 * regcache.h (regcache_raw_write): Remove, update callers to use
5535 regcache::raw_write instead.
5536 * regcache.c (regcache_raw_write): Remove.
5538 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5540 * regcache.h (regcache_raw_read): Remove, update callers to use
5541 readable_regcache::raw_read instead.
5542 * regcache.c (regcache_raw_read): Remove.
5544 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5546 * regcache.h (regcache_raw_update): Remove, update callers to
5547 use readable_regcache::raw_update instead.
5548 * regcache.c (regcache_raw_update): Remove.
5550 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5552 * regcache.h (regcache_register_status): Remove, update callers
5553 to use reg_buffer::get_register_status directly instead.
5554 * regcache.c (regcache_register_status): Remove.
5556 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5558 * regcache.h (regcache_get_ptid): Remove, update all callers to
5559 call regcache::ptid instead.
5560 * regcache.c (regcache_get_ptid): Remove.
5562 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5564 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
5566 2018-05-30 Pedro Alves <palves@redhat.com>
5568 * common/common-exceptions.h (exception_rethrow): Use
5571 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
5573 * breakpoint.c (print_solib_event, check_status_catch_solib):
5574 Remove struct keyword in range-based for loops.
5575 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
5576 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
5578 * linespec.c (find_superclass_methods, search_minsyms_for_name):
5580 * symfile.c (addr_info_make_relative): Likewise.
5581 * thread.c (value_in_thread_stack_temporaries): Likewise.
5583 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
5586 * valops.c (value_struct_elt_for_reference): Call check_typedef on
5587 aggregate type to get its real type before accessing it.
5589 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
5591 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
5592 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
5593 * coff-pe-read.c (add_pe_forwarded_sym): Replace
5594 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
5595 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
5596 * jit.c (jit_breakpoint_re_set_internal): Likewise.
5597 * printcmd.c (info_address_command): Likewise.
5599 2018-05-29 Tom Tromey <tom@tromey.com>
5601 * windows-nat.c (handle_exception): Update fall-through comment.
5603 2018-05-29 Tom Tromey <tom@tromey.com>
5605 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
5606 (struct program_space) <added_solibs>: Now a std::vector.
5607 * breakpoint.c (print_solib_event): Update.
5608 (check_status_catch_solib): Update.
5609 * progspace.c (clear_program_space_solib_cache): Update.
5610 * solib.c (update_solib_list): Update.
5612 2018-05-29 Tom Tromey <tom@tromey.com>
5614 * python/py-type.c (typy_richcompare): Update.
5615 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
5616 * gdbtypes.h (types_deeply_equal): Return bool.
5617 (types_equal): Likewise.
5618 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
5620 (check_types_equal): Change worklist to std::vector. Return
5622 (struct type_equality_entry): Add constructor.
5623 (compare_maybe_null_strings): Return bool.
5624 (check_types_worklist): Return bool. Change worklist to
5626 (types_deeply_equal): Use std::vector.
5627 (types_equal): Return bool.
5628 (compare_maybe_null_strings): Simplify.
5630 2018-05-29 Tom Tromey <tom@tromey.com>
5632 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
5634 2018-05-29 Tom Tromey <tom@tromey.com>
5636 * objc-lang.h: Don't include cp-support.h.
5637 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
5640 2018-05-27 Tom Tromey <tom@tromey.com>
5642 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
5644 2018-05-25 Tom Tromey <tom@tromey.com>
5646 * value.c (value::location): Initialize.
5648 2018-05-25 Tom Tromey <tom@tromey.com>
5650 * dbxread.c (init_bincl_list): Remove.
5651 (bincl_list): Now a std::vector.
5652 (bincls_allocated, next_bincl): Remove.
5653 (free_bincl_list, do_free_bincl_list_cleanup)
5654 (make_cleanup_free_bincl_list): Remove.
5655 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
5657 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
5658 (struct header_file_location): Add constructor.
5659 (add_bincl_to_list): Remove.
5661 2018-05-25 Tom Tromey <tom@tromey.com>
5663 * tui/tui.c (tui_enable): Update.
5664 * mi/mi-interp.c (mi_interp::init): Update.
5665 * interps.h (class interp) <name>: New method.
5666 <m_name>: Rename from name.
5667 (~scoped_restore_interp): Update.
5668 * interps.c (interp::interp): Update.
5669 (interp_add, interp_set, interp_lookup_existing)
5670 (current_interp_named_p): Update.
5672 2018-05-25 Tom Tromey <tom@tromey.com>
5674 * interps.c (interp_name): Remove.
5675 * mi/mi-interp.c (mi_interp::init): Update.
5676 * interps.h (interp_name): Remove.
5677 (~scoped_restore_interp): Update.
5678 * tui/tui.c (tui_enable): Update.
5680 2018-05-25 Tom Tromey <tom@tromey.com>
5682 * utils.c (fputs_maybe_filtered): Update.
5683 * linespec.c (decode_line_full): Update.
5684 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
5685 (mi_print_breakpoint_for_event, mi_solib_loaded)
5686 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
5687 (mi_user_selected_context_changed): Update.
5688 * mi/mi-main.c (mi_execute_command): Update.
5689 * cli/cli-script.c (execute_control_command): Update.
5690 * python/python.c (execute_gdb_command): Update.
5691 * solib.c (info_sharedlibrary_command): Update.
5692 * interps.c (interp_ui_out): Remove.
5693 * interps.h (interp_ui_out): Remove.
5695 2018-05-25 Tom Tromey <tom@tromey.com>
5697 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
5698 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
5699 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
5701 2018-05-25 Tom Tromey <tom@tromey.com>
5703 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
5704 * interps.c (interp_exec): Use scoped_restore.
5706 2018-05-25 Tom Tromey <tom@tromey.com>
5708 * remote.c (remote_target::remote_file_get): Use
5710 (remote_target::remote_file_put): Likewise.
5712 2018-05-25 Tom Tromey <tom@tromey.com>
5714 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
5716 (get_pe_section_index, add_pe_exported_sym): Update.
5717 (read_pe_exported_syms): Use gdb::def_vector.
5719 2018-05-25 Tom Tromey <tom@tromey.com>
5721 * frame.c (remove_prev_frame): Remove.
5722 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
5724 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5726 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
5728 * mips-linux-nat.c (supply_fpregset): Always call
5729 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
5730 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
5731 `mips_fill_fpregset'.
5732 * mips-linux-tdep.c (mips_supply_fpregset)
5733 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
5734 (mips_fill_fpregset_wrapper): Remove functions.
5735 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
5736 (mips_linux_fpregset): Remove variable.
5737 (mips_linux_iterate_over_regset_sections): Use
5738 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
5739 (mips_linux_o32_sigframe_init): Remove comment.
5741 2018-05-25 Pedro Alves <palves@redhat.com>
5743 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
5744 (struct readahead_cache, struct packet_reg, struct
5745 remote_arch_state, class remote_state): Move higher up in the
5747 (remote_target::m_remote_state): Now an object instead of a pointer.
5748 (remote_target::get_remote_state): Adjust.
5750 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5752 * stack.c (select_and_print_frame): Delete.
5753 (struct function_bounds): Move struct within function.
5754 (func_command): Most content moved into new function
5755 find_frame_for_function, use new function, print result, add
5757 (find_frame_for_function): New function, now returns a result.
5759 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5761 * stack.c (iterate_over_block_arg_vars): Fix comment.
5762 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
5764 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5768 (scoped_restore_selected_frame::scoped_restore_selected_frame):
5770 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
5772 * frame.h (class scoped_restore_selected_frame): New class.
5773 * stack.c (print_frame_local_vars): Remove catching and rethrowing
5774 of any exception, use scoped_restore_selected_frame to restore the
5777 2018-05-24 Pedro Alves <palves@redhat.com>
5779 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
5782 2018-05-23 Tom Tromey <tom@tromey.com>
5784 * complaints.c (struct complaints): Remove.
5785 (symfile_complaint_book): Remove.
5786 (series): New global.
5787 (complaint_internal): Update.
5788 (clear_complaints): Update.
5790 2018-05-23 Tom Tromey <tom@tromey.com>
5792 * complaints.c (counters): New global.
5793 (struct complain): Remove.
5794 (struct complaints) <root>: Remove.
5795 (complaint_sentinel): Remove.
5796 (symfile_complaint_book): Update.
5797 (find_complaint) Remove.
5798 (complaint_internal, clear_complaints): Update.
5800 2018-05-23 Tom Tromey <tom@tromey.com>
5802 * complaints.c (struct complain) <file, line>: Remove.
5803 (find_complaint): Remove file, line parameters.
5804 (complaint_internal): Update.
5806 2018-05-23 Tom Tromey <tom@tromey.com>
5808 * complaints.c (vcomplaint): Remove.
5809 (complaint_internal) Merge in contents of vcomplaint.
5811 2018-05-23 Tom Tromey <tom@tromey.com>
5813 * complaints.c (struct complaints) <explanation>: Remove.
5814 (symfile_explanations): Remove.
5815 (symfile_complaint_book): Update.
5816 (vcomplaint): Update.
5817 (struct explanation): Remove.
5819 2018-05-23 Tom Tromey <tom@tromey.com>
5821 * complaints.c (symfile_complaints): Remove.
5822 (complaint_internal): Remove "complaints" parameter.
5823 (clear_complaints, vcomplaint): Remove "c" parameter.
5824 (get_complaints): Remove.
5825 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
5826 (dwarf2_debug_line_missing_file_complaint)
5827 (dwarf2_debug_line_missing_end_sequence_complaint)
5828 (dwarf2_complex_location_expr_complaint)
5829 (dwarf2_const_value_length_mismatch_complaint)
5830 (dwarf2_section_buffer_overflow_complaint)
5831 (dwarf2_macro_malformed_definition_complaint)
5832 (dwarf2_invalid_attrib_class_complaint)
5833 (create_addrmap_from_index, dw2_symtab_iter_next)
5834 (dw2_expand_marked_cus)
5835 (dw2_debug_names_iterator::find_vec_in_debug_names)
5836 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
5837 (create_debug_type_hash_table, init_cutu_and_read_dies)
5838 (partial_die_parent_scope, add_partial_enumeration)
5839 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
5840 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
5841 (read_import_statement, read_file_scope, create_dwo_cu_reader)
5842 (create_cus_hash_table, create_dwp_hash_table)
5843 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5844 (dwarf2_rnglists_process, dwarf2_ranges_process)
5845 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
5846 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
5847 (handle_struct_member_die, process_structure_scope)
5848 (read_array_type, read_common_block, read_module_type)
5849 (read_tag_pointer_type, read_typedef, read_base_type)
5850 (read_subrange_type, load_partial_dies, partial_die_info::read)
5851 (partial_die_info::read, partial_die_info::read)
5852 (partial_die_info::read, read_checked_initial_length_and_offset)
5853 (dwarf2_string_attr, read_formatted_entries)
5854 (dwarf_decode_line_header)
5855 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5856 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
5857 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
5858 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5859 (get_signatured_type, get_DW_AT_signature_type)
5860 (decode_locdesc, file_file_name, consume_improper_spaces)
5861 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
5862 (dwarf_decode_macro_bytes, dwarf_decode_macros)
5863 (dwarf2_symbol_mark_computed, set_die_type)
5864 (read_attribute_value): Update.
5865 * stap-probe.c (handle_stap_probe, get_stap_base_address):
5867 * dbxread.c (unknown_symtype_complaint)
5868 (lbrac_mismatch_complaint, repeated_header_complaint)
5869 (set_namestring, function_outside_compilation_unit_complaint)
5870 (read_dbx_symtab, process_one_symbol): Update.
5871 * gdbtypes.c (stub_noname_complaint): Update.
5872 * windows-nat.c (handle_unload_dll): Update.
5873 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
5874 (decode_base_type): Update.
5875 * xcoffread.c (bf_notfound_complaint, ef_complaint)
5876 (eb_complaint, record_include_begin, record_include_end)
5877 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
5878 (process_xcoff_symbol, read_symbol)
5879 (function_outside_compilation_unit_complaint)
5880 (scan_xcoff_symtab): Update.
5881 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
5882 * buildsym.c (finish_block_internal, make_blockvector)
5883 (end_symtab_get_static_block, augment_type_symtab): Update.
5884 * dtrace-probe.c (dtrace_process_dof)
5885 (dtrace_static_probe_ops::get_probes): Update.
5886 * complaints.h (struct complaint): Don't declare.
5887 (symfile_complaints): Remove.
5888 (complaint_internal): Remove "complaints" parameter.
5889 (complaint): Likewise.
5890 (clear_complaints): Likewise.
5891 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5892 (reread_symbols): Update.
5893 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
5894 (dwarf2_frame_cache, decode_frame_entry): Update.
5895 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
5896 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5897 (info_selectors_command): Update.
5898 * macrotab.c (macro_include, check_for_redefinition)
5899 (macro_undef): Update.
5900 * objfiles.c (filter_overlapping_sections): Update.
5901 * stabsread.c (invalid_cpp_abbrev_complaint)
5902 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
5903 (define_symbol, error_type, read_type, rs6000_builtin_type)
5904 (stabs_method_name_from_physname, read_member_functions)
5905 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
5906 (attach_fields_to_type, complain_about_struct_wipeout)
5907 (read_range_type, read_args, common_block_start)
5908 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
5910 * mdebugread.c (index_complaint, unknown_ext_complaint)
5911 (basic_type_complaint, bad_tag_guess_complaint)
5912 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
5913 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
5914 (parse_procedure, parse_lines)
5915 (function_outside_compilation_unit_complaint)
5916 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
5917 (bad_tag_guess_complaint, reg_value_complaint): Update.
5918 * cp-support.c (demangled_name_complaint): Update.
5919 * macroscope.c (sal_macro_scope): Update.
5920 * dwarf-index-write.c (class debug_names): Update.
5922 2018-05-23 Tom Tromey <tom@tromey.com>
5924 * complaints.c (clear_complaints): Remove "noisy" parameter.
5925 * complaints.h (clear_complaints): Update.
5926 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5927 (reread_symbols): Update.
5929 2018-05-23 Tom Tromey <tom@tromey.com>
5931 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
5933 (vcomplaint, clear_complaints): Update.
5934 (symfile_explanations): Remove some messages.
5936 2018-05-23 Tom Tromey <tom@tromey.com>
5938 * complaints.c (internal_complaint): Remove.
5939 * complaints.h (internal_complaint): Remove.
5941 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5943 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
5945 2018-05-22 Pedro Alves <palves@redhat.com>
5947 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
5948 (remote_fileio_badfd, remote_fileio_return_errno)
5949 (remote_fileio_return_success, remote_fileio_func_open)
5950 (remote_fileio_func_open, remote_fileio_func_close)
5951 (remote_fileio_func_read, remote_fileio_func_write)
5952 (remote_fileio_func_lseek, remote_fileio_func_rename)
5953 (remote_fileio_func_unlink, remote_fileio_func_stat)
5954 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
5955 (remote_fileio_func_isatty, remote_fileio_func_system): Add
5956 remote_target parameter.
5957 (remote_fio_func_map) <func>: Add remote_target parameter.
5958 (do_remote_fileio_request, remote_fileio_request):
5959 * remote-fileio.h (remote_fileio_request):
5960 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
5961 remote_target parameter.
5962 (remote_notif_process, handle_notification): Adjust to pass down
5964 (remote_notif_state_allocate): Add remote_target parameter. Save
5966 * remote-notif.h (struct remote_target): Forward declare.
5967 (struct notif_client) <parse, ack, can_get_pending_events>: Add
5968 remote_target parameter.
5969 (struct remote_notif_state) <remote>: New field.
5970 (remote_notif_ack, remote_notif_parse): Add remote_target
5972 (remote_notif_state_allocate, remote_notif_state_allocate): Add
5973 remote_target parameter.
5974 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
5975 (threads_listing_context, rmt_thread_action, protocol_feature)
5976 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
5977 (packet_result, struct threads_listing_context, remote_state):
5978 Move definitions and declarations higher up.
5979 (remote_target) <~remote_target>: Declare.
5980 (remote_download_command_source, remote_file_put, remote_file_get)
5981 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
5982 (remote_hostio_pread_vFile, remote_hostio_send_command)
5983 (remote_hostio_set_filesystem, remote_hostio_open)
5984 (remote_hostio_close, remote_hostio_unlink, remote_state)
5985 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
5986 (get_memory_write_packet_size, get_memory_read_packet_size)
5987 (append_pending_thread_resumptions, remote_detach_1)
5988 (append_resumption, remote_resume_with_vcont)
5989 (add_current_inferior_and_thread, wait_ns, wait_as)
5990 (process_stop_reply, remote_notice_new_inferior)
5991 (process_initial_stop_replies, remote_add_thread)
5992 (btrace_sync_conf, remote_btrace_maybe_reopen)
5993 (remove_new_fork_children, kill_new_fork_children)
5994 (discard_pending_stop_replies, stop_reply_queue_length)
5995 (check_pending_events_prevent_wildcard_vcont)
5996 (discard_pending_stop_replies_in_queue, stop_reply)
5997 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
5998 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
5999 (remote_interrupt_as, remote_interrupt_ns)
6000 (remote_get_noisy_reply, remote_query_attached)
6001 (remote_add_inferior, remote_current_thread, get_current_thread)
6002 (set_thread, set_general_thread, set_continue_thread)
6003 (set_general_process, write_ptid)
6004 (remote_unpack_thread_info_response, remote_get_threadinfo)
6005 (parse_threadlist_response, remote_get_threadlist)
6006 (remote_threadlist_iterator, remote_get_threads_with_ql)
6007 (remote_get_threads_with_qxfer)
6008 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6009 (get_offsets, remote_check_symbols, remote_supported_packet)
6010 (remote_query_supported, remote_packet_size)
6011 (remote_serial_quit_handler, remote_detach_pid)
6012 (remote_vcont_probe, remote_resume_with_hc)
6013 (send_interrupt_sequence, interrupt_query)
6014 (remote_notif_get_pending_events, fetch_register_using_p)
6015 (send_g_packet, process_g_packet, fetch_registers_using_g)
6016 (store_register_using_P, store_registers_using_G)
6017 (set_remote_traceframe, check_binary_download)
6018 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6019 (remote_xfer_live_readonly_partial, remote_read_bytes)
6020 (remote_send_printf, remote_flash_write, readchar)
6021 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6022 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6023 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6024 (extended_remote_disable_randomization, extended_remote_run)
6025 (send_environment_packet, extended_remote_environment_support)
6026 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6027 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6028 (packet_command): Now methods of ...
6029 (remote_target): ... this class.
6030 (m_remote_state) <remote_target>: New field.
6031 (struct remote_state) <stop_reply_queue,
6032 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6034 (remote_state::remote_state): Allocate stop_reply_queue.
6035 (remote_state): Delete global.
6036 (get_remote_state_raw): Delete.
6037 (remote_target::get_remote_state): Allocate m_remote_state on
6039 (get_current_remote_target): New.
6040 (remote_ops, extended_remote_ops): Delete.
6041 (wait_forever_enabled_p, remote_async_inferior_event_token):
6042 Delete, moved to struct remote_state.
6043 (remote_target::close): Delete self. Destruction bits split to
6045 (remote_target::~remote_target): ... this.
6046 (show_memory_packet_size): Adjust to use
6047 get_current_remote_target.
6048 (struct protocol_feature) <func>: Add remote_target parameter.
6049 All callers adjusted.
6050 (curr_quit_handler_target): New.
6051 (remote_serial_quit_handler): Reimplement.
6052 (remote_target::open_1): Adjust to use get_current_remote_target.
6053 Heap-allocate remote_target/extended_remote_target instances.
6054 (vcont_builder::vcont_builder): Add remote_target parameter, and
6055 save it in m_remote. All callers adjusted.
6056 (vcont_builder::m_remote): New field.
6057 (vcont_builder::restart, vcont_builder::flush)
6058 (vcont_builder::push_action): Use it.
6059 (remote_target::commit_resume): Use it.
6060 (struct queue_iter_param) <remote>: New field.
6061 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6062 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6063 (check_pending_event_prevents_wildcard_vcont_callback)
6064 (remote_target::check_pending_events_prevent_wildcard_vcont)
6065 (remote_target::discard_pending_stop_replies)
6066 (remote_target::discard_pending_stop_replies_in_queue)
6067 (remote_target::remote_notif_remove_queued_reply): Fill in
6069 (remote_notif_get_pending_events): New.
6070 (remote_target::readchar, remote_target::remote_serial_write):
6071 Save/restore curr_quit_handler_target.
6073 (kill_new_fork_children): Fill in 'remote' field.
6074 (packet_command): Use get_current_remote_target, defer to
6075 remote_target method of same name.
6076 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6077 parameter, and save it in m_remote. All callers adjusted.
6078 (scoped_remote_fd::release): Use m_remote.
6079 (scoped_remote_fd::m_remote): New field.
6080 (remote_file_put, remote_file_get, remote_file_delete): Use
6081 get_current_remote_target, defer to remote_target method of same
6083 (remote_btrace_reset): Add remote_state paremeter. Update all
6085 (remote_async_inferior_event_handler). Pass down 'data'.
6086 (remote_new_objfile): Use get_current_remote_target.
6087 (remote_target::vcont_r_supported): New.
6088 (set_range_stepping): Use get_current_remote_target and
6089 remote_target::vcont_r_supported.
6090 (_initialize_remote): Don't allocate 'remote_state' and
6091 'stop_reply_queue' globals.
6092 * remote.h (struct remote_target): Forward declare.
6093 (getpkt, putpkt, remote_notif_get_pending_events): Add
6094 'remote_target' parameter.
6096 2018-05-22 Pedro Alves <palves@redhat.com>
6098 * remote.c (vcont_builder): Now a class. Make all data members
6100 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6102 (vcont_builder_restart): Rename to ...
6103 (vcont_builder::restart): ... this.
6104 (vcont_builder_flush): Rename to ...
6105 (vcont_builder::flush): ... this.
6106 (vcont_builder_push_action): Rename to ...
6107 (vcont_builder::push_action): ... this.
6108 (remote_target::commit_resume): Adjust.
6110 2018-05-22 Pedro Alves <palves@redhat.com>
6112 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6113 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6114 (get_fixed_memory_packet_size): New.
6115 (get_memory_packet_size): Use it.
6116 (set_memory_packet_size): Don't override the config size with
6117 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6118 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6119 Don't refer to get_memory_packet_size if not connected to a remote
6120 target. Show "(default)" if configured size is 0.
6122 2018-05-22 Pedro Alves <palves@redhat.com>
6124 * remote.c (remote_target::mourn_inferior): Move
6125 discard_pending_stop_replies call here from ...
6126 (_initialize_remote): ... here.
6128 2018-05-22 Pedro Alves <palves@redhat.com>
6130 * remote.c (compare_section_command): Remove set_general_process
6133 2018-05-22 Pedro Alves <palves@redhat.com>
6135 * remote.c (struct packet_reg, struct remote_arch_state):
6136 Move higher up in the file.
6137 (remote_state) <m_arch_states>: Store remote_arch_state values
6138 instead of remote_arch_state pointers.
6139 (remote_state::get_remote_arch_state): Adjust.
6141 2018-05-22 Pedro Alves <palves@redhat.com>
6143 * remote.c: Include <unordered_map>.
6144 (remote_state): Now a class.
6145 (remote_state) <get_remote_arch_state>: Declare method.
6146 <get_remote_arch_state>: New field.
6147 (remote_arch_state) <remote_arch_state>: Declare ctor.
6148 <regs>: Now a unique_ptr.
6149 (remote_gdbarch_data_handle): Delete.
6150 (get_remote_arch_state): Delete.
6151 (remote_state::get_remote_arch_state): New.
6152 (get_remote_state): Adjust to call remote_state's
6153 get_remote_arch_state method.
6154 (init_remote_state): Delete, bits factored out to ...
6155 (remote_arch_state::remote_arch_state): ... this new method.
6156 (get_remote_packet_size, get_memory_packet_size)
6157 (process_g_packet, remote_target::fetch_registers)
6158 (remote_target::prepare_to_store, store_registers_using_G)
6159 (remote_target::store_registers, remote_target::get_trace_status):
6160 Adjust to call remote_state's method.
6161 (_initialize_remote): Remove reference to
6162 remote_gdbarch_data_handle.
6164 2018-05-22 Pedro Alves <palves@redhat.com>
6166 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6167 pread>: New method declarations.
6168 (remote_target::open_1): Adjust.
6169 (readahead_cache_invalidate): Rename to ...
6170 (readahead_cache::invalidate): ... this, and adjust to be a class
6172 (readahead_cache_invalidate_fd): Rename to ...
6173 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6175 (remote_hostio_pwrite): Adjust.
6176 (remote_hostio_pread_from_cache): Rename to ...
6177 (readahead_cache::pread): ... this, and adjust to be a class
6179 (remote_hostio_close): Adjust.
6181 2018-05-22 Pedro Alves <palves@redhat.com>
6183 * remote.c (remote_hostio_close_cleanup): Delete.
6184 (class scoped_remote_fd): New.
6185 (remote_file_put, remote_file_get): Use it.
6187 2018-05-22 Pedro Alves <palves@redhat.com>
6189 (struct vCont_action_support): Use bool and initialize all fields.
6190 (struct readahead_cache): Initialize all fields.
6191 (remote_state): Use bool and initialize all fields.
6192 (remote_state::remote_state, remote_state::~remote_state): New.
6193 (new_remote_state): Delete.
6194 (_initialize_remote): Use new to allocate remote_state.
6196 2018-05-22 Pedro Alves <palves@redhat.com>
6200 * c-exp.y: Include "c-support.h".
6201 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6202 of tolower. Use c_ident_is_alpha to scan names.
6203 * c-lang.c: Include "c-support.h".
6204 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6205 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6206 * c-support.h: New file, with bits factored out from ...
6207 * cp-name-parser.y: ... this file.
6208 Include "c-support.h".
6209 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6210 c-support.h and renamed.
6211 (symbol_end, yylex): Adjust.
6213 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6215 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6216 parameter type to CORE_ADDR.
6217 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6218 parameter type in declaration to CORE_ADDR.
6219 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6220 target_auxv_search to get AT_HWCAP and use the result to get the
6222 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6223 to CORE_ADDR. Remove the cast of the return value to unsigned
6224 long. Fix error predicate of target_auxv_search.
6225 (ppc_linux_nat_target::read_description): Change the type of the
6226 hwcap variable to CORE_ADDR.
6228 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6230 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6231 if the size of fpscr is larger than 32 bits.
6233 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6235 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6236 (ppc32_linux_vsxregmap): New global.
6237 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6238 regcache_supply_regset, and regcache_collect_regset.
6239 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6240 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6241 (fetch_vsx_register, store_vsx_register): Remove.
6242 (fetch_vsx_registers): Add regno parameter. Get regset using
6243 ppc_linux_vsxregset. Use regset to supply registers.
6244 (store_vsx_registers): Add regno parameter. Get regset using
6245 ppc_linux_vsxregset. Use regset to collect registers.
6246 (fetch_register): Call fetch_vsx_registers instead of
6248 (store_register): Call store_vsx_registers instead of
6250 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6251 new regno parameter.
6252 (store_ppc_registers): Call store_vsx_registers with -1 for the
6253 new regno parameter.
6254 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6255 (ppc_collect_vsxregset): Remove.
6257 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6259 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6261 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6262 for vector register offset fields.
6263 (ppc64_fbsd_reg_offsets): Likewise.
6264 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6265 to vector register offset fields.
6266 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6267 to vector register offset fields.
6268 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6269 vector register offset fields.
6270 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6271 initializers for vector register offset fields.
6272 (rs6000_aix64_reg_offsets): Likewise.
6273 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6274 (ppc_supply_vrregset): Remove.
6275 (ppc_collect_vrregset): Remove.
6276 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6277 (ppc_linux_vrregset) : New function.
6278 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6279 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6280 (ppc32_linux_vrregset): Remove.
6281 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6282 and use result instead of ppc32_linux_vrregset.
6283 (ppc32_linux_reg_offsets): Remove initializers for vector register
6285 (ppc64_linux_reg_offsets): Likewise.
6286 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6287 * ppc-linux-nat.c: Include regset.h.
6288 (gdb_vrregset_t): Adjust comment to account for little-endian
6290 (supply_vrregset, fill_vrregset): Remove.
6291 (fetch_altivec_register, store_altivec_register): Remove.
6292 (fetch_altivec_registers): Add regno parameter. Get regset using
6293 ppc_linux_vrregset. Use regset to supply registers.
6294 (store_altivec_registers): Add regno parameter. Get regset using
6295 ppc_linux_vrregset. Use regset to collect registers.
6296 (fetch_register): Call fetch_altivec_registers instead of
6297 fetch_altivec_register.
6298 (store_register): Call store_altivec_registers instead of
6299 store_altivec_register.
6300 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6301 the new regno parameter.
6302 (store_ppc_registers): Call store_altivec_registers with -1 for
6303 the new regno parameter.
6305 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6307 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6308 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6309 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6310 (gdb_vrregset_t): Change array type size to
6311 PPC_LINUX_SIZEOF_VRREGSET.
6312 (gdb_vsxregset_t): Change array type size to
6313 PPC_LINUX_SIZEOF_VSXREGSET.
6314 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6315 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6316 PPC_LINUX_SIZEOF_VSXREGSET.
6318 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6320 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6321 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6323 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6324 ppc_linux_target_wordsize with tid.
6325 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6327 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6328 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6329 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6330 tid parameter. Remove static specifier.
6331 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6332 (ppc_linux_target_wordsize): New declaration.
6334 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6336 * arch/ppc-linux-common.c: New file.
6337 * arch/ppc-linux-common.h: New file.
6338 * arch/ppc-linux-tdesc.h: New file.
6339 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6340 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6341 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6342 arch/ppc-linux-tdesc.h.
6343 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6344 arch/ppc-linux-tdesc.h.
6345 (ppc_linux_nat_target::read_description): Remove target
6346 description matching code. Fill a ppc_linux_features struct and
6347 call ppc_linux_match_description with it. Move comment about ISA
6348 2.05 to ppc-linux-common.c.
6349 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6350 arch/ppc-linux-tdesc.h.
6351 (ppc_linux_core_read_description): Remove target description
6352 matching code. Fill a ppc_linux_features struct and call
6353 ppc_linux_match_description with it.
6354 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6355 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6356 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6357 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6358 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6359 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6360 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6361 (tdesc_powerpc_e500l): Remove.
6363 2018-05-22 Joel Brobecker <brobecker@adacore.com>
6365 * ada-lang.c (catch_assert_command): Pass empty string instead
6366 of NULL for excep_string argument.
6368 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6370 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6371 the width of the requested register exceeds the width of the
6374 2018-05-21 Tom Tromey <tom@tromey.com>
6376 * printcmd.c (output_command): Remove.
6377 (output_command_const): Rename to output_command.
6378 * valprint.h (output_command): Rename from output_command_const.
6379 * tracepoint.c (trace_dump_actions): Call output_command.
6381 2018-05-21 Tom Tromey <tom@tromey.com>
6383 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6384 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6385 * ada-lang.h (create_ada_exception_catchpoint): Update.
6386 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6388 (create_excep_cond_exprs, ~ada_catchpoint)
6389 (should_stop_exception, print_one_exception)
6390 (print_mention_exception, print_recreate_exception): Update.
6391 (ada_get_next_arg): Remove.
6392 (catch_ada_exception_command_split): Use std::string. Change type
6393 of "excep_string", "cond_string".
6394 (catch_ada_exception_command): Update.
6395 (create_ada_exception_catchpoint): Change type of excep_string.
6396 (ada_exception_sal): Remove excep_string parameter.
6397 (~ada_catchpoint): Remove.
6399 2018-05-21 Tom Tromey <tom@tromey.com>
6401 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6404 2018-05-21 Tom Tromey <tom@tromey.com>
6406 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6407 Return unique_xmalloc_ptr.
6408 (print_it_exception): Update.
6410 2018-05-21 Tom Tromey <tom@tromey.com>
6412 * tracepoint.c (trace_dump_actions): Use std::string.
6414 2018-05-21 Tom Tromey <tom@tromey.com>
6416 * symfile.c (reread_symbols): Use std::string for original_name.
6418 2018-05-21 Tom Tromey <tom@tromey.com>
6420 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6421 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6424 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6426 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6428 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6429 * objfiles.c (get_objfile_bfd_data): Allocate
6430 objfile_per_bfd_storage with obstack_new when allocating on
6433 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6435 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6437 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6438 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6439 * mdebugread.c (mdebug_build_psymtabs): Likewise.
6440 (add_pending): Likewise.
6441 (parse_symbol): Likewise.
6442 (parse_partial_symbols): Likewise.
6443 (psymtab_to_symtab_1): Likewise.
6444 (new_psymtab): Likewise.
6445 (elfmdebug_build_psymtabs): Likewise.
6446 * minsyms.c (terminate_minimal_symbol_table): Likewise.
6447 * objfiles.c (get_objfile_bfd_data): Likewise.
6448 (objfile_register_static_link): Likewise.
6449 * psymtab.c (allocate_psymtab): Likewise.
6450 * stabsread.c (read_member_functions): Likewise.
6451 * xcoffread.c (xcoff_end_psymtab): Likewise.
6453 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6455 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
6456 compiler supports std::is_trivially_constructible.
6457 * common/poison.h: Include obstack.h.
6458 (IsMallocable): Define to is_trivially_constructible if the
6459 compiler supports it, define to true_type otherwise.
6463 (XOBNEWVEC): Redefine.
6464 * gdb_obstack.h (obstack_zalloc): New.
6465 (OBSTACK_ZALLOC): Redefine.
6466 (obstack_calloc): New.
6467 (OBSTACK_CALLOC): Redefine.
6469 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
6470 (gdbarch_obstack): New declaration in gdbarch.h, definition in
6472 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
6473 obstack_calloc/obstack_zalloc.
6474 (gdbarch_obstack_zalloc): Remove.
6475 * target-descriptions.c (tdesc_data_init): Use obstack_new.
6477 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6479 * stack.c (backtrace_command_1): Remove useless variable int i.
6481 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6483 * stack.c (print_frame_info): Fix comment.
6485 2018-05-18 Tom Tromey <tom@tromey.com>
6487 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
6488 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
6489 (~dwarf2_per_objfile): Update
6490 (dwarf2_get_dwz_file): Use new.
6491 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6494 2018-05-18 Tom Tromey <tom@tromey.com>
6496 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
6498 * dwarf2read.c (struct dwp_file): Add constructor and
6500 (open_and_init_dwp_file): Return a unique_ptr.
6501 (dwarf2_per_objfile, create_dwp_hash_table)
6502 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
6503 (lookup_dwo_unit_in_dwp): Update.
6504 (open_and_init_dwp_file, get_dwp_file): Update.
6506 2018-05-18 Tom Tromey <tom@tromey.com>
6508 * dwarf2read.c (dwarf2_per_objfile): Update.
6509 (struct mapped_index): Add initializers.
6510 (dwarf2_read_index): Use new.
6511 (dw2_symtab_iter_init): Update.
6512 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
6515 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6517 * dwarf2read.c (mapped_index) <total_size>: Remove.
6519 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6521 * unittests/format_pieces-selftests.c (test_format_specifier):
6524 2018-05-18 Tom Tromey <tom@tromey.com>
6526 * c-typeprint.c (maybe_print_hole): New function.
6527 (c_print_type_struct_field_offset): Update.
6528 (c_type_print_base_struct_union): Call maybe_print_hole.
6530 2018-05-17 Keith Seitz <keiths@redhat.com>
6532 * breakpoint.c (build_bpstat_chain): New function, moved from
6534 (bpstat_stop_status): Add optional parameter, `stop_chain'.
6535 If no stop chain is passed, call build_bpstat_chain to build it.
6536 * breakpoint.h (build_bpstat_chain): Declare.
6537 (bpstat_stop_status): Move documentation here from breakpoint.c.
6538 * infrun.c (handle_signal_stop): Before eliding inlined frames,
6539 build the stop chain and pass it to skip_inline_frames.
6540 Pass this stop chain to bpstat_stop_status.
6541 * inline-frame.c: Include breakpoint.h.
6542 (stopped_by_user_bp_inline_frame): New function.
6543 (skip_inline_frames): Add parameter `stop_chain'.
6544 Move documention to inline-frame.h.
6545 If non-NULL, use stopped_by_user_bp_inline_frame to determine
6546 whether the frame should be elided.
6547 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
6548 Add moved documentation and update for new parameter.
6550 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6553 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6554 unittests/format_pieces-selftests.c.
6555 * common/format.h (format_piece) <operator==>: New.
6556 (format_pieces) <operator[]>: Remove.
6557 * common/format.c (format_pieces::format_pieces): Handle \e.
6558 * unittests/format_pieces-selftests.c: New.
6560 2018-05-17 Tom Tromey <tom@tromey.com>
6563 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
6564 (dw2_instantiate_symtab): Add skip_partial parameter.
6565 (dw2_find_last_source_symtab, dw2_map_expand_apply)
6566 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
6567 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
6568 (dw2_expand_symtabs_matching_one)
6569 (dw2_find_pc_sect_compunit_symtab)
6570 (dw2_debug_names_lookup_symbol)
6571 (dw2_debug_names_expand_symtabs_for_function): Update.
6572 (init_cutu_and_read_dies): Add skip_partial parameter.
6573 (process_psymtab_comp_unit, build_type_psymtabs_1)
6574 (process_skeletonless_type_unit, load_partial_comp_unit)
6575 (psymtab_to_symtab_1): Update.
6576 (load_full_comp_unit): Add skip_partial parameter.
6577 (process_imported_unit_die, dwarf2_read_addr_index)
6578 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
6579 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
6580 (read_signatured_type): Update.
6582 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6584 * value.c (release_value): Remove unused variable.
6585 (record_latest_value): Likewise.
6586 (access_value_history): Likewise.
6587 (preserve_values): Likewise.
6589 2018-05-17 Tom Tromey <tom@tromey.com>
6591 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
6594 2018-05-16 Maciej W. Rozycki <macro@mips.com>
6597 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
6598 Also handle registers whose width is not a multiple of
6600 (linux_nat_trad_target::store_register): Likewise.
6602 2018-05-16 Tom Tromey <tom@tromey.com>
6604 * gdbcore.h (core_bfd): Redefine.
6605 * corelow.c (core_target::close): Update.
6606 (core_target_open): Update.
6607 * progspace.h (struct program_space) <cbfd>: Now a
6610 2018-05-16 Tom Tromey <tom@tromey.com>
6613 * symfile-add-flags.h (enum symfile_add_flags)
6614 <SYMFILE_NOT_FILENAME>: New constant.
6615 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
6616 objfile name from BFD.
6617 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
6618 * minidebug.c (find_separate_debug_file_in_section): Put
6619 ".gnu_debugdata" into BFD's file name.
6621 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
6623 * regcache.c (regcache_read_ftype, regcache_write_ftype):
6626 2018-05-15 Tamar Christina <tamar.christina@arm.com>
6629 * aarch64-tdep.c (aarch64_analyze_prologue,
6630 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
6631 Indicate not interested in errors.
6633 2018-05-15 Maciej W. Rozycki <macro@mips.com>
6635 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
6636 Supply the MIPS_ZERO_REGNUM register.
6638 2018-05-15 Maciej W. Rozycki <macro@mips.com>
6640 * mips-tdep.c (mask_address_var): Make variable static.
6642 2018-05-14 Tom Tromey <tom@tromey.com>
6644 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
6646 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
6648 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
6649 FXSAVE_ADDR for the mxcsr register.
6651 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
6653 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
6655 2018-05-11 Pedro Alves <palves@redhat.com>
6657 * corelow.c (core_target) <core_target>: No longer inline.
6658 Initialize m_core_gdbarch, m_core_vec and build the section table
6660 <~core_target>: New.
6661 <core_gdbarch, get_core_register_section>: New methods.
6662 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
6663 factored out from ...
6664 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
6666 (sniff_core_bfd): Add gdbarch parameter.
6667 (core_close): Delete, merged into ...
6668 (core_target::close): ... here. Delete self.
6669 (core_close_cleanup): Delete.
6670 (core_target_open): Allocate a core_target on the heap. Use a
6671 unique_ptr instead of a cleanup. Bits moved into the core_target
6672 ctor. Adjust to use core_target methods instead of globals.
6673 (get_core_register_section): Rename to ...
6674 (core_target::get_core_register_section): ... this and adjust.
6675 (struct get_core_registers_cb_data): New.
6676 (get_core_registers_cb): Use it. Use bool.
6677 (core_target::fetch_registers, core_target::files_info)
6678 (core_target::xfer_partial, core_target::read_description)
6679 (core_target::pid_to, core_target::thread_name): Adjust to
6680 reference class fields instead of globals.
6681 * target.h (struct target_ops_deleter, target_ops_up): New.
6683 2018-05-11 Pedro Alves <palves@redhat.com>
6685 * corefile.c (core_file_command): Move to corelow.c.
6686 * corelow.c (the_core_target): Delete.
6687 (core_file_command): Moved from corefile.c. Check exec_bfd
6688 instead of the_core_target. Use target_detach instead of calling
6689 into the_core_target directly.
6690 (maybe_say_no_core_file_now): New.
6691 (core_target::detach): Use it.
6692 (_initialize_corelow): Remove references to the_core_target.
6693 * gdbcore.h (the_core_target): Delete.
6695 2018-05-11 Tom Tromey <tromey@redhat.com>
6696 Pedro Alves <palves@redhat.com>
6698 * corefile.c (core_bfd): Remove.
6699 * gdbcore.h (core_bfd): Now a macro.
6700 * progspace.h (struct program_space) <cbfd>: New field.
6702 2018-05-11 Tom Tromey <tom@tromey.com>
6704 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
6707 2018-05-10 Tom Tromey <tom@tromey.com>
6709 * configure: Rebuild.
6710 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
6712 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6715 * regformats/regdat.sh: Adjust script, following the addition
6716 of the new expedite_regs parameter to init_target_desc.
6718 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
6721 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
6722 set_gdbarch_significant_addr_bit.
6723 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
6724 set_gdbarch_significant_addr_bit.
6725 * utils.c (address_significant): Update to sign extend addr.
6727 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
6729 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
6730 (xtensa_linux_init_abi): Limit tdep->num_regs by
6731 tdep->num_nopriv_regs.
6732 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
6733 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
6736 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
6738 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
6740 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6742 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
6743 (I387_MXCSR_INIT_VAL): New constant.
6744 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
6745 buffer if it was supplied by the inferior.
6746 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
6747 (i387_xsave_get_clear_bv): New function.
6748 (i387_supply_xsave): Only read x87 control registers from the
6749 xsave buffer if the feature is enabled, and the state will have
6750 been written, otherwise, provide a suitable default.
6751 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
6752 including x87 control registers. Update control registers if they
6753 have changed from the default value, and mark features as enabled
6755 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
6757 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6759 * spu-tdep.c (info_spu_event_command): Fix output formatting.
6761 2018-05-07 Tom Tromey <tom@tromey.com>
6763 * configure: Rebuild.
6764 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
6766 2018-05-07 Tom Tromey <tom@tromey.com>
6769 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
6770 bit. Use correct value for VDIV.
6772 2018-05-04 Tom Tromey <tom@tromey.com>
6774 * configure: Rebuild.
6775 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
6777 2018-05-04 Tom Tromey <tom@tromey.com>
6779 * linux-record.c (record_linux_system_call) <case
6780 RECORD_SYS_RECVFROM>: Add "break".
6782 2018-05-04 Tom Tromey <tom@tromey.com>
6784 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
6785 Add missing "break".
6786 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
6787 Add missing "break".
6789 2018-05-04 Tom Tromey <tom@tromey.com>
6791 * rs6000-tdep.c (ppc_process_record_op4)
6792 (ppc_process_record_op63): Add fall-through comment.
6794 2018-05-04 Tom Tromey <tom@tromey.com>
6796 * i386-tdep.c (i386_process_record): Add fall-through comment.
6798 2018-05-04 Tom Tromey <tom@tromey.com>
6800 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
6803 2018-05-04 Tom Tromey <tom@tromey.com>
6805 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
6806 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
6807 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
6809 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
6811 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
6814 2018-05-04 Tom Tromey <tom@tromey.com>
6816 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
6818 2018-05-04 Tom Tromey <tom@tromey.com>
6820 * s390-tdep.c (s390_process_record): Fix fall-through comments.
6821 * xcoffread.c (scan_xcoff_symtab): Move comment later.
6822 * symfile.c (section_is_mapped): Fix fall-through comment.
6823 * stabsread.c (define_symbol, read_member_functions): Fix
6824 fall-through comment.
6825 * s390-linux-tdep.c (s390_process_record): Fix fall-through
6827 * remote.c (remote_wait_as): Fix fall-through comment.
6828 * p-exp.y (yylex): Fix fall-through comment.
6829 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
6831 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
6832 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
6833 * jv-exp.y (yylex): Fix fall-through comment.
6834 * go-exp.y (lex_one_token): Fix fall-through comment.
6835 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
6836 fall-through comment.
6837 * f-exp.y (yylex): Fix fall-through comment.
6838 * dwarf2read.c (process_die): Fix fall-through comments.
6839 * dbxread.c (process_one_symbol): Fix fall-through comment.
6840 * d-exp.y (lex_one_token): Fix fall-through comment.
6841 * cp-name-parser.y (yylex): Fix fall-through comment.
6842 * coffread.c (coff_symtab_read): Fix fall-through comment.
6843 * c-exp.y (lex_one_token): Fix fall-through comment.
6844 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
6846 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
6849 2018-05-04 Tom Tromey <tom@tromey.com>
6852 * NEWS: Mention gdb.execute change.
6853 * gdbcmd.h (execute_control_command): Don't declare.
6854 * python/python.c (execute_gdb_command): Use read_command_lines_1,
6855 execute_control_commands, execute_control_commands_to_string.
6856 * cli/cli-script.h (execute_control_commands)
6857 (execute_control_commands_to_string): Declare.
6858 (execute_control_command): Add from_tty parameter.
6859 * cli/cli-script.c (execute_control_commands)
6860 (execute_control_commands_to_string): New functions.
6861 (execute_user_command): Use execute_control_commands.
6862 (execute_control_command_1): Add "from_tty" parameter. Update.
6863 (execute_control_command): Likewise.
6865 2018-05-04 Tom Tromey <tom@tromey.com>
6868 * NEWS: Mention that breakpoint commands are writable.
6869 * python/py-breakpoint.c (bppy_set_commands): New function.
6870 (breakpoint_object_getset) <"commands">: Use it.
6872 2018-05-04 Tom Tromey <tom@tromey.com>
6874 * tracepoint.c (actions_command): Update.
6875 * mi/mi-cmd-break.c (mi_command_line_array)
6876 (mi_command_line_array_cnt, mi_command_line_array_ptr)
6877 (mi_read_next_line): Remove.
6878 (mi_cmd_break_commands): Update.
6879 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
6881 * cli/cli-script.c (get_command_line): Update.
6882 (process_next_line): Use function_view. Constify.
6883 (recurse_read_control_structure, read_command_lines)
6884 (read_command_lines_1): Change argument types to function_view.
6885 (do_define_command, document_command): Update.
6886 * breakpoint.h (check_tracepoint_command): Don't declare.
6887 * breakpoint.c (check_tracepoint_command): Remove.
6888 (commands_command_1, create_tracepoint_from_upload): Update.
6890 2018-05-04 Tom Tromey <tom@tromey.com>
6893 * cli/cli-script.h (enum command_control_type) <define_control>:
6895 * cli/cli-script.c (multi_line_command_p): Handle define_control.
6896 (build_command_line, execute_control_command_1)
6897 (process_next_line): Likewise.
6898 (do_define_command): New function, extracted from define_command.
6899 (define_command): Use it.
6901 2018-05-04 Tom Tromey <tom@tromey.com>
6903 * tracepoint.c (actions_command): Update.
6904 * cli/cli-script.h (read_command_lines): Update.
6905 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
6906 (MAX_TMPBUF): Remove define.
6907 (define_command): Use string_printf.
6908 (document_command): Likewise.
6909 * breakpoint.c (commands_command_1): Update.
6911 2018-05-04 Tom Tromey <tom@tromey.com>
6913 * top.c (execute_command): Update.
6914 * cli/cli-script.h (print_command_lines): Now varargs.
6915 * cli/cli-script.c (print_command_lines): Now varargs.
6916 (execute_control_command_1) <case while_control, case if_control>:
6919 2018-05-04 Tom Tromey <tom@tromey.com>
6921 * tracepoint.c (all_tracepoint_actions): Rename from
6922 all_tracepoint_actions_and_cleanup. Change return type.
6923 (actions_command, encode_actions_1, encode_actions)
6924 (trace_dump_actions, tdump_command): Update.
6925 * remote.c (remote_download_command_source): Update.
6926 * python/python.c (gdbpy_eval_from_control_command)
6927 (python_command, python_interactive_command): Update.
6928 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
6929 * guile/guile.c (guile_command)
6930 (gdbscm_eval_from_control_command, guile_command): Update.
6931 * compile/compile.c (compile_code_command)
6932 (compile_print_command, compile_to_object): Update.
6933 * cli/cli-script.h (struct command_lines_deleter): New.
6934 (counted_command_line): New typedef.
6935 (struct command_line): Add constructor, destructor.
6936 <body_list>: Remove.
6937 <body_list_0, body_list_1>: New members.
6938 (command_line_up): Remove typedef.
6939 (read_command_lines, read_command_lines_1, get_command_line):
6941 (copy_command_lines): Don't declare.
6942 * cli/cli-script.c (build_command_line): Use "new".
6943 (get_command_line): Return counted_command_line.
6944 (print_command_lines, execute_user_command)
6945 (execute_control_command_1, while_command, if_command): Update.
6946 (realloc_body_list): Remove.
6947 (process_next_line, recurse_read_control_structure): Update.
6948 (read_command_lines, read_command_lines_1): Return counted_command_line.
6949 (free_command_lines): Use "delete".
6950 (copy_command_lines): Remove.
6951 (define_command, document_command, show_user_1): Update.
6952 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
6953 a counted_command_line.
6954 * breakpoint.h (counted_command_line): Remove typedef.
6955 (breakpoint_set_commands): Update.
6956 * breakpoint.c (check_no_tracepoint_commands)
6957 (validate_commands_for_breakpoint): Update.
6958 (breakpoint_set_commands): Change commands to be a
6959 counted_command_line.
6960 (commands_command_1, update_dprintf_command_list)
6961 (create_tracepoint_from_upload): Update.
6963 2018-05-04 Tom Tromey <tom@tromey.com>
6965 * cli/cli-decode.h (cmd_list_element): New constructor.
6966 (~cmd_list_element): New destructor.
6967 (struct cmd_list_element): Add initializers.
6968 * cli/cli-decode.c (do_add_cmd): Use "new".
6969 (delete_cmd): Use "delete".
6971 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6972 Pedro Alves <palves@redhat.com>
6974 PR breakpoints/19806 and support for PR external/20207.
6975 * NEWS: Mention Aarch64 watchpoint improvements.
6976 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
6977 watchpoints and PR external/20207 watchpoints.
6978 * nat/aarch64-linux-hw-point.c
6979 (kernel_supports_any_contiguous_range): New.
6980 (aarch64_watchpoint_offset): New.
6981 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
6982 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
6983 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
6984 (aarch64_align_watchpoint): New parameters aligned_offset_p and
6985 next_addr_orig_p. Support PR external/20207 watchpoints.
6986 (aarch64_downgrade_regs): New.
6987 (aarch64_dr_state_insert_one_point): New parameters offset and
6989 (aarch64_dr_state_remove_one_point): Likewise.
6990 (aarch64_handle_breakpoint): Update caller.
6991 (aarch64_handle_aligned_watchpoint): Likewise.
6992 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
6994 (aarch64_linux_set_debug_regs): Remove const from state. Call
6995 aarch64_downgrade_regs.
6996 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
6997 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
6998 (DR_CONTROL_MASK): ... this.
6999 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7000 (unsigned int aarch64_watchpoint_offset): New prototype.
7001 (aarch64_linux_set_debug_regs): Remove const from state.
7002 * utils.c (align_up, align_down): Move to ...
7003 * common/common-utils.c (align_up, align_down): ... here.
7004 * utils.h (align_up, align_down): Move to ...
7005 * common/common-utils.h (align_up, align_down): ... here.
7007 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7009 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7010 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7011 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7012 Re-implement to match the ABI as summarized in GCC's
7013 gcc/config/sparc/sparc.c. All callers updated.
7014 (sparc32_store_arguments): Remove assertion.
7016 2018-05-04 Tom Tromey <tom@tromey.com>
7018 * printcmd.c: Don't include tui.h.
7019 (decode_format): Use skip_spaces.
7021 2018-05-04 Tom Tromey <tom@tromey.com>
7024 * printcmd.c (last_count): New global.
7025 (x_command): Use saved count when repeating.
7027 2018-05-04 Tom Tromey <tom@tromey.com>
7029 * nto-procfs.c (do_closedir_cleanup): Remove.
7030 (procfs_pidlist): Use gdb_dir_up.
7031 * procfs.c (do_closedir_cleanup): Remove.
7032 (proc_update_threads): Use gdb_dir_up.
7033 * common/filestuff.h (struct gdb_dir_deleter): New.
7034 (gdb_dir_up): New typedef.
7036 2018-05-04 Tom Tromey <tom@tromey.com>
7038 * ada-lang.c (print_mention_exception): Use std::string.
7040 2018-05-04 Tom Tromey <tom@tromey.com>
7042 * ada-lang.c (create_excep_cond_exprs): Update.
7043 (ada_exception_catchpoint_cond_string): Use std::string.
7045 2018-05-04 Tom Tromey <tom@tromey.com>
7047 * ada-lang.c (xget_renaming_scope): Return std::string.
7048 (old_renaming_is_invisible): Update.
7050 2018-05-04 Tom Tromey <tom@tromey.com>
7052 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7053 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7055 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7057 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7059 2018-05-04 Tom Tromey <tom@tromey.com>
7061 * remote.c (remote_query_supported_append): Change type.
7062 (remote_check_symbols): Update.
7064 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7067 * configure.ac: Prepend libpython.
7068 * python/python-config.py: Likewise.
7069 * configure: Regenerate.
7071 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7073 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7075 2018-05-03 Pedro Alves <palves@redhat.com>
7078 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7079 override. Write 'true' instead of '1'.
7080 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7083 2018-05-02 Pedro Alves <palves@redhat.com>
7085 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7086 add_inf_child_target.
7087 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7088 add_inf_child_target.
7089 * aix-thread.c (aix_thread_target_info): New.
7090 (aix_thread_target) <shortname, longname, doc>: Delete.
7092 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7093 add_inf_child_target.
7094 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7095 add_inf_child_target.
7096 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7097 add_inf_child_target.
7098 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7099 add_inf_child_target.
7100 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7101 add_inf_child_target.
7102 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7103 add_inf_child_target.
7104 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7105 add_inf_child_target.
7106 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7107 add_inf_child_target.
7108 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7109 add_inf_child_target.
7110 * bfd-target.c (target_bfd_target_info): New.
7111 (target_bfd) <shortname, longname, doc>: Delete.
7113 * bsd-kvm.c (bsd_kvm_target_info): New.
7114 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7116 (bsd_kvm_target::open): Rename to ...
7117 (bsd_kvm_target_open): ... this. Adjust.
7118 * bsd-uthread.c (bsd_uthread_target_info): New.
7119 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7121 * corefile.c (core_file_command): Adjust.
7122 * corelow.c (core_target_info): New.
7123 (core_target) <shortname, longname, doc>: Delete.
7125 (core_target::open): Rename to ...
7126 (core_target_open): ... this. Adjust.
7127 * ctf.c (ctf_target_info): New.
7128 (ctf_target) <shortname, longname, doc>: Delete.
7130 (ctf_target::open): Rename to ...
7131 (ctf_target_open): ... this.
7132 (_initialize_ctf): Adjust.
7133 * exec.c (exec_target_info): New.
7134 (exec_target) <shortname, longname, doc>: Delete.
7136 (exec_target::open): Rename to ...
7137 (exec_target_open): ... this.
7138 * gdbcore.h (core_target_open): Declare.
7139 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7140 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7141 add_inf_child_target.
7142 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7143 add_inf_child_target.
7144 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7145 add_inf_child_target.
7146 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7147 add_inf_child_target.
7148 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7149 add_inf_child_target.
7150 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7151 add_inf_child_target.
7152 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7153 add_inf_child_target.
7154 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7155 add_inf_child_target.
7156 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7157 add_inf_child_target.
7158 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7159 add_inf_child_target.
7160 * inf-child.c (inf_child_target_info): New.
7161 (inf_child_target::info): New.
7162 (inf_child_open_target): Remove 'target' parameter. Use
7163 get_native_target instead.
7164 (inf_child_target::open): Delete.
7165 (add_inf_child_target): New.
7166 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7169 (add_inf_child_target): Declare.
7170 (inf_child_open_target): Declare.
7171 * linux-thread-db.c (thread_db_target_info): New.
7172 (thread_db_target) <shortname, longname, doc>: Delete.
7174 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7175 add_inf_child_target.
7176 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7177 add_inf_child_target.
7178 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7179 add_inf_child_target.
7180 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7181 add_inf_child_target.
7182 * make-target-delegates (print_class): Adjust.
7183 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7184 add_inf_child_target.
7185 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7186 add_inf_child_target.
7187 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7188 add_inf_child_target.
7189 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7190 add_inf_child_target.
7191 * nto-procfs.c (nto_native_target_info): New.
7192 (nto_procfs_target_native) <shortname, longname, doc>:
7195 (nto_procfs_target_info): New.
7196 (nto_procfs_target_procfs) <shortname, longname, doc>:
7199 (init_procfs_targets): Adjust.
7200 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7201 add_inf_child_target.
7202 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7203 add_inf_child_target.
7204 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7205 add_inf_child_target.
7206 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7207 add_inf_child_target.
7208 * ravenscar-thread.c (ravenscar_target_info): New.
7209 (ravenscar_thread_target) <shortname, longname, doc>:
7212 * record-btrace.c (record_btrace_target_info):
7213 (record_btrace_target) <shortname, longname, doc>: Delete.
7215 (record_btrace_target::open): Rename to ...
7216 (record_btrace_target_open): ... this. Adjust.
7217 * record-full.c (record_longname, record_doc): New.
7218 (record_full_base_target) <shortname, longname, doc>: Delete.
7220 (record_full_target_info): New.
7221 (record_full_target): <shortname>: Delete.
7223 (record_full_core_open_1, record_full_open_1): Update comments.
7224 (record_full_base_target::open): Rename to ...
7225 (record_full_open): ... this.
7226 (cmd_record_full_restore): Update.
7227 (_initialize_record_full): Update.
7228 * remote-sim.c (remote_sim_target_info): New.
7229 (gdbsim_target) <shortname, longname, doc>: Delete.
7231 (gdbsim_target::open): Rename to ...
7232 (gdbsim_target_open): ... this.
7233 (_initialize_remote_sim): Adjust.
7234 * remote.c (remote_doc): New.
7235 (remote_target_info): New.
7236 (remote_target) <shortname, longname, doc>: Delete.
7238 (extended_remote_target_info): New.
7239 (extended_remote_target) <shortname, longname, doc>: Delete.
7241 (remote_target::open_1): Make static. Adjust.
7242 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7243 * s390-linux-nat.c (_initialize_s390_nat): Use
7244 add_inf_child_target.
7245 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7246 add_inf_child_target.
7247 * sol-thread.c (thread_db_target_info): New.
7248 (sol_thread_target) <shortname, longname, doc>: Delete.
7250 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7251 add_inf_child_target.
7252 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7253 add_inf_child_target.
7254 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7255 add_inf_child_target.
7256 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7257 add_inf_child_target.
7258 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7259 add_inf_child_target.
7260 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7261 add_inf_child_target.
7262 * spu-linux-nat.c (_initialize_spu_nat): Use
7263 add_inf_child_target.
7264 * spu-multiarch.c (spu_multiarch_target_info): New.
7265 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7267 * target-delegates.c: Regenerate.
7268 * target.c: Include <unordered_map>.
7269 (target_ops_p): Delete.
7270 (DEF_VEC_P(target_ops_p)): Delete.
7271 (target_factories): New.
7272 (test_target_info): New.
7273 (test_target_ops::info): New.
7274 (open_target): Adjust to use target_factories.
7275 (add_target_with_completer): Rename to ...
7276 (add_target): ... this. Change prototype. Register target_info
7277 and open callback in target_factories. Register target_info in
7278 command context instead of target_ops.
7279 (add_target): Delete old implementation.
7280 (add_deprecated_target_alias): Change prototype. Adjust.
7281 (the_native_target): New.
7282 (set_native_target, get_native_target): New.
7283 (find_default_run_target): Use the_native_target.
7284 (find_attach_target, find_run_target): Simplify.
7285 (target_ops::open): Delete.
7286 (dummy_target_info): New.
7287 (dummy_target::shortname, dummy_target::longname)
7288 (dummy_target::doc): Delete.
7289 (dummy_target::info): New.
7290 (debug_target::shortname, debug_target::longname)
7291 (debug_target::doc): Delete.
7292 (debug_target::info): New.
7293 * target.h (struct target_info): New.
7294 (target_ops::~target_ops): Add comment.
7295 (target_ops::info): New.
7296 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7297 longer virtual. Implement in terms of target_info.
7298 (set_native_target, get_native_target): Declare.
7299 (target_open_ftype): New.
7300 (add_target, add_target_with_completer)
7301 (add_deprecated_target_alias): Change prototype.
7302 (test_target) <shortname, longname, doc>: Delete.
7304 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7305 add_inf_child_target.
7306 * tracefile-tfile.c (tfile_target_info): New.
7307 (tfile_target) <shortname, longname, doc>: Delete.
7309 (tfile_target::open): Rename to ...
7310 (tfile_target_open): ... this.
7311 (_initialize_tracefile_tfile): Adjust.
7312 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7313 add_inf_child_target.
7314 * windows-nat.c (_initialize_windows_nat): Use
7315 add_inf_child_target.
7316 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7317 add_inf_child_target.
7319 2018-05-02 Pedro Alves <palves@redhat.com>
7321 * linux-nat.h (linux_nat_target) <low_new_thread,
7322 low_delete_thread, low_new_fork, low_forget_process,
7323 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7324 New virtual methods.
7325 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7326 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7327 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7328 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7329 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7331 * linux-fork.c (delete_fork): Adjust to call low method.
7332 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7333 (linux_nat_new_fork, linux_nat_forget_process_hook)
7334 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7335 (linux_nat_status_is_event):
7336 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7337 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7339 (sigtrap_is_event): Rename to ...
7340 (linux_nat_target::low_status_is_event): ... this.
7341 (linux_nat_set_status_is_event): Delete.
7342 (save_stop_reason, linux_nat_wait_1)
7343 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7345 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7346 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7347 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7348 (linux_nat_set_prepare_to_resume): Delete.
7349 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7350 low virtual methods.
7351 * amd64-linux-nat.c: Likewise.
7352 * arm-linux-nat.c: Likewise.
7353 * i386-linux-nat.c: Likewise.
7354 * ia64-linux-nat.c: Likewise.
7355 * mips-linux-nat.c: Likewise.
7356 * ppc-linux-nat.c: Likewise.
7357 * s390-linux-nat.c: Likewise.
7358 * sparc64-linux-nat.c: Likewise.
7359 * x86-linux-nat.c: Likewise.
7360 * x86-linux-nat.h: Include "nat/x86-linux.h".
7361 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7362 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7365 2018-05-02 Pedro Alves <palves@redhat.com>
7367 * target.h (target_ops)
7368 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7369 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7370 stopped_by_watchpoint, have_continuable_watchpoint,
7371 stopped_data_address, watchpoint_addr_within_range,
7372 can_accel_watchpoint_condition, can_run, thread_alive,
7373 has_all_memory, has_memory, has_stack, has_registers,
7374 has_execution, can_async_p, is_async_p, supports_non_stop,
7375 always_non_stop_p, can_execute_reverse, supports_multi_process,
7376 supports_enable_disable_tracepoint,
7377 supports_disable_randomization, supports_string_tracing,
7378 supports_evaluation_of_breakpoint_conditions,
7379 can_run_breakpoint_commands, filesystem_is_local,
7380 can_download_tracepoint, get_trace_state_variable_value,
7381 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7382 record_is_replaying, record_will_replay,
7383 augmented_libraries_svr4_read>: Adjust to return bool.
7384 * aarch64-linux-nat.c: All implementations adjusted.
7385 * aix-thread.c: All implementations adjusted.
7386 * arm-linux-nat.c: All implementations adjusted.
7387 * breakpoint.c: All implementations adjusted.
7388 * bsd-kvm.c: All implementations adjusted.
7389 * bsd-uthread.c: All implementations adjusted.
7390 * corelow.c: All implementations adjusted.
7391 * ctf.c: All implementations adjusted.
7392 * darwin-nat.c: All implementations adjusted.
7393 * darwin-nat.h: All implementations adjusted.
7394 * exec.c: All implementations adjusted.
7395 * fbsd-nat.c: All implementations adjusted.
7396 * fbsd-nat.h: All implementations adjusted.
7397 * gnu-nat.c: All implementations adjusted.
7398 * gnu-nat.h: All implementations adjusted.
7399 * go32-nat.c: All implementations adjusted.
7400 * ia64-linux-nat.c: All implementations adjusted.
7401 * inf-child.c: All implementations adjusted.
7402 * inf-child.h: All implementations adjusted.
7403 * inf-ptrace.c: All implementations adjusted.
7404 * inf-ptrace.h: All implementations adjusted.
7405 * linux-nat.c: All implementations adjusted.
7406 * linux-nat.h: All implementations adjusted.
7407 * mips-linux-nat.c: All implementations adjusted.
7408 * nto-procfs.c: All implementations adjusted.
7409 * ppc-linux-nat.c: All implementations adjusted.
7410 * procfs.c: All implementations adjusted.
7411 * ravenscar-thread.c: All implementations adjusted.
7412 * record-btrace.c: All implementations adjusted.
7413 * record-full.c: All implementations adjusted.
7414 * remote-sim.c: All implementations adjusted.
7415 * remote.c: All implementations adjusted.
7416 * s390-linux-nat.c: All implementations adjusted.
7417 * sol-thread.c: All implementations adjusted.
7418 * spu-multiarch.c: All implementations adjusted.
7419 * target-delegates.c: All implementations adjusted.
7420 * target.c: All implementations adjusted.
7421 * target.h: All implementations adjusted.
7422 * tracefile-tfile.c: All implementations adjusted.
7423 * tracefile.c: All implementations adjusted.
7424 * tracefile.h: All implementations adjusted.
7425 * windows-nat.c: All implementations adjusted.
7426 * x86-linux-nat.h: All implementations adjusted.
7427 * x86-nat.h: All implementations adjusted.
7429 2018-05-02 Pedro Alves <palves@redhat.com>
7431 * make-target-delegates (scan_target_h): Don't trim lines here.
7432 Replace sequences of tabs and/or whitespace with a single
7434 (top level, parsing methods): Trim each line before processing it
7437 2018-05-02 Pedro Alves <palves@redhat.com>
7438 John Baldwin <jhb@freebsd.org>
7440 * target.h (enum strata) <debug_stratum>: New.
7441 (struct target_ops) <all delegation methods>: Replace by C++
7442 virtual methods, and drop "to_" prefix. All references updated
7444 <to_shortname, to_longname, to_doc, to_data,
7445 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
7446 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
7447 virtual methods. All references updated throughout.
7448 <can_attach, supports_terminal_ours, can_create_inferior,
7449 get_thread_control_capabilities, attach_no_wait>: New
7451 <insert_breakpoint, remove_breakpoint>: Now
7452 TARGET_DEFAULT_NORETURN methods.
7453 <info_proc>: Now returns bool.
7455 (OPS_MAGIC): Delete.
7456 (current_target): Delete. All references replaced by references
7458 (target_stack): ... this. New.
7459 (target_shortname, target_longname): Adjust.
7460 (target_can_run): Now a function declaration.
7461 (default_child_has_all_memory, default_child_has_memory)
7462 (default_child_has_stack, default_child_has_registers)
7463 (default_child_has_execution): Remove target_ops parameter.
7464 (complete_target_initialization): Delete.
7465 (memory_breakpoint_target): New template class.
7466 (test_target_ops): Refactor as a C++ class with virtual methods.
7467 * make-target-delegates (NAME_PART): Tighten.
7468 (POINTER_PART, CP_SYMBOL): New.
7469 (SIMPLE_RETURN_PART): Reimplement.
7470 (VEC_RETURN_PART): Expect less.
7471 (RETURN_PART, VIRTUAL_PART): New.
7472 (METHOD): Adjust to C++ virtual methods.
7473 (scan_target_h): Remove reference to C99.
7474 (dname): Output "target_ops::" prefix.
7475 (write_function_header): Adjust to output a C++ class method.
7476 (write_declaration): New.
7477 (write_delegator): Adjust to output a C++ class method.
7478 (tdname): Output "dummy_target::" prefix.
7479 (write_tdefault, write_debugmethod): Adjust to output a C++ class
7481 (tdefault_names, debug_names): Delete.
7482 (return_types, tdefaults, styles, argtypes_array): New.
7483 (top level): All methods are delegators.
7485 (top level): Print dummy_target and debug_target classes.
7486 * target-delegates.c: Regenerate.
7487 * target-debug.h (target_debug_print_enum_info_proc_what)
7488 (target_debug_print_thread_control_capabilities)
7489 (target_debug_print_thread_info_p): New.
7490 * target.c (dummy_target): Delete.
7491 (the_dummy_target, the_debug_target): New.
7492 (target_stack): Now extern.
7493 (set_targetdebug): Push/unpush debug target.
7494 (default_child_has_all_memory, default_child_has_memory)
7495 (default_child_has_stack, default_child_has_registers)
7496 (default_child_has_execution): Remove target_ops parameter.
7497 (complete_target_initialization): Delete.
7498 (add_target_with_completer): No longer call
7499 complete_target_initialization.
7500 (target_supports_terminal_ours): Use regular delegation.
7501 (update_current_target): Delete.
7502 (push_target): No longer check magic number. Don't call
7503 update_current_target.
7504 (unpush_target): Don't call update_current_target.
7505 (target_is_pushed): No longer check magic number.
7506 (target_require_runnable): Skip for all stratums over
7508 (target_ops::info_proc): New.
7509 (target_info_proc): Use find_target_at and
7510 find_default_run_target.
7511 (target_supports_disable_randomization): Use regular delegation.
7512 (target_get_osdata): Use find_target_at.
7513 (target_ops::open, target_ops::close, target_ops::can_attach)
7514 (target_ops::attach, target_ops::can_create_inferior)
7515 (target_ops::create_inferior, target_ops::can_run)
7516 (target_can_run): New.
7517 (default_fileio_target): Use regular delegation.
7518 (target_ops::fileio_open, target_ops::fileio_pwrite)
7519 (target_ops::fileio_pread, target_ops::fileio_fstat)
7520 (target_ops::fileio_close, target_ops::fileio_unlink)
7521 (target_ops::fileio_readlink): New.
7522 (target_fileio_open_1, target_fileio_unlink)
7523 (target_fileio_readlink): Always call the target method. Handle
7525 (return_zero, return_zero_has_execution): Delete.
7526 (init_dummy_target): Delete.
7527 (dummy_target::dummy_target, dummy_target::shortname)
7528 (dummy_target::longname, dummy_target::doc)
7529 (debug_target::debug_target, debug_target::shortname)
7530 (debug_target::longname, debug_target::doc): New.
7531 (target_supports_delete_record): Use regular delegation.
7532 (setup_target_debug): Delete.
7533 (maintenance_print_target_stack): Skip debug_stratum.
7534 (initialize_targets): Instantiate the_dummy_target and
7536 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
7538 (target_auxv_search, fprint_target_auxv): Adjust.
7539 (info_auxv_command): Adjust to use target_stack.
7540 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
7541 * exceptions.c (print_flush): Handle a NULL target_stack.
7542 * regcache.c (target_ops_no_register): Refactor as class with
7545 * exec.c (exec_target): New class.
7546 (exec_ops): Now an exec_target.
7547 (exec_open, exec_close_1, exec_get_section_table)
7548 (exec_xfer_partial, exec_files_info, exec_has_memory)
7549 (exec_make_note_section): Refactor as exec_target methods.
7550 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
7552 (exec_target::find_memory_regions): New.
7553 (_initialize_exec): Don't call init_exec_ops.
7554 * gdbcore.h (exec_file_clear): Delete.
7556 * corefile.c (core_target): Delete.
7557 (core_file_command): Adjust.
7558 * corelow.c (core_target): New class.
7559 (the_core_target): New.
7560 (core_close): Remove target_ops parameter.
7561 (core_close_cleanup): Adjust.
7562 (core_target::close): New.
7563 (core_open, core_detach, get_core_registers, core_files_info)
7564 (core_xfer_partial, core_thread_alive, core_read_description)
7565 (core_pid_to_str, core_thread_name, core_has_memory)
7566 (core_has_stack, core_has_registers, core_info_proc): Rework as
7567 core_target methods.
7568 (ignore, core_remove_breakpoint, init_core_ops): Delete.
7569 (_initialize_corelow): Initialize the_core_target.
7570 * gdbcore.h (core_target): Delete.
7571 (the_core_target): New.
7573 * ctf.c: (ctf_target): New class.
7574 (ctf_ops): Now a ctf_target.
7575 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
7576 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
7577 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
7579 (init_ctf_ops): Delete.
7580 (_initialize_ctf): Don't call it.
7581 * tracefile-tfile.c (tfile_target): New class.
7582 (tfile_ops): Now a tfile_target.
7583 (tfile_open, tfile_close, tfile_files_info)
7584 (tfile_get_tracepoint_status, tfile_trace_find)
7585 (tfile_fetch_registers, tfile_xfer_partial)
7586 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
7587 Refactor as tfile_target methods.
7588 (tfile_xfer_partial_features): Remove target_ops parameter.
7589 (init_tfile_ops): Delete.
7590 (_initialize_tracefile_tfile): Don't call it.
7591 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
7592 (tracefile_has_stack, tracefile_has_registers)
7593 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
7594 tracefile_target methods.
7595 (init_tracefile_ops): Delete.
7596 (tracefile_target::tracefile_target): New.
7597 * tracefile.h: Include "target.h".
7598 (tracefile_target): New class.
7599 (init_tracefile_ops): Delete.
7601 * spu-multiarch.c (spu_multiarch_target): New class.
7602 (spu_ops): Now a spu_multiarch_target.
7603 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
7604 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
7605 (spu_search_memory, spu_mourn_inferior): Refactor as
7606 spu_multiarch_target methods.
7607 (init_spu_ops): Delete.
7608 (_initialize_spu_multiarch): Remove references to init_spu_ops,
7609 complete_target_initialization.
7611 * ravenscar-thread.c (ravenscar_thread_target): New class.
7612 (ravenscar_ops): Now a ravenscar_thread_target.
7613 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
7614 (ravenscar_thread_alive, ravenscar_pid_to_str)
7615 (ravenscar_fetch_registers, ravenscar_store_registers)
7616 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
7617 (ravenscar_stopped_by_hw_breakpoint)
7618 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
7619 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
7620 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
7622 (init_ravenscar_thread_ops): Delete.
7623 (_initialize_ravenscar): Remove references to
7624 init_ravenscar_thread_ops and complete_target_initialization.
7626 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
7627 (bsd_uthread_target): New class.
7628 (bsd_uthread_ops): Now a bsd_uthread_target.
7629 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
7630 (bsd_uthread_close, bsd_uthread_mourn_inferior)
7631 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
7632 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
7633 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
7634 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
7635 (bsd_uthread_target): Delete function.
7636 (_initialize_bsd_uthread): Remove reference to
7637 complete_target_initialization.
7639 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
7640 (target_bfd): ... this new class.
7641 (target_bfd_xfer_partial, target_bfd_get_section_table)
7642 (target_bfd_close): Refactor as target_bfd methods.
7643 (target_bfd::~target_bfd): New.
7644 (target_bfd_reopen): Adjust.
7645 (target_bfd::close): New.
7647 * record-btrace.c (record_btrace_target): New class.
7648 (record_btrace_ops): Now a record_btrace_target.
7649 (record_btrace_open, record_btrace_stop_recording)
7650 (record_btrace_disconnect, record_btrace_close)
7651 (record_btrace_async, record_btrace_info)
7652 (record_btrace_insn_history, record_btrace_insn_history_range)
7653 (record_btrace_insn_history_from, record_btrace_call_history)
7654 (record_btrace_call_history_range)
7655 (record_btrace_call_history_from, record_btrace_record_method)
7656 (record_btrace_is_replaying, record_btrace_will_replay)
7657 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7658 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
7659 (record_btrace_store_registers, record_btrace_prepare_to_store)
7660 (record_btrace_to_get_unwinder)
7661 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
7662 (record_btrace_commit_resume, record_btrace_wait)
7663 (record_btrace_stop, record_btrace_can_execute_reverse)
7664 (record_btrace_stopped_by_sw_breakpoint)
7665 (record_btrace_supports_stopped_by_sw_breakpoint)
7666 (record_btrace_stopped_by_hw_breakpoint)
7667 (record_btrace_supports_stopped_by_hw_breakpoint)
7668 (record_btrace_update_thread_list, record_btrace_thread_alive)
7669 (record_btrace_goto_begin, record_btrace_goto_end)
7670 (record_btrace_goto, record_btrace_stop_replaying_all)
7671 (record_btrace_execution_direction)
7672 (record_btrace_prepare_to_generate_core)
7673 (record_btrace_done_generating_core): Refactor as
7674 record_btrace_target methods.
7675 (init_record_btrace_ops): Delete.
7676 (_initialize_record_btrace): Remove reference to
7677 init_record_btrace_ops.
7678 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
7679 the execution_direction global.
7680 (record_full_base_target, record_full_target)
7681 (record_full_core_target): New classes.
7682 (record_full_ops): Now a record_full_target.
7683 (record_full_core_ops): Now a record_full_core_target.
7684 (record_full_target::detach, record_full_target::disconnect)
7685 (record_full_core_target::disconnect)
7686 (record_full_target::mourn_inferior, record_full_target::kill):
7688 (record_full_open, record_full_close, record_full_async): Refactor
7689 as methods of the record_full_base_target class.
7690 (record_full_resume, record_full_commit_resume): Refactor
7691 as methods of the record_full_target class.
7692 (record_full_wait, record_full_stopped_by_watchpoint)
7693 (record_full_stopped_data_address)
7694 (record_full_stopped_by_sw_breakpoint)
7695 (record_full_supports_stopped_by_sw_breakpoint)
7696 (record_full_stopped_by_hw_breakpoint)
7697 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
7698 methods of the record_full_base_target class.
7699 (record_full_store_registers, record_full_xfer_partial)
7700 (record_full_insert_breakpoint, record_full_remove_breakpoint):
7701 Refactor as methods of the record_full_target class.
7702 (record_full_can_execute_reverse, record_full_get_bookmark)
7703 (record_full_goto_bookmark, record_full_execution_direction)
7704 (record_full_record_method, record_full_info, record_full_delete)
7705 (record_full_is_replaying, record_full_will_replay)
7706 (record_full_goto_begin, record_full_goto_end, record_full_goto)
7707 (record_full_stop_replaying): Refactor as methods of the
7708 record_full_base_target class.
7709 (record_full_core_resume, record_full_core_kill)
7710 (record_full_core_fetch_registers)
7711 (record_full_core_prepare_to_store)
7712 (record_full_core_store_registers, record_full_core_xfer_partial)
7713 (record_full_core_insert_breakpoint)
7714 (record_full_core_remove_breakpoint)
7715 (record_full_core_has_execution): Refactor
7716 as methods of the record_full_core_target class.
7717 (record_full_base_target::supports_delete_record): New.
7718 (init_record_full_ops): Delete.
7719 (init_record_full_core_ops): Delete.
7720 (record_full_save): Refactor as method of the
7721 record_full_base_target class.
7722 (_initialize_record_full): Remove references to
7723 init_record_full_ops and init_record_full_core_ops.
7725 * remote.c (remote_target, extended_remote_target): New classes.
7726 (remote_ops): Now a remote_target.
7727 (extended_remote_ops): Now an extended_remote_target.
7728 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
7729 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
7730 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
7731 (remote_pass_signals, remote_set_syscall_catchpoint)
7732 (remote_program_signals, )
7733 (remote_thread_always_alive): Remove target_ops parameter.
7734 (remote_thread_alive, remote_thread_name)
7735 (remote_update_thread_list, remote_threads_extra_info)
7736 (remote_static_tracepoint_marker_at)
7737 (remote_static_tracepoint_markers_by_strid)
7738 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
7739 (remote_open): Refactor as methods of remote_target.
7740 (extended_remote_open, extended_remote_detach)
7741 (extended_remote_attach, extended_remote_post_attach):
7742 (extended_remote_supports_disable_randomization)
7743 (extended_remote_create_inferior): : Refactor as method of
7744 extended_remote_target.
7745 (remote_set_permissions, remote_open_1, remote_detach)
7746 (remote_follow_fork, remote_follow_exec, remote_disconnect)
7747 (remote_resume, remote_commit_resume, remote_stop)
7748 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
7749 (remote_terminal_ours, remote_wait, remote_fetch_registers)
7750 (remote_prepare_to_store, remote_store_registers)
7751 (remote_flash_erase, remote_flash_done, remote_files_info)
7752 (remote_kill, remote_mourn, remote_insert_breakpoint)
7753 (remote_remove_breakpoint, remote_insert_watchpoint)
7754 (remote_watchpoint_addr_within_range)
7755 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
7756 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
7757 (remote_supports_stopped_by_sw_breakpoint)
7758 (remote_stopped_by_hw_breakpoint)
7759 (remote_supports_stopped_by_hw_breakpoint)
7760 (remote_stopped_by_watchpoint, remote_stopped_data_address)
7761 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
7762 (remote_verify_memory): Refactor as methods of remote_target.
7763 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
7765 (remote_xfer_partial, remote_get_memory_xfer_limit)
7766 (remote_search_memory, remote_rcmd, remote_memory_map)
7767 (remote_pid_to_str, remote_get_thread_local_address)
7768 (remote_get_tib_address, remote_read_description): Refactor as
7769 methods of remote_target.
7770 (remote_target::fileio_open, remote_target::fileio_pwrite)
7771 (remote_target::fileio_pread, remote_target::fileio_close): New.
7772 (remote_hostio_readlink, remote_hostio_fstat)
7773 (remote_filesystem_is_local, remote_can_execute_reverse)
7774 (remote_supports_non_stop, remote_supports_disable_randomization)
7775 (remote_supports_multi_process, remote_supports_cond_breakpoints)
7776 (remote_supports_enable_disable_tracepoint)
7777 (remote_supports_string_tracing)
7778 (remote_can_run_breakpoint_commands, remote_trace_init)
7779 (remote_download_tracepoint, remote_can_download_tracepoint)
7780 (remote_download_trace_state_variable, remote_enable_tracepoint)
7781 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
7782 (remote_trace_start, remote_get_trace_status)
7783 (remote_get_tracepoint_status, remote_trace_stop)
7784 (remote_trace_find, remote_get_trace_state_variable_value)
7785 (remote_save_trace_data, remote_get_raw_trace_data)
7786 (remote_set_disconnected_tracing, remote_core_of_thread)
7787 (remote_set_circular_trace_buffer, remote_traceframe_info)
7788 (remote_get_min_fast_tracepoint_insn_len)
7789 (remote_set_trace_buffer_size, remote_set_trace_notes)
7790 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
7791 (remote_disable_btrace, remote_teardown_btrace)
7792 (remote_read_btrace, remote_btrace_conf)
7793 (remote_augmented_libraries_svr4_read, remote_load)
7794 (remote_pid_to_exec_file, remote_can_do_single_step)
7795 (remote_execution_direction, remote_thread_handle_to_thread_info):
7796 Refactor as methods of remote_target.
7797 (init_remote_ops, init_extended_remote_ops): Delete.
7798 (remote_can_async_p, remote_is_async_p, remote_async)
7799 (remote_thread_events, remote_upload_tracepoints)
7800 (remote_upload_trace_state_variables): Refactor as methods of
7802 (_initialize_remote): Remove references to init_remote_ops and
7803 init_extended_remote_ops.
7805 * remote-sim.c (gdbsim_target): New class.
7806 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
7807 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
7808 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
7809 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
7810 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
7811 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
7812 Refactor as methods of gdbsim_target.
7813 (gdbsim_ops): Now a gdbsim_target.
7814 (init_gdbsim_ops): Delete.
7815 (gdbsim_cntrl_c): Adjust.
7816 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
7818 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
7819 (the_amd64_linux_nat_target): New.
7820 (amd64_linux_fetch_inferior_registers)
7821 (amd64_linux_store_inferior_registers): Refactor as methods of
7822 amd64_linux_nat_target.
7823 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
7824 * i386-linux-nat.c: Don't include "linux-nat.h".
7825 (i386_linux_nat_target): New class.
7826 (the_i386_linux_nat_target): New.
7827 (i386_linux_fetch_inferior_registers)
7828 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
7829 as methods of i386_linux_nat_target.
7830 (_initialize_i386_linux_nat): Adjust. Set linux_target.
7831 * inf-child.c (inf_child_ops): Delete.
7832 (inf_child_fetch_inferior_registers)
7833 (inf_child_store_inferior_registers): Delete.
7834 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
7835 methods of inf_child_target.
7836 (inf_child_target::supports_terminal_ours)
7837 (inf_child_target::terminal_init)
7838 (inf_child_target::terminal_inferior)
7839 (inf_child_target::terminal_ours_for_output)
7840 (inf_child_target::terminal_ours, inf_child_target::interrupt)
7841 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
7843 (inf_child_open, inf_child_disconnect, inf_child_close)
7844 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
7845 (inf_child_post_startup_inferior, inf_child_can_run)
7846 (inf_child_pid_to_exec_file): Refactor as methods of
7848 (inf_child_follow_fork): Delete.
7849 (inf_child_target::can_create_inferior)
7850 (inf_child_target::can_attach): New.
7851 (inf_child_target::has_all_memory, inf_child_target::has_memory)
7852 (inf_child_target::has_stack, inf_child_target::has_registers)
7853 (inf_child_target::has_execution): New.
7854 (inf_child_fileio_open, inf_child_fileio_pwrite)
7855 (inf_child_fileio_pread, inf_child_fileio_fstat)
7856 (inf_child_fileio_close, inf_child_fileio_unlink)
7857 (inf_child_fileio_readlink, inf_child_use_agent)
7858 (inf_child_can_use_agent): Refactor as methods of
7860 (return_zero, inf_child_target): Delete.
7861 (inf_child_target::inf_child_target): New.
7862 * inf-child.h: Include "target.h".
7863 (inf_child_target): Delete function prototype.
7864 (inf_child_target): New class.
7865 (inf_child_open_target, inf_child_mourn_inferior)
7866 (inf_child_maybe_unpush_target): Delete.
7867 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
7868 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
7869 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
7870 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
7871 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
7872 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
7873 (inf_ptrace_wait, inf_ptrace_xfer_partial)
7874 (inf_ptrace_thread_alive, inf_ptrace_files_info)
7875 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
7876 methods of inf_ptrace_target.
7877 (inf_ptrace_target): Delete function.
7878 * inf-ptrace.h: Include "inf-child.h".
7879 (inf_ptrace_target): Delete function declaration.
7880 (inf_ptrace_target): New class.
7881 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
7882 * linux-nat.c (linux_target): New.
7883 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
7884 (linux_nat_target::~linux_nat_target): New.
7885 (linux_child_post_attach, linux_child_post_startup_inferior)
7886 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
7887 (linux_child_remove_fork_catchpoint)
7888 (linux_child_insert_vfork_catchpoint)
7889 (linux_child_remove_vfork_catchpoint)
7890 (linux_child_insert_exec_catchpoint)
7891 (linux_child_remove_exec_catchpoint)
7892 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
7893 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
7894 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
7895 (linux_nat_stopped_data_address)
7896 (linux_nat_stopped_by_sw_breakpoint)
7897 (linux_nat_supports_stopped_by_sw_breakpoint)
7898 (linux_nat_stopped_by_hw_breakpoint)
7899 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
7900 (linux_nat_kill, linux_nat_mourn_inferior)
7901 (linux_nat_xfer_partial, linux_nat_thread_alive)
7902 (linux_nat_update_thread_list, linux_nat_pid_to_str)
7903 (linux_nat_thread_name, linux_child_pid_to_exec_file)
7904 (linux_child_static_tracepoint_markers_by_strid)
7905 (linux_nat_is_async_p, linux_nat_can_async_p)
7906 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
7907 (linux_nat_supports_multi_process)
7908 (linux_nat_supports_disable_randomization, linux_nat_async)
7909 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
7910 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
7911 (linux_nat_fileio_open, linux_nat_fileio_readlink)
7912 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
7913 methods of linux_nat_target.
7914 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
7915 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
7917 (check_stopped_by_watchpoint): Adjust.
7918 (linux_xfer_partial): Delete.
7919 (linux_target_install_ops, linux_target, linux_nat_add_target):
7921 (linux_nat_target::linux_nat_target): New.
7922 * linux-nat.h: Include "inf-ptrace.h".
7923 (linux_nat_target): New.
7924 (linux_target, linux_target_install_ops, linux_nat_add_target):
7925 Delete function declarations.
7926 (linux_target): Declare global.
7927 * linux-thread-db.c (thread_db_target): New.
7928 (thread_db_target::thread_db_target): New.
7929 (thread_db_ops): Delete.
7930 (the_thread_db_target): New.
7931 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
7932 (thread_db_update_thread_list, thread_db_pid_to_str)
7933 (thread_db_extra_thread_info)
7934 (thread_db_thread_handle_to_thread_info)
7935 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
7936 (thread_db_resume): Refactor as methods of thread_db_target.
7937 (init_thread_db_ops): Delete.
7938 (_initialize_thread_db): Remove reference to init_thread_db_ops.
7939 * x86-linux-nat.c: Don't include "linux-nat.h".
7940 (super_post_startup_inferior): Delete.
7941 (x86_linux_nat_target::~x86_linux_nat_target): New.
7942 (x86_linux_child_post_startup_inferior)
7943 (x86_linux_read_description, x86_linux_enable_btrace)
7944 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
7945 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
7946 methods of x86_linux_nat_target.
7947 (x86_linux_create_target): Delete. Bits folded ...
7948 (x86_linux_add_target): ... here. Now takes a linux_nat_target
7950 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
7951 (x86_linux_nat_target): New class.
7952 (x86_linux_create_target): Delete.
7953 (x86_linux_add_target): Now takes a linux_nat_target pointer.
7954 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
7955 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
7956 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
7957 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
7958 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
7960 (x86_use_watchpoints): Delete.
7961 * x86-nat.h: Include "breakpoint.h" and "target.h".
7962 (x86_use_watchpoints): Delete.
7963 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
7964 (x86_stopped_by_watchpoint, x86_stopped_data_address)
7965 (x86_insert_watchpoint, x86_remove_watchpoint)
7966 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
7967 (x86_stopped_by_hw_breakpoint): New declarations.
7968 (x86_nat_target): New template class.
7970 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
7971 (the_ppc_linux_nat_target): New.
7972 (ppc_linux_fetch_inferior_registers)
7973 (ppc_linux_can_use_hw_breakpoint)
7974 (ppc_linux_region_ok_for_hw_watchpoint)
7975 (ppc_linux_ranged_break_num_registers)
7976 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
7977 (ppc_linux_insert_mask_watchpoint)
7978 (ppc_linux_remove_mask_watchpoint)
7979 (ppc_linux_can_accel_watchpoint_condition)
7980 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
7981 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
7982 (ppc_linux_watchpoint_addr_within_range)
7983 (ppc_linux_masked_watch_num_registers)
7984 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
7985 (ppc_linux_read_description): Refactor as methods of
7986 ppc_linux_nat_target.
7987 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
7989 * procfs.c (procfs_xfer_partial): Delete forward declaration.
7990 (procfs_target): New class.
7991 (the_procfs_target): New.
7992 (procfs_target): Delete function.
7993 (procfs_auxv_parse, procfs_attach, procfs_detach)
7994 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
7995 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
7996 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
7997 (procfs_create_inferior, procfs_update_thread_list)
7998 (procfs_thread_alive, procfs_pid_to_str)
7999 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8000 (procfs_stopped_data_address, procfs_insert_watchpoint)
8001 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8002 (proc_find_memory_regions, procfs_info_proc)
8003 (procfs_make_note_section): Refactor as methods of procfs_target.
8004 (_initialize_procfs): Adjust.
8005 * sol-thread.c (sol_thread_target): New class.
8006 (sol_thread_ops): Now a sol_thread_target.
8007 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8008 (sol_thread_fetch_registers, sol_thread_store_registers)
8009 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8010 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8011 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8012 (init_sol_thread_ops): Delete.
8013 (_initialize_sol_thread): Adjust. Remove references to
8014 init_sol_thread_ops and complete_target_initialization.
8016 * windows-nat.c (windows_nat_target): New class.
8017 (windows_fetch_inferior_registers)
8018 (windows_store_inferior_registers, windows_resume, windows_wait)
8019 (windows_attach, windows_detach, windows_pid_to_exec_file)
8020 (windows_files_info, windows_create_inferior)
8021 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8022 (windows_close, windows_pid_to_str, windows_xfer_partial)
8023 (windows_get_tib_address, windows_get_ada_task_ptid)
8024 (windows_thread_name, windows_thread_alive): Refactor as
8025 windows_nat_target methods.
8026 (do_initial_windows_stuff): Adjust.
8027 (windows_target): Delete function.
8028 (_initialize_windows_nat): Adjust.
8030 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8031 (darwin_mourn_inferior, darwin_kill_inferior)
8032 (darwin_create_inferior, darwin_attach, darwin_detach)
8033 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8034 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8035 (darwin_supports_multi_process): Refactor as darwin_nat_target
8037 (darwin_resume_to, darwin_files_info): Delete.
8038 (_initialize_darwin_inferior): Rename to ...
8039 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8040 * darwin-nat.h: Include "inf-child.h".
8041 (darwin_nat_target): New class.
8042 (darwin_complete_target): Delete.
8043 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8044 (darwin_target): New.
8045 (i386_darwin_fetch_inferior_registers)
8046 (i386_darwin_store_inferior_registers): Refactor as methods of
8048 (darwin_complete_target): Delete, with ...
8049 (_initialize_i386_darwin_nat): ... bits factored out here.
8051 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8052 (the_alpha_linux_nat_target): New.
8053 (alpha_linux_register_u_offset): Refactor as
8054 alpha_linux_nat_target method.
8055 (_initialize_alpha_linux_nat): Adjust.
8056 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8057 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8058 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8059 methods of linux_nat_trad_target.
8060 (linux_trad_target): Delete.
8061 * linux-nat-trad.h (linux_trad_target): Delete function.
8062 (linux_nat_trad_target): New class.
8063 * mips-linux-nat.c (mips_linux_nat_target): New class.
8064 (super_fetch_registers, super_store_registers, super_close):
8066 (the_mips_linux_nat_target): New.
8067 (mips64_linux_regsets_fetch_registers)
8068 (mips64_linux_regsets_store_registers)
8069 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8070 (mips_linux_register_u_offset, mips_linux_read_description)
8071 (mips_linux_can_use_hw_breakpoint)
8072 (mips_linux_stopped_by_watchpoint)
8073 (mips_linux_stopped_data_address)
8074 (mips_linux_region_ok_for_hw_watchpoint)
8075 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8076 (mips_linux_close): Refactor as methods of mips_linux_nat.
8077 (_initialize_mips_linux_nat): Adjust to C++ification.
8079 * aix-thread.c (aix_thread_target): New class.
8080 (aix_thread_ops): Now an aix_thread_target.
8081 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8082 (aix_thread_fetch_registers, aix_thread_store_registers)
8083 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8084 (aix_thread_thread_alive, aix_thread_pid_to_str)
8085 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8086 Refactor as methods of aix_thread_target.
8087 (init_aix_thread_ops): Delete.
8088 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8089 and complete_target_initialization.
8090 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8091 (rs6000_nat_target): New class.
8092 (the_rs6000_nat_target): New.
8093 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8094 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8095 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8096 (super_create_inferior): Delete.
8097 (_initialize_rs6000_nat): Adjust to C++ification.
8099 * arm-linux-nat.c (arm_linux_nat_target): New class.
8100 (the_arm_linux_nat_target): New.
8101 (arm_linux_fetch_inferior_registers)
8102 (arm_linux_store_inferior_registers, arm_linux_read_description)
8103 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8104 (arm_linux_remove_hw_breakpoint)
8105 (arm_linux_region_ok_for_hw_watchpoint)
8106 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8107 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8108 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8109 arm_linux_nat_target.
8110 (_initialize_arm_linux_nat): Adjust to C++ification.
8112 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8113 (the_aarch64_linux_nat_target): New.
8114 (aarch64_linux_fetch_inferior_registers)
8115 (aarch64_linux_store_inferior_registers)
8116 (aarch64_linux_child_post_startup_inferior)
8117 (aarch64_linux_read_description)
8118 (aarch64_linux_can_use_hw_breakpoint)
8119 (aarch64_linux_insert_hw_breakpoint)
8120 (aarch64_linux_remove_hw_breakpoint)
8121 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8122 (aarch64_linux_region_ok_for_hw_watchpoint)
8123 (aarch64_linux_stopped_data_address)
8124 (aarch64_linux_stopped_by_watchpoint)
8125 (aarch64_linux_watchpoint_addr_within_range)
8126 (aarch64_linux_can_do_single_step): Refactor as methods of
8127 aarch64_linux_nat_target.
8128 (super_post_startup_inferior): Delete.
8129 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8131 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8132 (the_hppa_linux_nat_target): New.
8133 (hppa_linux_fetch_inferior_registers)
8134 (hppa_linux_store_inferior_registers): Refactor as methods of
8135 hppa_linux_nat_target.
8136 (_initialize_hppa_linux_nat): Adjust to C++ification.
8138 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8139 (the_ia64_linux_nat_target): New.
8140 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8141 (ia64_linux_stopped_data_address)
8142 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8143 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8144 ia64_linux_nat_target methods.
8145 (super_xfer_partial): Delete.
8146 (_initialize_ia64_linux_nat): Adjust to C++ification.
8148 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8149 (the_m32r_linux_nat_target): New.
8150 (m32r_linux_fetch_inferior_registers)
8151 (m32r_linux_store_inferior_registers): Refactor as
8152 m32r_linux_nat_target methods.
8153 (_initialize_m32r_linux_nat): Adjust to C++ification.
8155 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8156 (the_m68k_linux_nat_target): New.
8157 (m68k_linux_fetch_inferior_registers)
8158 (m68k_linux_store_inferior_registers): Refactor as
8159 m68k_linux_nat_target methods.
8160 (_initialize_m68k_linux_nat): Adjust to C++ification.
8162 * s390-linux-nat.c (s390_linux_nat_target): New class.
8163 (the_s390_linux_nat_target): New.
8164 (s390_linux_fetch_inferior_registers)
8165 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8166 (s390_insert_watchpoint, s390_remove_watchpoint)
8167 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8168 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8169 (s390_auxv_parse, s390_read_description): Refactor as methods of
8170 s390_linux_nat_target.
8171 (_initialize_s390_nat): Adjust to C++ification.
8173 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8174 (the_sparc_linux_nat_target): New.
8175 (_initialize_sparc_linux_nat): Adjust to C++ification.
8176 * sparc-nat.c (sparc_fetch_inferior_registers)
8177 (sparc_store_inferior_registers): Remove target_ops parameter.
8178 * sparc-nat.h (sparc_fetch_inferior_registers)
8179 (sparc_store_inferior_registers): Remove target_ops parameter.
8180 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8181 (the_sparc64_linux_nat_target): New.
8182 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8184 * spu-linux-nat.c (spu_linux_nat_target): New class.
8185 (the_spu_linux_nat_target): New.
8186 (spu_child_post_startup_inferior, spu_child_post_attach)
8187 (spu_child_wait, spu_fetch_inferior_registers)
8188 (spu_store_inferior_registers, spu_xfer_partial)
8189 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8191 (_initialize_spu_nat): Adjust to C++ification.
8193 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8194 (the_tilegx_linux_nat_target): New.
8195 (fetch_inferior_registers, store_inferior_registers):
8196 Refactor as methods.
8197 (_initialize_tile_linux_nat): Adjust to C++ification.
8199 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8200 (the_xtensa_linux_nat_target): New.
8201 (xtensa_linux_fetch_inferior_registers)
8202 (xtensa_linux_store_inferior_registers): Refactor as
8203 xtensa_linux_nat_target methods.
8204 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8206 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8207 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8208 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8209 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8210 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8211 (fbsd_stopped_by_sw_breakpoint)
8212 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8213 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8214 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8215 (fbsd_post_startup_inferior, fbsd_post_attach)
8216 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8217 (fbsd_set_syscall_catchpoint)
8218 (super_xfer_partial, super_resume, super_wait)
8219 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8220 (fbsd_handle_debug_trap): Remove target_ops parameter.
8221 (fbsd_nat_add_target): Delete.
8222 * fbsd-nat.h: Include "inf-ptrace.h".
8223 (fbsd_nat_add_target): Delete.
8224 (USE_SIGTRAP_SIGINFO): Define.
8225 (fbsd_nat_target): New class.
8227 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8228 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8229 (amd64bsd_target): Delete.
8230 * amd64-bsd-nat.h: New file.
8231 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8233 (amd64_fbsd_nat_target): New class.
8234 (the_amd64_fbsd_nat_target): New.
8235 (amd64fbsd_read_description): Refactor as method of
8236 amd64_fbsd_nat_target.
8237 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8238 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8239 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8240 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8241 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8242 (i386bsd_target): Delete.
8243 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8244 (i386bsd_fetch_inferior_registers)
8245 (i386bsd_store_inferior_registers): Declare.
8246 (i386_bsd_nat_target): New class.
8247 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8248 (the_i386_fbsd_nat_target): New.
8249 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8250 i386_fbsd_nat_target methods.
8251 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8252 (_initialize_i386fbsd_nat): Adjust to C++ification.
8253 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8254 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8255 (_initialize_x86_bsd_nat): Adjust to C++ification.
8256 * x86-bsd-nat.h: Include "x86-nat.h".
8257 (x86bsd_target): Delete declaration.
8258 (x86bsd_nat_target): New class.
8260 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8261 (the_aarch64_fbsd_nat_target): New.
8262 (aarch64_fbsd_fetch_inferior_registers)
8263 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8264 aarch64_fbsd_nat_target.
8265 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8266 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8267 (the_alpha_bsd_nat_target): New.
8268 (alphabsd_fetch_inferior_registers)
8269 (alphabsd_store_inferior_registers): Refactor as
8270 alpha_bsd_nat_target methods.
8271 (_initialize_alphabsd_nat): Refactor as methods of
8272 alpha_bsd_nat_target.
8273 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8274 (the_amd64_nbsd_nat_target): New.
8275 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8276 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8277 (the_amd64_obsd_nat_target): New.
8278 (_initialize_amd64obsd_nat): Adjust to C++ification.
8279 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8280 (the_arm_fbsd_nat_target): New.
8281 (arm_fbsd_fetch_inferior_registers)
8282 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8283 (_initialize_arm_fbsd_nat): Refactor as methods of
8284 arm_fbsd_nat_target.
8285 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8286 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8287 (the_arm_netbsd_nat_target): New.
8288 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8289 arm_netbsd_nat_target.
8290 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8291 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8292 (the_hppa_nbsd_nat_target): New.
8293 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8294 hppa_nbsd_nat_target methods.
8295 (_initialize_hppanbsd_nat): Adjust to C++ification.
8296 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8297 (the_hppa_obsd_nat_target): New.
8298 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8299 methods of hppa_obsd_nat_target.
8300 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8302 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8303 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8305 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8306 (_initialize_i386obsd_nat): Use add_target.
8307 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8308 (the_m68k_bsd_nat_target): New.
8309 (m68kbsd_fetch_inferior_registers)
8310 (m68kbsd_store_inferior_registers): Refactor as methods of
8311 m68k_bsd_nat_target.
8312 (_initialize_m68kbsd_nat): Adjust to C++ification.
8313 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8314 (the_mips_fbsd_nat_target): New.
8315 (mips_fbsd_fetch_inferior_registers)
8316 (mips_fbsd_store_inferior_registers): Refactor as methods of
8317 mips_fbsd_nat_target.
8318 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8320 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8321 (the_mips_nbsd_nat_target): New.
8322 (mipsnbsd_fetch_inferior_registers)
8323 (mipsnbsd_store_inferior_registers): Refactor as methods of
8324 mips_nbsd_nat_target.
8325 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8326 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8327 (the_mips64_obsd_nat_target): New.
8328 (mips64obsd_fetch_inferior_registers)
8329 (mips64obsd_store_inferior_registers): Refactor as methods of
8330 mips64_obsd_nat_target.
8331 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8333 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8335 * nbsd-nat.h: Include "inf-ptrace.h".
8336 (nbsd_nat_target): New class.
8337 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8338 (obsd_wait): Refactor as methods of obsd_nat_target.
8339 (obsd_add_target): Delete.
8340 * obsd-nat.h: Include "inf-ptrace.h".
8341 (obsd_nat_target): New class.
8342 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8343 (the_ppc_fbsd_nat_target): New.
8344 (ppcfbsd_fetch_inferior_registers)
8345 (ppcfbsd_store_inferior_registers): Refactor as methods of
8346 ppc_fbsd_nat_target.
8347 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8349 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8350 (the_ppc_nbsd_nat_target): New.
8351 (ppcnbsd_fetch_inferior_registers)
8352 (ppcnbsd_store_inferior_registers): Refactor as methods of
8353 ppc_nbsd_nat_target.
8354 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8355 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8356 (the_ppc_obsd_nat_target): New.
8357 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8358 methods of ppc_obsd_nat_target.
8359 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8361 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8362 (the_sh_nbsd_nat_target): New.
8363 (shnbsd_fetch_inferior_registers)
8364 (shnbsd_store_inferior_registers): Refactor as methods of
8366 (_initialize_shnbsd_nat): Adjust to C++ification.
8367 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8368 (inf_ptrace_xfer_partial): Delete.
8369 (sparc_xfer_partial, sparc_target): Delete.
8370 * sparc-nat.h (sparc_fetch_inferior_registers)
8371 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8372 (sparc_target): Delete function declaration.
8373 (sparc_target): New template class.
8374 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8375 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8376 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8377 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8379 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8380 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8381 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8382 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8384 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8385 (the_vax_bsd_nat_target): New.
8386 (vaxbsd_fetch_inferior_registers)
8387 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8389 (_initialize_vaxbsd_nat): Adjust to C++ification.
8391 * bsd-kvm.c (bsd_kvm_target): New class.
8392 (bsd_kvm_ops): Now a bsd_kvm_target.
8393 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8394 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8395 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8397 (bsd_kvm_return_one): Delete.
8398 (bsd_kvm_add_target): Adjust to C++ification.
8400 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8401 (nto_procfs_target_procfs): New classes.
8402 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8403 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8404 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8405 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8406 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8407 (procfs_remove_hw_breakpoint, procfs_resume)
8408 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8409 (procfs_kill_inferior, procfs_store_registers)
8410 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8411 as methods of nto_procfs_target.
8412 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8413 (nto_native_ops): Delete.
8414 (procfs_open, procfs_native_open): Delete.
8415 (nto_native_ops): Now an nto_procfs_target_native.
8416 (init_procfs_targets): Adjust to C++ification.
8417 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8418 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8419 Refactor as methods of nto_procfs_target.
8421 * go32-nat.c (go32_nat_target): New class.
8422 (the_go32_nat_target): New.
8423 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8424 (go32_store_registers, go32_xfer_partial, go32_files_info)
8425 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8426 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8427 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8428 (go32_pid_to_str): Refactor as methods of go32_nat_target.
8429 (go32_target): Delete.
8430 (_initialize_go32_nat): Adjust to C++ification.
8432 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8433 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8434 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8435 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8437 (gnu_target): Delete.
8438 * gnu-nat.h (gnu_target): Delete.
8439 (gnu_nat_target): New class.
8440 * i386-gnu-nat.c (gnu_base_target): New.
8441 (i386_gnu_nat_target): New class.
8442 (the_i386_gnu_nat_target): New.
8443 (_initialize_i386gnu_nat): Adjust to C++ification.
8445 2018-05-02 Pedro Alves <palves@redhat.com>
8447 * bfd-target.c (target_bfd_xclose): Rename to ...
8448 (target_bfd_close): ... this.
8449 (target_bfd_reopen): Adjust.
8450 * target.c (target_close): Remove references to to_xclose.
8451 * target.h (target_ops::to_xclose): Delete.
8452 (target_ops::to_close): Update comments.
8454 2018-05-02 Pedro Alves <palves@redhat.com>
8456 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
8458 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
8459 * inf-ptrace.c (inf_ptrace_register_u_offset)
8460 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8461 (inf_ptrace_store_register, inf_ptrace_store_registers)
8462 (inf_ptrace_trad_target): Move to ...
8463 * linux-nat-trad.c: ... this new file.
8464 * linux-nat-trad.h: New file.
8465 * linux-nat.c (linux_target_install_ops): Make extern.
8466 (linux_trad_target): Delete.
8467 * linux-nat.h (linux_trad_target): Delete declaration.
8468 (linux_target_install_ops): Declare.
8469 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
8472 2018-05-02 Pedro Alves <palves@redhat.com>
8474 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8475 procfs_target/add_target here.
8476 * procfs.c (procfs_target): Make static.
8477 (_initialize_procfs): Call add_target here.
8478 * procfs.h (struct target_ops): Remove forward declaration.
8479 (procfs_target): Remove declaration.
8480 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
8482 2018-05-02 Pedro Alves <palves@redhat.com>
8484 * procfs.c (procfs_stopped_by_watchpoint)
8485 (procfs_insert_watchpoint, procfs_remove_watchpoint)
8486 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
8488 (procfs_use_watchpoints): Delete, move contents...
8489 (procfs_target): ... here.
8490 * procfs.h (procfs_use_watchpoints): Delete declaration.
8491 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8492 procfs_use_watchpoints.
8493 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8494 procfs_use_watchpoints.
8496 2018-05-02 Tom Tromey <tom@tromey.com>
8499 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
8500 and var_zuinteger_unlimited.
8501 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
8502 and PARAM_ZUINTEGER_UNLIMITED.
8503 (set_parameter_value): Handle var_zuinteger and
8504 var_zuinteger_unlimited.
8505 (add_setshow_generic): Likewise.
8506 (parmpy_init): Likewise.
8508 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
8511 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
8512 pointer is not null before dereferencing it.
8514 2018-04-30 Tom Tromey <tom@tromey.com>
8516 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
8519 2018-04-30 Tom Tromey <tom@tromey.com>
8521 * breakpoint.c (mention): Remove use of is_mi_like_p.
8522 (print_mention_ranged_breakpoint): Likewise.
8523 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
8526 2018-04-30 Tom Tromey <tom@tromey.com>
8528 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
8530 2018-04-30 Tom Tromey <tom@tromey.com>
8532 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
8533 (info_spu_event_command): Remove some uses of is_mi_like_p.
8535 2018-04-30 Tom Tromey <tom@tromey.com>
8537 * python/py-framefilter.c (py_print_single_arg)
8538 (enumerate_locals, py_print_args, py_print_frame): Remove some
8539 uses of is_mi_like_p.
8541 2018-04-30 Tom Tromey <tom@tromey.com>
8544 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
8545 * ui-out.h (ui_out::is_mi_like_p): Now const.
8546 (ui_out::do_is_mi_like_p): Now const.
8547 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
8549 2018-04-30 Tom Tromey <tom@tromey.com>
8551 * varobj.c (varobj_set_visualizer): Use new_reference.
8552 * python/python.c (gdbpy_decode_line): Use new_reference.
8553 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
8556 2018-04-30 Tom Tromey <tom@tromey.com>
8558 * varobj.c (install_new_value): Use new_reference.
8559 * value.h (value_incref): Return void. Swap intro comment with
8561 * value.c (set_value_parent): Use new_reference.
8562 (value_incref): Return void. Update intro comment.
8563 (release_value): Use new_reference.
8564 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
8566 2018-04-30 Tom Tromey <tom@tromey.com>
8568 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
8569 * gdb_bfd.h (new_bfd_ref): Remove.
8570 (gdb_bfd_open): Update comment.
8571 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
8572 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
8573 (gdb_bfd_fdopenr): Use new_reference.
8574 * exec.c (exec_file_attach): Use new_reference.
8576 2018-04-30 Tom Tromey <tom@tromey.com>
8578 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
8581 2018-04-30 Tom Tromey <tom@tromey.com>
8583 * jit.c (jit_read_code_entry): Use type_align.
8584 * i386-tdep.c (i386_gdbarch_init): Don't call
8585 set_gdbarch_long_long_align_bit.
8586 * gdbarch.sh: Remove long_long_align_bit.
8587 * gdbarch.c, gdbarch.h: Rebuild.
8588 * arc-tdep.c (arc_type_align): New function.
8589 (arc_gdbarch_init): Use arc_type_align. Don't call
8590 set_gdbarch_long_long_align_bit.
8592 2018-04-30 Tom Tromey <tom@tromey.com>
8594 * rust-lang.c (rust_type_alignment): Remove.
8595 (rust_composite_type): Use type_align.
8597 2018-04-30 Tom Tromey <tom@tromey.com>
8599 * NEWS: Mention Type.align.
8600 * python/py-type.c (typy_get_alignof): New function.
8601 (type_object_getset): Add "alignof".
8603 2018-04-30 Tom Tromey <tom@tromey.com>
8607 * std-operator.def (UNOP_ALIGNOF): New operator.
8608 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
8610 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
8611 * c-lang.c (c_op_print_tab): Add alignof.
8612 * c-exp.y (ALIGNOF): New token.
8613 (exp): Add "ALIGNOF" production.
8614 (ident_tokens): Add _Alignof and alignof.
8616 2018-04-30 Tom Tromey <tom@tromey.com>
8618 * i386-tdep.c (i386_type_align): New function.
8619 (i386_gdbarch_init): Update.
8620 * gdbarch.sh (type_align): New method.
8621 * gdbarch.c, gdbarch.h: Rebuild.
8622 * arch-utils.h (default_type_align): Declare.
8623 * arch-utils.c (default_type_align): New function.
8624 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
8625 (struct type) <align_log2>: New field.
8626 <instance_flags>: Now a bitfield.
8627 (TYPE_RAW_ALIGN): New macro.
8628 (type_align, type_raw_align, set_type_align): Declare.
8629 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
8631 * dwarf2read.c (quirk_rust_enum): Set type alignment.
8632 (get_alignment, maybe_set_alignment): New functions.
8633 (read_structure_type, read_enumeration_type, read_array_type)
8634 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
8635 (read_subrange_type, read_base_type): Set type alignment.
8637 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
8639 * dwarf2read.c (read_index_from_section): Use bool.
8641 2018-04-29 Fabian Groffen <grobian@gentoo.org>
8644 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
8647 2018-04-29 John Reiser <jreiser@BitWagon.com>
8650 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
8651 last step, and do it atomically.
8653 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
8655 * compile/compile-c-types.c (convert_int, convert_float):
8658 2018-04-27 Tom Tromey <tom@tromey.com>
8661 * rust-lang.c (rust_inclusive_range_type_p): New function.
8662 (rust_range): Handle inclusive ranges.
8663 (rust_compute_range): Likewise.
8664 * rust-exp.y (struct rust_op) <inclusive>: New field.
8665 (DOTDOTEQ): New constant.
8666 (range_expr): Add "..=" productions.
8667 (operator_tokens): Add "..=" token.
8668 (ast_range): Add "inclusive" parameter.
8669 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
8671 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
8673 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
8674 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
8676 * expprint.c (print_subexp_standard): Handle new bounds values.
8677 (dump_subexp_body_standard): Likewise.
8679 2018-04-27 Tom Tromey <tom@tromey.com>
8681 * configure: Rebuild.
8682 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
8683 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
8685 (class symbol_needs_eval_context): Likewise.
8686 * dwarf2read.c (mock_mapped_index::symbol_name_count)
8687 (mock_mapped_index::symbol_name_at): Use "override". Remove
8689 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
8691 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
8692 * aarch64-tdep.c (instruction_reader::read): Use "override".
8693 (instruction_reader_test::read): Likewise.
8694 * arm-tdep.c (instruction_reader::read): Use "override".
8695 (instruction_reader_thumb::read): Likewise.
8697 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
8700 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
8701 instead of remote_send.
8702 (remote_send): Remove.
8704 2018-04-26 Pedro Alves <palves@redhat.com>
8706 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
8707 find_function_start_sal instead of find_pc_line.
8709 2018-04-26 Pedro Alves <palves@redhat.com>
8711 * breakpoint.c (set_breakpoint_location_function): Handle
8713 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
8714 * elfread.c (elf_symtab_read): Give data symbols with
8715 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
8716 (elf_rel_plt_read): Update comment.
8717 * linespec.c (convert_linespec_to_sals): Handle
8719 (minsym_found): Handle mst_data_gnu_ifunc.
8720 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
8721 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
8722 * parse.c (find_minsym_type_and_address): Handle
8724 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
8725 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
8726 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
8728 <mst_data_gnu_ifunc>: New enumerator.
8730 2018-04-26 Pedro Alves <palves@redhat.com>
8732 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
8733 (lookup_minimal_symbol_by_pc_section): ... this. Replace
8734 'want_trampoline' parameter by a lookup_msym_prefer parameter.
8736 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
8737 (lookup_minimal_symbol_by_pc): Adjust.
8738 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
8739 (lookup_solib_trampoline_symbol_by_pc): Adjust.
8740 * minsyms.h (lookup_msym_prefer): New enum.
8741 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8742 parameter by a lookup_msym_prefer parameter.
8744 2018-04-26 Pedro Alves <palves@redhat.com>
8746 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
8747 ends in "@plt" instead of looking at the symbol's section.
8749 2018-04-26 Pedro Alves <palves@redhat.com>
8751 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
8753 (find_pc_partial_function_gnu_ifunc): Rename to ...
8754 (find_pc_partial_function): ... this, and remove references to
8756 (find_pc_partial_function): Delete old implementation.
8757 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
8759 2018-04-26 Pedro Alves <palves@redhat.com>
8761 * linespec.c (struct bound_minimal_symbol_search_key): New.
8762 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
8763 skip first line if we found a GNU ifunc minimal symbol by name.
8764 (compare_msymbols): Change parameters to work with a destructured
8766 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
8769 2018-04-26 Pedro Alves <palves@redhat.com>
8771 * breakpoint.c (set_breakpoint_location_function): Don't resolve
8772 ifunc targets here. Instead, if we have an ifunc minsym, use its
8774 (add_location_to_breakpoint): Store the minsym and the objfile in
8775 the breakpoint location.
8776 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
8777 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
8778 Record the minsym in the sal.
8779 * symtab.h (symtab_and_line) <msymbol>: New field.
8781 2018-04-26 Pedro Alves <palves@redhat.com>
8783 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
8784 unless we actually resolved the ifunc.
8786 2018-04-26 Pedro Alves <palves@redhat.com>
8788 * c-exp.y (variable production): Prefer ifunc minsyms over
8789 regular function symbols.
8790 * symtab.c (find_gnu_ifunc): New function.
8791 * minsyms.h (lookup_msym_prefer): New enum.
8792 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8793 parameter by a lookup_msym_prefer parameter.
8794 * symtab.h (find_gnu_ifunc): New declaration.
8796 2018-04-26 Pedro Alves <palves@redhat.com>
8798 * blockframe.c (find_gnu_ifunc_target_type): New function.
8799 (find_function_type): New.
8800 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
8801 return a value with a memory address.
8802 (eval_call): For calls to GNU ifunc functions, try to find the
8803 type of the target function from the type that the resolver
8805 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
8807 * infcall.c (find_function_return_type): Delete.
8808 (find_function_addr): Add 'function_type' parameter. For calls to
8809 GNU ifunc functions, try to find the type of the target function
8810 from the type that the resolver returns, and return it via
8812 (call_function_by_hand_dummy): Adjust to use the function type
8813 returned by find_function_addr.
8814 (find_function_addr): Add 'function_type' parameter and move
8816 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
8819 2018-04-26 Pedro Alves <palves@redhat.com>
8821 * c-exp.y (variable production): Skip finding an alias for ifunc
8824 2018-04-26 Pedro Alves <palves@redhat.com>
8826 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
8828 2018-04-25 Pedro Alves <palves@redhat.com>
8830 * infcmd.c (kill_command): Print the pid as string, not the whole
8831 thread's ptid. Add comment. s/has been killed/killed/ in output
8833 * remote.c (remote_detach_1): Print the pid as string, not the
8834 whole thread's ptid.
8836 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8837 Sergio Durigan Junior <sergiodj@redhat.com>
8838 Pedro Alves <palves@redhat.com>
8840 * infcmd.c (kill_command): Print message when inferior has
8842 * inferior.c (print_inferior_events): Remove 'static'. Set as
8844 (add_inferior): Improve message printed when
8845 'print_inferior_events' is on.
8846 (exit_inferior): Remove message printed when
8847 'print_inferior_events' is on.
8848 (detach_inferior): Improve message printed when
8849 'print_inferior_events' is on.
8850 (initialize_inferiors): Use 'add_inferior_silent' to set
8851 'current_inferior_'.
8852 * inferior.h (print_inferior_events): Declare here as
8854 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
8855 '[Detaching...]' messages when 'print_inferior_events' is on.
8856 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
8857 as prefix/suffix for messages. Remove periods. Fix erroneous
8858 'Detaching after fork from child...', replace it by '... from
8860 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
8861 prefix/suffix when printing 'Detaching...' messages. Print
8862 them when 'print_inferior_events' is on.
8863 * remote.c (remote_detach_1): Print message when detaching
8864 from inferior and '!is_fork_parent'.
8866 2018-04-24 Tom Tromey <tom@tromey.com>
8868 * cli-out.h: Reindent.
8870 2018-04-24 Tom Tromey <tom@tromey.com>
8872 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
8873 (cli_ui_out::do_field_string): Use fputs_filtered.
8874 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
8876 2018-04-23 Tom Tromey <tom@tromey.com>
8878 * guile/scm-frame.c (gdbscm_frame_read_var): Use
8879 gdb::unique_xmalloc_ptr.
8881 2018-04-23 Tom Tromey <tom@tromey.com>
8883 * configure: Rebuild.
8885 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
8888 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
8889 prepare_for_testing. Set normal_bp to r_debug_state if target
8892 2018-04-21 Pedro Alves <palves@redhat.com>
8893 Rajendra SY <rajendra.sy@gmail.com>
8895 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
8896 * remote.c (extended_remote_attach): In all-stop mode, mark the
8897 thread as executing.
8899 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8901 * thread.c (thread_apply_all_command): Fix comment.
8902 (thread_command): Fix comment.
8904 2018-04-10 Alan Hayward <alan.hayward@arm.com>
8906 * common/tdesc.h (tdesc_create_feature): Remove xml filename
8908 * features/aarch64-core.c (create_feature_aarch64_core):
8910 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
8912 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
8914 * features/i386/32bit-avx512.c
8915 (create_feature_i386_32bit_avx512): Likewise.
8916 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
8918 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
8920 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
8922 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
8924 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
8926 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
8928 * features/i386/64bit-avx512.c
8929 (create_feature_i386_64bit_avx512): Likewise.
8930 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
8932 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
8934 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
8936 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
8938 * features/i386/64bit-segments.c
8939 (create_feature_i386_64bit_segments): Likewise.
8940 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
8942 * features/i386/x32-core.c
8943 (create_feature_i386_x32_core): Likewise.
8944 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
8945 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
8946 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
8947 * target-descriptions.c: In generated code, don't pass xml
8950 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8952 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
8953 (print_xml_feature::visit_post): Likewise.
8954 (print_xml_feature::visit): Likewise.
8955 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
8956 (print_xml_feature): Add new class.
8957 * regformats/regdat.sh: Null xmltarget on feature targets.
8958 * target-descriptions.c (struct target_desc): Add xmltarget.
8959 (maintenance_check_tdesc_xml_convert): Add unittest function.
8960 (tdesc_get_features_xml): Add function to get xml.
8961 (maintenance_check_xml_descriptions): Test xml generation.
8962 * xml-tdesc.c (string_read_description_xml): Add function.
8963 * xml-tdesc.h (string_read_description_xml): Add declaration.
8965 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8967 * features/Makefile: Add feature marker to targets with new style
8968 target descriptions.
8969 * regformats/aarch64.dat: Regenerate.
8970 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
8971 * regformats/i386/amd64-avx-linux.dat: Likewise.
8972 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
8973 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
8974 * regformats/i386/amd64-linux.dat: Likewise.
8975 * regformats/i386/amd64-mpx-linux.dat: Likewise.
8976 * regformats/i386/amd64.dat: Likewise.
8977 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
8978 * regformats/i386/i386-avx-linux.dat: Likewise.
8979 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
8980 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
8981 * regformats/i386/i386-linux.dat: Likewise.
8982 * regformats/i386/i386-mmx-linux.dat: Likewise.
8983 * regformats/i386/i386-mpx-linux.dat: Likewise.
8984 * regformats/i386/i386.dat: Likewise.
8985 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
8986 * regformats/i386/x32-avx-linux.dat: Likewise.
8987 * regformats/i386/x32-linux.dat: Likewise.
8988 * regformats/tic6x-c62x-linux.dat: Likewise.
8989 * regformats/tic6x-c64x-linux.dat: Likewise.
8990 * regformats/tic6x-c64xp-linux.dat: Likewise.
8991 * regformats/regdat.sh: Parse feature marker.
8993 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8995 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
8996 (tdesc_osabi_name): Likewise.
8997 * target-descriptions.c (tdesc_architecture_name): Add new
8999 (tdesc_osabi_name): Likewise.
9001 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9003 * common/tdesc.c (tdesc_predefined_type): Move to here.
9004 (tdesc_named_type): Likewise.
9005 (tdesc_create_vector): Likewise.
9006 (tdesc_create_struct): Likewise.
9007 (tdesc_set_struct_size): Likewise.
9008 (tdesc_create_union): Likewise.
9009 (tdesc_create_flags): Likewise.
9010 (tdesc_create_enum): Likewise.
9011 (tdesc_add_field): Likewise.
9012 (tdesc_add_typed_bitfield): Likewise.
9013 (tdesc_add_bitfield): Likewise.
9014 (tdesc_add_flag): Likewise.
9015 (tdesc_add_enum_value): Likewise.
9016 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9017 (struct tdesc_type_vector): Likewise.
9018 (struct tdesc_type_field): Likewise.
9019 (struct tdesc_type_with_fields): Likewise.
9020 (tdesc_create_enum): Add declaration.
9021 (tdesc_add_typed_bitfield): Likewise.
9022 (tdesc_add_enum_value): Likewise.
9023 * target-descriptions.c (tdesc_type_field): Move from here.
9024 (tdesc_type_builtin): Likewise.
9025 (tdesc_type_vector): Likewise.
9026 (tdesc_type_with_fields): Likewise.
9027 (tdesc_predefined_types): Likewise.
9028 (tdesc_named_type): Likewise.
9029 (tdesc_create_vector): Likewise.
9030 (tdesc_create_struct): Likewise.
9031 (tdesc_set_struct_size): Likewise.
9032 (tdesc_create_union): Likewise.
9033 (tdesc_create_flags): Likewise.
9034 (tdesc_create_enum): Likewise.
9035 (tdesc_add_field): Likewise.
9036 (tdesc_add_typed_bitfield): Likewise.
9037 (tdesc_add_bitfield): Likewise.
9038 (tdesc_add_flag): Likewise.
9039 (tdesc_add_enum_value): Likewise.
9040 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9041 (tdesc_add_typed_bitfield): Likewise.
9042 (tdesc_add_enum_value): Likewise.
9044 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9046 * common/tdesc.c (tdesc_feature::accept): Move to here.
9047 (tdesc_feature::operator==): Likewise.
9048 (tdesc_create_reg): Likewise.
9049 * common/tdesc.h (tdesc_type_kind): Likewise.
9050 (struct tdesc_type): Likewise.
9051 (struct tdesc_feature): Likewise.
9052 * regformats/regdat.sh: Create a feature.
9053 * target-descriptions.c (tdesc_type_kind): Move from here.
9054 (tdesc_type): Likewise.
9055 (tdesc_type_up): Likewise.
9056 (tdesc_feature): Likewise.
9057 (tdesc_create_reg): Likewise.
9059 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9061 * Makefile.in: Add arch/tdesc.c
9062 * common/tdesc.c: New file.
9063 * common/tdesc.h (tdesc_element_visitor): Move to here.
9064 (tdesc_element): Likewise.
9065 (tdesc_reg): Likewise.
9066 (tdesc_reg_up): Likewise.
9067 * regformats/regdef.h (reg): Add offset to constructors.
9068 * target-descriptions.c (tdesc_element_visitor): Move from here.
9069 (tdesc_element): Likewise.
9070 (tdesc_reg): Likewise.
9071 (tdesc_reg_up): Likewise.
9073 2018-04-17 Tom Tromey <tom@tromey.com>
9075 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9078 2018-04-17 Tom Tromey <tom@tromey.com>
9080 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9082 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9084 * symtab.c (print_symbol_info): Skip printing filename and line
9085 number when `last' is NULL.
9086 (symtab_symbol_info): Use empty string instead of NULL for first
9087 invocation of print_symbol_info.
9088 (rbreak_command): Pass NULL to `last' parameter of
9091 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9093 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9096 2018-04-16 Pedro Alves <palves@redhat.com>
9098 * MAINTAINERS (sh): Remove.
9099 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9100 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9101 (ALLDEPFILES): Remove sh64-tdep.c.
9102 * NEWS: Mentions that support for SH-5/SH64 is removed.
9103 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9104 (sh*-*-openbsd*): Ditto.
9105 (sh64-*-elf*): Remove.
9107 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9108 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9109 * sh-tdep.c: No longer include "sh64-tdep.h".
9110 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9111 * sh64-tdep.c, sh64-tdep.h: Remove files.
9113 2018-04-16 Pedro Alves <palves@redhat.com>
9115 * MAINTAINERS: Remove m88k.
9116 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9117 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9118 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9119 * NEWS: Mention that support for m88k was removed.
9120 * configure.host (m88*-*-*): Remove support.
9121 * configure.nat (m88k-*-*): Remove support.
9122 * configure.tgt (m88*-*-openbsd*): Remove.
9123 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9125 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9127 * configure.tgt (x86_tobjs): New variable.
9128 (amd64_tobjs, i386_tobjs): Use it.
9130 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9132 * symtab.c (print_symbol_info): Precede the symbol definition by
9133 the line number when available.
9134 * NEWS: Advertise this enhancement.
9136 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9138 * NEWS (New options): announce set/show record btrace cpu.
9139 * btrace.c: Include record-btrace.h.
9140 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9141 the vendor is unknown.
9142 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9143 Maybe overwrite the btrace configuration's cpu.
9144 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9145 (btrace_fetch): Add cpu parameter. Update callers.
9146 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9147 Maybe overwrite the btrace configuration's cpu. Skip enabling
9148 errata workarounds if the vendor is unknown.
9149 * python/py-record-btrace.c: Include record-btrace.h.
9150 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9151 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9152 * record-btrace.c (record_btrace_cpu_state_kind): New.
9153 (record_btrace_cpu): New.
9154 (set_record_btrace_cpu_cmdlist): New.
9155 (record_btrace_get_cpu): New.
9156 (require_btrace_thread, record_btrace_info)
9157 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9158 (cmd_set_record_btrace_cpu_none): New.
9159 (cmd_set_record_btrace_cpu_auto): New.
9160 (cmd_set_record_btrace_cpu): New.
9161 (cmd_show_record_btrace_cpu): New.
9162 (_initialize_record_btrace): Initialize set/show record btrace cpu
9164 * record-btrace.h (record_btrace_get_cpu): New.
9166 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9168 * record.c (set_record_command): Fix typo in message.
9170 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9172 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9174 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9176 * infrun.c (process_event_stop_test): Call
9177 gdbarch_in_indirect_branch_thunk.
9178 * gdbarch.sh (in_indirect_branch_thunk): New.
9179 * gdbarch.c: Regenerated.
9180 * gdbarch.h: Regenerated.
9183 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9184 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9185 (ALLDEPFILES): Add x86-tdep.c.
9186 * arch-utils.h (default_in_indirect_branch_thunk): New.
9187 * arch-utils.c (default_in_indirect_branch_thunk): New.
9188 * i386-tdep: Include x86-tdep.h.
9189 (i386_in_indirect_branch_thunk): New.
9190 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9192 * amd64-tdep: Include x86-tdep.h.
9193 (amd64_in_indirect_branch_thunk): New.
9194 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9196 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9199 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9200 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9201 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9204 2018-04-12 Tom Tromey <tom@tromey.com>
9206 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9207 (rust_evaluate_subexp): Likewise.
9209 2018-04-12 Pedro Alves <palves@redhat.com>
9211 * procfs.c (procfs_detach): Make forward declaration's prototype
9212 match definition's protototype.
9213 (proc_get_LDT_entry): Remove stale do_cleanups call.
9215 2018-04-12 Pedro Alves <palves@redhat.com>
9217 * target.h (target_ops::to_has_exited): Delete.
9218 (target_has_exited): Delete.
9219 * target-delegates.c: Regenerate.
9221 2018-04-11 Pedro Alves <palves@redhat.com>
9223 * target.c (fileio_fh_t::t): Add comment.
9224 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9225 (target_fileio_close): Handle a NULL target.
9226 (invalidate_fileio_fh): New.
9227 (target_close): Call it.
9228 * remote.c (remote_hostio_send_command): No longer check whether
9229 remote_desc is open.
9231 2018-04-11 Pedro Alves <palves@redhat.com>
9233 * target.c (fileio_fh_t): Make it a named struct instead of a
9235 (fileio_fh_t::is_closed): New method.
9236 (DEF_VEC_O (fileio_fh_t)): Remove.
9237 (fileio_fhandles): Now a std::vector.
9238 (is_closed_fileio_fh): Delete.
9239 (acquire_fileio_fd): Adjust. Rename parameters.
9240 (release_fileio_fd): Adjust.
9241 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9242 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9243 (target_fileio_close): Adjust.
9245 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9247 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9250 2018-04-10 Pedro Alves <palves@redhat.com>
9252 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9253 (scoped_finish_thread_state): New class.
9254 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9256 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9257 (fetch_inferior_event, normal_stop): Likewise.
9258 * thread.c (finish_thread_state_cleanup): Delete.
9260 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9261 Pedro Alves <palves@redhat.com>
9263 * value.c: Include "selftest.h" and "common/array-view.h".
9264 (struct range) <operator ==>: New.
9265 (test_ranges_contain): New.
9266 (check_ranges_vector): New.
9267 (test_insert_into_bit_range_vector): New.
9268 (_initialize_values): Register selftests.
9269 * common/array-view.h (operator==, operator!=): New.
9271 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9273 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9275 * inline-frame.c: Include <algorithm>.
9276 (struct inline_state): Add constructor.
9277 (inline_state_s): Remove.
9278 (DEF_VEC_O(inline_state_s)): Remove.
9279 (inline_states): Change type to std::vector.
9280 (find_inline_frame_state): Adjust to std::vector.
9281 (allocate_inline_frame_state): Remove.
9282 (clear_inline_frame_state): Adjust to std::vector.
9283 (skip_inline_frames): Adjust to std::vector.
9285 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9287 * tracepoint.h (struct trace_state_variable): Add constructor.
9288 <name>: Change type to std::string.
9289 * tracepoint.c (tsv_s): Remove.
9290 (DEF_VEC_O(tsv_s)): Remove.
9291 (tvariables): Change to std::vector.
9292 (create_trace_state_variable): Adjust to std::vector.
9293 (find_trace_state_variable): Likewise.
9294 (find_trace_state_variable_by_number): Likewise.
9295 (delete_trace_state_variable): Likewise.
9296 (trace_variable_command): Adjust to std::string.
9297 (delete_trace_variable_command): Likewise.
9298 (tvariables_info_1): Adjust to std::vector.
9299 (save_trace_state_variables): Likewise.
9300 (start_tracing): Likewise.
9301 (merge_uploaded_trace_state_variables): Adjust to std::vector
9303 * target.h (struct target_ops)
9304 <to_download_trace_state_variable>: Pass reference to
9305 trace_state_variable.
9306 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9307 * target-delegates.c: Re-generate.
9308 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9309 (mi_tsv_deleted): Likewise.
9310 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9311 * remote.c (remote_download_trace_state_variable): Change
9312 pointer to reference and adjust.
9313 * make-target-delegates (parse_argtypes): Handle references.
9314 (write_function_header): Likewise.
9315 (munge_type): Likewise.
9317 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9319 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9320 string_view-selftests.c.
9321 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9323 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9324 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9325 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9326 * unittests/basic_string_view/element_access/char/1.cc:
9328 * unittests/basic_string_view/element_access/char/empty.cc:
9330 * unittests/basic_string_view/element_access/char/front_back.cc:
9332 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9333 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9335 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9337 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9339 * unittests/basic_string_view/operations/compare/char/1.cc:
9341 * unittests/basic_string_view/operations/compare/char/13650.cc:
9343 * unittests/basic_string_view/operations/copy/char/1.cc:
9345 * unittests/basic_string_view/operations/data/char/1.cc:
9347 * unittests/basic_string_view/operations/find/char/1.cc:
9349 * unittests/basic_string_view/operations/find/char/2.cc:
9351 * unittests/basic_string_view/operations/find/char/3.cc:
9353 * unittests/basic_string_view/operations/find/char/4.cc:
9355 * unittests/basic_string_view/operations/rfind/char/1.cc:
9357 * unittests/basic_string_view/operations/rfind/char/2.cc:
9359 * unittests/basic_string_view/operations/rfind/char/3.cc:
9361 * unittests/basic_string_view/operations/substr/char/1.cc:
9363 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9364 * unittests/string_view-selftests.c: New file.
9366 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9368 * unittests/basic_string_view/capacity/1.cc: New file.
9369 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9370 * unittests/basic_string_view/cons/char/1.cc: New file.
9371 * unittests/basic_string_view/cons/char/2.cc: New file.
9372 * unittests/basic_string_view/cons/char/3.cc: New file.
9373 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9374 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9375 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9376 * unittests/basic_string_view/element_access/char/1.cc: New file.
9377 * unittests/basic_string_view/element_access/char/2.cc: New file.
9378 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9379 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9380 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9381 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9382 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9383 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9384 * unittests/basic_string_view/include.cc: New file.
9385 * unittests/basic_string_view/inserters/char/1.cc: New file.
9386 * unittests/basic_string_view/inserters/char/2.cc: New file.
9387 * unittests/basic_string_view/inserters/char/3.cc: New file.
9388 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9389 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9390 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9391 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9392 * unittests/basic_string_view/literals/types.cc: New file.
9393 * unittests/basic_string_view/literals/values.cc: New file.
9394 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9395 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9396 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9397 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9398 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9399 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9400 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9401 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9402 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9403 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9404 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9405 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9406 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9407 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9408 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9409 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9410 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9411 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9412 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9413 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9414 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9415 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9416 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9417 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9418 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9419 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9420 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9421 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9422 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9423 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9424 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9425 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9426 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9427 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9428 * unittests/basic_string_view/operators/char/2.cc: New file.
9429 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9430 * unittests/basic_string_view/range_access/char/1.cc: New file.
9431 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9432 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9433 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9434 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9435 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9436 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9437 * unittests/basic_string_view/requirements/typedefs.cc: New file.
9438 * unittests/basic_string_view/typedefs.cc: New file.
9439 * unittests/basic_string_view/types/1.cc: New file.
9441 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9443 * common/gdb_string_view.h: Remove libstdc++ implementation
9444 details, adjust to gdb reality.
9445 * common/gdb_string_view.tcc: Likewise.
9446 * cli/cli-script.c (struct string_view): Remove.
9447 (user_args) <m_args>: Change element type to gdb::string_view.
9448 (user_args::insert_args): Adjust.
9450 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9452 * common/gdb_string_view.h: New file.
9453 * common/gdb_string_view.tcc: New file.
9455 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9457 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9458 * configure: Re-generate.
9460 2018-04-09 Pedro Alves <palves@redhat.com>
9462 * gdbarch.sh: Include "observable.h" instead of "observer.h".
9463 (set_target_gdbarch): Call
9464 gdb::observers::architecture_changed.notify instead of
9465 observer_notify_architecture_changed.
9467 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9469 * tracepoint.c (struct current_traceframe_cleanup): Remove.
9470 (do_restore_current_traceframe_cleanup): Remove.
9471 (restore_current_traceframe_cleanup_dtor): Remove.
9472 (make_cleanup_restore_current_traceframe): Remove.
9473 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
9475 * tracepoint.h (struct scoped_restore_current_traceframe): New.
9476 * infrun.c (fetch_inferior_event): Use
9477 scoped_restore_current_traceframe.
9479 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9481 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
9483 <n_allocated_type_units>: Remove.
9484 <all_type_units>: Change to std::vector.
9485 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9486 to std::vector change.
9487 (dwarf2_per_objfile::get_cutu): Likewise.
9488 (dwarf2_per_objfile::get_tu): Likewise.
9489 (create_signatured_type_table_from_index): Likewise.
9490 (create_signatured_type_table_from_debug_names): Likewise.
9491 (dw2_symtab_iter_next): Likewise.
9492 (dw2_print_stats): Likewise.
9493 (dw2_expand_all_symtabs): Likewise.
9494 (dw2_expand_marked_cus): Likewise.
9495 (dw2_debug_names_iterator::next): Likewise.
9496 (dwarf2_initialize_objfile): Likewise.
9497 (add_signatured_type_cu_to_table): Likewise.
9498 (create_all_type_units): Likewise.
9499 (add_type_unit): Likewise.
9500 (struct tu_abbrev_offset): Add constructor.
9501 (build_type_psymtabs_1): Adjust to std::vector change.
9502 (print_tu_stats): Likewise.
9503 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9504 (write_debug_names): Likewise.
9506 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9508 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
9509 Make an std::vector.
9510 <n_comp_units>: Remove.
9511 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9512 to std::vector change.
9513 (dwarf2_per_objfile::get_cutu): Likewise.
9514 (dwarf2_per_objfile::get_cu): Likewise.
9515 (create_cus_from_index): Likewise.
9516 (create_addrmap_from_index): Likewise.
9517 (create_addrmap_from_aranges): Likewise.
9518 (dwarf2_read_index): Likewise.
9519 (dw2_find_last_source_symtab): Likewise.
9520 (dw2_map_symtabs_matching_filename): Likewise.
9521 (dw2_symtab_iter_next): Likewise.
9522 (dw2_print_stats): Likewise.
9523 (dw2_expand_all_symtabs): Likewise.
9524 (dw2_expand_symtabs_with_fullname): Likewise.
9525 (dw2_expand_marked_cus): Likewise.
9526 (dw2_map_symbol_filenames): Likewise.
9527 (create_cus_from_debug_names): Likewise.
9528 (dwarf2_read_debug_names): Likewise.
9529 (dw2_debug_names_iterator::next): Likewise.
9530 (dwarf2_initialize_objfile): Likewise.
9531 (set_partial_user): Likewise.
9532 (dwarf2_build_psymtabs_hard): Likewise.
9533 (read_comp_units_from_section): Remove arguments, adjust to
9535 (create_all_comp_units): Adjust to std::vector and
9536 read_comp_units_from_section changes.
9537 (dwarf2_find_containing_comp_unit): Adjust to std::vector
9539 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9540 (psyms_seen_size): Likewise.
9541 (write_gdbindex): Likewise.
9542 (write_debug_names): Likewise.
9544 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9546 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
9547 with dwarf2_per_objfile.
9548 (create_cus_from_index): Likewise.
9549 (create_signatured_type_table_from_index): Likewise.
9550 (dwarf2_read_index): Likewise.
9551 (dwarf2_initialize_objfile): Likewise.
9552 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
9553 per_cu rather than get_dwarf2_per_objfile.
9555 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9557 * dwarf2read.h (struct signatured_type): Forward declare.
9558 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
9560 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
9561 (dw2_get_cutu): ...this.
9562 (dwarf2_per_objfile::get_cu): Rename from...
9563 (dw2_get_cu): ...this.
9564 (dwarf2_per_objfile::get_tu): New.
9565 (create_addrmap_from_index): Adjust.
9566 (create_addrmap_from_aranges): Adjust.
9567 (dw2_find_last_source_symtab): Adjust.
9568 (dw2_map_symtabs_matching_filename): Adjust.
9569 (dw2_symtab_iter_next): Adjust.
9570 (dw2_print_stats): Adjust.
9571 (dw2_expand_all_symtabs): Adjust.
9572 (dw2_expand_symtabs_with_fullname): Adjust.
9573 (dw2_expand_marked_cus): Adjust.
9574 (dw_expand_symtabs_matching_file_matcher): Adjust.
9575 (dw2_map_symbol_filenames): Adjust.
9576 (dw2_debug_names_iterator::next): Adjust.
9577 (dwarf2_initialize_objfile): Adjust.
9578 (set_partial_user): Adjust.
9579 (dwarf2_build_psymtabs_hard): Adjust.
9581 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9583 * dwarf2read.c (create_signatured_type_table_from_debug_names):
9584 Remove unused variables.
9585 (dw2_map_symtabs_matching_filename): Likewise.
9586 (dwarf2_record_block_ranges): Likewise.
9587 (dwarf2_read_addr_index): Likewise.
9588 (follow_die_offset): Likewise.
9590 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9592 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
9593 to symbol_file_add_main.
9595 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9598 * mi/mi-console.c (do_fputc_async_safe): New.
9599 (mi_console_file::write_async_safe): New.
9600 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
9601 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
9603 * ui-file.c (ui_file::putstrn): Adjust call to
9604 fputstrn_unfiltered.
9605 * utils.c (printchar): Replace do_fputs and do_fprintf
9606 parameters by do_fputc.
9607 (fputstr_filtered): Adjust call to printchar.
9608 (fputstr_unfiltered): Likewise.
9609 (fputstrn_filtered): Likewise.
9610 (fputstrn_unfiltered): Add do_fputc parameter, pass to
9612 * utils.h (do_fputc_ftype): New typedef.
9613 (fputstrn_unfiltered): Add do_fputc parameter.
9615 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9617 * regformats/i386/i386-avx.dat: Remove.
9619 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9622 * amd64-tdep.c (amd64_none_init_abi): New function.
9623 (amd64_x32_none_init_abi): New function.
9624 (_initialize_amd64_tdep): Register handlers for x86-64 and
9625 x64_32 with GDB_OSABI_NONE.
9626 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
9627 GDB_OSABI_NONE osabi.
9629 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9632 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
9634 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
9635 * osabi.c (gdb_osabi_names): Add "unknown" entry.
9637 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9639 * common/byte-vector.h (char_vector): New type.
9640 * target.h (target_read_alloc): Return
9641 gdb::optional<byte_vector>.
9642 (target_read_stralloc): Return gdb::optional<char_vector>.
9643 (target_get_osdata): Return gdb::optional<char_vector>.
9644 * target.c (target_read_alloc_1): Templatize. Replacement
9645 manual memory management with vector.
9646 (target_read_alloc): Change return type, adjust.
9647 (target_read_stralloc): Change return type, adjust.
9648 (target_get_osdata): Change return type, adjust.
9649 * auxv.c (struct auxv_info) <length>: Remove.
9650 <data>: Change type to gdb::optional<byte_vector>.
9651 (auxv_inferior_data_cleanup): Free auxv_info with delete.
9652 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
9653 (target_auxv_search): Adjust.
9654 (fprint_target_auxv): Adjust.
9655 * avr-tdep.c (avr_io_reg_read_command): Adjust.
9656 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
9657 (linux_make_corefile_notes): Adjust.
9658 * osdata.c (get_osdata): Adjust.
9659 * remote.c (remote_get_threads_with_qxfer): Adjust.
9660 (remote_memory_map): Adjust.
9661 (remote_traceframe_info): Adjust.
9662 (btrace_read_config): Adjust.
9663 (remote_read_btrace): Adjust.
9664 (remote_pid_to_exec_file): Adjust.
9665 * solib-aix.c (solib_aix_get_library_list): Adjust.
9666 * solib-dsbt.c (decode_loadmap): Don't free buf.
9667 (dsbt_get_initial_loadmaps): Adjust.
9668 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
9669 * solib-target.c (solib_target_current_sos): Adjust.
9670 * tracepoint.c (sdata_make_value): Adjust.
9671 * xml-support.c (xinclude_start_include): Adjust.
9672 (xml_fetch_content_from_file): Adjust.
9673 * xml-support.h (xml_fetch_another): Change return type.
9674 (xml_fetch_content_from_file): Change return type.
9675 * xml-syscall.c (xml_init_syscalls_info): Adjust.
9676 * xml-tdesc.c (file_read_description_xml): Adjust.
9677 (fetch_available_features_from_target): Change return type.
9678 (target_fetch_description_xml): Adjust.
9679 (target_read_description_xml): Adjust.
9681 2018-04-06 Tom Tromey <tom@tromey.com>
9683 * value.c (~value): Update.
9684 (struct value) <contents>: Now unique_xmalloc_ptr.
9685 (value_contents_bits_eq, allocate_value_contents)
9686 (value_contents_raw, value_contents_all_raw)
9687 (value_contents_for_printing, value_contents_for_printing_const)
9688 (set_value_enclosing_type): Update.
9690 2018-04-06 Tom Tromey <tom@tromey.com>
9692 * value.c (range_s): Remove typedef, VEC.
9693 (struct range): Add operator<.
9694 (range_lessthan): Remove.
9695 (ranges_contain): Change type.
9697 (struct value) <unavailable, optimized_out>: Now std::vector.
9698 (value_entirely_available)
9699 (value_entirely_covered_by_range_vector)
9700 (value_entirely_unavailable, value_entirely_optimized_out):
9702 (insert_into_bit_range_vector): Change argument type.
9703 (find_first_range_overlap): Likewise.
9704 (struct ranges_and_idx, value_contents_bits_eq)
9705 (require_not_optimized_out, require_available): Update.
9706 (ranges_copy_adjusted): Change argument types.
9707 (value_optimized_out, value_copy, value_fetch_lazy): Update.
9709 2018-04-06 Tom Tromey <tom@tromey.com>
9711 * value.c (~value): Update.
9712 (struct value) <parent>: Now a value_ref_ptr.
9713 (value_parent, set_value_parent, value_address, value_copy):
9716 2018-04-06 Tom Tromey <tom@tromey.com>
9718 * value.c (struct value): Add constructor, destructor, and member
9720 (allocate_value_lazy, value_decref): Update.
9722 2018-04-06 Tom Tromey <tom@tromey.com>
9724 * value.c (struct value) <released, next>: Remove.
9725 (all_values): Now a std::vector.
9726 (allocate_value_lazy): Update.
9727 (value_next): Remove.
9728 (value_mark, value_free_to_mark, release_value)
9729 (value_release_to_mark): Update.
9731 2018-04-06 Tom Tromey <tom@tromey.com>
9733 * value.h (fetch_subexp_value, value_release_to_mark): Update.
9734 (free_value_chain): Remove.
9735 * value.c (free_value_chain): Remove.
9736 (value_release_to_mark): Return a std::vector.
9737 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
9739 (check_condition): Update.
9740 * eval.c (fetch_subexp_value): Change "val_chain" to a
9742 * breakpoint.c (update_watchpoint): Update.
9743 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
9745 2018-04-06 Tom Tromey <tom@tromey.com>
9747 * value.h (free_all_values): Remove.
9748 * value.c (free_all_values): Remove.
9750 2018-04-06 Tom Tromey <tom@tromey.com>
9752 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
9753 (value_history_chain, value_history_count): Remove.
9754 (value_history): New global.
9755 (record_latest_value, access_value_history, show_values)
9756 (preserve_values): Update.
9758 2018-04-06 Tom Tromey <tom@tromey.com>
9760 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
9761 * varobj.c (varobj_set_display_format, varobj_set_value)
9762 (install_default_visualizer, construct_visualizer)
9763 (install_new_value, ~varobj, varobj_get_value_type)
9764 (my_value_of_variable, varobj_editable_p): Update.
9765 * c-varobj.c (c_describe_child, c_value_of_variable)
9766 (cplus_number_of_children, cplus_describe_child): Update.
9767 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
9768 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
9769 (ada_value_of_variable, ada_value_is_changeable_p): Update.
9771 2018-04-06 Tom Tromey <tom@tromey.com>
9773 * printcmd.c (last_examine_address): Change type to
9775 (do_examine, x_command): Update.
9777 2018-04-06 Tom Tromey <tom@tromey.com>
9779 * value.c (release_value): Update.
9780 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
9781 (struct bpstats) <val>: Now a value_ref_ptr.
9782 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9783 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9784 (~watchpoint, print_it_watchpoint, watch_command_1)
9785 (invalidate_bp_value_on_memory_change): Update.
9787 2018-04-06 Tom Tromey <tom@tromey.com>
9789 * varobj.c (varobj_clear_saved_item)
9790 (update_dynamic_varobj_children, install_new_value, ~varobj):
9792 * value.h (value_incref): Move declaration earlier.
9793 (value_decref): Rename from value_free.
9794 (struct value_ref_policy): New.
9795 (value_ref_ptr): New typedef.
9796 (struct value_deleter): Remove.
9797 (gdb_value_up): Remove typedef.
9798 (release_value): Change return type.
9799 (release_value_or_incref): Remove.
9800 * value.c (set_value_parent): Update.
9801 (value_incref): Change return type.
9802 (value_decref): Rename from value_free.
9803 (value_free_to_mark, free_all_values, free_value_chain): Update.
9804 (release_value): Return value_ref_ptr.
9805 (release_value_or_incref): Remove.
9806 (record_latest_value, set_internalvar, clear_internalvar):
9808 * stack.c (info_frame_command): Don't call value_free.
9809 * python/py-value.c (valpy_dealloc, valpy_new)
9810 (value_to_value_object): Update.
9811 * printcmd.c (do_examine): Update.
9812 * opencl-lang.c (lval_func_free_closure): Update.
9813 * mi/mi-main.c (register_changed_p): Don't call value_free.
9814 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
9815 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
9816 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
9818 * guile/scm-value.c (vlscm_free_value_smob)
9819 (vlscm_scm_from_value): Update.
9820 * frame.c (frame_register_unwind, frame_unwind_register_signed)
9821 (frame_unwind_register_unsigned, get_frame_register_bytes)
9822 (put_frame_register_bytes): Don't call value_free.
9823 * findvar.c (address_from_register): Don't call value_free.
9824 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
9825 * dwarf2loc.c (entry_data_value_free_closure)
9826 (value_of_dwarf_reg_entry, free_pieced_value_closure)
9827 (dwarf2_evaluate_loc_desc_full): Update.
9828 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9829 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9830 (~watchpoint, watch_command_1)
9831 (invalidate_bp_value_on_memory_change): Update.
9832 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
9834 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
9837 * warning.m4: Add -Wno-error=deprecated-register.
9838 * configure: Re-generate.
9840 2018-04-05 Tom Tromey <tom@tromey.com>
9842 * linespec.h: Remove include of "vec.h".
9844 2018-04-05 Tom Tromey <tom@tromey.com>
9846 * linespec.c (typep): Remove typedef.
9847 (find_methods, find_superclass_methods): Take a std::vector.
9848 (find_method): Use std::vector.
9850 2018-04-05 Tom Tromey <tom@tromey.com>
9852 * utils.c (compare_strings): Remove.
9853 * utils.h (compare_strings): Remove.
9854 * objc-lang.h (find_imps): Update.
9855 * objc-lang.c (find_methods): Take a std::vector.
9856 (uniquify_strings, find_imps): Likewise.
9857 * linespec.c (find_methods): Take a std::vector.
9858 (decode_objc): Use std::vector.
9859 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
9861 (find_method, find_function_symbols): Use std::vector.
9863 2018-04-05 Tom Tromey <tom@tromey.com>
9865 * completer.c (completion_tracker::completion_tracker): Remove
9867 (completion_tracker::discard_completions): Likewise.
9868 * breakpoint.c (ambiguous_names_p): Remove cast.
9869 * ada-lang.c (_initialize_ada_language): Remove cast.
9870 * utils.h (streq): Update.
9871 (streq_hash): Add new declaration.
9872 * utils.c (streq): Return bool.
9873 (streq_hash): New function.
9875 2018-04-05 Tom Tromey <tom@tromey.com>
9877 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
9878 Remove a string copy.
9880 2018-04-05 Tom Tromey <tom@tromey.com>
9882 * linespec.c (filter_results): Use std::vector.
9883 (decode_line_2, decode_line_full): Update.
9885 2018-04-05 Tom Tromey <tom@tromey.com>
9887 * linespec.c (canonical_to_fullform): Return std::string.
9888 (filter_results): Update.
9889 (struct decode_line_2_item): Add constructor.
9890 <fullform, displayform>: Now std::string.
9891 (decode_line_2_compare_items): Now a std::sort comparator.
9892 (decode_line_2): Update.
9894 2018-04-05 Tom Tromey <tom@tromey.com>
9896 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
9897 (unexpected_linespec_error): Update.
9898 (linespec_parse_basic, parse_linespec): Update.
9900 2018-04-05 Tom Tromey <tom@tromey.com>
9902 * linespec.c (linespec_parse_basic): Reindent.
9904 2018-04-05 Tom Tromey <tom@tromey.com>
9906 * minsyms.h (iterate_over_minimal_symbols): Update.
9907 * minsyms.c (iterate_over_minimal_symbols): Take a
9909 * linespec.c (struct collect_minsyms): Remove.
9910 (compare_msyms): Now a std::sort comparator.
9911 (add_minsym): Add parameters.
9912 (search_minsyms_for_name): Update. Use std::vector.
9914 2018-04-03 Tom Tromey <tom@tromey.com>
9916 * mipsread.c (read_alphacoff_dynamic_symtab): Use
9919 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
9921 * MAINTAINERS (Write After Approval): Add Weimin Pan.
9923 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
9926 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
9927 printing static type.
9929 2018-04-01 Tom Tromey <tom@tromey.com>
9931 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
9932 (rs6000_xfer_shared_libraries): Update.
9934 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9936 * common/gdb_vecs.h (char_ptr): Remove.
9937 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
9939 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9941 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
9943 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
9945 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9947 * tracepoint.h (struct uploaded_tp): Initialize fields.
9948 <actions, step_actions, cmd_strings>: Change type to
9949 std::vector<char *>.
9950 * tracepoint.c (get_uploaded_tp): Allocate with new.
9951 (free_uploaded_tps): Free with delete.
9952 (parse_tracepoint_definition): Adjust to std::vector change.
9953 * breakpoint.c (read_uploaded_action): Likewise.
9954 (create_tracepoint_from_upload): Likewise.
9955 * ctf.c (ctf_write_uploaded_tp): Likewise.
9956 (SET_ARRAY_FIELD): Likewise.
9957 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
9959 2018-03-30 Tom Tromey <tom@tromey.com>
9961 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
9963 (svr4_keep_data_in_core): Update.
9964 (svr4_read_so_list): Update.
9966 2018-03-30 Tom Tromey <tom@tromey.com>
9968 * windows-nat.c (handle_output_debug_string, handle_exception):
9970 * target.h (target_read_string): Update.
9971 * target.c (target_read_string): Change "string" to
9973 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9975 * solib-frv.c (frv_current_sos): Update.
9976 * solib-dsbt.c (dsbt_current_sos): Update.
9977 * solib-darwin.c (darwin_current_sos): Update.
9978 * linux-thread-db.c (inferior_has_bug): Update.
9979 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
9980 Update. Remove alloca.
9981 * ada-lang.c (ada_main_name): Update.
9983 2018-03-30 Tom Tromey <tom@tromey.com>
9985 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
9986 (struct dwo_file_deleter): New.
9987 (dwo_file_up): New typedef.
9988 (open_and_init_dwo_file): Use dwo_file_up.
9989 (free_dwo_file_cleanup): Remove.
9991 2018-03-30 Tom Tromey <tom@tromey.com>
9993 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
9994 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
9996 2018-03-30 Tom Tromey <tom@tromey.com>
9998 * dwarf2read.c (class free_cached_comp_units): New class.
9999 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10000 (free_cached_comp_units): Remove function.
10002 2018-03-30 Tom Tromey <tom@tromey.com>
10004 * utils.h (make_cleanup_unpush_target): Remove.
10005 * inf-ptrace.c (struct target_unpusher): New.
10006 (target_unpush_up) New typedef.
10007 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10009 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10011 2018-03-27 Tom Tromey <tom@tromey.com>
10013 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10015 2018-03-27 Pedro Alves <palves@redhat.com>
10016 Tom Tromey <tom@tromey.com>
10018 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10019 destructor. Now a class.
10020 (gdb_readline_wrapper_cleanup): Remove function.
10021 (gdb_readline_wrapper): Remove cleanups.
10023 2018-03-27 Tom Tromey <tom@tromey.com>
10025 * typeprint.h (struct type_print_options) <local_typedefs,
10026 global_typedefs>: Remove "struct" keyword.
10027 (class typedef_hash_table): New class.
10028 (recursively_update_typedef_hash, add_template_parameters)
10029 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10030 (find_typedef_in_hash): Don't declare.
10031 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10032 (typedef_hash_table::recursively_update): Rename from
10033 recursively_update_typedef_hash. Now a member.
10034 (typedef_hash_table::add_template_parameters): Rename from
10035 add_template_parameters. Now a member.
10036 (typedef_hash_table::typedef_hash_table): Now a constructor;
10037 rename from create_typedef_hash.
10038 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10039 rename from free_typedef_hash.
10040 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10041 (do_free_global_table): Remove.
10042 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10043 from copy_type_recursive.
10044 (create_global_typedef_table): Remove.
10045 (typedef_hash_table::find_global_typedef): Now a member of
10046 typedef_hash_table.
10047 (typedef_hash_table::find_typedef): Rename from
10048 find_typedef_in_hash; now a member.
10049 (whatis_exp): Update.
10050 * extension.h (struct ext_lang_type_printers): Add constructor and
10052 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10054 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10055 Now a constructor; rename from start_ext_lang_type_printers.
10056 (ext_lang_type_printers): Now a destructor; rename from
10057 free_ext_lang_type_printers.
10058 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10060 (c_type_print_base_struct_union): Update. Remove cleanups.
10062 2018-03-27 Tom Tromey <tom@tromey.com>
10064 * dwarf-index-write.c: Include <cmath>.
10066 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10068 * NEWS: Add entry describing new "set|show varsize-limit" command.
10069 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10071 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10074 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10076 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10077 dwarf-index-write.c
10078 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10079 * dwarf-index-common.c: New file.
10080 * dwarf-index-common.h: New file.
10081 * dwarf-index-write.c: New file.
10082 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10083 (struct dwarf2_section_info): Move from here.
10084 (dwarf2_section_info_def): Likewise.
10085 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10086 (offset_type): Likewise.
10087 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10088 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10089 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10090 (byte_swap): Likewise.
10091 (MAYBE_SWAP): Likewise.
10092 (dwarf2_per_cu_ptr): Likewise.
10093 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10094 (struct tu_stats): Likewise.
10095 (struct dwarf2_per_objfile): Likewise.
10096 (struct dwarf2_per_cu_data): Likewise.
10097 (struct signatured_type): Likewise.
10098 (sig_type_ptr): Likewise.
10099 (DEF_VEC_P (sig_type_ptr)): Likewise.
10100 (INDEX4_SUFFIX): Likewise.
10101 (INDEX5_SUFFIX): Likewise.
10102 (DEBUG_STR_SUFFIX): Likewise.
10103 (dwarf2_read_section): Make non-static.
10104 (mapped_index_string_hash): Move from here.
10105 (dwarf5_djb_hash): Likewise.
10106 (file_write): Likewise.
10107 (class data_buf): Likewise.
10108 (struct symtab_index_entry): Likewise.
10109 (struct mapped_symtab): Likewise.
10110 (find_slot): Likewise.
10111 (hash_expand): Likewise.
10112 (add_index_entry): Likewise.
10113 (uniquify_cu_indices): Likewise.
10114 (class c_str_view): Likewise.
10115 (class c_str_view_hasher): Likewise.
10116 (class vector_hasher): Likewise.
10117 (write_hash_table): Likewise.
10118 (psym_index_map): Likewise.
10119 (struct addrmap_index_data): Likewise.
10120 (add_address_entry): Likewise.
10121 (add_address_entry_worker): Likewise.
10122 (write_address_map): Likewise.
10123 (symbol_kind): Likewise.
10124 (write_psymbols): Likewise.
10125 (struct signatured_type_index_data): Likewise.
10126 (write_one_signatured_type): Likewise.
10127 (recursively_count_psymbols): Likewise.
10128 (recursively_write_psymbols): Likewise.
10129 (class debug_names): Likewise.
10130 (check_dwarf64_offsets): Likewise.
10131 (psyms_seen_size): Likewise.
10132 (write_gdbindex): Likewise.
10133 (write_debug_names): Likewise.
10134 (assert_file_size): Likewise.
10135 (write_psymtabs_to_index): Likewise.
10136 (save_gdb_index_command): Likewise.
10137 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10139 * dwarf2read.h: New file.
10141 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10144 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10145 symbol name if the CU's language stores symbol names in linkage
10147 * language.h (struct language_defn)
10148 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10149 all instances of this struct.
10151 2018-03-26 Tom Tromey <tom@tromey.com>
10153 * stack.c (backtrace_command_1): Remove verbose code.
10155 2018-03-26 Tom Tromey <tom@tromey.com>
10157 * python/py-framefilter.c (py_print_type): Don't catch
10158 exceptions. Return void.
10159 (py_print_value): Likewise.
10160 (py_print_single_arg): Likewise.
10161 (enumerate_args): Don't catch exceptions.
10162 (py_print_args): Likewise.
10163 (py_print_frame): Likewise.
10164 (gdbpy_apply_frame_filter): Catch exceptions here.
10166 2018-03-26 Tom Tromey <tom@tromey.com>
10168 * stack.c (_initialize_stack): Remove trailing newlines from help
10169 text. Add "Usage" line to "backtrace" help.
10171 2018-03-26 Tom Tromey <tom@tromey.com>
10174 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10176 2018-03-26 Tom Tromey <tom@tromey.com>
10178 * python/py-framefilter.c (py_print_single_arg): Return
10179 EXT_LANG_BT_ERROR from catch.
10181 2018-03-26 Tom Tromey <tom@tromey.com>
10183 PR backtrace/15584:
10184 * stack.c (backtrace_command_1): Move some code into no-filters
10187 2018-03-26 Tom Tromey <tom@tromey.com>
10189 * python/py-framefilter.c (throw_quit_or_print_exception): New
10191 (gdbpy_apply_frame_filter): Use it.
10193 2018-03-26 Tom Tromey <tom@tromey.com>
10196 * python/py-framefilter.c (py_print_type, py_print_value)
10197 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10200 2018-03-26 Tom Tromey <tom@tromey.com>
10202 * python/py-framefilter.c (enumerate_args): Use
10203 gdb::unique_xmalloc_ptr.
10205 2018-03-26 Tom Tromey <tom@tromey.com>
10207 * python/py-framefilter.c (py_print_frame): Return
10209 (gdbpy_apply_frame_filter): Update comment.
10210 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10212 <EXT_LANG_BT_NO_FILTERS>: Change value.
10214 2018-03-26 Tom Tromey <tom@tromey.com>
10216 PR backtrace/15582:
10217 * stack.c (backtrace_command): Parse "hide" argument.
10218 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10219 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10222 2018-03-26 Tom Tromey <tom@tromey.com>
10224 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10226 (backtrace_command): Remove "fulltrace", add "flags".
10228 2018-03-26 Tom Tromey <tom@tromey.com>
10230 * stack.c (backtrace_command): Rewrite command line parsing.
10232 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10234 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10236 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10238 * filename-seen-cache.h: Add include guard.
10240 2018-03-26 Keith Seitz <keiths@redhat.com>
10242 * symfile.c (place_section): Remove "struct" from section_addr_info
10244 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10245 "struct" keyword from section_addr_info.
10247 2018-03-26 Alan Hayward <alan.hayward@arm.com>
10249 * regformats/regdef.h (reg): Add constructors.
10251 2018-03-25 Pedro Alves <palves@redhat.com>
10253 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10254 if then/else bodies in var_func_name extraction.
10256 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
10258 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10259 lookup_minimal_symbol() to find symbol entry.
10260 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10262 2018-03-23 Keith Seitz <keiths@redhat.com>
10265 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10266 nested type definitions for C++, too.
10268 2018-03-23 Tom Tromey <tom@tromey.com>
10270 * machoread.c (struct oso_el): Add a constructor. Don't define as
10272 (macho_register_oso): Remove.
10273 (macho_symtab_read): Take a std::vector.
10274 (oso_el_compare_name): Now a std::sort comparator.
10275 (macho_symfile_read_all_oso): Take a std::vector.
10276 (macho_symfile_read): Use std::vector. Remove cleanups.
10278 2018-03-22 Tom Tromey <tom@tromey.com>
10280 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10281 (record_full_goto_bookmark): Use std::string.
10283 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10286 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10289 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10291 * rs6000-tdep.c (store_insn_p): New function.
10292 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10293 and cr_reg to their unshifted values. Use store_insn_p to
10294 match LR saves using either R1 or fdata->alloca_reg. Use
10295 store_insn_p to match CR saves. Set alloca_reg_offset
10296 when alloca_reg and framep are set. Remove lr_reg shift
10297 when assigning to fdata->lr_register.
10299 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10301 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10302 command line args instead of emitting a warning.
10304 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10306 * tracepoint.h (struct static_tracepoint_marker): Initialize
10307 fields, define default constructor, move constructor and move
10308 assignment, disable the rest.
10309 <str_id, extra>: Make std::string.
10310 (release_static_tracepoint_marker): Remove.
10311 (free_current_marker): Remove.
10312 * tracepoint.c (free_current_marker): Remove.
10313 (parse_static_tracepoint_marker_definition): Adjust to
10314 std::string, use new hex2str overload.
10315 (release_static_tracepoint_marker): Remove.
10316 (print_one_static_tracepoint_marker): Get marker by reference
10317 and adjust to std::string.
10318 (info_static_tracepoint_markers_command): Adjust to std::vector
10320 * target.h (static_tracepoint_marker_p): Remove typedef.
10321 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10322 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10324 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10326 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10327 (target_debug_print_std_vector_static_tracepoint_marker): New.
10328 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10330 (target_debug_print_static_tracepoint_marker_p): ... this.
10331 * target-delegates.c: Re-generate.
10332 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10334 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10335 (decode_static_tracepoint_spec): Adjust to std::vector.
10336 (tracepoint_print_one_detail): Adjust to std::string.
10337 (strace_marker_decode_location): Adjust to std::string.
10338 (update_static_tracepoint): Adjust to std::string, remove call
10339 to release_static_tracepoint_marker.
10340 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10341 Adjust to std::vector.
10342 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10343 (remote_static_tracepoint_markers_by_strid): Adjust to
10345 * common/rsp-low.h (hex2str): New overload with explicit count
10347 * common/rsp-low.c (hex2str): New overload with explicit count
10349 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10350 (_initialize_rsp_low_selftests): Add test_hex2str test.
10351 * unittests/tracepoint-selftests.c
10352 (test_parse_static_tracepoint_marker_definition): Adjust to
10355 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10357 * tracepoint.c (parse_static_tracepoint_marker_definition):
10358 Consider case where the definition is followed by more
10360 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10361 tracepoint-selftests.c.
10362 * unittests/tracepoint-selftests.c: New.
10364 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10366 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10369 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10371 * symtab.c (find_pc_sect_line): fixed indentation.
10373 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10375 * symtab.c (find_pc_sect_line): now uses binary search.
10377 2018-03-19 Tom Tromey <tom@tromey.com>
10379 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10380 "IDENT" production.
10382 2018-03-19 Pedro Alves <palves@redhat.com>
10383 Tom Tromey <tom@tromey.com>
10385 * unittests/observable-selftests.c: New file.
10386 * common/observable.h: New file.
10387 * observable.h: New file.
10388 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10389 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10390 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10391 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10392 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10393 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10394 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10395 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10396 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10397 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10398 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10399 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10400 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10401 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10402 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10403 tui/tui-interp.c, valops.c: Update all users.
10404 * tui/tui-hooks.c (tui_bp_created_observer)
10405 (tui_bp_deleted_observer, tui_bp_modified_observer)
10406 (tui_inferior_exit_observer, tui_before_prompt_observer)
10407 (tui_normal_stop_observer, tui_register_changed_observer):
10409 (tui_observers_token): New global.
10410 (attach_or_detach, tui_attach_detach_observers): New functions.
10411 (tui_install_hooks, tui_remove_hooks): Use
10412 tui_attach_detach_observers.
10413 * record-btrace.c (record_btrace_thread_observer): Remove.
10414 (record_btrace_thread_observer_token): New global.
10415 * observer.sh: Remove.
10416 * observer.c: Rename to observable.c.
10417 * observable.c (namespace gdb_observers): Define new objects.
10418 (observer_debug): Move into gdb_observers namespace.
10419 (struct observer, struct observer_list, xalloc_observer_list_node)
10420 (xfree_observer_list_node, generic_observer_attach)
10421 (generic_observer_detach, generic_observer_notify): Remove.
10422 (_initialize_observer): Update.
10423 Don't include observer.inc.
10424 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10425 (clean mostlyclean): Likewise.
10426 (observer.h, observer.inc): Remove targets.
10427 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10428 (COMMON_SFILES): Use observable.c, not observer.c.
10429 * .gitignore: Remove observer.h.
10431 2018-03-18 Tom Tromey <tom@tromey.com>
10433 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10435 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10437 2018-03-17 Tom Tromey <tom@tromey.com>
10439 * auto-load.c (auto_load_objfile_script_1): Use std::string.
10441 2018-03-17 Tom Tromey <tom@tromey.com>
10443 * target.c (class scoped_target_fd): New.
10444 (target_fileio_close_cleanup): Remove.
10445 (target_fileio_read_alloc_1): Use scoped_target_fd.
10447 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
10449 * silent-rules.mk: New.
10450 * Makefile.in: Include silent-rules.mk
10451 (srcdir, VPATH, top_srcdir): Move up.
10452 (COMPILE): Add ECHO_CXX.
10453 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
10454 (init.c): Add ECHO_INIT_C.
10455 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10456 (version.c): Add ECHO_GEN.
10457 (printcmd.o): Add ECHO_CXX.
10458 (target-float.o): Add ECHO_CXX.
10459 (ada-exp.o): Add ECHO_CXX.
10460 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
10461 (insight$(EXEEXT)): Add ECHO_CXXLD.
10462 * gnulib/configure.ac: Add AM_SILENT_RULES.
10463 * gnulib/aclocal.m4: Re-generate.
10464 * gnulib/configure: Re-generate.
10465 * gnulib/import/Makefile.in: Re-generate.
10467 2018-03-16 Tom Tromey <tom@tromey.com>
10469 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
10470 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
10471 * utils.c (do_free_section_addr_info)
10472 (make_cleanup_free_section_addr_info): Remove.
10473 * symfile.h (struct other_sections): Add constructor.
10474 (struct section_addr_info): Remove.
10475 (section_addr_info): New typedef.
10476 (struct sym_fns) <sym_offsets>: Change type of parameter.
10477 (build_section_addr_info_from_objfile)
10478 (relative_addr_info_to_section_offsets, addr_info_make_relative)
10479 (default_symfile_offsets, symbol_file_add)
10480 (symbol_file_add_from_bfd)
10481 (build_section_addr_info_from_section_table): Update.
10482 (alloc_section_addr_info, free_section_addr_info): Don't declare.
10483 * symfile.c (alloc_section_addr_info): Remove.
10484 (build_section_addr_info_from_section_table): Change return type.
10486 (build_section_addr_info_from_bfd)
10487 (build_section_addr_info_from_objfile): Likewise.
10488 (free_section_addr_info): Remove.
10489 (relative_addr_info_to_section_offsets): Change type of "addrs".
10490 (addrs_section_compar): Now a std::sort comparator.
10491 (addrs_section_sort): Change return type.
10492 (addr_info_make_relative): Change type of "addrs". Update.
10493 (default_symfile_offsets, syms_from_objfile_1)
10494 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
10495 (symbol_file_add_separate): Update.
10496 (symbol_file_add): Change type of "addrs". Update.
10497 (add_symbol_file_command): Update. Remove cleanups.
10498 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
10500 * symfile-debug.c (debug_sym_offsets): Change type of "info".
10501 * solib.c (solib_read_symbols): Update.
10502 * objfiles.c (objfile_relocate): Update. Remove cleanups.
10503 * machoread.c (macho_symfile_offsets): Update.
10504 * jit.c (jit_bfd_try_read_symtab): Update.
10506 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
10508 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10509 unittests/utils-selftests.c.
10510 * unittests/utils-selftests.c: New file.
10512 2018-03-14 Tom Tromey <tom@tromey.com>
10515 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
10518 2018-03-14 Tom Tromey <tom@tromey.com>
10521 * printcmd.c (printf_pointer): Allow "-" in format.
10523 2018-03-14 Tom Tromey <tom@tromey.com>
10525 * printcmd.c (_initialize_printcmd): Add usage to printf.
10527 2018-03-14 Yao Qi <qiyao@sourceware.org>
10529 * MAINTAINERS: Update my email address.
10531 2018-03-13 Tom Tromey <tom@tromey.com>
10533 * machoread.c (macho_check_dsym): Change filenamep to a
10535 (macho_symfile_read): Update.
10536 * symfile.c (load_command): Use std::string.
10538 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
10540 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
10541 to error message string.
10542 (riscv_register_name): Use xsnprintf instead of sprintf.
10543 (riscv_insn::fetch_instruction): Use gdb_assert instead of
10545 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
10547 (riscv_push_dummy_call): Likewise.
10549 2018-03-12 Tom Tromey <tom@tromey.com>
10551 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
10552 Use gdb::byte_vector.
10553 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
10555 2018-03-12 Yao Qi <yao.qi@linaro.org>
10557 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
10558 parameter type to readable_regcache.
10559 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
10562 2018-03-11 Tom Tromey <tom@tromey.com>
10564 * dwarf2read.c (struct nextfield): Add initializers.
10565 (struct nextfnfield): Remove.
10566 (struct fnfieldlist): Add initializers. Remove "length" and
10567 "head", use std::vector.
10568 (struct decl_field_list): Remove.
10569 (struct field_info): Add initializers.
10570 <fields, baseclasses>: Now std::vector.
10571 <nbaseclasses, nfnfields, typedef_field_list_count,
10572 nested_types_list_count>: Remove.
10573 (dwarf2_add_field, dwarf2_add_type_defn)
10574 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
10575 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
10576 (process_structure_scope): Update.
10578 2018-03-11 Tom Tromey <tom@tromey.com>
10580 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
10581 for use by std::sort.
10582 (build_type_psymtabs_1): Use std::vector.
10584 2018-03-09 Eli Zaretskii <eliz@gnu.org>
10586 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
10587 and LIBMPFR in the printed configuration.
10589 2018-03-08 Tom Tromey <tom@tromey.com>
10591 * source.c (get_filename_and_charpos): Use scoped_fd.
10592 * nto-procfs.c (procfs_open_1): Use scoped_fd.
10593 (procfs_pidlist): Likewise.
10594 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
10595 (iterate_over_mappings): Likewise.
10597 2018-03-08 Tom Tromey <tom@tromey.com>
10599 * infcall.c (struct call_return_meta_info)
10600 <stack_temporaries_enabled>: Remove.
10601 (get_call_return_value, call_function_by_hand_dummy): Update.
10602 * thread.c (disable_thread_stack_temporaries): Remove.
10603 (enable_thread_stack_temporaries): Remove.
10604 (thread_stack_temporaries_enabled_p): Return bool.
10605 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
10606 (get_last_thread_stack_temporary): Update.
10607 * eval.c (evaluate_subexp): Update.
10608 * gdbthread.h (class enable_thread_stack_temporaries): Now a
10609 class, not a function.
10610 (value_ptr, value_vec): Remove typedefs.
10611 (class thread_info) <stack_temporaries_enabled>: Now bool.
10612 <stack_temporaries>: Now a std::vector.
10613 (thread_stack_temporaries_enabled_p)
10614 (value_in_thread_stack_temporaries): Return bool.
10616 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
10618 * remote.c (putpkt_binary): Fix omitted bytes reporting.
10619 (getpkt_or_notif_sane_1): Likewise.
10621 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10623 * build-id.c (build_id_to_debug_bfd): Use std::string.
10625 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10627 * build-id.c (find_separate_debug_file_by_buildid): Return
10629 * build-id.h (find_separate_debug_file_by_buildid): Return
10631 * coffread.c (coff_symfile_read): Adjust to std::string.
10632 * elfread.c (elf_symfile_read): Adjust to std::string.
10633 * symfile.c (separate_debug_file_exists): Change parameter to
10635 (find_separate_debug_file): Return std::string.
10636 (find_separate_debug_file_by_debuglink): Return std::string.
10637 * symfile.h (find_separate_debug_file_by_debuglink): Return
10640 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10642 * common/xml-utils.c (xml_escape_text): Move code to...
10643 (xml_escape_text_append): ... this new function.
10644 * common/xml-utils.h (xml_escape_text_append): New declaration.
10645 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
10647 (_initialize_xml_utils): register test_xml_escape_text_append as
10650 2018-03-07 Alan Hayward <alan.hayward@arm.com>
10652 * defs.h: Remove MAX_REGISTER_SIZE.
10653 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
10655 * python/py-unwind.c (pyuw_sniffer): Likewise.
10657 2018-03-07 Tom Tromey <tom@tromey.com>
10659 * linux-tdep.c (linux_info_proc): Update.
10660 * target.h (struct target_ops) <to_fileio_readlink>: Return
10662 (target_fileio_readlink): Return optional<string>.
10663 * remote.c (remote_hostio_readlink): Return optional<string>.
10664 * inf-child.c (inf_child_fileio_readlink): Return
10666 * target.c (target_fileio_readlink): Return optional<string>.
10668 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10670 * regcache.c (cooked_read_test): Add riscv to the list of
10671 architectures that have a save_reggroup.
10673 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
10675 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
10676 value is not a dynamic class object.
10678 2018-03-06 Tom Tromey <tom@tromey.com>
10680 * rust-exp.y: Formatting fixes.
10682 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10684 * riscv-tdep.c (riscv_register_name): Remove target description
10686 (riscv_gdbarch_init): Remove target description check.
10688 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10690 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
10692 * riscv-tdep.h: Likewise.
10694 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10696 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
10697 (riscv_pseudo_register_write): Delete.
10698 (riscv_gdbarch_init): Remove all use of pseudo registers.
10700 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10702 * record-btrace.c (btrace_print_lines): Replace cleanup
10703 parameter with RAII equivalents.
10704 (btrace_insn_history): Replace cleanup with RAII equivalents.
10705 * ui-out.h (make_cleanup_ui_out_list_begin_end,
10706 make_cleanup_ui_out_tuple_begin_end): Remove.
10707 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
10708 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
10709 make_cleanup_ui_out_list_begin_end): Remove.
10711 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10713 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
10714 parameter types to std::vector. Use bool.
10715 (record_btrace_wait): Replace VEC(tp_t) with
10716 std::vector<thread_info *>.
10717 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
10719 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10721 * record-btrace.c (record_btrace_disable_callback): Remove.
10722 (struct scoped_btrace_disable): New.
10723 (record_btrace_open): Use scoped_btrace_disable.
10725 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10727 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
10728 reading values from registers.
10730 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10732 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
10735 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10737 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
10738 change parameter type. Use GDB's print functions, and use
10739 core_addr_to_string where appropriate.
10740 (riscv_push_dummy_call): Use core_addr_to_string where
10741 appropriate, update call to riscv_print_arg_location, and reindent
10743 (riscv_return_value): Update call to riscv_print_arg_location.
10745 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10746 Tim Newsome <tim@sifive.com>
10747 Albert Ou <a0u@eecs.berkeley.edu>
10748 Darius Rad <darius@bluespec.com>
10750 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
10751 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
10752 (ALLDEPFILES): Add riscv-tdep.c
10753 * configure.tgt: Add riscv support.
10754 * riscv-tdep.c: New file.
10755 * riscv-tdep.h: New file.
10756 * NEWS: Mention new target.
10757 * MAINTAINERS: Add entry for riscv.
10759 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10761 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
10762 fields within aggregates.
10764 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
10766 * record-btrace.c (btrace_print_lines): Change type of flags to
10767 gdb_disassembly_flags.
10769 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10771 * fbsd-nat.c: Include "inf-ptrace.h".
10772 (USE_SIGTRAP_SIGINFO): Conditionally define.
10773 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
10774 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
10775 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
10777 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
10779 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
10781 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
10782 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
10783 "supports_stopped_by_hw_breakpoint" target methods.
10785 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10787 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
10788 * fbsd-nat.c (debug_fbsd_nat): New variable.
10789 (show_fbsd_nat_debug): New function.
10790 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
10791 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
10793 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10795 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
10796 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
10798 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
10799 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
10802 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10804 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
10805 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
10807 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10809 * charset.c (struct charset_vector): New.
10810 (charsets): Change type to charset_vector.
10811 (find_charset_names): Adjust.
10813 (_initialize_charset): Adjust.
10815 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10817 * progspace.h (struct program_space) <deleted_solibs>: Change
10818 type to std::vector<std::string>.
10819 * progspace.c (clear_program_space_solib_cache): Adjust.
10820 * breakpoint.c (print_solib_event): Adjust.
10821 (check_status_catch_solib): Adjust.
10822 * solib.c (update_solib_list): Adjust.
10823 * ui-out.h (class ui_out) <field_string>: New overload.
10824 * ui-out.c (ui_out::field_string): New overload.
10826 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10828 * progspace.h (struct program_space): Add constructor and
10829 destructor, initialize fields.
10830 (add_program_space): Remove.
10831 * progspace.c (add_program_space): Rename to...
10832 (program_space::program_space): ... this.
10833 (release_program_space): Rename to...
10834 (program_space::~program_space): ... this.
10835 (delete_program_space): Use delete to delete program_space.
10836 (initialize_progspace): Use new to allocate program_space.
10837 * inferior.c (add_inferior_with_spaces): Likewise.
10838 (clone_inferior_command): Likewise.
10839 * infrun.c (follow_fork_inferior): Likewise.
10840 (handle_vfork_child_exec_or_exit): Likewise.
10842 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10844 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
10845 (delim_string_to_char_ptr_vec): Return std::vector of
10846 gdb::unique_xmalloc_ptr.
10847 (dirnames_to_char_ptr_vec_append): Take std::vector of
10848 gdb::unique_xmalloc_ptr.
10849 (dirnames_to_char_ptr_vec): Return std::vector of
10850 gdb::unique_xmalloc_ptr.
10851 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
10852 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
10853 (delim_string_to_char_ptr_vec): Return an std::vector of
10854 gdb::unique_xmalloc_ptr, adjust the code.
10855 (dirnames_to_char_ptr_vec_append): Take an std::vector of
10856 gdb::unique_xmalloc_ptr, adjust the code.
10857 (dirnames_to_char_ptr_vec): Return an std::vector of
10858 gdb::unique_xmalloc_ptr, adjust the code.
10859 * auto-load.c (auto_load_safe_path_vec): Change type to
10860 std::vector of gdb::unique_xmalloc_ptr.
10861 (auto_load_expand_dir_vars): Return an std::vector of
10862 gdb::unique_xmalloc_ptr, adjust the code.
10863 (auto_load_safe_path_vec_update): Adjust.
10864 (filename_is_in_auto_load_safe_path_vec): Adjust.
10865 (auto_load_objfile_script_1): Adjust.
10866 * build-id.c (build_id_to_debug_bfd): Adjust.
10867 * linux-thread-db.c (thread_db_load_search): Adjust.
10868 * source.c (add_path): Adjust.
10870 * symfile.c (find_separate_debug_file): Adjust.
10871 * utils.c (do_free_char_ptr_vec): Remove.
10872 (make_cleanup_free_char_ptr_vec): Remove.
10874 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
10877 * common/pathstuff.c: Conditionally include "<windows.h>".
10879 2018-03-01 Georg Sauthoff <mail@georg.so>
10882 * gcore.in: Quote variables and switch interpreter to bash.
10884 2018-03-01 Tom Tromey <tom@tromey.com>
10886 * dwarf2read.c (alloc_discriminant_info): Fix default_index
10887 assertion. Add assertion for discriminant_index.
10888 (quirk_rust_enum): Use correct base type name in univariant case.
10890 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
10892 * record.c (get_call_history_modifiers): Return a
10893 record_print_flags.
10894 (cmd_record_call_history): Adjust.
10895 * record-btrace.c (record_btrace_call_history): Adjust.
10896 (record_btrace_call_history_range): Adjust.
10897 (record_btrace_call_history_from): Adjust.
10898 * target-debug.h (target_debug_print_record_print_flags): New.
10899 * target-delegates.c: Re-generate.
10900 * target.c (target_call_history): Change flags type.
10901 (target_call_history_from): Likewise.
10902 (target_call_history_range): Likewise.
10903 * target.h (struct target_ops) <target_call_history>: Likewise.
10904 (target_call_history_from): Likewise.
10905 (target_call_history_range): Likewise.
10907 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10908 Simon Marchi <simon.marchi@polymtl.ca>
10910 * common/common-utils.c: Include "sys/stat.h".
10911 (is_regular_file): Move here from "source.c"; change return
10913 * common/common-utils.h (is_regular_file): New prototype.
10914 * common/pathstuff.c (contains_dir_separator): New function.
10915 * common/pathstuff.h (contains_dir_separator): New prototype.
10916 * source.c: Don't include "sys/stat.h".
10917 (is_regular_file): Move to "common/common-utils.c".
10919 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10921 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
10922 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
10923 * auto-load.c: Include "common/pathstuff.h".
10924 * common/common-def.h (current_directory): Move here.
10925 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
10927 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
10929 * common/pathstuff.c: New file.
10930 * common/pathstuff.h: New file.
10931 * compile/compile.c: Include "common/pathstuff.h".
10932 * defs.h (current_directory): Move to "common/common-defs.h".
10933 * dwarf2read.c: Include "common/pathstuff.h".
10934 * exec.c: Likewise.
10935 * guile/scm-safe-call.c: Likewise.
10936 * linux-thread-db.c: Likewise.
10937 * main.c: Likewise.
10938 * nto-tdep.c: Likewise.
10939 * objfiles.c: Likewise.
10940 * source.c: Likewise.
10941 * symtab.c: Likewise.
10942 * utils.c: Include "common/pathstuff.h".
10943 (gdb_realpath): Move to "common/pathstuff.c".
10944 (gdb_realpath_keepfile): Likewise.
10945 (gdb_abspath): Likewise.
10946 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
10947 (gdb_realpath_keepfile): Likewise.
10948 (gdb_abspath): Likewise.
10950 2018-02-28 John Baldwin <jhb@FreeBSD.org>
10952 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
10953 wildcard process pid for super_resume for kernels with a
10956 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
10958 * compile/compile.c (get_args): Add additional comments
10959 explaining function.
10961 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
10962 Tom Tromey <tom@tromey.com>
10964 * target.h (memory_write_request_s): Remove typedef. Don't define
10966 (target_write_memory_blocks): Change argument to std::vector.
10967 (struct memory_write_request): Add constructor.
10968 * target-memory.c (compare_block_starting_address): Return bool.
10969 Change argument types.
10970 (claim_memory): Change arguments to use std::vector.
10971 (split_regular_and_flash_blocks, blocks_to_erase)
10972 (compute_garbled_blocks): Likewise.
10973 (cleanup_request_data, cleanup_write_requests_vector): Remove.
10974 (target_write_memory_blocks): Change argument to std::vector.
10975 * symfile.c (struct load_section_data): Add constructor and
10976 destructor. Use std::vector for "requests".
10977 (struct load_progress_data): Add initializers.
10978 (load_section_callback): Update. Use "new".
10979 (clear_memory_write_data): Remove.
10980 (generic_load): Update.
10982 2018-02-27 Alan Hayward <alan.hayward@arm.com>
10984 * arch/aarch64.h: Use common/tdesc.h.
10986 2018-02-26 Maciej W. Rozycki <macro@mips.com>
10988 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
10989 architecture with a 64-bit ABI.
10991 2018-02-26 Maciej W. Rozycki <macro@mips.com>
10993 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
10994 ahead of target description loading.
10996 2018-02-26 Tom Tromey <tom@tromey.com>
10998 * stack.c (backtrace_command_1): Update.
10999 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11001 * python/py-framefilter.c (py_print_frame)
11002 (gdbpy_apply_frame_filter): Change type of "flags".
11003 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11005 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11006 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11007 * extension.h (enum frame_filter_flag): Rename from
11008 frame_filter_flags.
11009 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11010 (apply_ext_lang_frame_filter): Change type of "flags".
11011 * extension.c (apply_ext_lang_frame_filter): Change type of
11013 * extension-priv.h (struct extension_language_ops)
11014 <apply_frame_filter>: Change type of "flags".
11016 2018-02-26 Tom Tromey <tom@tromey.com>
11019 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11020 off-by-one in py_end computation.
11021 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11023 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11026 2018-02-26 Tom Tromey <tom@tromey.com>
11028 * dwarf2read.c (struct variant_field): New.
11029 (struct nextfield) <variant>: New field.
11030 (dwarf2_add_field): Handle DW_TAG_variant_part.
11031 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11032 discriminated union.
11033 (read_structure_type): Handle DW_TAG_variant_part.
11034 (handle_struct_member_die): New function, extracted from
11035 process_structure_scope. Handle DW_TAG_variant.
11036 (process_structure_scope): Handle discriminated unions. Call
11037 handle_struct_member_die.
11039 2018-02-26 Tom Tromey <tom@tromey.com>
11041 * rust-lang.h (rust_last_path_segment): Declare.
11042 * rust-lang.c (rust_last_path_segment): Now public. Change
11044 (struct disr_info): Remove.
11045 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11046 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11047 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11048 (rust_enum_p, rust_enum_variant): New function.
11049 (rust_underscore_fields): Remove "offset" parameter.
11050 (rust_print_enum): New function.
11051 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11052 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11053 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11055 (rust_internal_print_type): New function, from rust_print_type.
11057 (rust_print_type): Call rust_internal_print_type.
11058 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11059 Update enum handling.
11060 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11061 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11062 (rust_union_quirks): New functions.
11063 (process_full_comp_unit, process_full_type_unit): Call
11065 (process_structure_scope): Update rust_unions if necessary.
11067 2018-02-26 Tom Tromey <tom@tromey.com>
11069 * value.h (value_union_variant): Declare.
11070 * valops.c (value_union_variant): New function.
11071 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11072 (struct discriminant_info): New.
11073 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11075 (struct main_type) <flag_discriminated_union>: New field.
11077 2018-02-26 Tom Tromey <tom@tromey.com>
11079 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11080 unittests/unpack-selftests.c.
11081 * unittests/unpack-selftests.c: New file.
11082 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11084 2018-02-26 Yao Qi <yao.qi@linaro.org>
11086 * dwarf2read.c (struct partial_die_info) <read>: New method.
11087 (read_partial_die): Remove the declaration.
11088 (load_partial_dies): Update.
11089 (partial_die_info::partial_die_info):
11090 (read_partial_die): Change it to partial_die_info::read.
11092 2018-02-26 Yao Qi <yao.qi@linaro.org>
11094 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11095 (fixup_partial_die): Remove declaration.
11096 (scan_partial_symbols): Update.
11097 (partial_die_parent_scope): Likewise.
11098 (partial_die_full_name): Likewise.
11099 (fixup_partial_die): Change it to partial_die_info::fixup.
11101 2018-02-26 Yao Qi <yao.qi@linaro.org>
11103 * dwarf2read.c (read_partial_die): Update the declaration.
11104 (load_partial_dies): Caller update.
11105 (read_partial_die): Remove one argument abbrev_len.
11107 2018-02-26 Yao Qi <yao.qi@linaro.org>
11109 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11110 assignment operator.
11111 (load_partial_dies): Use ctor and copy ctor.
11112 (read_partial_die): Update.
11113 (dwarf2_cu::find_partial_die): Use ctor.
11115 2018-02-26 Yao Qi <yao.qi@linaro.org>
11117 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11118 (find_partial_die_in_comp_unit): Change it to
11119 dwarf2_cu::find_partial_die.
11120 (find_partial_die): Update.
11122 2018-02-26 Yao Qi <yao.qi@linaro.org>
11124 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11127 2018-02-26 Yao Qi <yao.qi@linaro.org>
11129 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11131 2018-02-26 Alan Hayward <alan.hayward@arm.com>
11133 * arch/amd64.h: Use common/tdesc.h.
11134 * arch/i386.c: Likewise.
11135 * arch/i386.h: Likewise.
11136 * arch/tic6x.c: Likewise.
11137 * arch/tdesc.h: Move file from here...
11138 * common/tdesc.h: ...to here.
11139 * features/aarch64-core.c: Regenerate.
11140 * features/aarch64-fpu.c: Regenerate.
11141 * features/i386/32bit-avx.c: Regenerate.
11142 * features/i386/32bit-avx512.c: Regenerate.
11143 * features/i386/32bit-core.c: Regenerate.
11144 * features/i386/32bit-linux.c: Regenerate.
11145 * features/i386/32bit-mpx.c: Regenerate.
11146 * features/i386/32bit-pkeys.c: Regenerate.
11147 * features/i386/32bit-sse.c: Regenerate.
11148 * features/i386/64bit-avx.c: Regenerate.
11149 * features/i386/64bit-avx512.c: Regenerate.
11150 * features/i386/64bit-core.c: Regenerate.
11151 * features/i386/64bit-linux.c: Regenerate.
11152 * features/i386/64bit-mpx.c: Regenerate.
11153 * features/i386/64bit-pkeys.c: Regenerate.
11154 * features/i386/64bit-segments.c: Regenerate.
11155 * features/i386/64bit-sse.c: Regenerate.
11156 * features/i386/x32-core.c: Regenerate.
11157 * features/tic6x-c6xp.c: Regenerate.
11158 * features/tic6x-core.c: Regenerate.
11159 * features/tic6x-gp.c: Regenerate.
11160 * target-descriptions.c: Use common/tdesc.h.
11161 * target-descriptions.h: Likewise.
11163 2018-02-24 Tom Tromey <tom@tromey.com>
11165 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11166 (try_thread_db_load_from_dir, thread_db_load_search): Use
11168 (info_auto_load_libthread_db_compare): Return bool. Change
11170 (info_auto_load_libthread_db): Use std::vector, std::string.
11173 2018-02-24 Tom Tromey <tom@tromey.com>
11175 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11177 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11179 * gdbarch.c: Rebuild.
11180 * gdbarch.h: Rebuild.
11181 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11182 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11183 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11186 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11188 * gdbtypes.h (sect_offset): Change type to uint64_t.
11189 (sect_offset_str): New function.
11190 * dwarf2read.c (create_addrmap_from_aranges): Use
11192 (error_check_comp_unit_head): Likewise.
11193 (create_debug_type_hash_table): Likewise.
11194 (read_cutu_die_from_dwo): Likewise.
11195 (init_cutu_and_read_dies): Likewise.
11196 (init_cutu_and_read_dies_no_follow): Likewise.
11197 (process_psymtab_comp_unit_reader): Likewise.
11198 (partial_die_parent_scope): Likewise.
11199 (peek_die_abbrev): Likewise.
11200 (process_queue): Likewise.
11201 (dwarf2_physname): Likewise.
11202 (read_namespace_alias): Likewise.
11203 (read_import_statement): Likewise.
11204 (create_dwo_cu_reader): Likewise.
11205 (create_cus_hash_table): Likewise.
11206 (lookup_dwo_cutu): Likewise.
11207 (inherit_abstract_dies): Likewise.
11208 (read_func_scope): Likewise.
11209 (read_call_site_scope): Likewise.
11210 (dwarf2_add_member_fn): Likewise.
11211 (read_common_block): Likewise.
11212 (read_module_type): Likewise.
11213 (read_typedef): Likewise.
11214 (read_subrange_type): Likewise.
11215 (load_partial_dies): Likewise.
11216 (read_partial_die): Likewise.
11217 (find_partial_die): Likewise.
11218 (read_str_index): Likewise.
11219 (dwarf2_string_attr): Likewise.
11220 (build_error_marker_type): Likewise.
11221 (lookup_die_type): Likewise.
11222 (dump_die_shallow): Likewise.
11223 (follow_die_ref): Likewise.
11224 (dwarf2_fetch_die_loc_sect_off): Likewise.
11225 (dwarf2_fetch_constant_bytes): Likewise.
11226 (follow_die_sig): Likewise.
11227 (get_signatured_type): Likewise.
11228 (get_DW_AT_signature_type): Likewise.
11229 (dwarf2_find_containing_comp_unit): Likewise.
11230 (set_die_type): Likewise.
11232 2018-02-21 John Baldwin <jhb@FreeBSD.org>
11234 * arch/aarch64.c: Include "common-defs.h".
11235 * arch/amd64.c: Likewise.
11236 * arch/i386.c: Likewise.
11238 2018-02-21 Tom Tromey <tom@tromey.com>
11240 * value.h: (extract_field_op): Update.
11241 * eval.c (extract_field_op): Return a const char *.
11242 * expression.h (parse_expression_for_completion): Update.
11243 * completer.c (complete_expression): Update.
11244 (add_struct_fields): Make fieldname const.
11245 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11246 (mark_completion_tag, parse_exp_in_context_1): Update.
11247 (parse_expression_for_completion): Change "name" to
11248 unique_xmalloc_ptr*.
11250 2018-02-21 Tom Tromey <tom@tromey.com>
11252 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11254 2018-02-21 Yao Qi <yao.qi@linaro.org>
11256 * avr-tdep.c (avr_read_pc): Change parameter type to
11258 * gdbarch.sh (read_pc): Likewise.
11259 * gdbarch.c: Re-generated.
11260 * gdbarch.h: Re-generated.
11261 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11263 * ia64-tdep.c (ia64_read_pc): Likewise.
11264 * mips-tdep.c (mips_read_pc): Likewise.
11265 * spu-tdep.c (spu_read_pc): Likewise.
11267 2018-02-21 Yao Qi <yao.qi@linaro.org>
11269 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11270 * regcache-dump.c: New file.
11271 * regcache.c: Move register_dump to regcache-dump.c.
11272 (maintenance_print_registers): Likewise.
11273 (maintenance_print_raw_registers): Likewise.
11274 (maintenance_print_cooked_registers): Likewise.
11275 (maintenance_print_register_groups): Likewise.
11276 (maintenance_print_remote_registers): Likewise.
11277 (_initialize_regcache): Likewise.
11278 * regcache.h (register_dump): Moved from regcache.c.
11280 2018-02-21 Yao Qi <yao.qi@linaro.org>
11282 * regcache.c (regcache::regcache): Update.
11283 (regcache::invalidate): Move it to detached_regcache::invalidate.
11284 (get_thread_arch_aspace_regcache): Update.
11285 (regcache::raw_update): Update.
11286 (regcache::cooked_read): Remove some code.
11287 (regcache::cooked_read_value): Likewise.
11288 (regcache::raw_write): Remove assert on m_readonly_p.
11289 (regcache::raw_supply_integer): Move it to
11290 detached_regcache::raw_supply_integer.
11291 (regcache::raw_supply_zeroed): Likewise.
11292 * regcache.h (detached_regcache) <raw_supply_integer>: New
11294 <raw_supply_zeroed, invalidate>: Likewise.
11295 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11296 <invalidate>: Likewise.
11297 <m_readonly_p>: Removed.
11299 2018-02-21 Yao Qi <yao.qi@linaro.org>
11301 * infcmd.c (get_return_value): Let stop_regs point to
11302 get_current_regcache.
11303 * regcache.c (regcache::regcache): Remove.
11304 (register_dump_reg_buffer): New class.
11305 (regcache_print): Adjust.
11306 * regcache.h (regcache): Remove constructors.
11308 2018-02-21 Yao Qi <yao.qi@linaro.org>
11310 * regcache.c (class register_dump): New class.
11311 (register_dump_regcache, register_dump_none): New class.
11312 (register_dump_remote, register_dump_groups): New class.
11313 (regcache_print): Update.
11314 * regcache.h (regcache_dump_what): Move it to regcache.c.
11315 (regcache) <dump>: Remove.
11317 2018-02-21 Yao Qi <yao.qi@linaro.org>
11319 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11321 (jit_unwind_reg_set_impl): Call raw_supply.
11322 (jit_frame_sniffer): Use reg_buffer_rw.
11323 * record-full.c (record_full_core_regbuf): Change its type.
11324 (record_full_core_open_1): Use reg_buffer_rw.
11325 (record_full_close): Likewise.
11326 (record_full_core_fetch_registers): Use regcache->raw_supply.
11327 (record_full_core_store_registers): Likewise.
11328 * regcache.c (regcache::get_register_status): Move it to
11330 (regcache_raw_set_cached_value): Remove.
11331 (regcache::raw_set_cached_value): Remove.
11332 (regcache::raw_write): Call raw_supply.
11333 (regcache::raw_supply): Move it to reg_buffer_rw.
11334 * regcache.h (regcache_raw_set_cached_value): Remove.
11335 (reg_buffer_rw): New class.
11337 2018-02-21 Yao Qi <yao.qi@linaro.org>
11339 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11340 readonly_detached_regcache.
11341 (dummy_frame_prev_register): Use regcache->cooked_read.
11342 * frame.c (frame_save_as_regcache): Change return type.
11343 (frame_pop): Update.
11344 * frame.h (frame_save_as_regcache): Update declaration.
11345 * inferior.h (get_infcall_suspend_state_regcache): Update
11347 * infrun.c (infcall_suspend_state) <registers>: use
11348 readonly_detached_regcache.
11349 (save_infcall_suspend_state): Don't use regcache_dup.
11350 (get_infcall_suspend_state_regcache): Change return type.
11351 * linux-fork.c (struct fork_info) <savedregs>: Change to
11352 readonly_detached_regcache.
11354 (fork_save_infrun_state): Don't use regcache_dup.
11355 (info_checkpoints_command): Adjust.
11356 * mi/mi-main.c (register_changed_p): Update declaration.
11357 (mi_cmd_data_list_changed_registers): Use
11358 readonly_detached_regcache.
11359 (register_changed_p): Change parameter type to
11360 readonly_detached_regcache.
11361 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11362 readonly_detached_regcache.
11363 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11364 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11366 (regcache::save): Move it to reg_buffer.
11367 (regcache::restore): Change parameter type.
11368 (regcache_dup): Remove.
11369 * regcache.h (reg_buffer) <save>: New method.
11370 (readonly_detached_regcache): New class.
11371 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11372 readonly_detached_regcache.
11373 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11375 2018-02-21 Yao Qi <yao.qi@linaro.org>
11377 * frame.c (frame_save_as_regcache): Use regcache method save.
11378 (frame_pop): Use regcache method restore.
11379 * infrun.c (restore_infcall_suspend_state): Likewise.
11380 * linux-fork.c (fork_load_infrun_state): Likewise.
11381 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11383 * regcache.c (regcache_save): Remove.
11384 (regcache::restore): More asserts.
11385 (regcache_cpy): Remove.
11386 * regcache.h (regcache_save): Remove the declaration.
11387 (regcache::restore): Move from private to public.
11388 Remove the friend declaration of regcache_cpy.
11389 (regcache_cpy): Remove declaration.
11391 2018-02-21 Yao Qi <yao.qi@linaro.org>
11393 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11394 parameter type to 'readable_regcache *'.
11395 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11396 * arm-tdep.c (arm_neon_quad_read): Likewise.
11397 (arm_pseudo_read): Likewise.
11398 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11399 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11400 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11401 * gdbarch.c: Re-generated.
11402 * gdbarch.h: Re-generated.
11403 * gdbarch.sh (pseudo_register_read): Change parameter type to
11404 'readable_regcache *'.
11405 (pseudo_register_read_value): Likewise.
11406 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11407 (h8300_pseudo_register_read): Likewise.
11408 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11409 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11410 (i386_pseudo_register_read_into_value): Likewise.
11411 (i386_pseudo_register_read_value): Likewise.
11412 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11414 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11415 * m32c-tdep.c (m32c_raw_read): Likewise.
11416 (m32c_read_flg): Likewise.
11417 (m32c_banked_register): Likewise.
11418 (m32c_banked_read): Likewise.
11419 (m32c_sb_read): Likewise.
11420 (m32c_part_read): Likewise.
11421 (m32c_cat_read): Likewise.
11422 (m32c_r3r2r1r0_read): Likewise.
11423 (m32c_pseudo_register_read): Likewise.
11424 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11425 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11426 (mep_pseudo_cr64_read): Likewise.
11427 (mep_pseudo_register_read): Likewise.
11428 * mips-tdep.c (mips_pseudo_register_read): Likewise.
11429 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11430 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11431 * regcache.c (regcache::raw_read): Move it to readable_regcache.
11432 (regcache::cooked_read): Likewise.
11433 (regcache::cooked_read_value): Likewise.
11434 (regcache_cooked_read_signed):
11435 (regcache::cooked_read): Likewise.
11436 * regcache.h (readable_regcache): New class.
11437 (regcache): Inherit readable_regcache. Move some methods to
11439 * rl78-tdep.c (rl78_pseudo_register_read): Change
11440 parameter type to 'readable_regcache *'.
11441 * rs6000-tdep.c (do_regcache_raw_read): Remove.
11442 (e500_pseudo_register_read): Change parameter type to
11443 'readable_regcache *'.
11444 (dfp_pseudo_register_read): Likewise.
11445 (vsx_pseudo_register_read): Likewise.
11446 (efpr_pseudo_register_read): Likewise.
11447 * s390-tdep.c (s390_pseudo_register_read): Likewise.
11448 * sh-tdep.c (sh_pseudo_register_read): Likewise.
11449 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
11450 (sh64_pseudo_register_read): Likewise.
11451 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11452 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11453 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11454 (spu_pseudo_register_read): Likewise.
11455 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11456 (xtensa_pseudo_register_read): Likewise.
11458 2018-02-21 Yao Qi <yao.qi@linaro.org>
11460 * regcache.c (regcache::regcache): Call reg_buffer ctor.
11461 (regcache::arch): Move it to reg_buffer::arch.
11462 (regcache::register_buffer): Likewise.
11463 (regcache::assert_regnum): Likewise.
11464 (regcache::num_raw_registers): Likewise.
11465 * regcache.h (reg_buffer): New class.
11466 (regcache): Inherit reg_buffer.
11468 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
11470 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
11471 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
11473 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
11475 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
11477 2018-02-19 Alan Hayward <alan.hayward@arm.com>
11479 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
11480 (SFILES): Remove common/*.c files.
11481 (COMMON_OBS): Remove some *.o files built from common/*.c files.
11482 * common/common.host: Add common reference.
11483 * configure.ac: Likewise.
11484 * configure: Regenerate.
11486 2018-02-16 Yao Qi <yao.qi@linaro.org>
11488 * block.c (block_namespace_info): Inherit allocate_on_obstack.
11489 (block_initialize_namespace): Use new.
11490 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
11491 (dwarf2_free_objfile): Use delete.
11492 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11493 (copy_type_recursive): Use new.
11494 * gdb_obstack.h (allocate_on_obstack): New.
11496 2018-02-15 Yao Qi <yao.qi@linaro.org>
11499 * inferior.c (exit_inferior_1): Reset inf->control.
11501 2018-02-15 Joel Brobecker <brobecker@adacore.com>
11503 * ada-lang.c (ada_to_fixed_value_create): Delete advance
11506 2018-02-14 Pedro Alves <palves@redhat.com>
11508 * frame-unwind.c (frame_unwind_try_unwinder): Always call
11509 frame_cleanup_after_sniffer on exception.
11511 2018-02-14 Tom Tromey <tom@tromey.com>
11513 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
11515 (solib_bfd_open): Make pathname const.
11516 * solib.c (solib_bfd_open): Make pathname const.
11517 * solib-spu.c (spu_bfd_fopen): Make name const.
11518 (spu_bfd_open): Make pathname const.
11519 * solib-darwin.c (darwin_bfd_open): Make pathname const.
11520 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
11522 2018-02-14 Tom Tromey <tom@tromey.com>
11524 * symfile.c (symfile_bfd_open): Update.
11525 * source.h (openp, source_full_path_of, find_and_open_source):
11526 Change argument type to unique_xmalloc_ptr.
11527 * source.c (openp): Take a unique_xmalloc_ptr.
11528 (source_full_path_of, find_and_open_source): Likewise.
11529 (open_source_file, symtab_to_fullname): Update.
11530 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
11531 unique_xmalloc_ptr.
11532 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
11533 (exec_file_find): Update.
11534 * psymtab.c (psymtab_to_fullname): Update.
11535 * nto-tdep.h (nto_find_and_open_solib): Update.
11536 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
11537 unique_xmalloc_ptr.
11538 * exec.c (exec_file_attach): Update.
11539 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
11540 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
11542 2018-02-14 Tom Tromey <tom@tromey.com>
11544 * solib.c: Include source.h.
11545 * nto-tdep.c: Include source.h.
11546 * mi/mi-cmd-env.c: Include source.h.
11547 * infcmd.c: Include source.h.
11548 * exec.c: Include source.h.
11549 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
11550 (add_path, directory_switch, source_path, init_source_path): Move
11552 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
11553 (add_path, directory_switch, source_path, init_source_path):
11556 2018-02-14 Tom Tromey <tom@tromey.com>
11558 * solist.h (exec_file_find, solib_find): Return
11559 unique_xmalloc_ptr.
11560 (solib_bfd_fopen): Take a const char *.
11561 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
11562 (exec_file_find, solib_find): Likewise.
11563 (solib_bfd_fopen): Do not take ownership of "pathname".
11564 (solib_bfd_open): Use unique_xmalloc_ptr.
11565 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
11566 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
11567 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
11568 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
11570 2018-02-14 Joel Brobecker <brobecker@adacore.com>
11572 * ada-lang.c (name_match_type_from_name): Remove reference to
11573 ada_name_for_lookup in function's documentation.
11574 * ada-lang.h (ada_name_for_lookup): Delete declaration.
11576 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11578 * defs.h (enum openp_flags): New enum.
11579 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
11580 Move to enum openp_flags.
11581 (openp_flags): New enum flags.
11582 (openp): Change parameter type to openp_flags.
11583 * source.c (openp): Change parameter type to openp_flags.
11584 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
11585 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
11587 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11589 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
11592 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
11594 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
11596 (class dwarf2_queue_guard): ...the destructor of this new class.
11597 (dw2_do_instantiate_symtab): Create instance of the new class
11598 dwarf2_queue_guard, remove cleanup.
11600 2018-02-09 Tom Tromey <tom@tromey.com>
11602 * source.c (find_source_lines): Don't reference past the end of
11605 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11607 * remote.c (remote_btrace_maybe_reopen): Change error message.
11608 * btrace.c (btrace_enable): Likewise.
11609 (parse_xml_btrace): Likewise.
11610 (parse_xml_btrace_conf): Likewise.
11612 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11614 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
11615 (linux_enable_pt, linux_enable_bts): Call
11616 diagnose_perf_event_open_fail.
11618 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11620 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
11621 Remove parameter and change return type. Update callers. Move it.
11622 (linux_enable_bts, linux_enable_pt): Improve error message.
11623 (linux_enable_pt): Remove zero buffer size check.
11624 (linux_enable_btrace): Improve error messages. Remove NULL return
11627 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11629 * btrace.c (btrace_enable): Remove target_supports_btrace call.
11630 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
11631 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
11632 (linux_supports_pt, linux_supports_btrace): Remove.
11633 (linux_enable_bts): Call cpu_supports_bts.
11634 * nat/linux-btrace.h (linux_supports_btrace): Remove.
11635 * remote.c (remote_supports_btrace): Remove.
11636 (init_remote_ops): Remove remote_supports_btrace.
11637 * target-delegates.c: Regenerated.
11638 * target.c (target_supports_btrace): Remove.
11639 * target.h (target_ops) <to_supports_btrace>: Remove
11640 (target_supports_btrace): Remove.
11641 * x86-linux-nat.c (x86_linux_create_target): Remove
11642 linux_supports_btrace.
11644 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11646 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
11648 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
11649 exception and use message in own exception.
11651 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11653 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
11654 (perf_event_pt_event_type): Use gdb_file_up.
11655 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
11656 scoped_fd, and scoped_mmap.
11658 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11660 * common/scoped_mmap.h: New.
11661 * unittests/scoped_mmap-selftest.c: New.
11662 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11663 unittests/scoped_mmap-selftest.c.
11665 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11667 * common/scoped_fd.h: New.
11668 * unittests/scoped_fd-selftest.c: New.
11669 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11670 unittests/scoped_fd-selftest.c.
11672 2018-02-09 Tom Tromey <tom@tromey.com>
11674 * auto-load.c (auto_load_section_scripts): Use
11675 gdb::unique_xmalloc_ptr.
11677 2018-02-09 Tom Tromey <tom@tromey.com>
11679 * auto-load.c (execute_script_contents): Use std::string.
11681 2018-02-09 Joel Brobecker <brobecker@adacore.com>
11683 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
11684 Python function, rather than a new command.
11686 2018-02-08 Tom Tromey <tom@tromey.com>
11688 * solib.c (solib_find_1): Use std::string.
11689 (solib_bfd_fopen): Use unique_xmalloc_ptr.
11691 2018-02-08 Tom Tromey <tom@tromey.com>
11693 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
11695 2018-02-08 Tom Tromey <tom@tromey.com>
11697 * source.c (find_source_lines): Use gdb::def_vector.
11699 2018-02-08 Tom Tromey <tom@tromey.com>
11701 * macrocmd.c (struct temporary_macro_definition): New.
11702 (macro_define_command): Use temporary_macro_definition. Remove
11704 (free_macro_definition_ptr): Remove.
11706 2018-02-08 Tom Tromey <tom@tromey.com>
11708 * macroexp.c (maybe_expand): Use std::string.
11710 2018-02-08 Tom Tromey <tom@tromey.com>
11712 * macroexp.c (struct macro_buffer): Add initializers for some
11714 (init_buffer, init_shared_buffer, free_buffer)
11715 (free_buffer_return_text): Remove.
11716 (macro_buffer): New constructors.
11717 (~macro_buffer): New destructor.
11718 (macro_buffer::set_shared): New method.
11719 (macro_buffer::resize_buffer, macro_buffer::appendc)
11720 (macro_buffer::appendmem): Now methods, not free functions.
11721 (set_token, append_tokens_without_splicing, stringify)
11722 (macro_stringify): Update.
11723 (gather_arguments): Change return type. Remove argc_p argument,
11724 add args_ptr argument. Use std::vector.
11725 (substitute_args): Remove argc argument. Accept std::vector.
11726 (expand): Update. Use std::vector.
11727 (scan, macro_expand, macro_expand_next): Update.
11729 2018-02-08 Tom Tromey <tom@tromey.com>
11731 * symtab.c (default_collect_symbol_completion_matches_break_on):
11732 Use unique_xmalloc_ptr.
11733 * macroscope.h: (sal_macro_scope, user_macro_scope)
11734 (default_macro_scope): Return unique_xmalloc_ptr.
11735 * macroscope.c (sal_macro_scope, user_macro_scope)
11736 (default_macro_scope): Return unique_xmalloc_ptr.
11737 * macroexp.h (macro_expand, macro_expand_once): Return
11738 unique_xmalloc_ptr.
11739 * macroexp.c (macro_expand, macro_expand_once): Return
11740 unique_xmalloc_ptr.
11741 * macrocmd.c (macro_expand_command, macro_expand_once_command)
11742 (info_macro_command, info_macros_command): Use
11743 unique_xmalloc_ptr.
11744 * compile/compile-c-support.c (write_macro_definitions): Use
11745 unique_xmalloc_ptr.
11746 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
11748 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
11750 * value.c (value_static_field): Assign field type instead of
11751 containing type when returning an optimized out value.
11753 2018-02-06 Yao Qi <yao.qi@linaro.org>
11755 * ft32-tdep.c (ft32_read_pc): Remove.
11756 (ft32_write_pc): Remove.
11757 (ft32_gdbarch_init): Update.
11758 * m32r-tdep.c (m32r_read_pc): Remove.
11759 (m32r_gdbarch_init): Update.
11760 * mep-tdep.c (mep_read_pc): Remove.
11761 (mep_gdbarch_init): Update.
11762 * microblaze-tdep.c (microblaze_write_pc): Remove.
11763 (microblaze_gdbarch_init): Update.
11764 * mn10300-tdep.c (mn10300_read_pc): Remove.
11765 (mn10300_write_pc): Remove.
11766 (mn10300_gdbarch_init): Update.
11767 * moxie-tdep.c (moxie_read_pc): Remove.
11768 (moxie_write_pc): Remove.
11769 (moxie_gdbarch_init): Update.
11771 2018-02-06 Yao Qi <yao.qi@linaro.org>
11773 * expprint.c (print_subexp_standard): Handle
11774 OP_F77_UNDETERMINED_ARGLIST.
11775 (dump_subexp_body_standard): Likewise.
11777 2018-02-05 Alan Hayward <alan.hayward@arm.com>
11779 * target-descriptions.c (tdesc_element_visitor) Add empty
11781 (tdesc_type): Move make_gdb_type from here.
11782 (tdesc_type_builtin): Likewise.
11783 (tdesc_type_vector): Likewise.
11784 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
11785 (make_gdb_type_struct): Move from tdesc_type_with_fields.
11786 (make_gdb_type_union): Likewise.
11787 (make_gdb_type_flags): Likewise.
11788 (make_gdb_type_enum): Likewise.
11789 (make_gdb_type): New function.
11790 (tdesc_register_type): Use static make_gdb_type.
11792 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
11794 * infcmd.c (default_print_one_register_info): Align natural-format
11795 column values consistently one under another.
11796 (pad_to_column): New function.
11798 2018-02-05 Joel Brobecker <brobecker@adacore.com>
11800 * dwarf2read.c (dwarf2_physname): Move commment.
11802 2018-02-01 Leszek Swirski <leszeks@google.com>
11804 * varobj.c (varobj_formatted_print_options): Allow recursive
11805 pretty printing if pretty printing is enabled.
11807 2018-02-01 Leszek Swirski <leszeks@google.com>
11809 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
11810 names after a structop as a filename.
11812 2018-02-01 Yao Qi <yao.qi@linaro.org>
11814 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
11815 (arm_record_coproc_data_proc): Likewise.
11817 2018-02-01 Yao Qi <yao.qi@linaro.org>
11819 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
11821 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
11823 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
11824 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
11826 2018-01-31 Pedro Alves <palves@redhat.com>
11828 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
11829 * inflow.c (child_terminal_save_inferior): Wrap reference to
11830 tcgetpgrp in HAVE_TERMIOS_H.
11831 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
11833 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
11834 always iterate over all inferiors.
11835 (gdbsim_cntrl_c): Adjust.
11836 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
11838 2018-01-31 Joel Brobecker <brobecker@adacore.com>
11840 * gdbtypes.c (lookup_array_range_type): Make sure the array's
11841 index type is objfile-owned if the element type is as well.
11843 2018-01-31 Joel Brobecker <brobecker@adacore.com>
11847 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
11849 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
11850 "features/s390x-linux64.c".
11851 (_initialize_s390_linux_tdep): Remove initialization of tdescs
11852 s390_linux32 and s390x_linux64.
11853 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
11855 * s390-tdep.c: Include "features/s390-linux32.c" and
11856 "features/s390x-linux64.c".
11857 (s390_tdesc_valid): Add check for tdesc_has_registers.
11858 (s390_gdbarch_init): Make sure there is always a valid tdesc.
11859 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
11860 tdesc_s390x_linux64.
11861 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
11862 tdesc_s390x_linux64 to...
11863 * s390-tdep.h: ...here.
11865 2018-01-30 Pedro Alves <palves@redhat.com>
11868 * config.in, configure: Regenerate.
11869 * configure.ac: Check for getpgid.
11870 * go32-nat.c (go32_pass_ctrlc): New.
11871 (go32_target): Install it.
11872 * inf-child.c (inf_child_target): Install
11873 child_terminal_save_inferior, child_pass_ctrlc and
11875 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
11876 (inf_ptrace_target): No longer install it.
11877 * infcmd.c (interrupt_target_1): Adjust.
11878 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
11879 (child_interrupt): Declare.
11880 (inferior::terminal_state): New.
11881 * inflow.c (struct terminal_info): Update comments.
11882 (inferior_process_group): Delete.
11883 (terminal_is_ours): Delete.
11884 (gdb_tty_state): New.
11885 (child_terminal_init): Adjust.
11886 (is_gdb_terminal, sharing_input_terminal_1)
11887 (sharing_input_terminal): New functions.
11888 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
11889 Set the process's actual process group in the foreground if
11890 possible. Handle is_ours_for_output/is_ours distinction. Don't
11891 mark terminal as the inferior's if not sharing GDB's terminal.
11892 Don't check attach_flag.
11893 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
11894 pass down a target_terminal_state.
11895 (child_terminal_save_inferior): New, factored out from ...
11896 (child_terminal_ours_1): ... this. Handle
11897 target_terminal_state::is_ours_for_output.
11898 (child_interrupt, child_pass_ctrlc): New.
11899 (inflow_inferior_exit): Clear the inferior's terminal_state.
11900 (copy_terminal_info): Copy the inferior's terminal state.
11901 (_initialize_inflow): Remove reference to terminal_is_ours.
11902 * inflow.h (inferior_process_group): Delete.
11903 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
11904 * procfs.c (procfs_target): Don't install procfs_interrupt.
11905 (procfs_interrupt): Delete.
11906 * remote.c (remote_serial_quit_handler): Adjust.
11907 (remote_interrupt): Remove ptid parameter. Adjust.
11908 * target-delegates.c: Regenerate.
11909 * target.c: Include "terminal.h".
11910 (target_terminal::terminal_state): Rename to ...
11911 (target_terminal::m_terminal_state): ... this.
11912 (target_terminal::init): Adjust.
11913 (target_terminal::inferior): Adjust to per-inferior
11915 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
11916 (target_terminal::ours, target_terminal::ours_for_output): Use
11917 target_terminal_is_ours_kind.
11918 (target_interrupt): Remove ptid parameter. Adjust.
11919 (default_target_pass_ctrlc): Adjust.
11920 * target.h (target_ops::to_terminal_save_inferior): New field.
11921 (target_ops::to_interrupt): Remove ptid_t parameter.
11922 (target_interrupt): Remove ptid_t parameter. Update comment.
11923 (target_pass_ctrlc): Update comment.
11924 * target/target.h (target_terminal_state): New scoped enum,
11925 factored out of ...
11926 (target_terminal::terminal_state): ... here.
11927 (target_terminal::inferior): Update comments.
11928 (target_terminal::restore_inferior): New.
11929 (target_terminal::is_inferior, target_terminal::is_ours)
11930 (target_terminal::is_ours_for_output): Adjust.
11931 (target_terminal::scoped_restore_terminal_state): Adjust to
11932 rename, and call restore_inferior() instead of inferior().
11933 (target_terminal::scoped_restore_terminal_state::m_state): Change
11935 (target_terminal::terminal_state): Rename to ...
11936 (target_terminal::m_terminal_state): ... this and change type.
11938 2018-01-30 Pedro Alves <palves@redhat.com>
11940 * linux-nat.c (wait_for_signal): New function.
11941 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
11943 (async_terminal_is_ours)
11944 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
11945 (linux_nat_add_target): Don't override
11946 to_terminal_inferior/to_terminal_ours.
11948 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
11950 * remote.c (remote_follow_fork): Don't call "detach_inferior".
11952 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
11954 * dwarf2read.c (free_dwo_files): Add forward-declaration.
11955 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
11956 dwarf2_per_objfile_free here.
11957 (dwarf2_per_objfile_free): Remove.
11958 (_initialize_dwarf2_read): Don't register
11959 dwarf2_per_objfile_free as a registry cleanup.
11961 2018-01-27 Eli Zaretskii <eliz@gnu.org>
11963 Avoid compilation errors in MinGW native builds
11965 The error is triggered by including python-internal.h, and the
11968 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
11969 from build-gnulib/import/math.h:27,
11970 from d:/usr/Python26/include/pyport.h:235,
11971 from d:/usr/Python26/include/Python.h:58,
11972 from python/python-internal.h:94,
11973 from python/py-arch.c:24:
11974 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
11978 This happens because Python headers define 'hypot' to expand t
11979 '_hypot' in the Windows builds.
11980 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
11981 'hypoth'. This avoids a compilation error.
11983 2018-01-26 Alan Hayward <alan.hayward@arm.com>
11985 * MAINTAINERS (Write After Approval): Fix ordering.
11987 2018-01-26 Alan Hayward <alan.hayward@arm.com>
11989 * MAINTAINERS (Write After Approval): Add Alan Hayward.
11991 2018-01-26 Alan Modra <amodra@gmail.com>
11993 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
11994 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
11995 Remove nop. Make const. Comment.
11996 (powerpc32_plt_stub_so_2): New.
11997 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
11998 Correct count. Update uses.
11999 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12000 Move common code reading PLT entry word. Correct
12001 powerpc32_plt_stub PLT address calculation.
12002 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12003 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12004 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12005 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12006 (ppc64_standard_linkage8): Likewise.
12007 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12008 Correct insns description.
12009 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12011 2018-01-24 Pedro Alves <palves@redhat.com>
12013 GCC PR libstdc++/83906
12014 * gdbtypes.c (operator==(const dynamic_prop &,
12015 const dynamic_prop &)): New.
12016 (operator==(const range_bounds &, const range_bounds &)): New.
12017 (check_types_equal): Use them instead of memcmp.
12018 * gdbtypes.h (operator==(const dynamic_prop &,
12019 const dynamic_prop &)): Declare.
12020 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12021 (operator==(const range_bounds &, const range_bounds &)): Declare.
12022 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12024 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12026 * s390-linux-tdep.c (s390_record_address_mask)
12027 (s390_record_calc_disp_common, s390_record_calc_disp)
12028 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12029 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12030 (s390_process_record): Move to s390-tdep.c.
12031 (s390_linux_init_abi_any): Adjust.
12032 * s390-tdep.c (s390_record_address_mask)
12033 (s390_record_calc_disp_common, s390_record_calc_disp)
12034 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12035 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12036 (s390_process_record): Moved from s390-linux-tdep.c
12037 (s390_gdbarch_init): Adjust.
12039 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12041 * s390-linux-nat.c (s390-tdep.h): New include.
12042 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12043 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12044 (ALLDEPFILES): Add s390-tdep.c.
12045 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12046 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12047 * s390-tdep.h: ...this. New file.
12048 * s390-linux-tdep.c (s390-tdep.h): New include.
12049 (_initialize_s390_tdep): Rename to...
12050 (_initialize_s390_linux_tdep): ...this and adjust.
12051 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12052 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12054 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12055 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12056 (s390_is_partial_instruction, s390_software_single_step)
12057 (is_non_branch_ril, s390_displaced_step_copy_insn)
12058 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12059 (s390_prologue_data, s390_addr, s390_store, s390_load)
12060 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12061 (s390_register_call_saved, s390_guess_tracepoint_registers)
12062 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12063 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12064 (s390_pseudo_register_name, s390_pseudo_register_type)
12065 (s390_pseudo_register_read, s390_pseudo_register_write)
12066 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12067 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12068 (s390_addr_bits_remove, s390_address_class_type_flags)
12069 (s390_address_class_type_flags_to_name)
12070 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12071 (s390_function_arg_float, s390_function_arg_vector)
12072 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12073 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12074 (s390_frame_align, s390_register_return_value, s390_return_value)
12075 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12076 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12077 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12078 (s390_trad_frame_prev_register, s390_unwind_cache)
12079 (s390_prologue_frame_unwind_cache)
12080 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12081 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12082 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12083 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12084 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12085 (s390_frame_base_address, s390_local_base_address)
12086 (s390_frame_base, s390_gcc_target_options)
12087 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12088 (s390_validate_reg_range, s390_tdesc_valid)
12089 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12090 * s390-tdep.c: ...this. New file.
12092 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12094 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12095 (s390_process_record, s390_gdbarch_tdep_alloc)
12096 (s390_linux_init_abi_any): Use/set new hook.
12098 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12100 * s390-linux-tdep.c (osabi.h): New include.
12101 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12102 (s390_linux_init_abi_any): New functions.
12103 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12105 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12107 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12108 tdesc_has_registers check
12110 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12112 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12113 (s390_validate_reg_range): New macro.
12114 (s390_gdbarch_init): Adjust.
12116 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12118 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12119 (s390_gdbarch_tdep_alloc): Adjust.
12120 (s390_gdbarch_init): Adjust.
12122 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12124 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12125 <have_tdb>: Change type to bool.
12126 (s390_gdbarch_tdep_alloc): Adjust.
12127 (s390_gdbarch_init): Adjust.
12129 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12131 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12132 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12133 (s390_gdbarch_tdep_alloc): New function.
12134 (s390_gdbarch_init): Allocate tdep at start and use its fields
12135 instead of separate variables.
12137 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12139 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12140 when looking for cached gdbarch and add comment for remaining.
12142 2018-01-22 Pedro Alves <palves@redhat.com>
12143 Sergio Durigan Junior <sergiodj@redhat.com>
12145 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12148 2018-01-22 Maciej W. Rozycki <macro@mips.com>
12150 * MAINTAINERS: Update my company e-mail address.
12152 2018-01-22 Yao Qi <yao.qi@linaro.org>
12154 * regcache.c (cooked_write_test): New function.
12155 (_initialize_regcache): Register the test.
12157 2018-01-22 Yao Qi <yao.qi@linaro.org>
12159 * ia64-tdep.c (ia64_pseudo_register_read): Call
12160 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12161 * m32c-tdep.c (m32c_cat_read): Likewise.
12162 (m32c_r3r2r1r0_read): Likewise.
12163 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12164 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12166 2018-01-22 Yao Qi <yao.qi@linaro.org>
12168 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12169 method raw_read instead of regcache_raw_read.
12170 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12171 * arm-tdep.c (arm_neon_quad_read): Likewise.
12172 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12173 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12174 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12175 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12176 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12177 (i386_pseudo_register_read_into_value): Likewise.
12178 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12179 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12180 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12181 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12182 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12183 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12184 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12185 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12186 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12188 2018-01-22 Yao Qi <yao.qi@linaro.org>
12190 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12191 * configure.tgt: Remove target mt.
12192 * mt-tdep.c: Remove.
12193 * regcache.c (cooked_read_test): Remove the check for mt.
12195 2018-01-22 Yao Qi <yao.qi@linaro.org>
12197 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12198 instead of gdbarch_pseudo_register_read_value.
12200 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12202 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12205 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12207 * linespec.c (create_sals_line_offset): Remove code that preserved
12208 the symtab_and_line's line number.
12210 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12212 * varobj.c (varobj_create): Don't set valid_block when creating a
12215 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12217 * varobj.c (varobj_create): Remove out of date comment.
12219 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12222 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12223 updating innermost block.
12224 * parse.c (innermost_block_tracker::update): Take extra type
12225 parameter, and check types match before updating innermost block.
12226 (write_dollar_variable): Update innermost block for registers.
12227 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12228 (innermost_block_tracker::innermost_block_tracker): Initialise
12230 (innermost_block_tracker::reset): Take type parameter.
12231 (innermost_block_tracker::update): Take type parameter, and pass
12232 type through as needed.
12233 (innermost_block_tracker::m_types): New member.
12234 * varobj.c (varobj_create): Pass type when reseting innermost
12237 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12239 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12240 * ada-lang.c (resolve_subexp): Likewise.
12241 * breakpoint.c (set_breakpoint_condition) Likewise.
12242 (watch_command_1) Likewise.
12243 * c-exp.y (variable): Likewise.
12244 * d-exp.y (PrimaryExpression): Likewise.
12245 * f-exp.y (variable): Likewise.
12246 * go-exp.y (variable): Likewise.
12247 * m2-exp.y (variable): Likewise.
12248 * objfiles.c (objfile::~objfile): Likewise.
12249 * p-exp.y (variable): Likewise.
12250 * parse.c (innermost_block): Change type.
12251 * parser-defs.h (class innermost_block_tracker): New.
12252 (innermost_block): Change to innermost_block_tracker.
12253 * printcmd.c (display_command): Switch to innermost_block API.
12254 (do_one_display): Likewise.
12255 * rust-exp.y (do_one_display): Likewise.
12256 * symfile.c (clear_symtab_users): Likewise.
12257 * varobj.c (varobj_create): Switch to innermost_block API, replace
12258 use of innermost_block with block stored on varobj object.
12260 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12262 * expression.h (innermost_block): Remove declaration.
12263 * varobj.c: Add 'parser-defs.h' include.
12265 2018-01-19 Tom Tromey <tom@tromey.com>
12267 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12268 symbols in the static and global blocks.
12270 2018-01-19 James Clarke <jrtc27@jrtc27.com>
12272 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12273 gdb_ptrace.h, and move including gdb_wait.h ...
12274 * nat/linux-ptrace.h: ... to here.
12276 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12278 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12279 inf_ptrace_detach_success.
12280 (inf_ptrace_detach_success): Add inferior parameter, use it
12281 instead of inferior_ptid, pass it to detach_inferior.
12282 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12284 * inferior.c (detach_inferior): Add overload that takes an
12286 * inferior.h (detach_inferior): Likewise.
12287 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12288 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12289 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12291 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12293 * target.h (struct target_ops) <to_detach>: Add inferior
12295 (target_detach): Likewise.
12296 * target.c (dispose_inferior): Pass inferior down.
12297 (target_detach): Pass inferior down. Assert that it is equal to
12298 the current inferior.
12299 * aix-thread.c (aix_thread_detach): Pass inferior down.
12300 * corefile.c (core_file_command): Pass current_inferior() down.
12301 * corelow.c (core_detach): Add inferior parameter.
12302 * darwin-nat.c (darwin_detach): Likewise.
12303 * gnu-nat.c (gnu_detach): Likewise.
12304 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12305 * infcmd.c (detach_command): Pass current_inferior() down to
12307 * infrun.c (follow_fork_inferior): Pass parent_inf to
12309 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12311 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12312 * linux-thread-db.c (thread_db_detach): Likewise.
12313 * nto-procfs.c (procfs_detach): Likewise.
12314 * procfs.c (procfs_detach): Likewise.
12315 * record.c (record_detach): Likewise.
12316 * record.h (struct inferior): Forward-declare.
12317 (record_detach): Add inferior parameter.
12318 * remote-sim.c (gdbsim_detach): Likewise.
12319 * remote.c (remote_detach_1): Likewise.
12320 (remote_detach): Likewise.
12321 (extended_remote_detach): Likewise.
12322 * sol-thread.c (sol_thread_detach): Likewise.
12323 * target-debug.h (target_debug_print_inferior_p): New macro.
12324 * target-delegates.c: Re-generate.
12325 * top.c (kill_or_detach): Pass inferior down to target_detach.
12326 * windows-nat.c (windows_detach): Add inferior parameter.
12328 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12330 * target.h (struct target_ops) <to_detach>: Remove args
12332 (target_detach): Likewise.
12333 * target.c (dispose_inferior): Adjust.
12334 (target_detach): Remove args parameter, adjust.
12335 * aix-thread.c (aix_thread_detach): Adjust.
12336 * corefile.c (core_file_command): Adjust.
12337 * corelow.c (core_detach): Adjust.
12338 * darwin-nat.c (darwin_detach): Adjust.
12339 * gnu-nat.c (gnu_detach): Adjust.
12340 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12341 * infcmd.c (detach_command): Adjust
12342 * infrun.c (follow_fork_inferior): Adjust.
12343 (handle_vfork_child_exec_or_exit): Adjust.
12344 * linux-fork.c (linux_fork_detach): Remove args parameter.
12345 * linux-fork.h (linux_fork_detach): Likewise.
12346 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12347 * linux-thread-db.c (thread_db_detach): Likewise.
12348 * nto-procfs.c (procfs_detach): Likewise.
12349 * procfs.c (procfs_detach): Likewise.
12350 (do_detach): Remove signo parameter.
12351 * record.c (record_detach): Remove args parameter.
12352 * record.h (record_detach): Likewise.
12353 * remote-sim.c (gdbsim_detach): Likewise.
12354 * remote.c (remote_detach_1): Likewise.
12355 (remote_detach): Likewise.
12356 (extended_remote_detach): Likewise.
12357 * sol-thread.c (sol_thread_detach): Likewise.
12358 * target-delegates.c: Re-generate.
12359 * top.c (struct qt_args) <args>: Remove field.
12360 (kill_or_detach): Don't pass args.
12361 (quit_force): Don't set args.
12362 * windows-nat.c (windows_detach): Remove args parameter.
12364 2018-01-19 Yao Qi <yao.qi@linaro.org>
12366 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12367 (arm_linux_init_abi): Install it.
12369 2018-01-19 Yao Qi <yao.qi@linaro.org>
12371 * osabi.c (gdb_osabi_names): Extend the regexp for
12372 arm-linux-gnueabihf.
12374 2018-01-18 Yao Qi <yao.qi@linaro.org>
12376 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12378 (abbrev_table::add_abbrev): Update.
12379 (abbrev_table::lookup_abbrev): Update.
12381 2018-01-18 Yao Qi <yao.qi@linaro.org>
12383 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12385 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12387 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12390 2018-01-17 Tom Tromey <tom@tromey.com>
12392 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12394 2018-01-17 Tom Tromey <tom@tromey.com>
12396 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12397 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12398 (create_array_type_with_stride): Update.
12399 * dwarf2read.c (set_die_type): Update.
12401 2018-01-17 Tom Tromey <tom@tromey.com>
12403 * dwarf2read.c (delayed_method_info): Remove typedef.
12404 (dwarf2_cu::method_info): Now a std::vector.
12405 (add_to_method_list): Update.
12406 (free_delayed_list): Remove.
12407 (compute_delayed_physnames): Update.
12408 (process_full_comp_unit, process_full_type_unit): Clear the method
12409 list. Remove cleanups.
12410 (psymtab_include_file_name): Add name_holder parameter. Use
12411 unique_xmalloc_ptr.
12412 (dwarf_decode_lines): Update.
12414 2018-01-17 Tom Tromey <tom@tromey.com>
12415 Simon Marchi <simon.marchi@ericsson.com>
12417 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12418 (dwarf2_per_objfile::free_cached_comp_units)
12419 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12420 (init_cutu_and_read_dies_no_follow): Update.
12421 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12422 (dwarf2_cu::~dwarf2_cu): New.
12423 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12424 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12426 2018-01-17 Tom Tromey <tom@tromey.com>
12427 Simon Marchi <simon.marchi@ericsson.com>
12429 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12430 (struct die_reader_specs) <abbrev_table>: New member.
12431 (struct abbrev_table): Add constructor.
12432 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12433 <abbrev_obstack>: Now an auto_obstack.
12434 (abbrev_table_up): New typedef.
12435 (init_cu_die_reader): Add abbrev_table parameter.
12436 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12437 Add result_dwo_abbrev_table.
12438 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12439 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12441 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12443 (skip_children): Update.
12444 (abbrev_table::alloc_abbrev): Rename from
12445 abbrev_table_alloc_abbrev.
12446 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
12447 (abbrev_table::lookup_abbrev): Rename from
12448 abbrev_table_lookup_abbrev.
12449 (abbrev_table_read_table): Return abbrev_table_up.
12450 (abbrev_table_free, abbrev_table_free_cleanup)
12451 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
12452 (load_partial_dies): Update.
12454 2018-01-17 Tom Tromey <tom@tromey.com>
12456 * dwarf2read.c (dwarf2_compute_name): Update comment.
12457 (read_func_scope, read_variable): Update.
12458 (new_symbol): Remove.
12459 (new_symbol_full): Rename to new_symbol.
12461 2018-01-17 Mike Gulick <mgulick@mathworks.com>
12464 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
12465 a warning instead of throwing an error, set section size to 0 and return
12467 * gdb_bfd.h (gdb_bfd_map_section): Update description.
12469 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12471 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
12473 (linux_ptrace_attach_fail_reason_string): Likewise.
12474 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
12476 (linux_ptrace_attach_fail_reason_string): Likewise.
12477 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
12479 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12481 * linux-nat.c (linux_nat_attach): Remove xstrdup.
12483 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
12486 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
12487 checking for fs_base/gs_base fields in struct user_regs_struct.
12488 * configure: Regenerate.
12490 2018-01-17 Yao Qi <yao.qi@linaro.org>
12492 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12494 (aarch64_linux_init_abi): Install it to gdbarch hook
12495 gcc_target_options.
12497 2018-01-15 Pedro Alves <palves@redhat.com>
12499 * common/signals-state-save-restore.c
12500 (save_original_signals_state): Fix typos.
12502 2017-01-12 Tom Tromey <tom@tromey.com>
12503 Sergio Durigan Junior <sergiodj@redhat.com>
12505 * Makefile.in (install-only): Install gdb-add-index.
12507 2018-01-12 John Baldwin <jhb@FreeBSD.org>
12509 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
12511 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12513 * infrun.c (keep_going_pass_signal): Clear step-over info when
12514 insert_breakpoints fails.
12516 2018-01-11 Pedro Alves <palves@redhat.com>
12519 * infrun.c (resume): Rename to ...
12520 (resume_1): ... this.
12521 (resume): Reimplement as wrapper around resume_1.
12523 2018-01-11 Pedro Alves <palves@redhat.com>
12526 * remote.c (remote_parse_stop_reply): Default to the last-set
12527 general thread instead of to 'magic_null_ptid'.
12529 2018-01-10 Pedro Alves <palves@redhat.com>
12531 * language.h (language_get_symbol_name_matcher): Rename ...
12532 (get_symbol_name_matcher): ... this.
12533 * language.c (language_get_symbol_name_matcher): Ditto.
12534 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
12537 2018-01-10 Pedro Alves <palves@redhat.com>
12541 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
12542 Adjust to use language_get_symbol_name_matcher instead of
12543 language_defn::la_get_symbol_name_matcher.
12544 * language.c (language_get_symbol_name_matcher): If in Ada mode
12545 and the lookup name is a verbatim match, return Ada's matcher.
12546 * language.h (language_get_symbol_name_matcher): Adjust comment.
12547 (ada_lookup_name_info::verbatim_p):: New method.
12549 2018-01-10 Pedro Alves <palves@redhat.com>
12552 * ada-lang.c (ada_collect_symbol_completion_matches): If the
12553 minsym's language is language_auto or language_cplus, pass down
12554 language_ada instead.
12555 * symtab.c (compare_symbol_name): Don't frob symbol language here.
12557 2018-01-10 Pedro Alves <palves@redhat.com>
12560 * minsyms.c (linkage_name_str): New function.
12561 (iterate_over_minimal_symbols): Use it.
12563 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12565 * NEWS: Document that 'info proc' now works on FreeBSD.
12567 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12569 * configure.ac: Check for kinfo_getfile in libutil.
12570 * configure: Regenerate.
12571 * config.in: Regenerate.
12572 * fbsd-nat.c: Include "fbsd-tdep.h".
12573 (fbsd_fetch_cmdline): New.
12574 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
12575 rather than calling error.
12576 (fbsd_info_proc): New.
12577 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
12578 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
12579 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
12581 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12583 * fbsd-nat.c (struct free_deleter): Remove.
12584 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
12586 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12588 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
12589 NULL for an empty pathname.
12591 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12593 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
12594 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
12595 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12596 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12597 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
12598 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
12599 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
12600 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
12601 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
12602 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
12603 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
12604 (fbsd_core_fetch_timeval, fbsd_print_sigset)
12605 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
12606 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
12607 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
12609 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
12611 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
12612 (gnu_xfer_auxv): New function.
12613 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
12614 TARGET_OBJECT_AUXV.
12616 2018-01-08 Yao Qi <yao.qi@linaro.org>
12617 Simon Marchi <simon.marchi@ericsson.com>
12619 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
12621 (COMMON_OBS): Remove selftest.o.
12622 * configure.ac: Append selftest-arch.c and common/selftest.c to
12623 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
12624 * configure: Re-generated.
12625 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
12627 (maintenance_info_selftests): Likewise.
12629 2018-01-08 Xavier Roirand <roirand@adacore.com>
12631 * ada-valprint.c (val_print_packed_array_elements): Use
12632 proper number of elements when printing an array indexed
12633 by an enumeration type.
12635 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12637 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
12638 (dw2_get_file_names_reader): Adjust.
12639 (lookup_dwo_signatured_type): Adjust.
12640 (lookup_dwp_signatured_type): Adjust.
12641 (lookup_signatured_type): Adjust.
12642 (create_type_unit_group): Adjust.
12643 (get_type_unit_group): Adjust.
12644 (process_psymtab_comp_unit_reader): Adjust.
12645 (build_type_psymtabs_reader): Adjust.
12646 (scan_partial_symbols): Adjust.
12647 (add_partial_symbol): Adjust.
12648 (add_partial_subprogram): Adjust.
12649 (peek_die_abbrev): Adjust.
12650 (fixup_go_packaging): Adjust.
12651 (process_imported_unit_die): Adjust.
12652 (dwarf2_compute_name): Adjust.
12653 (dwarf2_physname): Adjust.
12654 (read_import_statement): Adjust.
12655 (handle_DW_AT_stmt_list): Adjust.
12656 (read_file_scope): Adjust.
12657 (read_func_scope): Adjust.
12658 (read_lexical_block_scope): Adjust.
12659 (read_call_site_scope): Adjust.
12660 (read_variable): Adjust.
12661 (dwarf2_rnglists_process): Adjust.
12662 (dwarf2_ranges_process): Adjust.
12663 (dwarf2_ranges_read): Adjust.
12664 (dwarf2_get_pc_bounds): Adjust.
12665 (dwarf2_record_block_ranges): Adjust.
12666 (dwarf2_add_field): Adjust.
12667 (dwarf2_add_member_fn): Adjust.
12668 (read_structure_type): Adjust.
12669 (process_structure_scope): Adjust.
12670 (read_enumeration_type): Adjust.
12671 (read_array_type): Adjust.
12672 (mark_common_block_symbol_computed): Adjust.
12673 (read_common_block): Adjust.
12674 (read_namespace_type): Adjust.
12675 (read_namespace): Adjust.
12676 (read_module_type): Adjust.
12677 (read_tag_pointer_type): Adjust.
12678 (read_tag_ptr_to_member_type): Adjust.
12679 (read_tag_string_type): Adjust.
12680 (read_subroutine_type): Adjust.
12681 (read_typedef): Adjust.
12682 (read_base_type): Adjust.
12683 (attr_to_dynamic_prop): Adjust.
12684 (read_subrange_type): Adjust.
12685 (read_unspecified_type): Adjust.
12686 (dwarf2_read_abbrevs): Adjust.
12687 (load_partial_dies): Adjust.
12688 (read_partial_die): Adjust.
12689 (find_partial_die): Adjust.
12690 (guess_partial_die_structure_name): Adjust.
12691 (fixup_partial_die): Adjust.
12692 (read_attribute_value): Adjust.
12693 (read_addr_index): Adjust.
12694 (read_addr_index_from_leb128): Adjust.
12695 (read_str_index): Adjust.
12696 (dwarf2_string_attr): Adjust.
12697 (get_debug_line_section): Adjust.
12698 (dwarf_decode_line_header): Adjust.
12699 (lnp_state_machine::check_line_address): Adjust.
12700 (dwarf_decode_lines_1): Adjust.
12701 (dwarf_decode_lines): Adjust.
12702 (dwarf2_start_symtab): Adjust.
12703 (var_decode_location): Adjust.
12704 (new_symbol_full): Adjust.
12705 (dwarf2_const_value_data): Adjust.
12706 (dwarf2_const_value_attr): Adjust.
12707 (dwarf2_const_value): Adjust.
12708 (die_type): Adjust.
12709 (die_containing_type): Adjust.
12710 (build_error_marker_type): Adjust.
12711 (lookup_die_type): Adjust.
12712 (guess_full_die_structure_name): Adjust.
12713 (anonymous_struct_prefix): Adjust.
12714 (determine_prefix): Adjust.
12715 (dwarf2_name): Adjust.
12716 (follow_die_ref_or_sig): Adjust.
12717 (follow_die_offset): Adjust.
12718 (follow_die_ref): Adjust.
12719 (follow_die_sig_1): Adjust.
12720 (follow_die_sig): Adjust.
12721 (get_signatured_type): Adjust.
12722 (get_DW_AT_signature_type): Adjust.
12723 (decode_locdesc): Adjust.
12724 (dwarf_decode_macros): Adjust.
12725 (cu_debug_loc_section): Adjust.
12726 (fill_in_loclist_baton): Adjust.
12727 (dwarf2_symbol_mark_computed): Adjust.
12728 (init_one_comp_unit): Don't assign
12729 dwarf2_cu::dwarf2_per_objfile.
12730 (set_die_type): Adjust.
12732 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12734 * dwarf2read.c (struct mapped_debug_names): Add constructor.
12735 <dwarf2_per_objfile>: New field.
12736 (dwarf2_per_objfile): Remove global.
12737 (get_dwarf2_per_objfile): New function.
12738 (set_dwarf2_per_objfile): New function.
12739 (dwarf2_build_psymtabs_hard): Change objfile parameter to
12740 dwarf2_per_objfile.
12741 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12742 (read_abbrev_offset): Likewise.
12743 (read_indirect_string): Likewise.
12744 (read_indirect_line_string): Likewise.
12745 (read_indirect_string_at_offset): Likewise.
12746 (read_indirect_string_from_dwz): Likewise.
12747 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12748 dwarf2_per_objfile.
12749 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12750 (create_all_comp_units): Change objfile parameter to
12751 dwarf2_per_objfile.
12752 (create_all_type_units): Likewise.
12753 (process_queue): Add dwarf2_per_objfile parameter.
12754 (read_and_check_comp_unit_head): Likewise.
12755 (lookup_dwo_unit_in_dwp): Likewise.
12756 (get_dwp_file): Likewise.
12757 (process_cu_includes): Likewise.
12758 (struct free_dwo_file_cleanup_data): New struct.
12759 (dwarf2_has_info): Use get_dwarf2_per_objfile and
12760 set_dwarf2_per_objfile.
12761 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
12762 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
12763 context, adjust calls.
12764 (dw2_instantiate_symtab): Likewise.
12765 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
12766 (dw2_get_cu): Likewise.
12767 (create_cu_from_index_list): Change objfile parameter to
12768 dwarf2_per_objfile.
12769 (create_cus_from_index_list): Get dwarf2_per_objfile from
12770 context, adjust calls.
12771 (create_cus_from_index): Likewise.
12772 (create_signatured_type_table_from_index): Change objfile
12773 parameter to dwarf2_per_objfile.
12774 (create_signatured_type_table_from_debug_names): Change objfile
12775 parameter to dwarf2_per_objfile.
12776 (create_addrmap_from_index): Likewise.
12777 (create_addrmap_from_aranges): Likewise.
12778 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
12779 (dw2_setup): Remove.
12780 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
12782 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
12783 get_dwarf2_per_objfile.
12784 (dw2_forget_cached_source_info): Likewise.
12785 (dw2_map_symtabs_matching_filename): Likewise.
12786 (struct dw2_symtab_iterator) <index>: Remove.
12787 <dwarf2_per_objfile>: New field.
12788 (dw2_symtab_iter_init): Replace index parameter with
12789 dwarf2_per_objfile.
12790 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
12791 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
12792 (dw2_print_stats): Likewise.
12793 (dw2_dump): Likewise.
12794 (dw2_expand_symtabs_for_function): Likewise.
12795 (dw2_expand_all_symtabs): Likewise.
12796 (dw2_expand_symtabs_with_fullname): Likewise.
12797 (dw2_expand_marked_cus): Replace index and objfile parameters
12798 with dwarf2_per_objfile.
12799 (dw_expand_symtabs_matching_file_matcher): Add
12800 dwarf2_per_objfile parameter and adjust calls.
12801 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
12803 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
12804 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
12806 (create_cus_from_debug_names_list): Replace objfile parameter
12807 with dwarf2_per_objfile and adjust calls.
12808 (create_cus_from_debug_names): Likewise.
12809 (dwarf2_read_debug_names): Likewise.
12810 (mapped_debug_names::namei_to_name): Adjust call.
12811 (dw2_debug_names_iterator::next): Likewise.
12812 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
12813 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
12814 (dw2_debug_names_dump): Likewise.
12815 (dw2_debug_names_expand_symtabs_for_function): Likewise.
12816 (dw2_debug_names_expand_symtabs_matching): Likewise.
12817 (dwarf2_initialize_objfile): Likewise.
12818 (dwarf2_build_psymtabs): Likewise.
12819 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
12821 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
12822 (read_and_check_comp_unit_head): Likewise.
12823 (read_abbrev_offset): Likewise.
12824 (create_debug_type_hash_table): Likewise.
12825 (create_debug_types_hash_table): Likewise.
12826 (create_all_type_units): Replace objfile parameter with
12827 dwarf2_per_objfile.
12828 (add_type_unit): Add dwarf2_per_objfile parameter.
12829 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
12830 with dwarf2_per_objfile.
12831 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
12832 (lookup_dwp_signatured_type): Likewise.
12833 (lookup_signatured_type): Likewise.
12834 (read_cutu_die_from_dwo): Likewise.
12835 (init_tu_and_read_dwo_dies): Likewise.
12836 (init_cutu_and_read_dies): Likewise.
12837 (init_cutu_and_read_dies_no_follow): Likewise.
12838 (allocate_type_unit_groups_table): Add objfile parameter.
12839 (create_type_unit_group): Use dwarf2_per_objfile from cu.
12840 (get_type_unit_group): Likewise.
12841 (process_psymtab_comp_unit): Update call.
12842 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
12843 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
12844 (print_tu_stats): Likewise.
12845 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
12846 in void* parameter.
12847 (build_type_psymtabs): Change objfile parameter to
12848 dwarf2_per_objfile.
12849 (process_skeletonless_type_unit): Use dwarf2_per_objfile
12850 passed in void* parameter.
12851 (process_skeletonless_type_units): Change objfile parameter to
12852 dwarf2_per_objfile.
12853 (set_partial_user): Likewise.
12854 (dwarf2_build_psymtabs_hard): Likewise.
12855 (read_comp_units_from_section): Likewise.
12856 (create_all_comp_units): Likewise.
12857 (scan_partial_symbols): Update calls.
12858 (add_partial_symbol): Likewise.
12859 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
12860 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
12861 (process_queue): Add dwarf2_per_objfile parameter.
12862 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
12863 (compute_compunit_symtab_includes): Likewise.
12864 (process_cu_includes): Add dwarf2_per_objfile parameter.
12865 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
12866 (process_full_type_unit): Likewise.
12867 (process_imported_unit_die): Update call.
12868 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
12869 (read_file_scope): Likewise.
12870 (allocate_dwo_file_hash_table): Add objfile parameter.
12871 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
12872 (create_cus_hash_table): Likewise.
12873 (create_dwp_hash_table): Likewise.
12874 (create_dwo_unit_in_dwp_v1): Likewise.
12875 (create_dwp_v2_section): Likewise.
12876 (create_dwo_unit_in_dwp_v2): Likewise.
12877 (lookup_dwo_unit_in_dwp): Likewise.
12878 (try_open_dwop_file): Likewise.
12879 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
12880 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
12881 cleanup to include a reference to dwarf2_per_objfile.
12882 (open_dwp_file): Add dwarf2_per_objfile parameter.
12883 (open_and_init_dwp_file): Likewise.
12884 (get_dwp_file): Likewise.
12885 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
12886 (queue_and_load_all_dwo_tus): Update call.
12887 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
12889 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
12890 (dwarf2_ranges_process): Likewise.
12891 (dwarf2_get_pc_bounds): Likewise.
12892 (mark_common_block_symbol_computed): Likewise.
12893 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12894 (dwarf2_read_abbrevs): Update call.
12895 (read_partial_die): Use dwarf2_per_objfile from cu.
12896 (find_partial_die): Likewise.
12897 (fixup_partial_die): Likewise.
12898 (read_attribute_value): Likewise.
12899 (read_indirect_string_at_offset_from): Add objfile parameter.
12900 (read_indirect_string_at_offset): Add dwarf2_per_objfile
12902 (read_indirect_string_from_dwz): Add objfile parameter.
12903 (read_indirect_string): Add objfile parameter.
12904 (read_addr_index_1): Add dwarf2_per_objfile parameter.
12905 (read_addr_index): Use dwarf2_per_objfile from cu.
12906 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
12908 (read_str_index): Use dwarf2_per_objfile from cu.
12909 (get_debug_line_section): Likewise.
12910 (read_formatted_entries): Add dwarf2_per_objfile parameter.
12911 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
12912 (new_symbol_full): Use dwarf2_per_objfile from cu.
12913 (build_error_marker_type): Likewise.
12914 (lookup_die_type): Likewise.
12915 (determine_prefix): Likewise.
12916 (follow_die_offset): Likewise.
12917 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
12918 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
12919 (dwarf2_fetch_die_type_sect_off): Likewise.
12920 (dwarf2_get_die_type): Likewise.
12921 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
12922 (get_signatured_type): Likewise.
12923 (get_DW_AT_signature_type): Likewise.
12924 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
12925 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
12926 (cu_debug_loc_section): Likewise.
12927 (fill_in_loclist_baton): Likewise.
12928 (dwarf2_symbol_mark_computed): Likewise.
12929 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12930 dwarf2_per_objfile.
12931 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
12933 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12934 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
12935 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
12936 (set_die_type): Use dwarf2_free_objfile from cu.
12937 (get_die_type_at_offset): Likewise.
12938 (dwarf2_per_objfile_free): Don't assign global variable.
12939 (debug_names) <constructor>: Add dwarf2_per_objfile
12940 parameter, update m_debugstrlookup construction.
12941 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
12943 <m_dwarf2_per_objfile>: New field.
12944 <lookup>: Use m_dwarf2_per_objfile.
12945 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
12946 (psyms_seen_size): Likewise.
12947 (write_gdbindex): Replace objfile parameter with
12948 dwarf2_per_objfile.
12949 (write_debug_names): Likewise.
12950 (write_psymtabs_to_index): Likewise.
12951 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
12954 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12956 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
12957 <dwarf2_per_objfile>: New field.
12958 (struct dwarf2_per_cu_data) <objfile>: Remove.
12959 <dwarf2_per_objfile>: New field.
12960 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
12962 (create_signatured_type_table_from_index): Likewise.
12963 (create_debug_type_hash_table): Likewise.
12964 (fill_in_sig_entry_from_dwo_entry): Likewise.
12965 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
12966 (create_type_unit_group): Assign dwarf2_per_objfile instead of
12968 (create_partial_symtab): Access objfile through
12969 dwarf2_per_objfile.
12970 (process_psymtab_comp_unit_reader): Likewise.
12971 (read_comp_units_from_section): Likewise.
12972 (scan_partial_symbols): Likewise.
12973 (add_partial_symbol): Likewise.
12974 (add_partial_subprogram): Likewise.
12975 (peek_die_abbrev): Likewise.
12976 (fixup_go_packaging): Likewise.
12977 (process_full_comp_unit): Likewise.
12978 (process_full_type_unit): Likewise.
12979 (process_imported_unit_die): Likewise.
12980 (dwarf2_compute_name): Likewise.
12981 (dwarf2_physname): Likewise.
12982 (read_import_statement): Likewise.
12983 (create_cus_hash_table): Assign dwarf2_physname instead of
12985 (read_func_scope): Access objfile through dwarf2_per_objfile.
12986 (read_lexical_block_scope): Likewise.
12987 (read_call_site_scope): Likewise.
12988 (read_variable): Likewise.
12989 (dwarf2_rnglists_process): Likewise.
12990 (dwarf2_ranges_process): Likewise.
12991 (dwarf2_ranges_read): Likewise.
12992 (dwarf2_record_block_ranges): Likewise.
12993 (dwarf2_add_field): Likewise.
12994 (dwarf2_add_member_fn): Likewise.
12995 (read_structure_type): Likewise.
12996 (process_structure_scope): Likewise.
12997 (read_enumeration_type): Likewise.
12998 (read_array_type): Likewise.
12999 (read_common_block): Likewise.
13000 (read_namespace_type): Likewise.
13001 (read_namespace): Likewise.
13002 (read_module_type): Likewise.
13003 (read_tag_pointer_type): Likewise.
13004 (read_tag_ptr_to_member_type): Likewise.
13005 (read_tag_string_type): Likewise.
13006 (read_subroutine_type): Likewise.
13007 (read_typedef): Likewise.
13008 (read_base_type): Likewise.
13009 (attr_to_dynamic_prop): Likewise.
13010 (read_subrange_type): Likewise.
13011 (read_unspecified_type): Likewise.
13012 (load_partial_dies): Likewise.
13013 (read_partial_die): Likewise.
13014 (find_partial_die): Likewise.
13015 (guess_partial_die_structure_name): Likewise.
13016 (fixup_partial_die): Likewise.
13017 (read_attribute_value): Likewise.
13018 (read_addr_index_from_leb128): Likewise.
13019 (dwarf2_read_addr_index): Likewise.
13020 (dwarf2_string_attr): Likewise.
13021 (lnp_state_machine::check_line_address): Likewise.
13022 (dwarf_decode_lines_1): Likewise.
13023 (dwarf_decode_lines): Likewise.
13024 (dwarf2_start_symtab): Likewise.
13025 (var_decode_location): Likewise.
13026 (new_symbol_full): Likewise.
13027 (dwarf2_const_value_data): Likewise.
13028 (dwarf2_const_value_attr): Likewise.
13029 (dwarf2_const_value): Likewise.
13030 (die_type): Likewise.
13031 (die_containing_type): Likewise.
13032 (lookup_die_type): Likewise.
13033 (guess_full_die_structure_name): Likewise.
13034 (anonymous_struct_prefix): Likewise.
13035 (dwarf2_name): Likewise.
13036 (follow_die_ref_or_sig): Likewise.
13037 (follow_die_offset): Likewise.
13038 (follow_die_ref): Likewise.
13039 (dwarf2_fetch_die_loc_sect_off): Likewise.
13040 (dwarf2_fetch_constant_bytes): Likewise.
13041 (dwarf2_fetch_die_type_sect_off): Likewise.
13042 (dwarf2_get_die_type): Likewise.
13043 (follow_die_sig): Likewise.
13044 (decode_locdesc): Likewise.
13045 (dwarf2_per_cu_objfile): Likewise.
13046 (dwarf2_per_cu_text_offset): Likewise.
13047 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13049 (set_die_type): Access objfile through
13050 dwarf2_per_objfile.
13052 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13054 * valprint.c (converted_character_d): Remove typedef.
13055 (DEF_VEC_O (converted_character_d)): Remove.
13056 (count_next_character): Use std::vector.
13057 (print_converted_chars_to_obstack): Likewise.
13058 (generic_printstr): Likewise.
13060 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13062 * xml-support.h (struct gdb_xml_value): Add constructor.
13063 <value>: Change type to unique_xmalloc_ptr.
13064 (gdb_xml_value_s): Remove typedef.
13065 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13066 (gdb_xml_element_start_handler): Change parameter type to
13068 (xml_find_attribute): Likewise.
13069 * xml-support.c (xml_find_attribute): Change parameter type to
13070 std::vector and adjust.
13071 (gdb_xml_values_cleanup): Remove.
13072 (gdb_xml_parser::start_element): Adjust to std::vector.
13073 (xinclude_start_include): Change paraeter type to std::vector
13075 * btrace.c (check_xml_btrace_version): Likewise.
13076 (parse_xml_btrace_block): Likewise.
13077 (parse_xml_btrace_pt_config_cpu): Likewise.
13078 (parse_xml_btrace_pt): Likewise.
13079 (parse_xml_btrace_conf_bts): Likewise.
13080 (parse_xml_btrace_conf_pt): Likewise.
13081 * memory-map.c (memory_map_start_memory): Likewise.
13082 (memory_map_start_property): Likewise.
13083 * osdata.c (osdata_start_osdata): Likewise.
13084 (osdata_start_item): Likewise.
13085 (osdata_start_column): Likewise.
13086 * remote.c (start_thread): Likewise.
13087 * solib-aix.c (library_list_start_library): Likewise.
13088 (library_list_start_list): Likewise.
13089 * solib-svr4.c (library_list_start_library): Likewise.
13090 (svr4_library_list_start_list): Likewise.
13091 * solib-target.c (library_list_start_segment): Likewise.
13092 (library_list_start_section): Likewise.
13093 (library_list_start_library): Likewise.
13094 (library_list_start_list): Likewise.
13095 * tracepoint.c (traceframe_info_start_memory): Likewise.
13096 (traceframe_info_start_tvar): Likewise.
13097 * xml-syscall.c (syscall_start_syscall): Likewise.
13098 * xml-tdesc.c (tdesc_start_target): Likewise.
13099 (tdesc_start_feature): Likewise.
13100 (tdesc_start_reg): Likewise.
13101 (tdesc_start_union): Likewise.
13102 (tdesc_start_struct): Likewise.
13103 (tdesc_start_flags): Likewise.
13104 (tdesc_start_enum): Likewise.
13105 (tdesc_start_field): Likewise.
13106 (tdesc_start_enum_value): Likewise.
13107 (tdesc_start_vector): Likewise.
13109 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13111 * extension.h (struct xmethod_worker) <clone>: Remove.
13112 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13114 (python_xmethod_worker::clone): Remove.
13115 * valops.c (find_overload_match): Use std::move instead of
13118 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13120 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13121 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13122 <free_xmethod_worker_data>: Remove.
13123 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13124 <get_xmethod_arg_types>: Remove.
13125 <get_xmethod_result_type>: Remove.
13126 <invoke_xmethod>: Remove.
13127 * extension.c (new_xmethod_worker): Remove.
13128 (clone_xmethod_worker): Remove.
13129 (get_matching_xmethod_workers): Return void, pass std::vector by
13131 (get_xmethod_arg_types): Rename to...
13132 (xmethod_worker::get_arg_types): ... this, and adjust.
13133 (get_xmethod_result_type): Rename to...
13134 (xmethod_worker::get_result_type): ... this, and adjust.
13135 (invoke_xmethod): Remove.
13136 (free_xmethod_worker): Remove.
13137 (free_xmethod_worker_vec): Remove.
13138 * extension.h (enum ext_lang_rc): Move here from
13140 (struct xmethod_worker): Add constructor and destructor.
13143 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13144 virtual pure methods.
13145 <get_arg_types, get_result_type>: New methods.
13146 (xmethod_worker_ptr): Remove typedef.
13147 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13148 (xmethod_worker_vec): Remove typedef.
13149 (xmethod_worker_up): New typedef.
13150 (invoke_xmethod): Remove.
13151 (clone_xmethod_worker): Remove.
13152 (free_xmethod_worker): Remove.
13153 (free_xmethod_worker_vec): Remove.
13154 (get_xmethod_arg_types): Remove.
13155 (get_xmethod_result_type): Remove.
13156 * valops.c (find_method_list): Use std::vector, don't use
13157 intermediate vector.
13158 (value_find_oload_method_list): Use std::vector.
13159 (find_overload_match): Use std::vector.
13160 (find_oload_champ): Use std::vector.
13161 * value.c (value_free): Use operator delete.
13162 (value_of_xmethod): Rename to...
13163 (value_from_xmethod): ... this. Don't assign
13164 xmethod_worker::value, take rvalue-reference.
13165 (result_type_of_xmethod): Adjust.
13166 (call_xmethod): Adjust.
13167 * value.h: Include extension.h.
13168 (struct xmethod_worker): Don't forward-declare.
13169 (value_of_xmethod): Rename to...
13170 (value_from_xmethod): ... this, take rvalue-reference.
13171 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13172 (struct python_xmethod_worker): ... this, add constructor and
13174 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13175 (gdbpy_free_xmethod_worker_data): Rename to...
13176 (python_xmethod_worker::~python_xmethod_worker): ... this and
13178 (gdbpy_clone_xmethod_worker_data): Rename to...
13179 (python_xmethod_worker::clone): ... this and adjust.
13180 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13182 (gdbpy_get_xmethod_arg_types): Rename to...
13183 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13184 (gdbpy_get_xmethod_result_type): Rename to...
13185 (python_xmethod_worker::do_get_result_type): ... this and
13187 (gdbpy_invoke_xmethod): Rename to...
13188 (python_xmethod_worker::invoke): ... this and adjust.
13189 (new_python_xmethod_worker): Rename to...
13190 (python_xmethod_worker::python_xmethod_worker): ... this and
13192 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13194 (gdbpy_free_xmethod_worker_data): Remove.
13195 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13196 (gdbpy_get_xmethod_arg_types): Remove.
13197 (gdbpy_get_xmethod_result_type): Remove.
13198 (gdbpy_invoke_xmethod): Remove.
13199 * python/python.c (python_extension_ops): Remove obsolete
13202 2018-01-05 Pedro Alves <palves@redhat.com>
13205 * common/signals-state-save-restore.c
13206 (save_original_signals_state): New parameter 'quiet'. Warn if we
13207 find a custom handler preinstalled, instead of internal erroring.
13208 But only warn if !quiet.
13209 * common/signals-state-save-restore.h
13210 (save_original_signals_state): New parameter 'quiet'.
13211 * main.c (captured_main_1): Move save_original_signals_state call
13212 after option handling, and pass QUIET.
13214 2018-01-05 Pedro Alves <palves@redhat.com>
13216 * spu-tdep.c (spu_catch_start): Pass
13217 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13219 2018-01-05 Pedro Alves <palves@redhat.com>
13222 * ada-lang.c (literal_symbol_name_matcher): New function.
13223 (ada_get_symbol_name_matcher): Use it for
13224 symbol_name_match_type::SEARCH_NAME.
13225 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13226 it down instead of assuming symbol_name_match_type::FULL.
13227 * block.h (block_lookup_symbol): New parameter 'match_type'.
13228 * c-valprint.c (print_unpacked_pointer): Use
13229 lookup_symbol_search_name instead of lookup_symbol.
13230 * compile/compile-object-load.c (get_out_value_type): Pass down
13231 symbol_name_match_type::SEARCH_NAME.
13232 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13233 symbol_name_match_type::FULL.
13234 * cp-support.c (cp_get_symbol_name_matcher): Handle
13235 symbol_name_match_type::SEARCH_NAME.
13236 * infrun.c (insert_exception_resume_breakpoint): Use
13237 lookup_symbol_search_name.
13238 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13239 * psymtab.c (maintenance_check_psymtabs): Use
13240 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13241 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13242 SYMBOL_SEARCH_NAME.
13243 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13244 if symbol_name_match_type::SEARCH_NAME.
13245 (lookup_symbol_in_language): Pass down
13246 symbol_name_match_type::FULL.
13247 (lookup_symbol_search_name): New.
13248 (lookup_language_this): Pass down
13249 symbol_name_match_type::SEARCH_NAME.
13250 (lookup_symbol_aux, lookup_local_symbol): New parameter
13251 'match_type'. Pass it down.
13252 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13253 (lookup_symbol_search_name): New declaration.
13254 (lookup_symbol_in_block): New 'match_type' parameter.
13256 2018-01-05 Pedro Alves <palves@redhat.com>
13259 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13261 (ada_lookup_symbol): Reimplement in terms of
13262 ada_lookup_symbol_list, bits factored out from
13263 ada_lookup_encoded_symbol.
13265 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13267 * ada-exp.y (write_object_renaming): When subscripting an array
13268 using a symbol as the index, pass the block in call to
13269 ada_lookup_encoded_symbol when looking that symbol up.
13271 2018-01-05 Jerome Guitton <guitton@adacore.com>
13273 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13276 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13278 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13279 the case where VALUE_LVAL (val0) is not lval_memory.
13281 2018-01-05 Xavier Roirand <roirand@adacore.com>
13283 * ada-valprint.c (print_optional_low_bound): Handle
13284 character-indexed array printing like boolean-indexed array
13287 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13289 * NEWS: Create a new section for the next release branch.
13290 Rename the section of the current branch, now that it has
13293 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13295 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13296 * version.in: Bump version to 8.1.50.DATE-git.
13298 2018-01-03 Xavier Roirand <roirand@adacore.com>
13300 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13302 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13304 (default_exception_support_info) <catch_handlers_sym>: Add field.
13305 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13306 (ada_exception_name_addr_1): Add "catch handlers" handling.
13307 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13308 Update all callers.
13309 (create_excep_cond_exprs) <ex>: Add parameter.
13310 (re_set_exception): Update create_excep_cond_exprs call.
13311 (print_it_exception, print_one_exception, print_mention_exception)
13312 (print_recreate_exception): Add "catch handler" handling.
13313 (allocate_location_catch_handlers, re_set_catch_handlers)
13314 (check_status_catch_handlers, print_it_catch_handlers)
13315 (print_one_catch_handlers, print_mention_catch_handlers)
13316 (print_recreate_catch_handlers): New function.
13317 (catch_handlers_breakpoint_ops): New variable.
13318 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13319 Add parameter. Add "catch handler" handling.
13320 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13321 Add "catch handler" handling.
13322 (ada_exception_catchpoint_cond_string): Add "catch handler"
13324 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13326 (catch_ada_handlers_command): New function.
13327 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13328 operations structure.
13329 (_initialize_ada_language): Add "catch handlers" command entry.
13330 * NEWS: Document "catch handlers" feature.
13332 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13334 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13335 account when creating the array type of the slice.
13336 (ada_value_slice): Likewise.
13338 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13340 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13342 (create_array_type_with_stride): Add byte_stride_prop parameter.
13343 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13344 New parameter. Update all callers in this file.
13345 (array_type_has_dynamic_stride): New function.
13346 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13347 of arrays with dynamic byte strides.
13348 * dwarf2read.c (read_array_type): Add support for dynamic
13349 DW_AT_byte_stride attributes.
13351 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13353 * dwarf2read.c (read_unspecified_type): Treat
13354 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13356 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13358 Update copyright year range in all GDB files.
13360 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13362 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13363 and gdb/testsuite/gdb.base/step-line.c.
13365 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13367 * copyright.py (main): Dump the contents of
13368 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13369 even if BY_HAND is empty.
13371 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13373 * top.c (print_gdb_version): Update Copyright year in version
13376 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13378 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
13380 For older changes see ChangeLog-2017.
13386 version-control: never