Use GNU style for metasyntactic variables in gdb
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
65e65158
TT
12018-09-16 Tom Tromey <tom@tromey.com>
2
3 * top.c (new_ui_command): Use GNU style for metasyntactic
4 variables.
5 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
6 variables.
7 * maint.c (maintenance_translate_address): Remove "<>" around
8 text.
9 * interps.c (interpreter_exec_cmd): Use GNU style for
10 metasyntactic variables.
11 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
12 metasyntactic variables.
13 * tracepoint.c (tfind_range_command): Use GNU style for
14 metasyntactic variables.
15 (tfind_outside_command): Likewise.
16 (_initialize_tracepoint): Likewise.
17 * remote.c (extended_remote_target::create_inferior): Use GNU
18 style for metasyntactic variables.
19 * sparc64-tdep.c (adi_examine_command): Use GNU style for
20 metasyntactic variables.
21 (adi_assign_command): Likewise.
22
f4bab6ff
TT
232018-09-16 Tom Tromey <tom@tromey.com>
24
25 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
26 metasyntactic variables. Print message if no disassembler options
27 are available.
28
cbaaa0ca
TT
292018-09-15 Tom Tromey <tom@tromey.com>
30
31 * infcmd.c (get_inferior_args): Return const char *.
32 * inferior.h (get_inferior_args): Return type now const.
33 * linux-tdep.c (linux_fill_prpsinfo): Update.
34 * procfs.c (procfs_target::make_corefile_notes): Update.
35
a3a6aef4
TT
362018-09-07 Tom Tromey <tom@tromey.com>
37
38 * python/python.c (execute_gdb_command): Call bpstat_do_actions
39 inside the TRY.
40
f70e088f
SL
412018-09-14 Sandra Loosemore <sandra@codesourcery.com>
42
43 * nios2-tdep.c (nios2_type_align): New.
44 (nios2_gdb_arch_init): Install type_align hook.
45
2fabdf33
AB
462018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
47
48 * eval.c (fake_method::fake_method): Call xzalloc directly for a
49 type that is neither object file owned, nor gdbarch owned.
50 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
51 gdbarch is non-NULL.
52 (alloc_type_instance): Allocate non-objfile owned types on the
53 gdbarch obstack.
54 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
55 using TYPE_ALLOC to ensure memory is allocated on the correct
56 obstack.
57 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
58 obstack, or the gdbarch obstack.
59 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
60
b4b08fa2
TT
612018-09-14 Tom Tromey <tom@tromey.com>
62
63 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
64 block.
65
87b240d4
TT
662018-09-14 Tom Tromey <tom@tromey.com>
67
68 * nat/fork-inferior.c (get_startup_shell): Remove "static".
69
7d221512
TT
702018-09-13 Tom Tromey <tom@tromey.com>
71
72 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
73 static.
74
97e67fc6
TT
752018-09-13 Tom Tromey <tom@tromey.com>
76
77 * exec.c (try_open_exec_file): Use std::string.
78
803c08d0
TT
792018-09-13 Tom Tromey <tom@tromey.com>
80
81 * utils.h (gdb_bfd_errmsg): Return std::string.
82 * exec.c (exec_file_attach): Update.
83 * compile/compile-object-load.c (compile_object_load): Update.
84 * utils.c (gdb_bfd_errmsg): Return std::string.
85
5b4cbbe3
TT
862018-09-13 Tom Tromey <tom@tromey.com>
87
88 * procfs.c (struct procinfo_deleter): New.
89 (procinfo_up): New typedef.
90 (do_destroy_procinfo_cleanup): Remove.
91 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
92
db68fbe2
TT
932018-09-13 Tom Tromey <tom@tromey.com>
94
95 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
96
0ae1a321
SM
972018-09-13 Simon Marchi <simon.marchi@ericsson.com>
982018-09-13 Tom Tromey <tom@tromey.com>
99
100 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
101 (pspy_get_objfiles): New function.
102 (progspace_object_methods): New.
103 (pspace_object_type): Add tp_methods callback.
104 * python/python-internal.h (build_objfiles_list): New
105 declaration.
106 * python/python.c (build_objfiles_list): New function.
107 (gdbpy_objfiles): Implement using build_objfiles_list.
108 * NEWS: Mention the Progspace.objfiles method.
109
a40bf0c2
SM
1102018-09-13 Simon Marchi <simon.marchi@ericsson.com>
111
112 * python/py-inferior.c (infpy_get_progspace): New function.
113 (inferior_object_getset): Add progspace property.
114 * NEWS: Mention the new property.
115
4a3fe98f
TT
1162018-09-13 Tom Tromey <tom@tromey.com>
117
118 PR rust/23650:
119 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
120
098b2108
TT
1212018-09-13 Tom Tromey <tom@tromey.com>
122
123 PR rust/23626:
124 * rust-lang.c (rust_enum_variant): Now static.
125 (rust_empty_enum_p): New function.
126 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
127 Handle empty enum.
128
1256af7d
SM
1292018-09-13 Simon Marchi <simon.marchi@ericsson.com>
130
131 * python/py-inferior.c (infpy_repr): New.
132 (inferior_object_type): Register infpy_repr.
133 * python/py-objfile.c (objfpy_repr): New.
134 (objfile_object_type): Register objfpy_repr.
135
f117a62c
JB
1362018-09-12 John Baldwin <jhb@FreeBSD.org>
137
138 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
139
88f22c34
JB
1402018-09-12 John Baldwin <jhb@FreeBSD.org>
141
142 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
143 typo.
144
3c025cfe
SDJ
1452018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
146
147 * common/common-utils.c: Don't include '<sys/stat.h>'.
148 (is_regular_file): Move to...
149 * common/filestuff.c (is_regular_file): ... here.
150 * common/common-utils.h (is_regular_file): Move to...
151 * common/filestuff.h (is_regular_file): ... here.
152
3e68067f
SM
1532018-09-12 Simon Marchi <simon.marchi@ericsson.com>
154
155 * skip.c (debug_skip): New variable.
156 (skiplist_entry::do_skip_file_p): Add debug output.
157 (skiplist_entry::do_skip_gfile_p): Likewise.
158 (skiplist_entry::skip_function_p): Likewise.
159 (_initialize_step_skip): Create debug command.
160 * NEWS: Mention set/show debug skip.
161
d6be54ef
XR
1622018-09-11 Xavier Roirand <roirand@adacore.com>
163
164 * darwin-nat.c (should_disable_startup_with_shell):
165 New function.
166 (darwin_nat_target::create_inferior): Add call.
167
de1ec836
XR
1682018-09-11 Xavier Roirand <roirand@adacore.com>
169
170 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
171 inf_port, msg_state>: Initialize.
172 (struct darwin_thread_info) <signaled, single_step>: Change
173 type and initialize.
174 (struct darwin_thread_info) <event>: Initialize.
175
e2fc52e7
SDJ
1762018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
177
178 PR gdb/23555
179 PR gdb/23558
180 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
181 guesses.
182
5e8754f9
SDJ
1832018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
184
185 Revert:
186 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
187
188 PR gdb/23555
189 PR gdb/23558
190 * gnulib/aclocal.m4: Regenerate.
191 * gnulib/config.in: Regenerate.
192 * gnulib/configure: Regenerate.
193 * gnulib/import/Makefile.am: Update.
194 * gnulib/import/Makefile.in: Update.
195 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
196 * gnulib/import/_Noreturn.h: ... this.
197 * gnulib/import/alloca.in.h: Update.
198 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
199 * gnulib/import/arg-nonnull.h: ... this.
200 * gnulib/import/assure.h: Update.
201 * gnulib/import/at-func.c: Update.
202 * gnulib/import/basename-lgpl.c: Update.
203 * gnulib/import/extra/snippet/c++defs.h: Rename to...
204 * gnulib/import/c++defs.h: ... this.
205 * gnulib/import/canonicalize-lgpl.c: Update.
206 * gnulib/import/cdefs.h: Update.
207 * gnulib/import/chdir-long.c: Update.
208 * gnulib/import/chdir-long.h: Update.
209 * gnulib/import/cloexec.c: Update.
210 * gnulib/import/cloexec.h: Update.
211 * gnulib/import/close.c: Update.
212 * gnulib/import/closedir.c: Update.
213 * gnulib/import/config.charset: Update.
214 * gnulib/import/dirent-private.h: Update.
215 * gnulib/import/dirent.in.h: Update.
216 * gnulib/import/dirfd.c: Update.
217 * gnulib/import/dirname-lgpl.c: Update.
218 * gnulib/import/dirname.h: Update.
219 * gnulib/import/dosname.h: Update.
220 * gnulib/import/dup-safer-flag.c: Update.
221 * gnulib/import/dup-safer.c: Update.
222 * gnulib/import/dup.c: Update.
223 * gnulib/import/dup2.c: Update.
224 * gnulib/import/errno.in.h: Update.
225 * gnulib/import/error.c: Update.
226 * gnulib/import/error.h: Update.
227 * gnulib/import/exitfail.c: Update.
228 * gnulib/import/exitfail.h: Update.
229 * gnulib/import/extra/update-copyright: Update.
230 * gnulib/import/fchdir.c: Update.
231 * gnulib/import/fcntl.c: Update.
232 * gnulib/import/fcntl.in.h: Update.
233 * gnulib/import/fd-hook.c: Update.
234 * gnulib/import/fd-hook.h: Update.
235 * gnulib/import/fd-safer-flag.c: Update.
236 * gnulib/import/fd-safer.c: Update.
237 * gnulib/import/fdopendir.c: Update.
238 * gnulib/import/filename.h: Update.
239 * gnulib/import/filenamecat-lgpl.c: Update.
240 * gnulib/import/filenamecat.h: Update.
241 * gnulib/import/flexmember.h: Update.
242 * gnulib/import/float+.h: Update.
243 * gnulib/import/float.c: Update.
244 * gnulib/import/float.in.h: Update.
245 * gnulib/import/fnmatch.c: Update.
246 * gnulib/import/fnmatch.in.h: Update.
247 * gnulib/import/fnmatch_loop.c: Update.
248 * gnulib/import/fpucw.h: Update.
249 * gnulib/import/frexp.c: Update.
250 * gnulib/import/frexpl.c: Update.
251 * gnulib/import/fstat.c: Update.
252 * gnulib/import/fstatat.c: Update.
253 * gnulib/import/getcwd-lgpl.c: Update.
254 * gnulib/import/getcwd.c: Update.
255 * gnulib/import/getdtablesize.c: Update.
256 * gnulib/import/getlogin_r.c: Update.
257 * gnulib/import/getprogname.c: Update.
258 * gnulib/import/getprogname.h: Update.
259 * gnulib/import/gettext.h: Update.
260 * gnulib/import/gettimeofday.c: Update.
261 * gnulib/import/glob-libc.h: Update.
262 * gnulib/import/glob.c: Update.
263 * gnulib/import/glob.in.h: Update.
264 * gnulib/import/glob_internal.h: Update.
265 * gnulib/import/glob_pattern_p.c: Update.
266 * gnulib/import/globfree.c: Update.
267 * gnulib/import/hard-locale.c: Update.
268 * gnulib/import/hard-locale.h: Update.
269 * gnulib/import/intprops.h: Update.
270 * gnulib/import/inttypes.in.h: Update.
271 * gnulib/import/isnan.c: Update.
272 * gnulib/import/isnand-nolibm.h: Update.
273 * gnulib/import/isnand.c: Update.
274 * gnulib/import/isnanl-nolibm.h: Update.
275 * gnulib/import/isnanl.c: Update.
276 * gnulib/import/itold.c: Update.
277 * gnulib/import/libc-config.h: Update.
278 * gnulib/import/limits.in.h: Update.
279 * gnulib/import/localcharset.c: Update.
280 * gnulib/import/localcharset.h: Update.
281 * gnulib/import/localtime-buffer.c: Update.
282 * gnulib/import/localtime-buffer.h: Update.
283 * gnulib/import/lstat.c: Update.
284 * gnulib/import/m4/00gnulib.m4: Update.
285 * gnulib/import/m4/__inline.m4: Update.
286 * gnulib/import/m4/absolute-header.m4: Update.
287 * gnulib/import/m4/alloca.m4: Update.
288 * gnulib/import/m4/builtin-expect.m4: Update.
289 * gnulib/import/m4/canonicalize.m4: Update.
290 * gnulib/import/m4/chdir-long.m4: Update.
291 * gnulib/import/m4/close.m4: Update.
292 * gnulib/import/m4/closedir.m4: Update.
293 * gnulib/import/m4/configmake.m4: Update.
294 * gnulib/import/m4/d-ino.m4: Update.
295 * gnulib/import/m4/d-type.m4: Update.
296 * gnulib/import/m4/dirent_h.m4: Update.
297 * gnulib/import/m4/dirfd.m4: Update.
298 * gnulib/import/m4/dirname.m4: Update.
299 * gnulib/import/m4/double-slash-root.m4: Update.
300 * gnulib/import/m4/dup.m4: Update.
301 * gnulib/import/m4/dup2.m4: Update.
302 * gnulib/import/m4/eealloc.m4: Update.
303 * gnulib/import/m4/environ.m4: Update.
304 * gnulib/import/m4/errno_h.m4: Update.
305 * gnulib/import/m4/error.m4: Update.
306 * gnulib/import/m4/exponentd.m4: Update.
307 * gnulib/import/m4/exponentl.m4: Update.
308 * gnulib/import/m4/extensions.m4: Update.
309 * gnulib/import/m4/extern-inline.m4: Update.
310 * gnulib/import/m4/fchdir.m4: Update.
311 * gnulib/import/m4/fcntl-o.m4: Update.
312 * gnulib/import/m4/fcntl.m4: Update.
313 * gnulib/import/m4/fcntl_h.m4: Update.
314 * gnulib/import/m4/fdopendir.m4: Update.
315 * gnulib/import/m4/filenamecat.m4: Update.
316 * gnulib/import/m4/flexmember.m4: Update.
317 * gnulib/import/m4/float_h.m4: Update.
318 * gnulib/import/m4/fnmatch.m4: Update.
319 * gnulib/import/m4/fnmatch_h.m4: Update.
320 * gnulib/import/m4/fpieee.m4: Update.
321 * gnulib/import/m4/frexp.m4: Update.
322 * gnulib/import/m4/frexpl.m4: Update.
323 * gnulib/import/m4/fstat.m4: Update.
324 * gnulib/import/m4/fstatat.m4: Update.
325 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
326 * gnulib/import/m4/getcwd-path-max.m4: Update.
327 * gnulib/import/m4/getcwd.m4: Update.
328 * gnulib/import/m4/getdtablesize.m4: Update.
329 * gnulib/import/m4/getlogin.m4: Update.
330 * gnulib/import/m4/getlogin_r.m4: Update.
331 * gnulib/import/m4/getpagesize.m4: Update.
332 * gnulib/import/m4/getprogname.m4: Update.
333 * gnulib/import/m4/gettimeofday.m4: Update.
334 * gnulib/import/m4/glibc21.m4: Update.
335 * gnulib/import/m4/glob.m4: Update.
336 * gnulib/import/m4/glob_h.m4: Update.
337 * gnulib/import/m4/gnulib-cache.m4: Update.
338 * gnulib/import/m4/gnulib-common.m4: Update.
339 * gnulib/import/m4/gnulib-comp.m4: Update.
340 * gnulib/import/m4/gnulib-tool.m4: Update.
341 * gnulib/import/m4/hard-locale.m4: Update.
342 * gnulib/import/m4/include_next.m4: Update.
343 * gnulib/import/m4/inttypes-pri.m4: Update.
344 * gnulib/import/m4/inttypes.m4: Update.
345 * gnulib/import/m4/isnand.m4: Update.
346 * gnulib/import/m4/isnanl.m4: Update.
347 * gnulib/import/m4/largefile.m4: Update.
348 * gnulib/import/m4/limits-h.m4: Update.
349 * gnulib/import/m4/localcharset.m4: Update.
350 * gnulib/import/m4/locale-fr.m4: Update.
351 * gnulib/import/m4/locale-ja.m4: Update.
352 * gnulib/import/m4/locale-zh.m4: Update.
353 * gnulib/import/m4/localtime-buffer.m4: Update.
354 * gnulib/import/m4/longlong.m4: Update.
355 * gnulib/import/m4/lstat.m4: Update.
356 * gnulib/import/m4/malloc.m4: Update.
357 * gnulib/import/m4/malloca.m4: Update.
358 * gnulib/import/m4/math_h.m4: Update.
359 * gnulib/import/m4/mbrtowc.m4: Update.
360 * gnulib/import/m4/mbsinit.m4: Update.
361 * gnulib/import/m4/mbsrtowcs.m4: Update.
362 * gnulib/import/m4/mbstate_t.m4: Update.
363 * gnulib/import/m4/memchr.m4: Update.
364 * gnulib/import/m4/memmem.m4: Update.
365 * gnulib/import/m4/mempcpy.m4: Update.
366 * gnulib/import/m4/memrchr.m4: Update.
367 * gnulib/import/m4/mkdir.m4: Update.
368 * gnulib/import/m4/mkstemp.m4: Update.
369 * gnulib/import/m4/mmap-anon.m4: Update.
370 * gnulib/import/m4/mode_t.m4: Update.
371 * gnulib/import/m4/msvc-inval.m4: Update.
372 * gnulib/import/m4/msvc-nothrow.m4: Update.
373 * gnulib/import/m4/multiarch.m4: Update.
374 * gnulib/import/m4/nocrash.m4: Update.
375 * gnulib/import/m4/off_t.m4: Update.
376 * gnulib/import/m4/onceonly.m4: Update.
377 * gnulib/import/m4/open-cloexec.m4: Update.
378 * gnulib/import/m4/open.m4: Update.
379 * gnulib/import/m4/openat.m4: Update.
380 * gnulib/import/m4/opendir.m4: Update.
381 * gnulib/import/m4/pathmax.m4: Update.
382 * gnulib/import/m4/rawmemchr.m4: Update.
383 * gnulib/import/m4/readdir.m4: Update.
384 * gnulib/import/m4/readlink.m4: Update.
385 * gnulib/import/m4/realloc.m4: Update.
386 * gnulib/import/m4/rename.m4: Update.
387 * gnulib/import/m4/rewinddir.m4: Update.
388 * gnulib/import/m4/rmdir.m4: Update.
389 * gnulib/import/m4/save-cwd.m4: Update.
390 * gnulib/import/m4/secure_getenv.m4: Update.
391 * gnulib/import/m4/setenv.m4: Update.
392 * gnulib/import/m4/signal_h.m4: Update.
393 * gnulib/import/m4/ssize_t.m4: Update.
394 * gnulib/import/m4/stat-time.m4: Update.
395 * gnulib/import/m4/stat.m4: Update.
396 * gnulib/import/m4/std-gnu11.m4: Update.
397 * gnulib/import/m4/stdbool.m4: Update.
398 * gnulib/import/m4/stddef_h.m4: Update.
399 * gnulib/import/m4/stdint.m4: Update.
400 * gnulib/import/m4/stdio_h.m4: Update.
401 * gnulib/import/m4/stdlib_h.m4: Update.
402 * gnulib/import/m4/strchrnul.m4: Update.
403 * gnulib/import/m4/strdup.m4: Update.
404 * gnulib/import/m4/strerror.m4: Update.
405 * gnulib/import/m4/string_h.m4: Update.
406 * gnulib/import/m4/strstr.m4: Update.
407 * gnulib/import/m4/strtok_r.m4: Update.
408 * gnulib/import/m4/sys_socket_h.m4: Update.
409 * gnulib/import/m4/sys_stat_h.m4: Update.
410 * gnulib/import/m4/sys_time_h.m4: Update.
411 * gnulib/import/m4/sys_types_h.m4: Update.
412 * gnulib/import/m4/tempname.m4: Update.
413 * gnulib/import/m4/time_h.m4: Update.
414 * gnulib/import/m4/unistd-safer.m4: Update.
415 * gnulib/import/m4/unistd_h.m4: Update.
416 * gnulib/import/m4/warn-on-use.m4: Update.
417 * gnulib/import/m4/wchar_h.m4: Update.
418 * gnulib/import/m4/wchar_t.m4: Update.
419 * gnulib/import/m4/wctype_h.m4: Update.
420 * gnulib/import/m4/wint_t.m4: Update.
421 * gnulib/import/malloc.c: Update.
422 * gnulib/import/malloc/scratch_buffer.h: Update.
423 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
424 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
425 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
426 * gnulib/import/malloca.c: Update.
427 * gnulib/import/malloca.h: Update.
428 * gnulib/import/malloca.valgrind: Update.
429 * gnulib/import/math.in.h: Update.
430 * gnulib/import/mbrtowc.c: Update.
431 * gnulib/import/mbsinit.c: Update.
432 * gnulib/import/mbsrtowcs-impl.h: Update.
433 * gnulib/import/mbsrtowcs-state.c: Update.
434 * gnulib/import/mbsrtowcs.c: Update.
435 * gnulib/import/memchr.c: Update.
436 * gnulib/import/memmem.c: Update.
437 * gnulib/import/mempcpy.c: Update.
438 * gnulib/import/memrchr.c: Update.
439 * gnulib/import/mkdir.c: Update.
440 * gnulib/import/mkstemp.c: Update.
441 * gnulib/import/msvc-inval.c: Update.
442 * gnulib/import/msvc-inval.h: Update.
443 * gnulib/import/msvc-nothrow.c: Update.
444 * gnulib/import/msvc-nothrow.h: Update.
445 * gnulib/import/open.c: Update.
446 * gnulib/import/openat-die.c: Update.
447 * gnulib/import/openat-priv.h: Update.
448 * gnulib/import/openat-proc.c: Update.
449 * gnulib/import/openat.c: Update.
450 * gnulib/import/openat.h: Update.
451 * gnulib/import/opendir.c: Update.
452 * gnulib/import/pathmax.h: Update.
453 * gnulib/import/pipe-safer.c: Update.
454 * gnulib/import/rawmemchr.c: Update.
455 * gnulib/import/readdir.c: Update.
456 * gnulib/import/readlink.c: Update.
457 * gnulib/import/realloc.c: Update.
458 * gnulib/import/ref-add.sin: Update.
459 * gnulib/import/ref-del.sin: Update.
460 * gnulib/import/rename.c: Update.
461 * gnulib/import/rewinddir.c: Update.
462 * gnulib/import/rmdir.c: Update.
463 * gnulib/import/same-inode.h: Update.
464 * gnulib/import/save-cwd.c: Update.
465 * gnulib/import/save-cwd.h: Update.
466 * gnulib/import/scratch_buffer.h: Update.
467 * gnulib/import/secure_getenv.c: Update.
468 * gnulib/import/setenv.c: Update.
469 * gnulib/import/signal.in.h: Update.
470 * gnulib/import/stat-time.c: Update.
471 * gnulib/import/stat-time.h: Update.
472 * gnulib/import/stat-w32.c: Update.
473 * gnulib/import/stat-w32.h: Update.
474 * gnulib/import/stat.c: Update.
475 * gnulib/import/stdbool.in.h: Update.
476 * gnulib/import/stddef.in.h: Update.
477 * gnulib/import/stdint.in.h: Update.
478 * gnulib/import/stdio.in.h: Update.
479 * gnulib/import/stdlib.in.h: Update.
480 * gnulib/import/str-two-way.h: Update.
481 * gnulib/import/strchrnul.c: Update.
482 * gnulib/import/strdup.c: Update.
483 * gnulib/import/streq.h: Update.
484 * gnulib/import/strerror-override.c: Update.
485 * gnulib/import/strerror-override.h: Update.
486 * gnulib/import/strerror.c: Update.
487 * gnulib/import/string.in.h: Update.
488 * gnulib/import/stripslash.c: Update.
489 * gnulib/import/strnlen1.c: Update.
490 * gnulib/import/strnlen1.h: Update.
491 * gnulib/import/strstr.c: Update.
492 * gnulib/import/strtok_r.c: Update.
493 * gnulib/import/sys_stat.in.h: Update.
494 * gnulib/import/sys_time.in.h: Update.
495 * gnulib/import/sys_types.in.h: Update.
496 * gnulib/import/tempname.c: Update.
497 * gnulib/import/tempname.h: Update.
498 * gnulib/import/time.in.h: Update.
499 * gnulib/import/unistd--.h: Update.
500 * gnulib/import/unistd-safer.h: Update.
501 * gnulib/import/unistd.in.h: Update.
502 * gnulib/import/unsetenv.c: Update.
503 * gnulib/import/verify.h: Update.
504 * gnulib/import/extra/snippet/warn-on-use.h: Update.
505 * gnulib/import/wchar.in.h: Update.
506 * gnulib/import/wctype.in.h: Update.
507 * gnulib/import/xalloc-oversized.h: Update.
508 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
509 "53e2c179f26a890fa6685af4b6c1397ee370433b".
510
8ec23583
SM
5112018-09-10 Simon Marchi <simon.marchi@ericsson.com>
512
513 * record-btrace.c (get_thread_current_frame): Remove
514 old_inferior_ptid.
515
1f5d1570
JG
5162018-09-10 Jerome Guitton <guitton@adacore.com>
517
518 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
519 with check_tag to 1 if and only if the type is tagged and the
520 component being searched cannot been found in the current
521 view. Otherwise, always call ada_to_fixed_type with
522 check_tag to 0.
523
d91e9ea8
XR
5242018-09-10 Xavier Roirand <roirand@adacore.com>
525
526 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
527 declaration.
528 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
529 * ada-varobj.c (ada_varobj_get_number_of_children,
530 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
531
cc330e39
XR
5322018-09-10 Xavier Roirand <roirand@adacore.com>
533
534 * ada-valprint.c (ada_value_print): Use type instead of
535 enclosing type.
536
b9c50e9a
XR
5372018-09-10 Xavier Roirand <roirand@adacore.com>
538
539 * ada-lang.c (ada_value_subscript): Handle case when parameter is
540 an array of access to unconstrained array.
541
736ade86
XR
5422018-09-10 Xavier Roirand <roirand@adacore.com>
543
544 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
545 (ada_check_typedef): Use it.
546
2963898f
XR
5472018-09-10 Xavier Roirand <roirand@adacore.com>
548
549 * ada-varobj.c (ada_varobj_describe_struct_child)
550 (ada_varobj_describe_child): Handle union case like struct one.
551
a154931e
TT
5522018-09-10 Tom Tromey <tom@tromey.com>
553
554 PR python/18380:
555 * python/python.c (_initialize_python): Make example in "python"
556 help work in Python 3.
557
23c4651c
EZ
5582018-09-10 Eli Zaretskii <eliz@gnu.org>
559
560 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
561 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
562 $(EXEEXT) to the script, as it is not a program.
563
a5c5eda7
SM
5642018-09-09 Simon Marchi <simon.marchi@ericsson.com>
565
566 * python/py-prettyprint.c (pretty_print_one_value): Return
567 gdbpy_ref<>.
568 (print_string_repr): Adjust.
569 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
570 * python/python-internal.h (apply_varobj_pretty_printer): Return
571 gdbpy_ref<>.
572 * varobj.c (varobj_value_get_print_value): Adjust.
573
332cf4c9
TT
5742018-09-08 Tom Tromey <tom@tromey.com>
575
576 PR python/16047:
577 * python/py-prettyprint.c (pretty_print_one_value): Check for
578 to_string method.
579
424da6cf
JB
5802018-09-08 Joel Brobecker <brobecker@adacore.com>
581
582 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
583 replace_operator_with_call.
584
95f39a5b
JB
5852018-09-08 Joel Brobecker <brobecker@adacore.com>
586
587 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
588
16b9eb7b
JB
5892018-09-08 Joel Brobecker <brobecker@adacore.com>
590
591 * ada-typeprint.c (print_range): Print the bounds using TYPE
592 rather than its TYPE_TARGET_TYPE.
593
d8ce9127
JB
5942018-09-08 Joel Brobecker <brobecker@adacore.com>
595
596 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
597 call to ada_to_fixed_value_create.
598
0d81f350
JG
5992018-09-08 Jerome Guitton <guitton@adacore.com>
600
601 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
602
57aff202
JB
6032018-09-08 Joel Brobecker <brobecker@adacore.com>
604
605 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
606 by calls to error.
607
fb44b1a7
JB
6082018-09-08 Joel Brobecker <brobecker@adacore.com>
609
610 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
611 Move update of loop variable "fi".
612
2a62dfa9
JB
6132018-09-08 Joel Brobecker <brobecker@adacore.com>
614
615 * ada-lang.c (value_assign_to_component): In the case of
616 big-endian targets, extract the bits of the given VAL
617 using an src_offset of zero if container is not a scalar.
618
739ab2e9
SS
6192018-09-06 Simon Ser <contact@emersion.fr>
620
621 PR gdb/23105
622 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
623 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
624 * fbsd-tdep.c (fbsd_make_note_desc): New.
625 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
626 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
627 * target.h (enum target_object) Add FreeBSD-specific
628 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
629
d82b3862
SM
6302018-09-06 Simon Marchi <simon.marchi@ericsson.com>
631
632 * compile/compile-c.h (generate_c_for_variable_locations):
633 Change reference to pointer.
634 * compile/compile-c-support.c (compile_program) <compute>:
635 Likewise.
636 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
637 (generate_c_for_for_one_variable): Likewise
638 (generate_c_for_variable_locations): Likewise
639 * compile/compile-c-types.c (compile_c_instance::convert_type):
640 Likewise
641 * compile/compile-cplus-symbols.c (convert_one_symbol):
642 std::move the scope passed to enter_scope.
643 * compile/compile-cplus-types.c
644 (compile_cplus_instance::enter_scope): Make parameter
645 rvalue-reference.
646 (compile_cplus_instance::new_scope): Change reference to
647 pointer.
648 (compile_cplus_instance::convert_type): Likewise
649 (compile_cplus_convert_typedef): std::move the scope passed to
650 enter_scope.
651 (compile_cplus_convert_struct_or_union): Likewise.
652 (compile_cplus_convert_enum): Likewise.
653 (compile_cplus_convert_namespace): Likewise.
654 * compile/compile-cplus.h (compile_cplus_instance)
655 <enter_scope>: Make parameter rvalue-reference.
656 * compile/compile-internal.h (compile_instance)
657 <get_cached_type>: Likewise
658 * compile/compile-loc2c.c (push): Likewise
659 (pushf): Likewise
660 (unary): Likewise
661 (binary): Likewise
662 (print_label): Likewise
663 (pushf_register_address): Likewise
664 (pushf_register): Likewise
665 (do_compile_dwarf_expr_to_c): Likewise
666 (compile_dwarf_expr_to_c): Likewise
667 (compile_dwarf_bounds_to_c): Likewise
668 * compile/compile.c (compile_instance::get_cached_type):
669 Likewise
670 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
671 (compile_dwarf_bounds_to_c): Likewise
672 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
673 (dwarf2_compile_property_to_c): Likewise
674 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
675 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
676 Likewise
677
cc5a5ae5
SM
6782018-09-06 Simon Marchi <simon.marchi@ericsson.com>
679
680 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
681 * tui/tui-data.c (init_content_element): Don't initialize it.
682
137be540
SM
6832018-09-06 Simon Marchi <simon.marchi@ericsson.com>
684
685 * tui/tui-data.h (struct tui_win_info)
686 <detail::opaque>: Remove.
687 * tui/tui-data.c (init_win_info): Remove assignment.
688
f1628857
TT
6892018-09-05 Tom Tromey <tom@tromey.com>
690
691 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
692 -Wformat-nonliteral.
693 * target-float.c (host_float_ops<T>::to_string)
694 (host_float_ops<T>::from_string): Use
695 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
696 * configure: Rebuild.
697
af39b1c2
SM
6982018-09-05 Simon Marchi <simon.marchi@ericsson.com>
699
700 * printcmd.c (printf_c_string): Use
701 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
702 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
703
081bca4d
TT
7042018-09-05 Tom Tromey <tom@tromey.com>
705
706 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
707
e4a62c65
TV
7082018-09-05 Tom de Vries <tdevries@suse.de>
709
710 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
711 with resolve_abstract_p == true.
712 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
713 defaulting to false. Propagate resolve_abstract_p to
714 dwarf2_fetch_die_loc_sect_off.
715 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
716 parameter, defaulting to false.
717 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
718 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
719 parameter.
720 * dwarf2read.h (struct die_info): Forward-declare.
721 (die_info_ptr): New typedef.
722 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
723
2b69821e
JB
7242018-09-05 Joel Brobecker <brobecker@adacore.com>
725
726 GDB 8.2 released.
727
fcc9b044
SDJ
7282018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
729 Pedro Alves <palves@redhat.com>
730
731 * gnulib/Makefile.in (aclocal_m4_deps): Move to
732 "aclocal-m4-deps.mk". Include file here.
733 $(srcdir)/aclocal.m4: Add "configure.ac".
734 * gnulib/aclocal-m4-deps.mk: New file.
735 * gnulib/update-gnulib.sh: Automatically update
736 "aclocal-m4-deps.mk".
737
d53d5436
TT
7382018-09-04 Tom Tromey <tom@tromey.com>
739
740 * configure: Rebuild.
741 * configure.ac: Remove multi-ice code.
742
8dc9fd87
TT
7432018-09-04 Tom Tromey <tom@tromey.com>
744
745 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
746 (ada-exp.o): Update.
747
3322c5d9
TT
7482018-09-04 Tom Tromey <tom@tromey.com>
749
750 * Makefile.in (printcmd.o, target-float.o): Remove.
751 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
752
ba2bf2aa
TT
7532018-09-04 Tom Tromey <tom@tromey.com>
754
755 * gnulib/Makefile.in: Remove obsolete comment.
756 * Makefile.in: Remove obsolete comment.
757
6c9d681b
AB
7582018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
759
760 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
761 line with '+'.
762
78a3b0fa
AB
7632018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
764
765 * riscv-tdep.c: Add 'prologue-value.h' include.
766 (struct riscv_unwind_cache): New struct.
767 (riscv_debug_unwinder): New global.
768 (riscv_scan_prologue): Update arguments, capture register details
769 from prologue scan.
770 (riscv_skip_prologue): Reformat arguments line, move end of
771 prologue calculation into riscv_scan_prologue.
772 (riscv_frame_cache): Update return type, create
773 riscv_unwind_cache, scan the prologue, and fill in remaining cache
774 details.
775 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
776 (riscv_frame_prev_register): Use the trad_frame within the
777 riscv_unwind_cache.
778 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
779 flag.
780
23e60e7a
AB
7812018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
782
783 * trad-frame.h (trad_frame_set_realreg): Declare.
784 (trad_frame_set_addr): Declare.
785 * trad-frame.c (trad_frame_set_realreg): Define new function.
786 (trad_frame_set_addr): Define new function.
787 (trad_frame_set_reg_realreg): Use new function.
788 (trad_frame_set_reg_addr): Use new function.
789
5c889512
KS
7902018-09-01 Keith Seitz <keiths@redhat.com>
791
792 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
793 pulongest instead of "%lld".
794 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
795 ATTRIBUTE_UNUSED.
796
c8c81635
TT
7972018-08-31 Tom Tromey <tom@tromey.com>
798
799 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
800 variant part type.
801
0c888588
PA
8022018-08-31 Pedro Alves <palves@redhat.com>
803
804 * gdbarch.h: Regenerate.
805
7ea65f08
PA
8062018-08-31 Pedro Alves <palves@redhat.com>
807
808 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
809 * target.h (Hardware watchpoint interfaces): Describe
810 continuable/steppable/non-steppable watchpoints.
811 * gdbarch.h, gdbarch.c: Regenerate.
812
7eb65faf
PA
8132018-08-31 Pedro Alves <palves@redhat.com>
814
815 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
816 Delete.
817 * s390-linux-nat.c
818 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
819 * target.h (target_ops::have_continuable_watchpoint): Delete.
820 (target_have_continuable_watchpoint): Delete.
821 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
822 * target-delegates.c: Regenerate.
823
dab999b1
SDJ
8242018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
825
826 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
827 the files present in "gnulib/import/m4/".
828
ff3a05b3
AB
8292018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
830
831 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
832 c.sw, c.swsp, and c.sdsp.
833
0b3f9efc
AB
8342018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
835
836 * riscv-tdep.c (struct riscv_inferior_data): Delete.
837 (riscv_read_misa_reg): Don't cache value read into inferior data.
838 (riscv_new_inferior_data): Delete.
839 (riscv_inferior_data_cleanup): Delete.
840 (riscv_inferior_data): Delete.
841 (riscv_invalidate_inferior_data): Delete.
842 (_initialize_riscv_tdep): Remove initialisation of inferior data.
843
a0dc02a6
SM
8442018-08-30 Simon Marchi <simon.marchi@ericsson.com>
845
846 * compile/compile-cplus-types.c
847 (compile_cplus_instance::leave_scope): Take the address of scope
848 object.
849 (compile_cplus_instance::convert_qualified_base): Compare quals
850 to 0.
851
fdad7678
KS
8522018-08-30 Keith Seitz <keiths@redhat.com>
853
854 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
855 Use "%s" and host_address_to_string instead of "%p" in printf.
856
078a0207
KS
8572018-08-29 Keith Seitz <keiths@redhat.com>
858
859 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
860 and compile-cplus-types.c.
861 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
862 * c-lang.c (cplus_language_defn): Set C++ compile functions.
863 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
864 Declare.
865 * compile/compile-c-support.c: Include compile-cplus.h.
866 (load_libcompile): Templatize.
867 (get_compile_context): "New" function.
868 (c_get_compile_context): Use get_compile_context.
869 (cplus_get_compile_context): New function.
870 (cplus_push_user_expression, cplus_pop_user_expression)
871 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
872 (cplus_compute_program): Define new structs/functions.
873 * compile/compile-cplus-symmbols.c: New file.
874 * compile/compile-cplus-types.c: New file.
875 * compile/compile-cplus.h: New file.
876 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
877 Declare.
878 * compile/compile-object-load.c (get_out_value_type): Use
879 strncmp_iw when comparing symbol names.
880 (compile_object_load): Add mst_bss and mst_data.
881 * compile/compile.c (_initialize_compile): Remove
882 -Wno-implicit-function-declaration from `compile_args'.
883 * compile/gcc-cp-plugin.h: New file.
884 * NEWS: Mention C++ compile support and new debug options.
885
fcaad03c
KS
8862018-08-29 Keith Seitz <keiths@redhat.com>
887
888 * linespec.c (collect_info::add_symbol): Make virtual.
889 (struct symbol_searcher_collect_info): New struct.
890 (symbol_searcher::find_all_symbols): New method.
891 * symtab.h (class symbol_searcher): New class.
892
7e41c8db
KS
8932018-08-29 Keith Seitz <keiths@redhat.com>
894
895 * linespec.c (struct linespec) <function_symbols, label_symbols>:
896 Change to vector of block_symbol. Update all users.
897 (struct collect_info) <symbols>: Likewise.
898 (collect_info::add_symbol): Take block_symbol as argument.
899 Update all callers.
900 (decode_compound_collector) <m_symbols>: Change type to vector
901 of block_symbol. Update all users.
902 (decode_compound_collector::operator ()): Change parameter type
903 to block_symbol.
904 (find_method, find_function_symbols, find_linespec_symbols)
905 (find_label_symbols_in_block, find_label_symbols): Change symbol
906 vectors to block_symbol vectors.
907 * symtab.h (symbol_found_callback_ftype): Change parameter type to
908 block_symbol.
909
63e8c3da
KS
9102018-08-29 Keith Seitz <keiths@redhat.com>
911
912 * linespec.c (symbolp): Remove typedef and VEC definitions.
913 (bound_minimal_symbol_d): Likewise.
914
4dedf84d
KS
9152018-08-29 Keith Seitz <keiths@redhat.com>
916
917 * linespec.c (decode_compound_collector::decode_compound_collector):
918 Remove initialization for `m_symtabs'.
919 (decode_compound_collector::release_symbols): Change return type
920 to std::vector. Update all callers.
921 (class decode_compound_collector) <m_symbols>: Change type to
922 std::vector.
923 (lookup_prefix_sym): Change return type to std::vector. Update all
924 callers.
925 (compare_symbols): Remove.
926 (std_compare_symbols): Rename to `compare_symbols'.
927 (find_method): Change `sym_classes' parameter to std::vector.
928 Update all callers. Use std::sort to sort sym_classes.
929 (find_linespec_symbols): Remove cleanup.
930
c2a031c5
KS
9312018-08-29 Keith Seitz <keiths@redhat.com>
932
933 * linespec.c (struct linespec) <minimal_symbols>: Change type to
934 std::vector. Update all users.
935 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
936 (struct collect_info) <minimal_symbols>: Likewise.
937 (compare_msymbols): Return bool. Change parameters to const
938 bound_minimal_symbol references.
939 (find_method, find_function_symbols, find_linespec_symbols): Change
940 `minsyms' parameter to std::vector. Update all callers.
941
3553eadc
KS
9422018-08-29 Keith Seitz <keiths@redhat.com>
943
944 * linespec.c (struct linespec) <label_symbols>: Change type to
945 std::vector. Update all users.
946 (find_label_symbols_in_block): Change `result' parameter to
947 std::vector. Update all callers.
948 (find_label_symbols): Return std::vector. Update all callers.
949
7243d011
KS
9502018-08-29 Keith Seitz <keiths@redhat.com>
951
952 * linespec.c (struct linespec) <function_symbols>: Change type to
953 std::vector. Update all users.
954 (struct collect_info) <function_symbols>: Likewise.
955 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
956 (std_compare_symbols): New function.
957 (find_method, find_function_symbols, find_linespec_symbols)
958 (find_label_symbols_in_block): Change `symbols' parameter to
959 std::vector. Update all callers.
960 (find_label_symbols): Likewise for `function_symbols' and
961 `label_funcs_ret'.
962
2a908241
KS
9632018-08-29 Keith Seitz <keiths@redhat.com>
964
965 * linespec.c (symtab_vector_up): Define.
966 (struct linespec) <file_symtabs>: Change type to std::vector *.
967 Update all uses.
968 (struct collect_info) <file_symtabs>: Likewise.
969 (collect_symtabs_from_filename): Return symtab_vector_up.
970 Update all callers.
971 (decode_objc): Remove cleanup.
972 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
973 (symtab_collector::release_symtabs): Return symtab_vector_up.
974 Update all callers.
975 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
976 Update all users.
977 (collect_symtabs_from_filename, symtabs_from_filename): Return
978 symtab_vector_up. Update all callers.
979
f6c4e3e8
TT
9802018-08-29 Tom Tromey <tom@tromey.com>
981
982 * csky-tdep.c (csky_analyze_prologue): Use
983 core_addr_to_string_nz.
984
73c13fe6
TT
9852018-08-29 Tom Tromey <tom@tromey.com>
986
987 * windows-nat.c (struct xlate_exception) <them>: Change type to
988 DWORD.
989 (xlate): Fix formatting. Remove last entry.
990 (struct xlate_exception, xlate): Comment out.
991 (windows_nat_target::resume): Use ranged for.
992
4d3928d7
JW
9932018-08-29 Jim Wilson <jimw@sifive.com>
994
995 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
996 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
997 of NT_PRFPREG.
998 (riscv_linux_nat_target::store_registers): Likewise.
999
7a6dbc2f
SDJ
10002018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1001
1002 PR gdb/23555
1003 PR gdb/23558
1004 * gnulib/aclocal.m4: Regenerate.
1005 * gnulib/config.in: Regenerate.
1006 * gnulib/configure: Regenerate.
1007 * gnulib/import/Makefile.am: Update.
1008 * gnulib/import/Makefile.in: Update.
1009 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1010 * gnulib/import/_Noreturn.h: ... this.
1011 * gnulib/import/alloca.in.h: Update.
1012 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1013 * gnulib/import/arg-nonnull.h: ... this.
1014 * gnulib/import/assure.h: Update.
1015 * gnulib/import/at-func.c: Update.
1016 * gnulib/import/basename-lgpl.c: Update.
1017 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1018 * gnulib/import/c++defs.h: ... this.
1019 * gnulib/import/canonicalize-lgpl.c: Update.
1020 * gnulib/import/cdefs.h: Update.
1021 * gnulib/import/chdir-long.c: Update.
1022 * gnulib/import/chdir-long.h: Update.
1023 * gnulib/import/cloexec.c: Update.
1024 * gnulib/import/cloexec.h: Update.
1025 * gnulib/import/close.c: Update.
1026 * gnulib/import/closedir.c: Update.
1027 * gnulib/import/config.charset: Update.
1028 * gnulib/import/dirent-private.h: Update.
1029 * gnulib/import/dirent.in.h: Update.
1030 * gnulib/import/dirfd.c: Update.
1031 * gnulib/import/dirname-lgpl.c: Update.
1032 * gnulib/import/dirname.h: Update.
1033 * gnulib/import/dosname.h: Update.
1034 * gnulib/import/dup-safer-flag.c: Update.
1035 * gnulib/import/dup-safer.c: Update.
1036 * gnulib/import/dup.c: Update.
1037 * gnulib/import/dup2.c: Update.
1038 * gnulib/import/errno.in.h: Update.
1039 * gnulib/import/error.c: Update.
1040 * gnulib/import/error.h: Update.
1041 * gnulib/import/exitfail.c: Update.
1042 * gnulib/import/exitfail.h: Update.
1043 * gnulib/import/extra/update-copyright: Update.
1044 * gnulib/import/fchdir.c: Update.
1045 * gnulib/import/fcntl.c: Update.
1046 * gnulib/import/fcntl.in.h: Update.
1047 * gnulib/import/fd-hook.c: Update.
1048 * gnulib/import/fd-hook.h: Update.
1049 * gnulib/import/fd-safer-flag.c: Update.
1050 * gnulib/import/fd-safer.c: Update.
1051 * gnulib/import/fdopendir.c: Update.
1052 * gnulib/import/filename.h: Update.
1053 * gnulib/import/filenamecat-lgpl.c: Update.
1054 * gnulib/import/filenamecat.h: Update.
1055 * gnulib/import/flexmember.h: Update.
1056 * gnulib/import/float+.h: Update.
1057 * gnulib/import/float.c: Update.
1058 * gnulib/import/float.in.h: Update.
1059 * gnulib/import/fnmatch.c: Update.
1060 * gnulib/import/fnmatch.in.h: Update.
1061 * gnulib/import/fnmatch_loop.c: Update.
1062 * gnulib/import/fpucw.h: Update.
1063 * gnulib/import/frexp.c: Update.
1064 * gnulib/import/frexpl.c: Update.
1065 * gnulib/import/fstat.c: Update.
1066 * gnulib/import/fstatat.c: Update.
1067 * gnulib/import/getcwd-lgpl.c: Update.
1068 * gnulib/import/getcwd.c: Update.
1069 * gnulib/import/getdtablesize.c: Update.
1070 * gnulib/import/getlogin_r.c: Update.
1071 * gnulib/import/getprogname.c: Update.
1072 * gnulib/import/getprogname.h: Update.
1073 * gnulib/import/gettext.h: Update.
1074 * gnulib/import/gettimeofday.c: Update.
1075 * gnulib/import/glob-libc.h: Update.
1076 * gnulib/import/glob.c: Update.
1077 * gnulib/import/glob.in.h: Update.
1078 * gnulib/import/glob_internal.h: Update.
1079 * gnulib/import/glob_pattern_p.c: Update.
1080 * gnulib/import/globfree.c: Update.
1081 * gnulib/import/hard-locale.c: Update.
1082 * gnulib/import/hard-locale.h: Update.
1083 * gnulib/import/intprops.h: Update.
1084 * gnulib/import/inttypes.in.h: Update.
1085 * gnulib/import/isnan.c: Update.
1086 * gnulib/import/isnand-nolibm.h: Update.
1087 * gnulib/import/isnand.c: Update.
1088 * gnulib/import/isnanl-nolibm.h: Update.
1089 * gnulib/import/isnanl.c: Update.
1090 * gnulib/import/itold.c: Update.
1091 * gnulib/import/libc-config.h: Update.
1092 * gnulib/import/limits.in.h: Update.
1093 * gnulib/import/localcharset.c: Update.
1094 * gnulib/import/localcharset.h: Update.
1095 * gnulib/import/localtime-buffer.c: Update.
1096 * gnulib/import/localtime-buffer.h: Update.
1097 * gnulib/import/lstat.c: Update.
1098 * gnulib/import/m4/00gnulib.m4: Update.
1099 * gnulib/import/m4/__inline.m4: Update.
1100 * gnulib/import/m4/absolute-header.m4: Update.
1101 * gnulib/import/m4/alloca.m4: Update.
1102 * gnulib/import/m4/builtin-expect.m4: Update.
1103 * gnulib/import/m4/canonicalize.m4: Update.
1104 * gnulib/import/m4/chdir-long.m4: Update.
1105 * gnulib/import/m4/close.m4: Update.
1106 * gnulib/import/m4/closedir.m4: Update.
1107 * gnulib/import/m4/configmake.m4: Update.
1108 * gnulib/import/m4/d-ino.m4: Update.
1109 * gnulib/import/m4/d-type.m4: Update.
1110 * gnulib/import/m4/dirent_h.m4: Update.
1111 * gnulib/import/m4/dirfd.m4: Update.
1112 * gnulib/import/m4/dirname.m4: Update.
1113 * gnulib/import/m4/double-slash-root.m4: Update.
1114 * gnulib/import/m4/dup.m4: Update.
1115 * gnulib/import/m4/dup2.m4: Update.
1116 * gnulib/import/m4/eealloc.m4: Update.
1117 * gnulib/import/m4/environ.m4: Update.
1118 * gnulib/import/m4/errno_h.m4: Update.
1119 * gnulib/import/m4/error.m4: Update.
1120 * gnulib/import/m4/exponentd.m4: Update.
1121 * gnulib/import/m4/exponentl.m4: Update.
1122 * gnulib/import/m4/extensions.m4: Update.
1123 * gnulib/import/m4/extern-inline.m4: Update.
1124 * gnulib/import/m4/fchdir.m4: Update.
1125 * gnulib/import/m4/fcntl-o.m4: Update.
1126 * gnulib/import/m4/fcntl.m4: Update.
1127 * gnulib/import/m4/fcntl_h.m4: Update.
1128 * gnulib/import/m4/fdopendir.m4: Update.
1129 * gnulib/import/m4/filenamecat.m4: Update.
1130 * gnulib/import/m4/flexmember.m4: Update.
1131 * gnulib/import/m4/float_h.m4: Update.
1132 * gnulib/import/m4/fnmatch.m4: Update.
1133 * gnulib/import/m4/fnmatch_h.m4: Update.
1134 * gnulib/import/m4/fpieee.m4: Update.
1135 * gnulib/import/m4/frexp.m4: Update.
1136 * gnulib/import/m4/frexpl.m4: Update.
1137 * gnulib/import/m4/fstat.m4: Update.
1138 * gnulib/import/m4/fstatat.m4: Update.
1139 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1140 * gnulib/import/m4/getcwd-path-max.m4: Update.
1141 * gnulib/import/m4/getcwd.m4: Update.
1142 * gnulib/import/m4/getdtablesize.m4: Update.
1143 * gnulib/import/m4/getlogin.m4: Update.
1144 * gnulib/import/m4/getlogin_r.m4: Update.
1145 * gnulib/import/m4/getpagesize.m4: Update.
1146 * gnulib/import/m4/getprogname.m4: Update.
1147 * gnulib/import/m4/gettimeofday.m4: Update.
1148 * gnulib/import/m4/glibc21.m4: Update.
1149 * gnulib/import/m4/glob.m4: Update.
1150 * gnulib/import/m4/glob_h.m4: Update.
1151 * gnulib/import/m4/gnulib-cache.m4: Update.
1152 * gnulib/import/m4/gnulib-common.m4: Update.
1153 * gnulib/import/m4/gnulib-comp.m4: Update.
1154 * gnulib/import/m4/gnulib-tool.m4: Update.
1155 * gnulib/import/m4/hard-locale.m4: Update.
1156 * gnulib/import/m4/include_next.m4: Update.
1157 * gnulib/import/m4/inttypes-pri.m4: Update.
1158 * gnulib/import/m4/inttypes.m4: Update.
1159 * gnulib/import/m4/isnand.m4: Update.
1160 * gnulib/import/m4/isnanl.m4: Update.
1161 * gnulib/import/m4/largefile.m4: Update.
1162 * gnulib/import/m4/limits-h.m4: Update.
1163 * gnulib/import/m4/localcharset.m4: Update.
1164 * gnulib/import/m4/locale-fr.m4: Update.
1165 * gnulib/import/m4/locale-ja.m4: Update.
1166 * gnulib/import/m4/locale-zh.m4: Update.
1167 * gnulib/import/m4/localtime-buffer.m4: Update.
1168 * gnulib/import/m4/longlong.m4: Update.
1169 * gnulib/import/m4/lstat.m4: Update.
1170 * gnulib/import/m4/malloc.m4: Update.
1171 * gnulib/import/m4/malloca.m4: Update.
1172 * gnulib/import/m4/math_h.m4: Update.
1173 * gnulib/import/m4/mbrtowc.m4: Update.
1174 * gnulib/import/m4/mbsinit.m4: Update.
1175 * gnulib/import/m4/mbsrtowcs.m4: Update.
1176 * gnulib/import/m4/mbstate_t.m4: Update.
1177 * gnulib/import/m4/memchr.m4: Update.
1178 * gnulib/import/m4/memmem.m4: Update.
1179 * gnulib/import/m4/mempcpy.m4: Update.
1180 * gnulib/import/m4/memrchr.m4: Update.
1181 * gnulib/import/m4/mkdir.m4: Update.
1182 * gnulib/import/m4/mkstemp.m4: Update.
1183 * gnulib/import/m4/mmap-anon.m4: Update.
1184 * gnulib/import/m4/mode_t.m4: Update.
1185 * gnulib/import/m4/msvc-inval.m4: Update.
1186 * gnulib/import/m4/msvc-nothrow.m4: Update.
1187 * gnulib/import/m4/multiarch.m4: Update.
1188 * gnulib/import/m4/nocrash.m4: Update.
1189 * gnulib/import/m4/off_t.m4: Update.
1190 * gnulib/import/m4/onceonly.m4: Update.
1191 * gnulib/import/m4/open-cloexec.m4: Update.
1192 * gnulib/import/m4/open.m4: Update.
1193 * gnulib/import/m4/openat.m4: Update.
1194 * gnulib/import/m4/opendir.m4: Update.
1195 * gnulib/import/m4/pathmax.m4: Update.
1196 * gnulib/import/m4/rawmemchr.m4: Update.
1197 * gnulib/import/m4/readdir.m4: Update.
1198 * gnulib/import/m4/readlink.m4: Update.
1199 * gnulib/import/m4/realloc.m4: Update.
1200 * gnulib/import/m4/rename.m4: Update.
1201 * gnulib/import/m4/rewinddir.m4: Update.
1202 * gnulib/import/m4/rmdir.m4: Update.
1203 * gnulib/import/m4/save-cwd.m4: Update.
1204 * gnulib/import/m4/secure_getenv.m4: Update.
1205 * gnulib/import/m4/setenv.m4: Update.
1206 * gnulib/import/m4/signal_h.m4: Update.
1207 * gnulib/import/m4/ssize_t.m4: Update.
1208 * gnulib/import/m4/stat-time.m4: Update.
1209 * gnulib/import/m4/stat.m4: Update.
1210 * gnulib/import/m4/std-gnu11.m4: Update.
1211 * gnulib/import/m4/stdbool.m4: Update.
1212 * gnulib/import/m4/stddef_h.m4: Update.
1213 * gnulib/import/m4/stdint.m4: Update.
1214 * gnulib/import/m4/stdio_h.m4: Update.
1215 * gnulib/import/m4/stdlib_h.m4: Update.
1216 * gnulib/import/m4/strchrnul.m4: Update.
1217 * gnulib/import/m4/strdup.m4: Update.
1218 * gnulib/import/m4/strerror.m4: Update.
1219 * gnulib/import/m4/string_h.m4: Update.
1220 * gnulib/import/m4/strstr.m4: Update.
1221 * gnulib/import/m4/strtok_r.m4: Update.
1222 * gnulib/import/m4/sys_socket_h.m4: Update.
1223 * gnulib/import/m4/sys_stat_h.m4: Update.
1224 * gnulib/import/m4/sys_time_h.m4: Update.
1225 * gnulib/import/m4/sys_types_h.m4: Update.
1226 * gnulib/import/m4/tempname.m4: Update.
1227 * gnulib/import/m4/time_h.m4: Update.
1228 * gnulib/import/m4/unistd-safer.m4: Update.
1229 * gnulib/import/m4/unistd_h.m4: Update.
1230 * gnulib/import/m4/warn-on-use.m4: Update.
1231 * gnulib/import/m4/wchar_h.m4: Update.
1232 * gnulib/import/m4/wchar_t.m4: Update.
1233 * gnulib/import/m4/wctype_h.m4: Update.
1234 * gnulib/import/m4/wint_t.m4: Update.
1235 * gnulib/import/malloc.c: Update.
1236 * gnulib/import/malloc/scratch_buffer.h: Update.
1237 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1238 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1239 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1240 * gnulib/import/malloca.c: Update.
1241 * gnulib/import/malloca.h: Update.
1242 * gnulib/import/malloca.valgrind: Update.
1243 * gnulib/import/math.in.h: Update.
1244 * gnulib/import/mbrtowc.c: Update.
1245 * gnulib/import/mbsinit.c: Update.
1246 * gnulib/import/mbsrtowcs-impl.h: Update.
1247 * gnulib/import/mbsrtowcs-state.c: Update.
1248 * gnulib/import/mbsrtowcs.c: Update.
1249 * gnulib/import/memchr.c: Update.
1250 * gnulib/import/memmem.c: Update.
1251 * gnulib/import/mempcpy.c: Update.
1252 * gnulib/import/memrchr.c: Update.
1253 * gnulib/import/mkdir.c: Update.
1254 * gnulib/import/mkstemp.c: Update.
1255 * gnulib/import/msvc-inval.c: Update.
1256 * gnulib/import/msvc-inval.h: Update.
1257 * gnulib/import/msvc-nothrow.c: Update.
1258 * gnulib/import/msvc-nothrow.h: Update.
1259 * gnulib/import/open.c: Update.
1260 * gnulib/import/openat-die.c: Update.
1261 * gnulib/import/openat-priv.h: Update.
1262 * gnulib/import/openat-proc.c: Update.
1263 * gnulib/import/openat.c: Update.
1264 * gnulib/import/openat.h: Update.
1265 * gnulib/import/opendir.c: Update.
1266 * gnulib/import/pathmax.h: Update.
1267 * gnulib/import/pipe-safer.c: Update.
1268 * gnulib/import/rawmemchr.c: Update.
1269 * gnulib/import/readdir.c: Update.
1270 * gnulib/import/readlink.c: Update.
1271 * gnulib/import/realloc.c: Update.
1272 * gnulib/import/ref-add.sin: Update.
1273 * gnulib/import/ref-del.sin: Update.
1274 * gnulib/import/rename.c: Update.
1275 * gnulib/import/rewinddir.c: Update.
1276 * gnulib/import/rmdir.c: Update.
1277 * gnulib/import/same-inode.h: Update.
1278 * gnulib/import/save-cwd.c: Update.
1279 * gnulib/import/save-cwd.h: Update.
1280 * gnulib/import/scratch_buffer.h: Update.
1281 * gnulib/import/secure_getenv.c: Update.
1282 * gnulib/import/setenv.c: Update.
1283 * gnulib/import/signal.in.h: Update.
1284 * gnulib/import/stat-time.c: Update.
1285 * gnulib/import/stat-time.h: Update.
1286 * gnulib/import/stat-w32.c: Update.
1287 * gnulib/import/stat-w32.h: Update.
1288 * gnulib/import/stat.c: Update.
1289 * gnulib/import/stdbool.in.h: Update.
1290 * gnulib/import/stddef.in.h: Update.
1291 * gnulib/import/stdint.in.h: Update.
1292 * gnulib/import/stdio.in.h: Update.
1293 * gnulib/import/stdlib.in.h: Update.
1294 * gnulib/import/str-two-way.h: Update.
1295 * gnulib/import/strchrnul.c: Update.
1296 * gnulib/import/strdup.c: Update.
1297 * gnulib/import/streq.h: Update.
1298 * gnulib/import/strerror-override.c: Update.
1299 * gnulib/import/strerror-override.h: Update.
1300 * gnulib/import/strerror.c: Update.
1301 * gnulib/import/string.in.h: Update.
1302 * gnulib/import/stripslash.c: Update.
1303 * gnulib/import/strnlen1.c: Update.
1304 * gnulib/import/strnlen1.h: Update.
1305 * gnulib/import/strstr.c: Update.
1306 * gnulib/import/strtok_r.c: Update.
1307 * gnulib/import/sys_stat.in.h: Update.
1308 * gnulib/import/sys_time.in.h: Update.
1309 * gnulib/import/sys_types.in.h: Update.
1310 * gnulib/import/tempname.c: Update.
1311 * gnulib/import/tempname.h: Update.
1312 * gnulib/import/time.in.h: Update.
1313 * gnulib/import/unistd--.h: Update.
1314 * gnulib/import/unistd-safer.h: Update.
1315 * gnulib/import/unistd.in.h: Update.
1316 * gnulib/import/unsetenv.c: Update.
1317 * gnulib/import/verify.h: Update.
1318 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1319 * gnulib/import/wchar.in.h: Update.
1320 * gnulib/import/wctype.in.h: Update.
1321 * gnulib/import/xalloc-oversized.h: Update.
1322 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1323 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1324
b0f492b9
GB
13252018-08-16 Gary Benson <gbenson@redhat.com>
1326
1327 PR gdb/13000:
1328 * gdb/main.c (captured_main_1): Exit with nonzero status
1329 in batch mode if the last command to be executed failed.
1330 * NEWS: Mention the above.
1331
2362e7f7
SM
13322018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1333
1334 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1335 end of warning message.
1336
4f4aedeb
AH
13372018-08-29 Alan Hayward <alan.hayward@arm.com>
1338
1339 PR gdb/22943:
1340 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1341 (aarch64_extract_return_value): Use
1342 aapcs_is_vfp_call_or_return_candidate.
1343 (aarch64_return_in_memory): Likewise.
1344 (aarch64_store_return_value): Likewise.
1345
0e745c60
AH
13462018-08-29 Alan Hayward <alan.hayward@arm.com>
1347
1348 * aarch64-tdep.c
1349 (aapcs_is_vfp_call_or_return_candidate): Make static
1350 (pass_in_v_or_stack): Remove function.
1351 (pass_in_v_vfp_candidate): New function.
1352 (aarch64_push_dummy_call): Check for float register candidates.
1353
ea92689a
AH
13542018-08-29 Alan Hayward <alan.hayward@arm.com>
1355
1356 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1357 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1358 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1359
ad202fcc
SM
13602018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1361
1362 PR build/23399
1363 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1364 (struct ipa_sym_addresses): Rename to...
1365 (struct ipa_sym_addresses_common): ... this.
1366 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1367
5fe3f3e4
TT
13682018-08-28 Tom Tromey <tom@tromey.com>
1369
1370 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1371 (token_fifo): Now a std::vector.
1372 (yylex, c_parse): Update.
1373 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1374 (token_fifo): Now a std::vector.
1375 (yylex, d_parse): Update.
1376 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1377 (token_fifo): Now a std::vector.
1378 (yylex, go_parse): Update.
1379
858d8004
SM
13802018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1381
1382 * parser-defs.h (struct type_stack) <elements>: Change type to
1383 std::vector<union type_stack_elt>.
1384 <depth, size>: Remove.
1385 * parse.c (parse_exp_in_context_1): Adjust.
1386 (type_stack_reserve): Remove.
1387 (check_type_stack_depth): Remove.
1388 (insert_into_type_stack): Adjust to std::vector.
1389 (insert_type): Likewise.
1390 (push_type): Likewise.
1391 (push_type_int): Likewise.
1392 (insert_type_address_space): Likewise.
1393 (pop_type): Likewise.
1394 (pop_type_int): Likewise.
1395 (pop_typelist): Likewise.
1396 (pop_type_stack): Likewise.
1397 (append_type_stack): Likewise.
1398 (push_type_stack): Likewise.
1399 (get_type_stack): Likewise.
1400 (type_stack_cleanup): Likewise.
1401 (push_typelist): Likewise.
1402 (follow_types): Likewise.
1403 (_initialize_parse): Likewise.
1404
416a69af
HAQ
14052018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1406
1407 * NEWS: Mention csky target.
1408
9d24df82
HAQ
14092018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1410 Hafiz Abid Qadeer <abidh@codesourcery.com>
1411 Don Breazeal <donb@codesourcery.com>
1412
1413 * csky-linux-tdep.c: New file.
1414 * csky-tdep.c: Likewise.
1415 * csky-tdep.h: Likewise.
1416 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1417 csky-tdep.o.
1418 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1419 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1420 * configure.tgt: Add csky support.
1421
3bf9c013
JV
14222018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1423
1424 * python/py-framefilter.c (py_print_frame): Print frame architecture
1425 when printing on an MI output.
1426
d3d8724a
TT
14272018-08-27 Tom Tromey <tom@tromey.com>
1428
1429 PR build/23087:
1430 * configure: Rebuild.
1431 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1432
1885053b
TT
14332018-08-27 Tom Tromey <tom@tromey.com>
1434
1435 * aarch64-linux-tdep.c
1436 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1437 casts to int.
1438
8406672e
TT
14392018-08-27 Tom Tromey <tom@tromey.com>
1440
1441 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1442 unsigned.
1443 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1444 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1445 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1446 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1447 unsigned.
1448
ec40cf90
TT
14492018-08-27 Tom Tromey <tom@tromey.com>
1450
1451 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1452 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1453
7bc02706
TT
14542018-08-27 Tom Tromey <tom@tromey.com>
1455
1456 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1457 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1458 ULONGEST_MAX.
1459 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1460 ULONGEST_MAX.
1461 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1462 ULONGEST_MAX.
1463 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1464 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1465 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1466 ULONGEST_MAX.
1467 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1468 (ppc64_linux_sigaction_tramp_frame)
1469 (ppc32_linux_sighandler_tramp_frame)
1470 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1471 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1472 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1473 * mn10300-linux-tdep.c (am33_linux_sigframe)
1474 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1475 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1476 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1477 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1478 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1479 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1480 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1481 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1482 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1483 * microblaze-linux-tdep.c
1484 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1485 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1486 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1487 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1488 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1489 * common/common-types.h (ULONGEST_MAX): New define.
1490 (CORE_ADDR_MAX): Fix formatting.
1491 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1492 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1493 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1494 (arm_linux_rt_sigreturn_tramp_frame)
1495 (arm_eabi_linux_sigreturn_tramp_frame)
1496 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1497 (thumb2_eabi_linux_sigreturn_tramp_frame)
1498 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1499 (arm_linux_restart_syscall_tramp_frame)
1500 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1501 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1502 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1503 ULONGEST_MAX.
1504 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1505
70ab8ccd
TT
15062018-08-27 Tom Tromey <tom@tromey.com>
1507
1508 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1509 CORE_ADDR_MAX.
1510 * mips-tdep.c (mips_deal_with_atomic_sequence)
1511 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1512 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1513 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1514 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1515 CORE_ADDR_MAX.
1516 * aarch64-tdep.c (aarch64_software_single_step): Use
1517 CORE_ADDR_MAX.
1518
896a7aa6
TT
15192018-08-27 Tom Tromey <tom@tromey.com>
1520
1521 * linespec.c (complete_linespec_component): Add cast to "char".
1522 * completer.c (completion_tracker::build_completion_result): Add
1523 cast to "char".
1524
dd33d41d
SM
15252018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1526
1527 * solist.h (struct solist, struct target_so_ops): Fix
1528 indentation.
1529
c645cda4
SM
15302018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1531
1532 * ada-tasks.c (ada_task_info_s): Remove typedef.
1533 (DEF_VEC_O(ada_task_info_s)): Remove.
1534 (struct ada_tasks_inferior_data): Initialize fields.
1535 <task_list>: Make an std::vector.
1536 (get_ada_tasks_inferior_data): Allocate with new.
1537 (ada_get_task_number): Adjust.
1538 (get_task_number_from_id): Likewise.
1539 (valid_task_id): Likewise.
1540 (ada_get_task_info_from_ptid): Likewise.
1541 (iterate_over_live_ada_tasks): Likewise.
1542 (add_ada_task): Likewise.
1543 (read_known_tasks): Likewise.
1544 (ada_build_task_list): Likewise.
1545 (print_ada_task_info): Likewise.
1546 (info_task): Likewise.
1547 (task_command_1): Likewise.
1548
39e7af3e
SM
15492018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1550
1551 * ada-lang.c (add_angle_brackets): Return std::string.
1552
bbbbbcee
SM
15532018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
1554
1555 * python/py-threadevent.c (py_get_event_thread): Initialize
1556 pythread.
1557
d98fc15b
PA
15582018-08-24 Pedro Alves <palves@redhat.com>
1559
1560 * python/py-bpevent.c (create_breakpoint_event_object): Use
1561 copy-initialization.
1562 * python/py-continueevent.c (emit_continue_event): Use
1563 copy-initialization.
1564 * python/py-exitedevent.c (create_exited_event_object): Return a
1565 gdbpy_ref<>.
1566 (emit_exited_event): Use copy-initialization.
1567 * python/py-inferior.c (python_new_inferior)
1568 (python_inferior_deleted, add_thread_object): Use
1569 copy-initialization.
1570 * python/py-infevents.c (create_inferior_call_event_object)
1571 (create_register_changed_event_object)
1572 (create_memory_changed_event_object): Return a gdbpy_ref<>.
1573 (emit_inferior_call_event, emit_memory_changed_event)
1574 (emit_register_changed_event): Use copy-initialization.
1575 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1576 Return a gdbpy_ref<>.
1577 (emit_new_objfile_event): Use copy-initialization.
1578 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
1579 (emit_clear_objfiles_event): Use copy-initialization.
1580 * python/py-signalevent.c (create_signal_event_object): Use
1581 copy-initialization.
1582 * python/py-threadevent.c (create_thread_event_object): Use
1583 copy-initialization.
1584
da3c8738
PA
15852018-08-24 Pedro Alves <palves@redhat.com>
1586 Simon Marchi <simon.marchi@ericsson.com>
1587
1588 PR gdb/23379
1589 * python/py-continueevent.c: Include "gdbthread.h".
1590 (create_continue_event_object): Add intro comment. Add 'ptid'
1591 parameter. Use it to find thread to pass to
1592 create_thread_event_object.
1593 (emit_continue_event): Pass PTID down to
1594 create_continue_event_object.
1595 * python/py-event.h (py_get_event_thread): Declare.
1596 (create_thread_event_object): Remove default from 'thread'
1597 parameter.
1598 * python/py-stopevent.c (create_stop_event_object): Use
1599 py_get_event_thread.
1600 * python/py-threadevent.c (get_event_thread): Rename to ...
1601 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
1602 and use it to find the thread.
1603 (create_thread_event_object): Assert that THREAD isn't null.
1604 Don't find the event thread here.
1605
26457a9c
KB
16062018-08-23 Kevin Buettner <kevinb@redhat.com>
1607
1608 * block.h (blockrange, blockranges): New struct declarations.
1609 (struct block): Add new field named `ranges'.
1610 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
1611 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
1612 macros for accessing ranges in struct block.
1613 (make_blockranges): New declaration.
1614 block.c (make_blockranges): New function.
2d5f09ec
KB
1615 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
1616 for block.
fc811edd
KB
1617 * symtab.h (find_pc_partial_function): Add new parameter `block'.
1618 * blockframe.c (cache_pc_function_block): New static global.
1619 (clear_pc_function_cache): Clear cache_pc_function_block.
1620 (find_pc_partial_function): Move comment to symtab.h. Add
1621 support for non-contiguous blocks.
e9480230
KB
1622 * cli/cli-cmds.c (block.h): Include.
1623 (print_disassembly): Handle printing of non-contiguous blocks.
1624 (disassemble_current_function): Likewise.
1625 (disassemble_command): Likewise.
26457a9c 1626
2b1ffcfd
KB
1627 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
1628 BLOCK_START.
1629 * blockframe.c (get_pc_function_start): Likewise.
1630 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
1631 (gcc_symbol_address): Likewise.
1632 * compile/compile-object-run.c (compile_object_run): Likewise.
1633 * compile/compile.c (get_expr_block_and_pc): Likewise.
1634 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
1635 (func_addr_to_tail_call_list): Likewise.
1636 * findvar.c (default_read_var_value): Likewise.
1637 * inline-frame.c (inline_frame_this_id): Likewise.
1638 (skip-inline_frames): Likewise.
1639 * infcmd.c (until_next_command): Likewise.
1640 * linespec.c (convert_linespec_to_sals): Likewise.
1641 * parse.c (parse_exp_in_context_1): Likewise.
1642 * printcmd.c (build_address_symbolic): likewise.
1643 (info_address_command): Likewise.
1644 symtab.c (find_function_start_sal): Likewise.
1645 (skip_prologue_sal): Likewise.
1646 (find_function_alias_target): Likewise.
1647 (find_gnu_ifunc): Likewise.
1648 * stack.c (find_frame_funname): Likewise.
1649 * symtab.c (fixup_symbol_section): Likewise.
1650 (find_function_start_sal): Likewise.
1651 (skip_prologue_sal): Likewsie.
1652 (find_function_alias_target): Likewise.
1653 (find_gnu_ifunc): Likewise.
1654 * tracepoint.c (info_scope_command): Likewise.
1655 * value.c (value_fn_field): Likewise.
1656
9644dc3a
KB
1657 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
1658 in place of find_pc_partial_function.
1659 * blockframe.c (find_function_entry_range_from_pc): New function.
1660 * symtab.h (find_function_entry_range_from_pc): Declare and document.
1661 * objfiles.c (objfile_relocate1): Relocate start and end addresses
1662 for each range in a block.
1663
1664
12a0d0f6
XR
16652018-08-23 Xavier Roirand <roirand@adacore.com>
1666
1667 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
1668 incrementation.
1669
d1012b8e
SM
16702018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1671
1672 * solib-svr4.c (read_program_headers_from_bfd): Return
1673 gdb::optional<gdb::byte_vector>.
1674 (svr4_exec_displacement): Adjust.
1675
17658d46
SM
16762018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1677
1678 * solib-svr4.c (read_program_header): Return
1679 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
1680 (find_program_interpreter): Return
1681 gdb::optional<gdb::byte_vector>.
1682 (scan_dyntag_auxv): Adjust.
1683 (enable_break): Adjust.
1684 (svr4_exec_displacement): Adjust.
1685
ae739fe7
SM
16862018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1687
1688 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
1689 * inf-child.c (inf_child_target::terminal_save_inferior): New.
1690
467dc1e2
SM
16912018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1692
1693 * guile/scm-string.c (gdbscm_scm_from_printf): Use
1694 string_vprintf.
1695 * guile/scm-utils.c (gdbscm_printf): Likewise.
1696 * serial.c (serial_printf): Likewise.
1697 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
1698
6d52907e
JV
16992018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
1700
1701 * stack.c (print_frame): Print frame architecture when printing on
1702 an MI output.
1703 * NEWS: Mention new "arch" attribute in frame output.
1704
9758a8f8
AH
17052018-08-21 Alan Hayward <alan.hayward@arm.com>
1706
1707 * arch/aarch64.h (aarch64_regnum): Update comment.
1708
1461bdac
AH
17092018-08-21 Alan Hayward <alan.hayward@arm.com>
1710
1711 * NEWS: Add SVE to 8.2 section.
1712
4895f384
PA
17132018-08-21 Pedro Alves <palves@redhat.com>
1714
1715 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
1716 out from gdbscm_parse_function_args.
1717 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
1718 gdbscm_parse_function_args_1.
1719
a4497d2f
SM
17202018-08-21 Simon Marchi <simon.marchi@ericsson.com>
1721
1722 PR gdb/17816
1723 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
1724 operator.
1725
c44deb73
SM
17262018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
1727
1728 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
1729
be2d111a
MS
17302018-08-19 Michael Spang <spang@google.com>
1731
1732 PR gdb/11786
1733 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
1734 for PT_TLS segments.
1735
a6b786da
KB
17362018-08-18 Kevin Buettner <kevinb@redhat.com>
1737
1738 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
1739 dwarf_variable_value.
1740 * dwarf2-frame.c (class dwarf_expr_executor):
1741 Add override for dwarf_variable_value.
1742 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
1743 (class symbol_needs_eval_context): Likewise.
1744 (indirect_synthetic_pointer): Add forward declaration.
1745 (sect_variable_value): New function.
1746 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
1747 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
1748 for DW_OP_GNU_variable_value.
1749
89fbedf3
TT
17502018-08-16 Tom Tromey <tom@tromey.com>
1751
1752 * top.c (read_command_file): Update.
1753 (command_line_input): Remove "repeat" argument.
1754 * ada-lang.c (get_selections): Update.
1755 * linespec.c (decode_line_2): Update.
1756 * defs.h (command_line_input): Remove argument.
1757 * cli/cli-script.c (read_next_line): Update.
1758 * python/py-gdb-readline.c: Update.
1759
12582533
TT
17602018-08-17 Tom Tromey <tom@tromey.com>
1761
1762 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
1763 command_line_input.
1764
49514353
TT
17652018-08-15 Tom Tromey <tom@tromey.com>
1766
1767 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
1768
26fb3983
JV
17692018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
1770
1771 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
1772 If used, use find_pc_partial_function to find address range
1773 to disassemble.
1774 * mi/mi-main.c (mi_cmd_list_features): Report
1775 "data-disassemble-a-option" feature.
1776 * NEWS: Mention new -data-disassemble option -a.
1777
a97b53dd
TT
17782018-08-13 Tom Tromey <tom@tromey.com>
1779
1780 * common/common-defs.h (_FORTIFY_SOURCE): Define.
1781
0c76e06d
AH
17822018-08-13 Alan Hayward <alan.hayward@arm.com>
1783
1784 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
1785 (aarch64_linux_collect_sve_regset): Likewise.
1786 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
1787 * regcache.h (regcache_map_entry_size): New function.
1788
b7fd65b9
AH
17892018-08-13 Alan Hayward <alan.hayward@arm.com>
1790
1791 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
1792 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
1793 (SVE_HEADER_VL_LENGTH): Likewise.
1794 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
1795 (SVE_HEADER_FLAGS_LENGTH): Likewise.
1796 (SVE_HEADER_RESERVED_LENGTH): Likewise.
1797 (SVE_HEADER_SIZE_OFFSET): Likewise.
1798 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
1799 (SVE_HEADER_VL_OFFSET): Likewise.
1800 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
1801 (SVE_HEADER_FLAGS_OFFSET): Likewise.
1802 (SVE_HEADER_RESERVED_OFFSET): Likewise.
1803 (SVE_HEADER_SIZE): Likewise.
1804 (aarch64_linux_core_read_vq): Add function.
1805 (aarch64_linux_core_read_description): Check for SVE section.
1806
a616bb94
AH
18072018-08-13 Alan Hayward <alan.hayward@arm.com>
1808
1809 * aarch64-fbsd-tdep.c
1810 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
1811 collect_size.
1812 * aarch64-linux-tdep.c
1813 (aarch64_linux_iterate_over_regset_sections): Likewise.
1814 * alpha-linux-tdep.c
1815 (alpha_linux_iterate_over_regset_sections):
1816 * alpha-nbsd-tdep.c
1817 (alphanbsd_iterate_over_regset_sections): Likewise.
1818 * amd64-fbsd-tdep.c
1819 (amd64fbsd_iterate_over_regset_sections): Likewise.
1820 * amd64-linux-tdep.c
1821 (amd64_linux_iterate_over_regset_sections): Likewise.
1822 * arm-bsd-tdep.c
1823 (armbsd_iterate_over_regset_sections): Likewise.
1824 * arm-fbsd-tdep.c
1825 (arm_fbsd_iterate_over_regset_sections): Likewise.
1826 * arm-linux-tdep.c
1827 (arm_linux_iterate_over_regset_sections): Likewise.
1828 * corelow.c (get_core_registers_cb): Likewise.
1829 (core_target::fetch_registers): Likewise.
1830 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1831 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
1832 * gdbarch.h (void): Regenerate.
1833 * gdbarch.sh: Add supply_size and collect_size.
1834 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
1835 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
1836 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
1837 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
1838 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
1839 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
1840 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
1841 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
1842 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
1843 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
1844 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
1845 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
1846 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
1847 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
1848 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
1849 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
1850 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
1851 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
1852 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
1853 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
1854 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
1855 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
1856 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
1857 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
1858 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
1859 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
1860 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
1861 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
1862 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
1863 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
1864
a9925d4f
SM
18652018-08-10 Simon Marchi <simon.marchi@ericsson.com>
1866
1867 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
1868 with string_printf.
1869
ad3a68e9
KS
18702018-08-10 Keith Seitz <keiths@redhat.com>
1871
1872 * compile/compile-c-support.c (add_code_header, add_code_footer):
1873 Move into policy class.
1874 (c_push_user_expression, pop_user_expression_nop)
1875 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
1876 (compile_program): New host class.
1877 (c_compile_program): New typedef.
1878 (c_compute_porgram): Use c_compile_program.
1879
0cfbf430
KS
18802018-08-10 Keith Seitz <keiths@redhat.com>
1881
1882 * compile/compile-internal.h (compile_instance::~compile_instance):
1883 Remove calls to htab_delete.
1884 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
1885 * compile.c (compile_instance::compile_instance): Initialize
1886 htab unique pointers.
1887 (compile_instance::get_cached_type, compile_instance::insert_type)
1888 (compile_instance::error_symbol_once): Update for unique_ptr.
1889
946d3d10
KS
18902018-08-10 Keith Seitz <keiths@redhat.com>
1891
1892 * compile/compile-c-symbols.c (struct symbol_error)
1893 (hash_symbol_error, eq_symbol_error, del_symbol_error)
1894 (compile_instance::insert_symbol_error)
1895 (compile_instance::error_symbol_once): Move to ...
1896 * compile/compile.c: ... here.
1897
9cdfd9a2
KS
18982018-08-10 Keith Seitz <keiths@redhat.com>
1899
1900 * compile/compile-c-support.c (c_get_compile_context): Use `new'
1901 instead of `new_compile_instance'.
1902 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
1903 Update description.
1904 If the symbol error map is not initialized, create it.
1905 (generate_c_for_for_one_symbol): Do not check/initialize
1906 the symbol error map.
1907 * compile/compile-c-types.c (compile_c_instance): Make a class.
1908 Update all callers.
1909 (compile_instance::compile_instance): Initialize the type cache.
1910 (get_cached_type): New function.
1911 (insert_type): Update description.
1912 (compile_c_instance::m_default_cflags): Define.
1913 (convert_type): Update description. Use get_cached_type.
1914 (delete_instance): Moved to destructor.
1915 (new_compile_instance): Moved to constructor.
1916 * compile/compile-c.h (compile_c_instance): Make class inheriting
1917 from compile_instance.
1918 <base>: Remove field.
1919 <type_map, symbol_err_map>: Move to base class.
1920 <c_plugin>: Rename to `m_plugin' and remove pointer type.
1921 * compile/compile-internal.h (compile_instance): Make class.
1922 <type_map_t, symbol_err_map_t>: Define.
1923 <fe>: Rename to `m_gcc_fe'.
1924 <scope, block, gcc_target_options>: Add `m_' prefix.
1925 <m_type_map, m_symbol_err_map>: New fields, moved from
1926 compile_c_instance.
1927 <destroy>: Remove.
1928 (convert_type, new_compile_instance): Remove.
1929 * compile/compile.c (cleanup_compile_instance): Remove.
1930 (compile_to_object): Use unique_ptr to eliminate cleanups.
1931 (compile_instance::set_print_callback, compile_instance::version)
1932 (compile_instance::set_verbose)
1933 (compile_instance::set_driver_filename)
1934 (compile_instance::set_triplet_regexp)
1935 (compile_instance::set_arguments)
1936 (compile_instance::set_source_file)
1937 (compile_instance::compile): Define.
1938
18cdc6d8
KS
19392018-08-10 Keith Seitz <keiths@redhat.com>
1940
1941 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
1942 * compile/compile-c-types.c: Define GCC_METHODN macros and include
1943 gcc-c-fe.def to define C plugin.
1944 (delete_instance): Delete `c_plugin'.
1945 (new_compile_instance): Initialize `c_plugin'.
1946 * compile/compile-c.h: Include gcc_c_plugin.h.
1947 (struct compile_c_instance) <c_plugin>: New member.
1948 * gcc-c-plugin.h: New file.
1949 Update all callers with API change.
1950
b7dc48b4
KS
19512018-08-10 Keith Seitz <keiths@redhat.com>
1952
1953 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
1954 (HFILES_NO_SRCDIR): ... to here.
1955 Add compile-internal.h and compile-c.h.
1956 * compile/compile-c-support.c: Include compile-c.h.
1957 * compile/compile-c-symbols.c: Include compile-c.h.
1958 (generate_c_for_variable_locations): Update comment.
1959 * compile/compile-c-types.c: Include compile-c.h.
1960 * compile/compile-c.h: New file -- moved C language declarations
1961 from other files here.
1962 * compile/compile-internal.h: Do not include hashtab.h or
1963 common/enum-flags.h.
1964 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
1965 (gcc_convert_symbol, gcc_symbol_address)
1966 (generate_c_for_variable_locations, c_get_mode_for_size)
1967 (c_get_range_decl_name): Definitions moved to compile-c.h.
1968 * compile/compile-loc2c.c: Include compile-c.h.
1969
6f36b6d2
KS
19702018-08-10 Keith Seitz <keiths@redhat.com>
1971
1972 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
1973 (c_symbol_substitution_name): ... this.
1974 Update all callers.
1975
bd923e51
KS
19762018-08-10 Keith Seitz <keiths@redhat.com>
1977
1978 * compile/compile-c-support.c (c_compute_program): Use
1979 unique_xmalloc_ptr to eliminate cleanup.
1980 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
1981 Return a unique_xmalloc_ptr and eliminate cleanup.
1982 * compile/compile-internal.h (generate_c_for_variable_locations):
1983 Return unique_xmalloc_ptr and update description.
1984
dbd534fe
AH
19852018-08-10 Alan Hayward <alan.hayward@arm.com>
1986
1987 * corelow.c (core_target::get_core_register_section): Rename
1988 min_size to section_min_size.
1989
90ad3654
JW
19902018-08-09 Jim Wilson <jimw@sifive.com>
1991
52a187f8
JW
1992 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
1993 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
1994 * NEWS: Mention new GNU/Linux RISC-V target.
1995 * configure.host: Add riscv*-*-linux*.
1996 * configure.nat: Add riscv*.
1997 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 1998 * riscv-linux-nat.c: New file.
90ad3654
JW
1999 * riscv-linux-tdep.c: New file.
2000
aff4e175
AB
20012018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2002
2003 * infrun.c (resume): Make static, add forward declaration.
2004 (proceed): Update header comment.
2005 * infrun.h (resume): Delete declaration.
2006
06ab9219
TT
20072018-08-09 Tom Tromey <tom@tromey.com>
2008
2009 * riscv-tdep.h: Minor formatting fixes.
2010
83c8d318
SM
20112018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2012
2013 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2014 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2015 (test_mkdir_recursive): Likewise.
2016 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2017
5ff2bbae
AB
20182018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2019
2020 * valarith.c (value_subscripted_rvalue): If an array is not in
2021 memory, and we don't know the upper bound, then we can't know that
2022 the requested element exists or not.
2023
fdbac7d8
SM
20242018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2025
2026 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2027 (target_options_to_string): Add comment.
2028
83202f7a
TT
20292018-08-08 Tom Tromey <tom@tromey.com>
2030
2031 * unittests/scoped_mmap-selftests.c: Check result of "write".
2032
411baa47
JW
20332018-08-08 Jim Wilson <jimw@sifive.com>
2034
5c720ed8
JW
2035 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2036 (decode_register_index_short): New.
2037 (decode_j_type_insn, decode_cj_type_insn): New.
2038 (decode_b_type_insn, decode_cb_type_insn): New.
2039 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2040 local xlen. Check xlen when decoding ambiguous compressed insns. In
2041 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2042 is_c_sw_insn instead of is_sw_insn.
2043 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2044 (riscv_software_single_step): New.
2045 * riscv-tdep.h (riscv_software_single_step): Declare.
2046
411baa47
JW
2047 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2048 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2049
9d4a934c
AB
20502018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2051
2052 PR gdb/18050:
2053 * target.c (dispose_inferior): Don't dispose of inferiors that are
2054 already killed.
2055
ff36536c
SN
20562018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2057
2058 * remote.c (remote_target::download_tracepoint): Change char* to
2059 const char*.
2060
09ce46f2
SM
20612018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2062
2063 * target.h (target_options_to_string): Return an std::string.
2064 * target.c (str_comma_list_concat_elem): Return void, use
2065 std::string.
2066 (do_option): Likewise.
2067 (target_options_to_string): Return an std::string.
2068 * linux-nat.c (linux_nat_target::wait): Adjust.
2069 * target-debug.h (target_debug_print_options): Adjust.
2070
9c612964
TT
20712018-08-07 Tom Tromey <tom@tromey.com>
2072
2073 * Makefile.in (CPPFLAGS): New variable.
2074 (INTERNAL_CPPFLAGS): Use it.
2075
7d11235d
SM
20762018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2077
2078 * NEWS: Mention the index cache.
2079
87d6a7aa
SM
20802018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2081
2082 * common/pathstuff.h (get_standard_cache_dir): New.
2083 * common/pathstuff.c (get_standard_cache_dir): New.
2084 * build-id.h (build_id_to_string): New.
2085 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2086 DEBUG_STR_SUFFIX): Move to here.
2087 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2088 DEBUG_STR_SUFFIX): Move from there.
2089 (write_psymtabs_to_index): Make non-static, add basename
2090 parameter. Write to temporary files, rename when done.
2091 (save_gdb_index_command): Adjust call to
2092 write_psymtabs_to_index.
2093 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2094 field.
2095 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2096 (get_gdb_index_contents_from_cache): New.
2097 (get_gdb_index_contents_from_cache_dwz): New.
2098 (dwarf2_initialize_objfile): Read index from cache.
2099 (dwarf2_build_psymtabs): Save to index.
2100 * dwarf-index-cache.h: New file.
2101 * dwarf-index-cache.c: New file.
2102 * dwarf-index-write.h: New file.
2103
8a99096f
SM
21042018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2105
2106 * gnulib/aclocal.m4: Re-generate.
2107 * gnulib/config.in: Re-generate.
2108 * gnulib/configure: Re-generate.
2109 * gnulib/import/Makefile.am: Re-generate.
2110 * gnulib/import/Makefile.in: Re-generate.
2111 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2112 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2113 * gnulib/import/m4/mkdir.m4: New file.
2114 * gnulib/import/mkdir.c: New file.
2115 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2116 module.
2117
5c831bb1
SM
21182018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2119
2120 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2121 * common/scoped_mmap.c: New file.
2122 * common/scoped_mmap.h (destroy): New method.
2123 (~scoped_mmap, reset): Use destroy.
2124 (scoped_mmap): New move constructor.
2125 (mmap_file): New declaration.
2126 * unittests/scoped_mmap-selftests.c (test_normal,
2127 test_invalid_filename, run_tests): New functions.
2128 (_initialize_scoped_mmap_selftests): Register selftest.
2129
4485a1c1
SM
21302018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2131
2132 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2133 (read_gdb_index_from_buffer): ... this. Remove section
2134 parameter, add buffer parameter.
2135 (get_gdb_index_contents_ftype,
2136 get_gdb_index_contents_dwz_ftype): New typedefs.
2137 (dwarf2_read_gdb_index): Add callback parameters to get the
2138 index contents.
2139 (get_gdb_index_contents_from_section): New.
2140 (dwarf2_initialize_objfile): Update call to
2141 dwarf2_read_gdb_index.
2142
528e1572
SM
21432018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2144
2145 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2146 (gdb_open_cloexec): Likewise.
2147 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2148 (commandline_from_pid): Likewise.
2149 (linux_xfer_osdata_threads): Likewise.
2150 (linux_xfer_osdata_fds): Likewise.
2151 * ada-lang.c (is_package_name): Likewise.
2152 * auxv.c (procfs_xfer_auxv): Likewise.
2153 * breakpoint.c (print_one_breakpoint_location): Use
2154 uiout::field_fmt.
2155 (print_one_catch_solib): Use string_printf.
2156 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2157 (add_pe_forwarded_sym): Likewise.
2158 * dwarf2read.c (create_type_unit_group): Likewise.
2159 (build_error_marker_type): Likewise.
2160 * infcall.c (get_function_name): Likewise.
2161 * valprint.c (print_converted_chars_to_obstack): Likewise.
2162 * xtensa-tdep.c (xtensa_register_type): Likewise.
2163
a7f25a84
SM
21642018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2165
2166 * remote.c (remote_target::download_tracepoint): Fix format
2167 string errors.
2168
296956be
PFC
21692018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2170
2171 * tracefile.c: Include common/byte-vector.h.
2172 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2173 with trace_regblock_size if needed. Update uses of buf.
2174
a04b9d62
PFC
21752018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2176
2177 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2178 std::vector<unsigned char>.
2179 * tracepoint.c (collection_list::collection_list): Remove
2180 m_regs_mask initializer from initializer list. Resize
2181 m_regs_mask using the largest remote register number.
2182 (collection_list::add_remote_register): Remove size check on
2183 m_regs_mask. Use at to access element.
2184 (collection_list::stringify): Change type of temp_buf to
2185 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2186 stringify the register mask. Use pack_hex_byte for the register
2187 mask.
2188
4277c4b8
PFC
21892018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2190
2191 * tracepoint.h (class collection_list) <add_register>: Remove.
2192 <add_remote_register, add_ax_registers, add_local_register>:
2193 Declare.
2194 <add_memrange>: Add scope parameter.
2195 * tracepoint.c (encode_actions_1): Likewise.
2196 (collection_list::add_register): Rename to ...
2197 (collection_list::add_remote_register): ... this. Update
2198 comment.
2199 (collection_list::add_ax_registers, add_local_register): New
2200 methods.
2201 (collection_list::add_memrange): Add scope parameter. Call
2202 add_local_register instead of add_register.
2203 (finalize_tracepoint_aexpr): New function.
2204 (collection_list::collect_symbol): Update calls to add_memrange.
2205 Call add_local_register instead of add_register. Call
2206 add_ax_registers. Call finalize_tracepoint_aexpr.
2207 (encode_actions_1): Get remote regnos for $reg action. Call
2208 add_remote_register, add_ax_registers, and add_local_register.
2209 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2210 (validate_actionline): Call finalize_tracepoint_aexpr.
2211
3df3a985
PFC
22122018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2213
2214 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2215 Replace array buf with gdb::char_vector buf, of size
2216 get_remote_packet_size (). Replace references to buf and
2217 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2218 and xsnprintf with snprintf. Raise errors if the buffer is too
2219 small.
2220
aa6f3694
PFC
22212018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2222
2223 * remote.c (remote_target::download_tracepoint): Fix the has_more
2224 predicate in the QTDP action list iteration.
2225
05abfc39
PFC
22262018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2227
2228 * remote.c (remote_target::download_tracepoint): Fix indentation
2229 in for block.
2230
821a2682
RO
22312018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2232
2233 * proc-api.c (_initialize_proc_api): Remove c, unused.
2234 * procfs.c (procfs_init_inferior): Remove signals, unused.
2235 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2236 unused.
2237
95347337
AB
22382018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2239 Andrew Burgess <andrew.burgess@embecosm.com>
2240
2241 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2242 'W_STOPCODE (0)' as this could be ambiguous.
2243
425699f5
SDJ
22442018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2245
2246 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2247 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2248 "ai_socktype").
2249
3e1d3d8c
TT
22502018-08-02 Tom Tromey <tom@tromey.com>
2251
2252 PR symtab/16842.
2253 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2254 symbols.
2255 (process_structure_scope): Likewise.
2256
15843549
XR
22572018-08-02 Xavier Roirand <roirand@adacore.com>
2258
2259 PR gdb/22629:
2260 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2261 kill inferior.
2262
b5bddbbb
TT
22632018-08-02 Tom Tromey <tom@tromey.com>
2264
2265 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2266 (darwin_suspend_inferior, darwin_resume_inferior)
2267 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2268 (darwin_check_new_threads): Check result of get_darwin_inferior.
2269
f61cfa07
JB
22702018-07-31 Joel Brobecker <brobecker@adacore.com>
2271
2272 GDB 8.1.1 released.
2273
5abe0f0c
JV
22742018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2275
2276 * varobj.c (varobj_get_path_expr_parent): Report an error if
2277 parent is a dynamic varobj.
2278
472fa5ee
SM
22792018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2280
2281 * gnulib/aclocal.m4: Re-generate.
2282 * gnulib/config.in: Re-generate.
2283 * gnulib/configure: Re-generate.
2284 * gnulib/import/Makefile.in: Re-generate.
2285 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2286 * gnulib/import/m4/onceonly.m4: Re-generate.
2287
1c28969e
SM
22882018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2289
2290 * target-descriptions.c (struct xml_test_tdesc): New.
2291 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2292 (record_xml_tdesc): Update.
2293 (maintenance_check_xml_descriptions): Update.
2294 * target-descriptions.h (record_xml_tdesc): Update comment.
2295
c8f2dc0d
AB
22962018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2297
2298 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2299 checking array bounds are defined.
2300
463c08d1
TT
23012018-07-30 Tom Tromey <tom@tromey.com>
2302
2303 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2304 irreflexivity violation.
2305
dba7455e
TT
23062018-07-30 Tom Tromey <tom@tromey.com>
2307
2308 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2309 * value.c (unpack_long): Remove lint code.
2310 * valops.c (value_ind): Remove lint code.
2311 * valarith.c (value_x_binop, value_x_unop, value_equal)
2312 (value_pos): Remove lint code.
2313
37cc0cae
TV
23142018-07-28 Tom de Vries <tdevries@suse.de>
2315
2316 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2317 with undefined upper bound as <optimized out>.
2318
129eb0f1
SDJ
23192018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2320
2321 * gcore.in: Rename variable "name" to "prefix". Expand
2322 "usage" text.
2323
6af79d7b
JT
23242018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2325
2326 * windows-nat.c (windows_nat_target::create_inferior): Update to
2327 call close() in global namespace.
2328
79748972
TT
23292018-07-26 Tom Tromey <tom@tromey.com>
2330
2331 * dwarf-index-write.c (add_address_entry): Don't add objfile
2332 offsets.
2333 * dbxread.c (find_stab_function): Rename from
2334 find_stab_function_addr. Return a bound_minimal_symbol.
2335 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2336 Don't add objfile offsets.
2337 (end_psymtab): Use raw_text_low, raw_text_high,
2338 MSYMBOL_VALUE_RAW_ADDRESS.
2339 (read_ofile_symtab): Update.
2340 (process_one_symbol): Update.
2341 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2342 offsets.
2343 (dw2_relocate): Remove.
2344 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2345 searching addrmap.
2346 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2347 Update.
2348 (process_psymtab_comp_unit_reader, add_partial_symbol)
2349 (add_partial_subprogram, dwarf2_ranges_read): Update.
2350 (load_partial_dies): Update.
2351 (add_address_entry): Don't add objfile offsets.
2352 (dwarf2_build_include_psymtabs): Update.
2353 (create_addrmap_from_aranges): Don't add objfile offsets.
2354 (dw2_find_pc_sect_compunit_symtab): Update.
2355 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2356 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2357 Update.
2358 (parse_partial_symbols): Don't add objfile offsets. Use
2359 raw_text_low, raw_text_high. Update.
2360 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2361 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2362 or call 'relocate' quick function. Clear psymbol_map.
2363 * psympriv.h (struct partial_symbol) <address>: Add section
2364 offset.
2365 <set_unrelocated_address>: Rename from set_address.
2366 <raw_text_low, raw_text_high>: New methods.
2367 <text_low, text_high>: Add objfile parameter.
2368 (add_psymbol_to_bcache): Add 'section' parameter. Call
2369 set_unrelocated_address.
2370 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2371 (find_pc_psymbol): Update.
2372 (fixup_psymbol_section, relocate_psymtabs): Remove.
2373 (dump_psymtab, psym_functions): Update.
2374 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2375 parameter.
2376 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2377 (start_psymtab_common): Update.
2378 * symfile-debug.c (debug_qf_relocate): Remove.
2379 (debug_sym_quick_functions): Update.
2380 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2381 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2382 Update.
2383
52948f01
TT
23842018-07-26 Tom Tromey <tromey@redhat.com>
2385
2386 * dbxread.c (end_psymtab): Use text_high_valid and
2387 text_low_valid.
2388 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2389 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2390 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2391 Update comment.
2392 <text_low_valid, text_high_valid>: New fields.
2393 <set_text_low, set_text_high>: Update.
2394 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2395
4ae976d1
TT
23962018-07-26 Tom Tromey <tom@tromey.com>
2397
2398 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2399 Update.
2400 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2401 textlow and texthigh fields.
2402 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2403 Update.
2404 * mdebugread.c (parse_lines, parse_partial_symbols)
2405 (psymtab_to_symtab_1): Update.
2406 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2407 Rename fields. Update comment. Now private.
2408 <text_low, text_high, set_text_low, set_text_high>: New methods.
2409 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2410 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2411 (start_psymtab_common, maintenance_info_psymtabs)
2412 (maintenance_check_psymtabs): Update.
2413 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2414 texthigh fields.
2415 (scan_xcoff_symtab): Update.
2416
02e9e7f7
TT
24172018-07-26 Tom Tromey <tromey@redhat.com>
2418
2419 * psympriv.h (struct partial_symbol) <unrelocated_address,
2420 address, set_address>: New methods.
2421 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2422 (fixup_psymbol_section, relocate_psymtabs): Update.
2423 (print_partial_symbols): Add 'objfile' parameter. Update.
2424 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2425 Update.
2426
8a6d4234
TT
24272018-07-26 Tom Tromey <tom@tromey.com>
2428
2429 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2430 (debug_names::write_psymbols): Update.
2431 * psympriv.h (struct partial_symbol): Derive from
2432 general_symbol_info.
2433 <obj_section>: New method.
2434 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2435 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2436 (find_pc_sect_psymbol, fixup_psymbol_section)
2437 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2438 (print_partial_symbols, recursively_search_psymtabs)
2439 (compare_psymbols, psymbol_hash, psymbol_compare)
2440 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2441 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2442
08994e1d
TT
24432018-07-26 Tom Tromey <tromey@redhat.com>
2444
2445 * dbxread.c (end_psymtab): Remove dead code.
2446
3c3bb058
AB
24472018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2448
2449 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2450 DWARF unwinders are disabled.
2451 * dwarf2-frame.c: Add dwarf2read.h include.
2452 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2453 disabled.
2454 (dwarf2_frame_unwinders_enabled_p): Define.
2455 (show_dwarf_unwinders_enabled_p): New function.
2456 (_initialize_dwarf2_frame): Register switch to control DWARF
2457 unwinder use.
2458 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2459 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2460 (show_dwarf_cmdlist): Remove static keyword.
2461 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2462 (show_dwarf_cmdlist): Declare.
2463 * NEWS: Document new feature.
2464
9e7f3bbb
TV
24652018-07-26 Tom de Vries <tdevries@suse.de>
2466
2467 PR breakpoints/23366
2468 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2469
506f5c41
TV
24702018-07-26 Tom de Vries <tdevries@suse.de>
2471
2472 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2473 DW_AT_count can't be translated to a dynamic prop.
2474
16f808ec
TV
24752018-07-25 Tom de Vries <tdevries@suse.de>
2476
2477 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2478 try/catch.
2479
d7154a8d
JV
24802018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2481
2482 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2483
a45389f6
JB
24842018-07-25 Joel Brobecker <brobecker@adacore.com>
2485
2486 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2487
380618d6
KS
24882018-07-24 Keith Seitz <keiths@redhat.comt
2489
2490 PR symtab/23010
2491 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2492 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2493 instead of add_symbol_to_list.
2494 (read_file_scope): Call prepare_one_comp_unit before reading
2495 any other DIEs.
2496
4b17aefe
SM
24972018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2498
2499 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2500
29d17e47
TT
25012018-07-24 Tom Tromey <tom@tromey.com>
2502
2503 * utils.c (malloc, realloc, free): Don't declare.
2504 * configure, config.in: Rebuild.
2505 * configure.ac: Don't check for declarations of free, malloc, or
2506 realloc.
2507
cf4088a9
SM
25082018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2509
2510 * aarch64-linux-nat.c
2511 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2512 variable.
2513 * arm-linux-nat.c (fetch_regs): Likewise.
2514 (store_regs): Likewise.
2515 (fetch_vfp_regs): Likewise.
2516 (store_vfp_regs): Likewise.
2517 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2518 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2519 (arm_linux_nat_target::insert_watchpoint): Likewise.
2520 (arm_linux_nat_target::remove_watchpoint): Likewise.
2521 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2522 Likewise.
2523 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2524 Likewise.
2525 * ppc-linux-nat.c (fetch_register): Likewise.
2526 (fetch_all_gp_regs): Likewise.
2527 (fetch_ppc_registers): Likewise.
2528 (store_all_gp_regs): Likewise.
2529 (store_ppc_registers): Likewise.
2530 (hwdebug_insert_point): Likewise.
2531 (can_use_watchpoint_cond_accel): Likewise.
2532 * remote-sim.c (gdb_os_write_stdout): Likewise.
2533
a0de763e
TT
25342018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2535 Tom Tromey <tom@tromey.com>
2536
2537 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
2538 test for it.
2539 * configure: Rebuild.
2540
3b20124b
TT
25412018-07-22 Tom Tromey <tom@tromey.com>
2542
2543 * regformats/regdat.sh: Define xmltarget_${name} inside
2544 #ifndef IN_PROCESS_AGENT.
2545
8c8807f4
TT
25462018-07-22 Tom Tromey <tom@tromey.com>
2547
2548 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
2549
c486b610
TT
25502018-07-22 Tom Tromey <tom@tromey.com>
2551
2552 * symfile.c (reread_symbols): Notify iter, not objfile.
2553
494f80a9
TT
25542018-07-22 Tom Tromey <tom@tromey.com>
2555
2556 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
2557 Use arch_ops.
2558 (ravenscar_thread_target::prepare_to_store): Likewise.
2559
c51f6a54
TT
25602018-07-22 Tom Tromey <tom@tromey.com>
2561
2562 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
2563 unused variable. Call value_fetch_lazy when needed.
2564 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2565 Remove unused variable. Call value_fetch_lazy when needed.
2566
374fd1fd
TT
25672018-07-22 Tom Tromey <tom@tromey.com>
2568
2569 * m32c-tdep.c (mark_dma): Return void.
2570 (make_regs): Remove unused declarations.
2571
d5e9a511
TT
25722018-07-22 Tom Tromey <tom@tromey.com>
2573
2574 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
2575 cmdscm_get_valid_command_smob_arg_unsafe for effect.
2576 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
2577 bkscm_get_valid_block_smob_arg_unsafe for effect.
2578
996d693a
TT
25792018-07-22 Tom Tromey <tom@tromey.com>
2580
2581 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
2582 value_type.
2583
15766370
TT
25842018-07-22 Tom Tromey <tom@tromey.com>
2585
2586 * windows-nat.c (saved_context): Conditionally define.
2587 * remote.c (remote_target::remote_btrace_maybe_reopen):
2588 Conditionally declare "warned".
2589 * inflow.c (sigquit_ours): Conditionally define.
2590 (new_tty): Move "tty" declaration inside #if.
2591 * guile/guile.c (guile_datadir): Conditionally define.
2592 * charset.c (set_be_le_names): Move some declarations inside #if.
2593 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
2594 #if.
2595 (parse_xml_btrace_conf): Likewise.
2596
f4e80e13
TT
25972018-07-22 Tom Tromey <tom@tromey.com>
2598
2599 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
2600
8d49165d
TT
26012018-07-22 Tom Tromey <tom@tromey.com>
2602
2603 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
2604 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
2605 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
2606 * buildsym-legacy.c (get_macro_table): Remove unused variable.
2607 * stack.c (frame_apply_level_command): Remove unused variable.
2608 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
2609 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
2610 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
2611 unused variable.
2612 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
2613 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
2614 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
2615 variable.
2616 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
2617 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
2618 variable.
2619 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
2620 Remove unused variable.
2621 * cli/cli-script.c (recurse_read_control_structure): Remove unused
2622 variable.
2623 * common/tdesc.c (print_xml_feature::visit): Remove unused
2624 variable.
2625 * compile/compile-object-load.c (store_regs): Remove unused
2626 variables.
2627 * complaints.c (clear_complaints): Remove unused variable.
2628 * corelow.c (core_target_open): Remove unused variable.
2629 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
2630 variable.
2631 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
2632 variable.
2633 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
2634 variable.
2635 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
2636 variable.
2637 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
2638 variable.
2639 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
2640 variable.
2641 * ia64-tdep.c (examine_prologue): Remove unused variable.
2642 * infcall.c (run_inferior_call): Remove unused variable.
2643 * inferior.c (exit_inferior): Remove unused variable.
2644 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
2645 * linespec.c (decode_line_2): Remove unused variable.
2646 * linux-nat.c (super_close): Remove.
2647 * linux-tdep.c (linux_info_proc): Remove unused variable.
2648 * mi/mi-main.c (mi_execute_command): Remove unused variable.
2649 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
2650 Remove unused variable.
2651 * parse.c (find_minsym_type_and_address): Remove unused variable.
2652 * printcmd.c (info_symbol_command, printf_floating): Remove unused
2653 variable.
2654 * python/py-breakpoint.c (bppy_set_commands): Remove unused
2655 variable.
2656 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
2657 variables.
2658 * record-btrace.c (record_btrace_target::store_registers): Remove
2659 unused variable.
2660 (cmd_show_record_btrace_cpu): Remove unused variable.
2661 * riscv-tdep.c (riscv_register_reggroup_p)
2662 (riscv_push_dummy_call, riscv_return_value): Remove unused
2663 variable.
2664 * rust-exp.y (literal): Remove unused variable.
2665 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
2666 unused variable.
2667 <STRUCTOP_ANONYMOUS>: Likewise.
2668 * s390-linux-tdep.c (s390_linux_init_abi_31)
2669 (s390_linux_init_abi_64): Remove unused variable.
2670 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
2671 (file_select_thread, net_windows_open, _initialize_ser_windows):
2672 Remove unused variables.
2673 * symtab.c (find_pc_sect_line): Remove unused variable.
2674 * target-memory.c (compute_garbled_blocks): Remove unused
2675 variable.
2676 (target_write_memory_blocks): Remove unused variable.
2677 * target.c (target_stack::unpush): Remove unused variables.
2678 * tracepoint.c (start_tracing, all_tracepoint_actions)
2679 (merge_uploaded_trace_state_variables)
2680 (print_one_static_tracepoint_marker): Remove unused variable.
2681 * unittests/basic_string_view/element_access/char/1.cc (test01):
2682 Remove unused variable.
2683 * windows-nat.c (windows_continue, windows_add_all_dlls)
2684 (do_initial_windows_stuff, windows_nat_target::create_inferior):
2685 Remove unused variables.
2686
17cbafdb
SM
26872018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2688
2689 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
2690 attr_profile in HAVE_ELF.
2691 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
2692 HAVE_ELF.
2693
0ee6c332
SM
26942018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
2695
2696 * frame.c (frame_register_unwind): Change parameter name.
2697 (frame_unwind_register): Likewise.
2698 (frame_unwind_register_value): Likewise.
2699 (frame_unwind_register_signed): Likewise.
2700 (frame_unwind_register_unsigned): Likewise.
2701 * frame.h (frame_register_unwind): Likewise.
2702 (frame_unwind_register): Likewise.
2703 (frame_unwind_register_value): Likewise.
2704 (frame_unwind_register_signed): Likewise.
2705 (frame_unwind_register_unsigned): Likewise.
2706 (frame_unwind_arch): Likewise.
2707
e2e31f10
MR
27082018-07-20 Maciej W. Rozycki <macro@mips.com>
2709
2710 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
2711 ISA maintenance.
2712
2d389915
MR
27132018-07-20 Maciej W. Rozycki <macro@mips.com>
2714
2715 * mips-linux-nat.c (mips_linux_nat_target::read_description):
2716 Call `get_ptrace_pid' rather than extracting the ptrace PID by
2717 hand.
2718
cbb09508
KS
27192018-07-20 Keith Seitz <keiths@redhat.com>
2720
2721 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
2722 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
2723 m_compunit_symtab, m_language>: Add "m_" prefix.
2724 Update all uses.
2725 * buildsym.c: Update all uses.
2726
bfe2e011
TT
27272018-07-20 Tom Tromey <tom@tromey.com>
2728
2729 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
2730 * buildsym.h (record_line_ftype): Remove typedef.
2731
0e6f3061
TT
27322018-07-20 Tom Tromey <tom@tromey.com>
2733
2734 * buildsym-legacy.h (augment_type_symtab): Don't declare.
2735 (end_expandable_symtab): Likewise.
2736 (end_symtab_get_static_block): Likewise.
2737 (end_symtab_from_static_block): Likewise.
2738 * buildsym-legacy.c (augment_type_symtab): Remove.
2739 (end_expandable_symtab): Remove.
2740 (end_symtab_get_static_block): Remove.
2741 (end_symtab_from_static_block): Remove.
2742
804d2729
TT
27432018-07-20 Tom Tromey <tom@tromey.com>
2744
2745 * dwarf2read.c: Include buildsym.h.
2746 (struct dwarf2_cu) <builder>: New method.
2747 (fixup_go_packaging): Update.
2748 (process_full_comp_unit, process_full_type_unit): Update. Don't
2749 use scoped_free_pendings.
2750 (using_directives): Add "cu" parameter, remove "language".
2751 (read_import_statement, setup_type_unit_groups, )
2752 (read_func_scope, read_lexical_block_scope)
2753 (dwarf2_record_block_ranges, read_namespace): Update.
2754 (lnp_state_machine::lnp_state_machine): Add cu parameter.
2755 (lnp_state_machine::handle_end_sequence): Update.
2756 (class lnp_state_machine) <m_cu>: New member.
2757 <m_record_line_callback>: Remove.
2758 <m_currently_recording_lines>: New member.
2759 (lnp_state_machine::handle_set_file): Update.
2760 (noop_record_line): Remove.
2761 (dwarf_record_line_p): Add cu parameter.
2762 (dwarf_record_line_1, dwarf_finish_line): Likewise.
2763 (lnp_state_machine::record_line)
2764 (lnp_state_machine::lnp_state_machine)
2765 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
2766 (dwarf_decode_lines): Update.
2767 (dwarf2_start_subfile): Add cu parameter.
2768 (dwarf2_start_symtab, new_symbol): Update.
2769 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
2770 Remove dwarf2_per_objfile parameter.
2771 (dwarf_decode_macros): Update.
2772
80e649fc
TT
27732018-07-20 Tom Tromey <tom@tromey.com>
2774
2775 * stabsread.c (define_symbol): Update.
2776 * buildsym-legacy.h (get_buildsym_compunit): Declare.
2777 * dwarf2read.c (new_symbol): Update.
2778 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
2779 * cp-namespace.c: Include buildsym.h.
2780 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
2781 * buildsym-legacy.c (get_buildsym_compunit): New function.
2782
0baae8db
TT
27832018-07-20 Tom Tromey <tom@tromey.com>
2784
2785 * xcoffread.c: Include buildsym-legacy.h.
2786 * windows-nat.c: Include buildsym-legacy.h.
2787 * stabsread.c: Include buildsym-legacy.h.
2788 * mdebugread.c: Include buildsym-legacy.h.
2789 * buildsym-legacy.h: New file.
2790 * buildsym-legacy.c: New file, from buildsym.c.
2791 * go32-nat.c: Include buildsym-legacy.h.
2792 * dwarf2read.c: Include buildsym-legacy.h.
2793 * dbxread.c: Include buildsym-legacy.h.
2794 * cp-namespace.c: Include buildsym-legacy.h.
2795 * coffread.c: Include buildsym-legacy.h.
2796 * buildsym.h: Move some contents to buildsym-legacy.h.
2797 * buildsym.c: Include buildsym-legacy.h. Move many functions to
2798 buildsym-legacy.c.
2799 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
2800
ab209f6f
TT
28012018-07-20 Tom Tromey <tom@tromey.com>
2802
2803 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
2804 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
2805 (buildsym_compunit::buildsym_compunit)
2806 (buildsym_compunit::~buildsym_compunit)
2807 (buildsym_compunit::get_macro_table): Define.
2808
74c72eac
TT
28092018-07-20 Tom Tromey <tom@tromey.com>
2810
2811 * buildsym.c (reset_symtab_globals): Remove.
2812 (buildsym_compunit::end_symtab_from_static_block): Update.
2813 (buildsym_compunit::augment_type_symtab): Update.
2814 (end_symtab_from_static_block): Call free_buildsym_compunit.
2815 (augment_type_symtab, end_symtab, end_expandable_symtab):
2816 Likewise.
2817
da6580e5
TT
28182018-07-20 Tom Tromey <tom@tromey.com>
2819
2820 * arch-utils.c: Do not include buildsym.h.
2821 * mipsread.c: Do not include buildsym.h.
2822 * machoread.c: Do not include buildsym.h.
2823 * elfread.c: Do not include buildsym.h.
2824
4a2125f5
TT
28252018-07-20 Tom Tromey <tom@tromey.com>
2826
2827 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
2828 initialization.
2829 (buildsym_compunit): Add new constructor.
2830 (struct buildsym_compunit) <get_last_source_file, finish_block,
2831 record_block_range, start_subfile, patch_subfile_names,
2832 push_subfile, pop_subfile, record_line, get_compunit_symtab,
2833 set_last_source_start_addr, get_last_source_start_addr,
2834 get_local_using_directives, set_local_using_directives,
2835 get_global_using_directives, outermost_context_p,
2836 get_current_context_stack, get_context_stack_depth,
2837 get_current_subfile, get_local_symbols, get_file_symbols,
2838 get_global_symbols, record_debugformat, record_producer,
2839 push_context, pop_context, end_symtab_get_static_block,
2840 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
2841 New public methods.
2842 <record_pending_block, finish_block_internal, make_blockvector,
2843 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
2844 private methods.
2845 Update all users.
2846
28472018-05-22 Tom Tromey <tom@tromey.com>
2848
2849 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2850 parameter.
2851 (finish_block_internal): Update.
2852
6b213a47
TT
28532018-07-20 Tom Tromey <tom@tromey.com>
2854
2855 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2856 parameter.
2857 (finish_block_internal): Update.
2858
b80a981d
TT
28592018-07-20 Tom Tromey <tom@tromey.com>
2860
2861 * buildsym.h (EXTERN): Don't define or undef.
2862 * buildsym.c (EXTERN): Don't define.
2863
ddb70602
TT
28642018-07-20 Tom Tromey <tom@tromey.com>
2865
2866 * buildsym.c: Remove TODO comment.
2867
b37dd3bc
TT
28682018-07-20 Tom Tromey <tom@tromey.com>
2869
2870 * coffread.c (coff_symtab_read): Update.
2871 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2872 (xcoff_new_init): Update.
2873 * mipsread.c (mipscoff_new_init): Update.
2874 * mdebugread.c (mdebug_build_psymtabs): Update.
2875 * elfread.c (elf_new_init): Update.
2876 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2877 Update.
2878 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
2879 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2880 (stabsect_build_psymtabs): Update.
2881 * buildsym.h (buildsym_init): Don't declare.
2882 * buildsym.c: Update comment.
2883 (prepare_for_building): Remove.
2884 (start_symtab, restart_symtab): Update.
2885 (reset_symtab_globals): Update comment.
2886 (buildsym_init): Remove.
2887
e148f09d
TT
28882018-07-20 Tom Tromey <tom@tromey.com>
2889
2890 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
2891 * stabsread.c (patch_block_stabs, define_symbol, read_type)
2892 (read_enum_type, common_block_start, common_block_end)
2893 (cleanup_undefined_types_1, finish_global_stabs): Update.
2894 * mdebugread.c (psymtab_to_symtab_1): Update.
2895 * dwarf2read.c (fixup_go_packaging, read_func_scope)
2896 (read_lexical_block_scope, new_symbol): Update.
2897 * dbxread.c (process_one_symbol): Update.
2898 * coffread.c (coff_symtab_read, process_coff_symbol)
2899 (coff_read_enum_type): Update.
2900 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
2901 declare.
2902 (get_local_symbols, get_file_symbols, get_global_symbols): New
2903 functions.
2904 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
2905 m_global_symbols.
2906 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
2907 (~scoped_free_pendings): Update.
2908 (finish_block, prepare_for_building, reset_symtab_globals)
2909 (end_symtab_get_static_block, end_symtab_with_blockvector)
2910 (augment_type_symtab, push_context): Update.
2911 (get_local_symbols, get_file_symbols, get_global_symbols): New
2912 functions.
2913 (buildsym_init): Update.
2914
93b8bea4
TT
29152018-07-20 Tom Tromey <tom@tromey.com>
2916
2917 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
2918 (process_full_type_unit): Likewise.
2919 (dwarf2_start_symtab): Set list_in_scope.
2920
f62f6af5
TT
29212018-07-20 Tom Tromey <tom@tromey.com>
2922
2923 * dwarf2read.c (process_psymtab_comp_unit_reader)
2924 (build_type_psymtabs_reader): Do not set list_in_scope.
2925
1d376700
TT
29262018-07-20 Tom Tromey <tom@tromey.com>
2927
2928 * buildsym.c (free_pendings): Remove.
2929 (add_symbol_to_list, scoped_free_pendings)
2930 (finish_block_internal, buildsym_init): Update.
2931
c233e9c6
TT
29322018-07-20 Tom Tromey <tom@tromey.com>
2933
2934 * xcoffread.c (read_xcoff_symtab): Update.
2935 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
2936 Update.
2937 * dbxread.c (process_one_symbol): Update.
2938 * coffread.c (coff_symtab_read): Update.
2939 * buildsym.h (finish_block): Update.
2940 * buildsym.c (finish_block): Remove "listhead" argument.
2941 (end_symtab_get_static_block): Update.
2942
5ac04550
TT
29432018-07-20 Tom Tromey <tom@tromey.com>
2944
2945 * buildsym.h (class scoped_free_pendings): Remove constructor.
2946 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
2947 method.
2948 <m_pending_block_obstack, m_pending_blocks>: New members.
2949 (pending_block_obstack, pending_blocks): Remove.
2950 (scoped_free_pendings::scoped_free_pendings): Default.
2951 (~scoped_free_pendings): Update.
2952 (free_pending_blocks): Remove.
2953 (finish_block_internal, record_pending_block, make_blockvector)
2954 (end_symtab_get_static_block, augment_type_symtab, push_context)
2955 (buildsym_init): Update.
2956
7ea05a7b
TT
29572018-07-20 Tom Tromey <tom@tromey.com>
2958
2959 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
2960 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
2961 members.
2962 (pending_addrmap, pending_addrmap_obstack)
2963 (pending_addrmap_interesting): Remove.
2964 (scoped_free_pendings, record_block_range, make_blockvector)
2965 (prepare_for_building, reset_symtab_globals, buildsym_init):
2966 Update.
2967
3c65e5b3
TT
29682018-07-20 Tom Tromey <tom@tromey.com>
2969
2970 * xcoffread.c (process_linenos): Update.
2971 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
2972 * mdebugread.c (psymtab_to_symtab_1): Update.
2973 * dwarf2read.c (setup_type_unit_groups)
2974 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
2975 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
2976 * dbxread.c (process_one_symbol): Update.
2977 * coffread.c (coff_symtab_read, enter_linenos)
2978 (process_coff_symbol): Update.
2979 * buildsym.h (current_subfile): Don't declare.
2980 (get_current_subfile): Declare.
2981 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
2982 member.
2983 (start_subfile, free_buildsym_compunit, push_subfile)
2984 (prepare_for_building, start_symtab): Update.
2985 (get_current_subfile): New function.
2986
a60f3166
TT
29872018-07-20 Tom Tromey <tom@tromey.com>
2988
2989 * coffread.c (coff_symtab_read): Update.
2990 * xcoffread.c (read_xcoff_symtab): Update.
2991 * dwarf2read.c (new_symbol): Update.
2992 (read_func_scope, read_lexical_block_scope): Update.
2993 * dbxread.c (process_one_symbol): Update.
2994 * buildsym.h (context_stack, context_stack_depth): Don't declare.
2995 (outermost_context_p): Remove macro.
2996 (outermost_context_p, get_current_context_stack)
2997 (get_context_stack_depth): Declare.
2998 (pop_context): Return struct context_stack.
2999 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3000 member.
3001 (context_stack_size): Remove.
3002 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3003 (prepare_for_building, end_symtab_get_static_block)
3004 (augment_type_symtab, push_context): Update.
3005 (pop_context): Return struct context_stack.
3006 (outermost_context_p, get_current_context_stack)
3007 (get_context_stack_depth): New functions.
3008 (buildsym_init): Update.
3009
56ba65a0
TT
30102018-07-20 Tom Tromey <tom@tromey.com>
3011
3012 * rust-exp.y: Now a pure parser. Update all rules.
3013 (%union): Move earlier.
3014 (current_parser, work_obstack): Remove globals.
3015 (rust_parser, ~rust_parser): Update.
3016 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3017 lex_character, lex_number, lex_string, lex_identifier,
3018 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3019 convert_name, convert_params_to_expression,
3020 convert_ast_to_expression, ast_basic_type, ast_operation,
3021 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3022 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3023 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3024 ast_array_type, ast_slice_type, ast_reference_type,
3025 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3026 (rust_parse): Update.
3027 (rustyyerror, rustyylex): Add parser parameter.
3028 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3029 (rust_lex_stringish_test, rust_lex_test_sequence)
3030 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3031 (rust_lex_test_push_back, rust_lex_tests): Update.
3032
4c693332
PA
30332018-07-19 Pedro Alves <palves@redhat.com>
3034
3035 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3036 gdb::unique_xmalloc_ptr.
3037 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3038 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3039 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3040 copy-initialization.
3041 * guile/scm-pretty-print.c (ppscm_print_children): Use
3042 gdb::unique_xmalloc_ptr instead of cleanups.
3043 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3044 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3045 gdb::unique_xmalloc_ptr.
3046 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3047 Adjust to use gdb::unique_xmalloc_ptr.
3048 * guile/scm-utils.c (extract_arg): Adjust.
3049 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3050 gdb::unique_xmalloc_ptr instead of a cleanup.
3051
4581dc82
TT
30522018-07-19 Tom Tromey <tom@tromey.com>
3053
3054 * utils.c (do_value_free_to_mark)
3055 (make_cleanup_value_free_to_mark): Remove.
3056 * utils.h (make_cleanup_value_free_to_mark): Remove.
3057
43cc6c3a
PA
30582018-07-19 Pedro Alves <palves@redhat.com>
3059
3060 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3061 forwarding reference.
3062
3a5f2a48
PA
30632018-07-18 Pedro Alves <palves@redhat.com>
3064
3065 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3066 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3067 cleanup.
3068
557e56be
PA
30692018-07-18 Pedro Alves <palves@redhat.com>
3070
3071 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3072 exceptions.
3073 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3074 (gdbscm_wrap): New.
3075 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3076 directly instead of a cleanup.
3077 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3078 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3079 (vlscm_binop_gdbthrow): New, factored out from ...
3080 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3081 (vlscm_rich_compare): Use gdbscm_wrap.
3082 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3083 instead of a cleanup.
3084 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3085 cleanup.
3086 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3087 Use xfree directly instead of a cleanup.
3088 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3089 Adjust to use gdbscm_wrap and scoped_value_mark.
3090 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3091 (gdbscm_value_address, gdbscm_value_dereference)
3092 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3093 scoped_value_mark.
3094 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3095 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3096 scoped_value_mark.
3097 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3098 gdbscm_wrap and scoped_value_mark.
3099 (gdbscm_value_to_string): Use xfree directly instead of a
3100 cleanup. Move 'buffer' unique_ptr to TRY scope.
3101 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3102 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3103 scoped_value_mark.
3104 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3105 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3106 scoped_value_mark.
3107 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3108 gdbscm_wrap.
3109
42dc7699
TV
31102018-07-18 Tom de Vries <tdevries@suse.de>
3111
3112 * findvar.c (default_read_var_value): Also resolve dynamic type for
3113 LOC_OPTIMIZED_OUT vars.
3114
6592ceed
MR
31152018-07-18 Maciej W. Rozycki <macro@mips.com>
3116
3117 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3118 decoding.
3119
c6c6149a
TT
31202018-07-17 Tom Tromey <tom@tromey.com>
3121
3122 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3123 (compute_enum_list, pascm_set_param_value_x)
3124 (gdbscm_parameter_value): Update.
3125 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3126 (gdbscm_scm_to_host_string): Update.
3127 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3128 Update.
3129 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3130 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3131 * guile/scm-string.c (gdbscm_scm_to_string): Return
3132 unique_xmalloc_ptr.
3133 (gdbscm_scm_to_host_string): Likewise.
3134
a1a31cb8
TT
31352018-07-17 Tom Tromey <tom@tromey.com>
3136
3137 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3138 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3139 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3140 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3141 unique_xmalloc_ptr.
3142
15bf3002
TT
31432018-07-17 Tom Tromey <tom@tromey.com>
3144
3145 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3146 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3147 Update.
3148 * guile/scm-cmd.c (cmdscm_function): Update.
3149 * guile/scm-pretty-print.c
3150 (ppscm_print_exception_unless_memory_error): Update.
3151 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3152 Return unique_xmalloc_ptr.
3153
7eb1a66c
TT
31542018-07-17 Tom Tromey <tom@tromey.com>
3155
3156 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3157 Use string_printf.
3158
ce73f310
JW
31592018-07-17 Jim Wilson <jimw@sifive.com>
3160
27724bad
JW
3161 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3162 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3163 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3164 unecessary braces after EF_RISCV_RVC test. Delete call to
3165 set_gdbarch_decr_pc_after_break.
3166
ce73f310
JW
3167 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3168 RISCV_LAST_FP_REGNUM + 1.
3169 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3170
056dec39
TT
31712018-07-17 Tom Tromey <tom@tromey.com>
3172
3173 * configure.ac: Remove --disable-gdbcli.
3174 * configure: Rebuild.
3175 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3176 (SUBDIR_CLI_CFLAGS): Remove.
3177 (SFILES): Use SUBDIR_CLI_SRCS.
3178 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3179
4735f0ed
TT
31802018-07-17 Tom Tromey <tom@tromey.com>
3181
3182 PR gdb/18624:
3183 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3184
117a0e99
JW
31852018-07-16 Jim Wilson <jimw@sifive.com>
3186
3187 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3188
8a67aaa8
SM
31892018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3190
3191 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3192 variable.
3193 (libunwind_frame_sniffer): Likewise.
3194 (libunwind_frame_prev_register): Likewise.
3195 (libunwind_sigtramp_frame_sniffer): Likewise.
3196 * ia64-tdep.c (ia64_access_reg): Likewise.
3197 (ia64_access_rse_reg): Likewise.
3198 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3199 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3200
ec74dcd8
SM
32012018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3202
3203 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3204
a700e753
SM
32052018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3206
3207 * remote-sim.c (gdbsim_target::close,
3208 gdbsim_target::mourn_inferior): Remove unused variables.
3209
8b411ff8
SM
32102018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3211
3212 * ia64-tdep.c (ktab_buf): New global.
3213 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3214 (get_kernel_table): Adjust.
3215
edb0470b
TT
32162018-07-16 Tom Tromey <tom@tromey.com>
3217
3218 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3219 * dwarf2read.c (using_directives, new_symbol): Use
3220 outermost_context_p.
3221 * dbxread.c (process_one_symbol): Use outermost_context_p.
3222 * coffread.c (coff_symtab_read): Use outermost_context_p.
3223
6cccc9a8
TT
32242018-07-16 Tom Tromey <tom@tromey.com>
3225
3226 * dwarf2read.c (using_directives, read_func_scope)
3227 (read_lexical_block_scope): Update.
3228 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3229 * buildsym.h (local_using_directives, global_using_directives):
3230 Don't declare.
3231 (get_local_using_directives, set_local_using_directives)
3232 (get_global_using_directives): Declare.
3233 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3234 m_global_using_directives>: New members.
3235 (finish_block_internal, prepare_for_building)
3236 (reset_symtab_globals, end_symtab_get_static_block)
3237 (push_context): Update.
3238 (get_local_using_directives, set_local_using_directives)
3239 (get_global_using_directives): New functions.
3240 (buildsym_init): Update.
3241
652788a7
TT
32422018-07-16 Tom Tromey <tom@tromey.com>
3243
3244 * xcoffread.c (xcoff_initial_scan): Don't call
3245 free_pending_blocks.
3246 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3247 * buildsym.h (class scoped_free_pendings): Add constructor.
3248 (free_pending_blocks): Don't declare.
3249 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3250 (free_pending_blocks): Now static.
3251
8419ee53
TT
32522018-07-16 Tom Tromey <tom@tromey.com>
3253
3254 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3255 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3256 member.
3257 (struct subfile_stack): Remove.
3258 (subfile_stack): Remove.
3259 (push_subfile, pop_subfile, buildsym_init): Update.
3260
ccdac490
TT
32612018-07-16 Tom Tromey <tom@tromey.com>
3262
3263 * buildsym.c (push_subfile): Use gdb_assert.
3264 (pop_subfile): Use gdb_assert.
3265
43130d6f
TT
32662018-07-16 Tom Tromey <tom@tromey.com>
3267
3268 * buildsym.h (merge_symbol_lists): Remove.
3269 * buildsym.c (merge_symbol_lists): Remove.
3270
77d6f1aa
TT
32712018-07-16 Tom Tromey <tom@tromey.com>
3272
3273 * stabsread.c (scan_file_globals): Update comment.
3274 * stabsread.h (scan_file_globals): Move from buildsym.h.
3275 * buildsym.h (scan_file_globals): Move to stabsread.h.
3276
2c722d18
TT
32772018-07-16 Tom Tromey <tom@tromey.com>
3278
3279 * xcoffread.c (xcoff_new_init): Update.
3280 * mipsread.c (mipscoff_new_init): Update.
3281 * mdebugread.c (mdebug_build_psymtabs): Update.
3282 * elfread.c (elf_new_init): Update.
3283 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3284 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3285 * buildsym.h (buildsym_new_init): Don't declare.
3286 * buildsym.c (buildsym_new_init): Remove.
3287
5985ac61
TT
32882018-07-16 Tom Tromey <tom@tromey.com>
3289
3290 * stabsread.h (within_function): Move from buildsym.h.
3291 * stabsread.c (start_stabs): Clear within_function.
3292 * coffread.c (coff_start_symtab): Clear within_function.
3293 * buildsym.h (within_function): Move to stabsread.h.
3294 * buildsym.c (prepare_for_building): Update.
3295
6b84eeb2
TT
32962018-07-16 Tom Tromey <tom@tromey.com>
3297
3298 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3299 * dwarf2read.c (dwarf2_start_symtab): Don't set
3300 processing_gcc_compilation.
3301 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3302
2150c3ef
TT
33032018-07-16 Tom Tromey <tom@tromey.com>
3304
3305 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3306 (next_symbol_text_func): Move from buildsym.h.
3307 * stabsread.c (hashname): Move from buildsym.c.
3308 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3309 (next_symbol_text_func, hashname): Move to stabsread.h.
3310 * buildsym.c: Don't include bcache.h
3311 (hashname): Move to stasbread.c.
3312
0ec44fc0
TT
33132018-07-16 Tom Tromey <tom@tromey.com>
3314
3315 * buildsym.h (context_stack_size): Don't declare.
3316 * buildsym.c (context_stack_size): New global.
3317
81cc346d
TT
33182018-07-16 Tom Tromey <tom@tromey.com>
3319
3320 * dbxread.c (processing_acc_compilation): New global.
3321 * buildsym.h (processing_acc_compilation): Don't declare.
3322
2c99ee5c
TT
33232018-07-16 Tom Tromey <tom@tromey.com>
3324
3325 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3326 * dbxread.c (read_ofile_symtab): Update.
3327 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3328 * buildsym.h (last_source_start_addr): Remove.
3329 (set_last_source_start_addr, get_last_source_start_addr):
3330 Declare.
3331 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3332 parameter.
3333 (struct buildsym_compunit) <m_last_source_start_addr>: New
3334 member.
3335 (prepare_for_building): Remove start_addr parameter.
3336 (start_symtab, restart_symtab, end_symtab_get_static_block)
3337 (end_symtab_with_blockvector): Update.
3338 (set_last_source_start_addr, get_last_source_start_addr): New
3339 functions.
3340
530fedbc
TT
33412018-07-16 Tom Tromey <tom@tromey.com>
3342
3343 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3344 member.
3345 (have_line_numbers): Remove.
3346 (record_line, prepare_for_building, end_symtab_get_static_block)
3347 (augment_type_symtab): Update.
3348
6a976300
TT
33492018-07-16 Tom Tromey <tom@tromey.com>
3350
3351 * buildsym.c (~buildsym_compunit): Free the macro table.
3352 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3353 methods.
3354 <m_pending_macros>: New member.
3355 (pending_macros): Remove.
3356 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3357 (reset_symtab_globals, end_symtab_get_static_block)
3358 (end_symtab_with_blockvector, augment_type_symtab)
3359 (buildsym_init): Update.
3360
c0015d44
TT
33612018-07-16 Tom Tromey <tom@tromey.com>
3362
3363 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3364 parameter.
3365 (buildsym_compunit::set_last_source_file): New method.
3366 <m_last_source_file>: New member.
3367 (prepare_for_building): Remove "name" parameter.
3368 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3369 (last_source_file): Remove.
3370 (set_last_source_file, get_last_source_file): Update.
3371
e62cca7c
TT
33722018-07-16 Tom Tromey <tom@tromey.com>
3373
3374 * buildsym.c (prepare_for_building): Add assert.
3375
905eb0e2
TT
33762018-07-16 Tom Tromey <tom@tromey.com>
3377
3378 * buildsym.c (~buildsym_compunit): Update.
3379 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3380 (start_subfile, patch_subfile_names)
3381 (end_symtab_with_blockvector): Update.
3382
b248663f
TT
33832018-07-16 Tom Tromey <tom@tromey.com>
3384
3385 * buildsym.c (struct buildsym_compunit): Add constructor,
3386 destructor, initializers.
3387 (start_buildsym_compunit): Remove.
3388 (free_buildsym_compunit): Use "delete".
3389 (start_symtab, restart_symtab): Use "new".
3390
ff27d073
SM
33912018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3392
3393 * symfile.c (set_objfile_default_section_offset): Remove struct
3394 keyword.
3395
6a15ecf5
SH
33962018-07-14 Stafford Horne <shorne@gmail.com>
3397
3398 * (Responsible Maintainers): Add myself as or1k maintainer.
3399
027a4c30
TT
34002018-07-13 Tom Tromey <tom@tromey.com>
3401
3402 * symfile.c (set_objfile_default_section_offset): Use extra braces
3403 around initializer.
3404
5c1eda30
AA
34052018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3406
3407 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3408 non-branching basr.
3409
bc7b042b
PW
34102018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3411
3412 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3413 unittests/cli-utils-selftests.c
3414 * unittests/cli-utils-selftests.c: New file.
3415
a14c4daa
PW
34162018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3417
3418 * NEWS: Mention new commands. Mention change to 'thread apply'.
3419
1fe75df7
PW
34202018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3421
3422 * thread.c (thr_try_catch_cmd): New function.
3423 (thread_apply_all_command): Handle qcs flags.
3424 (thread_apply_command): Handle qcs flags.
3425 (taas_command): New function.
3426 (tfaas_command): New function.
3427 (_initialize_thread): Update to setup the new commands 'taas
3428 and 'tfaas'. Change doc string for 'thread apply'.
3429
6a70eb7d
PW
34302018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3431
3432 * stack.c: (trailing_outermost_frame): New function, mostly
3433 extracted from backtrace_command_1.
3434 (leading_innermost_frame): New function.
3435 (backtrace_command_1): Update to call trailing_outermost_frame.
3436 (frame_apply_command_count): New function.
3437 (frame_apply_level_command): New function.
3438 (frame_apply_all_command): New function.
3439 (frame_apply_command): New function.
3440 (faas_command): New function.
3441 (frame_cmd_list): New variable.
3442 (_initialize_stack): Update to setup the new commands 'frame apply'
3443 and 'faas'.
3444
529c08b2
PW
34452018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3446
3447 * cli-utils.c (number_or_range_parser::get_number): Only handle
3448 numbers or convenience var as numbers.
3449 (parse_flags): New function.
3450 (parse_flags_qcs): New function.
3451 (number_or_range_parser::finished): Ensure parsing end is detected
3452 before end of string.
3453 * cli-utils.h (parse_flags): New function.
3454 (parse_flags_qcs): New function.
3455 (number_or_range_parser): Remove m_finished bool.
3456 (number_or_range_parser::skip_range): Set m_in_range to false.
3457
64b58472
SDJ
34582018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3459
3460 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3461 on Windows.
3462
c7ab0aef
SDJ
34632018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3464 Jan Kratochvil <jan.kratochvil@redhat.com>
3465 Paul Fertser <fercerpav@gmail.com>
3466 Tsutomu Seki <sekiriki@gmail.com>
3467 Pedro Alves <palves@redhat.com>
3468
3469 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3470 'unittests/parse-connection-spec-selftests.c'.
3471 (COMMON_SFILES): Add 'common/netstuff.c'.
3472 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3473 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3474 * common/netstuff.c: New file.
3475 * common/netstuff.h: New file.
3476 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3477 (wait_for_connect): Update comment. New parameter
3478 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3479 Use 'sock' directly instead of 'scb->fd'.
3480 (try_connect): New function, with code from 'net_open'.
3481 (net_open): Rewrite main loop to deal with multiple
3482 sockets/addresses. Handle IPv6-style hostnames; implement
3483 support for IPv6 connections.
3484 * unittests/parse-connection-spec-selftests.c: New file.
3485
4c7333b3
PA
34862018-07-11 Pedro Alves <palves@redhat.com>
3487
3488 PR gdb/23377
3489 * remote.c (remote_target::remote_detach_pid): Call
3490 set_current_process.
3491
a6f88f6e
PA
34922018-07-11 Pedro Alves <palves@redhat.com>
3493
3494 * h8300-tdep.c (h8300_gdbarch_init): Remove
3495 set_gdbarch_ecoff_reg_to_regnum calls.
3496
16ff70dd
SDJ
34972018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3498
3499 PR c++/23373
3500 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3501 offsets/sizes for static members of a class/struct.
3502
12863263
AH
35032018-07-11 Alan Hayward <alan.hayward@arm.com>
3504
3505 * target-descriptions.c (tdesc_register_bitsize): Rename.
3506 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3507 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3508 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3509
1123588c
TT
35102018-07-10 Tom Tromey <tom@tromey.com>
3511
3512 * breakpoint.c (moribund_locations): Now static and a
3513 std::vector.
3514 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3515 (build_bpstat_chain, update_global_location_list)
3516 (breakpoint_retire_moribund): Update.
3517 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3518 VEC.
3519
8c49aa89
AB
35202018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3521
3522 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3523 (riscv_register_reggroup_p): Use new function, remove unneeded
3524 parenthesis.
3525 (riscv_push_dummy_call): Extend assert to compare against xlen or
3526 flen based on register type.
3527
42ecac17
AB
35282018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3529
3530 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3531
055303e2
AB
35322018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3533
3534 * remote.c (show_hardware_watchpoint_limit): New function.
3535 (show_hardware_watchpoint_length_limit): New function.
3536 (show_hardware_breakpoint_limit): New function.
3537 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
3538 where appropriate, update help text.
3539
8fd32c1c
TT
35402018-07-09 Tom Tromey <tom@tromey.com>
3541
3542 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
3543 (CLIBS): Don't mention NAT_CLIBS.
3544
31278b51
TT
35452018-07-09 Tom Tromey <tom@tromey.com>
3546
3547 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
3548 (LIBGDB_OBS, clean mostlyclean): Update.
3549 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
3550
e5fd1493
TT
35512018-07-09 Tom Tromey <tom@tromey.com>
3552
3553 * Makefile.in (%.c: %.y): Use ECHO_YACC.
3554 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
3555 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
3556
981e0c0c
TT
35572018-07-09 Tom Tromey <tom@tromey.com>
3558
3559 * Makefile.in (ALLDEPFILES): Remove exec.c.
3560 (COMMON_OBS): Remove exec.o.
3561 (COMMON_SFILES): Add exec.c.
3562
14ccceb2
TT
35632018-07-09 Tom Tromey <tom@tromey.com>
3564
3565 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
3566
5d3c3a68
TT
35672018-07-09 Tom Tromey <tom@tromey.com>
3568
3569 * Makefile.in (clean mostlyclean): Remove stamp-version.
3570 (version.c): Depend on stamp-version.
3571 (stamp-version): New rule, from version.c rule.
3572
1998086d
TT
35732018-07-09 Tom Tromey <tom@tromey.com>
3574
3575 * Makefile.in (init.c): Depend on stamp-init.
3576 (stamp-init): New rule, from init.c rule.
3577 (clean mostlyclean): Remove stamp-init.
3578
4c754949
TT
35792018-07-09 Tom Tromey <tom@tromey.com>
3580
3581 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
3582 SUBDIR_GCC_COMPILE_SRCS.
3583
6497f1dd
TT
35842018-07-09 Tom Tromey <tom@tromey.com>
3585
3586 * Makefile.in (init.c): Remove some unused sed rules.
3587
97a34db9
TT
35882018-07-09 Tom Tromey <tom@tromey.com>
3589
3590 * Makefile.in (TSOBS): Remove.
3591 (INIT_FILES): Update.
3592 (LIBGDB_OBS): Update.
3593 (COMMON_SFILES): Add inflow.c.
3594 (SFILES): Remove inflow.c.
3595
25289ac1
JK
35962018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3597
3598 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
3599
e83f4d97
SM
36002018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
3601
4869c585
SM
3602 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
3603 get_saveloc_name, is_signal_frame_name, step_name,
3604 init_remote_name, create_addr_space_name,
3605 destroy_addr_space_name, search_unwind_table_name,
3606 find_dyn_list_name): Constify.
e83f4d97 3607
6821842f
SM
36082018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
3609
3610 * darwin-nat.c (darwin_pthread_kill): New function.
3611 (darwin_resume_thread): Use darwin_pthread_kill.
3612
c530603c
TV
36132018-07-05 Tom de Vries <tdevries@suse.de>
3614
3615 * macroexp.c (macro_buffer) <operator=>: New member function.
3616
a7d0f0f0
TT
36172018-07-04 Tom Tromey <tom@tromey.com>
3618
3619 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
3620
6242c6a6
SM
36212018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
3622
3623 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
3624 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
3625 * maint.c: Likewise.
3626 * top.c: Likewise.
3627
4e5b2f89
JB
36282018-07-04 Joel Brobecker <brobecker@adacore.com>
3629
3630 * NEWS: Create a new section for the next release branch.
3631 Rename the section of the current branch, now that it has
3632 been cut.
3633
538ccc4a
JB
36342018-07-04 Joel Brobecker <brobecker@adacore.com>
3635
3636 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
3637 * version.in: Bump version to 8.2.50.DATE-git.
3638
1b919490
VB
36392018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3640 Pedro Alves <palves@redhat.com>
3641
3642 * linux-nat.c (linux_init_ptrace): Rename to ...
3643 (linux_init_ptrace_procfs): ... this. Call
3644 linux_proc_init_warnings.
3645 (linux_nat_target::post_attach)
3646 (linux_nat_target::post_startup_inferior): Adjust.
3647 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
3648 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
3649
1ea5da02
TV
36502018-07-04 Tom de Vries <tdevries@suse.de>
3651
3652 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
3653 check ...
3654 (read_comp_unit_head): ... here.
3655
f51e0e20
TT
36562018-07-03 Tom Tromey <tom@tromey.com>
3657
3658 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
3659 (stop_tracing, tstatus_command)
3660 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
3661 (print_one_static_tracepoint_marker): Update.
3662 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
3663 std::vector.
3664 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
3665 VEC.
3666 (all_tracepoints, static_tracepoints_here): Return std::vector.
3667
d7e15655
TT
36682018-07-03 Tom Tromey <tom@tromey.com>
3669
3670 * common/ptid.c (ptid_equal): Remove.
3671 * common/ptid.h (ptid_equal): Don't declare.
3672 * ada-tasks.c: Update.
3673 * breakpoint.c: Update.
3674 * common/agent.c: Update.
3675 * corelow.c: Update.
3676 * darwin-nat-info.c: Update.
3677 * darwin-nat.c: Update.
3678 * dcache.c: Update.
3679 * dtrace-probe.c: Update.
3680 * dummy-frame.c: Update.
3681 * fbsd-nat.c: Update.
3682 * frame.c: Update.
3683 * gdbthread.h: Update.
3684 * gnu-nat.c: Update.
3685 * go32-nat.c: Update.
3686 * inf-loop.c: Update.
3687 * inf-ptrace.c: Update.
3688 * infcall.c: Update.
3689 * infcmd.c: Update.
3690 * inflow.c: Update.
3691 * infrun.c: Update.
3692 * linux-fork.c: Update.
3693 * linux-nat.c: Update.
3694 * linux-thread-db.c: Update.
3695 * mi/mi-cmd-var.c: Update.
3696 * mi/mi-interp.c: Update.
3697 * mi/mi-main.c: Update.
3698 * nto-procfs.c: Update.
3699 * ppc-linux-tdep.c: Update.
3700 * procfs.c: Update.
3701 * python/py-inferior.c: Update.
3702 * python/py-record-btrace.c: Update.
3703 * python/py-record.c: Update.
3704 * ravenscar-thread.c: Update.
3705 * regcache.c: Update.
3706 * remote-sim.c: Update.
3707 * remote.c: Update.
3708 * sol-thread.c: Update.
3709 * solib.c: Update.
3710 * target.c: Update.
3711 * tui/tui-stack.c: Update.
3712 * varobj.c: Update.
3713 * windows-nat.c: Update.
3714 * windows-tdep.c: Update.
3715
26a57c92
TT
37162018-07-03 Tom Tromey <tom@tromey.com>
3717
3718 * common/ptid.c (ptid_match): Remove.
3719 * common/ptid.h (ptid_match): Don't declare.
3720 * fbsd-nat.c: Update.
3721 * infcmd.c: Update.
3722 * infrun.c: Update.
3723 * linux-nat.c: Update.
3724 * record-btrace.c: Update.
3725 * regcache.c: Update.
3726 * remote.c: Update.
3727
d2a107e3
TT
37282018-07-03 Tom Tromey <tom@tromey.com>
3729
3730 * common/ptid.c (ptid_tid_p): Remove.
3731 * common/ptid.h (ptid_tid_p): Don't declare.
3732 * sol-thread.c: Update.
3733
15a9e13e
TT
37342018-07-03 Tom Tromey <tom@tromey.com>
3735
3736 * common/ptid.c (ptid_lwp_p): Remove.
3737 * common/ptid.h (ptid_lwp_p): Don't declare.
3738 * fbsd-nat.c: Update.
3739 * linux-nat.c: Update.
3740 * nat/linux-procfs.c: Update.
3741 * nat/x86-linux-dregs.c: Update.
3742 * sol-thread.c: Update.
3743
0e998d96
TT
37442018-07-03 Tom Tromey <tom@tromey.com>
3745
3746 * common/ptid.c (ptid_is_pid): Remove.
3747 * common/ptid.h (ptid_is_pid): Don't declare.
3748 * infrun.c: Update.
3749 * linux-nat.c: Update.
3750 * mi/mi-interp.c: Update.
3751 * remote.c: Update.
3752 * thread.c: Update.
3753
cc6bcb54
TT
37542018-07-03 Tom Tromey <tom@tromey.com>
3755
3756 * common/ptid.c (ptid_get_tid): Remove.
3757 * common/ptid.h (ptid_get_tid): Don't declare.
3758 * ada-tasks.c: Update.
3759 * aix-thread.c: Update.
3760 * bsd-uthread.c: Update.
3761 * darwin-nat.c: Update.
3762 * fbsd-nat.c: Update.
3763 * i386-darwin-nat.c: Update.
3764 * infrun.c: Update.
3765 * linux-tdep.c: Update.
3766 * nto-procfs.c: Update.
3767 * ppc-ravenscar-thread.c: Update.
3768 * python/py-infthread.c: Update.
3769 * ravenscar-thread.c: Update.
3770 * sol-thread.c: Update.
3771 * sparc-ravenscar-thread.c: Update.
3772 * windows-nat.c: Update.
3773
e38504b3
TT
37742018-07-03 Tom Tromey <tom@tromey.com>
3775
3776 * common/ptid.c (ptid_get_lwp): Remove.
3777 * common/ptid.h (ptid_get_lwp): Don't declare.
3778 * aarch64-linux-nat.c: Update.
3779 * ada-tasks.c: Update.
3780 * aix-thread.c: Update.
3781 * amd64-linux-nat.c: Update.
3782 * arm-linux-nat.c: Update.
3783 * corelow.c: Update.
3784 * fbsd-nat.c: Update.
3785 * fbsd-tdep.c: Update.
3786 * gnu-nat.c: Update.
3787 * i386-cygwin-tdep.c: Update.
3788 * i386-gnu-nat.c: Update.
3789 * i386-linux-nat.c: Update.
3790 * ia64-linux-nat.c: Update.
3791 * inf-ptrace.c: Update.
3792 * infrun.c: Update.
3793 * linux-fork.c: Update.
3794 * linux-nat.c: Update.
3795 * linux-tdep.c: Update.
3796 * linux-thread-db.c: Update.
3797 * mips-linux-nat.c: Update.
3798 * nat/aarch64-linux-hw-point.c: Update.
3799 * nat/aarch64-linux.c: Update.
3800 * nat/linux-btrace.c: Update.
3801 * nat/linux-osdata.c: Update.
3802 * nat/linux-procfs.c: Update.
3803 * nat/x86-linux-dregs.c: Update.
3804 * obsd-nat.c: Update.
3805 * ppc-fbsd-nat.c: Update.
3806 * ppc-linux-nat.c: Update.
3807 * procfs.c: Update.
3808 * python/py-infthread.c: Update.
3809 * ravenscar-thread.c: Update.
3810 * remote.c: Update.
3811 * s390-linux-nat.c: Update.
3812 * sol-thread.c: Update.
3813 * sol2-tdep.c: Update.
3814 * spu-linux-nat.c: Update.
3815 * x86-linux-nat.c: Update.
3816 * xtensa-linux-nat.c: Update.
3817
e99b03dc
TT
38182018-07-03 Tom Tromey <tom@tromey.com>
3819
3820 * common/ptid.c (ptid_get_pid): Remove.
3821 * common/ptid.h (ptid_get_pid): Don't declare.
3822 * aarch64-linux-nat.c: Update.
3823 * ada-lang.c: Update.
3824 * aix-thread.c: Update.
3825 * alpha-bsd-nat.c: Update.
3826 * amd64-fbsd-nat.c: Update.
3827 * amd64-linux-nat.c: Update.
3828 * arm-linux-nat.c: Update.
3829 * arm-nbsd-nat.c: Update.
3830 * auxv.c: Update.
3831 * break-catch-syscall.c: Update.
3832 * breakpoint.c: Update.
3833 * bsd-uthread.c: Update.
3834 * corelow.c: Update.
3835 * ctf.c: Update.
3836 * darwin-nat.c: Update.
3837 * fbsd-nat.c: Update.
3838 * fbsd-tdep.c: Update.
3839 * gcore.c: Update.
3840 * gnu-nat.c: Update.
3841 * hppa-nbsd-nat.c: Update.
3842 * hppa-obsd-nat.c: Update.
3843 * i386-fbsd-nat.c: Update.
3844 * ia64-linux-nat.c: Update.
3845 * inf-ptrace.c: Update.
3846 * infcmd.c: Update.
3847 * inferior.c: Update.
3848 * inferior.h: Update.
3849 * inflow.c: Update.
3850 * infrun.c: Update.
3851 * linux-fork.c: Update.
3852 * linux-nat.c: Update.
3853 * linux-tdep.c: Update.
3854 * linux-thread-db.c: Update.
3855 * m68k-bsd-nat.c: Update.
3856 * mi/mi-interp.c: Update.
3857 * mi/mi-main.c: Update.
3858 * mips-linux-nat.c: Update.
3859 * mips-nbsd-nat.c: Update.
3860 * mips64-obsd-nat.c: Update.
3861 * nat/aarch64-linux-hw-point.c: Update.
3862 * nat/aarch64-linux.c: Update.
3863 * nat/linux-btrace.c: Update.
3864 * nat/linux-osdata.c: Update.
3865 * nat/linux-procfs.c: Update.
3866 * nat/x86-linux-dregs.c: Update.
3867 * nto-procfs.c: Update.
3868 * obsd-nat.c: Update.
3869 * ppc-linux-nat.c: Update.
3870 * ppc-nbsd-nat.c: Update.
3871 * ppc-obsd-nat.c: Update.
3872 * proc-service.c: Update.
3873 * procfs.c: Update.
3874 * python/py-inferior.c: Update.
3875 * python/py-infthread.c: Update.
3876 * ravenscar-thread.c: Update.
3877 * record.c: Update.
3878 * remote-sim.c: Update.
3879 * remote.c: Update.
3880 * rs6000-nat.c: Update.
3881 * s390-linux-nat.c: Update.
3882 * sh-nbsd-nat.c: Update.
3883 * sol-thread.c: Update.
3884 * sparc-nat.c: Update.
3885 * sparc64-tdep.c: Update.
3886 * spu-linux-nat.c: Update.
3887 * spu-tdep.c: Update.
3888 * target-debug.h: Update.
3889 * target.c: Update.
3890 * thread.c: Update.
3891 * tid-parse.c: Update.
3892 * tracefile-tfile.c: Update.
3893 * vax-bsd-nat.c: Update.
3894 * windows-nat.c: Update.
3895 * x86-linux-nat.c: Update.
3896 * x86-nat.c: Update.
3897
f2907e49
TT
38982018-07-03 Tom Tromey <tom@tromey.com>
3899
3900 * common/ptid.c (pid_to_ptid): Remove.
3901 * common/ptid.h (pid_to_ptid): Don't declare.
3902 * aix-thread.c: Update.
3903 * arm-linux-nat.c: Update.
3904 * common/ptid.c: Update.
3905 * common/ptid.h: Update.
3906 * corelow.c: Update.
3907 * ctf.c: Update.
3908 * darwin-nat.c: Update.
3909 * fbsd-nat.c: Update.
3910 * fork-child.c: Update.
3911 * gnu-nat.c: Update.
3912 * go32-nat.c: Update.
3913 * inf-ptrace.c: Update.
3914 * infcmd.c: Update.
3915 * inferior.c: Update.
3916 * infrun.c: Update.
3917 * linux-fork.c: Update.
3918 * linux-nat.c: Update.
3919 * nat/aarch64-linux-hw-point.c: Update.
3920 * nat/fork-inferior.c: Update.
3921 * nat/x86-linux-dregs.c: Update.
3922 * nto-procfs.c: Update.
3923 * obsd-nat.c: Update.
3924 * procfs.c: Update.
3925 * progspace.c: Update.
3926 * remote.c: Update.
3927 * rs6000-nat.c: Update.
3928 * s390-linux-nat.c: Update.
3929 * sol-thread.c: Update.
3930 * spu-linux-nat.c: Update.
3931 * target.c: Update.
3932 * top.c: Update.
3933 * tracefile-tfile.c: Update.
3934 * windows-nat.c: Update.
3935
fd79271b
TT
39362018-07-03 Tom Tromey <tom@tromey.com>
3937
3938 * common/ptid.h (ptid_build): Don't declare.
3939 * common/ptid.c (ptid_build): Remove.
3940 * aix-thread.c: Update.
3941 * bsd-kvm.c: Update.
3942 * bsd-uthread.c: Update.
3943 * common/agent.c: Update.
3944 * common/ptid.c: Update.
3945 * common/ptid.h: Update.
3946 * corelow.c: Update.
3947 * darwin-nat.c: Update.
3948 * fbsd-nat.c: Update.
3949 * gnu-nat.c: Update.
3950 * linux-fork.c: Update.
3951 * linux-nat.c: Update.
3952 * linux-thread-db.c: Update.
3953 * nat/linux-osdata.c: Update.
3954 * nat/linux-procfs.c: Update.
3955 * nto-procfs.c: Update.
3956 * obsd-nat.c: Update.
3957 * proc-service.c: Update.
3958 * procfs.c: Update.
3959 * ravenscar-thread.c: Update.
3960 * remote-sim.c: Update.
3961 * remote.c: Update.
3962 * sol-thread.c: Update.
3963 * target.c: Update.
3964 * windows-nat.c: Update.
3965
057302ce
TT
39662018-07-03 Tom Tromey <tom@tromey.com>
3967
3968 * infrun.c (follow_exec): Use exit_inferior_silent.
3969 * inferior.c (exit_inferior_num_silent): Remove.
3970 * inferior.h (exit_inferior_num_silent): Don't declare.
3971
a50c11c6
TT
39722018-07-03 Tom Tromey <tom@tromey.com>
3973
3974 PR cli/23340:
3975 * darwin-nat.c (darwin_attach_pid): Reset inferior and
3976 inferior_ptid on error.
3977
471b9d15
MR
39782018-07-02 Maciej W. Rozycki <macro@mips.com>
3979 Simon Marchi <simon.marchi@polymtl.ca>
3980
3981 PR tdep/8282
3982 * disasm.h (gdb_disassembler): Add
3983 `m_disassembler_options_holder'. member
3984 * disasm.c (get_all_disassembler_options): New function.
3985 (gdb_disassembler::gdb_disassembler): Use it.
3986 (gdb_buffered_insn_length_init_dis): Likewise.
3987 (gdb_buffered_insn_length): Adjust accordingly.
3988 (set_disassembler_options): Handle options with arguments.
3989 (show_disassembler_options_sfunc): Likewise. Add a leading new
3990 line if showing options with descriptions.
3991 (disassembler_options_completer): Adapt to using the
3992 `disasm_options_and_args_t' structure.
3993 * mips-tdep.c (mips_disassembler_options): New variable.
3994 (mips_disassembler_options_o32): Likewise.
3995 (mips_disassembler_options_n32): Likewise.
3996 (mips_disassembler_options_n64): Likewise.
3997 (gdb_print_insn_mips): Don't set `disassembler_options'.
3998 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
3999 functions.
4000 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4001 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4002 `gdbarch_disassembler_options_implicit' and
4003 `gdbarch_valid_disassembler_options'.
4004 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4005 `disasm_options_and_args_t' structure.
4006 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4007 method.
4008 (valid_disassembler_options): Switch from `disasm_options_t' to
4009 the `disasm_options_and_args_t' structure.
4010 * NEWS: Document `set disassembler-options' support for the MIPS
4011 target.
4012 * gdbarch.h: Regenerate.
4013 * gdbarch.c: Regenerate.
4014
41823f29
SH
40152018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4016
4017 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4018
41206e32
JB
40192018-06-29 Joel Brobecker <brobecker@adacore.com>
4020
4021 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4022 parameter in call to amd64_target_description.
4023 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4024 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4025 (amd64fbsd_init_abi): Likewise.
4026 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4027 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4028 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4029 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4030
de52b960
PA
40312018-06-29 Pedro Alves <palves@redhat.com>
4032
4033 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4034 "segments" parameter.
4035 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4036 (_initialize_amd64_tdep): Update call to
4037 amd64_create_target_description.
4038 (amd64_target_description): Add "segments" parameter. Adjust
4039 the implementation to use it.
4040 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4041 call to amd64_create_target_description.
4042 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4043 * gdb/arch/amd64.h (amd64_create_target_description): Add
4044 "segments" register.
4045 * gdb/arch/amd64.c (amd64_create_target_description): Add
4046 "segments" parameter. Call create_feature_i386_64bit_segments
4047 only if SEGMENTS is true.
4048 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4049 call to amd64_create_target_description.
4050
75acb486
PA
40512018-06-29 Pedro Alves <palves@redhat.com>
4052
4053 * thread.c (thread_target_id_str): New, factored out from ...
4054 (print_thread_info_1): ... here. Use it to compute the max
4055 "Target Id" column width.
4056
c76a8ea3
PA
40572018-06-29 Pedro Alves <palves@redhat.com>
4058
4059 * remote.c (remote_target::extra_thread_info): Delete
4060 'display_buf' and 'n' locals. from the cache, regardless of
4061 packet mechanims is in use. Use cache for qThreadExtra and qP
4062 methods too.
4063
cd2bb709
PA
40642018-06-29 Pedro Alves <palves@redhat.com>
4065
4066 * blockframe.c (find_pc_sect_containing_function): New function.
4067 * breakpoint.c (print_breakpoint_location): Don't call
4068 find_pc_sect_function.
4069 * linespec.c (create_sals_line_offset): Record the location's
4070 symbol in the sal.
4071 * linespec.c (convert_address_location_to_sals): Fill in sal's
4072 symbol with find_pc_sect_containing_function.
4073 * symtab.c (find_function_start_sal): Rename to ...
4074 (find_function_start_sal_1): ... this.
4075 (find_function_start_sal): Reimplement as wrapper around
4076 find_function_start_sal_1, and use
4077 find_pc_sect_containing_function to fill in the sal's symbol.
4078 (find_function_start_sal(symbol*, bool)): Adjust.
4079 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4080 comments.
4081 (find_pc_sect_containing_function): Declare.
4082
991ff292
PA
40832018-06-29 Pedro Alves <palves@redhat.com>
4084
4085 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4086 true if the the location has no symbol.
4087
44cee4fd
TT
40882018-06-28 Tom Tromey <tom@tromey.com>
4089
4090 * NEWS: Mention --enable-codesign.
4091 * silent-rules.mk (ECHO_SIGN): New variable.
4092 * configure.ac: Add --enable-codesign.
4093 * configure: Rebuild.
4094 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4095 (gdb$(EXEEXT)): Optionally invoke codesign.
4096
f2ffa92b
PA
40972018-06-28 Pedro Alves <palves@redhat.com>
4098
4099 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4100 comments.
4101 (switch_to_thread_no_regs): Adjust comment.
4102 * infcmd.c (stop_pc): Delete.
4103 (post_create_inferior, info_program_command): Replace references
4104 to stop_pc with references to thread_info->suspend.stop_pc.
4105 * inferior.h (stop_pc): Delete declaration.
4106 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4107 (handle_inferior_event_1, handle_signal_stop)
4108 (process_event_stop_test, keep_going_stepped_thread)
4109 (handle_step_into_function, handle_step_into_function_backward)
4110 (print_stop_location): Replace references to stop_pc with
4111 references to thread_info->suspend.stop_pc.
4112 (struct infcall_suspend_state) <stop_pc>: Delete field.
4113 (save_infcall_suspend_state, restore_infcall_suspend_state):
4114 Remove references to inf_stat->stop_pc.
4115 * linux-fork.c (fork_load_infrun_state): Likewise.
4116 * record-btrace.c (record_btrace_set_replay): Likewise.
4117 * record-full.c (record_full_goto_entry): Likewise.
4118 * remote.c (print_one_stopped_thread): Likewise.
4119 * target.c (target_resume): Extend comment.
4120 * thread.c (set_executing_thread): New.
4121 (set_executing): Use it.
4122 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4123 Remove references to stop_pc.
4124
ecdc3a72
PA
41252018-06-28 Pedro Alves <palves@redhat.com>
4126
4127 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4128 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4129
d95d3aef
TT
41302018-06-28 Tom Tromey <tom@tromey.com>
4131
4132 * coffread.c (coff_symfile_finish): Update.
4133 * xcoffread.c (xcoff_symfile_finish): Update.
4134 * elfread.c (elf_symfile_finish): Update.
4135 * symfile.h (dwarf2_free_objfile): Don't declare.
4136 * dwarf2read.c (_initialize_dwarf2_read): Use
4137 register_objfile_data_with_cleanup.
4138 (dwarf2_free_objfile): Now static. Change signature.
4139
291f9a96
PT
41402018-06-28 Petr Tesarik <ptesarik@suse.cz>
4141
4142 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4143 option "-o" to add-symbol-file-load to add an offset to each
4144 section's load address.
4145 * symfile.c (set_objfile_default_section_offset): New function.
4146
d81a3eaf
PT
41472018-06-28 Petr Tesarik <ptesarik@suse.cz>
4148
4149 * symfile.c (add_symbol_file_command): Make sure that sections
4150 with the same name are sorted in the same order.
4151
ed6dfe51
PT
41522018-06-28 Petr Tesarik <ptesarik@suse.cz>
4153
4154 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4155 require the second argument. If omitted, load sections at the
4156 addresses specified in the file.
4157
d4d429d5
PT
41582018-06-28 Petr Tesarik <ptesarik@suse.cz>
4159
4160 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4161 (_initialize_symfile): Add option "-o" to symbol-file to add an
4162 offset to each section of the symbol file.
4163
39b27ab6
PT
41642018-06-28 Petr Tesarik <ptesarik@suse.cz>
4165
4166 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4167
41827fc3
TT
41682018-06-27 Tom Tromey <tom@tromey.com>
4169
4170 * stack.c (_initialize_stack): Update "func" help text.
4171
0c6aef22
TT
41722018-06-27 Tom Tromey <tom@tromey.com>
4173
4174 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4175 std::vector.
4176 (unwind_infopy_str, pyuw_create_unwind_info)
4177 (unwind_infopy_add_saved_register, pyuw_sniffer)
4178 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4179 Update.
4180 (struct saved_reg): Add constructor.
4181 <value>: Now a gdbpy_ref<>.
4182
63177289
TT
41832018-06-27 Tom Tromey <tom@tromey.com>
4184
4185 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4186
e76f78a0
SM
41872018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4188
4189 * gdb-gdb.py.in: Format using autopep8.
4190
9a14af7b
SM
41912018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4192
4193 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4194 (type_lookup_function): Recognize CORE_ADDR values.
4195
189366cd
SM
41962018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4197
4198 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4199 print tag_name.
4200
68ad5fb9
SM
42012018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4202
4203 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4204 <__lt__>: Add.
4205
141ec9f6
SM
42062018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4207
4208 * gdb-gdb.py: Move to...
4209 * gdb-gdb.py.in: ... here.
4210 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4211 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4212 dependencies.
4213 (distclean): Remove gdb-gdb.py when cleaning.
4214 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4215 * configure: Re-generate.
4216
4c4e7ad4
PA
42172018-06-27 Pedro Alves <palves@redhat.com>
4218
4219 * proc-service.c (get_ps_regcache): New.
4220 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4221 (ps_lsetfpregs): Use it.
4222
7ab6656f
OJ
42232018-06-27 Omair Javaid <omair.javaid@linaro.org>
4224
4225 PR gdb/21695
4226 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4227 (dwarf_decode_lines_1): Adjust.
4228
bd583225
SM
42292018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4230
4231 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4232 override.
4233 <info_proc>: Likewise.
4234
9a325b7b
JB
42352018-06-26 Joel Brobecker <brobecker@adacore.com>
4236
4237 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4238 to windows_fetch_one_register, and only handle the case of
4239 fetching one register. Move the code that reloads the context
4240 and iterates over all registers if R is negative to...
4241 (windows_nat_target::fetch_registers): ... here.
4242 (do_windows_store_inferior_registers): Rename to
4243 windows_store_one_register, and only handle the case of storing
4244 one register. Move the code that handles the case where r is
4245 negative to...
4246 (windows_nat_target::store_registers) ... here.
4247
a33ccfc7
TT
42482018-06-26 Tom Tromey <tom@tromey.com>
4249
4250 PR rust/22574:
4251 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4252 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4253 Update.
4254 (rust_internal_print_type): Add podata parameter.
4255 (rust_print_type): Update.
4256
e0c547d1
TT
42572018-06-26 Tom Tromey <tom@tromey.com>
4258
4259 * typeprint.h (struct print_offset_data) <update, finish,
4260 maybe_print_hole>: New methods.
4261 <indentation>: New constant.
4262 * typeprint.c (print_offset_data::indentation): Define.
4263 (print_offset_data::maybe_print_hole, print_offset_data::update)
4264 (print_offset_data::finish): Move from c-typeprint.c and rename.
4265 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4266 (print_spaces_filtered_with_print_options): Update.
4267 (c_print_type_union_field_offset, maybe_print_hole)
4268 (c_print_type_struct_field_offset): Move to typeprint.c and
4269 rename.
4270 (c_type_print_base_struct_union): Update.
4271
75cbc781
PA
42722018-06-25 Pedro Alves <palves@redhat.com>
4273
4274 * gdbthread.h (thread_info_ref, delete_thread)
4275 (delete_thread_silent, first_thread_of_inferior)
4276 (any_thread_of_inferior, switch_to_thread)
4277 (enable_thread_stack_temporaries)
4278 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4279 (get_last_thread_stack_temporary)
4280 (value_in_thread_stack_temporaries, can_access_registers_thread):
4281 Spell out "struct thread_info" instead of just "thread_info".
4282 * inferior.h (notice_new_inferior): Likewise.
4283
b7a08269
PA
42842018-06-25 Pedro Alves <palves@redhat.com>
4285
4286 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4287 pass thread_info pointer to delete_thread.
4288 (windows_nat_target::detach): Pass inferior pointer to
4289 detach_inferior.
4290 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4291 delete_thread.
4292 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4293 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4294 and pass a thread_info pointer to delete_thread.
4295 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4296 pass thread_info pointer to delete_thread.
4297 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4298 delete_thread_silent call.
4299 * procfs.c (procfs_target::detach): Pass inferior pointer to
4300 detach_inferior.
4301 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4302 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4303 delete_thread_silent call.
4304 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4305 pass thread_info pointer to delete_thread.
4306 (windows_nat_target::detach): Pass inferior pointer to
4307 delete_inferior.
4308
8e7767e3
AH
43092018-06-22 Alan Hayward <alan.hayward@arm.com>
4310
4311 * regcache.c (readable_regcache::read_part): Fix asserts.
4312 (reg_buffer::raw_collect_part): New function.
4313 (regcache::write_part): Fix asserts.
4314 (reg_buffer::raw_supply_part): New function.
4315 (regcache::transfer_regset_register): New helper function.
4316 (regcache::transfer_regset): Call new functions.
4317 (regcache_supply_regset): Use gdb_byte*.
4318 (regcache::supply_regset): Likewise.
4319 (regcache_collect_regset): Likewise.
4320 (regcache::collect_regset): Likewise.
4321 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4322 (reg_buffer::raw_supply_part): Likewise.
4323 (regcache::transfer_regset_register): Likewise.
4324 (regcache::transfer_regset): Use gdb_byte*.
4325
bfd60e34
AH
43262018-06-22 Alan Hayward <alan.hayward@arm.com>
4327
4328 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4329
00431a78
PA
43302018-06-21 Pedro Alves <palves@redhat.com>
4331
4332 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4333 instead of a ptid_t. All callers adjusted.
4334 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4335 adjusted.
4336 (print_ada_task_info, display_current_task_id, task_command_1):
4337 Adjust.
4338 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4339 inferior_thread.
4340 (breakpoint_kind): Adjust.
4341 (remove_breakpoints_pid): Rename to ...
4342 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4343 pointer. All callers adjusted.
4344 (bpstat_clear_actions): Use inferior_thread.
4345 (get_bpstat_thread): New.
4346 (bpstat_do_actions): Use it.
4347 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4348 to take a thread_info pointer. All callers adjusted.
4349 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4350 (breakpoint_re_set_thread): Use inferior_thread.
4351 * breakpoint.h (struct inferior): Forward declare.
4352 (bpstat_stop_status): Update.
4353 (remove_breakpoints_pid): Delete.
4354 (remove_breakpoints_inf): New.
4355 * bsd-uthread.c (bsd_uthread_target::wait)
4356 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4357 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4358 (maint_btrace_packet_history_cmd)
4359 (maint_btrace_clear_packet_history_cmd): Adjust.
4360 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4361 inferior_thread.
4362 * cli/cli-interp.c: Include "inferior.h".
4363 * common/refcounted-object.h (struct
4364 refcounted_object_ref_policy): New.
4365 * compile/compile-object-load.c: Include gdbthread.h.
4366 (store_regs): Use inferior_thread.
4367 * corelow.c (core_target::close): Use current_inferior.
4368 (core_target_open): Adjust to use first_thread_of_inferior and use
4369 the current inferior.
4370 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4371 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4372 <thread>: ... this new field. All references adjusted.
4373 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4374 Take a thread_info pointer instead of a ptid_t.
4375 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4376 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4377 thread_info pointer instead of a ptid_t.
4378 * elfread.c: Include "inferior.h".
4379 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4380 Use inferior_thread.
4381 * eval.c (evaluate_subexp): Likewise.
4382 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4383 inferior_thread.
4384 * gdb_proc_service.h (struct thread_info): Forward declare.
4385 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4386 <thread>: ... this new field. All references adjusted.
4387 * gdbarch.h, gdbarch.c: Regenerate.
4388 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4389 'thread' parameter. All implementations and callers adjusted.
4390 * gdbthread.h (thread_info) <set_running>: New method.
4391 (delete_thread, delete_thread_silent): Take a thread_info pointer
4392 instead of a ptid.
4393 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4394 (first_thread_of_process): Delete, replaced by ...
4395 (first_thread_of_inferior): ... this new function. All callers
4396 adjusted.
4397 (any_live_thread_of_process): Delete, replaced by ...
4398 (any_live_thread_of_inferior): ... this new function. All callers
4399 adjusted.
4400 (switch_to_thread, switch_to_no_thread): Declare.
4401 (is_executing): Delete.
4402 (enable_thread_stack_temporaries): Update comment.
4403 <enable_thread_stack_temporaries>: Take a thread_info pointer
4404 instead of a ptid_t. Incref the thread.
4405 <~enable_thread_stack_temporaries>: Decref the thread.
4406 <m_ptid>: Delete
4407 <m_thr>: New.
4408 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4409 (get_last_thread_stack_temporary)
4410 (value_in_thread_stack_temporaries, can_access_registers_thread):
4411 Take a thread_info pointer instead of a ptid_t. All callers
4412 adjusted.
4413 * infcall.c (get_call_return_value): Use inferior_thread.
4414 (run_inferior_call): Work with thread pointers instead of ptid_t.
4415 (call_function_by_hand_dummy): Work with thread pointers instead
4416 of ptid_t. Use thread_info_ref.
4417 * infcmd.c (proceed_thread_callback): Access thread's state
4418 directly.
4419 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4420 access thread's state directly.
4421 (continue_command): Use inferior_thread.
4422 (info_program_command): Use find_thread_ptid and access thread
4423 state directly.
4424 (proceed_after_attach_callback): Use thread state directly.
4425 (notice_new_inferior): Take a thread_info pointer instead of a
4426 ptid_t. All callers adjusted.
4427 (exit_inferior): Take an inferior pointer instead of a pid. All
4428 callers adjusted.
4429 (exit_inferior_silent): New.
4430 (detach_inferior): Delete.
4431 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4432 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4433 (detach_inferior_command, kill_inferior_command): Use
4434 find_inferior_id instead of valid_gdb_inferior_id and
4435 gdb_inferior_id_to_pid.
4436 (inferior_command): Use inferior and thread pointers.
4437 * inferior.h (struct thread_info): Forward declare.
4438 (notice_new_inferior): Take a thread_info pointer instead of a
4439 ptid_t. All callers adjusted.
4440 (detach_inferior): Delete declaration.
4441 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4442 instead of a pid. All callers adjusted.
4443 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4444 (valid_gdb_inferior_id): Delete.
4445 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4446 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4447 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4448 ...
4449 <inf>: ... this new field.
4450 <step_ptid>: Delete, replaced by ...
4451 <step_thread>: ... this new field.
4452 (get_displaced_stepping_state): Take an inferior pointer instead
4453 of a pid. All callers adjusted.
4454 (displaced_step_in_progress_any_inferior): Adjust.
4455 (displaced_step_in_progress_thread): Take a thread pointer instead
4456 of a ptid_t. All callers adjusted.
4457 (displaced_step_in_progress, add_displaced_stepping_state): Take
4458 an inferior pointer instead of a pid. All callers adjusted.
4459 (get_displaced_step_closure_by_addr): Adjust.
4460 (remove_displaced_stepping_state): Take an inferior pointer
4461 instead of a pid. All callers adjusted.
4462 (displaced_step_prepare_throw, displaced_step_prepare)
4463 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4464 All callers adjusted.
4465 (start_step_over): Adjust.
4466 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4467 displaced step queue.
4468 (do_target_resume): Adjust.
4469 (fetch_inferior_event): Use inferior_thread.
4470 (context_switch, get_inferior_stop_soon): Take an
4471 execution_control_state pointer instead of a ptid_t. All callers
4472 adjusted.
4473 (switch_to_thread_cleanup): Delete.
4474 (stop_all_threads): Use scoped_restore_current_thread.
4475 * inline-frame.c: Include "gdbthread.h".
4476 (inline_state) <inline_state>: Take a thread pointer instead of a
4477 ptid_t. All callers adjusted.
4478 <ptid>: Delete, replaced by ...
4479 <thread>: ... this new field.
4480 (find_inline_frame_state): Take a thread pointer instead of a
4481 ptid_t. All callers adjusted.
4482 (skip_inline_frames, step_into_inline_frame)
4483 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4484 pointer instead of a ptid_t. All callers adjusted.
4485 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4486 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4487 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4488 pointers directly.
4489 * linux-nat.c (get_detach_signal): Likewise.
4490 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4491 (thread_db_notice_clone): Adjust.
4492 (thread_db_find_new_threads_silently)
4493 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4494 a thread pointer instead of a ptid_t. All callers adjusted.
4495 * mi/mi-cmd-var.c: Include "inferior.h".
4496 (mi_cmd_var_update_iter): Update to use thread pointers.
4497 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4498 inferior directly.
4499 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4500 out to ...
4501 (mi_output_running): ... this new function.
4502 (mi_on_resume_1): Adjust to use it.
4503 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4504 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4505 directly.
4506 (interrupt_thread_callback): : Adjust to use thread and inferior
4507 pointers.
4508 * proc-service.c: Include "gdbthread.h".
4509 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4510 * progspace-and-thread.c: Include "inferior.h".
4511 * progspace.c: Include "inferior.h".
4512 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4513 hold a reference to an inferior_object.
4514 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4515 inferior_thread.
4516 * python/py-inferior.c (struct inferior_object): Give the type a
4517 tag name instead of a typedef.
4518 (python_on_normal_stop): No need to check if the current thread is
4519 listed.
4520 (inferior_to_inferior_object): Change return type to
4521 inferior_object. All callers adjusted.
4522 (find_thread_object): Delete, bits factored out to ...
4523 (thread_to_thread_object): ... this new function.
4524 * python/py-infthread.c (create_thread_object): Use
4525 inferior_to_inferior_object.
4526 (thpy_is_stopped): Use thread pointer directly.
4527 (gdbpy_selected_thread): Use inferior_thread.
4528 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4529 field, replaced with ...
4530 <thread>: ... this new field. All users adjusted.
4531 (btpy_insn_or_gap_new): Drop const.
4532 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
4533 callers adjusted.
4534 * python/py-record.c: Include "gdbthread.h".
4535 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4536 a ptid_t. All callers adjusted.
4537 (gdbpy_current_recording): Use inferior_thread.
4538 * python/py-record.h (recpy_record_object) <ptid>: Delete
4539 field, replaced with ...
4540 <thread>: ... this new field. All users adjusted.
4541 (recpy_element_object) <ptid>: Delete
4542 field, replaced with ...
4543 <thread>: ... this new field. All users adjusted.
4544 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4545 a ptid_t. All callers adjusted.
4546 * python/py-threadevent.c: Include "gdbthread.h".
4547 (get_event_thread): Use thread_to_thread_object.
4548 * python/python-internal.h (struct inferior_object): Forward
4549 declare.
4550 (find_thread_object, find_inferior_object): Delete declarations.
4551 (thread_to_thread_object, inferior_to_inferior_object): New
4552 declarations.
4553 * record-btrace.c: Include "inferior.h".
4554 (require_btrace_thread): Use inferior_thread.
4555 (record_btrace_frame_sniffer)
4556 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
4557 (get_thread_current_frame): Use scoped_restore_current_thread and
4558 switch_to_thread.
4559 (get_thread_current_frame): Use thread pointer directly.
4560 (record_btrace_replay_at_breakpoint): Use thread's inferior
4561 pointer directly.
4562 * record-full.c: Include "inferior.h".
4563 * regcache.c: Include "gdbthread.h".
4564 (get_thread_arch_regcache): Use the inferior's address space
4565 directly.
4566 (get_thread_regcache, registers_changed_thread): New.
4567 * regcache.h (get_thread_regcache(thread_info *thread)): New
4568 overload.
4569 (registers_changed_thread): New.
4570 (remote_target) <remote_detach_1>: Swap order of parameters.
4571 (remote_add_thread): <remote_add_thread>: Return the new thread.
4572 (get_remote_thread_info(ptid_t)): New overload.
4573 (remote_target::remote_notice_new_inferior): Use thread pointers
4574 directly.
4575 (remote_target::process_initial_stop_replies): Use
4576 thread_info::set_running.
4577 (remote_target::remote_detach_1, remote_target::detach)
4578 (extended_remote_target::detach): Adjust.
4579 * stack.c (frame_show_address): Use inferior_thread.
4580 * target-debug.h (target_debug_print_thread_info_pp): New.
4581 * target-delegates.c: Regenerate.
4582 * target.c (default_thread_address_space): Delete.
4583 (memory_xfer_partial_1): Use current_inferior.
4584 (target_detach): Use current_inferior.
4585 (target_thread_address_space): Delete.
4586 (generic_mourn_inferior): Use current_inferior.
4587 * target.h (struct target_ops) <thread_address_space>: Delete.
4588 (target_thread_address_space): Delete.
4589 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
4590 pointers directly.
4591 (delete_thread_1, delete_thread, delete_thread_silent): Take a
4592 thread pointer instead of a ptid_t. Adjust all callers.
4593 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
4594 (first_thread_of_process): Delete, replaced by ...
4595 (first_thread_of_inferior): ... this new function. All callers
4596 adjusted.
4597 (any_thread_of_process): Rename to ...
4598 (any_thread_of_inferior): ... this, and take an inferior pointer.
4599 (any_live_thread_of_process): Rename to ...
4600 (any_live_thread_of_inferior): ... this, and take an inferior
4601 pointer.
4602 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4603 (value_in_thread_stack_temporaries)
4604 (get_last_thread_stack_temporary): Take a thread pointer instead
4605 of a ptid_t. Adjust all callers.
4606 (thread_info::set_running): New.
4607 (validate_registers_access): Use inferior_thread.
4608 (can_access_registers_ptid): Rename to ...
4609 (can_access_registers_thread): ... this, and take a thread
4610 pointer.
4611 (print_thread_info_1): Adjust to compare thread pointers instead
4612 of ptids.
4613 (switch_to_no_thread, switch_to_thread): Make extern.
4614 (scoped_restore_current_thread::~scoped_restore_current_thread):
4615 Use m_thread pointer directly.
4616 (scoped_restore_current_thread::scoped_restore_current_thread):
4617 Use inferior_thread.
4618 (thread_command): Use thread pointer directly.
4619 (thread_num_make_value_helper): Use inferior_thread.
4620 * top.c (execute_command): Use inferior_thread.
4621 * tui/tui-interp.c: Include "inferior.h".
4622 * varobj.c (varobj_create): Use inferior_thread.
4623 (value_of_root_1): Use find_thread_global_id instead of
4624 global_thread_id_to_ptid.
4625
33bab475
AH
46262018-06-21 Alan Hayward <alan.hayward@arm.com>
4627
4628 * regcache.c (readable_regcache::read_part): Avoid memcpy when
4629 possible.
4630 (regcache::write_part): Likewise.
4631 (readable_regcache::cooked_read_part): Update comment.
4632 (readable_regcache::cooked_write_part): Likewise.
4633 * regcache.h: (readable_regcache::read_part): Likewise.
4634 (regcache::write_part): Likewise.
4635
8363f9d5
RB
46362018-06-21 Richard Bunt <richard.bunt@arm.com>
4637 Dirk Schubert <dirk.schubert@arm.com>
4638
4639 * aarch64-linux-nat.c (post_attach): New.
4640 (aarch64_linux_nat_target::post_attach): Override post_attach to
4641 record the number of hardware debug registers.
4642
0d0b0ea2
TT
46432018-06-20 Tom Tromey <tom@tromey.com>
4644
4645 * python/py-param.c (add_setshow_generic): Make parameters const.
4646 (parmpy_init): Update.
4647
302abd6e
SM
46482018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4649
4650 * regcache.h (regcache_cooked_read_ftype): Rename to...
4651 (register_read_ftype): ...this, change type to function_view.
4652 (class reg_buffer) <save>: Remove src parameter.
4653 (readonly_detached_regcache) <readonly_detached_regcache>: Make
4654 parameter non-const in first overload. Remove src parameter in
4655 second overload.
4656 * regcache.c (do_cooked_read): Remove.
4657 (readonly_detached_regcache::readonly_detached_regcache): Make
4658 parameter non-const, adjust call to other constructor.
4659 (reg_buffer::save): Remove src parameter.
4660 * frame.c (do_frame_register_read): Remove.
4661 (frame_save_as_regcache): Use lambda function.
4662 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
4663 parameter to ppu2spu_data *.
4664 (ppu2spu_sniffer): Use lambda function.
4665
19f3f25f
SM
46662018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4667
4668 * record-full.c (record_full_target::insert_breakpoint): Remove
4669 "struct" keyword, add const.
4670
d0ac1c44
SM
46712018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4672
4673 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
4674 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
4675 * configure.ac: Remove AC_PREREQ, add missing quoting.
4676 * gnulib/configure.ac: Modernize usage of
4677 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
4678 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
4679 (AUTOMAKE_VERSION): Bump to 1.15.1.
4680 * configure: Re-generate.
4681 * config.in: Re-generate.
4682 * aclocal.m4: Re-generate.
4683 * gnulib/aclocal.m4: Re-generate.
4684 * gnulib/config.in: Re-generate.
4685 * gnulib/configure: Re-generate.
4686 * gnulib/import/Makefile.in: Re-generate.
4687
6ae50267
PA
46882018-06-19 Pedro Alves <palves@redhat.com>
4689
4690 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
4691 (lookup_minimal_symbol_by_pc_section): ... here with
4692 gdb_assert_not_reached added.
4693
61b04dd0
PA
46942018-06-19 Pedro Alves <palves@redhat.com>
4695
4696 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
4697 parameter with a block parameter. Compare location's block symbol
4698 with the frame's block instead of addresses.
4699 (skip_inline_frames): Pass the current block instead of the
4700 frame's address. Break out as soon as we determine the frame
4701 should not be skipped.
4702
f709fabb
TT
47032018-06-18 Tom Tromey <tom@tromey.com>
4704
4705 * solib-aix.c (solib_aix_get_section_offsets): Return
4706 unique_xmalloc_ptr.
4707 (solib_aix_solib_create_inferior_hook): Update.
4708
668eb2f0
TT
47092018-06-18 Tom Tromey <tom@tromey.com>
4710
4711 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
4712
309822ca
TT
47132018-06-18 Tom Tromey <tom@tromey.com>
4714
4715 * solib-frv.c (frv_relocate_main_executable): Use
4716 unique_xmalloc_ptr.
4717 * solib-dsbt.c (dsbt_relocate_main_executable): Use
4718 unique_xmalloc_ptr.
4719
06424eac
TT
47202018-06-18 Tom Tromey <tom@tromey.com>
4721
4722 * objfiles.h (inhibit_section_map_updates): Update.
4723 (resume_section_map_updates, resume_section_map_updates_cleanup):
4724 Remove.
4725 * solib-svr4.c (svr4_handle_solib_event): Update.
4726 * objfiles.c (inhibit_section_map_updates): Return
4727 scoped_restore_tmpl<int>.
4728 (resume_section_map_updates, resume_section_map_updates_cleanup):
4729 Remove.
4730
b4be9fad
TT
47312018-06-18 Tom Tromey <tom@tromey.com>
4732
4733 * valprint.h (read_string): Update.
4734 * valprint.c (read_string): Change type of "buffer".
4735 (val_print_string): Update.
4736 * python/py-value.c (valpy_string): Update.
4737 * language.h (struct language_defn) <la_get_string>: Change
4738 type of "buffer".
4739 (default_get_string, c_get_string): Update.
4740 * language.c (default_get_string): Change type of "buffer".
4741 * guile/scm-value.c (gdbscm_value_to_string): Update.
4742 * c-lang.c (c_get_string): Change type of "buffer".
4743
3f0dbd67
TT
47442018-06-18 Tom Tromey <tom@tromey.com>
4745
4746 * ser-mingw.c (struct pipe_state_destroyer): New.
4747 (pipe_state_up): New typedef.
4748 (cleanup_pipe_state): Remove.
4749 (pipe_windows_open): Use pipe_state_up. Don't release argv.
4750
69d340c6
TT
47512018-06-18 Tom Tromey <tom@tromey.com>
4752
4753 * rust-lang.h (rust_yyerror): Don't declare.
4754 * rust-lang.c (rust_language_defn): Update.
4755 * rust-exp.y (yyerror): Now static.
4756 * parse.c (parse_exp_in_context_1): Update.
4757 * p-lang.h (p_yyerror): Don't declare.
4758 * p-lang.c (p_language_defn): Update.
4759 * p-exp.y (yyerror): Now static.
4760 * opencl-lang.c (opencl_language_defn): Update.
4761 * objc-lang.c (objc_language_defn): Update.
4762 * m2-lang.h (m2_yyerror): Don't declare.
4763 * m2-lang.c (m2_language_defn): Update.
4764 * m2-exp.y (yyerror): Now static.
4765 * language.h (struct language_defn) <la_error>: Remove.
4766 * language.c (unk_lang_error): Remove.
4767 (unknown_language_defn, auto_language_defn): Remove.
4768 * go-lang.h (go_yyerror): Don't declare.
4769 * go-lang.c (go_language_defn): Update.
4770 * go-exp.y (yyerror): Now static.
4771 * f-lang.h (f_yyerror): Don't declare.
4772 * f-lang.c (f_language_defn): Update.
4773 * f-exp.y (yyerror): Now static.
4774 * d-lang.h (d_yyerror): Don't declare.
4775 * d-lang.c (d_language_defn): Update.
4776 * d-exp.y (yyerror): Now static.
4777 * c-lang.h (c_yyerror): Don't declare.
4778 * c-lang.c (c_language_defn, cplus_language_defn)
4779 (asm_language_defn, minimal_language_defn): Update.
4780 * c-exp.y (yyerror): Now static.
4781 * ada-lang.h (ada_yyerror): Don't declare.
4782 * ada-lang.c (ada_language_defn): Update.
4783 * ada-exp.y (yyerror): Now static.
4784
e9902bfc
AH
47852018-06-18 Alan Hayward <alan.hayward@arm.com>
4786
4787 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
4788 (store_sveregs_to_thread): Likewise.
4789 (aarch64_linux_fetch_inferior_registers): Check for SVE.
4790 (aarch64_linux_store_inferior_registers): Likewise.
4791 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
4792 function.
4793 (aarch64_sve_regs_copy_to_regcache): Likewise.
4794 (aarch64_sve_regs_copy_from_regcache): Likewise.
4795 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
4796 declaration.
4797 (aarch64_sve_regs_copy_to_regcache): Likewise.
4798 (aarch64_sve_regs_copy_from_regcache): Likewise.
4799 (sve_context): Structure from Linux headers.
4800 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
4801 (SVE_SIG_ZREG_SIZE): Likewise.
4802 (SVE_SIG_PREG_SIZE): Likewise.
4803 (SVE_SIG_FFR_SIZE): Likewise.
4804 (SVE_SIG_REGS_OFFSET): Likewise.
4805 (SVE_SIG_ZREGS_OFFSET): Likewise.
4806 (SVE_SIG_ZREG_OFFSET): Likewise.
4807 (SVE_SIG_ZREGS_SIZE): Likewise.
4808 (SVE_SIG_PREGS_OFFSET): Likewise.
4809 (SVE_SIG_PREG_OFFSET): Likewise.
4810 (SVE_SIG_PREGS_SIZE): Likewise.
4811 (SVE_SIG_FFR_OFFSET): Likewise.
4812 (SVE_SIG_REGS_SIZE): Likewise.
4813 (SVE_SIG_CONTEXT_SIZE): Likewise.
4814 (SVE_PT_REGS_MASK): Likewise.
4815 (SVE_PT_REGS_FPSIMD): Likewise.
4816 (SVE_PT_REGS_SVE): Likewise.
4817 (SVE_PT_VL_INHERIT): Likewise.
4818 (SVE_PT_VL_ONEXEC): Likewise.
4819 (SVE_PT_REGS_OFFSET): Likewise.
4820 (SVE_PT_FPSIMD_OFFSET): Likewise.
4821 (SVE_PT_FPSIMD_SIZE): Likewise.
4822 (SVE_PT_SVE_ZREG_SIZE): Likewise.
4823 (SVE_PT_SVE_PREG_SIZE): Likewise.
4824 (SVE_PT_SVE_FFR_SIZE): Likewise.
4825 (SVE_PT_SVE_FPSR_SIZE): Likewise.
4826 (SVE_PT_SVE_FPCR_SIZE): Likewise.
4827 (__SVE_SIG_TO_PT): Likewise.
4828 (SVE_PT_SVE_OFFSET): Likewise.
4829 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
4830 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
4831 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
4832 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
4833 (SVE_PT_SVE_PREG_OFFSET): Likewise.
4834 (SVE_PT_SVE_PREGS_SIZE): Likewise.
4835 (SVE_PT_SVE_FFR_OFFSET): Likewise.
4836 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
4837 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
4838 (SVE_PT_SVE_SIZE): Likewise.
4839 (SVE_PT_SIZE): Likewise.
4840 (HAS_SVE_STATE): New define.
4841
17a1cc89
AH
48422018-06-18 Alan Hayward <alan.hayward@arm.com>
4843
4844 * nat/aarch64-sve-linux-sigcontext.h: New file.
4845 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
4846 new files.
4847 (SVE_VQ_MIN): Likewise.
4848 (SVE_VQ_MAX): Likewise.
4849 (SVE_VL_MIN): Likewise.
4850 (SVE_VL_MAX): Likewise.
4851 (SVE_NUM_ZREGS): Likewise.
4852 (SVE_NUM_PREGS): Likewise.
4853 (sve_vl_valid): Likewise.
4854 (struct user_sve_header): Likewise.
4855
7010835a
AB
48562018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4857 Richard Bunt <Richard.Bunt@arm.com>
4858
4859 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
4860 was requested by GDB.
4861
479b3ef4
TV
48622018-06-15 Tom de Vries <tdevries@suse.de>
4863
4864 * MAINTAINERS (Write After Approval): Add Tom de Vries.
4865
8199b8f4
SM
48662018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
4867
4868 * gnulib/update-gnulib.sh: Print expected versions of
4869 autoconf/aclocal.
4870
55c748a1
SM
48712018-06-14 Simon Marchi <simon.marchi@ericsson.com>
4872
4873 * arch-utils.c (default_type_align): Use type_length_units.
4874 * gdbtypes.c (type_align): Use type_length_units.
4875
87a8eca7
PW
48762018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4877
4878 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
4879 of 'define' command.
4880
5d9a0608
TV
48812018-06-14 Tom de Vries <tdevries@suse.de>
4882
4883 PR cli/22573
4884 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
4885 get_no_prettyformat_print_options.
4886
ab89b5a5
SM
48872018-06-13 Simon Marchi <simon.marchi@ericsson.com>
4888
4889 * sparc-nat.h: Include target.h.
4890 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
4891 <fetch_registers>: Remove this argument in function call.
4892 <store_registers>: Remove this argument in function call, remove
4893 extra semicolon.
4894 <low_forget_process>: Call sparc64_forget_process instead of
4895 sparc_forget_process.
4896
62c808ae
RO
48972018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4898
4899 * procfs.c (_initialize_procfs): Use add_inf_child_target.
4900 (procfs_target::make_corefile_notes): Adjust to new
4901 target_read_alloc return type.
4902
1840d81a
AB
49032018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4904 Stephen Roberts <stephen.roberts@arm.com>
4905
4906 PR gdb/22882
4907 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
4908 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
4909 Move should_notify_stop local into more inner scope.
4910
9516f85a
AB
49112018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4912 Stephen Roberts <stephen.roberts@arm.com>
4913
4914 PR gdb/22882
4915 * infrun.c (resume_1): Add call to mark_async_event_handler.
4916
defd2172
AB
49172018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4918
4919 * infrun.c (do_target_wait): Change old version of $pc printed.
4920
7b23e087
SM
49212018-06-11 Simon Marchi <simon.marchi@ericsson.com>
4922
4923 * dwarf2read.c (read_index_from_section): Rename to...
4924 (read_gdb_index_from_section): ... this, update all callers.
4925 (dwarf2_read_index): Rename to...
4926 (dwarf2_read_gdb_index): ... this, update all callers.
4927
69c67a0b
JDA
49282018-06-11 John David Anglin <danglin@gcc.gnu.org>
4929
4930 * gdb/hppa-linux-nat.c
4931 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
4932 hppa_linux_nat_target::fetch_registers.
4933
65d4cada
AH
49342018-06-11 Alan Hayward <alan.hayward@arm.com>
4935
4936 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
4937 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
4938 (AARCH64_DWARF_SVE_FFR): Likewise.
4939 (AARCH64_DWARF_SVE_P0): Likewise.
4940 (AARCH64_DWARF_SVE_Z0): Likewise.
4941
f868386e
AH
49422018-06-11 Alan Hayward <alan.hayward@arm.com>
4943
4944 * common/common-regcache.h (raw_compare): New function.
4945 * regcache.c (regcache::raw_compare): Likewise.
4946 * regcache.h (regcache::raw_compare): New declaration.
4947
9c861883
AH
49482018-06-11 Alan Hayward <alan.hayward@arm.com>
4949
4950 * common/common-regcache.h (reg_buffer_common): New structure.
4951 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
4952 (reg_buffer::raw_supply): Likewise.
4953 (reg_buffer::raw_supply_integer): Likewise.
4954 (reg_buffer::raw_supply_zeroed): Likewise.
4955 (reg_buffer::raw_collect): Likewise.
4956 (reg_buffer::raw_collect_integer): Likewise.
4957 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
4958 (reg_buffer::raw_supply): Likewise.
4959 (reg_buffer::raw_supply_integer): Likewise.
4960 (reg_buffer::raw_supply_zeroed): Likewise.
4961 (reg_buffer::raw_collect): Likewise.
4962 (reg_buffer::raw_collect_integer): Likewise.
4963
953edf2b
TT
49642018-06-10 Tom Tromey <tom@tromey.com>
4965
4966 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
4967 (class remote_state) <stop_reply_queue>: Now std::vector.
4968 (remote_state::~remote_state)
4969 (remote_target::stop_reply_queue_length): Update.
4970 (struct queue_iter_param, remove_child_of_pending_fork)
4971 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
4972 (check_pending_event_prevents_wildcard_vcont_callback)
4973 (remove_stop_reply_for_inferior)
4974 (remove_stop_reply_of_remote_state)
4975 (remote_notif_remove_once_on_match)
4976 (stop_reply_match_ptid_and_ws)
4977 (remote_kill_child_of_pending_fork): Remove.
4978 (remote_target::remove_new_fork_children)
4979 (remote_target::check_pending_events_prevent_wildcard_vcont)
4980 (remote_target::discard_pending_stop_replies)
4981 (remote_target::discard_pending_stop_replies_in_queue)
4982 (remote_target::remote_notif_remove_queued_reply)
4983 (remote_target::queued_stop_reply)
4984 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
4985 (remote_target::wait, remote_target::kill_new_fork_children)
4986 (remote_target::async): Update.
4987
1ddbba9d
TT
49882018-06-10 Tom Tromey <tom@tromey.com>
4989
4990 * record-full.c (record_full_arch_list_cleanups): Remove.
4991 (record_full_message): Use try/catch.
4992 (record_full_wait_cleanups): Remove.
4993 (record_full_wait_1): Use try/catch.
4994 (record_full_restore): Likewise.
4995
219605fd
TT
49962018-06-10 Tom Tromey <tom@tromey.com>
4997
4998 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
4999 declare VEC. Add constructor.
5000 <in_target_beneath>: Now bool.
5001 (record_full_breakpoints): Now a std::vector, static.
5002 (record_full_sync_record_breakpoints)
5003 (record_full_init_record_breakpoints)
5004 (record_full_target::insert_breakpoint)
5005 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5006
71b73764
SM
50072018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5008
5009 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5010 * serial.c (serial_interface_lookup): Remove struct keyword.
5011
4360561f
TT
50122018-06-10 Tom Tromey <tom@tromey.com>
5013
5014 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5015 method.
5016 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5017 a method.
5018 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5019 method.
5020 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5021 "beneath" as a method.
5022 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5023 Use "beneath" as a method.
5024
d14b92bf
TT
50252018-06-10 Tom Tromey <tom@tromey.com>
5026
5027 * tracefile.c (struct trace_file_writer_deleter): New.
5028 <operator()>: Rename from trace_file_writer_xfree.
5029 (trace_file_writer_up): New typedef.
5030 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5031
835dcf92
SM
50322018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5033
5034 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5035 <m_registers, m_register_status>: Change type to
5036 std::unique_ptr.
5037 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5038 XCNEWVEC.
5039
aac0d564
SM
50402018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5041
5042 * common/common-regcache.h (enum register_status): Add
5043 underlying type "signed char".
5044 * regcache.h (reg_buffer) <m_register_status>: Change type to
5045 register_status *.
5046 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5047 register_status instead of signed char.
5048 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5049 (reg_buffer::get_register_status): Remove cast.
5050 (readable_regcache::raw_read): Remove cast.
5051 (readable_regcache::cooked_read): Remove cast.
5052
77ad7394
TT
50532018-06-09 Tom Tromey <tom@tromey.com>
5054
5055 * source.c (reverse_search_command, forward_search_command): Use
5056 scoped_fd.
5057
191cca63
TT
50582018-06-09 Tom Tromey <tom@tromey.com>
5059
5060 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5061 (serial_ops_list): Now static, std::vector.
5062 (serial_interface_lookup, serial_add_interface): Update.
5063
c5d0225d
TT
50642018-06-09 Tom Tromey <tom@tromey.com>
5065
5066 * dwarf2read.c (process_cu_includes): Update.
5067 (process_full_comp_unit): Update.
5068 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5069 std::vector.
5070
aeab5128
PK
50712018-06-08 Paul Koning <paul_koning@dell.com>
5072
5073 PR gdb/23252
5074
5075 * python/python.c (do_start_initialization):
5076 Avoid call to internal Python API.
5077 (init__gdb_module): New function.
5078
5045b3d7
GB
50792018-06-08 Gary Benson <gbenson@redhat.com>
5080
5081 * linux-thread-db.c (valprint.h): New include.
5082 (struct check_thread_db_info): New structure.
5083 (check_thread_db_on_load, tdb_testinfo): New static globals.
5084 (check_thread_db, check_thread_db_callback): New functions.
5085 (try_thread_db_load_1): Run integrity checks if requested.
5086 (maintenance_check_libthread_db): New function.
5087 (_initialize_thread_db): Register "maint check libthread-db"
5088 and "maint set/show check-libthread-db".
5089 * NEWS: Mention the above new commands.
5090
2f4f025f
TT
50912018-06-08 Tom Tromey <tom@tromey.com>
5092
5093 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5094 now a method.
5095
343b0027
TT
50962018-06-08 Tom Tromey <tom@tromey.com>
5097
5098 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5099
8dcc53b3
TT
51002018-06-08 Tom Tromey <tom@tromey.com>
5101
5102 * common/btrace-common.h (struct btrace_data): Add constructor,
5103 destructor, move assignment operator.
5104 <empty, clear, fini>: New methods.
5105 <format>: Initialize.
5106 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5107 (btrace_data_empty): Don't declare.
5108 * common/btrace-common.c (btrace_data_init): Remove.
5109 (btrace_data::fini): Rename from btrace_data_fini.
5110 (btrace_data::empty): Rename from btrace_data_empty.
5111 (btrace_data::clear): Rename from btrace_data_clear. Return
5112 bool.
5113 * btrace.h (make_cleanup_btrace_data): Don't declare.
5114 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5115 (parse_xml_btrace): Update.
5116 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5117 (maint_btrace_clear_packet_history_cmd): Update.
5118
a1740ee1
PA
51192018-06-07 Pedro Alves <palves@redhat.com>
5120
5121 * target.h (target_ops) <beneath>: Now a method. All references
5122 updated.
5123 (class target_stack): New.
5124 * target.c (g_target_stack): New.
5125 (g_current_top_target): Delete.
5126 (current_top_target): Get the top target out of g_target_stack.
5127 (target_stack::push, target_stack::unpush): New.
5128 (push_target, unpush_target): Reimplement.
5129 (target_is_pushed): Reimplement in terms of g_target_stack.
5130 (target_ops::beneath, target_stack::find_beneath): New.
5131
d6ca69cd
PA
51322018-06-07 Pedro Alves <palves@redhat.com>
5133
5134 * target.h (find_target_beneath): Delete declaration.
5135 * target.c (find_target_beneath): Delete definition.
5136 * aix-thread.c: All callers of find_target_beneath adjusted to
5137 call target_ops::beneath instead.
5138 * bsd-uthread.c: Likewise.
5139 * linux-thread-db.c: Likewise.
5140 * ravenscar-thread.c: Likewise.
5141 * sol-thread.c: Likewise.
5142 * spu-multiarch.c: Likewise.
5143
b6a8c27b
PA
51442018-06-07 Pedro Alves <palves@redhat.com>
5145
5146 * target.h (target_ops) <beneath>: Now a method. All references
5147 updated.
5148 (target_ops) <m_beneath>: New.
5149 * target.c (target_ops::beneath): New.
5150 * corelow.c: Adjust all references to target_ops::beneath.
5151 * linux-thread-db.c: Likewise.
5152 * make-target-delegates: Likewise.
5153 * record-btrace.c: Likewise.
5154 * record-full.c: Likewise.
5155 * remote.c: Likewise.
5156 * target.c: Likewise.
5157 * target-delegates.c: Regenerate.
5158
8b88a78e
PA
51592018-06-07 Pedro Alves <palves@redhat.com>
5160
5161 * target.h (target_stack): Delete.
5162 (current_top_target): Declare function.
5163 * target.c (target_stack): Delete.
5164 (g_current_top_target): New.
5165 (current_top_target): New function.
5166 * auxv.c: Use current_top_target instead of target_stack
5167 throughout.
5168 * avr-tdep.c: Likewise.
5169 * breakpoint.c: Likewise.
5170 * corefile.c: Likewise.
5171 * elfread.c: Likewise.
5172 * eval.c: Likewise.
5173 * exceptions.c: Likewise.
5174 * frame.c: Likewise.
5175 * gdbarch-selftests.c: Likewise.
5176 * gnu-v3-abi.c: Likewise.
5177 * ia64-tdep.c: Likewise.
5178 * ia64-vms-tdep.c: Likewise.
5179 * infcall.c: Likewise.
5180 * infcmd.c: Likewise.
5181 * infrun.c: Likewise.
5182 * linespec.c: Likewise.
5183 * linux-tdep.c: Likewise.
5184 * minsyms.c: Likewise.
5185 * ppc-linux-nat.c: Likewise.
5186 * ppc-linux-tdep.c: Likewise.
5187 * procfs.c: Likewise.
5188 * regcache.c: Likewise.
5189 * remote.c: Likewise.
5190 * rs6000-tdep.c: Likewise.
5191 * s390-linux-nat.c: Likewise.
5192 * s390-tdep.c: Likewise.
5193 * solib-aix.c: Likewise.
5194 * solib-darwin.c: Likewise.
5195 * solib-dsbt.c: Likewise.
5196 * solib-spu.c: Likewise.
5197 * solib-svr4.c: Likewise.
5198 * solib-target.c: Likewise.
5199 * sparc-tdep.c: Likewise.
5200 * sparc64-tdep.c: Likewise.
5201 * spu-tdep.c: Likewise.
5202 * symfile.c: Likewise.
5203 * symtab.c: Likewise.
5204 * target-descriptions.c: Likewise.
5205 * target-memory.c: Likewise.
5206 * target.c: Likewise.
5207 * target.h: Likewise.
5208 * tracefile-tfile.c: Likewise.
5209 * tracepoint.c: Likewise.
5210 * valops.c: Likewise.
5211 * valprint.c: Likewise.
5212 * value.c: Likewise.
5213 * windows-tdep.c: Likewise.
5214 * mi/mi-main.c: Likewise.
5215
c7110220
TT
52162018-06-07 Tom Tromey <tom@tromey.com>
5217
5218 * valprint.h (build_address_symbolic): Declare.
5219 * printcmd.c (print_address_symbolic): Update.
5220 (build_address_symbolic): Change "name" and "filename" to
5221 std::string.
5222 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5223 Update.
5224 * defs.h (build_address_symbolic): Remove declaration.
5225
63bad7b6
AH
52262018-06-07 Alan Hayward <alan.hayward@arm.com>
5227
5228 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5229 (aarch64_vnv_type): Add function.
5230 (aarch64_pseudo_register_name): Add V regs for SVE.
5231 (aarch64_pseudo_register_type): Likewise.
5232 (aarch64_pseudo_register_reggroup_p): Likewise.
5233 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5234 (aarch64_pseudo_read_value): Add V regs for SVE.
5235 (aarch64_pseudo_write_2): Use V0 offset for SVE
5236 (aarch64_pseudo_write): Add V regs for SVE.
5237 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5238
13e3c608
SDJ
52392018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5240
5241 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5242 (sve_vl_from_vq): Likewise.
5243
c61b06a1
TT
52442018-06-05 Tom Tromey <tom@tromey.com>
5245
5246 * cli/cli-cmds.c (show_version): Update.
5247 * top.c (print_gdb_version): Add "interactive" parameter.
5248 Update.
5249 * main.c (captured_main_1): Update.
5250 * top.h (print_gdb_version): Add "interactive" parameter and a
5251 comment.
5252
115f7325
DM
52532018-06-05 David Malcolm <dmalcolm@redhat.com>
5254
5255 * common/enum-flags.h: Add trailing semicolon to example in
5256 comment.
5257
eb6af809
TT
52582018-06-05 Tom Tromey <tom@tromey.com>
5259
5260 PR cli/12326:
5261 * NEWS: Add entry about pager.
5262 * utils.c (pagination_disabled_for_command): New global.
5263 (prompt_for_continue): Allow "c" response to prompt.
5264 (reinitialize_more_filter): Clear
5265 pagination_disabled_for_command.
5266 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5267
54d343a2
TT
52682018-06-04 Tom Tromey <tom@tromey.com>
5269
5270 * ada-lang.h (ada_lookup_symbol_list): Update.
5271 * ada-lang.c (resolve_subexp): Update.
5272 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5273 parameter.
5274 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5275 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5276 results parameter to std::vector.
5277 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5278 Update.
5279 * ada-exp.y (block_lookup): Update.
5280 (select_possible_type_sym): Change type of syms. Remove nsyms
5281 parameter.
5282 (write_var_or_type, write_name_assoc): Update.
5283
178d6a63
JB
52842018-06-04 Joel Brobecker <brobecker@adacore.com>
5285
5286 * windows-nat.c (windows_nat_target::xfer_partial): Return
5287 TARGET_XFER_E_IO if we need to delegate to the target beneath
5288 but BENEATH is NULL.
5289
baf00c2d
SM
52902018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5291
5292 * Makefile.in (config.status): Add configure.nat as a
5293 dependency.
5294
214b073c
TT
52952018-06-04 Tom Tromey <tom@tromey.com>
5296
5297 * cp-name-parser.y (cpname_state): Add method declarations.
5298 (HANDLE_QUAL): Update.
5299 (cpname_state::d_grab, cpname_state::fill_comp)
5300 (cpname_state::make_operator, cpname_state::make_dtor)
5301 (cpname_state::make_builtin_type, cpname_state::make_name)
5302 (cpname_state::d_qualify, cpname_state::d_int_type)
5303 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5304 (%union): Move earlier.
5305
62b74cb8
AH
53062018-06-04 Alan Hayward <alan.hayward@arm.com>
5307
5308 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5309
3c5cd5c3
AH
53102018-06-04 Alan Hayward <alan.hayward@arm.com>
5311
5312 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5313 (aarch64_pseudo_write_1): Likewise.
5314 (aarch64_pseudo_read_value): Use helper.
5315 (aarch64_pseudo_write): Likewise.
5316
59f413d5
PA
53172018-06-04 Pedro Alves <palves@redhat.com>
5318
5319 * darwin-nat.c (darwin_ops): Delete.
5320 (darwin_attach_pid): Use get_native_target.
5321
1332a140
AH
53222018-06-04 Alan Hayward <alan.hayward@arm.com>
5323
5324 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5325 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5326
ba2d2bb2
AH
53272018-06-04 Alan Hayward <alan.hayward@arm.com>
5328
5329 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5330 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5331 (aarch64_gdbarch_init): Check for SVE.
5332 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5333
53342018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
5335
5336 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5337 * aarch64-tdep.h (aarch64_read_description): Likewise.
5338 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5339 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5340 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5341 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5342 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5343
41c60b4b
SM
53442018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5345
5346 * value.c (value_fetch_lazy_bitfield): New.
5347 (value_fetch_lazy_memory): New.
5348 (value_fetch_lazy_register): New.
5349 (value_fetch_lazy): Factor out to smaller functions.
5350
7b640f72
TT
53512018-06-01 Tom Tromey <tom@tromey.com>
5352
5353 * cp-name-parser.y (backslashable, represented): Now const.
5354
98e69eb3
TT
53552018-06-01 Tom Tromey <tom@tromey.com>
5356
5357 * cp-name-parser.y: Include parser-defs.h.
5358 (parser_fprintf): Remove declaration.
5359
49265499
TT
53602018-06-01 Tom Tromey <tom@tromey.com>
5361
5362 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5363 %parse-param.
5364 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5365 (global_result): Remove globals.
5366 (struct cpname_state): New.
5367 (yyparse): Don't declare.
5368 (yylex, yyerror): Move declarations after %union.
5369 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5370 (make_name): Add state parameter.
5371 Update all callers.
5372 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5373 parameter.
5374 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5375 Update.
5376 (yylex): Add lvalp, state parameters.
5377 (yyerror): Add state parameter.
5378 (cp_demangled_name_to_comp): Update.
5379
55b6c984
TT
53802018-06-01 Tom Tromey <tom@tromey.com>
5381
5382 * cp-name-parser.y (parser_fprintf): Declare.
5383 (GDB_YY_REMAP_PREFIX): Define.
5384 Include yy-remap.h. Don't redefine yy* identifiers.
5385
3513a6bb
TT
53862018-06-01 Tom Tromey <tom@tromey.com>
5387
5388 * python/py-type.c (typy_legacy_template_argument): Update.
5389 * cp-support.h (cp_demangled_name_to_comp): Update.
5390 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5391 parameter to be a "std::string *".
5392 (main): Update.
5393
e9cb46ab
L
53942018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5395
5396 * ada-lex.l: Include "diagnostics.h" instead of
5397 "common/diagnostics.h".
5398 * unittests/environ-selftests.c: Likewise.
5399 * common/diagnostics.h: Moved to ../include.
5400
8e817061
JB
54012018-06-01 Joel Brobecker <brobecker@adacore.com>
5402
5403 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5404 to language_mode_manual while calling breakpoint_re_set_one.
5405
a737d952
TT
54062018-06-01 Tom Tromey <tom@tromey.com>
5407
5408 * valops.c (value_cast_structs, destructor_name_p): Update.
5409 * symtab.c (gdb_mangle_name): Update.
5410 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5411 Update.
5412 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5413 (pascal_object_print_value_fields, pascal_object_print_value):
5414 Update.
5415 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5416 * linespec.c (find_methods): Update.
5417 * gdbtypes.h (type_name_no_tag): Remove.
5418 (type_name_or_error): Rename from type_name_no_tag_or_error.
5419 * gdbtypes.c (type_name_no_tag): Remove.
5420 (type_name_or_error): Rename from type_name_no_tag_or_error.
5421 (lookup_struct_elt_type, check_typedef): Update.
5422 * expprint.c (print_subexp_standard): Update.
5423 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5424 * d-namespace.c (d_lookup_nested_symbol): Update.
5425 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5426 (cp_print_class_member): Update.
5427 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5428 * completer.c (add_struct_fields): Update.
5429 * c-typeprint.c (cp_type_print_derivation_info)
5430 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5431 Update.
5432 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5433 (ada_prefer_type, ada_is_exception_sym): Update.
5434
e86ca25f
TT
54352018-06-01 Tom Tromey <tom@tromey.com>
5436
5437 * valops.c (enum_constant_from_type, value_namespace_elt)
5438 (value_maybe_namespace_elt): Update.
5439 * valarith.c (find_size_for_pointer_math): Update.
5440 * target-descriptions.c (make_gdb_type): Update.
5441 * symmisc.c (print_symbol): Update.
5442 * stabsread.c (define_symbol, read_type)
5443 (complain_about_struct_wipeout, add_undefined_type)
5444 (cleanup_undefined_types_1): Update.
5445 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5446 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5447 (rust_internal_print_type, rust_composite_type)
5448 (rust_evaluate_funcall, rust_evaluate_subexp)
5449 (rust_inclusive_range_type_p): Update.
5450 * python/py-type.c (typy_get_tag): Update.
5451 * p-typeprint.c (pascal_type_print_base): Update.
5452 * mdebugread.c (parse_symbol, parse_type): Update.
5453 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5454 Update.
5455 * guile/scm-type.c (gdbscm_type_tag): Update.
5456 * go-lang.c (sixg_string_p): Update.
5457 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5458 Update.
5459 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5460 (TYPE_TAG_NAME): Remove.
5461 * gdbtypes.c (type_name_no_tag): Simplify.
5462 (check_typedef, check_types_equal, recursive_dump_type)
5463 (copy_type_recursive, arch_composite_type): Update.
5464 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5465 in summary mode when needed.
5466 * eval.c (evaluate_funcall): Update.
5467 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5468 (process_structure_scope, read_enumeration_type)
5469 (read_namespace_type, read_module_type, determine_prefix): Update.
5470 * cp-support.c (inspect_type): Update.
5471 * coffread.c (process_coff_symbol, decode_base_type): Update.
5472 * c-varobj.c (c_is_path_expr_parent): Update.
5473 * c-typeprint.c (c_type_print_base_struct_union): Update.
5474 (c_type_print_base_1): Update. Print struct/class/union/enum in
5475 summary when using C language.
5476 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5477 (gen_maybe_namespace_elt): Update.
5478 * ada-lang.c (ada_type_name): Simplify.
5479 (empty_record, ada_template_to_fixed_record_type_1)
5480 (template_to_static_fixed_type)
5481 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5482
c1ec8cea
TT
54832018-06-01 Tom Tromey <tom@tromey.com>
5484
5485 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5486 c_print_type.
5487 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5488 (c_print_type): Update.
5489 (c_print_type): New overload.
5490 (c_type_print_varspec_prefix, c_type_print_args)
5491 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5492 (c_type_print_base_struct_union, c_type_print_base_1)
5493 (cp_type_print_method_args): Add "language" parameter.
5494 (c_type_print_base): Update.
5495 * c-lang.h (c_print_type): Add new overload.
5496
bc8453a7
TT
54972018-06-01 Tom Tromey <tom@tromey.com>
5498
5499 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5500 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5501
739e8682
AH
55022018-06-01 Alan Hayward <alan.hayward@arm.com>
5503
5504 * aarch64-tdep.c (aarch64_sve_register_names): New const
5505 var.
5506 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5507 (AARCH64_SVE_Z_REGS_NUM): New define.
5508 (AARCH64_SVE_P_REGS_NUM): Likewise.
5509 (AARCH64_SVE_NUM_REGS): Likewise.
5510
8a60efe7
UB
55112018-05-31 Uros Bizjak <ubizjak@gmail.com>
5512
5513 * nat/linux-ptrace.h [__alpha__]
5514 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5515 definitions.
5516
4b2dfa9d
MR
55172018-05-31 Maciej W. Rozycki <macro@mips.com>
5518
5519 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5520 the endianness selected.
5521 * NEWS: Document `set endian auto' mode operation update.
5522
122394f1
AH
55232018-05-31 Alan Hayward <alan.hayward@arm.com>
5524
5525 * Makefile.in: Add new header.
5526 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5527 (sve_vl_from_vg): Likewise.
5528 (sve_vq_from_vl): Likewise.
5529 (sve_vl_from_vq): Likewise.
5530 (sve_vq_from_vg): Likewise.
5531 (sve_vg_from_vq): Likewise.
5532 * configure.nat: Add new c file.
5533 * nat/aarch64-sve-linux-ptrace.c: New file.
5534 * nat/aarch64-sve-linux-ptrace.h: New file.
5535
95228a0d
AH
55362018-05-31 Alan Hayward <alan.hayward@arm.com>
5537
5538 * aarch64-linux-nat.c (aarch64_linux_read_description):
5539 Add parmeter zero.
5540 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5541 Likewise.
5542 * aarch64-tdep.c (tdesc_aarch64_list): Add.
5543 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
5544 (aarch64_gdbarch_init): Add parmeter zero.
5545 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
5546 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
5547 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
5548 parmeter.
5549 * doc/gdb.texinfo: Describe SVE feature
5550 * features/aarch64-sve.c: New file.
5551
5969f0db
OJ
55522018-05-31 Omair Javaid <omair.javaid@linaro.org>
5553
5554 PR gdb/23210
5555 * gdbarch.sh (significant_addr_bit): Default to zero when
5556 not set by target architecture.
5557 * gdbarch.c: Re-generated.
5558 * utils.c (address_significant): Update.
5559
61367c61
JB
55602018-05-30 Joel Brobecker <brobecker@adacore.com>
5561
5562 * stack.c (func_command): Remove trailing newline in call to error.
5563
34a79281
SM
55642018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5565
5566 * regcache.h (regcache_raw_collect): Remove, update callers to
5567 use regcache::raw_collect.
5568 * regcache.c (regcache_raw_collect): Remove.
5569
73e1c03f
SM
55702018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5571
5572 * regcache.h (regcache_raw_supply): Remove, update callers to
5573 use detached_regcache::raw_supply.
5574 * regcache.c (regcache_raw_supply): Remove.
5575
e4c4a59b
SM
55762018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5577
5578 * regcache.h (regcache_cooked_write_part): Remove, update
5579 callers to use regcache::cooked_write_part.
5580 * regcache.c (regcache_cooked_write_part): Remove.
5581
73bb0000
SM
55822018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5583
5584 * regcache.h (regcache_cooked_read_part): Remove, update callers
5585 to use readable_regcache::cooked_read_part.
5586 * regcache.c (regcache_cooked_read_part): Remove.
5587
46a45e9d
SM
55882018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5589
5590 * regcache.h (regcache_cooked_read_value): Remove, update
5591 callers to use readable_regcache::cooked_read_value.
5592 * regcache.c (regcache_cooked_read_value): Remove.
5593
b66f5587
SM
55942018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5595
5596 * regcache.h (regcache_cooked_write): Remove, update callers to
5597 use regcache::cooked_write.
5598 * regcache.c (regcache_cooked_write): Remove.
5599
6aa7d724
SM
56002018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5601
5602 * regcache.h (regcache_invalidate): Remove, update callers to
5603 use detached_regcache::invalidate instead.
5604 * regcache.c (regcache_invalidate): Remove.
5605
4f0420fd
SM
56062018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5607
5608 * regcache.h (regcache_raw_write_part): Remove, update callers
5609 to use regcache::raw_write_part instead.
5610 * regcache.c (regcache_raw_write_part): Remove.
5611
502fe83e
SM
56122018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5613
5614 * regcache.h (regcache_raw_read_part): Remove, update callers to
5615 use readable_regcache::raw_read_part instead.
5616 * regcache.c (regcache_raw_read_part): Remove.
5617
dca08e1f
SM
56182018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5619
5620 * regcache.h (regcache_cooked_read): Remove, update callers to
5621 use readable_regcache::cooked_read instead.
5622 * regcache.c (regcache_cooked_read): Remove.
5623
10eaee5f
SM
56242018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5625
5626 * regcache.h (regcache_raw_write): Remove, update callers to use
5627 regcache::raw_write instead.
5628 * regcache.c (regcache_raw_write): Remove.
5629
0b883586
SM
56302018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5631
5632 * regcache.h (regcache_raw_read): Remove, update callers to use
5633 readable_regcache::raw_read instead.
5634 * regcache.c (regcache_raw_read): Remove.
5635
0b47d985
SM
56362018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5637
5638 * regcache.h (regcache_raw_update): Remove, update callers to
5639 use readable_regcache::raw_update instead.
5640 * regcache.c (regcache_raw_update): Remove.
5641
0ec9f114
SM
56422018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5643
5644 * regcache.h (regcache_register_status): Remove, update callers
5645 to use reg_buffer::get_register_status directly instead.
5646 * regcache.c (regcache_register_status): Remove.
5647
222312d3
SM
56482018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5649
5650 * regcache.h (regcache_get_ptid): Remove, update all callers to
5651 call regcache::ptid instead.
5652 * regcache.c (regcache_get_ptid): Remove.
5653
fdbe37e3
SM
56542018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5655
5656 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
5657
f7c6f423
PA
56582018-05-30 Pedro Alves <palves@redhat.com>
5659
5660 * common/common-exceptions.h (exception_rethrow): Use
5661 ATTRIBUTE_NORETURN.
5662
52941706
SM
56632018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
5664
5665 * breakpoint.c (print_solib_event, check_status_catch_solib):
5666 Remove struct keyword in range-based for loops.
5667 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
5668 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
5669 Likewise.
5670 * linespec.c (find_superclass_methods, search_minsyms_for_name):
5671 Likewise.
5672 * symfile.c (addr_info_make_relative): Likewise.
5673 * thread.c (value_in_thread_stack_temporaries): Likewise.
5674
bf2977b5
WP
56752018-06-12 Weimin Pan <weimin.pan@oracle.com>
5676
5677 PR gdb/16841
5678 * valops.c (value_struct_elt_for_reference): Call check_typedef on
5679 aggregate type to get its real type before accessing it.
5680
64cc34d8
WP
56812018-05-29 Weimin Pan <weimin.pan@oracle.com>
5682
5683 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
5684 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
5685 * coff-pe-read.c (add_pe_forwarded_sym): Replace
5686 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
5687 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
5688 * jit.c (jit_breakpoint_re_set_internal): Likewise.
5689 * printcmd.c (info_address_command): Likewise.
5690
e7ec8713
TT
56912018-05-29 Tom Tromey <tom@tromey.com>
5692
5693 * windows-nat.c (handle_exception): Update fall-through comment.
5694
bcb430e4
TT
56952018-05-29 Tom Tromey <tom@tromey.com>
5696
5697 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
5698 (struct program_space) <added_solibs>: Now a std::vector.
5699 * breakpoint.c (print_solib_event): Update.
5700 (check_status_catch_solib): Update.
5701 * progspace.c (clear_program_space_solib_cache): Update.
5702 * solib.c (update_solib_list): Update.
5703
894882e3
TT
57042018-05-29 Tom Tromey <tom@tromey.com>
5705
5706 * python/py-type.c (typy_richcompare): Update.
5707 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
5708 * gdbtypes.h (types_deeply_equal): Return bool.
5709 (types_equal): Likewise.
5710 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
5711 declare VEC.
5712 (check_types_equal): Change worklist to std::vector. Return
5713 bool.
5714 (struct type_equality_entry): Add constructor.
5715 (compare_maybe_null_strings): Return bool.
5716 (check_types_worklist): Return bool. Change worklist to
5717 std::vector.
5718 (types_deeply_equal): Use std::vector.
5719 (types_equal): Return bool.
5720 (compare_maybe_null_strings): Simplify.
5721
10b2ded4
TT
57222018-05-29 Tom Tromey <tom@tromey.com>
5723
5724 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
5725
4f7deebe
TT
57262018-05-29 Tom Tromey <tom@tromey.com>
5727
5728 * objc-lang.h: Don't include cp-support.h.
5729 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
5730 declare VEC.
5731
b8283aea
TT
57322018-05-27 Tom Tromey <tom@tromey.com>
5733
5734 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
5735
41a883c8
TT
57362018-05-25 Tom Tromey <tom@tromey.com>
5737
5738 * value.c (value::location): Initialize.
5739
bf259e25
TT
57402018-05-25 Tom Tromey <tom@tromey.com>
5741
5742 * dbxread.c (init_bincl_list): Remove.
5743 (bincl_list): Now a std::vector.
5744 (bincls_allocated, next_bincl): Remove.
5745 (free_bincl_list, do_free_bincl_list_cleanup)
5746 (make_cleanup_free_bincl_list): Remove.
5747 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
5748 unique_xmalloc_ptr.
5749 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
5750 (struct header_file_location): Add constructor.
5751 (add_bincl_to_list): Remove.
5752
d525a99b
TT
57532018-05-25 Tom Tromey <tom@tromey.com>
5754
5755 * tui/tui.c (tui_enable): Update.
5756 * mi/mi-interp.c (mi_interp::init): Update.
5757 * interps.h (class interp) <name>: New method.
5758 <m_name>: Rename from name.
5759 (~scoped_restore_interp): Update.
5760 * interps.c (interp::interp): Update.
5761 (interp_add, interp_set, interp_lookup_existing)
5762 (current_interp_named_p): Update.
5763
da505cff
TT
57642018-05-25 Tom Tromey <tom@tromey.com>
5765
5766 * interps.c (interp_name): Remove.
5767 * mi/mi-interp.c (mi_interp::init): Update.
5768 * interps.h (interp_name): Remove.
5769 (~scoped_restore_interp): Update.
5770 * tui/tui.c (tui_enable): Update.
5771
29f94340
TT
57722018-05-25 Tom Tromey <tom@tromey.com>
5773
5774 * utils.c (fputs_maybe_filtered): Update.
5775 * linespec.c (decode_line_full): Update.
5776 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
5777 (mi_print_breakpoint_for_event, mi_solib_loaded)
5778 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
5779 (mi_user_selected_context_changed): Update.
5780 * mi/mi-main.c (mi_execute_command): Update.
5781 * cli/cli-script.c (execute_control_command): Update.
5782 * python/python.c (execute_gdb_command): Update.
5783 * solib.c (info_sharedlibrary_command): Update.
5784 * interps.c (interp_ui_out): Remove.
5785 * interps.h (interp_ui_out): Remove.
5786
716b8bc5
TT
57872018-05-25 Tom Tromey <tom@tromey.com>
5788
5789 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
5790 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
5791 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
5792
753ff9bd
TT
57932018-05-25 Tom Tromey <tom@tromey.com>
5794
5795 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
5796 * interps.c (interp_exec): Use scoped_restore.
5797
5ca3b260
TT
57982018-05-25 Tom Tromey <tom@tromey.com>
5799
5800 * remote.c (remote_target::remote_file_get): Use
5801 gdb::byte_vector.
5802 (remote_target::remote_file_put): Likewise.
5803
3173aa2f
TT
58042018-05-25 Tom Tromey <tom@tromey.com>
5805
5806 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
5807 a std::string.
5808 (get_pe_section_index, add_pe_exported_sym): Update.
5809 (read_pe_exported_syms): Use gdb::def_vector.
5810
09a5e1b5
TT
58112018-05-25 Tom Tromey <tom@tromey.com>
5812
5813 * frame.c (remove_prev_frame): Remove.
5814 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
5815
d8dab6c3
MR
58162018-05-25 Maciej W. Rozycki <macro@mips.com>
5817
5818 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
5819 Remove prototypes.
5820 * mips-linux-nat.c (supply_fpregset): Always call
5821 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
5822 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
5823 `mips_fill_fpregset'.
5824 * mips-linux-tdep.c (mips_supply_fpregset)
5825 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
5826 (mips_fill_fpregset_wrapper): Remove functions.
5827 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
5828 (mips_linux_fpregset): Remove variable.
5829 (mips_linux_iterate_over_regset_sections): Use
5830 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
5831 (mips_linux_o32_sigframe_init): Remove comment.
5832
3c69da40
PA
58332018-05-25 Pedro Alves <palves@redhat.com>
5834
5835 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
5836 (struct readahead_cache, struct packet_reg, struct
5837 remote_arch_state, class remote_state): Move higher up in the
5838 file.
5839 (remote_target::m_remote_state): Now an object instead of a pointer.
5840 (remote_target::get_remote_state): Adjust.
5841
39f0c204
AB
58422018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5843
5844 * stack.c (select_and_print_frame): Delete.
5845 (struct function_bounds): Move struct within function.
5846 (func_command): Most content moved into new function
5847 find_frame_for_function, use new function, print result, add
5848 function comment.
5849 (find_frame_for_function): New function, now returns a result.
5850
d392224a
PW
58512018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5852
5853 * stack.c (iterate_over_block_arg_vars): Fix comment.
5854 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
5855
45f25d6c
AB
58562018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5857
5858 PR gdb/23203
5859 * frame.c
5860 (scoped_restore_selected_frame::scoped_restore_selected_frame):
5861 Define.
5862 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
5863 Define.
5864 * frame.h (class scoped_restore_selected_frame): New class.
5865 * stack.c (print_frame_local_vars): Remove catching and rethrowing
5866 of any exception, use scoped_restore_selected_frame to restore the
5867 frame instead.
5868
da05d921
PA
58692018-05-24 Pedro Alves <palves@redhat.com>
5870
5871 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
5872 override.
5873
a8be540e
TT
58742018-05-23 Tom Tromey <tom@tromey.com>
5875
5876 * complaints.c (struct complaints): Remove.
5877 (symfile_complaint_book): Remove.
5878 (series): New global.
5879 (complaint_internal): Update.
5880 (clear_complaints): Update.
5881
ff1cf532
TT
58822018-05-23 Tom Tromey <tom@tromey.com>
5883
5884 * complaints.c (counters): New global.
5885 (struct complain): Remove.
5886 (struct complaints) <root>: Remove.
5887 (complaint_sentinel): Remove.
5888 (symfile_complaint_book): Update.
5889 (find_complaint) Remove.
5890 (complaint_internal, clear_complaints): Update.
5891
7ff88174
TT
58922018-05-23 Tom Tromey <tom@tromey.com>
5893
5894 * complaints.c (struct complain) <file, line>: Remove.
5895 (find_complaint): Remove file, line parameters.
5896 (complaint_internal): Update.
5897
de54e1a5
TT
58982018-05-23 Tom Tromey <tom@tromey.com>
5899
5900 * complaints.c (vcomplaint): Remove.
5901 (complaint_internal) Merge in contents of vcomplaint.
5902
2ac237e5
TT
59032018-05-23 Tom Tromey <tom@tromey.com>
5904
5905 * complaints.c (struct complaints) <explanation>: Remove.
5906 (symfile_explanations): Remove.
5907 (symfile_complaint_book): Update.
5908 (vcomplaint): Update.
5909 (struct explanation): Remove.
5910
b98664d3
TT
59112018-05-23 Tom Tromey <tom@tromey.com>
5912
5913 * complaints.c (symfile_complaints): Remove.
5914 (complaint_internal): Remove "complaints" parameter.
5915 (clear_complaints, vcomplaint): Remove "c" parameter.
5916 (get_complaints): Remove.
5917 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
5918 (dwarf2_debug_line_missing_file_complaint)
5919 (dwarf2_debug_line_missing_end_sequence_complaint)
5920 (dwarf2_complex_location_expr_complaint)
5921 (dwarf2_const_value_length_mismatch_complaint)
5922 (dwarf2_section_buffer_overflow_complaint)
5923 (dwarf2_macro_malformed_definition_complaint)
5924 (dwarf2_invalid_attrib_class_complaint)
5925 (create_addrmap_from_index, dw2_symtab_iter_next)
5926 (dw2_expand_marked_cus)
5927 (dw2_debug_names_iterator::find_vec_in_debug_names)
5928 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
5929 (create_debug_type_hash_table, init_cutu_and_read_dies)
5930 (partial_die_parent_scope, add_partial_enumeration)
5931 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
5932 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
5933 (read_import_statement, read_file_scope, create_dwo_cu_reader)
5934 (create_cus_hash_table, create_dwp_hash_table)
5935 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5936 (dwarf2_rnglists_process, dwarf2_ranges_process)
5937 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
5938 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
5939 (handle_struct_member_die, process_structure_scope)
5940 (read_array_type, read_common_block, read_module_type)
5941 (read_tag_pointer_type, read_typedef, read_base_type)
5942 (read_subrange_type, load_partial_dies, partial_die_info::read)
5943 (partial_die_info::read, partial_die_info::read)
5944 (partial_die_info::read, read_checked_initial_length_and_offset)
5945 (dwarf2_string_attr, read_formatted_entries)
5946 (dwarf_decode_line_header)
5947 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5948 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
5949 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
5950 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5951 (get_signatured_type, get_DW_AT_signature_type)
5952 (decode_locdesc, file_file_name, consume_improper_spaces)
5953 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
5954 (dwarf_decode_macro_bytes, dwarf_decode_macros)
5955 (dwarf2_symbol_mark_computed, set_die_type)
5956 (read_attribute_value): Update.
5957 * stap-probe.c (handle_stap_probe, get_stap_base_address):
5958 Update.
5959 * dbxread.c (unknown_symtype_complaint)
5960 (lbrac_mismatch_complaint, repeated_header_complaint)
5961 (set_namestring, function_outside_compilation_unit_complaint)
5962 (read_dbx_symtab, process_one_symbol): Update.
5963 * gdbtypes.c (stub_noname_complaint): Update.
5964 * windows-nat.c (handle_unload_dll): Update.
5965 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
5966 (decode_base_type): Update.
5967 * xcoffread.c (bf_notfound_complaint, ef_complaint)
5968 (eb_complaint, record_include_begin, record_include_end)
5969 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
5970 (process_xcoff_symbol, read_symbol)
5971 (function_outside_compilation_unit_complaint)
5972 (scan_xcoff_symtab): Update.
5973 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
5974 * buildsym.c (finish_block_internal, make_blockvector)
5975 (end_symtab_get_static_block, augment_type_symtab): Update.
5976 * dtrace-probe.c (dtrace_process_dof)
5977 (dtrace_static_probe_ops::get_probes): Update.
5978 * complaints.h (struct complaint): Don't declare.
5979 (symfile_complaints): Remove.
5980 (complaint_internal): Remove "complaints" parameter.
5981 (complaint): Likewise.
5982 (clear_complaints): Likewise.
5983 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5984 (reread_symbols): Update.
5985 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
5986 (dwarf2_frame_cache, decode_frame_entry): Update.
5987 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
5988 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5989 (info_selectors_command): Update.
5990 * macrotab.c (macro_include, check_for_redefinition)
5991 (macro_undef): Update.
5992 * objfiles.c (filter_overlapping_sections): Update.
5993 * stabsread.c (invalid_cpp_abbrev_complaint)
5994 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
5995 (define_symbol, error_type, read_type, rs6000_builtin_type)
5996 (stabs_method_name_from_physname, read_member_functions)
5997 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
5998 (attach_fields_to_type, complain_about_struct_wipeout)
5999 (read_range_type, read_args, common_block_start)
6000 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6001 Update.
6002 * mdebugread.c (index_complaint, unknown_ext_complaint)
6003 (basic_type_complaint, bad_tag_guess_complaint)
6004 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6005 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6006 (parse_procedure, parse_lines)
6007 (function_outside_compilation_unit_complaint)
6008 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6009 (bad_tag_guess_complaint, reg_value_complaint): Update.
6010 * cp-support.c (demangled_name_complaint): Update.
6011 * macroscope.c (sal_macro_scope): Update.
6012 * dwarf-index-write.c (class debug_names): Update.
6013
4e9668d0
TT
60142018-05-23 Tom Tromey <tom@tromey.com>
6015
6016 * complaints.c (clear_complaints): Remove "noisy" parameter.
6017 * complaints.h (clear_complaints): Update.
6018 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6019 (reread_symbols): Update.
6020
43ba33c7
TT
60212018-05-23 Tom Tromey <tom@tromey.com>
6022
6023 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6024 SUBSEQUENT_MESSAGE.
6025 (vcomplaint, clear_complaints): Update.
6026 (symfile_explanations): Remove some messages.
6027
2b9496b2
TT
60282018-05-23 Tom Tromey <tom@tromey.com>
6029
6030 * complaints.c (internal_complaint): Remove.
6031 * complaints.h (internal_complaint): Remove.
6032
35f1fea3
MR
60332018-05-22 Maciej W. Rozycki <macro@mips.com>
6034
6035 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6036
6b8edb51
PA
60372018-05-22 Pedro Alves <palves@redhat.com>
6038
6039 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6040 (remote_fileio_badfd, remote_fileio_return_errno)
6041 (remote_fileio_return_success, remote_fileio_func_open)
6042 (remote_fileio_func_open, remote_fileio_func_close)
6043 (remote_fileio_func_read, remote_fileio_func_write)
6044 (remote_fileio_func_lseek, remote_fileio_func_rename)
6045 (remote_fileio_func_unlink, remote_fileio_func_stat)
6046 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6047 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6048 remote_target parameter.
6049 (remote_fio_func_map) <func>: Add remote_target parameter.
6050 (do_remote_fileio_request, remote_fileio_request):
6051 * remote-fileio.h (remote_fileio_request):
6052 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6053 remote_target parameter.
6054 (remote_notif_process, handle_notification): Adjust to pass down
6055 the remote.
6056 (remote_notif_state_allocate): Add remote_target parameter. Save
6057 it.
6058 * remote-notif.h (struct remote_target): Forward declare.
6059 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6060 remote_target parameter.
6061 (struct remote_notif_state) <remote>: New field.
6062 (remote_notif_ack, remote_notif_parse): Add remote_target
6063 parameter.
6064 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6065 remote_target parameter.
6066 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6067 (threads_listing_context, rmt_thread_action, protocol_feature)
6068 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6069 (packet_result, struct threads_listing_context, remote_state):
6070 Move definitions and declarations higher up.
6071 (remote_target) <~remote_target>: Declare.
6072 (remote_download_command_source, remote_file_put, remote_file_get)
6073 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6074 (remote_hostio_pread_vFile, remote_hostio_send_command)
6075 (remote_hostio_set_filesystem, remote_hostio_open)
6076 (remote_hostio_close, remote_hostio_unlink, remote_state)
6077 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6078 (get_memory_write_packet_size, get_memory_read_packet_size)
6079 (append_pending_thread_resumptions, remote_detach_1)
6080 (append_resumption, remote_resume_with_vcont)
6081 (add_current_inferior_and_thread, wait_ns, wait_as)
6082 (process_stop_reply, remote_notice_new_inferior)
6083 (process_initial_stop_replies, remote_add_thread)
6084 (btrace_sync_conf, remote_btrace_maybe_reopen)
6085 (remove_new_fork_children, kill_new_fork_children)
6086 (discard_pending_stop_replies, stop_reply_queue_length)
6087 (check_pending_events_prevent_wildcard_vcont)
6088 (discard_pending_stop_replies_in_queue, stop_reply)
6089 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6090 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6091 (remote_interrupt_as, remote_interrupt_ns)
6092 (remote_get_noisy_reply, remote_query_attached)
6093 (remote_add_inferior, remote_current_thread, get_current_thread)
6094 (set_thread, set_general_thread, set_continue_thread)
6095 (set_general_process, write_ptid)
6096 (remote_unpack_thread_info_response, remote_get_threadinfo)
6097 (parse_threadlist_response, remote_get_threadlist)
6098 (remote_threadlist_iterator, remote_get_threads_with_ql)
6099 (remote_get_threads_with_qxfer)
6100 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6101 (get_offsets, remote_check_symbols, remote_supported_packet)
6102 (remote_query_supported, remote_packet_size)
6103 (remote_serial_quit_handler, remote_detach_pid)
6104 (remote_vcont_probe, remote_resume_with_hc)
6105 (send_interrupt_sequence, interrupt_query)
6106 (remote_notif_get_pending_events, fetch_register_using_p)
6107 (send_g_packet, process_g_packet, fetch_registers_using_g)
6108 (store_register_using_P, store_registers_using_G)
6109 (set_remote_traceframe, check_binary_download)
6110 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6111 (remote_xfer_live_readonly_partial, remote_read_bytes)
6112 (remote_send_printf, remote_flash_write, readchar)
6113 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6114 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6115 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6116 (extended_remote_disable_randomization, extended_remote_run)
6117 (send_environment_packet, extended_remote_environment_support)
6118 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6119 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6120 (packet_command): Now methods of ...
6121 (remote_target): ... this class.
6122 (m_remote_state) <remote_target>: New field.
6123 (struct remote_state) <stop_reply_queue,
6124 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6125 fields.
6126 (remote_state::remote_state): Allocate stop_reply_queue.
6127 (remote_state): Delete global.
6128 (get_remote_state_raw): Delete.
6129 (remote_target::get_remote_state): Allocate m_remote_state on
6130 demand.
6131 (get_current_remote_target): New.
6132 (remote_ops, extended_remote_ops): Delete.
6133 (wait_forever_enabled_p, remote_async_inferior_event_token):
6134 Delete, moved to struct remote_state.
6135 (remote_target::close): Delete self. Destruction bits split to
6136 ...
6137 (remote_target::~remote_target): ... this.
6138 (show_memory_packet_size): Adjust to use
6139 get_current_remote_target.
6140 (struct protocol_feature) <func>: Add remote_target parameter.
6141 All callers adjusted.
6142 (curr_quit_handler_target): New.
6143 (remote_serial_quit_handler): Reimplement.
6144 (remote_target::open_1): Adjust to use get_current_remote_target.
6145 Heap-allocate remote_target/extended_remote_target instances.
6146 (vcont_builder::vcont_builder): Add remote_target parameter, and
6147 save it in m_remote. All callers adjusted.
6148 (vcont_builder::m_remote): New field.
6149 (vcont_builder::restart, vcont_builder::flush)
6150 (vcont_builder::push_action): Use it.
6151 (remote_target::commit_resume): Use it.
6152 (struct queue_iter_param) <remote>: New field.
6153 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6154 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6155 (check_pending_event_prevents_wildcard_vcont_callback)
6156 (remote_target::check_pending_events_prevent_wildcard_vcont)
6157 (remote_target::discard_pending_stop_replies)
6158 (remote_target::discard_pending_stop_replies_in_queue)
6159 (remote_target::remote_notif_remove_queued_reply): Fill in
6160 'remote' field.
6161 (remote_notif_get_pending_events): New.
6162 (remote_target::readchar, remote_target::remote_serial_write):
6163 Save/restore curr_quit_handler_target.
6164 (putpkt): New.
6165 (kill_new_fork_children): Fill in 'remote' field.
6166 (packet_command): Use get_current_remote_target, defer to
6167 remote_target method of same name.
6168 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6169 parameter, and save it in m_remote. All callers adjusted.
6170 (scoped_remote_fd::release): Use m_remote.
6171 (scoped_remote_fd::m_remote): New field.
6172 (remote_file_put, remote_file_get, remote_file_delete): Use
6173 get_current_remote_target, defer to remote_target method of same
6174 name.
6175 (remote_btrace_reset): Add remote_state paremeter. Update all
6176 callers.
6177 (remote_async_inferior_event_handler). Pass down 'data'.
6178 (remote_new_objfile): Use get_current_remote_target.
6179 (remote_target::vcont_r_supported): New.
6180 (set_range_stepping): Use get_current_remote_target and
6181 remote_target::vcont_r_supported.
6182 (_initialize_remote): Don't allocate 'remote_state' and
6183 'stop_reply_queue' globals.
6184 * remote.h (struct remote_target): Forward declare.
6185 (getpkt, putpkt, remote_notif_get_pending_events): Add
6186 'remote_target' parameter.
6187
f5db4863
PA
61882018-05-22 Pedro Alves <palves@redhat.com>
6189
6190 * remote.c (vcont_builder): Now a class. Make all data members
6191 private.
6192 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6193 Declare methods.
6194 (vcont_builder_restart): Rename to ...
6195 (vcont_builder::restart): ... this.
6196 (vcont_builder_flush): Rename to ...
6197 (vcont_builder::flush): ... this.
6198 (vcont_builder_push_action): Rename to ...
6199 (vcont_builder::push_action): ... this.
6200 (remote_target::commit_resume): Adjust.
6201
cc0be08f
PA
62022018-05-22 Pedro Alves <palves@redhat.com>
6203
6204 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6205 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6206 (get_fixed_memory_packet_size): New.
6207 (get_memory_packet_size): Use it.
6208 (set_memory_packet_size): Don't override the config size with
6209 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6210 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6211 Don't refer to get_memory_packet_size if not connected to a remote
6212 target. Show "(default)" if configured size is 0.
6213
9607784a
PA
62142018-05-22 Pedro Alves <palves@redhat.com>
6215
6216 * remote.c (remote_target::mourn_inferior): Move
6217 discard_pending_stop_replies call here from ...
6218 (_initialize_remote): ... here.
6219
0e9a6b2f
PA
62202018-05-22 Pedro Alves <palves@redhat.com>
6221
6222 * remote.c (compare_section_command): Remove set_general_process
6223 call.
6224
43c3a0e4
PA
62252018-05-22 Pedro Alves <palves@redhat.com>
6226
6227 * remote.c (struct packet_reg, struct remote_arch_state):
6228 Move higher up in the file.
6229 (remote_state) <m_arch_states>: Store remote_arch_state values
6230 instead of remote_arch_state pointers.
6231 (remote_state::get_remote_arch_state): Adjust.
6232
9d6eea31
PA
62332018-05-22 Pedro Alves <palves@redhat.com>
6234
6235 * remote.c: Include <unordered_map>.
6236 (remote_state): Now a class.
6237 (remote_state) <get_remote_arch_state>: Declare method.
6238 <get_remote_arch_state>: New field.
6239 (remote_arch_state) <remote_arch_state>: Declare ctor.
6240 <regs>: Now a unique_ptr.
6241 (remote_gdbarch_data_handle): Delete.
6242 (get_remote_arch_state): Delete.
6243 (remote_state::get_remote_arch_state): New.
6244 (get_remote_state): Adjust to call remote_state's
6245 get_remote_arch_state method.
6246 (init_remote_state): Delete, bits factored out to ...
6247 (remote_arch_state::remote_arch_state): ... this new method.
6248 (get_remote_packet_size, get_memory_packet_size)
6249 (process_g_packet, remote_target::fetch_registers)
6250 (remote_target::prepare_to_store, store_registers_using_G)
6251 (remote_target::store_registers, remote_target::get_trace_status):
6252 Adjust to call remote_state's method.
6253 (_initialize_remote): Remove reference to
6254 remote_gdbarch_data_handle.
6255
dd194f6b
PA
62562018-05-22 Pedro Alves <palves@redhat.com>
6257
6258 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6259 pread>: New method declarations.
6260 (remote_target::open_1): Adjust.
6261 (readahead_cache_invalidate): Rename to ...
6262 (readahead_cache::invalidate): ... this, and adjust to be a class
6263 method.
6264 (readahead_cache_invalidate_fd): Rename to ...
6265 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6266 class method.
6267 (remote_hostio_pwrite): Adjust.
6268 (remote_hostio_pread_from_cache): Rename to ...
6269 (readahead_cache::pread): ... this, and adjust to be a class
6270 method.
6271 (remote_hostio_close): Adjust.
6272
440b7aec
PA
62732018-05-22 Pedro Alves <palves@redhat.com>
6274
6275 * remote.c (remote_hostio_close_cleanup): Delete.
6276 (class scoped_remote_fd): New.
6277 (remote_file_put, remote_file_get): Use it.
6278
de44f5a7
PA
62792018-05-22 Pedro Alves <palves@redhat.com>
6280
6281 (struct vCont_action_support): Use bool and initialize all fields.
6282 (struct readahead_cache): Initialize all fields.
6283 (remote_state): Use bool and initialize all fields.
6284 (remote_state::remote_state, remote_state::~remote_state): New.
6285 (new_remote_state): Delete.
6286 (_initialize_remote): Use new to allocate remote_state.
6287
b1b60145
PA
62882018-05-22 Pedro Alves <palves@redhat.com>
6289 張俊芝 <zjz@zjz.name>
6290
6291 PR gdb/22973
6292 * c-exp.y: Include "c-support.h".
6293 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6294 of tolower. Use c_ident_is_alpha to scan names.
6295 * c-lang.c: Include "c-support.h".
6296 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6297 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6298 * c-support.h: New file, with bits factored out from ...
6299 * cp-name-parser.y: ... this file.
6300 Include "c-support.h".
6301 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6302 c-support.h and renamed.
6303 (symbol_end, yylex): Adjust.
6304
0ec848ad
PFC
63052018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6306
6307 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6308 parameter type to CORE_ADDR.
6309 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6310 parameter type in declaration to CORE_ADDR.
6311 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6312 target_auxv_search to get AT_HWCAP and use the result to get the
6313 target description.
6314 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6315 to CORE_ADDR. Remove the cast of the return value to unsigned
6316 long. Fix error predicate of target_auxv_search.
6317 (ppc_linux_nat_target::read_description): Change the type of the
6318 hwcap variable to CORE_ADDR.
6319
0fb2aaa1
PFC
63202018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6321
6322 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6323 if the size of fpscr is larger than 32 bits.
6324
2c3305f6
PFC
63252018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6326
6327 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6328 (ppc32_linux_vsxregmap): New global.
6329 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6330 regcache_supply_regset, and regcache_collect_regset.
6331 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6332 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6333 (fetch_vsx_register, store_vsx_register): Remove.
6334 (fetch_vsx_registers): Add regno parameter. Get regset using
6335 ppc_linux_vsxregset. Use regset to supply registers.
6336 (store_vsx_registers): Add regno parameter. Get regset using
6337 ppc_linux_vsxregset. Use regset to collect registers.
6338 (fetch_register): Call fetch_vsx_registers instead of
6339 fetch_vsx_register.
6340 (store_register): Call store_vsx_registers instead of
6341 store_vsx_register.
6342 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6343 new regno parameter.
6344 (store_ppc_registers): Call store_vsx_registers with -1 for the
6345 new regno parameter.
6346 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6347 (ppc_collect_vsxregset): Remove.
6348
1d75a658
PFC
63492018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6350
6351 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6352 offset fields.
6353 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6354 for vector register offset fields.
6355 (ppc64_fbsd_reg_offsets): Likewise.
6356 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6357 to vector register offset fields.
6358 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6359 to vector register offset fields.
6360 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6361 vector register offset fields.
6362 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6363 initializers for vector register offset fields.
6364 (rs6000_aix64_reg_offsets): Likewise.
6365 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6366 (ppc_supply_vrregset): Remove.
6367 (ppc_collect_vrregset): Remove.
6368 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6369 (ppc_linux_vrregset) : New function.
6370 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6371 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6372 (ppc32_linux_vrregset): Remove.
6373 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6374 and use result instead of ppc32_linux_vrregset.
6375 (ppc32_linux_reg_offsets): Remove initializers for vector register
6376 offset fields.
6377 (ppc64_linux_reg_offsets): Likewise.
6378 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6379 * ppc-linux-nat.c: Include regset.h.
6380 (gdb_vrregset_t): Adjust comment to account for little-endian
6381 mode.
6382 (supply_vrregset, fill_vrregset): Remove.
6383 (fetch_altivec_register, store_altivec_register): Remove.
6384 (fetch_altivec_registers): Add regno parameter. Get regset using
6385 ppc_linux_vrregset. Use regset to supply registers.
6386 (store_altivec_registers): Add regno parameter. Get regset using
6387 ppc_linux_vrregset. Use regset to collect registers.
6388 (fetch_register): Call fetch_altivec_registers instead of
6389 fetch_altivec_register.
6390 (store_register): Call store_altivec_registers instead of
6391 store_altivec_register.
6392 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6393 the new regno parameter.
6394 (store_ppc_registers): Call store_altivec_registers with -1 for
6395 the new regno parameter.
6396
d078308a
PFC
63972018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6398
6399 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6400 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6401 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6402 (gdb_vrregset_t): Change array type size to
6403 PPC_LINUX_SIZEOF_VRREGSET.
6404 (gdb_vsxregset_t): Change array type size to
6405 PPC_LINUX_SIZEOF_VSXREGSET.
6406 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6407 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6408 PPC_LINUX_SIZEOF_VSXREGSET.
6409
2e077f5e
PFC
64102018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6411
6412 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6413 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6414 nat/ppc-linux.c.
6415 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6416 ppc_linux_target_wordsize with tid.
6417 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6418 wordsize with tid.
6419 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6420 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6421 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6422 tid parameter. Remove static specifier.
6423 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6424 (ppc_linux_target_wordsize): New declaration.
6425
bd64614e
PFC
64262018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6427
6428 * arch/ppc-linux-common.c: New file.
6429 * arch/ppc-linux-common.h: New file.
6430 * arch/ppc-linux-tdesc.h: New file.
6431 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6432 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6433 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6434 arch/ppc-linux-tdesc.h.
6435 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6436 arch/ppc-linux-tdesc.h.
6437 (ppc_linux_nat_target::read_description): Remove target
6438 description matching code. Fill a ppc_linux_features struct and
6439 call ppc_linux_match_description with it. Move comment about ISA
6440 2.05 to ppc-linux-common.c.
6441 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6442 arch/ppc-linux-tdesc.h.
6443 (ppc_linux_core_read_description): Remove target description
6444 matching code. Fill a ppc_linux_features struct and call
6445 ppc_linux_match_description with it.
6446 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6447 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6448 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6449 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6450 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6451 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6452 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6453 (tdesc_powerpc_e500l): Remove.
6454
241db429
JB
64552018-05-22 Joel Brobecker <brobecker@adacore.com>
6456
6457 * ada-lang.c (catch_assert_command): Pass empty string instead
6458 of NULL for excep_string argument.
6459
75d74cca
MR
64602018-05-22 Maciej W. Rozycki <macro@mips.com>
6461
6462 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6463 the width of the requested register exceeds the width of the
6464 `ptrace' data type.
6465
122b53ea
TT
64662018-05-21 Tom Tromey <tom@tromey.com>
6467
6468 * printcmd.c (output_command): Remove.
6469 (output_command_const): Rename to output_command.
6470 * valprint.h (output_command): Rename from output_command_const.
6471 * tracepoint.c (trace_dump_actions): Call output_command.
6472
bc18fbb5
TT
64732018-05-21 Tom Tromey <tom@tromey.com>
6474
6475 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6476 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6477 * ada-lang.h (create_ada_exception_catchpoint): Update.
6478 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6479 std::string.
6480 (create_excep_cond_exprs, ~ada_catchpoint)
6481 (should_stop_exception, print_one_exception)
6482 (print_mention_exception, print_recreate_exception): Update.
6483 (ada_get_next_arg): Remove.
6484 (catch_ada_exception_command_split): Use std::string. Change type
6485 of "excep_string", "cond_string".
6486 (catch_ada_exception_command): Update.
6487 (create_ada_exception_catchpoint): Change type of excep_string.
6488 (ada_exception_sal): Remove excep_string parameter.
6489 (~ada_catchpoint): Remove.
6490
790217f6
TT
64912018-05-21 Tom Tromey <tom@tromey.com>
6492
6493 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6494 cleanup.
6495
6f46ac85
TT
64962018-05-21 Tom Tromey <tom@tromey.com>
6497
6498 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6499 Return unique_xmalloc_ptr.
6500 (print_it_exception): Update.
6501
15b6611c
TT
65022018-05-21 Tom Tromey <tom@tromey.com>
6503
6504 * tracepoint.c (trace_dump_actions): Use std::string.
6505
c0c9f665
TT
65062018-05-21 Tom Tromey <tom@tromey.com>
6507
6508 * symfile.c (reread_symbols): Use std::string for original_name.
6509
22ca247e
TT
65102018-05-21 Tom Tromey <tom@tromey.com>
6511
6512 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6513 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6514 constructor.
6515
184cde75
SM
65162018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6517
6518 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6519 instance to...
6520 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6521 * objfiles.c (get_objfile_bfd_data): Allocate
6522 objfile_per_bfd_storage with obstack_new when allocating on
6523 obstack.
6524
e39db4db
SM
65252018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6526
6527 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6528 OBSTACK_ZALLOC.
6529 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6530 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6531 * mdebugread.c (mdebug_build_psymtabs): Likewise.
6532 (add_pending): Likewise.
6533 (parse_symbol): Likewise.
6534 (parse_partial_symbols): Likewise.
6535 (psymtab_to_symtab_1): Likewise.
6536 (new_psymtab): Likewise.
6537 (elfmdebug_build_psymtabs): Likewise.
6538 * minsyms.c (terminate_minimal_symbol_table): Likewise.
6539 * objfiles.c (get_objfile_bfd_data): Likewise.
6540 (objfile_register_static_link): Likewise.
6541 * psymtab.c (allocate_psymtab): Likewise.
6542 * stabsread.c (read_member_functions): Likewise.
6543 * xcoffread.c (xcoff_end_psymtab): Likewise.
6544
284a0e3c
SM
65452018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6546
6547 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
6548 compiler supports std::is_trivially_constructible.
6549 * common/poison.h: Include obstack.h.
6550 (IsMallocable): Define to is_trivially_constructible if the
6551 compiler supports it, define to true_type otherwise.
6552 (xobnew): New.
6553 (XOBNEW): Redefine.
6554 (xobnewvec): New.
6555 (XOBNEWVEC): Redefine.
6556 * gdb_obstack.h (obstack_zalloc): New.
6557 (OBSTACK_ZALLOC): Redefine.
6558 (obstack_calloc): New.
6559 (OBSTACK_CALLOC): Redefine.
6560 (obstack_new): New.
6561 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
6562 (gdbarch_obstack): New declaration in gdbarch.h, definition in
6563 gdbarch.c.
6564 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
6565 obstack_calloc/obstack_zalloc.
6566 (gdbarch_obstack_zalloc): Remove.
6567 * target-descriptions.c (tdesc_data_init): Use obstack_new.
6568
59f66be3
PW
65692018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6570
6571 * stack.c (backtrace_command_1): Remove useless variable int i.
6572
50c65c2d
PW
65732018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6574
6575 * stack.c (print_frame_info): Fix comment.
6576
7ff8cb8c
TT
65772018-05-18 Tom Tromey <tom@tromey.com>
6578
6579 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
6580 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
6581 (~dwarf2_per_objfile): Update
6582 (dwarf2_get_dwz_file): Use new.
6583 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6584 unique_ptr.
6585
400174b1
TT
65862018-05-18 Tom Tromey <tom@tromey.com>
6587
6588 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
6589 unique_ptr.
6590 * dwarf2read.c (struct dwp_file): Add constructor and
6591 initializers.
6592 (open_and_init_dwp_file): Return a unique_ptr.
6593 (dwarf2_per_objfile, create_dwp_hash_table)
6594 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
6595 (lookup_dwo_unit_in_dwp): Update.
6596 (open_and_init_dwp_file, get_dwp_file): Update.
6597
3063847f
TT
65982018-05-18 Tom Tromey <tom@tromey.com>
6599
6600 * dwarf2read.c (dwarf2_per_objfile): Update.
6601 (struct mapped_index): Add initializers.
6602 (dwarf2_read_index): Use new.
6603 (dw2_symtab_iter_init): Update.
6604 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
6605 unique_ptr.
6606
d3d02dee
SM
66072018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6608
6609 * dwarf2read.c (mapped_index) <total_size>: Remove.
6610
1d143c36
SM
66112018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6612
6613 * unittests/format_pieces-selftests.c (test_format_specifier):
6614 Add ARI comments.
6615
ce1e8424
TT
66162018-05-18 Tom Tromey <tom@tromey.com>
6617
6618 * c-typeprint.c (maybe_print_hole): New function.
6619 (c_print_type_struct_field_offset): Update.
6620 (c_type_print_base_struct_union): Call maybe_print_hole.
6621
ddfe970e
KS
66222018-05-17 Keith Seitz <keiths@redhat.com>
6623
6624 * breakpoint.c (build_bpstat_chain): New function, moved from
6625 bpstat_stop_status.
6626 (bpstat_stop_status): Add optional parameter, `stop_chain'.
6627 If no stop chain is passed, call build_bpstat_chain to build it.
6628 * breakpoint.h (build_bpstat_chain): Declare.
6629 (bpstat_stop_status): Move documentation here from breakpoint.c.
6630 * infrun.c (handle_signal_stop): Before eliding inlined frames,
6631 build the stop chain and pass it to skip_inline_frames.
6632 Pass this stop chain to bpstat_stop_status.
6633 * inline-frame.c: Include breakpoint.h.
6634 (stopped_by_user_bp_inline_frame): New function.
6635 (skip_inline_frames): Add parameter `stop_chain'.
6636 Move documention to inline-frame.h.
6637 If non-NULL, use stopped_by_user_bp_inline_frame to determine
6638 whether the frame should be elided.
6639 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
6640 Add moved documentation and update for new parameter.
6641
b17992c1
SM
66422018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6643
6644 PR cli/14975
6645 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6646 unittests/format_pieces-selftests.c.
6647 * common/format.h (format_piece) <operator==>: New.
6648 (format_pieces) <operator[]>: Remove.
6649 * common/format.c (format_pieces::format_pieces): Handle \e.
6650 * unittests/format_pieces-selftests.c: New.
6651
58f0c718
TT
66522018-05-17 Tom Tromey <tom@tromey.com>
6653
6654 PR symtab/23010:
6655 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
6656 (dw2_instantiate_symtab): Add skip_partial parameter.
6657 (dw2_find_last_source_symtab, dw2_map_expand_apply)
6658 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
6659 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
6660 (dw2_expand_symtabs_matching_one)
6661 (dw2_find_pc_sect_compunit_symtab)
6662 (dw2_debug_names_lookup_symbol)
6663 (dw2_debug_names_expand_symtabs_for_function): Update.
6664 (init_cutu_and_read_dies): Add skip_partial parameter.
6665 (process_psymtab_comp_unit, build_type_psymtabs_1)
6666 (process_skeletonless_type_unit, load_partial_comp_unit)
6667 (psymtab_to_symtab_1): Update.
6668 (load_full_comp_unit): Add skip_partial parameter.
6669 (process_imported_unit_die, dwarf2_read_addr_index)
6670 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
6671 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
6672 (read_signatured_type): Update.
6673
3e618834
SM
66742018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6675
6676 * value.c (release_value): Remove unused variable.
6677 (record_latest_value): Likewise.
6678 (access_value_history): Likewise.
6679 (preserve_values): Likewise.
6680
fe10fe31
TT
66812018-05-17 Tom Tromey <tom@tromey.com>
6682
6683 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
6684 Initialize.
6685
1d761124
MR
66862018-05-16 Maciej W. Rozycki <macro@mips.com>
6687
6688 PR gdb/22286
6689 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
6690 Also handle registers whose width is not a multiple of
6691 PTRACE_TYPE_RET.
6692 (linux_nat_trad_target::store_register): Likewise.
6693
06333fea
TT
66942018-05-16 Tom Tromey <tom@tromey.com>
6695
6696 * gdbcore.h (core_bfd): Redefine.
6697 * corelow.c (core_target::close): Update.
6698 (core_target_open): Update.
6699 * progspace.h (struct program_space) <cbfd>: Now a
6700 gdb_bfd_ref_ptr.
6701
921222e2
TT
67022018-05-16 Tom Tromey <tom@tromey.com>
6703
6704 PR cli/19551:
6705 * symfile-add-flags.h (enum symfile_add_flags)
6706 <SYMFILE_NOT_FILENAME>: New constant.
6707 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
6708 objfile name from BFD.
6709 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
6710 * minidebug.c (find_separate_debug_file_in_section): Put
6711 ".gnu_debugdata" into BFD's file name.
6712
3acb7083
SM
67132018-05-16 Simon Marchi <simon.marchi@ericsson.com>
6714
6715 * regcache.c (regcache_read_ftype, regcache_write_ftype):
6716 Remove.
6717
561a72d4
TC
67182018-05-15 Tamar Christina <tamar.christina@arm.com>
6719
6720 PR binutils/21446
6721 * aarch64-tdep.c (aarch64_analyze_prologue,
6722 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
6723 Indicate not interested in errors.
6724
4e6ff0e1
MR
67252018-05-15 Maciej W. Rozycki <macro@mips.com>
6726
6727 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
6728 Supply the MIPS_ZERO_REGNUM register.
6729
ea33cd92
MR
67302018-05-15 Maciej W. Rozycki <macro@mips.com>
6731
6732 * mips-tdep.c (mask_address_var): Make variable static.
6733
2d79090e
TT
67342018-05-14 Tom Tromey <tom@tromey.com>
6735
6736 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
6737
cf4912ae
AB
67382018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
6739
6740 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
6741 FXSAVE_ADDR for the mxcsr register.
6742
67e6f569
MF
67432018-05-11 Max Filippov <jcmvbkbc@gmail.com>
6744
6745 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
6746
15244507
PA
67472018-05-11 Pedro Alves <palves@redhat.com>
6748
6749 * corelow.c (core_target) <core_target>: No longer inline.
6750 Initialize m_core_gdbarch, m_core_vec and build the section table
6751 here.
6752 <~core_target>: New.
6753 <core_gdbarch, get_core_register_section>: New methods.
6754 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
6755 factored out from ...
6756 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
6757 (core_ops): Delete.
6758 (sniff_core_bfd): Add gdbarch parameter.
6759 (core_close): Delete, merged into ...
6760 (core_target::close): ... here. Delete self.
6761 (core_close_cleanup): Delete.
6762 (core_target_open): Allocate a core_target on the heap. Use a
6763 unique_ptr instead of a cleanup. Bits moved into the core_target
6764 ctor. Adjust to use core_target methods instead of globals.
6765 (get_core_register_section): Rename to ...
6766 (core_target::get_core_register_section): ... this and adjust.
6767 (struct get_core_registers_cb_data): New.
6768 (get_core_registers_cb): Use it. Use bool.
6769 (core_target::fetch_registers, core_target::files_info)
6770 (core_target::xfer_partial, core_target::read_description)
6771 (core_target::pid_to, core_target::thread_name): Adjust to
6772 reference class fields instead of globals.
6773 * target.h (struct target_ops_deleter, target_ops_up): New.
6774
451953fa
PA
67752018-05-11 Pedro Alves <palves@redhat.com>
6776
6777 * corefile.c (core_file_command): Move to corelow.c.
6778 * corelow.c (the_core_target): Delete.
6779 (core_file_command): Moved from corefile.c. Check exec_bfd
6780 instead of the_core_target. Use target_detach instead of calling
6781 into the_core_target directly.
6782 (maybe_say_no_core_file_now): New.
6783 (core_target::detach): Use it.
6784 (_initialize_corelow): Remove references to the_core_target.
6785 * gdbcore.h (the_core_target): Delete.
6786
e540a5a2 67872018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 6788 Pedro Alves <palves@redhat.com>
e540a5a2
TT
6789
6790 * corefile.c (core_bfd): Remove.
6791 * gdbcore.h (core_bfd): Now a macro.
6792 * progspace.h (struct program_space) <cbfd>: New field.
6793
633cf254
TT
67942018-05-11 Tom Tromey <tom@tromey.com>
6795
6796 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
6797 gdb::def_vector.
6798
1a34f210
TT
67992018-05-10 Tom Tromey <tom@tromey.com>
6800
6801 * configure: Rebuild.
6802 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
6803
190852c8
JB
68042018-05-10 Joel Brobecker <brobecker@adacore.com>
6805
6806 PR server/23158:
6807 * regformats/regdat.sh: Adjust script, following the addition
6808 of the new expedite_regs parameter to init_target_desc.
6809
8727de56
OJ
68102018-05-10 Omair Javaid <omair.javaid@linaro.org>
6811
6812 PR gdb/23127
6813 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
6814 set_gdbarch_significant_addr_bit.
6815 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
6816 set_gdbarch_significant_addr_bit.
6817 * utils.c (address_significant): Update to sign extend addr.
6818
37d9e062
MF
68192018-05-09 Max Filippov <jcmvbkbc@gmail.com>
6820
6821 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
6822 (xtensa_linux_init_abi): Limit tdep->num_regs by
6823 tdep->num_nopriv_regs.
6824 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
6825 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
6826 not initialized.
6827
7402fbca
SM
68282018-05-08 Simon Marchi <simon.marchi@ericsson.com>
6829
6830 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
6831
8ee22052
AB
68322018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6833
6834 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
6835 (I387_MXCSR_INIT_VAL): New constant.
6836 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
6837 buffer if it was supplied by the inferior.
6838 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
6839 (i387_xsave_get_clear_bv): New function.
6840 (i387_supply_xsave): Only read x87 control registers from the
6841 xsave buffer if the feature is enabled, and the state will have
6842 been written, otherwise, provide a suitable default.
6843 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
6844 including x87 control registers. Update control registers if they
6845 have changed from the default value, and mark features as enabled
6846 as required.
6847 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
6848
968ae51b
UW
68492018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6850
6851 * spu-tdep.c (info_spu_event_command): Fix output formatting.
6852
aff689d3
TT
68532018-05-07 Tom Tromey <tom@tromey.com>
6854
6855 * configure: Rebuild.
6856 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
6857
ce887586
TT
68582018-05-07 Tom Tromey <tom@tromey.com>
6859
6860 PR tdep/20362:
6861 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
6862 bit. Use correct value for VDIV.
6863
85e26832
TT
68642018-05-04 Tom Tromey <tom@tromey.com>
6865
6866 * configure: Rebuild.
6867 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
6868
449b1ac7
TT
68692018-05-04 Tom Tromey <tom@tromey.com>
6870
6871 * linux-record.c (record_linux_system_call) <case
6872 RECORD_SYS_RECVFROM>: Add "break".
6873
15c9ffd6
TT
68742018-05-04 Tom Tromey <tom@tromey.com>
6875
6876 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
6877 Add missing "break".
6878 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
6879 Add missing "break".
6880
e3829d13
TT
68812018-05-04 Tom Tromey <tom@tromey.com>
6882
6883 * rs6000-tdep.c (ppc_process_record_op4)
6884 (ppc_process_record_op63): Add fall-through comment.
6885
da0e1563
TT
68862018-05-04 Tom Tromey <tom@tromey.com>
6887
6888 * i386-tdep.c (i386_process_record): Add fall-through comment.
6889
0019cd49
TT
68902018-05-04 Tom Tromey <tom@tromey.com>
6891
6892 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
6893 comment.
6894
565e0eda
TT
68952018-05-04 Tom Tromey <tom@tromey.com>
6896
6897 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
6898 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
6899 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
6900 comment.
6901 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
6902 comment.
6903 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
6904 comment.
6905
621846f4
TT
69062018-05-04 Tom Tromey <tom@tromey.com>
6907
6908 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
6909
86a73007
TT
69102018-05-04 Tom Tromey <tom@tromey.com>
6911
6912 * s390-tdep.c (s390_process_record): Fix fall-through comments.
6913 * xcoffread.c (scan_xcoff_symtab): Move comment later.
6914 * symfile.c (section_is_mapped): Fix fall-through comment.
6915 * stabsread.c (define_symbol, read_member_functions): Fix
6916 fall-through comment.
6917 * s390-linux-tdep.c (s390_process_record): Fix fall-through
6918 comment.
6919 * remote.c (remote_wait_as): Fix fall-through comment.
6920 * p-exp.y (yylex): Fix fall-through comment.
6921 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
6922 comment.
6923 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
6924 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
6925 * jv-exp.y (yylex): Fix fall-through comment.
6926 * go-exp.y (lex_one_token): Fix fall-through comment.
6927 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
6928 fall-through comment.
6929 * f-exp.y (yylex): Fix fall-through comment.
6930 * dwarf2read.c (process_die): Fix fall-through comments.
6931 * dbxread.c (process_one_symbol): Fix fall-through comment.
6932 * d-exp.y (lex_one_token): Fix fall-through comment.
6933 * cp-name-parser.y (yylex): Fix fall-through comment.
6934 * coffread.c (coff_symtab_read): Fix fall-through comment.
6935 * c-exp.y (lex_one_token): Fix fall-through comment.
6936 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
6937 comment.
6938 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
6939 comment.
6940
56bcdbea
TT
69412018-05-04 Tom Tromey <tom@tromey.com>
6942
6943 PR python/22730:
6944 * NEWS: Mention gdb.execute change.
6945 * gdbcmd.h (execute_control_command): Don't declare.
6946 * python/python.c (execute_gdb_command): Use read_command_lines_1,
6947 execute_control_commands, execute_control_commands_to_string.
6948 * cli/cli-script.h (execute_control_commands)
6949 (execute_control_commands_to_string): Declare.
6950 (execute_control_command): Add from_tty parameter.
6951 * cli/cli-script.c (execute_control_commands)
6952 (execute_control_commands_to_string): New functions.
6953 (execute_user_command): Use execute_control_commands.
6954 (execute_control_command_1): Add "from_tty" parameter. Update.
6955 (execute_control_command): Likewise.
6956
a913fffb
TT
69572018-05-04 Tom Tromey <tom@tromey.com>
6958
6959 PR python/22731:
6960 * NEWS: Mention that breakpoint commands are writable.
6961 * python/py-breakpoint.c (bppy_set_commands): New function.
6962 (breakpoint_object_getset) <"commands">: Use it.
6963
60b3cef2
TT
69642018-05-04 Tom Tromey <tom@tromey.com>
6965
6966 * tracepoint.c (actions_command): Update.
6967 * mi/mi-cmd-break.c (mi_command_line_array)
6968 (mi_command_line_array_cnt, mi_command_line_array_ptr)
6969 (mi_read_next_line): Remove.
6970 (mi_cmd_break_commands): Update.
6971 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
6972 function_view.
6973 * cli/cli-script.c (get_command_line): Update.
6974 (process_next_line): Use function_view. Constify.
6975 (recurse_read_control_structure, read_command_lines)
6976 (read_command_lines_1): Change argument types to function_view.
6977 (do_define_command, document_command): Update.
6978 * breakpoint.h (check_tracepoint_command): Don't declare.
6979 * breakpoint.c (check_tracepoint_command): Remove.
6980 (commands_command_1, create_tracepoint_from_upload): Update.
6981
7a2c85f2
TT
69822018-05-04 Tom Tromey <tom@tromey.com>
6983
6984 PR gdb/11750:
6985 * cli/cli-script.h (enum command_control_type) <define_control>:
6986 New constant.
6987 * cli/cli-script.c (multi_line_command_p): Handle define_control.
6988 (build_command_line, execute_control_command_1)
6989 (process_next_line): Likewise.
6990 (do_define_command): New function, extracted from define_command.
6991 (define_command): Use it.
6992
295dc222
TT
69932018-05-04 Tom Tromey <tom@tromey.com>
6994
6995 * tracepoint.c (actions_command): Update.
6996 * cli/cli-script.h (read_command_lines): Update.
6997 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
6998 (MAX_TMPBUF): Remove define.
6999 (define_command): Use string_printf.
7000 (document_command): Likewise.
7001 * breakpoint.c (commands_command_1): Update.
7002
1263a9d5
TT
70032018-05-04 Tom Tromey <tom@tromey.com>
7004
7005 * top.c (execute_command): Update.
7006 * cli/cli-script.h (print_command_lines): Now varargs.
7007 * cli/cli-script.c (print_command_lines): Now varargs.
7008 (execute_control_command_1) <case while_control, case if_control>:
7009 Update.
7010
12973681
TT
70112018-05-04 Tom Tromey <tom@tromey.com>
7012
7013 * tracepoint.c (all_tracepoint_actions): Rename from
7014 all_tracepoint_actions_and_cleanup. Change return type.
7015 (actions_command, encode_actions_1, encode_actions)
7016 (trace_dump_actions, tdump_command): Update.
7017 * remote.c (remote_download_command_source): Update.
7018 * python/python.c (gdbpy_eval_from_control_command)
7019 (python_command, python_interactive_command): Update.
7020 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7021 * guile/guile.c (guile_command)
7022 (gdbscm_eval_from_control_command, guile_command): Update.
7023 * compile/compile.c (compile_code_command)
7024 (compile_print_command, compile_to_object): Update.
7025 * cli/cli-script.h (struct command_lines_deleter): New.
7026 (counted_command_line): New typedef.
7027 (struct command_line): Add constructor, destructor.
7028 <body_list>: Remove.
7029 <body_list_0, body_list_1>: New members.
7030 (command_line_up): Remove typedef.
7031 (read_command_lines, read_command_lines_1, get_command_line):
7032 Update.
7033 (copy_command_lines): Don't declare.
7034 * cli/cli-script.c (build_command_line): Use "new".
7035 (get_command_line): Return counted_command_line.
7036 (print_command_lines, execute_user_command)
7037 (execute_control_command_1, while_command, if_command): Update.
7038 (realloc_body_list): Remove.
7039 (process_next_line, recurse_read_control_structure): Update.
7040 (read_command_lines, read_command_lines_1): Return counted_command_line.
7041 (free_command_lines): Use "delete".
7042 (copy_command_lines): Remove.
7043 (define_command, document_command, show_user_1): Update.
7044 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7045 a counted_command_line.
7046 * breakpoint.h (counted_command_line): Remove typedef.
7047 (breakpoint_set_commands): Update.
7048 * breakpoint.c (check_no_tracepoint_commands)
7049 (validate_commands_for_breakpoint): Update.
7050 (breakpoint_set_commands): Change commands to be a
7051 counted_command_line.
7052 (commands_command_1, update_dprintf_command_list)
7053 (create_tracepoint_from_upload): Update.
7054
e2fc72e2
TT
70552018-05-04 Tom Tromey <tom@tromey.com>
7056
7057 * cli/cli-decode.h (cmd_list_element): New constructor.
7058 (~cmd_list_element): New destructor.
7059 (struct cmd_list_element): Add initializers.
7060 * cli/cli-decode.c (do_add_cmd): Use "new".
7061 (delete_cmd): Use "delete".
7062
a3b60e45
JK
70632018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7064 Pedro Alves <palves@redhat.com>
7065
7066 PR breakpoints/19806 and support for PR external/20207.
7067 * NEWS: Mention Aarch64 watchpoint improvements.
7068 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7069 watchpoints and PR external/20207 watchpoints.
7070 * nat/aarch64-linux-hw-point.c
7071 (kernel_supports_any_contiguous_range): New.
7072 (aarch64_watchpoint_offset): New.
7073 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7074 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7075 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7076 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7077 next_addr_orig_p. Support PR external/20207 watchpoints.
7078 (aarch64_downgrade_regs): New.
7079 (aarch64_dr_state_insert_one_point): New parameters offset and
7080 addr_orig.
7081 (aarch64_dr_state_remove_one_point): Likewise.
7082 (aarch64_handle_breakpoint): Update caller.
7083 (aarch64_handle_aligned_watchpoint): Likewise.
7084 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7085 aligned_offset.
7086 (aarch64_linux_set_debug_regs): Remove const from state. Call
7087 aarch64_downgrade_regs.
7088 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7089 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7090 (DR_CONTROL_MASK): ... this.
7091 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7092 (unsigned int aarch64_watchpoint_offset): New prototype.
7093 (aarch64_linux_set_debug_regs): Remove const from state.
7094 * utils.c (align_up, align_down): Move to ...
7095 * common/common-utils.c (align_up, align_down): ... here.
7096 * utils.h (align_up, align_down): Move to ...
7097 * common/common-utils.h (align_up, align_down): ... here.
7098
05bc7456
JB
70992018-05-04 Joel Brobecker <brobecker@adacore.com>
7100
7101 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7102 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7103 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7104 Re-implement to match the ABI as summarized in GCC's
7105 gcc/config/sparc/sparc.c. All callers updated.
7106 (sparc32_store_arguments): Remove assertion.
7107
2f433492
TT
71082018-05-04 Tom Tromey <tom@tromey.com>
7109
7110 * printcmd.c: Don't include tui.h.
7111 (decode_format): Use skip_spaces.
7112
9be2ae8f
TT
71132018-05-04 Tom Tromey <tom@tromey.com>
7114
7115 PR gdb/22619:
7116 * printcmd.c (last_count): New global.
7117 (x_command): Use saved count when repeating.
7118
f0b3976b
TT
71192018-05-04 Tom Tromey <tom@tromey.com>
7120
7121 * nto-procfs.c (do_closedir_cleanup): Remove.
7122 (procfs_pidlist): Use gdb_dir_up.
7123 * procfs.c (do_closedir_cleanup): Remove.
7124 (proc_update_threads): Use gdb_dir_up.
7125 * common/filestuff.h (struct gdb_dir_deleter): New.
7126 (gdb_dir_up): New typedef.
7127
862d101a
TT
71282018-05-04 Tom Tromey <tom@tromey.com>
7129
7130 * ada-lang.c (print_mention_exception): Use std::string.
7131
cb7de75e
TT
71322018-05-04 Tom Tromey <tom@tromey.com>
7133
7134 * ada-lang.c (create_excep_cond_exprs): Update.
7135 (ada_exception_catchpoint_cond_string): Use std::string.
7136
49d83361
TT
71372018-05-04 Tom Tromey <tom@tromey.com>
7138
7139 * ada-lang.c (xget_renaming_scope): Return std::string.
7140 (old_renaming_is_invisible): Update.
7141
ade72a34
TT
71422018-05-04 Tom Tromey <tom@tromey.com>
7143
7144 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7145 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7146
2be4d7f0
UW
71472018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7148
7149 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7150
69b6ecb0
TT
71512018-05-04 Tom Tromey <tom@tromey.com>
7152
7153 * remote.c (remote_query_supported_append): Change type.
7154 (remote_check_symbols): Update.
7155
bf27f0e2
PP
71562018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7157
7158 PR gdb/11420
7159 * configure.ac: Prepend libpython.
7160 * python/python-config.py: Likewise.
7161 * configure: Regenerate.
7162
4ea17de8
SM
71632018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7164
7165 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7166
bd732259
PA
71672018-05-03 Pedro Alves <palves@redhat.com>
7168
7169 * s390-linux-nat.c
7170 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7171 override. Write 'true' instead of '1'.
7172 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7173 declaration.
7174
d9f719f1
PA
71752018-05-02 Pedro Alves <palves@redhat.com>
7176
7177 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7178 add_inf_child_target.
7179 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7180 add_inf_child_target.
7181 * aix-thread.c (aix_thread_target_info): New.
7182 (aix_thread_target) <shortname, longname, doc>: Delete.
7183 <info>: New.
7184 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7185 add_inf_child_target.
7186 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7187 add_inf_child_target.
7188 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7189 add_inf_child_target.
7190 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7191 add_inf_child_target.
7192 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7193 add_inf_child_target.
7194 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7195 add_inf_child_target.
7196 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7197 add_inf_child_target.
7198 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7199 add_inf_child_target.
7200 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7201 add_inf_child_target.
7202 * bfd-target.c (target_bfd_target_info): New.
7203 (target_bfd) <shortname, longname, doc>: Delete.
7204 <info>: New.
7205 * bsd-kvm.c (bsd_kvm_target_info): New.
7206 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7207 <info>: New.
7208 (bsd_kvm_target::open): Rename to ...
7209 (bsd_kvm_target_open): ... this. Adjust.
7210 * bsd-uthread.c (bsd_uthread_target_info): New.
7211 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7212 <info>: New.
7213 * corefile.c (core_file_command): Adjust.
7214 * corelow.c (core_target_info): New.
7215 (core_target) <shortname, longname, doc>: Delete.
7216 <info>: New.
7217 (core_target::open): Rename to ...
7218 (core_target_open): ... this. Adjust.
7219 * ctf.c (ctf_target_info): New.
7220 (ctf_target) <shortname, longname, doc>: Delete.
7221 <info>: New.
7222 (ctf_target::open): Rename to ...
7223 (ctf_target_open): ... this.
7224 (_initialize_ctf): Adjust.
7225 * exec.c (exec_target_info): New.
7226 (exec_target) <shortname, longname, doc>: Delete.
7227 <info>: New.
7228 (exec_target::open): Rename to ...
7229 (exec_target_open): ... this.
7230 * gdbcore.h (core_target_open): Declare.
7231 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7232 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7233 add_inf_child_target.
7234 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7235 add_inf_child_target.
7236 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7237 add_inf_child_target.
7238 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7239 add_inf_child_target.
7240 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7241 add_inf_child_target.
7242 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7243 add_inf_child_target.
7244 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7245 add_inf_child_target.
7246 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7247 add_inf_child_target.
7248 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7249 add_inf_child_target.
7250 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7251 add_inf_child_target.
7252 * inf-child.c (inf_child_target_info): New.
7253 (inf_child_target::info): New.
7254 (inf_child_open_target): Remove 'target' parameter. Use
7255 get_native_target instead.
7256 (inf_child_target::open): Delete.
7257 (add_inf_child_target): New.
7258 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7259 Delete.
7260 <info>: New.
7261 (add_inf_child_target): Declare.
7262 (inf_child_open_target): Declare.
7263 * linux-thread-db.c (thread_db_target_info): New.
7264 (thread_db_target) <shortname, longname, doc>: Delete.
7265 <info>: New.
7266 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7267 add_inf_child_target.
7268 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7269 add_inf_child_target.
7270 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7271 add_inf_child_target.
7272 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7273 add_inf_child_target.
7274 * make-target-delegates (print_class): Adjust.
7275 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7276 add_inf_child_target.
7277 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7278 add_inf_child_target.
7279 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7280 add_inf_child_target.
7281 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7282 add_inf_child_target.
7283 * nto-procfs.c (nto_native_target_info): New.
7284 (nto_procfs_target_native) <shortname, longname, doc>:
7285 Delete.
7286 <info>: New.
7287 (nto_procfs_target_info): New.
7288 (nto_procfs_target_procfs) <shortname, longname, doc>:
7289 Delete.
7290 <info>: New.
7291 (init_procfs_targets): Adjust.
7292 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7293 add_inf_child_target.
7294 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7295 add_inf_child_target.
7296 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7297 add_inf_child_target.
7298 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7299 add_inf_child_target.
7300 * ravenscar-thread.c (ravenscar_target_info): New.
7301 (ravenscar_thread_target) <shortname, longname, doc>:
7302 Delete.
7303 <info>: New.
7304 * record-btrace.c (record_btrace_target_info):
7305 (record_btrace_target) <shortname, longname, doc>: Delete.
7306 <info>: New.
7307 (record_btrace_target::open): Rename to ...
7308 (record_btrace_target_open): ... this. Adjust.
7309 * record-full.c (record_longname, record_doc): New.
7310 (record_full_base_target) <shortname, longname, doc>: Delete.
7311 <info>: New.
7312 (record_full_target_info): New.
7313 (record_full_target): <shortname>: Delete.
7314 <info>: New.
7315 (record_full_core_open_1, record_full_open_1): Update comments.
7316 (record_full_base_target::open): Rename to ...
7317 (record_full_open): ... this.
7318 (cmd_record_full_restore): Update.
7319 (_initialize_record_full): Update.
7320 * remote-sim.c (remote_sim_target_info): New.
7321 (gdbsim_target) <shortname, longname, doc>: Delete.
7322 <info>: New.
7323 (gdbsim_target::open): Rename to ...
7324 (gdbsim_target_open): ... this.
7325 (_initialize_remote_sim): Adjust.
7326 * remote.c (remote_doc): New.
7327 (remote_target_info): New.
7328 (remote_target) <shortname, longname, doc>: Delete.
7329 <info>: New.
7330 (extended_remote_target_info): New.
7331 (extended_remote_target) <shortname, longname, doc>: Delete.
7332 <info>: New.
7333 (remote_target::open_1): Make static. Adjust.
7334 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7335 * s390-linux-nat.c (_initialize_s390_nat): Use
7336 add_inf_child_target.
7337 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7338 add_inf_child_target.
7339 * sol-thread.c (thread_db_target_info): New.
7340 (sol_thread_target) <shortname, longname, doc>: Delete.
7341 <info>: New.
7342 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7343 add_inf_child_target.
7344 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7345 add_inf_child_target.
7346 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7347 add_inf_child_target.
7348 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7349 add_inf_child_target.
7350 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7351 add_inf_child_target.
7352 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7353 add_inf_child_target.
7354 * spu-linux-nat.c (_initialize_spu_nat): Use
7355 add_inf_child_target.
7356 * spu-multiarch.c (spu_multiarch_target_info): New.
7357 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7358 <info>: New.
7359 * target-delegates.c: Regenerate.
7360 * target.c: Include <unordered_map>.
7361 (target_ops_p): Delete.
7362 (DEF_VEC_P(target_ops_p)): Delete.
7363 (target_factories): New.
7364 (test_target_info): New.
7365 (test_target_ops::info): New.
7366 (open_target): Adjust to use target_factories.
7367 (add_target_with_completer): Rename to ...
7368 (add_target): ... this. Change prototype. Register target_info
7369 and open callback in target_factories. Register target_info in
7370 command context instead of target_ops.
7371 (add_target): Delete old implementation.
7372 (add_deprecated_target_alias): Change prototype. Adjust.
7373 (the_native_target): New.
7374 (set_native_target, get_native_target): New.
7375 (find_default_run_target): Use the_native_target.
7376 (find_attach_target, find_run_target): Simplify.
7377 (target_ops::open): Delete.
7378 (dummy_target_info): New.
7379 (dummy_target::shortname, dummy_target::longname)
7380 (dummy_target::doc): Delete.
7381 (dummy_target::info): New.
7382 (debug_target::shortname, debug_target::longname)
7383 (debug_target::doc): Delete.
7384 (debug_target::info): New.
7385 * target.h (struct target_info): New.
7386 (target_ops::~target_ops): Add comment.
7387 (target_ops::info): New.
7388 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7389 longer virtual. Implement in terms of target_info.
7390 (set_native_target, get_native_target): Declare.
7391 (target_open_ftype): New.
7392 (add_target, add_target_with_completer)
7393 (add_deprecated_target_alias): Change prototype.
7394 (test_target) <shortname, longname, doc>: Delete.
7395 <info>: New.
7396 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7397 add_inf_child_target.
7398 * tracefile-tfile.c (tfile_target_info): New.
7399 (tfile_target) <shortname, longname, doc>: Delete.
7400 <info>: New.
7401 (tfile_target::open): Rename to ...
7402 (tfile_target_open): ... this.
7403 (_initialize_tracefile_tfile): Adjust.
7404 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7405 add_inf_child_target.
7406 * windows-nat.c (_initialize_windows_nat): Use
7407 add_inf_child_target.
7408 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7409 add_inf_child_target.
7410
135340af
PA
74112018-05-02 Pedro Alves <palves@redhat.com>
7412
7413 * linux-nat.h (linux_nat_target) <low_new_thread,
7414 low_delete_thread, low_new_fork, low_forget_process,
7415 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7416 New virtual methods.
7417 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7418 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7419 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7420 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7421 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7422 Delete.
7423 * linux-fork.c (delete_fork): Adjust to call low method.
7424 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7425 (linux_nat_new_fork, linux_nat_forget_process_hook)
7426 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7427 (linux_nat_status_is_event):
7428 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7429 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7430 to call low method.
7431 (sigtrap_is_event): Rename to ...
7432 (linux_nat_target::low_status_is_event): ... this.
7433 (linux_nat_set_status_is_event): Delete.
7434 (save_stop_reason, linux_nat_wait_1)
7435 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7436 low methods.
7437 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7438 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7439 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7440 (linux_nat_set_prepare_to_resume): Delete.
7441 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7442 low virtual methods.
7443 * amd64-linux-nat.c: Likewise.
7444 * arm-linux-nat.c: Likewise.
7445 * i386-linux-nat.c: Likewise.
7446 * ia64-linux-nat.c: Likewise.
7447 * mips-linux-nat.c: Likewise.
7448 * ppc-linux-nat.c: Likewise.
7449 * s390-linux-nat.c: Likewise.
7450 * sparc64-linux-nat.c: Likewise.
7451 * x86-linux-nat.c: Likewise.
7452 * x86-linux-nat.h: Include "nat/x86-linux.h".
7453 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7454 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7455 Override methods.
7456
57810aa7
PA
74572018-05-02 Pedro Alves <palves@redhat.com>
7458
7459 * target.h (target_ops)
7460 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7461 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7462 stopped_by_watchpoint, have_continuable_watchpoint,
7463 stopped_data_address, watchpoint_addr_within_range,
7464 can_accel_watchpoint_condition, can_run, thread_alive,
7465 has_all_memory, has_memory, has_stack, has_registers,
7466 has_execution, can_async_p, is_async_p, supports_non_stop,
7467 always_non_stop_p, can_execute_reverse, supports_multi_process,
7468 supports_enable_disable_tracepoint,
7469 supports_disable_randomization, supports_string_tracing,
7470 supports_evaluation_of_breakpoint_conditions,
7471 can_run_breakpoint_commands, filesystem_is_local,
7472 can_download_tracepoint, get_trace_state_variable_value,
7473 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7474 record_is_replaying, record_will_replay,
7475 augmented_libraries_svr4_read>: Adjust to return bool.
7476 * aarch64-linux-nat.c: All implementations adjusted.
7477 * aix-thread.c: All implementations adjusted.
7478 * arm-linux-nat.c: All implementations adjusted.
7479 * breakpoint.c: All implementations adjusted.
7480 * bsd-kvm.c: All implementations adjusted.
7481 * bsd-uthread.c: All implementations adjusted.
7482 * corelow.c: All implementations adjusted.
7483 * ctf.c: All implementations adjusted.
7484 * darwin-nat.c: All implementations adjusted.
7485 * darwin-nat.h: All implementations adjusted.
7486 * exec.c: All implementations adjusted.
7487 * fbsd-nat.c: All implementations adjusted.
7488 * fbsd-nat.h: All implementations adjusted.
7489 * gnu-nat.c: All implementations adjusted.
7490 * gnu-nat.h: All implementations adjusted.
7491 * go32-nat.c: All implementations adjusted.
7492 * ia64-linux-nat.c: All implementations adjusted.
7493 * inf-child.c: All implementations adjusted.
7494 * inf-child.h: All implementations adjusted.
7495 * inf-ptrace.c: All implementations adjusted.
7496 * inf-ptrace.h: All implementations adjusted.
7497 * linux-nat.c: All implementations adjusted.
7498 * linux-nat.h: All implementations adjusted.
7499 * mips-linux-nat.c: All implementations adjusted.
7500 * nto-procfs.c: All implementations adjusted.
7501 * ppc-linux-nat.c: All implementations adjusted.
7502 * procfs.c: All implementations adjusted.
7503 * ravenscar-thread.c: All implementations adjusted.
7504 * record-btrace.c: All implementations adjusted.
7505 * record-full.c: All implementations adjusted.
7506 * remote-sim.c: All implementations adjusted.
7507 * remote.c: All implementations adjusted.
7508 * s390-linux-nat.c: All implementations adjusted.
7509 * sol-thread.c: All implementations adjusted.
7510 * spu-multiarch.c: All implementations adjusted.
7511 * target-delegates.c: All implementations adjusted.
7512 * target.c: All implementations adjusted.
7513 * target.h: All implementations adjusted.
7514 * tracefile-tfile.c: All implementations adjusted.
7515 * tracefile.c: All implementations adjusted.
7516 * tracefile.h: All implementations adjusted.
7517 * windows-nat.c: All implementations adjusted.
7518 * x86-linux-nat.h: All implementations adjusted.
7519 * x86-nat.h: All implementations adjusted.
7520
ad6a4e2d
PA
75212018-05-02 Pedro Alves <palves@redhat.com>
7522
7523 * make-target-delegates (scan_target_h): Don't trim lines here.
7524 Replace sequences of tabs and/or whitespace with a single
7525 whitespace.
7526 (top level, parsing methods): Trim each line before processing it
7527 here.
7528
f6ac5f3d
PA
75292018-05-02 Pedro Alves <palves@redhat.com>
7530 John Baldwin <jhb@freebsd.org>
7531
7532 * target.h (enum strata) <debug_stratum>: New.
7533 (struct target_ops) <all delegation methods>: Replace by C++
7534 virtual methods, and drop "to_" prefix. All references updated
7535 throughout.
7536 <to_shortname, to_longname, to_doc, to_data,
7537 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
7538 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
7539 virtual methods. All references updated throughout.
7540 <can_attach, supports_terminal_ours, can_create_inferior,
7541 get_thread_control_capabilities, attach_no_wait>: New
7542 virtual methods.
7543 <insert_breakpoint, remove_breakpoint>: Now
7544 TARGET_DEFAULT_NORETURN methods.
7545 <info_proc>: Now returns bool.
7546 <to_magic>: Delete.
7547 (OPS_MAGIC): Delete.
7548 (current_target): Delete. All references replaced by references
7549 to ...
7550 (target_stack): ... this. New.
7551 (target_shortname, target_longname): Adjust.
7552 (target_can_run): Now a function declaration.
7553 (default_child_has_all_memory, default_child_has_memory)
7554 (default_child_has_stack, default_child_has_registers)
7555 (default_child_has_execution): Remove target_ops parameter.
7556 (complete_target_initialization): Delete.
7557 (memory_breakpoint_target): New template class.
7558 (test_target_ops): Refactor as a C++ class with virtual methods.
7559 * make-target-delegates (NAME_PART): Tighten.
7560 (POINTER_PART, CP_SYMBOL): New.
7561 (SIMPLE_RETURN_PART): Reimplement.
7562 (VEC_RETURN_PART): Expect less.
7563 (RETURN_PART, VIRTUAL_PART): New.
7564 (METHOD): Adjust to C++ virtual methods.
7565 (scan_target_h): Remove reference to C99.
7566 (dname): Output "target_ops::" prefix.
7567 (write_function_header): Adjust to output a C++ class method.
7568 (write_declaration): New.
7569 (write_delegator): Adjust to output a C++ class method.
7570 (tdname): Output "dummy_target::" prefix.
7571 (write_tdefault, write_debugmethod): Adjust to output a C++ class
7572 method.
7573 (tdefault_names, debug_names): Delete.
7574 (return_types, tdefaults, styles, argtypes_array): New.
7575 (top level): All methods are delegators.
7576 (print_class): New.
7577 (top level): Print dummy_target and debug_target classes.
7578 * target-delegates.c: Regenerate.
7579 * target-debug.h (target_debug_print_enum_info_proc_what)
7580 (target_debug_print_thread_control_capabilities)
7581 (target_debug_print_thread_info_p): New.
7582 * target.c (dummy_target): Delete.
7583 (the_dummy_target, the_debug_target): New.
7584 (target_stack): Now extern.
7585 (set_targetdebug): Push/unpush debug target.
7586 (default_child_has_all_memory, default_child_has_memory)
7587 (default_child_has_stack, default_child_has_registers)
7588 (default_child_has_execution): Remove target_ops parameter.
7589 (complete_target_initialization): Delete.
7590 (add_target_with_completer): No longer call
7591 complete_target_initialization.
7592 (target_supports_terminal_ours): Use regular delegation.
7593 (update_current_target): Delete.
7594 (push_target): No longer check magic number. Don't call
7595 update_current_target.
7596 (unpush_target): Don't call update_current_target.
7597 (target_is_pushed): No longer check magic number.
7598 (target_require_runnable): Skip for all stratums over
7599 process_stratum.
7600 (target_ops::info_proc): New.
7601 (target_info_proc): Use find_target_at and
7602 find_default_run_target.
7603 (target_supports_disable_randomization): Use regular delegation.
7604 (target_get_osdata): Use find_target_at.
7605 (target_ops::open, target_ops::close, target_ops::can_attach)
7606 (target_ops::attach, target_ops::can_create_inferior)
7607 (target_ops::create_inferior, target_ops::can_run)
7608 (target_can_run): New.
7609 (default_fileio_target): Use regular delegation.
7610 (target_ops::fileio_open, target_ops::fileio_pwrite)
7611 (target_ops::fileio_pread, target_ops::fileio_fstat)
7612 (target_ops::fileio_close, target_ops::fileio_unlink)
7613 (target_ops::fileio_readlink): New.
7614 (target_fileio_open_1, target_fileio_unlink)
7615 (target_fileio_readlink): Always call the target method. Handle
7616 FILEIO_ENOSYS.
7617 (return_zero, return_zero_has_execution): Delete.
7618 (init_dummy_target): Delete.
7619 (dummy_target::dummy_target, dummy_target::shortname)
7620 (dummy_target::longname, dummy_target::doc)
7621 (debug_target::debug_target, debug_target::shortname)
7622 (debug_target::longname, debug_target::doc): New.
7623 (target_supports_delete_record): Use regular delegation.
7624 (setup_target_debug): Delete.
7625 (maintenance_print_target_stack): Skip debug_stratum.
7626 (initialize_targets): Instantiate the_dummy_target and
7627 the_debug_target.
7628 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
7629 use target_stack.
7630 (target_auxv_search, fprint_target_auxv): Adjust.
7631 (info_auxv_command): Adjust to use target_stack.
7632 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
7633 * exceptions.c (print_flush): Handle a NULL target_stack.
7634 * regcache.c (target_ops_no_register): Refactor as class with
7635 virtual methods.
7636
7637 * exec.c (exec_target): New class.
7638 (exec_ops): Now an exec_target.
7639 (exec_open, exec_close_1, exec_get_section_table)
7640 (exec_xfer_partial, exec_files_info, exec_has_memory)
7641 (exec_make_note_section): Refactor as exec_target methods.
7642 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
7643 Delete.
7644 (exec_target::find_memory_regions): New.
7645 (_initialize_exec): Don't call init_exec_ops.
7646 * gdbcore.h (exec_file_clear): Delete.
7647
7648 * corefile.c (core_target): Delete.
7649 (core_file_command): Adjust.
7650 * corelow.c (core_target): New class.
7651 (the_core_target): New.
7652 (core_close): Remove target_ops parameter.
7653 (core_close_cleanup): Adjust.
7654 (core_target::close): New.
7655 (core_open, core_detach, get_core_registers, core_files_info)
7656 (core_xfer_partial, core_thread_alive, core_read_description)
7657 (core_pid_to_str, core_thread_name, core_has_memory)
7658 (core_has_stack, core_has_registers, core_info_proc): Rework as
7659 core_target methods.
7660 (ignore, core_remove_breakpoint, init_core_ops): Delete.
7661 (_initialize_corelow): Initialize the_core_target.
7662 * gdbcore.h (core_target): Delete.
7663 (the_core_target): New.
7664
7665 * ctf.c: (ctf_target): New class.
7666 (ctf_ops): Now a ctf_target.
7667 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
7668 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
7669 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
7670 methods.
7671 (init_ctf_ops): Delete.
7672 (_initialize_ctf): Don't call it.
7673 * tracefile-tfile.c (tfile_target): New class.
7674 (tfile_ops): Now a tfile_target.
7675 (tfile_open, tfile_close, tfile_files_info)
7676 (tfile_get_tracepoint_status, tfile_trace_find)
7677 (tfile_fetch_registers, tfile_xfer_partial)
7678 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
7679 Refactor as tfile_target methods.
7680 (tfile_xfer_partial_features): Remove target_ops parameter.
7681 (init_tfile_ops): Delete.
7682 (_initialize_tracefile_tfile): Don't call it.
7683 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
7684 (tracefile_has_stack, tracefile_has_registers)
7685 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
7686 tracefile_target methods.
7687 (init_tracefile_ops): Delete.
7688 (tracefile_target::tracefile_target): New.
7689 * tracefile.h: Include "target.h".
7690 (tracefile_target): New class.
7691 (init_tracefile_ops): Delete.
7692
7693 * spu-multiarch.c (spu_multiarch_target): New class.
7694 (spu_ops): Now a spu_multiarch_target.
7695 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
7696 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
7697 (spu_search_memory, spu_mourn_inferior): Refactor as
7698 spu_multiarch_target methods.
7699 (init_spu_ops): Delete.
7700 (_initialize_spu_multiarch): Remove references to init_spu_ops,
7701 complete_target_initialization.
7702
7703 * ravenscar-thread.c (ravenscar_thread_target): New class.
7704 (ravenscar_ops): Now a ravenscar_thread_target.
7705 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
7706 (ravenscar_thread_alive, ravenscar_pid_to_str)
7707 (ravenscar_fetch_registers, ravenscar_store_registers)
7708 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
7709 (ravenscar_stopped_by_hw_breakpoint)
7710 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
7711 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
7712 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
7713 methods.
7714 (init_ravenscar_thread_ops): Delete.
7715 (_initialize_ravenscar): Remove references to
7716 init_ravenscar_thread_ops and complete_target_initialization.
7717
7718 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
7719 (bsd_uthread_target): New class.
7720 (bsd_uthread_ops): Now a bsd_uthread_target.
7721 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
7722 (bsd_uthread_close, bsd_uthread_mourn_inferior)
7723 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
7724 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
7725 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
7726 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
7727 (bsd_uthread_target): Delete function.
7728 (_initialize_bsd_uthread): Remove reference to
7729 complete_target_initialization.
7730
7731 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
7732 (target_bfd): ... this new class.
7733 (target_bfd_xfer_partial, target_bfd_get_section_table)
7734 (target_bfd_close): Refactor as target_bfd methods.
7735 (target_bfd::~target_bfd): New.
7736 (target_bfd_reopen): Adjust.
7737 (target_bfd::close): New.
7738
7739 * record-btrace.c (record_btrace_target): New class.
7740 (record_btrace_ops): Now a record_btrace_target.
7741 (record_btrace_open, record_btrace_stop_recording)
7742 (record_btrace_disconnect, record_btrace_close)
7743 (record_btrace_async, record_btrace_info)
7744 (record_btrace_insn_history, record_btrace_insn_history_range)
7745 (record_btrace_insn_history_from, record_btrace_call_history)
7746 (record_btrace_call_history_range)
7747 (record_btrace_call_history_from, record_btrace_record_method)
7748 (record_btrace_is_replaying, record_btrace_will_replay)
7749 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7750 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
7751 (record_btrace_store_registers, record_btrace_prepare_to_store)
7752 (record_btrace_to_get_unwinder)
7753 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
7754 (record_btrace_commit_resume, record_btrace_wait)
7755 (record_btrace_stop, record_btrace_can_execute_reverse)
7756 (record_btrace_stopped_by_sw_breakpoint)
7757 (record_btrace_supports_stopped_by_sw_breakpoint)
7758 (record_btrace_stopped_by_hw_breakpoint)
7759 (record_btrace_supports_stopped_by_hw_breakpoint)
7760 (record_btrace_update_thread_list, record_btrace_thread_alive)
7761 (record_btrace_goto_begin, record_btrace_goto_end)
7762 (record_btrace_goto, record_btrace_stop_replaying_all)
7763 (record_btrace_execution_direction)
7764 (record_btrace_prepare_to_generate_core)
7765 (record_btrace_done_generating_core): Refactor as
7766 record_btrace_target methods.
7767 (init_record_btrace_ops): Delete.
7768 (_initialize_record_btrace): Remove reference to
7769 init_record_btrace_ops.
7770 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
7771 the execution_direction global.
7772 (record_full_base_target, record_full_target)
7773 (record_full_core_target): New classes.
7774 (record_full_ops): Now a record_full_target.
7775 (record_full_core_ops): Now a record_full_core_target.
7776 (record_full_target::detach, record_full_target::disconnect)
7777 (record_full_core_target::disconnect)
7778 (record_full_target::mourn_inferior, record_full_target::kill):
7779 New.
7780 (record_full_open, record_full_close, record_full_async): Refactor
7781 as methods of the record_full_base_target class.
7782 (record_full_resume, record_full_commit_resume): Refactor
7783 as methods of the record_full_target class.
7784 (record_full_wait, record_full_stopped_by_watchpoint)
7785 (record_full_stopped_data_address)
7786 (record_full_stopped_by_sw_breakpoint)
7787 (record_full_supports_stopped_by_sw_breakpoint)
7788 (record_full_stopped_by_hw_breakpoint)
7789 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
7790 methods of the record_full_base_target class.
7791 (record_full_store_registers, record_full_xfer_partial)
7792 (record_full_insert_breakpoint, record_full_remove_breakpoint):
7793 Refactor as methods of the record_full_target class.
7794 (record_full_can_execute_reverse, record_full_get_bookmark)
7795 (record_full_goto_bookmark, record_full_execution_direction)
7796 (record_full_record_method, record_full_info, record_full_delete)
7797 (record_full_is_replaying, record_full_will_replay)
7798 (record_full_goto_begin, record_full_goto_end, record_full_goto)
7799 (record_full_stop_replaying): Refactor as methods of the
7800 record_full_base_target class.
7801 (record_full_core_resume, record_full_core_kill)
7802 (record_full_core_fetch_registers)
7803 (record_full_core_prepare_to_store)
7804 (record_full_core_store_registers, record_full_core_xfer_partial)
7805 (record_full_core_insert_breakpoint)
7806 (record_full_core_remove_breakpoint)
7807 (record_full_core_has_execution): Refactor
7808 as methods of the record_full_core_target class.
7809 (record_full_base_target::supports_delete_record): New.
7810 (init_record_full_ops): Delete.
7811 (init_record_full_core_ops): Delete.
7812 (record_full_save): Refactor as method of the
7813 record_full_base_target class.
7814 (_initialize_record_full): Remove references to
7815 init_record_full_ops and init_record_full_core_ops.
7816
7817 * remote.c (remote_target, extended_remote_target): New classes.
7818 (remote_ops): Now a remote_target.
7819 (extended_remote_ops): Now an extended_remote_target.
7820 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
7821 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
7822 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
7823 (remote_pass_signals, remote_set_syscall_catchpoint)
7824 (remote_program_signals, )
7825 (remote_thread_always_alive): Remove target_ops parameter.
7826 (remote_thread_alive, remote_thread_name)
7827 (remote_update_thread_list, remote_threads_extra_info)
7828 (remote_static_tracepoint_marker_at)
7829 (remote_static_tracepoint_markers_by_strid)
7830 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
7831 (remote_open): Refactor as methods of remote_target.
7832 (extended_remote_open, extended_remote_detach)
7833 (extended_remote_attach, extended_remote_post_attach):
7834 (extended_remote_supports_disable_randomization)
7835 (extended_remote_create_inferior): : Refactor as method of
7836 extended_remote_target.
7837 (remote_set_permissions, remote_open_1, remote_detach)
7838 (remote_follow_fork, remote_follow_exec, remote_disconnect)
7839 (remote_resume, remote_commit_resume, remote_stop)
7840 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
7841 (remote_terminal_ours, remote_wait, remote_fetch_registers)
7842 (remote_prepare_to_store, remote_store_registers)
7843 (remote_flash_erase, remote_flash_done, remote_files_info)
7844 (remote_kill, remote_mourn, remote_insert_breakpoint)
7845 (remote_remove_breakpoint, remote_insert_watchpoint)
7846 (remote_watchpoint_addr_within_range)
7847 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
7848 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
7849 (remote_supports_stopped_by_sw_breakpoint)
7850 (remote_stopped_by_hw_breakpoint)
7851 (remote_supports_stopped_by_hw_breakpoint)
7852 (remote_stopped_by_watchpoint, remote_stopped_data_address)
7853 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
7854 (remote_verify_memory): Refactor as methods of remote_target.
7855 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
7856 parameter.
7857 (remote_xfer_partial, remote_get_memory_xfer_limit)
7858 (remote_search_memory, remote_rcmd, remote_memory_map)
7859 (remote_pid_to_str, remote_get_thread_local_address)
7860 (remote_get_tib_address, remote_read_description): Refactor as
7861 methods of remote_target.
7862 (remote_target::fileio_open, remote_target::fileio_pwrite)
7863 (remote_target::fileio_pread, remote_target::fileio_close): New.
7864 (remote_hostio_readlink, remote_hostio_fstat)
7865 (remote_filesystem_is_local, remote_can_execute_reverse)
7866 (remote_supports_non_stop, remote_supports_disable_randomization)
7867 (remote_supports_multi_process, remote_supports_cond_breakpoints)
7868 (remote_supports_enable_disable_tracepoint)
7869 (remote_supports_string_tracing)
7870 (remote_can_run_breakpoint_commands, remote_trace_init)
7871 (remote_download_tracepoint, remote_can_download_tracepoint)
7872 (remote_download_trace_state_variable, remote_enable_tracepoint)
7873 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
7874 (remote_trace_start, remote_get_trace_status)
7875 (remote_get_tracepoint_status, remote_trace_stop)
7876 (remote_trace_find, remote_get_trace_state_variable_value)
7877 (remote_save_trace_data, remote_get_raw_trace_data)
7878 (remote_set_disconnected_tracing, remote_core_of_thread)
7879 (remote_set_circular_trace_buffer, remote_traceframe_info)
7880 (remote_get_min_fast_tracepoint_insn_len)
7881 (remote_set_trace_buffer_size, remote_set_trace_notes)
7882 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
7883 (remote_disable_btrace, remote_teardown_btrace)
7884 (remote_read_btrace, remote_btrace_conf)
7885 (remote_augmented_libraries_svr4_read, remote_load)
7886 (remote_pid_to_exec_file, remote_can_do_single_step)
7887 (remote_execution_direction, remote_thread_handle_to_thread_info):
7888 Refactor as methods of remote_target.
7889 (init_remote_ops, init_extended_remote_ops): Delete.
7890 (remote_can_async_p, remote_is_async_p, remote_async)
7891 (remote_thread_events, remote_upload_tracepoints)
7892 (remote_upload_trace_state_variables): Refactor as methods of
7893 remote_target.
7894 (_initialize_remote): Remove references to init_remote_ops and
7895 init_extended_remote_ops.
7896
7897 * remote-sim.c (gdbsim_target): New class.
7898 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
7899 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
7900 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
7901 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
7902 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
7903 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
7904 Refactor as methods of gdbsim_target.
7905 (gdbsim_ops): Now a gdbsim_target.
7906 (init_gdbsim_ops): Delete.
7907 (gdbsim_cntrl_c): Adjust.
7908 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
7909
7910 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
7911 (the_amd64_linux_nat_target): New.
7912 (amd64_linux_fetch_inferior_registers)
7913 (amd64_linux_store_inferior_registers): Refactor as methods of
7914 amd64_linux_nat_target.
7915 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
7916 * i386-linux-nat.c: Don't include "linux-nat.h".
7917 (i386_linux_nat_target): New class.
7918 (the_i386_linux_nat_target): New.
7919 (i386_linux_fetch_inferior_registers)
7920 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
7921 as methods of i386_linux_nat_target.
7922 (_initialize_i386_linux_nat): Adjust. Set linux_target.
7923 * inf-child.c (inf_child_ops): Delete.
7924 (inf_child_fetch_inferior_registers)
7925 (inf_child_store_inferior_registers): Delete.
7926 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
7927 methods of inf_child_target.
7928 (inf_child_target::supports_terminal_ours)
7929 (inf_child_target::terminal_init)
7930 (inf_child_target::terminal_inferior)
7931 (inf_child_target::terminal_ours_for_output)
7932 (inf_child_target::terminal_ours, inf_child_target::interrupt)
7933 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
7934 New.
7935 (inf_child_open, inf_child_disconnect, inf_child_close)
7936 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
7937 (inf_child_post_startup_inferior, inf_child_can_run)
7938 (inf_child_pid_to_exec_file): Refactor as methods of
7939 inf_child_target.
7940 (inf_child_follow_fork): Delete.
7941 (inf_child_target::can_create_inferior)
7942 (inf_child_target::can_attach): New.
7943 (inf_child_target::has_all_memory, inf_child_target::has_memory)
7944 (inf_child_target::has_stack, inf_child_target::has_registers)
7945 (inf_child_target::has_execution): New.
7946 (inf_child_fileio_open, inf_child_fileio_pwrite)
7947 (inf_child_fileio_pread, inf_child_fileio_fstat)
7948 (inf_child_fileio_close, inf_child_fileio_unlink)
7949 (inf_child_fileio_readlink, inf_child_use_agent)
7950 (inf_child_can_use_agent): Refactor as methods of
7951 inf_child_target.
7952 (return_zero, inf_child_target): Delete.
7953 (inf_child_target::inf_child_target): New.
7954 * inf-child.h: Include "target.h".
7955 (inf_child_target): Delete function prototype.
7956 (inf_child_target): New class.
7957 (inf_child_open_target, inf_child_mourn_inferior)
7958 (inf_child_maybe_unpush_target): Delete.
7959 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
7960 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
7961 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
7962 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
7963 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
7964 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
7965 (inf_ptrace_wait, inf_ptrace_xfer_partial)
7966 (inf_ptrace_thread_alive, inf_ptrace_files_info)
7967 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
7968 methods of inf_ptrace_target.
7969 (inf_ptrace_target): Delete function.
7970 * inf-ptrace.h: Include "inf-child.h".
7971 (inf_ptrace_target): Delete function declaration.
7972 (inf_ptrace_target): New class.
7973 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
7974 * linux-nat.c (linux_target): New.
7975 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
7976 (linux_nat_target::~linux_nat_target): New.
7977 (linux_child_post_attach, linux_child_post_startup_inferior)
7978 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
7979 (linux_child_remove_fork_catchpoint)
7980 (linux_child_insert_vfork_catchpoint)
7981 (linux_child_remove_vfork_catchpoint)
7982 (linux_child_insert_exec_catchpoint)
7983 (linux_child_remove_exec_catchpoint)
7984 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
7985 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
7986 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
7987 (linux_nat_stopped_data_address)
7988 (linux_nat_stopped_by_sw_breakpoint)
7989 (linux_nat_supports_stopped_by_sw_breakpoint)
7990 (linux_nat_stopped_by_hw_breakpoint)
7991 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
7992 (linux_nat_kill, linux_nat_mourn_inferior)
7993 (linux_nat_xfer_partial, linux_nat_thread_alive)
7994 (linux_nat_update_thread_list, linux_nat_pid_to_str)
7995 (linux_nat_thread_name, linux_child_pid_to_exec_file)
7996 (linux_child_static_tracepoint_markers_by_strid)
7997 (linux_nat_is_async_p, linux_nat_can_async_p)
7998 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
7999 (linux_nat_supports_multi_process)
8000 (linux_nat_supports_disable_randomization, linux_nat_async)
8001 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8002 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8003 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8004 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8005 methods of linux_nat_target.
8006 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8007 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8008 parameter.
8009 (check_stopped_by_watchpoint): Adjust.
8010 (linux_xfer_partial): Delete.
8011 (linux_target_install_ops, linux_target, linux_nat_add_target):
8012 Delete.
8013 (linux_nat_target::linux_nat_target): New.
8014 * linux-nat.h: Include "inf-ptrace.h".
8015 (linux_nat_target): New.
8016 (linux_target, linux_target_install_ops, linux_nat_add_target):
8017 Delete function declarations.
8018 (linux_target): Declare global.
8019 * linux-thread-db.c (thread_db_target): New.
8020 (thread_db_target::thread_db_target): New.
8021 (thread_db_ops): Delete.
8022 (the_thread_db_target): New.
8023 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8024 (thread_db_update_thread_list, thread_db_pid_to_str)
8025 (thread_db_extra_thread_info)
8026 (thread_db_thread_handle_to_thread_info)
8027 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8028 (thread_db_resume): Refactor as methods of thread_db_target.
8029 (init_thread_db_ops): Delete.
8030 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8031 * x86-linux-nat.c: Don't include "linux-nat.h".
8032 (super_post_startup_inferior): Delete.
8033 (x86_linux_nat_target::~x86_linux_nat_target): New.
8034 (x86_linux_child_post_startup_inferior)
8035 (x86_linux_read_description, x86_linux_enable_btrace)
8036 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8037 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8038 methods of x86_linux_nat_target.
8039 (x86_linux_create_target): Delete. Bits folded ...
8040 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8041 pointer.
8042 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8043 (x86_linux_nat_target): New class.
8044 (x86_linux_create_target): Delete.
8045 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8046 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8047 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8048 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8049 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8050 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8051 make extern.
8052 (x86_use_watchpoints): Delete.
8053 * x86-nat.h: Include "breakpoint.h" and "target.h".
8054 (x86_use_watchpoints): Delete.
8055 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8056 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8057 (x86_insert_watchpoint, x86_remove_watchpoint)
8058 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8059 (x86_stopped_by_hw_breakpoint): New declarations.
8060 (x86_nat_target): New template class.
8061
8062 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8063 (the_ppc_linux_nat_target): New.
8064 (ppc_linux_fetch_inferior_registers)
8065 (ppc_linux_can_use_hw_breakpoint)
8066 (ppc_linux_region_ok_for_hw_watchpoint)
8067 (ppc_linux_ranged_break_num_registers)
8068 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8069 (ppc_linux_insert_mask_watchpoint)
8070 (ppc_linux_remove_mask_watchpoint)
8071 (ppc_linux_can_accel_watchpoint_condition)
8072 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8073 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8074 (ppc_linux_watchpoint_addr_within_range)
8075 (ppc_linux_masked_watch_num_registers)
8076 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8077 (ppc_linux_read_description): Refactor as methods of
8078 ppc_linux_nat_target.
8079 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8080
8081 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8082 (procfs_target): New class.
8083 (the_procfs_target): New.
8084 (procfs_target): Delete function.
8085 (procfs_auxv_parse, procfs_attach, procfs_detach)
8086 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8087 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8088 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8089 (procfs_create_inferior, procfs_update_thread_list)
8090 (procfs_thread_alive, procfs_pid_to_str)
8091 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8092 (procfs_stopped_data_address, procfs_insert_watchpoint)
8093 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8094 (proc_find_memory_regions, procfs_info_proc)
8095 (procfs_make_note_section): Refactor as methods of procfs_target.
8096 (_initialize_procfs): Adjust.
8097 * sol-thread.c (sol_thread_target): New class.
8098 (sol_thread_ops): Now a sol_thread_target.
8099 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8100 (sol_thread_fetch_registers, sol_thread_store_registers)
8101 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8102 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8103 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8104 (init_sol_thread_ops): Delete.
8105 (_initialize_sol_thread): Adjust. Remove references to
8106 init_sol_thread_ops and complete_target_initialization.
8107
8108 * windows-nat.c (windows_nat_target): New class.
8109 (windows_fetch_inferior_registers)
8110 (windows_store_inferior_registers, windows_resume, windows_wait)
8111 (windows_attach, windows_detach, windows_pid_to_exec_file)
8112 (windows_files_info, windows_create_inferior)
8113 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8114 (windows_close, windows_pid_to_str, windows_xfer_partial)
8115 (windows_get_tib_address, windows_get_ada_task_ptid)
8116 (windows_thread_name, windows_thread_alive): Refactor as
8117 windows_nat_target methods.
8118 (do_initial_windows_stuff): Adjust.
8119 (windows_target): Delete function.
8120 (_initialize_windows_nat): Adjust.
8121
8122 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8123 (darwin_mourn_inferior, darwin_kill_inferior)
8124 (darwin_create_inferior, darwin_attach, darwin_detach)
8125 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8126 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8127 (darwin_supports_multi_process): Refactor as darwin_nat_target
8128 methods.
8129 (darwin_resume_to, darwin_files_info): Delete.
8130 (_initialize_darwin_inferior): Rename to ...
8131 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8132 * darwin-nat.h: Include "inf-child.h".
8133 (darwin_nat_target): New class.
8134 (darwin_complete_target): Delete.
8135 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8136 (darwin_target): New.
8137 (i386_darwin_fetch_inferior_registers)
8138 (i386_darwin_store_inferior_registers): Refactor as methods of
8139 darwin_nat_target.
8140 (darwin_complete_target): Delete, with ...
8141 (_initialize_i386_darwin_nat): ... bits factored out here.
8142
8143 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8144 (the_alpha_linux_nat_target): New.
8145 (alpha_linux_register_u_offset): Refactor as
8146 alpha_linux_nat_target method.
8147 (_initialize_alpha_linux_nat): Adjust.
8148 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8149 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8150 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8151 methods of linux_nat_trad_target.
8152 (linux_trad_target): Delete.
8153 * linux-nat-trad.h (linux_trad_target): Delete function.
8154 (linux_nat_trad_target): New class.
8155 * mips-linux-nat.c (mips_linux_nat_target): New class.
8156 (super_fetch_registers, super_store_registers, super_close):
8157 Delete.
8158 (the_mips_linux_nat_target): New.
8159 (mips64_linux_regsets_fetch_registers)
8160 (mips64_linux_regsets_store_registers)
8161 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8162 (mips_linux_register_u_offset, mips_linux_read_description)
8163 (mips_linux_can_use_hw_breakpoint)
8164 (mips_linux_stopped_by_watchpoint)
8165 (mips_linux_stopped_data_address)
8166 (mips_linux_region_ok_for_hw_watchpoint)
8167 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8168 (mips_linux_close): Refactor as methods of mips_linux_nat.
8169 (_initialize_mips_linux_nat): Adjust to C++ification.
8170
8171 * aix-thread.c (aix_thread_target): New class.
8172 (aix_thread_ops): Now an aix_thread_target.
8173 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8174 (aix_thread_fetch_registers, aix_thread_store_registers)
8175 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8176 (aix_thread_thread_alive, aix_thread_pid_to_str)
8177 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8178 Refactor as methods of aix_thread_target.
8179 (init_aix_thread_ops): Delete.
8180 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8181 and complete_target_initialization.
8182 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8183 (rs6000_nat_target): New class.
8184 (the_rs6000_nat_target): New.
8185 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8186 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8187 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8188 (super_create_inferior): Delete.
8189 (_initialize_rs6000_nat): Adjust to C++ification.
8190
8191 * arm-linux-nat.c (arm_linux_nat_target): New class.
8192 (the_arm_linux_nat_target): New.
8193 (arm_linux_fetch_inferior_registers)
8194 (arm_linux_store_inferior_registers, arm_linux_read_description)
8195 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8196 (arm_linux_remove_hw_breakpoint)
8197 (arm_linux_region_ok_for_hw_watchpoint)
8198 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8199 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8200 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8201 arm_linux_nat_target.
8202 (_initialize_arm_linux_nat): Adjust to C++ification.
8203
8204 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8205 (the_aarch64_linux_nat_target): New.
8206 (aarch64_linux_fetch_inferior_registers)
8207 (aarch64_linux_store_inferior_registers)
8208 (aarch64_linux_child_post_startup_inferior)
8209 (aarch64_linux_read_description)
8210 (aarch64_linux_can_use_hw_breakpoint)
8211 (aarch64_linux_insert_hw_breakpoint)
8212 (aarch64_linux_remove_hw_breakpoint)
8213 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8214 (aarch64_linux_region_ok_for_hw_watchpoint)
8215 (aarch64_linux_stopped_data_address)
8216 (aarch64_linux_stopped_by_watchpoint)
8217 (aarch64_linux_watchpoint_addr_within_range)
8218 (aarch64_linux_can_do_single_step): Refactor as methods of
8219 aarch64_linux_nat_target.
8220 (super_post_startup_inferior): Delete.
8221 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8222
8223 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8224 (the_hppa_linux_nat_target): New.
8225 (hppa_linux_fetch_inferior_registers)
8226 (hppa_linux_store_inferior_registers): Refactor as methods of
8227 hppa_linux_nat_target.
8228 (_initialize_hppa_linux_nat): Adjust to C++ification.
8229
8230 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8231 (the_ia64_linux_nat_target): New.
8232 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8233 (ia64_linux_stopped_data_address)
8234 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8235 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8236 ia64_linux_nat_target methods.
8237 (super_xfer_partial): Delete.
8238 (_initialize_ia64_linux_nat): Adjust to C++ification.
8239
8240 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8241 (the_m32r_linux_nat_target): New.
8242 (m32r_linux_fetch_inferior_registers)
8243 (m32r_linux_store_inferior_registers): Refactor as
8244 m32r_linux_nat_target methods.
8245 (_initialize_m32r_linux_nat): Adjust to C++ification.
8246
8247 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8248 (the_m68k_linux_nat_target): New.
8249 (m68k_linux_fetch_inferior_registers)
8250 (m68k_linux_store_inferior_registers): Refactor as
8251 m68k_linux_nat_target methods.
8252 (_initialize_m68k_linux_nat): Adjust to C++ification.
8253
8254 * s390-linux-nat.c (s390_linux_nat_target): New class.
8255 (the_s390_linux_nat_target): New.
8256 (s390_linux_fetch_inferior_registers)
8257 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8258 (s390_insert_watchpoint, s390_remove_watchpoint)
8259 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8260 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8261 (s390_auxv_parse, s390_read_description): Refactor as methods of
8262 s390_linux_nat_target.
8263 (_initialize_s390_nat): Adjust to C++ification.
8264
8265 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8266 (the_sparc_linux_nat_target): New.
8267 (_initialize_sparc_linux_nat): Adjust to C++ification.
8268 * sparc-nat.c (sparc_fetch_inferior_registers)
8269 (sparc_store_inferior_registers): Remove target_ops parameter.
8270 * sparc-nat.h (sparc_fetch_inferior_registers)
8271 (sparc_store_inferior_registers): Remove target_ops parameter.
8272 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8273 (the_sparc64_linux_nat_target): New.
8274 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8275
8276 * spu-linux-nat.c (spu_linux_nat_target): New class.
8277 (the_spu_linux_nat_target): New.
8278 (spu_child_post_startup_inferior, spu_child_post_attach)
8279 (spu_child_wait, spu_fetch_inferior_registers)
8280 (spu_store_inferior_registers, spu_xfer_partial)
8281 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8282 methods.
8283 (_initialize_spu_nat): Adjust to C++ification.
8284
8285 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8286 (the_tilegx_linux_nat_target): New.
8287 (fetch_inferior_registers, store_inferior_registers):
8288 Refactor as methods.
8289 (_initialize_tile_linux_nat): Adjust to C++ification.
8290
8291 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8292 (the_xtensa_linux_nat_target): New.
8293 (xtensa_linux_fetch_inferior_registers)
8294 (xtensa_linux_store_inferior_registers): Refactor as
8295 xtensa_linux_nat_target methods.
8296 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8297
8298 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8299 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8300 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8301 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8302 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8303 (fbsd_stopped_by_sw_breakpoint)
8304 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8305 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8306 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8307 (fbsd_post_startup_inferior, fbsd_post_attach)
8308 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8309 (fbsd_set_syscall_catchpoint)
8310 (super_xfer_partial, super_resume, super_wait)
8311 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8312 (fbsd_handle_debug_trap): Remove target_ops parameter.
8313 (fbsd_nat_add_target): Delete.
8314 * fbsd-nat.h: Include "inf-ptrace.h".
8315 (fbsd_nat_add_target): Delete.
8316 (USE_SIGTRAP_SIGINFO): Define.
8317 (fbsd_nat_target): New class.
8318
8319 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8320 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8321 (amd64bsd_target): Delete.
8322 * amd64-bsd-nat.h: New file.
8323 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8324 "x86-bsd-nat.h".
8325 (amd64_fbsd_nat_target): New class.
8326 (the_amd64_fbsd_nat_target): New.
8327 (amd64fbsd_read_description): Refactor as method of
8328 amd64_fbsd_nat_target.
8329 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8330 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8331 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8332 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8333 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8334 (i386bsd_target): Delete.
8335 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8336 (i386bsd_fetch_inferior_registers)
8337 (i386bsd_store_inferior_registers): Declare.
8338 (i386_bsd_nat_target): New class.
8339 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8340 (the_i386_fbsd_nat_target): New.
8341 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8342 i386_fbsd_nat_target methods.
8343 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8344 (_initialize_i386fbsd_nat): Adjust to C++ification.
8345 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8346 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8347 (_initialize_x86_bsd_nat): Adjust to C++ification.
8348 * x86-bsd-nat.h: Include "x86-nat.h".
8349 (x86bsd_target): Delete declaration.
8350 (x86bsd_nat_target): New class.
8351
8352 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8353 (the_aarch64_fbsd_nat_target): New.
8354 (aarch64_fbsd_fetch_inferior_registers)
8355 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8356 aarch64_fbsd_nat_target.
8357 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8358 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8359 (the_alpha_bsd_nat_target): New.
8360 (alphabsd_fetch_inferior_registers)
8361 (alphabsd_store_inferior_registers): Refactor as
8362 alpha_bsd_nat_target methods.
8363 (_initialize_alphabsd_nat): Refactor as methods of
8364 alpha_bsd_nat_target.
8365 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8366 (the_amd64_nbsd_nat_target): New.
8367 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8368 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8369 (the_amd64_obsd_nat_target): New.
8370 (_initialize_amd64obsd_nat): Adjust to C++ification.
8371 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8372 (the_arm_fbsd_nat_target): New.
8373 (arm_fbsd_fetch_inferior_registers)
8374 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8375 (_initialize_arm_fbsd_nat): Refactor as methods of
8376 arm_fbsd_nat_target.
8377 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8378 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8379 (the_arm_netbsd_nat_target): New.
8380 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8381 arm_netbsd_nat_target.
8382 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8383 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8384 (the_hppa_nbsd_nat_target): New.
8385 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8386 hppa_nbsd_nat_target methods.
8387 (_initialize_hppanbsd_nat): Adjust to C++ification.
8388 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8389 (the_hppa_obsd_nat_target): New.
8390 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8391 methods of hppa_obsd_nat_target.
8392 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8393 add_target.
8394 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8395 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8396 add_target.
8397 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8398 (_initialize_i386obsd_nat): Use add_target.
8399 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8400 (the_m68k_bsd_nat_target): New.
8401 (m68kbsd_fetch_inferior_registers)
8402 (m68kbsd_store_inferior_registers): Refactor as methods of
8403 m68k_bsd_nat_target.
8404 (_initialize_m68kbsd_nat): Adjust to C++ification.
8405 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8406 (the_mips_fbsd_nat_target): New.
8407 (mips_fbsd_fetch_inferior_registers)
8408 (mips_fbsd_store_inferior_registers): Refactor as methods of
8409 mips_fbsd_nat_target.
8410 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8411 add_target.
8412 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8413 (the_mips_nbsd_nat_target): New.
8414 (mipsnbsd_fetch_inferior_registers)
8415 (mipsnbsd_store_inferior_registers): Refactor as methods of
8416 mips_nbsd_nat_target.
8417 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8418 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8419 (the_mips64_obsd_nat_target): New.
8420 (mips64obsd_fetch_inferior_registers)
8421 (mips64obsd_store_inferior_registers): Refactor as methods of
8422 mips64_obsd_nat_target.
8423 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8424 add_target.
8425 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8426 nbsd_nat_target.
8427 * nbsd-nat.h: Include "inf-ptrace.h".
8428 (nbsd_nat_target): New class.
8429 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8430 (obsd_wait): Refactor as methods of obsd_nat_target.
8431 (obsd_add_target): Delete.
8432 * obsd-nat.h: Include "inf-ptrace.h".
8433 (obsd_nat_target): New class.
8434 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8435 (the_ppc_fbsd_nat_target): New.
8436 (ppcfbsd_fetch_inferior_registers)
8437 (ppcfbsd_store_inferior_registers): Refactor as methods of
8438 ppc_fbsd_nat_target.
8439 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8440 add_target.
8441 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8442 (the_ppc_nbsd_nat_target): New.
8443 (ppcnbsd_fetch_inferior_registers)
8444 (ppcnbsd_store_inferior_registers): Refactor as methods of
8445 ppc_nbsd_nat_target.
8446 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8447 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8448 (the_ppc_obsd_nat_target): New.
8449 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8450 methods of ppc_obsd_nat_target.
8451 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8452 add_target.
8453 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8454 (the_sh_nbsd_nat_target): New.
8455 (shnbsd_fetch_inferior_registers)
8456 (shnbsd_store_inferior_registers): Refactor as methods of
8457 sh_nbsd_nat_target.
8458 (_initialize_shnbsd_nat): Adjust to C++ification.
8459 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8460 (inf_ptrace_xfer_partial): Delete.
8461 (sparc_xfer_partial, sparc_target): Delete.
8462 * sparc-nat.h (sparc_fetch_inferior_registers)
8463 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8464 (sparc_target): Delete function declaration.
8465 (sparc_target): New template class.
8466 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8467 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8468 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8469 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8470 add_target.
8471 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8472 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8473 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8474 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8475 add_target.
8476 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8477 (the_vax_bsd_nat_target): New.
8478 (vaxbsd_fetch_inferior_registers)
8479 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8480 methods.
8481 (_initialize_vaxbsd_nat): Adjust to C++ification.
8482
8483 * bsd-kvm.c (bsd_kvm_target): New class.
8484 (bsd_kvm_ops): Now a bsd_kvm_target.
8485 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8486 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8487 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8488 bsd_kvm_target.
8489 (bsd_kvm_return_one): Delete.
8490 (bsd_kvm_add_target): Adjust to C++ification.
8491
8492 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8493 (nto_procfs_target_procfs): New classes.
8494 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8495 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8496 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8497 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8498 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8499 (procfs_remove_hw_breakpoint, procfs_resume)
8500 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8501 (procfs_kill_inferior, procfs_store_registers)
8502 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8503 as methods of nto_procfs_target.
8504 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8505 (nto_native_ops): Delete.
8506 (procfs_open, procfs_native_open): Delete.
8507 (nto_native_ops): Now an nto_procfs_target_native.
8508 (init_procfs_targets): Adjust to C++ification.
8509 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8510 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8511 Refactor as methods of nto_procfs_target.
8512
8513 * go32-nat.c (go32_nat_target): New class.
8514 (the_go32_nat_target): New.
8515 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8516 (go32_store_registers, go32_xfer_partial, go32_files_info)
8517 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8518 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8519 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8520 (go32_pid_to_str): Refactor as methods of go32_nat_target.
8521 (go32_target): Delete.
8522 (_initialize_go32_nat): Adjust to C++ification.
8523
8524 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8525 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8526 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8527 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8528 gnu_nat_target.
8529 (gnu_target): Delete.
8530 * gnu-nat.h (gnu_target): Delete.
8531 (gnu_nat_target): New class.
8532 * i386-gnu-nat.c (gnu_base_target): New.
8533 (i386_gnu_nat_target): New class.
8534 (the_i386_gnu_nat_target): New.
8535 (_initialize_i386gnu_nat): Adjust to C++ification.
8536
3fffc070
PA
85372018-05-02 Pedro Alves <palves@redhat.com>
8538
8539 * bfd-target.c (target_bfd_xclose): Rename to ...
8540 (target_bfd_close): ... this.
8541 (target_bfd_reopen): Adjust.
8542 * target.c (target_close): Remove references to to_xclose.
8543 * target.h (target_ops::to_xclose): Delete.
8544 (target_ops::to_close): Update comments.
8545
6798487f
PA
85462018-05-02 Pedro Alves <palves@redhat.com>
8547
8548 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
8549 "linux-nat.h".
8550 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
8551 * inf-ptrace.c (inf_ptrace_register_u_offset)
8552 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8553 (inf_ptrace_store_register, inf_ptrace_store_registers)
8554 (inf_ptrace_trad_target): Move to ...
8555 * linux-nat-trad.c: ... this new file.
8556 * linux-nat-trad.h: New file.
8557 * linux-nat.c (linux_target_install_ops): Make extern.
8558 (linux_trad_target): Delete.
8559 * linux-nat.h (linux_trad_target): Delete declaration.
8560 (linux_target_install_ops): Declare.
8561 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
8562 "linux-nat.h".
8563
c1955e17
PA
85642018-05-02 Pedro Alves <palves@redhat.com>
8565
8566 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8567 procfs_target/add_target here.
8568 * procfs.c (procfs_target): Make static.
8569 (_initialize_procfs): Call add_target here.
8570 * procfs.h (struct target_ops): Remove forward declaration.
8571 (procfs_target): Remove declaration.
8572 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
8573
b5c8fcb1
PA
85742018-05-02 Pedro Alves <palves@redhat.com>
8575
8576 * procfs.c (procfs_stopped_by_watchpoint)
8577 (procfs_insert_watchpoint, procfs_remove_watchpoint)
8578 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
8579 Forward declare.
8580 (procfs_use_watchpoints): Delete, move contents...
8581 (procfs_target): ... here.
8582 * procfs.h (procfs_use_watchpoints): Delete declaration.
8583 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8584 procfs_use_watchpoints.
8585 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8586 procfs_use_watchpoints.
8587
0489430a
TT
85882018-05-02 Tom Tromey <tom@tromey.com>
8589
8590 PR python/20084:
8591 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
8592 and var_zuinteger_unlimited.
8593 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
8594 and PARAM_ZUINTEGER_UNLIMITED.
8595 (set_parameter_value): Handle var_zuinteger and
8596 var_zuinteger_unlimited.
8597 (add_setshow_generic): Likewise.
8598 (parmpy_init): Likewise.
8599
1632f8ba
DR
86002018-04-28 Dan Robertson <danlrobertson89@gmail.com>
8601
8602 PR rust/23124
8603 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
8604 pointer is not null before dereferencing it.
8605
76761936
TT
86062018-04-30 Tom Tromey <tom@tromey.com>
8607
8608 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
8609 is_mi_like_p.
8610
2d33446d
TT
86112018-04-30 Tom Tromey <tom@tromey.com>
8612
8613 * breakpoint.c (mention): Remove use of is_mi_like_p.
8614 (print_mention_ranged_breakpoint): Likewise.
8615 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
8616 of is_mi_like_p.
8617
f3c6abab
TT
86182018-04-30 Tom Tromey <tom@tromey.com>
8619
8620 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
8621
40c03530
TT
86222018-04-30 Tom Tromey <tom@tromey.com>
8623
8624 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
8625 (info_spu_event_command): Remove some uses of is_mi_like_p.
8626
2038b7fd
TT
86272018-04-30 Tom Tromey <tom@tromey.com>
8628
8629 * python/py-framefilter.c (py_print_single_arg)
8630 (enumerate_locals, py_print_args, py_print_frame): Remove some
8631 uses of is_mi_like_p.
8632
4904c3c6
TT
86332018-04-30 Tom Tromey <tom@tromey.com>
8634
8635 * ui-out.c: Update.
8636 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
8637 * ui-out.h (ui_out::is_mi_like_p): Now const.
8638 (ui_out::do_is_mi_like_p): Now const.
8639 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
8640
7c66fffc
TT
86412018-04-30 Tom Tromey <tom@tromey.com>
8642
8643 * varobj.c (varobj_set_visualizer): Use new_reference.
8644 * python/python.c (gdbpy_decode_line): Use new_reference.
8645 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
8646 new_reference.
8647
bbfa6f00
TT
86482018-04-30 Tom Tromey <tom@tromey.com>
8649
8650 * varobj.c (install_new_value): Use new_reference.
8651 * value.h (value_incref): Return void. Swap intro comment with
8652 value_decref.
8653 * value.c (set_value_parent): Use new_reference.
8654 (value_incref): Return void. Update intro comment.
8655 (release_value): Use new_reference.
8656 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
8657
1831a9f9
TT
86582018-04-30 Tom Tromey <tom@tromey.com>
8659
8660 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
8661 * gdb_bfd.h (new_bfd_ref): Remove.
8662 (gdb_bfd_open): Update comment.
8663 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
8664 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
8665 (gdb_bfd_fdopenr): Use new_reference.
8666 * exec.c (exec_file_attach): Use new_reference.
8667
7c1b5f3d
TT
86682018-04-30 Tom Tromey <tom@tromey.com>
8669
8670 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
8671 method.
8672
e11fb955
TT
86732018-04-30 Tom Tromey <tom@tromey.com>
8674
8675 * jit.c (jit_read_code_entry): Use type_align.
8676 * i386-tdep.c (i386_gdbarch_init): Don't call
8677 set_gdbarch_long_long_align_bit.
8678 * gdbarch.sh: Remove long_long_align_bit.
8679 * gdbarch.c, gdbarch.h: Rebuild.
8680 * arc-tdep.c (arc_type_align): New function.
8681 (arc_gdbarch_init): Use arc_type_align. Don't call
8682 set_gdbarch_long_long_align_bit.
8683
2fff16dd
TT
86842018-04-30 Tom Tromey <tom@tromey.com>
8685
8686 * rust-lang.c (rust_type_alignment): Remove.
8687 (rust_composite_type): Use type_align.
8688
6d7bb824
TT
86892018-04-30 Tom Tromey <tom@tromey.com>
8690
8691 * NEWS: Mention Type.align.
8692 * python/py-type.c (typy_get_alignof): New function.
8693 (type_object_getset): Add "alignof".
8694
007e1530
TT
86952018-04-30 Tom Tromey <tom@tromey.com>
8696
8697 PR exp/17095:
8698 * NEWS: Update.
8699 * std-operator.def (UNOP_ALIGNOF): New operator.
8700 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
8701 New.
8702 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
8703 * c-lang.c (c_op_print_tab): Add alignof.
8704 * c-exp.y (ALIGNOF): New token.
8705 (exp): Add "ALIGNOF" production.
8706 (ident_tokens): Add _Alignof and alignof.
8707
2b4424c3
TT
87082018-04-30 Tom Tromey <tom@tromey.com>
8709
8710 * i386-tdep.c (i386_type_align): New function.
8711 (i386_gdbarch_init): Update.
8712 * gdbarch.sh (type_align): New method.
8713 * gdbarch.c, gdbarch.h: Rebuild.
8714 * arch-utils.h (default_type_align): Declare.
8715 * arch-utils.c (default_type_align): New function.
8716 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
8717 (struct type) <align_log2>: New field.
8718 <instance_flags>: Now a bitfield.
8719 (TYPE_RAW_ALIGN): New macro.
8720 (type_align, type_raw_align, set_type_align): Declare.
8721 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
8722 functions.
8723 * dwarf2read.c (quirk_rust_enum): Set type alignment.
8724 (get_alignment, maybe_set_alignment): New functions.
8725 (read_structure_type, read_enumeration_type, read_array_type)
8726 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
8727 (read_subrange_type, read_base_type): Set type alignment.
8728
d33bc52e
SM
87292018-04-30 Simon Marchi <simon.marchi@ericsson.com>
8730
8731 * dwarf2read.c (read_index_from_section): Use bool.
8732
e28b63a9
FG
87332018-04-29 Fabian Groffen <grobian@gentoo.org>
8734
8735 PR gdb/22950
8736 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
8737 with #ifdef.
8738
cd8c76e4
JR
87392018-04-29 John Reiser <jreiser@BitWagon.com>
8740
8741 PR build/22873
8742 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
8743 last step, and do it atomically.
8744
476d250e
AO
87452018-04-27 Alexandre Oliva <aoliva@redhat.com>
8746
8747 * compile/compile-c-types.c (convert_int, convert_float):
8748 Update for C FE v1.
8749
6873858b
TT
87502018-04-27 Tom Tromey <tom@tromey.com>
8751
8752 PR rust/22545:
8753 * rust-lang.c (rust_inclusive_range_type_p): New function.
8754 (rust_range): Handle inclusive ranges.
8755 (rust_compute_range): Likewise.
8756 * rust-exp.y (struct rust_op) <inclusive>: New field.
8757 (DOTDOTEQ): New constant.
8758 (range_expr): Add "..=" productions.
8759 (operator_tokens): Add "..=" token.
8760 (ast_range): Add "inclusive" parameter.
8761 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
8762 ranges.
8763 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
8764 bounds values.
8765 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
8766 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
8767 Update comments.
8768 * expprint.c (print_subexp_standard): Handle new bounds values.
8769 (dump_subexp_body_standard): Likewise.
8770
632e107b
TT
87712018-04-27 Tom Tromey <tom@tromey.com>
8772
8773 * configure: Rebuild.
8774 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
8775 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
8776 "OVERRIDE".
8777 (class symbol_needs_eval_context): Likewise.
8778 * dwarf2read.c (mock_mapped_index::symbol_name_count)
8779 (mock_mapped_index::symbol_name_at): Use "override". Remove
8780 "virtual".
8781 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
8782 "override".
8783 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
8784 * aarch64-tdep.c (instruction_reader::read): Use "override".
8785 (instruction_reader_test::read): Likewise.
8786 * arm-tdep.c (instruction_reader::read): Use "override".
8787 (instruction_reader_thumb::read): Likewise.
8788
b75abf5b
AK
87892018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
8790
8791 PR remote/9665
8792 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
8793 instead of remote_send.
8794 (remote_send): Remove.
8795
79188d8d
PA
87962018-04-26 Pedro Alves <palves@redhat.com>
8797
8798 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
8799 find_function_start_sal instead of find_pc_line.
8800
f50776aa
PA
88012018-04-26 Pedro Alves <palves@redhat.com>
8802
8803 * breakpoint.c (set_breakpoint_location_function): Handle
8804 mst_data_gnu_ifunc.
8805 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
8806 * elfread.c (elf_symtab_read): Give data symbols with
8807 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
8808 (elf_rel_plt_read): Update comment.
8809 * linespec.c (convert_linespec_to_sals): Handle
8810 mst_data_gnu_ifunc.
8811 (minsym_found): Handle mst_data_gnu_ifunc.
8812 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
8813 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
8814 * parse.c (find_minsym_type_and_address): Handle
8815 mst_data_gnu_ifunc.
8816 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
8817 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
8818 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
8819 comment.
8820 <mst_data_gnu_ifunc>: New enumerator.
8821
20944a6e
PA
88222018-04-26 Pedro Alves <palves@redhat.com>
8823
8824 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
8825 (lookup_minimal_symbol_by_pc_section): ... this. Replace
8826 'want_trampoline' parameter by a lookup_msym_prefer parameter.
8827 Handle it.
8828 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
8829 (lookup_minimal_symbol_by_pc): Adjust.
8830 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
8831 (lookup_solib_trampoline_symbol_by_pc): Adjust.
8832 * minsyms.h (lookup_msym_prefer): New enum.
8833 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8834 parameter by a lookup_msym_prefer parameter.
8835
1adeb822
PA
88362018-04-26 Pedro Alves <palves@redhat.com>
8837
8838 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
8839 ends in "@plt" instead of looking at the symbol's section.
8840
a0aca7b0
PA
88412018-04-26 Pedro Alves <palves@redhat.com>
8842
8843 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
8844 all references.
8845 (find_pc_partial_function_gnu_ifunc): Rename to ...
8846 (find_pc_partial_function): ... this, and remove references to
8847 'is_gnu_ifunc_p'.
8848 (find_pc_partial_function): Delete old implementation.
8849 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
8850
76af0f26
PA
88512018-04-26 Pedro Alves <palves@redhat.com>
8852
8853 * linespec.c (struct bound_minimal_symbol_search_key): New.
8854 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
8855 skip first line if we found a GNU ifunc minimal symbol by name.
8856 (compare_msymbols): Change parameters to work with a destructured
8857 lhs minsym.
8858 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
8859 functions.
8860
3467ec66
PA
88612018-04-26 Pedro Alves <palves@redhat.com>
8862
8863 * breakpoint.c (set_breakpoint_location_function): Don't resolve
8864 ifunc targets here. Instead, if we have an ifunc minsym, use its
8865 address/name.
8866 (add_location_to_breakpoint): Store the minsym and the objfile in
8867 the breakpoint location.
8868 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
8869 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
8870 Record the minsym in the sal.
8871 * symtab.h (symtab_and_line) <msymbol>: New field.
8872
28f4fa4d
PA
88732018-04-26 Pedro Alves <palves@redhat.com>
8874
8875 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
8876 unless we actually resolved the ifunc.
8877
ca31ab1d
PA
88782018-04-26 Pedro Alves <palves@redhat.com>
8879
8880 * c-exp.y (variable production): Prefer ifunc minsyms over
8881 regular function symbols.
8882 * symtab.c (find_gnu_ifunc): New function.
8883 * minsyms.h (lookup_msym_prefer): New enum.
8884 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8885 parameter by a lookup_msym_prefer parameter.
8886 * symtab.h (find_gnu_ifunc): New declaration.
8887
8388016d
PA
88882018-04-26 Pedro Alves <palves@redhat.com>
8889
8890 * blockframe.c (find_gnu_ifunc_target_type): New function.
8891 (find_function_type): New.
8892 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
8893 return a value with a memory address.
8894 (eval_call): For calls to GNU ifunc functions, try to find the
8895 type of the target function from the type that the resolver
8896 returns.
8897 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
8898 symbols.
8899 * infcall.c (find_function_return_type): Delete.
8900 (find_function_addr): Add 'function_type' parameter. For calls to
8901 GNU ifunc functions, try to find the type of the target function
8902 from the type that the resolver returns, and return it via
8903 FUNCTION_TYPE.
8904 (call_function_by_hand_dummy): Adjust to use the function type
8905 returned by find_function_addr.
8906 (find_function_addr): Add 'function_type' parameter and move
8907 description here.
8908 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
8909 declarations.
8910
a376e11d
PA
89112018-04-26 Pedro Alves <palves@redhat.com>
8912
8913 * c-exp.y (variable production): Skip finding an alias for ifunc
8914 symbols.
8915
02e169e2
PA
89162018-04-26 Pedro Alves <palves@redhat.com>
8917
8918 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
8919
249b5733
PA
89202018-04-25 Pedro Alves <palves@redhat.com>
8921
8922 * infcmd.c (kill_command): Print the pid as string, not the whole
8923 thread's ptid. Add comment. s/has been killed/killed/ in output
8924 message.
8925 * remote.c (remote_detach_1): Print the pid as string, not the
8926 whole thread's ptid.
8927
f67c0c91
SDJ
89282018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8929 Sergio Durigan Junior <sergiodj@redhat.com>
8930 Pedro Alves <palves@redhat.com>
8931
8932 * infcmd.c (kill_command): Print message when inferior has
8933 been killed.
8934 * inferior.c (print_inferior_events): Remove 'static'. Set as
8935 '1'.
8936 (add_inferior): Improve message printed when
8937 'print_inferior_events' is on.
8938 (exit_inferior): Remove message printed when
8939 'print_inferior_events' is on.
8940 (detach_inferior): Improve message printed when
8941 'print_inferior_events' is on.
8942 (initialize_inferiors): Use 'add_inferior_silent' to set
8943 'current_inferior_'.
8944 * inferior.h (print_inferior_events): Declare here as
8945 'extern'.
8946 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
8947 '[Detaching...]' messages when 'print_inferior_events' is on.
8948 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
8949 as prefix/suffix for messages. Remove periods. Fix erroneous
8950 'Detaching after fork from child...', replace it by '... from
8951 parent...'.
8952 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
8953 prefix/suffix when printing 'Detaching...' messages. Print
8954 them when 'print_inferior_events' is on.
8955 * remote.c (remote_detach_1): Print message when detaching
8956 from inferior and '!is_fork_parent'.
8957
e427af18
TT
89582018-04-24 Tom Tromey <tom@tromey.com>
8959
8960 * cli-out.h: Reindent.
8961
05b1d8d6
TT
89622018-04-24 Tom Tromey <tom@tromey.com>
8963
8964 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
8965 (cli_ui_out::do_field_string): Use fputs_filtered.
8966 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
8967
a95c7dab
TT
89682018-04-23 Tom Tromey <tom@tromey.com>
8969
8970 * guile/scm-frame.c (gdbscm_frame_read_var): Use
8971 gdb::unique_xmalloc_ptr.
8972
458412c3
TT
89732018-04-23 Tom Tromey <tom@tromey.com>
8974
8975 * configure: Rebuild.
8976
db86b02b
RS
89772018-04-22 Rajendra SY <rajendra.sy@gmail.com>
8978
8979 PR gdb/23095
8980 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
8981 prepare_for_testing. Set normal_bp to r_debug_state if target
8982 is bsd.
8983
00aecdcf
PA
89842018-04-21 Pedro Alves <palves@redhat.com>
8985 Rajendra SY <rajendra.sy@gmail.com>
8986
8987 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
8988 * remote.c (extended_remote_attach): In all-stop mode, mark the
8989 thread as executing.
8990
224608c3
PW
89912018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8992
8993 * thread.c (thread_apply_all_command): Fix comment.
8994 (thread_command): Fix comment.
8995
3b74854b
AH
89962018-04-10 Alan Hayward <alan.hayward@arm.com>
8997
8998 * common/tdesc.h (tdesc_create_feature): Remove xml filename
8999 parameter.
9000 * features/aarch64-core.c (create_feature_aarch64_core):
9001 Regenerate.
9002 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9003 Likewise.
9004 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9005 Likewise.
9006 * features/i386/32bit-avx512.c
9007 (create_feature_i386_32bit_avx512): Likewise.
9008 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9009 Likewise.
9010 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9011 Likewise.
9012 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9013 Likewise.
9014 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9015 Likewise.
9016 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9017 Likewise.
9018 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9019 Likewise.
9020 * features/i386/64bit-avx512.c
9021 (create_feature_i386_64bit_avx512): Likewise.
9022 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9023 Likewise.
9024 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9025 Likewise.
9026 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9027 Likewise.
9028 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9029 Likewise.
9030 * features/i386/64bit-segments.c
9031 (create_feature_i386_64bit_segments): Likewise.
9032 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9033 Likewise.
9034 * features/i386/x32-core.c
9035 (create_feature_i386_x32_core): Likewise.
9036 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9037 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9038 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9039 * target-descriptions.c: In generated code, don't pass xml
9040 filename.
9041
e98577a9
AH
90422018-04-18 Alan Hayward <alan.hayward@arm.com>
9043
9044 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9045 (print_xml_feature::visit_post): Likewise.
9046 (print_xml_feature::visit): Likewise.
9047 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9048 (print_xml_feature): Add new class.
9049 * regformats/regdat.sh: Null xmltarget on feature targets.
9050 * target-descriptions.c (struct target_desc): Add xmltarget.
9051 (maintenance_check_tdesc_xml_convert): Add unittest function.
9052 (tdesc_get_features_xml): Add function to get xml.
9053 (maintenance_check_xml_descriptions): Test xml generation.
9054 * xml-tdesc.c (string_read_description_xml): Add function.
9055 * xml-tdesc.h (string_read_description_xml): Add declaration.
9056
ad7fc756
AH
90572018-04-18 Alan Hayward <alan.hayward@arm.com>
9058
9059 * features/Makefile: Add feature marker to targets with new style
9060 target descriptions.
9061 * regformats/aarch64.dat: Regenerate.
9062 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9063 * regformats/i386/amd64-avx-linux.dat: Likewise.
9064 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9065 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9066 * regformats/i386/amd64-linux.dat: Likewise.
9067 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9068 * regformats/i386/amd64.dat: Likewise.
9069 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9070 * regformats/i386/i386-avx-linux.dat: Likewise.
9071 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9072 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9073 * regformats/i386/i386-linux.dat: Likewise.
9074 * regformats/i386/i386-mmx-linux.dat: Likewise.
9075 * regformats/i386/i386-mpx-linux.dat: Likewise.
9076 * regformats/i386/i386.dat: Likewise.
9077 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9078 * regformats/i386/x32-avx-linux.dat: Likewise.
9079 * regformats/i386/x32-linux.dat: Likewise.
9080 * regformats/tic6x-c62x-linux.dat: Likewise.
9081 * regformats/tic6x-c64x-linux.dat: Likewise.
9082 * regformats/tic6x-c64xp-linux.dat: Likewise.
9083 * regformats/regdat.sh: Parse feature marker.
9084
d278f585
AH
90852018-04-18 Alan Hayward <alan.hayward@arm.com>
9086
9087 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9088 (tdesc_osabi_name): Likewise.
9089 * target-descriptions.c (tdesc_architecture_name): Add new
9090 function.
9091 (tdesc_osabi_name): Likewise.
9092
eee8a18d
AH
90932018-04-18 Alan Hayward <alan.hayward@arm.com>
9094
9095 * common/tdesc.c (tdesc_predefined_type): Move to here.
9096 (tdesc_named_type): Likewise.
9097 (tdesc_create_vector): Likewise.
9098 (tdesc_create_struct): Likewise.
9099 (tdesc_set_struct_size): Likewise.
9100 (tdesc_create_union): Likewise.
9101 (tdesc_create_flags): Likewise.
9102 (tdesc_create_enum): Likewise.
9103 (tdesc_add_field): Likewise.
9104 (tdesc_add_typed_bitfield): Likewise.
9105 (tdesc_add_bitfield): Likewise.
9106 (tdesc_add_flag): Likewise.
9107 (tdesc_add_enum_value): Likewise.
9108 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9109 (struct tdesc_type_vector): Likewise.
9110 (struct tdesc_type_field): Likewise.
9111 (struct tdesc_type_with_fields): Likewise.
9112 (tdesc_create_enum): Add declaration.
9113 (tdesc_add_typed_bitfield): Likewise.
9114 (tdesc_add_enum_value): Likewise.
9115 * target-descriptions.c (tdesc_type_field): Move from here.
9116 (tdesc_type_builtin): Likewise.
9117 (tdesc_type_vector): Likewise.
9118 (tdesc_type_with_fields): Likewise.
9119 (tdesc_predefined_types): Likewise.
9120 (tdesc_named_type): Likewise.
9121 (tdesc_create_vector): Likewise.
9122 (tdesc_create_struct): Likewise.
9123 (tdesc_set_struct_size): Likewise.
9124 (tdesc_create_union): Likewise.
9125 (tdesc_create_flags): Likewise.
9126 (tdesc_create_enum): Likewise.
9127 (tdesc_add_field): Likewise.
9128 (tdesc_add_typed_bitfield): Likewise.
9129 (tdesc_add_bitfield): Likewise.
9130 (tdesc_add_flag): Likewise.
9131 (tdesc_add_enum_value): Likewise.
9132 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9133 (tdesc_add_typed_bitfield): Likewise.
9134 (tdesc_add_enum_value): Likewise.
9135
82ec9bc7
AH
91362018-04-18 Alan Hayward <alan.hayward@arm.com>
9137
9138 * common/tdesc.c (tdesc_feature::accept): Move to here.
9139 (tdesc_feature::operator==): Likewise.
9140 (tdesc_create_reg): Likewise.
9141 * common/tdesc.h (tdesc_type_kind): Likewise.
9142 (struct tdesc_type): Likewise.
9143 (struct tdesc_feature): Likewise.
9144 * regformats/regdat.sh: Create a feature.
9145 * target-descriptions.c (tdesc_type_kind): Move from here.
9146 (tdesc_type): Likewise.
9147 (tdesc_type_up): Likewise.
9148 (tdesc_feature): Likewise.
9149 (tdesc_create_reg): Likewise.
9150
ea3e7d71
AH
91512018-04-18 Alan Hayward <alan.hayward@arm.com>
9152
9153 * Makefile.in: Add arch/tdesc.c
9154 * common/tdesc.c: New file.
9155 * common/tdesc.h (tdesc_element_visitor): Move to here.
9156 (tdesc_element): Likewise.
9157 (tdesc_reg): Likewise.
9158 (tdesc_reg_up): Likewise.
9159 * regformats/regdef.h (reg): Add offset to constructors.
9160 * target-descriptions.c (tdesc_element_visitor): Move from here.
9161 (tdesc_element): Likewise.
9162 (tdesc_reg): Likewise.
9163 (tdesc_reg_up): Likewise.
9164
bedda9ac
TT
91652018-04-17 Tom Tromey <tom@tromey.com>
9166
9167 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9168 discriminant field.
9169
a037790e
TT
91702018-04-17 Tom Tromey <tom@tromey.com>
9171
9172 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9173
c7dcbf88
AA
91742018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9175
9176 * symtab.c (print_symbol_info): Skip printing filename and line
9177 number when `last' is NULL.
9178 (symtab_symbol_info): Use empty string instead of NULL for first
9179 invocation of print_symbol_info.
9180 (rbreak_command): Pass NULL to `last' parameter of
9181 print_symbol_info.
9182
07d28c77
SM
91832018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9184
9185 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9186 instead of nullptr.
9187
8a3de5e1
PA
91882018-04-16 Pedro Alves <palves@redhat.com>
9189
9190 * MAINTAINERS (sh): Remove.
9191 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9192 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9193 (ALLDEPFILES): Remove sh64-tdep.c.
9194 * NEWS: Mentions that support for SH-5/SH64 is removed.
9195 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9196 (sh*-*-openbsd*): Ditto.
9197 (sh64-*-elf*): Remove.
9198 (sh*): Remove.
9199 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9200 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9201 * sh-tdep.c: No longer include "sh64-tdep.h".
9202 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9203 * sh64-tdep.c, sh64-tdep.h: Remove files.
9204
a2a79012
PA
92052018-04-16 Pedro Alves <palves@redhat.com>
9206
9207 * MAINTAINERS: Remove m88k.
9208 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9209 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9210 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9211 * NEWS: Mention that support for m88k was removed.
9212 * configure.host (m88*-*-*): Remove support.
9213 * configure.nat (m88k-*-*): Remove support.
9214 * configure.tgt (m88*-*-openbsd*): Remove.
9215 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9216
eda4efb1
SM
92172018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9218
9219 * configure.tgt (x86_tobjs): New variable.
9220 (amd64_tobjs, i386_tobjs): Use it.
9221
b744723f
AA
92222018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9223
9224 * symtab.c (print_symbol_info): Precede the symbol definition by
9225 the line number when available.
9226 * NEWS: Advertise this enhancement.
9227
4a4495d6
MM
92282018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9229
9230 * NEWS (New options): announce set/show record btrace cpu.
9231 * btrace.c: Include record-btrace.h.
9232 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9233 the vendor is unknown.
9234 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9235 Maybe overwrite the btrace configuration's cpu.
9236 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9237 (btrace_fetch): Add cpu parameter. Update callers.
9238 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9239 Maybe overwrite the btrace configuration's cpu. Skip enabling
9240 errata workarounds if the vendor is unknown.
9241 * python/py-record-btrace.c: Include record-btrace.h.
9242 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9243 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9244 * record-btrace.c (record_btrace_cpu_state_kind): New.
9245 (record_btrace_cpu): New.
9246 (set_record_btrace_cpu_cmdlist): New.
9247 (record_btrace_get_cpu): New.
9248 (require_btrace_thread, record_btrace_info)
9249 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9250 (cmd_set_record_btrace_cpu_none): New.
9251 (cmd_set_record_btrace_cpu_auto): New.
9252 (cmd_set_record_btrace_cpu): New.
9253 (cmd_show_record_btrace_cpu): New.
9254 (_initialize_record_btrace): Initialize set/show record btrace cpu
9255 commands.
9256 * record-btrace.h (record_btrace_get_cpu): New.
9257
69f90c75
MM
92582018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9259
9260 * record.c (set_record_command): Fix typo in message.
9261
b85310e1
MM
92622018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9263
9264 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9265
1d509aa6
MM
92662018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9267
9268 * infrun.c (process_event_stop_test): Call
9269 gdbarch_in_indirect_branch_thunk.
9270 * gdbarch.sh (in_indirect_branch_thunk): New.
9271 * gdbarch.c: Regenerated.
9272 * gdbarch.h: Regenerated.
9273 * x86-tdep.h: New.
9274 * x86-tdep.c: New.
9275 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9276 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9277 (ALLDEPFILES): Add x86-tdep.c.
9278 * arch-utils.h (default_in_indirect_branch_thunk): New.
9279 * arch-utils.c (default_in_indirect_branch_thunk): New.
9280 * i386-tdep: Include x86-tdep.h.
9281 (i386_in_indirect_branch_thunk): New.
9282 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9283 function.
9284 * amd64-tdep: Include x86-tdep.h.
9285 (amd64_in_indirect_branch_thunk): New.
9286 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9287
b4be9bfd
JK
92882018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9289
9290 PR gdb/23053
9291 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9292 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9293 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9294 regression.
9295
53d7df28
TT
92962018-04-12 Tom Tromey <tom@tromey.com>
9297
9298 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9299 (rust_evaluate_subexp): Likewise.
9300
70b33f19
PA
93012018-04-12 Pedro Alves <palves@redhat.com>
9302
9303 * procfs.c (procfs_detach): Make forward declaration's prototype
9304 match definition's protototype.
9305 (proc_get_LDT_entry): Remove stale do_cleanups call.
9306
436411b1
PA
93072018-04-12 Pedro Alves <palves@redhat.com>
9308
9309 * target.h (target_ops::to_has_exited): Delete.
9310 (target_has_exited): Delete.
9311 * target-delegates.c: Regenerate.
9312
20db9c52
PA
93132018-04-11 Pedro Alves <palves@redhat.com>
9314
9315 * target.c (fileio_fh_t::t): Add comment.
9316 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9317 (target_fileio_close): Handle a NULL target.
9318 (invalidate_fileio_fh): New.
9319 (target_close): Call it.
9320 * remote.c (remote_hostio_send_command): No longer check whether
9321 remote_desc is open.
9322
5ff79300
PA
93232018-04-11 Pedro Alves <palves@redhat.com>
9324
9325 * target.c (fileio_fh_t): Make it a named struct instead of a
9326 typedef.
9327 (fileio_fh_t::is_closed): New method.
9328 (DEF_VEC_O (fileio_fh_t)): Remove.
9329 (fileio_fhandles): Now a std::vector.
9330 (is_closed_fileio_fh): Delete.
9331 (acquire_fileio_fd): Adjust. Rename parameters.
9332 (release_fileio_fd): Adjust.
9333 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9334 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9335 (target_fileio_close): Adjust.
9336
6e22e10d
SM
93372018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9338
9339 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9340 index.
9341
731f534f
PA
93422018-04-10 Pedro Alves <palves@redhat.com>
9343
9344 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9345 (scoped_finish_thread_state): New class.
9346 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9347 cleanup.
9348 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9349 (fetch_inferior_event, normal_stop): Likewise.
9350 * thread.c (finish_thread_state_cleanup): Delete.
9351
d5f4488f
SM
93522018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9353 Pedro Alves <palves@redhat.com>
9354
9355 * value.c: Include "selftest.h" and "common/array-view.h".
9356 (struct range) <operator ==>: New.
9357 (test_ranges_contain): New.
9358 (check_ranges_vector): New.
9359 (test_insert_into_bit_range_vector): New.
9360 (_initialize_values): Register selftests.
9361 * common/array-view.h (operator==, operator!=): New.
9362
b24531ed
SM
93632018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9364
9365 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9366 an iterator.
9367 * inline-frame.c: Include <algorithm>.
9368 (struct inline_state): Add constructor.
9369 (inline_state_s): Remove.
9370 (DEF_VEC_O(inline_state_s)): Remove.
9371 (inline_states): Change type to std::vector.
9372 (find_inline_frame_state): Adjust to std::vector.
9373 (allocate_inline_frame_state): Remove.
9374 (clear_inline_frame_state): Adjust to std::vector.
9375 (skip_inline_frames): Adjust to std::vector.
9376
c252925c
SM
93772018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9378
9379 * tracepoint.h (struct trace_state_variable): Add constructor.
9380 <name>: Change type to std::string.
9381 * tracepoint.c (tsv_s): Remove.
9382 (DEF_VEC_O(tsv_s)): Remove.
9383 (tvariables): Change to std::vector.
9384 (create_trace_state_variable): Adjust to std::vector.
9385 (find_trace_state_variable): Likewise.
9386 (find_trace_state_variable_by_number): Likewise.
9387 (delete_trace_state_variable): Likewise.
9388 (trace_variable_command): Adjust to std::string.
9389 (delete_trace_variable_command): Likewise.
9390 (tvariables_info_1): Adjust to std::vector.
9391 (save_trace_state_variables): Likewise.
9392 (start_tracing): Likewise.
9393 (merge_uploaded_trace_state_variables): Adjust to std::vector
9394 and std::string.
9395 * target.h (struct target_ops)
9396 <to_download_trace_state_variable>: Pass reference to
9397 trace_state_variable.
9398 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9399 * target-delegates.c: Re-generate.
9400 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9401 (mi_tsv_deleted): Likewise.
9402 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9403 * remote.c (remote_download_trace_state_variable): Change
9404 pointer to reference and adjust.
9405 * make-target-delegates (parse_argtypes): Handle references.
9406 (write_function_header): Likewise.
9407 (munge_type): Likewise.
9408
c9638d26
SM
94092018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9410
9411 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9412 string_view-selftests.c.
9413 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9414 testsuite.
9415 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9416 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9417 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9418 * unittests/basic_string_view/element_access/char/1.cc:
9419 Likewise.
9420 * unittests/basic_string_view/element_access/char/empty.cc:
9421 Likewise.
9422 * unittests/basic_string_view/element_access/char/front_back.cc:
9423 Likewise.
9424 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9425 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9426 Likewise.
9427 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9428 Likewise.
9429 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9430 Likewise.
9431 * unittests/basic_string_view/operations/compare/char/1.cc:
9432 Likewise.
9433 * unittests/basic_string_view/operations/compare/char/13650.cc:
9434 Likewise.
9435 * unittests/basic_string_view/operations/copy/char/1.cc:
9436 Likewise.
9437 * unittests/basic_string_view/operations/data/char/1.cc:
9438 Likewise.
9439 * unittests/basic_string_view/operations/find/char/1.cc:
9440 Likewise.
9441 * unittests/basic_string_view/operations/find/char/2.cc:
9442 Likewise.
9443 * unittests/basic_string_view/operations/find/char/3.cc:
9444 Likewise.
9445 * unittests/basic_string_view/operations/find/char/4.cc:
9446 Likewise.
9447 * unittests/basic_string_view/operations/rfind/char/1.cc:
9448 Likewise.
9449 * unittests/basic_string_view/operations/rfind/char/2.cc:
9450 Likewise.
9451 * unittests/basic_string_view/operations/rfind/char/3.cc:
9452 Likewise.
9453 * unittests/basic_string_view/operations/substr/char/1.cc:
9454 Likewise.
9455 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9456 * unittests/string_view-selftests.c: New file.
9457
fdc11678
SM
94582018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9459
9460 * unittests/basic_string_view/capacity/1.cc: New file.
9461 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9462 * unittests/basic_string_view/cons/char/1.cc: New file.
9463 * unittests/basic_string_view/cons/char/2.cc: New file.
9464 * unittests/basic_string_view/cons/char/3.cc: New file.
9465 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9466 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9467 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9468 * unittests/basic_string_view/element_access/char/1.cc: New file.
9469 * unittests/basic_string_view/element_access/char/2.cc: New file.
9470 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9471 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9472 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9473 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9474 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9475 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9476 * unittests/basic_string_view/include.cc: New file.
9477 * unittests/basic_string_view/inserters/char/1.cc: New file.
9478 * unittests/basic_string_view/inserters/char/2.cc: New file.
9479 * unittests/basic_string_view/inserters/char/3.cc: New file.
9480 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9481 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9482 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9483 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9484 * unittests/basic_string_view/literals/types.cc: New file.
9485 * unittests/basic_string_view/literals/values.cc: New file.
9486 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9487 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9488 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9489 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9490 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9491 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9492 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9493 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9494 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9495 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9496 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9497 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9498 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9499 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9500 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9501 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9502 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9503 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9504 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9505 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9506 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9507 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9508 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9509 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9510 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9511 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9512 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9513 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9514 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9515 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9516 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9517 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9518 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9519 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9520 * unittests/basic_string_view/operators/char/2.cc: New file.
9521 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9522 * unittests/basic_string_view/range_access/char/1.cc: New file.
9523 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9524 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9525 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9526 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9527 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9528 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9529 * unittests/basic_string_view/requirements/typedefs.cc: New file.
9530 * unittests/basic_string_view/typedefs.cc: New file.
9531 * unittests/basic_string_view/types/1.cc: New file.
9532
8345c4a2
SM
95332018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9534
9535 * common/gdb_string_view.h: Remove libstdc++ implementation
9536 details, adjust to gdb reality.
9537 * common/gdb_string_view.tcc: Likewise.
9538 * cli/cli-script.c (struct string_view): Remove.
9539 (user_args) <m_args>: Change element type to gdb::string_view.
9540 (user_args::insert_args): Adjust.
9541
7adcdf08
SM
95422018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9543
9544 * common/gdb_string_view.h: New file.
9545 * common/gdb_string_view.tcc: New file.
9546
41260ac2
SM
95472018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9548
9549 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9550 * configure: Re-generate.
9551
0bee6dd4
PA
95522018-04-09 Pedro Alves <palves@redhat.com>
9553
9554 * gdbarch.sh: Include "observable.h" instead of "observer.h".
9555 (set_target_gdbarch): Call
9556 gdb::observers::architecture_changed.notify instead of
9557 observer_notify_architecture_changed.
9558
6f14adc5
SM
95592018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9560
9561 * tracepoint.c (struct current_traceframe_cleanup): Remove.
9562 (do_restore_current_traceframe_cleanup): Remove.
9563 (restore_current_traceframe_cleanup_dtor): Remove.
9564 (make_cleanup_restore_current_traceframe): Remove.
9565 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
9566 New.
9567 * tracepoint.h (struct scoped_restore_current_traceframe): New.
9568 * infrun.c (fetch_inferior_event): Use
9569 scoped_restore_current_traceframe.
9570
b2bdb8cf
SM
95712018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9572
9573 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
9574 Remove.
9575 <n_allocated_type_units>: Remove.
9576 <all_type_units>: Change to std::vector.
9577 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9578 to std::vector change.
9579 (dwarf2_per_objfile::get_cutu): Likewise.
9580 (dwarf2_per_objfile::get_tu): Likewise.
9581 (create_signatured_type_table_from_index): Likewise.
9582 (create_signatured_type_table_from_debug_names): Likewise.
9583 (dw2_symtab_iter_next): Likewise.
9584 (dw2_print_stats): Likewise.
9585 (dw2_expand_all_symtabs): Likewise.
9586 (dw2_expand_marked_cus): Likewise.
9587 (dw2_debug_names_iterator::next): Likewise.
9588 (dwarf2_initialize_objfile): Likewise.
9589 (add_signatured_type_cu_to_table): Likewise.
9590 (create_all_type_units): Likewise.
9591 (add_type_unit): Likewise.
9592 (struct tu_abbrev_offset): Add constructor.
9593 (build_type_psymtabs_1): Adjust to std::vector change.
9594 (print_tu_stats): Likewise.
9595 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9596 (write_debug_names): Likewise.
9597
b76e467d
SM
95982018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9599
9600 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
9601 Make an std::vector.
9602 <n_comp_units>: Remove.
9603 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9604 to std::vector change.
9605 (dwarf2_per_objfile::get_cutu): Likewise.
9606 (dwarf2_per_objfile::get_cu): Likewise.
9607 (create_cus_from_index): Likewise.
9608 (create_addrmap_from_index): Likewise.
9609 (create_addrmap_from_aranges): Likewise.
9610 (dwarf2_read_index): Likewise.
9611 (dw2_find_last_source_symtab): Likewise.
9612 (dw2_map_symtabs_matching_filename): Likewise.
9613 (dw2_symtab_iter_next): Likewise.
9614 (dw2_print_stats): Likewise.
9615 (dw2_expand_all_symtabs): Likewise.
9616 (dw2_expand_symtabs_with_fullname): Likewise.
9617 (dw2_expand_marked_cus): Likewise.
9618 (dw2_map_symbol_filenames): Likewise.
9619 (create_cus_from_debug_names): Likewise.
9620 (dwarf2_read_debug_names): Likewise.
9621 (dw2_debug_names_iterator::next): Likewise.
9622 (dwarf2_initialize_objfile): Likewise.
9623 (set_partial_user): Likewise.
9624 (dwarf2_build_psymtabs_hard): Likewise.
9625 (read_comp_units_from_section): Remove arguments, adjust to
9626 std::vector change.
9627 (create_all_comp_units): Adjust to std::vector and
9628 read_comp_units_from_section changes.
9629 (dwarf2_find_containing_comp_unit): Adjust to std::vector
9630 change.
9631 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9632 (psyms_seen_size): Likewise.
9633 (write_gdbindex): Likewise.
9634 (write_debug_names): Likewise.
9635
12359b5e
SM
96362018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9637
9638 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
9639 with dwarf2_per_objfile.
9640 (create_cus_from_index): Likewise.
9641 (create_signatured_type_table_from_index): Likewise.
9642 (dwarf2_read_index): Likewise.
9643 (dwarf2_initialize_objfile): Likewise.
9644 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
9645 per_cu rather than get_dwarf2_per_objfile.
9646
ff4c9fec
SM
96472018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9648
9649 * dwarf2read.h (struct signatured_type): Forward declare.
9650 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
9651 New methods.
9652 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
9653 (dw2_get_cutu): ...this.
9654 (dwarf2_per_objfile::get_cu): Rename from...
9655 (dw2_get_cu): ...this.
9656 (dwarf2_per_objfile::get_tu): New.
9657 (create_addrmap_from_index): Adjust.
9658 (create_addrmap_from_aranges): Adjust.
9659 (dw2_find_last_source_symtab): Adjust.
9660 (dw2_map_symtabs_matching_filename): Adjust.
9661 (dw2_symtab_iter_next): Adjust.
9662 (dw2_print_stats): Adjust.
9663 (dw2_expand_all_symtabs): Adjust.
9664 (dw2_expand_symtabs_with_fullname): Adjust.
9665 (dw2_expand_marked_cus): Adjust.
9666 (dw_expand_symtabs_matching_file_matcher): Adjust.
9667 (dw2_map_symbol_filenames): Adjust.
9668 (dw2_debug_names_iterator::next): Adjust.
9669 (dwarf2_initialize_objfile): Adjust.
9670 (set_partial_user): Adjust.
9671 (dwarf2_build_psymtabs_hard): Adjust.
9672
5ca3fcb6
SM
96732018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9674
9675 * dwarf2read.c (create_signatured_type_table_from_debug_names):
9676 Remove unused variables.
9677 (dw2_map_symtabs_matching_filename): Likewise.
9678 (dwarf2_record_block_ranges): Likewise.
9679 (dwarf2_read_addr_index): Likewise.
9680 (follow_die_offset): Likewise.
9681
b2e586e8
SM
96822018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9683
9684 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
9685 to symbol_file_add_main.
9686
7c4e78cf
SM
96872018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9688
9689 PR mi/22299
9690 * mi/mi-console.c (do_fputc_async_safe): New.
9691 (mi_console_file::write_async_safe): New.
9692 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
9693 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
9694 New.
9695 * ui-file.c (ui_file::putstrn): Adjust call to
9696 fputstrn_unfiltered.
9697 * utils.c (printchar): Replace do_fputs and do_fprintf
9698 parameters by do_fputc.
9699 (fputstr_filtered): Adjust call to printchar.
9700 (fputstr_unfiltered): Likewise.
9701 (fputstrn_filtered): Likewise.
9702 (fputstrn_unfiltered): Add do_fputc parameter, pass to
9703 printchar.
9704 * utils.h (do_fputc_ftype): New typedef.
9705 (fputstrn_unfiltered): Add do_fputc parameter.
9706
5dc026d3
SM
97072018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9708
9709 * regformats/i386/i386-avx.dat: Remove.
9710
c912f608
SM
97112018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9712
9713 PR gdb/22979
9714 * amd64-tdep.c (amd64_none_init_abi): New function.
9715 (amd64_x32_none_init_abi): New function.
9716 (_initialize_amd64_tdep): Register handlers for x86-64 and
9717 x64_32 with GDB_OSABI_NONE.
9718 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
9719 GDB_OSABI_NONE osabi.
9720
26540402
SM
97212018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9722
9723 PR gdb/22980
9724 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
9725 GDB_OSABI_NONE.
9726 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
9727 * osabi.c (gdb_osabi_names): Add "unknown" entry.
9728
9018be22
SM
97292018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9730
9731 * common/byte-vector.h (char_vector): New type.
9732 * target.h (target_read_alloc): Return
9733 gdb::optional<byte_vector>.
9734 (target_read_stralloc): Return gdb::optional<char_vector>.
9735 (target_get_osdata): Return gdb::optional<char_vector>.
9736 * target.c (target_read_alloc_1): Templatize. Replacement
9737 manual memory management with vector.
9738 (target_read_alloc): Change return type, adjust.
9739 (target_read_stralloc): Change return type, adjust.
9740 (target_get_osdata): Change return type, adjust.
9741 * auxv.c (struct auxv_info) <length>: Remove.
9742 <data>: Change type to gdb::optional<byte_vector>.
9743 (auxv_inferior_data_cleanup): Free auxv_info with delete.
9744 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
9745 (target_auxv_search): Adjust.
9746 (fprint_target_auxv): Adjust.
9747 * avr-tdep.c (avr_io_reg_read_command): Adjust.
9748 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
9749 (linux_make_corefile_notes): Adjust.
9750 * osdata.c (get_osdata): Adjust.
9751 * remote.c (remote_get_threads_with_qxfer): Adjust.
9752 (remote_memory_map): Adjust.
9753 (remote_traceframe_info): Adjust.
9754 (btrace_read_config): Adjust.
9755 (remote_read_btrace): Adjust.
9756 (remote_pid_to_exec_file): Adjust.
9757 * solib-aix.c (solib_aix_get_library_list): Adjust.
9758 * solib-dsbt.c (decode_loadmap): Don't free buf.
9759 (dsbt_get_initial_loadmaps): Adjust.
9760 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
9761 * solib-target.c (solib_target_current_sos): Adjust.
9762 * tracepoint.c (sdata_make_value): Adjust.
9763 * xml-support.c (xinclude_start_include): Adjust.
9764 (xml_fetch_content_from_file): Adjust.
9765 * xml-support.h (xml_fetch_another): Change return type.
9766 (xml_fetch_content_from_file): Change return type.
9767 * xml-syscall.c (xml_init_syscalls_info): Adjust.
9768 * xml-tdesc.c (file_read_description_xml): Adjust.
9769 (fetch_available_features_from_target): Change return type.
9770 (target_fetch_description_xml): Adjust.
9771 (target_read_description_xml): Adjust.
9772
14c88955
TT
97732018-04-06 Tom Tromey <tom@tromey.com>
9774
9775 * value.c (~value): Update.
9776 (struct value) <contents>: Now unique_xmalloc_ptr.
9777 (value_contents_bits_eq, allocate_value_contents)
9778 (value_contents_raw, value_contents_all_raw)
9779 (value_contents_for_printing, value_contents_for_printing_const)
9780 (set_value_enclosing_type): Update.
9781
0c7e6dd8
TT
97822018-04-06 Tom Tromey <tom@tromey.com>
9783
9784 * value.c (range_s): Remove typedef, VEC.
9785 (struct range): Add operator<.
9786 (range_lessthan): Remove.
9787 (ranges_contain): Change type.
9788 (~value): Update.
9789 (struct value) <unavailable, optimized_out>: Now std::vector.
9790 (value_entirely_available)
9791 (value_entirely_covered_by_range_vector)
9792 (value_entirely_unavailable, value_entirely_optimized_out):
9793 Update.
9794 (insert_into_bit_range_vector): Change argument type.
9795 (find_first_range_overlap): Likewise.
9796 (struct ranges_and_idx, value_contents_bits_eq)
9797 (require_not_optimized_out, require_available): Update.
9798 (ranges_copy_adjusted): Change argument types.
9799 (value_optimized_out, value_copy, value_fetch_lazy): Update.
9800
2c8331b9
TT
98012018-04-06 Tom Tromey <tom@tromey.com>
9802
9803 * value.c (~value): Update.
9804 (struct value) <parent>: Now a value_ref_ptr.
9805 (value_parent, set_value_parent, value_address, value_copy):
9806 Update.
9807
466ce3ae
TT
98082018-04-06 Tom Tromey <tom@tromey.com>
9809
9810 * value.c (struct value): Add constructor, destructor, and member
9811 initializers.
9812 (allocate_value_lazy, value_decref): Update.
9813
062d818d
TT
98142018-04-06 Tom Tromey <tom@tromey.com>
9815
9816 * value.c (struct value) <released, next>: Remove.
9817 (all_values): Now a std::vector.
9818 (allocate_value_lazy): Update.
9819 (value_next): Remove.
9820 (value_mark, value_free_to_mark, release_value)
9821 (value_release_to_mark): Update.
9822
a6535de1
TT
98232018-04-06 Tom Tromey <tom@tromey.com>
9824
9825 * value.h (fetch_subexp_value, value_release_to_mark): Update.
9826 (free_value_chain): Remove.
9827 * value.c (free_value_chain): Remove.
9828 (value_release_to_mark): Return a std::vector.
9829 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
9830 std::vector.
9831 (check_condition): Update.
9832 * eval.c (fetch_subexp_value): Change "val_chain" to a
9833 std::vector.
9834 * breakpoint.c (update_watchpoint): Update.
9835 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
9836
b5621201
TT
98372018-04-06 Tom Tromey <tom@tromey.com>
9838
9839 * value.h (free_all_values): Remove.
9840 * value.c (free_all_values): Remove.
9841
4d0266a0
TT
98422018-04-06 Tom Tromey <tom@tromey.com>
9843
9844 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
9845 (value_history_chain, value_history_count): Remove.
9846 (value_history): New global.
9847 (record_latest_value, access_value_history, show_values)
9848 (preserve_values): Update.
9849
b4d61099
TT
98502018-04-06 Tom Tromey <tom@tromey.com>
9851
9852 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
9853 * varobj.c (varobj_set_display_format, varobj_set_value)
9854 (install_default_visualizer, construct_visualizer)
9855 (install_new_value, ~varobj, varobj_get_value_type)
9856 (my_value_of_variable, varobj_editable_p): Update.
9857 * c-varobj.c (c_describe_child, c_value_of_variable)
9858 (cplus_number_of_children, cplus_describe_child): Update.
9859 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
9860 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
9861 (ada_value_of_variable, ada_value_is_changeable_p): Update.
9862
9b558729
TT
98632018-04-06 Tom Tromey <tom@tromey.com>
9864
9865 * printcmd.c (last_examine_address): Change type to
9866 value_ref_ptr.
9867 (do_examine, x_command): Update.
9868
850645cf
TT
98692018-04-06 Tom Tromey <tom@tromey.com>
9870
9871 * value.c (release_value): Update.
9872 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
9873 (struct bpstats) <val>: Now a value_ref_ptr.
9874 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9875 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9876 (~watchpoint, print_it_watchpoint, watch_command_1)
9877 (invalidate_bp_value_on_memory_change): Update.
9878
22bc8444
TT
98792018-04-06 Tom Tromey <tom@tromey.com>
9880
9881 * varobj.c (varobj_clear_saved_item)
9882 (update_dynamic_varobj_children, install_new_value, ~varobj):
9883 Update.
9884 * value.h (value_incref): Move declaration earlier.
9885 (value_decref): Rename from value_free.
9886 (struct value_ref_policy): New.
9887 (value_ref_ptr): New typedef.
9888 (struct value_deleter): Remove.
9889 (gdb_value_up): Remove typedef.
9890 (release_value): Change return type.
9891 (release_value_or_incref): Remove.
9892 * value.c (set_value_parent): Update.
9893 (value_incref): Change return type.
9894 (value_decref): Rename from value_free.
9895 (value_free_to_mark, free_all_values, free_value_chain): Update.
9896 (release_value): Return value_ref_ptr.
9897 (release_value_or_incref): Remove.
9898 (record_latest_value, set_internalvar, clear_internalvar):
9899 Update.
9900 * stack.c (info_frame_command): Don't call value_free.
9901 * python/py-value.c (valpy_dealloc, valpy_new)
9902 (value_to_value_object): Update.
9903 * printcmd.c (do_examine): Update.
9904 * opencl-lang.c (lval_func_free_closure): Update.
9905 * mi/mi-main.c (register_changed_p): Don't call value_free.
9906 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
9907 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
9908 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
9909 value_free.
9910 * guile/scm-value.c (vlscm_free_value_smob)
9911 (vlscm_scm_from_value): Update.
9912 * frame.c (frame_register_unwind, frame_unwind_register_signed)
9913 (frame_unwind_register_unsigned, get_frame_register_bytes)
9914 (put_frame_register_bytes): Don't call value_free.
9915 * findvar.c (address_from_register): Don't call value_free.
9916 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
9917 * dwarf2loc.c (entry_data_value_free_closure)
9918 (value_of_dwarf_reg_entry, free_pieced_value_closure)
9919 (dwarf2_evaluate_loc_desc_full): Update.
9920 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9921 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9922 (~watchpoint, watch_command_1)
9923 (invalidate_bp_value_on_memory_change): Update.
9924 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
9925
7f8a5d38
SM
99262018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
9927
9928 PR gdb/23022
9929 * warning.m4: Add -Wno-error=deprecated-register.
9930 * configure: Re-generate.
9931
8a76bd3b
TT
99322018-04-05 Tom Tromey <tom@tromey.com>
9933
9934 * linespec.h: Remove include of "vec.h".
9935
8e8d776e
TT
99362018-04-05 Tom Tromey <tom@tromey.com>
9937
9938 * linespec.c (typep): Remove typedef.
9939 (find_methods, find_superclass_methods): Take a std::vector.
9940 (find_method): Use std::vector.
9941
9b2f8581
TT
99422018-04-05 Tom Tromey <tom@tromey.com>
9943
9944 * utils.c (compare_strings): Remove.
9945 * utils.h (compare_strings): Remove.
9946 * objc-lang.h (find_imps): Update.
9947 * objc-lang.c (find_methods): Take a std::vector.
9948 (uniquify_strings, find_imps): Likewise.
9949 * linespec.c (find_methods): Take a std::vector.
9950 (decode_objc): Use std::vector.
9951 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
9952 a std::vector.
9953 (find_method, find_function_symbols): Use std::vector.
9954
459a2e4c
TT
99552018-04-05 Tom Tromey <tom@tromey.com>
9956
9957 * completer.c (completion_tracker::completion_tracker): Remove
9958 cast.
9959 (completion_tracker::discard_completions): Likewise.
9960 * breakpoint.c (ambiguous_names_p): Remove cast.
9961 * ada-lang.c (_initialize_ada_language): Remove cast.
9962 * utils.h (streq): Update.
9963 (streq_hash): Add new declaration.
9964 * utils.c (streq): Return bool.
9965 (streq_hash): New function.
9966
9be2c17a
TT
99672018-04-05 Tom Tromey <tom@tromey.com>
9968
9969 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
9970 Remove a string copy.
9971
f73c6ece
TT
99722018-04-05 Tom Tromey <tom@tromey.com>
9973
9974 * linespec.c (filter_results): Use std::vector.
9975 (decode_line_2, decode_line_full): Update.
9976
53a0f8a2
TT
99772018-04-05 Tom Tromey <tom@tromey.com>
9978
9979 * linespec.c (canonical_to_fullform): Return std::string.
9980 (filter_results): Update.
9981 (struct decode_line_2_item): Add constructor.
9982 <fullform, displayform>: Now std::string.
9983 (decode_line_2_compare_items): Now a std::sort comparator.
9984 (decode_line_2): Update.
9985
a5b5adf5
TT
99862018-04-05 Tom Tromey <tom@tromey.com>
9987
9988 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
9989 (unexpected_linespec_error): Update.
9990 (linespec_parse_basic, parse_linespec): Update.
9991
6a307fc5
TT
99922018-04-05 Tom Tromey <tom@tromey.com>
9993
9994 * linespec.c (linespec_parse_basic): Reindent.
9995
41c1efc6
TT
99962018-04-05 Tom Tromey <tom@tromey.com>
9997
9998 * minsyms.h (iterate_over_minimal_symbols): Update.
9999 * minsyms.c (iterate_over_minimal_symbols): Take a
10000 gdb::function_view.
10001 * linespec.c (struct collect_minsyms): Remove.
10002 (compare_msyms): Now a std::sort comparator.
10003 (add_minsym): Add parameters.
10004 (search_minsyms_for_name): Update. Use std::vector.
10005
c5edbf3d
TT
100062018-04-03 Tom Tromey <tom@tromey.com>
10007
10008 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10009 gdb::byte_vector.
10010
b39efc48
WP
100112018-04-02 Weimin Pan <weimin.pan@oracle.com>
10012
10013 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10014
121ad66c 100152018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
10016
10017 PR gdb/16959
10018 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10019 printing static type.
10020
09473be8
TT
100212018-04-01 Tom Tromey <tom@tromey.com>
10022
10023 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10024 (rs6000_xfer_shared_libraries): Update.
10025
ec1f2d91
SM
100262018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10027
10028 * common/gdb_vecs.h (char_ptr): Remove.
10029 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10030
d8611974
SM
100312018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10032
10033 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10034 with std::vector.
10035 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10036
a18ba4e4
SM
100372018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10038
10039 * tracepoint.h (struct uploaded_tp): Initialize fields.
10040 <actions, step_actions, cmd_strings>: Change type to
10041 std::vector<char *>.
10042 * tracepoint.c (get_uploaded_tp): Allocate with new.
10043 (free_uploaded_tps): Free with delete.
10044 (parse_tracepoint_definition): Adjust to std::vector change.
10045 * breakpoint.c (read_uploaded_action): Likewise.
10046 (create_tracepoint_from_upload): Likewise.
10047 * ctf.c (ctf_write_uploaded_tp): Likewise.
10048 (SET_ARRAY_FIELD): Likewise.
10049 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10050
a7961323
TT
100512018-03-30 Tom Tromey <tom@tromey.com>
10052
10053 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10054 std::unique_ptr.
10055 (svr4_keep_data_in_core): Update.
10056 (svr4_read_so_list): Update.
10057
e83e4e24
TT
100582018-03-30 Tom Tromey <tom@tromey.com>
10059
10060 * windows-nat.c (handle_output_debug_string, handle_exception):
10061 Update.
10062 * target.h (target_read_string): Update.
10063 * target.c (target_read_string): Change "string" to
10064 unique_xmalloc_ptr.
10065 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10066 Update.
10067 * solib-frv.c (frv_current_sos): Update.
10068 * solib-dsbt.c (dsbt_current_sos): Update.
10069 * solib-darwin.c (darwin_current_sos): Update.
10070 * linux-thread-db.c (inferior_has_bug): Update.
10071 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10072 Update. Remove alloca.
10073 * ada-lang.c (ada_main_name): Update.
10074
263db9a1
TT
100752018-03-30 Tom Tromey <tom@tromey.com>
10076
10077 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10078 (struct dwo_file_deleter): New.
10079 (dwo_file_up): New typedef.
10080 (open_and_init_dwo_file): Use dwo_file_up.
10081 (free_dwo_file_cleanup): Remove.
10082
5dafb3d1
TT
100832018-03-30 Tom Tromey <tom@tromey.com>
10084
10085 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10086 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10087
11ed8cad
TT
100882018-03-30 Tom Tromey <tom@tromey.com>
10089
10090 * dwarf2read.c (class free_cached_comp_units): New class.
10091 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10092 (free_cached_comp_units): Remove function.
10093
9ae79dac
TT
100942018-03-30 Tom Tromey <tom@tromey.com>
10095
10096 * utils.h (make_cleanup_unpush_target): Remove.
10097 * inf-ptrace.c (struct target_unpusher): New.
10098 (target_unpush_up) New typedef.
10099 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10100 target_unpush_up.
10101 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10102
5aa89276
TT
101032018-03-27 Tom Tromey <tom@tromey.com>
10104
10105 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10106
1dbeed45
TT
101072018-03-27 Pedro Alves <palves@redhat.com>
10108 Tom Tromey <tom@tromey.com>
10109
10110 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10111 destructor. Now a class.
10112 (gdb_readline_wrapper_cleanup): Remove function.
10113 (gdb_readline_wrapper): Remove cleanups.
10114
c819b2c0
TT
101152018-03-27 Tom Tromey <tom@tromey.com>
10116
10117 * typeprint.h (struct type_print_options) <local_typedefs,
10118 global_typedefs>: Remove "struct" keyword.
10119 (class typedef_hash_table): New class.
10120 (recursively_update_typedef_hash, add_template_parameters)
10121 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10122 (find_typedef_in_hash): Don't declare.
10123 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10124 (typedef_hash_table::recursively_update): Rename from
10125 recursively_update_typedef_hash. Now a member.
10126 (typedef_hash_table::add_template_parameters): Rename from
10127 add_template_parameters. Now a member.
10128 (typedef_hash_table::typedef_hash_table): Now a constructor;
10129 rename from create_typedef_hash.
10130 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10131 rename from free_typedef_hash.
10132 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10133 (do_free_global_table): Remove.
10134 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10135 from copy_type_recursive.
10136 (create_global_typedef_table): Remove.
10137 (typedef_hash_table::find_global_typedef): Now a member of
10138 typedef_hash_table.
10139 (typedef_hash_table::find_typedef): Rename from
10140 find_typedef_in_hash; now a member.
10141 (whatis_exp): Update.
10142 * extension.h (struct ext_lang_type_printers): Add constructor and
10143 destructor.
10144 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10145 declare.
10146 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10147 Now a constructor; rename from start_ext_lang_type_printers.
10148 (ext_lang_type_printers): Now a destructor; rename from
10149 free_ext_lang_type_printers.
10150 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10151 Update.
10152 (c_type_print_base_struct_union): Update. Remove cleanups.
10153
608219fb
TT
101542018-03-27 Tom Tromey <tom@tromey.com>
10155
10156 * dwarf-index-write.c: Include <cmath>.
10157
3fcded8f
JB
101582018-03-27 Joel Brobecker <brobecker@adacore.com>
10159
10160 * NEWS: Add entry describing new "set|show varsize-limit" command.
10161 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10162 command.
10163 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10164 "set variable".
10165
cd4fb1b2
SM
101662018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10167
10168 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10169 dwarf-index-write.c
10170 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10171 * dwarf-index-common.c: New file.
10172 * dwarf-index-common.h: New file.
10173 * dwarf-index-write.c: New file.
10174 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10175 (struct dwarf2_section_info): Move from here.
10176 (dwarf2_section_info_def): Likewise.
10177 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10178 (offset_type): Likewise.
10179 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10180 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10181 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10182 (byte_swap): Likewise.
10183 (MAYBE_SWAP): Likewise.
10184 (dwarf2_per_cu_ptr): Likewise.
10185 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10186 (struct tu_stats): Likewise.
10187 (struct dwarf2_per_objfile): Likewise.
10188 (struct dwarf2_per_cu_data): Likewise.
10189 (struct signatured_type): Likewise.
10190 (sig_type_ptr): Likewise.
10191 (DEF_VEC_P (sig_type_ptr)): Likewise.
10192 (INDEX4_SUFFIX): Likewise.
10193 (INDEX5_SUFFIX): Likewise.
10194 (DEBUG_STR_SUFFIX): Likewise.
10195 (dwarf2_read_section): Make non-static.
10196 (mapped_index_string_hash): Move from here.
10197 (dwarf5_djb_hash): Likewise.
10198 (file_write): Likewise.
10199 (class data_buf): Likewise.
10200 (struct symtab_index_entry): Likewise.
10201 (struct mapped_symtab): Likewise.
10202 (find_slot): Likewise.
10203 (hash_expand): Likewise.
10204 (add_index_entry): Likewise.
10205 (uniquify_cu_indices): Likewise.
10206 (class c_str_view): Likewise.
10207 (class c_str_view_hasher): Likewise.
10208 (class vector_hasher): Likewise.
10209 (write_hash_table): Likewise.
10210 (psym_index_map): Likewise.
10211 (struct addrmap_index_data): Likewise.
10212 (add_address_entry): Likewise.
10213 (add_address_entry_worker): Likewise.
10214 (write_address_map): Likewise.
10215 (symbol_kind): Likewise.
10216 (write_psymbols): Likewise.
10217 (struct signatured_type_index_data): Likewise.
10218 (write_one_signatured_type): Likewise.
10219 (recursively_count_psymbols): Likewise.
10220 (recursively_write_psymbols): Likewise.
10221 (class debug_names): Likewise.
10222 (check_dwarf64_offsets): Likewise.
10223 (psyms_seen_size): Likewise.
10224 (write_gdbindex): Likewise.
10225 (write_debug_names): Likewise.
10226 (assert_file_size): Likewise.
10227 (write_psymtabs_to_index): Likewise.
10228 (save_gdb_index_command): Likewise.
10229 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10230 command.
10231 * dwarf2read.h: New file.
10232
59cc4834
JB
102332018-03-27 Joel Brobecker <brobecker@adacore.com>
10234
10235 PR gdb/22670
10236 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10237 symbol name if the CU's language stores symbol names in linkage
10238 format.
10239 * language.h (struct language_defn)
10240 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10241 all instances of this struct.
10242
67501539
TT
102432018-03-26 Tom Tromey <tom@tromey.com>
10244
10245 * stack.c (backtrace_command_1): Remove verbose code.
10246
76c939ac
TT
102472018-03-26 Tom Tromey <tom@tromey.com>
10248
10249 * python/py-framefilter.c (py_print_type): Don't catch
10250 exceptions. Return void.
10251 (py_print_value): Likewise.
10252 (py_print_single_arg): Likewise.
10253 (enumerate_args): Don't catch exceptions.
10254 (py_print_args): Likewise.
10255 (py_print_frame): Likewise.
10256 (gdbpy_apply_frame_filter): Catch exceptions here.
10257
9507b29c
TT
102582018-03-26 Tom Tromey <tom@tromey.com>
10259
10260 * stack.c (_initialize_stack): Remove trailing newlines from help
10261 text. Add "Usage" line to "backtrace" help.
10262
eb68e487
TT
102632018-03-26 Tom Tromey <tom@tromey.com>
10264
10265 PR python/16486:
10266 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10267
1f111921
TT
102682018-03-26 Tom Tromey <tom@tromey.com>
10269
10270 * python/py-framefilter.c (py_print_single_arg): Return
10271 EXT_LANG_BT_ERROR from catch.
10272
fb7eb8b5
TT
102732018-03-26 Tom Tromey <tom@tromey.com>
10274
10275 PR backtrace/15584:
10276 * stack.c (backtrace_command_1): Move some code into no-filters
10277 "if".
10278
4ca59a9f
TT
102792018-03-26 Tom Tromey <tom@tromey.com>
10280
10281 * python/py-framefilter.c (throw_quit_or_print_exception): New
10282 function.
10283 (gdbpy_apply_frame_filter): Use it.
10284
92256134
TT
102852018-03-26 Tom Tromey <tom@tromey.com>
10286
10287 PR cli/17716:
10288 * python/py-framefilter.c (py_print_type, py_print_value)
10289 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10290 RETURN_MASK_ERROR.
10291
7a630bc2
TT
102922018-03-26 Tom Tromey <tom@tromey.com>
10293
10294 * python/py-framefilter.c (enumerate_args): Use
10295 gdb::unique_xmalloc_ptr.
10296
63283d4a
TT
102972018-03-26 Tom Tromey <tom@tromey.com>
10298
10299 * python/py-framefilter.c (py_print_frame): Return
10300 EXT_LANG_BT_OK.
10301 (gdbpy_apply_frame_filter): Update comment.
10302 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10303 Remove.
10304 <EXT_LANG_BT_NO_FILTERS>: Change value.
10305
978d6c75
TT
103062018-03-26 Tom Tromey <tom@tromey.com>
10307
10308 PR backtrace/15582:
10309 * stack.c (backtrace_command): Parse "hide" argument.
10310 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10311 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10312 constant.
10313
1cf7e640
TT
103142018-03-26 Tom Tromey <tom@tromey.com>
10315
10316 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10317 add "flags".
10318 (backtrace_command): Remove "fulltrace", add "flags".
10319
ea3b0687
TT
103202018-03-26 Tom Tromey <tom@tromey.com>
10321
10322 * stack.c (backtrace_command): Rewrite command line parsing.
10323
9f034d75
SM
103242018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10325
10326 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10327
ce1459e5
SM
103282018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10329
10330 * filename-seen-cache.h: Add include guard.
10331
4f7ae6f5
KS
103322018-03-26 Keith Seitz <keiths@redhat.com>
10333
10334 * symfile.c (place_section): Remove "struct" from section_addr_info
10335 in comment.
10336 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10337 "struct" keyword from section_addr_info.
10338
5cd3e386
AH
103392018-03-26 Alan Hayward <alan.hayward@arm.com>
10340
10341 * regformats/regdef.h (reg): Add constructors.
10342
3e5ef9a4
PA
103432018-03-25 Pedro Alves <palves@redhat.com>
10344
10345 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10346 if then/else bodies in var_func_name extraction.
10347
c88d2fcc 103482018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
10349
10350 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10351 lookup_minimal_symbol() to find symbol entry.
10352 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10353
b7fee5a3
KS
103542018-03-23 Keith Seitz <keiths@redhat.com>
10355
10356 PR c++/22968
10357 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10358 nested type definitions for C++, too.
10359
2cc9b304
TT
103602018-03-23 Tom Tromey <tom@tromey.com>
10361
10362 * machoread.c (struct oso_el): Add a constructor. Don't define as
10363 a typedef.
10364 (macho_register_oso): Remove.
10365 (macho_symtab_read): Take a std::vector.
10366 (oso_el_compare_name): Now a std::sort comparator.
10367 (macho_symfile_read_all_oso): Take a std::vector.
10368 (macho_symfile_read): Use std::vector. Remove cleanups.
10369
a2b2bc12
TT
103702018-03-22 Tom Tromey <tom@tromey.com>
10371
10372 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10373 (record_full_goto_bookmark): Use std::string.
10374
7a8f494c
PFC
103752018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10376
10377 PR tdep/18295
10378 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10379 a single mask.
10380
dd6d677f
PFC
103812018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10382
10383 * rs6000-tdep.c (store_insn_p): New function.
10384 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10385 and cr_reg to their unshifted values. Use store_insn_p to
10386 match LR saves using either R1 or fdata->alloca_reg. Use
10387 store_insn_p to match CR saves. Set alloca_reg_offset
10388 when alloca_reg and framep are set. Remove lr_reg shift
10389 when assigning to fdata->lr_register.
10390
26d6cec4
AA
103912018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10392
10393 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10394 command line args instead of emitting a warning.
10395
5d9310c4
SM
103962018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10397
10398 * tracepoint.h (struct static_tracepoint_marker): Initialize
10399 fields, define default constructor, move constructor and move
10400 assignment, disable the rest.
10401 <str_id, extra>: Make std::string.
10402 (release_static_tracepoint_marker): Remove.
10403 (free_current_marker): Remove.
10404 * tracepoint.c (free_current_marker): Remove.
10405 (parse_static_tracepoint_marker_definition): Adjust to
10406 std::string, use new hex2str overload.
10407 (release_static_tracepoint_marker): Remove.
10408 (print_one_static_tracepoint_marker): Get marker by reference
10409 and adjust to std::string.
10410 (info_static_tracepoint_markers_command): Adjust to std::vector
10411 changes
10412 * target.h (static_tracepoint_marker_p): Remove typedef.
10413 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10414 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10415 bool.
10416 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10417 * target-debug.h
10418 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10419 (target_debug_print_std_vector_static_tracepoint_marker): New.
10420 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10421 to...
10422 (target_debug_print_static_tracepoint_marker_p): ... this.
10423 * target-delegates.c: Re-generate.
10424 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10425 Make std::string.
10426 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10427 (decode_static_tracepoint_spec): Adjust to std::vector.
10428 (tracepoint_print_one_detail): Adjust to std::string.
10429 (strace_marker_decode_location): Adjust to std::string.
10430 (update_static_tracepoint): Adjust to std::string, remove call
10431 to release_static_tracepoint_marker.
10432 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10433 Adjust to std::vector.
10434 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10435 (remote_static_tracepoint_markers_by_strid): Adjust to
10436 std::vector.
10437 * common/rsp-low.h (hex2str): New overload with explicit count
10438 of bytes.
10439 * common/rsp-low.c (hex2str): New overload with explicit count
10440 of bytes.
10441 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10442 (_initialize_rsp_low_selftests): Add test_hex2str test.
10443 * unittests/tracepoint-selftests.c
10444 (test_parse_static_tracepoint_marker_definition): Adjust to
10445 std::string.
10446
62c222b6
SM
104472018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10448
10449 * tracepoint.c (parse_static_tracepoint_marker_definition):
10450 Consider case where the definition is followed by more
10451 definitions.
10452 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10453 tracepoint-selftests.c.
10454 * unittests/tracepoint-selftests.c: New.
10455
7eb2418f
PFC
104562018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10457
10458 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10459 Carvalho.
10460
7cbe16e9
SR
104612018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10462
3d6b3b82 10463 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 10464
4ee89e90
SR
104652018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10466
3d6b3b82 10467 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 10468
92630041
TT
104692018-03-19 Tom Tromey <tom@tromey.com>
10470
10471 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10472 "IDENT" production.
10473
76727919
TT
104742018-03-19 Pedro Alves <palves@redhat.com>
10475 Tom Tromey <tom@tromey.com>
10476
10477 * unittests/observable-selftests.c: New file.
10478 * common/observable.h: New file.
10479 * observable.h: New file.
10480 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10481 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10482 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10483 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10484 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10485 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10486 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10487 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10488 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10489 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10490 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10491 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10492 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10493 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10494 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10495 tui/tui-interp.c, valops.c: Update all users.
10496 * tui/tui-hooks.c (tui_bp_created_observer)
10497 (tui_bp_deleted_observer, tui_bp_modified_observer)
10498 (tui_inferior_exit_observer, tui_before_prompt_observer)
10499 (tui_normal_stop_observer, tui_register_changed_observer):
10500 Remove.
10501 (tui_observers_token): New global.
10502 (attach_or_detach, tui_attach_detach_observers): New functions.
10503 (tui_install_hooks, tui_remove_hooks): Use
10504 tui_attach_detach_observers.
10505 * record-btrace.c (record_btrace_thread_observer): Remove.
10506 (record_btrace_thread_observer_token): New global.
10507 * observer.sh: Remove.
10508 * observer.c: Rename to observable.c.
10509 * observable.c (namespace gdb_observers): Define new objects.
10510 (observer_debug): Move into gdb_observers namespace.
10511 (struct observer, struct observer_list, xalloc_observer_list_node)
10512 (xfree_observer_list_node, generic_observer_attach)
10513 (generic_observer_detach, generic_observer_notify): Remove.
10514 (_initialize_observer): Update.
10515 Don't include observer.inc.
10516 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10517 (clean mostlyclean): Likewise.
10518 (observer.h, observer.inc): Remove targets.
10519 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10520 (COMMON_SFILES): Use observable.c, not observer.c.
10521 * .gitignore: Remove observer.h.
10522
1cb1f3da
TT
105232018-03-18 Tom Tromey <tom@tromey.com>
10524
10525 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10526 gdb::def_vector.
10527 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10528
a06ab151
TT
105292018-03-17 Tom Tromey <tom@tromey.com>
10530
10531 * auto-load.c (auto_load_objfile_script_1): Use std::string.
10532
770623f7
TT
105332018-03-17 Tom Tromey <tom@tromey.com>
10534
10535 * target.c (class scoped_target_fd): New.
10536 (target_fileio_close_cleanup): Remove.
10537 (target_fileio_read_alloc_1): Use scoped_target_fd.
10538
39be3c7e
SM
105392018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
10540
10541 * silent-rules.mk: New.
10542 * Makefile.in: Include silent-rules.mk
10543 (srcdir, VPATH, top_srcdir): Move up.
10544 (COMPILE): Add ECHO_CXX.
10545 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
10546 (init.c): Add ECHO_INIT_C.
10547 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10548 (version.c): Add ECHO_GEN.
10549 (printcmd.o): Add ECHO_CXX.
10550 (target-float.o): Add ECHO_CXX.
10551 (ada-exp.o): Add ECHO_CXX.
10552 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
10553 (insight$(EXEEXT)): Add ECHO_CXXLD.
10554 * gnulib/configure.ac: Add AM_SILENT_RULES.
10555 * gnulib/aclocal.m4: Re-generate.
10556 * gnulib/configure: Re-generate.
10557 * gnulib/import/Makefile.in: Re-generate.
10558
37e136b1
TT
105592018-03-16 Tom Tromey <tom@tromey.com>
10560
10561 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
10562 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
10563 * utils.c (do_free_section_addr_info)
10564 (make_cleanup_free_section_addr_info): Remove.
10565 * symfile.h (struct other_sections): Add constructor.
10566 (struct section_addr_info): Remove.
10567 (section_addr_info): New typedef.
10568 (struct sym_fns) <sym_offsets>: Change type of parameter.
10569 (build_section_addr_info_from_objfile)
10570 (relative_addr_info_to_section_offsets, addr_info_make_relative)
10571 (default_symfile_offsets, symbol_file_add)
10572 (symbol_file_add_from_bfd)
10573 (build_section_addr_info_from_section_table): Update.
10574 (alloc_section_addr_info, free_section_addr_info): Don't declare.
10575 * symfile.c (alloc_section_addr_info): Remove.
10576 (build_section_addr_info_from_section_table): Change return type.
10577 Update.
10578 (build_section_addr_info_from_bfd)
10579 (build_section_addr_info_from_objfile): Likewise.
10580 (free_section_addr_info): Remove.
10581 (relative_addr_info_to_section_offsets): Change type of "addrs".
10582 (addrs_section_compar): Now a std::sort comparator.
10583 (addrs_section_sort): Change return type.
10584 (addr_info_make_relative): Change type of "addrs". Update.
10585 (default_symfile_offsets, syms_from_objfile_1)
10586 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
10587 (symbol_file_add_separate): Update.
10588 (symbol_file_add): Change type of "addrs". Update.
10589 (add_symbol_file_command): Update. Remove cleanups.
10590 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
10591 cleanups.
10592 * symfile-debug.c (debug_sym_offsets): Change type of "info".
10593 * solib.c (solib_read_symbols): Update.
10594 * objfiles.c (objfile_relocate): Update. Remove cleanups.
10595 * machoread.c (macho_symfile_offsets): Update.
10596 * jit.c (jit_bfd_try_read_symtab): Update.
10597
03afa6ef
SM
105982018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
10599
10600 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10601 unittests/utils-selftests.c.
10602 * unittests/utils-selftests.c: New file.
10603
3ae9ce5d
TT
106042018-03-14 Tom Tromey <tom@tromey.com>
10605
10606 PR cli/14977:
10607 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
10608 for NULL.
10609
b8c2339b
TT
106102018-03-14 Tom Tromey <tom@tromey.com>
10611
10612 PR cli/19918:
10613 * printcmd.c (printf_pointer): Allow "-" in format.
10614
80ae639d
TT
106152018-03-14 Tom Tromey <tom@tromey.com>
10616
10617 * printcmd.c (_initialize_printcmd): Add usage to printf.
10618
0d671d99
YQ
106192018-03-14 Yao Qi <qiyao@sourceware.org>
10620
10621 * MAINTAINERS: Update my email address.
10622
b577b6af
TT
106232018-03-13 Tom Tromey <tom@tromey.com>
10624
10625 * machoread.c (macho_check_dsym): Change filenamep to a
10626 std::string*.
10627 (macho_symfile_read): Update.
10628 * symfile.c (load_command): Use std::string.
10629
89a3b63e
AB
106302018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
10631
10632 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
10633 to error message string.
10634 (riscv_register_name): Use xsnprintf instead of sprintf.
10635 (riscv_insn::fetch_instruction): Use gdb_assert instead of
10636 internal_error.
10637 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
10638 error.
10639 (riscv_push_dummy_call): Likewise.
10640
984c7238
TT
106412018-03-12 Tom Tromey <tom@tromey.com>
10642
10643 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
10644 Use gdb::byte_vector.
10645 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
10646
933522d1
YQ
106472018-03-12 Yao Qi <yao.qi@linaro.org>
10648
10649 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
10650 parameter type to readable_regcache.
10651 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
10652 the declaration.
10653
be2daae6
TT
106542018-03-11 Tom Tromey <tom@tromey.com>
10655
10656 * dwarf2read.c (struct nextfield): Add initializers.
10657 (struct nextfnfield): Remove.
10658 (struct fnfieldlist): Add initializers. Remove "length" and
10659 "head", use std::vector.
10660 (struct decl_field_list): Remove.
10661 (struct field_info): Add initializers.
10662 <fields, baseclasses>: Now std::vector.
10663 <nbaseclasses, nfnfields, typedef_field_list_count,
10664 nested_types_list_count>: Remove.
10665 (dwarf2_add_field, dwarf2_add_type_defn)
10666 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
10667 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
10668 (process_structure_scope): Update.
10669
484cf504
TT
106702018-03-11 Tom Tromey <tom@tromey.com>
10671
10672 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
10673 for use by std::sort.
10674 (build_type_psymtabs_1): Use std::vector.
10675
9bd8e0b0
EZ
106762018-03-09 Eli Zaretskii <eliz@gnu.org>
10677
10678 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
10679 and LIBMPFR in the printed configuration.
10680
5dc1a704
TT
106812018-03-08 Tom Tromey <tom@tromey.com>
10682
10683 * source.c (get_filename_and_charpos): Use scoped_fd.
10684 * nto-procfs.c (procfs_open_1): Use scoped_fd.
10685 (procfs_pidlist): Likewise.
10686 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
10687 (iterate_over_mappings): Likewise.
10688
fdf07f3a
TT
106892018-03-08 Tom Tromey <tom@tromey.com>
10690
10691 * infcall.c (struct call_return_meta_info)
10692 <stack_temporaries_enabled>: Remove.
10693 (get_call_return_value, call_function_by_hand_dummy): Update.
10694 * thread.c (disable_thread_stack_temporaries): Remove.
10695 (enable_thread_stack_temporaries): Remove.
10696 (thread_stack_temporaries_enabled_p): Return bool.
10697 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
10698 (get_last_thread_stack_temporary): Update.
10699 * eval.c (evaluate_subexp): Update.
10700 * gdbthread.h (class enable_thread_stack_temporaries): Now a
10701 class, not a function.
10702 (value_ptr, value_vec): Remove typedefs.
10703 (class thread_info) <stack_temporaries_enabled>: Now bool.
10704 <stack_temporaries>: Now a std::vector.
10705 (thread_stack_temporaries_enabled_p)
10706 (value_in_thread_stack_temporaries): Return bool.
10707
567a3e54
SM
107082018-03-08 Simon Marchi <simon.marchi@ericsson.com>
10709
10710 * remote.c (putpkt_binary): Fix omitted bytes reporting.
10711 (getpkt_or_notif_sane_1): Likewise.
10712
00b40057
SM
107132018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10714
10715 * build-id.c (build_id_to_debug_bfd): Use std::string.
10716
a8dbfd58
SM
107172018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10718
10719 * build-id.c (find_separate_debug_file_by_buildid): Return
10720 std::string.
10721 * build-id.h (find_separate_debug_file_by_buildid): Return
10722 std::string.
10723 * coffread.c (coff_symfile_read): Adjust to std::string.
10724 * elfread.c (elf_symfile_read): Adjust to std::string.
10725 * symfile.c (separate_debug_file_exists): Change parameter to
10726 std::string.
10727 (find_separate_debug_file): Return std::string.
10728 (find_separate_debug_file_by_debuglink): Return std::string.
10729 * symfile.h (find_separate_debug_file_by_debuglink): Return
10730 std::string.
10731
e6a58aa8
SM
107322018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10733
10734 * common/xml-utils.c (xml_escape_text): Move code to...
10735 (xml_escape_text_append): ... this new function.
10736 * common/xml-utils.h (xml_escape_text_append): New declaration.
10737 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
10738 New function.
10739 (_initialize_xml_utils): register test_xml_escape_text_append as
10740 a selftest.
10741
4ef0bef6
AH
107422018-03-07 Alan Hayward <alan.hayward@arm.com>
10743
10744 * defs.h: Remove MAX_REGISTER_SIZE.
10745 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
10746 asserts.
10747 * python/py-unwind.c (pyuw_sniffer): Likewise.
10748
e0d3522b
TT
107492018-03-07 Tom Tromey <tom@tromey.com>
10750
10751 * linux-tdep.c (linux_info_proc): Update.
10752 * target.h (struct target_ops) <to_fileio_readlink>: Return
10753 optional<string>.
10754 (target_fileio_readlink): Return optional<string>.
10755 * remote.c (remote_hostio_readlink): Return optional<string>.
10756 * inf-child.c (inf_child_fileio_readlink): Return
10757 optional<string>.
10758 * target.c (target_fileio_readlink): Return optional<string>.
10759
ea005f31
AB
107602018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10761
10762 * regcache.c (cooked_read_test): Add riscv to the list of
10763 architectures that have a save_reggroup.
10764
e95a97d4
AA
107652018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
10766
10767 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
10768 value is not a dynamic class object.
10769
d8344f3d
TT
107702018-03-06 Tom Tromey <tom@tromey.com>
10771
10772 * rust-exp.y: Formatting fixes.
10773
9add17f2
AB
107742018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10775
10776 * riscv-tdep.c (riscv_register_name): Remove target description
10777 support.
10778 (riscv_gdbarch_init): Remove target description check.
10779
c9486dfe
AB
107802018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10781
10782 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
10783 comment.
10784 * riscv-tdep.h: Likewise.
10785
d74aff3d
AB
107862018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10787
10788 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
10789 (riscv_pseudo_register_write): Delete.
10790 (riscv_gdbarch_init): Remove all use of pseudo registers.
10791
7ea78b59
SM
107922018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10793
10794 * record-btrace.c (btrace_print_lines): Replace cleanup
10795 parameter with RAII equivalents.
10796 (btrace_insn_history): Replace cleanup with RAII equivalents.
10797 * ui-out.h (make_cleanup_ui_out_list_begin_end,
10798 make_cleanup_ui_out_tuple_begin_end): Remove.
10799 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
10800 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
10801 make_cleanup_ui_out_list_begin_end): Remove.
10802
53127008
SM
108032018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10804
10805 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
10806 parameter types to std::vector. Use bool.
10807 (record_btrace_wait): Replace VEC(tp_t) with
10808 std::vector<thread_info *>.
10809 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
10810
228f1508
SM
108112018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10812
10813 * record-btrace.c (record_btrace_disable_callback): Remove.
10814 (struct scoped_btrace_disable): New.
10815 (record_btrace_open): Use scoped_btrace_disable.
10816
b2970c23
AB
108172018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10818
10819 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
10820 reading values from registers.
10821
fb294655
AB
108222018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10823
10824 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
10825 where appropriate.
10826
cab5bb9d
AB
108272018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10828
10829 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
10830 change parameter type. Use GDB's print functions, and use
10831 core_addr_to_string where appropriate.
10832 (riscv_push_dummy_call): Use core_addr_to_string where
10833 appropriate, update call to riscv_print_arg_location, and reindent
10834 a few lines.
10835 (riscv_return_value): Update call to riscv_print_arg_location.
10836
dbbb1059
AB
108372018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10838 Tim Newsome <tim@sifive.com>
10839 Albert Ou <a0u@eecs.berkeley.edu>
10840 Darius Rad <darius@bluespec.com>
10841
10842 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
10843 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
10844 (ALLDEPFILES): Add riscv-tdep.c
10845 * configure.tgt: Add riscv support.
10846 * riscv-tdep.c: New file.
10847 * riscv-tdep.h: New file.
10848 * NEWS: Mention new target.
10849 * MAINTAINERS: Add entry for riscv.
10850
5dc43913
AB
108512018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10852
10853 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
10854 fields within aggregates.
10855
3dea1ef7
SM
108562018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
10857
10858 * record-btrace.c (btrace_print_lines): Change type of flags to
10859 gdb_disassembly_flags.
10860
7efba073
JB
108612018-03-04 John Baldwin <jhb@FreeBSD.org>
10862
10863 * fbsd-nat.c: Include "inf-ptrace.h".
10864 (USE_SIGTRAP_SIGINFO): Conditionally define.
10865 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
10866 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
10867 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
10868 function.
10869 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
10870 Likewise.
10871 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
10872 Likewise.
10873 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
10874 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
10875 "supports_stopped_by_hw_breakpoint" target methods.
10876
386a8676
JB
108772018-03-04 John Baldwin <jhb@FreeBSD.org>
10878
10879 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
10880 * fbsd-nat.c (debug_fbsd_nat): New variable.
10881 (show_fbsd_nat_debug): New function.
10882 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
10883 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
10884
12279366
JB
108852018-03-04 John Baldwin <jhb@FreeBSD.org>
10886
10887 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
10888 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
10889 prototype.
10890 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
10891 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
10892 method.
10893
54693cf5
SM
108942018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10895
10896 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
10897 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
10898
ccb2231c
SM
108992018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10900
10901 * charset.c (struct charset_vector): New.
10902 (charsets): Change type to charset_vector.
10903 (find_charset_names): Adjust.
10904 (add_one): Adjust.
10905 (_initialize_charset): Adjust.
10906
6fb16ce6
SM
109072018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10908
10909 * progspace.h (struct program_space) <deleted_solibs>: Change
10910 type to std::vector<std::string>.
10911 * progspace.c (clear_program_space_solib_cache): Adjust.
10912 * breakpoint.c (print_solib_event): Adjust.
10913 (check_status_catch_solib): Adjust.
10914 * solib.c (update_solib_list): Adjust.
10915 * ui-out.h (class ui_out) <field_string>: New overload.
10916 * ui-out.c (ui_out::field_string): New overload.
10917
564b1e3f
SM
109182018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10919
10920 * progspace.h (struct program_space): Add constructor and
10921 destructor, initialize fields.
10922 (add_program_space): Remove.
10923 * progspace.c (add_program_space): Rename to...
10924 (program_space::program_space): ... this.
10925 (release_program_space): Rename to...
10926 (program_space::~program_space): ... this.
10927 (delete_program_space): Use delete to delete program_space.
10928 (initialize_progspace): Use new to allocate program_space.
10929 * inferior.c (add_inferior_with_spaces): Likewise.
10930 (clone_inferior_command): Likewise.
10931 * infrun.c (follow_fork_inferior): Likewise.
10932 (handle_vfork_child_exec_or_exit): Likewise.
10933
e80aaf61
SM
109342018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10935
10936 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
10937 (delim_string_to_char_ptr_vec): Return std::vector of
10938 gdb::unique_xmalloc_ptr.
10939 (dirnames_to_char_ptr_vec_append): Take std::vector of
10940 gdb::unique_xmalloc_ptr.
10941 (dirnames_to_char_ptr_vec): Return std::vector of
10942 gdb::unique_xmalloc_ptr.
10943 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
10944 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
10945 (delim_string_to_char_ptr_vec): Return an std::vector of
10946 gdb::unique_xmalloc_ptr, adjust the code.
10947 (dirnames_to_char_ptr_vec_append): Take an std::vector of
10948 gdb::unique_xmalloc_ptr, adjust the code.
10949 (dirnames_to_char_ptr_vec): Return an std::vector of
10950 gdb::unique_xmalloc_ptr, adjust the code.
10951 * auto-load.c (auto_load_safe_path_vec): Change type to
10952 std::vector of gdb::unique_xmalloc_ptr.
10953 (auto_load_expand_dir_vars): Return an std::vector of
10954 gdb::unique_xmalloc_ptr, adjust the code.
10955 (auto_load_safe_path_vec_update): Adjust.
10956 (filename_is_in_auto_load_safe_path_vec): Adjust.
10957 (auto_load_objfile_script_1): Adjust.
10958 * build-id.c (build_id_to_debug_bfd): Adjust.
10959 * linux-thread-db.c (thread_db_load_search): Adjust.
10960 * source.c (add_path): Adjust.
10961 (openp): Adjust.
10962 * symfile.c (find_separate_debug_file): Adjust.
10963 * utils.c (do_free_char_ptr_vec): Remove.
10964 (make_cleanup_free_char_ptr_vec): Remove.
10965
ab818ade
SDJ
109662018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
10967
10968 PR gdb/22907
10969 * common/pathstuff.c: Conditionally include "<windows.h>".
10970
e1e6f073
GS
109712018-03-01 Georg Sauthoff <mail@georg.so>
10972
10973 PR gdb/22888
10974 * gcore.in: Quote variables and switch interpreter to bash.
10975
c7b15a66
TT
109762018-03-01 Tom Tromey <tom@tromey.com>
10977
10978 * dwarf2read.c (alloc_discriminant_info): Fix default_index
10979 assertion. Add assertion for discriminant_index.
10980 (quirk_rust_enum): Use correct base type name in univariant case.
10981
0cb7c7b0
SM
109822018-03-01 Simon Marchi <simon.marchi@ericsson.com>
10983
10984 * record.c (get_call_history_modifiers): Return a
10985 record_print_flags.
10986 (cmd_record_call_history): Adjust.
10987 * record-btrace.c (record_btrace_call_history): Adjust.
10988 (record_btrace_call_history_range): Adjust.
10989 (record_btrace_call_history_from): Adjust.
10990 * target-debug.h (target_debug_print_record_print_flags): New.
10991 * target-delegates.c: Re-generate.
10992 * target.c (target_call_history): Change flags type.
10993 (target_call_history_from): Likewise.
10994 (target_call_history_range): Likewise.
10995 * target.h (struct target_ops) <target_call_history>: Likewise.
10996 (target_call_history_from): Likewise.
10997 (target_call_history_range): Likewise.
10998
25e3c82c
SDJ
109992018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11000 Simon Marchi <simon.marchi@polymtl.ca>
11001
11002 * common/common-utils.c: Include "sys/stat.h".
11003 (is_regular_file): Move here from "source.c"; change return
11004 type to "bool".
11005 * common/common-utils.h (is_regular_file): New prototype.
11006 * common/pathstuff.c (contains_dir_separator): New function.
11007 * common/pathstuff.h (contains_dir_separator): New prototype.
11008 * source.c: Don't include "sys/stat.h".
11009 (is_regular_file): Move to "common/common-utils.c".
11010
b4987c95
SDJ
110112018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11012
11013 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11014 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11015 * auto-load.c: Include "common/pathstuff.h".
11016 * common/common-def.h (current_directory): Move here.
11017 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11018 function.
11019 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11020 prototype.
11021 * common/pathstuff.c: New file.
11022 * common/pathstuff.h: New file.
11023 * compile/compile.c: Include "common/pathstuff.h".
11024 * defs.h (current_directory): Move to "common/common-defs.h".
11025 * dwarf2read.c: Include "common/pathstuff.h".
11026 * exec.c: Likewise.
11027 * guile/scm-safe-call.c: Likewise.
11028 * linux-thread-db.c: Likewise.
11029 * main.c: Likewise.
11030 * nto-tdep.c: Likewise.
11031 * objfiles.c: Likewise.
11032 * source.c: Likewise.
11033 * symtab.c: Likewise.
11034 * utils.c: Include "common/pathstuff.h".
11035 (gdb_realpath): Move to "common/pathstuff.c".
11036 (gdb_realpath_keepfile): Likewise.
11037 (gdb_abspath): Likewise.
11038 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11039 (gdb_realpath_keepfile): Likewise.
11040 (gdb_abspath): Likewise.
11041
f169cfdc
JB
110422018-02-28 John Baldwin <jhb@FreeBSD.org>
11043
11044 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11045 wildcard process pid for super_resume for kernels with a
11046 specific bug.
11047
e05cac70
PM
110482018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11049
11050 * compile/compile.c (get_args): Add additional comments
11051 explaining function.
11052
55089490
TT
110532018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11054 Tom Tromey <tom@tromey.com>
11055
11056 * target.h (memory_write_request_s): Remove typedef. Don't define
11057 VEC.
11058 (target_write_memory_blocks): Change argument to std::vector.
11059 (struct memory_write_request): Add constructor.
11060 * target-memory.c (compare_block_starting_address): Return bool.
11061 Change argument types.
11062 (claim_memory): Change arguments to use std::vector.
11063 (split_regular_and_flash_blocks, blocks_to_erase)
11064 (compute_garbled_blocks): Likewise.
11065 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11066 (target_write_memory_blocks): Change argument to std::vector.
11067 * symfile.c (struct load_section_data): Add constructor and
11068 destructor. Use std::vector for "requests".
11069 (struct load_progress_data): Add initializers.
11070 (load_section_callback): Update. Use "new".
11071 (clear_memory_write_data): Remove.
11072 (generic_load): Update.
11073
0c305b61
AH
110742018-02-27 Alan Hayward <alan.hayward@arm.com>
11075
11076 * arch/aarch64.h: Use common/tdesc.h.
11077
c5196c92
MR
110782018-02-26 Maciej W. Rozycki <macro@mips.com>
11079
11080 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11081 architecture with a 64-bit ABI.
11082
37c33887
MR
110832018-02-26 Maciej W. Rozycki <macro@mips.com>
11084
11085 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11086 ahead of target description loading.
11087
d4dd3282
TT
110882018-02-26 Tom Tromey <tom@tromey.com>
11089
11090 * stack.c (backtrace_command_1): Update.
11091 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11092 of "flags".
11093 * python/py-framefilter.c (py_print_frame)
11094 (gdbpy_apply_frame_filter): Change type of "flags".
11095 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11096 of "flags".
11097 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11098 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11099 * extension.h (enum frame_filter_flag): Rename from
11100 frame_filter_flags.
11101 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11102 (apply_ext_lang_frame_filter): Change type of "flags".
11103 * extension.c (apply_ext_lang_frame_filter): Change type of
11104 "flags".
11105 * extension-priv.h (struct extension_language_ops)
11106 <apply_frame_filter>: Change type of "flags".
11107
6893c19a
TT
111082018-02-26 Tom Tromey <tom@tromey.com>
11109
11110 PR python/16497:
11111 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11112 off-by-one in py_end computation.
11113 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11114 PRINT_MORE_FRAMES.
11115 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11116 constant.
11117
2ddeaf8a
TT
111182018-02-26 Tom Tromey <tom@tromey.com>
11119
11120 * dwarf2read.c (struct variant_field): New.
11121 (struct nextfield) <variant>: New field.
11122 (dwarf2_add_field): Handle DW_TAG_variant_part.
11123 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11124 discriminated union.
11125 (read_structure_type): Handle DW_TAG_variant_part.
11126 (handle_struct_member_die): New function, extracted from
11127 process_structure_scope. Handle DW_TAG_variant.
11128 (process_structure_scope): Handle discriminated unions. Call
11129 handle_struct_member_die.
11130
c9317f21
TT
111312018-02-26 Tom Tromey <tom@tromey.com>
11132
11133 * rust-lang.h (rust_last_path_segment): Declare.
11134 * rust-lang.c (rust_last_path_segment): Now public. Change
11135 contract.
11136 (struct disr_info): Remove.
11137 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11138 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11139 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11140 (rust_enum_p, rust_enum_variant): New function.
11141 (rust_underscore_fields): Remove "offset" parameter.
11142 (rust_print_enum): New function.
11143 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11144 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11145 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11146 enums.
11147 (rust_internal_print_type): New function, from rust_print_type.
11148 Remove enum code.
11149 (rust_print_type): Call rust_internal_print_type.
11150 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11151 Update enum handling.
11152 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11153 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11154 (rust_union_quirks): New functions.
11155 (process_full_comp_unit, process_full_type_unit): Call
11156 rust_union_quirks.
11157 (process_structure_scope): Update rust_unions if necessary.
11158
7c22600a
TT
111592018-02-26 Tom Tromey <tom@tromey.com>
11160
11161 * value.h (value_union_variant): Declare.
11162 * valops.c (value_union_variant): New function.
11163 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11164 (struct discriminant_info): New.
11165 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11166 enumerator.
11167 (struct main_type) <flag_discriminated_union>: New field.
11168
15ce8941
TT
111692018-02-26 Tom Tromey <tom@tromey.com>
11170
11171 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11172 unittests/unpack-selftests.c.
11173 * unittests/unpack-selftests.c: New file.
11174 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11175
48fbe735
YQ
111762018-02-26 Yao Qi <yao.qi@linaro.org>
11177
11178 * dwarf2read.c (struct partial_die_info) <read>: New method.
11179 (read_partial_die): Remove the declaration.
11180 (load_partial_dies): Update.
11181 (partial_die_info::partial_die_info):
11182 (read_partial_die): Change it to partial_die_info::read.
11183
52356b79
YQ
111842018-02-26 Yao Qi <yao.qi@linaro.org>
11185
11186 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11187 (fixup_partial_die): Remove declaration.
11188 (scan_partial_symbols): Update.
11189 (partial_die_parent_scope): Likewise.
11190 (partial_die_full_name): Likewise.
11191 (fixup_partial_die): Change it to partial_die_info::fixup.
11192
35cc7ed7
YQ
111932018-02-26 Yao Qi <yao.qi@linaro.org>
11194
11195 * dwarf2read.c (read_partial_die): Update the declaration.
11196 (load_partial_dies): Caller update.
11197 (read_partial_die): Remove one argument abbrev_len.
11198
6f06d47b
YQ
111992018-02-26 Yao Qi <yao.qi@linaro.org>
11200
11201 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11202 assignment operator.
11203 (load_partial_dies): Use ctor and copy ctor.
11204 (read_partial_die): Update.
11205 (dwarf2_cu::find_partial_die): Use ctor.
11206
d590ff25
YQ
112072018-02-26 Yao Qi <yao.qi@linaro.org>
11208
11209 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11210 (find_partial_die_in_comp_unit): Change it to
11211 dwarf2_cu::find_partial_die.
11212 (find_partial_die): Update.
11213
fd0a254f
YQ
112142018-02-26 Yao Qi <yao.qi@linaro.org>
11215
11216 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11217 is NULL.
11218
cd9983dd
YQ
112192018-02-26 Yao Qi <yao.qi@linaro.org>
11220
11221 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11222
f46cd62a
AH
112232018-02-26 Alan Hayward <alan.hayward@arm.com>
11224
11225 * arch/amd64.h: Use common/tdesc.h.
11226 * arch/i386.c: Likewise.
11227 * arch/i386.h: Likewise.
11228 * arch/tic6x.c: Likewise.
11229 * arch/tdesc.h: Move file from here...
11230 * common/tdesc.h: ...to here.
11231 * features/aarch64-core.c: Regenerate.
11232 * features/aarch64-fpu.c: Regenerate.
11233 * features/i386/32bit-avx.c: Regenerate.
11234 * features/i386/32bit-avx512.c: Regenerate.
11235 * features/i386/32bit-core.c: Regenerate.
11236 * features/i386/32bit-linux.c: Regenerate.
11237 * features/i386/32bit-mpx.c: Regenerate.
11238 * features/i386/32bit-pkeys.c: Regenerate.
11239 * features/i386/32bit-sse.c: Regenerate.
11240 * features/i386/64bit-avx.c: Regenerate.
11241 * features/i386/64bit-avx512.c: Regenerate.
11242 * features/i386/64bit-core.c: Regenerate.
11243 * features/i386/64bit-linux.c: Regenerate.
11244 * features/i386/64bit-mpx.c: Regenerate.
11245 * features/i386/64bit-pkeys.c: Regenerate.
11246 * features/i386/64bit-segments.c: Regenerate.
11247 * features/i386/64bit-sse.c: Regenerate.
11248 * features/i386/x32-core.c: Regenerate.
11249 * features/tic6x-c6xp.c: Regenerate.
11250 * features/tic6x-core.c: Regenerate.
11251 * features/tic6x-gp.c: Regenerate.
11252 * target-descriptions.c: Use common/tdesc.h.
11253 * target-descriptions.h: Likewise.
11254
9b292f68
TT
112552018-02-24 Tom Tromey <tom@tromey.com>
11256
11257 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11258 (try_thread_db_load_from_dir, thread_db_load_search): Use
11259 std::string.
11260 (info_auto_load_libthread_db_compare): Return bool. Change
11261 argument types.
11262 (info_auto_load_libthread_db): Use std::vector, std::string.
11263 Remove cleanups.
11264
281d762b
TT
112652018-02-24 Tom Tromey <tom@tromey.com>
11266
11267 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11268 std::string.
11269 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11270 std::string*.
11271 * gdbarch.c: Rebuild.
11272 * gdbarch.h: Rebuild.
11273 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11274 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11275 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11276 std::string*.
11277
9d8780f0
SM
112782018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11279
11280 * gdbtypes.h (sect_offset): Change type to uint64_t.
11281 (sect_offset_str): New function.
11282 * dwarf2read.c (create_addrmap_from_aranges): Use
11283 sect_offset_str.
11284 (error_check_comp_unit_head): Likewise.
11285 (create_debug_type_hash_table): Likewise.
11286 (read_cutu_die_from_dwo): Likewise.
11287 (init_cutu_and_read_dies): Likewise.
11288 (init_cutu_and_read_dies_no_follow): Likewise.
11289 (process_psymtab_comp_unit_reader): Likewise.
11290 (partial_die_parent_scope): Likewise.
11291 (peek_die_abbrev): Likewise.
11292 (process_queue): Likewise.
11293 (dwarf2_physname): Likewise.
11294 (read_namespace_alias): Likewise.
11295 (read_import_statement): Likewise.
11296 (create_dwo_cu_reader): Likewise.
11297 (create_cus_hash_table): Likewise.
11298 (lookup_dwo_cutu): Likewise.
11299 (inherit_abstract_dies): Likewise.
11300 (read_func_scope): Likewise.
11301 (read_call_site_scope): Likewise.
11302 (dwarf2_add_member_fn): Likewise.
11303 (read_common_block): Likewise.
11304 (read_module_type): Likewise.
11305 (read_typedef): Likewise.
11306 (read_subrange_type): Likewise.
11307 (load_partial_dies): Likewise.
11308 (read_partial_die): Likewise.
11309 (find_partial_die): Likewise.
11310 (read_str_index): Likewise.
11311 (dwarf2_string_attr): Likewise.
11312 (build_error_marker_type): Likewise.
11313 (lookup_die_type): Likewise.
11314 (dump_die_shallow): Likewise.
11315 (follow_die_ref): Likewise.
11316 (dwarf2_fetch_die_loc_sect_off): Likewise.
11317 (dwarf2_fetch_constant_bytes): Likewise.
11318 (follow_die_sig): Likewise.
11319 (get_signatured_type): Likewise.
11320 (get_DW_AT_signature_type): Likewise.
11321 (dwarf2_find_containing_comp_unit): Likewise.
11322 (set_die_type): Likewise.
11323
8ec57239
JB
113242018-02-21 John Baldwin <jhb@FreeBSD.org>
11325
11326 * arch/aarch64.c: Include "common-defs.h".
11327 * arch/amd64.c: Likewise.
11328 * arch/i386.c: Likewise.
11329
3eac2b65
TT
113302018-02-21 Tom Tromey <tom@tromey.com>
11331
11332 * value.h: (extract_field_op): Update.
11333 * eval.c (extract_field_op): Return a const char *.
11334 * expression.h (parse_expression_for_completion): Update.
11335 * completer.c (complete_expression): Update.
11336 (add_struct_fields): Make fieldname const.
11337 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11338 (mark_completion_tag, parse_exp_in_context_1): Update.
11339 (parse_expression_for_completion): Change "name" to
11340 unique_xmalloc_ptr*.
11341
6ccb583f
TT
113422018-02-21 Tom Tromey <tom@tromey.com>
11343
11344 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11345
c113ed0c
YQ
113462018-02-21 Yao Qi <yao.qi@linaro.org>
11347
11348 * avr-tdep.c (avr_read_pc): Change parameter type to
11349 readable_regcache.
11350 * gdbarch.sh (read_pc): Likewise.
11351 * gdbarch.c: Re-generated.
11352 * gdbarch.h: Re-generated.
11353 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11354 readable_regcache.
11355 * ia64-tdep.c (ia64_read_pc): Likewise.
11356 * mips-tdep.c (mips_read_pc): Likewise.
11357 * spu-tdep.c (spu_read_pc): Likewise.
11358
4c74fe6b
YQ
113592018-02-21 Yao Qi <yao.qi@linaro.org>
11360
11361 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11362 * regcache-dump.c: New file.
11363 * regcache.c: Move register_dump to regcache-dump.c.
11364 (maintenance_print_registers): Likewise.
11365 (maintenance_print_raw_registers): Likewise.
11366 (maintenance_print_cooked_registers): Likewise.
11367 (maintenance_print_register_groups): Likewise.
11368 (maintenance_print_remote_registers): Likewise.
11369 (_initialize_regcache): Likewise.
11370 * regcache.h (register_dump): Moved from regcache.c.
11371
796bb026
YQ
113722018-02-21 Yao Qi <yao.qi@linaro.org>
11373
11374 * regcache.c (regcache::regcache): Update.
11375 (regcache::invalidate): Move it to detached_regcache::invalidate.
11376 (get_thread_arch_aspace_regcache): Update.
11377 (regcache::raw_update): Update.
11378 (regcache::cooked_read): Remove some code.
11379 (regcache::cooked_read_value): Likewise.
11380 (regcache::raw_write): Remove assert on m_readonly_p.
11381 (regcache::raw_supply_integer): Move it to
11382 detached_regcache::raw_supply_integer.
11383 (regcache::raw_supply_zeroed): Likewise.
11384 * regcache.h (detached_regcache) <raw_supply_integer>: New
11385 declaration.
11386 <raw_supply_zeroed, invalidate>: Likewise.
11387 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11388 <invalidate>: Likewise.
11389 <m_readonly_p>: Removed.
11390
215c69dc
YQ
113912018-02-21 Yao Qi <yao.qi@linaro.org>
11392
11393 * infcmd.c (get_return_value): Let stop_regs point to
11394 get_current_regcache.
11395 * regcache.c (regcache::regcache): Remove.
11396 (register_dump_reg_buffer): New class.
11397 (regcache_print): Adjust.
11398 * regcache.h (regcache): Remove constructors.
11399
f3384e66
YQ
114002018-02-21 Yao Qi <yao.qi@linaro.org>
11401
11402 * regcache.c (class register_dump): New class.
11403 (register_dump_regcache, register_dump_none): New class.
11404 (register_dump_remote, register_dump_groups): New class.
11405 (regcache_print): Update.
11406 * regcache.h (regcache_dump_what): Move it to regcache.c.
11407 (regcache) <dump>: Remove.
11408
c8ec2f33
YQ
114092018-02-21 Yao Qi <yao.qi@linaro.org>
11410
11411 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11412 reg_buffer_rw *.
11413 (jit_unwind_reg_set_impl): Call raw_supply.
11414 (jit_frame_sniffer): Use reg_buffer_rw.
11415 * record-full.c (record_full_core_regbuf): Change its type.
11416 (record_full_core_open_1): Use reg_buffer_rw.
11417 (record_full_close): Likewise.
11418 (record_full_core_fetch_registers): Use regcache->raw_supply.
11419 (record_full_core_store_registers): Likewise.
11420 * regcache.c (regcache::get_register_status): Move it to
11421 reg_buffer.
11422 (regcache_raw_set_cached_value): Remove.
11423 (regcache::raw_set_cached_value): Remove.
11424 (regcache::raw_write): Call raw_supply.
11425 (regcache::raw_supply): Move it to reg_buffer_rw.
11426 * regcache.h (regcache_raw_set_cached_value): Remove.
11427 (reg_buffer_rw): New class.
11428
daf6667d
YQ
114292018-02-21 Yao Qi <yao.qi@linaro.org>
11430
11431 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11432 readonly_detached_regcache.
11433 (dummy_frame_prev_register): Use regcache->cooked_read.
11434 * frame.c (frame_save_as_regcache): Change return type.
11435 (frame_pop): Update.
11436 * frame.h (frame_save_as_regcache): Update declaration.
11437 * inferior.h (get_infcall_suspend_state_regcache): Update
11438 declaration.
11439 * infrun.c (infcall_suspend_state) <registers>: use
11440 readonly_detached_regcache.
11441 (save_infcall_suspend_state): Don't use regcache_dup.
11442 (get_infcall_suspend_state_regcache): Change return type.
11443 * linux-fork.c (struct fork_info) <savedregs>: Change to
11444 readonly_detached_regcache.
11445 <pc>: New field.
11446 (fork_save_infrun_state): Don't use regcache_dup.
11447 (info_checkpoints_command): Adjust.
11448 * mi/mi-main.c (register_changed_p): Update declaration.
11449 (mi_cmd_data_list_changed_registers): Use
11450 readonly_detached_regcache.
11451 (register_changed_p): Change parameter type to
11452 readonly_detached_regcache.
11453 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11454 readonly_detached_regcache.
11455 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11456 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11457 New.
11458 (regcache::save): Move it to reg_buffer.
11459 (regcache::restore): Change parameter type.
11460 (regcache_dup): Remove.
11461 * regcache.h (reg_buffer) <save>: New method.
11462 (readonly_detached_regcache): New class.
11463 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11464 readonly_detached_regcache.
11465 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11466
fc5b8736
YQ
114672018-02-21 Yao Qi <yao.qi@linaro.org>
11468
11469 * frame.c (frame_save_as_regcache): Use regcache method save.
11470 (frame_pop): Use regcache method restore.
11471 * infrun.c (restore_infcall_suspend_state): Likewise.
11472 * linux-fork.c (fork_load_infrun_state): Likewise.
11473 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11474 save.
11475 * regcache.c (regcache_save): Remove.
11476 (regcache::restore): More asserts.
11477 (regcache_cpy): Remove.
11478 * regcache.h (regcache_save): Remove the declaration.
11479 (regcache::restore): Move from private to public.
11480 Remove the friend declaration of regcache_cpy.
11481 (regcache_cpy): Remove declaration.
11482
849d0ba8
YQ
114832018-02-21 Yao Qi <yao.qi@linaro.org>
11484
11485 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11486 parameter type to 'readable_regcache *'.
11487 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11488 * arm-tdep.c (arm_neon_quad_read): Likewise.
11489 (arm_pseudo_read): Likewise.
11490 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11491 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11492 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11493 * gdbarch.c: Re-generated.
11494 * gdbarch.h: Re-generated.
11495 * gdbarch.sh (pseudo_register_read): Change parameter type to
11496 'readable_regcache *'.
11497 (pseudo_register_read_value): Likewise.
11498 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11499 (h8300_pseudo_register_read): Likewise.
11500 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11501 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11502 (i386_pseudo_register_read_into_value): Likewise.
11503 (i386_pseudo_register_read_value): Likewise.
11504 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11505 declaration.
11506 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11507 * m32c-tdep.c (m32c_raw_read): Likewise.
11508 (m32c_read_flg): Likewise.
11509 (m32c_banked_register): Likewise.
11510 (m32c_banked_read): Likewise.
11511 (m32c_sb_read): Likewise.
11512 (m32c_part_read): Likewise.
11513 (m32c_cat_read): Likewise.
11514 (m32c_r3r2r1r0_read): Likewise.
11515 (m32c_pseudo_register_read): Likewise.
11516 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11517 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11518 (mep_pseudo_cr64_read): Likewise.
11519 (mep_pseudo_register_read): Likewise.
11520 * mips-tdep.c (mips_pseudo_register_read): Likewise.
11521 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11522 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11523 * regcache.c (regcache::raw_read): Move it to readable_regcache.
11524 (regcache::cooked_read): Likewise.
11525 (regcache::cooked_read_value): Likewise.
11526 (regcache_cooked_read_signed):
11527 (regcache::cooked_read): Likewise.
11528 * regcache.h (readable_regcache): New class.
11529 (regcache): Inherit readable_regcache. Move some methods to
11530 readable_regcache.
11531 * rl78-tdep.c (rl78_pseudo_register_read): Change
11532 parameter type to 'readable_regcache *'.
11533 * rs6000-tdep.c (do_regcache_raw_read): Remove.
11534 (e500_pseudo_register_read): Change parameter type to
11535 'readable_regcache *'.
11536 (dfp_pseudo_register_read): Likewise.
11537 (vsx_pseudo_register_read): Likewise.
11538 (efpr_pseudo_register_read): Likewise.
11539 * s390-tdep.c (s390_pseudo_register_read): Likewise.
11540 * sh-tdep.c (sh_pseudo_register_read): Likewise.
11541 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
11542 (sh64_pseudo_register_read): Likewise.
11543 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11544 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11545 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11546 (spu_pseudo_register_read): Likewise.
11547 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11548 (xtensa_pseudo_register_read): Likewise.
11549
31716595
YQ
115502018-02-21 Yao Qi <yao.qi@linaro.org>
11551
11552 * regcache.c (regcache::regcache): Call reg_buffer ctor.
11553 (regcache::arch): Move it to reg_buffer::arch.
11554 (regcache::register_buffer): Likewise.
11555 (regcache::assert_regnum): Likewise.
11556 (regcache::num_raw_registers): Likewise.
11557 * regcache.h (reg_buffer): New class.
11558 (regcache): Inherit reg_buffer.
11559
7104e59b
SM
115602018-02-20 Simon Marchi <simon.marchi@ericsson.com>
11561
11562 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
11563 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
11564
2d8adcbd
MM
115652018-02-20 Markus Metzger <markus.t.metzger@intel.com>
11566
11567 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
11568
b5884fa7
AH
115692018-02-19 Alan Hayward <alan.hayward@arm.com>
11570
11571 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
11572 (SFILES): Remove common/*.c files.
11573 (COMMON_OBS): Remove some *.o files built from common/*.c files.
11574 * common/common.host: Add common reference.
11575 * configure.ac: Likewise.
11576 * configure: Regenerate.
11577
fd90ace4
YQ
115782018-02-16 Yao Qi <yao.qi@linaro.org>
11579
11580 * block.c (block_namespace_info): Inherit allocate_on_obstack.
11581 (block_initialize_namespace): Use new.
11582 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
11583 (dwarf2_free_objfile): Use delete.
11584 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11585 (copy_type_recursive): Use new.
11586 * gdb_obstack.h (allocate_on_obstack): New.
11587
85046ae2
YQ
115882018-02-15 Yao Qi <yao.qi@linaro.org>
11589
11590 PR gdb/22849
11591 * inferior.c (exit_inferior_1): Reset inf->control.
11592
355c559b
JB
115932018-02-15 Joel Brobecker <brobecker@adacore.com>
11594
11595 * ada-lang.c (ada_to_fixed_value_create): Delete advance
11596 declaration.
11597
980548fd
PA
115982018-02-14 Pedro Alves <palves@redhat.com>
11599
11600 * frame-unwind.c (frame_unwind_try_unwinder): Always call
11601 frame_cleanup_after_sniffer on exception.
11602
692d6f97
TT
116032018-02-14 Tom Tromey <tom@tromey.com>
11604
11605 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
11606 const.
11607 (solib_bfd_open): Make pathname const.
11608 * solib.c (solib_bfd_open): Make pathname const.
11609 * solib-spu.c (spu_bfd_fopen): Make name const.
11610 (spu_bfd_open): Make pathname const.
11611 * solib-darwin.c (darwin_bfd_open): Make pathname const.
11612 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
11613
e0cc99a6
TT
116142018-02-14 Tom Tromey <tom@tromey.com>
11615
11616 * symfile.c (symfile_bfd_open): Update.
11617 * source.h (openp, source_full_path_of, find_and_open_source):
11618 Change argument type to unique_xmalloc_ptr.
11619 * source.c (openp): Take a unique_xmalloc_ptr.
11620 (source_full_path_of, find_and_open_source): Likewise.
11621 (open_source_file, symtab_to_fullname): Update.
11622 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
11623 unique_xmalloc_ptr.
11624 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
11625 (exec_file_find): Update.
11626 * psymtab.c (psymtab_to_fullname): Update.
11627 * nto-tdep.h (nto_find_and_open_solib): Update.
11628 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
11629 unique_xmalloc_ptr.
11630 * exec.c (exec_file_attach): Update.
11631 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
11632 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
11633
b46a8d7c
TT
116342018-02-14 Tom Tromey <tom@tromey.com>
11635
11636 * solib.c: Include source.h.
11637 * nto-tdep.c: Include source.h.
11638 * mi/mi-cmd-env.c: Include source.h.
11639 * infcmd.c: Include source.h.
11640 * exec.c: Include source.h.
11641 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
11642 (add_path, directory_switch, source_path, init_source_path): Move
11643 declarations...
11644 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
11645 (add_path, directory_switch, source_path, init_source_path):
11646 ...here.
11647
797bc1cb
TT
116482018-02-14 Tom Tromey <tom@tromey.com>
11649
11650 * solist.h (exec_file_find, solib_find): Return
11651 unique_xmalloc_ptr.
11652 (solib_bfd_fopen): Take a const char *.
11653 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
11654 (exec_file_find, solib_find): Likewise.
11655 (solib_bfd_fopen): Do not take ownership of "pathname".
11656 (solib_bfd_open): Use unique_xmalloc_ptr.
11657 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
11658 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
11659 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
11660 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
11661
f98b2e33
JB
116622018-02-14 Joel Brobecker <brobecker@adacore.com>
11663
11664 * ada-lang.c (name_match_type_from_name): Remove reference to
11665 ada_name_for_lookup in function's documentation.
11666 * ada-lang.h (ada_name_for_lookup): Delete declaration.
11667
24b9144d
SM
116682018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11669
11670 * defs.h (enum openp_flags): New enum.
11671 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
11672 Move to enum openp_flags.
11673 (openp_flags): New enum flags.
11674 (openp): Change parameter type to openp_flags.
11675 * source.c (openp): Change parameter type to openp_flags.
11676 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
11677 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
11678
387cd15b
SM
116792018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11680
11681 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
11682 per-command.
11683
b303c6f6
AB
116842018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
11685
11686 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
11687 into...
11688 (class dwarf2_queue_guard): ...the destructor of this new class.
11689 (dw2_do_instantiate_symtab): Create instance of the new class
11690 dwarf2_queue_guard, remove cleanup.
11691
9c3630e9
TT
116922018-02-09 Tom Tromey <tom@tromey.com>
11693
11694 * source.c (find_source_lines): Don't reference past the end of
11695 the vector.
11696
c4e12631
MM
116972018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11698
11699 * remote.c (remote_btrace_maybe_reopen): Change error message.
11700 * btrace.c (btrace_enable): Likewise.
11701 (parse_xml_btrace): Likewise.
11702 (parse_xml_btrace_conf): Likewise.
11703
88711fbf
MM
117042018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11705
11706 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
11707 (linux_enable_pt, linux_enable_bts): Call
11708 diagnose_perf_event_open_fail.
11709
17ad2a4f
MM
117102018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11711
11712 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
11713 Remove parameter and change return type. Update callers. Move it.
11714 (linux_enable_bts, linux_enable_pt): Improve error message.
11715 (linux_enable_pt): Remove zero buffer size check.
11716 (linux_enable_btrace): Improve error messages. Remove NULL return
11717 check.
11718
de6242d3
MM
117192018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11720
11721 * btrace.c (btrace_enable): Remove target_supports_btrace call.
11722 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
11723 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
11724 (linux_supports_pt, linux_supports_btrace): Remove.
11725 (linux_enable_bts): Call cpu_supports_bts.
11726 * nat/linux-btrace.h (linux_supports_btrace): Remove.
11727 * remote.c (remote_supports_btrace): Remove.
11728 (init_remote_ops): Remove remote_supports_btrace.
11729 * target-delegates.c: Regenerated.
11730 * target.c (target_supports_btrace): Remove.
11731 * target.h (target_ops) <to_supports_btrace>: Remove
11732 (target_supports_btrace): Remove.
11733 * x86-linux-nat.c (x86_linux_create_target): Remove
11734 linux_supports_btrace.
11735
9ee23a85
MM
117362018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11737
11738 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
11739 btrace failed.
11740 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
11741 exception and use message in own exception.
11742
5c3284c1
MM
117432018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11744
11745 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
11746 (perf_event_pt_event_type): Use gdb_file_up.
11747 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
11748 scoped_fd, and scoped_mmap.
11749
84696f37
MM
117502018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11751
11752 * common/scoped_mmap.h: New.
11753 * unittests/scoped_mmap-selftest.c: New.
11754 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11755 unittests/scoped_mmap-selftest.c.
11756
ea4a0888
MM
117572018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11758
11759 * common/scoped_fd.h: New.
11760 * unittests/scoped_fd-selftest.c: New.
11761 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11762 unittests/scoped_fd-selftest.c.
11763
869e8290
TT
117642018-02-09 Tom Tromey <tom@tromey.com>
11765
11766 * auto-load.c (auto_load_section_scripts): Use
11767 gdb::unique_xmalloc_ptr.
11768
a37a2ae7
TT
117692018-02-09 Tom Tromey <tom@tromey.com>
11770
11771 * auto-load.c (execute_script_contents): Use std::string.
11772
4e725347
JB
117732018-02-09 Joel Brobecker <brobecker@adacore.com>
11774
11775 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
11776 Python function, rather than a new command.
11777
9a897d43
TT
117782018-02-08 Tom Tromey <tom@tromey.com>
11779
11780 * solib.c (solib_find_1): Use std::string.
11781 (solib_bfd_fopen): Use unique_xmalloc_ptr.
11782
58ef3771
TT
117832018-02-08 Tom Tromey <tom@tromey.com>
11784
11785 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
11786
a9abc434
TT
117872018-02-08 Tom Tromey <tom@tromey.com>
11788
11789 * source.c (find_source_lines): Use gdb::def_vector.
11790
84f27c6f
TT
117912018-02-08 Tom Tromey <tom@tromey.com>
11792
11793 * macrocmd.c (struct temporary_macro_definition): New.
11794 (macro_define_command): Use temporary_macro_definition. Remove
11795 cleanups.
11796 (free_macro_definition_ptr): Remove.
11797
0354904b
TT
117982018-02-08 Tom Tromey <tom@tromey.com>
11799
11800 * macroexp.c (maybe_expand): Use std::string.
11801
1739cf24
TT
118022018-02-08 Tom Tromey <tom@tromey.com>
11803
11804 * macroexp.c (struct macro_buffer): Add initializers for some
11805 members.
11806 (init_buffer, init_shared_buffer, free_buffer)
11807 (free_buffer_return_text): Remove.
11808 (macro_buffer): New constructors.
11809 (~macro_buffer): New destructor.
11810 (macro_buffer::set_shared): New method.
11811 (macro_buffer::resize_buffer, macro_buffer::appendc)
11812 (macro_buffer::appendmem): Now methods, not free functions.
11813 (set_token, append_tokens_without_splicing, stringify)
11814 (macro_stringify): Update.
11815 (gather_arguments): Change return type. Remove argc_p argument,
11816 add args_ptr argument. Use std::vector.
11817 (substitute_args): Remove argc argument. Accept std::vector.
11818 (expand): Update. Use std::vector.
11819 (scan, macro_expand, macro_expand_next): Update.
11820
f6c2623e
TT
118212018-02-08 Tom Tromey <tom@tromey.com>
11822
11823 * symtab.c (default_collect_symbol_completion_matches_break_on):
11824 Use unique_xmalloc_ptr.
11825 * macroscope.h: (sal_macro_scope, user_macro_scope)
11826 (default_macro_scope): Return unique_xmalloc_ptr.
11827 * macroscope.c (sal_macro_scope, user_macro_scope)
11828 (default_macro_scope): Return unique_xmalloc_ptr.
11829 * macroexp.h (macro_expand, macro_expand_once): Return
11830 unique_xmalloc_ptr.
11831 * macroexp.c (macro_expand, macro_expand_once): Return
11832 unique_xmalloc_ptr.
11833 * macrocmd.c (macro_expand_command, macro_expand_once_command)
11834 (info_macro_command, info_macros_command): Use
11835 unique_xmalloc_ptr.
11836 * compile/compile-c-support.c (write_macro_definitions): Use
11837 unique_xmalloc_ptr.
11838 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
11839
c2e0e465
SM
118402018-02-07 Simon Marchi <simon.marchi@ericsson.com>
11841
11842 * value.c (value_static_field): Assign field type instead of
11843 containing type when returning an optimized out value.
11844
3f8c94b4
YQ
118452018-02-06 Yao Qi <yao.qi@linaro.org>
11846
11847 * ft32-tdep.c (ft32_read_pc): Remove.
11848 (ft32_write_pc): Remove.
11849 (ft32_gdbarch_init): Update.
11850 * m32r-tdep.c (m32r_read_pc): Remove.
11851 (m32r_gdbarch_init): Update.
11852 * mep-tdep.c (mep_read_pc): Remove.
11853 (mep_gdbarch_init): Update.
11854 * microblaze-tdep.c (microblaze_write_pc): Remove.
11855 (microblaze_gdbarch_init): Update.
11856 * mn10300-tdep.c (mn10300_read_pc): Remove.
11857 (mn10300_write_pc): Remove.
11858 (mn10300_gdbarch_init): Update.
11859 * moxie-tdep.c (moxie_read_pc): Remove.
11860 (moxie_write_pc): Remove.
11861 (moxie_gdbarch_init): Update.
11862
bca65a23
YQ
118632018-02-06 Yao Qi <yao.qi@linaro.org>
11864
11865 * expprint.c (print_subexp_standard): Handle
11866 OP_F77_UNDETERMINED_ARGLIST.
11867 (dump_subexp_body_standard): Likewise.
11868
583e3f90 118692018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 11870
583e3f90
YQ
11871 * target-descriptions.c (tdesc_element_visitor) Add empty
11872 implementations.
b8df6ca7
AH
11873 (tdesc_type): Move make_gdb_type from here.
11874 (tdesc_type_builtin): Likewise.
11875 (tdesc_type_vector): Likewise.
11876 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
11877 (make_gdb_type_struct): Move from tdesc_type_with_fields.
11878 (make_gdb_type_union): Likewise.
11879 (make_gdb_type_flags): Likewise.
11880 (make_gdb_type_enum): Likewise.
11881 (make_gdb_type): New function.
11882 (tdesc_register_type): Use static make_gdb_type.
11883
e813d34a
RK
118842018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
11885
11886 * infcmd.c (default_print_one_register_info): Align natural-format
11887 column values consistently one under another.
11888 (pad_to_column): New function.
11889
0eb876f5
JB
118902018-02-05 Joel Brobecker <brobecker@adacore.com>
11891
11892 * dwarf2read.c (dwarf2_physname): Move commment.
11893
0625771b
LS
118942018-02-01 Leszek Swirski <leszeks@google.com>
11895
11896 * varobj.c (varobj_formatted_print_options): Allow recursive
11897 pretty printing if pretty printing is enabled.
11898
59498c30
LS
118992018-02-01 Leszek Swirski <leszeks@google.com>
11900
11901 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
11902 names after a structop as a filename.
11903
2d9e6acb
YQ
119042018-02-01 Yao Qi <yao.qi@linaro.org>
11905
11906 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
11907 (arm_record_coproc_data_proc): Likewise.
11908
df95a9cf
YQ
119092018-02-01 Yao Qi <yao.qi@linaro.org>
11910
11911 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
11912
07e5f5cf
NP
119132018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
11914
11915 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
11916 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
11917
3045b475
PA
119182018-01-31 Pedro Alves <palves@redhat.com>
11919
11920 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
11921 * inflow.c (child_terminal_save_inferior): Wrap reference to
11922 tcgetpgrp in HAVE_TERMIOS_H.
11923 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
11924 _WIN32.
11925 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
11926 always iterate over all inferiors.
11927 (gdbsim_cntrl_c): Adjust.
11928 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
11929
929b5ad4
JB
119302018-01-31 Joel Brobecker <brobecker@adacore.com>
11931
11932 * gdbtypes.c (lookup_array_range_type): Make sure the array's
11933 index type is objfile-owned if the element type is as well.
11934
29236ca2
JB
119352018-01-31 Joel Brobecker <brobecker@adacore.com>
11936
11937 GDB 8.1 released.
11938
c81e8879
PR
119392018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
11940
11941 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
11942 "features/s390x-linux64.c".
11943 (_initialize_s390_linux_tdep): Remove initialization of tdescs
11944 s390_linux32 and s390x_linux64.
11945 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
11946 default tdesc.
11947 * s390-tdep.c: Include "features/s390-linux32.c" and
11948 "features/s390x-linux64.c".
11949 (s390_tdesc_valid): Add check for tdesc_has_registers.
11950 (s390_gdbarch_init): Make sure there is always a valid tdesc.
11951 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
11952 tdesc_s390x_linux64.
11953 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
11954 tdesc_s390x_linux64 to...
11955 * s390-tdep.h: ...here.
11956
e671cd59
PA
119572018-01-30 Pedro Alves <palves@redhat.com>
11958
11959 PR gdb/13211
11960 * config.in, configure: Regenerate.
11961 * configure.ac: Check for getpgid.
11962 * go32-nat.c (go32_pass_ctrlc): New.
11963 (go32_target): Install it.
11964 * inf-child.c (inf_child_target): Install
11965 child_terminal_save_inferior, child_pass_ctrlc and
11966 child_interrupt.
11967 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
11968 (inf_ptrace_target): No longer install it.
11969 * infcmd.c (interrupt_target_1): Adjust.
11970 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
11971 (child_interrupt): Declare.
11972 (inferior::terminal_state): New.
11973 * inflow.c (struct terminal_info): Update comments.
11974 (inferior_process_group): Delete.
11975 (terminal_is_ours): Delete.
11976 (gdb_tty_state): New.
11977 (child_terminal_init): Adjust.
11978 (is_gdb_terminal, sharing_input_terminal_1)
11979 (sharing_input_terminal): New functions.
11980 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
11981 Set the process's actual process group in the foreground if
11982 possible. Handle is_ours_for_output/is_ours distinction. Don't
11983 mark terminal as the inferior's if not sharing GDB's terminal.
11984 Don't check attach_flag.
11985 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
11986 pass down a target_terminal_state.
11987 (child_terminal_save_inferior): New, factored out from ...
11988 (child_terminal_ours_1): ... this. Handle
11989 target_terminal_state::is_ours_for_output.
11990 (child_interrupt, child_pass_ctrlc): New.
11991 (inflow_inferior_exit): Clear the inferior's terminal_state.
11992 (copy_terminal_info): Copy the inferior's terminal state.
11993 (_initialize_inflow): Remove reference to terminal_is_ours.
11994 * inflow.h (inferior_process_group): Delete.
11995 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
11996 * procfs.c (procfs_target): Don't install procfs_interrupt.
11997 (procfs_interrupt): Delete.
11998 * remote.c (remote_serial_quit_handler): Adjust.
11999 (remote_interrupt): Remove ptid parameter. Adjust.
12000 * target-delegates.c: Regenerate.
12001 * target.c: Include "terminal.h".
12002 (target_terminal::terminal_state): Rename to ...
12003 (target_terminal::m_terminal_state): ... this.
12004 (target_terminal::init): Adjust.
12005 (target_terminal::inferior): Adjust to per-inferior
12006 terminal_state.
12007 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12008 (target_terminal::ours, target_terminal::ours_for_output): Use
12009 target_terminal_is_ours_kind.
12010 (target_interrupt): Remove ptid parameter. Adjust.
12011 (default_target_pass_ctrlc): Adjust.
12012 * target.h (target_ops::to_terminal_save_inferior): New field.
12013 (target_ops::to_interrupt): Remove ptid_t parameter.
12014 (target_interrupt): Remove ptid_t parameter. Update comment.
12015 (target_pass_ctrlc): Update comment.
12016 * target/target.h (target_terminal_state): New scoped enum,
12017 factored out of ...
12018 (target_terminal::terminal_state): ... here.
12019 (target_terminal::inferior): Update comments.
12020 (target_terminal::restore_inferior): New.
12021 (target_terminal::is_inferior, target_terminal::is_ours)
12022 (target_terminal::is_ours_for_output): Adjust.
12023 (target_terminal::scoped_restore_terminal_state): Adjust to
12024 rename, and call restore_inferior() instead of inferior().
12025 (target_terminal::scoped_restore_terminal_state::m_state): Change
12026 type.
12027 (target_terminal::terminal_state): Rename to ...
12028 (target_terminal::m_terminal_state): ... this and change type.
12029
9c3a5d93
PA
120302018-01-30 Pedro Alves <palves@redhat.com>
12031
12032 * linux-nat.c (wait_for_signal): New function.
12033 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12034 directly.
12035 (async_terminal_is_ours)
12036 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12037 (linux_nat_add_target): Don't override
12038 to_terminal_inferior/to_terminal_ours.
12039
69ab5edb
SDJ
120402018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12041
12042 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12043
fc8e7e75
SM
120442018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12045
12046 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12047 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12048 dwarf2_per_objfile_free here.
12049 (dwarf2_per_objfile_free): Remove.
12050 (_initialize_dwarf2_read): Don't register
12051 dwarf2_per_objfile_free as a registry cleanup.
12052
b2a426e2
EZ
120532018-01-27 Eli Zaretskii <eliz@gnu.org>
12054
12055 Avoid compilation errors in MinGW native builds
12056
12057 The error is triggered by including python-internal.h, and the
12058 error message is:
12059
12060 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12061 from build-gnulib/import/math.h:27,
12062 from d:/usr/Python26/include/pyport.h:235,
12063 from d:/usr/Python26/include/Python.h:58,
12064 from python/python-internal.h:94,
12065 from python/py-arch.c:24:
12066 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12067 using ::hypot;
12068 ^~~~~
12069
12070 This happens because Python headers define 'hypot' to expand t
12071 '_hypot' in the Windows builds.
12072 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12073 'hypoth'. This avoids a compilation error.
12074
0bdd8eac
AH
120752018-01-26 Alan Hayward <alan.hayward@arm.com>
12076
12077 * MAINTAINERS (Write After Approval): Fix ordering.
12078
56ae9dc3
AH
120792018-01-26 Alan Hayward <alan.hayward@arm.com>
12080
12081 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12082
7433498b
AM
120832018-01-26 Alan Modra <amodra@gmail.com>
12084
12085 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12086 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12087 Remove nop. Make const. Comment.
12088 (powerpc32_plt_stub_so_2): New.
12089 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12090 Correct count. Update uses.
12091 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12092 Move common code reading PLT entry word. Correct
12093 powerpc32_plt_stub PLT address calculation.
12094 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12095 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12096 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12097 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12098 (ppc64_standard_linkage8): Likewise.
12099 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12100 Correct insns description.
12101 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12102
0f59d5fc
PA
121032018-01-24 Pedro Alves <palves@redhat.com>
12104
12105 GCC PR libstdc++/83906
12106 * gdbtypes.c (operator==(const dynamic_prop &,
12107 const dynamic_prop &)): New.
12108 (operator==(const range_bounds &, const range_bounds &)): New.
12109 (check_types_equal): Use them instead of memcmp.
12110 * gdbtypes.h (operator==(const dynamic_prop &,
12111 const dynamic_prop &)): Declare.
12112 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12113 (operator==(const range_bounds &, const range_bounds &)): Declare.
12114 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12115
ef8914a4
PR
121162018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12117
12118 * s390-linux-tdep.c (s390_record_address_mask)
12119 (s390_record_calc_disp_common, s390_record_calc_disp)
12120 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12121 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12122 (s390_process_record): Move to s390-tdep.c.
12123 (s390_linux_init_abi_any): Adjust.
12124 * s390-tdep.c (s390_record_address_mask)
12125 (s390_record_calc_disp_common, s390_record_calc_disp)
12126 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12127 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12128 (s390_process_record): Moved from s390-linux-tdep.c
12129 (s390_gdbarch_init): Adjust.
12130
d6e58945
PR
121312018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12132
12133 * s390-linux-nat.c (s390-tdep.h): New include.
12134 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12135 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12136 (ALLDEPFILES): Add s390-tdep.c.
12137 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12138 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12139 * s390-tdep.h: ...this. New file.
12140 * s390-linux-tdep.c (s390-tdep.h): New include.
12141 (_initialize_s390_tdep): Rename to...
12142 (_initialize_s390_linux_tdep): ...this and adjust.
12143 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12144 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12145 s390-tdep.h.
12146 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12147 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12148 (s390_is_partial_instruction, s390_software_single_step)
12149 (is_non_branch_ril, s390_displaced_step_copy_insn)
12150 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12151 (s390_prologue_data, s390_addr, s390_store, s390_load)
12152 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12153 (s390_register_call_saved, s390_guess_tracepoint_registers)
12154 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12155 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12156 (s390_pseudo_register_name, s390_pseudo_register_type)
12157 (s390_pseudo_register_read, s390_pseudo_register_write)
12158 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12159 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12160 (s390_addr_bits_remove, s390_address_class_type_flags)
12161 (s390_address_class_type_flags_to_name)
12162 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12163 (s390_function_arg_float, s390_function_arg_vector)
12164 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12165 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12166 (s390_frame_align, s390_register_return_value, s390_return_value)
12167 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12168 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12169 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12170 (s390_trad_frame_prev_register, s390_unwind_cache)
12171 (s390_prologue_frame_unwind_cache)
12172 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12173 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12174 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12175 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12176 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12177 (s390_frame_base_address, s390_local_base_address)
12178 (s390_frame_base, s390_gcc_target_options)
12179 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12180 (s390_validate_reg_range, s390_tdesc_valid)
12181 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12182 * s390-tdep.c: ...this. New file.
12183
9c0b896e
PR
121842018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12185
12186 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12187 (s390_process_record, s390_gdbarch_tdep_alloc)
12188 (s390_linux_init_abi_any): Use/set new hook.
12189
7042632b
PR
121902018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12191
12192 * s390-linux-tdep.c (osabi.h): New include.
12193 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12194 (s390_linux_init_abi_any): New functions.
12195 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12196
650f5e13
PR
121972018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12198
12199 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12200 tdesc_has_registers check
12201
47c9317e
PR
122022018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12203
12204 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12205 (s390_validate_reg_range): New macro.
12206 (s390_gdbarch_init): Adjust.
12207
095085d8
PR
122082018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12209
12210 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12211 (s390_gdbarch_tdep_alloc): Adjust.
12212 (s390_gdbarch_init): Adjust.
12213
ab9bcc67
PR
122142018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12215
12216 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12217 <have_tdb>: Change type to bool.
12218 (s390_gdbarch_tdep_alloc): Adjust.
12219 (s390_gdbarch_init): Adjust.
12220
21f6f5ff
PR
122212018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12222
12223 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12224 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12225 (s390_gdbarch_tdep_alloc): New function.
12226 (s390_gdbarch_init): Allocate tdep at start and use its fields
12227 instead of separate variables.
12228
0eb97953
PR
122292018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12230
12231 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12232 when looking for cached gdbarch and add comment for remaining.
12233
5c319bb2
PA
122342018-01-22 Pedro Alves <palves@redhat.com>
12235 Sergio Durigan Junior <sergiodj@redhat.com>
12236
12237 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12238 case.
12239
d65ce302
MR
122402018-01-22 Maciej W. Rozycki <macro@mips.com>
12241
12242 * MAINTAINERS: Update my company e-mail address.
12243
ec7a5fcb
YQ
122442018-01-22 Yao Qi <yao.qi@linaro.org>
12245
12246 * regcache.c (cooked_write_test): New function.
12247 (_initialize_regcache): Register the test.
12248
11f57cb6
YQ
122492018-01-22 Yao Qi <yao.qi@linaro.org>
12250
12251 * ia64-tdep.c (ia64_pseudo_register_read): Call
12252 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12253 * m32c-tdep.c (m32c_cat_read): Likewise.
12254 (m32c_r3r2r1r0_read): Likewise.
12255 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12256 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12257
03f50fc8
YQ
122582018-01-22 Yao Qi <yao.qi@linaro.org>
12259
12260 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12261 method raw_read instead of regcache_raw_read.
12262 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12263 * arm-tdep.c (arm_neon_quad_read): Likewise.
12264 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12265 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12266 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12267 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12268 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12269 (i386_pseudo_register_read_into_value): Likewise.
12270 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12271 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12272 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12273 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12274 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12275 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12276 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12277 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12278 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12279
dc711524
YQ
122802018-01-22 Yao Qi <yao.qi@linaro.org>
12281
12282 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12283 * configure.tgt: Remove target mt.
12284 * mt-tdep.c: Remove.
12285 * regcache.c (cooked_read_test): Remove the check for mt.
12286
3f5a868b
YQ
122872018-01-22 Yao Qi <yao.qi@linaro.org>
12288
12289 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12290 instead of gdbarch_pseudo_register_read_value.
12291
de4cb04a
JB
122922018-01-22 Joel Brobecker <brobecker@adacore.com>
12293
12294 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12295 language is Ada.
12296
a9e40818
JB
122972018-01-22 Joel Brobecker <brobecker@adacore.com>
12298
12299 * linespec.c (create_sals_line_offset): Remove code that preserved
12300 the symtab_and_line's line number.
12301
e707fc44
AB
123022018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12303
12304 * varobj.c (varobj_create): Don't set valid_block when creating a
12305 floating varobj.
12306
03d0bf7b
AB
123072018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12308
12309 * varobj.c (varobj_create): Remove out of date comment.
12310
ae451627
AB
123112018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12312
12313 PR mi/20395
12314 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12315 updating innermost block.
12316 * parse.c (innermost_block_tracker::update): Take extra type
12317 parameter, and check types match before updating innermost block.
12318 (write_dollar_variable): Update innermost block for registers.
12319 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12320 (innermost_block_tracker::innermost_block_tracker): Initialise
12321 m_types member.
12322 (innermost_block_tracker::reset): Take type parameter.
12323 (innermost_block_tracker::update): Take type parameter, and pass
12324 type through as needed.
12325 (innermost_block_tracker::m_types): New member.
12326 * varobj.c (varobj_create): Pass type when reseting innermost
12327 block.
12328
aee1fcdf
AB
123292018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12330
12331 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12332 * ada-lang.c (resolve_subexp): Likewise.
12333 * breakpoint.c (set_breakpoint_condition) Likewise.
12334 (watch_command_1) Likewise.
12335 * c-exp.y (variable): Likewise.
12336 * d-exp.y (PrimaryExpression): Likewise.
12337 * f-exp.y (variable): Likewise.
12338 * go-exp.y (variable): Likewise.
12339 * m2-exp.y (variable): Likewise.
12340 * objfiles.c (objfile::~objfile): Likewise.
12341 * p-exp.y (variable): Likewise.
12342 * parse.c (innermost_block): Change type.
12343 * parser-defs.h (class innermost_block_tracker): New.
12344 (innermost_block): Change to innermost_block_tracker.
12345 * printcmd.c (display_command): Switch to innermost_block API.
12346 (do_one_display): Likewise.
12347 * rust-exp.y (do_one_display): Likewise.
12348 * symfile.c (clear_symtab_users): Likewise.
12349 * varobj.c (varobj_create): Switch to innermost_block API, replace
12350 use of innermost_block with block stored on varobj object.
12351
396af9a1
AB
123522018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12353
12354 * expression.h (innermost_block): Remove declaration.
12355 * varobj.c: Add 'parser-defs.h' include.
12356
fcfcc376
TT
123572018-01-19 Tom Tromey <tom@tromey.com>
12358
12359 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12360 symbols in the static and global blocks.
12361
5a6c3296
JC
123622018-01-19 James Clarke <jrtc27@jrtc27.com>
12363
12364 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12365 gdb_ptrace.h, and move including gdb_wait.h ...
12366 * nat/linux-ptrace.h: ... to here.
12367
bc09b0c1
SM
123682018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12369
12370 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12371 inf_ptrace_detach_success.
12372 (inf_ptrace_detach_success): Add inferior parameter, use it
12373 instead of inferior_ptid, pass it to detach_inferior.
12374 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12375 parameter.
12376 * inferior.c (detach_inferior): Add overload that takes an
12377 inferior object.
12378 * inferior.h (detach_inferior): Likewise.
12379 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12380 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12381 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12382
6e1e1966
SM
123832018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12384
12385 * target.h (struct target_ops) <to_detach>: Add inferior
12386 parameter.
12387 (target_detach): Likewise.
12388 * target.c (dispose_inferior): Pass inferior down.
12389 (target_detach): Pass inferior down. Assert that it is equal to
12390 the current inferior.
12391 * aix-thread.c (aix_thread_detach): Pass inferior down.
12392 * corefile.c (core_file_command): Pass current_inferior() down.
12393 * corelow.c (core_detach): Add inferior parameter.
12394 * darwin-nat.c (darwin_detach): Likewise.
12395 * gnu-nat.c (gnu_detach): Likewise.
12396 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12397 * infcmd.c (detach_command): Pass current_inferior() down to
12398 target_detach.
12399 * infrun.c (follow_fork_inferior): Pass parent_inf to
12400 target_detach.
12401 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12402 target_detach.
12403 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12404 * linux-thread-db.c (thread_db_detach): Likewise.
12405 * nto-procfs.c (procfs_detach): Likewise.
12406 * procfs.c (procfs_detach): Likewise.
12407 * record.c (record_detach): Likewise.
12408 * record.h (struct inferior): Forward-declare.
12409 (record_detach): Add inferior parameter.
12410 * remote-sim.c (gdbsim_detach): Likewise.
12411 * remote.c (remote_detach_1): Likewise.
12412 (remote_detach): Likewise.
12413 (extended_remote_detach): Likewise.
12414 * sol-thread.c (sol_thread_detach): Likewise.
12415 * target-debug.h (target_debug_print_inferior_p): New macro.
12416 * target-delegates.c: Re-generate.
12417 * top.c (kill_or_detach): Pass inferior down to target_detach.
12418 * windows-nat.c (windows_detach): Add inferior parameter.
12419
6bd6f3b6
SM
124202018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12421
12422 * target.h (struct target_ops) <to_detach>: Remove args
12423 parameter.
12424 (target_detach): Likewise.
12425 * target.c (dispose_inferior): Adjust.
12426 (target_detach): Remove args parameter, adjust.
12427 * aix-thread.c (aix_thread_detach): Adjust.
12428 * corefile.c (core_file_command): Adjust.
12429 * corelow.c (core_detach): Adjust.
12430 * darwin-nat.c (darwin_detach): Adjust.
12431 * gnu-nat.c (gnu_detach): Adjust.
12432 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12433 * infcmd.c (detach_command): Adjust
12434 * infrun.c (follow_fork_inferior): Adjust.
12435 (handle_vfork_child_exec_or_exit): Adjust.
12436 * linux-fork.c (linux_fork_detach): Remove args parameter.
12437 * linux-fork.h (linux_fork_detach): Likewise.
12438 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12439 * linux-thread-db.c (thread_db_detach): Likewise.
12440 * nto-procfs.c (procfs_detach): Likewise.
12441 * procfs.c (procfs_detach): Likewise.
12442 (do_detach): Remove signo parameter.
12443 * record.c (record_detach): Remove args parameter.
12444 * record.h (record_detach): Likewise.
12445 * remote-sim.c (gdbsim_detach): Likewise.
12446 * remote.c (remote_detach_1): Likewise.
12447 (remote_detach): Likewise.
12448 (extended_remote_detach): Likewise.
12449 * sol-thread.c (sol_thread_detach): Likewise.
12450 * target-delegates.c: Re-generate.
12451 * top.c (struct qt_args) <args>: Remove field.
12452 (kill_or_detach): Don't pass args.
12453 (quit_force): Don't set args.
12454 * windows-nat.c (windows_detach): Remove args parameter.
12455
88af8ea8
YQ
124562018-01-19 Yao Qi <yao.qi@linaro.org>
12457
12458 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12459 (arm_linux_init_abi): Install it.
12460
dea445b9
YQ
124612018-01-19 Yao Qi <yao.qi@linaro.org>
12462
12463 * osabi.c (gdb_osabi_names): Extend the regexp for
12464 arm-linux-gnueabihf.
12465
4a17f768
YQ
124662018-01-18 Yao Qi <yao.qi@linaro.org>
12467
12468 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12469 m_abbrevs.
12470 (abbrev_table::add_abbrev): Update.
12471 (abbrev_table::lookup_abbrev): Update.
12472
d679c21a
YQ
124732018-01-18 Yao Qi <yao.qi@linaro.org>
12474
12475 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12476
7d937cad
SDJ
124772018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12478
12479 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12480 to "std::string".
12481
9e14690d
TT
124822018-01-17 Tom Tromey <tom@tromey.com>
12483
12484 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12485
50a82047
TT
124862018-01-17 Tom Tromey <tom@tromey.com>
12487
12488 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12489 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12490 (create_array_type_with_stride): Update.
12491 * dwarf2read.c (set_die_type): Update.
12492
c89b44cd
TT
124932018-01-17 Tom Tromey <tom@tromey.com>
12494
12495 * dwarf2read.c (delayed_method_info): Remove typedef.
12496 (dwarf2_cu::method_info): Now a std::vector.
12497 (add_to_method_list): Update.
12498 (free_delayed_list): Remove.
12499 (compute_delayed_physnames): Update.
12500 (process_full_comp_unit, process_full_type_unit): Clear the method
12501 list. Remove cleanups.
12502 (psymtab_include_file_name): Add name_holder parameter. Use
12503 unique_xmalloc_ptr.
12504 (dwarf_decode_lines): Update.
12505
fcd3b13d
SM
125062018-01-17 Tom Tromey <tom@tromey.com>
12507 Simon Marchi <simon.marchi@ericsson.com>
12508
12509 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12510 (dwarf2_per_objfile::free_cached_comp_units)
12511 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12512 (init_cutu_and_read_dies_no_follow): Update.
12513 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12514 (dwarf2_cu::~dwarf2_cu): New.
12515 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12516 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12517
685af9cd
TT
125182018-01-17 Tom Tromey <tom@tromey.com>
12519 Simon Marchi <simon.marchi@ericsson.com>
12520
12521 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12522 (struct die_reader_specs) <abbrev_table>: New member.
12523 (struct abbrev_table): Add constructor.
12524 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12525 <abbrev_obstack>: Now an auto_obstack.
12526 (abbrev_table_up): New typedef.
12527 (init_cu_die_reader): Add abbrev_table parameter.
12528 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12529 Add result_dwo_abbrev_table.
12530 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12531 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12532 Update.
12533 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12534 parameter.
12535 (skip_children): Update.
12536 (abbrev_table::alloc_abbrev): Rename from
12537 abbrev_table_alloc_abbrev.
12538 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
12539 (abbrev_table::lookup_abbrev): Rename from
12540 abbrev_table_lookup_abbrev.
12541 (abbrev_table_read_table): Return abbrev_table_up.
12542 (abbrev_table_free, abbrev_table_free_cleanup)
12543 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
12544 (load_partial_dies): Update.
12545
5e2db402
TT
125462018-01-17 Tom Tromey <tom@tromey.com>
12547
12548 * dwarf2read.c (dwarf2_compute_name): Update comment.
12549 (read_func_scope, read_variable): Update.
12550 (new_symbol): Remove.
12551 (new_symbol_full): Rename to new_symbol.
12552
ee7f689e 125532018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
12554
12555 PR gdb/16577
12556 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
12557 a warning instead of throwing an error, set section size to 0 and return
12558 NULL.
12559 * gdb_bfd.h (gdb_bfd_map_section): Update description.
12560
4d9b86e1
SM
125612018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12562
12563 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
12564 std::string.
12565 (linux_ptrace_attach_fail_reason_string): Likewise.
12566 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
12567 Likewise.
12568 (linux_ptrace_attach_fail_reason_string): Likewise.
12569 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
12570
a7b2d0fb
SM
125712018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12572
12573 * linux-nat.c (linux_nat_attach): Remove xstrdup.
12574
f517c180
EA
125752018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
12576
12577 PR gdb/21559
12578 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
12579 checking for fs_base/gs_base fields in struct user_regs_struct.
12580 * configure: Regenerate.
12581
7045b1ca
YQ
125822018-01-17 Yao Qi <yao.qi@linaro.org>
12583
12584 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12585 function.
12586 (aarch64_linux_init_abi): Install it to gdbarch hook
12587 gcc_target_options.
12588
db422fb2
PA
125892018-01-15 Pedro Alves <palves@redhat.com>
12590
12591 * common/signals-state-save-restore.c
12592 (save_original_signals_state): Fix typos.
12593
ba643918
SDJ
125942017-01-12 Tom Tromey <tom@tromey.com>
12595 Sergio Durigan Junior <sergiodj@redhat.com>
12596
12597 * Makefile.in (install-only): Install gdb-add-index.
12598
906b4aac
JB
125992018-01-12 John Baldwin <jhb@FreeBSD.org>
12600
12601 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
12602
bdf2a94a
AA
126032018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12604
12605 * infrun.c (keep_going_pass_signal): Clear step-over info when
12606 insert_breakpoints fails.
12607
71d378ae
PA
126082018-01-11 Pedro Alves <palves@redhat.com>
12609
12610 PR gdb/22583
12611 * infrun.c (resume): Rename to ...
12612 (resume_1): ... this.
12613 (resume): Reimplement as wrapper around resume_1.
12614
3cada740
PA
126152018-01-11 Pedro Alves <palves@redhat.com>
12616
12617 PR remote/22597
12618 * remote.c (remote_parse_stop_reply): Default to the last-set
12619 general thread instead of to 'magic_null_ptid'.
12620
618daa93
PA
126212018-01-10 Pedro Alves <palves@redhat.com>
12622
12623 * language.h (language_get_symbol_name_matcher): Rename ...
12624 (get_symbol_name_matcher): ... this.
12625 * language.c (language_get_symbol_name_matcher): Ditto.
12626 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
12627 callers adjusted.
12628
c63d3e8d
PA
126292018-01-10 Pedro Alves <palves@redhat.com>
12630
12631 PR gdb/22670
12632 * dwarf2read.c
12633 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
12634 Adjust to use language_get_symbol_name_matcher instead of
12635 language_defn::la_get_symbol_name_matcher.
12636 * language.c (language_get_symbol_name_matcher): If in Ada mode
12637 and the lookup name is a verbatim match, return Ada's matcher.
12638 * language.h (language_get_symbol_name_matcher): Adjust comment.
12639 (ada_lookup_name_info::verbatim_p):: New method.
12640
d4c2a405
PA
126412018-01-10 Pedro Alves <palves@redhat.com>
12642
12643 PR gdb/22670
12644 * ada-lang.c (ada_collect_symbol_completion_matches): If the
12645 minsym's language is language_auto or language_cplus, pass down
12646 language_ada instead.
12647 * symtab.c (compare_symbol_name): Don't frob symbol language here.
12648
8825213e
PA
126492018-01-10 Pedro Alves <palves@redhat.com>
12650
12651 PR gdb/22670
12652 * minsyms.c (linkage_name_str): New function.
12653 (iterate_over_minimal_symbols): Use it.
12654
2d97a5d9
JB
126552018-01-09 John Baldwin <jhb@FreeBSD.org>
12656
12657 * NEWS: Document that 'info proc' now works on FreeBSD.
12658
92fce24d
JB
126592018-01-09 John Baldwin <jhb@FreeBSD.org>
12660
12661 * configure.ac: Check for kinfo_getfile in libutil.
12662 * configure: Regenerate.
12663 * config.in: Regenerate.
12664 * fbsd-nat.c: Include "fbsd-tdep.h".
12665 (fbsd_fetch_cmdline): New.
12666 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
12667 rather than calling error.
12668 (fbsd_info_proc): New.
12669 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
12670 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
12671 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
12672
262f62f5
JB
126732018-01-09 John Baldwin <jhb@FreeBSD.org>
12674
12675 * fbsd-nat.c (struct free_deleter): Remove.
12676 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
12677
b999e203
JB
126782018-01-09 John Baldwin <jhb@FreeBSD.org>
12679
12680 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
12681 NULL for an empty pathname.
12682
d2176225
JB
126832018-01-09 John Baldwin <jhb@FreeBSD.org>
12684
12685 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
12686 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
12687 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12688 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12689 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
12690 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
12691 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
12692 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
12693 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
12694 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
12695 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
12696 (fbsd_core_fetch_timeval, fbsd_print_sigset)
12697 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
12698 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
12699 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
12700
9c4ac400
ST
127012018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
12702
12703 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
12704 (gnu_xfer_auxv): New function.
12705 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
12706 TARGET_OBJECT_AUXV.
12707
1e5ded6c
YQ
127082018-01-08 Yao Qi <yao.qi@linaro.org>
12709 Simon Marchi <simon.marchi@ericsson.com>
12710
12711 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
12712 common/selftest.c.
12713 (COMMON_OBS): Remove selftest.o.
12714 * configure.ac: Append selftest-arch.c and common/selftest.c to
12715 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
12716 * configure: Re-generated.
12717 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
12718 GDB_SELF_TEST.
12719 (maintenance_info_selftests): Likewise.
12720
04bafb1e
XR
127212018-01-08 Xavier Roirand <roirand@adacore.com>
12722
12723 * ada-valprint.c (val_print_packed_array_elements): Use
12724 proper number of elements when printing an array indexed
12725 by an enumeration type.
12726
518817b3
SM
127272018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12728
12729 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
12730 (dw2_get_file_names_reader): Adjust.
12731 (lookup_dwo_signatured_type): Adjust.
12732 (lookup_dwp_signatured_type): Adjust.
12733 (lookup_signatured_type): Adjust.
12734 (create_type_unit_group): Adjust.
12735 (get_type_unit_group): Adjust.
12736 (process_psymtab_comp_unit_reader): Adjust.
12737 (build_type_psymtabs_reader): Adjust.
12738 (scan_partial_symbols): Adjust.
12739 (add_partial_symbol): Adjust.
12740 (add_partial_subprogram): Adjust.
12741 (peek_die_abbrev): Adjust.
12742 (fixup_go_packaging): Adjust.
12743 (process_imported_unit_die): Adjust.
12744 (dwarf2_compute_name): Adjust.
12745 (dwarf2_physname): Adjust.
12746 (read_import_statement): Adjust.
12747 (handle_DW_AT_stmt_list): Adjust.
12748 (read_file_scope): Adjust.
12749 (read_func_scope): Adjust.
12750 (read_lexical_block_scope): Adjust.
12751 (read_call_site_scope): Adjust.
12752 (read_variable): Adjust.
12753 (dwarf2_rnglists_process): Adjust.
12754 (dwarf2_ranges_process): Adjust.
12755 (dwarf2_ranges_read): Adjust.
12756 (dwarf2_get_pc_bounds): Adjust.
12757 (dwarf2_record_block_ranges): Adjust.
12758 (dwarf2_add_field): Adjust.
12759 (dwarf2_add_member_fn): Adjust.
12760 (read_structure_type): Adjust.
12761 (process_structure_scope): Adjust.
12762 (read_enumeration_type): Adjust.
12763 (read_array_type): Adjust.
12764 (mark_common_block_symbol_computed): Adjust.
12765 (read_common_block): Adjust.
12766 (read_namespace_type): Adjust.
12767 (read_namespace): Adjust.
12768 (read_module_type): Adjust.
12769 (read_tag_pointer_type): Adjust.
12770 (read_tag_ptr_to_member_type): Adjust.
12771 (read_tag_string_type): Adjust.
12772 (read_subroutine_type): Adjust.
12773 (read_typedef): Adjust.
12774 (read_base_type): Adjust.
12775 (attr_to_dynamic_prop): Adjust.
12776 (read_subrange_type): Adjust.
12777 (read_unspecified_type): Adjust.
12778 (dwarf2_read_abbrevs): Adjust.
12779 (load_partial_dies): Adjust.
12780 (read_partial_die): Adjust.
12781 (find_partial_die): Adjust.
12782 (guess_partial_die_structure_name): Adjust.
12783 (fixup_partial_die): Adjust.
12784 (read_attribute_value): Adjust.
12785 (read_addr_index): Adjust.
12786 (read_addr_index_from_leb128): Adjust.
12787 (read_str_index): Adjust.
12788 (dwarf2_string_attr): Adjust.
12789 (get_debug_line_section): Adjust.
12790 (dwarf_decode_line_header): Adjust.
12791 (lnp_state_machine::check_line_address): Adjust.
12792 (dwarf_decode_lines_1): Adjust.
12793 (dwarf_decode_lines): Adjust.
12794 (dwarf2_start_symtab): Adjust.
12795 (var_decode_location): Adjust.
12796 (new_symbol_full): Adjust.
12797 (dwarf2_const_value_data): Adjust.
12798 (dwarf2_const_value_attr): Adjust.
12799 (dwarf2_const_value): Adjust.
12800 (die_type): Adjust.
12801 (die_containing_type): Adjust.
12802 (build_error_marker_type): Adjust.
12803 (lookup_die_type): Adjust.
12804 (guess_full_die_structure_name): Adjust.
12805 (anonymous_struct_prefix): Adjust.
12806 (determine_prefix): Adjust.
12807 (dwarf2_name): Adjust.
12808 (follow_die_ref_or_sig): Adjust.
12809 (follow_die_offset): Adjust.
12810 (follow_die_ref): Adjust.
12811 (follow_die_sig_1): Adjust.
12812 (follow_die_sig): Adjust.
12813 (get_signatured_type): Adjust.
12814 (get_DW_AT_signature_type): Adjust.
12815 (decode_locdesc): Adjust.
12816 (dwarf_decode_macros): Adjust.
12817 (cu_debug_loc_section): Adjust.
12818 (fill_in_loclist_baton): Adjust.
12819 (dwarf2_symbol_mark_computed): Adjust.
12820 (init_one_comp_unit): Don't assign
12821 dwarf2_cu::dwarf2_per_objfile.
12822 (set_die_type): Adjust.
12823
ed2dc618
SM
128242018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12825
12826 * dwarf2read.c (struct mapped_debug_names): Add constructor.
12827 <dwarf2_per_objfile>: New field.
12828 (dwarf2_per_objfile): Remove global.
12829 (get_dwarf2_per_objfile): New function.
12830 (set_dwarf2_per_objfile): New function.
12831 (dwarf2_build_psymtabs_hard): Change objfile parameter to
12832 dwarf2_per_objfile.
12833 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12834 (read_abbrev_offset): Likewise.
12835 (read_indirect_string): Likewise.
12836 (read_indirect_line_string): Likewise.
12837 (read_indirect_string_at_offset): Likewise.
12838 (read_indirect_string_from_dwz): Likewise.
12839 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12840 dwarf2_per_objfile.
12841 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12842 (create_all_comp_units): Change objfile parameter to
12843 dwarf2_per_objfile.
12844 (create_all_type_units): Likewise.
12845 (process_queue): Add dwarf2_per_objfile parameter.
12846 (read_and_check_comp_unit_head): Likewise.
12847 (lookup_dwo_unit_in_dwp): Likewise.
12848 (get_dwp_file): Likewise.
12849 (process_cu_includes): Likewise.
12850 (struct free_dwo_file_cleanup_data): New struct.
12851 (dwarf2_has_info): Use get_dwarf2_per_objfile and
12852 set_dwarf2_per_objfile.
12853 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
12854 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
12855 context, adjust calls.
12856 (dw2_instantiate_symtab): Likewise.
12857 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
12858 (dw2_get_cu): Likewise.
12859 (create_cu_from_index_list): Change objfile parameter to
12860 dwarf2_per_objfile.
12861 (create_cus_from_index_list): Get dwarf2_per_objfile from
12862 context, adjust calls.
12863 (create_cus_from_index): Likewise.
12864 (create_signatured_type_table_from_index): Change objfile
12865 parameter to dwarf2_per_objfile.
12866 (create_signatured_type_table_from_debug_names): Change objfile
12867 parameter to dwarf2_per_objfile.
12868 (create_addrmap_from_index): Likewise.
12869 (create_addrmap_from_aranges): Likewise.
12870 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
12871 (dw2_setup): Remove.
12872 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
12873 context.
12874 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
12875 get_dwarf2_per_objfile.
12876 (dw2_forget_cached_source_info): Likewise.
12877 (dw2_map_symtabs_matching_filename): Likewise.
12878 (struct dw2_symtab_iterator) <index>: Remove.
12879 <dwarf2_per_objfile>: New field.
12880 (dw2_symtab_iter_init): Replace index parameter with
12881 dwarf2_per_objfile.
12882 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
12883 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
12884 (dw2_print_stats): Likewise.
12885 (dw2_dump): Likewise.
12886 (dw2_expand_symtabs_for_function): Likewise.
12887 (dw2_expand_all_symtabs): Likewise.
12888 (dw2_expand_symtabs_with_fullname): Likewise.
12889 (dw2_expand_marked_cus): Replace index and objfile parameters
12890 with dwarf2_per_objfile.
12891 (dw_expand_symtabs_matching_file_matcher): Add
12892 dwarf2_per_objfile parameter and adjust calls.
12893 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
12894 adjust calls.
12895 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
12896 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
12897 adjust calls.
12898 (create_cus_from_debug_names_list): Replace objfile parameter
12899 with dwarf2_per_objfile and adjust calls.
12900 (create_cus_from_debug_names): Likewise.
12901 (dwarf2_read_debug_names): Likewise.
12902 (mapped_debug_names::namei_to_name): Adjust call.
12903 (dw2_debug_names_iterator::next): Likewise.
12904 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
12905 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
12906 (dw2_debug_names_dump): Likewise.
12907 (dw2_debug_names_expand_symtabs_for_function): Likewise.
12908 (dw2_debug_names_expand_symtabs_matching): Likewise.
12909 (dwarf2_initialize_objfile): Likewise.
12910 (dwarf2_build_psymtabs): Likewise.
12911 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
12912 this_cu.
12913 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
12914 (read_and_check_comp_unit_head): Likewise.
12915 (read_abbrev_offset): Likewise.
12916 (create_debug_type_hash_table): Likewise.
12917 (create_debug_types_hash_table): Likewise.
12918 (create_all_type_units): Replace objfile parameter with
12919 dwarf2_per_objfile.
12920 (add_type_unit): Add dwarf2_per_objfile parameter.
12921 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
12922 with dwarf2_per_objfile.
12923 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
12924 (lookup_dwp_signatured_type): Likewise.
12925 (lookup_signatured_type): Likewise.
12926 (read_cutu_die_from_dwo): Likewise.
12927 (init_tu_and_read_dwo_dies): Likewise.
12928 (init_cutu_and_read_dies): Likewise.
12929 (init_cutu_and_read_dies_no_follow): Likewise.
12930 (allocate_type_unit_groups_table): Add objfile parameter.
12931 (create_type_unit_group): Use dwarf2_per_objfile from cu.
12932 (get_type_unit_group): Likewise.
12933 (process_psymtab_comp_unit): Update call.
12934 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
12935 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
12936 (print_tu_stats): Likewise.
12937 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
12938 in void* parameter.
12939 (build_type_psymtabs): Change objfile parameter to
12940 dwarf2_per_objfile.
12941 (process_skeletonless_type_unit): Use dwarf2_per_objfile
12942 passed in void* parameter.
12943 (process_skeletonless_type_units): Change objfile parameter to
12944 dwarf2_per_objfile.
12945 (set_partial_user): Likewise.
12946 (dwarf2_build_psymtabs_hard): Likewise.
12947 (read_comp_units_from_section): Likewise.
12948 (create_all_comp_units): Likewise.
12949 (scan_partial_symbols): Update calls.
12950 (add_partial_symbol): Likewise.
12951 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
12952 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
12953 (process_queue): Add dwarf2_per_objfile parameter.
12954 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
12955 (compute_compunit_symtab_includes): Likewise.
12956 (process_cu_includes): Add dwarf2_per_objfile parameter.
12957 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
12958 (process_full_type_unit): Likewise.
12959 (process_imported_unit_die): Update call.
12960 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
12961 (read_file_scope): Likewise.
12962 (allocate_dwo_file_hash_table): Add objfile parameter.
12963 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
12964 (create_cus_hash_table): Likewise.
12965 (create_dwp_hash_table): Likewise.
12966 (create_dwo_unit_in_dwp_v1): Likewise.
12967 (create_dwp_v2_section): Likewise.
12968 (create_dwo_unit_in_dwp_v2): Likewise.
12969 (lookup_dwo_unit_in_dwp): Likewise.
12970 (try_open_dwop_file): Likewise.
12971 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
12972 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
12973 cleanup to include a reference to dwarf2_per_objfile.
12974 (open_dwp_file): Add dwarf2_per_objfile parameter.
12975 (open_and_init_dwp_file): Likewise.
12976 (get_dwp_file): Likewise.
12977 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
12978 (queue_and_load_all_dwo_tus): Update call.
12979 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
12980 data.
12981 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
12982 (dwarf2_ranges_process): Likewise.
12983 (dwarf2_get_pc_bounds): Likewise.
12984 (mark_common_block_symbol_computed): Likewise.
12985 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12986 (dwarf2_read_abbrevs): Update call.
12987 (read_partial_die): Use dwarf2_per_objfile from cu.
12988 (find_partial_die): Likewise.
12989 (fixup_partial_die): Likewise.
12990 (read_attribute_value): Likewise.
12991 (read_indirect_string_at_offset_from): Add objfile parameter.
12992 (read_indirect_string_at_offset): Add dwarf2_per_objfile
12993 parameter.
12994 (read_indirect_string_from_dwz): Add objfile parameter.
12995 (read_indirect_string): Add objfile parameter.
12996 (read_addr_index_1): Add dwarf2_per_objfile parameter.
12997 (read_addr_index): Use dwarf2_per_objfile from cu.
12998 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
12999 call dw2_setup.
13000 (read_str_index): Use dwarf2_per_objfile from cu.
13001 (get_debug_line_section): Likewise.
13002 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13003 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13004 (new_symbol_full): Use dwarf2_per_objfile from cu.
13005 (build_error_marker_type): Likewise.
13006 (lookup_die_type): Likewise.
13007 (determine_prefix): Likewise.
13008 (follow_die_offset): Likewise.
13009 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13010 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13011 (dwarf2_fetch_die_type_sect_off): Likewise.
13012 (dwarf2_get_die_type): Likewise.
13013 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13014 (get_signatured_type): Likewise.
13015 (get_DW_AT_signature_type): Likewise.
13016 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13017 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13018 (cu_debug_loc_section): Likewise.
13019 (fill_in_loclist_baton): Likewise.
13020 (dwarf2_symbol_mark_computed): Likewise.
13021 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13022 dwarf2_per_objfile.
13023 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13024 parameter.
13025 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13026 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13027 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13028 (set_die_type): Use dwarf2_free_objfile from cu.
13029 (get_die_type_at_offset): Likewise.
13030 (dwarf2_per_objfile_free): Don't assign global variable.
13031 (debug_names) <constructor>: Add dwarf2_per_objfile
13032 parameter, update m_debugstrlookup construction.
13033 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13034 parameter.
13035 <m_dwarf2_per_objfile>: New field.
13036 <lookup>: Use m_dwarf2_per_objfile.
13037 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13038 (psyms_seen_size): Likewise.
13039 (write_gdbindex): Replace objfile parameter with
13040 dwarf2_per_objfile.
13041 (write_debug_names): Likewise.
13042 (write_psymtabs_to_index): Likewise.
13043 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13044 calls.
13045
e3b94546
SM
130462018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13047
13048 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13049 <dwarf2_per_objfile>: New field.
13050 (struct dwarf2_per_cu_data) <objfile>: Remove.
13051 <dwarf2_per_objfile>: New field.
13052 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13053 of objfile.
13054 (create_signatured_type_table_from_index): Likewise.
13055 (create_debug_type_hash_table): Likewise.
13056 (fill_in_sig_entry_from_dwo_entry): Likewise.
13057 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13058 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13059 objfile.
13060 (create_partial_symtab): Access objfile through
13061 dwarf2_per_objfile.
13062 (process_psymtab_comp_unit_reader): Likewise.
13063 (read_comp_units_from_section): Likewise.
13064 (scan_partial_symbols): Likewise.
13065 (add_partial_symbol): Likewise.
13066 (add_partial_subprogram): Likewise.
13067 (peek_die_abbrev): Likewise.
13068 (fixup_go_packaging): Likewise.
13069 (process_full_comp_unit): Likewise.
13070 (process_full_type_unit): Likewise.
13071 (process_imported_unit_die): Likewise.
13072 (dwarf2_compute_name): Likewise.
13073 (dwarf2_physname): Likewise.
13074 (read_import_statement): Likewise.
13075 (create_cus_hash_table): Assign dwarf2_physname instead of
13076 objfile.
13077 (read_func_scope): Access objfile through dwarf2_per_objfile.
13078 (read_lexical_block_scope): Likewise.
13079 (read_call_site_scope): Likewise.
13080 (read_variable): Likewise.
13081 (dwarf2_rnglists_process): Likewise.
13082 (dwarf2_ranges_process): Likewise.
13083 (dwarf2_ranges_read): Likewise.
13084 (dwarf2_record_block_ranges): Likewise.
13085 (dwarf2_add_field): Likewise.
13086 (dwarf2_add_member_fn): Likewise.
13087 (read_structure_type): Likewise.
13088 (process_structure_scope): Likewise.
13089 (read_enumeration_type): Likewise.
13090 (read_array_type): Likewise.
13091 (read_common_block): Likewise.
13092 (read_namespace_type): Likewise.
13093 (read_namespace): Likewise.
13094 (read_module_type): Likewise.
13095 (read_tag_pointer_type): Likewise.
13096 (read_tag_ptr_to_member_type): Likewise.
13097 (read_tag_string_type): Likewise.
13098 (read_subroutine_type): Likewise.
13099 (read_typedef): Likewise.
13100 (read_base_type): Likewise.
13101 (attr_to_dynamic_prop): Likewise.
13102 (read_subrange_type): Likewise.
13103 (read_unspecified_type): Likewise.
13104 (load_partial_dies): Likewise.
13105 (read_partial_die): Likewise.
13106 (find_partial_die): Likewise.
13107 (guess_partial_die_structure_name): Likewise.
13108 (fixup_partial_die): Likewise.
13109 (read_attribute_value): Likewise.
13110 (read_addr_index_from_leb128): Likewise.
13111 (dwarf2_read_addr_index): Likewise.
13112 (dwarf2_string_attr): Likewise.
13113 (lnp_state_machine::check_line_address): Likewise.
13114 (dwarf_decode_lines_1): Likewise.
13115 (dwarf_decode_lines): Likewise.
13116 (dwarf2_start_symtab): Likewise.
13117 (var_decode_location): Likewise.
13118 (new_symbol_full): Likewise.
13119 (dwarf2_const_value_data): Likewise.
13120 (dwarf2_const_value_attr): Likewise.
13121 (dwarf2_const_value): Likewise.
13122 (die_type): Likewise.
13123 (die_containing_type): Likewise.
13124 (lookup_die_type): Likewise.
13125 (guess_full_die_structure_name): Likewise.
13126 (anonymous_struct_prefix): Likewise.
13127 (dwarf2_name): Likewise.
13128 (follow_die_ref_or_sig): Likewise.
13129 (follow_die_offset): Likewise.
13130 (follow_die_ref): Likewise.
13131 (dwarf2_fetch_die_loc_sect_off): Likewise.
13132 (dwarf2_fetch_constant_bytes): Likewise.
13133 (dwarf2_fetch_die_type_sect_off): Likewise.
13134 (dwarf2_get_die_type): Likewise.
13135 (follow_die_sig): Likewise.
13136 (decode_locdesc): Likewise.
13137 (dwarf2_per_cu_objfile): Likewise.
13138 (dwarf2_per_cu_text_offset): Likewise.
13139 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13140 objfile.
13141 (set_die_type): Access objfile through
13142 dwarf2_per_objfile.
13143
b01ba14d
SM
131442018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13145
13146 * valprint.c (converted_character_d): Remove typedef.
13147 (DEF_VEC_O (converted_character_d)): Remove.
13148 (count_next_character): Use std::vector.
13149 (print_converted_chars_to_obstack): Likewise.
13150 (generic_printstr): Likewise.
13151
4d0fdd9b
SM
131522018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13153
13154 * xml-support.h (struct gdb_xml_value): Add constructor.
13155 <value>: Change type to unique_xmalloc_ptr.
13156 (gdb_xml_value_s): Remove typedef.
13157 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13158 (gdb_xml_element_start_handler): Change parameter type to
13159 std::vector.
13160 (xml_find_attribute): Likewise.
13161 * xml-support.c (xml_find_attribute): Change parameter type to
13162 std::vector and adjust.
13163 (gdb_xml_values_cleanup): Remove.
13164 (gdb_xml_parser::start_element): Adjust to std::vector.
13165 (xinclude_start_include): Change paraeter type to std::vector
13166 and adjust.
13167 * btrace.c (check_xml_btrace_version): Likewise.
13168 (parse_xml_btrace_block): Likewise.
13169 (parse_xml_btrace_pt_config_cpu): Likewise.
13170 (parse_xml_btrace_pt): Likewise.
13171 (parse_xml_btrace_conf_bts): Likewise.
13172 (parse_xml_btrace_conf_pt): Likewise.
13173 * memory-map.c (memory_map_start_memory): Likewise.
13174 (memory_map_start_property): Likewise.
13175 * osdata.c (osdata_start_osdata): Likewise.
13176 (osdata_start_item): Likewise.
13177 (osdata_start_column): Likewise.
13178 * remote.c (start_thread): Likewise.
13179 * solib-aix.c (library_list_start_library): Likewise.
13180 (library_list_start_list): Likewise.
13181 * solib-svr4.c (library_list_start_library): Likewise.
13182 (svr4_library_list_start_list): Likewise.
13183 * solib-target.c (library_list_start_segment): Likewise.
13184 (library_list_start_section): Likewise.
13185 (library_list_start_library): Likewise.
13186 (library_list_start_list): Likewise.
13187 * tracepoint.c (traceframe_info_start_memory): Likewise.
13188 (traceframe_info_start_tvar): Likewise.
13189 * xml-syscall.c (syscall_start_syscall): Likewise.
13190 * xml-tdesc.c (tdesc_start_target): Likewise.
13191 (tdesc_start_feature): Likewise.
13192 (tdesc_start_reg): Likewise.
13193 (tdesc_start_union): Likewise.
13194 (tdesc_start_struct): Likewise.
13195 (tdesc_start_flags): Likewise.
13196 (tdesc_start_enum): Likewise.
13197 (tdesc_start_field): Likewise.
13198 (tdesc_start_enum_value): Likewise.
13199 (tdesc_start_vector): Likewise.
13200
f979c73f
SM
132012018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13202
13203 * extension.h (struct xmethod_worker) <clone>: Remove.
13204 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13205 Remove.
13206 (python_xmethod_worker::clone): Remove.
13207 * valops.c (find_overload_match): Use std::move instead of
13208 clone.
13209
ba18742c
SM
132102018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13211
13212 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13213 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13214 <free_xmethod_worker_data>: Remove.
13215 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13216 <get_xmethod_arg_types>: Remove.
13217 <get_xmethod_result_type>: Remove.
13218 <invoke_xmethod>: Remove.
13219 * extension.c (new_xmethod_worker): Remove.
13220 (clone_xmethod_worker): Remove.
13221 (get_matching_xmethod_workers): Return void, pass std::vector by
13222 pointer.
13223 (get_xmethod_arg_types): Rename to...
13224 (xmethod_worker::get_arg_types): ... this, and adjust.
13225 (get_xmethod_result_type): Rename to...
13226 (xmethod_worker::get_result_type): ... this, and adjust.
13227 (invoke_xmethod): Remove.
13228 (free_xmethod_worker): Remove.
13229 (free_xmethod_worker_vec): Remove.
13230 * extension.h (enum ext_lang_rc): Move here from
13231 extension-priv.h.
13232 (struct xmethod_worker): Add constructor and destructor.
13233 <data>: Remove.
13234 <value>: Remove.
13235 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13236 virtual pure methods.
13237 <get_arg_types, get_result_type>: New methods.
13238 (xmethod_worker_ptr): Remove typedef.
13239 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13240 (xmethod_worker_vec): Remove typedef.
13241 (xmethod_worker_up): New typedef.
13242 (invoke_xmethod): Remove.
13243 (clone_xmethod_worker): Remove.
13244 (free_xmethod_worker): Remove.
13245 (free_xmethod_worker_vec): Remove.
13246 (get_xmethod_arg_types): Remove.
13247 (get_xmethod_result_type): Remove.
13248 * valops.c (find_method_list): Use std::vector, don't use
13249 intermediate vector.
13250 (value_find_oload_method_list): Use std::vector.
13251 (find_overload_match): Use std::vector.
13252 (find_oload_champ): Use std::vector.
13253 * value.c (value_free): Use operator delete.
13254 (value_of_xmethod): Rename to...
13255 (value_from_xmethod): ... this. Don't assign
13256 xmethod_worker::value, take rvalue-reference.
13257 (result_type_of_xmethod): Adjust.
13258 (call_xmethod): Adjust.
13259 * value.h: Include extension.h.
13260 (struct xmethod_worker): Don't forward-declare.
13261 (value_of_xmethod): Rename to...
13262 (value_from_xmethod): ... this, take rvalue-reference.
13263 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13264 (struct python_xmethod_worker): ... this, add constructor and
13265 destructor.
13266 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13267 (gdbpy_free_xmethod_worker_data): Rename to...
13268 (python_xmethod_worker::~python_xmethod_worker): ... this and
13269 adjust.
13270 (gdbpy_clone_xmethod_worker_data): Rename to...
13271 (python_xmethod_worker::clone): ... this and adjust.
13272 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13273 temporary vector.
13274 (gdbpy_get_xmethod_arg_types): Rename to...
13275 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13276 (gdbpy_get_xmethod_result_type): Rename to...
13277 (python_xmethod_worker::do_get_result_type): ... this and
13278 adjust.
13279 (gdbpy_invoke_xmethod): Rename to...
13280 (python_xmethod_worker::invoke): ... this and adjust.
13281 (new_python_xmethod_worker): Rename to...
13282 (python_xmethod_worker::python_xmethod_worker): ... this and
13283 adjust.
13284 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13285 Remove.
13286 (gdbpy_free_xmethod_worker_data): Remove.
13287 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13288 (gdbpy_get_xmethod_arg_types): Remove.
13289 (gdbpy_get_xmethod_result_type): Remove.
13290 (gdbpy_invoke_xmethod): Remove.
13291 * python/python.c (python_extension_ops): Remove obsolete
13292 callbacks.
13293
e379cee6
PA
132942018-01-05 Pedro Alves <palves@redhat.com>
13295
13296 PR gdb/18653
13297 * common/signals-state-save-restore.c
13298 (save_original_signals_state): New parameter 'quiet'. Warn if we
13299 find a custom handler preinstalled, instead of internal erroring.
13300 But only warn if !quiet.
13301 * common/signals-state-save-restore.h
13302 (save_original_signals_state): New parameter 'quiet'.
13303 * main.c (captured_main_1): Move save_original_signals_state call
13304 after option handling, and pass QUIET.
13305
a655456c
PA
133062018-01-05 Pedro Alves <palves@redhat.com>
13307
13308 * spu-tdep.c (spu_catch_start): Pass
13309 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13310
de63c46b
PA
133112018-01-05 Pedro Alves <palves@redhat.com>
13312
13313 PR gdb/22670
13314 * ada-lang.c (literal_symbol_name_matcher): New function.
13315 (ada_get_symbol_name_matcher): Use it for
13316 symbol_name_match_type::SEARCH_NAME.
13317 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13318 it down instead of assuming symbol_name_match_type::FULL.
13319 * block.h (block_lookup_symbol): New parameter 'match_type'.
13320 * c-valprint.c (print_unpacked_pointer): Use
13321 lookup_symbol_search_name instead of lookup_symbol.
13322 * compile/compile-object-load.c (get_out_value_type): Pass down
13323 symbol_name_match_type::SEARCH_NAME.
13324 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13325 symbol_name_match_type::FULL.
13326 * cp-support.c (cp_get_symbol_name_matcher): Handle
13327 symbol_name_match_type::SEARCH_NAME.
13328 * infrun.c (insert_exception_resume_breakpoint): Use
13329 lookup_symbol_search_name.
13330 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13331 * psymtab.c (maintenance_check_psymtabs): Use
13332 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13333 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13334 SYMBOL_SEARCH_NAME.
13335 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13336 if symbol_name_match_type::SEARCH_NAME.
13337 (lookup_symbol_in_language): Pass down
13338 symbol_name_match_type::FULL.
13339 (lookup_symbol_search_name): New.
13340 (lookup_language_this): Pass down
13341 symbol_name_match_type::SEARCH_NAME.
13342 (lookup_symbol_aux, lookup_local_symbol): New parameter
13343 'match_type'. Pass it down.
13344 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13345 (lookup_symbol_search_name): New declaration.
13346 (lookup_symbol_in_block): New 'match_type' parameter.
13347
f98fc17b
PA
133482018-01-05 Pedro Alves <palves@redhat.com>
13349
13350 PR gdb/22670
13351 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13352 ada_lookup_symbol.
13353 (ada_lookup_symbol): Reimplement in terms of
13354 ada_lookup_symbol_list, bits factored out from
13355 ada_lookup_encoded_symbol.
13356
342f8240
JB
133572018-01-05 Joel Brobecker <brobecker@adacore.com>
13358
13359 * ada-exp.y (write_object_renaming): When subscripting an array
13360 using a symbol as the index, pass the block in call to
13361 ada_lookup_encoded_symbol when looking that symbol up.
13362
7150d33c
JG
133632018-01-05 Jerome Guitton <guitton@adacore.com>
13364
13365 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13366 TYPE_INDEX_TYPE.
13367
cc0e770c
JB
133682018-01-05 Joel Brobecker <brobecker@adacore.com>
13369
13370 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13371 the case where VALUE_LVAL (val0) is not lval_memory.
13372
f79da888 133732018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
13374
13375 * ada-valprint.c (print_optional_low_bound): Handle
13376 character-indexed array printing like boolean-indexed array
13377 printing.
13378
cd385f94
JB
133792018-01-05 Joel Brobecker <brobecker@adacore.com>
13380
13381 * NEWS: Create a new section for the next release branch.
13382 Rename the section of the current branch, now that it has
13383 been cut.
13384
09aca949
JB
133852018-01-05 Joel Brobecker <brobecker@adacore.com>
13386
13387 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13388 * version.in: Bump version to 8.1.50.DATE-git.
13389
9f757bf7
XR
133902018-01-03 Xavier Roirand <roirand@adacore.com>
13391
13392 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13393 Add field.
13394 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13395 Add field.
13396 (default_exception_support_info) <catch_handlers_sym>: Add field.
13397 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13398 (ada_exception_name_addr_1): Add "catch handlers" handling.
13399 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13400 Update all callers.
13401 (create_excep_cond_exprs) <ex>: Add parameter.
13402 (re_set_exception): Update create_excep_cond_exprs call.
13403 (print_it_exception, print_one_exception, print_mention_exception)
13404 (print_recreate_exception): Add "catch handler" handling.
13405 (allocate_location_catch_handlers, re_set_catch_handlers)
13406 (check_status_catch_handlers, print_it_catch_handlers)
13407 (print_one_catch_handlers, print_mention_catch_handlers)
13408 (print_recreate_catch_handlers): New function.
13409 (catch_handlers_breakpoint_ops): New variable.
13410 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13411 Add parameter. Add "catch handler" handling.
13412 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13413 Add "catch handler" handling.
13414 (ada_exception_catchpoint_cond_string): Add "catch handler"
13415 handling.
13416 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13417 call.
13418 (catch_ada_handlers_command): New function.
13419 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13420 operations structure.
13421 (_initialize_ada_language): Add "catch handlers" command entry.
13422 * NEWS: Document "catch handlers" feature.
13423
9fe561ab
JB
134242018-01-02 Joel Brobecker <brobecker@adacore.com>
13425
13426 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13427 account when creating the array type of the slice.
13428 (ada_value_slice): Likewise.
13429
a405673c
JB
134302018-01-02 Joel Brobecker <brobecker@adacore.com>
13431
13432 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13433 New enum value.
13434 (create_array_type_with_stride): Add byte_stride_prop parameter.
13435 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13436 New parameter. Update all callers in this file.
13437 (array_type_has_dynamic_stride): New function.
13438 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13439 of arrays with dynamic byte strides.
13440 * dwarf2read.c (read_array_type): Add support for dynamic
13441 DW_AT_byte_stride attributes.
13442
74a2f8ff
JB
134432018-01-02 Joel Brobecker <brobecker@adacore.com>
13444
13445 * dwarf2read.c (read_unspecified_type): Treat
13446 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13447
e2882c85
JB
134482018-01-01 Joel Brobecker <brobecker@adacore.com>
13449
13450 Update copyright year range in all GDB files.
13451
1690bb24
JB
134522018-01-01 Joel Brobecker <brobecker@adacore.com>
13453
13454 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13455 and gdb/testsuite/gdb.base/step-line.c.
13456
0f0c98a8
JB
134572018-01-01 Joel Brobecker <brobecker@adacore.com>
13458
13459 * copyright.py (main): Dump the contents of
13460 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13461 even if BY_HAND is empty.
13462
82e1e79a
JB
134632018-01-01 Joel Brobecker <brobecker@adacore.com>
13464
13465 * top.c (print_gdb_version): Update Copyright year in version
13466 message.
13467
053f54e5 134682018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 13469
053f54e5 13470 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 13471
053f54e5 13472For older changes see ChangeLog-2017.
c906108c
SS
13473\f
13474Local Variables:
13475mode: change-log
13476left-margin: 8
13477fill-column: 74
13478version-control: never
57da7796 13479coding: utf-8
c906108c 13480End:
This page took 3.354688 seconds and 4 git commands to generate.