Handle 64-bit Solaris/x86 ld.so.1
[binutils-gdb.git] / gdb / ChangeLog
1 2018-09-19 George Vasick <george.vasick@oracle.com>
2
3 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
4
5 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
6 April Chin <april.chin@oracle.com>
7 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8
9 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
10 uint_t lwpid_t.
11 (create_procinfo): Print pids in /proc without leading zeros.
12
13 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
14
15 * nios2-tdep.c (nios2_gcc_target_options): New.
16 (nios2_gdb_arch_init): Install new hook.
17
18 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
19
20 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
21 New file.
22 * update-gnulib.sh: Apply patch.
23 * configure: Re-generate.
24
25 2018-09-18 John Baldwin <jhb@FreeBSD.org>
26
27 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
28 description. Make "info proc" command descriptions more
29 consistent.
30
31 2018-09-18 John Baldwin <jhb@FreeBSD.org>
32
33 * NEWS: Mention 'info proc files' command.
34
35 2018-09-18 John Baldwin <jhb@FreeBSD.org>
36
37 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
38 descriptors for IP_FILES and IP_ALL.
39
40 2018-09-18 John Baldwin <jhb@FreeBSD.org>
41
42 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
43 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
44 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
45 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
46 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
47 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
48 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
49 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
50 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
51 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
52 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
53 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
54 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
55 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
56 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
57 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
58 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
59 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
60 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
61 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
62 (struct fbsd_sockaddr_un): New types.
63 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
64 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
65 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
66 (fbsd_core_info_proc_files): New functions.
67 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
68 IP_ALL.
69 * fbsd-tdep.h (fbsd_info_proc_files_header)
70 (fbsd_info_proc_files_entry): New.
71
72 2018-09-18 John Baldwin <jhb@FreeBSD.org>
73
74 * defs.h (enum info_proc_what) [IP_FILES]: New value.
75 * infcmd.c (info_proc_cmd_files): New function.
76 (_initialize_infcmd): Register 'info proc files' command.
77
78 2018-09-18 John Baldwin <jhb@FreeBSD.org>
79
80 * gnulib/aclocal-m4-deps.mk: Re-generate.
81 * gnulib/aclocal.m4: Re-generate.
82 * gnulib/config.in: Re-generate.
83 * gnulib/configure: Re-generate.
84 * gnulib/import/Makefile.am: Re-generate.
85 * gnulib/import/Makefile.in: Re-generate.
86 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
87 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
88 * gnulib/import/arpa_inet.in.h: New file.
89 * gnulib/import/inet_ntop.c: New file.
90 * gnulib/import/m4/arpa_inet_h.m4: New file.
91 * gnulib/import/m4/inet_ntop.m4: New file.
92 * gnulib/import/m4/netinet_in_h.m4: New file.
93 * gnulib/import/m4/socklen.m4: New file.
94 * gnulib/import/m4/sockpfaf.m4: New file.
95 * gnulib/import/m4/stdalign.m4: New file.
96 * gnulib/import/m4/sys_uio_h.m4: New file.
97 * gnulib/import/netinet_in.in.h: New file.
98 * gnulib/import/stdalign.in.h: New file.
99 * gnulib/import/sys_socket.c: New file.
100 * gnulib/import/sys_socket.in.h: New file.
101 * gnulib/import/sys_uio.in.h: New file.
102 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
103 module.
104
105 2018-09-18 John Baldwin <jhb@FreeBSD.org>
106
107 * gnulib/aclocal-m4-deps.mk: New file.
108 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
109 deterministically.
110
111 2018-09-18 John Baldwin <jhb@FreeBSD.org>
112
113 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
114 KVE_PATH.
115
116 2018-09-18 Tom Tromey <tom@tromey.com>
117
118 * compile/compile-object-load.c (struct
119 link_hash_table_cleanup_data): Add constructor and destructor.
120 Use DISABLE_COPY_AND_ASSIGN.
121 (~link_hash_table_cleanup_data): Rename from
122 link_hash_table_free. Now a destructor.
123 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
124
125 2018-09-18 Tom Tromey <tom@tromey.com>
126
127 * compile/compile-object-run.c (do_module_cleanup): Use delete.
128 * compile/compile-object-load.c (struct munmap_list): Move to
129 header file.
130 (munmap_list::add): Rename from munmap_list_add; rewrite.
131 (munmap_list::~munmap_list): Rename from munmap_list_free.
132 (munmap_listp_free_cleanup): Remove.
133 (compile_object_load): Update.
134 * compile/compile-object-load.h (struct munmap_list): Move from
135 compile-object-load.c. Rewrite.
136
137 2018-09-18 Alan Hayward <alan.hayward@arm.com>
138
139 * aarch64-tdep.c (pass_in_v): Use register size.
140 (aarch64_extract_return_value): Likewise.
141 (aarch64_store_return_value): Likewise.
142
143 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
144
145 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
146 rlim_t.
147
148 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
149
150 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
151 Fix short help line.
152
153 2018-09-17 Tom Tromey <tom@tromey.com>
154
155 PR python/20445:
156 * configure: Rebuild.
157 * configure.ac: Conditionally use -DNDEBUG for Python.
158
159 2018-09-17 Tom Tromey <tom@tromey.com>
160
161 * configure: Rebuild.
162 * configure.ac: Use gmp as a library dependency when checking for
163 mpfr.
164
165 2018-09-17 Pedro Alves <palves@redhat.com>
166
167 * python/py-inferior.c (find_inferior_object): Delete.
168
169 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
170
171 * compile/compile-cplus-types.c
172 (compile_cplus_instance::enter_scope): Don't use new_scope after
173 std::move.
174
175 2018-09-17 Tom Tromey <tom@tromey.com>
176
177 * common/pathstuff.c (get_standard_cache_dir): Use
178 ~/Library/Caches on macOS.
179 * common/pathstuff.h (get_standard_cache_dir): Update comment.
180
181 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
182
183 PR python/23669
184 * breakpoint.c (commands_cmd_element): New.
185 (_initialize_breakpoint): Assign commands_cmd_element.
186 * breakpoint.h (commands_cmd_element): New.
187 * cli/cli-script.c (while_cmd_element, if_command,
188 define_cmd_element): New.
189 (command_name_equals): Remove.
190 (process_next_line): Compare commands by pointer, not by name.
191 (_initialize_cli_script): Assign the various cmd_list_element
192 variables.
193 * compile/compile.c (compile_cmd_element): New.
194 (_initialize_compile): Assign compile_cmd_element.
195 * compile/compile.h (compile_cmd_element): New.
196 * guile/guile.c (guile_cmd_element): New.
197 (install_gdb_commands): Assign guile_cmd_element.
198 * guile/guile.h (guile_cmd_element): New.
199 * python/python.c (python_cmd_element): New.
200 (_initialize_python): Assign python_cmd_element.
201 * python/python.h (python_cmd_element): New.
202 * tracepoint.c (while_stepping_cmd_element): New.
203 (_initialize_tracepoint): Assign while_stepping_cmd_element.
204 * tracepoint.h (while_stepping_cmd_element): New.
205
206 2018-09-17 Tom Tromey <tom@tromey.com>
207
208 * infrun.c (save_infcall_suspend_state): Return
209 infcall_suspend_state_up.
210 (save_infcall_control_state): Return infcall_control_state_up.
211 * inferior.h (save_infcall_suspend_state)
212 (save_infcall_control_state): Declare later. Return unique
213 pointers.
214
215 2018-09-17 Tom Tromey <tom@tromey.com>
216
217 * infrun.c (struct stop_context): Declare constructor,
218 destructor, "changed" method.
219 (stop_context::stop_context): Rename from save_stop_context.
220 (stop_context::~stop_context): Rename from
221 release_stop_context_cleanup.
222 (normal_stop): Update.
223 (stop_context::changed): Rename from stop_context_changed. Return
224 bool.
225
226 2018-09-17 Tom Tromey <tom@tromey.com>
227
228 * inferior.h (struct infcall_suspend_state_deleter): New.
229 (infcall_suspend_state_up): New typedef.
230 (struct infcall_control_state_deleter): New.
231 (infcall_control_state_up): New typedef.
232 (make_cleanup_restore_infcall_suspend_state)
233 (make_cleanup_restore_infcall_control_state): Don't declare.
234 * infcall.c (call_function_by_hand_dummy): Update.
235 * infrun.c (do_restore_infcall_suspend_state_cleanup)
236 (make_cleanup_restore_infcall_suspend_state): Remove.
237 (do_restore_infcall_control_state_cleanup)
238 (make_cleanup_restore_infcall_control_state): Remove.
239
240 2018-09-17 Tom Tromey <tom@tromey.com>
241
242 * gdbthread.h (struct thread_control_state): Add initializer.
243 (class thread_info) <control>: Remove initializer.
244 * inferior.h (struct inferior_control_state): Add initializer.
245 (class inferior) <control>: Remove initializer.
246 (exit_inferior_1): Update.
247 * infrun.c (struct infcall_control_state): Add constructors.
248 (save_infcall_control_state): Use new.
249 (restore_infcall_control_state, discard_infcall_control_state):
250 Use delete.
251
252 2018-09-17 Tom Tromey <tom@tromey.com>
253
254 * infrun.c (struct infcall_suspend_state) <registers>: Now a
255 unique_ptr.
256 <siginfo_data>: Now a unique_xmalloc_ptr.
257 (save_infcall_suspend_state, restore_infcall_suspend_state)
258 (discard_infcall_suspend_state)
259 (get_infcall_suspend_state_regcache): Update.
260
261 2018-09-17 Tom Tromey <tom@tromey.com>
262
263 * gdbthread.h (struct thread_suspend_state): Add initializers.
264 (class thread_info) <suspend>: Remove initializer.
265 * infrun.c (struct infcall_suspend_state): Add initializers.
266 (save_infcall_suspend_state): Use new.
267 (discard_infcall_suspend_state): Use delete.
268
269 2018-09-16 Tom Tromey <tom@tromey.com>
270
271 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
272 Remove.
273 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
274 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
275 (py_varobj_iter_new): Likewise.
276 (py_varobj_get_iterator): Use gdbpy_ref.
277
278 2018-09-16 Tom Tromey <tom@tromey.com>
279
280 * python/py-threadevent.c (py_get_event_thread): Simplify.
281 * python/py-inferior.c (infpy_thread_from_thread_handle):
282 Return immediately after calling thread_to_thread_object. Use
283 Py_RETURN_NONE.
284 (thread_to_thread_object): Set the exception on a NULL return.
285
286 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
287
288 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
289
290 2018-09-16 Tom Tromey <tom@tromey.com>
291
292 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
293 Remove.
294
295 2018-09-16 Tom Tromey <tom@tromey.com>
296
297 * python/python-internal.h (thread_to_thread_object): Change
298 return type.
299 * python/py-inferior.c (thread_to_thread_object): Return a new
300 reference.
301 (infpy_thread_from_thread_handle): Update.
302 * python/py-infthread.c (gdbpy_selected_thread): Update.
303 * python/py-stopevent.c (create_stop_event_object): Update.
304 * python/py-threadevent.c (py_get_event_thread): Return a new
305 reference.
306 (py_get_event_thread): Update.
307 * python/py-event.h (py_get_event_thread): Change return type.
308 * python/py-continueevent.c (create_continue_event_object):
309 Update.
310
311 2018-09-16 Tom Tromey <tom@tromey.com>
312
313 * python/py-progspace.c (pspy_get_objfiles): Update.
314 * python/python-internal.h (objfile_to_objfile_object): Change
315 return type.
316 * python/py-newobjfileevent.c (create_new_objfile_event_object):
317 Update.
318 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
319 Update.
320 * python/python.c (gdbpy_get_current_objfile): Update.
321 (gdbpy_objfiles): Update.
322 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
323 Update.
324 (objfile_to_objfile_object): Return a new reference.
325 * python/py-symtab.c (stpy_get_objfile): Update.
326 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
327 Update.
328
329 2018-09-16 Tom Tromey <tom@tromey.com>
330
331 * python/py-inferior.c (infpy_get_progspace): Update.
332 * python/python-internal.h (pspace_to_pspace_object): Change
333 return type.
334 * python/py-newobjfileevent.c
335 (create_clear_objfiles_event_object): Update.
336 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
337 Update.
338 * python/python.c (gdbpy_get_current_progspace): Update.
339 (gdbpy_progspaces): Update.
340 * python/py-progspace.c (pspace_to_pspace_object): Return a new
341 reference.
342 * python/py-objfile.c (objfpy_get_progspace): Update.
343 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
344 Update.
345
346 2018-09-16 Tom Tromey <tom@tromey.com>
347
348 * python/lib/gdb/__init__.py (current_progspace, objfiles)
349 (solib_name, block_for_pc, find_pc_line): New functions.
350 (execute_unwinders): Update.
351 * python/py-block.c (gdbpy_block_for_pc): Remove.
352 * python/py-inferior.c (infpy_get_progspace): New function.
353 (inferior_object_getset) <progspace>: Add.
354 * python/py-progspace.c (pspy_objfiles): Rewrite.
355 (pspy_solib_name, pspy_block_for_pc)
356 (pspy_find_pc_line, pspy_is_valid): New functions.
357 (progspace_object_methods): Add entries for solib_name,
358 block_for_pc, find_pc_line, is_valid.
359 * python/python-internal.h (gdbpy_block_for_pc)
360 (build_objfiles_list): Don't declare.
361 * python/python.c: Don't include solib.h.
362 (gdbpy_solib_name, gdbpy_find_pc_line)
363 (gdbpy_get_current_progspace, build_objfiles_list)
364 (gdbpy_objfiles): Remove.
365 (GdbMethods) <current_progspace, objfiles, block_for_pc,
366 solib_name, find_pc_line>: Remove entries.
367
368 2018-09-16 Tom Tromey <tom@tromey.com>
369
370 * top.c (new_ui_command): Use GNU style for metasyntactic
371 variables.
372 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
373 variables.
374 * maint.c (maintenance_translate_address): Remove "<>" around
375 text.
376 * interps.c (interpreter_exec_cmd): Use GNU style for
377 metasyntactic variables.
378 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
379 metasyntactic variables.
380 * tracepoint.c (tfind_range_command): Use GNU style for
381 metasyntactic variables.
382 (tfind_outside_command): Likewise.
383 (_initialize_tracepoint): Likewise.
384 * remote.c (extended_remote_target::create_inferior): Use GNU
385 style for metasyntactic variables.
386 * sparc64-tdep.c (adi_examine_command): Use GNU style for
387 metasyntactic variables.
388 (adi_assign_command): Likewise.
389
390 2018-09-16 Tom Tromey <tom@tromey.com>
391
392 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
393 metasyntactic variables. Print message if no disassembler options
394 are available.
395
396 2018-09-15 Tom Tromey <tom@tromey.com>
397
398 * infcmd.c (get_inferior_args): Return const char *.
399 * inferior.h (get_inferior_args): Return type now const.
400 * linux-tdep.c (linux_fill_prpsinfo): Update.
401 * procfs.c (procfs_target::make_corefile_notes): Update.
402
403 2018-09-07 Tom Tromey <tom@tromey.com>
404
405 * python/python.c (execute_gdb_command): Call bpstat_do_actions
406 inside the TRY.
407
408 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
409
410 * nios2-tdep.c (nios2_type_align): New.
411 (nios2_gdb_arch_init): Install type_align hook.
412
413 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
414
415 * eval.c (fake_method::fake_method): Call xzalloc directly for a
416 type that is neither object file owned, nor gdbarch owned.
417 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
418 gdbarch is non-NULL.
419 (alloc_type_instance): Allocate non-objfile owned types on the
420 gdbarch obstack.
421 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
422 using TYPE_ALLOC to ensure memory is allocated on the correct
423 obstack.
424 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
425 obstack, or the gdbarch obstack.
426 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
427
428 2018-09-14 Tom Tromey <tom@tromey.com>
429
430 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
431 block.
432
433 2018-09-14 Tom Tromey <tom@tromey.com>
434
435 * nat/fork-inferior.c (get_startup_shell): Remove "static".
436
437 2018-09-13 Tom Tromey <tom@tromey.com>
438
439 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
440 static.
441
442 2018-09-13 Tom Tromey <tom@tromey.com>
443
444 * exec.c (try_open_exec_file): Use std::string.
445
446 2018-09-13 Tom Tromey <tom@tromey.com>
447
448 * utils.h (gdb_bfd_errmsg): Return std::string.
449 * exec.c (exec_file_attach): Update.
450 * compile/compile-object-load.c (compile_object_load): Update.
451 * utils.c (gdb_bfd_errmsg): Return std::string.
452
453 2018-09-13 Tom Tromey <tom@tromey.com>
454
455 * procfs.c (struct procinfo_deleter): New.
456 (procinfo_up): New typedef.
457 (do_destroy_procinfo_cleanup): Remove.
458 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
459
460 2018-09-13 Tom Tromey <tom@tromey.com>
461
462 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
463
464 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
465 2018-09-13 Tom Tromey <tom@tromey.com>
466
467 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
468 (pspy_get_objfiles): New function.
469 (progspace_object_methods): New.
470 (pspace_object_type): Add tp_methods callback.
471 * python/python-internal.h (build_objfiles_list): New
472 declaration.
473 * python/python.c (build_objfiles_list): New function.
474 (gdbpy_objfiles): Implement using build_objfiles_list.
475 * NEWS: Mention the Progspace.objfiles method.
476
477 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
478
479 * python/py-inferior.c (infpy_get_progspace): New function.
480 (inferior_object_getset): Add progspace property.
481 * NEWS: Mention the new property.
482
483 2018-09-13 Tom Tromey <tom@tromey.com>
484
485 PR rust/23650:
486 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
487
488 2018-09-13 Tom Tromey <tom@tromey.com>
489
490 PR rust/23626:
491 * rust-lang.c (rust_enum_variant): Now static.
492 (rust_empty_enum_p): New function.
493 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
494 Handle empty enum.
495
496 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
497
498 * python/py-inferior.c (infpy_repr): New.
499 (inferior_object_type): Register infpy_repr.
500 * python/py-objfile.c (objfpy_repr): New.
501 (objfile_object_type): Register objfpy_repr.
502
503 2018-09-12 John Baldwin <jhb@FreeBSD.org>
504
505 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
506
507 2018-09-12 John Baldwin <jhb@FreeBSD.org>
508
509 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
510 typo.
511
512 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
513
514 * common/common-utils.c: Don't include '<sys/stat.h>'.
515 (is_regular_file): Move to...
516 * common/filestuff.c (is_regular_file): ... here.
517 * common/common-utils.h (is_regular_file): Move to...
518 * common/filestuff.h (is_regular_file): ... here.
519
520 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
521
522 * skip.c (debug_skip): New variable.
523 (skiplist_entry::do_skip_file_p): Add debug output.
524 (skiplist_entry::do_skip_gfile_p): Likewise.
525 (skiplist_entry::skip_function_p): Likewise.
526 (_initialize_step_skip): Create debug command.
527 * NEWS: Mention set/show debug skip.
528
529 2018-09-11 Xavier Roirand <roirand@adacore.com>
530
531 * darwin-nat.c (should_disable_startup_with_shell):
532 New function.
533 (darwin_nat_target::create_inferior): Add call.
534
535 2018-09-11 Xavier Roirand <roirand@adacore.com>
536
537 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
538 inf_port, msg_state>: Initialize.
539 (struct darwin_thread_info) <signaled, single_step>: Change
540 type and initialize.
541 (struct darwin_thread_info) <event>: Initialize.
542
543 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
544
545 PR gdb/23555
546 PR gdb/23558
547 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
548 guesses.
549
550 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
551
552 Revert:
553 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
554
555 PR gdb/23555
556 PR gdb/23558
557 * gnulib/aclocal.m4: Regenerate.
558 * gnulib/config.in: Regenerate.
559 * gnulib/configure: Regenerate.
560 * gnulib/import/Makefile.am: Update.
561 * gnulib/import/Makefile.in: Update.
562 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
563 * gnulib/import/_Noreturn.h: ... this.
564 * gnulib/import/alloca.in.h: Update.
565 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
566 * gnulib/import/arg-nonnull.h: ... this.
567 * gnulib/import/assure.h: Update.
568 * gnulib/import/at-func.c: Update.
569 * gnulib/import/basename-lgpl.c: Update.
570 * gnulib/import/extra/snippet/c++defs.h: Rename to...
571 * gnulib/import/c++defs.h: ... this.
572 * gnulib/import/canonicalize-lgpl.c: Update.
573 * gnulib/import/cdefs.h: Update.
574 * gnulib/import/chdir-long.c: Update.
575 * gnulib/import/chdir-long.h: Update.
576 * gnulib/import/cloexec.c: Update.
577 * gnulib/import/cloexec.h: Update.
578 * gnulib/import/close.c: Update.
579 * gnulib/import/closedir.c: Update.
580 * gnulib/import/config.charset: Update.
581 * gnulib/import/dirent-private.h: Update.
582 * gnulib/import/dirent.in.h: Update.
583 * gnulib/import/dirfd.c: Update.
584 * gnulib/import/dirname-lgpl.c: Update.
585 * gnulib/import/dirname.h: Update.
586 * gnulib/import/dosname.h: Update.
587 * gnulib/import/dup-safer-flag.c: Update.
588 * gnulib/import/dup-safer.c: Update.
589 * gnulib/import/dup.c: Update.
590 * gnulib/import/dup2.c: Update.
591 * gnulib/import/errno.in.h: Update.
592 * gnulib/import/error.c: Update.
593 * gnulib/import/error.h: Update.
594 * gnulib/import/exitfail.c: Update.
595 * gnulib/import/exitfail.h: Update.
596 * gnulib/import/extra/update-copyright: Update.
597 * gnulib/import/fchdir.c: Update.
598 * gnulib/import/fcntl.c: Update.
599 * gnulib/import/fcntl.in.h: Update.
600 * gnulib/import/fd-hook.c: Update.
601 * gnulib/import/fd-hook.h: Update.
602 * gnulib/import/fd-safer-flag.c: Update.
603 * gnulib/import/fd-safer.c: Update.
604 * gnulib/import/fdopendir.c: Update.
605 * gnulib/import/filename.h: Update.
606 * gnulib/import/filenamecat-lgpl.c: Update.
607 * gnulib/import/filenamecat.h: Update.
608 * gnulib/import/flexmember.h: Update.
609 * gnulib/import/float+.h: Update.
610 * gnulib/import/float.c: Update.
611 * gnulib/import/float.in.h: Update.
612 * gnulib/import/fnmatch.c: Update.
613 * gnulib/import/fnmatch.in.h: Update.
614 * gnulib/import/fnmatch_loop.c: Update.
615 * gnulib/import/fpucw.h: Update.
616 * gnulib/import/frexp.c: Update.
617 * gnulib/import/frexpl.c: Update.
618 * gnulib/import/fstat.c: Update.
619 * gnulib/import/fstatat.c: Update.
620 * gnulib/import/getcwd-lgpl.c: Update.
621 * gnulib/import/getcwd.c: Update.
622 * gnulib/import/getdtablesize.c: Update.
623 * gnulib/import/getlogin_r.c: Update.
624 * gnulib/import/getprogname.c: Update.
625 * gnulib/import/getprogname.h: Update.
626 * gnulib/import/gettext.h: Update.
627 * gnulib/import/gettimeofday.c: Update.
628 * gnulib/import/glob-libc.h: Update.
629 * gnulib/import/glob.c: Update.
630 * gnulib/import/glob.in.h: Update.
631 * gnulib/import/glob_internal.h: Update.
632 * gnulib/import/glob_pattern_p.c: Update.
633 * gnulib/import/globfree.c: Update.
634 * gnulib/import/hard-locale.c: Update.
635 * gnulib/import/hard-locale.h: Update.
636 * gnulib/import/intprops.h: Update.
637 * gnulib/import/inttypes.in.h: Update.
638 * gnulib/import/isnan.c: Update.
639 * gnulib/import/isnand-nolibm.h: Update.
640 * gnulib/import/isnand.c: Update.
641 * gnulib/import/isnanl-nolibm.h: Update.
642 * gnulib/import/isnanl.c: Update.
643 * gnulib/import/itold.c: Update.
644 * gnulib/import/libc-config.h: Update.
645 * gnulib/import/limits.in.h: Update.
646 * gnulib/import/localcharset.c: Update.
647 * gnulib/import/localcharset.h: Update.
648 * gnulib/import/localtime-buffer.c: Update.
649 * gnulib/import/localtime-buffer.h: Update.
650 * gnulib/import/lstat.c: Update.
651 * gnulib/import/m4/00gnulib.m4: Update.
652 * gnulib/import/m4/__inline.m4: Update.
653 * gnulib/import/m4/absolute-header.m4: Update.
654 * gnulib/import/m4/alloca.m4: Update.
655 * gnulib/import/m4/builtin-expect.m4: Update.
656 * gnulib/import/m4/canonicalize.m4: Update.
657 * gnulib/import/m4/chdir-long.m4: Update.
658 * gnulib/import/m4/close.m4: Update.
659 * gnulib/import/m4/closedir.m4: Update.
660 * gnulib/import/m4/configmake.m4: Update.
661 * gnulib/import/m4/d-ino.m4: Update.
662 * gnulib/import/m4/d-type.m4: Update.
663 * gnulib/import/m4/dirent_h.m4: Update.
664 * gnulib/import/m4/dirfd.m4: Update.
665 * gnulib/import/m4/dirname.m4: Update.
666 * gnulib/import/m4/double-slash-root.m4: Update.
667 * gnulib/import/m4/dup.m4: Update.
668 * gnulib/import/m4/dup2.m4: Update.
669 * gnulib/import/m4/eealloc.m4: Update.
670 * gnulib/import/m4/environ.m4: Update.
671 * gnulib/import/m4/errno_h.m4: Update.
672 * gnulib/import/m4/error.m4: Update.
673 * gnulib/import/m4/exponentd.m4: Update.
674 * gnulib/import/m4/exponentl.m4: Update.
675 * gnulib/import/m4/extensions.m4: Update.
676 * gnulib/import/m4/extern-inline.m4: Update.
677 * gnulib/import/m4/fchdir.m4: Update.
678 * gnulib/import/m4/fcntl-o.m4: Update.
679 * gnulib/import/m4/fcntl.m4: Update.
680 * gnulib/import/m4/fcntl_h.m4: Update.
681 * gnulib/import/m4/fdopendir.m4: Update.
682 * gnulib/import/m4/filenamecat.m4: Update.
683 * gnulib/import/m4/flexmember.m4: Update.
684 * gnulib/import/m4/float_h.m4: Update.
685 * gnulib/import/m4/fnmatch.m4: Update.
686 * gnulib/import/m4/fnmatch_h.m4: Update.
687 * gnulib/import/m4/fpieee.m4: Update.
688 * gnulib/import/m4/frexp.m4: Update.
689 * gnulib/import/m4/frexpl.m4: Update.
690 * gnulib/import/m4/fstat.m4: Update.
691 * gnulib/import/m4/fstatat.m4: Update.
692 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
693 * gnulib/import/m4/getcwd-path-max.m4: Update.
694 * gnulib/import/m4/getcwd.m4: Update.
695 * gnulib/import/m4/getdtablesize.m4: Update.
696 * gnulib/import/m4/getlogin.m4: Update.
697 * gnulib/import/m4/getlogin_r.m4: Update.
698 * gnulib/import/m4/getpagesize.m4: Update.
699 * gnulib/import/m4/getprogname.m4: Update.
700 * gnulib/import/m4/gettimeofday.m4: Update.
701 * gnulib/import/m4/glibc21.m4: Update.
702 * gnulib/import/m4/glob.m4: Update.
703 * gnulib/import/m4/glob_h.m4: Update.
704 * gnulib/import/m4/gnulib-cache.m4: Update.
705 * gnulib/import/m4/gnulib-common.m4: Update.
706 * gnulib/import/m4/gnulib-comp.m4: Update.
707 * gnulib/import/m4/gnulib-tool.m4: Update.
708 * gnulib/import/m4/hard-locale.m4: Update.
709 * gnulib/import/m4/include_next.m4: Update.
710 * gnulib/import/m4/inttypes-pri.m4: Update.
711 * gnulib/import/m4/inttypes.m4: Update.
712 * gnulib/import/m4/isnand.m4: Update.
713 * gnulib/import/m4/isnanl.m4: Update.
714 * gnulib/import/m4/largefile.m4: Update.
715 * gnulib/import/m4/limits-h.m4: Update.
716 * gnulib/import/m4/localcharset.m4: Update.
717 * gnulib/import/m4/locale-fr.m4: Update.
718 * gnulib/import/m4/locale-ja.m4: Update.
719 * gnulib/import/m4/locale-zh.m4: Update.
720 * gnulib/import/m4/localtime-buffer.m4: Update.
721 * gnulib/import/m4/longlong.m4: Update.
722 * gnulib/import/m4/lstat.m4: Update.
723 * gnulib/import/m4/malloc.m4: Update.
724 * gnulib/import/m4/malloca.m4: Update.
725 * gnulib/import/m4/math_h.m4: Update.
726 * gnulib/import/m4/mbrtowc.m4: Update.
727 * gnulib/import/m4/mbsinit.m4: Update.
728 * gnulib/import/m4/mbsrtowcs.m4: Update.
729 * gnulib/import/m4/mbstate_t.m4: Update.
730 * gnulib/import/m4/memchr.m4: Update.
731 * gnulib/import/m4/memmem.m4: Update.
732 * gnulib/import/m4/mempcpy.m4: Update.
733 * gnulib/import/m4/memrchr.m4: Update.
734 * gnulib/import/m4/mkdir.m4: Update.
735 * gnulib/import/m4/mkstemp.m4: Update.
736 * gnulib/import/m4/mmap-anon.m4: Update.
737 * gnulib/import/m4/mode_t.m4: Update.
738 * gnulib/import/m4/msvc-inval.m4: Update.
739 * gnulib/import/m4/msvc-nothrow.m4: Update.
740 * gnulib/import/m4/multiarch.m4: Update.
741 * gnulib/import/m4/nocrash.m4: Update.
742 * gnulib/import/m4/off_t.m4: Update.
743 * gnulib/import/m4/onceonly.m4: Update.
744 * gnulib/import/m4/open-cloexec.m4: Update.
745 * gnulib/import/m4/open.m4: Update.
746 * gnulib/import/m4/openat.m4: Update.
747 * gnulib/import/m4/opendir.m4: Update.
748 * gnulib/import/m4/pathmax.m4: Update.
749 * gnulib/import/m4/rawmemchr.m4: Update.
750 * gnulib/import/m4/readdir.m4: Update.
751 * gnulib/import/m4/readlink.m4: Update.
752 * gnulib/import/m4/realloc.m4: Update.
753 * gnulib/import/m4/rename.m4: Update.
754 * gnulib/import/m4/rewinddir.m4: Update.
755 * gnulib/import/m4/rmdir.m4: Update.
756 * gnulib/import/m4/save-cwd.m4: Update.
757 * gnulib/import/m4/secure_getenv.m4: Update.
758 * gnulib/import/m4/setenv.m4: Update.
759 * gnulib/import/m4/signal_h.m4: Update.
760 * gnulib/import/m4/ssize_t.m4: Update.
761 * gnulib/import/m4/stat-time.m4: Update.
762 * gnulib/import/m4/stat.m4: Update.
763 * gnulib/import/m4/std-gnu11.m4: Update.
764 * gnulib/import/m4/stdbool.m4: Update.
765 * gnulib/import/m4/stddef_h.m4: Update.
766 * gnulib/import/m4/stdint.m4: Update.
767 * gnulib/import/m4/stdio_h.m4: Update.
768 * gnulib/import/m4/stdlib_h.m4: Update.
769 * gnulib/import/m4/strchrnul.m4: Update.
770 * gnulib/import/m4/strdup.m4: Update.
771 * gnulib/import/m4/strerror.m4: Update.
772 * gnulib/import/m4/string_h.m4: Update.
773 * gnulib/import/m4/strstr.m4: Update.
774 * gnulib/import/m4/strtok_r.m4: Update.
775 * gnulib/import/m4/sys_socket_h.m4: Update.
776 * gnulib/import/m4/sys_stat_h.m4: Update.
777 * gnulib/import/m4/sys_time_h.m4: Update.
778 * gnulib/import/m4/sys_types_h.m4: Update.
779 * gnulib/import/m4/tempname.m4: Update.
780 * gnulib/import/m4/time_h.m4: Update.
781 * gnulib/import/m4/unistd-safer.m4: Update.
782 * gnulib/import/m4/unistd_h.m4: Update.
783 * gnulib/import/m4/warn-on-use.m4: Update.
784 * gnulib/import/m4/wchar_h.m4: Update.
785 * gnulib/import/m4/wchar_t.m4: Update.
786 * gnulib/import/m4/wctype_h.m4: Update.
787 * gnulib/import/m4/wint_t.m4: Update.
788 * gnulib/import/malloc.c: Update.
789 * gnulib/import/malloc/scratch_buffer.h: Update.
790 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
791 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
792 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
793 * gnulib/import/malloca.c: Update.
794 * gnulib/import/malloca.h: Update.
795 * gnulib/import/malloca.valgrind: Update.
796 * gnulib/import/math.in.h: Update.
797 * gnulib/import/mbrtowc.c: Update.
798 * gnulib/import/mbsinit.c: Update.
799 * gnulib/import/mbsrtowcs-impl.h: Update.
800 * gnulib/import/mbsrtowcs-state.c: Update.
801 * gnulib/import/mbsrtowcs.c: Update.
802 * gnulib/import/memchr.c: Update.
803 * gnulib/import/memmem.c: Update.
804 * gnulib/import/mempcpy.c: Update.
805 * gnulib/import/memrchr.c: Update.
806 * gnulib/import/mkdir.c: Update.
807 * gnulib/import/mkstemp.c: Update.
808 * gnulib/import/msvc-inval.c: Update.
809 * gnulib/import/msvc-inval.h: Update.
810 * gnulib/import/msvc-nothrow.c: Update.
811 * gnulib/import/msvc-nothrow.h: Update.
812 * gnulib/import/open.c: Update.
813 * gnulib/import/openat-die.c: Update.
814 * gnulib/import/openat-priv.h: Update.
815 * gnulib/import/openat-proc.c: Update.
816 * gnulib/import/openat.c: Update.
817 * gnulib/import/openat.h: Update.
818 * gnulib/import/opendir.c: Update.
819 * gnulib/import/pathmax.h: Update.
820 * gnulib/import/pipe-safer.c: Update.
821 * gnulib/import/rawmemchr.c: Update.
822 * gnulib/import/readdir.c: Update.
823 * gnulib/import/readlink.c: Update.
824 * gnulib/import/realloc.c: Update.
825 * gnulib/import/ref-add.sin: Update.
826 * gnulib/import/ref-del.sin: Update.
827 * gnulib/import/rename.c: Update.
828 * gnulib/import/rewinddir.c: Update.
829 * gnulib/import/rmdir.c: Update.
830 * gnulib/import/same-inode.h: Update.
831 * gnulib/import/save-cwd.c: Update.
832 * gnulib/import/save-cwd.h: Update.
833 * gnulib/import/scratch_buffer.h: Update.
834 * gnulib/import/secure_getenv.c: Update.
835 * gnulib/import/setenv.c: Update.
836 * gnulib/import/signal.in.h: Update.
837 * gnulib/import/stat-time.c: Update.
838 * gnulib/import/stat-time.h: Update.
839 * gnulib/import/stat-w32.c: Update.
840 * gnulib/import/stat-w32.h: Update.
841 * gnulib/import/stat.c: Update.
842 * gnulib/import/stdbool.in.h: Update.
843 * gnulib/import/stddef.in.h: Update.
844 * gnulib/import/stdint.in.h: Update.
845 * gnulib/import/stdio.in.h: Update.
846 * gnulib/import/stdlib.in.h: Update.
847 * gnulib/import/str-two-way.h: Update.
848 * gnulib/import/strchrnul.c: Update.
849 * gnulib/import/strdup.c: Update.
850 * gnulib/import/streq.h: Update.
851 * gnulib/import/strerror-override.c: Update.
852 * gnulib/import/strerror-override.h: Update.
853 * gnulib/import/strerror.c: Update.
854 * gnulib/import/string.in.h: Update.
855 * gnulib/import/stripslash.c: Update.
856 * gnulib/import/strnlen1.c: Update.
857 * gnulib/import/strnlen1.h: Update.
858 * gnulib/import/strstr.c: Update.
859 * gnulib/import/strtok_r.c: Update.
860 * gnulib/import/sys_stat.in.h: Update.
861 * gnulib/import/sys_time.in.h: Update.
862 * gnulib/import/sys_types.in.h: Update.
863 * gnulib/import/tempname.c: Update.
864 * gnulib/import/tempname.h: Update.
865 * gnulib/import/time.in.h: Update.
866 * gnulib/import/unistd--.h: Update.
867 * gnulib/import/unistd-safer.h: Update.
868 * gnulib/import/unistd.in.h: Update.
869 * gnulib/import/unsetenv.c: Update.
870 * gnulib/import/verify.h: Update.
871 * gnulib/import/extra/snippet/warn-on-use.h: Update.
872 * gnulib/import/wchar.in.h: Update.
873 * gnulib/import/wctype.in.h: Update.
874 * gnulib/import/xalloc-oversized.h: Update.
875 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
876 "53e2c179f26a890fa6685af4b6c1397ee370433b".
877
878 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
879
880 * record-btrace.c (get_thread_current_frame): Remove
881 old_inferior_ptid.
882
883 2018-09-10 Jerome Guitton <guitton@adacore.com>
884
885 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
886 with check_tag to 1 if and only if the type is tagged and the
887 component being searched cannot been found in the current
888 view. Otherwise, always call ada_to_fixed_type with
889 check_tag to 0.
890
891 2018-09-10 Xavier Roirand <roirand@adacore.com>
892
893 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
894 declaration.
895 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
896 * ada-varobj.c (ada_varobj_get_number_of_children,
897 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
898
899 2018-09-10 Xavier Roirand <roirand@adacore.com>
900
901 * ada-valprint.c (ada_value_print): Use type instead of
902 enclosing type.
903
904 2018-09-10 Xavier Roirand <roirand@adacore.com>
905
906 * ada-lang.c (ada_value_subscript): Handle case when parameter is
907 an array of access to unconstrained array.
908
909 2018-09-10 Xavier Roirand <roirand@adacore.com>
910
911 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
912 (ada_check_typedef): Use it.
913
914 2018-09-10 Xavier Roirand <roirand@adacore.com>
915
916 * ada-varobj.c (ada_varobj_describe_struct_child)
917 (ada_varobj_describe_child): Handle union case like struct one.
918
919 2018-09-10 Tom Tromey <tom@tromey.com>
920
921 PR python/18380:
922 * python/python.c (_initialize_python): Make example in "python"
923 help work in Python 3.
924
925 2018-09-10 Eli Zaretskii <eliz@gnu.org>
926
927 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
928 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
929 $(EXEEXT) to the script, as it is not a program.
930
931 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
932
933 * python/py-prettyprint.c (pretty_print_one_value): Return
934 gdbpy_ref<>.
935 (print_string_repr): Adjust.
936 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
937 * python/python-internal.h (apply_varobj_pretty_printer): Return
938 gdbpy_ref<>.
939 * varobj.c (varobj_value_get_print_value): Adjust.
940
941 2018-09-08 Tom Tromey <tom@tromey.com>
942
943 PR python/16047:
944 * python/py-prettyprint.c (pretty_print_one_value): Check for
945 to_string method.
946
947 2018-09-08 Joel Brobecker <brobecker@adacore.com>
948
949 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
950 replace_operator_with_call.
951
952 2018-09-08 Joel Brobecker <brobecker@adacore.com>
953
954 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
955
956 2018-09-08 Joel Brobecker <brobecker@adacore.com>
957
958 * ada-typeprint.c (print_range): Print the bounds using TYPE
959 rather than its TYPE_TARGET_TYPE.
960
961 2018-09-08 Joel Brobecker <brobecker@adacore.com>
962
963 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
964 call to ada_to_fixed_value_create.
965
966 2018-09-08 Jerome Guitton <guitton@adacore.com>
967
968 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
969
970 2018-09-08 Joel Brobecker <brobecker@adacore.com>
971
972 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
973 by calls to error.
974
975 2018-09-08 Joel Brobecker <brobecker@adacore.com>
976
977 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
978 Move update of loop variable "fi".
979
980 2018-09-08 Joel Brobecker <brobecker@adacore.com>
981
982 * ada-lang.c (value_assign_to_component): In the case of
983 big-endian targets, extract the bits of the given VAL
984 using an src_offset of zero if container is not a scalar.
985
986 2018-09-06 Simon Ser <contact@emersion.fr>
987
988 PR gdb/23105
989 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
990 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
991 * fbsd-tdep.c (fbsd_make_note_desc): New.
992 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
993 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
994 * target.h (enum target_object) Add FreeBSD-specific
995 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
996
997 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
998
999 * compile/compile-c.h (generate_c_for_variable_locations):
1000 Change reference to pointer.
1001 * compile/compile-c-support.c (compile_program) <compute>:
1002 Likewise.
1003 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1004 (generate_c_for_for_one_variable): Likewise
1005 (generate_c_for_variable_locations): Likewise
1006 * compile/compile-c-types.c (compile_c_instance::convert_type):
1007 Likewise
1008 * compile/compile-cplus-symbols.c (convert_one_symbol):
1009 std::move the scope passed to enter_scope.
1010 * compile/compile-cplus-types.c
1011 (compile_cplus_instance::enter_scope): Make parameter
1012 rvalue-reference.
1013 (compile_cplus_instance::new_scope): Change reference to
1014 pointer.
1015 (compile_cplus_instance::convert_type): Likewise
1016 (compile_cplus_convert_typedef): std::move the scope passed to
1017 enter_scope.
1018 (compile_cplus_convert_struct_or_union): Likewise.
1019 (compile_cplus_convert_enum): Likewise.
1020 (compile_cplus_convert_namespace): Likewise.
1021 * compile/compile-cplus.h (compile_cplus_instance)
1022 <enter_scope>: Make parameter rvalue-reference.
1023 * compile/compile-internal.h (compile_instance)
1024 <get_cached_type>: Likewise
1025 * compile/compile-loc2c.c (push): Likewise
1026 (pushf): Likewise
1027 (unary): Likewise
1028 (binary): Likewise
1029 (print_label): Likewise
1030 (pushf_register_address): Likewise
1031 (pushf_register): Likewise
1032 (do_compile_dwarf_expr_to_c): Likewise
1033 (compile_dwarf_expr_to_c): Likewise
1034 (compile_dwarf_bounds_to_c): Likewise
1035 * compile/compile.c (compile_instance::get_cached_type):
1036 Likewise
1037 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1038 (compile_dwarf_bounds_to_c): Likewise
1039 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1040 (dwarf2_compile_property_to_c): Likewise
1041 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1042 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1043 Likewise
1044
1045 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1046
1047 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1048 * tui/tui-data.c (init_content_element): Don't initialize it.
1049
1050 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1051
1052 * tui/tui-data.h (struct tui_win_info)
1053 <detail::opaque>: Remove.
1054 * tui/tui-data.c (init_win_info): Remove assignment.
1055
1056 2018-09-05 Tom Tromey <tom@tromey.com>
1057
1058 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1059 -Wformat-nonliteral.
1060 * target-float.c (host_float_ops<T>::to_string)
1061 (host_float_ops<T>::from_string): Use
1062 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1063 * configure: Rebuild.
1064
1065 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1066
1067 * printcmd.c (printf_c_string): Use
1068 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1069 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1070
1071 2018-09-05 Tom Tromey <tom@tromey.com>
1072
1073 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1074
1075 2018-09-05 Tom de Vries <tdevries@suse.de>
1076
1077 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1078 with resolve_abstract_p == true.
1079 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1080 defaulting to false. Propagate resolve_abstract_p to
1081 dwarf2_fetch_die_loc_sect_off.
1082 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1083 parameter, defaulting to false.
1084 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1085 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1086 parameter.
1087 * dwarf2read.h (struct die_info): Forward-declare.
1088 (die_info_ptr): New typedef.
1089 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1090
1091 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1092
1093 GDB 8.2 released.
1094
1095 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1096 Pedro Alves <palves@redhat.com>
1097
1098 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1099 "aclocal-m4-deps.mk". Include file here.
1100 $(srcdir)/aclocal.m4: Add "configure.ac".
1101 * gnulib/aclocal-m4-deps.mk: New file.
1102 * gnulib/update-gnulib.sh: Automatically update
1103 "aclocal-m4-deps.mk".
1104
1105 2018-09-04 Tom Tromey <tom@tromey.com>
1106
1107 * configure: Rebuild.
1108 * configure.ac: Remove multi-ice code.
1109
1110 2018-09-04 Tom Tromey <tom@tromey.com>
1111
1112 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1113 (ada-exp.o): Update.
1114
1115 2018-09-04 Tom Tromey <tom@tromey.com>
1116
1117 * Makefile.in (printcmd.o, target-float.o): Remove.
1118 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1119
1120 2018-09-04 Tom Tromey <tom@tromey.com>
1121
1122 * gnulib/Makefile.in: Remove obsolete comment.
1123 * Makefile.in: Remove obsolete comment.
1124
1125 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1126
1127 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1128 line with '+'.
1129
1130 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1131
1132 * riscv-tdep.c: Add 'prologue-value.h' include.
1133 (struct riscv_unwind_cache): New struct.
1134 (riscv_debug_unwinder): New global.
1135 (riscv_scan_prologue): Update arguments, capture register details
1136 from prologue scan.
1137 (riscv_skip_prologue): Reformat arguments line, move end of
1138 prologue calculation into riscv_scan_prologue.
1139 (riscv_frame_cache): Update return type, create
1140 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1141 details.
1142 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1143 (riscv_frame_prev_register): Use the trad_frame within the
1144 riscv_unwind_cache.
1145 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1146 flag.
1147
1148 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1149
1150 * trad-frame.h (trad_frame_set_realreg): Declare.
1151 (trad_frame_set_addr): Declare.
1152 * trad-frame.c (trad_frame_set_realreg): Define new function.
1153 (trad_frame_set_addr): Define new function.
1154 (trad_frame_set_reg_realreg): Use new function.
1155 (trad_frame_set_reg_addr): Use new function.
1156
1157 2018-09-01 Keith Seitz <keiths@redhat.com>
1158
1159 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1160 pulongest instead of "%lld".
1161 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1162 ATTRIBUTE_UNUSED.
1163
1164 2018-08-31 Tom Tromey <tom@tromey.com>
1165
1166 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1167 variant part type.
1168
1169 2018-08-31 Pedro Alves <palves@redhat.com>
1170
1171 * gdbarch.h: Regenerate.
1172
1173 2018-08-31 Pedro Alves <palves@redhat.com>
1174
1175 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1176 * target.h (Hardware watchpoint interfaces): Describe
1177 continuable/steppable/non-steppable watchpoints.
1178 * gdbarch.h, gdbarch.c: Regenerate.
1179
1180 2018-08-31 Pedro Alves <palves@redhat.com>
1181
1182 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1183 Delete.
1184 * s390-linux-nat.c
1185 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1186 * target.h (target_ops::have_continuable_watchpoint): Delete.
1187 (target_have_continuable_watchpoint): Delete.
1188 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1189 * target-delegates.c: Regenerate.
1190
1191 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1192
1193 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1194 the files present in "gnulib/import/m4/".
1195
1196 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1197
1198 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1199 c.sw, c.swsp, and c.sdsp.
1200
1201 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1202
1203 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1204 (riscv_read_misa_reg): Don't cache value read into inferior data.
1205 (riscv_new_inferior_data): Delete.
1206 (riscv_inferior_data_cleanup): Delete.
1207 (riscv_inferior_data): Delete.
1208 (riscv_invalidate_inferior_data): Delete.
1209 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1210
1211 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1212
1213 * compile/compile-cplus-types.c
1214 (compile_cplus_instance::leave_scope): Take the address of scope
1215 object.
1216 (compile_cplus_instance::convert_qualified_base): Compare quals
1217 to 0.
1218
1219 2018-08-30 Keith Seitz <keiths@redhat.com>
1220
1221 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1222 Use "%s" and host_address_to_string instead of "%p" in printf.
1223
1224 2018-08-29 Keith Seitz <keiths@redhat.com>
1225
1226 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1227 and compile-cplus-types.c.
1228 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1229 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1230 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1231 Declare.
1232 * compile/compile-c-support.c: Include compile-cplus.h.
1233 (load_libcompile): Templatize.
1234 (get_compile_context): "New" function.
1235 (c_get_compile_context): Use get_compile_context.
1236 (cplus_get_compile_context): New function.
1237 (cplus_push_user_expression, cplus_pop_user_expression)
1238 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1239 (cplus_compute_program): Define new structs/functions.
1240 * compile/compile-cplus-symmbols.c: New file.
1241 * compile/compile-cplus-types.c: New file.
1242 * compile/compile-cplus.h: New file.
1243 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1244 Declare.
1245 * compile/compile-object-load.c (get_out_value_type): Use
1246 strncmp_iw when comparing symbol names.
1247 (compile_object_load): Add mst_bss and mst_data.
1248 * compile/compile.c (_initialize_compile): Remove
1249 -Wno-implicit-function-declaration from `compile_args'.
1250 * compile/gcc-cp-plugin.h: New file.
1251 * NEWS: Mention C++ compile support and new debug options.
1252
1253 2018-08-29 Keith Seitz <keiths@redhat.com>
1254
1255 * linespec.c (collect_info::add_symbol): Make virtual.
1256 (struct symbol_searcher_collect_info): New struct.
1257 (symbol_searcher::find_all_symbols): New method.
1258 * symtab.h (class symbol_searcher): New class.
1259
1260 2018-08-29 Keith Seitz <keiths@redhat.com>
1261
1262 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1263 Change to vector of block_symbol. Update all users.
1264 (struct collect_info) <symbols>: Likewise.
1265 (collect_info::add_symbol): Take block_symbol as argument.
1266 Update all callers.
1267 (decode_compound_collector) <m_symbols>: Change type to vector
1268 of block_symbol. Update all users.
1269 (decode_compound_collector::operator ()): Change parameter type
1270 to block_symbol.
1271 (find_method, find_function_symbols, find_linespec_symbols)
1272 (find_label_symbols_in_block, find_label_symbols): Change symbol
1273 vectors to block_symbol vectors.
1274 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1275 block_symbol.
1276
1277 2018-08-29 Keith Seitz <keiths@redhat.com>
1278
1279 * linespec.c (symbolp): Remove typedef and VEC definitions.
1280 (bound_minimal_symbol_d): Likewise.
1281
1282 2018-08-29 Keith Seitz <keiths@redhat.com>
1283
1284 * linespec.c (decode_compound_collector::decode_compound_collector):
1285 Remove initialization for `m_symtabs'.
1286 (decode_compound_collector::release_symbols): Change return type
1287 to std::vector. Update all callers.
1288 (class decode_compound_collector) <m_symbols>: Change type to
1289 std::vector.
1290 (lookup_prefix_sym): Change return type to std::vector. Update all
1291 callers.
1292 (compare_symbols): Remove.
1293 (std_compare_symbols): Rename to `compare_symbols'.
1294 (find_method): Change `sym_classes' parameter to std::vector.
1295 Update all callers. Use std::sort to sort sym_classes.
1296 (find_linespec_symbols): Remove cleanup.
1297
1298 2018-08-29 Keith Seitz <keiths@redhat.com>
1299
1300 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1301 std::vector. Update all users.
1302 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1303 (struct collect_info) <minimal_symbols>: Likewise.
1304 (compare_msymbols): Return bool. Change parameters to const
1305 bound_minimal_symbol references.
1306 (find_method, find_function_symbols, find_linespec_symbols): Change
1307 `minsyms' parameter to std::vector. Update all callers.
1308
1309 2018-08-29 Keith Seitz <keiths@redhat.com>
1310
1311 * linespec.c (struct linespec) <label_symbols>: Change type to
1312 std::vector. Update all users.
1313 (find_label_symbols_in_block): Change `result' parameter to
1314 std::vector. Update all callers.
1315 (find_label_symbols): Return std::vector. Update all callers.
1316
1317 2018-08-29 Keith Seitz <keiths@redhat.com>
1318
1319 * linespec.c (struct linespec) <function_symbols>: Change type to
1320 std::vector. Update all users.
1321 (struct collect_info) <function_symbols>: Likewise.
1322 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1323 (std_compare_symbols): New function.
1324 (find_method, find_function_symbols, find_linespec_symbols)
1325 (find_label_symbols_in_block): Change `symbols' parameter to
1326 std::vector. Update all callers.
1327 (find_label_symbols): Likewise for `function_symbols' and
1328 `label_funcs_ret'.
1329
1330 2018-08-29 Keith Seitz <keiths@redhat.com>
1331
1332 * linespec.c (symtab_vector_up): Define.
1333 (struct linespec) <file_symtabs>: Change type to std::vector *.
1334 Update all uses.
1335 (struct collect_info) <file_symtabs>: Likewise.
1336 (collect_symtabs_from_filename): Return symtab_vector_up.
1337 Update all callers.
1338 (decode_objc): Remove cleanup.
1339 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1340 (symtab_collector::release_symtabs): Return symtab_vector_up.
1341 Update all callers.
1342 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1343 Update all users.
1344 (collect_symtabs_from_filename, symtabs_from_filename): Return
1345 symtab_vector_up. Update all callers.
1346
1347 2018-08-29 Tom Tromey <tom@tromey.com>
1348
1349 * csky-tdep.c (csky_analyze_prologue): Use
1350 core_addr_to_string_nz.
1351
1352 2018-08-29 Tom Tromey <tom@tromey.com>
1353
1354 * windows-nat.c (struct xlate_exception) <them>: Change type to
1355 DWORD.
1356 (xlate): Fix formatting. Remove last entry.
1357 (struct xlate_exception, xlate): Comment out.
1358 (windows_nat_target::resume): Use ranged for.
1359
1360 2018-08-29 Jim Wilson <jimw@sifive.com>
1361
1362 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1363 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1364 of NT_PRFPREG.
1365 (riscv_linux_nat_target::store_registers): Likewise.
1366
1367 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1368
1369 PR gdb/23555
1370 PR gdb/23558
1371 * gnulib/aclocal.m4: Regenerate.
1372 * gnulib/config.in: Regenerate.
1373 * gnulib/configure: Regenerate.
1374 * gnulib/import/Makefile.am: Update.
1375 * gnulib/import/Makefile.in: Update.
1376 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1377 * gnulib/import/_Noreturn.h: ... this.
1378 * gnulib/import/alloca.in.h: Update.
1379 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1380 * gnulib/import/arg-nonnull.h: ... this.
1381 * gnulib/import/assure.h: Update.
1382 * gnulib/import/at-func.c: Update.
1383 * gnulib/import/basename-lgpl.c: Update.
1384 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1385 * gnulib/import/c++defs.h: ... this.
1386 * gnulib/import/canonicalize-lgpl.c: Update.
1387 * gnulib/import/cdefs.h: Update.
1388 * gnulib/import/chdir-long.c: Update.
1389 * gnulib/import/chdir-long.h: Update.
1390 * gnulib/import/cloexec.c: Update.
1391 * gnulib/import/cloexec.h: Update.
1392 * gnulib/import/close.c: Update.
1393 * gnulib/import/closedir.c: Update.
1394 * gnulib/import/config.charset: Update.
1395 * gnulib/import/dirent-private.h: Update.
1396 * gnulib/import/dirent.in.h: Update.
1397 * gnulib/import/dirfd.c: Update.
1398 * gnulib/import/dirname-lgpl.c: Update.
1399 * gnulib/import/dirname.h: Update.
1400 * gnulib/import/dosname.h: Update.
1401 * gnulib/import/dup-safer-flag.c: Update.
1402 * gnulib/import/dup-safer.c: Update.
1403 * gnulib/import/dup.c: Update.
1404 * gnulib/import/dup2.c: Update.
1405 * gnulib/import/errno.in.h: Update.
1406 * gnulib/import/error.c: Update.
1407 * gnulib/import/error.h: Update.
1408 * gnulib/import/exitfail.c: Update.
1409 * gnulib/import/exitfail.h: Update.
1410 * gnulib/import/extra/update-copyright: Update.
1411 * gnulib/import/fchdir.c: Update.
1412 * gnulib/import/fcntl.c: Update.
1413 * gnulib/import/fcntl.in.h: Update.
1414 * gnulib/import/fd-hook.c: Update.
1415 * gnulib/import/fd-hook.h: Update.
1416 * gnulib/import/fd-safer-flag.c: Update.
1417 * gnulib/import/fd-safer.c: Update.
1418 * gnulib/import/fdopendir.c: Update.
1419 * gnulib/import/filename.h: Update.
1420 * gnulib/import/filenamecat-lgpl.c: Update.
1421 * gnulib/import/filenamecat.h: Update.
1422 * gnulib/import/flexmember.h: Update.
1423 * gnulib/import/float+.h: Update.
1424 * gnulib/import/float.c: Update.
1425 * gnulib/import/float.in.h: Update.
1426 * gnulib/import/fnmatch.c: Update.
1427 * gnulib/import/fnmatch.in.h: Update.
1428 * gnulib/import/fnmatch_loop.c: Update.
1429 * gnulib/import/fpucw.h: Update.
1430 * gnulib/import/frexp.c: Update.
1431 * gnulib/import/frexpl.c: Update.
1432 * gnulib/import/fstat.c: Update.
1433 * gnulib/import/fstatat.c: Update.
1434 * gnulib/import/getcwd-lgpl.c: Update.
1435 * gnulib/import/getcwd.c: Update.
1436 * gnulib/import/getdtablesize.c: Update.
1437 * gnulib/import/getlogin_r.c: Update.
1438 * gnulib/import/getprogname.c: Update.
1439 * gnulib/import/getprogname.h: Update.
1440 * gnulib/import/gettext.h: Update.
1441 * gnulib/import/gettimeofday.c: Update.
1442 * gnulib/import/glob-libc.h: Update.
1443 * gnulib/import/glob.c: Update.
1444 * gnulib/import/glob.in.h: Update.
1445 * gnulib/import/glob_internal.h: Update.
1446 * gnulib/import/glob_pattern_p.c: Update.
1447 * gnulib/import/globfree.c: Update.
1448 * gnulib/import/hard-locale.c: Update.
1449 * gnulib/import/hard-locale.h: Update.
1450 * gnulib/import/intprops.h: Update.
1451 * gnulib/import/inttypes.in.h: Update.
1452 * gnulib/import/isnan.c: Update.
1453 * gnulib/import/isnand-nolibm.h: Update.
1454 * gnulib/import/isnand.c: Update.
1455 * gnulib/import/isnanl-nolibm.h: Update.
1456 * gnulib/import/isnanl.c: Update.
1457 * gnulib/import/itold.c: Update.
1458 * gnulib/import/libc-config.h: Update.
1459 * gnulib/import/limits.in.h: Update.
1460 * gnulib/import/localcharset.c: Update.
1461 * gnulib/import/localcharset.h: Update.
1462 * gnulib/import/localtime-buffer.c: Update.
1463 * gnulib/import/localtime-buffer.h: Update.
1464 * gnulib/import/lstat.c: Update.
1465 * gnulib/import/m4/00gnulib.m4: Update.
1466 * gnulib/import/m4/__inline.m4: Update.
1467 * gnulib/import/m4/absolute-header.m4: Update.
1468 * gnulib/import/m4/alloca.m4: Update.
1469 * gnulib/import/m4/builtin-expect.m4: Update.
1470 * gnulib/import/m4/canonicalize.m4: Update.
1471 * gnulib/import/m4/chdir-long.m4: Update.
1472 * gnulib/import/m4/close.m4: Update.
1473 * gnulib/import/m4/closedir.m4: Update.
1474 * gnulib/import/m4/configmake.m4: Update.
1475 * gnulib/import/m4/d-ino.m4: Update.
1476 * gnulib/import/m4/d-type.m4: Update.
1477 * gnulib/import/m4/dirent_h.m4: Update.
1478 * gnulib/import/m4/dirfd.m4: Update.
1479 * gnulib/import/m4/dirname.m4: Update.
1480 * gnulib/import/m4/double-slash-root.m4: Update.
1481 * gnulib/import/m4/dup.m4: Update.
1482 * gnulib/import/m4/dup2.m4: Update.
1483 * gnulib/import/m4/eealloc.m4: Update.
1484 * gnulib/import/m4/environ.m4: Update.
1485 * gnulib/import/m4/errno_h.m4: Update.
1486 * gnulib/import/m4/error.m4: Update.
1487 * gnulib/import/m4/exponentd.m4: Update.
1488 * gnulib/import/m4/exponentl.m4: Update.
1489 * gnulib/import/m4/extensions.m4: Update.
1490 * gnulib/import/m4/extern-inline.m4: Update.
1491 * gnulib/import/m4/fchdir.m4: Update.
1492 * gnulib/import/m4/fcntl-o.m4: Update.
1493 * gnulib/import/m4/fcntl.m4: Update.
1494 * gnulib/import/m4/fcntl_h.m4: Update.
1495 * gnulib/import/m4/fdopendir.m4: Update.
1496 * gnulib/import/m4/filenamecat.m4: Update.
1497 * gnulib/import/m4/flexmember.m4: Update.
1498 * gnulib/import/m4/float_h.m4: Update.
1499 * gnulib/import/m4/fnmatch.m4: Update.
1500 * gnulib/import/m4/fnmatch_h.m4: Update.
1501 * gnulib/import/m4/fpieee.m4: Update.
1502 * gnulib/import/m4/frexp.m4: Update.
1503 * gnulib/import/m4/frexpl.m4: Update.
1504 * gnulib/import/m4/fstat.m4: Update.
1505 * gnulib/import/m4/fstatat.m4: Update.
1506 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1507 * gnulib/import/m4/getcwd-path-max.m4: Update.
1508 * gnulib/import/m4/getcwd.m4: Update.
1509 * gnulib/import/m4/getdtablesize.m4: Update.
1510 * gnulib/import/m4/getlogin.m4: Update.
1511 * gnulib/import/m4/getlogin_r.m4: Update.
1512 * gnulib/import/m4/getpagesize.m4: Update.
1513 * gnulib/import/m4/getprogname.m4: Update.
1514 * gnulib/import/m4/gettimeofday.m4: Update.
1515 * gnulib/import/m4/glibc21.m4: Update.
1516 * gnulib/import/m4/glob.m4: Update.
1517 * gnulib/import/m4/glob_h.m4: Update.
1518 * gnulib/import/m4/gnulib-cache.m4: Update.
1519 * gnulib/import/m4/gnulib-common.m4: Update.
1520 * gnulib/import/m4/gnulib-comp.m4: Update.
1521 * gnulib/import/m4/gnulib-tool.m4: Update.
1522 * gnulib/import/m4/hard-locale.m4: Update.
1523 * gnulib/import/m4/include_next.m4: Update.
1524 * gnulib/import/m4/inttypes-pri.m4: Update.
1525 * gnulib/import/m4/inttypes.m4: Update.
1526 * gnulib/import/m4/isnand.m4: Update.
1527 * gnulib/import/m4/isnanl.m4: Update.
1528 * gnulib/import/m4/largefile.m4: Update.
1529 * gnulib/import/m4/limits-h.m4: Update.
1530 * gnulib/import/m4/localcharset.m4: Update.
1531 * gnulib/import/m4/locale-fr.m4: Update.
1532 * gnulib/import/m4/locale-ja.m4: Update.
1533 * gnulib/import/m4/locale-zh.m4: Update.
1534 * gnulib/import/m4/localtime-buffer.m4: Update.
1535 * gnulib/import/m4/longlong.m4: Update.
1536 * gnulib/import/m4/lstat.m4: Update.
1537 * gnulib/import/m4/malloc.m4: Update.
1538 * gnulib/import/m4/malloca.m4: Update.
1539 * gnulib/import/m4/math_h.m4: Update.
1540 * gnulib/import/m4/mbrtowc.m4: Update.
1541 * gnulib/import/m4/mbsinit.m4: Update.
1542 * gnulib/import/m4/mbsrtowcs.m4: Update.
1543 * gnulib/import/m4/mbstate_t.m4: Update.
1544 * gnulib/import/m4/memchr.m4: Update.
1545 * gnulib/import/m4/memmem.m4: Update.
1546 * gnulib/import/m4/mempcpy.m4: Update.
1547 * gnulib/import/m4/memrchr.m4: Update.
1548 * gnulib/import/m4/mkdir.m4: Update.
1549 * gnulib/import/m4/mkstemp.m4: Update.
1550 * gnulib/import/m4/mmap-anon.m4: Update.
1551 * gnulib/import/m4/mode_t.m4: Update.
1552 * gnulib/import/m4/msvc-inval.m4: Update.
1553 * gnulib/import/m4/msvc-nothrow.m4: Update.
1554 * gnulib/import/m4/multiarch.m4: Update.
1555 * gnulib/import/m4/nocrash.m4: Update.
1556 * gnulib/import/m4/off_t.m4: Update.
1557 * gnulib/import/m4/onceonly.m4: Update.
1558 * gnulib/import/m4/open-cloexec.m4: Update.
1559 * gnulib/import/m4/open.m4: Update.
1560 * gnulib/import/m4/openat.m4: Update.
1561 * gnulib/import/m4/opendir.m4: Update.
1562 * gnulib/import/m4/pathmax.m4: Update.
1563 * gnulib/import/m4/rawmemchr.m4: Update.
1564 * gnulib/import/m4/readdir.m4: Update.
1565 * gnulib/import/m4/readlink.m4: Update.
1566 * gnulib/import/m4/realloc.m4: Update.
1567 * gnulib/import/m4/rename.m4: Update.
1568 * gnulib/import/m4/rewinddir.m4: Update.
1569 * gnulib/import/m4/rmdir.m4: Update.
1570 * gnulib/import/m4/save-cwd.m4: Update.
1571 * gnulib/import/m4/secure_getenv.m4: Update.
1572 * gnulib/import/m4/setenv.m4: Update.
1573 * gnulib/import/m4/signal_h.m4: Update.
1574 * gnulib/import/m4/ssize_t.m4: Update.
1575 * gnulib/import/m4/stat-time.m4: Update.
1576 * gnulib/import/m4/stat.m4: Update.
1577 * gnulib/import/m4/std-gnu11.m4: Update.
1578 * gnulib/import/m4/stdbool.m4: Update.
1579 * gnulib/import/m4/stddef_h.m4: Update.
1580 * gnulib/import/m4/stdint.m4: Update.
1581 * gnulib/import/m4/stdio_h.m4: Update.
1582 * gnulib/import/m4/stdlib_h.m4: Update.
1583 * gnulib/import/m4/strchrnul.m4: Update.
1584 * gnulib/import/m4/strdup.m4: Update.
1585 * gnulib/import/m4/strerror.m4: Update.
1586 * gnulib/import/m4/string_h.m4: Update.
1587 * gnulib/import/m4/strstr.m4: Update.
1588 * gnulib/import/m4/strtok_r.m4: Update.
1589 * gnulib/import/m4/sys_socket_h.m4: Update.
1590 * gnulib/import/m4/sys_stat_h.m4: Update.
1591 * gnulib/import/m4/sys_time_h.m4: Update.
1592 * gnulib/import/m4/sys_types_h.m4: Update.
1593 * gnulib/import/m4/tempname.m4: Update.
1594 * gnulib/import/m4/time_h.m4: Update.
1595 * gnulib/import/m4/unistd-safer.m4: Update.
1596 * gnulib/import/m4/unistd_h.m4: Update.
1597 * gnulib/import/m4/warn-on-use.m4: Update.
1598 * gnulib/import/m4/wchar_h.m4: Update.
1599 * gnulib/import/m4/wchar_t.m4: Update.
1600 * gnulib/import/m4/wctype_h.m4: Update.
1601 * gnulib/import/m4/wint_t.m4: Update.
1602 * gnulib/import/malloc.c: Update.
1603 * gnulib/import/malloc/scratch_buffer.h: Update.
1604 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1605 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1606 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1607 * gnulib/import/malloca.c: Update.
1608 * gnulib/import/malloca.h: Update.
1609 * gnulib/import/malloca.valgrind: Update.
1610 * gnulib/import/math.in.h: Update.
1611 * gnulib/import/mbrtowc.c: Update.
1612 * gnulib/import/mbsinit.c: Update.
1613 * gnulib/import/mbsrtowcs-impl.h: Update.
1614 * gnulib/import/mbsrtowcs-state.c: Update.
1615 * gnulib/import/mbsrtowcs.c: Update.
1616 * gnulib/import/memchr.c: Update.
1617 * gnulib/import/memmem.c: Update.
1618 * gnulib/import/mempcpy.c: Update.
1619 * gnulib/import/memrchr.c: Update.
1620 * gnulib/import/mkdir.c: Update.
1621 * gnulib/import/mkstemp.c: Update.
1622 * gnulib/import/msvc-inval.c: Update.
1623 * gnulib/import/msvc-inval.h: Update.
1624 * gnulib/import/msvc-nothrow.c: Update.
1625 * gnulib/import/msvc-nothrow.h: Update.
1626 * gnulib/import/open.c: Update.
1627 * gnulib/import/openat-die.c: Update.
1628 * gnulib/import/openat-priv.h: Update.
1629 * gnulib/import/openat-proc.c: Update.
1630 * gnulib/import/openat.c: Update.
1631 * gnulib/import/openat.h: Update.
1632 * gnulib/import/opendir.c: Update.
1633 * gnulib/import/pathmax.h: Update.
1634 * gnulib/import/pipe-safer.c: Update.
1635 * gnulib/import/rawmemchr.c: Update.
1636 * gnulib/import/readdir.c: Update.
1637 * gnulib/import/readlink.c: Update.
1638 * gnulib/import/realloc.c: Update.
1639 * gnulib/import/ref-add.sin: Update.
1640 * gnulib/import/ref-del.sin: Update.
1641 * gnulib/import/rename.c: Update.
1642 * gnulib/import/rewinddir.c: Update.
1643 * gnulib/import/rmdir.c: Update.
1644 * gnulib/import/same-inode.h: Update.
1645 * gnulib/import/save-cwd.c: Update.
1646 * gnulib/import/save-cwd.h: Update.
1647 * gnulib/import/scratch_buffer.h: Update.
1648 * gnulib/import/secure_getenv.c: Update.
1649 * gnulib/import/setenv.c: Update.
1650 * gnulib/import/signal.in.h: Update.
1651 * gnulib/import/stat-time.c: Update.
1652 * gnulib/import/stat-time.h: Update.
1653 * gnulib/import/stat-w32.c: Update.
1654 * gnulib/import/stat-w32.h: Update.
1655 * gnulib/import/stat.c: Update.
1656 * gnulib/import/stdbool.in.h: Update.
1657 * gnulib/import/stddef.in.h: Update.
1658 * gnulib/import/stdint.in.h: Update.
1659 * gnulib/import/stdio.in.h: Update.
1660 * gnulib/import/stdlib.in.h: Update.
1661 * gnulib/import/str-two-way.h: Update.
1662 * gnulib/import/strchrnul.c: Update.
1663 * gnulib/import/strdup.c: Update.
1664 * gnulib/import/streq.h: Update.
1665 * gnulib/import/strerror-override.c: Update.
1666 * gnulib/import/strerror-override.h: Update.
1667 * gnulib/import/strerror.c: Update.
1668 * gnulib/import/string.in.h: Update.
1669 * gnulib/import/stripslash.c: Update.
1670 * gnulib/import/strnlen1.c: Update.
1671 * gnulib/import/strnlen1.h: Update.
1672 * gnulib/import/strstr.c: Update.
1673 * gnulib/import/strtok_r.c: Update.
1674 * gnulib/import/sys_stat.in.h: Update.
1675 * gnulib/import/sys_time.in.h: Update.
1676 * gnulib/import/sys_types.in.h: Update.
1677 * gnulib/import/tempname.c: Update.
1678 * gnulib/import/tempname.h: Update.
1679 * gnulib/import/time.in.h: Update.
1680 * gnulib/import/unistd--.h: Update.
1681 * gnulib/import/unistd-safer.h: Update.
1682 * gnulib/import/unistd.in.h: Update.
1683 * gnulib/import/unsetenv.c: Update.
1684 * gnulib/import/verify.h: Update.
1685 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1686 * gnulib/import/wchar.in.h: Update.
1687 * gnulib/import/wctype.in.h: Update.
1688 * gnulib/import/xalloc-oversized.h: Update.
1689 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1690 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1691
1692 2018-08-16 Gary Benson <gbenson@redhat.com>
1693
1694 PR gdb/13000:
1695 * gdb/main.c (captured_main_1): Exit with nonzero status
1696 in batch mode if the last command to be executed failed.
1697 * NEWS: Mention the above.
1698
1699 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1700
1701 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1702 end of warning message.
1703
1704 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1705
1706 PR gdb/22943:
1707 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1708 (aarch64_extract_return_value): Use
1709 aapcs_is_vfp_call_or_return_candidate.
1710 (aarch64_return_in_memory): Likewise.
1711 (aarch64_store_return_value): Likewise.
1712
1713 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1714
1715 * aarch64-tdep.c
1716 (aapcs_is_vfp_call_or_return_candidate): Make static
1717 (pass_in_v_or_stack): Remove function.
1718 (pass_in_v_vfp_candidate): New function.
1719 (aarch64_push_dummy_call): Check for float register candidates.
1720
1721 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1722
1723 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1724 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1725 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1726
1727 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1728
1729 PR build/23399
1730 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1731 (struct ipa_sym_addresses): Rename to...
1732 (struct ipa_sym_addresses_common): ... this.
1733 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1734
1735 2018-08-28 Tom Tromey <tom@tromey.com>
1736
1737 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1738 (token_fifo): Now a std::vector.
1739 (yylex, c_parse): Update.
1740 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1741 (token_fifo): Now a std::vector.
1742 (yylex, d_parse): Update.
1743 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1744 (token_fifo): Now a std::vector.
1745 (yylex, go_parse): Update.
1746
1747 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1748
1749 * parser-defs.h (struct type_stack) <elements>: Change type to
1750 std::vector<union type_stack_elt>.
1751 <depth, size>: Remove.
1752 * parse.c (parse_exp_in_context_1): Adjust.
1753 (type_stack_reserve): Remove.
1754 (check_type_stack_depth): Remove.
1755 (insert_into_type_stack): Adjust to std::vector.
1756 (insert_type): Likewise.
1757 (push_type): Likewise.
1758 (push_type_int): Likewise.
1759 (insert_type_address_space): Likewise.
1760 (pop_type): Likewise.
1761 (pop_type_int): Likewise.
1762 (pop_typelist): Likewise.
1763 (pop_type_stack): Likewise.
1764 (append_type_stack): Likewise.
1765 (push_type_stack): Likewise.
1766 (get_type_stack): Likewise.
1767 (type_stack_cleanup): Likewise.
1768 (push_typelist): Likewise.
1769 (follow_types): Likewise.
1770 (_initialize_parse): Likewise.
1771
1772 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1773
1774 * NEWS: Mention csky target.
1775
1776 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1777 Hafiz Abid Qadeer <abidh@codesourcery.com>
1778 Don Breazeal <donb@codesourcery.com>
1779
1780 * csky-linux-tdep.c: New file.
1781 * csky-tdep.c: Likewise.
1782 * csky-tdep.h: Likewise.
1783 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1784 csky-tdep.o.
1785 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1786 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1787 * configure.tgt: Add csky support.
1788
1789 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1790
1791 * python/py-framefilter.c (py_print_frame): Print frame architecture
1792 when printing on an MI output.
1793
1794 2018-08-27 Tom Tromey <tom@tromey.com>
1795
1796 PR build/23087:
1797 * configure: Rebuild.
1798 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1799
1800 2018-08-27 Tom Tromey <tom@tromey.com>
1801
1802 * aarch64-linux-tdep.c
1803 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1804 casts to int.
1805
1806 2018-08-27 Tom Tromey <tom@tromey.com>
1807
1808 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1809 unsigned.
1810 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1811 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1812 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1813 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1814 unsigned.
1815
1816 2018-08-27 Tom Tromey <tom@tromey.com>
1817
1818 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1819 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1820
1821 2018-08-27 Tom Tromey <tom@tromey.com>
1822
1823 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1824 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1825 ULONGEST_MAX.
1826 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1827 ULONGEST_MAX.
1828 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1829 ULONGEST_MAX.
1830 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1831 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1832 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1833 ULONGEST_MAX.
1834 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1835 (ppc64_linux_sigaction_tramp_frame)
1836 (ppc32_linux_sighandler_tramp_frame)
1837 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1838 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1839 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1840 * mn10300-linux-tdep.c (am33_linux_sigframe)
1841 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1842 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1843 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1844 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1845 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1846 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1847 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1848 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1849 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1850 * microblaze-linux-tdep.c
1851 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1852 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1853 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1854 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1855 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1856 * common/common-types.h (ULONGEST_MAX): New define.
1857 (CORE_ADDR_MAX): Fix formatting.
1858 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1859 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1860 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1861 (arm_linux_rt_sigreturn_tramp_frame)
1862 (arm_eabi_linux_sigreturn_tramp_frame)
1863 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1864 (thumb2_eabi_linux_sigreturn_tramp_frame)
1865 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1866 (arm_linux_restart_syscall_tramp_frame)
1867 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1868 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1869 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1870 ULONGEST_MAX.
1871 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1872
1873 2018-08-27 Tom Tromey <tom@tromey.com>
1874
1875 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1876 CORE_ADDR_MAX.
1877 * mips-tdep.c (mips_deal_with_atomic_sequence)
1878 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1879 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1880 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1881 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1882 CORE_ADDR_MAX.
1883 * aarch64-tdep.c (aarch64_software_single_step): Use
1884 CORE_ADDR_MAX.
1885
1886 2018-08-27 Tom Tromey <tom@tromey.com>
1887
1888 * linespec.c (complete_linespec_component): Add cast to "char".
1889 * completer.c (completion_tracker::build_completion_result): Add
1890 cast to "char".
1891
1892 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1893
1894 * solist.h (struct solist, struct target_so_ops): Fix
1895 indentation.
1896
1897 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1898
1899 * ada-tasks.c (ada_task_info_s): Remove typedef.
1900 (DEF_VEC_O(ada_task_info_s)): Remove.
1901 (struct ada_tasks_inferior_data): Initialize fields.
1902 <task_list>: Make an std::vector.
1903 (get_ada_tasks_inferior_data): Allocate with new.
1904 (ada_get_task_number): Adjust.
1905 (get_task_number_from_id): Likewise.
1906 (valid_task_id): Likewise.
1907 (ada_get_task_info_from_ptid): Likewise.
1908 (iterate_over_live_ada_tasks): Likewise.
1909 (add_ada_task): Likewise.
1910 (read_known_tasks): Likewise.
1911 (ada_build_task_list): Likewise.
1912 (print_ada_task_info): Likewise.
1913 (info_task): Likewise.
1914 (task_command_1): Likewise.
1915
1916 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1917
1918 * ada-lang.c (add_angle_brackets): Return std::string.
1919
1920 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
1921
1922 * python/py-threadevent.c (py_get_event_thread): Initialize
1923 pythread.
1924
1925 2018-08-24 Pedro Alves <palves@redhat.com>
1926
1927 * python/py-bpevent.c (create_breakpoint_event_object): Use
1928 copy-initialization.
1929 * python/py-continueevent.c (emit_continue_event): Use
1930 copy-initialization.
1931 * python/py-exitedevent.c (create_exited_event_object): Return a
1932 gdbpy_ref<>.
1933 (emit_exited_event): Use copy-initialization.
1934 * python/py-inferior.c (python_new_inferior)
1935 (python_inferior_deleted, add_thread_object): Use
1936 copy-initialization.
1937 * python/py-infevents.c (create_inferior_call_event_object)
1938 (create_register_changed_event_object)
1939 (create_memory_changed_event_object): Return a gdbpy_ref<>.
1940 (emit_inferior_call_event, emit_memory_changed_event)
1941 (emit_register_changed_event): Use copy-initialization.
1942 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1943 Return a gdbpy_ref<>.
1944 (emit_new_objfile_event): Use copy-initialization.
1945 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
1946 (emit_clear_objfiles_event): Use copy-initialization.
1947 * python/py-signalevent.c (create_signal_event_object): Use
1948 copy-initialization.
1949 * python/py-threadevent.c (create_thread_event_object): Use
1950 copy-initialization.
1951
1952 2018-08-24 Pedro Alves <palves@redhat.com>
1953 Simon Marchi <simon.marchi@ericsson.com>
1954
1955 PR gdb/23379
1956 * python/py-continueevent.c: Include "gdbthread.h".
1957 (create_continue_event_object): Add intro comment. Add 'ptid'
1958 parameter. Use it to find thread to pass to
1959 create_thread_event_object.
1960 (emit_continue_event): Pass PTID down to
1961 create_continue_event_object.
1962 * python/py-event.h (py_get_event_thread): Declare.
1963 (create_thread_event_object): Remove default from 'thread'
1964 parameter.
1965 * python/py-stopevent.c (create_stop_event_object): Use
1966 py_get_event_thread.
1967 * python/py-threadevent.c (get_event_thread): Rename to ...
1968 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
1969 and use it to find the thread.
1970 (create_thread_event_object): Assert that THREAD isn't null.
1971 Don't find the event thread here.
1972
1973 2018-08-23 Kevin Buettner <kevinb@redhat.com>
1974
1975 * block.h (blockrange, blockranges): New struct declarations.
1976 (struct block): Add new field named `ranges'.
1977 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
1978 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
1979 macros for accessing ranges in struct block.
1980 (make_blockranges): New declaration.
1981 block.c (make_blockranges): New function.
1982 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
1983 for block.
1984 * symtab.h (find_pc_partial_function): Add new parameter `block'.
1985 * blockframe.c (cache_pc_function_block): New static global.
1986 (clear_pc_function_cache): Clear cache_pc_function_block.
1987 (find_pc_partial_function): Move comment to symtab.h. Add
1988 support for non-contiguous blocks.
1989 * cli/cli-cmds.c (block.h): Include.
1990 (print_disassembly): Handle printing of non-contiguous blocks.
1991 (disassemble_current_function): Likewise.
1992 (disassemble_command): Likewise.
1993
1994 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
1995 BLOCK_START.
1996 * blockframe.c (get_pc_function_start): Likewise.
1997 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
1998 (gcc_symbol_address): Likewise.
1999 * compile/compile-object-run.c (compile_object_run): Likewise.
2000 * compile/compile.c (get_expr_block_and_pc): Likewise.
2001 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2002 (func_addr_to_tail_call_list): Likewise.
2003 * findvar.c (default_read_var_value): Likewise.
2004 * inline-frame.c (inline_frame_this_id): Likewise.
2005 (skip-inline_frames): Likewise.
2006 * infcmd.c (until_next_command): Likewise.
2007 * linespec.c (convert_linespec_to_sals): Likewise.
2008 * parse.c (parse_exp_in_context_1): Likewise.
2009 * printcmd.c (build_address_symbolic): likewise.
2010 (info_address_command): Likewise.
2011 symtab.c (find_function_start_sal): Likewise.
2012 (skip_prologue_sal): Likewise.
2013 (find_function_alias_target): Likewise.
2014 (find_gnu_ifunc): Likewise.
2015 * stack.c (find_frame_funname): Likewise.
2016 * symtab.c (fixup_symbol_section): Likewise.
2017 (find_function_start_sal): Likewise.
2018 (skip_prologue_sal): Likewsie.
2019 (find_function_alias_target): Likewise.
2020 (find_gnu_ifunc): Likewise.
2021 * tracepoint.c (info_scope_command): Likewise.
2022 * value.c (value_fn_field): Likewise.
2023
2024 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2025 in place of find_pc_partial_function.
2026 * blockframe.c (find_function_entry_range_from_pc): New function.
2027 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2028 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2029 for each range in a block.
2030
2031
2032 2018-08-23 Xavier Roirand <roirand@adacore.com>
2033
2034 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2035 incrementation.
2036
2037 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2038
2039 * solib-svr4.c (read_program_headers_from_bfd): Return
2040 gdb::optional<gdb::byte_vector>.
2041 (svr4_exec_displacement): Adjust.
2042
2043 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2044
2045 * solib-svr4.c (read_program_header): Return
2046 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2047 (find_program_interpreter): Return
2048 gdb::optional<gdb::byte_vector>.
2049 (scan_dyntag_auxv): Adjust.
2050 (enable_break): Adjust.
2051 (svr4_exec_displacement): Adjust.
2052
2053 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2054
2055 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2056 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2057
2058 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2059
2060 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2061 string_vprintf.
2062 * guile/scm-utils.c (gdbscm_printf): Likewise.
2063 * serial.c (serial_printf): Likewise.
2064 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2065
2066 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2067
2068 * stack.c (print_frame): Print frame architecture when printing on
2069 an MI output.
2070 * NEWS: Mention new "arch" attribute in frame output.
2071
2072 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2073
2074 * arch/aarch64.h (aarch64_regnum): Update comment.
2075
2076 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2077
2078 * NEWS: Add SVE to 8.2 section.
2079
2080 2018-08-21 Pedro Alves <palves@redhat.com>
2081
2082 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2083 out from gdbscm_parse_function_args.
2084 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2085 gdbscm_parse_function_args_1.
2086
2087 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2088
2089 PR gdb/17816
2090 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2091 operator.
2092
2093 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2094
2095 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2096
2097 2018-08-19 Michael Spang <spang@google.com>
2098
2099 PR gdb/11786
2100 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2101 for PT_TLS segments.
2102
2103 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2104
2105 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2106 dwarf_variable_value.
2107 * dwarf2-frame.c (class dwarf_expr_executor):
2108 Add override for dwarf_variable_value.
2109 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2110 (class symbol_needs_eval_context): Likewise.
2111 (indirect_synthetic_pointer): Add forward declaration.
2112 (sect_variable_value): New function.
2113 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2114 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2115 for DW_OP_GNU_variable_value.
2116
2117 2018-08-16 Tom Tromey <tom@tromey.com>
2118
2119 * top.c (read_command_file): Update.
2120 (command_line_input): Remove "repeat" argument.
2121 * ada-lang.c (get_selections): Update.
2122 * linespec.c (decode_line_2): Update.
2123 * defs.h (command_line_input): Remove argument.
2124 * cli/cli-script.c (read_next_line): Update.
2125 * python/py-gdb-readline.c: Update.
2126
2127 2018-08-17 Tom Tromey <tom@tromey.com>
2128
2129 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2130 command_line_input.
2131
2132 2018-08-15 Tom Tromey <tom@tromey.com>
2133
2134 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2135
2136 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2137
2138 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2139 If used, use find_pc_partial_function to find address range
2140 to disassemble.
2141 * mi/mi-main.c (mi_cmd_list_features): Report
2142 "data-disassemble-a-option" feature.
2143 * NEWS: Mention new -data-disassemble option -a.
2144
2145 2018-08-13 Tom Tromey <tom@tromey.com>
2146
2147 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2148
2149 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2150
2151 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2152 (aarch64_linux_collect_sve_regset): Likewise.
2153 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2154 * regcache.h (regcache_map_entry_size): New function.
2155
2156 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2157
2158 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2159 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2160 (SVE_HEADER_VL_LENGTH): Likewise.
2161 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2162 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2163 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2164 (SVE_HEADER_SIZE_OFFSET): Likewise.
2165 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2166 (SVE_HEADER_VL_OFFSET): Likewise.
2167 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2168 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2169 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2170 (SVE_HEADER_SIZE): Likewise.
2171 (aarch64_linux_core_read_vq): Add function.
2172 (aarch64_linux_core_read_description): Check for SVE section.
2173
2174 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2175
2176 * aarch64-fbsd-tdep.c
2177 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2178 collect_size.
2179 * aarch64-linux-tdep.c
2180 (aarch64_linux_iterate_over_regset_sections): Likewise.
2181 * alpha-linux-tdep.c
2182 (alpha_linux_iterate_over_regset_sections):
2183 * alpha-nbsd-tdep.c
2184 (alphanbsd_iterate_over_regset_sections): Likewise.
2185 * amd64-fbsd-tdep.c
2186 (amd64fbsd_iterate_over_regset_sections): Likewise.
2187 * amd64-linux-tdep.c
2188 (amd64_linux_iterate_over_regset_sections): Likewise.
2189 * arm-bsd-tdep.c
2190 (armbsd_iterate_over_regset_sections): Likewise.
2191 * arm-fbsd-tdep.c
2192 (arm_fbsd_iterate_over_regset_sections): Likewise.
2193 * arm-linux-tdep.c
2194 (arm_linux_iterate_over_regset_sections): Likewise.
2195 * corelow.c (get_core_registers_cb): Likewise.
2196 (core_target::fetch_registers): Likewise.
2197 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2198 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2199 * gdbarch.h (void): Regenerate.
2200 * gdbarch.sh: Add supply_size and collect_size.
2201 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2202 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2203 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2204 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2205 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2206 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2207 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2208 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2209 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2210 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2211 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2212 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2213 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2214 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2215 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2216 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2217 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2218 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2219 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2220 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2221 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2222 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2223 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2224 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2225 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2226 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2227 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2228 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2229 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2230 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2231
2232 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2233
2234 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2235 with string_printf.
2236
2237 2018-08-10 Keith Seitz <keiths@redhat.com>
2238
2239 * compile/compile-c-support.c (add_code_header, add_code_footer):
2240 Move into policy class.
2241 (c_push_user_expression, pop_user_expression_nop)
2242 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2243 (compile_program): New host class.
2244 (c_compile_program): New typedef.
2245 (c_compute_porgram): Use c_compile_program.
2246
2247 2018-08-10 Keith Seitz <keiths@redhat.com>
2248
2249 * compile/compile-internal.h (compile_instance::~compile_instance):
2250 Remove calls to htab_delete.
2251 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2252 * compile.c (compile_instance::compile_instance): Initialize
2253 htab unique pointers.
2254 (compile_instance::get_cached_type, compile_instance::insert_type)
2255 (compile_instance::error_symbol_once): Update for unique_ptr.
2256
2257 2018-08-10 Keith Seitz <keiths@redhat.com>
2258
2259 * compile/compile-c-symbols.c (struct symbol_error)
2260 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2261 (compile_instance::insert_symbol_error)
2262 (compile_instance::error_symbol_once): Move to ...
2263 * compile/compile.c: ... here.
2264
2265 2018-08-10 Keith Seitz <keiths@redhat.com>
2266
2267 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2268 instead of `new_compile_instance'.
2269 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2270 Update description.
2271 If the symbol error map is not initialized, create it.
2272 (generate_c_for_for_one_symbol): Do not check/initialize
2273 the symbol error map.
2274 * compile/compile-c-types.c (compile_c_instance): Make a class.
2275 Update all callers.
2276 (compile_instance::compile_instance): Initialize the type cache.
2277 (get_cached_type): New function.
2278 (insert_type): Update description.
2279 (compile_c_instance::m_default_cflags): Define.
2280 (convert_type): Update description. Use get_cached_type.
2281 (delete_instance): Moved to destructor.
2282 (new_compile_instance): Moved to constructor.
2283 * compile/compile-c.h (compile_c_instance): Make class inheriting
2284 from compile_instance.
2285 <base>: Remove field.
2286 <type_map, symbol_err_map>: Move to base class.
2287 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2288 * compile/compile-internal.h (compile_instance): Make class.
2289 <type_map_t, symbol_err_map_t>: Define.
2290 <fe>: Rename to `m_gcc_fe'.
2291 <scope, block, gcc_target_options>: Add `m_' prefix.
2292 <m_type_map, m_symbol_err_map>: New fields, moved from
2293 compile_c_instance.
2294 <destroy>: Remove.
2295 (convert_type, new_compile_instance): Remove.
2296 * compile/compile.c (cleanup_compile_instance): Remove.
2297 (compile_to_object): Use unique_ptr to eliminate cleanups.
2298 (compile_instance::set_print_callback, compile_instance::version)
2299 (compile_instance::set_verbose)
2300 (compile_instance::set_driver_filename)
2301 (compile_instance::set_triplet_regexp)
2302 (compile_instance::set_arguments)
2303 (compile_instance::set_source_file)
2304 (compile_instance::compile): Define.
2305
2306 2018-08-10 Keith Seitz <keiths@redhat.com>
2307
2308 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2309 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2310 gcc-c-fe.def to define C plugin.
2311 (delete_instance): Delete `c_plugin'.
2312 (new_compile_instance): Initialize `c_plugin'.
2313 * compile/compile-c.h: Include gcc_c_plugin.h.
2314 (struct compile_c_instance) <c_plugin>: New member.
2315 * gcc-c-plugin.h: New file.
2316 Update all callers with API change.
2317
2318 2018-08-10 Keith Seitz <keiths@redhat.com>
2319
2320 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2321 (HFILES_NO_SRCDIR): ... to here.
2322 Add compile-internal.h and compile-c.h.
2323 * compile/compile-c-support.c: Include compile-c.h.
2324 * compile/compile-c-symbols.c: Include compile-c.h.
2325 (generate_c_for_variable_locations): Update comment.
2326 * compile/compile-c-types.c: Include compile-c.h.
2327 * compile/compile-c.h: New file -- moved C language declarations
2328 from other files here.
2329 * compile/compile-internal.h: Do not include hashtab.h or
2330 common/enum-flags.h.
2331 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2332 (gcc_convert_symbol, gcc_symbol_address)
2333 (generate_c_for_variable_locations, c_get_mode_for_size)
2334 (c_get_range_decl_name): Definitions moved to compile-c.h.
2335 * compile/compile-loc2c.c: Include compile-c.h.
2336
2337 2018-08-10 Keith Seitz <keiths@redhat.com>
2338
2339 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2340 (c_symbol_substitution_name): ... this.
2341 Update all callers.
2342
2343 2018-08-10 Keith Seitz <keiths@redhat.com>
2344
2345 * compile/compile-c-support.c (c_compute_program): Use
2346 unique_xmalloc_ptr to eliminate cleanup.
2347 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2348 Return a unique_xmalloc_ptr and eliminate cleanup.
2349 * compile/compile-internal.h (generate_c_for_variable_locations):
2350 Return unique_xmalloc_ptr and update description.
2351
2352 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2353
2354 * corelow.c (core_target::get_core_register_section): Rename
2355 min_size to section_min_size.
2356
2357 2018-08-09 Jim Wilson <jimw@sifive.com>
2358
2359 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2360 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2361 * NEWS: Mention new GNU/Linux RISC-V target.
2362 * configure.host: Add riscv*-*-linux*.
2363 * configure.nat: Add riscv*.
2364 * configure.tgt: Add riscv*-*-linux*.
2365 * riscv-linux-nat.c: New file.
2366 * riscv-linux-tdep.c: New file.
2367
2368 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2369
2370 * infrun.c (resume): Make static, add forward declaration.
2371 (proceed): Update header comment.
2372 * infrun.h (resume): Delete declaration.
2373
2374 2018-08-09 Tom Tromey <tom@tromey.com>
2375
2376 * riscv-tdep.h: Minor formatting fixes.
2377
2378 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2379
2380 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2381 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2382 (test_mkdir_recursive): Likewise.
2383 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2384
2385 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2386
2387 * valarith.c (value_subscripted_rvalue): If an array is not in
2388 memory, and we don't know the upper bound, then we can't know that
2389 the requested element exists or not.
2390
2391 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2392
2393 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2394 (target_options_to_string): Add comment.
2395
2396 2018-08-08 Tom Tromey <tom@tromey.com>
2397
2398 * unittests/scoped_mmap-selftests.c: Check result of "write".
2399
2400 2018-08-08 Jim Wilson <jimw@sifive.com>
2401
2402 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2403 (decode_register_index_short): New.
2404 (decode_j_type_insn, decode_cj_type_insn): New.
2405 (decode_b_type_insn, decode_cb_type_insn): New.
2406 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2407 local xlen. Check xlen when decoding ambiguous compressed insns. In
2408 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2409 is_c_sw_insn instead of is_sw_insn.
2410 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2411 (riscv_software_single_step): New.
2412 * riscv-tdep.h (riscv_software_single_step): Declare.
2413
2414 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2415 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2416
2417 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2418
2419 PR gdb/18050:
2420 * target.c (dispose_inferior): Don't dispose of inferiors that are
2421 already killed.
2422
2423 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2424
2425 * remote.c (remote_target::download_tracepoint): Change char* to
2426 const char*.
2427
2428 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2429
2430 * target.h (target_options_to_string): Return an std::string.
2431 * target.c (str_comma_list_concat_elem): Return void, use
2432 std::string.
2433 (do_option): Likewise.
2434 (target_options_to_string): Return an std::string.
2435 * linux-nat.c (linux_nat_target::wait): Adjust.
2436 * target-debug.h (target_debug_print_options): Adjust.
2437
2438 2018-08-07 Tom Tromey <tom@tromey.com>
2439
2440 * Makefile.in (CPPFLAGS): New variable.
2441 (INTERNAL_CPPFLAGS): Use it.
2442
2443 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2444
2445 * NEWS: Mention the index cache.
2446
2447 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2448
2449 * common/pathstuff.h (get_standard_cache_dir): New.
2450 * common/pathstuff.c (get_standard_cache_dir): New.
2451 * build-id.h (build_id_to_string): New.
2452 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2453 DEBUG_STR_SUFFIX): Move to here.
2454 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2455 DEBUG_STR_SUFFIX): Move from there.
2456 (write_psymtabs_to_index): Make non-static, add basename
2457 parameter. Write to temporary files, rename when done.
2458 (save_gdb_index_command): Adjust call to
2459 write_psymtabs_to_index.
2460 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2461 field.
2462 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2463 (get_gdb_index_contents_from_cache): New.
2464 (get_gdb_index_contents_from_cache_dwz): New.
2465 (dwarf2_initialize_objfile): Read index from cache.
2466 (dwarf2_build_psymtabs): Save to index.
2467 * dwarf-index-cache.h: New file.
2468 * dwarf-index-cache.c: New file.
2469 * dwarf-index-write.h: New file.
2470
2471 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2472
2473 * gnulib/aclocal.m4: Re-generate.
2474 * gnulib/config.in: Re-generate.
2475 * gnulib/configure: Re-generate.
2476 * gnulib/import/Makefile.am: Re-generate.
2477 * gnulib/import/Makefile.in: Re-generate.
2478 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2479 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2480 * gnulib/import/m4/mkdir.m4: New file.
2481 * gnulib/import/mkdir.c: New file.
2482 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2483 module.
2484
2485 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2486
2487 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2488 * common/scoped_mmap.c: New file.
2489 * common/scoped_mmap.h (destroy): New method.
2490 (~scoped_mmap, reset): Use destroy.
2491 (scoped_mmap): New move constructor.
2492 (mmap_file): New declaration.
2493 * unittests/scoped_mmap-selftests.c (test_normal,
2494 test_invalid_filename, run_tests): New functions.
2495 (_initialize_scoped_mmap_selftests): Register selftest.
2496
2497 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2498
2499 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2500 (read_gdb_index_from_buffer): ... this. Remove section
2501 parameter, add buffer parameter.
2502 (get_gdb_index_contents_ftype,
2503 get_gdb_index_contents_dwz_ftype): New typedefs.
2504 (dwarf2_read_gdb_index): Add callback parameters to get the
2505 index contents.
2506 (get_gdb_index_contents_from_section): New.
2507 (dwarf2_initialize_objfile): Update call to
2508 dwarf2_read_gdb_index.
2509
2510 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2511
2512 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2513 (gdb_open_cloexec): Likewise.
2514 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2515 (commandline_from_pid): Likewise.
2516 (linux_xfer_osdata_threads): Likewise.
2517 (linux_xfer_osdata_fds): Likewise.
2518 * ada-lang.c (is_package_name): Likewise.
2519 * auxv.c (procfs_xfer_auxv): Likewise.
2520 * breakpoint.c (print_one_breakpoint_location): Use
2521 uiout::field_fmt.
2522 (print_one_catch_solib): Use string_printf.
2523 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2524 (add_pe_forwarded_sym): Likewise.
2525 * dwarf2read.c (create_type_unit_group): Likewise.
2526 (build_error_marker_type): Likewise.
2527 * infcall.c (get_function_name): Likewise.
2528 * valprint.c (print_converted_chars_to_obstack): Likewise.
2529 * xtensa-tdep.c (xtensa_register_type): Likewise.
2530
2531 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2532
2533 * remote.c (remote_target::download_tracepoint): Fix format
2534 string errors.
2535
2536 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2537
2538 * tracefile.c: Include common/byte-vector.h.
2539 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2540 with trace_regblock_size if needed. Update uses of buf.
2541
2542 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2543
2544 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2545 std::vector<unsigned char>.
2546 * tracepoint.c (collection_list::collection_list): Remove
2547 m_regs_mask initializer from initializer list. Resize
2548 m_regs_mask using the largest remote register number.
2549 (collection_list::add_remote_register): Remove size check on
2550 m_regs_mask. Use at to access element.
2551 (collection_list::stringify): Change type of temp_buf to
2552 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2553 stringify the register mask. Use pack_hex_byte for the register
2554 mask.
2555
2556 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2557
2558 * tracepoint.h (class collection_list) <add_register>: Remove.
2559 <add_remote_register, add_ax_registers, add_local_register>:
2560 Declare.
2561 <add_memrange>: Add scope parameter.
2562 * tracepoint.c (encode_actions_1): Likewise.
2563 (collection_list::add_register): Rename to ...
2564 (collection_list::add_remote_register): ... this. Update
2565 comment.
2566 (collection_list::add_ax_registers, add_local_register): New
2567 methods.
2568 (collection_list::add_memrange): Add scope parameter. Call
2569 add_local_register instead of add_register.
2570 (finalize_tracepoint_aexpr): New function.
2571 (collection_list::collect_symbol): Update calls to add_memrange.
2572 Call add_local_register instead of add_register. Call
2573 add_ax_registers. Call finalize_tracepoint_aexpr.
2574 (encode_actions_1): Get remote regnos for $reg action. Call
2575 add_remote_register, add_ax_registers, and add_local_register.
2576 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2577 (validate_actionline): Call finalize_tracepoint_aexpr.
2578
2579 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2580
2581 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2582 Replace array buf with gdb::char_vector buf, of size
2583 get_remote_packet_size (). Replace references to buf and
2584 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2585 and xsnprintf with snprintf. Raise errors if the buffer is too
2586 small.
2587
2588 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2589
2590 * remote.c (remote_target::download_tracepoint): Fix the has_more
2591 predicate in the QTDP action list iteration.
2592
2593 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2594
2595 * remote.c (remote_target::download_tracepoint): Fix indentation
2596 in for block.
2597
2598 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2599
2600 * proc-api.c (_initialize_proc_api): Remove c, unused.
2601 * procfs.c (procfs_init_inferior): Remove signals, unused.
2602 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2603 unused.
2604
2605 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2606 Andrew Burgess <andrew.burgess@embecosm.com>
2607
2608 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2609 'W_STOPCODE (0)' as this could be ambiguous.
2610
2611 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2612
2613 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2614 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2615 "ai_socktype").
2616
2617 2018-08-02 Tom Tromey <tom@tromey.com>
2618
2619 PR symtab/16842.
2620 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2621 symbols.
2622 (process_structure_scope): Likewise.
2623
2624 2018-08-02 Xavier Roirand <roirand@adacore.com>
2625
2626 PR gdb/22629:
2627 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2628 kill inferior.
2629
2630 2018-08-02 Tom Tromey <tom@tromey.com>
2631
2632 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2633 (darwin_suspend_inferior, darwin_resume_inferior)
2634 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2635 (darwin_check_new_threads): Check result of get_darwin_inferior.
2636
2637 2018-07-31 Joel Brobecker <brobecker@adacore.com>
2638
2639 GDB 8.1.1 released.
2640
2641 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2642
2643 * varobj.c (varobj_get_path_expr_parent): Report an error if
2644 parent is a dynamic varobj.
2645
2646 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2647
2648 * gnulib/aclocal.m4: Re-generate.
2649 * gnulib/config.in: Re-generate.
2650 * gnulib/configure: Re-generate.
2651 * gnulib/import/Makefile.in: Re-generate.
2652 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2653 * gnulib/import/m4/onceonly.m4: Re-generate.
2654
2655 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2656
2657 * target-descriptions.c (struct xml_test_tdesc): New.
2658 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2659 (record_xml_tdesc): Update.
2660 (maintenance_check_xml_descriptions): Update.
2661 * target-descriptions.h (record_xml_tdesc): Update comment.
2662
2663 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2664
2665 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2666 checking array bounds are defined.
2667
2668 2018-07-30 Tom Tromey <tom@tromey.com>
2669
2670 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2671 irreflexivity violation.
2672
2673 2018-07-30 Tom Tromey <tom@tromey.com>
2674
2675 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2676 * value.c (unpack_long): Remove lint code.
2677 * valops.c (value_ind): Remove lint code.
2678 * valarith.c (value_x_binop, value_x_unop, value_equal)
2679 (value_pos): Remove lint code.
2680
2681 2018-07-28 Tom de Vries <tdevries@suse.de>
2682
2683 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2684 with undefined upper bound as <optimized out>.
2685
2686 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2687
2688 * gcore.in: Rename variable "name" to "prefix". Expand
2689 "usage" text.
2690
2691 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2692
2693 * windows-nat.c (windows_nat_target::create_inferior): Update to
2694 call close() in global namespace.
2695
2696 2018-07-26 Tom Tromey <tom@tromey.com>
2697
2698 * dwarf-index-write.c (add_address_entry): Don't add objfile
2699 offsets.
2700 * dbxread.c (find_stab_function): Rename from
2701 find_stab_function_addr. Return a bound_minimal_symbol.
2702 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2703 Don't add objfile offsets.
2704 (end_psymtab): Use raw_text_low, raw_text_high,
2705 MSYMBOL_VALUE_RAW_ADDRESS.
2706 (read_ofile_symtab): Update.
2707 (process_one_symbol): Update.
2708 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2709 offsets.
2710 (dw2_relocate): Remove.
2711 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2712 searching addrmap.
2713 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2714 Update.
2715 (process_psymtab_comp_unit_reader, add_partial_symbol)
2716 (add_partial_subprogram, dwarf2_ranges_read): Update.
2717 (load_partial_dies): Update.
2718 (add_address_entry): Don't add objfile offsets.
2719 (dwarf2_build_include_psymtabs): Update.
2720 (create_addrmap_from_aranges): Don't add objfile offsets.
2721 (dw2_find_pc_sect_compunit_symtab): Update.
2722 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2723 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2724 Update.
2725 (parse_partial_symbols): Don't add objfile offsets. Use
2726 raw_text_low, raw_text_high. Update.
2727 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2728 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2729 or call 'relocate' quick function. Clear psymbol_map.
2730 * psympriv.h (struct partial_symbol) <address>: Add section
2731 offset.
2732 <set_unrelocated_address>: Rename from set_address.
2733 <raw_text_low, raw_text_high>: New methods.
2734 <text_low, text_high>: Add objfile parameter.
2735 (add_psymbol_to_bcache): Add 'section' parameter. Call
2736 set_unrelocated_address.
2737 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2738 (find_pc_psymbol): Update.
2739 (fixup_psymbol_section, relocate_psymtabs): Remove.
2740 (dump_psymtab, psym_functions): Update.
2741 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2742 parameter.
2743 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2744 (start_psymtab_common): Update.
2745 * symfile-debug.c (debug_qf_relocate): Remove.
2746 (debug_sym_quick_functions): Update.
2747 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2748 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2749 Update.
2750
2751 2018-07-26 Tom Tromey <tromey@redhat.com>
2752
2753 * dbxread.c (end_psymtab): Use text_high_valid and
2754 text_low_valid.
2755 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2756 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2757 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2758 Update comment.
2759 <text_low_valid, text_high_valid>: New fields.
2760 <set_text_low, set_text_high>: Update.
2761 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2762
2763 2018-07-26 Tom Tromey <tom@tromey.com>
2764
2765 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2766 Update.
2767 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2768 textlow and texthigh fields.
2769 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2770 Update.
2771 * mdebugread.c (parse_lines, parse_partial_symbols)
2772 (psymtab_to_symtab_1): Update.
2773 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2774 Rename fields. Update comment. Now private.
2775 <text_low, text_high, set_text_low, set_text_high>: New methods.
2776 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2777 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2778 (start_psymtab_common, maintenance_info_psymtabs)
2779 (maintenance_check_psymtabs): Update.
2780 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2781 texthigh fields.
2782 (scan_xcoff_symtab): Update.
2783
2784 2018-07-26 Tom Tromey <tromey@redhat.com>
2785
2786 * psympriv.h (struct partial_symbol) <unrelocated_address,
2787 address, set_address>: New methods.
2788 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2789 (fixup_psymbol_section, relocate_psymtabs): Update.
2790 (print_partial_symbols): Add 'objfile' parameter. Update.
2791 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2792 Update.
2793
2794 2018-07-26 Tom Tromey <tom@tromey.com>
2795
2796 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2797 (debug_names::write_psymbols): Update.
2798 * psympriv.h (struct partial_symbol): Derive from
2799 general_symbol_info.
2800 <obj_section>: New method.
2801 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2802 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2803 (find_pc_sect_psymbol, fixup_psymbol_section)
2804 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2805 (print_partial_symbols, recursively_search_psymtabs)
2806 (compare_psymbols, psymbol_hash, psymbol_compare)
2807 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2808 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2809
2810 2018-07-26 Tom Tromey <tromey@redhat.com>
2811
2812 * dbxread.c (end_psymtab): Remove dead code.
2813
2814 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2815
2816 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2817 DWARF unwinders are disabled.
2818 * dwarf2-frame.c: Add dwarf2read.h include.
2819 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2820 disabled.
2821 (dwarf2_frame_unwinders_enabled_p): Define.
2822 (show_dwarf_unwinders_enabled_p): New function.
2823 (_initialize_dwarf2_frame): Register switch to control DWARF
2824 unwinder use.
2825 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2826 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2827 (show_dwarf_cmdlist): Remove static keyword.
2828 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2829 (show_dwarf_cmdlist): Declare.
2830 * NEWS: Document new feature.
2831
2832 2018-07-26 Tom de Vries <tdevries@suse.de>
2833
2834 PR breakpoints/23366
2835 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2836
2837 2018-07-26 Tom de Vries <tdevries@suse.de>
2838
2839 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2840 DW_AT_count can't be translated to a dynamic prop.
2841
2842 2018-07-25 Tom de Vries <tdevries@suse.de>
2843
2844 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2845 try/catch.
2846
2847 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2848
2849 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2850
2851 2018-07-25 Joel Brobecker <brobecker@adacore.com>
2852
2853 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2854
2855 2018-07-24 Keith Seitz <keiths@redhat.comt
2856
2857 PR symtab/23010
2858 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2859 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2860 instead of add_symbol_to_list.
2861 (read_file_scope): Call prepare_one_comp_unit before reading
2862 any other DIEs.
2863
2864 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2865
2866 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2867
2868 2018-07-24 Tom Tromey <tom@tromey.com>
2869
2870 * utils.c (malloc, realloc, free): Don't declare.
2871 * configure, config.in: Rebuild.
2872 * configure.ac: Don't check for declarations of free, malloc, or
2873 realloc.
2874
2875 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2876
2877 * aarch64-linux-nat.c
2878 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2879 variable.
2880 * arm-linux-nat.c (fetch_regs): Likewise.
2881 (store_regs): Likewise.
2882 (fetch_vfp_regs): Likewise.
2883 (store_vfp_regs): Likewise.
2884 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2885 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2886 (arm_linux_nat_target::insert_watchpoint): Likewise.
2887 (arm_linux_nat_target::remove_watchpoint): Likewise.
2888 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2889 Likewise.
2890 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2891 Likewise.
2892 * ppc-linux-nat.c (fetch_register): Likewise.
2893 (fetch_all_gp_regs): Likewise.
2894 (fetch_ppc_registers): Likewise.
2895 (store_all_gp_regs): Likewise.
2896 (store_ppc_registers): Likewise.
2897 (hwdebug_insert_point): Likewise.
2898 (can_use_watchpoint_cond_accel): Likewise.
2899 * remote-sim.c (gdb_os_write_stdout): Likewise.
2900
2901 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2902 Tom Tromey <tom@tromey.com>
2903
2904 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
2905 test for it.
2906 * configure: Rebuild.
2907
2908 2018-07-22 Tom Tromey <tom@tromey.com>
2909
2910 * regformats/regdat.sh: Define xmltarget_${name} inside
2911 #ifndef IN_PROCESS_AGENT.
2912
2913 2018-07-22 Tom Tromey <tom@tromey.com>
2914
2915 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
2916
2917 2018-07-22 Tom Tromey <tom@tromey.com>
2918
2919 * symfile.c (reread_symbols): Notify iter, not objfile.
2920
2921 2018-07-22 Tom Tromey <tom@tromey.com>
2922
2923 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
2924 Use arch_ops.
2925 (ravenscar_thread_target::prepare_to_store): Likewise.
2926
2927 2018-07-22 Tom Tromey <tom@tromey.com>
2928
2929 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
2930 unused variable. Call value_fetch_lazy when needed.
2931 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2932 Remove unused variable. Call value_fetch_lazy when needed.
2933
2934 2018-07-22 Tom Tromey <tom@tromey.com>
2935
2936 * m32c-tdep.c (mark_dma): Return void.
2937 (make_regs): Remove unused declarations.
2938
2939 2018-07-22 Tom Tromey <tom@tromey.com>
2940
2941 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
2942 cmdscm_get_valid_command_smob_arg_unsafe for effect.
2943 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
2944 bkscm_get_valid_block_smob_arg_unsafe for effect.
2945
2946 2018-07-22 Tom Tromey <tom@tromey.com>
2947
2948 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
2949 value_type.
2950
2951 2018-07-22 Tom Tromey <tom@tromey.com>
2952
2953 * windows-nat.c (saved_context): Conditionally define.
2954 * remote.c (remote_target::remote_btrace_maybe_reopen):
2955 Conditionally declare "warned".
2956 * inflow.c (sigquit_ours): Conditionally define.
2957 (new_tty): Move "tty" declaration inside #if.
2958 * guile/guile.c (guile_datadir): Conditionally define.
2959 * charset.c (set_be_le_names): Move some declarations inside #if.
2960 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
2961 #if.
2962 (parse_xml_btrace_conf): Likewise.
2963
2964 2018-07-22 Tom Tromey <tom@tromey.com>
2965
2966 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
2967
2968 2018-07-22 Tom Tromey <tom@tromey.com>
2969
2970 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
2971 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
2972 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
2973 * buildsym-legacy.c (get_macro_table): Remove unused variable.
2974 * stack.c (frame_apply_level_command): Remove unused variable.
2975 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
2976 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
2977 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
2978 unused variable.
2979 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
2980 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
2981 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
2982 variable.
2983 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
2984 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
2985 variable.
2986 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
2987 Remove unused variable.
2988 * cli/cli-script.c (recurse_read_control_structure): Remove unused
2989 variable.
2990 * common/tdesc.c (print_xml_feature::visit): Remove unused
2991 variable.
2992 * compile/compile-object-load.c (store_regs): Remove unused
2993 variables.
2994 * complaints.c (clear_complaints): Remove unused variable.
2995 * corelow.c (core_target_open): Remove unused variable.
2996 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
2997 variable.
2998 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
2999 variable.
3000 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3001 variable.
3002 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3003 variable.
3004 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3005 variable.
3006 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3007 variable.
3008 * ia64-tdep.c (examine_prologue): Remove unused variable.
3009 * infcall.c (run_inferior_call): Remove unused variable.
3010 * inferior.c (exit_inferior): Remove unused variable.
3011 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3012 * linespec.c (decode_line_2): Remove unused variable.
3013 * linux-nat.c (super_close): Remove.
3014 * linux-tdep.c (linux_info_proc): Remove unused variable.
3015 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3016 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3017 Remove unused variable.
3018 * parse.c (find_minsym_type_and_address): Remove unused variable.
3019 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3020 variable.
3021 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3022 variable.
3023 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3024 variables.
3025 * record-btrace.c (record_btrace_target::store_registers): Remove
3026 unused variable.
3027 (cmd_show_record_btrace_cpu): Remove unused variable.
3028 * riscv-tdep.c (riscv_register_reggroup_p)
3029 (riscv_push_dummy_call, riscv_return_value): Remove unused
3030 variable.
3031 * rust-exp.y (literal): Remove unused variable.
3032 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3033 unused variable.
3034 <STRUCTOP_ANONYMOUS>: Likewise.
3035 * s390-linux-tdep.c (s390_linux_init_abi_31)
3036 (s390_linux_init_abi_64): Remove unused variable.
3037 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3038 (file_select_thread, net_windows_open, _initialize_ser_windows):
3039 Remove unused variables.
3040 * symtab.c (find_pc_sect_line): Remove unused variable.
3041 * target-memory.c (compute_garbled_blocks): Remove unused
3042 variable.
3043 (target_write_memory_blocks): Remove unused variable.
3044 * target.c (target_stack::unpush): Remove unused variables.
3045 * tracepoint.c (start_tracing, all_tracepoint_actions)
3046 (merge_uploaded_trace_state_variables)
3047 (print_one_static_tracepoint_marker): Remove unused variable.
3048 * unittests/basic_string_view/element_access/char/1.cc (test01):
3049 Remove unused variable.
3050 * windows-nat.c (windows_continue, windows_add_all_dlls)
3051 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3052 Remove unused variables.
3053
3054 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3055
3056 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3057 attr_profile in HAVE_ELF.
3058 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3059 HAVE_ELF.
3060
3061 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3062
3063 * frame.c (frame_register_unwind): Change parameter name.
3064 (frame_unwind_register): Likewise.
3065 (frame_unwind_register_value): Likewise.
3066 (frame_unwind_register_signed): Likewise.
3067 (frame_unwind_register_unsigned): Likewise.
3068 * frame.h (frame_register_unwind): Likewise.
3069 (frame_unwind_register): Likewise.
3070 (frame_unwind_register_value): Likewise.
3071 (frame_unwind_register_signed): Likewise.
3072 (frame_unwind_register_unsigned): Likewise.
3073 (frame_unwind_arch): Likewise.
3074
3075 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3076
3077 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3078 ISA maintenance.
3079
3080 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3081
3082 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3083 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3084 hand.
3085
3086 2018-07-20 Keith Seitz <keiths@redhat.com>
3087
3088 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3089 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3090 m_compunit_symtab, m_language>: Add "m_" prefix.
3091 Update all uses.
3092 * buildsym.c: Update all uses.
3093
3094 2018-07-20 Tom Tromey <tom@tromey.com>
3095
3096 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3097 * buildsym.h (record_line_ftype): Remove typedef.
3098
3099 2018-07-20 Tom Tromey <tom@tromey.com>
3100
3101 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3102 (end_expandable_symtab): Likewise.
3103 (end_symtab_get_static_block): Likewise.
3104 (end_symtab_from_static_block): Likewise.
3105 * buildsym-legacy.c (augment_type_symtab): Remove.
3106 (end_expandable_symtab): Remove.
3107 (end_symtab_get_static_block): Remove.
3108 (end_symtab_from_static_block): Remove.
3109
3110 2018-07-20 Tom Tromey <tom@tromey.com>
3111
3112 * dwarf2read.c: Include buildsym.h.
3113 (struct dwarf2_cu) <builder>: New method.
3114 (fixup_go_packaging): Update.
3115 (process_full_comp_unit, process_full_type_unit): Update. Don't
3116 use scoped_free_pendings.
3117 (using_directives): Add "cu" parameter, remove "language".
3118 (read_import_statement, setup_type_unit_groups, )
3119 (read_func_scope, read_lexical_block_scope)
3120 (dwarf2_record_block_ranges, read_namespace): Update.
3121 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3122 (lnp_state_machine::handle_end_sequence): Update.
3123 (class lnp_state_machine) <m_cu>: New member.
3124 <m_record_line_callback>: Remove.
3125 <m_currently_recording_lines>: New member.
3126 (lnp_state_machine::handle_set_file): Update.
3127 (noop_record_line): Remove.
3128 (dwarf_record_line_p): Add cu parameter.
3129 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3130 (lnp_state_machine::record_line)
3131 (lnp_state_machine::lnp_state_machine)
3132 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3133 (dwarf_decode_lines): Update.
3134 (dwarf2_start_subfile): Add cu parameter.
3135 (dwarf2_start_symtab, new_symbol): Update.
3136 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3137 Remove dwarf2_per_objfile parameter.
3138 (dwarf_decode_macros): Update.
3139
3140 2018-07-20 Tom Tromey <tom@tromey.com>
3141
3142 * stabsread.c (define_symbol): Update.
3143 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3144 * dwarf2read.c (new_symbol): Update.
3145 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3146 * cp-namespace.c: Include buildsym.h.
3147 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3148 * buildsym-legacy.c (get_buildsym_compunit): New function.
3149
3150 2018-07-20 Tom Tromey <tom@tromey.com>
3151
3152 * xcoffread.c: Include buildsym-legacy.h.
3153 * windows-nat.c: Include buildsym-legacy.h.
3154 * stabsread.c: Include buildsym-legacy.h.
3155 * mdebugread.c: Include buildsym-legacy.h.
3156 * buildsym-legacy.h: New file.
3157 * buildsym-legacy.c: New file, from buildsym.c.
3158 * go32-nat.c: Include buildsym-legacy.h.
3159 * dwarf2read.c: Include buildsym-legacy.h.
3160 * dbxread.c: Include buildsym-legacy.h.
3161 * cp-namespace.c: Include buildsym-legacy.h.
3162 * coffread.c: Include buildsym-legacy.h.
3163 * buildsym.h: Move some contents to buildsym-legacy.h.
3164 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3165 buildsym-legacy.c.
3166 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3167
3168 2018-07-20 Tom Tromey <tom@tromey.com>
3169
3170 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3171 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3172 (buildsym_compunit::buildsym_compunit)
3173 (buildsym_compunit::~buildsym_compunit)
3174 (buildsym_compunit::get_macro_table): Define.
3175
3176 2018-07-20 Tom Tromey <tom@tromey.com>
3177
3178 * buildsym.c (reset_symtab_globals): Remove.
3179 (buildsym_compunit::end_symtab_from_static_block): Update.
3180 (buildsym_compunit::augment_type_symtab): Update.
3181 (end_symtab_from_static_block): Call free_buildsym_compunit.
3182 (augment_type_symtab, end_symtab, end_expandable_symtab):
3183 Likewise.
3184
3185 2018-07-20 Tom Tromey <tom@tromey.com>
3186
3187 * arch-utils.c: Do not include buildsym.h.
3188 * mipsread.c: Do not include buildsym.h.
3189 * machoread.c: Do not include buildsym.h.
3190 * elfread.c: Do not include buildsym.h.
3191
3192 2018-07-20 Tom Tromey <tom@tromey.com>
3193
3194 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3195 initialization.
3196 (buildsym_compunit): Add new constructor.
3197 (struct buildsym_compunit) <get_last_source_file, finish_block,
3198 record_block_range, start_subfile, patch_subfile_names,
3199 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3200 set_last_source_start_addr, get_last_source_start_addr,
3201 get_local_using_directives, set_local_using_directives,
3202 get_global_using_directives, outermost_context_p,
3203 get_current_context_stack, get_context_stack_depth,
3204 get_current_subfile, get_local_symbols, get_file_symbols,
3205 get_global_symbols, record_debugformat, record_producer,
3206 push_context, pop_context, end_symtab_get_static_block,
3207 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3208 New public methods.
3209 <record_pending_block, finish_block_internal, make_blockvector,
3210 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3211 private methods.
3212 Update all users.
3213
3214 2018-05-22 Tom Tromey <tom@tromey.com>
3215
3216 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3217 parameter.
3218 (finish_block_internal): Update.
3219
3220 2018-07-20 Tom Tromey <tom@tromey.com>
3221
3222 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3223 parameter.
3224 (finish_block_internal): Update.
3225
3226 2018-07-20 Tom Tromey <tom@tromey.com>
3227
3228 * buildsym.h (EXTERN): Don't define or undef.
3229 * buildsym.c (EXTERN): Don't define.
3230
3231 2018-07-20 Tom Tromey <tom@tromey.com>
3232
3233 * buildsym.c: Remove TODO comment.
3234
3235 2018-07-20 Tom Tromey <tom@tromey.com>
3236
3237 * coffread.c (coff_symtab_read): Update.
3238 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3239 (xcoff_new_init): Update.
3240 * mipsread.c (mipscoff_new_init): Update.
3241 * mdebugread.c (mdebug_build_psymtabs): Update.
3242 * elfread.c (elf_new_init): Update.
3243 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3244 Update.
3245 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3246 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3247 (stabsect_build_psymtabs): Update.
3248 * buildsym.h (buildsym_init): Don't declare.
3249 * buildsym.c: Update comment.
3250 (prepare_for_building): Remove.
3251 (start_symtab, restart_symtab): Update.
3252 (reset_symtab_globals): Update comment.
3253 (buildsym_init): Remove.
3254
3255 2018-07-20 Tom Tromey <tom@tromey.com>
3256
3257 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3258 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3259 (read_enum_type, common_block_start, common_block_end)
3260 (cleanup_undefined_types_1, finish_global_stabs): Update.
3261 * mdebugread.c (psymtab_to_symtab_1): Update.
3262 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3263 (read_lexical_block_scope, new_symbol): Update.
3264 * dbxread.c (process_one_symbol): Update.
3265 * coffread.c (coff_symtab_read, process_coff_symbol)
3266 (coff_read_enum_type): Update.
3267 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3268 declare.
3269 (get_local_symbols, get_file_symbols, get_global_symbols): New
3270 functions.
3271 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3272 m_global_symbols.
3273 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3274 (~scoped_free_pendings): Update.
3275 (finish_block, prepare_for_building, reset_symtab_globals)
3276 (end_symtab_get_static_block, end_symtab_with_blockvector)
3277 (augment_type_symtab, push_context): Update.
3278 (get_local_symbols, get_file_symbols, get_global_symbols): New
3279 functions.
3280 (buildsym_init): Update.
3281
3282 2018-07-20 Tom Tromey <tom@tromey.com>
3283
3284 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3285 (process_full_type_unit): Likewise.
3286 (dwarf2_start_symtab): Set list_in_scope.
3287
3288 2018-07-20 Tom Tromey <tom@tromey.com>
3289
3290 * dwarf2read.c (process_psymtab_comp_unit_reader)
3291 (build_type_psymtabs_reader): Do not set list_in_scope.
3292
3293 2018-07-20 Tom Tromey <tom@tromey.com>
3294
3295 * buildsym.c (free_pendings): Remove.
3296 (add_symbol_to_list, scoped_free_pendings)
3297 (finish_block_internal, buildsym_init): Update.
3298
3299 2018-07-20 Tom Tromey <tom@tromey.com>
3300
3301 * xcoffread.c (read_xcoff_symtab): Update.
3302 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3303 Update.
3304 * dbxread.c (process_one_symbol): Update.
3305 * coffread.c (coff_symtab_read): Update.
3306 * buildsym.h (finish_block): Update.
3307 * buildsym.c (finish_block): Remove "listhead" argument.
3308 (end_symtab_get_static_block): Update.
3309
3310 2018-07-20 Tom Tromey <tom@tromey.com>
3311
3312 * buildsym.h (class scoped_free_pendings): Remove constructor.
3313 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3314 method.
3315 <m_pending_block_obstack, m_pending_blocks>: New members.
3316 (pending_block_obstack, pending_blocks): Remove.
3317 (scoped_free_pendings::scoped_free_pendings): Default.
3318 (~scoped_free_pendings): Update.
3319 (free_pending_blocks): Remove.
3320 (finish_block_internal, record_pending_block, make_blockvector)
3321 (end_symtab_get_static_block, augment_type_symtab, push_context)
3322 (buildsym_init): Update.
3323
3324 2018-07-20 Tom Tromey <tom@tromey.com>
3325
3326 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3327 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3328 members.
3329 (pending_addrmap, pending_addrmap_obstack)
3330 (pending_addrmap_interesting): Remove.
3331 (scoped_free_pendings, record_block_range, make_blockvector)
3332 (prepare_for_building, reset_symtab_globals, buildsym_init):
3333 Update.
3334
3335 2018-07-20 Tom Tromey <tom@tromey.com>
3336
3337 * xcoffread.c (process_linenos): Update.
3338 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3339 * mdebugread.c (psymtab_to_symtab_1): Update.
3340 * dwarf2read.c (setup_type_unit_groups)
3341 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3342 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3343 * dbxread.c (process_one_symbol): Update.
3344 * coffread.c (coff_symtab_read, enter_linenos)
3345 (process_coff_symbol): Update.
3346 * buildsym.h (current_subfile): Don't declare.
3347 (get_current_subfile): Declare.
3348 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3349 member.
3350 (start_subfile, free_buildsym_compunit, push_subfile)
3351 (prepare_for_building, start_symtab): Update.
3352 (get_current_subfile): New function.
3353
3354 2018-07-20 Tom Tromey <tom@tromey.com>
3355
3356 * coffread.c (coff_symtab_read): Update.
3357 * xcoffread.c (read_xcoff_symtab): Update.
3358 * dwarf2read.c (new_symbol): Update.
3359 (read_func_scope, read_lexical_block_scope): Update.
3360 * dbxread.c (process_one_symbol): Update.
3361 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3362 (outermost_context_p): Remove macro.
3363 (outermost_context_p, get_current_context_stack)
3364 (get_context_stack_depth): Declare.
3365 (pop_context): Return struct context_stack.
3366 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3367 member.
3368 (context_stack_size): Remove.
3369 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3370 (prepare_for_building, end_symtab_get_static_block)
3371 (augment_type_symtab, push_context): Update.
3372 (pop_context): Return struct context_stack.
3373 (outermost_context_p, get_current_context_stack)
3374 (get_context_stack_depth): New functions.
3375 (buildsym_init): Update.
3376
3377 2018-07-20 Tom Tromey <tom@tromey.com>
3378
3379 * rust-exp.y: Now a pure parser. Update all rules.
3380 (%union): Move earlier.
3381 (current_parser, work_obstack): Remove globals.
3382 (rust_parser, ~rust_parser): Update.
3383 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3384 lex_character, lex_number, lex_string, lex_identifier,
3385 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3386 convert_name, convert_params_to_expression,
3387 convert_ast_to_expression, ast_basic_type, ast_operation,
3388 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3389 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3390 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3391 ast_array_type, ast_slice_type, ast_reference_type,
3392 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3393 (rust_parse): Update.
3394 (rustyyerror, rustyylex): Add parser parameter.
3395 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3396 (rust_lex_stringish_test, rust_lex_test_sequence)
3397 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3398 (rust_lex_test_push_back, rust_lex_tests): Update.
3399
3400 2018-07-19 Pedro Alves <palves@redhat.com>
3401
3402 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3403 gdb::unique_xmalloc_ptr.
3404 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3405 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3406 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3407 copy-initialization.
3408 * guile/scm-pretty-print.c (ppscm_print_children): Use
3409 gdb::unique_xmalloc_ptr instead of cleanups.
3410 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3411 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3412 gdb::unique_xmalloc_ptr.
3413 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3414 Adjust to use gdb::unique_xmalloc_ptr.
3415 * guile/scm-utils.c (extract_arg): Adjust.
3416 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3417 gdb::unique_xmalloc_ptr instead of a cleanup.
3418
3419 2018-07-19 Tom Tromey <tom@tromey.com>
3420
3421 * utils.c (do_value_free_to_mark)
3422 (make_cleanup_value_free_to_mark): Remove.
3423 * utils.h (make_cleanup_value_free_to_mark): Remove.
3424
3425 2018-07-19 Pedro Alves <palves@redhat.com>
3426
3427 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3428 forwarding reference.
3429
3430 2018-07-18 Pedro Alves <palves@redhat.com>
3431
3432 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3433 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3434 cleanup.
3435
3436 2018-07-18 Pedro Alves <palves@redhat.com>
3437
3438 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3439 exceptions.
3440 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3441 (gdbscm_wrap): New.
3442 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3443 directly instead of a cleanup.
3444 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3445 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3446 (vlscm_binop_gdbthrow): New, factored out from ...
3447 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3448 (vlscm_rich_compare): Use gdbscm_wrap.
3449 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3450 instead of a cleanup.
3451 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3452 cleanup.
3453 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3454 Use xfree directly instead of a cleanup.
3455 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3456 Adjust to use gdbscm_wrap and scoped_value_mark.
3457 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3458 (gdbscm_value_address, gdbscm_value_dereference)
3459 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3460 scoped_value_mark.
3461 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3462 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3463 scoped_value_mark.
3464 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3465 gdbscm_wrap and scoped_value_mark.
3466 (gdbscm_value_to_string): Use xfree directly instead of a
3467 cleanup. Move 'buffer' unique_ptr to TRY scope.
3468 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3469 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3470 scoped_value_mark.
3471 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3472 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3473 scoped_value_mark.
3474 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3475 gdbscm_wrap.
3476
3477 2018-07-18 Tom de Vries <tdevries@suse.de>
3478
3479 * findvar.c (default_read_var_value): Also resolve dynamic type for
3480 LOC_OPTIMIZED_OUT vars.
3481
3482 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3483
3484 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3485 decoding.
3486
3487 2018-07-17 Tom Tromey <tom@tromey.com>
3488
3489 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3490 (compute_enum_list, pascm_set_param_value_x)
3491 (gdbscm_parameter_value): Update.
3492 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3493 (gdbscm_scm_to_host_string): Update.
3494 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3495 Update.
3496 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3497 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3498 * guile/scm-string.c (gdbscm_scm_to_string): Return
3499 unique_xmalloc_ptr.
3500 (gdbscm_scm_to_host_string): Likewise.
3501
3502 2018-07-17 Tom Tromey <tom@tromey.com>
3503
3504 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3505 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3506 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3507 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3508 unique_xmalloc_ptr.
3509
3510 2018-07-17 Tom Tromey <tom@tromey.com>
3511
3512 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3513 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3514 Update.
3515 * guile/scm-cmd.c (cmdscm_function): Update.
3516 * guile/scm-pretty-print.c
3517 (ppscm_print_exception_unless_memory_error): Update.
3518 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3519 Return unique_xmalloc_ptr.
3520
3521 2018-07-17 Tom Tromey <tom@tromey.com>
3522
3523 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3524 Use string_printf.
3525
3526 2018-07-17 Jim Wilson <jimw@sifive.com>
3527
3528 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3529 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3530 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3531 unecessary braces after EF_RISCV_RVC test. Delete call to
3532 set_gdbarch_decr_pc_after_break.
3533
3534 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3535 RISCV_LAST_FP_REGNUM + 1.
3536 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3537
3538 2018-07-17 Tom Tromey <tom@tromey.com>
3539
3540 * configure.ac: Remove --disable-gdbcli.
3541 * configure: Rebuild.
3542 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3543 (SUBDIR_CLI_CFLAGS): Remove.
3544 (SFILES): Use SUBDIR_CLI_SRCS.
3545 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3546
3547 2018-07-17 Tom Tromey <tom@tromey.com>
3548
3549 PR gdb/18624:
3550 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3551
3552 2018-07-16 Jim Wilson <jimw@sifive.com>
3553
3554 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3555
3556 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3557
3558 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3559 variable.
3560 (libunwind_frame_sniffer): Likewise.
3561 (libunwind_frame_prev_register): Likewise.
3562 (libunwind_sigtramp_frame_sniffer): Likewise.
3563 * ia64-tdep.c (ia64_access_reg): Likewise.
3564 (ia64_access_rse_reg): Likewise.
3565 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3566 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3567
3568 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3569
3570 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3571
3572 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3573
3574 * remote-sim.c (gdbsim_target::close,
3575 gdbsim_target::mourn_inferior): Remove unused variables.
3576
3577 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3578
3579 * ia64-tdep.c (ktab_buf): New global.
3580 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3581 (get_kernel_table): Adjust.
3582
3583 2018-07-16 Tom Tromey <tom@tromey.com>
3584
3585 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3586 * dwarf2read.c (using_directives, new_symbol): Use
3587 outermost_context_p.
3588 * dbxread.c (process_one_symbol): Use outermost_context_p.
3589 * coffread.c (coff_symtab_read): Use outermost_context_p.
3590
3591 2018-07-16 Tom Tromey <tom@tromey.com>
3592
3593 * dwarf2read.c (using_directives, read_func_scope)
3594 (read_lexical_block_scope): Update.
3595 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3596 * buildsym.h (local_using_directives, global_using_directives):
3597 Don't declare.
3598 (get_local_using_directives, set_local_using_directives)
3599 (get_global_using_directives): Declare.
3600 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3601 m_global_using_directives>: New members.
3602 (finish_block_internal, prepare_for_building)
3603 (reset_symtab_globals, end_symtab_get_static_block)
3604 (push_context): Update.
3605 (get_local_using_directives, set_local_using_directives)
3606 (get_global_using_directives): New functions.
3607 (buildsym_init): Update.
3608
3609 2018-07-16 Tom Tromey <tom@tromey.com>
3610
3611 * xcoffread.c (xcoff_initial_scan): Don't call
3612 free_pending_blocks.
3613 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3614 * buildsym.h (class scoped_free_pendings): Add constructor.
3615 (free_pending_blocks): Don't declare.
3616 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3617 (free_pending_blocks): Now static.
3618
3619 2018-07-16 Tom Tromey <tom@tromey.com>
3620
3621 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3622 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3623 member.
3624 (struct subfile_stack): Remove.
3625 (subfile_stack): Remove.
3626 (push_subfile, pop_subfile, buildsym_init): Update.
3627
3628 2018-07-16 Tom Tromey <tom@tromey.com>
3629
3630 * buildsym.c (push_subfile): Use gdb_assert.
3631 (pop_subfile): Use gdb_assert.
3632
3633 2018-07-16 Tom Tromey <tom@tromey.com>
3634
3635 * buildsym.h (merge_symbol_lists): Remove.
3636 * buildsym.c (merge_symbol_lists): Remove.
3637
3638 2018-07-16 Tom Tromey <tom@tromey.com>
3639
3640 * stabsread.c (scan_file_globals): Update comment.
3641 * stabsread.h (scan_file_globals): Move from buildsym.h.
3642 * buildsym.h (scan_file_globals): Move to stabsread.h.
3643
3644 2018-07-16 Tom Tromey <tom@tromey.com>
3645
3646 * xcoffread.c (xcoff_new_init): Update.
3647 * mipsread.c (mipscoff_new_init): Update.
3648 * mdebugread.c (mdebug_build_psymtabs): Update.
3649 * elfread.c (elf_new_init): Update.
3650 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3651 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3652 * buildsym.h (buildsym_new_init): Don't declare.
3653 * buildsym.c (buildsym_new_init): Remove.
3654
3655 2018-07-16 Tom Tromey <tom@tromey.com>
3656
3657 * stabsread.h (within_function): Move from buildsym.h.
3658 * stabsread.c (start_stabs): Clear within_function.
3659 * coffread.c (coff_start_symtab): Clear within_function.
3660 * buildsym.h (within_function): Move to stabsread.h.
3661 * buildsym.c (prepare_for_building): Update.
3662
3663 2018-07-16 Tom Tromey <tom@tromey.com>
3664
3665 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3666 * dwarf2read.c (dwarf2_start_symtab): Don't set
3667 processing_gcc_compilation.
3668 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3669
3670 2018-07-16 Tom Tromey <tom@tromey.com>
3671
3672 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3673 (next_symbol_text_func): Move from buildsym.h.
3674 * stabsread.c (hashname): Move from buildsym.c.
3675 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3676 (next_symbol_text_func, hashname): Move to stabsread.h.
3677 * buildsym.c: Don't include bcache.h
3678 (hashname): Move to stasbread.c.
3679
3680 2018-07-16 Tom Tromey <tom@tromey.com>
3681
3682 * buildsym.h (context_stack_size): Don't declare.
3683 * buildsym.c (context_stack_size): New global.
3684
3685 2018-07-16 Tom Tromey <tom@tromey.com>
3686
3687 * dbxread.c (processing_acc_compilation): New global.
3688 * buildsym.h (processing_acc_compilation): Don't declare.
3689
3690 2018-07-16 Tom Tromey <tom@tromey.com>
3691
3692 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3693 * dbxread.c (read_ofile_symtab): Update.
3694 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3695 * buildsym.h (last_source_start_addr): Remove.
3696 (set_last_source_start_addr, get_last_source_start_addr):
3697 Declare.
3698 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3699 parameter.
3700 (struct buildsym_compunit) <m_last_source_start_addr>: New
3701 member.
3702 (prepare_for_building): Remove start_addr parameter.
3703 (start_symtab, restart_symtab, end_symtab_get_static_block)
3704 (end_symtab_with_blockvector): Update.
3705 (set_last_source_start_addr, get_last_source_start_addr): New
3706 functions.
3707
3708 2018-07-16 Tom Tromey <tom@tromey.com>
3709
3710 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3711 member.
3712 (have_line_numbers): Remove.
3713 (record_line, prepare_for_building, end_symtab_get_static_block)
3714 (augment_type_symtab): Update.
3715
3716 2018-07-16 Tom Tromey <tom@tromey.com>
3717
3718 * buildsym.c (~buildsym_compunit): Free the macro table.
3719 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3720 methods.
3721 <m_pending_macros>: New member.
3722 (pending_macros): Remove.
3723 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3724 (reset_symtab_globals, end_symtab_get_static_block)
3725 (end_symtab_with_blockvector, augment_type_symtab)
3726 (buildsym_init): Update.
3727
3728 2018-07-16 Tom Tromey <tom@tromey.com>
3729
3730 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3731 parameter.
3732 (buildsym_compunit::set_last_source_file): New method.
3733 <m_last_source_file>: New member.
3734 (prepare_for_building): Remove "name" parameter.
3735 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3736 (last_source_file): Remove.
3737 (set_last_source_file, get_last_source_file): Update.
3738
3739 2018-07-16 Tom Tromey <tom@tromey.com>
3740
3741 * buildsym.c (prepare_for_building): Add assert.
3742
3743 2018-07-16 Tom Tromey <tom@tromey.com>
3744
3745 * buildsym.c (~buildsym_compunit): Update.
3746 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3747 (start_subfile, patch_subfile_names)
3748 (end_symtab_with_blockvector): Update.
3749
3750 2018-07-16 Tom Tromey <tom@tromey.com>
3751
3752 * buildsym.c (struct buildsym_compunit): Add constructor,
3753 destructor, initializers.
3754 (start_buildsym_compunit): Remove.
3755 (free_buildsym_compunit): Use "delete".
3756 (start_symtab, restart_symtab): Use "new".
3757
3758 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3759
3760 * symfile.c (set_objfile_default_section_offset): Remove struct
3761 keyword.
3762
3763 2018-07-14 Stafford Horne <shorne@gmail.com>
3764
3765 * (Responsible Maintainers): Add myself as or1k maintainer.
3766
3767 2018-07-13 Tom Tromey <tom@tromey.com>
3768
3769 * symfile.c (set_objfile_default_section_offset): Use extra braces
3770 around initializer.
3771
3772 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3773
3774 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3775 non-branching basr.
3776
3777 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3778
3779 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3780 unittests/cli-utils-selftests.c
3781 * unittests/cli-utils-selftests.c: New file.
3782
3783 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3784
3785 * NEWS: Mention new commands. Mention change to 'thread apply'.
3786
3787 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3788
3789 * thread.c (thr_try_catch_cmd): New function.
3790 (thread_apply_all_command): Handle qcs flags.
3791 (thread_apply_command): Handle qcs flags.
3792 (taas_command): New function.
3793 (tfaas_command): New function.
3794 (_initialize_thread): Update to setup the new commands 'taas
3795 and 'tfaas'. Change doc string for 'thread apply'.
3796
3797 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3798
3799 * stack.c: (trailing_outermost_frame): New function, mostly
3800 extracted from backtrace_command_1.
3801 (leading_innermost_frame): New function.
3802 (backtrace_command_1): Update to call trailing_outermost_frame.
3803 (frame_apply_command_count): New function.
3804 (frame_apply_level_command): New function.
3805 (frame_apply_all_command): New function.
3806 (frame_apply_command): New function.
3807 (faas_command): New function.
3808 (frame_cmd_list): New variable.
3809 (_initialize_stack): Update to setup the new commands 'frame apply'
3810 and 'faas'.
3811
3812 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3813
3814 * cli-utils.c (number_or_range_parser::get_number): Only handle
3815 numbers or convenience var as numbers.
3816 (parse_flags): New function.
3817 (parse_flags_qcs): New function.
3818 (number_or_range_parser::finished): Ensure parsing end is detected
3819 before end of string.
3820 * cli-utils.h (parse_flags): New function.
3821 (parse_flags_qcs): New function.
3822 (number_or_range_parser): Remove m_finished bool.
3823 (number_or_range_parser::skip_range): Set m_in_range to false.
3824
3825 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3826
3827 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3828 on Windows.
3829
3830 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3831 Jan Kratochvil <jan.kratochvil@redhat.com>
3832 Paul Fertser <fercerpav@gmail.com>
3833 Tsutomu Seki <sekiriki@gmail.com>
3834 Pedro Alves <palves@redhat.com>
3835
3836 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3837 'unittests/parse-connection-spec-selftests.c'.
3838 (COMMON_SFILES): Add 'common/netstuff.c'.
3839 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3840 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3841 * common/netstuff.c: New file.
3842 * common/netstuff.h: New file.
3843 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3844 (wait_for_connect): Update comment. New parameter
3845 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3846 Use 'sock' directly instead of 'scb->fd'.
3847 (try_connect): New function, with code from 'net_open'.
3848 (net_open): Rewrite main loop to deal with multiple
3849 sockets/addresses. Handle IPv6-style hostnames; implement
3850 support for IPv6 connections.
3851 * unittests/parse-connection-spec-selftests.c: New file.
3852
3853 2018-07-11 Pedro Alves <palves@redhat.com>
3854
3855 PR gdb/23377
3856 * remote.c (remote_target::remote_detach_pid): Call
3857 set_current_process.
3858
3859 2018-07-11 Pedro Alves <palves@redhat.com>
3860
3861 * h8300-tdep.c (h8300_gdbarch_init): Remove
3862 set_gdbarch_ecoff_reg_to_regnum calls.
3863
3864 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3865
3866 PR c++/23373
3867 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3868 offsets/sizes for static members of a class/struct.
3869
3870 2018-07-11 Alan Hayward <alan.hayward@arm.com>
3871
3872 * target-descriptions.c (tdesc_register_bitsize): Rename.
3873 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3874 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3875 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3876
3877 2018-07-10 Tom Tromey <tom@tromey.com>
3878
3879 * breakpoint.c (moribund_locations): Now static and a
3880 std::vector.
3881 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3882 (build_bpstat_chain, update_global_location_list)
3883 (breakpoint_retire_moribund): Update.
3884 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3885 VEC.
3886
3887 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3888
3889 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3890 (riscv_register_reggroup_p): Use new function, remove unneeded
3891 parenthesis.
3892 (riscv_push_dummy_call): Extend assert to compare against xlen or
3893 flen based on register type.
3894
3895 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3896
3897 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3898
3899 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3900
3901 * remote.c (show_hardware_watchpoint_limit): New function.
3902 (show_hardware_watchpoint_length_limit): New function.
3903 (show_hardware_breakpoint_limit): New function.
3904 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
3905 where appropriate, update help text.
3906
3907 2018-07-09 Tom Tromey <tom@tromey.com>
3908
3909 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
3910 (CLIBS): Don't mention NAT_CLIBS.
3911
3912 2018-07-09 Tom Tromey <tom@tromey.com>
3913
3914 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
3915 (LIBGDB_OBS, clean mostlyclean): Update.
3916 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
3917
3918 2018-07-09 Tom Tromey <tom@tromey.com>
3919
3920 * Makefile.in (%.c: %.y): Use ECHO_YACC.
3921 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
3922 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
3923
3924 2018-07-09 Tom Tromey <tom@tromey.com>
3925
3926 * Makefile.in (ALLDEPFILES): Remove exec.c.
3927 (COMMON_OBS): Remove exec.o.
3928 (COMMON_SFILES): Add exec.c.
3929
3930 2018-07-09 Tom Tromey <tom@tromey.com>
3931
3932 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
3933
3934 2018-07-09 Tom Tromey <tom@tromey.com>
3935
3936 * Makefile.in (clean mostlyclean): Remove stamp-version.
3937 (version.c): Depend on stamp-version.
3938 (stamp-version): New rule, from version.c rule.
3939
3940 2018-07-09 Tom Tromey <tom@tromey.com>
3941
3942 * Makefile.in (init.c): Depend on stamp-init.
3943 (stamp-init): New rule, from init.c rule.
3944 (clean mostlyclean): Remove stamp-init.
3945
3946 2018-07-09 Tom Tromey <tom@tromey.com>
3947
3948 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
3949 SUBDIR_GCC_COMPILE_SRCS.
3950
3951 2018-07-09 Tom Tromey <tom@tromey.com>
3952
3953 * Makefile.in (init.c): Remove some unused sed rules.
3954
3955 2018-07-09 Tom Tromey <tom@tromey.com>
3956
3957 * Makefile.in (TSOBS): Remove.
3958 (INIT_FILES): Update.
3959 (LIBGDB_OBS): Update.
3960 (COMMON_SFILES): Add inflow.c.
3961 (SFILES): Remove inflow.c.
3962
3963 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3964
3965 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
3966
3967 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
3968
3969 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
3970 get_saveloc_name, is_signal_frame_name, step_name,
3971 init_remote_name, create_addr_space_name,
3972 destroy_addr_space_name, search_unwind_table_name,
3973 find_dyn_list_name): Constify.
3974
3975 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
3976
3977 * darwin-nat.c (darwin_pthread_kill): New function.
3978 (darwin_resume_thread): Use darwin_pthread_kill.
3979
3980 2018-07-05 Tom de Vries <tdevries@suse.de>
3981
3982 * macroexp.c (macro_buffer) <operator=>: New member function.
3983
3984 2018-07-04 Tom Tromey <tom@tromey.com>
3985
3986 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
3987
3988 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
3989
3990 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
3991 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
3992 * maint.c: Likewise.
3993 * top.c: Likewise.
3994
3995 2018-07-04 Joel Brobecker <brobecker@adacore.com>
3996
3997 * NEWS: Create a new section for the next release branch.
3998 Rename the section of the current branch, now that it has
3999 been cut.
4000
4001 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4002
4003 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4004 * version.in: Bump version to 8.2.50.DATE-git.
4005
4006 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4007 Pedro Alves <palves@redhat.com>
4008
4009 * linux-nat.c (linux_init_ptrace): Rename to ...
4010 (linux_init_ptrace_procfs): ... this. Call
4011 linux_proc_init_warnings.
4012 (linux_nat_target::post_attach)
4013 (linux_nat_target::post_startup_inferior): Adjust.
4014 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4015 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4016
4017 2018-07-04 Tom de Vries <tdevries@suse.de>
4018
4019 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4020 check ...
4021 (read_comp_unit_head): ... here.
4022
4023 2018-07-03 Tom Tromey <tom@tromey.com>
4024
4025 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4026 (stop_tracing, tstatus_command)
4027 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4028 (print_one_static_tracepoint_marker): Update.
4029 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4030 std::vector.
4031 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4032 VEC.
4033 (all_tracepoints, static_tracepoints_here): Return std::vector.
4034
4035 2018-07-03 Tom Tromey <tom@tromey.com>
4036
4037 * common/ptid.c (ptid_equal): Remove.
4038 * common/ptid.h (ptid_equal): Don't declare.
4039 * ada-tasks.c: Update.
4040 * breakpoint.c: Update.
4041 * common/agent.c: Update.
4042 * corelow.c: Update.
4043 * darwin-nat-info.c: Update.
4044 * darwin-nat.c: Update.
4045 * dcache.c: Update.
4046 * dtrace-probe.c: Update.
4047 * dummy-frame.c: Update.
4048 * fbsd-nat.c: Update.
4049 * frame.c: Update.
4050 * gdbthread.h: Update.
4051 * gnu-nat.c: Update.
4052 * go32-nat.c: Update.
4053 * inf-loop.c: Update.
4054 * inf-ptrace.c: Update.
4055 * infcall.c: Update.
4056 * infcmd.c: Update.
4057 * inflow.c: Update.
4058 * infrun.c: Update.
4059 * linux-fork.c: Update.
4060 * linux-nat.c: Update.
4061 * linux-thread-db.c: Update.
4062 * mi/mi-cmd-var.c: Update.
4063 * mi/mi-interp.c: Update.
4064 * mi/mi-main.c: Update.
4065 * nto-procfs.c: Update.
4066 * ppc-linux-tdep.c: Update.
4067 * procfs.c: Update.
4068 * python/py-inferior.c: Update.
4069 * python/py-record-btrace.c: Update.
4070 * python/py-record.c: Update.
4071 * ravenscar-thread.c: Update.
4072 * regcache.c: Update.
4073 * remote-sim.c: Update.
4074 * remote.c: Update.
4075 * sol-thread.c: Update.
4076 * solib.c: Update.
4077 * target.c: Update.
4078 * tui/tui-stack.c: Update.
4079 * varobj.c: Update.
4080 * windows-nat.c: Update.
4081 * windows-tdep.c: Update.
4082
4083 2018-07-03 Tom Tromey <tom@tromey.com>
4084
4085 * common/ptid.c (ptid_match): Remove.
4086 * common/ptid.h (ptid_match): Don't declare.
4087 * fbsd-nat.c: Update.
4088 * infcmd.c: Update.
4089 * infrun.c: Update.
4090 * linux-nat.c: Update.
4091 * record-btrace.c: Update.
4092 * regcache.c: Update.
4093 * remote.c: Update.
4094
4095 2018-07-03 Tom Tromey <tom@tromey.com>
4096
4097 * common/ptid.c (ptid_tid_p): Remove.
4098 * common/ptid.h (ptid_tid_p): Don't declare.
4099 * sol-thread.c: Update.
4100
4101 2018-07-03 Tom Tromey <tom@tromey.com>
4102
4103 * common/ptid.c (ptid_lwp_p): Remove.
4104 * common/ptid.h (ptid_lwp_p): Don't declare.
4105 * fbsd-nat.c: Update.
4106 * linux-nat.c: Update.
4107 * nat/linux-procfs.c: Update.
4108 * nat/x86-linux-dregs.c: Update.
4109 * sol-thread.c: Update.
4110
4111 2018-07-03 Tom Tromey <tom@tromey.com>
4112
4113 * common/ptid.c (ptid_is_pid): Remove.
4114 * common/ptid.h (ptid_is_pid): Don't declare.
4115 * infrun.c: Update.
4116 * linux-nat.c: Update.
4117 * mi/mi-interp.c: Update.
4118 * remote.c: Update.
4119 * thread.c: Update.
4120
4121 2018-07-03 Tom Tromey <tom@tromey.com>
4122
4123 * common/ptid.c (ptid_get_tid): Remove.
4124 * common/ptid.h (ptid_get_tid): Don't declare.
4125 * ada-tasks.c: Update.
4126 * aix-thread.c: Update.
4127 * bsd-uthread.c: Update.
4128 * darwin-nat.c: Update.
4129 * fbsd-nat.c: Update.
4130 * i386-darwin-nat.c: Update.
4131 * infrun.c: Update.
4132 * linux-tdep.c: Update.
4133 * nto-procfs.c: Update.
4134 * ppc-ravenscar-thread.c: Update.
4135 * python/py-infthread.c: Update.
4136 * ravenscar-thread.c: Update.
4137 * sol-thread.c: Update.
4138 * sparc-ravenscar-thread.c: Update.
4139 * windows-nat.c: Update.
4140
4141 2018-07-03 Tom Tromey <tom@tromey.com>
4142
4143 * common/ptid.c (ptid_get_lwp): Remove.
4144 * common/ptid.h (ptid_get_lwp): Don't declare.
4145 * aarch64-linux-nat.c: Update.
4146 * ada-tasks.c: Update.
4147 * aix-thread.c: Update.
4148 * amd64-linux-nat.c: Update.
4149 * arm-linux-nat.c: Update.
4150 * corelow.c: Update.
4151 * fbsd-nat.c: Update.
4152 * fbsd-tdep.c: Update.
4153 * gnu-nat.c: Update.
4154 * i386-cygwin-tdep.c: Update.
4155 * i386-gnu-nat.c: Update.
4156 * i386-linux-nat.c: Update.
4157 * ia64-linux-nat.c: Update.
4158 * inf-ptrace.c: Update.
4159 * infrun.c: Update.
4160 * linux-fork.c: Update.
4161 * linux-nat.c: Update.
4162 * linux-tdep.c: Update.
4163 * linux-thread-db.c: Update.
4164 * mips-linux-nat.c: Update.
4165 * nat/aarch64-linux-hw-point.c: Update.
4166 * nat/aarch64-linux.c: Update.
4167 * nat/linux-btrace.c: Update.
4168 * nat/linux-osdata.c: Update.
4169 * nat/linux-procfs.c: Update.
4170 * nat/x86-linux-dregs.c: Update.
4171 * obsd-nat.c: Update.
4172 * ppc-fbsd-nat.c: Update.
4173 * ppc-linux-nat.c: Update.
4174 * procfs.c: Update.
4175 * python/py-infthread.c: Update.
4176 * ravenscar-thread.c: Update.
4177 * remote.c: Update.
4178 * s390-linux-nat.c: Update.
4179 * sol-thread.c: Update.
4180 * sol2-tdep.c: Update.
4181 * spu-linux-nat.c: Update.
4182 * x86-linux-nat.c: Update.
4183 * xtensa-linux-nat.c: Update.
4184
4185 2018-07-03 Tom Tromey <tom@tromey.com>
4186
4187 * common/ptid.c (ptid_get_pid): Remove.
4188 * common/ptid.h (ptid_get_pid): Don't declare.
4189 * aarch64-linux-nat.c: Update.
4190 * ada-lang.c: Update.
4191 * aix-thread.c: Update.
4192 * alpha-bsd-nat.c: Update.
4193 * amd64-fbsd-nat.c: Update.
4194 * amd64-linux-nat.c: Update.
4195 * arm-linux-nat.c: Update.
4196 * arm-nbsd-nat.c: Update.
4197 * auxv.c: Update.
4198 * break-catch-syscall.c: Update.
4199 * breakpoint.c: Update.
4200 * bsd-uthread.c: Update.
4201 * corelow.c: Update.
4202 * ctf.c: Update.
4203 * darwin-nat.c: Update.
4204 * fbsd-nat.c: Update.
4205 * fbsd-tdep.c: Update.
4206 * gcore.c: Update.
4207 * gnu-nat.c: Update.
4208 * hppa-nbsd-nat.c: Update.
4209 * hppa-obsd-nat.c: Update.
4210 * i386-fbsd-nat.c: Update.
4211 * ia64-linux-nat.c: Update.
4212 * inf-ptrace.c: Update.
4213 * infcmd.c: Update.
4214 * inferior.c: Update.
4215 * inferior.h: Update.
4216 * inflow.c: Update.
4217 * infrun.c: Update.
4218 * linux-fork.c: Update.
4219 * linux-nat.c: Update.
4220 * linux-tdep.c: Update.
4221 * linux-thread-db.c: Update.
4222 * m68k-bsd-nat.c: Update.
4223 * mi/mi-interp.c: Update.
4224 * mi/mi-main.c: Update.
4225 * mips-linux-nat.c: Update.
4226 * mips-nbsd-nat.c: Update.
4227 * mips64-obsd-nat.c: Update.
4228 * nat/aarch64-linux-hw-point.c: Update.
4229 * nat/aarch64-linux.c: Update.
4230 * nat/linux-btrace.c: Update.
4231 * nat/linux-osdata.c: Update.
4232 * nat/linux-procfs.c: Update.
4233 * nat/x86-linux-dregs.c: Update.
4234 * nto-procfs.c: Update.
4235 * obsd-nat.c: Update.
4236 * ppc-linux-nat.c: Update.
4237 * ppc-nbsd-nat.c: Update.
4238 * ppc-obsd-nat.c: Update.
4239 * proc-service.c: Update.
4240 * procfs.c: Update.
4241 * python/py-inferior.c: Update.
4242 * python/py-infthread.c: Update.
4243 * ravenscar-thread.c: Update.
4244 * record.c: Update.
4245 * remote-sim.c: Update.
4246 * remote.c: Update.
4247 * rs6000-nat.c: Update.
4248 * s390-linux-nat.c: Update.
4249 * sh-nbsd-nat.c: Update.
4250 * sol-thread.c: Update.
4251 * sparc-nat.c: Update.
4252 * sparc64-tdep.c: Update.
4253 * spu-linux-nat.c: Update.
4254 * spu-tdep.c: Update.
4255 * target-debug.h: Update.
4256 * target.c: Update.
4257 * thread.c: Update.
4258 * tid-parse.c: Update.
4259 * tracefile-tfile.c: Update.
4260 * vax-bsd-nat.c: Update.
4261 * windows-nat.c: Update.
4262 * x86-linux-nat.c: Update.
4263 * x86-nat.c: Update.
4264
4265 2018-07-03 Tom Tromey <tom@tromey.com>
4266
4267 * common/ptid.c (pid_to_ptid): Remove.
4268 * common/ptid.h (pid_to_ptid): Don't declare.
4269 * aix-thread.c: Update.
4270 * arm-linux-nat.c: Update.
4271 * common/ptid.c: Update.
4272 * common/ptid.h: Update.
4273 * corelow.c: Update.
4274 * ctf.c: Update.
4275 * darwin-nat.c: Update.
4276 * fbsd-nat.c: Update.
4277 * fork-child.c: Update.
4278 * gnu-nat.c: Update.
4279 * go32-nat.c: Update.
4280 * inf-ptrace.c: Update.
4281 * infcmd.c: Update.
4282 * inferior.c: Update.
4283 * infrun.c: Update.
4284 * linux-fork.c: Update.
4285 * linux-nat.c: Update.
4286 * nat/aarch64-linux-hw-point.c: Update.
4287 * nat/fork-inferior.c: Update.
4288 * nat/x86-linux-dregs.c: Update.
4289 * nto-procfs.c: Update.
4290 * obsd-nat.c: Update.
4291 * procfs.c: Update.
4292 * progspace.c: Update.
4293 * remote.c: Update.
4294 * rs6000-nat.c: Update.
4295 * s390-linux-nat.c: Update.
4296 * sol-thread.c: Update.
4297 * spu-linux-nat.c: Update.
4298 * target.c: Update.
4299 * top.c: Update.
4300 * tracefile-tfile.c: Update.
4301 * windows-nat.c: Update.
4302
4303 2018-07-03 Tom Tromey <tom@tromey.com>
4304
4305 * common/ptid.h (ptid_build): Don't declare.
4306 * common/ptid.c (ptid_build): Remove.
4307 * aix-thread.c: Update.
4308 * bsd-kvm.c: Update.
4309 * bsd-uthread.c: Update.
4310 * common/agent.c: Update.
4311 * common/ptid.c: Update.
4312 * common/ptid.h: Update.
4313 * corelow.c: Update.
4314 * darwin-nat.c: Update.
4315 * fbsd-nat.c: Update.
4316 * gnu-nat.c: Update.
4317 * linux-fork.c: Update.
4318 * linux-nat.c: Update.
4319 * linux-thread-db.c: Update.
4320 * nat/linux-osdata.c: Update.
4321 * nat/linux-procfs.c: Update.
4322 * nto-procfs.c: Update.
4323 * obsd-nat.c: Update.
4324 * proc-service.c: Update.
4325 * procfs.c: Update.
4326 * ravenscar-thread.c: Update.
4327 * remote-sim.c: Update.
4328 * remote.c: Update.
4329 * sol-thread.c: Update.
4330 * target.c: Update.
4331 * windows-nat.c: Update.
4332
4333 2018-07-03 Tom Tromey <tom@tromey.com>
4334
4335 * infrun.c (follow_exec): Use exit_inferior_silent.
4336 * inferior.c (exit_inferior_num_silent): Remove.
4337 * inferior.h (exit_inferior_num_silent): Don't declare.
4338
4339 2018-07-03 Tom Tromey <tom@tromey.com>
4340
4341 PR cli/23340:
4342 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4343 inferior_ptid on error.
4344
4345 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4346 Simon Marchi <simon.marchi@polymtl.ca>
4347
4348 PR tdep/8282
4349 * disasm.h (gdb_disassembler): Add
4350 `m_disassembler_options_holder'. member
4351 * disasm.c (get_all_disassembler_options): New function.
4352 (gdb_disassembler::gdb_disassembler): Use it.
4353 (gdb_buffered_insn_length_init_dis): Likewise.
4354 (gdb_buffered_insn_length): Adjust accordingly.
4355 (set_disassembler_options): Handle options with arguments.
4356 (show_disassembler_options_sfunc): Likewise. Add a leading new
4357 line if showing options with descriptions.
4358 (disassembler_options_completer): Adapt to using the
4359 `disasm_options_and_args_t' structure.
4360 * mips-tdep.c (mips_disassembler_options): New variable.
4361 (mips_disassembler_options_o32): Likewise.
4362 (mips_disassembler_options_n32): Likewise.
4363 (mips_disassembler_options_n64): Likewise.
4364 (gdb_print_insn_mips): Don't set `disassembler_options'.
4365 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4366 functions.
4367 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4368 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4369 `gdbarch_disassembler_options_implicit' and
4370 `gdbarch_valid_disassembler_options'.
4371 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4372 `disasm_options_and_args_t' structure.
4373 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4374 method.
4375 (valid_disassembler_options): Switch from `disasm_options_t' to
4376 the `disasm_options_and_args_t' structure.
4377 * NEWS: Document `set disassembler-options' support for the MIPS
4378 target.
4379 * gdbarch.h: Regenerate.
4380 * gdbarch.c: Regenerate.
4381
4382 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4383
4384 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4385
4386 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4387
4388 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4389 parameter in call to amd64_target_description.
4390 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4391 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4392 (amd64fbsd_init_abi): Likewise.
4393 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4394 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4395 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4396 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4397
4398 2018-06-29 Pedro Alves <palves@redhat.com>
4399
4400 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4401 "segments" parameter.
4402 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4403 (_initialize_amd64_tdep): Update call to
4404 amd64_create_target_description.
4405 (amd64_target_description): Add "segments" parameter. Adjust
4406 the implementation to use it.
4407 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4408 call to amd64_create_target_description.
4409 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4410 * gdb/arch/amd64.h (amd64_create_target_description): Add
4411 "segments" register.
4412 * gdb/arch/amd64.c (amd64_create_target_description): Add
4413 "segments" parameter. Call create_feature_i386_64bit_segments
4414 only if SEGMENTS is true.
4415 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4416 call to amd64_create_target_description.
4417
4418 2018-06-29 Pedro Alves <palves@redhat.com>
4419
4420 * thread.c (thread_target_id_str): New, factored out from ...
4421 (print_thread_info_1): ... here. Use it to compute the max
4422 "Target Id" column width.
4423
4424 2018-06-29 Pedro Alves <palves@redhat.com>
4425
4426 * remote.c (remote_target::extra_thread_info): Delete
4427 'display_buf' and 'n' locals. from the cache, regardless of
4428 packet mechanims is in use. Use cache for qThreadExtra and qP
4429 methods too.
4430
4431 2018-06-29 Pedro Alves <palves@redhat.com>
4432
4433 * blockframe.c (find_pc_sect_containing_function): New function.
4434 * breakpoint.c (print_breakpoint_location): Don't call
4435 find_pc_sect_function.
4436 * linespec.c (create_sals_line_offset): Record the location's
4437 symbol in the sal.
4438 * linespec.c (convert_address_location_to_sals): Fill in sal's
4439 symbol with find_pc_sect_containing_function.
4440 * symtab.c (find_function_start_sal): Rename to ...
4441 (find_function_start_sal_1): ... this.
4442 (find_function_start_sal): Reimplement as wrapper around
4443 find_function_start_sal_1, and use
4444 find_pc_sect_containing_function to fill in the sal's symbol.
4445 (find_function_start_sal(symbol*, bool)): Adjust.
4446 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4447 comments.
4448 (find_pc_sect_containing_function): Declare.
4449
4450 2018-06-29 Pedro Alves <palves@redhat.com>
4451
4452 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4453 true if the the location has no symbol.
4454
4455 2018-06-28 Tom Tromey <tom@tromey.com>
4456
4457 * NEWS: Mention --enable-codesign.
4458 * silent-rules.mk (ECHO_SIGN): New variable.
4459 * configure.ac: Add --enable-codesign.
4460 * configure: Rebuild.
4461 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4462 (gdb$(EXEEXT)): Optionally invoke codesign.
4463
4464 2018-06-28 Pedro Alves <palves@redhat.com>
4465
4466 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4467 comments.
4468 (switch_to_thread_no_regs): Adjust comment.
4469 * infcmd.c (stop_pc): Delete.
4470 (post_create_inferior, info_program_command): Replace references
4471 to stop_pc with references to thread_info->suspend.stop_pc.
4472 * inferior.h (stop_pc): Delete declaration.
4473 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4474 (handle_inferior_event_1, handle_signal_stop)
4475 (process_event_stop_test, keep_going_stepped_thread)
4476 (handle_step_into_function, handle_step_into_function_backward)
4477 (print_stop_location): Replace references to stop_pc with
4478 references to thread_info->suspend.stop_pc.
4479 (struct infcall_suspend_state) <stop_pc>: Delete field.
4480 (save_infcall_suspend_state, restore_infcall_suspend_state):
4481 Remove references to inf_stat->stop_pc.
4482 * linux-fork.c (fork_load_infrun_state): Likewise.
4483 * record-btrace.c (record_btrace_set_replay): Likewise.
4484 * record-full.c (record_full_goto_entry): Likewise.
4485 * remote.c (print_one_stopped_thread): Likewise.
4486 * target.c (target_resume): Extend comment.
4487 * thread.c (set_executing_thread): New.
4488 (set_executing): Use it.
4489 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4490 Remove references to stop_pc.
4491
4492 2018-06-28 Pedro Alves <palves@redhat.com>
4493
4494 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4495 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4496
4497 2018-06-28 Tom Tromey <tom@tromey.com>
4498
4499 * coffread.c (coff_symfile_finish): Update.
4500 * xcoffread.c (xcoff_symfile_finish): Update.
4501 * elfread.c (elf_symfile_finish): Update.
4502 * symfile.h (dwarf2_free_objfile): Don't declare.
4503 * dwarf2read.c (_initialize_dwarf2_read): Use
4504 register_objfile_data_with_cleanup.
4505 (dwarf2_free_objfile): Now static. Change signature.
4506
4507 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4508
4509 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4510 option "-o" to add-symbol-file-load to add an offset to each
4511 section's load address.
4512 * symfile.c (set_objfile_default_section_offset): New function.
4513
4514 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4515
4516 * symfile.c (add_symbol_file_command): Make sure that sections
4517 with the same name are sorted in the same order.
4518
4519 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4520
4521 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4522 require the second argument. If omitted, load sections at the
4523 addresses specified in the file.
4524
4525 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4526
4527 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4528 (_initialize_symfile): Add option "-o" to symbol-file to add an
4529 offset to each section of the symbol file.
4530
4531 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4532
4533 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4534
4535 2018-06-27 Tom Tromey <tom@tromey.com>
4536
4537 * stack.c (_initialize_stack): Update "func" help text.
4538
4539 2018-06-27 Tom Tromey <tom@tromey.com>
4540
4541 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4542 std::vector.
4543 (unwind_infopy_str, pyuw_create_unwind_info)
4544 (unwind_infopy_add_saved_register, pyuw_sniffer)
4545 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4546 Update.
4547 (struct saved_reg): Add constructor.
4548 <value>: Now a gdbpy_ref<>.
4549
4550 2018-06-27 Tom Tromey <tom@tromey.com>
4551
4552 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4553
4554 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4555
4556 * gdb-gdb.py.in: Format using autopep8.
4557
4558 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4559
4560 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4561 (type_lookup_function): Recognize CORE_ADDR values.
4562
4563 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4564
4565 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4566 print tag_name.
4567
4568 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4569
4570 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4571 <__lt__>: Add.
4572
4573 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4574
4575 * gdb-gdb.py: Move to...
4576 * gdb-gdb.py.in: ... here.
4577 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4578 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4579 dependencies.
4580 (distclean): Remove gdb-gdb.py when cleaning.
4581 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4582 * configure: Re-generate.
4583
4584 2018-06-27 Pedro Alves <palves@redhat.com>
4585
4586 * proc-service.c (get_ps_regcache): New.
4587 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4588 (ps_lsetfpregs): Use it.
4589
4590 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
4591
4592 PR gdb/21695
4593 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4594 (dwarf_decode_lines_1): Adjust.
4595
4596 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4597
4598 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4599 override.
4600 <info_proc>: Likewise.
4601
4602 2018-06-26 Joel Brobecker <brobecker@adacore.com>
4603
4604 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4605 to windows_fetch_one_register, and only handle the case of
4606 fetching one register. Move the code that reloads the context
4607 and iterates over all registers if R is negative to...
4608 (windows_nat_target::fetch_registers): ... here.
4609 (do_windows_store_inferior_registers): Rename to
4610 windows_store_one_register, and only handle the case of storing
4611 one register. Move the code that handles the case where r is
4612 negative to...
4613 (windows_nat_target::store_registers) ... here.
4614
4615 2018-06-26 Tom Tromey <tom@tromey.com>
4616
4617 PR rust/22574:
4618 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4619 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4620 Update.
4621 (rust_internal_print_type): Add podata parameter.
4622 (rust_print_type): Update.
4623
4624 2018-06-26 Tom Tromey <tom@tromey.com>
4625
4626 * typeprint.h (struct print_offset_data) <update, finish,
4627 maybe_print_hole>: New methods.
4628 <indentation>: New constant.
4629 * typeprint.c (print_offset_data::indentation): Define.
4630 (print_offset_data::maybe_print_hole, print_offset_data::update)
4631 (print_offset_data::finish): Move from c-typeprint.c and rename.
4632 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4633 (print_spaces_filtered_with_print_options): Update.
4634 (c_print_type_union_field_offset, maybe_print_hole)
4635 (c_print_type_struct_field_offset): Move to typeprint.c and
4636 rename.
4637 (c_type_print_base_struct_union): Update.
4638
4639 2018-06-25 Pedro Alves <palves@redhat.com>
4640
4641 * gdbthread.h (thread_info_ref, delete_thread)
4642 (delete_thread_silent, first_thread_of_inferior)
4643 (any_thread_of_inferior, switch_to_thread)
4644 (enable_thread_stack_temporaries)
4645 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4646 (get_last_thread_stack_temporary)
4647 (value_in_thread_stack_temporaries, can_access_registers_thread):
4648 Spell out "struct thread_info" instead of just "thread_info".
4649 * inferior.h (notice_new_inferior): Likewise.
4650
4651 2018-06-25 Pedro Alves <palves@redhat.com>
4652
4653 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4654 pass thread_info pointer to delete_thread.
4655 (windows_nat_target::detach): Pass inferior pointer to
4656 detach_inferior.
4657 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4658 delete_thread.
4659 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4660 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4661 and pass a thread_info pointer to delete_thread.
4662 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4663 pass thread_info pointer to delete_thread.
4664 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4665 delete_thread_silent call.
4666 * procfs.c (procfs_target::detach): Pass inferior pointer to
4667 detach_inferior.
4668 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4669 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4670 delete_thread_silent call.
4671 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4672 pass thread_info pointer to delete_thread.
4673 (windows_nat_target::detach): Pass inferior pointer to
4674 delete_inferior.
4675
4676 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4677
4678 * regcache.c (readable_regcache::read_part): Fix asserts.
4679 (reg_buffer::raw_collect_part): New function.
4680 (regcache::write_part): Fix asserts.
4681 (reg_buffer::raw_supply_part): New function.
4682 (regcache::transfer_regset_register): New helper function.
4683 (regcache::transfer_regset): Call new functions.
4684 (regcache_supply_regset): Use gdb_byte*.
4685 (regcache::supply_regset): Likewise.
4686 (regcache_collect_regset): Likewise.
4687 (regcache::collect_regset): Likewise.
4688 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4689 (reg_buffer::raw_supply_part): Likewise.
4690 (regcache::transfer_regset_register): Likewise.
4691 (regcache::transfer_regset): Use gdb_byte*.
4692
4693 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4694
4695 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4696
4697 2018-06-21 Pedro Alves <palves@redhat.com>
4698
4699 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4700 instead of a ptid_t. All callers adjusted.
4701 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4702 adjusted.
4703 (print_ada_task_info, display_current_task_id, task_command_1):
4704 Adjust.
4705 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4706 inferior_thread.
4707 (breakpoint_kind): Adjust.
4708 (remove_breakpoints_pid): Rename to ...
4709 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4710 pointer. All callers adjusted.
4711 (bpstat_clear_actions): Use inferior_thread.
4712 (get_bpstat_thread): New.
4713 (bpstat_do_actions): Use it.
4714 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4715 to take a thread_info pointer. All callers adjusted.
4716 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4717 (breakpoint_re_set_thread): Use inferior_thread.
4718 * breakpoint.h (struct inferior): Forward declare.
4719 (bpstat_stop_status): Update.
4720 (remove_breakpoints_pid): Delete.
4721 (remove_breakpoints_inf): New.
4722 * bsd-uthread.c (bsd_uthread_target::wait)
4723 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4724 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4725 (maint_btrace_packet_history_cmd)
4726 (maint_btrace_clear_packet_history_cmd): Adjust.
4727 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4728 inferior_thread.
4729 * cli/cli-interp.c: Include "inferior.h".
4730 * common/refcounted-object.h (struct
4731 refcounted_object_ref_policy): New.
4732 * compile/compile-object-load.c: Include gdbthread.h.
4733 (store_regs): Use inferior_thread.
4734 * corelow.c (core_target::close): Use current_inferior.
4735 (core_target_open): Adjust to use first_thread_of_inferior and use
4736 the current inferior.
4737 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4738 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4739 <thread>: ... this new field. All references adjusted.
4740 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4741 Take a thread_info pointer instead of a ptid_t.
4742 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4743 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4744 thread_info pointer instead of a ptid_t.
4745 * elfread.c: Include "inferior.h".
4746 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4747 Use inferior_thread.
4748 * eval.c (evaluate_subexp): Likewise.
4749 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4750 inferior_thread.
4751 * gdb_proc_service.h (struct thread_info): Forward declare.
4752 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4753 <thread>: ... this new field. All references adjusted.
4754 * gdbarch.h, gdbarch.c: Regenerate.
4755 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4756 'thread' parameter. All implementations and callers adjusted.
4757 * gdbthread.h (thread_info) <set_running>: New method.
4758 (delete_thread, delete_thread_silent): Take a thread_info pointer
4759 instead of a ptid.
4760 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4761 (first_thread_of_process): Delete, replaced by ...
4762 (first_thread_of_inferior): ... this new function. All callers
4763 adjusted.
4764 (any_live_thread_of_process): Delete, replaced by ...
4765 (any_live_thread_of_inferior): ... this new function. All callers
4766 adjusted.
4767 (switch_to_thread, switch_to_no_thread): Declare.
4768 (is_executing): Delete.
4769 (enable_thread_stack_temporaries): Update comment.
4770 <enable_thread_stack_temporaries>: Take a thread_info pointer
4771 instead of a ptid_t. Incref the thread.
4772 <~enable_thread_stack_temporaries>: Decref the thread.
4773 <m_ptid>: Delete
4774 <m_thr>: New.
4775 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4776 (get_last_thread_stack_temporary)
4777 (value_in_thread_stack_temporaries, can_access_registers_thread):
4778 Take a thread_info pointer instead of a ptid_t. All callers
4779 adjusted.
4780 * infcall.c (get_call_return_value): Use inferior_thread.
4781 (run_inferior_call): Work with thread pointers instead of ptid_t.
4782 (call_function_by_hand_dummy): Work with thread pointers instead
4783 of ptid_t. Use thread_info_ref.
4784 * infcmd.c (proceed_thread_callback): Access thread's state
4785 directly.
4786 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4787 access thread's state directly.
4788 (continue_command): Use inferior_thread.
4789 (info_program_command): Use find_thread_ptid and access thread
4790 state directly.
4791 (proceed_after_attach_callback): Use thread state directly.
4792 (notice_new_inferior): Take a thread_info pointer instead of a
4793 ptid_t. All callers adjusted.
4794 (exit_inferior): Take an inferior pointer instead of a pid. All
4795 callers adjusted.
4796 (exit_inferior_silent): New.
4797 (detach_inferior): Delete.
4798 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4799 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4800 (detach_inferior_command, kill_inferior_command): Use
4801 find_inferior_id instead of valid_gdb_inferior_id and
4802 gdb_inferior_id_to_pid.
4803 (inferior_command): Use inferior and thread pointers.
4804 * inferior.h (struct thread_info): Forward declare.
4805 (notice_new_inferior): Take a thread_info pointer instead of a
4806 ptid_t. All callers adjusted.
4807 (detach_inferior): Delete declaration.
4808 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4809 instead of a pid. All callers adjusted.
4810 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4811 (valid_gdb_inferior_id): Delete.
4812 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4813 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4814 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4815 ...
4816 <inf>: ... this new field.
4817 <step_ptid>: Delete, replaced by ...
4818 <step_thread>: ... this new field.
4819 (get_displaced_stepping_state): Take an inferior pointer instead
4820 of a pid. All callers adjusted.
4821 (displaced_step_in_progress_any_inferior): Adjust.
4822 (displaced_step_in_progress_thread): Take a thread pointer instead
4823 of a ptid_t. All callers adjusted.
4824 (displaced_step_in_progress, add_displaced_stepping_state): Take
4825 an inferior pointer instead of a pid. All callers adjusted.
4826 (get_displaced_step_closure_by_addr): Adjust.
4827 (remove_displaced_stepping_state): Take an inferior pointer
4828 instead of a pid. All callers adjusted.
4829 (displaced_step_prepare_throw, displaced_step_prepare)
4830 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4831 All callers adjusted.
4832 (start_step_over): Adjust.
4833 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4834 displaced step queue.
4835 (do_target_resume): Adjust.
4836 (fetch_inferior_event): Use inferior_thread.
4837 (context_switch, get_inferior_stop_soon): Take an
4838 execution_control_state pointer instead of a ptid_t. All callers
4839 adjusted.
4840 (switch_to_thread_cleanup): Delete.
4841 (stop_all_threads): Use scoped_restore_current_thread.
4842 * inline-frame.c: Include "gdbthread.h".
4843 (inline_state) <inline_state>: Take a thread pointer instead of a
4844 ptid_t. All callers adjusted.
4845 <ptid>: Delete, replaced by ...
4846 <thread>: ... this new field.
4847 (find_inline_frame_state): Take a thread pointer instead of a
4848 ptid_t. All callers adjusted.
4849 (skip_inline_frames, step_into_inline_frame)
4850 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4851 pointer instead of a ptid_t. All callers adjusted.
4852 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4853 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4854 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4855 pointers directly.
4856 * linux-nat.c (get_detach_signal): Likewise.
4857 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4858 (thread_db_notice_clone): Adjust.
4859 (thread_db_find_new_threads_silently)
4860 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4861 a thread pointer instead of a ptid_t. All callers adjusted.
4862 * mi/mi-cmd-var.c: Include "inferior.h".
4863 (mi_cmd_var_update_iter): Update to use thread pointers.
4864 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4865 inferior directly.
4866 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4867 out to ...
4868 (mi_output_running): ... this new function.
4869 (mi_on_resume_1): Adjust to use it.
4870 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4871 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4872 directly.
4873 (interrupt_thread_callback): : Adjust to use thread and inferior
4874 pointers.
4875 * proc-service.c: Include "gdbthread.h".
4876 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4877 * progspace-and-thread.c: Include "inferior.h".
4878 * progspace.c: Include "inferior.h".
4879 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4880 hold a reference to an inferior_object.
4881 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4882 inferior_thread.
4883 * python/py-inferior.c (struct inferior_object): Give the type a
4884 tag name instead of a typedef.
4885 (python_on_normal_stop): No need to check if the current thread is
4886 listed.
4887 (inferior_to_inferior_object): Change return type to
4888 inferior_object. All callers adjusted.
4889 (find_thread_object): Delete, bits factored out to ...
4890 (thread_to_thread_object): ... this new function.
4891 * python/py-infthread.c (create_thread_object): Use
4892 inferior_to_inferior_object.
4893 (thpy_is_stopped): Use thread pointer directly.
4894 (gdbpy_selected_thread): Use inferior_thread.
4895 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4896 field, replaced with ...
4897 <thread>: ... this new field. All users adjusted.
4898 (btpy_insn_or_gap_new): Drop const.
4899 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
4900 callers adjusted.
4901 * python/py-record.c: Include "gdbthread.h".
4902 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4903 a ptid_t. All callers adjusted.
4904 (gdbpy_current_recording): Use inferior_thread.
4905 * python/py-record.h (recpy_record_object) <ptid>: Delete
4906 field, replaced with ...
4907 <thread>: ... this new field. All users adjusted.
4908 (recpy_element_object) <ptid>: Delete
4909 field, replaced with ...
4910 <thread>: ... this new field. All users adjusted.
4911 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4912 a ptid_t. All callers adjusted.
4913 * python/py-threadevent.c: Include "gdbthread.h".
4914 (get_event_thread): Use thread_to_thread_object.
4915 * python/python-internal.h (struct inferior_object): Forward
4916 declare.
4917 (find_thread_object, find_inferior_object): Delete declarations.
4918 (thread_to_thread_object, inferior_to_inferior_object): New
4919 declarations.
4920 * record-btrace.c: Include "inferior.h".
4921 (require_btrace_thread): Use inferior_thread.
4922 (record_btrace_frame_sniffer)
4923 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
4924 (get_thread_current_frame): Use scoped_restore_current_thread and
4925 switch_to_thread.
4926 (get_thread_current_frame): Use thread pointer directly.
4927 (record_btrace_replay_at_breakpoint): Use thread's inferior
4928 pointer directly.
4929 * record-full.c: Include "inferior.h".
4930 * regcache.c: Include "gdbthread.h".
4931 (get_thread_arch_regcache): Use the inferior's address space
4932 directly.
4933 (get_thread_regcache, registers_changed_thread): New.
4934 * regcache.h (get_thread_regcache(thread_info *thread)): New
4935 overload.
4936 (registers_changed_thread): New.
4937 (remote_target) <remote_detach_1>: Swap order of parameters.
4938 (remote_add_thread): <remote_add_thread>: Return the new thread.
4939 (get_remote_thread_info(ptid_t)): New overload.
4940 (remote_target::remote_notice_new_inferior): Use thread pointers
4941 directly.
4942 (remote_target::process_initial_stop_replies): Use
4943 thread_info::set_running.
4944 (remote_target::remote_detach_1, remote_target::detach)
4945 (extended_remote_target::detach): Adjust.
4946 * stack.c (frame_show_address): Use inferior_thread.
4947 * target-debug.h (target_debug_print_thread_info_pp): New.
4948 * target-delegates.c: Regenerate.
4949 * target.c (default_thread_address_space): Delete.
4950 (memory_xfer_partial_1): Use current_inferior.
4951 (target_detach): Use current_inferior.
4952 (target_thread_address_space): Delete.
4953 (generic_mourn_inferior): Use current_inferior.
4954 * target.h (struct target_ops) <thread_address_space>: Delete.
4955 (target_thread_address_space): Delete.
4956 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
4957 pointers directly.
4958 (delete_thread_1, delete_thread, delete_thread_silent): Take a
4959 thread pointer instead of a ptid_t. Adjust all callers.
4960 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
4961 (first_thread_of_process): Delete, replaced by ...
4962 (first_thread_of_inferior): ... this new function. All callers
4963 adjusted.
4964 (any_thread_of_process): Rename to ...
4965 (any_thread_of_inferior): ... this, and take an inferior pointer.
4966 (any_live_thread_of_process): Rename to ...
4967 (any_live_thread_of_inferior): ... this, and take an inferior
4968 pointer.
4969 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4970 (value_in_thread_stack_temporaries)
4971 (get_last_thread_stack_temporary): Take a thread pointer instead
4972 of a ptid_t. Adjust all callers.
4973 (thread_info::set_running): New.
4974 (validate_registers_access): Use inferior_thread.
4975 (can_access_registers_ptid): Rename to ...
4976 (can_access_registers_thread): ... this, and take a thread
4977 pointer.
4978 (print_thread_info_1): Adjust to compare thread pointers instead
4979 of ptids.
4980 (switch_to_no_thread, switch_to_thread): Make extern.
4981 (scoped_restore_current_thread::~scoped_restore_current_thread):
4982 Use m_thread pointer directly.
4983 (scoped_restore_current_thread::scoped_restore_current_thread):
4984 Use inferior_thread.
4985 (thread_command): Use thread pointer directly.
4986 (thread_num_make_value_helper): Use inferior_thread.
4987 * top.c (execute_command): Use inferior_thread.
4988 * tui/tui-interp.c: Include "inferior.h".
4989 * varobj.c (varobj_create): Use inferior_thread.
4990 (value_of_root_1): Use find_thread_global_id instead of
4991 global_thread_id_to_ptid.
4992
4993 2018-06-21 Alan Hayward <alan.hayward@arm.com>
4994
4995 * regcache.c (readable_regcache::read_part): Avoid memcpy when
4996 possible.
4997 (regcache::write_part): Likewise.
4998 (readable_regcache::cooked_read_part): Update comment.
4999 (readable_regcache::cooked_write_part): Likewise.
5000 * regcache.h: (readable_regcache::read_part): Likewise.
5001 (regcache::write_part): Likewise.
5002
5003 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5004 Dirk Schubert <dirk.schubert@arm.com>
5005
5006 * aarch64-linux-nat.c (post_attach): New.
5007 (aarch64_linux_nat_target::post_attach): Override post_attach to
5008 record the number of hardware debug registers.
5009
5010 2018-06-20 Tom Tromey <tom@tromey.com>
5011
5012 * python/py-param.c (add_setshow_generic): Make parameters const.
5013 (parmpy_init): Update.
5014
5015 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5016
5017 * regcache.h (regcache_cooked_read_ftype): Rename to...
5018 (register_read_ftype): ...this, change type to function_view.
5019 (class reg_buffer) <save>: Remove src parameter.
5020 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5021 parameter non-const in first overload. Remove src parameter in
5022 second overload.
5023 * regcache.c (do_cooked_read): Remove.
5024 (readonly_detached_regcache::readonly_detached_regcache): Make
5025 parameter non-const, adjust call to other constructor.
5026 (reg_buffer::save): Remove src parameter.
5027 * frame.c (do_frame_register_read): Remove.
5028 (frame_save_as_regcache): Use lambda function.
5029 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5030 parameter to ppu2spu_data *.
5031 (ppu2spu_sniffer): Use lambda function.
5032
5033 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5034
5035 * record-full.c (record_full_target::insert_breakpoint): Remove
5036 "struct" keyword, add const.
5037
5038 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5039
5040 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5041 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5042 * configure.ac: Remove AC_PREREQ, add missing quoting.
5043 * gnulib/configure.ac: Modernize usage of
5044 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5045 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5046 (AUTOMAKE_VERSION): Bump to 1.15.1.
5047 * configure: Re-generate.
5048 * config.in: Re-generate.
5049 * aclocal.m4: Re-generate.
5050 * gnulib/aclocal.m4: Re-generate.
5051 * gnulib/config.in: Re-generate.
5052 * gnulib/configure: Re-generate.
5053 * gnulib/import/Makefile.in: Re-generate.
5054
5055 2018-06-19 Pedro Alves <palves@redhat.com>
5056
5057 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5058 (lookup_minimal_symbol_by_pc_section): ... here with
5059 gdb_assert_not_reached added.
5060
5061 2018-06-19 Pedro Alves <palves@redhat.com>
5062
5063 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5064 parameter with a block parameter. Compare location's block symbol
5065 with the frame's block instead of addresses.
5066 (skip_inline_frames): Pass the current block instead of the
5067 frame's address. Break out as soon as we determine the frame
5068 should not be skipped.
5069
5070 2018-06-18 Tom Tromey <tom@tromey.com>
5071
5072 * solib-aix.c (solib_aix_get_section_offsets): Return
5073 unique_xmalloc_ptr.
5074 (solib_aix_solib_create_inferior_hook): Update.
5075
5076 2018-06-18 Tom Tromey <tom@tromey.com>
5077
5078 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5079
5080 2018-06-18 Tom Tromey <tom@tromey.com>
5081
5082 * solib-frv.c (frv_relocate_main_executable): Use
5083 unique_xmalloc_ptr.
5084 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5085 unique_xmalloc_ptr.
5086
5087 2018-06-18 Tom Tromey <tom@tromey.com>
5088
5089 * objfiles.h (inhibit_section_map_updates): Update.
5090 (resume_section_map_updates, resume_section_map_updates_cleanup):
5091 Remove.
5092 * solib-svr4.c (svr4_handle_solib_event): Update.
5093 * objfiles.c (inhibit_section_map_updates): Return
5094 scoped_restore_tmpl<int>.
5095 (resume_section_map_updates, resume_section_map_updates_cleanup):
5096 Remove.
5097
5098 2018-06-18 Tom Tromey <tom@tromey.com>
5099
5100 * valprint.h (read_string): Update.
5101 * valprint.c (read_string): Change type of "buffer".
5102 (val_print_string): Update.
5103 * python/py-value.c (valpy_string): Update.
5104 * language.h (struct language_defn) <la_get_string>: Change
5105 type of "buffer".
5106 (default_get_string, c_get_string): Update.
5107 * language.c (default_get_string): Change type of "buffer".
5108 * guile/scm-value.c (gdbscm_value_to_string): Update.
5109 * c-lang.c (c_get_string): Change type of "buffer".
5110
5111 2018-06-18 Tom Tromey <tom@tromey.com>
5112
5113 * ser-mingw.c (struct pipe_state_destroyer): New.
5114 (pipe_state_up): New typedef.
5115 (cleanup_pipe_state): Remove.
5116 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5117
5118 2018-06-18 Tom Tromey <tom@tromey.com>
5119
5120 * rust-lang.h (rust_yyerror): Don't declare.
5121 * rust-lang.c (rust_language_defn): Update.
5122 * rust-exp.y (yyerror): Now static.
5123 * parse.c (parse_exp_in_context_1): Update.
5124 * p-lang.h (p_yyerror): Don't declare.
5125 * p-lang.c (p_language_defn): Update.
5126 * p-exp.y (yyerror): Now static.
5127 * opencl-lang.c (opencl_language_defn): Update.
5128 * objc-lang.c (objc_language_defn): Update.
5129 * m2-lang.h (m2_yyerror): Don't declare.
5130 * m2-lang.c (m2_language_defn): Update.
5131 * m2-exp.y (yyerror): Now static.
5132 * language.h (struct language_defn) <la_error>: Remove.
5133 * language.c (unk_lang_error): Remove.
5134 (unknown_language_defn, auto_language_defn): Remove.
5135 * go-lang.h (go_yyerror): Don't declare.
5136 * go-lang.c (go_language_defn): Update.
5137 * go-exp.y (yyerror): Now static.
5138 * f-lang.h (f_yyerror): Don't declare.
5139 * f-lang.c (f_language_defn): Update.
5140 * f-exp.y (yyerror): Now static.
5141 * d-lang.h (d_yyerror): Don't declare.
5142 * d-lang.c (d_language_defn): Update.
5143 * d-exp.y (yyerror): Now static.
5144 * c-lang.h (c_yyerror): Don't declare.
5145 * c-lang.c (c_language_defn, cplus_language_defn)
5146 (asm_language_defn, minimal_language_defn): Update.
5147 * c-exp.y (yyerror): Now static.
5148 * ada-lang.h (ada_yyerror): Don't declare.
5149 * ada-lang.c (ada_language_defn): Update.
5150 * ada-exp.y (yyerror): Now static.
5151
5152 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5153
5154 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5155 (store_sveregs_to_thread): Likewise.
5156 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5157 (aarch64_linux_store_inferior_registers): Likewise.
5158 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5159 function.
5160 (aarch64_sve_regs_copy_to_regcache): Likewise.
5161 (aarch64_sve_regs_copy_from_regcache): Likewise.
5162 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5163 declaration.
5164 (aarch64_sve_regs_copy_to_regcache): Likewise.
5165 (aarch64_sve_regs_copy_from_regcache): Likewise.
5166 (sve_context): Structure from Linux headers.
5167 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5168 (SVE_SIG_ZREG_SIZE): Likewise.
5169 (SVE_SIG_PREG_SIZE): Likewise.
5170 (SVE_SIG_FFR_SIZE): Likewise.
5171 (SVE_SIG_REGS_OFFSET): Likewise.
5172 (SVE_SIG_ZREGS_OFFSET): Likewise.
5173 (SVE_SIG_ZREG_OFFSET): Likewise.
5174 (SVE_SIG_ZREGS_SIZE): Likewise.
5175 (SVE_SIG_PREGS_OFFSET): Likewise.
5176 (SVE_SIG_PREG_OFFSET): Likewise.
5177 (SVE_SIG_PREGS_SIZE): Likewise.
5178 (SVE_SIG_FFR_OFFSET): Likewise.
5179 (SVE_SIG_REGS_SIZE): Likewise.
5180 (SVE_SIG_CONTEXT_SIZE): Likewise.
5181 (SVE_PT_REGS_MASK): Likewise.
5182 (SVE_PT_REGS_FPSIMD): Likewise.
5183 (SVE_PT_REGS_SVE): Likewise.
5184 (SVE_PT_VL_INHERIT): Likewise.
5185 (SVE_PT_VL_ONEXEC): Likewise.
5186 (SVE_PT_REGS_OFFSET): Likewise.
5187 (SVE_PT_FPSIMD_OFFSET): Likewise.
5188 (SVE_PT_FPSIMD_SIZE): Likewise.
5189 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5190 (SVE_PT_SVE_PREG_SIZE): Likewise.
5191 (SVE_PT_SVE_FFR_SIZE): Likewise.
5192 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5193 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5194 (__SVE_SIG_TO_PT): Likewise.
5195 (SVE_PT_SVE_OFFSET): Likewise.
5196 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5197 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5198 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5199 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5200 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5201 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5202 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5203 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5204 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5205 (SVE_PT_SVE_SIZE): Likewise.
5206 (SVE_PT_SIZE): Likewise.
5207 (HAS_SVE_STATE): New define.
5208
5209 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5210
5211 * nat/aarch64-sve-linux-sigcontext.h: New file.
5212 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5213 new files.
5214 (SVE_VQ_MIN): Likewise.
5215 (SVE_VQ_MAX): Likewise.
5216 (SVE_VL_MIN): Likewise.
5217 (SVE_VL_MAX): Likewise.
5218 (SVE_NUM_ZREGS): Likewise.
5219 (SVE_NUM_PREGS): Likewise.
5220 (sve_vl_valid): Likewise.
5221 (struct user_sve_header): Likewise.
5222
5223 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5224 Richard Bunt <Richard.Bunt@arm.com>
5225
5226 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5227 was requested by GDB.
5228
5229 2018-06-15 Tom de Vries <tdevries@suse.de>
5230
5231 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5232
5233 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5234
5235 * gnulib/update-gnulib.sh: Print expected versions of
5236 autoconf/aclocal.
5237
5238 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5239
5240 * arch-utils.c (default_type_align): Use type_length_units.
5241 * gdbtypes.c (type_align): Use type_length_units.
5242
5243 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5244
5245 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5246 of 'define' command.
5247
5248 2018-06-14 Tom de Vries <tdevries@suse.de>
5249
5250 PR cli/22573
5251 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5252 get_no_prettyformat_print_options.
5253
5254 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5255
5256 * sparc-nat.h: Include target.h.
5257 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5258 <fetch_registers>: Remove this argument in function call.
5259 <store_registers>: Remove this argument in function call, remove
5260 extra semicolon.
5261 <low_forget_process>: Call sparc64_forget_process instead of
5262 sparc_forget_process.
5263
5264 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5265
5266 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5267 (procfs_target::make_corefile_notes): Adjust to new
5268 target_read_alloc return type.
5269
5270 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5271 Stephen Roberts <stephen.roberts@arm.com>
5272
5273 PR gdb/22882
5274 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5275 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5276 Move should_notify_stop local into more inner scope.
5277
5278 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5279 Stephen Roberts <stephen.roberts@arm.com>
5280
5281 PR gdb/22882
5282 * infrun.c (resume_1): Add call to mark_async_event_handler.
5283
5284 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5285
5286 * infrun.c (do_target_wait): Change old version of $pc printed.
5287
5288 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5289
5290 * dwarf2read.c (read_index_from_section): Rename to...
5291 (read_gdb_index_from_section): ... this, update all callers.
5292 (dwarf2_read_index): Rename to...
5293 (dwarf2_read_gdb_index): ... this, update all callers.
5294
5295 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5296
5297 * gdb/hppa-linux-nat.c
5298 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5299 hppa_linux_nat_target::fetch_registers.
5300
5301 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5302
5303 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5304 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5305 (AARCH64_DWARF_SVE_FFR): Likewise.
5306 (AARCH64_DWARF_SVE_P0): Likewise.
5307 (AARCH64_DWARF_SVE_Z0): Likewise.
5308
5309 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5310
5311 * common/common-regcache.h (raw_compare): New function.
5312 * regcache.c (regcache::raw_compare): Likewise.
5313 * regcache.h (regcache::raw_compare): New declaration.
5314
5315 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5316
5317 * common/common-regcache.h (reg_buffer_common): New structure.
5318 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5319 (reg_buffer::raw_supply): Likewise.
5320 (reg_buffer::raw_supply_integer): Likewise.
5321 (reg_buffer::raw_supply_zeroed): Likewise.
5322 (reg_buffer::raw_collect): Likewise.
5323 (reg_buffer::raw_collect_integer): Likewise.
5324 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5325 (reg_buffer::raw_supply): Likewise.
5326 (reg_buffer::raw_supply_integer): Likewise.
5327 (reg_buffer::raw_supply_zeroed): Likewise.
5328 (reg_buffer::raw_collect): Likewise.
5329 (reg_buffer::raw_collect_integer): Likewise.
5330
5331 2018-06-10 Tom Tromey <tom@tromey.com>
5332
5333 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5334 (class remote_state) <stop_reply_queue>: Now std::vector.
5335 (remote_state::~remote_state)
5336 (remote_target::stop_reply_queue_length): Update.
5337 (struct queue_iter_param, remove_child_of_pending_fork)
5338 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5339 (check_pending_event_prevents_wildcard_vcont_callback)
5340 (remove_stop_reply_for_inferior)
5341 (remove_stop_reply_of_remote_state)
5342 (remote_notif_remove_once_on_match)
5343 (stop_reply_match_ptid_and_ws)
5344 (remote_kill_child_of_pending_fork): Remove.
5345 (remote_target::remove_new_fork_children)
5346 (remote_target::check_pending_events_prevent_wildcard_vcont)
5347 (remote_target::discard_pending_stop_replies)
5348 (remote_target::discard_pending_stop_replies_in_queue)
5349 (remote_target::remote_notif_remove_queued_reply)
5350 (remote_target::queued_stop_reply)
5351 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5352 (remote_target::wait, remote_target::kill_new_fork_children)
5353 (remote_target::async): Update.
5354
5355 2018-06-10 Tom Tromey <tom@tromey.com>
5356
5357 * record-full.c (record_full_arch_list_cleanups): Remove.
5358 (record_full_message): Use try/catch.
5359 (record_full_wait_cleanups): Remove.
5360 (record_full_wait_1): Use try/catch.
5361 (record_full_restore): Likewise.
5362
5363 2018-06-10 Tom Tromey <tom@tromey.com>
5364
5365 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5366 declare VEC. Add constructor.
5367 <in_target_beneath>: Now bool.
5368 (record_full_breakpoints): Now a std::vector, static.
5369 (record_full_sync_record_breakpoints)
5370 (record_full_init_record_breakpoints)
5371 (record_full_target::insert_breakpoint)
5372 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5373
5374 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5375
5376 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5377 * serial.c (serial_interface_lookup): Remove struct keyword.
5378
5379 2018-06-10 Tom Tromey <tom@tromey.com>
5380
5381 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5382 method.
5383 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5384 a method.
5385 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5386 method.
5387 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5388 "beneath" as a method.
5389 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5390 Use "beneath" as a method.
5391
5392 2018-06-10 Tom Tromey <tom@tromey.com>
5393
5394 * tracefile.c (struct trace_file_writer_deleter): New.
5395 <operator()>: Rename from trace_file_writer_xfree.
5396 (trace_file_writer_up): New typedef.
5397 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5398
5399 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5400
5401 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5402 <m_registers, m_register_status>: Change type to
5403 std::unique_ptr.
5404 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5405 XCNEWVEC.
5406
5407 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5408
5409 * common/common-regcache.h (enum register_status): Add
5410 underlying type "signed char".
5411 * regcache.h (reg_buffer) <m_register_status>: Change type to
5412 register_status *.
5413 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5414 register_status instead of signed char.
5415 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5416 (reg_buffer::get_register_status): Remove cast.
5417 (readable_regcache::raw_read): Remove cast.
5418 (readable_regcache::cooked_read): Remove cast.
5419
5420 2018-06-09 Tom Tromey <tom@tromey.com>
5421
5422 * source.c (reverse_search_command, forward_search_command): Use
5423 scoped_fd.
5424
5425 2018-06-09 Tom Tromey <tom@tromey.com>
5426
5427 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5428 (serial_ops_list): Now static, std::vector.
5429 (serial_interface_lookup, serial_add_interface): Update.
5430
5431 2018-06-09 Tom Tromey <tom@tromey.com>
5432
5433 * dwarf2read.c (process_cu_includes): Update.
5434 (process_full_comp_unit): Update.
5435 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5436 std::vector.
5437
5438 2018-06-08 Paul Koning <paul_koning@dell.com>
5439
5440 PR gdb/23252
5441
5442 * python/python.c (do_start_initialization):
5443 Avoid call to internal Python API.
5444 (init__gdb_module): New function.
5445
5446 2018-06-08 Gary Benson <gbenson@redhat.com>
5447
5448 * linux-thread-db.c (valprint.h): New include.
5449 (struct check_thread_db_info): New structure.
5450 (check_thread_db_on_load, tdb_testinfo): New static globals.
5451 (check_thread_db, check_thread_db_callback): New functions.
5452 (try_thread_db_load_1): Run integrity checks if requested.
5453 (maintenance_check_libthread_db): New function.
5454 (_initialize_thread_db): Register "maint check libthread-db"
5455 and "maint set/show check-libthread-db".
5456 * NEWS: Mention the above new commands.
5457
5458 2018-06-08 Tom Tromey <tom@tromey.com>
5459
5460 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5461 now a method.
5462
5463 2018-06-08 Tom Tromey <tom@tromey.com>
5464
5465 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5466
5467 2018-06-08 Tom Tromey <tom@tromey.com>
5468
5469 * common/btrace-common.h (struct btrace_data): Add constructor,
5470 destructor, move assignment operator.
5471 <empty, clear, fini>: New methods.
5472 <format>: Initialize.
5473 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5474 (btrace_data_empty): Don't declare.
5475 * common/btrace-common.c (btrace_data_init): Remove.
5476 (btrace_data::fini): Rename from btrace_data_fini.
5477 (btrace_data::empty): Rename from btrace_data_empty.
5478 (btrace_data::clear): Rename from btrace_data_clear. Return
5479 bool.
5480 * btrace.h (make_cleanup_btrace_data): Don't declare.
5481 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5482 (parse_xml_btrace): Update.
5483 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5484 (maint_btrace_clear_packet_history_cmd): Update.
5485
5486 2018-06-07 Pedro Alves <palves@redhat.com>
5487
5488 * target.h (target_ops) <beneath>: Now a method. All references
5489 updated.
5490 (class target_stack): New.
5491 * target.c (g_target_stack): New.
5492 (g_current_top_target): Delete.
5493 (current_top_target): Get the top target out of g_target_stack.
5494 (target_stack::push, target_stack::unpush): New.
5495 (push_target, unpush_target): Reimplement.
5496 (target_is_pushed): Reimplement in terms of g_target_stack.
5497 (target_ops::beneath, target_stack::find_beneath): New.
5498
5499 2018-06-07 Pedro Alves <palves@redhat.com>
5500
5501 * target.h (find_target_beneath): Delete declaration.
5502 * target.c (find_target_beneath): Delete definition.
5503 * aix-thread.c: All callers of find_target_beneath adjusted to
5504 call target_ops::beneath instead.
5505 * bsd-uthread.c: Likewise.
5506 * linux-thread-db.c: Likewise.
5507 * ravenscar-thread.c: Likewise.
5508 * sol-thread.c: Likewise.
5509 * spu-multiarch.c: Likewise.
5510
5511 2018-06-07 Pedro Alves <palves@redhat.com>
5512
5513 * target.h (target_ops) <beneath>: Now a method. All references
5514 updated.
5515 (target_ops) <m_beneath>: New.
5516 * target.c (target_ops::beneath): New.
5517 * corelow.c: Adjust all references to target_ops::beneath.
5518 * linux-thread-db.c: Likewise.
5519 * make-target-delegates: Likewise.
5520 * record-btrace.c: Likewise.
5521 * record-full.c: Likewise.
5522 * remote.c: Likewise.
5523 * target.c: Likewise.
5524 * target-delegates.c: Regenerate.
5525
5526 2018-06-07 Pedro Alves <palves@redhat.com>
5527
5528 * target.h (target_stack): Delete.
5529 (current_top_target): Declare function.
5530 * target.c (target_stack): Delete.
5531 (g_current_top_target): New.
5532 (current_top_target): New function.
5533 * auxv.c: Use current_top_target instead of target_stack
5534 throughout.
5535 * avr-tdep.c: Likewise.
5536 * breakpoint.c: Likewise.
5537 * corefile.c: Likewise.
5538 * elfread.c: Likewise.
5539 * eval.c: Likewise.
5540 * exceptions.c: Likewise.
5541 * frame.c: Likewise.
5542 * gdbarch-selftests.c: Likewise.
5543 * gnu-v3-abi.c: Likewise.
5544 * ia64-tdep.c: Likewise.
5545 * ia64-vms-tdep.c: Likewise.
5546 * infcall.c: Likewise.
5547 * infcmd.c: Likewise.
5548 * infrun.c: Likewise.
5549 * linespec.c: Likewise.
5550 * linux-tdep.c: Likewise.
5551 * minsyms.c: Likewise.
5552 * ppc-linux-nat.c: Likewise.
5553 * ppc-linux-tdep.c: Likewise.
5554 * procfs.c: Likewise.
5555 * regcache.c: Likewise.
5556 * remote.c: Likewise.
5557 * rs6000-tdep.c: Likewise.
5558 * s390-linux-nat.c: Likewise.
5559 * s390-tdep.c: Likewise.
5560 * solib-aix.c: Likewise.
5561 * solib-darwin.c: Likewise.
5562 * solib-dsbt.c: Likewise.
5563 * solib-spu.c: Likewise.
5564 * solib-svr4.c: Likewise.
5565 * solib-target.c: Likewise.
5566 * sparc-tdep.c: Likewise.
5567 * sparc64-tdep.c: Likewise.
5568 * spu-tdep.c: Likewise.
5569 * symfile.c: Likewise.
5570 * symtab.c: Likewise.
5571 * target-descriptions.c: Likewise.
5572 * target-memory.c: Likewise.
5573 * target.c: Likewise.
5574 * target.h: Likewise.
5575 * tracefile-tfile.c: Likewise.
5576 * tracepoint.c: Likewise.
5577 * valops.c: Likewise.
5578 * valprint.c: Likewise.
5579 * value.c: Likewise.
5580 * windows-tdep.c: Likewise.
5581 * mi/mi-main.c: Likewise.
5582
5583 2018-06-07 Tom Tromey <tom@tromey.com>
5584
5585 * valprint.h (build_address_symbolic): Declare.
5586 * printcmd.c (print_address_symbolic): Update.
5587 (build_address_symbolic): Change "name" and "filename" to
5588 std::string.
5589 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5590 Update.
5591 * defs.h (build_address_symbolic): Remove declaration.
5592
5593 2018-06-07 Alan Hayward <alan.hayward@arm.com>
5594
5595 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5596 (aarch64_vnv_type): Add function.
5597 (aarch64_pseudo_register_name): Add V regs for SVE.
5598 (aarch64_pseudo_register_type): Likewise.
5599 (aarch64_pseudo_register_reggroup_p): Likewise.
5600 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5601 (aarch64_pseudo_read_value): Add V regs for SVE.
5602 (aarch64_pseudo_write_2): Use V0 offset for SVE
5603 (aarch64_pseudo_write): Add V regs for SVE.
5604 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5605
5606 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5607
5608 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5609 (sve_vl_from_vq): Likewise.
5610
5611 2018-06-05 Tom Tromey <tom@tromey.com>
5612
5613 * cli/cli-cmds.c (show_version): Update.
5614 * top.c (print_gdb_version): Add "interactive" parameter.
5615 Update.
5616 * main.c (captured_main_1): Update.
5617 * top.h (print_gdb_version): Add "interactive" parameter and a
5618 comment.
5619
5620 2018-06-05 David Malcolm <dmalcolm@redhat.com>
5621
5622 * common/enum-flags.h: Add trailing semicolon to example in
5623 comment.
5624
5625 2018-06-05 Tom Tromey <tom@tromey.com>
5626
5627 PR cli/12326:
5628 * NEWS: Add entry about pager.
5629 * utils.c (pagination_disabled_for_command): New global.
5630 (prompt_for_continue): Allow "c" response to prompt.
5631 (reinitialize_more_filter): Clear
5632 pagination_disabled_for_command.
5633 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5634
5635 2018-06-04 Tom Tromey <tom@tromey.com>
5636
5637 * ada-lang.h (ada_lookup_symbol_list): Update.
5638 * ada-lang.c (resolve_subexp): Update.
5639 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5640 parameter.
5641 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5642 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5643 results parameter to std::vector.
5644 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5645 Update.
5646 * ada-exp.y (block_lookup): Update.
5647 (select_possible_type_sym): Change type of syms. Remove nsyms
5648 parameter.
5649 (write_var_or_type, write_name_assoc): Update.
5650
5651 2018-06-04 Joel Brobecker <brobecker@adacore.com>
5652
5653 * windows-nat.c (windows_nat_target::xfer_partial): Return
5654 TARGET_XFER_E_IO if we need to delegate to the target beneath
5655 but BENEATH is NULL.
5656
5657 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5658
5659 * Makefile.in (config.status): Add configure.nat as a
5660 dependency.
5661
5662 2018-06-04 Tom Tromey <tom@tromey.com>
5663
5664 * cp-name-parser.y (cpname_state): Add method declarations.
5665 (HANDLE_QUAL): Update.
5666 (cpname_state::d_grab, cpname_state::fill_comp)
5667 (cpname_state::make_operator, cpname_state::make_dtor)
5668 (cpname_state::make_builtin_type, cpname_state::make_name)
5669 (cpname_state::d_qualify, cpname_state::d_int_type)
5670 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5671 (%union): Move earlier.
5672
5673 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5674
5675 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5676
5677 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5678
5679 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5680 (aarch64_pseudo_write_1): Likewise.
5681 (aarch64_pseudo_read_value): Use helper.
5682 (aarch64_pseudo_write): Likewise.
5683
5684 2018-06-04 Pedro Alves <palves@redhat.com>
5685
5686 * darwin-nat.c (darwin_ops): Delete.
5687 (darwin_attach_pid): Use get_native_target.
5688
5689 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5690
5691 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5692 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5693
5694 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5695
5696 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5697 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5698 (aarch64_gdbarch_init): Check for SVE.
5699 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5700
5701 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5702
5703 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5704 * aarch64-tdep.h (aarch64_read_description): Likewise.
5705 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5706 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5707 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5708 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5709 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5710
5711 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5712
5713 * value.c (value_fetch_lazy_bitfield): New.
5714 (value_fetch_lazy_memory): New.
5715 (value_fetch_lazy_register): New.
5716 (value_fetch_lazy): Factor out to smaller functions.
5717
5718 2018-06-01 Tom Tromey <tom@tromey.com>
5719
5720 * cp-name-parser.y (backslashable, represented): Now const.
5721
5722 2018-06-01 Tom Tromey <tom@tromey.com>
5723
5724 * cp-name-parser.y: Include parser-defs.h.
5725 (parser_fprintf): Remove declaration.
5726
5727 2018-06-01 Tom Tromey <tom@tromey.com>
5728
5729 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5730 %parse-param.
5731 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5732 (global_result): Remove globals.
5733 (struct cpname_state): New.
5734 (yyparse): Don't declare.
5735 (yylex, yyerror): Move declarations after %union.
5736 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5737 (make_name): Add state parameter.
5738 Update all callers.
5739 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5740 parameter.
5741 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5742 Update.
5743 (yylex): Add lvalp, state parameters.
5744 (yyerror): Add state parameter.
5745 (cp_demangled_name_to_comp): Update.
5746
5747 2018-06-01 Tom Tromey <tom@tromey.com>
5748
5749 * cp-name-parser.y (parser_fprintf): Declare.
5750 (GDB_YY_REMAP_PREFIX): Define.
5751 Include yy-remap.h. Don't redefine yy* identifiers.
5752
5753 2018-06-01 Tom Tromey <tom@tromey.com>
5754
5755 * python/py-type.c (typy_legacy_template_argument): Update.
5756 * cp-support.h (cp_demangled_name_to_comp): Update.
5757 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5758 parameter to be a "std::string *".
5759 (main): Update.
5760
5761 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5762
5763 * ada-lex.l: Include "diagnostics.h" instead of
5764 "common/diagnostics.h".
5765 * unittests/environ-selftests.c: Likewise.
5766 * common/diagnostics.h: Moved to ../include.
5767
5768 2018-06-01 Joel Brobecker <brobecker@adacore.com>
5769
5770 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5771 to language_mode_manual while calling breakpoint_re_set_one.
5772
5773 2018-06-01 Tom Tromey <tom@tromey.com>
5774
5775 * valops.c (value_cast_structs, destructor_name_p): Update.
5776 * symtab.c (gdb_mangle_name): Update.
5777 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5778 Update.
5779 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5780 (pascal_object_print_value_fields, pascal_object_print_value):
5781 Update.
5782 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5783 * linespec.c (find_methods): Update.
5784 * gdbtypes.h (type_name_no_tag): Remove.
5785 (type_name_or_error): Rename from type_name_no_tag_or_error.
5786 * gdbtypes.c (type_name_no_tag): Remove.
5787 (type_name_or_error): Rename from type_name_no_tag_or_error.
5788 (lookup_struct_elt_type, check_typedef): Update.
5789 * expprint.c (print_subexp_standard): Update.
5790 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5791 * d-namespace.c (d_lookup_nested_symbol): Update.
5792 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5793 (cp_print_class_member): Update.
5794 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5795 * completer.c (add_struct_fields): Update.
5796 * c-typeprint.c (cp_type_print_derivation_info)
5797 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5798 Update.
5799 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5800 (ada_prefer_type, ada_is_exception_sym): Update.
5801
5802 2018-06-01 Tom Tromey <tom@tromey.com>
5803
5804 * valops.c (enum_constant_from_type, value_namespace_elt)
5805 (value_maybe_namespace_elt): Update.
5806 * valarith.c (find_size_for_pointer_math): Update.
5807 * target-descriptions.c (make_gdb_type): Update.
5808 * symmisc.c (print_symbol): Update.
5809 * stabsread.c (define_symbol, read_type)
5810 (complain_about_struct_wipeout, add_undefined_type)
5811 (cleanup_undefined_types_1): Update.
5812 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5813 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5814 (rust_internal_print_type, rust_composite_type)
5815 (rust_evaluate_funcall, rust_evaluate_subexp)
5816 (rust_inclusive_range_type_p): Update.
5817 * python/py-type.c (typy_get_tag): Update.
5818 * p-typeprint.c (pascal_type_print_base): Update.
5819 * mdebugread.c (parse_symbol, parse_type): Update.
5820 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5821 Update.
5822 * guile/scm-type.c (gdbscm_type_tag): Update.
5823 * go-lang.c (sixg_string_p): Update.
5824 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5825 Update.
5826 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5827 (TYPE_TAG_NAME): Remove.
5828 * gdbtypes.c (type_name_no_tag): Simplify.
5829 (check_typedef, check_types_equal, recursive_dump_type)
5830 (copy_type_recursive, arch_composite_type): Update.
5831 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5832 in summary mode when needed.
5833 * eval.c (evaluate_funcall): Update.
5834 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5835 (process_structure_scope, read_enumeration_type)
5836 (read_namespace_type, read_module_type, determine_prefix): Update.
5837 * cp-support.c (inspect_type): Update.
5838 * coffread.c (process_coff_symbol, decode_base_type): Update.
5839 * c-varobj.c (c_is_path_expr_parent): Update.
5840 * c-typeprint.c (c_type_print_base_struct_union): Update.
5841 (c_type_print_base_1): Update. Print struct/class/union/enum in
5842 summary when using C language.
5843 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5844 (gen_maybe_namespace_elt): Update.
5845 * ada-lang.c (ada_type_name): Simplify.
5846 (empty_record, ada_template_to_fixed_record_type_1)
5847 (template_to_static_fixed_type)
5848 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5849
5850 2018-06-01 Tom Tromey <tom@tromey.com>
5851
5852 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5853 c_print_type.
5854 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5855 (c_print_type): Update.
5856 (c_print_type): New overload.
5857 (c_type_print_varspec_prefix, c_type_print_args)
5858 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5859 (c_type_print_base_struct_union, c_type_print_base_1)
5860 (cp_type_print_method_args): Add "language" parameter.
5861 (c_type_print_base): Update.
5862 * c-lang.h (c_print_type): Add new overload.
5863
5864 2018-06-01 Tom Tromey <tom@tromey.com>
5865
5866 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5867 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5868
5869 2018-06-01 Alan Hayward <alan.hayward@arm.com>
5870
5871 * aarch64-tdep.c (aarch64_sve_register_names): New const
5872 var.
5873 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5874 (AARCH64_SVE_Z_REGS_NUM): New define.
5875 (AARCH64_SVE_P_REGS_NUM): Likewise.
5876 (AARCH64_SVE_NUM_REGS): Likewise.
5877
5878 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
5879
5880 * nat/linux-ptrace.h [__alpha__]
5881 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5882 definitions.
5883
5884 2018-05-31 Maciej W. Rozycki <macro@mips.com>
5885
5886 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5887 the endianness selected.
5888 * NEWS: Document `set endian auto' mode operation update.
5889
5890 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5891
5892 * Makefile.in: Add new header.
5893 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5894 (sve_vl_from_vg): Likewise.
5895 (sve_vq_from_vl): Likewise.
5896 (sve_vl_from_vq): Likewise.
5897 (sve_vq_from_vg): Likewise.
5898 (sve_vg_from_vq): Likewise.
5899 * configure.nat: Add new c file.
5900 * nat/aarch64-sve-linux-ptrace.c: New file.
5901 * nat/aarch64-sve-linux-ptrace.h: New file.
5902
5903 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5904
5905 * aarch64-linux-nat.c (aarch64_linux_read_description):
5906 Add parmeter zero.
5907 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5908 Likewise.
5909 * aarch64-tdep.c (tdesc_aarch64_list): Add.
5910 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
5911 (aarch64_gdbarch_init): Add parmeter zero.
5912 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
5913 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
5914 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
5915 parmeter.
5916 * doc/gdb.texinfo: Describe SVE feature
5917 * features/aarch64-sve.c: New file.
5918
5919 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
5920
5921 PR gdb/23210
5922 * gdbarch.sh (significant_addr_bit): Default to zero when
5923 not set by target architecture.
5924 * gdbarch.c: Re-generated.
5925 * utils.c (address_significant): Update.
5926
5927 2018-05-30 Joel Brobecker <brobecker@adacore.com>
5928
5929 * stack.c (func_command): Remove trailing newline in call to error.
5930
5931 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5932
5933 * regcache.h (regcache_raw_collect): Remove, update callers to
5934 use regcache::raw_collect.
5935 * regcache.c (regcache_raw_collect): Remove.
5936
5937 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5938
5939 * regcache.h (regcache_raw_supply): Remove, update callers to
5940 use detached_regcache::raw_supply.
5941 * regcache.c (regcache_raw_supply): Remove.
5942
5943 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5944
5945 * regcache.h (regcache_cooked_write_part): Remove, update
5946 callers to use regcache::cooked_write_part.
5947 * regcache.c (regcache_cooked_write_part): Remove.
5948
5949 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5950
5951 * regcache.h (regcache_cooked_read_part): Remove, update callers
5952 to use readable_regcache::cooked_read_part.
5953 * regcache.c (regcache_cooked_read_part): Remove.
5954
5955 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5956
5957 * regcache.h (regcache_cooked_read_value): Remove, update
5958 callers to use readable_regcache::cooked_read_value.
5959 * regcache.c (regcache_cooked_read_value): Remove.
5960
5961 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5962
5963 * regcache.h (regcache_cooked_write): Remove, update callers to
5964 use regcache::cooked_write.
5965 * regcache.c (regcache_cooked_write): Remove.
5966
5967 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5968
5969 * regcache.h (regcache_invalidate): Remove, update callers to
5970 use detached_regcache::invalidate instead.
5971 * regcache.c (regcache_invalidate): Remove.
5972
5973 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5974
5975 * regcache.h (regcache_raw_write_part): Remove, update callers
5976 to use regcache::raw_write_part instead.
5977 * regcache.c (regcache_raw_write_part): Remove.
5978
5979 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5980
5981 * regcache.h (regcache_raw_read_part): Remove, update callers to
5982 use readable_regcache::raw_read_part instead.
5983 * regcache.c (regcache_raw_read_part): Remove.
5984
5985 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5986
5987 * regcache.h (regcache_cooked_read): Remove, update callers to
5988 use readable_regcache::cooked_read instead.
5989 * regcache.c (regcache_cooked_read): Remove.
5990
5991 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5992
5993 * regcache.h (regcache_raw_write): Remove, update callers to use
5994 regcache::raw_write instead.
5995 * regcache.c (regcache_raw_write): Remove.
5996
5997 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5998
5999 * regcache.h (regcache_raw_read): Remove, update callers to use
6000 readable_regcache::raw_read instead.
6001 * regcache.c (regcache_raw_read): Remove.
6002
6003 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6004
6005 * regcache.h (regcache_raw_update): Remove, update callers to
6006 use readable_regcache::raw_update instead.
6007 * regcache.c (regcache_raw_update): Remove.
6008
6009 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6010
6011 * regcache.h (regcache_register_status): Remove, update callers
6012 to use reg_buffer::get_register_status directly instead.
6013 * regcache.c (regcache_register_status): Remove.
6014
6015 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6016
6017 * regcache.h (regcache_get_ptid): Remove, update all callers to
6018 call regcache::ptid instead.
6019 * regcache.c (regcache_get_ptid): Remove.
6020
6021 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6022
6023 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6024
6025 2018-05-30 Pedro Alves <palves@redhat.com>
6026
6027 * common/common-exceptions.h (exception_rethrow): Use
6028 ATTRIBUTE_NORETURN.
6029
6030 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6031
6032 * breakpoint.c (print_solib_event, check_status_catch_solib):
6033 Remove struct keyword in range-based for loops.
6034 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6035 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6036 Likewise.
6037 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6038 Likewise.
6039 * symfile.c (addr_info_make_relative): Likewise.
6040 * thread.c (value_in_thread_stack_temporaries): Likewise.
6041
6042 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6043
6044 PR gdb/16841
6045 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6046 aggregate type to get its real type before accessing it.
6047
6048 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6049
6050 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6051 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6052 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6053 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6054 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6055 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6056 * printcmd.c (info_address_command): Likewise.
6057
6058 2018-05-29 Tom Tromey <tom@tromey.com>
6059
6060 * windows-nat.c (handle_exception): Update fall-through comment.
6061
6062 2018-05-29 Tom Tromey <tom@tromey.com>
6063
6064 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6065 (struct program_space) <added_solibs>: Now a std::vector.
6066 * breakpoint.c (print_solib_event): Update.
6067 (check_status_catch_solib): Update.
6068 * progspace.c (clear_program_space_solib_cache): Update.
6069 * solib.c (update_solib_list): Update.
6070
6071 2018-05-29 Tom Tromey <tom@tromey.com>
6072
6073 * python/py-type.c (typy_richcompare): Update.
6074 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6075 * gdbtypes.h (types_deeply_equal): Return bool.
6076 (types_equal): Likewise.
6077 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6078 declare VEC.
6079 (check_types_equal): Change worklist to std::vector. Return
6080 bool.
6081 (struct type_equality_entry): Add constructor.
6082 (compare_maybe_null_strings): Return bool.
6083 (check_types_worklist): Return bool. Change worklist to
6084 std::vector.
6085 (types_deeply_equal): Use std::vector.
6086 (types_equal): Return bool.
6087 (compare_maybe_null_strings): Simplify.
6088
6089 2018-05-29 Tom Tromey <tom@tromey.com>
6090
6091 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6092
6093 2018-05-29 Tom Tromey <tom@tromey.com>
6094
6095 * objc-lang.h: Don't include cp-support.h.
6096 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6097 declare VEC.
6098
6099 2018-05-27 Tom Tromey <tom@tromey.com>
6100
6101 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6102
6103 2018-05-25 Tom Tromey <tom@tromey.com>
6104
6105 * value.c (value::location): Initialize.
6106
6107 2018-05-25 Tom Tromey <tom@tromey.com>
6108
6109 * dbxread.c (init_bincl_list): Remove.
6110 (bincl_list): Now a std::vector.
6111 (bincls_allocated, next_bincl): Remove.
6112 (free_bincl_list, do_free_bincl_list_cleanup)
6113 (make_cleanup_free_bincl_list): Remove.
6114 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6115 unique_xmalloc_ptr.
6116 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6117 (struct header_file_location): Add constructor.
6118 (add_bincl_to_list): Remove.
6119
6120 2018-05-25 Tom Tromey <tom@tromey.com>
6121
6122 * tui/tui.c (tui_enable): Update.
6123 * mi/mi-interp.c (mi_interp::init): Update.
6124 * interps.h (class interp) <name>: New method.
6125 <m_name>: Rename from name.
6126 (~scoped_restore_interp): Update.
6127 * interps.c (interp::interp): Update.
6128 (interp_add, interp_set, interp_lookup_existing)
6129 (current_interp_named_p): Update.
6130
6131 2018-05-25 Tom Tromey <tom@tromey.com>
6132
6133 * interps.c (interp_name): Remove.
6134 * mi/mi-interp.c (mi_interp::init): Update.
6135 * interps.h (interp_name): Remove.
6136 (~scoped_restore_interp): Update.
6137 * tui/tui.c (tui_enable): Update.
6138
6139 2018-05-25 Tom Tromey <tom@tromey.com>
6140
6141 * utils.c (fputs_maybe_filtered): Update.
6142 * linespec.c (decode_line_full): Update.
6143 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6144 (mi_print_breakpoint_for_event, mi_solib_loaded)
6145 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6146 (mi_user_selected_context_changed): Update.
6147 * mi/mi-main.c (mi_execute_command): Update.
6148 * cli/cli-script.c (execute_control_command): Update.
6149 * python/python.c (execute_gdb_command): Update.
6150 * solib.c (info_sharedlibrary_command): Update.
6151 * interps.c (interp_ui_out): Remove.
6152 * interps.h (interp_ui_out): Remove.
6153
6154 2018-05-25 Tom Tromey <tom@tromey.com>
6155
6156 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6157 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6158 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6159
6160 2018-05-25 Tom Tromey <tom@tromey.com>
6161
6162 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6163 * interps.c (interp_exec): Use scoped_restore.
6164
6165 2018-05-25 Tom Tromey <tom@tromey.com>
6166
6167 * remote.c (remote_target::remote_file_get): Use
6168 gdb::byte_vector.
6169 (remote_target::remote_file_put): Likewise.
6170
6171 2018-05-25 Tom Tromey <tom@tromey.com>
6172
6173 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6174 a std::string.
6175 (get_pe_section_index, add_pe_exported_sym): Update.
6176 (read_pe_exported_syms): Use gdb::def_vector.
6177
6178 2018-05-25 Tom Tromey <tom@tromey.com>
6179
6180 * frame.c (remove_prev_frame): Remove.
6181 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6182
6183 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6184
6185 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6186 Remove prototypes.
6187 * mips-linux-nat.c (supply_fpregset): Always call
6188 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6189 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6190 `mips_fill_fpregset'.
6191 * mips-linux-tdep.c (mips_supply_fpregset)
6192 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6193 (mips_fill_fpregset_wrapper): Remove functions.
6194 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6195 (mips_linux_fpregset): Remove variable.
6196 (mips_linux_iterate_over_regset_sections): Use
6197 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6198 (mips_linux_o32_sigframe_init): Remove comment.
6199
6200 2018-05-25 Pedro Alves <palves@redhat.com>
6201
6202 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6203 (struct readahead_cache, struct packet_reg, struct
6204 remote_arch_state, class remote_state): Move higher up in the
6205 file.
6206 (remote_target::m_remote_state): Now an object instead of a pointer.
6207 (remote_target::get_remote_state): Adjust.
6208
6209 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6210
6211 * stack.c (select_and_print_frame): Delete.
6212 (struct function_bounds): Move struct within function.
6213 (func_command): Most content moved into new function
6214 find_frame_for_function, use new function, print result, add
6215 function comment.
6216 (find_frame_for_function): New function, now returns a result.
6217
6218 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6219
6220 * stack.c (iterate_over_block_arg_vars): Fix comment.
6221 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6222
6223 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6224
6225 PR gdb/23203
6226 * frame.c
6227 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6228 Define.
6229 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6230 Define.
6231 * frame.h (class scoped_restore_selected_frame): New class.
6232 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6233 of any exception, use scoped_restore_selected_frame to restore the
6234 frame instead.
6235
6236 2018-05-24 Pedro Alves <palves@redhat.com>
6237
6238 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6239 override.
6240
6241 2018-05-23 Tom Tromey <tom@tromey.com>
6242
6243 * complaints.c (struct complaints): Remove.
6244 (symfile_complaint_book): Remove.
6245 (series): New global.
6246 (complaint_internal): Update.
6247 (clear_complaints): Update.
6248
6249 2018-05-23 Tom Tromey <tom@tromey.com>
6250
6251 * complaints.c (counters): New global.
6252 (struct complain): Remove.
6253 (struct complaints) <root>: Remove.
6254 (complaint_sentinel): Remove.
6255 (symfile_complaint_book): Update.
6256 (find_complaint) Remove.
6257 (complaint_internal, clear_complaints): Update.
6258
6259 2018-05-23 Tom Tromey <tom@tromey.com>
6260
6261 * complaints.c (struct complain) <file, line>: Remove.
6262 (find_complaint): Remove file, line parameters.
6263 (complaint_internal): Update.
6264
6265 2018-05-23 Tom Tromey <tom@tromey.com>
6266
6267 * complaints.c (vcomplaint): Remove.
6268 (complaint_internal) Merge in contents of vcomplaint.
6269
6270 2018-05-23 Tom Tromey <tom@tromey.com>
6271
6272 * complaints.c (struct complaints) <explanation>: Remove.
6273 (symfile_explanations): Remove.
6274 (symfile_complaint_book): Update.
6275 (vcomplaint): Update.
6276 (struct explanation): Remove.
6277
6278 2018-05-23 Tom Tromey <tom@tromey.com>
6279
6280 * complaints.c (symfile_complaints): Remove.
6281 (complaint_internal): Remove "complaints" parameter.
6282 (clear_complaints, vcomplaint): Remove "c" parameter.
6283 (get_complaints): Remove.
6284 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6285 (dwarf2_debug_line_missing_file_complaint)
6286 (dwarf2_debug_line_missing_end_sequence_complaint)
6287 (dwarf2_complex_location_expr_complaint)
6288 (dwarf2_const_value_length_mismatch_complaint)
6289 (dwarf2_section_buffer_overflow_complaint)
6290 (dwarf2_macro_malformed_definition_complaint)
6291 (dwarf2_invalid_attrib_class_complaint)
6292 (create_addrmap_from_index, dw2_symtab_iter_next)
6293 (dw2_expand_marked_cus)
6294 (dw2_debug_names_iterator::find_vec_in_debug_names)
6295 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6296 (create_debug_type_hash_table, init_cutu_and_read_dies)
6297 (partial_die_parent_scope, add_partial_enumeration)
6298 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6299 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6300 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6301 (create_cus_hash_table, create_dwp_hash_table)
6302 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6303 (dwarf2_rnglists_process, dwarf2_ranges_process)
6304 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6305 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6306 (handle_struct_member_die, process_structure_scope)
6307 (read_array_type, read_common_block, read_module_type)
6308 (read_tag_pointer_type, read_typedef, read_base_type)
6309 (read_subrange_type, load_partial_dies, partial_die_info::read)
6310 (partial_die_info::read, partial_die_info::read)
6311 (partial_die_info::read, read_checked_initial_length_and_offset)
6312 (dwarf2_string_attr, read_formatted_entries)
6313 (dwarf_decode_line_header)
6314 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6315 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6316 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6317 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6318 (get_signatured_type, get_DW_AT_signature_type)
6319 (decode_locdesc, file_file_name, consume_improper_spaces)
6320 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6321 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6322 (dwarf2_symbol_mark_computed, set_die_type)
6323 (read_attribute_value): Update.
6324 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6325 Update.
6326 * dbxread.c (unknown_symtype_complaint)
6327 (lbrac_mismatch_complaint, repeated_header_complaint)
6328 (set_namestring, function_outside_compilation_unit_complaint)
6329 (read_dbx_symtab, process_one_symbol): Update.
6330 * gdbtypes.c (stub_noname_complaint): Update.
6331 * windows-nat.c (handle_unload_dll): Update.
6332 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6333 (decode_base_type): Update.
6334 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6335 (eb_complaint, record_include_begin, record_include_end)
6336 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6337 (process_xcoff_symbol, read_symbol)
6338 (function_outside_compilation_unit_complaint)
6339 (scan_xcoff_symtab): Update.
6340 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6341 * buildsym.c (finish_block_internal, make_blockvector)
6342 (end_symtab_get_static_block, augment_type_symtab): Update.
6343 * dtrace-probe.c (dtrace_process_dof)
6344 (dtrace_static_probe_ops::get_probes): Update.
6345 * complaints.h (struct complaint): Don't declare.
6346 (symfile_complaints): Remove.
6347 (complaint_internal): Remove "complaints" parameter.
6348 (complaint): Likewise.
6349 (clear_complaints): Likewise.
6350 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6351 (reread_symbols): Update.
6352 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6353 (dwarf2_frame_cache, decode_frame_entry): Update.
6354 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6355 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6356 (info_selectors_command): Update.
6357 * macrotab.c (macro_include, check_for_redefinition)
6358 (macro_undef): Update.
6359 * objfiles.c (filter_overlapping_sections): Update.
6360 * stabsread.c (invalid_cpp_abbrev_complaint)
6361 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6362 (define_symbol, error_type, read_type, rs6000_builtin_type)
6363 (stabs_method_name_from_physname, read_member_functions)
6364 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6365 (attach_fields_to_type, complain_about_struct_wipeout)
6366 (read_range_type, read_args, common_block_start)
6367 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6368 Update.
6369 * mdebugread.c (index_complaint, unknown_ext_complaint)
6370 (basic_type_complaint, bad_tag_guess_complaint)
6371 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6372 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6373 (parse_procedure, parse_lines)
6374 (function_outside_compilation_unit_complaint)
6375 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6376 (bad_tag_guess_complaint, reg_value_complaint): Update.
6377 * cp-support.c (demangled_name_complaint): Update.
6378 * macroscope.c (sal_macro_scope): Update.
6379 * dwarf-index-write.c (class debug_names): Update.
6380
6381 2018-05-23 Tom Tromey <tom@tromey.com>
6382
6383 * complaints.c (clear_complaints): Remove "noisy" parameter.
6384 * complaints.h (clear_complaints): Update.
6385 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6386 (reread_symbols): Update.
6387
6388 2018-05-23 Tom Tromey <tom@tromey.com>
6389
6390 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6391 SUBSEQUENT_MESSAGE.
6392 (vcomplaint, clear_complaints): Update.
6393 (symfile_explanations): Remove some messages.
6394
6395 2018-05-23 Tom Tromey <tom@tromey.com>
6396
6397 * complaints.c (internal_complaint): Remove.
6398 * complaints.h (internal_complaint): Remove.
6399
6400 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6401
6402 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6403
6404 2018-05-22 Pedro Alves <palves@redhat.com>
6405
6406 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6407 (remote_fileio_badfd, remote_fileio_return_errno)
6408 (remote_fileio_return_success, remote_fileio_func_open)
6409 (remote_fileio_func_open, remote_fileio_func_close)
6410 (remote_fileio_func_read, remote_fileio_func_write)
6411 (remote_fileio_func_lseek, remote_fileio_func_rename)
6412 (remote_fileio_func_unlink, remote_fileio_func_stat)
6413 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6414 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6415 remote_target parameter.
6416 (remote_fio_func_map) <func>: Add remote_target parameter.
6417 (do_remote_fileio_request, remote_fileio_request):
6418 * remote-fileio.h (remote_fileio_request):
6419 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6420 remote_target parameter.
6421 (remote_notif_process, handle_notification): Adjust to pass down
6422 the remote.
6423 (remote_notif_state_allocate): Add remote_target parameter. Save
6424 it.
6425 * remote-notif.h (struct remote_target): Forward declare.
6426 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6427 remote_target parameter.
6428 (struct remote_notif_state) <remote>: New field.
6429 (remote_notif_ack, remote_notif_parse): Add remote_target
6430 parameter.
6431 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6432 remote_target parameter.
6433 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6434 (threads_listing_context, rmt_thread_action, protocol_feature)
6435 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6436 (packet_result, struct threads_listing_context, remote_state):
6437 Move definitions and declarations higher up.
6438 (remote_target) <~remote_target>: Declare.
6439 (remote_download_command_source, remote_file_put, remote_file_get)
6440 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6441 (remote_hostio_pread_vFile, remote_hostio_send_command)
6442 (remote_hostio_set_filesystem, remote_hostio_open)
6443 (remote_hostio_close, remote_hostio_unlink, remote_state)
6444 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6445 (get_memory_write_packet_size, get_memory_read_packet_size)
6446 (append_pending_thread_resumptions, remote_detach_1)
6447 (append_resumption, remote_resume_with_vcont)
6448 (add_current_inferior_and_thread, wait_ns, wait_as)
6449 (process_stop_reply, remote_notice_new_inferior)
6450 (process_initial_stop_replies, remote_add_thread)
6451 (btrace_sync_conf, remote_btrace_maybe_reopen)
6452 (remove_new_fork_children, kill_new_fork_children)
6453 (discard_pending_stop_replies, stop_reply_queue_length)
6454 (check_pending_events_prevent_wildcard_vcont)
6455 (discard_pending_stop_replies_in_queue, stop_reply)
6456 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6457 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6458 (remote_interrupt_as, remote_interrupt_ns)
6459 (remote_get_noisy_reply, remote_query_attached)
6460 (remote_add_inferior, remote_current_thread, get_current_thread)
6461 (set_thread, set_general_thread, set_continue_thread)
6462 (set_general_process, write_ptid)
6463 (remote_unpack_thread_info_response, remote_get_threadinfo)
6464 (parse_threadlist_response, remote_get_threadlist)
6465 (remote_threadlist_iterator, remote_get_threads_with_ql)
6466 (remote_get_threads_with_qxfer)
6467 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6468 (get_offsets, remote_check_symbols, remote_supported_packet)
6469 (remote_query_supported, remote_packet_size)
6470 (remote_serial_quit_handler, remote_detach_pid)
6471 (remote_vcont_probe, remote_resume_with_hc)
6472 (send_interrupt_sequence, interrupt_query)
6473 (remote_notif_get_pending_events, fetch_register_using_p)
6474 (send_g_packet, process_g_packet, fetch_registers_using_g)
6475 (store_register_using_P, store_registers_using_G)
6476 (set_remote_traceframe, check_binary_download)
6477 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6478 (remote_xfer_live_readonly_partial, remote_read_bytes)
6479 (remote_send_printf, remote_flash_write, readchar)
6480 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6481 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6482 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6483 (extended_remote_disable_randomization, extended_remote_run)
6484 (send_environment_packet, extended_remote_environment_support)
6485 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6486 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6487 (packet_command): Now methods of ...
6488 (remote_target): ... this class.
6489 (m_remote_state) <remote_target>: New field.
6490 (struct remote_state) <stop_reply_queue,
6491 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6492 fields.
6493 (remote_state::remote_state): Allocate stop_reply_queue.
6494 (remote_state): Delete global.
6495 (get_remote_state_raw): Delete.
6496 (remote_target::get_remote_state): Allocate m_remote_state on
6497 demand.
6498 (get_current_remote_target): New.
6499 (remote_ops, extended_remote_ops): Delete.
6500 (wait_forever_enabled_p, remote_async_inferior_event_token):
6501 Delete, moved to struct remote_state.
6502 (remote_target::close): Delete self. Destruction bits split to
6503 ...
6504 (remote_target::~remote_target): ... this.
6505 (show_memory_packet_size): Adjust to use
6506 get_current_remote_target.
6507 (struct protocol_feature) <func>: Add remote_target parameter.
6508 All callers adjusted.
6509 (curr_quit_handler_target): New.
6510 (remote_serial_quit_handler): Reimplement.
6511 (remote_target::open_1): Adjust to use get_current_remote_target.
6512 Heap-allocate remote_target/extended_remote_target instances.
6513 (vcont_builder::vcont_builder): Add remote_target parameter, and
6514 save it in m_remote. All callers adjusted.
6515 (vcont_builder::m_remote): New field.
6516 (vcont_builder::restart, vcont_builder::flush)
6517 (vcont_builder::push_action): Use it.
6518 (remote_target::commit_resume): Use it.
6519 (struct queue_iter_param) <remote>: New field.
6520 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6521 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6522 (check_pending_event_prevents_wildcard_vcont_callback)
6523 (remote_target::check_pending_events_prevent_wildcard_vcont)
6524 (remote_target::discard_pending_stop_replies)
6525 (remote_target::discard_pending_stop_replies_in_queue)
6526 (remote_target::remote_notif_remove_queued_reply): Fill in
6527 'remote' field.
6528 (remote_notif_get_pending_events): New.
6529 (remote_target::readchar, remote_target::remote_serial_write):
6530 Save/restore curr_quit_handler_target.
6531 (putpkt): New.
6532 (kill_new_fork_children): Fill in 'remote' field.
6533 (packet_command): Use get_current_remote_target, defer to
6534 remote_target method of same name.
6535 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6536 parameter, and save it in m_remote. All callers adjusted.
6537 (scoped_remote_fd::release): Use m_remote.
6538 (scoped_remote_fd::m_remote): New field.
6539 (remote_file_put, remote_file_get, remote_file_delete): Use
6540 get_current_remote_target, defer to remote_target method of same
6541 name.
6542 (remote_btrace_reset): Add remote_state paremeter. Update all
6543 callers.
6544 (remote_async_inferior_event_handler). Pass down 'data'.
6545 (remote_new_objfile): Use get_current_remote_target.
6546 (remote_target::vcont_r_supported): New.
6547 (set_range_stepping): Use get_current_remote_target and
6548 remote_target::vcont_r_supported.
6549 (_initialize_remote): Don't allocate 'remote_state' and
6550 'stop_reply_queue' globals.
6551 * remote.h (struct remote_target): Forward declare.
6552 (getpkt, putpkt, remote_notif_get_pending_events): Add
6553 'remote_target' parameter.
6554
6555 2018-05-22 Pedro Alves <palves@redhat.com>
6556
6557 * remote.c (vcont_builder): Now a class. Make all data members
6558 private.
6559 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6560 Declare methods.
6561 (vcont_builder_restart): Rename to ...
6562 (vcont_builder::restart): ... this.
6563 (vcont_builder_flush): Rename to ...
6564 (vcont_builder::flush): ... this.
6565 (vcont_builder_push_action): Rename to ...
6566 (vcont_builder::push_action): ... this.
6567 (remote_target::commit_resume): Adjust.
6568
6569 2018-05-22 Pedro Alves <palves@redhat.com>
6570
6571 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6572 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6573 (get_fixed_memory_packet_size): New.
6574 (get_memory_packet_size): Use it.
6575 (set_memory_packet_size): Don't override the config size with
6576 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6577 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6578 Don't refer to get_memory_packet_size if not connected to a remote
6579 target. Show "(default)" if configured size is 0.
6580
6581 2018-05-22 Pedro Alves <palves@redhat.com>
6582
6583 * remote.c (remote_target::mourn_inferior): Move
6584 discard_pending_stop_replies call here from ...
6585 (_initialize_remote): ... here.
6586
6587 2018-05-22 Pedro Alves <palves@redhat.com>
6588
6589 * remote.c (compare_section_command): Remove set_general_process
6590 call.
6591
6592 2018-05-22 Pedro Alves <palves@redhat.com>
6593
6594 * remote.c (struct packet_reg, struct remote_arch_state):
6595 Move higher up in the file.
6596 (remote_state) <m_arch_states>: Store remote_arch_state values
6597 instead of remote_arch_state pointers.
6598 (remote_state::get_remote_arch_state): Adjust.
6599
6600 2018-05-22 Pedro Alves <palves@redhat.com>
6601
6602 * remote.c: Include <unordered_map>.
6603 (remote_state): Now a class.
6604 (remote_state) <get_remote_arch_state>: Declare method.
6605 <get_remote_arch_state>: New field.
6606 (remote_arch_state) <remote_arch_state>: Declare ctor.
6607 <regs>: Now a unique_ptr.
6608 (remote_gdbarch_data_handle): Delete.
6609 (get_remote_arch_state): Delete.
6610 (remote_state::get_remote_arch_state): New.
6611 (get_remote_state): Adjust to call remote_state's
6612 get_remote_arch_state method.
6613 (init_remote_state): Delete, bits factored out to ...
6614 (remote_arch_state::remote_arch_state): ... this new method.
6615 (get_remote_packet_size, get_memory_packet_size)
6616 (process_g_packet, remote_target::fetch_registers)
6617 (remote_target::prepare_to_store, store_registers_using_G)
6618 (remote_target::store_registers, remote_target::get_trace_status):
6619 Adjust to call remote_state's method.
6620 (_initialize_remote): Remove reference to
6621 remote_gdbarch_data_handle.
6622
6623 2018-05-22 Pedro Alves <palves@redhat.com>
6624
6625 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6626 pread>: New method declarations.
6627 (remote_target::open_1): Adjust.
6628 (readahead_cache_invalidate): Rename to ...
6629 (readahead_cache::invalidate): ... this, and adjust to be a class
6630 method.
6631 (readahead_cache_invalidate_fd): Rename to ...
6632 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6633 class method.
6634 (remote_hostio_pwrite): Adjust.
6635 (remote_hostio_pread_from_cache): Rename to ...
6636 (readahead_cache::pread): ... this, and adjust to be a class
6637 method.
6638 (remote_hostio_close): Adjust.
6639
6640 2018-05-22 Pedro Alves <palves@redhat.com>
6641
6642 * remote.c (remote_hostio_close_cleanup): Delete.
6643 (class scoped_remote_fd): New.
6644 (remote_file_put, remote_file_get): Use it.
6645
6646 2018-05-22 Pedro Alves <palves@redhat.com>
6647
6648 (struct vCont_action_support): Use bool and initialize all fields.
6649 (struct readahead_cache): Initialize all fields.
6650 (remote_state): Use bool and initialize all fields.
6651 (remote_state::remote_state, remote_state::~remote_state): New.
6652 (new_remote_state): Delete.
6653 (_initialize_remote): Use new to allocate remote_state.
6654
6655 2018-05-22 Pedro Alves <palves@redhat.com>
6656 張俊芝 <zjz@zjz.name>
6657
6658 PR gdb/22973
6659 * c-exp.y: Include "c-support.h".
6660 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6661 of tolower. Use c_ident_is_alpha to scan names.
6662 * c-lang.c: Include "c-support.h".
6663 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6664 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6665 * c-support.h: New file, with bits factored out from ...
6666 * cp-name-parser.y: ... this file.
6667 Include "c-support.h".
6668 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6669 c-support.h and renamed.
6670 (symbol_end, yylex): Adjust.
6671
6672 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6673
6674 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6675 parameter type to CORE_ADDR.
6676 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6677 parameter type in declaration to CORE_ADDR.
6678 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6679 target_auxv_search to get AT_HWCAP and use the result to get the
6680 target description.
6681 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6682 to CORE_ADDR. Remove the cast of the return value to unsigned
6683 long. Fix error predicate of target_auxv_search.
6684 (ppc_linux_nat_target::read_description): Change the type of the
6685 hwcap variable to CORE_ADDR.
6686
6687 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6688
6689 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6690 if the size of fpscr is larger than 32 bits.
6691
6692 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6693
6694 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6695 (ppc32_linux_vsxregmap): New global.
6696 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6697 regcache_supply_regset, and regcache_collect_regset.
6698 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6699 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6700 (fetch_vsx_register, store_vsx_register): Remove.
6701 (fetch_vsx_registers): Add regno parameter. Get regset using
6702 ppc_linux_vsxregset. Use regset to supply registers.
6703 (store_vsx_registers): Add regno parameter. Get regset using
6704 ppc_linux_vsxregset. Use regset to collect registers.
6705 (fetch_register): Call fetch_vsx_registers instead of
6706 fetch_vsx_register.
6707 (store_register): Call store_vsx_registers instead of
6708 store_vsx_register.
6709 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6710 new regno parameter.
6711 (store_ppc_registers): Call store_vsx_registers with -1 for the
6712 new regno parameter.
6713 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6714 (ppc_collect_vsxregset): Remove.
6715
6716 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6717
6718 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6719 offset fields.
6720 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6721 for vector register offset fields.
6722 (ppc64_fbsd_reg_offsets): Likewise.
6723 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6724 to vector register offset fields.
6725 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6726 to vector register offset fields.
6727 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6728 vector register offset fields.
6729 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6730 initializers for vector register offset fields.
6731 (rs6000_aix64_reg_offsets): Likewise.
6732 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6733 (ppc_supply_vrregset): Remove.
6734 (ppc_collect_vrregset): Remove.
6735 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6736 (ppc_linux_vrregset) : New function.
6737 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6738 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6739 (ppc32_linux_vrregset): Remove.
6740 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6741 and use result instead of ppc32_linux_vrregset.
6742 (ppc32_linux_reg_offsets): Remove initializers for vector register
6743 offset fields.
6744 (ppc64_linux_reg_offsets): Likewise.
6745 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6746 * ppc-linux-nat.c: Include regset.h.
6747 (gdb_vrregset_t): Adjust comment to account for little-endian
6748 mode.
6749 (supply_vrregset, fill_vrregset): Remove.
6750 (fetch_altivec_register, store_altivec_register): Remove.
6751 (fetch_altivec_registers): Add regno parameter. Get regset using
6752 ppc_linux_vrregset. Use regset to supply registers.
6753 (store_altivec_registers): Add regno parameter. Get regset using
6754 ppc_linux_vrregset. Use regset to collect registers.
6755 (fetch_register): Call fetch_altivec_registers instead of
6756 fetch_altivec_register.
6757 (store_register): Call store_altivec_registers instead of
6758 store_altivec_register.
6759 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6760 the new regno parameter.
6761 (store_ppc_registers): Call store_altivec_registers with -1 for
6762 the new regno parameter.
6763
6764 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6765
6766 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6767 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6768 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6769 (gdb_vrregset_t): Change array type size to
6770 PPC_LINUX_SIZEOF_VRREGSET.
6771 (gdb_vsxregset_t): Change array type size to
6772 PPC_LINUX_SIZEOF_VSXREGSET.
6773 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6774 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6775 PPC_LINUX_SIZEOF_VSXREGSET.
6776
6777 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6778
6779 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6780 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6781 nat/ppc-linux.c.
6782 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6783 ppc_linux_target_wordsize with tid.
6784 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6785 wordsize with tid.
6786 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6787 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6788 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6789 tid parameter. Remove static specifier.
6790 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6791 (ppc_linux_target_wordsize): New declaration.
6792
6793 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6794
6795 * arch/ppc-linux-common.c: New file.
6796 * arch/ppc-linux-common.h: New file.
6797 * arch/ppc-linux-tdesc.h: New file.
6798 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6799 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6800 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6801 arch/ppc-linux-tdesc.h.
6802 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6803 arch/ppc-linux-tdesc.h.
6804 (ppc_linux_nat_target::read_description): Remove target
6805 description matching code. Fill a ppc_linux_features struct and
6806 call ppc_linux_match_description with it. Move comment about ISA
6807 2.05 to ppc-linux-common.c.
6808 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6809 arch/ppc-linux-tdesc.h.
6810 (ppc_linux_core_read_description): Remove target description
6811 matching code. Fill a ppc_linux_features struct and call
6812 ppc_linux_match_description with it.
6813 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6814 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6815 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6816 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6817 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6818 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6819 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6820 (tdesc_powerpc_e500l): Remove.
6821
6822 2018-05-22 Joel Brobecker <brobecker@adacore.com>
6823
6824 * ada-lang.c (catch_assert_command): Pass empty string instead
6825 of NULL for excep_string argument.
6826
6827 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6828
6829 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6830 the width of the requested register exceeds the width of the
6831 `ptrace' data type.
6832
6833 2018-05-21 Tom Tromey <tom@tromey.com>
6834
6835 * printcmd.c (output_command): Remove.
6836 (output_command_const): Rename to output_command.
6837 * valprint.h (output_command): Rename from output_command_const.
6838 * tracepoint.c (trace_dump_actions): Call output_command.
6839
6840 2018-05-21 Tom Tromey <tom@tromey.com>
6841
6842 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6843 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6844 * ada-lang.h (create_ada_exception_catchpoint): Update.
6845 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6846 std::string.
6847 (create_excep_cond_exprs, ~ada_catchpoint)
6848 (should_stop_exception, print_one_exception)
6849 (print_mention_exception, print_recreate_exception): Update.
6850 (ada_get_next_arg): Remove.
6851 (catch_ada_exception_command_split): Use std::string. Change type
6852 of "excep_string", "cond_string".
6853 (catch_ada_exception_command): Update.
6854 (create_ada_exception_catchpoint): Change type of excep_string.
6855 (ada_exception_sal): Remove excep_string parameter.
6856 (~ada_catchpoint): Remove.
6857
6858 2018-05-21 Tom Tromey <tom@tromey.com>
6859
6860 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6861 cleanup.
6862
6863 2018-05-21 Tom Tromey <tom@tromey.com>
6864
6865 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6866 Return unique_xmalloc_ptr.
6867 (print_it_exception): Update.
6868
6869 2018-05-21 Tom Tromey <tom@tromey.com>
6870
6871 * tracepoint.c (trace_dump_actions): Use std::string.
6872
6873 2018-05-21 Tom Tromey <tom@tromey.com>
6874
6875 * symfile.c (reread_symbols): Use std::string for original_name.
6876
6877 2018-05-21 Tom Tromey <tom@tromey.com>
6878
6879 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6880 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6881 constructor.
6882
6883 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6884
6885 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6886 instance to...
6887 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6888 * objfiles.c (get_objfile_bfd_data): Allocate
6889 objfile_per_bfd_storage with obstack_new when allocating on
6890 obstack.
6891
6892 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6893
6894 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6895 OBSTACK_ZALLOC.
6896 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6897 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6898 * mdebugread.c (mdebug_build_psymtabs): Likewise.
6899 (add_pending): Likewise.
6900 (parse_symbol): Likewise.
6901 (parse_partial_symbols): Likewise.
6902 (psymtab_to_symtab_1): Likewise.
6903 (new_psymtab): Likewise.
6904 (elfmdebug_build_psymtabs): Likewise.
6905 * minsyms.c (terminate_minimal_symbol_table): Likewise.
6906 * objfiles.c (get_objfile_bfd_data): Likewise.
6907 (objfile_register_static_link): Likewise.
6908 * psymtab.c (allocate_psymtab): Likewise.
6909 * stabsread.c (read_member_functions): Likewise.
6910 * xcoffread.c (xcoff_end_psymtab): Likewise.
6911
6912 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6913
6914 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
6915 compiler supports std::is_trivially_constructible.
6916 * common/poison.h: Include obstack.h.
6917 (IsMallocable): Define to is_trivially_constructible if the
6918 compiler supports it, define to true_type otherwise.
6919 (xobnew): New.
6920 (XOBNEW): Redefine.
6921 (xobnewvec): New.
6922 (XOBNEWVEC): Redefine.
6923 * gdb_obstack.h (obstack_zalloc): New.
6924 (OBSTACK_ZALLOC): Redefine.
6925 (obstack_calloc): New.
6926 (OBSTACK_CALLOC): Redefine.
6927 (obstack_new): New.
6928 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
6929 (gdbarch_obstack): New declaration in gdbarch.h, definition in
6930 gdbarch.c.
6931 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
6932 obstack_calloc/obstack_zalloc.
6933 (gdbarch_obstack_zalloc): Remove.
6934 * target-descriptions.c (tdesc_data_init): Use obstack_new.
6935
6936 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6937
6938 * stack.c (backtrace_command_1): Remove useless variable int i.
6939
6940 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6941
6942 * stack.c (print_frame_info): Fix comment.
6943
6944 2018-05-18 Tom Tromey <tom@tromey.com>
6945
6946 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
6947 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
6948 (~dwarf2_per_objfile): Update
6949 (dwarf2_get_dwz_file): Use new.
6950 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6951 unique_ptr.
6952
6953 2018-05-18 Tom Tromey <tom@tromey.com>
6954
6955 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
6956 unique_ptr.
6957 * dwarf2read.c (struct dwp_file): Add constructor and
6958 initializers.
6959 (open_and_init_dwp_file): Return a unique_ptr.
6960 (dwarf2_per_objfile, create_dwp_hash_table)
6961 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
6962 (lookup_dwo_unit_in_dwp): Update.
6963 (open_and_init_dwp_file, get_dwp_file): Update.
6964
6965 2018-05-18 Tom Tromey <tom@tromey.com>
6966
6967 * dwarf2read.c (dwarf2_per_objfile): Update.
6968 (struct mapped_index): Add initializers.
6969 (dwarf2_read_index): Use new.
6970 (dw2_symtab_iter_init): Update.
6971 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
6972 unique_ptr.
6973
6974 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6975
6976 * dwarf2read.c (mapped_index) <total_size>: Remove.
6977
6978 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6979
6980 * unittests/format_pieces-selftests.c (test_format_specifier):
6981 Add ARI comments.
6982
6983 2018-05-18 Tom Tromey <tom@tromey.com>
6984
6985 * c-typeprint.c (maybe_print_hole): New function.
6986 (c_print_type_struct_field_offset): Update.
6987 (c_type_print_base_struct_union): Call maybe_print_hole.
6988
6989 2018-05-17 Keith Seitz <keiths@redhat.com>
6990
6991 * breakpoint.c (build_bpstat_chain): New function, moved from
6992 bpstat_stop_status.
6993 (bpstat_stop_status): Add optional parameter, `stop_chain'.
6994 If no stop chain is passed, call build_bpstat_chain to build it.
6995 * breakpoint.h (build_bpstat_chain): Declare.
6996 (bpstat_stop_status): Move documentation here from breakpoint.c.
6997 * infrun.c (handle_signal_stop): Before eliding inlined frames,
6998 build the stop chain and pass it to skip_inline_frames.
6999 Pass this stop chain to bpstat_stop_status.
7000 * inline-frame.c: Include breakpoint.h.
7001 (stopped_by_user_bp_inline_frame): New function.
7002 (skip_inline_frames): Add parameter `stop_chain'.
7003 Move documention to inline-frame.h.
7004 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7005 whether the frame should be elided.
7006 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7007 Add moved documentation and update for new parameter.
7008
7009 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7010
7011 PR cli/14975
7012 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7013 unittests/format_pieces-selftests.c.
7014 * common/format.h (format_piece) <operator==>: New.
7015 (format_pieces) <operator[]>: Remove.
7016 * common/format.c (format_pieces::format_pieces): Handle \e.
7017 * unittests/format_pieces-selftests.c: New.
7018
7019 2018-05-17 Tom Tromey <tom@tromey.com>
7020
7021 PR symtab/23010:
7022 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7023 (dw2_instantiate_symtab): Add skip_partial parameter.
7024 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7025 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7026 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7027 (dw2_expand_symtabs_matching_one)
7028 (dw2_find_pc_sect_compunit_symtab)
7029 (dw2_debug_names_lookup_symbol)
7030 (dw2_debug_names_expand_symtabs_for_function): Update.
7031 (init_cutu_and_read_dies): Add skip_partial parameter.
7032 (process_psymtab_comp_unit, build_type_psymtabs_1)
7033 (process_skeletonless_type_unit, load_partial_comp_unit)
7034 (psymtab_to_symtab_1): Update.
7035 (load_full_comp_unit): Add skip_partial parameter.
7036 (process_imported_unit_die, dwarf2_read_addr_index)
7037 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7038 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7039 (read_signatured_type): Update.
7040
7041 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7042
7043 * value.c (release_value): Remove unused variable.
7044 (record_latest_value): Likewise.
7045 (access_value_history): Likewise.
7046 (preserve_values): Likewise.
7047
7048 2018-05-17 Tom Tromey <tom@tromey.com>
7049
7050 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7051 Initialize.
7052
7053 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7054
7055 PR gdb/22286
7056 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7057 Also handle registers whose width is not a multiple of
7058 PTRACE_TYPE_RET.
7059 (linux_nat_trad_target::store_register): Likewise.
7060
7061 2018-05-16 Tom Tromey <tom@tromey.com>
7062
7063 * gdbcore.h (core_bfd): Redefine.
7064 * corelow.c (core_target::close): Update.
7065 (core_target_open): Update.
7066 * progspace.h (struct program_space) <cbfd>: Now a
7067 gdb_bfd_ref_ptr.
7068
7069 2018-05-16 Tom Tromey <tom@tromey.com>
7070
7071 PR cli/19551:
7072 * symfile-add-flags.h (enum symfile_add_flags)
7073 <SYMFILE_NOT_FILENAME>: New constant.
7074 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7075 objfile name from BFD.
7076 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7077 * minidebug.c (find_separate_debug_file_in_section): Put
7078 ".gnu_debugdata" into BFD's file name.
7079
7080 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7081
7082 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7083 Remove.
7084
7085 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7086
7087 PR binutils/21446
7088 * aarch64-tdep.c (aarch64_analyze_prologue,
7089 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7090 Indicate not interested in errors.
7091
7092 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7093
7094 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7095 Supply the MIPS_ZERO_REGNUM register.
7096
7097 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7098
7099 * mips-tdep.c (mask_address_var): Make variable static.
7100
7101 2018-05-14 Tom Tromey <tom@tromey.com>
7102
7103 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7104
7105 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7106
7107 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7108 FXSAVE_ADDR for the mxcsr register.
7109
7110 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7111
7112 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7113
7114 2018-05-11 Pedro Alves <palves@redhat.com>
7115
7116 * corelow.c (core_target) <core_target>: No longer inline.
7117 Initialize m_core_gdbarch, m_core_vec and build the section table
7118 here.
7119 <~core_target>: New.
7120 <core_gdbarch, get_core_register_section>: New methods.
7121 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7122 factored out from ...
7123 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7124 (core_ops): Delete.
7125 (sniff_core_bfd): Add gdbarch parameter.
7126 (core_close): Delete, merged into ...
7127 (core_target::close): ... here. Delete self.
7128 (core_close_cleanup): Delete.
7129 (core_target_open): Allocate a core_target on the heap. Use a
7130 unique_ptr instead of a cleanup. Bits moved into the core_target
7131 ctor. Adjust to use core_target methods instead of globals.
7132 (get_core_register_section): Rename to ...
7133 (core_target::get_core_register_section): ... this and adjust.
7134 (struct get_core_registers_cb_data): New.
7135 (get_core_registers_cb): Use it. Use bool.
7136 (core_target::fetch_registers, core_target::files_info)
7137 (core_target::xfer_partial, core_target::read_description)
7138 (core_target::pid_to, core_target::thread_name): Adjust to
7139 reference class fields instead of globals.
7140 * target.h (struct target_ops_deleter, target_ops_up): New.
7141
7142 2018-05-11 Pedro Alves <palves@redhat.com>
7143
7144 * corefile.c (core_file_command): Move to corelow.c.
7145 * corelow.c (the_core_target): Delete.
7146 (core_file_command): Moved from corefile.c. Check exec_bfd
7147 instead of the_core_target. Use target_detach instead of calling
7148 into the_core_target directly.
7149 (maybe_say_no_core_file_now): New.
7150 (core_target::detach): Use it.
7151 (_initialize_corelow): Remove references to the_core_target.
7152 * gdbcore.h (the_core_target): Delete.
7153
7154 2018-05-11 Tom Tromey <tromey@redhat.com>
7155 Pedro Alves <palves@redhat.com>
7156
7157 * corefile.c (core_bfd): Remove.
7158 * gdbcore.h (core_bfd): Now a macro.
7159 * progspace.h (struct program_space) <cbfd>: New field.
7160
7161 2018-05-11 Tom Tromey <tom@tromey.com>
7162
7163 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7164 gdb::def_vector.
7165
7166 2018-05-10 Tom Tromey <tom@tromey.com>
7167
7168 * configure: Rebuild.
7169 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7170
7171 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7172
7173 PR server/23158:
7174 * regformats/regdat.sh: Adjust script, following the addition
7175 of the new expedite_regs parameter to init_target_desc.
7176
7177 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7178
7179 PR gdb/23127
7180 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7181 set_gdbarch_significant_addr_bit.
7182 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7183 set_gdbarch_significant_addr_bit.
7184 * utils.c (address_significant): Update to sign extend addr.
7185
7186 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7187
7188 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7189 (xtensa_linux_init_abi): Limit tdep->num_regs by
7190 tdep->num_nopriv_regs.
7191 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7192 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7193 not initialized.
7194
7195 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7196
7197 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7198
7199 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7200
7201 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7202 (I387_MXCSR_INIT_VAL): New constant.
7203 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7204 buffer if it was supplied by the inferior.
7205 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7206 (i387_xsave_get_clear_bv): New function.
7207 (i387_supply_xsave): Only read x87 control registers from the
7208 xsave buffer if the feature is enabled, and the state will have
7209 been written, otherwise, provide a suitable default.
7210 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7211 including x87 control registers. Update control registers if they
7212 have changed from the default value, and mark features as enabled
7213 as required.
7214 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7215
7216 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7217
7218 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7219
7220 2018-05-07 Tom Tromey <tom@tromey.com>
7221
7222 * configure: Rebuild.
7223 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7224
7225 2018-05-07 Tom Tromey <tom@tromey.com>
7226
7227 PR tdep/20362:
7228 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7229 bit. Use correct value for VDIV.
7230
7231 2018-05-04 Tom Tromey <tom@tromey.com>
7232
7233 * configure: Rebuild.
7234 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7235
7236 2018-05-04 Tom Tromey <tom@tromey.com>
7237
7238 * linux-record.c (record_linux_system_call) <case
7239 RECORD_SYS_RECVFROM>: Add "break".
7240
7241 2018-05-04 Tom Tromey <tom@tromey.com>
7242
7243 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7244 Add missing "break".
7245 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7246 Add missing "break".
7247
7248 2018-05-04 Tom Tromey <tom@tromey.com>
7249
7250 * rs6000-tdep.c (ppc_process_record_op4)
7251 (ppc_process_record_op63): Add fall-through comment.
7252
7253 2018-05-04 Tom Tromey <tom@tromey.com>
7254
7255 * i386-tdep.c (i386_process_record): Add fall-through comment.
7256
7257 2018-05-04 Tom Tromey <tom@tromey.com>
7258
7259 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7260 comment.
7261
7262 2018-05-04 Tom Tromey <tom@tromey.com>
7263
7264 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7265 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7266 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7267 comment.
7268 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7269 comment.
7270 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7271 comment.
7272
7273 2018-05-04 Tom Tromey <tom@tromey.com>
7274
7275 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7276
7277 2018-05-04 Tom Tromey <tom@tromey.com>
7278
7279 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7280 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7281 * symfile.c (section_is_mapped): Fix fall-through comment.
7282 * stabsread.c (define_symbol, read_member_functions): Fix
7283 fall-through comment.
7284 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7285 comment.
7286 * remote.c (remote_wait_as): Fix fall-through comment.
7287 * p-exp.y (yylex): Fix fall-through comment.
7288 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7289 comment.
7290 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7291 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7292 * jv-exp.y (yylex): Fix fall-through comment.
7293 * go-exp.y (lex_one_token): Fix fall-through comment.
7294 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7295 fall-through comment.
7296 * f-exp.y (yylex): Fix fall-through comment.
7297 * dwarf2read.c (process_die): Fix fall-through comments.
7298 * dbxread.c (process_one_symbol): Fix fall-through comment.
7299 * d-exp.y (lex_one_token): Fix fall-through comment.
7300 * cp-name-parser.y (yylex): Fix fall-through comment.
7301 * coffread.c (coff_symtab_read): Fix fall-through comment.
7302 * c-exp.y (lex_one_token): Fix fall-through comment.
7303 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7304 comment.
7305 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7306 comment.
7307
7308 2018-05-04 Tom Tromey <tom@tromey.com>
7309
7310 PR python/22730:
7311 * NEWS: Mention gdb.execute change.
7312 * gdbcmd.h (execute_control_command): Don't declare.
7313 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7314 execute_control_commands, execute_control_commands_to_string.
7315 * cli/cli-script.h (execute_control_commands)
7316 (execute_control_commands_to_string): Declare.
7317 (execute_control_command): Add from_tty parameter.
7318 * cli/cli-script.c (execute_control_commands)
7319 (execute_control_commands_to_string): New functions.
7320 (execute_user_command): Use execute_control_commands.
7321 (execute_control_command_1): Add "from_tty" parameter. Update.
7322 (execute_control_command): Likewise.
7323
7324 2018-05-04 Tom Tromey <tom@tromey.com>
7325
7326 PR python/22731:
7327 * NEWS: Mention that breakpoint commands are writable.
7328 * python/py-breakpoint.c (bppy_set_commands): New function.
7329 (breakpoint_object_getset) <"commands">: Use it.
7330
7331 2018-05-04 Tom Tromey <tom@tromey.com>
7332
7333 * tracepoint.c (actions_command): Update.
7334 * mi/mi-cmd-break.c (mi_command_line_array)
7335 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7336 (mi_read_next_line): Remove.
7337 (mi_cmd_break_commands): Update.
7338 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7339 function_view.
7340 * cli/cli-script.c (get_command_line): Update.
7341 (process_next_line): Use function_view. Constify.
7342 (recurse_read_control_structure, read_command_lines)
7343 (read_command_lines_1): Change argument types to function_view.
7344 (do_define_command, document_command): Update.
7345 * breakpoint.h (check_tracepoint_command): Don't declare.
7346 * breakpoint.c (check_tracepoint_command): Remove.
7347 (commands_command_1, create_tracepoint_from_upload): Update.
7348
7349 2018-05-04 Tom Tromey <tom@tromey.com>
7350
7351 PR gdb/11750:
7352 * cli/cli-script.h (enum command_control_type) <define_control>:
7353 New constant.
7354 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7355 (build_command_line, execute_control_command_1)
7356 (process_next_line): Likewise.
7357 (do_define_command): New function, extracted from define_command.
7358 (define_command): Use it.
7359
7360 2018-05-04 Tom Tromey <tom@tromey.com>
7361
7362 * tracepoint.c (actions_command): Update.
7363 * cli/cli-script.h (read_command_lines): Update.
7364 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7365 (MAX_TMPBUF): Remove define.
7366 (define_command): Use string_printf.
7367 (document_command): Likewise.
7368 * breakpoint.c (commands_command_1): Update.
7369
7370 2018-05-04 Tom Tromey <tom@tromey.com>
7371
7372 * top.c (execute_command): Update.
7373 * cli/cli-script.h (print_command_lines): Now varargs.
7374 * cli/cli-script.c (print_command_lines): Now varargs.
7375 (execute_control_command_1) <case while_control, case if_control>:
7376 Update.
7377
7378 2018-05-04 Tom Tromey <tom@tromey.com>
7379
7380 * tracepoint.c (all_tracepoint_actions): Rename from
7381 all_tracepoint_actions_and_cleanup. Change return type.
7382 (actions_command, encode_actions_1, encode_actions)
7383 (trace_dump_actions, tdump_command): Update.
7384 * remote.c (remote_download_command_source): Update.
7385 * python/python.c (gdbpy_eval_from_control_command)
7386 (python_command, python_interactive_command): Update.
7387 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7388 * guile/guile.c (guile_command)
7389 (gdbscm_eval_from_control_command, guile_command): Update.
7390 * compile/compile.c (compile_code_command)
7391 (compile_print_command, compile_to_object): Update.
7392 * cli/cli-script.h (struct command_lines_deleter): New.
7393 (counted_command_line): New typedef.
7394 (struct command_line): Add constructor, destructor.
7395 <body_list>: Remove.
7396 <body_list_0, body_list_1>: New members.
7397 (command_line_up): Remove typedef.
7398 (read_command_lines, read_command_lines_1, get_command_line):
7399 Update.
7400 (copy_command_lines): Don't declare.
7401 * cli/cli-script.c (build_command_line): Use "new".
7402 (get_command_line): Return counted_command_line.
7403 (print_command_lines, execute_user_command)
7404 (execute_control_command_1, while_command, if_command): Update.
7405 (realloc_body_list): Remove.
7406 (process_next_line, recurse_read_control_structure): Update.
7407 (read_command_lines, read_command_lines_1): Return counted_command_line.
7408 (free_command_lines): Use "delete".
7409 (copy_command_lines): Remove.
7410 (define_command, document_command, show_user_1): Update.
7411 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7412 a counted_command_line.
7413 * breakpoint.h (counted_command_line): Remove typedef.
7414 (breakpoint_set_commands): Update.
7415 * breakpoint.c (check_no_tracepoint_commands)
7416 (validate_commands_for_breakpoint): Update.
7417 (breakpoint_set_commands): Change commands to be a
7418 counted_command_line.
7419 (commands_command_1, update_dprintf_command_list)
7420 (create_tracepoint_from_upload): Update.
7421
7422 2018-05-04 Tom Tromey <tom@tromey.com>
7423
7424 * cli/cli-decode.h (cmd_list_element): New constructor.
7425 (~cmd_list_element): New destructor.
7426 (struct cmd_list_element): Add initializers.
7427 * cli/cli-decode.c (do_add_cmd): Use "new".
7428 (delete_cmd): Use "delete".
7429
7430 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7431 Pedro Alves <palves@redhat.com>
7432
7433 PR breakpoints/19806 and support for PR external/20207.
7434 * NEWS: Mention Aarch64 watchpoint improvements.
7435 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7436 watchpoints and PR external/20207 watchpoints.
7437 * nat/aarch64-linux-hw-point.c
7438 (kernel_supports_any_contiguous_range): New.
7439 (aarch64_watchpoint_offset): New.
7440 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7441 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7442 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7443 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7444 next_addr_orig_p. Support PR external/20207 watchpoints.
7445 (aarch64_downgrade_regs): New.
7446 (aarch64_dr_state_insert_one_point): New parameters offset and
7447 addr_orig.
7448 (aarch64_dr_state_remove_one_point): Likewise.
7449 (aarch64_handle_breakpoint): Update caller.
7450 (aarch64_handle_aligned_watchpoint): Likewise.
7451 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7452 aligned_offset.
7453 (aarch64_linux_set_debug_regs): Remove const from state. Call
7454 aarch64_downgrade_regs.
7455 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7456 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7457 (DR_CONTROL_MASK): ... this.
7458 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7459 (unsigned int aarch64_watchpoint_offset): New prototype.
7460 (aarch64_linux_set_debug_regs): Remove const from state.
7461 * utils.c (align_up, align_down): Move to ...
7462 * common/common-utils.c (align_up, align_down): ... here.
7463 * utils.h (align_up, align_down): Move to ...
7464 * common/common-utils.h (align_up, align_down): ... here.
7465
7466 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7467
7468 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7469 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7470 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7471 Re-implement to match the ABI as summarized in GCC's
7472 gcc/config/sparc/sparc.c. All callers updated.
7473 (sparc32_store_arguments): Remove assertion.
7474
7475 2018-05-04 Tom Tromey <tom@tromey.com>
7476
7477 * printcmd.c: Don't include tui.h.
7478 (decode_format): Use skip_spaces.
7479
7480 2018-05-04 Tom Tromey <tom@tromey.com>
7481
7482 PR gdb/22619:
7483 * printcmd.c (last_count): New global.
7484 (x_command): Use saved count when repeating.
7485
7486 2018-05-04 Tom Tromey <tom@tromey.com>
7487
7488 * nto-procfs.c (do_closedir_cleanup): Remove.
7489 (procfs_pidlist): Use gdb_dir_up.
7490 * procfs.c (do_closedir_cleanup): Remove.
7491 (proc_update_threads): Use gdb_dir_up.
7492 * common/filestuff.h (struct gdb_dir_deleter): New.
7493 (gdb_dir_up): New typedef.
7494
7495 2018-05-04 Tom Tromey <tom@tromey.com>
7496
7497 * ada-lang.c (print_mention_exception): Use std::string.
7498
7499 2018-05-04 Tom Tromey <tom@tromey.com>
7500
7501 * ada-lang.c (create_excep_cond_exprs): Update.
7502 (ada_exception_catchpoint_cond_string): Use std::string.
7503
7504 2018-05-04 Tom Tromey <tom@tromey.com>
7505
7506 * ada-lang.c (xget_renaming_scope): Return std::string.
7507 (old_renaming_is_invisible): Update.
7508
7509 2018-05-04 Tom Tromey <tom@tromey.com>
7510
7511 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7512 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7513
7514 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7515
7516 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7517
7518 2018-05-04 Tom Tromey <tom@tromey.com>
7519
7520 * remote.c (remote_query_supported_append): Change type.
7521 (remote_check_symbols): Update.
7522
7523 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7524
7525 PR gdb/11420
7526 * configure.ac: Prepend libpython.
7527 * python/python-config.py: Likewise.
7528 * configure: Regenerate.
7529
7530 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7531
7532 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7533
7534 2018-05-03 Pedro Alves <palves@redhat.com>
7535
7536 * s390-linux-nat.c
7537 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7538 override. Write 'true' instead of '1'.
7539 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7540 declaration.
7541
7542 2018-05-02 Pedro Alves <palves@redhat.com>
7543
7544 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7545 add_inf_child_target.
7546 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7547 add_inf_child_target.
7548 * aix-thread.c (aix_thread_target_info): New.
7549 (aix_thread_target) <shortname, longname, doc>: Delete.
7550 <info>: New.
7551 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7552 add_inf_child_target.
7553 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7554 add_inf_child_target.
7555 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7556 add_inf_child_target.
7557 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7558 add_inf_child_target.
7559 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7560 add_inf_child_target.
7561 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7562 add_inf_child_target.
7563 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7564 add_inf_child_target.
7565 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7566 add_inf_child_target.
7567 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7568 add_inf_child_target.
7569 * bfd-target.c (target_bfd_target_info): New.
7570 (target_bfd) <shortname, longname, doc>: Delete.
7571 <info>: New.
7572 * bsd-kvm.c (bsd_kvm_target_info): New.
7573 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7574 <info>: New.
7575 (bsd_kvm_target::open): Rename to ...
7576 (bsd_kvm_target_open): ... this. Adjust.
7577 * bsd-uthread.c (bsd_uthread_target_info): New.
7578 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7579 <info>: New.
7580 * corefile.c (core_file_command): Adjust.
7581 * corelow.c (core_target_info): New.
7582 (core_target) <shortname, longname, doc>: Delete.
7583 <info>: New.
7584 (core_target::open): Rename to ...
7585 (core_target_open): ... this. Adjust.
7586 * ctf.c (ctf_target_info): New.
7587 (ctf_target) <shortname, longname, doc>: Delete.
7588 <info>: New.
7589 (ctf_target::open): Rename to ...
7590 (ctf_target_open): ... this.
7591 (_initialize_ctf): Adjust.
7592 * exec.c (exec_target_info): New.
7593 (exec_target) <shortname, longname, doc>: Delete.
7594 <info>: New.
7595 (exec_target::open): Rename to ...
7596 (exec_target_open): ... this.
7597 * gdbcore.h (core_target_open): Declare.
7598 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7599 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7600 add_inf_child_target.
7601 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7602 add_inf_child_target.
7603 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7604 add_inf_child_target.
7605 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7606 add_inf_child_target.
7607 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7608 add_inf_child_target.
7609 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7610 add_inf_child_target.
7611 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7612 add_inf_child_target.
7613 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7614 add_inf_child_target.
7615 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7616 add_inf_child_target.
7617 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7618 add_inf_child_target.
7619 * inf-child.c (inf_child_target_info): New.
7620 (inf_child_target::info): New.
7621 (inf_child_open_target): Remove 'target' parameter. Use
7622 get_native_target instead.
7623 (inf_child_target::open): Delete.
7624 (add_inf_child_target): New.
7625 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7626 Delete.
7627 <info>: New.
7628 (add_inf_child_target): Declare.
7629 (inf_child_open_target): Declare.
7630 * linux-thread-db.c (thread_db_target_info): New.
7631 (thread_db_target) <shortname, longname, doc>: Delete.
7632 <info>: New.
7633 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7634 add_inf_child_target.
7635 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7636 add_inf_child_target.
7637 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7638 add_inf_child_target.
7639 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7640 add_inf_child_target.
7641 * make-target-delegates (print_class): Adjust.
7642 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7643 add_inf_child_target.
7644 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7645 add_inf_child_target.
7646 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7647 add_inf_child_target.
7648 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7649 add_inf_child_target.
7650 * nto-procfs.c (nto_native_target_info): New.
7651 (nto_procfs_target_native) <shortname, longname, doc>:
7652 Delete.
7653 <info>: New.
7654 (nto_procfs_target_info): New.
7655 (nto_procfs_target_procfs) <shortname, longname, doc>:
7656 Delete.
7657 <info>: New.
7658 (init_procfs_targets): Adjust.
7659 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7660 add_inf_child_target.
7661 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7662 add_inf_child_target.
7663 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7664 add_inf_child_target.
7665 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7666 add_inf_child_target.
7667 * ravenscar-thread.c (ravenscar_target_info): New.
7668 (ravenscar_thread_target) <shortname, longname, doc>:
7669 Delete.
7670 <info>: New.
7671 * record-btrace.c (record_btrace_target_info):
7672 (record_btrace_target) <shortname, longname, doc>: Delete.
7673 <info>: New.
7674 (record_btrace_target::open): Rename to ...
7675 (record_btrace_target_open): ... this. Adjust.
7676 * record-full.c (record_longname, record_doc): New.
7677 (record_full_base_target) <shortname, longname, doc>: Delete.
7678 <info>: New.
7679 (record_full_target_info): New.
7680 (record_full_target): <shortname>: Delete.
7681 <info>: New.
7682 (record_full_core_open_1, record_full_open_1): Update comments.
7683 (record_full_base_target::open): Rename to ...
7684 (record_full_open): ... this.
7685 (cmd_record_full_restore): Update.
7686 (_initialize_record_full): Update.
7687 * remote-sim.c (remote_sim_target_info): New.
7688 (gdbsim_target) <shortname, longname, doc>: Delete.
7689 <info>: New.
7690 (gdbsim_target::open): Rename to ...
7691 (gdbsim_target_open): ... this.
7692 (_initialize_remote_sim): Adjust.
7693 * remote.c (remote_doc): New.
7694 (remote_target_info): New.
7695 (remote_target) <shortname, longname, doc>: Delete.
7696 <info>: New.
7697 (extended_remote_target_info): New.
7698 (extended_remote_target) <shortname, longname, doc>: Delete.
7699 <info>: New.
7700 (remote_target::open_1): Make static. Adjust.
7701 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7702 * s390-linux-nat.c (_initialize_s390_nat): Use
7703 add_inf_child_target.
7704 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7705 add_inf_child_target.
7706 * sol-thread.c (thread_db_target_info): New.
7707 (sol_thread_target) <shortname, longname, doc>: Delete.
7708 <info>: New.
7709 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7710 add_inf_child_target.
7711 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7712 add_inf_child_target.
7713 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7714 add_inf_child_target.
7715 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7716 add_inf_child_target.
7717 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7718 add_inf_child_target.
7719 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7720 add_inf_child_target.
7721 * spu-linux-nat.c (_initialize_spu_nat): Use
7722 add_inf_child_target.
7723 * spu-multiarch.c (spu_multiarch_target_info): New.
7724 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7725 <info>: New.
7726 * target-delegates.c: Regenerate.
7727 * target.c: Include <unordered_map>.
7728 (target_ops_p): Delete.
7729 (DEF_VEC_P(target_ops_p)): Delete.
7730 (target_factories): New.
7731 (test_target_info): New.
7732 (test_target_ops::info): New.
7733 (open_target): Adjust to use target_factories.
7734 (add_target_with_completer): Rename to ...
7735 (add_target): ... this. Change prototype. Register target_info
7736 and open callback in target_factories. Register target_info in
7737 command context instead of target_ops.
7738 (add_target): Delete old implementation.
7739 (add_deprecated_target_alias): Change prototype. Adjust.
7740 (the_native_target): New.
7741 (set_native_target, get_native_target): New.
7742 (find_default_run_target): Use the_native_target.
7743 (find_attach_target, find_run_target): Simplify.
7744 (target_ops::open): Delete.
7745 (dummy_target_info): New.
7746 (dummy_target::shortname, dummy_target::longname)
7747 (dummy_target::doc): Delete.
7748 (dummy_target::info): New.
7749 (debug_target::shortname, debug_target::longname)
7750 (debug_target::doc): Delete.
7751 (debug_target::info): New.
7752 * target.h (struct target_info): New.
7753 (target_ops::~target_ops): Add comment.
7754 (target_ops::info): New.
7755 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7756 longer virtual. Implement in terms of target_info.
7757 (set_native_target, get_native_target): Declare.
7758 (target_open_ftype): New.
7759 (add_target, add_target_with_completer)
7760 (add_deprecated_target_alias): Change prototype.
7761 (test_target) <shortname, longname, doc>: Delete.
7762 <info>: New.
7763 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7764 add_inf_child_target.
7765 * tracefile-tfile.c (tfile_target_info): New.
7766 (tfile_target) <shortname, longname, doc>: Delete.
7767 <info>: New.
7768 (tfile_target::open): Rename to ...
7769 (tfile_target_open): ... this.
7770 (_initialize_tracefile_tfile): Adjust.
7771 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7772 add_inf_child_target.
7773 * windows-nat.c (_initialize_windows_nat): Use
7774 add_inf_child_target.
7775 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7776 add_inf_child_target.
7777
7778 2018-05-02 Pedro Alves <palves@redhat.com>
7779
7780 * linux-nat.h (linux_nat_target) <low_new_thread,
7781 low_delete_thread, low_new_fork, low_forget_process,
7782 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7783 New virtual methods.
7784 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7785 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7786 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7787 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7788 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7789 Delete.
7790 * linux-fork.c (delete_fork): Adjust to call low method.
7791 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7792 (linux_nat_new_fork, linux_nat_forget_process_hook)
7793 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7794 (linux_nat_status_is_event):
7795 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7796 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7797 to call low method.
7798 (sigtrap_is_event): Rename to ...
7799 (linux_nat_target::low_status_is_event): ... this.
7800 (linux_nat_set_status_is_event): Delete.
7801 (save_stop_reason, linux_nat_wait_1)
7802 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7803 low methods.
7804 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7805 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7806 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7807 (linux_nat_set_prepare_to_resume): Delete.
7808 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7809 low virtual methods.
7810 * amd64-linux-nat.c: Likewise.
7811 * arm-linux-nat.c: Likewise.
7812 * i386-linux-nat.c: Likewise.
7813 * ia64-linux-nat.c: Likewise.
7814 * mips-linux-nat.c: Likewise.
7815 * ppc-linux-nat.c: Likewise.
7816 * s390-linux-nat.c: Likewise.
7817 * sparc64-linux-nat.c: Likewise.
7818 * x86-linux-nat.c: Likewise.
7819 * x86-linux-nat.h: Include "nat/x86-linux.h".
7820 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7821 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7822 Override methods.
7823
7824 2018-05-02 Pedro Alves <palves@redhat.com>
7825
7826 * target.h (target_ops)
7827 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7828 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7829 stopped_by_watchpoint, have_continuable_watchpoint,
7830 stopped_data_address, watchpoint_addr_within_range,
7831 can_accel_watchpoint_condition, can_run, thread_alive,
7832 has_all_memory, has_memory, has_stack, has_registers,
7833 has_execution, can_async_p, is_async_p, supports_non_stop,
7834 always_non_stop_p, can_execute_reverse, supports_multi_process,
7835 supports_enable_disable_tracepoint,
7836 supports_disable_randomization, supports_string_tracing,
7837 supports_evaluation_of_breakpoint_conditions,
7838 can_run_breakpoint_commands, filesystem_is_local,
7839 can_download_tracepoint, get_trace_state_variable_value,
7840 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7841 record_is_replaying, record_will_replay,
7842 augmented_libraries_svr4_read>: Adjust to return bool.
7843 * aarch64-linux-nat.c: All implementations adjusted.
7844 * aix-thread.c: All implementations adjusted.
7845 * arm-linux-nat.c: All implementations adjusted.
7846 * breakpoint.c: All implementations adjusted.
7847 * bsd-kvm.c: All implementations adjusted.
7848 * bsd-uthread.c: All implementations adjusted.
7849 * corelow.c: All implementations adjusted.
7850 * ctf.c: All implementations adjusted.
7851 * darwin-nat.c: All implementations adjusted.
7852 * darwin-nat.h: All implementations adjusted.
7853 * exec.c: All implementations adjusted.
7854 * fbsd-nat.c: All implementations adjusted.
7855 * fbsd-nat.h: All implementations adjusted.
7856 * gnu-nat.c: All implementations adjusted.
7857 * gnu-nat.h: All implementations adjusted.
7858 * go32-nat.c: All implementations adjusted.
7859 * ia64-linux-nat.c: All implementations adjusted.
7860 * inf-child.c: All implementations adjusted.
7861 * inf-child.h: All implementations adjusted.
7862 * inf-ptrace.c: All implementations adjusted.
7863 * inf-ptrace.h: All implementations adjusted.
7864 * linux-nat.c: All implementations adjusted.
7865 * linux-nat.h: All implementations adjusted.
7866 * mips-linux-nat.c: All implementations adjusted.
7867 * nto-procfs.c: All implementations adjusted.
7868 * ppc-linux-nat.c: All implementations adjusted.
7869 * procfs.c: All implementations adjusted.
7870 * ravenscar-thread.c: All implementations adjusted.
7871 * record-btrace.c: All implementations adjusted.
7872 * record-full.c: All implementations adjusted.
7873 * remote-sim.c: All implementations adjusted.
7874 * remote.c: All implementations adjusted.
7875 * s390-linux-nat.c: All implementations adjusted.
7876 * sol-thread.c: All implementations adjusted.
7877 * spu-multiarch.c: All implementations adjusted.
7878 * target-delegates.c: All implementations adjusted.
7879 * target.c: All implementations adjusted.
7880 * target.h: All implementations adjusted.
7881 * tracefile-tfile.c: All implementations adjusted.
7882 * tracefile.c: All implementations adjusted.
7883 * tracefile.h: All implementations adjusted.
7884 * windows-nat.c: All implementations adjusted.
7885 * x86-linux-nat.h: All implementations adjusted.
7886 * x86-nat.h: All implementations adjusted.
7887
7888 2018-05-02 Pedro Alves <palves@redhat.com>
7889
7890 * make-target-delegates (scan_target_h): Don't trim lines here.
7891 Replace sequences of tabs and/or whitespace with a single
7892 whitespace.
7893 (top level, parsing methods): Trim each line before processing it
7894 here.
7895
7896 2018-05-02 Pedro Alves <palves@redhat.com>
7897 John Baldwin <jhb@freebsd.org>
7898
7899 * target.h (enum strata) <debug_stratum>: New.
7900 (struct target_ops) <all delegation methods>: Replace by C++
7901 virtual methods, and drop "to_" prefix. All references updated
7902 throughout.
7903 <to_shortname, to_longname, to_doc, to_data,
7904 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
7905 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
7906 virtual methods. All references updated throughout.
7907 <can_attach, supports_terminal_ours, can_create_inferior,
7908 get_thread_control_capabilities, attach_no_wait>: New
7909 virtual methods.
7910 <insert_breakpoint, remove_breakpoint>: Now
7911 TARGET_DEFAULT_NORETURN methods.
7912 <info_proc>: Now returns bool.
7913 <to_magic>: Delete.
7914 (OPS_MAGIC): Delete.
7915 (current_target): Delete. All references replaced by references
7916 to ...
7917 (target_stack): ... this. New.
7918 (target_shortname, target_longname): Adjust.
7919 (target_can_run): Now a function declaration.
7920 (default_child_has_all_memory, default_child_has_memory)
7921 (default_child_has_stack, default_child_has_registers)
7922 (default_child_has_execution): Remove target_ops parameter.
7923 (complete_target_initialization): Delete.
7924 (memory_breakpoint_target): New template class.
7925 (test_target_ops): Refactor as a C++ class with virtual methods.
7926 * make-target-delegates (NAME_PART): Tighten.
7927 (POINTER_PART, CP_SYMBOL): New.
7928 (SIMPLE_RETURN_PART): Reimplement.
7929 (VEC_RETURN_PART): Expect less.
7930 (RETURN_PART, VIRTUAL_PART): New.
7931 (METHOD): Adjust to C++ virtual methods.
7932 (scan_target_h): Remove reference to C99.
7933 (dname): Output "target_ops::" prefix.
7934 (write_function_header): Adjust to output a C++ class method.
7935 (write_declaration): New.
7936 (write_delegator): Adjust to output a C++ class method.
7937 (tdname): Output "dummy_target::" prefix.
7938 (write_tdefault, write_debugmethod): Adjust to output a C++ class
7939 method.
7940 (tdefault_names, debug_names): Delete.
7941 (return_types, tdefaults, styles, argtypes_array): New.
7942 (top level): All methods are delegators.
7943 (print_class): New.
7944 (top level): Print dummy_target and debug_target classes.
7945 * target-delegates.c: Regenerate.
7946 * target-debug.h (target_debug_print_enum_info_proc_what)
7947 (target_debug_print_thread_control_capabilities)
7948 (target_debug_print_thread_info_p): New.
7949 * target.c (dummy_target): Delete.
7950 (the_dummy_target, the_debug_target): New.
7951 (target_stack): Now extern.
7952 (set_targetdebug): Push/unpush debug target.
7953 (default_child_has_all_memory, default_child_has_memory)
7954 (default_child_has_stack, default_child_has_registers)
7955 (default_child_has_execution): Remove target_ops parameter.
7956 (complete_target_initialization): Delete.
7957 (add_target_with_completer): No longer call
7958 complete_target_initialization.
7959 (target_supports_terminal_ours): Use regular delegation.
7960 (update_current_target): Delete.
7961 (push_target): No longer check magic number. Don't call
7962 update_current_target.
7963 (unpush_target): Don't call update_current_target.
7964 (target_is_pushed): No longer check magic number.
7965 (target_require_runnable): Skip for all stratums over
7966 process_stratum.
7967 (target_ops::info_proc): New.
7968 (target_info_proc): Use find_target_at and
7969 find_default_run_target.
7970 (target_supports_disable_randomization): Use regular delegation.
7971 (target_get_osdata): Use find_target_at.
7972 (target_ops::open, target_ops::close, target_ops::can_attach)
7973 (target_ops::attach, target_ops::can_create_inferior)
7974 (target_ops::create_inferior, target_ops::can_run)
7975 (target_can_run): New.
7976 (default_fileio_target): Use regular delegation.
7977 (target_ops::fileio_open, target_ops::fileio_pwrite)
7978 (target_ops::fileio_pread, target_ops::fileio_fstat)
7979 (target_ops::fileio_close, target_ops::fileio_unlink)
7980 (target_ops::fileio_readlink): New.
7981 (target_fileio_open_1, target_fileio_unlink)
7982 (target_fileio_readlink): Always call the target method. Handle
7983 FILEIO_ENOSYS.
7984 (return_zero, return_zero_has_execution): Delete.
7985 (init_dummy_target): Delete.
7986 (dummy_target::dummy_target, dummy_target::shortname)
7987 (dummy_target::longname, dummy_target::doc)
7988 (debug_target::debug_target, debug_target::shortname)
7989 (debug_target::longname, debug_target::doc): New.
7990 (target_supports_delete_record): Use regular delegation.
7991 (setup_target_debug): Delete.
7992 (maintenance_print_target_stack): Skip debug_stratum.
7993 (initialize_targets): Instantiate the_dummy_target and
7994 the_debug_target.
7995 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
7996 use target_stack.
7997 (target_auxv_search, fprint_target_auxv): Adjust.
7998 (info_auxv_command): Adjust to use target_stack.
7999 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8000 * exceptions.c (print_flush): Handle a NULL target_stack.
8001 * regcache.c (target_ops_no_register): Refactor as class with
8002 virtual methods.
8003
8004 * exec.c (exec_target): New class.
8005 (exec_ops): Now an exec_target.
8006 (exec_open, exec_close_1, exec_get_section_table)
8007 (exec_xfer_partial, exec_files_info, exec_has_memory)
8008 (exec_make_note_section): Refactor as exec_target methods.
8009 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8010 Delete.
8011 (exec_target::find_memory_regions): New.
8012 (_initialize_exec): Don't call init_exec_ops.
8013 * gdbcore.h (exec_file_clear): Delete.
8014
8015 * corefile.c (core_target): Delete.
8016 (core_file_command): Adjust.
8017 * corelow.c (core_target): New class.
8018 (the_core_target): New.
8019 (core_close): Remove target_ops parameter.
8020 (core_close_cleanup): Adjust.
8021 (core_target::close): New.
8022 (core_open, core_detach, get_core_registers, core_files_info)
8023 (core_xfer_partial, core_thread_alive, core_read_description)
8024 (core_pid_to_str, core_thread_name, core_has_memory)
8025 (core_has_stack, core_has_registers, core_info_proc): Rework as
8026 core_target methods.
8027 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8028 (_initialize_corelow): Initialize the_core_target.
8029 * gdbcore.h (core_target): Delete.
8030 (the_core_target): New.
8031
8032 * ctf.c: (ctf_target): New class.
8033 (ctf_ops): Now a ctf_target.
8034 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8035 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8036 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8037 methods.
8038 (init_ctf_ops): Delete.
8039 (_initialize_ctf): Don't call it.
8040 * tracefile-tfile.c (tfile_target): New class.
8041 (tfile_ops): Now a tfile_target.
8042 (tfile_open, tfile_close, tfile_files_info)
8043 (tfile_get_tracepoint_status, tfile_trace_find)
8044 (tfile_fetch_registers, tfile_xfer_partial)
8045 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8046 Refactor as tfile_target methods.
8047 (tfile_xfer_partial_features): Remove target_ops parameter.
8048 (init_tfile_ops): Delete.
8049 (_initialize_tracefile_tfile): Don't call it.
8050 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8051 (tracefile_has_stack, tracefile_has_registers)
8052 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8053 tracefile_target methods.
8054 (init_tracefile_ops): Delete.
8055 (tracefile_target::tracefile_target): New.
8056 * tracefile.h: Include "target.h".
8057 (tracefile_target): New class.
8058 (init_tracefile_ops): Delete.
8059
8060 * spu-multiarch.c (spu_multiarch_target): New class.
8061 (spu_ops): Now a spu_multiarch_target.
8062 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8063 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8064 (spu_search_memory, spu_mourn_inferior): Refactor as
8065 spu_multiarch_target methods.
8066 (init_spu_ops): Delete.
8067 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8068 complete_target_initialization.
8069
8070 * ravenscar-thread.c (ravenscar_thread_target): New class.
8071 (ravenscar_ops): Now a ravenscar_thread_target.
8072 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8073 (ravenscar_thread_alive, ravenscar_pid_to_str)
8074 (ravenscar_fetch_registers, ravenscar_store_registers)
8075 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8076 (ravenscar_stopped_by_hw_breakpoint)
8077 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8078 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8079 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8080 methods.
8081 (init_ravenscar_thread_ops): Delete.
8082 (_initialize_ravenscar): Remove references to
8083 init_ravenscar_thread_ops and complete_target_initialization.
8084
8085 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8086 (bsd_uthread_target): New class.
8087 (bsd_uthread_ops): Now a bsd_uthread_target.
8088 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8089 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8090 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8091 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8092 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8093 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8094 (bsd_uthread_target): Delete function.
8095 (_initialize_bsd_uthread): Remove reference to
8096 complete_target_initialization.
8097
8098 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8099 (target_bfd): ... this new class.
8100 (target_bfd_xfer_partial, target_bfd_get_section_table)
8101 (target_bfd_close): Refactor as target_bfd methods.
8102 (target_bfd::~target_bfd): New.
8103 (target_bfd_reopen): Adjust.
8104 (target_bfd::close): New.
8105
8106 * record-btrace.c (record_btrace_target): New class.
8107 (record_btrace_ops): Now a record_btrace_target.
8108 (record_btrace_open, record_btrace_stop_recording)
8109 (record_btrace_disconnect, record_btrace_close)
8110 (record_btrace_async, record_btrace_info)
8111 (record_btrace_insn_history, record_btrace_insn_history_range)
8112 (record_btrace_insn_history_from, record_btrace_call_history)
8113 (record_btrace_call_history_range)
8114 (record_btrace_call_history_from, record_btrace_record_method)
8115 (record_btrace_is_replaying, record_btrace_will_replay)
8116 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8117 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8118 (record_btrace_store_registers, record_btrace_prepare_to_store)
8119 (record_btrace_to_get_unwinder)
8120 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8121 (record_btrace_commit_resume, record_btrace_wait)
8122 (record_btrace_stop, record_btrace_can_execute_reverse)
8123 (record_btrace_stopped_by_sw_breakpoint)
8124 (record_btrace_supports_stopped_by_sw_breakpoint)
8125 (record_btrace_stopped_by_hw_breakpoint)
8126 (record_btrace_supports_stopped_by_hw_breakpoint)
8127 (record_btrace_update_thread_list, record_btrace_thread_alive)
8128 (record_btrace_goto_begin, record_btrace_goto_end)
8129 (record_btrace_goto, record_btrace_stop_replaying_all)
8130 (record_btrace_execution_direction)
8131 (record_btrace_prepare_to_generate_core)
8132 (record_btrace_done_generating_core): Refactor as
8133 record_btrace_target methods.
8134 (init_record_btrace_ops): Delete.
8135 (_initialize_record_btrace): Remove reference to
8136 init_record_btrace_ops.
8137 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8138 the execution_direction global.
8139 (record_full_base_target, record_full_target)
8140 (record_full_core_target): New classes.
8141 (record_full_ops): Now a record_full_target.
8142 (record_full_core_ops): Now a record_full_core_target.
8143 (record_full_target::detach, record_full_target::disconnect)
8144 (record_full_core_target::disconnect)
8145 (record_full_target::mourn_inferior, record_full_target::kill):
8146 New.
8147 (record_full_open, record_full_close, record_full_async): Refactor
8148 as methods of the record_full_base_target class.
8149 (record_full_resume, record_full_commit_resume): Refactor
8150 as methods of the record_full_target class.
8151 (record_full_wait, record_full_stopped_by_watchpoint)
8152 (record_full_stopped_data_address)
8153 (record_full_stopped_by_sw_breakpoint)
8154 (record_full_supports_stopped_by_sw_breakpoint)
8155 (record_full_stopped_by_hw_breakpoint)
8156 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8157 methods of the record_full_base_target class.
8158 (record_full_store_registers, record_full_xfer_partial)
8159 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8160 Refactor as methods of the record_full_target class.
8161 (record_full_can_execute_reverse, record_full_get_bookmark)
8162 (record_full_goto_bookmark, record_full_execution_direction)
8163 (record_full_record_method, record_full_info, record_full_delete)
8164 (record_full_is_replaying, record_full_will_replay)
8165 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8166 (record_full_stop_replaying): Refactor as methods of the
8167 record_full_base_target class.
8168 (record_full_core_resume, record_full_core_kill)
8169 (record_full_core_fetch_registers)
8170 (record_full_core_prepare_to_store)
8171 (record_full_core_store_registers, record_full_core_xfer_partial)
8172 (record_full_core_insert_breakpoint)
8173 (record_full_core_remove_breakpoint)
8174 (record_full_core_has_execution): Refactor
8175 as methods of the record_full_core_target class.
8176 (record_full_base_target::supports_delete_record): New.
8177 (init_record_full_ops): Delete.
8178 (init_record_full_core_ops): Delete.
8179 (record_full_save): Refactor as method of the
8180 record_full_base_target class.
8181 (_initialize_record_full): Remove references to
8182 init_record_full_ops and init_record_full_core_ops.
8183
8184 * remote.c (remote_target, extended_remote_target): New classes.
8185 (remote_ops): Now a remote_target.
8186 (extended_remote_ops): Now an extended_remote_target.
8187 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8188 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8189 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8190 (remote_pass_signals, remote_set_syscall_catchpoint)
8191 (remote_program_signals, )
8192 (remote_thread_always_alive): Remove target_ops parameter.
8193 (remote_thread_alive, remote_thread_name)
8194 (remote_update_thread_list, remote_threads_extra_info)
8195 (remote_static_tracepoint_marker_at)
8196 (remote_static_tracepoint_markers_by_strid)
8197 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8198 (remote_open): Refactor as methods of remote_target.
8199 (extended_remote_open, extended_remote_detach)
8200 (extended_remote_attach, extended_remote_post_attach):
8201 (extended_remote_supports_disable_randomization)
8202 (extended_remote_create_inferior): : Refactor as method of
8203 extended_remote_target.
8204 (remote_set_permissions, remote_open_1, remote_detach)
8205 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8206 (remote_resume, remote_commit_resume, remote_stop)
8207 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8208 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8209 (remote_prepare_to_store, remote_store_registers)
8210 (remote_flash_erase, remote_flash_done, remote_files_info)
8211 (remote_kill, remote_mourn, remote_insert_breakpoint)
8212 (remote_remove_breakpoint, remote_insert_watchpoint)
8213 (remote_watchpoint_addr_within_range)
8214 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8215 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8216 (remote_supports_stopped_by_sw_breakpoint)
8217 (remote_stopped_by_hw_breakpoint)
8218 (remote_supports_stopped_by_hw_breakpoint)
8219 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8220 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8221 (remote_verify_memory): Refactor as methods of remote_target.
8222 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8223 parameter.
8224 (remote_xfer_partial, remote_get_memory_xfer_limit)
8225 (remote_search_memory, remote_rcmd, remote_memory_map)
8226 (remote_pid_to_str, remote_get_thread_local_address)
8227 (remote_get_tib_address, remote_read_description): Refactor as
8228 methods of remote_target.
8229 (remote_target::fileio_open, remote_target::fileio_pwrite)
8230 (remote_target::fileio_pread, remote_target::fileio_close): New.
8231 (remote_hostio_readlink, remote_hostio_fstat)
8232 (remote_filesystem_is_local, remote_can_execute_reverse)
8233 (remote_supports_non_stop, remote_supports_disable_randomization)
8234 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8235 (remote_supports_enable_disable_tracepoint)
8236 (remote_supports_string_tracing)
8237 (remote_can_run_breakpoint_commands, remote_trace_init)
8238 (remote_download_tracepoint, remote_can_download_tracepoint)
8239 (remote_download_trace_state_variable, remote_enable_tracepoint)
8240 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8241 (remote_trace_start, remote_get_trace_status)
8242 (remote_get_tracepoint_status, remote_trace_stop)
8243 (remote_trace_find, remote_get_trace_state_variable_value)
8244 (remote_save_trace_data, remote_get_raw_trace_data)
8245 (remote_set_disconnected_tracing, remote_core_of_thread)
8246 (remote_set_circular_trace_buffer, remote_traceframe_info)
8247 (remote_get_min_fast_tracepoint_insn_len)
8248 (remote_set_trace_buffer_size, remote_set_trace_notes)
8249 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8250 (remote_disable_btrace, remote_teardown_btrace)
8251 (remote_read_btrace, remote_btrace_conf)
8252 (remote_augmented_libraries_svr4_read, remote_load)
8253 (remote_pid_to_exec_file, remote_can_do_single_step)
8254 (remote_execution_direction, remote_thread_handle_to_thread_info):
8255 Refactor as methods of remote_target.
8256 (init_remote_ops, init_extended_remote_ops): Delete.
8257 (remote_can_async_p, remote_is_async_p, remote_async)
8258 (remote_thread_events, remote_upload_tracepoints)
8259 (remote_upload_trace_state_variables): Refactor as methods of
8260 remote_target.
8261 (_initialize_remote): Remove references to init_remote_ops and
8262 init_extended_remote_ops.
8263
8264 * remote-sim.c (gdbsim_target): New class.
8265 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8266 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8267 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8268 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8269 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8270 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8271 Refactor as methods of gdbsim_target.
8272 (gdbsim_ops): Now a gdbsim_target.
8273 (init_gdbsim_ops): Delete.
8274 (gdbsim_cntrl_c): Adjust.
8275 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8276
8277 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8278 (the_amd64_linux_nat_target): New.
8279 (amd64_linux_fetch_inferior_registers)
8280 (amd64_linux_store_inferior_registers): Refactor as methods of
8281 amd64_linux_nat_target.
8282 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8283 * i386-linux-nat.c: Don't include "linux-nat.h".
8284 (i386_linux_nat_target): New class.
8285 (the_i386_linux_nat_target): New.
8286 (i386_linux_fetch_inferior_registers)
8287 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8288 as methods of i386_linux_nat_target.
8289 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8290 * inf-child.c (inf_child_ops): Delete.
8291 (inf_child_fetch_inferior_registers)
8292 (inf_child_store_inferior_registers): Delete.
8293 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8294 methods of inf_child_target.
8295 (inf_child_target::supports_terminal_ours)
8296 (inf_child_target::terminal_init)
8297 (inf_child_target::terminal_inferior)
8298 (inf_child_target::terminal_ours_for_output)
8299 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8300 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8301 New.
8302 (inf_child_open, inf_child_disconnect, inf_child_close)
8303 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8304 (inf_child_post_startup_inferior, inf_child_can_run)
8305 (inf_child_pid_to_exec_file): Refactor as methods of
8306 inf_child_target.
8307 (inf_child_follow_fork): Delete.
8308 (inf_child_target::can_create_inferior)
8309 (inf_child_target::can_attach): New.
8310 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8311 (inf_child_target::has_stack, inf_child_target::has_registers)
8312 (inf_child_target::has_execution): New.
8313 (inf_child_fileio_open, inf_child_fileio_pwrite)
8314 (inf_child_fileio_pread, inf_child_fileio_fstat)
8315 (inf_child_fileio_close, inf_child_fileio_unlink)
8316 (inf_child_fileio_readlink, inf_child_use_agent)
8317 (inf_child_can_use_agent): Refactor as methods of
8318 inf_child_target.
8319 (return_zero, inf_child_target): Delete.
8320 (inf_child_target::inf_child_target): New.
8321 * inf-child.h: Include "target.h".
8322 (inf_child_target): Delete function prototype.
8323 (inf_child_target): New class.
8324 (inf_child_open_target, inf_child_mourn_inferior)
8325 (inf_child_maybe_unpush_target): Delete.
8326 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8327 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8328 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8329 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8330 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8331 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8332 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8333 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8334 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8335 methods of inf_ptrace_target.
8336 (inf_ptrace_target): Delete function.
8337 * inf-ptrace.h: Include "inf-child.h".
8338 (inf_ptrace_target): Delete function declaration.
8339 (inf_ptrace_target): New class.
8340 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8341 * linux-nat.c (linux_target): New.
8342 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8343 (linux_nat_target::~linux_nat_target): New.
8344 (linux_child_post_attach, linux_child_post_startup_inferior)
8345 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8346 (linux_child_remove_fork_catchpoint)
8347 (linux_child_insert_vfork_catchpoint)
8348 (linux_child_remove_vfork_catchpoint)
8349 (linux_child_insert_exec_catchpoint)
8350 (linux_child_remove_exec_catchpoint)
8351 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8352 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8353 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8354 (linux_nat_stopped_data_address)
8355 (linux_nat_stopped_by_sw_breakpoint)
8356 (linux_nat_supports_stopped_by_sw_breakpoint)
8357 (linux_nat_stopped_by_hw_breakpoint)
8358 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8359 (linux_nat_kill, linux_nat_mourn_inferior)
8360 (linux_nat_xfer_partial, linux_nat_thread_alive)
8361 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8362 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8363 (linux_child_static_tracepoint_markers_by_strid)
8364 (linux_nat_is_async_p, linux_nat_can_async_p)
8365 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8366 (linux_nat_supports_multi_process)
8367 (linux_nat_supports_disable_randomization, linux_nat_async)
8368 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8369 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8370 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8371 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8372 methods of linux_nat_target.
8373 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8374 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8375 parameter.
8376 (check_stopped_by_watchpoint): Adjust.
8377 (linux_xfer_partial): Delete.
8378 (linux_target_install_ops, linux_target, linux_nat_add_target):
8379 Delete.
8380 (linux_nat_target::linux_nat_target): New.
8381 * linux-nat.h: Include "inf-ptrace.h".
8382 (linux_nat_target): New.
8383 (linux_target, linux_target_install_ops, linux_nat_add_target):
8384 Delete function declarations.
8385 (linux_target): Declare global.
8386 * linux-thread-db.c (thread_db_target): New.
8387 (thread_db_target::thread_db_target): New.
8388 (thread_db_ops): Delete.
8389 (the_thread_db_target): New.
8390 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8391 (thread_db_update_thread_list, thread_db_pid_to_str)
8392 (thread_db_extra_thread_info)
8393 (thread_db_thread_handle_to_thread_info)
8394 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8395 (thread_db_resume): Refactor as methods of thread_db_target.
8396 (init_thread_db_ops): Delete.
8397 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8398 * x86-linux-nat.c: Don't include "linux-nat.h".
8399 (super_post_startup_inferior): Delete.
8400 (x86_linux_nat_target::~x86_linux_nat_target): New.
8401 (x86_linux_child_post_startup_inferior)
8402 (x86_linux_read_description, x86_linux_enable_btrace)
8403 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8404 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8405 methods of x86_linux_nat_target.
8406 (x86_linux_create_target): Delete. Bits folded ...
8407 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8408 pointer.
8409 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8410 (x86_linux_nat_target): New class.
8411 (x86_linux_create_target): Delete.
8412 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8413 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8414 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8415 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8416 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8417 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8418 make extern.
8419 (x86_use_watchpoints): Delete.
8420 * x86-nat.h: Include "breakpoint.h" and "target.h".
8421 (x86_use_watchpoints): Delete.
8422 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8423 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8424 (x86_insert_watchpoint, x86_remove_watchpoint)
8425 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8426 (x86_stopped_by_hw_breakpoint): New declarations.
8427 (x86_nat_target): New template class.
8428
8429 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8430 (the_ppc_linux_nat_target): New.
8431 (ppc_linux_fetch_inferior_registers)
8432 (ppc_linux_can_use_hw_breakpoint)
8433 (ppc_linux_region_ok_for_hw_watchpoint)
8434 (ppc_linux_ranged_break_num_registers)
8435 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8436 (ppc_linux_insert_mask_watchpoint)
8437 (ppc_linux_remove_mask_watchpoint)
8438 (ppc_linux_can_accel_watchpoint_condition)
8439 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8440 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8441 (ppc_linux_watchpoint_addr_within_range)
8442 (ppc_linux_masked_watch_num_registers)
8443 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8444 (ppc_linux_read_description): Refactor as methods of
8445 ppc_linux_nat_target.
8446 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8447
8448 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8449 (procfs_target): New class.
8450 (the_procfs_target): New.
8451 (procfs_target): Delete function.
8452 (procfs_auxv_parse, procfs_attach, procfs_detach)
8453 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8454 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8455 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8456 (procfs_create_inferior, procfs_update_thread_list)
8457 (procfs_thread_alive, procfs_pid_to_str)
8458 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8459 (procfs_stopped_data_address, procfs_insert_watchpoint)
8460 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8461 (proc_find_memory_regions, procfs_info_proc)
8462 (procfs_make_note_section): Refactor as methods of procfs_target.
8463 (_initialize_procfs): Adjust.
8464 * sol-thread.c (sol_thread_target): New class.
8465 (sol_thread_ops): Now a sol_thread_target.
8466 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8467 (sol_thread_fetch_registers, sol_thread_store_registers)
8468 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8469 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8470 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8471 (init_sol_thread_ops): Delete.
8472 (_initialize_sol_thread): Adjust. Remove references to
8473 init_sol_thread_ops and complete_target_initialization.
8474
8475 * windows-nat.c (windows_nat_target): New class.
8476 (windows_fetch_inferior_registers)
8477 (windows_store_inferior_registers, windows_resume, windows_wait)
8478 (windows_attach, windows_detach, windows_pid_to_exec_file)
8479 (windows_files_info, windows_create_inferior)
8480 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8481 (windows_close, windows_pid_to_str, windows_xfer_partial)
8482 (windows_get_tib_address, windows_get_ada_task_ptid)
8483 (windows_thread_name, windows_thread_alive): Refactor as
8484 windows_nat_target methods.
8485 (do_initial_windows_stuff): Adjust.
8486 (windows_target): Delete function.
8487 (_initialize_windows_nat): Adjust.
8488
8489 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8490 (darwin_mourn_inferior, darwin_kill_inferior)
8491 (darwin_create_inferior, darwin_attach, darwin_detach)
8492 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8493 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8494 (darwin_supports_multi_process): Refactor as darwin_nat_target
8495 methods.
8496 (darwin_resume_to, darwin_files_info): Delete.
8497 (_initialize_darwin_inferior): Rename to ...
8498 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8499 * darwin-nat.h: Include "inf-child.h".
8500 (darwin_nat_target): New class.
8501 (darwin_complete_target): Delete.
8502 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8503 (darwin_target): New.
8504 (i386_darwin_fetch_inferior_registers)
8505 (i386_darwin_store_inferior_registers): Refactor as methods of
8506 darwin_nat_target.
8507 (darwin_complete_target): Delete, with ...
8508 (_initialize_i386_darwin_nat): ... bits factored out here.
8509
8510 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8511 (the_alpha_linux_nat_target): New.
8512 (alpha_linux_register_u_offset): Refactor as
8513 alpha_linux_nat_target method.
8514 (_initialize_alpha_linux_nat): Adjust.
8515 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8516 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8517 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8518 methods of linux_nat_trad_target.
8519 (linux_trad_target): Delete.
8520 * linux-nat-trad.h (linux_trad_target): Delete function.
8521 (linux_nat_trad_target): New class.
8522 * mips-linux-nat.c (mips_linux_nat_target): New class.
8523 (super_fetch_registers, super_store_registers, super_close):
8524 Delete.
8525 (the_mips_linux_nat_target): New.
8526 (mips64_linux_regsets_fetch_registers)
8527 (mips64_linux_regsets_store_registers)
8528 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8529 (mips_linux_register_u_offset, mips_linux_read_description)
8530 (mips_linux_can_use_hw_breakpoint)
8531 (mips_linux_stopped_by_watchpoint)
8532 (mips_linux_stopped_data_address)
8533 (mips_linux_region_ok_for_hw_watchpoint)
8534 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8535 (mips_linux_close): Refactor as methods of mips_linux_nat.
8536 (_initialize_mips_linux_nat): Adjust to C++ification.
8537
8538 * aix-thread.c (aix_thread_target): New class.
8539 (aix_thread_ops): Now an aix_thread_target.
8540 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8541 (aix_thread_fetch_registers, aix_thread_store_registers)
8542 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8543 (aix_thread_thread_alive, aix_thread_pid_to_str)
8544 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8545 Refactor as methods of aix_thread_target.
8546 (init_aix_thread_ops): Delete.
8547 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8548 and complete_target_initialization.
8549 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8550 (rs6000_nat_target): New class.
8551 (the_rs6000_nat_target): New.
8552 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8553 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8554 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8555 (super_create_inferior): Delete.
8556 (_initialize_rs6000_nat): Adjust to C++ification.
8557
8558 * arm-linux-nat.c (arm_linux_nat_target): New class.
8559 (the_arm_linux_nat_target): New.
8560 (arm_linux_fetch_inferior_registers)
8561 (arm_linux_store_inferior_registers, arm_linux_read_description)
8562 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8563 (arm_linux_remove_hw_breakpoint)
8564 (arm_linux_region_ok_for_hw_watchpoint)
8565 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8566 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8567 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8568 arm_linux_nat_target.
8569 (_initialize_arm_linux_nat): Adjust to C++ification.
8570
8571 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8572 (the_aarch64_linux_nat_target): New.
8573 (aarch64_linux_fetch_inferior_registers)
8574 (aarch64_linux_store_inferior_registers)
8575 (aarch64_linux_child_post_startup_inferior)
8576 (aarch64_linux_read_description)
8577 (aarch64_linux_can_use_hw_breakpoint)
8578 (aarch64_linux_insert_hw_breakpoint)
8579 (aarch64_linux_remove_hw_breakpoint)
8580 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8581 (aarch64_linux_region_ok_for_hw_watchpoint)
8582 (aarch64_linux_stopped_data_address)
8583 (aarch64_linux_stopped_by_watchpoint)
8584 (aarch64_linux_watchpoint_addr_within_range)
8585 (aarch64_linux_can_do_single_step): Refactor as methods of
8586 aarch64_linux_nat_target.
8587 (super_post_startup_inferior): Delete.
8588 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8589
8590 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8591 (the_hppa_linux_nat_target): New.
8592 (hppa_linux_fetch_inferior_registers)
8593 (hppa_linux_store_inferior_registers): Refactor as methods of
8594 hppa_linux_nat_target.
8595 (_initialize_hppa_linux_nat): Adjust to C++ification.
8596
8597 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8598 (the_ia64_linux_nat_target): New.
8599 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8600 (ia64_linux_stopped_data_address)
8601 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8602 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8603 ia64_linux_nat_target methods.
8604 (super_xfer_partial): Delete.
8605 (_initialize_ia64_linux_nat): Adjust to C++ification.
8606
8607 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8608 (the_m32r_linux_nat_target): New.
8609 (m32r_linux_fetch_inferior_registers)
8610 (m32r_linux_store_inferior_registers): Refactor as
8611 m32r_linux_nat_target methods.
8612 (_initialize_m32r_linux_nat): Adjust to C++ification.
8613
8614 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8615 (the_m68k_linux_nat_target): New.
8616 (m68k_linux_fetch_inferior_registers)
8617 (m68k_linux_store_inferior_registers): Refactor as
8618 m68k_linux_nat_target methods.
8619 (_initialize_m68k_linux_nat): Adjust to C++ification.
8620
8621 * s390-linux-nat.c (s390_linux_nat_target): New class.
8622 (the_s390_linux_nat_target): New.
8623 (s390_linux_fetch_inferior_registers)
8624 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8625 (s390_insert_watchpoint, s390_remove_watchpoint)
8626 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8627 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8628 (s390_auxv_parse, s390_read_description): Refactor as methods of
8629 s390_linux_nat_target.
8630 (_initialize_s390_nat): Adjust to C++ification.
8631
8632 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8633 (the_sparc_linux_nat_target): New.
8634 (_initialize_sparc_linux_nat): Adjust to C++ification.
8635 * sparc-nat.c (sparc_fetch_inferior_registers)
8636 (sparc_store_inferior_registers): Remove target_ops parameter.
8637 * sparc-nat.h (sparc_fetch_inferior_registers)
8638 (sparc_store_inferior_registers): Remove target_ops parameter.
8639 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8640 (the_sparc64_linux_nat_target): New.
8641 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8642
8643 * spu-linux-nat.c (spu_linux_nat_target): New class.
8644 (the_spu_linux_nat_target): New.
8645 (spu_child_post_startup_inferior, spu_child_post_attach)
8646 (spu_child_wait, spu_fetch_inferior_registers)
8647 (spu_store_inferior_registers, spu_xfer_partial)
8648 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8649 methods.
8650 (_initialize_spu_nat): Adjust to C++ification.
8651
8652 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8653 (the_tilegx_linux_nat_target): New.
8654 (fetch_inferior_registers, store_inferior_registers):
8655 Refactor as methods.
8656 (_initialize_tile_linux_nat): Adjust to C++ification.
8657
8658 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8659 (the_xtensa_linux_nat_target): New.
8660 (xtensa_linux_fetch_inferior_registers)
8661 (xtensa_linux_store_inferior_registers): Refactor as
8662 xtensa_linux_nat_target methods.
8663 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8664
8665 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8666 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8667 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8668 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8669 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8670 (fbsd_stopped_by_sw_breakpoint)
8671 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8672 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8673 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8674 (fbsd_post_startup_inferior, fbsd_post_attach)
8675 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8676 (fbsd_set_syscall_catchpoint)
8677 (super_xfer_partial, super_resume, super_wait)
8678 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8679 (fbsd_handle_debug_trap): Remove target_ops parameter.
8680 (fbsd_nat_add_target): Delete.
8681 * fbsd-nat.h: Include "inf-ptrace.h".
8682 (fbsd_nat_add_target): Delete.
8683 (USE_SIGTRAP_SIGINFO): Define.
8684 (fbsd_nat_target): New class.
8685
8686 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8687 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8688 (amd64bsd_target): Delete.
8689 * amd64-bsd-nat.h: New file.
8690 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8691 "x86-bsd-nat.h".
8692 (amd64_fbsd_nat_target): New class.
8693 (the_amd64_fbsd_nat_target): New.
8694 (amd64fbsd_read_description): Refactor as method of
8695 amd64_fbsd_nat_target.
8696 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8697 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8698 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8699 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8700 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8701 (i386bsd_target): Delete.
8702 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8703 (i386bsd_fetch_inferior_registers)
8704 (i386bsd_store_inferior_registers): Declare.
8705 (i386_bsd_nat_target): New class.
8706 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8707 (the_i386_fbsd_nat_target): New.
8708 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8709 i386_fbsd_nat_target methods.
8710 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8711 (_initialize_i386fbsd_nat): Adjust to C++ification.
8712 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8713 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8714 (_initialize_x86_bsd_nat): Adjust to C++ification.
8715 * x86-bsd-nat.h: Include "x86-nat.h".
8716 (x86bsd_target): Delete declaration.
8717 (x86bsd_nat_target): New class.
8718
8719 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8720 (the_aarch64_fbsd_nat_target): New.
8721 (aarch64_fbsd_fetch_inferior_registers)
8722 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8723 aarch64_fbsd_nat_target.
8724 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8725 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8726 (the_alpha_bsd_nat_target): New.
8727 (alphabsd_fetch_inferior_registers)
8728 (alphabsd_store_inferior_registers): Refactor as
8729 alpha_bsd_nat_target methods.
8730 (_initialize_alphabsd_nat): Refactor as methods of
8731 alpha_bsd_nat_target.
8732 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8733 (the_amd64_nbsd_nat_target): New.
8734 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8735 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8736 (the_amd64_obsd_nat_target): New.
8737 (_initialize_amd64obsd_nat): Adjust to C++ification.
8738 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8739 (the_arm_fbsd_nat_target): New.
8740 (arm_fbsd_fetch_inferior_registers)
8741 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8742 (_initialize_arm_fbsd_nat): Refactor as methods of
8743 arm_fbsd_nat_target.
8744 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8745 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8746 (the_arm_netbsd_nat_target): New.
8747 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8748 arm_netbsd_nat_target.
8749 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8750 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8751 (the_hppa_nbsd_nat_target): New.
8752 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8753 hppa_nbsd_nat_target methods.
8754 (_initialize_hppanbsd_nat): Adjust to C++ification.
8755 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8756 (the_hppa_obsd_nat_target): New.
8757 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8758 methods of hppa_obsd_nat_target.
8759 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8760 add_target.
8761 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8762 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8763 add_target.
8764 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8765 (_initialize_i386obsd_nat): Use add_target.
8766 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8767 (the_m68k_bsd_nat_target): New.
8768 (m68kbsd_fetch_inferior_registers)
8769 (m68kbsd_store_inferior_registers): Refactor as methods of
8770 m68k_bsd_nat_target.
8771 (_initialize_m68kbsd_nat): Adjust to C++ification.
8772 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8773 (the_mips_fbsd_nat_target): New.
8774 (mips_fbsd_fetch_inferior_registers)
8775 (mips_fbsd_store_inferior_registers): Refactor as methods of
8776 mips_fbsd_nat_target.
8777 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8778 add_target.
8779 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8780 (the_mips_nbsd_nat_target): New.
8781 (mipsnbsd_fetch_inferior_registers)
8782 (mipsnbsd_store_inferior_registers): Refactor as methods of
8783 mips_nbsd_nat_target.
8784 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8785 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8786 (the_mips64_obsd_nat_target): New.
8787 (mips64obsd_fetch_inferior_registers)
8788 (mips64obsd_store_inferior_registers): Refactor as methods of
8789 mips64_obsd_nat_target.
8790 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8791 add_target.
8792 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8793 nbsd_nat_target.
8794 * nbsd-nat.h: Include "inf-ptrace.h".
8795 (nbsd_nat_target): New class.
8796 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8797 (obsd_wait): Refactor as methods of obsd_nat_target.
8798 (obsd_add_target): Delete.
8799 * obsd-nat.h: Include "inf-ptrace.h".
8800 (obsd_nat_target): New class.
8801 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8802 (the_ppc_fbsd_nat_target): New.
8803 (ppcfbsd_fetch_inferior_registers)
8804 (ppcfbsd_store_inferior_registers): Refactor as methods of
8805 ppc_fbsd_nat_target.
8806 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8807 add_target.
8808 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8809 (the_ppc_nbsd_nat_target): New.
8810 (ppcnbsd_fetch_inferior_registers)
8811 (ppcnbsd_store_inferior_registers): Refactor as methods of
8812 ppc_nbsd_nat_target.
8813 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8814 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8815 (the_ppc_obsd_nat_target): New.
8816 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8817 methods of ppc_obsd_nat_target.
8818 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8819 add_target.
8820 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8821 (the_sh_nbsd_nat_target): New.
8822 (shnbsd_fetch_inferior_registers)
8823 (shnbsd_store_inferior_registers): Refactor as methods of
8824 sh_nbsd_nat_target.
8825 (_initialize_shnbsd_nat): Adjust to C++ification.
8826 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8827 (inf_ptrace_xfer_partial): Delete.
8828 (sparc_xfer_partial, sparc_target): Delete.
8829 * sparc-nat.h (sparc_fetch_inferior_registers)
8830 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8831 (sparc_target): Delete function declaration.
8832 (sparc_target): New template class.
8833 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8834 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8835 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8836 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8837 add_target.
8838 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8839 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8840 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8841 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8842 add_target.
8843 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8844 (the_vax_bsd_nat_target): New.
8845 (vaxbsd_fetch_inferior_registers)
8846 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8847 methods.
8848 (_initialize_vaxbsd_nat): Adjust to C++ification.
8849
8850 * bsd-kvm.c (bsd_kvm_target): New class.
8851 (bsd_kvm_ops): Now a bsd_kvm_target.
8852 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8853 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8854 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8855 bsd_kvm_target.
8856 (bsd_kvm_return_one): Delete.
8857 (bsd_kvm_add_target): Adjust to C++ification.
8858
8859 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8860 (nto_procfs_target_procfs): New classes.
8861 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8862 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8863 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8864 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8865 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8866 (procfs_remove_hw_breakpoint, procfs_resume)
8867 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8868 (procfs_kill_inferior, procfs_store_registers)
8869 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8870 as methods of nto_procfs_target.
8871 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8872 (nto_native_ops): Delete.
8873 (procfs_open, procfs_native_open): Delete.
8874 (nto_native_ops): Now an nto_procfs_target_native.
8875 (init_procfs_targets): Adjust to C++ification.
8876 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8877 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8878 Refactor as methods of nto_procfs_target.
8879
8880 * go32-nat.c (go32_nat_target): New class.
8881 (the_go32_nat_target): New.
8882 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8883 (go32_store_registers, go32_xfer_partial, go32_files_info)
8884 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8885 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8886 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8887 (go32_pid_to_str): Refactor as methods of go32_nat_target.
8888 (go32_target): Delete.
8889 (_initialize_go32_nat): Adjust to C++ification.
8890
8891 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8892 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8893 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8894 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8895 gnu_nat_target.
8896 (gnu_target): Delete.
8897 * gnu-nat.h (gnu_target): Delete.
8898 (gnu_nat_target): New class.
8899 * i386-gnu-nat.c (gnu_base_target): New.
8900 (i386_gnu_nat_target): New class.
8901 (the_i386_gnu_nat_target): New.
8902 (_initialize_i386gnu_nat): Adjust to C++ification.
8903
8904 2018-05-02 Pedro Alves <palves@redhat.com>
8905
8906 * bfd-target.c (target_bfd_xclose): Rename to ...
8907 (target_bfd_close): ... this.
8908 (target_bfd_reopen): Adjust.
8909 * target.c (target_close): Remove references to to_xclose.
8910 * target.h (target_ops::to_xclose): Delete.
8911 (target_ops::to_close): Update comments.
8912
8913 2018-05-02 Pedro Alves <palves@redhat.com>
8914
8915 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
8916 "linux-nat.h".
8917 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
8918 * inf-ptrace.c (inf_ptrace_register_u_offset)
8919 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8920 (inf_ptrace_store_register, inf_ptrace_store_registers)
8921 (inf_ptrace_trad_target): Move to ...
8922 * linux-nat-trad.c: ... this new file.
8923 * linux-nat-trad.h: New file.
8924 * linux-nat.c (linux_target_install_ops): Make extern.
8925 (linux_trad_target): Delete.
8926 * linux-nat.h (linux_trad_target): Delete declaration.
8927 (linux_target_install_ops): Declare.
8928 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
8929 "linux-nat.h".
8930
8931 2018-05-02 Pedro Alves <palves@redhat.com>
8932
8933 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8934 procfs_target/add_target here.
8935 * procfs.c (procfs_target): Make static.
8936 (_initialize_procfs): Call add_target here.
8937 * procfs.h (struct target_ops): Remove forward declaration.
8938 (procfs_target): Remove declaration.
8939 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
8940
8941 2018-05-02 Pedro Alves <palves@redhat.com>
8942
8943 * procfs.c (procfs_stopped_by_watchpoint)
8944 (procfs_insert_watchpoint, procfs_remove_watchpoint)
8945 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
8946 Forward declare.
8947 (procfs_use_watchpoints): Delete, move contents...
8948 (procfs_target): ... here.
8949 * procfs.h (procfs_use_watchpoints): Delete declaration.
8950 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8951 procfs_use_watchpoints.
8952 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8953 procfs_use_watchpoints.
8954
8955 2018-05-02 Tom Tromey <tom@tromey.com>
8956
8957 PR python/20084:
8958 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
8959 and var_zuinteger_unlimited.
8960 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
8961 and PARAM_ZUINTEGER_UNLIMITED.
8962 (set_parameter_value): Handle var_zuinteger and
8963 var_zuinteger_unlimited.
8964 (add_setshow_generic): Likewise.
8965 (parmpy_init): Likewise.
8966
8967 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
8968
8969 PR rust/23124
8970 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
8971 pointer is not null before dereferencing it.
8972
8973 2018-04-30 Tom Tromey <tom@tromey.com>
8974
8975 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
8976 is_mi_like_p.
8977
8978 2018-04-30 Tom Tromey <tom@tromey.com>
8979
8980 * breakpoint.c (mention): Remove use of is_mi_like_p.
8981 (print_mention_ranged_breakpoint): Likewise.
8982 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
8983 of is_mi_like_p.
8984
8985 2018-04-30 Tom Tromey <tom@tromey.com>
8986
8987 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
8988
8989 2018-04-30 Tom Tromey <tom@tromey.com>
8990
8991 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
8992 (info_spu_event_command): Remove some uses of is_mi_like_p.
8993
8994 2018-04-30 Tom Tromey <tom@tromey.com>
8995
8996 * python/py-framefilter.c (py_print_single_arg)
8997 (enumerate_locals, py_print_args, py_print_frame): Remove some
8998 uses of is_mi_like_p.
8999
9000 2018-04-30 Tom Tromey <tom@tromey.com>
9001
9002 * ui-out.c: Update.
9003 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9004 * ui-out.h (ui_out::is_mi_like_p): Now const.
9005 (ui_out::do_is_mi_like_p): Now const.
9006 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9007
9008 2018-04-30 Tom Tromey <tom@tromey.com>
9009
9010 * varobj.c (varobj_set_visualizer): Use new_reference.
9011 * python/python.c (gdbpy_decode_line): Use new_reference.
9012 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9013 new_reference.
9014
9015 2018-04-30 Tom Tromey <tom@tromey.com>
9016
9017 * varobj.c (install_new_value): Use new_reference.
9018 * value.h (value_incref): Return void. Swap intro comment with
9019 value_decref.
9020 * value.c (set_value_parent): Use new_reference.
9021 (value_incref): Return void. Update intro comment.
9022 (release_value): Use new_reference.
9023 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9024
9025 2018-04-30 Tom Tromey <tom@tromey.com>
9026
9027 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9028 * gdb_bfd.h (new_bfd_ref): Remove.
9029 (gdb_bfd_open): Update comment.
9030 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9031 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9032 (gdb_bfd_fdopenr): Use new_reference.
9033 * exec.c (exec_file_attach): Use new_reference.
9034
9035 2018-04-30 Tom Tromey <tom@tromey.com>
9036
9037 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9038 method.
9039
9040 2018-04-30 Tom Tromey <tom@tromey.com>
9041
9042 * jit.c (jit_read_code_entry): Use type_align.
9043 * i386-tdep.c (i386_gdbarch_init): Don't call
9044 set_gdbarch_long_long_align_bit.
9045 * gdbarch.sh: Remove long_long_align_bit.
9046 * gdbarch.c, gdbarch.h: Rebuild.
9047 * arc-tdep.c (arc_type_align): New function.
9048 (arc_gdbarch_init): Use arc_type_align. Don't call
9049 set_gdbarch_long_long_align_bit.
9050
9051 2018-04-30 Tom Tromey <tom@tromey.com>
9052
9053 * rust-lang.c (rust_type_alignment): Remove.
9054 (rust_composite_type): Use type_align.
9055
9056 2018-04-30 Tom Tromey <tom@tromey.com>
9057
9058 * NEWS: Mention Type.align.
9059 * python/py-type.c (typy_get_alignof): New function.
9060 (type_object_getset): Add "alignof".
9061
9062 2018-04-30 Tom Tromey <tom@tromey.com>
9063
9064 PR exp/17095:
9065 * NEWS: Update.
9066 * std-operator.def (UNOP_ALIGNOF): New operator.
9067 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9068 New.
9069 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9070 * c-lang.c (c_op_print_tab): Add alignof.
9071 * c-exp.y (ALIGNOF): New token.
9072 (exp): Add "ALIGNOF" production.
9073 (ident_tokens): Add _Alignof and alignof.
9074
9075 2018-04-30 Tom Tromey <tom@tromey.com>
9076
9077 * i386-tdep.c (i386_type_align): New function.
9078 (i386_gdbarch_init): Update.
9079 * gdbarch.sh (type_align): New method.
9080 * gdbarch.c, gdbarch.h: Rebuild.
9081 * arch-utils.h (default_type_align): Declare.
9082 * arch-utils.c (default_type_align): New function.
9083 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9084 (struct type) <align_log2>: New field.
9085 <instance_flags>: Now a bitfield.
9086 (TYPE_RAW_ALIGN): New macro.
9087 (type_align, type_raw_align, set_type_align): Declare.
9088 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9089 functions.
9090 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9091 (get_alignment, maybe_set_alignment): New functions.
9092 (read_structure_type, read_enumeration_type, read_array_type)
9093 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9094 (read_subrange_type, read_base_type): Set type alignment.
9095
9096 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9097
9098 * dwarf2read.c (read_index_from_section): Use bool.
9099
9100 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9101
9102 PR gdb/22950
9103 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9104 with #ifdef.
9105
9106 2018-04-29 John Reiser <jreiser@BitWagon.com>
9107
9108 PR build/22873
9109 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9110 last step, and do it atomically.
9111
9112 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9113
9114 * compile/compile-c-types.c (convert_int, convert_float):
9115 Update for C FE v1.
9116
9117 2018-04-27 Tom Tromey <tom@tromey.com>
9118
9119 PR rust/22545:
9120 * rust-lang.c (rust_inclusive_range_type_p): New function.
9121 (rust_range): Handle inclusive ranges.
9122 (rust_compute_range): Likewise.
9123 * rust-exp.y (struct rust_op) <inclusive>: New field.
9124 (DOTDOTEQ): New constant.
9125 (range_expr): Add "..=" productions.
9126 (operator_tokens): Add "..=" token.
9127 (ast_range): Add "inclusive" parameter.
9128 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9129 ranges.
9130 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9131 bounds values.
9132 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9133 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9134 Update comments.
9135 * expprint.c (print_subexp_standard): Handle new bounds values.
9136 (dump_subexp_body_standard): Likewise.
9137
9138 2018-04-27 Tom Tromey <tom@tromey.com>
9139
9140 * configure: Rebuild.
9141 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9142 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9143 "OVERRIDE".
9144 (class symbol_needs_eval_context): Likewise.
9145 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9146 (mock_mapped_index::symbol_name_at): Use "override". Remove
9147 "virtual".
9148 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9149 "override".
9150 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9151 * aarch64-tdep.c (instruction_reader::read): Use "override".
9152 (instruction_reader_test::read): Likewise.
9153 * arm-tdep.c (instruction_reader::read): Use "override".
9154 (instruction_reader_thumb::read): Likewise.
9155
9156 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9157
9158 PR remote/9665
9159 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9160 instead of remote_send.
9161 (remote_send): Remove.
9162
9163 2018-04-26 Pedro Alves <palves@redhat.com>
9164
9165 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9166 find_function_start_sal instead of find_pc_line.
9167
9168 2018-04-26 Pedro Alves <palves@redhat.com>
9169
9170 * breakpoint.c (set_breakpoint_location_function): Handle
9171 mst_data_gnu_ifunc.
9172 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9173 * elfread.c (elf_symtab_read): Give data symbols with
9174 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9175 (elf_rel_plt_read): Update comment.
9176 * linespec.c (convert_linespec_to_sals): Handle
9177 mst_data_gnu_ifunc.
9178 (minsym_found): Handle mst_data_gnu_ifunc.
9179 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9180 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9181 * parse.c (find_minsym_type_and_address): Handle
9182 mst_data_gnu_ifunc.
9183 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9184 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9185 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9186 comment.
9187 <mst_data_gnu_ifunc>: New enumerator.
9188
9189 2018-04-26 Pedro Alves <palves@redhat.com>
9190
9191 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9192 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9193 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9194 Handle it.
9195 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9196 (lookup_minimal_symbol_by_pc): Adjust.
9197 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9198 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9199 * minsyms.h (lookup_msym_prefer): New enum.
9200 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9201 parameter by a lookup_msym_prefer parameter.
9202
9203 2018-04-26 Pedro Alves <palves@redhat.com>
9204
9205 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9206 ends in "@plt" instead of looking at the symbol's section.
9207
9208 2018-04-26 Pedro Alves <palves@redhat.com>
9209
9210 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9211 all references.
9212 (find_pc_partial_function_gnu_ifunc): Rename to ...
9213 (find_pc_partial_function): ... this, and remove references to
9214 'is_gnu_ifunc_p'.
9215 (find_pc_partial_function): Delete old implementation.
9216 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9217
9218 2018-04-26 Pedro Alves <palves@redhat.com>
9219
9220 * linespec.c (struct bound_minimal_symbol_search_key): New.
9221 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9222 skip first line if we found a GNU ifunc minimal symbol by name.
9223 (compare_msymbols): Change parameters to work with a destructured
9224 lhs minsym.
9225 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9226 functions.
9227
9228 2018-04-26 Pedro Alves <palves@redhat.com>
9229
9230 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9231 ifunc targets here. Instead, if we have an ifunc minsym, use its
9232 address/name.
9233 (add_location_to_breakpoint): Store the minsym and the objfile in
9234 the breakpoint location.
9235 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9236 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9237 Record the minsym in the sal.
9238 * symtab.h (symtab_and_line) <msymbol>: New field.
9239
9240 2018-04-26 Pedro Alves <palves@redhat.com>
9241
9242 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9243 unless we actually resolved the ifunc.
9244
9245 2018-04-26 Pedro Alves <palves@redhat.com>
9246
9247 * c-exp.y (variable production): Prefer ifunc minsyms over
9248 regular function symbols.
9249 * symtab.c (find_gnu_ifunc): New function.
9250 * minsyms.h (lookup_msym_prefer): New enum.
9251 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9252 parameter by a lookup_msym_prefer parameter.
9253 * symtab.h (find_gnu_ifunc): New declaration.
9254
9255 2018-04-26 Pedro Alves <palves@redhat.com>
9256
9257 * blockframe.c (find_gnu_ifunc_target_type): New function.
9258 (find_function_type): New.
9259 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9260 return a value with a memory address.
9261 (eval_call): For calls to GNU ifunc functions, try to find the
9262 type of the target function from the type that the resolver
9263 returns.
9264 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9265 symbols.
9266 * infcall.c (find_function_return_type): Delete.
9267 (find_function_addr): Add 'function_type' parameter. For calls to
9268 GNU ifunc functions, try to find the type of the target function
9269 from the type that the resolver returns, and return it via
9270 FUNCTION_TYPE.
9271 (call_function_by_hand_dummy): Adjust to use the function type
9272 returned by find_function_addr.
9273 (find_function_addr): Add 'function_type' parameter and move
9274 description here.
9275 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9276 declarations.
9277
9278 2018-04-26 Pedro Alves <palves@redhat.com>
9279
9280 * c-exp.y (variable production): Skip finding an alias for ifunc
9281 symbols.
9282
9283 2018-04-26 Pedro Alves <palves@redhat.com>
9284
9285 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9286
9287 2018-04-25 Pedro Alves <palves@redhat.com>
9288
9289 * infcmd.c (kill_command): Print the pid as string, not the whole
9290 thread's ptid. Add comment. s/has been killed/killed/ in output
9291 message.
9292 * remote.c (remote_detach_1): Print the pid as string, not the
9293 whole thread's ptid.
9294
9295 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9296 Sergio Durigan Junior <sergiodj@redhat.com>
9297 Pedro Alves <palves@redhat.com>
9298
9299 * infcmd.c (kill_command): Print message when inferior has
9300 been killed.
9301 * inferior.c (print_inferior_events): Remove 'static'. Set as
9302 '1'.
9303 (add_inferior): Improve message printed when
9304 'print_inferior_events' is on.
9305 (exit_inferior): Remove message printed when
9306 'print_inferior_events' is on.
9307 (detach_inferior): Improve message printed when
9308 'print_inferior_events' is on.
9309 (initialize_inferiors): Use 'add_inferior_silent' to set
9310 'current_inferior_'.
9311 * inferior.h (print_inferior_events): Declare here as
9312 'extern'.
9313 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9314 '[Detaching...]' messages when 'print_inferior_events' is on.
9315 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9316 as prefix/suffix for messages. Remove periods. Fix erroneous
9317 'Detaching after fork from child...', replace it by '... from
9318 parent...'.
9319 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9320 prefix/suffix when printing 'Detaching...' messages. Print
9321 them when 'print_inferior_events' is on.
9322 * remote.c (remote_detach_1): Print message when detaching
9323 from inferior and '!is_fork_parent'.
9324
9325 2018-04-24 Tom Tromey <tom@tromey.com>
9326
9327 * cli-out.h: Reindent.
9328
9329 2018-04-24 Tom Tromey <tom@tromey.com>
9330
9331 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9332 (cli_ui_out::do_field_string): Use fputs_filtered.
9333 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9334
9335 2018-04-23 Tom Tromey <tom@tromey.com>
9336
9337 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9338 gdb::unique_xmalloc_ptr.
9339
9340 2018-04-23 Tom Tromey <tom@tromey.com>
9341
9342 * configure: Rebuild.
9343
9344 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9345
9346 PR gdb/23095
9347 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9348 prepare_for_testing. Set normal_bp to r_debug_state if target
9349 is bsd.
9350
9351 2018-04-21 Pedro Alves <palves@redhat.com>
9352 Rajendra SY <rajendra.sy@gmail.com>
9353
9354 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9355 * remote.c (extended_remote_attach): In all-stop mode, mark the
9356 thread as executing.
9357
9358 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9359
9360 * thread.c (thread_apply_all_command): Fix comment.
9361 (thread_command): Fix comment.
9362
9363 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9364
9365 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9366 parameter.
9367 * features/aarch64-core.c (create_feature_aarch64_core):
9368 Regenerate.
9369 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9370 Likewise.
9371 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9372 Likewise.
9373 * features/i386/32bit-avx512.c
9374 (create_feature_i386_32bit_avx512): Likewise.
9375 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9376 Likewise.
9377 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9378 Likewise.
9379 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9380 Likewise.
9381 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9382 Likewise.
9383 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9384 Likewise.
9385 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9386 Likewise.
9387 * features/i386/64bit-avx512.c
9388 (create_feature_i386_64bit_avx512): Likewise.
9389 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9390 Likewise.
9391 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9392 Likewise.
9393 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9394 Likewise.
9395 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9396 Likewise.
9397 * features/i386/64bit-segments.c
9398 (create_feature_i386_64bit_segments): Likewise.
9399 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9400 Likewise.
9401 * features/i386/x32-core.c
9402 (create_feature_i386_x32_core): Likewise.
9403 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9404 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9405 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9406 * target-descriptions.c: In generated code, don't pass xml
9407 filename.
9408
9409 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9410
9411 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9412 (print_xml_feature::visit_post): Likewise.
9413 (print_xml_feature::visit): Likewise.
9414 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9415 (print_xml_feature): Add new class.
9416 * regformats/regdat.sh: Null xmltarget on feature targets.
9417 * target-descriptions.c (struct target_desc): Add xmltarget.
9418 (maintenance_check_tdesc_xml_convert): Add unittest function.
9419 (tdesc_get_features_xml): Add function to get xml.
9420 (maintenance_check_xml_descriptions): Test xml generation.
9421 * xml-tdesc.c (string_read_description_xml): Add function.
9422 * xml-tdesc.h (string_read_description_xml): Add declaration.
9423
9424 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9425
9426 * features/Makefile: Add feature marker to targets with new style
9427 target descriptions.
9428 * regformats/aarch64.dat: Regenerate.
9429 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9430 * regformats/i386/amd64-avx-linux.dat: Likewise.
9431 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9432 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9433 * regformats/i386/amd64-linux.dat: Likewise.
9434 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9435 * regformats/i386/amd64.dat: Likewise.
9436 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9437 * regformats/i386/i386-avx-linux.dat: Likewise.
9438 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9439 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9440 * regformats/i386/i386-linux.dat: Likewise.
9441 * regformats/i386/i386-mmx-linux.dat: Likewise.
9442 * regformats/i386/i386-mpx-linux.dat: Likewise.
9443 * regformats/i386/i386.dat: Likewise.
9444 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9445 * regformats/i386/x32-avx-linux.dat: Likewise.
9446 * regformats/i386/x32-linux.dat: Likewise.
9447 * regformats/tic6x-c62x-linux.dat: Likewise.
9448 * regformats/tic6x-c64x-linux.dat: Likewise.
9449 * regformats/tic6x-c64xp-linux.dat: Likewise.
9450 * regformats/regdat.sh: Parse feature marker.
9451
9452 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9453
9454 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9455 (tdesc_osabi_name): Likewise.
9456 * target-descriptions.c (tdesc_architecture_name): Add new
9457 function.
9458 (tdesc_osabi_name): Likewise.
9459
9460 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9461
9462 * common/tdesc.c (tdesc_predefined_type): Move to here.
9463 (tdesc_named_type): Likewise.
9464 (tdesc_create_vector): Likewise.
9465 (tdesc_create_struct): Likewise.
9466 (tdesc_set_struct_size): Likewise.
9467 (tdesc_create_union): Likewise.
9468 (tdesc_create_flags): Likewise.
9469 (tdesc_create_enum): Likewise.
9470 (tdesc_add_field): Likewise.
9471 (tdesc_add_typed_bitfield): Likewise.
9472 (tdesc_add_bitfield): Likewise.
9473 (tdesc_add_flag): Likewise.
9474 (tdesc_add_enum_value): Likewise.
9475 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9476 (struct tdesc_type_vector): Likewise.
9477 (struct tdesc_type_field): Likewise.
9478 (struct tdesc_type_with_fields): Likewise.
9479 (tdesc_create_enum): Add declaration.
9480 (tdesc_add_typed_bitfield): Likewise.
9481 (tdesc_add_enum_value): Likewise.
9482 * target-descriptions.c (tdesc_type_field): Move from here.
9483 (tdesc_type_builtin): Likewise.
9484 (tdesc_type_vector): Likewise.
9485 (tdesc_type_with_fields): Likewise.
9486 (tdesc_predefined_types): Likewise.
9487 (tdesc_named_type): Likewise.
9488 (tdesc_create_vector): Likewise.
9489 (tdesc_create_struct): Likewise.
9490 (tdesc_set_struct_size): Likewise.
9491 (tdesc_create_union): Likewise.
9492 (tdesc_create_flags): Likewise.
9493 (tdesc_create_enum): Likewise.
9494 (tdesc_add_field): Likewise.
9495 (tdesc_add_typed_bitfield): Likewise.
9496 (tdesc_add_bitfield): Likewise.
9497 (tdesc_add_flag): Likewise.
9498 (tdesc_add_enum_value): Likewise.
9499 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9500 (tdesc_add_typed_bitfield): Likewise.
9501 (tdesc_add_enum_value): Likewise.
9502
9503 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9504
9505 * common/tdesc.c (tdesc_feature::accept): Move to here.
9506 (tdesc_feature::operator==): Likewise.
9507 (tdesc_create_reg): Likewise.
9508 * common/tdesc.h (tdesc_type_kind): Likewise.
9509 (struct tdesc_type): Likewise.
9510 (struct tdesc_feature): Likewise.
9511 * regformats/regdat.sh: Create a feature.
9512 * target-descriptions.c (tdesc_type_kind): Move from here.
9513 (tdesc_type): Likewise.
9514 (tdesc_type_up): Likewise.
9515 (tdesc_feature): Likewise.
9516 (tdesc_create_reg): Likewise.
9517
9518 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9519
9520 * Makefile.in: Add arch/tdesc.c
9521 * common/tdesc.c: New file.
9522 * common/tdesc.h (tdesc_element_visitor): Move to here.
9523 (tdesc_element): Likewise.
9524 (tdesc_reg): Likewise.
9525 (tdesc_reg_up): Likewise.
9526 * regformats/regdef.h (reg): Add offset to constructors.
9527 * target-descriptions.c (tdesc_element_visitor): Move from here.
9528 (tdesc_element): Likewise.
9529 (tdesc_reg): Likewise.
9530 (tdesc_reg_up): Likewise.
9531
9532 2018-04-17 Tom Tromey <tom@tromey.com>
9533
9534 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9535 discriminant field.
9536
9537 2018-04-17 Tom Tromey <tom@tromey.com>
9538
9539 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9540
9541 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9542
9543 * symtab.c (print_symbol_info): Skip printing filename and line
9544 number when `last' is NULL.
9545 (symtab_symbol_info): Use empty string instead of NULL for first
9546 invocation of print_symbol_info.
9547 (rbreak_command): Pass NULL to `last' parameter of
9548 print_symbol_info.
9549
9550 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9551
9552 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9553 instead of nullptr.
9554
9555 2018-04-16 Pedro Alves <palves@redhat.com>
9556
9557 * MAINTAINERS (sh): Remove.
9558 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9559 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9560 (ALLDEPFILES): Remove sh64-tdep.c.
9561 * NEWS: Mentions that support for SH-5/SH64 is removed.
9562 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9563 (sh*-*-openbsd*): Ditto.
9564 (sh64-*-elf*): Remove.
9565 (sh*): Remove.
9566 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9567 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9568 * sh-tdep.c: No longer include "sh64-tdep.h".
9569 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9570 * sh64-tdep.c, sh64-tdep.h: Remove files.
9571
9572 2018-04-16 Pedro Alves <palves@redhat.com>
9573
9574 * MAINTAINERS: Remove m88k.
9575 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9576 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9577 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9578 * NEWS: Mention that support for m88k was removed.
9579 * configure.host (m88*-*-*): Remove support.
9580 * configure.nat (m88k-*-*): Remove support.
9581 * configure.tgt (m88*-*-openbsd*): Remove.
9582 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9583
9584 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9585
9586 * configure.tgt (x86_tobjs): New variable.
9587 (amd64_tobjs, i386_tobjs): Use it.
9588
9589 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9590
9591 * symtab.c (print_symbol_info): Precede the symbol definition by
9592 the line number when available.
9593 * NEWS: Advertise this enhancement.
9594
9595 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9596
9597 * NEWS (New options): announce set/show record btrace cpu.
9598 * btrace.c: Include record-btrace.h.
9599 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9600 the vendor is unknown.
9601 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9602 Maybe overwrite the btrace configuration's cpu.
9603 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9604 (btrace_fetch): Add cpu parameter. Update callers.
9605 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9606 Maybe overwrite the btrace configuration's cpu. Skip enabling
9607 errata workarounds if the vendor is unknown.
9608 * python/py-record-btrace.c: Include record-btrace.h.
9609 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9610 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9611 * record-btrace.c (record_btrace_cpu_state_kind): New.
9612 (record_btrace_cpu): New.
9613 (set_record_btrace_cpu_cmdlist): New.
9614 (record_btrace_get_cpu): New.
9615 (require_btrace_thread, record_btrace_info)
9616 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9617 (cmd_set_record_btrace_cpu_none): New.
9618 (cmd_set_record_btrace_cpu_auto): New.
9619 (cmd_set_record_btrace_cpu): New.
9620 (cmd_show_record_btrace_cpu): New.
9621 (_initialize_record_btrace): Initialize set/show record btrace cpu
9622 commands.
9623 * record-btrace.h (record_btrace_get_cpu): New.
9624
9625 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9626
9627 * record.c (set_record_command): Fix typo in message.
9628
9629 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9630
9631 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9632
9633 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9634
9635 * infrun.c (process_event_stop_test): Call
9636 gdbarch_in_indirect_branch_thunk.
9637 * gdbarch.sh (in_indirect_branch_thunk): New.
9638 * gdbarch.c: Regenerated.
9639 * gdbarch.h: Regenerated.
9640 * x86-tdep.h: New.
9641 * x86-tdep.c: New.
9642 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9643 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9644 (ALLDEPFILES): Add x86-tdep.c.
9645 * arch-utils.h (default_in_indirect_branch_thunk): New.
9646 * arch-utils.c (default_in_indirect_branch_thunk): New.
9647 * i386-tdep: Include x86-tdep.h.
9648 (i386_in_indirect_branch_thunk): New.
9649 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9650 function.
9651 * amd64-tdep: Include x86-tdep.h.
9652 (amd64_in_indirect_branch_thunk): New.
9653 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9654
9655 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9656
9657 PR gdb/23053
9658 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9659 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9660 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9661 regression.
9662
9663 2018-04-12 Tom Tromey <tom@tromey.com>
9664
9665 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9666 (rust_evaluate_subexp): Likewise.
9667
9668 2018-04-12 Pedro Alves <palves@redhat.com>
9669
9670 * procfs.c (procfs_detach): Make forward declaration's prototype
9671 match definition's protototype.
9672 (proc_get_LDT_entry): Remove stale do_cleanups call.
9673
9674 2018-04-12 Pedro Alves <palves@redhat.com>
9675
9676 * target.h (target_ops::to_has_exited): Delete.
9677 (target_has_exited): Delete.
9678 * target-delegates.c: Regenerate.
9679
9680 2018-04-11 Pedro Alves <palves@redhat.com>
9681
9682 * target.c (fileio_fh_t::t): Add comment.
9683 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9684 (target_fileio_close): Handle a NULL target.
9685 (invalidate_fileio_fh): New.
9686 (target_close): Call it.
9687 * remote.c (remote_hostio_send_command): No longer check whether
9688 remote_desc is open.
9689
9690 2018-04-11 Pedro Alves <palves@redhat.com>
9691
9692 * target.c (fileio_fh_t): Make it a named struct instead of a
9693 typedef.
9694 (fileio_fh_t::is_closed): New method.
9695 (DEF_VEC_O (fileio_fh_t)): Remove.
9696 (fileio_fhandles): Now a std::vector.
9697 (is_closed_fileio_fh): Delete.
9698 (acquire_fileio_fd): Adjust. Rename parameters.
9699 (release_fileio_fd): Adjust.
9700 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9701 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9702 (target_fileio_close): Adjust.
9703
9704 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9705
9706 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9707 index.
9708
9709 2018-04-10 Pedro Alves <palves@redhat.com>
9710
9711 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9712 (scoped_finish_thread_state): New class.
9713 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9714 cleanup.
9715 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9716 (fetch_inferior_event, normal_stop): Likewise.
9717 * thread.c (finish_thread_state_cleanup): Delete.
9718
9719 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9720 Pedro Alves <palves@redhat.com>
9721
9722 * value.c: Include "selftest.h" and "common/array-view.h".
9723 (struct range) <operator ==>: New.
9724 (test_ranges_contain): New.
9725 (check_ranges_vector): New.
9726 (test_insert_into_bit_range_vector): New.
9727 (_initialize_values): Register selftests.
9728 * common/array-view.h (operator==, operator!=): New.
9729
9730 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9731
9732 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9733 an iterator.
9734 * inline-frame.c: Include <algorithm>.
9735 (struct inline_state): Add constructor.
9736 (inline_state_s): Remove.
9737 (DEF_VEC_O(inline_state_s)): Remove.
9738 (inline_states): Change type to std::vector.
9739 (find_inline_frame_state): Adjust to std::vector.
9740 (allocate_inline_frame_state): Remove.
9741 (clear_inline_frame_state): Adjust to std::vector.
9742 (skip_inline_frames): Adjust to std::vector.
9743
9744 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9745
9746 * tracepoint.h (struct trace_state_variable): Add constructor.
9747 <name>: Change type to std::string.
9748 * tracepoint.c (tsv_s): Remove.
9749 (DEF_VEC_O(tsv_s)): Remove.
9750 (tvariables): Change to std::vector.
9751 (create_trace_state_variable): Adjust to std::vector.
9752 (find_trace_state_variable): Likewise.
9753 (find_trace_state_variable_by_number): Likewise.
9754 (delete_trace_state_variable): Likewise.
9755 (trace_variable_command): Adjust to std::string.
9756 (delete_trace_variable_command): Likewise.
9757 (tvariables_info_1): Adjust to std::vector.
9758 (save_trace_state_variables): Likewise.
9759 (start_tracing): Likewise.
9760 (merge_uploaded_trace_state_variables): Adjust to std::vector
9761 and std::string.
9762 * target.h (struct target_ops)
9763 <to_download_trace_state_variable>: Pass reference to
9764 trace_state_variable.
9765 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9766 * target-delegates.c: Re-generate.
9767 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9768 (mi_tsv_deleted): Likewise.
9769 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9770 * remote.c (remote_download_trace_state_variable): Change
9771 pointer to reference and adjust.
9772 * make-target-delegates (parse_argtypes): Handle references.
9773 (write_function_header): Likewise.
9774 (munge_type): Likewise.
9775
9776 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9777
9778 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9779 string_view-selftests.c.
9780 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9781 testsuite.
9782 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9783 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9784 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9785 * unittests/basic_string_view/element_access/char/1.cc:
9786 Likewise.
9787 * unittests/basic_string_view/element_access/char/empty.cc:
9788 Likewise.
9789 * unittests/basic_string_view/element_access/char/front_back.cc:
9790 Likewise.
9791 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9792 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9793 Likewise.
9794 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9795 Likewise.
9796 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9797 Likewise.
9798 * unittests/basic_string_view/operations/compare/char/1.cc:
9799 Likewise.
9800 * unittests/basic_string_view/operations/compare/char/13650.cc:
9801 Likewise.
9802 * unittests/basic_string_view/operations/copy/char/1.cc:
9803 Likewise.
9804 * unittests/basic_string_view/operations/data/char/1.cc:
9805 Likewise.
9806 * unittests/basic_string_view/operations/find/char/1.cc:
9807 Likewise.
9808 * unittests/basic_string_view/operations/find/char/2.cc:
9809 Likewise.
9810 * unittests/basic_string_view/operations/find/char/3.cc:
9811 Likewise.
9812 * unittests/basic_string_view/operations/find/char/4.cc:
9813 Likewise.
9814 * unittests/basic_string_view/operations/rfind/char/1.cc:
9815 Likewise.
9816 * unittests/basic_string_view/operations/rfind/char/2.cc:
9817 Likewise.
9818 * unittests/basic_string_view/operations/rfind/char/3.cc:
9819 Likewise.
9820 * unittests/basic_string_view/operations/substr/char/1.cc:
9821 Likewise.
9822 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9823 * unittests/string_view-selftests.c: New file.
9824
9825 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9826
9827 * unittests/basic_string_view/capacity/1.cc: New file.
9828 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9829 * unittests/basic_string_view/cons/char/1.cc: New file.
9830 * unittests/basic_string_view/cons/char/2.cc: New file.
9831 * unittests/basic_string_view/cons/char/3.cc: New file.
9832 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9833 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9834 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9835 * unittests/basic_string_view/element_access/char/1.cc: New file.
9836 * unittests/basic_string_view/element_access/char/2.cc: New file.
9837 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9838 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9839 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9840 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9841 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9842 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9843 * unittests/basic_string_view/include.cc: New file.
9844 * unittests/basic_string_view/inserters/char/1.cc: New file.
9845 * unittests/basic_string_view/inserters/char/2.cc: New file.
9846 * unittests/basic_string_view/inserters/char/3.cc: New file.
9847 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9848 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9849 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9850 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9851 * unittests/basic_string_view/literals/types.cc: New file.
9852 * unittests/basic_string_view/literals/values.cc: New file.
9853 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9854 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9855 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9856 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9857 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9858 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9859 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9860 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9861 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9862 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9863 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9864 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9865 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9866 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9867 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9868 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9869 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9870 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9871 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9872 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9873 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9874 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9875 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9876 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9877 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9878 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9879 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9880 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9881 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9882 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9883 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9884 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9885 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9886 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9887 * unittests/basic_string_view/operators/char/2.cc: New file.
9888 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9889 * unittests/basic_string_view/range_access/char/1.cc: New file.
9890 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9891 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9892 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9893 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9894 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9895 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9896 * unittests/basic_string_view/requirements/typedefs.cc: New file.
9897 * unittests/basic_string_view/typedefs.cc: New file.
9898 * unittests/basic_string_view/types/1.cc: New file.
9899
9900 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9901
9902 * common/gdb_string_view.h: Remove libstdc++ implementation
9903 details, adjust to gdb reality.
9904 * common/gdb_string_view.tcc: Likewise.
9905 * cli/cli-script.c (struct string_view): Remove.
9906 (user_args) <m_args>: Change element type to gdb::string_view.
9907 (user_args::insert_args): Adjust.
9908
9909 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9910
9911 * common/gdb_string_view.h: New file.
9912 * common/gdb_string_view.tcc: New file.
9913
9914 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9915
9916 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9917 * configure: Re-generate.
9918
9919 2018-04-09 Pedro Alves <palves@redhat.com>
9920
9921 * gdbarch.sh: Include "observable.h" instead of "observer.h".
9922 (set_target_gdbarch): Call
9923 gdb::observers::architecture_changed.notify instead of
9924 observer_notify_architecture_changed.
9925
9926 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9927
9928 * tracepoint.c (struct current_traceframe_cleanup): Remove.
9929 (do_restore_current_traceframe_cleanup): Remove.
9930 (restore_current_traceframe_cleanup_dtor): Remove.
9931 (make_cleanup_restore_current_traceframe): Remove.
9932 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
9933 New.
9934 * tracepoint.h (struct scoped_restore_current_traceframe): New.
9935 * infrun.c (fetch_inferior_event): Use
9936 scoped_restore_current_traceframe.
9937
9938 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9939
9940 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
9941 Remove.
9942 <n_allocated_type_units>: Remove.
9943 <all_type_units>: Change to std::vector.
9944 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9945 to std::vector change.
9946 (dwarf2_per_objfile::get_cutu): Likewise.
9947 (dwarf2_per_objfile::get_tu): Likewise.
9948 (create_signatured_type_table_from_index): Likewise.
9949 (create_signatured_type_table_from_debug_names): Likewise.
9950 (dw2_symtab_iter_next): Likewise.
9951 (dw2_print_stats): Likewise.
9952 (dw2_expand_all_symtabs): Likewise.
9953 (dw2_expand_marked_cus): Likewise.
9954 (dw2_debug_names_iterator::next): Likewise.
9955 (dwarf2_initialize_objfile): Likewise.
9956 (add_signatured_type_cu_to_table): Likewise.
9957 (create_all_type_units): Likewise.
9958 (add_type_unit): Likewise.
9959 (struct tu_abbrev_offset): Add constructor.
9960 (build_type_psymtabs_1): Adjust to std::vector change.
9961 (print_tu_stats): Likewise.
9962 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9963 (write_debug_names): Likewise.
9964
9965 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9966
9967 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
9968 Make an std::vector.
9969 <n_comp_units>: Remove.
9970 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9971 to std::vector change.
9972 (dwarf2_per_objfile::get_cutu): Likewise.
9973 (dwarf2_per_objfile::get_cu): Likewise.
9974 (create_cus_from_index): Likewise.
9975 (create_addrmap_from_index): Likewise.
9976 (create_addrmap_from_aranges): Likewise.
9977 (dwarf2_read_index): Likewise.
9978 (dw2_find_last_source_symtab): Likewise.
9979 (dw2_map_symtabs_matching_filename): Likewise.
9980 (dw2_symtab_iter_next): Likewise.
9981 (dw2_print_stats): Likewise.
9982 (dw2_expand_all_symtabs): Likewise.
9983 (dw2_expand_symtabs_with_fullname): Likewise.
9984 (dw2_expand_marked_cus): Likewise.
9985 (dw2_map_symbol_filenames): Likewise.
9986 (create_cus_from_debug_names): Likewise.
9987 (dwarf2_read_debug_names): Likewise.
9988 (dw2_debug_names_iterator::next): Likewise.
9989 (dwarf2_initialize_objfile): Likewise.
9990 (set_partial_user): Likewise.
9991 (dwarf2_build_psymtabs_hard): Likewise.
9992 (read_comp_units_from_section): Remove arguments, adjust to
9993 std::vector change.
9994 (create_all_comp_units): Adjust to std::vector and
9995 read_comp_units_from_section changes.
9996 (dwarf2_find_containing_comp_unit): Adjust to std::vector
9997 change.
9998 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9999 (psyms_seen_size): Likewise.
10000 (write_gdbindex): Likewise.
10001 (write_debug_names): Likewise.
10002
10003 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10004
10005 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10006 with dwarf2_per_objfile.
10007 (create_cus_from_index): Likewise.
10008 (create_signatured_type_table_from_index): Likewise.
10009 (dwarf2_read_index): Likewise.
10010 (dwarf2_initialize_objfile): Likewise.
10011 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10012 per_cu rather than get_dwarf2_per_objfile.
10013
10014 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10015
10016 * dwarf2read.h (struct signatured_type): Forward declare.
10017 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10018 New methods.
10019 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10020 (dw2_get_cutu): ...this.
10021 (dwarf2_per_objfile::get_cu): Rename from...
10022 (dw2_get_cu): ...this.
10023 (dwarf2_per_objfile::get_tu): New.
10024 (create_addrmap_from_index): Adjust.
10025 (create_addrmap_from_aranges): Adjust.
10026 (dw2_find_last_source_symtab): Adjust.
10027 (dw2_map_symtabs_matching_filename): Adjust.
10028 (dw2_symtab_iter_next): Adjust.
10029 (dw2_print_stats): Adjust.
10030 (dw2_expand_all_symtabs): Adjust.
10031 (dw2_expand_symtabs_with_fullname): Adjust.
10032 (dw2_expand_marked_cus): Adjust.
10033 (dw_expand_symtabs_matching_file_matcher): Adjust.
10034 (dw2_map_symbol_filenames): Adjust.
10035 (dw2_debug_names_iterator::next): Adjust.
10036 (dwarf2_initialize_objfile): Adjust.
10037 (set_partial_user): Adjust.
10038 (dwarf2_build_psymtabs_hard): Adjust.
10039
10040 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10041
10042 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10043 Remove unused variables.
10044 (dw2_map_symtabs_matching_filename): Likewise.
10045 (dwarf2_record_block_ranges): Likewise.
10046 (dwarf2_read_addr_index): Likewise.
10047 (follow_die_offset): Likewise.
10048
10049 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10050
10051 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10052 to symbol_file_add_main.
10053
10054 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10055
10056 PR mi/22299
10057 * mi/mi-console.c (do_fputc_async_safe): New.
10058 (mi_console_file::write_async_safe): New.
10059 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10060 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10061 New.
10062 * ui-file.c (ui_file::putstrn): Adjust call to
10063 fputstrn_unfiltered.
10064 * utils.c (printchar): Replace do_fputs and do_fprintf
10065 parameters by do_fputc.
10066 (fputstr_filtered): Adjust call to printchar.
10067 (fputstr_unfiltered): Likewise.
10068 (fputstrn_filtered): Likewise.
10069 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10070 printchar.
10071 * utils.h (do_fputc_ftype): New typedef.
10072 (fputstrn_unfiltered): Add do_fputc parameter.
10073
10074 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10075
10076 * regformats/i386/i386-avx.dat: Remove.
10077
10078 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10079
10080 PR gdb/22979
10081 * amd64-tdep.c (amd64_none_init_abi): New function.
10082 (amd64_x32_none_init_abi): New function.
10083 (_initialize_amd64_tdep): Register handlers for x86-64 and
10084 x64_32 with GDB_OSABI_NONE.
10085 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10086 GDB_OSABI_NONE osabi.
10087
10088 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10089
10090 PR gdb/22980
10091 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10092 GDB_OSABI_NONE.
10093 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10094 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10095
10096 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10097
10098 * common/byte-vector.h (char_vector): New type.
10099 * target.h (target_read_alloc): Return
10100 gdb::optional<byte_vector>.
10101 (target_read_stralloc): Return gdb::optional<char_vector>.
10102 (target_get_osdata): Return gdb::optional<char_vector>.
10103 * target.c (target_read_alloc_1): Templatize. Replacement
10104 manual memory management with vector.
10105 (target_read_alloc): Change return type, adjust.
10106 (target_read_stralloc): Change return type, adjust.
10107 (target_get_osdata): Change return type, adjust.
10108 * auxv.c (struct auxv_info) <length>: Remove.
10109 <data>: Change type to gdb::optional<byte_vector>.
10110 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10111 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10112 (target_auxv_search): Adjust.
10113 (fprint_target_auxv): Adjust.
10114 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10115 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10116 (linux_make_corefile_notes): Adjust.
10117 * osdata.c (get_osdata): Adjust.
10118 * remote.c (remote_get_threads_with_qxfer): Adjust.
10119 (remote_memory_map): Adjust.
10120 (remote_traceframe_info): Adjust.
10121 (btrace_read_config): Adjust.
10122 (remote_read_btrace): Adjust.
10123 (remote_pid_to_exec_file): Adjust.
10124 * solib-aix.c (solib_aix_get_library_list): Adjust.
10125 * solib-dsbt.c (decode_loadmap): Don't free buf.
10126 (dsbt_get_initial_loadmaps): Adjust.
10127 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10128 * solib-target.c (solib_target_current_sos): Adjust.
10129 * tracepoint.c (sdata_make_value): Adjust.
10130 * xml-support.c (xinclude_start_include): Adjust.
10131 (xml_fetch_content_from_file): Adjust.
10132 * xml-support.h (xml_fetch_another): Change return type.
10133 (xml_fetch_content_from_file): Change return type.
10134 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10135 * xml-tdesc.c (file_read_description_xml): Adjust.
10136 (fetch_available_features_from_target): Change return type.
10137 (target_fetch_description_xml): Adjust.
10138 (target_read_description_xml): Adjust.
10139
10140 2018-04-06 Tom Tromey <tom@tromey.com>
10141
10142 * value.c (~value): Update.
10143 (struct value) <contents>: Now unique_xmalloc_ptr.
10144 (value_contents_bits_eq, allocate_value_contents)
10145 (value_contents_raw, value_contents_all_raw)
10146 (value_contents_for_printing, value_contents_for_printing_const)
10147 (set_value_enclosing_type): Update.
10148
10149 2018-04-06 Tom Tromey <tom@tromey.com>
10150
10151 * value.c (range_s): Remove typedef, VEC.
10152 (struct range): Add operator<.
10153 (range_lessthan): Remove.
10154 (ranges_contain): Change type.
10155 (~value): Update.
10156 (struct value) <unavailable, optimized_out>: Now std::vector.
10157 (value_entirely_available)
10158 (value_entirely_covered_by_range_vector)
10159 (value_entirely_unavailable, value_entirely_optimized_out):
10160 Update.
10161 (insert_into_bit_range_vector): Change argument type.
10162 (find_first_range_overlap): Likewise.
10163 (struct ranges_and_idx, value_contents_bits_eq)
10164 (require_not_optimized_out, require_available): Update.
10165 (ranges_copy_adjusted): Change argument types.
10166 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10167
10168 2018-04-06 Tom Tromey <tom@tromey.com>
10169
10170 * value.c (~value): Update.
10171 (struct value) <parent>: Now a value_ref_ptr.
10172 (value_parent, set_value_parent, value_address, value_copy):
10173 Update.
10174
10175 2018-04-06 Tom Tromey <tom@tromey.com>
10176
10177 * value.c (struct value): Add constructor, destructor, and member
10178 initializers.
10179 (allocate_value_lazy, value_decref): Update.
10180
10181 2018-04-06 Tom Tromey <tom@tromey.com>
10182
10183 * value.c (struct value) <released, next>: Remove.
10184 (all_values): Now a std::vector.
10185 (allocate_value_lazy): Update.
10186 (value_next): Remove.
10187 (value_mark, value_free_to_mark, release_value)
10188 (value_release_to_mark): Update.
10189
10190 2018-04-06 Tom Tromey <tom@tromey.com>
10191
10192 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10193 (free_value_chain): Remove.
10194 * value.c (free_value_chain): Remove.
10195 (value_release_to_mark): Return a std::vector.
10196 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10197 std::vector.
10198 (check_condition): Update.
10199 * eval.c (fetch_subexp_value): Change "val_chain" to a
10200 std::vector.
10201 * breakpoint.c (update_watchpoint): Update.
10202 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10203
10204 2018-04-06 Tom Tromey <tom@tromey.com>
10205
10206 * value.h (free_all_values): Remove.
10207 * value.c (free_all_values): Remove.
10208
10209 2018-04-06 Tom Tromey <tom@tromey.com>
10210
10211 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10212 (value_history_chain, value_history_count): Remove.
10213 (value_history): New global.
10214 (record_latest_value, access_value_history, show_values)
10215 (preserve_values): Update.
10216
10217 2018-04-06 Tom Tromey <tom@tromey.com>
10218
10219 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10220 * varobj.c (varobj_set_display_format, varobj_set_value)
10221 (install_default_visualizer, construct_visualizer)
10222 (install_new_value, ~varobj, varobj_get_value_type)
10223 (my_value_of_variable, varobj_editable_p): Update.
10224 * c-varobj.c (c_describe_child, c_value_of_variable)
10225 (cplus_number_of_children, cplus_describe_child): Update.
10226 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10227 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10228 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10229
10230 2018-04-06 Tom Tromey <tom@tromey.com>
10231
10232 * printcmd.c (last_examine_address): Change type to
10233 value_ref_ptr.
10234 (do_examine, x_command): Update.
10235
10236 2018-04-06 Tom Tromey <tom@tromey.com>
10237
10238 * value.c (release_value): Update.
10239 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10240 (struct bpstats) <val>: Now a value_ref_ptr.
10241 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10242 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10243 (~watchpoint, print_it_watchpoint, watch_command_1)
10244 (invalidate_bp_value_on_memory_change): Update.
10245
10246 2018-04-06 Tom Tromey <tom@tromey.com>
10247
10248 * varobj.c (varobj_clear_saved_item)
10249 (update_dynamic_varobj_children, install_new_value, ~varobj):
10250 Update.
10251 * value.h (value_incref): Move declaration earlier.
10252 (value_decref): Rename from value_free.
10253 (struct value_ref_policy): New.
10254 (value_ref_ptr): New typedef.
10255 (struct value_deleter): Remove.
10256 (gdb_value_up): Remove typedef.
10257 (release_value): Change return type.
10258 (release_value_or_incref): Remove.
10259 * value.c (set_value_parent): Update.
10260 (value_incref): Change return type.
10261 (value_decref): Rename from value_free.
10262 (value_free_to_mark, free_all_values, free_value_chain): Update.
10263 (release_value): Return value_ref_ptr.
10264 (release_value_or_incref): Remove.
10265 (record_latest_value, set_internalvar, clear_internalvar):
10266 Update.
10267 * stack.c (info_frame_command): Don't call value_free.
10268 * python/py-value.c (valpy_dealloc, valpy_new)
10269 (value_to_value_object): Update.
10270 * printcmd.c (do_examine): Update.
10271 * opencl-lang.c (lval_func_free_closure): Update.
10272 * mi/mi-main.c (register_changed_p): Don't call value_free.
10273 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10274 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10275 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10276 value_free.
10277 * guile/scm-value.c (vlscm_free_value_smob)
10278 (vlscm_scm_from_value): Update.
10279 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10280 (frame_unwind_register_unsigned, get_frame_register_bytes)
10281 (put_frame_register_bytes): Don't call value_free.
10282 * findvar.c (address_from_register): Don't call value_free.
10283 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10284 * dwarf2loc.c (entry_data_value_free_closure)
10285 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10286 (dwarf2_evaluate_loc_desc_full): Update.
10287 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10288 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10289 (~watchpoint, watch_command_1)
10290 (invalidate_bp_value_on_memory_change): Update.
10291 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10292
10293 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10294
10295 PR gdb/23022
10296 * warning.m4: Add -Wno-error=deprecated-register.
10297 * configure: Re-generate.
10298
10299 2018-04-05 Tom Tromey <tom@tromey.com>
10300
10301 * linespec.h: Remove include of "vec.h".
10302
10303 2018-04-05 Tom Tromey <tom@tromey.com>
10304
10305 * linespec.c (typep): Remove typedef.
10306 (find_methods, find_superclass_methods): Take a std::vector.
10307 (find_method): Use std::vector.
10308
10309 2018-04-05 Tom Tromey <tom@tromey.com>
10310
10311 * utils.c (compare_strings): Remove.
10312 * utils.h (compare_strings): Remove.
10313 * objc-lang.h (find_imps): Update.
10314 * objc-lang.c (find_methods): Take a std::vector.
10315 (uniquify_strings, find_imps): Likewise.
10316 * linespec.c (find_methods): Take a std::vector.
10317 (decode_objc): Use std::vector.
10318 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10319 a std::vector.
10320 (find_method, find_function_symbols): Use std::vector.
10321
10322 2018-04-05 Tom Tromey <tom@tromey.com>
10323
10324 * completer.c (completion_tracker::completion_tracker): Remove
10325 cast.
10326 (completion_tracker::discard_completions): Likewise.
10327 * breakpoint.c (ambiguous_names_p): Remove cast.
10328 * ada-lang.c (_initialize_ada_language): Remove cast.
10329 * utils.h (streq): Update.
10330 (streq_hash): Add new declaration.
10331 * utils.c (streq): Return bool.
10332 (streq_hash): New function.
10333
10334 2018-04-05 Tom Tromey <tom@tromey.com>
10335
10336 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10337 Remove a string copy.
10338
10339 2018-04-05 Tom Tromey <tom@tromey.com>
10340
10341 * linespec.c (filter_results): Use std::vector.
10342 (decode_line_2, decode_line_full): Update.
10343
10344 2018-04-05 Tom Tromey <tom@tromey.com>
10345
10346 * linespec.c (canonical_to_fullform): Return std::string.
10347 (filter_results): Update.
10348 (struct decode_line_2_item): Add constructor.
10349 <fullform, displayform>: Now std::string.
10350 (decode_line_2_compare_items): Now a std::sort comparator.
10351 (decode_line_2): Update.
10352
10353 2018-04-05 Tom Tromey <tom@tromey.com>
10354
10355 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10356 (unexpected_linespec_error): Update.
10357 (linespec_parse_basic, parse_linespec): Update.
10358
10359 2018-04-05 Tom Tromey <tom@tromey.com>
10360
10361 * linespec.c (linespec_parse_basic): Reindent.
10362
10363 2018-04-05 Tom Tromey <tom@tromey.com>
10364
10365 * minsyms.h (iterate_over_minimal_symbols): Update.
10366 * minsyms.c (iterate_over_minimal_symbols): Take a
10367 gdb::function_view.
10368 * linespec.c (struct collect_minsyms): Remove.
10369 (compare_msyms): Now a std::sort comparator.
10370 (add_minsym): Add parameters.
10371 (search_minsyms_for_name): Update. Use std::vector.
10372
10373 2018-04-03 Tom Tromey <tom@tromey.com>
10374
10375 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10376 gdb::byte_vector.
10377
10378 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10379
10380 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10381
10382 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10383
10384 PR gdb/16959
10385 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10386 printing static type.
10387
10388 2018-04-01 Tom Tromey <tom@tromey.com>
10389
10390 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10391 (rs6000_xfer_shared_libraries): Update.
10392
10393 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10394
10395 * common/gdb_vecs.h (char_ptr): Remove.
10396 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10397
10398 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10399
10400 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10401 with std::vector.
10402 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10403
10404 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10405
10406 * tracepoint.h (struct uploaded_tp): Initialize fields.
10407 <actions, step_actions, cmd_strings>: Change type to
10408 std::vector<char *>.
10409 * tracepoint.c (get_uploaded_tp): Allocate with new.
10410 (free_uploaded_tps): Free with delete.
10411 (parse_tracepoint_definition): Adjust to std::vector change.
10412 * breakpoint.c (read_uploaded_action): Likewise.
10413 (create_tracepoint_from_upload): Likewise.
10414 * ctf.c (ctf_write_uploaded_tp): Likewise.
10415 (SET_ARRAY_FIELD): Likewise.
10416 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10417
10418 2018-03-30 Tom Tromey <tom@tromey.com>
10419
10420 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10421 std::unique_ptr.
10422 (svr4_keep_data_in_core): Update.
10423 (svr4_read_so_list): Update.
10424
10425 2018-03-30 Tom Tromey <tom@tromey.com>
10426
10427 * windows-nat.c (handle_output_debug_string, handle_exception):
10428 Update.
10429 * target.h (target_read_string): Update.
10430 * target.c (target_read_string): Change "string" to
10431 unique_xmalloc_ptr.
10432 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10433 Update.
10434 * solib-frv.c (frv_current_sos): Update.
10435 * solib-dsbt.c (dsbt_current_sos): Update.
10436 * solib-darwin.c (darwin_current_sos): Update.
10437 * linux-thread-db.c (inferior_has_bug): Update.
10438 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10439 Update. Remove alloca.
10440 * ada-lang.c (ada_main_name): Update.
10441
10442 2018-03-30 Tom Tromey <tom@tromey.com>
10443
10444 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10445 (struct dwo_file_deleter): New.
10446 (dwo_file_up): New typedef.
10447 (open_and_init_dwo_file): Use dwo_file_up.
10448 (free_dwo_file_cleanup): Remove.
10449
10450 2018-03-30 Tom Tromey <tom@tromey.com>
10451
10452 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10453 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10454
10455 2018-03-30 Tom Tromey <tom@tromey.com>
10456
10457 * dwarf2read.c (class free_cached_comp_units): New class.
10458 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10459 (free_cached_comp_units): Remove function.
10460
10461 2018-03-30 Tom Tromey <tom@tromey.com>
10462
10463 * utils.h (make_cleanup_unpush_target): Remove.
10464 * inf-ptrace.c (struct target_unpusher): New.
10465 (target_unpush_up) New typedef.
10466 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10467 target_unpush_up.
10468 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10469
10470 2018-03-27 Tom Tromey <tom@tromey.com>
10471
10472 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10473
10474 2018-03-27 Pedro Alves <palves@redhat.com>
10475 Tom Tromey <tom@tromey.com>
10476
10477 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10478 destructor. Now a class.
10479 (gdb_readline_wrapper_cleanup): Remove function.
10480 (gdb_readline_wrapper): Remove cleanups.
10481
10482 2018-03-27 Tom Tromey <tom@tromey.com>
10483
10484 * typeprint.h (struct type_print_options) <local_typedefs,
10485 global_typedefs>: Remove "struct" keyword.
10486 (class typedef_hash_table): New class.
10487 (recursively_update_typedef_hash, add_template_parameters)
10488 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10489 (find_typedef_in_hash): Don't declare.
10490 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10491 (typedef_hash_table::recursively_update): Rename from
10492 recursively_update_typedef_hash. Now a member.
10493 (typedef_hash_table::add_template_parameters): Rename from
10494 add_template_parameters. Now a member.
10495 (typedef_hash_table::typedef_hash_table): Now a constructor;
10496 rename from create_typedef_hash.
10497 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10498 rename from free_typedef_hash.
10499 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10500 (do_free_global_table): Remove.
10501 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10502 from copy_type_recursive.
10503 (create_global_typedef_table): Remove.
10504 (typedef_hash_table::find_global_typedef): Now a member of
10505 typedef_hash_table.
10506 (typedef_hash_table::find_typedef): Rename from
10507 find_typedef_in_hash; now a member.
10508 (whatis_exp): Update.
10509 * extension.h (struct ext_lang_type_printers): Add constructor and
10510 destructor.
10511 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10512 declare.
10513 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10514 Now a constructor; rename from start_ext_lang_type_printers.
10515 (ext_lang_type_printers): Now a destructor; rename from
10516 free_ext_lang_type_printers.
10517 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10518 Update.
10519 (c_type_print_base_struct_union): Update. Remove cleanups.
10520
10521 2018-03-27 Tom Tromey <tom@tromey.com>
10522
10523 * dwarf-index-write.c: Include <cmath>.
10524
10525 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10526
10527 * NEWS: Add entry describing new "set|show varsize-limit" command.
10528 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10529 command.
10530 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10531 "set variable".
10532
10533 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10534
10535 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10536 dwarf-index-write.c
10537 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10538 * dwarf-index-common.c: New file.
10539 * dwarf-index-common.h: New file.
10540 * dwarf-index-write.c: New file.
10541 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10542 (struct dwarf2_section_info): Move from here.
10543 (dwarf2_section_info_def): Likewise.
10544 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10545 (offset_type): Likewise.
10546 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10547 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10548 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10549 (byte_swap): Likewise.
10550 (MAYBE_SWAP): Likewise.
10551 (dwarf2_per_cu_ptr): Likewise.
10552 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10553 (struct tu_stats): Likewise.
10554 (struct dwarf2_per_objfile): Likewise.
10555 (struct dwarf2_per_cu_data): Likewise.
10556 (struct signatured_type): Likewise.
10557 (sig_type_ptr): Likewise.
10558 (DEF_VEC_P (sig_type_ptr)): Likewise.
10559 (INDEX4_SUFFIX): Likewise.
10560 (INDEX5_SUFFIX): Likewise.
10561 (DEBUG_STR_SUFFIX): Likewise.
10562 (dwarf2_read_section): Make non-static.
10563 (mapped_index_string_hash): Move from here.
10564 (dwarf5_djb_hash): Likewise.
10565 (file_write): Likewise.
10566 (class data_buf): Likewise.
10567 (struct symtab_index_entry): Likewise.
10568 (struct mapped_symtab): Likewise.
10569 (find_slot): Likewise.
10570 (hash_expand): Likewise.
10571 (add_index_entry): Likewise.
10572 (uniquify_cu_indices): Likewise.
10573 (class c_str_view): Likewise.
10574 (class c_str_view_hasher): Likewise.
10575 (class vector_hasher): Likewise.
10576 (write_hash_table): Likewise.
10577 (psym_index_map): Likewise.
10578 (struct addrmap_index_data): Likewise.
10579 (add_address_entry): Likewise.
10580 (add_address_entry_worker): Likewise.
10581 (write_address_map): Likewise.
10582 (symbol_kind): Likewise.
10583 (write_psymbols): Likewise.
10584 (struct signatured_type_index_data): Likewise.
10585 (write_one_signatured_type): Likewise.
10586 (recursively_count_psymbols): Likewise.
10587 (recursively_write_psymbols): Likewise.
10588 (class debug_names): Likewise.
10589 (check_dwarf64_offsets): Likewise.
10590 (psyms_seen_size): Likewise.
10591 (write_gdbindex): Likewise.
10592 (write_debug_names): Likewise.
10593 (assert_file_size): Likewise.
10594 (write_psymtabs_to_index): Likewise.
10595 (save_gdb_index_command): Likewise.
10596 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10597 command.
10598 * dwarf2read.h: New file.
10599
10600 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10601
10602 PR gdb/22670
10603 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10604 symbol name if the CU's language stores symbol names in linkage
10605 format.
10606 * language.h (struct language_defn)
10607 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10608 all instances of this struct.
10609
10610 2018-03-26 Tom Tromey <tom@tromey.com>
10611
10612 * stack.c (backtrace_command_1): Remove verbose code.
10613
10614 2018-03-26 Tom Tromey <tom@tromey.com>
10615
10616 * python/py-framefilter.c (py_print_type): Don't catch
10617 exceptions. Return void.
10618 (py_print_value): Likewise.
10619 (py_print_single_arg): Likewise.
10620 (enumerate_args): Don't catch exceptions.
10621 (py_print_args): Likewise.
10622 (py_print_frame): Likewise.
10623 (gdbpy_apply_frame_filter): Catch exceptions here.
10624
10625 2018-03-26 Tom Tromey <tom@tromey.com>
10626
10627 * stack.c (_initialize_stack): Remove trailing newlines from help
10628 text. Add "Usage" line to "backtrace" help.
10629
10630 2018-03-26 Tom Tromey <tom@tromey.com>
10631
10632 PR python/16486:
10633 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10634
10635 2018-03-26 Tom Tromey <tom@tromey.com>
10636
10637 * python/py-framefilter.c (py_print_single_arg): Return
10638 EXT_LANG_BT_ERROR from catch.
10639
10640 2018-03-26 Tom Tromey <tom@tromey.com>
10641
10642 PR backtrace/15584:
10643 * stack.c (backtrace_command_1): Move some code into no-filters
10644 "if".
10645
10646 2018-03-26 Tom Tromey <tom@tromey.com>
10647
10648 * python/py-framefilter.c (throw_quit_or_print_exception): New
10649 function.
10650 (gdbpy_apply_frame_filter): Use it.
10651
10652 2018-03-26 Tom Tromey <tom@tromey.com>
10653
10654 PR cli/17716:
10655 * python/py-framefilter.c (py_print_type, py_print_value)
10656 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10657 RETURN_MASK_ERROR.
10658
10659 2018-03-26 Tom Tromey <tom@tromey.com>
10660
10661 * python/py-framefilter.c (enumerate_args): Use
10662 gdb::unique_xmalloc_ptr.
10663
10664 2018-03-26 Tom Tromey <tom@tromey.com>
10665
10666 * python/py-framefilter.c (py_print_frame): Return
10667 EXT_LANG_BT_OK.
10668 (gdbpy_apply_frame_filter): Update comment.
10669 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10670 Remove.
10671 <EXT_LANG_BT_NO_FILTERS>: Change value.
10672
10673 2018-03-26 Tom Tromey <tom@tromey.com>
10674
10675 PR backtrace/15582:
10676 * stack.c (backtrace_command): Parse "hide" argument.
10677 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10678 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10679 constant.
10680
10681 2018-03-26 Tom Tromey <tom@tromey.com>
10682
10683 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10684 add "flags".
10685 (backtrace_command): Remove "fulltrace", add "flags".
10686
10687 2018-03-26 Tom Tromey <tom@tromey.com>
10688
10689 * stack.c (backtrace_command): Rewrite command line parsing.
10690
10691 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10692
10693 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10694
10695 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10696
10697 * filename-seen-cache.h: Add include guard.
10698
10699 2018-03-26 Keith Seitz <keiths@redhat.com>
10700
10701 * symfile.c (place_section): Remove "struct" from section_addr_info
10702 in comment.
10703 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10704 "struct" keyword from section_addr_info.
10705
10706 2018-03-26 Alan Hayward <alan.hayward@arm.com>
10707
10708 * regformats/regdef.h (reg): Add constructors.
10709
10710 2018-03-25 Pedro Alves <palves@redhat.com>
10711
10712 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10713 if then/else bodies in var_func_name extraction.
10714
10715 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
10716
10717 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10718 lookup_minimal_symbol() to find symbol entry.
10719 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10720
10721 2018-03-23 Keith Seitz <keiths@redhat.com>
10722
10723 PR c++/22968
10724 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10725 nested type definitions for C++, too.
10726
10727 2018-03-23 Tom Tromey <tom@tromey.com>
10728
10729 * machoread.c (struct oso_el): Add a constructor. Don't define as
10730 a typedef.
10731 (macho_register_oso): Remove.
10732 (macho_symtab_read): Take a std::vector.
10733 (oso_el_compare_name): Now a std::sort comparator.
10734 (macho_symfile_read_all_oso): Take a std::vector.
10735 (macho_symfile_read): Use std::vector. Remove cleanups.
10736
10737 2018-03-22 Tom Tromey <tom@tromey.com>
10738
10739 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10740 (record_full_goto_bookmark): Use std::string.
10741
10742 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10743
10744 PR tdep/18295
10745 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10746 a single mask.
10747
10748 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10749
10750 * rs6000-tdep.c (store_insn_p): New function.
10751 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10752 and cr_reg to their unshifted values. Use store_insn_p to
10753 match LR saves using either R1 or fdata->alloca_reg. Use
10754 store_insn_p to match CR saves. Set alloca_reg_offset
10755 when alloca_reg and framep are set. Remove lr_reg shift
10756 when assigning to fdata->lr_register.
10757
10758 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10759
10760 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10761 command line args instead of emitting a warning.
10762
10763 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10764
10765 * tracepoint.h (struct static_tracepoint_marker): Initialize
10766 fields, define default constructor, move constructor and move
10767 assignment, disable the rest.
10768 <str_id, extra>: Make std::string.
10769 (release_static_tracepoint_marker): Remove.
10770 (free_current_marker): Remove.
10771 * tracepoint.c (free_current_marker): Remove.
10772 (parse_static_tracepoint_marker_definition): Adjust to
10773 std::string, use new hex2str overload.
10774 (release_static_tracepoint_marker): Remove.
10775 (print_one_static_tracepoint_marker): Get marker by reference
10776 and adjust to std::string.
10777 (info_static_tracepoint_markers_command): Adjust to std::vector
10778 changes
10779 * target.h (static_tracepoint_marker_p): Remove typedef.
10780 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10781 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10782 bool.
10783 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10784 * target-debug.h
10785 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10786 (target_debug_print_std_vector_static_tracepoint_marker): New.
10787 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10788 to...
10789 (target_debug_print_static_tracepoint_marker_p): ... this.
10790 * target-delegates.c: Re-generate.
10791 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10792 Make std::string.
10793 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10794 (decode_static_tracepoint_spec): Adjust to std::vector.
10795 (tracepoint_print_one_detail): Adjust to std::string.
10796 (strace_marker_decode_location): Adjust to std::string.
10797 (update_static_tracepoint): Adjust to std::string, remove call
10798 to release_static_tracepoint_marker.
10799 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10800 Adjust to std::vector.
10801 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10802 (remote_static_tracepoint_markers_by_strid): Adjust to
10803 std::vector.
10804 * common/rsp-low.h (hex2str): New overload with explicit count
10805 of bytes.
10806 * common/rsp-low.c (hex2str): New overload with explicit count
10807 of bytes.
10808 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10809 (_initialize_rsp_low_selftests): Add test_hex2str test.
10810 * unittests/tracepoint-selftests.c
10811 (test_parse_static_tracepoint_marker_definition): Adjust to
10812 std::string.
10813
10814 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10815
10816 * tracepoint.c (parse_static_tracepoint_marker_definition):
10817 Consider case where the definition is followed by more
10818 definitions.
10819 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10820 tracepoint-selftests.c.
10821 * unittests/tracepoint-selftests.c: New.
10822
10823 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10824
10825 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10826 Carvalho.
10827
10828 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10829
10830 * symtab.c (find_pc_sect_line): fixed indentation.
10831
10832 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10833
10834 * symtab.c (find_pc_sect_line): now uses binary search.
10835
10836 2018-03-19 Tom Tromey <tom@tromey.com>
10837
10838 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10839 "IDENT" production.
10840
10841 2018-03-19 Pedro Alves <palves@redhat.com>
10842 Tom Tromey <tom@tromey.com>
10843
10844 * unittests/observable-selftests.c: New file.
10845 * common/observable.h: New file.
10846 * observable.h: New file.
10847 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10848 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10849 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10850 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10851 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10852 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10853 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10854 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10855 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10856 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10857 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10858 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10859 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10860 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10861 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10862 tui/tui-interp.c, valops.c: Update all users.
10863 * tui/tui-hooks.c (tui_bp_created_observer)
10864 (tui_bp_deleted_observer, tui_bp_modified_observer)
10865 (tui_inferior_exit_observer, tui_before_prompt_observer)
10866 (tui_normal_stop_observer, tui_register_changed_observer):
10867 Remove.
10868 (tui_observers_token): New global.
10869 (attach_or_detach, tui_attach_detach_observers): New functions.
10870 (tui_install_hooks, tui_remove_hooks): Use
10871 tui_attach_detach_observers.
10872 * record-btrace.c (record_btrace_thread_observer): Remove.
10873 (record_btrace_thread_observer_token): New global.
10874 * observer.sh: Remove.
10875 * observer.c: Rename to observable.c.
10876 * observable.c (namespace gdb_observers): Define new objects.
10877 (observer_debug): Move into gdb_observers namespace.
10878 (struct observer, struct observer_list, xalloc_observer_list_node)
10879 (xfree_observer_list_node, generic_observer_attach)
10880 (generic_observer_detach, generic_observer_notify): Remove.
10881 (_initialize_observer): Update.
10882 Don't include observer.inc.
10883 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10884 (clean mostlyclean): Likewise.
10885 (observer.h, observer.inc): Remove targets.
10886 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10887 (COMMON_SFILES): Use observable.c, not observer.c.
10888 * .gitignore: Remove observer.h.
10889
10890 2018-03-18 Tom Tromey <tom@tromey.com>
10891
10892 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10893 gdb::def_vector.
10894 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10895
10896 2018-03-17 Tom Tromey <tom@tromey.com>
10897
10898 * auto-load.c (auto_load_objfile_script_1): Use std::string.
10899
10900 2018-03-17 Tom Tromey <tom@tromey.com>
10901
10902 * target.c (class scoped_target_fd): New.
10903 (target_fileio_close_cleanup): Remove.
10904 (target_fileio_read_alloc_1): Use scoped_target_fd.
10905
10906 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
10907
10908 * silent-rules.mk: New.
10909 * Makefile.in: Include silent-rules.mk
10910 (srcdir, VPATH, top_srcdir): Move up.
10911 (COMPILE): Add ECHO_CXX.
10912 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
10913 (init.c): Add ECHO_INIT_C.
10914 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10915 (version.c): Add ECHO_GEN.
10916 (printcmd.o): Add ECHO_CXX.
10917 (target-float.o): Add ECHO_CXX.
10918 (ada-exp.o): Add ECHO_CXX.
10919 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
10920 (insight$(EXEEXT)): Add ECHO_CXXLD.
10921 * gnulib/configure.ac: Add AM_SILENT_RULES.
10922 * gnulib/aclocal.m4: Re-generate.
10923 * gnulib/configure: Re-generate.
10924 * gnulib/import/Makefile.in: Re-generate.
10925
10926 2018-03-16 Tom Tromey <tom@tromey.com>
10927
10928 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
10929 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
10930 * utils.c (do_free_section_addr_info)
10931 (make_cleanup_free_section_addr_info): Remove.
10932 * symfile.h (struct other_sections): Add constructor.
10933 (struct section_addr_info): Remove.
10934 (section_addr_info): New typedef.
10935 (struct sym_fns) <sym_offsets>: Change type of parameter.
10936 (build_section_addr_info_from_objfile)
10937 (relative_addr_info_to_section_offsets, addr_info_make_relative)
10938 (default_symfile_offsets, symbol_file_add)
10939 (symbol_file_add_from_bfd)
10940 (build_section_addr_info_from_section_table): Update.
10941 (alloc_section_addr_info, free_section_addr_info): Don't declare.
10942 * symfile.c (alloc_section_addr_info): Remove.
10943 (build_section_addr_info_from_section_table): Change return type.
10944 Update.
10945 (build_section_addr_info_from_bfd)
10946 (build_section_addr_info_from_objfile): Likewise.
10947 (free_section_addr_info): Remove.
10948 (relative_addr_info_to_section_offsets): Change type of "addrs".
10949 (addrs_section_compar): Now a std::sort comparator.
10950 (addrs_section_sort): Change return type.
10951 (addr_info_make_relative): Change type of "addrs". Update.
10952 (default_symfile_offsets, syms_from_objfile_1)
10953 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
10954 (symbol_file_add_separate): Update.
10955 (symbol_file_add): Change type of "addrs". Update.
10956 (add_symbol_file_command): Update. Remove cleanups.
10957 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
10958 cleanups.
10959 * symfile-debug.c (debug_sym_offsets): Change type of "info".
10960 * solib.c (solib_read_symbols): Update.
10961 * objfiles.c (objfile_relocate): Update. Remove cleanups.
10962 * machoread.c (macho_symfile_offsets): Update.
10963 * jit.c (jit_bfd_try_read_symtab): Update.
10964
10965 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
10966
10967 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10968 unittests/utils-selftests.c.
10969 * unittests/utils-selftests.c: New file.
10970
10971 2018-03-14 Tom Tromey <tom@tromey.com>
10972
10973 PR cli/14977:
10974 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
10975 for NULL.
10976
10977 2018-03-14 Tom Tromey <tom@tromey.com>
10978
10979 PR cli/19918:
10980 * printcmd.c (printf_pointer): Allow "-" in format.
10981
10982 2018-03-14 Tom Tromey <tom@tromey.com>
10983
10984 * printcmd.c (_initialize_printcmd): Add usage to printf.
10985
10986 2018-03-14 Yao Qi <qiyao@sourceware.org>
10987
10988 * MAINTAINERS: Update my email address.
10989
10990 2018-03-13 Tom Tromey <tom@tromey.com>
10991
10992 * machoread.c (macho_check_dsym): Change filenamep to a
10993 std::string*.
10994 (macho_symfile_read): Update.
10995 * symfile.c (load_command): Use std::string.
10996
10997 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
10998
10999 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11000 to error message string.
11001 (riscv_register_name): Use xsnprintf instead of sprintf.
11002 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11003 internal_error.
11004 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11005 error.
11006 (riscv_push_dummy_call): Likewise.
11007
11008 2018-03-12 Tom Tromey <tom@tromey.com>
11009
11010 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11011 Use gdb::byte_vector.
11012 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11013
11014 2018-03-12 Yao Qi <yao.qi@linaro.org>
11015
11016 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11017 parameter type to readable_regcache.
11018 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11019 the declaration.
11020
11021 2018-03-11 Tom Tromey <tom@tromey.com>
11022
11023 * dwarf2read.c (struct nextfield): Add initializers.
11024 (struct nextfnfield): Remove.
11025 (struct fnfieldlist): Add initializers. Remove "length" and
11026 "head", use std::vector.
11027 (struct decl_field_list): Remove.
11028 (struct field_info): Add initializers.
11029 <fields, baseclasses>: Now std::vector.
11030 <nbaseclasses, nfnfields, typedef_field_list_count,
11031 nested_types_list_count>: Remove.
11032 (dwarf2_add_field, dwarf2_add_type_defn)
11033 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11034 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11035 (process_structure_scope): Update.
11036
11037 2018-03-11 Tom Tromey <tom@tromey.com>
11038
11039 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11040 for use by std::sort.
11041 (build_type_psymtabs_1): Use std::vector.
11042
11043 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11044
11045 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11046 and LIBMPFR in the printed configuration.
11047
11048 2018-03-08 Tom Tromey <tom@tromey.com>
11049
11050 * source.c (get_filename_and_charpos): Use scoped_fd.
11051 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11052 (procfs_pidlist): Likewise.
11053 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11054 (iterate_over_mappings): Likewise.
11055
11056 2018-03-08 Tom Tromey <tom@tromey.com>
11057
11058 * infcall.c (struct call_return_meta_info)
11059 <stack_temporaries_enabled>: Remove.
11060 (get_call_return_value, call_function_by_hand_dummy): Update.
11061 * thread.c (disable_thread_stack_temporaries): Remove.
11062 (enable_thread_stack_temporaries): Remove.
11063 (thread_stack_temporaries_enabled_p): Return bool.
11064 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11065 (get_last_thread_stack_temporary): Update.
11066 * eval.c (evaluate_subexp): Update.
11067 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11068 class, not a function.
11069 (value_ptr, value_vec): Remove typedefs.
11070 (class thread_info) <stack_temporaries_enabled>: Now bool.
11071 <stack_temporaries>: Now a std::vector.
11072 (thread_stack_temporaries_enabled_p)
11073 (value_in_thread_stack_temporaries): Return bool.
11074
11075 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11076
11077 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11078 (getpkt_or_notif_sane_1): Likewise.
11079
11080 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11081
11082 * build-id.c (build_id_to_debug_bfd): Use std::string.
11083
11084 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11085
11086 * build-id.c (find_separate_debug_file_by_buildid): Return
11087 std::string.
11088 * build-id.h (find_separate_debug_file_by_buildid): Return
11089 std::string.
11090 * coffread.c (coff_symfile_read): Adjust to std::string.
11091 * elfread.c (elf_symfile_read): Adjust to std::string.
11092 * symfile.c (separate_debug_file_exists): Change parameter to
11093 std::string.
11094 (find_separate_debug_file): Return std::string.
11095 (find_separate_debug_file_by_debuglink): Return std::string.
11096 * symfile.h (find_separate_debug_file_by_debuglink): Return
11097 std::string.
11098
11099 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11100
11101 * common/xml-utils.c (xml_escape_text): Move code to...
11102 (xml_escape_text_append): ... this new function.
11103 * common/xml-utils.h (xml_escape_text_append): New declaration.
11104 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11105 New function.
11106 (_initialize_xml_utils): register test_xml_escape_text_append as
11107 a selftest.
11108
11109 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11110
11111 * defs.h: Remove MAX_REGISTER_SIZE.
11112 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11113 asserts.
11114 * python/py-unwind.c (pyuw_sniffer): Likewise.
11115
11116 2018-03-07 Tom Tromey <tom@tromey.com>
11117
11118 * linux-tdep.c (linux_info_proc): Update.
11119 * target.h (struct target_ops) <to_fileio_readlink>: Return
11120 optional<string>.
11121 (target_fileio_readlink): Return optional<string>.
11122 * remote.c (remote_hostio_readlink): Return optional<string>.
11123 * inf-child.c (inf_child_fileio_readlink): Return
11124 optional<string>.
11125 * target.c (target_fileio_readlink): Return optional<string>.
11126
11127 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11128
11129 * regcache.c (cooked_read_test): Add riscv to the list of
11130 architectures that have a save_reggroup.
11131
11132 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11133
11134 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11135 value is not a dynamic class object.
11136
11137 2018-03-06 Tom Tromey <tom@tromey.com>
11138
11139 * rust-exp.y: Formatting fixes.
11140
11141 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11142
11143 * riscv-tdep.c (riscv_register_name): Remove target description
11144 support.
11145 (riscv_gdbarch_init): Remove target description check.
11146
11147 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11148
11149 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11150 comment.
11151 * riscv-tdep.h: Likewise.
11152
11153 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11154
11155 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11156 (riscv_pseudo_register_write): Delete.
11157 (riscv_gdbarch_init): Remove all use of pseudo registers.
11158
11159 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11160
11161 * record-btrace.c (btrace_print_lines): Replace cleanup
11162 parameter with RAII equivalents.
11163 (btrace_insn_history): Replace cleanup with RAII equivalents.
11164 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11165 make_cleanup_ui_out_tuple_begin_end): Remove.
11166 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11167 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11168 make_cleanup_ui_out_list_begin_end): Remove.
11169
11170 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11171
11172 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11173 parameter types to std::vector. Use bool.
11174 (record_btrace_wait): Replace VEC(tp_t) with
11175 std::vector<thread_info *>.
11176 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11177
11178 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11179
11180 * record-btrace.c (record_btrace_disable_callback): Remove.
11181 (struct scoped_btrace_disable): New.
11182 (record_btrace_open): Use scoped_btrace_disable.
11183
11184 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11185
11186 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11187 reading values from registers.
11188
11189 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11190
11191 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11192 where appropriate.
11193
11194 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11195
11196 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11197 change parameter type. Use GDB's print functions, and use
11198 core_addr_to_string where appropriate.
11199 (riscv_push_dummy_call): Use core_addr_to_string where
11200 appropriate, update call to riscv_print_arg_location, and reindent
11201 a few lines.
11202 (riscv_return_value): Update call to riscv_print_arg_location.
11203
11204 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11205 Tim Newsome <tim@sifive.com>
11206 Albert Ou <a0u@eecs.berkeley.edu>
11207 Darius Rad <darius@bluespec.com>
11208
11209 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11210 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11211 (ALLDEPFILES): Add riscv-tdep.c
11212 * configure.tgt: Add riscv support.
11213 * riscv-tdep.c: New file.
11214 * riscv-tdep.h: New file.
11215 * NEWS: Mention new target.
11216 * MAINTAINERS: Add entry for riscv.
11217
11218 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11219
11220 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11221 fields within aggregates.
11222
11223 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11224
11225 * record-btrace.c (btrace_print_lines): Change type of flags to
11226 gdb_disassembly_flags.
11227
11228 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11229
11230 * fbsd-nat.c: Include "inf-ptrace.h".
11231 (USE_SIGTRAP_SIGINFO): Conditionally define.
11232 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11233 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11234 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11235 function.
11236 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11237 Likewise.
11238 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11239 Likewise.
11240 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11241 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11242 "supports_stopped_by_hw_breakpoint" target methods.
11243
11244 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11245
11246 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11247 * fbsd-nat.c (debug_fbsd_nat): New variable.
11248 (show_fbsd_nat_debug): New function.
11249 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11250 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11251
11252 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11253
11254 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11255 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11256 prototype.
11257 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11258 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11259 method.
11260
11261 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11262
11263 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11264 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11265
11266 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11267
11268 * charset.c (struct charset_vector): New.
11269 (charsets): Change type to charset_vector.
11270 (find_charset_names): Adjust.
11271 (add_one): Adjust.
11272 (_initialize_charset): Adjust.
11273
11274 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11275
11276 * progspace.h (struct program_space) <deleted_solibs>: Change
11277 type to std::vector<std::string>.
11278 * progspace.c (clear_program_space_solib_cache): Adjust.
11279 * breakpoint.c (print_solib_event): Adjust.
11280 (check_status_catch_solib): Adjust.
11281 * solib.c (update_solib_list): Adjust.
11282 * ui-out.h (class ui_out) <field_string>: New overload.
11283 * ui-out.c (ui_out::field_string): New overload.
11284
11285 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11286
11287 * progspace.h (struct program_space): Add constructor and
11288 destructor, initialize fields.
11289 (add_program_space): Remove.
11290 * progspace.c (add_program_space): Rename to...
11291 (program_space::program_space): ... this.
11292 (release_program_space): Rename to...
11293 (program_space::~program_space): ... this.
11294 (delete_program_space): Use delete to delete program_space.
11295 (initialize_progspace): Use new to allocate program_space.
11296 * inferior.c (add_inferior_with_spaces): Likewise.
11297 (clone_inferior_command): Likewise.
11298 * infrun.c (follow_fork_inferior): Likewise.
11299 (handle_vfork_child_exec_or_exit): Likewise.
11300
11301 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11302
11303 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11304 (delim_string_to_char_ptr_vec): Return std::vector of
11305 gdb::unique_xmalloc_ptr.
11306 (dirnames_to_char_ptr_vec_append): Take std::vector of
11307 gdb::unique_xmalloc_ptr.
11308 (dirnames_to_char_ptr_vec): Return std::vector of
11309 gdb::unique_xmalloc_ptr.
11310 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11311 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11312 (delim_string_to_char_ptr_vec): Return an std::vector of
11313 gdb::unique_xmalloc_ptr, adjust the code.
11314 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11315 gdb::unique_xmalloc_ptr, adjust the code.
11316 (dirnames_to_char_ptr_vec): Return an std::vector of
11317 gdb::unique_xmalloc_ptr, adjust the code.
11318 * auto-load.c (auto_load_safe_path_vec): Change type to
11319 std::vector of gdb::unique_xmalloc_ptr.
11320 (auto_load_expand_dir_vars): Return an std::vector of
11321 gdb::unique_xmalloc_ptr, adjust the code.
11322 (auto_load_safe_path_vec_update): Adjust.
11323 (filename_is_in_auto_load_safe_path_vec): Adjust.
11324 (auto_load_objfile_script_1): Adjust.
11325 * build-id.c (build_id_to_debug_bfd): Adjust.
11326 * linux-thread-db.c (thread_db_load_search): Adjust.
11327 * source.c (add_path): Adjust.
11328 (openp): Adjust.
11329 * symfile.c (find_separate_debug_file): Adjust.
11330 * utils.c (do_free_char_ptr_vec): Remove.
11331 (make_cleanup_free_char_ptr_vec): Remove.
11332
11333 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11334
11335 PR gdb/22907
11336 * common/pathstuff.c: Conditionally include "<windows.h>".
11337
11338 2018-03-01 Georg Sauthoff <mail@georg.so>
11339
11340 PR gdb/22888
11341 * gcore.in: Quote variables and switch interpreter to bash.
11342
11343 2018-03-01 Tom Tromey <tom@tromey.com>
11344
11345 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11346 assertion. Add assertion for discriminant_index.
11347 (quirk_rust_enum): Use correct base type name in univariant case.
11348
11349 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11350
11351 * record.c (get_call_history_modifiers): Return a
11352 record_print_flags.
11353 (cmd_record_call_history): Adjust.
11354 * record-btrace.c (record_btrace_call_history): Adjust.
11355 (record_btrace_call_history_range): Adjust.
11356 (record_btrace_call_history_from): Adjust.
11357 * target-debug.h (target_debug_print_record_print_flags): New.
11358 * target-delegates.c: Re-generate.
11359 * target.c (target_call_history): Change flags type.
11360 (target_call_history_from): Likewise.
11361 (target_call_history_range): Likewise.
11362 * target.h (struct target_ops) <target_call_history>: Likewise.
11363 (target_call_history_from): Likewise.
11364 (target_call_history_range): Likewise.
11365
11366 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11367 Simon Marchi <simon.marchi@polymtl.ca>
11368
11369 * common/common-utils.c: Include "sys/stat.h".
11370 (is_regular_file): Move here from "source.c"; change return
11371 type to "bool".
11372 * common/common-utils.h (is_regular_file): New prototype.
11373 * common/pathstuff.c (contains_dir_separator): New function.
11374 * common/pathstuff.h (contains_dir_separator): New prototype.
11375 * source.c: Don't include "sys/stat.h".
11376 (is_regular_file): Move to "common/common-utils.c".
11377
11378 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11379
11380 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11381 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11382 * auto-load.c: Include "common/pathstuff.h".
11383 * common/common-def.h (current_directory): Move here.
11384 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11385 function.
11386 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11387 prototype.
11388 * common/pathstuff.c: New file.
11389 * common/pathstuff.h: New file.
11390 * compile/compile.c: Include "common/pathstuff.h".
11391 * defs.h (current_directory): Move to "common/common-defs.h".
11392 * dwarf2read.c: Include "common/pathstuff.h".
11393 * exec.c: Likewise.
11394 * guile/scm-safe-call.c: Likewise.
11395 * linux-thread-db.c: Likewise.
11396 * main.c: Likewise.
11397 * nto-tdep.c: Likewise.
11398 * objfiles.c: Likewise.
11399 * source.c: Likewise.
11400 * symtab.c: Likewise.
11401 * utils.c: Include "common/pathstuff.h".
11402 (gdb_realpath): Move to "common/pathstuff.c".
11403 (gdb_realpath_keepfile): Likewise.
11404 (gdb_abspath): Likewise.
11405 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11406 (gdb_realpath_keepfile): Likewise.
11407 (gdb_abspath): Likewise.
11408
11409 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11410
11411 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11412 wildcard process pid for super_resume for kernels with a
11413 specific bug.
11414
11415 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11416
11417 * compile/compile.c (get_args): Add additional comments
11418 explaining function.
11419
11420 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11421 Tom Tromey <tom@tromey.com>
11422
11423 * target.h (memory_write_request_s): Remove typedef. Don't define
11424 VEC.
11425 (target_write_memory_blocks): Change argument to std::vector.
11426 (struct memory_write_request): Add constructor.
11427 * target-memory.c (compare_block_starting_address): Return bool.
11428 Change argument types.
11429 (claim_memory): Change arguments to use std::vector.
11430 (split_regular_and_flash_blocks, blocks_to_erase)
11431 (compute_garbled_blocks): Likewise.
11432 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11433 (target_write_memory_blocks): Change argument to std::vector.
11434 * symfile.c (struct load_section_data): Add constructor and
11435 destructor. Use std::vector for "requests".
11436 (struct load_progress_data): Add initializers.
11437 (load_section_callback): Update. Use "new".
11438 (clear_memory_write_data): Remove.
11439 (generic_load): Update.
11440
11441 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11442
11443 * arch/aarch64.h: Use common/tdesc.h.
11444
11445 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11446
11447 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11448 architecture with a 64-bit ABI.
11449
11450 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11451
11452 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11453 ahead of target description loading.
11454
11455 2018-02-26 Tom Tromey <tom@tromey.com>
11456
11457 * stack.c (backtrace_command_1): Update.
11458 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11459 of "flags".
11460 * python/py-framefilter.c (py_print_frame)
11461 (gdbpy_apply_frame_filter): Change type of "flags".
11462 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11463 of "flags".
11464 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11465 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11466 * extension.h (enum frame_filter_flag): Rename from
11467 frame_filter_flags.
11468 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11469 (apply_ext_lang_frame_filter): Change type of "flags".
11470 * extension.c (apply_ext_lang_frame_filter): Change type of
11471 "flags".
11472 * extension-priv.h (struct extension_language_ops)
11473 <apply_frame_filter>: Change type of "flags".
11474
11475 2018-02-26 Tom Tromey <tom@tromey.com>
11476
11477 PR python/16497:
11478 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11479 off-by-one in py_end computation.
11480 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11481 PRINT_MORE_FRAMES.
11482 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11483 constant.
11484
11485 2018-02-26 Tom Tromey <tom@tromey.com>
11486
11487 * dwarf2read.c (struct variant_field): New.
11488 (struct nextfield) <variant>: New field.
11489 (dwarf2_add_field): Handle DW_TAG_variant_part.
11490 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11491 discriminated union.
11492 (read_structure_type): Handle DW_TAG_variant_part.
11493 (handle_struct_member_die): New function, extracted from
11494 process_structure_scope. Handle DW_TAG_variant.
11495 (process_structure_scope): Handle discriminated unions. Call
11496 handle_struct_member_die.
11497
11498 2018-02-26 Tom Tromey <tom@tromey.com>
11499
11500 * rust-lang.h (rust_last_path_segment): Declare.
11501 * rust-lang.c (rust_last_path_segment): Now public. Change
11502 contract.
11503 (struct disr_info): Remove.
11504 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11505 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11506 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11507 (rust_enum_p, rust_enum_variant): New function.
11508 (rust_underscore_fields): Remove "offset" parameter.
11509 (rust_print_enum): New function.
11510 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11511 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11512 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11513 enums.
11514 (rust_internal_print_type): New function, from rust_print_type.
11515 Remove enum code.
11516 (rust_print_type): Call rust_internal_print_type.
11517 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11518 Update enum handling.
11519 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11520 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11521 (rust_union_quirks): New functions.
11522 (process_full_comp_unit, process_full_type_unit): Call
11523 rust_union_quirks.
11524 (process_structure_scope): Update rust_unions if necessary.
11525
11526 2018-02-26 Tom Tromey <tom@tromey.com>
11527
11528 * value.h (value_union_variant): Declare.
11529 * valops.c (value_union_variant): New function.
11530 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11531 (struct discriminant_info): New.
11532 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11533 enumerator.
11534 (struct main_type) <flag_discriminated_union>: New field.
11535
11536 2018-02-26 Tom Tromey <tom@tromey.com>
11537
11538 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11539 unittests/unpack-selftests.c.
11540 * unittests/unpack-selftests.c: New file.
11541 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11542
11543 2018-02-26 Yao Qi <yao.qi@linaro.org>
11544
11545 * dwarf2read.c (struct partial_die_info) <read>: New method.
11546 (read_partial_die): Remove the declaration.
11547 (load_partial_dies): Update.
11548 (partial_die_info::partial_die_info):
11549 (read_partial_die): Change it to partial_die_info::read.
11550
11551 2018-02-26 Yao Qi <yao.qi@linaro.org>
11552
11553 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11554 (fixup_partial_die): Remove declaration.
11555 (scan_partial_symbols): Update.
11556 (partial_die_parent_scope): Likewise.
11557 (partial_die_full_name): Likewise.
11558 (fixup_partial_die): Change it to partial_die_info::fixup.
11559
11560 2018-02-26 Yao Qi <yao.qi@linaro.org>
11561
11562 * dwarf2read.c (read_partial_die): Update the declaration.
11563 (load_partial_dies): Caller update.
11564 (read_partial_die): Remove one argument abbrev_len.
11565
11566 2018-02-26 Yao Qi <yao.qi@linaro.org>
11567
11568 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11569 assignment operator.
11570 (load_partial_dies): Use ctor and copy ctor.
11571 (read_partial_die): Update.
11572 (dwarf2_cu::find_partial_die): Use ctor.
11573
11574 2018-02-26 Yao Qi <yao.qi@linaro.org>
11575
11576 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11577 (find_partial_die_in_comp_unit): Change it to
11578 dwarf2_cu::find_partial_die.
11579 (find_partial_die): Update.
11580
11581 2018-02-26 Yao Qi <yao.qi@linaro.org>
11582
11583 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11584 is NULL.
11585
11586 2018-02-26 Yao Qi <yao.qi@linaro.org>
11587
11588 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11589
11590 2018-02-26 Alan Hayward <alan.hayward@arm.com>
11591
11592 * arch/amd64.h: Use common/tdesc.h.
11593 * arch/i386.c: Likewise.
11594 * arch/i386.h: Likewise.
11595 * arch/tic6x.c: Likewise.
11596 * arch/tdesc.h: Move file from here...
11597 * common/tdesc.h: ...to here.
11598 * features/aarch64-core.c: Regenerate.
11599 * features/aarch64-fpu.c: Regenerate.
11600 * features/i386/32bit-avx.c: Regenerate.
11601 * features/i386/32bit-avx512.c: Regenerate.
11602 * features/i386/32bit-core.c: Regenerate.
11603 * features/i386/32bit-linux.c: Regenerate.
11604 * features/i386/32bit-mpx.c: Regenerate.
11605 * features/i386/32bit-pkeys.c: Regenerate.
11606 * features/i386/32bit-sse.c: Regenerate.
11607 * features/i386/64bit-avx.c: Regenerate.
11608 * features/i386/64bit-avx512.c: Regenerate.
11609 * features/i386/64bit-core.c: Regenerate.
11610 * features/i386/64bit-linux.c: Regenerate.
11611 * features/i386/64bit-mpx.c: Regenerate.
11612 * features/i386/64bit-pkeys.c: Regenerate.
11613 * features/i386/64bit-segments.c: Regenerate.
11614 * features/i386/64bit-sse.c: Regenerate.
11615 * features/i386/x32-core.c: Regenerate.
11616 * features/tic6x-c6xp.c: Regenerate.
11617 * features/tic6x-core.c: Regenerate.
11618 * features/tic6x-gp.c: Regenerate.
11619 * target-descriptions.c: Use common/tdesc.h.
11620 * target-descriptions.h: Likewise.
11621
11622 2018-02-24 Tom Tromey <tom@tromey.com>
11623
11624 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11625 (try_thread_db_load_from_dir, thread_db_load_search): Use
11626 std::string.
11627 (info_auto_load_libthread_db_compare): Return bool. Change
11628 argument types.
11629 (info_auto_load_libthread_db): Use std::vector, std::string.
11630 Remove cleanups.
11631
11632 2018-02-24 Tom Tromey <tom@tromey.com>
11633
11634 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11635 std::string.
11636 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11637 std::string*.
11638 * gdbarch.c: Rebuild.
11639 * gdbarch.h: Rebuild.
11640 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11641 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11642 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11643 std::string*.
11644
11645 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11646
11647 * gdbtypes.h (sect_offset): Change type to uint64_t.
11648 (sect_offset_str): New function.
11649 * dwarf2read.c (create_addrmap_from_aranges): Use
11650 sect_offset_str.
11651 (error_check_comp_unit_head): Likewise.
11652 (create_debug_type_hash_table): Likewise.
11653 (read_cutu_die_from_dwo): Likewise.
11654 (init_cutu_and_read_dies): Likewise.
11655 (init_cutu_and_read_dies_no_follow): Likewise.
11656 (process_psymtab_comp_unit_reader): Likewise.
11657 (partial_die_parent_scope): Likewise.
11658 (peek_die_abbrev): Likewise.
11659 (process_queue): Likewise.
11660 (dwarf2_physname): Likewise.
11661 (read_namespace_alias): Likewise.
11662 (read_import_statement): Likewise.
11663 (create_dwo_cu_reader): Likewise.
11664 (create_cus_hash_table): Likewise.
11665 (lookup_dwo_cutu): Likewise.
11666 (inherit_abstract_dies): Likewise.
11667 (read_func_scope): Likewise.
11668 (read_call_site_scope): Likewise.
11669 (dwarf2_add_member_fn): Likewise.
11670 (read_common_block): Likewise.
11671 (read_module_type): Likewise.
11672 (read_typedef): Likewise.
11673 (read_subrange_type): Likewise.
11674 (load_partial_dies): Likewise.
11675 (read_partial_die): Likewise.
11676 (find_partial_die): Likewise.
11677 (read_str_index): Likewise.
11678 (dwarf2_string_attr): Likewise.
11679 (build_error_marker_type): Likewise.
11680 (lookup_die_type): Likewise.
11681 (dump_die_shallow): Likewise.
11682 (follow_die_ref): Likewise.
11683 (dwarf2_fetch_die_loc_sect_off): Likewise.
11684 (dwarf2_fetch_constant_bytes): Likewise.
11685 (follow_die_sig): Likewise.
11686 (get_signatured_type): Likewise.
11687 (get_DW_AT_signature_type): Likewise.
11688 (dwarf2_find_containing_comp_unit): Likewise.
11689 (set_die_type): Likewise.
11690
11691 2018-02-21 John Baldwin <jhb@FreeBSD.org>
11692
11693 * arch/aarch64.c: Include "common-defs.h".
11694 * arch/amd64.c: Likewise.
11695 * arch/i386.c: Likewise.
11696
11697 2018-02-21 Tom Tromey <tom@tromey.com>
11698
11699 * value.h: (extract_field_op): Update.
11700 * eval.c (extract_field_op): Return a const char *.
11701 * expression.h (parse_expression_for_completion): Update.
11702 * completer.c (complete_expression): Update.
11703 (add_struct_fields): Make fieldname const.
11704 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11705 (mark_completion_tag, parse_exp_in_context_1): Update.
11706 (parse_expression_for_completion): Change "name" to
11707 unique_xmalloc_ptr*.
11708
11709 2018-02-21 Tom Tromey <tom@tromey.com>
11710
11711 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11712
11713 2018-02-21 Yao Qi <yao.qi@linaro.org>
11714
11715 * avr-tdep.c (avr_read_pc): Change parameter type to
11716 readable_regcache.
11717 * gdbarch.sh (read_pc): Likewise.
11718 * gdbarch.c: Re-generated.
11719 * gdbarch.h: Re-generated.
11720 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11721 readable_regcache.
11722 * ia64-tdep.c (ia64_read_pc): Likewise.
11723 * mips-tdep.c (mips_read_pc): Likewise.
11724 * spu-tdep.c (spu_read_pc): Likewise.
11725
11726 2018-02-21 Yao Qi <yao.qi@linaro.org>
11727
11728 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11729 * regcache-dump.c: New file.
11730 * regcache.c: Move register_dump to regcache-dump.c.
11731 (maintenance_print_registers): Likewise.
11732 (maintenance_print_raw_registers): Likewise.
11733 (maintenance_print_cooked_registers): Likewise.
11734 (maintenance_print_register_groups): Likewise.
11735 (maintenance_print_remote_registers): Likewise.
11736 (_initialize_regcache): Likewise.
11737 * regcache.h (register_dump): Moved from regcache.c.
11738
11739 2018-02-21 Yao Qi <yao.qi@linaro.org>
11740
11741 * regcache.c (regcache::regcache): Update.
11742 (regcache::invalidate): Move it to detached_regcache::invalidate.
11743 (get_thread_arch_aspace_regcache): Update.
11744 (regcache::raw_update): Update.
11745 (regcache::cooked_read): Remove some code.
11746 (regcache::cooked_read_value): Likewise.
11747 (regcache::raw_write): Remove assert on m_readonly_p.
11748 (regcache::raw_supply_integer): Move it to
11749 detached_regcache::raw_supply_integer.
11750 (regcache::raw_supply_zeroed): Likewise.
11751 * regcache.h (detached_regcache) <raw_supply_integer>: New
11752 declaration.
11753 <raw_supply_zeroed, invalidate>: Likewise.
11754 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11755 <invalidate>: Likewise.
11756 <m_readonly_p>: Removed.
11757
11758 2018-02-21 Yao Qi <yao.qi@linaro.org>
11759
11760 * infcmd.c (get_return_value): Let stop_regs point to
11761 get_current_regcache.
11762 * regcache.c (regcache::regcache): Remove.
11763 (register_dump_reg_buffer): New class.
11764 (regcache_print): Adjust.
11765 * regcache.h (regcache): Remove constructors.
11766
11767 2018-02-21 Yao Qi <yao.qi@linaro.org>
11768
11769 * regcache.c (class register_dump): New class.
11770 (register_dump_regcache, register_dump_none): New class.
11771 (register_dump_remote, register_dump_groups): New class.
11772 (regcache_print): Update.
11773 * regcache.h (regcache_dump_what): Move it to regcache.c.
11774 (regcache) <dump>: Remove.
11775
11776 2018-02-21 Yao Qi <yao.qi@linaro.org>
11777
11778 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11779 reg_buffer_rw *.
11780 (jit_unwind_reg_set_impl): Call raw_supply.
11781 (jit_frame_sniffer): Use reg_buffer_rw.
11782 * record-full.c (record_full_core_regbuf): Change its type.
11783 (record_full_core_open_1): Use reg_buffer_rw.
11784 (record_full_close): Likewise.
11785 (record_full_core_fetch_registers): Use regcache->raw_supply.
11786 (record_full_core_store_registers): Likewise.
11787 * regcache.c (regcache::get_register_status): Move it to
11788 reg_buffer.
11789 (regcache_raw_set_cached_value): Remove.
11790 (regcache::raw_set_cached_value): Remove.
11791 (regcache::raw_write): Call raw_supply.
11792 (regcache::raw_supply): Move it to reg_buffer_rw.
11793 * regcache.h (regcache_raw_set_cached_value): Remove.
11794 (reg_buffer_rw): New class.
11795
11796 2018-02-21 Yao Qi <yao.qi@linaro.org>
11797
11798 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11799 readonly_detached_regcache.
11800 (dummy_frame_prev_register): Use regcache->cooked_read.
11801 * frame.c (frame_save_as_regcache): Change return type.
11802 (frame_pop): Update.
11803 * frame.h (frame_save_as_regcache): Update declaration.
11804 * inferior.h (get_infcall_suspend_state_regcache): Update
11805 declaration.
11806 * infrun.c (infcall_suspend_state) <registers>: use
11807 readonly_detached_regcache.
11808 (save_infcall_suspend_state): Don't use regcache_dup.
11809 (get_infcall_suspend_state_regcache): Change return type.
11810 * linux-fork.c (struct fork_info) <savedregs>: Change to
11811 readonly_detached_regcache.
11812 <pc>: New field.
11813 (fork_save_infrun_state): Don't use regcache_dup.
11814 (info_checkpoints_command): Adjust.
11815 * mi/mi-main.c (register_changed_p): Update declaration.
11816 (mi_cmd_data_list_changed_registers): Use
11817 readonly_detached_regcache.
11818 (register_changed_p): Change parameter type to
11819 readonly_detached_regcache.
11820 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11821 readonly_detached_regcache.
11822 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11823 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11824 New.
11825 (regcache::save): Move it to reg_buffer.
11826 (regcache::restore): Change parameter type.
11827 (regcache_dup): Remove.
11828 * regcache.h (reg_buffer) <save>: New method.
11829 (readonly_detached_regcache): New class.
11830 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11831 readonly_detached_regcache.
11832 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11833
11834 2018-02-21 Yao Qi <yao.qi@linaro.org>
11835
11836 * frame.c (frame_save_as_regcache): Use regcache method save.
11837 (frame_pop): Use regcache method restore.
11838 * infrun.c (restore_infcall_suspend_state): Likewise.
11839 * linux-fork.c (fork_load_infrun_state): Likewise.
11840 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11841 save.
11842 * regcache.c (regcache_save): Remove.
11843 (regcache::restore): More asserts.
11844 (regcache_cpy): Remove.
11845 * regcache.h (regcache_save): Remove the declaration.
11846 (regcache::restore): Move from private to public.
11847 Remove the friend declaration of regcache_cpy.
11848 (regcache_cpy): Remove declaration.
11849
11850 2018-02-21 Yao Qi <yao.qi@linaro.org>
11851
11852 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11853 parameter type to 'readable_regcache *'.
11854 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11855 * arm-tdep.c (arm_neon_quad_read): Likewise.
11856 (arm_pseudo_read): Likewise.
11857 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11858 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11859 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11860 * gdbarch.c: Re-generated.
11861 * gdbarch.h: Re-generated.
11862 * gdbarch.sh (pseudo_register_read): Change parameter type to
11863 'readable_regcache *'.
11864 (pseudo_register_read_value): Likewise.
11865 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11866 (h8300_pseudo_register_read): Likewise.
11867 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11868 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11869 (i386_pseudo_register_read_into_value): Likewise.
11870 (i386_pseudo_register_read_value): Likewise.
11871 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11872 declaration.
11873 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11874 * m32c-tdep.c (m32c_raw_read): Likewise.
11875 (m32c_read_flg): Likewise.
11876 (m32c_banked_register): Likewise.
11877 (m32c_banked_read): Likewise.
11878 (m32c_sb_read): Likewise.
11879 (m32c_part_read): Likewise.
11880 (m32c_cat_read): Likewise.
11881 (m32c_r3r2r1r0_read): Likewise.
11882 (m32c_pseudo_register_read): Likewise.
11883 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11884 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11885 (mep_pseudo_cr64_read): Likewise.
11886 (mep_pseudo_register_read): Likewise.
11887 * mips-tdep.c (mips_pseudo_register_read): Likewise.
11888 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11889 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11890 * regcache.c (regcache::raw_read): Move it to readable_regcache.
11891 (regcache::cooked_read): Likewise.
11892 (regcache::cooked_read_value): Likewise.
11893 (regcache_cooked_read_signed):
11894 (regcache::cooked_read): Likewise.
11895 * regcache.h (readable_regcache): New class.
11896 (regcache): Inherit readable_regcache. Move some methods to
11897 readable_regcache.
11898 * rl78-tdep.c (rl78_pseudo_register_read): Change
11899 parameter type to 'readable_regcache *'.
11900 * rs6000-tdep.c (do_regcache_raw_read): Remove.
11901 (e500_pseudo_register_read): Change parameter type to
11902 'readable_regcache *'.
11903 (dfp_pseudo_register_read): Likewise.
11904 (vsx_pseudo_register_read): Likewise.
11905 (efpr_pseudo_register_read): Likewise.
11906 * s390-tdep.c (s390_pseudo_register_read): Likewise.
11907 * sh-tdep.c (sh_pseudo_register_read): Likewise.
11908 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
11909 (sh64_pseudo_register_read): Likewise.
11910 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11911 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11912 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11913 (spu_pseudo_register_read): Likewise.
11914 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11915 (xtensa_pseudo_register_read): Likewise.
11916
11917 2018-02-21 Yao Qi <yao.qi@linaro.org>
11918
11919 * regcache.c (regcache::regcache): Call reg_buffer ctor.
11920 (regcache::arch): Move it to reg_buffer::arch.
11921 (regcache::register_buffer): Likewise.
11922 (regcache::assert_regnum): Likewise.
11923 (regcache::num_raw_registers): Likewise.
11924 * regcache.h (reg_buffer): New class.
11925 (regcache): Inherit reg_buffer.
11926
11927 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
11928
11929 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
11930 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
11931
11932 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
11933
11934 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
11935
11936 2018-02-19 Alan Hayward <alan.hayward@arm.com>
11937
11938 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
11939 (SFILES): Remove common/*.c files.
11940 (COMMON_OBS): Remove some *.o files built from common/*.c files.
11941 * common/common.host: Add common reference.
11942 * configure.ac: Likewise.
11943 * configure: Regenerate.
11944
11945 2018-02-16 Yao Qi <yao.qi@linaro.org>
11946
11947 * block.c (block_namespace_info): Inherit allocate_on_obstack.
11948 (block_initialize_namespace): Use new.
11949 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
11950 (dwarf2_free_objfile): Use delete.
11951 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11952 (copy_type_recursive): Use new.
11953 * gdb_obstack.h (allocate_on_obstack): New.
11954
11955 2018-02-15 Yao Qi <yao.qi@linaro.org>
11956
11957 PR gdb/22849
11958 * inferior.c (exit_inferior_1): Reset inf->control.
11959
11960 2018-02-15 Joel Brobecker <brobecker@adacore.com>
11961
11962 * ada-lang.c (ada_to_fixed_value_create): Delete advance
11963 declaration.
11964
11965 2018-02-14 Pedro Alves <palves@redhat.com>
11966
11967 * frame-unwind.c (frame_unwind_try_unwinder): Always call
11968 frame_cleanup_after_sniffer on exception.
11969
11970 2018-02-14 Tom Tromey <tom@tromey.com>
11971
11972 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
11973 const.
11974 (solib_bfd_open): Make pathname const.
11975 * solib.c (solib_bfd_open): Make pathname const.
11976 * solib-spu.c (spu_bfd_fopen): Make name const.
11977 (spu_bfd_open): Make pathname const.
11978 * solib-darwin.c (darwin_bfd_open): Make pathname const.
11979 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
11980
11981 2018-02-14 Tom Tromey <tom@tromey.com>
11982
11983 * symfile.c (symfile_bfd_open): Update.
11984 * source.h (openp, source_full_path_of, find_and_open_source):
11985 Change argument type to unique_xmalloc_ptr.
11986 * source.c (openp): Take a unique_xmalloc_ptr.
11987 (source_full_path_of, find_and_open_source): Likewise.
11988 (open_source_file, symtab_to_fullname): Update.
11989 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
11990 unique_xmalloc_ptr.
11991 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
11992 (exec_file_find): Update.
11993 * psymtab.c (psymtab_to_fullname): Update.
11994 * nto-tdep.h (nto_find_and_open_solib): Update.
11995 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
11996 unique_xmalloc_ptr.
11997 * exec.c (exec_file_attach): Update.
11998 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
11999 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12000
12001 2018-02-14 Tom Tromey <tom@tromey.com>
12002
12003 * solib.c: Include source.h.
12004 * nto-tdep.c: Include source.h.
12005 * mi/mi-cmd-env.c: Include source.h.
12006 * infcmd.c: Include source.h.
12007 * exec.c: Include source.h.
12008 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12009 (add_path, directory_switch, source_path, init_source_path): Move
12010 declarations...
12011 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12012 (add_path, directory_switch, source_path, init_source_path):
12013 ...here.
12014
12015 2018-02-14 Tom Tromey <tom@tromey.com>
12016
12017 * solist.h (exec_file_find, solib_find): Return
12018 unique_xmalloc_ptr.
12019 (solib_bfd_fopen): Take a const char *.
12020 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12021 (exec_file_find, solib_find): Likewise.
12022 (solib_bfd_fopen): Do not take ownership of "pathname".
12023 (solib_bfd_open): Use unique_xmalloc_ptr.
12024 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12025 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12026 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12027 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12028
12029 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12030
12031 * ada-lang.c (name_match_type_from_name): Remove reference to
12032 ada_name_for_lookup in function's documentation.
12033 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12034
12035 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12036
12037 * defs.h (enum openp_flags): New enum.
12038 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12039 Move to enum openp_flags.
12040 (openp_flags): New enum flags.
12041 (openp): Change parameter type to openp_flags.
12042 * source.c (openp): Change parameter type to openp_flags.
12043 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12044 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12045
12046 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12047
12048 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12049 per-command.
12050
12051 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12052
12053 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12054 into...
12055 (class dwarf2_queue_guard): ...the destructor of this new class.
12056 (dw2_do_instantiate_symtab): Create instance of the new class
12057 dwarf2_queue_guard, remove cleanup.
12058
12059 2018-02-09 Tom Tromey <tom@tromey.com>
12060
12061 * source.c (find_source_lines): Don't reference past the end of
12062 the vector.
12063
12064 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12065
12066 * remote.c (remote_btrace_maybe_reopen): Change error message.
12067 * btrace.c (btrace_enable): Likewise.
12068 (parse_xml_btrace): Likewise.
12069 (parse_xml_btrace_conf): Likewise.
12070
12071 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12072
12073 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12074 (linux_enable_pt, linux_enable_bts): Call
12075 diagnose_perf_event_open_fail.
12076
12077 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12078
12079 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12080 Remove parameter and change return type. Update callers. Move it.
12081 (linux_enable_bts, linux_enable_pt): Improve error message.
12082 (linux_enable_pt): Remove zero buffer size check.
12083 (linux_enable_btrace): Improve error messages. Remove NULL return
12084 check.
12085
12086 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12087
12088 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12089 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12090 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12091 (linux_supports_pt, linux_supports_btrace): Remove.
12092 (linux_enable_bts): Call cpu_supports_bts.
12093 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12094 * remote.c (remote_supports_btrace): Remove.
12095 (init_remote_ops): Remove remote_supports_btrace.
12096 * target-delegates.c: Regenerated.
12097 * target.c (target_supports_btrace): Remove.
12098 * target.h (target_ops) <to_supports_btrace>: Remove
12099 (target_supports_btrace): Remove.
12100 * x86-linux-nat.c (x86_linux_create_target): Remove
12101 linux_supports_btrace.
12102
12103 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12104
12105 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12106 btrace failed.
12107 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12108 exception and use message in own exception.
12109
12110 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12111
12112 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12113 (perf_event_pt_event_type): Use gdb_file_up.
12114 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12115 scoped_fd, and scoped_mmap.
12116
12117 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12118
12119 * common/scoped_mmap.h: New.
12120 * unittests/scoped_mmap-selftest.c: New.
12121 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12122 unittests/scoped_mmap-selftest.c.
12123
12124 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12125
12126 * common/scoped_fd.h: New.
12127 * unittests/scoped_fd-selftest.c: New.
12128 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12129 unittests/scoped_fd-selftest.c.
12130
12131 2018-02-09 Tom Tromey <tom@tromey.com>
12132
12133 * auto-load.c (auto_load_section_scripts): Use
12134 gdb::unique_xmalloc_ptr.
12135
12136 2018-02-09 Tom Tromey <tom@tromey.com>
12137
12138 * auto-load.c (execute_script_contents): Use std::string.
12139
12140 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12141
12142 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12143 Python function, rather than a new command.
12144
12145 2018-02-08 Tom Tromey <tom@tromey.com>
12146
12147 * solib.c (solib_find_1): Use std::string.
12148 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12149
12150 2018-02-08 Tom Tromey <tom@tromey.com>
12151
12152 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12153
12154 2018-02-08 Tom Tromey <tom@tromey.com>
12155
12156 * source.c (find_source_lines): Use gdb::def_vector.
12157
12158 2018-02-08 Tom Tromey <tom@tromey.com>
12159
12160 * macrocmd.c (struct temporary_macro_definition): New.
12161 (macro_define_command): Use temporary_macro_definition. Remove
12162 cleanups.
12163 (free_macro_definition_ptr): Remove.
12164
12165 2018-02-08 Tom Tromey <tom@tromey.com>
12166
12167 * macroexp.c (maybe_expand): Use std::string.
12168
12169 2018-02-08 Tom Tromey <tom@tromey.com>
12170
12171 * macroexp.c (struct macro_buffer): Add initializers for some
12172 members.
12173 (init_buffer, init_shared_buffer, free_buffer)
12174 (free_buffer_return_text): Remove.
12175 (macro_buffer): New constructors.
12176 (~macro_buffer): New destructor.
12177 (macro_buffer::set_shared): New method.
12178 (macro_buffer::resize_buffer, macro_buffer::appendc)
12179 (macro_buffer::appendmem): Now methods, not free functions.
12180 (set_token, append_tokens_without_splicing, stringify)
12181 (macro_stringify): Update.
12182 (gather_arguments): Change return type. Remove argc_p argument,
12183 add args_ptr argument. Use std::vector.
12184 (substitute_args): Remove argc argument. Accept std::vector.
12185 (expand): Update. Use std::vector.
12186 (scan, macro_expand, macro_expand_next): Update.
12187
12188 2018-02-08 Tom Tromey <tom@tromey.com>
12189
12190 * symtab.c (default_collect_symbol_completion_matches_break_on):
12191 Use unique_xmalloc_ptr.
12192 * macroscope.h: (sal_macro_scope, user_macro_scope)
12193 (default_macro_scope): Return unique_xmalloc_ptr.
12194 * macroscope.c (sal_macro_scope, user_macro_scope)
12195 (default_macro_scope): Return unique_xmalloc_ptr.
12196 * macroexp.h (macro_expand, macro_expand_once): Return
12197 unique_xmalloc_ptr.
12198 * macroexp.c (macro_expand, macro_expand_once): Return
12199 unique_xmalloc_ptr.
12200 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12201 (info_macro_command, info_macros_command): Use
12202 unique_xmalloc_ptr.
12203 * compile/compile-c-support.c (write_macro_definitions): Use
12204 unique_xmalloc_ptr.
12205 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12206
12207 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12208
12209 * value.c (value_static_field): Assign field type instead of
12210 containing type when returning an optimized out value.
12211
12212 2018-02-06 Yao Qi <yao.qi@linaro.org>
12213
12214 * ft32-tdep.c (ft32_read_pc): Remove.
12215 (ft32_write_pc): Remove.
12216 (ft32_gdbarch_init): Update.
12217 * m32r-tdep.c (m32r_read_pc): Remove.
12218 (m32r_gdbarch_init): Update.
12219 * mep-tdep.c (mep_read_pc): Remove.
12220 (mep_gdbarch_init): Update.
12221 * microblaze-tdep.c (microblaze_write_pc): Remove.
12222 (microblaze_gdbarch_init): Update.
12223 * mn10300-tdep.c (mn10300_read_pc): Remove.
12224 (mn10300_write_pc): Remove.
12225 (mn10300_gdbarch_init): Update.
12226 * moxie-tdep.c (moxie_read_pc): Remove.
12227 (moxie_write_pc): Remove.
12228 (moxie_gdbarch_init): Update.
12229
12230 2018-02-06 Yao Qi <yao.qi@linaro.org>
12231
12232 * expprint.c (print_subexp_standard): Handle
12233 OP_F77_UNDETERMINED_ARGLIST.
12234 (dump_subexp_body_standard): Likewise.
12235
12236 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12237
12238 * target-descriptions.c (tdesc_element_visitor) Add empty
12239 implementations.
12240 (tdesc_type): Move make_gdb_type from here.
12241 (tdesc_type_builtin): Likewise.
12242 (tdesc_type_vector): Likewise.
12243 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12244 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12245 (make_gdb_type_union): Likewise.
12246 (make_gdb_type_flags): Likewise.
12247 (make_gdb_type_enum): Likewise.
12248 (make_gdb_type): New function.
12249 (tdesc_register_type): Use static make_gdb_type.
12250
12251 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12252
12253 * infcmd.c (default_print_one_register_info): Align natural-format
12254 column values consistently one under another.
12255 (pad_to_column): New function.
12256
12257 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12258
12259 * dwarf2read.c (dwarf2_physname): Move commment.
12260
12261 2018-02-01 Leszek Swirski <leszeks@google.com>
12262
12263 * varobj.c (varobj_formatted_print_options): Allow recursive
12264 pretty printing if pretty printing is enabled.
12265
12266 2018-02-01 Leszek Swirski <leszeks@google.com>
12267
12268 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12269 names after a structop as a filename.
12270
12271 2018-02-01 Yao Qi <yao.qi@linaro.org>
12272
12273 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12274 (arm_record_coproc_data_proc): Likewise.
12275
12276 2018-02-01 Yao Qi <yao.qi@linaro.org>
12277
12278 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12279
12280 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12281
12282 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12283 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12284
12285 2018-01-31 Pedro Alves <palves@redhat.com>
12286
12287 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12288 * inflow.c (child_terminal_save_inferior): Wrap reference to
12289 tcgetpgrp in HAVE_TERMIOS_H.
12290 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12291 _WIN32.
12292 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12293 always iterate over all inferiors.
12294 (gdbsim_cntrl_c): Adjust.
12295 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12296
12297 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12298
12299 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12300 index type is objfile-owned if the element type is as well.
12301
12302 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12303
12304 GDB 8.1 released.
12305
12306 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12307
12308 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12309 "features/s390x-linux64.c".
12310 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12311 s390_linux32 and s390x_linux64.
12312 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12313 default tdesc.
12314 * s390-tdep.c: Include "features/s390-linux32.c" and
12315 "features/s390x-linux64.c".
12316 (s390_tdesc_valid): Add check for tdesc_has_registers.
12317 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12318 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12319 tdesc_s390x_linux64.
12320 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12321 tdesc_s390x_linux64 to...
12322 * s390-tdep.h: ...here.
12323
12324 2018-01-30 Pedro Alves <palves@redhat.com>
12325
12326 PR gdb/13211
12327 * config.in, configure: Regenerate.
12328 * configure.ac: Check for getpgid.
12329 * go32-nat.c (go32_pass_ctrlc): New.
12330 (go32_target): Install it.
12331 * inf-child.c (inf_child_target): Install
12332 child_terminal_save_inferior, child_pass_ctrlc and
12333 child_interrupt.
12334 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12335 (inf_ptrace_target): No longer install it.
12336 * infcmd.c (interrupt_target_1): Adjust.
12337 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12338 (child_interrupt): Declare.
12339 (inferior::terminal_state): New.
12340 * inflow.c (struct terminal_info): Update comments.
12341 (inferior_process_group): Delete.
12342 (terminal_is_ours): Delete.
12343 (gdb_tty_state): New.
12344 (child_terminal_init): Adjust.
12345 (is_gdb_terminal, sharing_input_terminal_1)
12346 (sharing_input_terminal): New functions.
12347 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12348 Set the process's actual process group in the foreground if
12349 possible. Handle is_ours_for_output/is_ours distinction. Don't
12350 mark terminal as the inferior's if not sharing GDB's terminal.
12351 Don't check attach_flag.
12352 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12353 pass down a target_terminal_state.
12354 (child_terminal_save_inferior): New, factored out from ...
12355 (child_terminal_ours_1): ... this. Handle
12356 target_terminal_state::is_ours_for_output.
12357 (child_interrupt, child_pass_ctrlc): New.
12358 (inflow_inferior_exit): Clear the inferior's terminal_state.
12359 (copy_terminal_info): Copy the inferior's terminal state.
12360 (_initialize_inflow): Remove reference to terminal_is_ours.
12361 * inflow.h (inferior_process_group): Delete.
12362 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12363 * procfs.c (procfs_target): Don't install procfs_interrupt.
12364 (procfs_interrupt): Delete.
12365 * remote.c (remote_serial_quit_handler): Adjust.
12366 (remote_interrupt): Remove ptid parameter. Adjust.
12367 * target-delegates.c: Regenerate.
12368 * target.c: Include "terminal.h".
12369 (target_terminal::terminal_state): Rename to ...
12370 (target_terminal::m_terminal_state): ... this.
12371 (target_terminal::init): Adjust.
12372 (target_terminal::inferior): Adjust to per-inferior
12373 terminal_state.
12374 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12375 (target_terminal::ours, target_terminal::ours_for_output): Use
12376 target_terminal_is_ours_kind.
12377 (target_interrupt): Remove ptid parameter. Adjust.
12378 (default_target_pass_ctrlc): Adjust.
12379 * target.h (target_ops::to_terminal_save_inferior): New field.
12380 (target_ops::to_interrupt): Remove ptid_t parameter.
12381 (target_interrupt): Remove ptid_t parameter. Update comment.
12382 (target_pass_ctrlc): Update comment.
12383 * target/target.h (target_terminal_state): New scoped enum,
12384 factored out of ...
12385 (target_terminal::terminal_state): ... here.
12386 (target_terminal::inferior): Update comments.
12387 (target_terminal::restore_inferior): New.
12388 (target_terminal::is_inferior, target_terminal::is_ours)
12389 (target_terminal::is_ours_for_output): Adjust.
12390 (target_terminal::scoped_restore_terminal_state): Adjust to
12391 rename, and call restore_inferior() instead of inferior().
12392 (target_terminal::scoped_restore_terminal_state::m_state): Change
12393 type.
12394 (target_terminal::terminal_state): Rename to ...
12395 (target_terminal::m_terminal_state): ... this and change type.
12396
12397 2018-01-30 Pedro Alves <palves@redhat.com>
12398
12399 * linux-nat.c (wait_for_signal): New function.
12400 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12401 directly.
12402 (async_terminal_is_ours)
12403 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12404 (linux_nat_add_target): Don't override
12405 to_terminal_inferior/to_terminal_ours.
12406
12407 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12408
12409 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12410
12411 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12412
12413 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12414 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12415 dwarf2_per_objfile_free here.
12416 (dwarf2_per_objfile_free): Remove.
12417 (_initialize_dwarf2_read): Don't register
12418 dwarf2_per_objfile_free as a registry cleanup.
12419
12420 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12421
12422 Avoid compilation errors in MinGW native builds
12423
12424 The error is triggered by including python-internal.h, and the
12425 error message is:
12426
12427 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12428 from build-gnulib/import/math.h:27,
12429 from d:/usr/Python26/include/pyport.h:235,
12430 from d:/usr/Python26/include/Python.h:58,
12431 from python/python-internal.h:94,
12432 from python/py-arch.c:24:
12433 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12434 using ::hypot;
12435 ^~~~~
12436
12437 This happens because Python headers define 'hypot' to expand t
12438 '_hypot' in the Windows builds.
12439 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12440 'hypoth'. This avoids a compilation error.
12441
12442 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12443
12444 * MAINTAINERS (Write After Approval): Fix ordering.
12445
12446 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12447
12448 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12449
12450 2018-01-26 Alan Modra <amodra@gmail.com>
12451
12452 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12453 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12454 Remove nop. Make const. Comment.
12455 (powerpc32_plt_stub_so_2): New.
12456 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12457 Correct count. Update uses.
12458 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12459 Move common code reading PLT entry word. Correct
12460 powerpc32_plt_stub PLT address calculation.
12461 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12462 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12463 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12464 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12465 (ppc64_standard_linkage8): Likewise.
12466 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12467 Correct insns description.
12468 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12469
12470 2018-01-24 Pedro Alves <palves@redhat.com>
12471
12472 GCC PR libstdc++/83906
12473 * gdbtypes.c (operator==(const dynamic_prop &,
12474 const dynamic_prop &)): New.
12475 (operator==(const range_bounds &, const range_bounds &)): New.
12476 (check_types_equal): Use them instead of memcmp.
12477 * gdbtypes.h (operator==(const dynamic_prop &,
12478 const dynamic_prop &)): Declare.
12479 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12480 (operator==(const range_bounds &, const range_bounds &)): Declare.
12481 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12482
12483 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12484
12485 * s390-linux-tdep.c (s390_record_address_mask)
12486 (s390_record_calc_disp_common, s390_record_calc_disp)
12487 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12488 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12489 (s390_process_record): Move to s390-tdep.c.
12490 (s390_linux_init_abi_any): Adjust.
12491 * s390-tdep.c (s390_record_address_mask)
12492 (s390_record_calc_disp_common, s390_record_calc_disp)
12493 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12494 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12495 (s390_process_record): Moved from s390-linux-tdep.c
12496 (s390_gdbarch_init): Adjust.
12497
12498 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12499
12500 * s390-linux-nat.c (s390-tdep.h): New include.
12501 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12502 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12503 (ALLDEPFILES): Add s390-tdep.c.
12504 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12505 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12506 * s390-tdep.h: ...this. New file.
12507 * s390-linux-tdep.c (s390-tdep.h): New include.
12508 (_initialize_s390_tdep): Rename to...
12509 (_initialize_s390_linux_tdep): ...this and adjust.
12510 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12511 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12512 s390-tdep.h.
12513 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12514 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12515 (s390_is_partial_instruction, s390_software_single_step)
12516 (is_non_branch_ril, s390_displaced_step_copy_insn)
12517 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12518 (s390_prologue_data, s390_addr, s390_store, s390_load)
12519 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12520 (s390_register_call_saved, s390_guess_tracepoint_registers)
12521 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12522 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12523 (s390_pseudo_register_name, s390_pseudo_register_type)
12524 (s390_pseudo_register_read, s390_pseudo_register_write)
12525 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12526 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12527 (s390_addr_bits_remove, s390_address_class_type_flags)
12528 (s390_address_class_type_flags_to_name)
12529 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12530 (s390_function_arg_float, s390_function_arg_vector)
12531 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12532 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12533 (s390_frame_align, s390_register_return_value, s390_return_value)
12534 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12535 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12536 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12537 (s390_trad_frame_prev_register, s390_unwind_cache)
12538 (s390_prologue_frame_unwind_cache)
12539 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12540 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12541 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12542 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12543 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12544 (s390_frame_base_address, s390_local_base_address)
12545 (s390_frame_base, s390_gcc_target_options)
12546 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12547 (s390_validate_reg_range, s390_tdesc_valid)
12548 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12549 * s390-tdep.c: ...this. New file.
12550
12551 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12552
12553 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12554 (s390_process_record, s390_gdbarch_tdep_alloc)
12555 (s390_linux_init_abi_any): Use/set new hook.
12556
12557 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12558
12559 * s390-linux-tdep.c (osabi.h): New include.
12560 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12561 (s390_linux_init_abi_any): New functions.
12562 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12563
12564 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12565
12566 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12567 tdesc_has_registers check
12568
12569 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12570
12571 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12572 (s390_validate_reg_range): New macro.
12573 (s390_gdbarch_init): Adjust.
12574
12575 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12576
12577 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12578 (s390_gdbarch_tdep_alloc): Adjust.
12579 (s390_gdbarch_init): Adjust.
12580
12581 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12582
12583 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12584 <have_tdb>: Change type to bool.
12585 (s390_gdbarch_tdep_alloc): Adjust.
12586 (s390_gdbarch_init): Adjust.
12587
12588 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12589
12590 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12591 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12592 (s390_gdbarch_tdep_alloc): New function.
12593 (s390_gdbarch_init): Allocate tdep at start and use its fields
12594 instead of separate variables.
12595
12596 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12597
12598 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12599 when looking for cached gdbarch and add comment for remaining.
12600
12601 2018-01-22 Pedro Alves <palves@redhat.com>
12602 Sergio Durigan Junior <sergiodj@redhat.com>
12603
12604 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12605 case.
12606
12607 2018-01-22 Maciej W. Rozycki <macro@mips.com>
12608
12609 * MAINTAINERS: Update my company e-mail address.
12610
12611 2018-01-22 Yao Qi <yao.qi@linaro.org>
12612
12613 * regcache.c (cooked_write_test): New function.
12614 (_initialize_regcache): Register the test.
12615
12616 2018-01-22 Yao Qi <yao.qi@linaro.org>
12617
12618 * ia64-tdep.c (ia64_pseudo_register_read): Call
12619 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12620 * m32c-tdep.c (m32c_cat_read): Likewise.
12621 (m32c_r3r2r1r0_read): Likewise.
12622 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12623 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12624
12625 2018-01-22 Yao Qi <yao.qi@linaro.org>
12626
12627 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12628 method raw_read instead of regcache_raw_read.
12629 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12630 * arm-tdep.c (arm_neon_quad_read): Likewise.
12631 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12632 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12633 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12634 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12635 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12636 (i386_pseudo_register_read_into_value): Likewise.
12637 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12638 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12639 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12640 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12641 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12642 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12643 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12644 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12645 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12646
12647 2018-01-22 Yao Qi <yao.qi@linaro.org>
12648
12649 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12650 * configure.tgt: Remove target mt.
12651 * mt-tdep.c: Remove.
12652 * regcache.c (cooked_read_test): Remove the check for mt.
12653
12654 2018-01-22 Yao Qi <yao.qi@linaro.org>
12655
12656 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12657 instead of gdbarch_pseudo_register_read_value.
12658
12659 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12660
12661 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12662 language is Ada.
12663
12664 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12665
12666 * linespec.c (create_sals_line_offset): Remove code that preserved
12667 the symtab_and_line's line number.
12668
12669 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12670
12671 * varobj.c (varobj_create): Don't set valid_block when creating a
12672 floating varobj.
12673
12674 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12675
12676 * varobj.c (varobj_create): Remove out of date comment.
12677
12678 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12679
12680 PR mi/20395
12681 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12682 updating innermost block.
12683 * parse.c (innermost_block_tracker::update): Take extra type
12684 parameter, and check types match before updating innermost block.
12685 (write_dollar_variable): Update innermost block for registers.
12686 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12687 (innermost_block_tracker::innermost_block_tracker): Initialise
12688 m_types member.
12689 (innermost_block_tracker::reset): Take type parameter.
12690 (innermost_block_tracker::update): Take type parameter, and pass
12691 type through as needed.
12692 (innermost_block_tracker::m_types): New member.
12693 * varobj.c (varobj_create): Pass type when reseting innermost
12694 block.
12695
12696 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12697
12698 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12699 * ada-lang.c (resolve_subexp): Likewise.
12700 * breakpoint.c (set_breakpoint_condition) Likewise.
12701 (watch_command_1) Likewise.
12702 * c-exp.y (variable): Likewise.
12703 * d-exp.y (PrimaryExpression): Likewise.
12704 * f-exp.y (variable): Likewise.
12705 * go-exp.y (variable): Likewise.
12706 * m2-exp.y (variable): Likewise.
12707 * objfiles.c (objfile::~objfile): Likewise.
12708 * p-exp.y (variable): Likewise.
12709 * parse.c (innermost_block): Change type.
12710 * parser-defs.h (class innermost_block_tracker): New.
12711 (innermost_block): Change to innermost_block_tracker.
12712 * printcmd.c (display_command): Switch to innermost_block API.
12713 (do_one_display): Likewise.
12714 * rust-exp.y (do_one_display): Likewise.
12715 * symfile.c (clear_symtab_users): Likewise.
12716 * varobj.c (varobj_create): Switch to innermost_block API, replace
12717 use of innermost_block with block stored on varobj object.
12718
12719 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12720
12721 * expression.h (innermost_block): Remove declaration.
12722 * varobj.c: Add 'parser-defs.h' include.
12723
12724 2018-01-19 Tom Tromey <tom@tromey.com>
12725
12726 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12727 symbols in the static and global blocks.
12728
12729 2018-01-19 James Clarke <jrtc27@jrtc27.com>
12730
12731 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12732 gdb_ptrace.h, and move including gdb_wait.h ...
12733 * nat/linux-ptrace.h: ... to here.
12734
12735 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12736
12737 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12738 inf_ptrace_detach_success.
12739 (inf_ptrace_detach_success): Add inferior parameter, use it
12740 instead of inferior_ptid, pass it to detach_inferior.
12741 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12742 parameter.
12743 * inferior.c (detach_inferior): Add overload that takes an
12744 inferior object.
12745 * inferior.h (detach_inferior): Likewise.
12746 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12747 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12748 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12749
12750 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12751
12752 * target.h (struct target_ops) <to_detach>: Add inferior
12753 parameter.
12754 (target_detach): Likewise.
12755 * target.c (dispose_inferior): Pass inferior down.
12756 (target_detach): Pass inferior down. Assert that it is equal to
12757 the current inferior.
12758 * aix-thread.c (aix_thread_detach): Pass inferior down.
12759 * corefile.c (core_file_command): Pass current_inferior() down.
12760 * corelow.c (core_detach): Add inferior parameter.
12761 * darwin-nat.c (darwin_detach): Likewise.
12762 * gnu-nat.c (gnu_detach): Likewise.
12763 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12764 * infcmd.c (detach_command): Pass current_inferior() down to
12765 target_detach.
12766 * infrun.c (follow_fork_inferior): Pass parent_inf to
12767 target_detach.
12768 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12769 target_detach.
12770 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12771 * linux-thread-db.c (thread_db_detach): Likewise.
12772 * nto-procfs.c (procfs_detach): Likewise.
12773 * procfs.c (procfs_detach): Likewise.
12774 * record.c (record_detach): Likewise.
12775 * record.h (struct inferior): Forward-declare.
12776 (record_detach): Add inferior parameter.
12777 * remote-sim.c (gdbsim_detach): Likewise.
12778 * remote.c (remote_detach_1): Likewise.
12779 (remote_detach): Likewise.
12780 (extended_remote_detach): Likewise.
12781 * sol-thread.c (sol_thread_detach): Likewise.
12782 * target-debug.h (target_debug_print_inferior_p): New macro.
12783 * target-delegates.c: Re-generate.
12784 * top.c (kill_or_detach): Pass inferior down to target_detach.
12785 * windows-nat.c (windows_detach): Add inferior parameter.
12786
12787 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12788
12789 * target.h (struct target_ops) <to_detach>: Remove args
12790 parameter.
12791 (target_detach): Likewise.
12792 * target.c (dispose_inferior): Adjust.
12793 (target_detach): Remove args parameter, adjust.
12794 * aix-thread.c (aix_thread_detach): Adjust.
12795 * corefile.c (core_file_command): Adjust.
12796 * corelow.c (core_detach): Adjust.
12797 * darwin-nat.c (darwin_detach): Adjust.
12798 * gnu-nat.c (gnu_detach): Adjust.
12799 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12800 * infcmd.c (detach_command): Adjust
12801 * infrun.c (follow_fork_inferior): Adjust.
12802 (handle_vfork_child_exec_or_exit): Adjust.
12803 * linux-fork.c (linux_fork_detach): Remove args parameter.
12804 * linux-fork.h (linux_fork_detach): Likewise.
12805 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12806 * linux-thread-db.c (thread_db_detach): Likewise.
12807 * nto-procfs.c (procfs_detach): Likewise.
12808 * procfs.c (procfs_detach): Likewise.
12809 (do_detach): Remove signo parameter.
12810 * record.c (record_detach): Remove args parameter.
12811 * record.h (record_detach): Likewise.
12812 * remote-sim.c (gdbsim_detach): Likewise.
12813 * remote.c (remote_detach_1): Likewise.
12814 (remote_detach): Likewise.
12815 (extended_remote_detach): Likewise.
12816 * sol-thread.c (sol_thread_detach): Likewise.
12817 * target-delegates.c: Re-generate.
12818 * top.c (struct qt_args) <args>: Remove field.
12819 (kill_or_detach): Don't pass args.
12820 (quit_force): Don't set args.
12821 * windows-nat.c (windows_detach): Remove args parameter.
12822
12823 2018-01-19 Yao Qi <yao.qi@linaro.org>
12824
12825 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12826 (arm_linux_init_abi): Install it.
12827
12828 2018-01-19 Yao Qi <yao.qi@linaro.org>
12829
12830 * osabi.c (gdb_osabi_names): Extend the regexp for
12831 arm-linux-gnueabihf.
12832
12833 2018-01-18 Yao Qi <yao.qi@linaro.org>
12834
12835 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12836 m_abbrevs.
12837 (abbrev_table::add_abbrev): Update.
12838 (abbrev_table::lookup_abbrev): Update.
12839
12840 2018-01-18 Yao Qi <yao.qi@linaro.org>
12841
12842 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12843
12844 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12845
12846 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12847 to "std::string".
12848
12849 2018-01-17 Tom Tromey <tom@tromey.com>
12850
12851 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12852
12853 2018-01-17 Tom Tromey <tom@tromey.com>
12854
12855 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12856 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12857 (create_array_type_with_stride): Update.
12858 * dwarf2read.c (set_die_type): Update.
12859
12860 2018-01-17 Tom Tromey <tom@tromey.com>
12861
12862 * dwarf2read.c (delayed_method_info): Remove typedef.
12863 (dwarf2_cu::method_info): Now a std::vector.
12864 (add_to_method_list): Update.
12865 (free_delayed_list): Remove.
12866 (compute_delayed_physnames): Update.
12867 (process_full_comp_unit, process_full_type_unit): Clear the method
12868 list. Remove cleanups.
12869 (psymtab_include_file_name): Add name_holder parameter. Use
12870 unique_xmalloc_ptr.
12871 (dwarf_decode_lines): Update.
12872
12873 2018-01-17 Tom Tromey <tom@tromey.com>
12874 Simon Marchi <simon.marchi@ericsson.com>
12875
12876 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12877 (dwarf2_per_objfile::free_cached_comp_units)
12878 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12879 (init_cutu_and_read_dies_no_follow): Update.
12880 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12881 (dwarf2_cu::~dwarf2_cu): New.
12882 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12883 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12884
12885 2018-01-17 Tom Tromey <tom@tromey.com>
12886 Simon Marchi <simon.marchi@ericsson.com>
12887
12888 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12889 (struct die_reader_specs) <abbrev_table>: New member.
12890 (struct abbrev_table): Add constructor.
12891 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12892 <abbrev_obstack>: Now an auto_obstack.
12893 (abbrev_table_up): New typedef.
12894 (init_cu_die_reader): Add abbrev_table parameter.
12895 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12896 Add result_dwo_abbrev_table.
12897 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12898 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12899 Update.
12900 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12901 parameter.
12902 (skip_children): Update.
12903 (abbrev_table::alloc_abbrev): Rename from
12904 abbrev_table_alloc_abbrev.
12905 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
12906 (abbrev_table::lookup_abbrev): Rename from
12907 abbrev_table_lookup_abbrev.
12908 (abbrev_table_read_table): Return abbrev_table_up.
12909 (abbrev_table_free, abbrev_table_free_cleanup)
12910 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
12911 (load_partial_dies): Update.
12912
12913 2018-01-17 Tom Tromey <tom@tromey.com>
12914
12915 * dwarf2read.c (dwarf2_compute_name): Update comment.
12916 (read_func_scope, read_variable): Update.
12917 (new_symbol): Remove.
12918 (new_symbol_full): Rename to new_symbol.
12919
12920 2018-01-17 Mike Gulick <mgulick@mathworks.com>
12921
12922 PR gdb/16577
12923 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
12924 a warning instead of throwing an error, set section size to 0 and return
12925 NULL.
12926 * gdb_bfd.h (gdb_bfd_map_section): Update description.
12927
12928 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12929
12930 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
12931 std::string.
12932 (linux_ptrace_attach_fail_reason_string): Likewise.
12933 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
12934 Likewise.
12935 (linux_ptrace_attach_fail_reason_string): Likewise.
12936 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
12937
12938 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12939
12940 * linux-nat.c (linux_nat_attach): Remove xstrdup.
12941
12942 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
12943
12944 PR gdb/21559
12945 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
12946 checking for fs_base/gs_base fields in struct user_regs_struct.
12947 * configure: Regenerate.
12948
12949 2018-01-17 Yao Qi <yao.qi@linaro.org>
12950
12951 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12952 function.
12953 (aarch64_linux_init_abi): Install it to gdbarch hook
12954 gcc_target_options.
12955
12956 2018-01-15 Pedro Alves <palves@redhat.com>
12957
12958 * common/signals-state-save-restore.c
12959 (save_original_signals_state): Fix typos.
12960
12961 2017-01-12 Tom Tromey <tom@tromey.com>
12962 Sergio Durigan Junior <sergiodj@redhat.com>
12963
12964 * Makefile.in (install-only): Install gdb-add-index.
12965
12966 2018-01-12 John Baldwin <jhb@FreeBSD.org>
12967
12968 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
12969
12970 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12971
12972 * infrun.c (keep_going_pass_signal): Clear step-over info when
12973 insert_breakpoints fails.
12974
12975 2018-01-11 Pedro Alves <palves@redhat.com>
12976
12977 PR gdb/22583
12978 * infrun.c (resume): Rename to ...
12979 (resume_1): ... this.
12980 (resume): Reimplement as wrapper around resume_1.
12981
12982 2018-01-11 Pedro Alves <palves@redhat.com>
12983
12984 PR remote/22597
12985 * remote.c (remote_parse_stop_reply): Default to the last-set
12986 general thread instead of to 'magic_null_ptid'.
12987
12988 2018-01-10 Pedro Alves <palves@redhat.com>
12989
12990 * language.h (language_get_symbol_name_matcher): Rename ...
12991 (get_symbol_name_matcher): ... this.
12992 * language.c (language_get_symbol_name_matcher): Ditto.
12993 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
12994 callers adjusted.
12995
12996 2018-01-10 Pedro Alves <palves@redhat.com>
12997
12998 PR gdb/22670
12999 * dwarf2read.c
13000 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13001 Adjust to use language_get_symbol_name_matcher instead of
13002 language_defn::la_get_symbol_name_matcher.
13003 * language.c (language_get_symbol_name_matcher): If in Ada mode
13004 and the lookup name is a verbatim match, return Ada's matcher.
13005 * language.h (language_get_symbol_name_matcher): Adjust comment.
13006 (ada_lookup_name_info::verbatim_p):: New method.
13007
13008 2018-01-10 Pedro Alves <palves@redhat.com>
13009
13010 PR gdb/22670
13011 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13012 minsym's language is language_auto or language_cplus, pass down
13013 language_ada instead.
13014 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13015
13016 2018-01-10 Pedro Alves <palves@redhat.com>
13017
13018 PR gdb/22670
13019 * minsyms.c (linkage_name_str): New function.
13020 (iterate_over_minimal_symbols): Use it.
13021
13022 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13023
13024 * NEWS: Document that 'info proc' now works on FreeBSD.
13025
13026 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13027
13028 * configure.ac: Check for kinfo_getfile in libutil.
13029 * configure: Regenerate.
13030 * config.in: Regenerate.
13031 * fbsd-nat.c: Include "fbsd-tdep.h".
13032 (fbsd_fetch_cmdline): New.
13033 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13034 rather than calling error.
13035 (fbsd_info_proc): New.
13036 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13037 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13038 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13039
13040 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13041
13042 * fbsd-nat.c (struct free_deleter): Remove.
13043 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13044
13045 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13046
13047 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13048 NULL for an empty pathname.
13049
13050 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13051
13052 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13053 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13054 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13055 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13056 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13057 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13058 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13059 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13060 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13061 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13062 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13063 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13064 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13065 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13066 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13067
13068 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13069
13070 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13071 (gnu_xfer_auxv): New function.
13072 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13073 TARGET_OBJECT_AUXV.
13074
13075 2018-01-08 Yao Qi <yao.qi@linaro.org>
13076 Simon Marchi <simon.marchi@ericsson.com>
13077
13078 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13079 common/selftest.c.
13080 (COMMON_OBS): Remove selftest.o.
13081 * configure.ac: Append selftest-arch.c and common/selftest.c to
13082 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13083 * configure: Re-generated.
13084 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13085 GDB_SELF_TEST.
13086 (maintenance_info_selftests): Likewise.
13087
13088 2018-01-08 Xavier Roirand <roirand@adacore.com>
13089
13090 * ada-valprint.c (val_print_packed_array_elements): Use
13091 proper number of elements when printing an array indexed
13092 by an enumeration type.
13093
13094 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13095
13096 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13097 (dw2_get_file_names_reader): Adjust.
13098 (lookup_dwo_signatured_type): Adjust.
13099 (lookup_dwp_signatured_type): Adjust.
13100 (lookup_signatured_type): Adjust.
13101 (create_type_unit_group): Adjust.
13102 (get_type_unit_group): Adjust.
13103 (process_psymtab_comp_unit_reader): Adjust.
13104 (build_type_psymtabs_reader): Adjust.
13105 (scan_partial_symbols): Adjust.
13106 (add_partial_symbol): Adjust.
13107 (add_partial_subprogram): Adjust.
13108 (peek_die_abbrev): Adjust.
13109 (fixup_go_packaging): Adjust.
13110 (process_imported_unit_die): Adjust.
13111 (dwarf2_compute_name): Adjust.
13112 (dwarf2_physname): Adjust.
13113 (read_import_statement): Adjust.
13114 (handle_DW_AT_stmt_list): Adjust.
13115 (read_file_scope): Adjust.
13116 (read_func_scope): Adjust.
13117 (read_lexical_block_scope): Adjust.
13118 (read_call_site_scope): Adjust.
13119 (read_variable): Adjust.
13120 (dwarf2_rnglists_process): Adjust.
13121 (dwarf2_ranges_process): Adjust.
13122 (dwarf2_ranges_read): Adjust.
13123 (dwarf2_get_pc_bounds): Adjust.
13124 (dwarf2_record_block_ranges): Adjust.
13125 (dwarf2_add_field): Adjust.
13126 (dwarf2_add_member_fn): Adjust.
13127 (read_structure_type): Adjust.
13128 (process_structure_scope): Adjust.
13129 (read_enumeration_type): Adjust.
13130 (read_array_type): Adjust.
13131 (mark_common_block_symbol_computed): Adjust.
13132 (read_common_block): Adjust.
13133 (read_namespace_type): Adjust.
13134 (read_namespace): Adjust.
13135 (read_module_type): Adjust.
13136 (read_tag_pointer_type): Adjust.
13137 (read_tag_ptr_to_member_type): Adjust.
13138 (read_tag_string_type): Adjust.
13139 (read_subroutine_type): Adjust.
13140 (read_typedef): Adjust.
13141 (read_base_type): Adjust.
13142 (attr_to_dynamic_prop): Adjust.
13143 (read_subrange_type): Adjust.
13144 (read_unspecified_type): Adjust.
13145 (dwarf2_read_abbrevs): Adjust.
13146 (load_partial_dies): Adjust.
13147 (read_partial_die): Adjust.
13148 (find_partial_die): Adjust.
13149 (guess_partial_die_structure_name): Adjust.
13150 (fixup_partial_die): Adjust.
13151 (read_attribute_value): Adjust.
13152 (read_addr_index): Adjust.
13153 (read_addr_index_from_leb128): Adjust.
13154 (read_str_index): Adjust.
13155 (dwarf2_string_attr): Adjust.
13156 (get_debug_line_section): Adjust.
13157 (dwarf_decode_line_header): Adjust.
13158 (lnp_state_machine::check_line_address): Adjust.
13159 (dwarf_decode_lines_1): Adjust.
13160 (dwarf_decode_lines): Adjust.
13161 (dwarf2_start_symtab): Adjust.
13162 (var_decode_location): Adjust.
13163 (new_symbol_full): Adjust.
13164 (dwarf2_const_value_data): Adjust.
13165 (dwarf2_const_value_attr): Adjust.
13166 (dwarf2_const_value): Adjust.
13167 (die_type): Adjust.
13168 (die_containing_type): Adjust.
13169 (build_error_marker_type): Adjust.
13170 (lookup_die_type): Adjust.
13171 (guess_full_die_structure_name): Adjust.
13172 (anonymous_struct_prefix): Adjust.
13173 (determine_prefix): Adjust.
13174 (dwarf2_name): Adjust.
13175 (follow_die_ref_or_sig): Adjust.
13176 (follow_die_offset): Adjust.
13177 (follow_die_ref): Adjust.
13178 (follow_die_sig_1): Adjust.
13179 (follow_die_sig): Adjust.
13180 (get_signatured_type): Adjust.
13181 (get_DW_AT_signature_type): Adjust.
13182 (decode_locdesc): Adjust.
13183 (dwarf_decode_macros): Adjust.
13184 (cu_debug_loc_section): Adjust.
13185 (fill_in_loclist_baton): Adjust.
13186 (dwarf2_symbol_mark_computed): Adjust.
13187 (init_one_comp_unit): Don't assign
13188 dwarf2_cu::dwarf2_per_objfile.
13189 (set_die_type): Adjust.
13190
13191 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13192
13193 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13194 <dwarf2_per_objfile>: New field.
13195 (dwarf2_per_objfile): Remove global.
13196 (get_dwarf2_per_objfile): New function.
13197 (set_dwarf2_per_objfile): New function.
13198 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13199 dwarf2_per_objfile.
13200 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13201 (read_abbrev_offset): Likewise.
13202 (read_indirect_string): Likewise.
13203 (read_indirect_line_string): Likewise.
13204 (read_indirect_string_at_offset): Likewise.
13205 (read_indirect_string_from_dwz): Likewise.
13206 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13207 dwarf2_per_objfile.
13208 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13209 (create_all_comp_units): Change objfile parameter to
13210 dwarf2_per_objfile.
13211 (create_all_type_units): Likewise.
13212 (process_queue): Add dwarf2_per_objfile parameter.
13213 (read_and_check_comp_unit_head): Likewise.
13214 (lookup_dwo_unit_in_dwp): Likewise.
13215 (get_dwp_file): Likewise.
13216 (process_cu_includes): Likewise.
13217 (struct free_dwo_file_cleanup_data): New struct.
13218 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13219 set_dwarf2_per_objfile.
13220 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13221 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13222 context, adjust calls.
13223 (dw2_instantiate_symtab): Likewise.
13224 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13225 (dw2_get_cu): Likewise.
13226 (create_cu_from_index_list): Change objfile parameter to
13227 dwarf2_per_objfile.
13228 (create_cus_from_index_list): Get dwarf2_per_objfile from
13229 context, adjust calls.
13230 (create_cus_from_index): Likewise.
13231 (create_signatured_type_table_from_index): Change objfile
13232 parameter to dwarf2_per_objfile.
13233 (create_signatured_type_table_from_debug_names): Change objfile
13234 parameter to dwarf2_per_objfile.
13235 (create_addrmap_from_index): Likewise.
13236 (create_addrmap_from_aranges): Likewise.
13237 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13238 (dw2_setup): Remove.
13239 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13240 context.
13241 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13242 get_dwarf2_per_objfile.
13243 (dw2_forget_cached_source_info): Likewise.
13244 (dw2_map_symtabs_matching_filename): Likewise.
13245 (struct dw2_symtab_iterator) <index>: Remove.
13246 <dwarf2_per_objfile>: New field.
13247 (dw2_symtab_iter_init): Replace index parameter with
13248 dwarf2_per_objfile.
13249 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13250 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13251 (dw2_print_stats): Likewise.
13252 (dw2_dump): Likewise.
13253 (dw2_expand_symtabs_for_function): Likewise.
13254 (dw2_expand_all_symtabs): Likewise.
13255 (dw2_expand_symtabs_with_fullname): Likewise.
13256 (dw2_expand_marked_cus): Replace index and objfile parameters
13257 with dwarf2_per_objfile.
13258 (dw_expand_symtabs_matching_file_matcher): Add
13259 dwarf2_per_objfile parameter and adjust calls.
13260 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13261 adjust calls.
13262 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13263 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13264 adjust calls.
13265 (create_cus_from_debug_names_list): Replace objfile parameter
13266 with dwarf2_per_objfile and adjust calls.
13267 (create_cus_from_debug_names): Likewise.
13268 (dwarf2_read_debug_names): Likewise.
13269 (mapped_debug_names::namei_to_name): Adjust call.
13270 (dw2_debug_names_iterator::next): Likewise.
13271 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13272 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13273 (dw2_debug_names_dump): Likewise.
13274 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13275 (dw2_debug_names_expand_symtabs_matching): Likewise.
13276 (dwarf2_initialize_objfile): Likewise.
13277 (dwarf2_build_psymtabs): Likewise.
13278 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13279 this_cu.
13280 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13281 (read_and_check_comp_unit_head): Likewise.
13282 (read_abbrev_offset): Likewise.
13283 (create_debug_type_hash_table): Likewise.
13284 (create_debug_types_hash_table): Likewise.
13285 (create_all_type_units): Replace objfile parameter with
13286 dwarf2_per_objfile.
13287 (add_type_unit): Add dwarf2_per_objfile parameter.
13288 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13289 with dwarf2_per_objfile.
13290 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13291 (lookup_dwp_signatured_type): Likewise.
13292 (lookup_signatured_type): Likewise.
13293 (read_cutu_die_from_dwo): Likewise.
13294 (init_tu_and_read_dwo_dies): Likewise.
13295 (init_cutu_and_read_dies): Likewise.
13296 (init_cutu_and_read_dies_no_follow): Likewise.
13297 (allocate_type_unit_groups_table): Add objfile parameter.
13298 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13299 (get_type_unit_group): Likewise.
13300 (process_psymtab_comp_unit): Update call.
13301 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13302 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13303 (print_tu_stats): Likewise.
13304 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13305 in void* parameter.
13306 (build_type_psymtabs): Change objfile parameter to
13307 dwarf2_per_objfile.
13308 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13309 passed in void* parameter.
13310 (process_skeletonless_type_units): Change objfile parameter to
13311 dwarf2_per_objfile.
13312 (set_partial_user): Likewise.
13313 (dwarf2_build_psymtabs_hard): Likewise.
13314 (read_comp_units_from_section): Likewise.
13315 (create_all_comp_units): Likewise.
13316 (scan_partial_symbols): Update calls.
13317 (add_partial_symbol): Likewise.
13318 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13319 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13320 (process_queue): Add dwarf2_per_objfile parameter.
13321 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13322 (compute_compunit_symtab_includes): Likewise.
13323 (process_cu_includes): Add dwarf2_per_objfile parameter.
13324 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13325 (process_full_type_unit): Likewise.
13326 (process_imported_unit_die): Update call.
13327 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13328 (read_file_scope): Likewise.
13329 (allocate_dwo_file_hash_table): Add objfile parameter.
13330 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13331 (create_cus_hash_table): Likewise.
13332 (create_dwp_hash_table): Likewise.
13333 (create_dwo_unit_in_dwp_v1): Likewise.
13334 (create_dwp_v2_section): Likewise.
13335 (create_dwo_unit_in_dwp_v2): Likewise.
13336 (lookup_dwo_unit_in_dwp): Likewise.
13337 (try_open_dwop_file): Likewise.
13338 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13339 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13340 cleanup to include a reference to dwarf2_per_objfile.
13341 (open_dwp_file): Add dwarf2_per_objfile parameter.
13342 (open_and_init_dwp_file): Likewise.
13343 (get_dwp_file): Likewise.
13344 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13345 (queue_and_load_all_dwo_tus): Update call.
13346 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13347 data.
13348 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13349 (dwarf2_ranges_process): Likewise.
13350 (dwarf2_get_pc_bounds): Likewise.
13351 (mark_common_block_symbol_computed): Likewise.
13352 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13353 (dwarf2_read_abbrevs): Update call.
13354 (read_partial_die): Use dwarf2_per_objfile from cu.
13355 (find_partial_die): Likewise.
13356 (fixup_partial_die): Likewise.
13357 (read_attribute_value): Likewise.
13358 (read_indirect_string_at_offset_from): Add objfile parameter.
13359 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13360 parameter.
13361 (read_indirect_string_from_dwz): Add objfile parameter.
13362 (read_indirect_string): Add objfile parameter.
13363 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13364 (read_addr_index): Use dwarf2_per_objfile from cu.
13365 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13366 call dw2_setup.
13367 (read_str_index): Use dwarf2_per_objfile from cu.
13368 (get_debug_line_section): Likewise.
13369 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13370 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13371 (new_symbol_full): Use dwarf2_per_objfile from cu.
13372 (build_error_marker_type): Likewise.
13373 (lookup_die_type): Likewise.
13374 (determine_prefix): Likewise.
13375 (follow_die_offset): Likewise.
13376 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13377 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13378 (dwarf2_fetch_die_type_sect_off): Likewise.
13379 (dwarf2_get_die_type): Likewise.
13380 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13381 (get_signatured_type): Likewise.
13382 (get_DW_AT_signature_type): Likewise.
13383 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13384 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13385 (cu_debug_loc_section): Likewise.
13386 (fill_in_loclist_baton): Likewise.
13387 (dwarf2_symbol_mark_computed): Likewise.
13388 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13389 dwarf2_per_objfile.
13390 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13391 parameter.
13392 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13393 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13394 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13395 (set_die_type): Use dwarf2_free_objfile from cu.
13396 (get_die_type_at_offset): Likewise.
13397 (dwarf2_per_objfile_free): Don't assign global variable.
13398 (debug_names) <constructor>: Add dwarf2_per_objfile
13399 parameter, update m_debugstrlookup construction.
13400 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13401 parameter.
13402 <m_dwarf2_per_objfile>: New field.
13403 <lookup>: Use m_dwarf2_per_objfile.
13404 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13405 (psyms_seen_size): Likewise.
13406 (write_gdbindex): Replace objfile parameter with
13407 dwarf2_per_objfile.
13408 (write_debug_names): Likewise.
13409 (write_psymtabs_to_index): Likewise.
13410 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13411 calls.
13412
13413 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13414
13415 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13416 <dwarf2_per_objfile>: New field.
13417 (struct dwarf2_per_cu_data) <objfile>: Remove.
13418 <dwarf2_per_objfile>: New field.
13419 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13420 of objfile.
13421 (create_signatured_type_table_from_index): Likewise.
13422 (create_debug_type_hash_table): Likewise.
13423 (fill_in_sig_entry_from_dwo_entry): Likewise.
13424 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13425 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13426 objfile.
13427 (create_partial_symtab): Access objfile through
13428 dwarf2_per_objfile.
13429 (process_psymtab_comp_unit_reader): Likewise.
13430 (read_comp_units_from_section): Likewise.
13431 (scan_partial_symbols): Likewise.
13432 (add_partial_symbol): Likewise.
13433 (add_partial_subprogram): Likewise.
13434 (peek_die_abbrev): Likewise.
13435 (fixup_go_packaging): Likewise.
13436 (process_full_comp_unit): Likewise.
13437 (process_full_type_unit): Likewise.
13438 (process_imported_unit_die): Likewise.
13439 (dwarf2_compute_name): Likewise.
13440 (dwarf2_physname): Likewise.
13441 (read_import_statement): Likewise.
13442 (create_cus_hash_table): Assign dwarf2_physname instead of
13443 objfile.
13444 (read_func_scope): Access objfile through dwarf2_per_objfile.
13445 (read_lexical_block_scope): Likewise.
13446 (read_call_site_scope): Likewise.
13447 (read_variable): Likewise.
13448 (dwarf2_rnglists_process): Likewise.
13449 (dwarf2_ranges_process): Likewise.
13450 (dwarf2_ranges_read): Likewise.
13451 (dwarf2_record_block_ranges): Likewise.
13452 (dwarf2_add_field): Likewise.
13453 (dwarf2_add_member_fn): Likewise.
13454 (read_structure_type): Likewise.
13455 (process_structure_scope): Likewise.
13456 (read_enumeration_type): Likewise.
13457 (read_array_type): Likewise.
13458 (read_common_block): Likewise.
13459 (read_namespace_type): Likewise.
13460 (read_namespace): Likewise.
13461 (read_module_type): Likewise.
13462 (read_tag_pointer_type): Likewise.
13463 (read_tag_ptr_to_member_type): Likewise.
13464 (read_tag_string_type): Likewise.
13465 (read_subroutine_type): Likewise.
13466 (read_typedef): Likewise.
13467 (read_base_type): Likewise.
13468 (attr_to_dynamic_prop): Likewise.
13469 (read_subrange_type): Likewise.
13470 (read_unspecified_type): Likewise.
13471 (load_partial_dies): Likewise.
13472 (read_partial_die): Likewise.
13473 (find_partial_die): Likewise.
13474 (guess_partial_die_structure_name): Likewise.
13475 (fixup_partial_die): Likewise.
13476 (read_attribute_value): Likewise.
13477 (read_addr_index_from_leb128): Likewise.
13478 (dwarf2_read_addr_index): Likewise.
13479 (dwarf2_string_attr): Likewise.
13480 (lnp_state_machine::check_line_address): Likewise.
13481 (dwarf_decode_lines_1): Likewise.
13482 (dwarf_decode_lines): Likewise.
13483 (dwarf2_start_symtab): Likewise.
13484 (var_decode_location): Likewise.
13485 (new_symbol_full): Likewise.
13486 (dwarf2_const_value_data): Likewise.
13487 (dwarf2_const_value_attr): Likewise.
13488 (dwarf2_const_value): Likewise.
13489 (die_type): Likewise.
13490 (die_containing_type): Likewise.
13491 (lookup_die_type): Likewise.
13492 (guess_full_die_structure_name): Likewise.
13493 (anonymous_struct_prefix): Likewise.
13494 (dwarf2_name): Likewise.
13495 (follow_die_ref_or_sig): Likewise.
13496 (follow_die_offset): Likewise.
13497 (follow_die_ref): Likewise.
13498 (dwarf2_fetch_die_loc_sect_off): Likewise.
13499 (dwarf2_fetch_constant_bytes): Likewise.
13500 (dwarf2_fetch_die_type_sect_off): Likewise.
13501 (dwarf2_get_die_type): Likewise.
13502 (follow_die_sig): Likewise.
13503 (decode_locdesc): Likewise.
13504 (dwarf2_per_cu_objfile): Likewise.
13505 (dwarf2_per_cu_text_offset): Likewise.
13506 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13507 objfile.
13508 (set_die_type): Access objfile through
13509 dwarf2_per_objfile.
13510
13511 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13512
13513 * valprint.c (converted_character_d): Remove typedef.
13514 (DEF_VEC_O (converted_character_d)): Remove.
13515 (count_next_character): Use std::vector.
13516 (print_converted_chars_to_obstack): Likewise.
13517 (generic_printstr): Likewise.
13518
13519 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13520
13521 * xml-support.h (struct gdb_xml_value): Add constructor.
13522 <value>: Change type to unique_xmalloc_ptr.
13523 (gdb_xml_value_s): Remove typedef.
13524 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13525 (gdb_xml_element_start_handler): Change parameter type to
13526 std::vector.
13527 (xml_find_attribute): Likewise.
13528 * xml-support.c (xml_find_attribute): Change parameter type to
13529 std::vector and adjust.
13530 (gdb_xml_values_cleanup): Remove.
13531 (gdb_xml_parser::start_element): Adjust to std::vector.
13532 (xinclude_start_include): Change paraeter type to std::vector
13533 and adjust.
13534 * btrace.c (check_xml_btrace_version): Likewise.
13535 (parse_xml_btrace_block): Likewise.
13536 (parse_xml_btrace_pt_config_cpu): Likewise.
13537 (parse_xml_btrace_pt): Likewise.
13538 (parse_xml_btrace_conf_bts): Likewise.
13539 (parse_xml_btrace_conf_pt): Likewise.
13540 * memory-map.c (memory_map_start_memory): Likewise.
13541 (memory_map_start_property): Likewise.
13542 * osdata.c (osdata_start_osdata): Likewise.
13543 (osdata_start_item): Likewise.
13544 (osdata_start_column): Likewise.
13545 * remote.c (start_thread): Likewise.
13546 * solib-aix.c (library_list_start_library): Likewise.
13547 (library_list_start_list): Likewise.
13548 * solib-svr4.c (library_list_start_library): Likewise.
13549 (svr4_library_list_start_list): Likewise.
13550 * solib-target.c (library_list_start_segment): Likewise.
13551 (library_list_start_section): Likewise.
13552 (library_list_start_library): Likewise.
13553 (library_list_start_list): Likewise.
13554 * tracepoint.c (traceframe_info_start_memory): Likewise.
13555 (traceframe_info_start_tvar): Likewise.
13556 * xml-syscall.c (syscall_start_syscall): Likewise.
13557 * xml-tdesc.c (tdesc_start_target): Likewise.
13558 (tdesc_start_feature): Likewise.
13559 (tdesc_start_reg): Likewise.
13560 (tdesc_start_union): Likewise.
13561 (tdesc_start_struct): Likewise.
13562 (tdesc_start_flags): Likewise.
13563 (tdesc_start_enum): Likewise.
13564 (tdesc_start_field): Likewise.
13565 (tdesc_start_enum_value): Likewise.
13566 (tdesc_start_vector): Likewise.
13567
13568 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13569
13570 * extension.h (struct xmethod_worker) <clone>: Remove.
13571 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13572 Remove.
13573 (python_xmethod_worker::clone): Remove.
13574 * valops.c (find_overload_match): Use std::move instead of
13575 clone.
13576
13577 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13578
13579 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13580 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13581 <free_xmethod_worker_data>: Remove.
13582 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13583 <get_xmethod_arg_types>: Remove.
13584 <get_xmethod_result_type>: Remove.
13585 <invoke_xmethod>: Remove.
13586 * extension.c (new_xmethod_worker): Remove.
13587 (clone_xmethod_worker): Remove.
13588 (get_matching_xmethod_workers): Return void, pass std::vector by
13589 pointer.
13590 (get_xmethod_arg_types): Rename to...
13591 (xmethod_worker::get_arg_types): ... this, and adjust.
13592 (get_xmethod_result_type): Rename to...
13593 (xmethod_worker::get_result_type): ... this, and adjust.
13594 (invoke_xmethod): Remove.
13595 (free_xmethod_worker): Remove.
13596 (free_xmethod_worker_vec): Remove.
13597 * extension.h (enum ext_lang_rc): Move here from
13598 extension-priv.h.
13599 (struct xmethod_worker): Add constructor and destructor.
13600 <data>: Remove.
13601 <value>: Remove.
13602 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13603 virtual pure methods.
13604 <get_arg_types, get_result_type>: New methods.
13605 (xmethod_worker_ptr): Remove typedef.
13606 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13607 (xmethod_worker_vec): Remove typedef.
13608 (xmethod_worker_up): New typedef.
13609 (invoke_xmethod): Remove.
13610 (clone_xmethod_worker): Remove.
13611 (free_xmethod_worker): Remove.
13612 (free_xmethod_worker_vec): Remove.
13613 (get_xmethod_arg_types): Remove.
13614 (get_xmethod_result_type): Remove.
13615 * valops.c (find_method_list): Use std::vector, don't use
13616 intermediate vector.
13617 (value_find_oload_method_list): Use std::vector.
13618 (find_overload_match): Use std::vector.
13619 (find_oload_champ): Use std::vector.
13620 * value.c (value_free): Use operator delete.
13621 (value_of_xmethod): Rename to...
13622 (value_from_xmethod): ... this. Don't assign
13623 xmethod_worker::value, take rvalue-reference.
13624 (result_type_of_xmethod): Adjust.
13625 (call_xmethod): Adjust.
13626 * value.h: Include extension.h.
13627 (struct xmethod_worker): Don't forward-declare.
13628 (value_of_xmethod): Rename to...
13629 (value_from_xmethod): ... this, take rvalue-reference.
13630 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13631 (struct python_xmethod_worker): ... this, add constructor and
13632 destructor.
13633 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13634 (gdbpy_free_xmethod_worker_data): Rename to...
13635 (python_xmethod_worker::~python_xmethod_worker): ... this and
13636 adjust.
13637 (gdbpy_clone_xmethod_worker_data): Rename to...
13638 (python_xmethod_worker::clone): ... this and adjust.
13639 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13640 temporary vector.
13641 (gdbpy_get_xmethod_arg_types): Rename to...
13642 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13643 (gdbpy_get_xmethod_result_type): Rename to...
13644 (python_xmethod_worker::do_get_result_type): ... this and
13645 adjust.
13646 (gdbpy_invoke_xmethod): Rename to...
13647 (python_xmethod_worker::invoke): ... this and adjust.
13648 (new_python_xmethod_worker): Rename to...
13649 (python_xmethod_worker::python_xmethod_worker): ... this and
13650 adjust.
13651 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13652 Remove.
13653 (gdbpy_free_xmethod_worker_data): Remove.
13654 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13655 (gdbpy_get_xmethod_arg_types): Remove.
13656 (gdbpy_get_xmethod_result_type): Remove.
13657 (gdbpy_invoke_xmethod): Remove.
13658 * python/python.c (python_extension_ops): Remove obsolete
13659 callbacks.
13660
13661 2018-01-05 Pedro Alves <palves@redhat.com>
13662
13663 PR gdb/18653
13664 * common/signals-state-save-restore.c
13665 (save_original_signals_state): New parameter 'quiet'. Warn if we
13666 find a custom handler preinstalled, instead of internal erroring.
13667 But only warn if !quiet.
13668 * common/signals-state-save-restore.h
13669 (save_original_signals_state): New parameter 'quiet'.
13670 * main.c (captured_main_1): Move save_original_signals_state call
13671 after option handling, and pass QUIET.
13672
13673 2018-01-05 Pedro Alves <palves@redhat.com>
13674
13675 * spu-tdep.c (spu_catch_start): Pass
13676 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13677
13678 2018-01-05 Pedro Alves <palves@redhat.com>
13679
13680 PR gdb/22670
13681 * ada-lang.c (literal_symbol_name_matcher): New function.
13682 (ada_get_symbol_name_matcher): Use it for
13683 symbol_name_match_type::SEARCH_NAME.
13684 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13685 it down instead of assuming symbol_name_match_type::FULL.
13686 * block.h (block_lookup_symbol): New parameter 'match_type'.
13687 * c-valprint.c (print_unpacked_pointer): Use
13688 lookup_symbol_search_name instead of lookup_symbol.
13689 * compile/compile-object-load.c (get_out_value_type): Pass down
13690 symbol_name_match_type::SEARCH_NAME.
13691 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13692 symbol_name_match_type::FULL.
13693 * cp-support.c (cp_get_symbol_name_matcher): Handle
13694 symbol_name_match_type::SEARCH_NAME.
13695 * infrun.c (insert_exception_resume_breakpoint): Use
13696 lookup_symbol_search_name.
13697 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13698 * psymtab.c (maintenance_check_psymtabs): Use
13699 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13700 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13701 SYMBOL_SEARCH_NAME.
13702 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13703 if symbol_name_match_type::SEARCH_NAME.
13704 (lookup_symbol_in_language): Pass down
13705 symbol_name_match_type::FULL.
13706 (lookup_symbol_search_name): New.
13707 (lookup_language_this): Pass down
13708 symbol_name_match_type::SEARCH_NAME.
13709 (lookup_symbol_aux, lookup_local_symbol): New parameter
13710 'match_type'. Pass it down.
13711 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13712 (lookup_symbol_search_name): New declaration.
13713 (lookup_symbol_in_block): New 'match_type' parameter.
13714
13715 2018-01-05 Pedro Alves <palves@redhat.com>
13716
13717 PR gdb/22670
13718 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13719 ada_lookup_symbol.
13720 (ada_lookup_symbol): Reimplement in terms of
13721 ada_lookup_symbol_list, bits factored out from
13722 ada_lookup_encoded_symbol.
13723
13724 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13725
13726 * ada-exp.y (write_object_renaming): When subscripting an array
13727 using a symbol as the index, pass the block in call to
13728 ada_lookup_encoded_symbol when looking that symbol up.
13729
13730 2018-01-05 Jerome Guitton <guitton@adacore.com>
13731
13732 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13733 TYPE_INDEX_TYPE.
13734
13735 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13736
13737 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13738 the case where VALUE_LVAL (val0) is not lval_memory.
13739
13740 2018-01-05 Xavier Roirand <roirand@adacore.com>
13741
13742 * ada-valprint.c (print_optional_low_bound): Handle
13743 character-indexed array printing like boolean-indexed array
13744 printing.
13745
13746 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13747
13748 * NEWS: Create a new section for the next release branch.
13749 Rename the section of the current branch, now that it has
13750 been cut.
13751
13752 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13753
13754 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13755 * version.in: Bump version to 8.1.50.DATE-git.
13756
13757 2018-01-03 Xavier Roirand <roirand@adacore.com>
13758
13759 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13760 Add field.
13761 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13762 Add field.
13763 (default_exception_support_info) <catch_handlers_sym>: Add field.
13764 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13765 (ada_exception_name_addr_1): Add "catch handlers" handling.
13766 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13767 Update all callers.
13768 (create_excep_cond_exprs) <ex>: Add parameter.
13769 (re_set_exception): Update create_excep_cond_exprs call.
13770 (print_it_exception, print_one_exception, print_mention_exception)
13771 (print_recreate_exception): Add "catch handler" handling.
13772 (allocate_location_catch_handlers, re_set_catch_handlers)
13773 (check_status_catch_handlers, print_it_catch_handlers)
13774 (print_one_catch_handlers, print_mention_catch_handlers)
13775 (print_recreate_catch_handlers): New function.
13776 (catch_handlers_breakpoint_ops): New variable.
13777 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13778 Add parameter. Add "catch handler" handling.
13779 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13780 Add "catch handler" handling.
13781 (ada_exception_catchpoint_cond_string): Add "catch handler"
13782 handling.
13783 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13784 call.
13785 (catch_ada_handlers_command): New function.
13786 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13787 operations structure.
13788 (_initialize_ada_language): Add "catch handlers" command entry.
13789 * NEWS: Document "catch handlers" feature.
13790
13791 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13792
13793 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13794 account when creating the array type of the slice.
13795 (ada_value_slice): Likewise.
13796
13797 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13798
13799 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13800 New enum value.
13801 (create_array_type_with_stride): Add byte_stride_prop parameter.
13802 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13803 New parameter. Update all callers in this file.
13804 (array_type_has_dynamic_stride): New function.
13805 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13806 of arrays with dynamic byte strides.
13807 * dwarf2read.c (read_array_type): Add support for dynamic
13808 DW_AT_byte_stride attributes.
13809
13810 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13811
13812 * dwarf2read.c (read_unspecified_type): Treat
13813 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13814
13815 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13816
13817 Update copyright year range in all GDB files.
13818
13819 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13820
13821 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13822 and gdb/testsuite/gdb.base/step-line.c.
13823
13824 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13825
13826 * copyright.py (main): Dump the contents of
13827 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13828 even if BY_HAND is empty.
13829
13830 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13831
13832 * top.c (print_gdb_version): Update Copyright year in version
13833 message.
13834
13835 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13836
13837 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
13838
13839 For older changes see ChangeLog-2017.
13840 \f
13841 Local Variables:
13842 mode: change-log
13843 left-margin: 8
13844 fill-column: 74
13845 version-control: never
13846 coding: utf-8
13847 End: