Add more methods to gdb.Progspace
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-09-16 Tom Tromey <tom@tromey.com>
2
3 * python/lib/gdb/__init__.py (current_progspace, objfiles)
4 (solib_name, block_for_pc, find_pc_line): New functions.
5 (execute_unwinders): Update.
6 * python/py-block.c (gdbpy_block_for_pc): Remove.
7 * python/py-inferior.c (infpy_get_progspace): New function.
8 (inferior_object_getset) <progspace>: Add.
9 * python/py-progspace.c (pspy_objfiles): Rewrite.
10 (pspy_solib_name, pspy_block_for_pc)
11 (pspy_find_pc_line, pspy_is_valid): New functions.
12 (progspace_object_methods): Add entries for solib_name,
13 block_for_pc, find_pc_line, is_valid.
14 * python/python-internal.h (gdbpy_block_for_pc)
15 (build_objfiles_list): Don't declare.
16 * python/python.c: Don't include solib.h.
17 (gdbpy_solib_name, gdbpy_find_pc_line)
18 (gdbpy_get_current_progspace, build_objfiles_list)
19 (gdbpy_objfiles): Remove.
20 (GdbMethods) <current_progspace, objfiles, block_for_pc,
21 solib_name, find_pc_line>: Remove entries.
22
23 2018-09-16 Tom Tromey <tom@tromey.com>
24
25 * top.c (new_ui_command): Use GNU style for metasyntactic
26 variables.
27 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
28 variables.
29 * maint.c (maintenance_translate_address): Remove "<>" around
30 text.
31 * interps.c (interpreter_exec_cmd): Use GNU style for
32 metasyntactic variables.
33 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
34 metasyntactic variables.
35 * tracepoint.c (tfind_range_command): Use GNU style for
36 metasyntactic variables.
37 (tfind_outside_command): Likewise.
38 (_initialize_tracepoint): Likewise.
39 * remote.c (extended_remote_target::create_inferior): Use GNU
40 style for metasyntactic variables.
41 * sparc64-tdep.c (adi_examine_command): Use GNU style for
42 metasyntactic variables.
43 (adi_assign_command): Likewise.
44
45 2018-09-16 Tom Tromey <tom@tromey.com>
46
47 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
48 metasyntactic variables. Print message if no disassembler options
49 are available.
50
51 2018-09-15 Tom Tromey <tom@tromey.com>
52
53 * infcmd.c (get_inferior_args): Return const char *.
54 * inferior.h (get_inferior_args): Return type now const.
55 * linux-tdep.c (linux_fill_prpsinfo): Update.
56 * procfs.c (procfs_target::make_corefile_notes): Update.
57
58 2018-09-07 Tom Tromey <tom@tromey.com>
59
60 * python/python.c (execute_gdb_command): Call bpstat_do_actions
61 inside the TRY.
62
63 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
64
65 * nios2-tdep.c (nios2_type_align): New.
66 (nios2_gdb_arch_init): Install type_align hook.
67
68 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
69
70 * eval.c (fake_method::fake_method): Call xzalloc directly for a
71 type that is neither object file owned, nor gdbarch owned.
72 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
73 gdbarch is non-NULL.
74 (alloc_type_instance): Allocate non-objfile owned types on the
75 gdbarch obstack.
76 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
77 using TYPE_ALLOC to ensure memory is allocated on the correct
78 obstack.
79 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
80 obstack, or the gdbarch obstack.
81 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
82
83 2018-09-14 Tom Tromey <tom@tromey.com>
84
85 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
86 block.
87
88 2018-09-14 Tom Tromey <tom@tromey.com>
89
90 * nat/fork-inferior.c (get_startup_shell): Remove "static".
91
92 2018-09-13 Tom Tromey <tom@tromey.com>
93
94 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
95 static.
96
97 2018-09-13 Tom Tromey <tom@tromey.com>
98
99 * exec.c (try_open_exec_file): Use std::string.
100
101 2018-09-13 Tom Tromey <tom@tromey.com>
102
103 * utils.h (gdb_bfd_errmsg): Return std::string.
104 * exec.c (exec_file_attach): Update.
105 * compile/compile-object-load.c (compile_object_load): Update.
106 * utils.c (gdb_bfd_errmsg): Return std::string.
107
108 2018-09-13 Tom Tromey <tom@tromey.com>
109
110 * procfs.c (struct procinfo_deleter): New.
111 (procinfo_up): New typedef.
112 (do_destroy_procinfo_cleanup): Remove.
113 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
114
115 2018-09-13 Tom Tromey <tom@tromey.com>
116
117 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
118
119 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
120 2018-09-13 Tom Tromey <tom@tromey.com>
121
122 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
123 (pspy_get_objfiles): New function.
124 (progspace_object_methods): New.
125 (pspace_object_type): Add tp_methods callback.
126 * python/python-internal.h (build_objfiles_list): New
127 declaration.
128 * python/python.c (build_objfiles_list): New function.
129 (gdbpy_objfiles): Implement using build_objfiles_list.
130 * NEWS: Mention the Progspace.objfiles method.
131
132 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
133
134 * python/py-inferior.c (infpy_get_progspace): New function.
135 (inferior_object_getset): Add progspace property.
136 * NEWS: Mention the new property.
137
138 2018-09-13 Tom Tromey <tom@tromey.com>
139
140 PR rust/23650:
141 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
142
143 2018-09-13 Tom Tromey <tom@tromey.com>
144
145 PR rust/23626:
146 * rust-lang.c (rust_enum_variant): Now static.
147 (rust_empty_enum_p): New function.
148 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
149 Handle empty enum.
150
151 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
152
153 * python/py-inferior.c (infpy_repr): New.
154 (inferior_object_type): Register infpy_repr.
155 * python/py-objfile.c (objfpy_repr): New.
156 (objfile_object_type): Register objfpy_repr.
157
158 2018-09-12 John Baldwin <jhb@FreeBSD.org>
159
160 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
161
162 2018-09-12 John Baldwin <jhb@FreeBSD.org>
163
164 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
165 typo.
166
167 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
168
169 * common/common-utils.c: Don't include '<sys/stat.h>'.
170 (is_regular_file): Move to...
171 * common/filestuff.c (is_regular_file): ... here.
172 * common/common-utils.h (is_regular_file): Move to...
173 * common/filestuff.h (is_regular_file): ... here.
174
175 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
176
177 * skip.c (debug_skip): New variable.
178 (skiplist_entry::do_skip_file_p): Add debug output.
179 (skiplist_entry::do_skip_gfile_p): Likewise.
180 (skiplist_entry::skip_function_p): Likewise.
181 (_initialize_step_skip): Create debug command.
182 * NEWS: Mention set/show debug skip.
183
184 2018-09-11 Xavier Roirand <roirand@adacore.com>
185
186 * darwin-nat.c (should_disable_startup_with_shell):
187 New function.
188 (darwin_nat_target::create_inferior): Add call.
189
190 2018-09-11 Xavier Roirand <roirand@adacore.com>
191
192 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
193 inf_port, msg_state>: Initialize.
194 (struct darwin_thread_info) <signaled, single_step>: Change
195 type and initialize.
196 (struct darwin_thread_info) <event>: Initialize.
197
198 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
199
200 PR gdb/23555
201 PR gdb/23558
202 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
203 guesses.
204
205 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
206
207 Revert:
208 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
209
210 PR gdb/23555
211 PR gdb/23558
212 * gnulib/aclocal.m4: Regenerate.
213 * gnulib/config.in: Regenerate.
214 * gnulib/configure: Regenerate.
215 * gnulib/import/Makefile.am: Update.
216 * gnulib/import/Makefile.in: Update.
217 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
218 * gnulib/import/_Noreturn.h: ... this.
219 * gnulib/import/alloca.in.h: Update.
220 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
221 * gnulib/import/arg-nonnull.h: ... this.
222 * gnulib/import/assure.h: Update.
223 * gnulib/import/at-func.c: Update.
224 * gnulib/import/basename-lgpl.c: Update.
225 * gnulib/import/extra/snippet/c++defs.h: Rename to...
226 * gnulib/import/c++defs.h: ... this.
227 * gnulib/import/canonicalize-lgpl.c: Update.
228 * gnulib/import/cdefs.h: Update.
229 * gnulib/import/chdir-long.c: Update.
230 * gnulib/import/chdir-long.h: Update.
231 * gnulib/import/cloexec.c: Update.
232 * gnulib/import/cloexec.h: Update.
233 * gnulib/import/close.c: Update.
234 * gnulib/import/closedir.c: Update.
235 * gnulib/import/config.charset: Update.
236 * gnulib/import/dirent-private.h: Update.
237 * gnulib/import/dirent.in.h: Update.
238 * gnulib/import/dirfd.c: Update.
239 * gnulib/import/dirname-lgpl.c: Update.
240 * gnulib/import/dirname.h: Update.
241 * gnulib/import/dosname.h: Update.
242 * gnulib/import/dup-safer-flag.c: Update.
243 * gnulib/import/dup-safer.c: Update.
244 * gnulib/import/dup.c: Update.
245 * gnulib/import/dup2.c: Update.
246 * gnulib/import/errno.in.h: Update.
247 * gnulib/import/error.c: Update.
248 * gnulib/import/error.h: Update.
249 * gnulib/import/exitfail.c: Update.
250 * gnulib/import/exitfail.h: Update.
251 * gnulib/import/extra/update-copyright: Update.
252 * gnulib/import/fchdir.c: Update.
253 * gnulib/import/fcntl.c: Update.
254 * gnulib/import/fcntl.in.h: Update.
255 * gnulib/import/fd-hook.c: Update.
256 * gnulib/import/fd-hook.h: Update.
257 * gnulib/import/fd-safer-flag.c: Update.
258 * gnulib/import/fd-safer.c: Update.
259 * gnulib/import/fdopendir.c: Update.
260 * gnulib/import/filename.h: Update.
261 * gnulib/import/filenamecat-lgpl.c: Update.
262 * gnulib/import/filenamecat.h: Update.
263 * gnulib/import/flexmember.h: Update.
264 * gnulib/import/float+.h: Update.
265 * gnulib/import/float.c: Update.
266 * gnulib/import/float.in.h: Update.
267 * gnulib/import/fnmatch.c: Update.
268 * gnulib/import/fnmatch.in.h: Update.
269 * gnulib/import/fnmatch_loop.c: Update.
270 * gnulib/import/fpucw.h: Update.
271 * gnulib/import/frexp.c: Update.
272 * gnulib/import/frexpl.c: Update.
273 * gnulib/import/fstat.c: Update.
274 * gnulib/import/fstatat.c: Update.
275 * gnulib/import/getcwd-lgpl.c: Update.
276 * gnulib/import/getcwd.c: Update.
277 * gnulib/import/getdtablesize.c: Update.
278 * gnulib/import/getlogin_r.c: Update.
279 * gnulib/import/getprogname.c: Update.
280 * gnulib/import/getprogname.h: Update.
281 * gnulib/import/gettext.h: Update.
282 * gnulib/import/gettimeofday.c: Update.
283 * gnulib/import/glob-libc.h: Update.
284 * gnulib/import/glob.c: Update.
285 * gnulib/import/glob.in.h: Update.
286 * gnulib/import/glob_internal.h: Update.
287 * gnulib/import/glob_pattern_p.c: Update.
288 * gnulib/import/globfree.c: Update.
289 * gnulib/import/hard-locale.c: Update.
290 * gnulib/import/hard-locale.h: Update.
291 * gnulib/import/intprops.h: Update.
292 * gnulib/import/inttypes.in.h: Update.
293 * gnulib/import/isnan.c: Update.
294 * gnulib/import/isnand-nolibm.h: Update.
295 * gnulib/import/isnand.c: Update.
296 * gnulib/import/isnanl-nolibm.h: Update.
297 * gnulib/import/isnanl.c: Update.
298 * gnulib/import/itold.c: Update.
299 * gnulib/import/libc-config.h: Update.
300 * gnulib/import/limits.in.h: Update.
301 * gnulib/import/localcharset.c: Update.
302 * gnulib/import/localcharset.h: Update.
303 * gnulib/import/localtime-buffer.c: Update.
304 * gnulib/import/localtime-buffer.h: Update.
305 * gnulib/import/lstat.c: Update.
306 * gnulib/import/m4/00gnulib.m4: Update.
307 * gnulib/import/m4/__inline.m4: Update.
308 * gnulib/import/m4/absolute-header.m4: Update.
309 * gnulib/import/m4/alloca.m4: Update.
310 * gnulib/import/m4/builtin-expect.m4: Update.
311 * gnulib/import/m4/canonicalize.m4: Update.
312 * gnulib/import/m4/chdir-long.m4: Update.
313 * gnulib/import/m4/close.m4: Update.
314 * gnulib/import/m4/closedir.m4: Update.
315 * gnulib/import/m4/configmake.m4: Update.
316 * gnulib/import/m4/d-ino.m4: Update.
317 * gnulib/import/m4/d-type.m4: Update.
318 * gnulib/import/m4/dirent_h.m4: Update.
319 * gnulib/import/m4/dirfd.m4: Update.
320 * gnulib/import/m4/dirname.m4: Update.
321 * gnulib/import/m4/double-slash-root.m4: Update.
322 * gnulib/import/m4/dup.m4: Update.
323 * gnulib/import/m4/dup2.m4: Update.
324 * gnulib/import/m4/eealloc.m4: Update.
325 * gnulib/import/m4/environ.m4: Update.
326 * gnulib/import/m4/errno_h.m4: Update.
327 * gnulib/import/m4/error.m4: Update.
328 * gnulib/import/m4/exponentd.m4: Update.
329 * gnulib/import/m4/exponentl.m4: Update.
330 * gnulib/import/m4/extensions.m4: Update.
331 * gnulib/import/m4/extern-inline.m4: Update.
332 * gnulib/import/m4/fchdir.m4: Update.
333 * gnulib/import/m4/fcntl-o.m4: Update.
334 * gnulib/import/m4/fcntl.m4: Update.
335 * gnulib/import/m4/fcntl_h.m4: Update.
336 * gnulib/import/m4/fdopendir.m4: Update.
337 * gnulib/import/m4/filenamecat.m4: Update.
338 * gnulib/import/m4/flexmember.m4: Update.
339 * gnulib/import/m4/float_h.m4: Update.
340 * gnulib/import/m4/fnmatch.m4: Update.
341 * gnulib/import/m4/fnmatch_h.m4: Update.
342 * gnulib/import/m4/fpieee.m4: Update.
343 * gnulib/import/m4/frexp.m4: Update.
344 * gnulib/import/m4/frexpl.m4: Update.
345 * gnulib/import/m4/fstat.m4: Update.
346 * gnulib/import/m4/fstatat.m4: Update.
347 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
348 * gnulib/import/m4/getcwd-path-max.m4: Update.
349 * gnulib/import/m4/getcwd.m4: Update.
350 * gnulib/import/m4/getdtablesize.m4: Update.
351 * gnulib/import/m4/getlogin.m4: Update.
352 * gnulib/import/m4/getlogin_r.m4: Update.
353 * gnulib/import/m4/getpagesize.m4: Update.
354 * gnulib/import/m4/getprogname.m4: Update.
355 * gnulib/import/m4/gettimeofday.m4: Update.
356 * gnulib/import/m4/glibc21.m4: Update.
357 * gnulib/import/m4/glob.m4: Update.
358 * gnulib/import/m4/glob_h.m4: Update.
359 * gnulib/import/m4/gnulib-cache.m4: Update.
360 * gnulib/import/m4/gnulib-common.m4: Update.
361 * gnulib/import/m4/gnulib-comp.m4: Update.
362 * gnulib/import/m4/gnulib-tool.m4: Update.
363 * gnulib/import/m4/hard-locale.m4: Update.
364 * gnulib/import/m4/include_next.m4: Update.
365 * gnulib/import/m4/inttypes-pri.m4: Update.
366 * gnulib/import/m4/inttypes.m4: Update.
367 * gnulib/import/m4/isnand.m4: Update.
368 * gnulib/import/m4/isnanl.m4: Update.
369 * gnulib/import/m4/largefile.m4: Update.
370 * gnulib/import/m4/limits-h.m4: Update.
371 * gnulib/import/m4/localcharset.m4: Update.
372 * gnulib/import/m4/locale-fr.m4: Update.
373 * gnulib/import/m4/locale-ja.m4: Update.
374 * gnulib/import/m4/locale-zh.m4: Update.
375 * gnulib/import/m4/localtime-buffer.m4: Update.
376 * gnulib/import/m4/longlong.m4: Update.
377 * gnulib/import/m4/lstat.m4: Update.
378 * gnulib/import/m4/malloc.m4: Update.
379 * gnulib/import/m4/malloca.m4: Update.
380 * gnulib/import/m4/math_h.m4: Update.
381 * gnulib/import/m4/mbrtowc.m4: Update.
382 * gnulib/import/m4/mbsinit.m4: Update.
383 * gnulib/import/m4/mbsrtowcs.m4: Update.
384 * gnulib/import/m4/mbstate_t.m4: Update.
385 * gnulib/import/m4/memchr.m4: Update.
386 * gnulib/import/m4/memmem.m4: Update.
387 * gnulib/import/m4/mempcpy.m4: Update.
388 * gnulib/import/m4/memrchr.m4: Update.
389 * gnulib/import/m4/mkdir.m4: Update.
390 * gnulib/import/m4/mkstemp.m4: Update.
391 * gnulib/import/m4/mmap-anon.m4: Update.
392 * gnulib/import/m4/mode_t.m4: Update.
393 * gnulib/import/m4/msvc-inval.m4: Update.
394 * gnulib/import/m4/msvc-nothrow.m4: Update.
395 * gnulib/import/m4/multiarch.m4: Update.
396 * gnulib/import/m4/nocrash.m4: Update.
397 * gnulib/import/m4/off_t.m4: Update.
398 * gnulib/import/m4/onceonly.m4: Update.
399 * gnulib/import/m4/open-cloexec.m4: Update.
400 * gnulib/import/m4/open.m4: Update.
401 * gnulib/import/m4/openat.m4: Update.
402 * gnulib/import/m4/opendir.m4: Update.
403 * gnulib/import/m4/pathmax.m4: Update.
404 * gnulib/import/m4/rawmemchr.m4: Update.
405 * gnulib/import/m4/readdir.m4: Update.
406 * gnulib/import/m4/readlink.m4: Update.
407 * gnulib/import/m4/realloc.m4: Update.
408 * gnulib/import/m4/rename.m4: Update.
409 * gnulib/import/m4/rewinddir.m4: Update.
410 * gnulib/import/m4/rmdir.m4: Update.
411 * gnulib/import/m4/save-cwd.m4: Update.
412 * gnulib/import/m4/secure_getenv.m4: Update.
413 * gnulib/import/m4/setenv.m4: Update.
414 * gnulib/import/m4/signal_h.m4: Update.
415 * gnulib/import/m4/ssize_t.m4: Update.
416 * gnulib/import/m4/stat-time.m4: Update.
417 * gnulib/import/m4/stat.m4: Update.
418 * gnulib/import/m4/std-gnu11.m4: Update.
419 * gnulib/import/m4/stdbool.m4: Update.
420 * gnulib/import/m4/stddef_h.m4: Update.
421 * gnulib/import/m4/stdint.m4: Update.
422 * gnulib/import/m4/stdio_h.m4: Update.
423 * gnulib/import/m4/stdlib_h.m4: Update.
424 * gnulib/import/m4/strchrnul.m4: Update.
425 * gnulib/import/m4/strdup.m4: Update.
426 * gnulib/import/m4/strerror.m4: Update.
427 * gnulib/import/m4/string_h.m4: Update.
428 * gnulib/import/m4/strstr.m4: Update.
429 * gnulib/import/m4/strtok_r.m4: Update.
430 * gnulib/import/m4/sys_socket_h.m4: Update.
431 * gnulib/import/m4/sys_stat_h.m4: Update.
432 * gnulib/import/m4/sys_time_h.m4: Update.
433 * gnulib/import/m4/sys_types_h.m4: Update.
434 * gnulib/import/m4/tempname.m4: Update.
435 * gnulib/import/m4/time_h.m4: Update.
436 * gnulib/import/m4/unistd-safer.m4: Update.
437 * gnulib/import/m4/unistd_h.m4: Update.
438 * gnulib/import/m4/warn-on-use.m4: Update.
439 * gnulib/import/m4/wchar_h.m4: Update.
440 * gnulib/import/m4/wchar_t.m4: Update.
441 * gnulib/import/m4/wctype_h.m4: Update.
442 * gnulib/import/m4/wint_t.m4: Update.
443 * gnulib/import/malloc.c: Update.
444 * gnulib/import/malloc/scratch_buffer.h: Update.
445 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
446 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
447 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
448 * gnulib/import/malloca.c: Update.
449 * gnulib/import/malloca.h: Update.
450 * gnulib/import/malloca.valgrind: Update.
451 * gnulib/import/math.in.h: Update.
452 * gnulib/import/mbrtowc.c: Update.
453 * gnulib/import/mbsinit.c: Update.
454 * gnulib/import/mbsrtowcs-impl.h: Update.
455 * gnulib/import/mbsrtowcs-state.c: Update.
456 * gnulib/import/mbsrtowcs.c: Update.
457 * gnulib/import/memchr.c: Update.
458 * gnulib/import/memmem.c: Update.
459 * gnulib/import/mempcpy.c: Update.
460 * gnulib/import/memrchr.c: Update.
461 * gnulib/import/mkdir.c: Update.
462 * gnulib/import/mkstemp.c: Update.
463 * gnulib/import/msvc-inval.c: Update.
464 * gnulib/import/msvc-inval.h: Update.
465 * gnulib/import/msvc-nothrow.c: Update.
466 * gnulib/import/msvc-nothrow.h: Update.
467 * gnulib/import/open.c: Update.
468 * gnulib/import/openat-die.c: Update.
469 * gnulib/import/openat-priv.h: Update.
470 * gnulib/import/openat-proc.c: Update.
471 * gnulib/import/openat.c: Update.
472 * gnulib/import/openat.h: Update.
473 * gnulib/import/opendir.c: Update.
474 * gnulib/import/pathmax.h: Update.
475 * gnulib/import/pipe-safer.c: Update.
476 * gnulib/import/rawmemchr.c: Update.
477 * gnulib/import/readdir.c: Update.
478 * gnulib/import/readlink.c: Update.
479 * gnulib/import/realloc.c: Update.
480 * gnulib/import/ref-add.sin: Update.
481 * gnulib/import/ref-del.sin: Update.
482 * gnulib/import/rename.c: Update.
483 * gnulib/import/rewinddir.c: Update.
484 * gnulib/import/rmdir.c: Update.
485 * gnulib/import/same-inode.h: Update.
486 * gnulib/import/save-cwd.c: Update.
487 * gnulib/import/save-cwd.h: Update.
488 * gnulib/import/scratch_buffer.h: Update.
489 * gnulib/import/secure_getenv.c: Update.
490 * gnulib/import/setenv.c: Update.
491 * gnulib/import/signal.in.h: Update.
492 * gnulib/import/stat-time.c: Update.
493 * gnulib/import/stat-time.h: Update.
494 * gnulib/import/stat-w32.c: Update.
495 * gnulib/import/stat-w32.h: Update.
496 * gnulib/import/stat.c: Update.
497 * gnulib/import/stdbool.in.h: Update.
498 * gnulib/import/stddef.in.h: Update.
499 * gnulib/import/stdint.in.h: Update.
500 * gnulib/import/stdio.in.h: Update.
501 * gnulib/import/stdlib.in.h: Update.
502 * gnulib/import/str-two-way.h: Update.
503 * gnulib/import/strchrnul.c: Update.
504 * gnulib/import/strdup.c: Update.
505 * gnulib/import/streq.h: Update.
506 * gnulib/import/strerror-override.c: Update.
507 * gnulib/import/strerror-override.h: Update.
508 * gnulib/import/strerror.c: Update.
509 * gnulib/import/string.in.h: Update.
510 * gnulib/import/stripslash.c: Update.
511 * gnulib/import/strnlen1.c: Update.
512 * gnulib/import/strnlen1.h: Update.
513 * gnulib/import/strstr.c: Update.
514 * gnulib/import/strtok_r.c: Update.
515 * gnulib/import/sys_stat.in.h: Update.
516 * gnulib/import/sys_time.in.h: Update.
517 * gnulib/import/sys_types.in.h: Update.
518 * gnulib/import/tempname.c: Update.
519 * gnulib/import/tempname.h: Update.
520 * gnulib/import/time.in.h: Update.
521 * gnulib/import/unistd--.h: Update.
522 * gnulib/import/unistd-safer.h: Update.
523 * gnulib/import/unistd.in.h: Update.
524 * gnulib/import/unsetenv.c: Update.
525 * gnulib/import/verify.h: Update.
526 * gnulib/import/extra/snippet/warn-on-use.h: Update.
527 * gnulib/import/wchar.in.h: Update.
528 * gnulib/import/wctype.in.h: Update.
529 * gnulib/import/xalloc-oversized.h: Update.
530 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
531 "53e2c179f26a890fa6685af4b6c1397ee370433b".
532
533 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
534
535 * record-btrace.c (get_thread_current_frame): Remove
536 old_inferior_ptid.
537
538 2018-09-10 Jerome Guitton <guitton@adacore.com>
539
540 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
541 with check_tag to 1 if and only if the type is tagged and the
542 component being searched cannot been found in the current
543 view. Otherwise, always call ada_to_fixed_type with
544 check_tag to 0.
545
546 2018-09-10 Xavier Roirand <roirand@adacore.com>
547
548 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
549 declaration.
550 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
551 * ada-varobj.c (ada_varobj_get_number_of_children,
552 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
553
554 2018-09-10 Xavier Roirand <roirand@adacore.com>
555
556 * ada-valprint.c (ada_value_print): Use type instead of
557 enclosing type.
558
559 2018-09-10 Xavier Roirand <roirand@adacore.com>
560
561 * ada-lang.c (ada_value_subscript): Handle case when parameter is
562 an array of access to unconstrained array.
563
564 2018-09-10 Xavier Roirand <roirand@adacore.com>
565
566 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
567 (ada_check_typedef): Use it.
568
569 2018-09-10 Xavier Roirand <roirand@adacore.com>
570
571 * ada-varobj.c (ada_varobj_describe_struct_child)
572 (ada_varobj_describe_child): Handle union case like struct one.
573
574 2018-09-10 Tom Tromey <tom@tromey.com>
575
576 PR python/18380:
577 * python/python.c (_initialize_python): Make example in "python"
578 help work in Python 3.
579
580 2018-09-10 Eli Zaretskii <eliz@gnu.org>
581
582 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
583 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
584 $(EXEEXT) to the script, as it is not a program.
585
586 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
587
588 * python/py-prettyprint.c (pretty_print_one_value): Return
589 gdbpy_ref<>.
590 (print_string_repr): Adjust.
591 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
592 * python/python-internal.h (apply_varobj_pretty_printer): Return
593 gdbpy_ref<>.
594 * varobj.c (varobj_value_get_print_value): Adjust.
595
596 2018-09-08 Tom Tromey <tom@tromey.com>
597
598 PR python/16047:
599 * python/py-prettyprint.c (pretty_print_one_value): Check for
600 to_string method.
601
602 2018-09-08 Joel Brobecker <brobecker@adacore.com>
603
604 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
605 replace_operator_with_call.
606
607 2018-09-08 Joel Brobecker <brobecker@adacore.com>
608
609 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
610
611 2018-09-08 Joel Brobecker <brobecker@adacore.com>
612
613 * ada-typeprint.c (print_range): Print the bounds using TYPE
614 rather than its TYPE_TARGET_TYPE.
615
616 2018-09-08 Joel Brobecker <brobecker@adacore.com>
617
618 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
619 call to ada_to_fixed_value_create.
620
621 2018-09-08 Jerome Guitton <guitton@adacore.com>
622
623 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
624
625 2018-09-08 Joel Brobecker <brobecker@adacore.com>
626
627 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
628 by calls to error.
629
630 2018-09-08 Joel Brobecker <brobecker@adacore.com>
631
632 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
633 Move update of loop variable "fi".
634
635 2018-09-08 Joel Brobecker <brobecker@adacore.com>
636
637 * ada-lang.c (value_assign_to_component): In the case of
638 big-endian targets, extract the bits of the given VAL
639 using an src_offset of zero if container is not a scalar.
640
641 2018-09-06 Simon Ser <contact@emersion.fr>
642
643 PR gdb/23105
644 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
645 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
646 * fbsd-tdep.c (fbsd_make_note_desc): New.
647 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
648 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
649 * target.h (enum target_object) Add FreeBSD-specific
650 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
651
652 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
653
654 * compile/compile-c.h (generate_c_for_variable_locations):
655 Change reference to pointer.
656 * compile/compile-c-support.c (compile_program) <compute>:
657 Likewise.
658 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
659 (generate_c_for_for_one_variable): Likewise
660 (generate_c_for_variable_locations): Likewise
661 * compile/compile-c-types.c (compile_c_instance::convert_type):
662 Likewise
663 * compile/compile-cplus-symbols.c (convert_one_symbol):
664 std::move the scope passed to enter_scope.
665 * compile/compile-cplus-types.c
666 (compile_cplus_instance::enter_scope): Make parameter
667 rvalue-reference.
668 (compile_cplus_instance::new_scope): Change reference to
669 pointer.
670 (compile_cplus_instance::convert_type): Likewise
671 (compile_cplus_convert_typedef): std::move the scope passed to
672 enter_scope.
673 (compile_cplus_convert_struct_or_union): Likewise.
674 (compile_cplus_convert_enum): Likewise.
675 (compile_cplus_convert_namespace): Likewise.
676 * compile/compile-cplus.h (compile_cplus_instance)
677 <enter_scope>: Make parameter rvalue-reference.
678 * compile/compile-internal.h (compile_instance)
679 <get_cached_type>: Likewise
680 * compile/compile-loc2c.c (push): Likewise
681 (pushf): Likewise
682 (unary): Likewise
683 (binary): Likewise
684 (print_label): Likewise
685 (pushf_register_address): Likewise
686 (pushf_register): Likewise
687 (do_compile_dwarf_expr_to_c): Likewise
688 (compile_dwarf_expr_to_c): Likewise
689 (compile_dwarf_bounds_to_c): Likewise
690 * compile/compile.c (compile_instance::get_cached_type):
691 Likewise
692 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
693 (compile_dwarf_bounds_to_c): Likewise
694 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
695 (dwarf2_compile_property_to_c): Likewise
696 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
697 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
698 Likewise
699
700 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
701
702 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
703 * tui/tui-data.c (init_content_element): Don't initialize it.
704
705 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
706
707 * tui/tui-data.h (struct tui_win_info)
708 <detail::opaque>: Remove.
709 * tui/tui-data.c (init_win_info): Remove assignment.
710
711 2018-09-05 Tom Tromey <tom@tromey.com>
712
713 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
714 -Wformat-nonliteral.
715 * target-float.c (host_float_ops<T>::to_string)
716 (host_float_ops<T>::from_string): Use
717 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
718 * configure: Rebuild.
719
720 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
721
722 * printcmd.c (printf_c_string): Use
723 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
724 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
725
726 2018-09-05 Tom Tromey <tom@tromey.com>
727
728 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
729
730 2018-09-05 Tom de Vries <tdevries@suse.de>
731
732 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
733 with resolve_abstract_p == true.
734 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
735 defaulting to false. Propagate resolve_abstract_p to
736 dwarf2_fetch_die_loc_sect_off.
737 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
738 parameter, defaulting to false.
739 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
740 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
741 parameter.
742 * dwarf2read.h (struct die_info): Forward-declare.
743 (die_info_ptr): New typedef.
744 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
745
746 2018-09-05 Joel Brobecker <brobecker@adacore.com>
747
748 GDB 8.2 released.
749
750 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
751 Pedro Alves <palves@redhat.com>
752
753 * gnulib/Makefile.in (aclocal_m4_deps): Move to
754 "aclocal-m4-deps.mk". Include file here.
755 $(srcdir)/aclocal.m4: Add "configure.ac".
756 * gnulib/aclocal-m4-deps.mk: New file.
757 * gnulib/update-gnulib.sh: Automatically update
758 "aclocal-m4-deps.mk".
759
760 2018-09-04 Tom Tromey <tom@tromey.com>
761
762 * configure: Rebuild.
763 * configure.ac: Remove multi-ice code.
764
765 2018-09-04 Tom Tromey <tom@tromey.com>
766
767 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
768 (ada-exp.o): Update.
769
770 2018-09-04 Tom Tromey <tom@tromey.com>
771
772 * Makefile.in (printcmd.o, target-float.o): Remove.
773 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
774
775 2018-09-04 Tom Tromey <tom@tromey.com>
776
777 * gnulib/Makefile.in: Remove obsolete comment.
778 * Makefile.in: Remove obsolete comment.
779
780 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
781
782 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
783 line with '+'.
784
785 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
786
787 * riscv-tdep.c: Add 'prologue-value.h' include.
788 (struct riscv_unwind_cache): New struct.
789 (riscv_debug_unwinder): New global.
790 (riscv_scan_prologue): Update arguments, capture register details
791 from prologue scan.
792 (riscv_skip_prologue): Reformat arguments line, move end of
793 prologue calculation into riscv_scan_prologue.
794 (riscv_frame_cache): Update return type, create
795 riscv_unwind_cache, scan the prologue, and fill in remaining cache
796 details.
797 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
798 (riscv_frame_prev_register): Use the trad_frame within the
799 riscv_unwind_cache.
800 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
801 flag.
802
803 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
804
805 * trad-frame.h (trad_frame_set_realreg): Declare.
806 (trad_frame_set_addr): Declare.
807 * trad-frame.c (trad_frame_set_realreg): Define new function.
808 (trad_frame_set_addr): Define new function.
809 (trad_frame_set_reg_realreg): Use new function.
810 (trad_frame_set_reg_addr): Use new function.
811
812 2018-09-01 Keith Seitz <keiths@redhat.com>
813
814 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
815 pulongest instead of "%lld".
816 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
817 ATTRIBUTE_UNUSED.
818
819 2018-08-31 Tom Tromey <tom@tromey.com>
820
821 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
822 variant part type.
823
824 2018-08-31 Pedro Alves <palves@redhat.com>
825
826 * gdbarch.h: Regenerate.
827
828 2018-08-31 Pedro Alves <palves@redhat.com>
829
830 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
831 * target.h (Hardware watchpoint interfaces): Describe
832 continuable/steppable/non-steppable watchpoints.
833 * gdbarch.h, gdbarch.c: Regenerate.
834
835 2018-08-31 Pedro Alves <palves@redhat.com>
836
837 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
838 Delete.
839 * s390-linux-nat.c
840 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
841 * target.h (target_ops::have_continuable_watchpoint): Delete.
842 (target_have_continuable_watchpoint): Delete.
843 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
844 * target-delegates.c: Regenerate.
845
846 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
847
848 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
849 the files present in "gnulib/import/m4/".
850
851 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
852
853 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
854 c.sw, c.swsp, and c.sdsp.
855
856 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
857
858 * riscv-tdep.c (struct riscv_inferior_data): Delete.
859 (riscv_read_misa_reg): Don't cache value read into inferior data.
860 (riscv_new_inferior_data): Delete.
861 (riscv_inferior_data_cleanup): Delete.
862 (riscv_inferior_data): Delete.
863 (riscv_invalidate_inferior_data): Delete.
864 (_initialize_riscv_tdep): Remove initialisation of inferior data.
865
866 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
867
868 * compile/compile-cplus-types.c
869 (compile_cplus_instance::leave_scope): Take the address of scope
870 object.
871 (compile_cplus_instance::convert_qualified_base): Compare quals
872 to 0.
873
874 2018-08-30 Keith Seitz <keiths@redhat.com>
875
876 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
877 Use "%s" and host_address_to_string instead of "%p" in printf.
878
879 2018-08-29 Keith Seitz <keiths@redhat.com>
880
881 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
882 and compile-cplus-types.c.
883 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
884 * c-lang.c (cplus_language_defn): Set C++ compile functions.
885 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
886 Declare.
887 * compile/compile-c-support.c: Include compile-cplus.h.
888 (load_libcompile): Templatize.
889 (get_compile_context): "New" function.
890 (c_get_compile_context): Use get_compile_context.
891 (cplus_get_compile_context): New function.
892 (cplus_push_user_expression, cplus_pop_user_expression)
893 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
894 (cplus_compute_program): Define new structs/functions.
895 * compile/compile-cplus-symmbols.c: New file.
896 * compile/compile-cplus-types.c: New file.
897 * compile/compile-cplus.h: New file.
898 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
899 Declare.
900 * compile/compile-object-load.c (get_out_value_type): Use
901 strncmp_iw when comparing symbol names.
902 (compile_object_load): Add mst_bss and mst_data.
903 * compile/compile.c (_initialize_compile): Remove
904 -Wno-implicit-function-declaration from `compile_args'.
905 * compile/gcc-cp-plugin.h: New file.
906 * NEWS: Mention C++ compile support and new debug options.
907
908 2018-08-29 Keith Seitz <keiths@redhat.com>
909
910 * linespec.c (collect_info::add_symbol): Make virtual.
911 (struct symbol_searcher_collect_info): New struct.
912 (symbol_searcher::find_all_symbols): New method.
913 * symtab.h (class symbol_searcher): New class.
914
915 2018-08-29 Keith Seitz <keiths@redhat.com>
916
917 * linespec.c (struct linespec) <function_symbols, label_symbols>:
918 Change to vector of block_symbol. Update all users.
919 (struct collect_info) <symbols>: Likewise.
920 (collect_info::add_symbol): Take block_symbol as argument.
921 Update all callers.
922 (decode_compound_collector) <m_symbols>: Change type to vector
923 of block_symbol. Update all users.
924 (decode_compound_collector::operator ()): Change parameter type
925 to block_symbol.
926 (find_method, find_function_symbols, find_linespec_symbols)
927 (find_label_symbols_in_block, find_label_symbols): Change symbol
928 vectors to block_symbol vectors.
929 * symtab.h (symbol_found_callback_ftype): Change parameter type to
930 block_symbol.
931
932 2018-08-29 Keith Seitz <keiths@redhat.com>
933
934 * linespec.c (symbolp): Remove typedef and VEC definitions.
935 (bound_minimal_symbol_d): Likewise.
936
937 2018-08-29 Keith Seitz <keiths@redhat.com>
938
939 * linespec.c (decode_compound_collector::decode_compound_collector):
940 Remove initialization for `m_symtabs'.
941 (decode_compound_collector::release_symbols): Change return type
942 to std::vector. Update all callers.
943 (class decode_compound_collector) <m_symbols>: Change type to
944 std::vector.
945 (lookup_prefix_sym): Change return type to std::vector. Update all
946 callers.
947 (compare_symbols): Remove.
948 (std_compare_symbols): Rename to `compare_symbols'.
949 (find_method): Change `sym_classes' parameter to std::vector.
950 Update all callers. Use std::sort to sort sym_classes.
951 (find_linespec_symbols): Remove cleanup.
952
953 2018-08-29 Keith Seitz <keiths@redhat.com>
954
955 * linespec.c (struct linespec) <minimal_symbols>: Change type to
956 std::vector. Update all users.
957 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
958 (struct collect_info) <minimal_symbols>: Likewise.
959 (compare_msymbols): Return bool. Change parameters to const
960 bound_minimal_symbol references.
961 (find_method, find_function_symbols, find_linespec_symbols): Change
962 `minsyms' parameter to std::vector. Update all callers.
963
964 2018-08-29 Keith Seitz <keiths@redhat.com>
965
966 * linespec.c (struct linespec) <label_symbols>: Change type to
967 std::vector. Update all users.
968 (find_label_symbols_in_block): Change `result' parameter to
969 std::vector. Update all callers.
970 (find_label_symbols): Return std::vector. Update all callers.
971
972 2018-08-29 Keith Seitz <keiths@redhat.com>
973
974 * linespec.c (struct linespec) <function_symbols>: Change type to
975 std::vector. Update all users.
976 (struct collect_info) <function_symbols>: Likewise.
977 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
978 (std_compare_symbols): New function.
979 (find_method, find_function_symbols, find_linespec_symbols)
980 (find_label_symbols_in_block): Change `symbols' parameter to
981 std::vector. Update all callers.
982 (find_label_symbols): Likewise for `function_symbols' and
983 `label_funcs_ret'.
984
985 2018-08-29 Keith Seitz <keiths@redhat.com>
986
987 * linespec.c (symtab_vector_up): Define.
988 (struct linespec) <file_symtabs>: Change type to std::vector *.
989 Update all uses.
990 (struct collect_info) <file_symtabs>: Likewise.
991 (collect_symtabs_from_filename): Return symtab_vector_up.
992 Update all callers.
993 (decode_objc): Remove cleanup.
994 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
995 (symtab_collector::release_symtabs): Return symtab_vector_up.
996 Update all callers.
997 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
998 Update all users.
999 (collect_symtabs_from_filename, symtabs_from_filename): Return
1000 symtab_vector_up. Update all callers.
1001
1002 2018-08-29 Tom Tromey <tom@tromey.com>
1003
1004 * csky-tdep.c (csky_analyze_prologue): Use
1005 core_addr_to_string_nz.
1006
1007 2018-08-29 Tom Tromey <tom@tromey.com>
1008
1009 * windows-nat.c (struct xlate_exception) <them>: Change type to
1010 DWORD.
1011 (xlate): Fix formatting. Remove last entry.
1012 (struct xlate_exception, xlate): Comment out.
1013 (windows_nat_target::resume): Use ranged for.
1014
1015 2018-08-29 Jim Wilson <jimw@sifive.com>
1016
1017 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1018 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1019 of NT_PRFPREG.
1020 (riscv_linux_nat_target::store_registers): Likewise.
1021
1022 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1023
1024 PR gdb/23555
1025 PR gdb/23558
1026 * gnulib/aclocal.m4: Regenerate.
1027 * gnulib/config.in: Regenerate.
1028 * gnulib/configure: Regenerate.
1029 * gnulib/import/Makefile.am: Update.
1030 * gnulib/import/Makefile.in: Update.
1031 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1032 * gnulib/import/_Noreturn.h: ... this.
1033 * gnulib/import/alloca.in.h: Update.
1034 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1035 * gnulib/import/arg-nonnull.h: ... this.
1036 * gnulib/import/assure.h: Update.
1037 * gnulib/import/at-func.c: Update.
1038 * gnulib/import/basename-lgpl.c: Update.
1039 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1040 * gnulib/import/c++defs.h: ... this.
1041 * gnulib/import/canonicalize-lgpl.c: Update.
1042 * gnulib/import/cdefs.h: Update.
1043 * gnulib/import/chdir-long.c: Update.
1044 * gnulib/import/chdir-long.h: Update.
1045 * gnulib/import/cloexec.c: Update.
1046 * gnulib/import/cloexec.h: Update.
1047 * gnulib/import/close.c: Update.
1048 * gnulib/import/closedir.c: Update.
1049 * gnulib/import/config.charset: Update.
1050 * gnulib/import/dirent-private.h: Update.
1051 * gnulib/import/dirent.in.h: Update.
1052 * gnulib/import/dirfd.c: Update.
1053 * gnulib/import/dirname-lgpl.c: Update.
1054 * gnulib/import/dirname.h: Update.
1055 * gnulib/import/dosname.h: Update.
1056 * gnulib/import/dup-safer-flag.c: Update.
1057 * gnulib/import/dup-safer.c: Update.
1058 * gnulib/import/dup.c: Update.
1059 * gnulib/import/dup2.c: Update.
1060 * gnulib/import/errno.in.h: Update.
1061 * gnulib/import/error.c: Update.
1062 * gnulib/import/error.h: Update.
1063 * gnulib/import/exitfail.c: Update.
1064 * gnulib/import/exitfail.h: Update.
1065 * gnulib/import/extra/update-copyright: Update.
1066 * gnulib/import/fchdir.c: Update.
1067 * gnulib/import/fcntl.c: Update.
1068 * gnulib/import/fcntl.in.h: Update.
1069 * gnulib/import/fd-hook.c: Update.
1070 * gnulib/import/fd-hook.h: Update.
1071 * gnulib/import/fd-safer-flag.c: Update.
1072 * gnulib/import/fd-safer.c: Update.
1073 * gnulib/import/fdopendir.c: Update.
1074 * gnulib/import/filename.h: Update.
1075 * gnulib/import/filenamecat-lgpl.c: Update.
1076 * gnulib/import/filenamecat.h: Update.
1077 * gnulib/import/flexmember.h: Update.
1078 * gnulib/import/float+.h: Update.
1079 * gnulib/import/float.c: Update.
1080 * gnulib/import/float.in.h: Update.
1081 * gnulib/import/fnmatch.c: Update.
1082 * gnulib/import/fnmatch.in.h: Update.
1083 * gnulib/import/fnmatch_loop.c: Update.
1084 * gnulib/import/fpucw.h: Update.
1085 * gnulib/import/frexp.c: Update.
1086 * gnulib/import/frexpl.c: Update.
1087 * gnulib/import/fstat.c: Update.
1088 * gnulib/import/fstatat.c: Update.
1089 * gnulib/import/getcwd-lgpl.c: Update.
1090 * gnulib/import/getcwd.c: Update.
1091 * gnulib/import/getdtablesize.c: Update.
1092 * gnulib/import/getlogin_r.c: Update.
1093 * gnulib/import/getprogname.c: Update.
1094 * gnulib/import/getprogname.h: Update.
1095 * gnulib/import/gettext.h: Update.
1096 * gnulib/import/gettimeofday.c: Update.
1097 * gnulib/import/glob-libc.h: Update.
1098 * gnulib/import/glob.c: Update.
1099 * gnulib/import/glob.in.h: Update.
1100 * gnulib/import/glob_internal.h: Update.
1101 * gnulib/import/glob_pattern_p.c: Update.
1102 * gnulib/import/globfree.c: Update.
1103 * gnulib/import/hard-locale.c: Update.
1104 * gnulib/import/hard-locale.h: Update.
1105 * gnulib/import/intprops.h: Update.
1106 * gnulib/import/inttypes.in.h: Update.
1107 * gnulib/import/isnan.c: Update.
1108 * gnulib/import/isnand-nolibm.h: Update.
1109 * gnulib/import/isnand.c: Update.
1110 * gnulib/import/isnanl-nolibm.h: Update.
1111 * gnulib/import/isnanl.c: Update.
1112 * gnulib/import/itold.c: Update.
1113 * gnulib/import/libc-config.h: Update.
1114 * gnulib/import/limits.in.h: Update.
1115 * gnulib/import/localcharset.c: Update.
1116 * gnulib/import/localcharset.h: Update.
1117 * gnulib/import/localtime-buffer.c: Update.
1118 * gnulib/import/localtime-buffer.h: Update.
1119 * gnulib/import/lstat.c: Update.
1120 * gnulib/import/m4/00gnulib.m4: Update.
1121 * gnulib/import/m4/__inline.m4: Update.
1122 * gnulib/import/m4/absolute-header.m4: Update.
1123 * gnulib/import/m4/alloca.m4: Update.
1124 * gnulib/import/m4/builtin-expect.m4: Update.
1125 * gnulib/import/m4/canonicalize.m4: Update.
1126 * gnulib/import/m4/chdir-long.m4: Update.
1127 * gnulib/import/m4/close.m4: Update.
1128 * gnulib/import/m4/closedir.m4: Update.
1129 * gnulib/import/m4/configmake.m4: Update.
1130 * gnulib/import/m4/d-ino.m4: Update.
1131 * gnulib/import/m4/d-type.m4: Update.
1132 * gnulib/import/m4/dirent_h.m4: Update.
1133 * gnulib/import/m4/dirfd.m4: Update.
1134 * gnulib/import/m4/dirname.m4: Update.
1135 * gnulib/import/m4/double-slash-root.m4: Update.
1136 * gnulib/import/m4/dup.m4: Update.
1137 * gnulib/import/m4/dup2.m4: Update.
1138 * gnulib/import/m4/eealloc.m4: Update.
1139 * gnulib/import/m4/environ.m4: Update.
1140 * gnulib/import/m4/errno_h.m4: Update.
1141 * gnulib/import/m4/error.m4: Update.
1142 * gnulib/import/m4/exponentd.m4: Update.
1143 * gnulib/import/m4/exponentl.m4: Update.
1144 * gnulib/import/m4/extensions.m4: Update.
1145 * gnulib/import/m4/extern-inline.m4: Update.
1146 * gnulib/import/m4/fchdir.m4: Update.
1147 * gnulib/import/m4/fcntl-o.m4: Update.
1148 * gnulib/import/m4/fcntl.m4: Update.
1149 * gnulib/import/m4/fcntl_h.m4: Update.
1150 * gnulib/import/m4/fdopendir.m4: Update.
1151 * gnulib/import/m4/filenamecat.m4: Update.
1152 * gnulib/import/m4/flexmember.m4: Update.
1153 * gnulib/import/m4/float_h.m4: Update.
1154 * gnulib/import/m4/fnmatch.m4: Update.
1155 * gnulib/import/m4/fnmatch_h.m4: Update.
1156 * gnulib/import/m4/fpieee.m4: Update.
1157 * gnulib/import/m4/frexp.m4: Update.
1158 * gnulib/import/m4/frexpl.m4: Update.
1159 * gnulib/import/m4/fstat.m4: Update.
1160 * gnulib/import/m4/fstatat.m4: Update.
1161 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1162 * gnulib/import/m4/getcwd-path-max.m4: Update.
1163 * gnulib/import/m4/getcwd.m4: Update.
1164 * gnulib/import/m4/getdtablesize.m4: Update.
1165 * gnulib/import/m4/getlogin.m4: Update.
1166 * gnulib/import/m4/getlogin_r.m4: Update.
1167 * gnulib/import/m4/getpagesize.m4: Update.
1168 * gnulib/import/m4/getprogname.m4: Update.
1169 * gnulib/import/m4/gettimeofday.m4: Update.
1170 * gnulib/import/m4/glibc21.m4: Update.
1171 * gnulib/import/m4/glob.m4: Update.
1172 * gnulib/import/m4/glob_h.m4: Update.
1173 * gnulib/import/m4/gnulib-cache.m4: Update.
1174 * gnulib/import/m4/gnulib-common.m4: Update.
1175 * gnulib/import/m4/gnulib-comp.m4: Update.
1176 * gnulib/import/m4/gnulib-tool.m4: Update.
1177 * gnulib/import/m4/hard-locale.m4: Update.
1178 * gnulib/import/m4/include_next.m4: Update.
1179 * gnulib/import/m4/inttypes-pri.m4: Update.
1180 * gnulib/import/m4/inttypes.m4: Update.
1181 * gnulib/import/m4/isnand.m4: Update.
1182 * gnulib/import/m4/isnanl.m4: Update.
1183 * gnulib/import/m4/largefile.m4: Update.
1184 * gnulib/import/m4/limits-h.m4: Update.
1185 * gnulib/import/m4/localcharset.m4: Update.
1186 * gnulib/import/m4/locale-fr.m4: Update.
1187 * gnulib/import/m4/locale-ja.m4: Update.
1188 * gnulib/import/m4/locale-zh.m4: Update.
1189 * gnulib/import/m4/localtime-buffer.m4: Update.
1190 * gnulib/import/m4/longlong.m4: Update.
1191 * gnulib/import/m4/lstat.m4: Update.
1192 * gnulib/import/m4/malloc.m4: Update.
1193 * gnulib/import/m4/malloca.m4: Update.
1194 * gnulib/import/m4/math_h.m4: Update.
1195 * gnulib/import/m4/mbrtowc.m4: Update.
1196 * gnulib/import/m4/mbsinit.m4: Update.
1197 * gnulib/import/m4/mbsrtowcs.m4: Update.
1198 * gnulib/import/m4/mbstate_t.m4: Update.
1199 * gnulib/import/m4/memchr.m4: Update.
1200 * gnulib/import/m4/memmem.m4: Update.
1201 * gnulib/import/m4/mempcpy.m4: Update.
1202 * gnulib/import/m4/memrchr.m4: Update.
1203 * gnulib/import/m4/mkdir.m4: Update.
1204 * gnulib/import/m4/mkstemp.m4: Update.
1205 * gnulib/import/m4/mmap-anon.m4: Update.
1206 * gnulib/import/m4/mode_t.m4: Update.
1207 * gnulib/import/m4/msvc-inval.m4: Update.
1208 * gnulib/import/m4/msvc-nothrow.m4: Update.
1209 * gnulib/import/m4/multiarch.m4: Update.
1210 * gnulib/import/m4/nocrash.m4: Update.
1211 * gnulib/import/m4/off_t.m4: Update.
1212 * gnulib/import/m4/onceonly.m4: Update.
1213 * gnulib/import/m4/open-cloexec.m4: Update.
1214 * gnulib/import/m4/open.m4: Update.
1215 * gnulib/import/m4/openat.m4: Update.
1216 * gnulib/import/m4/opendir.m4: Update.
1217 * gnulib/import/m4/pathmax.m4: Update.
1218 * gnulib/import/m4/rawmemchr.m4: Update.
1219 * gnulib/import/m4/readdir.m4: Update.
1220 * gnulib/import/m4/readlink.m4: Update.
1221 * gnulib/import/m4/realloc.m4: Update.
1222 * gnulib/import/m4/rename.m4: Update.
1223 * gnulib/import/m4/rewinddir.m4: Update.
1224 * gnulib/import/m4/rmdir.m4: Update.
1225 * gnulib/import/m4/save-cwd.m4: Update.
1226 * gnulib/import/m4/secure_getenv.m4: Update.
1227 * gnulib/import/m4/setenv.m4: Update.
1228 * gnulib/import/m4/signal_h.m4: Update.
1229 * gnulib/import/m4/ssize_t.m4: Update.
1230 * gnulib/import/m4/stat-time.m4: Update.
1231 * gnulib/import/m4/stat.m4: Update.
1232 * gnulib/import/m4/std-gnu11.m4: Update.
1233 * gnulib/import/m4/stdbool.m4: Update.
1234 * gnulib/import/m4/stddef_h.m4: Update.
1235 * gnulib/import/m4/stdint.m4: Update.
1236 * gnulib/import/m4/stdio_h.m4: Update.
1237 * gnulib/import/m4/stdlib_h.m4: Update.
1238 * gnulib/import/m4/strchrnul.m4: Update.
1239 * gnulib/import/m4/strdup.m4: Update.
1240 * gnulib/import/m4/strerror.m4: Update.
1241 * gnulib/import/m4/string_h.m4: Update.
1242 * gnulib/import/m4/strstr.m4: Update.
1243 * gnulib/import/m4/strtok_r.m4: Update.
1244 * gnulib/import/m4/sys_socket_h.m4: Update.
1245 * gnulib/import/m4/sys_stat_h.m4: Update.
1246 * gnulib/import/m4/sys_time_h.m4: Update.
1247 * gnulib/import/m4/sys_types_h.m4: Update.
1248 * gnulib/import/m4/tempname.m4: Update.
1249 * gnulib/import/m4/time_h.m4: Update.
1250 * gnulib/import/m4/unistd-safer.m4: Update.
1251 * gnulib/import/m4/unistd_h.m4: Update.
1252 * gnulib/import/m4/warn-on-use.m4: Update.
1253 * gnulib/import/m4/wchar_h.m4: Update.
1254 * gnulib/import/m4/wchar_t.m4: Update.
1255 * gnulib/import/m4/wctype_h.m4: Update.
1256 * gnulib/import/m4/wint_t.m4: Update.
1257 * gnulib/import/malloc.c: Update.
1258 * gnulib/import/malloc/scratch_buffer.h: Update.
1259 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1260 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1261 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1262 * gnulib/import/malloca.c: Update.
1263 * gnulib/import/malloca.h: Update.
1264 * gnulib/import/malloca.valgrind: Update.
1265 * gnulib/import/math.in.h: Update.
1266 * gnulib/import/mbrtowc.c: Update.
1267 * gnulib/import/mbsinit.c: Update.
1268 * gnulib/import/mbsrtowcs-impl.h: Update.
1269 * gnulib/import/mbsrtowcs-state.c: Update.
1270 * gnulib/import/mbsrtowcs.c: Update.
1271 * gnulib/import/memchr.c: Update.
1272 * gnulib/import/memmem.c: Update.
1273 * gnulib/import/mempcpy.c: Update.
1274 * gnulib/import/memrchr.c: Update.
1275 * gnulib/import/mkdir.c: Update.
1276 * gnulib/import/mkstemp.c: Update.
1277 * gnulib/import/msvc-inval.c: Update.
1278 * gnulib/import/msvc-inval.h: Update.
1279 * gnulib/import/msvc-nothrow.c: Update.
1280 * gnulib/import/msvc-nothrow.h: Update.
1281 * gnulib/import/open.c: Update.
1282 * gnulib/import/openat-die.c: Update.
1283 * gnulib/import/openat-priv.h: Update.
1284 * gnulib/import/openat-proc.c: Update.
1285 * gnulib/import/openat.c: Update.
1286 * gnulib/import/openat.h: Update.
1287 * gnulib/import/opendir.c: Update.
1288 * gnulib/import/pathmax.h: Update.
1289 * gnulib/import/pipe-safer.c: Update.
1290 * gnulib/import/rawmemchr.c: Update.
1291 * gnulib/import/readdir.c: Update.
1292 * gnulib/import/readlink.c: Update.
1293 * gnulib/import/realloc.c: Update.
1294 * gnulib/import/ref-add.sin: Update.
1295 * gnulib/import/ref-del.sin: Update.
1296 * gnulib/import/rename.c: Update.
1297 * gnulib/import/rewinddir.c: Update.
1298 * gnulib/import/rmdir.c: Update.
1299 * gnulib/import/same-inode.h: Update.
1300 * gnulib/import/save-cwd.c: Update.
1301 * gnulib/import/save-cwd.h: Update.
1302 * gnulib/import/scratch_buffer.h: Update.
1303 * gnulib/import/secure_getenv.c: Update.
1304 * gnulib/import/setenv.c: Update.
1305 * gnulib/import/signal.in.h: Update.
1306 * gnulib/import/stat-time.c: Update.
1307 * gnulib/import/stat-time.h: Update.
1308 * gnulib/import/stat-w32.c: Update.
1309 * gnulib/import/stat-w32.h: Update.
1310 * gnulib/import/stat.c: Update.
1311 * gnulib/import/stdbool.in.h: Update.
1312 * gnulib/import/stddef.in.h: Update.
1313 * gnulib/import/stdint.in.h: Update.
1314 * gnulib/import/stdio.in.h: Update.
1315 * gnulib/import/stdlib.in.h: Update.
1316 * gnulib/import/str-two-way.h: Update.
1317 * gnulib/import/strchrnul.c: Update.
1318 * gnulib/import/strdup.c: Update.
1319 * gnulib/import/streq.h: Update.
1320 * gnulib/import/strerror-override.c: Update.
1321 * gnulib/import/strerror-override.h: Update.
1322 * gnulib/import/strerror.c: Update.
1323 * gnulib/import/string.in.h: Update.
1324 * gnulib/import/stripslash.c: Update.
1325 * gnulib/import/strnlen1.c: Update.
1326 * gnulib/import/strnlen1.h: Update.
1327 * gnulib/import/strstr.c: Update.
1328 * gnulib/import/strtok_r.c: Update.
1329 * gnulib/import/sys_stat.in.h: Update.
1330 * gnulib/import/sys_time.in.h: Update.
1331 * gnulib/import/sys_types.in.h: Update.
1332 * gnulib/import/tempname.c: Update.
1333 * gnulib/import/tempname.h: Update.
1334 * gnulib/import/time.in.h: Update.
1335 * gnulib/import/unistd--.h: Update.
1336 * gnulib/import/unistd-safer.h: Update.
1337 * gnulib/import/unistd.in.h: Update.
1338 * gnulib/import/unsetenv.c: Update.
1339 * gnulib/import/verify.h: Update.
1340 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1341 * gnulib/import/wchar.in.h: Update.
1342 * gnulib/import/wctype.in.h: Update.
1343 * gnulib/import/xalloc-oversized.h: Update.
1344 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1345 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1346
1347 2018-08-16 Gary Benson <gbenson@redhat.com>
1348
1349 PR gdb/13000:
1350 * gdb/main.c (captured_main_1): Exit with nonzero status
1351 in batch mode if the last command to be executed failed.
1352 * NEWS: Mention the above.
1353
1354 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1355
1356 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1357 end of warning message.
1358
1359 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1360
1361 PR gdb/22943:
1362 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1363 (aarch64_extract_return_value): Use
1364 aapcs_is_vfp_call_or_return_candidate.
1365 (aarch64_return_in_memory): Likewise.
1366 (aarch64_store_return_value): Likewise.
1367
1368 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1369
1370 * aarch64-tdep.c
1371 (aapcs_is_vfp_call_or_return_candidate): Make static
1372 (pass_in_v_or_stack): Remove function.
1373 (pass_in_v_vfp_candidate): New function.
1374 (aarch64_push_dummy_call): Check for float register candidates.
1375
1376 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1377
1378 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1379 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1380 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1381
1382 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1383
1384 PR build/23399
1385 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1386 (struct ipa_sym_addresses): Rename to...
1387 (struct ipa_sym_addresses_common): ... this.
1388 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1389
1390 2018-08-28 Tom Tromey <tom@tromey.com>
1391
1392 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1393 (token_fifo): Now a std::vector.
1394 (yylex, c_parse): Update.
1395 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1396 (token_fifo): Now a std::vector.
1397 (yylex, d_parse): Update.
1398 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1399 (token_fifo): Now a std::vector.
1400 (yylex, go_parse): Update.
1401
1402 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1403
1404 * parser-defs.h (struct type_stack) <elements>: Change type to
1405 std::vector<union type_stack_elt>.
1406 <depth, size>: Remove.
1407 * parse.c (parse_exp_in_context_1): Adjust.
1408 (type_stack_reserve): Remove.
1409 (check_type_stack_depth): Remove.
1410 (insert_into_type_stack): Adjust to std::vector.
1411 (insert_type): Likewise.
1412 (push_type): Likewise.
1413 (push_type_int): Likewise.
1414 (insert_type_address_space): Likewise.
1415 (pop_type): Likewise.
1416 (pop_type_int): Likewise.
1417 (pop_typelist): Likewise.
1418 (pop_type_stack): Likewise.
1419 (append_type_stack): Likewise.
1420 (push_type_stack): Likewise.
1421 (get_type_stack): Likewise.
1422 (type_stack_cleanup): Likewise.
1423 (push_typelist): Likewise.
1424 (follow_types): Likewise.
1425 (_initialize_parse): Likewise.
1426
1427 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1428
1429 * NEWS: Mention csky target.
1430
1431 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1432 Hafiz Abid Qadeer <abidh@codesourcery.com>
1433 Don Breazeal <donb@codesourcery.com>
1434
1435 * csky-linux-tdep.c: New file.
1436 * csky-tdep.c: Likewise.
1437 * csky-tdep.h: Likewise.
1438 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1439 csky-tdep.o.
1440 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1441 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1442 * configure.tgt: Add csky support.
1443
1444 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1445
1446 * python/py-framefilter.c (py_print_frame): Print frame architecture
1447 when printing on an MI output.
1448
1449 2018-08-27 Tom Tromey <tom@tromey.com>
1450
1451 PR build/23087:
1452 * configure: Rebuild.
1453 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1454
1455 2018-08-27 Tom Tromey <tom@tromey.com>
1456
1457 * aarch64-linux-tdep.c
1458 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1459 casts to int.
1460
1461 2018-08-27 Tom Tromey <tom@tromey.com>
1462
1463 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1464 unsigned.
1465 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1466 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1467 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1468 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1469 unsigned.
1470
1471 2018-08-27 Tom Tromey <tom@tromey.com>
1472
1473 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1474 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1475
1476 2018-08-27 Tom Tromey <tom@tromey.com>
1477
1478 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1479 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1480 ULONGEST_MAX.
1481 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1482 ULONGEST_MAX.
1483 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1484 ULONGEST_MAX.
1485 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1486 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1487 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1488 ULONGEST_MAX.
1489 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1490 (ppc64_linux_sigaction_tramp_frame)
1491 (ppc32_linux_sighandler_tramp_frame)
1492 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1493 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1494 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1495 * mn10300-linux-tdep.c (am33_linux_sigframe)
1496 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1497 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1498 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1499 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1500 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1501 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1502 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1503 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1504 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1505 * microblaze-linux-tdep.c
1506 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1507 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1508 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1509 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1510 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1511 * common/common-types.h (ULONGEST_MAX): New define.
1512 (CORE_ADDR_MAX): Fix formatting.
1513 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1514 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1515 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1516 (arm_linux_rt_sigreturn_tramp_frame)
1517 (arm_eabi_linux_sigreturn_tramp_frame)
1518 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1519 (thumb2_eabi_linux_sigreturn_tramp_frame)
1520 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1521 (arm_linux_restart_syscall_tramp_frame)
1522 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1523 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1524 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1525 ULONGEST_MAX.
1526 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1527
1528 2018-08-27 Tom Tromey <tom@tromey.com>
1529
1530 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1531 CORE_ADDR_MAX.
1532 * mips-tdep.c (mips_deal_with_atomic_sequence)
1533 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1534 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1535 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1536 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1537 CORE_ADDR_MAX.
1538 * aarch64-tdep.c (aarch64_software_single_step): Use
1539 CORE_ADDR_MAX.
1540
1541 2018-08-27 Tom Tromey <tom@tromey.com>
1542
1543 * linespec.c (complete_linespec_component): Add cast to "char".
1544 * completer.c (completion_tracker::build_completion_result): Add
1545 cast to "char".
1546
1547 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1548
1549 * solist.h (struct solist, struct target_so_ops): Fix
1550 indentation.
1551
1552 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1553
1554 * ada-tasks.c (ada_task_info_s): Remove typedef.
1555 (DEF_VEC_O(ada_task_info_s)): Remove.
1556 (struct ada_tasks_inferior_data): Initialize fields.
1557 <task_list>: Make an std::vector.
1558 (get_ada_tasks_inferior_data): Allocate with new.
1559 (ada_get_task_number): Adjust.
1560 (get_task_number_from_id): Likewise.
1561 (valid_task_id): Likewise.
1562 (ada_get_task_info_from_ptid): Likewise.
1563 (iterate_over_live_ada_tasks): Likewise.
1564 (add_ada_task): Likewise.
1565 (read_known_tasks): Likewise.
1566 (ada_build_task_list): Likewise.
1567 (print_ada_task_info): Likewise.
1568 (info_task): Likewise.
1569 (task_command_1): Likewise.
1570
1571 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1572
1573 * ada-lang.c (add_angle_brackets): Return std::string.
1574
1575 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
1576
1577 * python/py-threadevent.c (py_get_event_thread): Initialize
1578 pythread.
1579
1580 2018-08-24 Pedro Alves <palves@redhat.com>
1581
1582 * python/py-bpevent.c (create_breakpoint_event_object): Use
1583 copy-initialization.
1584 * python/py-continueevent.c (emit_continue_event): Use
1585 copy-initialization.
1586 * python/py-exitedevent.c (create_exited_event_object): Return a
1587 gdbpy_ref<>.
1588 (emit_exited_event): Use copy-initialization.
1589 * python/py-inferior.c (python_new_inferior)
1590 (python_inferior_deleted, add_thread_object): Use
1591 copy-initialization.
1592 * python/py-infevents.c (create_inferior_call_event_object)
1593 (create_register_changed_event_object)
1594 (create_memory_changed_event_object): Return a gdbpy_ref<>.
1595 (emit_inferior_call_event, emit_memory_changed_event)
1596 (emit_register_changed_event): Use copy-initialization.
1597 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1598 Return a gdbpy_ref<>.
1599 (emit_new_objfile_event): Use copy-initialization.
1600 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
1601 (emit_clear_objfiles_event): Use copy-initialization.
1602 * python/py-signalevent.c (create_signal_event_object): Use
1603 copy-initialization.
1604 * python/py-threadevent.c (create_thread_event_object): Use
1605 copy-initialization.
1606
1607 2018-08-24 Pedro Alves <palves@redhat.com>
1608 Simon Marchi <simon.marchi@ericsson.com>
1609
1610 PR gdb/23379
1611 * python/py-continueevent.c: Include "gdbthread.h".
1612 (create_continue_event_object): Add intro comment. Add 'ptid'
1613 parameter. Use it to find thread to pass to
1614 create_thread_event_object.
1615 (emit_continue_event): Pass PTID down to
1616 create_continue_event_object.
1617 * python/py-event.h (py_get_event_thread): Declare.
1618 (create_thread_event_object): Remove default from 'thread'
1619 parameter.
1620 * python/py-stopevent.c (create_stop_event_object): Use
1621 py_get_event_thread.
1622 * python/py-threadevent.c (get_event_thread): Rename to ...
1623 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
1624 and use it to find the thread.
1625 (create_thread_event_object): Assert that THREAD isn't null.
1626 Don't find the event thread here.
1627
1628 2018-08-23 Kevin Buettner <kevinb@redhat.com>
1629
1630 * block.h (blockrange, blockranges): New struct declarations.
1631 (struct block): Add new field named `ranges'.
1632 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
1633 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
1634 macros for accessing ranges in struct block.
1635 (make_blockranges): New declaration.
1636 block.c (make_blockranges): New function.
1637 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
1638 for block.
1639 * symtab.h (find_pc_partial_function): Add new parameter `block'.
1640 * blockframe.c (cache_pc_function_block): New static global.
1641 (clear_pc_function_cache): Clear cache_pc_function_block.
1642 (find_pc_partial_function): Move comment to symtab.h. Add
1643 support for non-contiguous blocks.
1644 * cli/cli-cmds.c (block.h): Include.
1645 (print_disassembly): Handle printing of non-contiguous blocks.
1646 (disassemble_current_function): Likewise.
1647 (disassemble_command): Likewise.
1648
1649 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
1650 BLOCK_START.
1651 * blockframe.c (get_pc_function_start): Likewise.
1652 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
1653 (gcc_symbol_address): Likewise.
1654 * compile/compile-object-run.c (compile_object_run): Likewise.
1655 * compile/compile.c (get_expr_block_and_pc): Likewise.
1656 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
1657 (func_addr_to_tail_call_list): Likewise.
1658 * findvar.c (default_read_var_value): Likewise.
1659 * inline-frame.c (inline_frame_this_id): Likewise.
1660 (skip-inline_frames): Likewise.
1661 * infcmd.c (until_next_command): Likewise.
1662 * linespec.c (convert_linespec_to_sals): Likewise.
1663 * parse.c (parse_exp_in_context_1): Likewise.
1664 * printcmd.c (build_address_symbolic): likewise.
1665 (info_address_command): Likewise.
1666 symtab.c (find_function_start_sal): Likewise.
1667 (skip_prologue_sal): Likewise.
1668 (find_function_alias_target): Likewise.
1669 (find_gnu_ifunc): Likewise.
1670 * stack.c (find_frame_funname): Likewise.
1671 * symtab.c (fixup_symbol_section): Likewise.
1672 (find_function_start_sal): Likewise.
1673 (skip_prologue_sal): Likewsie.
1674 (find_function_alias_target): Likewise.
1675 (find_gnu_ifunc): Likewise.
1676 * tracepoint.c (info_scope_command): Likewise.
1677 * value.c (value_fn_field): Likewise.
1678
1679 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
1680 in place of find_pc_partial_function.
1681 * blockframe.c (find_function_entry_range_from_pc): New function.
1682 * symtab.h (find_function_entry_range_from_pc): Declare and document.
1683 * objfiles.c (objfile_relocate1): Relocate start and end addresses
1684 for each range in a block.
1685
1686
1687 2018-08-23 Xavier Roirand <roirand@adacore.com>
1688
1689 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
1690 incrementation.
1691
1692 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1693
1694 * solib-svr4.c (read_program_headers_from_bfd): Return
1695 gdb::optional<gdb::byte_vector>.
1696 (svr4_exec_displacement): Adjust.
1697
1698 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1699
1700 * solib-svr4.c (read_program_header): Return
1701 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
1702 (find_program_interpreter): Return
1703 gdb::optional<gdb::byte_vector>.
1704 (scan_dyntag_auxv): Adjust.
1705 (enable_break): Adjust.
1706 (svr4_exec_displacement): Adjust.
1707
1708 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1709
1710 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
1711 * inf-child.c (inf_child_target::terminal_save_inferior): New.
1712
1713 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1714
1715 * guile/scm-string.c (gdbscm_scm_from_printf): Use
1716 string_vprintf.
1717 * guile/scm-utils.c (gdbscm_printf): Likewise.
1718 * serial.c (serial_printf): Likewise.
1719 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
1720
1721 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
1722
1723 * stack.c (print_frame): Print frame architecture when printing on
1724 an MI output.
1725 * NEWS: Mention new "arch" attribute in frame output.
1726
1727 2018-08-21 Alan Hayward <alan.hayward@arm.com>
1728
1729 * arch/aarch64.h (aarch64_regnum): Update comment.
1730
1731 2018-08-21 Alan Hayward <alan.hayward@arm.com>
1732
1733 * NEWS: Add SVE to 8.2 section.
1734
1735 2018-08-21 Pedro Alves <palves@redhat.com>
1736
1737 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
1738 out from gdbscm_parse_function_args.
1739 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
1740 gdbscm_parse_function_args_1.
1741
1742 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
1743
1744 PR gdb/17816
1745 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
1746 operator.
1747
1748 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
1749
1750 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
1751
1752 2018-08-19 Michael Spang <spang@google.com>
1753
1754 PR gdb/11786
1755 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
1756 for PT_TLS segments.
1757
1758 2018-08-18 Kevin Buettner <kevinb@redhat.com>
1759
1760 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
1761 dwarf_variable_value.
1762 * dwarf2-frame.c (class dwarf_expr_executor):
1763 Add override for dwarf_variable_value.
1764 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
1765 (class symbol_needs_eval_context): Likewise.
1766 (indirect_synthetic_pointer): Add forward declaration.
1767 (sect_variable_value): New function.
1768 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
1769 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
1770 for DW_OP_GNU_variable_value.
1771
1772 2018-08-16 Tom Tromey <tom@tromey.com>
1773
1774 * top.c (read_command_file): Update.
1775 (command_line_input): Remove "repeat" argument.
1776 * ada-lang.c (get_selections): Update.
1777 * linespec.c (decode_line_2): Update.
1778 * defs.h (command_line_input): Remove argument.
1779 * cli/cli-script.c (read_next_line): Update.
1780 * python/py-gdb-readline.c: Update.
1781
1782 2018-08-17 Tom Tromey <tom@tromey.com>
1783
1784 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
1785 command_line_input.
1786
1787 2018-08-15 Tom Tromey <tom@tromey.com>
1788
1789 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
1790
1791 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
1792
1793 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
1794 If used, use find_pc_partial_function to find address range
1795 to disassemble.
1796 * mi/mi-main.c (mi_cmd_list_features): Report
1797 "data-disassemble-a-option" feature.
1798 * NEWS: Mention new -data-disassemble option -a.
1799
1800 2018-08-13 Tom Tromey <tom@tromey.com>
1801
1802 * common/common-defs.h (_FORTIFY_SOURCE): Define.
1803
1804 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1805
1806 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
1807 (aarch64_linux_collect_sve_regset): Likewise.
1808 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
1809 * regcache.h (regcache_map_entry_size): New function.
1810
1811 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1812
1813 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
1814 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
1815 (SVE_HEADER_VL_LENGTH): Likewise.
1816 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
1817 (SVE_HEADER_FLAGS_LENGTH): Likewise.
1818 (SVE_HEADER_RESERVED_LENGTH): Likewise.
1819 (SVE_HEADER_SIZE_OFFSET): Likewise.
1820 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
1821 (SVE_HEADER_VL_OFFSET): Likewise.
1822 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
1823 (SVE_HEADER_FLAGS_OFFSET): Likewise.
1824 (SVE_HEADER_RESERVED_OFFSET): Likewise.
1825 (SVE_HEADER_SIZE): Likewise.
1826 (aarch64_linux_core_read_vq): Add function.
1827 (aarch64_linux_core_read_description): Check for SVE section.
1828
1829 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1830
1831 * aarch64-fbsd-tdep.c
1832 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
1833 collect_size.
1834 * aarch64-linux-tdep.c
1835 (aarch64_linux_iterate_over_regset_sections): Likewise.
1836 * alpha-linux-tdep.c
1837 (alpha_linux_iterate_over_regset_sections):
1838 * alpha-nbsd-tdep.c
1839 (alphanbsd_iterate_over_regset_sections): Likewise.
1840 * amd64-fbsd-tdep.c
1841 (amd64fbsd_iterate_over_regset_sections): Likewise.
1842 * amd64-linux-tdep.c
1843 (amd64_linux_iterate_over_regset_sections): Likewise.
1844 * arm-bsd-tdep.c
1845 (armbsd_iterate_over_regset_sections): Likewise.
1846 * arm-fbsd-tdep.c
1847 (arm_fbsd_iterate_over_regset_sections): Likewise.
1848 * arm-linux-tdep.c
1849 (arm_linux_iterate_over_regset_sections): Likewise.
1850 * corelow.c (get_core_registers_cb): Likewise.
1851 (core_target::fetch_registers): Likewise.
1852 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1853 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
1854 * gdbarch.h (void): Regenerate.
1855 * gdbarch.sh: Add supply_size and collect_size.
1856 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
1857 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
1858 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
1859 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
1860 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
1861 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
1862 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
1863 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
1864 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
1865 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
1866 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
1867 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
1868 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
1869 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
1870 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
1871 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
1872 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
1873 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
1874 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
1875 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
1876 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
1877 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
1878 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
1879 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
1880 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
1881 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
1882 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
1883 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
1884 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
1885 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
1886
1887 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
1888
1889 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
1890 with string_printf.
1891
1892 2018-08-10 Keith Seitz <keiths@redhat.com>
1893
1894 * compile/compile-c-support.c (add_code_header, add_code_footer):
1895 Move into policy class.
1896 (c_push_user_expression, pop_user_expression_nop)
1897 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
1898 (compile_program): New host class.
1899 (c_compile_program): New typedef.
1900 (c_compute_porgram): Use c_compile_program.
1901
1902 2018-08-10 Keith Seitz <keiths@redhat.com>
1903
1904 * compile/compile-internal.h (compile_instance::~compile_instance):
1905 Remove calls to htab_delete.
1906 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
1907 * compile.c (compile_instance::compile_instance): Initialize
1908 htab unique pointers.
1909 (compile_instance::get_cached_type, compile_instance::insert_type)
1910 (compile_instance::error_symbol_once): Update for unique_ptr.
1911
1912 2018-08-10 Keith Seitz <keiths@redhat.com>
1913
1914 * compile/compile-c-symbols.c (struct symbol_error)
1915 (hash_symbol_error, eq_symbol_error, del_symbol_error)
1916 (compile_instance::insert_symbol_error)
1917 (compile_instance::error_symbol_once): Move to ...
1918 * compile/compile.c: ... here.
1919
1920 2018-08-10 Keith Seitz <keiths@redhat.com>
1921
1922 * compile/compile-c-support.c (c_get_compile_context): Use `new'
1923 instead of `new_compile_instance'.
1924 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
1925 Update description.
1926 If the symbol error map is not initialized, create it.
1927 (generate_c_for_for_one_symbol): Do not check/initialize
1928 the symbol error map.
1929 * compile/compile-c-types.c (compile_c_instance): Make a class.
1930 Update all callers.
1931 (compile_instance::compile_instance): Initialize the type cache.
1932 (get_cached_type): New function.
1933 (insert_type): Update description.
1934 (compile_c_instance::m_default_cflags): Define.
1935 (convert_type): Update description. Use get_cached_type.
1936 (delete_instance): Moved to destructor.
1937 (new_compile_instance): Moved to constructor.
1938 * compile/compile-c.h (compile_c_instance): Make class inheriting
1939 from compile_instance.
1940 <base>: Remove field.
1941 <type_map, symbol_err_map>: Move to base class.
1942 <c_plugin>: Rename to `m_plugin' and remove pointer type.
1943 * compile/compile-internal.h (compile_instance): Make class.
1944 <type_map_t, symbol_err_map_t>: Define.
1945 <fe>: Rename to `m_gcc_fe'.
1946 <scope, block, gcc_target_options>: Add `m_' prefix.
1947 <m_type_map, m_symbol_err_map>: New fields, moved from
1948 compile_c_instance.
1949 <destroy>: Remove.
1950 (convert_type, new_compile_instance): Remove.
1951 * compile/compile.c (cleanup_compile_instance): Remove.
1952 (compile_to_object): Use unique_ptr to eliminate cleanups.
1953 (compile_instance::set_print_callback, compile_instance::version)
1954 (compile_instance::set_verbose)
1955 (compile_instance::set_driver_filename)
1956 (compile_instance::set_triplet_regexp)
1957 (compile_instance::set_arguments)
1958 (compile_instance::set_source_file)
1959 (compile_instance::compile): Define.
1960
1961 2018-08-10 Keith Seitz <keiths@redhat.com>
1962
1963 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
1964 * compile/compile-c-types.c: Define GCC_METHODN macros and include
1965 gcc-c-fe.def to define C plugin.
1966 (delete_instance): Delete `c_plugin'.
1967 (new_compile_instance): Initialize `c_plugin'.
1968 * compile/compile-c.h: Include gcc_c_plugin.h.
1969 (struct compile_c_instance) <c_plugin>: New member.
1970 * gcc-c-plugin.h: New file.
1971 Update all callers with API change.
1972
1973 2018-08-10 Keith Seitz <keiths@redhat.com>
1974
1975 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
1976 (HFILES_NO_SRCDIR): ... to here.
1977 Add compile-internal.h and compile-c.h.
1978 * compile/compile-c-support.c: Include compile-c.h.
1979 * compile/compile-c-symbols.c: Include compile-c.h.
1980 (generate_c_for_variable_locations): Update comment.
1981 * compile/compile-c-types.c: Include compile-c.h.
1982 * compile/compile-c.h: New file -- moved C language declarations
1983 from other files here.
1984 * compile/compile-internal.h: Do not include hashtab.h or
1985 common/enum-flags.h.
1986 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
1987 (gcc_convert_symbol, gcc_symbol_address)
1988 (generate_c_for_variable_locations, c_get_mode_for_size)
1989 (c_get_range_decl_name): Definitions moved to compile-c.h.
1990 * compile/compile-loc2c.c: Include compile-c.h.
1991
1992 2018-08-10 Keith Seitz <keiths@redhat.com>
1993
1994 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
1995 (c_symbol_substitution_name): ... this.
1996 Update all callers.
1997
1998 2018-08-10 Keith Seitz <keiths@redhat.com>
1999
2000 * compile/compile-c-support.c (c_compute_program): Use
2001 unique_xmalloc_ptr to eliminate cleanup.
2002 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2003 Return a unique_xmalloc_ptr and eliminate cleanup.
2004 * compile/compile-internal.h (generate_c_for_variable_locations):
2005 Return unique_xmalloc_ptr and update description.
2006
2007 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2008
2009 * corelow.c (core_target::get_core_register_section): Rename
2010 min_size to section_min_size.
2011
2012 2018-08-09 Jim Wilson <jimw@sifive.com>
2013
2014 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2015 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2016 * NEWS: Mention new GNU/Linux RISC-V target.
2017 * configure.host: Add riscv*-*-linux*.
2018 * configure.nat: Add riscv*.
2019 * configure.tgt: Add riscv*-*-linux*.
2020 * riscv-linux-nat.c: New file.
2021 * riscv-linux-tdep.c: New file.
2022
2023 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2024
2025 * infrun.c (resume): Make static, add forward declaration.
2026 (proceed): Update header comment.
2027 * infrun.h (resume): Delete declaration.
2028
2029 2018-08-09 Tom Tromey <tom@tromey.com>
2030
2031 * riscv-tdep.h: Minor formatting fixes.
2032
2033 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2034
2035 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2036 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2037 (test_mkdir_recursive): Likewise.
2038 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2039
2040 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2041
2042 * valarith.c (value_subscripted_rvalue): If an array is not in
2043 memory, and we don't know the upper bound, then we can't know that
2044 the requested element exists or not.
2045
2046 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2047
2048 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2049 (target_options_to_string): Add comment.
2050
2051 2018-08-08 Tom Tromey <tom@tromey.com>
2052
2053 * unittests/scoped_mmap-selftests.c: Check result of "write".
2054
2055 2018-08-08 Jim Wilson <jimw@sifive.com>
2056
2057 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2058 (decode_register_index_short): New.
2059 (decode_j_type_insn, decode_cj_type_insn): New.
2060 (decode_b_type_insn, decode_cb_type_insn): New.
2061 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2062 local xlen. Check xlen when decoding ambiguous compressed insns. In
2063 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2064 is_c_sw_insn instead of is_sw_insn.
2065 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2066 (riscv_software_single_step): New.
2067 * riscv-tdep.h (riscv_software_single_step): Declare.
2068
2069 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2070 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2071
2072 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2073
2074 PR gdb/18050:
2075 * target.c (dispose_inferior): Don't dispose of inferiors that are
2076 already killed.
2077
2078 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2079
2080 * remote.c (remote_target::download_tracepoint): Change char* to
2081 const char*.
2082
2083 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2084
2085 * target.h (target_options_to_string): Return an std::string.
2086 * target.c (str_comma_list_concat_elem): Return void, use
2087 std::string.
2088 (do_option): Likewise.
2089 (target_options_to_string): Return an std::string.
2090 * linux-nat.c (linux_nat_target::wait): Adjust.
2091 * target-debug.h (target_debug_print_options): Adjust.
2092
2093 2018-08-07 Tom Tromey <tom@tromey.com>
2094
2095 * Makefile.in (CPPFLAGS): New variable.
2096 (INTERNAL_CPPFLAGS): Use it.
2097
2098 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2099
2100 * NEWS: Mention the index cache.
2101
2102 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2103
2104 * common/pathstuff.h (get_standard_cache_dir): New.
2105 * common/pathstuff.c (get_standard_cache_dir): New.
2106 * build-id.h (build_id_to_string): New.
2107 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2108 DEBUG_STR_SUFFIX): Move to here.
2109 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2110 DEBUG_STR_SUFFIX): Move from there.
2111 (write_psymtabs_to_index): Make non-static, add basename
2112 parameter. Write to temporary files, rename when done.
2113 (save_gdb_index_command): Adjust call to
2114 write_psymtabs_to_index.
2115 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2116 field.
2117 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2118 (get_gdb_index_contents_from_cache): New.
2119 (get_gdb_index_contents_from_cache_dwz): New.
2120 (dwarf2_initialize_objfile): Read index from cache.
2121 (dwarf2_build_psymtabs): Save to index.
2122 * dwarf-index-cache.h: New file.
2123 * dwarf-index-cache.c: New file.
2124 * dwarf-index-write.h: New file.
2125
2126 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2127
2128 * gnulib/aclocal.m4: Re-generate.
2129 * gnulib/config.in: Re-generate.
2130 * gnulib/configure: Re-generate.
2131 * gnulib/import/Makefile.am: Re-generate.
2132 * gnulib/import/Makefile.in: Re-generate.
2133 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2134 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2135 * gnulib/import/m4/mkdir.m4: New file.
2136 * gnulib/import/mkdir.c: New file.
2137 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2138 module.
2139
2140 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2141
2142 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2143 * common/scoped_mmap.c: New file.
2144 * common/scoped_mmap.h (destroy): New method.
2145 (~scoped_mmap, reset): Use destroy.
2146 (scoped_mmap): New move constructor.
2147 (mmap_file): New declaration.
2148 * unittests/scoped_mmap-selftests.c (test_normal,
2149 test_invalid_filename, run_tests): New functions.
2150 (_initialize_scoped_mmap_selftests): Register selftest.
2151
2152 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2153
2154 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2155 (read_gdb_index_from_buffer): ... this. Remove section
2156 parameter, add buffer parameter.
2157 (get_gdb_index_contents_ftype,
2158 get_gdb_index_contents_dwz_ftype): New typedefs.
2159 (dwarf2_read_gdb_index): Add callback parameters to get the
2160 index contents.
2161 (get_gdb_index_contents_from_section): New.
2162 (dwarf2_initialize_objfile): Update call to
2163 dwarf2_read_gdb_index.
2164
2165 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2166
2167 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2168 (gdb_open_cloexec): Likewise.
2169 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2170 (commandline_from_pid): Likewise.
2171 (linux_xfer_osdata_threads): Likewise.
2172 (linux_xfer_osdata_fds): Likewise.
2173 * ada-lang.c (is_package_name): Likewise.
2174 * auxv.c (procfs_xfer_auxv): Likewise.
2175 * breakpoint.c (print_one_breakpoint_location): Use
2176 uiout::field_fmt.
2177 (print_one_catch_solib): Use string_printf.
2178 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2179 (add_pe_forwarded_sym): Likewise.
2180 * dwarf2read.c (create_type_unit_group): Likewise.
2181 (build_error_marker_type): Likewise.
2182 * infcall.c (get_function_name): Likewise.
2183 * valprint.c (print_converted_chars_to_obstack): Likewise.
2184 * xtensa-tdep.c (xtensa_register_type): Likewise.
2185
2186 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2187
2188 * remote.c (remote_target::download_tracepoint): Fix format
2189 string errors.
2190
2191 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2192
2193 * tracefile.c: Include common/byte-vector.h.
2194 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2195 with trace_regblock_size if needed. Update uses of buf.
2196
2197 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2198
2199 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2200 std::vector<unsigned char>.
2201 * tracepoint.c (collection_list::collection_list): Remove
2202 m_regs_mask initializer from initializer list. Resize
2203 m_regs_mask using the largest remote register number.
2204 (collection_list::add_remote_register): Remove size check on
2205 m_regs_mask. Use at to access element.
2206 (collection_list::stringify): Change type of temp_buf to
2207 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2208 stringify the register mask. Use pack_hex_byte for the register
2209 mask.
2210
2211 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2212
2213 * tracepoint.h (class collection_list) <add_register>: Remove.
2214 <add_remote_register, add_ax_registers, add_local_register>:
2215 Declare.
2216 <add_memrange>: Add scope parameter.
2217 * tracepoint.c (encode_actions_1): Likewise.
2218 (collection_list::add_register): Rename to ...
2219 (collection_list::add_remote_register): ... this. Update
2220 comment.
2221 (collection_list::add_ax_registers, add_local_register): New
2222 methods.
2223 (collection_list::add_memrange): Add scope parameter. Call
2224 add_local_register instead of add_register.
2225 (finalize_tracepoint_aexpr): New function.
2226 (collection_list::collect_symbol): Update calls to add_memrange.
2227 Call add_local_register instead of add_register. Call
2228 add_ax_registers. Call finalize_tracepoint_aexpr.
2229 (encode_actions_1): Get remote regnos for $reg action. Call
2230 add_remote_register, add_ax_registers, and add_local_register.
2231 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2232 (validate_actionline): Call finalize_tracepoint_aexpr.
2233
2234 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2235
2236 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2237 Replace array buf with gdb::char_vector buf, of size
2238 get_remote_packet_size (). Replace references to buf and
2239 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2240 and xsnprintf with snprintf. Raise errors if the buffer is too
2241 small.
2242
2243 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2244
2245 * remote.c (remote_target::download_tracepoint): Fix the has_more
2246 predicate in the QTDP action list iteration.
2247
2248 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2249
2250 * remote.c (remote_target::download_tracepoint): Fix indentation
2251 in for block.
2252
2253 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2254
2255 * proc-api.c (_initialize_proc_api): Remove c, unused.
2256 * procfs.c (procfs_init_inferior): Remove signals, unused.
2257 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2258 unused.
2259
2260 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2261 Andrew Burgess <andrew.burgess@embecosm.com>
2262
2263 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2264 'W_STOPCODE (0)' as this could be ambiguous.
2265
2266 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2267
2268 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2269 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2270 "ai_socktype").
2271
2272 2018-08-02 Tom Tromey <tom@tromey.com>
2273
2274 PR symtab/16842.
2275 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2276 symbols.
2277 (process_structure_scope): Likewise.
2278
2279 2018-08-02 Xavier Roirand <roirand@adacore.com>
2280
2281 PR gdb/22629:
2282 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2283 kill inferior.
2284
2285 2018-08-02 Tom Tromey <tom@tromey.com>
2286
2287 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2288 (darwin_suspend_inferior, darwin_resume_inferior)
2289 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2290 (darwin_check_new_threads): Check result of get_darwin_inferior.
2291
2292 2018-07-31 Joel Brobecker <brobecker@adacore.com>
2293
2294 GDB 8.1.1 released.
2295
2296 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2297
2298 * varobj.c (varobj_get_path_expr_parent): Report an error if
2299 parent is a dynamic varobj.
2300
2301 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2302
2303 * gnulib/aclocal.m4: Re-generate.
2304 * gnulib/config.in: Re-generate.
2305 * gnulib/configure: Re-generate.
2306 * gnulib/import/Makefile.in: Re-generate.
2307 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2308 * gnulib/import/m4/onceonly.m4: Re-generate.
2309
2310 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2311
2312 * target-descriptions.c (struct xml_test_tdesc): New.
2313 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2314 (record_xml_tdesc): Update.
2315 (maintenance_check_xml_descriptions): Update.
2316 * target-descriptions.h (record_xml_tdesc): Update comment.
2317
2318 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2319
2320 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2321 checking array bounds are defined.
2322
2323 2018-07-30 Tom Tromey <tom@tromey.com>
2324
2325 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2326 irreflexivity violation.
2327
2328 2018-07-30 Tom Tromey <tom@tromey.com>
2329
2330 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2331 * value.c (unpack_long): Remove lint code.
2332 * valops.c (value_ind): Remove lint code.
2333 * valarith.c (value_x_binop, value_x_unop, value_equal)
2334 (value_pos): Remove lint code.
2335
2336 2018-07-28 Tom de Vries <tdevries@suse.de>
2337
2338 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2339 with undefined upper bound as <optimized out>.
2340
2341 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2342
2343 * gcore.in: Rename variable "name" to "prefix". Expand
2344 "usage" text.
2345
2346 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2347
2348 * windows-nat.c (windows_nat_target::create_inferior): Update to
2349 call close() in global namespace.
2350
2351 2018-07-26 Tom Tromey <tom@tromey.com>
2352
2353 * dwarf-index-write.c (add_address_entry): Don't add objfile
2354 offsets.
2355 * dbxread.c (find_stab_function): Rename from
2356 find_stab_function_addr. Return a bound_minimal_symbol.
2357 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2358 Don't add objfile offsets.
2359 (end_psymtab): Use raw_text_low, raw_text_high,
2360 MSYMBOL_VALUE_RAW_ADDRESS.
2361 (read_ofile_symtab): Update.
2362 (process_one_symbol): Update.
2363 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2364 offsets.
2365 (dw2_relocate): Remove.
2366 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2367 searching addrmap.
2368 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2369 Update.
2370 (process_psymtab_comp_unit_reader, add_partial_symbol)
2371 (add_partial_subprogram, dwarf2_ranges_read): Update.
2372 (load_partial_dies): Update.
2373 (add_address_entry): Don't add objfile offsets.
2374 (dwarf2_build_include_psymtabs): Update.
2375 (create_addrmap_from_aranges): Don't add objfile offsets.
2376 (dw2_find_pc_sect_compunit_symtab): Update.
2377 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2378 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2379 Update.
2380 (parse_partial_symbols): Don't add objfile offsets. Use
2381 raw_text_low, raw_text_high. Update.
2382 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2383 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2384 or call 'relocate' quick function. Clear psymbol_map.
2385 * psympriv.h (struct partial_symbol) <address>: Add section
2386 offset.
2387 <set_unrelocated_address>: Rename from set_address.
2388 <raw_text_low, raw_text_high>: New methods.
2389 <text_low, text_high>: Add objfile parameter.
2390 (add_psymbol_to_bcache): Add 'section' parameter. Call
2391 set_unrelocated_address.
2392 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2393 (find_pc_psymbol): Update.
2394 (fixup_psymbol_section, relocate_psymtabs): Remove.
2395 (dump_psymtab, psym_functions): Update.
2396 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2397 parameter.
2398 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2399 (start_psymtab_common): Update.
2400 * symfile-debug.c (debug_qf_relocate): Remove.
2401 (debug_sym_quick_functions): Update.
2402 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2403 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2404 Update.
2405
2406 2018-07-26 Tom Tromey <tromey@redhat.com>
2407
2408 * dbxread.c (end_psymtab): Use text_high_valid and
2409 text_low_valid.
2410 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2411 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2412 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2413 Update comment.
2414 <text_low_valid, text_high_valid>: New fields.
2415 <set_text_low, set_text_high>: Update.
2416 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2417
2418 2018-07-26 Tom Tromey <tom@tromey.com>
2419
2420 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2421 Update.
2422 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2423 textlow and texthigh fields.
2424 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2425 Update.
2426 * mdebugread.c (parse_lines, parse_partial_symbols)
2427 (psymtab_to_symtab_1): Update.
2428 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2429 Rename fields. Update comment. Now private.
2430 <text_low, text_high, set_text_low, set_text_high>: New methods.
2431 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2432 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2433 (start_psymtab_common, maintenance_info_psymtabs)
2434 (maintenance_check_psymtabs): Update.
2435 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2436 texthigh fields.
2437 (scan_xcoff_symtab): Update.
2438
2439 2018-07-26 Tom Tromey <tromey@redhat.com>
2440
2441 * psympriv.h (struct partial_symbol) <unrelocated_address,
2442 address, set_address>: New methods.
2443 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2444 (fixup_psymbol_section, relocate_psymtabs): Update.
2445 (print_partial_symbols): Add 'objfile' parameter. Update.
2446 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2447 Update.
2448
2449 2018-07-26 Tom Tromey <tom@tromey.com>
2450
2451 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2452 (debug_names::write_psymbols): Update.
2453 * psympriv.h (struct partial_symbol): Derive from
2454 general_symbol_info.
2455 <obj_section>: New method.
2456 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2457 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2458 (find_pc_sect_psymbol, fixup_psymbol_section)
2459 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2460 (print_partial_symbols, recursively_search_psymtabs)
2461 (compare_psymbols, psymbol_hash, psymbol_compare)
2462 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2463 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2464
2465 2018-07-26 Tom Tromey <tromey@redhat.com>
2466
2467 * dbxread.c (end_psymtab): Remove dead code.
2468
2469 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2470
2471 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2472 DWARF unwinders are disabled.
2473 * dwarf2-frame.c: Add dwarf2read.h include.
2474 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2475 disabled.
2476 (dwarf2_frame_unwinders_enabled_p): Define.
2477 (show_dwarf_unwinders_enabled_p): New function.
2478 (_initialize_dwarf2_frame): Register switch to control DWARF
2479 unwinder use.
2480 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2481 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2482 (show_dwarf_cmdlist): Remove static keyword.
2483 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2484 (show_dwarf_cmdlist): Declare.
2485 * NEWS: Document new feature.
2486
2487 2018-07-26 Tom de Vries <tdevries@suse.de>
2488
2489 PR breakpoints/23366
2490 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2491
2492 2018-07-26 Tom de Vries <tdevries@suse.de>
2493
2494 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2495 DW_AT_count can't be translated to a dynamic prop.
2496
2497 2018-07-25 Tom de Vries <tdevries@suse.de>
2498
2499 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2500 try/catch.
2501
2502 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2503
2504 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2505
2506 2018-07-25 Joel Brobecker <brobecker@adacore.com>
2507
2508 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2509
2510 2018-07-24 Keith Seitz <keiths@redhat.comt
2511
2512 PR symtab/23010
2513 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2514 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2515 instead of add_symbol_to_list.
2516 (read_file_scope): Call prepare_one_comp_unit before reading
2517 any other DIEs.
2518
2519 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2520
2521 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2522
2523 2018-07-24 Tom Tromey <tom@tromey.com>
2524
2525 * utils.c (malloc, realloc, free): Don't declare.
2526 * configure, config.in: Rebuild.
2527 * configure.ac: Don't check for declarations of free, malloc, or
2528 realloc.
2529
2530 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2531
2532 * aarch64-linux-nat.c
2533 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2534 variable.
2535 * arm-linux-nat.c (fetch_regs): Likewise.
2536 (store_regs): Likewise.
2537 (fetch_vfp_regs): Likewise.
2538 (store_vfp_regs): Likewise.
2539 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2540 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2541 (arm_linux_nat_target::insert_watchpoint): Likewise.
2542 (arm_linux_nat_target::remove_watchpoint): Likewise.
2543 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2544 Likewise.
2545 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2546 Likewise.
2547 * ppc-linux-nat.c (fetch_register): Likewise.
2548 (fetch_all_gp_regs): Likewise.
2549 (fetch_ppc_registers): Likewise.
2550 (store_all_gp_regs): Likewise.
2551 (store_ppc_registers): Likewise.
2552 (hwdebug_insert_point): Likewise.
2553 (can_use_watchpoint_cond_accel): Likewise.
2554 * remote-sim.c (gdb_os_write_stdout): Likewise.
2555
2556 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2557 Tom Tromey <tom@tromey.com>
2558
2559 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
2560 test for it.
2561 * configure: Rebuild.
2562
2563 2018-07-22 Tom Tromey <tom@tromey.com>
2564
2565 * regformats/regdat.sh: Define xmltarget_${name} inside
2566 #ifndef IN_PROCESS_AGENT.
2567
2568 2018-07-22 Tom Tromey <tom@tromey.com>
2569
2570 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
2571
2572 2018-07-22 Tom Tromey <tom@tromey.com>
2573
2574 * symfile.c (reread_symbols): Notify iter, not objfile.
2575
2576 2018-07-22 Tom Tromey <tom@tromey.com>
2577
2578 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
2579 Use arch_ops.
2580 (ravenscar_thread_target::prepare_to_store): Likewise.
2581
2582 2018-07-22 Tom Tromey <tom@tromey.com>
2583
2584 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
2585 unused variable. Call value_fetch_lazy when needed.
2586 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2587 Remove unused variable. Call value_fetch_lazy when needed.
2588
2589 2018-07-22 Tom Tromey <tom@tromey.com>
2590
2591 * m32c-tdep.c (mark_dma): Return void.
2592 (make_regs): Remove unused declarations.
2593
2594 2018-07-22 Tom Tromey <tom@tromey.com>
2595
2596 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
2597 cmdscm_get_valid_command_smob_arg_unsafe for effect.
2598 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
2599 bkscm_get_valid_block_smob_arg_unsafe for effect.
2600
2601 2018-07-22 Tom Tromey <tom@tromey.com>
2602
2603 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
2604 value_type.
2605
2606 2018-07-22 Tom Tromey <tom@tromey.com>
2607
2608 * windows-nat.c (saved_context): Conditionally define.
2609 * remote.c (remote_target::remote_btrace_maybe_reopen):
2610 Conditionally declare "warned".
2611 * inflow.c (sigquit_ours): Conditionally define.
2612 (new_tty): Move "tty" declaration inside #if.
2613 * guile/guile.c (guile_datadir): Conditionally define.
2614 * charset.c (set_be_le_names): Move some declarations inside #if.
2615 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
2616 #if.
2617 (parse_xml_btrace_conf): Likewise.
2618
2619 2018-07-22 Tom Tromey <tom@tromey.com>
2620
2621 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
2622
2623 2018-07-22 Tom Tromey <tom@tromey.com>
2624
2625 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
2626 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
2627 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
2628 * buildsym-legacy.c (get_macro_table): Remove unused variable.
2629 * stack.c (frame_apply_level_command): Remove unused variable.
2630 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
2631 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
2632 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
2633 unused variable.
2634 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
2635 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
2636 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
2637 variable.
2638 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
2639 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
2640 variable.
2641 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
2642 Remove unused variable.
2643 * cli/cli-script.c (recurse_read_control_structure): Remove unused
2644 variable.
2645 * common/tdesc.c (print_xml_feature::visit): Remove unused
2646 variable.
2647 * compile/compile-object-load.c (store_regs): Remove unused
2648 variables.
2649 * complaints.c (clear_complaints): Remove unused variable.
2650 * corelow.c (core_target_open): Remove unused variable.
2651 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
2652 variable.
2653 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
2654 variable.
2655 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
2656 variable.
2657 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
2658 variable.
2659 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
2660 variable.
2661 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
2662 variable.
2663 * ia64-tdep.c (examine_prologue): Remove unused variable.
2664 * infcall.c (run_inferior_call): Remove unused variable.
2665 * inferior.c (exit_inferior): Remove unused variable.
2666 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
2667 * linespec.c (decode_line_2): Remove unused variable.
2668 * linux-nat.c (super_close): Remove.
2669 * linux-tdep.c (linux_info_proc): Remove unused variable.
2670 * mi/mi-main.c (mi_execute_command): Remove unused variable.
2671 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
2672 Remove unused variable.
2673 * parse.c (find_minsym_type_and_address): Remove unused variable.
2674 * printcmd.c (info_symbol_command, printf_floating): Remove unused
2675 variable.
2676 * python/py-breakpoint.c (bppy_set_commands): Remove unused
2677 variable.
2678 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
2679 variables.
2680 * record-btrace.c (record_btrace_target::store_registers): Remove
2681 unused variable.
2682 (cmd_show_record_btrace_cpu): Remove unused variable.
2683 * riscv-tdep.c (riscv_register_reggroup_p)
2684 (riscv_push_dummy_call, riscv_return_value): Remove unused
2685 variable.
2686 * rust-exp.y (literal): Remove unused variable.
2687 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
2688 unused variable.
2689 <STRUCTOP_ANONYMOUS>: Likewise.
2690 * s390-linux-tdep.c (s390_linux_init_abi_31)
2691 (s390_linux_init_abi_64): Remove unused variable.
2692 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
2693 (file_select_thread, net_windows_open, _initialize_ser_windows):
2694 Remove unused variables.
2695 * symtab.c (find_pc_sect_line): Remove unused variable.
2696 * target-memory.c (compute_garbled_blocks): Remove unused
2697 variable.
2698 (target_write_memory_blocks): Remove unused variable.
2699 * target.c (target_stack::unpush): Remove unused variables.
2700 * tracepoint.c (start_tracing, all_tracepoint_actions)
2701 (merge_uploaded_trace_state_variables)
2702 (print_one_static_tracepoint_marker): Remove unused variable.
2703 * unittests/basic_string_view/element_access/char/1.cc (test01):
2704 Remove unused variable.
2705 * windows-nat.c (windows_continue, windows_add_all_dlls)
2706 (do_initial_windows_stuff, windows_nat_target::create_inferior):
2707 Remove unused variables.
2708
2709 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2710
2711 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
2712 attr_profile in HAVE_ELF.
2713 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
2714 HAVE_ELF.
2715
2716 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
2717
2718 * frame.c (frame_register_unwind): Change parameter name.
2719 (frame_unwind_register): Likewise.
2720 (frame_unwind_register_value): Likewise.
2721 (frame_unwind_register_signed): Likewise.
2722 (frame_unwind_register_unsigned): Likewise.
2723 * frame.h (frame_register_unwind): Likewise.
2724 (frame_unwind_register): Likewise.
2725 (frame_unwind_register_value): Likewise.
2726 (frame_unwind_register_signed): Likewise.
2727 (frame_unwind_register_unsigned): Likewise.
2728 (frame_unwind_arch): Likewise.
2729
2730 2018-07-20 Maciej W. Rozycki <macro@mips.com>
2731
2732 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
2733 ISA maintenance.
2734
2735 2018-07-20 Maciej W. Rozycki <macro@mips.com>
2736
2737 * mips-linux-nat.c (mips_linux_nat_target::read_description):
2738 Call `get_ptrace_pid' rather than extracting the ptrace PID by
2739 hand.
2740
2741 2018-07-20 Keith Seitz <keiths@redhat.com>
2742
2743 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
2744 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
2745 m_compunit_symtab, m_language>: Add "m_" prefix.
2746 Update all uses.
2747 * buildsym.c: Update all uses.
2748
2749 2018-07-20 Tom Tromey <tom@tromey.com>
2750
2751 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
2752 * buildsym.h (record_line_ftype): Remove typedef.
2753
2754 2018-07-20 Tom Tromey <tom@tromey.com>
2755
2756 * buildsym-legacy.h (augment_type_symtab): Don't declare.
2757 (end_expandable_symtab): Likewise.
2758 (end_symtab_get_static_block): Likewise.
2759 (end_symtab_from_static_block): Likewise.
2760 * buildsym-legacy.c (augment_type_symtab): Remove.
2761 (end_expandable_symtab): Remove.
2762 (end_symtab_get_static_block): Remove.
2763 (end_symtab_from_static_block): Remove.
2764
2765 2018-07-20 Tom Tromey <tom@tromey.com>
2766
2767 * dwarf2read.c: Include buildsym.h.
2768 (struct dwarf2_cu) <builder>: New method.
2769 (fixup_go_packaging): Update.
2770 (process_full_comp_unit, process_full_type_unit): Update. Don't
2771 use scoped_free_pendings.
2772 (using_directives): Add "cu" parameter, remove "language".
2773 (read_import_statement, setup_type_unit_groups, )
2774 (read_func_scope, read_lexical_block_scope)
2775 (dwarf2_record_block_ranges, read_namespace): Update.
2776 (lnp_state_machine::lnp_state_machine): Add cu parameter.
2777 (lnp_state_machine::handle_end_sequence): Update.
2778 (class lnp_state_machine) <m_cu>: New member.
2779 <m_record_line_callback>: Remove.
2780 <m_currently_recording_lines>: New member.
2781 (lnp_state_machine::handle_set_file): Update.
2782 (noop_record_line): Remove.
2783 (dwarf_record_line_p): Add cu parameter.
2784 (dwarf_record_line_1, dwarf_finish_line): Likewise.
2785 (lnp_state_machine::record_line)
2786 (lnp_state_machine::lnp_state_machine)
2787 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
2788 (dwarf_decode_lines): Update.
2789 (dwarf2_start_subfile): Add cu parameter.
2790 (dwarf2_start_symtab, new_symbol): Update.
2791 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
2792 Remove dwarf2_per_objfile parameter.
2793 (dwarf_decode_macros): Update.
2794
2795 2018-07-20 Tom Tromey <tom@tromey.com>
2796
2797 * stabsread.c (define_symbol): Update.
2798 * buildsym-legacy.h (get_buildsym_compunit): Declare.
2799 * dwarf2read.c (new_symbol): Update.
2800 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
2801 * cp-namespace.c: Include buildsym.h.
2802 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
2803 * buildsym-legacy.c (get_buildsym_compunit): New function.
2804
2805 2018-07-20 Tom Tromey <tom@tromey.com>
2806
2807 * xcoffread.c: Include buildsym-legacy.h.
2808 * windows-nat.c: Include buildsym-legacy.h.
2809 * stabsread.c: Include buildsym-legacy.h.
2810 * mdebugread.c: Include buildsym-legacy.h.
2811 * buildsym-legacy.h: New file.
2812 * buildsym-legacy.c: New file, from buildsym.c.
2813 * go32-nat.c: Include buildsym-legacy.h.
2814 * dwarf2read.c: Include buildsym-legacy.h.
2815 * dbxread.c: Include buildsym-legacy.h.
2816 * cp-namespace.c: Include buildsym-legacy.h.
2817 * coffread.c: Include buildsym-legacy.h.
2818 * buildsym.h: Move some contents to buildsym-legacy.h.
2819 * buildsym.c: Include buildsym-legacy.h. Move many functions to
2820 buildsym-legacy.c.
2821 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
2822
2823 2018-07-20 Tom Tromey <tom@tromey.com>
2824
2825 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
2826 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
2827 (buildsym_compunit::buildsym_compunit)
2828 (buildsym_compunit::~buildsym_compunit)
2829 (buildsym_compunit::get_macro_table): Define.
2830
2831 2018-07-20 Tom Tromey <tom@tromey.com>
2832
2833 * buildsym.c (reset_symtab_globals): Remove.
2834 (buildsym_compunit::end_symtab_from_static_block): Update.
2835 (buildsym_compunit::augment_type_symtab): Update.
2836 (end_symtab_from_static_block): Call free_buildsym_compunit.
2837 (augment_type_symtab, end_symtab, end_expandable_symtab):
2838 Likewise.
2839
2840 2018-07-20 Tom Tromey <tom@tromey.com>
2841
2842 * arch-utils.c: Do not include buildsym.h.
2843 * mipsread.c: Do not include buildsym.h.
2844 * machoread.c: Do not include buildsym.h.
2845 * elfread.c: Do not include buildsym.h.
2846
2847 2018-07-20 Tom Tromey <tom@tromey.com>
2848
2849 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
2850 initialization.
2851 (buildsym_compunit): Add new constructor.
2852 (struct buildsym_compunit) <get_last_source_file, finish_block,
2853 record_block_range, start_subfile, patch_subfile_names,
2854 push_subfile, pop_subfile, record_line, get_compunit_symtab,
2855 set_last_source_start_addr, get_last_source_start_addr,
2856 get_local_using_directives, set_local_using_directives,
2857 get_global_using_directives, outermost_context_p,
2858 get_current_context_stack, get_context_stack_depth,
2859 get_current_subfile, get_local_symbols, get_file_symbols,
2860 get_global_symbols, record_debugformat, record_producer,
2861 push_context, pop_context, end_symtab_get_static_block,
2862 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
2863 New public methods.
2864 <record_pending_block, finish_block_internal, make_blockvector,
2865 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
2866 private methods.
2867 Update all users.
2868
2869 2018-05-22 Tom Tromey <tom@tromey.com>
2870
2871 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2872 parameter.
2873 (finish_block_internal): Update.
2874
2875 2018-07-20 Tom Tromey <tom@tromey.com>
2876
2877 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2878 parameter.
2879 (finish_block_internal): Update.
2880
2881 2018-07-20 Tom Tromey <tom@tromey.com>
2882
2883 * buildsym.h (EXTERN): Don't define or undef.
2884 * buildsym.c (EXTERN): Don't define.
2885
2886 2018-07-20 Tom Tromey <tom@tromey.com>
2887
2888 * buildsym.c: Remove TODO comment.
2889
2890 2018-07-20 Tom Tromey <tom@tromey.com>
2891
2892 * coffread.c (coff_symtab_read): Update.
2893 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2894 (xcoff_new_init): Update.
2895 * mipsread.c (mipscoff_new_init): Update.
2896 * mdebugread.c (mdebug_build_psymtabs): Update.
2897 * elfread.c (elf_new_init): Update.
2898 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2899 Update.
2900 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
2901 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2902 (stabsect_build_psymtabs): Update.
2903 * buildsym.h (buildsym_init): Don't declare.
2904 * buildsym.c: Update comment.
2905 (prepare_for_building): Remove.
2906 (start_symtab, restart_symtab): Update.
2907 (reset_symtab_globals): Update comment.
2908 (buildsym_init): Remove.
2909
2910 2018-07-20 Tom Tromey <tom@tromey.com>
2911
2912 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
2913 * stabsread.c (patch_block_stabs, define_symbol, read_type)
2914 (read_enum_type, common_block_start, common_block_end)
2915 (cleanup_undefined_types_1, finish_global_stabs): Update.
2916 * mdebugread.c (psymtab_to_symtab_1): Update.
2917 * dwarf2read.c (fixup_go_packaging, read_func_scope)
2918 (read_lexical_block_scope, new_symbol): Update.
2919 * dbxread.c (process_one_symbol): Update.
2920 * coffread.c (coff_symtab_read, process_coff_symbol)
2921 (coff_read_enum_type): Update.
2922 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
2923 declare.
2924 (get_local_symbols, get_file_symbols, get_global_symbols): New
2925 functions.
2926 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
2927 m_global_symbols.
2928 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
2929 (~scoped_free_pendings): Update.
2930 (finish_block, prepare_for_building, reset_symtab_globals)
2931 (end_symtab_get_static_block, end_symtab_with_blockvector)
2932 (augment_type_symtab, push_context): Update.
2933 (get_local_symbols, get_file_symbols, get_global_symbols): New
2934 functions.
2935 (buildsym_init): Update.
2936
2937 2018-07-20 Tom Tromey <tom@tromey.com>
2938
2939 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
2940 (process_full_type_unit): Likewise.
2941 (dwarf2_start_symtab): Set list_in_scope.
2942
2943 2018-07-20 Tom Tromey <tom@tromey.com>
2944
2945 * dwarf2read.c (process_psymtab_comp_unit_reader)
2946 (build_type_psymtabs_reader): Do not set list_in_scope.
2947
2948 2018-07-20 Tom Tromey <tom@tromey.com>
2949
2950 * buildsym.c (free_pendings): Remove.
2951 (add_symbol_to_list, scoped_free_pendings)
2952 (finish_block_internal, buildsym_init): Update.
2953
2954 2018-07-20 Tom Tromey <tom@tromey.com>
2955
2956 * xcoffread.c (read_xcoff_symtab): Update.
2957 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
2958 Update.
2959 * dbxread.c (process_one_symbol): Update.
2960 * coffread.c (coff_symtab_read): Update.
2961 * buildsym.h (finish_block): Update.
2962 * buildsym.c (finish_block): Remove "listhead" argument.
2963 (end_symtab_get_static_block): Update.
2964
2965 2018-07-20 Tom Tromey <tom@tromey.com>
2966
2967 * buildsym.h (class scoped_free_pendings): Remove constructor.
2968 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
2969 method.
2970 <m_pending_block_obstack, m_pending_blocks>: New members.
2971 (pending_block_obstack, pending_blocks): Remove.
2972 (scoped_free_pendings::scoped_free_pendings): Default.
2973 (~scoped_free_pendings): Update.
2974 (free_pending_blocks): Remove.
2975 (finish_block_internal, record_pending_block, make_blockvector)
2976 (end_symtab_get_static_block, augment_type_symtab, push_context)
2977 (buildsym_init): Update.
2978
2979 2018-07-20 Tom Tromey <tom@tromey.com>
2980
2981 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
2982 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
2983 members.
2984 (pending_addrmap, pending_addrmap_obstack)
2985 (pending_addrmap_interesting): Remove.
2986 (scoped_free_pendings, record_block_range, make_blockvector)
2987 (prepare_for_building, reset_symtab_globals, buildsym_init):
2988 Update.
2989
2990 2018-07-20 Tom Tromey <tom@tromey.com>
2991
2992 * xcoffread.c (process_linenos): Update.
2993 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
2994 * mdebugread.c (psymtab_to_symtab_1): Update.
2995 * dwarf2read.c (setup_type_unit_groups)
2996 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
2997 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
2998 * dbxread.c (process_one_symbol): Update.
2999 * coffread.c (coff_symtab_read, enter_linenos)
3000 (process_coff_symbol): Update.
3001 * buildsym.h (current_subfile): Don't declare.
3002 (get_current_subfile): Declare.
3003 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3004 member.
3005 (start_subfile, free_buildsym_compunit, push_subfile)
3006 (prepare_for_building, start_symtab): Update.
3007 (get_current_subfile): New function.
3008
3009 2018-07-20 Tom Tromey <tom@tromey.com>
3010
3011 * coffread.c (coff_symtab_read): Update.
3012 * xcoffread.c (read_xcoff_symtab): Update.
3013 * dwarf2read.c (new_symbol): Update.
3014 (read_func_scope, read_lexical_block_scope): Update.
3015 * dbxread.c (process_one_symbol): Update.
3016 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3017 (outermost_context_p): Remove macro.
3018 (outermost_context_p, get_current_context_stack)
3019 (get_context_stack_depth): Declare.
3020 (pop_context): Return struct context_stack.
3021 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3022 member.
3023 (context_stack_size): Remove.
3024 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3025 (prepare_for_building, end_symtab_get_static_block)
3026 (augment_type_symtab, push_context): Update.
3027 (pop_context): Return struct context_stack.
3028 (outermost_context_p, get_current_context_stack)
3029 (get_context_stack_depth): New functions.
3030 (buildsym_init): Update.
3031
3032 2018-07-20 Tom Tromey <tom@tromey.com>
3033
3034 * rust-exp.y: Now a pure parser. Update all rules.
3035 (%union): Move earlier.
3036 (current_parser, work_obstack): Remove globals.
3037 (rust_parser, ~rust_parser): Update.
3038 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3039 lex_character, lex_number, lex_string, lex_identifier,
3040 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3041 convert_name, convert_params_to_expression,
3042 convert_ast_to_expression, ast_basic_type, ast_operation,
3043 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3044 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3045 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3046 ast_array_type, ast_slice_type, ast_reference_type,
3047 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3048 (rust_parse): Update.
3049 (rustyyerror, rustyylex): Add parser parameter.
3050 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3051 (rust_lex_stringish_test, rust_lex_test_sequence)
3052 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3053 (rust_lex_test_push_back, rust_lex_tests): Update.
3054
3055 2018-07-19 Pedro Alves <palves@redhat.com>
3056
3057 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3058 gdb::unique_xmalloc_ptr.
3059 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3060 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3061 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3062 copy-initialization.
3063 * guile/scm-pretty-print.c (ppscm_print_children): Use
3064 gdb::unique_xmalloc_ptr instead of cleanups.
3065 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3066 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3067 gdb::unique_xmalloc_ptr.
3068 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3069 Adjust to use gdb::unique_xmalloc_ptr.
3070 * guile/scm-utils.c (extract_arg): Adjust.
3071 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3072 gdb::unique_xmalloc_ptr instead of a cleanup.
3073
3074 2018-07-19 Tom Tromey <tom@tromey.com>
3075
3076 * utils.c (do_value_free_to_mark)
3077 (make_cleanup_value_free_to_mark): Remove.
3078 * utils.h (make_cleanup_value_free_to_mark): Remove.
3079
3080 2018-07-19 Pedro Alves <palves@redhat.com>
3081
3082 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3083 forwarding reference.
3084
3085 2018-07-18 Pedro Alves <palves@redhat.com>
3086
3087 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3088 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3089 cleanup.
3090
3091 2018-07-18 Pedro Alves <palves@redhat.com>
3092
3093 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3094 exceptions.
3095 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3096 (gdbscm_wrap): New.
3097 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3098 directly instead of a cleanup.
3099 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3100 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3101 (vlscm_binop_gdbthrow): New, factored out from ...
3102 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3103 (vlscm_rich_compare): Use gdbscm_wrap.
3104 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3105 instead of a cleanup.
3106 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3107 cleanup.
3108 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3109 Use xfree directly instead of a cleanup.
3110 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3111 Adjust to use gdbscm_wrap and scoped_value_mark.
3112 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3113 (gdbscm_value_address, gdbscm_value_dereference)
3114 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3115 scoped_value_mark.
3116 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3117 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3118 scoped_value_mark.
3119 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3120 gdbscm_wrap and scoped_value_mark.
3121 (gdbscm_value_to_string): Use xfree directly instead of a
3122 cleanup. Move 'buffer' unique_ptr to TRY scope.
3123 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3124 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3125 scoped_value_mark.
3126 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3127 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3128 scoped_value_mark.
3129 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3130 gdbscm_wrap.
3131
3132 2018-07-18 Tom de Vries <tdevries@suse.de>
3133
3134 * findvar.c (default_read_var_value): Also resolve dynamic type for
3135 LOC_OPTIMIZED_OUT vars.
3136
3137 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3138
3139 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3140 decoding.
3141
3142 2018-07-17 Tom Tromey <tom@tromey.com>
3143
3144 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3145 (compute_enum_list, pascm_set_param_value_x)
3146 (gdbscm_parameter_value): Update.
3147 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3148 (gdbscm_scm_to_host_string): Update.
3149 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3150 Update.
3151 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3152 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3153 * guile/scm-string.c (gdbscm_scm_to_string): Return
3154 unique_xmalloc_ptr.
3155 (gdbscm_scm_to_host_string): Likewise.
3156
3157 2018-07-17 Tom Tromey <tom@tromey.com>
3158
3159 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3160 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3161 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3162 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3163 unique_xmalloc_ptr.
3164
3165 2018-07-17 Tom Tromey <tom@tromey.com>
3166
3167 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3168 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3169 Update.
3170 * guile/scm-cmd.c (cmdscm_function): Update.
3171 * guile/scm-pretty-print.c
3172 (ppscm_print_exception_unless_memory_error): Update.
3173 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3174 Return unique_xmalloc_ptr.
3175
3176 2018-07-17 Tom Tromey <tom@tromey.com>
3177
3178 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3179 Use string_printf.
3180
3181 2018-07-17 Jim Wilson <jimw@sifive.com>
3182
3183 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3184 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3185 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3186 unecessary braces after EF_RISCV_RVC test. Delete call to
3187 set_gdbarch_decr_pc_after_break.
3188
3189 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3190 RISCV_LAST_FP_REGNUM + 1.
3191 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3192
3193 2018-07-17 Tom Tromey <tom@tromey.com>
3194
3195 * configure.ac: Remove --disable-gdbcli.
3196 * configure: Rebuild.
3197 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3198 (SUBDIR_CLI_CFLAGS): Remove.
3199 (SFILES): Use SUBDIR_CLI_SRCS.
3200 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3201
3202 2018-07-17 Tom Tromey <tom@tromey.com>
3203
3204 PR gdb/18624:
3205 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3206
3207 2018-07-16 Jim Wilson <jimw@sifive.com>
3208
3209 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3210
3211 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3212
3213 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3214 variable.
3215 (libunwind_frame_sniffer): Likewise.
3216 (libunwind_frame_prev_register): Likewise.
3217 (libunwind_sigtramp_frame_sniffer): Likewise.
3218 * ia64-tdep.c (ia64_access_reg): Likewise.
3219 (ia64_access_rse_reg): Likewise.
3220 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3221 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3222
3223 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3224
3225 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3226
3227 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3228
3229 * remote-sim.c (gdbsim_target::close,
3230 gdbsim_target::mourn_inferior): Remove unused variables.
3231
3232 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3233
3234 * ia64-tdep.c (ktab_buf): New global.
3235 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3236 (get_kernel_table): Adjust.
3237
3238 2018-07-16 Tom Tromey <tom@tromey.com>
3239
3240 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3241 * dwarf2read.c (using_directives, new_symbol): Use
3242 outermost_context_p.
3243 * dbxread.c (process_one_symbol): Use outermost_context_p.
3244 * coffread.c (coff_symtab_read): Use outermost_context_p.
3245
3246 2018-07-16 Tom Tromey <tom@tromey.com>
3247
3248 * dwarf2read.c (using_directives, read_func_scope)
3249 (read_lexical_block_scope): Update.
3250 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3251 * buildsym.h (local_using_directives, global_using_directives):
3252 Don't declare.
3253 (get_local_using_directives, set_local_using_directives)
3254 (get_global_using_directives): Declare.
3255 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3256 m_global_using_directives>: New members.
3257 (finish_block_internal, prepare_for_building)
3258 (reset_symtab_globals, end_symtab_get_static_block)
3259 (push_context): Update.
3260 (get_local_using_directives, set_local_using_directives)
3261 (get_global_using_directives): New functions.
3262 (buildsym_init): Update.
3263
3264 2018-07-16 Tom Tromey <tom@tromey.com>
3265
3266 * xcoffread.c (xcoff_initial_scan): Don't call
3267 free_pending_blocks.
3268 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3269 * buildsym.h (class scoped_free_pendings): Add constructor.
3270 (free_pending_blocks): Don't declare.
3271 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3272 (free_pending_blocks): Now static.
3273
3274 2018-07-16 Tom Tromey <tom@tromey.com>
3275
3276 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3277 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3278 member.
3279 (struct subfile_stack): Remove.
3280 (subfile_stack): Remove.
3281 (push_subfile, pop_subfile, buildsym_init): Update.
3282
3283 2018-07-16 Tom Tromey <tom@tromey.com>
3284
3285 * buildsym.c (push_subfile): Use gdb_assert.
3286 (pop_subfile): Use gdb_assert.
3287
3288 2018-07-16 Tom Tromey <tom@tromey.com>
3289
3290 * buildsym.h (merge_symbol_lists): Remove.
3291 * buildsym.c (merge_symbol_lists): Remove.
3292
3293 2018-07-16 Tom Tromey <tom@tromey.com>
3294
3295 * stabsread.c (scan_file_globals): Update comment.
3296 * stabsread.h (scan_file_globals): Move from buildsym.h.
3297 * buildsym.h (scan_file_globals): Move to stabsread.h.
3298
3299 2018-07-16 Tom Tromey <tom@tromey.com>
3300
3301 * xcoffread.c (xcoff_new_init): Update.
3302 * mipsread.c (mipscoff_new_init): Update.
3303 * mdebugread.c (mdebug_build_psymtabs): Update.
3304 * elfread.c (elf_new_init): Update.
3305 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3306 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3307 * buildsym.h (buildsym_new_init): Don't declare.
3308 * buildsym.c (buildsym_new_init): Remove.
3309
3310 2018-07-16 Tom Tromey <tom@tromey.com>
3311
3312 * stabsread.h (within_function): Move from buildsym.h.
3313 * stabsread.c (start_stabs): Clear within_function.
3314 * coffread.c (coff_start_symtab): Clear within_function.
3315 * buildsym.h (within_function): Move to stabsread.h.
3316 * buildsym.c (prepare_for_building): Update.
3317
3318 2018-07-16 Tom Tromey <tom@tromey.com>
3319
3320 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3321 * dwarf2read.c (dwarf2_start_symtab): Don't set
3322 processing_gcc_compilation.
3323 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3324
3325 2018-07-16 Tom Tromey <tom@tromey.com>
3326
3327 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3328 (next_symbol_text_func): Move from buildsym.h.
3329 * stabsread.c (hashname): Move from buildsym.c.
3330 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3331 (next_symbol_text_func, hashname): Move to stabsread.h.
3332 * buildsym.c: Don't include bcache.h
3333 (hashname): Move to stasbread.c.
3334
3335 2018-07-16 Tom Tromey <tom@tromey.com>
3336
3337 * buildsym.h (context_stack_size): Don't declare.
3338 * buildsym.c (context_stack_size): New global.
3339
3340 2018-07-16 Tom Tromey <tom@tromey.com>
3341
3342 * dbxread.c (processing_acc_compilation): New global.
3343 * buildsym.h (processing_acc_compilation): Don't declare.
3344
3345 2018-07-16 Tom Tromey <tom@tromey.com>
3346
3347 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3348 * dbxread.c (read_ofile_symtab): Update.
3349 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3350 * buildsym.h (last_source_start_addr): Remove.
3351 (set_last_source_start_addr, get_last_source_start_addr):
3352 Declare.
3353 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3354 parameter.
3355 (struct buildsym_compunit) <m_last_source_start_addr>: New
3356 member.
3357 (prepare_for_building): Remove start_addr parameter.
3358 (start_symtab, restart_symtab, end_symtab_get_static_block)
3359 (end_symtab_with_blockvector): Update.
3360 (set_last_source_start_addr, get_last_source_start_addr): New
3361 functions.
3362
3363 2018-07-16 Tom Tromey <tom@tromey.com>
3364
3365 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3366 member.
3367 (have_line_numbers): Remove.
3368 (record_line, prepare_for_building, end_symtab_get_static_block)
3369 (augment_type_symtab): Update.
3370
3371 2018-07-16 Tom Tromey <tom@tromey.com>
3372
3373 * buildsym.c (~buildsym_compunit): Free the macro table.
3374 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3375 methods.
3376 <m_pending_macros>: New member.
3377 (pending_macros): Remove.
3378 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3379 (reset_symtab_globals, end_symtab_get_static_block)
3380 (end_symtab_with_blockvector, augment_type_symtab)
3381 (buildsym_init): Update.
3382
3383 2018-07-16 Tom Tromey <tom@tromey.com>
3384
3385 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3386 parameter.
3387 (buildsym_compunit::set_last_source_file): New method.
3388 <m_last_source_file>: New member.
3389 (prepare_for_building): Remove "name" parameter.
3390 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3391 (last_source_file): Remove.
3392 (set_last_source_file, get_last_source_file): Update.
3393
3394 2018-07-16 Tom Tromey <tom@tromey.com>
3395
3396 * buildsym.c (prepare_for_building): Add assert.
3397
3398 2018-07-16 Tom Tromey <tom@tromey.com>
3399
3400 * buildsym.c (~buildsym_compunit): Update.
3401 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3402 (start_subfile, patch_subfile_names)
3403 (end_symtab_with_blockvector): Update.
3404
3405 2018-07-16 Tom Tromey <tom@tromey.com>
3406
3407 * buildsym.c (struct buildsym_compunit): Add constructor,
3408 destructor, initializers.
3409 (start_buildsym_compunit): Remove.
3410 (free_buildsym_compunit): Use "delete".
3411 (start_symtab, restart_symtab): Use "new".
3412
3413 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3414
3415 * symfile.c (set_objfile_default_section_offset): Remove struct
3416 keyword.
3417
3418 2018-07-14 Stafford Horne <shorne@gmail.com>
3419
3420 * (Responsible Maintainers): Add myself as or1k maintainer.
3421
3422 2018-07-13 Tom Tromey <tom@tromey.com>
3423
3424 * symfile.c (set_objfile_default_section_offset): Use extra braces
3425 around initializer.
3426
3427 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3428
3429 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3430 non-branching basr.
3431
3432 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3433
3434 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3435 unittests/cli-utils-selftests.c
3436 * unittests/cli-utils-selftests.c: New file.
3437
3438 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3439
3440 * NEWS: Mention new commands. Mention change to 'thread apply'.
3441
3442 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3443
3444 * thread.c (thr_try_catch_cmd): New function.
3445 (thread_apply_all_command): Handle qcs flags.
3446 (thread_apply_command): Handle qcs flags.
3447 (taas_command): New function.
3448 (tfaas_command): New function.
3449 (_initialize_thread): Update to setup the new commands 'taas
3450 and 'tfaas'. Change doc string for 'thread apply'.
3451
3452 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3453
3454 * stack.c: (trailing_outermost_frame): New function, mostly
3455 extracted from backtrace_command_1.
3456 (leading_innermost_frame): New function.
3457 (backtrace_command_1): Update to call trailing_outermost_frame.
3458 (frame_apply_command_count): New function.
3459 (frame_apply_level_command): New function.
3460 (frame_apply_all_command): New function.
3461 (frame_apply_command): New function.
3462 (faas_command): New function.
3463 (frame_cmd_list): New variable.
3464 (_initialize_stack): Update to setup the new commands 'frame apply'
3465 and 'faas'.
3466
3467 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3468
3469 * cli-utils.c (number_or_range_parser::get_number): Only handle
3470 numbers or convenience var as numbers.
3471 (parse_flags): New function.
3472 (parse_flags_qcs): New function.
3473 (number_or_range_parser::finished): Ensure parsing end is detected
3474 before end of string.
3475 * cli-utils.h (parse_flags): New function.
3476 (parse_flags_qcs): New function.
3477 (number_or_range_parser): Remove m_finished bool.
3478 (number_or_range_parser::skip_range): Set m_in_range to false.
3479
3480 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3481
3482 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3483 on Windows.
3484
3485 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3486 Jan Kratochvil <jan.kratochvil@redhat.com>
3487 Paul Fertser <fercerpav@gmail.com>
3488 Tsutomu Seki <sekiriki@gmail.com>
3489 Pedro Alves <palves@redhat.com>
3490
3491 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3492 'unittests/parse-connection-spec-selftests.c'.
3493 (COMMON_SFILES): Add 'common/netstuff.c'.
3494 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3495 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3496 * common/netstuff.c: New file.
3497 * common/netstuff.h: New file.
3498 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3499 (wait_for_connect): Update comment. New parameter
3500 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3501 Use 'sock' directly instead of 'scb->fd'.
3502 (try_connect): New function, with code from 'net_open'.
3503 (net_open): Rewrite main loop to deal with multiple
3504 sockets/addresses. Handle IPv6-style hostnames; implement
3505 support for IPv6 connections.
3506 * unittests/parse-connection-spec-selftests.c: New file.
3507
3508 2018-07-11 Pedro Alves <palves@redhat.com>
3509
3510 PR gdb/23377
3511 * remote.c (remote_target::remote_detach_pid): Call
3512 set_current_process.
3513
3514 2018-07-11 Pedro Alves <palves@redhat.com>
3515
3516 * h8300-tdep.c (h8300_gdbarch_init): Remove
3517 set_gdbarch_ecoff_reg_to_regnum calls.
3518
3519 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3520
3521 PR c++/23373
3522 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3523 offsets/sizes for static members of a class/struct.
3524
3525 2018-07-11 Alan Hayward <alan.hayward@arm.com>
3526
3527 * target-descriptions.c (tdesc_register_bitsize): Rename.
3528 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3529 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3530 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3531
3532 2018-07-10 Tom Tromey <tom@tromey.com>
3533
3534 * breakpoint.c (moribund_locations): Now static and a
3535 std::vector.
3536 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3537 (build_bpstat_chain, update_global_location_list)
3538 (breakpoint_retire_moribund): Update.
3539 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3540 VEC.
3541
3542 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3543
3544 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3545 (riscv_register_reggroup_p): Use new function, remove unneeded
3546 parenthesis.
3547 (riscv_push_dummy_call): Extend assert to compare against xlen or
3548 flen based on register type.
3549
3550 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3551
3552 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3553
3554 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3555
3556 * remote.c (show_hardware_watchpoint_limit): New function.
3557 (show_hardware_watchpoint_length_limit): New function.
3558 (show_hardware_breakpoint_limit): New function.
3559 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
3560 where appropriate, update help text.
3561
3562 2018-07-09 Tom Tromey <tom@tromey.com>
3563
3564 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
3565 (CLIBS): Don't mention NAT_CLIBS.
3566
3567 2018-07-09 Tom Tromey <tom@tromey.com>
3568
3569 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
3570 (LIBGDB_OBS, clean mostlyclean): Update.
3571 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
3572
3573 2018-07-09 Tom Tromey <tom@tromey.com>
3574
3575 * Makefile.in (%.c: %.y): Use ECHO_YACC.
3576 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
3577 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
3578
3579 2018-07-09 Tom Tromey <tom@tromey.com>
3580
3581 * Makefile.in (ALLDEPFILES): Remove exec.c.
3582 (COMMON_OBS): Remove exec.o.
3583 (COMMON_SFILES): Add exec.c.
3584
3585 2018-07-09 Tom Tromey <tom@tromey.com>
3586
3587 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
3588
3589 2018-07-09 Tom Tromey <tom@tromey.com>
3590
3591 * Makefile.in (clean mostlyclean): Remove stamp-version.
3592 (version.c): Depend on stamp-version.
3593 (stamp-version): New rule, from version.c rule.
3594
3595 2018-07-09 Tom Tromey <tom@tromey.com>
3596
3597 * Makefile.in (init.c): Depend on stamp-init.
3598 (stamp-init): New rule, from init.c rule.
3599 (clean mostlyclean): Remove stamp-init.
3600
3601 2018-07-09 Tom Tromey <tom@tromey.com>
3602
3603 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
3604 SUBDIR_GCC_COMPILE_SRCS.
3605
3606 2018-07-09 Tom Tromey <tom@tromey.com>
3607
3608 * Makefile.in (init.c): Remove some unused sed rules.
3609
3610 2018-07-09 Tom Tromey <tom@tromey.com>
3611
3612 * Makefile.in (TSOBS): Remove.
3613 (INIT_FILES): Update.
3614 (LIBGDB_OBS): Update.
3615 (COMMON_SFILES): Add inflow.c.
3616 (SFILES): Remove inflow.c.
3617
3618 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3619
3620 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
3621
3622 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
3623
3624 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
3625 get_saveloc_name, is_signal_frame_name, step_name,
3626 init_remote_name, create_addr_space_name,
3627 destroy_addr_space_name, search_unwind_table_name,
3628 find_dyn_list_name): Constify.
3629
3630 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
3631
3632 * darwin-nat.c (darwin_pthread_kill): New function.
3633 (darwin_resume_thread): Use darwin_pthread_kill.
3634
3635 2018-07-05 Tom de Vries <tdevries@suse.de>
3636
3637 * macroexp.c (macro_buffer) <operator=>: New member function.
3638
3639 2018-07-04 Tom Tromey <tom@tromey.com>
3640
3641 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
3642
3643 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
3644
3645 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
3646 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
3647 * maint.c: Likewise.
3648 * top.c: Likewise.
3649
3650 2018-07-04 Joel Brobecker <brobecker@adacore.com>
3651
3652 * NEWS: Create a new section for the next release branch.
3653 Rename the section of the current branch, now that it has
3654 been cut.
3655
3656 2018-07-04 Joel Brobecker <brobecker@adacore.com>
3657
3658 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
3659 * version.in: Bump version to 8.2.50.DATE-git.
3660
3661 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3662 Pedro Alves <palves@redhat.com>
3663
3664 * linux-nat.c (linux_init_ptrace): Rename to ...
3665 (linux_init_ptrace_procfs): ... this. Call
3666 linux_proc_init_warnings.
3667 (linux_nat_target::post_attach)
3668 (linux_nat_target::post_startup_inferior): Adjust.
3669 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
3670 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
3671
3672 2018-07-04 Tom de Vries <tdevries@suse.de>
3673
3674 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
3675 check ...
3676 (read_comp_unit_head): ... here.
3677
3678 2018-07-03 Tom Tromey <tom@tromey.com>
3679
3680 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
3681 (stop_tracing, tstatus_command)
3682 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
3683 (print_one_static_tracepoint_marker): Update.
3684 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
3685 std::vector.
3686 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
3687 VEC.
3688 (all_tracepoints, static_tracepoints_here): Return std::vector.
3689
3690 2018-07-03 Tom Tromey <tom@tromey.com>
3691
3692 * common/ptid.c (ptid_equal): Remove.
3693 * common/ptid.h (ptid_equal): Don't declare.
3694 * ada-tasks.c: Update.
3695 * breakpoint.c: Update.
3696 * common/agent.c: Update.
3697 * corelow.c: Update.
3698 * darwin-nat-info.c: Update.
3699 * darwin-nat.c: Update.
3700 * dcache.c: Update.
3701 * dtrace-probe.c: Update.
3702 * dummy-frame.c: Update.
3703 * fbsd-nat.c: Update.
3704 * frame.c: Update.
3705 * gdbthread.h: Update.
3706 * gnu-nat.c: Update.
3707 * go32-nat.c: Update.
3708 * inf-loop.c: Update.
3709 * inf-ptrace.c: Update.
3710 * infcall.c: Update.
3711 * infcmd.c: Update.
3712 * inflow.c: Update.
3713 * infrun.c: Update.
3714 * linux-fork.c: Update.
3715 * linux-nat.c: Update.
3716 * linux-thread-db.c: Update.
3717 * mi/mi-cmd-var.c: Update.
3718 * mi/mi-interp.c: Update.
3719 * mi/mi-main.c: Update.
3720 * nto-procfs.c: Update.
3721 * ppc-linux-tdep.c: Update.
3722 * procfs.c: Update.
3723 * python/py-inferior.c: Update.
3724 * python/py-record-btrace.c: Update.
3725 * python/py-record.c: Update.
3726 * ravenscar-thread.c: Update.
3727 * regcache.c: Update.
3728 * remote-sim.c: Update.
3729 * remote.c: Update.
3730 * sol-thread.c: Update.
3731 * solib.c: Update.
3732 * target.c: Update.
3733 * tui/tui-stack.c: Update.
3734 * varobj.c: Update.
3735 * windows-nat.c: Update.
3736 * windows-tdep.c: Update.
3737
3738 2018-07-03 Tom Tromey <tom@tromey.com>
3739
3740 * common/ptid.c (ptid_match): Remove.
3741 * common/ptid.h (ptid_match): Don't declare.
3742 * fbsd-nat.c: Update.
3743 * infcmd.c: Update.
3744 * infrun.c: Update.
3745 * linux-nat.c: Update.
3746 * record-btrace.c: Update.
3747 * regcache.c: Update.
3748 * remote.c: Update.
3749
3750 2018-07-03 Tom Tromey <tom@tromey.com>
3751
3752 * common/ptid.c (ptid_tid_p): Remove.
3753 * common/ptid.h (ptid_tid_p): Don't declare.
3754 * sol-thread.c: Update.
3755
3756 2018-07-03 Tom Tromey <tom@tromey.com>
3757
3758 * common/ptid.c (ptid_lwp_p): Remove.
3759 * common/ptid.h (ptid_lwp_p): Don't declare.
3760 * fbsd-nat.c: Update.
3761 * linux-nat.c: Update.
3762 * nat/linux-procfs.c: Update.
3763 * nat/x86-linux-dregs.c: Update.
3764 * sol-thread.c: Update.
3765
3766 2018-07-03 Tom Tromey <tom@tromey.com>
3767
3768 * common/ptid.c (ptid_is_pid): Remove.
3769 * common/ptid.h (ptid_is_pid): Don't declare.
3770 * infrun.c: Update.
3771 * linux-nat.c: Update.
3772 * mi/mi-interp.c: Update.
3773 * remote.c: Update.
3774 * thread.c: Update.
3775
3776 2018-07-03 Tom Tromey <tom@tromey.com>
3777
3778 * common/ptid.c (ptid_get_tid): Remove.
3779 * common/ptid.h (ptid_get_tid): Don't declare.
3780 * ada-tasks.c: Update.
3781 * aix-thread.c: Update.
3782 * bsd-uthread.c: Update.
3783 * darwin-nat.c: Update.
3784 * fbsd-nat.c: Update.
3785 * i386-darwin-nat.c: Update.
3786 * infrun.c: Update.
3787 * linux-tdep.c: Update.
3788 * nto-procfs.c: Update.
3789 * ppc-ravenscar-thread.c: Update.
3790 * python/py-infthread.c: Update.
3791 * ravenscar-thread.c: Update.
3792 * sol-thread.c: Update.
3793 * sparc-ravenscar-thread.c: Update.
3794 * windows-nat.c: Update.
3795
3796 2018-07-03 Tom Tromey <tom@tromey.com>
3797
3798 * common/ptid.c (ptid_get_lwp): Remove.
3799 * common/ptid.h (ptid_get_lwp): Don't declare.
3800 * aarch64-linux-nat.c: Update.
3801 * ada-tasks.c: Update.
3802 * aix-thread.c: Update.
3803 * amd64-linux-nat.c: Update.
3804 * arm-linux-nat.c: Update.
3805 * corelow.c: Update.
3806 * fbsd-nat.c: Update.
3807 * fbsd-tdep.c: Update.
3808 * gnu-nat.c: Update.
3809 * i386-cygwin-tdep.c: Update.
3810 * i386-gnu-nat.c: Update.
3811 * i386-linux-nat.c: Update.
3812 * ia64-linux-nat.c: Update.
3813 * inf-ptrace.c: Update.
3814 * infrun.c: Update.
3815 * linux-fork.c: Update.
3816 * linux-nat.c: Update.
3817 * linux-tdep.c: Update.
3818 * linux-thread-db.c: Update.
3819 * mips-linux-nat.c: Update.
3820 * nat/aarch64-linux-hw-point.c: Update.
3821 * nat/aarch64-linux.c: Update.
3822 * nat/linux-btrace.c: Update.
3823 * nat/linux-osdata.c: Update.
3824 * nat/linux-procfs.c: Update.
3825 * nat/x86-linux-dregs.c: Update.
3826 * obsd-nat.c: Update.
3827 * ppc-fbsd-nat.c: Update.
3828 * ppc-linux-nat.c: Update.
3829 * procfs.c: Update.
3830 * python/py-infthread.c: Update.
3831 * ravenscar-thread.c: Update.
3832 * remote.c: Update.
3833 * s390-linux-nat.c: Update.
3834 * sol-thread.c: Update.
3835 * sol2-tdep.c: Update.
3836 * spu-linux-nat.c: Update.
3837 * x86-linux-nat.c: Update.
3838 * xtensa-linux-nat.c: Update.
3839
3840 2018-07-03 Tom Tromey <tom@tromey.com>
3841
3842 * common/ptid.c (ptid_get_pid): Remove.
3843 * common/ptid.h (ptid_get_pid): Don't declare.
3844 * aarch64-linux-nat.c: Update.
3845 * ada-lang.c: Update.
3846 * aix-thread.c: Update.
3847 * alpha-bsd-nat.c: Update.
3848 * amd64-fbsd-nat.c: Update.
3849 * amd64-linux-nat.c: Update.
3850 * arm-linux-nat.c: Update.
3851 * arm-nbsd-nat.c: Update.
3852 * auxv.c: Update.
3853 * break-catch-syscall.c: Update.
3854 * breakpoint.c: Update.
3855 * bsd-uthread.c: Update.
3856 * corelow.c: Update.
3857 * ctf.c: Update.
3858 * darwin-nat.c: Update.
3859 * fbsd-nat.c: Update.
3860 * fbsd-tdep.c: Update.
3861 * gcore.c: Update.
3862 * gnu-nat.c: Update.
3863 * hppa-nbsd-nat.c: Update.
3864 * hppa-obsd-nat.c: Update.
3865 * i386-fbsd-nat.c: Update.
3866 * ia64-linux-nat.c: Update.
3867 * inf-ptrace.c: Update.
3868 * infcmd.c: Update.
3869 * inferior.c: Update.
3870 * inferior.h: Update.
3871 * inflow.c: Update.
3872 * infrun.c: Update.
3873 * linux-fork.c: Update.
3874 * linux-nat.c: Update.
3875 * linux-tdep.c: Update.
3876 * linux-thread-db.c: Update.
3877 * m68k-bsd-nat.c: Update.
3878 * mi/mi-interp.c: Update.
3879 * mi/mi-main.c: Update.
3880 * mips-linux-nat.c: Update.
3881 * mips-nbsd-nat.c: Update.
3882 * mips64-obsd-nat.c: Update.
3883 * nat/aarch64-linux-hw-point.c: Update.
3884 * nat/aarch64-linux.c: Update.
3885 * nat/linux-btrace.c: Update.
3886 * nat/linux-osdata.c: Update.
3887 * nat/linux-procfs.c: Update.
3888 * nat/x86-linux-dregs.c: Update.
3889 * nto-procfs.c: Update.
3890 * obsd-nat.c: Update.
3891 * ppc-linux-nat.c: Update.
3892 * ppc-nbsd-nat.c: Update.
3893 * ppc-obsd-nat.c: Update.
3894 * proc-service.c: Update.
3895 * procfs.c: Update.
3896 * python/py-inferior.c: Update.
3897 * python/py-infthread.c: Update.
3898 * ravenscar-thread.c: Update.
3899 * record.c: Update.
3900 * remote-sim.c: Update.
3901 * remote.c: Update.
3902 * rs6000-nat.c: Update.
3903 * s390-linux-nat.c: Update.
3904 * sh-nbsd-nat.c: Update.
3905 * sol-thread.c: Update.
3906 * sparc-nat.c: Update.
3907 * sparc64-tdep.c: Update.
3908 * spu-linux-nat.c: Update.
3909 * spu-tdep.c: Update.
3910 * target-debug.h: Update.
3911 * target.c: Update.
3912 * thread.c: Update.
3913 * tid-parse.c: Update.
3914 * tracefile-tfile.c: Update.
3915 * vax-bsd-nat.c: Update.
3916 * windows-nat.c: Update.
3917 * x86-linux-nat.c: Update.
3918 * x86-nat.c: Update.
3919
3920 2018-07-03 Tom Tromey <tom@tromey.com>
3921
3922 * common/ptid.c (pid_to_ptid): Remove.
3923 * common/ptid.h (pid_to_ptid): Don't declare.
3924 * aix-thread.c: Update.
3925 * arm-linux-nat.c: Update.
3926 * common/ptid.c: Update.
3927 * common/ptid.h: Update.
3928 * corelow.c: Update.
3929 * ctf.c: Update.
3930 * darwin-nat.c: Update.
3931 * fbsd-nat.c: Update.
3932 * fork-child.c: Update.
3933 * gnu-nat.c: Update.
3934 * go32-nat.c: Update.
3935 * inf-ptrace.c: Update.
3936 * infcmd.c: Update.
3937 * inferior.c: Update.
3938 * infrun.c: Update.
3939 * linux-fork.c: Update.
3940 * linux-nat.c: Update.
3941 * nat/aarch64-linux-hw-point.c: Update.
3942 * nat/fork-inferior.c: Update.
3943 * nat/x86-linux-dregs.c: Update.
3944 * nto-procfs.c: Update.
3945 * obsd-nat.c: Update.
3946 * procfs.c: Update.
3947 * progspace.c: Update.
3948 * remote.c: Update.
3949 * rs6000-nat.c: Update.
3950 * s390-linux-nat.c: Update.
3951 * sol-thread.c: Update.
3952 * spu-linux-nat.c: Update.
3953 * target.c: Update.
3954 * top.c: Update.
3955 * tracefile-tfile.c: Update.
3956 * windows-nat.c: Update.
3957
3958 2018-07-03 Tom Tromey <tom@tromey.com>
3959
3960 * common/ptid.h (ptid_build): Don't declare.
3961 * common/ptid.c (ptid_build): Remove.
3962 * aix-thread.c: Update.
3963 * bsd-kvm.c: Update.
3964 * bsd-uthread.c: Update.
3965 * common/agent.c: Update.
3966 * common/ptid.c: Update.
3967 * common/ptid.h: Update.
3968 * corelow.c: Update.
3969 * darwin-nat.c: Update.
3970 * fbsd-nat.c: Update.
3971 * gnu-nat.c: Update.
3972 * linux-fork.c: Update.
3973 * linux-nat.c: Update.
3974 * linux-thread-db.c: Update.
3975 * nat/linux-osdata.c: Update.
3976 * nat/linux-procfs.c: Update.
3977 * nto-procfs.c: Update.
3978 * obsd-nat.c: Update.
3979 * proc-service.c: Update.
3980 * procfs.c: Update.
3981 * ravenscar-thread.c: Update.
3982 * remote-sim.c: Update.
3983 * remote.c: Update.
3984 * sol-thread.c: Update.
3985 * target.c: Update.
3986 * windows-nat.c: Update.
3987
3988 2018-07-03 Tom Tromey <tom@tromey.com>
3989
3990 * infrun.c (follow_exec): Use exit_inferior_silent.
3991 * inferior.c (exit_inferior_num_silent): Remove.
3992 * inferior.h (exit_inferior_num_silent): Don't declare.
3993
3994 2018-07-03 Tom Tromey <tom@tromey.com>
3995
3996 PR cli/23340:
3997 * darwin-nat.c (darwin_attach_pid): Reset inferior and
3998 inferior_ptid on error.
3999
4000 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4001 Simon Marchi <simon.marchi@polymtl.ca>
4002
4003 PR tdep/8282
4004 * disasm.h (gdb_disassembler): Add
4005 `m_disassembler_options_holder'. member
4006 * disasm.c (get_all_disassembler_options): New function.
4007 (gdb_disassembler::gdb_disassembler): Use it.
4008 (gdb_buffered_insn_length_init_dis): Likewise.
4009 (gdb_buffered_insn_length): Adjust accordingly.
4010 (set_disassembler_options): Handle options with arguments.
4011 (show_disassembler_options_sfunc): Likewise. Add a leading new
4012 line if showing options with descriptions.
4013 (disassembler_options_completer): Adapt to using the
4014 `disasm_options_and_args_t' structure.
4015 * mips-tdep.c (mips_disassembler_options): New variable.
4016 (mips_disassembler_options_o32): Likewise.
4017 (mips_disassembler_options_n32): Likewise.
4018 (mips_disassembler_options_n64): Likewise.
4019 (gdb_print_insn_mips): Don't set `disassembler_options'.
4020 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4021 functions.
4022 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4023 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4024 `gdbarch_disassembler_options_implicit' and
4025 `gdbarch_valid_disassembler_options'.
4026 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4027 `disasm_options_and_args_t' structure.
4028 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4029 method.
4030 (valid_disassembler_options): Switch from `disasm_options_t' to
4031 the `disasm_options_and_args_t' structure.
4032 * NEWS: Document `set disassembler-options' support for the MIPS
4033 target.
4034 * gdbarch.h: Regenerate.
4035 * gdbarch.c: Regenerate.
4036
4037 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4038
4039 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4040
4041 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4042
4043 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4044 parameter in call to amd64_target_description.
4045 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4046 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4047 (amd64fbsd_init_abi): Likewise.
4048 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4049 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4050 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4051 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4052
4053 2018-06-29 Pedro Alves <palves@redhat.com>
4054
4055 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4056 "segments" parameter.
4057 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4058 (_initialize_amd64_tdep): Update call to
4059 amd64_create_target_description.
4060 (amd64_target_description): Add "segments" parameter. Adjust
4061 the implementation to use it.
4062 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4063 call to amd64_create_target_description.
4064 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4065 * gdb/arch/amd64.h (amd64_create_target_description): Add
4066 "segments" register.
4067 * gdb/arch/amd64.c (amd64_create_target_description): Add
4068 "segments" parameter. Call create_feature_i386_64bit_segments
4069 only if SEGMENTS is true.
4070 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4071 call to amd64_create_target_description.
4072
4073 2018-06-29 Pedro Alves <palves@redhat.com>
4074
4075 * thread.c (thread_target_id_str): New, factored out from ...
4076 (print_thread_info_1): ... here. Use it to compute the max
4077 "Target Id" column width.
4078
4079 2018-06-29 Pedro Alves <palves@redhat.com>
4080
4081 * remote.c (remote_target::extra_thread_info): Delete
4082 'display_buf' and 'n' locals. from the cache, regardless of
4083 packet mechanims is in use. Use cache for qThreadExtra and qP
4084 methods too.
4085
4086 2018-06-29 Pedro Alves <palves@redhat.com>
4087
4088 * blockframe.c (find_pc_sect_containing_function): New function.
4089 * breakpoint.c (print_breakpoint_location): Don't call
4090 find_pc_sect_function.
4091 * linespec.c (create_sals_line_offset): Record the location's
4092 symbol in the sal.
4093 * linespec.c (convert_address_location_to_sals): Fill in sal's
4094 symbol with find_pc_sect_containing_function.
4095 * symtab.c (find_function_start_sal): Rename to ...
4096 (find_function_start_sal_1): ... this.
4097 (find_function_start_sal): Reimplement as wrapper around
4098 find_function_start_sal_1, and use
4099 find_pc_sect_containing_function to fill in the sal's symbol.
4100 (find_function_start_sal(symbol*, bool)): Adjust.
4101 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4102 comments.
4103 (find_pc_sect_containing_function): Declare.
4104
4105 2018-06-29 Pedro Alves <palves@redhat.com>
4106
4107 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4108 true if the the location has no symbol.
4109
4110 2018-06-28 Tom Tromey <tom@tromey.com>
4111
4112 * NEWS: Mention --enable-codesign.
4113 * silent-rules.mk (ECHO_SIGN): New variable.
4114 * configure.ac: Add --enable-codesign.
4115 * configure: Rebuild.
4116 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4117 (gdb$(EXEEXT)): Optionally invoke codesign.
4118
4119 2018-06-28 Pedro Alves <palves@redhat.com>
4120
4121 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4122 comments.
4123 (switch_to_thread_no_regs): Adjust comment.
4124 * infcmd.c (stop_pc): Delete.
4125 (post_create_inferior, info_program_command): Replace references
4126 to stop_pc with references to thread_info->suspend.stop_pc.
4127 * inferior.h (stop_pc): Delete declaration.
4128 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4129 (handle_inferior_event_1, handle_signal_stop)
4130 (process_event_stop_test, keep_going_stepped_thread)
4131 (handle_step_into_function, handle_step_into_function_backward)
4132 (print_stop_location): Replace references to stop_pc with
4133 references to thread_info->suspend.stop_pc.
4134 (struct infcall_suspend_state) <stop_pc>: Delete field.
4135 (save_infcall_suspend_state, restore_infcall_suspend_state):
4136 Remove references to inf_stat->stop_pc.
4137 * linux-fork.c (fork_load_infrun_state): Likewise.
4138 * record-btrace.c (record_btrace_set_replay): Likewise.
4139 * record-full.c (record_full_goto_entry): Likewise.
4140 * remote.c (print_one_stopped_thread): Likewise.
4141 * target.c (target_resume): Extend comment.
4142 * thread.c (set_executing_thread): New.
4143 (set_executing): Use it.
4144 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4145 Remove references to stop_pc.
4146
4147 2018-06-28 Pedro Alves <palves@redhat.com>
4148
4149 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4150 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4151
4152 2018-06-28 Tom Tromey <tom@tromey.com>
4153
4154 * coffread.c (coff_symfile_finish): Update.
4155 * xcoffread.c (xcoff_symfile_finish): Update.
4156 * elfread.c (elf_symfile_finish): Update.
4157 * symfile.h (dwarf2_free_objfile): Don't declare.
4158 * dwarf2read.c (_initialize_dwarf2_read): Use
4159 register_objfile_data_with_cleanup.
4160 (dwarf2_free_objfile): Now static. Change signature.
4161
4162 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4163
4164 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4165 option "-o" to add-symbol-file-load to add an offset to each
4166 section's load address.
4167 * symfile.c (set_objfile_default_section_offset): New function.
4168
4169 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4170
4171 * symfile.c (add_symbol_file_command): Make sure that sections
4172 with the same name are sorted in the same order.
4173
4174 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4175
4176 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4177 require the second argument. If omitted, load sections at the
4178 addresses specified in the file.
4179
4180 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4181
4182 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4183 (_initialize_symfile): Add option "-o" to symbol-file to add an
4184 offset to each section of the symbol file.
4185
4186 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4187
4188 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4189
4190 2018-06-27 Tom Tromey <tom@tromey.com>
4191
4192 * stack.c (_initialize_stack): Update "func" help text.
4193
4194 2018-06-27 Tom Tromey <tom@tromey.com>
4195
4196 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4197 std::vector.
4198 (unwind_infopy_str, pyuw_create_unwind_info)
4199 (unwind_infopy_add_saved_register, pyuw_sniffer)
4200 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4201 Update.
4202 (struct saved_reg): Add constructor.
4203 <value>: Now a gdbpy_ref<>.
4204
4205 2018-06-27 Tom Tromey <tom@tromey.com>
4206
4207 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4208
4209 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4210
4211 * gdb-gdb.py.in: Format using autopep8.
4212
4213 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4214
4215 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4216 (type_lookup_function): Recognize CORE_ADDR values.
4217
4218 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4219
4220 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4221 print tag_name.
4222
4223 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4224
4225 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4226 <__lt__>: Add.
4227
4228 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4229
4230 * gdb-gdb.py: Move to...
4231 * gdb-gdb.py.in: ... here.
4232 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4233 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4234 dependencies.
4235 (distclean): Remove gdb-gdb.py when cleaning.
4236 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4237 * configure: Re-generate.
4238
4239 2018-06-27 Pedro Alves <palves@redhat.com>
4240
4241 * proc-service.c (get_ps_regcache): New.
4242 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4243 (ps_lsetfpregs): Use it.
4244
4245 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
4246
4247 PR gdb/21695
4248 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4249 (dwarf_decode_lines_1): Adjust.
4250
4251 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4252
4253 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4254 override.
4255 <info_proc>: Likewise.
4256
4257 2018-06-26 Joel Brobecker <brobecker@adacore.com>
4258
4259 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4260 to windows_fetch_one_register, and only handle the case of
4261 fetching one register. Move the code that reloads the context
4262 and iterates over all registers if R is negative to...
4263 (windows_nat_target::fetch_registers): ... here.
4264 (do_windows_store_inferior_registers): Rename to
4265 windows_store_one_register, and only handle the case of storing
4266 one register. Move the code that handles the case where r is
4267 negative to...
4268 (windows_nat_target::store_registers) ... here.
4269
4270 2018-06-26 Tom Tromey <tom@tromey.com>
4271
4272 PR rust/22574:
4273 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4274 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4275 Update.
4276 (rust_internal_print_type): Add podata parameter.
4277 (rust_print_type): Update.
4278
4279 2018-06-26 Tom Tromey <tom@tromey.com>
4280
4281 * typeprint.h (struct print_offset_data) <update, finish,
4282 maybe_print_hole>: New methods.
4283 <indentation>: New constant.
4284 * typeprint.c (print_offset_data::indentation): Define.
4285 (print_offset_data::maybe_print_hole, print_offset_data::update)
4286 (print_offset_data::finish): Move from c-typeprint.c and rename.
4287 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4288 (print_spaces_filtered_with_print_options): Update.
4289 (c_print_type_union_field_offset, maybe_print_hole)
4290 (c_print_type_struct_field_offset): Move to typeprint.c and
4291 rename.
4292 (c_type_print_base_struct_union): Update.
4293
4294 2018-06-25 Pedro Alves <palves@redhat.com>
4295
4296 * gdbthread.h (thread_info_ref, delete_thread)
4297 (delete_thread_silent, first_thread_of_inferior)
4298 (any_thread_of_inferior, switch_to_thread)
4299 (enable_thread_stack_temporaries)
4300 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4301 (get_last_thread_stack_temporary)
4302 (value_in_thread_stack_temporaries, can_access_registers_thread):
4303 Spell out "struct thread_info" instead of just "thread_info".
4304 * inferior.h (notice_new_inferior): Likewise.
4305
4306 2018-06-25 Pedro Alves <palves@redhat.com>
4307
4308 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4309 pass thread_info pointer to delete_thread.
4310 (windows_nat_target::detach): Pass inferior pointer to
4311 detach_inferior.
4312 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4313 delete_thread.
4314 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4315 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4316 and pass a thread_info pointer to delete_thread.
4317 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4318 pass thread_info pointer to delete_thread.
4319 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4320 delete_thread_silent call.
4321 * procfs.c (procfs_target::detach): Pass inferior pointer to
4322 detach_inferior.
4323 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4324 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4325 delete_thread_silent call.
4326 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4327 pass thread_info pointer to delete_thread.
4328 (windows_nat_target::detach): Pass inferior pointer to
4329 delete_inferior.
4330
4331 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4332
4333 * regcache.c (readable_regcache::read_part): Fix asserts.
4334 (reg_buffer::raw_collect_part): New function.
4335 (regcache::write_part): Fix asserts.
4336 (reg_buffer::raw_supply_part): New function.
4337 (regcache::transfer_regset_register): New helper function.
4338 (regcache::transfer_regset): Call new functions.
4339 (regcache_supply_regset): Use gdb_byte*.
4340 (regcache::supply_regset): Likewise.
4341 (regcache_collect_regset): Likewise.
4342 (regcache::collect_regset): Likewise.
4343 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4344 (reg_buffer::raw_supply_part): Likewise.
4345 (regcache::transfer_regset_register): Likewise.
4346 (regcache::transfer_regset): Use gdb_byte*.
4347
4348 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4349
4350 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4351
4352 2018-06-21 Pedro Alves <palves@redhat.com>
4353
4354 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4355 instead of a ptid_t. All callers adjusted.
4356 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4357 adjusted.
4358 (print_ada_task_info, display_current_task_id, task_command_1):
4359 Adjust.
4360 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4361 inferior_thread.
4362 (breakpoint_kind): Adjust.
4363 (remove_breakpoints_pid): Rename to ...
4364 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4365 pointer. All callers adjusted.
4366 (bpstat_clear_actions): Use inferior_thread.
4367 (get_bpstat_thread): New.
4368 (bpstat_do_actions): Use it.
4369 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4370 to take a thread_info pointer. All callers adjusted.
4371 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4372 (breakpoint_re_set_thread): Use inferior_thread.
4373 * breakpoint.h (struct inferior): Forward declare.
4374 (bpstat_stop_status): Update.
4375 (remove_breakpoints_pid): Delete.
4376 (remove_breakpoints_inf): New.
4377 * bsd-uthread.c (bsd_uthread_target::wait)
4378 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4379 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4380 (maint_btrace_packet_history_cmd)
4381 (maint_btrace_clear_packet_history_cmd): Adjust.
4382 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4383 inferior_thread.
4384 * cli/cli-interp.c: Include "inferior.h".
4385 * common/refcounted-object.h (struct
4386 refcounted_object_ref_policy): New.
4387 * compile/compile-object-load.c: Include gdbthread.h.
4388 (store_regs): Use inferior_thread.
4389 * corelow.c (core_target::close): Use current_inferior.
4390 (core_target_open): Adjust to use first_thread_of_inferior and use
4391 the current inferior.
4392 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4393 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4394 <thread>: ... this new field. All references adjusted.
4395 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4396 Take a thread_info pointer instead of a ptid_t.
4397 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4398 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4399 thread_info pointer instead of a ptid_t.
4400 * elfread.c: Include "inferior.h".
4401 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4402 Use inferior_thread.
4403 * eval.c (evaluate_subexp): Likewise.
4404 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4405 inferior_thread.
4406 * gdb_proc_service.h (struct thread_info): Forward declare.
4407 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4408 <thread>: ... this new field. All references adjusted.
4409 * gdbarch.h, gdbarch.c: Regenerate.
4410 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4411 'thread' parameter. All implementations and callers adjusted.
4412 * gdbthread.h (thread_info) <set_running>: New method.
4413 (delete_thread, delete_thread_silent): Take a thread_info pointer
4414 instead of a ptid.
4415 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4416 (first_thread_of_process): Delete, replaced by ...
4417 (first_thread_of_inferior): ... this new function. All callers
4418 adjusted.
4419 (any_live_thread_of_process): Delete, replaced by ...
4420 (any_live_thread_of_inferior): ... this new function. All callers
4421 adjusted.
4422 (switch_to_thread, switch_to_no_thread): Declare.
4423 (is_executing): Delete.
4424 (enable_thread_stack_temporaries): Update comment.
4425 <enable_thread_stack_temporaries>: Take a thread_info pointer
4426 instead of a ptid_t. Incref the thread.
4427 <~enable_thread_stack_temporaries>: Decref the thread.
4428 <m_ptid>: Delete
4429 <m_thr>: New.
4430 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4431 (get_last_thread_stack_temporary)
4432 (value_in_thread_stack_temporaries, can_access_registers_thread):
4433 Take a thread_info pointer instead of a ptid_t. All callers
4434 adjusted.
4435 * infcall.c (get_call_return_value): Use inferior_thread.
4436 (run_inferior_call): Work with thread pointers instead of ptid_t.
4437 (call_function_by_hand_dummy): Work with thread pointers instead
4438 of ptid_t. Use thread_info_ref.
4439 * infcmd.c (proceed_thread_callback): Access thread's state
4440 directly.
4441 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4442 access thread's state directly.
4443 (continue_command): Use inferior_thread.
4444 (info_program_command): Use find_thread_ptid and access thread
4445 state directly.
4446 (proceed_after_attach_callback): Use thread state directly.
4447 (notice_new_inferior): Take a thread_info pointer instead of a
4448 ptid_t. All callers adjusted.
4449 (exit_inferior): Take an inferior pointer instead of a pid. All
4450 callers adjusted.
4451 (exit_inferior_silent): New.
4452 (detach_inferior): Delete.
4453 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4454 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4455 (detach_inferior_command, kill_inferior_command): Use
4456 find_inferior_id instead of valid_gdb_inferior_id and
4457 gdb_inferior_id_to_pid.
4458 (inferior_command): Use inferior and thread pointers.
4459 * inferior.h (struct thread_info): Forward declare.
4460 (notice_new_inferior): Take a thread_info pointer instead of a
4461 ptid_t. All callers adjusted.
4462 (detach_inferior): Delete declaration.
4463 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4464 instead of a pid. All callers adjusted.
4465 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4466 (valid_gdb_inferior_id): Delete.
4467 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4468 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4469 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4470 ...
4471 <inf>: ... this new field.
4472 <step_ptid>: Delete, replaced by ...
4473 <step_thread>: ... this new field.
4474 (get_displaced_stepping_state): Take an inferior pointer instead
4475 of a pid. All callers adjusted.
4476 (displaced_step_in_progress_any_inferior): Adjust.
4477 (displaced_step_in_progress_thread): Take a thread pointer instead
4478 of a ptid_t. All callers adjusted.
4479 (displaced_step_in_progress, add_displaced_stepping_state): Take
4480 an inferior pointer instead of a pid. All callers adjusted.
4481 (get_displaced_step_closure_by_addr): Adjust.
4482 (remove_displaced_stepping_state): Take an inferior pointer
4483 instead of a pid. All callers adjusted.
4484 (displaced_step_prepare_throw, displaced_step_prepare)
4485 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4486 All callers adjusted.
4487 (start_step_over): Adjust.
4488 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4489 displaced step queue.
4490 (do_target_resume): Adjust.
4491 (fetch_inferior_event): Use inferior_thread.
4492 (context_switch, get_inferior_stop_soon): Take an
4493 execution_control_state pointer instead of a ptid_t. All callers
4494 adjusted.
4495 (switch_to_thread_cleanup): Delete.
4496 (stop_all_threads): Use scoped_restore_current_thread.
4497 * inline-frame.c: Include "gdbthread.h".
4498 (inline_state) <inline_state>: Take a thread pointer instead of a
4499 ptid_t. All callers adjusted.
4500 <ptid>: Delete, replaced by ...
4501 <thread>: ... this new field.
4502 (find_inline_frame_state): Take a thread pointer instead of a
4503 ptid_t. All callers adjusted.
4504 (skip_inline_frames, step_into_inline_frame)
4505 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4506 pointer instead of a ptid_t. All callers adjusted.
4507 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4508 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4509 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4510 pointers directly.
4511 * linux-nat.c (get_detach_signal): Likewise.
4512 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4513 (thread_db_notice_clone): Adjust.
4514 (thread_db_find_new_threads_silently)
4515 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4516 a thread pointer instead of a ptid_t. All callers adjusted.
4517 * mi/mi-cmd-var.c: Include "inferior.h".
4518 (mi_cmd_var_update_iter): Update to use thread pointers.
4519 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4520 inferior directly.
4521 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4522 out to ...
4523 (mi_output_running): ... this new function.
4524 (mi_on_resume_1): Adjust to use it.
4525 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4526 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4527 directly.
4528 (interrupt_thread_callback): : Adjust to use thread and inferior
4529 pointers.
4530 * proc-service.c: Include "gdbthread.h".
4531 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4532 * progspace-and-thread.c: Include "inferior.h".
4533 * progspace.c: Include "inferior.h".
4534 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4535 hold a reference to an inferior_object.
4536 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4537 inferior_thread.
4538 * python/py-inferior.c (struct inferior_object): Give the type a
4539 tag name instead of a typedef.
4540 (python_on_normal_stop): No need to check if the current thread is
4541 listed.
4542 (inferior_to_inferior_object): Change return type to
4543 inferior_object. All callers adjusted.
4544 (find_thread_object): Delete, bits factored out to ...
4545 (thread_to_thread_object): ... this new function.
4546 * python/py-infthread.c (create_thread_object): Use
4547 inferior_to_inferior_object.
4548 (thpy_is_stopped): Use thread pointer directly.
4549 (gdbpy_selected_thread): Use inferior_thread.
4550 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4551 field, replaced with ...
4552 <thread>: ... this new field. All users adjusted.
4553 (btpy_insn_or_gap_new): Drop const.
4554 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
4555 callers adjusted.
4556 * python/py-record.c: Include "gdbthread.h".
4557 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4558 a ptid_t. All callers adjusted.
4559 (gdbpy_current_recording): Use inferior_thread.
4560 * python/py-record.h (recpy_record_object) <ptid>: Delete
4561 field, replaced with ...
4562 <thread>: ... this new field. All users adjusted.
4563 (recpy_element_object) <ptid>: Delete
4564 field, replaced with ...
4565 <thread>: ... this new field. All users adjusted.
4566 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4567 a ptid_t. All callers adjusted.
4568 * python/py-threadevent.c: Include "gdbthread.h".
4569 (get_event_thread): Use thread_to_thread_object.
4570 * python/python-internal.h (struct inferior_object): Forward
4571 declare.
4572 (find_thread_object, find_inferior_object): Delete declarations.
4573 (thread_to_thread_object, inferior_to_inferior_object): New
4574 declarations.
4575 * record-btrace.c: Include "inferior.h".
4576 (require_btrace_thread): Use inferior_thread.
4577 (record_btrace_frame_sniffer)
4578 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
4579 (get_thread_current_frame): Use scoped_restore_current_thread and
4580 switch_to_thread.
4581 (get_thread_current_frame): Use thread pointer directly.
4582 (record_btrace_replay_at_breakpoint): Use thread's inferior
4583 pointer directly.
4584 * record-full.c: Include "inferior.h".
4585 * regcache.c: Include "gdbthread.h".
4586 (get_thread_arch_regcache): Use the inferior's address space
4587 directly.
4588 (get_thread_regcache, registers_changed_thread): New.
4589 * regcache.h (get_thread_regcache(thread_info *thread)): New
4590 overload.
4591 (registers_changed_thread): New.
4592 (remote_target) <remote_detach_1>: Swap order of parameters.
4593 (remote_add_thread): <remote_add_thread>: Return the new thread.
4594 (get_remote_thread_info(ptid_t)): New overload.
4595 (remote_target::remote_notice_new_inferior): Use thread pointers
4596 directly.
4597 (remote_target::process_initial_stop_replies): Use
4598 thread_info::set_running.
4599 (remote_target::remote_detach_1, remote_target::detach)
4600 (extended_remote_target::detach): Adjust.
4601 * stack.c (frame_show_address): Use inferior_thread.
4602 * target-debug.h (target_debug_print_thread_info_pp): New.
4603 * target-delegates.c: Regenerate.
4604 * target.c (default_thread_address_space): Delete.
4605 (memory_xfer_partial_1): Use current_inferior.
4606 (target_detach): Use current_inferior.
4607 (target_thread_address_space): Delete.
4608 (generic_mourn_inferior): Use current_inferior.
4609 * target.h (struct target_ops) <thread_address_space>: Delete.
4610 (target_thread_address_space): Delete.
4611 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
4612 pointers directly.
4613 (delete_thread_1, delete_thread, delete_thread_silent): Take a
4614 thread pointer instead of a ptid_t. Adjust all callers.
4615 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
4616 (first_thread_of_process): Delete, replaced by ...
4617 (first_thread_of_inferior): ... this new function. All callers
4618 adjusted.
4619 (any_thread_of_process): Rename to ...
4620 (any_thread_of_inferior): ... this, and take an inferior pointer.
4621 (any_live_thread_of_process): Rename to ...
4622 (any_live_thread_of_inferior): ... this, and take an inferior
4623 pointer.
4624 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4625 (value_in_thread_stack_temporaries)
4626 (get_last_thread_stack_temporary): Take a thread pointer instead
4627 of a ptid_t. Adjust all callers.
4628 (thread_info::set_running): New.
4629 (validate_registers_access): Use inferior_thread.
4630 (can_access_registers_ptid): Rename to ...
4631 (can_access_registers_thread): ... this, and take a thread
4632 pointer.
4633 (print_thread_info_1): Adjust to compare thread pointers instead
4634 of ptids.
4635 (switch_to_no_thread, switch_to_thread): Make extern.
4636 (scoped_restore_current_thread::~scoped_restore_current_thread):
4637 Use m_thread pointer directly.
4638 (scoped_restore_current_thread::scoped_restore_current_thread):
4639 Use inferior_thread.
4640 (thread_command): Use thread pointer directly.
4641 (thread_num_make_value_helper): Use inferior_thread.
4642 * top.c (execute_command): Use inferior_thread.
4643 * tui/tui-interp.c: Include "inferior.h".
4644 * varobj.c (varobj_create): Use inferior_thread.
4645 (value_of_root_1): Use find_thread_global_id instead of
4646 global_thread_id_to_ptid.
4647
4648 2018-06-21 Alan Hayward <alan.hayward@arm.com>
4649
4650 * regcache.c (readable_regcache::read_part): Avoid memcpy when
4651 possible.
4652 (regcache::write_part): Likewise.
4653 (readable_regcache::cooked_read_part): Update comment.
4654 (readable_regcache::cooked_write_part): Likewise.
4655 * regcache.h: (readable_regcache::read_part): Likewise.
4656 (regcache::write_part): Likewise.
4657
4658 2018-06-21 Richard Bunt <richard.bunt@arm.com>
4659 Dirk Schubert <dirk.schubert@arm.com>
4660
4661 * aarch64-linux-nat.c (post_attach): New.
4662 (aarch64_linux_nat_target::post_attach): Override post_attach to
4663 record the number of hardware debug registers.
4664
4665 2018-06-20 Tom Tromey <tom@tromey.com>
4666
4667 * python/py-param.c (add_setshow_generic): Make parameters const.
4668 (parmpy_init): Update.
4669
4670 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4671
4672 * regcache.h (regcache_cooked_read_ftype): Rename to...
4673 (register_read_ftype): ...this, change type to function_view.
4674 (class reg_buffer) <save>: Remove src parameter.
4675 (readonly_detached_regcache) <readonly_detached_regcache>: Make
4676 parameter non-const in first overload. Remove src parameter in
4677 second overload.
4678 * regcache.c (do_cooked_read): Remove.
4679 (readonly_detached_regcache::readonly_detached_regcache): Make
4680 parameter non-const, adjust call to other constructor.
4681 (reg_buffer::save): Remove src parameter.
4682 * frame.c (do_frame_register_read): Remove.
4683 (frame_save_as_regcache): Use lambda function.
4684 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
4685 parameter to ppu2spu_data *.
4686 (ppu2spu_sniffer): Use lambda function.
4687
4688 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4689
4690 * record-full.c (record_full_target::insert_breakpoint): Remove
4691 "struct" keyword, add const.
4692
4693 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4694
4695 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
4696 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
4697 * configure.ac: Remove AC_PREREQ, add missing quoting.
4698 * gnulib/configure.ac: Modernize usage of
4699 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
4700 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
4701 (AUTOMAKE_VERSION): Bump to 1.15.1.
4702 * configure: Re-generate.
4703 * config.in: Re-generate.
4704 * aclocal.m4: Re-generate.
4705 * gnulib/aclocal.m4: Re-generate.
4706 * gnulib/config.in: Re-generate.
4707 * gnulib/configure: Re-generate.
4708 * gnulib/import/Makefile.in: Re-generate.
4709
4710 2018-06-19 Pedro Alves <palves@redhat.com>
4711
4712 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
4713 (lookup_minimal_symbol_by_pc_section): ... here with
4714 gdb_assert_not_reached added.
4715
4716 2018-06-19 Pedro Alves <palves@redhat.com>
4717
4718 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
4719 parameter with a block parameter. Compare location's block symbol
4720 with the frame's block instead of addresses.
4721 (skip_inline_frames): Pass the current block instead of the
4722 frame's address. Break out as soon as we determine the frame
4723 should not be skipped.
4724
4725 2018-06-18 Tom Tromey <tom@tromey.com>
4726
4727 * solib-aix.c (solib_aix_get_section_offsets): Return
4728 unique_xmalloc_ptr.
4729 (solib_aix_solib_create_inferior_hook): Update.
4730
4731 2018-06-18 Tom Tromey <tom@tromey.com>
4732
4733 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
4734
4735 2018-06-18 Tom Tromey <tom@tromey.com>
4736
4737 * solib-frv.c (frv_relocate_main_executable): Use
4738 unique_xmalloc_ptr.
4739 * solib-dsbt.c (dsbt_relocate_main_executable): Use
4740 unique_xmalloc_ptr.
4741
4742 2018-06-18 Tom Tromey <tom@tromey.com>
4743
4744 * objfiles.h (inhibit_section_map_updates): Update.
4745 (resume_section_map_updates, resume_section_map_updates_cleanup):
4746 Remove.
4747 * solib-svr4.c (svr4_handle_solib_event): Update.
4748 * objfiles.c (inhibit_section_map_updates): Return
4749 scoped_restore_tmpl<int>.
4750 (resume_section_map_updates, resume_section_map_updates_cleanup):
4751 Remove.
4752
4753 2018-06-18 Tom Tromey <tom@tromey.com>
4754
4755 * valprint.h (read_string): Update.
4756 * valprint.c (read_string): Change type of "buffer".
4757 (val_print_string): Update.
4758 * python/py-value.c (valpy_string): Update.
4759 * language.h (struct language_defn) <la_get_string>: Change
4760 type of "buffer".
4761 (default_get_string, c_get_string): Update.
4762 * language.c (default_get_string): Change type of "buffer".
4763 * guile/scm-value.c (gdbscm_value_to_string): Update.
4764 * c-lang.c (c_get_string): Change type of "buffer".
4765
4766 2018-06-18 Tom Tromey <tom@tromey.com>
4767
4768 * ser-mingw.c (struct pipe_state_destroyer): New.
4769 (pipe_state_up): New typedef.
4770 (cleanup_pipe_state): Remove.
4771 (pipe_windows_open): Use pipe_state_up. Don't release argv.
4772
4773 2018-06-18 Tom Tromey <tom@tromey.com>
4774
4775 * rust-lang.h (rust_yyerror): Don't declare.
4776 * rust-lang.c (rust_language_defn): Update.
4777 * rust-exp.y (yyerror): Now static.
4778 * parse.c (parse_exp_in_context_1): Update.
4779 * p-lang.h (p_yyerror): Don't declare.
4780 * p-lang.c (p_language_defn): Update.
4781 * p-exp.y (yyerror): Now static.
4782 * opencl-lang.c (opencl_language_defn): Update.
4783 * objc-lang.c (objc_language_defn): Update.
4784 * m2-lang.h (m2_yyerror): Don't declare.
4785 * m2-lang.c (m2_language_defn): Update.
4786 * m2-exp.y (yyerror): Now static.
4787 * language.h (struct language_defn) <la_error>: Remove.
4788 * language.c (unk_lang_error): Remove.
4789 (unknown_language_defn, auto_language_defn): Remove.
4790 * go-lang.h (go_yyerror): Don't declare.
4791 * go-lang.c (go_language_defn): Update.
4792 * go-exp.y (yyerror): Now static.
4793 * f-lang.h (f_yyerror): Don't declare.
4794 * f-lang.c (f_language_defn): Update.
4795 * f-exp.y (yyerror): Now static.
4796 * d-lang.h (d_yyerror): Don't declare.
4797 * d-lang.c (d_language_defn): Update.
4798 * d-exp.y (yyerror): Now static.
4799 * c-lang.h (c_yyerror): Don't declare.
4800 * c-lang.c (c_language_defn, cplus_language_defn)
4801 (asm_language_defn, minimal_language_defn): Update.
4802 * c-exp.y (yyerror): Now static.
4803 * ada-lang.h (ada_yyerror): Don't declare.
4804 * ada-lang.c (ada_language_defn): Update.
4805 * ada-exp.y (yyerror): Now static.
4806
4807 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4808
4809 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
4810 (store_sveregs_to_thread): Likewise.
4811 (aarch64_linux_fetch_inferior_registers): Check for SVE.
4812 (aarch64_linux_store_inferior_registers): Likewise.
4813 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
4814 function.
4815 (aarch64_sve_regs_copy_to_regcache): Likewise.
4816 (aarch64_sve_regs_copy_from_regcache): Likewise.
4817 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
4818 declaration.
4819 (aarch64_sve_regs_copy_to_regcache): Likewise.
4820 (aarch64_sve_regs_copy_from_regcache): Likewise.
4821 (sve_context): Structure from Linux headers.
4822 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
4823 (SVE_SIG_ZREG_SIZE): Likewise.
4824 (SVE_SIG_PREG_SIZE): Likewise.
4825 (SVE_SIG_FFR_SIZE): Likewise.
4826 (SVE_SIG_REGS_OFFSET): Likewise.
4827 (SVE_SIG_ZREGS_OFFSET): Likewise.
4828 (SVE_SIG_ZREG_OFFSET): Likewise.
4829 (SVE_SIG_ZREGS_SIZE): Likewise.
4830 (SVE_SIG_PREGS_OFFSET): Likewise.
4831 (SVE_SIG_PREG_OFFSET): Likewise.
4832 (SVE_SIG_PREGS_SIZE): Likewise.
4833 (SVE_SIG_FFR_OFFSET): Likewise.
4834 (SVE_SIG_REGS_SIZE): Likewise.
4835 (SVE_SIG_CONTEXT_SIZE): Likewise.
4836 (SVE_PT_REGS_MASK): Likewise.
4837 (SVE_PT_REGS_FPSIMD): Likewise.
4838 (SVE_PT_REGS_SVE): Likewise.
4839 (SVE_PT_VL_INHERIT): Likewise.
4840 (SVE_PT_VL_ONEXEC): Likewise.
4841 (SVE_PT_REGS_OFFSET): Likewise.
4842 (SVE_PT_FPSIMD_OFFSET): Likewise.
4843 (SVE_PT_FPSIMD_SIZE): Likewise.
4844 (SVE_PT_SVE_ZREG_SIZE): Likewise.
4845 (SVE_PT_SVE_PREG_SIZE): Likewise.
4846 (SVE_PT_SVE_FFR_SIZE): Likewise.
4847 (SVE_PT_SVE_FPSR_SIZE): Likewise.
4848 (SVE_PT_SVE_FPCR_SIZE): Likewise.
4849 (__SVE_SIG_TO_PT): Likewise.
4850 (SVE_PT_SVE_OFFSET): Likewise.
4851 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
4852 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
4853 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
4854 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
4855 (SVE_PT_SVE_PREG_OFFSET): Likewise.
4856 (SVE_PT_SVE_PREGS_SIZE): Likewise.
4857 (SVE_PT_SVE_FFR_OFFSET): Likewise.
4858 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
4859 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
4860 (SVE_PT_SVE_SIZE): Likewise.
4861 (SVE_PT_SIZE): Likewise.
4862 (HAS_SVE_STATE): New define.
4863
4864 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4865
4866 * nat/aarch64-sve-linux-sigcontext.h: New file.
4867 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
4868 new files.
4869 (SVE_VQ_MIN): Likewise.
4870 (SVE_VQ_MAX): Likewise.
4871 (SVE_VL_MIN): Likewise.
4872 (SVE_VL_MAX): Likewise.
4873 (SVE_NUM_ZREGS): Likewise.
4874 (SVE_NUM_PREGS): Likewise.
4875 (sve_vl_valid): Likewise.
4876 (struct user_sve_header): Likewise.
4877
4878 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4879 Richard Bunt <Richard.Bunt@arm.com>
4880
4881 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
4882 was requested by GDB.
4883
4884 2018-06-15 Tom de Vries <tdevries@suse.de>
4885
4886 * MAINTAINERS (Write After Approval): Add Tom de Vries.
4887
4888 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
4889
4890 * gnulib/update-gnulib.sh: Print expected versions of
4891 autoconf/aclocal.
4892
4893 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
4894
4895 * arch-utils.c (default_type_align): Use type_length_units.
4896 * gdbtypes.c (type_align): Use type_length_units.
4897
4898 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4899
4900 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
4901 of 'define' command.
4902
4903 2018-06-14 Tom de Vries <tdevries@suse.de>
4904
4905 PR cli/22573
4906 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
4907 get_no_prettyformat_print_options.
4908
4909 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
4910
4911 * sparc-nat.h: Include target.h.
4912 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
4913 <fetch_registers>: Remove this argument in function call.
4914 <store_registers>: Remove this argument in function call, remove
4915 extra semicolon.
4916 <low_forget_process>: Call sparc64_forget_process instead of
4917 sparc_forget_process.
4918
4919 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4920
4921 * procfs.c (_initialize_procfs): Use add_inf_child_target.
4922 (procfs_target::make_corefile_notes): Adjust to new
4923 target_read_alloc return type.
4924
4925 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4926 Stephen Roberts <stephen.roberts@arm.com>
4927
4928 PR gdb/22882
4929 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
4930 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
4931 Move should_notify_stop local into more inner scope.
4932
4933 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4934 Stephen Roberts <stephen.roberts@arm.com>
4935
4936 PR gdb/22882
4937 * infrun.c (resume_1): Add call to mark_async_event_handler.
4938
4939 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4940
4941 * infrun.c (do_target_wait): Change old version of $pc printed.
4942
4943 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
4944
4945 * dwarf2read.c (read_index_from_section): Rename to...
4946 (read_gdb_index_from_section): ... this, update all callers.
4947 (dwarf2_read_index): Rename to...
4948 (dwarf2_read_gdb_index): ... this, update all callers.
4949
4950 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
4951
4952 * gdb/hppa-linux-nat.c
4953 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
4954 hppa_linux_nat_target::fetch_registers.
4955
4956 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4957
4958 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
4959 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
4960 (AARCH64_DWARF_SVE_FFR): Likewise.
4961 (AARCH64_DWARF_SVE_P0): Likewise.
4962 (AARCH64_DWARF_SVE_Z0): Likewise.
4963
4964 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4965
4966 * common/common-regcache.h (raw_compare): New function.
4967 * regcache.c (regcache::raw_compare): Likewise.
4968 * regcache.h (regcache::raw_compare): New declaration.
4969
4970 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4971
4972 * common/common-regcache.h (reg_buffer_common): New structure.
4973 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
4974 (reg_buffer::raw_supply): Likewise.
4975 (reg_buffer::raw_supply_integer): Likewise.
4976 (reg_buffer::raw_supply_zeroed): Likewise.
4977 (reg_buffer::raw_collect): Likewise.
4978 (reg_buffer::raw_collect_integer): Likewise.
4979 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
4980 (reg_buffer::raw_supply): Likewise.
4981 (reg_buffer::raw_supply_integer): Likewise.
4982 (reg_buffer::raw_supply_zeroed): Likewise.
4983 (reg_buffer::raw_collect): Likewise.
4984 (reg_buffer::raw_collect_integer): Likewise.
4985
4986 2018-06-10 Tom Tromey <tom@tromey.com>
4987
4988 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
4989 (class remote_state) <stop_reply_queue>: Now std::vector.
4990 (remote_state::~remote_state)
4991 (remote_target::stop_reply_queue_length): Update.
4992 (struct queue_iter_param, remove_child_of_pending_fork)
4993 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
4994 (check_pending_event_prevents_wildcard_vcont_callback)
4995 (remove_stop_reply_for_inferior)
4996 (remove_stop_reply_of_remote_state)
4997 (remote_notif_remove_once_on_match)
4998 (stop_reply_match_ptid_and_ws)
4999 (remote_kill_child_of_pending_fork): Remove.
5000 (remote_target::remove_new_fork_children)
5001 (remote_target::check_pending_events_prevent_wildcard_vcont)
5002 (remote_target::discard_pending_stop_replies)
5003 (remote_target::discard_pending_stop_replies_in_queue)
5004 (remote_target::remote_notif_remove_queued_reply)
5005 (remote_target::queued_stop_reply)
5006 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5007 (remote_target::wait, remote_target::kill_new_fork_children)
5008 (remote_target::async): Update.
5009
5010 2018-06-10 Tom Tromey <tom@tromey.com>
5011
5012 * record-full.c (record_full_arch_list_cleanups): Remove.
5013 (record_full_message): Use try/catch.
5014 (record_full_wait_cleanups): Remove.
5015 (record_full_wait_1): Use try/catch.
5016 (record_full_restore): Likewise.
5017
5018 2018-06-10 Tom Tromey <tom@tromey.com>
5019
5020 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5021 declare VEC. Add constructor.
5022 <in_target_beneath>: Now bool.
5023 (record_full_breakpoints): Now a std::vector, static.
5024 (record_full_sync_record_breakpoints)
5025 (record_full_init_record_breakpoints)
5026 (record_full_target::insert_breakpoint)
5027 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5028
5029 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5030
5031 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5032 * serial.c (serial_interface_lookup): Remove struct keyword.
5033
5034 2018-06-10 Tom Tromey <tom@tromey.com>
5035
5036 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5037 method.
5038 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5039 a method.
5040 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5041 method.
5042 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5043 "beneath" as a method.
5044 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5045 Use "beneath" as a method.
5046
5047 2018-06-10 Tom Tromey <tom@tromey.com>
5048
5049 * tracefile.c (struct trace_file_writer_deleter): New.
5050 <operator()>: Rename from trace_file_writer_xfree.
5051 (trace_file_writer_up): New typedef.
5052 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5053
5054 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5055
5056 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5057 <m_registers, m_register_status>: Change type to
5058 std::unique_ptr.
5059 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5060 XCNEWVEC.
5061
5062 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5063
5064 * common/common-regcache.h (enum register_status): Add
5065 underlying type "signed char".
5066 * regcache.h (reg_buffer) <m_register_status>: Change type to
5067 register_status *.
5068 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5069 register_status instead of signed char.
5070 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5071 (reg_buffer::get_register_status): Remove cast.
5072 (readable_regcache::raw_read): Remove cast.
5073 (readable_regcache::cooked_read): Remove cast.
5074
5075 2018-06-09 Tom Tromey <tom@tromey.com>
5076
5077 * source.c (reverse_search_command, forward_search_command): Use
5078 scoped_fd.
5079
5080 2018-06-09 Tom Tromey <tom@tromey.com>
5081
5082 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5083 (serial_ops_list): Now static, std::vector.
5084 (serial_interface_lookup, serial_add_interface): Update.
5085
5086 2018-06-09 Tom Tromey <tom@tromey.com>
5087
5088 * dwarf2read.c (process_cu_includes): Update.
5089 (process_full_comp_unit): Update.
5090 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5091 std::vector.
5092
5093 2018-06-08 Paul Koning <paul_koning@dell.com>
5094
5095 PR gdb/23252
5096
5097 * python/python.c (do_start_initialization):
5098 Avoid call to internal Python API.
5099 (init__gdb_module): New function.
5100
5101 2018-06-08 Gary Benson <gbenson@redhat.com>
5102
5103 * linux-thread-db.c (valprint.h): New include.
5104 (struct check_thread_db_info): New structure.
5105 (check_thread_db_on_load, tdb_testinfo): New static globals.
5106 (check_thread_db, check_thread_db_callback): New functions.
5107 (try_thread_db_load_1): Run integrity checks if requested.
5108 (maintenance_check_libthread_db): New function.
5109 (_initialize_thread_db): Register "maint check libthread-db"
5110 and "maint set/show check-libthread-db".
5111 * NEWS: Mention the above new commands.
5112
5113 2018-06-08 Tom Tromey <tom@tromey.com>
5114
5115 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5116 now a method.
5117
5118 2018-06-08 Tom Tromey <tom@tromey.com>
5119
5120 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5121
5122 2018-06-08 Tom Tromey <tom@tromey.com>
5123
5124 * common/btrace-common.h (struct btrace_data): Add constructor,
5125 destructor, move assignment operator.
5126 <empty, clear, fini>: New methods.
5127 <format>: Initialize.
5128 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5129 (btrace_data_empty): Don't declare.
5130 * common/btrace-common.c (btrace_data_init): Remove.
5131 (btrace_data::fini): Rename from btrace_data_fini.
5132 (btrace_data::empty): Rename from btrace_data_empty.
5133 (btrace_data::clear): Rename from btrace_data_clear. Return
5134 bool.
5135 * btrace.h (make_cleanup_btrace_data): Don't declare.
5136 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5137 (parse_xml_btrace): Update.
5138 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5139 (maint_btrace_clear_packet_history_cmd): Update.
5140
5141 2018-06-07 Pedro Alves <palves@redhat.com>
5142
5143 * target.h (target_ops) <beneath>: Now a method. All references
5144 updated.
5145 (class target_stack): New.
5146 * target.c (g_target_stack): New.
5147 (g_current_top_target): Delete.
5148 (current_top_target): Get the top target out of g_target_stack.
5149 (target_stack::push, target_stack::unpush): New.
5150 (push_target, unpush_target): Reimplement.
5151 (target_is_pushed): Reimplement in terms of g_target_stack.
5152 (target_ops::beneath, target_stack::find_beneath): New.
5153
5154 2018-06-07 Pedro Alves <palves@redhat.com>
5155
5156 * target.h (find_target_beneath): Delete declaration.
5157 * target.c (find_target_beneath): Delete definition.
5158 * aix-thread.c: All callers of find_target_beneath adjusted to
5159 call target_ops::beneath instead.
5160 * bsd-uthread.c: Likewise.
5161 * linux-thread-db.c: Likewise.
5162 * ravenscar-thread.c: Likewise.
5163 * sol-thread.c: Likewise.
5164 * spu-multiarch.c: Likewise.
5165
5166 2018-06-07 Pedro Alves <palves@redhat.com>
5167
5168 * target.h (target_ops) <beneath>: Now a method. All references
5169 updated.
5170 (target_ops) <m_beneath>: New.
5171 * target.c (target_ops::beneath): New.
5172 * corelow.c: Adjust all references to target_ops::beneath.
5173 * linux-thread-db.c: Likewise.
5174 * make-target-delegates: Likewise.
5175 * record-btrace.c: Likewise.
5176 * record-full.c: Likewise.
5177 * remote.c: Likewise.
5178 * target.c: Likewise.
5179 * target-delegates.c: Regenerate.
5180
5181 2018-06-07 Pedro Alves <palves@redhat.com>
5182
5183 * target.h (target_stack): Delete.
5184 (current_top_target): Declare function.
5185 * target.c (target_stack): Delete.
5186 (g_current_top_target): New.
5187 (current_top_target): New function.
5188 * auxv.c: Use current_top_target instead of target_stack
5189 throughout.
5190 * avr-tdep.c: Likewise.
5191 * breakpoint.c: Likewise.
5192 * corefile.c: Likewise.
5193 * elfread.c: Likewise.
5194 * eval.c: Likewise.
5195 * exceptions.c: Likewise.
5196 * frame.c: Likewise.
5197 * gdbarch-selftests.c: Likewise.
5198 * gnu-v3-abi.c: Likewise.
5199 * ia64-tdep.c: Likewise.
5200 * ia64-vms-tdep.c: Likewise.
5201 * infcall.c: Likewise.
5202 * infcmd.c: Likewise.
5203 * infrun.c: Likewise.
5204 * linespec.c: Likewise.
5205 * linux-tdep.c: Likewise.
5206 * minsyms.c: Likewise.
5207 * ppc-linux-nat.c: Likewise.
5208 * ppc-linux-tdep.c: Likewise.
5209 * procfs.c: Likewise.
5210 * regcache.c: Likewise.
5211 * remote.c: Likewise.
5212 * rs6000-tdep.c: Likewise.
5213 * s390-linux-nat.c: Likewise.
5214 * s390-tdep.c: Likewise.
5215 * solib-aix.c: Likewise.
5216 * solib-darwin.c: Likewise.
5217 * solib-dsbt.c: Likewise.
5218 * solib-spu.c: Likewise.
5219 * solib-svr4.c: Likewise.
5220 * solib-target.c: Likewise.
5221 * sparc-tdep.c: Likewise.
5222 * sparc64-tdep.c: Likewise.
5223 * spu-tdep.c: Likewise.
5224 * symfile.c: Likewise.
5225 * symtab.c: Likewise.
5226 * target-descriptions.c: Likewise.
5227 * target-memory.c: Likewise.
5228 * target.c: Likewise.
5229 * target.h: Likewise.
5230 * tracefile-tfile.c: Likewise.
5231 * tracepoint.c: Likewise.
5232 * valops.c: Likewise.
5233 * valprint.c: Likewise.
5234 * value.c: Likewise.
5235 * windows-tdep.c: Likewise.
5236 * mi/mi-main.c: Likewise.
5237
5238 2018-06-07 Tom Tromey <tom@tromey.com>
5239
5240 * valprint.h (build_address_symbolic): Declare.
5241 * printcmd.c (print_address_symbolic): Update.
5242 (build_address_symbolic): Change "name" and "filename" to
5243 std::string.
5244 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5245 Update.
5246 * defs.h (build_address_symbolic): Remove declaration.
5247
5248 2018-06-07 Alan Hayward <alan.hayward@arm.com>
5249
5250 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5251 (aarch64_vnv_type): Add function.
5252 (aarch64_pseudo_register_name): Add V regs for SVE.
5253 (aarch64_pseudo_register_type): Likewise.
5254 (aarch64_pseudo_register_reggroup_p): Likewise.
5255 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5256 (aarch64_pseudo_read_value): Add V regs for SVE.
5257 (aarch64_pseudo_write_2): Use V0 offset for SVE
5258 (aarch64_pseudo_write): Add V regs for SVE.
5259 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5260
5261 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5262
5263 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5264 (sve_vl_from_vq): Likewise.
5265
5266 2018-06-05 Tom Tromey <tom@tromey.com>
5267
5268 * cli/cli-cmds.c (show_version): Update.
5269 * top.c (print_gdb_version): Add "interactive" parameter.
5270 Update.
5271 * main.c (captured_main_1): Update.
5272 * top.h (print_gdb_version): Add "interactive" parameter and a
5273 comment.
5274
5275 2018-06-05 David Malcolm <dmalcolm@redhat.com>
5276
5277 * common/enum-flags.h: Add trailing semicolon to example in
5278 comment.
5279
5280 2018-06-05 Tom Tromey <tom@tromey.com>
5281
5282 PR cli/12326:
5283 * NEWS: Add entry about pager.
5284 * utils.c (pagination_disabled_for_command): New global.
5285 (prompt_for_continue): Allow "c" response to prompt.
5286 (reinitialize_more_filter): Clear
5287 pagination_disabled_for_command.
5288 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5289
5290 2018-06-04 Tom Tromey <tom@tromey.com>
5291
5292 * ada-lang.h (ada_lookup_symbol_list): Update.
5293 * ada-lang.c (resolve_subexp): Update.
5294 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5295 parameter.
5296 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5297 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5298 results parameter to std::vector.
5299 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5300 Update.
5301 * ada-exp.y (block_lookup): Update.
5302 (select_possible_type_sym): Change type of syms. Remove nsyms
5303 parameter.
5304 (write_var_or_type, write_name_assoc): Update.
5305
5306 2018-06-04 Joel Brobecker <brobecker@adacore.com>
5307
5308 * windows-nat.c (windows_nat_target::xfer_partial): Return
5309 TARGET_XFER_E_IO if we need to delegate to the target beneath
5310 but BENEATH is NULL.
5311
5312 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5313
5314 * Makefile.in (config.status): Add configure.nat as a
5315 dependency.
5316
5317 2018-06-04 Tom Tromey <tom@tromey.com>
5318
5319 * cp-name-parser.y (cpname_state): Add method declarations.
5320 (HANDLE_QUAL): Update.
5321 (cpname_state::d_grab, cpname_state::fill_comp)
5322 (cpname_state::make_operator, cpname_state::make_dtor)
5323 (cpname_state::make_builtin_type, cpname_state::make_name)
5324 (cpname_state::d_qualify, cpname_state::d_int_type)
5325 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5326 (%union): Move earlier.
5327
5328 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5329
5330 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5331
5332 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5333
5334 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5335 (aarch64_pseudo_write_1): Likewise.
5336 (aarch64_pseudo_read_value): Use helper.
5337 (aarch64_pseudo_write): Likewise.
5338
5339 2018-06-04 Pedro Alves <palves@redhat.com>
5340
5341 * darwin-nat.c (darwin_ops): Delete.
5342 (darwin_attach_pid): Use get_native_target.
5343
5344 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5345
5346 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5347 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5348
5349 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5350
5351 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5352 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5353 (aarch64_gdbarch_init): Check for SVE.
5354 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5355
5356 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5357
5358 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5359 * aarch64-tdep.h (aarch64_read_description): Likewise.
5360 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5361 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5362 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5363 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5364 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5365
5366 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5367
5368 * value.c (value_fetch_lazy_bitfield): New.
5369 (value_fetch_lazy_memory): New.
5370 (value_fetch_lazy_register): New.
5371 (value_fetch_lazy): Factor out to smaller functions.
5372
5373 2018-06-01 Tom Tromey <tom@tromey.com>
5374
5375 * cp-name-parser.y (backslashable, represented): Now const.
5376
5377 2018-06-01 Tom Tromey <tom@tromey.com>
5378
5379 * cp-name-parser.y: Include parser-defs.h.
5380 (parser_fprintf): Remove declaration.
5381
5382 2018-06-01 Tom Tromey <tom@tromey.com>
5383
5384 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5385 %parse-param.
5386 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5387 (global_result): Remove globals.
5388 (struct cpname_state): New.
5389 (yyparse): Don't declare.
5390 (yylex, yyerror): Move declarations after %union.
5391 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5392 (make_name): Add state parameter.
5393 Update all callers.
5394 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5395 parameter.
5396 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5397 Update.
5398 (yylex): Add lvalp, state parameters.
5399 (yyerror): Add state parameter.
5400 (cp_demangled_name_to_comp): Update.
5401
5402 2018-06-01 Tom Tromey <tom@tromey.com>
5403
5404 * cp-name-parser.y (parser_fprintf): Declare.
5405 (GDB_YY_REMAP_PREFIX): Define.
5406 Include yy-remap.h. Don't redefine yy* identifiers.
5407
5408 2018-06-01 Tom Tromey <tom@tromey.com>
5409
5410 * python/py-type.c (typy_legacy_template_argument): Update.
5411 * cp-support.h (cp_demangled_name_to_comp): Update.
5412 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5413 parameter to be a "std::string *".
5414 (main): Update.
5415
5416 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5417
5418 * ada-lex.l: Include "diagnostics.h" instead of
5419 "common/diagnostics.h".
5420 * unittests/environ-selftests.c: Likewise.
5421 * common/diagnostics.h: Moved to ../include.
5422
5423 2018-06-01 Joel Brobecker <brobecker@adacore.com>
5424
5425 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5426 to language_mode_manual while calling breakpoint_re_set_one.
5427
5428 2018-06-01 Tom Tromey <tom@tromey.com>
5429
5430 * valops.c (value_cast_structs, destructor_name_p): Update.
5431 * symtab.c (gdb_mangle_name): Update.
5432 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5433 Update.
5434 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5435 (pascal_object_print_value_fields, pascal_object_print_value):
5436 Update.
5437 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5438 * linespec.c (find_methods): Update.
5439 * gdbtypes.h (type_name_no_tag): Remove.
5440 (type_name_or_error): Rename from type_name_no_tag_or_error.
5441 * gdbtypes.c (type_name_no_tag): Remove.
5442 (type_name_or_error): Rename from type_name_no_tag_or_error.
5443 (lookup_struct_elt_type, check_typedef): Update.
5444 * expprint.c (print_subexp_standard): Update.
5445 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5446 * d-namespace.c (d_lookup_nested_symbol): Update.
5447 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5448 (cp_print_class_member): Update.
5449 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5450 * completer.c (add_struct_fields): Update.
5451 * c-typeprint.c (cp_type_print_derivation_info)
5452 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5453 Update.
5454 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5455 (ada_prefer_type, ada_is_exception_sym): Update.
5456
5457 2018-06-01 Tom Tromey <tom@tromey.com>
5458
5459 * valops.c (enum_constant_from_type, value_namespace_elt)
5460 (value_maybe_namespace_elt): Update.
5461 * valarith.c (find_size_for_pointer_math): Update.
5462 * target-descriptions.c (make_gdb_type): Update.
5463 * symmisc.c (print_symbol): Update.
5464 * stabsread.c (define_symbol, read_type)
5465 (complain_about_struct_wipeout, add_undefined_type)
5466 (cleanup_undefined_types_1): Update.
5467 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5468 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5469 (rust_internal_print_type, rust_composite_type)
5470 (rust_evaluate_funcall, rust_evaluate_subexp)
5471 (rust_inclusive_range_type_p): Update.
5472 * python/py-type.c (typy_get_tag): Update.
5473 * p-typeprint.c (pascal_type_print_base): Update.
5474 * mdebugread.c (parse_symbol, parse_type): Update.
5475 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5476 Update.
5477 * guile/scm-type.c (gdbscm_type_tag): Update.
5478 * go-lang.c (sixg_string_p): Update.
5479 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5480 Update.
5481 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5482 (TYPE_TAG_NAME): Remove.
5483 * gdbtypes.c (type_name_no_tag): Simplify.
5484 (check_typedef, check_types_equal, recursive_dump_type)
5485 (copy_type_recursive, arch_composite_type): Update.
5486 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5487 in summary mode when needed.
5488 * eval.c (evaluate_funcall): Update.
5489 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5490 (process_structure_scope, read_enumeration_type)
5491 (read_namespace_type, read_module_type, determine_prefix): Update.
5492 * cp-support.c (inspect_type): Update.
5493 * coffread.c (process_coff_symbol, decode_base_type): Update.
5494 * c-varobj.c (c_is_path_expr_parent): Update.
5495 * c-typeprint.c (c_type_print_base_struct_union): Update.
5496 (c_type_print_base_1): Update. Print struct/class/union/enum in
5497 summary when using C language.
5498 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5499 (gen_maybe_namespace_elt): Update.
5500 * ada-lang.c (ada_type_name): Simplify.
5501 (empty_record, ada_template_to_fixed_record_type_1)
5502 (template_to_static_fixed_type)
5503 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5504
5505 2018-06-01 Tom Tromey <tom@tromey.com>
5506
5507 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5508 c_print_type.
5509 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5510 (c_print_type): Update.
5511 (c_print_type): New overload.
5512 (c_type_print_varspec_prefix, c_type_print_args)
5513 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5514 (c_type_print_base_struct_union, c_type_print_base_1)
5515 (cp_type_print_method_args): Add "language" parameter.
5516 (c_type_print_base): Update.
5517 * c-lang.h (c_print_type): Add new overload.
5518
5519 2018-06-01 Tom Tromey <tom@tromey.com>
5520
5521 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5522 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5523
5524 2018-06-01 Alan Hayward <alan.hayward@arm.com>
5525
5526 * aarch64-tdep.c (aarch64_sve_register_names): New const
5527 var.
5528 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5529 (AARCH64_SVE_Z_REGS_NUM): New define.
5530 (AARCH64_SVE_P_REGS_NUM): Likewise.
5531 (AARCH64_SVE_NUM_REGS): Likewise.
5532
5533 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
5534
5535 * nat/linux-ptrace.h [__alpha__]
5536 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5537 definitions.
5538
5539 2018-05-31 Maciej W. Rozycki <macro@mips.com>
5540
5541 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5542 the endianness selected.
5543 * NEWS: Document `set endian auto' mode operation update.
5544
5545 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5546
5547 * Makefile.in: Add new header.
5548 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5549 (sve_vl_from_vg): Likewise.
5550 (sve_vq_from_vl): Likewise.
5551 (sve_vl_from_vq): Likewise.
5552 (sve_vq_from_vg): Likewise.
5553 (sve_vg_from_vq): Likewise.
5554 * configure.nat: Add new c file.
5555 * nat/aarch64-sve-linux-ptrace.c: New file.
5556 * nat/aarch64-sve-linux-ptrace.h: New file.
5557
5558 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5559
5560 * aarch64-linux-nat.c (aarch64_linux_read_description):
5561 Add parmeter zero.
5562 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5563 Likewise.
5564 * aarch64-tdep.c (tdesc_aarch64_list): Add.
5565 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
5566 (aarch64_gdbarch_init): Add parmeter zero.
5567 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
5568 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
5569 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
5570 parmeter.
5571 * doc/gdb.texinfo: Describe SVE feature
5572 * features/aarch64-sve.c: New file.
5573
5574 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
5575
5576 PR gdb/23210
5577 * gdbarch.sh (significant_addr_bit): Default to zero when
5578 not set by target architecture.
5579 * gdbarch.c: Re-generated.
5580 * utils.c (address_significant): Update.
5581
5582 2018-05-30 Joel Brobecker <brobecker@adacore.com>
5583
5584 * stack.c (func_command): Remove trailing newline in call to error.
5585
5586 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5587
5588 * regcache.h (regcache_raw_collect): Remove, update callers to
5589 use regcache::raw_collect.
5590 * regcache.c (regcache_raw_collect): Remove.
5591
5592 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5593
5594 * regcache.h (regcache_raw_supply): Remove, update callers to
5595 use detached_regcache::raw_supply.
5596 * regcache.c (regcache_raw_supply): Remove.
5597
5598 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5599
5600 * regcache.h (regcache_cooked_write_part): Remove, update
5601 callers to use regcache::cooked_write_part.
5602 * regcache.c (regcache_cooked_write_part): Remove.
5603
5604 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5605
5606 * regcache.h (regcache_cooked_read_part): Remove, update callers
5607 to use readable_regcache::cooked_read_part.
5608 * regcache.c (regcache_cooked_read_part): Remove.
5609
5610 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5611
5612 * regcache.h (regcache_cooked_read_value): Remove, update
5613 callers to use readable_regcache::cooked_read_value.
5614 * regcache.c (regcache_cooked_read_value): Remove.
5615
5616 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5617
5618 * regcache.h (regcache_cooked_write): Remove, update callers to
5619 use regcache::cooked_write.
5620 * regcache.c (regcache_cooked_write): Remove.
5621
5622 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5623
5624 * regcache.h (regcache_invalidate): Remove, update callers to
5625 use detached_regcache::invalidate instead.
5626 * regcache.c (regcache_invalidate): Remove.
5627
5628 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5629
5630 * regcache.h (regcache_raw_write_part): Remove, update callers
5631 to use regcache::raw_write_part instead.
5632 * regcache.c (regcache_raw_write_part): Remove.
5633
5634 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5635
5636 * regcache.h (regcache_raw_read_part): Remove, update callers to
5637 use readable_regcache::raw_read_part instead.
5638 * regcache.c (regcache_raw_read_part): Remove.
5639
5640 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5641
5642 * regcache.h (regcache_cooked_read): Remove, update callers to
5643 use readable_regcache::cooked_read instead.
5644 * regcache.c (regcache_cooked_read): Remove.
5645
5646 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5647
5648 * regcache.h (regcache_raw_write): Remove, update callers to use
5649 regcache::raw_write instead.
5650 * regcache.c (regcache_raw_write): Remove.
5651
5652 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5653
5654 * regcache.h (regcache_raw_read): Remove, update callers to use
5655 readable_regcache::raw_read instead.
5656 * regcache.c (regcache_raw_read): Remove.
5657
5658 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5659
5660 * regcache.h (regcache_raw_update): Remove, update callers to
5661 use readable_regcache::raw_update instead.
5662 * regcache.c (regcache_raw_update): Remove.
5663
5664 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5665
5666 * regcache.h (regcache_register_status): Remove, update callers
5667 to use reg_buffer::get_register_status directly instead.
5668 * regcache.c (regcache_register_status): Remove.
5669
5670 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5671
5672 * regcache.h (regcache_get_ptid): Remove, update all callers to
5673 call regcache::ptid instead.
5674 * regcache.c (regcache_get_ptid): Remove.
5675
5676 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5677
5678 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
5679
5680 2018-05-30 Pedro Alves <palves@redhat.com>
5681
5682 * common/common-exceptions.h (exception_rethrow): Use
5683 ATTRIBUTE_NORETURN.
5684
5685 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
5686
5687 * breakpoint.c (print_solib_event, check_status_catch_solib):
5688 Remove struct keyword in range-based for loops.
5689 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
5690 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
5691 Likewise.
5692 * linespec.c (find_superclass_methods, search_minsyms_for_name):
5693 Likewise.
5694 * symfile.c (addr_info_make_relative): Likewise.
5695 * thread.c (value_in_thread_stack_temporaries): Likewise.
5696
5697 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
5698
5699 PR gdb/16841
5700 * valops.c (value_struct_elt_for_reference): Call check_typedef on
5701 aggregate type to get its real type before accessing it.
5702
5703 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
5704
5705 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
5706 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
5707 * coff-pe-read.c (add_pe_forwarded_sym): Replace
5708 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
5709 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
5710 * jit.c (jit_breakpoint_re_set_internal): Likewise.
5711 * printcmd.c (info_address_command): Likewise.
5712
5713 2018-05-29 Tom Tromey <tom@tromey.com>
5714
5715 * windows-nat.c (handle_exception): Update fall-through comment.
5716
5717 2018-05-29 Tom Tromey <tom@tromey.com>
5718
5719 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
5720 (struct program_space) <added_solibs>: Now a std::vector.
5721 * breakpoint.c (print_solib_event): Update.
5722 (check_status_catch_solib): Update.
5723 * progspace.c (clear_program_space_solib_cache): Update.
5724 * solib.c (update_solib_list): Update.
5725
5726 2018-05-29 Tom Tromey <tom@tromey.com>
5727
5728 * python/py-type.c (typy_richcompare): Update.
5729 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
5730 * gdbtypes.h (types_deeply_equal): Return bool.
5731 (types_equal): Likewise.
5732 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
5733 declare VEC.
5734 (check_types_equal): Change worklist to std::vector. Return
5735 bool.
5736 (struct type_equality_entry): Add constructor.
5737 (compare_maybe_null_strings): Return bool.
5738 (check_types_worklist): Return bool. Change worklist to
5739 std::vector.
5740 (types_deeply_equal): Use std::vector.
5741 (types_equal): Return bool.
5742 (compare_maybe_null_strings): Simplify.
5743
5744 2018-05-29 Tom Tromey <tom@tromey.com>
5745
5746 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
5747
5748 2018-05-29 Tom Tromey <tom@tromey.com>
5749
5750 * objc-lang.h: Don't include cp-support.h.
5751 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
5752 declare VEC.
5753
5754 2018-05-27 Tom Tromey <tom@tromey.com>
5755
5756 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
5757
5758 2018-05-25 Tom Tromey <tom@tromey.com>
5759
5760 * value.c (value::location): Initialize.
5761
5762 2018-05-25 Tom Tromey <tom@tromey.com>
5763
5764 * dbxread.c (init_bincl_list): Remove.
5765 (bincl_list): Now a std::vector.
5766 (bincls_allocated, next_bincl): Remove.
5767 (free_bincl_list, do_free_bincl_list_cleanup)
5768 (make_cleanup_free_bincl_list): Remove.
5769 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
5770 unique_xmalloc_ptr.
5771 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
5772 (struct header_file_location): Add constructor.
5773 (add_bincl_to_list): Remove.
5774
5775 2018-05-25 Tom Tromey <tom@tromey.com>
5776
5777 * tui/tui.c (tui_enable): Update.
5778 * mi/mi-interp.c (mi_interp::init): Update.
5779 * interps.h (class interp) <name>: New method.
5780 <m_name>: Rename from name.
5781 (~scoped_restore_interp): Update.
5782 * interps.c (interp::interp): Update.
5783 (interp_add, interp_set, interp_lookup_existing)
5784 (current_interp_named_p): Update.
5785
5786 2018-05-25 Tom Tromey <tom@tromey.com>
5787
5788 * interps.c (interp_name): Remove.
5789 * mi/mi-interp.c (mi_interp::init): Update.
5790 * interps.h (interp_name): Remove.
5791 (~scoped_restore_interp): Update.
5792 * tui/tui.c (tui_enable): Update.
5793
5794 2018-05-25 Tom Tromey <tom@tromey.com>
5795
5796 * utils.c (fputs_maybe_filtered): Update.
5797 * linespec.c (decode_line_full): Update.
5798 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
5799 (mi_print_breakpoint_for_event, mi_solib_loaded)
5800 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
5801 (mi_user_selected_context_changed): Update.
5802 * mi/mi-main.c (mi_execute_command): Update.
5803 * cli/cli-script.c (execute_control_command): Update.
5804 * python/python.c (execute_gdb_command): Update.
5805 * solib.c (info_sharedlibrary_command): Update.
5806 * interps.c (interp_ui_out): Remove.
5807 * interps.h (interp_ui_out): Remove.
5808
5809 2018-05-25 Tom Tromey <tom@tromey.com>
5810
5811 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
5812 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
5813 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
5814
5815 2018-05-25 Tom Tromey <tom@tromey.com>
5816
5817 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
5818 * interps.c (interp_exec): Use scoped_restore.
5819
5820 2018-05-25 Tom Tromey <tom@tromey.com>
5821
5822 * remote.c (remote_target::remote_file_get): Use
5823 gdb::byte_vector.
5824 (remote_target::remote_file_put): Likewise.
5825
5826 2018-05-25 Tom Tromey <tom@tromey.com>
5827
5828 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
5829 a std::string.
5830 (get_pe_section_index, add_pe_exported_sym): Update.
5831 (read_pe_exported_syms): Use gdb::def_vector.
5832
5833 2018-05-25 Tom Tromey <tom@tromey.com>
5834
5835 * frame.c (remove_prev_frame): Remove.
5836 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
5837
5838 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5839
5840 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
5841 Remove prototypes.
5842 * mips-linux-nat.c (supply_fpregset): Always call
5843 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
5844 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
5845 `mips_fill_fpregset'.
5846 * mips-linux-tdep.c (mips_supply_fpregset)
5847 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
5848 (mips_fill_fpregset_wrapper): Remove functions.
5849 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
5850 (mips_linux_fpregset): Remove variable.
5851 (mips_linux_iterate_over_regset_sections): Use
5852 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
5853 (mips_linux_o32_sigframe_init): Remove comment.
5854
5855 2018-05-25 Pedro Alves <palves@redhat.com>
5856
5857 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
5858 (struct readahead_cache, struct packet_reg, struct
5859 remote_arch_state, class remote_state): Move higher up in the
5860 file.
5861 (remote_target::m_remote_state): Now an object instead of a pointer.
5862 (remote_target::get_remote_state): Adjust.
5863
5864 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5865
5866 * stack.c (select_and_print_frame): Delete.
5867 (struct function_bounds): Move struct within function.
5868 (func_command): Most content moved into new function
5869 find_frame_for_function, use new function, print result, add
5870 function comment.
5871 (find_frame_for_function): New function, now returns a result.
5872
5873 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5874
5875 * stack.c (iterate_over_block_arg_vars): Fix comment.
5876 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
5877
5878 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5879
5880 PR gdb/23203
5881 * frame.c
5882 (scoped_restore_selected_frame::scoped_restore_selected_frame):
5883 Define.
5884 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
5885 Define.
5886 * frame.h (class scoped_restore_selected_frame): New class.
5887 * stack.c (print_frame_local_vars): Remove catching and rethrowing
5888 of any exception, use scoped_restore_selected_frame to restore the
5889 frame instead.
5890
5891 2018-05-24 Pedro Alves <palves@redhat.com>
5892
5893 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
5894 override.
5895
5896 2018-05-23 Tom Tromey <tom@tromey.com>
5897
5898 * complaints.c (struct complaints): Remove.
5899 (symfile_complaint_book): Remove.
5900 (series): New global.
5901 (complaint_internal): Update.
5902 (clear_complaints): Update.
5903
5904 2018-05-23 Tom Tromey <tom@tromey.com>
5905
5906 * complaints.c (counters): New global.
5907 (struct complain): Remove.
5908 (struct complaints) <root>: Remove.
5909 (complaint_sentinel): Remove.
5910 (symfile_complaint_book): Update.
5911 (find_complaint) Remove.
5912 (complaint_internal, clear_complaints): Update.
5913
5914 2018-05-23 Tom Tromey <tom@tromey.com>
5915
5916 * complaints.c (struct complain) <file, line>: Remove.
5917 (find_complaint): Remove file, line parameters.
5918 (complaint_internal): Update.
5919
5920 2018-05-23 Tom Tromey <tom@tromey.com>
5921
5922 * complaints.c (vcomplaint): Remove.
5923 (complaint_internal) Merge in contents of vcomplaint.
5924
5925 2018-05-23 Tom Tromey <tom@tromey.com>
5926
5927 * complaints.c (struct complaints) <explanation>: Remove.
5928 (symfile_explanations): Remove.
5929 (symfile_complaint_book): Update.
5930 (vcomplaint): Update.
5931 (struct explanation): Remove.
5932
5933 2018-05-23 Tom Tromey <tom@tromey.com>
5934
5935 * complaints.c (symfile_complaints): Remove.
5936 (complaint_internal): Remove "complaints" parameter.
5937 (clear_complaints, vcomplaint): Remove "c" parameter.
5938 (get_complaints): Remove.
5939 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
5940 (dwarf2_debug_line_missing_file_complaint)
5941 (dwarf2_debug_line_missing_end_sequence_complaint)
5942 (dwarf2_complex_location_expr_complaint)
5943 (dwarf2_const_value_length_mismatch_complaint)
5944 (dwarf2_section_buffer_overflow_complaint)
5945 (dwarf2_macro_malformed_definition_complaint)
5946 (dwarf2_invalid_attrib_class_complaint)
5947 (create_addrmap_from_index, dw2_symtab_iter_next)
5948 (dw2_expand_marked_cus)
5949 (dw2_debug_names_iterator::find_vec_in_debug_names)
5950 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
5951 (create_debug_type_hash_table, init_cutu_and_read_dies)
5952 (partial_die_parent_scope, add_partial_enumeration)
5953 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
5954 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
5955 (read_import_statement, read_file_scope, create_dwo_cu_reader)
5956 (create_cus_hash_table, create_dwp_hash_table)
5957 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5958 (dwarf2_rnglists_process, dwarf2_ranges_process)
5959 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
5960 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
5961 (handle_struct_member_die, process_structure_scope)
5962 (read_array_type, read_common_block, read_module_type)
5963 (read_tag_pointer_type, read_typedef, read_base_type)
5964 (read_subrange_type, load_partial_dies, partial_die_info::read)
5965 (partial_die_info::read, partial_die_info::read)
5966 (partial_die_info::read, read_checked_initial_length_and_offset)
5967 (dwarf2_string_attr, read_formatted_entries)
5968 (dwarf_decode_line_header)
5969 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5970 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
5971 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
5972 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5973 (get_signatured_type, get_DW_AT_signature_type)
5974 (decode_locdesc, file_file_name, consume_improper_spaces)
5975 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
5976 (dwarf_decode_macro_bytes, dwarf_decode_macros)
5977 (dwarf2_symbol_mark_computed, set_die_type)
5978 (read_attribute_value): Update.
5979 * stap-probe.c (handle_stap_probe, get_stap_base_address):
5980 Update.
5981 * dbxread.c (unknown_symtype_complaint)
5982 (lbrac_mismatch_complaint, repeated_header_complaint)
5983 (set_namestring, function_outside_compilation_unit_complaint)
5984 (read_dbx_symtab, process_one_symbol): Update.
5985 * gdbtypes.c (stub_noname_complaint): Update.
5986 * windows-nat.c (handle_unload_dll): Update.
5987 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
5988 (decode_base_type): Update.
5989 * xcoffread.c (bf_notfound_complaint, ef_complaint)
5990 (eb_complaint, record_include_begin, record_include_end)
5991 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
5992 (process_xcoff_symbol, read_symbol)
5993 (function_outside_compilation_unit_complaint)
5994 (scan_xcoff_symtab): Update.
5995 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
5996 * buildsym.c (finish_block_internal, make_blockvector)
5997 (end_symtab_get_static_block, augment_type_symtab): Update.
5998 * dtrace-probe.c (dtrace_process_dof)
5999 (dtrace_static_probe_ops::get_probes): Update.
6000 * complaints.h (struct complaint): Don't declare.
6001 (symfile_complaints): Remove.
6002 (complaint_internal): Remove "complaints" parameter.
6003 (complaint): Likewise.
6004 (clear_complaints): Likewise.
6005 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6006 (reread_symbols): Update.
6007 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6008 (dwarf2_frame_cache, decode_frame_entry): Update.
6009 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6010 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6011 (info_selectors_command): Update.
6012 * macrotab.c (macro_include, check_for_redefinition)
6013 (macro_undef): Update.
6014 * objfiles.c (filter_overlapping_sections): Update.
6015 * stabsread.c (invalid_cpp_abbrev_complaint)
6016 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6017 (define_symbol, error_type, read_type, rs6000_builtin_type)
6018 (stabs_method_name_from_physname, read_member_functions)
6019 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6020 (attach_fields_to_type, complain_about_struct_wipeout)
6021 (read_range_type, read_args, common_block_start)
6022 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6023 Update.
6024 * mdebugread.c (index_complaint, unknown_ext_complaint)
6025 (basic_type_complaint, bad_tag_guess_complaint)
6026 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6027 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6028 (parse_procedure, parse_lines)
6029 (function_outside_compilation_unit_complaint)
6030 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6031 (bad_tag_guess_complaint, reg_value_complaint): Update.
6032 * cp-support.c (demangled_name_complaint): Update.
6033 * macroscope.c (sal_macro_scope): Update.
6034 * dwarf-index-write.c (class debug_names): Update.
6035
6036 2018-05-23 Tom Tromey <tom@tromey.com>
6037
6038 * complaints.c (clear_complaints): Remove "noisy" parameter.
6039 * complaints.h (clear_complaints): Update.
6040 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6041 (reread_symbols): Update.
6042
6043 2018-05-23 Tom Tromey <tom@tromey.com>
6044
6045 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6046 SUBSEQUENT_MESSAGE.
6047 (vcomplaint, clear_complaints): Update.
6048 (symfile_explanations): Remove some messages.
6049
6050 2018-05-23 Tom Tromey <tom@tromey.com>
6051
6052 * complaints.c (internal_complaint): Remove.
6053 * complaints.h (internal_complaint): Remove.
6054
6055 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6056
6057 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6058
6059 2018-05-22 Pedro Alves <palves@redhat.com>
6060
6061 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6062 (remote_fileio_badfd, remote_fileio_return_errno)
6063 (remote_fileio_return_success, remote_fileio_func_open)
6064 (remote_fileio_func_open, remote_fileio_func_close)
6065 (remote_fileio_func_read, remote_fileio_func_write)
6066 (remote_fileio_func_lseek, remote_fileio_func_rename)
6067 (remote_fileio_func_unlink, remote_fileio_func_stat)
6068 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6069 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6070 remote_target parameter.
6071 (remote_fio_func_map) <func>: Add remote_target parameter.
6072 (do_remote_fileio_request, remote_fileio_request):
6073 * remote-fileio.h (remote_fileio_request):
6074 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6075 remote_target parameter.
6076 (remote_notif_process, handle_notification): Adjust to pass down
6077 the remote.
6078 (remote_notif_state_allocate): Add remote_target parameter. Save
6079 it.
6080 * remote-notif.h (struct remote_target): Forward declare.
6081 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6082 remote_target parameter.
6083 (struct remote_notif_state) <remote>: New field.
6084 (remote_notif_ack, remote_notif_parse): Add remote_target
6085 parameter.
6086 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6087 remote_target parameter.
6088 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6089 (threads_listing_context, rmt_thread_action, protocol_feature)
6090 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6091 (packet_result, struct threads_listing_context, remote_state):
6092 Move definitions and declarations higher up.
6093 (remote_target) <~remote_target>: Declare.
6094 (remote_download_command_source, remote_file_put, remote_file_get)
6095 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6096 (remote_hostio_pread_vFile, remote_hostio_send_command)
6097 (remote_hostio_set_filesystem, remote_hostio_open)
6098 (remote_hostio_close, remote_hostio_unlink, remote_state)
6099 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6100 (get_memory_write_packet_size, get_memory_read_packet_size)
6101 (append_pending_thread_resumptions, remote_detach_1)
6102 (append_resumption, remote_resume_with_vcont)
6103 (add_current_inferior_and_thread, wait_ns, wait_as)
6104 (process_stop_reply, remote_notice_new_inferior)
6105 (process_initial_stop_replies, remote_add_thread)
6106 (btrace_sync_conf, remote_btrace_maybe_reopen)
6107 (remove_new_fork_children, kill_new_fork_children)
6108 (discard_pending_stop_replies, stop_reply_queue_length)
6109 (check_pending_events_prevent_wildcard_vcont)
6110 (discard_pending_stop_replies_in_queue, stop_reply)
6111 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6112 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6113 (remote_interrupt_as, remote_interrupt_ns)
6114 (remote_get_noisy_reply, remote_query_attached)
6115 (remote_add_inferior, remote_current_thread, get_current_thread)
6116 (set_thread, set_general_thread, set_continue_thread)
6117 (set_general_process, write_ptid)
6118 (remote_unpack_thread_info_response, remote_get_threadinfo)
6119 (parse_threadlist_response, remote_get_threadlist)
6120 (remote_threadlist_iterator, remote_get_threads_with_ql)
6121 (remote_get_threads_with_qxfer)
6122 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6123 (get_offsets, remote_check_symbols, remote_supported_packet)
6124 (remote_query_supported, remote_packet_size)
6125 (remote_serial_quit_handler, remote_detach_pid)
6126 (remote_vcont_probe, remote_resume_with_hc)
6127 (send_interrupt_sequence, interrupt_query)
6128 (remote_notif_get_pending_events, fetch_register_using_p)
6129 (send_g_packet, process_g_packet, fetch_registers_using_g)
6130 (store_register_using_P, store_registers_using_G)
6131 (set_remote_traceframe, check_binary_download)
6132 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6133 (remote_xfer_live_readonly_partial, remote_read_bytes)
6134 (remote_send_printf, remote_flash_write, readchar)
6135 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6136 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6137 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6138 (extended_remote_disable_randomization, extended_remote_run)
6139 (send_environment_packet, extended_remote_environment_support)
6140 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6141 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6142 (packet_command): Now methods of ...
6143 (remote_target): ... this class.
6144 (m_remote_state) <remote_target>: New field.
6145 (struct remote_state) <stop_reply_queue,
6146 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6147 fields.
6148 (remote_state::remote_state): Allocate stop_reply_queue.
6149 (remote_state): Delete global.
6150 (get_remote_state_raw): Delete.
6151 (remote_target::get_remote_state): Allocate m_remote_state on
6152 demand.
6153 (get_current_remote_target): New.
6154 (remote_ops, extended_remote_ops): Delete.
6155 (wait_forever_enabled_p, remote_async_inferior_event_token):
6156 Delete, moved to struct remote_state.
6157 (remote_target::close): Delete self. Destruction bits split to
6158 ...
6159 (remote_target::~remote_target): ... this.
6160 (show_memory_packet_size): Adjust to use
6161 get_current_remote_target.
6162 (struct protocol_feature) <func>: Add remote_target parameter.
6163 All callers adjusted.
6164 (curr_quit_handler_target): New.
6165 (remote_serial_quit_handler): Reimplement.
6166 (remote_target::open_1): Adjust to use get_current_remote_target.
6167 Heap-allocate remote_target/extended_remote_target instances.
6168 (vcont_builder::vcont_builder): Add remote_target parameter, and
6169 save it in m_remote. All callers adjusted.
6170 (vcont_builder::m_remote): New field.
6171 (vcont_builder::restart, vcont_builder::flush)
6172 (vcont_builder::push_action): Use it.
6173 (remote_target::commit_resume): Use it.
6174 (struct queue_iter_param) <remote>: New field.
6175 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6176 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6177 (check_pending_event_prevents_wildcard_vcont_callback)
6178 (remote_target::check_pending_events_prevent_wildcard_vcont)
6179 (remote_target::discard_pending_stop_replies)
6180 (remote_target::discard_pending_stop_replies_in_queue)
6181 (remote_target::remote_notif_remove_queued_reply): Fill in
6182 'remote' field.
6183 (remote_notif_get_pending_events): New.
6184 (remote_target::readchar, remote_target::remote_serial_write):
6185 Save/restore curr_quit_handler_target.
6186 (putpkt): New.
6187 (kill_new_fork_children): Fill in 'remote' field.
6188 (packet_command): Use get_current_remote_target, defer to
6189 remote_target method of same name.
6190 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6191 parameter, and save it in m_remote. All callers adjusted.
6192 (scoped_remote_fd::release): Use m_remote.
6193 (scoped_remote_fd::m_remote): New field.
6194 (remote_file_put, remote_file_get, remote_file_delete): Use
6195 get_current_remote_target, defer to remote_target method of same
6196 name.
6197 (remote_btrace_reset): Add remote_state paremeter. Update all
6198 callers.
6199 (remote_async_inferior_event_handler). Pass down 'data'.
6200 (remote_new_objfile): Use get_current_remote_target.
6201 (remote_target::vcont_r_supported): New.
6202 (set_range_stepping): Use get_current_remote_target and
6203 remote_target::vcont_r_supported.
6204 (_initialize_remote): Don't allocate 'remote_state' and
6205 'stop_reply_queue' globals.
6206 * remote.h (struct remote_target): Forward declare.
6207 (getpkt, putpkt, remote_notif_get_pending_events): Add
6208 'remote_target' parameter.
6209
6210 2018-05-22 Pedro Alves <palves@redhat.com>
6211
6212 * remote.c (vcont_builder): Now a class. Make all data members
6213 private.
6214 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6215 Declare methods.
6216 (vcont_builder_restart): Rename to ...
6217 (vcont_builder::restart): ... this.
6218 (vcont_builder_flush): Rename to ...
6219 (vcont_builder::flush): ... this.
6220 (vcont_builder_push_action): Rename to ...
6221 (vcont_builder::push_action): ... this.
6222 (remote_target::commit_resume): Adjust.
6223
6224 2018-05-22 Pedro Alves <palves@redhat.com>
6225
6226 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6227 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6228 (get_fixed_memory_packet_size): New.
6229 (get_memory_packet_size): Use it.
6230 (set_memory_packet_size): Don't override the config size with
6231 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6232 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6233 Don't refer to get_memory_packet_size if not connected to a remote
6234 target. Show "(default)" if configured size is 0.
6235
6236 2018-05-22 Pedro Alves <palves@redhat.com>
6237
6238 * remote.c (remote_target::mourn_inferior): Move
6239 discard_pending_stop_replies call here from ...
6240 (_initialize_remote): ... here.
6241
6242 2018-05-22 Pedro Alves <palves@redhat.com>
6243
6244 * remote.c (compare_section_command): Remove set_general_process
6245 call.
6246
6247 2018-05-22 Pedro Alves <palves@redhat.com>
6248
6249 * remote.c (struct packet_reg, struct remote_arch_state):
6250 Move higher up in the file.
6251 (remote_state) <m_arch_states>: Store remote_arch_state values
6252 instead of remote_arch_state pointers.
6253 (remote_state::get_remote_arch_state): Adjust.
6254
6255 2018-05-22 Pedro Alves <palves@redhat.com>
6256
6257 * remote.c: Include <unordered_map>.
6258 (remote_state): Now a class.
6259 (remote_state) <get_remote_arch_state>: Declare method.
6260 <get_remote_arch_state>: New field.
6261 (remote_arch_state) <remote_arch_state>: Declare ctor.
6262 <regs>: Now a unique_ptr.
6263 (remote_gdbarch_data_handle): Delete.
6264 (get_remote_arch_state): Delete.
6265 (remote_state::get_remote_arch_state): New.
6266 (get_remote_state): Adjust to call remote_state's
6267 get_remote_arch_state method.
6268 (init_remote_state): Delete, bits factored out to ...
6269 (remote_arch_state::remote_arch_state): ... this new method.
6270 (get_remote_packet_size, get_memory_packet_size)
6271 (process_g_packet, remote_target::fetch_registers)
6272 (remote_target::prepare_to_store, store_registers_using_G)
6273 (remote_target::store_registers, remote_target::get_trace_status):
6274 Adjust to call remote_state's method.
6275 (_initialize_remote): Remove reference to
6276 remote_gdbarch_data_handle.
6277
6278 2018-05-22 Pedro Alves <palves@redhat.com>
6279
6280 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6281 pread>: New method declarations.
6282 (remote_target::open_1): Adjust.
6283 (readahead_cache_invalidate): Rename to ...
6284 (readahead_cache::invalidate): ... this, and adjust to be a class
6285 method.
6286 (readahead_cache_invalidate_fd): Rename to ...
6287 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6288 class method.
6289 (remote_hostio_pwrite): Adjust.
6290 (remote_hostio_pread_from_cache): Rename to ...
6291 (readahead_cache::pread): ... this, and adjust to be a class
6292 method.
6293 (remote_hostio_close): Adjust.
6294
6295 2018-05-22 Pedro Alves <palves@redhat.com>
6296
6297 * remote.c (remote_hostio_close_cleanup): Delete.
6298 (class scoped_remote_fd): New.
6299 (remote_file_put, remote_file_get): Use it.
6300
6301 2018-05-22 Pedro Alves <palves@redhat.com>
6302
6303 (struct vCont_action_support): Use bool and initialize all fields.
6304 (struct readahead_cache): Initialize all fields.
6305 (remote_state): Use bool and initialize all fields.
6306 (remote_state::remote_state, remote_state::~remote_state): New.
6307 (new_remote_state): Delete.
6308 (_initialize_remote): Use new to allocate remote_state.
6309
6310 2018-05-22 Pedro Alves <palves@redhat.com>
6311 張俊芝 <zjz@zjz.name>
6312
6313 PR gdb/22973
6314 * c-exp.y: Include "c-support.h".
6315 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6316 of tolower. Use c_ident_is_alpha to scan names.
6317 * c-lang.c: Include "c-support.h".
6318 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6319 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6320 * c-support.h: New file, with bits factored out from ...
6321 * cp-name-parser.y: ... this file.
6322 Include "c-support.h".
6323 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6324 c-support.h and renamed.
6325 (symbol_end, yylex): Adjust.
6326
6327 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6328
6329 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6330 parameter type to CORE_ADDR.
6331 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6332 parameter type in declaration to CORE_ADDR.
6333 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6334 target_auxv_search to get AT_HWCAP and use the result to get the
6335 target description.
6336 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6337 to CORE_ADDR. Remove the cast of the return value to unsigned
6338 long. Fix error predicate of target_auxv_search.
6339 (ppc_linux_nat_target::read_description): Change the type of the
6340 hwcap variable to CORE_ADDR.
6341
6342 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6343
6344 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6345 if the size of fpscr is larger than 32 bits.
6346
6347 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6348
6349 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6350 (ppc32_linux_vsxregmap): New global.
6351 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6352 regcache_supply_regset, and regcache_collect_regset.
6353 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6354 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6355 (fetch_vsx_register, store_vsx_register): Remove.
6356 (fetch_vsx_registers): Add regno parameter. Get regset using
6357 ppc_linux_vsxregset. Use regset to supply registers.
6358 (store_vsx_registers): Add regno parameter. Get regset using
6359 ppc_linux_vsxregset. Use regset to collect registers.
6360 (fetch_register): Call fetch_vsx_registers instead of
6361 fetch_vsx_register.
6362 (store_register): Call store_vsx_registers instead of
6363 store_vsx_register.
6364 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6365 new regno parameter.
6366 (store_ppc_registers): Call store_vsx_registers with -1 for the
6367 new regno parameter.
6368 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6369 (ppc_collect_vsxregset): Remove.
6370
6371 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6372
6373 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6374 offset fields.
6375 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6376 for vector register offset fields.
6377 (ppc64_fbsd_reg_offsets): Likewise.
6378 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6379 to vector register offset fields.
6380 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6381 to vector register offset fields.
6382 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6383 vector register offset fields.
6384 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6385 initializers for vector register offset fields.
6386 (rs6000_aix64_reg_offsets): Likewise.
6387 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6388 (ppc_supply_vrregset): Remove.
6389 (ppc_collect_vrregset): Remove.
6390 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6391 (ppc_linux_vrregset) : New function.
6392 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6393 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6394 (ppc32_linux_vrregset): Remove.
6395 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6396 and use result instead of ppc32_linux_vrregset.
6397 (ppc32_linux_reg_offsets): Remove initializers for vector register
6398 offset fields.
6399 (ppc64_linux_reg_offsets): Likewise.
6400 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6401 * ppc-linux-nat.c: Include regset.h.
6402 (gdb_vrregset_t): Adjust comment to account for little-endian
6403 mode.
6404 (supply_vrregset, fill_vrregset): Remove.
6405 (fetch_altivec_register, store_altivec_register): Remove.
6406 (fetch_altivec_registers): Add regno parameter. Get regset using
6407 ppc_linux_vrregset. Use regset to supply registers.
6408 (store_altivec_registers): Add regno parameter. Get regset using
6409 ppc_linux_vrregset. Use regset to collect registers.
6410 (fetch_register): Call fetch_altivec_registers instead of
6411 fetch_altivec_register.
6412 (store_register): Call store_altivec_registers instead of
6413 store_altivec_register.
6414 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6415 the new regno parameter.
6416 (store_ppc_registers): Call store_altivec_registers with -1 for
6417 the new regno parameter.
6418
6419 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6420
6421 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6422 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6423 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6424 (gdb_vrregset_t): Change array type size to
6425 PPC_LINUX_SIZEOF_VRREGSET.
6426 (gdb_vsxregset_t): Change array type size to
6427 PPC_LINUX_SIZEOF_VSXREGSET.
6428 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6429 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6430 PPC_LINUX_SIZEOF_VSXREGSET.
6431
6432 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6433
6434 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6435 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6436 nat/ppc-linux.c.
6437 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6438 ppc_linux_target_wordsize with tid.
6439 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6440 wordsize with tid.
6441 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6442 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6443 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6444 tid parameter. Remove static specifier.
6445 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6446 (ppc_linux_target_wordsize): New declaration.
6447
6448 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6449
6450 * arch/ppc-linux-common.c: New file.
6451 * arch/ppc-linux-common.h: New file.
6452 * arch/ppc-linux-tdesc.h: New file.
6453 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6454 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6455 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6456 arch/ppc-linux-tdesc.h.
6457 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6458 arch/ppc-linux-tdesc.h.
6459 (ppc_linux_nat_target::read_description): Remove target
6460 description matching code. Fill a ppc_linux_features struct and
6461 call ppc_linux_match_description with it. Move comment about ISA
6462 2.05 to ppc-linux-common.c.
6463 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6464 arch/ppc-linux-tdesc.h.
6465 (ppc_linux_core_read_description): Remove target description
6466 matching code. Fill a ppc_linux_features struct and call
6467 ppc_linux_match_description with it.
6468 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6469 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6470 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6471 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6472 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6473 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6474 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6475 (tdesc_powerpc_e500l): Remove.
6476
6477 2018-05-22 Joel Brobecker <brobecker@adacore.com>
6478
6479 * ada-lang.c (catch_assert_command): Pass empty string instead
6480 of NULL for excep_string argument.
6481
6482 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6483
6484 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6485 the width of the requested register exceeds the width of the
6486 `ptrace' data type.
6487
6488 2018-05-21 Tom Tromey <tom@tromey.com>
6489
6490 * printcmd.c (output_command): Remove.
6491 (output_command_const): Rename to output_command.
6492 * valprint.h (output_command): Rename from output_command_const.
6493 * tracepoint.c (trace_dump_actions): Call output_command.
6494
6495 2018-05-21 Tom Tromey <tom@tromey.com>
6496
6497 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6498 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6499 * ada-lang.h (create_ada_exception_catchpoint): Update.
6500 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6501 std::string.
6502 (create_excep_cond_exprs, ~ada_catchpoint)
6503 (should_stop_exception, print_one_exception)
6504 (print_mention_exception, print_recreate_exception): Update.
6505 (ada_get_next_arg): Remove.
6506 (catch_ada_exception_command_split): Use std::string. Change type
6507 of "excep_string", "cond_string".
6508 (catch_ada_exception_command): Update.
6509 (create_ada_exception_catchpoint): Change type of excep_string.
6510 (ada_exception_sal): Remove excep_string parameter.
6511 (~ada_catchpoint): Remove.
6512
6513 2018-05-21 Tom Tromey <tom@tromey.com>
6514
6515 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6516 cleanup.
6517
6518 2018-05-21 Tom Tromey <tom@tromey.com>
6519
6520 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6521 Return unique_xmalloc_ptr.
6522 (print_it_exception): Update.
6523
6524 2018-05-21 Tom Tromey <tom@tromey.com>
6525
6526 * tracepoint.c (trace_dump_actions): Use std::string.
6527
6528 2018-05-21 Tom Tromey <tom@tromey.com>
6529
6530 * symfile.c (reread_symbols): Use std::string for original_name.
6531
6532 2018-05-21 Tom Tromey <tom@tromey.com>
6533
6534 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6535 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6536 constructor.
6537
6538 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6539
6540 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6541 instance to...
6542 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6543 * objfiles.c (get_objfile_bfd_data): Allocate
6544 objfile_per_bfd_storage with obstack_new when allocating on
6545 obstack.
6546
6547 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6548
6549 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6550 OBSTACK_ZALLOC.
6551 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6552 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6553 * mdebugread.c (mdebug_build_psymtabs): Likewise.
6554 (add_pending): Likewise.
6555 (parse_symbol): Likewise.
6556 (parse_partial_symbols): Likewise.
6557 (psymtab_to_symtab_1): Likewise.
6558 (new_psymtab): Likewise.
6559 (elfmdebug_build_psymtabs): Likewise.
6560 * minsyms.c (terminate_minimal_symbol_table): Likewise.
6561 * objfiles.c (get_objfile_bfd_data): Likewise.
6562 (objfile_register_static_link): Likewise.
6563 * psymtab.c (allocate_psymtab): Likewise.
6564 * stabsread.c (read_member_functions): Likewise.
6565 * xcoffread.c (xcoff_end_psymtab): Likewise.
6566
6567 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6568
6569 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
6570 compiler supports std::is_trivially_constructible.
6571 * common/poison.h: Include obstack.h.
6572 (IsMallocable): Define to is_trivially_constructible if the
6573 compiler supports it, define to true_type otherwise.
6574 (xobnew): New.
6575 (XOBNEW): Redefine.
6576 (xobnewvec): New.
6577 (XOBNEWVEC): Redefine.
6578 * gdb_obstack.h (obstack_zalloc): New.
6579 (OBSTACK_ZALLOC): Redefine.
6580 (obstack_calloc): New.
6581 (OBSTACK_CALLOC): Redefine.
6582 (obstack_new): New.
6583 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
6584 (gdbarch_obstack): New declaration in gdbarch.h, definition in
6585 gdbarch.c.
6586 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
6587 obstack_calloc/obstack_zalloc.
6588 (gdbarch_obstack_zalloc): Remove.
6589 * target-descriptions.c (tdesc_data_init): Use obstack_new.
6590
6591 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6592
6593 * stack.c (backtrace_command_1): Remove useless variable int i.
6594
6595 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6596
6597 * stack.c (print_frame_info): Fix comment.
6598
6599 2018-05-18 Tom Tromey <tom@tromey.com>
6600
6601 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
6602 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
6603 (~dwarf2_per_objfile): Update
6604 (dwarf2_get_dwz_file): Use new.
6605 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6606 unique_ptr.
6607
6608 2018-05-18 Tom Tromey <tom@tromey.com>
6609
6610 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
6611 unique_ptr.
6612 * dwarf2read.c (struct dwp_file): Add constructor and
6613 initializers.
6614 (open_and_init_dwp_file): Return a unique_ptr.
6615 (dwarf2_per_objfile, create_dwp_hash_table)
6616 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
6617 (lookup_dwo_unit_in_dwp): Update.
6618 (open_and_init_dwp_file, get_dwp_file): Update.
6619
6620 2018-05-18 Tom Tromey <tom@tromey.com>
6621
6622 * dwarf2read.c (dwarf2_per_objfile): Update.
6623 (struct mapped_index): Add initializers.
6624 (dwarf2_read_index): Use new.
6625 (dw2_symtab_iter_init): Update.
6626 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
6627 unique_ptr.
6628
6629 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6630
6631 * dwarf2read.c (mapped_index) <total_size>: Remove.
6632
6633 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6634
6635 * unittests/format_pieces-selftests.c (test_format_specifier):
6636 Add ARI comments.
6637
6638 2018-05-18 Tom Tromey <tom@tromey.com>
6639
6640 * c-typeprint.c (maybe_print_hole): New function.
6641 (c_print_type_struct_field_offset): Update.
6642 (c_type_print_base_struct_union): Call maybe_print_hole.
6643
6644 2018-05-17 Keith Seitz <keiths@redhat.com>
6645
6646 * breakpoint.c (build_bpstat_chain): New function, moved from
6647 bpstat_stop_status.
6648 (bpstat_stop_status): Add optional parameter, `stop_chain'.
6649 If no stop chain is passed, call build_bpstat_chain to build it.
6650 * breakpoint.h (build_bpstat_chain): Declare.
6651 (bpstat_stop_status): Move documentation here from breakpoint.c.
6652 * infrun.c (handle_signal_stop): Before eliding inlined frames,
6653 build the stop chain and pass it to skip_inline_frames.
6654 Pass this stop chain to bpstat_stop_status.
6655 * inline-frame.c: Include breakpoint.h.
6656 (stopped_by_user_bp_inline_frame): New function.
6657 (skip_inline_frames): Add parameter `stop_chain'.
6658 Move documention to inline-frame.h.
6659 If non-NULL, use stopped_by_user_bp_inline_frame to determine
6660 whether the frame should be elided.
6661 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
6662 Add moved documentation and update for new parameter.
6663
6664 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6665
6666 PR cli/14975
6667 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6668 unittests/format_pieces-selftests.c.
6669 * common/format.h (format_piece) <operator==>: New.
6670 (format_pieces) <operator[]>: Remove.
6671 * common/format.c (format_pieces::format_pieces): Handle \e.
6672 * unittests/format_pieces-selftests.c: New.
6673
6674 2018-05-17 Tom Tromey <tom@tromey.com>
6675
6676 PR symtab/23010:
6677 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
6678 (dw2_instantiate_symtab): Add skip_partial parameter.
6679 (dw2_find_last_source_symtab, dw2_map_expand_apply)
6680 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
6681 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
6682 (dw2_expand_symtabs_matching_one)
6683 (dw2_find_pc_sect_compunit_symtab)
6684 (dw2_debug_names_lookup_symbol)
6685 (dw2_debug_names_expand_symtabs_for_function): Update.
6686 (init_cutu_and_read_dies): Add skip_partial parameter.
6687 (process_psymtab_comp_unit, build_type_psymtabs_1)
6688 (process_skeletonless_type_unit, load_partial_comp_unit)
6689 (psymtab_to_symtab_1): Update.
6690 (load_full_comp_unit): Add skip_partial parameter.
6691 (process_imported_unit_die, dwarf2_read_addr_index)
6692 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
6693 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
6694 (read_signatured_type): Update.
6695
6696 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6697
6698 * value.c (release_value): Remove unused variable.
6699 (record_latest_value): Likewise.
6700 (access_value_history): Likewise.
6701 (preserve_values): Likewise.
6702
6703 2018-05-17 Tom Tromey <tom@tromey.com>
6704
6705 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
6706 Initialize.
6707
6708 2018-05-16 Maciej W. Rozycki <macro@mips.com>
6709
6710 PR gdb/22286
6711 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
6712 Also handle registers whose width is not a multiple of
6713 PTRACE_TYPE_RET.
6714 (linux_nat_trad_target::store_register): Likewise.
6715
6716 2018-05-16 Tom Tromey <tom@tromey.com>
6717
6718 * gdbcore.h (core_bfd): Redefine.
6719 * corelow.c (core_target::close): Update.
6720 (core_target_open): Update.
6721 * progspace.h (struct program_space) <cbfd>: Now a
6722 gdb_bfd_ref_ptr.
6723
6724 2018-05-16 Tom Tromey <tom@tromey.com>
6725
6726 PR cli/19551:
6727 * symfile-add-flags.h (enum symfile_add_flags)
6728 <SYMFILE_NOT_FILENAME>: New constant.
6729 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
6730 objfile name from BFD.
6731 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
6732 * minidebug.c (find_separate_debug_file_in_section): Put
6733 ".gnu_debugdata" into BFD's file name.
6734
6735 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
6736
6737 * regcache.c (regcache_read_ftype, regcache_write_ftype):
6738 Remove.
6739
6740 2018-05-15 Tamar Christina <tamar.christina@arm.com>
6741
6742 PR binutils/21446
6743 * aarch64-tdep.c (aarch64_analyze_prologue,
6744 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
6745 Indicate not interested in errors.
6746
6747 2018-05-15 Maciej W. Rozycki <macro@mips.com>
6748
6749 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
6750 Supply the MIPS_ZERO_REGNUM register.
6751
6752 2018-05-15 Maciej W. Rozycki <macro@mips.com>
6753
6754 * mips-tdep.c (mask_address_var): Make variable static.
6755
6756 2018-05-14 Tom Tromey <tom@tromey.com>
6757
6758 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
6759
6760 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
6761
6762 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
6763 FXSAVE_ADDR for the mxcsr register.
6764
6765 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
6766
6767 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
6768
6769 2018-05-11 Pedro Alves <palves@redhat.com>
6770
6771 * corelow.c (core_target) <core_target>: No longer inline.
6772 Initialize m_core_gdbarch, m_core_vec and build the section table
6773 here.
6774 <~core_target>: New.
6775 <core_gdbarch, get_core_register_section>: New methods.
6776 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
6777 factored out from ...
6778 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
6779 (core_ops): Delete.
6780 (sniff_core_bfd): Add gdbarch parameter.
6781 (core_close): Delete, merged into ...
6782 (core_target::close): ... here. Delete self.
6783 (core_close_cleanup): Delete.
6784 (core_target_open): Allocate a core_target on the heap. Use a
6785 unique_ptr instead of a cleanup. Bits moved into the core_target
6786 ctor. Adjust to use core_target methods instead of globals.
6787 (get_core_register_section): Rename to ...
6788 (core_target::get_core_register_section): ... this and adjust.
6789 (struct get_core_registers_cb_data): New.
6790 (get_core_registers_cb): Use it. Use bool.
6791 (core_target::fetch_registers, core_target::files_info)
6792 (core_target::xfer_partial, core_target::read_description)
6793 (core_target::pid_to, core_target::thread_name): Adjust to
6794 reference class fields instead of globals.
6795 * target.h (struct target_ops_deleter, target_ops_up): New.
6796
6797 2018-05-11 Pedro Alves <palves@redhat.com>
6798
6799 * corefile.c (core_file_command): Move to corelow.c.
6800 * corelow.c (the_core_target): Delete.
6801 (core_file_command): Moved from corefile.c. Check exec_bfd
6802 instead of the_core_target. Use target_detach instead of calling
6803 into the_core_target directly.
6804 (maybe_say_no_core_file_now): New.
6805 (core_target::detach): Use it.
6806 (_initialize_corelow): Remove references to the_core_target.
6807 * gdbcore.h (the_core_target): Delete.
6808
6809 2018-05-11 Tom Tromey <tromey@redhat.com>
6810 Pedro Alves <palves@redhat.com>
6811
6812 * corefile.c (core_bfd): Remove.
6813 * gdbcore.h (core_bfd): Now a macro.
6814 * progspace.h (struct program_space) <cbfd>: New field.
6815
6816 2018-05-11 Tom Tromey <tom@tromey.com>
6817
6818 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
6819 gdb::def_vector.
6820
6821 2018-05-10 Tom Tromey <tom@tromey.com>
6822
6823 * configure: Rebuild.
6824 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
6825
6826 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6827
6828 PR server/23158:
6829 * regformats/regdat.sh: Adjust script, following the addition
6830 of the new expedite_regs parameter to init_target_desc.
6831
6832 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
6833
6834 PR gdb/23127
6835 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
6836 set_gdbarch_significant_addr_bit.
6837 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
6838 set_gdbarch_significant_addr_bit.
6839 * utils.c (address_significant): Update to sign extend addr.
6840
6841 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
6842
6843 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
6844 (xtensa_linux_init_abi): Limit tdep->num_regs by
6845 tdep->num_nopriv_regs.
6846 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
6847 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
6848 not initialized.
6849
6850 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
6851
6852 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
6853
6854 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6855
6856 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
6857 (I387_MXCSR_INIT_VAL): New constant.
6858 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
6859 buffer if it was supplied by the inferior.
6860 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
6861 (i387_xsave_get_clear_bv): New function.
6862 (i387_supply_xsave): Only read x87 control registers from the
6863 xsave buffer if the feature is enabled, and the state will have
6864 been written, otherwise, provide a suitable default.
6865 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
6866 including x87 control registers. Update control registers if they
6867 have changed from the default value, and mark features as enabled
6868 as required.
6869 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
6870
6871 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6872
6873 * spu-tdep.c (info_spu_event_command): Fix output formatting.
6874
6875 2018-05-07 Tom Tromey <tom@tromey.com>
6876
6877 * configure: Rebuild.
6878 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
6879
6880 2018-05-07 Tom Tromey <tom@tromey.com>
6881
6882 PR tdep/20362:
6883 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
6884 bit. Use correct value for VDIV.
6885
6886 2018-05-04 Tom Tromey <tom@tromey.com>
6887
6888 * configure: Rebuild.
6889 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
6890
6891 2018-05-04 Tom Tromey <tom@tromey.com>
6892
6893 * linux-record.c (record_linux_system_call) <case
6894 RECORD_SYS_RECVFROM>: Add "break".
6895
6896 2018-05-04 Tom Tromey <tom@tromey.com>
6897
6898 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
6899 Add missing "break".
6900 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
6901 Add missing "break".
6902
6903 2018-05-04 Tom Tromey <tom@tromey.com>
6904
6905 * rs6000-tdep.c (ppc_process_record_op4)
6906 (ppc_process_record_op63): Add fall-through comment.
6907
6908 2018-05-04 Tom Tromey <tom@tromey.com>
6909
6910 * i386-tdep.c (i386_process_record): Add fall-through comment.
6911
6912 2018-05-04 Tom Tromey <tom@tromey.com>
6913
6914 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
6915 comment.
6916
6917 2018-05-04 Tom Tromey <tom@tromey.com>
6918
6919 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
6920 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
6921 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
6922 comment.
6923 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
6924 comment.
6925 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
6926 comment.
6927
6928 2018-05-04 Tom Tromey <tom@tromey.com>
6929
6930 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
6931
6932 2018-05-04 Tom Tromey <tom@tromey.com>
6933
6934 * s390-tdep.c (s390_process_record): Fix fall-through comments.
6935 * xcoffread.c (scan_xcoff_symtab): Move comment later.
6936 * symfile.c (section_is_mapped): Fix fall-through comment.
6937 * stabsread.c (define_symbol, read_member_functions): Fix
6938 fall-through comment.
6939 * s390-linux-tdep.c (s390_process_record): Fix fall-through
6940 comment.
6941 * remote.c (remote_wait_as): Fix fall-through comment.
6942 * p-exp.y (yylex): Fix fall-through comment.
6943 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
6944 comment.
6945 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
6946 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
6947 * jv-exp.y (yylex): Fix fall-through comment.
6948 * go-exp.y (lex_one_token): Fix fall-through comment.
6949 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
6950 fall-through comment.
6951 * f-exp.y (yylex): Fix fall-through comment.
6952 * dwarf2read.c (process_die): Fix fall-through comments.
6953 * dbxread.c (process_one_symbol): Fix fall-through comment.
6954 * d-exp.y (lex_one_token): Fix fall-through comment.
6955 * cp-name-parser.y (yylex): Fix fall-through comment.
6956 * coffread.c (coff_symtab_read): Fix fall-through comment.
6957 * c-exp.y (lex_one_token): Fix fall-through comment.
6958 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
6959 comment.
6960 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
6961 comment.
6962
6963 2018-05-04 Tom Tromey <tom@tromey.com>
6964
6965 PR python/22730:
6966 * NEWS: Mention gdb.execute change.
6967 * gdbcmd.h (execute_control_command): Don't declare.
6968 * python/python.c (execute_gdb_command): Use read_command_lines_1,
6969 execute_control_commands, execute_control_commands_to_string.
6970 * cli/cli-script.h (execute_control_commands)
6971 (execute_control_commands_to_string): Declare.
6972 (execute_control_command): Add from_tty parameter.
6973 * cli/cli-script.c (execute_control_commands)
6974 (execute_control_commands_to_string): New functions.
6975 (execute_user_command): Use execute_control_commands.
6976 (execute_control_command_1): Add "from_tty" parameter. Update.
6977 (execute_control_command): Likewise.
6978
6979 2018-05-04 Tom Tromey <tom@tromey.com>
6980
6981 PR python/22731:
6982 * NEWS: Mention that breakpoint commands are writable.
6983 * python/py-breakpoint.c (bppy_set_commands): New function.
6984 (breakpoint_object_getset) <"commands">: Use it.
6985
6986 2018-05-04 Tom Tromey <tom@tromey.com>
6987
6988 * tracepoint.c (actions_command): Update.
6989 * mi/mi-cmd-break.c (mi_command_line_array)
6990 (mi_command_line_array_cnt, mi_command_line_array_ptr)
6991 (mi_read_next_line): Remove.
6992 (mi_cmd_break_commands): Update.
6993 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
6994 function_view.
6995 * cli/cli-script.c (get_command_line): Update.
6996 (process_next_line): Use function_view. Constify.
6997 (recurse_read_control_structure, read_command_lines)
6998 (read_command_lines_1): Change argument types to function_view.
6999 (do_define_command, document_command): Update.
7000 * breakpoint.h (check_tracepoint_command): Don't declare.
7001 * breakpoint.c (check_tracepoint_command): Remove.
7002 (commands_command_1, create_tracepoint_from_upload): Update.
7003
7004 2018-05-04 Tom Tromey <tom@tromey.com>
7005
7006 PR gdb/11750:
7007 * cli/cli-script.h (enum command_control_type) <define_control>:
7008 New constant.
7009 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7010 (build_command_line, execute_control_command_1)
7011 (process_next_line): Likewise.
7012 (do_define_command): New function, extracted from define_command.
7013 (define_command): Use it.
7014
7015 2018-05-04 Tom Tromey <tom@tromey.com>
7016
7017 * tracepoint.c (actions_command): Update.
7018 * cli/cli-script.h (read_command_lines): Update.
7019 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7020 (MAX_TMPBUF): Remove define.
7021 (define_command): Use string_printf.
7022 (document_command): Likewise.
7023 * breakpoint.c (commands_command_1): Update.
7024
7025 2018-05-04 Tom Tromey <tom@tromey.com>
7026
7027 * top.c (execute_command): Update.
7028 * cli/cli-script.h (print_command_lines): Now varargs.
7029 * cli/cli-script.c (print_command_lines): Now varargs.
7030 (execute_control_command_1) <case while_control, case if_control>:
7031 Update.
7032
7033 2018-05-04 Tom Tromey <tom@tromey.com>
7034
7035 * tracepoint.c (all_tracepoint_actions): Rename from
7036 all_tracepoint_actions_and_cleanup. Change return type.
7037 (actions_command, encode_actions_1, encode_actions)
7038 (trace_dump_actions, tdump_command): Update.
7039 * remote.c (remote_download_command_source): Update.
7040 * python/python.c (gdbpy_eval_from_control_command)
7041 (python_command, python_interactive_command): Update.
7042 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7043 * guile/guile.c (guile_command)
7044 (gdbscm_eval_from_control_command, guile_command): Update.
7045 * compile/compile.c (compile_code_command)
7046 (compile_print_command, compile_to_object): Update.
7047 * cli/cli-script.h (struct command_lines_deleter): New.
7048 (counted_command_line): New typedef.
7049 (struct command_line): Add constructor, destructor.
7050 <body_list>: Remove.
7051 <body_list_0, body_list_1>: New members.
7052 (command_line_up): Remove typedef.
7053 (read_command_lines, read_command_lines_1, get_command_line):
7054 Update.
7055 (copy_command_lines): Don't declare.
7056 * cli/cli-script.c (build_command_line): Use "new".
7057 (get_command_line): Return counted_command_line.
7058 (print_command_lines, execute_user_command)
7059 (execute_control_command_1, while_command, if_command): Update.
7060 (realloc_body_list): Remove.
7061 (process_next_line, recurse_read_control_structure): Update.
7062 (read_command_lines, read_command_lines_1): Return counted_command_line.
7063 (free_command_lines): Use "delete".
7064 (copy_command_lines): Remove.
7065 (define_command, document_command, show_user_1): Update.
7066 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7067 a counted_command_line.
7068 * breakpoint.h (counted_command_line): Remove typedef.
7069 (breakpoint_set_commands): Update.
7070 * breakpoint.c (check_no_tracepoint_commands)
7071 (validate_commands_for_breakpoint): Update.
7072 (breakpoint_set_commands): Change commands to be a
7073 counted_command_line.
7074 (commands_command_1, update_dprintf_command_list)
7075 (create_tracepoint_from_upload): Update.
7076
7077 2018-05-04 Tom Tromey <tom@tromey.com>
7078
7079 * cli/cli-decode.h (cmd_list_element): New constructor.
7080 (~cmd_list_element): New destructor.
7081 (struct cmd_list_element): Add initializers.
7082 * cli/cli-decode.c (do_add_cmd): Use "new".
7083 (delete_cmd): Use "delete".
7084
7085 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7086 Pedro Alves <palves@redhat.com>
7087
7088 PR breakpoints/19806 and support for PR external/20207.
7089 * NEWS: Mention Aarch64 watchpoint improvements.
7090 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7091 watchpoints and PR external/20207 watchpoints.
7092 * nat/aarch64-linux-hw-point.c
7093 (kernel_supports_any_contiguous_range): New.
7094 (aarch64_watchpoint_offset): New.
7095 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7096 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7097 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7098 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7099 next_addr_orig_p. Support PR external/20207 watchpoints.
7100 (aarch64_downgrade_regs): New.
7101 (aarch64_dr_state_insert_one_point): New parameters offset and
7102 addr_orig.
7103 (aarch64_dr_state_remove_one_point): Likewise.
7104 (aarch64_handle_breakpoint): Update caller.
7105 (aarch64_handle_aligned_watchpoint): Likewise.
7106 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7107 aligned_offset.
7108 (aarch64_linux_set_debug_regs): Remove const from state. Call
7109 aarch64_downgrade_regs.
7110 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7111 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7112 (DR_CONTROL_MASK): ... this.
7113 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7114 (unsigned int aarch64_watchpoint_offset): New prototype.
7115 (aarch64_linux_set_debug_regs): Remove const from state.
7116 * utils.c (align_up, align_down): Move to ...
7117 * common/common-utils.c (align_up, align_down): ... here.
7118 * utils.h (align_up, align_down): Move to ...
7119 * common/common-utils.h (align_up, align_down): ... here.
7120
7121 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7122
7123 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7124 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7125 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7126 Re-implement to match the ABI as summarized in GCC's
7127 gcc/config/sparc/sparc.c. All callers updated.
7128 (sparc32_store_arguments): Remove assertion.
7129
7130 2018-05-04 Tom Tromey <tom@tromey.com>
7131
7132 * printcmd.c: Don't include tui.h.
7133 (decode_format): Use skip_spaces.
7134
7135 2018-05-04 Tom Tromey <tom@tromey.com>
7136
7137 PR gdb/22619:
7138 * printcmd.c (last_count): New global.
7139 (x_command): Use saved count when repeating.
7140
7141 2018-05-04 Tom Tromey <tom@tromey.com>
7142
7143 * nto-procfs.c (do_closedir_cleanup): Remove.
7144 (procfs_pidlist): Use gdb_dir_up.
7145 * procfs.c (do_closedir_cleanup): Remove.
7146 (proc_update_threads): Use gdb_dir_up.
7147 * common/filestuff.h (struct gdb_dir_deleter): New.
7148 (gdb_dir_up): New typedef.
7149
7150 2018-05-04 Tom Tromey <tom@tromey.com>
7151
7152 * ada-lang.c (print_mention_exception): Use std::string.
7153
7154 2018-05-04 Tom Tromey <tom@tromey.com>
7155
7156 * ada-lang.c (create_excep_cond_exprs): Update.
7157 (ada_exception_catchpoint_cond_string): Use std::string.
7158
7159 2018-05-04 Tom Tromey <tom@tromey.com>
7160
7161 * ada-lang.c (xget_renaming_scope): Return std::string.
7162 (old_renaming_is_invisible): Update.
7163
7164 2018-05-04 Tom Tromey <tom@tromey.com>
7165
7166 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7167 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7168
7169 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7170
7171 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7172
7173 2018-05-04 Tom Tromey <tom@tromey.com>
7174
7175 * remote.c (remote_query_supported_append): Change type.
7176 (remote_check_symbols): Update.
7177
7178 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7179
7180 PR gdb/11420
7181 * configure.ac: Prepend libpython.
7182 * python/python-config.py: Likewise.
7183 * configure: Regenerate.
7184
7185 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7186
7187 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7188
7189 2018-05-03 Pedro Alves <palves@redhat.com>
7190
7191 * s390-linux-nat.c
7192 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7193 override. Write 'true' instead of '1'.
7194 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7195 declaration.
7196
7197 2018-05-02 Pedro Alves <palves@redhat.com>
7198
7199 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7200 add_inf_child_target.
7201 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7202 add_inf_child_target.
7203 * aix-thread.c (aix_thread_target_info): New.
7204 (aix_thread_target) <shortname, longname, doc>: Delete.
7205 <info>: New.
7206 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7207 add_inf_child_target.
7208 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7209 add_inf_child_target.
7210 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7211 add_inf_child_target.
7212 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7213 add_inf_child_target.
7214 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7215 add_inf_child_target.
7216 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7217 add_inf_child_target.
7218 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7219 add_inf_child_target.
7220 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7221 add_inf_child_target.
7222 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7223 add_inf_child_target.
7224 * bfd-target.c (target_bfd_target_info): New.
7225 (target_bfd) <shortname, longname, doc>: Delete.
7226 <info>: New.
7227 * bsd-kvm.c (bsd_kvm_target_info): New.
7228 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7229 <info>: New.
7230 (bsd_kvm_target::open): Rename to ...
7231 (bsd_kvm_target_open): ... this. Adjust.
7232 * bsd-uthread.c (bsd_uthread_target_info): New.
7233 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7234 <info>: New.
7235 * corefile.c (core_file_command): Adjust.
7236 * corelow.c (core_target_info): New.
7237 (core_target) <shortname, longname, doc>: Delete.
7238 <info>: New.
7239 (core_target::open): Rename to ...
7240 (core_target_open): ... this. Adjust.
7241 * ctf.c (ctf_target_info): New.
7242 (ctf_target) <shortname, longname, doc>: Delete.
7243 <info>: New.
7244 (ctf_target::open): Rename to ...
7245 (ctf_target_open): ... this.
7246 (_initialize_ctf): Adjust.
7247 * exec.c (exec_target_info): New.
7248 (exec_target) <shortname, longname, doc>: Delete.
7249 <info>: New.
7250 (exec_target::open): Rename to ...
7251 (exec_target_open): ... this.
7252 * gdbcore.h (core_target_open): Declare.
7253 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7254 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7255 add_inf_child_target.
7256 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7257 add_inf_child_target.
7258 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7259 add_inf_child_target.
7260 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7261 add_inf_child_target.
7262 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7263 add_inf_child_target.
7264 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7265 add_inf_child_target.
7266 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7267 add_inf_child_target.
7268 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7269 add_inf_child_target.
7270 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7271 add_inf_child_target.
7272 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7273 add_inf_child_target.
7274 * inf-child.c (inf_child_target_info): New.
7275 (inf_child_target::info): New.
7276 (inf_child_open_target): Remove 'target' parameter. Use
7277 get_native_target instead.
7278 (inf_child_target::open): Delete.
7279 (add_inf_child_target): New.
7280 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7281 Delete.
7282 <info>: New.
7283 (add_inf_child_target): Declare.
7284 (inf_child_open_target): Declare.
7285 * linux-thread-db.c (thread_db_target_info): New.
7286 (thread_db_target) <shortname, longname, doc>: Delete.
7287 <info>: New.
7288 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7289 add_inf_child_target.
7290 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7291 add_inf_child_target.
7292 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7293 add_inf_child_target.
7294 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7295 add_inf_child_target.
7296 * make-target-delegates (print_class): Adjust.
7297 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7298 add_inf_child_target.
7299 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7300 add_inf_child_target.
7301 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7302 add_inf_child_target.
7303 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7304 add_inf_child_target.
7305 * nto-procfs.c (nto_native_target_info): New.
7306 (nto_procfs_target_native) <shortname, longname, doc>:
7307 Delete.
7308 <info>: New.
7309 (nto_procfs_target_info): New.
7310 (nto_procfs_target_procfs) <shortname, longname, doc>:
7311 Delete.
7312 <info>: New.
7313 (init_procfs_targets): Adjust.
7314 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7315 add_inf_child_target.
7316 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7317 add_inf_child_target.
7318 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7319 add_inf_child_target.
7320 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7321 add_inf_child_target.
7322 * ravenscar-thread.c (ravenscar_target_info): New.
7323 (ravenscar_thread_target) <shortname, longname, doc>:
7324 Delete.
7325 <info>: New.
7326 * record-btrace.c (record_btrace_target_info):
7327 (record_btrace_target) <shortname, longname, doc>: Delete.
7328 <info>: New.
7329 (record_btrace_target::open): Rename to ...
7330 (record_btrace_target_open): ... this. Adjust.
7331 * record-full.c (record_longname, record_doc): New.
7332 (record_full_base_target) <shortname, longname, doc>: Delete.
7333 <info>: New.
7334 (record_full_target_info): New.
7335 (record_full_target): <shortname>: Delete.
7336 <info>: New.
7337 (record_full_core_open_1, record_full_open_1): Update comments.
7338 (record_full_base_target::open): Rename to ...
7339 (record_full_open): ... this.
7340 (cmd_record_full_restore): Update.
7341 (_initialize_record_full): Update.
7342 * remote-sim.c (remote_sim_target_info): New.
7343 (gdbsim_target) <shortname, longname, doc>: Delete.
7344 <info>: New.
7345 (gdbsim_target::open): Rename to ...
7346 (gdbsim_target_open): ... this.
7347 (_initialize_remote_sim): Adjust.
7348 * remote.c (remote_doc): New.
7349 (remote_target_info): New.
7350 (remote_target) <shortname, longname, doc>: Delete.
7351 <info>: New.
7352 (extended_remote_target_info): New.
7353 (extended_remote_target) <shortname, longname, doc>: Delete.
7354 <info>: New.
7355 (remote_target::open_1): Make static. Adjust.
7356 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7357 * s390-linux-nat.c (_initialize_s390_nat): Use
7358 add_inf_child_target.
7359 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7360 add_inf_child_target.
7361 * sol-thread.c (thread_db_target_info): New.
7362 (sol_thread_target) <shortname, longname, doc>: Delete.
7363 <info>: New.
7364 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7365 add_inf_child_target.
7366 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7367 add_inf_child_target.
7368 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7369 add_inf_child_target.
7370 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7371 add_inf_child_target.
7372 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7373 add_inf_child_target.
7374 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7375 add_inf_child_target.
7376 * spu-linux-nat.c (_initialize_spu_nat): Use
7377 add_inf_child_target.
7378 * spu-multiarch.c (spu_multiarch_target_info): New.
7379 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7380 <info>: New.
7381 * target-delegates.c: Regenerate.
7382 * target.c: Include <unordered_map>.
7383 (target_ops_p): Delete.
7384 (DEF_VEC_P(target_ops_p)): Delete.
7385 (target_factories): New.
7386 (test_target_info): New.
7387 (test_target_ops::info): New.
7388 (open_target): Adjust to use target_factories.
7389 (add_target_with_completer): Rename to ...
7390 (add_target): ... this. Change prototype. Register target_info
7391 and open callback in target_factories. Register target_info in
7392 command context instead of target_ops.
7393 (add_target): Delete old implementation.
7394 (add_deprecated_target_alias): Change prototype. Adjust.
7395 (the_native_target): New.
7396 (set_native_target, get_native_target): New.
7397 (find_default_run_target): Use the_native_target.
7398 (find_attach_target, find_run_target): Simplify.
7399 (target_ops::open): Delete.
7400 (dummy_target_info): New.
7401 (dummy_target::shortname, dummy_target::longname)
7402 (dummy_target::doc): Delete.
7403 (dummy_target::info): New.
7404 (debug_target::shortname, debug_target::longname)
7405 (debug_target::doc): Delete.
7406 (debug_target::info): New.
7407 * target.h (struct target_info): New.
7408 (target_ops::~target_ops): Add comment.
7409 (target_ops::info): New.
7410 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7411 longer virtual. Implement in terms of target_info.
7412 (set_native_target, get_native_target): Declare.
7413 (target_open_ftype): New.
7414 (add_target, add_target_with_completer)
7415 (add_deprecated_target_alias): Change prototype.
7416 (test_target) <shortname, longname, doc>: Delete.
7417 <info>: New.
7418 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7419 add_inf_child_target.
7420 * tracefile-tfile.c (tfile_target_info): New.
7421 (tfile_target) <shortname, longname, doc>: Delete.
7422 <info>: New.
7423 (tfile_target::open): Rename to ...
7424 (tfile_target_open): ... this.
7425 (_initialize_tracefile_tfile): Adjust.
7426 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7427 add_inf_child_target.
7428 * windows-nat.c (_initialize_windows_nat): Use
7429 add_inf_child_target.
7430 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7431 add_inf_child_target.
7432
7433 2018-05-02 Pedro Alves <palves@redhat.com>
7434
7435 * linux-nat.h (linux_nat_target) <low_new_thread,
7436 low_delete_thread, low_new_fork, low_forget_process,
7437 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7438 New virtual methods.
7439 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7440 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7441 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7442 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7443 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7444 Delete.
7445 * linux-fork.c (delete_fork): Adjust to call low method.
7446 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7447 (linux_nat_new_fork, linux_nat_forget_process_hook)
7448 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7449 (linux_nat_status_is_event):
7450 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7451 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7452 to call low method.
7453 (sigtrap_is_event): Rename to ...
7454 (linux_nat_target::low_status_is_event): ... this.
7455 (linux_nat_set_status_is_event): Delete.
7456 (save_stop_reason, linux_nat_wait_1)
7457 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7458 low methods.
7459 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7460 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7461 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7462 (linux_nat_set_prepare_to_resume): Delete.
7463 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7464 low virtual methods.
7465 * amd64-linux-nat.c: Likewise.
7466 * arm-linux-nat.c: Likewise.
7467 * i386-linux-nat.c: Likewise.
7468 * ia64-linux-nat.c: Likewise.
7469 * mips-linux-nat.c: Likewise.
7470 * ppc-linux-nat.c: Likewise.
7471 * s390-linux-nat.c: Likewise.
7472 * sparc64-linux-nat.c: Likewise.
7473 * x86-linux-nat.c: Likewise.
7474 * x86-linux-nat.h: Include "nat/x86-linux.h".
7475 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7476 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7477 Override methods.
7478
7479 2018-05-02 Pedro Alves <palves@redhat.com>
7480
7481 * target.h (target_ops)
7482 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7483 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7484 stopped_by_watchpoint, have_continuable_watchpoint,
7485 stopped_data_address, watchpoint_addr_within_range,
7486 can_accel_watchpoint_condition, can_run, thread_alive,
7487 has_all_memory, has_memory, has_stack, has_registers,
7488 has_execution, can_async_p, is_async_p, supports_non_stop,
7489 always_non_stop_p, can_execute_reverse, supports_multi_process,
7490 supports_enable_disable_tracepoint,
7491 supports_disable_randomization, supports_string_tracing,
7492 supports_evaluation_of_breakpoint_conditions,
7493 can_run_breakpoint_commands, filesystem_is_local,
7494 can_download_tracepoint, get_trace_state_variable_value,
7495 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7496 record_is_replaying, record_will_replay,
7497 augmented_libraries_svr4_read>: Adjust to return bool.
7498 * aarch64-linux-nat.c: All implementations adjusted.
7499 * aix-thread.c: All implementations adjusted.
7500 * arm-linux-nat.c: All implementations adjusted.
7501 * breakpoint.c: All implementations adjusted.
7502 * bsd-kvm.c: All implementations adjusted.
7503 * bsd-uthread.c: All implementations adjusted.
7504 * corelow.c: All implementations adjusted.
7505 * ctf.c: All implementations adjusted.
7506 * darwin-nat.c: All implementations adjusted.
7507 * darwin-nat.h: All implementations adjusted.
7508 * exec.c: All implementations adjusted.
7509 * fbsd-nat.c: All implementations adjusted.
7510 * fbsd-nat.h: All implementations adjusted.
7511 * gnu-nat.c: All implementations adjusted.
7512 * gnu-nat.h: All implementations adjusted.
7513 * go32-nat.c: All implementations adjusted.
7514 * ia64-linux-nat.c: All implementations adjusted.
7515 * inf-child.c: All implementations adjusted.
7516 * inf-child.h: All implementations adjusted.
7517 * inf-ptrace.c: All implementations adjusted.
7518 * inf-ptrace.h: All implementations adjusted.
7519 * linux-nat.c: All implementations adjusted.
7520 * linux-nat.h: All implementations adjusted.
7521 * mips-linux-nat.c: All implementations adjusted.
7522 * nto-procfs.c: All implementations adjusted.
7523 * ppc-linux-nat.c: All implementations adjusted.
7524 * procfs.c: All implementations adjusted.
7525 * ravenscar-thread.c: All implementations adjusted.
7526 * record-btrace.c: All implementations adjusted.
7527 * record-full.c: All implementations adjusted.
7528 * remote-sim.c: All implementations adjusted.
7529 * remote.c: All implementations adjusted.
7530 * s390-linux-nat.c: All implementations adjusted.
7531 * sol-thread.c: All implementations adjusted.
7532 * spu-multiarch.c: All implementations adjusted.
7533 * target-delegates.c: All implementations adjusted.
7534 * target.c: All implementations adjusted.
7535 * target.h: All implementations adjusted.
7536 * tracefile-tfile.c: All implementations adjusted.
7537 * tracefile.c: All implementations adjusted.
7538 * tracefile.h: All implementations adjusted.
7539 * windows-nat.c: All implementations adjusted.
7540 * x86-linux-nat.h: All implementations adjusted.
7541 * x86-nat.h: All implementations adjusted.
7542
7543 2018-05-02 Pedro Alves <palves@redhat.com>
7544
7545 * make-target-delegates (scan_target_h): Don't trim lines here.
7546 Replace sequences of tabs and/or whitespace with a single
7547 whitespace.
7548 (top level, parsing methods): Trim each line before processing it
7549 here.
7550
7551 2018-05-02 Pedro Alves <palves@redhat.com>
7552 John Baldwin <jhb@freebsd.org>
7553
7554 * target.h (enum strata) <debug_stratum>: New.
7555 (struct target_ops) <all delegation methods>: Replace by C++
7556 virtual methods, and drop "to_" prefix. All references updated
7557 throughout.
7558 <to_shortname, to_longname, to_doc, to_data,
7559 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
7560 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
7561 virtual methods. All references updated throughout.
7562 <can_attach, supports_terminal_ours, can_create_inferior,
7563 get_thread_control_capabilities, attach_no_wait>: New
7564 virtual methods.
7565 <insert_breakpoint, remove_breakpoint>: Now
7566 TARGET_DEFAULT_NORETURN methods.
7567 <info_proc>: Now returns bool.
7568 <to_magic>: Delete.
7569 (OPS_MAGIC): Delete.
7570 (current_target): Delete. All references replaced by references
7571 to ...
7572 (target_stack): ... this. New.
7573 (target_shortname, target_longname): Adjust.
7574 (target_can_run): Now a function declaration.
7575 (default_child_has_all_memory, default_child_has_memory)
7576 (default_child_has_stack, default_child_has_registers)
7577 (default_child_has_execution): Remove target_ops parameter.
7578 (complete_target_initialization): Delete.
7579 (memory_breakpoint_target): New template class.
7580 (test_target_ops): Refactor as a C++ class with virtual methods.
7581 * make-target-delegates (NAME_PART): Tighten.
7582 (POINTER_PART, CP_SYMBOL): New.
7583 (SIMPLE_RETURN_PART): Reimplement.
7584 (VEC_RETURN_PART): Expect less.
7585 (RETURN_PART, VIRTUAL_PART): New.
7586 (METHOD): Adjust to C++ virtual methods.
7587 (scan_target_h): Remove reference to C99.
7588 (dname): Output "target_ops::" prefix.
7589 (write_function_header): Adjust to output a C++ class method.
7590 (write_declaration): New.
7591 (write_delegator): Adjust to output a C++ class method.
7592 (tdname): Output "dummy_target::" prefix.
7593 (write_tdefault, write_debugmethod): Adjust to output a C++ class
7594 method.
7595 (tdefault_names, debug_names): Delete.
7596 (return_types, tdefaults, styles, argtypes_array): New.
7597 (top level): All methods are delegators.
7598 (print_class): New.
7599 (top level): Print dummy_target and debug_target classes.
7600 * target-delegates.c: Regenerate.
7601 * target-debug.h (target_debug_print_enum_info_proc_what)
7602 (target_debug_print_thread_control_capabilities)
7603 (target_debug_print_thread_info_p): New.
7604 * target.c (dummy_target): Delete.
7605 (the_dummy_target, the_debug_target): New.
7606 (target_stack): Now extern.
7607 (set_targetdebug): Push/unpush debug target.
7608 (default_child_has_all_memory, default_child_has_memory)
7609 (default_child_has_stack, default_child_has_registers)
7610 (default_child_has_execution): Remove target_ops parameter.
7611 (complete_target_initialization): Delete.
7612 (add_target_with_completer): No longer call
7613 complete_target_initialization.
7614 (target_supports_terminal_ours): Use regular delegation.
7615 (update_current_target): Delete.
7616 (push_target): No longer check magic number. Don't call
7617 update_current_target.
7618 (unpush_target): Don't call update_current_target.
7619 (target_is_pushed): No longer check magic number.
7620 (target_require_runnable): Skip for all stratums over
7621 process_stratum.
7622 (target_ops::info_proc): New.
7623 (target_info_proc): Use find_target_at and
7624 find_default_run_target.
7625 (target_supports_disable_randomization): Use regular delegation.
7626 (target_get_osdata): Use find_target_at.
7627 (target_ops::open, target_ops::close, target_ops::can_attach)
7628 (target_ops::attach, target_ops::can_create_inferior)
7629 (target_ops::create_inferior, target_ops::can_run)
7630 (target_can_run): New.
7631 (default_fileio_target): Use regular delegation.
7632 (target_ops::fileio_open, target_ops::fileio_pwrite)
7633 (target_ops::fileio_pread, target_ops::fileio_fstat)
7634 (target_ops::fileio_close, target_ops::fileio_unlink)
7635 (target_ops::fileio_readlink): New.
7636 (target_fileio_open_1, target_fileio_unlink)
7637 (target_fileio_readlink): Always call the target method. Handle
7638 FILEIO_ENOSYS.
7639 (return_zero, return_zero_has_execution): Delete.
7640 (init_dummy_target): Delete.
7641 (dummy_target::dummy_target, dummy_target::shortname)
7642 (dummy_target::longname, dummy_target::doc)
7643 (debug_target::debug_target, debug_target::shortname)
7644 (debug_target::longname, debug_target::doc): New.
7645 (target_supports_delete_record): Use regular delegation.
7646 (setup_target_debug): Delete.
7647 (maintenance_print_target_stack): Skip debug_stratum.
7648 (initialize_targets): Instantiate the_dummy_target and
7649 the_debug_target.
7650 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
7651 use target_stack.
7652 (target_auxv_search, fprint_target_auxv): Adjust.
7653 (info_auxv_command): Adjust to use target_stack.
7654 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
7655 * exceptions.c (print_flush): Handle a NULL target_stack.
7656 * regcache.c (target_ops_no_register): Refactor as class with
7657 virtual methods.
7658
7659 * exec.c (exec_target): New class.
7660 (exec_ops): Now an exec_target.
7661 (exec_open, exec_close_1, exec_get_section_table)
7662 (exec_xfer_partial, exec_files_info, exec_has_memory)
7663 (exec_make_note_section): Refactor as exec_target methods.
7664 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
7665 Delete.
7666 (exec_target::find_memory_regions): New.
7667 (_initialize_exec): Don't call init_exec_ops.
7668 * gdbcore.h (exec_file_clear): Delete.
7669
7670 * corefile.c (core_target): Delete.
7671 (core_file_command): Adjust.
7672 * corelow.c (core_target): New class.
7673 (the_core_target): New.
7674 (core_close): Remove target_ops parameter.
7675 (core_close_cleanup): Adjust.
7676 (core_target::close): New.
7677 (core_open, core_detach, get_core_registers, core_files_info)
7678 (core_xfer_partial, core_thread_alive, core_read_description)
7679 (core_pid_to_str, core_thread_name, core_has_memory)
7680 (core_has_stack, core_has_registers, core_info_proc): Rework as
7681 core_target methods.
7682 (ignore, core_remove_breakpoint, init_core_ops): Delete.
7683 (_initialize_corelow): Initialize the_core_target.
7684 * gdbcore.h (core_target): Delete.
7685 (the_core_target): New.
7686
7687 * ctf.c: (ctf_target): New class.
7688 (ctf_ops): Now a ctf_target.
7689 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
7690 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
7691 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
7692 methods.
7693 (init_ctf_ops): Delete.
7694 (_initialize_ctf): Don't call it.
7695 * tracefile-tfile.c (tfile_target): New class.
7696 (tfile_ops): Now a tfile_target.
7697 (tfile_open, tfile_close, tfile_files_info)
7698 (tfile_get_tracepoint_status, tfile_trace_find)
7699 (tfile_fetch_registers, tfile_xfer_partial)
7700 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
7701 Refactor as tfile_target methods.
7702 (tfile_xfer_partial_features): Remove target_ops parameter.
7703 (init_tfile_ops): Delete.
7704 (_initialize_tracefile_tfile): Don't call it.
7705 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
7706 (tracefile_has_stack, tracefile_has_registers)
7707 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
7708 tracefile_target methods.
7709 (init_tracefile_ops): Delete.
7710 (tracefile_target::tracefile_target): New.
7711 * tracefile.h: Include "target.h".
7712 (tracefile_target): New class.
7713 (init_tracefile_ops): Delete.
7714
7715 * spu-multiarch.c (spu_multiarch_target): New class.
7716 (spu_ops): Now a spu_multiarch_target.
7717 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
7718 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
7719 (spu_search_memory, spu_mourn_inferior): Refactor as
7720 spu_multiarch_target methods.
7721 (init_spu_ops): Delete.
7722 (_initialize_spu_multiarch): Remove references to init_spu_ops,
7723 complete_target_initialization.
7724
7725 * ravenscar-thread.c (ravenscar_thread_target): New class.
7726 (ravenscar_ops): Now a ravenscar_thread_target.
7727 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
7728 (ravenscar_thread_alive, ravenscar_pid_to_str)
7729 (ravenscar_fetch_registers, ravenscar_store_registers)
7730 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
7731 (ravenscar_stopped_by_hw_breakpoint)
7732 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
7733 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
7734 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
7735 methods.
7736 (init_ravenscar_thread_ops): Delete.
7737 (_initialize_ravenscar): Remove references to
7738 init_ravenscar_thread_ops and complete_target_initialization.
7739
7740 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
7741 (bsd_uthread_target): New class.
7742 (bsd_uthread_ops): Now a bsd_uthread_target.
7743 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
7744 (bsd_uthread_close, bsd_uthread_mourn_inferior)
7745 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
7746 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
7747 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
7748 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
7749 (bsd_uthread_target): Delete function.
7750 (_initialize_bsd_uthread): Remove reference to
7751 complete_target_initialization.
7752
7753 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
7754 (target_bfd): ... this new class.
7755 (target_bfd_xfer_partial, target_bfd_get_section_table)
7756 (target_bfd_close): Refactor as target_bfd methods.
7757 (target_bfd::~target_bfd): New.
7758 (target_bfd_reopen): Adjust.
7759 (target_bfd::close): New.
7760
7761 * record-btrace.c (record_btrace_target): New class.
7762 (record_btrace_ops): Now a record_btrace_target.
7763 (record_btrace_open, record_btrace_stop_recording)
7764 (record_btrace_disconnect, record_btrace_close)
7765 (record_btrace_async, record_btrace_info)
7766 (record_btrace_insn_history, record_btrace_insn_history_range)
7767 (record_btrace_insn_history_from, record_btrace_call_history)
7768 (record_btrace_call_history_range)
7769 (record_btrace_call_history_from, record_btrace_record_method)
7770 (record_btrace_is_replaying, record_btrace_will_replay)
7771 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7772 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
7773 (record_btrace_store_registers, record_btrace_prepare_to_store)
7774 (record_btrace_to_get_unwinder)
7775 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
7776 (record_btrace_commit_resume, record_btrace_wait)
7777 (record_btrace_stop, record_btrace_can_execute_reverse)
7778 (record_btrace_stopped_by_sw_breakpoint)
7779 (record_btrace_supports_stopped_by_sw_breakpoint)
7780 (record_btrace_stopped_by_hw_breakpoint)
7781 (record_btrace_supports_stopped_by_hw_breakpoint)
7782 (record_btrace_update_thread_list, record_btrace_thread_alive)
7783 (record_btrace_goto_begin, record_btrace_goto_end)
7784 (record_btrace_goto, record_btrace_stop_replaying_all)
7785 (record_btrace_execution_direction)
7786 (record_btrace_prepare_to_generate_core)
7787 (record_btrace_done_generating_core): Refactor as
7788 record_btrace_target methods.
7789 (init_record_btrace_ops): Delete.
7790 (_initialize_record_btrace): Remove reference to
7791 init_record_btrace_ops.
7792 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
7793 the execution_direction global.
7794 (record_full_base_target, record_full_target)
7795 (record_full_core_target): New classes.
7796 (record_full_ops): Now a record_full_target.
7797 (record_full_core_ops): Now a record_full_core_target.
7798 (record_full_target::detach, record_full_target::disconnect)
7799 (record_full_core_target::disconnect)
7800 (record_full_target::mourn_inferior, record_full_target::kill):
7801 New.
7802 (record_full_open, record_full_close, record_full_async): Refactor
7803 as methods of the record_full_base_target class.
7804 (record_full_resume, record_full_commit_resume): Refactor
7805 as methods of the record_full_target class.
7806 (record_full_wait, record_full_stopped_by_watchpoint)
7807 (record_full_stopped_data_address)
7808 (record_full_stopped_by_sw_breakpoint)
7809 (record_full_supports_stopped_by_sw_breakpoint)
7810 (record_full_stopped_by_hw_breakpoint)
7811 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
7812 methods of the record_full_base_target class.
7813 (record_full_store_registers, record_full_xfer_partial)
7814 (record_full_insert_breakpoint, record_full_remove_breakpoint):
7815 Refactor as methods of the record_full_target class.
7816 (record_full_can_execute_reverse, record_full_get_bookmark)
7817 (record_full_goto_bookmark, record_full_execution_direction)
7818 (record_full_record_method, record_full_info, record_full_delete)
7819 (record_full_is_replaying, record_full_will_replay)
7820 (record_full_goto_begin, record_full_goto_end, record_full_goto)
7821 (record_full_stop_replaying): Refactor as methods of the
7822 record_full_base_target class.
7823 (record_full_core_resume, record_full_core_kill)
7824 (record_full_core_fetch_registers)
7825 (record_full_core_prepare_to_store)
7826 (record_full_core_store_registers, record_full_core_xfer_partial)
7827 (record_full_core_insert_breakpoint)
7828 (record_full_core_remove_breakpoint)
7829 (record_full_core_has_execution): Refactor
7830 as methods of the record_full_core_target class.
7831 (record_full_base_target::supports_delete_record): New.
7832 (init_record_full_ops): Delete.
7833 (init_record_full_core_ops): Delete.
7834 (record_full_save): Refactor as method of the
7835 record_full_base_target class.
7836 (_initialize_record_full): Remove references to
7837 init_record_full_ops and init_record_full_core_ops.
7838
7839 * remote.c (remote_target, extended_remote_target): New classes.
7840 (remote_ops): Now a remote_target.
7841 (extended_remote_ops): Now an extended_remote_target.
7842 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
7843 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
7844 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
7845 (remote_pass_signals, remote_set_syscall_catchpoint)
7846 (remote_program_signals, )
7847 (remote_thread_always_alive): Remove target_ops parameter.
7848 (remote_thread_alive, remote_thread_name)
7849 (remote_update_thread_list, remote_threads_extra_info)
7850 (remote_static_tracepoint_marker_at)
7851 (remote_static_tracepoint_markers_by_strid)
7852 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
7853 (remote_open): Refactor as methods of remote_target.
7854 (extended_remote_open, extended_remote_detach)
7855 (extended_remote_attach, extended_remote_post_attach):
7856 (extended_remote_supports_disable_randomization)
7857 (extended_remote_create_inferior): : Refactor as method of
7858 extended_remote_target.
7859 (remote_set_permissions, remote_open_1, remote_detach)
7860 (remote_follow_fork, remote_follow_exec, remote_disconnect)
7861 (remote_resume, remote_commit_resume, remote_stop)
7862 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
7863 (remote_terminal_ours, remote_wait, remote_fetch_registers)
7864 (remote_prepare_to_store, remote_store_registers)
7865 (remote_flash_erase, remote_flash_done, remote_files_info)
7866 (remote_kill, remote_mourn, remote_insert_breakpoint)
7867 (remote_remove_breakpoint, remote_insert_watchpoint)
7868 (remote_watchpoint_addr_within_range)
7869 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
7870 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
7871 (remote_supports_stopped_by_sw_breakpoint)
7872 (remote_stopped_by_hw_breakpoint)
7873 (remote_supports_stopped_by_hw_breakpoint)
7874 (remote_stopped_by_watchpoint, remote_stopped_data_address)
7875 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
7876 (remote_verify_memory): Refactor as methods of remote_target.
7877 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
7878 parameter.
7879 (remote_xfer_partial, remote_get_memory_xfer_limit)
7880 (remote_search_memory, remote_rcmd, remote_memory_map)
7881 (remote_pid_to_str, remote_get_thread_local_address)
7882 (remote_get_tib_address, remote_read_description): Refactor as
7883 methods of remote_target.
7884 (remote_target::fileio_open, remote_target::fileio_pwrite)
7885 (remote_target::fileio_pread, remote_target::fileio_close): New.
7886 (remote_hostio_readlink, remote_hostio_fstat)
7887 (remote_filesystem_is_local, remote_can_execute_reverse)
7888 (remote_supports_non_stop, remote_supports_disable_randomization)
7889 (remote_supports_multi_process, remote_supports_cond_breakpoints)
7890 (remote_supports_enable_disable_tracepoint)
7891 (remote_supports_string_tracing)
7892 (remote_can_run_breakpoint_commands, remote_trace_init)
7893 (remote_download_tracepoint, remote_can_download_tracepoint)
7894 (remote_download_trace_state_variable, remote_enable_tracepoint)
7895 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
7896 (remote_trace_start, remote_get_trace_status)
7897 (remote_get_tracepoint_status, remote_trace_stop)
7898 (remote_trace_find, remote_get_trace_state_variable_value)
7899 (remote_save_trace_data, remote_get_raw_trace_data)
7900 (remote_set_disconnected_tracing, remote_core_of_thread)
7901 (remote_set_circular_trace_buffer, remote_traceframe_info)
7902 (remote_get_min_fast_tracepoint_insn_len)
7903 (remote_set_trace_buffer_size, remote_set_trace_notes)
7904 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
7905 (remote_disable_btrace, remote_teardown_btrace)
7906 (remote_read_btrace, remote_btrace_conf)
7907 (remote_augmented_libraries_svr4_read, remote_load)
7908 (remote_pid_to_exec_file, remote_can_do_single_step)
7909 (remote_execution_direction, remote_thread_handle_to_thread_info):
7910 Refactor as methods of remote_target.
7911 (init_remote_ops, init_extended_remote_ops): Delete.
7912 (remote_can_async_p, remote_is_async_p, remote_async)
7913 (remote_thread_events, remote_upload_tracepoints)
7914 (remote_upload_trace_state_variables): Refactor as methods of
7915 remote_target.
7916 (_initialize_remote): Remove references to init_remote_ops and
7917 init_extended_remote_ops.
7918
7919 * remote-sim.c (gdbsim_target): New class.
7920 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
7921 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
7922 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
7923 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
7924 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
7925 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
7926 Refactor as methods of gdbsim_target.
7927 (gdbsim_ops): Now a gdbsim_target.
7928 (init_gdbsim_ops): Delete.
7929 (gdbsim_cntrl_c): Adjust.
7930 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
7931
7932 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
7933 (the_amd64_linux_nat_target): New.
7934 (amd64_linux_fetch_inferior_registers)
7935 (amd64_linux_store_inferior_registers): Refactor as methods of
7936 amd64_linux_nat_target.
7937 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
7938 * i386-linux-nat.c: Don't include "linux-nat.h".
7939 (i386_linux_nat_target): New class.
7940 (the_i386_linux_nat_target): New.
7941 (i386_linux_fetch_inferior_registers)
7942 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
7943 as methods of i386_linux_nat_target.
7944 (_initialize_i386_linux_nat): Adjust. Set linux_target.
7945 * inf-child.c (inf_child_ops): Delete.
7946 (inf_child_fetch_inferior_registers)
7947 (inf_child_store_inferior_registers): Delete.
7948 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
7949 methods of inf_child_target.
7950 (inf_child_target::supports_terminal_ours)
7951 (inf_child_target::terminal_init)
7952 (inf_child_target::terminal_inferior)
7953 (inf_child_target::terminal_ours_for_output)
7954 (inf_child_target::terminal_ours, inf_child_target::interrupt)
7955 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
7956 New.
7957 (inf_child_open, inf_child_disconnect, inf_child_close)
7958 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
7959 (inf_child_post_startup_inferior, inf_child_can_run)
7960 (inf_child_pid_to_exec_file): Refactor as methods of
7961 inf_child_target.
7962 (inf_child_follow_fork): Delete.
7963 (inf_child_target::can_create_inferior)
7964 (inf_child_target::can_attach): New.
7965 (inf_child_target::has_all_memory, inf_child_target::has_memory)
7966 (inf_child_target::has_stack, inf_child_target::has_registers)
7967 (inf_child_target::has_execution): New.
7968 (inf_child_fileio_open, inf_child_fileio_pwrite)
7969 (inf_child_fileio_pread, inf_child_fileio_fstat)
7970 (inf_child_fileio_close, inf_child_fileio_unlink)
7971 (inf_child_fileio_readlink, inf_child_use_agent)
7972 (inf_child_can_use_agent): Refactor as methods of
7973 inf_child_target.
7974 (return_zero, inf_child_target): Delete.
7975 (inf_child_target::inf_child_target): New.
7976 * inf-child.h: Include "target.h".
7977 (inf_child_target): Delete function prototype.
7978 (inf_child_target): New class.
7979 (inf_child_open_target, inf_child_mourn_inferior)
7980 (inf_child_maybe_unpush_target): Delete.
7981 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
7982 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
7983 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
7984 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
7985 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
7986 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
7987 (inf_ptrace_wait, inf_ptrace_xfer_partial)
7988 (inf_ptrace_thread_alive, inf_ptrace_files_info)
7989 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
7990 methods of inf_ptrace_target.
7991 (inf_ptrace_target): Delete function.
7992 * inf-ptrace.h: Include "inf-child.h".
7993 (inf_ptrace_target): Delete function declaration.
7994 (inf_ptrace_target): New class.
7995 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
7996 * linux-nat.c (linux_target): New.
7997 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
7998 (linux_nat_target::~linux_nat_target): New.
7999 (linux_child_post_attach, linux_child_post_startup_inferior)
8000 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8001 (linux_child_remove_fork_catchpoint)
8002 (linux_child_insert_vfork_catchpoint)
8003 (linux_child_remove_vfork_catchpoint)
8004 (linux_child_insert_exec_catchpoint)
8005 (linux_child_remove_exec_catchpoint)
8006 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8007 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8008 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8009 (linux_nat_stopped_data_address)
8010 (linux_nat_stopped_by_sw_breakpoint)
8011 (linux_nat_supports_stopped_by_sw_breakpoint)
8012 (linux_nat_stopped_by_hw_breakpoint)
8013 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8014 (linux_nat_kill, linux_nat_mourn_inferior)
8015 (linux_nat_xfer_partial, linux_nat_thread_alive)
8016 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8017 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8018 (linux_child_static_tracepoint_markers_by_strid)
8019 (linux_nat_is_async_p, linux_nat_can_async_p)
8020 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8021 (linux_nat_supports_multi_process)
8022 (linux_nat_supports_disable_randomization, linux_nat_async)
8023 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8024 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8025 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8026 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8027 methods of linux_nat_target.
8028 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8029 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8030 parameter.
8031 (check_stopped_by_watchpoint): Adjust.
8032 (linux_xfer_partial): Delete.
8033 (linux_target_install_ops, linux_target, linux_nat_add_target):
8034 Delete.
8035 (linux_nat_target::linux_nat_target): New.
8036 * linux-nat.h: Include "inf-ptrace.h".
8037 (linux_nat_target): New.
8038 (linux_target, linux_target_install_ops, linux_nat_add_target):
8039 Delete function declarations.
8040 (linux_target): Declare global.
8041 * linux-thread-db.c (thread_db_target): New.
8042 (thread_db_target::thread_db_target): New.
8043 (thread_db_ops): Delete.
8044 (the_thread_db_target): New.
8045 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8046 (thread_db_update_thread_list, thread_db_pid_to_str)
8047 (thread_db_extra_thread_info)
8048 (thread_db_thread_handle_to_thread_info)
8049 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8050 (thread_db_resume): Refactor as methods of thread_db_target.
8051 (init_thread_db_ops): Delete.
8052 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8053 * x86-linux-nat.c: Don't include "linux-nat.h".
8054 (super_post_startup_inferior): Delete.
8055 (x86_linux_nat_target::~x86_linux_nat_target): New.
8056 (x86_linux_child_post_startup_inferior)
8057 (x86_linux_read_description, x86_linux_enable_btrace)
8058 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8059 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8060 methods of x86_linux_nat_target.
8061 (x86_linux_create_target): Delete. Bits folded ...
8062 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8063 pointer.
8064 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8065 (x86_linux_nat_target): New class.
8066 (x86_linux_create_target): Delete.
8067 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8068 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8069 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8070 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8071 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8072 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8073 make extern.
8074 (x86_use_watchpoints): Delete.
8075 * x86-nat.h: Include "breakpoint.h" and "target.h".
8076 (x86_use_watchpoints): Delete.
8077 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8078 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8079 (x86_insert_watchpoint, x86_remove_watchpoint)
8080 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8081 (x86_stopped_by_hw_breakpoint): New declarations.
8082 (x86_nat_target): New template class.
8083
8084 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8085 (the_ppc_linux_nat_target): New.
8086 (ppc_linux_fetch_inferior_registers)
8087 (ppc_linux_can_use_hw_breakpoint)
8088 (ppc_linux_region_ok_for_hw_watchpoint)
8089 (ppc_linux_ranged_break_num_registers)
8090 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8091 (ppc_linux_insert_mask_watchpoint)
8092 (ppc_linux_remove_mask_watchpoint)
8093 (ppc_linux_can_accel_watchpoint_condition)
8094 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8095 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8096 (ppc_linux_watchpoint_addr_within_range)
8097 (ppc_linux_masked_watch_num_registers)
8098 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8099 (ppc_linux_read_description): Refactor as methods of
8100 ppc_linux_nat_target.
8101 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8102
8103 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8104 (procfs_target): New class.
8105 (the_procfs_target): New.
8106 (procfs_target): Delete function.
8107 (procfs_auxv_parse, procfs_attach, procfs_detach)
8108 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8109 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8110 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8111 (procfs_create_inferior, procfs_update_thread_list)
8112 (procfs_thread_alive, procfs_pid_to_str)
8113 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8114 (procfs_stopped_data_address, procfs_insert_watchpoint)
8115 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8116 (proc_find_memory_regions, procfs_info_proc)
8117 (procfs_make_note_section): Refactor as methods of procfs_target.
8118 (_initialize_procfs): Adjust.
8119 * sol-thread.c (sol_thread_target): New class.
8120 (sol_thread_ops): Now a sol_thread_target.
8121 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8122 (sol_thread_fetch_registers, sol_thread_store_registers)
8123 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8124 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8125 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8126 (init_sol_thread_ops): Delete.
8127 (_initialize_sol_thread): Adjust. Remove references to
8128 init_sol_thread_ops and complete_target_initialization.
8129
8130 * windows-nat.c (windows_nat_target): New class.
8131 (windows_fetch_inferior_registers)
8132 (windows_store_inferior_registers, windows_resume, windows_wait)
8133 (windows_attach, windows_detach, windows_pid_to_exec_file)
8134 (windows_files_info, windows_create_inferior)
8135 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8136 (windows_close, windows_pid_to_str, windows_xfer_partial)
8137 (windows_get_tib_address, windows_get_ada_task_ptid)
8138 (windows_thread_name, windows_thread_alive): Refactor as
8139 windows_nat_target methods.
8140 (do_initial_windows_stuff): Adjust.
8141 (windows_target): Delete function.
8142 (_initialize_windows_nat): Adjust.
8143
8144 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8145 (darwin_mourn_inferior, darwin_kill_inferior)
8146 (darwin_create_inferior, darwin_attach, darwin_detach)
8147 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8148 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8149 (darwin_supports_multi_process): Refactor as darwin_nat_target
8150 methods.
8151 (darwin_resume_to, darwin_files_info): Delete.
8152 (_initialize_darwin_inferior): Rename to ...
8153 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8154 * darwin-nat.h: Include "inf-child.h".
8155 (darwin_nat_target): New class.
8156 (darwin_complete_target): Delete.
8157 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8158 (darwin_target): New.
8159 (i386_darwin_fetch_inferior_registers)
8160 (i386_darwin_store_inferior_registers): Refactor as methods of
8161 darwin_nat_target.
8162 (darwin_complete_target): Delete, with ...
8163 (_initialize_i386_darwin_nat): ... bits factored out here.
8164
8165 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8166 (the_alpha_linux_nat_target): New.
8167 (alpha_linux_register_u_offset): Refactor as
8168 alpha_linux_nat_target method.
8169 (_initialize_alpha_linux_nat): Adjust.
8170 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8171 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8172 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8173 methods of linux_nat_trad_target.
8174 (linux_trad_target): Delete.
8175 * linux-nat-trad.h (linux_trad_target): Delete function.
8176 (linux_nat_trad_target): New class.
8177 * mips-linux-nat.c (mips_linux_nat_target): New class.
8178 (super_fetch_registers, super_store_registers, super_close):
8179 Delete.
8180 (the_mips_linux_nat_target): New.
8181 (mips64_linux_regsets_fetch_registers)
8182 (mips64_linux_regsets_store_registers)
8183 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8184 (mips_linux_register_u_offset, mips_linux_read_description)
8185 (mips_linux_can_use_hw_breakpoint)
8186 (mips_linux_stopped_by_watchpoint)
8187 (mips_linux_stopped_data_address)
8188 (mips_linux_region_ok_for_hw_watchpoint)
8189 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8190 (mips_linux_close): Refactor as methods of mips_linux_nat.
8191 (_initialize_mips_linux_nat): Adjust to C++ification.
8192
8193 * aix-thread.c (aix_thread_target): New class.
8194 (aix_thread_ops): Now an aix_thread_target.
8195 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8196 (aix_thread_fetch_registers, aix_thread_store_registers)
8197 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8198 (aix_thread_thread_alive, aix_thread_pid_to_str)
8199 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8200 Refactor as methods of aix_thread_target.
8201 (init_aix_thread_ops): Delete.
8202 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8203 and complete_target_initialization.
8204 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8205 (rs6000_nat_target): New class.
8206 (the_rs6000_nat_target): New.
8207 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8208 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8209 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8210 (super_create_inferior): Delete.
8211 (_initialize_rs6000_nat): Adjust to C++ification.
8212
8213 * arm-linux-nat.c (arm_linux_nat_target): New class.
8214 (the_arm_linux_nat_target): New.
8215 (arm_linux_fetch_inferior_registers)
8216 (arm_linux_store_inferior_registers, arm_linux_read_description)
8217 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8218 (arm_linux_remove_hw_breakpoint)
8219 (arm_linux_region_ok_for_hw_watchpoint)
8220 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8221 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8222 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8223 arm_linux_nat_target.
8224 (_initialize_arm_linux_nat): Adjust to C++ification.
8225
8226 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8227 (the_aarch64_linux_nat_target): New.
8228 (aarch64_linux_fetch_inferior_registers)
8229 (aarch64_linux_store_inferior_registers)
8230 (aarch64_linux_child_post_startup_inferior)
8231 (aarch64_linux_read_description)
8232 (aarch64_linux_can_use_hw_breakpoint)
8233 (aarch64_linux_insert_hw_breakpoint)
8234 (aarch64_linux_remove_hw_breakpoint)
8235 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8236 (aarch64_linux_region_ok_for_hw_watchpoint)
8237 (aarch64_linux_stopped_data_address)
8238 (aarch64_linux_stopped_by_watchpoint)
8239 (aarch64_linux_watchpoint_addr_within_range)
8240 (aarch64_linux_can_do_single_step): Refactor as methods of
8241 aarch64_linux_nat_target.
8242 (super_post_startup_inferior): Delete.
8243 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8244
8245 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8246 (the_hppa_linux_nat_target): New.
8247 (hppa_linux_fetch_inferior_registers)
8248 (hppa_linux_store_inferior_registers): Refactor as methods of
8249 hppa_linux_nat_target.
8250 (_initialize_hppa_linux_nat): Adjust to C++ification.
8251
8252 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8253 (the_ia64_linux_nat_target): New.
8254 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8255 (ia64_linux_stopped_data_address)
8256 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8257 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8258 ia64_linux_nat_target methods.
8259 (super_xfer_partial): Delete.
8260 (_initialize_ia64_linux_nat): Adjust to C++ification.
8261
8262 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8263 (the_m32r_linux_nat_target): New.
8264 (m32r_linux_fetch_inferior_registers)
8265 (m32r_linux_store_inferior_registers): Refactor as
8266 m32r_linux_nat_target methods.
8267 (_initialize_m32r_linux_nat): Adjust to C++ification.
8268
8269 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8270 (the_m68k_linux_nat_target): New.
8271 (m68k_linux_fetch_inferior_registers)
8272 (m68k_linux_store_inferior_registers): Refactor as
8273 m68k_linux_nat_target methods.
8274 (_initialize_m68k_linux_nat): Adjust to C++ification.
8275
8276 * s390-linux-nat.c (s390_linux_nat_target): New class.
8277 (the_s390_linux_nat_target): New.
8278 (s390_linux_fetch_inferior_registers)
8279 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8280 (s390_insert_watchpoint, s390_remove_watchpoint)
8281 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8282 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8283 (s390_auxv_parse, s390_read_description): Refactor as methods of
8284 s390_linux_nat_target.
8285 (_initialize_s390_nat): Adjust to C++ification.
8286
8287 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8288 (the_sparc_linux_nat_target): New.
8289 (_initialize_sparc_linux_nat): Adjust to C++ification.
8290 * sparc-nat.c (sparc_fetch_inferior_registers)
8291 (sparc_store_inferior_registers): Remove target_ops parameter.
8292 * sparc-nat.h (sparc_fetch_inferior_registers)
8293 (sparc_store_inferior_registers): Remove target_ops parameter.
8294 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8295 (the_sparc64_linux_nat_target): New.
8296 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8297
8298 * spu-linux-nat.c (spu_linux_nat_target): New class.
8299 (the_spu_linux_nat_target): New.
8300 (spu_child_post_startup_inferior, spu_child_post_attach)
8301 (spu_child_wait, spu_fetch_inferior_registers)
8302 (spu_store_inferior_registers, spu_xfer_partial)
8303 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8304 methods.
8305 (_initialize_spu_nat): Adjust to C++ification.
8306
8307 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8308 (the_tilegx_linux_nat_target): New.
8309 (fetch_inferior_registers, store_inferior_registers):
8310 Refactor as methods.
8311 (_initialize_tile_linux_nat): Adjust to C++ification.
8312
8313 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8314 (the_xtensa_linux_nat_target): New.
8315 (xtensa_linux_fetch_inferior_registers)
8316 (xtensa_linux_store_inferior_registers): Refactor as
8317 xtensa_linux_nat_target methods.
8318 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8319
8320 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8321 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8322 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8323 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8324 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8325 (fbsd_stopped_by_sw_breakpoint)
8326 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8327 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8328 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8329 (fbsd_post_startup_inferior, fbsd_post_attach)
8330 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8331 (fbsd_set_syscall_catchpoint)
8332 (super_xfer_partial, super_resume, super_wait)
8333 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8334 (fbsd_handle_debug_trap): Remove target_ops parameter.
8335 (fbsd_nat_add_target): Delete.
8336 * fbsd-nat.h: Include "inf-ptrace.h".
8337 (fbsd_nat_add_target): Delete.
8338 (USE_SIGTRAP_SIGINFO): Define.
8339 (fbsd_nat_target): New class.
8340
8341 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8342 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8343 (amd64bsd_target): Delete.
8344 * amd64-bsd-nat.h: New file.
8345 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8346 "x86-bsd-nat.h".
8347 (amd64_fbsd_nat_target): New class.
8348 (the_amd64_fbsd_nat_target): New.
8349 (amd64fbsd_read_description): Refactor as method of
8350 amd64_fbsd_nat_target.
8351 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8352 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8353 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8354 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8355 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8356 (i386bsd_target): Delete.
8357 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8358 (i386bsd_fetch_inferior_registers)
8359 (i386bsd_store_inferior_registers): Declare.
8360 (i386_bsd_nat_target): New class.
8361 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8362 (the_i386_fbsd_nat_target): New.
8363 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8364 i386_fbsd_nat_target methods.
8365 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8366 (_initialize_i386fbsd_nat): Adjust to C++ification.
8367 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8368 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8369 (_initialize_x86_bsd_nat): Adjust to C++ification.
8370 * x86-bsd-nat.h: Include "x86-nat.h".
8371 (x86bsd_target): Delete declaration.
8372 (x86bsd_nat_target): New class.
8373
8374 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8375 (the_aarch64_fbsd_nat_target): New.
8376 (aarch64_fbsd_fetch_inferior_registers)
8377 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8378 aarch64_fbsd_nat_target.
8379 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8380 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8381 (the_alpha_bsd_nat_target): New.
8382 (alphabsd_fetch_inferior_registers)
8383 (alphabsd_store_inferior_registers): Refactor as
8384 alpha_bsd_nat_target methods.
8385 (_initialize_alphabsd_nat): Refactor as methods of
8386 alpha_bsd_nat_target.
8387 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8388 (the_amd64_nbsd_nat_target): New.
8389 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8390 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8391 (the_amd64_obsd_nat_target): New.
8392 (_initialize_amd64obsd_nat): Adjust to C++ification.
8393 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8394 (the_arm_fbsd_nat_target): New.
8395 (arm_fbsd_fetch_inferior_registers)
8396 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8397 (_initialize_arm_fbsd_nat): Refactor as methods of
8398 arm_fbsd_nat_target.
8399 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8400 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8401 (the_arm_netbsd_nat_target): New.
8402 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8403 arm_netbsd_nat_target.
8404 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8405 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8406 (the_hppa_nbsd_nat_target): New.
8407 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8408 hppa_nbsd_nat_target methods.
8409 (_initialize_hppanbsd_nat): Adjust to C++ification.
8410 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8411 (the_hppa_obsd_nat_target): New.
8412 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8413 methods of hppa_obsd_nat_target.
8414 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8415 add_target.
8416 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8417 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8418 add_target.
8419 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8420 (_initialize_i386obsd_nat): Use add_target.
8421 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8422 (the_m68k_bsd_nat_target): New.
8423 (m68kbsd_fetch_inferior_registers)
8424 (m68kbsd_store_inferior_registers): Refactor as methods of
8425 m68k_bsd_nat_target.
8426 (_initialize_m68kbsd_nat): Adjust to C++ification.
8427 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8428 (the_mips_fbsd_nat_target): New.
8429 (mips_fbsd_fetch_inferior_registers)
8430 (mips_fbsd_store_inferior_registers): Refactor as methods of
8431 mips_fbsd_nat_target.
8432 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8433 add_target.
8434 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8435 (the_mips_nbsd_nat_target): New.
8436 (mipsnbsd_fetch_inferior_registers)
8437 (mipsnbsd_store_inferior_registers): Refactor as methods of
8438 mips_nbsd_nat_target.
8439 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8440 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8441 (the_mips64_obsd_nat_target): New.
8442 (mips64obsd_fetch_inferior_registers)
8443 (mips64obsd_store_inferior_registers): Refactor as methods of
8444 mips64_obsd_nat_target.
8445 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8446 add_target.
8447 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8448 nbsd_nat_target.
8449 * nbsd-nat.h: Include "inf-ptrace.h".
8450 (nbsd_nat_target): New class.
8451 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8452 (obsd_wait): Refactor as methods of obsd_nat_target.
8453 (obsd_add_target): Delete.
8454 * obsd-nat.h: Include "inf-ptrace.h".
8455 (obsd_nat_target): New class.
8456 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8457 (the_ppc_fbsd_nat_target): New.
8458 (ppcfbsd_fetch_inferior_registers)
8459 (ppcfbsd_store_inferior_registers): Refactor as methods of
8460 ppc_fbsd_nat_target.
8461 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8462 add_target.
8463 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8464 (the_ppc_nbsd_nat_target): New.
8465 (ppcnbsd_fetch_inferior_registers)
8466 (ppcnbsd_store_inferior_registers): Refactor as methods of
8467 ppc_nbsd_nat_target.
8468 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8469 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8470 (the_ppc_obsd_nat_target): New.
8471 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8472 methods of ppc_obsd_nat_target.
8473 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8474 add_target.
8475 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8476 (the_sh_nbsd_nat_target): New.
8477 (shnbsd_fetch_inferior_registers)
8478 (shnbsd_store_inferior_registers): Refactor as methods of
8479 sh_nbsd_nat_target.
8480 (_initialize_shnbsd_nat): Adjust to C++ification.
8481 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8482 (inf_ptrace_xfer_partial): Delete.
8483 (sparc_xfer_partial, sparc_target): Delete.
8484 * sparc-nat.h (sparc_fetch_inferior_registers)
8485 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8486 (sparc_target): Delete function declaration.
8487 (sparc_target): New template class.
8488 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8489 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8490 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8491 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8492 add_target.
8493 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8494 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8495 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8496 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8497 add_target.
8498 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8499 (the_vax_bsd_nat_target): New.
8500 (vaxbsd_fetch_inferior_registers)
8501 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8502 methods.
8503 (_initialize_vaxbsd_nat): Adjust to C++ification.
8504
8505 * bsd-kvm.c (bsd_kvm_target): New class.
8506 (bsd_kvm_ops): Now a bsd_kvm_target.
8507 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8508 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8509 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8510 bsd_kvm_target.
8511 (bsd_kvm_return_one): Delete.
8512 (bsd_kvm_add_target): Adjust to C++ification.
8513
8514 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8515 (nto_procfs_target_procfs): New classes.
8516 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8517 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8518 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8519 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8520 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8521 (procfs_remove_hw_breakpoint, procfs_resume)
8522 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8523 (procfs_kill_inferior, procfs_store_registers)
8524 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8525 as methods of nto_procfs_target.
8526 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8527 (nto_native_ops): Delete.
8528 (procfs_open, procfs_native_open): Delete.
8529 (nto_native_ops): Now an nto_procfs_target_native.
8530 (init_procfs_targets): Adjust to C++ification.
8531 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8532 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8533 Refactor as methods of nto_procfs_target.
8534
8535 * go32-nat.c (go32_nat_target): New class.
8536 (the_go32_nat_target): New.
8537 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8538 (go32_store_registers, go32_xfer_partial, go32_files_info)
8539 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8540 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8541 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8542 (go32_pid_to_str): Refactor as methods of go32_nat_target.
8543 (go32_target): Delete.
8544 (_initialize_go32_nat): Adjust to C++ification.
8545
8546 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8547 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8548 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8549 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8550 gnu_nat_target.
8551 (gnu_target): Delete.
8552 * gnu-nat.h (gnu_target): Delete.
8553 (gnu_nat_target): New class.
8554 * i386-gnu-nat.c (gnu_base_target): New.
8555 (i386_gnu_nat_target): New class.
8556 (the_i386_gnu_nat_target): New.
8557 (_initialize_i386gnu_nat): Adjust to C++ification.
8558
8559 2018-05-02 Pedro Alves <palves@redhat.com>
8560
8561 * bfd-target.c (target_bfd_xclose): Rename to ...
8562 (target_bfd_close): ... this.
8563 (target_bfd_reopen): Adjust.
8564 * target.c (target_close): Remove references to to_xclose.
8565 * target.h (target_ops::to_xclose): Delete.
8566 (target_ops::to_close): Update comments.
8567
8568 2018-05-02 Pedro Alves <palves@redhat.com>
8569
8570 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
8571 "linux-nat.h".
8572 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
8573 * inf-ptrace.c (inf_ptrace_register_u_offset)
8574 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8575 (inf_ptrace_store_register, inf_ptrace_store_registers)
8576 (inf_ptrace_trad_target): Move to ...
8577 * linux-nat-trad.c: ... this new file.
8578 * linux-nat-trad.h: New file.
8579 * linux-nat.c (linux_target_install_ops): Make extern.
8580 (linux_trad_target): Delete.
8581 * linux-nat.h (linux_trad_target): Delete declaration.
8582 (linux_target_install_ops): Declare.
8583 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
8584 "linux-nat.h".
8585
8586 2018-05-02 Pedro Alves <palves@redhat.com>
8587
8588 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8589 procfs_target/add_target here.
8590 * procfs.c (procfs_target): Make static.
8591 (_initialize_procfs): Call add_target here.
8592 * procfs.h (struct target_ops): Remove forward declaration.
8593 (procfs_target): Remove declaration.
8594 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
8595
8596 2018-05-02 Pedro Alves <palves@redhat.com>
8597
8598 * procfs.c (procfs_stopped_by_watchpoint)
8599 (procfs_insert_watchpoint, procfs_remove_watchpoint)
8600 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
8601 Forward declare.
8602 (procfs_use_watchpoints): Delete, move contents...
8603 (procfs_target): ... here.
8604 * procfs.h (procfs_use_watchpoints): Delete declaration.
8605 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8606 procfs_use_watchpoints.
8607 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8608 procfs_use_watchpoints.
8609
8610 2018-05-02 Tom Tromey <tom@tromey.com>
8611
8612 PR python/20084:
8613 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
8614 and var_zuinteger_unlimited.
8615 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
8616 and PARAM_ZUINTEGER_UNLIMITED.
8617 (set_parameter_value): Handle var_zuinteger and
8618 var_zuinteger_unlimited.
8619 (add_setshow_generic): Likewise.
8620 (parmpy_init): Likewise.
8621
8622 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
8623
8624 PR rust/23124
8625 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
8626 pointer is not null before dereferencing it.
8627
8628 2018-04-30 Tom Tromey <tom@tromey.com>
8629
8630 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
8631 is_mi_like_p.
8632
8633 2018-04-30 Tom Tromey <tom@tromey.com>
8634
8635 * breakpoint.c (mention): Remove use of is_mi_like_p.
8636 (print_mention_ranged_breakpoint): Likewise.
8637 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
8638 of is_mi_like_p.
8639
8640 2018-04-30 Tom Tromey <tom@tromey.com>
8641
8642 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
8643
8644 2018-04-30 Tom Tromey <tom@tromey.com>
8645
8646 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
8647 (info_spu_event_command): Remove some uses of is_mi_like_p.
8648
8649 2018-04-30 Tom Tromey <tom@tromey.com>
8650
8651 * python/py-framefilter.c (py_print_single_arg)
8652 (enumerate_locals, py_print_args, py_print_frame): Remove some
8653 uses of is_mi_like_p.
8654
8655 2018-04-30 Tom Tromey <tom@tromey.com>
8656
8657 * ui-out.c: Update.
8658 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
8659 * ui-out.h (ui_out::is_mi_like_p): Now const.
8660 (ui_out::do_is_mi_like_p): Now const.
8661 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
8662
8663 2018-04-30 Tom Tromey <tom@tromey.com>
8664
8665 * varobj.c (varobj_set_visualizer): Use new_reference.
8666 * python/python.c (gdbpy_decode_line): Use new_reference.
8667 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
8668 new_reference.
8669
8670 2018-04-30 Tom Tromey <tom@tromey.com>
8671
8672 * varobj.c (install_new_value): Use new_reference.
8673 * value.h (value_incref): Return void. Swap intro comment with
8674 value_decref.
8675 * value.c (set_value_parent): Use new_reference.
8676 (value_incref): Return void. Update intro comment.
8677 (release_value): Use new_reference.
8678 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
8679
8680 2018-04-30 Tom Tromey <tom@tromey.com>
8681
8682 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
8683 * gdb_bfd.h (new_bfd_ref): Remove.
8684 (gdb_bfd_open): Update comment.
8685 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
8686 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
8687 (gdb_bfd_fdopenr): Use new_reference.
8688 * exec.c (exec_file_attach): Use new_reference.
8689
8690 2018-04-30 Tom Tromey <tom@tromey.com>
8691
8692 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
8693 method.
8694
8695 2018-04-30 Tom Tromey <tom@tromey.com>
8696
8697 * jit.c (jit_read_code_entry): Use type_align.
8698 * i386-tdep.c (i386_gdbarch_init): Don't call
8699 set_gdbarch_long_long_align_bit.
8700 * gdbarch.sh: Remove long_long_align_bit.
8701 * gdbarch.c, gdbarch.h: Rebuild.
8702 * arc-tdep.c (arc_type_align): New function.
8703 (arc_gdbarch_init): Use arc_type_align. Don't call
8704 set_gdbarch_long_long_align_bit.
8705
8706 2018-04-30 Tom Tromey <tom@tromey.com>
8707
8708 * rust-lang.c (rust_type_alignment): Remove.
8709 (rust_composite_type): Use type_align.
8710
8711 2018-04-30 Tom Tromey <tom@tromey.com>
8712
8713 * NEWS: Mention Type.align.
8714 * python/py-type.c (typy_get_alignof): New function.
8715 (type_object_getset): Add "alignof".
8716
8717 2018-04-30 Tom Tromey <tom@tromey.com>
8718
8719 PR exp/17095:
8720 * NEWS: Update.
8721 * std-operator.def (UNOP_ALIGNOF): New operator.
8722 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
8723 New.
8724 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
8725 * c-lang.c (c_op_print_tab): Add alignof.
8726 * c-exp.y (ALIGNOF): New token.
8727 (exp): Add "ALIGNOF" production.
8728 (ident_tokens): Add _Alignof and alignof.
8729
8730 2018-04-30 Tom Tromey <tom@tromey.com>
8731
8732 * i386-tdep.c (i386_type_align): New function.
8733 (i386_gdbarch_init): Update.
8734 * gdbarch.sh (type_align): New method.
8735 * gdbarch.c, gdbarch.h: Rebuild.
8736 * arch-utils.h (default_type_align): Declare.
8737 * arch-utils.c (default_type_align): New function.
8738 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
8739 (struct type) <align_log2>: New field.
8740 <instance_flags>: Now a bitfield.
8741 (TYPE_RAW_ALIGN): New macro.
8742 (type_align, type_raw_align, set_type_align): Declare.
8743 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
8744 functions.
8745 * dwarf2read.c (quirk_rust_enum): Set type alignment.
8746 (get_alignment, maybe_set_alignment): New functions.
8747 (read_structure_type, read_enumeration_type, read_array_type)
8748 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
8749 (read_subrange_type, read_base_type): Set type alignment.
8750
8751 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
8752
8753 * dwarf2read.c (read_index_from_section): Use bool.
8754
8755 2018-04-29 Fabian Groffen <grobian@gentoo.org>
8756
8757 PR gdb/22950
8758 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
8759 with #ifdef.
8760
8761 2018-04-29 John Reiser <jreiser@BitWagon.com>
8762
8763 PR build/22873
8764 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
8765 last step, and do it atomically.
8766
8767 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
8768
8769 * compile/compile-c-types.c (convert_int, convert_float):
8770 Update for C FE v1.
8771
8772 2018-04-27 Tom Tromey <tom@tromey.com>
8773
8774 PR rust/22545:
8775 * rust-lang.c (rust_inclusive_range_type_p): New function.
8776 (rust_range): Handle inclusive ranges.
8777 (rust_compute_range): Likewise.
8778 * rust-exp.y (struct rust_op) <inclusive>: New field.
8779 (DOTDOTEQ): New constant.
8780 (range_expr): Add "..=" productions.
8781 (operator_tokens): Add "..=" token.
8782 (ast_range): Add "inclusive" parameter.
8783 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
8784 ranges.
8785 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
8786 bounds values.
8787 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
8788 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
8789 Update comments.
8790 * expprint.c (print_subexp_standard): Handle new bounds values.
8791 (dump_subexp_body_standard): Likewise.
8792
8793 2018-04-27 Tom Tromey <tom@tromey.com>
8794
8795 * configure: Rebuild.
8796 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
8797 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
8798 "OVERRIDE".
8799 (class symbol_needs_eval_context): Likewise.
8800 * dwarf2read.c (mock_mapped_index::symbol_name_count)
8801 (mock_mapped_index::symbol_name_at): Use "override". Remove
8802 "virtual".
8803 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
8804 "override".
8805 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
8806 * aarch64-tdep.c (instruction_reader::read): Use "override".
8807 (instruction_reader_test::read): Likewise.
8808 * arm-tdep.c (instruction_reader::read): Use "override".
8809 (instruction_reader_thumb::read): Likewise.
8810
8811 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
8812
8813 PR remote/9665
8814 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
8815 instead of remote_send.
8816 (remote_send): Remove.
8817
8818 2018-04-26 Pedro Alves <palves@redhat.com>
8819
8820 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
8821 find_function_start_sal instead of find_pc_line.
8822
8823 2018-04-26 Pedro Alves <palves@redhat.com>
8824
8825 * breakpoint.c (set_breakpoint_location_function): Handle
8826 mst_data_gnu_ifunc.
8827 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
8828 * elfread.c (elf_symtab_read): Give data symbols with
8829 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
8830 (elf_rel_plt_read): Update comment.
8831 * linespec.c (convert_linespec_to_sals): Handle
8832 mst_data_gnu_ifunc.
8833 (minsym_found): Handle mst_data_gnu_ifunc.
8834 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
8835 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
8836 * parse.c (find_minsym_type_and_address): Handle
8837 mst_data_gnu_ifunc.
8838 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
8839 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
8840 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
8841 comment.
8842 <mst_data_gnu_ifunc>: New enumerator.
8843
8844 2018-04-26 Pedro Alves <palves@redhat.com>
8845
8846 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
8847 (lookup_minimal_symbol_by_pc_section): ... this. Replace
8848 'want_trampoline' parameter by a lookup_msym_prefer parameter.
8849 Handle it.
8850 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
8851 (lookup_minimal_symbol_by_pc): Adjust.
8852 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
8853 (lookup_solib_trampoline_symbol_by_pc): Adjust.
8854 * minsyms.h (lookup_msym_prefer): New enum.
8855 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8856 parameter by a lookup_msym_prefer parameter.
8857
8858 2018-04-26 Pedro Alves <palves@redhat.com>
8859
8860 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
8861 ends in "@plt" instead of looking at the symbol's section.
8862
8863 2018-04-26 Pedro Alves <palves@redhat.com>
8864
8865 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
8866 all references.
8867 (find_pc_partial_function_gnu_ifunc): Rename to ...
8868 (find_pc_partial_function): ... this, and remove references to
8869 'is_gnu_ifunc_p'.
8870 (find_pc_partial_function): Delete old implementation.
8871 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
8872
8873 2018-04-26 Pedro Alves <palves@redhat.com>
8874
8875 * linespec.c (struct bound_minimal_symbol_search_key): New.
8876 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
8877 skip first line if we found a GNU ifunc minimal symbol by name.
8878 (compare_msymbols): Change parameters to work with a destructured
8879 lhs minsym.
8880 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
8881 functions.
8882
8883 2018-04-26 Pedro Alves <palves@redhat.com>
8884
8885 * breakpoint.c (set_breakpoint_location_function): Don't resolve
8886 ifunc targets here. Instead, if we have an ifunc minsym, use its
8887 address/name.
8888 (add_location_to_breakpoint): Store the minsym and the objfile in
8889 the breakpoint location.
8890 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
8891 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
8892 Record the minsym in the sal.
8893 * symtab.h (symtab_and_line) <msymbol>: New field.
8894
8895 2018-04-26 Pedro Alves <palves@redhat.com>
8896
8897 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
8898 unless we actually resolved the ifunc.
8899
8900 2018-04-26 Pedro Alves <palves@redhat.com>
8901
8902 * c-exp.y (variable production): Prefer ifunc minsyms over
8903 regular function symbols.
8904 * symtab.c (find_gnu_ifunc): New function.
8905 * minsyms.h (lookup_msym_prefer): New enum.
8906 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8907 parameter by a lookup_msym_prefer parameter.
8908 * symtab.h (find_gnu_ifunc): New declaration.
8909
8910 2018-04-26 Pedro Alves <palves@redhat.com>
8911
8912 * blockframe.c (find_gnu_ifunc_target_type): New function.
8913 (find_function_type): New.
8914 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
8915 return a value with a memory address.
8916 (eval_call): For calls to GNU ifunc functions, try to find the
8917 type of the target function from the type that the resolver
8918 returns.
8919 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
8920 symbols.
8921 * infcall.c (find_function_return_type): Delete.
8922 (find_function_addr): Add 'function_type' parameter. For calls to
8923 GNU ifunc functions, try to find the type of the target function
8924 from the type that the resolver returns, and return it via
8925 FUNCTION_TYPE.
8926 (call_function_by_hand_dummy): Adjust to use the function type
8927 returned by find_function_addr.
8928 (find_function_addr): Add 'function_type' parameter and move
8929 description here.
8930 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
8931 declarations.
8932
8933 2018-04-26 Pedro Alves <palves@redhat.com>
8934
8935 * c-exp.y (variable production): Skip finding an alias for ifunc
8936 symbols.
8937
8938 2018-04-26 Pedro Alves <palves@redhat.com>
8939
8940 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
8941
8942 2018-04-25 Pedro Alves <palves@redhat.com>
8943
8944 * infcmd.c (kill_command): Print the pid as string, not the whole
8945 thread's ptid. Add comment. s/has been killed/killed/ in output
8946 message.
8947 * remote.c (remote_detach_1): Print the pid as string, not the
8948 whole thread's ptid.
8949
8950 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8951 Sergio Durigan Junior <sergiodj@redhat.com>
8952 Pedro Alves <palves@redhat.com>
8953
8954 * infcmd.c (kill_command): Print message when inferior has
8955 been killed.
8956 * inferior.c (print_inferior_events): Remove 'static'. Set as
8957 '1'.
8958 (add_inferior): Improve message printed when
8959 'print_inferior_events' is on.
8960 (exit_inferior): Remove message printed when
8961 'print_inferior_events' is on.
8962 (detach_inferior): Improve message printed when
8963 'print_inferior_events' is on.
8964 (initialize_inferiors): Use 'add_inferior_silent' to set
8965 'current_inferior_'.
8966 * inferior.h (print_inferior_events): Declare here as
8967 'extern'.
8968 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
8969 '[Detaching...]' messages when 'print_inferior_events' is on.
8970 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
8971 as prefix/suffix for messages. Remove periods. Fix erroneous
8972 'Detaching after fork from child...', replace it by '... from
8973 parent...'.
8974 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
8975 prefix/suffix when printing 'Detaching...' messages. Print
8976 them when 'print_inferior_events' is on.
8977 * remote.c (remote_detach_1): Print message when detaching
8978 from inferior and '!is_fork_parent'.
8979
8980 2018-04-24 Tom Tromey <tom@tromey.com>
8981
8982 * cli-out.h: Reindent.
8983
8984 2018-04-24 Tom Tromey <tom@tromey.com>
8985
8986 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
8987 (cli_ui_out::do_field_string): Use fputs_filtered.
8988 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
8989
8990 2018-04-23 Tom Tromey <tom@tromey.com>
8991
8992 * guile/scm-frame.c (gdbscm_frame_read_var): Use
8993 gdb::unique_xmalloc_ptr.
8994
8995 2018-04-23 Tom Tromey <tom@tromey.com>
8996
8997 * configure: Rebuild.
8998
8999 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9000
9001 PR gdb/23095
9002 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9003 prepare_for_testing. Set normal_bp to r_debug_state if target
9004 is bsd.
9005
9006 2018-04-21 Pedro Alves <palves@redhat.com>
9007 Rajendra SY <rajendra.sy@gmail.com>
9008
9009 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9010 * remote.c (extended_remote_attach): In all-stop mode, mark the
9011 thread as executing.
9012
9013 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9014
9015 * thread.c (thread_apply_all_command): Fix comment.
9016 (thread_command): Fix comment.
9017
9018 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9019
9020 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9021 parameter.
9022 * features/aarch64-core.c (create_feature_aarch64_core):
9023 Regenerate.
9024 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9025 Likewise.
9026 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9027 Likewise.
9028 * features/i386/32bit-avx512.c
9029 (create_feature_i386_32bit_avx512): Likewise.
9030 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9031 Likewise.
9032 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9033 Likewise.
9034 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9035 Likewise.
9036 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9037 Likewise.
9038 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9039 Likewise.
9040 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9041 Likewise.
9042 * features/i386/64bit-avx512.c
9043 (create_feature_i386_64bit_avx512): Likewise.
9044 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9045 Likewise.
9046 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9047 Likewise.
9048 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9049 Likewise.
9050 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9051 Likewise.
9052 * features/i386/64bit-segments.c
9053 (create_feature_i386_64bit_segments): Likewise.
9054 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9055 Likewise.
9056 * features/i386/x32-core.c
9057 (create_feature_i386_x32_core): Likewise.
9058 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9059 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9060 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9061 * target-descriptions.c: In generated code, don't pass xml
9062 filename.
9063
9064 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9065
9066 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9067 (print_xml_feature::visit_post): Likewise.
9068 (print_xml_feature::visit): Likewise.
9069 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9070 (print_xml_feature): Add new class.
9071 * regformats/regdat.sh: Null xmltarget on feature targets.
9072 * target-descriptions.c (struct target_desc): Add xmltarget.
9073 (maintenance_check_tdesc_xml_convert): Add unittest function.
9074 (tdesc_get_features_xml): Add function to get xml.
9075 (maintenance_check_xml_descriptions): Test xml generation.
9076 * xml-tdesc.c (string_read_description_xml): Add function.
9077 * xml-tdesc.h (string_read_description_xml): Add declaration.
9078
9079 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9080
9081 * features/Makefile: Add feature marker to targets with new style
9082 target descriptions.
9083 * regformats/aarch64.dat: Regenerate.
9084 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9085 * regformats/i386/amd64-avx-linux.dat: Likewise.
9086 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9087 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9088 * regformats/i386/amd64-linux.dat: Likewise.
9089 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9090 * regformats/i386/amd64.dat: Likewise.
9091 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9092 * regformats/i386/i386-avx-linux.dat: Likewise.
9093 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9094 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9095 * regformats/i386/i386-linux.dat: Likewise.
9096 * regformats/i386/i386-mmx-linux.dat: Likewise.
9097 * regformats/i386/i386-mpx-linux.dat: Likewise.
9098 * regformats/i386/i386.dat: Likewise.
9099 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9100 * regformats/i386/x32-avx-linux.dat: Likewise.
9101 * regformats/i386/x32-linux.dat: Likewise.
9102 * regformats/tic6x-c62x-linux.dat: Likewise.
9103 * regformats/tic6x-c64x-linux.dat: Likewise.
9104 * regformats/tic6x-c64xp-linux.dat: Likewise.
9105 * regformats/regdat.sh: Parse feature marker.
9106
9107 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9108
9109 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9110 (tdesc_osabi_name): Likewise.
9111 * target-descriptions.c (tdesc_architecture_name): Add new
9112 function.
9113 (tdesc_osabi_name): Likewise.
9114
9115 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9116
9117 * common/tdesc.c (tdesc_predefined_type): Move to here.
9118 (tdesc_named_type): Likewise.
9119 (tdesc_create_vector): Likewise.
9120 (tdesc_create_struct): Likewise.
9121 (tdesc_set_struct_size): Likewise.
9122 (tdesc_create_union): Likewise.
9123 (tdesc_create_flags): Likewise.
9124 (tdesc_create_enum): Likewise.
9125 (tdesc_add_field): Likewise.
9126 (tdesc_add_typed_bitfield): Likewise.
9127 (tdesc_add_bitfield): Likewise.
9128 (tdesc_add_flag): Likewise.
9129 (tdesc_add_enum_value): Likewise.
9130 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9131 (struct tdesc_type_vector): Likewise.
9132 (struct tdesc_type_field): Likewise.
9133 (struct tdesc_type_with_fields): Likewise.
9134 (tdesc_create_enum): Add declaration.
9135 (tdesc_add_typed_bitfield): Likewise.
9136 (tdesc_add_enum_value): Likewise.
9137 * target-descriptions.c (tdesc_type_field): Move from here.
9138 (tdesc_type_builtin): Likewise.
9139 (tdesc_type_vector): Likewise.
9140 (tdesc_type_with_fields): Likewise.
9141 (tdesc_predefined_types): Likewise.
9142 (tdesc_named_type): Likewise.
9143 (tdesc_create_vector): Likewise.
9144 (tdesc_create_struct): Likewise.
9145 (tdesc_set_struct_size): Likewise.
9146 (tdesc_create_union): Likewise.
9147 (tdesc_create_flags): Likewise.
9148 (tdesc_create_enum): Likewise.
9149 (tdesc_add_field): Likewise.
9150 (tdesc_add_typed_bitfield): Likewise.
9151 (tdesc_add_bitfield): Likewise.
9152 (tdesc_add_flag): Likewise.
9153 (tdesc_add_enum_value): Likewise.
9154 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9155 (tdesc_add_typed_bitfield): Likewise.
9156 (tdesc_add_enum_value): Likewise.
9157
9158 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9159
9160 * common/tdesc.c (tdesc_feature::accept): Move to here.
9161 (tdesc_feature::operator==): Likewise.
9162 (tdesc_create_reg): Likewise.
9163 * common/tdesc.h (tdesc_type_kind): Likewise.
9164 (struct tdesc_type): Likewise.
9165 (struct tdesc_feature): Likewise.
9166 * regformats/regdat.sh: Create a feature.
9167 * target-descriptions.c (tdesc_type_kind): Move from here.
9168 (tdesc_type): Likewise.
9169 (tdesc_type_up): Likewise.
9170 (tdesc_feature): Likewise.
9171 (tdesc_create_reg): Likewise.
9172
9173 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9174
9175 * Makefile.in: Add arch/tdesc.c
9176 * common/tdesc.c: New file.
9177 * common/tdesc.h (tdesc_element_visitor): Move to here.
9178 (tdesc_element): Likewise.
9179 (tdesc_reg): Likewise.
9180 (tdesc_reg_up): Likewise.
9181 * regformats/regdef.h (reg): Add offset to constructors.
9182 * target-descriptions.c (tdesc_element_visitor): Move from here.
9183 (tdesc_element): Likewise.
9184 (tdesc_reg): Likewise.
9185 (tdesc_reg_up): Likewise.
9186
9187 2018-04-17 Tom Tromey <tom@tromey.com>
9188
9189 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9190 discriminant field.
9191
9192 2018-04-17 Tom Tromey <tom@tromey.com>
9193
9194 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9195
9196 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9197
9198 * symtab.c (print_symbol_info): Skip printing filename and line
9199 number when `last' is NULL.
9200 (symtab_symbol_info): Use empty string instead of NULL for first
9201 invocation of print_symbol_info.
9202 (rbreak_command): Pass NULL to `last' parameter of
9203 print_symbol_info.
9204
9205 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9206
9207 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9208 instead of nullptr.
9209
9210 2018-04-16 Pedro Alves <palves@redhat.com>
9211
9212 * MAINTAINERS (sh): Remove.
9213 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9214 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9215 (ALLDEPFILES): Remove sh64-tdep.c.
9216 * NEWS: Mentions that support for SH-5/SH64 is removed.
9217 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9218 (sh*-*-openbsd*): Ditto.
9219 (sh64-*-elf*): Remove.
9220 (sh*): Remove.
9221 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9222 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9223 * sh-tdep.c: No longer include "sh64-tdep.h".
9224 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9225 * sh64-tdep.c, sh64-tdep.h: Remove files.
9226
9227 2018-04-16 Pedro Alves <palves@redhat.com>
9228
9229 * MAINTAINERS: Remove m88k.
9230 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9231 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9232 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9233 * NEWS: Mention that support for m88k was removed.
9234 * configure.host (m88*-*-*): Remove support.
9235 * configure.nat (m88k-*-*): Remove support.
9236 * configure.tgt (m88*-*-openbsd*): Remove.
9237 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9238
9239 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9240
9241 * configure.tgt (x86_tobjs): New variable.
9242 (amd64_tobjs, i386_tobjs): Use it.
9243
9244 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9245
9246 * symtab.c (print_symbol_info): Precede the symbol definition by
9247 the line number when available.
9248 * NEWS: Advertise this enhancement.
9249
9250 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9251
9252 * NEWS (New options): announce set/show record btrace cpu.
9253 * btrace.c: Include record-btrace.h.
9254 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9255 the vendor is unknown.
9256 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9257 Maybe overwrite the btrace configuration's cpu.
9258 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9259 (btrace_fetch): Add cpu parameter. Update callers.
9260 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9261 Maybe overwrite the btrace configuration's cpu. Skip enabling
9262 errata workarounds if the vendor is unknown.
9263 * python/py-record-btrace.c: Include record-btrace.h.
9264 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9265 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9266 * record-btrace.c (record_btrace_cpu_state_kind): New.
9267 (record_btrace_cpu): New.
9268 (set_record_btrace_cpu_cmdlist): New.
9269 (record_btrace_get_cpu): New.
9270 (require_btrace_thread, record_btrace_info)
9271 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9272 (cmd_set_record_btrace_cpu_none): New.
9273 (cmd_set_record_btrace_cpu_auto): New.
9274 (cmd_set_record_btrace_cpu): New.
9275 (cmd_show_record_btrace_cpu): New.
9276 (_initialize_record_btrace): Initialize set/show record btrace cpu
9277 commands.
9278 * record-btrace.h (record_btrace_get_cpu): New.
9279
9280 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9281
9282 * record.c (set_record_command): Fix typo in message.
9283
9284 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9285
9286 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9287
9288 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9289
9290 * infrun.c (process_event_stop_test): Call
9291 gdbarch_in_indirect_branch_thunk.
9292 * gdbarch.sh (in_indirect_branch_thunk): New.
9293 * gdbarch.c: Regenerated.
9294 * gdbarch.h: Regenerated.
9295 * x86-tdep.h: New.
9296 * x86-tdep.c: New.
9297 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9298 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9299 (ALLDEPFILES): Add x86-tdep.c.
9300 * arch-utils.h (default_in_indirect_branch_thunk): New.
9301 * arch-utils.c (default_in_indirect_branch_thunk): New.
9302 * i386-tdep: Include x86-tdep.h.
9303 (i386_in_indirect_branch_thunk): New.
9304 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9305 function.
9306 * amd64-tdep: Include x86-tdep.h.
9307 (amd64_in_indirect_branch_thunk): New.
9308 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9309
9310 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9311
9312 PR gdb/23053
9313 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9314 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9315 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9316 regression.
9317
9318 2018-04-12 Tom Tromey <tom@tromey.com>
9319
9320 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9321 (rust_evaluate_subexp): Likewise.
9322
9323 2018-04-12 Pedro Alves <palves@redhat.com>
9324
9325 * procfs.c (procfs_detach): Make forward declaration's prototype
9326 match definition's protototype.
9327 (proc_get_LDT_entry): Remove stale do_cleanups call.
9328
9329 2018-04-12 Pedro Alves <palves@redhat.com>
9330
9331 * target.h (target_ops::to_has_exited): Delete.
9332 (target_has_exited): Delete.
9333 * target-delegates.c: Regenerate.
9334
9335 2018-04-11 Pedro Alves <palves@redhat.com>
9336
9337 * target.c (fileio_fh_t::t): Add comment.
9338 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9339 (target_fileio_close): Handle a NULL target.
9340 (invalidate_fileio_fh): New.
9341 (target_close): Call it.
9342 * remote.c (remote_hostio_send_command): No longer check whether
9343 remote_desc is open.
9344
9345 2018-04-11 Pedro Alves <palves@redhat.com>
9346
9347 * target.c (fileio_fh_t): Make it a named struct instead of a
9348 typedef.
9349 (fileio_fh_t::is_closed): New method.
9350 (DEF_VEC_O (fileio_fh_t)): Remove.
9351 (fileio_fhandles): Now a std::vector.
9352 (is_closed_fileio_fh): Delete.
9353 (acquire_fileio_fd): Adjust. Rename parameters.
9354 (release_fileio_fd): Adjust.
9355 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9356 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9357 (target_fileio_close): Adjust.
9358
9359 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9360
9361 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9362 index.
9363
9364 2018-04-10 Pedro Alves <palves@redhat.com>
9365
9366 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9367 (scoped_finish_thread_state): New class.
9368 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9369 cleanup.
9370 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9371 (fetch_inferior_event, normal_stop): Likewise.
9372 * thread.c (finish_thread_state_cleanup): Delete.
9373
9374 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9375 Pedro Alves <palves@redhat.com>
9376
9377 * value.c: Include "selftest.h" and "common/array-view.h".
9378 (struct range) <operator ==>: New.
9379 (test_ranges_contain): New.
9380 (check_ranges_vector): New.
9381 (test_insert_into_bit_range_vector): New.
9382 (_initialize_values): Register selftests.
9383 * common/array-view.h (operator==, operator!=): New.
9384
9385 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9386
9387 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9388 an iterator.
9389 * inline-frame.c: Include <algorithm>.
9390 (struct inline_state): Add constructor.
9391 (inline_state_s): Remove.
9392 (DEF_VEC_O(inline_state_s)): Remove.
9393 (inline_states): Change type to std::vector.
9394 (find_inline_frame_state): Adjust to std::vector.
9395 (allocate_inline_frame_state): Remove.
9396 (clear_inline_frame_state): Adjust to std::vector.
9397 (skip_inline_frames): Adjust to std::vector.
9398
9399 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9400
9401 * tracepoint.h (struct trace_state_variable): Add constructor.
9402 <name>: Change type to std::string.
9403 * tracepoint.c (tsv_s): Remove.
9404 (DEF_VEC_O(tsv_s)): Remove.
9405 (tvariables): Change to std::vector.
9406 (create_trace_state_variable): Adjust to std::vector.
9407 (find_trace_state_variable): Likewise.
9408 (find_trace_state_variable_by_number): Likewise.
9409 (delete_trace_state_variable): Likewise.
9410 (trace_variable_command): Adjust to std::string.
9411 (delete_trace_variable_command): Likewise.
9412 (tvariables_info_1): Adjust to std::vector.
9413 (save_trace_state_variables): Likewise.
9414 (start_tracing): Likewise.
9415 (merge_uploaded_trace_state_variables): Adjust to std::vector
9416 and std::string.
9417 * target.h (struct target_ops)
9418 <to_download_trace_state_variable>: Pass reference to
9419 trace_state_variable.
9420 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9421 * target-delegates.c: Re-generate.
9422 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9423 (mi_tsv_deleted): Likewise.
9424 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9425 * remote.c (remote_download_trace_state_variable): Change
9426 pointer to reference and adjust.
9427 * make-target-delegates (parse_argtypes): Handle references.
9428 (write_function_header): Likewise.
9429 (munge_type): Likewise.
9430
9431 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9432
9433 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9434 string_view-selftests.c.
9435 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9436 testsuite.
9437 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9438 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9439 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9440 * unittests/basic_string_view/element_access/char/1.cc:
9441 Likewise.
9442 * unittests/basic_string_view/element_access/char/empty.cc:
9443 Likewise.
9444 * unittests/basic_string_view/element_access/char/front_back.cc:
9445 Likewise.
9446 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9447 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9448 Likewise.
9449 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9450 Likewise.
9451 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9452 Likewise.
9453 * unittests/basic_string_view/operations/compare/char/1.cc:
9454 Likewise.
9455 * unittests/basic_string_view/operations/compare/char/13650.cc:
9456 Likewise.
9457 * unittests/basic_string_view/operations/copy/char/1.cc:
9458 Likewise.
9459 * unittests/basic_string_view/operations/data/char/1.cc:
9460 Likewise.
9461 * unittests/basic_string_view/operations/find/char/1.cc:
9462 Likewise.
9463 * unittests/basic_string_view/operations/find/char/2.cc:
9464 Likewise.
9465 * unittests/basic_string_view/operations/find/char/3.cc:
9466 Likewise.
9467 * unittests/basic_string_view/operations/find/char/4.cc:
9468 Likewise.
9469 * unittests/basic_string_view/operations/rfind/char/1.cc:
9470 Likewise.
9471 * unittests/basic_string_view/operations/rfind/char/2.cc:
9472 Likewise.
9473 * unittests/basic_string_view/operations/rfind/char/3.cc:
9474 Likewise.
9475 * unittests/basic_string_view/operations/substr/char/1.cc:
9476 Likewise.
9477 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9478 * unittests/string_view-selftests.c: New file.
9479
9480 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9481
9482 * unittests/basic_string_view/capacity/1.cc: New file.
9483 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9484 * unittests/basic_string_view/cons/char/1.cc: New file.
9485 * unittests/basic_string_view/cons/char/2.cc: New file.
9486 * unittests/basic_string_view/cons/char/3.cc: New file.
9487 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9488 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9489 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9490 * unittests/basic_string_view/element_access/char/1.cc: New file.
9491 * unittests/basic_string_view/element_access/char/2.cc: New file.
9492 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9493 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9494 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9495 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9496 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9497 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9498 * unittests/basic_string_view/include.cc: New file.
9499 * unittests/basic_string_view/inserters/char/1.cc: New file.
9500 * unittests/basic_string_view/inserters/char/2.cc: New file.
9501 * unittests/basic_string_view/inserters/char/3.cc: New file.
9502 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9503 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9504 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9505 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9506 * unittests/basic_string_view/literals/types.cc: New file.
9507 * unittests/basic_string_view/literals/values.cc: New file.
9508 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9509 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9510 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9511 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9512 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9513 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9514 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9515 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9516 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9517 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9518 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9519 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9520 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9521 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9522 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9523 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9524 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9525 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9526 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9527 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9528 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9529 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9530 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9531 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9532 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9533 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9534 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9535 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9536 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9537 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9538 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9539 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9540 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9541 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9542 * unittests/basic_string_view/operators/char/2.cc: New file.
9543 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9544 * unittests/basic_string_view/range_access/char/1.cc: New file.
9545 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9546 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9547 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9548 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9549 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9550 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9551 * unittests/basic_string_view/requirements/typedefs.cc: New file.
9552 * unittests/basic_string_view/typedefs.cc: New file.
9553 * unittests/basic_string_view/types/1.cc: New file.
9554
9555 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9556
9557 * common/gdb_string_view.h: Remove libstdc++ implementation
9558 details, adjust to gdb reality.
9559 * common/gdb_string_view.tcc: Likewise.
9560 * cli/cli-script.c (struct string_view): Remove.
9561 (user_args) <m_args>: Change element type to gdb::string_view.
9562 (user_args::insert_args): Adjust.
9563
9564 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9565
9566 * common/gdb_string_view.h: New file.
9567 * common/gdb_string_view.tcc: New file.
9568
9569 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9570
9571 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9572 * configure: Re-generate.
9573
9574 2018-04-09 Pedro Alves <palves@redhat.com>
9575
9576 * gdbarch.sh: Include "observable.h" instead of "observer.h".
9577 (set_target_gdbarch): Call
9578 gdb::observers::architecture_changed.notify instead of
9579 observer_notify_architecture_changed.
9580
9581 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9582
9583 * tracepoint.c (struct current_traceframe_cleanup): Remove.
9584 (do_restore_current_traceframe_cleanup): Remove.
9585 (restore_current_traceframe_cleanup_dtor): Remove.
9586 (make_cleanup_restore_current_traceframe): Remove.
9587 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
9588 New.
9589 * tracepoint.h (struct scoped_restore_current_traceframe): New.
9590 * infrun.c (fetch_inferior_event): Use
9591 scoped_restore_current_traceframe.
9592
9593 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9594
9595 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
9596 Remove.
9597 <n_allocated_type_units>: Remove.
9598 <all_type_units>: Change to std::vector.
9599 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9600 to std::vector change.
9601 (dwarf2_per_objfile::get_cutu): Likewise.
9602 (dwarf2_per_objfile::get_tu): Likewise.
9603 (create_signatured_type_table_from_index): Likewise.
9604 (create_signatured_type_table_from_debug_names): Likewise.
9605 (dw2_symtab_iter_next): Likewise.
9606 (dw2_print_stats): Likewise.
9607 (dw2_expand_all_symtabs): Likewise.
9608 (dw2_expand_marked_cus): Likewise.
9609 (dw2_debug_names_iterator::next): Likewise.
9610 (dwarf2_initialize_objfile): Likewise.
9611 (add_signatured_type_cu_to_table): Likewise.
9612 (create_all_type_units): Likewise.
9613 (add_type_unit): Likewise.
9614 (struct tu_abbrev_offset): Add constructor.
9615 (build_type_psymtabs_1): Adjust to std::vector change.
9616 (print_tu_stats): Likewise.
9617 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9618 (write_debug_names): Likewise.
9619
9620 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9621
9622 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
9623 Make an std::vector.
9624 <n_comp_units>: Remove.
9625 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9626 to std::vector change.
9627 (dwarf2_per_objfile::get_cutu): Likewise.
9628 (dwarf2_per_objfile::get_cu): Likewise.
9629 (create_cus_from_index): Likewise.
9630 (create_addrmap_from_index): Likewise.
9631 (create_addrmap_from_aranges): Likewise.
9632 (dwarf2_read_index): Likewise.
9633 (dw2_find_last_source_symtab): Likewise.
9634 (dw2_map_symtabs_matching_filename): Likewise.
9635 (dw2_symtab_iter_next): Likewise.
9636 (dw2_print_stats): Likewise.
9637 (dw2_expand_all_symtabs): Likewise.
9638 (dw2_expand_symtabs_with_fullname): Likewise.
9639 (dw2_expand_marked_cus): Likewise.
9640 (dw2_map_symbol_filenames): Likewise.
9641 (create_cus_from_debug_names): Likewise.
9642 (dwarf2_read_debug_names): Likewise.
9643 (dw2_debug_names_iterator::next): Likewise.
9644 (dwarf2_initialize_objfile): Likewise.
9645 (set_partial_user): Likewise.
9646 (dwarf2_build_psymtabs_hard): Likewise.
9647 (read_comp_units_from_section): Remove arguments, adjust to
9648 std::vector change.
9649 (create_all_comp_units): Adjust to std::vector and
9650 read_comp_units_from_section changes.
9651 (dwarf2_find_containing_comp_unit): Adjust to std::vector
9652 change.
9653 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9654 (psyms_seen_size): Likewise.
9655 (write_gdbindex): Likewise.
9656 (write_debug_names): Likewise.
9657
9658 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9659
9660 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
9661 with dwarf2_per_objfile.
9662 (create_cus_from_index): Likewise.
9663 (create_signatured_type_table_from_index): Likewise.
9664 (dwarf2_read_index): Likewise.
9665 (dwarf2_initialize_objfile): Likewise.
9666 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
9667 per_cu rather than get_dwarf2_per_objfile.
9668
9669 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9670
9671 * dwarf2read.h (struct signatured_type): Forward declare.
9672 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
9673 New methods.
9674 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
9675 (dw2_get_cutu): ...this.
9676 (dwarf2_per_objfile::get_cu): Rename from...
9677 (dw2_get_cu): ...this.
9678 (dwarf2_per_objfile::get_tu): New.
9679 (create_addrmap_from_index): Adjust.
9680 (create_addrmap_from_aranges): Adjust.
9681 (dw2_find_last_source_symtab): Adjust.
9682 (dw2_map_symtabs_matching_filename): Adjust.
9683 (dw2_symtab_iter_next): Adjust.
9684 (dw2_print_stats): Adjust.
9685 (dw2_expand_all_symtabs): Adjust.
9686 (dw2_expand_symtabs_with_fullname): Adjust.
9687 (dw2_expand_marked_cus): Adjust.
9688 (dw_expand_symtabs_matching_file_matcher): Adjust.
9689 (dw2_map_symbol_filenames): Adjust.
9690 (dw2_debug_names_iterator::next): Adjust.
9691 (dwarf2_initialize_objfile): Adjust.
9692 (set_partial_user): Adjust.
9693 (dwarf2_build_psymtabs_hard): Adjust.
9694
9695 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9696
9697 * dwarf2read.c (create_signatured_type_table_from_debug_names):
9698 Remove unused variables.
9699 (dw2_map_symtabs_matching_filename): Likewise.
9700 (dwarf2_record_block_ranges): Likewise.
9701 (dwarf2_read_addr_index): Likewise.
9702 (follow_die_offset): Likewise.
9703
9704 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9705
9706 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
9707 to symbol_file_add_main.
9708
9709 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9710
9711 PR mi/22299
9712 * mi/mi-console.c (do_fputc_async_safe): New.
9713 (mi_console_file::write_async_safe): New.
9714 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
9715 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
9716 New.
9717 * ui-file.c (ui_file::putstrn): Adjust call to
9718 fputstrn_unfiltered.
9719 * utils.c (printchar): Replace do_fputs and do_fprintf
9720 parameters by do_fputc.
9721 (fputstr_filtered): Adjust call to printchar.
9722 (fputstr_unfiltered): Likewise.
9723 (fputstrn_filtered): Likewise.
9724 (fputstrn_unfiltered): Add do_fputc parameter, pass to
9725 printchar.
9726 * utils.h (do_fputc_ftype): New typedef.
9727 (fputstrn_unfiltered): Add do_fputc parameter.
9728
9729 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9730
9731 * regformats/i386/i386-avx.dat: Remove.
9732
9733 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9734
9735 PR gdb/22979
9736 * amd64-tdep.c (amd64_none_init_abi): New function.
9737 (amd64_x32_none_init_abi): New function.
9738 (_initialize_amd64_tdep): Register handlers for x86-64 and
9739 x64_32 with GDB_OSABI_NONE.
9740 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
9741 GDB_OSABI_NONE osabi.
9742
9743 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9744
9745 PR gdb/22980
9746 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
9747 GDB_OSABI_NONE.
9748 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
9749 * osabi.c (gdb_osabi_names): Add "unknown" entry.
9750
9751 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9752
9753 * common/byte-vector.h (char_vector): New type.
9754 * target.h (target_read_alloc): Return
9755 gdb::optional<byte_vector>.
9756 (target_read_stralloc): Return gdb::optional<char_vector>.
9757 (target_get_osdata): Return gdb::optional<char_vector>.
9758 * target.c (target_read_alloc_1): Templatize. Replacement
9759 manual memory management with vector.
9760 (target_read_alloc): Change return type, adjust.
9761 (target_read_stralloc): Change return type, adjust.
9762 (target_get_osdata): Change return type, adjust.
9763 * auxv.c (struct auxv_info) <length>: Remove.
9764 <data>: Change type to gdb::optional<byte_vector>.
9765 (auxv_inferior_data_cleanup): Free auxv_info with delete.
9766 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
9767 (target_auxv_search): Adjust.
9768 (fprint_target_auxv): Adjust.
9769 * avr-tdep.c (avr_io_reg_read_command): Adjust.
9770 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
9771 (linux_make_corefile_notes): Adjust.
9772 * osdata.c (get_osdata): Adjust.
9773 * remote.c (remote_get_threads_with_qxfer): Adjust.
9774 (remote_memory_map): Adjust.
9775 (remote_traceframe_info): Adjust.
9776 (btrace_read_config): Adjust.
9777 (remote_read_btrace): Adjust.
9778 (remote_pid_to_exec_file): Adjust.
9779 * solib-aix.c (solib_aix_get_library_list): Adjust.
9780 * solib-dsbt.c (decode_loadmap): Don't free buf.
9781 (dsbt_get_initial_loadmaps): Adjust.
9782 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
9783 * solib-target.c (solib_target_current_sos): Adjust.
9784 * tracepoint.c (sdata_make_value): Adjust.
9785 * xml-support.c (xinclude_start_include): Adjust.
9786 (xml_fetch_content_from_file): Adjust.
9787 * xml-support.h (xml_fetch_another): Change return type.
9788 (xml_fetch_content_from_file): Change return type.
9789 * xml-syscall.c (xml_init_syscalls_info): Adjust.
9790 * xml-tdesc.c (file_read_description_xml): Adjust.
9791 (fetch_available_features_from_target): Change return type.
9792 (target_fetch_description_xml): Adjust.
9793 (target_read_description_xml): Adjust.
9794
9795 2018-04-06 Tom Tromey <tom@tromey.com>
9796
9797 * value.c (~value): Update.
9798 (struct value) <contents>: Now unique_xmalloc_ptr.
9799 (value_contents_bits_eq, allocate_value_contents)
9800 (value_contents_raw, value_contents_all_raw)
9801 (value_contents_for_printing, value_contents_for_printing_const)
9802 (set_value_enclosing_type): Update.
9803
9804 2018-04-06 Tom Tromey <tom@tromey.com>
9805
9806 * value.c (range_s): Remove typedef, VEC.
9807 (struct range): Add operator<.
9808 (range_lessthan): Remove.
9809 (ranges_contain): Change type.
9810 (~value): Update.
9811 (struct value) <unavailable, optimized_out>: Now std::vector.
9812 (value_entirely_available)
9813 (value_entirely_covered_by_range_vector)
9814 (value_entirely_unavailable, value_entirely_optimized_out):
9815 Update.
9816 (insert_into_bit_range_vector): Change argument type.
9817 (find_first_range_overlap): Likewise.
9818 (struct ranges_and_idx, value_contents_bits_eq)
9819 (require_not_optimized_out, require_available): Update.
9820 (ranges_copy_adjusted): Change argument types.
9821 (value_optimized_out, value_copy, value_fetch_lazy): Update.
9822
9823 2018-04-06 Tom Tromey <tom@tromey.com>
9824
9825 * value.c (~value): Update.
9826 (struct value) <parent>: Now a value_ref_ptr.
9827 (value_parent, set_value_parent, value_address, value_copy):
9828 Update.
9829
9830 2018-04-06 Tom Tromey <tom@tromey.com>
9831
9832 * value.c (struct value): Add constructor, destructor, and member
9833 initializers.
9834 (allocate_value_lazy, value_decref): Update.
9835
9836 2018-04-06 Tom Tromey <tom@tromey.com>
9837
9838 * value.c (struct value) <released, next>: Remove.
9839 (all_values): Now a std::vector.
9840 (allocate_value_lazy): Update.
9841 (value_next): Remove.
9842 (value_mark, value_free_to_mark, release_value)
9843 (value_release_to_mark): Update.
9844
9845 2018-04-06 Tom Tromey <tom@tromey.com>
9846
9847 * value.h (fetch_subexp_value, value_release_to_mark): Update.
9848 (free_value_chain): Remove.
9849 * value.c (free_value_chain): Remove.
9850 (value_release_to_mark): Return a std::vector.
9851 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
9852 std::vector.
9853 (check_condition): Update.
9854 * eval.c (fetch_subexp_value): Change "val_chain" to a
9855 std::vector.
9856 * breakpoint.c (update_watchpoint): Update.
9857 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
9858
9859 2018-04-06 Tom Tromey <tom@tromey.com>
9860
9861 * value.h (free_all_values): Remove.
9862 * value.c (free_all_values): Remove.
9863
9864 2018-04-06 Tom Tromey <tom@tromey.com>
9865
9866 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
9867 (value_history_chain, value_history_count): Remove.
9868 (value_history): New global.
9869 (record_latest_value, access_value_history, show_values)
9870 (preserve_values): Update.
9871
9872 2018-04-06 Tom Tromey <tom@tromey.com>
9873
9874 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
9875 * varobj.c (varobj_set_display_format, varobj_set_value)
9876 (install_default_visualizer, construct_visualizer)
9877 (install_new_value, ~varobj, varobj_get_value_type)
9878 (my_value_of_variable, varobj_editable_p): Update.
9879 * c-varobj.c (c_describe_child, c_value_of_variable)
9880 (cplus_number_of_children, cplus_describe_child): Update.
9881 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
9882 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
9883 (ada_value_of_variable, ada_value_is_changeable_p): Update.
9884
9885 2018-04-06 Tom Tromey <tom@tromey.com>
9886
9887 * printcmd.c (last_examine_address): Change type to
9888 value_ref_ptr.
9889 (do_examine, x_command): Update.
9890
9891 2018-04-06 Tom Tromey <tom@tromey.com>
9892
9893 * value.c (release_value): Update.
9894 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
9895 (struct bpstats) <val>: Now a value_ref_ptr.
9896 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9897 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9898 (~watchpoint, print_it_watchpoint, watch_command_1)
9899 (invalidate_bp_value_on_memory_change): Update.
9900
9901 2018-04-06 Tom Tromey <tom@tromey.com>
9902
9903 * varobj.c (varobj_clear_saved_item)
9904 (update_dynamic_varobj_children, install_new_value, ~varobj):
9905 Update.
9906 * value.h (value_incref): Move declaration earlier.
9907 (value_decref): Rename from value_free.
9908 (struct value_ref_policy): New.
9909 (value_ref_ptr): New typedef.
9910 (struct value_deleter): Remove.
9911 (gdb_value_up): Remove typedef.
9912 (release_value): Change return type.
9913 (release_value_or_incref): Remove.
9914 * value.c (set_value_parent): Update.
9915 (value_incref): Change return type.
9916 (value_decref): Rename from value_free.
9917 (value_free_to_mark, free_all_values, free_value_chain): Update.
9918 (release_value): Return value_ref_ptr.
9919 (release_value_or_incref): Remove.
9920 (record_latest_value, set_internalvar, clear_internalvar):
9921 Update.
9922 * stack.c (info_frame_command): Don't call value_free.
9923 * python/py-value.c (valpy_dealloc, valpy_new)
9924 (value_to_value_object): Update.
9925 * printcmd.c (do_examine): Update.
9926 * opencl-lang.c (lval_func_free_closure): Update.
9927 * mi/mi-main.c (register_changed_p): Don't call value_free.
9928 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
9929 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
9930 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
9931 value_free.
9932 * guile/scm-value.c (vlscm_free_value_smob)
9933 (vlscm_scm_from_value): Update.
9934 * frame.c (frame_register_unwind, frame_unwind_register_signed)
9935 (frame_unwind_register_unsigned, get_frame_register_bytes)
9936 (put_frame_register_bytes): Don't call value_free.
9937 * findvar.c (address_from_register): Don't call value_free.
9938 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
9939 * dwarf2loc.c (entry_data_value_free_closure)
9940 (value_of_dwarf_reg_entry, free_pieced_value_closure)
9941 (dwarf2_evaluate_loc_desc_full): Update.
9942 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9943 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9944 (~watchpoint, watch_command_1)
9945 (invalidate_bp_value_on_memory_change): Update.
9946 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
9947
9948 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
9949
9950 PR gdb/23022
9951 * warning.m4: Add -Wno-error=deprecated-register.
9952 * configure: Re-generate.
9953
9954 2018-04-05 Tom Tromey <tom@tromey.com>
9955
9956 * linespec.h: Remove include of "vec.h".
9957
9958 2018-04-05 Tom Tromey <tom@tromey.com>
9959
9960 * linespec.c (typep): Remove typedef.
9961 (find_methods, find_superclass_methods): Take a std::vector.
9962 (find_method): Use std::vector.
9963
9964 2018-04-05 Tom Tromey <tom@tromey.com>
9965
9966 * utils.c (compare_strings): Remove.
9967 * utils.h (compare_strings): Remove.
9968 * objc-lang.h (find_imps): Update.
9969 * objc-lang.c (find_methods): Take a std::vector.
9970 (uniquify_strings, find_imps): Likewise.
9971 * linespec.c (find_methods): Take a std::vector.
9972 (decode_objc): Use std::vector.
9973 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
9974 a std::vector.
9975 (find_method, find_function_symbols): Use std::vector.
9976
9977 2018-04-05 Tom Tromey <tom@tromey.com>
9978
9979 * completer.c (completion_tracker::completion_tracker): Remove
9980 cast.
9981 (completion_tracker::discard_completions): Likewise.
9982 * breakpoint.c (ambiguous_names_p): Remove cast.
9983 * ada-lang.c (_initialize_ada_language): Remove cast.
9984 * utils.h (streq): Update.
9985 (streq_hash): Add new declaration.
9986 * utils.c (streq): Return bool.
9987 (streq_hash): New function.
9988
9989 2018-04-05 Tom Tromey <tom@tromey.com>
9990
9991 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
9992 Remove a string copy.
9993
9994 2018-04-05 Tom Tromey <tom@tromey.com>
9995
9996 * linespec.c (filter_results): Use std::vector.
9997 (decode_line_2, decode_line_full): Update.
9998
9999 2018-04-05 Tom Tromey <tom@tromey.com>
10000
10001 * linespec.c (canonical_to_fullform): Return std::string.
10002 (filter_results): Update.
10003 (struct decode_line_2_item): Add constructor.
10004 <fullform, displayform>: Now std::string.
10005 (decode_line_2_compare_items): Now a std::sort comparator.
10006 (decode_line_2): Update.
10007
10008 2018-04-05 Tom Tromey <tom@tromey.com>
10009
10010 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10011 (unexpected_linespec_error): Update.
10012 (linespec_parse_basic, parse_linespec): Update.
10013
10014 2018-04-05 Tom Tromey <tom@tromey.com>
10015
10016 * linespec.c (linespec_parse_basic): Reindent.
10017
10018 2018-04-05 Tom Tromey <tom@tromey.com>
10019
10020 * minsyms.h (iterate_over_minimal_symbols): Update.
10021 * minsyms.c (iterate_over_minimal_symbols): Take a
10022 gdb::function_view.
10023 * linespec.c (struct collect_minsyms): Remove.
10024 (compare_msyms): Now a std::sort comparator.
10025 (add_minsym): Add parameters.
10026 (search_minsyms_for_name): Update. Use std::vector.
10027
10028 2018-04-03 Tom Tromey <tom@tromey.com>
10029
10030 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10031 gdb::byte_vector.
10032
10033 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10034
10035 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10036
10037 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10038
10039 PR gdb/16959
10040 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10041 printing static type.
10042
10043 2018-04-01 Tom Tromey <tom@tromey.com>
10044
10045 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10046 (rs6000_xfer_shared_libraries): Update.
10047
10048 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10049
10050 * common/gdb_vecs.h (char_ptr): Remove.
10051 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10052
10053 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10054
10055 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10056 with std::vector.
10057 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10058
10059 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10060
10061 * tracepoint.h (struct uploaded_tp): Initialize fields.
10062 <actions, step_actions, cmd_strings>: Change type to
10063 std::vector<char *>.
10064 * tracepoint.c (get_uploaded_tp): Allocate with new.
10065 (free_uploaded_tps): Free with delete.
10066 (parse_tracepoint_definition): Adjust to std::vector change.
10067 * breakpoint.c (read_uploaded_action): Likewise.
10068 (create_tracepoint_from_upload): Likewise.
10069 * ctf.c (ctf_write_uploaded_tp): Likewise.
10070 (SET_ARRAY_FIELD): Likewise.
10071 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10072
10073 2018-03-30 Tom Tromey <tom@tromey.com>
10074
10075 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10076 std::unique_ptr.
10077 (svr4_keep_data_in_core): Update.
10078 (svr4_read_so_list): Update.
10079
10080 2018-03-30 Tom Tromey <tom@tromey.com>
10081
10082 * windows-nat.c (handle_output_debug_string, handle_exception):
10083 Update.
10084 * target.h (target_read_string): Update.
10085 * target.c (target_read_string): Change "string" to
10086 unique_xmalloc_ptr.
10087 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10088 Update.
10089 * solib-frv.c (frv_current_sos): Update.
10090 * solib-dsbt.c (dsbt_current_sos): Update.
10091 * solib-darwin.c (darwin_current_sos): Update.
10092 * linux-thread-db.c (inferior_has_bug): Update.
10093 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10094 Update. Remove alloca.
10095 * ada-lang.c (ada_main_name): Update.
10096
10097 2018-03-30 Tom Tromey <tom@tromey.com>
10098
10099 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10100 (struct dwo_file_deleter): New.
10101 (dwo_file_up): New typedef.
10102 (open_and_init_dwo_file): Use dwo_file_up.
10103 (free_dwo_file_cleanup): Remove.
10104
10105 2018-03-30 Tom Tromey <tom@tromey.com>
10106
10107 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10108 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10109
10110 2018-03-30 Tom Tromey <tom@tromey.com>
10111
10112 * dwarf2read.c (class free_cached_comp_units): New class.
10113 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10114 (free_cached_comp_units): Remove function.
10115
10116 2018-03-30 Tom Tromey <tom@tromey.com>
10117
10118 * utils.h (make_cleanup_unpush_target): Remove.
10119 * inf-ptrace.c (struct target_unpusher): New.
10120 (target_unpush_up) New typedef.
10121 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10122 target_unpush_up.
10123 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10124
10125 2018-03-27 Tom Tromey <tom@tromey.com>
10126
10127 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10128
10129 2018-03-27 Pedro Alves <palves@redhat.com>
10130 Tom Tromey <tom@tromey.com>
10131
10132 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10133 destructor. Now a class.
10134 (gdb_readline_wrapper_cleanup): Remove function.
10135 (gdb_readline_wrapper): Remove cleanups.
10136
10137 2018-03-27 Tom Tromey <tom@tromey.com>
10138
10139 * typeprint.h (struct type_print_options) <local_typedefs,
10140 global_typedefs>: Remove "struct" keyword.
10141 (class typedef_hash_table): New class.
10142 (recursively_update_typedef_hash, add_template_parameters)
10143 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10144 (find_typedef_in_hash): Don't declare.
10145 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10146 (typedef_hash_table::recursively_update): Rename from
10147 recursively_update_typedef_hash. Now a member.
10148 (typedef_hash_table::add_template_parameters): Rename from
10149 add_template_parameters. Now a member.
10150 (typedef_hash_table::typedef_hash_table): Now a constructor;
10151 rename from create_typedef_hash.
10152 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10153 rename from free_typedef_hash.
10154 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10155 (do_free_global_table): Remove.
10156 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10157 from copy_type_recursive.
10158 (create_global_typedef_table): Remove.
10159 (typedef_hash_table::find_global_typedef): Now a member of
10160 typedef_hash_table.
10161 (typedef_hash_table::find_typedef): Rename from
10162 find_typedef_in_hash; now a member.
10163 (whatis_exp): Update.
10164 * extension.h (struct ext_lang_type_printers): Add constructor and
10165 destructor.
10166 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10167 declare.
10168 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10169 Now a constructor; rename from start_ext_lang_type_printers.
10170 (ext_lang_type_printers): Now a destructor; rename from
10171 free_ext_lang_type_printers.
10172 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10173 Update.
10174 (c_type_print_base_struct_union): Update. Remove cleanups.
10175
10176 2018-03-27 Tom Tromey <tom@tromey.com>
10177
10178 * dwarf-index-write.c: Include <cmath>.
10179
10180 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10181
10182 * NEWS: Add entry describing new "set|show varsize-limit" command.
10183 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10184 command.
10185 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10186 "set variable".
10187
10188 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10189
10190 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10191 dwarf-index-write.c
10192 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10193 * dwarf-index-common.c: New file.
10194 * dwarf-index-common.h: New file.
10195 * dwarf-index-write.c: New file.
10196 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10197 (struct dwarf2_section_info): Move from here.
10198 (dwarf2_section_info_def): Likewise.
10199 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10200 (offset_type): Likewise.
10201 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10202 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10203 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10204 (byte_swap): Likewise.
10205 (MAYBE_SWAP): Likewise.
10206 (dwarf2_per_cu_ptr): Likewise.
10207 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10208 (struct tu_stats): Likewise.
10209 (struct dwarf2_per_objfile): Likewise.
10210 (struct dwarf2_per_cu_data): Likewise.
10211 (struct signatured_type): Likewise.
10212 (sig_type_ptr): Likewise.
10213 (DEF_VEC_P (sig_type_ptr)): Likewise.
10214 (INDEX4_SUFFIX): Likewise.
10215 (INDEX5_SUFFIX): Likewise.
10216 (DEBUG_STR_SUFFIX): Likewise.
10217 (dwarf2_read_section): Make non-static.
10218 (mapped_index_string_hash): Move from here.
10219 (dwarf5_djb_hash): Likewise.
10220 (file_write): Likewise.
10221 (class data_buf): Likewise.
10222 (struct symtab_index_entry): Likewise.
10223 (struct mapped_symtab): Likewise.
10224 (find_slot): Likewise.
10225 (hash_expand): Likewise.
10226 (add_index_entry): Likewise.
10227 (uniquify_cu_indices): Likewise.
10228 (class c_str_view): Likewise.
10229 (class c_str_view_hasher): Likewise.
10230 (class vector_hasher): Likewise.
10231 (write_hash_table): Likewise.
10232 (psym_index_map): Likewise.
10233 (struct addrmap_index_data): Likewise.
10234 (add_address_entry): Likewise.
10235 (add_address_entry_worker): Likewise.
10236 (write_address_map): Likewise.
10237 (symbol_kind): Likewise.
10238 (write_psymbols): Likewise.
10239 (struct signatured_type_index_data): Likewise.
10240 (write_one_signatured_type): Likewise.
10241 (recursively_count_psymbols): Likewise.
10242 (recursively_write_psymbols): Likewise.
10243 (class debug_names): Likewise.
10244 (check_dwarf64_offsets): Likewise.
10245 (psyms_seen_size): Likewise.
10246 (write_gdbindex): Likewise.
10247 (write_debug_names): Likewise.
10248 (assert_file_size): Likewise.
10249 (write_psymtabs_to_index): Likewise.
10250 (save_gdb_index_command): Likewise.
10251 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10252 command.
10253 * dwarf2read.h: New file.
10254
10255 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10256
10257 PR gdb/22670
10258 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10259 symbol name if the CU's language stores symbol names in linkage
10260 format.
10261 * language.h (struct language_defn)
10262 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10263 all instances of this struct.
10264
10265 2018-03-26 Tom Tromey <tom@tromey.com>
10266
10267 * stack.c (backtrace_command_1): Remove verbose code.
10268
10269 2018-03-26 Tom Tromey <tom@tromey.com>
10270
10271 * python/py-framefilter.c (py_print_type): Don't catch
10272 exceptions. Return void.
10273 (py_print_value): Likewise.
10274 (py_print_single_arg): Likewise.
10275 (enumerate_args): Don't catch exceptions.
10276 (py_print_args): Likewise.
10277 (py_print_frame): Likewise.
10278 (gdbpy_apply_frame_filter): Catch exceptions here.
10279
10280 2018-03-26 Tom Tromey <tom@tromey.com>
10281
10282 * stack.c (_initialize_stack): Remove trailing newlines from help
10283 text. Add "Usage" line to "backtrace" help.
10284
10285 2018-03-26 Tom Tromey <tom@tromey.com>
10286
10287 PR python/16486:
10288 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10289
10290 2018-03-26 Tom Tromey <tom@tromey.com>
10291
10292 * python/py-framefilter.c (py_print_single_arg): Return
10293 EXT_LANG_BT_ERROR from catch.
10294
10295 2018-03-26 Tom Tromey <tom@tromey.com>
10296
10297 PR backtrace/15584:
10298 * stack.c (backtrace_command_1): Move some code into no-filters
10299 "if".
10300
10301 2018-03-26 Tom Tromey <tom@tromey.com>
10302
10303 * python/py-framefilter.c (throw_quit_or_print_exception): New
10304 function.
10305 (gdbpy_apply_frame_filter): Use it.
10306
10307 2018-03-26 Tom Tromey <tom@tromey.com>
10308
10309 PR cli/17716:
10310 * python/py-framefilter.c (py_print_type, py_print_value)
10311 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10312 RETURN_MASK_ERROR.
10313
10314 2018-03-26 Tom Tromey <tom@tromey.com>
10315
10316 * python/py-framefilter.c (enumerate_args): Use
10317 gdb::unique_xmalloc_ptr.
10318
10319 2018-03-26 Tom Tromey <tom@tromey.com>
10320
10321 * python/py-framefilter.c (py_print_frame): Return
10322 EXT_LANG_BT_OK.
10323 (gdbpy_apply_frame_filter): Update comment.
10324 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10325 Remove.
10326 <EXT_LANG_BT_NO_FILTERS>: Change value.
10327
10328 2018-03-26 Tom Tromey <tom@tromey.com>
10329
10330 PR backtrace/15582:
10331 * stack.c (backtrace_command): Parse "hide" argument.
10332 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10333 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10334 constant.
10335
10336 2018-03-26 Tom Tromey <tom@tromey.com>
10337
10338 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10339 add "flags".
10340 (backtrace_command): Remove "fulltrace", add "flags".
10341
10342 2018-03-26 Tom Tromey <tom@tromey.com>
10343
10344 * stack.c (backtrace_command): Rewrite command line parsing.
10345
10346 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10347
10348 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10349
10350 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10351
10352 * filename-seen-cache.h: Add include guard.
10353
10354 2018-03-26 Keith Seitz <keiths@redhat.com>
10355
10356 * symfile.c (place_section): Remove "struct" from section_addr_info
10357 in comment.
10358 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10359 "struct" keyword from section_addr_info.
10360
10361 2018-03-26 Alan Hayward <alan.hayward@arm.com>
10362
10363 * regformats/regdef.h (reg): Add constructors.
10364
10365 2018-03-25 Pedro Alves <palves@redhat.com>
10366
10367 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10368 if then/else bodies in var_func_name extraction.
10369
10370 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
10371
10372 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10373 lookup_minimal_symbol() to find symbol entry.
10374 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10375
10376 2018-03-23 Keith Seitz <keiths@redhat.com>
10377
10378 PR c++/22968
10379 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10380 nested type definitions for C++, too.
10381
10382 2018-03-23 Tom Tromey <tom@tromey.com>
10383
10384 * machoread.c (struct oso_el): Add a constructor. Don't define as
10385 a typedef.
10386 (macho_register_oso): Remove.
10387 (macho_symtab_read): Take a std::vector.
10388 (oso_el_compare_name): Now a std::sort comparator.
10389 (macho_symfile_read_all_oso): Take a std::vector.
10390 (macho_symfile_read): Use std::vector. Remove cleanups.
10391
10392 2018-03-22 Tom Tromey <tom@tromey.com>
10393
10394 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10395 (record_full_goto_bookmark): Use std::string.
10396
10397 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10398
10399 PR tdep/18295
10400 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10401 a single mask.
10402
10403 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10404
10405 * rs6000-tdep.c (store_insn_p): New function.
10406 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10407 and cr_reg to their unshifted values. Use store_insn_p to
10408 match LR saves using either R1 or fdata->alloca_reg. Use
10409 store_insn_p to match CR saves. Set alloca_reg_offset
10410 when alloca_reg and framep are set. Remove lr_reg shift
10411 when assigning to fdata->lr_register.
10412
10413 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10414
10415 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10416 command line args instead of emitting a warning.
10417
10418 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10419
10420 * tracepoint.h (struct static_tracepoint_marker): Initialize
10421 fields, define default constructor, move constructor and move
10422 assignment, disable the rest.
10423 <str_id, extra>: Make std::string.
10424 (release_static_tracepoint_marker): Remove.
10425 (free_current_marker): Remove.
10426 * tracepoint.c (free_current_marker): Remove.
10427 (parse_static_tracepoint_marker_definition): Adjust to
10428 std::string, use new hex2str overload.
10429 (release_static_tracepoint_marker): Remove.
10430 (print_one_static_tracepoint_marker): Get marker by reference
10431 and adjust to std::string.
10432 (info_static_tracepoint_markers_command): Adjust to std::vector
10433 changes
10434 * target.h (static_tracepoint_marker_p): Remove typedef.
10435 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10436 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10437 bool.
10438 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10439 * target-debug.h
10440 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10441 (target_debug_print_std_vector_static_tracepoint_marker): New.
10442 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10443 to...
10444 (target_debug_print_static_tracepoint_marker_p): ... this.
10445 * target-delegates.c: Re-generate.
10446 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10447 Make std::string.
10448 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10449 (decode_static_tracepoint_spec): Adjust to std::vector.
10450 (tracepoint_print_one_detail): Adjust to std::string.
10451 (strace_marker_decode_location): Adjust to std::string.
10452 (update_static_tracepoint): Adjust to std::string, remove call
10453 to release_static_tracepoint_marker.
10454 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10455 Adjust to std::vector.
10456 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10457 (remote_static_tracepoint_markers_by_strid): Adjust to
10458 std::vector.
10459 * common/rsp-low.h (hex2str): New overload with explicit count
10460 of bytes.
10461 * common/rsp-low.c (hex2str): New overload with explicit count
10462 of bytes.
10463 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10464 (_initialize_rsp_low_selftests): Add test_hex2str test.
10465 * unittests/tracepoint-selftests.c
10466 (test_parse_static_tracepoint_marker_definition): Adjust to
10467 std::string.
10468
10469 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10470
10471 * tracepoint.c (parse_static_tracepoint_marker_definition):
10472 Consider case where the definition is followed by more
10473 definitions.
10474 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10475 tracepoint-selftests.c.
10476 * unittests/tracepoint-selftests.c: New.
10477
10478 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10479
10480 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10481 Carvalho.
10482
10483 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10484
10485 * symtab.c (find_pc_sect_line): fixed indentation.
10486
10487 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10488
10489 * symtab.c (find_pc_sect_line): now uses binary search.
10490
10491 2018-03-19 Tom Tromey <tom@tromey.com>
10492
10493 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10494 "IDENT" production.
10495
10496 2018-03-19 Pedro Alves <palves@redhat.com>
10497 Tom Tromey <tom@tromey.com>
10498
10499 * unittests/observable-selftests.c: New file.
10500 * common/observable.h: New file.
10501 * observable.h: New file.
10502 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10503 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10504 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10505 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10506 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10507 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10508 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10509 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10510 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10511 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10512 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10513 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10514 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10515 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10516 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10517 tui/tui-interp.c, valops.c: Update all users.
10518 * tui/tui-hooks.c (tui_bp_created_observer)
10519 (tui_bp_deleted_observer, tui_bp_modified_observer)
10520 (tui_inferior_exit_observer, tui_before_prompt_observer)
10521 (tui_normal_stop_observer, tui_register_changed_observer):
10522 Remove.
10523 (tui_observers_token): New global.
10524 (attach_or_detach, tui_attach_detach_observers): New functions.
10525 (tui_install_hooks, tui_remove_hooks): Use
10526 tui_attach_detach_observers.
10527 * record-btrace.c (record_btrace_thread_observer): Remove.
10528 (record_btrace_thread_observer_token): New global.
10529 * observer.sh: Remove.
10530 * observer.c: Rename to observable.c.
10531 * observable.c (namespace gdb_observers): Define new objects.
10532 (observer_debug): Move into gdb_observers namespace.
10533 (struct observer, struct observer_list, xalloc_observer_list_node)
10534 (xfree_observer_list_node, generic_observer_attach)
10535 (generic_observer_detach, generic_observer_notify): Remove.
10536 (_initialize_observer): Update.
10537 Don't include observer.inc.
10538 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10539 (clean mostlyclean): Likewise.
10540 (observer.h, observer.inc): Remove targets.
10541 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10542 (COMMON_SFILES): Use observable.c, not observer.c.
10543 * .gitignore: Remove observer.h.
10544
10545 2018-03-18 Tom Tromey <tom@tromey.com>
10546
10547 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10548 gdb::def_vector.
10549 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10550
10551 2018-03-17 Tom Tromey <tom@tromey.com>
10552
10553 * auto-load.c (auto_load_objfile_script_1): Use std::string.
10554
10555 2018-03-17 Tom Tromey <tom@tromey.com>
10556
10557 * target.c (class scoped_target_fd): New.
10558 (target_fileio_close_cleanup): Remove.
10559 (target_fileio_read_alloc_1): Use scoped_target_fd.
10560
10561 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
10562
10563 * silent-rules.mk: New.
10564 * Makefile.in: Include silent-rules.mk
10565 (srcdir, VPATH, top_srcdir): Move up.
10566 (COMPILE): Add ECHO_CXX.
10567 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
10568 (init.c): Add ECHO_INIT_C.
10569 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10570 (version.c): Add ECHO_GEN.
10571 (printcmd.o): Add ECHO_CXX.
10572 (target-float.o): Add ECHO_CXX.
10573 (ada-exp.o): Add ECHO_CXX.
10574 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
10575 (insight$(EXEEXT)): Add ECHO_CXXLD.
10576 * gnulib/configure.ac: Add AM_SILENT_RULES.
10577 * gnulib/aclocal.m4: Re-generate.
10578 * gnulib/configure: Re-generate.
10579 * gnulib/import/Makefile.in: Re-generate.
10580
10581 2018-03-16 Tom Tromey <tom@tromey.com>
10582
10583 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
10584 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
10585 * utils.c (do_free_section_addr_info)
10586 (make_cleanup_free_section_addr_info): Remove.
10587 * symfile.h (struct other_sections): Add constructor.
10588 (struct section_addr_info): Remove.
10589 (section_addr_info): New typedef.
10590 (struct sym_fns) <sym_offsets>: Change type of parameter.
10591 (build_section_addr_info_from_objfile)
10592 (relative_addr_info_to_section_offsets, addr_info_make_relative)
10593 (default_symfile_offsets, symbol_file_add)
10594 (symbol_file_add_from_bfd)
10595 (build_section_addr_info_from_section_table): Update.
10596 (alloc_section_addr_info, free_section_addr_info): Don't declare.
10597 * symfile.c (alloc_section_addr_info): Remove.
10598 (build_section_addr_info_from_section_table): Change return type.
10599 Update.
10600 (build_section_addr_info_from_bfd)
10601 (build_section_addr_info_from_objfile): Likewise.
10602 (free_section_addr_info): Remove.
10603 (relative_addr_info_to_section_offsets): Change type of "addrs".
10604 (addrs_section_compar): Now a std::sort comparator.
10605 (addrs_section_sort): Change return type.
10606 (addr_info_make_relative): Change type of "addrs". Update.
10607 (default_symfile_offsets, syms_from_objfile_1)
10608 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
10609 (symbol_file_add_separate): Update.
10610 (symbol_file_add): Change type of "addrs". Update.
10611 (add_symbol_file_command): Update. Remove cleanups.
10612 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
10613 cleanups.
10614 * symfile-debug.c (debug_sym_offsets): Change type of "info".
10615 * solib.c (solib_read_symbols): Update.
10616 * objfiles.c (objfile_relocate): Update. Remove cleanups.
10617 * machoread.c (macho_symfile_offsets): Update.
10618 * jit.c (jit_bfd_try_read_symtab): Update.
10619
10620 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
10621
10622 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10623 unittests/utils-selftests.c.
10624 * unittests/utils-selftests.c: New file.
10625
10626 2018-03-14 Tom Tromey <tom@tromey.com>
10627
10628 PR cli/14977:
10629 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
10630 for NULL.
10631
10632 2018-03-14 Tom Tromey <tom@tromey.com>
10633
10634 PR cli/19918:
10635 * printcmd.c (printf_pointer): Allow "-" in format.
10636
10637 2018-03-14 Tom Tromey <tom@tromey.com>
10638
10639 * printcmd.c (_initialize_printcmd): Add usage to printf.
10640
10641 2018-03-14 Yao Qi <qiyao@sourceware.org>
10642
10643 * MAINTAINERS: Update my email address.
10644
10645 2018-03-13 Tom Tromey <tom@tromey.com>
10646
10647 * machoread.c (macho_check_dsym): Change filenamep to a
10648 std::string*.
10649 (macho_symfile_read): Update.
10650 * symfile.c (load_command): Use std::string.
10651
10652 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
10653
10654 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
10655 to error message string.
10656 (riscv_register_name): Use xsnprintf instead of sprintf.
10657 (riscv_insn::fetch_instruction): Use gdb_assert instead of
10658 internal_error.
10659 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
10660 error.
10661 (riscv_push_dummy_call): Likewise.
10662
10663 2018-03-12 Tom Tromey <tom@tromey.com>
10664
10665 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
10666 Use gdb::byte_vector.
10667 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
10668
10669 2018-03-12 Yao Qi <yao.qi@linaro.org>
10670
10671 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
10672 parameter type to readable_regcache.
10673 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
10674 the declaration.
10675
10676 2018-03-11 Tom Tromey <tom@tromey.com>
10677
10678 * dwarf2read.c (struct nextfield): Add initializers.
10679 (struct nextfnfield): Remove.
10680 (struct fnfieldlist): Add initializers. Remove "length" and
10681 "head", use std::vector.
10682 (struct decl_field_list): Remove.
10683 (struct field_info): Add initializers.
10684 <fields, baseclasses>: Now std::vector.
10685 <nbaseclasses, nfnfields, typedef_field_list_count,
10686 nested_types_list_count>: Remove.
10687 (dwarf2_add_field, dwarf2_add_type_defn)
10688 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
10689 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
10690 (process_structure_scope): Update.
10691
10692 2018-03-11 Tom Tromey <tom@tromey.com>
10693
10694 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
10695 for use by std::sort.
10696 (build_type_psymtabs_1): Use std::vector.
10697
10698 2018-03-09 Eli Zaretskii <eliz@gnu.org>
10699
10700 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
10701 and LIBMPFR in the printed configuration.
10702
10703 2018-03-08 Tom Tromey <tom@tromey.com>
10704
10705 * source.c (get_filename_and_charpos): Use scoped_fd.
10706 * nto-procfs.c (procfs_open_1): Use scoped_fd.
10707 (procfs_pidlist): Likewise.
10708 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
10709 (iterate_over_mappings): Likewise.
10710
10711 2018-03-08 Tom Tromey <tom@tromey.com>
10712
10713 * infcall.c (struct call_return_meta_info)
10714 <stack_temporaries_enabled>: Remove.
10715 (get_call_return_value, call_function_by_hand_dummy): Update.
10716 * thread.c (disable_thread_stack_temporaries): Remove.
10717 (enable_thread_stack_temporaries): Remove.
10718 (thread_stack_temporaries_enabled_p): Return bool.
10719 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
10720 (get_last_thread_stack_temporary): Update.
10721 * eval.c (evaluate_subexp): Update.
10722 * gdbthread.h (class enable_thread_stack_temporaries): Now a
10723 class, not a function.
10724 (value_ptr, value_vec): Remove typedefs.
10725 (class thread_info) <stack_temporaries_enabled>: Now bool.
10726 <stack_temporaries>: Now a std::vector.
10727 (thread_stack_temporaries_enabled_p)
10728 (value_in_thread_stack_temporaries): Return bool.
10729
10730 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
10731
10732 * remote.c (putpkt_binary): Fix omitted bytes reporting.
10733 (getpkt_or_notif_sane_1): Likewise.
10734
10735 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10736
10737 * build-id.c (build_id_to_debug_bfd): Use std::string.
10738
10739 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10740
10741 * build-id.c (find_separate_debug_file_by_buildid): Return
10742 std::string.
10743 * build-id.h (find_separate_debug_file_by_buildid): Return
10744 std::string.
10745 * coffread.c (coff_symfile_read): Adjust to std::string.
10746 * elfread.c (elf_symfile_read): Adjust to std::string.
10747 * symfile.c (separate_debug_file_exists): Change parameter to
10748 std::string.
10749 (find_separate_debug_file): Return std::string.
10750 (find_separate_debug_file_by_debuglink): Return std::string.
10751 * symfile.h (find_separate_debug_file_by_debuglink): Return
10752 std::string.
10753
10754 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10755
10756 * common/xml-utils.c (xml_escape_text): Move code to...
10757 (xml_escape_text_append): ... this new function.
10758 * common/xml-utils.h (xml_escape_text_append): New declaration.
10759 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
10760 New function.
10761 (_initialize_xml_utils): register test_xml_escape_text_append as
10762 a selftest.
10763
10764 2018-03-07 Alan Hayward <alan.hayward@arm.com>
10765
10766 * defs.h: Remove MAX_REGISTER_SIZE.
10767 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
10768 asserts.
10769 * python/py-unwind.c (pyuw_sniffer): Likewise.
10770
10771 2018-03-07 Tom Tromey <tom@tromey.com>
10772
10773 * linux-tdep.c (linux_info_proc): Update.
10774 * target.h (struct target_ops) <to_fileio_readlink>: Return
10775 optional<string>.
10776 (target_fileio_readlink): Return optional<string>.
10777 * remote.c (remote_hostio_readlink): Return optional<string>.
10778 * inf-child.c (inf_child_fileio_readlink): Return
10779 optional<string>.
10780 * target.c (target_fileio_readlink): Return optional<string>.
10781
10782 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10783
10784 * regcache.c (cooked_read_test): Add riscv to the list of
10785 architectures that have a save_reggroup.
10786
10787 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
10788
10789 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
10790 value is not a dynamic class object.
10791
10792 2018-03-06 Tom Tromey <tom@tromey.com>
10793
10794 * rust-exp.y: Formatting fixes.
10795
10796 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10797
10798 * riscv-tdep.c (riscv_register_name): Remove target description
10799 support.
10800 (riscv_gdbarch_init): Remove target description check.
10801
10802 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10803
10804 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
10805 comment.
10806 * riscv-tdep.h: Likewise.
10807
10808 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10809
10810 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
10811 (riscv_pseudo_register_write): Delete.
10812 (riscv_gdbarch_init): Remove all use of pseudo registers.
10813
10814 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10815
10816 * record-btrace.c (btrace_print_lines): Replace cleanup
10817 parameter with RAII equivalents.
10818 (btrace_insn_history): Replace cleanup with RAII equivalents.
10819 * ui-out.h (make_cleanup_ui_out_list_begin_end,
10820 make_cleanup_ui_out_tuple_begin_end): Remove.
10821 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
10822 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
10823 make_cleanup_ui_out_list_begin_end): Remove.
10824
10825 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10826
10827 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
10828 parameter types to std::vector. Use bool.
10829 (record_btrace_wait): Replace VEC(tp_t) with
10830 std::vector<thread_info *>.
10831 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
10832
10833 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10834
10835 * record-btrace.c (record_btrace_disable_callback): Remove.
10836 (struct scoped_btrace_disable): New.
10837 (record_btrace_open): Use scoped_btrace_disable.
10838
10839 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10840
10841 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
10842 reading values from registers.
10843
10844 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10845
10846 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
10847 where appropriate.
10848
10849 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10850
10851 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
10852 change parameter type. Use GDB's print functions, and use
10853 core_addr_to_string where appropriate.
10854 (riscv_push_dummy_call): Use core_addr_to_string where
10855 appropriate, update call to riscv_print_arg_location, and reindent
10856 a few lines.
10857 (riscv_return_value): Update call to riscv_print_arg_location.
10858
10859 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10860 Tim Newsome <tim@sifive.com>
10861 Albert Ou <a0u@eecs.berkeley.edu>
10862 Darius Rad <darius@bluespec.com>
10863
10864 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
10865 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
10866 (ALLDEPFILES): Add riscv-tdep.c
10867 * configure.tgt: Add riscv support.
10868 * riscv-tdep.c: New file.
10869 * riscv-tdep.h: New file.
10870 * NEWS: Mention new target.
10871 * MAINTAINERS: Add entry for riscv.
10872
10873 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10874
10875 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
10876 fields within aggregates.
10877
10878 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
10879
10880 * record-btrace.c (btrace_print_lines): Change type of flags to
10881 gdb_disassembly_flags.
10882
10883 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10884
10885 * fbsd-nat.c: Include "inf-ptrace.h".
10886 (USE_SIGTRAP_SIGINFO): Conditionally define.
10887 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
10888 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
10889 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
10890 function.
10891 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
10892 Likewise.
10893 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
10894 Likewise.
10895 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
10896 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
10897 "supports_stopped_by_hw_breakpoint" target methods.
10898
10899 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10900
10901 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
10902 * fbsd-nat.c (debug_fbsd_nat): New variable.
10903 (show_fbsd_nat_debug): New function.
10904 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
10905 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
10906
10907 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10908
10909 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
10910 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
10911 prototype.
10912 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
10913 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
10914 method.
10915
10916 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10917
10918 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
10919 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
10920
10921 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10922
10923 * charset.c (struct charset_vector): New.
10924 (charsets): Change type to charset_vector.
10925 (find_charset_names): Adjust.
10926 (add_one): Adjust.
10927 (_initialize_charset): Adjust.
10928
10929 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10930
10931 * progspace.h (struct program_space) <deleted_solibs>: Change
10932 type to std::vector<std::string>.
10933 * progspace.c (clear_program_space_solib_cache): Adjust.
10934 * breakpoint.c (print_solib_event): Adjust.
10935 (check_status_catch_solib): Adjust.
10936 * solib.c (update_solib_list): Adjust.
10937 * ui-out.h (class ui_out) <field_string>: New overload.
10938 * ui-out.c (ui_out::field_string): New overload.
10939
10940 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10941
10942 * progspace.h (struct program_space): Add constructor and
10943 destructor, initialize fields.
10944 (add_program_space): Remove.
10945 * progspace.c (add_program_space): Rename to...
10946 (program_space::program_space): ... this.
10947 (release_program_space): Rename to...
10948 (program_space::~program_space): ... this.
10949 (delete_program_space): Use delete to delete program_space.
10950 (initialize_progspace): Use new to allocate program_space.
10951 * inferior.c (add_inferior_with_spaces): Likewise.
10952 (clone_inferior_command): Likewise.
10953 * infrun.c (follow_fork_inferior): Likewise.
10954 (handle_vfork_child_exec_or_exit): Likewise.
10955
10956 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10957
10958 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
10959 (delim_string_to_char_ptr_vec): Return std::vector of
10960 gdb::unique_xmalloc_ptr.
10961 (dirnames_to_char_ptr_vec_append): Take std::vector of
10962 gdb::unique_xmalloc_ptr.
10963 (dirnames_to_char_ptr_vec): Return std::vector of
10964 gdb::unique_xmalloc_ptr.
10965 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
10966 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
10967 (delim_string_to_char_ptr_vec): Return an std::vector of
10968 gdb::unique_xmalloc_ptr, adjust the code.
10969 (dirnames_to_char_ptr_vec_append): Take an std::vector of
10970 gdb::unique_xmalloc_ptr, adjust the code.
10971 (dirnames_to_char_ptr_vec): Return an std::vector of
10972 gdb::unique_xmalloc_ptr, adjust the code.
10973 * auto-load.c (auto_load_safe_path_vec): Change type to
10974 std::vector of gdb::unique_xmalloc_ptr.
10975 (auto_load_expand_dir_vars): Return an std::vector of
10976 gdb::unique_xmalloc_ptr, adjust the code.
10977 (auto_load_safe_path_vec_update): Adjust.
10978 (filename_is_in_auto_load_safe_path_vec): Adjust.
10979 (auto_load_objfile_script_1): Adjust.
10980 * build-id.c (build_id_to_debug_bfd): Adjust.
10981 * linux-thread-db.c (thread_db_load_search): Adjust.
10982 * source.c (add_path): Adjust.
10983 (openp): Adjust.
10984 * symfile.c (find_separate_debug_file): Adjust.
10985 * utils.c (do_free_char_ptr_vec): Remove.
10986 (make_cleanup_free_char_ptr_vec): Remove.
10987
10988 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
10989
10990 PR gdb/22907
10991 * common/pathstuff.c: Conditionally include "<windows.h>".
10992
10993 2018-03-01 Georg Sauthoff <mail@georg.so>
10994
10995 PR gdb/22888
10996 * gcore.in: Quote variables and switch interpreter to bash.
10997
10998 2018-03-01 Tom Tromey <tom@tromey.com>
10999
11000 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11001 assertion. Add assertion for discriminant_index.
11002 (quirk_rust_enum): Use correct base type name in univariant case.
11003
11004 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11005
11006 * record.c (get_call_history_modifiers): Return a
11007 record_print_flags.
11008 (cmd_record_call_history): Adjust.
11009 * record-btrace.c (record_btrace_call_history): Adjust.
11010 (record_btrace_call_history_range): Adjust.
11011 (record_btrace_call_history_from): Adjust.
11012 * target-debug.h (target_debug_print_record_print_flags): New.
11013 * target-delegates.c: Re-generate.
11014 * target.c (target_call_history): Change flags type.
11015 (target_call_history_from): Likewise.
11016 (target_call_history_range): Likewise.
11017 * target.h (struct target_ops) <target_call_history>: Likewise.
11018 (target_call_history_from): Likewise.
11019 (target_call_history_range): Likewise.
11020
11021 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11022 Simon Marchi <simon.marchi@polymtl.ca>
11023
11024 * common/common-utils.c: Include "sys/stat.h".
11025 (is_regular_file): Move here from "source.c"; change return
11026 type to "bool".
11027 * common/common-utils.h (is_regular_file): New prototype.
11028 * common/pathstuff.c (contains_dir_separator): New function.
11029 * common/pathstuff.h (contains_dir_separator): New prototype.
11030 * source.c: Don't include "sys/stat.h".
11031 (is_regular_file): Move to "common/common-utils.c".
11032
11033 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11034
11035 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11036 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11037 * auto-load.c: Include "common/pathstuff.h".
11038 * common/common-def.h (current_directory): Move here.
11039 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11040 function.
11041 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11042 prototype.
11043 * common/pathstuff.c: New file.
11044 * common/pathstuff.h: New file.
11045 * compile/compile.c: Include "common/pathstuff.h".
11046 * defs.h (current_directory): Move to "common/common-defs.h".
11047 * dwarf2read.c: Include "common/pathstuff.h".
11048 * exec.c: Likewise.
11049 * guile/scm-safe-call.c: Likewise.
11050 * linux-thread-db.c: Likewise.
11051 * main.c: Likewise.
11052 * nto-tdep.c: Likewise.
11053 * objfiles.c: Likewise.
11054 * source.c: Likewise.
11055 * symtab.c: Likewise.
11056 * utils.c: Include "common/pathstuff.h".
11057 (gdb_realpath): Move to "common/pathstuff.c".
11058 (gdb_realpath_keepfile): Likewise.
11059 (gdb_abspath): Likewise.
11060 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11061 (gdb_realpath_keepfile): Likewise.
11062 (gdb_abspath): Likewise.
11063
11064 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11065
11066 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11067 wildcard process pid for super_resume for kernels with a
11068 specific bug.
11069
11070 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11071
11072 * compile/compile.c (get_args): Add additional comments
11073 explaining function.
11074
11075 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11076 Tom Tromey <tom@tromey.com>
11077
11078 * target.h (memory_write_request_s): Remove typedef. Don't define
11079 VEC.
11080 (target_write_memory_blocks): Change argument to std::vector.
11081 (struct memory_write_request): Add constructor.
11082 * target-memory.c (compare_block_starting_address): Return bool.
11083 Change argument types.
11084 (claim_memory): Change arguments to use std::vector.
11085 (split_regular_and_flash_blocks, blocks_to_erase)
11086 (compute_garbled_blocks): Likewise.
11087 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11088 (target_write_memory_blocks): Change argument to std::vector.
11089 * symfile.c (struct load_section_data): Add constructor and
11090 destructor. Use std::vector for "requests".
11091 (struct load_progress_data): Add initializers.
11092 (load_section_callback): Update. Use "new".
11093 (clear_memory_write_data): Remove.
11094 (generic_load): Update.
11095
11096 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11097
11098 * arch/aarch64.h: Use common/tdesc.h.
11099
11100 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11101
11102 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11103 architecture with a 64-bit ABI.
11104
11105 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11106
11107 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11108 ahead of target description loading.
11109
11110 2018-02-26 Tom Tromey <tom@tromey.com>
11111
11112 * stack.c (backtrace_command_1): Update.
11113 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11114 of "flags".
11115 * python/py-framefilter.c (py_print_frame)
11116 (gdbpy_apply_frame_filter): Change type of "flags".
11117 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11118 of "flags".
11119 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11120 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11121 * extension.h (enum frame_filter_flag): Rename from
11122 frame_filter_flags.
11123 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11124 (apply_ext_lang_frame_filter): Change type of "flags".
11125 * extension.c (apply_ext_lang_frame_filter): Change type of
11126 "flags".
11127 * extension-priv.h (struct extension_language_ops)
11128 <apply_frame_filter>: Change type of "flags".
11129
11130 2018-02-26 Tom Tromey <tom@tromey.com>
11131
11132 PR python/16497:
11133 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11134 off-by-one in py_end computation.
11135 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11136 PRINT_MORE_FRAMES.
11137 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11138 constant.
11139
11140 2018-02-26 Tom Tromey <tom@tromey.com>
11141
11142 * dwarf2read.c (struct variant_field): New.
11143 (struct nextfield) <variant>: New field.
11144 (dwarf2_add_field): Handle DW_TAG_variant_part.
11145 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11146 discriminated union.
11147 (read_structure_type): Handle DW_TAG_variant_part.
11148 (handle_struct_member_die): New function, extracted from
11149 process_structure_scope. Handle DW_TAG_variant.
11150 (process_structure_scope): Handle discriminated unions. Call
11151 handle_struct_member_die.
11152
11153 2018-02-26 Tom Tromey <tom@tromey.com>
11154
11155 * rust-lang.h (rust_last_path_segment): Declare.
11156 * rust-lang.c (rust_last_path_segment): Now public. Change
11157 contract.
11158 (struct disr_info): Remove.
11159 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11160 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11161 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11162 (rust_enum_p, rust_enum_variant): New function.
11163 (rust_underscore_fields): Remove "offset" parameter.
11164 (rust_print_enum): New function.
11165 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11166 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11167 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11168 enums.
11169 (rust_internal_print_type): New function, from rust_print_type.
11170 Remove enum code.
11171 (rust_print_type): Call rust_internal_print_type.
11172 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11173 Update enum handling.
11174 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11175 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11176 (rust_union_quirks): New functions.
11177 (process_full_comp_unit, process_full_type_unit): Call
11178 rust_union_quirks.
11179 (process_structure_scope): Update rust_unions if necessary.
11180
11181 2018-02-26 Tom Tromey <tom@tromey.com>
11182
11183 * value.h (value_union_variant): Declare.
11184 * valops.c (value_union_variant): New function.
11185 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11186 (struct discriminant_info): New.
11187 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11188 enumerator.
11189 (struct main_type) <flag_discriminated_union>: New field.
11190
11191 2018-02-26 Tom Tromey <tom@tromey.com>
11192
11193 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11194 unittests/unpack-selftests.c.
11195 * unittests/unpack-selftests.c: New file.
11196 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11197
11198 2018-02-26 Yao Qi <yao.qi@linaro.org>
11199
11200 * dwarf2read.c (struct partial_die_info) <read>: New method.
11201 (read_partial_die): Remove the declaration.
11202 (load_partial_dies): Update.
11203 (partial_die_info::partial_die_info):
11204 (read_partial_die): Change it to partial_die_info::read.
11205
11206 2018-02-26 Yao Qi <yao.qi@linaro.org>
11207
11208 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11209 (fixup_partial_die): Remove declaration.
11210 (scan_partial_symbols): Update.
11211 (partial_die_parent_scope): Likewise.
11212 (partial_die_full_name): Likewise.
11213 (fixup_partial_die): Change it to partial_die_info::fixup.
11214
11215 2018-02-26 Yao Qi <yao.qi@linaro.org>
11216
11217 * dwarf2read.c (read_partial_die): Update the declaration.
11218 (load_partial_dies): Caller update.
11219 (read_partial_die): Remove one argument abbrev_len.
11220
11221 2018-02-26 Yao Qi <yao.qi@linaro.org>
11222
11223 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11224 assignment operator.
11225 (load_partial_dies): Use ctor and copy ctor.
11226 (read_partial_die): Update.
11227 (dwarf2_cu::find_partial_die): Use ctor.
11228
11229 2018-02-26 Yao Qi <yao.qi@linaro.org>
11230
11231 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11232 (find_partial_die_in_comp_unit): Change it to
11233 dwarf2_cu::find_partial_die.
11234 (find_partial_die): Update.
11235
11236 2018-02-26 Yao Qi <yao.qi@linaro.org>
11237
11238 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11239 is NULL.
11240
11241 2018-02-26 Yao Qi <yao.qi@linaro.org>
11242
11243 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11244
11245 2018-02-26 Alan Hayward <alan.hayward@arm.com>
11246
11247 * arch/amd64.h: Use common/tdesc.h.
11248 * arch/i386.c: Likewise.
11249 * arch/i386.h: Likewise.
11250 * arch/tic6x.c: Likewise.
11251 * arch/tdesc.h: Move file from here...
11252 * common/tdesc.h: ...to here.
11253 * features/aarch64-core.c: Regenerate.
11254 * features/aarch64-fpu.c: Regenerate.
11255 * features/i386/32bit-avx.c: Regenerate.
11256 * features/i386/32bit-avx512.c: Regenerate.
11257 * features/i386/32bit-core.c: Regenerate.
11258 * features/i386/32bit-linux.c: Regenerate.
11259 * features/i386/32bit-mpx.c: Regenerate.
11260 * features/i386/32bit-pkeys.c: Regenerate.
11261 * features/i386/32bit-sse.c: Regenerate.
11262 * features/i386/64bit-avx.c: Regenerate.
11263 * features/i386/64bit-avx512.c: Regenerate.
11264 * features/i386/64bit-core.c: Regenerate.
11265 * features/i386/64bit-linux.c: Regenerate.
11266 * features/i386/64bit-mpx.c: Regenerate.
11267 * features/i386/64bit-pkeys.c: Regenerate.
11268 * features/i386/64bit-segments.c: Regenerate.
11269 * features/i386/64bit-sse.c: Regenerate.
11270 * features/i386/x32-core.c: Regenerate.
11271 * features/tic6x-c6xp.c: Regenerate.
11272 * features/tic6x-core.c: Regenerate.
11273 * features/tic6x-gp.c: Regenerate.
11274 * target-descriptions.c: Use common/tdesc.h.
11275 * target-descriptions.h: Likewise.
11276
11277 2018-02-24 Tom Tromey <tom@tromey.com>
11278
11279 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11280 (try_thread_db_load_from_dir, thread_db_load_search): Use
11281 std::string.
11282 (info_auto_load_libthread_db_compare): Return bool. Change
11283 argument types.
11284 (info_auto_load_libthread_db): Use std::vector, std::string.
11285 Remove cleanups.
11286
11287 2018-02-24 Tom Tromey <tom@tromey.com>
11288
11289 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11290 std::string.
11291 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11292 std::string*.
11293 * gdbarch.c: Rebuild.
11294 * gdbarch.h: Rebuild.
11295 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11296 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11297 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11298 std::string*.
11299
11300 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11301
11302 * gdbtypes.h (sect_offset): Change type to uint64_t.
11303 (sect_offset_str): New function.
11304 * dwarf2read.c (create_addrmap_from_aranges): Use
11305 sect_offset_str.
11306 (error_check_comp_unit_head): Likewise.
11307 (create_debug_type_hash_table): Likewise.
11308 (read_cutu_die_from_dwo): Likewise.
11309 (init_cutu_and_read_dies): Likewise.
11310 (init_cutu_and_read_dies_no_follow): Likewise.
11311 (process_psymtab_comp_unit_reader): Likewise.
11312 (partial_die_parent_scope): Likewise.
11313 (peek_die_abbrev): Likewise.
11314 (process_queue): Likewise.
11315 (dwarf2_physname): Likewise.
11316 (read_namespace_alias): Likewise.
11317 (read_import_statement): Likewise.
11318 (create_dwo_cu_reader): Likewise.
11319 (create_cus_hash_table): Likewise.
11320 (lookup_dwo_cutu): Likewise.
11321 (inherit_abstract_dies): Likewise.
11322 (read_func_scope): Likewise.
11323 (read_call_site_scope): Likewise.
11324 (dwarf2_add_member_fn): Likewise.
11325 (read_common_block): Likewise.
11326 (read_module_type): Likewise.
11327 (read_typedef): Likewise.
11328 (read_subrange_type): Likewise.
11329 (load_partial_dies): Likewise.
11330 (read_partial_die): Likewise.
11331 (find_partial_die): Likewise.
11332 (read_str_index): Likewise.
11333 (dwarf2_string_attr): Likewise.
11334 (build_error_marker_type): Likewise.
11335 (lookup_die_type): Likewise.
11336 (dump_die_shallow): Likewise.
11337 (follow_die_ref): Likewise.
11338 (dwarf2_fetch_die_loc_sect_off): Likewise.
11339 (dwarf2_fetch_constant_bytes): Likewise.
11340 (follow_die_sig): Likewise.
11341 (get_signatured_type): Likewise.
11342 (get_DW_AT_signature_type): Likewise.
11343 (dwarf2_find_containing_comp_unit): Likewise.
11344 (set_die_type): Likewise.
11345
11346 2018-02-21 John Baldwin <jhb@FreeBSD.org>
11347
11348 * arch/aarch64.c: Include "common-defs.h".
11349 * arch/amd64.c: Likewise.
11350 * arch/i386.c: Likewise.
11351
11352 2018-02-21 Tom Tromey <tom@tromey.com>
11353
11354 * value.h: (extract_field_op): Update.
11355 * eval.c (extract_field_op): Return a const char *.
11356 * expression.h (parse_expression_for_completion): Update.
11357 * completer.c (complete_expression): Update.
11358 (add_struct_fields): Make fieldname const.
11359 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11360 (mark_completion_tag, parse_exp_in_context_1): Update.
11361 (parse_expression_for_completion): Change "name" to
11362 unique_xmalloc_ptr*.
11363
11364 2018-02-21 Tom Tromey <tom@tromey.com>
11365
11366 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11367
11368 2018-02-21 Yao Qi <yao.qi@linaro.org>
11369
11370 * avr-tdep.c (avr_read_pc): Change parameter type to
11371 readable_regcache.
11372 * gdbarch.sh (read_pc): Likewise.
11373 * gdbarch.c: Re-generated.
11374 * gdbarch.h: Re-generated.
11375 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11376 readable_regcache.
11377 * ia64-tdep.c (ia64_read_pc): Likewise.
11378 * mips-tdep.c (mips_read_pc): Likewise.
11379 * spu-tdep.c (spu_read_pc): Likewise.
11380
11381 2018-02-21 Yao Qi <yao.qi@linaro.org>
11382
11383 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11384 * regcache-dump.c: New file.
11385 * regcache.c: Move register_dump to regcache-dump.c.
11386 (maintenance_print_registers): Likewise.
11387 (maintenance_print_raw_registers): Likewise.
11388 (maintenance_print_cooked_registers): Likewise.
11389 (maintenance_print_register_groups): Likewise.
11390 (maintenance_print_remote_registers): Likewise.
11391 (_initialize_regcache): Likewise.
11392 * regcache.h (register_dump): Moved from regcache.c.
11393
11394 2018-02-21 Yao Qi <yao.qi@linaro.org>
11395
11396 * regcache.c (regcache::regcache): Update.
11397 (regcache::invalidate): Move it to detached_regcache::invalidate.
11398 (get_thread_arch_aspace_regcache): Update.
11399 (regcache::raw_update): Update.
11400 (regcache::cooked_read): Remove some code.
11401 (regcache::cooked_read_value): Likewise.
11402 (regcache::raw_write): Remove assert on m_readonly_p.
11403 (regcache::raw_supply_integer): Move it to
11404 detached_regcache::raw_supply_integer.
11405 (regcache::raw_supply_zeroed): Likewise.
11406 * regcache.h (detached_regcache) <raw_supply_integer>: New
11407 declaration.
11408 <raw_supply_zeroed, invalidate>: Likewise.
11409 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11410 <invalidate>: Likewise.
11411 <m_readonly_p>: Removed.
11412
11413 2018-02-21 Yao Qi <yao.qi@linaro.org>
11414
11415 * infcmd.c (get_return_value): Let stop_regs point to
11416 get_current_regcache.
11417 * regcache.c (regcache::regcache): Remove.
11418 (register_dump_reg_buffer): New class.
11419 (regcache_print): Adjust.
11420 * regcache.h (regcache): Remove constructors.
11421
11422 2018-02-21 Yao Qi <yao.qi@linaro.org>
11423
11424 * regcache.c (class register_dump): New class.
11425 (register_dump_regcache, register_dump_none): New class.
11426 (register_dump_remote, register_dump_groups): New class.
11427 (regcache_print): Update.
11428 * regcache.h (regcache_dump_what): Move it to regcache.c.
11429 (regcache) <dump>: Remove.
11430
11431 2018-02-21 Yao Qi <yao.qi@linaro.org>
11432
11433 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11434 reg_buffer_rw *.
11435 (jit_unwind_reg_set_impl): Call raw_supply.
11436 (jit_frame_sniffer): Use reg_buffer_rw.
11437 * record-full.c (record_full_core_regbuf): Change its type.
11438 (record_full_core_open_1): Use reg_buffer_rw.
11439 (record_full_close): Likewise.
11440 (record_full_core_fetch_registers): Use regcache->raw_supply.
11441 (record_full_core_store_registers): Likewise.
11442 * regcache.c (regcache::get_register_status): Move it to
11443 reg_buffer.
11444 (regcache_raw_set_cached_value): Remove.
11445 (regcache::raw_set_cached_value): Remove.
11446 (regcache::raw_write): Call raw_supply.
11447 (regcache::raw_supply): Move it to reg_buffer_rw.
11448 * regcache.h (regcache_raw_set_cached_value): Remove.
11449 (reg_buffer_rw): New class.
11450
11451 2018-02-21 Yao Qi <yao.qi@linaro.org>
11452
11453 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11454 readonly_detached_regcache.
11455 (dummy_frame_prev_register): Use regcache->cooked_read.
11456 * frame.c (frame_save_as_regcache): Change return type.
11457 (frame_pop): Update.
11458 * frame.h (frame_save_as_regcache): Update declaration.
11459 * inferior.h (get_infcall_suspend_state_regcache): Update
11460 declaration.
11461 * infrun.c (infcall_suspend_state) <registers>: use
11462 readonly_detached_regcache.
11463 (save_infcall_suspend_state): Don't use regcache_dup.
11464 (get_infcall_suspend_state_regcache): Change return type.
11465 * linux-fork.c (struct fork_info) <savedregs>: Change to
11466 readonly_detached_regcache.
11467 <pc>: New field.
11468 (fork_save_infrun_state): Don't use regcache_dup.
11469 (info_checkpoints_command): Adjust.
11470 * mi/mi-main.c (register_changed_p): Update declaration.
11471 (mi_cmd_data_list_changed_registers): Use
11472 readonly_detached_regcache.
11473 (register_changed_p): Change parameter type to
11474 readonly_detached_regcache.
11475 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11476 readonly_detached_regcache.
11477 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11478 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11479 New.
11480 (regcache::save): Move it to reg_buffer.
11481 (regcache::restore): Change parameter type.
11482 (regcache_dup): Remove.
11483 * regcache.h (reg_buffer) <save>: New method.
11484 (readonly_detached_regcache): New class.
11485 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11486 readonly_detached_regcache.
11487 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11488
11489 2018-02-21 Yao Qi <yao.qi@linaro.org>
11490
11491 * frame.c (frame_save_as_regcache): Use regcache method save.
11492 (frame_pop): Use regcache method restore.
11493 * infrun.c (restore_infcall_suspend_state): Likewise.
11494 * linux-fork.c (fork_load_infrun_state): Likewise.
11495 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11496 save.
11497 * regcache.c (regcache_save): Remove.
11498 (regcache::restore): More asserts.
11499 (regcache_cpy): Remove.
11500 * regcache.h (regcache_save): Remove the declaration.
11501 (regcache::restore): Move from private to public.
11502 Remove the friend declaration of regcache_cpy.
11503 (regcache_cpy): Remove declaration.
11504
11505 2018-02-21 Yao Qi <yao.qi@linaro.org>
11506
11507 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11508 parameter type to 'readable_regcache *'.
11509 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11510 * arm-tdep.c (arm_neon_quad_read): Likewise.
11511 (arm_pseudo_read): Likewise.
11512 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11513 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11514 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11515 * gdbarch.c: Re-generated.
11516 * gdbarch.h: Re-generated.
11517 * gdbarch.sh (pseudo_register_read): Change parameter type to
11518 'readable_regcache *'.
11519 (pseudo_register_read_value): Likewise.
11520 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11521 (h8300_pseudo_register_read): Likewise.
11522 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11523 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11524 (i386_pseudo_register_read_into_value): Likewise.
11525 (i386_pseudo_register_read_value): Likewise.
11526 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11527 declaration.
11528 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11529 * m32c-tdep.c (m32c_raw_read): Likewise.
11530 (m32c_read_flg): Likewise.
11531 (m32c_banked_register): Likewise.
11532 (m32c_banked_read): Likewise.
11533 (m32c_sb_read): Likewise.
11534 (m32c_part_read): Likewise.
11535 (m32c_cat_read): Likewise.
11536 (m32c_r3r2r1r0_read): Likewise.
11537 (m32c_pseudo_register_read): Likewise.
11538 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11539 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11540 (mep_pseudo_cr64_read): Likewise.
11541 (mep_pseudo_register_read): Likewise.
11542 * mips-tdep.c (mips_pseudo_register_read): Likewise.
11543 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11544 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11545 * regcache.c (regcache::raw_read): Move it to readable_regcache.
11546 (regcache::cooked_read): Likewise.
11547 (regcache::cooked_read_value): Likewise.
11548 (regcache_cooked_read_signed):
11549 (regcache::cooked_read): Likewise.
11550 * regcache.h (readable_regcache): New class.
11551 (regcache): Inherit readable_regcache. Move some methods to
11552 readable_regcache.
11553 * rl78-tdep.c (rl78_pseudo_register_read): Change
11554 parameter type to 'readable_regcache *'.
11555 * rs6000-tdep.c (do_regcache_raw_read): Remove.
11556 (e500_pseudo_register_read): Change parameter type to
11557 'readable_regcache *'.
11558 (dfp_pseudo_register_read): Likewise.
11559 (vsx_pseudo_register_read): Likewise.
11560 (efpr_pseudo_register_read): Likewise.
11561 * s390-tdep.c (s390_pseudo_register_read): Likewise.
11562 * sh-tdep.c (sh_pseudo_register_read): Likewise.
11563 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
11564 (sh64_pseudo_register_read): Likewise.
11565 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11566 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11567 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11568 (spu_pseudo_register_read): Likewise.
11569 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11570 (xtensa_pseudo_register_read): Likewise.
11571
11572 2018-02-21 Yao Qi <yao.qi@linaro.org>
11573
11574 * regcache.c (regcache::regcache): Call reg_buffer ctor.
11575 (regcache::arch): Move it to reg_buffer::arch.
11576 (regcache::register_buffer): Likewise.
11577 (regcache::assert_regnum): Likewise.
11578 (regcache::num_raw_registers): Likewise.
11579 * regcache.h (reg_buffer): New class.
11580 (regcache): Inherit reg_buffer.
11581
11582 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
11583
11584 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
11585 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
11586
11587 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
11588
11589 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
11590
11591 2018-02-19 Alan Hayward <alan.hayward@arm.com>
11592
11593 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
11594 (SFILES): Remove common/*.c files.
11595 (COMMON_OBS): Remove some *.o files built from common/*.c files.
11596 * common/common.host: Add common reference.
11597 * configure.ac: Likewise.
11598 * configure: Regenerate.
11599
11600 2018-02-16 Yao Qi <yao.qi@linaro.org>
11601
11602 * block.c (block_namespace_info): Inherit allocate_on_obstack.
11603 (block_initialize_namespace): Use new.
11604 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
11605 (dwarf2_free_objfile): Use delete.
11606 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11607 (copy_type_recursive): Use new.
11608 * gdb_obstack.h (allocate_on_obstack): New.
11609
11610 2018-02-15 Yao Qi <yao.qi@linaro.org>
11611
11612 PR gdb/22849
11613 * inferior.c (exit_inferior_1): Reset inf->control.
11614
11615 2018-02-15 Joel Brobecker <brobecker@adacore.com>
11616
11617 * ada-lang.c (ada_to_fixed_value_create): Delete advance
11618 declaration.
11619
11620 2018-02-14 Pedro Alves <palves@redhat.com>
11621
11622 * frame-unwind.c (frame_unwind_try_unwinder): Always call
11623 frame_cleanup_after_sniffer on exception.
11624
11625 2018-02-14 Tom Tromey <tom@tromey.com>
11626
11627 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
11628 const.
11629 (solib_bfd_open): Make pathname const.
11630 * solib.c (solib_bfd_open): Make pathname const.
11631 * solib-spu.c (spu_bfd_fopen): Make name const.
11632 (spu_bfd_open): Make pathname const.
11633 * solib-darwin.c (darwin_bfd_open): Make pathname const.
11634 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
11635
11636 2018-02-14 Tom Tromey <tom@tromey.com>
11637
11638 * symfile.c (symfile_bfd_open): Update.
11639 * source.h (openp, source_full_path_of, find_and_open_source):
11640 Change argument type to unique_xmalloc_ptr.
11641 * source.c (openp): Take a unique_xmalloc_ptr.
11642 (source_full_path_of, find_and_open_source): Likewise.
11643 (open_source_file, symtab_to_fullname): Update.
11644 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
11645 unique_xmalloc_ptr.
11646 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
11647 (exec_file_find): Update.
11648 * psymtab.c (psymtab_to_fullname): Update.
11649 * nto-tdep.h (nto_find_and_open_solib): Update.
11650 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
11651 unique_xmalloc_ptr.
11652 * exec.c (exec_file_attach): Update.
11653 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
11654 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
11655
11656 2018-02-14 Tom Tromey <tom@tromey.com>
11657
11658 * solib.c: Include source.h.
11659 * nto-tdep.c: Include source.h.
11660 * mi/mi-cmd-env.c: Include source.h.
11661 * infcmd.c: Include source.h.
11662 * exec.c: Include source.h.
11663 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
11664 (add_path, directory_switch, source_path, init_source_path): Move
11665 declarations...
11666 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
11667 (add_path, directory_switch, source_path, init_source_path):
11668 ...here.
11669
11670 2018-02-14 Tom Tromey <tom@tromey.com>
11671
11672 * solist.h (exec_file_find, solib_find): Return
11673 unique_xmalloc_ptr.
11674 (solib_bfd_fopen): Take a const char *.
11675 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
11676 (exec_file_find, solib_find): Likewise.
11677 (solib_bfd_fopen): Do not take ownership of "pathname".
11678 (solib_bfd_open): Use unique_xmalloc_ptr.
11679 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
11680 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
11681 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
11682 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
11683
11684 2018-02-14 Joel Brobecker <brobecker@adacore.com>
11685
11686 * ada-lang.c (name_match_type_from_name): Remove reference to
11687 ada_name_for_lookup in function's documentation.
11688 * ada-lang.h (ada_name_for_lookup): Delete declaration.
11689
11690 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11691
11692 * defs.h (enum openp_flags): New enum.
11693 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
11694 Move to enum openp_flags.
11695 (openp_flags): New enum flags.
11696 (openp): Change parameter type to openp_flags.
11697 * source.c (openp): Change parameter type to openp_flags.
11698 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
11699 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
11700
11701 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11702
11703 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
11704 per-command.
11705
11706 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
11707
11708 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
11709 into...
11710 (class dwarf2_queue_guard): ...the destructor of this new class.
11711 (dw2_do_instantiate_symtab): Create instance of the new class
11712 dwarf2_queue_guard, remove cleanup.
11713
11714 2018-02-09 Tom Tromey <tom@tromey.com>
11715
11716 * source.c (find_source_lines): Don't reference past the end of
11717 the vector.
11718
11719 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11720
11721 * remote.c (remote_btrace_maybe_reopen): Change error message.
11722 * btrace.c (btrace_enable): Likewise.
11723 (parse_xml_btrace): Likewise.
11724 (parse_xml_btrace_conf): Likewise.
11725
11726 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11727
11728 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
11729 (linux_enable_pt, linux_enable_bts): Call
11730 diagnose_perf_event_open_fail.
11731
11732 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11733
11734 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
11735 Remove parameter and change return type. Update callers. Move it.
11736 (linux_enable_bts, linux_enable_pt): Improve error message.
11737 (linux_enable_pt): Remove zero buffer size check.
11738 (linux_enable_btrace): Improve error messages. Remove NULL return
11739 check.
11740
11741 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11742
11743 * btrace.c (btrace_enable): Remove target_supports_btrace call.
11744 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
11745 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
11746 (linux_supports_pt, linux_supports_btrace): Remove.
11747 (linux_enable_bts): Call cpu_supports_bts.
11748 * nat/linux-btrace.h (linux_supports_btrace): Remove.
11749 * remote.c (remote_supports_btrace): Remove.
11750 (init_remote_ops): Remove remote_supports_btrace.
11751 * target-delegates.c: Regenerated.
11752 * target.c (target_supports_btrace): Remove.
11753 * target.h (target_ops) <to_supports_btrace>: Remove
11754 (target_supports_btrace): Remove.
11755 * x86-linux-nat.c (x86_linux_create_target): Remove
11756 linux_supports_btrace.
11757
11758 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11759
11760 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
11761 btrace failed.
11762 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
11763 exception and use message in own exception.
11764
11765 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11766
11767 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
11768 (perf_event_pt_event_type): Use gdb_file_up.
11769 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
11770 scoped_fd, and scoped_mmap.
11771
11772 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11773
11774 * common/scoped_mmap.h: New.
11775 * unittests/scoped_mmap-selftest.c: New.
11776 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11777 unittests/scoped_mmap-selftest.c.
11778
11779 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11780
11781 * common/scoped_fd.h: New.
11782 * unittests/scoped_fd-selftest.c: New.
11783 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11784 unittests/scoped_fd-selftest.c.
11785
11786 2018-02-09 Tom Tromey <tom@tromey.com>
11787
11788 * auto-load.c (auto_load_section_scripts): Use
11789 gdb::unique_xmalloc_ptr.
11790
11791 2018-02-09 Tom Tromey <tom@tromey.com>
11792
11793 * auto-load.c (execute_script_contents): Use std::string.
11794
11795 2018-02-09 Joel Brobecker <brobecker@adacore.com>
11796
11797 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
11798 Python function, rather than a new command.
11799
11800 2018-02-08 Tom Tromey <tom@tromey.com>
11801
11802 * solib.c (solib_find_1): Use std::string.
11803 (solib_bfd_fopen): Use unique_xmalloc_ptr.
11804
11805 2018-02-08 Tom Tromey <tom@tromey.com>
11806
11807 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
11808
11809 2018-02-08 Tom Tromey <tom@tromey.com>
11810
11811 * source.c (find_source_lines): Use gdb::def_vector.
11812
11813 2018-02-08 Tom Tromey <tom@tromey.com>
11814
11815 * macrocmd.c (struct temporary_macro_definition): New.
11816 (macro_define_command): Use temporary_macro_definition. Remove
11817 cleanups.
11818 (free_macro_definition_ptr): Remove.
11819
11820 2018-02-08 Tom Tromey <tom@tromey.com>
11821
11822 * macroexp.c (maybe_expand): Use std::string.
11823
11824 2018-02-08 Tom Tromey <tom@tromey.com>
11825
11826 * macroexp.c (struct macro_buffer): Add initializers for some
11827 members.
11828 (init_buffer, init_shared_buffer, free_buffer)
11829 (free_buffer_return_text): Remove.
11830 (macro_buffer): New constructors.
11831 (~macro_buffer): New destructor.
11832 (macro_buffer::set_shared): New method.
11833 (macro_buffer::resize_buffer, macro_buffer::appendc)
11834 (macro_buffer::appendmem): Now methods, not free functions.
11835 (set_token, append_tokens_without_splicing, stringify)
11836 (macro_stringify): Update.
11837 (gather_arguments): Change return type. Remove argc_p argument,
11838 add args_ptr argument. Use std::vector.
11839 (substitute_args): Remove argc argument. Accept std::vector.
11840 (expand): Update. Use std::vector.
11841 (scan, macro_expand, macro_expand_next): Update.
11842
11843 2018-02-08 Tom Tromey <tom@tromey.com>
11844
11845 * symtab.c (default_collect_symbol_completion_matches_break_on):
11846 Use unique_xmalloc_ptr.
11847 * macroscope.h: (sal_macro_scope, user_macro_scope)
11848 (default_macro_scope): Return unique_xmalloc_ptr.
11849 * macroscope.c (sal_macro_scope, user_macro_scope)
11850 (default_macro_scope): Return unique_xmalloc_ptr.
11851 * macroexp.h (macro_expand, macro_expand_once): Return
11852 unique_xmalloc_ptr.
11853 * macroexp.c (macro_expand, macro_expand_once): Return
11854 unique_xmalloc_ptr.
11855 * macrocmd.c (macro_expand_command, macro_expand_once_command)
11856 (info_macro_command, info_macros_command): Use
11857 unique_xmalloc_ptr.
11858 * compile/compile-c-support.c (write_macro_definitions): Use
11859 unique_xmalloc_ptr.
11860 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
11861
11862 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
11863
11864 * value.c (value_static_field): Assign field type instead of
11865 containing type when returning an optimized out value.
11866
11867 2018-02-06 Yao Qi <yao.qi@linaro.org>
11868
11869 * ft32-tdep.c (ft32_read_pc): Remove.
11870 (ft32_write_pc): Remove.
11871 (ft32_gdbarch_init): Update.
11872 * m32r-tdep.c (m32r_read_pc): Remove.
11873 (m32r_gdbarch_init): Update.
11874 * mep-tdep.c (mep_read_pc): Remove.
11875 (mep_gdbarch_init): Update.
11876 * microblaze-tdep.c (microblaze_write_pc): Remove.
11877 (microblaze_gdbarch_init): Update.
11878 * mn10300-tdep.c (mn10300_read_pc): Remove.
11879 (mn10300_write_pc): Remove.
11880 (mn10300_gdbarch_init): Update.
11881 * moxie-tdep.c (moxie_read_pc): Remove.
11882 (moxie_write_pc): Remove.
11883 (moxie_gdbarch_init): Update.
11884
11885 2018-02-06 Yao Qi <yao.qi@linaro.org>
11886
11887 * expprint.c (print_subexp_standard): Handle
11888 OP_F77_UNDETERMINED_ARGLIST.
11889 (dump_subexp_body_standard): Likewise.
11890
11891 2018-02-05 Alan Hayward <alan.hayward@arm.com>
11892
11893 * target-descriptions.c (tdesc_element_visitor) Add empty
11894 implementations.
11895 (tdesc_type): Move make_gdb_type from here.
11896 (tdesc_type_builtin): Likewise.
11897 (tdesc_type_vector): Likewise.
11898 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
11899 (make_gdb_type_struct): Move from tdesc_type_with_fields.
11900 (make_gdb_type_union): Likewise.
11901 (make_gdb_type_flags): Likewise.
11902 (make_gdb_type_enum): Likewise.
11903 (make_gdb_type): New function.
11904 (tdesc_register_type): Use static make_gdb_type.
11905
11906 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
11907
11908 * infcmd.c (default_print_one_register_info): Align natural-format
11909 column values consistently one under another.
11910 (pad_to_column): New function.
11911
11912 2018-02-05 Joel Brobecker <brobecker@adacore.com>
11913
11914 * dwarf2read.c (dwarf2_physname): Move commment.
11915
11916 2018-02-01 Leszek Swirski <leszeks@google.com>
11917
11918 * varobj.c (varobj_formatted_print_options): Allow recursive
11919 pretty printing if pretty printing is enabled.
11920
11921 2018-02-01 Leszek Swirski <leszeks@google.com>
11922
11923 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
11924 names after a structop as a filename.
11925
11926 2018-02-01 Yao Qi <yao.qi@linaro.org>
11927
11928 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
11929 (arm_record_coproc_data_proc): Likewise.
11930
11931 2018-02-01 Yao Qi <yao.qi@linaro.org>
11932
11933 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
11934
11935 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
11936
11937 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
11938 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
11939
11940 2018-01-31 Pedro Alves <palves@redhat.com>
11941
11942 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
11943 * inflow.c (child_terminal_save_inferior): Wrap reference to
11944 tcgetpgrp in HAVE_TERMIOS_H.
11945 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
11946 _WIN32.
11947 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
11948 always iterate over all inferiors.
11949 (gdbsim_cntrl_c): Adjust.
11950 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
11951
11952 2018-01-31 Joel Brobecker <brobecker@adacore.com>
11953
11954 * gdbtypes.c (lookup_array_range_type): Make sure the array's
11955 index type is objfile-owned if the element type is as well.
11956
11957 2018-01-31 Joel Brobecker <brobecker@adacore.com>
11958
11959 GDB 8.1 released.
11960
11961 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
11962
11963 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
11964 "features/s390x-linux64.c".
11965 (_initialize_s390_linux_tdep): Remove initialization of tdescs
11966 s390_linux32 and s390x_linux64.
11967 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
11968 default tdesc.
11969 * s390-tdep.c: Include "features/s390-linux32.c" and
11970 "features/s390x-linux64.c".
11971 (s390_tdesc_valid): Add check for tdesc_has_registers.
11972 (s390_gdbarch_init): Make sure there is always a valid tdesc.
11973 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
11974 tdesc_s390x_linux64.
11975 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
11976 tdesc_s390x_linux64 to...
11977 * s390-tdep.h: ...here.
11978
11979 2018-01-30 Pedro Alves <palves@redhat.com>
11980
11981 PR gdb/13211
11982 * config.in, configure: Regenerate.
11983 * configure.ac: Check for getpgid.
11984 * go32-nat.c (go32_pass_ctrlc): New.
11985 (go32_target): Install it.
11986 * inf-child.c (inf_child_target): Install
11987 child_terminal_save_inferior, child_pass_ctrlc and
11988 child_interrupt.
11989 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
11990 (inf_ptrace_target): No longer install it.
11991 * infcmd.c (interrupt_target_1): Adjust.
11992 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
11993 (child_interrupt): Declare.
11994 (inferior::terminal_state): New.
11995 * inflow.c (struct terminal_info): Update comments.
11996 (inferior_process_group): Delete.
11997 (terminal_is_ours): Delete.
11998 (gdb_tty_state): New.
11999 (child_terminal_init): Adjust.
12000 (is_gdb_terminal, sharing_input_terminal_1)
12001 (sharing_input_terminal): New functions.
12002 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12003 Set the process's actual process group in the foreground if
12004 possible. Handle is_ours_for_output/is_ours distinction. Don't
12005 mark terminal as the inferior's if not sharing GDB's terminal.
12006 Don't check attach_flag.
12007 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12008 pass down a target_terminal_state.
12009 (child_terminal_save_inferior): New, factored out from ...
12010 (child_terminal_ours_1): ... this. Handle
12011 target_terminal_state::is_ours_for_output.
12012 (child_interrupt, child_pass_ctrlc): New.
12013 (inflow_inferior_exit): Clear the inferior's terminal_state.
12014 (copy_terminal_info): Copy the inferior's terminal state.
12015 (_initialize_inflow): Remove reference to terminal_is_ours.
12016 * inflow.h (inferior_process_group): Delete.
12017 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12018 * procfs.c (procfs_target): Don't install procfs_interrupt.
12019 (procfs_interrupt): Delete.
12020 * remote.c (remote_serial_quit_handler): Adjust.
12021 (remote_interrupt): Remove ptid parameter. Adjust.
12022 * target-delegates.c: Regenerate.
12023 * target.c: Include "terminal.h".
12024 (target_terminal::terminal_state): Rename to ...
12025 (target_terminal::m_terminal_state): ... this.
12026 (target_terminal::init): Adjust.
12027 (target_terminal::inferior): Adjust to per-inferior
12028 terminal_state.
12029 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12030 (target_terminal::ours, target_terminal::ours_for_output): Use
12031 target_terminal_is_ours_kind.
12032 (target_interrupt): Remove ptid parameter. Adjust.
12033 (default_target_pass_ctrlc): Adjust.
12034 * target.h (target_ops::to_terminal_save_inferior): New field.
12035 (target_ops::to_interrupt): Remove ptid_t parameter.
12036 (target_interrupt): Remove ptid_t parameter. Update comment.
12037 (target_pass_ctrlc): Update comment.
12038 * target/target.h (target_terminal_state): New scoped enum,
12039 factored out of ...
12040 (target_terminal::terminal_state): ... here.
12041 (target_terminal::inferior): Update comments.
12042 (target_terminal::restore_inferior): New.
12043 (target_terminal::is_inferior, target_terminal::is_ours)
12044 (target_terminal::is_ours_for_output): Adjust.
12045 (target_terminal::scoped_restore_terminal_state): Adjust to
12046 rename, and call restore_inferior() instead of inferior().
12047 (target_terminal::scoped_restore_terminal_state::m_state): Change
12048 type.
12049 (target_terminal::terminal_state): Rename to ...
12050 (target_terminal::m_terminal_state): ... this and change type.
12051
12052 2018-01-30 Pedro Alves <palves@redhat.com>
12053
12054 * linux-nat.c (wait_for_signal): New function.
12055 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12056 directly.
12057 (async_terminal_is_ours)
12058 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12059 (linux_nat_add_target): Don't override
12060 to_terminal_inferior/to_terminal_ours.
12061
12062 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12063
12064 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12065
12066 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12067
12068 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12069 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12070 dwarf2_per_objfile_free here.
12071 (dwarf2_per_objfile_free): Remove.
12072 (_initialize_dwarf2_read): Don't register
12073 dwarf2_per_objfile_free as a registry cleanup.
12074
12075 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12076
12077 Avoid compilation errors in MinGW native builds
12078
12079 The error is triggered by including python-internal.h, and the
12080 error message is:
12081
12082 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12083 from build-gnulib/import/math.h:27,
12084 from d:/usr/Python26/include/pyport.h:235,
12085 from d:/usr/Python26/include/Python.h:58,
12086 from python/python-internal.h:94,
12087 from python/py-arch.c:24:
12088 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12089 using ::hypot;
12090 ^~~~~
12091
12092 This happens because Python headers define 'hypot' to expand t
12093 '_hypot' in the Windows builds.
12094 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12095 'hypoth'. This avoids a compilation error.
12096
12097 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12098
12099 * MAINTAINERS (Write After Approval): Fix ordering.
12100
12101 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12102
12103 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12104
12105 2018-01-26 Alan Modra <amodra@gmail.com>
12106
12107 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12108 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12109 Remove nop. Make const. Comment.
12110 (powerpc32_plt_stub_so_2): New.
12111 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12112 Correct count. Update uses.
12113 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12114 Move common code reading PLT entry word. Correct
12115 powerpc32_plt_stub PLT address calculation.
12116 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12117 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12118 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12119 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12120 (ppc64_standard_linkage8): Likewise.
12121 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12122 Correct insns description.
12123 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12124
12125 2018-01-24 Pedro Alves <palves@redhat.com>
12126
12127 GCC PR libstdc++/83906
12128 * gdbtypes.c (operator==(const dynamic_prop &,
12129 const dynamic_prop &)): New.
12130 (operator==(const range_bounds &, const range_bounds &)): New.
12131 (check_types_equal): Use them instead of memcmp.
12132 * gdbtypes.h (operator==(const dynamic_prop &,
12133 const dynamic_prop &)): Declare.
12134 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12135 (operator==(const range_bounds &, const range_bounds &)): Declare.
12136 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12137
12138 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12139
12140 * s390-linux-tdep.c (s390_record_address_mask)
12141 (s390_record_calc_disp_common, s390_record_calc_disp)
12142 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12143 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12144 (s390_process_record): Move to s390-tdep.c.
12145 (s390_linux_init_abi_any): Adjust.
12146 * s390-tdep.c (s390_record_address_mask)
12147 (s390_record_calc_disp_common, s390_record_calc_disp)
12148 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12149 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12150 (s390_process_record): Moved from s390-linux-tdep.c
12151 (s390_gdbarch_init): Adjust.
12152
12153 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12154
12155 * s390-linux-nat.c (s390-tdep.h): New include.
12156 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12157 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12158 (ALLDEPFILES): Add s390-tdep.c.
12159 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12160 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12161 * s390-tdep.h: ...this. New file.
12162 * s390-linux-tdep.c (s390-tdep.h): New include.
12163 (_initialize_s390_tdep): Rename to...
12164 (_initialize_s390_linux_tdep): ...this and adjust.
12165 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12166 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12167 s390-tdep.h.
12168 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12169 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12170 (s390_is_partial_instruction, s390_software_single_step)
12171 (is_non_branch_ril, s390_displaced_step_copy_insn)
12172 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12173 (s390_prologue_data, s390_addr, s390_store, s390_load)
12174 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12175 (s390_register_call_saved, s390_guess_tracepoint_registers)
12176 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12177 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12178 (s390_pseudo_register_name, s390_pseudo_register_type)
12179 (s390_pseudo_register_read, s390_pseudo_register_write)
12180 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12181 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12182 (s390_addr_bits_remove, s390_address_class_type_flags)
12183 (s390_address_class_type_flags_to_name)
12184 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12185 (s390_function_arg_float, s390_function_arg_vector)
12186 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12187 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12188 (s390_frame_align, s390_register_return_value, s390_return_value)
12189 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12190 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12191 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12192 (s390_trad_frame_prev_register, s390_unwind_cache)
12193 (s390_prologue_frame_unwind_cache)
12194 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12195 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12196 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12197 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12198 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12199 (s390_frame_base_address, s390_local_base_address)
12200 (s390_frame_base, s390_gcc_target_options)
12201 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12202 (s390_validate_reg_range, s390_tdesc_valid)
12203 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12204 * s390-tdep.c: ...this. New file.
12205
12206 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12207
12208 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12209 (s390_process_record, s390_gdbarch_tdep_alloc)
12210 (s390_linux_init_abi_any): Use/set new hook.
12211
12212 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12213
12214 * s390-linux-tdep.c (osabi.h): New include.
12215 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12216 (s390_linux_init_abi_any): New functions.
12217 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12218
12219 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12220
12221 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12222 tdesc_has_registers check
12223
12224 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12225
12226 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12227 (s390_validate_reg_range): New macro.
12228 (s390_gdbarch_init): Adjust.
12229
12230 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12231
12232 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12233 (s390_gdbarch_tdep_alloc): Adjust.
12234 (s390_gdbarch_init): Adjust.
12235
12236 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12237
12238 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12239 <have_tdb>: Change type to bool.
12240 (s390_gdbarch_tdep_alloc): Adjust.
12241 (s390_gdbarch_init): Adjust.
12242
12243 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12244
12245 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12246 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12247 (s390_gdbarch_tdep_alloc): New function.
12248 (s390_gdbarch_init): Allocate tdep at start and use its fields
12249 instead of separate variables.
12250
12251 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12252
12253 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12254 when looking for cached gdbarch and add comment for remaining.
12255
12256 2018-01-22 Pedro Alves <palves@redhat.com>
12257 Sergio Durigan Junior <sergiodj@redhat.com>
12258
12259 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12260 case.
12261
12262 2018-01-22 Maciej W. Rozycki <macro@mips.com>
12263
12264 * MAINTAINERS: Update my company e-mail address.
12265
12266 2018-01-22 Yao Qi <yao.qi@linaro.org>
12267
12268 * regcache.c (cooked_write_test): New function.
12269 (_initialize_regcache): Register the test.
12270
12271 2018-01-22 Yao Qi <yao.qi@linaro.org>
12272
12273 * ia64-tdep.c (ia64_pseudo_register_read): Call
12274 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12275 * m32c-tdep.c (m32c_cat_read): Likewise.
12276 (m32c_r3r2r1r0_read): Likewise.
12277 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12278 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12279
12280 2018-01-22 Yao Qi <yao.qi@linaro.org>
12281
12282 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12283 method raw_read instead of regcache_raw_read.
12284 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12285 * arm-tdep.c (arm_neon_quad_read): Likewise.
12286 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12287 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12288 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12289 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12290 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12291 (i386_pseudo_register_read_into_value): Likewise.
12292 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12293 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12294 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12295 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12296 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12297 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12298 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12299 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12300 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12301
12302 2018-01-22 Yao Qi <yao.qi@linaro.org>
12303
12304 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12305 * configure.tgt: Remove target mt.
12306 * mt-tdep.c: Remove.
12307 * regcache.c (cooked_read_test): Remove the check for mt.
12308
12309 2018-01-22 Yao Qi <yao.qi@linaro.org>
12310
12311 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12312 instead of gdbarch_pseudo_register_read_value.
12313
12314 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12315
12316 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12317 language is Ada.
12318
12319 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12320
12321 * linespec.c (create_sals_line_offset): Remove code that preserved
12322 the symtab_and_line's line number.
12323
12324 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12325
12326 * varobj.c (varobj_create): Don't set valid_block when creating a
12327 floating varobj.
12328
12329 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12330
12331 * varobj.c (varobj_create): Remove out of date comment.
12332
12333 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12334
12335 PR mi/20395
12336 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12337 updating innermost block.
12338 * parse.c (innermost_block_tracker::update): Take extra type
12339 parameter, and check types match before updating innermost block.
12340 (write_dollar_variable): Update innermost block for registers.
12341 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12342 (innermost_block_tracker::innermost_block_tracker): Initialise
12343 m_types member.
12344 (innermost_block_tracker::reset): Take type parameter.
12345 (innermost_block_tracker::update): Take type parameter, and pass
12346 type through as needed.
12347 (innermost_block_tracker::m_types): New member.
12348 * varobj.c (varobj_create): Pass type when reseting innermost
12349 block.
12350
12351 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12352
12353 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12354 * ada-lang.c (resolve_subexp): Likewise.
12355 * breakpoint.c (set_breakpoint_condition) Likewise.
12356 (watch_command_1) Likewise.
12357 * c-exp.y (variable): Likewise.
12358 * d-exp.y (PrimaryExpression): Likewise.
12359 * f-exp.y (variable): Likewise.
12360 * go-exp.y (variable): Likewise.
12361 * m2-exp.y (variable): Likewise.
12362 * objfiles.c (objfile::~objfile): Likewise.
12363 * p-exp.y (variable): Likewise.
12364 * parse.c (innermost_block): Change type.
12365 * parser-defs.h (class innermost_block_tracker): New.
12366 (innermost_block): Change to innermost_block_tracker.
12367 * printcmd.c (display_command): Switch to innermost_block API.
12368 (do_one_display): Likewise.
12369 * rust-exp.y (do_one_display): Likewise.
12370 * symfile.c (clear_symtab_users): Likewise.
12371 * varobj.c (varobj_create): Switch to innermost_block API, replace
12372 use of innermost_block with block stored on varobj object.
12373
12374 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12375
12376 * expression.h (innermost_block): Remove declaration.
12377 * varobj.c: Add 'parser-defs.h' include.
12378
12379 2018-01-19 Tom Tromey <tom@tromey.com>
12380
12381 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12382 symbols in the static and global blocks.
12383
12384 2018-01-19 James Clarke <jrtc27@jrtc27.com>
12385
12386 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12387 gdb_ptrace.h, and move including gdb_wait.h ...
12388 * nat/linux-ptrace.h: ... to here.
12389
12390 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12391
12392 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12393 inf_ptrace_detach_success.
12394 (inf_ptrace_detach_success): Add inferior parameter, use it
12395 instead of inferior_ptid, pass it to detach_inferior.
12396 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12397 parameter.
12398 * inferior.c (detach_inferior): Add overload that takes an
12399 inferior object.
12400 * inferior.h (detach_inferior): Likewise.
12401 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12402 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12403 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12404
12405 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12406
12407 * target.h (struct target_ops) <to_detach>: Add inferior
12408 parameter.
12409 (target_detach): Likewise.
12410 * target.c (dispose_inferior): Pass inferior down.
12411 (target_detach): Pass inferior down. Assert that it is equal to
12412 the current inferior.
12413 * aix-thread.c (aix_thread_detach): Pass inferior down.
12414 * corefile.c (core_file_command): Pass current_inferior() down.
12415 * corelow.c (core_detach): Add inferior parameter.
12416 * darwin-nat.c (darwin_detach): Likewise.
12417 * gnu-nat.c (gnu_detach): Likewise.
12418 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12419 * infcmd.c (detach_command): Pass current_inferior() down to
12420 target_detach.
12421 * infrun.c (follow_fork_inferior): Pass parent_inf to
12422 target_detach.
12423 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12424 target_detach.
12425 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12426 * linux-thread-db.c (thread_db_detach): Likewise.
12427 * nto-procfs.c (procfs_detach): Likewise.
12428 * procfs.c (procfs_detach): Likewise.
12429 * record.c (record_detach): Likewise.
12430 * record.h (struct inferior): Forward-declare.
12431 (record_detach): Add inferior parameter.
12432 * remote-sim.c (gdbsim_detach): Likewise.
12433 * remote.c (remote_detach_1): Likewise.
12434 (remote_detach): Likewise.
12435 (extended_remote_detach): Likewise.
12436 * sol-thread.c (sol_thread_detach): Likewise.
12437 * target-debug.h (target_debug_print_inferior_p): New macro.
12438 * target-delegates.c: Re-generate.
12439 * top.c (kill_or_detach): Pass inferior down to target_detach.
12440 * windows-nat.c (windows_detach): Add inferior parameter.
12441
12442 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12443
12444 * target.h (struct target_ops) <to_detach>: Remove args
12445 parameter.
12446 (target_detach): Likewise.
12447 * target.c (dispose_inferior): Adjust.
12448 (target_detach): Remove args parameter, adjust.
12449 * aix-thread.c (aix_thread_detach): Adjust.
12450 * corefile.c (core_file_command): Adjust.
12451 * corelow.c (core_detach): Adjust.
12452 * darwin-nat.c (darwin_detach): Adjust.
12453 * gnu-nat.c (gnu_detach): Adjust.
12454 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12455 * infcmd.c (detach_command): Adjust
12456 * infrun.c (follow_fork_inferior): Adjust.
12457 (handle_vfork_child_exec_or_exit): Adjust.
12458 * linux-fork.c (linux_fork_detach): Remove args parameter.
12459 * linux-fork.h (linux_fork_detach): Likewise.
12460 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12461 * linux-thread-db.c (thread_db_detach): Likewise.
12462 * nto-procfs.c (procfs_detach): Likewise.
12463 * procfs.c (procfs_detach): Likewise.
12464 (do_detach): Remove signo parameter.
12465 * record.c (record_detach): Remove args parameter.
12466 * record.h (record_detach): Likewise.
12467 * remote-sim.c (gdbsim_detach): Likewise.
12468 * remote.c (remote_detach_1): Likewise.
12469 (remote_detach): Likewise.
12470 (extended_remote_detach): Likewise.
12471 * sol-thread.c (sol_thread_detach): Likewise.
12472 * target-delegates.c: Re-generate.
12473 * top.c (struct qt_args) <args>: Remove field.
12474 (kill_or_detach): Don't pass args.
12475 (quit_force): Don't set args.
12476 * windows-nat.c (windows_detach): Remove args parameter.
12477
12478 2018-01-19 Yao Qi <yao.qi@linaro.org>
12479
12480 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12481 (arm_linux_init_abi): Install it.
12482
12483 2018-01-19 Yao Qi <yao.qi@linaro.org>
12484
12485 * osabi.c (gdb_osabi_names): Extend the regexp for
12486 arm-linux-gnueabihf.
12487
12488 2018-01-18 Yao Qi <yao.qi@linaro.org>
12489
12490 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12491 m_abbrevs.
12492 (abbrev_table::add_abbrev): Update.
12493 (abbrev_table::lookup_abbrev): Update.
12494
12495 2018-01-18 Yao Qi <yao.qi@linaro.org>
12496
12497 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12498
12499 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12500
12501 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12502 to "std::string".
12503
12504 2018-01-17 Tom Tromey <tom@tromey.com>
12505
12506 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12507
12508 2018-01-17 Tom Tromey <tom@tromey.com>
12509
12510 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12511 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12512 (create_array_type_with_stride): Update.
12513 * dwarf2read.c (set_die_type): Update.
12514
12515 2018-01-17 Tom Tromey <tom@tromey.com>
12516
12517 * dwarf2read.c (delayed_method_info): Remove typedef.
12518 (dwarf2_cu::method_info): Now a std::vector.
12519 (add_to_method_list): Update.
12520 (free_delayed_list): Remove.
12521 (compute_delayed_physnames): Update.
12522 (process_full_comp_unit, process_full_type_unit): Clear the method
12523 list. Remove cleanups.
12524 (psymtab_include_file_name): Add name_holder parameter. Use
12525 unique_xmalloc_ptr.
12526 (dwarf_decode_lines): Update.
12527
12528 2018-01-17 Tom Tromey <tom@tromey.com>
12529 Simon Marchi <simon.marchi@ericsson.com>
12530
12531 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12532 (dwarf2_per_objfile::free_cached_comp_units)
12533 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12534 (init_cutu_and_read_dies_no_follow): Update.
12535 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12536 (dwarf2_cu::~dwarf2_cu): New.
12537 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12538 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12539
12540 2018-01-17 Tom Tromey <tom@tromey.com>
12541 Simon Marchi <simon.marchi@ericsson.com>
12542
12543 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12544 (struct die_reader_specs) <abbrev_table>: New member.
12545 (struct abbrev_table): Add constructor.
12546 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12547 <abbrev_obstack>: Now an auto_obstack.
12548 (abbrev_table_up): New typedef.
12549 (init_cu_die_reader): Add abbrev_table parameter.
12550 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12551 Add result_dwo_abbrev_table.
12552 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12553 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12554 Update.
12555 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12556 parameter.
12557 (skip_children): Update.
12558 (abbrev_table::alloc_abbrev): Rename from
12559 abbrev_table_alloc_abbrev.
12560 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
12561 (abbrev_table::lookup_abbrev): Rename from
12562 abbrev_table_lookup_abbrev.
12563 (abbrev_table_read_table): Return abbrev_table_up.
12564 (abbrev_table_free, abbrev_table_free_cleanup)
12565 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
12566 (load_partial_dies): Update.
12567
12568 2018-01-17 Tom Tromey <tom@tromey.com>
12569
12570 * dwarf2read.c (dwarf2_compute_name): Update comment.
12571 (read_func_scope, read_variable): Update.
12572 (new_symbol): Remove.
12573 (new_symbol_full): Rename to new_symbol.
12574
12575 2018-01-17 Mike Gulick <mgulick@mathworks.com>
12576
12577 PR gdb/16577
12578 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
12579 a warning instead of throwing an error, set section size to 0 and return
12580 NULL.
12581 * gdb_bfd.h (gdb_bfd_map_section): Update description.
12582
12583 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12584
12585 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
12586 std::string.
12587 (linux_ptrace_attach_fail_reason_string): Likewise.
12588 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
12589 Likewise.
12590 (linux_ptrace_attach_fail_reason_string): Likewise.
12591 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
12592
12593 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12594
12595 * linux-nat.c (linux_nat_attach): Remove xstrdup.
12596
12597 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
12598
12599 PR gdb/21559
12600 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
12601 checking for fs_base/gs_base fields in struct user_regs_struct.
12602 * configure: Regenerate.
12603
12604 2018-01-17 Yao Qi <yao.qi@linaro.org>
12605
12606 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12607 function.
12608 (aarch64_linux_init_abi): Install it to gdbarch hook
12609 gcc_target_options.
12610
12611 2018-01-15 Pedro Alves <palves@redhat.com>
12612
12613 * common/signals-state-save-restore.c
12614 (save_original_signals_state): Fix typos.
12615
12616 2017-01-12 Tom Tromey <tom@tromey.com>
12617 Sergio Durigan Junior <sergiodj@redhat.com>
12618
12619 * Makefile.in (install-only): Install gdb-add-index.
12620
12621 2018-01-12 John Baldwin <jhb@FreeBSD.org>
12622
12623 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
12624
12625 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12626
12627 * infrun.c (keep_going_pass_signal): Clear step-over info when
12628 insert_breakpoints fails.
12629
12630 2018-01-11 Pedro Alves <palves@redhat.com>
12631
12632 PR gdb/22583
12633 * infrun.c (resume): Rename to ...
12634 (resume_1): ... this.
12635 (resume): Reimplement as wrapper around resume_1.
12636
12637 2018-01-11 Pedro Alves <palves@redhat.com>
12638
12639 PR remote/22597
12640 * remote.c (remote_parse_stop_reply): Default to the last-set
12641 general thread instead of to 'magic_null_ptid'.
12642
12643 2018-01-10 Pedro Alves <palves@redhat.com>
12644
12645 * language.h (language_get_symbol_name_matcher): Rename ...
12646 (get_symbol_name_matcher): ... this.
12647 * language.c (language_get_symbol_name_matcher): Ditto.
12648 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
12649 callers adjusted.
12650
12651 2018-01-10 Pedro Alves <palves@redhat.com>
12652
12653 PR gdb/22670
12654 * dwarf2read.c
12655 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
12656 Adjust to use language_get_symbol_name_matcher instead of
12657 language_defn::la_get_symbol_name_matcher.
12658 * language.c (language_get_symbol_name_matcher): If in Ada mode
12659 and the lookup name is a verbatim match, return Ada's matcher.
12660 * language.h (language_get_symbol_name_matcher): Adjust comment.
12661 (ada_lookup_name_info::verbatim_p):: New method.
12662
12663 2018-01-10 Pedro Alves <palves@redhat.com>
12664
12665 PR gdb/22670
12666 * ada-lang.c (ada_collect_symbol_completion_matches): If the
12667 minsym's language is language_auto or language_cplus, pass down
12668 language_ada instead.
12669 * symtab.c (compare_symbol_name): Don't frob symbol language here.
12670
12671 2018-01-10 Pedro Alves <palves@redhat.com>
12672
12673 PR gdb/22670
12674 * minsyms.c (linkage_name_str): New function.
12675 (iterate_over_minimal_symbols): Use it.
12676
12677 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12678
12679 * NEWS: Document that 'info proc' now works on FreeBSD.
12680
12681 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12682
12683 * configure.ac: Check for kinfo_getfile in libutil.
12684 * configure: Regenerate.
12685 * config.in: Regenerate.
12686 * fbsd-nat.c: Include "fbsd-tdep.h".
12687 (fbsd_fetch_cmdline): New.
12688 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
12689 rather than calling error.
12690 (fbsd_info_proc): New.
12691 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
12692 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
12693 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
12694
12695 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12696
12697 * fbsd-nat.c (struct free_deleter): Remove.
12698 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
12699
12700 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12701
12702 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
12703 NULL for an empty pathname.
12704
12705 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12706
12707 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
12708 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
12709 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12710 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12711 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
12712 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
12713 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
12714 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
12715 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
12716 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
12717 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
12718 (fbsd_core_fetch_timeval, fbsd_print_sigset)
12719 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
12720 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
12721 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
12722
12723 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
12724
12725 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
12726 (gnu_xfer_auxv): New function.
12727 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
12728 TARGET_OBJECT_AUXV.
12729
12730 2018-01-08 Yao Qi <yao.qi@linaro.org>
12731 Simon Marchi <simon.marchi@ericsson.com>
12732
12733 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
12734 common/selftest.c.
12735 (COMMON_OBS): Remove selftest.o.
12736 * configure.ac: Append selftest-arch.c and common/selftest.c to
12737 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
12738 * configure: Re-generated.
12739 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
12740 GDB_SELF_TEST.
12741 (maintenance_info_selftests): Likewise.
12742
12743 2018-01-08 Xavier Roirand <roirand@adacore.com>
12744
12745 * ada-valprint.c (val_print_packed_array_elements): Use
12746 proper number of elements when printing an array indexed
12747 by an enumeration type.
12748
12749 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12750
12751 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
12752 (dw2_get_file_names_reader): Adjust.
12753 (lookup_dwo_signatured_type): Adjust.
12754 (lookup_dwp_signatured_type): Adjust.
12755 (lookup_signatured_type): Adjust.
12756 (create_type_unit_group): Adjust.
12757 (get_type_unit_group): Adjust.
12758 (process_psymtab_comp_unit_reader): Adjust.
12759 (build_type_psymtabs_reader): Adjust.
12760 (scan_partial_symbols): Adjust.
12761 (add_partial_symbol): Adjust.
12762 (add_partial_subprogram): Adjust.
12763 (peek_die_abbrev): Adjust.
12764 (fixup_go_packaging): Adjust.
12765 (process_imported_unit_die): Adjust.
12766 (dwarf2_compute_name): Adjust.
12767 (dwarf2_physname): Adjust.
12768 (read_import_statement): Adjust.
12769 (handle_DW_AT_stmt_list): Adjust.
12770 (read_file_scope): Adjust.
12771 (read_func_scope): Adjust.
12772 (read_lexical_block_scope): Adjust.
12773 (read_call_site_scope): Adjust.
12774 (read_variable): Adjust.
12775 (dwarf2_rnglists_process): Adjust.
12776 (dwarf2_ranges_process): Adjust.
12777 (dwarf2_ranges_read): Adjust.
12778 (dwarf2_get_pc_bounds): Adjust.
12779 (dwarf2_record_block_ranges): Adjust.
12780 (dwarf2_add_field): Adjust.
12781 (dwarf2_add_member_fn): Adjust.
12782 (read_structure_type): Adjust.
12783 (process_structure_scope): Adjust.
12784 (read_enumeration_type): Adjust.
12785 (read_array_type): Adjust.
12786 (mark_common_block_symbol_computed): Adjust.
12787 (read_common_block): Adjust.
12788 (read_namespace_type): Adjust.
12789 (read_namespace): Adjust.
12790 (read_module_type): Adjust.
12791 (read_tag_pointer_type): Adjust.
12792 (read_tag_ptr_to_member_type): Adjust.
12793 (read_tag_string_type): Adjust.
12794 (read_subroutine_type): Adjust.
12795 (read_typedef): Adjust.
12796 (read_base_type): Adjust.
12797 (attr_to_dynamic_prop): Adjust.
12798 (read_subrange_type): Adjust.
12799 (read_unspecified_type): Adjust.
12800 (dwarf2_read_abbrevs): Adjust.
12801 (load_partial_dies): Adjust.
12802 (read_partial_die): Adjust.
12803 (find_partial_die): Adjust.
12804 (guess_partial_die_structure_name): Adjust.
12805 (fixup_partial_die): Adjust.
12806 (read_attribute_value): Adjust.
12807 (read_addr_index): Adjust.
12808 (read_addr_index_from_leb128): Adjust.
12809 (read_str_index): Adjust.
12810 (dwarf2_string_attr): Adjust.
12811 (get_debug_line_section): Adjust.
12812 (dwarf_decode_line_header): Adjust.
12813 (lnp_state_machine::check_line_address): Adjust.
12814 (dwarf_decode_lines_1): Adjust.
12815 (dwarf_decode_lines): Adjust.
12816 (dwarf2_start_symtab): Adjust.
12817 (var_decode_location): Adjust.
12818 (new_symbol_full): Adjust.
12819 (dwarf2_const_value_data): Adjust.
12820 (dwarf2_const_value_attr): Adjust.
12821 (dwarf2_const_value): Adjust.
12822 (die_type): Adjust.
12823 (die_containing_type): Adjust.
12824 (build_error_marker_type): Adjust.
12825 (lookup_die_type): Adjust.
12826 (guess_full_die_structure_name): Adjust.
12827 (anonymous_struct_prefix): Adjust.
12828 (determine_prefix): Adjust.
12829 (dwarf2_name): Adjust.
12830 (follow_die_ref_or_sig): Adjust.
12831 (follow_die_offset): Adjust.
12832 (follow_die_ref): Adjust.
12833 (follow_die_sig_1): Adjust.
12834 (follow_die_sig): Adjust.
12835 (get_signatured_type): Adjust.
12836 (get_DW_AT_signature_type): Adjust.
12837 (decode_locdesc): Adjust.
12838 (dwarf_decode_macros): Adjust.
12839 (cu_debug_loc_section): Adjust.
12840 (fill_in_loclist_baton): Adjust.
12841 (dwarf2_symbol_mark_computed): Adjust.
12842 (init_one_comp_unit): Don't assign
12843 dwarf2_cu::dwarf2_per_objfile.
12844 (set_die_type): Adjust.
12845
12846 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12847
12848 * dwarf2read.c (struct mapped_debug_names): Add constructor.
12849 <dwarf2_per_objfile>: New field.
12850 (dwarf2_per_objfile): Remove global.
12851 (get_dwarf2_per_objfile): New function.
12852 (set_dwarf2_per_objfile): New function.
12853 (dwarf2_build_psymtabs_hard): Change objfile parameter to
12854 dwarf2_per_objfile.
12855 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12856 (read_abbrev_offset): Likewise.
12857 (read_indirect_string): Likewise.
12858 (read_indirect_line_string): Likewise.
12859 (read_indirect_string_at_offset): Likewise.
12860 (read_indirect_string_from_dwz): Likewise.
12861 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12862 dwarf2_per_objfile.
12863 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12864 (create_all_comp_units): Change objfile parameter to
12865 dwarf2_per_objfile.
12866 (create_all_type_units): Likewise.
12867 (process_queue): Add dwarf2_per_objfile parameter.
12868 (read_and_check_comp_unit_head): Likewise.
12869 (lookup_dwo_unit_in_dwp): Likewise.
12870 (get_dwp_file): Likewise.
12871 (process_cu_includes): Likewise.
12872 (struct free_dwo_file_cleanup_data): New struct.
12873 (dwarf2_has_info): Use get_dwarf2_per_objfile and
12874 set_dwarf2_per_objfile.
12875 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
12876 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
12877 context, adjust calls.
12878 (dw2_instantiate_symtab): Likewise.
12879 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
12880 (dw2_get_cu): Likewise.
12881 (create_cu_from_index_list): Change objfile parameter to
12882 dwarf2_per_objfile.
12883 (create_cus_from_index_list): Get dwarf2_per_objfile from
12884 context, adjust calls.
12885 (create_cus_from_index): Likewise.
12886 (create_signatured_type_table_from_index): Change objfile
12887 parameter to dwarf2_per_objfile.
12888 (create_signatured_type_table_from_debug_names): Change objfile
12889 parameter to dwarf2_per_objfile.
12890 (create_addrmap_from_index): Likewise.
12891 (create_addrmap_from_aranges): Likewise.
12892 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
12893 (dw2_setup): Remove.
12894 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
12895 context.
12896 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
12897 get_dwarf2_per_objfile.
12898 (dw2_forget_cached_source_info): Likewise.
12899 (dw2_map_symtabs_matching_filename): Likewise.
12900 (struct dw2_symtab_iterator) <index>: Remove.
12901 <dwarf2_per_objfile>: New field.
12902 (dw2_symtab_iter_init): Replace index parameter with
12903 dwarf2_per_objfile.
12904 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
12905 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
12906 (dw2_print_stats): Likewise.
12907 (dw2_dump): Likewise.
12908 (dw2_expand_symtabs_for_function): Likewise.
12909 (dw2_expand_all_symtabs): Likewise.
12910 (dw2_expand_symtabs_with_fullname): Likewise.
12911 (dw2_expand_marked_cus): Replace index and objfile parameters
12912 with dwarf2_per_objfile.
12913 (dw_expand_symtabs_matching_file_matcher): Add
12914 dwarf2_per_objfile parameter and adjust calls.
12915 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
12916 adjust calls.
12917 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
12918 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
12919 adjust calls.
12920 (create_cus_from_debug_names_list): Replace objfile parameter
12921 with dwarf2_per_objfile and adjust calls.
12922 (create_cus_from_debug_names): Likewise.
12923 (dwarf2_read_debug_names): Likewise.
12924 (mapped_debug_names::namei_to_name): Adjust call.
12925 (dw2_debug_names_iterator::next): Likewise.
12926 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
12927 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
12928 (dw2_debug_names_dump): Likewise.
12929 (dw2_debug_names_expand_symtabs_for_function): Likewise.
12930 (dw2_debug_names_expand_symtabs_matching): Likewise.
12931 (dwarf2_initialize_objfile): Likewise.
12932 (dwarf2_build_psymtabs): Likewise.
12933 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
12934 this_cu.
12935 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
12936 (read_and_check_comp_unit_head): Likewise.
12937 (read_abbrev_offset): Likewise.
12938 (create_debug_type_hash_table): Likewise.
12939 (create_debug_types_hash_table): Likewise.
12940 (create_all_type_units): Replace objfile parameter with
12941 dwarf2_per_objfile.
12942 (add_type_unit): Add dwarf2_per_objfile parameter.
12943 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
12944 with dwarf2_per_objfile.
12945 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
12946 (lookup_dwp_signatured_type): Likewise.
12947 (lookup_signatured_type): Likewise.
12948 (read_cutu_die_from_dwo): Likewise.
12949 (init_tu_and_read_dwo_dies): Likewise.
12950 (init_cutu_and_read_dies): Likewise.
12951 (init_cutu_and_read_dies_no_follow): Likewise.
12952 (allocate_type_unit_groups_table): Add objfile parameter.
12953 (create_type_unit_group): Use dwarf2_per_objfile from cu.
12954 (get_type_unit_group): Likewise.
12955 (process_psymtab_comp_unit): Update call.
12956 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
12957 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
12958 (print_tu_stats): Likewise.
12959 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
12960 in void* parameter.
12961 (build_type_psymtabs): Change objfile parameter to
12962 dwarf2_per_objfile.
12963 (process_skeletonless_type_unit): Use dwarf2_per_objfile
12964 passed in void* parameter.
12965 (process_skeletonless_type_units): Change objfile parameter to
12966 dwarf2_per_objfile.
12967 (set_partial_user): Likewise.
12968 (dwarf2_build_psymtabs_hard): Likewise.
12969 (read_comp_units_from_section): Likewise.
12970 (create_all_comp_units): Likewise.
12971 (scan_partial_symbols): Update calls.
12972 (add_partial_symbol): Likewise.
12973 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
12974 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
12975 (process_queue): Add dwarf2_per_objfile parameter.
12976 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
12977 (compute_compunit_symtab_includes): Likewise.
12978 (process_cu_includes): Add dwarf2_per_objfile parameter.
12979 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
12980 (process_full_type_unit): Likewise.
12981 (process_imported_unit_die): Update call.
12982 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
12983 (read_file_scope): Likewise.
12984 (allocate_dwo_file_hash_table): Add objfile parameter.
12985 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
12986 (create_cus_hash_table): Likewise.
12987 (create_dwp_hash_table): Likewise.
12988 (create_dwo_unit_in_dwp_v1): Likewise.
12989 (create_dwp_v2_section): Likewise.
12990 (create_dwo_unit_in_dwp_v2): Likewise.
12991 (lookup_dwo_unit_in_dwp): Likewise.
12992 (try_open_dwop_file): Likewise.
12993 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
12994 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
12995 cleanup to include a reference to dwarf2_per_objfile.
12996 (open_dwp_file): Add dwarf2_per_objfile parameter.
12997 (open_and_init_dwp_file): Likewise.
12998 (get_dwp_file): Likewise.
12999 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13000 (queue_and_load_all_dwo_tus): Update call.
13001 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13002 data.
13003 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13004 (dwarf2_ranges_process): Likewise.
13005 (dwarf2_get_pc_bounds): Likewise.
13006 (mark_common_block_symbol_computed): Likewise.
13007 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13008 (dwarf2_read_abbrevs): Update call.
13009 (read_partial_die): Use dwarf2_per_objfile from cu.
13010 (find_partial_die): Likewise.
13011 (fixup_partial_die): Likewise.
13012 (read_attribute_value): Likewise.
13013 (read_indirect_string_at_offset_from): Add objfile parameter.
13014 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13015 parameter.
13016 (read_indirect_string_from_dwz): Add objfile parameter.
13017 (read_indirect_string): Add objfile parameter.
13018 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13019 (read_addr_index): Use dwarf2_per_objfile from cu.
13020 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13021 call dw2_setup.
13022 (read_str_index): Use dwarf2_per_objfile from cu.
13023 (get_debug_line_section): Likewise.
13024 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13025 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13026 (new_symbol_full): Use dwarf2_per_objfile from cu.
13027 (build_error_marker_type): Likewise.
13028 (lookup_die_type): Likewise.
13029 (determine_prefix): Likewise.
13030 (follow_die_offset): Likewise.
13031 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13032 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13033 (dwarf2_fetch_die_type_sect_off): Likewise.
13034 (dwarf2_get_die_type): Likewise.
13035 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13036 (get_signatured_type): Likewise.
13037 (get_DW_AT_signature_type): Likewise.
13038 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13039 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13040 (cu_debug_loc_section): Likewise.
13041 (fill_in_loclist_baton): Likewise.
13042 (dwarf2_symbol_mark_computed): Likewise.
13043 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13044 dwarf2_per_objfile.
13045 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13046 parameter.
13047 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13048 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13049 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13050 (set_die_type): Use dwarf2_free_objfile from cu.
13051 (get_die_type_at_offset): Likewise.
13052 (dwarf2_per_objfile_free): Don't assign global variable.
13053 (debug_names) <constructor>: Add dwarf2_per_objfile
13054 parameter, update m_debugstrlookup construction.
13055 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13056 parameter.
13057 <m_dwarf2_per_objfile>: New field.
13058 <lookup>: Use m_dwarf2_per_objfile.
13059 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13060 (psyms_seen_size): Likewise.
13061 (write_gdbindex): Replace objfile parameter with
13062 dwarf2_per_objfile.
13063 (write_debug_names): Likewise.
13064 (write_psymtabs_to_index): Likewise.
13065 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13066 calls.
13067
13068 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13069
13070 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13071 <dwarf2_per_objfile>: New field.
13072 (struct dwarf2_per_cu_data) <objfile>: Remove.
13073 <dwarf2_per_objfile>: New field.
13074 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13075 of objfile.
13076 (create_signatured_type_table_from_index): Likewise.
13077 (create_debug_type_hash_table): Likewise.
13078 (fill_in_sig_entry_from_dwo_entry): Likewise.
13079 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13080 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13081 objfile.
13082 (create_partial_symtab): Access objfile through
13083 dwarf2_per_objfile.
13084 (process_psymtab_comp_unit_reader): Likewise.
13085 (read_comp_units_from_section): Likewise.
13086 (scan_partial_symbols): Likewise.
13087 (add_partial_symbol): Likewise.
13088 (add_partial_subprogram): Likewise.
13089 (peek_die_abbrev): Likewise.
13090 (fixup_go_packaging): Likewise.
13091 (process_full_comp_unit): Likewise.
13092 (process_full_type_unit): Likewise.
13093 (process_imported_unit_die): Likewise.
13094 (dwarf2_compute_name): Likewise.
13095 (dwarf2_physname): Likewise.
13096 (read_import_statement): Likewise.
13097 (create_cus_hash_table): Assign dwarf2_physname instead of
13098 objfile.
13099 (read_func_scope): Access objfile through dwarf2_per_objfile.
13100 (read_lexical_block_scope): Likewise.
13101 (read_call_site_scope): Likewise.
13102 (read_variable): Likewise.
13103 (dwarf2_rnglists_process): Likewise.
13104 (dwarf2_ranges_process): Likewise.
13105 (dwarf2_ranges_read): Likewise.
13106 (dwarf2_record_block_ranges): Likewise.
13107 (dwarf2_add_field): Likewise.
13108 (dwarf2_add_member_fn): Likewise.
13109 (read_structure_type): Likewise.
13110 (process_structure_scope): Likewise.
13111 (read_enumeration_type): Likewise.
13112 (read_array_type): Likewise.
13113 (read_common_block): Likewise.
13114 (read_namespace_type): Likewise.
13115 (read_namespace): Likewise.
13116 (read_module_type): Likewise.
13117 (read_tag_pointer_type): Likewise.
13118 (read_tag_ptr_to_member_type): Likewise.
13119 (read_tag_string_type): Likewise.
13120 (read_subroutine_type): Likewise.
13121 (read_typedef): Likewise.
13122 (read_base_type): Likewise.
13123 (attr_to_dynamic_prop): Likewise.
13124 (read_subrange_type): Likewise.
13125 (read_unspecified_type): Likewise.
13126 (load_partial_dies): Likewise.
13127 (read_partial_die): Likewise.
13128 (find_partial_die): Likewise.
13129 (guess_partial_die_structure_name): Likewise.
13130 (fixup_partial_die): Likewise.
13131 (read_attribute_value): Likewise.
13132 (read_addr_index_from_leb128): Likewise.
13133 (dwarf2_read_addr_index): Likewise.
13134 (dwarf2_string_attr): Likewise.
13135 (lnp_state_machine::check_line_address): Likewise.
13136 (dwarf_decode_lines_1): Likewise.
13137 (dwarf_decode_lines): Likewise.
13138 (dwarf2_start_symtab): Likewise.
13139 (var_decode_location): Likewise.
13140 (new_symbol_full): Likewise.
13141 (dwarf2_const_value_data): Likewise.
13142 (dwarf2_const_value_attr): Likewise.
13143 (dwarf2_const_value): Likewise.
13144 (die_type): Likewise.
13145 (die_containing_type): Likewise.
13146 (lookup_die_type): Likewise.
13147 (guess_full_die_structure_name): Likewise.
13148 (anonymous_struct_prefix): Likewise.
13149 (dwarf2_name): Likewise.
13150 (follow_die_ref_or_sig): Likewise.
13151 (follow_die_offset): Likewise.
13152 (follow_die_ref): Likewise.
13153 (dwarf2_fetch_die_loc_sect_off): Likewise.
13154 (dwarf2_fetch_constant_bytes): Likewise.
13155 (dwarf2_fetch_die_type_sect_off): Likewise.
13156 (dwarf2_get_die_type): Likewise.
13157 (follow_die_sig): Likewise.
13158 (decode_locdesc): Likewise.
13159 (dwarf2_per_cu_objfile): Likewise.
13160 (dwarf2_per_cu_text_offset): Likewise.
13161 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13162 objfile.
13163 (set_die_type): Access objfile through
13164 dwarf2_per_objfile.
13165
13166 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13167
13168 * valprint.c (converted_character_d): Remove typedef.
13169 (DEF_VEC_O (converted_character_d)): Remove.
13170 (count_next_character): Use std::vector.
13171 (print_converted_chars_to_obstack): Likewise.
13172 (generic_printstr): Likewise.
13173
13174 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13175
13176 * xml-support.h (struct gdb_xml_value): Add constructor.
13177 <value>: Change type to unique_xmalloc_ptr.
13178 (gdb_xml_value_s): Remove typedef.
13179 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13180 (gdb_xml_element_start_handler): Change parameter type to
13181 std::vector.
13182 (xml_find_attribute): Likewise.
13183 * xml-support.c (xml_find_attribute): Change parameter type to
13184 std::vector and adjust.
13185 (gdb_xml_values_cleanup): Remove.
13186 (gdb_xml_parser::start_element): Adjust to std::vector.
13187 (xinclude_start_include): Change paraeter type to std::vector
13188 and adjust.
13189 * btrace.c (check_xml_btrace_version): Likewise.
13190 (parse_xml_btrace_block): Likewise.
13191 (parse_xml_btrace_pt_config_cpu): Likewise.
13192 (parse_xml_btrace_pt): Likewise.
13193 (parse_xml_btrace_conf_bts): Likewise.
13194 (parse_xml_btrace_conf_pt): Likewise.
13195 * memory-map.c (memory_map_start_memory): Likewise.
13196 (memory_map_start_property): Likewise.
13197 * osdata.c (osdata_start_osdata): Likewise.
13198 (osdata_start_item): Likewise.
13199 (osdata_start_column): Likewise.
13200 * remote.c (start_thread): Likewise.
13201 * solib-aix.c (library_list_start_library): Likewise.
13202 (library_list_start_list): Likewise.
13203 * solib-svr4.c (library_list_start_library): Likewise.
13204 (svr4_library_list_start_list): Likewise.
13205 * solib-target.c (library_list_start_segment): Likewise.
13206 (library_list_start_section): Likewise.
13207 (library_list_start_library): Likewise.
13208 (library_list_start_list): Likewise.
13209 * tracepoint.c (traceframe_info_start_memory): Likewise.
13210 (traceframe_info_start_tvar): Likewise.
13211 * xml-syscall.c (syscall_start_syscall): Likewise.
13212 * xml-tdesc.c (tdesc_start_target): Likewise.
13213 (tdesc_start_feature): Likewise.
13214 (tdesc_start_reg): Likewise.
13215 (tdesc_start_union): Likewise.
13216 (tdesc_start_struct): Likewise.
13217 (tdesc_start_flags): Likewise.
13218 (tdesc_start_enum): Likewise.
13219 (tdesc_start_field): Likewise.
13220 (tdesc_start_enum_value): Likewise.
13221 (tdesc_start_vector): Likewise.
13222
13223 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13224
13225 * extension.h (struct xmethod_worker) <clone>: Remove.
13226 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13227 Remove.
13228 (python_xmethod_worker::clone): Remove.
13229 * valops.c (find_overload_match): Use std::move instead of
13230 clone.
13231
13232 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13233
13234 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13235 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13236 <free_xmethod_worker_data>: Remove.
13237 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13238 <get_xmethod_arg_types>: Remove.
13239 <get_xmethod_result_type>: Remove.
13240 <invoke_xmethod>: Remove.
13241 * extension.c (new_xmethod_worker): Remove.
13242 (clone_xmethod_worker): Remove.
13243 (get_matching_xmethod_workers): Return void, pass std::vector by
13244 pointer.
13245 (get_xmethod_arg_types): Rename to...
13246 (xmethod_worker::get_arg_types): ... this, and adjust.
13247 (get_xmethod_result_type): Rename to...
13248 (xmethod_worker::get_result_type): ... this, and adjust.
13249 (invoke_xmethod): Remove.
13250 (free_xmethod_worker): Remove.
13251 (free_xmethod_worker_vec): Remove.
13252 * extension.h (enum ext_lang_rc): Move here from
13253 extension-priv.h.
13254 (struct xmethod_worker): Add constructor and destructor.
13255 <data>: Remove.
13256 <value>: Remove.
13257 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13258 virtual pure methods.
13259 <get_arg_types, get_result_type>: New methods.
13260 (xmethod_worker_ptr): Remove typedef.
13261 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13262 (xmethod_worker_vec): Remove typedef.
13263 (xmethod_worker_up): New typedef.
13264 (invoke_xmethod): Remove.
13265 (clone_xmethod_worker): Remove.
13266 (free_xmethod_worker): Remove.
13267 (free_xmethod_worker_vec): Remove.
13268 (get_xmethod_arg_types): Remove.
13269 (get_xmethod_result_type): Remove.
13270 * valops.c (find_method_list): Use std::vector, don't use
13271 intermediate vector.
13272 (value_find_oload_method_list): Use std::vector.
13273 (find_overload_match): Use std::vector.
13274 (find_oload_champ): Use std::vector.
13275 * value.c (value_free): Use operator delete.
13276 (value_of_xmethod): Rename to...
13277 (value_from_xmethod): ... this. Don't assign
13278 xmethod_worker::value, take rvalue-reference.
13279 (result_type_of_xmethod): Adjust.
13280 (call_xmethod): Adjust.
13281 * value.h: Include extension.h.
13282 (struct xmethod_worker): Don't forward-declare.
13283 (value_of_xmethod): Rename to...
13284 (value_from_xmethod): ... this, take rvalue-reference.
13285 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13286 (struct python_xmethod_worker): ... this, add constructor and
13287 destructor.
13288 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13289 (gdbpy_free_xmethod_worker_data): Rename to...
13290 (python_xmethod_worker::~python_xmethod_worker): ... this and
13291 adjust.
13292 (gdbpy_clone_xmethod_worker_data): Rename to...
13293 (python_xmethod_worker::clone): ... this and adjust.
13294 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13295 temporary vector.
13296 (gdbpy_get_xmethod_arg_types): Rename to...
13297 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13298 (gdbpy_get_xmethod_result_type): Rename to...
13299 (python_xmethod_worker::do_get_result_type): ... this and
13300 adjust.
13301 (gdbpy_invoke_xmethod): Rename to...
13302 (python_xmethod_worker::invoke): ... this and adjust.
13303 (new_python_xmethod_worker): Rename to...
13304 (python_xmethod_worker::python_xmethod_worker): ... this and
13305 adjust.
13306 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13307 Remove.
13308 (gdbpy_free_xmethod_worker_data): Remove.
13309 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13310 (gdbpy_get_xmethod_arg_types): Remove.
13311 (gdbpy_get_xmethod_result_type): Remove.
13312 (gdbpy_invoke_xmethod): Remove.
13313 * python/python.c (python_extension_ops): Remove obsolete
13314 callbacks.
13315
13316 2018-01-05 Pedro Alves <palves@redhat.com>
13317
13318 PR gdb/18653
13319 * common/signals-state-save-restore.c
13320 (save_original_signals_state): New parameter 'quiet'. Warn if we
13321 find a custom handler preinstalled, instead of internal erroring.
13322 But only warn if !quiet.
13323 * common/signals-state-save-restore.h
13324 (save_original_signals_state): New parameter 'quiet'.
13325 * main.c (captured_main_1): Move save_original_signals_state call
13326 after option handling, and pass QUIET.
13327
13328 2018-01-05 Pedro Alves <palves@redhat.com>
13329
13330 * spu-tdep.c (spu_catch_start): Pass
13331 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13332
13333 2018-01-05 Pedro Alves <palves@redhat.com>
13334
13335 PR gdb/22670
13336 * ada-lang.c (literal_symbol_name_matcher): New function.
13337 (ada_get_symbol_name_matcher): Use it for
13338 symbol_name_match_type::SEARCH_NAME.
13339 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13340 it down instead of assuming symbol_name_match_type::FULL.
13341 * block.h (block_lookup_symbol): New parameter 'match_type'.
13342 * c-valprint.c (print_unpacked_pointer): Use
13343 lookup_symbol_search_name instead of lookup_symbol.
13344 * compile/compile-object-load.c (get_out_value_type): Pass down
13345 symbol_name_match_type::SEARCH_NAME.
13346 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13347 symbol_name_match_type::FULL.
13348 * cp-support.c (cp_get_symbol_name_matcher): Handle
13349 symbol_name_match_type::SEARCH_NAME.
13350 * infrun.c (insert_exception_resume_breakpoint): Use
13351 lookup_symbol_search_name.
13352 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13353 * psymtab.c (maintenance_check_psymtabs): Use
13354 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13355 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13356 SYMBOL_SEARCH_NAME.
13357 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13358 if symbol_name_match_type::SEARCH_NAME.
13359 (lookup_symbol_in_language): Pass down
13360 symbol_name_match_type::FULL.
13361 (lookup_symbol_search_name): New.
13362 (lookup_language_this): Pass down
13363 symbol_name_match_type::SEARCH_NAME.
13364 (lookup_symbol_aux, lookup_local_symbol): New parameter
13365 'match_type'. Pass it down.
13366 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13367 (lookup_symbol_search_name): New declaration.
13368 (lookup_symbol_in_block): New 'match_type' parameter.
13369
13370 2018-01-05 Pedro Alves <palves@redhat.com>
13371
13372 PR gdb/22670
13373 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13374 ada_lookup_symbol.
13375 (ada_lookup_symbol): Reimplement in terms of
13376 ada_lookup_symbol_list, bits factored out from
13377 ada_lookup_encoded_symbol.
13378
13379 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13380
13381 * ada-exp.y (write_object_renaming): When subscripting an array
13382 using a symbol as the index, pass the block in call to
13383 ada_lookup_encoded_symbol when looking that symbol up.
13384
13385 2018-01-05 Jerome Guitton <guitton@adacore.com>
13386
13387 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13388 TYPE_INDEX_TYPE.
13389
13390 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13391
13392 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13393 the case where VALUE_LVAL (val0) is not lval_memory.
13394
13395 2018-01-05 Xavier Roirand <roirand@adacore.com>
13396
13397 * ada-valprint.c (print_optional_low_bound): Handle
13398 character-indexed array printing like boolean-indexed array
13399 printing.
13400
13401 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13402
13403 * NEWS: Create a new section for the next release branch.
13404 Rename the section of the current branch, now that it has
13405 been cut.
13406
13407 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13408
13409 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13410 * version.in: Bump version to 8.1.50.DATE-git.
13411
13412 2018-01-03 Xavier Roirand <roirand@adacore.com>
13413
13414 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13415 Add field.
13416 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13417 Add field.
13418 (default_exception_support_info) <catch_handlers_sym>: Add field.
13419 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13420 (ada_exception_name_addr_1): Add "catch handlers" handling.
13421 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13422 Update all callers.
13423 (create_excep_cond_exprs) <ex>: Add parameter.
13424 (re_set_exception): Update create_excep_cond_exprs call.
13425 (print_it_exception, print_one_exception, print_mention_exception)
13426 (print_recreate_exception): Add "catch handler" handling.
13427 (allocate_location_catch_handlers, re_set_catch_handlers)
13428 (check_status_catch_handlers, print_it_catch_handlers)
13429 (print_one_catch_handlers, print_mention_catch_handlers)
13430 (print_recreate_catch_handlers): New function.
13431 (catch_handlers_breakpoint_ops): New variable.
13432 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13433 Add parameter. Add "catch handler" handling.
13434 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13435 Add "catch handler" handling.
13436 (ada_exception_catchpoint_cond_string): Add "catch handler"
13437 handling.
13438 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13439 call.
13440 (catch_ada_handlers_command): New function.
13441 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13442 operations structure.
13443 (_initialize_ada_language): Add "catch handlers" command entry.
13444 * NEWS: Document "catch handlers" feature.
13445
13446 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13447
13448 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13449 account when creating the array type of the slice.
13450 (ada_value_slice): Likewise.
13451
13452 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13453
13454 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13455 New enum value.
13456 (create_array_type_with_stride): Add byte_stride_prop parameter.
13457 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13458 New parameter. Update all callers in this file.
13459 (array_type_has_dynamic_stride): New function.
13460 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13461 of arrays with dynamic byte strides.
13462 * dwarf2read.c (read_array_type): Add support for dynamic
13463 DW_AT_byte_stride attributes.
13464
13465 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13466
13467 * dwarf2read.c (read_unspecified_type): Treat
13468 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13469
13470 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13471
13472 Update copyright year range in all GDB files.
13473
13474 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13475
13476 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13477 and gdb/testsuite/gdb.base/step-line.c.
13478
13479 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13480
13481 * copyright.py (main): Dump the contents of
13482 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13483 even if BY_HAND is empty.
13484
13485 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13486
13487 * top.c (print_gdb_version): Update Copyright year in version
13488 message.
13489
13490 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13491
13492 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
13493
13494 For older changes see ChangeLog-2017.
13495 \f
13496 Local Variables:
13497 mode: change-log
13498 left-margin: 8
13499 fill-column: 74
13500 version-control: never
13501 coding: utf-8
13502 End:
This page took 0.350365 seconds and 4 git commands to generate.