1 2018-09-19 Richard Bunt <richard.bunt@arm.com>
2 Chris January <chris.january@arm.com>
4 * eval.c (skip_undetermined_arglist): Skip argument list helper.
5 (evaluate_subexp_standard): Return a dummy type when
6 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
7 OP_F77_UNDETERMINED_ARGLIST case.
8 * expression.h (enum noside): Update comment.
10 2018-09-19 George Vasick <george.vasick@oracle.com>
12 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
14 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
15 April Chin <april.chin@oracle.com>
16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
20 (create_procinfo): Print pids in /proc without leading zeros.
22 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
24 * nios2-tdep.c (nios2_gcc_target_options): New.
25 (nios2_gdb_arch_init): Install new hook.
27 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
29 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
31 * update-gnulib.sh: Apply patch.
32 * configure: Re-generate.
34 2018-09-18 John Baldwin <jhb@FreeBSD.org>
36 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
37 description. Make "info proc" command descriptions more
40 2018-09-18 John Baldwin <jhb@FreeBSD.org>
42 * NEWS: Mention 'info proc files' command.
44 2018-09-18 John Baldwin <jhb@FreeBSD.org>
46 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
47 descriptors for IP_FILES and IP_ALL.
49 2018-09-18 John Baldwin <jhb@FreeBSD.org>
51 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
52 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
53 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
54 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
55 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
56 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
57 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
58 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
59 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
60 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
61 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
62 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
63 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
64 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
65 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
66 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
67 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
68 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
69 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
70 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
71 (struct fbsd_sockaddr_un): New types.
72 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
73 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
74 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
75 (fbsd_core_info_proc_files): New functions.
76 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
78 * fbsd-tdep.h (fbsd_info_proc_files_header)
79 (fbsd_info_proc_files_entry): New.
81 2018-09-18 John Baldwin <jhb@FreeBSD.org>
83 * defs.h (enum info_proc_what) [IP_FILES]: New value.
84 * infcmd.c (info_proc_cmd_files): New function.
85 (_initialize_infcmd): Register 'info proc files' command.
87 2018-09-18 John Baldwin <jhb@FreeBSD.org>
89 * gnulib/aclocal-m4-deps.mk: Re-generate.
90 * gnulib/aclocal.m4: Re-generate.
91 * gnulib/config.in: Re-generate.
92 * gnulib/configure: Re-generate.
93 * gnulib/import/Makefile.am: Re-generate.
94 * gnulib/import/Makefile.in: Re-generate.
95 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
96 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
97 * gnulib/import/arpa_inet.in.h: New file.
98 * gnulib/import/inet_ntop.c: New file.
99 * gnulib/import/m4/arpa_inet_h.m4: New file.
100 * gnulib/import/m4/inet_ntop.m4: New file.
101 * gnulib/import/m4/netinet_in_h.m4: New file.
102 * gnulib/import/m4/socklen.m4: New file.
103 * gnulib/import/m4/sockpfaf.m4: New file.
104 * gnulib/import/m4/stdalign.m4: New file.
105 * gnulib/import/m4/sys_uio_h.m4: New file.
106 * gnulib/import/netinet_in.in.h: New file.
107 * gnulib/import/stdalign.in.h: New file.
108 * gnulib/import/sys_socket.c: New file.
109 * gnulib/import/sys_socket.in.h: New file.
110 * gnulib/import/sys_uio.in.h: New file.
111 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
114 2018-09-18 John Baldwin <jhb@FreeBSD.org>
116 * gnulib/aclocal-m4-deps.mk: New file.
117 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
120 2018-09-18 John Baldwin <jhb@FreeBSD.org>
122 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
125 2018-09-18 Tom Tromey <tom@tromey.com>
127 * compile/compile-object-load.c (struct
128 link_hash_table_cleanup_data): Add constructor and destructor.
129 Use DISABLE_COPY_AND_ASSIGN.
130 (~link_hash_table_cleanup_data): Rename from
131 link_hash_table_free. Now a destructor.
132 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
134 2018-09-18 Tom Tromey <tom@tromey.com>
136 * compile/compile-object-run.c (do_module_cleanup): Use delete.
137 * compile/compile-object-load.c (struct munmap_list): Move to
139 (munmap_list::add): Rename from munmap_list_add; rewrite.
140 (munmap_list::~munmap_list): Rename from munmap_list_free.
141 (munmap_listp_free_cleanup): Remove.
142 (compile_object_load): Update.
143 * compile/compile-object-load.h (struct munmap_list): Move from
144 compile-object-load.c. Rewrite.
146 2018-09-18 Alan Hayward <alan.hayward@arm.com>
148 * aarch64-tdep.c (pass_in_v): Use register size.
149 (aarch64_extract_return_value): Likewise.
150 (aarch64_store_return_value): Likewise.
152 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
154 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
157 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
159 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
162 2018-09-17 Tom Tromey <tom@tromey.com>
165 * configure: Rebuild.
166 * configure.ac: Conditionally use -DNDEBUG for Python.
168 2018-09-17 Tom Tromey <tom@tromey.com>
170 * configure: Rebuild.
171 * configure.ac: Use gmp as a library dependency when checking for
174 2018-09-17 Pedro Alves <palves@redhat.com>
176 * python/py-inferior.c (find_inferior_object): Delete.
178 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
180 * compile/compile-cplus-types.c
181 (compile_cplus_instance::enter_scope): Don't use new_scope after
184 2018-09-17 Tom Tromey <tom@tromey.com>
186 * common/pathstuff.c (get_standard_cache_dir): Use
187 ~/Library/Caches on macOS.
188 * common/pathstuff.h (get_standard_cache_dir): Update comment.
190 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
193 * breakpoint.c (commands_cmd_element): New.
194 (_initialize_breakpoint): Assign commands_cmd_element.
195 * breakpoint.h (commands_cmd_element): New.
196 * cli/cli-script.c (while_cmd_element, if_command,
197 define_cmd_element): New.
198 (command_name_equals): Remove.
199 (process_next_line): Compare commands by pointer, not by name.
200 (_initialize_cli_script): Assign the various cmd_list_element
202 * compile/compile.c (compile_cmd_element): New.
203 (_initialize_compile): Assign compile_cmd_element.
204 * compile/compile.h (compile_cmd_element): New.
205 * guile/guile.c (guile_cmd_element): New.
206 (install_gdb_commands): Assign guile_cmd_element.
207 * guile/guile.h (guile_cmd_element): New.
208 * python/python.c (python_cmd_element): New.
209 (_initialize_python): Assign python_cmd_element.
210 * python/python.h (python_cmd_element): New.
211 * tracepoint.c (while_stepping_cmd_element): New.
212 (_initialize_tracepoint): Assign while_stepping_cmd_element.
213 * tracepoint.h (while_stepping_cmd_element): New.
215 2018-09-17 Tom Tromey <tom@tromey.com>
217 * infrun.c (save_infcall_suspend_state): Return
218 infcall_suspend_state_up.
219 (save_infcall_control_state): Return infcall_control_state_up.
220 * inferior.h (save_infcall_suspend_state)
221 (save_infcall_control_state): Declare later. Return unique
224 2018-09-17 Tom Tromey <tom@tromey.com>
226 * infrun.c (struct stop_context): Declare constructor,
227 destructor, "changed" method.
228 (stop_context::stop_context): Rename from save_stop_context.
229 (stop_context::~stop_context): Rename from
230 release_stop_context_cleanup.
231 (normal_stop): Update.
232 (stop_context::changed): Rename from stop_context_changed. Return
235 2018-09-17 Tom Tromey <tom@tromey.com>
237 * inferior.h (struct infcall_suspend_state_deleter): New.
238 (infcall_suspend_state_up): New typedef.
239 (struct infcall_control_state_deleter): New.
240 (infcall_control_state_up): New typedef.
241 (make_cleanup_restore_infcall_suspend_state)
242 (make_cleanup_restore_infcall_control_state): Don't declare.
243 * infcall.c (call_function_by_hand_dummy): Update.
244 * infrun.c (do_restore_infcall_suspend_state_cleanup)
245 (make_cleanup_restore_infcall_suspend_state): Remove.
246 (do_restore_infcall_control_state_cleanup)
247 (make_cleanup_restore_infcall_control_state): Remove.
249 2018-09-17 Tom Tromey <tom@tromey.com>
251 * gdbthread.h (struct thread_control_state): Add initializer.
252 (class thread_info) <control>: Remove initializer.
253 * inferior.h (struct inferior_control_state): Add initializer.
254 (class inferior) <control>: Remove initializer.
255 (exit_inferior_1): Update.
256 * infrun.c (struct infcall_control_state): Add constructors.
257 (save_infcall_control_state): Use new.
258 (restore_infcall_control_state, discard_infcall_control_state):
261 2018-09-17 Tom Tromey <tom@tromey.com>
263 * infrun.c (struct infcall_suspend_state) <registers>: Now a
265 <siginfo_data>: Now a unique_xmalloc_ptr.
266 (save_infcall_suspend_state, restore_infcall_suspend_state)
267 (discard_infcall_suspend_state)
268 (get_infcall_suspend_state_regcache): Update.
270 2018-09-17 Tom Tromey <tom@tromey.com>
272 * gdbthread.h (struct thread_suspend_state): Add initializers.
273 (class thread_info) <suspend>: Remove initializer.
274 * infrun.c (struct infcall_suspend_state): Add initializers.
275 (save_infcall_suspend_state): Use new.
276 (discard_infcall_suspend_state): Use delete.
278 2018-09-16 Tom Tromey <tom@tromey.com>
280 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
282 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
283 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
284 (py_varobj_iter_new): Likewise.
285 (py_varobj_get_iterator): Use gdbpy_ref.
287 2018-09-16 Tom Tromey <tom@tromey.com>
289 * python/py-threadevent.c (py_get_event_thread): Simplify.
290 * python/py-inferior.c (infpy_thread_from_thread_handle):
291 Return immediately after calling thread_to_thread_object. Use
293 (thread_to_thread_object): Set the exception on a NULL return.
295 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
297 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
299 2018-09-16 Tom Tromey <tom@tromey.com>
301 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
304 2018-09-16 Tom Tromey <tom@tromey.com>
306 * python/python-internal.h (thread_to_thread_object): Change
308 * python/py-inferior.c (thread_to_thread_object): Return a new
310 (infpy_thread_from_thread_handle): Update.
311 * python/py-infthread.c (gdbpy_selected_thread): Update.
312 * python/py-stopevent.c (create_stop_event_object): Update.
313 * python/py-threadevent.c (py_get_event_thread): Return a new
315 (py_get_event_thread): Update.
316 * python/py-event.h (py_get_event_thread): Change return type.
317 * python/py-continueevent.c (create_continue_event_object):
320 2018-09-16 Tom Tromey <tom@tromey.com>
322 * python/py-progspace.c (pspy_get_objfiles): Update.
323 * python/python-internal.h (objfile_to_objfile_object): Change
325 * python/py-newobjfileevent.c (create_new_objfile_event_object):
327 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
329 * python/python.c (gdbpy_get_current_objfile): Update.
330 (gdbpy_objfiles): Update.
331 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
333 (objfile_to_objfile_object): Return a new reference.
334 * python/py-symtab.c (stpy_get_objfile): Update.
335 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
338 2018-09-16 Tom Tromey <tom@tromey.com>
340 * python/py-inferior.c (infpy_get_progspace): Update.
341 * python/python-internal.h (pspace_to_pspace_object): Change
343 * python/py-newobjfileevent.c
344 (create_clear_objfiles_event_object): Update.
345 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
347 * python/python.c (gdbpy_get_current_progspace): Update.
348 (gdbpy_progspaces): Update.
349 * python/py-progspace.c (pspace_to_pspace_object): Return a new
351 * python/py-objfile.c (objfpy_get_progspace): Update.
352 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
355 2018-09-16 Tom Tromey <tom@tromey.com>
357 * python/lib/gdb/__init__.py (current_progspace, objfiles)
358 (solib_name, block_for_pc, find_pc_line): New functions.
359 (execute_unwinders): Update.
360 * python/py-block.c (gdbpy_block_for_pc): Remove.
361 * python/py-inferior.c (infpy_get_progspace): New function.
362 (inferior_object_getset) <progspace>: Add.
363 * python/py-progspace.c (pspy_objfiles): Rewrite.
364 (pspy_solib_name, pspy_block_for_pc)
365 (pspy_find_pc_line, pspy_is_valid): New functions.
366 (progspace_object_methods): Add entries for solib_name,
367 block_for_pc, find_pc_line, is_valid.
368 * python/python-internal.h (gdbpy_block_for_pc)
369 (build_objfiles_list): Don't declare.
370 * python/python.c: Don't include solib.h.
371 (gdbpy_solib_name, gdbpy_find_pc_line)
372 (gdbpy_get_current_progspace, build_objfiles_list)
373 (gdbpy_objfiles): Remove.
374 (GdbMethods) <current_progspace, objfiles, block_for_pc,
375 solib_name, find_pc_line>: Remove entries.
377 2018-09-16 Tom Tromey <tom@tromey.com>
379 * top.c (new_ui_command): Use GNU style for metasyntactic
381 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
383 * maint.c (maintenance_translate_address): Remove "<>" around
385 * interps.c (interpreter_exec_cmd): Use GNU style for
386 metasyntactic variables.
387 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
388 metasyntactic variables.
389 * tracepoint.c (tfind_range_command): Use GNU style for
390 metasyntactic variables.
391 (tfind_outside_command): Likewise.
392 (_initialize_tracepoint): Likewise.
393 * remote.c (extended_remote_target::create_inferior): Use GNU
394 style for metasyntactic variables.
395 * sparc64-tdep.c (adi_examine_command): Use GNU style for
396 metasyntactic variables.
397 (adi_assign_command): Likewise.
399 2018-09-16 Tom Tromey <tom@tromey.com>
401 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
402 metasyntactic variables. Print message if no disassembler options
405 2018-09-15 Tom Tromey <tom@tromey.com>
407 * infcmd.c (get_inferior_args): Return const char *.
408 * inferior.h (get_inferior_args): Return type now const.
409 * linux-tdep.c (linux_fill_prpsinfo): Update.
410 * procfs.c (procfs_target::make_corefile_notes): Update.
412 2018-09-07 Tom Tromey <tom@tromey.com>
414 * python/python.c (execute_gdb_command): Call bpstat_do_actions
417 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
419 * nios2-tdep.c (nios2_type_align): New.
420 (nios2_gdb_arch_init): Install type_align hook.
422 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
424 * eval.c (fake_method::fake_method): Call xzalloc directly for a
425 type that is neither object file owned, nor gdbarch owned.
426 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
428 (alloc_type_instance): Allocate non-objfile owned types on the
430 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
431 using TYPE_ALLOC to ensure memory is allocated on the correct
433 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
434 obstack, or the gdbarch obstack.
435 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
437 2018-09-14 Tom Tromey <tom@tromey.com>
439 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
442 2018-09-14 Tom Tromey <tom@tromey.com>
444 * nat/fork-inferior.c (get_startup_shell): Remove "static".
446 2018-09-13 Tom Tromey <tom@tromey.com>
448 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
451 2018-09-13 Tom Tromey <tom@tromey.com>
453 * exec.c (try_open_exec_file): Use std::string.
455 2018-09-13 Tom Tromey <tom@tromey.com>
457 * utils.h (gdb_bfd_errmsg): Return std::string.
458 * exec.c (exec_file_attach): Update.
459 * compile/compile-object-load.c (compile_object_load): Update.
460 * utils.c (gdb_bfd_errmsg): Return std::string.
462 2018-09-13 Tom Tromey <tom@tromey.com>
464 * procfs.c (struct procinfo_deleter): New.
465 (procinfo_up): New typedef.
466 (do_destroy_procinfo_cleanup): Remove.
467 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
469 2018-09-13 Tom Tromey <tom@tromey.com>
471 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
473 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
474 2018-09-13 Tom Tromey <tom@tromey.com>
476 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
477 (pspy_get_objfiles): New function.
478 (progspace_object_methods): New.
479 (pspace_object_type): Add tp_methods callback.
480 * python/python-internal.h (build_objfiles_list): New
482 * python/python.c (build_objfiles_list): New function.
483 (gdbpy_objfiles): Implement using build_objfiles_list.
484 * NEWS: Mention the Progspace.objfiles method.
486 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
488 * python/py-inferior.c (infpy_get_progspace): New function.
489 (inferior_object_getset): Add progspace property.
490 * NEWS: Mention the new property.
492 2018-09-13 Tom Tromey <tom@tromey.com>
495 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
497 2018-09-13 Tom Tromey <tom@tromey.com>
500 * rust-lang.c (rust_enum_variant): Now static.
501 (rust_empty_enum_p): New function.
502 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
505 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
507 * python/py-inferior.c (infpy_repr): New.
508 (inferior_object_type): Register infpy_repr.
509 * python/py-objfile.c (objfpy_repr): New.
510 (objfile_object_type): Register objfpy_repr.
512 2018-09-12 John Baldwin <jhb@FreeBSD.org>
514 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
516 2018-09-12 John Baldwin <jhb@FreeBSD.org>
518 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
521 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
523 * common/common-utils.c: Don't include '<sys/stat.h>'.
524 (is_regular_file): Move to...
525 * common/filestuff.c (is_regular_file): ... here.
526 * common/common-utils.h (is_regular_file): Move to...
527 * common/filestuff.h (is_regular_file): ... here.
529 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
531 * skip.c (debug_skip): New variable.
532 (skiplist_entry::do_skip_file_p): Add debug output.
533 (skiplist_entry::do_skip_gfile_p): Likewise.
534 (skiplist_entry::skip_function_p): Likewise.
535 (_initialize_step_skip): Create debug command.
536 * NEWS: Mention set/show debug skip.
538 2018-09-11 Xavier Roirand <roirand@adacore.com>
540 * darwin-nat.c (should_disable_startup_with_shell):
542 (darwin_nat_target::create_inferior): Add call.
544 2018-09-11 Xavier Roirand <roirand@adacore.com>
546 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
547 inf_port, msg_state>: Initialize.
548 (struct darwin_thread_info) <signaled, single_step>: Change
550 (struct darwin_thread_info) <event>: Initialize.
552 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
556 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
559 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
562 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
566 * gnulib/aclocal.m4: Regenerate.
567 * gnulib/config.in: Regenerate.
568 * gnulib/configure: Regenerate.
569 * gnulib/import/Makefile.am: Update.
570 * gnulib/import/Makefile.in: Update.
571 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
572 * gnulib/import/_Noreturn.h: ... this.
573 * gnulib/import/alloca.in.h: Update.
574 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
575 * gnulib/import/arg-nonnull.h: ... this.
576 * gnulib/import/assure.h: Update.
577 * gnulib/import/at-func.c: Update.
578 * gnulib/import/basename-lgpl.c: Update.
579 * gnulib/import/extra/snippet/c++defs.h: Rename to...
580 * gnulib/import/c++defs.h: ... this.
581 * gnulib/import/canonicalize-lgpl.c: Update.
582 * gnulib/import/cdefs.h: Update.
583 * gnulib/import/chdir-long.c: Update.
584 * gnulib/import/chdir-long.h: Update.
585 * gnulib/import/cloexec.c: Update.
586 * gnulib/import/cloexec.h: Update.
587 * gnulib/import/close.c: Update.
588 * gnulib/import/closedir.c: Update.
589 * gnulib/import/config.charset: Update.
590 * gnulib/import/dirent-private.h: Update.
591 * gnulib/import/dirent.in.h: Update.
592 * gnulib/import/dirfd.c: Update.
593 * gnulib/import/dirname-lgpl.c: Update.
594 * gnulib/import/dirname.h: Update.
595 * gnulib/import/dosname.h: Update.
596 * gnulib/import/dup-safer-flag.c: Update.
597 * gnulib/import/dup-safer.c: Update.
598 * gnulib/import/dup.c: Update.
599 * gnulib/import/dup2.c: Update.
600 * gnulib/import/errno.in.h: Update.
601 * gnulib/import/error.c: Update.
602 * gnulib/import/error.h: Update.
603 * gnulib/import/exitfail.c: Update.
604 * gnulib/import/exitfail.h: Update.
605 * gnulib/import/extra/update-copyright: Update.
606 * gnulib/import/fchdir.c: Update.
607 * gnulib/import/fcntl.c: Update.
608 * gnulib/import/fcntl.in.h: Update.
609 * gnulib/import/fd-hook.c: Update.
610 * gnulib/import/fd-hook.h: Update.
611 * gnulib/import/fd-safer-flag.c: Update.
612 * gnulib/import/fd-safer.c: Update.
613 * gnulib/import/fdopendir.c: Update.
614 * gnulib/import/filename.h: Update.
615 * gnulib/import/filenamecat-lgpl.c: Update.
616 * gnulib/import/filenamecat.h: Update.
617 * gnulib/import/flexmember.h: Update.
618 * gnulib/import/float+.h: Update.
619 * gnulib/import/float.c: Update.
620 * gnulib/import/float.in.h: Update.
621 * gnulib/import/fnmatch.c: Update.
622 * gnulib/import/fnmatch.in.h: Update.
623 * gnulib/import/fnmatch_loop.c: Update.
624 * gnulib/import/fpucw.h: Update.
625 * gnulib/import/frexp.c: Update.
626 * gnulib/import/frexpl.c: Update.
627 * gnulib/import/fstat.c: Update.
628 * gnulib/import/fstatat.c: Update.
629 * gnulib/import/getcwd-lgpl.c: Update.
630 * gnulib/import/getcwd.c: Update.
631 * gnulib/import/getdtablesize.c: Update.
632 * gnulib/import/getlogin_r.c: Update.
633 * gnulib/import/getprogname.c: Update.
634 * gnulib/import/getprogname.h: Update.
635 * gnulib/import/gettext.h: Update.
636 * gnulib/import/gettimeofday.c: Update.
637 * gnulib/import/glob-libc.h: Update.
638 * gnulib/import/glob.c: Update.
639 * gnulib/import/glob.in.h: Update.
640 * gnulib/import/glob_internal.h: Update.
641 * gnulib/import/glob_pattern_p.c: Update.
642 * gnulib/import/globfree.c: Update.
643 * gnulib/import/hard-locale.c: Update.
644 * gnulib/import/hard-locale.h: Update.
645 * gnulib/import/intprops.h: Update.
646 * gnulib/import/inttypes.in.h: Update.
647 * gnulib/import/isnan.c: Update.
648 * gnulib/import/isnand-nolibm.h: Update.
649 * gnulib/import/isnand.c: Update.
650 * gnulib/import/isnanl-nolibm.h: Update.
651 * gnulib/import/isnanl.c: Update.
652 * gnulib/import/itold.c: Update.
653 * gnulib/import/libc-config.h: Update.
654 * gnulib/import/limits.in.h: Update.
655 * gnulib/import/localcharset.c: Update.
656 * gnulib/import/localcharset.h: Update.
657 * gnulib/import/localtime-buffer.c: Update.
658 * gnulib/import/localtime-buffer.h: Update.
659 * gnulib/import/lstat.c: Update.
660 * gnulib/import/m4/00gnulib.m4: Update.
661 * gnulib/import/m4/__inline.m4: Update.
662 * gnulib/import/m4/absolute-header.m4: Update.
663 * gnulib/import/m4/alloca.m4: Update.
664 * gnulib/import/m4/builtin-expect.m4: Update.
665 * gnulib/import/m4/canonicalize.m4: Update.
666 * gnulib/import/m4/chdir-long.m4: Update.
667 * gnulib/import/m4/close.m4: Update.
668 * gnulib/import/m4/closedir.m4: Update.
669 * gnulib/import/m4/configmake.m4: Update.
670 * gnulib/import/m4/d-ino.m4: Update.
671 * gnulib/import/m4/d-type.m4: Update.
672 * gnulib/import/m4/dirent_h.m4: Update.
673 * gnulib/import/m4/dirfd.m4: Update.
674 * gnulib/import/m4/dirname.m4: Update.
675 * gnulib/import/m4/double-slash-root.m4: Update.
676 * gnulib/import/m4/dup.m4: Update.
677 * gnulib/import/m4/dup2.m4: Update.
678 * gnulib/import/m4/eealloc.m4: Update.
679 * gnulib/import/m4/environ.m4: Update.
680 * gnulib/import/m4/errno_h.m4: Update.
681 * gnulib/import/m4/error.m4: Update.
682 * gnulib/import/m4/exponentd.m4: Update.
683 * gnulib/import/m4/exponentl.m4: Update.
684 * gnulib/import/m4/extensions.m4: Update.
685 * gnulib/import/m4/extern-inline.m4: Update.
686 * gnulib/import/m4/fchdir.m4: Update.
687 * gnulib/import/m4/fcntl-o.m4: Update.
688 * gnulib/import/m4/fcntl.m4: Update.
689 * gnulib/import/m4/fcntl_h.m4: Update.
690 * gnulib/import/m4/fdopendir.m4: Update.
691 * gnulib/import/m4/filenamecat.m4: Update.
692 * gnulib/import/m4/flexmember.m4: Update.
693 * gnulib/import/m4/float_h.m4: Update.
694 * gnulib/import/m4/fnmatch.m4: Update.
695 * gnulib/import/m4/fnmatch_h.m4: Update.
696 * gnulib/import/m4/fpieee.m4: Update.
697 * gnulib/import/m4/frexp.m4: Update.
698 * gnulib/import/m4/frexpl.m4: Update.
699 * gnulib/import/m4/fstat.m4: Update.
700 * gnulib/import/m4/fstatat.m4: Update.
701 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
702 * gnulib/import/m4/getcwd-path-max.m4: Update.
703 * gnulib/import/m4/getcwd.m4: Update.
704 * gnulib/import/m4/getdtablesize.m4: Update.
705 * gnulib/import/m4/getlogin.m4: Update.
706 * gnulib/import/m4/getlogin_r.m4: Update.
707 * gnulib/import/m4/getpagesize.m4: Update.
708 * gnulib/import/m4/getprogname.m4: Update.
709 * gnulib/import/m4/gettimeofday.m4: Update.
710 * gnulib/import/m4/glibc21.m4: Update.
711 * gnulib/import/m4/glob.m4: Update.
712 * gnulib/import/m4/glob_h.m4: Update.
713 * gnulib/import/m4/gnulib-cache.m4: Update.
714 * gnulib/import/m4/gnulib-common.m4: Update.
715 * gnulib/import/m4/gnulib-comp.m4: Update.
716 * gnulib/import/m4/gnulib-tool.m4: Update.
717 * gnulib/import/m4/hard-locale.m4: Update.
718 * gnulib/import/m4/include_next.m4: Update.
719 * gnulib/import/m4/inttypes-pri.m4: Update.
720 * gnulib/import/m4/inttypes.m4: Update.
721 * gnulib/import/m4/isnand.m4: Update.
722 * gnulib/import/m4/isnanl.m4: Update.
723 * gnulib/import/m4/largefile.m4: Update.
724 * gnulib/import/m4/limits-h.m4: Update.
725 * gnulib/import/m4/localcharset.m4: Update.
726 * gnulib/import/m4/locale-fr.m4: Update.
727 * gnulib/import/m4/locale-ja.m4: Update.
728 * gnulib/import/m4/locale-zh.m4: Update.
729 * gnulib/import/m4/localtime-buffer.m4: Update.
730 * gnulib/import/m4/longlong.m4: Update.
731 * gnulib/import/m4/lstat.m4: Update.
732 * gnulib/import/m4/malloc.m4: Update.
733 * gnulib/import/m4/malloca.m4: Update.
734 * gnulib/import/m4/math_h.m4: Update.
735 * gnulib/import/m4/mbrtowc.m4: Update.
736 * gnulib/import/m4/mbsinit.m4: Update.
737 * gnulib/import/m4/mbsrtowcs.m4: Update.
738 * gnulib/import/m4/mbstate_t.m4: Update.
739 * gnulib/import/m4/memchr.m4: Update.
740 * gnulib/import/m4/memmem.m4: Update.
741 * gnulib/import/m4/mempcpy.m4: Update.
742 * gnulib/import/m4/memrchr.m4: Update.
743 * gnulib/import/m4/mkdir.m4: Update.
744 * gnulib/import/m4/mkstemp.m4: Update.
745 * gnulib/import/m4/mmap-anon.m4: Update.
746 * gnulib/import/m4/mode_t.m4: Update.
747 * gnulib/import/m4/msvc-inval.m4: Update.
748 * gnulib/import/m4/msvc-nothrow.m4: Update.
749 * gnulib/import/m4/multiarch.m4: Update.
750 * gnulib/import/m4/nocrash.m4: Update.
751 * gnulib/import/m4/off_t.m4: Update.
752 * gnulib/import/m4/onceonly.m4: Update.
753 * gnulib/import/m4/open-cloexec.m4: Update.
754 * gnulib/import/m4/open.m4: Update.
755 * gnulib/import/m4/openat.m4: Update.
756 * gnulib/import/m4/opendir.m4: Update.
757 * gnulib/import/m4/pathmax.m4: Update.
758 * gnulib/import/m4/rawmemchr.m4: Update.
759 * gnulib/import/m4/readdir.m4: Update.
760 * gnulib/import/m4/readlink.m4: Update.
761 * gnulib/import/m4/realloc.m4: Update.
762 * gnulib/import/m4/rename.m4: Update.
763 * gnulib/import/m4/rewinddir.m4: Update.
764 * gnulib/import/m4/rmdir.m4: Update.
765 * gnulib/import/m4/save-cwd.m4: Update.
766 * gnulib/import/m4/secure_getenv.m4: Update.
767 * gnulib/import/m4/setenv.m4: Update.
768 * gnulib/import/m4/signal_h.m4: Update.
769 * gnulib/import/m4/ssize_t.m4: Update.
770 * gnulib/import/m4/stat-time.m4: Update.
771 * gnulib/import/m4/stat.m4: Update.
772 * gnulib/import/m4/std-gnu11.m4: Update.
773 * gnulib/import/m4/stdbool.m4: Update.
774 * gnulib/import/m4/stddef_h.m4: Update.
775 * gnulib/import/m4/stdint.m4: Update.
776 * gnulib/import/m4/stdio_h.m4: Update.
777 * gnulib/import/m4/stdlib_h.m4: Update.
778 * gnulib/import/m4/strchrnul.m4: Update.
779 * gnulib/import/m4/strdup.m4: Update.
780 * gnulib/import/m4/strerror.m4: Update.
781 * gnulib/import/m4/string_h.m4: Update.
782 * gnulib/import/m4/strstr.m4: Update.
783 * gnulib/import/m4/strtok_r.m4: Update.
784 * gnulib/import/m4/sys_socket_h.m4: Update.
785 * gnulib/import/m4/sys_stat_h.m4: Update.
786 * gnulib/import/m4/sys_time_h.m4: Update.
787 * gnulib/import/m4/sys_types_h.m4: Update.
788 * gnulib/import/m4/tempname.m4: Update.
789 * gnulib/import/m4/time_h.m4: Update.
790 * gnulib/import/m4/unistd-safer.m4: Update.
791 * gnulib/import/m4/unistd_h.m4: Update.
792 * gnulib/import/m4/warn-on-use.m4: Update.
793 * gnulib/import/m4/wchar_h.m4: Update.
794 * gnulib/import/m4/wchar_t.m4: Update.
795 * gnulib/import/m4/wctype_h.m4: Update.
796 * gnulib/import/m4/wint_t.m4: Update.
797 * gnulib/import/malloc.c: Update.
798 * gnulib/import/malloc/scratch_buffer.h: Update.
799 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
800 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
801 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
802 * gnulib/import/malloca.c: Update.
803 * gnulib/import/malloca.h: Update.
804 * gnulib/import/malloca.valgrind: Update.
805 * gnulib/import/math.in.h: Update.
806 * gnulib/import/mbrtowc.c: Update.
807 * gnulib/import/mbsinit.c: Update.
808 * gnulib/import/mbsrtowcs-impl.h: Update.
809 * gnulib/import/mbsrtowcs-state.c: Update.
810 * gnulib/import/mbsrtowcs.c: Update.
811 * gnulib/import/memchr.c: Update.
812 * gnulib/import/memmem.c: Update.
813 * gnulib/import/mempcpy.c: Update.
814 * gnulib/import/memrchr.c: Update.
815 * gnulib/import/mkdir.c: Update.
816 * gnulib/import/mkstemp.c: Update.
817 * gnulib/import/msvc-inval.c: Update.
818 * gnulib/import/msvc-inval.h: Update.
819 * gnulib/import/msvc-nothrow.c: Update.
820 * gnulib/import/msvc-nothrow.h: Update.
821 * gnulib/import/open.c: Update.
822 * gnulib/import/openat-die.c: Update.
823 * gnulib/import/openat-priv.h: Update.
824 * gnulib/import/openat-proc.c: Update.
825 * gnulib/import/openat.c: Update.
826 * gnulib/import/openat.h: Update.
827 * gnulib/import/opendir.c: Update.
828 * gnulib/import/pathmax.h: Update.
829 * gnulib/import/pipe-safer.c: Update.
830 * gnulib/import/rawmemchr.c: Update.
831 * gnulib/import/readdir.c: Update.
832 * gnulib/import/readlink.c: Update.
833 * gnulib/import/realloc.c: Update.
834 * gnulib/import/ref-add.sin: Update.
835 * gnulib/import/ref-del.sin: Update.
836 * gnulib/import/rename.c: Update.
837 * gnulib/import/rewinddir.c: Update.
838 * gnulib/import/rmdir.c: Update.
839 * gnulib/import/same-inode.h: Update.
840 * gnulib/import/save-cwd.c: Update.
841 * gnulib/import/save-cwd.h: Update.
842 * gnulib/import/scratch_buffer.h: Update.
843 * gnulib/import/secure_getenv.c: Update.
844 * gnulib/import/setenv.c: Update.
845 * gnulib/import/signal.in.h: Update.
846 * gnulib/import/stat-time.c: Update.
847 * gnulib/import/stat-time.h: Update.
848 * gnulib/import/stat-w32.c: Update.
849 * gnulib/import/stat-w32.h: Update.
850 * gnulib/import/stat.c: Update.
851 * gnulib/import/stdbool.in.h: Update.
852 * gnulib/import/stddef.in.h: Update.
853 * gnulib/import/stdint.in.h: Update.
854 * gnulib/import/stdio.in.h: Update.
855 * gnulib/import/stdlib.in.h: Update.
856 * gnulib/import/str-two-way.h: Update.
857 * gnulib/import/strchrnul.c: Update.
858 * gnulib/import/strdup.c: Update.
859 * gnulib/import/streq.h: Update.
860 * gnulib/import/strerror-override.c: Update.
861 * gnulib/import/strerror-override.h: Update.
862 * gnulib/import/strerror.c: Update.
863 * gnulib/import/string.in.h: Update.
864 * gnulib/import/stripslash.c: Update.
865 * gnulib/import/strnlen1.c: Update.
866 * gnulib/import/strnlen1.h: Update.
867 * gnulib/import/strstr.c: Update.
868 * gnulib/import/strtok_r.c: Update.
869 * gnulib/import/sys_stat.in.h: Update.
870 * gnulib/import/sys_time.in.h: Update.
871 * gnulib/import/sys_types.in.h: Update.
872 * gnulib/import/tempname.c: Update.
873 * gnulib/import/tempname.h: Update.
874 * gnulib/import/time.in.h: Update.
875 * gnulib/import/unistd--.h: Update.
876 * gnulib/import/unistd-safer.h: Update.
877 * gnulib/import/unistd.in.h: Update.
878 * gnulib/import/unsetenv.c: Update.
879 * gnulib/import/verify.h: Update.
880 * gnulib/import/extra/snippet/warn-on-use.h: Update.
881 * gnulib/import/wchar.in.h: Update.
882 * gnulib/import/wctype.in.h: Update.
883 * gnulib/import/xalloc-oversized.h: Update.
884 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
885 "53e2c179f26a890fa6685af4b6c1397ee370433b".
887 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
889 * record-btrace.c (get_thread_current_frame): Remove
892 2018-09-10 Jerome Guitton <guitton@adacore.com>
894 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
895 with check_tag to 1 if and only if the type is tagged and the
896 component being searched cannot been found in the current
897 view. Otherwise, always call ada_to_fixed_type with
900 2018-09-10 Xavier Roirand <roirand@adacore.com>
902 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
904 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
905 * ada-varobj.c (ada_varobj_get_number_of_children,
906 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
908 2018-09-10 Xavier Roirand <roirand@adacore.com>
910 * ada-valprint.c (ada_value_print): Use type instead of
913 2018-09-10 Xavier Roirand <roirand@adacore.com>
915 * ada-lang.c (ada_value_subscript): Handle case when parameter is
916 an array of access to unconstrained array.
918 2018-09-10 Xavier Roirand <roirand@adacore.com>
920 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
921 (ada_check_typedef): Use it.
923 2018-09-10 Xavier Roirand <roirand@adacore.com>
925 * ada-varobj.c (ada_varobj_describe_struct_child)
926 (ada_varobj_describe_child): Handle union case like struct one.
928 2018-09-10 Tom Tromey <tom@tromey.com>
931 * python/python.c (_initialize_python): Make example in "python"
932 help work in Python 3.
934 2018-09-10 Eli Zaretskii <eliz@gnu.org>
936 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
937 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
938 $(EXEEXT) to the script, as it is not a program.
940 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
942 * python/py-prettyprint.c (pretty_print_one_value): Return
944 (print_string_repr): Adjust.
945 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
946 * python/python-internal.h (apply_varobj_pretty_printer): Return
948 * varobj.c (varobj_value_get_print_value): Adjust.
950 2018-09-08 Tom Tromey <tom@tromey.com>
953 * python/py-prettyprint.c (pretty_print_one_value): Check for
956 2018-09-08 Joel Brobecker <brobecker@adacore.com>
958 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
959 replace_operator_with_call.
961 2018-09-08 Joel Brobecker <brobecker@adacore.com>
963 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
965 2018-09-08 Joel Brobecker <brobecker@adacore.com>
967 * ada-typeprint.c (print_range): Print the bounds using TYPE
968 rather than its TYPE_TARGET_TYPE.
970 2018-09-08 Joel Brobecker <brobecker@adacore.com>
972 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
973 call to ada_to_fixed_value_create.
975 2018-09-08 Jerome Guitton <guitton@adacore.com>
977 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
979 2018-09-08 Joel Brobecker <brobecker@adacore.com>
981 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
984 2018-09-08 Joel Brobecker <brobecker@adacore.com>
986 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
987 Move update of loop variable "fi".
989 2018-09-08 Joel Brobecker <brobecker@adacore.com>
991 * ada-lang.c (value_assign_to_component): In the case of
992 big-endian targets, extract the bits of the given VAL
993 using an src_offset of zero if container is not a scalar.
995 2018-09-06 Simon Ser <contact@emersion.fr>
998 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
999 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1000 * fbsd-tdep.c (fbsd_make_note_desc): New.
1001 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1002 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1003 * target.h (enum target_object) Add FreeBSD-specific
1004 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1006 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1008 * compile/compile-c.h (generate_c_for_variable_locations):
1009 Change reference to pointer.
1010 * compile/compile-c-support.c (compile_program) <compute>:
1012 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1013 (generate_c_for_for_one_variable): Likewise
1014 (generate_c_for_variable_locations): Likewise
1015 * compile/compile-c-types.c (compile_c_instance::convert_type):
1017 * compile/compile-cplus-symbols.c (convert_one_symbol):
1018 std::move the scope passed to enter_scope.
1019 * compile/compile-cplus-types.c
1020 (compile_cplus_instance::enter_scope): Make parameter
1022 (compile_cplus_instance::new_scope): Change reference to
1024 (compile_cplus_instance::convert_type): Likewise
1025 (compile_cplus_convert_typedef): std::move the scope passed to
1027 (compile_cplus_convert_struct_or_union): Likewise.
1028 (compile_cplus_convert_enum): Likewise.
1029 (compile_cplus_convert_namespace): Likewise.
1030 * compile/compile-cplus.h (compile_cplus_instance)
1031 <enter_scope>: Make parameter rvalue-reference.
1032 * compile/compile-internal.h (compile_instance)
1033 <get_cached_type>: Likewise
1034 * compile/compile-loc2c.c (push): Likewise
1038 (print_label): Likewise
1039 (pushf_register_address): Likewise
1040 (pushf_register): Likewise
1041 (do_compile_dwarf_expr_to_c): Likewise
1042 (compile_dwarf_expr_to_c): Likewise
1043 (compile_dwarf_bounds_to_c): Likewise
1044 * compile/compile.c (compile_instance::get_cached_type):
1046 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1047 (compile_dwarf_bounds_to_c): Likewise
1048 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1049 (dwarf2_compile_property_to_c): Likewise
1050 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1051 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1054 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1056 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1057 * tui/tui-data.c (init_content_element): Don't initialize it.
1059 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1061 * tui/tui-data.h (struct tui_win_info)
1062 <detail::opaque>: Remove.
1063 * tui/tui-data.c (init_win_info): Remove assignment.
1065 2018-09-05 Tom Tromey <tom@tromey.com>
1067 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1068 -Wformat-nonliteral.
1069 * target-float.c (host_float_ops<T>::to_string)
1070 (host_float_ops<T>::from_string): Use
1071 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1072 * configure: Rebuild.
1074 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1076 * printcmd.c (printf_c_string): Use
1077 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1078 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1080 2018-09-05 Tom Tromey <tom@tromey.com>
1082 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1084 2018-09-05 Tom de Vries <tdevries@suse.de>
1086 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1087 with resolve_abstract_p == true.
1088 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1089 defaulting to false. Propagate resolve_abstract_p to
1090 dwarf2_fetch_die_loc_sect_off.
1091 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1092 parameter, defaulting to false.
1093 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1094 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1096 * dwarf2read.h (struct die_info): Forward-declare.
1097 (die_info_ptr): New typedef.
1098 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1100 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1104 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1105 Pedro Alves <palves@redhat.com>
1107 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1108 "aclocal-m4-deps.mk". Include file here.
1109 $(srcdir)/aclocal.m4: Add "configure.ac".
1110 * gnulib/aclocal-m4-deps.mk: New file.
1111 * gnulib/update-gnulib.sh: Automatically update
1112 "aclocal-m4-deps.mk".
1114 2018-09-04 Tom Tromey <tom@tromey.com>
1116 * configure: Rebuild.
1117 * configure.ac: Remove multi-ice code.
1119 2018-09-04 Tom Tromey <tom@tromey.com>
1121 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1122 (ada-exp.o): Update.
1124 2018-09-04 Tom Tromey <tom@tromey.com>
1126 * Makefile.in (printcmd.o, target-float.o): Remove.
1127 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1129 2018-09-04 Tom Tromey <tom@tromey.com>
1131 * gnulib/Makefile.in: Remove obsolete comment.
1132 * Makefile.in: Remove obsolete comment.
1134 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1136 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1139 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1141 * riscv-tdep.c: Add 'prologue-value.h' include.
1142 (struct riscv_unwind_cache): New struct.
1143 (riscv_debug_unwinder): New global.
1144 (riscv_scan_prologue): Update arguments, capture register details
1146 (riscv_skip_prologue): Reformat arguments line, move end of
1147 prologue calculation into riscv_scan_prologue.
1148 (riscv_frame_cache): Update return type, create
1149 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1151 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1152 (riscv_frame_prev_register): Use the trad_frame within the
1154 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1157 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1159 * trad-frame.h (trad_frame_set_realreg): Declare.
1160 (trad_frame_set_addr): Declare.
1161 * trad-frame.c (trad_frame_set_realreg): Define new function.
1162 (trad_frame_set_addr): Define new function.
1163 (trad_frame_set_reg_realreg): Use new function.
1164 (trad_frame_set_reg_addr): Use new function.
1166 2018-09-01 Keith Seitz <keiths@redhat.com>
1168 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1169 pulongest instead of "%lld".
1170 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1173 2018-08-31 Tom Tromey <tom@tromey.com>
1175 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1178 2018-08-31 Pedro Alves <palves@redhat.com>
1180 * gdbarch.h: Regenerate.
1182 2018-08-31 Pedro Alves <palves@redhat.com>
1184 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1185 * target.h (Hardware watchpoint interfaces): Describe
1186 continuable/steppable/non-steppable watchpoints.
1187 * gdbarch.h, gdbarch.c: Regenerate.
1189 2018-08-31 Pedro Alves <palves@redhat.com>
1191 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1194 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1195 * target.h (target_ops::have_continuable_watchpoint): Delete.
1196 (target_have_continuable_watchpoint): Delete.
1197 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1198 * target-delegates.c: Regenerate.
1200 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1202 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1203 the files present in "gnulib/import/m4/".
1205 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1207 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1208 c.sw, c.swsp, and c.sdsp.
1210 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1212 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1213 (riscv_read_misa_reg): Don't cache value read into inferior data.
1214 (riscv_new_inferior_data): Delete.
1215 (riscv_inferior_data_cleanup): Delete.
1216 (riscv_inferior_data): Delete.
1217 (riscv_invalidate_inferior_data): Delete.
1218 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1220 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1222 * compile/compile-cplus-types.c
1223 (compile_cplus_instance::leave_scope): Take the address of scope
1225 (compile_cplus_instance::convert_qualified_base): Compare quals
1228 2018-08-30 Keith Seitz <keiths@redhat.com>
1230 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1231 Use "%s" and host_address_to_string instead of "%p" in printf.
1233 2018-08-29 Keith Seitz <keiths@redhat.com>
1235 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1236 and compile-cplus-types.c.
1237 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1238 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1239 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1241 * compile/compile-c-support.c: Include compile-cplus.h.
1242 (load_libcompile): Templatize.
1243 (get_compile_context): "New" function.
1244 (c_get_compile_context): Use get_compile_context.
1245 (cplus_get_compile_context): New function.
1246 (cplus_push_user_expression, cplus_pop_user_expression)
1247 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1248 (cplus_compute_program): Define new structs/functions.
1249 * compile/compile-cplus-symmbols.c: New file.
1250 * compile/compile-cplus-types.c: New file.
1251 * compile/compile-cplus.h: New file.
1252 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1254 * compile/compile-object-load.c (get_out_value_type): Use
1255 strncmp_iw when comparing symbol names.
1256 (compile_object_load): Add mst_bss and mst_data.
1257 * compile/compile.c (_initialize_compile): Remove
1258 -Wno-implicit-function-declaration from `compile_args'.
1259 * compile/gcc-cp-plugin.h: New file.
1260 * NEWS: Mention C++ compile support and new debug options.
1262 2018-08-29 Keith Seitz <keiths@redhat.com>
1264 * linespec.c (collect_info::add_symbol): Make virtual.
1265 (struct symbol_searcher_collect_info): New struct.
1266 (symbol_searcher::find_all_symbols): New method.
1267 * symtab.h (class symbol_searcher): New class.
1269 2018-08-29 Keith Seitz <keiths@redhat.com>
1271 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1272 Change to vector of block_symbol. Update all users.
1273 (struct collect_info) <symbols>: Likewise.
1274 (collect_info::add_symbol): Take block_symbol as argument.
1276 (decode_compound_collector) <m_symbols>: Change type to vector
1277 of block_symbol. Update all users.
1278 (decode_compound_collector::operator ()): Change parameter type
1280 (find_method, find_function_symbols, find_linespec_symbols)
1281 (find_label_symbols_in_block, find_label_symbols): Change symbol
1282 vectors to block_symbol vectors.
1283 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1286 2018-08-29 Keith Seitz <keiths@redhat.com>
1288 * linespec.c (symbolp): Remove typedef and VEC definitions.
1289 (bound_minimal_symbol_d): Likewise.
1291 2018-08-29 Keith Seitz <keiths@redhat.com>
1293 * linespec.c (decode_compound_collector::decode_compound_collector):
1294 Remove initialization for `m_symtabs'.
1295 (decode_compound_collector::release_symbols): Change return type
1296 to std::vector. Update all callers.
1297 (class decode_compound_collector) <m_symbols>: Change type to
1299 (lookup_prefix_sym): Change return type to std::vector. Update all
1301 (compare_symbols): Remove.
1302 (std_compare_symbols): Rename to `compare_symbols'.
1303 (find_method): Change `sym_classes' parameter to std::vector.
1304 Update all callers. Use std::sort to sort sym_classes.
1305 (find_linespec_symbols): Remove cleanup.
1307 2018-08-29 Keith Seitz <keiths@redhat.com>
1309 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1310 std::vector. Update all users.
1311 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1312 (struct collect_info) <minimal_symbols>: Likewise.
1313 (compare_msymbols): Return bool. Change parameters to const
1314 bound_minimal_symbol references.
1315 (find_method, find_function_symbols, find_linespec_symbols): Change
1316 `minsyms' parameter to std::vector. Update all callers.
1318 2018-08-29 Keith Seitz <keiths@redhat.com>
1320 * linespec.c (struct linespec) <label_symbols>: Change type to
1321 std::vector. Update all users.
1322 (find_label_symbols_in_block): Change `result' parameter to
1323 std::vector. Update all callers.
1324 (find_label_symbols): Return std::vector. Update all callers.
1326 2018-08-29 Keith Seitz <keiths@redhat.com>
1328 * linespec.c (struct linespec) <function_symbols>: Change type to
1329 std::vector. Update all users.
1330 (struct collect_info) <function_symbols>: Likewise.
1331 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1332 (std_compare_symbols): New function.
1333 (find_method, find_function_symbols, find_linespec_symbols)
1334 (find_label_symbols_in_block): Change `symbols' parameter to
1335 std::vector. Update all callers.
1336 (find_label_symbols): Likewise for `function_symbols' and
1339 2018-08-29 Keith Seitz <keiths@redhat.com>
1341 * linespec.c (symtab_vector_up): Define.
1342 (struct linespec) <file_symtabs>: Change type to std::vector *.
1344 (struct collect_info) <file_symtabs>: Likewise.
1345 (collect_symtabs_from_filename): Return symtab_vector_up.
1347 (decode_objc): Remove cleanup.
1348 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1349 (symtab_collector::release_symtabs): Return symtab_vector_up.
1351 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1353 (collect_symtabs_from_filename, symtabs_from_filename): Return
1354 symtab_vector_up. Update all callers.
1356 2018-08-29 Tom Tromey <tom@tromey.com>
1358 * csky-tdep.c (csky_analyze_prologue): Use
1359 core_addr_to_string_nz.
1361 2018-08-29 Tom Tromey <tom@tromey.com>
1363 * windows-nat.c (struct xlate_exception) <them>: Change type to
1365 (xlate): Fix formatting. Remove last entry.
1366 (struct xlate_exception, xlate): Comment out.
1367 (windows_nat_target::resume): Use ranged for.
1369 2018-08-29 Jim Wilson <jimw@sifive.com>
1371 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1372 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1374 (riscv_linux_nat_target::store_registers): Likewise.
1376 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1380 * gnulib/aclocal.m4: Regenerate.
1381 * gnulib/config.in: Regenerate.
1382 * gnulib/configure: Regenerate.
1383 * gnulib/import/Makefile.am: Update.
1384 * gnulib/import/Makefile.in: Update.
1385 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1386 * gnulib/import/_Noreturn.h: ... this.
1387 * gnulib/import/alloca.in.h: Update.
1388 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1389 * gnulib/import/arg-nonnull.h: ... this.
1390 * gnulib/import/assure.h: Update.
1391 * gnulib/import/at-func.c: Update.
1392 * gnulib/import/basename-lgpl.c: Update.
1393 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1394 * gnulib/import/c++defs.h: ... this.
1395 * gnulib/import/canonicalize-lgpl.c: Update.
1396 * gnulib/import/cdefs.h: Update.
1397 * gnulib/import/chdir-long.c: Update.
1398 * gnulib/import/chdir-long.h: Update.
1399 * gnulib/import/cloexec.c: Update.
1400 * gnulib/import/cloexec.h: Update.
1401 * gnulib/import/close.c: Update.
1402 * gnulib/import/closedir.c: Update.
1403 * gnulib/import/config.charset: Update.
1404 * gnulib/import/dirent-private.h: Update.
1405 * gnulib/import/dirent.in.h: Update.
1406 * gnulib/import/dirfd.c: Update.
1407 * gnulib/import/dirname-lgpl.c: Update.
1408 * gnulib/import/dirname.h: Update.
1409 * gnulib/import/dosname.h: Update.
1410 * gnulib/import/dup-safer-flag.c: Update.
1411 * gnulib/import/dup-safer.c: Update.
1412 * gnulib/import/dup.c: Update.
1413 * gnulib/import/dup2.c: Update.
1414 * gnulib/import/errno.in.h: Update.
1415 * gnulib/import/error.c: Update.
1416 * gnulib/import/error.h: Update.
1417 * gnulib/import/exitfail.c: Update.
1418 * gnulib/import/exitfail.h: Update.
1419 * gnulib/import/extra/update-copyright: Update.
1420 * gnulib/import/fchdir.c: Update.
1421 * gnulib/import/fcntl.c: Update.
1422 * gnulib/import/fcntl.in.h: Update.
1423 * gnulib/import/fd-hook.c: Update.
1424 * gnulib/import/fd-hook.h: Update.
1425 * gnulib/import/fd-safer-flag.c: Update.
1426 * gnulib/import/fd-safer.c: Update.
1427 * gnulib/import/fdopendir.c: Update.
1428 * gnulib/import/filename.h: Update.
1429 * gnulib/import/filenamecat-lgpl.c: Update.
1430 * gnulib/import/filenamecat.h: Update.
1431 * gnulib/import/flexmember.h: Update.
1432 * gnulib/import/float+.h: Update.
1433 * gnulib/import/float.c: Update.
1434 * gnulib/import/float.in.h: Update.
1435 * gnulib/import/fnmatch.c: Update.
1436 * gnulib/import/fnmatch.in.h: Update.
1437 * gnulib/import/fnmatch_loop.c: Update.
1438 * gnulib/import/fpucw.h: Update.
1439 * gnulib/import/frexp.c: Update.
1440 * gnulib/import/frexpl.c: Update.
1441 * gnulib/import/fstat.c: Update.
1442 * gnulib/import/fstatat.c: Update.
1443 * gnulib/import/getcwd-lgpl.c: Update.
1444 * gnulib/import/getcwd.c: Update.
1445 * gnulib/import/getdtablesize.c: Update.
1446 * gnulib/import/getlogin_r.c: Update.
1447 * gnulib/import/getprogname.c: Update.
1448 * gnulib/import/getprogname.h: Update.
1449 * gnulib/import/gettext.h: Update.
1450 * gnulib/import/gettimeofday.c: Update.
1451 * gnulib/import/glob-libc.h: Update.
1452 * gnulib/import/glob.c: Update.
1453 * gnulib/import/glob.in.h: Update.
1454 * gnulib/import/glob_internal.h: Update.
1455 * gnulib/import/glob_pattern_p.c: Update.
1456 * gnulib/import/globfree.c: Update.
1457 * gnulib/import/hard-locale.c: Update.
1458 * gnulib/import/hard-locale.h: Update.
1459 * gnulib/import/intprops.h: Update.
1460 * gnulib/import/inttypes.in.h: Update.
1461 * gnulib/import/isnan.c: Update.
1462 * gnulib/import/isnand-nolibm.h: Update.
1463 * gnulib/import/isnand.c: Update.
1464 * gnulib/import/isnanl-nolibm.h: Update.
1465 * gnulib/import/isnanl.c: Update.
1466 * gnulib/import/itold.c: Update.
1467 * gnulib/import/libc-config.h: Update.
1468 * gnulib/import/limits.in.h: Update.
1469 * gnulib/import/localcharset.c: Update.
1470 * gnulib/import/localcharset.h: Update.
1471 * gnulib/import/localtime-buffer.c: Update.
1472 * gnulib/import/localtime-buffer.h: Update.
1473 * gnulib/import/lstat.c: Update.
1474 * gnulib/import/m4/00gnulib.m4: Update.
1475 * gnulib/import/m4/__inline.m4: Update.
1476 * gnulib/import/m4/absolute-header.m4: Update.
1477 * gnulib/import/m4/alloca.m4: Update.
1478 * gnulib/import/m4/builtin-expect.m4: Update.
1479 * gnulib/import/m4/canonicalize.m4: Update.
1480 * gnulib/import/m4/chdir-long.m4: Update.
1481 * gnulib/import/m4/close.m4: Update.
1482 * gnulib/import/m4/closedir.m4: Update.
1483 * gnulib/import/m4/configmake.m4: Update.
1484 * gnulib/import/m4/d-ino.m4: Update.
1485 * gnulib/import/m4/d-type.m4: Update.
1486 * gnulib/import/m4/dirent_h.m4: Update.
1487 * gnulib/import/m4/dirfd.m4: Update.
1488 * gnulib/import/m4/dirname.m4: Update.
1489 * gnulib/import/m4/double-slash-root.m4: Update.
1490 * gnulib/import/m4/dup.m4: Update.
1491 * gnulib/import/m4/dup2.m4: Update.
1492 * gnulib/import/m4/eealloc.m4: Update.
1493 * gnulib/import/m4/environ.m4: Update.
1494 * gnulib/import/m4/errno_h.m4: Update.
1495 * gnulib/import/m4/error.m4: Update.
1496 * gnulib/import/m4/exponentd.m4: Update.
1497 * gnulib/import/m4/exponentl.m4: Update.
1498 * gnulib/import/m4/extensions.m4: Update.
1499 * gnulib/import/m4/extern-inline.m4: Update.
1500 * gnulib/import/m4/fchdir.m4: Update.
1501 * gnulib/import/m4/fcntl-o.m4: Update.
1502 * gnulib/import/m4/fcntl.m4: Update.
1503 * gnulib/import/m4/fcntl_h.m4: Update.
1504 * gnulib/import/m4/fdopendir.m4: Update.
1505 * gnulib/import/m4/filenamecat.m4: Update.
1506 * gnulib/import/m4/flexmember.m4: Update.
1507 * gnulib/import/m4/float_h.m4: Update.
1508 * gnulib/import/m4/fnmatch.m4: Update.
1509 * gnulib/import/m4/fnmatch_h.m4: Update.
1510 * gnulib/import/m4/fpieee.m4: Update.
1511 * gnulib/import/m4/frexp.m4: Update.
1512 * gnulib/import/m4/frexpl.m4: Update.
1513 * gnulib/import/m4/fstat.m4: Update.
1514 * gnulib/import/m4/fstatat.m4: Update.
1515 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1516 * gnulib/import/m4/getcwd-path-max.m4: Update.
1517 * gnulib/import/m4/getcwd.m4: Update.
1518 * gnulib/import/m4/getdtablesize.m4: Update.
1519 * gnulib/import/m4/getlogin.m4: Update.
1520 * gnulib/import/m4/getlogin_r.m4: Update.
1521 * gnulib/import/m4/getpagesize.m4: Update.
1522 * gnulib/import/m4/getprogname.m4: Update.
1523 * gnulib/import/m4/gettimeofday.m4: Update.
1524 * gnulib/import/m4/glibc21.m4: Update.
1525 * gnulib/import/m4/glob.m4: Update.
1526 * gnulib/import/m4/glob_h.m4: Update.
1527 * gnulib/import/m4/gnulib-cache.m4: Update.
1528 * gnulib/import/m4/gnulib-common.m4: Update.
1529 * gnulib/import/m4/gnulib-comp.m4: Update.
1530 * gnulib/import/m4/gnulib-tool.m4: Update.
1531 * gnulib/import/m4/hard-locale.m4: Update.
1532 * gnulib/import/m4/include_next.m4: Update.
1533 * gnulib/import/m4/inttypes-pri.m4: Update.
1534 * gnulib/import/m4/inttypes.m4: Update.
1535 * gnulib/import/m4/isnand.m4: Update.
1536 * gnulib/import/m4/isnanl.m4: Update.
1537 * gnulib/import/m4/largefile.m4: Update.
1538 * gnulib/import/m4/limits-h.m4: Update.
1539 * gnulib/import/m4/localcharset.m4: Update.
1540 * gnulib/import/m4/locale-fr.m4: Update.
1541 * gnulib/import/m4/locale-ja.m4: Update.
1542 * gnulib/import/m4/locale-zh.m4: Update.
1543 * gnulib/import/m4/localtime-buffer.m4: Update.
1544 * gnulib/import/m4/longlong.m4: Update.
1545 * gnulib/import/m4/lstat.m4: Update.
1546 * gnulib/import/m4/malloc.m4: Update.
1547 * gnulib/import/m4/malloca.m4: Update.
1548 * gnulib/import/m4/math_h.m4: Update.
1549 * gnulib/import/m4/mbrtowc.m4: Update.
1550 * gnulib/import/m4/mbsinit.m4: Update.
1551 * gnulib/import/m4/mbsrtowcs.m4: Update.
1552 * gnulib/import/m4/mbstate_t.m4: Update.
1553 * gnulib/import/m4/memchr.m4: Update.
1554 * gnulib/import/m4/memmem.m4: Update.
1555 * gnulib/import/m4/mempcpy.m4: Update.
1556 * gnulib/import/m4/memrchr.m4: Update.
1557 * gnulib/import/m4/mkdir.m4: Update.
1558 * gnulib/import/m4/mkstemp.m4: Update.
1559 * gnulib/import/m4/mmap-anon.m4: Update.
1560 * gnulib/import/m4/mode_t.m4: Update.
1561 * gnulib/import/m4/msvc-inval.m4: Update.
1562 * gnulib/import/m4/msvc-nothrow.m4: Update.
1563 * gnulib/import/m4/multiarch.m4: Update.
1564 * gnulib/import/m4/nocrash.m4: Update.
1565 * gnulib/import/m4/off_t.m4: Update.
1566 * gnulib/import/m4/onceonly.m4: Update.
1567 * gnulib/import/m4/open-cloexec.m4: Update.
1568 * gnulib/import/m4/open.m4: Update.
1569 * gnulib/import/m4/openat.m4: Update.
1570 * gnulib/import/m4/opendir.m4: Update.
1571 * gnulib/import/m4/pathmax.m4: Update.
1572 * gnulib/import/m4/rawmemchr.m4: Update.
1573 * gnulib/import/m4/readdir.m4: Update.
1574 * gnulib/import/m4/readlink.m4: Update.
1575 * gnulib/import/m4/realloc.m4: Update.
1576 * gnulib/import/m4/rename.m4: Update.
1577 * gnulib/import/m4/rewinddir.m4: Update.
1578 * gnulib/import/m4/rmdir.m4: Update.
1579 * gnulib/import/m4/save-cwd.m4: Update.
1580 * gnulib/import/m4/secure_getenv.m4: Update.
1581 * gnulib/import/m4/setenv.m4: Update.
1582 * gnulib/import/m4/signal_h.m4: Update.
1583 * gnulib/import/m4/ssize_t.m4: Update.
1584 * gnulib/import/m4/stat-time.m4: Update.
1585 * gnulib/import/m4/stat.m4: Update.
1586 * gnulib/import/m4/std-gnu11.m4: Update.
1587 * gnulib/import/m4/stdbool.m4: Update.
1588 * gnulib/import/m4/stddef_h.m4: Update.
1589 * gnulib/import/m4/stdint.m4: Update.
1590 * gnulib/import/m4/stdio_h.m4: Update.
1591 * gnulib/import/m4/stdlib_h.m4: Update.
1592 * gnulib/import/m4/strchrnul.m4: Update.
1593 * gnulib/import/m4/strdup.m4: Update.
1594 * gnulib/import/m4/strerror.m4: Update.
1595 * gnulib/import/m4/string_h.m4: Update.
1596 * gnulib/import/m4/strstr.m4: Update.
1597 * gnulib/import/m4/strtok_r.m4: Update.
1598 * gnulib/import/m4/sys_socket_h.m4: Update.
1599 * gnulib/import/m4/sys_stat_h.m4: Update.
1600 * gnulib/import/m4/sys_time_h.m4: Update.
1601 * gnulib/import/m4/sys_types_h.m4: Update.
1602 * gnulib/import/m4/tempname.m4: Update.
1603 * gnulib/import/m4/time_h.m4: Update.
1604 * gnulib/import/m4/unistd-safer.m4: Update.
1605 * gnulib/import/m4/unistd_h.m4: Update.
1606 * gnulib/import/m4/warn-on-use.m4: Update.
1607 * gnulib/import/m4/wchar_h.m4: Update.
1608 * gnulib/import/m4/wchar_t.m4: Update.
1609 * gnulib/import/m4/wctype_h.m4: Update.
1610 * gnulib/import/m4/wint_t.m4: Update.
1611 * gnulib/import/malloc.c: Update.
1612 * gnulib/import/malloc/scratch_buffer.h: Update.
1613 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1614 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1615 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1616 * gnulib/import/malloca.c: Update.
1617 * gnulib/import/malloca.h: Update.
1618 * gnulib/import/malloca.valgrind: Update.
1619 * gnulib/import/math.in.h: Update.
1620 * gnulib/import/mbrtowc.c: Update.
1621 * gnulib/import/mbsinit.c: Update.
1622 * gnulib/import/mbsrtowcs-impl.h: Update.
1623 * gnulib/import/mbsrtowcs-state.c: Update.
1624 * gnulib/import/mbsrtowcs.c: Update.
1625 * gnulib/import/memchr.c: Update.
1626 * gnulib/import/memmem.c: Update.
1627 * gnulib/import/mempcpy.c: Update.
1628 * gnulib/import/memrchr.c: Update.
1629 * gnulib/import/mkdir.c: Update.
1630 * gnulib/import/mkstemp.c: Update.
1631 * gnulib/import/msvc-inval.c: Update.
1632 * gnulib/import/msvc-inval.h: Update.
1633 * gnulib/import/msvc-nothrow.c: Update.
1634 * gnulib/import/msvc-nothrow.h: Update.
1635 * gnulib/import/open.c: Update.
1636 * gnulib/import/openat-die.c: Update.
1637 * gnulib/import/openat-priv.h: Update.
1638 * gnulib/import/openat-proc.c: Update.
1639 * gnulib/import/openat.c: Update.
1640 * gnulib/import/openat.h: Update.
1641 * gnulib/import/opendir.c: Update.
1642 * gnulib/import/pathmax.h: Update.
1643 * gnulib/import/pipe-safer.c: Update.
1644 * gnulib/import/rawmemchr.c: Update.
1645 * gnulib/import/readdir.c: Update.
1646 * gnulib/import/readlink.c: Update.
1647 * gnulib/import/realloc.c: Update.
1648 * gnulib/import/ref-add.sin: Update.
1649 * gnulib/import/ref-del.sin: Update.
1650 * gnulib/import/rename.c: Update.
1651 * gnulib/import/rewinddir.c: Update.
1652 * gnulib/import/rmdir.c: Update.
1653 * gnulib/import/same-inode.h: Update.
1654 * gnulib/import/save-cwd.c: Update.
1655 * gnulib/import/save-cwd.h: Update.
1656 * gnulib/import/scratch_buffer.h: Update.
1657 * gnulib/import/secure_getenv.c: Update.
1658 * gnulib/import/setenv.c: Update.
1659 * gnulib/import/signal.in.h: Update.
1660 * gnulib/import/stat-time.c: Update.
1661 * gnulib/import/stat-time.h: Update.
1662 * gnulib/import/stat-w32.c: Update.
1663 * gnulib/import/stat-w32.h: Update.
1664 * gnulib/import/stat.c: Update.
1665 * gnulib/import/stdbool.in.h: Update.
1666 * gnulib/import/stddef.in.h: Update.
1667 * gnulib/import/stdint.in.h: Update.
1668 * gnulib/import/stdio.in.h: Update.
1669 * gnulib/import/stdlib.in.h: Update.
1670 * gnulib/import/str-two-way.h: Update.
1671 * gnulib/import/strchrnul.c: Update.
1672 * gnulib/import/strdup.c: Update.
1673 * gnulib/import/streq.h: Update.
1674 * gnulib/import/strerror-override.c: Update.
1675 * gnulib/import/strerror-override.h: Update.
1676 * gnulib/import/strerror.c: Update.
1677 * gnulib/import/string.in.h: Update.
1678 * gnulib/import/stripslash.c: Update.
1679 * gnulib/import/strnlen1.c: Update.
1680 * gnulib/import/strnlen1.h: Update.
1681 * gnulib/import/strstr.c: Update.
1682 * gnulib/import/strtok_r.c: Update.
1683 * gnulib/import/sys_stat.in.h: Update.
1684 * gnulib/import/sys_time.in.h: Update.
1685 * gnulib/import/sys_types.in.h: Update.
1686 * gnulib/import/tempname.c: Update.
1687 * gnulib/import/tempname.h: Update.
1688 * gnulib/import/time.in.h: Update.
1689 * gnulib/import/unistd--.h: Update.
1690 * gnulib/import/unistd-safer.h: Update.
1691 * gnulib/import/unistd.in.h: Update.
1692 * gnulib/import/unsetenv.c: Update.
1693 * gnulib/import/verify.h: Update.
1694 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1695 * gnulib/import/wchar.in.h: Update.
1696 * gnulib/import/wctype.in.h: Update.
1697 * gnulib/import/xalloc-oversized.h: Update.
1698 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1699 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1701 2018-08-16 Gary Benson <gbenson@redhat.com>
1704 * gdb/main.c (captured_main_1): Exit with nonzero status
1705 in batch mode if the last command to be executed failed.
1706 * NEWS: Mention the above.
1708 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1710 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1711 end of warning message.
1713 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1716 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1717 (aarch64_extract_return_value): Use
1718 aapcs_is_vfp_call_or_return_candidate.
1719 (aarch64_return_in_memory): Likewise.
1720 (aarch64_store_return_value): Likewise.
1722 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1725 (aapcs_is_vfp_call_or_return_candidate): Make static
1726 (pass_in_v_or_stack): Remove function.
1727 (pass_in_v_vfp_candidate): New function.
1728 (aarch64_push_dummy_call): Check for float register candidates.
1730 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1732 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1733 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1734 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1736 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1739 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1740 (struct ipa_sym_addresses): Rename to...
1741 (struct ipa_sym_addresses_common): ... this.
1742 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1744 2018-08-28 Tom Tromey <tom@tromey.com>
1746 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1747 (token_fifo): Now a std::vector.
1748 (yylex, c_parse): Update.
1749 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1750 (token_fifo): Now a std::vector.
1751 (yylex, d_parse): Update.
1752 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1753 (token_fifo): Now a std::vector.
1754 (yylex, go_parse): Update.
1756 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1758 * parser-defs.h (struct type_stack) <elements>: Change type to
1759 std::vector<union type_stack_elt>.
1760 <depth, size>: Remove.
1761 * parse.c (parse_exp_in_context_1): Adjust.
1762 (type_stack_reserve): Remove.
1763 (check_type_stack_depth): Remove.
1764 (insert_into_type_stack): Adjust to std::vector.
1765 (insert_type): Likewise.
1766 (push_type): Likewise.
1767 (push_type_int): Likewise.
1768 (insert_type_address_space): Likewise.
1769 (pop_type): Likewise.
1770 (pop_type_int): Likewise.
1771 (pop_typelist): Likewise.
1772 (pop_type_stack): Likewise.
1773 (append_type_stack): Likewise.
1774 (push_type_stack): Likewise.
1775 (get_type_stack): Likewise.
1776 (type_stack_cleanup): Likewise.
1777 (push_typelist): Likewise.
1778 (follow_types): Likewise.
1779 (_initialize_parse): Likewise.
1781 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1783 * NEWS: Mention csky target.
1785 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1786 Hafiz Abid Qadeer <abidh@codesourcery.com>
1787 Don Breazeal <donb@codesourcery.com>
1789 * csky-linux-tdep.c: New file.
1790 * csky-tdep.c: Likewise.
1791 * csky-tdep.h: Likewise.
1792 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1794 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1795 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1796 * configure.tgt: Add csky support.
1798 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1800 * python/py-framefilter.c (py_print_frame): Print frame architecture
1801 when printing on an MI output.
1803 2018-08-27 Tom Tromey <tom@tromey.com>
1806 * configure: Rebuild.
1807 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1809 2018-08-27 Tom Tromey <tom@tromey.com>
1811 * aarch64-linux-tdep.c
1812 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1815 2018-08-27 Tom Tromey <tom@tromey.com>
1817 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1819 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1820 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1821 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1822 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1825 2018-08-27 Tom Tromey <tom@tromey.com>
1827 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1828 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1830 2018-08-27 Tom Tromey <tom@tromey.com>
1832 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1833 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1835 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1837 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1839 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1840 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1841 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1843 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1844 (ppc64_linux_sigaction_tramp_frame)
1845 (ppc32_linux_sighandler_tramp_frame)
1846 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1847 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1848 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1849 * mn10300-linux-tdep.c (am33_linux_sigframe)
1850 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1851 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1852 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1853 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1854 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1855 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1856 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1857 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1858 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1859 * microblaze-linux-tdep.c
1860 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1861 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1862 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1863 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1864 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1865 * common/common-types.h (ULONGEST_MAX): New define.
1866 (CORE_ADDR_MAX): Fix formatting.
1867 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1868 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1869 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1870 (arm_linux_rt_sigreturn_tramp_frame)
1871 (arm_eabi_linux_sigreturn_tramp_frame)
1872 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1873 (thumb2_eabi_linux_sigreturn_tramp_frame)
1874 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1875 (arm_linux_restart_syscall_tramp_frame)
1876 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1877 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1878 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1880 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1882 2018-08-27 Tom Tromey <tom@tromey.com>
1884 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1886 * mips-tdep.c (mips_deal_with_atomic_sequence)
1887 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1888 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1889 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1890 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1892 * aarch64-tdep.c (aarch64_software_single_step): Use
1895 2018-08-27 Tom Tromey <tom@tromey.com>
1897 * linespec.c (complete_linespec_component): Add cast to "char".
1898 * completer.c (completion_tracker::build_completion_result): Add
1901 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1903 * solist.h (struct solist, struct target_so_ops): Fix
1906 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1908 * ada-tasks.c (ada_task_info_s): Remove typedef.
1909 (DEF_VEC_O(ada_task_info_s)): Remove.
1910 (struct ada_tasks_inferior_data): Initialize fields.
1911 <task_list>: Make an std::vector.
1912 (get_ada_tasks_inferior_data): Allocate with new.
1913 (ada_get_task_number): Adjust.
1914 (get_task_number_from_id): Likewise.
1915 (valid_task_id): Likewise.
1916 (ada_get_task_info_from_ptid): Likewise.
1917 (iterate_over_live_ada_tasks): Likewise.
1918 (add_ada_task): Likewise.
1919 (read_known_tasks): Likewise.
1920 (ada_build_task_list): Likewise.
1921 (print_ada_task_info): Likewise.
1922 (info_task): Likewise.
1923 (task_command_1): Likewise.
1925 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1927 * ada-lang.c (add_angle_brackets): Return std::string.
1929 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
1931 * python/py-threadevent.c (py_get_event_thread): Initialize
1934 2018-08-24 Pedro Alves <palves@redhat.com>
1936 * python/py-bpevent.c (create_breakpoint_event_object): Use
1937 copy-initialization.
1938 * python/py-continueevent.c (emit_continue_event): Use
1939 copy-initialization.
1940 * python/py-exitedevent.c (create_exited_event_object): Return a
1942 (emit_exited_event): Use copy-initialization.
1943 * python/py-inferior.c (python_new_inferior)
1944 (python_inferior_deleted, add_thread_object): Use
1945 copy-initialization.
1946 * python/py-infevents.c (create_inferior_call_event_object)
1947 (create_register_changed_event_object)
1948 (create_memory_changed_event_object): Return a gdbpy_ref<>.
1949 (emit_inferior_call_event, emit_memory_changed_event)
1950 (emit_register_changed_event): Use copy-initialization.
1951 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1952 Return a gdbpy_ref<>.
1953 (emit_new_objfile_event): Use copy-initialization.
1954 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
1955 (emit_clear_objfiles_event): Use copy-initialization.
1956 * python/py-signalevent.c (create_signal_event_object): Use
1957 copy-initialization.
1958 * python/py-threadevent.c (create_thread_event_object): Use
1959 copy-initialization.
1961 2018-08-24 Pedro Alves <palves@redhat.com>
1962 Simon Marchi <simon.marchi@ericsson.com>
1965 * python/py-continueevent.c: Include "gdbthread.h".
1966 (create_continue_event_object): Add intro comment. Add 'ptid'
1967 parameter. Use it to find thread to pass to
1968 create_thread_event_object.
1969 (emit_continue_event): Pass PTID down to
1970 create_continue_event_object.
1971 * python/py-event.h (py_get_event_thread): Declare.
1972 (create_thread_event_object): Remove default from 'thread'
1974 * python/py-stopevent.c (create_stop_event_object): Use
1975 py_get_event_thread.
1976 * python/py-threadevent.c (get_event_thread): Rename to ...
1977 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
1978 and use it to find the thread.
1979 (create_thread_event_object): Assert that THREAD isn't null.
1980 Don't find the event thread here.
1982 2018-08-23 Kevin Buettner <kevinb@redhat.com>
1984 * block.h (blockrange, blockranges): New struct declarations.
1985 (struct block): Add new field named `ranges'.
1986 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
1987 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
1988 macros for accessing ranges in struct block.
1989 (make_blockranges): New declaration.
1990 block.c (make_blockranges): New function.
1991 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
1993 * symtab.h (find_pc_partial_function): Add new parameter `block'.
1994 * blockframe.c (cache_pc_function_block): New static global.
1995 (clear_pc_function_cache): Clear cache_pc_function_block.
1996 (find_pc_partial_function): Move comment to symtab.h. Add
1997 support for non-contiguous blocks.
1998 * cli/cli-cmds.c (block.h): Include.
1999 (print_disassembly): Handle printing of non-contiguous blocks.
2000 (disassemble_current_function): Likewise.
2001 (disassemble_command): Likewise.
2003 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2005 * blockframe.c (get_pc_function_start): Likewise.
2006 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2007 (gcc_symbol_address): Likewise.
2008 * compile/compile-object-run.c (compile_object_run): Likewise.
2009 * compile/compile.c (get_expr_block_and_pc): Likewise.
2010 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2011 (func_addr_to_tail_call_list): Likewise.
2012 * findvar.c (default_read_var_value): Likewise.
2013 * inline-frame.c (inline_frame_this_id): Likewise.
2014 (skip-inline_frames): Likewise.
2015 * infcmd.c (until_next_command): Likewise.
2016 * linespec.c (convert_linespec_to_sals): Likewise.
2017 * parse.c (parse_exp_in_context_1): Likewise.
2018 * printcmd.c (build_address_symbolic): likewise.
2019 (info_address_command): Likewise.
2020 symtab.c (find_function_start_sal): Likewise.
2021 (skip_prologue_sal): Likewise.
2022 (find_function_alias_target): Likewise.
2023 (find_gnu_ifunc): Likewise.
2024 * stack.c (find_frame_funname): Likewise.
2025 * symtab.c (fixup_symbol_section): Likewise.
2026 (find_function_start_sal): Likewise.
2027 (skip_prologue_sal): Likewsie.
2028 (find_function_alias_target): Likewise.
2029 (find_gnu_ifunc): Likewise.
2030 * tracepoint.c (info_scope_command): Likewise.
2031 * value.c (value_fn_field): Likewise.
2033 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2034 in place of find_pc_partial_function.
2035 * blockframe.c (find_function_entry_range_from_pc): New function.
2036 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2037 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2038 for each range in a block.
2041 2018-08-23 Xavier Roirand <roirand@adacore.com>
2043 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2046 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2048 * solib-svr4.c (read_program_headers_from_bfd): Return
2049 gdb::optional<gdb::byte_vector>.
2050 (svr4_exec_displacement): Adjust.
2052 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2054 * solib-svr4.c (read_program_header): Return
2055 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2056 (find_program_interpreter): Return
2057 gdb::optional<gdb::byte_vector>.
2058 (scan_dyntag_auxv): Adjust.
2059 (enable_break): Adjust.
2060 (svr4_exec_displacement): Adjust.
2062 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2064 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2065 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2067 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2069 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2071 * guile/scm-utils.c (gdbscm_printf): Likewise.
2072 * serial.c (serial_printf): Likewise.
2073 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2075 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2077 * stack.c (print_frame): Print frame architecture when printing on
2079 * NEWS: Mention new "arch" attribute in frame output.
2081 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2083 * arch/aarch64.h (aarch64_regnum): Update comment.
2085 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2087 * NEWS: Add SVE to 8.2 section.
2089 2018-08-21 Pedro Alves <palves@redhat.com>
2091 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2092 out from gdbscm_parse_function_args.
2093 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2094 gdbscm_parse_function_args_1.
2096 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2099 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2102 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2104 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2106 2018-08-19 Michael Spang <spang@google.com>
2109 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2110 for PT_TLS segments.
2112 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2114 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2115 dwarf_variable_value.
2116 * dwarf2-frame.c (class dwarf_expr_executor):
2117 Add override for dwarf_variable_value.
2118 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2119 (class symbol_needs_eval_context): Likewise.
2120 (indirect_synthetic_pointer): Add forward declaration.
2121 (sect_variable_value): New function.
2122 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2123 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2124 for DW_OP_GNU_variable_value.
2126 2018-08-16 Tom Tromey <tom@tromey.com>
2128 * top.c (read_command_file): Update.
2129 (command_line_input): Remove "repeat" argument.
2130 * ada-lang.c (get_selections): Update.
2131 * linespec.c (decode_line_2): Update.
2132 * defs.h (command_line_input): Remove argument.
2133 * cli/cli-script.c (read_next_line): Update.
2134 * python/py-gdb-readline.c: Update.
2136 2018-08-17 Tom Tromey <tom@tromey.com>
2138 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2141 2018-08-15 Tom Tromey <tom@tromey.com>
2143 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2145 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2147 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2148 If used, use find_pc_partial_function to find address range
2150 * mi/mi-main.c (mi_cmd_list_features): Report
2151 "data-disassemble-a-option" feature.
2152 * NEWS: Mention new -data-disassemble option -a.
2154 2018-08-13 Tom Tromey <tom@tromey.com>
2156 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2158 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2160 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2161 (aarch64_linux_collect_sve_regset): Likewise.
2162 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2163 * regcache.h (regcache_map_entry_size): New function.
2165 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2167 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2168 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2169 (SVE_HEADER_VL_LENGTH): Likewise.
2170 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2171 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2172 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2173 (SVE_HEADER_SIZE_OFFSET): Likewise.
2174 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2175 (SVE_HEADER_VL_OFFSET): Likewise.
2176 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2177 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2178 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2179 (SVE_HEADER_SIZE): Likewise.
2180 (aarch64_linux_core_read_vq): Add function.
2181 (aarch64_linux_core_read_description): Check for SVE section.
2183 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2185 * aarch64-fbsd-tdep.c
2186 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2188 * aarch64-linux-tdep.c
2189 (aarch64_linux_iterate_over_regset_sections): Likewise.
2190 * alpha-linux-tdep.c
2191 (alpha_linux_iterate_over_regset_sections):
2193 (alphanbsd_iterate_over_regset_sections): Likewise.
2195 (amd64fbsd_iterate_over_regset_sections): Likewise.
2196 * amd64-linux-tdep.c
2197 (amd64_linux_iterate_over_regset_sections): Likewise.
2199 (armbsd_iterate_over_regset_sections): Likewise.
2201 (arm_fbsd_iterate_over_regset_sections): Likewise.
2203 (arm_linux_iterate_over_regset_sections): Likewise.
2204 * corelow.c (get_core_registers_cb): Likewise.
2205 (core_target::fetch_registers): Likewise.
2206 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2207 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2208 * gdbarch.h (void): Regenerate.
2209 * gdbarch.sh: Add supply_size and collect_size.
2210 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2211 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2212 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2213 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2214 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2215 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2216 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2217 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2218 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2219 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2220 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2221 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2222 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2223 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2224 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2225 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2226 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2227 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2228 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2229 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2230 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2231 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2232 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2233 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2234 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2235 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2236 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2237 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2238 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2239 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2241 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2243 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2246 2018-08-10 Keith Seitz <keiths@redhat.com>
2248 * compile/compile-c-support.c (add_code_header, add_code_footer):
2249 Move into policy class.
2250 (c_push_user_expression, pop_user_expression_nop)
2251 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2252 (compile_program): New host class.
2253 (c_compile_program): New typedef.
2254 (c_compute_porgram): Use c_compile_program.
2256 2018-08-10 Keith Seitz <keiths@redhat.com>
2258 * compile/compile-internal.h (compile_instance::~compile_instance):
2259 Remove calls to htab_delete.
2260 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2261 * compile.c (compile_instance::compile_instance): Initialize
2262 htab unique pointers.
2263 (compile_instance::get_cached_type, compile_instance::insert_type)
2264 (compile_instance::error_symbol_once): Update for unique_ptr.
2266 2018-08-10 Keith Seitz <keiths@redhat.com>
2268 * compile/compile-c-symbols.c (struct symbol_error)
2269 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2270 (compile_instance::insert_symbol_error)
2271 (compile_instance::error_symbol_once): Move to ...
2272 * compile/compile.c: ... here.
2274 2018-08-10 Keith Seitz <keiths@redhat.com>
2276 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2277 instead of `new_compile_instance'.
2278 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2280 If the symbol error map is not initialized, create it.
2281 (generate_c_for_for_one_symbol): Do not check/initialize
2282 the symbol error map.
2283 * compile/compile-c-types.c (compile_c_instance): Make a class.
2285 (compile_instance::compile_instance): Initialize the type cache.
2286 (get_cached_type): New function.
2287 (insert_type): Update description.
2288 (compile_c_instance::m_default_cflags): Define.
2289 (convert_type): Update description. Use get_cached_type.
2290 (delete_instance): Moved to destructor.
2291 (new_compile_instance): Moved to constructor.
2292 * compile/compile-c.h (compile_c_instance): Make class inheriting
2293 from compile_instance.
2294 <base>: Remove field.
2295 <type_map, symbol_err_map>: Move to base class.
2296 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2297 * compile/compile-internal.h (compile_instance): Make class.
2298 <type_map_t, symbol_err_map_t>: Define.
2299 <fe>: Rename to `m_gcc_fe'.
2300 <scope, block, gcc_target_options>: Add `m_' prefix.
2301 <m_type_map, m_symbol_err_map>: New fields, moved from
2304 (convert_type, new_compile_instance): Remove.
2305 * compile/compile.c (cleanup_compile_instance): Remove.
2306 (compile_to_object): Use unique_ptr to eliminate cleanups.
2307 (compile_instance::set_print_callback, compile_instance::version)
2308 (compile_instance::set_verbose)
2309 (compile_instance::set_driver_filename)
2310 (compile_instance::set_triplet_regexp)
2311 (compile_instance::set_arguments)
2312 (compile_instance::set_source_file)
2313 (compile_instance::compile): Define.
2315 2018-08-10 Keith Seitz <keiths@redhat.com>
2317 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2318 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2319 gcc-c-fe.def to define C plugin.
2320 (delete_instance): Delete `c_plugin'.
2321 (new_compile_instance): Initialize `c_plugin'.
2322 * compile/compile-c.h: Include gcc_c_plugin.h.
2323 (struct compile_c_instance) <c_plugin>: New member.
2324 * gcc-c-plugin.h: New file.
2325 Update all callers with API change.
2327 2018-08-10 Keith Seitz <keiths@redhat.com>
2329 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2330 (HFILES_NO_SRCDIR): ... to here.
2331 Add compile-internal.h and compile-c.h.
2332 * compile/compile-c-support.c: Include compile-c.h.
2333 * compile/compile-c-symbols.c: Include compile-c.h.
2334 (generate_c_for_variable_locations): Update comment.
2335 * compile/compile-c-types.c: Include compile-c.h.
2336 * compile/compile-c.h: New file -- moved C language declarations
2337 from other files here.
2338 * compile/compile-internal.h: Do not include hashtab.h or
2339 common/enum-flags.h.
2340 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2341 (gcc_convert_symbol, gcc_symbol_address)
2342 (generate_c_for_variable_locations, c_get_mode_for_size)
2343 (c_get_range_decl_name): Definitions moved to compile-c.h.
2344 * compile/compile-loc2c.c: Include compile-c.h.
2346 2018-08-10 Keith Seitz <keiths@redhat.com>
2348 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2349 (c_symbol_substitution_name): ... this.
2352 2018-08-10 Keith Seitz <keiths@redhat.com>
2354 * compile/compile-c-support.c (c_compute_program): Use
2355 unique_xmalloc_ptr to eliminate cleanup.
2356 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2357 Return a unique_xmalloc_ptr and eliminate cleanup.
2358 * compile/compile-internal.h (generate_c_for_variable_locations):
2359 Return unique_xmalloc_ptr and update description.
2361 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2363 * corelow.c (core_target::get_core_register_section): Rename
2364 min_size to section_min_size.
2366 2018-08-09 Jim Wilson <jimw@sifive.com>
2368 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2369 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2370 * NEWS: Mention new GNU/Linux RISC-V target.
2371 * configure.host: Add riscv*-*-linux*.
2372 * configure.nat: Add riscv*.
2373 * configure.tgt: Add riscv*-*-linux*.
2374 * riscv-linux-nat.c: New file.
2375 * riscv-linux-tdep.c: New file.
2377 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2379 * infrun.c (resume): Make static, add forward declaration.
2380 (proceed): Update header comment.
2381 * infrun.h (resume): Delete declaration.
2383 2018-08-09 Tom Tromey <tom@tromey.com>
2385 * riscv-tdep.h: Minor formatting fixes.
2387 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2389 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2390 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2391 (test_mkdir_recursive): Likewise.
2392 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2394 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2396 * valarith.c (value_subscripted_rvalue): If an array is not in
2397 memory, and we don't know the upper bound, then we can't know that
2398 the requested element exists or not.
2400 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2402 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2403 (target_options_to_string): Add comment.
2405 2018-08-08 Tom Tromey <tom@tromey.com>
2407 * unittests/scoped_mmap-selftests.c: Check result of "write".
2409 2018-08-08 Jim Wilson <jimw@sifive.com>
2411 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2412 (decode_register_index_short): New.
2413 (decode_j_type_insn, decode_cj_type_insn): New.
2414 (decode_b_type_insn, decode_cb_type_insn): New.
2415 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2416 local xlen. Check xlen when decoding ambiguous compressed insns. In
2417 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2418 is_c_sw_insn instead of is_sw_insn.
2419 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2420 (riscv_software_single_step): New.
2421 * riscv-tdep.h (riscv_software_single_step): Declare.
2423 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2424 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2426 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2429 * target.c (dispose_inferior): Don't dispose of inferiors that are
2432 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2434 * remote.c (remote_target::download_tracepoint): Change char* to
2437 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2439 * target.h (target_options_to_string): Return an std::string.
2440 * target.c (str_comma_list_concat_elem): Return void, use
2442 (do_option): Likewise.
2443 (target_options_to_string): Return an std::string.
2444 * linux-nat.c (linux_nat_target::wait): Adjust.
2445 * target-debug.h (target_debug_print_options): Adjust.
2447 2018-08-07 Tom Tromey <tom@tromey.com>
2449 * Makefile.in (CPPFLAGS): New variable.
2450 (INTERNAL_CPPFLAGS): Use it.
2452 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2454 * NEWS: Mention the index cache.
2456 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2458 * common/pathstuff.h (get_standard_cache_dir): New.
2459 * common/pathstuff.c (get_standard_cache_dir): New.
2460 * build-id.h (build_id_to_string): New.
2461 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2462 DEBUG_STR_SUFFIX): Move to here.
2463 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2464 DEBUG_STR_SUFFIX): Move from there.
2465 (write_psymtabs_to_index): Make non-static, add basename
2466 parameter. Write to temporary files, rename when done.
2467 (save_gdb_index_command): Adjust call to
2468 write_psymtabs_to_index.
2469 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2471 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2472 (get_gdb_index_contents_from_cache): New.
2473 (get_gdb_index_contents_from_cache_dwz): New.
2474 (dwarf2_initialize_objfile): Read index from cache.
2475 (dwarf2_build_psymtabs): Save to index.
2476 * dwarf-index-cache.h: New file.
2477 * dwarf-index-cache.c: New file.
2478 * dwarf-index-write.h: New file.
2480 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2482 * gnulib/aclocal.m4: Re-generate.
2483 * gnulib/config.in: Re-generate.
2484 * gnulib/configure: Re-generate.
2485 * gnulib/import/Makefile.am: Re-generate.
2486 * gnulib/import/Makefile.in: Re-generate.
2487 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2488 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2489 * gnulib/import/m4/mkdir.m4: New file.
2490 * gnulib/import/mkdir.c: New file.
2491 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2494 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2496 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2497 * common/scoped_mmap.c: New file.
2498 * common/scoped_mmap.h (destroy): New method.
2499 (~scoped_mmap, reset): Use destroy.
2500 (scoped_mmap): New move constructor.
2501 (mmap_file): New declaration.
2502 * unittests/scoped_mmap-selftests.c (test_normal,
2503 test_invalid_filename, run_tests): New functions.
2504 (_initialize_scoped_mmap_selftests): Register selftest.
2506 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2508 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2509 (read_gdb_index_from_buffer): ... this. Remove section
2510 parameter, add buffer parameter.
2511 (get_gdb_index_contents_ftype,
2512 get_gdb_index_contents_dwz_ftype): New typedefs.
2513 (dwarf2_read_gdb_index): Add callback parameters to get the
2515 (get_gdb_index_contents_from_section): New.
2516 (dwarf2_initialize_objfile): Update call to
2517 dwarf2_read_gdb_index.
2519 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2521 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2522 (gdb_open_cloexec): Likewise.
2523 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2524 (commandline_from_pid): Likewise.
2525 (linux_xfer_osdata_threads): Likewise.
2526 (linux_xfer_osdata_fds): Likewise.
2527 * ada-lang.c (is_package_name): Likewise.
2528 * auxv.c (procfs_xfer_auxv): Likewise.
2529 * breakpoint.c (print_one_breakpoint_location): Use
2531 (print_one_catch_solib): Use string_printf.
2532 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2533 (add_pe_forwarded_sym): Likewise.
2534 * dwarf2read.c (create_type_unit_group): Likewise.
2535 (build_error_marker_type): Likewise.
2536 * infcall.c (get_function_name): Likewise.
2537 * valprint.c (print_converted_chars_to_obstack): Likewise.
2538 * xtensa-tdep.c (xtensa_register_type): Likewise.
2540 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2542 * remote.c (remote_target::download_tracepoint): Fix format
2545 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2547 * tracefile.c: Include common/byte-vector.h.
2548 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2549 with trace_regblock_size if needed. Update uses of buf.
2551 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2553 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2554 std::vector<unsigned char>.
2555 * tracepoint.c (collection_list::collection_list): Remove
2556 m_regs_mask initializer from initializer list. Resize
2557 m_regs_mask using the largest remote register number.
2558 (collection_list::add_remote_register): Remove size check on
2559 m_regs_mask. Use at to access element.
2560 (collection_list::stringify): Change type of temp_buf to
2561 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2562 stringify the register mask. Use pack_hex_byte for the register
2565 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2567 * tracepoint.h (class collection_list) <add_register>: Remove.
2568 <add_remote_register, add_ax_registers, add_local_register>:
2570 <add_memrange>: Add scope parameter.
2571 * tracepoint.c (encode_actions_1): Likewise.
2572 (collection_list::add_register): Rename to ...
2573 (collection_list::add_remote_register): ... this. Update
2575 (collection_list::add_ax_registers, add_local_register): New
2577 (collection_list::add_memrange): Add scope parameter. Call
2578 add_local_register instead of add_register.
2579 (finalize_tracepoint_aexpr): New function.
2580 (collection_list::collect_symbol): Update calls to add_memrange.
2581 Call add_local_register instead of add_register. Call
2582 add_ax_registers. Call finalize_tracepoint_aexpr.
2583 (encode_actions_1): Get remote regnos for $reg action. Call
2584 add_remote_register, add_ax_registers, and add_local_register.
2585 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2586 (validate_actionline): Call finalize_tracepoint_aexpr.
2588 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2590 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2591 Replace array buf with gdb::char_vector buf, of size
2592 get_remote_packet_size (). Replace references to buf and
2593 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2594 and xsnprintf with snprintf. Raise errors if the buffer is too
2597 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2599 * remote.c (remote_target::download_tracepoint): Fix the has_more
2600 predicate in the QTDP action list iteration.
2602 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2604 * remote.c (remote_target::download_tracepoint): Fix indentation
2607 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2609 * proc-api.c (_initialize_proc_api): Remove c, unused.
2610 * procfs.c (procfs_init_inferior): Remove signals, unused.
2611 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2614 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2615 Andrew Burgess <andrew.burgess@embecosm.com>
2617 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2618 'W_STOPCODE (0)' as this could be ambiguous.
2620 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2622 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2623 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2626 2018-08-02 Tom Tromey <tom@tromey.com>
2629 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2631 (process_structure_scope): Likewise.
2633 2018-08-02 Xavier Roirand <roirand@adacore.com>
2636 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2639 2018-08-02 Tom Tromey <tom@tromey.com>
2641 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2642 (darwin_suspend_inferior, darwin_resume_inferior)
2643 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2644 (darwin_check_new_threads): Check result of get_darwin_inferior.
2646 2018-07-31 Joel Brobecker <brobecker@adacore.com>
2650 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2652 * varobj.c (varobj_get_path_expr_parent): Report an error if
2653 parent is a dynamic varobj.
2655 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2657 * gnulib/aclocal.m4: Re-generate.
2658 * gnulib/config.in: Re-generate.
2659 * gnulib/configure: Re-generate.
2660 * gnulib/import/Makefile.in: Re-generate.
2661 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2662 * gnulib/import/m4/onceonly.m4: Re-generate.
2664 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2666 * target-descriptions.c (struct xml_test_tdesc): New.
2667 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2668 (record_xml_tdesc): Update.
2669 (maintenance_check_xml_descriptions): Update.
2670 * target-descriptions.h (record_xml_tdesc): Update comment.
2672 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2674 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2675 checking array bounds are defined.
2677 2018-07-30 Tom Tromey <tom@tromey.com>
2679 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2680 irreflexivity violation.
2682 2018-07-30 Tom Tromey <tom@tromey.com>
2684 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2685 * value.c (unpack_long): Remove lint code.
2686 * valops.c (value_ind): Remove lint code.
2687 * valarith.c (value_x_binop, value_x_unop, value_equal)
2688 (value_pos): Remove lint code.
2690 2018-07-28 Tom de Vries <tdevries@suse.de>
2692 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2693 with undefined upper bound as <optimized out>.
2695 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2697 * gcore.in: Rename variable "name" to "prefix". Expand
2700 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2702 * windows-nat.c (windows_nat_target::create_inferior): Update to
2703 call close() in global namespace.
2705 2018-07-26 Tom Tromey <tom@tromey.com>
2707 * dwarf-index-write.c (add_address_entry): Don't add objfile
2709 * dbxread.c (find_stab_function): Rename from
2710 find_stab_function_addr. Return a bound_minimal_symbol.
2711 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2712 Don't add objfile offsets.
2713 (end_psymtab): Use raw_text_low, raw_text_high,
2714 MSYMBOL_VALUE_RAW_ADDRESS.
2715 (read_ofile_symtab): Update.
2716 (process_one_symbol): Update.
2717 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2719 (dw2_relocate): Remove.
2720 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2722 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2724 (process_psymtab_comp_unit_reader, add_partial_symbol)
2725 (add_partial_subprogram, dwarf2_ranges_read): Update.
2726 (load_partial_dies): Update.
2727 (add_address_entry): Don't add objfile offsets.
2728 (dwarf2_build_include_psymtabs): Update.
2729 (create_addrmap_from_aranges): Don't add objfile offsets.
2730 (dw2_find_pc_sect_compunit_symtab): Update.
2731 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2732 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2734 (parse_partial_symbols): Don't add objfile offsets. Use
2735 raw_text_low, raw_text_high. Update.
2736 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2737 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2738 or call 'relocate' quick function. Clear psymbol_map.
2739 * psympriv.h (struct partial_symbol) <address>: Add section
2741 <set_unrelocated_address>: Rename from set_address.
2742 <raw_text_low, raw_text_high>: New methods.
2743 <text_low, text_high>: Add objfile parameter.
2744 (add_psymbol_to_bcache): Add 'section' parameter. Call
2745 set_unrelocated_address.
2746 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2747 (find_pc_psymbol): Update.
2748 (fixup_psymbol_section, relocate_psymtabs): Remove.
2749 (dump_psymtab, psym_functions): Update.
2750 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2752 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2753 (start_psymtab_common): Update.
2754 * symfile-debug.c (debug_qf_relocate): Remove.
2755 (debug_sym_quick_functions): Update.
2756 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2757 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2760 2018-07-26 Tom Tromey <tromey@redhat.com>
2762 * dbxread.c (end_psymtab): Use text_high_valid and
2764 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2765 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2766 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2768 <text_low_valid, text_high_valid>: New fields.
2769 <set_text_low, set_text_high>: Update.
2770 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2772 2018-07-26 Tom Tromey <tom@tromey.com>
2774 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2776 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2777 textlow and texthigh fields.
2778 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2780 * mdebugread.c (parse_lines, parse_partial_symbols)
2781 (psymtab_to_symtab_1): Update.
2782 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2783 Rename fields. Update comment. Now private.
2784 <text_low, text_high, set_text_low, set_text_high>: New methods.
2785 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2786 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2787 (start_psymtab_common, maintenance_info_psymtabs)
2788 (maintenance_check_psymtabs): Update.
2789 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2791 (scan_xcoff_symtab): Update.
2793 2018-07-26 Tom Tromey <tromey@redhat.com>
2795 * psympriv.h (struct partial_symbol) <unrelocated_address,
2796 address, set_address>: New methods.
2797 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2798 (fixup_psymbol_section, relocate_psymtabs): Update.
2799 (print_partial_symbols): Add 'objfile' parameter. Update.
2800 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2803 2018-07-26 Tom Tromey <tom@tromey.com>
2805 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2806 (debug_names::write_psymbols): Update.
2807 * psympriv.h (struct partial_symbol): Derive from
2808 general_symbol_info.
2809 <obj_section>: New method.
2810 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2811 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2812 (find_pc_sect_psymbol, fixup_psymbol_section)
2813 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2814 (print_partial_symbols, recursively_search_psymtabs)
2815 (compare_psymbols, psymbol_hash, psymbol_compare)
2816 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2817 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2819 2018-07-26 Tom Tromey <tromey@redhat.com>
2821 * dbxread.c (end_psymtab): Remove dead code.
2823 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2825 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2826 DWARF unwinders are disabled.
2827 * dwarf2-frame.c: Add dwarf2read.h include.
2828 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2830 (dwarf2_frame_unwinders_enabled_p): Define.
2831 (show_dwarf_unwinders_enabled_p): New function.
2832 (_initialize_dwarf2_frame): Register switch to control DWARF
2834 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2835 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2836 (show_dwarf_cmdlist): Remove static keyword.
2837 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2838 (show_dwarf_cmdlist): Declare.
2839 * NEWS: Document new feature.
2841 2018-07-26 Tom de Vries <tdevries@suse.de>
2843 PR breakpoints/23366
2844 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2846 2018-07-26 Tom de Vries <tdevries@suse.de>
2848 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2849 DW_AT_count can't be translated to a dynamic prop.
2851 2018-07-25 Tom de Vries <tdevries@suse.de>
2853 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2856 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2858 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2860 2018-07-25 Joel Brobecker <brobecker@adacore.com>
2862 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2864 2018-07-24 Keith Seitz <keiths@redhat.comt
2867 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2868 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2869 instead of add_symbol_to_list.
2870 (read_file_scope): Call prepare_one_comp_unit before reading
2873 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2875 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2877 2018-07-24 Tom Tromey <tom@tromey.com>
2879 * utils.c (malloc, realloc, free): Don't declare.
2880 * configure, config.in: Rebuild.
2881 * configure.ac: Don't check for declarations of free, malloc, or
2884 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2886 * aarch64-linux-nat.c
2887 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2889 * arm-linux-nat.c (fetch_regs): Likewise.
2890 (store_regs): Likewise.
2891 (fetch_vfp_regs): Likewise.
2892 (store_vfp_regs): Likewise.
2893 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2894 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2895 (arm_linux_nat_target::insert_watchpoint): Likewise.
2896 (arm_linux_nat_target::remove_watchpoint): Likewise.
2897 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2899 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2901 * ppc-linux-nat.c (fetch_register): Likewise.
2902 (fetch_all_gp_regs): Likewise.
2903 (fetch_ppc_registers): Likewise.
2904 (store_all_gp_regs): Likewise.
2905 (store_ppc_registers): Likewise.
2906 (hwdebug_insert_point): Likewise.
2907 (can_use_watchpoint_cond_accel): Likewise.
2908 * remote-sim.c (gdb_os_write_stdout): Likewise.
2910 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2911 Tom Tromey <tom@tromey.com>
2913 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
2915 * configure: Rebuild.
2917 2018-07-22 Tom Tromey <tom@tromey.com>
2919 * regformats/regdat.sh: Define xmltarget_${name} inside
2920 #ifndef IN_PROCESS_AGENT.
2922 2018-07-22 Tom Tromey <tom@tromey.com>
2924 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
2926 2018-07-22 Tom Tromey <tom@tromey.com>
2928 * symfile.c (reread_symbols): Notify iter, not objfile.
2930 2018-07-22 Tom Tromey <tom@tromey.com>
2932 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
2934 (ravenscar_thread_target::prepare_to_store): Likewise.
2936 2018-07-22 Tom Tromey <tom@tromey.com>
2938 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
2939 unused variable. Call value_fetch_lazy when needed.
2940 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2941 Remove unused variable. Call value_fetch_lazy when needed.
2943 2018-07-22 Tom Tromey <tom@tromey.com>
2945 * m32c-tdep.c (mark_dma): Return void.
2946 (make_regs): Remove unused declarations.
2948 2018-07-22 Tom Tromey <tom@tromey.com>
2950 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
2951 cmdscm_get_valid_command_smob_arg_unsafe for effect.
2952 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
2953 bkscm_get_valid_block_smob_arg_unsafe for effect.
2955 2018-07-22 Tom Tromey <tom@tromey.com>
2957 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
2960 2018-07-22 Tom Tromey <tom@tromey.com>
2962 * windows-nat.c (saved_context): Conditionally define.
2963 * remote.c (remote_target::remote_btrace_maybe_reopen):
2964 Conditionally declare "warned".
2965 * inflow.c (sigquit_ours): Conditionally define.
2966 (new_tty): Move "tty" declaration inside #if.
2967 * guile/guile.c (guile_datadir): Conditionally define.
2968 * charset.c (set_be_le_names): Move some declarations inside #if.
2969 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
2971 (parse_xml_btrace_conf): Likewise.
2973 2018-07-22 Tom Tromey <tom@tromey.com>
2975 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
2977 2018-07-22 Tom Tromey <tom@tromey.com>
2979 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
2980 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
2981 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
2982 * buildsym-legacy.c (get_macro_table): Remove unused variable.
2983 * stack.c (frame_apply_level_command): Remove unused variable.
2984 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
2985 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
2986 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
2988 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
2989 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
2990 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
2992 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
2993 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
2995 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
2996 Remove unused variable.
2997 * cli/cli-script.c (recurse_read_control_structure): Remove unused
2999 * common/tdesc.c (print_xml_feature::visit): Remove unused
3001 * compile/compile-object-load.c (store_regs): Remove unused
3003 * complaints.c (clear_complaints): Remove unused variable.
3004 * corelow.c (core_target_open): Remove unused variable.
3005 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3007 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3009 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3011 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3013 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3015 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3017 * ia64-tdep.c (examine_prologue): Remove unused variable.
3018 * infcall.c (run_inferior_call): Remove unused variable.
3019 * inferior.c (exit_inferior): Remove unused variable.
3020 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3021 * linespec.c (decode_line_2): Remove unused variable.
3022 * linux-nat.c (super_close): Remove.
3023 * linux-tdep.c (linux_info_proc): Remove unused variable.
3024 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3025 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3026 Remove unused variable.
3027 * parse.c (find_minsym_type_and_address): Remove unused variable.
3028 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3030 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3032 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3034 * record-btrace.c (record_btrace_target::store_registers): Remove
3036 (cmd_show_record_btrace_cpu): Remove unused variable.
3037 * riscv-tdep.c (riscv_register_reggroup_p)
3038 (riscv_push_dummy_call, riscv_return_value): Remove unused
3040 * rust-exp.y (literal): Remove unused variable.
3041 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3043 <STRUCTOP_ANONYMOUS>: Likewise.
3044 * s390-linux-tdep.c (s390_linux_init_abi_31)
3045 (s390_linux_init_abi_64): Remove unused variable.
3046 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3047 (file_select_thread, net_windows_open, _initialize_ser_windows):
3048 Remove unused variables.
3049 * symtab.c (find_pc_sect_line): Remove unused variable.
3050 * target-memory.c (compute_garbled_blocks): Remove unused
3052 (target_write_memory_blocks): Remove unused variable.
3053 * target.c (target_stack::unpush): Remove unused variables.
3054 * tracepoint.c (start_tracing, all_tracepoint_actions)
3055 (merge_uploaded_trace_state_variables)
3056 (print_one_static_tracepoint_marker): Remove unused variable.
3057 * unittests/basic_string_view/element_access/char/1.cc (test01):
3058 Remove unused variable.
3059 * windows-nat.c (windows_continue, windows_add_all_dlls)
3060 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3061 Remove unused variables.
3063 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3065 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3066 attr_profile in HAVE_ELF.
3067 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3070 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3072 * frame.c (frame_register_unwind): Change parameter name.
3073 (frame_unwind_register): Likewise.
3074 (frame_unwind_register_value): Likewise.
3075 (frame_unwind_register_signed): Likewise.
3076 (frame_unwind_register_unsigned): Likewise.
3077 * frame.h (frame_register_unwind): Likewise.
3078 (frame_unwind_register): Likewise.
3079 (frame_unwind_register_value): Likewise.
3080 (frame_unwind_register_signed): Likewise.
3081 (frame_unwind_register_unsigned): Likewise.
3082 (frame_unwind_arch): Likewise.
3084 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3086 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3089 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3091 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3092 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3095 2018-07-20 Keith Seitz <keiths@redhat.com>
3097 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3098 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3099 m_compunit_symtab, m_language>: Add "m_" prefix.
3101 * buildsym.c: Update all uses.
3103 2018-07-20 Tom Tromey <tom@tromey.com>
3105 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3106 * buildsym.h (record_line_ftype): Remove typedef.
3108 2018-07-20 Tom Tromey <tom@tromey.com>
3110 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3111 (end_expandable_symtab): Likewise.
3112 (end_symtab_get_static_block): Likewise.
3113 (end_symtab_from_static_block): Likewise.
3114 * buildsym-legacy.c (augment_type_symtab): Remove.
3115 (end_expandable_symtab): Remove.
3116 (end_symtab_get_static_block): Remove.
3117 (end_symtab_from_static_block): Remove.
3119 2018-07-20 Tom Tromey <tom@tromey.com>
3121 * dwarf2read.c: Include buildsym.h.
3122 (struct dwarf2_cu) <builder>: New method.
3123 (fixup_go_packaging): Update.
3124 (process_full_comp_unit, process_full_type_unit): Update. Don't
3125 use scoped_free_pendings.
3126 (using_directives): Add "cu" parameter, remove "language".
3127 (read_import_statement, setup_type_unit_groups, )
3128 (read_func_scope, read_lexical_block_scope)
3129 (dwarf2_record_block_ranges, read_namespace): Update.
3130 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3131 (lnp_state_machine::handle_end_sequence): Update.
3132 (class lnp_state_machine) <m_cu>: New member.
3133 <m_record_line_callback>: Remove.
3134 <m_currently_recording_lines>: New member.
3135 (lnp_state_machine::handle_set_file): Update.
3136 (noop_record_line): Remove.
3137 (dwarf_record_line_p): Add cu parameter.
3138 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3139 (lnp_state_machine::record_line)
3140 (lnp_state_machine::lnp_state_machine)
3141 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3142 (dwarf_decode_lines): Update.
3143 (dwarf2_start_subfile): Add cu parameter.
3144 (dwarf2_start_symtab, new_symbol): Update.
3145 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3146 Remove dwarf2_per_objfile parameter.
3147 (dwarf_decode_macros): Update.
3149 2018-07-20 Tom Tromey <tom@tromey.com>
3151 * stabsread.c (define_symbol): Update.
3152 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3153 * dwarf2read.c (new_symbol): Update.
3154 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3155 * cp-namespace.c: Include buildsym.h.
3156 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3157 * buildsym-legacy.c (get_buildsym_compunit): New function.
3159 2018-07-20 Tom Tromey <tom@tromey.com>
3161 * xcoffread.c: Include buildsym-legacy.h.
3162 * windows-nat.c: Include buildsym-legacy.h.
3163 * stabsread.c: Include buildsym-legacy.h.
3164 * mdebugread.c: Include buildsym-legacy.h.
3165 * buildsym-legacy.h: New file.
3166 * buildsym-legacy.c: New file, from buildsym.c.
3167 * go32-nat.c: Include buildsym-legacy.h.
3168 * dwarf2read.c: Include buildsym-legacy.h.
3169 * dbxread.c: Include buildsym-legacy.h.
3170 * cp-namespace.c: Include buildsym-legacy.h.
3171 * coffread.c: Include buildsym-legacy.h.
3172 * buildsym.h: Move some contents to buildsym-legacy.h.
3173 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3175 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3177 2018-07-20 Tom Tromey <tom@tromey.com>
3179 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3180 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3181 (buildsym_compunit::buildsym_compunit)
3182 (buildsym_compunit::~buildsym_compunit)
3183 (buildsym_compunit::get_macro_table): Define.
3185 2018-07-20 Tom Tromey <tom@tromey.com>
3187 * buildsym.c (reset_symtab_globals): Remove.
3188 (buildsym_compunit::end_symtab_from_static_block): Update.
3189 (buildsym_compunit::augment_type_symtab): Update.
3190 (end_symtab_from_static_block): Call free_buildsym_compunit.
3191 (augment_type_symtab, end_symtab, end_expandable_symtab):
3194 2018-07-20 Tom Tromey <tom@tromey.com>
3196 * arch-utils.c: Do not include buildsym.h.
3197 * mipsread.c: Do not include buildsym.h.
3198 * machoread.c: Do not include buildsym.h.
3199 * elfread.c: Do not include buildsym.h.
3201 2018-07-20 Tom Tromey <tom@tromey.com>
3203 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3205 (buildsym_compunit): Add new constructor.
3206 (struct buildsym_compunit) <get_last_source_file, finish_block,
3207 record_block_range, start_subfile, patch_subfile_names,
3208 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3209 set_last_source_start_addr, get_last_source_start_addr,
3210 get_local_using_directives, set_local_using_directives,
3211 get_global_using_directives, outermost_context_p,
3212 get_current_context_stack, get_context_stack_depth,
3213 get_current_subfile, get_local_symbols, get_file_symbols,
3214 get_global_symbols, record_debugformat, record_producer,
3215 push_context, pop_context, end_symtab_get_static_block,
3216 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3218 <record_pending_block, finish_block_internal, make_blockvector,
3219 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3223 2018-05-22 Tom Tromey <tom@tromey.com>
3225 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3227 (finish_block_internal): Update.
3229 2018-07-20 Tom Tromey <tom@tromey.com>
3231 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3233 (finish_block_internal): Update.
3235 2018-07-20 Tom Tromey <tom@tromey.com>
3237 * buildsym.h (EXTERN): Don't define or undef.
3238 * buildsym.c (EXTERN): Don't define.
3240 2018-07-20 Tom Tromey <tom@tromey.com>
3242 * buildsym.c: Remove TODO comment.
3244 2018-07-20 Tom Tromey <tom@tromey.com>
3246 * coffread.c (coff_symtab_read): Update.
3247 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3248 (xcoff_new_init): Update.
3249 * mipsread.c (mipscoff_new_init): Update.
3250 * mdebugread.c (mdebug_build_psymtabs): Update.
3251 * elfread.c (elf_new_init): Update.
3252 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3254 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3255 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3256 (stabsect_build_psymtabs): Update.
3257 * buildsym.h (buildsym_init): Don't declare.
3258 * buildsym.c: Update comment.
3259 (prepare_for_building): Remove.
3260 (start_symtab, restart_symtab): Update.
3261 (reset_symtab_globals): Update comment.
3262 (buildsym_init): Remove.
3264 2018-07-20 Tom Tromey <tom@tromey.com>
3266 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3267 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3268 (read_enum_type, common_block_start, common_block_end)
3269 (cleanup_undefined_types_1, finish_global_stabs): Update.
3270 * mdebugread.c (psymtab_to_symtab_1): Update.
3271 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3272 (read_lexical_block_scope, new_symbol): Update.
3273 * dbxread.c (process_one_symbol): Update.
3274 * coffread.c (coff_symtab_read, process_coff_symbol)
3275 (coff_read_enum_type): Update.
3276 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3278 (get_local_symbols, get_file_symbols, get_global_symbols): New
3280 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3282 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3283 (~scoped_free_pendings): Update.
3284 (finish_block, prepare_for_building, reset_symtab_globals)
3285 (end_symtab_get_static_block, end_symtab_with_blockvector)
3286 (augment_type_symtab, push_context): Update.
3287 (get_local_symbols, get_file_symbols, get_global_symbols): New
3289 (buildsym_init): Update.
3291 2018-07-20 Tom Tromey <tom@tromey.com>
3293 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3294 (process_full_type_unit): Likewise.
3295 (dwarf2_start_symtab): Set list_in_scope.
3297 2018-07-20 Tom Tromey <tom@tromey.com>
3299 * dwarf2read.c (process_psymtab_comp_unit_reader)
3300 (build_type_psymtabs_reader): Do not set list_in_scope.
3302 2018-07-20 Tom Tromey <tom@tromey.com>
3304 * buildsym.c (free_pendings): Remove.
3305 (add_symbol_to_list, scoped_free_pendings)
3306 (finish_block_internal, buildsym_init): Update.
3308 2018-07-20 Tom Tromey <tom@tromey.com>
3310 * xcoffread.c (read_xcoff_symtab): Update.
3311 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3313 * dbxread.c (process_one_symbol): Update.
3314 * coffread.c (coff_symtab_read): Update.
3315 * buildsym.h (finish_block): Update.
3316 * buildsym.c (finish_block): Remove "listhead" argument.
3317 (end_symtab_get_static_block): Update.
3319 2018-07-20 Tom Tromey <tom@tromey.com>
3321 * buildsym.h (class scoped_free_pendings): Remove constructor.
3322 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3324 <m_pending_block_obstack, m_pending_blocks>: New members.
3325 (pending_block_obstack, pending_blocks): Remove.
3326 (scoped_free_pendings::scoped_free_pendings): Default.
3327 (~scoped_free_pendings): Update.
3328 (free_pending_blocks): Remove.
3329 (finish_block_internal, record_pending_block, make_blockvector)
3330 (end_symtab_get_static_block, augment_type_symtab, push_context)
3331 (buildsym_init): Update.
3333 2018-07-20 Tom Tromey <tom@tromey.com>
3335 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3336 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3338 (pending_addrmap, pending_addrmap_obstack)
3339 (pending_addrmap_interesting): Remove.
3340 (scoped_free_pendings, record_block_range, make_blockvector)
3341 (prepare_for_building, reset_symtab_globals, buildsym_init):
3344 2018-07-20 Tom Tromey <tom@tromey.com>
3346 * xcoffread.c (process_linenos): Update.
3347 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3348 * mdebugread.c (psymtab_to_symtab_1): Update.
3349 * dwarf2read.c (setup_type_unit_groups)
3350 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3351 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3352 * dbxread.c (process_one_symbol): Update.
3353 * coffread.c (coff_symtab_read, enter_linenos)
3354 (process_coff_symbol): Update.
3355 * buildsym.h (current_subfile): Don't declare.
3356 (get_current_subfile): Declare.
3357 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3359 (start_subfile, free_buildsym_compunit, push_subfile)
3360 (prepare_for_building, start_symtab): Update.
3361 (get_current_subfile): New function.
3363 2018-07-20 Tom Tromey <tom@tromey.com>
3365 * coffread.c (coff_symtab_read): Update.
3366 * xcoffread.c (read_xcoff_symtab): Update.
3367 * dwarf2read.c (new_symbol): Update.
3368 (read_func_scope, read_lexical_block_scope): Update.
3369 * dbxread.c (process_one_symbol): Update.
3370 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3371 (outermost_context_p): Remove macro.
3372 (outermost_context_p, get_current_context_stack)
3373 (get_context_stack_depth): Declare.
3374 (pop_context): Return struct context_stack.
3375 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3377 (context_stack_size): Remove.
3378 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3379 (prepare_for_building, end_symtab_get_static_block)
3380 (augment_type_symtab, push_context): Update.
3381 (pop_context): Return struct context_stack.
3382 (outermost_context_p, get_current_context_stack)
3383 (get_context_stack_depth): New functions.
3384 (buildsym_init): Update.
3386 2018-07-20 Tom Tromey <tom@tromey.com>
3388 * rust-exp.y: Now a pure parser. Update all rules.
3389 (%union): Move earlier.
3390 (current_parser, work_obstack): Remove globals.
3391 (rust_parser, ~rust_parser): Update.
3392 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3393 lex_character, lex_number, lex_string, lex_identifier,
3394 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3395 convert_name, convert_params_to_expression,
3396 convert_ast_to_expression, ast_basic_type, ast_operation,
3397 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3398 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3399 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3400 ast_array_type, ast_slice_type, ast_reference_type,
3401 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3402 (rust_parse): Update.
3403 (rustyyerror, rustyylex): Add parser parameter.
3404 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3405 (rust_lex_stringish_test, rust_lex_test_sequence)
3406 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3407 (rust_lex_test_push_back, rust_lex_tests): Update.
3409 2018-07-19 Pedro Alves <palves@redhat.com>
3411 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3412 gdb::unique_xmalloc_ptr.
3413 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3414 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3415 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3416 copy-initialization.
3417 * guile/scm-pretty-print.c (ppscm_print_children): Use
3418 gdb::unique_xmalloc_ptr instead of cleanups.
3419 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3420 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3421 gdb::unique_xmalloc_ptr.
3422 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3423 Adjust to use gdb::unique_xmalloc_ptr.
3424 * guile/scm-utils.c (extract_arg): Adjust.
3425 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3426 gdb::unique_xmalloc_ptr instead of a cleanup.
3428 2018-07-19 Tom Tromey <tom@tromey.com>
3430 * utils.c (do_value_free_to_mark)
3431 (make_cleanup_value_free_to_mark): Remove.
3432 * utils.h (make_cleanup_value_free_to_mark): Remove.
3434 2018-07-19 Pedro Alves <palves@redhat.com>
3436 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3437 forwarding reference.
3439 2018-07-18 Pedro Alves <palves@redhat.com>
3441 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3442 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3445 2018-07-18 Pedro Alves <palves@redhat.com>
3447 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3449 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3451 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3452 directly instead of a cleanup.
3453 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3454 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3455 (vlscm_binop_gdbthrow): New, factored out from ...
3456 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3457 (vlscm_rich_compare): Use gdbscm_wrap.
3458 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3459 instead of a cleanup.
3460 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3462 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3463 Use xfree directly instead of a cleanup.
3464 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3465 Adjust to use gdbscm_wrap and scoped_value_mark.
3466 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3467 (gdbscm_value_address, gdbscm_value_dereference)
3468 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3470 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3471 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3473 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3474 gdbscm_wrap and scoped_value_mark.
3475 (gdbscm_value_to_string): Use xfree directly instead of a
3476 cleanup. Move 'buffer' unique_ptr to TRY scope.
3477 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3478 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3480 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3481 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3483 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3486 2018-07-18 Tom de Vries <tdevries@suse.de>
3488 * findvar.c (default_read_var_value): Also resolve dynamic type for
3489 LOC_OPTIMIZED_OUT vars.
3491 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3493 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3496 2018-07-17 Tom Tromey <tom@tromey.com>
3498 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3499 (compute_enum_list, pascm_set_param_value_x)
3500 (gdbscm_parameter_value): Update.
3501 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3502 (gdbscm_scm_to_host_string): Update.
3503 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3505 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3506 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3507 * guile/scm-string.c (gdbscm_scm_to_string): Return
3509 (gdbscm_scm_to_host_string): Likewise.
3511 2018-07-17 Tom Tromey <tom@tromey.com>
3513 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3514 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3515 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3516 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3519 2018-07-17 Tom Tromey <tom@tromey.com>
3521 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3522 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3524 * guile/scm-cmd.c (cmdscm_function): Update.
3525 * guile/scm-pretty-print.c
3526 (ppscm_print_exception_unless_memory_error): Update.
3527 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3528 Return unique_xmalloc_ptr.
3530 2018-07-17 Tom Tromey <tom@tromey.com>
3532 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3535 2018-07-17 Jim Wilson <jimw@sifive.com>
3537 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3538 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3539 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3540 unecessary braces after EF_RISCV_RVC test. Delete call to
3541 set_gdbarch_decr_pc_after_break.
3543 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3544 RISCV_LAST_FP_REGNUM + 1.
3545 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3547 2018-07-17 Tom Tromey <tom@tromey.com>
3549 * configure.ac: Remove --disable-gdbcli.
3550 * configure: Rebuild.
3551 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3552 (SUBDIR_CLI_CFLAGS): Remove.
3553 (SFILES): Use SUBDIR_CLI_SRCS.
3554 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3556 2018-07-17 Tom Tromey <tom@tromey.com>
3559 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3561 2018-07-16 Jim Wilson <jimw@sifive.com>
3563 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3565 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3567 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3569 (libunwind_frame_sniffer): Likewise.
3570 (libunwind_frame_prev_register): Likewise.
3571 (libunwind_sigtramp_frame_sniffer): Likewise.
3572 * ia64-tdep.c (ia64_access_reg): Likewise.
3573 (ia64_access_rse_reg): Likewise.
3574 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3575 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3577 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3579 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3581 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3583 * remote-sim.c (gdbsim_target::close,
3584 gdbsim_target::mourn_inferior): Remove unused variables.
3586 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3588 * ia64-tdep.c (ktab_buf): New global.
3589 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3590 (get_kernel_table): Adjust.
3592 2018-07-16 Tom Tromey <tom@tromey.com>
3594 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3595 * dwarf2read.c (using_directives, new_symbol): Use
3596 outermost_context_p.
3597 * dbxread.c (process_one_symbol): Use outermost_context_p.
3598 * coffread.c (coff_symtab_read): Use outermost_context_p.
3600 2018-07-16 Tom Tromey <tom@tromey.com>
3602 * dwarf2read.c (using_directives, read_func_scope)
3603 (read_lexical_block_scope): Update.
3604 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3605 * buildsym.h (local_using_directives, global_using_directives):
3607 (get_local_using_directives, set_local_using_directives)
3608 (get_global_using_directives): Declare.
3609 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3610 m_global_using_directives>: New members.
3611 (finish_block_internal, prepare_for_building)
3612 (reset_symtab_globals, end_symtab_get_static_block)
3613 (push_context): Update.
3614 (get_local_using_directives, set_local_using_directives)
3615 (get_global_using_directives): New functions.
3616 (buildsym_init): Update.
3618 2018-07-16 Tom Tromey <tom@tromey.com>
3620 * xcoffread.c (xcoff_initial_scan): Don't call
3621 free_pending_blocks.
3622 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3623 * buildsym.h (class scoped_free_pendings): Add constructor.
3624 (free_pending_blocks): Don't declare.
3625 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3626 (free_pending_blocks): Now static.
3628 2018-07-16 Tom Tromey <tom@tromey.com>
3630 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3631 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3633 (struct subfile_stack): Remove.
3634 (subfile_stack): Remove.
3635 (push_subfile, pop_subfile, buildsym_init): Update.
3637 2018-07-16 Tom Tromey <tom@tromey.com>
3639 * buildsym.c (push_subfile): Use gdb_assert.
3640 (pop_subfile): Use gdb_assert.
3642 2018-07-16 Tom Tromey <tom@tromey.com>
3644 * buildsym.h (merge_symbol_lists): Remove.
3645 * buildsym.c (merge_symbol_lists): Remove.
3647 2018-07-16 Tom Tromey <tom@tromey.com>
3649 * stabsread.c (scan_file_globals): Update comment.
3650 * stabsread.h (scan_file_globals): Move from buildsym.h.
3651 * buildsym.h (scan_file_globals): Move to stabsread.h.
3653 2018-07-16 Tom Tromey <tom@tromey.com>
3655 * xcoffread.c (xcoff_new_init): Update.
3656 * mipsread.c (mipscoff_new_init): Update.
3657 * mdebugread.c (mdebug_build_psymtabs): Update.
3658 * elfread.c (elf_new_init): Update.
3659 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3660 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3661 * buildsym.h (buildsym_new_init): Don't declare.
3662 * buildsym.c (buildsym_new_init): Remove.
3664 2018-07-16 Tom Tromey <tom@tromey.com>
3666 * stabsread.h (within_function): Move from buildsym.h.
3667 * stabsread.c (start_stabs): Clear within_function.
3668 * coffread.c (coff_start_symtab): Clear within_function.
3669 * buildsym.h (within_function): Move to stabsread.h.
3670 * buildsym.c (prepare_for_building): Update.
3672 2018-07-16 Tom Tromey <tom@tromey.com>
3674 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3675 * dwarf2read.c (dwarf2_start_symtab): Don't set
3676 processing_gcc_compilation.
3677 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3679 2018-07-16 Tom Tromey <tom@tromey.com>
3681 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3682 (next_symbol_text_func): Move from buildsym.h.
3683 * stabsread.c (hashname): Move from buildsym.c.
3684 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3685 (next_symbol_text_func, hashname): Move to stabsread.h.
3686 * buildsym.c: Don't include bcache.h
3687 (hashname): Move to stasbread.c.
3689 2018-07-16 Tom Tromey <tom@tromey.com>
3691 * buildsym.h (context_stack_size): Don't declare.
3692 * buildsym.c (context_stack_size): New global.
3694 2018-07-16 Tom Tromey <tom@tromey.com>
3696 * dbxread.c (processing_acc_compilation): New global.
3697 * buildsym.h (processing_acc_compilation): Don't declare.
3699 2018-07-16 Tom Tromey <tom@tromey.com>
3701 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3702 * dbxread.c (read_ofile_symtab): Update.
3703 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3704 * buildsym.h (last_source_start_addr): Remove.
3705 (set_last_source_start_addr, get_last_source_start_addr):
3707 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3709 (struct buildsym_compunit) <m_last_source_start_addr>: New
3711 (prepare_for_building): Remove start_addr parameter.
3712 (start_symtab, restart_symtab, end_symtab_get_static_block)
3713 (end_symtab_with_blockvector): Update.
3714 (set_last_source_start_addr, get_last_source_start_addr): New
3717 2018-07-16 Tom Tromey <tom@tromey.com>
3719 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3721 (have_line_numbers): Remove.
3722 (record_line, prepare_for_building, end_symtab_get_static_block)
3723 (augment_type_symtab): Update.
3725 2018-07-16 Tom Tromey <tom@tromey.com>
3727 * buildsym.c (~buildsym_compunit): Free the macro table.
3728 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3730 <m_pending_macros>: New member.
3731 (pending_macros): Remove.
3732 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3733 (reset_symtab_globals, end_symtab_get_static_block)
3734 (end_symtab_with_blockvector, augment_type_symtab)
3735 (buildsym_init): Update.
3737 2018-07-16 Tom Tromey <tom@tromey.com>
3739 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3741 (buildsym_compunit::set_last_source_file): New method.
3742 <m_last_source_file>: New member.
3743 (prepare_for_building): Remove "name" parameter.
3744 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3745 (last_source_file): Remove.
3746 (set_last_source_file, get_last_source_file): Update.
3748 2018-07-16 Tom Tromey <tom@tromey.com>
3750 * buildsym.c (prepare_for_building): Add assert.
3752 2018-07-16 Tom Tromey <tom@tromey.com>
3754 * buildsym.c (~buildsym_compunit): Update.
3755 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3756 (start_subfile, patch_subfile_names)
3757 (end_symtab_with_blockvector): Update.
3759 2018-07-16 Tom Tromey <tom@tromey.com>
3761 * buildsym.c (struct buildsym_compunit): Add constructor,
3762 destructor, initializers.
3763 (start_buildsym_compunit): Remove.
3764 (free_buildsym_compunit): Use "delete".
3765 (start_symtab, restart_symtab): Use "new".
3767 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3769 * symfile.c (set_objfile_default_section_offset): Remove struct
3772 2018-07-14 Stafford Horne <shorne@gmail.com>
3774 * (Responsible Maintainers): Add myself as or1k maintainer.
3776 2018-07-13 Tom Tromey <tom@tromey.com>
3778 * symfile.c (set_objfile_default_section_offset): Use extra braces
3781 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3783 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3786 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3788 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3789 unittests/cli-utils-selftests.c
3790 * unittests/cli-utils-selftests.c: New file.
3792 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3794 * NEWS: Mention new commands. Mention change to 'thread apply'.
3796 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3798 * thread.c (thr_try_catch_cmd): New function.
3799 (thread_apply_all_command): Handle qcs flags.
3800 (thread_apply_command): Handle qcs flags.
3801 (taas_command): New function.
3802 (tfaas_command): New function.
3803 (_initialize_thread): Update to setup the new commands 'taas
3804 and 'tfaas'. Change doc string for 'thread apply'.
3806 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3808 * stack.c: (trailing_outermost_frame): New function, mostly
3809 extracted from backtrace_command_1.
3810 (leading_innermost_frame): New function.
3811 (backtrace_command_1): Update to call trailing_outermost_frame.
3812 (frame_apply_command_count): New function.
3813 (frame_apply_level_command): New function.
3814 (frame_apply_all_command): New function.
3815 (frame_apply_command): New function.
3816 (faas_command): New function.
3817 (frame_cmd_list): New variable.
3818 (_initialize_stack): Update to setup the new commands 'frame apply'
3821 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3823 * cli-utils.c (number_or_range_parser::get_number): Only handle
3824 numbers or convenience var as numbers.
3825 (parse_flags): New function.
3826 (parse_flags_qcs): New function.
3827 (number_or_range_parser::finished): Ensure parsing end is detected
3828 before end of string.
3829 * cli-utils.h (parse_flags): New function.
3830 (parse_flags_qcs): New function.
3831 (number_or_range_parser): Remove m_finished bool.
3832 (number_or_range_parser::skip_range): Set m_in_range to false.
3834 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3836 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3839 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3840 Jan Kratochvil <jan.kratochvil@redhat.com>
3841 Paul Fertser <fercerpav@gmail.com>
3842 Tsutomu Seki <sekiriki@gmail.com>
3843 Pedro Alves <palves@redhat.com>
3845 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3846 'unittests/parse-connection-spec-selftests.c'.
3847 (COMMON_SFILES): Add 'common/netstuff.c'.
3848 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3849 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3850 * common/netstuff.c: New file.
3851 * common/netstuff.h: New file.
3852 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3853 (wait_for_connect): Update comment. New parameter
3854 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3855 Use 'sock' directly instead of 'scb->fd'.
3856 (try_connect): New function, with code from 'net_open'.
3857 (net_open): Rewrite main loop to deal with multiple
3858 sockets/addresses. Handle IPv6-style hostnames; implement
3859 support for IPv6 connections.
3860 * unittests/parse-connection-spec-selftests.c: New file.
3862 2018-07-11 Pedro Alves <palves@redhat.com>
3865 * remote.c (remote_target::remote_detach_pid): Call
3866 set_current_process.
3868 2018-07-11 Pedro Alves <palves@redhat.com>
3870 * h8300-tdep.c (h8300_gdbarch_init): Remove
3871 set_gdbarch_ecoff_reg_to_regnum calls.
3873 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3876 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3877 offsets/sizes for static members of a class/struct.
3879 2018-07-11 Alan Hayward <alan.hayward@arm.com>
3881 * target-descriptions.c (tdesc_register_bitsize): Rename.
3882 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3883 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3884 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3886 2018-07-10 Tom Tromey <tom@tromey.com>
3888 * breakpoint.c (moribund_locations): Now static and a
3890 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3891 (build_bpstat_chain, update_global_location_list)
3892 (breakpoint_retire_moribund): Update.
3893 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3896 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3898 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3899 (riscv_register_reggroup_p): Use new function, remove unneeded
3901 (riscv_push_dummy_call): Extend assert to compare against xlen or
3902 flen based on register type.
3904 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3906 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3908 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3910 * remote.c (show_hardware_watchpoint_limit): New function.
3911 (show_hardware_watchpoint_length_limit): New function.
3912 (show_hardware_breakpoint_limit): New function.
3913 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
3914 where appropriate, update help text.
3916 2018-07-09 Tom Tromey <tom@tromey.com>
3918 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
3919 (CLIBS): Don't mention NAT_CLIBS.
3921 2018-07-09 Tom Tromey <tom@tromey.com>
3923 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
3924 (LIBGDB_OBS, clean mostlyclean): Update.
3925 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
3927 2018-07-09 Tom Tromey <tom@tromey.com>
3929 * Makefile.in (%.c: %.y): Use ECHO_YACC.
3930 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
3931 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
3933 2018-07-09 Tom Tromey <tom@tromey.com>
3935 * Makefile.in (ALLDEPFILES): Remove exec.c.
3936 (COMMON_OBS): Remove exec.o.
3937 (COMMON_SFILES): Add exec.c.
3939 2018-07-09 Tom Tromey <tom@tromey.com>
3941 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
3943 2018-07-09 Tom Tromey <tom@tromey.com>
3945 * Makefile.in (clean mostlyclean): Remove stamp-version.
3946 (version.c): Depend on stamp-version.
3947 (stamp-version): New rule, from version.c rule.
3949 2018-07-09 Tom Tromey <tom@tromey.com>
3951 * Makefile.in (init.c): Depend on stamp-init.
3952 (stamp-init): New rule, from init.c rule.
3953 (clean mostlyclean): Remove stamp-init.
3955 2018-07-09 Tom Tromey <tom@tromey.com>
3957 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
3958 SUBDIR_GCC_COMPILE_SRCS.
3960 2018-07-09 Tom Tromey <tom@tromey.com>
3962 * Makefile.in (init.c): Remove some unused sed rules.
3964 2018-07-09 Tom Tromey <tom@tromey.com>
3966 * Makefile.in (TSOBS): Remove.
3967 (INIT_FILES): Update.
3968 (LIBGDB_OBS): Update.
3969 (COMMON_SFILES): Add inflow.c.
3970 (SFILES): Remove inflow.c.
3972 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3974 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
3976 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
3978 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
3979 get_saveloc_name, is_signal_frame_name, step_name,
3980 init_remote_name, create_addr_space_name,
3981 destroy_addr_space_name, search_unwind_table_name,
3982 find_dyn_list_name): Constify.
3984 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
3986 * darwin-nat.c (darwin_pthread_kill): New function.
3987 (darwin_resume_thread): Use darwin_pthread_kill.
3989 2018-07-05 Tom de Vries <tdevries@suse.de>
3991 * macroexp.c (macro_buffer) <operator=>: New member function.
3993 2018-07-04 Tom Tromey <tom@tromey.com>
3995 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
3997 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
3999 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4000 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4001 * maint.c: Likewise.
4004 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4006 * NEWS: Create a new section for the next release branch.
4007 Rename the section of the current branch, now that it has
4010 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4012 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4013 * version.in: Bump version to 8.2.50.DATE-git.
4015 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4016 Pedro Alves <palves@redhat.com>
4018 * linux-nat.c (linux_init_ptrace): Rename to ...
4019 (linux_init_ptrace_procfs): ... this. Call
4020 linux_proc_init_warnings.
4021 (linux_nat_target::post_attach)
4022 (linux_nat_target::post_startup_inferior): Adjust.
4023 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4024 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4026 2018-07-04 Tom de Vries <tdevries@suse.de>
4028 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4030 (read_comp_unit_head): ... here.
4032 2018-07-03 Tom Tromey <tom@tromey.com>
4034 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4035 (stop_tracing, tstatus_command)
4036 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4037 (print_one_static_tracepoint_marker): Update.
4038 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4040 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4042 (all_tracepoints, static_tracepoints_here): Return std::vector.
4044 2018-07-03 Tom Tromey <tom@tromey.com>
4046 * common/ptid.c (ptid_equal): Remove.
4047 * common/ptid.h (ptid_equal): Don't declare.
4048 * ada-tasks.c: Update.
4049 * breakpoint.c: Update.
4050 * common/agent.c: Update.
4051 * corelow.c: Update.
4052 * darwin-nat-info.c: Update.
4053 * darwin-nat.c: Update.
4055 * dtrace-probe.c: Update.
4056 * dummy-frame.c: Update.
4057 * fbsd-nat.c: Update.
4059 * gdbthread.h: Update.
4060 * gnu-nat.c: Update.
4061 * go32-nat.c: Update.
4062 * inf-loop.c: Update.
4063 * inf-ptrace.c: Update.
4064 * infcall.c: Update.
4068 * linux-fork.c: Update.
4069 * linux-nat.c: Update.
4070 * linux-thread-db.c: Update.
4071 * mi/mi-cmd-var.c: Update.
4072 * mi/mi-interp.c: Update.
4073 * mi/mi-main.c: Update.
4074 * nto-procfs.c: Update.
4075 * ppc-linux-tdep.c: Update.
4077 * python/py-inferior.c: Update.
4078 * python/py-record-btrace.c: Update.
4079 * python/py-record.c: Update.
4080 * ravenscar-thread.c: Update.
4081 * regcache.c: Update.
4082 * remote-sim.c: Update.
4084 * sol-thread.c: Update.
4087 * tui/tui-stack.c: Update.
4089 * windows-nat.c: Update.
4090 * windows-tdep.c: Update.
4092 2018-07-03 Tom Tromey <tom@tromey.com>
4094 * common/ptid.c (ptid_match): Remove.
4095 * common/ptid.h (ptid_match): Don't declare.
4096 * fbsd-nat.c: Update.
4099 * linux-nat.c: Update.
4100 * record-btrace.c: Update.
4101 * regcache.c: Update.
4104 2018-07-03 Tom Tromey <tom@tromey.com>
4106 * common/ptid.c (ptid_tid_p): Remove.
4107 * common/ptid.h (ptid_tid_p): Don't declare.
4108 * sol-thread.c: Update.
4110 2018-07-03 Tom Tromey <tom@tromey.com>
4112 * common/ptid.c (ptid_lwp_p): Remove.
4113 * common/ptid.h (ptid_lwp_p): Don't declare.
4114 * fbsd-nat.c: Update.
4115 * linux-nat.c: Update.
4116 * nat/linux-procfs.c: Update.
4117 * nat/x86-linux-dregs.c: Update.
4118 * sol-thread.c: Update.
4120 2018-07-03 Tom Tromey <tom@tromey.com>
4122 * common/ptid.c (ptid_is_pid): Remove.
4123 * common/ptid.h (ptid_is_pid): Don't declare.
4125 * linux-nat.c: Update.
4126 * mi/mi-interp.c: Update.
4130 2018-07-03 Tom Tromey <tom@tromey.com>
4132 * common/ptid.c (ptid_get_tid): Remove.
4133 * common/ptid.h (ptid_get_tid): Don't declare.
4134 * ada-tasks.c: Update.
4135 * aix-thread.c: Update.
4136 * bsd-uthread.c: Update.
4137 * darwin-nat.c: Update.
4138 * fbsd-nat.c: Update.
4139 * i386-darwin-nat.c: Update.
4141 * linux-tdep.c: Update.
4142 * nto-procfs.c: Update.
4143 * ppc-ravenscar-thread.c: Update.
4144 * python/py-infthread.c: Update.
4145 * ravenscar-thread.c: Update.
4146 * sol-thread.c: Update.
4147 * sparc-ravenscar-thread.c: Update.
4148 * windows-nat.c: Update.
4150 2018-07-03 Tom Tromey <tom@tromey.com>
4152 * common/ptid.c (ptid_get_lwp): Remove.
4153 * common/ptid.h (ptid_get_lwp): Don't declare.
4154 * aarch64-linux-nat.c: Update.
4155 * ada-tasks.c: Update.
4156 * aix-thread.c: Update.
4157 * amd64-linux-nat.c: Update.
4158 * arm-linux-nat.c: Update.
4159 * corelow.c: Update.
4160 * fbsd-nat.c: Update.
4161 * fbsd-tdep.c: Update.
4162 * gnu-nat.c: Update.
4163 * i386-cygwin-tdep.c: Update.
4164 * i386-gnu-nat.c: Update.
4165 * i386-linux-nat.c: Update.
4166 * ia64-linux-nat.c: Update.
4167 * inf-ptrace.c: Update.
4169 * linux-fork.c: Update.
4170 * linux-nat.c: Update.
4171 * linux-tdep.c: Update.
4172 * linux-thread-db.c: Update.
4173 * mips-linux-nat.c: Update.
4174 * nat/aarch64-linux-hw-point.c: Update.
4175 * nat/aarch64-linux.c: Update.
4176 * nat/linux-btrace.c: Update.
4177 * nat/linux-osdata.c: Update.
4178 * nat/linux-procfs.c: Update.
4179 * nat/x86-linux-dregs.c: Update.
4180 * obsd-nat.c: Update.
4181 * ppc-fbsd-nat.c: Update.
4182 * ppc-linux-nat.c: Update.
4184 * python/py-infthread.c: Update.
4185 * ravenscar-thread.c: Update.
4187 * s390-linux-nat.c: Update.
4188 * sol-thread.c: Update.
4189 * sol2-tdep.c: Update.
4190 * spu-linux-nat.c: Update.
4191 * x86-linux-nat.c: Update.
4192 * xtensa-linux-nat.c: Update.
4194 2018-07-03 Tom Tromey <tom@tromey.com>
4196 * common/ptid.c (ptid_get_pid): Remove.
4197 * common/ptid.h (ptid_get_pid): Don't declare.
4198 * aarch64-linux-nat.c: Update.
4199 * ada-lang.c: Update.
4200 * aix-thread.c: Update.
4201 * alpha-bsd-nat.c: Update.
4202 * amd64-fbsd-nat.c: Update.
4203 * amd64-linux-nat.c: Update.
4204 * arm-linux-nat.c: Update.
4205 * arm-nbsd-nat.c: Update.
4207 * break-catch-syscall.c: Update.
4208 * breakpoint.c: Update.
4209 * bsd-uthread.c: Update.
4210 * corelow.c: Update.
4212 * darwin-nat.c: Update.
4213 * fbsd-nat.c: Update.
4214 * fbsd-tdep.c: Update.
4216 * gnu-nat.c: Update.
4217 * hppa-nbsd-nat.c: Update.
4218 * hppa-obsd-nat.c: Update.
4219 * i386-fbsd-nat.c: Update.
4220 * ia64-linux-nat.c: Update.
4221 * inf-ptrace.c: Update.
4223 * inferior.c: Update.
4224 * inferior.h: Update.
4227 * linux-fork.c: Update.
4228 * linux-nat.c: Update.
4229 * linux-tdep.c: Update.
4230 * linux-thread-db.c: Update.
4231 * m68k-bsd-nat.c: Update.
4232 * mi/mi-interp.c: Update.
4233 * mi/mi-main.c: Update.
4234 * mips-linux-nat.c: Update.
4235 * mips-nbsd-nat.c: Update.
4236 * mips64-obsd-nat.c: Update.
4237 * nat/aarch64-linux-hw-point.c: Update.
4238 * nat/aarch64-linux.c: Update.
4239 * nat/linux-btrace.c: Update.
4240 * nat/linux-osdata.c: Update.
4241 * nat/linux-procfs.c: Update.
4242 * nat/x86-linux-dregs.c: Update.
4243 * nto-procfs.c: Update.
4244 * obsd-nat.c: Update.
4245 * ppc-linux-nat.c: Update.
4246 * ppc-nbsd-nat.c: Update.
4247 * ppc-obsd-nat.c: Update.
4248 * proc-service.c: Update.
4250 * python/py-inferior.c: Update.
4251 * python/py-infthread.c: Update.
4252 * ravenscar-thread.c: Update.
4254 * remote-sim.c: Update.
4256 * rs6000-nat.c: Update.
4257 * s390-linux-nat.c: Update.
4258 * sh-nbsd-nat.c: Update.
4259 * sol-thread.c: Update.
4260 * sparc-nat.c: Update.
4261 * sparc64-tdep.c: Update.
4262 * spu-linux-nat.c: Update.
4263 * spu-tdep.c: Update.
4264 * target-debug.h: Update.
4267 * tid-parse.c: Update.
4268 * tracefile-tfile.c: Update.
4269 * vax-bsd-nat.c: Update.
4270 * windows-nat.c: Update.
4271 * x86-linux-nat.c: Update.
4272 * x86-nat.c: Update.
4274 2018-07-03 Tom Tromey <tom@tromey.com>
4276 * common/ptid.c (pid_to_ptid): Remove.
4277 * common/ptid.h (pid_to_ptid): Don't declare.
4278 * aix-thread.c: Update.
4279 * arm-linux-nat.c: Update.
4280 * common/ptid.c: Update.
4281 * common/ptid.h: Update.
4282 * corelow.c: Update.
4284 * darwin-nat.c: Update.
4285 * fbsd-nat.c: Update.
4286 * fork-child.c: Update.
4287 * gnu-nat.c: Update.
4288 * go32-nat.c: Update.
4289 * inf-ptrace.c: Update.
4291 * inferior.c: Update.
4293 * linux-fork.c: Update.
4294 * linux-nat.c: Update.
4295 * nat/aarch64-linux-hw-point.c: Update.
4296 * nat/fork-inferior.c: Update.
4297 * nat/x86-linux-dregs.c: Update.
4298 * nto-procfs.c: Update.
4299 * obsd-nat.c: Update.
4301 * progspace.c: Update.
4303 * rs6000-nat.c: Update.
4304 * s390-linux-nat.c: Update.
4305 * sol-thread.c: Update.
4306 * spu-linux-nat.c: Update.
4309 * tracefile-tfile.c: Update.
4310 * windows-nat.c: Update.
4312 2018-07-03 Tom Tromey <tom@tromey.com>
4314 * common/ptid.h (ptid_build): Don't declare.
4315 * common/ptid.c (ptid_build): Remove.
4316 * aix-thread.c: Update.
4317 * bsd-kvm.c: Update.
4318 * bsd-uthread.c: Update.
4319 * common/agent.c: Update.
4320 * common/ptid.c: Update.
4321 * common/ptid.h: Update.
4322 * corelow.c: Update.
4323 * darwin-nat.c: Update.
4324 * fbsd-nat.c: Update.
4325 * gnu-nat.c: Update.
4326 * linux-fork.c: Update.
4327 * linux-nat.c: Update.
4328 * linux-thread-db.c: Update.
4329 * nat/linux-osdata.c: Update.
4330 * nat/linux-procfs.c: Update.
4331 * nto-procfs.c: Update.
4332 * obsd-nat.c: Update.
4333 * proc-service.c: Update.
4335 * ravenscar-thread.c: Update.
4336 * remote-sim.c: Update.
4338 * sol-thread.c: Update.
4340 * windows-nat.c: Update.
4342 2018-07-03 Tom Tromey <tom@tromey.com>
4344 * infrun.c (follow_exec): Use exit_inferior_silent.
4345 * inferior.c (exit_inferior_num_silent): Remove.
4346 * inferior.h (exit_inferior_num_silent): Don't declare.
4348 2018-07-03 Tom Tromey <tom@tromey.com>
4351 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4352 inferior_ptid on error.
4354 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4355 Simon Marchi <simon.marchi@polymtl.ca>
4358 * disasm.h (gdb_disassembler): Add
4359 `m_disassembler_options_holder'. member
4360 * disasm.c (get_all_disassembler_options): New function.
4361 (gdb_disassembler::gdb_disassembler): Use it.
4362 (gdb_buffered_insn_length_init_dis): Likewise.
4363 (gdb_buffered_insn_length): Adjust accordingly.
4364 (set_disassembler_options): Handle options with arguments.
4365 (show_disassembler_options_sfunc): Likewise. Add a leading new
4366 line if showing options with descriptions.
4367 (disassembler_options_completer): Adapt to using the
4368 `disasm_options_and_args_t' structure.
4369 * mips-tdep.c (mips_disassembler_options): New variable.
4370 (mips_disassembler_options_o32): Likewise.
4371 (mips_disassembler_options_n32): Likewise.
4372 (mips_disassembler_options_n64): Likewise.
4373 (gdb_print_insn_mips): Don't set `disassembler_options'.
4374 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4376 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4377 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4378 `gdbarch_disassembler_options_implicit' and
4379 `gdbarch_valid_disassembler_options'.
4380 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4381 `disasm_options_and_args_t' structure.
4382 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4384 (valid_disassembler_options): Switch from `disasm_options_t' to
4385 the `disasm_options_and_args_t' structure.
4386 * NEWS: Document `set disassembler-options' support for the MIPS
4388 * gdbarch.h: Regenerate.
4389 * gdbarch.c: Regenerate.
4391 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4393 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4395 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4397 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4398 parameter in call to amd64_target_description.
4399 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4400 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4401 (amd64fbsd_init_abi): Likewise.
4402 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4403 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4404 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4405 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4407 2018-06-29 Pedro Alves <palves@redhat.com>
4409 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4410 "segments" parameter.
4411 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4412 (_initialize_amd64_tdep): Update call to
4413 amd64_create_target_description.
4414 (amd64_target_description): Add "segments" parameter. Adjust
4415 the implementation to use it.
4416 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4417 call to amd64_create_target_description.
4418 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4419 * gdb/arch/amd64.h (amd64_create_target_description): Add
4420 "segments" register.
4421 * gdb/arch/amd64.c (amd64_create_target_description): Add
4422 "segments" parameter. Call create_feature_i386_64bit_segments
4423 only if SEGMENTS is true.
4424 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4425 call to amd64_create_target_description.
4427 2018-06-29 Pedro Alves <palves@redhat.com>
4429 * thread.c (thread_target_id_str): New, factored out from ...
4430 (print_thread_info_1): ... here. Use it to compute the max
4431 "Target Id" column width.
4433 2018-06-29 Pedro Alves <palves@redhat.com>
4435 * remote.c (remote_target::extra_thread_info): Delete
4436 'display_buf' and 'n' locals. from the cache, regardless of
4437 packet mechanims is in use. Use cache for qThreadExtra and qP
4440 2018-06-29 Pedro Alves <palves@redhat.com>
4442 * blockframe.c (find_pc_sect_containing_function): New function.
4443 * breakpoint.c (print_breakpoint_location): Don't call
4444 find_pc_sect_function.
4445 * linespec.c (create_sals_line_offset): Record the location's
4447 * linespec.c (convert_address_location_to_sals): Fill in sal's
4448 symbol with find_pc_sect_containing_function.
4449 * symtab.c (find_function_start_sal): Rename to ...
4450 (find_function_start_sal_1): ... this.
4451 (find_function_start_sal): Reimplement as wrapper around
4452 find_function_start_sal_1, and use
4453 find_pc_sect_containing_function to fill in the sal's symbol.
4454 (find_function_start_sal(symbol*, bool)): Adjust.
4455 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4457 (find_pc_sect_containing_function): Declare.
4459 2018-06-29 Pedro Alves <palves@redhat.com>
4461 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4462 true if the the location has no symbol.
4464 2018-06-28 Tom Tromey <tom@tromey.com>
4466 * NEWS: Mention --enable-codesign.
4467 * silent-rules.mk (ECHO_SIGN): New variable.
4468 * configure.ac: Add --enable-codesign.
4469 * configure: Rebuild.
4470 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4471 (gdb$(EXEEXT)): Optionally invoke codesign.
4473 2018-06-28 Pedro Alves <palves@redhat.com>
4475 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4477 (switch_to_thread_no_regs): Adjust comment.
4478 * infcmd.c (stop_pc): Delete.
4479 (post_create_inferior, info_program_command): Replace references
4480 to stop_pc with references to thread_info->suspend.stop_pc.
4481 * inferior.h (stop_pc): Delete declaration.
4482 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4483 (handle_inferior_event_1, handle_signal_stop)
4484 (process_event_stop_test, keep_going_stepped_thread)
4485 (handle_step_into_function, handle_step_into_function_backward)
4486 (print_stop_location): Replace references to stop_pc with
4487 references to thread_info->suspend.stop_pc.
4488 (struct infcall_suspend_state) <stop_pc>: Delete field.
4489 (save_infcall_suspend_state, restore_infcall_suspend_state):
4490 Remove references to inf_stat->stop_pc.
4491 * linux-fork.c (fork_load_infrun_state): Likewise.
4492 * record-btrace.c (record_btrace_set_replay): Likewise.
4493 * record-full.c (record_full_goto_entry): Likewise.
4494 * remote.c (print_one_stopped_thread): Likewise.
4495 * target.c (target_resume): Extend comment.
4496 * thread.c (set_executing_thread): New.
4497 (set_executing): Use it.
4498 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4499 Remove references to stop_pc.
4501 2018-06-28 Pedro Alves <palves@redhat.com>
4503 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4504 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4506 2018-06-28 Tom Tromey <tom@tromey.com>
4508 * coffread.c (coff_symfile_finish): Update.
4509 * xcoffread.c (xcoff_symfile_finish): Update.
4510 * elfread.c (elf_symfile_finish): Update.
4511 * symfile.h (dwarf2_free_objfile): Don't declare.
4512 * dwarf2read.c (_initialize_dwarf2_read): Use
4513 register_objfile_data_with_cleanup.
4514 (dwarf2_free_objfile): Now static. Change signature.
4516 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4518 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4519 option "-o" to add-symbol-file-load to add an offset to each
4520 section's load address.
4521 * symfile.c (set_objfile_default_section_offset): New function.
4523 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4525 * symfile.c (add_symbol_file_command): Make sure that sections
4526 with the same name are sorted in the same order.
4528 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4530 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4531 require the second argument. If omitted, load sections at the
4532 addresses specified in the file.
4534 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4536 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4537 (_initialize_symfile): Add option "-o" to symbol-file to add an
4538 offset to each section of the symbol file.
4540 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4542 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4544 2018-06-27 Tom Tromey <tom@tromey.com>
4546 * stack.c (_initialize_stack): Update "func" help text.
4548 2018-06-27 Tom Tromey <tom@tromey.com>
4550 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4552 (unwind_infopy_str, pyuw_create_unwind_info)
4553 (unwind_infopy_add_saved_register, pyuw_sniffer)
4554 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4556 (struct saved_reg): Add constructor.
4557 <value>: Now a gdbpy_ref<>.
4559 2018-06-27 Tom Tromey <tom@tromey.com>
4561 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4563 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4565 * gdb-gdb.py.in: Format using autopep8.
4567 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4569 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4570 (type_lookup_function): Recognize CORE_ADDR values.
4572 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4574 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4577 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4579 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4582 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4584 * gdb-gdb.py: Move to...
4585 * gdb-gdb.py.in: ... here.
4586 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4587 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4589 (distclean): Remove gdb-gdb.py when cleaning.
4590 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4591 * configure: Re-generate.
4593 2018-06-27 Pedro Alves <palves@redhat.com>
4595 * proc-service.c (get_ps_regcache): New.
4596 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4597 (ps_lsetfpregs): Use it.
4599 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
4602 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4603 (dwarf_decode_lines_1): Adjust.
4605 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4607 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4609 <info_proc>: Likewise.
4611 2018-06-26 Joel Brobecker <brobecker@adacore.com>
4613 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4614 to windows_fetch_one_register, and only handle the case of
4615 fetching one register. Move the code that reloads the context
4616 and iterates over all registers if R is negative to...
4617 (windows_nat_target::fetch_registers): ... here.
4618 (do_windows_store_inferior_registers): Rename to
4619 windows_store_one_register, and only handle the case of storing
4620 one register. Move the code that handles the case where r is
4622 (windows_nat_target::store_registers) ... here.
4624 2018-06-26 Tom Tromey <tom@tromey.com>
4627 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4628 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4630 (rust_internal_print_type): Add podata parameter.
4631 (rust_print_type): Update.
4633 2018-06-26 Tom Tromey <tom@tromey.com>
4635 * typeprint.h (struct print_offset_data) <update, finish,
4636 maybe_print_hole>: New methods.
4637 <indentation>: New constant.
4638 * typeprint.c (print_offset_data::indentation): Define.
4639 (print_offset_data::maybe_print_hole, print_offset_data::update)
4640 (print_offset_data::finish): Move from c-typeprint.c and rename.
4641 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4642 (print_spaces_filtered_with_print_options): Update.
4643 (c_print_type_union_field_offset, maybe_print_hole)
4644 (c_print_type_struct_field_offset): Move to typeprint.c and
4646 (c_type_print_base_struct_union): Update.
4648 2018-06-25 Pedro Alves <palves@redhat.com>
4650 * gdbthread.h (thread_info_ref, delete_thread)
4651 (delete_thread_silent, first_thread_of_inferior)
4652 (any_thread_of_inferior, switch_to_thread)
4653 (enable_thread_stack_temporaries)
4654 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4655 (get_last_thread_stack_temporary)
4656 (value_in_thread_stack_temporaries, can_access_registers_thread):
4657 Spell out "struct thread_info" instead of just "thread_info".
4658 * inferior.h (notice_new_inferior): Likewise.
4660 2018-06-25 Pedro Alves <palves@redhat.com>
4662 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4663 pass thread_info pointer to delete_thread.
4664 (windows_nat_target::detach): Pass inferior pointer to
4666 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4668 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4669 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4670 and pass a thread_info pointer to delete_thread.
4671 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4672 pass thread_info pointer to delete_thread.
4673 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4674 delete_thread_silent call.
4675 * procfs.c (procfs_target::detach): Pass inferior pointer to
4677 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4678 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4679 delete_thread_silent call.
4680 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4681 pass thread_info pointer to delete_thread.
4682 (windows_nat_target::detach): Pass inferior pointer to
4685 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4687 * regcache.c (readable_regcache::read_part): Fix asserts.
4688 (reg_buffer::raw_collect_part): New function.
4689 (regcache::write_part): Fix asserts.
4690 (reg_buffer::raw_supply_part): New function.
4691 (regcache::transfer_regset_register): New helper function.
4692 (regcache::transfer_regset): Call new functions.
4693 (regcache_supply_regset): Use gdb_byte*.
4694 (regcache::supply_regset): Likewise.
4695 (regcache_collect_regset): Likewise.
4696 (regcache::collect_regset): Likewise.
4697 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4698 (reg_buffer::raw_supply_part): Likewise.
4699 (regcache::transfer_regset_register): Likewise.
4700 (regcache::transfer_regset): Use gdb_byte*.
4702 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4704 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4706 2018-06-21 Pedro Alves <palves@redhat.com>
4708 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4709 instead of a ptid_t. All callers adjusted.
4710 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4712 (print_ada_task_info, display_current_task_id, task_command_1):
4714 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4716 (breakpoint_kind): Adjust.
4717 (remove_breakpoints_pid): Rename to ...
4718 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4719 pointer. All callers adjusted.
4720 (bpstat_clear_actions): Use inferior_thread.
4721 (get_bpstat_thread): New.
4722 (bpstat_do_actions): Use it.
4723 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4724 to take a thread_info pointer. All callers adjusted.
4725 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4726 (breakpoint_re_set_thread): Use inferior_thread.
4727 * breakpoint.h (struct inferior): Forward declare.
4728 (bpstat_stop_status): Update.
4729 (remove_breakpoints_pid): Delete.
4730 (remove_breakpoints_inf): New.
4731 * bsd-uthread.c (bsd_uthread_target::wait)
4732 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4733 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4734 (maint_btrace_packet_history_cmd)
4735 (maint_btrace_clear_packet_history_cmd): Adjust.
4736 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4738 * cli/cli-interp.c: Include "inferior.h".
4739 * common/refcounted-object.h (struct
4740 refcounted_object_ref_policy): New.
4741 * compile/compile-object-load.c: Include gdbthread.h.
4742 (store_regs): Use inferior_thread.
4743 * corelow.c (core_target::close): Use current_inferior.
4744 (core_target_open): Adjust to use first_thread_of_inferior and use
4745 the current inferior.
4746 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4747 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4748 <thread>: ... this new field. All references adjusted.
4749 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4750 Take a thread_info pointer instead of a ptid_t.
4751 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4752 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4753 thread_info pointer instead of a ptid_t.
4754 * elfread.c: Include "inferior.h".
4755 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4756 Use inferior_thread.
4757 * eval.c (evaluate_subexp): Likewise.
4758 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4760 * gdb_proc_service.h (struct thread_info): Forward declare.
4761 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4762 <thread>: ... this new field. All references adjusted.
4763 * gdbarch.h, gdbarch.c: Regenerate.
4764 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4765 'thread' parameter. All implementations and callers adjusted.
4766 * gdbthread.h (thread_info) <set_running>: New method.
4767 (delete_thread, delete_thread_silent): Take a thread_info pointer
4769 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4770 (first_thread_of_process): Delete, replaced by ...
4771 (first_thread_of_inferior): ... this new function. All callers
4773 (any_live_thread_of_process): Delete, replaced by ...
4774 (any_live_thread_of_inferior): ... this new function. All callers
4776 (switch_to_thread, switch_to_no_thread): Declare.
4777 (is_executing): Delete.
4778 (enable_thread_stack_temporaries): Update comment.
4779 <enable_thread_stack_temporaries>: Take a thread_info pointer
4780 instead of a ptid_t. Incref the thread.
4781 <~enable_thread_stack_temporaries>: Decref the thread.
4784 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4785 (get_last_thread_stack_temporary)
4786 (value_in_thread_stack_temporaries, can_access_registers_thread):
4787 Take a thread_info pointer instead of a ptid_t. All callers
4789 * infcall.c (get_call_return_value): Use inferior_thread.
4790 (run_inferior_call): Work with thread pointers instead of ptid_t.
4791 (call_function_by_hand_dummy): Work with thread pointers instead
4792 of ptid_t. Use thread_info_ref.
4793 * infcmd.c (proceed_thread_callback): Access thread's state
4795 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4796 access thread's state directly.
4797 (continue_command): Use inferior_thread.
4798 (info_program_command): Use find_thread_ptid and access thread
4800 (proceed_after_attach_callback): Use thread state directly.
4801 (notice_new_inferior): Take a thread_info pointer instead of a
4802 ptid_t. All callers adjusted.
4803 (exit_inferior): Take an inferior pointer instead of a pid. All
4805 (exit_inferior_silent): New.
4806 (detach_inferior): Delete.
4807 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4808 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4809 (detach_inferior_command, kill_inferior_command): Use
4810 find_inferior_id instead of valid_gdb_inferior_id and
4811 gdb_inferior_id_to_pid.
4812 (inferior_command): Use inferior and thread pointers.
4813 * inferior.h (struct thread_info): Forward declare.
4814 (notice_new_inferior): Take a thread_info pointer instead of a
4815 ptid_t. All callers adjusted.
4816 (detach_inferior): Delete declaration.
4817 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4818 instead of a pid. All callers adjusted.
4819 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4820 (valid_gdb_inferior_id): Delete.
4821 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4822 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4823 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4825 <inf>: ... this new field.
4826 <step_ptid>: Delete, replaced by ...
4827 <step_thread>: ... this new field.
4828 (get_displaced_stepping_state): Take an inferior pointer instead
4829 of a pid. All callers adjusted.
4830 (displaced_step_in_progress_any_inferior): Adjust.
4831 (displaced_step_in_progress_thread): Take a thread pointer instead
4832 of a ptid_t. All callers adjusted.
4833 (displaced_step_in_progress, add_displaced_stepping_state): Take
4834 an inferior pointer instead of a pid. All callers adjusted.
4835 (get_displaced_step_closure_by_addr): Adjust.
4836 (remove_displaced_stepping_state): Take an inferior pointer
4837 instead of a pid. All callers adjusted.
4838 (displaced_step_prepare_throw, displaced_step_prepare)
4839 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4840 All callers adjusted.
4841 (start_step_over): Adjust.
4842 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4843 displaced step queue.
4844 (do_target_resume): Adjust.
4845 (fetch_inferior_event): Use inferior_thread.
4846 (context_switch, get_inferior_stop_soon): Take an
4847 execution_control_state pointer instead of a ptid_t. All callers
4849 (switch_to_thread_cleanup): Delete.
4850 (stop_all_threads): Use scoped_restore_current_thread.
4851 * inline-frame.c: Include "gdbthread.h".
4852 (inline_state) <inline_state>: Take a thread pointer instead of a
4853 ptid_t. All callers adjusted.
4854 <ptid>: Delete, replaced by ...
4855 <thread>: ... this new field.
4856 (find_inline_frame_state): Take a thread pointer instead of a
4857 ptid_t. All callers adjusted.
4858 (skip_inline_frames, step_into_inline_frame)
4859 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4860 pointer instead of a ptid_t. All callers adjusted.
4861 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4862 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4863 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4865 * linux-nat.c (get_detach_signal): Likewise.
4866 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4867 (thread_db_notice_clone): Adjust.
4868 (thread_db_find_new_threads_silently)
4869 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4870 a thread pointer instead of a ptid_t. All callers adjusted.
4871 * mi/mi-cmd-var.c: Include "inferior.h".
4872 (mi_cmd_var_update_iter): Update to use thread pointers.
4873 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4875 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4877 (mi_output_running): ... this new function.
4878 (mi_on_resume_1): Adjust to use it.
4879 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4880 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4882 (interrupt_thread_callback): : Adjust to use thread and inferior
4884 * proc-service.c: Include "gdbthread.h".
4885 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4886 * progspace-and-thread.c: Include "inferior.h".
4887 * progspace.c: Include "inferior.h".
4888 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4889 hold a reference to an inferior_object.
4890 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4892 * python/py-inferior.c (struct inferior_object): Give the type a
4893 tag name instead of a typedef.
4894 (python_on_normal_stop): No need to check if the current thread is
4896 (inferior_to_inferior_object): Change return type to
4897 inferior_object. All callers adjusted.
4898 (find_thread_object): Delete, bits factored out to ...
4899 (thread_to_thread_object): ... this new function.
4900 * python/py-infthread.c (create_thread_object): Use
4901 inferior_to_inferior_object.
4902 (thpy_is_stopped): Use thread pointer directly.
4903 (gdbpy_selected_thread): Use inferior_thread.
4904 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4905 field, replaced with ...
4906 <thread>: ... this new field. All users adjusted.
4907 (btpy_insn_or_gap_new): Drop const.
4908 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
4910 * python/py-record.c: Include "gdbthread.h".
4911 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4912 a ptid_t. All callers adjusted.
4913 (gdbpy_current_recording): Use inferior_thread.
4914 * python/py-record.h (recpy_record_object) <ptid>: Delete
4915 field, replaced with ...
4916 <thread>: ... this new field. All users adjusted.
4917 (recpy_element_object) <ptid>: Delete
4918 field, replaced with ...
4919 <thread>: ... this new field. All users adjusted.
4920 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4921 a ptid_t. All callers adjusted.
4922 * python/py-threadevent.c: Include "gdbthread.h".
4923 (get_event_thread): Use thread_to_thread_object.
4924 * python/python-internal.h (struct inferior_object): Forward
4926 (find_thread_object, find_inferior_object): Delete declarations.
4927 (thread_to_thread_object, inferior_to_inferior_object): New
4929 * record-btrace.c: Include "inferior.h".
4930 (require_btrace_thread): Use inferior_thread.
4931 (record_btrace_frame_sniffer)
4932 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
4933 (get_thread_current_frame): Use scoped_restore_current_thread and
4935 (get_thread_current_frame): Use thread pointer directly.
4936 (record_btrace_replay_at_breakpoint): Use thread's inferior
4938 * record-full.c: Include "inferior.h".
4939 * regcache.c: Include "gdbthread.h".
4940 (get_thread_arch_regcache): Use the inferior's address space
4942 (get_thread_regcache, registers_changed_thread): New.
4943 * regcache.h (get_thread_regcache(thread_info *thread)): New
4945 (registers_changed_thread): New.
4946 (remote_target) <remote_detach_1>: Swap order of parameters.
4947 (remote_add_thread): <remote_add_thread>: Return the new thread.
4948 (get_remote_thread_info(ptid_t)): New overload.
4949 (remote_target::remote_notice_new_inferior): Use thread pointers
4951 (remote_target::process_initial_stop_replies): Use
4952 thread_info::set_running.
4953 (remote_target::remote_detach_1, remote_target::detach)
4954 (extended_remote_target::detach): Adjust.
4955 * stack.c (frame_show_address): Use inferior_thread.
4956 * target-debug.h (target_debug_print_thread_info_pp): New.
4957 * target-delegates.c: Regenerate.
4958 * target.c (default_thread_address_space): Delete.
4959 (memory_xfer_partial_1): Use current_inferior.
4960 (target_detach): Use current_inferior.
4961 (target_thread_address_space): Delete.
4962 (generic_mourn_inferior): Use current_inferior.
4963 * target.h (struct target_ops) <thread_address_space>: Delete.
4964 (target_thread_address_space): Delete.
4965 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
4967 (delete_thread_1, delete_thread, delete_thread_silent): Take a
4968 thread pointer instead of a ptid_t. Adjust all callers.
4969 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
4970 (first_thread_of_process): Delete, replaced by ...
4971 (first_thread_of_inferior): ... this new function. All callers
4973 (any_thread_of_process): Rename to ...
4974 (any_thread_of_inferior): ... this, and take an inferior pointer.
4975 (any_live_thread_of_process): Rename to ...
4976 (any_live_thread_of_inferior): ... this, and take an inferior
4978 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4979 (value_in_thread_stack_temporaries)
4980 (get_last_thread_stack_temporary): Take a thread pointer instead
4981 of a ptid_t. Adjust all callers.
4982 (thread_info::set_running): New.
4983 (validate_registers_access): Use inferior_thread.
4984 (can_access_registers_ptid): Rename to ...
4985 (can_access_registers_thread): ... this, and take a thread
4987 (print_thread_info_1): Adjust to compare thread pointers instead
4989 (switch_to_no_thread, switch_to_thread): Make extern.
4990 (scoped_restore_current_thread::~scoped_restore_current_thread):
4991 Use m_thread pointer directly.
4992 (scoped_restore_current_thread::scoped_restore_current_thread):
4993 Use inferior_thread.
4994 (thread_command): Use thread pointer directly.
4995 (thread_num_make_value_helper): Use inferior_thread.
4996 * top.c (execute_command): Use inferior_thread.
4997 * tui/tui-interp.c: Include "inferior.h".
4998 * varobj.c (varobj_create): Use inferior_thread.
4999 (value_of_root_1): Use find_thread_global_id instead of
5000 global_thread_id_to_ptid.
5002 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5004 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5006 (regcache::write_part): Likewise.
5007 (readable_regcache::cooked_read_part): Update comment.
5008 (readable_regcache::cooked_write_part): Likewise.
5009 * regcache.h: (readable_regcache::read_part): Likewise.
5010 (regcache::write_part): Likewise.
5012 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5013 Dirk Schubert <dirk.schubert@arm.com>
5015 * aarch64-linux-nat.c (post_attach): New.
5016 (aarch64_linux_nat_target::post_attach): Override post_attach to
5017 record the number of hardware debug registers.
5019 2018-06-20 Tom Tromey <tom@tromey.com>
5021 * python/py-param.c (add_setshow_generic): Make parameters const.
5022 (parmpy_init): Update.
5024 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5026 * regcache.h (regcache_cooked_read_ftype): Rename to...
5027 (register_read_ftype): ...this, change type to function_view.
5028 (class reg_buffer) <save>: Remove src parameter.
5029 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5030 parameter non-const in first overload. Remove src parameter in
5032 * regcache.c (do_cooked_read): Remove.
5033 (readonly_detached_regcache::readonly_detached_regcache): Make
5034 parameter non-const, adjust call to other constructor.
5035 (reg_buffer::save): Remove src parameter.
5036 * frame.c (do_frame_register_read): Remove.
5037 (frame_save_as_regcache): Use lambda function.
5038 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5039 parameter to ppu2spu_data *.
5040 (ppu2spu_sniffer): Use lambda function.
5042 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5044 * record-full.c (record_full_target::insert_breakpoint): Remove
5045 "struct" keyword, add const.
5047 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5049 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5050 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5051 * configure.ac: Remove AC_PREREQ, add missing quoting.
5052 * gnulib/configure.ac: Modernize usage of
5053 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5054 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5055 (AUTOMAKE_VERSION): Bump to 1.15.1.
5056 * configure: Re-generate.
5057 * config.in: Re-generate.
5058 * aclocal.m4: Re-generate.
5059 * gnulib/aclocal.m4: Re-generate.
5060 * gnulib/config.in: Re-generate.
5061 * gnulib/configure: Re-generate.
5062 * gnulib/import/Makefile.in: Re-generate.
5064 2018-06-19 Pedro Alves <palves@redhat.com>
5066 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5067 (lookup_minimal_symbol_by_pc_section): ... here with
5068 gdb_assert_not_reached added.
5070 2018-06-19 Pedro Alves <palves@redhat.com>
5072 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5073 parameter with a block parameter. Compare location's block symbol
5074 with the frame's block instead of addresses.
5075 (skip_inline_frames): Pass the current block instead of the
5076 frame's address. Break out as soon as we determine the frame
5077 should not be skipped.
5079 2018-06-18 Tom Tromey <tom@tromey.com>
5081 * solib-aix.c (solib_aix_get_section_offsets): Return
5083 (solib_aix_solib_create_inferior_hook): Update.
5085 2018-06-18 Tom Tromey <tom@tromey.com>
5087 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5089 2018-06-18 Tom Tromey <tom@tromey.com>
5091 * solib-frv.c (frv_relocate_main_executable): Use
5093 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5096 2018-06-18 Tom Tromey <tom@tromey.com>
5098 * objfiles.h (inhibit_section_map_updates): Update.
5099 (resume_section_map_updates, resume_section_map_updates_cleanup):
5101 * solib-svr4.c (svr4_handle_solib_event): Update.
5102 * objfiles.c (inhibit_section_map_updates): Return
5103 scoped_restore_tmpl<int>.
5104 (resume_section_map_updates, resume_section_map_updates_cleanup):
5107 2018-06-18 Tom Tromey <tom@tromey.com>
5109 * valprint.h (read_string): Update.
5110 * valprint.c (read_string): Change type of "buffer".
5111 (val_print_string): Update.
5112 * python/py-value.c (valpy_string): Update.
5113 * language.h (struct language_defn) <la_get_string>: Change
5115 (default_get_string, c_get_string): Update.
5116 * language.c (default_get_string): Change type of "buffer".
5117 * guile/scm-value.c (gdbscm_value_to_string): Update.
5118 * c-lang.c (c_get_string): Change type of "buffer".
5120 2018-06-18 Tom Tromey <tom@tromey.com>
5122 * ser-mingw.c (struct pipe_state_destroyer): New.
5123 (pipe_state_up): New typedef.
5124 (cleanup_pipe_state): Remove.
5125 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5127 2018-06-18 Tom Tromey <tom@tromey.com>
5129 * rust-lang.h (rust_yyerror): Don't declare.
5130 * rust-lang.c (rust_language_defn): Update.
5131 * rust-exp.y (yyerror): Now static.
5132 * parse.c (parse_exp_in_context_1): Update.
5133 * p-lang.h (p_yyerror): Don't declare.
5134 * p-lang.c (p_language_defn): Update.
5135 * p-exp.y (yyerror): Now static.
5136 * opencl-lang.c (opencl_language_defn): Update.
5137 * objc-lang.c (objc_language_defn): Update.
5138 * m2-lang.h (m2_yyerror): Don't declare.
5139 * m2-lang.c (m2_language_defn): Update.
5140 * m2-exp.y (yyerror): Now static.
5141 * language.h (struct language_defn) <la_error>: Remove.
5142 * language.c (unk_lang_error): Remove.
5143 (unknown_language_defn, auto_language_defn): Remove.
5144 * go-lang.h (go_yyerror): Don't declare.
5145 * go-lang.c (go_language_defn): Update.
5146 * go-exp.y (yyerror): Now static.
5147 * f-lang.h (f_yyerror): Don't declare.
5148 * f-lang.c (f_language_defn): Update.
5149 * f-exp.y (yyerror): Now static.
5150 * d-lang.h (d_yyerror): Don't declare.
5151 * d-lang.c (d_language_defn): Update.
5152 * d-exp.y (yyerror): Now static.
5153 * c-lang.h (c_yyerror): Don't declare.
5154 * c-lang.c (c_language_defn, cplus_language_defn)
5155 (asm_language_defn, minimal_language_defn): Update.
5156 * c-exp.y (yyerror): Now static.
5157 * ada-lang.h (ada_yyerror): Don't declare.
5158 * ada-lang.c (ada_language_defn): Update.
5159 * ada-exp.y (yyerror): Now static.
5161 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5163 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5164 (store_sveregs_to_thread): Likewise.
5165 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5166 (aarch64_linux_store_inferior_registers): Likewise.
5167 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5169 (aarch64_sve_regs_copy_to_regcache): Likewise.
5170 (aarch64_sve_regs_copy_from_regcache): Likewise.
5171 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5173 (aarch64_sve_regs_copy_to_regcache): Likewise.
5174 (aarch64_sve_regs_copy_from_regcache): Likewise.
5175 (sve_context): Structure from Linux headers.
5176 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5177 (SVE_SIG_ZREG_SIZE): Likewise.
5178 (SVE_SIG_PREG_SIZE): Likewise.
5179 (SVE_SIG_FFR_SIZE): Likewise.
5180 (SVE_SIG_REGS_OFFSET): Likewise.
5181 (SVE_SIG_ZREGS_OFFSET): Likewise.
5182 (SVE_SIG_ZREG_OFFSET): Likewise.
5183 (SVE_SIG_ZREGS_SIZE): Likewise.
5184 (SVE_SIG_PREGS_OFFSET): Likewise.
5185 (SVE_SIG_PREG_OFFSET): Likewise.
5186 (SVE_SIG_PREGS_SIZE): Likewise.
5187 (SVE_SIG_FFR_OFFSET): Likewise.
5188 (SVE_SIG_REGS_SIZE): Likewise.
5189 (SVE_SIG_CONTEXT_SIZE): Likewise.
5190 (SVE_PT_REGS_MASK): Likewise.
5191 (SVE_PT_REGS_FPSIMD): Likewise.
5192 (SVE_PT_REGS_SVE): Likewise.
5193 (SVE_PT_VL_INHERIT): Likewise.
5194 (SVE_PT_VL_ONEXEC): Likewise.
5195 (SVE_PT_REGS_OFFSET): Likewise.
5196 (SVE_PT_FPSIMD_OFFSET): Likewise.
5197 (SVE_PT_FPSIMD_SIZE): Likewise.
5198 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5199 (SVE_PT_SVE_PREG_SIZE): Likewise.
5200 (SVE_PT_SVE_FFR_SIZE): Likewise.
5201 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5202 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5203 (__SVE_SIG_TO_PT): Likewise.
5204 (SVE_PT_SVE_OFFSET): Likewise.
5205 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5206 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5207 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5208 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5209 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5210 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5211 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5212 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5213 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5214 (SVE_PT_SVE_SIZE): Likewise.
5215 (SVE_PT_SIZE): Likewise.
5216 (HAS_SVE_STATE): New define.
5218 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5220 * nat/aarch64-sve-linux-sigcontext.h: New file.
5221 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5223 (SVE_VQ_MIN): Likewise.
5224 (SVE_VQ_MAX): Likewise.
5225 (SVE_VL_MIN): Likewise.
5226 (SVE_VL_MAX): Likewise.
5227 (SVE_NUM_ZREGS): Likewise.
5228 (SVE_NUM_PREGS): Likewise.
5229 (sve_vl_valid): Likewise.
5230 (struct user_sve_header): Likewise.
5232 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5233 Richard Bunt <Richard.Bunt@arm.com>
5235 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5236 was requested by GDB.
5238 2018-06-15 Tom de Vries <tdevries@suse.de>
5240 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5242 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5244 * gnulib/update-gnulib.sh: Print expected versions of
5247 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5249 * arch-utils.c (default_type_align): Use type_length_units.
5250 * gdbtypes.c (type_align): Use type_length_units.
5252 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5254 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5255 of 'define' command.
5257 2018-06-14 Tom de Vries <tdevries@suse.de>
5260 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5261 get_no_prettyformat_print_options.
5263 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5265 * sparc-nat.h: Include target.h.
5266 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5267 <fetch_registers>: Remove this argument in function call.
5268 <store_registers>: Remove this argument in function call, remove
5270 <low_forget_process>: Call sparc64_forget_process instead of
5271 sparc_forget_process.
5273 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5275 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5276 (procfs_target::make_corefile_notes): Adjust to new
5277 target_read_alloc return type.
5279 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5280 Stephen Roberts <stephen.roberts@arm.com>
5283 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5284 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5285 Move should_notify_stop local into more inner scope.
5287 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5288 Stephen Roberts <stephen.roberts@arm.com>
5291 * infrun.c (resume_1): Add call to mark_async_event_handler.
5293 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5295 * infrun.c (do_target_wait): Change old version of $pc printed.
5297 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5299 * dwarf2read.c (read_index_from_section): Rename to...
5300 (read_gdb_index_from_section): ... this, update all callers.
5301 (dwarf2_read_index): Rename to...
5302 (dwarf2_read_gdb_index): ... this, update all callers.
5304 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5306 * gdb/hppa-linux-nat.c
5307 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5308 hppa_linux_nat_target::fetch_registers.
5310 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5312 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5313 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5314 (AARCH64_DWARF_SVE_FFR): Likewise.
5315 (AARCH64_DWARF_SVE_P0): Likewise.
5316 (AARCH64_DWARF_SVE_Z0): Likewise.
5318 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5320 * common/common-regcache.h (raw_compare): New function.
5321 * regcache.c (regcache::raw_compare): Likewise.
5322 * regcache.h (regcache::raw_compare): New declaration.
5324 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5326 * common/common-regcache.h (reg_buffer_common): New structure.
5327 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5328 (reg_buffer::raw_supply): Likewise.
5329 (reg_buffer::raw_supply_integer): Likewise.
5330 (reg_buffer::raw_supply_zeroed): Likewise.
5331 (reg_buffer::raw_collect): Likewise.
5332 (reg_buffer::raw_collect_integer): Likewise.
5333 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5334 (reg_buffer::raw_supply): Likewise.
5335 (reg_buffer::raw_supply_integer): Likewise.
5336 (reg_buffer::raw_supply_zeroed): Likewise.
5337 (reg_buffer::raw_collect): Likewise.
5338 (reg_buffer::raw_collect_integer): Likewise.
5340 2018-06-10 Tom Tromey <tom@tromey.com>
5342 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5343 (class remote_state) <stop_reply_queue>: Now std::vector.
5344 (remote_state::~remote_state)
5345 (remote_target::stop_reply_queue_length): Update.
5346 (struct queue_iter_param, remove_child_of_pending_fork)
5347 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5348 (check_pending_event_prevents_wildcard_vcont_callback)
5349 (remove_stop_reply_for_inferior)
5350 (remove_stop_reply_of_remote_state)
5351 (remote_notif_remove_once_on_match)
5352 (stop_reply_match_ptid_and_ws)
5353 (remote_kill_child_of_pending_fork): Remove.
5354 (remote_target::remove_new_fork_children)
5355 (remote_target::check_pending_events_prevent_wildcard_vcont)
5356 (remote_target::discard_pending_stop_replies)
5357 (remote_target::discard_pending_stop_replies_in_queue)
5358 (remote_target::remote_notif_remove_queued_reply)
5359 (remote_target::queued_stop_reply)
5360 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5361 (remote_target::wait, remote_target::kill_new_fork_children)
5362 (remote_target::async): Update.
5364 2018-06-10 Tom Tromey <tom@tromey.com>
5366 * record-full.c (record_full_arch_list_cleanups): Remove.
5367 (record_full_message): Use try/catch.
5368 (record_full_wait_cleanups): Remove.
5369 (record_full_wait_1): Use try/catch.
5370 (record_full_restore): Likewise.
5372 2018-06-10 Tom Tromey <tom@tromey.com>
5374 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5375 declare VEC. Add constructor.
5376 <in_target_beneath>: Now bool.
5377 (record_full_breakpoints): Now a std::vector, static.
5378 (record_full_sync_record_breakpoints)
5379 (record_full_init_record_breakpoints)
5380 (record_full_target::insert_breakpoint)
5381 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5383 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5385 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5386 * serial.c (serial_interface_lookup): Remove struct keyword.
5388 2018-06-10 Tom Tromey <tom@tromey.com>
5390 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5392 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5394 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5396 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5397 "beneath" as a method.
5398 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5399 Use "beneath" as a method.
5401 2018-06-10 Tom Tromey <tom@tromey.com>
5403 * tracefile.c (struct trace_file_writer_deleter): New.
5404 <operator()>: Rename from trace_file_writer_xfree.
5405 (trace_file_writer_up): New typedef.
5406 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5408 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5410 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5411 <m_registers, m_register_status>: Change type to
5413 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5416 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5418 * common/common-regcache.h (enum register_status): Add
5419 underlying type "signed char".
5420 * regcache.h (reg_buffer) <m_register_status>: Change type to
5422 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5423 register_status instead of signed char.
5424 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5425 (reg_buffer::get_register_status): Remove cast.
5426 (readable_regcache::raw_read): Remove cast.
5427 (readable_regcache::cooked_read): Remove cast.
5429 2018-06-09 Tom Tromey <tom@tromey.com>
5431 * source.c (reverse_search_command, forward_search_command): Use
5434 2018-06-09 Tom Tromey <tom@tromey.com>
5436 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5437 (serial_ops_list): Now static, std::vector.
5438 (serial_interface_lookup, serial_add_interface): Update.
5440 2018-06-09 Tom Tromey <tom@tromey.com>
5442 * dwarf2read.c (process_cu_includes): Update.
5443 (process_full_comp_unit): Update.
5444 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5447 2018-06-08 Paul Koning <paul_koning@dell.com>
5451 * python/python.c (do_start_initialization):
5452 Avoid call to internal Python API.
5453 (init__gdb_module): New function.
5455 2018-06-08 Gary Benson <gbenson@redhat.com>
5457 * linux-thread-db.c (valprint.h): New include.
5458 (struct check_thread_db_info): New structure.
5459 (check_thread_db_on_load, tdb_testinfo): New static globals.
5460 (check_thread_db, check_thread_db_callback): New functions.
5461 (try_thread_db_load_1): Run integrity checks if requested.
5462 (maintenance_check_libthread_db): New function.
5463 (_initialize_thread_db): Register "maint check libthread-db"
5464 and "maint set/show check-libthread-db".
5465 * NEWS: Mention the above new commands.
5467 2018-06-08 Tom Tromey <tom@tromey.com>
5469 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5472 2018-06-08 Tom Tromey <tom@tromey.com>
5474 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5476 2018-06-08 Tom Tromey <tom@tromey.com>
5478 * common/btrace-common.h (struct btrace_data): Add constructor,
5479 destructor, move assignment operator.
5480 <empty, clear, fini>: New methods.
5481 <format>: Initialize.
5482 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5483 (btrace_data_empty): Don't declare.
5484 * common/btrace-common.c (btrace_data_init): Remove.
5485 (btrace_data::fini): Rename from btrace_data_fini.
5486 (btrace_data::empty): Rename from btrace_data_empty.
5487 (btrace_data::clear): Rename from btrace_data_clear. Return
5489 * btrace.h (make_cleanup_btrace_data): Don't declare.
5490 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5491 (parse_xml_btrace): Update.
5492 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5493 (maint_btrace_clear_packet_history_cmd): Update.
5495 2018-06-07 Pedro Alves <palves@redhat.com>
5497 * target.h (target_ops) <beneath>: Now a method. All references
5499 (class target_stack): New.
5500 * target.c (g_target_stack): New.
5501 (g_current_top_target): Delete.
5502 (current_top_target): Get the top target out of g_target_stack.
5503 (target_stack::push, target_stack::unpush): New.
5504 (push_target, unpush_target): Reimplement.
5505 (target_is_pushed): Reimplement in terms of g_target_stack.
5506 (target_ops::beneath, target_stack::find_beneath): New.
5508 2018-06-07 Pedro Alves <palves@redhat.com>
5510 * target.h (find_target_beneath): Delete declaration.
5511 * target.c (find_target_beneath): Delete definition.
5512 * aix-thread.c: All callers of find_target_beneath adjusted to
5513 call target_ops::beneath instead.
5514 * bsd-uthread.c: Likewise.
5515 * linux-thread-db.c: Likewise.
5516 * ravenscar-thread.c: Likewise.
5517 * sol-thread.c: Likewise.
5518 * spu-multiarch.c: Likewise.
5520 2018-06-07 Pedro Alves <palves@redhat.com>
5522 * target.h (target_ops) <beneath>: Now a method. All references
5524 (target_ops) <m_beneath>: New.
5525 * target.c (target_ops::beneath): New.
5526 * corelow.c: Adjust all references to target_ops::beneath.
5527 * linux-thread-db.c: Likewise.
5528 * make-target-delegates: Likewise.
5529 * record-btrace.c: Likewise.
5530 * record-full.c: Likewise.
5531 * remote.c: Likewise.
5532 * target.c: Likewise.
5533 * target-delegates.c: Regenerate.
5535 2018-06-07 Pedro Alves <palves@redhat.com>
5537 * target.h (target_stack): Delete.
5538 (current_top_target): Declare function.
5539 * target.c (target_stack): Delete.
5540 (g_current_top_target): New.
5541 (current_top_target): New function.
5542 * auxv.c: Use current_top_target instead of target_stack
5544 * avr-tdep.c: Likewise.
5545 * breakpoint.c: Likewise.
5546 * corefile.c: Likewise.
5547 * elfread.c: Likewise.
5549 * exceptions.c: Likewise.
5550 * frame.c: Likewise.
5551 * gdbarch-selftests.c: Likewise.
5552 * gnu-v3-abi.c: Likewise.
5553 * ia64-tdep.c: Likewise.
5554 * ia64-vms-tdep.c: Likewise.
5555 * infcall.c: Likewise.
5556 * infcmd.c: Likewise.
5557 * infrun.c: Likewise.
5558 * linespec.c: Likewise.
5559 * linux-tdep.c: Likewise.
5560 * minsyms.c: Likewise.
5561 * ppc-linux-nat.c: Likewise.
5562 * ppc-linux-tdep.c: Likewise.
5563 * procfs.c: Likewise.
5564 * regcache.c: Likewise.
5565 * remote.c: Likewise.
5566 * rs6000-tdep.c: Likewise.
5567 * s390-linux-nat.c: Likewise.
5568 * s390-tdep.c: Likewise.
5569 * solib-aix.c: Likewise.
5570 * solib-darwin.c: Likewise.
5571 * solib-dsbt.c: Likewise.
5572 * solib-spu.c: Likewise.
5573 * solib-svr4.c: Likewise.
5574 * solib-target.c: Likewise.
5575 * sparc-tdep.c: Likewise.
5576 * sparc64-tdep.c: Likewise.
5577 * spu-tdep.c: Likewise.
5578 * symfile.c: Likewise.
5579 * symtab.c: Likewise.
5580 * target-descriptions.c: Likewise.
5581 * target-memory.c: Likewise.
5582 * target.c: Likewise.
5583 * target.h: Likewise.
5584 * tracefile-tfile.c: Likewise.
5585 * tracepoint.c: Likewise.
5586 * valops.c: Likewise.
5587 * valprint.c: Likewise.
5588 * value.c: Likewise.
5589 * windows-tdep.c: Likewise.
5590 * mi/mi-main.c: Likewise.
5592 2018-06-07 Tom Tromey <tom@tromey.com>
5594 * valprint.h (build_address_symbolic): Declare.
5595 * printcmd.c (print_address_symbolic): Update.
5596 (build_address_symbolic): Change "name" and "filename" to
5598 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5600 * defs.h (build_address_symbolic): Remove declaration.
5602 2018-06-07 Alan Hayward <alan.hayward@arm.com>
5604 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5605 (aarch64_vnv_type): Add function.
5606 (aarch64_pseudo_register_name): Add V regs for SVE.
5607 (aarch64_pseudo_register_type): Likewise.
5608 (aarch64_pseudo_register_reggroup_p): Likewise.
5609 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5610 (aarch64_pseudo_read_value): Add V regs for SVE.
5611 (aarch64_pseudo_write_2): Use V0 offset for SVE
5612 (aarch64_pseudo_write): Add V regs for SVE.
5613 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5615 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5617 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5618 (sve_vl_from_vq): Likewise.
5620 2018-06-05 Tom Tromey <tom@tromey.com>
5622 * cli/cli-cmds.c (show_version): Update.
5623 * top.c (print_gdb_version): Add "interactive" parameter.
5625 * main.c (captured_main_1): Update.
5626 * top.h (print_gdb_version): Add "interactive" parameter and a
5629 2018-06-05 David Malcolm <dmalcolm@redhat.com>
5631 * common/enum-flags.h: Add trailing semicolon to example in
5634 2018-06-05 Tom Tromey <tom@tromey.com>
5637 * NEWS: Add entry about pager.
5638 * utils.c (pagination_disabled_for_command): New global.
5639 (prompt_for_continue): Allow "c" response to prompt.
5640 (reinitialize_more_filter): Clear
5641 pagination_disabled_for_command.
5642 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5644 2018-06-04 Tom Tromey <tom@tromey.com>
5646 * ada-lang.h (ada_lookup_symbol_list): Update.
5647 * ada-lang.c (resolve_subexp): Update.
5648 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5650 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5651 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5652 results parameter to std::vector.
5653 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5655 * ada-exp.y (block_lookup): Update.
5656 (select_possible_type_sym): Change type of syms. Remove nsyms
5658 (write_var_or_type, write_name_assoc): Update.
5660 2018-06-04 Joel Brobecker <brobecker@adacore.com>
5662 * windows-nat.c (windows_nat_target::xfer_partial): Return
5663 TARGET_XFER_E_IO if we need to delegate to the target beneath
5664 but BENEATH is NULL.
5666 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5668 * Makefile.in (config.status): Add configure.nat as a
5671 2018-06-04 Tom Tromey <tom@tromey.com>
5673 * cp-name-parser.y (cpname_state): Add method declarations.
5674 (HANDLE_QUAL): Update.
5675 (cpname_state::d_grab, cpname_state::fill_comp)
5676 (cpname_state::make_operator, cpname_state::make_dtor)
5677 (cpname_state::make_builtin_type, cpname_state::make_name)
5678 (cpname_state::d_qualify, cpname_state::d_int_type)
5679 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5680 (%union): Move earlier.
5682 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5684 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5686 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5688 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5689 (aarch64_pseudo_write_1): Likewise.
5690 (aarch64_pseudo_read_value): Use helper.
5691 (aarch64_pseudo_write): Likewise.
5693 2018-06-04 Pedro Alves <palves@redhat.com>
5695 * darwin-nat.c (darwin_ops): Delete.
5696 (darwin_attach_pid): Use get_native_target.
5698 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5700 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5701 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5703 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5705 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5706 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5707 (aarch64_gdbarch_init): Check for SVE.
5708 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5710 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5712 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5713 * aarch64-tdep.h (aarch64_read_description): Likewise.
5714 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5715 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5716 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5717 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5718 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5720 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5722 * value.c (value_fetch_lazy_bitfield): New.
5723 (value_fetch_lazy_memory): New.
5724 (value_fetch_lazy_register): New.
5725 (value_fetch_lazy): Factor out to smaller functions.
5727 2018-06-01 Tom Tromey <tom@tromey.com>
5729 * cp-name-parser.y (backslashable, represented): Now const.
5731 2018-06-01 Tom Tromey <tom@tromey.com>
5733 * cp-name-parser.y: Include parser-defs.h.
5734 (parser_fprintf): Remove declaration.
5736 2018-06-01 Tom Tromey <tom@tromey.com>
5738 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5740 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5741 (global_result): Remove globals.
5742 (struct cpname_state): New.
5743 (yyparse): Don't declare.
5744 (yylex, yyerror): Move declarations after %union.
5745 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5746 (make_name): Add state parameter.
5748 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5750 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5752 (yylex): Add lvalp, state parameters.
5753 (yyerror): Add state parameter.
5754 (cp_demangled_name_to_comp): Update.
5756 2018-06-01 Tom Tromey <tom@tromey.com>
5758 * cp-name-parser.y (parser_fprintf): Declare.
5759 (GDB_YY_REMAP_PREFIX): Define.
5760 Include yy-remap.h. Don't redefine yy* identifiers.
5762 2018-06-01 Tom Tromey <tom@tromey.com>
5764 * python/py-type.c (typy_legacy_template_argument): Update.
5765 * cp-support.h (cp_demangled_name_to_comp): Update.
5766 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5767 parameter to be a "std::string *".
5770 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5772 * ada-lex.l: Include "diagnostics.h" instead of
5773 "common/diagnostics.h".
5774 * unittests/environ-selftests.c: Likewise.
5775 * common/diagnostics.h: Moved to ../include.
5777 2018-06-01 Joel Brobecker <brobecker@adacore.com>
5779 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5780 to language_mode_manual while calling breakpoint_re_set_one.
5782 2018-06-01 Tom Tromey <tom@tromey.com>
5784 * valops.c (value_cast_structs, destructor_name_p): Update.
5785 * symtab.c (gdb_mangle_name): Update.
5786 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5788 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5789 (pascal_object_print_value_fields, pascal_object_print_value):
5791 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5792 * linespec.c (find_methods): Update.
5793 * gdbtypes.h (type_name_no_tag): Remove.
5794 (type_name_or_error): Rename from type_name_no_tag_or_error.
5795 * gdbtypes.c (type_name_no_tag): Remove.
5796 (type_name_or_error): Rename from type_name_no_tag_or_error.
5797 (lookup_struct_elt_type, check_typedef): Update.
5798 * expprint.c (print_subexp_standard): Update.
5799 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5800 * d-namespace.c (d_lookup_nested_symbol): Update.
5801 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5802 (cp_print_class_member): Update.
5803 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5804 * completer.c (add_struct_fields): Update.
5805 * c-typeprint.c (cp_type_print_derivation_info)
5806 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5808 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5809 (ada_prefer_type, ada_is_exception_sym): Update.
5811 2018-06-01 Tom Tromey <tom@tromey.com>
5813 * valops.c (enum_constant_from_type, value_namespace_elt)
5814 (value_maybe_namespace_elt): Update.
5815 * valarith.c (find_size_for_pointer_math): Update.
5816 * target-descriptions.c (make_gdb_type): Update.
5817 * symmisc.c (print_symbol): Update.
5818 * stabsread.c (define_symbol, read_type)
5819 (complain_about_struct_wipeout, add_undefined_type)
5820 (cleanup_undefined_types_1): Update.
5821 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5822 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5823 (rust_internal_print_type, rust_composite_type)
5824 (rust_evaluate_funcall, rust_evaluate_subexp)
5825 (rust_inclusive_range_type_p): Update.
5826 * python/py-type.c (typy_get_tag): Update.
5827 * p-typeprint.c (pascal_type_print_base): Update.
5828 * mdebugread.c (parse_symbol, parse_type): Update.
5829 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5831 * guile/scm-type.c (gdbscm_type_tag): Update.
5832 * go-lang.c (sixg_string_p): Update.
5833 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5835 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5836 (TYPE_TAG_NAME): Remove.
5837 * gdbtypes.c (type_name_no_tag): Simplify.
5838 (check_typedef, check_types_equal, recursive_dump_type)
5839 (copy_type_recursive, arch_composite_type): Update.
5840 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5841 in summary mode when needed.
5842 * eval.c (evaluate_funcall): Update.
5843 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5844 (process_structure_scope, read_enumeration_type)
5845 (read_namespace_type, read_module_type, determine_prefix): Update.
5846 * cp-support.c (inspect_type): Update.
5847 * coffread.c (process_coff_symbol, decode_base_type): Update.
5848 * c-varobj.c (c_is_path_expr_parent): Update.
5849 * c-typeprint.c (c_type_print_base_struct_union): Update.
5850 (c_type_print_base_1): Update. Print struct/class/union/enum in
5851 summary when using C language.
5852 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5853 (gen_maybe_namespace_elt): Update.
5854 * ada-lang.c (ada_type_name): Simplify.
5855 (empty_record, ada_template_to_fixed_record_type_1)
5856 (template_to_static_fixed_type)
5857 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5859 2018-06-01 Tom Tromey <tom@tromey.com>
5861 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5863 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5864 (c_print_type): Update.
5865 (c_print_type): New overload.
5866 (c_type_print_varspec_prefix, c_type_print_args)
5867 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5868 (c_type_print_base_struct_union, c_type_print_base_1)
5869 (cp_type_print_method_args): Add "language" parameter.
5870 (c_type_print_base): Update.
5871 * c-lang.h (c_print_type): Add new overload.
5873 2018-06-01 Tom Tromey <tom@tromey.com>
5875 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5876 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5878 2018-06-01 Alan Hayward <alan.hayward@arm.com>
5880 * aarch64-tdep.c (aarch64_sve_register_names): New const
5882 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5883 (AARCH64_SVE_Z_REGS_NUM): New define.
5884 (AARCH64_SVE_P_REGS_NUM): Likewise.
5885 (AARCH64_SVE_NUM_REGS): Likewise.
5887 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
5889 * nat/linux-ptrace.h [__alpha__]
5890 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5893 2018-05-31 Maciej W. Rozycki <macro@mips.com>
5895 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5896 the endianness selected.
5897 * NEWS: Document `set endian auto' mode operation update.
5899 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5901 * Makefile.in: Add new header.
5902 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5903 (sve_vl_from_vg): Likewise.
5904 (sve_vq_from_vl): Likewise.
5905 (sve_vl_from_vq): Likewise.
5906 (sve_vq_from_vg): Likewise.
5907 (sve_vg_from_vq): Likewise.
5908 * configure.nat: Add new c file.
5909 * nat/aarch64-sve-linux-ptrace.c: New file.
5910 * nat/aarch64-sve-linux-ptrace.h: New file.
5912 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5914 * aarch64-linux-nat.c (aarch64_linux_read_description):
5916 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5918 * aarch64-tdep.c (tdesc_aarch64_list): Add.
5919 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
5920 (aarch64_gdbarch_init): Add parmeter zero.
5921 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
5922 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
5923 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
5925 * doc/gdb.texinfo: Describe SVE feature
5926 * features/aarch64-sve.c: New file.
5928 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
5931 * gdbarch.sh (significant_addr_bit): Default to zero when
5932 not set by target architecture.
5933 * gdbarch.c: Re-generated.
5934 * utils.c (address_significant): Update.
5936 2018-05-30 Joel Brobecker <brobecker@adacore.com>
5938 * stack.c (func_command): Remove trailing newline in call to error.
5940 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5942 * regcache.h (regcache_raw_collect): Remove, update callers to
5943 use regcache::raw_collect.
5944 * regcache.c (regcache_raw_collect): Remove.
5946 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5948 * regcache.h (regcache_raw_supply): Remove, update callers to
5949 use detached_regcache::raw_supply.
5950 * regcache.c (regcache_raw_supply): Remove.
5952 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5954 * regcache.h (regcache_cooked_write_part): Remove, update
5955 callers to use regcache::cooked_write_part.
5956 * regcache.c (regcache_cooked_write_part): Remove.
5958 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5960 * regcache.h (regcache_cooked_read_part): Remove, update callers
5961 to use readable_regcache::cooked_read_part.
5962 * regcache.c (regcache_cooked_read_part): Remove.
5964 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5966 * regcache.h (regcache_cooked_read_value): Remove, update
5967 callers to use readable_regcache::cooked_read_value.
5968 * regcache.c (regcache_cooked_read_value): Remove.
5970 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5972 * regcache.h (regcache_cooked_write): Remove, update callers to
5973 use regcache::cooked_write.
5974 * regcache.c (regcache_cooked_write): Remove.
5976 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5978 * regcache.h (regcache_invalidate): Remove, update callers to
5979 use detached_regcache::invalidate instead.
5980 * regcache.c (regcache_invalidate): Remove.
5982 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5984 * regcache.h (regcache_raw_write_part): Remove, update callers
5985 to use regcache::raw_write_part instead.
5986 * regcache.c (regcache_raw_write_part): Remove.
5988 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5990 * regcache.h (regcache_raw_read_part): Remove, update callers to
5991 use readable_regcache::raw_read_part instead.
5992 * regcache.c (regcache_raw_read_part): Remove.
5994 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5996 * regcache.h (regcache_cooked_read): Remove, update callers to
5997 use readable_regcache::cooked_read instead.
5998 * regcache.c (regcache_cooked_read): Remove.
6000 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6002 * regcache.h (regcache_raw_write): Remove, update callers to use
6003 regcache::raw_write instead.
6004 * regcache.c (regcache_raw_write): Remove.
6006 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6008 * regcache.h (regcache_raw_read): Remove, update callers to use
6009 readable_regcache::raw_read instead.
6010 * regcache.c (regcache_raw_read): Remove.
6012 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6014 * regcache.h (regcache_raw_update): Remove, update callers to
6015 use readable_regcache::raw_update instead.
6016 * regcache.c (regcache_raw_update): Remove.
6018 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6020 * regcache.h (regcache_register_status): Remove, update callers
6021 to use reg_buffer::get_register_status directly instead.
6022 * regcache.c (regcache_register_status): Remove.
6024 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6026 * regcache.h (regcache_get_ptid): Remove, update all callers to
6027 call regcache::ptid instead.
6028 * regcache.c (regcache_get_ptid): Remove.
6030 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6032 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6034 2018-05-30 Pedro Alves <palves@redhat.com>
6036 * common/common-exceptions.h (exception_rethrow): Use
6039 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6041 * breakpoint.c (print_solib_event, check_status_catch_solib):
6042 Remove struct keyword in range-based for loops.
6043 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6044 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6046 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6048 * symfile.c (addr_info_make_relative): Likewise.
6049 * thread.c (value_in_thread_stack_temporaries): Likewise.
6051 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6054 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6055 aggregate type to get its real type before accessing it.
6057 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6059 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6060 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6061 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6062 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6063 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6064 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6065 * printcmd.c (info_address_command): Likewise.
6067 2018-05-29 Tom Tromey <tom@tromey.com>
6069 * windows-nat.c (handle_exception): Update fall-through comment.
6071 2018-05-29 Tom Tromey <tom@tromey.com>
6073 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6074 (struct program_space) <added_solibs>: Now a std::vector.
6075 * breakpoint.c (print_solib_event): Update.
6076 (check_status_catch_solib): Update.
6077 * progspace.c (clear_program_space_solib_cache): Update.
6078 * solib.c (update_solib_list): Update.
6080 2018-05-29 Tom Tromey <tom@tromey.com>
6082 * python/py-type.c (typy_richcompare): Update.
6083 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6084 * gdbtypes.h (types_deeply_equal): Return bool.
6085 (types_equal): Likewise.
6086 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6088 (check_types_equal): Change worklist to std::vector. Return
6090 (struct type_equality_entry): Add constructor.
6091 (compare_maybe_null_strings): Return bool.
6092 (check_types_worklist): Return bool. Change worklist to
6094 (types_deeply_equal): Use std::vector.
6095 (types_equal): Return bool.
6096 (compare_maybe_null_strings): Simplify.
6098 2018-05-29 Tom Tromey <tom@tromey.com>
6100 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6102 2018-05-29 Tom Tromey <tom@tromey.com>
6104 * objc-lang.h: Don't include cp-support.h.
6105 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6108 2018-05-27 Tom Tromey <tom@tromey.com>
6110 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6112 2018-05-25 Tom Tromey <tom@tromey.com>
6114 * value.c (value::location): Initialize.
6116 2018-05-25 Tom Tromey <tom@tromey.com>
6118 * dbxread.c (init_bincl_list): Remove.
6119 (bincl_list): Now a std::vector.
6120 (bincls_allocated, next_bincl): Remove.
6121 (free_bincl_list, do_free_bincl_list_cleanup)
6122 (make_cleanup_free_bincl_list): Remove.
6123 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6125 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6126 (struct header_file_location): Add constructor.
6127 (add_bincl_to_list): Remove.
6129 2018-05-25 Tom Tromey <tom@tromey.com>
6131 * tui/tui.c (tui_enable): Update.
6132 * mi/mi-interp.c (mi_interp::init): Update.
6133 * interps.h (class interp) <name>: New method.
6134 <m_name>: Rename from name.
6135 (~scoped_restore_interp): Update.
6136 * interps.c (interp::interp): Update.
6137 (interp_add, interp_set, interp_lookup_existing)
6138 (current_interp_named_p): Update.
6140 2018-05-25 Tom Tromey <tom@tromey.com>
6142 * interps.c (interp_name): Remove.
6143 * mi/mi-interp.c (mi_interp::init): Update.
6144 * interps.h (interp_name): Remove.
6145 (~scoped_restore_interp): Update.
6146 * tui/tui.c (tui_enable): Update.
6148 2018-05-25 Tom Tromey <tom@tromey.com>
6150 * utils.c (fputs_maybe_filtered): Update.
6151 * linespec.c (decode_line_full): Update.
6152 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6153 (mi_print_breakpoint_for_event, mi_solib_loaded)
6154 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6155 (mi_user_selected_context_changed): Update.
6156 * mi/mi-main.c (mi_execute_command): Update.
6157 * cli/cli-script.c (execute_control_command): Update.
6158 * python/python.c (execute_gdb_command): Update.
6159 * solib.c (info_sharedlibrary_command): Update.
6160 * interps.c (interp_ui_out): Remove.
6161 * interps.h (interp_ui_out): Remove.
6163 2018-05-25 Tom Tromey <tom@tromey.com>
6165 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6166 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6167 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6169 2018-05-25 Tom Tromey <tom@tromey.com>
6171 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6172 * interps.c (interp_exec): Use scoped_restore.
6174 2018-05-25 Tom Tromey <tom@tromey.com>
6176 * remote.c (remote_target::remote_file_get): Use
6178 (remote_target::remote_file_put): Likewise.
6180 2018-05-25 Tom Tromey <tom@tromey.com>
6182 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6184 (get_pe_section_index, add_pe_exported_sym): Update.
6185 (read_pe_exported_syms): Use gdb::def_vector.
6187 2018-05-25 Tom Tromey <tom@tromey.com>
6189 * frame.c (remove_prev_frame): Remove.
6190 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6192 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6194 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6196 * mips-linux-nat.c (supply_fpregset): Always call
6197 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6198 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6199 `mips_fill_fpregset'.
6200 * mips-linux-tdep.c (mips_supply_fpregset)
6201 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6202 (mips_fill_fpregset_wrapper): Remove functions.
6203 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6204 (mips_linux_fpregset): Remove variable.
6205 (mips_linux_iterate_over_regset_sections): Use
6206 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6207 (mips_linux_o32_sigframe_init): Remove comment.
6209 2018-05-25 Pedro Alves <palves@redhat.com>
6211 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6212 (struct readahead_cache, struct packet_reg, struct
6213 remote_arch_state, class remote_state): Move higher up in the
6215 (remote_target::m_remote_state): Now an object instead of a pointer.
6216 (remote_target::get_remote_state): Adjust.
6218 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6220 * stack.c (select_and_print_frame): Delete.
6221 (struct function_bounds): Move struct within function.
6222 (func_command): Most content moved into new function
6223 find_frame_for_function, use new function, print result, add
6225 (find_frame_for_function): New function, now returns a result.
6227 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6229 * stack.c (iterate_over_block_arg_vars): Fix comment.
6230 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6232 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6236 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6238 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6240 * frame.h (class scoped_restore_selected_frame): New class.
6241 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6242 of any exception, use scoped_restore_selected_frame to restore the
6245 2018-05-24 Pedro Alves <palves@redhat.com>
6247 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6250 2018-05-23 Tom Tromey <tom@tromey.com>
6252 * complaints.c (struct complaints): Remove.
6253 (symfile_complaint_book): Remove.
6254 (series): New global.
6255 (complaint_internal): Update.
6256 (clear_complaints): Update.
6258 2018-05-23 Tom Tromey <tom@tromey.com>
6260 * complaints.c (counters): New global.
6261 (struct complain): Remove.
6262 (struct complaints) <root>: Remove.
6263 (complaint_sentinel): Remove.
6264 (symfile_complaint_book): Update.
6265 (find_complaint) Remove.
6266 (complaint_internal, clear_complaints): Update.
6268 2018-05-23 Tom Tromey <tom@tromey.com>
6270 * complaints.c (struct complain) <file, line>: Remove.
6271 (find_complaint): Remove file, line parameters.
6272 (complaint_internal): Update.
6274 2018-05-23 Tom Tromey <tom@tromey.com>
6276 * complaints.c (vcomplaint): Remove.
6277 (complaint_internal) Merge in contents of vcomplaint.
6279 2018-05-23 Tom Tromey <tom@tromey.com>
6281 * complaints.c (struct complaints) <explanation>: Remove.
6282 (symfile_explanations): Remove.
6283 (symfile_complaint_book): Update.
6284 (vcomplaint): Update.
6285 (struct explanation): Remove.
6287 2018-05-23 Tom Tromey <tom@tromey.com>
6289 * complaints.c (symfile_complaints): Remove.
6290 (complaint_internal): Remove "complaints" parameter.
6291 (clear_complaints, vcomplaint): Remove "c" parameter.
6292 (get_complaints): Remove.
6293 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6294 (dwarf2_debug_line_missing_file_complaint)
6295 (dwarf2_debug_line_missing_end_sequence_complaint)
6296 (dwarf2_complex_location_expr_complaint)
6297 (dwarf2_const_value_length_mismatch_complaint)
6298 (dwarf2_section_buffer_overflow_complaint)
6299 (dwarf2_macro_malformed_definition_complaint)
6300 (dwarf2_invalid_attrib_class_complaint)
6301 (create_addrmap_from_index, dw2_symtab_iter_next)
6302 (dw2_expand_marked_cus)
6303 (dw2_debug_names_iterator::find_vec_in_debug_names)
6304 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6305 (create_debug_type_hash_table, init_cutu_and_read_dies)
6306 (partial_die_parent_scope, add_partial_enumeration)
6307 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6308 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6309 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6310 (create_cus_hash_table, create_dwp_hash_table)
6311 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6312 (dwarf2_rnglists_process, dwarf2_ranges_process)
6313 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6314 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6315 (handle_struct_member_die, process_structure_scope)
6316 (read_array_type, read_common_block, read_module_type)
6317 (read_tag_pointer_type, read_typedef, read_base_type)
6318 (read_subrange_type, load_partial_dies, partial_die_info::read)
6319 (partial_die_info::read, partial_die_info::read)
6320 (partial_die_info::read, read_checked_initial_length_and_offset)
6321 (dwarf2_string_attr, read_formatted_entries)
6322 (dwarf_decode_line_header)
6323 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6324 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6325 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6326 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6327 (get_signatured_type, get_DW_AT_signature_type)
6328 (decode_locdesc, file_file_name, consume_improper_spaces)
6329 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6330 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6331 (dwarf2_symbol_mark_computed, set_die_type)
6332 (read_attribute_value): Update.
6333 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6335 * dbxread.c (unknown_symtype_complaint)
6336 (lbrac_mismatch_complaint, repeated_header_complaint)
6337 (set_namestring, function_outside_compilation_unit_complaint)
6338 (read_dbx_symtab, process_one_symbol): Update.
6339 * gdbtypes.c (stub_noname_complaint): Update.
6340 * windows-nat.c (handle_unload_dll): Update.
6341 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6342 (decode_base_type): Update.
6343 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6344 (eb_complaint, record_include_begin, record_include_end)
6345 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6346 (process_xcoff_symbol, read_symbol)
6347 (function_outside_compilation_unit_complaint)
6348 (scan_xcoff_symtab): Update.
6349 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6350 * buildsym.c (finish_block_internal, make_blockvector)
6351 (end_symtab_get_static_block, augment_type_symtab): Update.
6352 * dtrace-probe.c (dtrace_process_dof)
6353 (dtrace_static_probe_ops::get_probes): Update.
6354 * complaints.h (struct complaint): Don't declare.
6355 (symfile_complaints): Remove.
6356 (complaint_internal): Remove "complaints" parameter.
6357 (complaint): Likewise.
6358 (clear_complaints): Likewise.
6359 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6360 (reread_symbols): Update.
6361 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6362 (dwarf2_frame_cache, decode_frame_entry): Update.
6363 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6364 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6365 (info_selectors_command): Update.
6366 * macrotab.c (macro_include, check_for_redefinition)
6367 (macro_undef): Update.
6368 * objfiles.c (filter_overlapping_sections): Update.
6369 * stabsread.c (invalid_cpp_abbrev_complaint)
6370 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6371 (define_symbol, error_type, read_type, rs6000_builtin_type)
6372 (stabs_method_name_from_physname, read_member_functions)
6373 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6374 (attach_fields_to_type, complain_about_struct_wipeout)
6375 (read_range_type, read_args, common_block_start)
6376 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6378 * mdebugread.c (index_complaint, unknown_ext_complaint)
6379 (basic_type_complaint, bad_tag_guess_complaint)
6380 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6381 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6382 (parse_procedure, parse_lines)
6383 (function_outside_compilation_unit_complaint)
6384 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6385 (bad_tag_guess_complaint, reg_value_complaint): Update.
6386 * cp-support.c (demangled_name_complaint): Update.
6387 * macroscope.c (sal_macro_scope): Update.
6388 * dwarf-index-write.c (class debug_names): Update.
6390 2018-05-23 Tom Tromey <tom@tromey.com>
6392 * complaints.c (clear_complaints): Remove "noisy" parameter.
6393 * complaints.h (clear_complaints): Update.
6394 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6395 (reread_symbols): Update.
6397 2018-05-23 Tom Tromey <tom@tromey.com>
6399 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6401 (vcomplaint, clear_complaints): Update.
6402 (symfile_explanations): Remove some messages.
6404 2018-05-23 Tom Tromey <tom@tromey.com>
6406 * complaints.c (internal_complaint): Remove.
6407 * complaints.h (internal_complaint): Remove.
6409 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6411 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6413 2018-05-22 Pedro Alves <palves@redhat.com>
6415 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6416 (remote_fileio_badfd, remote_fileio_return_errno)
6417 (remote_fileio_return_success, remote_fileio_func_open)
6418 (remote_fileio_func_open, remote_fileio_func_close)
6419 (remote_fileio_func_read, remote_fileio_func_write)
6420 (remote_fileio_func_lseek, remote_fileio_func_rename)
6421 (remote_fileio_func_unlink, remote_fileio_func_stat)
6422 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6423 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6424 remote_target parameter.
6425 (remote_fio_func_map) <func>: Add remote_target parameter.
6426 (do_remote_fileio_request, remote_fileio_request):
6427 * remote-fileio.h (remote_fileio_request):
6428 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6429 remote_target parameter.
6430 (remote_notif_process, handle_notification): Adjust to pass down
6432 (remote_notif_state_allocate): Add remote_target parameter. Save
6434 * remote-notif.h (struct remote_target): Forward declare.
6435 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6436 remote_target parameter.
6437 (struct remote_notif_state) <remote>: New field.
6438 (remote_notif_ack, remote_notif_parse): Add remote_target
6440 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6441 remote_target parameter.
6442 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6443 (threads_listing_context, rmt_thread_action, protocol_feature)
6444 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6445 (packet_result, struct threads_listing_context, remote_state):
6446 Move definitions and declarations higher up.
6447 (remote_target) <~remote_target>: Declare.
6448 (remote_download_command_source, remote_file_put, remote_file_get)
6449 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6450 (remote_hostio_pread_vFile, remote_hostio_send_command)
6451 (remote_hostio_set_filesystem, remote_hostio_open)
6452 (remote_hostio_close, remote_hostio_unlink, remote_state)
6453 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6454 (get_memory_write_packet_size, get_memory_read_packet_size)
6455 (append_pending_thread_resumptions, remote_detach_1)
6456 (append_resumption, remote_resume_with_vcont)
6457 (add_current_inferior_and_thread, wait_ns, wait_as)
6458 (process_stop_reply, remote_notice_new_inferior)
6459 (process_initial_stop_replies, remote_add_thread)
6460 (btrace_sync_conf, remote_btrace_maybe_reopen)
6461 (remove_new_fork_children, kill_new_fork_children)
6462 (discard_pending_stop_replies, stop_reply_queue_length)
6463 (check_pending_events_prevent_wildcard_vcont)
6464 (discard_pending_stop_replies_in_queue, stop_reply)
6465 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6466 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6467 (remote_interrupt_as, remote_interrupt_ns)
6468 (remote_get_noisy_reply, remote_query_attached)
6469 (remote_add_inferior, remote_current_thread, get_current_thread)
6470 (set_thread, set_general_thread, set_continue_thread)
6471 (set_general_process, write_ptid)
6472 (remote_unpack_thread_info_response, remote_get_threadinfo)
6473 (parse_threadlist_response, remote_get_threadlist)
6474 (remote_threadlist_iterator, remote_get_threads_with_ql)
6475 (remote_get_threads_with_qxfer)
6476 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6477 (get_offsets, remote_check_symbols, remote_supported_packet)
6478 (remote_query_supported, remote_packet_size)
6479 (remote_serial_quit_handler, remote_detach_pid)
6480 (remote_vcont_probe, remote_resume_with_hc)
6481 (send_interrupt_sequence, interrupt_query)
6482 (remote_notif_get_pending_events, fetch_register_using_p)
6483 (send_g_packet, process_g_packet, fetch_registers_using_g)
6484 (store_register_using_P, store_registers_using_G)
6485 (set_remote_traceframe, check_binary_download)
6486 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6487 (remote_xfer_live_readonly_partial, remote_read_bytes)
6488 (remote_send_printf, remote_flash_write, readchar)
6489 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6490 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6491 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6492 (extended_remote_disable_randomization, extended_remote_run)
6493 (send_environment_packet, extended_remote_environment_support)
6494 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6495 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6496 (packet_command): Now methods of ...
6497 (remote_target): ... this class.
6498 (m_remote_state) <remote_target>: New field.
6499 (struct remote_state) <stop_reply_queue,
6500 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6502 (remote_state::remote_state): Allocate stop_reply_queue.
6503 (remote_state): Delete global.
6504 (get_remote_state_raw): Delete.
6505 (remote_target::get_remote_state): Allocate m_remote_state on
6507 (get_current_remote_target): New.
6508 (remote_ops, extended_remote_ops): Delete.
6509 (wait_forever_enabled_p, remote_async_inferior_event_token):
6510 Delete, moved to struct remote_state.
6511 (remote_target::close): Delete self. Destruction bits split to
6513 (remote_target::~remote_target): ... this.
6514 (show_memory_packet_size): Adjust to use
6515 get_current_remote_target.
6516 (struct protocol_feature) <func>: Add remote_target parameter.
6517 All callers adjusted.
6518 (curr_quit_handler_target): New.
6519 (remote_serial_quit_handler): Reimplement.
6520 (remote_target::open_1): Adjust to use get_current_remote_target.
6521 Heap-allocate remote_target/extended_remote_target instances.
6522 (vcont_builder::vcont_builder): Add remote_target parameter, and
6523 save it in m_remote. All callers adjusted.
6524 (vcont_builder::m_remote): New field.
6525 (vcont_builder::restart, vcont_builder::flush)
6526 (vcont_builder::push_action): Use it.
6527 (remote_target::commit_resume): Use it.
6528 (struct queue_iter_param) <remote>: New field.
6529 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6530 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6531 (check_pending_event_prevents_wildcard_vcont_callback)
6532 (remote_target::check_pending_events_prevent_wildcard_vcont)
6533 (remote_target::discard_pending_stop_replies)
6534 (remote_target::discard_pending_stop_replies_in_queue)
6535 (remote_target::remote_notif_remove_queued_reply): Fill in
6537 (remote_notif_get_pending_events): New.
6538 (remote_target::readchar, remote_target::remote_serial_write):
6539 Save/restore curr_quit_handler_target.
6541 (kill_new_fork_children): Fill in 'remote' field.
6542 (packet_command): Use get_current_remote_target, defer to
6543 remote_target method of same name.
6544 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6545 parameter, and save it in m_remote. All callers adjusted.
6546 (scoped_remote_fd::release): Use m_remote.
6547 (scoped_remote_fd::m_remote): New field.
6548 (remote_file_put, remote_file_get, remote_file_delete): Use
6549 get_current_remote_target, defer to remote_target method of same
6551 (remote_btrace_reset): Add remote_state paremeter. Update all
6553 (remote_async_inferior_event_handler). Pass down 'data'.
6554 (remote_new_objfile): Use get_current_remote_target.
6555 (remote_target::vcont_r_supported): New.
6556 (set_range_stepping): Use get_current_remote_target and
6557 remote_target::vcont_r_supported.
6558 (_initialize_remote): Don't allocate 'remote_state' and
6559 'stop_reply_queue' globals.
6560 * remote.h (struct remote_target): Forward declare.
6561 (getpkt, putpkt, remote_notif_get_pending_events): Add
6562 'remote_target' parameter.
6564 2018-05-22 Pedro Alves <palves@redhat.com>
6566 * remote.c (vcont_builder): Now a class. Make all data members
6568 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6570 (vcont_builder_restart): Rename to ...
6571 (vcont_builder::restart): ... this.
6572 (vcont_builder_flush): Rename to ...
6573 (vcont_builder::flush): ... this.
6574 (vcont_builder_push_action): Rename to ...
6575 (vcont_builder::push_action): ... this.
6576 (remote_target::commit_resume): Adjust.
6578 2018-05-22 Pedro Alves <palves@redhat.com>
6580 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6581 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6582 (get_fixed_memory_packet_size): New.
6583 (get_memory_packet_size): Use it.
6584 (set_memory_packet_size): Don't override the config size with
6585 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6586 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6587 Don't refer to get_memory_packet_size if not connected to a remote
6588 target. Show "(default)" if configured size is 0.
6590 2018-05-22 Pedro Alves <palves@redhat.com>
6592 * remote.c (remote_target::mourn_inferior): Move
6593 discard_pending_stop_replies call here from ...
6594 (_initialize_remote): ... here.
6596 2018-05-22 Pedro Alves <palves@redhat.com>
6598 * remote.c (compare_section_command): Remove set_general_process
6601 2018-05-22 Pedro Alves <palves@redhat.com>
6603 * remote.c (struct packet_reg, struct remote_arch_state):
6604 Move higher up in the file.
6605 (remote_state) <m_arch_states>: Store remote_arch_state values
6606 instead of remote_arch_state pointers.
6607 (remote_state::get_remote_arch_state): Adjust.
6609 2018-05-22 Pedro Alves <palves@redhat.com>
6611 * remote.c: Include <unordered_map>.
6612 (remote_state): Now a class.
6613 (remote_state) <get_remote_arch_state>: Declare method.
6614 <get_remote_arch_state>: New field.
6615 (remote_arch_state) <remote_arch_state>: Declare ctor.
6616 <regs>: Now a unique_ptr.
6617 (remote_gdbarch_data_handle): Delete.
6618 (get_remote_arch_state): Delete.
6619 (remote_state::get_remote_arch_state): New.
6620 (get_remote_state): Adjust to call remote_state's
6621 get_remote_arch_state method.
6622 (init_remote_state): Delete, bits factored out to ...
6623 (remote_arch_state::remote_arch_state): ... this new method.
6624 (get_remote_packet_size, get_memory_packet_size)
6625 (process_g_packet, remote_target::fetch_registers)
6626 (remote_target::prepare_to_store, store_registers_using_G)
6627 (remote_target::store_registers, remote_target::get_trace_status):
6628 Adjust to call remote_state's method.
6629 (_initialize_remote): Remove reference to
6630 remote_gdbarch_data_handle.
6632 2018-05-22 Pedro Alves <palves@redhat.com>
6634 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6635 pread>: New method declarations.
6636 (remote_target::open_1): Adjust.
6637 (readahead_cache_invalidate): Rename to ...
6638 (readahead_cache::invalidate): ... this, and adjust to be a class
6640 (readahead_cache_invalidate_fd): Rename to ...
6641 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6643 (remote_hostio_pwrite): Adjust.
6644 (remote_hostio_pread_from_cache): Rename to ...
6645 (readahead_cache::pread): ... this, and adjust to be a class
6647 (remote_hostio_close): Adjust.
6649 2018-05-22 Pedro Alves <palves@redhat.com>
6651 * remote.c (remote_hostio_close_cleanup): Delete.
6652 (class scoped_remote_fd): New.
6653 (remote_file_put, remote_file_get): Use it.
6655 2018-05-22 Pedro Alves <palves@redhat.com>
6657 (struct vCont_action_support): Use bool and initialize all fields.
6658 (struct readahead_cache): Initialize all fields.
6659 (remote_state): Use bool and initialize all fields.
6660 (remote_state::remote_state, remote_state::~remote_state): New.
6661 (new_remote_state): Delete.
6662 (_initialize_remote): Use new to allocate remote_state.
6664 2018-05-22 Pedro Alves <palves@redhat.com>
6668 * c-exp.y: Include "c-support.h".
6669 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6670 of tolower. Use c_ident_is_alpha to scan names.
6671 * c-lang.c: Include "c-support.h".
6672 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6673 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6674 * c-support.h: New file, with bits factored out from ...
6675 * cp-name-parser.y: ... this file.
6676 Include "c-support.h".
6677 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6678 c-support.h and renamed.
6679 (symbol_end, yylex): Adjust.
6681 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6683 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6684 parameter type to CORE_ADDR.
6685 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6686 parameter type in declaration to CORE_ADDR.
6687 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6688 target_auxv_search to get AT_HWCAP and use the result to get the
6690 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6691 to CORE_ADDR. Remove the cast of the return value to unsigned
6692 long. Fix error predicate of target_auxv_search.
6693 (ppc_linux_nat_target::read_description): Change the type of the
6694 hwcap variable to CORE_ADDR.
6696 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6698 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6699 if the size of fpscr is larger than 32 bits.
6701 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6703 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6704 (ppc32_linux_vsxregmap): New global.
6705 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6706 regcache_supply_regset, and regcache_collect_regset.
6707 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6708 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6709 (fetch_vsx_register, store_vsx_register): Remove.
6710 (fetch_vsx_registers): Add regno parameter. Get regset using
6711 ppc_linux_vsxregset. Use regset to supply registers.
6712 (store_vsx_registers): Add regno parameter. Get regset using
6713 ppc_linux_vsxregset. Use regset to collect registers.
6714 (fetch_register): Call fetch_vsx_registers instead of
6716 (store_register): Call store_vsx_registers instead of
6718 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6719 new regno parameter.
6720 (store_ppc_registers): Call store_vsx_registers with -1 for the
6721 new regno parameter.
6722 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6723 (ppc_collect_vsxregset): Remove.
6725 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6727 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6729 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6730 for vector register offset fields.
6731 (ppc64_fbsd_reg_offsets): Likewise.
6732 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6733 to vector register offset fields.
6734 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6735 to vector register offset fields.
6736 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6737 vector register offset fields.
6738 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6739 initializers for vector register offset fields.
6740 (rs6000_aix64_reg_offsets): Likewise.
6741 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6742 (ppc_supply_vrregset): Remove.
6743 (ppc_collect_vrregset): Remove.
6744 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6745 (ppc_linux_vrregset) : New function.
6746 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6747 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6748 (ppc32_linux_vrregset): Remove.
6749 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6750 and use result instead of ppc32_linux_vrregset.
6751 (ppc32_linux_reg_offsets): Remove initializers for vector register
6753 (ppc64_linux_reg_offsets): Likewise.
6754 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6755 * ppc-linux-nat.c: Include regset.h.
6756 (gdb_vrregset_t): Adjust comment to account for little-endian
6758 (supply_vrregset, fill_vrregset): Remove.
6759 (fetch_altivec_register, store_altivec_register): Remove.
6760 (fetch_altivec_registers): Add regno parameter. Get regset using
6761 ppc_linux_vrregset. Use regset to supply registers.
6762 (store_altivec_registers): Add regno parameter. Get regset using
6763 ppc_linux_vrregset. Use regset to collect registers.
6764 (fetch_register): Call fetch_altivec_registers instead of
6765 fetch_altivec_register.
6766 (store_register): Call store_altivec_registers instead of
6767 store_altivec_register.
6768 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6769 the new regno parameter.
6770 (store_ppc_registers): Call store_altivec_registers with -1 for
6771 the new regno parameter.
6773 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6775 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6776 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6777 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6778 (gdb_vrregset_t): Change array type size to
6779 PPC_LINUX_SIZEOF_VRREGSET.
6780 (gdb_vsxregset_t): Change array type size to
6781 PPC_LINUX_SIZEOF_VSXREGSET.
6782 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6783 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6784 PPC_LINUX_SIZEOF_VSXREGSET.
6786 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6788 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6789 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6791 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6792 ppc_linux_target_wordsize with tid.
6793 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6795 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6796 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6797 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6798 tid parameter. Remove static specifier.
6799 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6800 (ppc_linux_target_wordsize): New declaration.
6802 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6804 * arch/ppc-linux-common.c: New file.
6805 * arch/ppc-linux-common.h: New file.
6806 * arch/ppc-linux-tdesc.h: New file.
6807 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6808 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6809 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6810 arch/ppc-linux-tdesc.h.
6811 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6812 arch/ppc-linux-tdesc.h.
6813 (ppc_linux_nat_target::read_description): Remove target
6814 description matching code. Fill a ppc_linux_features struct and
6815 call ppc_linux_match_description with it. Move comment about ISA
6816 2.05 to ppc-linux-common.c.
6817 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6818 arch/ppc-linux-tdesc.h.
6819 (ppc_linux_core_read_description): Remove target description
6820 matching code. Fill a ppc_linux_features struct and call
6821 ppc_linux_match_description with it.
6822 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6823 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6824 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6825 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6826 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6827 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6828 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6829 (tdesc_powerpc_e500l): Remove.
6831 2018-05-22 Joel Brobecker <brobecker@adacore.com>
6833 * ada-lang.c (catch_assert_command): Pass empty string instead
6834 of NULL for excep_string argument.
6836 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6838 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6839 the width of the requested register exceeds the width of the
6842 2018-05-21 Tom Tromey <tom@tromey.com>
6844 * printcmd.c (output_command): Remove.
6845 (output_command_const): Rename to output_command.
6846 * valprint.h (output_command): Rename from output_command_const.
6847 * tracepoint.c (trace_dump_actions): Call output_command.
6849 2018-05-21 Tom Tromey <tom@tromey.com>
6851 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6852 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6853 * ada-lang.h (create_ada_exception_catchpoint): Update.
6854 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6856 (create_excep_cond_exprs, ~ada_catchpoint)
6857 (should_stop_exception, print_one_exception)
6858 (print_mention_exception, print_recreate_exception): Update.
6859 (ada_get_next_arg): Remove.
6860 (catch_ada_exception_command_split): Use std::string. Change type
6861 of "excep_string", "cond_string".
6862 (catch_ada_exception_command): Update.
6863 (create_ada_exception_catchpoint): Change type of excep_string.
6864 (ada_exception_sal): Remove excep_string parameter.
6865 (~ada_catchpoint): Remove.
6867 2018-05-21 Tom Tromey <tom@tromey.com>
6869 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6872 2018-05-21 Tom Tromey <tom@tromey.com>
6874 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6875 Return unique_xmalloc_ptr.
6876 (print_it_exception): Update.
6878 2018-05-21 Tom Tromey <tom@tromey.com>
6880 * tracepoint.c (trace_dump_actions): Use std::string.
6882 2018-05-21 Tom Tromey <tom@tromey.com>
6884 * symfile.c (reread_symbols): Use std::string for original_name.
6886 2018-05-21 Tom Tromey <tom@tromey.com>
6888 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6889 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6892 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6894 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6896 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6897 * objfiles.c (get_objfile_bfd_data): Allocate
6898 objfile_per_bfd_storage with obstack_new when allocating on
6901 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6903 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6905 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6906 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6907 * mdebugread.c (mdebug_build_psymtabs): Likewise.
6908 (add_pending): Likewise.
6909 (parse_symbol): Likewise.
6910 (parse_partial_symbols): Likewise.
6911 (psymtab_to_symtab_1): Likewise.
6912 (new_psymtab): Likewise.
6913 (elfmdebug_build_psymtabs): Likewise.
6914 * minsyms.c (terminate_minimal_symbol_table): Likewise.
6915 * objfiles.c (get_objfile_bfd_data): Likewise.
6916 (objfile_register_static_link): Likewise.
6917 * psymtab.c (allocate_psymtab): Likewise.
6918 * stabsread.c (read_member_functions): Likewise.
6919 * xcoffread.c (xcoff_end_psymtab): Likewise.
6921 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6923 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
6924 compiler supports std::is_trivially_constructible.
6925 * common/poison.h: Include obstack.h.
6926 (IsMallocable): Define to is_trivially_constructible if the
6927 compiler supports it, define to true_type otherwise.
6931 (XOBNEWVEC): Redefine.
6932 * gdb_obstack.h (obstack_zalloc): New.
6933 (OBSTACK_ZALLOC): Redefine.
6934 (obstack_calloc): New.
6935 (OBSTACK_CALLOC): Redefine.
6937 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
6938 (gdbarch_obstack): New declaration in gdbarch.h, definition in
6940 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
6941 obstack_calloc/obstack_zalloc.
6942 (gdbarch_obstack_zalloc): Remove.
6943 * target-descriptions.c (tdesc_data_init): Use obstack_new.
6945 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6947 * stack.c (backtrace_command_1): Remove useless variable int i.
6949 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6951 * stack.c (print_frame_info): Fix comment.
6953 2018-05-18 Tom Tromey <tom@tromey.com>
6955 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
6956 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
6957 (~dwarf2_per_objfile): Update
6958 (dwarf2_get_dwz_file): Use new.
6959 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6962 2018-05-18 Tom Tromey <tom@tromey.com>
6964 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
6966 * dwarf2read.c (struct dwp_file): Add constructor and
6968 (open_and_init_dwp_file): Return a unique_ptr.
6969 (dwarf2_per_objfile, create_dwp_hash_table)
6970 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
6971 (lookup_dwo_unit_in_dwp): Update.
6972 (open_and_init_dwp_file, get_dwp_file): Update.
6974 2018-05-18 Tom Tromey <tom@tromey.com>
6976 * dwarf2read.c (dwarf2_per_objfile): Update.
6977 (struct mapped_index): Add initializers.
6978 (dwarf2_read_index): Use new.
6979 (dw2_symtab_iter_init): Update.
6980 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
6983 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6985 * dwarf2read.c (mapped_index) <total_size>: Remove.
6987 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6989 * unittests/format_pieces-selftests.c (test_format_specifier):
6992 2018-05-18 Tom Tromey <tom@tromey.com>
6994 * c-typeprint.c (maybe_print_hole): New function.
6995 (c_print_type_struct_field_offset): Update.
6996 (c_type_print_base_struct_union): Call maybe_print_hole.
6998 2018-05-17 Keith Seitz <keiths@redhat.com>
7000 * breakpoint.c (build_bpstat_chain): New function, moved from
7002 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7003 If no stop chain is passed, call build_bpstat_chain to build it.
7004 * breakpoint.h (build_bpstat_chain): Declare.
7005 (bpstat_stop_status): Move documentation here from breakpoint.c.
7006 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7007 build the stop chain and pass it to skip_inline_frames.
7008 Pass this stop chain to bpstat_stop_status.
7009 * inline-frame.c: Include breakpoint.h.
7010 (stopped_by_user_bp_inline_frame): New function.
7011 (skip_inline_frames): Add parameter `stop_chain'.
7012 Move documention to inline-frame.h.
7013 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7014 whether the frame should be elided.
7015 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7016 Add moved documentation and update for new parameter.
7018 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7021 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7022 unittests/format_pieces-selftests.c.
7023 * common/format.h (format_piece) <operator==>: New.
7024 (format_pieces) <operator[]>: Remove.
7025 * common/format.c (format_pieces::format_pieces): Handle \e.
7026 * unittests/format_pieces-selftests.c: New.
7028 2018-05-17 Tom Tromey <tom@tromey.com>
7031 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7032 (dw2_instantiate_symtab): Add skip_partial parameter.
7033 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7034 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7035 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7036 (dw2_expand_symtabs_matching_one)
7037 (dw2_find_pc_sect_compunit_symtab)
7038 (dw2_debug_names_lookup_symbol)
7039 (dw2_debug_names_expand_symtabs_for_function): Update.
7040 (init_cutu_and_read_dies): Add skip_partial parameter.
7041 (process_psymtab_comp_unit, build_type_psymtabs_1)
7042 (process_skeletonless_type_unit, load_partial_comp_unit)
7043 (psymtab_to_symtab_1): Update.
7044 (load_full_comp_unit): Add skip_partial parameter.
7045 (process_imported_unit_die, dwarf2_read_addr_index)
7046 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7047 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7048 (read_signatured_type): Update.
7050 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7052 * value.c (release_value): Remove unused variable.
7053 (record_latest_value): Likewise.
7054 (access_value_history): Likewise.
7055 (preserve_values): Likewise.
7057 2018-05-17 Tom Tromey <tom@tromey.com>
7059 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7062 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7065 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7066 Also handle registers whose width is not a multiple of
7068 (linux_nat_trad_target::store_register): Likewise.
7070 2018-05-16 Tom Tromey <tom@tromey.com>
7072 * gdbcore.h (core_bfd): Redefine.
7073 * corelow.c (core_target::close): Update.
7074 (core_target_open): Update.
7075 * progspace.h (struct program_space) <cbfd>: Now a
7078 2018-05-16 Tom Tromey <tom@tromey.com>
7081 * symfile-add-flags.h (enum symfile_add_flags)
7082 <SYMFILE_NOT_FILENAME>: New constant.
7083 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7084 objfile name from BFD.
7085 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7086 * minidebug.c (find_separate_debug_file_in_section): Put
7087 ".gnu_debugdata" into BFD's file name.
7089 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7091 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7094 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7097 * aarch64-tdep.c (aarch64_analyze_prologue,
7098 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7099 Indicate not interested in errors.
7101 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7103 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7104 Supply the MIPS_ZERO_REGNUM register.
7106 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7108 * mips-tdep.c (mask_address_var): Make variable static.
7110 2018-05-14 Tom Tromey <tom@tromey.com>
7112 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7114 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7116 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7117 FXSAVE_ADDR for the mxcsr register.
7119 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7121 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7123 2018-05-11 Pedro Alves <palves@redhat.com>
7125 * corelow.c (core_target) <core_target>: No longer inline.
7126 Initialize m_core_gdbarch, m_core_vec and build the section table
7128 <~core_target>: New.
7129 <core_gdbarch, get_core_register_section>: New methods.
7130 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7131 factored out from ...
7132 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7134 (sniff_core_bfd): Add gdbarch parameter.
7135 (core_close): Delete, merged into ...
7136 (core_target::close): ... here. Delete self.
7137 (core_close_cleanup): Delete.
7138 (core_target_open): Allocate a core_target on the heap. Use a
7139 unique_ptr instead of a cleanup. Bits moved into the core_target
7140 ctor. Adjust to use core_target methods instead of globals.
7141 (get_core_register_section): Rename to ...
7142 (core_target::get_core_register_section): ... this and adjust.
7143 (struct get_core_registers_cb_data): New.
7144 (get_core_registers_cb): Use it. Use bool.
7145 (core_target::fetch_registers, core_target::files_info)
7146 (core_target::xfer_partial, core_target::read_description)
7147 (core_target::pid_to, core_target::thread_name): Adjust to
7148 reference class fields instead of globals.
7149 * target.h (struct target_ops_deleter, target_ops_up): New.
7151 2018-05-11 Pedro Alves <palves@redhat.com>
7153 * corefile.c (core_file_command): Move to corelow.c.
7154 * corelow.c (the_core_target): Delete.
7155 (core_file_command): Moved from corefile.c. Check exec_bfd
7156 instead of the_core_target. Use target_detach instead of calling
7157 into the_core_target directly.
7158 (maybe_say_no_core_file_now): New.
7159 (core_target::detach): Use it.
7160 (_initialize_corelow): Remove references to the_core_target.
7161 * gdbcore.h (the_core_target): Delete.
7163 2018-05-11 Tom Tromey <tromey@redhat.com>
7164 Pedro Alves <palves@redhat.com>
7166 * corefile.c (core_bfd): Remove.
7167 * gdbcore.h (core_bfd): Now a macro.
7168 * progspace.h (struct program_space) <cbfd>: New field.
7170 2018-05-11 Tom Tromey <tom@tromey.com>
7172 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7175 2018-05-10 Tom Tromey <tom@tromey.com>
7177 * configure: Rebuild.
7178 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7180 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7183 * regformats/regdat.sh: Adjust script, following the addition
7184 of the new expedite_regs parameter to init_target_desc.
7186 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7189 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7190 set_gdbarch_significant_addr_bit.
7191 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7192 set_gdbarch_significant_addr_bit.
7193 * utils.c (address_significant): Update to sign extend addr.
7195 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7197 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7198 (xtensa_linux_init_abi): Limit tdep->num_regs by
7199 tdep->num_nopriv_regs.
7200 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7201 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7204 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7206 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7208 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7210 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7211 (I387_MXCSR_INIT_VAL): New constant.
7212 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7213 buffer if it was supplied by the inferior.
7214 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7215 (i387_xsave_get_clear_bv): New function.
7216 (i387_supply_xsave): Only read x87 control registers from the
7217 xsave buffer if the feature is enabled, and the state will have
7218 been written, otherwise, provide a suitable default.
7219 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7220 including x87 control registers. Update control registers if they
7221 have changed from the default value, and mark features as enabled
7223 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7225 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7227 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7229 2018-05-07 Tom Tromey <tom@tromey.com>
7231 * configure: Rebuild.
7232 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7234 2018-05-07 Tom Tromey <tom@tromey.com>
7237 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7238 bit. Use correct value for VDIV.
7240 2018-05-04 Tom Tromey <tom@tromey.com>
7242 * configure: Rebuild.
7243 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7245 2018-05-04 Tom Tromey <tom@tromey.com>
7247 * linux-record.c (record_linux_system_call) <case
7248 RECORD_SYS_RECVFROM>: Add "break".
7250 2018-05-04 Tom Tromey <tom@tromey.com>
7252 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7253 Add missing "break".
7254 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7255 Add missing "break".
7257 2018-05-04 Tom Tromey <tom@tromey.com>
7259 * rs6000-tdep.c (ppc_process_record_op4)
7260 (ppc_process_record_op63): Add fall-through comment.
7262 2018-05-04 Tom Tromey <tom@tromey.com>
7264 * i386-tdep.c (i386_process_record): Add fall-through comment.
7266 2018-05-04 Tom Tromey <tom@tromey.com>
7268 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7271 2018-05-04 Tom Tromey <tom@tromey.com>
7273 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7274 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7275 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7277 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7279 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7282 2018-05-04 Tom Tromey <tom@tromey.com>
7284 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7286 2018-05-04 Tom Tromey <tom@tromey.com>
7288 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7289 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7290 * symfile.c (section_is_mapped): Fix fall-through comment.
7291 * stabsread.c (define_symbol, read_member_functions): Fix
7292 fall-through comment.
7293 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7295 * remote.c (remote_wait_as): Fix fall-through comment.
7296 * p-exp.y (yylex): Fix fall-through comment.
7297 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7299 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7300 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7301 * jv-exp.y (yylex): Fix fall-through comment.
7302 * go-exp.y (lex_one_token): Fix fall-through comment.
7303 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7304 fall-through comment.
7305 * f-exp.y (yylex): Fix fall-through comment.
7306 * dwarf2read.c (process_die): Fix fall-through comments.
7307 * dbxread.c (process_one_symbol): Fix fall-through comment.
7308 * d-exp.y (lex_one_token): Fix fall-through comment.
7309 * cp-name-parser.y (yylex): Fix fall-through comment.
7310 * coffread.c (coff_symtab_read): Fix fall-through comment.
7311 * c-exp.y (lex_one_token): Fix fall-through comment.
7312 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7314 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7317 2018-05-04 Tom Tromey <tom@tromey.com>
7320 * NEWS: Mention gdb.execute change.
7321 * gdbcmd.h (execute_control_command): Don't declare.
7322 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7323 execute_control_commands, execute_control_commands_to_string.
7324 * cli/cli-script.h (execute_control_commands)
7325 (execute_control_commands_to_string): Declare.
7326 (execute_control_command): Add from_tty parameter.
7327 * cli/cli-script.c (execute_control_commands)
7328 (execute_control_commands_to_string): New functions.
7329 (execute_user_command): Use execute_control_commands.
7330 (execute_control_command_1): Add "from_tty" parameter. Update.
7331 (execute_control_command): Likewise.
7333 2018-05-04 Tom Tromey <tom@tromey.com>
7336 * NEWS: Mention that breakpoint commands are writable.
7337 * python/py-breakpoint.c (bppy_set_commands): New function.
7338 (breakpoint_object_getset) <"commands">: Use it.
7340 2018-05-04 Tom Tromey <tom@tromey.com>
7342 * tracepoint.c (actions_command): Update.
7343 * mi/mi-cmd-break.c (mi_command_line_array)
7344 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7345 (mi_read_next_line): Remove.
7346 (mi_cmd_break_commands): Update.
7347 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7349 * cli/cli-script.c (get_command_line): Update.
7350 (process_next_line): Use function_view. Constify.
7351 (recurse_read_control_structure, read_command_lines)
7352 (read_command_lines_1): Change argument types to function_view.
7353 (do_define_command, document_command): Update.
7354 * breakpoint.h (check_tracepoint_command): Don't declare.
7355 * breakpoint.c (check_tracepoint_command): Remove.
7356 (commands_command_1, create_tracepoint_from_upload): Update.
7358 2018-05-04 Tom Tromey <tom@tromey.com>
7361 * cli/cli-script.h (enum command_control_type) <define_control>:
7363 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7364 (build_command_line, execute_control_command_1)
7365 (process_next_line): Likewise.
7366 (do_define_command): New function, extracted from define_command.
7367 (define_command): Use it.
7369 2018-05-04 Tom Tromey <tom@tromey.com>
7371 * tracepoint.c (actions_command): Update.
7372 * cli/cli-script.h (read_command_lines): Update.
7373 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7374 (MAX_TMPBUF): Remove define.
7375 (define_command): Use string_printf.
7376 (document_command): Likewise.
7377 * breakpoint.c (commands_command_1): Update.
7379 2018-05-04 Tom Tromey <tom@tromey.com>
7381 * top.c (execute_command): Update.
7382 * cli/cli-script.h (print_command_lines): Now varargs.
7383 * cli/cli-script.c (print_command_lines): Now varargs.
7384 (execute_control_command_1) <case while_control, case if_control>:
7387 2018-05-04 Tom Tromey <tom@tromey.com>
7389 * tracepoint.c (all_tracepoint_actions): Rename from
7390 all_tracepoint_actions_and_cleanup. Change return type.
7391 (actions_command, encode_actions_1, encode_actions)
7392 (trace_dump_actions, tdump_command): Update.
7393 * remote.c (remote_download_command_source): Update.
7394 * python/python.c (gdbpy_eval_from_control_command)
7395 (python_command, python_interactive_command): Update.
7396 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7397 * guile/guile.c (guile_command)
7398 (gdbscm_eval_from_control_command, guile_command): Update.
7399 * compile/compile.c (compile_code_command)
7400 (compile_print_command, compile_to_object): Update.
7401 * cli/cli-script.h (struct command_lines_deleter): New.
7402 (counted_command_line): New typedef.
7403 (struct command_line): Add constructor, destructor.
7404 <body_list>: Remove.
7405 <body_list_0, body_list_1>: New members.
7406 (command_line_up): Remove typedef.
7407 (read_command_lines, read_command_lines_1, get_command_line):
7409 (copy_command_lines): Don't declare.
7410 * cli/cli-script.c (build_command_line): Use "new".
7411 (get_command_line): Return counted_command_line.
7412 (print_command_lines, execute_user_command)
7413 (execute_control_command_1, while_command, if_command): Update.
7414 (realloc_body_list): Remove.
7415 (process_next_line, recurse_read_control_structure): Update.
7416 (read_command_lines, read_command_lines_1): Return counted_command_line.
7417 (free_command_lines): Use "delete".
7418 (copy_command_lines): Remove.
7419 (define_command, document_command, show_user_1): Update.
7420 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7421 a counted_command_line.
7422 * breakpoint.h (counted_command_line): Remove typedef.
7423 (breakpoint_set_commands): Update.
7424 * breakpoint.c (check_no_tracepoint_commands)
7425 (validate_commands_for_breakpoint): Update.
7426 (breakpoint_set_commands): Change commands to be a
7427 counted_command_line.
7428 (commands_command_1, update_dprintf_command_list)
7429 (create_tracepoint_from_upload): Update.
7431 2018-05-04 Tom Tromey <tom@tromey.com>
7433 * cli/cli-decode.h (cmd_list_element): New constructor.
7434 (~cmd_list_element): New destructor.
7435 (struct cmd_list_element): Add initializers.
7436 * cli/cli-decode.c (do_add_cmd): Use "new".
7437 (delete_cmd): Use "delete".
7439 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7440 Pedro Alves <palves@redhat.com>
7442 PR breakpoints/19806 and support for PR external/20207.
7443 * NEWS: Mention Aarch64 watchpoint improvements.
7444 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7445 watchpoints and PR external/20207 watchpoints.
7446 * nat/aarch64-linux-hw-point.c
7447 (kernel_supports_any_contiguous_range): New.
7448 (aarch64_watchpoint_offset): New.
7449 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7450 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7451 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7452 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7453 next_addr_orig_p. Support PR external/20207 watchpoints.
7454 (aarch64_downgrade_regs): New.
7455 (aarch64_dr_state_insert_one_point): New parameters offset and
7457 (aarch64_dr_state_remove_one_point): Likewise.
7458 (aarch64_handle_breakpoint): Update caller.
7459 (aarch64_handle_aligned_watchpoint): Likewise.
7460 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7462 (aarch64_linux_set_debug_regs): Remove const from state. Call
7463 aarch64_downgrade_regs.
7464 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7465 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7466 (DR_CONTROL_MASK): ... this.
7467 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7468 (unsigned int aarch64_watchpoint_offset): New prototype.
7469 (aarch64_linux_set_debug_regs): Remove const from state.
7470 * utils.c (align_up, align_down): Move to ...
7471 * common/common-utils.c (align_up, align_down): ... here.
7472 * utils.h (align_up, align_down): Move to ...
7473 * common/common-utils.h (align_up, align_down): ... here.
7475 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7477 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7478 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7479 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7480 Re-implement to match the ABI as summarized in GCC's
7481 gcc/config/sparc/sparc.c. All callers updated.
7482 (sparc32_store_arguments): Remove assertion.
7484 2018-05-04 Tom Tromey <tom@tromey.com>
7486 * printcmd.c: Don't include tui.h.
7487 (decode_format): Use skip_spaces.
7489 2018-05-04 Tom Tromey <tom@tromey.com>
7492 * printcmd.c (last_count): New global.
7493 (x_command): Use saved count when repeating.
7495 2018-05-04 Tom Tromey <tom@tromey.com>
7497 * nto-procfs.c (do_closedir_cleanup): Remove.
7498 (procfs_pidlist): Use gdb_dir_up.
7499 * procfs.c (do_closedir_cleanup): Remove.
7500 (proc_update_threads): Use gdb_dir_up.
7501 * common/filestuff.h (struct gdb_dir_deleter): New.
7502 (gdb_dir_up): New typedef.
7504 2018-05-04 Tom Tromey <tom@tromey.com>
7506 * ada-lang.c (print_mention_exception): Use std::string.
7508 2018-05-04 Tom Tromey <tom@tromey.com>
7510 * ada-lang.c (create_excep_cond_exprs): Update.
7511 (ada_exception_catchpoint_cond_string): Use std::string.
7513 2018-05-04 Tom Tromey <tom@tromey.com>
7515 * ada-lang.c (xget_renaming_scope): Return std::string.
7516 (old_renaming_is_invisible): Update.
7518 2018-05-04 Tom Tromey <tom@tromey.com>
7520 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7521 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7523 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7525 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7527 2018-05-04 Tom Tromey <tom@tromey.com>
7529 * remote.c (remote_query_supported_append): Change type.
7530 (remote_check_symbols): Update.
7532 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7535 * configure.ac: Prepend libpython.
7536 * python/python-config.py: Likewise.
7537 * configure: Regenerate.
7539 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7541 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7543 2018-05-03 Pedro Alves <palves@redhat.com>
7546 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7547 override. Write 'true' instead of '1'.
7548 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7551 2018-05-02 Pedro Alves <palves@redhat.com>
7553 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7554 add_inf_child_target.
7555 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7556 add_inf_child_target.
7557 * aix-thread.c (aix_thread_target_info): New.
7558 (aix_thread_target) <shortname, longname, doc>: Delete.
7560 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7561 add_inf_child_target.
7562 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7563 add_inf_child_target.
7564 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7565 add_inf_child_target.
7566 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7567 add_inf_child_target.
7568 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7569 add_inf_child_target.
7570 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7571 add_inf_child_target.
7572 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7573 add_inf_child_target.
7574 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7575 add_inf_child_target.
7576 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7577 add_inf_child_target.
7578 * bfd-target.c (target_bfd_target_info): New.
7579 (target_bfd) <shortname, longname, doc>: Delete.
7581 * bsd-kvm.c (bsd_kvm_target_info): New.
7582 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7584 (bsd_kvm_target::open): Rename to ...
7585 (bsd_kvm_target_open): ... this. Adjust.
7586 * bsd-uthread.c (bsd_uthread_target_info): New.
7587 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7589 * corefile.c (core_file_command): Adjust.
7590 * corelow.c (core_target_info): New.
7591 (core_target) <shortname, longname, doc>: Delete.
7593 (core_target::open): Rename to ...
7594 (core_target_open): ... this. Adjust.
7595 * ctf.c (ctf_target_info): New.
7596 (ctf_target) <shortname, longname, doc>: Delete.
7598 (ctf_target::open): Rename to ...
7599 (ctf_target_open): ... this.
7600 (_initialize_ctf): Adjust.
7601 * exec.c (exec_target_info): New.
7602 (exec_target) <shortname, longname, doc>: Delete.
7604 (exec_target::open): Rename to ...
7605 (exec_target_open): ... this.
7606 * gdbcore.h (core_target_open): Declare.
7607 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7608 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7609 add_inf_child_target.
7610 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7611 add_inf_child_target.
7612 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7613 add_inf_child_target.
7614 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7615 add_inf_child_target.
7616 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7617 add_inf_child_target.
7618 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7619 add_inf_child_target.
7620 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7621 add_inf_child_target.
7622 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7623 add_inf_child_target.
7624 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7625 add_inf_child_target.
7626 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7627 add_inf_child_target.
7628 * inf-child.c (inf_child_target_info): New.
7629 (inf_child_target::info): New.
7630 (inf_child_open_target): Remove 'target' parameter. Use
7631 get_native_target instead.
7632 (inf_child_target::open): Delete.
7633 (add_inf_child_target): New.
7634 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7637 (add_inf_child_target): Declare.
7638 (inf_child_open_target): Declare.
7639 * linux-thread-db.c (thread_db_target_info): New.
7640 (thread_db_target) <shortname, longname, doc>: Delete.
7642 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7643 add_inf_child_target.
7644 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7645 add_inf_child_target.
7646 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7647 add_inf_child_target.
7648 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7649 add_inf_child_target.
7650 * make-target-delegates (print_class): Adjust.
7651 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7652 add_inf_child_target.
7653 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7654 add_inf_child_target.
7655 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7656 add_inf_child_target.
7657 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7658 add_inf_child_target.
7659 * nto-procfs.c (nto_native_target_info): New.
7660 (nto_procfs_target_native) <shortname, longname, doc>:
7663 (nto_procfs_target_info): New.
7664 (nto_procfs_target_procfs) <shortname, longname, doc>:
7667 (init_procfs_targets): Adjust.
7668 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7669 add_inf_child_target.
7670 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7671 add_inf_child_target.
7672 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7673 add_inf_child_target.
7674 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7675 add_inf_child_target.
7676 * ravenscar-thread.c (ravenscar_target_info): New.
7677 (ravenscar_thread_target) <shortname, longname, doc>:
7680 * record-btrace.c (record_btrace_target_info):
7681 (record_btrace_target) <shortname, longname, doc>: Delete.
7683 (record_btrace_target::open): Rename to ...
7684 (record_btrace_target_open): ... this. Adjust.
7685 * record-full.c (record_longname, record_doc): New.
7686 (record_full_base_target) <shortname, longname, doc>: Delete.
7688 (record_full_target_info): New.
7689 (record_full_target): <shortname>: Delete.
7691 (record_full_core_open_1, record_full_open_1): Update comments.
7692 (record_full_base_target::open): Rename to ...
7693 (record_full_open): ... this.
7694 (cmd_record_full_restore): Update.
7695 (_initialize_record_full): Update.
7696 * remote-sim.c (remote_sim_target_info): New.
7697 (gdbsim_target) <shortname, longname, doc>: Delete.
7699 (gdbsim_target::open): Rename to ...
7700 (gdbsim_target_open): ... this.
7701 (_initialize_remote_sim): Adjust.
7702 * remote.c (remote_doc): New.
7703 (remote_target_info): New.
7704 (remote_target) <shortname, longname, doc>: Delete.
7706 (extended_remote_target_info): New.
7707 (extended_remote_target) <shortname, longname, doc>: Delete.
7709 (remote_target::open_1): Make static. Adjust.
7710 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7711 * s390-linux-nat.c (_initialize_s390_nat): Use
7712 add_inf_child_target.
7713 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7714 add_inf_child_target.
7715 * sol-thread.c (thread_db_target_info): New.
7716 (sol_thread_target) <shortname, longname, doc>: Delete.
7718 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7719 add_inf_child_target.
7720 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7721 add_inf_child_target.
7722 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7723 add_inf_child_target.
7724 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7725 add_inf_child_target.
7726 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7727 add_inf_child_target.
7728 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7729 add_inf_child_target.
7730 * spu-linux-nat.c (_initialize_spu_nat): Use
7731 add_inf_child_target.
7732 * spu-multiarch.c (spu_multiarch_target_info): New.
7733 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7735 * target-delegates.c: Regenerate.
7736 * target.c: Include <unordered_map>.
7737 (target_ops_p): Delete.
7738 (DEF_VEC_P(target_ops_p)): Delete.
7739 (target_factories): New.
7740 (test_target_info): New.
7741 (test_target_ops::info): New.
7742 (open_target): Adjust to use target_factories.
7743 (add_target_with_completer): Rename to ...
7744 (add_target): ... this. Change prototype. Register target_info
7745 and open callback in target_factories. Register target_info in
7746 command context instead of target_ops.
7747 (add_target): Delete old implementation.
7748 (add_deprecated_target_alias): Change prototype. Adjust.
7749 (the_native_target): New.
7750 (set_native_target, get_native_target): New.
7751 (find_default_run_target): Use the_native_target.
7752 (find_attach_target, find_run_target): Simplify.
7753 (target_ops::open): Delete.
7754 (dummy_target_info): New.
7755 (dummy_target::shortname, dummy_target::longname)
7756 (dummy_target::doc): Delete.
7757 (dummy_target::info): New.
7758 (debug_target::shortname, debug_target::longname)
7759 (debug_target::doc): Delete.
7760 (debug_target::info): New.
7761 * target.h (struct target_info): New.
7762 (target_ops::~target_ops): Add comment.
7763 (target_ops::info): New.
7764 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7765 longer virtual. Implement in terms of target_info.
7766 (set_native_target, get_native_target): Declare.
7767 (target_open_ftype): New.
7768 (add_target, add_target_with_completer)
7769 (add_deprecated_target_alias): Change prototype.
7770 (test_target) <shortname, longname, doc>: Delete.
7772 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7773 add_inf_child_target.
7774 * tracefile-tfile.c (tfile_target_info): New.
7775 (tfile_target) <shortname, longname, doc>: Delete.
7777 (tfile_target::open): Rename to ...
7778 (tfile_target_open): ... this.
7779 (_initialize_tracefile_tfile): Adjust.
7780 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7781 add_inf_child_target.
7782 * windows-nat.c (_initialize_windows_nat): Use
7783 add_inf_child_target.
7784 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7785 add_inf_child_target.
7787 2018-05-02 Pedro Alves <palves@redhat.com>
7789 * linux-nat.h (linux_nat_target) <low_new_thread,
7790 low_delete_thread, low_new_fork, low_forget_process,
7791 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7792 New virtual methods.
7793 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7794 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7795 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7796 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7797 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7799 * linux-fork.c (delete_fork): Adjust to call low method.
7800 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7801 (linux_nat_new_fork, linux_nat_forget_process_hook)
7802 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7803 (linux_nat_status_is_event):
7804 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7805 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7807 (sigtrap_is_event): Rename to ...
7808 (linux_nat_target::low_status_is_event): ... this.
7809 (linux_nat_set_status_is_event): Delete.
7810 (save_stop_reason, linux_nat_wait_1)
7811 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7813 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7814 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7815 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7816 (linux_nat_set_prepare_to_resume): Delete.
7817 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7818 low virtual methods.
7819 * amd64-linux-nat.c: Likewise.
7820 * arm-linux-nat.c: Likewise.
7821 * i386-linux-nat.c: Likewise.
7822 * ia64-linux-nat.c: Likewise.
7823 * mips-linux-nat.c: Likewise.
7824 * ppc-linux-nat.c: Likewise.
7825 * s390-linux-nat.c: Likewise.
7826 * sparc64-linux-nat.c: Likewise.
7827 * x86-linux-nat.c: Likewise.
7828 * x86-linux-nat.h: Include "nat/x86-linux.h".
7829 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7830 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7833 2018-05-02 Pedro Alves <palves@redhat.com>
7835 * target.h (target_ops)
7836 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7837 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7838 stopped_by_watchpoint, have_continuable_watchpoint,
7839 stopped_data_address, watchpoint_addr_within_range,
7840 can_accel_watchpoint_condition, can_run, thread_alive,
7841 has_all_memory, has_memory, has_stack, has_registers,
7842 has_execution, can_async_p, is_async_p, supports_non_stop,
7843 always_non_stop_p, can_execute_reverse, supports_multi_process,
7844 supports_enable_disable_tracepoint,
7845 supports_disable_randomization, supports_string_tracing,
7846 supports_evaluation_of_breakpoint_conditions,
7847 can_run_breakpoint_commands, filesystem_is_local,
7848 can_download_tracepoint, get_trace_state_variable_value,
7849 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7850 record_is_replaying, record_will_replay,
7851 augmented_libraries_svr4_read>: Adjust to return bool.
7852 * aarch64-linux-nat.c: All implementations adjusted.
7853 * aix-thread.c: All implementations adjusted.
7854 * arm-linux-nat.c: All implementations adjusted.
7855 * breakpoint.c: All implementations adjusted.
7856 * bsd-kvm.c: All implementations adjusted.
7857 * bsd-uthread.c: All implementations adjusted.
7858 * corelow.c: All implementations adjusted.
7859 * ctf.c: All implementations adjusted.
7860 * darwin-nat.c: All implementations adjusted.
7861 * darwin-nat.h: All implementations adjusted.
7862 * exec.c: All implementations adjusted.
7863 * fbsd-nat.c: All implementations adjusted.
7864 * fbsd-nat.h: All implementations adjusted.
7865 * gnu-nat.c: All implementations adjusted.
7866 * gnu-nat.h: All implementations adjusted.
7867 * go32-nat.c: All implementations adjusted.
7868 * ia64-linux-nat.c: All implementations adjusted.
7869 * inf-child.c: All implementations adjusted.
7870 * inf-child.h: All implementations adjusted.
7871 * inf-ptrace.c: All implementations adjusted.
7872 * inf-ptrace.h: All implementations adjusted.
7873 * linux-nat.c: All implementations adjusted.
7874 * linux-nat.h: All implementations adjusted.
7875 * mips-linux-nat.c: All implementations adjusted.
7876 * nto-procfs.c: All implementations adjusted.
7877 * ppc-linux-nat.c: All implementations adjusted.
7878 * procfs.c: All implementations adjusted.
7879 * ravenscar-thread.c: All implementations adjusted.
7880 * record-btrace.c: All implementations adjusted.
7881 * record-full.c: All implementations adjusted.
7882 * remote-sim.c: All implementations adjusted.
7883 * remote.c: All implementations adjusted.
7884 * s390-linux-nat.c: All implementations adjusted.
7885 * sol-thread.c: All implementations adjusted.
7886 * spu-multiarch.c: All implementations adjusted.
7887 * target-delegates.c: All implementations adjusted.
7888 * target.c: All implementations adjusted.
7889 * target.h: All implementations adjusted.
7890 * tracefile-tfile.c: All implementations adjusted.
7891 * tracefile.c: All implementations adjusted.
7892 * tracefile.h: All implementations adjusted.
7893 * windows-nat.c: All implementations adjusted.
7894 * x86-linux-nat.h: All implementations adjusted.
7895 * x86-nat.h: All implementations adjusted.
7897 2018-05-02 Pedro Alves <palves@redhat.com>
7899 * make-target-delegates (scan_target_h): Don't trim lines here.
7900 Replace sequences of tabs and/or whitespace with a single
7902 (top level, parsing methods): Trim each line before processing it
7905 2018-05-02 Pedro Alves <palves@redhat.com>
7906 John Baldwin <jhb@freebsd.org>
7908 * target.h (enum strata) <debug_stratum>: New.
7909 (struct target_ops) <all delegation methods>: Replace by C++
7910 virtual methods, and drop "to_" prefix. All references updated
7912 <to_shortname, to_longname, to_doc, to_data,
7913 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
7914 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
7915 virtual methods. All references updated throughout.
7916 <can_attach, supports_terminal_ours, can_create_inferior,
7917 get_thread_control_capabilities, attach_no_wait>: New
7919 <insert_breakpoint, remove_breakpoint>: Now
7920 TARGET_DEFAULT_NORETURN methods.
7921 <info_proc>: Now returns bool.
7923 (OPS_MAGIC): Delete.
7924 (current_target): Delete. All references replaced by references
7926 (target_stack): ... this. New.
7927 (target_shortname, target_longname): Adjust.
7928 (target_can_run): Now a function declaration.
7929 (default_child_has_all_memory, default_child_has_memory)
7930 (default_child_has_stack, default_child_has_registers)
7931 (default_child_has_execution): Remove target_ops parameter.
7932 (complete_target_initialization): Delete.
7933 (memory_breakpoint_target): New template class.
7934 (test_target_ops): Refactor as a C++ class with virtual methods.
7935 * make-target-delegates (NAME_PART): Tighten.
7936 (POINTER_PART, CP_SYMBOL): New.
7937 (SIMPLE_RETURN_PART): Reimplement.
7938 (VEC_RETURN_PART): Expect less.
7939 (RETURN_PART, VIRTUAL_PART): New.
7940 (METHOD): Adjust to C++ virtual methods.
7941 (scan_target_h): Remove reference to C99.
7942 (dname): Output "target_ops::" prefix.
7943 (write_function_header): Adjust to output a C++ class method.
7944 (write_declaration): New.
7945 (write_delegator): Adjust to output a C++ class method.
7946 (tdname): Output "dummy_target::" prefix.
7947 (write_tdefault, write_debugmethod): Adjust to output a C++ class
7949 (tdefault_names, debug_names): Delete.
7950 (return_types, tdefaults, styles, argtypes_array): New.
7951 (top level): All methods are delegators.
7953 (top level): Print dummy_target and debug_target classes.
7954 * target-delegates.c: Regenerate.
7955 * target-debug.h (target_debug_print_enum_info_proc_what)
7956 (target_debug_print_thread_control_capabilities)
7957 (target_debug_print_thread_info_p): New.
7958 * target.c (dummy_target): Delete.
7959 (the_dummy_target, the_debug_target): New.
7960 (target_stack): Now extern.
7961 (set_targetdebug): Push/unpush debug target.
7962 (default_child_has_all_memory, default_child_has_memory)
7963 (default_child_has_stack, default_child_has_registers)
7964 (default_child_has_execution): Remove target_ops parameter.
7965 (complete_target_initialization): Delete.
7966 (add_target_with_completer): No longer call
7967 complete_target_initialization.
7968 (target_supports_terminal_ours): Use regular delegation.
7969 (update_current_target): Delete.
7970 (push_target): No longer check magic number. Don't call
7971 update_current_target.
7972 (unpush_target): Don't call update_current_target.
7973 (target_is_pushed): No longer check magic number.
7974 (target_require_runnable): Skip for all stratums over
7976 (target_ops::info_proc): New.
7977 (target_info_proc): Use find_target_at and
7978 find_default_run_target.
7979 (target_supports_disable_randomization): Use regular delegation.
7980 (target_get_osdata): Use find_target_at.
7981 (target_ops::open, target_ops::close, target_ops::can_attach)
7982 (target_ops::attach, target_ops::can_create_inferior)
7983 (target_ops::create_inferior, target_ops::can_run)
7984 (target_can_run): New.
7985 (default_fileio_target): Use regular delegation.
7986 (target_ops::fileio_open, target_ops::fileio_pwrite)
7987 (target_ops::fileio_pread, target_ops::fileio_fstat)
7988 (target_ops::fileio_close, target_ops::fileio_unlink)
7989 (target_ops::fileio_readlink): New.
7990 (target_fileio_open_1, target_fileio_unlink)
7991 (target_fileio_readlink): Always call the target method. Handle
7993 (return_zero, return_zero_has_execution): Delete.
7994 (init_dummy_target): Delete.
7995 (dummy_target::dummy_target, dummy_target::shortname)
7996 (dummy_target::longname, dummy_target::doc)
7997 (debug_target::debug_target, debug_target::shortname)
7998 (debug_target::longname, debug_target::doc): New.
7999 (target_supports_delete_record): Use regular delegation.
8000 (setup_target_debug): Delete.
8001 (maintenance_print_target_stack): Skip debug_stratum.
8002 (initialize_targets): Instantiate the_dummy_target and
8004 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8006 (target_auxv_search, fprint_target_auxv): Adjust.
8007 (info_auxv_command): Adjust to use target_stack.
8008 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8009 * exceptions.c (print_flush): Handle a NULL target_stack.
8010 * regcache.c (target_ops_no_register): Refactor as class with
8013 * exec.c (exec_target): New class.
8014 (exec_ops): Now an exec_target.
8015 (exec_open, exec_close_1, exec_get_section_table)
8016 (exec_xfer_partial, exec_files_info, exec_has_memory)
8017 (exec_make_note_section): Refactor as exec_target methods.
8018 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8020 (exec_target::find_memory_regions): New.
8021 (_initialize_exec): Don't call init_exec_ops.
8022 * gdbcore.h (exec_file_clear): Delete.
8024 * corefile.c (core_target): Delete.
8025 (core_file_command): Adjust.
8026 * corelow.c (core_target): New class.
8027 (the_core_target): New.
8028 (core_close): Remove target_ops parameter.
8029 (core_close_cleanup): Adjust.
8030 (core_target::close): New.
8031 (core_open, core_detach, get_core_registers, core_files_info)
8032 (core_xfer_partial, core_thread_alive, core_read_description)
8033 (core_pid_to_str, core_thread_name, core_has_memory)
8034 (core_has_stack, core_has_registers, core_info_proc): Rework as
8035 core_target methods.
8036 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8037 (_initialize_corelow): Initialize the_core_target.
8038 * gdbcore.h (core_target): Delete.
8039 (the_core_target): New.
8041 * ctf.c: (ctf_target): New class.
8042 (ctf_ops): Now a ctf_target.
8043 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8044 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8045 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8047 (init_ctf_ops): Delete.
8048 (_initialize_ctf): Don't call it.
8049 * tracefile-tfile.c (tfile_target): New class.
8050 (tfile_ops): Now a tfile_target.
8051 (tfile_open, tfile_close, tfile_files_info)
8052 (tfile_get_tracepoint_status, tfile_trace_find)
8053 (tfile_fetch_registers, tfile_xfer_partial)
8054 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8055 Refactor as tfile_target methods.
8056 (tfile_xfer_partial_features): Remove target_ops parameter.
8057 (init_tfile_ops): Delete.
8058 (_initialize_tracefile_tfile): Don't call it.
8059 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8060 (tracefile_has_stack, tracefile_has_registers)
8061 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8062 tracefile_target methods.
8063 (init_tracefile_ops): Delete.
8064 (tracefile_target::tracefile_target): New.
8065 * tracefile.h: Include "target.h".
8066 (tracefile_target): New class.
8067 (init_tracefile_ops): Delete.
8069 * spu-multiarch.c (spu_multiarch_target): New class.
8070 (spu_ops): Now a spu_multiarch_target.
8071 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8072 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8073 (spu_search_memory, spu_mourn_inferior): Refactor as
8074 spu_multiarch_target methods.
8075 (init_spu_ops): Delete.
8076 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8077 complete_target_initialization.
8079 * ravenscar-thread.c (ravenscar_thread_target): New class.
8080 (ravenscar_ops): Now a ravenscar_thread_target.
8081 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8082 (ravenscar_thread_alive, ravenscar_pid_to_str)
8083 (ravenscar_fetch_registers, ravenscar_store_registers)
8084 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8085 (ravenscar_stopped_by_hw_breakpoint)
8086 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8087 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8088 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8090 (init_ravenscar_thread_ops): Delete.
8091 (_initialize_ravenscar): Remove references to
8092 init_ravenscar_thread_ops and complete_target_initialization.
8094 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8095 (bsd_uthread_target): New class.
8096 (bsd_uthread_ops): Now a bsd_uthread_target.
8097 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8098 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8099 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8100 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8101 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8102 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8103 (bsd_uthread_target): Delete function.
8104 (_initialize_bsd_uthread): Remove reference to
8105 complete_target_initialization.
8107 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8108 (target_bfd): ... this new class.
8109 (target_bfd_xfer_partial, target_bfd_get_section_table)
8110 (target_bfd_close): Refactor as target_bfd methods.
8111 (target_bfd::~target_bfd): New.
8112 (target_bfd_reopen): Adjust.
8113 (target_bfd::close): New.
8115 * record-btrace.c (record_btrace_target): New class.
8116 (record_btrace_ops): Now a record_btrace_target.
8117 (record_btrace_open, record_btrace_stop_recording)
8118 (record_btrace_disconnect, record_btrace_close)
8119 (record_btrace_async, record_btrace_info)
8120 (record_btrace_insn_history, record_btrace_insn_history_range)
8121 (record_btrace_insn_history_from, record_btrace_call_history)
8122 (record_btrace_call_history_range)
8123 (record_btrace_call_history_from, record_btrace_record_method)
8124 (record_btrace_is_replaying, record_btrace_will_replay)
8125 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8126 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8127 (record_btrace_store_registers, record_btrace_prepare_to_store)
8128 (record_btrace_to_get_unwinder)
8129 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8130 (record_btrace_commit_resume, record_btrace_wait)
8131 (record_btrace_stop, record_btrace_can_execute_reverse)
8132 (record_btrace_stopped_by_sw_breakpoint)
8133 (record_btrace_supports_stopped_by_sw_breakpoint)
8134 (record_btrace_stopped_by_hw_breakpoint)
8135 (record_btrace_supports_stopped_by_hw_breakpoint)
8136 (record_btrace_update_thread_list, record_btrace_thread_alive)
8137 (record_btrace_goto_begin, record_btrace_goto_end)
8138 (record_btrace_goto, record_btrace_stop_replaying_all)
8139 (record_btrace_execution_direction)
8140 (record_btrace_prepare_to_generate_core)
8141 (record_btrace_done_generating_core): Refactor as
8142 record_btrace_target methods.
8143 (init_record_btrace_ops): Delete.
8144 (_initialize_record_btrace): Remove reference to
8145 init_record_btrace_ops.
8146 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8147 the execution_direction global.
8148 (record_full_base_target, record_full_target)
8149 (record_full_core_target): New classes.
8150 (record_full_ops): Now a record_full_target.
8151 (record_full_core_ops): Now a record_full_core_target.
8152 (record_full_target::detach, record_full_target::disconnect)
8153 (record_full_core_target::disconnect)
8154 (record_full_target::mourn_inferior, record_full_target::kill):
8156 (record_full_open, record_full_close, record_full_async): Refactor
8157 as methods of the record_full_base_target class.
8158 (record_full_resume, record_full_commit_resume): Refactor
8159 as methods of the record_full_target class.
8160 (record_full_wait, record_full_stopped_by_watchpoint)
8161 (record_full_stopped_data_address)
8162 (record_full_stopped_by_sw_breakpoint)
8163 (record_full_supports_stopped_by_sw_breakpoint)
8164 (record_full_stopped_by_hw_breakpoint)
8165 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8166 methods of the record_full_base_target class.
8167 (record_full_store_registers, record_full_xfer_partial)
8168 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8169 Refactor as methods of the record_full_target class.
8170 (record_full_can_execute_reverse, record_full_get_bookmark)
8171 (record_full_goto_bookmark, record_full_execution_direction)
8172 (record_full_record_method, record_full_info, record_full_delete)
8173 (record_full_is_replaying, record_full_will_replay)
8174 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8175 (record_full_stop_replaying): Refactor as methods of the
8176 record_full_base_target class.
8177 (record_full_core_resume, record_full_core_kill)
8178 (record_full_core_fetch_registers)
8179 (record_full_core_prepare_to_store)
8180 (record_full_core_store_registers, record_full_core_xfer_partial)
8181 (record_full_core_insert_breakpoint)
8182 (record_full_core_remove_breakpoint)
8183 (record_full_core_has_execution): Refactor
8184 as methods of the record_full_core_target class.
8185 (record_full_base_target::supports_delete_record): New.
8186 (init_record_full_ops): Delete.
8187 (init_record_full_core_ops): Delete.
8188 (record_full_save): Refactor as method of the
8189 record_full_base_target class.
8190 (_initialize_record_full): Remove references to
8191 init_record_full_ops and init_record_full_core_ops.
8193 * remote.c (remote_target, extended_remote_target): New classes.
8194 (remote_ops): Now a remote_target.
8195 (extended_remote_ops): Now an extended_remote_target.
8196 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8197 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8198 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8199 (remote_pass_signals, remote_set_syscall_catchpoint)
8200 (remote_program_signals, )
8201 (remote_thread_always_alive): Remove target_ops parameter.
8202 (remote_thread_alive, remote_thread_name)
8203 (remote_update_thread_list, remote_threads_extra_info)
8204 (remote_static_tracepoint_marker_at)
8205 (remote_static_tracepoint_markers_by_strid)
8206 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8207 (remote_open): Refactor as methods of remote_target.
8208 (extended_remote_open, extended_remote_detach)
8209 (extended_remote_attach, extended_remote_post_attach):
8210 (extended_remote_supports_disable_randomization)
8211 (extended_remote_create_inferior): : Refactor as method of
8212 extended_remote_target.
8213 (remote_set_permissions, remote_open_1, remote_detach)
8214 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8215 (remote_resume, remote_commit_resume, remote_stop)
8216 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8217 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8218 (remote_prepare_to_store, remote_store_registers)
8219 (remote_flash_erase, remote_flash_done, remote_files_info)
8220 (remote_kill, remote_mourn, remote_insert_breakpoint)
8221 (remote_remove_breakpoint, remote_insert_watchpoint)
8222 (remote_watchpoint_addr_within_range)
8223 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8224 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8225 (remote_supports_stopped_by_sw_breakpoint)
8226 (remote_stopped_by_hw_breakpoint)
8227 (remote_supports_stopped_by_hw_breakpoint)
8228 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8229 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8230 (remote_verify_memory): Refactor as methods of remote_target.
8231 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8233 (remote_xfer_partial, remote_get_memory_xfer_limit)
8234 (remote_search_memory, remote_rcmd, remote_memory_map)
8235 (remote_pid_to_str, remote_get_thread_local_address)
8236 (remote_get_tib_address, remote_read_description): Refactor as
8237 methods of remote_target.
8238 (remote_target::fileio_open, remote_target::fileio_pwrite)
8239 (remote_target::fileio_pread, remote_target::fileio_close): New.
8240 (remote_hostio_readlink, remote_hostio_fstat)
8241 (remote_filesystem_is_local, remote_can_execute_reverse)
8242 (remote_supports_non_stop, remote_supports_disable_randomization)
8243 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8244 (remote_supports_enable_disable_tracepoint)
8245 (remote_supports_string_tracing)
8246 (remote_can_run_breakpoint_commands, remote_trace_init)
8247 (remote_download_tracepoint, remote_can_download_tracepoint)
8248 (remote_download_trace_state_variable, remote_enable_tracepoint)
8249 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8250 (remote_trace_start, remote_get_trace_status)
8251 (remote_get_tracepoint_status, remote_trace_stop)
8252 (remote_trace_find, remote_get_trace_state_variable_value)
8253 (remote_save_trace_data, remote_get_raw_trace_data)
8254 (remote_set_disconnected_tracing, remote_core_of_thread)
8255 (remote_set_circular_trace_buffer, remote_traceframe_info)
8256 (remote_get_min_fast_tracepoint_insn_len)
8257 (remote_set_trace_buffer_size, remote_set_trace_notes)
8258 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8259 (remote_disable_btrace, remote_teardown_btrace)
8260 (remote_read_btrace, remote_btrace_conf)
8261 (remote_augmented_libraries_svr4_read, remote_load)
8262 (remote_pid_to_exec_file, remote_can_do_single_step)
8263 (remote_execution_direction, remote_thread_handle_to_thread_info):
8264 Refactor as methods of remote_target.
8265 (init_remote_ops, init_extended_remote_ops): Delete.
8266 (remote_can_async_p, remote_is_async_p, remote_async)
8267 (remote_thread_events, remote_upload_tracepoints)
8268 (remote_upload_trace_state_variables): Refactor as methods of
8270 (_initialize_remote): Remove references to init_remote_ops and
8271 init_extended_remote_ops.
8273 * remote-sim.c (gdbsim_target): New class.
8274 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8275 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8276 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8277 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8278 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8279 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8280 Refactor as methods of gdbsim_target.
8281 (gdbsim_ops): Now a gdbsim_target.
8282 (init_gdbsim_ops): Delete.
8283 (gdbsim_cntrl_c): Adjust.
8284 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8286 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8287 (the_amd64_linux_nat_target): New.
8288 (amd64_linux_fetch_inferior_registers)
8289 (amd64_linux_store_inferior_registers): Refactor as methods of
8290 amd64_linux_nat_target.
8291 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8292 * i386-linux-nat.c: Don't include "linux-nat.h".
8293 (i386_linux_nat_target): New class.
8294 (the_i386_linux_nat_target): New.
8295 (i386_linux_fetch_inferior_registers)
8296 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8297 as methods of i386_linux_nat_target.
8298 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8299 * inf-child.c (inf_child_ops): Delete.
8300 (inf_child_fetch_inferior_registers)
8301 (inf_child_store_inferior_registers): Delete.
8302 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8303 methods of inf_child_target.
8304 (inf_child_target::supports_terminal_ours)
8305 (inf_child_target::terminal_init)
8306 (inf_child_target::terminal_inferior)
8307 (inf_child_target::terminal_ours_for_output)
8308 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8309 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8311 (inf_child_open, inf_child_disconnect, inf_child_close)
8312 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8313 (inf_child_post_startup_inferior, inf_child_can_run)
8314 (inf_child_pid_to_exec_file): Refactor as methods of
8316 (inf_child_follow_fork): Delete.
8317 (inf_child_target::can_create_inferior)
8318 (inf_child_target::can_attach): New.
8319 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8320 (inf_child_target::has_stack, inf_child_target::has_registers)
8321 (inf_child_target::has_execution): New.
8322 (inf_child_fileio_open, inf_child_fileio_pwrite)
8323 (inf_child_fileio_pread, inf_child_fileio_fstat)
8324 (inf_child_fileio_close, inf_child_fileio_unlink)
8325 (inf_child_fileio_readlink, inf_child_use_agent)
8326 (inf_child_can_use_agent): Refactor as methods of
8328 (return_zero, inf_child_target): Delete.
8329 (inf_child_target::inf_child_target): New.
8330 * inf-child.h: Include "target.h".
8331 (inf_child_target): Delete function prototype.
8332 (inf_child_target): New class.
8333 (inf_child_open_target, inf_child_mourn_inferior)
8334 (inf_child_maybe_unpush_target): Delete.
8335 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8336 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8337 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8338 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8339 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8340 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8341 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8342 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8343 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8344 methods of inf_ptrace_target.
8345 (inf_ptrace_target): Delete function.
8346 * inf-ptrace.h: Include "inf-child.h".
8347 (inf_ptrace_target): Delete function declaration.
8348 (inf_ptrace_target): New class.
8349 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8350 * linux-nat.c (linux_target): New.
8351 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8352 (linux_nat_target::~linux_nat_target): New.
8353 (linux_child_post_attach, linux_child_post_startup_inferior)
8354 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8355 (linux_child_remove_fork_catchpoint)
8356 (linux_child_insert_vfork_catchpoint)
8357 (linux_child_remove_vfork_catchpoint)
8358 (linux_child_insert_exec_catchpoint)
8359 (linux_child_remove_exec_catchpoint)
8360 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8361 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8362 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8363 (linux_nat_stopped_data_address)
8364 (linux_nat_stopped_by_sw_breakpoint)
8365 (linux_nat_supports_stopped_by_sw_breakpoint)
8366 (linux_nat_stopped_by_hw_breakpoint)
8367 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8368 (linux_nat_kill, linux_nat_mourn_inferior)
8369 (linux_nat_xfer_partial, linux_nat_thread_alive)
8370 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8371 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8372 (linux_child_static_tracepoint_markers_by_strid)
8373 (linux_nat_is_async_p, linux_nat_can_async_p)
8374 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8375 (linux_nat_supports_multi_process)
8376 (linux_nat_supports_disable_randomization, linux_nat_async)
8377 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8378 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8379 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8380 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8381 methods of linux_nat_target.
8382 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8383 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8385 (check_stopped_by_watchpoint): Adjust.
8386 (linux_xfer_partial): Delete.
8387 (linux_target_install_ops, linux_target, linux_nat_add_target):
8389 (linux_nat_target::linux_nat_target): New.
8390 * linux-nat.h: Include "inf-ptrace.h".
8391 (linux_nat_target): New.
8392 (linux_target, linux_target_install_ops, linux_nat_add_target):
8393 Delete function declarations.
8394 (linux_target): Declare global.
8395 * linux-thread-db.c (thread_db_target): New.
8396 (thread_db_target::thread_db_target): New.
8397 (thread_db_ops): Delete.
8398 (the_thread_db_target): New.
8399 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8400 (thread_db_update_thread_list, thread_db_pid_to_str)
8401 (thread_db_extra_thread_info)
8402 (thread_db_thread_handle_to_thread_info)
8403 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8404 (thread_db_resume): Refactor as methods of thread_db_target.
8405 (init_thread_db_ops): Delete.
8406 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8407 * x86-linux-nat.c: Don't include "linux-nat.h".
8408 (super_post_startup_inferior): Delete.
8409 (x86_linux_nat_target::~x86_linux_nat_target): New.
8410 (x86_linux_child_post_startup_inferior)
8411 (x86_linux_read_description, x86_linux_enable_btrace)
8412 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8413 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8414 methods of x86_linux_nat_target.
8415 (x86_linux_create_target): Delete. Bits folded ...
8416 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8418 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8419 (x86_linux_nat_target): New class.
8420 (x86_linux_create_target): Delete.
8421 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8422 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8423 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8424 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8425 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8426 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8428 (x86_use_watchpoints): Delete.
8429 * x86-nat.h: Include "breakpoint.h" and "target.h".
8430 (x86_use_watchpoints): Delete.
8431 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8432 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8433 (x86_insert_watchpoint, x86_remove_watchpoint)
8434 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8435 (x86_stopped_by_hw_breakpoint): New declarations.
8436 (x86_nat_target): New template class.
8438 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8439 (the_ppc_linux_nat_target): New.
8440 (ppc_linux_fetch_inferior_registers)
8441 (ppc_linux_can_use_hw_breakpoint)
8442 (ppc_linux_region_ok_for_hw_watchpoint)
8443 (ppc_linux_ranged_break_num_registers)
8444 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8445 (ppc_linux_insert_mask_watchpoint)
8446 (ppc_linux_remove_mask_watchpoint)
8447 (ppc_linux_can_accel_watchpoint_condition)
8448 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8449 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8450 (ppc_linux_watchpoint_addr_within_range)
8451 (ppc_linux_masked_watch_num_registers)
8452 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8453 (ppc_linux_read_description): Refactor as methods of
8454 ppc_linux_nat_target.
8455 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8457 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8458 (procfs_target): New class.
8459 (the_procfs_target): New.
8460 (procfs_target): Delete function.
8461 (procfs_auxv_parse, procfs_attach, procfs_detach)
8462 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8463 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8464 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8465 (procfs_create_inferior, procfs_update_thread_list)
8466 (procfs_thread_alive, procfs_pid_to_str)
8467 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8468 (procfs_stopped_data_address, procfs_insert_watchpoint)
8469 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8470 (proc_find_memory_regions, procfs_info_proc)
8471 (procfs_make_note_section): Refactor as methods of procfs_target.
8472 (_initialize_procfs): Adjust.
8473 * sol-thread.c (sol_thread_target): New class.
8474 (sol_thread_ops): Now a sol_thread_target.
8475 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8476 (sol_thread_fetch_registers, sol_thread_store_registers)
8477 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8478 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8479 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8480 (init_sol_thread_ops): Delete.
8481 (_initialize_sol_thread): Adjust. Remove references to
8482 init_sol_thread_ops and complete_target_initialization.
8484 * windows-nat.c (windows_nat_target): New class.
8485 (windows_fetch_inferior_registers)
8486 (windows_store_inferior_registers, windows_resume, windows_wait)
8487 (windows_attach, windows_detach, windows_pid_to_exec_file)
8488 (windows_files_info, windows_create_inferior)
8489 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8490 (windows_close, windows_pid_to_str, windows_xfer_partial)
8491 (windows_get_tib_address, windows_get_ada_task_ptid)
8492 (windows_thread_name, windows_thread_alive): Refactor as
8493 windows_nat_target methods.
8494 (do_initial_windows_stuff): Adjust.
8495 (windows_target): Delete function.
8496 (_initialize_windows_nat): Adjust.
8498 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8499 (darwin_mourn_inferior, darwin_kill_inferior)
8500 (darwin_create_inferior, darwin_attach, darwin_detach)
8501 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8502 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8503 (darwin_supports_multi_process): Refactor as darwin_nat_target
8505 (darwin_resume_to, darwin_files_info): Delete.
8506 (_initialize_darwin_inferior): Rename to ...
8507 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8508 * darwin-nat.h: Include "inf-child.h".
8509 (darwin_nat_target): New class.
8510 (darwin_complete_target): Delete.
8511 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8512 (darwin_target): New.
8513 (i386_darwin_fetch_inferior_registers)
8514 (i386_darwin_store_inferior_registers): Refactor as methods of
8516 (darwin_complete_target): Delete, with ...
8517 (_initialize_i386_darwin_nat): ... bits factored out here.
8519 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8520 (the_alpha_linux_nat_target): New.
8521 (alpha_linux_register_u_offset): Refactor as
8522 alpha_linux_nat_target method.
8523 (_initialize_alpha_linux_nat): Adjust.
8524 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8525 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8526 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8527 methods of linux_nat_trad_target.
8528 (linux_trad_target): Delete.
8529 * linux-nat-trad.h (linux_trad_target): Delete function.
8530 (linux_nat_trad_target): New class.
8531 * mips-linux-nat.c (mips_linux_nat_target): New class.
8532 (super_fetch_registers, super_store_registers, super_close):
8534 (the_mips_linux_nat_target): New.
8535 (mips64_linux_regsets_fetch_registers)
8536 (mips64_linux_regsets_store_registers)
8537 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8538 (mips_linux_register_u_offset, mips_linux_read_description)
8539 (mips_linux_can_use_hw_breakpoint)
8540 (mips_linux_stopped_by_watchpoint)
8541 (mips_linux_stopped_data_address)
8542 (mips_linux_region_ok_for_hw_watchpoint)
8543 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8544 (mips_linux_close): Refactor as methods of mips_linux_nat.
8545 (_initialize_mips_linux_nat): Adjust to C++ification.
8547 * aix-thread.c (aix_thread_target): New class.
8548 (aix_thread_ops): Now an aix_thread_target.
8549 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8550 (aix_thread_fetch_registers, aix_thread_store_registers)
8551 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8552 (aix_thread_thread_alive, aix_thread_pid_to_str)
8553 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8554 Refactor as methods of aix_thread_target.
8555 (init_aix_thread_ops): Delete.
8556 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8557 and complete_target_initialization.
8558 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8559 (rs6000_nat_target): New class.
8560 (the_rs6000_nat_target): New.
8561 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8562 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8563 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8564 (super_create_inferior): Delete.
8565 (_initialize_rs6000_nat): Adjust to C++ification.
8567 * arm-linux-nat.c (arm_linux_nat_target): New class.
8568 (the_arm_linux_nat_target): New.
8569 (arm_linux_fetch_inferior_registers)
8570 (arm_linux_store_inferior_registers, arm_linux_read_description)
8571 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8572 (arm_linux_remove_hw_breakpoint)
8573 (arm_linux_region_ok_for_hw_watchpoint)
8574 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8575 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8576 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8577 arm_linux_nat_target.
8578 (_initialize_arm_linux_nat): Adjust to C++ification.
8580 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8581 (the_aarch64_linux_nat_target): New.
8582 (aarch64_linux_fetch_inferior_registers)
8583 (aarch64_linux_store_inferior_registers)
8584 (aarch64_linux_child_post_startup_inferior)
8585 (aarch64_linux_read_description)
8586 (aarch64_linux_can_use_hw_breakpoint)
8587 (aarch64_linux_insert_hw_breakpoint)
8588 (aarch64_linux_remove_hw_breakpoint)
8589 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8590 (aarch64_linux_region_ok_for_hw_watchpoint)
8591 (aarch64_linux_stopped_data_address)
8592 (aarch64_linux_stopped_by_watchpoint)
8593 (aarch64_linux_watchpoint_addr_within_range)
8594 (aarch64_linux_can_do_single_step): Refactor as methods of
8595 aarch64_linux_nat_target.
8596 (super_post_startup_inferior): Delete.
8597 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8599 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8600 (the_hppa_linux_nat_target): New.
8601 (hppa_linux_fetch_inferior_registers)
8602 (hppa_linux_store_inferior_registers): Refactor as methods of
8603 hppa_linux_nat_target.
8604 (_initialize_hppa_linux_nat): Adjust to C++ification.
8606 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8607 (the_ia64_linux_nat_target): New.
8608 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8609 (ia64_linux_stopped_data_address)
8610 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8611 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8612 ia64_linux_nat_target methods.
8613 (super_xfer_partial): Delete.
8614 (_initialize_ia64_linux_nat): Adjust to C++ification.
8616 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8617 (the_m32r_linux_nat_target): New.
8618 (m32r_linux_fetch_inferior_registers)
8619 (m32r_linux_store_inferior_registers): Refactor as
8620 m32r_linux_nat_target methods.
8621 (_initialize_m32r_linux_nat): Adjust to C++ification.
8623 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8624 (the_m68k_linux_nat_target): New.
8625 (m68k_linux_fetch_inferior_registers)
8626 (m68k_linux_store_inferior_registers): Refactor as
8627 m68k_linux_nat_target methods.
8628 (_initialize_m68k_linux_nat): Adjust to C++ification.
8630 * s390-linux-nat.c (s390_linux_nat_target): New class.
8631 (the_s390_linux_nat_target): New.
8632 (s390_linux_fetch_inferior_registers)
8633 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8634 (s390_insert_watchpoint, s390_remove_watchpoint)
8635 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8636 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8637 (s390_auxv_parse, s390_read_description): Refactor as methods of
8638 s390_linux_nat_target.
8639 (_initialize_s390_nat): Adjust to C++ification.
8641 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8642 (the_sparc_linux_nat_target): New.
8643 (_initialize_sparc_linux_nat): Adjust to C++ification.
8644 * sparc-nat.c (sparc_fetch_inferior_registers)
8645 (sparc_store_inferior_registers): Remove target_ops parameter.
8646 * sparc-nat.h (sparc_fetch_inferior_registers)
8647 (sparc_store_inferior_registers): Remove target_ops parameter.
8648 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8649 (the_sparc64_linux_nat_target): New.
8650 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8652 * spu-linux-nat.c (spu_linux_nat_target): New class.
8653 (the_spu_linux_nat_target): New.
8654 (spu_child_post_startup_inferior, spu_child_post_attach)
8655 (spu_child_wait, spu_fetch_inferior_registers)
8656 (spu_store_inferior_registers, spu_xfer_partial)
8657 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8659 (_initialize_spu_nat): Adjust to C++ification.
8661 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8662 (the_tilegx_linux_nat_target): New.
8663 (fetch_inferior_registers, store_inferior_registers):
8664 Refactor as methods.
8665 (_initialize_tile_linux_nat): Adjust to C++ification.
8667 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8668 (the_xtensa_linux_nat_target): New.
8669 (xtensa_linux_fetch_inferior_registers)
8670 (xtensa_linux_store_inferior_registers): Refactor as
8671 xtensa_linux_nat_target methods.
8672 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8674 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8675 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8676 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8677 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8678 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8679 (fbsd_stopped_by_sw_breakpoint)
8680 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8681 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8682 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8683 (fbsd_post_startup_inferior, fbsd_post_attach)
8684 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8685 (fbsd_set_syscall_catchpoint)
8686 (super_xfer_partial, super_resume, super_wait)
8687 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8688 (fbsd_handle_debug_trap): Remove target_ops parameter.
8689 (fbsd_nat_add_target): Delete.
8690 * fbsd-nat.h: Include "inf-ptrace.h".
8691 (fbsd_nat_add_target): Delete.
8692 (USE_SIGTRAP_SIGINFO): Define.
8693 (fbsd_nat_target): New class.
8695 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8696 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8697 (amd64bsd_target): Delete.
8698 * amd64-bsd-nat.h: New file.
8699 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8701 (amd64_fbsd_nat_target): New class.
8702 (the_amd64_fbsd_nat_target): New.
8703 (amd64fbsd_read_description): Refactor as method of
8704 amd64_fbsd_nat_target.
8705 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8706 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8707 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8708 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8709 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8710 (i386bsd_target): Delete.
8711 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8712 (i386bsd_fetch_inferior_registers)
8713 (i386bsd_store_inferior_registers): Declare.
8714 (i386_bsd_nat_target): New class.
8715 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8716 (the_i386_fbsd_nat_target): New.
8717 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8718 i386_fbsd_nat_target methods.
8719 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8720 (_initialize_i386fbsd_nat): Adjust to C++ification.
8721 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8722 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8723 (_initialize_x86_bsd_nat): Adjust to C++ification.
8724 * x86-bsd-nat.h: Include "x86-nat.h".
8725 (x86bsd_target): Delete declaration.
8726 (x86bsd_nat_target): New class.
8728 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8729 (the_aarch64_fbsd_nat_target): New.
8730 (aarch64_fbsd_fetch_inferior_registers)
8731 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8732 aarch64_fbsd_nat_target.
8733 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8734 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8735 (the_alpha_bsd_nat_target): New.
8736 (alphabsd_fetch_inferior_registers)
8737 (alphabsd_store_inferior_registers): Refactor as
8738 alpha_bsd_nat_target methods.
8739 (_initialize_alphabsd_nat): Refactor as methods of
8740 alpha_bsd_nat_target.
8741 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8742 (the_amd64_nbsd_nat_target): New.
8743 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8744 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8745 (the_amd64_obsd_nat_target): New.
8746 (_initialize_amd64obsd_nat): Adjust to C++ification.
8747 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8748 (the_arm_fbsd_nat_target): New.
8749 (arm_fbsd_fetch_inferior_registers)
8750 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8751 (_initialize_arm_fbsd_nat): Refactor as methods of
8752 arm_fbsd_nat_target.
8753 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8754 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8755 (the_arm_netbsd_nat_target): New.
8756 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8757 arm_netbsd_nat_target.
8758 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8759 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8760 (the_hppa_nbsd_nat_target): New.
8761 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8762 hppa_nbsd_nat_target methods.
8763 (_initialize_hppanbsd_nat): Adjust to C++ification.
8764 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8765 (the_hppa_obsd_nat_target): New.
8766 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8767 methods of hppa_obsd_nat_target.
8768 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8770 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8771 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8773 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8774 (_initialize_i386obsd_nat): Use add_target.
8775 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8776 (the_m68k_bsd_nat_target): New.
8777 (m68kbsd_fetch_inferior_registers)
8778 (m68kbsd_store_inferior_registers): Refactor as methods of
8779 m68k_bsd_nat_target.
8780 (_initialize_m68kbsd_nat): Adjust to C++ification.
8781 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8782 (the_mips_fbsd_nat_target): New.
8783 (mips_fbsd_fetch_inferior_registers)
8784 (mips_fbsd_store_inferior_registers): Refactor as methods of
8785 mips_fbsd_nat_target.
8786 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8788 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8789 (the_mips_nbsd_nat_target): New.
8790 (mipsnbsd_fetch_inferior_registers)
8791 (mipsnbsd_store_inferior_registers): Refactor as methods of
8792 mips_nbsd_nat_target.
8793 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8794 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8795 (the_mips64_obsd_nat_target): New.
8796 (mips64obsd_fetch_inferior_registers)
8797 (mips64obsd_store_inferior_registers): Refactor as methods of
8798 mips64_obsd_nat_target.
8799 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8801 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8803 * nbsd-nat.h: Include "inf-ptrace.h".
8804 (nbsd_nat_target): New class.
8805 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8806 (obsd_wait): Refactor as methods of obsd_nat_target.
8807 (obsd_add_target): Delete.
8808 * obsd-nat.h: Include "inf-ptrace.h".
8809 (obsd_nat_target): New class.
8810 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8811 (the_ppc_fbsd_nat_target): New.
8812 (ppcfbsd_fetch_inferior_registers)
8813 (ppcfbsd_store_inferior_registers): Refactor as methods of
8814 ppc_fbsd_nat_target.
8815 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8817 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8818 (the_ppc_nbsd_nat_target): New.
8819 (ppcnbsd_fetch_inferior_registers)
8820 (ppcnbsd_store_inferior_registers): Refactor as methods of
8821 ppc_nbsd_nat_target.
8822 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8823 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8824 (the_ppc_obsd_nat_target): New.
8825 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8826 methods of ppc_obsd_nat_target.
8827 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8829 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8830 (the_sh_nbsd_nat_target): New.
8831 (shnbsd_fetch_inferior_registers)
8832 (shnbsd_store_inferior_registers): Refactor as methods of
8834 (_initialize_shnbsd_nat): Adjust to C++ification.
8835 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8836 (inf_ptrace_xfer_partial): Delete.
8837 (sparc_xfer_partial, sparc_target): Delete.
8838 * sparc-nat.h (sparc_fetch_inferior_registers)
8839 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8840 (sparc_target): Delete function declaration.
8841 (sparc_target): New template class.
8842 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8843 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8844 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8845 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8847 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8848 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8849 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8850 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8852 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8853 (the_vax_bsd_nat_target): New.
8854 (vaxbsd_fetch_inferior_registers)
8855 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8857 (_initialize_vaxbsd_nat): Adjust to C++ification.
8859 * bsd-kvm.c (bsd_kvm_target): New class.
8860 (bsd_kvm_ops): Now a bsd_kvm_target.
8861 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8862 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8863 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8865 (bsd_kvm_return_one): Delete.
8866 (bsd_kvm_add_target): Adjust to C++ification.
8868 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8869 (nto_procfs_target_procfs): New classes.
8870 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8871 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8872 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8873 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8874 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8875 (procfs_remove_hw_breakpoint, procfs_resume)
8876 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8877 (procfs_kill_inferior, procfs_store_registers)
8878 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8879 as methods of nto_procfs_target.
8880 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8881 (nto_native_ops): Delete.
8882 (procfs_open, procfs_native_open): Delete.
8883 (nto_native_ops): Now an nto_procfs_target_native.
8884 (init_procfs_targets): Adjust to C++ification.
8885 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8886 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8887 Refactor as methods of nto_procfs_target.
8889 * go32-nat.c (go32_nat_target): New class.
8890 (the_go32_nat_target): New.
8891 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8892 (go32_store_registers, go32_xfer_partial, go32_files_info)
8893 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8894 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8895 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8896 (go32_pid_to_str): Refactor as methods of go32_nat_target.
8897 (go32_target): Delete.
8898 (_initialize_go32_nat): Adjust to C++ification.
8900 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8901 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8902 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8903 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8905 (gnu_target): Delete.
8906 * gnu-nat.h (gnu_target): Delete.
8907 (gnu_nat_target): New class.
8908 * i386-gnu-nat.c (gnu_base_target): New.
8909 (i386_gnu_nat_target): New class.
8910 (the_i386_gnu_nat_target): New.
8911 (_initialize_i386gnu_nat): Adjust to C++ification.
8913 2018-05-02 Pedro Alves <palves@redhat.com>
8915 * bfd-target.c (target_bfd_xclose): Rename to ...
8916 (target_bfd_close): ... this.
8917 (target_bfd_reopen): Adjust.
8918 * target.c (target_close): Remove references to to_xclose.
8919 * target.h (target_ops::to_xclose): Delete.
8920 (target_ops::to_close): Update comments.
8922 2018-05-02 Pedro Alves <palves@redhat.com>
8924 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
8926 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
8927 * inf-ptrace.c (inf_ptrace_register_u_offset)
8928 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8929 (inf_ptrace_store_register, inf_ptrace_store_registers)
8930 (inf_ptrace_trad_target): Move to ...
8931 * linux-nat-trad.c: ... this new file.
8932 * linux-nat-trad.h: New file.
8933 * linux-nat.c (linux_target_install_ops): Make extern.
8934 (linux_trad_target): Delete.
8935 * linux-nat.h (linux_trad_target): Delete declaration.
8936 (linux_target_install_ops): Declare.
8937 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
8940 2018-05-02 Pedro Alves <palves@redhat.com>
8942 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8943 procfs_target/add_target here.
8944 * procfs.c (procfs_target): Make static.
8945 (_initialize_procfs): Call add_target here.
8946 * procfs.h (struct target_ops): Remove forward declaration.
8947 (procfs_target): Remove declaration.
8948 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
8950 2018-05-02 Pedro Alves <palves@redhat.com>
8952 * procfs.c (procfs_stopped_by_watchpoint)
8953 (procfs_insert_watchpoint, procfs_remove_watchpoint)
8954 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
8956 (procfs_use_watchpoints): Delete, move contents...
8957 (procfs_target): ... here.
8958 * procfs.h (procfs_use_watchpoints): Delete declaration.
8959 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8960 procfs_use_watchpoints.
8961 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8962 procfs_use_watchpoints.
8964 2018-05-02 Tom Tromey <tom@tromey.com>
8967 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
8968 and var_zuinteger_unlimited.
8969 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
8970 and PARAM_ZUINTEGER_UNLIMITED.
8971 (set_parameter_value): Handle var_zuinteger and
8972 var_zuinteger_unlimited.
8973 (add_setshow_generic): Likewise.
8974 (parmpy_init): Likewise.
8976 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
8979 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
8980 pointer is not null before dereferencing it.
8982 2018-04-30 Tom Tromey <tom@tromey.com>
8984 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
8987 2018-04-30 Tom Tromey <tom@tromey.com>
8989 * breakpoint.c (mention): Remove use of is_mi_like_p.
8990 (print_mention_ranged_breakpoint): Likewise.
8991 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
8994 2018-04-30 Tom Tromey <tom@tromey.com>
8996 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
8998 2018-04-30 Tom Tromey <tom@tromey.com>
9000 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9001 (info_spu_event_command): Remove some uses of is_mi_like_p.
9003 2018-04-30 Tom Tromey <tom@tromey.com>
9005 * python/py-framefilter.c (py_print_single_arg)
9006 (enumerate_locals, py_print_args, py_print_frame): Remove some
9007 uses of is_mi_like_p.
9009 2018-04-30 Tom Tromey <tom@tromey.com>
9012 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9013 * ui-out.h (ui_out::is_mi_like_p): Now const.
9014 (ui_out::do_is_mi_like_p): Now const.
9015 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9017 2018-04-30 Tom Tromey <tom@tromey.com>
9019 * varobj.c (varobj_set_visualizer): Use new_reference.
9020 * python/python.c (gdbpy_decode_line): Use new_reference.
9021 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9024 2018-04-30 Tom Tromey <tom@tromey.com>
9026 * varobj.c (install_new_value): Use new_reference.
9027 * value.h (value_incref): Return void. Swap intro comment with
9029 * value.c (set_value_parent): Use new_reference.
9030 (value_incref): Return void. Update intro comment.
9031 (release_value): Use new_reference.
9032 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9034 2018-04-30 Tom Tromey <tom@tromey.com>
9036 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9037 * gdb_bfd.h (new_bfd_ref): Remove.
9038 (gdb_bfd_open): Update comment.
9039 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9040 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9041 (gdb_bfd_fdopenr): Use new_reference.
9042 * exec.c (exec_file_attach): Use new_reference.
9044 2018-04-30 Tom Tromey <tom@tromey.com>
9046 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9049 2018-04-30 Tom Tromey <tom@tromey.com>
9051 * jit.c (jit_read_code_entry): Use type_align.
9052 * i386-tdep.c (i386_gdbarch_init): Don't call
9053 set_gdbarch_long_long_align_bit.
9054 * gdbarch.sh: Remove long_long_align_bit.
9055 * gdbarch.c, gdbarch.h: Rebuild.
9056 * arc-tdep.c (arc_type_align): New function.
9057 (arc_gdbarch_init): Use arc_type_align. Don't call
9058 set_gdbarch_long_long_align_bit.
9060 2018-04-30 Tom Tromey <tom@tromey.com>
9062 * rust-lang.c (rust_type_alignment): Remove.
9063 (rust_composite_type): Use type_align.
9065 2018-04-30 Tom Tromey <tom@tromey.com>
9067 * NEWS: Mention Type.align.
9068 * python/py-type.c (typy_get_alignof): New function.
9069 (type_object_getset): Add "alignof".
9071 2018-04-30 Tom Tromey <tom@tromey.com>
9075 * std-operator.def (UNOP_ALIGNOF): New operator.
9076 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9078 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9079 * c-lang.c (c_op_print_tab): Add alignof.
9080 * c-exp.y (ALIGNOF): New token.
9081 (exp): Add "ALIGNOF" production.
9082 (ident_tokens): Add _Alignof and alignof.
9084 2018-04-30 Tom Tromey <tom@tromey.com>
9086 * i386-tdep.c (i386_type_align): New function.
9087 (i386_gdbarch_init): Update.
9088 * gdbarch.sh (type_align): New method.
9089 * gdbarch.c, gdbarch.h: Rebuild.
9090 * arch-utils.h (default_type_align): Declare.
9091 * arch-utils.c (default_type_align): New function.
9092 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9093 (struct type) <align_log2>: New field.
9094 <instance_flags>: Now a bitfield.
9095 (TYPE_RAW_ALIGN): New macro.
9096 (type_align, type_raw_align, set_type_align): Declare.
9097 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9099 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9100 (get_alignment, maybe_set_alignment): New functions.
9101 (read_structure_type, read_enumeration_type, read_array_type)
9102 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9103 (read_subrange_type, read_base_type): Set type alignment.
9105 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9107 * dwarf2read.c (read_index_from_section): Use bool.
9109 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9112 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9115 2018-04-29 John Reiser <jreiser@BitWagon.com>
9118 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9119 last step, and do it atomically.
9121 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9123 * compile/compile-c-types.c (convert_int, convert_float):
9126 2018-04-27 Tom Tromey <tom@tromey.com>
9129 * rust-lang.c (rust_inclusive_range_type_p): New function.
9130 (rust_range): Handle inclusive ranges.
9131 (rust_compute_range): Likewise.
9132 * rust-exp.y (struct rust_op) <inclusive>: New field.
9133 (DOTDOTEQ): New constant.
9134 (range_expr): Add "..=" productions.
9135 (operator_tokens): Add "..=" token.
9136 (ast_range): Add "inclusive" parameter.
9137 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9139 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9141 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9142 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9144 * expprint.c (print_subexp_standard): Handle new bounds values.
9145 (dump_subexp_body_standard): Likewise.
9147 2018-04-27 Tom Tromey <tom@tromey.com>
9149 * configure: Rebuild.
9150 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9151 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9153 (class symbol_needs_eval_context): Likewise.
9154 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9155 (mock_mapped_index::symbol_name_at): Use "override". Remove
9157 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9159 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9160 * aarch64-tdep.c (instruction_reader::read): Use "override".
9161 (instruction_reader_test::read): Likewise.
9162 * arm-tdep.c (instruction_reader::read): Use "override".
9163 (instruction_reader_thumb::read): Likewise.
9165 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9168 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9169 instead of remote_send.
9170 (remote_send): Remove.
9172 2018-04-26 Pedro Alves <palves@redhat.com>
9174 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9175 find_function_start_sal instead of find_pc_line.
9177 2018-04-26 Pedro Alves <palves@redhat.com>
9179 * breakpoint.c (set_breakpoint_location_function): Handle
9181 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9182 * elfread.c (elf_symtab_read): Give data symbols with
9183 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9184 (elf_rel_plt_read): Update comment.
9185 * linespec.c (convert_linespec_to_sals): Handle
9187 (minsym_found): Handle mst_data_gnu_ifunc.
9188 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9189 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9190 * parse.c (find_minsym_type_and_address): Handle
9192 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9193 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9194 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9196 <mst_data_gnu_ifunc>: New enumerator.
9198 2018-04-26 Pedro Alves <palves@redhat.com>
9200 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9201 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9202 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9204 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9205 (lookup_minimal_symbol_by_pc): Adjust.
9206 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9207 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9208 * minsyms.h (lookup_msym_prefer): New enum.
9209 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9210 parameter by a lookup_msym_prefer parameter.
9212 2018-04-26 Pedro Alves <palves@redhat.com>
9214 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9215 ends in "@plt" instead of looking at the symbol's section.
9217 2018-04-26 Pedro Alves <palves@redhat.com>
9219 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9221 (find_pc_partial_function_gnu_ifunc): Rename to ...
9222 (find_pc_partial_function): ... this, and remove references to
9224 (find_pc_partial_function): Delete old implementation.
9225 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9227 2018-04-26 Pedro Alves <palves@redhat.com>
9229 * linespec.c (struct bound_minimal_symbol_search_key): New.
9230 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9231 skip first line if we found a GNU ifunc minimal symbol by name.
9232 (compare_msymbols): Change parameters to work with a destructured
9234 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9237 2018-04-26 Pedro Alves <palves@redhat.com>
9239 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9240 ifunc targets here. Instead, if we have an ifunc minsym, use its
9242 (add_location_to_breakpoint): Store the minsym and the objfile in
9243 the breakpoint location.
9244 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9245 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9246 Record the minsym in the sal.
9247 * symtab.h (symtab_and_line) <msymbol>: New field.
9249 2018-04-26 Pedro Alves <palves@redhat.com>
9251 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9252 unless we actually resolved the ifunc.
9254 2018-04-26 Pedro Alves <palves@redhat.com>
9256 * c-exp.y (variable production): Prefer ifunc minsyms over
9257 regular function symbols.
9258 * symtab.c (find_gnu_ifunc): New function.
9259 * minsyms.h (lookup_msym_prefer): New enum.
9260 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9261 parameter by a lookup_msym_prefer parameter.
9262 * symtab.h (find_gnu_ifunc): New declaration.
9264 2018-04-26 Pedro Alves <palves@redhat.com>
9266 * blockframe.c (find_gnu_ifunc_target_type): New function.
9267 (find_function_type): New.
9268 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9269 return a value with a memory address.
9270 (eval_call): For calls to GNU ifunc functions, try to find the
9271 type of the target function from the type that the resolver
9273 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9275 * infcall.c (find_function_return_type): Delete.
9276 (find_function_addr): Add 'function_type' parameter. For calls to
9277 GNU ifunc functions, try to find the type of the target function
9278 from the type that the resolver returns, and return it via
9280 (call_function_by_hand_dummy): Adjust to use the function type
9281 returned by find_function_addr.
9282 (find_function_addr): Add 'function_type' parameter and move
9284 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9287 2018-04-26 Pedro Alves <palves@redhat.com>
9289 * c-exp.y (variable production): Skip finding an alias for ifunc
9292 2018-04-26 Pedro Alves <palves@redhat.com>
9294 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9296 2018-04-25 Pedro Alves <palves@redhat.com>
9298 * infcmd.c (kill_command): Print the pid as string, not the whole
9299 thread's ptid. Add comment. s/has been killed/killed/ in output
9301 * remote.c (remote_detach_1): Print the pid as string, not the
9302 whole thread's ptid.
9304 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9305 Sergio Durigan Junior <sergiodj@redhat.com>
9306 Pedro Alves <palves@redhat.com>
9308 * infcmd.c (kill_command): Print message when inferior has
9310 * inferior.c (print_inferior_events): Remove 'static'. Set as
9312 (add_inferior): Improve message printed when
9313 'print_inferior_events' is on.
9314 (exit_inferior): Remove message printed when
9315 'print_inferior_events' is on.
9316 (detach_inferior): Improve message printed when
9317 'print_inferior_events' is on.
9318 (initialize_inferiors): Use 'add_inferior_silent' to set
9319 'current_inferior_'.
9320 * inferior.h (print_inferior_events): Declare here as
9322 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9323 '[Detaching...]' messages when 'print_inferior_events' is on.
9324 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9325 as prefix/suffix for messages. Remove periods. Fix erroneous
9326 'Detaching after fork from child...', replace it by '... from
9328 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9329 prefix/suffix when printing 'Detaching...' messages. Print
9330 them when 'print_inferior_events' is on.
9331 * remote.c (remote_detach_1): Print message when detaching
9332 from inferior and '!is_fork_parent'.
9334 2018-04-24 Tom Tromey <tom@tromey.com>
9336 * cli-out.h: Reindent.
9338 2018-04-24 Tom Tromey <tom@tromey.com>
9340 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9341 (cli_ui_out::do_field_string): Use fputs_filtered.
9342 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9344 2018-04-23 Tom Tromey <tom@tromey.com>
9346 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9347 gdb::unique_xmalloc_ptr.
9349 2018-04-23 Tom Tromey <tom@tromey.com>
9351 * configure: Rebuild.
9353 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9356 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9357 prepare_for_testing. Set normal_bp to r_debug_state if target
9360 2018-04-21 Pedro Alves <palves@redhat.com>
9361 Rajendra SY <rajendra.sy@gmail.com>
9363 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9364 * remote.c (extended_remote_attach): In all-stop mode, mark the
9365 thread as executing.
9367 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9369 * thread.c (thread_apply_all_command): Fix comment.
9370 (thread_command): Fix comment.
9372 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9374 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9376 * features/aarch64-core.c (create_feature_aarch64_core):
9378 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9380 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9382 * features/i386/32bit-avx512.c
9383 (create_feature_i386_32bit_avx512): Likewise.
9384 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9386 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9388 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9390 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9392 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9394 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9396 * features/i386/64bit-avx512.c
9397 (create_feature_i386_64bit_avx512): Likewise.
9398 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9400 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9402 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9404 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9406 * features/i386/64bit-segments.c
9407 (create_feature_i386_64bit_segments): Likewise.
9408 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9410 * features/i386/x32-core.c
9411 (create_feature_i386_x32_core): Likewise.
9412 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9413 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9414 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9415 * target-descriptions.c: In generated code, don't pass xml
9418 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9420 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9421 (print_xml_feature::visit_post): Likewise.
9422 (print_xml_feature::visit): Likewise.
9423 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9424 (print_xml_feature): Add new class.
9425 * regformats/regdat.sh: Null xmltarget on feature targets.
9426 * target-descriptions.c (struct target_desc): Add xmltarget.
9427 (maintenance_check_tdesc_xml_convert): Add unittest function.
9428 (tdesc_get_features_xml): Add function to get xml.
9429 (maintenance_check_xml_descriptions): Test xml generation.
9430 * xml-tdesc.c (string_read_description_xml): Add function.
9431 * xml-tdesc.h (string_read_description_xml): Add declaration.
9433 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9435 * features/Makefile: Add feature marker to targets with new style
9436 target descriptions.
9437 * regformats/aarch64.dat: Regenerate.
9438 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9439 * regformats/i386/amd64-avx-linux.dat: Likewise.
9440 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9441 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9442 * regformats/i386/amd64-linux.dat: Likewise.
9443 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9444 * regformats/i386/amd64.dat: Likewise.
9445 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9446 * regformats/i386/i386-avx-linux.dat: Likewise.
9447 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9448 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9449 * regformats/i386/i386-linux.dat: Likewise.
9450 * regformats/i386/i386-mmx-linux.dat: Likewise.
9451 * regformats/i386/i386-mpx-linux.dat: Likewise.
9452 * regformats/i386/i386.dat: Likewise.
9453 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9454 * regformats/i386/x32-avx-linux.dat: Likewise.
9455 * regformats/i386/x32-linux.dat: Likewise.
9456 * regformats/tic6x-c62x-linux.dat: Likewise.
9457 * regformats/tic6x-c64x-linux.dat: Likewise.
9458 * regformats/tic6x-c64xp-linux.dat: Likewise.
9459 * regformats/regdat.sh: Parse feature marker.
9461 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9463 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9464 (tdesc_osabi_name): Likewise.
9465 * target-descriptions.c (tdesc_architecture_name): Add new
9467 (tdesc_osabi_name): Likewise.
9469 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9471 * common/tdesc.c (tdesc_predefined_type): Move to here.
9472 (tdesc_named_type): Likewise.
9473 (tdesc_create_vector): Likewise.
9474 (tdesc_create_struct): Likewise.
9475 (tdesc_set_struct_size): Likewise.
9476 (tdesc_create_union): Likewise.
9477 (tdesc_create_flags): Likewise.
9478 (tdesc_create_enum): Likewise.
9479 (tdesc_add_field): Likewise.
9480 (tdesc_add_typed_bitfield): Likewise.
9481 (tdesc_add_bitfield): Likewise.
9482 (tdesc_add_flag): Likewise.
9483 (tdesc_add_enum_value): Likewise.
9484 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9485 (struct tdesc_type_vector): Likewise.
9486 (struct tdesc_type_field): Likewise.
9487 (struct tdesc_type_with_fields): Likewise.
9488 (tdesc_create_enum): Add declaration.
9489 (tdesc_add_typed_bitfield): Likewise.
9490 (tdesc_add_enum_value): Likewise.
9491 * target-descriptions.c (tdesc_type_field): Move from here.
9492 (tdesc_type_builtin): Likewise.
9493 (tdesc_type_vector): Likewise.
9494 (tdesc_type_with_fields): Likewise.
9495 (tdesc_predefined_types): Likewise.
9496 (tdesc_named_type): Likewise.
9497 (tdesc_create_vector): Likewise.
9498 (tdesc_create_struct): Likewise.
9499 (tdesc_set_struct_size): Likewise.
9500 (tdesc_create_union): Likewise.
9501 (tdesc_create_flags): Likewise.
9502 (tdesc_create_enum): Likewise.
9503 (tdesc_add_field): Likewise.
9504 (tdesc_add_typed_bitfield): Likewise.
9505 (tdesc_add_bitfield): Likewise.
9506 (tdesc_add_flag): Likewise.
9507 (tdesc_add_enum_value): Likewise.
9508 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9509 (tdesc_add_typed_bitfield): Likewise.
9510 (tdesc_add_enum_value): Likewise.
9512 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9514 * common/tdesc.c (tdesc_feature::accept): Move to here.
9515 (tdesc_feature::operator==): Likewise.
9516 (tdesc_create_reg): Likewise.
9517 * common/tdesc.h (tdesc_type_kind): Likewise.
9518 (struct tdesc_type): Likewise.
9519 (struct tdesc_feature): Likewise.
9520 * regformats/regdat.sh: Create a feature.
9521 * target-descriptions.c (tdesc_type_kind): Move from here.
9522 (tdesc_type): Likewise.
9523 (tdesc_type_up): Likewise.
9524 (tdesc_feature): Likewise.
9525 (tdesc_create_reg): Likewise.
9527 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9529 * Makefile.in: Add arch/tdesc.c
9530 * common/tdesc.c: New file.
9531 * common/tdesc.h (tdesc_element_visitor): Move to here.
9532 (tdesc_element): Likewise.
9533 (tdesc_reg): Likewise.
9534 (tdesc_reg_up): Likewise.
9535 * regformats/regdef.h (reg): Add offset to constructors.
9536 * target-descriptions.c (tdesc_element_visitor): Move from here.
9537 (tdesc_element): Likewise.
9538 (tdesc_reg): Likewise.
9539 (tdesc_reg_up): Likewise.
9541 2018-04-17 Tom Tromey <tom@tromey.com>
9543 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9546 2018-04-17 Tom Tromey <tom@tromey.com>
9548 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9550 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9552 * symtab.c (print_symbol_info): Skip printing filename and line
9553 number when `last' is NULL.
9554 (symtab_symbol_info): Use empty string instead of NULL for first
9555 invocation of print_symbol_info.
9556 (rbreak_command): Pass NULL to `last' parameter of
9559 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9561 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9564 2018-04-16 Pedro Alves <palves@redhat.com>
9566 * MAINTAINERS (sh): Remove.
9567 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9568 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9569 (ALLDEPFILES): Remove sh64-tdep.c.
9570 * NEWS: Mentions that support for SH-5/SH64 is removed.
9571 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9572 (sh*-*-openbsd*): Ditto.
9573 (sh64-*-elf*): Remove.
9575 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9576 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9577 * sh-tdep.c: No longer include "sh64-tdep.h".
9578 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9579 * sh64-tdep.c, sh64-tdep.h: Remove files.
9581 2018-04-16 Pedro Alves <palves@redhat.com>
9583 * MAINTAINERS: Remove m88k.
9584 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9585 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9586 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9587 * NEWS: Mention that support for m88k was removed.
9588 * configure.host (m88*-*-*): Remove support.
9589 * configure.nat (m88k-*-*): Remove support.
9590 * configure.tgt (m88*-*-openbsd*): Remove.
9591 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9593 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9595 * configure.tgt (x86_tobjs): New variable.
9596 (amd64_tobjs, i386_tobjs): Use it.
9598 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9600 * symtab.c (print_symbol_info): Precede the symbol definition by
9601 the line number when available.
9602 * NEWS: Advertise this enhancement.
9604 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9606 * NEWS (New options): announce set/show record btrace cpu.
9607 * btrace.c: Include record-btrace.h.
9608 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9609 the vendor is unknown.
9610 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9611 Maybe overwrite the btrace configuration's cpu.
9612 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9613 (btrace_fetch): Add cpu parameter. Update callers.
9614 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9615 Maybe overwrite the btrace configuration's cpu. Skip enabling
9616 errata workarounds if the vendor is unknown.
9617 * python/py-record-btrace.c: Include record-btrace.h.
9618 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9619 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9620 * record-btrace.c (record_btrace_cpu_state_kind): New.
9621 (record_btrace_cpu): New.
9622 (set_record_btrace_cpu_cmdlist): New.
9623 (record_btrace_get_cpu): New.
9624 (require_btrace_thread, record_btrace_info)
9625 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9626 (cmd_set_record_btrace_cpu_none): New.
9627 (cmd_set_record_btrace_cpu_auto): New.
9628 (cmd_set_record_btrace_cpu): New.
9629 (cmd_show_record_btrace_cpu): New.
9630 (_initialize_record_btrace): Initialize set/show record btrace cpu
9632 * record-btrace.h (record_btrace_get_cpu): New.
9634 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9636 * record.c (set_record_command): Fix typo in message.
9638 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9640 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9642 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9644 * infrun.c (process_event_stop_test): Call
9645 gdbarch_in_indirect_branch_thunk.
9646 * gdbarch.sh (in_indirect_branch_thunk): New.
9647 * gdbarch.c: Regenerated.
9648 * gdbarch.h: Regenerated.
9651 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9652 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9653 (ALLDEPFILES): Add x86-tdep.c.
9654 * arch-utils.h (default_in_indirect_branch_thunk): New.
9655 * arch-utils.c (default_in_indirect_branch_thunk): New.
9656 * i386-tdep: Include x86-tdep.h.
9657 (i386_in_indirect_branch_thunk): New.
9658 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9660 * amd64-tdep: Include x86-tdep.h.
9661 (amd64_in_indirect_branch_thunk): New.
9662 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9664 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9667 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9668 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9669 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9672 2018-04-12 Tom Tromey <tom@tromey.com>
9674 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9675 (rust_evaluate_subexp): Likewise.
9677 2018-04-12 Pedro Alves <palves@redhat.com>
9679 * procfs.c (procfs_detach): Make forward declaration's prototype
9680 match definition's protototype.
9681 (proc_get_LDT_entry): Remove stale do_cleanups call.
9683 2018-04-12 Pedro Alves <palves@redhat.com>
9685 * target.h (target_ops::to_has_exited): Delete.
9686 (target_has_exited): Delete.
9687 * target-delegates.c: Regenerate.
9689 2018-04-11 Pedro Alves <palves@redhat.com>
9691 * target.c (fileio_fh_t::t): Add comment.
9692 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9693 (target_fileio_close): Handle a NULL target.
9694 (invalidate_fileio_fh): New.
9695 (target_close): Call it.
9696 * remote.c (remote_hostio_send_command): No longer check whether
9697 remote_desc is open.
9699 2018-04-11 Pedro Alves <palves@redhat.com>
9701 * target.c (fileio_fh_t): Make it a named struct instead of a
9703 (fileio_fh_t::is_closed): New method.
9704 (DEF_VEC_O (fileio_fh_t)): Remove.
9705 (fileio_fhandles): Now a std::vector.
9706 (is_closed_fileio_fh): Delete.
9707 (acquire_fileio_fd): Adjust. Rename parameters.
9708 (release_fileio_fd): Adjust.
9709 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9710 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9711 (target_fileio_close): Adjust.
9713 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9715 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9718 2018-04-10 Pedro Alves <palves@redhat.com>
9720 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9721 (scoped_finish_thread_state): New class.
9722 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9724 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9725 (fetch_inferior_event, normal_stop): Likewise.
9726 * thread.c (finish_thread_state_cleanup): Delete.
9728 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9729 Pedro Alves <palves@redhat.com>
9731 * value.c: Include "selftest.h" and "common/array-view.h".
9732 (struct range) <operator ==>: New.
9733 (test_ranges_contain): New.
9734 (check_ranges_vector): New.
9735 (test_insert_into_bit_range_vector): New.
9736 (_initialize_values): Register selftests.
9737 * common/array-view.h (operator==, operator!=): New.
9739 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9741 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9743 * inline-frame.c: Include <algorithm>.
9744 (struct inline_state): Add constructor.
9745 (inline_state_s): Remove.
9746 (DEF_VEC_O(inline_state_s)): Remove.
9747 (inline_states): Change type to std::vector.
9748 (find_inline_frame_state): Adjust to std::vector.
9749 (allocate_inline_frame_state): Remove.
9750 (clear_inline_frame_state): Adjust to std::vector.
9751 (skip_inline_frames): Adjust to std::vector.
9753 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9755 * tracepoint.h (struct trace_state_variable): Add constructor.
9756 <name>: Change type to std::string.
9757 * tracepoint.c (tsv_s): Remove.
9758 (DEF_VEC_O(tsv_s)): Remove.
9759 (tvariables): Change to std::vector.
9760 (create_trace_state_variable): Adjust to std::vector.
9761 (find_trace_state_variable): Likewise.
9762 (find_trace_state_variable_by_number): Likewise.
9763 (delete_trace_state_variable): Likewise.
9764 (trace_variable_command): Adjust to std::string.
9765 (delete_trace_variable_command): Likewise.
9766 (tvariables_info_1): Adjust to std::vector.
9767 (save_trace_state_variables): Likewise.
9768 (start_tracing): Likewise.
9769 (merge_uploaded_trace_state_variables): Adjust to std::vector
9771 * target.h (struct target_ops)
9772 <to_download_trace_state_variable>: Pass reference to
9773 trace_state_variable.
9774 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9775 * target-delegates.c: Re-generate.
9776 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9777 (mi_tsv_deleted): Likewise.
9778 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9779 * remote.c (remote_download_trace_state_variable): Change
9780 pointer to reference and adjust.
9781 * make-target-delegates (parse_argtypes): Handle references.
9782 (write_function_header): Likewise.
9783 (munge_type): Likewise.
9785 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9787 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9788 string_view-selftests.c.
9789 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9791 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9792 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9793 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9794 * unittests/basic_string_view/element_access/char/1.cc:
9796 * unittests/basic_string_view/element_access/char/empty.cc:
9798 * unittests/basic_string_view/element_access/char/front_back.cc:
9800 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9801 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9803 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9805 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9807 * unittests/basic_string_view/operations/compare/char/1.cc:
9809 * unittests/basic_string_view/operations/compare/char/13650.cc:
9811 * unittests/basic_string_view/operations/copy/char/1.cc:
9813 * unittests/basic_string_view/operations/data/char/1.cc:
9815 * unittests/basic_string_view/operations/find/char/1.cc:
9817 * unittests/basic_string_view/operations/find/char/2.cc:
9819 * unittests/basic_string_view/operations/find/char/3.cc:
9821 * unittests/basic_string_view/operations/find/char/4.cc:
9823 * unittests/basic_string_view/operations/rfind/char/1.cc:
9825 * unittests/basic_string_view/operations/rfind/char/2.cc:
9827 * unittests/basic_string_view/operations/rfind/char/3.cc:
9829 * unittests/basic_string_view/operations/substr/char/1.cc:
9831 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9832 * unittests/string_view-selftests.c: New file.
9834 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9836 * unittests/basic_string_view/capacity/1.cc: New file.
9837 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9838 * unittests/basic_string_view/cons/char/1.cc: New file.
9839 * unittests/basic_string_view/cons/char/2.cc: New file.
9840 * unittests/basic_string_view/cons/char/3.cc: New file.
9841 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9842 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9843 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9844 * unittests/basic_string_view/element_access/char/1.cc: New file.
9845 * unittests/basic_string_view/element_access/char/2.cc: New file.
9846 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9847 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9848 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9849 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9850 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9851 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9852 * unittests/basic_string_view/include.cc: New file.
9853 * unittests/basic_string_view/inserters/char/1.cc: New file.
9854 * unittests/basic_string_view/inserters/char/2.cc: New file.
9855 * unittests/basic_string_view/inserters/char/3.cc: New file.
9856 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9857 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9858 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9859 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9860 * unittests/basic_string_view/literals/types.cc: New file.
9861 * unittests/basic_string_view/literals/values.cc: New file.
9862 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9863 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9864 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9865 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9866 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9867 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9868 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9869 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9870 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9871 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9872 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9873 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9874 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9875 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9876 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9877 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9878 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9879 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9880 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9881 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9882 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9883 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9884 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9885 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9886 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9887 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9888 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9889 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9890 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9891 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9892 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9893 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9894 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9895 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9896 * unittests/basic_string_view/operators/char/2.cc: New file.
9897 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9898 * unittests/basic_string_view/range_access/char/1.cc: New file.
9899 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9900 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9901 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9902 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9903 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9904 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9905 * unittests/basic_string_view/requirements/typedefs.cc: New file.
9906 * unittests/basic_string_view/typedefs.cc: New file.
9907 * unittests/basic_string_view/types/1.cc: New file.
9909 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9911 * common/gdb_string_view.h: Remove libstdc++ implementation
9912 details, adjust to gdb reality.
9913 * common/gdb_string_view.tcc: Likewise.
9914 * cli/cli-script.c (struct string_view): Remove.
9915 (user_args) <m_args>: Change element type to gdb::string_view.
9916 (user_args::insert_args): Adjust.
9918 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9920 * common/gdb_string_view.h: New file.
9921 * common/gdb_string_view.tcc: New file.
9923 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9925 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9926 * configure: Re-generate.
9928 2018-04-09 Pedro Alves <palves@redhat.com>
9930 * gdbarch.sh: Include "observable.h" instead of "observer.h".
9931 (set_target_gdbarch): Call
9932 gdb::observers::architecture_changed.notify instead of
9933 observer_notify_architecture_changed.
9935 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9937 * tracepoint.c (struct current_traceframe_cleanup): Remove.
9938 (do_restore_current_traceframe_cleanup): Remove.
9939 (restore_current_traceframe_cleanup_dtor): Remove.
9940 (make_cleanup_restore_current_traceframe): Remove.
9941 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
9943 * tracepoint.h (struct scoped_restore_current_traceframe): New.
9944 * infrun.c (fetch_inferior_event): Use
9945 scoped_restore_current_traceframe.
9947 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9949 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
9951 <n_allocated_type_units>: Remove.
9952 <all_type_units>: Change to std::vector.
9953 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9954 to std::vector change.
9955 (dwarf2_per_objfile::get_cutu): Likewise.
9956 (dwarf2_per_objfile::get_tu): Likewise.
9957 (create_signatured_type_table_from_index): Likewise.
9958 (create_signatured_type_table_from_debug_names): Likewise.
9959 (dw2_symtab_iter_next): Likewise.
9960 (dw2_print_stats): Likewise.
9961 (dw2_expand_all_symtabs): Likewise.
9962 (dw2_expand_marked_cus): Likewise.
9963 (dw2_debug_names_iterator::next): Likewise.
9964 (dwarf2_initialize_objfile): Likewise.
9965 (add_signatured_type_cu_to_table): Likewise.
9966 (create_all_type_units): Likewise.
9967 (add_type_unit): Likewise.
9968 (struct tu_abbrev_offset): Add constructor.
9969 (build_type_psymtabs_1): Adjust to std::vector change.
9970 (print_tu_stats): Likewise.
9971 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9972 (write_debug_names): Likewise.
9974 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9976 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
9977 Make an std::vector.
9978 <n_comp_units>: Remove.
9979 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9980 to std::vector change.
9981 (dwarf2_per_objfile::get_cutu): Likewise.
9982 (dwarf2_per_objfile::get_cu): Likewise.
9983 (create_cus_from_index): Likewise.
9984 (create_addrmap_from_index): Likewise.
9985 (create_addrmap_from_aranges): Likewise.
9986 (dwarf2_read_index): Likewise.
9987 (dw2_find_last_source_symtab): Likewise.
9988 (dw2_map_symtabs_matching_filename): Likewise.
9989 (dw2_symtab_iter_next): Likewise.
9990 (dw2_print_stats): Likewise.
9991 (dw2_expand_all_symtabs): Likewise.
9992 (dw2_expand_symtabs_with_fullname): Likewise.
9993 (dw2_expand_marked_cus): Likewise.
9994 (dw2_map_symbol_filenames): Likewise.
9995 (create_cus_from_debug_names): Likewise.
9996 (dwarf2_read_debug_names): Likewise.
9997 (dw2_debug_names_iterator::next): Likewise.
9998 (dwarf2_initialize_objfile): Likewise.
9999 (set_partial_user): Likewise.
10000 (dwarf2_build_psymtabs_hard): Likewise.
10001 (read_comp_units_from_section): Remove arguments, adjust to
10002 std::vector change.
10003 (create_all_comp_units): Adjust to std::vector and
10004 read_comp_units_from_section changes.
10005 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10007 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10008 (psyms_seen_size): Likewise.
10009 (write_gdbindex): Likewise.
10010 (write_debug_names): Likewise.
10012 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10014 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10015 with dwarf2_per_objfile.
10016 (create_cus_from_index): Likewise.
10017 (create_signatured_type_table_from_index): Likewise.
10018 (dwarf2_read_index): Likewise.
10019 (dwarf2_initialize_objfile): Likewise.
10020 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10021 per_cu rather than get_dwarf2_per_objfile.
10023 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10025 * dwarf2read.h (struct signatured_type): Forward declare.
10026 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10028 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10029 (dw2_get_cutu): ...this.
10030 (dwarf2_per_objfile::get_cu): Rename from...
10031 (dw2_get_cu): ...this.
10032 (dwarf2_per_objfile::get_tu): New.
10033 (create_addrmap_from_index): Adjust.
10034 (create_addrmap_from_aranges): Adjust.
10035 (dw2_find_last_source_symtab): Adjust.
10036 (dw2_map_symtabs_matching_filename): Adjust.
10037 (dw2_symtab_iter_next): Adjust.
10038 (dw2_print_stats): Adjust.
10039 (dw2_expand_all_symtabs): Adjust.
10040 (dw2_expand_symtabs_with_fullname): Adjust.
10041 (dw2_expand_marked_cus): Adjust.
10042 (dw_expand_symtabs_matching_file_matcher): Adjust.
10043 (dw2_map_symbol_filenames): Adjust.
10044 (dw2_debug_names_iterator::next): Adjust.
10045 (dwarf2_initialize_objfile): Adjust.
10046 (set_partial_user): Adjust.
10047 (dwarf2_build_psymtabs_hard): Adjust.
10049 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10051 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10052 Remove unused variables.
10053 (dw2_map_symtabs_matching_filename): Likewise.
10054 (dwarf2_record_block_ranges): Likewise.
10055 (dwarf2_read_addr_index): Likewise.
10056 (follow_die_offset): Likewise.
10058 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10060 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10061 to symbol_file_add_main.
10063 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10066 * mi/mi-console.c (do_fputc_async_safe): New.
10067 (mi_console_file::write_async_safe): New.
10068 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10069 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10071 * ui-file.c (ui_file::putstrn): Adjust call to
10072 fputstrn_unfiltered.
10073 * utils.c (printchar): Replace do_fputs and do_fprintf
10074 parameters by do_fputc.
10075 (fputstr_filtered): Adjust call to printchar.
10076 (fputstr_unfiltered): Likewise.
10077 (fputstrn_filtered): Likewise.
10078 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10080 * utils.h (do_fputc_ftype): New typedef.
10081 (fputstrn_unfiltered): Add do_fputc parameter.
10083 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10085 * regformats/i386/i386-avx.dat: Remove.
10087 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10090 * amd64-tdep.c (amd64_none_init_abi): New function.
10091 (amd64_x32_none_init_abi): New function.
10092 (_initialize_amd64_tdep): Register handlers for x86-64 and
10093 x64_32 with GDB_OSABI_NONE.
10094 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10095 GDB_OSABI_NONE osabi.
10097 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10100 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10102 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10103 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10105 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10107 * common/byte-vector.h (char_vector): New type.
10108 * target.h (target_read_alloc): Return
10109 gdb::optional<byte_vector>.
10110 (target_read_stralloc): Return gdb::optional<char_vector>.
10111 (target_get_osdata): Return gdb::optional<char_vector>.
10112 * target.c (target_read_alloc_1): Templatize. Replacement
10113 manual memory management with vector.
10114 (target_read_alloc): Change return type, adjust.
10115 (target_read_stralloc): Change return type, adjust.
10116 (target_get_osdata): Change return type, adjust.
10117 * auxv.c (struct auxv_info) <length>: Remove.
10118 <data>: Change type to gdb::optional<byte_vector>.
10119 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10120 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10121 (target_auxv_search): Adjust.
10122 (fprint_target_auxv): Adjust.
10123 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10124 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10125 (linux_make_corefile_notes): Adjust.
10126 * osdata.c (get_osdata): Adjust.
10127 * remote.c (remote_get_threads_with_qxfer): Adjust.
10128 (remote_memory_map): Adjust.
10129 (remote_traceframe_info): Adjust.
10130 (btrace_read_config): Adjust.
10131 (remote_read_btrace): Adjust.
10132 (remote_pid_to_exec_file): Adjust.
10133 * solib-aix.c (solib_aix_get_library_list): Adjust.
10134 * solib-dsbt.c (decode_loadmap): Don't free buf.
10135 (dsbt_get_initial_loadmaps): Adjust.
10136 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10137 * solib-target.c (solib_target_current_sos): Adjust.
10138 * tracepoint.c (sdata_make_value): Adjust.
10139 * xml-support.c (xinclude_start_include): Adjust.
10140 (xml_fetch_content_from_file): Adjust.
10141 * xml-support.h (xml_fetch_another): Change return type.
10142 (xml_fetch_content_from_file): Change return type.
10143 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10144 * xml-tdesc.c (file_read_description_xml): Adjust.
10145 (fetch_available_features_from_target): Change return type.
10146 (target_fetch_description_xml): Adjust.
10147 (target_read_description_xml): Adjust.
10149 2018-04-06 Tom Tromey <tom@tromey.com>
10151 * value.c (~value): Update.
10152 (struct value) <contents>: Now unique_xmalloc_ptr.
10153 (value_contents_bits_eq, allocate_value_contents)
10154 (value_contents_raw, value_contents_all_raw)
10155 (value_contents_for_printing, value_contents_for_printing_const)
10156 (set_value_enclosing_type): Update.
10158 2018-04-06 Tom Tromey <tom@tromey.com>
10160 * value.c (range_s): Remove typedef, VEC.
10161 (struct range): Add operator<.
10162 (range_lessthan): Remove.
10163 (ranges_contain): Change type.
10165 (struct value) <unavailable, optimized_out>: Now std::vector.
10166 (value_entirely_available)
10167 (value_entirely_covered_by_range_vector)
10168 (value_entirely_unavailable, value_entirely_optimized_out):
10170 (insert_into_bit_range_vector): Change argument type.
10171 (find_first_range_overlap): Likewise.
10172 (struct ranges_and_idx, value_contents_bits_eq)
10173 (require_not_optimized_out, require_available): Update.
10174 (ranges_copy_adjusted): Change argument types.
10175 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10177 2018-04-06 Tom Tromey <tom@tromey.com>
10179 * value.c (~value): Update.
10180 (struct value) <parent>: Now a value_ref_ptr.
10181 (value_parent, set_value_parent, value_address, value_copy):
10184 2018-04-06 Tom Tromey <tom@tromey.com>
10186 * value.c (struct value): Add constructor, destructor, and member
10188 (allocate_value_lazy, value_decref): Update.
10190 2018-04-06 Tom Tromey <tom@tromey.com>
10192 * value.c (struct value) <released, next>: Remove.
10193 (all_values): Now a std::vector.
10194 (allocate_value_lazy): Update.
10195 (value_next): Remove.
10196 (value_mark, value_free_to_mark, release_value)
10197 (value_release_to_mark): Update.
10199 2018-04-06 Tom Tromey <tom@tromey.com>
10201 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10202 (free_value_chain): Remove.
10203 * value.c (free_value_chain): Remove.
10204 (value_release_to_mark): Return a std::vector.
10205 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10207 (check_condition): Update.
10208 * eval.c (fetch_subexp_value): Change "val_chain" to a
10210 * breakpoint.c (update_watchpoint): Update.
10211 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10213 2018-04-06 Tom Tromey <tom@tromey.com>
10215 * value.h (free_all_values): Remove.
10216 * value.c (free_all_values): Remove.
10218 2018-04-06 Tom Tromey <tom@tromey.com>
10220 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10221 (value_history_chain, value_history_count): Remove.
10222 (value_history): New global.
10223 (record_latest_value, access_value_history, show_values)
10224 (preserve_values): Update.
10226 2018-04-06 Tom Tromey <tom@tromey.com>
10228 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10229 * varobj.c (varobj_set_display_format, varobj_set_value)
10230 (install_default_visualizer, construct_visualizer)
10231 (install_new_value, ~varobj, varobj_get_value_type)
10232 (my_value_of_variable, varobj_editable_p): Update.
10233 * c-varobj.c (c_describe_child, c_value_of_variable)
10234 (cplus_number_of_children, cplus_describe_child): Update.
10235 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10236 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10237 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10239 2018-04-06 Tom Tromey <tom@tromey.com>
10241 * printcmd.c (last_examine_address): Change type to
10243 (do_examine, x_command): Update.
10245 2018-04-06 Tom Tromey <tom@tromey.com>
10247 * value.c (release_value): Update.
10248 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10249 (struct bpstats) <val>: Now a value_ref_ptr.
10250 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10251 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10252 (~watchpoint, print_it_watchpoint, watch_command_1)
10253 (invalidate_bp_value_on_memory_change): Update.
10255 2018-04-06 Tom Tromey <tom@tromey.com>
10257 * varobj.c (varobj_clear_saved_item)
10258 (update_dynamic_varobj_children, install_new_value, ~varobj):
10260 * value.h (value_incref): Move declaration earlier.
10261 (value_decref): Rename from value_free.
10262 (struct value_ref_policy): New.
10263 (value_ref_ptr): New typedef.
10264 (struct value_deleter): Remove.
10265 (gdb_value_up): Remove typedef.
10266 (release_value): Change return type.
10267 (release_value_or_incref): Remove.
10268 * value.c (set_value_parent): Update.
10269 (value_incref): Change return type.
10270 (value_decref): Rename from value_free.
10271 (value_free_to_mark, free_all_values, free_value_chain): Update.
10272 (release_value): Return value_ref_ptr.
10273 (release_value_or_incref): Remove.
10274 (record_latest_value, set_internalvar, clear_internalvar):
10276 * stack.c (info_frame_command): Don't call value_free.
10277 * python/py-value.c (valpy_dealloc, valpy_new)
10278 (value_to_value_object): Update.
10279 * printcmd.c (do_examine): Update.
10280 * opencl-lang.c (lval_func_free_closure): Update.
10281 * mi/mi-main.c (register_changed_p): Don't call value_free.
10282 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10283 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10284 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10286 * guile/scm-value.c (vlscm_free_value_smob)
10287 (vlscm_scm_from_value): Update.
10288 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10289 (frame_unwind_register_unsigned, get_frame_register_bytes)
10290 (put_frame_register_bytes): Don't call value_free.
10291 * findvar.c (address_from_register): Don't call value_free.
10292 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10293 * dwarf2loc.c (entry_data_value_free_closure)
10294 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10295 (dwarf2_evaluate_loc_desc_full): Update.
10296 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10297 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10298 (~watchpoint, watch_command_1)
10299 (invalidate_bp_value_on_memory_change): Update.
10300 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10302 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10305 * warning.m4: Add -Wno-error=deprecated-register.
10306 * configure: Re-generate.
10308 2018-04-05 Tom Tromey <tom@tromey.com>
10310 * linespec.h: Remove include of "vec.h".
10312 2018-04-05 Tom Tromey <tom@tromey.com>
10314 * linespec.c (typep): Remove typedef.
10315 (find_methods, find_superclass_methods): Take a std::vector.
10316 (find_method): Use std::vector.
10318 2018-04-05 Tom Tromey <tom@tromey.com>
10320 * utils.c (compare_strings): Remove.
10321 * utils.h (compare_strings): Remove.
10322 * objc-lang.h (find_imps): Update.
10323 * objc-lang.c (find_methods): Take a std::vector.
10324 (uniquify_strings, find_imps): Likewise.
10325 * linespec.c (find_methods): Take a std::vector.
10326 (decode_objc): Use std::vector.
10327 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10329 (find_method, find_function_symbols): Use std::vector.
10331 2018-04-05 Tom Tromey <tom@tromey.com>
10333 * completer.c (completion_tracker::completion_tracker): Remove
10335 (completion_tracker::discard_completions): Likewise.
10336 * breakpoint.c (ambiguous_names_p): Remove cast.
10337 * ada-lang.c (_initialize_ada_language): Remove cast.
10338 * utils.h (streq): Update.
10339 (streq_hash): Add new declaration.
10340 * utils.c (streq): Return bool.
10341 (streq_hash): New function.
10343 2018-04-05 Tom Tromey <tom@tromey.com>
10345 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10346 Remove a string copy.
10348 2018-04-05 Tom Tromey <tom@tromey.com>
10350 * linespec.c (filter_results): Use std::vector.
10351 (decode_line_2, decode_line_full): Update.
10353 2018-04-05 Tom Tromey <tom@tromey.com>
10355 * linespec.c (canonical_to_fullform): Return std::string.
10356 (filter_results): Update.
10357 (struct decode_line_2_item): Add constructor.
10358 <fullform, displayform>: Now std::string.
10359 (decode_line_2_compare_items): Now a std::sort comparator.
10360 (decode_line_2): Update.
10362 2018-04-05 Tom Tromey <tom@tromey.com>
10364 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10365 (unexpected_linespec_error): Update.
10366 (linespec_parse_basic, parse_linespec): Update.
10368 2018-04-05 Tom Tromey <tom@tromey.com>
10370 * linespec.c (linespec_parse_basic): Reindent.
10372 2018-04-05 Tom Tromey <tom@tromey.com>
10374 * minsyms.h (iterate_over_minimal_symbols): Update.
10375 * minsyms.c (iterate_over_minimal_symbols): Take a
10376 gdb::function_view.
10377 * linespec.c (struct collect_minsyms): Remove.
10378 (compare_msyms): Now a std::sort comparator.
10379 (add_minsym): Add parameters.
10380 (search_minsyms_for_name): Update. Use std::vector.
10382 2018-04-03 Tom Tromey <tom@tromey.com>
10384 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10387 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10389 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10391 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10394 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10395 printing static type.
10397 2018-04-01 Tom Tromey <tom@tromey.com>
10399 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10400 (rs6000_xfer_shared_libraries): Update.
10402 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10404 * common/gdb_vecs.h (char_ptr): Remove.
10405 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10407 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10409 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10411 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10413 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10415 * tracepoint.h (struct uploaded_tp): Initialize fields.
10416 <actions, step_actions, cmd_strings>: Change type to
10417 std::vector<char *>.
10418 * tracepoint.c (get_uploaded_tp): Allocate with new.
10419 (free_uploaded_tps): Free with delete.
10420 (parse_tracepoint_definition): Adjust to std::vector change.
10421 * breakpoint.c (read_uploaded_action): Likewise.
10422 (create_tracepoint_from_upload): Likewise.
10423 * ctf.c (ctf_write_uploaded_tp): Likewise.
10424 (SET_ARRAY_FIELD): Likewise.
10425 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10427 2018-03-30 Tom Tromey <tom@tromey.com>
10429 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10431 (svr4_keep_data_in_core): Update.
10432 (svr4_read_so_list): Update.
10434 2018-03-30 Tom Tromey <tom@tromey.com>
10436 * windows-nat.c (handle_output_debug_string, handle_exception):
10438 * target.h (target_read_string): Update.
10439 * target.c (target_read_string): Change "string" to
10440 unique_xmalloc_ptr.
10441 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10443 * solib-frv.c (frv_current_sos): Update.
10444 * solib-dsbt.c (dsbt_current_sos): Update.
10445 * solib-darwin.c (darwin_current_sos): Update.
10446 * linux-thread-db.c (inferior_has_bug): Update.
10447 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10448 Update. Remove alloca.
10449 * ada-lang.c (ada_main_name): Update.
10451 2018-03-30 Tom Tromey <tom@tromey.com>
10453 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10454 (struct dwo_file_deleter): New.
10455 (dwo_file_up): New typedef.
10456 (open_and_init_dwo_file): Use dwo_file_up.
10457 (free_dwo_file_cleanup): Remove.
10459 2018-03-30 Tom Tromey <tom@tromey.com>
10461 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10462 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10464 2018-03-30 Tom Tromey <tom@tromey.com>
10466 * dwarf2read.c (class free_cached_comp_units): New class.
10467 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10468 (free_cached_comp_units): Remove function.
10470 2018-03-30 Tom Tromey <tom@tromey.com>
10472 * utils.h (make_cleanup_unpush_target): Remove.
10473 * inf-ptrace.c (struct target_unpusher): New.
10474 (target_unpush_up) New typedef.
10475 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10477 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10479 2018-03-27 Tom Tromey <tom@tromey.com>
10481 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10483 2018-03-27 Pedro Alves <palves@redhat.com>
10484 Tom Tromey <tom@tromey.com>
10486 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10487 destructor. Now a class.
10488 (gdb_readline_wrapper_cleanup): Remove function.
10489 (gdb_readline_wrapper): Remove cleanups.
10491 2018-03-27 Tom Tromey <tom@tromey.com>
10493 * typeprint.h (struct type_print_options) <local_typedefs,
10494 global_typedefs>: Remove "struct" keyword.
10495 (class typedef_hash_table): New class.
10496 (recursively_update_typedef_hash, add_template_parameters)
10497 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10498 (find_typedef_in_hash): Don't declare.
10499 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10500 (typedef_hash_table::recursively_update): Rename from
10501 recursively_update_typedef_hash. Now a member.
10502 (typedef_hash_table::add_template_parameters): Rename from
10503 add_template_parameters. Now a member.
10504 (typedef_hash_table::typedef_hash_table): Now a constructor;
10505 rename from create_typedef_hash.
10506 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10507 rename from free_typedef_hash.
10508 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10509 (do_free_global_table): Remove.
10510 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10511 from copy_type_recursive.
10512 (create_global_typedef_table): Remove.
10513 (typedef_hash_table::find_global_typedef): Now a member of
10514 typedef_hash_table.
10515 (typedef_hash_table::find_typedef): Rename from
10516 find_typedef_in_hash; now a member.
10517 (whatis_exp): Update.
10518 * extension.h (struct ext_lang_type_printers): Add constructor and
10520 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10522 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10523 Now a constructor; rename from start_ext_lang_type_printers.
10524 (ext_lang_type_printers): Now a destructor; rename from
10525 free_ext_lang_type_printers.
10526 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10528 (c_type_print_base_struct_union): Update. Remove cleanups.
10530 2018-03-27 Tom Tromey <tom@tromey.com>
10532 * dwarf-index-write.c: Include <cmath>.
10534 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10536 * NEWS: Add entry describing new "set|show varsize-limit" command.
10537 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10539 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10542 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10544 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10545 dwarf-index-write.c
10546 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10547 * dwarf-index-common.c: New file.
10548 * dwarf-index-common.h: New file.
10549 * dwarf-index-write.c: New file.
10550 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10551 (struct dwarf2_section_info): Move from here.
10552 (dwarf2_section_info_def): Likewise.
10553 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10554 (offset_type): Likewise.
10555 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10556 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10557 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10558 (byte_swap): Likewise.
10559 (MAYBE_SWAP): Likewise.
10560 (dwarf2_per_cu_ptr): Likewise.
10561 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10562 (struct tu_stats): Likewise.
10563 (struct dwarf2_per_objfile): Likewise.
10564 (struct dwarf2_per_cu_data): Likewise.
10565 (struct signatured_type): Likewise.
10566 (sig_type_ptr): Likewise.
10567 (DEF_VEC_P (sig_type_ptr)): Likewise.
10568 (INDEX4_SUFFIX): Likewise.
10569 (INDEX5_SUFFIX): Likewise.
10570 (DEBUG_STR_SUFFIX): Likewise.
10571 (dwarf2_read_section): Make non-static.
10572 (mapped_index_string_hash): Move from here.
10573 (dwarf5_djb_hash): Likewise.
10574 (file_write): Likewise.
10575 (class data_buf): Likewise.
10576 (struct symtab_index_entry): Likewise.
10577 (struct mapped_symtab): Likewise.
10578 (find_slot): Likewise.
10579 (hash_expand): Likewise.
10580 (add_index_entry): Likewise.
10581 (uniquify_cu_indices): Likewise.
10582 (class c_str_view): Likewise.
10583 (class c_str_view_hasher): Likewise.
10584 (class vector_hasher): Likewise.
10585 (write_hash_table): Likewise.
10586 (psym_index_map): Likewise.
10587 (struct addrmap_index_data): Likewise.
10588 (add_address_entry): Likewise.
10589 (add_address_entry_worker): Likewise.
10590 (write_address_map): Likewise.
10591 (symbol_kind): Likewise.
10592 (write_psymbols): Likewise.
10593 (struct signatured_type_index_data): Likewise.
10594 (write_one_signatured_type): Likewise.
10595 (recursively_count_psymbols): Likewise.
10596 (recursively_write_psymbols): Likewise.
10597 (class debug_names): Likewise.
10598 (check_dwarf64_offsets): Likewise.
10599 (psyms_seen_size): Likewise.
10600 (write_gdbindex): Likewise.
10601 (write_debug_names): Likewise.
10602 (assert_file_size): Likewise.
10603 (write_psymtabs_to_index): Likewise.
10604 (save_gdb_index_command): Likewise.
10605 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10607 * dwarf2read.h: New file.
10609 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10612 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10613 symbol name if the CU's language stores symbol names in linkage
10615 * language.h (struct language_defn)
10616 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10617 all instances of this struct.
10619 2018-03-26 Tom Tromey <tom@tromey.com>
10621 * stack.c (backtrace_command_1): Remove verbose code.
10623 2018-03-26 Tom Tromey <tom@tromey.com>
10625 * python/py-framefilter.c (py_print_type): Don't catch
10626 exceptions. Return void.
10627 (py_print_value): Likewise.
10628 (py_print_single_arg): Likewise.
10629 (enumerate_args): Don't catch exceptions.
10630 (py_print_args): Likewise.
10631 (py_print_frame): Likewise.
10632 (gdbpy_apply_frame_filter): Catch exceptions here.
10634 2018-03-26 Tom Tromey <tom@tromey.com>
10636 * stack.c (_initialize_stack): Remove trailing newlines from help
10637 text. Add "Usage" line to "backtrace" help.
10639 2018-03-26 Tom Tromey <tom@tromey.com>
10642 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10644 2018-03-26 Tom Tromey <tom@tromey.com>
10646 * python/py-framefilter.c (py_print_single_arg): Return
10647 EXT_LANG_BT_ERROR from catch.
10649 2018-03-26 Tom Tromey <tom@tromey.com>
10651 PR backtrace/15584:
10652 * stack.c (backtrace_command_1): Move some code into no-filters
10655 2018-03-26 Tom Tromey <tom@tromey.com>
10657 * python/py-framefilter.c (throw_quit_or_print_exception): New
10659 (gdbpy_apply_frame_filter): Use it.
10661 2018-03-26 Tom Tromey <tom@tromey.com>
10664 * python/py-framefilter.c (py_print_type, py_print_value)
10665 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10668 2018-03-26 Tom Tromey <tom@tromey.com>
10670 * python/py-framefilter.c (enumerate_args): Use
10671 gdb::unique_xmalloc_ptr.
10673 2018-03-26 Tom Tromey <tom@tromey.com>
10675 * python/py-framefilter.c (py_print_frame): Return
10677 (gdbpy_apply_frame_filter): Update comment.
10678 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10680 <EXT_LANG_BT_NO_FILTERS>: Change value.
10682 2018-03-26 Tom Tromey <tom@tromey.com>
10684 PR backtrace/15582:
10685 * stack.c (backtrace_command): Parse "hide" argument.
10686 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10687 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10690 2018-03-26 Tom Tromey <tom@tromey.com>
10692 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10694 (backtrace_command): Remove "fulltrace", add "flags".
10696 2018-03-26 Tom Tromey <tom@tromey.com>
10698 * stack.c (backtrace_command): Rewrite command line parsing.
10700 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10702 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10704 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10706 * filename-seen-cache.h: Add include guard.
10708 2018-03-26 Keith Seitz <keiths@redhat.com>
10710 * symfile.c (place_section): Remove "struct" from section_addr_info
10712 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10713 "struct" keyword from section_addr_info.
10715 2018-03-26 Alan Hayward <alan.hayward@arm.com>
10717 * regformats/regdef.h (reg): Add constructors.
10719 2018-03-25 Pedro Alves <palves@redhat.com>
10721 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10722 if then/else bodies in var_func_name extraction.
10724 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
10726 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10727 lookup_minimal_symbol() to find symbol entry.
10728 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10730 2018-03-23 Keith Seitz <keiths@redhat.com>
10733 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10734 nested type definitions for C++, too.
10736 2018-03-23 Tom Tromey <tom@tromey.com>
10738 * machoread.c (struct oso_el): Add a constructor. Don't define as
10740 (macho_register_oso): Remove.
10741 (macho_symtab_read): Take a std::vector.
10742 (oso_el_compare_name): Now a std::sort comparator.
10743 (macho_symfile_read_all_oso): Take a std::vector.
10744 (macho_symfile_read): Use std::vector. Remove cleanups.
10746 2018-03-22 Tom Tromey <tom@tromey.com>
10748 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10749 (record_full_goto_bookmark): Use std::string.
10751 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10754 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10757 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10759 * rs6000-tdep.c (store_insn_p): New function.
10760 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10761 and cr_reg to their unshifted values. Use store_insn_p to
10762 match LR saves using either R1 or fdata->alloca_reg. Use
10763 store_insn_p to match CR saves. Set alloca_reg_offset
10764 when alloca_reg and framep are set. Remove lr_reg shift
10765 when assigning to fdata->lr_register.
10767 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10769 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10770 command line args instead of emitting a warning.
10772 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10774 * tracepoint.h (struct static_tracepoint_marker): Initialize
10775 fields, define default constructor, move constructor and move
10776 assignment, disable the rest.
10777 <str_id, extra>: Make std::string.
10778 (release_static_tracepoint_marker): Remove.
10779 (free_current_marker): Remove.
10780 * tracepoint.c (free_current_marker): Remove.
10781 (parse_static_tracepoint_marker_definition): Adjust to
10782 std::string, use new hex2str overload.
10783 (release_static_tracepoint_marker): Remove.
10784 (print_one_static_tracepoint_marker): Get marker by reference
10785 and adjust to std::string.
10786 (info_static_tracepoint_markers_command): Adjust to std::vector
10788 * target.h (static_tracepoint_marker_p): Remove typedef.
10789 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10790 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10792 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10794 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10795 (target_debug_print_std_vector_static_tracepoint_marker): New.
10796 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10798 (target_debug_print_static_tracepoint_marker_p): ... this.
10799 * target-delegates.c: Re-generate.
10800 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10802 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10803 (decode_static_tracepoint_spec): Adjust to std::vector.
10804 (tracepoint_print_one_detail): Adjust to std::string.
10805 (strace_marker_decode_location): Adjust to std::string.
10806 (update_static_tracepoint): Adjust to std::string, remove call
10807 to release_static_tracepoint_marker.
10808 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10809 Adjust to std::vector.
10810 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10811 (remote_static_tracepoint_markers_by_strid): Adjust to
10813 * common/rsp-low.h (hex2str): New overload with explicit count
10815 * common/rsp-low.c (hex2str): New overload with explicit count
10817 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10818 (_initialize_rsp_low_selftests): Add test_hex2str test.
10819 * unittests/tracepoint-selftests.c
10820 (test_parse_static_tracepoint_marker_definition): Adjust to
10823 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10825 * tracepoint.c (parse_static_tracepoint_marker_definition):
10826 Consider case where the definition is followed by more
10828 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10829 tracepoint-selftests.c.
10830 * unittests/tracepoint-selftests.c: New.
10832 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10834 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10837 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10839 * symtab.c (find_pc_sect_line): fixed indentation.
10841 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10843 * symtab.c (find_pc_sect_line): now uses binary search.
10845 2018-03-19 Tom Tromey <tom@tromey.com>
10847 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10848 "IDENT" production.
10850 2018-03-19 Pedro Alves <palves@redhat.com>
10851 Tom Tromey <tom@tromey.com>
10853 * unittests/observable-selftests.c: New file.
10854 * common/observable.h: New file.
10855 * observable.h: New file.
10856 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10857 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10858 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10859 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10860 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10861 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10862 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10863 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10864 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10865 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10866 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10867 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10868 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10869 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10870 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10871 tui/tui-interp.c, valops.c: Update all users.
10872 * tui/tui-hooks.c (tui_bp_created_observer)
10873 (tui_bp_deleted_observer, tui_bp_modified_observer)
10874 (tui_inferior_exit_observer, tui_before_prompt_observer)
10875 (tui_normal_stop_observer, tui_register_changed_observer):
10877 (tui_observers_token): New global.
10878 (attach_or_detach, tui_attach_detach_observers): New functions.
10879 (tui_install_hooks, tui_remove_hooks): Use
10880 tui_attach_detach_observers.
10881 * record-btrace.c (record_btrace_thread_observer): Remove.
10882 (record_btrace_thread_observer_token): New global.
10883 * observer.sh: Remove.
10884 * observer.c: Rename to observable.c.
10885 * observable.c (namespace gdb_observers): Define new objects.
10886 (observer_debug): Move into gdb_observers namespace.
10887 (struct observer, struct observer_list, xalloc_observer_list_node)
10888 (xfree_observer_list_node, generic_observer_attach)
10889 (generic_observer_detach, generic_observer_notify): Remove.
10890 (_initialize_observer): Update.
10891 Don't include observer.inc.
10892 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10893 (clean mostlyclean): Likewise.
10894 (observer.h, observer.inc): Remove targets.
10895 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10896 (COMMON_SFILES): Use observable.c, not observer.c.
10897 * .gitignore: Remove observer.h.
10899 2018-03-18 Tom Tromey <tom@tromey.com>
10901 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10903 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10905 2018-03-17 Tom Tromey <tom@tromey.com>
10907 * auto-load.c (auto_load_objfile_script_1): Use std::string.
10909 2018-03-17 Tom Tromey <tom@tromey.com>
10911 * target.c (class scoped_target_fd): New.
10912 (target_fileio_close_cleanup): Remove.
10913 (target_fileio_read_alloc_1): Use scoped_target_fd.
10915 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
10917 * silent-rules.mk: New.
10918 * Makefile.in: Include silent-rules.mk
10919 (srcdir, VPATH, top_srcdir): Move up.
10920 (COMPILE): Add ECHO_CXX.
10921 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
10922 (init.c): Add ECHO_INIT_C.
10923 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10924 (version.c): Add ECHO_GEN.
10925 (printcmd.o): Add ECHO_CXX.
10926 (target-float.o): Add ECHO_CXX.
10927 (ada-exp.o): Add ECHO_CXX.
10928 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
10929 (insight$(EXEEXT)): Add ECHO_CXXLD.
10930 * gnulib/configure.ac: Add AM_SILENT_RULES.
10931 * gnulib/aclocal.m4: Re-generate.
10932 * gnulib/configure: Re-generate.
10933 * gnulib/import/Makefile.in: Re-generate.
10935 2018-03-16 Tom Tromey <tom@tromey.com>
10937 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
10938 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
10939 * utils.c (do_free_section_addr_info)
10940 (make_cleanup_free_section_addr_info): Remove.
10941 * symfile.h (struct other_sections): Add constructor.
10942 (struct section_addr_info): Remove.
10943 (section_addr_info): New typedef.
10944 (struct sym_fns) <sym_offsets>: Change type of parameter.
10945 (build_section_addr_info_from_objfile)
10946 (relative_addr_info_to_section_offsets, addr_info_make_relative)
10947 (default_symfile_offsets, symbol_file_add)
10948 (symbol_file_add_from_bfd)
10949 (build_section_addr_info_from_section_table): Update.
10950 (alloc_section_addr_info, free_section_addr_info): Don't declare.
10951 * symfile.c (alloc_section_addr_info): Remove.
10952 (build_section_addr_info_from_section_table): Change return type.
10954 (build_section_addr_info_from_bfd)
10955 (build_section_addr_info_from_objfile): Likewise.
10956 (free_section_addr_info): Remove.
10957 (relative_addr_info_to_section_offsets): Change type of "addrs".
10958 (addrs_section_compar): Now a std::sort comparator.
10959 (addrs_section_sort): Change return type.
10960 (addr_info_make_relative): Change type of "addrs". Update.
10961 (default_symfile_offsets, syms_from_objfile_1)
10962 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
10963 (symbol_file_add_separate): Update.
10964 (symbol_file_add): Change type of "addrs". Update.
10965 (add_symbol_file_command): Update. Remove cleanups.
10966 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
10968 * symfile-debug.c (debug_sym_offsets): Change type of "info".
10969 * solib.c (solib_read_symbols): Update.
10970 * objfiles.c (objfile_relocate): Update. Remove cleanups.
10971 * machoread.c (macho_symfile_offsets): Update.
10972 * jit.c (jit_bfd_try_read_symtab): Update.
10974 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
10976 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10977 unittests/utils-selftests.c.
10978 * unittests/utils-selftests.c: New file.
10980 2018-03-14 Tom Tromey <tom@tromey.com>
10983 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
10986 2018-03-14 Tom Tromey <tom@tromey.com>
10989 * printcmd.c (printf_pointer): Allow "-" in format.
10991 2018-03-14 Tom Tromey <tom@tromey.com>
10993 * printcmd.c (_initialize_printcmd): Add usage to printf.
10995 2018-03-14 Yao Qi <qiyao@sourceware.org>
10997 * MAINTAINERS: Update my email address.
10999 2018-03-13 Tom Tromey <tom@tromey.com>
11001 * machoread.c (macho_check_dsym): Change filenamep to a
11003 (macho_symfile_read): Update.
11004 * symfile.c (load_command): Use std::string.
11006 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11008 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11009 to error message string.
11010 (riscv_register_name): Use xsnprintf instead of sprintf.
11011 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11013 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11015 (riscv_push_dummy_call): Likewise.
11017 2018-03-12 Tom Tromey <tom@tromey.com>
11019 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11020 Use gdb::byte_vector.
11021 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11023 2018-03-12 Yao Qi <yao.qi@linaro.org>
11025 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11026 parameter type to readable_regcache.
11027 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11030 2018-03-11 Tom Tromey <tom@tromey.com>
11032 * dwarf2read.c (struct nextfield): Add initializers.
11033 (struct nextfnfield): Remove.
11034 (struct fnfieldlist): Add initializers. Remove "length" and
11035 "head", use std::vector.
11036 (struct decl_field_list): Remove.
11037 (struct field_info): Add initializers.
11038 <fields, baseclasses>: Now std::vector.
11039 <nbaseclasses, nfnfields, typedef_field_list_count,
11040 nested_types_list_count>: Remove.
11041 (dwarf2_add_field, dwarf2_add_type_defn)
11042 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11043 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11044 (process_structure_scope): Update.
11046 2018-03-11 Tom Tromey <tom@tromey.com>
11048 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11049 for use by std::sort.
11050 (build_type_psymtabs_1): Use std::vector.
11052 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11054 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11055 and LIBMPFR in the printed configuration.
11057 2018-03-08 Tom Tromey <tom@tromey.com>
11059 * source.c (get_filename_and_charpos): Use scoped_fd.
11060 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11061 (procfs_pidlist): Likewise.
11062 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11063 (iterate_over_mappings): Likewise.
11065 2018-03-08 Tom Tromey <tom@tromey.com>
11067 * infcall.c (struct call_return_meta_info)
11068 <stack_temporaries_enabled>: Remove.
11069 (get_call_return_value, call_function_by_hand_dummy): Update.
11070 * thread.c (disable_thread_stack_temporaries): Remove.
11071 (enable_thread_stack_temporaries): Remove.
11072 (thread_stack_temporaries_enabled_p): Return bool.
11073 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11074 (get_last_thread_stack_temporary): Update.
11075 * eval.c (evaluate_subexp): Update.
11076 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11077 class, not a function.
11078 (value_ptr, value_vec): Remove typedefs.
11079 (class thread_info) <stack_temporaries_enabled>: Now bool.
11080 <stack_temporaries>: Now a std::vector.
11081 (thread_stack_temporaries_enabled_p)
11082 (value_in_thread_stack_temporaries): Return bool.
11084 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11086 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11087 (getpkt_or_notif_sane_1): Likewise.
11089 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11091 * build-id.c (build_id_to_debug_bfd): Use std::string.
11093 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11095 * build-id.c (find_separate_debug_file_by_buildid): Return
11097 * build-id.h (find_separate_debug_file_by_buildid): Return
11099 * coffread.c (coff_symfile_read): Adjust to std::string.
11100 * elfread.c (elf_symfile_read): Adjust to std::string.
11101 * symfile.c (separate_debug_file_exists): Change parameter to
11103 (find_separate_debug_file): Return std::string.
11104 (find_separate_debug_file_by_debuglink): Return std::string.
11105 * symfile.h (find_separate_debug_file_by_debuglink): Return
11108 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11110 * common/xml-utils.c (xml_escape_text): Move code to...
11111 (xml_escape_text_append): ... this new function.
11112 * common/xml-utils.h (xml_escape_text_append): New declaration.
11113 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11115 (_initialize_xml_utils): register test_xml_escape_text_append as
11118 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11120 * defs.h: Remove MAX_REGISTER_SIZE.
11121 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11123 * python/py-unwind.c (pyuw_sniffer): Likewise.
11125 2018-03-07 Tom Tromey <tom@tromey.com>
11127 * linux-tdep.c (linux_info_proc): Update.
11128 * target.h (struct target_ops) <to_fileio_readlink>: Return
11130 (target_fileio_readlink): Return optional<string>.
11131 * remote.c (remote_hostio_readlink): Return optional<string>.
11132 * inf-child.c (inf_child_fileio_readlink): Return
11134 * target.c (target_fileio_readlink): Return optional<string>.
11136 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11138 * regcache.c (cooked_read_test): Add riscv to the list of
11139 architectures that have a save_reggroup.
11141 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11143 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11144 value is not a dynamic class object.
11146 2018-03-06 Tom Tromey <tom@tromey.com>
11148 * rust-exp.y: Formatting fixes.
11150 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11152 * riscv-tdep.c (riscv_register_name): Remove target description
11154 (riscv_gdbarch_init): Remove target description check.
11156 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11158 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11160 * riscv-tdep.h: Likewise.
11162 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11164 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11165 (riscv_pseudo_register_write): Delete.
11166 (riscv_gdbarch_init): Remove all use of pseudo registers.
11168 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11170 * record-btrace.c (btrace_print_lines): Replace cleanup
11171 parameter with RAII equivalents.
11172 (btrace_insn_history): Replace cleanup with RAII equivalents.
11173 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11174 make_cleanup_ui_out_tuple_begin_end): Remove.
11175 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11176 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11177 make_cleanup_ui_out_list_begin_end): Remove.
11179 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11181 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11182 parameter types to std::vector. Use bool.
11183 (record_btrace_wait): Replace VEC(tp_t) with
11184 std::vector<thread_info *>.
11185 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11187 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11189 * record-btrace.c (record_btrace_disable_callback): Remove.
11190 (struct scoped_btrace_disable): New.
11191 (record_btrace_open): Use scoped_btrace_disable.
11193 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11195 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11196 reading values from registers.
11198 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11200 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11203 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11205 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11206 change parameter type. Use GDB's print functions, and use
11207 core_addr_to_string where appropriate.
11208 (riscv_push_dummy_call): Use core_addr_to_string where
11209 appropriate, update call to riscv_print_arg_location, and reindent
11211 (riscv_return_value): Update call to riscv_print_arg_location.
11213 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11214 Tim Newsome <tim@sifive.com>
11215 Albert Ou <a0u@eecs.berkeley.edu>
11216 Darius Rad <darius@bluespec.com>
11218 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11219 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11220 (ALLDEPFILES): Add riscv-tdep.c
11221 * configure.tgt: Add riscv support.
11222 * riscv-tdep.c: New file.
11223 * riscv-tdep.h: New file.
11224 * NEWS: Mention new target.
11225 * MAINTAINERS: Add entry for riscv.
11227 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11229 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11230 fields within aggregates.
11232 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11234 * record-btrace.c (btrace_print_lines): Change type of flags to
11235 gdb_disassembly_flags.
11237 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11239 * fbsd-nat.c: Include "inf-ptrace.h".
11240 (USE_SIGTRAP_SIGINFO): Conditionally define.
11241 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11242 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11243 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11245 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11247 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11249 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11250 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11251 "supports_stopped_by_hw_breakpoint" target methods.
11253 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11255 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11256 * fbsd-nat.c (debug_fbsd_nat): New variable.
11257 (show_fbsd_nat_debug): New function.
11258 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11259 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11261 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11263 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11264 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11266 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11267 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11270 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11272 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11273 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11275 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11277 * charset.c (struct charset_vector): New.
11278 (charsets): Change type to charset_vector.
11279 (find_charset_names): Adjust.
11281 (_initialize_charset): Adjust.
11283 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11285 * progspace.h (struct program_space) <deleted_solibs>: Change
11286 type to std::vector<std::string>.
11287 * progspace.c (clear_program_space_solib_cache): Adjust.
11288 * breakpoint.c (print_solib_event): Adjust.
11289 (check_status_catch_solib): Adjust.
11290 * solib.c (update_solib_list): Adjust.
11291 * ui-out.h (class ui_out) <field_string>: New overload.
11292 * ui-out.c (ui_out::field_string): New overload.
11294 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11296 * progspace.h (struct program_space): Add constructor and
11297 destructor, initialize fields.
11298 (add_program_space): Remove.
11299 * progspace.c (add_program_space): Rename to...
11300 (program_space::program_space): ... this.
11301 (release_program_space): Rename to...
11302 (program_space::~program_space): ... this.
11303 (delete_program_space): Use delete to delete program_space.
11304 (initialize_progspace): Use new to allocate program_space.
11305 * inferior.c (add_inferior_with_spaces): Likewise.
11306 (clone_inferior_command): Likewise.
11307 * infrun.c (follow_fork_inferior): Likewise.
11308 (handle_vfork_child_exec_or_exit): Likewise.
11310 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11312 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11313 (delim_string_to_char_ptr_vec): Return std::vector of
11314 gdb::unique_xmalloc_ptr.
11315 (dirnames_to_char_ptr_vec_append): Take std::vector of
11316 gdb::unique_xmalloc_ptr.
11317 (dirnames_to_char_ptr_vec): Return std::vector of
11318 gdb::unique_xmalloc_ptr.
11319 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11320 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11321 (delim_string_to_char_ptr_vec): Return an std::vector of
11322 gdb::unique_xmalloc_ptr, adjust the code.
11323 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11324 gdb::unique_xmalloc_ptr, adjust the code.
11325 (dirnames_to_char_ptr_vec): Return an std::vector of
11326 gdb::unique_xmalloc_ptr, adjust the code.
11327 * auto-load.c (auto_load_safe_path_vec): Change type to
11328 std::vector of gdb::unique_xmalloc_ptr.
11329 (auto_load_expand_dir_vars): Return an std::vector of
11330 gdb::unique_xmalloc_ptr, adjust the code.
11331 (auto_load_safe_path_vec_update): Adjust.
11332 (filename_is_in_auto_load_safe_path_vec): Adjust.
11333 (auto_load_objfile_script_1): Adjust.
11334 * build-id.c (build_id_to_debug_bfd): Adjust.
11335 * linux-thread-db.c (thread_db_load_search): Adjust.
11336 * source.c (add_path): Adjust.
11338 * symfile.c (find_separate_debug_file): Adjust.
11339 * utils.c (do_free_char_ptr_vec): Remove.
11340 (make_cleanup_free_char_ptr_vec): Remove.
11342 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11345 * common/pathstuff.c: Conditionally include "<windows.h>".
11347 2018-03-01 Georg Sauthoff <mail@georg.so>
11350 * gcore.in: Quote variables and switch interpreter to bash.
11352 2018-03-01 Tom Tromey <tom@tromey.com>
11354 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11355 assertion. Add assertion for discriminant_index.
11356 (quirk_rust_enum): Use correct base type name in univariant case.
11358 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11360 * record.c (get_call_history_modifiers): Return a
11361 record_print_flags.
11362 (cmd_record_call_history): Adjust.
11363 * record-btrace.c (record_btrace_call_history): Adjust.
11364 (record_btrace_call_history_range): Adjust.
11365 (record_btrace_call_history_from): Adjust.
11366 * target-debug.h (target_debug_print_record_print_flags): New.
11367 * target-delegates.c: Re-generate.
11368 * target.c (target_call_history): Change flags type.
11369 (target_call_history_from): Likewise.
11370 (target_call_history_range): Likewise.
11371 * target.h (struct target_ops) <target_call_history>: Likewise.
11372 (target_call_history_from): Likewise.
11373 (target_call_history_range): Likewise.
11375 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11376 Simon Marchi <simon.marchi@polymtl.ca>
11378 * common/common-utils.c: Include "sys/stat.h".
11379 (is_regular_file): Move here from "source.c"; change return
11381 * common/common-utils.h (is_regular_file): New prototype.
11382 * common/pathstuff.c (contains_dir_separator): New function.
11383 * common/pathstuff.h (contains_dir_separator): New prototype.
11384 * source.c: Don't include "sys/stat.h".
11385 (is_regular_file): Move to "common/common-utils.c".
11387 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11389 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11390 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11391 * auto-load.c: Include "common/pathstuff.h".
11392 * common/common-def.h (current_directory): Move here.
11393 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11395 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11397 * common/pathstuff.c: New file.
11398 * common/pathstuff.h: New file.
11399 * compile/compile.c: Include "common/pathstuff.h".
11400 * defs.h (current_directory): Move to "common/common-defs.h".
11401 * dwarf2read.c: Include "common/pathstuff.h".
11402 * exec.c: Likewise.
11403 * guile/scm-safe-call.c: Likewise.
11404 * linux-thread-db.c: Likewise.
11405 * main.c: Likewise.
11406 * nto-tdep.c: Likewise.
11407 * objfiles.c: Likewise.
11408 * source.c: Likewise.
11409 * symtab.c: Likewise.
11410 * utils.c: Include "common/pathstuff.h".
11411 (gdb_realpath): Move to "common/pathstuff.c".
11412 (gdb_realpath_keepfile): Likewise.
11413 (gdb_abspath): Likewise.
11414 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11415 (gdb_realpath_keepfile): Likewise.
11416 (gdb_abspath): Likewise.
11418 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11420 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11421 wildcard process pid for super_resume for kernels with a
11424 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11426 * compile/compile.c (get_args): Add additional comments
11427 explaining function.
11429 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11430 Tom Tromey <tom@tromey.com>
11432 * target.h (memory_write_request_s): Remove typedef. Don't define
11434 (target_write_memory_blocks): Change argument to std::vector.
11435 (struct memory_write_request): Add constructor.
11436 * target-memory.c (compare_block_starting_address): Return bool.
11437 Change argument types.
11438 (claim_memory): Change arguments to use std::vector.
11439 (split_regular_and_flash_blocks, blocks_to_erase)
11440 (compute_garbled_blocks): Likewise.
11441 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11442 (target_write_memory_blocks): Change argument to std::vector.
11443 * symfile.c (struct load_section_data): Add constructor and
11444 destructor. Use std::vector for "requests".
11445 (struct load_progress_data): Add initializers.
11446 (load_section_callback): Update. Use "new".
11447 (clear_memory_write_data): Remove.
11448 (generic_load): Update.
11450 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11452 * arch/aarch64.h: Use common/tdesc.h.
11454 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11456 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11457 architecture with a 64-bit ABI.
11459 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11461 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11462 ahead of target description loading.
11464 2018-02-26 Tom Tromey <tom@tromey.com>
11466 * stack.c (backtrace_command_1): Update.
11467 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11469 * python/py-framefilter.c (py_print_frame)
11470 (gdbpy_apply_frame_filter): Change type of "flags".
11471 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11473 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11474 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11475 * extension.h (enum frame_filter_flag): Rename from
11476 frame_filter_flags.
11477 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11478 (apply_ext_lang_frame_filter): Change type of "flags".
11479 * extension.c (apply_ext_lang_frame_filter): Change type of
11481 * extension-priv.h (struct extension_language_ops)
11482 <apply_frame_filter>: Change type of "flags".
11484 2018-02-26 Tom Tromey <tom@tromey.com>
11487 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11488 off-by-one in py_end computation.
11489 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11491 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11494 2018-02-26 Tom Tromey <tom@tromey.com>
11496 * dwarf2read.c (struct variant_field): New.
11497 (struct nextfield) <variant>: New field.
11498 (dwarf2_add_field): Handle DW_TAG_variant_part.
11499 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11500 discriminated union.
11501 (read_structure_type): Handle DW_TAG_variant_part.
11502 (handle_struct_member_die): New function, extracted from
11503 process_structure_scope. Handle DW_TAG_variant.
11504 (process_structure_scope): Handle discriminated unions. Call
11505 handle_struct_member_die.
11507 2018-02-26 Tom Tromey <tom@tromey.com>
11509 * rust-lang.h (rust_last_path_segment): Declare.
11510 * rust-lang.c (rust_last_path_segment): Now public. Change
11512 (struct disr_info): Remove.
11513 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11514 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11515 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11516 (rust_enum_p, rust_enum_variant): New function.
11517 (rust_underscore_fields): Remove "offset" parameter.
11518 (rust_print_enum): New function.
11519 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11520 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11521 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11523 (rust_internal_print_type): New function, from rust_print_type.
11525 (rust_print_type): Call rust_internal_print_type.
11526 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11527 Update enum handling.
11528 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11529 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11530 (rust_union_quirks): New functions.
11531 (process_full_comp_unit, process_full_type_unit): Call
11533 (process_structure_scope): Update rust_unions if necessary.
11535 2018-02-26 Tom Tromey <tom@tromey.com>
11537 * value.h (value_union_variant): Declare.
11538 * valops.c (value_union_variant): New function.
11539 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11540 (struct discriminant_info): New.
11541 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11543 (struct main_type) <flag_discriminated_union>: New field.
11545 2018-02-26 Tom Tromey <tom@tromey.com>
11547 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11548 unittests/unpack-selftests.c.
11549 * unittests/unpack-selftests.c: New file.
11550 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11552 2018-02-26 Yao Qi <yao.qi@linaro.org>
11554 * dwarf2read.c (struct partial_die_info) <read>: New method.
11555 (read_partial_die): Remove the declaration.
11556 (load_partial_dies): Update.
11557 (partial_die_info::partial_die_info):
11558 (read_partial_die): Change it to partial_die_info::read.
11560 2018-02-26 Yao Qi <yao.qi@linaro.org>
11562 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11563 (fixup_partial_die): Remove declaration.
11564 (scan_partial_symbols): Update.
11565 (partial_die_parent_scope): Likewise.
11566 (partial_die_full_name): Likewise.
11567 (fixup_partial_die): Change it to partial_die_info::fixup.
11569 2018-02-26 Yao Qi <yao.qi@linaro.org>
11571 * dwarf2read.c (read_partial_die): Update the declaration.
11572 (load_partial_dies): Caller update.
11573 (read_partial_die): Remove one argument abbrev_len.
11575 2018-02-26 Yao Qi <yao.qi@linaro.org>
11577 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11578 assignment operator.
11579 (load_partial_dies): Use ctor and copy ctor.
11580 (read_partial_die): Update.
11581 (dwarf2_cu::find_partial_die): Use ctor.
11583 2018-02-26 Yao Qi <yao.qi@linaro.org>
11585 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11586 (find_partial_die_in_comp_unit): Change it to
11587 dwarf2_cu::find_partial_die.
11588 (find_partial_die): Update.
11590 2018-02-26 Yao Qi <yao.qi@linaro.org>
11592 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11595 2018-02-26 Yao Qi <yao.qi@linaro.org>
11597 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11599 2018-02-26 Alan Hayward <alan.hayward@arm.com>
11601 * arch/amd64.h: Use common/tdesc.h.
11602 * arch/i386.c: Likewise.
11603 * arch/i386.h: Likewise.
11604 * arch/tic6x.c: Likewise.
11605 * arch/tdesc.h: Move file from here...
11606 * common/tdesc.h: ...to here.
11607 * features/aarch64-core.c: Regenerate.
11608 * features/aarch64-fpu.c: Regenerate.
11609 * features/i386/32bit-avx.c: Regenerate.
11610 * features/i386/32bit-avx512.c: Regenerate.
11611 * features/i386/32bit-core.c: Regenerate.
11612 * features/i386/32bit-linux.c: Regenerate.
11613 * features/i386/32bit-mpx.c: Regenerate.
11614 * features/i386/32bit-pkeys.c: Regenerate.
11615 * features/i386/32bit-sse.c: Regenerate.
11616 * features/i386/64bit-avx.c: Regenerate.
11617 * features/i386/64bit-avx512.c: Regenerate.
11618 * features/i386/64bit-core.c: Regenerate.
11619 * features/i386/64bit-linux.c: Regenerate.
11620 * features/i386/64bit-mpx.c: Regenerate.
11621 * features/i386/64bit-pkeys.c: Regenerate.
11622 * features/i386/64bit-segments.c: Regenerate.
11623 * features/i386/64bit-sse.c: Regenerate.
11624 * features/i386/x32-core.c: Regenerate.
11625 * features/tic6x-c6xp.c: Regenerate.
11626 * features/tic6x-core.c: Regenerate.
11627 * features/tic6x-gp.c: Regenerate.
11628 * target-descriptions.c: Use common/tdesc.h.
11629 * target-descriptions.h: Likewise.
11631 2018-02-24 Tom Tromey <tom@tromey.com>
11633 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11634 (try_thread_db_load_from_dir, thread_db_load_search): Use
11636 (info_auto_load_libthread_db_compare): Return bool. Change
11638 (info_auto_load_libthread_db): Use std::vector, std::string.
11641 2018-02-24 Tom Tromey <tom@tromey.com>
11643 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11645 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11647 * gdbarch.c: Rebuild.
11648 * gdbarch.h: Rebuild.
11649 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11650 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11651 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11654 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11656 * gdbtypes.h (sect_offset): Change type to uint64_t.
11657 (sect_offset_str): New function.
11658 * dwarf2read.c (create_addrmap_from_aranges): Use
11660 (error_check_comp_unit_head): Likewise.
11661 (create_debug_type_hash_table): Likewise.
11662 (read_cutu_die_from_dwo): Likewise.
11663 (init_cutu_and_read_dies): Likewise.
11664 (init_cutu_and_read_dies_no_follow): Likewise.
11665 (process_psymtab_comp_unit_reader): Likewise.
11666 (partial_die_parent_scope): Likewise.
11667 (peek_die_abbrev): Likewise.
11668 (process_queue): Likewise.
11669 (dwarf2_physname): Likewise.
11670 (read_namespace_alias): Likewise.
11671 (read_import_statement): Likewise.
11672 (create_dwo_cu_reader): Likewise.
11673 (create_cus_hash_table): Likewise.
11674 (lookup_dwo_cutu): Likewise.
11675 (inherit_abstract_dies): Likewise.
11676 (read_func_scope): Likewise.
11677 (read_call_site_scope): Likewise.
11678 (dwarf2_add_member_fn): Likewise.
11679 (read_common_block): Likewise.
11680 (read_module_type): Likewise.
11681 (read_typedef): Likewise.
11682 (read_subrange_type): Likewise.
11683 (load_partial_dies): Likewise.
11684 (read_partial_die): Likewise.
11685 (find_partial_die): Likewise.
11686 (read_str_index): Likewise.
11687 (dwarf2_string_attr): Likewise.
11688 (build_error_marker_type): Likewise.
11689 (lookup_die_type): Likewise.
11690 (dump_die_shallow): Likewise.
11691 (follow_die_ref): Likewise.
11692 (dwarf2_fetch_die_loc_sect_off): Likewise.
11693 (dwarf2_fetch_constant_bytes): Likewise.
11694 (follow_die_sig): Likewise.
11695 (get_signatured_type): Likewise.
11696 (get_DW_AT_signature_type): Likewise.
11697 (dwarf2_find_containing_comp_unit): Likewise.
11698 (set_die_type): Likewise.
11700 2018-02-21 John Baldwin <jhb@FreeBSD.org>
11702 * arch/aarch64.c: Include "common-defs.h".
11703 * arch/amd64.c: Likewise.
11704 * arch/i386.c: Likewise.
11706 2018-02-21 Tom Tromey <tom@tromey.com>
11708 * value.h: (extract_field_op): Update.
11709 * eval.c (extract_field_op): Return a const char *.
11710 * expression.h (parse_expression_for_completion): Update.
11711 * completer.c (complete_expression): Update.
11712 (add_struct_fields): Make fieldname const.
11713 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11714 (mark_completion_tag, parse_exp_in_context_1): Update.
11715 (parse_expression_for_completion): Change "name" to
11716 unique_xmalloc_ptr*.
11718 2018-02-21 Tom Tromey <tom@tromey.com>
11720 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11722 2018-02-21 Yao Qi <yao.qi@linaro.org>
11724 * avr-tdep.c (avr_read_pc): Change parameter type to
11726 * gdbarch.sh (read_pc): Likewise.
11727 * gdbarch.c: Re-generated.
11728 * gdbarch.h: Re-generated.
11729 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11731 * ia64-tdep.c (ia64_read_pc): Likewise.
11732 * mips-tdep.c (mips_read_pc): Likewise.
11733 * spu-tdep.c (spu_read_pc): Likewise.
11735 2018-02-21 Yao Qi <yao.qi@linaro.org>
11737 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11738 * regcache-dump.c: New file.
11739 * regcache.c: Move register_dump to regcache-dump.c.
11740 (maintenance_print_registers): Likewise.
11741 (maintenance_print_raw_registers): Likewise.
11742 (maintenance_print_cooked_registers): Likewise.
11743 (maintenance_print_register_groups): Likewise.
11744 (maintenance_print_remote_registers): Likewise.
11745 (_initialize_regcache): Likewise.
11746 * regcache.h (register_dump): Moved from regcache.c.
11748 2018-02-21 Yao Qi <yao.qi@linaro.org>
11750 * regcache.c (regcache::regcache): Update.
11751 (regcache::invalidate): Move it to detached_regcache::invalidate.
11752 (get_thread_arch_aspace_regcache): Update.
11753 (regcache::raw_update): Update.
11754 (regcache::cooked_read): Remove some code.
11755 (regcache::cooked_read_value): Likewise.
11756 (regcache::raw_write): Remove assert on m_readonly_p.
11757 (regcache::raw_supply_integer): Move it to
11758 detached_regcache::raw_supply_integer.
11759 (regcache::raw_supply_zeroed): Likewise.
11760 * regcache.h (detached_regcache) <raw_supply_integer>: New
11762 <raw_supply_zeroed, invalidate>: Likewise.
11763 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11764 <invalidate>: Likewise.
11765 <m_readonly_p>: Removed.
11767 2018-02-21 Yao Qi <yao.qi@linaro.org>
11769 * infcmd.c (get_return_value): Let stop_regs point to
11770 get_current_regcache.
11771 * regcache.c (regcache::regcache): Remove.
11772 (register_dump_reg_buffer): New class.
11773 (regcache_print): Adjust.
11774 * regcache.h (regcache): Remove constructors.
11776 2018-02-21 Yao Qi <yao.qi@linaro.org>
11778 * regcache.c (class register_dump): New class.
11779 (register_dump_regcache, register_dump_none): New class.
11780 (register_dump_remote, register_dump_groups): New class.
11781 (regcache_print): Update.
11782 * regcache.h (regcache_dump_what): Move it to regcache.c.
11783 (regcache) <dump>: Remove.
11785 2018-02-21 Yao Qi <yao.qi@linaro.org>
11787 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11789 (jit_unwind_reg_set_impl): Call raw_supply.
11790 (jit_frame_sniffer): Use reg_buffer_rw.
11791 * record-full.c (record_full_core_regbuf): Change its type.
11792 (record_full_core_open_1): Use reg_buffer_rw.
11793 (record_full_close): Likewise.
11794 (record_full_core_fetch_registers): Use regcache->raw_supply.
11795 (record_full_core_store_registers): Likewise.
11796 * regcache.c (regcache::get_register_status): Move it to
11798 (regcache_raw_set_cached_value): Remove.
11799 (regcache::raw_set_cached_value): Remove.
11800 (regcache::raw_write): Call raw_supply.
11801 (regcache::raw_supply): Move it to reg_buffer_rw.
11802 * regcache.h (regcache_raw_set_cached_value): Remove.
11803 (reg_buffer_rw): New class.
11805 2018-02-21 Yao Qi <yao.qi@linaro.org>
11807 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11808 readonly_detached_regcache.
11809 (dummy_frame_prev_register): Use regcache->cooked_read.
11810 * frame.c (frame_save_as_regcache): Change return type.
11811 (frame_pop): Update.
11812 * frame.h (frame_save_as_regcache): Update declaration.
11813 * inferior.h (get_infcall_suspend_state_regcache): Update
11815 * infrun.c (infcall_suspend_state) <registers>: use
11816 readonly_detached_regcache.
11817 (save_infcall_suspend_state): Don't use regcache_dup.
11818 (get_infcall_suspend_state_regcache): Change return type.
11819 * linux-fork.c (struct fork_info) <savedregs>: Change to
11820 readonly_detached_regcache.
11822 (fork_save_infrun_state): Don't use regcache_dup.
11823 (info_checkpoints_command): Adjust.
11824 * mi/mi-main.c (register_changed_p): Update declaration.
11825 (mi_cmd_data_list_changed_registers): Use
11826 readonly_detached_regcache.
11827 (register_changed_p): Change parameter type to
11828 readonly_detached_regcache.
11829 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11830 readonly_detached_regcache.
11831 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11832 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11834 (regcache::save): Move it to reg_buffer.
11835 (regcache::restore): Change parameter type.
11836 (regcache_dup): Remove.
11837 * regcache.h (reg_buffer) <save>: New method.
11838 (readonly_detached_regcache): New class.
11839 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11840 readonly_detached_regcache.
11841 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11843 2018-02-21 Yao Qi <yao.qi@linaro.org>
11845 * frame.c (frame_save_as_regcache): Use regcache method save.
11846 (frame_pop): Use regcache method restore.
11847 * infrun.c (restore_infcall_suspend_state): Likewise.
11848 * linux-fork.c (fork_load_infrun_state): Likewise.
11849 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11851 * regcache.c (regcache_save): Remove.
11852 (regcache::restore): More asserts.
11853 (regcache_cpy): Remove.
11854 * regcache.h (regcache_save): Remove the declaration.
11855 (regcache::restore): Move from private to public.
11856 Remove the friend declaration of regcache_cpy.
11857 (regcache_cpy): Remove declaration.
11859 2018-02-21 Yao Qi <yao.qi@linaro.org>
11861 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11862 parameter type to 'readable_regcache *'.
11863 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11864 * arm-tdep.c (arm_neon_quad_read): Likewise.
11865 (arm_pseudo_read): Likewise.
11866 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11867 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11868 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11869 * gdbarch.c: Re-generated.
11870 * gdbarch.h: Re-generated.
11871 * gdbarch.sh (pseudo_register_read): Change parameter type to
11872 'readable_regcache *'.
11873 (pseudo_register_read_value): Likewise.
11874 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11875 (h8300_pseudo_register_read): Likewise.
11876 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11877 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11878 (i386_pseudo_register_read_into_value): Likewise.
11879 (i386_pseudo_register_read_value): Likewise.
11880 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11882 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11883 * m32c-tdep.c (m32c_raw_read): Likewise.
11884 (m32c_read_flg): Likewise.
11885 (m32c_banked_register): Likewise.
11886 (m32c_banked_read): Likewise.
11887 (m32c_sb_read): Likewise.
11888 (m32c_part_read): Likewise.
11889 (m32c_cat_read): Likewise.
11890 (m32c_r3r2r1r0_read): Likewise.
11891 (m32c_pseudo_register_read): Likewise.
11892 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11893 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11894 (mep_pseudo_cr64_read): Likewise.
11895 (mep_pseudo_register_read): Likewise.
11896 * mips-tdep.c (mips_pseudo_register_read): Likewise.
11897 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11898 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11899 * regcache.c (regcache::raw_read): Move it to readable_regcache.
11900 (regcache::cooked_read): Likewise.
11901 (regcache::cooked_read_value): Likewise.
11902 (regcache_cooked_read_signed):
11903 (regcache::cooked_read): Likewise.
11904 * regcache.h (readable_regcache): New class.
11905 (regcache): Inherit readable_regcache. Move some methods to
11907 * rl78-tdep.c (rl78_pseudo_register_read): Change
11908 parameter type to 'readable_regcache *'.
11909 * rs6000-tdep.c (do_regcache_raw_read): Remove.
11910 (e500_pseudo_register_read): Change parameter type to
11911 'readable_regcache *'.
11912 (dfp_pseudo_register_read): Likewise.
11913 (vsx_pseudo_register_read): Likewise.
11914 (efpr_pseudo_register_read): Likewise.
11915 * s390-tdep.c (s390_pseudo_register_read): Likewise.
11916 * sh-tdep.c (sh_pseudo_register_read): Likewise.
11917 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
11918 (sh64_pseudo_register_read): Likewise.
11919 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11920 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11921 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11922 (spu_pseudo_register_read): Likewise.
11923 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11924 (xtensa_pseudo_register_read): Likewise.
11926 2018-02-21 Yao Qi <yao.qi@linaro.org>
11928 * regcache.c (regcache::regcache): Call reg_buffer ctor.
11929 (regcache::arch): Move it to reg_buffer::arch.
11930 (regcache::register_buffer): Likewise.
11931 (regcache::assert_regnum): Likewise.
11932 (regcache::num_raw_registers): Likewise.
11933 * regcache.h (reg_buffer): New class.
11934 (regcache): Inherit reg_buffer.
11936 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
11938 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
11939 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
11941 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
11943 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
11945 2018-02-19 Alan Hayward <alan.hayward@arm.com>
11947 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
11948 (SFILES): Remove common/*.c files.
11949 (COMMON_OBS): Remove some *.o files built from common/*.c files.
11950 * common/common.host: Add common reference.
11951 * configure.ac: Likewise.
11952 * configure: Regenerate.
11954 2018-02-16 Yao Qi <yao.qi@linaro.org>
11956 * block.c (block_namespace_info): Inherit allocate_on_obstack.
11957 (block_initialize_namespace): Use new.
11958 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
11959 (dwarf2_free_objfile): Use delete.
11960 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11961 (copy_type_recursive): Use new.
11962 * gdb_obstack.h (allocate_on_obstack): New.
11964 2018-02-15 Yao Qi <yao.qi@linaro.org>
11967 * inferior.c (exit_inferior_1): Reset inf->control.
11969 2018-02-15 Joel Brobecker <brobecker@adacore.com>
11971 * ada-lang.c (ada_to_fixed_value_create): Delete advance
11974 2018-02-14 Pedro Alves <palves@redhat.com>
11976 * frame-unwind.c (frame_unwind_try_unwinder): Always call
11977 frame_cleanup_after_sniffer on exception.
11979 2018-02-14 Tom Tromey <tom@tromey.com>
11981 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
11983 (solib_bfd_open): Make pathname const.
11984 * solib.c (solib_bfd_open): Make pathname const.
11985 * solib-spu.c (spu_bfd_fopen): Make name const.
11986 (spu_bfd_open): Make pathname const.
11987 * solib-darwin.c (darwin_bfd_open): Make pathname const.
11988 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
11990 2018-02-14 Tom Tromey <tom@tromey.com>
11992 * symfile.c (symfile_bfd_open): Update.
11993 * source.h (openp, source_full_path_of, find_and_open_source):
11994 Change argument type to unique_xmalloc_ptr.
11995 * source.c (openp): Take a unique_xmalloc_ptr.
11996 (source_full_path_of, find_and_open_source): Likewise.
11997 (open_source_file, symtab_to_fullname): Update.
11998 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
11999 unique_xmalloc_ptr.
12000 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12001 (exec_file_find): Update.
12002 * psymtab.c (psymtab_to_fullname): Update.
12003 * nto-tdep.h (nto_find_and_open_solib): Update.
12004 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12005 unique_xmalloc_ptr.
12006 * exec.c (exec_file_attach): Update.
12007 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12008 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12010 2018-02-14 Tom Tromey <tom@tromey.com>
12012 * solib.c: Include source.h.
12013 * nto-tdep.c: Include source.h.
12014 * mi/mi-cmd-env.c: Include source.h.
12015 * infcmd.c: Include source.h.
12016 * exec.c: Include source.h.
12017 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12018 (add_path, directory_switch, source_path, init_source_path): Move
12020 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12021 (add_path, directory_switch, source_path, init_source_path):
12024 2018-02-14 Tom Tromey <tom@tromey.com>
12026 * solist.h (exec_file_find, solib_find): Return
12027 unique_xmalloc_ptr.
12028 (solib_bfd_fopen): Take a const char *.
12029 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12030 (exec_file_find, solib_find): Likewise.
12031 (solib_bfd_fopen): Do not take ownership of "pathname".
12032 (solib_bfd_open): Use unique_xmalloc_ptr.
12033 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12034 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12035 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12036 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12038 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12040 * ada-lang.c (name_match_type_from_name): Remove reference to
12041 ada_name_for_lookup in function's documentation.
12042 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12044 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12046 * defs.h (enum openp_flags): New enum.
12047 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12048 Move to enum openp_flags.
12049 (openp_flags): New enum flags.
12050 (openp): Change parameter type to openp_flags.
12051 * source.c (openp): Change parameter type to openp_flags.
12052 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12053 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12055 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12057 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12060 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12062 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12064 (class dwarf2_queue_guard): ...the destructor of this new class.
12065 (dw2_do_instantiate_symtab): Create instance of the new class
12066 dwarf2_queue_guard, remove cleanup.
12068 2018-02-09 Tom Tromey <tom@tromey.com>
12070 * source.c (find_source_lines): Don't reference past the end of
12073 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12075 * remote.c (remote_btrace_maybe_reopen): Change error message.
12076 * btrace.c (btrace_enable): Likewise.
12077 (parse_xml_btrace): Likewise.
12078 (parse_xml_btrace_conf): Likewise.
12080 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12082 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12083 (linux_enable_pt, linux_enable_bts): Call
12084 diagnose_perf_event_open_fail.
12086 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12088 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12089 Remove parameter and change return type. Update callers. Move it.
12090 (linux_enable_bts, linux_enable_pt): Improve error message.
12091 (linux_enable_pt): Remove zero buffer size check.
12092 (linux_enable_btrace): Improve error messages. Remove NULL return
12095 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12097 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12098 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12099 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12100 (linux_supports_pt, linux_supports_btrace): Remove.
12101 (linux_enable_bts): Call cpu_supports_bts.
12102 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12103 * remote.c (remote_supports_btrace): Remove.
12104 (init_remote_ops): Remove remote_supports_btrace.
12105 * target-delegates.c: Regenerated.
12106 * target.c (target_supports_btrace): Remove.
12107 * target.h (target_ops) <to_supports_btrace>: Remove
12108 (target_supports_btrace): Remove.
12109 * x86-linux-nat.c (x86_linux_create_target): Remove
12110 linux_supports_btrace.
12112 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12114 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12116 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12117 exception and use message in own exception.
12119 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12121 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12122 (perf_event_pt_event_type): Use gdb_file_up.
12123 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12124 scoped_fd, and scoped_mmap.
12126 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12128 * common/scoped_mmap.h: New.
12129 * unittests/scoped_mmap-selftest.c: New.
12130 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12131 unittests/scoped_mmap-selftest.c.
12133 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12135 * common/scoped_fd.h: New.
12136 * unittests/scoped_fd-selftest.c: New.
12137 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12138 unittests/scoped_fd-selftest.c.
12140 2018-02-09 Tom Tromey <tom@tromey.com>
12142 * auto-load.c (auto_load_section_scripts): Use
12143 gdb::unique_xmalloc_ptr.
12145 2018-02-09 Tom Tromey <tom@tromey.com>
12147 * auto-load.c (execute_script_contents): Use std::string.
12149 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12151 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12152 Python function, rather than a new command.
12154 2018-02-08 Tom Tromey <tom@tromey.com>
12156 * solib.c (solib_find_1): Use std::string.
12157 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12159 2018-02-08 Tom Tromey <tom@tromey.com>
12161 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12163 2018-02-08 Tom Tromey <tom@tromey.com>
12165 * source.c (find_source_lines): Use gdb::def_vector.
12167 2018-02-08 Tom Tromey <tom@tromey.com>
12169 * macrocmd.c (struct temporary_macro_definition): New.
12170 (macro_define_command): Use temporary_macro_definition. Remove
12172 (free_macro_definition_ptr): Remove.
12174 2018-02-08 Tom Tromey <tom@tromey.com>
12176 * macroexp.c (maybe_expand): Use std::string.
12178 2018-02-08 Tom Tromey <tom@tromey.com>
12180 * macroexp.c (struct macro_buffer): Add initializers for some
12182 (init_buffer, init_shared_buffer, free_buffer)
12183 (free_buffer_return_text): Remove.
12184 (macro_buffer): New constructors.
12185 (~macro_buffer): New destructor.
12186 (macro_buffer::set_shared): New method.
12187 (macro_buffer::resize_buffer, macro_buffer::appendc)
12188 (macro_buffer::appendmem): Now methods, not free functions.
12189 (set_token, append_tokens_without_splicing, stringify)
12190 (macro_stringify): Update.
12191 (gather_arguments): Change return type. Remove argc_p argument,
12192 add args_ptr argument. Use std::vector.
12193 (substitute_args): Remove argc argument. Accept std::vector.
12194 (expand): Update. Use std::vector.
12195 (scan, macro_expand, macro_expand_next): Update.
12197 2018-02-08 Tom Tromey <tom@tromey.com>
12199 * symtab.c (default_collect_symbol_completion_matches_break_on):
12200 Use unique_xmalloc_ptr.
12201 * macroscope.h: (sal_macro_scope, user_macro_scope)
12202 (default_macro_scope): Return unique_xmalloc_ptr.
12203 * macroscope.c (sal_macro_scope, user_macro_scope)
12204 (default_macro_scope): Return unique_xmalloc_ptr.
12205 * macroexp.h (macro_expand, macro_expand_once): Return
12206 unique_xmalloc_ptr.
12207 * macroexp.c (macro_expand, macro_expand_once): Return
12208 unique_xmalloc_ptr.
12209 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12210 (info_macro_command, info_macros_command): Use
12211 unique_xmalloc_ptr.
12212 * compile/compile-c-support.c (write_macro_definitions): Use
12213 unique_xmalloc_ptr.
12214 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12216 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12218 * value.c (value_static_field): Assign field type instead of
12219 containing type when returning an optimized out value.
12221 2018-02-06 Yao Qi <yao.qi@linaro.org>
12223 * ft32-tdep.c (ft32_read_pc): Remove.
12224 (ft32_write_pc): Remove.
12225 (ft32_gdbarch_init): Update.
12226 * m32r-tdep.c (m32r_read_pc): Remove.
12227 (m32r_gdbarch_init): Update.
12228 * mep-tdep.c (mep_read_pc): Remove.
12229 (mep_gdbarch_init): Update.
12230 * microblaze-tdep.c (microblaze_write_pc): Remove.
12231 (microblaze_gdbarch_init): Update.
12232 * mn10300-tdep.c (mn10300_read_pc): Remove.
12233 (mn10300_write_pc): Remove.
12234 (mn10300_gdbarch_init): Update.
12235 * moxie-tdep.c (moxie_read_pc): Remove.
12236 (moxie_write_pc): Remove.
12237 (moxie_gdbarch_init): Update.
12239 2018-02-06 Yao Qi <yao.qi@linaro.org>
12241 * expprint.c (print_subexp_standard): Handle
12242 OP_F77_UNDETERMINED_ARGLIST.
12243 (dump_subexp_body_standard): Likewise.
12245 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12247 * target-descriptions.c (tdesc_element_visitor) Add empty
12249 (tdesc_type): Move make_gdb_type from here.
12250 (tdesc_type_builtin): Likewise.
12251 (tdesc_type_vector): Likewise.
12252 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12253 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12254 (make_gdb_type_union): Likewise.
12255 (make_gdb_type_flags): Likewise.
12256 (make_gdb_type_enum): Likewise.
12257 (make_gdb_type): New function.
12258 (tdesc_register_type): Use static make_gdb_type.
12260 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12262 * infcmd.c (default_print_one_register_info): Align natural-format
12263 column values consistently one under another.
12264 (pad_to_column): New function.
12266 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12268 * dwarf2read.c (dwarf2_physname): Move commment.
12270 2018-02-01 Leszek Swirski <leszeks@google.com>
12272 * varobj.c (varobj_formatted_print_options): Allow recursive
12273 pretty printing if pretty printing is enabled.
12275 2018-02-01 Leszek Swirski <leszeks@google.com>
12277 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12278 names after a structop as a filename.
12280 2018-02-01 Yao Qi <yao.qi@linaro.org>
12282 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12283 (arm_record_coproc_data_proc): Likewise.
12285 2018-02-01 Yao Qi <yao.qi@linaro.org>
12287 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12289 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12291 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12292 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12294 2018-01-31 Pedro Alves <palves@redhat.com>
12296 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12297 * inflow.c (child_terminal_save_inferior): Wrap reference to
12298 tcgetpgrp in HAVE_TERMIOS_H.
12299 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12301 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12302 always iterate over all inferiors.
12303 (gdbsim_cntrl_c): Adjust.
12304 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12306 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12308 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12309 index type is objfile-owned if the element type is as well.
12311 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12315 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12317 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12318 "features/s390x-linux64.c".
12319 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12320 s390_linux32 and s390x_linux64.
12321 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12323 * s390-tdep.c: Include "features/s390-linux32.c" and
12324 "features/s390x-linux64.c".
12325 (s390_tdesc_valid): Add check for tdesc_has_registers.
12326 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12327 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12328 tdesc_s390x_linux64.
12329 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12330 tdesc_s390x_linux64 to...
12331 * s390-tdep.h: ...here.
12333 2018-01-30 Pedro Alves <palves@redhat.com>
12336 * config.in, configure: Regenerate.
12337 * configure.ac: Check for getpgid.
12338 * go32-nat.c (go32_pass_ctrlc): New.
12339 (go32_target): Install it.
12340 * inf-child.c (inf_child_target): Install
12341 child_terminal_save_inferior, child_pass_ctrlc and
12343 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12344 (inf_ptrace_target): No longer install it.
12345 * infcmd.c (interrupt_target_1): Adjust.
12346 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12347 (child_interrupt): Declare.
12348 (inferior::terminal_state): New.
12349 * inflow.c (struct terminal_info): Update comments.
12350 (inferior_process_group): Delete.
12351 (terminal_is_ours): Delete.
12352 (gdb_tty_state): New.
12353 (child_terminal_init): Adjust.
12354 (is_gdb_terminal, sharing_input_terminal_1)
12355 (sharing_input_terminal): New functions.
12356 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12357 Set the process's actual process group in the foreground if
12358 possible. Handle is_ours_for_output/is_ours distinction. Don't
12359 mark terminal as the inferior's if not sharing GDB's terminal.
12360 Don't check attach_flag.
12361 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12362 pass down a target_terminal_state.
12363 (child_terminal_save_inferior): New, factored out from ...
12364 (child_terminal_ours_1): ... this. Handle
12365 target_terminal_state::is_ours_for_output.
12366 (child_interrupt, child_pass_ctrlc): New.
12367 (inflow_inferior_exit): Clear the inferior's terminal_state.
12368 (copy_terminal_info): Copy the inferior's terminal state.
12369 (_initialize_inflow): Remove reference to terminal_is_ours.
12370 * inflow.h (inferior_process_group): Delete.
12371 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12372 * procfs.c (procfs_target): Don't install procfs_interrupt.
12373 (procfs_interrupt): Delete.
12374 * remote.c (remote_serial_quit_handler): Adjust.
12375 (remote_interrupt): Remove ptid parameter. Adjust.
12376 * target-delegates.c: Regenerate.
12377 * target.c: Include "terminal.h".
12378 (target_terminal::terminal_state): Rename to ...
12379 (target_terminal::m_terminal_state): ... this.
12380 (target_terminal::init): Adjust.
12381 (target_terminal::inferior): Adjust to per-inferior
12383 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12384 (target_terminal::ours, target_terminal::ours_for_output): Use
12385 target_terminal_is_ours_kind.
12386 (target_interrupt): Remove ptid parameter. Adjust.
12387 (default_target_pass_ctrlc): Adjust.
12388 * target.h (target_ops::to_terminal_save_inferior): New field.
12389 (target_ops::to_interrupt): Remove ptid_t parameter.
12390 (target_interrupt): Remove ptid_t parameter. Update comment.
12391 (target_pass_ctrlc): Update comment.
12392 * target/target.h (target_terminal_state): New scoped enum,
12393 factored out of ...
12394 (target_terminal::terminal_state): ... here.
12395 (target_terminal::inferior): Update comments.
12396 (target_terminal::restore_inferior): New.
12397 (target_terminal::is_inferior, target_terminal::is_ours)
12398 (target_terminal::is_ours_for_output): Adjust.
12399 (target_terminal::scoped_restore_terminal_state): Adjust to
12400 rename, and call restore_inferior() instead of inferior().
12401 (target_terminal::scoped_restore_terminal_state::m_state): Change
12403 (target_terminal::terminal_state): Rename to ...
12404 (target_terminal::m_terminal_state): ... this and change type.
12406 2018-01-30 Pedro Alves <palves@redhat.com>
12408 * linux-nat.c (wait_for_signal): New function.
12409 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12411 (async_terminal_is_ours)
12412 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12413 (linux_nat_add_target): Don't override
12414 to_terminal_inferior/to_terminal_ours.
12416 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12418 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12420 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12422 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12423 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12424 dwarf2_per_objfile_free here.
12425 (dwarf2_per_objfile_free): Remove.
12426 (_initialize_dwarf2_read): Don't register
12427 dwarf2_per_objfile_free as a registry cleanup.
12429 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12431 Avoid compilation errors in MinGW native builds
12433 The error is triggered by including python-internal.h, and the
12436 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12437 from build-gnulib/import/math.h:27,
12438 from d:/usr/Python26/include/pyport.h:235,
12439 from d:/usr/Python26/include/Python.h:58,
12440 from python/python-internal.h:94,
12441 from python/py-arch.c:24:
12442 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12446 This happens because Python headers define 'hypot' to expand t
12447 '_hypot' in the Windows builds.
12448 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12449 'hypoth'. This avoids a compilation error.
12451 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12453 * MAINTAINERS (Write After Approval): Fix ordering.
12455 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12457 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12459 2018-01-26 Alan Modra <amodra@gmail.com>
12461 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12462 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12463 Remove nop. Make const. Comment.
12464 (powerpc32_plt_stub_so_2): New.
12465 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12466 Correct count. Update uses.
12467 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12468 Move common code reading PLT entry word. Correct
12469 powerpc32_plt_stub PLT address calculation.
12470 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12471 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12472 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12473 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12474 (ppc64_standard_linkage8): Likewise.
12475 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12476 Correct insns description.
12477 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12479 2018-01-24 Pedro Alves <palves@redhat.com>
12481 GCC PR libstdc++/83906
12482 * gdbtypes.c (operator==(const dynamic_prop &,
12483 const dynamic_prop &)): New.
12484 (operator==(const range_bounds &, const range_bounds &)): New.
12485 (check_types_equal): Use them instead of memcmp.
12486 * gdbtypes.h (operator==(const dynamic_prop &,
12487 const dynamic_prop &)): Declare.
12488 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12489 (operator==(const range_bounds &, const range_bounds &)): Declare.
12490 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12492 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12494 * s390-linux-tdep.c (s390_record_address_mask)
12495 (s390_record_calc_disp_common, s390_record_calc_disp)
12496 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12497 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12498 (s390_process_record): Move to s390-tdep.c.
12499 (s390_linux_init_abi_any): Adjust.
12500 * s390-tdep.c (s390_record_address_mask)
12501 (s390_record_calc_disp_common, s390_record_calc_disp)
12502 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12503 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12504 (s390_process_record): Moved from s390-linux-tdep.c
12505 (s390_gdbarch_init): Adjust.
12507 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12509 * s390-linux-nat.c (s390-tdep.h): New include.
12510 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12511 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12512 (ALLDEPFILES): Add s390-tdep.c.
12513 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12514 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12515 * s390-tdep.h: ...this. New file.
12516 * s390-linux-tdep.c (s390-tdep.h): New include.
12517 (_initialize_s390_tdep): Rename to...
12518 (_initialize_s390_linux_tdep): ...this and adjust.
12519 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12520 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12522 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12523 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12524 (s390_is_partial_instruction, s390_software_single_step)
12525 (is_non_branch_ril, s390_displaced_step_copy_insn)
12526 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12527 (s390_prologue_data, s390_addr, s390_store, s390_load)
12528 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12529 (s390_register_call_saved, s390_guess_tracepoint_registers)
12530 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12531 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12532 (s390_pseudo_register_name, s390_pseudo_register_type)
12533 (s390_pseudo_register_read, s390_pseudo_register_write)
12534 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12535 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12536 (s390_addr_bits_remove, s390_address_class_type_flags)
12537 (s390_address_class_type_flags_to_name)
12538 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12539 (s390_function_arg_float, s390_function_arg_vector)
12540 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12541 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12542 (s390_frame_align, s390_register_return_value, s390_return_value)
12543 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12544 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12545 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12546 (s390_trad_frame_prev_register, s390_unwind_cache)
12547 (s390_prologue_frame_unwind_cache)
12548 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12549 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12550 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12551 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12552 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12553 (s390_frame_base_address, s390_local_base_address)
12554 (s390_frame_base, s390_gcc_target_options)
12555 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12556 (s390_validate_reg_range, s390_tdesc_valid)
12557 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12558 * s390-tdep.c: ...this. New file.
12560 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12562 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12563 (s390_process_record, s390_gdbarch_tdep_alloc)
12564 (s390_linux_init_abi_any): Use/set new hook.
12566 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12568 * s390-linux-tdep.c (osabi.h): New include.
12569 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12570 (s390_linux_init_abi_any): New functions.
12571 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12573 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12575 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12576 tdesc_has_registers check
12578 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12580 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12581 (s390_validate_reg_range): New macro.
12582 (s390_gdbarch_init): Adjust.
12584 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12586 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12587 (s390_gdbarch_tdep_alloc): Adjust.
12588 (s390_gdbarch_init): Adjust.
12590 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12592 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12593 <have_tdb>: Change type to bool.
12594 (s390_gdbarch_tdep_alloc): Adjust.
12595 (s390_gdbarch_init): Adjust.
12597 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12599 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12600 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12601 (s390_gdbarch_tdep_alloc): New function.
12602 (s390_gdbarch_init): Allocate tdep at start and use its fields
12603 instead of separate variables.
12605 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12607 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12608 when looking for cached gdbarch and add comment for remaining.
12610 2018-01-22 Pedro Alves <palves@redhat.com>
12611 Sergio Durigan Junior <sergiodj@redhat.com>
12613 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12616 2018-01-22 Maciej W. Rozycki <macro@mips.com>
12618 * MAINTAINERS: Update my company e-mail address.
12620 2018-01-22 Yao Qi <yao.qi@linaro.org>
12622 * regcache.c (cooked_write_test): New function.
12623 (_initialize_regcache): Register the test.
12625 2018-01-22 Yao Qi <yao.qi@linaro.org>
12627 * ia64-tdep.c (ia64_pseudo_register_read): Call
12628 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12629 * m32c-tdep.c (m32c_cat_read): Likewise.
12630 (m32c_r3r2r1r0_read): Likewise.
12631 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12632 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12634 2018-01-22 Yao Qi <yao.qi@linaro.org>
12636 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12637 method raw_read instead of regcache_raw_read.
12638 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12639 * arm-tdep.c (arm_neon_quad_read): Likewise.
12640 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12641 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12642 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12643 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12644 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12645 (i386_pseudo_register_read_into_value): Likewise.
12646 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12647 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12648 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12649 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12650 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12651 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12652 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12653 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12654 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12656 2018-01-22 Yao Qi <yao.qi@linaro.org>
12658 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12659 * configure.tgt: Remove target mt.
12660 * mt-tdep.c: Remove.
12661 * regcache.c (cooked_read_test): Remove the check for mt.
12663 2018-01-22 Yao Qi <yao.qi@linaro.org>
12665 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12666 instead of gdbarch_pseudo_register_read_value.
12668 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12670 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12673 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12675 * linespec.c (create_sals_line_offset): Remove code that preserved
12676 the symtab_and_line's line number.
12678 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12680 * varobj.c (varobj_create): Don't set valid_block when creating a
12683 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12685 * varobj.c (varobj_create): Remove out of date comment.
12687 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12690 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12691 updating innermost block.
12692 * parse.c (innermost_block_tracker::update): Take extra type
12693 parameter, and check types match before updating innermost block.
12694 (write_dollar_variable): Update innermost block for registers.
12695 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12696 (innermost_block_tracker::innermost_block_tracker): Initialise
12698 (innermost_block_tracker::reset): Take type parameter.
12699 (innermost_block_tracker::update): Take type parameter, and pass
12700 type through as needed.
12701 (innermost_block_tracker::m_types): New member.
12702 * varobj.c (varobj_create): Pass type when reseting innermost
12705 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12707 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12708 * ada-lang.c (resolve_subexp): Likewise.
12709 * breakpoint.c (set_breakpoint_condition) Likewise.
12710 (watch_command_1) Likewise.
12711 * c-exp.y (variable): Likewise.
12712 * d-exp.y (PrimaryExpression): Likewise.
12713 * f-exp.y (variable): Likewise.
12714 * go-exp.y (variable): Likewise.
12715 * m2-exp.y (variable): Likewise.
12716 * objfiles.c (objfile::~objfile): Likewise.
12717 * p-exp.y (variable): Likewise.
12718 * parse.c (innermost_block): Change type.
12719 * parser-defs.h (class innermost_block_tracker): New.
12720 (innermost_block): Change to innermost_block_tracker.
12721 * printcmd.c (display_command): Switch to innermost_block API.
12722 (do_one_display): Likewise.
12723 * rust-exp.y (do_one_display): Likewise.
12724 * symfile.c (clear_symtab_users): Likewise.
12725 * varobj.c (varobj_create): Switch to innermost_block API, replace
12726 use of innermost_block with block stored on varobj object.
12728 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12730 * expression.h (innermost_block): Remove declaration.
12731 * varobj.c: Add 'parser-defs.h' include.
12733 2018-01-19 Tom Tromey <tom@tromey.com>
12735 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12736 symbols in the static and global blocks.
12738 2018-01-19 James Clarke <jrtc27@jrtc27.com>
12740 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12741 gdb_ptrace.h, and move including gdb_wait.h ...
12742 * nat/linux-ptrace.h: ... to here.
12744 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12746 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12747 inf_ptrace_detach_success.
12748 (inf_ptrace_detach_success): Add inferior parameter, use it
12749 instead of inferior_ptid, pass it to detach_inferior.
12750 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12752 * inferior.c (detach_inferior): Add overload that takes an
12754 * inferior.h (detach_inferior): Likewise.
12755 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12756 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12757 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12759 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12761 * target.h (struct target_ops) <to_detach>: Add inferior
12763 (target_detach): Likewise.
12764 * target.c (dispose_inferior): Pass inferior down.
12765 (target_detach): Pass inferior down. Assert that it is equal to
12766 the current inferior.
12767 * aix-thread.c (aix_thread_detach): Pass inferior down.
12768 * corefile.c (core_file_command): Pass current_inferior() down.
12769 * corelow.c (core_detach): Add inferior parameter.
12770 * darwin-nat.c (darwin_detach): Likewise.
12771 * gnu-nat.c (gnu_detach): Likewise.
12772 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12773 * infcmd.c (detach_command): Pass current_inferior() down to
12775 * infrun.c (follow_fork_inferior): Pass parent_inf to
12777 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12779 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12780 * linux-thread-db.c (thread_db_detach): Likewise.
12781 * nto-procfs.c (procfs_detach): Likewise.
12782 * procfs.c (procfs_detach): Likewise.
12783 * record.c (record_detach): Likewise.
12784 * record.h (struct inferior): Forward-declare.
12785 (record_detach): Add inferior parameter.
12786 * remote-sim.c (gdbsim_detach): Likewise.
12787 * remote.c (remote_detach_1): Likewise.
12788 (remote_detach): Likewise.
12789 (extended_remote_detach): Likewise.
12790 * sol-thread.c (sol_thread_detach): Likewise.
12791 * target-debug.h (target_debug_print_inferior_p): New macro.
12792 * target-delegates.c: Re-generate.
12793 * top.c (kill_or_detach): Pass inferior down to target_detach.
12794 * windows-nat.c (windows_detach): Add inferior parameter.
12796 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12798 * target.h (struct target_ops) <to_detach>: Remove args
12800 (target_detach): Likewise.
12801 * target.c (dispose_inferior): Adjust.
12802 (target_detach): Remove args parameter, adjust.
12803 * aix-thread.c (aix_thread_detach): Adjust.
12804 * corefile.c (core_file_command): Adjust.
12805 * corelow.c (core_detach): Adjust.
12806 * darwin-nat.c (darwin_detach): Adjust.
12807 * gnu-nat.c (gnu_detach): Adjust.
12808 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12809 * infcmd.c (detach_command): Adjust
12810 * infrun.c (follow_fork_inferior): Adjust.
12811 (handle_vfork_child_exec_or_exit): Adjust.
12812 * linux-fork.c (linux_fork_detach): Remove args parameter.
12813 * linux-fork.h (linux_fork_detach): Likewise.
12814 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12815 * linux-thread-db.c (thread_db_detach): Likewise.
12816 * nto-procfs.c (procfs_detach): Likewise.
12817 * procfs.c (procfs_detach): Likewise.
12818 (do_detach): Remove signo parameter.
12819 * record.c (record_detach): Remove args parameter.
12820 * record.h (record_detach): Likewise.
12821 * remote-sim.c (gdbsim_detach): Likewise.
12822 * remote.c (remote_detach_1): Likewise.
12823 (remote_detach): Likewise.
12824 (extended_remote_detach): Likewise.
12825 * sol-thread.c (sol_thread_detach): Likewise.
12826 * target-delegates.c: Re-generate.
12827 * top.c (struct qt_args) <args>: Remove field.
12828 (kill_or_detach): Don't pass args.
12829 (quit_force): Don't set args.
12830 * windows-nat.c (windows_detach): Remove args parameter.
12832 2018-01-19 Yao Qi <yao.qi@linaro.org>
12834 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12835 (arm_linux_init_abi): Install it.
12837 2018-01-19 Yao Qi <yao.qi@linaro.org>
12839 * osabi.c (gdb_osabi_names): Extend the regexp for
12840 arm-linux-gnueabihf.
12842 2018-01-18 Yao Qi <yao.qi@linaro.org>
12844 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12846 (abbrev_table::add_abbrev): Update.
12847 (abbrev_table::lookup_abbrev): Update.
12849 2018-01-18 Yao Qi <yao.qi@linaro.org>
12851 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12853 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12855 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12858 2018-01-17 Tom Tromey <tom@tromey.com>
12860 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12862 2018-01-17 Tom Tromey <tom@tromey.com>
12864 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12865 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12866 (create_array_type_with_stride): Update.
12867 * dwarf2read.c (set_die_type): Update.
12869 2018-01-17 Tom Tromey <tom@tromey.com>
12871 * dwarf2read.c (delayed_method_info): Remove typedef.
12872 (dwarf2_cu::method_info): Now a std::vector.
12873 (add_to_method_list): Update.
12874 (free_delayed_list): Remove.
12875 (compute_delayed_physnames): Update.
12876 (process_full_comp_unit, process_full_type_unit): Clear the method
12877 list. Remove cleanups.
12878 (psymtab_include_file_name): Add name_holder parameter. Use
12879 unique_xmalloc_ptr.
12880 (dwarf_decode_lines): Update.
12882 2018-01-17 Tom Tromey <tom@tromey.com>
12883 Simon Marchi <simon.marchi@ericsson.com>
12885 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12886 (dwarf2_per_objfile::free_cached_comp_units)
12887 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12888 (init_cutu_and_read_dies_no_follow): Update.
12889 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12890 (dwarf2_cu::~dwarf2_cu): New.
12891 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12892 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12894 2018-01-17 Tom Tromey <tom@tromey.com>
12895 Simon Marchi <simon.marchi@ericsson.com>
12897 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12898 (struct die_reader_specs) <abbrev_table>: New member.
12899 (struct abbrev_table): Add constructor.
12900 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12901 <abbrev_obstack>: Now an auto_obstack.
12902 (abbrev_table_up): New typedef.
12903 (init_cu_die_reader): Add abbrev_table parameter.
12904 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12905 Add result_dwo_abbrev_table.
12906 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12907 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12909 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12911 (skip_children): Update.
12912 (abbrev_table::alloc_abbrev): Rename from
12913 abbrev_table_alloc_abbrev.
12914 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
12915 (abbrev_table::lookup_abbrev): Rename from
12916 abbrev_table_lookup_abbrev.
12917 (abbrev_table_read_table): Return abbrev_table_up.
12918 (abbrev_table_free, abbrev_table_free_cleanup)
12919 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
12920 (load_partial_dies): Update.
12922 2018-01-17 Tom Tromey <tom@tromey.com>
12924 * dwarf2read.c (dwarf2_compute_name): Update comment.
12925 (read_func_scope, read_variable): Update.
12926 (new_symbol): Remove.
12927 (new_symbol_full): Rename to new_symbol.
12929 2018-01-17 Mike Gulick <mgulick@mathworks.com>
12932 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
12933 a warning instead of throwing an error, set section size to 0 and return
12935 * gdb_bfd.h (gdb_bfd_map_section): Update description.
12937 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12939 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
12941 (linux_ptrace_attach_fail_reason_string): Likewise.
12942 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
12944 (linux_ptrace_attach_fail_reason_string): Likewise.
12945 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
12947 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12949 * linux-nat.c (linux_nat_attach): Remove xstrdup.
12951 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
12954 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
12955 checking for fs_base/gs_base fields in struct user_regs_struct.
12956 * configure: Regenerate.
12958 2018-01-17 Yao Qi <yao.qi@linaro.org>
12960 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12962 (aarch64_linux_init_abi): Install it to gdbarch hook
12963 gcc_target_options.
12965 2018-01-15 Pedro Alves <palves@redhat.com>
12967 * common/signals-state-save-restore.c
12968 (save_original_signals_state): Fix typos.
12970 2017-01-12 Tom Tromey <tom@tromey.com>
12971 Sergio Durigan Junior <sergiodj@redhat.com>
12973 * Makefile.in (install-only): Install gdb-add-index.
12975 2018-01-12 John Baldwin <jhb@FreeBSD.org>
12977 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
12979 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12981 * infrun.c (keep_going_pass_signal): Clear step-over info when
12982 insert_breakpoints fails.
12984 2018-01-11 Pedro Alves <palves@redhat.com>
12987 * infrun.c (resume): Rename to ...
12988 (resume_1): ... this.
12989 (resume): Reimplement as wrapper around resume_1.
12991 2018-01-11 Pedro Alves <palves@redhat.com>
12994 * remote.c (remote_parse_stop_reply): Default to the last-set
12995 general thread instead of to 'magic_null_ptid'.
12997 2018-01-10 Pedro Alves <palves@redhat.com>
12999 * language.h (language_get_symbol_name_matcher): Rename ...
13000 (get_symbol_name_matcher): ... this.
13001 * language.c (language_get_symbol_name_matcher): Ditto.
13002 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13005 2018-01-10 Pedro Alves <palves@redhat.com>
13009 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13010 Adjust to use language_get_symbol_name_matcher instead of
13011 language_defn::la_get_symbol_name_matcher.
13012 * language.c (language_get_symbol_name_matcher): If in Ada mode
13013 and the lookup name is a verbatim match, return Ada's matcher.
13014 * language.h (language_get_symbol_name_matcher): Adjust comment.
13015 (ada_lookup_name_info::verbatim_p):: New method.
13017 2018-01-10 Pedro Alves <palves@redhat.com>
13020 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13021 minsym's language is language_auto or language_cplus, pass down
13022 language_ada instead.
13023 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13025 2018-01-10 Pedro Alves <palves@redhat.com>
13028 * minsyms.c (linkage_name_str): New function.
13029 (iterate_over_minimal_symbols): Use it.
13031 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13033 * NEWS: Document that 'info proc' now works on FreeBSD.
13035 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13037 * configure.ac: Check for kinfo_getfile in libutil.
13038 * configure: Regenerate.
13039 * config.in: Regenerate.
13040 * fbsd-nat.c: Include "fbsd-tdep.h".
13041 (fbsd_fetch_cmdline): New.
13042 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13043 rather than calling error.
13044 (fbsd_info_proc): New.
13045 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13046 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13047 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13049 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13051 * fbsd-nat.c (struct free_deleter): Remove.
13052 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13054 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13056 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13057 NULL for an empty pathname.
13059 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13061 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13062 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13063 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13064 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13065 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13066 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13067 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13068 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13069 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13070 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13071 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13072 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13073 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13074 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13075 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13077 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13079 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13080 (gnu_xfer_auxv): New function.
13081 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13082 TARGET_OBJECT_AUXV.
13084 2018-01-08 Yao Qi <yao.qi@linaro.org>
13085 Simon Marchi <simon.marchi@ericsson.com>
13087 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13089 (COMMON_OBS): Remove selftest.o.
13090 * configure.ac: Append selftest-arch.c and common/selftest.c to
13091 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13092 * configure: Re-generated.
13093 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13095 (maintenance_info_selftests): Likewise.
13097 2018-01-08 Xavier Roirand <roirand@adacore.com>
13099 * ada-valprint.c (val_print_packed_array_elements): Use
13100 proper number of elements when printing an array indexed
13101 by an enumeration type.
13103 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13105 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13106 (dw2_get_file_names_reader): Adjust.
13107 (lookup_dwo_signatured_type): Adjust.
13108 (lookup_dwp_signatured_type): Adjust.
13109 (lookup_signatured_type): Adjust.
13110 (create_type_unit_group): Adjust.
13111 (get_type_unit_group): Adjust.
13112 (process_psymtab_comp_unit_reader): Adjust.
13113 (build_type_psymtabs_reader): Adjust.
13114 (scan_partial_symbols): Adjust.
13115 (add_partial_symbol): Adjust.
13116 (add_partial_subprogram): Adjust.
13117 (peek_die_abbrev): Adjust.
13118 (fixup_go_packaging): Adjust.
13119 (process_imported_unit_die): Adjust.
13120 (dwarf2_compute_name): Adjust.
13121 (dwarf2_physname): Adjust.
13122 (read_import_statement): Adjust.
13123 (handle_DW_AT_stmt_list): Adjust.
13124 (read_file_scope): Adjust.
13125 (read_func_scope): Adjust.
13126 (read_lexical_block_scope): Adjust.
13127 (read_call_site_scope): Adjust.
13128 (read_variable): Adjust.
13129 (dwarf2_rnglists_process): Adjust.
13130 (dwarf2_ranges_process): Adjust.
13131 (dwarf2_ranges_read): Adjust.
13132 (dwarf2_get_pc_bounds): Adjust.
13133 (dwarf2_record_block_ranges): Adjust.
13134 (dwarf2_add_field): Adjust.
13135 (dwarf2_add_member_fn): Adjust.
13136 (read_structure_type): Adjust.
13137 (process_structure_scope): Adjust.
13138 (read_enumeration_type): Adjust.
13139 (read_array_type): Adjust.
13140 (mark_common_block_symbol_computed): Adjust.
13141 (read_common_block): Adjust.
13142 (read_namespace_type): Adjust.
13143 (read_namespace): Adjust.
13144 (read_module_type): Adjust.
13145 (read_tag_pointer_type): Adjust.
13146 (read_tag_ptr_to_member_type): Adjust.
13147 (read_tag_string_type): Adjust.
13148 (read_subroutine_type): Adjust.
13149 (read_typedef): Adjust.
13150 (read_base_type): Adjust.
13151 (attr_to_dynamic_prop): Adjust.
13152 (read_subrange_type): Adjust.
13153 (read_unspecified_type): Adjust.
13154 (dwarf2_read_abbrevs): Adjust.
13155 (load_partial_dies): Adjust.
13156 (read_partial_die): Adjust.
13157 (find_partial_die): Adjust.
13158 (guess_partial_die_structure_name): Adjust.
13159 (fixup_partial_die): Adjust.
13160 (read_attribute_value): Adjust.
13161 (read_addr_index): Adjust.
13162 (read_addr_index_from_leb128): Adjust.
13163 (read_str_index): Adjust.
13164 (dwarf2_string_attr): Adjust.
13165 (get_debug_line_section): Adjust.
13166 (dwarf_decode_line_header): Adjust.
13167 (lnp_state_machine::check_line_address): Adjust.
13168 (dwarf_decode_lines_1): Adjust.
13169 (dwarf_decode_lines): Adjust.
13170 (dwarf2_start_symtab): Adjust.
13171 (var_decode_location): Adjust.
13172 (new_symbol_full): Adjust.
13173 (dwarf2_const_value_data): Adjust.
13174 (dwarf2_const_value_attr): Adjust.
13175 (dwarf2_const_value): Adjust.
13176 (die_type): Adjust.
13177 (die_containing_type): Adjust.
13178 (build_error_marker_type): Adjust.
13179 (lookup_die_type): Adjust.
13180 (guess_full_die_structure_name): Adjust.
13181 (anonymous_struct_prefix): Adjust.
13182 (determine_prefix): Adjust.
13183 (dwarf2_name): Adjust.
13184 (follow_die_ref_or_sig): Adjust.
13185 (follow_die_offset): Adjust.
13186 (follow_die_ref): Adjust.
13187 (follow_die_sig_1): Adjust.
13188 (follow_die_sig): Adjust.
13189 (get_signatured_type): Adjust.
13190 (get_DW_AT_signature_type): Adjust.
13191 (decode_locdesc): Adjust.
13192 (dwarf_decode_macros): Adjust.
13193 (cu_debug_loc_section): Adjust.
13194 (fill_in_loclist_baton): Adjust.
13195 (dwarf2_symbol_mark_computed): Adjust.
13196 (init_one_comp_unit): Don't assign
13197 dwarf2_cu::dwarf2_per_objfile.
13198 (set_die_type): Adjust.
13200 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13202 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13203 <dwarf2_per_objfile>: New field.
13204 (dwarf2_per_objfile): Remove global.
13205 (get_dwarf2_per_objfile): New function.
13206 (set_dwarf2_per_objfile): New function.
13207 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13208 dwarf2_per_objfile.
13209 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13210 (read_abbrev_offset): Likewise.
13211 (read_indirect_string): Likewise.
13212 (read_indirect_line_string): Likewise.
13213 (read_indirect_string_at_offset): Likewise.
13214 (read_indirect_string_from_dwz): Likewise.
13215 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13216 dwarf2_per_objfile.
13217 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13218 (create_all_comp_units): Change objfile parameter to
13219 dwarf2_per_objfile.
13220 (create_all_type_units): Likewise.
13221 (process_queue): Add dwarf2_per_objfile parameter.
13222 (read_and_check_comp_unit_head): Likewise.
13223 (lookup_dwo_unit_in_dwp): Likewise.
13224 (get_dwp_file): Likewise.
13225 (process_cu_includes): Likewise.
13226 (struct free_dwo_file_cleanup_data): New struct.
13227 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13228 set_dwarf2_per_objfile.
13229 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13230 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13231 context, adjust calls.
13232 (dw2_instantiate_symtab): Likewise.
13233 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13234 (dw2_get_cu): Likewise.
13235 (create_cu_from_index_list): Change objfile parameter to
13236 dwarf2_per_objfile.
13237 (create_cus_from_index_list): Get dwarf2_per_objfile from
13238 context, adjust calls.
13239 (create_cus_from_index): Likewise.
13240 (create_signatured_type_table_from_index): Change objfile
13241 parameter to dwarf2_per_objfile.
13242 (create_signatured_type_table_from_debug_names): Change objfile
13243 parameter to dwarf2_per_objfile.
13244 (create_addrmap_from_index): Likewise.
13245 (create_addrmap_from_aranges): Likewise.
13246 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13247 (dw2_setup): Remove.
13248 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13250 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13251 get_dwarf2_per_objfile.
13252 (dw2_forget_cached_source_info): Likewise.
13253 (dw2_map_symtabs_matching_filename): Likewise.
13254 (struct dw2_symtab_iterator) <index>: Remove.
13255 <dwarf2_per_objfile>: New field.
13256 (dw2_symtab_iter_init): Replace index parameter with
13257 dwarf2_per_objfile.
13258 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13259 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13260 (dw2_print_stats): Likewise.
13261 (dw2_dump): Likewise.
13262 (dw2_expand_symtabs_for_function): Likewise.
13263 (dw2_expand_all_symtabs): Likewise.
13264 (dw2_expand_symtabs_with_fullname): Likewise.
13265 (dw2_expand_marked_cus): Replace index and objfile parameters
13266 with dwarf2_per_objfile.
13267 (dw_expand_symtabs_matching_file_matcher): Add
13268 dwarf2_per_objfile parameter and adjust calls.
13269 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13271 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13272 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13274 (create_cus_from_debug_names_list): Replace objfile parameter
13275 with dwarf2_per_objfile and adjust calls.
13276 (create_cus_from_debug_names): Likewise.
13277 (dwarf2_read_debug_names): Likewise.
13278 (mapped_debug_names::namei_to_name): Adjust call.
13279 (dw2_debug_names_iterator::next): Likewise.
13280 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13281 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13282 (dw2_debug_names_dump): Likewise.
13283 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13284 (dw2_debug_names_expand_symtabs_matching): Likewise.
13285 (dwarf2_initialize_objfile): Likewise.
13286 (dwarf2_build_psymtabs): Likewise.
13287 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13289 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13290 (read_and_check_comp_unit_head): Likewise.
13291 (read_abbrev_offset): Likewise.
13292 (create_debug_type_hash_table): Likewise.
13293 (create_debug_types_hash_table): Likewise.
13294 (create_all_type_units): Replace objfile parameter with
13295 dwarf2_per_objfile.
13296 (add_type_unit): Add dwarf2_per_objfile parameter.
13297 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13298 with dwarf2_per_objfile.
13299 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13300 (lookup_dwp_signatured_type): Likewise.
13301 (lookup_signatured_type): Likewise.
13302 (read_cutu_die_from_dwo): Likewise.
13303 (init_tu_and_read_dwo_dies): Likewise.
13304 (init_cutu_and_read_dies): Likewise.
13305 (init_cutu_and_read_dies_no_follow): Likewise.
13306 (allocate_type_unit_groups_table): Add objfile parameter.
13307 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13308 (get_type_unit_group): Likewise.
13309 (process_psymtab_comp_unit): Update call.
13310 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13311 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13312 (print_tu_stats): Likewise.
13313 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13314 in void* parameter.
13315 (build_type_psymtabs): Change objfile parameter to
13316 dwarf2_per_objfile.
13317 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13318 passed in void* parameter.
13319 (process_skeletonless_type_units): Change objfile parameter to
13320 dwarf2_per_objfile.
13321 (set_partial_user): Likewise.
13322 (dwarf2_build_psymtabs_hard): Likewise.
13323 (read_comp_units_from_section): Likewise.
13324 (create_all_comp_units): Likewise.
13325 (scan_partial_symbols): Update calls.
13326 (add_partial_symbol): Likewise.
13327 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13328 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13329 (process_queue): Add dwarf2_per_objfile parameter.
13330 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13331 (compute_compunit_symtab_includes): Likewise.
13332 (process_cu_includes): Add dwarf2_per_objfile parameter.
13333 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13334 (process_full_type_unit): Likewise.
13335 (process_imported_unit_die): Update call.
13336 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13337 (read_file_scope): Likewise.
13338 (allocate_dwo_file_hash_table): Add objfile parameter.
13339 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13340 (create_cus_hash_table): Likewise.
13341 (create_dwp_hash_table): Likewise.
13342 (create_dwo_unit_in_dwp_v1): Likewise.
13343 (create_dwp_v2_section): Likewise.
13344 (create_dwo_unit_in_dwp_v2): Likewise.
13345 (lookup_dwo_unit_in_dwp): Likewise.
13346 (try_open_dwop_file): Likewise.
13347 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13348 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13349 cleanup to include a reference to dwarf2_per_objfile.
13350 (open_dwp_file): Add dwarf2_per_objfile parameter.
13351 (open_and_init_dwp_file): Likewise.
13352 (get_dwp_file): Likewise.
13353 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13354 (queue_and_load_all_dwo_tus): Update call.
13355 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13357 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13358 (dwarf2_ranges_process): Likewise.
13359 (dwarf2_get_pc_bounds): Likewise.
13360 (mark_common_block_symbol_computed): Likewise.
13361 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13362 (dwarf2_read_abbrevs): Update call.
13363 (read_partial_die): Use dwarf2_per_objfile from cu.
13364 (find_partial_die): Likewise.
13365 (fixup_partial_die): Likewise.
13366 (read_attribute_value): Likewise.
13367 (read_indirect_string_at_offset_from): Add objfile parameter.
13368 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13370 (read_indirect_string_from_dwz): Add objfile parameter.
13371 (read_indirect_string): Add objfile parameter.
13372 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13373 (read_addr_index): Use dwarf2_per_objfile from cu.
13374 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13376 (read_str_index): Use dwarf2_per_objfile from cu.
13377 (get_debug_line_section): Likewise.
13378 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13379 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13380 (new_symbol_full): Use dwarf2_per_objfile from cu.
13381 (build_error_marker_type): Likewise.
13382 (lookup_die_type): Likewise.
13383 (determine_prefix): Likewise.
13384 (follow_die_offset): Likewise.
13385 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13386 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13387 (dwarf2_fetch_die_type_sect_off): Likewise.
13388 (dwarf2_get_die_type): Likewise.
13389 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13390 (get_signatured_type): Likewise.
13391 (get_DW_AT_signature_type): Likewise.
13392 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13393 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13394 (cu_debug_loc_section): Likewise.
13395 (fill_in_loclist_baton): Likewise.
13396 (dwarf2_symbol_mark_computed): Likewise.
13397 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13398 dwarf2_per_objfile.
13399 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13401 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13402 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13403 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13404 (set_die_type): Use dwarf2_free_objfile from cu.
13405 (get_die_type_at_offset): Likewise.
13406 (dwarf2_per_objfile_free): Don't assign global variable.
13407 (debug_names) <constructor>: Add dwarf2_per_objfile
13408 parameter, update m_debugstrlookup construction.
13409 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13411 <m_dwarf2_per_objfile>: New field.
13412 <lookup>: Use m_dwarf2_per_objfile.
13413 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13414 (psyms_seen_size): Likewise.
13415 (write_gdbindex): Replace objfile parameter with
13416 dwarf2_per_objfile.
13417 (write_debug_names): Likewise.
13418 (write_psymtabs_to_index): Likewise.
13419 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13422 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13424 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13425 <dwarf2_per_objfile>: New field.
13426 (struct dwarf2_per_cu_data) <objfile>: Remove.
13427 <dwarf2_per_objfile>: New field.
13428 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13430 (create_signatured_type_table_from_index): Likewise.
13431 (create_debug_type_hash_table): Likewise.
13432 (fill_in_sig_entry_from_dwo_entry): Likewise.
13433 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13434 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13436 (create_partial_symtab): Access objfile through
13437 dwarf2_per_objfile.
13438 (process_psymtab_comp_unit_reader): Likewise.
13439 (read_comp_units_from_section): Likewise.
13440 (scan_partial_symbols): Likewise.
13441 (add_partial_symbol): Likewise.
13442 (add_partial_subprogram): Likewise.
13443 (peek_die_abbrev): Likewise.
13444 (fixup_go_packaging): Likewise.
13445 (process_full_comp_unit): Likewise.
13446 (process_full_type_unit): Likewise.
13447 (process_imported_unit_die): Likewise.
13448 (dwarf2_compute_name): Likewise.
13449 (dwarf2_physname): Likewise.
13450 (read_import_statement): Likewise.
13451 (create_cus_hash_table): Assign dwarf2_physname instead of
13453 (read_func_scope): Access objfile through dwarf2_per_objfile.
13454 (read_lexical_block_scope): Likewise.
13455 (read_call_site_scope): Likewise.
13456 (read_variable): Likewise.
13457 (dwarf2_rnglists_process): Likewise.
13458 (dwarf2_ranges_process): Likewise.
13459 (dwarf2_ranges_read): Likewise.
13460 (dwarf2_record_block_ranges): Likewise.
13461 (dwarf2_add_field): Likewise.
13462 (dwarf2_add_member_fn): Likewise.
13463 (read_structure_type): Likewise.
13464 (process_structure_scope): Likewise.
13465 (read_enumeration_type): Likewise.
13466 (read_array_type): Likewise.
13467 (read_common_block): Likewise.
13468 (read_namespace_type): Likewise.
13469 (read_namespace): Likewise.
13470 (read_module_type): Likewise.
13471 (read_tag_pointer_type): Likewise.
13472 (read_tag_ptr_to_member_type): Likewise.
13473 (read_tag_string_type): Likewise.
13474 (read_subroutine_type): Likewise.
13475 (read_typedef): Likewise.
13476 (read_base_type): Likewise.
13477 (attr_to_dynamic_prop): Likewise.
13478 (read_subrange_type): Likewise.
13479 (read_unspecified_type): Likewise.
13480 (load_partial_dies): Likewise.
13481 (read_partial_die): Likewise.
13482 (find_partial_die): Likewise.
13483 (guess_partial_die_structure_name): Likewise.
13484 (fixup_partial_die): Likewise.
13485 (read_attribute_value): Likewise.
13486 (read_addr_index_from_leb128): Likewise.
13487 (dwarf2_read_addr_index): Likewise.
13488 (dwarf2_string_attr): Likewise.
13489 (lnp_state_machine::check_line_address): Likewise.
13490 (dwarf_decode_lines_1): Likewise.
13491 (dwarf_decode_lines): Likewise.
13492 (dwarf2_start_symtab): Likewise.
13493 (var_decode_location): Likewise.
13494 (new_symbol_full): Likewise.
13495 (dwarf2_const_value_data): Likewise.
13496 (dwarf2_const_value_attr): Likewise.
13497 (dwarf2_const_value): Likewise.
13498 (die_type): Likewise.
13499 (die_containing_type): Likewise.
13500 (lookup_die_type): Likewise.
13501 (guess_full_die_structure_name): Likewise.
13502 (anonymous_struct_prefix): Likewise.
13503 (dwarf2_name): Likewise.
13504 (follow_die_ref_or_sig): Likewise.
13505 (follow_die_offset): Likewise.
13506 (follow_die_ref): Likewise.
13507 (dwarf2_fetch_die_loc_sect_off): Likewise.
13508 (dwarf2_fetch_constant_bytes): Likewise.
13509 (dwarf2_fetch_die_type_sect_off): Likewise.
13510 (dwarf2_get_die_type): Likewise.
13511 (follow_die_sig): Likewise.
13512 (decode_locdesc): Likewise.
13513 (dwarf2_per_cu_objfile): Likewise.
13514 (dwarf2_per_cu_text_offset): Likewise.
13515 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13517 (set_die_type): Access objfile through
13518 dwarf2_per_objfile.
13520 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13522 * valprint.c (converted_character_d): Remove typedef.
13523 (DEF_VEC_O (converted_character_d)): Remove.
13524 (count_next_character): Use std::vector.
13525 (print_converted_chars_to_obstack): Likewise.
13526 (generic_printstr): Likewise.
13528 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13530 * xml-support.h (struct gdb_xml_value): Add constructor.
13531 <value>: Change type to unique_xmalloc_ptr.
13532 (gdb_xml_value_s): Remove typedef.
13533 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13534 (gdb_xml_element_start_handler): Change parameter type to
13536 (xml_find_attribute): Likewise.
13537 * xml-support.c (xml_find_attribute): Change parameter type to
13538 std::vector and adjust.
13539 (gdb_xml_values_cleanup): Remove.
13540 (gdb_xml_parser::start_element): Adjust to std::vector.
13541 (xinclude_start_include): Change paraeter type to std::vector
13543 * btrace.c (check_xml_btrace_version): Likewise.
13544 (parse_xml_btrace_block): Likewise.
13545 (parse_xml_btrace_pt_config_cpu): Likewise.
13546 (parse_xml_btrace_pt): Likewise.
13547 (parse_xml_btrace_conf_bts): Likewise.
13548 (parse_xml_btrace_conf_pt): Likewise.
13549 * memory-map.c (memory_map_start_memory): Likewise.
13550 (memory_map_start_property): Likewise.
13551 * osdata.c (osdata_start_osdata): Likewise.
13552 (osdata_start_item): Likewise.
13553 (osdata_start_column): Likewise.
13554 * remote.c (start_thread): Likewise.
13555 * solib-aix.c (library_list_start_library): Likewise.
13556 (library_list_start_list): Likewise.
13557 * solib-svr4.c (library_list_start_library): Likewise.
13558 (svr4_library_list_start_list): Likewise.
13559 * solib-target.c (library_list_start_segment): Likewise.
13560 (library_list_start_section): Likewise.
13561 (library_list_start_library): Likewise.
13562 (library_list_start_list): Likewise.
13563 * tracepoint.c (traceframe_info_start_memory): Likewise.
13564 (traceframe_info_start_tvar): Likewise.
13565 * xml-syscall.c (syscall_start_syscall): Likewise.
13566 * xml-tdesc.c (tdesc_start_target): Likewise.
13567 (tdesc_start_feature): Likewise.
13568 (tdesc_start_reg): Likewise.
13569 (tdesc_start_union): Likewise.
13570 (tdesc_start_struct): Likewise.
13571 (tdesc_start_flags): Likewise.
13572 (tdesc_start_enum): Likewise.
13573 (tdesc_start_field): Likewise.
13574 (tdesc_start_enum_value): Likewise.
13575 (tdesc_start_vector): Likewise.
13577 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13579 * extension.h (struct xmethod_worker) <clone>: Remove.
13580 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13582 (python_xmethod_worker::clone): Remove.
13583 * valops.c (find_overload_match): Use std::move instead of
13586 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13588 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13589 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13590 <free_xmethod_worker_data>: Remove.
13591 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13592 <get_xmethod_arg_types>: Remove.
13593 <get_xmethod_result_type>: Remove.
13594 <invoke_xmethod>: Remove.
13595 * extension.c (new_xmethod_worker): Remove.
13596 (clone_xmethod_worker): Remove.
13597 (get_matching_xmethod_workers): Return void, pass std::vector by
13599 (get_xmethod_arg_types): Rename to...
13600 (xmethod_worker::get_arg_types): ... this, and adjust.
13601 (get_xmethod_result_type): Rename to...
13602 (xmethod_worker::get_result_type): ... this, and adjust.
13603 (invoke_xmethod): Remove.
13604 (free_xmethod_worker): Remove.
13605 (free_xmethod_worker_vec): Remove.
13606 * extension.h (enum ext_lang_rc): Move here from
13608 (struct xmethod_worker): Add constructor and destructor.
13611 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13612 virtual pure methods.
13613 <get_arg_types, get_result_type>: New methods.
13614 (xmethod_worker_ptr): Remove typedef.
13615 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13616 (xmethod_worker_vec): Remove typedef.
13617 (xmethod_worker_up): New typedef.
13618 (invoke_xmethod): Remove.
13619 (clone_xmethod_worker): Remove.
13620 (free_xmethod_worker): Remove.
13621 (free_xmethod_worker_vec): Remove.
13622 (get_xmethod_arg_types): Remove.
13623 (get_xmethod_result_type): Remove.
13624 * valops.c (find_method_list): Use std::vector, don't use
13625 intermediate vector.
13626 (value_find_oload_method_list): Use std::vector.
13627 (find_overload_match): Use std::vector.
13628 (find_oload_champ): Use std::vector.
13629 * value.c (value_free): Use operator delete.
13630 (value_of_xmethod): Rename to...
13631 (value_from_xmethod): ... this. Don't assign
13632 xmethod_worker::value, take rvalue-reference.
13633 (result_type_of_xmethod): Adjust.
13634 (call_xmethod): Adjust.
13635 * value.h: Include extension.h.
13636 (struct xmethod_worker): Don't forward-declare.
13637 (value_of_xmethod): Rename to...
13638 (value_from_xmethod): ... this, take rvalue-reference.
13639 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13640 (struct python_xmethod_worker): ... this, add constructor and
13642 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13643 (gdbpy_free_xmethod_worker_data): Rename to...
13644 (python_xmethod_worker::~python_xmethod_worker): ... this and
13646 (gdbpy_clone_xmethod_worker_data): Rename to...
13647 (python_xmethod_worker::clone): ... this and adjust.
13648 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13650 (gdbpy_get_xmethod_arg_types): Rename to...
13651 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13652 (gdbpy_get_xmethod_result_type): Rename to...
13653 (python_xmethod_worker::do_get_result_type): ... this and
13655 (gdbpy_invoke_xmethod): Rename to...
13656 (python_xmethod_worker::invoke): ... this and adjust.
13657 (new_python_xmethod_worker): Rename to...
13658 (python_xmethod_worker::python_xmethod_worker): ... this and
13660 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13662 (gdbpy_free_xmethod_worker_data): Remove.
13663 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13664 (gdbpy_get_xmethod_arg_types): Remove.
13665 (gdbpy_get_xmethod_result_type): Remove.
13666 (gdbpy_invoke_xmethod): Remove.
13667 * python/python.c (python_extension_ops): Remove obsolete
13670 2018-01-05 Pedro Alves <palves@redhat.com>
13673 * common/signals-state-save-restore.c
13674 (save_original_signals_state): New parameter 'quiet'. Warn if we
13675 find a custom handler preinstalled, instead of internal erroring.
13676 But only warn if !quiet.
13677 * common/signals-state-save-restore.h
13678 (save_original_signals_state): New parameter 'quiet'.
13679 * main.c (captured_main_1): Move save_original_signals_state call
13680 after option handling, and pass QUIET.
13682 2018-01-05 Pedro Alves <palves@redhat.com>
13684 * spu-tdep.c (spu_catch_start): Pass
13685 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13687 2018-01-05 Pedro Alves <palves@redhat.com>
13690 * ada-lang.c (literal_symbol_name_matcher): New function.
13691 (ada_get_symbol_name_matcher): Use it for
13692 symbol_name_match_type::SEARCH_NAME.
13693 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13694 it down instead of assuming symbol_name_match_type::FULL.
13695 * block.h (block_lookup_symbol): New parameter 'match_type'.
13696 * c-valprint.c (print_unpacked_pointer): Use
13697 lookup_symbol_search_name instead of lookup_symbol.
13698 * compile/compile-object-load.c (get_out_value_type): Pass down
13699 symbol_name_match_type::SEARCH_NAME.
13700 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13701 symbol_name_match_type::FULL.
13702 * cp-support.c (cp_get_symbol_name_matcher): Handle
13703 symbol_name_match_type::SEARCH_NAME.
13704 * infrun.c (insert_exception_resume_breakpoint): Use
13705 lookup_symbol_search_name.
13706 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13707 * psymtab.c (maintenance_check_psymtabs): Use
13708 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13709 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13710 SYMBOL_SEARCH_NAME.
13711 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13712 if symbol_name_match_type::SEARCH_NAME.
13713 (lookup_symbol_in_language): Pass down
13714 symbol_name_match_type::FULL.
13715 (lookup_symbol_search_name): New.
13716 (lookup_language_this): Pass down
13717 symbol_name_match_type::SEARCH_NAME.
13718 (lookup_symbol_aux, lookup_local_symbol): New parameter
13719 'match_type'. Pass it down.
13720 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13721 (lookup_symbol_search_name): New declaration.
13722 (lookup_symbol_in_block): New 'match_type' parameter.
13724 2018-01-05 Pedro Alves <palves@redhat.com>
13727 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13729 (ada_lookup_symbol): Reimplement in terms of
13730 ada_lookup_symbol_list, bits factored out from
13731 ada_lookup_encoded_symbol.
13733 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13735 * ada-exp.y (write_object_renaming): When subscripting an array
13736 using a symbol as the index, pass the block in call to
13737 ada_lookup_encoded_symbol when looking that symbol up.
13739 2018-01-05 Jerome Guitton <guitton@adacore.com>
13741 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13744 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13746 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13747 the case where VALUE_LVAL (val0) is not lval_memory.
13749 2018-01-05 Xavier Roirand <roirand@adacore.com>
13751 * ada-valprint.c (print_optional_low_bound): Handle
13752 character-indexed array printing like boolean-indexed array
13755 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13757 * NEWS: Create a new section for the next release branch.
13758 Rename the section of the current branch, now that it has
13761 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13763 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13764 * version.in: Bump version to 8.1.50.DATE-git.
13766 2018-01-03 Xavier Roirand <roirand@adacore.com>
13768 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13770 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13772 (default_exception_support_info) <catch_handlers_sym>: Add field.
13773 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13774 (ada_exception_name_addr_1): Add "catch handlers" handling.
13775 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13776 Update all callers.
13777 (create_excep_cond_exprs) <ex>: Add parameter.
13778 (re_set_exception): Update create_excep_cond_exprs call.
13779 (print_it_exception, print_one_exception, print_mention_exception)
13780 (print_recreate_exception): Add "catch handler" handling.
13781 (allocate_location_catch_handlers, re_set_catch_handlers)
13782 (check_status_catch_handlers, print_it_catch_handlers)
13783 (print_one_catch_handlers, print_mention_catch_handlers)
13784 (print_recreate_catch_handlers): New function.
13785 (catch_handlers_breakpoint_ops): New variable.
13786 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13787 Add parameter. Add "catch handler" handling.
13788 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13789 Add "catch handler" handling.
13790 (ada_exception_catchpoint_cond_string): Add "catch handler"
13792 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13794 (catch_ada_handlers_command): New function.
13795 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13796 operations structure.
13797 (_initialize_ada_language): Add "catch handlers" command entry.
13798 * NEWS: Document "catch handlers" feature.
13800 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13802 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13803 account when creating the array type of the slice.
13804 (ada_value_slice): Likewise.
13806 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13808 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13810 (create_array_type_with_stride): Add byte_stride_prop parameter.
13811 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13812 New parameter. Update all callers in this file.
13813 (array_type_has_dynamic_stride): New function.
13814 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13815 of arrays with dynamic byte strides.
13816 * dwarf2read.c (read_array_type): Add support for dynamic
13817 DW_AT_byte_stride attributes.
13819 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13821 * dwarf2read.c (read_unspecified_type): Treat
13822 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13824 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13826 Update copyright year range in all GDB files.
13828 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13830 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13831 and gdb/testsuite/gdb.base/step-line.c.
13833 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13835 * copyright.py (main): Dump the contents of
13836 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13837 even if BY_HAND is empty.
13839 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13841 * top.c (print_gdb_version): Update Copyright year in version
13844 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13846 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
13848 For older changes see ChangeLog-2017.
13854 version-control: never