1 2018-09-18 Tom Tromey <tom@tromey.com>
3 * compile/compile-object-load.c (struct
4 link_hash_table_cleanup_data): Add constructor and destructor.
5 Use DISABLE_COPY_AND_ASSIGN.
6 (~link_hash_table_cleanup_data): Rename from
7 link_hash_table_free. Now a destructor.
8 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
10 2018-09-18 Tom Tromey <tom@tromey.com>
12 * compile/compile-object-run.c (do_module_cleanup): Use delete.
13 * compile/compile-object-load.c (struct munmap_list): Move to
15 (munmap_list::add): Rename from munmap_list_add; rewrite.
16 (munmap_list::~munmap_list): Rename from munmap_list_free.
17 (munmap_listp_free_cleanup): Remove.
18 (compile_object_load): Update.
19 * compile/compile-object-load.h (struct munmap_list): Move from
20 compile-object-load.c. Rewrite.
22 2018-09-18 Alan Hayward <alan.hayward@arm.com>
24 * aarch64-tdep.c (pass_in_v): Use register size.
25 (aarch64_extract_return_value): Likewise.
26 (aarch64_store_return_value): Likewise.
28 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
33 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
35 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
38 2018-09-17 Tom Tromey <tom@tromey.com>
42 * configure.ac: Conditionally use -DNDEBUG for Python.
44 2018-09-17 Tom Tromey <tom@tromey.com>
47 * configure.ac: Use gmp as a library dependency when checking for
50 2018-09-17 Pedro Alves <palves@redhat.com>
52 * python/py-inferior.c (find_inferior_object): Delete.
54 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
56 * compile/compile-cplus-types.c
57 (compile_cplus_instance::enter_scope): Don't use new_scope after
60 2018-09-17 Tom Tromey <tom@tromey.com>
62 * common/pathstuff.c (get_standard_cache_dir): Use
63 ~/Library/Caches on macOS.
64 * common/pathstuff.h (get_standard_cache_dir): Update comment.
66 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
69 * breakpoint.c (commands_cmd_element): New.
70 (_initialize_breakpoint): Assign commands_cmd_element.
71 * breakpoint.h (commands_cmd_element): New.
72 * cli/cli-script.c (while_cmd_element, if_command,
73 define_cmd_element): New.
74 (command_name_equals): Remove.
75 (process_next_line): Compare commands by pointer, not by name.
76 (_initialize_cli_script): Assign the various cmd_list_element
78 * compile/compile.c (compile_cmd_element): New.
79 (_initialize_compile): Assign compile_cmd_element.
80 * compile/compile.h (compile_cmd_element): New.
81 * guile/guile.c (guile_cmd_element): New.
82 (install_gdb_commands): Assign guile_cmd_element.
83 * guile/guile.h (guile_cmd_element): New.
84 * python/python.c (python_cmd_element): New.
85 (_initialize_python): Assign python_cmd_element.
86 * python/python.h (python_cmd_element): New.
87 * tracepoint.c (while_stepping_cmd_element): New.
88 (_initialize_tracepoint): Assign while_stepping_cmd_element.
89 * tracepoint.h (while_stepping_cmd_element): New.
91 2018-09-17 Tom Tromey <tom@tromey.com>
93 * infrun.c (save_infcall_suspend_state): Return
94 infcall_suspend_state_up.
95 (save_infcall_control_state): Return infcall_control_state_up.
96 * inferior.h (save_infcall_suspend_state)
97 (save_infcall_control_state): Declare later. Return unique
100 2018-09-17 Tom Tromey <tom@tromey.com>
102 * infrun.c (struct stop_context): Declare constructor,
103 destructor, "changed" method.
104 (stop_context::stop_context): Rename from save_stop_context.
105 (stop_context::~stop_context): Rename from
106 release_stop_context_cleanup.
107 (normal_stop): Update.
108 (stop_context::changed): Rename from stop_context_changed. Return
111 2018-09-17 Tom Tromey <tom@tromey.com>
113 * inferior.h (struct infcall_suspend_state_deleter): New.
114 (infcall_suspend_state_up): New typedef.
115 (struct infcall_control_state_deleter): New.
116 (infcall_control_state_up): New typedef.
117 (make_cleanup_restore_infcall_suspend_state)
118 (make_cleanup_restore_infcall_control_state): Don't declare.
119 * infcall.c (call_function_by_hand_dummy): Update.
120 * infrun.c (do_restore_infcall_suspend_state_cleanup)
121 (make_cleanup_restore_infcall_suspend_state): Remove.
122 (do_restore_infcall_control_state_cleanup)
123 (make_cleanup_restore_infcall_control_state): Remove.
125 2018-09-17 Tom Tromey <tom@tromey.com>
127 * gdbthread.h (struct thread_control_state): Add initializer.
128 (class thread_info) <control>: Remove initializer.
129 * inferior.h (struct inferior_control_state): Add initializer.
130 (class inferior) <control>: Remove initializer.
131 (exit_inferior_1): Update.
132 * infrun.c (struct infcall_control_state): Add constructors.
133 (save_infcall_control_state): Use new.
134 (restore_infcall_control_state, discard_infcall_control_state):
137 2018-09-17 Tom Tromey <tom@tromey.com>
139 * infrun.c (struct infcall_suspend_state) <registers>: Now a
141 <siginfo_data>: Now a unique_xmalloc_ptr.
142 (save_infcall_suspend_state, restore_infcall_suspend_state)
143 (discard_infcall_suspend_state)
144 (get_infcall_suspend_state_regcache): Update.
146 2018-09-17 Tom Tromey <tom@tromey.com>
148 * gdbthread.h (struct thread_suspend_state): Add initializers.
149 (class thread_info) <suspend>: Remove initializer.
150 * infrun.c (struct infcall_suspend_state): Add initializers.
151 (save_infcall_suspend_state): Use new.
152 (discard_infcall_suspend_state): Use delete.
154 2018-09-16 Tom Tromey <tom@tromey.com>
156 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
158 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
159 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
160 (py_varobj_iter_new): Likewise.
161 (py_varobj_get_iterator): Use gdbpy_ref.
163 2018-09-16 Tom Tromey <tom@tromey.com>
165 * python/py-threadevent.c (py_get_event_thread): Simplify.
166 * python/py-inferior.c (infpy_thread_from_thread_handle):
167 Return immediately after calling thread_to_thread_object. Use
169 (thread_to_thread_object): Set the exception on a NULL return.
171 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
173 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
175 2018-09-16 Tom Tromey <tom@tromey.com>
177 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
180 2018-09-16 Tom Tromey <tom@tromey.com>
182 * python/python-internal.h (thread_to_thread_object): Change
184 * python/py-inferior.c (thread_to_thread_object): Return a new
186 (infpy_thread_from_thread_handle): Update.
187 * python/py-infthread.c (gdbpy_selected_thread): Update.
188 * python/py-stopevent.c (create_stop_event_object): Update.
189 * python/py-threadevent.c (py_get_event_thread): Return a new
191 (py_get_event_thread): Update.
192 * python/py-event.h (py_get_event_thread): Change return type.
193 * python/py-continueevent.c (create_continue_event_object):
196 2018-09-16 Tom Tromey <tom@tromey.com>
198 * python/py-progspace.c (pspy_get_objfiles): Update.
199 * python/python-internal.h (objfile_to_objfile_object): Change
201 * python/py-newobjfileevent.c (create_new_objfile_event_object):
203 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
205 * python/python.c (gdbpy_get_current_objfile): Update.
206 (gdbpy_objfiles): Update.
207 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
209 (objfile_to_objfile_object): Return a new reference.
210 * python/py-symtab.c (stpy_get_objfile): Update.
211 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
214 2018-09-16 Tom Tromey <tom@tromey.com>
216 * python/py-inferior.c (infpy_get_progspace): Update.
217 * python/python-internal.h (pspace_to_pspace_object): Change
219 * python/py-newobjfileevent.c
220 (create_clear_objfiles_event_object): Update.
221 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
223 * python/python.c (gdbpy_get_current_progspace): Update.
224 (gdbpy_progspaces): Update.
225 * python/py-progspace.c (pspace_to_pspace_object): Return a new
227 * python/py-objfile.c (objfpy_get_progspace): Update.
228 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
231 2018-09-16 Tom Tromey <tom@tromey.com>
233 * python/lib/gdb/__init__.py (current_progspace, objfiles)
234 (solib_name, block_for_pc, find_pc_line): New functions.
235 (execute_unwinders): Update.
236 * python/py-block.c (gdbpy_block_for_pc): Remove.
237 * python/py-inferior.c (infpy_get_progspace): New function.
238 (inferior_object_getset) <progspace>: Add.
239 * python/py-progspace.c (pspy_objfiles): Rewrite.
240 (pspy_solib_name, pspy_block_for_pc)
241 (pspy_find_pc_line, pspy_is_valid): New functions.
242 (progspace_object_methods): Add entries for solib_name,
243 block_for_pc, find_pc_line, is_valid.
244 * python/python-internal.h (gdbpy_block_for_pc)
245 (build_objfiles_list): Don't declare.
246 * python/python.c: Don't include solib.h.
247 (gdbpy_solib_name, gdbpy_find_pc_line)
248 (gdbpy_get_current_progspace, build_objfiles_list)
249 (gdbpy_objfiles): Remove.
250 (GdbMethods) <current_progspace, objfiles, block_for_pc,
251 solib_name, find_pc_line>: Remove entries.
253 2018-09-16 Tom Tromey <tom@tromey.com>
255 * top.c (new_ui_command): Use GNU style for metasyntactic
257 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
259 * maint.c (maintenance_translate_address): Remove "<>" around
261 * interps.c (interpreter_exec_cmd): Use GNU style for
262 metasyntactic variables.
263 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
264 metasyntactic variables.
265 * tracepoint.c (tfind_range_command): Use GNU style for
266 metasyntactic variables.
267 (tfind_outside_command): Likewise.
268 (_initialize_tracepoint): Likewise.
269 * remote.c (extended_remote_target::create_inferior): Use GNU
270 style for metasyntactic variables.
271 * sparc64-tdep.c (adi_examine_command): Use GNU style for
272 metasyntactic variables.
273 (adi_assign_command): Likewise.
275 2018-09-16 Tom Tromey <tom@tromey.com>
277 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
278 metasyntactic variables. Print message if no disassembler options
281 2018-09-15 Tom Tromey <tom@tromey.com>
283 * infcmd.c (get_inferior_args): Return const char *.
284 * inferior.h (get_inferior_args): Return type now const.
285 * linux-tdep.c (linux_fill_prpsinfo): Update.
286 * procfs.c (procfs_target::make_corefile_notes): Update.
288 2018-09-07 Tom Tromey <tom@tromey.com>
290 * python/python.c (execute_gdb_command): Call bpstat_do_actions
293 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
295 * nios2-tdep.c (nios2_type_align): New.
296 (nios2_gdb_arch_init): Install type_align hook.
298 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
300 * eval.c (fake_method::fake_method): Call xzalloc directly for a
301 type that is neither object file owned, nor gdbarch owned.
302 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
304 (alloc_type_instance): Allocate non-objfile owned types on the
306 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
307 using TYPE_ALLOC to ensure memory is allocated on the correct
309 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
310 obstack, or the gdbarch obstack.
311 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
313 2018-09-14 Tom Tromey <tom@tromey.com>
315 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
318 2018-09-14 Tom Tromey <tom@tromey.com>
320 * nat/fork-inferior.c (get_startup_shell): Remove "static".
322 2018-09-13 Tom Tromey <tom@tromey.com>
324 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
327 2018-09-13 Tom Tromey <tom@tromey.com>
329 * exec.c (try_open_exec_file): Use std::string.
331 2018-09-13 Tom Tromey <tom@tromey.com>
333 * utils.h (gdb_bfd_errmsg): Return std::string.
334 * exec.c (exec_file_attach): Update.
335 * compile/compile-object-load.c (compile_object_load): Update.
336 * utils.c (gdb_bfd_errmsg): Return std::string.
338 2018-09-13 Tom Tromey <tom@tromey.com>
340 * procfs.c (struct procinfo_deleter): New.
341 (procinfo_up): New typedef.
342 (do_destroy_procinfo_cleanup): Remove.
343 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
345 2018-09-13 Tom Tromey <tom@tromey.com>
347 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
349 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
350 2018-09-13 Tom Tromey <tom@tromey.com>
352 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
353 (pspy_get_objfiles): New function.
354 (progspace_object_methods): New.
355 (pspace_object_type): Add tp_methods callback.
356 * python/python-internal.h (build_objfiles_list): New
358 * python/python.c (build_objfiles_list): New function.
359 (gdbpy_objfiles): Implement using build_objfiles_list.
360 * NEWS: Mention the Progspace.objfiles method.
362 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
364 * python/py-inferior.c (infpy_get_progspace): New function.
365 (inferior_object_getset): Add progspace property.
366 * NEWS: Mention the new property.
368 2018-09-13 Tom Tromey <tom@tromey.com>
371 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
373 2018-09-13 Tom Tromey <tom@tromey.com>
376 * rust-lang.c (rust_enum_variant): Now static.
377 (rust_empty_enum_p): New function.
378 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
381 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
383 * python/py-inferior.c (infpy_repr): New.
384 (inferior_object_type): Register infpy_repr.
385 * python/py-objfile.c (objfpy_repr): New.
386 (objfile_object_type): Register objfpy_repr.
388 2018-09-12 John Baldwin <jhb@FreeBSD.org>
390 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
392 2018-09-12 John Baldwin <jhb@FreeBSD.org>
394 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
397 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
399 * common/common-utils.c: Don't include '<sys/stat.h>'.
400 (is_regular_file): Move to...
401 * common/filestuff.c (is_regular_file): ... here.
402 * common/common-utils.h (is_regular_file): Move to...
403 * common/filestuff.h (is_regular_file): ... here.
405 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
407 * skip.c (debug_skip): New variable.
408 (skiplist_entry::do_skip_file_p): Add debug output.
409 (skiplist_entry::do_skip_gfile_p): Likewise.
410 (skiplist_entry::skip_function_p): Likewise.
411 (_initialize_step_skip): Create debug command.
412 * NEWS: Mention set/show debug skip.
414 2018-09-11 Xavier Roirand <roirand@adacore.com>
416 * darwin-nat.c (should_disable_startup_with_shell):
418 (darwin_nat_target::create_inferior): Add call.
420 2018-09-11 Xavier Roirand <roirand@adacore.com>
422 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
423 inf_port, msg_state>: Initialize.
424 (struct darwin_thread_info) <signaled, single_step>: Change
426 (struct darwin_thread_info) <event>: Initialize.
428 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
432 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
435 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
438 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
442 * gnulib/aclocal.m4: Regenerate.
443 * gnulib/config.in: Regenerate.
444 * gnulib/configure: Regenerate.
445 * gnulib/import/Makefile.am: Update.
446 * gnulib/import/Makefile.in: Update.
447 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
448 * gnulib/import/_Noreturn.h: ... this.
449 * gnulib/import/alloca.in.h: Update.
450 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
451 * gnulib/import/arg-nonnull.h: ... this.
452 * gnulib/import/assure.h: Update.
453 * gnulib/import/at-func.c: Update.
454 * gnulib/import/basename-lgpl.c: Update.
455 * gnulib/import/extra/snippet/c++defs.h: Rename to...
456 * gnulib/import/c++defs.h: ... this.
457 * gnulib/import/canonicalize-lgpl.c: Update.
458 * gnulib/import/cdefs.h: Update.
459 * gnulib/import/chdir-long.c: Update.
460 * gnulib/import/chdir-long.h: Update.
461 * gnulib/import/cloexec.c: Update.
462 * gnulib/import/cloexec.h: Update.
463 * gnulib/import/close.c: Update.
464 * gnulib/import/closedir.c: Update.
465 * gnulib/import/config.charset: Update.
466 * gnulib/import/dirent-private.h: Update.
467 * gnulib/import/dirent.in.h: Update.
468 * gnulib/import/dirfd.c: Update.
469 * gnulib/import/dirname-lgpl.c: Update.
470 * gnulib/import/dirname.h: Update.
471 * gnulib/import/dosname.h: Update.
472 * gnulib/import/dup-safer-flag.c: Update.
473 * gnulib/import/dup-safer.c: Update.
474 * gnulib/import/dup.c: Update.
475 * gnulib/import/dup2.c: Update.
476 * gnulib/import/errno.in.h: Update.
477 * gnulib/import/error.c: Update.
478 * gnulib/import/error.h: Update.
479 * gnulib/import/exitfail.c: Update.
480 * gnulib/import/exitfail.h: Update.
481 * gnulib/import/extra/update-copyright: Update.
482 * gnulib/import/fchdir.c: Update.
483 * gnulib/import/fcntl.c: Update.
484 * gnulib/import/fcntl.in.h: Update.
485 * gnulib/import/fd-hook.c: Update.
486 * gnulib/import/fd-hook.h: Update.
487 * gnulib/import/fd-safer-flag.c: Update.
488 * gnulib/import/fd-safer.c: Update.
489 * gnulib/import/fdopendir.c: Update.
490 * gnulib/import/filename.h: Update.
491 * gnulib/import/filenamecat-lgpl.c: Update.
492 * gnulib/import/filenamecat.h: Update.
493 * gnulib/import/flexmember.h: Update.
494 * gnulib/import/float+.h: Update.
495 * gnulib/import/float.c: Update.
496 * gnulib/import/float.in.h: Update.
497 * gnulib/import/fnmatch.c: Update.
498 * gnulib/import/fnmatch.in.h: Update.
499 * gnulib/import/fnmatch_loop.c: Update.
500 * gnulib/import/fpucw.h: Update.
501 * gnulib/import/frexp.c: Update.
502 * gnulib/import/frexpl.c: Update.
503 * gnulib/import/fstat.c: Update.
504 * gnulib/import/fstatat.c: Update.
505 * gnulib/import/getcwd-lgpl.c: Update.
506 * gnulib/import/getcwd.c: Update.
507 * gnulib/import/getdtablesize.c: Update.
508 * gnulib/import/getlogin_r.c: Update.
509 * gnulib/import/getprogname.c: Update.
510 * gnulib/import/getprogname.h: Update.
511 * gnulib/import/gettext.h: Update.
512 * gnulib/import/gettimeofday.c: Update.
513 * gnulib/import/glob-libc.h: Update.
514 * gnulib/import/glob.c: Update.
515 * gnulib/import/glob.in.h: Update.
516 * gnulib/import/glob_internal.h: Update.
517 * gnulib/import/glob_pattern_p.c: Update.
518 * gnulib/import/globfree.c: Update.
519 * gnulib/import/hard-locale.c: Update.
520 * gnulib/import/hard-locale.h: Update.
521 * gnulib/import/intprops.h: Update.
522 * gnulib/import/inttypes.in.h: Update.
523 * gnulib/import/isnan.c: Update.
524 * gnulib/import/isnand-nolibm.h: Update.
525 * gnulib/import/isnand.c: Update.
526 * gnulib/import/isnanl-nolibm.h: Update.
527 * gnulib/import/isnanl.c: Update.
528 * gnulib/import/itold.c: Update.
529 * gnulib/import/libc-config.h: Update.
530 * gnulib/import/limits.in.h: Update.
531 * gnulib/import/localcharset.c: Update.
532 * gnulib/import/localcharset.h: Update.
533 * gnulib/import/localtime-buffer.c: Update.
534 * gnulib/import/localtime-buffer.h: Update.
535 * gnulib/import/lstat.c: Update.
536 * gnulib/import/m4/00gnulib.m4: Update.
537 * gnulib/import/m4/__inline.m4: Update.
538 * gnulib/import/m4/absolute-header.m4: Update.
539 * gnulib/import/m4/alloca.m4: Update.
540 * gnulib/import/m4/builtin-expect.m4: Update.
541 * gnulib/import/m4/canonicalize.m4: Update.
542 * gnulib/import/m4/chdir-long.m4: Update.
543 * gnulib/import/m4/close.m4: Update.
544 * gnulib/import/m4/closedir.m4: Update.
545 * gnulib/import/m4/configmake.m4: Update.
546 * gnulib/import/m4/d-ino.m4: Update.
547 * gnulib/import/m4/d-type.m4: Update.
548 * gnulib/import/m4/dirent_h.m4: Update.
549 * gnulib/import/m4/dirfd.m4: Update.
550 * gnulib/import/m4/dirname.m4: Update.
551 * gnulib/import/m4/double-slash-root.m4: Update.
552 * gnulib/import/m4/dup.m4: Update.
553 * gnulib/import/m4/dup2.m4: Update.
554 * gnulib/import/m4/eealloc.m4: Update.
555 * gnulib/import/m4/environ.m4: Update.
556 * gnulib/import/m4/errno_h.m4: Update.
557 * gnulib/import/m4/error.m4: Update.
558 * gnulib/import/m4/exponentd.m4: Update.
559 * gnulib/import/m4/exponentl.m4: Update.
560 * gnulib/import/m4/extensions.m4: Update.
561 * gnulib/import/m4/extern-inline.m4: Update.
562 * gnulib/import/m4/fchdir.m4: Update.
563 * gnulib/import/m4/fcntl-o.m4: Update.
564 * gnulib/import/m4/fcntl.m4: Update.
565 * gnulib/import/m4/fcntl_h.m4: Update.
566 * gnulib/import/m4/fdopendir.m4: Update.
567 * gnulib/import/m4/filenamecat.m4: Update.
568 * gnulib/import/m4/flexmember.m4: Update.
569 * gnulib/import/m4/float_h.m4: Update.
570 * gnulib/import/m4/fnmatch.m4: Update.
571 * gnulib/import/m4/fnmatch_h.m4: Update.
572 * gnulib/import/m4/fpieee.m4: Update.
573 * gnulib/import/m4/frexp.m4: Update.
574 * gnulib/import/m4/frexpl.m4: Update.
575 * gnulib/import/m4/fstat.m4: Update.
576 * gnulib/import/m4/fstatat.m4: Update.
577 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
578 * gnulib/import/m4/getcwd-path-max.m4: Update.
579 * gnulib/import/m4/getcwd.m4: Update.
580 * gnulib/import/m4/getdtablesize.m4: Update.
581 * gnulib/import/m4/getlogin.m4: Update.
582 * gnulib/import/m4/getlogin_r.m4: Update.
583 * gnulib/import/m4/getpagesize.m4: Update.
584 * gnulib/import/m4/getprogname.m4: Update.
585 * gnulib/import/m4/gettimeofday.m4: Update.
586 * gnulib/import/m4/glibc21.m4: Update.
587 * gnulib/import/m4/glob.m4: Update.
588 * gnulib/import/m4/glob_h.m4: Update.
589 * gnulib/import/m4/gnulib-cache.m4: Update.
590 * gnulib/import/m4/gnulib-common.m4: Update.
591 * gnulib/import/m4/gnulib-comp.m4: Update.
592 * gnulib/import/m4/gnulib-tool.m4: Update.
593 * gnulib/import/m4/hard-locale.m4: Update.
594 * gnulib/import/m4/include_next.m4: Update.
595 * gnulib/import/m4/inttypes-pri.m4: Update.
596 * gnulib/import/m4/inttypes.m4: Update.
597 * gnulib/import/m4/isnand.m4: Update.
598 * gnulib/import/m4/isnanl.m4: Update.
599 * gnulib/import/m4/largefile.m4: Update.
600 * gnulib/import/m4/limits-h.m4: Update.
601 * gnulib/import/m4/localcharset.m4: Update.
602 * gnulib/import/m4/locale-fr.m4: Update.
603 * gnulib/import/m4/locale-ja.m4: Update.
604 * gnulib/import/m4/locale-zh.m4: Update.
605 * gnulib/import/m4/localtime-buffer.m4: Update.
606 * gnulib/import/m4/longlong.m4: Update.
607 * gnulib/import/m4/lstat.m4: Update.
608 * gnulib/import/m4/malloc.m4: Update.
609 * gnulib/import/m4/malloca.m4: Update.
610 * gnulib/import/m4/math_h.m4: Update.
611 * gnulib/import/m4/mbrtowc.m4: Update.
612 * gnulib/import/m4/mbsinit.m4: Update.
613 * gnulib/import/m4/mbsrtowcs.m4: Update.
614 * gnulib/import/m4/mbstate_t.m4: Update.
615 * gnulib/import/m4/memchr.m4: Update.
616 * gnulib/import/m4/memmem.m4: Update.
617 * gnulib/import/m4/mempcpy.m4: Update.
618 * gnulib/import/m4/memrchr.m4: Update.
619 * gnulib/import/m4/mkdir.m4: Update.
620 * gnulib/import/m4/mkstemp.m4: Update.
621 * gnulib/import/m4/mmap-anon.m4: Update.
622 * gnulib/import/m4/mode_t.m4: Update.
623 * gnulib/import/m4/msvc-inval.m4: Update.
624 * gnulib/import/m4/msvc-nothrow.m4: Update.
625 * gnulib/import/m4/multiarch.m4: Update.
626 * gnulib/import/m4/nocrash.m4: Update.
627 * gnulib/import/m4/off_t.m4: Update.
628 * gnulib/import/m4/onceonly.m4: Update.
629 * gnulib/import/m4/open-cloexec.m4: Update.
630 * gnulib/import/m4/open.m4: Update.
631 * gnulib/import/m4/openat.m4: Update.
632 * gnulib/import/m4/opendir.m4: Update.
633 * gnulib/import/m4/pathmax.m4: Update.
634 * gnulib/import/m4/rawmemchr.m4: Update.
635 * gnulib/import/m4/readdir.m4: Update.
636 * gnulib/import/m4/readlink.m4: Update.
637 * gnulib/import/m4/realloc.m4: Update.
638 * gnulib/import/m4/rename.m4: Update.
639 * gnulib/import/m4/rewinddir.m4: Update.
640 * gnulib/import/m4/rmdir.m4: Update.
641 * gnulib/import/m4/save-cwd.m4: Update.
642 * gnulib/import/m4/secure_getenv.m4: Update.
643 * gnulib/import/m4/setenv.m4: Update.
644 * gnulib/import/m4/signal_h.m4: Update.
645 * gnulib/import/m4/ssize_t.m4: Update.
646 * gnulib/import/m4/stat-time.m4: Update.
647 * gnulib/import/m4/stat.m4: Update.
648 * gnulib/import/m4/std-gnu11.m4: Update.
649 * gnulib/import/m4/stdbool.m4: Update.
650 * gnulib/import/m4/stddef_h.m4: Update.
651 * gnulib/import/m4/stdint.m4: Update.
652 * gnulib/import/m4/stdio_h.m4: Update.
653 * gnulib/import/m4/stdlib_h.m4: Update.
654 * gnulib/import/m4/strchrnul.m4: Update.
655 * gnulib/import/m4/strdup.m4: Update.
656 * gnulib/import/m4/strerror.m4: Update.
657 * gnulib/import/m4/string_h.m4: Update.
658 * gnulib/import/m4/strstr.m4: Update.
659 * gnulib/import/m4/strtok_r.m4: Update.
660 * gnulib/import/m4/sys_socket_h.m4: Update.
661 * gnulib/import/m4/sys_stat_h.m4: Update.
662 * gnulib/import/m4/sys_time_h.m4: Update.
663 * gnulib/import/m4/sys_types_h.m4: Update.
664 * gnulib/import/m4/tempname.m4: Update.
665 * gnulib/import/m4/time_h.m4: Update.
666 * gnulib/import/m4/unistd-safer.m4: Update.
667 * gnulib/import/m4/unistd_h.m4: Update.
668 * gnulib/import/m4/warn-on-use.m4: Update.
669 * gnulib/import/m4/wchar_h.m4: Update.
670 * gnulib/import/m4/wchar_t.m4: Update.
671 * gnulib/import/m4/wctype_h.m4: Update.
672 * gnulib/import/m4/wint_t.m4: Update.
673 * gnulib/import/malloc.c: Update.
674 * gnulib/import/malloc/scratch_buffer.h: Update.
675 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
676 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
677 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
678 * gnulib/import/malloca.c: Update.
679 * gnulib/import/malloca.h: Update.
680 * gnulib/import/malloca.valgrind: Update.
681 * gnulib/import/math.in.h: Update.
682 * gnulib/import/mbrtowc.c: Update.
683 * gnulib/import/mbsinit.c: Update.
684 * gnulib/import/mbsrtowcs-impl.h: Update.
685 * gnulib/import/mbsrtowcs-state.c: Update.
686 * gnulib/import/mbsrtowcs.c: Update.
687 * gnulib/import/memchr.c: Update.
688 * gnulib/import/memmem.c: Update.
689 * gnulib/import/mempcpy.c: Update.
690 * gnulib/import/memrchr.c: Update.
691 * gnulib/import/mkdir.c: Update.
692 * gnulib/import/mkstemp.c: Update.
693 * gnulib/import/msvc-inval.c: Update.
694 * gnulib/import/msvc-inval.h: Update.
695 * gnulib/import/msvc-nothrow.c: Update.
696 * gnulib/import/msvc-nothrow.h: Update.
697 * gnulib/import/open.c: Update.
698 * gnulib/import/openat-die.c: Update.
699 * gnulib/import/openat-priv.h: Update.
700 * gnulib/import/openat-proc.c: Update.
701 * gnulib/import/openat.c: Update.
702 * gnulib/import/openat.h: Update.
703 * gnulib/import/opendir.c: Update.
704 * gnulib/import/pathmax.h: Update.
705 * gnulib/import/pipe-safer.c: Update.
706 * gnulib/import/rawmemchr.c: Update.
707 * gnulib/import/readdir.c: Update.
708 * gnulib/import/readlink.c: Update.
709 * gnulib/import/realloc.c: Update.
710 * gnulib/import/ref-add.sin: Update.
711 * gnulib/import/ref-del.sin: Update.
712 * gnulib/import/rename.c: Update.
713 * gnulib/import/rewinddir.c: Update.
714 * gnulib/import/rmdir.c: Update.
715 * gnulib/import/same-inode.h: Update.
716 * gnulib/import/save-cwd.c: Update.
717 * gnulib/import/save-cwd.h: Update.
718 * gnulib/import/scratch_buffer.h: Update.
719 * gnulib/import/secure_getenv.c: Update.
720 * gnulib/import/setenv.c: Update.
721 * gnulib/import/signal.in.h: Update.
722 * gnulib/import/stat-time.c: Update.
723 * gnulib/import/stat-time.h: Update.
724 * gnulib/import/stat-w32.c: Update.
725 * gnulib/import/stat-w32.h: Update.
726 * gnulib/import/stat.c: Update.
727 * gnulib/import/stdbool.in.h: Update.
728 * gnulib/import/stddef.in.h: Update.
729 * gnulib/import/stdint.in.h: Update.
730 * gnulib/import/stdio.in.h: Update.
731 * gnulib/import/stdlib.in.h: Update.
732 * gnulib/import/str-two-way.h: Update.
733 * gnulib/import/strchrnul.c: Update.
734 * gnulib/import/strdup.c: Update.
735 * gnulib/import/streq.h: Update.
736 * gnulib/import/strerror-override.c: Update.
737 * gnulib/import/strerror-override.h: Update.
738 * gnulib/import/strerror.c: Update.
739 * gnulib/import/string.in.h: Update.
740 * gnulib/import/stripslash.c: Update.
741 * gnulib/import/strnlen1.c: Update.
742 * gnulib/import/strnlen1.h: Update.
743 * gnulib/import/strstr.c: Update.
744 * gnulib/import/strtok_r.c: Update.
745 * gnulib/import/sys_stat.in.h: Update.
746 * gnulib/import/sys_time.in.h: Update.
747 * gnulib/import/sys_types.in.h: Update.
748 * gnulib/import/tempname.c: Update.
749 * gnulib/import/tempname.h: Update.
750 * gnulib/import/time.in.h: Update.
751 * gnulib/import/unistd--.h: Update.
752 * gnulib/import/unistd-safer.h: Update.
753 * gnulib/import/unistd.in.h: Update.
754 * gnulib/import/unsetenv.c: Update.
755 * gnulib/import/verify.h: Update.
756 * gnulib/import/extra/snippet/warn-on-use.h: Update.
757 * gnulib/import/wchar.in.h: Update.
758 * gnulib/import/wctype.in.h: Update.
759 * gnulib/import/xalloc-oversized.h: Update.
760 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
761 "53e2c179f26a890fa6685af4b6c1397ee370433b".
763 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
765 * record-btrace.c (get_thread_current_frame): Remove
768 2018-09-10 Jerome Guitton <guitton@adacore.com>
770 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
771 with check_tag to 1 if and only if the type is tagged and the
772 component being searched cannot been found in the current
773 view. Otherwise, always call ada_to_fixed_type with
776 2018-09-10 Xavier Roirand <roirand@adacore.com>
778 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
780 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
781 * ada-varobj.c (ada_varobj_get_number_of_children,
782 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
784 2018-09-10 Xavier Roirand <roirand@adacore.com>
786 * ada-valprint.c (ada_value_print): Use type instead of
789 2018-09-10 Xavier Roirand <roirand@adacore.com>
791 * ada-lang.c (ada_value_subscript): Handle case when parameter is
792 an array of access to unconstrained array.
794 2018-09-10 Xavier Roirand <roirand@adacore.com>
796 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
797 (ada_check_typedef): Use it.
799 2018-09-10 Xavier Roirand <roirand@adacore.com>
801 * ada-varobj.c (ada_varobj_describe_struct_child)
802 (ada_varobj_describe_child): Handle union case like struct one.
804 2018-09-10 Tom Tromey <tom@tromey.com>
807 * python/python.c (_initialize_python): Make example in "python"
808 help work in Python 3.
810 2018-09-10 Eli Zaretskii <eliz@gnu.org>
812 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
813 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
814 $(EXEEXT) to the script, as it is not a program.
816 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
818 * python/py-prettyprint.c (pretty_print_one_value): Return
820 (print_string_repr): Adjust.
821 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
822 * python/python-internal.h (apply_varobj_pretty_printer): Return
824 * varobj.c (varobj_value_get_print_value): Adjust.
826 2018-09-08 Tom Tromey <tom@tromey.com>
829 * python/py-prettyprint.c (pretty_print_one_value): Check for
832 2018-09-08 Joel Brobecker <brobecker@adacore.com>
834 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
835 replace_operator_with_call.
837 2018-09-08 Joel Brobecker <brobecker@adacore.com>
839 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
841 2018-09-08 Joel Brobecker <brobecker@adacore.com>
843 * ada-typeprint.c (print_range): Print the bounds using TYPE
844 rather than its TYPE_TARGET_TYPE.
846 2018-09-08 Joel Brobecker <brobecker@adacore.com>
848 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
849 call to ada_to_fixed_value_create.
851 2018-09-08 Jerome Guitton <guitton@adacore.com>
853 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
855 2018-09-08 Joel Brobecker <brobecker@adacore.com>
857 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
860 2018-09-08 Joel Brobecker <brobecker@adacore.com>
862 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
863 Move update of loop variable "fi".
865 2018-09-08 Joel Brobecker <brobecker@adacore.com>
867 * ada-lang.c (value_assign_to_component): In the case of
868 big-endian targets, extract the bits of the given VAL
869 using an src_offset of zero if container is not a scalar.
871 2018-09-06 Simon Ser <contact@emersion.fr>
874 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
875 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
876 * fbsd-tdep.c (fbsd_make_note_desc): New.
877 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
878 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
879 * target.h (enum target_object) Add FreeBSD-specific
880 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
882 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
884 * compile/compile-c.h (generate_c_for_variable_locations):
885 Change reference to pointer.
886 * compile/compile-c-support.c (compile_program) <compute>:
888 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
889 (generate_c_for_for_one_variable): Likewise
890 (generate_c_for_variable_locations): Likewise
891 * compile/compile-c-types.c (compile_c_instance::convert_type):
893 * compile/compile-cplus-symbols.c (convert_one_symbol):
894 std::move the scope passed to enter_scope.
895 * compile/compile-cplus-types.c
896 (compile_cplus_instance::enter_scope): Make parameter
898 (compile_cplus_instance::new_scope): Change reference to
900 (compile_cplus_instance::convert_type): Likewise
901 (compile_cplus_convert_typedef): std::move the scope passed to
903 (compile_cplus_convert_struct_or_union): Likewise.
904 (compile_cplus_convert_enum): Likewise.
905 (compile_cplus_convert_namespace): Likewise.
906 * compile/compile-cplus.h (compile_cplus_instance)
907 <enter_scope>: Make parameter rvalue-reference.
908 * compile/compile-internal.h (compile_instance)
909 <get_cached_type>: Likewise
910 * compile/compile-loc2c.c (push): Likewise
914 (print_label): Likewise
915 (pushf_register_address): Likewise
916 (pushf_register): Likewise
917 (do_compile_dwarf_expr_to_c): Likewise
918 (compile_dwarf_expr_to_c): Likewise
919 (compile_dwarf_bounds_to_c): Likewise
920 * compile/compile.c (compile_instance::get_cached_type):
922 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
923 (compile_dwarf_bounds_to_c): Likewise
924 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
925 (dwarf2_compile_property_to_c): Likewise
926 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
927 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
930 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
932 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
933 * tui/tui-data.c (init_content_element): Don't initialize it.
935 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
937 * tui/tui-data.h (struct tui_win_info)
938 <detail::opaque>: Remove.
939 * tui/tui-data.c (init_win_info): Remove assignment.
941 2018-09-05 Tom Tromey <tom@tromey.com>
943 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
945 * target-float.c (host_float_ops<T>::to_string)
946 (host_float_ops<T>::from_string): Use
947 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
948 * configure: Rebuild.
950 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
952 * printcmd.c (printf_c_string): Use
953 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
954 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
956 2018-09-05 Tom Tromey <tom@tromey.com>
958 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
960 2018-09-05 Tom de Vries <tdevries@suse.de>
962 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
963 with resolve_abstract_p == true.
964 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
965 defaulting to false. Propagate resolve_abstract_p to
966 dwarf2_fetch_die_loc_sect_off.
967 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
968 parameter, defaulting to false.
969 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
970 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
972 * dwarf2read.h (struct die_info): Forward-declare.
973 (die_info_ptr): New typedef.
974 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
976 2018-09-05 Joel Brobecker <brobecker@adacore.com>
980 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
981 Pedro Alves <palves@redhat.com>
983 * gnulib/Makefile.in (aclocal_m4_deps): Move to
984 "aclocal-m4-deps.mk". Include file here.
985 $(srcdir)/aclocal.m4: Add "configure.ac".
986 * gnulib/aclocal-m4-deps.mk: New file.
987 * gnulib/update-gnulib.sh: Automatically update
988 "aclocal-m4-deps.mk".
990 2018-09-04 Tom Tromey <tom@tromey.com>
992 * configure: Rebuild.
993 * configure.ac: Remove multi-ice code.
995 2018-09-04 Tom Tromey <tom@tromey.com>
997 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1000 2018-09-04 Tom Tromey <tom@tromey.com>
1002 * Makefile.in (printcmd.o, target-float.o): Remove.
1003 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1005 2018-09-04 Tom Tromey <tom@tromey.com>
1007 * gnulib/Makefile.in: Remove obsolete comment.
1008 * Makefile.in: Remove obsolete comment.
1010 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1012 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1015 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1017 * riscv-tdep.c: Add 'prologue-value.h' include.
1018 (struct riscv_unwind_cache): New struct.
1019 (riscv_debug_unwinder): New global.
1020 (riscv_scan_prologue): Update arguments, capture register details
1022 (riscv_skip_prologue): Reformat arguments line, move end of
1023 prologue calculation into riscv_scan_prologue.
1024 (riscv_frame_cache): Update return type, create
1025 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1027 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1028 (riscv_frame_prev_register): Use the trad_frame within the
1030 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1033 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1035 * trad-frame.h (trad_frame_set_realreg): Declare.
1036 (trad_frame_set_addr): Declare.
1037 * trad-frame.c (trad_frame_set_realreg): Define new function.
1038 (trad_frame_set_addr): Define new function.
1039 (trad_frame_set_reg_realreg): Use new function.
1040 (trad_frame_set_reg_addr): Use new function.
1042 2018-09-01 Keith Seitz <keiths@redhat.com>
1044 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1045 pulongest instead of "%lld".
1046 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1049 2018-08-31 Tom Tromey <tom@tromey.com>
1051 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1054 2018-08-31 Pedro Alves <palves@redhat.com>
1056 * gdbarch.h: Regenerate.
1058 2018-08-31 Pedro Alves <palves@redhat.com>
1060 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1061 * target.h (Hardware watchpoint interfaces): Describe
1062 continuable/steppable/non-steppable watchpoints.
1063 * gdbarch.h, gdbarch.c: Regenerate.
1065 2018-08-31 Pedro Alves <palves@redhat.com>
1067 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1070 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1071 * target.h (target_ops::have_continuable_watchpoint): Delete.
1072 (target_have_continuable_watchpoint): Delete.
1073 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1074 * target-delegates.c: Regenerate.
1076 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1078 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1079 the files present in "gnulib/import/m4/".
1081 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1083 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1084 c.sw, c.swsp, and c.sdsp.
1086 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1088 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1089 (riscv_read_misa_reg): Don't cache value read into inferior data.
1090 (riscv_new_inferior_data): Delete.
1091 (riscv_inferior_data_cleanup): Delete.
1092 (riscv_inferior_data): Delete.
1093 (riscv_invalidate_inferior_data): Delete.
1094 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1096 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1098 * compile/compile-cplus-types.c
1099 (compile_cplus_instance::leave_scope): Take the address of scope
1101 (compile_cplus_instance::convert_qualified_base): Compare quals
1104 2018-08-30 Keith Seitz <keiths@redhat.com>
1106 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1107 Use "%s" and host_address_to_string instead of "%p" in printf.
1109 2018-08-29 Keith Seitz <keiths@redhat.com>
1111 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1112 and compile-cplus-types.c.
1113 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1114 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1115 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1117 * compile/compile-c-support.c: Include compile-cplus.h.
1118 (load_libcompile): Templatize.
1119 (get_compile_context): "New" function.
1120 (c_get_compile_context): Use get_compile_context.
1121 (cplus_get_compile_context): New function.
1122 (cplus_push_user_expression, cplus_pop_user_expression)
1123 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1124 (cplus_compute_program): Define new structs/functions.
1125 * compile/compile-cplus-symmbols.c: New file.
1126 * compile/compile-cplus-types.c: New file.
1127 * compile/compile-cplus.h: New file.
1128 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1130 * compile/compile-object-load.c (get_out_value_type): Use
1131 strncmp_iw when comparing symbol names.
1132 (compile_object_load): Add mst_bss and mst_data.
1133 * compile/compile.c (_initialize_compile): Remove
1134 -Wno-implicit-function-declaration from `compile_args'.
1135 * compile/gcc-cp-plugin.h: New file.
1136 * NEWS: Mention C++ compile support and new debug options.
1138 2018-08-29 Keith Seitz <keiths@redhat.com>
1140 * linespec.c (collect_info::add_symbol): Make virtual.
1141 (struct symbol_searcher_collect_info): New struct.
1142 (symbol_searcher::find_all_symbols): New method.
1143 * symtab.h (class symbol_searcher): New class.
1145 2018-08-29 Keith Seitz <keiths@redhat.com>
1147 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1148 Change to vector of block_symbol. Update all users.
1149 (struct collect_info) <symbols>: Likewise.
1150 (collect_info::add_symbol): Take block_symbol as argument.
1152 (decode_compound_collector) <m_symbols>: Change type to vector
1153 of block_symbol. Update all users.
1154 (decode_compound_collector::operator ()): Change parameter type
1156 (find_method, find_function_symbols, find_linespec_symbols)
1157 (find_label_symbols_in_block, find_label_symbols): Change symbol
1158 vectors to block_symbol vectors.
1159 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1162 2018-08-29 Keith Seitz <keiths@redhat.com>
1164 * linespec.c (symbolp): Remove typedef and VEC definitions.
1165 (bound_minimal_symbol_d): Likewise.
1167 2018-08-29 Keith Seitz <keiths@redhat.com>
1169 * linespec.c (decode_compound_collector::decode_compound_collector):
1170 Remove initialization for `m_symtabs'.
1171 (decode_compound_collector::release_symbols): Change return type
1172 to std::vector. Update all callers.
1173 (class decode_compound_collector) <m_symbols>: Change type to
1175 (lookup_prefix_sym): Change return type to std::vector. Update all
1177 (compare_symbols): Remove.
1178 (std_compare_symbols): Rename to `compare_symbols'.
1179 (find_method): Change `sym_classes' parameter to std::vector.
1180 Update all callers. Use std::sort to sort sym_classes.
1181 (find_linespec_symbols): Remove cleanup.
1183 2018-08-29 Keith Seitz <keiths@redhat.com>
1185 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1186 std::vector. Update all users.
1187 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1188 (struct collect_info) <minimal_symbols>: Likewise.
1189 (compare_msymbols): Return bool. Change parameters to const
1190 bound_minimal_symbol references.
1191 (find_method, find_function_symbols, find_linespec_symbols): Change
1192 `minsyms' parameter to std::vector. Update all callers.
1194 2018-08-29 Keith Seitz <keiths@redhat.com>
1196 * linespec.c (struct linespec) <label_symbols>: Change type to
1197 std::vector. Update all users.
1198 (find_label_symbols_in_block): Change `result' parameter to
1199 std::vector. Update all callers.
1200 (find_label_symbols): Return std::vector. Update all callers.
1202 2018-08-29 Keith Seitz <keiths@redhat.com>
1204 * linespec.c (struct linespec) <function_symbols>: Change type to
1205 std::vector. Update all users.
1206 (struct collect_info) <function_symbols>: Likewise.
1207 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1208 (std_compare_symbols): New function.
1209 (find_method, find_function_symbols, find_linespec_symbols)
1210 (find_label_symbols_in_block): Change `symbols' parameter to
1211 std::vector. Update all callers.
1212 (find_label_symbols): Likewise for `function_symbols' and
1215 2018-08-29 Keith Seitz <keiths@redhat.com>
1217 * linespec.c (symtab_vector_up): Define.
1218 (struct linespec) <file_symtabs>: Change type to std::vector *.
1220 (struct collect_info) <file_symtabs>: Likewise.
1221 (collect_symtabs_from_filename): Return symtab_vector_up.
1223 (decode_objc): Remove cleanup.
1224 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1225 (symtab_collector::release_symtabs): Return symtab_vector_up.
1227 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1229 (collect_symtabs_from_filename, symtabs_from_filename): Return
1230 symtab_vector_up. Update all callers.
1232 2018-08-29 Tom Tromey <tom@tromey.com>
1234 * csky-tdep.c (csky_analyze_prologue): Use
1235 core_addr_to_string_nz.
1237 2018-08-29 Tom Tromey <tom@tromey.com>
1239 * windows-nat.c (struct xlate_exception) <them>: Change type to
1241 (xlate): Fix formatting. Remove last entry.
1242 (struct xlate_exception, xlate): Comment out.
1243 (windows_nat_target::resume): Use ranged for.
1245 2018-08-29 Jim Wilson <jimw@sifive.com>
1247 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1248 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1250 (riscv_linux_nat_target::store_registers): Likewise.
1252 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1256 * gnulib/aclocal.m4: Regenerate.
1257 * gnulib/config.in: Regenerate.
1258 * gnulib/configure: Regenerate.
1259 * gnulib/import/Makefile.am: Update.
1260 * gnulib/import/Makefile.in: Update.
1261 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1262 * gnulib/import/_Noreturn.h: ... this.
1263 * gnulib/import/alloca.in.h: Update.
1264 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1265 * gnulib/import/arg-nonnull.h: ... this.
1266 * gnulib/import/assure.h: Update.
1267 * gnulib/import/at-func.c: Update.
1268 * gnulib/import/basename-lgpl.c: Update.
1269 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1270 * gnulib/import/c++defs.h: ... this.
1271 * gnulib/import/canonicalize-lgpl.c: Update.
1272 * gnulib/import/cdefs.h: Update.
1273 * gnulib/import/chdir-long.c: Update.
1274 * gnulib/import/chdir-long.h: Update.
1275 * gnulib/import/cloexec.c: Update.
1276 * gnulib/import/cloexec.h: Update.
1277 * gnulib/import/close.c: Update.
1278 * gnulib/import/closedir.c: Update.
1279 * gnulib/import/config.charset: Update.
1280 * gnulib/import/dirent-private.h: Update.
1281 * gnulib/import/dirent.in.h: Update.
1282 * gnulib/import/dirfd.c: Update.
1283 * gnulib/import/dirname-lgpl.c: Update.
1284 * gnulib/import/dirname.h: Update.
1285 * gnulib/import/dosname.h: Update.
1286 * gnulib/import/dup-safer-flag.c: Update.
1287 * gnulib/import/dup-safer.c: Update.
1288 * gnulib/import/dup.c: Update.
1289 * gnulib/import/dup2.c: Update.
1290 * gnulib/import/errno.in.h: Update.
1291 * gnulib/import/error.c: Update.
1292 * gnulib/import/error.h: Update.
1293 * gnulib/import/exitfail.c: Update.
1294 * gnulib/import/exitfail.h: Update.
1295 * gnulib/import/extra/update-copyright: Update.
1296 * gnulib/import/fchdir.c: Update.
1297 * gnulib/import/fcntl.c: Update.
1298 * gnulib/import/fcntl.in.h: Update.
1299 * gnulib/import/fd-hook.c: Update.
1300 * gnulib/import/fd-hook.h: Update.
1301 * gnulib/import/fd-safer-flag.c: Update.
1302 * gnulib/import/fd-safer.c: Update.
1303 * gnulib/import/fdopendir.c: Update.
1304 * gnulib/import/filename.h: Update.
1305 * gnulib/import/filenamecat-lgpl.c: Update.
1306 * gnulib/import/filenamecat.h: Update.
1307 * gnulib/import/flexmember.h: Update.
1308 * gnulib/import/float+.h: Update.
1309 * gnulib/import/float.c: Update.
1310 * gnulib/import/float.in.h: Update.
1311 * gnulib/import/fnmatch.c: Update.
1312 * gnulib/import/fnmatch.in.h: Update.
1313 * gnulib/import/fnmatch_loop.c: Update.
1314 * gnulib/import/fpucw.h: Update.
1315 * gnulib/import/frexp.c: Update.
1316 * gnulib/import/frexpl.c: Update.
1317 * gnulib/import/fstat.c: Update.
1318 * gnulib/import/fstatat.c: Update.
1319 * gnulib/import/getcwd-lgpl.c: Update.
1320 * gnulib/import/getcwd.c: Update.
1321 * gnulib/import/getdtablesize.c: Update.
1322 * gnulib/import/getlogin_r.c: Update.
1323 * gnulib/import/getprogname.c: Update.
1324 * gnulib/import/getprogname.h: Update.
1325 * gnulib/import/gettext.h: Update.
1326 * gnulib/import/gettimeofday.c: Update.
1327 * gnulib/import/glob-libc.h: Update.
1328 * gnulib/import/glob.c: Update.
1329 * gnulib/import/glob.in.h: Update.
1330 * gnulib/import/glob_internal.h: Update.
1331 * gnulib/import/glob_pattern_p.c: Update.
1332 * gnulib/import/globfree.c: Update.
1333 * gnulib/import/hard-locale.c: Update.
1334 * gnulib/import/hard-locale.h: Update.
1335 * gnulib/import/intprops.h: Update.
1336 * gnulib/import/inttypes.in.h: Update.
1337 * gnulib/import/isnan.c: Update.
1338 * gnulib/import/isnand-nolibm.h: Update.
1339 * gnulib/import/isnand.c: Update.
1340 * gnulib/import/isnanl-nolibm.h: Update.
1341 * gnulib/import/isnanl.c: Update.
1342 * gnulib/import/itold.c: Update.
1343 * gnulib/import/libc-config.h: Update.
1344 * gnulib/import/limits.in.h: Update.
1345 * gnulib/import/localcharset.c: Update.
1346 * gnulib/import/localcharset.h: Update.
1347 * gnulib/import/localtime-buffer.c: Update.
1348 * gnulib/import/localtime-buffer.h: Update.
1349 * gnulib/import/lstat.c: Update.
1350 * gnulib/import/m4/00gnulib.m4: Update.
1351 * gnulib/import/m4/__inline.m4: Update.
1352 * gnulib/import/m4/absolute-header.m4: Update.
1353 * gnulib/import/m4/alloca.m4: Update.
1354 * gnulib/import/m4/builtin-expect.m4: Update.
1355 * gnulib/import/m4/canonicalize.m4: Update.
1356 * gnulib/import/m4/chdir-long.m4: Update.
1357 * gnulib/import/m4/close.m4: Update.
1358 * gnulib/import/m4/closedir.m4: Update.
1359 * gnulib/import/m4/configmake.m4: Update.
1360 * gnulib/import/m4/d-ino.m4: Update.
1361 * gnulib/import/m4/d-type.m4: Update.
1362 * gnulib/import/m4/dirent_h.m4: Update.
1363 * gnulib/import/m4/dirfd.m4: Update.
1364 * gnulib/import/m4/dirname.m4: Update.
1365 * gnulib/import/m4/double-slash-root.m4: Update.
1366 * gnulib/import/m4/dup.m4: Update.
1367 * gnulib/import/m4/dup2.m4: Update.
1368 * gnulib/import/m4/eealloc.m4: Update.
1369 * gnulib/import/m4/environ.m4: Update.
1370 * gnulib/import/m4/errno_h.m4: Update.
1371 * gnulib/import/m4/error.m4: Update.
1372 * gnulib/import/m4/exponentd.m4: Update.
1373 * gnulib/import/m4/exponentl.m4: Update.
1374 * gnulib/import/m4/extensions.m4: Update.
1375 * gnulib/import/m4/extern-inline.m4: Update.
1376 * gnulib/import/m4/fchdir.m4: Update.
1377 * gnulib/import/m4/fcntl-o.m4: Update.
1378 * gnulib/import/m4/fcntl.m4: Update.
1379 * gnulib/import/m4/fcntl_h.m4: Update.
1380 * gnulib/import/m4/fdopendir.m4: Update.
1381 * gnulib/import/m4/filenamecat.m4: Update.
1382 * gnulib/import/m4/flexmember.m4: Update.
1383 * gnulib/import/m4/float_h.m4: Update.
1384 * gnulib/import/m4/fnmatch.m4: Update.
1385 * gnulib/import/m4/fnmatch_h.m4: Update.
1386 * gnulib/import/m4/fpieee.m4: Update.
1387 * gnulib/import/m4/frexp.m4: Update.
1388 * gnulib/import/m4/frexpl.m4: Update.
1389 * gnulib/import/m4/fstat.m4: Update.
1390 * gnulib/import/m4/fstatat.m4: Update.
1391 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1392 * gnulib/import/m4/getcwd-path-max.m4: Update.
1393 * gnulib/import/m4/getcwd.m4: Update.
1394 * gnulib/import/m4/getdtablesize.m4: Update.
1395 * gnulib/import/m4/getlogin.m4: Update.
1396 * gnulib/import/m4/getlogin_r.m4: Update.
1397 * gnulib/import/m4/getpagesize.m4: Update.
1398 * gnulib/import/m4/getprogname.m4: Update.
1399 * gnulib/import/m4/gettimeofday.m4: Update.
1400 * gnulib/import/m4/glibc21.m4: Update.
1401 * gnulib/import/m4/glob.m4: Update.
1402 * gnulib/import/m4/glob_h.m4: Update.
1403 * gnulib/import/m4/gnulib-cache.m4: Update.
1404 * gnulib/import/m4/gnulib-common.m4: Update.
1405 * gnulib/import/m4/gnulib-comp.m4: Update.
1406 * gnulib/import/m4/gnulib-tool.m4: Update.
1407 * gnulib/import/m4/hard-locale.m4: Update.
1408 * gnulib/import/m4/include_next.m4: Update.
1409 * gnulib/import/m4/inttypes-pri.m4: Update.
1410 * gnulib/import/m4/inttypes.m4: Update.
1411 * gnulib/import/m4/isnand.m4: Update.
1412 * gnulib/import/m4/isnanl.m4: Update.
1413 * gnulib/import/m4/largefile.m4: Update.
1414 * gnulib/import/m4/limits-h.m4: Update.
1415 * gnulib/import/m4/localcharset.m4: Update.
1416 * gnulib/import/m4/locale-fr.m4: Update.
1417 * gnulib/import/m4/locale-ja.m4: Update.
1418 * gnulib/import/m4/locale-zh.m4: Update.
1419 * gnulib/import/m4/localtime-buffer.m4: Update.
1420 * gnulib/import/m4/longlong.m4: Update.
1421 * gnulib/import/m4/lstat.m4: Update.
1422 * gnulib/import/m4/malloc.m4: Update.
1423 * gnulib/import/m4/malloca.m4: Update.
1424 * gnulib/import/m4/math_h.m4: Update.
1425 * gnulib/import/m4/mbrtowc.m4: Update.
1426 * gnulib/import/m4/mbsinit.m4: Update.
1427 * gnulib/import/m4/mbsrtowcs.m4: Update.
1428 * gnulib/import/m4/mbstate_t.m4: Update.
1429 * gnulib/import/m4/memchr.m4: Update.
1430 * gnulib/import/m4/memmem.m4: Update.
1431 * gnulib/import/m4/mempcpy.m4: Update.
1432 * gnulib/import/m4/memrchr.m4: Update.
1433 * gnulib/import/m4/mkdir.m4: Update.
1434 * gnulib/import/m4/mkstemp.m4: Update.
1435 * gnulib/import/m4/mmap-anon.m4: Update.
1436 * gnulib/import/m4/mode_t.m4: Update.
1437 * gnulib/import/m4/msvc-inval.m4: Update.
1438 * gnulib/import/m4/msvc-nothrow.m4: Update.
1439 * gnulib/import/m4/multiarch.m4: Update.
1440 * gnulib/import/m4/nocrash.m4: Update.
1441 * gnulib/import/m4/off_t.m4: Update.
1442 * gnulib/import/m4/onceonly.m4: Update.
1443 * gnulib/import/m4/open-cloexec.m4: Update.
1444 * gnulib/import/m4/open.m4: Update.
1445 * gnulib/import/m4/openat.m4: Update.
1446 * gnulib/import/m4/opendir.m4: Update.
1447 * gnulib/import/m4/pathmax.m4: Update.
1448 * gnulib/import/m4/rawmemchr.m4: Update.
1449 * gnulib/import/m4/readdir.m4: Update.
1450 * gnulib/import/m4/readlink.m4: Update.
1451 * gnulib/import/m4/realloc.m4: Update.
1452 * gnulib/import/m4/rename.m4: Update.
1453 * gnulib/import/m4/rewinddir.m4: Update.
1454 * gnulib/import/m4/rmdir.m4: Update.
1455 * gnulib/import/m4/save-cwd.m4: Update.
1456 * gnulib/import/m4/secure_getenv.m4: Update.
1457 * gnulib/import/m4/setenv.m4: Update.
1458 * gnulib/import/m4/signal_h.m4: Update.
1459 * gnulib/import/m4/ssize_t.m4: Update.
1460 * gnulib/import/m4/stat-time.m4: Update.
1461 * gnulib/import/m4/stat.m4: Update.
1462 * gnulib/import/m4/std-gnu11.m4: Update.
1463 * gnulib/import/m4/stdbool.m4: Update.
1464 * gnulib/import/m4/stddef_h.m4: Update.
1465 * gnulib/import/m4/stdint.m4: Update.
1466 * gnulib/import/m4/stdio_h.m4: Update.
1467 * gnulib/import/m4/stdlib_h.m4: Update.
1468 * gnulib/import/m4/strchrnul.m4: Update.
1469 * gnulib/import/m4/strdup.m4: Update.
1470 * gnulib/import/m4/strerror.m4: Update.
1471 * gnulib/import/m4/string_h.m4: Update.
1472 * gnulib/import/m4/strstr.m4: Update.
1473 * gnulib/import/m4/strtok_r.m4: Update.
1474 * gnulib/import/m4/sys_socket_h.m4: Update.
1475 * gnulib/import/m4/sys_stat_h.m4: Update.
1476 * gnulib/import/m4/sys_time_h.m4: Update.
1477 * gnulib/import/m4/sys_types_h.m4: Update.
1478 * gnulib/import/m4/tempname.m4: Update.
1479 * gnulib/import/m4/time_h.m4: Update.
1480 * gnulib/import/m4/unistd-safer.m4: Update.
1481 * gnulib/import/m4/unistd_h.m4: Update.
1482 * gnulib/import/m4/warn-on-use.m4: Update.
1483 * gnulib/import/m4/wchar_h.m4: Update.
1484 * gnulib/import/m4/wchar_t.m4: Update.
1485 * gnulib/import/m4/wctype_h.m4: Update.
1486 * gnulib/import/m4/wint_t.m4: Update.
1487 * gnulib/import/malloc.c: Update.
1488 * gnulib/import/malloc/scratch_buffer.h: Update.
1489 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1490 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1491 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1492 * gnulib/import/malloca.c: Update.
1493 * gnulib/import/malloca.h: Update.
1494 * gnulib/import/malloca.valgrind: Update.
1495 * gnulib/import/math.in.h: Update.
1496 * gnulib/import/mbrtowc.c: Update.
1497 * gnulib/import/mbsinit.c: Update.
1498 * gnulib/import/mbsrtowcs-impl.h: Update.
1499 * gnulib/import/mbsrtowcs-state.c: Update.
1500 * gnulib/import/mbsrtowcs.c: Update.
1501 * gnulib/import/memchr.c: Update.
1502 * gnulib/import/memmem.c: Update.
1503 * gnulib/import/mempcpy.c: Update.
1504 * gnulib/import/memrchr.c: Update.
1505 * gnulib/import/mkdir.c: Update.
1506 * gnulib/import/mkstemp.c: Update.
1507 * gnulib/import/msvc-inval.c: Update.
1508 * gnulib/import/msvc-inval.h: Update.
1509 * gnulib/import/msvc-nothrow.c: Update.
1510 * gnulib/import/msvc-nothrow.h: Update.
1511 * gnulib/import/open.c: Update.
1512 * gnulib/import/openat-die.c: Update.
1513 * gnulib/import/openat-priv.h: Update.
1514 * gnulib/import/openat-proc.c: Update.
1515 * gnulib/import/openat.c: Update.
1516 * gnulib/import/openat.h: Update.
1517 * gnulib/import/opendir.c: Update.
1518 * gnulib/import/pathmax.h: Update.
1519 * gnulib/import/pipe-safer.c: Update.
1520 * gnulib/import/rawmemchr.c: Update.
1521 * gnulib/import/readdir.c: Update.
1522 * gnulib/import/readlink.c: Update.
1523 * gnulib/import/realloc.c: Update.
1524 * gnulib/import/ref-add.sin: Update.
1525 * gnulib/import/ref-del.sin: Update.
1526 * gnulib/import/rename.c: Update.
1527 * gnulib/import/rewinddir.c: Update.
1528 * gnulib/import/rmdir.c: Update.
1529 * gnulib/import/same-inode.h: Update.
1530 * gnulib/import/save-cwd.c: Update.
1531 * gnulib/import/save-cwd.h: Update.
1532 * gnulib/import/scratch_buffer.h: Update.
1533 * gnulib/import/secure_getenv.c: Update.
1534 * gnulib/import/setenv.c: Update.
1535 * gnulib/import/signal.in.h: Update.
1536 * gnulib/import/stat-time.c: Update.
1537 * gnulib/import/stat-time.h: Update.
1538 * gnulib/import/stat-w32.c: Update.
1539 * gnulib/import/stat-w32.h: Update.
1540 * gnulib/import/stat.c: Update.
1541 * gnulib/import/stdbool.in.h: Update.
1542 * gnulib/import/stddef.in.h: Update.
1543 * gnulib/import/stdint.in.h: Update.
1544 * gnulib/import/stdio.in.h: Update.
1545 * gnulib/import/stdlib.in.h: Update.
1546 * gnulib/import/str-two-way.h: Update.
1547 * gnulib/import/strchrnul.c: Update.
1548 * gnulib/import/strdup.c: Update.
1549 * gnulib/import/streq.h: Update.
1550 * gnulib/import/strerror-override.c: Update.
1551 * gnulib/import/strerror-override.h: Update.
1552 * gnulib/import/strerror.c: Update.
1553 * gnulib/import/string.in.h: Update.
1554 * gnulib/import/stripslash.c: Update.
1555 * gnulib/import/strnlen1.c: Update.
1556 * gnulib/import/strnlen1.h: Update.
1557 * gnulib/import/strstr.c: Update.
1558 * gnulib/import/strtok_r.c: Update.
1559 * gnulib/import/sys_stat.in.h: Update.
1560 * gnulib/import/sys_time.in.h: Update.
1561 * gnulib/import/sys_types.in.h: Update.
1562 * gnulib/import/tempname.c: Update.
1563 * gnulib/import/tempname.h: Update.
1564 * gnulib/import/time.in.h: Update.
1565 * gnulib/import/unistd--.h: Update.
1566 * gnulib/import/unistd-safer.h: Update.
1567 * gnulib/import/unistd.in.h: Update.
1568 * gnulib/import/unsetenv.c: Update.
1569 * gnulib/import/verify.h: Update.
1570 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1571 * gnulib/import/wchar.in.h: Update.
1572 * gnulib/import/wctype.in.h: Update.
1573 * gnulib/import/xalloc-oversized.h: Update.
1574 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1575 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1577 2018-08-16 Gary Benson <gbenson@redhat.com>
1580 * gdb/main.c (captured_main_1): Exit with nonzero status
1581 in batch mode if the last command to be executed failed.
1582 * NEWS: Mention the above.
1584 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1586 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1587 end of warning message.
1589 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1592 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1593 (aarch64_extract_return_value): Use
1594 aapcs_is_vfp_call_or_return_candidate.
1595 (aarch64_return_in_memory): Likewise.
1596 (aarch64_store_return_value): Likewise.
1598 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1601 (aapcs_is_vfp_call_or_return_candidate): Make static
1602 (pass_in_v_or_stack): Remove function.
1603 (pass_in_v_vfp_candidate): New function.
1604 (aarch64_push_dummy_call): Check for float register candidates.
1606 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1608 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1609 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1610 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1612 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1615 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1616 (struct ipa_sym_addresses): Rename to...
1617 (struct ipa_sym_addresses_common): ... this.
1618 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1620 2018-08-28 Tom Tromey <tom@tromey.com>
1622 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1623 (token_fifo): Now a std::vector.
1624 (yylex, c_parse): Update.
1625 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1626 (token_fifo): Now a std::vector.
1627 (yylex, d_parse): Update.
1628 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1629 (token_fifo): Now a std::vector.
1630 (yylex, go_parse): Update.
1632 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1634 * parser-defs.h (struct type_stack) <elements>: Change type to
1635 std::vector<union type_stack_elt>.
1636 <depth, size>: Remove.
1637 * parse.c (parse_exp_in_context_1): Adjust.
1638 (type_stack_reserve): Remove.
1639 (check_type_stack_depth): Remove.
1640 (insert_into_type_stack): Adjust to std::vector.
1641 (insert_type): Likewise.
1642 (push_type): Likewise.
1643 (push_type_int): Likewise.
1644 (insert_type_address_space): Likewise.
1645 (pop_type): Likewise.
1646 (pop_type_int): Likewise.
1647 (pop_typelist): Likewise.
1648 (pop_type_stack): Likewise.
1649 (append_type_stack): Likewise.
1650 (push_type_stack): Likewise.
1651 (get_type_stack): Likewise.
1652 (type_stack_cleanup): Likewise.
1653 (push_typelist): Likewise.
1654 (follow_types): Likewise.
1655 (_initialize_parse): Likewise.
1657 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1659 * NEWS: Mention csky target.
1661 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1662 Hafiz Abid Qadeer <abidh@codesourcery.com>
1663 Don Breazeal <donb@codesourcery.com>
1665 * csky-linux-tdep.c: New file.
1666 * csky-tdep.c: Likewise.
1667 * csky-tdep.h: Likewise.
1668 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1670 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1671 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1672 * configure.tgt: Add csky support.
1674 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1676 * python/py-framefilter.c (py_print_frame): Print frame architecture
1677 when printing on an MI output.
1679 2018-08-27 Tom Tromey <tom@tromey.com>
1682 * configure: Rebuild.
1683 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1685 2018-08-27 Tom Tromey <tom@tromey.com>
1687 * aarch64-linux-tdep.c
1688 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1691 2018-08-27 Tom Tromey <tom@tromey.com>
1693 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1695 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1696 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1697 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1698 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1701 2018-08-27 Tom Tromey <tom@tromey.com>
1703 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1704 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1706 2018-08-27 Tom Tromey <tom@tromey.com>
1708 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1709 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1711 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1713 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1715 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1716 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1717 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1719 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1720 (ppc64_linux_sigaction_tramp_frame)
1721 (ppc32_linux_sighandler_tramp_frame)
1722 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1723 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1724 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1725 * mn10300-linux-tdep.c (am33_linux_sigframe)
1726 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1727 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1728 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1729 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1730 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1731 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1732 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1733 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1734 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1735 * microblaze-linux-tdep.c
1736 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1737 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1738 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1739 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1740 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1741 * common/common-types.h (ULONGEST_MAX): New define.
1742 (CORE_ADDR_MAX): Fix formatting.
1743 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1744 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1745 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1746 (arm_linux_rt_sigreturn_tramp_frame)
1747 (arm_eabi_linux_sigreturn_tramp_frame)
1748 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1749 (thumb2_eabi_linux_sigreturn_tramp_frame)
1750 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1751 (arm_linux_restart_syscall_tramp_frame)
1752 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1753 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1754 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1756 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1758 2018-08-27 Tom Tromey <tom@tromey.com>
1760 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1762 * mips-tdep.c (mips_deal_with_atomic_sequence)
1763 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1764 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1765 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1766 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1768 * aarch64-tdep.c (aarch64_software_single_step): Use
1771 2018-08-27 Tom Tromey <tom@tromey.com>
1773 * linespec.c (complete_linespec_component): Add cast to "char".
1774 * completer.c (completion_tracker::build_completion_result): Add
1777 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1779 * solist.h (struct solist, struct target_so_ops): Fix
1782 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1784 * ada-tasks.c (ada_task_info_s): Remove typedef.
1785 (DEF_VEC_O(ada_task_info_s)): Remove.
1786 (struct ada_tasks_inferior_data): Initialize fields.
1787 <task_list>: Make an std::vector.
1788 (get_ada_tasks_inferior_data): Allocate with new.
1789 (ada_get_task_number): Adjust.
1790 (get_task_number_from_id): Likewise.
1791 (valid_task_id): Likewise.
1792 (ada_get_task_info_from_ptid): Likewise.
1793 (iterate_over_live_ada_tasks): Likewise.
1794 (add_ada_task): Likewise.
1795 (read_known_tasks): Likewise.
1796 (ada_build_task_list): Likewise.
1797 (print_ada_task_info): Likewise.
1798 (info_task): Likewise.
1799 (task_command_1): Likewise.
1801 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1803 * ada-lang.c (add_angle_brackets): Return std::string.
1805 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
1807 * python/py-threadevent.c (py_get_event_thread): Initialize
1810 2018-08-24 Pedro Alves <palves@redhat.com>
1812 * python/py-bpevent.c (create_breakpoint_event_object): Use
1813 copy-initialization.
1814 * python/py-continueevent.c (emit_continue_event): Use
1815 copy-initialization.
1816 * python/py-exitedevent.c (create_exited_event_object): Return a
1818 (emit_exited_event): Use copy-initialization.
1819 * python/py-inferior.c (python_new_inferior)
1820 (python_inferior_deleted, add_thread_object): Use
1821 copy-initialization.
1822 * python/py-infevents.c (create_inferior_call_event_object)
1823 (create_register_changed_event_object)
1824 (create_memory_changed_event_object): Return a gdbpy_ref<>.
1825 (emit_inferior_call_event, emit_memory_changed_event)
1826 (emit_register_changed_event): Use copy-initialization.
1827 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1828 Return a gdbpy_ref<>.
1829 (emit_new_objfile_event): Use copy-initialization.
1830 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
1831 (emit_clear_objfiles_event): Use copy-initialization.
1832 * python/py-signalevent.c (create_signal_event_object): Use
1833 copy-initialization.
1834 * python/py-threadevent.c (create_thread_event_object): Use
1835 copy-initialization.
1837 2018-08-24 Pedro Alves <palves@redhat.com>
1838 Simon Marchi <simon.marchi@ericsson.com>
1841 * python/py-continueevent.c: Include "gdbthread.h".
1842 (create_continue_event_object): Add intro comment. Add 'ptid'
1843 parameter. Use it to find thread to pass to
1844 create_thread_event_object.
1845 (emit_continue_event): Pass PTID down to
1846 create_continue_event_object.
1847 * python/py-event.h (py_get_event_thread): Declare.
1848 (create_thread_event_object): Remove default from 'thread'
1850 * python/py-stopevent.c (create_stop_event_object): Use
1851 py_get_event_thread.
1852 * python/py-threadevent.c (get_event_thread): Rename to ...
1853 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
1854 and use it to find the thread.
1855 (create_thread_event_object): Assert that THREAD isn't null.
1856 Don't find the event thread here.
1858 2018-08-23 Kevin Buettner <kevinb@redhat.com>
1860 * block.h (blockrange, blockranges): New struct declarations.
1861 (struct block): Add new field named `ranges'.
1862 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
1863 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
1864 macros for accessing ranges in struct block.
1865 (make_blockranges): New declaration.
1866 block.c (make_blockranges): New function.
1867 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
1869 * symtab.h (find_pc_partial_function): Add new parameter `block'.
1870 * blockframe.c (cache_pc_function_block): New static global.
1871 (clear_pc_function_cache): Clear cache_pc_function_block.
1872 (find_pc_partial_function): Move comment to symtab.h. Add
1873 support for non-contiguous blocks.
1874 * cli/cli-cmds.c (block.h): Include.
1875 (print_disassembly): Handle printing of non-contiguous blocks.
1876 (disassemble_current_function): Likewise.
1877 (disassemble_command): Likewise.
1879 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
1881 * blockframe.c (get_pc_function_start): Likewise.
1882 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
1883 (gcc_symbol_address): Likewise.
1884 * compile/compile-object-run.c (compile_object_run): Likewise.
1885 * compile/compile.c (get_expr_block_and_pc): Likewise.
1886 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
1887 (func_addr_to_tail_call_list): Likewise.
1888 * findvar.c (default_read_var_value): Likewise.
1889 * inline-frame.c (inline_frame_this_id): Likewise.
1890 (skip-inline_frames): Likewise.
1891 * infcmd.c (until_next_command): Likewise.
1892 * linespec.c (convert_linespec_to_sals): Likewise.
1893 * parse.c (parse_exp_in_context_1): Likewise.
1894 * printcmd.c (build_address_symbolic): likewise.
1895 (info_address_command): Likewise.
1896 symtab.c (find_function_start_sal): Likewise.
1897 (skip_prologue_sal): Likewise.
1898 (find_function_alias_target): Likewise.
1899 (find_gnu_ifunc): Likewise.
1900 * stack.c (find_frame_funname): Likewise.
1901 * symtab.c (fixup_symbol_section): Likewise.
1902 (find_function_start_sal): Likewise.
1903 (skip_prologue_sal): Likewsie.
1904 (find_function_alias_target): Likewise.
1905 (find_gnu_ifunc): Likewise.
1906 * tracepoint.c (info_scope_command): Likewise.
1907 * value.c (value_fn_field): Likewise.
1909 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
1910 in place of find_pc_partial_function.
1911 * blockframe.c (find_function_entry_range_from_pc): New function.
1912 * symtab.h (find_function_entry_range_from_pc): Declare and document.
1913 * objfiles.c (objfile_relocate1): Relocate start and end addresses
1914 for each range in a block.
1917 2018-08-23 Xavier Roirand <roirand@adacore.com>
1919 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
1922 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1924 * solib-svr4.c (read_program_headers_from_bfd): Return
1925 gdb::optional<gdb::byte_vector>.
1926 (svr4_exec_displacement): Adjust.
1928 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1930 * solib-svr4.c (read_program_header): Return
1931 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
1932 (find_program_interpreter): Return
1933 gdb::optional<gdb::byte_vector>.
1934 (scan_dyntag_auxv): Adjust.
1935 (enable_break): Adjust.
1936 (svr4_exec_displacement): Adjust.
1938 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1940 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
1941 * inf-child.c (inf_child_target::terminal_save_inferior): New.
1943 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1945 * guile/scm-string.c (gdbscm_scm_from_printf): Use
1947 * guile/scm-utils.c (gdbscm_printf): Likewise.
1948 * serial.c (serial_printf): Likewise.
1949 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
1951 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
1953 * stack.c (print_frame): Print frame architecture when printing on
1955 * NEWS: Mention new "arch" attribute in frame output.
1957 2018-08-21 Alan Hayward <alan.hayward@arm.com>
1959 * arch/aarch64.h (aarch64_regnum): Update comment.
1961 2018-08-21 Alan Hayward <alan.hayward@arm.com>
1963 * NEWS: Add SVE to 8.2 section.
1965 2018-08-21 Pedro Alves <palves@redhat.com>
1967 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
1968 out from gdbscm_parse_function_args.
1969 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
1970 gdbscm_parse_function_args_1.
1972 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
1975 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
1978 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
1980 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
1982 2018-08-19 Michael Spang <spang@google.com>
1985 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
1986 for PT_TLS segments.
1988 2018-08-18 Kevin Buettner <kevinb@redhat.com>
1990 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
1991 dwarf_variable_value.
1992 * dwarf2-frame.c (class dwarf_expr_executor):
1993 Add override for dwarf_variable_value.
1994 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
1995 (class symbol_needs_eval_context): Likewise.
1996 (indirect_synthetic_pointer): Add forward declaration.
1997 (sect_variable_value): New function.
1998 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
1999 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2000 for DW_OP_GNU_variable_value.
2002 2018-08-16 Tom Tromey <tom@tromey.com>
2004 * top.c (read_command_file): Update.
2005 (command_line_input): Remove "repeat" argument.
2006 * ada-lang.c (get_selections): Update.
2007 * linespec.c (decode_line_2): Update.
2008 * defs.h (command_line_input): Remove argument.
2009 * cli/cli-script.c (read_next_line): Update.
2010 * python/py-gdb-readline.c: Update.
2012 2018-08-17 Tom Tromey <tom@tromey.com>
2014 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2017 2018-08-15 Tom Tromey <tom@tromey.com>
2019 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2021 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2023 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2024 If used, use find_pc_partial_function to find address range
2026 * mi/mi-main.c (mi_cmd_list_features): Report
2027 "data-disassemble-a-option" feature.
2028 * NEWS: Mention new -data-disassemble option -a.
2030 2018-08-13 Tom Tromey <tom@tromey.com>
2032 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2034 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2036 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2037 (aarch64_linux_collect_sve_regset): Likewise.
2038 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2039 * regcache.h (regcache_map_entry_size): New function.
2041 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2043 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2044 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2045 (SVE_HEADER_VL_LENGTH): Likewise.
2046 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2047 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2048 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2049 (SVE_HEADER_SIZE_OFFSET): Likewise.
2050 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2051 (SVE_HEADER_VL_OFFSET): Likewise.
2052 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2053 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2054 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2055 (SVE_HEADER_SIZE): Likewise.
2056 (aarch64_linux_core_read_vq): Add function.
2057 (aarch64_linux_core_read_description): Check for SVE section.
2059 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2061 * aarch64-fbsd-tdep.c
2062 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2064 * aarch64-linux-tdep.c
2065 (aarch64_linux_iterate_over_regset_sections): Likewise.
2066 * alpha-linux-tdep.c
2067 (alpha_linux_iterate_over_regset_sections):
2069 (alphanbsd_iterate_over_regset_sections): Likewise.
2071 (amd64fbsd_iterate_over_regset_sections): Likewise.
2072 * amd64-linux-tdep.c
2073 (amd64_linux_iterate_over_regset_sections): Likewise.
2075 (armbsd_iterate_over_regset_sections): Likewise.
2077 (arm_fbsd_iterate_over_regset_sections): Likewise.
2079 (arm_linux_iterate_over_regset_sections): Likewise.
2080 * corelow.c (get_core_registers_cb): Likewise.
2081 (core_target::fetch_registers): Likewise.
2082 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2083 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2084 * gdbarch.h (void): Regenerate.
2085 * gdbarch.sh: Add supply_size and collect_size.
2086 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2087 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2088 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2089 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2090 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2091 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2092 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2093 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2094 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2095 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2096 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2097 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2098 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2099 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2100 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2101 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2102 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2103 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2104 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2105 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2106 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2107 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2108 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2109 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2110 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2111 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2112 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2113 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2114 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2115 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2117 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2119 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2122 2018-08-10 Keith Seitz <keiths@redhat.com>
2124 * compile/compile-c-support.c (add_code_header, add_code_footer):
2125 Move into policy class.
2126 (c_push_user_expression, pop_user_expression_nop)
2127 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2128 (compile_program): New host class.
2129 (c_compile_program): New typedef.
2130 (c_compute_porgram): Use c_compile_program.
2132 2018-08-10 Keith Seitz <keiths@redhat.com>
2134 * compile/compile-internal.h (compile_instance::~compile_instance):
2135 Remove calls to htab_delete.
2136 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2137 * compile.c (compile_instance::compile_instance): Initialize
2138 htab unique pointers.
2139 (compile_instance::get_cached_type, compile_instance::insert_type)
2140 (compile_instance::error_symbol_once): Update for unique_ptr.
2142 2018-08-10 Keith Seitz <keiths@redhat.com>
2144 * compile/compile-c-symbols.c (struct symbol_error)
2145 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2146 (compile_instance::insert_symbol_error)
2147 (compile_instance::error_symbol_once): Move to ...
2148 * compile/compile.c: ... here.
2150 2018-08-10 Keith Seitz <keiths@redhat.com>
2152 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2153 instead of `new_compile_instance'.
2154 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2156 If the symbol error map is not initialized, create it.
2157 (generate_c_for_for_one_symbol): Do not check/initialize
2158 the symbol error map.
2159 * compile/compile-c-types.c (compile_c_instance): Make a class.
2161 (compile_instance::compile_instance): Initialize the type cache.
2162 (get_cached_type): New function.
2163 (insert_type): Update description.
2164 (compile_c_instance::m_default_cflags): Define.
2165 (convert_type): Update description. Use get_cached_type.
2166 (delete_instance): Moved to destructor.
2167 (new_compile_instance): Moved to constructor.
2168 * compile/compile-c.h (compile_c_instance): Make class inheriting
2169 from compile_instance.
2170 <base>: Remove field.
2171 <type_map, symbol_err_map>: Move to base class.
2172 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2173 * compile/compile-internal.h (compile_instance): Make class.
2174 <type_map_t, symbol_err_map_t>: Define.
2175 <fe>: Rename to `m_gcc_fe'.
2176 <scope, block, gcc_target_options>: Add `m_' prefix.
2177 <m_type_map, m_symbol_err_map>: New fields, moved from
2180 (convert_type, new_compile_instance): Remove.
2181 * compile/compile.c (cleanup_compile_instance): Remove.
2182 (compile_to_object): Use unique_ptr to eliminate cleanups.
2183 (compile_instance::set_print_callback, compile_instance::version)
2184 (compile_instance::set_verbose)
2185 (compile_instance::set_driver_filename)
2186 (compile_instance::set_triplet_regexp)
2187 (compile_instance::set_arguments)
2188 (compile_instance::set_source_file)
2189 (compile_instance::compile): Define.
2191 2018-08-10 Keith Seitz <keiths@redhat.com>
2193 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2194 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2195 gcc-c-fe.def to define C plugin.
2196 (delete_instance): Delete `c_plugin'.
2197 (new_compile_instance): Initialize `c_plugin'.
2198 * compile/compile-c.h: Include gcc_c_plugin.h.
2199 (struct compile_c_instance) <c_plugin>: New member.
2200 * gcc-c-plugin.h: New file.
2201 Update all callers with API change.
2203 2018-08-10 Keith Seitz <keiths@redhat.com>
2205 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2206 (HFILES_NO_SRCDIR): ... to here.
2207 Add compile-internal.h and compile-c.h.
2208 * compile/compile-c-support.c: Include compile-c.h.
2209 * compile/compile-c-symbols.c: Include compile-c.h.
2210 (generate_c_for_variable_locations): Update comment.
2211 * compile/compile-c-types.c: Include compile-c.h.
2212 * compile/compile-c.h: New file -- moved C language declarations
2213 from other files here.
2214 * compile/compile-internal.h: Do not include hashtab.h or
2215 common/enum-flags.h.
2216 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2217 (gcc_convert_symbol, gcc_symbol_address)
2218 (generate_c_for_variable_locations, c_get_mode_for_size)
2219 (c_get_range_decl_name): Definitions moved to compile-c.h.
2220 * compile/compile-loc2c.c: Include compile-c.h.
2222 2018-08-10 Keith Seitz <keiths@redhat.com>
2224 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2225 (c_symbol_substitution_name): ... this.
2228 2018-08-10 Keith Seitz <keiths@redhat.com>
2230 * compile/compile-c-support.c (c_compute_program): Use
2231 unique_xmalloc_ptr to eliminate cleanup.
2232 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2233 Return a unique_xmalloc_ptr and eliminate cleanup.
2234 * compile/compile-internal.h (generate_c_for_variable_locations):
2235 Return unique_xmalloc_ptr and update description.
2237 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2239 * corelow.c (core_target::get_core_register_section): Rename
2240 min_size to section_min_size.
2242 2018-08-09 Jim Wilson <jimw@sifive.com>
2244 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2245 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2246 * NEWS: Mention new GNU/Linux RISC-V target.
2247 * configure.host: Add riscv*-*-linux*.
2248 * configure.nat: Add riscv*.
2249 * configure.tgt: Add riscv*-*-linux*.
2250 * riscv-linux-nat.c: New file.
2251 * riscv-linux-tdep.c: New file.
2253 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2255 * infrun.c (resume): Make static, add forward declaration.
2256 (proceed): Update header comment.
2257 * infrun.h (resume): Delete declaration.
2259 2018-08-09 Tom Tromey <tom@tromey.com>
2261 * riscv-tdep.h: Minor formatting fixes.
2263 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2265 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2266 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2267 (test_mkdir_recursive): Likewise.
2268 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2270 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2272 * valarith.c (value_subscripted_rvalue): If an array is not in
2273 memory, and we don't know the upper bound, then we can't know that
2274 the requested element exists or not.
2276 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2278 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2279 (target_options_to_string): Add comment.
2281 2018-08-08 Tom Tromey <tom@tromey.com>
2283 * unittests/scoped_mmap-selftests.c: Check result of "write".
2285 2018-08-08 Jim Wilson <jimw@sifive.com>
2287 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2288 (decode_register_index_short): New.
2289 (decode_j_type_insn, decode_cj_type_insn): New.
2290 (decode_b_type_insn, decode_cb_type_insn): New.
2291 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2292 local xlen. Check xlen when decoding ambiguous compressed insns. In
2293 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2294 is_c_sw_insn instead of is_sw_insn.
2295 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2296 (riscv_software_single_step): New.
2297 * riscv-tdep.h (riscv_software_single_step): Declare.
2299 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2300 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2302 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2305 * target.c (dispose_inferior): Don't dispose of inferiors that are
2308 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2310 * remote.c (remote_target::download_tracepoint): Change char* to
2313 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2315 * target.h (target_options_to_string): Return an std::string.
2316 * target.c (str_comma_list_concat_elem): Return void, use
2318 (do_option): Likewise.
2319 (target_options_to_string): Return an std::string.
2320 * linux-nat.c (linux_nat_target::wait): Adjust.
2321 * target-debug.h (target_debug_print_options): Adjust.
2323 2018-08-07 Tom Tromey <tom@tromey.com>
2325 * Makefile.in (CPPFLAGS): New variable.
2326 (INTERNAL_CPPFLAGS): Use it.
2328 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2330 * NEWS: Mention the index cache.
2332 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2334 * common/pathstuff.h (get_standard_cache_dir): New.
2335 * common/pathstuff.c (get_standard_cache_dir): New.
2336 * build-id.h (build_id_to_string): New.
2337 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2338 DEBUG_STR_SUFFIX): Move to here.
2339 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2340 DEBUG_STR_SUFFIX): Move from there.
2341 (write_psymtabs_to_index): Make non-static, add basename
2342 parameter. Write to temporary files, rename when done.
2343 (save_gdb_index_command): Adjust call to
2344 write_psymtabs_to_index.
2345 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2347 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2348 (get_gdb_index_contents_from_cache): New.
2349 (get_gdb_index_contents_from_cache_dwz): New.
2350 (dwarf2_initialize_objfile): Read index from cache.
2351 (dwarf2_build_psymtabs): Save to index.
2352 * dwarf-index-cache.h: New file.
2353 * dwarf-index-cache.c: New file.
2354 * dwarf-index-write.h: New file.
2356 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2358 * gnulib/aclocal.m4: Re-generate.
2359 * gnulib/config.in: Re-generate.
2360 * gnulib/configure: Re-generate.
2361 * gnulib/import/Makefile.am: Re-generate.
2362 * gnulib/import/Makefile.in: Re-generate.
2363 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2364 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2365 * gnulib/import/m4/mkdir.m4: New file.
2366 * gnulib/import/mkdir.c: New file.
2367 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2370 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2372 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2373 * common/scoped_mmap.c: New file.
2374 * common/scoped_mmap.h (destroy): New method.
2375 (~scoped_mmap, reset): Use destroy.
2376 (scoped_mmap): New move constructor.
2377 (mmap_file): New declaration.
2378 * unittests/scoped_mmap-selftests.c (test_normal,
2379 test_invalid_filename, run_tests): New functions.
2380 (_initialize_scoped_mmap_selftests): Register selftest.
2382 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2384 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2385 (read_gdb_index_from_buffer): ... this. Remove section
2386 parameter, add buffer parameter.
2387 (get_gdb_index_contents_ftype,
2388 get_gdb_index_contents_dwz_ftype): New typedefs.
2389 (dwarf2_read_gdb_index): Add callback parameters to get the
2391 (get_gdb_index_contents_from_section): New.
2392 (dwarf2_initialize_objfile): Update call to
2393 dwarf2_read_gdb_index.
2395 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2397 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2398 (gdb_open_cloexec): Likewise.
2399 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2400 (commandline_from_pid): Likewise.
2401 (linux_xfer_osdata_threads): Likewise.
2402 (linux_xfer_osdata_fds): Likewise.
2403 * ada-lang.c (is_package_name): Likewise.
2404 * auxv.c (procfs_xfer_auxv): Likewise.
2405 * breakpoint.c (print_one_breakpoint_location): Use
2407 (print_one_catch_solib): Use string_printf.
2408 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2409 (add_pe_forwarded_sym): Likewise.
2410 * dwarf2read.c (create_type_unit_group): Likewise.
2411 (build_error_marker_type): Likewise.
2412 * infcall.c (get_function_name): Likewise.
2413 * valprint.c (print_converted_chars_to_obstack): Likewise.
2414 * xtensa-tdep.c (xtensa_register_type): Likewise.
2416 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2418 * remote.c (remote_target::download_tracepoint): Fix format
2421 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2423 * tracefile.c: Include common/byte-vector.h.
2424 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2425 with trace_regblock_size if needed. Update uses of buf.
2427 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2429 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2430 std::vector<unsigned char>.
2431 * tracepoint.c (collection_list::collection_list): Remove
2432 m_regs_mask initializer from initializer list. Resize
2433 m_regs_mask using the largest remote register number.
2434 (collection_list::add_remote_register): Remove size check on
2435 m_regs_mask. Use at to access element.
2436 (collection_list::stringify): Change type of temp_buf to
2437 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2438 stringify the register mask. Use pack_hex_byte for the register
2441 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2443 * tracepoint.h (class collection_list) <add_register>: Remove.
2444 <add_remote_register, add_ax_registers, add_local_register>:
2446 <add_memrange>: Add scope parameter.
2447 * tracepoint.c (encode_actions_1): Likewise.
2448 (collection_list::add_register): Rename to ...
2449 (collection_list::add_remote_register): ... this. Update
2451 (collection_list::add_ax_registers, add_local_register): New
2453 (collection_list::add_memrange): Add scope parameter. Call
2454 add_local_register instead of add_register.
2455 (finalize_tracepoint_aexpr): New function.
2456 (collection_list::collect_symbol): Update calls to add_memrange.
2457 Call add_local_register instead of add_register. Call
2458 add_ax_registers. Call finalize_tracepoint_aexpr.
2459 (encode_actions_1): Get remote regnos for $reg action. Call
2460 add_remote_register, add_ax_registers, and add_local_register.
2461 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2462 (validate_actionline): Call finalize_tracepoint_aexpr.
2464 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2466 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2467 Replace array buf with gdb::char_vector buf, of size
2468 get_remote_packet_size (). Replace references to buf and
2469 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2470 and xsnprintf with snprintf. Raise errors if the buffer is too
2473 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2475 * remote.c (remote_target::download_tracepoint): Fix the has_more
2476 predicate in the QTDP action list iteration.
2478 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2480 * remote.c (remote_target::download_tracepoint): Fix indentation
2483 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2485 * proc-api.c (_initialize_proc_api): Remove c, unused.
2486 * procfs.c (procfs_init_inferior): Remove signals, unused.
2487 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2490 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2491 Andrew Burgess <andrew.burgess@embecosm.com>
2493 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2494 'W_STOPCODE (0)' as this could be ambiguous.
2496 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2498 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2499 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2502 2018-08-02 Tom Tromey <tom@tromey.com>
2505 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2507 (process_structure_scope): Likewise.
2509 2018-08-02 Xavier Roirand <roirand@adacore.com>
2512 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2515 2018-08-02 Tom Tromey <tom@tromey.com>
2517 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2518 (darwin_suspend_inferior, darwin_resume_inferior)
2519 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2520 (darwin_check_new_threads): Check result of get_darwin_inferior.
2522 2018-07-31 Joel Brobecker <brobecker@adacore.com>
2526 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2528 * varobj.c (varobj_get_path_expr_parent): Report an error if
2529 parent is a dynamic varobj.
2531 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2533 * gnulib/aclocal.m4: Re-generate.
2534 * gnulib/config.in: Re-generate.
2535 * gnulib/configure: Re-generate.
2536 * gnulib/import/Makefile.in: Re-generate.
2537 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2538 * gnulib/import/m4/onceonly.m4: Re-generate.
2540 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2542 * target-descriptions.c (struct xml_test_tdesc): New.
2543 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2544 (record_xml_tdesc): Update.
2545 (maintenance_check_xml_descriptions): Update.
2546 * target-descriptions.h (record_xml_tdesc): Update comment.
2548 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2550 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2551 checking array bounds are defined.
2553 2018-07-30 Tom Tromey <tom@tromey.com>
2555 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2556 irreflexivity violation.
2558 2018-07-30 Tom Tromey <tom@tromey.com>
2560 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2561 * value.c (unpack_long): Remove lint code.
2562 * valops.c (value_ind): Remove lint code.
2563 * valarith.c (value_x_binop, value_x_unop, value_equal)
2564 (value_pos): Remove lint code.
2566 2018-07-28 Tom de Vries <tdevries@suse.de>
2568 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2569 with undefined upper bound as <optimized out>.
2571 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2573 * gcore.in: Rename variable "name" to "prefix". Expand
2576 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2578 * windows-nat.c (windows_nat_target::create_inferior): Update to
2579 call close() in global namespace.
2581 2018-07-26 Tom Tromey <tom@tromey.com>
2583 * dwarf-index-write.c (add_address_entry): Don't add objfile
2585 * dbxread.c (find_stab_function): Rename from
2586 find_stab_function_addr. Return a bound_minimal_symbol.
2587 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2588 Don't add objfile offsets.
2589 (end_psymtab): Use raw_text_low, raw_text_high,
2590 MSYMBOL_VALUE_RAW_ADDRESS.
2591 (read_ofile_symtab): Update.
2592 (process_one_symbol): Update.
2593 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2595 (dw2_relocate): Remove.
2596 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2598 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2600 (process_psymtab_comp_unit_reader, add_partial_symbol)
2601 (add_partial_subprogram, dwarf2_ranges_read): Update.
2602 (load_partial_dies): Update.
2603 (add_address_entry): Don't add objfile offsets.
2604 (dwarf2_build_include_psymtabs): Update.
2605 (create_addrmap_from_aranges): Don't add objfile offsets.
2606 (dw2_find_pc_sect_compunit_symtab): Update.
2607 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2608 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2610 (parse_partial_symbols): Don't add objfile offsets. Use
2611 raw_text_low, raw_text_high. Update.
2612 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2613 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2614 or call 'relocate' quick function. Clear psymbol_map.
2615 * psympriv.h (struct partial_symbol) <address>: Add section
2617 <set_unrelocated_address>: Rename from set_address.
2618 <raw_text_low, raw_text_high>: New methods.
2619 <text_low, text_high>: Add objfile parameter.
2620 (add_psymbol_to_bcache): Add 'section' parameter. Call
2621 set_unrelocated_address.
2622 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2623 (find_pc_psymbol): Update.
2624 (fixup_psymbol_section, relocate_psymtabs): Remove.
2625 (dump_psymtab, psym_functions): Update.
2626 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2628 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2629 (start_psymtab_common): Update.
2630 * symfile-debug.c (debug_qf_relocate): Remove.
2631 (debug_sym_quick_functions): Update.
2632 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2633 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2636 2018-07-26 Tom Tromey <tromey@redhat.com>
2638 * dbxread.c (end_psymtab): Use text_high_valid and
2640 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2641 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2642 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2644 <text_low_valid, text_high_valid>: New fields.
2645 <set_text_low, set_text_high>: Update.
2646 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2648 2018-07-26 Tom Tromey <tom@tromey.com>
2650 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2652 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2653 textlow and texthigh fields.
2654 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2656 * mdebugread.c (parse_lines, parse_partial_symbols)
2657 (psymtab_to_symtab_1): Update.
2658 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2659 Rename fields. Update comment. Now private.
2660 <text_low, text_high, set_text_low, set_text_high>: New methods.
2661 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2662 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2663 (start_psymtab_common, maintenance_info_psymtabs)
2664 (maintenance_check_psymtabs): Update.
2665 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2667 (scan_xcoff_symtab): Update.
2669 2018-07-26 Tom Tromey <tromey@redhat.com>
2671 * psympriv.h (struct partial_symbol) <unrelocated_address,
2672 address, set_address>: New methods.
2673 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2674 (fixup_psymbol_section, relocate_psymtabs): Update.
2675 (print_partial_symbols): Add 'objfile' parameter. Update.
2676 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2679 2018-07-26 Tom Tromey <tom@tromey.com>
2681 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2682 (debug_names::write_psymbols): Update.
2683 * psympriv.h (struct partial_symbol): Derive from
2684 general_symbol_info.
2685 <obj_section>: New method.
2686 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2687 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2688 (find_pc_sect_psymbol, fixup_psymbol_section)
2689 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2690 (print_partial_symbols, recursively_search_psymtabs)
2691 (compare_psymbols, psymbol_hash, psymbol_compare)
2692 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2693 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2695 2018-07-26 Tom Tromey <tromey@redhat.com>
2697 * dbxread.c (end_psymtab): Remove dead code.
2699 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2701 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2702 DWARF unwinders are disabled.
2703 * dwarf2-frame.c: Add dwarf2read.h include.
2704 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2706 (dwarf2_frame_unwinders_enabled_p): Define.
2707 (show_dwarf_unwinders_enabled_p): New function.
2708 (_initialize_dwarf2_frame): Register switch to control DWARF
2710 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2711 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2712 (show_dwarf_cmdlist): Remove static keyword.
2713 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2714 (show_dwarf_cmdlist): Declare.
2715 * NEWS: Document new feature.
2717 2018-07-26 Tom de Vries <tdevries@suse.de>
2719 PR breakpoints/23366
2720 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2722 2018-07-26 Tom de Vries <tdevries@suse.de>
2724 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2725 DW_AT_count can't be translated to a dynamic prop.
2727 2018-07-25 Tom de Vries <tdevries@suse.de>
2729 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2732 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2734 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2736 2018-07-25 Joel Brobecker <brobecker@adacore.com>
2738 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2740 2018-07-24 Keith Seitz <keiths@redhat.comt
2743 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2744 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2745 instead of add_symbol_to_list.
2746 (read_file_scope): Call prepare_one_comp_unit before reading
2749 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2751 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2753 2018-07-24 Tom Tromey <tom@tromey.com>
2755 * utils.c (malloc, realloc, free): Don't declare.
2756 * configure, config.in: Rebuild.
2757 * configure.ac: Don't check for declarations of free, malloc, or
2760 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2762 * aarch64-linux-nat.c
2763 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2765 * arm-linux-nat.c (fetch_regs): Likewise.
2766 (store_regs): Likewise.
2767 (fetch_vfp_regs): Likewise.
2768 (store_vfp_regs): Likewise.
2769 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2770 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2771 (arm_linux_nat_target::insert_watchpoint): Likewise.
2772 (arm_linux_nat_target::remove_watchpoint): Likewise.
2773 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2775 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2777 * ppc-linux-nat.c (fetch_register): Likewise.
2778 (fetch_all_gp_regs): Likewise.
2779 (fetch_ppc_registers): Likewise.
2780 (store_all_gp_regs): Likewise.
2781 (store_ppc_registers): Likewise.
2782 (hwdebug_insert_point): Likewise.
2783 (can_use_watchpoint_cond_accel): Likewise.
2784 * remote-sim.c (gdb_os_write_stdout): Likewise.
2786 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2787 Tom Tromey <tom@tromey.com>
2789 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
2791 * configure: Rebuild.
2793 2018-07-22 Tom Tromey <tom@tromey.com>
2795 * regformats/regdat.sh: Define xmltarget_${name} inside
2796 #ifndef IN_PROCESS_AGENT.
2798 2018-07-22 Tom Tromey <tom@tromey.com>
2800 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
2802 2018-07-22 Tom Tromey <tom@tromey.com>
2804 * symfile.c (reread_symbols): Notify iter, not objfile.
2806 2018-07-22 Tom Tromey <tom@tromey.com>
2808 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
2810 (ravenscar_thread_target::prepare_to_store): Likewise.
2812 2018-07-22 Tom Tromey <tom@tromey.com>
2814 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
2815 unused variable. Call value_fetch_lazy when needed.
2816 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2817 Remove unused variable. Call value_fetch_lazy when needed.
2819 2018-07-22 Tom Tromey <tom@tromey.com>
2821 * m32c-tdep.c (mark_dma): Return void.
2822 (make_regs): Remove unused declarations.
2824 2018-07-22 Tom Tromey <tom@tromey.com>
2826 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
2827 cmdscm_get_valid_command_smob_arg_unsafe for effect.
2828 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
2829 bkscm_get_valid_block_smob_arg_unsafe for effect.
2831 2018-07-22 Tom Tromey <tom@tromey.com>
2833 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
2836 2018-07-22 Tom Tromey <tom@tromey.com>
2838 * windows-nat.c (saved_context): Conditionally define.
2839 * remote.c (remote_target::remote_btrace_maybe_reopen):
2840 Conditionally declare "warned".
2841 * inflow.c (sigquit_ours): Conditionally define.
2842 (new_tty): Move "tty" declaration inside #if.
2843 * guile/guile.c (guile_datadir): Conditionally define.
2844 * charset.c (set_be_le_names): Move some declarations inside #if.
2845 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
2847 (parse_xml_btrace_conf): Likewise.
2849 2018-07-22 Tom Tromey <tom@tromey.com>
2851 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
2853 2018-07-22 Tom Tromey <tom@tromey.com>
2855 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
2856 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
2857 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
2858 * buildsym-legacy.c (get_macro_table): Remove unused variable.
2859 * stack.c (frame_apply_level_command): Remove unused variable.
2860 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
2861 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
2862 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
2864 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
2865 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
2866 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
2868 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
2869 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
2871 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
2872 Remove unused variable.
2873 * cli/cli-script.c (recurse_read_control_structure): Remove unused
2875 * common/tdesc.c (print_xml_feature::visit): Remove unused
2877 * compile/compile-object-load.c (store_regs): Remove unused
2879 * complaints.c (clear_complaints): Remove unused variable.
2880 * corelow.c (core_target_open): Remove unused variable.
2881 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
2883 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
2885 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
2887 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
2889 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
2891 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
2893 * ia64-tdep.c (examine_prologue): Remove unused variable.
2894 * infcall.c (run_inferior_call): Remove unused variable.
2895 * inferior.c (exit_inferior): Remove unused variable.
2896 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
2897 * linespec.c (decode_line_2): Remove unused variable.
2898 * linux-nat.c (super_close): Remove.
2899 * linux-tdep.c (linux_info_proc): Remove unused variable.
2900 * mi/mi-main.c (mi_execute_command): Remove unused variable.
2901 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
2902 Remove unused variable.
2903 * parse.c (find_minsym_type_and_address): Remove unused variable.
2904 * printcmd.c (info_symbol_command, printf_floating): Remove unused
2906 * python/py-breakpoint.c (bppy_set_commands): Remove unused
2908 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
2910 * record-btrace.c (record_btrace_target::store_registers): Remove
2912 (cmd_show_record_btrace_cpu): Remove unused variable.
2913 * riscv-tdep.c (riscv_register_reggroup_p)
2914 (riscv_push_dummy_call, riscv_return_value): Remove unused
2916 * rust-exp.y (literal): Remove unused variable.
2917 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
2919 <STRUCTOP_ANONYMOUS>: Likewise.
2920 * s390-linux-tdep.c (s390_linux_init_abi_31)
2921 (s390_linux_init_abi_64): Remove unused variable.
2922 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
2923 (file_select_thread, net_windows_open, _initialize_ser_windows):
2924 Remove unused variables.
2925 * symtab.c (find_pc_sect_line): Remove unused variable.
2926 * target-memory.c (compute_garbled_blocks): Remove unused
2928 (target_write_memory_blocks): Remove unused variable.
2929 * target.c (target_stack::unpush): Remove unused variables.
2930 * tracepoint.c (start_tracing, all_tracepoint_actions)
2931 (merge_uploaded_trace_state_variables)
2932 (print_one_static_tracepoint_marker): Remove unused variable.
2933 * unittests/basic_string_view/element_access/char/1.cc (test01):
2934 Remove unused variable.
2935 * windows-nat.c (windows_continue, windows_add_all_dlls)
2936 (do_initial_windows_stuff, windows_nat_target::create_inferior):
2937 Remove unused variables.
2939 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2941 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
2942 attr_profile in HAVE_ELF.
2943 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
2946 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
2948 * frame.c (frame_register_unwind): Change parameter name.
2949 (frame_unwind_register): Likewise.
2950 (frame_unwind_register_value): Likewise.
2951 (frame_unwind_register_signed): Likewise.
2952 (frame_unwind_register_unsigned): Likewise.
2953 * frame.h (frame_register_unwind): Likewise.
2954 (frame_unwind_register): Likewise.
2955 (frame_unwind_register_value): Likewise.
2956 (frame_unwind_register_signed): Likewise.
2957 (frame_unwind_register_unsigned): Likewise.
2958 (frame_unwind_arch): Likewise.
2960 2018-07-20 Maciej W. Rozycki <macro@mips.com>
2962 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
2965 2018-07-20 Maciej W. Rozycki <macro@mips.com>
2967 * mips-linux-nat.c (mips_linux_nat_target::read_description):
2968 Call `get_ptrace_pid' rather than extracting the ptrace PID by
2971 2018-07-20 Keith Seitz <keiths@redhat.com>
2973 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
2974 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
2975 m_compunit_symtab, m_language>: Add "m_" prefix.
2977 * buildsym.c: Update all uses.
2979 2018-07-20 Tom Tromey <tom@tromey.com>
2981 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
2982 * buildsym.h (record_line_ftype): Remove typedef.
2984 2018-07-20 Tom Tromey <tom@tromey.com>
2986 * buildsym-legacy.h (augment_type_symtab): Don't declare.
2987 (end_expandable_symtab): Likewise.
2988 (end_symtab_get_static_block): Likewise.
2989 (end_symtab_from_static_block): Likewise.
2990 * buildsym-legacy.c (augment_type_symtab): Remove.
2991 (end_expandable_symtab): Remove.
2992 (end_symtab_get_static_block): Remove.
2993 (end_symtab_from_static_block): Remove.
2995 2018-07-20 Tom Tromey <tom@tromey.com>
2997 * dwarf2read.c: Include buildsym.h.
2998 (struct dwarf2_cu) <builder>: New method.
2999 (fixup_go_packaging): Update.
3000 (process_full_comp_unit, process_full_type_unit): Update. Don't
3001 use scoped_free_pendings.
3002 (using_directives): Add "cu" parameter, remove "language".
3003 (read_import_statement, setup_type_unit_groups, )
3004 (read_func_scope, read_lexical_block_scope)
3005 (dwarf2_record_block_ranges, read_namespace): Update.
3006 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3007 (lnp_state_machine::handle_end_sequence): Update.
3008 (class lnp_state_machine) <m_cu>: New member.
3009 <m_record_line_callback>: Remove.
3010 <m_currently_recording_lines>: New member.
3011 (lnp_state_machine::handle_set_file): Update.
3012 (noop_record_line): Remove.
3013 (dwarf_record_line_p): Add cu parameter.
3014 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3015 (lnp_state_machine::record_line)
3016 (lnp_state_machine::lnp_state_machine)
3017 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3018 (dwarf_decode_lines): Update.
3019 (dwarf2_start_subfile): Add cu parameter.
3020 (dwarf2_start_symtab, new_symbol): Update.
3021 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3022 Remove dwarf2_per_objfile parameter.
3023 (dwarf_decode_macros): Update.
3025 2018-07-20 Tom Tromey <tom@tromey.com>
3027 * stabsread.c (define_symbol): Update.
3028 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3029 * dwarf2read.c (new_symbol): Update.
3030 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3031 * cp-namespace.c: Include buildsym.h.
3032 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3033 * buildsym-legacy.c (get_buildsym_compunit): New function.
3035 2018-07-20 Tom Tromey <tom@tromey.com>
3037 * xcoffread.c: Include buildsym-legacy.h.
3038 * windows-nat.c: Include buildsym-legacy.h.
3039 * stabsread.c: Include buildsym-legacy.h.
3040 * mdebugread.c: Include buildsym-legacy.h.
3041 * buildsym-legacy.h: New file.
3042 * buildsym-legacy.c: New file, from buildsym.c.
3043 * go32-nat.c: Include buildsym-legacy.h.
3044 * dwarf2read.c: Include buildsym-legacy.h.
3045 * dbxread.c: Include buildsym-legacy.h.
3046 * cp-namespace.c: Include buildsym-legacy.h.
3047 * coffread.c: Include buildsym-legacy.h.
3048 * buildsym.h: Move some contents to buildsym-legacy.h.
3049 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3051 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3053 2018-07-20 Tom Tromey <tom@tromey.com>
3055 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3056 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3057 (buildsym_compunit::buildsym_compunit)
3058 (buildsym_compunit::~buildsym_compunit)
3059 (buildsym_compunit::get_macro_table): Define.
3061 2018-07-20 Tom Tromey <tom@tromey.com>
3063 * buildsym.c (reset_symtab_globals): Remove.
3064 (buildsym_compunit::end_symtab_from_static_block): Update.
3065 (buildsym_compunit::augment_type_symtab): Update.
3066 (end_symtab_from_static_block): Call free_buildsym_compunit.
3067 (augment_type_symtab, end_symtab, end_expandable_symtab):
3070 2018-07-20 Tom Tromey <tom@tromey.com>
3072 * arch-utils.c: Do not include buildsym.h.
3073 * mipsread.c: Do not include buildsym.h.
3074 * machoread.c: Do not include buildsym.h.
3075 * elfread.c: Do not include buildsym.h.
3077 2018-07-20 Tom Tromey <tom@tromey.com>
3079 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3081 (buildsym_compunit): Add new constructor.
3082 (struct buildsym_compunit) <get_last_source_file, finish_block,
3083 record_block_range, start_subfile, patch_subfile_names,
3084 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3085 set_last_source_start_addr, get_last_source_start_addr,
3086 get_local_using_directives, set_local_using_directives,
3087 get_global_using_directives, outermost_context_p,
3088 get_current_context_stack, get_context_stack_depth,
3089 get_current_subfile, get_local_symbols, get_file_symbols,
3090 get_global_symbols, record_debugformat, record_producer,
3091 push_context, pop_context, end_symtab_get_static_block,
3092 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3094 <record_pending_block, finish_block_internal, make_blockvector,
3095 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3099 2018-05-22 Tom Tromey <tom@tromey.com>
3101 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3103 (finish_block_internal): Update.
3105 2018-07-20 Tom Tromey <tom@tromey.com>
3107 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3109 (finish_block_internal): Update.
3111 2018-07-20 Tom Tromey <tom@tromey.com>
3113 * buildsym.h (EXTERN): Don't define or undef.
3114 * buildsym.c (EXTERN): Don't define.
3116 2018-07-20 Tom Tromey <tom@tromey.com>
3118 * buildsym.c: Remove TODO comment.
3120 2018-07-20 Tom Tromey <tom@tromey.com>
3122 * coffread.c (coff_symtab_read): Update.
3123 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3124 (xcoff_new_init): Update.
3125 * mipsread.c (mipscoff_new_init): Update.
3126 * mdebugread.c (mdebug_build_psymtabs): Update.
3127 * elfread.c (elf_new_init): Update.
3128 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3130 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3131 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3132 (stabsect_build_psymtabs): Update.
3133 * buildsym.h (buildsym_init): Don't declare.
3134 * buildsym.c: Update comment.
3135 (prepare_for_building): Remove.
3136 (start_symtab, restart_symtab): Update.
3137 (reset_symtab_globals): Update comment.
3138 (buildsym_init): Remove.
3140 2018-07-20 Tom Tromey <tom@tromey.com>
3142 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3143 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3144 (read_enum_type, common_block_start, common_block_end)
3145 (cleanup_undefined_types_1, finish_global_stabs): Update.
3146 * mdebugread.c (psymtab_to_symtab_1): Update.
3147 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3148 (read_lexical_block_scope, new_symbol): Update.
3149 * dbxread.c (process_one_symbol): Update.
3150 * coffread.c (coff_symtab_read, process_coff_symbol)
3151 (coff_read_enum_type): Update.
3152 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3154 (get_local_symbols, get_file_symbols, get_global_symbols): New
3156 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3158 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3159 (~scoped_free_pendings): Update.
3160 (finish_block, prepare_for_building, reset_symtab_globals)
3161 (end_symtab_get_static_block, end_symtab_with_blockvector)
3162 (augment_type_symtab, push_context): Update.
3163 (get_local_symbols, get_file_symbols, get_global_symbols): New
3165 (buildsym_init): Update.
3167 2018-07-20 Tom Tromey <tom@tromey.com>
3169 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3170 (process_full_type_unit): Likewise.
3171 (dwarf2_start_symtab): Set list_in_scope.
3173 2018-07-20 Tom Tromey <tom@tromey.com>
3175 * dwarf2read.c (process_psymtab_comp_unit_reader)
3176 (build_type_psymtabs_reader): Do not set list_in_scope.
3178 2018-07-20 Tom Tromey <tom@tromey.com>
3180 * buildsym.c (free_pendings): Remove.
3181 (add_symbol_to_list, scoped_free_pendings)
3182 (finish_block_internal, buildsym_init): Update.
3184 2018-07-20 Tom Tromey <tom@tromey.com>
3186 * xcoffread.c (read_xcoff_symtab): Update.
3187 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3189 * dbxread.c (process_one_symbol): Update.
3190 * coffread.c (coff_symtab_read): Update.
3191 * buildsym.h (finish_block): Update.
3192 * buildsym.c (finish_block): Remove "listhead" argument.
3193 (end_symtab_get_static_block): Update.
3195 2018-07-20 Tom Tromey <tom@tromey.com>
3197 * buildsym.h (class scoped_free_pendings): Remove constructor.
3198 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3200 <m_pending_block_obstack, m_pending_blocks>: New members.
3201 (pending_block_obstack, pending_blocks): Remove.
3202 (scoped_free_pendings::scoped_free_pendings): Default.
3203 (~scoped_free_pendings): Update.
3204 (free_pending_blocks): Remove.
3205 (finish_block_internal, record_pending_block, make_blockvector)
3206 (end_symtab_get_static_block, augment_type_symtab, push_context)
3207 (buildsym_init): Update.
3209 2018-07-20 Tom Tromey <tom@tromey.com>
3211 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3212 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3214 (pending_addrmap, pending_addrmap_obstack)
3215 (pending_addrmap_interesting): Remove.
3216 (scoped_free_pendings, record_block_range, make_blockvector)
3217 (prepare_for_building, reset_symtab_globals, buildsym_init):
3220 2018-07-20 Tom Tromey <tom@tromey.com>
3222 * xcoffread.c (process_linenos): Update.
3223 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3224 * mdebugread.c (psymtab_to_symtab_1): Update.
3225 * dwarf2read.c (setup_type_unit_groups)
3226 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3227 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3228 * dbxread.c (process_one_symbol): Update.
3229 * coffread.c (coff_symtab_read, enter_linenos)
3230 (process_coff_symbol): Update.
3231 * buildsym.h (current_subfile): Don't declare.
3232 (get_current_subfile): Declare.
3233 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3235 (start_subfile, free_buildsym_compunit, push_subfile)
3236 (prepare_for_building, start_symtab): Update.
3237 (get_current_subfile): New function.
3239 2018-07-20 Tom Tromey <tom@tromey.com>
3241 * coffread.c (coff_symtab_read): Update.
3242 * xcoffread.c (read_xcoff_symtab): Update.
3243 * dwarf2read.c (new_symbol): Update.
3244 (read_func_scope, read_lexical_block_scope): Update.
3245 * dbxread.c (process_one_symbol): Update.
3246 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3247 (outermost_context_p): Remove macro.
3248 (outermost_context_p, get_current_context_stack)
3249 (get_context_stack_depth): Declare.
3250 (pop_context): Return struct context_stack.
3251 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3253 (context_stack_size): Remove.
3254 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3255 (prepare_for_building, end_symtab_get_static_block)
3256 (augment_type_symtab, push_context): Update.
3257 (pop_context): Return struct context_stack.
3258 (outermost_context_p, get_current_context_stack)
3259 (get_context_stack_depth): New functions.
3260 (buildsym_init): Update.
3262 2018-07-20 Tom Tromey <tom@tromey.com>
3264 * rust-exp.y: Now a pure parser. Update all rules.
3265 (%union): Move earlier.
3266 (current_parser, work_obstack): Remove globals.
3267 (rust_parser, ~rust_parser): Update.
3268 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3269 lex_character, lex_number, lex_string, lex_identifier,
3270 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3271 convert_name, convert_params_to_expression,
3272 convert_ast_to_expression, ast_basic_type, ast_operation,
3273 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3274 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3275 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3276 ast_array_type, ast_slice_type, ast_reference_type,
3277 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3278 (rust_parse): Update.
3279 (rustyyerror, rustyylex): Add parser parameter.
3280 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3281 (rust_lex_stringish_test, rust_lex_test_sequence)
3282 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3283 (rust_lex_test_push_back, rust_lex_tests): Update.
3285 2018-07-19 Pedro Alves <palves@redhat.com>
3287 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3288 gdb::unique_xmalloc_ptr.
3289 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3290 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3291 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3292 copy-initialization.
3293 * guile/scm-pretty-print.c (ppscm_print_children): Use
3294 gdb::unique_xmalloc_ptr instead of cleanups.
3295 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3296 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3297 gdb::unique_xmalloc_ptr.
3298 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3299 Adjust to use gdb::unique_xmalloc_ptr.
3300 * guile/scm-utils.c (extract_arg): Adjust.
3301 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3302 gdb::unique_xmalloc_ptr instead of a cleanup.
3304 2018-07-19 Tom Tromey <tom@tromey.com>
3306 * utils.c (do_value_free_to_mark)
3307 (make_cleanup_value_free_to_mark): Remove.
3308 * utils.h (make_cleanup_value_free_to_mark): Remove.
3310 2018-07-19 Pedro Alves <palves@redhat.com>
3312 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3313 forwarding reference.
3315 2018-07-18 Pedro Alves <palves@redhat.com>
3317 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3318 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3321 2018-07-18 Pedro Alves <palves@redhat.com>
3323 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3325 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3327 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3328 directly instead of a cleanup.
3329 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3330 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3331 (vlscm_binop_gdbthrow): New, factored out from ...
3332 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3333 (vlscm_rich_compare): Use gdbscm_wrap.
3334 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3335 instead of a cleanup.
3336 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3338 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3339 Use xfree directly instead of a cleanup.
3340 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3341 Adjust to use gdbscm_wrap and scoped_value_mark.
3342 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3343 (gdbscm_value_address, gdbscm_value_dereference)
3344 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3346 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3347 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3349 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3350 gdbscm_wrap and scoped_value_mark.
3351 (gdbscm_value_to_string): Use xfree directly instead of a
3352 cleanup. Move 'buffer' unique_ptr to TRY scope.
3353 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3354 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3356 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3357 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3359 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3362 2018-07-18 Tom de Vries <tdevries@suse.de>
3364 * findvar.c (default_read_var_value): Also resolve dynamic type for
3365 LOC_OPTIMIZED_OUT vars.
3367 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3369 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3372 2018-07-17 Tom Tromey <tom@tromey.com>
3374 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3375 (compute_enum_list, pascm_set_param_value_x)
3376 (gdbscm_parameter_value): Update.
3377 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3378 (gdbscm_scm_to_host_string): Update.
3379 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3381 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3382 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3383 * guile/scm-string.c (gdbscm_scm_to_string): Return
3385 (gdbscm_scm_to_host_string): Likewise.
3387 2018-07-17 Tom Tromey <tom@tromey.com>
3389 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3390 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3391 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3392 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3395 2018-07-17 Tom Tromey <tom@tromey.com>
3397 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3398 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3400 * guile/scm-cmd.c (cmdscm_function): Update.
3401 * guile/scm-pretty-print.c
3402 (ppscm_print_exception_unless_memory_error): Update.
3403 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3404 Return unique_xmalloc_ptr.
3406 2018-07-17 Tom Tromey <tom@tromey.com>
3408 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3411 2018-07-17 Jim Wilson <jimw@sifive.com>
3413 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3414 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3415 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3416 unecessary braces after EF_RISCV_RVC test. Delete call to
3417 set_gdbarch_decr_pc_after_break.
3419 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3420 RISCV_LAST_FP_REGNUM + 1.
3421 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3423 2018-07-17 Tom Tromey <tom@tromey.com>
3425 * configure.ac: Remove --disable-gdbcli.
3426 * configure: Rebuild.
3427 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3428 (SUBDIR_CLI_CFLAGS): Remove.
3429 (SFILES): Use SUBDIR_CLI_SRCS.
3430 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3432 2018-07-17 Tom Tromey <tom@tromey.com>
3435 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3437 2018-07-16 Jim Wilson <jimw@sifive.com>
3439 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3441 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3443 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3445 (libunwind_frame_sniffer): Likewise.
3446 (libunwind_frame_prev_register): Likewise.
3447 (libunwind_sigtramp_frame_sniffer): Likewise.
3448 * ia64-tdep.c (ia64_access_reg): Likewise.
3449 (ia64_access_rse_reg): Likewise.
3450 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3451 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3453 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3455 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3457 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3459 * remote-sim.c (gdbsim_target::close,
3460 gdbsim_target::mourn_inferior): Remove unused variables.
3462 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3464 * ia64-tdep.c (ktab_buf): New global.
3465 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3466 (get_kernel_table): Adjust.
3468 2018-07-16 Tom Tromey <tom@tromey.com>
3470 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3471 * dwarf2read.c (using_directives, new_symbol): Use
3472 outermost_context_p.
3473 * dbxread.c (process_one_symbol): Use outermost_context_p.
3474 * coffread.c (coff_symtab_read): Use outermost_context_p.
3476 2018-07-16 Tom Tromey <tom@tromey.com>
3478 * dwarf2read.c (using_directives, read_func_scope)
3479 (read_lexical_block_scope): Update.
3480 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3481 * buildsym.h (local_using_directives, global_using_directives):
3483 (get_local_using_directives, set_local_using_directives)
3484 (get_global_using_directives): Declare.
3485 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3486 m_global_using_directives>: New members.
3487 (finish_block_internal, prepare_for_building)
3488 (reset_symtab_globals, end_symtab_get_static_block)
3489 (push_context): Update.
3490 (get_local_using_directives, set_local_using_directives)
3491 (get_global_using_directives): New functions.
3492 (buildsym_init): Update.
3494 2018-07-16 Tom Tromey <tom@tromey.com>
3496 * xcoffread.c (xcoff_initial_scan): Don't call
3497 free_pending_blocks.
3498 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3499 * buildsym.h (class scoped_free_pendings): Add constructor.
3500 (free_pending_blocks): Don't declare.
3501 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3502 (free_pending_blocks): Now static.
3504 2018-07-16 Tom Tromey <tom@tromey.com>
3506 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3507 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3509 (struct subfile_stack): Remove.
3510 (subfile_stack): Remove.
3511 (push_subfile, pop_subfile, buildsym_init): Update.
3513 2018-07-16 Tom Tromey <tom@tromey.com>
3515 * buildsym.c (push_subfile): Use gdb_assert.
3516 (pop_subfile): Use gdb_assert.
3518 2018-07-16 Tom Tromey <tom@tromey.com>
3520 * buildsym.h (merge_symbol_lists): Remove.
3521 * buildsym.c (merge_symbol_lists): Remove.
3523 2018-07-16 Tom Tromey <tom@tromey.com>
3525 * stabsread.c (scan_file_globals): Update comment.
3526 * stabsread.h (scan_file_globals): Move from buildsym.h.
3527 * buildsym.h (scan_file_globals): Move to stabsread.h.
3529 2018-07-16 Tom Tromey <tom@tromey.com>
3531 * xcoffread.c (xcoff_new_init): Update.
3532 * mipsread.c (mipscoff_new_init): Update.
3533 * mdebugread.c (mdebug_build_psymtabs): Update.
3534 * elfread.c (elf_new_init): Update.
3535 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3536 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3537 * buildsym.h (buildsym_new_init): Don't declare.
3538 * buildsym.c (buildsym_new_init): Remove.
3540 2018-07-16 Tom Tromey <tom@tromey.com>
3542 * stabsread.h (within_function): Move from buildsym.h.
3543 * stabsread.c (start_stabs): Clear within_function.
3544 * coffread.c (coff_start_symtab): Clear within_function.
3545 * buildsym.h (within_function): Move to stabsread.h.
3546 * buildsym.c (prepare_for_building): Update.
3548 2018-07-16 Tom Tromey <tom@tromey.com>
3550 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3551 * dwarf2read.c (dwarf2_start_symtab): Don't set
3552 processing_gcc_compilation.
3553 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3555 2018-07-16 Tom Tromey <tom@tromey.com>
3557 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3558 (next_symbol_text_func): Move from buildsym.h.
3559 * stabsread.c (hashname): Move from buildsym.c.
3560 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3561 (next_symbol_text_func, hashname): Move to stabsread.h.
3562 * buildsym.c: Don't include bcache.h
3563 (hashname): Move to stasbread.c.
3565 2018-07-16 Tom Tromey <tom@tromey.com>
3567 * buildsym.h (context_stack_size): Don't declare.
3568 * buildsym.c (context_stack_size): New global.
3570 2018-07-16 Tom Tromey <tom@tromey.com>
3572 * dbxread.c (processing_acc_compilation): New global.
3573 * buildsym.h (processing_acc_compilation): Don't declare.
3575 2018-07-16 Tom Tromey <tom@tromey.com>
3577 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3578 * dbxread.c (read_ofile_symtab): Update.
3579 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3580 * buildsym.h (last_source_start_addr): Remove.
3581 (set_last_source_start_addr, get_last_source_start_addr):
3583 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3585 (struct buildsym_compunit) <m_last_source_start_addr>: New
3587 (prepare_for_building): Remove start_addr parameter.
3588 (start_symtab, restart_symtab, end_symtab_get_static_block)
3589 (end_symtab_with_blockvector): Update.
3590 (set_last_source_start_addr, get_last_source_start_addr): New
3593 2018-07-16 Tom Tromey <tom@tromey.com>
3595 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3597 (have_line_numbers): Remove.
3598 (record_line, prepare_for_building, end_symtab_get_static_block)
3599 (augment_type_symtab): Update.
3601 2018-07-16 Tom Tromey <tom@tromey.com>
3603 * buildsym.c (~buildsym_compunit): Free the macro table.
3604 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3606 <m_pending_macros>: New member.
3607 (pending_macros): Remove.
3608 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3609 (reset_symtab_globals, end_symtab_get_static_block)
3610 (end_symtab_with_blockvector, augment_type_symtab)
3611 (buildsym_init): Update.
3613 2018-07-16 Tom Tromey <tom@tromey.com>
3615 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3617 (buildsym_compunit::set_last_source_file): New method.
3618 <m_last_source_file>: New member.
3619 (prepare_for_building): Remove "name" parameter.
3620 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3621 (last_source_file): Remove.
3622 (set_last_source_file, get_last_source_file): Update.
3624 2018-07-16 Tom Tromey <tom@tromey.com>
3626 * buildsym.c (prepare_for_building): Add assert.
3628 2018-07-16 Tom Tromey <tom@tromey.com>
3630 * buildsym.c (~buildsym_compunit): Update.
3631 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3632 (start_subfile, patch_subfile_names)
3633 (end_symtab_with_blockvector): Update.
3635 2018-07-16 Tom Tromey <tom@tromey.com>
3637 * buildsym.c (struct buildsym_compunit): Add constructor,
3638 destructor, initializers.
3639 (start_buildsym_compunit): Remove.
3640 (free_buildsym_compunit): Use "delete".
3641 (start_symtab, restart_symtab): Use "new".
3643 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3645 * symfile.c (set_objfile_default_section_offset): Remove struct
3648 2018-07-14 Stafford Horne <shorne@gmail.com>
3650 * (Responsible Maintainers): Add myself as or1k maintainer.
3652 2018-07-13 Tom Tromey <tom@tromey.com>
3654 * symfile.c (set_objfile_default_section_offset): Use extra braces
3657 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3659 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3662 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3664 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3665 unittests/cli-utils-selftests.c
3666 * unittests/cli-utils-selftests.c: New file.
3668 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3670 * NEWS: Mention new commands. Mention change to 'thread apply'.
3672 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3674 * thread.c (thr_try_catch_cmd): New function.
3675 (thread_apply_all_command): Handle qcs flags.
3676 (thread_apply_command): Handle qcs flags.
3677 (taas_command): New function.
3678 (tfaas_command): New function.
3679 (_initialize_thread): Update to setup the new commands 'taas
3680 and 'tfaas'. Change doc string for 'thread apply'.
3682 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3684 * stack.c: (trailing_outermost_frame): New function, mostly
3685 extracted from backtrace_command_1.
3686 (leading_innermost_frame): New function.
3687 (backtrace_command_1): Update to call trailing_outermost_frame.
3688 (frame_apply_command_count): New function.
3689 (frame_apply_level_command): New function.
3690 (frame_apply_all_command): New function.
3691 (frame_apply_command): New function.
3692 (faas_command): New function.
3693 (frame_cmd_list): New variable.
3694 (_initialize_stack): Update to setup the new commands 'frame apply'
3697 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3699 * cli-utils.c (number_or_range_parser::get_number): Only handle
3700 numbers or convenience var as numbers.
3701 (parse_flags): New function.
3702 (parse_flags_qcs): New function.
3703 (number_or_range_parser::finished): Ensure parsing end is detected
3704 before end of string.
3705 * cli-utils.h (parse_flags): New function.
3706 (parse_flags_qcs): New function.
3707 (number_or_range_parser): Remove m_finished bool.
3708 (number_or_range_parser::skip_range): Set m_in_range to false.
3710 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3712 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3715 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3716 Jan Kratochvil <jan.kratochvil@redhat.com>
3717 Paul Fertser <fercerpav@gmail.com>
3718 Tsutomu Seki <sekiriki@gmail.com>
3719 Pedro Alves <palves@redhat.com>
3721 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3722 'unittests/parse-connection-spec-selftests.c'.
3723 (COMMON_SFILES): Add 'common/netstuff.c'.
3724 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3725 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3726 * common/netstuff.c: New file.
3727 * common/netstuff.h: New file.
3728 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3729 (wait_for_connect): Update comment. New parameter
3730 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3731 Use 'sock' directly instead of 'scb->fd'.
3732 (try_connect): New function, with code from 'net_open'.
3733 (net_open): Rewrite main loop to deal with multiple
3734 sockets/addresses. Handle IPv6-style hostnames; implement
3735 support for IPv6 connections.
3736 * unittests/parse-connection-spec-selftests.c: New file.
3738 2018-07-11 Pedro Alves <palves@redhat.com>
3741 * remote.c (remote_target::remote_detach_pid): Call
3742 set_current_process.
3744 2018-07-11 Pedro Alves <palves@redhat.com>
3746 * h8300-tdep.c (h8300_gdbarch_init): Remove
3747 set_gdbarch_ecoff_reg_to_regnum calls.
3749 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3752 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3753 offsets/sizes for static members of a class/struct.
3755 2018-07-11 Alan Hayward <alan.hayward@arm.com>
3757 * target-descriptions.c (tdesc_register_bitsize): Rename.
3758 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3759 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3760 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3762 2018-07-10 Tom Tromey <tom@tromey.com>
3764 * breakpoint.c (moribund_locations): Now static and a
3766 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3767 (build_bpstat_chain, update_global_location_list)
3768 (breakpoint_retire_moribund): Update.
3769 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3772 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3774 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3775 (riscv_register_reggroup_p): Use new function, remove unneeded
3777 (riscv_push_dummy_call): Extend assert to compare against xlen or
3778 flen based on register type.
3780 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3782 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3784 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3786 * remote.c (show_hardware_watchpoint_limit): New function.
3787 (show_hardware_watchpoint_length_limit): New function.
3788 (show_hardware_breakpoint_limit): New function.
3789 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
3790 where appropriate, update help text.
3792 2018-07-09 Tom Tromey <tom@tromey.com>
3794 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
3795 (CLIBS): Don't mention NAT_CLIBS.
3797 2018-07-09 Tom Tromey <tom@tromey.com>
3799 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
3800 (LIBGDB_OBS, clean mostlyclean): Update.
3801 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
3803 2018-07-09 Tom Tromey <tom@tromey.com>
3805 * Makefile.in (%.c: %.y): Use ECHO_YACC.
3806 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
3807 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
3809 2018-07-09 Tom Tromey <tom@tromey.com>
3811 * Makefile.in (ALLDEPFILES): Remove exec.c.
3812 (COMMON_OBS): Remove exec.o.
3813 (COMMON_SFILES): Add exec.c.
3815 2018-07-09 Tom Tromey <tom@tromey.com>
3817 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
3819 2018-07-09 Tom Tromey <tom@tromey.com>
3821 * Makefile.in (clean mostlyclean): Remove stamp-version.
3822 (version.c): Depend on stamp-version.
3823 (stamp-version): New rule, from version.c rule.
3825 2018-07-09 Tom Tromey <tom@tromey.com>
3827 * Makefile.in (init.c): Depend on stamp-init.
3828 (stamp-init): New rule, from init.c rule.
3829 (clean mostlyclean): Remove stamp-init.
3831 2018-07-09 Tom Tromey <tom@tromey.com>
3833 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
3834 SUBDIR_GCC_COMPILE_SRCS.
3836 2018-07-09 Tom Tromey <tom@tromey.com>
3838 * Makefile.in (init.c): Remove some unused sed rules.
3840 2018-07-09 Tom Tromey <tom@tromey.com>
3842 * Makefile.in (TSOBS): Remove.
3843 (INIT_FILES): Update.
3844 (LIBGDB_OBS): Update.
3845 (COMMON_SFILES): Add inflow.c.
3846 (SFILES): Remove inflow.c.
3848 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3850 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
3852 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
3854 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
3855 get_saveloc_name, is_signal_frame_name, step_name,
3856 init_remote_name, create_addr_space_name,
3857 destroy_addr_space_name, search_unwind_table_name,
3858 find_dyn_list_name): Constify.
3860 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
3862 * darwin-nat.c (darwin_pthread_kill): New function.
3863 (darwin_resume_thread): Use darwin_pthread_kill.
3865 2018-07-05 Tom de Vries <tdevries@suse.de>
3867 * macroexp.c (macro_buffer) <operator=>: New member function.
3869 2018-07-04 Tom Tromey <tom@tromey.com>
3871 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
3873 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
3875 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
3876 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
3877 * maint.c: Likewise.
3880 2018-07-04 Joel Brobecker <brobecker@adacore.com>
3882 * NEWS: Create a new section for the next release branch.
3883 Rename the section of the current branch, now that it has
3886 2018-07-04 Joel Brobecker <brobecker@adacore.com>
3888 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
3889 * version.in: Bump version to 8.2.50.DATE-git.
3891 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3892 Pedro Alves <palves@redhat.com>
3894 * linux-nat.c (linux_init_ptrace): Rename to ...
3895 (linux_init_ptrace_procfs): ... this. Call
3896 linux_proc_init_warnings.
3897 (linux_nat_target::post_attach)
3898 (linux_nat_target::post_startup_inferior): Adjust.
3899 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
3900 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
3902 2018-07-04 Tom de Vries <tdevries@suse.de>
3904 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
3906 (read_comp_unit_head): ... here.
3908 2018-07-03 Tom Tromey <tom@tromey.com>
3910 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
3911 (stop_tracing, tstatus_command)
3912 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
3913 (print_one_static_tracepoint_marker): Update.
3914 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
3916 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
3918 (all_tracepoints, static_tracepoints_here): Return std::vector.
3920 2018-07-03 Tom Tromey <tom@tromey.com>
3922 * common/ptid.c (ptid_equal): Remove.
3923 * common/ptid.h (ptid_equal): Don't declare.
3924 * ada-tasks.c: Update.
3925 * breakpoint.c: Update.
3926 * common/agent.c: Update.
3927 * corelow.c: Update.
3928 * darwin-nat-info.c: Update.
3929 * darwin-nat.c: Update.
3931 * dtrace-probe.c: Update.
3932 * dummy-frame.c: Update.
3933 * fbsd-nat.c: Update.
3935 * gdbthread.h: Update.
3936 * gnu-nat.c: Update.
3937 * go32-nat.c: Update.
3938 * inf-loop.c: Update.
3939 * inf-ptrace.c: Update.
3940 * infcall.c: Update.
3944 * linux-fork.c: Update.
3945 * linux-nat.c: Update.
3946 * linux-thread-db.c: Update.
3947 * mi/mi-cmd-var.c: Update.
3948 * mi/mi-interp.c: Update.
3949 * mi/mi-main.c: Update.
3950 * nto-procfs.c: Update.
3951 * ppc-linux-tdep.c: Update.
3953 * python/py-inferior.c: Update.
3954 * python/py-record-btrace.c: Update.
3955 * python/py-record.c: Update.
3956 * ravenscar-thread.c: Update.
3957 * regcache.c: Update.
3958 * remote-sim.c: Update.
3960 * sol-thread.c: Update.
3963 * tui/tui-stack.c: Update.
3965 * windows-nat.c: Update.
3966 * windows-tdep.c: Update.
3968 2018-07-03 Tom Tromey <tom@tromey.com>
3970 * common/ptid.c (ptid_match): Remove.
3971 * common/ptid.h (ptid_match): Don't declare.
3972 * fbsd-nat.c: Update.
3975 * linux-nat.c: Update.
3976 * record-btrace.c: Update.
3977 * regcache.c: Update.
3980 2018-07-03 Tom Tromey <tom@tromey.com>
3982 * common/ptid.c (ptid_tid_p): Remove.
3983 * common/ptid.h (ptid_tid_p): Don't declare.
3984 * sol-thread.c: Update.
3986 2018-07-03 Tom Tromey <tom@tromey.com>
3988 * common/ptid.c (ptid_lwp_p): Remove.
3989 * common/ptid.h (ptid_lwp_p): Don't declare.
3990 * fbsd-nat.c: Update.
3991 * linux-nat.c: Update.
3992 * nat/linux-procfs.c: Update.
3993 * nat/x86-linux-dregs.c: Update.
3994 * sol-thread.c: Update.
3996 2018-07-03 Tom Tromey <tom@tromey.com>
3998 * common/ptid.c (ptid_is_pid): Remove.
3999 * common/ptid.h (ptid_is_pid): Don't declare.
4001 * linux-nat.c: Update.
4002 * mi/mi-interp.c: Update.
4006 2018-07-03 Tom Tromey <tom@tromey.com>
4008 * common/ptid.c (ptid_get_tid): Remove.
4009 * common/ptid.h (ptid_get_tid): Don't declare.
4010 * ada-tasks.c: Update.
4011 * aix-thread.c: Update.
4012 * bsd-uthread.c: Update.
4013 * darwin-nat.c: Update.
4014 * fbsd-nat.c: Update.
4015 * i386-darwin-nat.c: Update.
4017 * linux-tdep.c: Update.
4018 * nto-procfs.c: Update.
4019 * ppc-ravenscar-thread.c: Update.
4020 * python/py-infthread.c: Update.
4021 * ravenscar-thread.c: Update.
4022 * sol-thread.c: Update.
4023 * sparc-ravenscar-thread.c: Update.
4024 * windows-nat.c: Update.
4026 2018-07-03 Tom Tromey <tom@tromey.com>
4028 * common/ptid.c (ptid_get_lwp): Remove.
4029 * common/ptid.h (ptid_get_lwp): Don't declare.
4030 * aarch64-linux-nat.c: Update.
4031 * ada-tasks.c: Update.
4032 * aix-thread.c: Update.
4033 * amd64-linux-nat.c: Update.
4034 * arm-linux-nat.c: Update.
4035 * corelow.c: Update.
4036 * fbsd-nat.c: Update.
4037 * fbsd-tdep.c: Update.
4038 * gnu-nat.c: Update.
4039 * i386-cygwin-tdep.c: Update.
4040 * i386-gnu-nat.c: Update.
4041 * i386-linux-nat.c: Update.
4042 * ia64-linux-nat.c: Update.
4043 * inf-ptrace.c: Update.
4045 * linux-fork.c: Update.
4046 * linux-nat.c: Update.
4047 * linux-tdep.c: Update.
4048 * linux-thread-db.c: Update.
4049 * mips-linux-nat.c: Update.
4050 * nat/aarch64-linux-hw-point.c: Update.
4051 * nat/aarch64-linux.c: Update.
4052 * nat/linux-btrace.c: Update.
4053 * nat/linux-osdata.c: Update.
4054 * nat/linux-procfs.c: Update.
4055 * nat/x86-linux-dregs.c: Update.
4056 * obsd-nat.c: Update.
4057 * ppc-fbsd-nat.c: Update.
4058 * ppc-linux-nat.c: Update.
4060 * python/py-infthread.c: Update.
4061 * ravenscar-thread.c: Update.
4063 * s390-linux-nat.c: Update.
4064 * sol-thread.c: Update.
4065 * sol2-tdep.c: Update.
4066 * spu-linux-nat.c: Update.
4067 * x86-linux-nat.c: Update.
4068 * xtensa-linux-nat.c: Update.
4070 2018-07-03 Tom Tromey <tom@tromey.com>
4072 * common/ptid.c (ptid_get_pid): Remove.
4073 * common/ptid.h (ptid_get_pid): Don't declare.
4074 * aarch64-linux-nat.c: Update.
4075 * ada-lang.c: Update.
4076 * aix-thread.c: Update.
4077 * alpha-bsd-nat.c: Update.
4078 * amd64-fbsd-nat.c: Update.
4079 * amd64-linux-nat.c: Update.
4080 * arm-linux-nat.c: Update.
4081 * arm-nbsd-nat.c: Update.
4083 * break-catch-syscall.c: Update.
4084 * breakpoint.c: Update.
4085 * bsd-uthread.c: Update.
4086 * corelow.c: Update.
4088 * darwin-nat.c: Update.
4089 * fbsd-nat.c: Update.
4090 * fbsd-tdep.c: Update.
4092 * gnu-nat.c: Update.
4093 * hppa-nbsd-nat.c: Update.
4094 * hppa-obsd-nat.c: Update.
4095 * i386-fbsd-nat.c: Update.
4096 * ia64-linux-nat.c: Update.
4097 * inf-ptrace.c: Update.
4099 * inferior.c: Update.
4100 * inferior.h: Update.
4103 * linux-fork.c: Update.
4104 * linux-nat.c: Update.
4105 * linux-tdep.c: Update.
4106 * linux-thread-db.c: Update.
4107 * m68k-bsd-nat.c: Update.
4108 * mi/mi-interp.c: Update.
4109 * mi/mi-main.c: Update.
4110 * mips-linux-nat.c: Update.
4111 * mips-nbsd-nat.c: Update.
4112 * mips64-obsd-nat.c: Update.
4113 * nat/aarch64-linux-hw-point.c: Update.
4114 * nat/aarch64-linux.c: Update.
4115 * nat/linux-btrace.c: Update.
4116 * nat/linux-osdata.c: Update.
4117 * nat/linux-procfs.c: Update.
4118 * nat/x86-linux-dregs.c: Update.
4119 * nto-procfs.c: Update.
4120 * obsd-nat.c: Update.
4121 * ppc-linux-nat.c: Update.
4122 * ppc-nbsd-nat.c: Update.
4123 * ppc-obsd-nat.c: Update.
4124 * proc-service.c: Update.
4126 * python/py-inferior.c: Update.
4127 * python/py-infthread.c: Update.
4128 * ravenscar-thread.c: Update.
4130 * remote-sim.c: Update.
4132 * rs6000-nat.c: Update.
4133 * s390-linux-nat.c: Update.
4134 * sh-nbsd-nat.c: Update.
4135 * sol-thread.c: Update.
4136 * sparc-nat.c: Update.
4137 * sparc64-tdep.c: Update.
4138 * spu-linux-nat.c: Update.
4139 * spu-tdep.c: Update.
4140 * target-debug.h: Update.
4143 * tid-parse.c: Update.
4144 * tracefile-tfile.c: Update.
4145 * vax-bsd-nat.c: Update.
4146 * windows-nat.c: Update.
4147 * x86-linux-nat.c: Update.
4148 * x86-nat.c: Update.
4150 2018-07-03 Tom Tromey <tom@tromey.com>
4152 * common/ptid.c (pid_to_ptid): Remove.
4153 * common/ptid.h (pid_to_ptid): Don't declare.
4154 * aix-thread.c: Update.
4155 * arm-linux-nat.c: Update.
4156 * common/ptid.c: Update.
4157 * common/ptid.h: Update.
4158 * corelow.c: Update.
4160 * darwin-nat.c: Update.
4161 * fbsd-nat.c: Update.
4162 * fork-child.c: Update.
4163 * gnu-nat.c: Update.
4164 * go32-nat.c: Update.
4165 * inf-ptrace.c: Update.
4167 * inferior.c: Update.
4169 * linux-fork.c: Update.
4170 * linux-nat.c: Update.
4171 * nat/aarch64-linux-hw-point.c: Update.
4172 * nat/fork-inferior.c: Update.
4173 * nat/x86-linux-dregs.c: Update.
4174 * nto-procfs.c: Update.
4175 * obsd-nat.c: Update.
4177 * progspace.c: Update.
4179 * rs6000-nat.c: Update.
4180 * s390-linux-nat.c: Update.
4181 * sol-thread.c: Update.
4182 * spu-linux-nat.c: Update.
4185 * tracefile-tfile.c: Update.
4186 * windows-nat.c: Update.
4188 2018-07-03 Tom Tromey <tom@tromey.com>
4190 * common/ptid.h (ptid_build): Don't declare.
4191 * common/ptid.c (ptid_build): Remove.
4192 * aix-thread.c: Update.
4193 * bsd-kvm.c: Update.
4194 * bsd-uthread.c: Update.
4195 * common/agent.c: Update.
4196 * common/ptid.c: Update.
4197 * common/ptid.h: Update.
4198 * corelow.c: Update.
4199 * darwin-nat.c: Update.
4200 * fbsd-nat.c: Update.
4201 * gnu-nat.c: Update.
4202 * linux-fork.c: Update.
4203 * linux-nat.c: Update.
4204 * linux-thread-db.c: Update.
4205 * nat/linux-osdata.c: Update.
4206 * nat/linux-procfs.c: Update.
4207 * nto-procfs.c: Update.
4208 * obsd-nat.c: Update.
4209 * proc-service.c: Update.
4211 * ravenscar-thread.c: Update.
4212 * remote-sim.c: Update.
4214 * sol-thread.c: Update.
4216 * windows-nat.c: Update.
4218 2018-07-03 Tom Tromey <tom@tromey.com>
4220 * infrun.c (follow_exec): Use exit_inferior_silent.
4221 * inferior.c (exit_inferior_num_silent): Remove.
4222 * inferior.h (exit_inferior_num_silent): Don't declare.
4224 2018-07-03 Tom Tromey <tom@tromey.com>
4227 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4228 inferior_ptid on error.
4230 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4231 Simon Marchi <simon.marchi@polymtl.ca>
4234 * disasm.h (gdb_disassembler): Add
4235 `m_disassembler_options_holder'. member
4236 * disasm.c (get_all_disassembler_options): New function.
4237 (gdb_disassembler::gdb_disassembler): Use it.
4238 (gdb_buffered_insn_length_init_dis): Likewise.
4239 (gdb_buffered_insn_length): Adjust accordingly.
4240 (set_disassembler_options): Handle options with arguments.
4241 (show_disassembler_options_sfunc): Likewise. Add a leading new
4242 line if showing options with descriptions.
4243 (disassembler_options_completer): Adapt to using the
4244 `disasm_options_and_args_t' structure.
4245 * mips-tdep.c (mips_disassembler_options): New variable.
4246 (mips_disassembler_options_o32): Likewise.
4247 (mips_disassembler_options_n32): Likewise.
4248 (mips_disassembler_options_n64): Likewise.
4249 (gdb_print_insn_mips): Don't set `disassembler_options'.
4250 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4252 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4253 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4254 `gdbarch_disassembler_options_implicit' and
4255 `gdbarch_valid_disassembler_options'.
4256 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4257 `disasm_options_and_args_t' structure.
4258 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4260 (valid_disassembler_options): Switch from `disasm_options_t' to
4261 the `disasm_options_and_args_t' structure.
4262 * NEWS: Document `set disassembler-options' support for the MIPS
4264 * gdbarch.h: Regenerate.
4265 * gdbarch.c: Regenerate.
4267 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4269 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4271 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4273 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4274 parameter in call to amd64_target_description.
4275 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4276 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4277 (amd64fbsd_init_abi): Likewise.
4278 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4279 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4280 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4281 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4283 2018-06-29 Pedro Alves <palves@redhat.com>
4285 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4286 "segments" parameter.
4287 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4288 (_initialize_amd64_tdep): Update call to
4289 amd64_create_target_description.
4290 (amd64_target_description): Add "segments" parameter. Adjust
4291 the implementation to use it.
4292 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4293 call to amd64_create_target_description.
4294 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4295 * gdb/arch/amd64.h (amd64_create_target_description): Add
4296 "segments" register.
4297 * gdb/arch/amd64.c (amd64_create_target_description): Add
4298 "segments" parameter. Call create_feature_i386_64bit_segments
4299 only if SEGMENTS is true.
4300 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4301 call to amd64_create_target_description.
4303 2018-06-29 Pedro Alves <palves@redhat.com>
4305 * thread.c (thread_target_id_str): New, factored out from ...
4306 (print_thread_info_1): ... here. Use it to compute the max
4307 "Target Id" column width.
4309 2018-06-29 Pedro Alves <palves@redhat.com>
4311 * remote.c (remote_target::extra_thread_info): Delete
4312 'display_buf' and 'n' locals. from the cache, regardless of
4313 packet mechanims is in use. Use cache for qThreadExtra and qP
4316 2018-06-29 Pedro Alves <palves@redhat.com>
4318 * blockframe.c (find_pc_sect_containing_function): New function.
4319 * breakpoint.c (print_breakpoint_location): Don't call
4320 find_pc_sect_function.
4321 * linespec.c (create_sals_line_offset): Record the location's
4323 * linespec.c (convert_address_location_to_sals): Fill in sal's
4324 symbol with find_pc_sect_containing_function.
4325 * symtab.c (find_function_start_sal): Rename to ...
4326 (find_function_start_sal_1): ... this.
4327 (find_function_start_sal): Reimplement as wrapper around
4328 find_function_start_sal_1, and use
4329 find_pc_sect_containing_function to fill in the sal's symbol.
4330 (find_function_start_sal(symbol*, bool)): Adjust.
4331 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4333 (find_pc_sect_containing_function): Declare.
4335 2018-06-29 Pedro Alves <palves@redhat.com>
4337 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4338 true if the the location has no symbol.
4340 2018-06-28 Tom Tromey <tom@tromey.com>
4342 * NEWS: Mention --enable-codesign.
4343 * silent-rules.mk (ECHO_SIGN): New variable.
4344 * configure.ac: Add --enable-codesign.
4345 * configure: Rebuild.
4346 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4347 (gdb$(EXEEXT)): Optionally invoke codesign.
4349 2018-06-28 Pedro Alves <palves@redhat.com>
4351 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4353 (switch_to_thread_no_regs): Adjust comment.
4354 * infcmd.c (stop_pc): Delete.
4355 (post_create_inferior, info_program_command): Replace references
4356 to stop_pc with references to thread_info->suspend.stop_pc.
4357 * inferior.h (stop_pc): Delete declaration.
4358 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4359 (handle_inferior_event_1, handle_signal_stop)
4360 (process_event_stop_test, keep_going_stepped_thread)
4361 (handle_step_into_function, handle_step_into_function_backward)
4362 (print_stop_location): Replace references to stop_pc with
4363 references to thread_info->suspend.stop_pc.
4364 (struct infcall_suspend_state) <stop_pc>: Delete field.
4365 (save_infcall_suspend_state, restore_infcall_suspend_state):
4366 Remove references to inf_stat->stop_pc.
4367 * linux-fork.c (fork_load_infrun_state): Likewise.
4368 * record-btrace.c (record_btrace_set_replay): Likewise.
4369 * record-full.c (record_full_goto_entry): Likewise.
4370 * remote.c (print_one_stopped_thread): Likewise.
4371 * target.c (target_resume): Extend comment.
4372 * thread.c (set_executing_thread): New.
4373 (set_executing): Use it.
4374 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4375 Remove references to stop_pc.
4377 2018-06-28 Pedro Alves <palves@redhat.com>
4379 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4380 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4382 2018-06-28 Tom Tromey <tom@tromey.com>
4384 * coffread.c (coff_symfile_finish): Update.
4385 * xcoffread.c (xcoff_symfile_finish): Update.
4386 * elfread.c (elf_symfile_finish): Update.
4387 * symfile.h (dwarf2_free_objfile): Don't declare.
4388 * dwarf2read.c (_initialize_dwarf2_read): Use
4389 register_objfile_data_with_cleanup.
4390 (dwarf2_free_objfile): Now static. Change signature.
4392 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4394 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4395 option "-o" to add-symbol-file-load to add an offset to each
4396 section's load address.
4397 * symfile.c (set_objfile_default_section_offset): New function.
4399 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4401 * symfile.c (add_symbol_file_command): Make sure that sections
4402 with the same name are sorted in the same order.
4404 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4406 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4407 require the second argument. If omitted, load sections at the
4408 addresses specified in the file.
4410 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4412 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4413 (_initialize_symfile): Add option "-o" to symbol-file to add an
4414 offset to each section of the symbol file.
4416 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4418 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4420 2018-06-27 Tom Tromey <tom@tromey.com>
4422 * stack.c (_initialize_stack): Update "func" help text.
4424 2018-06-27 Tom Tromey <tom@tromey.com>
4426 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4428 (unwind_infopy_str, pyuw_create_unwind_info)
4429 (unwind_infopy_add_saved_register, pyuw_sniffer)
4430 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4432 (struct saved_reg): Add constructor.
4433 <value>: Now a gdbpy_ref<>.
4435 2018-06-27 Tom Tromey <tom@tromey.com>
4437 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4439 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4441 * gdb-gdb.py.in: Format using autopep8.
4443 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4445 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4446 (type_lookup_function): Recognize CORE_ADDR values.
4448 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4450 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4453 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4455 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4458 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4460 * gdb-gdb.py: Move to...
4461 * gdb-gdb.py.in: ... here.
4462 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4463 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4465 (distclean): Remove gdb-gdb.py when cleaning.
4466 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4467 * configure: Re-generate.
4469 2018-06-27 Pedro Alves <palves@redhat.com>
4471 * proc-service.c (get_ps_regcache): New.
4472 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4473 (ps_lsetfpregs): Use it.
4475 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
4478 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4479 (dwarf_decode_lines_1): Adjust.
4481 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4483 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4485 <info_proc>: Likewise.
4487 2018-06-26 Joel Brobecker <brobecker@adacore.com>
4489 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4490 to windows_fetch_one_register, and only handle the case of
4491 fetching one register. Move the code that reloads the context
4492 and iterates over all registers if R is negative to...
4493 (windows_nat_target::fetch_registers): ... here.
4494 (do_windows_store_inferior_registers): Rename to
4495 windows_store_one_register, and only handle the case of storing
4496 one register. Move the code that handles the case where r is
4498 (windows_nat_target::store_registers) ... here.
4500 2018-06-26 Tom Tromey <tom@tromey.com>
4503 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4504 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4506 (rust_internal_print_type): Add podata parameter.
4507 (rust_print_type): Update.
4509 2018-06-26 Tom Tromey <tom@tromey.com>
4511 * typeprint.h (struct print_offset_data) <update, finish,
4512 maybe_print_hole>: New methods.
4513 <indentation>: New constant.
4514 * typeprint.c (print_offset_data::indentation): Define.
4515 (print_offset_data::maybe_print_hole, print_offset_data::update)
4516 (print_offset_data::finish): Move from c-typeprint.c and rename.
4517 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4518 (print_spaces_filtered_with_print_options): Update.
4519 (c_print_type_union_field_offset, maybe_print_hole)
4520 (c_print_type_struct_field_offset): Move to typeprint.c and
4522 (c_type_print_base_struct_union): Update.
4524 2018-06-25 Pedro Alves <palves@redhat.com>
4526 * gdbthread.h (thread_info_ref, delete_thread)
4527 (delete_thread_silent, first_thread_of_inferior)
4528 (any_thread_of_inferior, switch_to_thread)
4529 (enable_thread_stack_temporaries)
4530 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4531 (get_last_thread_stack_temporary)
4532 (value_in_thread_stack_temporaries, can_access_registers_thread):
4533 Spell out "struct thread_info" instead of just "thread_info".
4534 * inferior.h (notice_new_inferior): Likewise.
4536 2018-06-25 Pedro Alves <palves@redhat.com>
4538 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4539 pass thread_info pointer to delete_thread.
4540 (windows_nat_target::detach): Pass inferior pointer to
4542 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4544 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4545 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4546 and pass a thread_info pointer to delete_thread.
4547 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4548 pass thread_info pointer to delete_thread.
4549 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4550 delete_thread_silent call.
4551 * procfs.c (procfs_target::detach): Pass inferior pointer to
4553 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4554 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4555 delete_thread_silent call.
4556 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4557 pass thread_info pointer to delete_thread.
4558 (windows_nat_target::detach): Pass inferior pointer to
4561 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4563 * regcache.c (readable_regcache::read_part): Fix asserts.
4564 (reg_buffer::raw_collect_part): New function.
4565 (regcache::write_part): Fix asserts.
4566 (reg_buffer::raw_supply_part): New function.
4567 (regcache::transfer_regset_register): New helper function.
4568 (regcache::transfer_regset): Call new functions.
4569 (regcache_supply_regset): Use gdb_byte*.
4570 (regcache::supply_regset): Likewise.
4571 (regcache_collect_regset): Likewise.
4572 (regcache::collect_regset): Likewise.
4573 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4574 (reg_buffer::raw_supply_part): Likewise.
4575 (regcache::transfer_regset_register): Likewise.
4576 (regcache::transfer_regset): Use gdb_byte*.
4578 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4580 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4582 2018-06-21 Pedro Alves <palves@redhat.com>
4584 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4585 instead of a ptid_t. All callers adjusted.
4586 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4588 (print_ada_task_info, display_current_task_id, task_command_1):
4590 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4592 (breakpoint_kind): Adjust.
4593 (remove_breakpoints_pid): Rename to ...
4594 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4595 pointer. All callers adjusted.
4596 (bpstat_clear_actions): Use inferior_thread.
4597 (get_bpstat_thread): New.
4598 (bpstat_do_actions): Use it.
4599 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4600 to take a thread_info pointer. All callers adjusted.
4601 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4602 (breakpoint_re_set_thread): Use inferior_thread.
4603 * breakpoint.h (struct inferior): Forward declare.
4604 (bpstat_stop_status): Update.
4605 (remove_breakpoints_pid): Delete.
4606 (remove_breakpoints_inf): New.
4607 * bsd-uthread.c (bsd_uthread_target::wait)
4608 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4609 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4610 (maint_btrace_packet_history_cmd)
4611 (maint_btrace_clear_packet_history_cmd): Adjust.
4612 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4614 * cli/cli-interp.c: Include "inferior.h".
4615 * common/refcounted-object.h (struct
4616 refcounted_object_ref_policy): New.
4617 * compile/compile-object-load.c: Include gdbthread.h.
4618 (store_regs): Use inferior_thread.
4619 * corelow.c (core_target::close): Use current_inferior.
4620 (core_target_open): Adjust to use first_thread_of_inferior and use
4621 the current inferior.
4622 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4623 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4624 <thread>: ... this new field. All references adjusted.
4625 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4626 Take a thread_info pointer instead of a ptid_t.
4627 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4628 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4629 thread_info pointer instead of a ptid_t.
4630 * elfread.c: Include "inferior.h".
4631 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4632 Use inferior_thread.
4633 * eval.c (evaluate_subexp): Likewise.
4634 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4636 * gdb_proc_service.h (struct thread_info): Forward declare.
4637 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4638 <thread>: ... this new field. All references adjusted.
4639 * gdbarch.h, gdbarch.c: Regenerate.
4640 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4641 'thread' parameter. All implementations and callers adjusted.
4642 * gdbthread.h (thread_info) <set_running>: New method.
4643 (delete_thread, delete_thread_silent): Take a thread_info pointer
4645 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4646 (first_thread_of_process): Delete, replaced by ...
4647 (first_thread_of_inferior): ... this new function. All callers
4649 (any_live_thread_of_process): Delete, replaced by ...
4650 (any_live_thread_of_inferior): ... this new function. All callers
4652 (switch_to_thread, switch_to_no_thread): Declare.
4653 (is_executing): Delete.
4654 (enable_thread_stack_temporaries): Update comment.
4655 <enable_thread_stack_temporaries>: Take a thread_info pointer
4656 instead of a ptid_t. Incref the thread.
4657 <~enable_thread_stack_temporaries>: Decref the thread.
4660 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4661 (get_last_thread_stack_temporary)
4662 (value_in_thread_stack_temporaries, can_access_registers_thread):
4663 Take a thread_info pointer instead of a ptid_t. All callers
4665 * infcall.c (get_call_return_value): Use inferior_thread.
4666 (run_inferior_call): Work with thread pointers instead of ptid_t.
4667 (call_function_by_hand_dummy): Work with thread pointers instead
4668 of ptid_t. Use thread_info_ref.
4669 * infcmd.c (proceed_thread_callback): Access thread's state
4671 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4672 access thread's state directly.
4673 (continue_command): Use inferior_thread.
4674 (info_program_command): Use find_thread_ptid and access thread
4676 (proceed_after_attach_callback): Use thread state directly.
4677 (notice_new_inferior): Take a thread_info pointer instead of a
4678 ptid_t. All callers adjusted.
4679 (exit_inferior): Take an inferior pointer instead of a pid. All
4681 (exit_inferior_silent): New.
4682 (detach_inferior): Delete.
4683 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4684 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4685 (detach_inferior_command, kill_inferior_command): Use
4686 find_inferior_id instead of valid_gdb_inferior_id and
4687 gdb_inferior_id_to_pid.
4688 (inferior_command): Use inferior and thread pointers.
4689 * inferior.h (struct thread_info): Forward declare.
4690 (notice_new_inferior): Take a thread_info pointer instead of a
4691 ptid_t. All callers adjusted.
4692 (detach_inferior): Delete declaration.
4693 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4694 instead of a pid. All callers adjusted.
4695 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4696 (valid_gdb_inferior_id): Delete.
4697 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4698 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4699 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4701 <inf>: ... this new field.
4702 <step_ptid>: Delete, replaced by ...
4703 <step_thread>: ... this new field.
4704 (get_displaced_stepping_state): Take an inferior pointer instead
4705 of a pid. All callers adjusted.
4706 (displaced_step_in_progress_any_inferior): Adjust.
4707 (displaced_step_in_progress_thread): Take a thread pointer instead
4708 of a ptid_t. All callers adjusted.
4709 (displaced_step_in_progress, add_displaced_stepping_state): Take
4710 an inferior pointer instead of a pid. All callers adjusted.
4711 (get_displaced_step_closure_by_addr): Adjust.
4712 (remove_displaced_stepping_state): Take an inferior pointer
4713 instead of a pid. All callers adjusted.
4714 (displaced_step_prepare_throw, displaced_step_prepare)
4715 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4716 All callers adjusted.
4717 (start_step_over): Adjust.
4718 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4719 displaced step queue.
4720 (do_target_resume): Adjust.
4721 (fetch_inferior_event): Use inferior_thread.
4722 (context_switch, get_inferior_stop_soon): Take an
4723 execution_control_state pointer instead of a ptid_t. All callers
4725 (switch_to_thread_cleanup): Delete.
4726 (stop_all_threads): Use scoped_restore_current_thread.
4727 * inline-frame.c: Include "gdbthread.h".
4728 (inline_state) <inline_state>: Take a thread pointer instead of a
4729 ptid_t. All callers adjusted.
4730 <ptid>: Delete, replaced by ...
4731 <thread>: ... this new field.
4732 (find_inline_frame_state): Take a thread pointer instead of a
4733 ptid_t. All callers adjusted.
4734 (skip_inline_frames, step_into_inline_frame)
4735 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4736 pointer instead of a ptid_t. All callers adjusted.
4737 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4738 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4739 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4741 * linux-nat.c (get_detach_signal): Likewise.
4742 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4743 (thread_db_notice_clone): Adjust.
4744 (thread_db_find_new_threads_silently)
4745 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4746 a thread pointer instead of a ptid_t. All callers adjusted.
4747 * mi/mi-cmd-var.c: Include "inferior.h".
4748 (mi_cmd_var_update_iter): Update to use thread pointers.
4749 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4751 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4753 (mi_output_running): ... this new function.
4754 (mi_on_resume_1): Adjust to use it.
4755 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4756 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4758 (interrupt_thread_callback): : Adjust to use thread and inferior
4760 * proc-service.c: Include "gdbthread.h".
4761 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4762 * progspace-and-thread.c: Include "inferior.h".
4763 * progspace.c: Include "inferior.h".
4764 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4765 hold a reference to an inferior_object.
4766 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4768 * python/py-inferior.c (struct inferior_object): Give the type a
4769 tag name instead of a typedef.
4770 (python_on_normal_stop): No need to check if the current thread is
4772 (inferior_to_inferior_object): Change return type to
4773 inferior_object. All callers adjusted.
4774 (find_thread_object): Delete, bits factored out to ...
4775 (thread_to_thread_object): ... this new function.
4776 * python/py-infthread.c (create_thread_object): Use
4777 inferior_to_inferior_object.
4778 (thpy_is_stopped): Use thread pointer directly.
4779 (gdbpy_selected_thread): Use inferior_thread.
4780 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4781 field, replaced with ...
4782 <thread>: ... this new field. All users adjusted.
4783 (btpy_insn_or_gap_new): Drop const.
4784 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
4786 * python/py-record.c: Include "gdbthread.h".
4787 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4788 a ptid_t. All callers adjusted.
4789 (gdbpy_current_recording): Use inferior_thread.
4790 * python/py-record.h (recpy_record_object) <ptid>: Delete
4791 field, replaced with ...
4792 <thread>: ... this new field. All users adjusted.
4793 (recpy_element_object) <ptid>: Delete
4794 field, replaced with ...
4795 <thread>: ... this new field. All users adjusted.
4796 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4797 a ptid_t. All callers adjusted.
4798 * python/py-threadevent.c: Include "gdbthread.h".
4799 (get_event_thread): Use thread_to_thread_object.
4800 * python/python-internal.h (struct inferior_object): Forward
4802 (find_thread_object, find_inferior_object): Delete declarations.
4803 (thread_to_thread_object, inferior_to_inferior_object): New
4805 * record-btrace.c: Include "inferior.h".
4806 (require_btrace_thread): Use inferior_thread.
4807 (record_btrace_frame_sniffer)
4808 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
4809 (get_thread_current_frame): Use scoped_restore_current_thread and
4811 (get_thread_current_frame): Use thread pointer directly.
4812 (record_btrace_replay_at_breakpoint): Use thread's inferior
4814 * record-full.c: Include "inferior.h".
4815 * regcache.c: Include "gdbthread.h".
4816 (get_thread_arch_regcache): Use the inferior's address space
4818 (get_thread_regcache, registers_changed_thread): New.
4819 * regcache.h (get_thread_regcache(thread_info *thread)): New
4821 (registers_changed_thread): New.
4822 (remote_target) <remote_detach_1>: Swap order of parameters.
4823 (remote_add_thread): <remote_add_thread>: Return the new thread.
4824 (get_remote_thread_info(ptid_t)): New overload.
4825 (remote_target::remote_notice_new_inferior): Use thread pointers
4827 (remote_target::process_initial_stop_replies): Use
4828 thread_info::set_running.
4829 (remote_target::remote_detach_1, remote_target::detach)
4830 (extended_remote_target::detach): Adjust.
4831 * stack.c (frame_show_address): Use inferior_thread.
4832 * target-debug.h (target_debug_print_thread_info_pp): New.
4833 * target-delegates.c: Regenerate.
4834 * target.c (default_thread_address_space): Delete.
4835 (memory_xfer_partial_1): Use current_inferior.
4836 (target_detach): Use current_inferior.
4837 (target_thread_address_space): Delete.
4838 (generic_mourn_inferior): Use current_inferior.
4839 * target.h (struct target_ops) <thread_address_space>: Delete.
4840 (target_thread_address_space): Delete.
4841 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
4843 (delete_thread_1, delete_thread, delete_thread_silent): Take a
4844 thread pointer instead of a ptid_t. Adjust all callers.
4845 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
4846 (first_thread_of_process): Delete, replaced by ...
4847 (first_thread_of_inferior): ... this new function. All callers
4849 (any_thread_of_process): Rename to ...
4850 (any_thread_of_inferior): ... this, and take an inferior pointer.
4851 (any_live_thread_of_process): Rename to ...
4852 (any_live_thread_of_inferior): ... this, and take an inferior
4854 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4855 (value_in_thread_stack_temporaries)
4856 (get_last_thread_stack_temporary): Take a thread pointer instead
4857 of a ptid_t. Adjust all callers.
4858 (thread_info::set_running): New.
4859 (validate_registers_access): Use inferior_thread.
4860 (can_access_registers_ptid): Rename to ...
4861 (can_access_registers_thread): ... this, and take a thread
4863 (print_thread_info_1): Adjust to compare thread pointers instead
4865 (switch_to_no_thread, switch_to_thread): Make extern.
4866 (scoped_restore_current_thread::~scoped_restore_current_thread):
4867 Use m_thread pointer directly.
4868 (scoped_restore_current_thread::scoped_restore_current_thread):
4869 Use inferior_thread.
4870 (thread_command): Use thread pointer directly.
4871 (thread_num_make_value_helper): Use inferior_thread.
4872 * top.c (execute_command): Use inferior_thread.
4873 * tui/tui-interp.c: Include "inferior.h".
4874 * varobj.c (varobj_create): Use inferior_thread.
4875 (value_of_root_1): Use find_thread_global_id instead of
4876 global_thread_id_to_ptid.
4878 2018-06-21 Alan Hayward <alan.hayward@arm.com>
4880 * regcache.c (readable_regcache::read_part): Avoid memcpy when
4882 (regcache::write_part): Likewise.
4883 (readable_regcache::cooked_read_part): Update comment.
4884 (readable_regcache::cooked_write_part): Likewise.
4885 * regcache.h: (readable_regcache::read_part): Likewise.
4886 (regcache::write_part): Likewise.
4888 2018-06-21 Richard Bunt <richard.bunt@arm.com>
4889 Dirk Schubert <dirk.schubert@arm.com>
4891 * aarch64-linux-nat.c (post_attach): New.
4892 (aarch64_linux_nat_target::post_attach): Override post_attach to
4893 record the number of hardware debug registers.
4895 2018-06-20 Tom Tromey <tom@tromey.com>
4897 * python/py-param.c (add_setshow_generic): Make parameters const.
4898 (parmpy_init): Update.
4900 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4902 * regcache.h (regcache_cooked_read_ftype): Rename to...
4903 (register_read_ftype): ...this, change type to function_view.
4904 (class reg_buffer) <save>: Remove src parameter.
4905 (readonly_detached_regcache) <readonly_detached_regcache>: Make
4906 parameter non-const in first overload. Remove src parameter in
4908 * regcache.c (do_cooked_read): Remove.
4909 (readonly_detached_regcache::readonly_detached_regcache): Make
4910 parameter non-const, adjust call to other constructor.
4911 (reg_buffer::save): Remove src parameter.
4912 * frame.c (do_frame_register_read): Remove.
4913 (frame_save_as_regcache): Use lambda function.
4914 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
4915 parameter to ppu2spu_data *.
4916 (ppu2spu_sniffer): Use lambda function.
4918 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4920 * record-full.c (record_full_target::insert_breakpoint): Remove
4921 "struct" keyword, add const.
4923 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4925 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
4926 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
4927 * configure.ac: Remove AC_PREREQ, add missing quoting.
4928 * gnulib/configure.ac: Modernize usage of
4929 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
4930 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
4931 (AUTOMAKE_VERSION): Bump to 1.15.1.
4932 * configure: Re-generate.
4933 * config.in: Re-generate.
4934 * aclocal.m4: Re-generate.
4935 * gnulib/aclocal.m4: Re-generate.
4936 * gnulib/config.in: Re-generate.
4937 * gnulib/configure: Re-generate.
4938 * gnulib/import/Makefile.in: Re-generate.
4940 2018-06-19 Pedro Alves <palves@redhat.com>
4942 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
4943 (lookup_minimal_symbol_by_pc_section): ... here with
4944 gdb_assert_not_reached added.
4946 2018-06-19 Pedro Alves <palves@redhat.com>
4948 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
4949 parameter with a block parameter. Compare location's block symbol
4950 with the frame's block instead of addresses.
4951 (skip_inline_frames): Pass the current block instead of the
4952 frame's address. Break out as soon as we determine the frame
4953 should not be skipped.
4955 2018-06-18 Tom Tromey <tom@tromey.com>
4957 * solib-aix.c (solib_aix_get_section_offsets): Return
4959 (solib_aix_solib_create_inferior_hook): Update.
4961 2018-06-18 Tom Tromey <tom@tromey.com>
4963 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
4965 2018-06-18 Tom Tromey <tom@tromey.com>
4967 * solib-frv.c (frv_relocate_main_executable): Use
4969 * solib-dsbt.c (dsbt_relocate_main_executable): Use
4972 2018-06-18 Tom Tromey <tom@tromey.com>
4974 * objfiles.h (inhibit_section_map_updates): Update.
4975 (resume_section_map_updates, resume_section_map_updates_cleanup):
4977 * solib-svr4.c (svr4_handle_solib_event): Update.
4978 * objfiles.c (inhibit_section_map_updates): Return
4979 scoped_restore_tmpl<int>.
4980 (resume_section_map_updates, resume_section_map_updates_cleanup):
4983 2018-06-18 Tom Tromey <tom@tromey.com>
4985 * valprint.h (read_string): Update.
4986 * valprint.c (read_string): Change type of "buffer".
4987 (val_print_string): Update.
4988 * python/py-value.c (valpy_string): Update.
4989 * language.h (struct language_defn) <la_get_string>: Change
4991 (default_get_string, c_get_string): Update.
4992 * language.c (default_get_string): Change type of "buffer".
4993 * guile/scm-value.c (gdbscm_value_to_string): Update.
4994 * c-lang.c (c_get_string): Change type of "buffer".
4996 2018-06-18 Tom Tromey <tom@tromey.com>
4998 * ser-mingw.c (struct pipe_state_destroyer): New.
4999 (pipe_state_up): New typedef.
5000 (cleanup_pipe_state): Remove.
5001 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5003 2018-06-18 Tom Tromey <tom@tromey.com>
5005 * rust-lang.h (rust_yyerror): Don't declare.
5006 * rust-lang.c (rust_language_defn): Update.
5007 * rust-exp.y (yyerror): Now static.
5008 * parse.c (parse_exp_in_context_1): Update.
5009 * p-lang.h (p_yyerror): Don't declare.
5010 * p-lang.c (p_language_defn): Update.
5011 * p-exp.y (yyerror): Now static.
5012 * opencl-lang.c (opencl_language_defn): Update.
5013 * objc-lang.c (objc_language_defn): Update.
5014 * m2-lang.h (m2_yyerror): Don't declare.
5015 * m2-lang.c (m2_language_defn): Update.
5016 * m2-exp.y (yyerror): Now static.
5017 * language.h (struct language_defn) <la_error>: Remove.
5018 * language.c (unk_lang_error): Remove.
5019 (unknown_language_defn, auto_language_defn): Remove.
5020 * go-lang.h (go_yyerror): Don't declare.
5021 * go-lang.c (go_language_defn): Update.
5022 * go-exp.y (yyerror): Now static.
5023 * f-lang.h (f_yyerror): Don't declare.
5024 * f-lang.c (f_language_defn): Update.
5025 * f-exp.y (yyerror): Now static.
5026 * d-lang.h (d_yyerror): Don't declare.
5027 * d-lang.c (d_language_defn): Update.
5028 * d-exp.y (yyerror): Now static.
5029 * c-lang.h (c_yyerror): Don't declare.
5030 * c-lang.c (c_language_defn, cplus_language_defn)
5031 (asm_language_defn, minimal_language_defn): Update.
5032 * c-exp.y (yyerror): Now static.
5033 * ada-lang.h (ada_yyerror): Don't declare.
5034 * ada-lang.c (ada_language_defn): Update.
5035 * ada-exp.y (yyerror): Now static.
5037 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5039 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5040 (store_sveregs_to_thread): Likewise.
5041 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5042 (aarch64_linux_store_inferior_registers): Likewise.
5043 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5045 (aarch64_sve_regs_copy_to_regcache): Likewise.
5046 (aarch64_sve_regs_copy_from_regcache): Likewise.
5047 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5049 (aarch64_sve_regs_copy_to_regcache): Likewise.
5050 (aarch64_sve_regs_copy_from_regcache): Likewise.
5051 (sve_context): Structure from Linux headers.
5052 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5053 (SVE_SIG_ZREG_SIZE): Likewise.
5054 (SVE_SIG_PREG_SIZE): Likewise.
5055 (SVE_SIG_FFR_SIZE): Likewise.
5056 (SVE_SIG_REGS_OFFSET): Likewise.
5057 (SVE_SIG_ZREGS_OFFSET): Likewise.
5058 (SVE_SIG_ZREG_OFFSET): Likewise.
5059 (SVE_SIG_ZREGS_SIZE): Likewise.
5060 (SVE_SIG_PREGS_OFFSET): Likewise.
5061 (SVE_SIG_PREG_OFFSET): Likewise.
5062 (SVE_SIG_PREGS_SIZE): Likewise.
5063 (SVE_SIG_FFR_OFFSET): Likewise.
5064 (SVE_SIG_REGS_SIZE): Likewise.
5065 (SVE_SIG_CONTEXT_SIZE): Likewise.
5066 (SVE_PT_REGS_MASK): Likewise.
5067 (SVE_PT_REGS_FPSIMD): Likewise.
5068 (SVE_PT_REGS_SVE): Likewise.
5069 (SVE_PT_VL_INHERIT): Likewise.
5070 (SVE_PT_VL_ONEXEC): Likewise.
5071 (SVE_PT_REGS_OFFSET): Likewise.
5072 (SVE_PT_FPSIMD_OFFSET): Likewise.
5073 (SVE_PT_FPSIMD_SIZE): Likewise.
5074 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5075 (SVE_PT_SVE_PREG_SIZE): Likewise.
5076 (SVE_PT_SVE_FFR_SIZE): Likewise.
5077 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5078 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5079 (__SVE_SIG_TO_PT): Likewise.
5080 (SVE_PT_SVE_OFFSET): Likewise.
5081 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5082 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5083 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5084 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5085 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5086 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5087 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5088 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5089 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5090 (SVE_PT_SVE_SIZE): Likewise.
5091 (SVE_PT_SIZE): Likewise.
5092 (HAS_SVE_STATE): New define.
5094 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5096 * nat/aarch64-sve-linux-sigcontext.h: New file.
5097 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5099 (SVE_VQ_MIN): Likewise.
5100 (SVE_VQ_MAX): Likewise.
5101 (SVE_VL_MIN): Likewise.
5102 (SVE_VL_MAX): Likewise.
5103 (SVE_NUM_ZREGS): Likewise.
5104 (SVE_NUM_PREGS): Likewise.
5105 (sve_vl_valid): Likewise.
5106 (struct user_sve_header): Likewise.
5108 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5109 Richard Bunt <Richard.Bunt@arm.com>
5111 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5112 was requested by GDB.
5114 2018-06-15 Tom de Vries <tdevries@suse.de>
5116 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5118 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5120 * gnulib/update-gnulib.sh: Print expected versions of
5123 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5125 * arch-utils.c (default_type_align): Use type_length_units.
5126 * gdbtypes.c (type_align): Use type_length_units.
5128 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5130 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5131 of 'define' command.
5133 2018-06-14 Tom de Vries <tdevries@suse.de>
5136 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5137 get_no_prettyformat_print_options.
5139 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5141 * sparc-nat.h: Include target.h.
5142 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5143 <fetch_registers>: Remove this argument in function call.
5144 <store_registers>: Remove this argument in function call, remove
5146 <low_forget_process>: Call sparc64_forget_process instead of
5147 sparc_forget_process.
5149 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5151 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5152 (procfs_target::make_corefile_notes): Adjust to new
5153 target_read_alloc return type.
5155 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5156 Stephen Roberts <stephen.roberts@arm.com>
5159 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5160 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5161 Move should_notify_stop local into more inner scope.
5163 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5164 Stephen Roberts <stephen.roberts@arm.com>
5167 * infrun.c (resume_1): Add call to mark_async_event_handler.
5169 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5171 * infrun.c (do_target_wait): Change old version of $pc printed.
5173 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5175 * dwarf2read.c (read_index_from_section): Rename to...
5176 (read_gdb_index_from_section): ... this, update all callers.
5177 (dwarf2_read_index): Rename to...
5178 (dwarf2_read_gdb_index): ... this, update all callers.
5180 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5182 * gdb/hppa-linux-nat.c
5183 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5184 hppa_linux_nat_target::fetch_registers.
5186 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5188 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5189 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5190 (AARCH64_DWARF_SVE_FFR): Likewise.
5191 (AARCH64_DWARF_SVE_P0): Likewise.
5192 (AARCH64_DWARF_SVE_Z0): Likewise.
5194 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5196 * common/common-regcache.h (raw_compare): New function.
5197 * regcache.c (regcache::raw_compare): Likewise.
5198 * regcache.h (regcache::raw_compare): New declaration.
5200 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5202 * common/common-regcache.h (reg_buffer_common): New structure.
5203 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5204 (reg_buffer::raw_supply): Likewise.
5205 (reg_buffer::raw_supply_integer): Likewise.
5206 (reg_buffer::raw_supply_zeroed): Likewise.
5207 (reg_buffer::raw_collect): Likewise.
5208 (reg_buffer::raw_collect_integer): Likewise.
5209 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5210 (reg_buffer::raw_supply): Likewise.
5211 (reg_buffer::raw_supply_integer): Likewise.
5212 (reg_buffer::raw_supply_zeroed): Likewise.
5213 (reg_buffer::raw_collect): Likewise.
5214 (reg_buffer::raw_collect_integer): Likewise.
5216 2018-06-10 Tom Tromey <tom@tromey.com>
5218 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5219 (class remote_state) <stop_reply_queue>: Now std::vector.
5220 (remote_state::~remote_state)
5221 (remote_target::stop_reply_queue_length): Update.
5222 (struct queue_iter_param, remove_child_of_pending_fork)
5223 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5224 (check_pending_event_prevents_wildcard_vcont_callback)
5225 (remove_stop_reply_for_inferior)
5226 (remove_stop_reply_of_remote_state)
5227 (remote_notif_remove_once_on_match)
5228 (stop_reply_match_ptid_and_ws)
5229 (remote_kill_child_of_pending_fork): Remove.
5230 (remote_target::remove_new_fork_children)
5231 (remote_target::check_pending_events_prevent_wildcard_vcont)
5232 (remote_target::discard_pending_stop_replies)
5233 (remote_target::discard_pending_stop_replies_in_queue)
5234 (remote_target::remote_notif_remove_queued_reply)
5235 (remote_target::queued_stop_reply)
5236 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5237 (remote_target::wait, remote_target::kill_new_fork_children)
5238 (remote_target::async): Update.
5240 2018-06-10 Tom Tromey <tom@tromey.com>
5242 * record-full.c (record_full_arch_list_cleanups): Remove.
5243 (record_full_message): Use try/catch.
5244 (record_full_wait_cleanups): Remove.
5245 (record_full_wait_1): Use try/catch.
5246 (record_full_restore): Likewise.
5248 2018-06-10 Tom Tromey <tom@tromey.com>
5250 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5251 declare VEC. Add constructor.
5252 <in_target_beneath>: Now bool.
5253 (record_full_breakpoints): Now a std::vector, static.
5254 (record_full_sync_record_breakpoints)
5255 (record_full_init_record_breakpoints)
5256 (record_full_target::insert_breakpoint)
5257 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5259 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5261 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5262 * serial.c (serial_interface_lookup): Remove struct keyword.
5264 2018-06-10 Tom Tromey <tom@tromey.com>
5266 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5268 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5270 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5272 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5273 "beneath" as a method.
5274 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5275 Use "beneath" as a method.
5277 2018-06-10 Tom Tromey <tom@tromey.com>
5279 * tracefile.c (struct trace_file_writer_deleter): New.
5280 <operator()>: Rename from trace_file_writer_xfree.
5281 (trace_file_writer_up): New typedef.
5282 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5284 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5286 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5287 <m_registers, m_register_status>: Change type to
5289 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5292 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5294 * common/common-regcache.h (enum register_status): Add
5295 underlying type "signed char".
5296 * regcache.h (reg_buffer) <m_register_status>: Change type to
5298 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5299 register_status instead of signed char.
5300 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5301 (reg_buffer::get_register_status): Remove cast.
5302 (readable_regcache::raw_read): Remove cast.
5303 (readable_regcache::cooked_read): Remove cast.
5305 2018-06-09 Tom Tromey <tom@tromey.com>
5307 * source.c (reverse_search_command, forward_search_command): Use
5310 2018-06-09 Tom Tromey <tom@tromey.com>
5312 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5313 (serial_ops_list): Now static, std::vector.
5314 (serial_interface_lookup, serial_add_interface): Update.
5316 2018-06-09 Tom Tromey <tom@tromey.com>
5318 * dwarf2read.c (process_cu_includes): Update.
5319 (process_full_comp_unit): Update.
5320 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5323 2018-06-08 Paul Koning <paul_koning@dell.com>
5327 * python/python.c (do_start_initialization):
5328 Avoid call to internal Python API.
5329 (init__gdb_module): New function.
5331 2018-06-08 Gary Benson <gbenson@redhat.com>
5333 * linux-thread-db.c (valprint.h): New include.
5334 (struct check_thread_db_info): New structure.
5335 (check_thread_db_on_load, tdb_testinfo): New static globals.
5336 (check_thread_db, check_thread_db_callback): New functions.
5337 (try_thread_db_load_1): Run integrity checks if requested.
5338 (maintenance_check_libthread_db): New function.
5339 (_initialize_thread_db): Register "maint check libthread-db"
5340 and "maint set/show check-libthread-db".
5341 * NEWS: Mention the above new commands.
5343 2018-06-08 Tom Tromey <tom@tromey.com>
5345 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5348 2018-06-08 Tom Tromey <tom@tromey.com>
5350 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5352 2018-06-08 Tom Tromey <tom@tromey.com>
5354 * common/btrace-common.h (struct btrace_data): Add constructor,
5355 destructor, move assignment operator.
5356 <empty, clear, fini>: New methods.
5357 <format>: Initialize.
5358 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5359 (btrace_data_empty): Don't declare.
5360 * common/btrace-common.c (btrace_data_init): Remove.
5361 (btrace_data::fini): Rename from btrace_data_fini.
5362 (btrace_data::empty): Rename from btrace_data_empty.
5363 (btrace_data::clear): Rename from btrace_data_clear. Return
5365 * btrace.h (make_cleanup_btrace_data): Don't declare.
5366 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5367 (parse_xml_btrace): Update.
5368 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5369 (maint_btrace_clear_packet_history_cmd): Update.
5371 2018-06-07 Pedro Alves <palves@redhat.com>
5373 * target.h (target_ops) <beneath>: Now a method. All references
5375 (class target_stack): New.
5376 * target.c (g_target_stack): New.
5377 (g_current_top_target): Delete.
5378 (current_top_target): Get the top target out of g_target_stack.
5379 (target_stack::push, target_stack::unpush): New.
5380 (push_target, unpush_target): Reimplement.
5381 (target_is_pushed): Reimplement in terms of g_target_stack.
5382 (target_ops::beneath, target_stack::find_beneath): New.
5384 2018-06-07 Pedro Alves <palves@redhat.com>
5386 * target.h (find_target_beneath): Delete declaration.
5387 * target.c (find_target_beneath): Delete definition.
5388 * aix-thread.c: All callers of find_target_beneath adjusted to
5389 call target_ops::beneath instead.
5390 * bsd-uthread.c: Likewise.
5391 * linux-thread-db.c: Likewise.
5392 * ravenscar-thread.c: Likewise.
5393 * sol-thread.c: Likewise.
5394 * spu-multiarch.c: Likewise.
5396 2018-06-07 Pedro Alves <palves@redhat.com>
5398 * target.h (target_ops) <beneath>: Now a method. All references
5400 (target_ops) <m_beneath>: New.
5401 * target.c (target_ops::beneath): New.
5402 * corelow.c: Adjust all references to target_ops::beneath.
5403 * linux-thread-db.c: Likewise.
5404 * make-target-delegates: Likewise.
5405 * record-btrace.c: Likewise.
5406 * record-full.c: Likewise.
5407 * remote.c: Likewise.
5408 * target.c: Likewise.
5409 * target-delegates.c: Regenerate.
5411 2018-06-07 Pedro Alves <palves@redhat.com>
5413 * target.h (target_stack): Delete.
5414 (current_top_target): Declare function.
5415 * target.c (target_stack): Delete.
5416 (g_current_top_target): New.
5417 (current_top_target): New function.
5418 * auxv.c: Use current_top_target instead of target_stack
5420 * avr-tdep.c: Likewise.
5421 * breakpoint.c: Likewise.
5422 * corefile.c: Likewise.
5423 * elfread.c: Likewise.
5425 * exceptions.c: Likewise.
5426 * frame.c: Likewise.
5427 * gdbarch-selftests.c: Likewise.
5428 * gnu-v3-abi.c: Likewise.
5429 * ia64-tdep.c: Likewise.
5430 * ia64-vms-tdep.c: Likewise.
5431 * infcall.c: Likewise.
5432 * infcmd.c: Likewise.
5433 * infrun.c: Likewise.
5434 * linespec.c: Likewise.
5435 * linux-tdep.c: Likewise.
5436 * minsyms.c: Likewise.
5437 * ppc-linux-nat.c: Likewise.
5438 * ppc-linux-tdep.c: Likewise.
5439 * procfs.c: Likewise.
5440 * regcache.c: Likewise.
5441 * remote.c: Likewise.
5442 * rs6000-tdep.c: Likewise.
5443 * s390-linux-nat.c: Likewise.
5444 * s390-tdep.c: Likewise.
5445 * solib-aix.c: Likewise.
5446 * solib-darwin.c: Likewise.
5447 * solib-dsbt.c: Likewise.
5448 * solib-spu.c: Likewise.
5449 * solib-svr4.c: Likewise.
5450 * solib-target.c: Likewise.
5451 * sparc-tdep.c: Likewise.
5452 * sparc64-tdep.c: Likewise.
5453 * spu-tdep.c: Likewise.
5454 * symfile.c: Likewise.
5455 * symtab.c: Likewise.
5456 * target-descriptions.c: Likewise.
5457 * target-memory.c: Likewise.
5458 * target.c: Likewise.
5459 * target.h: Likewise.
5460 * tracefile-tfile.c: Likewise.
5461 * tracepoint.c: Likewise.
5462 * valops.c: Likewise.
5463 * valprint.c: Likewise.
5464 * value.c: Likewise.
5465 * windows-tdep.c: Likewise.
5466 * mi/mi-main.c: Likewise.
5468 2018-06-07 Tom Tromey <tom@tromey.com>
5470 * valprint.h (build_address_symbolic): Declare.
5471 * printcmd.c (print_address_symbolic): Update.
5472 (build_address_symbolic): Change "name" and "filename" to
5474 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5476 * defs.h (build_address_symbolic): Remove declaration.
5478 2018-06-07 Alan Hayward <alan.hayward@arm.com>
5480 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5481 (aarch64_vnv_type): Add function.
5482 (aarch64_pseudo_register_name): Add V regs for SVE.
5483 (aarch64_pseudo_register_type): Likewise.
5484 (aarch64_pseudo_register_reggroup_p): Likewise.
5485 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5486 (aarch64_pseudo_read_value): Add V regs for SVE.
5487 (aarch64_pseudo_write_2): Use V0 offset for SVE
5488 (aarch64_pseudo_write): Add V regs for SVE.
5489 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5491 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5493 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5494 (sve_vl_from_vq): Likewise.
5496 2018-06-05 Tom Tromey <tom@tromey.com>
5498 * cli/cli-cmds.c (show_version): Update.
5499 * top.c (print_gdb_version): Add "interactive" parameter.
5501 * main.c (captured_main_1): Update.
5502 * top.h (print_gdb_version): Add "interactive" parameter and a
5505 2018-06-05 David Malcolm <dmalcolm@redhat.com>
5507 * common/enum-flags.h: Add trailing semicolon to example in
5510 2018-06-05 Tom Tromey <tom@tromey.com>
5513 * NEWS: Add entry about pager.
5514 * utils.c (pagination_disabled_for_command): New global.
5515 (prompt_for_continue): Allow "c" response to prompt.
5516 (reinitialize_more_filter): Clear
5517 pagination_disabled_for_command.
5518 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5520 2018-06-04 Tom Tromey <tom@tromey.com>
5522 * ada-lang.h (ada_lookup_symbol_list): Update.
5523 * ada-lang.c (resolve_subexp): Update.
5524 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5526 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5527 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5528 results parameter to std::vector.
5529 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5531 * ada-exp.y (block_lookup): Update.
5532 (select_possible_type_sym): Change type of syms. Remove nsyms
5534 (write_var_or_type, write_name_assoc): Update.
5536 2018-06-04 Joel Brobecker <brobecker@adacore.com>
5538 * windows-nat.c (windows_nat_target::xfer_partial): Return
5539 TARGET_XFER_E_IO if we need to delegate to the target beneath
5540 but BENEATH is NULL.
5542 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5544 * Makefile.in (config.status): Add configure.nat as a
5547 2018-06-04 Tom Tromey <tom@tromey.com>
5549 * cp-name-parser.y (cpname_state): Add method declarations.
5550 (HANDLE_QUAL): Update.
5551 (cpname_state::d_grab, cpname_state::fill_comp)
5552 (cpname_state::make_operator, cpname_state::make_dtor)
5553 (cpname_state::make_builtin_type, cpname_state::make_name)
5554 (cpname_state::d_qualify, cpname_state::d_int_type)
5555 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5556 (%union): Move earlier.
5558 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5560 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5562 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5564 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5565 (aarch64_pseudo_write_1): Likewise.
5566 (aarch64_pseudo_read_value): Use helper.
5567 (aarch64_pseudo_write): Likewise.
5569 2018-06-04 Pedro Alves <palves@redhat.com>
5571 * darwin-nat.c (darwin_ops): Delete.
5572 (darwin_attach_pid): Use get_native_target.
5574 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5576 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5577 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5579 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5581 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5582 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5583 (aarch64_gdbarch_init): Check for SVE.
5584 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5586 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5588 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5589 * aarch64-tdep.h (aarch64_read_description): Likewise.
5590 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5591 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5592 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5593 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5594 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5596 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5598 * value.c (value_fetch_lazy_bitfield): New.
5599 (value_fetch_lazy_memory): New.
5600 (value_fetch_lazy_register): New.
5601 (value_fetch_lazy): Factor out to smaller functions.
5603 2018-06-01 Tom Tromey <tom@tromey.com>
5605 * cp-name-parser.y (backslashable, represented): Now const.
5607 2018-06-01 Tom Tromey <tom@tromey.com>
5609 * cp-name-parser.y: Include parser-defs.h.
5610 (parser_fprintf): Remove declaration.
5612 2018-06-01 Tom Tromey <tom@tromey.com>
5614 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5616 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5617 (global_result): Remove globals.
5618 (struct cpname_state): New.
5619 (yyparse): Don't declare.
5620 (yylex, yyerror): Move declarations after %union.
5621 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5622 (make_name): Add state parameter.
5624 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5626 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5628 (yylex): Add lvalp, state parameters.
5629 (yyerror): Add state parameter.
5630 (cp_demangled_name_to_comp): Update.
5632 2018-06-01 Tom Tromey <tom@tromey.com>
5634 * cp-name-parser.y (parser_fprintf): Declare.
5635 (GDB_YY_REMAP_PREFIX): Define.
5636 Include yy-remap.h. Don't redefine yy* identifiers.
5638 2018-06-01 Tom Tromey <tom@tromey.com>
5640 * python/py-type.c (typy_legacy_template_argument): Update.
5641 * cp-support.h (cp_demangled_name_to_comp): Update.
5642 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5643 parameter to be a "std::string *".
5646 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5648 * ada-lex.l: Include "diagnostics.h" instead of
5649 "common/diagnostics.h".
5650 * unittests/environ-selftests.c: Likewise.
5651 * common/diagnostics.h: Moved to ../include.
5653 2018-06-01 Joel Brobecker <brobecker@adacore.com>
5655 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5656 to language_mode_manual while calling breakpoint_re_set_one.
5658 2018-06-01 Tom Tromey <tom@tromey.com>
5660 * valops.c (value_cast_structs, destructor_name_p): Update.
5661 * symtab.c (gdb_mangle_name): Update.
5662 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5664 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5665 (pascal_object_print_value_fields, pascal_object_print_value):
5667 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5668 * linespec.c (find_methods): Update.
5669 * gdbtypes.h (type_name_no_tag): Remove.
5670 (type_name_or_error): Rename from type_name_no_tag_or_error.
5671 * gdbtypes.c (type_name_no_tag): Remove.
5672 (type_name_or_error): Rename from type_name_no_tag_or_error.
5673 (lookup_struct_elt_type, check_typedef): Update.
5674 * expprint.c (print_subexp_standard): Update.
5675 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5676 * d-namespace.c (d_lookup_nested_symbol): Update.
5677 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5678 (cp_print_class_member): Update.
5679 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5680 * completer.c (add_struct_fields): Update.
5681 * c-typeprint.c (cp_type_print_derivation_info)
5682 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5684 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5685 (ada_prefer_type, ada_is_exception_sym): Update.
5687 2018-06-01 Tom Tromey <tom@tromey.com>
5689 * valops.c (enum_constant_from_type, value_namespace_elt)
5690 (value_maybe_namespace_elt): Update.
5691 * valarith.c (find_size_for_pointer_math): Update.
5692 * target-descriptions.c (make_gdb_type): Update.
5693 * symmisc.c (print_symbol): Update.
5694 * stabsread.c (define_symbol, read_type)
5695 (complain_about_struct_wipeout, add_undefined_type)
5696 (cleanup_undefined_types_1): Update.
5697 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5698 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5699 (rust_internal_print_type, rust_composite_type)
5700 (rust_evaluate_funcall, rust_evaluate_subexp)
5701 (rust_inclusive_range_type_p): Update.
5702 * python/py-type.c (typy_get_tag): Update.
5703 * p-typeprint.c (pascal_type_print_base): Update.
5704 * mdebugread.c (parse_symbol, parse_type): Update.
5705 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5707 * guile/scm-type.c (gdbscm_type_tag): Update.
5708 * go-lang.c (sixg_string_p): Update.
5709 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5711 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5712 (TYPE_TAG_NAME): Remove.
5713 * gdbtypes.c (type_name_no_tag): Simplify.
5714 (check_typedef, check_types_equal, recursive_dump_type)
5715 (copy_type_recursive, arch_composite_type): Update.
5716 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5717 in summary mode when needed.
5718 * eval.c (evaluate_funcall): Update.
5719 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5720 (process_structure_scope, read_enumeration_type)
5721 (read_namespace_type, read_module_type, determine_prefix): Update.
5722 * cp-support.c (inspect_type): Update.
5723 * coffread.c (process_coff_symbol, decode_base_type): Update.
5724 * c-varobj.c (c_is_path_expr_parent): Update.
5725 * c-typeprint.c (c_type_print_base_struct_union): Update.
5726 (c_type_print_base_1): Update. Print struct/class/union/enum in
5727 summary when using C language.
5728 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5729 (gen_maybe_namespace_elt): Update.
5730 * ada-lang.c (ada_type_name): Simplify.
5731 (empty_record, ada_template_to_fixed_record_type_1)
5732 (template_to_static_fixed_type)
5733 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5735 2018-06-01 Tom Tromey <tom@tromey.com>
5737 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5739 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5740 (c_print_type): Update.
5741 (c_print_type): New overload.
5742 (c_type_print_varspec_prefix, c_type_print_args)
5743 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5744 (c_type_print_base_struct_union, c_type_print_base_1)
5745 (cp_type_print_method_args): Add "language" parameter.
5746 (c_type_print_base): Update.
5747 * c-lang.h (c_print_type): Add new overload.
5749 2018-06-01 Tom Tromey <tom@tromey.com>
5751 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5752 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5754 2018-06-01 Alan Hayward <alan.hayward@arm.com>
5756 * aarch64-tdep.c (aarch64_sve_register_names): New const
5758 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5759 (AARCH64_SVE_Z_REGS_NUM): New define.
5760 (AARCH64_SVE_P_REGS_NUM): Likewise.
5761 (AARCH64_SVE_NUM_REGS): Likewise.
5763 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
5765 * nat/linux-ptrace.h [__alpha__]
5766 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5769 2018-05-31 Maciej W. Rozycki <macro@mips.com>
5771 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5772 the endianness selected.
5773 * NEWS: Document `set endian auto' mode operation update.
5775 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5777 * Makefile.in: Add new header.
5778 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5779 (sve_vl_from_vg): Likewise.
5780 (sve_vq_from_vl): Likewise.
5781 (sve_vl_from_vq): Likewise.
5782 (sve_vq_from_vg): Likewise.
5783 (sve_vg_from_vq): Likewise.
5784 * configure.nat: Add new c file.
5785 * nat/aarch64-sve-linux-ptrace.c: New file.
5786 * nat/aarch64-sve-linux-ptrace.h: New file.
5788 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5790 * aarch64-linux-nat.c (aarch64_linux_read_description):
5792 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5794 * aarch64-tdep.c (tdesc_aarch64_list): Add.
5795 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
5796 (aarch64_gdbarch_init): Add parmeter zero.
5797 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
5798 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
5799 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
5801 * doc/gdb.texinfo: Describe SVE feature
5802 * features/aarch64-sve.c: New file.
5804 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
5807 * gdbarch.sh (significant_addr_bit): Default to zero when
5808 not set by target architecture.
5809 * gdbarch.c: Re-generated.
5810 * utils.c (address_significant): Update.
5812 2018-05-30 Joel Brobecker <brobecker@adacore.com>
5814 * stack.c (func_command): Remove trailing newline in call to error.
5816 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5818 * regcache.h (regcache_raw_collect): Remove, update callers to
5819 use regcache::raw_collect.
5820 * regcache.c (regcache_raw_collect): Remove.
5822 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5824 * regcache.h (regcache_raw_supply): Remove, update callers to
5825 use detached_regcache::raw_supply.
5826 * regcache.c (regcache_raw_supply): Remove.
5828 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5830 * regcache.h (regcache_cooked_write_part): Remove, update
5831 callers to use regcache::cooked_write_part.
5832 * regcache.c (regcache_cooked_write_part): Remove.
5834 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5836 * regcache.h (regcache_cooked_read_part): Remove, update callers
5837 to use readable_regcache::cooked_read_part.
5838 * regcache.c (regcache_cooked_read_part): Remove.
5840 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5842 * regcache.h (regcache_cooked_read_value): Remove, update
5843 callers to use readable_regcache::cooked_read_value.
5844 * regcache.c (regcache_cooked_read_value): Remove.
5846 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5848 * regcache.h (regcache_cooked_write): Remove, update callers to
5849 use regcache::cooked_write.
5850 * regcache.c (regcache_cooked_write): Remove.
5852 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5854 * regcache.h (regcache_invalidate): Remove, update callers to
5855 use detached_regcache::invalidate instead.
5856 * regcache.c (regcache_invalidate): Remove.
5858 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5860 * regcache.h (regcache_raw_write_part): Remove, update callers
5861 to use regcache::raw_write_part instead.
5862 * regcache.c (regcache_raw_write_part): Remove.
5864 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5866 * regcache.h (regcache_raw_read_part): Remove, update callers to
5867 use readable_regcache::raw_read_part instead.
5868 * regcache.c (regcache_raw_read_part): Remove.
5870 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5872 * regcache.h (regcache_cooked_read): Remove, update callers to
5873 use readable_regcache::cooked_read instead.
5874 * regcache.c (regcache_cooked_read): Remove.
5876 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5878 * regcache.h (regcache_raw_write): Remove, update callers to use
5879 regcache::raw_write instead.
5880 * regcache.c (regcache_raw_write): Remove.
5882 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5884 * regcache.h (regcache_raw_read): Remove, update callers to use
5885 readable_regcache::raw_read instead.
5886 * regcache.c (regcache_raw_read): Remove.
5888 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5890 * regcache.h (regcache_raw_update): Remove, update callers to
5891 use readable_regcache::raw_update instead.
5892 * regcache.c (regcache_raw_update): Remove.
5894 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5896 * regcache.h (regcache_register_status): Remove, update callers
5897 to use reg_buffer::get_register_status directly instead.
5898 * regcache.c (regcache_register_status): Remove.
5900 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5902 * regcache.h (regcache_get_ptid): Remove, update all callers to
5903 call regcache::ptid instead.
5904 * regcache.c (regcache_get_ptid): Remove.
5906 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5908 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
5910 2018-05-30 Pedro Alves <palves@redhat.com>
5912 * common/common-exceptions.h (exception_rethrow): Use
5915 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
5917 * breakpoint.c (print_solib_event, check_status_catch_solib):
5918 Remove struct keyword in range-based for loops.
5919 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
5920 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
5922 * linespec.c (find_superclass_methods, search_minsyms_for_name):
5924 * symfile.c (addr_info_make_relative): Likewise.
5925 * thread.c (value_in_thread_stack_temporaries): Likewise.
5927 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
5930 * valops.c (value_struct_elt_for_reference): Call check_typedef on
5931 aggregate type to get its real type before accessing it.
5933 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
5935 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
5936 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
5937 * coff-pe-read.c (add_pe_forwarded_sym): Replace
5938 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
5939 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
5940 * jit.c (jit_breakpoint_re_set_internal): Likewise.
5941 * printcmd.c (info_address_command): Likewise.
5943 2018-05-29 Tom Tromey <tom@tromey.com>
5945 * windows-nat.c (handle_exception): Update fall-through comment.
5947 2018-05-29 Tom Tromey <tom@tromey.com>
5949 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
5950 (struct program_space) <added_solibs>: Now a std::vector.
5951 * breakpoint.c (print_solib_event): Update.
5952 (check_status_catch_solib): Update.
5953 * progspace.c (clear_program_space_solib_cache): Update.
5954 * solib.c (update_solib_list): Update.
5956 2018-05-29 Tom Tromey <tom@tromey.com>
5958 * python/py-type.c (typy_richcompare): Update.
5959 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
5960 * gdbtypes.h (types_deeply_equal): Return bool.
5961 (types_equal): Likewise.
5962 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
5964 (check_types_equal): Change worklist to std::vector. Return
5966 (struct type_equality_entry): Add constructor.
5967 (compare_maybe_null_strings): Return bool.
5968 (check_types_worklist): Return bool. Change worklist to
5970 (types_deeply_equal): Use std::vector.
5971 (types_equal): Return bool.
5972 (compare_maybe_null_strings): Simplify.
5974 2018-05-29 Tom Tromey <tom@tromey.com>
5976 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
5978 2018-05-29 Tom Tromey <tom@tromey.com>
5980 * objc-lang.h: Don't include cp-support.h.
5981 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
5984 2018-05-27 Tom Tromey <tom@tromey.com>
5986 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
5988 2018-05-25 Tom Tromey <tom@tromey.com>
5990 * value.c (value::location): Initialize.
5992 2018-05-25 Tom Tromey <tom@tromey.com>
5994 * dbxread.c (init_bincl_list): Remove.
5995 (bincl_list): Now a std::vector.
5996 (bincls_allocated, next_bincl): Remove.
5997 (free_bincl_list, do_free_bincl_list_cleanup)
5998 (make_cleanup_free_bincl_list): Remove.
5999 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6001 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6002 (struct header_file_location): Add constructor.
6003 (add_bincl_to_list): Remove.
6005 2018-05-25 Tom Tromey <tom@tromey.com>
6007 * tui/tui.c (tui_enable): Update.
6008 * mi/mi-interp.c (mi_interp::init): Update.
6009 * interps.h (class interp) <name>: New method.
6010 <m_name>: Rename from name.
6011 (~scoped_restore_interp): Update.
6012 * interps.c (interp::interp): Update.
6013 (interp_add, interp_set, interp_lookup_existing)
6014 (current_interp_named_p): Update.
6016 2018-05-25 Tom Tromey <tom@tromey.com>
6018 * interps.c (interp_name): Remove.
6019 * mi/mi-interp.c (mi_interp::init): Update.
6020 * interps.h (interp_name): Remove.
6021 (~scoped_restore_interp): Update.
6022 * tui/tui.c (tui_enable): Update.
6024 2018-05-25 Tom Tromey <tom@tromey.com>
6026 * utils.c (fputs_maybe_filtered): Update.
6027 * linespec.c (decode_line_full): Update.
6028 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6029 (mi_print_breakpoint_for_event, mi_solib_loaded)
6030 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6031 (mi_user_selected_context_changed): Update.
6032 * mi/mi-main.c (mi_execute_command): Update.
6033 * cli/cli-script.c (execute_control_command): Update.
6034 * python/python.c (execute_gdb_command): Update.
6035 * solib.c (info_sharedlibrary_command): Update.
6036 * interps.c (interp_ui_out): Remove.
6037 * interps.h (interp_ui_out): Remove.
6039 2018-05-25 Tom Tromey <tom@tromey.com>
6041 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6042 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6043 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6045 2018-05-25 Tom Tromey <tom@tromey.com>
6047 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6048 * interps.c (interp_exec): Use scoped_restore.
6050 2018-05-25 Tom Tromey <tom@tromey.com>
6052 * remote.c (remote_target::remote_file_get): Use
6054 (remote_target::remote_file_put): Likewise.
6056 2018-05-25 Tom Tromey <tom@tromey.com>
6058 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6060 (get_pe_section_index, add_pe_exported_sym): Update.
6061 (read_pe_exported_syms): Use gdb::def_vector.
6063 2018-05-25 Tom Tromey <tom@tromey.com>
6065 * frame.c (remove_prev_frame): Remove.
6066 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6068 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6070 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6072 * mips-linux-nat.c (supply_fpregset): Always call
6073 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6074 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6075 `mips_fill_fpregset'.
6076 * mips-linux-tdep.c (mips_supply_fpregset)
6077 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6078 (mips_fill_fpregset_wrapper): Remove functions.
6079 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6080 (mips_linux_fpregset): Remove variable.
6081 (mips_linux_iterate_over_regset_sections): Use
6082 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6083 (mips_linux_o32_sigframe_init): Remove comment.
6085 2018-05-25 Pedro Alves <palves@redhat.com>
6087 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6088 (struct readahead_cache, struct packet_reg, struct
6089 remote_arch_state, class remote_state): Move higher up in the
6091 (remote_target::m_remote_state): Now an object instead of a pointer.
6092 (remote_target::get_remote_state): Adjust.
6094 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6096 * stack.c (select_and_print_frame): Delete.
6097 (struct function_bounds): Move struct within function.
6098 (func_command): Most content moved into new function
6099 find_frame_for_function, use new function, print result, add
6101 (find_frame_for_function): New function, now returns a result.
6103 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6105 * stack.c (iterate_over_block_arg_vars): Fix comment.
6106 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6108 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6112 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6114 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6116 * frame.h (class scoped_restore_selected_frame): New class.
6117 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6118 of any exception, use scoped_restore_selected_frame to restore the
6121 2018-05-24 Pedro Alves <palves@redhat.com>
6123 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6126 2018-05-23 Tom Tromey <tom@tromey.com>
6128 * complaints.c (struct complaints): Remove.
6129 (symfile_complaint_book): Remove.
6130 (series): New global.
6131 (complaint_internal): Update.
6132 (clear_complaints): Update.
6134 2018-05-23 Tom Tromey <tom@tromey.com>
6136 * complaints.c (counters): New global.
6137 (struct complain): Remove.
6138 (struct complaints) <root>: Remove.
6139 (complaint_sentinel): Remove.
6140 (symfile_complaint_book): Update.
6141 (find_complaint) Remove.
6142 (complaint_internal, clear_complaints): Update.
6144 2018-05-23 Tom Tromey <tom@tromey.com>
6146 * complaints.c (struct complain) <file, line>: Remove.
6147 (find_complaint): Remove file, line parameters.
6148 (complaint_internal): Update.
6150 2018-05-23 Tom Tromey <tom@tromey.com>
6152 * complaints.c (vcomplaint): Remove.
6153 (complaint_internal) Merge in contents of vcomplaint.
6155 2018-05-23 Tom Tromey <tom@tromey.com>
6157 * complaints.c (struct complaints) <explanation>: Remove.
6158 (symfile_explanations): Remove.
6159 (symfile_complaint_book): Update.
6160 (vcomplaint): Update.
6161 (struct explanation): Remove.
6163 2018-05-23 Tom Tromey <tom@tromey.com>
6165 * complaints.c (symfile_complaints): Remove.
6166 (complaint_internal): Remove "complaints" parameter.
6167 (clear_complaints, vcomplaint): Remove "c" parameter.
6168 (get_complaints): Remove.
6169 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6170 (dwarf2_debug_line_missing_file_complaint)
6171 (dwarf2_debug_line_missing_end_sequence_complaint)
6172 (dwarf2_complex_location_expr_complaint)
6173 (dwarf2_const_value_length_mismatch_complaint)
6174 (dwarf2_section_buffer_overflow_complaint)
6175 (dwarf2_macro_malformed_definition_complaint)
6176 (dwarf2_invalid_attrib_class_complaint)
6177 (create_addrmap_from_index, dw2_symtab_iter_next)
6178 (dw2_expand_marked_cus)
6179 (dw2_debug_names_iterator::find_vec_in_debug_names)
6180 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6181 (create_debug_type_hash_table, init_cutu_and_read_dies)
6182 (partial_die_parent_scope, add_partial_enumeration)
6183 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6184 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6185 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6186 (create_cus_hash_table, create_dwp_hash_table)
6187 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6188 (dwarf2_rnglists_process, dwarf2_ranges_process)
6189 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6190 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6191 (handle_struct_member_die, process_structure_scope)
6192 (read_array_type, read_common_block, read_module_type)
6193 (read_tag_pointer_type, read_typedef, read_base_type)
6194 (read_subrange_type, load_partial_dies, partial_die_info::read)
6195 (partial_die_info::read, partial_die_info::read)
6196 (partial_die_info::read, read_checked_initial_length_and_offset)
6197 (dwarf2_string_attr, read_formatted_entries)
6198 (dwarf_decode_line_header)
6199 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6200 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6201 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6202 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6203 (get_signatured_type, get_DW_AT_signature_type)
6204 (decode_locdesc, file_file_name, consume_improper_spaces)
6205 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6206 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6207 (dwarf2_symbol_mark_computed, set_die_type)
6208 (read_attribute_value): Update.
6209 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6211 * dbxread.c (unknown_symtype_complaint)
6212 (lbrac_mismatch_complaint, repeated_header_complaint)
6213 (set_namestring, function_outside_compilation_unit_complaint)
6214 (read_dbx_symtab, process_one_symbol): Update.
6215 * gdbtypes.c (stub_noname_complaint): Update.
6216 * windows-nat.c (handle_unload_dll): Update.
6217 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6218 (decode_base_type): Update.
6219 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6220 (eb_complaint, record_include_begin, record_include_end)
6221 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6222 (process_xcoff_symbol, read_symbol)
6223 (function_outside_compilation_unit_complaint)
6224 (scan_xcoff_symtab): Update.
6225 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6226 * buildsym.c (finish_block_internal, make_blockvector)
6227 (end_symtab_get_static_block, augment_type_symtab): Update.
6228 * dtrace-probe.c (dtrace_process_dof)
6229 (dtrace_static_probe_ops::get_probes): Update.
6230 * complaints.h (struct complaint): Don't declare.
6231 (symfile_complaints): Remove.
6232 (complaint_internal): Remove "complaints" parameter.
6233 (complaint): Likewise.
6234 (clear_complaints): Likewise.
6235 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6236 (reread_symbols): Update.
6237 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6238 (dwarf2_frame_cache, decode_frame_entry): Update.
6239 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6240 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6241 (info_selectors_command): Update.
6242 * macrotab.c (macro_include, check_for_redefinition)
6243 (macro_undef): Update.
6244 * objfiles.c (filter_overlapping_sections): Update.
6245 * stabsread.c (invalid_cpp_abbrev_complaint)
6246 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6247 (define_symbol, error_type, read_type, rs6000_builtin_type)
6248 (stabs_method_name_from_physname, read_member_functions)
6249 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6250 (attach_fields_to_type, complain_about_struct_wipeout)
6251 (read_range_type, read_args, common_block_start)
6252 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6254 * mdebugread.c (index_complaint, unknown_ext_complaint)
6255 (basic_type_complaint, bad_tag_guess_complaint)
6256 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6257 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6258 (parse_procedure, parse_lines)
6259 (function_outside_compilation_unit_complaint)
6260 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6261 (bad_tag_guess_complaint, reg_value_complaint): Update.
6262 * cp-support.c (demangled_name_complaint): Update.
6263 * macroscope.c (sal_macro_scope): Update.
6264 * dwarf-index-write.c (class debug_names): Update.
6266 2018-05-23 Tom Tromey <tom@tromey.com>
6268 * complaints.c (clear_complaints): Remove "noisy" parameter.
6269 * complaints.h (clear_complaints): Update.
6270 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6271 (reread_symbols): Update.
6273 2018-05-23 Tom Tromey <tom@tromey.com>
6275 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6277 (vcomplaint, clear_complaints): Update.
6278 (symfile_explanations): Remove some messages.
6280 2018-05-23 Tom Tromey <tom@tromey.com>
6282 * complaints.c (internal_complaint): Remove.
6283 * complaints.h (internal_complaint): Remove.
6285 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6287 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6289 2018-05-22 Pedro Alves <palves@redhat.com>
6291 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6292 (remote_fileio_badfd, remote_fileio_return_errno)
6293 (remote_fileio_return_success, remote_fileio_func_open)
6294 (remote_fileio_func_open, remote_fileio_func_close)
6295 (remote_fileio_func_read, remote_fileio_func_write)
6296 (remote_fileio_func_lseek, remote_fileio_func_rename)
6297 (remote_fileio_func_unlink, remote_fileio_func_stat)
6298 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6299 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6300 remote_target parameter.
6301 (remote_fio_func_map) <func>: Add remote_target parameter.
6302 (do_remote_fileio_request, remote_fileio_request):
6303 * remote-fileio.h (remote_fileio_request):
6304 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6305 remote_target parameter.
6306 (remote_notif_process, handle_notification): Adjust to pass down
6308 (remote_notif_state_allocate): Add remote_target parameter. Save
6310 * remote-notif.h (struct remote_target): Forward declare.
6311 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6312 remote_target parameter.
6313 (struct remote_notif_state) <remote>: New field.
6314 (remote_notif_ack, remote_notif_parse): Add remote_target
6316 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6317 remote_target parameter.
6318 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6319 (threads_listing_context, rmt_thread_action, protocol_feature)
6320 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6321 (packet_result, struct threads_listing_context, remote_state):
6322 Move definitions and declarations higher up.
6323 (remote_target) <~remote_target>: Declare.
6324 (remote_download_command_source, remote_file_put, remote_file_get)
6325 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6326 (remote_hostio_pread_vFile, remote_hostio_send_command)
6327 (remote_hostio_set_filesystem, remote_hostio_open)
6328 (remote_hostio_close, remote_hostio_unlink, remote_state)
6329 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6330 (get_memory_write_packet_size, get_memory_read_packet_size)
6331 (append_pending_thread_resumptions, remote_detach_1)
6332 (append_resumption, remote_resume_with_vcont)
6333 (add_current_inferior_and_thread, wait_ns, wait_as)
6334 (process_stop_reply, remote_notice_new_inferior)
6335 (process_initial_stop_replies, remote_add_thread)
6336 (btrace_sync_conf, remote_btrace_maybe_reopen)
6337 (remove_new_fork_children, kill_new_fork_children)
6338 (discard_pending_stop_replies, stop_reply_queue_length)
6339 (check_pending_events_prevent_wildcard_vcont)
6340 (discard_pending_stop_replies_in_queue, stop_reply)
6341 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6342 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6343 (remote_interrupt_as, remote_interrupt_ns)
6344 (remote_get_noisy_reply, remote_query_attached)
6345 (remote_add_inferior, remote_current_thread, get_current_thread)
6346 (set_thread, set_general_thread, set_continue_thread)
6347 (set_general_process, write_ptid)
6348 (remote_unpack_thread_info_response, remote_get_threadinfo)
6349 (parse_threadlist_response, remote_get_threadlist)
6350 (remote_threadlist_iterator, remote_get_threads_with_ql)
6351 (remote_get_threads_with_qxfer)
6352 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6353 (get_offsets, remote_check_symbols, remote_supported_packet)
6354 (remote_query_supported, remote_packet_size)
6355 (remote_serial_quit_handler, remote_detach_pid)
6356 (remote_vcont_probe, remote_resume_with_hc)
6357 (send_interrupt_sequence, interrupt_query)
6358 (remote_notif_get_pending_events, fetch_register_using_p)
6359 (send_g_packet, process_g_packet, fetch_registers_using_g)
6360 (store_register_using_P, store_registers_using_G)
6361 (set_remote_traceframe, check_binary_download)
6362 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6363 (remote_xfer_live_readonly_partial, remote_read_bytes)
6364 (remote_send_printf, remote_flash_write, readchar)
6365 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6366 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6367 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6368 (extended_remote_disable_randomization, extended_remote_run)
6369 (send_environment_packet, extended_remote_environment_support)
6370 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6371 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6372 (packet_command): Now methods of ...
6373 (remote_target): ... this class.
6374 (m_remote_state) <remote_target>: New field.
6375 (struct remote_state) <stop_reply_queue,
6376 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6378 (remote_state::remote_state): Allocate stop_reply_queue.
6379 (remote_state): Delete global.
6380 (get_remote_state_raw): Delete.
6381 (remote_target::get_remote_state): Allocate m_remote_state on
6383 (get_current_remote_target): New.
6384 (remote_ops, extended_remote_ops): Delete.
6385 (wait_forever_enabled_p, remote_async_inferior_event_token):
6386 Delete, moved to struct remote_state.
6387 (remote_target::close): Delete self. Destruction bits split to
6389 (remote_target::~remote_target): ... this.
6390 (show_memory_packet_size): Adjust to use
6391 get_current_remote_target.
6392 (struct protocol_feature) <func>: Add remote_target parameter.
6393 All callers adjusted.
6394 (curr_quit_handler_target): New.
6395 (remote_serial_quit_handler): Reimplement.
6396 (remote_target::open_1): Adjust to use get_current_remote_target.
6397 Heap-allocate remote_target/extended_remote_target instances.
6398 (vcont_builder::vcont_builder): Add remote_target parameter, and
6399 save it in m_remote. All callers adjusted.
6400 (vcont_builder::m_remote): New field.
6401 (vcont_builder::restart, vcont_builder::flush)
6402 (vcont_builder::push_action): Use it.
6403 (remote_target::commit_resume): Use it.
6404 (struct queue_iter_param) <remote>: New field.
6405 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6406 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6407 (check_pending_event_prevents_wildcard_vcont_callback)
6408 (remote_target::check_pending_events_prevent_wildcard_vcont)
6409 (remote_target::discard_pending_stop_replies)
6410 (remote_target::discard_pending_stop_replies_in_queue)
6411 (remote_target::remote_notif_remove_queued_reply): Fill in
6413 (remote_notif_get_pending_events): New.
6414 (remote_target::readchar, remote_target::remote_serial_write):
6415 Save/restore curr_quit_handler_target.
6417 (kill_new_fork_children): Fill in 'remote' field.
6418 (packet_command): Use get_current_remote_target, defer to
6419 remote_target method of same name.
6420 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6421 parameter, and save it in m_remote. All callers adjusted.
6422 (scoped_remote_fd::release): Use m_remote.
6423 (scoped_remote_fd::m_remote): New field.
6424 (remote_file_put, remote_file_get, remote_file_delete): Use
6425 get_current_remote_target, defer to remote_target method of same
6427 (remote_btrace_reset): Add remote_state paremeter. Update all
6429 (remote_async_inferior_event_handler). Pass down 'data'.
6430 (remote_new_objfile): Use get_current_remote_target.
6431 (remote_target::vcont_r_supported): New.
6432 (set_range_stepping): Use get_current_remote_target and
6433 remote_target::vcont_r_supported.
6434 (_initialize_remote): Don't allocate 'remote_state' and
6435 'stop_reply_queue' globals.
6436 * remote.h (struct remote_target): Forward declare.
6437 (getpkt, putpkt, remote_notif_get_pending_events): Add
6438 'remote_target' parameter.
6440 2018-05-22 Pedro Alves <palves@redhat.com>
6442 * remote.c (vcont_builder): Now a class. Make all data members
6444 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6446 (vcont_builder_restart): Rename to ...
6447 (vcont_builder::restart): ... this.
6448 (vcont_builder_flush): Rename to ...
6449 (vcont_builder::flush): ... this.
6450 (vcont_builder_push_action): Rename to ...
6451 (vcont_builder::push_action): ... this.
6452 (remote_target::commit_resume): Adjust.
6454 2018-05-22 Pedro Alves <palves@redhat.com>
6456 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6457 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6458 (get_fixed_memory_packet_size): New.
6459 (get_memory_packet_size): Use it.
6460 (set_memory_packet_size): Don't override the config size with
6461 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6462 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6463 Don't refer to get_memory_packet_size if not connected to a remote
6464 target. Show "(default)" if configured size is 0.
6466 2018-05-22 Pedro Alves <palves@redhat.com>
6468 * remote.c (remote_target::mourn_inferior): Move
6469 discard_pending_stop_replies call here from ...
6470 (_initialize_remote): ... here.
6472 2018-05-22 Pedro Alves <palves@redhat.com>
6474 * remote.c (compare_section_command): Remove set_general_process
6477 2018-05-22 Pedro Alves <palves@redhat.com>
6479 * remote.c (struct packet_reg, struct remote_arch_state):
6480 Move higher up in the file.
6481 (remote_state) <m_arch_states>: Store remote_arch_state values
6482 instead of remote_arch_state pointers.
6483 (remote_state::get_remote_arch_state): Adjust.
6485 2018-05-22 Pedro Alves <palves@redhat.com>
6487 * remote.c: Include <unordered_map>.
6488 (remote_state): Now a class.
6489 (remote_state) <get_remote_arch_state>: Declare method.
6490 <get_remote_arch_state>: New field.
6491 (remote_arch_state) <remote_arch_state>: Declare ctor.
6492 <regs>: Now a unique_ptr.
6493 (remote_gdbarch_data_handle): Delete.
6494 (get_remote_arch_state): Delete.
6495 (remote_state::get_remote_arch_state): New.
6496 (get_remote_state): Adjust to call remote_state's
6497 get_remote_arch_state method.
6498 (init_remote_state): Delete, bits factored out to ...
6499 (remote_arch_state::remote_arch_state): ... this new method.
6500 (get_remote_packet_size, get_memory_packet_size)
6501 (process_g_packet, remote_target::fetch_registers)
6502 (remote_target::prepare_to_store, store_registers_using_G)
6503 (remote_target::store_registers, remote_target::get_trace_status):
6504 Adjust to call remote_state's method.
6505 (_initialize_remote): Remove reference to
6506 remote_gdbarch_data_handle.
6508 2018-05-22 Pedro Alves <palves@redhat.com>
6510 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6511 pread>: New method declarations.
6512 (remote_target::open_1): Adjust.
6513 (readahead_cache_invalidate): Rename to ...
6514 (readahead_cache::invalidate): ... this, and adjust to be a class
6516 (readahead_cache_invalidate_fd): Rename to ...
6517 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6519 (remote_hostio_pwrite): Adjust.
6520 (remote_hostio_pread_from_cache): Rename to ...
6521 (readahead_cache::pread): ... this, and adjust to be a class
6523 (remote_hostio_close): Adjust.
6525 2018-05-22 Pedro Alves <palves@redhat.com>
6527 * remote.c (remote_hostio_close_cleanup): Delete.
6528 (class scoped_remote_fd): New.
6529 (remote_file_put, remote_file_get): Use it.
6531 2018-05-22 Pedro Alves <palves@redhat.com>
6533 (struct vCont_action_support): Use bool and initialize all fields.
6534 (struct readahead_cache): Initialize all fields.
6535 (remote_state): Use bool and initialize all fields.
6536 (remote_state::remote_state, remote_state::~remote_state): New.
6537 (new_remote_state): Delete.
6538 (_initialize_remote): Use new to allocate remote_state.
6540 2018-05-22 Pedro Alves <palves@redhat.com>
6544 * c-exp.y: Include "c-support.h".
6545 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6546 of tolower. Use c_ident_is_alpha to scan names.
6547 * c-lang.c: Include "c-support.h".
6548 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6549 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6550 * c-support.h: New file, with bits factored out from ...
6551 * cp-name-parser.y: ... this file.
6552 Include "c-support.h".
6553 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6554 c-support.h and renamed.
6555 (symbol_end, yylex): Adjust.
6557 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6559 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6560 parameter type to CORE_ADDR.
6561 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6562 parameter type in declaration to CORE_ADDR.
6563 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6564 target_auxv_search to get AT_HWCAP and use the result to get the
6566 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6567 to CORE_ADDR. Remove the cast of the return value to unsigned
6568 long. Fix error predicate of target_auxv_search.
6569 (ppc_linux_nat_target::read_description): Change the type of the
6570 hwcap variable to CORE_ADDR.
6572 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6574 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6575 if the size of fpscr is larger than 32 bits.
6577 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6579 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6580 (ppc32_linux_vsxregmap): New global.
6581 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6582 regcache_supply_regset, and regcache_collect_regset.
6583 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6584 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6585 (fetch_vsx_register, store_vsx_register): Remove.
6586 (fetch_vsx_registers): Add regno parameter. Get regset using
6587 ppc_linux_vsxregset. Use regset to supply registers.
6588 (store_vsx_registers): Add regno parameter. Get regset using
6589 ppc_linux_vsxregset. Use regset to collect registers.
6590 (fetch_register): Call fetch_vsx_registers instead of
6592 (store_register): Call store_vsx_registers instead of
6594 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6595 new regno parameter.
6596 (store_ppc_registers): Call store_vsx_registers with -1 for the
6597 new regno parameter.
6598 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6599 (ppc_collect_vsxregset): Remove.
6601 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6603 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6605 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6606 for vector register offset fields.
6607 (ppc64_fbsd_reg_offsets): Likewise.
6608 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6609 to vector register offset fields.
6610 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6611 to vector register offset fields.
6612 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6613 vector register offset fields.
6614 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6615 initializers for vector register offset fields.
6616 (rs6000_aix64_reg_offsets): Likewise.
6617 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6618 (ppc_supply_vrregset): Remove.
6619 (ppc_collect_vrregset): Remove.
6620 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6621 (ppc_linux_vrregset) : New function.
6622 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6623 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6624 (ppc32_linux_vrregset): Remove.
6625 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6626 and use result instead of ppc32_linux_vrregset.
6627 (ppc32_linux_reg_offsets): Remove initializers for vector register
6629 (ppc64_linux_reg_offsets): Likewise.
6630 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6631 * ppc-linux-nat.c: Include regset.h.
6632 (gdb_vrregset_t): Adjust comment to account for little-endian
6634 (supply_vrregset, fill_vrregset): Remove.
6635 (fetch_altivec_register, store_altivec_register): Remove.
6636 (fetch_altivec_registers): Add regno parameter. Get regset using
6637 ppc_linux_vrregset. Use regset to supply registers.
6638 (store_altivec_registers): Add regno parameter. Get regset using
6639 ppc_linux_vrregset. Use regset to collect registers.
6640 (fetch_register): Call fetch_altivec_registers instead of
6641 fetch_altivec_register.
6642 (store_register): Call store_altivec_registers instead of
6643 store_altivec_register.
6644 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6645 the new regno parameter.
6646 (store_ppc_registers): Call store_altivec_registers with -1 for
6647 the new regno parameter.
6649 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6651 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6652 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6653 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6654 (gdb_vrregset_t): Change array type size to
6655 PPC_LINUX_SIZEOF_VRREGSET.
6656 (gdb_vsxregset_t): Change array type size to
6657 PPC_LINUX_SIZEOF_VSXREGSET.
6658 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6659 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6660 PPC_LINUX_SIZEOF_VSXREGSET.
6662 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6664 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6665 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6667 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6668 ppc_linux_target_wordsize with tid.
6669 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6671 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6672 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6673 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6674 tid parameter. Remove static specifier.
6675 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6676 (ppc_linux_target_wordsize): New declaration.
6678 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6680 * arch/ppc-linux-common.c: New file.
6681 * arch/ppc-linux-common.h: New file.
6682 * arch/ppc-linux-tdesc.h: New file.
6683 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6684 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6685 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6686 arch/ppc-linux-tdesc.h.
6687 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6688 arch/ppc-linux-tdesc.h.
6689 (ppc_linux_nat_target::read_description): Remove target
6690 description matching code. Fill a ppc_linux_features struct and
6691 call ppc_linux_match_description with it. Move comment about ISA
6692 2.05 to ppc-linux-common.c.
6693 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6694 arch/ppc-linux-tdesc.h.
6695 (ppc_linux_core_read_description): Remove target description
6696 matching code. Fill a ppc_linux_features struct and call
6697 ppc_linux_match_description with it.
6698 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6699 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6700 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6701 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6702 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6703 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6704 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6705 (tdesc_powerpc_e500l): Remove.
6707 2018-05-22 Joel Brobecker <brobecker@adacore.com>
6709 * ada-lang.c (catch_assert_command): Pass empty string instead
6710 of NULL for excep_string argument.
6712 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6714 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6715 the width of the requested register exceeds the width of the
6718 2018-05-21 Tom Tromey <tom@tromey.com>
6720 * printcmd.c (output_command): Remove.
6721 (output_command_const): Rename to output_command.
6722 * valprint.h (output_command): Rename from output_command_const.
6723 * tracepoint.c (trace_dump_actions): Call output_command.
6725 2018-05-21 Tom Tromey <tom@tromey.com>
6727 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6728 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6729 * ada-lang.h (create_ada_exception_catchpoint): Update.
6730 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6732 (create_excep_cond_exprs, ~ada_catchpoint)
6733 (should_stop_exception, print_one_exception)
6734 (print_mention_exception, print_recreate_exception): Update.
6735 (ada_get_next_arg): Remove.
6736 (catch_ada_exception_command_split): Use std::string. Change type
6737 of "excep_string", "cond_string".
6738 (catch_ada_exception_command): Update.
6739 (create_ada_exception_catchpoint): Change type of excep_string.
6740 (ada_exception_sal): Remove excep_string parameter.
6741 (~ada_catchpoint): Remove.
6743 2018-05-21 Tom Tromey <tom@tromey.com>
6745 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6748 2018-05-21 Tom Tromey <tom@tromey.com>
6750 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6751 Return unique_xmalloc_ptr.
6752 (print_it_exception): Update.
6754 2018-05-21 Tom Tromey <tom@tromey.com>
6756 * tracepoint.c (trace_dump_actions): Use std::string.
6758 2018-05-21 Tom Tromey <tom@tromey.com>
6760 * symfile.c (reread_symbols): Use std::string for original_name.
6762 2018-05-21 Tom Tromey <tom@tromey.com>
6764 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6765 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6768 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6770 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6772 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6773 * objfiles.c (get_objfile_bfd_data): Allocate
6774 objfile_per_bfd_storage with obstack_new when allocating on
6777 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6779 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6781 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6782 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6783 * mdebugread.c (mdebug_build_psymtabs): Likewise.
6784 (add_pending): Likewise.
6785 (parse_symbol): Likewise.
6786 (parse_partial_symbols): Likewise.
6787 (psymtab_to_symtab_1): Likewise.
6788 (new_psymtab): Likewise.
6789 (elfmdebug_build_psymtabs): Likewise.
6790 * minsyms.c (terminate_minimal_symbol_table): Likewise.
6791 * objfiles.c (get_objfile_bfd_data): Likewise.
6792 (objfile_register_static_link): Likewise.
6793 * psymtab.c (allocate_psymtab): Likewise.
6794 * stabsread.c (read_member_functions): Likewise.
6795 * xcoffread.c (xcoff_end_psymtab): Likewise.
6797 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6799 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
6800 compiler supports std::is_trivially_constructible.
6801 * common/poison.h: Include obstack.h.
6802 (IsMallocable): Define to is_trivially_constructible if the
6803 compiler supports it, define to true_type otherwise.
6807 (XOBNEWVEC): Redefine.
6808 * gdb_obstack.h (obstack_zalloc): New.
6809 (OBSTACK_ZALLOC): Redefine.
6810 (obstack_calloc): New.
6811 (OBSTACK_CALLOC): Redefine.
6813 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
6814 (gdbarch_obstack): New declaration in gdbarch.h, definition in
6816 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
6817 obstack_calloc/obstack_zalloc.
6818 (gdbarch_obstack_zalloc): Remove.
6819 * target-descriptions.c (tdesc_data_init): Use obstack_new.
6821 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6823 * stack.c (backtrace_command_1): Remove useless variable int i.
6825 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6827 * stack.c (print_frame_info): Fix comment.
6829 2018-05-18 Tom Tromey <tom@tromey.com>
6831 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
6832 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
6833 (~dwarf2_per_objfile): Update
6834 (dwarf2_get_dwz_file): Use new.
6835 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6838 2018-05-18 Tom Tromey <tom@tromey.com>
6840 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
6842 * dwarf2read.c (struct dwp_file): Add constructor and
6844 (open_and_init_dwp_file): Return a unique_ptr.
6845 (dwarf2_per_objfile, create_dwp_hash_table)
6846 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
6847 (lookup_dwo_unit_in_dwp): Update.
6848 (open_and_init_dwp_file, get_dwp_file): Update.
6850 2018-05-18 Tom Tromey <tom@tromey.com>
6852 * dwarf2read.c (dwarf2_per_objfile): Update.
6853 (struct mapped_index): Add initializers.
6854 (dwarf2_read_index): Use new.
6855 (dw2_symtab_iter_init): Update.
6856 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
6859 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6861 * dwarf2read.c (mapped_index) <total_size>: Remove.
6863 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6865 * unittests/format_pieces-selftests.c (test_format_specifier):
6868 2018-05-18 Tom Tromey <tom@tromey.com>
6870 * c-typeprint.c (maybe_print_hole): New function.
6871 (c_print_type_struct_field_offset): Update.
6872 (c_type_print_base_struct_union): Call maybe_print_hole.
6874 2018-05-17 Keith Seitz <keiths@redhat.com>
6876 * breakpoint.c (build_bpstat_chain): New function, moved from
6878 (bpstat_stop_status): Add optional parameter, `stop_chain'.
6879 If no stop chain is passed, call build_bpstat_chain to build it.
6880 * breakpoint.h (build_bpstat_chain): Declare.
6881 (bpstat_stop_status): Move documentation here from breakpoint.c.
6882 * infrun.c (handle_signal_stop): Before eliding inlined frames,
6883 build the stop chain and pass it to skip_inline_frames.
6884 Pass this stop chain to bpstat_stop_status.
6885 * inline-frame.c: Include breakpoint.h.
6886 (stopped_by_user_bp_inline_frame): New function.
6887 (skip_inline_frames): Add parameter `stop_chain'.
6888 Move documention to inline-frame.h.
6889 If non-NULL, use stopped_by_user_bp_inline_frame to determine
6890 whether the frame should be elided.
6891 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
6892 Add moved documentation and update for new parameter.
6894 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6897 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6898 unittests/format_pieces-selftests.c.
6899 * common/format.h (format_piece) <operator==>: New.
6900 (format_pieces) <operator[]>: Remove.
6901 * common/format.c (format_pieces::format_pieces): Handle \e.
6902 * unittests/format_pieces-selftests.c: New.
6904 2018-05-17 Tom Tromey <tom@tromey.com>
6907 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
6908 (dw2_instantiate_symtab): Add skip_partial parameter.
6909 (dw2_find_last_source_symtab, dw2_map_expand_apply)
6910 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
6911 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
6912 (dw2_expand_symtabs_matching_one)
6913 (dw2_find_pc_sect_compunit_symtab)
6914 (dw2_debug_names_lookup_symbol)
6915 (dw2_debug_names_expand_symtabs_for_function): Update.
6916 (init_cutu_and_read_dies): Add skip_partial parameter.
6917 (process_psymtab_comp_unit, build_type_psymtabs_1)
6918 (process_skeletonless_type_unit, load_partial_comp_unit)
6919 (psymtab_to_symtab_1): Update.
6920 (load_full_comp_unit): Add skip_partial parameter.
6921 (process_imported_unit_die, dwarf2_read_addr_index)
6922 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
6923 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
6924 (read_signatured_type): Update.
6926 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6928 * value.c (release_value): Remove unused variable.
6929 (record_latest_value): Likewise.
6930 (access_value_history): Likewise.
6931 (preserve_values): Likewise.
6933 2018-05-17 Tom Tromey <tom@tromey.com>
6935 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
6938 2018-05-16 Maciej W. Rozycki <macro@mips.com>
6941 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
6942 Also handle registers whose width is not a multiple of
6944 (linux_nat_trad_target::store_register): Likewise.
6946 2018-05-16 Tom Tromey <tom@tromey.com>
6948 * gdbcore.h (core_bfd): Redefine.
6949 * corelow.c (core_target::close): Update.
6950 (core_target_open): Update.
6951 * progspace.h (struct program_space) <cbfd>: Now a
6954 2018-05-16 Tom Tromey <tom@tromey.com>
6957 * symfile-add-flags.h (enum symfile_add_flags)
6958 <SYMFILE_NOT_FILENAME>: New constant.
6959 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
6960 objfile name from BFD.
6961 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
6962 * minidebug.c (find_separate_debug_file_in_section): Put
6963 ".gnu_debugdata" into BFD's file name.
6965 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
6967 * regcache.c (regcache_read_ftype, regcache_write_ftype):
6970 2018-05-15 Tamar Christina <tamar.christina@arm.com>
6973 * aarch64-tdep.c (aarch64_analyze_prologue,
6974 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
6975 Indicate not interested in errors.
6977 2018-05-15 Maciej W. Rozycki <macro@mips.com>
6979 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
6980 Supply the MIPS_ZERO_REGNUM register.
6982 2018-05-15 Maciej W. Rozycki <macro@mips.com>
6984 * mips-tdep.c (mask_address_var): Make variable static.
6986 2018-05-14 Tom Tromey <tom@tromey.com>
6988 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
6990 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
6992 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
6993 FXSAVE_ADDR for the mxcsr register.
6995 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
6997 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
6999 2018-05-11 Pedro Alves <palves@redhat.com>
7001 * corelow.c (core_target) <core_target>: No longer inline.
7002 Initialize m_core_gdbarch, m_core_vec and build the section table
7004 <~core_target>: New.
7005 <core_gdbarch, get_core_register_section>: New methods.
7006 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7007 factored out from ...
7008 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7010 (sniff_core_bfd): Add gdbarch parameter.
7011 (core_close): Delete, merged into ...
7012 (core_target::close): ... here. Delete self.
7013 (core_close_cleanup): Delete.
7014 (core_target_open): Allocate a core_target on the heap. Use a
7015 unique_ptr instead of a cleanup. Bits moved into the core_target
7016 ctor. Adjust to use core_target methods instead of globals.
7017 (get_core_register_section): Rename to ...
7018 (core_target::get_core_register_section): ... this and adjust.
7019 (struct get_core_registers_cb_data): New.
7020 (get_core_registers_cb): Use it. Use bool.
7021 (core_target::fetch_registers, core_target::files_info)
7022 (core_target::xfer_partial, core_target::read_description)
7023 (core_target::pid_to, core_target::thread_name): Adjust to
7024 reference class fields instead of globals.
7025 * target.h (struct target_ops_deleter, target_ops_up): New.
7027 2018-05-11 Pedro Alves <palves@redhat.com>
7029 * corefile.c (core_file_command): Move to corelow.c.
7030 * corelow.c (the_core_target): Delete.
7031 (core_file_command): Moved from corefile.c. Check exec_bfd
7032 instead of the_core_target. Use target_detach instead of calling
7033 into the_core_target directly.
7034 (maybe_say_no_core_file_now): New.
7035 (core_target::detach): Use it.
7036 (_initialize_corelow): Remove references to the_core_target.
7037 * gdbcore.h (the_core_target): Delete.
7039 2018-05-11 Tom Tromey <tromey@redhat.com>
7040 Pedro Alves <palves@redhat.com>
7042 * corefile.c (core_bfd): Remove.
7043 * gdbcore.h (core_bfd): Now a macro.
7044 * progspace.h (struct program_space) <cbfd>: New field.
7046 2018-05-11 Tom Tromey <tom@tromey.com>
7048 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7051 2018-05-10 Tom Tromey <tom@tromey.com>
7053 * configure: Rebuild.
7054 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7056 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7059 * regformats/regdat.sh: Adjust script, following the addition
7060 of the new expedite_regs parameter to init_target_desc.
7062 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7065 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7066 set_gdbarch_significant_addr_bit.
7067 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7068 set_gdbarch_significant_addr_bit.
7069 * utils.c (address_significant): Update to sign extend addr.
7071 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7073 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7074 (xtensa_linux_init_abi): Limit tdep->num_regs by
7075 tdep->num_nopriv_regs.
7076 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7077 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7080 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7082 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7084 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7086 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7087 (I387_MXCSR_INIT_VAL): New constant.
7088 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7089 buffer if it was supplied by the inferior.
7090 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7091 (i387_xsave_get_clear_bv): New function.
7092 (i387_supply_xsave): Only read x87 control registers from the
7093 xsave buffer if the feature is enabled, and the state will have
7094 been written, otherwise, provide a suitable default.
7095 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7096 including x87 control registers. Update control registers if they
7097 have changed from the default value, and mark features as enabled
7099 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7101 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7103 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7105 2018-05-07 Tom Tromey <tom@tromey.com>
7107 * configure: Rebuild.
7108 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7110 2018-05-07 Tom Tromey <tom@tromey.com>
7113 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7114 bit. Use correct value for VDIV.
7116 2018-05-04 Tom Tromey <tom@tromey.com>
7118 * configure: Rebuild.
7119 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7121 2018-05-04 Tom Tromey <tom@tromey.com>
7123 * linux-record.c (record_linux_system_call) <case
7124 RECORD_SYS_RECVFROM>: Add "break".
7126 2018-05-04 Tom Tromey <tom@tromey.com>
7128 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7129 Add missing "break".
7130 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7131 Add missing "break".
7133 2018-05-04 Tom Tromey <tom@tromey.com>
7135 * rs6000-tdep.c (ppc_process_record_op4)
7136 (ppc_process_record_op63): Add fall-through comment.
7138 2018-05-04 Tom Tromey <tom@tromey.com>
7140 * i386-tdep.c (i386_process_record): Add fall-through comment.
7142 2018-05-04 Tom Tromey <tom@tromey.com>
7144 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7147 2018-05-04 Tom Tromey <tom@tromey.com>
7149 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7150 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7151 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7153 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7155 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7158 2018-05-04 Tom Tromey <tom@tromey.com>
7160 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7162 2018-05-04 Tom Tromey <tom@tromey.com>
7164 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7165 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7166 * symfile.c (section_is_mapped): Fix fall-through comment.
7167 * stabsread.c (define_symbol, read_member_functions): Fix
7168 fall-through comment.
7169 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7171 * remote.c (remote_wait_as): Fix fall-through comment.
7172 * p-exp.y (yylex): Fix fall-through comment.
7173 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7175 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7176 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7177 * jv-exp.y (yylex): Fix fall-through comment.
7178 * go-exp.y (lex_one_token): Fix fall-through comment.
7179 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7180 fall-through comment.
7181 * f-exp.y (yylex): Fix fall-through comment.
7182 * dwarf2read.c (process_die): Fix fall-through comments.
7183 * dbxread.c (process_one_symbol): Fix fall-through comment.
7184 * d-exp.y (lex_one_token): Fix fall-through comment.
7185 * cp-name-parser.y (yylex): Fix fall-through comment.
7186 * coffread.c (coff_symtab_read): Fix fall-through comment.
7187 * c-exp.y (lex_one_token): Fix fall-through comment.
7188 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7190 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7193 2018-05-04 Tom Tromey <tom@tromey.com>
7196 * NEWS: Mention gdb.execute change.
7197 * gdbcmd.h (execute_control_command): Don't declare.
7198 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7199 execute_control_commands, execute_control_commands_to_string.
7200 * cli/cli-script.h (execute_control_commands)
7201 (execute_control_commands_to_string): Declare.
7202 (execute_control_command): Add from_tty parameter.
7203 * cli/cli-script.c (execute_control_commands)
7204 (execute_control_commands_to_string): New functions.
7205 (execute_user_command): Use execute_control_commands.
7206 (execute_control_command_1): Add "from_tty" parameter. Update.
7207 (execute_control_command): Likewise.
7209 2018-05-04 Tom Tromey <tom@tromey.com>
7212 * NEWS: Mention that breakpoint commands are writable.
7213 * python/py-breakpoint.c (bppy_set_commands): New function.
7214 (breakpoint_object_getset) <"commands">: Use it.
7216 2018-05-04 Tom Tromey <tom@tromey.com>
7218 * tracepoint.c (actions_command): Update.
7219 * mi/mi-cmd-break.c (mi_command_line_array)
7220 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7221 (mi_read_next_line): Remove.
7222 (mi_cmd_break_commands): Update.
7223 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7225 * cli/cli-script.c (get_command_line): Update.
7226 (process_next_line): Use function_view. Constify.
7227 (recurse_read_control_structure, read_command_lines)
7228 (read_command_lines_1): Change argument types to function_view.
7229 (do_define_command, document_command): Update.
7230 * breakpoint.h (check_tracepoint_command): Don't declare.
7231 * breakpoint.c (check_tracepoint_command): Remove.
7232 (commands_command_1, create_tracepoint_from_upload): Update.
7234 2018-05-04 Tom Tromey <tom@tromey.com>
7237 * cli/cli-script.h (enum command_control_type) <define_control>:
7239 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7240 (build_command_line, execute_control_command_1)
7241 (process_next_line): Likewise.
7242 (do_define_command): New function, extracted from define_command.
7243 (define_command): Use it.
7245 2018-05-04 Tom Tromey <tom@tromey.com>
7247 * tracepoint.c (actions_command): Update.
7248 * cli/cli-script.h (read_command_lines): Update.
7249 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7250 (MAX_TMPBUF): Remove define.
7251 (define_command): Use string_printf.
7252 (document_command): Likewise.
7253 * breakpoint.c (commands_command_1): Update.
7255 2018-05-04 Tom Tromey <tom@tromey.com>
7257 * top.c (execute_command): Update.
7258 * cli/cli-script.h (print_command_lines): Now varargs.
7259 * cli/cli-script.c (print_command_lines): Now varargs.
7260 (execute_control_command_1) <case while_control, case if_control>:
7263 2018-05-04 Tom Tromey <tom@tromey.com>
7265 * tracepoint.c (all_tracepoint_actions): Rename from
7266 all_tracepoint_actions_and_cleanup. Change return type.
7267 (actions_command, encode_actions_1, encode_actions)
7268 (trace_dump_actions, tdump_command): Update.
7269 * remote.c (remote_download_command_source): Update.
7270 * python/python.c (gdbpy_eval_from_control_command)
7271 (python_command, python_interactive_command): Update.
7272 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7273 * guile/guile.c (guile_command)
7274 (gdbscm_eval_from_control_command, guile_command): Update.
7275 * compile/compile.c (compile_code_command)
7276 (compile_print_command, compile_to_object): Update.
7277 * cli/cli-script.h (struct command_lines_deleter): New.
7278 (counted_command_line): New typedef.
7279 (struct command_line): Add constructor, destructor.
7280 <body_list>: Remove.
7281 <body_list_0, body_list_1>: New members.
7282 (command_line_up): Remove typedef.
7283 (read_command_lines, read_command_lines_1, get_command_line):
7285 (copy_command_lines): Don't declare.
7286 * cli/cli-script.c (build_command_line): Use "new".
7287 (get_command_line): Return counted_command_line.
7288 (print_command_lines, execute_user_command)
7289 (execute_control_command_1, while_command, if_command): Update.
7290 (realloc_body_list): Remove.
7291 (process_next_line, recurse_read_control_structure): Update.
7292 (read_command_lines, read_command_lines_1): Return counted_command_line.
7293 (free_command_lines): Use "delete".
7294 (copy_command_lines): Remove.
7295 (define_command, document_command, show_user_1): Update.
7296 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7297 a counted_command_line.
7298 * breakpoint.h (counted_command_line): Remove typedef.
7299 (breakpoint_set_commands): Update.
7300 * breakpoint.c (check_no_tracepoint_commands)
7301 (validate_commands_for_breakpoint): Update.
7302 (breakpoint_set_commands): Change commands to be a
7303 counted_command_line.
7304 (commands_command_1, update_dprintf_command_list)
7305 (create_tracepoint_from_upload): Update.
7307 2018-05-04 Tom Tromey <tom@tromey.com>
7309 * cli/cli-decode.h (cmd_list_element): New constructor.
7310 (~cmd_list_element): New destructor.
7311 (struct cmd_list_element): Add initializers.
7312 * cli/cli-decode.c (do_add_cmd): Use "new".
7313 (delete_cmd): Use "delete".
7315 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7316 Pedro Alves <palves@redhat.com>
7318 PR breakpoints/19806 and support for PR external/20207.
7319 * NEWS: Mention Aarch64 watchpoint improvements.
7320 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7321 watchpoints and PR external/20207 watchpoints.
7322 * nat/aarch64-linux-hw-point.c
7323 (kernel_supports_any_contiguous_range): New.
7324 (aarch64_watchpoint_offset): New.
7325 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7326 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7327 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7328 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7329 next_addr_orig_p. Support PR external/20207 watchpoints.
7330 (aarch64_downgrade_regs): New.
7331 (aarch64_dr_state_insert_one_point): New parameters offset and
7333 (aarch64_dr_state_remove_one_point): Likewise.
7334 (aarch64_handle_breakpoint): Update caller.
7335 (aarch64_handle_aligned_watchpoint): Likewise.
7336 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7338 (aarch64_linux_set_debug_regs): Remove const from state. Call
7339 aarch64_downgrade_regs.
7340 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7341 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7342 (DR_CONTROL_MASK): ... this.
7343 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7344 (unsigned int aarch64_watchpoint_offset): New prototype.
7345 (aarch64_linux_set_debug_regs): Remove const from state.
7346 * utils.c (align_up, align_down): Move to ...
7347 * common/common-utils.c (align_up, align_down): ... here.
7348 * utils.h (align_up, align_down): Move to ...
7349 * common/common-utils.h (align_up, align_down): ... here.
7351 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7353 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7354 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7355 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7356 Re-implement to match the ABI as summarized in GCC's
7357 gcc/config/sparc/sparc.c. All callers updated.
7358 (sparc32_store_arguments): Remove assertion.
7360 2018-05-04 Tom Tromey <tom@tromey.com>
7362 * printcmd.c: Don't include tui.h.
7363 (decode_format): Use skip_spaces.
7365 2018-05-04 Tom Tromey <tom@tromey.com>
7368 * printcmd.c (last_count): New global.
7369 (x_command): Use saved count when repeating.
7371 2018-05-04 Tom Tromey <tom@tromey.com>
7373 * nto-procfs.c (do_closedir_cleanup): Remove.
7374 (procfs_pidlist): Use gdb_dir_up.
7375 * procfs.c (do_closedir_cleanup): Remove.
7376 (proc_update_threads): Use gdb_dir_up.
7377 * common/filestuff.h (struct gdb_dir_deleter): New.
7378 (gdb_dir_up): New typedef.
7380 2018-05-04 Tom Tromey <tom@tromey.com>
7382 * ada-lang.c (print_mention_exception): Use std::string.
7384 2018-05-04 Tom Tromey <tom@tromey.com>
7386 * ada-lang.c (create_excep_cond_exprs): Update.
7387 (ada_exception_catchpoint_cond_string): Use std::string.
7389 2018-05-04 Tom Tromey <tom@tromey.com>
7391 * ada-lang.c (xget_renaming_scope): Return std::string.
7392 (old_renaming_is_invisible): Update.
7394 2018-05-04 Tom Tromey <tom@tromey.com>
7396 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7397 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7399 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7401 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7403 2018-05-04 Tom Tromey <tom@tromey.com>
7405 * remote.c (remote_query_supported_append): Change type.
7406 (remote_check_symbols): Update.
7408 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7411 * configure.ac: Prepend libpython.
7412 * python/python-config.py: Likewise.
7413 * configure: Regenerate.
7415 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7417 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7419 2018-05-03 Pedro Alves <palves@redhat.com>
7422 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7423 override. Write 'true' instead of '1'.
7424 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7427 2018-05-02 Pedro Alves <palves@redhat.com>
7429 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7430 add_inf_child_target.
7431 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7432 add_inf_child_target.
7433 * aix-thread.c (aix_thread_target_info): New.
7434 (aix_thread_target) <shortname, longname, doc>: Delete.
7436 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7437 add_inf_child_target.
7438 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7439 add_inf_child_target.
7440 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7441 add_inf_child_target.
7442 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7443 add_inf_child_target.
7444 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7445 add_inf_child_target.
7446 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7447 add_inf_child_target.
7448 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7449 add_inf_child_target.
7450 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7451 add_inf_child_target.
7452 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7453 add_inf_child_target.
7454 * bfd-target.c (target_bfd_target_info): New.
7455 (target_bfd) <shortname, longname, doc>: Delete.
7457 * bsd-kvm.c (bsd_kvm_target_info): New.
7458 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7460 (bsd_kvm_target::open): Rename to ...
7461 (bsd_kvm_target_open): ... this. Adjust.
7462 * bsd-uthread.c (bsd_uthread_target_info): New.
7463 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7465 * corefile.c (core_file_command): Adjust.
7466 * corelow.c (core_target_info): New.
7467 (core_target) <shortname, longname, doc>: Delete.
7469 (core_target::open): Rename to ...
7470 (core_target_open): ... this. Adjust.
7471 * ctf.c (ctf_target_info): New.
7472 (ctf_target) <shortname, longname, doc>: Delete.
7474 (ctf_target::open): Rename to ...
7475 (ctf_target_open): ... this.
7476 (_initialize_ctf): Adjust.
7477 * exec.c (exec_target_info): New.
7478 (exec_target) <shortname, longname, doc>: Delete.
7480 (exec_target::open): Rename to ...
7481 (exec_target_open): ... this.
7482 * gdbcore.h (core_target_open): Declare.
7483 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7484 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7485 add_inf_child_target.
7486 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7487 add_inf_child_target.
7488 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7489 add_inf_child_target.
7490 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7491 add_inf_child_target.
7492 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7493 add_inf_child_target.
7494 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7495 add_inf_child_target.
7496 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7497 add_inf_child_target.
7498 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7499 add_inf_child_target.
7500 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7501 add_inf_child_target.
7502 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7503 add_inf_child_target.
7504 * inf-child.c (inf_child_target_info): New.
7505 (inf_child_target::info): New.
7506 (inf_child_open_target): Remove 'target' parameter. Use
7507 get_native_target instead.
7508 (inf_child_target::open): Delete.
7509 (add_inf_child_target): New.
7510 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7513 (add_inf_child_target): Declare.
7514 (inf_child_open_target): Declare.
7515 * linux-thread-db.c (thread_db_target_info): New.
7516 (thread_db_target) <shortname, longname, doc>: Delete.
7518 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7519 add_inf_child_target.
7520 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7521 add_inf_child_target.
7522 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7523 add_inf_child_target.
7524 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7525 add_inf_child_target.
7526 * make-target-delegates (print_class): Adjust.
7527 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7528 add_inf_child_target.
7529 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7530 add_inf_child_target.
7531 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7532 add_inf_child_target.
7533 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7534 add_inf_child_target.
7535 * nto-procfs.c (nto_native_target_info): New.
7536 (nto_procfs_target_native) <shortname, longname, doc>:
7539 (nto_procfs_target_info): New.
7540 (nto_procfs_target_procfs) <shortname, longname, doc>:
7543 (init_procfs_targets): Adjust.
7544 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7545 add_inf_child_target.
7546 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7547 add_inf_child_target.
7548 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7549 add_inf_child_target.
7550 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7551 add_inf_child_target.
7552 * ravenscar-thread.c (ravenscar_target_info): New.
7553 (ravenscar_thread_target) <shortname, longname, doc>:
7556 * record-btrace.c (record_btrace_target_info):
7557 (record_btrace_target) <shortname, longname, doc>: Delete.
7559 (record_btrace_target::open): Rename to ...
7560 (record_btrace_target_open): ... this. Adjust.
7561 * record-full.c (record_longname, record_doc): New.
7562 (record_full_base_target) <shortname, longname, doc>: Delete.
7564 (record_full_target_info): New.
7565 (record_full_target): <shortname>: Delete.
7567 (record_full_core_open_1, record_full_open_1): Update comments.
7568 (record_full_base_target::open): Rename to ...
7569 (record_full_open): ... this.
7570 (cmd_record_full_restore): Update.
7571 (_initialize_record_full): Update.
7572 * remote-sim.c (remote_sim_target_info): New.
7573 (gdbsim_target) <shortname, longname, doc>: Delete.
7575 (gdbsim_target::open): Rename to ...
7576 (gdbsim_target_open): ... this.
7577 (_initialize_remote_sim): Adjust.
7578 * remote.c (remote_doc): New.
7579 (remote_target_info): New.
7580 (remote_target) <shortname, longname, doc>: Delete.
7582 (extended_remote_target_info): New.
7583 (extended_remote_target) <shortname, longname, doc>: Delete.
7585 (remote_target::open_1): Make static. Adjust.
7586 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7587 * s390-linux-nat.c (_initialize_s390_nat): Use
7588 add_inf_child_target.
7589 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7590 add_inf_child_target.
7591 * sol-thread.c (thread_db_target_info): New.
7592 (sol_thread_target) <shortname, longname, doc>: Delete.
7594 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7595 add_inf_child_target.
7596 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7597 add_inf_child_target.
7598 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7599 add_inf_child_target.
7600 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7601 add_inf_child_target.
7602 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7603 add_inf_child_target.
7604 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7605 add_inf_child_target.
7606 * spu-linux-nat.c (_initialize_spu_nat): Use
7607 add_inf_child_target.
7608 * spu-multiarch.c (spu_multiarch_target_info): New.
7609 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7611 * target-delegates.c: Regenerate.
7612 * target.c: Include <unordered_map>.
7613 (target_ops_p): Delete.
7614 (DEF_VEC_P(target_ops_p)): Delete.
7615 (target_factories): New.
7616 (test_target_info): New.
7617 (test_target_ops::info): New.
7618 (open_target): Adjust to use target_factories.
7619 (add_target_with_completer): Rename to ...
7620 (add_target): ... this. Change prototype. Register target_info
7621 and open callback in target_factories. Register target_info in
7622 command context instead of target_ops.
7623 (add_target): Delete old implementation.
7624 (add_deprecated_target_alias): Change prototype. Adjust.
7625 (the_native_target): New.
7626 (set_native_target, get_native_target): New.
7627 (find_default_run_target): Use the_native_target.
7628 (find_attach_target, find_run_target): Simplify.
7629 (target_ops::open): Delete.
7630 (dummy_target_info): New.
7631 (dummy_target::shortname, dummy_target::longname)
7632 (dummy_target::doc): Delete.
7633 (dummy_target::info): New.
7634 (debug_target::shortname, debug_target::longname)
7635 (debug_target::doc): Delete.
7636 (debug_target::info): New.
7637 * target.h (struct target_info): New.
7638 (target_ops::~target_ops): Add comment.
7639 (target_ops::info): New.
7640 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7641 longer virtual. Implement in terms of target_info.
7642 (set_native_target, get_native_target): Declare.
7643 (target_open_ftype): New.
7644 (add_target, add_target_with_completer)
7645 (add_deprecated_target_alias): Change prototype.
7646 (test_target) <shortname, longname, doc>: Delete.
7648 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7649 add_inf_child_target.
7650 * tracefile-tfile.c (tfile_target_info): New.
7651 (tfile_target) <shortname, longname, doc>: Delete.
7653 (tfile_target::open): Rename to ...
7654 (tfile_target_open): ... this.
7655 (_initialize_tracefile_tfile): Adjust.
7656 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7657 add_inf_child_target.
7658 * windows-nat.c (_initialize_windows_nat): Use
7659 add_inf_child_target.
7660 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7661 add_inf_child_target.
7663 2018-05-02 Pedro Alves <palves@redhat.com>
7665 * linux-nat.h (linux_nat_target) <low_new_thread,
7666 low_delete_thread, low_new_fork, low_forget_process,
7667 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7668 New virtual methods.
7669 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7670 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7671 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7672 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7673 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7675 * linux-fork.c (delete_fork): Adjust to call low method.
7676 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7677 (linux_nat_new_fork, linux_nat_forget_process_hook)
7678 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7679 (linux_nat_status_is_event):
7680 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7681 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7683 (sigtrap_is_event): Rename to ...
7684 (linux_nat_target::low_status_is_event): ... this.
7685 (linux_nat_set_status_is_event): Delete.
7686 (save_stop_reason, linux_nat_wait_1)
7687 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7689 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7690 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7691 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7692 (linux_nat_set_prepare_to_resume): Delete.
7693 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7694 low virtual methods.
7695 * amd64-linux-nat.c: Likewise.
7696 * arm-linux-nat.c: Likewise.
7697 * i386-linux-nat.c: Likewise.
7698 * ia64-linux-nat.c: Likewise.
7699 * mips-linux-nat.c: Likewise.
7700 * ppc-linux-nat.c: Likewise.
7701 * s390-linux-nat.c: Likewise.
7702 * sparc64-linux-nat.c: Likewise.
7703 * x86-linux-nat.c: Likewise.
7704 * x86-linux-nat.h: Include "nat/x86-linux.h".
7705 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7706 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7709 2018-05-02 Pedro Alves <palves@redhat.com>
7711 * target.h (target_ops)
7712 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7713 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7714 stopped_by_watchpoint, have_continuable_watchpoint,
7715 stopped_data_address, watchpoint_addr_within_range,
7716 can_accel_watchpoint_condition, can_run, thread_alive,
7717 has_all_memory, has_memory, has_stack, has_registers,
7718 has_execution, can_async_p, is_async_p, supports_non_stop,
7719 always_non_stop_p, can_execute_reverse, supports_multi_process,
7720 supports_enable_disable_tracepoint,
7721 supports_disable_randomization, supports_string_tracing,
7722 supports_evaluation_of_breakpoint_conditions,
7723 can_run_breakpoint_commands, filesystem_is_local,
7724 can_download_tracepoint, get_trace_state_variable_value,
7725 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7726 record_is_replaying, record_will_replay,
7727 augmented_libraries_svr4_read>: Adjust to return bool.
7728 * aarch64-linux-nat.c: All implementations adjusted.
7729 * aix-thread.c: All implementations adjusted.
7730 * arm-linux-nat.c: All implementations adjusted.
7731 * breakpoint.c: All implementations adjusted.
7732 * bsd-kvm.c: All implementations adjusted.
7733 * bsd-uthread.c: All implementations adjusted.
7734 * corelow.c: All implementations adjusted.
7735 * ctf.c: All implementations adjusted.
7736 * darwin-nat.c: All implementations adjusted.
7737 * darwin-nat.h: All implementations adjusted.
7738 * exec.c: All implementations adjusted.
7739 * fbsd-nat.c: All implementations adjusted.
7740 * fbsd-nat.h: All implementations adjusted.
7741 * gnu-nat.c: All implementations adjusted.
7742 * gnu-nat.h: All implementations adjusted.
7743 * go32-nat.c: All implementations adjusted.
7744 * ia64-linux-nat.c: All implementations adjusted.
7745 * inf-child.c: All implementations adjusted.
7746 * inf-child.h: All implementations adjusted.
7747 * inf-ptrace.c: All implementations adjusted.
7748 * inf-ptrace.h: All implementations adjusted.
7749 * linux-nat.c: All implementations adjusted.
7750 * linux-nat.h: All implementations adjusted.
7751 * mips-linux-nat.c: All implementations adjusted.
7752 * nto-procfs.c: All implementations adjusted.
7753 * ppc-linux-nat.c: All implementations adjusted.
7754 * procfs.c: All implementations adjusted.
7755 * ravenscar-thread.c: All implementations adjusted.
7756 * record-btrace.c: All implementations adjusted.
7757 * record-full.c: All implementations adjusted.
7758 * remote-sim.c: All implementations adjusted.
7759 * remote.c: All implementations adjusted.
7760 * s390-linux-nat.c: All implementations adjusted.
7761 * sol-thread.c: All implementations adjusted.
7762 * spu-multiarch.c: All implementations adjusted.
7763 * target-delegates.c: All implementations adjusted.
7764 * target.c: All implementations adjusted.
7765 * target.h: All implementations adjusted.
7766 * tracefile-tfile.c: All implementations adjusted.
7767 * tracefile.c: All implementations adjusted.
7768 * tracefile.h: All implementations adjusted.
7769 * windows-nat.c: All implementations adjusted.
7770 * x86-linux-nat.h: All implementations adjusted.
7771 * x86-nat.h: All implementations adjusted.
7773 2018-05-02 Pedro Alves <palves@redhat.com>
7775 * make-target-delegates (scan_target_h): Don't trim lines here.
7776 Replace sequences of tabs and/or whitespace with a single
7778 (top level, parsing methods): Trim each line before processing it
7781 2018-05-02 Pedro Alves <palves@redhat.com>
7782 John Baldwin <jhb@freebsd.org>
7784 * target.h (enum strata) <debug_stratum>: New.
7785 (struct target_ops) <all delegation methods>: Replace by C++
7786 virtual methods, and drop "to_" prefix. All references updated
7788 <to_shortname, to_longname, to_doc, to_data,
7789 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
7790 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
7791 virtual methods. All references updated throughout.
7792 <can_attach, supports_terminal_ours, can_create_inferior,
7793 get_thread_control_capabilities, attach_no_wait>: New
7795 <insert_breakpoint, remove_breakpoint>: Now
7796 TARGET_DEFAULT_NORETURN methods.
7797 <info_proc>: Now returns bool.
7799 (OPS_MAGIC): Delete.
7800 (current_target): Delete. All references replaced by references
7802 (target_stack): ... this. New.
7803 (target_shortname, target_longname): Adjust.
7804 (target_can_run): Now a function declaration.
7805 (default_child_has_all_memory, default_child_has_memory)
7806 (default_child_has_stack, default_child_has_registers)
7807 (default_child_has_execution): Remove target_ops parameter.
7808 (complete_target_initialization): Delete.
7809 (memory_breakpoint_target): New template class.
7810 (test_target_ops): Refactor as a C++ class with virtual methods.
7811 * make-target-delegates (NAME_PART): Tighten.
7812 (POINTER_PART, CP_SYMBOL): New.
7813 (SIMPLE_RETURN_PART): Reimplement.
7814 (VEC_RETURN_PART): Expect less.
7815 (RETURN_PART, VIRTUAL_PART): New.
7816 (METHOD): Adjust to C++ virtual methods.
7817 (scan_target_h): Remove reference to C99.
7818 (dname): Output "target_ops::" prefix.
7819 (write_function_header): Adjust to output a C++ class method.
7820 (write_declaration): New.
7821 (write_delegator): Adjust to output a C++ class method.
7822 (tdname): Output "dummy_target::" prefix.
7823 (write_tdefault, write_debugmethod): Adjust to output a C++ class
7825 (tdefault_names, debug_names): Delete.
7826 (return_types, tdefaults, styles, argtypes_array): New.
7827 (top level): All methods are delegators.
7829 (top level): Print dummy_target and debug_target classes.
7830 * target-delegates.c: Regenerate.
7831 * target-debug.h (target_debug_print_enum_info_proc_what)
7832 (target_debug_print_thread_control_capabilities)
7833 (target_debug_print_thread_info_p): New.
7834 * target.c (dummy_target): Delete.
7835 (the_dummy_target, the_debug_target): New.
7836 (target_stack): Now extern.
7837 (set_targetdebug): Push/unpush debug target.
7838 (default_child_has_all_memory, default_child_has_memory)
7839 (default_child_has_stack, default_child_has_registers)
7840 (default_child_has_execution): Remove target_ops parameter.
7841 (complete_target_initialization): Delete.
7842 (add_target_with_completer): No longer call
7843 complete_target_initialization.
7844 (target_supports_terminal_ours): Use regular delegation.
7845 (update_current_target): Delete.
7846 (push_target): No longer check magic number. Don't call
7847 update_current_target.
7848 (unpush_target): Don't call update_current_target.
7849 (target_is_pushed): No longer check magic number.
7850 (target_require_runnable): Skip for all stratums over
7852 (target_ops::info_proc): New.
7853 (target_info_proc): Use find_target_at and
7854 find_default_run_target.
7855 (target_supports_disable_randomization): Use regular delegation.
7856 (target_get_osdata): Use find_target_at.
7857 (target_ops::open, target_ops::close, target_ops::can_attach)
7858 (target_ops::attach, target_ops::can_create_inferior)
7859 (target_ops::create_inferior, target_ops::can_run)
7860 (target_can_run): New.
7861 (default_fileio_target): Use regular delegation.
7862 (target_ops::fileio_open, target_ops::fileio_pwrite)
7863 (target_ops::fileio_pread, target_ops::fileio_fstat)
7864 (target_ops::fileio_close, target_ops::fileio_unlink)
7865 (target_ops::fileio_readlink): New.
7866 (target_fileio_open_1, target_fileio_unlink)
7867 (target_fileio_readlink): Always call the target method. Handle
7869 (return_zero, return_zero_has_execution): Delete.
7870 (init_dummy_target): Delete.
7871 (dummy_target::dummy_target, dummy_target::shortname)
7872 (dummy_target::longname, dummy_target::doc)
7873 (debug_target::debug_target, debug_target::shortname)
7874 (debug_target::longname, debug_target::doc): New.
7875 (target_supports_delete_record): Use regular delegation.
7876 (setup_target_debug): Delete.
7877 (maintenance_print_target_stack): Skip debug_stratum.
7878 (initialize_targets): Instantiate the_dummy_target and
7880 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
7882 (target_auxv_search, fprint_target_auxv): Adjust.
7883 (info_auxv_command): Adjust to use target_stack.
7884 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
7885 * exceptions.c (print_flush): Handle a NULL target_stack.
7886 * regcache.c (target_ops_no_register): Refactor as class with
7889 * exec.c (exec_target): New class.
7890 (exec_ops): Now an exec_target.
7891 (exec_open, exec_close_1, exec_get_section_table)
7892 (exec_xfer_partial, exec_files_info, exec_has_memory)
7893 (exec_make_note_section): Refactor as exec_target methods.
7894 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
7896 (exec_target::find_memory_regions): New.
7897 (_initialize_exec): Don't call init_exec_ops.
7898 * gdbcore.h (exec_file_clear): Delete.
7900 * corefile.c (core_target): Delete.
7901 (core_file_command): Adjust.
7902 * corelow.c (core_target): New class.
7903 (the_core_target): New.
7904 (core_close): Remove target_ops parameter.
7905 (core_close_cleanup): Adjust.
7906 (core_target::close): New.
7907 (core_open, core_detach, get_core_registers, core_files_info)
7908 (core_xfer_partial, core_thread_alive, core_read_description)
7909 (core_pid_to_str, core_thread_name, core_has_memory)
7910 (core_has_stack, core_has_registers, core_info_proc): Rework as
7911 core_target methods.
7912 (ignore, core_remove_breakpoint, init_core_ops): Delete.
7913 (_initialize_corelow): Initialize the_core_target.
7914 * gdbcore.h (core_target): Delete.
7915 (the_core_target): New.
7917 * ctf.c: (ctf_target): New class.
7918 (ctf_ops): Now a ctf_target.
7919 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
7920 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
7921 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
7923 (init_ctf_ops): Delete.
7924 (_initialize_ctf): Don't call it.
7925 * tracefile-tfile.c (tfile_target): New class.
7926 (tfile_ops): Now a tfile_target.
7927 (tfile_open, tfile_close, tfile_files_info)
7928 (tfile_get_tracepoint_status, tfile_trace_find)
7929 (tfile_fetch_registers, tfile_xfer_partial)
7930 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
7931 Refactor as tfile_target methods.
7932 (tfile_xfer_partial_features): Remove target_ops parameter.
7933 (init_tfile_ops): Delete.
7934 (_initialize_tracefile_tfile): Don't call it.
7935 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
7936 (tracefile_has_stack, tracefile_has_registers)
7937 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
7938 tracefile_target methods.
7939 (init_tracefile_ops): Delete.
7940 (tracefile_target::tracefile_target): New.
7941 * tracefile.h: Include "target.h".
7942 (tracefile_target): New class.
7943 (init_tracefile_ops): Delete.
7945 * spu-multiarch.c (spu_multiarch_target): New class.
7946 (spu_ops): Now a spu_multiarch_target.
7947 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
7948 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
7949 (spu_search_memory, spu_mourn_inferior): Refactor as
7950 spu_multiarch_target methods.
7951 (init_spu_ops): Delete.
7952 (_initialize_spu_multiarch): Remove references to init_spu_ops,
7953 complete_target_initialization.
7955 * ravenscar-thread.c (ravenscar_thread_target): New class.
7956 (ravenscar_ops): Now a ravenscar_thread_target.
7957 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
7958 (ravenscar_thread_alive, ravenscar_pid_to_str)
7959 (ravenscar_fetch_registers, ravenscar_store_registers)
7960 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
7961 (ravenscar_stopped_by_hw_breakpoint)
7962 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
7963 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
7964 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
7966 (init_ravenscar_thread_ops): Delete.
7967 (_initialize_ravenscar): Remove references to
7968 init_ravenscar_thread_ops and complete_target_initialization.
7970 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
7971 (bsd_uthread_target): New class.
7972 (bsd_uthread_ops): Now a bsd_uthread_target.
7973 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
7974 (bsd_uthread_close, bsd_uthread_mourn_inferior)
7975 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
7976 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
7977 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
7978 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
7979 (bsd_uthread_target): Delete function.
7980 (_initialize_bsd_uthread): Remove reference to
7981 complete_target_initialization.
7983 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
7984 (target_bfd): ... this new class.
7985 (target_bfd_xfer_partial, target_bfd_get_section_table)
7986 (target_bfd_close): Refactor as target_bfd methods.
7987 (target_bfd::~target_bfd): New.
7988 (target_bfd_reopen): Adjust.
7989 (target_bfd::close): New.
7991 * record-btrace.c (record_btrace_target): New class.
7992 (record_btrace_ops): Now a record_btrace_target.
7993 (record_btrace_open, record_btrace_stop_recording)
7994 (record_btrace_disconnect, record_btrace_close)
7995 (record_btrace_async, record_btrace_info)
7996 (record_btrace_insn_history, record_btrace_insn_history_range)
7997 (record_btrace_insn_history_from, record_btrace_call_history)
7998 (record_btrace_call_history_range)
7999 (record_btrace_call_history_from, record_btrace_record_method)
8000 (record_btrace_is_replaying, record_btrace_will_replay)
8001 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8002 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8003 (record_btrace_store_registers, record_btrace_prepare_to_store)
8004 (record_btrace_to_get_unwinder)
8005 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8006 (record_btrace_commit_resume, record_btrace_wait)
8007 (record_btrace_stop, record_btrace_can_execute_reverse)
8008 (record_btrace_stopped_by_sw_breakpoint)
8009 (record_btrace_supports_stopped_by_sw_breakpoint)
8010 (record_btrace_stopped_by_hw_breakpoint)
8011 (record_btrace_supports_stopped_by_hw_breakpoint)
8012 (record_btrace_update_thread_list, record_btrace_thread_alive)
8013 (record_btrace_goto_begin, record_btrace_goto_end)
8014 (record_btrace_goto, record_btrace_stop_replaying_all)
8015 (record_btrace_execution_direction)
8016 (record_btrace_prepare_to_generate_core)
8017 (record_btrace_done_generating_core): Refactor as
8018 record_btrace_target methods.
8019 (init_record_btrace_ops): Delete.
8020 (_initialize_record_btrace): Remove reference to
8021 init_record_btrace_ops.
8022 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8023 the execution_direction global.
8024 (record_full_base_target, record_full_target)
8025 (record_full_core_target): New classes.
8026 (record_full_ops): Now a record_full_target.
8027 (record_full_core_ops): Now a record_full_core_target.
8028 (record_full_target::detach, record_full_target::disconnect)
8029 (record_full_core_target::disconnect)
8030 (record_full_target::mourn_inferior, record_full_target::kill):
8032 (record_full_open, record_full_close, record_full_async): Refactor
8033 as methods of the record_full_base_target class.
8034 (record_full_resume, record_full_commit_resume): Refactor
8035 as methods of the record_full_target class.
8036 (record_full_wait, record_full_stopped_by_watchpoint)
8037 (record_full_stopped_data_address)
8038 (record_full_stopped_by_sw_breakpoint)
8039 (record_full_supports_stopped_by_sw_breakpoint)
8040 (record_full_stopped_by_hw_breakpoint)
8041 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8042 methods of the record_full_base_target class.
8043 (record_full_store_registers, record_full_xfer_partial)
8044 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8045 Refactor as methods of the record_full_target class.
8046 (record_full_can_execute_reverse, record_full_get_bookmark)
8047 (record_full_goto_bookmark, record_full_execution_direction)
8048 (record_full_record_method, record_full_info, record_full_delete)
8049 (record_full_is_replaying, record_full_will_replay)
8050 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8051 (record_full_stop_replaying): Refactor as methods of the
8052 record_full_base_target class.
8053 (record_full_core_resume, record_full_core_kill)
8054 (record_full_core_fetch_registers)
8055 (record_full_core_prepare_to_store)
8056 (record_full_core_store_registers, record_full_core_xfer_partial)
8057 (record_full_core_insert_breakpoint)
8058 (record_full_core_remove_breakpoint)
8059 (record_full_core_has_execution): Refactor
8060 as methods of the record_full_core_target class.
8061 (record_full_base_target::supports_delete_record): New.
8062 (init_record_full_ops): Delete.
8063 (init_record_full_core_ops): Delete.
8064 (record_full_save): Refactor as method of the
8065 record_full_base_target class.
8066 (_initialize_record_full): Remove references to
8067 init_record_full_ops and init_record_full_core_ops.
8069 * remote.c (remote_target, extended_remote_target): New classes.
8070 (remote_ops): Now a remote_target.
8071 (extended_remote_ops): Now an extended_remote_target.
8072 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8073 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8074 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8075 (remote_pass_signals, remote_set_syscall_catchpoint)
8076 (remote_program_signals, )
8077 (remote_thread_always_alive): Remove target_ops parameter.
8078 (remote_thread_alive, remote_thread_name)
8079 (remote_update_thread_list, remote_threads_extra_info)
8080 (remote_static_tracepoint_marker_at)
8081 (remote_static_tracepoint_markers_by_strid)
8082 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8083 (remote_open): Refactor as methods of remote_target.
8084 (extended_remote_open, extended_remote_detach)
8085 (extended_remote_attach, extended_remote_post_attach):
8086 (extended_remote_supports_disable_randomization)
8087 (extended_remote_create_inferior): : Refactor as method of
8088 extended_remote_target.
8089 (remote_set_permissions, remote_open_1, remote_detach)
8090 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8091 (remote_resume, remote_commit_resume, remote_stop)
8092 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8093 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8094 (remote_prepare_to_store, remote_store_registers)
8095 (remote_flash_erase, remote_flash_done, remote_files_info)
8096 (remote_kill, remote_mourn, remote_insert_breakpoint)
8097 (remote_remove_breakpoint, remote_insert_watchpoint)
8098 (remote_watchpoint_addr_within_range)
8099 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8100 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8101 (remote_supports_stopped_by_sw_breakpoint)
8102 (remote_stopped_by_hw_breakpoint)
8103 (remote_supports_stopped_by_hw_breakpoint)
8104 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8105 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8106 (remote_verify_memory): Refactor as methods of remote_target.
8107 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8109 (remote_xfer_partial, remote_get_memory_xfer_limit)
8110 (remote_search_memory, remote_rcmd, remote_memory_map)
8111 (remote_pid_to_str, remote_get_thread_local_address)
8112 (remote_get_tib_address, remote_read_description): Refactor as
8113 methods of remote_target.
8114 (remote_target::fileio_open, remote_target::fileio_pwrite)
8115 (remote_target::fileio_pread, remote_target::fileio_close): New.
8116 (remote_hostio_readlink, remote_hostio_fstat)
8117 (remote_filesystem_is_local, remote_can_execute_reverse)
8118 (remote_supports_non_stop, remote_supports_disable_randomization)
8119 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8120 (remote_supports_enable_disable_tracepoint)
8121 (remote_supports_string_tracing)
8122 (remote_can_run_breakpoint_commands, remote_trace_init)
8123 (remote_download_tracepoint, remote_can_download_tracepoint)
8124 (remote_download_trace_state_variable, remote_enable_tracepoint)
8125 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8126 (remote_trace_start, remote_get_trace_status)
8127 (remote_get_tracepoint_status, remote_trace_stop)
8128 (remote_trace_find, remote_get_trace_state_variable_value)
8129 (remote_save_trace_data, remote_get_raw_trace_data)
8130 (remote_set_disconnected_tracing, remote_core_of_thread)
8131 (remote_set_circular_trace_buffer, remote_traceframe_info)
8132 (remote_get_min_fast_tracepoint_insn_len)
8133 (remote_set_trace_buffer_size, remote_set_trace_notes)
8134 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8135 (remote_disable_btrace, remote_teardown_btrace)
8136 (remote_read_btrace, remote_btrace_conf)
8137 (remote_augmented_libraries_svr4_read, remote_load)
8138 (remote_pid_to_exec_file, remote_can_do_single_step)
8139 (remote_execution_direction, remote_thread_handle_to_thread_info):
8140 Refactor as methods of remote_target.
8141 (init_remote_ops, init_extended_remote_ops): Delete.
8142 (remote_can_async_p, remote_is_async_p, remote_async)
8143 (remote_thread_events, remote_upload_tracepoints)
8144 (remote_upload_trace_state_variables): Refactor as methods of
8146 (_initialize_remote): Remove references to init_remote_ops and
8147 init_extended_remote_ops.
8149 * remote-sim.c (gdbsim_target): New class.
8150 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8151 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8152 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8153 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8154 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8155 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8156 Refactor as methods of gdbsim_target.
8157 (gdbsim_ops): Now a gdbsim_target.
8158 (init_gdbsim_ops): Delete.
8159 (gdbsim_cntrl_c): Adjust.
8160 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8162 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8163 (the_amd64_linux_nat_target): New.
8164 (amd64_linux_fetch_inferior_registers)
8165 (amd64_linux_store_inferior_registers): Refactor as methods of
8166 amd64_linux_nat_target.
8167 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8168 * i386-linux-nat.c: Don't include "linux-nat.h".
8169 (i386_linux_nat_target): New class.
8170 (the_i386_linux_nat_target): New.
8171 (i386_linux_fetch_inferior_registers)
8172 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8173 as methods of i386_linux_nat_target.
8174 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8175 * inf-child.c (inf_child_ops): Delete.
8176 (inf_child_fetch_inferior_registers)
8177 (inf_child_store_inferior_registers): Delete.
8178 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8179 methods of inf_child_target.
8180 (inf_child_target::supports_terminal_ours)
8181 (inf_child_target::terminal_init)
8182 (inf_child_target::terminal_inferior)
8183 (inf_child_target::terminal_ours_for_output)
8184 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8185 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8187 (inf_child_open, inf_child_disconnect, inf_child_close)
8188 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8189 (inf_child_post_startup_inferior, inf_child_can_run)
8190 (inf_child_pid_to_exec_file): Refactor as methods of
8192 (inf_child_follow_fork): Delete.
8193 (inf_child_target::can_create_inferior)
8194 (inf_child_target::can_attach): New.
8195 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8196 (inf_child_target::has_stack, inf_child_target::has_registers)
8197 (inf_child_target::has_execution): New.
8198 (inf_child_fileio_open, inf_child_fileio_pwrite)
8199 (inf_child_fileio_pread, inf_child_fileio_fstat)
8200 (inf_child_fileio_close, inf_child_fileio_unlink)
8201 (inf_child_fileio_readlink, inf_child_use_agent)
8202 (inf_child_can_use_agent): Refactor as methods of
8204 (return_zero, inf_child_target): Delete.
8205 (inf_child_target::inf_child_target): New.
8206 * inf-child.h: Include "target.h".
8207 (inf_child_target): Delete function prototype.
8208 (inf_child_target): New class.
8209 (inf_child_open_target, inf_child_mourn_inferior)
8210 (inf_child_maybe_unpush_target): Delete.
8211 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8212 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8213 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8214 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8215 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8216 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8217 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8218 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8219 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8220 methods of inf_ptrace_target.
8221 (inf_ptrace_target): Delete function.
8222 * inf-ptrace.h: Include "inf-child.h".
8223 (inf_ptrace_target): Delete function declaration.
8224 (inf_ptrace_target): New class.
8225 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8226 * linux-nat.c (linux_target): New.
8227 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8228 (linux_nat_target::~linux_nat_target): New.
8229 (linux_child_post_attach, linux_child_post_startup_inferior)
8230 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8231 (linux_child_remove_fork_catchpoint)
8232 (linux_child_insert_vfork_catchpoint)
8233 (linux_child_remove_vfork_catchpoint)
8234 (linux_child_insert_exec_catchpoint)
8235 (linux_child_remove_exec_catchpoint)
8236 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8237 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8238 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8239 (linux_nat_stopped_data_address)
8240 (linux_nat_stopped_by_sw_breakpoint)
8241 (linux_nat_supports_stopped_by_sw_breakpoint)
8242 (linux_nat_stopped_by_hw_breakpoint)
8243 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8244 (linux_nat_kill, linux_nat_mourn_inferior)
8245 (linux_nat_xfer_partial, linux_nat_thread_alive)
8246 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8247 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8248 (linux_child_static_tracepoint_markers_by_strid)
8249 (linux_nat_is_async_p, linux_nat_can_async_p)
8250 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8251 (linux_nat_supports_multi_process)
8252 (linux_nat_supports_disable_randomization, linux_nat_async)
8253 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8254 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8255 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8256 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8257 methods of linux_nat_target.
8258 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8259 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8261 (check_stopped_by_watchpoint): Adjust.
8262 (linux_xfer_partial): Delete.
8263 (linux_target_install_ops, linux_target, linux_nat_add_target):
8265 (linux_nat_target::linux_nat_target): New.
8266 * linux-nat.h: Include "inf-ptrace.h".
8267 (linux_nat_target): New.
8268 (linux_target, linux_target_install_ops, linux_nat_add_target):
8269 Delete function declarations.
8270 (linux_target): Declare global.
8271 * linux-thread-db.c (thread_db_target): New.
8272 (thread_db_target::thread_db_target): New.
8273 (thread_db_ops): Delete.
8274 (the_thread_db_target): New.
8275 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8276 (thread_db_update_thread_list, thread_db_pid_to_str)
8277 (thread_db_extra_thread_info)
8278 (thread_db_thread_handle_to_thread_info)
8279 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8280 (thread_db_resume): Refactor as methods of thread_db_target.
8281 (init_thread_db_ops): Delete.
8282 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8283 * x86-linux-nat.c: Don't include "linux-nat.h".
8284 (super_post_startup_inferior): Delete.
8285 (x86_linux_nat_target::~x86_linux_nat_target): New.
8286 (x86_linux_child_post_startup_inferior)
8287 (x86_linux_read_description, x86_linux_enable_btrace)
8288 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8289 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8290 methods of x86_linux_nat_target.
8291 (x86_linux_create_target): Delete. Bits folded ...
8292 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8294 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8295 (x86_linux_nat_target): New class.
8296 (x86_linux_create_target): Delete.
8297 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8298 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8299 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8300 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8301 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8302 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8304 (x86_use_watchpoints): Delete.
8305 * x86-nat.h: Include "breakpoint.h" and "target.h".
8306 (x86_use_watchpoints): Delete.
8307 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8308 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8309 (x86_insert_watchpoint, x86_remove_watchpoint)
8310 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8311 (x86_stopped_by_hw_breakpoint): New declarations.
8312 (x86_nat_target): New template class.
8314 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8315 (the_ppc_linux_nat_target): New.
8316 (ppc_linux_fetch_inferior_registers)
8317 (ppc_linux_can_use_hw_breakpoint)
8318 (ppc_linux_region_ok_for_hw_watchpoint)
8319 (ppc_linux_ranged_break_num_registers)
8320 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8321 (ppc_linux_insert_mask_watchpoint)
8322 (ppc_linux_remove_mask_watchpoint)
8323 (ppc_linux_can_accel_watchpoint_condition)
8324 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8325 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8326 (ppc_linux_watchpoint_addr_within_range)
8327 (ppc_linux_masked_watch_num_registers)
8328 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8329 (ppc_linux_read_description): Refactor as methods of
8330 ppc_linux_nat_target.
8331 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8333 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8334 (procfs_target): New class.
8335 (the_procfs_target): New.
8336 (procfs_target): Delete function.
8337 (procfs_auxv_parse, procfs_attach, procfs_detach)
8338 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8339 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8340 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8341 (procfs_create_inferior, procfs_update_thread_list)
8342 (procfs_thread_alive, procfs_pid_to_str)
8343 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8344 (procfs_stopped_data_address, procfs_insert_watchpoint)
8345 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8346 (proc_find_memory_regions, procfs_info_proc)
8347 (procfs_make_note_section): Refactor as methods of procfs_target.
8348 (_initialize_procfs): Adjust.
8349 * sol-thread.c (sol_thread_target): New class.
8350 (sol_thread_ops): Now a sol_thread_target.
8351 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8352 (sol_thread_fetch_registers, sol_thread_store_registers)
8353 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8354 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8355 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8356 (init_sol_thread_ops): Delete.
8357 (_initialize_sol_thread): Adjust. Remove references to
8358 init_sol_thread_ops and complete_target_initialization.
8360 * windows-nat.c (windows_nat_target): New class.
8361 (windows_fetch_inferior_registers)
8362 (windows_store_inferior_registers, windows_resume, windows_wait)
8363 (windows_attach, windows_detach, windows_pid_to_exec_file)
8364 (windows_files_info, windows_create_inferior)
8365 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8366 (windows_close, windows_pid_to_str, windows_xfer_partial)
8367 (windows_get_tib_address, windows_get_ada_task_ptid)
8368 (windows_thread_name, windows_thread_alive): Refactor as
8369 windows_nat_target methods.
8370 (do_initial_windows_stuff): Adjust.
8371 (windows_target): Delete function.
8372 (_initialize_windows_nat): Adjust.
8374 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8375 (darwin_mourn_inferior, darwin_kill_inferior)
8376 (darwin_create_inferior, darwin_attach, darwin_detach)
8377 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8378 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8379 (darwin_supports_multi_process): Refactor as darwin_nat_target
8381 (darwin_resume_to, darwin_files_info): Delete.
8382 (_initialize_darwin_inferior): Rename to ...
8383 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8384 * darwin-nat.h: Include "inf-child.h".
8385 (darwin_nat_target): New class.
8386 (darwin_complete_target): Delete.
8387 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8388 (darwin_target): New.
8389 (i386_darwin_fetch_inferior_registers)
8390 (i386_darwin_store_inferior_registers): Refactor as methods of
8392 (darwin_complete_target): Delete, with ...
8393 (_initialize_i386_darwin_nat): ... bits factored out here.
8395 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8396 (the_alpha_linux_nat_target): New.
8397 (alpha_linux_register_u_offset): Refactor as
8398 alpha_linux_nat_target method.
8399 (_initialize_alpha_linux_nat): Adjust.
8400 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8401 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8402 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8403 methods of linux_nat_trad_target.
8404 (linux_trad_target): Delete.
8405 * linux-nat-trad.h (linux_trad_target): Delete function.
8406 (linux_nat_trad_target): New class.
8407 * mips-linux-nat.c (mips_linux_nat_target): New class.
8408 (super_fetch_registers, super_store_registers, super_close):
8410 (the_mips_linux_nat_target): New.
8411 (mips64_linux_regsets_fetch_registers)
8412 (mips64_linux_regsets_store_registers)
8413 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8414 (mips_linux_register_u_offset, mips_linux_read_description)
8415 (mips_linux_can_use_hw_breakpoint)
8416 (mips_linux_stopped_by_watchpoint)
8417 (mips_linux_stopped_data_address)
8418 (mips_linux_region_ok_for_hw_watchpoint)
8419 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8420 (mips_linux_close): Refactor as methods of mips_linux_nat.
8421 (_initialize_mips_linux_nat): Adjust to C++ification.
8423 * aix-thread.c (aix_thread_target): New class.
8424 (aix_thread_ops): Now an aix_thread_target.
8425 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8426 (aix_thread_fetch_registers, aix_thread_store_registers)
8427 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8428 (aix_thread_thread_alive, aix_thread_pid_to_str)
8429 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8430 Refactor as methods of aix_thread_target.
8431 (init_aix_thread_ops): Delete.
8432 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8433 and complete_target_initialization.
8434 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8435 (rs6000_nat_target): New class.
8436 (the_rs6000_nat_target): New.
8437 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8438 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8439 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8440 (super_create_inferior): Delete.
8441 (_initialize_rs6000_nat): Adjust to C++ification.
8443 * arm-linux-nat.c (arm_linux_nat_target): New class.
8444 (the_arm_linux_nat_target): New.
8445 (arm_linux_fetch_inferior_registers)
8446 (arm_linux_store_inferior_registers, arm_linux_read_description)
8447 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8448 (arm_linux_remove_hw_breakpoint)
8449 (arm_linux_region_ok_for_hw_watchpoint)
8450 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8451 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8452 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8453 arm_linux_nat_target.
8454 (_initialize_arm_linux_nat): Adjust to C++ification.
8456 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8457 (the_aarch64_linux_nat_target): New.
8458 (aarch64_linux_fetch_inferior_registers)
8459 (aarch64_linux_store_inferior_registers)
8460 (aarch64_linux_child_post_startup_inferior)
8461 (aarch64_linux_read_description)
8462 (aarch64_linux_can_use_hw_breakpoint)
8463 (aarch64_linux_insert_hw_breakpoint)
8464 (aarch64_linux_remove_hw_breakpoint)
8465 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8466 (aarch64_linux_region_ok_for_hw_watchpoint)
8467 (aarch64_linux_stopped_data_address)
8468 (aarch64_linux_stopped_by_watchpoint)
8469 (aarch64_linux_watchpoint_addr_within_range)
8470 (aarch64_linux_can_do_single_step): Refactor as methods of
8471 aarch64_linux_nat_target.
8472 (super_post_startup_inferior): Delete.
8473 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8475 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8476 (the_hppa_linux_nat_target): New.
8477 (hppa_linux_fetch_inferior_registers)
8478 (hppa_linux_store_inferior_registers): Refactor as methods of
8479 hppa_linux_nat_target.
8480 (_initialize_hppa_linux_nat): Adjust to C++ification.
8482 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8483 (the_ia64_linux_nat_target): New.
8484 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8485 (ia64_linux_stopped_data_address)
8486 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8487 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8488 ia64_linux_nat_target methods.
8489 (super_xfer_partial): Delete.
8490 (_initialize_ia64_linux_nat): Adjust to C++ification.
8492 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8493 (the_m32r_linux_nat_target): New.
8494 (m32r_linux_fetch_inferior_registers)
8495 (m32r_linux_store_inferior_registers): Refactor as
8496 m32r_linux_nat_target methods.
8497 (_initialize_m32r_linux_nat): Adjust to C++ification.
8499 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8500 (the_m68k_linux_nat_target): New.
8501 (m68k_linux_fetch_inferior_registers)
8502 (m68k_linux_store_inferior_registers): Refactor as
8503 m68k_linux_nat_target methods.
8504 (_initialize_m68k_linux_nat): Adjust to C++ification.
8506 * s390-linux-nat.c (s390_linux_nat_target): New class.
8507 (the_s390_linux_nat_target): New.
8508 (s390_linux_fetch_inferior_registers)
8509 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8510 (s390_insert_watchpoint, s390_remove_watchpoint)
8511 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8512 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8513 (s390_auxv_parse, s390_read_description): Refactor as methods of
8514 s390_linux_nat_target.
8515 (_initialize_s390_nat): Adjust to C++ification.
8517 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8518 (the_sparc_linux_nat_target): New.
8519 (_initialize_sparc_linux_nat): Adjust to C++ification.
8520 * sparc-nat.c (sparc_fetch_inferior_registers)
8521 (sparc_store_inferior_registers): Remove target_ops parameter.
8522 * sparc-nat.h (sparc_fetch_inferior_registers)
8523 (sparc_store_inferior_registers): Remove target_ops parameter.
8524 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8525 (the_sparc64_linux_nat_target): New.
8526 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8528 * spu-linux-nat.c (spu_linux_nat_target): New class.
8529 (the_spu_linux_nat_target): New.
8530 (spu_child_post_startup_inferior, spu_child_post_attach)
8531 (spu_child_wait, spu_fetch_inferior_registers)
8532 (spu_store_inferior_registers, spu_xfer_partial)
8533 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8535 (_initialize_spu_nat): Adjust to C++ification.
8537 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8538 (the_tilegx_linux_nat_target): New.
8539 (fetch_inferior_registers, store_inferior_registers):
8540 Refactor as methods.
8541 (_initialize_tile_linux_nat): Adjust to C++ification.
8543 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8544 (the_xtensa_linux_nat_target): New.
8545 (xtensa_linux_fetch_inferior_registers)
8546 (xtensa_linux_store_inferior_registers): Refactor as
8547 xtensa_linux_nat_target methods.
8548 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8550 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8551 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8552 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8553 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8554 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8555 (fbsd_stopped_by_sw_breakpoint)
8556 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8557 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8558 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8559 (fbsd_post_startup_inferior, fbsd_post_attach)
8560 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8561 (fbsd_set_syscall_catchpoint)
8562 (super_xfer_partial, super_resume, super_wait)
8563 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8564 (fbsd_handle_debug_trap): Remove target_ops parameter.
8565 (fbsd_nat_add_target): Delete.
8566 * fbsd-nat.h: Include "inf-ptrace.h".
8567 (fbsd_nat_add_target): Delete.
8568 (USE_SIGTRAP_SIGINFO): Define.
8569 (fbsd_nat_target): New class.
8571 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8572 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8573 (amd64bsd_target): Delete.
8574 * amd64-bsd-nat.h: New file.
8575 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8577 (amd64_fbsd_nat_target): New class.
8578 (the_amd64_fbsd_nat_target): New.
8579 (amd64fbsd_read_description): Refactor as method of
8580 amd64_fbsd_nat_target.
8581 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8582 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8583 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8584 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8585 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8586 (i386bsd_target): Delete.
8587 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8588 (i386bsd_fetch_inferior_registers)
8589 (i386bsd_store_inferior_registers): Declare.
8590 (i386_bsd_nat_target): New class.
8591 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8592 (the_i386_fbsd_nat_target): New.
8593 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8594 i386_fbsd_nat_target methods.
8595 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8596 (_initialize_i386fbsd_nat): Adjust to C++ification.
8597 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8598 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8599 (_initialize_x86_bsd_nat): Adjust to C++ification.
8600 * x86-bsd-nat.h: Include "x86-nat.h".
8601 (x86bsd_target): Delete declaration.
8602 (x86bsd_nat_target): New class.
8604 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8605 (the_aarch64_fbsd_nat_target): New.
8606 (aarch64_fbsd_fetch_inferior_registers)
8607 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8608 aarch64_fbsd_nat_target.
8609 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8610 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8611 (the_alpha_bsd_nat_target): New.
8612 (alphabsd_fetch_inferior_registers)
8613 (alphabsd_store_inferior_registers): Refactor as
8614 alpha_bsd_nat_target methods.
8615 (_initialize_alphabsd_nat): Refactor as methods of
8616 alpha_bsd_nat_target.
8617 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8618 (the_amd64_nbsd_nat_target): New.
8619 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8620 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8621 (the_amd64_obsd_nat_target): New.
8622 (_initialize_amd64obsd_nat): Adjust to C++ification.
8623 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8624 (the_arm_fbsd_nat_target): New.
8625 (arm_fbsd_fetch_inferior_registers)
8626 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8627 (_initialize_arm_fbsd_nat): Refactor as methods of
8628 arm_fbsd_nat_target.
8629 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8630 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8631 (the_arm_netbsd_nat_target): New.
8632 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8633 arm_netbsd_nat_target.
8634 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8635 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8636 (the_hppa_nbsd_nat_target): New.
8637 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8638 hppa_nbsd_nat_target methods.
8639 (_initialize_hppanbsd_nat): Adjust to C++ification.
8640 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8641 (the_hppa_obsd_nat_target): New.
8642 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8643 methods of hppa_obsd_nat_target.
8644 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8646 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8647 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8649 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8650 (_initialize_i386obsd_nat): Use add_target.
8651 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8652 (the_m68k_bsd_nat_target): New.
8653 (m68kbsd_fetch_inferior_registers)
8654 (m68kbsd_store_inferior_registers): Refactor as methods of
8655 m68k_bsd_nat_target.
8656 (_initialize_m68kbsd_nat): Adjust to C++ification.
8657 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8658 (the_mips_fbsd_nat_target): New.
8659 (mips_fbsd_fetch_inferior_registers)
8660 (mips_fbsd_store_inferior_registers): Refactor as methods of
8661 mips_fbsd_nat_target.
8662 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8664 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8665 (the_mips_nbsd_nat_target): New.
8666 (mipsnbsd_fetch_inferior_registers)
8667 (mipsnbsd_store_inferior_registers): Refactor as methods of
8668 mips_nbsd_nat_target.
8669 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8670 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8671 (the_mips64_obsd_nat_target): New.
8672 (mips64obsd_fetch_inferior_registers)
8673 (mips64obsd_store_inferior_registers): Refactor as methods of
8674 mips64_obsd_nat_target.
8675 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8677 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8679 * nbsd-nat.h: Include "inf-ptrace.h".
8680 (nbsd_nat_target): New class.
8681 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8682 (obsd_wait): Refactor as methods of obsd_nat_target.
8683 (obsd_add_target): Delete.
8684 * obsd-nat.h: Include "inf-ptrace.h".
8685 (obsd_nat_target): New class.
8686 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8687 (the_ppc_fbsd_nat_target): New.
8688 (ppcfbsd_fetch_inferior_registers)
8689 (ppcfbsd_store_inferior_registers): Refactor as methods of
8690 ppc_fbsd_nat_target.
8691 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8693 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8694 (the_ppc_nbsd_nat_target): New.
8695 (ppcnbsd_fetch_inferior_registers)
8696 (ppcnbsd_store_inferior_registers): Refactor as methods of
8697 ppc_nbsd_nat_target.
8698 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8699 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8700 (the_ppc_obsd_nat_target): New.
8701 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8702 methods of ppc_obsd_nat_target.
8703 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8705 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8706 (the_sh_nbsd_nat_target): New.
8707 (shnbsd_fetch_inferior_registers)
8708 (shnbsd_store_inferior_registers): Refactor as methods of
8710 (_initialize_shnbsd_nat): Adjust to C++ification.
8711 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8712 (inf_ptrace_xfer_partial): Delete.
8713 (sparc_xfer_partial, sparc_target): Delete.
8714 * sparc-nat.h (sparc_fetch_inferior_registers)
8715 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8716 (sparc_target): Delete function declaration.
8717 (sparc_target): New template class.
8718 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8719 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8720 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8721 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8723 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8724 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8725 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8726 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8728 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8729 (the_vax_bsd_nat_target): New.
8730 (vaxbsd_fetch_inferior_registers)
8731 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8733 (_initialize_vaxbsd_nat): Adjust to C++ification.
8735 * bsd-kvm.c (bsd_kvm_target): New class.
8736 (bsd_kvm_ops): Now a bsd_kvm_target.
8737 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8738 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8739 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8741 (bsd_kvm_return_one): Delete.
8742 (bsd_kvm_add_target): Adjust to C++ification.
8744 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8745 (nto_procfs_target_procfs): New classes.
8746 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8747 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8748 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8749 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8750 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8751 (procfs_remove_hw_breakpoint, procfs_resume)
8752 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8753 (procfs_kill_inferior, procfs_store_registers)
8754 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8755 as methods of nto_procfs_target.
8756 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8757 (nto_native_ops): Delete.
8758 (procfs_open, procfs_native_open): Delete.
8759 (nto_native_ops): Now an nto_procfs_target_native.
8760 (init_procfs_targets): Adjust to C++ification.
8761 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8762 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8763 Refactor as methods of nto_procfs_target.
8765 * go32-nat.c (go32_nat_target): New class.
8766 (the_go32_nat_target): New.
8767 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8768 (go32_store_registers, go32_xfer_partial, go32_files_info)
8769 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8770 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8771 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8772 (go32_pid_to_str): Refactor as methods of go32_nat_target.
8773 (go32_target): Delete.
8774 (_initialize_go32_nat): Adjust to C++ification.
8776 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8777 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8778 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8779 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8781 (gnu_target): Delete.
8782 * gnu-nat.h (gnu_target): Delete.
8783 (gnu_nat_target): New class.
8784 * i386-gnu-nat.c (gnu_base_target): New.
8785 (i386_gnu_nat_target): New class.
8786 (the_i386_gnu_nat_target): New.
8787 (_initialize_i386gnu_nat): Adjust to C++ification.
8789 2018-05-02 Pedro Alves <palves@redhat.com>
8791 * bfd-target.c (target_bfd_xclose): Rename to ...
8792 (target_bfd_close): ... this.
8793 (target_bfd_reopen): Adjust.
8794 * target.c (target_close): Remove references to to_xclose.
8795 * target.h (target_ops::to_xclose): Delete.
8796 (target_ops::to_close): Update comments.
8798 2018-05-02 Pedro Alves <palves@redhat.com>
8800 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
8802 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
8803 * inf-ptrace.c (inf_ptrace_register_u_offset)
8804 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8805 (inf_ptrace_store_register, inf_ptrace_store_registers)
8806 (inf_ptrace_trad_target): Move to ...
8807 * linux-nat-trad.c: ... this new file.
8808 * linux-nat-trad.h: New file.
8809 * linux-nat.c (linux_target_install_ops): Make extern.
8810 (linux_trad_target): Delete.
8811 * linux-nat.h (linux_trad_target): Delete declaration.
8812 (linux_target_install_ops): Declare.
8813 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
8816 2018-05-02 Pedro Alves <palves@redhat.com>
8818 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8819 procfs_target/add_target here.
8820 * procfs.c (procfs_target): Make static.
8821 (_initialize_procfs): Call add_target here.
8822 * procfs.h (struct target_ops): Remove forward declaration.
8823 (procfs_target): Remove declaration.
8824 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
8826 2018-05-02 Pedro Alves <palves@redhat.com>
8828 * procfs.c (procfs_stopped_by_watchpoint)
8829 (procfs_insert_watchpoint, procfs_remove_watchpoint)
8830 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
8832 (procfs_use_watchpoints): Delete, move contents...
8833 (procfs_target): ... here.
8834 * procfs.h (procfs_use_watchpoints): Delete declaration.
8835 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8836 procfs_use_watchpoints.
8837 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8838 procfs_use_watchpoints.
8840 2018-05-02 Tom Tromey <tom@tromey.com>
8843 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
8844 and var_zuinteger_unlimited.
8845 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
8846 and PARAM_ZUINTEGER_UNLIMITED.
8847 (set_parameter_value): Handle var_zuinteger and
8848 var_zuinteger_unlimited.
8849 (add_setshow_generic): Likewise.
8850 (parmpy_init): Likewise.
8852 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
8855 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
8856 pointer is not null before dereferencing it.
8858 2018-04-30 Tom Tromey <tom@tromey.com>
8860 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
8863 2018-04-30 Tom Tromey <tom@tromey.com>
8865 * breakpoint.c (mention): Remove use of is_mi_like_p.
8866 (print_mention_ranged_breakpoint): Likewise.
8867 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
8870 2018-04-30 Tom Tromey <tom@tromey.com>
8872 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
8874 2018-04-30 Tom Tromey <tom@tromey.com>
8876 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
8877 (info_spu_event_command): Remove some uses of is_mi_like_p.
8879 2018-04-30 Tom Tromey <tom@tromey.com>
8881 * python/py-framefilter.c (py_print_single_arg)
8882 (enumerate_locals, py_print_args, py_print_frame): Remove some
8883 uses of is_mi_like_p.
8885 2018-04-30 Tom Tromey <tom@tromey.com>
8888 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
8889 * ui-out.h (ui_out::is_mi_like_p): Now const.
8890 (ui_out::do_is_mi_like_p): Now const.
8891 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
8893 2018-04-30 Tom Tromey <tom@tromey.com>
8895 * varobj.c (varobj_set_visualizer): Use new_reference.
8896 * python/python.c (gdbpy_decode_line): Use new_reference.
8897 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
8900 2018-04-30 Tom Tromey <tom@tromey.com>
8902 * varobj.c (install_new_value): Use new_reference.
8903 * value.h (value_incref): Return void. Swap intro comment with
8905 * value.c (set_value_parent): Use new_reference.
8906 (value_incref): Return void. Update intro comment.
8907 (release_value): Use new_reference.
8908 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
8910 2018-04-30 Tom Tromey <tom@tromey.com>
8912 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
8913 * gdb_bfd.h (new_bfd_ref): Remove.
8914 (gdb_bfd_open): Update comment.
8915 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
8916 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
8917 (gdb_bfd_fdopenr): Use new_reference.
8918 * exec.c (exec_file_attach): Use new_reference.
8920 2018-04-30 Tom Tromey <tom@tromey.com>
8922 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
8925 2018-04-30 Tom Tromey <tom@tromey.com>
8927 * jit.c (jit_read_code_entry): Use type_align.
8928 * i386-tdep.c (i386_gdbarch_init): Don't call
8929 set_gdbarch_long_long_align_bit.
8930 * gdbarch.sh: Remove long_long_align_bit.
8931 * gdbarch.c, gdbarch.h: Rebuild.
8932 * arc-tdep.c (arc_type_align): New function.
8933 (arc_gdbarch_init): Use arc_type_align. Don't call
8934 set_gdbarch_long_long_align_bit.
8936 2018-04-30 Tom Tromey <tom@tromey.com>
8938 * rust-lang.c (rust_type_alignment): Remove.
8939 (rust_composite_type): Use type_align.
8941 2018-04-30 Tom Tromey <tom@tromey.com>
8943 * NEWS: Mention Type.align.
8944 * python/py-type.c (typy_get_alignof): New function.
8945 (type_object_getset): Add "alignof".
8947 2018-04-30 Tom Tromey <tom@tromey.com>
8951 * std-operator.def (UNOP_ALIGNOF): New operator.
8952 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
8954 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
8955 * c-lang.c (c_op_print_tab): Add alignof.
8956 * c-exp.y (ALIGNOF): New token.
8957 (exp): Add "ALIGNOF" production.
8958 (ident_tokens): Add _Alignof and alignof.
8960 2018-04-30 Tom Tromey <tom@tromey.com>
8962 * i386-tdep.c (i386_type_align): New function.
8963 (i386_gdbarch_init): Update.
8964 * gdbarch.sh (type_align): New method.
8965 * gdbarch.c, gdbarch.h: Rebuild.
8966 * arch-utils.h (default_type_align): Declare.
8967 * arch-utils.c (default_type_align): New function.
8968 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
8969 (struct type) <align_log2>: New field.
8970 <instance_flags>: Now a bitfield.
8971 (TYPE_RAW_ALIGN): New macro.
8972 (type_align, type_raw_align, set_type_align): Declare.
8973 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
8975 * dwarf2read.c (quirk_rust_enum): Set type alignment.
8976 (get_alignment, maybe_set_alignment): New functions.
8977 (read_structure_type, read_enumeration_type, read_array_type)
8978 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
8979 (read_subrange_type, read_base_type): Set type alignment.
8981 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
8983 * dwarf2read.c (read_index_from_section): Use bool.
8985 2018-04-29 Fabian Groffen <grobian@gentoo.org>
8988 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
8991 2018-04-29 John Reiser <jreiser@BitWagon.com>
8994 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
8995 last step, and do it atomically.
8997 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
8999 * compile/compile-c-types.c (convert_int, convert_float):
9002 2018-04-27 Tom Tromey <tom@tromey.com>
9005 * rust-lang.c (rust_inclusive_range_type_p): New function.
9006 (rust_range): Handle inclusive ranges.
9007 (rust_compute_range): Likewise.
9008 * rust-exp.y (struct rust_op) <inclusive>: New field.
9009 (DOTDOTEQ): New constant.
9010 (range_expr): Add "..=" productions.
9011 (operator_tokens): Add "..=" token.
9012 (ast_range): Add "inclusive" parameter.
9013 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9015 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9017 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9018 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9020 * expprint.c (print_subexp_standard): Handle new bounds values.
9021 (dump_subexp_body_standard): Likewise.
9023 2018-04-27 Tom Tromey <tom@tromey.com>
9025 * configure: Rebuild.
9026 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9027 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9029 (class symbol_needs_eval_context): Likewise.
9030 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9031 (mock_mapped_index::symbol_name_at): Use "override". Remove
9033 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9035 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9036 * aarch64-tdep.c (instruction_reader::read): Use "override".
9037 (instruction_reader_test::read): Likewise.
9038 * arm-tdep.c (instruction_reader::read): Use "override".
9039 (instruction_reader_thumb::read): Likewise.
9041 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9044 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9045 instead of remote_send.
9046 (remote_send): Remove.
9048 2018-04-26 Pedro Alves <palves@redhat.com>
9050 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9051 find_function_start_sal instead of find_pc_line.
9053 2018-04-26 Pedro Alves <palves@redhat.com>
9055 * breakpoint.c (set_breakpoint_location_function): Handle
9057 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9058 * elfread.c (elf_symtab_read): Give data symbols with
9059 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9060 (elf_rel_plt_read): Update comment.
9061 * linespec.c (convert_linespec_to_sals): Handle
9063 (minsym_found): Handle mst_data_gnu_ifunc.
9064 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9065 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9066 * parse.c (find_minsym_type_and_address): Handle
9068 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9069 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9070 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9072 <mst_data_gnu_ifunc>: New enumerator.
9074 2018-04-26 Pedro Alves <palves@redhat.com>
9076 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9077 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9078 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9080 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9081 (lookup_minimal_symbol_by_pc): Adjust.
9082 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9083 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9084 * minsyms.h (lookup_msym_prefer): New enum.
9085 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9086 parameter by a lookup_msym_prefer parameter.
9088 2018-04-26 Pedro Alves <palves@redhat.com>
9090 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9091 ends in "@plt" instead of looking at the symbol's section.
9093 2018-04-26 Pedro Alves <palves@redhat.com>
9095 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9097 (find_pc_partial_function_gnu_ifunc): Rename to ...
9098 (find_pc_partial_function): ... this, and remove references to
9100 (find_pc_partial_function): Delete old implementation.
9101 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9103 2018-04-26 Pedro Alves <palves@redhat.com>
9105 * linespec.c (struct bound_minimal_symbol_search_key): New.
9106 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9107 skip first line if we found a GNU ifunc minimal symbol by name.
9108 (compare_msymbols): Change parameters to work with a destructured
9110 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9113 2018-04-26 Pedro Alves <palves@redhat.com>
9115 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9116 ifunc targets here. Instead, if we have an ifunc minsym, use its
9118 (add_location_to_breakpoint): Store the minsym and the objfile in
9119 the breakpoint location.
9120 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9121 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9122 Record the minsym in the sal.
9123 * symtab.h (symtab_and_line) <msymbol>: New field.
9125 2018-04-26 Pedro Alves <palves@redhat.com>
9127 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9128 unless we actually resolved the ifunc.
9130 2018-04-26 Pedro Alves <palves@redhat.com>
9132 * c-exp.y (variable production): Prefer ifunc minsyms over
9133 regular function symbols.
9134 * symtab.c (find_gnu_ifunc): New function.
9135 * minsyms.h (lookup_msym_prefer): New enum.
9136 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9137 parameter by a lookup_msym_prefer parameter.
9138 * symtab.h (find_gnu_ifunc): New declaration.
9140 2018-04-26 Pedro Alves <palves@redhat.com>
9142 * blockframe.c (find_gnu_ifunc_target_type): New function.
9143 (find_function_type): New.
9144 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9145 return a value with a memory address.
9146 (eval_call): For calls to GNU ifunc functions, try to find the
9147 type of the target function from the type that the resolver
9149 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9151 * infcall.c (find_function_return_type): Delete.
9152 (find_function_addr): Add 'function_type' parameter. For calls to
9153 GNU ifunc functions, try to find the type of the target function
9154 from the type that the resolver returns, and return it via
9156 (call_function_by_hand_dummy): Adjust to use the function type
9157 returned by find_function_addr.
9158 (find_function_addr): Add 'function_type' parameter and move
9160 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9163 2018-04-26 Pedro Alves <palves@redhat.com>
9165 * c-exp.y (variable production): Skip finding an alias for ifunc
9168 2018-04-26 Pedro Alves <palves@redhat.com>
9170 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9172 2018-04-25 Pedro Alves <palves@redhat.com>
9174 * infcmd.c (kill_command): Print the pid as string, not the whole
9175 thread's ptid. Add comment. s/has been killed/killed/ in output
9177 * remote.c (remote_detach_1): Print the pid as string, not the
9178 whole thread's ptid.
9180 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9181 Sergio Durigan Junior <sergiodj@redhat.com>
9182 Pedro Alves <palves@redhat.com>
9184 * infcmd.c (kill_command): Print message when inferior has
9186 * inferior.c (print_inferior_events): Remove 'static'. Set as
9188 (add_inferior): Improve message printed when
9189 'print_inferior_events' is on.
9190 (exit_inferior): Remove message printed when
9191 'print_inferior_events' is on.
9192 (detach_inferior): Improve message printed when
9193 'print_inferior_events' is on.
9194 (initialize_inferiors): Use 'add_inferior_silent' to set
9195 'current_inferior_'.
9196 * inferior.h (print_inferior_events): Declare here as
9198 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9199 '[Detaching...]' messages when 'print_inferior_events' is on.
9200 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9201 as prefix/suffix for messages. Remove periods. Fix erroneous
9202 'Detaching after fork from child...', replace it by '... from
9204 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9205 prefix/suffix when printing 'Detaching...' messages. Print
9206 them when 'print_inferior_events' is on.
9207 * remote.c (remote_detach_1): Print message when detaching
9208 from inferior and '!is_fork_parent'.
9210 2018-04-24 Tom Tromey <tom@tromey.com>
9212 * cli-out.h: Reindent.
9214 2018-04-24 Tom Tromey <tom@tromey.com>
9216 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9217 (cli_ui_out::do_field_string): Use fputs_filtered.
9218 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9220 2018-04-23 Tom Tromey <tom@tromey.com>
9222 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9223 gdb::unique_xmalloc_ptr.
9225 2018-04-23 Tom Tromey <tom@tromey.com>
9227 * configure: Rebuild.
9229 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9232 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9233 prepare_for_testing. Set normal_bp to r_debug_state if target
9236 2018-04-21 Pedro Alves <palves@redhat.com>
9237 Rajendra SY <rajendra.sy@gmail.com>
9239 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9240 * remote.c (extended_remote_attach): In all-stop mode, mark the
9241 thread as executing.
9243 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9245 * thread.c (thread_apply_all_command): Fix comment.
9246 (thread_command): Fix comment.
9248 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9250 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9252 * features/aarch64-core.c (create_feature_aarch64_core):
9254 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9256 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9258 * features/i386/32bit-avx512.c
9259 (create_feature_i386_32bit_avx512): Likewise.
9260 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9262 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9264 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9266 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9268 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9270 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9272 * features/i386/64bit-avx512.c
9273 (create_feature_i386_64bit_avx512): Likewise.
9274 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9276 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9278 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9280 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9282 * features/i386/64bit-segments.c
9283 (create_feature_i386_64bit_segments): Likewise.
9284 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9286 * features/i386/x32-core.c
9287 (create_feature_i386_x32_core): Likewise.
9288 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9289 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9290 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9291 * target-descriptions.c: In generated code, don't pass xml
9294 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9296 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9297 (print_xml_feature::visit_post): Likewise.
9298 (print_xml_feature::visit): Likewise.
9299 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9300 (print_xml_feature): Add new class.
9301 * regformats/regdat.sh: Null xmltarget on feature targets.
9302 * target-descriptions.c (struct target_desc): Add xmltarget.
9303 (maintenance_check_tdesc_xml_convert): Add unittest function.
9304 (tdesc_get_features_xml): Add function to get xml.
9305 (maintenance_check_xml_descriptions): Test xml generation.
9306 * xml-tdesc.c (string_read_description_xml): Add function.
9307 * xml-tdesc.h (string_read_description_xml): Add declaration.
9309 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9311 * features/Makefile: Add feature marker to targets with new style
9312 target descriptions.
9313 * regformats/aarch64.dat: Regenerate.
9314 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9315 * regformats/i386/amd64-avx-linux.dat: Likewise.
9316 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9317 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9318 * regformats/i386/amd64-linux.dat: Likewise.
9319 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9320 * regformats/i386/amd64.dat: Likewise.
9321 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9322 * regformats/i386/i386-avx-linux.dat: Likewise.
9323 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9324 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9325 * regformats/i386/i386-linux.dat: Likewise.
9326 * regformats/i386/i386-mmx-linux.dat: Likewise.
9327 * regformats/i386/i386-mpx-linux.dat: Likewise.
9328 * regformats/i386/i386.dat: Likewise.
9329 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9330 * regformats/i386/x32-avx-linux.dat: Likewise.
9331 * regformats/i386/x32-linux.dat: Likewise.
9332 * regformats/tic6x-c62x-linux.dat: Likewise.
9333 * regformats/tic6x-c64x-linux.dat: Likewise.
9334 * regformats/tic6x-c64xp-linux.dat: Likewise.
9335 * regformats/regdat.sh: Parse feature marker.
9337 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9339 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9340 (tdesc_osabi_name): Likewise.
9341 * target-descriptions.c (tdesc_architecture_name): Add new
9343 (tdesc_osabi_name): Likewise.
9345 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9347 * common/tdesc.c (tdesc_predefined_type): Move to here.
9348 (tdesc_named_type): Likewise.
9349 (tdesc_create_vector): Likewise.
9350 (tdesc_create_struct): Likewise.
9351 (tdesc_set_struct_size): Likewise.
9352 (tdesc_create_union): Likewise.
9353 (tdesc_create_flags): Likewise.
9354 (tdesc_create_enum): Likewise.
9355 (tdesc_add_field): Likewise.
9356 (tdesc_add_typed_bitfield): Likewise.
9357 (tdesc_add_bitfield): Likewise.
9358 (tdesc_add_flag): Likewise.
9359 (tdesc_add_enum_value): Likewise.
9360 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9361 (struct tdesc_type_vector): Likewise.
9362 (struct tdesc_type_field): Likewise.
9363 (struct tdesc_type_with_fields): Likewise.
9364 (tdesc_create_enum): Add declaration.
9365 (tdesc_add_typed_bitfield): Likewise.
9366 (tdesc_add_enum_value): Likewise.
9367 * target-descriptions.c (tdesc_type_field): Move from here.
9368 (tdesc_type_builtin): Likewise.
9369 (tdesc_type_vector): Likewise.
9370 (tdesc_type_with_fields): Likewise.
9371 (tdesc_predefined_types): Likewise.
9372 (tdesc_named_type): Likewise.
9373 (tdesc_create_vector): Likewise.
9374 (tdesc_create_struct): Likewise.
9375 (tdesc_set_struct_size): Likewise.
9376 (tdesc_create_union): Likewise.
9377 (tdesc_create_flags): Likewise.
9378 (tdesc_create_enum): Likewise.
9379 (tdesc_add_field): Likewise.
9380 (tdesc_add_typed_bitfield): Likewise.
9381 (tdesc_add_bitfield): Likewise.
9382 (tdesc_add_flag): Likewise.
9383 (tdesc_add_enum_value): Likewise.
9384 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9385 (tdesc_add_typed_bitfield): Likewise.
9386 (tdesc_add_enum_value): Likewise.
9388 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9390 * common/tdesc.c (tdesc_feature::accept): Move to here.
9391 (tdesc_feature::operator==): Likewise.
9392 (tdesc_create_reg): Likewise.
9393 * common/tdesc.h (tdesc_type_kind): Likewise.
9394 (struct tdesc_type): Likewise.
9395 (struct tdesc_feature): Likewise.
9396 * regformats/regdat.sh: Create a feature.
9397 * target-descriptions.c (tdesc_type_kind): Move from here.
9398 (tdesc_type): Likewise.
9399 (tdesc_type_up): Likewise.
9400 (tdesc_feature): Likewise.
9401 (tdesc_create_reg): Likewise.
9403 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9405 * Makefile.in: Add arch/tdesc.c
9406 * common/tdesc.c: New file.
9407 * common/tdesc.h (tdesc_element_visitor): Move to here.
9408 (tdesc_element): Likewise.
9409 (tdesc_reg): Likewise.
9410 (tdesc_reg_up): Likewise.
9411 * regformats/regdef.h (reg): Add offset to constructors.
9412 * target-descriptions.c (tdesc_element_visitor): Move from here.
9413 (tdesc_element): Likewise.
9414 (tdesc_reg): Likewise.
9415 (tdesc_reg_up): Likewise.
9417 2018-04-17 Tom Tromey <tom@tromey.com>
9419 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9422 2018-04-17 Tom Tromey <tom@tromey.com>
9424 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9426 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9428 * symtab.c (print_symbol_info): Skip printing filename and line
9429 number when `last' is NULL.
9430 (symtab_symbol_info): Use empty string instead of NULL for first
9431 invocation of print_symbol_info.
9432 (rbreak_command): Pass NULL to `last' parameter of
9435 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9437 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9440 2018-04-16 Pedro Alves <palves@redhat.com>
9442 * MAINTAINERS (sh): Remove.
9443 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9444 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9445 (ALLDEPFILES): Remove sh64-tdep.c.
9446 * NEWS: Mentions that support for SH-5/SH64 is removed.
9447 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9448 (sh*-*-openbsd*): Ditto.
9449 (sh64-*-elf*): Remove.
9451 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9452 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9453 * sh-tdep.c: No longer include "sh64-tdep.h".
9454 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9455 * sh64-tdep.c, sh64-tdep.h: Remove files.
9457 2018-04-16 Pedro Alves <palves@redhat.com>
9459 * MAINTAINERS: Remove m88k.
9460 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9461 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9462 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9463 * NEWS: Mention that support for m88k was removed.
9464 * configure.host (m88*-*-*): Remove support.
9465 * configure.nat (m88k-*-*): Remove support.
9466 * configure.tgt (m88*-*-openbsd*): Remove.
9467 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9469 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9471 * configure.tgt (x86_tobjs): New variable.
9472 (amd64_tobjs, i386_tobjs): Use it.
9474 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9476 * symtab.c (print_symbol_info): Precede the symbol definition by
9477 the line number when available.
9478 * NEWS: Advertise this enhancement.
9480 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9482 * NEWS (New options): announce set/show record btrace cpu.
9483 * btrace.c: Include record-btrace.h.
9484 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9485 the vendor is unknown.
9486 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9487 Maybe overwrite the btrace configuration's cpu.
9488 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9489 (btrace_fetch): Add cpu parameter. Update callers.
9490 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9491 Maybe overwrite the btrace configuration's cpu. Skip enabling
9492 errata workarounds if the vendor is unknown.
9493 * python/py-record-btrace.c: Include record-btrace.h.
9494 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9495 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9496 * record-btrace.c (record_btrace_cpu_state_kind): New.
9497 (record_btrace_cpu): New.
9498 (set_record_btrace_cpu_cmdlist): New.
9499 (record_btrace_get_cpu): New.
9500 (require_btrace_thread, record_btrace_info)
9501 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9502 (cmd_set_record_btrace_cpu_none): New.
9503 (cmd_set_record_btrace_cpu_auto): New.
9504 (cmd_set_record_btrace_cpu): New.
9505 (cmd_show_record_btrace_cpu): New.
9506 (_initialize_record_btrace): Initialize set/show record btrace cpu
9508 * record-btrace.h (record_btrace_get_cpu): New.
9510 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9512 * record.c (set_record_command): Fix typo in message.
9514 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9516 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9518 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9520 * infrun.c (process_event_stop_test): Call
9521 gdbarch_in_indirect_branch_thunk.
9522 * gdbarch.sh (in_indirect_branch_thunk): New.
9523 * gdbarch.c: Regenerated.
9524 * gdbarch.h: Regenerated.
9527 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9528 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9529 (ALLDEPFILES): Add x86-tdep.c.
9530 * arch-utils.h (default_in_indirect_branch_thunk): New.
9531 * arch-utils.c (default_in_indirect_branch_thunk): New.
9532 * i386-tdep: Include x86-tdep.h.
9533 (i386_in_indirect_branch_thunk): New.
9534 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9536 * amd64-tdep: Include x86-tdep.h.
9537 (amd64_in_indirect_branch_thunk): New.
9538 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9540 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9543 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9544 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9545 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9548 2018-04-12 Tom Tromey <tom@tromey.com>
9550 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9551 (rust_evaluate_subexp): Likewise.
9553 2018-04-12 Pedro Alves <palves@redhat.com>
9555 * procfs.c (procfs_detach): Make forward declaration's prototype
9556 match definition's protototype.
9557 (proc_get_LDT_entry): Remove stale do_cleanups call.
9559 2018-04-12 Pedro Alves <palves@redhat.com>
9561 * target.h (target_ops::to_has_exited): Delete.
9562 (target_has_exited): Delete.
9563 * target-delegates.c: Regenerate.
9565 2018-04-11 Pedro Alves <palves@redhat.com>
9567 * target.c (fileio_fh_t::t): Add comment.
9568 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9569 (target_fileio_close): Handle a NULL target.
9570 (invalidate_fileio_fh): New.
9571 (target_close): Call it.
9572 * remote.c (remote_hostio_send_command): No longer check whether
9573 remote_desc is open.
9575 2018-04-11 Pedro Alves <palves@redhat.com>
9577 * target.c (fileio_fh_t): Make it a named struct instead of a
9579 (fileio_fh_t::is_closed): New method.
9580 (DEF_VEC_O (fileio_fh_t)): Remove.
9581 (fileio_fhandles): Now a std::vector.
9582 (is_closed_fileio_fh): Delete.
9583 (acquire_fileio_fd): Adjust. Rename parameters.
9584 (release_fileio_fd): Adjust.
9585 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9586 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9587 (target_fileio_close): Adjust.
9589 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9591 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9594 2018-04-10 Pedro Alves <palves@redhat.com>
9596 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9597 (scoped_finish_thread_state): New class.
9598 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9600 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9601 (fetch_inferior_event, normal_stop): Likewise.
9602 * thread.c (finish_thread_state_cleanup): Delete.
9604 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9605 Pedro Alves <palves@redhat.com>
9607 * value.c: Include "selftest.h" and "common/array-view.h".
9608 (struct range) <operator ==>: New.
9609 (test_ranges_contain): New.
9610 (check_ranges_vector): New.
9611 (test_insert_into_bit_range_vector): New.
9612 (_initialize_values): Register selftests.
9613 * common/array-view.h (operator==, operator!=): New.
9615 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9617 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9619 * inline-frame.c: Include <algorithm>.
9620 (struct inline_state): Add constructor.
9621 (inline_state_s): Remove.
9622 (DEF_VEC_O(inline_state_s)): Remove.
9623 (inline_states): Change type to std::vector.
9624 (find_inline_frame_state): Adjust to std::vector.
9625 (allocate_inline_frame_state): Remove.
9626 (clear_inline_frame_state): Adjust to std::vector.
9627 (skip_inline_frames): Adjust to std::vector.
9629 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9631 * tracepoint.h (struct trace_state_variable): Add constructor.
9632 <name>: Change type to std::string.
9633 * tracepoint.c (tsv_s): Remove.
9634 (DEF_VEC_O(tsv_s)): Remove.
9635 (tvariables): Change to std::vector.
9636 (create_trace_state_variable): Adjust to std::vector.
9637 (find_trace_state_variable): Likewise.
9638 (find_trace_state_variable_by_number): Likewise.
9639 (delete_trace_state_variable): Likewise.
9640 (trace_variable_command): Adjust to std::string.
9641 (delete_trace_variable_command): Likewise.
9642 (tvariables_info_1): Adjust to std::vector.
9643 (save_trace_state_variables): Likewise.
9644 (start_tracing): Likewise.
9645 (merge_uploaded_trace_state_variables): Adjust to std::vector
9647 * target.h (struct target_ops)
9648 <to_download_trace_state_variable>: Pass reference to
9649 trace_state_variable.
9650 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9651 * target-delegates.c: Re-generate.
9652 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9653 (mi_tsv_deleted): Likewise.
9654 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9655 * remote.c (remote_download_trace_state_variable): Change
9656 pointer to reference and adjust.
9657 * make-target-delegates (parse_argtypes): Handle references.
9658 (write_function_header): Likewise.
9659 (munge_type): Likewise.
9661 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9663 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9664 string_view-selftests.c.
9665 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9667 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9668 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9669 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9670 * unittests/basic_string_view/element_access/char/1.cc:
9672 * unittests/basic_string_view/element_access/char/empty.cc:
9674 * unittests/basic_string_view/element_access/char/front_back.cc:
9676 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9677 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9679 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9681 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9683 * unittests/basic_string_view/operations/compare/char/1.cc:
9685 * unittests/basic_string_view/operations/compare/char/13650.cc:
9687 * unittests/basic_string_view/operations/copy/char/1.cc:
9689 * unittests/basic_string_view/operations/data/char/1.cc:
9691 * unittests/basic_string_view/operations/find/char/1.cc:
9693 * unittests/basic_string_view/operations/find/char/2.cc:
9695 * unittests/basic_string_view/operations/find/char/3.cc:
9697 * unittests/basic_string_view/operations/find/char/4.cc:
9699 * unittests/basic_string_view/operations/rfind/char/1.cc:
9701 * unittests/basic_string_view/operations/rfind/char/2.cc:
9703 * unittests/basic_string_view/operations/rfind/char/3.cc:
9705 * unittests/basic_string_view/operations/substr/char/1.cc:
9707 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9708 * unittests/string_view-selftests.c: New file.
9710 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9712 * unittests/basic_string_view/capacity/1.cc: New file.
9713 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9714 * unittests/basic_string_view/cons/char/1.cc: New file.
9715 * unittests/basic_string_view/cons/char/2.cc: New file.
9716 * unittests/basic_string_view/cons/char/3.cc: New file.
9717 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9718 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9719 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9720 * unittests/basic_string_view/element_access/char/1.cc: New file.
9721 * unittests/basic_string_view/element_access/char/2.cc: New file.
9722 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9723 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9724 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9725 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9726 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9727 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9728 * unittests/basic_string_view/include.cc: New file.
9729 * unittests/basic_string_view/inserters/char/1.cc: New file.
9730 * unittests/basic_string_view/inserters/char/2.cc: New file.
9731 * unittests/basic_string_view/inserters/char/3.cc: New file.
9732 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9733 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9734 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9735 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9736 * unittests/basic_string_view/literals/types.cc: New file.
9737 * unittests/basic_string_view/literals/values.cc: New file.
9738 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9739 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9740 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9741 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9742 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9743 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9744 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9745 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9746 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9747 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9748 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9749 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9750 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9751 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9752 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9753 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9754 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9755 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9756 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9757 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9758 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9759 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9760 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9761 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9762 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9763 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9764 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9765 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9766 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9767 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9768 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9769 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9770 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9771 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9772 * unittests/basic_string_view/operators/char/2.cc: New file.
9773 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9774 * unittests/basic_string_view/range_access/char/1.cc: New file.
9775 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9776 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9777 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9778 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9779 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9780 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9781 * unittests/basic_string_view/requirements/typedefs.cc: New file.
9782 * unittests/basic_string_view/typedefs.cc: New file.
9783 * unittests/basic_string_view/types/1.cc: New file.
9785 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9787 * common/gdb_string_view.h: Remove libstdc++ implementation
9788 details, adjust to gdb reality.
9789 * common/gdb_string_view.tcc: Likewise.
9790 * cli/cli-script.c (struct string_view): Remove.
9791 (user_args) <m_args>: Change element type to gdb::string_view.
9792 (user_args::insert_args): Adjust.
9794 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9796 * common/gdb_string_view.h: New file.
9797 * common/gdb_string_view.tcc: New file.
9799 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9801 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9802 * configure: Re-generate.
9804 2018-04-09 Pedro Alves <palves@redhat.com>
9806 * gdbarch.sh: Include "observable.h" instead of "observer.h".
9807 (set_target_gdbarch): Call
9808 gdb::observers::architecture_changed.notify instead of
9809 observer_notify_architecture_changed.
9811 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9813 * tracepoint.c (struct current_traceframe_cleanup): Remove.
9814 (do_restore_current_traceframe_cleanup): Remove.
9815 (restore_current_traceframe_cleanup_dtor): Remove.
9816 (make_cleanup_restore_current_traceframe): Remove.
9817 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
9819 * tracepoint.h (struct scoped_restore_current_traceframe): New.
9820 * infrun.c (fetch_inferior_event): Use
9821 scoped_restore_current_traceframe.
9823 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9825 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
9827 <n_allocated_type_units>: Remove.
9828 <all_type_units>: Change to std::vector.
9829 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9830 to std::vector change.
9831 (dwarf2_per_objfile::get_cutu): Likewise.
9832 (dwarf2_per_objfile::get_tu): Likewise.
9833 (create_signatured_type_table_from_index): Likewise.
9834 (create_signatured_type_table_from_debug_names): Likewise.
9835 (dw2_symtab_iter_next): Likewise.
9836 (dw2_print_stats): Likewise.
9837 (dw2_expand_all_symtabs): Likewise.
9838 (dw2_expand_marked_cus): Likewise.
9839 (dw2_debug_names_iterator::next): Likewise.
9840 (dwarf2_initialize_objfile): Likewise.
9841 (add_signatured_type_cu_to_table): Likewise.
9842 (create_all_type_units): Likewise.
9843 (add_type_unit): Likewise.
9844 (struct tu_abbrev_offset): Add constructor.
9845 (build_type_psymtabs_1): Adjust to std::vector change.
9846 (print_tu_stats): Likewise.
9847 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9848 (write_debug_names): Likewise.
9850 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9852 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
9853 Make an std::vector.
9854 <n_comp_units>: Remove.
9855 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9856 to std::vector change.
9857 (dwarf2_per_objfile::get_cutu): Likewise.
9858 (dwarf2_per_objfile::get_cu): Likewise.
9859 (create_cus_from_index): Likewise.
9860 (create_addrmap_from_index): Likewise.
9861 (create_addrmap_from_aranges): Likewise.
9862 (dwarf2_read_index): Likewise.
9863 (dw2_find_last_source_symtab): Likewise.
9864 (dw2_map_symtabs_matching_filename): Likewise.
9865 (dw2_symtab_iter_next): Likewise.
9866 (dw2_print_stats): Likewise.
9867 (dw2_expand_all_symtabs): Likewise.
9868 (dw2_expand_symtabs_with_fullname): Likewise.
9869 (dw2_expand_marked_cus): Likewise.
9870 (dw2_map_symbol_filenames): Likewise.
9871 (create_cus_from_debug_names): Likewise.
9872 (dwarf2_read_debug_names): Likewise.
9873 (dw2_debug_names_iterator::next): Likewise.
9874 (dwarf2_initialize_objfile): Likewise.
9875 (set_partial_user): Likewise.
9876 (dwarf2_build_psymtabs_hard): Likewise.
9877 (read_comp_units_from_section): Remove arguments, adjust to
9879 (create_all_comp_units): Adjust to std::vector and
9880 read_comp_units_from_section changes.
9881 (dwarf2_find_containing_comp_unit): Adjust to std::vector
9883 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9884 (psyms_seen_size): Likewise.
9885 (write_gdbindex): Likewise.
9886 (write_debug_names): Likewise.
9888 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9890 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
9891 with dwarf2_per_objfile.
9892 (create_cus_from_index): Likewise.
9893 (create_signatured_type_table_from_index): Likewise.
9894 (dwarf2_read_index): Likewise.
9895 (dwarf2_initialize_objfile): Likewise.
9896 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
9897 per_cu rather than get_dwarf2_per_objfile.
9899 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9901 * dwarf2read.h (struct signatured_type): Forward declare.
9902 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
9904 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
9905 (dw2_get_cutu): ...this.
9906 (dwarf2_per_objfile::get_cu): Rename from...
9907 (dw2_get_cu): ...this.
9908 (dwarf2_per_objfile::get_tu): New.
9909 (create_addrmap_from_index): Adjust.
9910 (create_addrmap_from_aranges): Adjust.
9911 (dw2_find_last_source_symtab): Adjust.
9912 (dw2_map_symtabs_matching_filename): Adjust.
9913 (dw2_symtab_iter_next): Adjust.
9914 (dw2_print_stats): Adjust.
9915 (dw2_expand_all_symtabs): Adjust.
9916 (dw2_expand_symtabs_with_fullname): Adjust.
9917 (dw2_expand_marked_cus): Adjust.
9918 (dw_expand_symtabs_matching_file_matcher): Adjust.
9919 (dw2_map_symbol_filenames): Adjust.
9920 (dw2_debug_names_iterator::next): Adjust.
9921 (dwarf2_initialize_objfile): Adjust.
9922 (set_partial_user): Adjust.
9923 (dwarf2_build_psymtabs_hard): Adjust.
9925 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9927 * dwarf2read.c (create_signatured_type_table_from_debug_names):
9928 Remove unused variables.
9929 (dw2_map_symtabs_matching_filename): Likewise.
9930 (dwarf2_record_block_ranges): Likewise.
9931 (dwarf2_read_addr_index): Likewise.
9932 (follow_die_offset): Likewise.
9934 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9936 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
9937 to symbol_file_add_main.
9939 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9942 * mi/mi-console.c (do_fputc_async_safe): New.
9943 (mi_console_file::write_async_safe): New.
9944 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
9945 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
9947 * ui-file.c (ui_file::putstrn): Adjust call to
9948 fputstrn_unfiltered.
9949 * utils.c (printchar): Replace do_fputs and do_fprintf
9950 parameters by do_fputc.
9951 (fputstr_filtered): Adjust call to printchar.
9952 (fputstr_unfiltered): Likewise.
9953 (fputstrn_filtered): Likewise.
9954 (fputstrn_unfiltered): Add do_fputc parameter, pass to
9956 * utils.h (do_fputc_ftype): New typedef.
9957 (fputstrn_unfiltered): Add do_fputc parameter.
9959 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9961 * regformats/i386/i386-avx.dat: Remove.
9963 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9966 * amd64-tdep.c (amd64_none_init_abi): New function.
9967 (amd64_x32_none_init_abi): New function.
9968 (_initialize_amd64_tdep): Register handlers for x86-64 and
9969 x64_32 with GDB_OSABI_NONE.
9970 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
9971 GDB_OSABI_NONE osabi.
9973 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9976 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
9978 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
9979 * osabi.c (gdb_osabi_names): Add "unknown" entry.
9981 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9983 * common/byte-vector.h (char_vector): New type.
9984 * target.h (target_read_alloc): Return
9985 gdb::optional<byte_vector>.
9986 (target_read_stralloc): Return gdb::optional<char_vector>.
9987 (target_get_osdata): Return gdb::optional<char_vector>.
9988 * target.c (target_read_alloc_1): Templatize. Replacement
9989 manual memory management with vector.
9990 (target_read_alloc): Change return type, adjust.
9991 (target_read_stralloc): Change return type, adjust.
9992 (target_get_osdata): Change return type, adjust.
9993 * auxv.c (struct auxv_info) <length>: Remove.
9994 <data>: Change type to gdb::optional<byte_vector>.
9995 (auxv_inferior_data_cleanup): Free auxv_info with delete.
9996 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
9997 (target_auxv_search): Adjust.
9998 (fprint_target_auxv): Adjust.
9999 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10000 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10001 (linux_make_corefile_notes): Adjust.
10002 * osdata.c (get_osdata): Adjust.
10003 * remote.c (remote_get_threads_with_qxfer): Adjust.
10004 (remote_memory_map): Adjust.
10005 (remote_traceframe_info): Adjust.
10006 (btrace_read_config): Adjust.
10007 (remote_read_btrace): Adjust.
10008 (remote_pid_to_exec_file): Adjust.
10009 * solib-aix.c (solib_aix_get_library_list): Adjust.
10010 * solib-dsbt.c (decode_loadmap): Don't free buf.
10011 (dsbt_get_initial_loadmaps): Adjust.
10012 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10013 * solib-target.c (solib_target_current_sos): Adjust.
10014 * tracepoint.c (sdata_make_value): Adjust.
10015 * xml-support.c (xinclude_start_include): Adjust.
10016 (xml_fetch_content_from_file): Adjust.
10017 * xml-support.h (xml_fetch_another): Change return type.
10018 (xml_fetch_content_from_file): Change return type.
10019 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10020 * xml-tdesc.c (file_read_description_xml): Adjust.
10021 (fetch_available_features_from_target): Change return type.
10022 (target_fetch_description_xml): Adjust.
10023 (target_read_description_xml): Adjust.
10025 2018-04-06 Tom Tromey <tom@tromey.com>
10027 * value.c (~value): Update.
10028 (struct value) <contents>: Now unique_xmalloc_ptr.
10029 (value_contents_bits_eq, allocate_value_contents)
10030 (value_contents_raw, value_contents_all_raw)
10031 (value_contents_for_printing, value_contents_for_printing_const)
10032 (set_value_enclosing_type): Update.
10034 2018-04-06 Tom Tromey <tom@tromey.com>
10036 * value.c (range_s): Remove typedef, VEC.
10037 (struct range): Add operator<.
10038 (range_lessthan): Remove.
10039 (ranges_contain): Change type.
10041 (struct value) <unavailable, optimized_out>: Now std::vector.
10042 (value_entirely_available)
10043 (value_entirely_covered_by_range_vector)
10044 (value_entirely_unavailable, value_entirely_optimized_out):
10046 (insert_into_bit_range_vector): Change argument type.
10047 (find_first_range_overlap): Likewise.
10048 (struct ranges_and_idx, value_contents_bits_eq)
10049 (require_not_optimized_out, require_available): Update.
10050 (ranges_copy_adjusted): Change argument types.
10051 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10053 2018-04-06 Tom Tromey <tom@tromey.com>
10055 * value.c (~value): Update.
10056 (struct value) <parent>: Now a value_ref_ptr.
10057 (value_parent, set_value_parent, value_address, value_copy):
10060 2018-04-06 Tom Tromey <tom@tromey.com>
10062 * value.c (struct value): Add constructor, destructor, and member
10064 (allocate_value_lazy, value_decref): Update.
10066 2018-04-06 Tom Tromey <tom@tromey.com>
10068 * value.c (struct value) <released, next>: Remove.
10069 (all_values): Now a std::vector.
10070 (allocate_value_lazy): Update.
10071 (value_next): Remove.
10072 (value_mark, value_free_to_mark, release_value)
10073 (value_release_to_mark): Update.
10075 2018-04-06 Tom Tromey <tom@tromey.com>
10077 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10078 (free_value_chain): Remove.
10079 * value.c (free_value_chain): Remove.
10080 (value_release_to_mark): Return a std::vector.
10081 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10083 (check_condition): Update.
10084 * eval.c (fetch_subexp_value): Change "val_chain" to a
10086 * breakpoint.c (update_watchpoint): Update.
10087 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10089 2018-04-06 Tom Tromey <tom@tromey.com>
10091 * value.h (free_all_values): Remove.
10092 * value.c (free_all_values): Remove.
10094 2018-04-06 Tom Tromey <tom@tromey.com>
10096 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10097 (value_history_chain, value_history_count): Remove.
10098 (value_history): New global.
10099 (record_latest_value, access_value_history, show_values)
10100 (preserve_values): Update.
10102 2018-04-06 Tom Tromey <tom@tromey.com>
10104 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10105 * varobj.c (varobj_set_display_format, varobj_set_value)
10106 (install_default_visualizer, construct_visualizer)
10107 (install_new_value, ~varobj, varobj_get_value_type)
10108 (my_value_of_variable, varobj_editable_p): Update.
10109 * c-varobj.c (c_describe_child, c_value_of_variable)
10110 (cplus_number_of_children, cplus_describe_child): Update.
10111 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10112 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10113 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10115 2018-04-06 Tom Tromey <tom@tromey.com>
10117 * printcmd.c (last_examine_address): Change type to
10119 (do_examine, x_command): Update.
10121 2018-04-06 Tom Tromey <tom@tromey.com>
10123 * value.c (release_value): Update.
10124 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10125 (struct bpstats) <val>: Now a value_ref_ptr.
10126 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10127 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10128 (~watchpoint, print_it_watchpoint, watch_command_1)
10129 (invalidate_bp_value_on_memory_change): Update.
10131 2018-04-06 Tom Tromey <tom@tromey.com>
10133 * varobj.c (varobj_clear_saved_item)
10134 (update_dynamic_varobj_children, install_new_value, ~varobj):
10136 * value.h (value_incref): Move declaration earlier.
10137 (value_decref): Rename from value_free.
10138 (struct value_ref_policy): New.
10139 (value_ref_ptr): New typedef.
10140 (struct value_deleter): Remove.
10141 (gdb_value_up): Remove typedef.
10142 (release_value): Change return type.
10143 (release_value_or_incref): Remove.
10144 * value.c (set_value_parent): Update.
10145 (value_incref): Change return type.
10146 (value_decref): Rename from value_free.
10147 (value_free_to_mark, free_all_values, free_value_chain): Update.
10148 (release_value): Return value_ref_ptr.
10149 (release_value_or_incref): Remove.
10150 (record_latest_value, set_internalvar, clear_internalvar):
10152 * stack.c (info_frame_command): Don't call value_free.
10153 * python/py-value.c (valpy_dealloc, valpy_new)
10154 (value_to_value_object): Update.
10155 * printcmd.c (do_examine): Update.
10156 * opencl-lang.c (lval_func_free_closure): Update.
10157 * mi/mi-main.c (register_changed_p): Don't call value_free.
10158 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10159 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10160 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10162 * guile/scm-value.c (vlscm_free_value_smob)
10163 (vlscm_scm_from_value): Update.
10164 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10165 (frame_unwind_register_unsigned, get_frame_register_bytes)
10166 (put_frame_register_bytes): Don't call value_free.
10167 * findvar.c (address_from_register): Don't call value_free.
10168 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10169 * dwarf2loc.c (entry_data_value_free_closure)
10170 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10171 (dwarf2_evaluate_loc_desc_full): Update.
10172 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10173 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10174 (~watchpoint, watch_command_1)
10175 (invalidate_bp_value_on_memory_change): Update.
10176 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10178 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10181 * warning.m4: Add -Wno-error=deprecated-register.
10182 * configure: Re-generate.
10184 2018-04-05 Tom Tromey <tom@tromey.com>
10186 * linespec.h: Remove include of "vec.h".
10188 2018-04-05 Tom Tromey <tom@tromey.com>
10190 * linespec.c (typep): Remove typedef.
10191 (find_methods, find_superclass_methods): Take a std::vector.
10192 (find_method): Use std::vector.
10194 2018-04-05 Tom Tromey <tom@tromey.com>
10196 * utils.c (compare_strings): Remove.
10197 * utils.h (compare_strings): Remove.
10198 * objc-lang.h (find_imps): Update.
10199 * objc-lang.c (find_methods): Take a std::vector.
10200 (uniquify_strings, find_imps): Likewise.
10201 * linespec.c (find_methods): Take a std::vector.
10202 (decode_objc): Use std::vector.
10203 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10205 (find_method, find_function_symbols): Use std::vector.
10207 2018-04-05 Tom Tromey <tom@tromey.com>
10209 * completer.c (completion_tracker::completion_tracker): Remove
10211 (completion_tracker::discard_completions): Likewise.
10212 * breakpoint.c (ambiguous_names_p): Remove cast.
10213 * ada-lang.c (_initialize_ada_language): Remove cast.
10214 * utils.h (streq): Update.
10215 (streq_hash): Add new declaration.
10216 * utils.c (streq): Return bool.
10217 (streq_hash): New function.
10219 2018-04-05 Tom Tromey <tom@tromey.com>
10221 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10222 Remove a string copy.
10224 2018-04-05 Tom Tromey <tom@tromey.com>
10226 * linespec.c (filter_results): Use std::vector.
10227 (decode_line_2, decode_line_full): Update.
10229 2018-04-05 Tom Tromey <tom@tromey.com>
10231 * linespec.c (canonical_to_fullform): Return std::string.
10232 (filter_results): Update.
10233 (struct decode_line_2_item): Add constructor.
10234 <fullform, displayform>: Now std::string.
10235 (decode_line_2_compare_items): Now a std::sort comparator.
10236 (decode_line_2): Update.
10238 2018-04-05 Tom Tromey <tom@tromey.com>
10240 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10241 (unexpected_linespec_error): Update.
10242 (linespec_parse_basic, parse_linespec): Update.
10244 2018-04-05 Tom Tromey <tom@tromey.com>
10246 * linespec.c (linespec_parse_basic): Reindent.
10248 2018-04-05 Tom Tromey <tom@tromey.com>
10250 * minsyms.h (iterate_over_minimal_symbols): Update.
10251 * minsyms.c (iterate_over_minimal_symbols): Take a
10252 gdb::function_view.
10253 * linespec.c (struct collect_minsyms): Remove.
10254 (compare_msyms): Now a std::sort comparator.
10255 (add_minsym): Add parameters.
10256 (search_minsyms_for_name): Update. Use std::vector.
10258 2018-04-03 Tom Tromey <tom@tromey.com>
10260 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10263 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10265 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10267 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10270 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10271 printing static type.
10273 2018-04-01 Tom Tromey <tom@tromey.com>
10275 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10276 (rs6000_xfer_shared_libraries): Update.
10278 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10280 * common/gdb_vecs.h (char_ptr): Remove.
10281 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10283 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10285 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10287 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10289 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10291 * tracepoint.h (struct uploaded_tp): Initialize fields.
10292 <actions, step_actions, cmd_strings>: Change type to
10293 std::vector<char *>.
10294 * tracepoint.c (get_uploaded_tp): Allocate with new.
10295 (free_uploaded_tps): Free with delete.
10296 (parse_tracepoint_definition): Adjust to std::vector change.
10297 * breakpoint.c (read_uploaded_action): Likewise.
10298 (create_tracepoint_from_upload): Likewise.
10299 * ctf.c (ctf_write_uploaded_tp): Likewise.
10300 (SET_ARRAY_FIELD): Likewise.
10301 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10303 2018-03-30 Tom Tromey <tom@tromey.com>
10305 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10307 (svr4_keep_data_in_core): Update.
10308 (svr4_read_so_list): Update.
10310 2018-03-30 Tom Tromey <tom@tromey.com>
10312 * windows-nat.c (handle_output_debug_string, handle_exception):
10314 * target.h (target_read_string): Update.
10315 * target.c (target_read_string): Change "string" to
10316 unique_xmalloc_ptr.
10317 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10319 * solib-frv.c (frv_current_sos): Update.
10320 * solib-dsbt.c (dsbt_current_sos): Update.
10321 * solib-darwin.c (darwin_current_sos): Update.
10322 * linux-thread-db.c (inferior_has_bug): Update.
10323 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10324 Update. Remove alloca.
10325 * ada-lang.c (ada_main_name): Update.
10327 2018-03-30 Tom Tromey <tom@tromey.com>
10329 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10330 (struct dwo_file_deleter): New.
10331 (dwo_file_up): New typedef.
10332 (open_and_init_dwo_file): Use dwo_file_up.
10333 (free_dwo_file_cleanup): Remove.
10335 2018-03-30 Tom Tromey <tom@tromey.com>
10337 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10338 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10340 2018-03-30 Tom Tromey <tom@tromey.com>
10342 * dwarf2read.c (class free_cached_comp_units): New class.
10343 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10344 (free_cached_comp_units): Remove function.
10346 2018-03-30 Tom Tromey <tom@tromey.com>
10348 * utils.h (make_cleanup_unpush_target): Remove.
10349 * inf-ptrace.c (struct target_unpusher): New.
10350 (target_unpush_up) New typedef.
10351 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10353 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10355 2018-03-27 Tom Tromey <tom@tromey.com>
10357 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10359 2018-03-27 Pedro Alves <palves@redhat.com>
10360 Tom Tromey <tom@tromey.com>
10362 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10363 destructor. Now a class.
10364 (gdb_readline_wrapper_cleanup): Remove function.
10365 (gdb_readline_wrapper): Remove cleanups.
10367 2018-03-27 Tom Tromey <tom@tromey.com>
10369 * typeprint.h (struct type_print_options) <local_typedefs,
10370 global_typedefs>: Remove "struct" keyword.
10371 (class typedef_hash_table): New class.
10372 (recursively_update_typedef_hash, add_template_parameters)
10373 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10374 (find_typedef_in_hash): Don't declare.
10375 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10376 (typedef_hash_table::recursively_update): Rename from
10377 recursively_update_typedef_hash. Now a member.
10378 (typedef_hash_table::add_template_parameters): Rename from
10379 add_template_parameters. Now a member.
10380 (typedef_hash_table::typedef_hash_table): Now a constructor;
10381 rename from create_typedef_hash.
10382 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10383 rename from free_typedef_hash.
10384 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10385 (do_free_global_table): Remove.
10386 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10387 from copy_type_recursive.
10388 (create_global_typedef_table): Remove.
10389 (typedef_hash_table::find_global_typedef): Now a member of
10390 typedef_hash_table.
10391 (typedef_hash_table::find_typedef): Rename from
10392 find_typedef_in_hash; now a member.
10393 (whatis_exp): Update.
10394 * extension.h (struct ext_lang_type_printers): Add constructor and
10396 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10398 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10399 Now a constructor; rename from start_ext_lang_type_printers.
10400 (ext_lang_type_printers): Now a destructor; rename from
10401 free_ext_lang_type_printers.
10402 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10404 (c_type_print_base_struct_union): Update. Remove cleanups.
10406 2018-03-27 Tom Tromey <tom@tromey.com>
10408 * dwarf-index-write.c: Include <cmath>.
10410 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10412 * NEWS: Add entry describing new "set|show varsize-limit" command.
10413 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10415 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10418 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10420 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10421 dwarf-index-write.c
10422 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10423 * dwarf-index-common.c: New file.
10424 * dwarf-index-common.h: New file.
10425 * dwarf-index-write.c: New file.
10426 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10427 (struct dwarf2_section_info): Move from here.
10428 (dwarf2_section_info_def): Likewise.
10429 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10430 (offset_type): Likewise.
10431 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10432 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10433 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10434 (byte_swap): Likewise.
10435 (MAYBE_SWAP): Likewise.
10436 (dwarf2_per_cu_ptr): Likewise.
10437 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10438 (struct tu_stats): Likewise.
10439 (struct dwarf2_per_objfile): Likewise.
10440 (struct dwarf2_per_cu_data): Likewise.
10441 (struct signatured_type): Likewise.
10442 (sig_type_ptr): Likewise.
10443 (DEF_VEC_P (sig_type_ptr)): Likewise.
10444 (INDEX4_SUFFIX): Likewise.
10445 (INDEX5_SUFFIX): Likewise.
10446 (DEBUG_STR_SUFFIX): Likewise.
10447 (dwarf2_read_section): Make non-static.
10448 (mapped_index_string_hash): Move from here.
10449 (dwarf5_djb_hash): Likewise.
10450 (file_write): Likewise.
10451 (class data_buf): Likewise.
10452 (struct symtab_index_entry): Likewise.
10453 (struct mapped_symtab): Likewise.
10454 (find_slot): Likewise.
10455 (hash_expand): Likewise.
10456 (add_index_entry): Likewise.
10457 (uniquify_cu_indices): Likewise.
10458 (class c_str_view): Likewise.
10459 (class c_str_view_hasher): Likewise.
10460 (class vector_hasher): Likewise.
10461 (write_hash_table): Likewise.
10462 (psym_index_map): Likewise.
10463 (struct addrmap_index_data): Likewise.
10464 (add_address_entry): Likewise.
10465 (add_address_entry_worker): Likewise.
10466 (write_address_map): Likewise.
10467 (symbol_kind): Likewise.
10468 (write_psymbols): Likewise.
10469 (struct signatured_type_index_data): Likewise.
10470 (write_one_signatured_type): Likewise.
10471 (recursively_count_psymbols): Likewise.
10472 (recursively_write_psymbols): Likewise.
10473 (class debug_names): Likewise.
10474 (check_dwarf64_offsets): Likewise.
10475 (psyms_seen_size): Likewise.
10476 (write_gdbindex): Likewise.
10477 (write_debug_names): Likewise.
10478 (assert_file_size): Likewise.
10479 (write_psymtabs_to_index): Likewise.
10480 (save_gdb_index_command): Likewise.
10481 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10483 * dwarf2read.h: New file.
10485 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10488 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10489 symbol name if the CU's language stores symbol names in linkage
10491 * language.h (struct language_defn)
10492 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10493 all instances of this struct.
10495 2018-03-26 Tom Tromey <tom@tromey.com>
10497 * stack.c (backtrace_command_1): Remove verbose code.
10499 2018-03-26 Tom Tromey <tom@tromey.com>
10501 * python/py-framefilter.c (py_print_type): Don't catch
10502 exceptions. Return void.
10503 (py_print_value): Likewise.
10504 (py_print_single_arg): Likewise.
10505 (enumerate_args): Don't catch exceptions.
10506 (py_print_args): Likewise.
10507 (py_print_frame): Likewise.
10508 (gdbpy_apply_frame_filter): Catch exceptions here.
10510 2018-03-26 Tom Tromey <tom@tromey.com>
10512 * stack.c (_initialize_stack): Remove trailing newlines from help
10513 text. Add "Usage" line to "backtrace" help.
10515 2018-03-26 Tom Tromey <tom@tromey.com>
10518 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10520 2018-03-26 Tom Tromey <tom@tromey.com>
10522 * python/py-framefilter.c (py_print_single_arg): Return
10523 EXT_LANG_BT_ERROR from catch.
10525 2018-03-26 Tom Tromey <tom@tromey.com>
10527 PR backtrace/15584:
10528 * stack.c (backtrace_command_1): Move some code into no-filters
10531 2018-03-26 Tom Tromey <tom@tromey.com>
10533 * python/py-framefilter.c (throw_quit_or_print_exception): New
10535 (gdbpy_apply_frame_filter): Use it.
10537 2018-03-26 Tom Tromey <tom@tromey.com>
10540 * python/py-framefilter.c (py_print_type, py_print_value)
10541 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10544 2018-03-26 Tom Tromey <tom@tromey.com>
10546 * python/py-framefilter.c (enumerate_args): Use
10547 gdb::unique_xmalloc_ptr.
10549 2018-03-26 Tom Tromey <tom@tromey.com>
10551 * python/py-framefilter.c (py_print_frame): Return
10553 (gdbpy_apply_frame_filter): Update comment.
10554 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10556 <EXT_LANG_BT_NO_FILTERS>: Change value.
10558 2018-03-26 Tom Tromey <tom@tromey.com>
10560 PR backtrace/15582:
10561 * stack.c (backtrace_command): Parse "hide" argument.
10562 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10563 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10566 2018-03-26 Tom Tromey <tom@tromey.com>
10568 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10570 (backtrace_command): Remove "fulltrace", add "flags".
10572 2018-03-26 Tom Tromey <tom@tromey.com>
10574 * stack.c (backtrace_command): Rewrite command line parsing.
10576 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10578 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10580 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10582 * filename-seen-cache.h: Add include guard.
10584 2018-03-26 Keith Seitz <keiths@redhat.com>
10586 * symfile.c (place_section): Remove "struct" from section_addr_info
10588 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10589 "struct" keyword from section_addr_info.
10591 2018-03-26 Alan Hayward <alan.hayward@arm.com>
10593 * regformats/regdef.h (reg): Add constructors.
10595 2018-03-25 Pedro Alves <palves@redhat.com>
10597 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10598 if then/else bodies in var_func_name extraction.
10600 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
10602 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10603 lookup_minimal_symbol() to find symbol entry.
10604 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10606 2018-03-23 Keith Seitz <keiths@redhat.com>
10609 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10610 nested type definitions for C++, too.
10612 2018-03-23 Tom Tromey <tom@tromey.com>
10614 * machoread.c (struct oso_el): Add a constructor. Don't define as
10616 (macho_register_oso): Remove.
10617 (macho_symtab_read): Take a std::vector.
10618 (oso_el_compare_name): Now a std::sort comparator.
10619 (macho_symfile_read_all_oso): Take a std::vector.
10620 (macho_symfile_read): Use std::vector. Remove cleanups.
10622 2018-03-22 Tom Tromey <tom@tromey.com>
10624 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10625 (record_full_goto_bookmark): Use std::string.
10627 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10630 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10633 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10635 * rs6000-tdep.c (store_insn_p): New function.
10636 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10637 and cr_reg to their unshifted values. Use store_insn_p to
10638 match LR saves using either R1 or fdata->alloca_reg. Use
10639 store_insn_p to match CR saves. Set alloca_reg_offset
10640 when alloca_reg and framep are set. Remove lr_reg shift
10641 when assigning to fdata->lr_register.
10643 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10645 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10646 command line args instead of emitting a warning.
10648 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10650 * tracepoint.h (struct static_tracepoint_marker): Initialize
10651 fields, define default constructor, move constructor and move
10652 assignment, disable the rest.
10653 <str_id, extra>: Make std::string.
10654 (release_static_tracepoint_marker): Remove.
10655 (free_current_marker): Remove.
10656 * tracepoint.c (free_current_marker): Remove.
10657 (parse_static_tracepoint_marker_definition): Adjust to
10658 std::string, use new hex2str overload.
10659 (release_static_tracepoint_marker): Remove.
10660 (print_one_static_tracepoint_marker): Get marker by reference
10661 and adjust to std::string.
10662 (info_static_tracepoint_markers_command): Adjust to std::vector
10664 * target.h (static_tracepoint_marker_p): Remove typedef.
10665 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10666 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10668 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10670 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10671 (target_debug_print_std_vector_static_tracepoint_marker): New.
10672 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10674 (target_debug_print_static_tracepoint_marker_p): ... this.
10675 * target-delegates.c: Re-generate.
10676 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10678 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10679 (decode_static_tracepoint_spec): Adjust to std::vector.
10680 (tracepoint_print_one_detail): Adjust to std::string.
10681 (strace_marker_decode_location): Adjust to std::string.
10682 (update_static_tracepoint): Adjust to std::string, remove call
10683 to release_static_tracepoint_marker.
10684 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10685 Adjust to std::vector.
10686 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10687 (remote_static_tracepoint_markers_by_strid): Adjust to
10689 * common/rsp-low.h (hex2str): New overload with explicit count
10691 * common/rsp-low.c (hex2str): New overload with explicit count
10693 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10694 (_initialize_rsp_low_selftests): Add test_hex2str test.
10695 * unittests/tracepoint-selftests.c
10696 (test_parse_static_tracepoint_marker_definition): Adjust to
10699 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10701 * tracepoint.c (parse_static_tracepoint_marker_definition):
10702 Consider case where the definition is followed by more
10704 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10705 tracepoint-selftests.c.
10706 * unittests/tracepoint-selftests.c: New.
10708 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10710 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10713 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10715 * symtab.c (find_pc_sect_line): fixed indentation.
10717 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10719 * symtab.c (find_pc_sect_line): now uses binary search.
10721 2018-03-19 Tom Tromey <tom@tromey.com>
10723 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10724 "IDENT" production.
10726 2018-03-19 Pedro Alves <palves@redhat.com>
10727 Tom Tromey <tom@tromey.com>
10729 * unittests/observable-selftests.c: New file.
10730 * common/observable.h: New file.
10731 * observable.h: New file.
10732 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10733 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10734 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10735 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10736 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10737 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10738 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10739 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10740 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10741 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10742 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10743 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10744 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10745 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10746 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10747 tui/tui-interp.c, valops.c: Update all users.
10748 * tui/tui-hooks.c (tui_bp_created_observer)
10749 (tui_bp_deleted_observer, tui_bp_modified_observer)
10750 (tui_inferior_exit_observer, tui_before_prompt_observer)
10751 (tui_normal_stop_observer, tui_register_changed_observer):
10753 (tui_observers_token): New global.
10754 (attach_or_detach, tui_attach_detach_observers): New functions.
10755 (tui_install_hooks, tui_remove_hooks): Use
10756 tui_attach_detach_observers.
10757 * record-btrace.c (record_btrace_thread_observer): Remove.
10758 (record_btrace_thread_observer_token): New global.
10759 * observer.sh: Remove.
10760 * observer.c: Rename to observable.c.
10761 * observable.c (namespace gdb_observers): Define new objects.
10762 (observer_debug): Move into gdb_observers namespace.
10763 (struct observer, struct observer_list, xalloc_observer_list_node)
10764 (xfree_observer_list_node, generic_observer_attach)
10765 (generic_observer_detach, generic_observer_notify): Remove.
10766 (_initialize_observer): Update.
10767 Don't include observer.inc.
10768 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10769 (clean mostlyclean): Likewise.
10770 (observer.h, observer.inc): Remove targets.
10771 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10772 (COMMON_SFILES): Use observable.c, not observer.c.
10773 * .gitignore: Remove observer.h.
10775 2018-03-18 Tom Tromey <tom@tromey.com>
10777 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10779 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10781 2018-03-17 Tom Tromey <tom@tromey.com>
10783 * auto-load.c (auto_load_objfile_script_1): Use std::string.
10785 2018-03-17 Tom Tromey <tom@tromey.com>
10787 * target.c (class scoped_target_fd): New.
10788 (target_fileio_close_cleanup): Remove.
10789 (target_fileio_read_alloc_1): Use scoped_target_fd.
10791 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
10793 * silent-rules.mk: New.
10794 * Makefile.in: Include silent-rules.mk
10795 (srcdir, VPATH, top_srcdir): Move up.
10796 (COMPILE): Add ECHO_CXX.
10797 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
10798 (init.c): Add ECHO_INIT_C.
10799 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10800 (version.c): Add ECHO_GEN.
10801 (printcmd.o): Add ECHO_CXX.
10802 (target-float.o): Add ECHO_CXX.
10803 (ada-exp.o): Add ECHO_CXX.
10804 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
10805 (insight$(EXEEXT)): Add ECHO_CXXLD.
10806 * gnulib/configure.ac: Add AM_SILENT_RULES.
10807 * gnulib/aclocal.m4: Re-generate.
10808 * gnulib/configure: Re-generate.
10809 * gnulib/import/Makefile.in: Re-generate.
10811 2018-03-16 Tom Tromey <tom@tromey.com>
10813 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
10814 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
10815 * utils.c (do_free_section_addr_info)
10816 (make_cleanup_free_section_addr_info): Remove.
10817 * symfile.h (struct other_sections): Add constructor.
10818 (struct section_addr_info): Remove.
10819 (section_addr_info): New typedef.
10820 (struct sym_fns) <sym_offsets>: Change type of parameter.
10821 (build_section_addr_info_from_objfile)
10822 (relative_addr_info_to_section_offsets, addr_info_make_relative)
10823 (default_symfile_offsets, symbol_file_add)
10824 (symbol_file_add_from_bfd)
10825 (build_section_addr_info_from_section_table): Update.
10826 (alloc_section_addr_info, free_section_addr_info): Don't declare.
10827 * symfile.c (alloc_section_addr_info): Remove.
10828 (build_section_addr_info_from_section_table): Change return type.
10830 (build_section_addr_info_from_bfd)
10831 (build_section_addr_info_from_objfile): Likewise.
10832 (free_section_addr_info): Remove.
10833 (relative_addr_info_to_section_offsets): Change type of "addrs".
10834 (addrs_section_compar): Now a std::sort comparator.
10835 (addrs_section_sort): Change return type.
10836 (addr_info_make_relative): Change type of "addrs". Update.
10837 (default_symfile_offsets, syms_from_objfile_1)
10838 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
10839 (symbol_file_add_separate): Update.
10840 (symbol_file_add): Change type of "addrs". Update.
10841 (add_symbol_file_command): Update. Remove cleanups.
10842 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
10844 * symfile-debug.c (debug_sym_offsets): Change type of "info".
10845 * solib.c (solib_read_symbols): Update.
10846 * objfiles.c (objfile_relocate): Update. Remove cleanups.
10847 * machoread.c (macho_symfile_offsets): Update.
10848 * jit.c (jit_bfd_try_read_symtab): Update.
10850 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
10852 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10853 unittests/utils-selftests.c.
10854 * unittests/utils-selftests.c: New file.
10856 2018-03-14 Tom Tromey <tom@tromey.com>
10859 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
10862 2018-03-14 Tom Tromey <tom@tromey.com>
10865 * printcmd.c (printf_pointer): Allow "-" in format.
10867 2018-03-14 Tom Tromey <tom@tromey.com>
10869 * printcmd.c (_initialize_printcmd): Add usage to printf.
10871 2018-03-14 Yao Qi <qiyao@sourceware.org>
10873 * MAINTAINERS: Update my email address.
10875 2018-03-13 Tom Tromey <tom@tromey.com>
10877 * machoread.c (macho_check_dsym): Change filenamep to a
10879 (macho_symfile_read): Update.
10880 * symfile.c (load_command): Use std::string.
10882 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
10884 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
10885 to error message string.
10886 (riscv_register_name): Use xsnprintf instead of sprintf.
10887 (riscv_insn::fetch_instruction): Use gdb_assert instead of
10889 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
10891 (riscv_push_dummy_call): Likewise.
10893 2018-03-12 Tom Tromey <tom@tromey.com>
10895 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
10896 Use gdb::byte_vector.
10897 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
10899 2018-03-12 Yao Qi <yao.qi@linaro.org>
10901 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
10902 parameter type to readable_regcache.
10903 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
10906 2018-03-11 Tom Tromey <tom@tromey.com>
10908 * dwarf2read.c (struct nextfield): Add initializers.
10909 (struct nextfnfield): Remove.
10910 (struct fnfieldlist): Add initializers. Remove "length" and
10911 "head", use std::vector.
10912 (struct decl_field_list): Remove.
10913 (struct field_info): Add initializers.
10914 <fields, baseclasses>: Now std::vector.
10915 <nbaseclasses, nfnfields, typedef_field_list_count,
10916 nested_types_list_count>: Remove.
10917 (dwarf2_add_field, dwarf2_add_type_defn)
10918 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
10919 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
10920 (process_structure_scope): Update.
10922 2018-03-11 Tom Tromey <tom@tromey.com>
10924 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
10925 for use by std::sort.
10926 (build_type_psymtabs_1): Use std::vector.
10928 2018-03-09 Eli Zaretskii <eliz@gnu.org>
10930 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
10931 and LIBMPFR in the printed configuration.
10933 2018-03-08 Tom Tromey <tom@tromey.com>
10935 * source.c (get_filename_and_charpos): Use scoped_fd.
10936 * nto-procfs.c (procfs_open_1): Use scoped_fd.
10937 (procfs_pidlist): Likewise.
10938 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
10939 (iterate_over_mappings): Likewise.
10941 2018-03-08 Tom Tromey <tom@tromey.com>
10943 * infcall.c (struct call_return_meta_info)
10944 <stack_temporaries_enabled>: Remove.
10945 (get_call_return_value, call_function_by_hand_dummy): Update.
10946 * thread.c (disable_thread_stack_temporaries): Remove.
10947 (enable_thread_stack_temporaries): Remove.
10948 (thread_stack_temporaries_enabled_p): Return bool.
10949 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
10950 (get_last_thread_stack_temporary): Update.
10951 * eval.c (evaluate_subexp): Update.
10952 * gdbthread.h (class enable_thread_stack_temporaries): Now a
10953 class, not a function.
10954 (value_ptr, value_vec): Remove typedefs.
10955 (class thread_info) <stack_temporaries_enabled>: Now bool.
10956 <stack_temporaries>: Now a std::vector.
10957 (thread_stack_temporaries_enabled_p)
10958 (value_in_thread_stack_temporaries): Return bool.
10960 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
10962 * remote.c (putpkt_binary): Fix omitted bytes reporting.
10963 (getpkt_or_notif_sane_1): Likewise.
10965 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10967 * build-id.c (build_id_to_debug_bfd): Use std::string.
10969 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10971 * build-id.c (find_separate_debug_file_by_buildid): Return
10973 * build-id.h (find_separate_debug_file_by_buildid): Return
10975 * coffread.c (coff_symfile_read): Adjust to std::string.
10976 * elfread.c (elf_symfile_read): Adjust to std::string.
10977 * symfile.c (separate_debug_file_exists): Change parameter to
10979 (find_separate_debug_file): Return std::string.
10980 (find_separate_debug_file_by_debuglink): Return std::string.
10981 * symfile.h (find_separate_debug_file_by_debuglink): Return
10984 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10986 * common/xml-utils.c (xml_escape_text): Move code to...
10987 (xml_escape_text_append): ... this new function.
10988 * common/xml-utils.h (xml_escape_text_append): New declaration.
10989 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
10991 (_initialize_xml_utils): register test_xml_escape_text_append as
10994 2018-03-07 Alan Hayward <alan.hayward@arm.com>
10996 * defs.h: Remove MAX_REGISTER_SIZE.
10997 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
10999 * python/py-unwind.c (pyuw_sniffer): Likewise.
11001 2018-03-07 Tom Tromey <tom@tromey.com>
11003 * linux-tdep.c (linux_info_proc): Update.
11004 * target.h (struct target_ops) <to_fileio_readlink>: Return
11006 (target_fileio_readlink): Return optional<string>.
11007 * remote.c (remote_hostio_readlink): Return optional<string>.
11008 * inf-child.c (inf_child_fileio_readlink): Return
11010 * target.c (target_fileio_readlink): Return optional<string>.
11012 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11014 * regcache.c (cooked_read_test): Add riscv to the list of
11015 architectures that have a save_reggroup.
11017 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11019 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11020 value is not a dynamic class object.
11022 2018-03-06 Tom Tromey <tom@tromey.com>
11024 * rust-exp.y: Formatting fixes.
11026 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11028 * riscv-tdep.c (riscv_register_name): Remove target description
11030 (riscv_gdbarch_init): Remove target description check.
11032 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11034 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11036 * riscv-tdep.h: Likewise.
11038 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11040 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11041 (riscv_pseudo_register_write): Delete.
11042 (riscv_gdbarch_init): Remove all use of pseudo registers.
11044 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11046 * record-btrace.c (btrace_print_lines): Replace cleanup
11047 parameter with RAII equivalents.
11048 (btrace_insn_history): Replace cleanup with RAII equivalents.
11049 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11050 make_cleanup_ui_out_tuple_begin_end): Remove.
11051 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11052 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11053 make_cleanup_ui_out_list_begin_end): Remove.
11055 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11057 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11058 parameter types to std::vector. Use bool.
11059 (record_btrace_wait): Replace VEC(tp_t) with
11060 std::vector<thread_info *>.
11061 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11063 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11065 * record-btrace.c (record_btrace_disable_callback): Remove.
11066 (struct scoped_btrace_disable): New.
11067 (record_btrace_open): Use scoped_btrace_disable.
11069 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11071 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11072 reading values from registers.
11074 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11076 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11079 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11081 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11082 change parameter type. Use GDB's print functions, and use
11083 core_addr_to_string where appropriate.
11084 (riscv_push_dummy_call): Use core_addr_to_string where
11085 appropriate, update call to riscv_print_arg_location, and reindent
11087 (riscv_return_value): Update call to riscv_print_arg_location.
11089 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11090 Tim Newsome <tim@sifive.com>
11091 Albert Ou <a0u@eecs.berkeley.edu>
11092 Darius Rad <darius@bluespec.com>
11094 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11095 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11096 (ALLDEPFILES): Add riscv-tdep.c
11097 * configure.tgt: Add riscv support.
11098 * riscv-tdep.c: New file.
11099 * riscv-tdep.h: New file.
11100 * NEWS: Mention new target.
11101 * MAINTAINERS: Add entry for riscv.
11103 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11105 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11106 fields within aggregates.
11108 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11110 * record-btrace.c (btrace_print_lines): Change type of flags to
11111 gdb_disassembly_flags.
11113 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11115 * fbsd-nat.c: Include "inf-ptrace.h".
11116 (USE_SIGTRAP_SIGINFO): Conditionally define.
11117 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11118 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11119 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11121 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11123 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11125 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11126 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11127 "supports_stopped_by_hw_breakpoint" target methods.
11129 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11131 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11132 * fbsd-nat.c (debug_fbsd_nat): New variable.
11133 (show_fbsd_nat_debug): New function.
11134 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11135 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11137 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11139 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11140 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11142 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11143 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11146 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11148 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11149 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11151 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11153 * charset.c (struct charset_vector): New.
11154 (charsets): Change type to charset_vector.
11155 (find_charset_names): Adjust.
11157 (_initialize_charset): Adjust.
11159 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11161 * progspace.h (struct program_space) <deleted_solibs>: Change
11162 type to std::vector<std::string>.
11163 * progspace.c (clear_program_space_solib_cache): Adjust.
11164 * breakpoint.c (print_solib_event): Adjust.
11165 (check_status_catch_solib): Adjust.
11166 * solib.c (update_solib_list): Adjust.
11167 * ui-out.h (class ui_out) <field_string>: New overload.
11168 * ui-out.c (ui_out::field_string): New overload.
11170 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11172 * progspace.h (struct program_space): Add constructor and
11173 destructor, initialize fields.
11174 (add_program_space): Remove.
11175 * progspace.c (add_program_space): Rename to...
11176 (program_space::program_space): ... this.
11177 (release_program_space): Rename to...
11178 (program_space::~program_space): ... this.
11179 (delete_program_space): Use delete to delete program_space.
11180 (initialize_progspace): Use new to allocate program_space.
11181 * inferior.c (add_inferior_with_spaces): Likewise.
11182 (clone_inferior_command): Likewise.
11183 * infrun.c (follow_fork_inferior): Likewise.
11184 (handle_vfork_child_exec_or_exit): Likewise.
11186 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11188 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11189 (delim_string_to_char_ptr_vec): Return std::vector of
11190 gdb::unique_xmalloc_ptr.
11191 (dirnames_to_char_ptr_vec_append): Take std::vector of
11192 gdb::unique_xmalloc_ptr.
11193 (dirnames_to_char_ptr_vec): Return std::vector of
11194 gdb::unique_xmalloc_ptr.
11195 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11196 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11197 (delim_string_to_char_ptr_vec): Return an std::vector of
11198 gdb::unique_xmalloc_ptr, adjust the code.
11199 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11200 gdb::unique_xmalloc_ptr, adjust the code.
11201 (dirnames_to_char_ptr_vec): Return an std::vector of
11202 gdb::unique_xmalloc_ptr, adjust the code.
11203 * auto-load.c (auto_load_safe_path_vec): Change type to
11204 std::vector of gdb::unique_xmalloc_ptr.
11205 (auto_load_expand_dir_vars): Return an std::vector of
11206 gdb::unique_xmalloc_ptr, adjust the code.
11207 (auto_load_safe_path_vec_update): Adjust.
11208 (filename_is_in_auto_load_safe_path_vec): Adjust.
11209 (auto_load_objfile_script_1): Adjust.
11210 * build-id.c (build_id_to_debug_bfd): Adjust.
11211 * linux-thread-db.c (thread_db_load_search): Adjust.
11212 * source.c (add_path): Adjust.
11214 * symfile.c (find_separate_debug_file): Adjust.
11215 * utils.c (do_free_char_ptr_vec): Remove.
11216 (make_cleanup_free_char_ptr_vec): Remove.
11218 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11221 * common/pathstuff.c: Conditionally include "<windows.h>".
11223 2018-03-01 Georg Sauthoff <mail@georg.so>
11226 * gcore.in: Quote variables and switch interpreter to bash.
11228 2018-03-01 Tom Tromey <tom@tromey.com>
11230 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11231 assertion. Add assertion for discriminant_index.
11232 (quirk_rust_enum): Use correct base type name in univariant case.
11234 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11236 * record.c (get_call_history_modifiers): Return a
11237 record_print_flags.
11238 (cmd_record_call_history): Adjust.
11239 * record-btrace.c (record_btrace_call_history): Adjust.
11240 (record_btrace_call_history_range): Adjust.
11241 (record_btrace_call_history_from): Adjust.
11242 * target-debug.h (target_debug_print_record_print_flags): New.
11243 * target-delegates.c: Re-generate.
11244 * target.c (target_call_history): Change flags type.
11245 (target_call_history_from): Likewise.
11246 (target_call_history_range): Likewise.
11247 * target.h (struct target_ops) <target_call_history>: Likewise.
11248 (target_call_history_from): Likewise.
11249 (target_call_history_range): Likewise.
11251 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11252 Simon Marchi <simon.marchi@polymtl.ca>
11254 * common/common-utils.c: Include "sys/stat.h".
11255 (is_regular_file): Move here from "source.c"; change return
11257 * common/common-utils.h (is_regular_file): New prototype.
11258 * common/pathstuff.c (contains_dir_separator): New function.
11259 * common/pathstuff.h (contains_dir_separator): New prototype.
11260 * source.c: Don't include "sys/stat.h".
11261 (is_regular_file): Move to "common/common-utils.c".
11263 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11265 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11266 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11267 * auto-load.c: Include "common/pathstuff.h".
11268 * common/common-def.h (current_directory): Move here.
11269 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11271 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11273 * common/pathstuff.c: New file.
11274 * common/pathstuff.h: New file.
11275 * compile/compile.c: Include "common/pathstuff.h".
11276 * defs.h (current_directory): Move to "common/common-defs.h".
11277 * dwarf2read.c: Include "common/pathstuff.h".
11278 * exec.c: Likewise.
11279 * guile/scm-safe-call.c: Likewise.
11280 * linux-thread-db.c: Likewise.
11281 * main.c: Likewise.
11282 * nto-tdep.c: Likewise.
11283 * objfiles.c: Likewise.
11284 * source.c: Likewise.
11285 * symtab.c: Likewise.
11286 * utils.c: Include "common/pathstuff.h".
11287 (gdb_realpath): Move to "common/pathstuff.c".
11288 (gdb_realpath_keepfile): Likewise.
11289 (gdb_abspath): Likewise.
11290 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11291 (gdb_realpath_keepfile): Likewise.
11292 (gdb_abspath): Likewise.
11294 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11296 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11297 wildcard process pid for super_resume for kernels with a
11300 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11302 * compile/compile.c (get_args): Add additional comments
11303 explaining function.
11305 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11306 Tom Tromey <tom@tromey.com>
11308 * target.h (memory_write_request_s): Remove typedef. Don't define
11310 (target_write_memory_blocks): Change argument to std::vector.
11311 (struct memory_write_request): Add constructor.
11312 * target-memory.c (compare_block_starting_address): Return bool.
11313 Change argument types.
11314 (claim_memory): Change arguments to use std::vector.
11315 (split_regular_and_flash_blocks, blocks_to_erase)
11316 (compute_garbled_blocks): Likewise.
11317 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11318 (target_write_memory_blocks): Change argument to std::vector.
11319 * symfile.c (struct load_section_data): Add constructor and
11320 destructor. Use std::vector for "requests".
11321 (struct load_progress_data): Add initializers.
11322 (load_section_callback): Update. Use "new".
11323 (clear_memory_write_data): Remove.
11324 (generic_load): Update.
11326 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11328 * arch/aarch64.h: Use common/tdesc.h.
11330 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11332 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11333 architecture with a 64-bit ABI.
11335 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11337 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11338 ahead of target description loading.
11340 2018-02-26 Tom Tromey <tom@tromey.com>
11342 * stack.c (backtrace_command_1): Update.
11343 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11345 * python/py-framefilter.c (py_print_frame)
11346 (gdbpy_apply_frame_filter): Change type of "flags".
11347 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11349 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11350 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11351 * extension.h (enum frame_filter_flag): Rename from
11352 frame_filter_flags.
11353 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11354 (apply_ext_lang_frame_filter): Change type of "flags".
11355 * extension.c (apply_ext_lang_frame_filter): Change type of
11357 * extension-priv.h (struct extension_language_ops)
11358 <apply_frame_filter>: Change type of "flags".
11360 2018-02-26 Tom Tromey <tom@tromey.com>
11363 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11364 off-by-one in py_end computation.
11365 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11367 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11370 2018-02-26 Tom Tromey <tom@tromey.com>
11372 * dwarf2read.c (struct variant_field): New.
11373 (struct nextfield) <variant>: New field.
11374 (dwarf2_add_field): Handle DW_TAG_variant_part.
11375 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11376 discriminated union.
11377 (read_structure_type): Handle DW_TAG_variant_part.
11378 (handle_struct_member_die): New function, extracted from
11379 process_structure_scope. Handle DW_TAG_variant.
11380 (process_structure_scope): Handle discriminated unions. Call
11381 handle_struct_member_die.
11383 2018-02-26 Tom Tromey <tom@tromey.com>
11385 * rust-lang.h (rust_last_path_segment): Declare.
11386 * rust-lang.c (rust_last_path_segment): Now public. Change
11388 (struct disr_info): Remove.
11389 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11390 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11391 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11392 (rust_enum_p, rust_enum_variant): New function.
11393 (rust_underscore_fields): Remove "offset" parameter.
11394 (rust_print_enum): New function.
11395 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11396 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11397 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11399 (rust_internal_print_type): New function, from rust_print_type.
11401 (rust_print_type): Call rust_internal_print_type.
11402 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11403 Update enum handling.
11404 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11405 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11406 (rust_union_quirks): New functions.
11407 (process_full_comp_unit, process_full_type_unit): Call
11409 (process_structure_scope): Update rust_unions if necessary.
11411 2018-02-26 Tom Tromey <tom@tromey.com>
11413 * value.h (value_union_variant): Declare.
11414 * valops.c (value_union_variant): New function.
11415 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11416 (struct discriminant_info): New.
11417 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11419 (struct main_type) <flag_discriminated_union>: New field.
11421 2018-02-26 Tom Tromey <tom@tromey.com>
11423 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11424 unittests/unpack-selftests.c.
11425 * unittests/unpack-selftests.c: New file.
11426 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11428 2018-02-26 Yao Qi <yao.qi@linaro.org>
11430 * dwarf2read.c (struct partial_die_info) <read>: New method.
11431 (read_partial_die): Remove the declaration.
11432 (load_partial_dies): Update.
11433 (partial_die_info::partial_die_info):
11434 (read_partial_die): Change it to partial_die_info::read.
11436 2018-02-26 Yao Qi <yao.qi@linaro.org>
11438 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11439 (fixup_partial_die): Remove declaration.
11440 (scan_partial_symbols): Update.
11441 (partial_die_parent_scope): Likewise.
11442 (partial_die_full_name): Likewise.
11443 (fixup_partial_die): Change it to partial_die_info::fixup.
11445 2018-02-26 Yao Qi <yao.qi@linaro.org>
11447 * dwarf2read.c (read_partial_die): Update the declaration.
11448 (load_partial_dies): Caller update.
11449 (read_partial_die): Remove one argument abbrev_len.
11451 2018-02-26 Yao Qi <yao.qi@linaro.org>
11453 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11454 assignment operator.
11455 (load_partial_dies): Use ctor and copy ctor.
11456 (read_partial_die): Update.
11457 (dwarf2_cu::find_partial_die): Use ctor.
11459 2018-02-26 Yao Qi <yao.qi@linaro.org>
11461 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11462 (find_partial_die_in_comp_unit): Change it to
11463 dwarf2_cu::find_partial_die.
11464 (find_partial_die): Update.
11466 2018-02-26 Yao Qi <yao.qi@linaro.org>
11468 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11471 2018-02-26 Yao Qi <yao.qi@linaro.org>
11473 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11475 2018-02-26 Alan Hayward <alan.hayward@arm.com>
11477 * arch/amd64.h: Use common/tdesc.h.
11478 * arch/i386.c: Likewise.
11479 * arch/i386.h: Likewise.
11480 * arch/tic6x.c: Likewise.
11481 * arch/tdesc.h: Move file from here...
11482 * common/tdesc.h: ...to here.
11483 * features/aarch64-core.c: Regenerate.
11484 * features/aarch64-fpu.c: Regenerate.
11485 * features/i386/32bit-avx.c: Regenerate.
11486 * features/i386/32bit-avx512.c: Regenerate.
11487 * features/i386/32bit-core.c: Regenerate.
11488 * features/i386/32bit-linux.c: Regenerate.
11489 * features/i386/32bit-mpx.c: Regenerate.
11490 * features/i386/32bit-pkeys.c: Regenerate.
11491 * features/i386/32bit-sse.c: Regenerate.
11492 * features/i386/64bit-avx.c: Regenerate.
11493 * features/i386/64bit-avx512.c: Regenerate.
11494 * features/i386/64bit-core.c: Regenerate.
11495 * features/i386/64bit-linux.c: Regenerate.
11496 * features/i386/64bit-mpx.c: Regenerate.
11497 * features/i386/64bit-pkeys.c: Regenerate.
11498 * features/i386/64bit-segments.c: Regenerate.
11499 * features/i386/64bit-sse.c: Regenerate.
11500 * features/i386/x32-core.c: Regenerate.
11501 * features/tic6x-c6xp.c: Regenerate.
11502 * features/tic6x-core.c: Regenerate.
11503 * features/tic6x-gp.c: Regenerate.
11504 * target-descriptions.c: Use common/tdesc.h.
11505 * target-descriptions.h: Likewise.
11507 2018-02-24 Tom Tromey <tom@tromey.com>
11509 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11510 (try_thread_db_load_from_dir, thread_db_load_search): Use
11512 (info_auto_load_libthread_db_compare): Return bool. Change
11514 (info_auto_load_libthread_db): Use std::vector, std::string.
11517 2018-02-24 Tom Tromey <tom@tromey.com>
11519 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11521 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11523 * gdbarch.c: Rebuild.
11524 * gdbarch.h: Rebuild.
11525 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11526 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11527 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11530 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11532 * gdbtypes.h (sect_offset): Change type to uint64_t.
11533 (sect_offset_str): New function.
11534 * dwarf2read.c (create_addrmap_from_aranges): Use
11536 (error_check_comp_unit_head): Likewise.
11537 (create_debug_type_hash_table): Likewise.
11538 (read_cutu_die_from_dwo): Likewise.
11539 (init_cutu_and_read_dies): Likewise.
11540 (init_cutu_and_read_dies_no_follow): Likewise.
11541 (process_psymtab_comp_unit_reader): Likewise.
11542 (partial_die_parent_scope): Likewise.
11543 (peek_die_abbrev): Likewise.
11544 (process_queue): Likewise.
11545 (dwarf2_physname): Likewise.
11546 (read_namespace_alias): Likewise.
11547 (read_import_statement): Likewise.
11548 (create_dwo_cu_reader): Likewise.
11549 (create_cus_hash_table): Likewise.
11550 (lookup_dwo_cutu): Likewise.
11551 (inherit_abstract_dies): Likewise.
11552 (read_func_scope): Likewise.
11553 (read_call_site_scope): Likewise.
11554 (dwarf2_add_member_fn): Likewise.
11555 (read_common_block): Likewise.
11556 (read_module_type): Likewise.
11557 (read_typedef): Likewise.
11558 (read_subrange_type): Likewise.
11559 (load_partial_dies): Likewise.
11560 (read_partial_die): Likewise.
11561 (find_partial_die): Likewise.
11562 (read_str_index): Likewise.
11563 (dwarf2_string_attr): Likewise.
11564 (build_error_marker_type): Likewise.
11565 (lookup_die_type): Likewise.
11566 (dump_die_shallow): Likewise.
11567 (follow_die_ref): Likewise.
11568 (dwarf2_fetch_die_loc_sect_off): Likewise.
11569 (dwarf2_fetch_constant_bytes): Likewise.
11570 (follow_die_sig): Likewise.
11571 (get_signatured_type): Likewise.
11572 (get_DW_AT_signature_type): Likewise.
11573 (dwarf2_find_containing_comp_unit): Likewise.
11574 (set_die_type): Likewise.
11576 2018-02-21 John Baldwin <jhb@FreeBSD.org>
11578 * arch/aarch64.c: Include "common-defs.h".
11579 * arch/amd64.c: Likewise.
11580 * arch/i386.c: Likewise.
11582 2018-02-21 Tom Tromey <tom@tromey.com>
11584 * value.h: (extract_field_op): Update.
11585 * eval.c (extract_field_op): Return a const char *.
11586 * expression.h (parse_expression_for_completion): Update.
11587 * completer.c (complete_expression): Update.
11588 (add_struct_fields): Make fieldname const.
11589 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11590 (mark_completion_tag, parse_exp_in_context_1): Update.
11591 (parse_expression_for_completion): Change "name" to
11592 unique_xmalloc_ptr*.
11594 2018-02-21 Tom Tromey <tom@tromey.com>
11596 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11598 2018-02-21 Yao Qi <yao.qi@linaro.org>
11600 * avr-tdep.c (avr_read_pc): Change parameter type to
11602 * gdbarch.sh (read_pc): Likewise.
11603 * gdbarch.c: Re-generated.
11604 * gdbarch.h: Re-generated.
11605 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11607 * ia64-tdep.c (ia64_read_pc): Likewise.
11608 * mips-tdep.c (mips_read_pc): Likewise.
11609 * spu-tdep.c (spu_read_pc): Likewise.
11611 2018-02-21 Yao Qi <yao.qi@linaro.org>
11613 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11614 * regcache-dump.c: New file.
11615 * regcache.c: Move register_dump to regcache-dump.c.
11616 (maintenance_print_registers): Likewise.
11617 (maintenance_print_raw_registers): Likewise.
11618 (maintenance_print_cooked_registers): Likewise.
11619 (maintenance_print_register_groups): Likewise.
11620 (maintenance_print_remote_registers): Likewise.
11621 (_initialize_regcache): Likewise.
11622 * regcache.h (register_dump): Moved from regcache.c.
11624 2018-02-21 Yao Qi <yao.qi@linaro.org>
11626 * regcache.c (regcache::regcache): Update.
11627 (regcache::invalidate): Move it to detached_regcache::invalidate.
11628 (get_thread_arch_aspace_regcache): Update.
11629 (regcache::raw_update): Update.
11630 (regcache::cooked_read): Remove some code.
11631 (regcache::cooked_read_value): Likewise.
11632 (regcache::raw_write): Remove assert on m_readonly_p.
11633 (regcache::raw_supply_integer): Move it to
11634 detached_regcache::raw_supply_integer.
11635 (regcache::raw_supply_zeroed): Likewise.
11636 * regcache.h (detached_regcache) <raw_supply_integer>: New
11638 <raw_supply_zeroed, invalidate>: Likewise.
11639 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11640 <invalidate>: Likewise.
11641 <m_readonly_p>: Removed.
11643 2018-02-21 Yao Qi <yao.qi@linaro.org>
11645 * infcmd.c (get_return_value): Let stop_regs point to
11646 get_current_regcache.
11647 * regcache.c (regcache::regcache): Remove.
11648 (register_dump_reg_buffer): New class.
11649 (regcache_print): Adjust.
11650 * regcache.h (regcache): Remove constructors.
11652 2018-02-21 Yao Qi <yao.qi@linaro.org>
11654 * regcache.c (class register_dump): New class.
11655 (register_dump_regcache, register_dump_none): New class.
11656 (register_dump_remote, register_dump_groups): New class.
11657 (regcache_print): Update.
11658 * regcache.h (regcache_dump_what): Move it to regcache.c.
11659 (regcache) <dump>: Remove.
11661 2018-02-21 Yao Qi <yao.qi@linaro.org>
11663 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11665 (jit_unwind_reg_set_impl): Call raw_supply.
11666 (jit_frame_sniffer): Use reg_buffer_rw.
11667 * record-full.c (record_full_core_regbuf): Change its type.
11668 (record_full_core_open_1): Use reg_buffer_rw.
11669 (record_full_close): Likewise.
11670 (record_full_core_fetch_registers): Use regcache->raw_supply.
11671 (record_full_core_store_registers): Likewise.
11672 * regcache.c (regcache::get_register_status): Move it to
11674 (regcache_raw_set_cached_value): Remove.
11675 (regcache::raw_set_cached_value): Remove.
11676 (regcache::raw_write): Call raw_supply.
11677 (regcache::raw_supply): Move it to reg_buffer_rw.
11678 * regcache.h (regcache_raw_set_cached_value): Remove.
11679 (reg_buffer_rw): New class.
11681 2018-02-21 Yao Qi <yao.qi@linaro.org>
11683 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11684 readonly_detached_regcache.
11685 (dummy_frame_prev_register): Use regcache->cooked_read.
11686 * frame.c (frame_save_as_regcache): Change return type.
11687 (frame_pop): Update.
11688 * frame.h (frame_save_as_regcache): Update declaration.
11689 * inferior.h (get_infcall_suspend_state_regcache): Update
11691 * infrun.c (infcall_suspend_state) <registers>: use
11692 readonly_detached_regcache.
11693 (save_infcall_suspend_state): Don't use regcache_dup.
11694 (get_infcall_suspend_state_regcache): Change return type.
11695 * linux-fork.c (struct fork_info) <savedregs>: Change to
11696 readonly_detached_regcache.
11698 (fork_save_infrun_state): Don't use regcache_dup.
11699 (info_checkpoints_command): Adjust.
11700 * mi/mi-main.c (register_changed_p): Update declaration.
11701 (mi_cmd_data_list_changed_registers): Use
11702 readonly_detached_regcache.
11703 (register_changed_p): Change parameter type to
11704 readonly_detached_regcache.
11705 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11706 readonly_detached_regcache.
11707 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11708 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11710 (regcache::save): Move it to reg_buffer.
11711 (regcache::restore): Change parameter type.
11712 (regcache_dup): Remove.
11713 * regcache.h (reg_buffer) <save>: New method.
11714 (readonly_detached_regcache): New class.
11715 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11716 readonly_detached_regcache.
11717 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11719 2018-02-21 Yao Qi <yao.qi@linaro.org>
11721 * frame.c (frame_save_as_regcache): Use regcache method save.
11722 (frame_pop): Use regcache method restore.
11723 * infrun.c (restore_infcall_suspend_state): Likewise.
11724 * linux-fork.c (fork_load_infrun_state): Likewise.
11725 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11727 * regcache.c (regcache_save): Remove.
11728 (regcache::restore): More asserts.
11729 (regcache_cpy): Remove.
11730 * regcache.h (regcache_save): Remove the declaration.
11731 (regcache::restore): Move from private to public.
11732 Remove the friend declaration of regcache_cpy.
11733 (regcache_cpy): Remove declaration.
11735 2018-02-21 Yao Qi <yao.qi@linaro.org>
11737 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11738 parameter type to 'readable_regcache *'.
11739 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11740 * arm-tdep.c (arm_neon_quad_read): Likewise.
11741 (arm_pseudo_read): Likewise.
11742 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11743 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11744 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11745 * gdbarch.c: Re-generated.
11746 * gdbarch.h: Re-generated.
11747 * gdbarch.sh (pseudo_register_read): Change parameter type to
11748 'readable_regcache *'.
11749 (pseudo_register_read_value): Likewise.
11750 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11751 (h8300_pseudo_register_read): Likewise.
11752 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11753 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11754 (i386_pseudo_register_read_into_value): Likewise.
11755 (i386_pseudo_register_read_value): Likewise.
11756 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11758 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11759 * m32c-tdep.c (m32c_raw_read): Likewise.
11760 (m32c_read_flg): Likewise.
11761 (m32c_banked_register): Likewise.
11762 (m32c_banked_read): Likewise.
11763 (m32c_sb_read): Likewise.
11764 (m32c_part_read): Likewise.
11765 (m32c_cat_read): Likewise.
11766 (m32c_r3r2r1r0_read): Likewise.
11767 (m32c_pseudo_register_read): Likewise.
11768 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11769 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11770 (mep_pseudo_cr64_read): Likewise.
11771 (mep_pseudo_register_read): Likewise.
11772 * mips-tdep.c (mips_pseudo_register_read): Likewise.
11773 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11774 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11775 * regcache.c (regcache::raw_read): Move it to readable_regcache.
11776 (regcache::cooked_read): Likewise.
11777 (regcache::cooked_read_value): Likewise.
11778 (regcache_cooked_read_signed):
11779 (regcache::cooked_read): Likewise.
11780 * regcache.h (readable_regcache): New class.
11781 (regcache): Inherit readable_regcache. Move some methods to
11783 * rl78-tdep.c (rl78_pseudo_register_read): Change
11784 parameter type to 'readable_regcache *'.
11785 * rs6000-tdep.c (do_regcache_raw_read): Remove.
11786 (e500_pseudo_register_read): Change parameter type to
11787 'readable_regcache *'.
11788 (dfp_pseudo_register_read): Likewise.
11789 (vsx_pseudo_register_read): Likewise.
11790 (efpr_pseudo_register_read): Likewise.
11791 * s390-tdep.c (s390_pseudo_register_read): Likewise.
11792 * sh-tdep.c (sh_pseudo_register_read): Likewise.
11793 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
11794 (sh64_pseudo_register_read): Likewise.
11795 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11796 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11797 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11798 (spu_pseudo_register_read): Likewise.
11799 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11800 (xtensa_pseudo_register_read): Likewise.
11802 2018-02-21 Yao Qi <yao.qi@linaro.org>
11804 * regcache.c (regcache::regcache): Call reg_buffer ctor.
11805 (regcache::arch): Move it to reg_buffer::arch.
11806 (regcache::register_buffer): Likewise.
11807 (regcache::assert_regnum): Likewise.
11808 (regcache::num_raw_registers): Likewise.
11809 * regcache.h (reg_buffer): New class.
11810 (regcache): Inherit reg_buffer.
11812 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
11814 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
11815 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
11817 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
11819 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
11821 2018-02-19 Alan Hayward <alan.hayward@arm.com>
11823 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
11824 (SFILES): Remove common/*.c files.
11825 (COMMON_OBS): Remove some *.o files built from common/*.c files.
11826 * common/common.host: Add common reference.
11827 * configure.ac: Likewise.
11828 * configure: Regenerate.
11830 2018-02-16 Yao Qi <yao.qi@linaro.org>
11832 * block.c (block_namespace_info): Inherit allocate_on_obstack.
11833 (block_initialize_namespace): Use new.
11834 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
11835 (dwarf2_free_objfile): Use delete.
11836 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11837 (copy_type_recursive): Use new.
11838 * gdb_obstack.h (allocate_on_obstack): New.
11840 2018-02-15 Yao Qi <yao.qi@linaro.org>
11843 * inferior.c (exit_inferior_1): Reset inf->control.
11845 2018-02-15 Joel Brobecker <brobecker@adacore.com>
11847 * ada-lang.c (ada_to_fixed_value_create): Delete advance
11850 2018-02-14 Pedro Alves <palves@redhat.com>
11852 * frame-unwind.c (frame_unwind_try_unwinder): Always call
11853 frame_cleanup_after_sniffer on exception.
11855 2018-02-14 Tom Tromey <tom@tromey.com>
11857 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
11859 (solib_bfd_open): Make pathname const.
11860 * solib.c (solib_bfd_open): Make pathname const.
11861 * solib-spu.c (spu_bfd_fopen): Make name const.
11862 (spu_bfd_open): Make pathname const.
11863 * solib-darwin.c (darwin_bfd_open): Make pathname const.
11864 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
11866 2018-02-14 Tom Tromey <tom@tromey.com>
11868 * symfile.c (symfile_bfd_open): Update.
11869 * source.h (openp, source_full_path_of, find_and_open_source):
11870 Change argument type to unique_xmalloc_ptr.
11871 * source.c (openp): Take a unique_xmalloc_ptr.
11872 (source_full_path_of, find_and_open_source): Likewise.
11873 (open_source_file, symtab_to_fullname): Update.
11874 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
11875 unique_xmalloc_ptr.
11876 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
11877 (exec_file_find): Update.
11878 * psymtab.c (psymtab_to_fullname): Update.
11879 * nto-tdep.h (nto_find_and_open_solib): Update.
11880 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
11881 unique_xmalloc_ptr.
11882 * exec.c (exec_file_attach): Update.
11883 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
11884 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
11886 2018-02-14 Tom Tromey <tom@tromey.com>
11888 * solib.c: Include source.h.
11889 * nto-tdep.c: Include source.h.
11890 * mi/mi-cmd-env.c: Include source.h.
11891 * infcmd.c: Include source.h.
11892 * exec.c: Include source.h.
11893 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
11894 (add_path, directory_switch, source_path, init_source_path): Move
11896 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
11897 (add_path, directory_switch, source_path, init_source_path):
11900 2018-02-14 Tom Tromey <tom@tromey.com>
11902 * solist.h (exec_file_find, solib_find): Return
11903 unique_xmalloc_ptr.
11904 (solib_bfd_fopen): Take a const char *.
11905 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
11906 (exec_file_find, solib_find): Likewise.
11907 (solib_bfd_fopen): Do not take ownership of "pathname".
11908 (solib_bfd_open): Use unique_xmalloc_ptr.
11909 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
11910 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
11911 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
11912 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
11914 2018-02-14 Joel Brobecker <brobecker@adacore.com>
11916 * ada-lang.c (name_match_type_from_name): Remove reference to
11917 ada_name_for_lookup in function's documentation.
11918 * ada-lang.h (ada_name_for_lookup): Delete declaration.
11920 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11922 * defs.h (enum openp_flags): New enum.
11923 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
11924 Move to enum openp_flags.
11925 (openp_flags): New enum flags.
11926 (openp): Change parameter type to openp_flags.
11927 * source.c (openp): Change parameter type to openp_flags.
11928 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
11929 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
11931 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11933 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
11936 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
11938 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
11940 (class dwarf2_queue_guard): ...the destructor of this new class.
11941 (dw2_do_instantiate_symtab): Create instance of the new class
11942 dwarf2_queue_guard, remove cleanup.
11944 2018-02-09 Tom Tromey <tom@tromey.com>
11946 * source.c (find_source_lines): Don't reference past the end of
11949 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11951 * remote.c (remote_btrace_maybe_reopen): Change error message.
11952 * btrace.c (btrace_enable): Likewise.
11953 (parse_xml_btrace): Likewise.
11954 (parse_xml_btrace_conf): Likewise.
11956 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11958 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
11959 (linux_enable_pt, linux_enable_bts): Call
11960 diagnose_perf_event_open_fail.
11962 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11964 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
11965 Remove parameter and change return type. Update callers. Move it.
11966 (linux_enable_bts, linux_enable_pt): Improve error message.
11967 (linux_enable_pt): Remove zero buffer size check.
11968 (linux_enable_btrace): Improve error messages. Remove NULL return
11971 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11973 * btrace.c (btrace_enable): Remove target_supports_btrace call.
11974 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
11975 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
11976 (linux_supports_pt, linux_supports_btrace): Remove.
11977 (linux_enable_bts): Call cpu_supports_bts.
11978 * nat/linux-btrace.h (linux_supports_btrace): Remove.
11979 * remote.c (remote_supports_btrace): Remove.
11980 (init_remote_ops): Remove remote_supports_btrace.
11981 * target-delegates.c: Regenerated.
11982 * target.c (target_supports_btrace): Remove.
11983 * target.h (target_ops) <to_supports_btrace>: Remove
11984 (target_supports_btrace): Remove.
11985 * x86-linux-nat.c (x86_linux_create_target): Remove
11986 linux_supports_btrace.
11988 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11990 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
11992 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
11993 exception and use message in own exception.
11995 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11997 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
11998 (perf_event_pt_event_type): Use gdb_file_up.
11999 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12000 scoped_fd, and scoped_mmap.
12002 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12004 * common/scoped_mmap.h: New.
12005 * unittests/scoped_mmap-selftest.c: New.
12006 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12007 unittests/scoped_mmap-selftest.c.
12009 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12011 * common/scoped_fd.h: New.
12012 * unittests/scoped_fd-selftest.c: New.
12013 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12014 unittests/scoped_fd-selftest.c.
12016 2018-02-09 Tom Tromey <tom@tromey.com>
12018 * auto-load.c (auto_load_section_scripts): Use
12019 gdb::unique_xmalloc_ptr.
12021 2018-02-09 Tom Tromey <tom@tromey.com>
12023 * auto-load.c (execute_script_contents): Use std::string.
12025 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12027 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12028 Python function, rather than a new command.
12030 2018-02-08 Tom Tromey <tom@tromey.com>
12032 * solib.c (solib_find_1): Use std::string.
12033 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12035 2018-02-08 Tom Tromey <tom@tromey.com>
12037 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12039 2018-02-08 Tom Tromey <tom@tromey.com>
12041 * source.c (find_source_lines): Use gdb::def_vector.
12043 2018-02-08 Tom Tromey <tom@tromey.com>
12045 * macrocmd.c (struct temporary_macro_definition): New.
12046 (macro_define_command): Use temporary_macro_definition. Remove
12048 (free_macro_definition_ptr): Remove.
12050 2018-02-08 Tom Tromey <tom@tromey.com>
12052 * macroexp.c (maybe_expand): Use std::string.
12054 2018-02-08 Tom Tromey <tom@tromey.com>
12056 * macroexp.c (struct macro_buffer): Add initializers for some
12058 (init_buffer, init_shared_buffer, free_buffer)
12059 (free_buffer_return_text): Remove.
12060 (macro_buffer): New constructors.
12061 (~macro_buffer): New destructor.
12062 (macro_buffer::set_shared): New method.
12063 (macro_buffer::resize_buffer, macro_buffer::appendc)
12064 (macro_buffer::appendmem): Now methods, not free functions.
12065 (set_token, append_tokens_without_splicing, stringify)
12066 (macro_stringify): Update.
12067 (gather_arguments): Change return type. Remove argc_p argument,
12068 add args_ptr argument. Use std::vector.
12069 (substitute_args): Remove argc argument. Accept std::vector.
12070 (expand): Update. Use std::vector.
12071 (scan, macro_expand, macro_expand_next): Update.
12073 2018-02-08 Tom Tromey <tom@tromey.com>
12075 * symtab.c (default_collect_symbol_completion_matches_break_on):
12076 Use unique_xmalloc_ptr.
12077 * macroscope.h: (sal_macro_scope, user_macro_scope)
12078 (default_macro_scope): Return unique_xmalloc_ptr.
12079 * macroscope.c (sal_macro_scope, user_macro_scope)
12080 (default_macro_scope): Return unique_xmalloc_ptr.
12081 * macroexp.h (macro_expand, macro_expand_once): Return
12082 unique_xmalloc_ptr.
12083 * macroexp.c (macro_expand, macro_expand_once): Return
12084 unique_xmalloc_ptr.
12085 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12086 (info_macro_command, info_macros_command): Use
12087 unique_xmalloc_ptr.
12088 * compile/compile-c-support.c (write_macro_definitions): Use
12089 unique_xmalloc_ptr.
12090 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12092 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12094 * value.c (value_static_field): Assign field type instead of
12095 containing type when returning an optimized out value.
12097 2018-02-06 Yao Qi <yao.qi@linaro.org>
12099 * ft32-tdep.c (ft32_read_pc): Remove.
12100 (ft32_write_pc): Remove.
12101 (ft32_gdbarch_init): Update.
12102 * m32r-tdep.c (m32r_read_pc): Remove.
12103 (m32r_gdbarch_init): Update.
12104 * mep-tdep.c (mep_read_pc): Remove.
12105 (mep_gdbarch_init): Update.
12106 * microblaze-tdep.c (microblaze_write_pc): Remove.
12107 (microblaze_gdbarch_init): Update.
12108 * mn10300-tdep.c (mn10300_read_pc): Remove.
12109 (mn10300_write_pc): Remove.
12110 (mn10300_gdbarch_init): Update.
12111 * moxie-tdep.c (moxie_read_pc): Remove.
12112 (moxie_write_pc): Remove.
12113 (moxie_gdbarch_init): Update.
12115 2018-02-06 Yao Qi <yao.qi@linaro.org>
12117 * expprint.c (print_subexp_standard): Handle
12118 OP_F77_UNDETERMINED_ARGLIST.
12119 (dump_subexp_body_standard): Likewise.
12121 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12123 * target-descriptions.c (tdesc_element_visitor) Add empty
12125 (tdesc_type): Move make_gdb_type from here.
12126 (tdesc_type_builtin): Likewise.
12127 (tdesc_type_vector): Likewise.
12128 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12129 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12130 (make_gdb_type_union): Likewise.
12131 (make_gdb_type_flags): Likewise.
12132 (make_gdb_type_enum): Likewise.
12133 (make_gdb_type): New function.
12134 (tdesc_register_type): Use static make_gdb_type.
12136 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12138 * infcmd.c (default_print_one_register_info): Align natural-format
12139 column values consistently one under another.
12140 (pad_to_column): New function.
12142 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12144 * dwarf2read.c (dwarf2_physname): Move commment.
12146 2018-02-01 Leszek Swirski <leszeks@google.com>
12148 * varobj.c (varobj_formatted_print_options): Allow recursive
12149 pretty printing if pretty printing is enabled.
12151 2018-02-01 Leszek Swirski <leszeks@google.com>
12153 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12154 names after a structop as a filename.
12156 2018-02-01 Yao Qi <yao.qi@linaro.org>
12158 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12159 (arm_record_coproc_data_proc): Likewise.
12161 2018-02-01 Yao Qi <yao.qi@linaro.org>
12163 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12165 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12167 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12168 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12170 2018-01-31 Pedro Alves <palves@redhat.com>
12172 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12173 * inflow.c (child_terminal_save_inferior): Wrap reference to
12174 tcgetpgrp in HAVE_TERMIOS_H.
12175 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12177 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12178 always iterate over all inferiors.
12179 (gdbsim_cntrl_c): Adjust.
12180 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12182 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12184 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12185 index type is objfile-owned if the element type is as well.
12187 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12191 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12193 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12194 "features/s390x-linux64.c".
12195 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12196 s390_linux32 and s390x_linux64.
12197 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12199 * s390-tdep.c: Include "features/s390-linux32.c" and
12200 "features/s390x-linux64.c".
12201 (s390_tdesc_valid): Add check for tdesc_has_registers.
12202 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12203 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12204 tdesc_s390x_linux64.
12205 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12206 tdesc_s390x_linux64 to...
12207 * s390-tdep.h: ...here.
12209 2018-01-30 Pedro Alves <palves@redhat.com>
12212 * config.in, configure: Regenerate.
12213 * configure.ac: Check for getpgid.
12214 * go32-nat.c (go32_pass_ctrlc): New.
12215 (go32_target): Install it.
12216 * inf-child.c (inf_child_target): Install
12217 child_terminal_save_inferior, child_pass_ctrlc and
12219 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12220 (inf_ptrace_target): No longer install it.
12221 * infcmd.c (interrupt_target_1): Adjust.
12222 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12223 (child_interrupt): Declare.
12224 (inferior::terminal_state): New.
12225 * inflow.c (struct terminal_info): Update comments.
12226 (inferior_process_group): Delete.
12227 (terminal_is_ours): Delete.
12228 (gdb_tty_state): New.
12229 (child_terminal_init): Adjust.
12230 (is_gdb_terminal, sharing_input_terminal_1)
12231 (sharing_input_terminal): New functions.
12232 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12233 Set the process's actual process group in the foreground if
12234 possible. Handle is_ours_for_output/is_ours distinction. Don't
12235 mark terminal as the inferior's if not sharing GDB's terminal.
12236 Don't check attach_flag.
12237 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12238 pass down a target_terminal_state.
12239 (child_terminal_save_inferior): New, factored out from ...
12240 (child_terminal_ours_1): ... this. Handle
12241 target_terminal_state::is_ours_for_output.
12242 (child_interrupt, child_pass_ctrlc): New.
12243 (inflow_inferior_exit): Clear the inferior's terminal_state.
12244 (copy_terminal_info): Copy the inferior's terminal state.
12245 (_initialize_inflow): Remove reference to terminal_is_ours.
12246 * inflow.h (inferior_process_group): Delete.
12247 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12248 * procfs.c (procfs_target): Don't install procfs_interrupt.
12249 (procfs_interrupt): Delete.
12250 * remote.c (remote_serial_quit_handler): Adjust.
12251 (remote_interrupt): Remove ptid parameter. Adjust.
12252 * target-delegates.c: Regenerate.
12253 * target.c: Include "terminal.h".
12254 (target_terminal::terminal_state): Rename to ...
12255 (target_terminal::m_terminal_state): ... this.
12256 (target_terminal::init): Adjust.
12257 (target_terminal::inferior): Adjust to per-inferior
12259 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12260 (target_terminal::ours, target_terminal::ours_for_output): Use
12261 target_terminal_is_ours_kind.
12262 (target_interrupt): Remove ptid parameter. Adjust.
12263 (default_target_pass_ctrlc): Adjust.
12264 * target.h (target_ops::to_terminal_save_inferior): New field.
12265 (target_ops::to_interrupt): Remove ptid_t parameter.
12266 (target_interrupt): Remove ptid_t parameter. Update comment.
12267 (target_pass_ctrlc): Update comment.
12268 * target/target.h (target_terminal_state): New scoped enum,
12269 factored out of ...
12270 (target_terminal::terminal_state): ... here.
12271 (target_terminal::inferior): Update comments.
12272 (target_terminal::restore_inferior): New.
12273 (target_terminal::is_inferior, target_terminal::is_ours)
12274 (target_terminal::is_ours_for_output): Adjust.
12275 (target_terminal::scoped_restore_terminal_state): Adjust to
12276 rename, and call restore_inferior() instead of inferior().
12277 (target_terminal::scoped_restore_terminal_state::m_state): Change
12279 (target_terminal::terminal_state): Rename to ...
12280 (target_terminal::m_terminal_state): ... this and change type.
12282 2018-01-30 Pedro Alves <palves@redhat.com>
12284 * linux-nat.c (wait_for_signal): New function.
12285 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12287 (async_terminal_is_ours)
12288 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12289 (linux_nat_add_target): Don't override
12290 to_terminal_inferior/to_terminal_ours.
12292 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12294 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12296 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12298 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12299 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12300 dwarf2_per_objfile_free here.
12301 (dwarf2_per_objfile_free): Remove.
12302 (_initialize_dwarf2_read): Don't register
12303 dwarf2_per_objfile_free as a registry cleanup.
12305 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12307 Avoid compilation errors in MinGW native builds
12309 The error is triggered by including python-internal.h, and the
12312 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12313 from build-gnulib/import/math.h:27,
12314 from d:/usr/Python26/include/pyport.h:235,
12315 from d:/usr/Python26/include/Python.h:58,
12316 from python/python-internal.h:94,
12317 from python/py-arch.c:24:
12318 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12322 This happens because Python headers define 'hypot' to expand t
12323 '_hypot' in the Windows builds.
12324 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12325 'hypoth'. This avoids a compilation error.
12327 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12329 * MAINTAINERS (Write After Approval): Fix ordering.
12331 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12333 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12335 2018-01-26 Alan Modra <amodra@gmail.com>
12337 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12338 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12339 Remove nop. Make const. Comment.
12340 (powerpc32_plt_stub_so_2): New.
12341 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12342 Correct count. Update uses.
12343 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12344 Move common code reading PLT entry word. Correct
12345 powerpc32_plt_stub PLT address calculation.
12346 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12347 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12348 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12349 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12350 (ppc64_standard_linkage8): Likewise.
12351 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12352 Correct insns description.
12353 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12355 2018-01-24 Pedro Alves <palves@redhat.com>
12357 GCC PR libstdc++/83906
12358 * gdbtypes.c (operator==(const dynamic_prop &,
12359 const dynamic_prop &)): New.
12360 (operator==(const range_bounds &, const range_bounds &)): New.
12361 (check_types_equal): Use them instead of memcmp.
12362 * gdbtypes.h (operator==(const dynamic_prop &,
12363 const dynamic_prop &)): Declare.
12364 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12365 (operator==(const range_bounds &, const range_bounds &)): Declare.
12366 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12368 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12370 * s390-linux-tdep.c (s390_record_address_mask)
12371 (s390_record_calc_disp_common, s390_record_calc_disp)
12372 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12373 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12374 (s390_process_record): Move to s390-tdep.c.
12375 (s390_linux_init_abi_any): Adjust.
12376 * s390-tdep.c (s390_record_address_mask)
12377 (s390_record_calc_disp_common, s390_record_calc_disp)
12378 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12379 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12380 (s390_process_record): Moved from s390-linux-tdep.c
12381 (s390_gdbarch_init): Adjust.
12383 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12385 * s390-linux-nat.c (s390-tdep.h): New include.
12386 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12387 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12388 (ALLDEPFILES): Add s390-tdep.c.
12389 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12390 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12391 * s390-tdep.h: ...this. New file.
12392 * s390-linux-tdep.c (s390-tdep.h): New include.
12393 (_initialize_s390_tdep): Rename to...
12394 (_initialize_s390_linux_tdep): ...this and adjust.
12395 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12396 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12398 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12399 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12400 (s390_is_partial_instruction, s390_software_single_step)
12401 (is_non_branch_ril, s390_displaced_step_copy_insn)
12402 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12403 (s390_prologue_data, s390_addr, s390_store, s390_load)
12404 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12405 (s390_register_call_saved, s390_guess_tracepoint_registers)
12406 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12407 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12408 (s390_pseudo_register_name, s390_pseudo_register_type)
12409 (s390_pseudo_register_read, s390_pseudo_register_write)
12410 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12411 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12412 (s390_addr_bits_remove, s390_address_class_type_flags)
12413 (s390_address_class_type_flags_to_name)
12414 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12415 (s390_function_arg_float, s390_function_arg_vector)
12416 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12417 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12418 (s390_frame_align, s390_register_return_value, s390_return_value)
12419 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12420 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12421 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12422 (s390_trad_frame_prev_register, s390_unwind_cache)
12423 (s390_prologue_frame_unwind_cache)
12424 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12425 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12426 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12427 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12428 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12429 (s390_frame_base_address, s390_local_base_address)
12430 (s390_frame_base, s390_gcc_target_options)
12431 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12432 (s390_validate_reg_range, s390_tdesc_valid)
12433 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12434 * s390-tdep.c: ...this. New file.
12436 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12438 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12439 (s390_process_record, s390_gdbarch_tdep_alloc)
12440 (s390_linux_init_abi_any): Use/set new hook.
12442 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12444 * s390-linux-tdep.c (osabi.h): New include.
12445 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12446 (s390_linux_init_abi_any): New functions.
12447 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12449 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12451 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12452 tdesc_has_registers check
12454 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12456 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12457 (s390_validate_reg_range): New macro.
12458 (s390_gdbarch_init): Adjust.
12460 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12462 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12463 (s390_gdbarch_tdep_alloc): Adjust.
12464 (s390_gdbarch_init): Adjust.
12466 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12468 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12469 <have_tdb>: Change type to bool.
12470 (s390_gdbarch_tdep_alloc): Adjust.
12471 (s390_gdbarch_init): Adjust.
12473 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12475 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12476 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12477 (s390_gdbarch_tdep_alloc): New function.
12478 (s390_gdbarch_init): Allocate tdep at start and use its fields
12479 instead of separate variables.
12481 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12483 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12484 when looking for cached gdbarch and add comment for remaining.
12486 2018-01-22 Pedro Alves <palves@redhat.com>
12487 Sergio Durigan Junior <sergiodj@redhat.com>
12489 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12492 2018-01-22 Maciej W. Rozycki <macro@mips.com>
12494 * MAINTAINERS: Update my company e-mail address.
12496 2018-01-22 Yao Qi <yao.qi@linaro.org>
12498 * regcache.c (cooked_write_test): New function.
12499 (_initialize_regcache): Register the test.
12501 2018-01-22 Yao Qi <yao.qi@linaro.org>
12503 * ia64-tdep.c (ia64_pseudo_register_read): Call
12504 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12505 * m32c-tdep.c (m32c_cat_read): Likewise.
12506 (m32c_r3r2r1r0_read): Likewise.
12507 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12508 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12510 2018-01-22 Yao Qi <yao.qi@linaro.org>
12512 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12513 method raw_read instead of regcache_raw_read.
12514 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12515 * arm-tdep.c (arm_neon_quad_read): Likewise.
12516 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12517 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12518 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12519 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12520 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12521 (i386_pseudo_register_read_into_value): Likewise.
12522 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12523 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12524 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12525 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12526 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12527 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12528 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12529 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12530 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12532 2018-01-22 Yao Qi <yao.qi@linaro.org>
12534 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12535 * configure.tgt: Remove target mt.
12536 * mt-tdep.c: Remove.
12537 * regcache.c (cooked_read_test): Remove the check for mt.
12539 2018-01-22 Yao Qi <yao.qi@linaro.org>
12541 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12542 instead of gdbarch_pseudo_register_read_value.
12544 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12546 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12549 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12551 * linespec.c (create_sals_line_offset): Remove code that preserved
12552 the symtab_and_line's line number.
12554 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12556 * varobj.c (varobj_create): Don't set valid_block when creating a
12559 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12561 * varobj.c (varobj_create): Remove out of date comment.
12563 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12566 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12567 updating innermost block.
12568 * parse.c (innermost_block_tracker::update): Take extra type
12569 parameter, and check types match before updating innermost block.
12570 (write_dollar_variable): Update innermost block for registers.
12571 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12572 (innermost_block_tracker::innermost_block_tracker): Initialise
12574 (innermost_block_tracker::reset): Take type parameter.
12575 (innermost_block_tracker::update): Take type parameter, and pass
12576 type through as needed.
12577 (innermost_block_tracker::m_types): New member.
12578 * varobj.c (varobj_create): Pass type when reseting innermost
12581 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12583 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12584 * ada-lang.c (resolve_subexp): Likewise.
12585 * breakpoint.c (set_breakpoint_condition) Likewise.
12586 (watch_command_1) Likewise.
12587 * c-exp.y (variable): Likewise.
12588 * d-exp.y (PrimaryExpression): Likewise.
12589 * f-exp.y (variable): Likewise.
12590 * go-exp.y (variable): Likewise.
12591 * m2-exp.y (variable): Likewise.
12592 * objfiles.c (objfile::~objfile): Likewise.
12593 * p-exp.y (variable): Likewise.
12594 * parse.c (innermost_block): Change type.
12595 * parser-defs.h (class innermost_block_tracker): New.
12596 (innermost_block): Change to innermost_block_tracker.
12597 * printcmd.c (display_command): Switch to innermost_block API.
12598 (do_one_display): Likewise.
12599 * rust-exp.y (do_one_display): Likewise.
12600 * symfile.c (clear_symtab_users): Likewise.
12601 * varobj.c (varobj_create): Switch to innermost_block API, replace
12602 use of innermost_block with block stored on varobj object.
12604 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12606 * expression.h (innermost_block): Remove declaration.
12607 * varobj.c: Add 'parser-defs.h' include.
12609 2018-01-19 Tom Tromey <tom@tromey.com>
12611 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12612 symbols in the static and global blocks.
12614 2018-01-19 James Clarke <jrtc27@jrtc27.com>
12616 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12617 gdb_ptrace.h, and move including gdb_wait.h ...
12618 * nat/linux-ptrace.h: ... to here.
12620 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12622 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12623 inf_ptrace_detach_success.
12624 (inf_ptrace_detach_success): Add inferior parameter, use it
12625 instead of inferior_ptid, pass it to detach_inferior.
12626 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12628 * inferior.c (detach_inferior): Add overload that takes an
12630 * inferior.h (detach_inferior): Likewise.
12631 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12632 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12633 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12635 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12637 * target.h (struct target_ops) <to_detach>: Add inferior
12639 (target_detach): Likewise.
12640 * target.c (dispose_inferior): Pass inferior down.
12641 (target_detach): Pass inferior down. Assert that it is equal to
12642 the current inferior.
12643 * aix-thread.c (aix_thread_detach): Pass inferior down.
12644 * corefile.c (core_file_command): Pass current_inferior() down.
12645 * corelow.c (core_detach): Add inferior parameter.
12646 * darwin-nat.c (darwin_detach): Likewise.
12647 * gnu-nat.c (gnu_detach): Likewise.
12648 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12649 * infcmd.c (detach_command): Pass current_inferior() down to
12651 * infrun.c (follow_fork_inferior): Pass parent_inf to
12653 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12655 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12656 * linux-thread-db.c (thread_db_detach): Likewise.
12657 * nto-procfs.c (procfs_detach): Likewise.
12658 * procfs.c (procfs_detach): Likewise.
12659 * record.c (record_detach): Likewise.
12660 * record.h (struct inferior): Forward-declare.
12661 (record_detach): Add inferior parameter.
12662 * remote-sim.c (gdbsim_detach): Likewise.
12663 * remote.c (remote_detach_1): Likewise.
12664 (remote_detach): Likewise.
12665 (extended_remote_detach): Likewise.
12666 * sol-thread.c (sol_thread_detach): Likewise.
12667 * target-debug.h (target_debug_print_inferior_p): New macro.
12668 * target-delegates.c: Re-generate.
12669 * top.c (kill_or_detach): Pass inferior down to target_detach.
12670 * windows-nat.c (windows_detach): Add inferior parameter.
12672 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12674 * target.h (struct target_ops) <to_detach>: Remove args
12676 (target_detach): Likewise.
12677 * target.c (dispose_inferior): Adjust.
12678 (target_detach): Remove args parameter, adjust.
12679 * aix-thread.c (aix_thread_detach): Adjust.
12680 * corefile.c (core_file_command): Adjust.
12681 * corelow.c (core_detach): Adjust.
12682 * darwin-nat.c (darwin_detach): Adjust.
12683 * gnu-nat.c (gnu_detach): Adjust.
12684 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12685 * infcmd.c (detach_command): Adjust
12686 * infrun.c (follow_fork_inferior): Adjust.
12687 (handle_vfork_child_exec_or_exit): Adjust.
12688 * linux-fork.c (linux_fork_detach): Remove args parameter.
12689 * linux-fork.h (linux_fork_detach): Likewise.
12690 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12691 * linux-thread-db.c (thread_db_detach): Likewise.
12692 * nto-procfs.c (procfs_detach): Likewise.
12693 * procfs.c (procfs_detach): Likewise.
12694 (do_detach): Remove signo parameter.
12695 * record.c (record_detach): Remove args parameter.
12696 * record.h (record_detach): Likewise.
12697 * remote-sim.c (gdbsim_detach): Likewise.
12698 * remote.c (remote_detach_1): Likewise.
12699 (remote_detach): Likewise.
12700 (extended_remote_detach): Likewise.
12701 * sol-thread.c (sol_thread_detach): Likewise.
12702 * target-delegates.c: Re-generate.
12703 * top.c (struct qt_args) <args>: Remove field.
12704 (kill_or_detach): Don't pass args.
12705 (quit_force): Don't set args.
12706 * windows-nat.c (windows_detach): Remove args parameter.
12708 2018-01-19 Yao Qi <yao.qi@linaro.org>
12710 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12711 (arm_linux_init_abi): Install it.
12713 2018-01-19 Yao Qi <yao.qi@linaro.org>
12715 * osabi.c (gdb_osabi_names): Extend the regexp for
12716 arm-linux-gnueabihf.
12718 2018-01-18 Yao Qi <yao.qi@linaro.org>
12720 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12722 (abbrev_table::add_abbrev): Update.
12723 (abbrev_table::lookup_abbrev): Update.
12725 2018-01-18 Yao Qi <yao.qi@linaro.org>
12727 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12729 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12731 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12734 2018-01-17 Tom Tromey <tom@tromey.com>
12736 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12738 2018-01-17 Tom Tromey <tom@tromey.com>
12740 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12741 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12742 (create_array_type_with_stride): Update.
12743 * dwarf2read.c (set_die_type): Update.
12745 2018-01-17 Tom Tromey <tom@tromey.com>
12747 * dwarf2read.c (delayed_method_info): Remove typedef.
12748 (dwarf2_cu::method_info): Now a std::vector.
12749 (add_to_method_list): Update.
12750 (free_delayed_list): Remove.
12751 (compute_delayed_physnames): Update.
12752 (process_full_comp_unit, process_full_type_unit): Clear the method
12753 list. Remove cleanups.
12754 (psymtab_include_file_name): Add name_holder parameter. Use
12755 unique_xmalloc_ptr.
12756 (dwarf_decode_lines): Update.
12758 2018-01-17 Tom Tromey <tom@tromey.com>
12759 Simon Marchi <simon.marchi@ericsson.com>
12761 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12762 (dwarf2_per_objfile::free_cached_comp_units)
12763 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12764 (init_cutu_and_read_dies_no_follow): Update.
12765 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12766 (dwarf2_cu::~dwarf2_cu): New.
12767 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12768 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12770 2018-01-17 Tom Tromey <tom@tromey.com>
12771 Simon Marchi <simon.marchi@ericsson.com>
12773 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12774 (struct die_reader_specs) <abbrev_table>: New member.
12775 (struct abbrev_table): Add constructor.
12776 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12777 <abbrev_obstack>: Now an auto_obstack.
12778 (abbrev_table_up): New typedef.
12779 (init_cu_die_reader): Add abbrev_table parameter.
12780 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12781 Add result_dwo_abbrev_table.
12782 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12783 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12785 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12787 (skip_children): Update.
12788 (abbrev_table::alloc_abbrev): Rename from
12789 abbrev_table_alloc_abbrev.
12790 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
12791 (abbrev_table::lookup_abbrev): Rename from
12792 abbrev_table_lookup_abbrev.
12793 (abbrev_table_read_table): Return abbrev_table_up.
12794 (abbrev_table_free, abbrev_table_free_cleanup)
12795 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
12796 (load_partial_dies): Update.
12798 2018-01-17 Tom Tromey <tom@tromey.com>
12800 * dwarf2read.c (dwarf2_compute_name): Update comment.
12801 (read_func_scope, read_variable): Update.
12802 (new_symbol): Remove.
12803 (new_symbol_full): Rename to new_symbol.
12805 2018-01-17 Mike Gulick <mgulick@mathworks.com>
12808 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
12809 a warning instead of throwing an error, set section size to 0 and return
12811 * gdb_bfd.h (gdb_bfd_map_section): Update description.
12813 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12815 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
12817 (linux_ptrace_attach_fail_reason_string): Likewise.
12818 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
12820 (linux_ptrace_attach_fail_reason_string): Likewise.
12821 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
12823 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12825 * linux-nat.c (linux_nat_attach): Remove xstrdup.
12827 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
12830 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
12831 checking for fs_base/gs_base fields in struct user_regs_struct.
12832 * configure: Regenerate.
12834 2018-01-17 Yao Qi <yao.qi@linaro.org>
12836 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12838 (aarch64_linux_init_abi): Install it to gdbarch hook
12839 gcc_target_options.
12841 2018-01-15 Pedro Alves <palves@redhat.com>
12843 * common/signals-state-save-restore.c
12844 (save_original_signals_state): Fix typos.
12846 2017-01-12 Tom Tromey <tom@tromey.com>
12847 Sergio Durigan Junior <sergiodj@redhat.com>
12849 * Makefile.in (install-only): Install gdb-add-index.
12851 2018-01-12 John Baldwin <jhb@FreeBSD.org>
12853 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
12855 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12857 * infrun.c (keep_going_pass_signal): Clear step-over info when
12858 insert_breakpoints fails.
12860 2018-01-11 Pedro Alves <palves@redhat.com>
12863 * infrun.c (resume): Rename to ...
12864 (resume_1): ... this.
12865 (resume): Reimplement as wrapper around resume_1.
12867 2018-01-11 Pedro Alves <palves@redhat.com>
12870 * remote.c (remote_parse_stop_reply): Default to the last-set
12871 general thread instead of to 'magic_null_ptid'.
12873 2018-01-10 Pedro Alves <palves@redhat.com>
12875 * language.h (language_get_symbol_name_matcher): Rename ...
12876 (get_symbol_name_matcher): ... this.
12877 * language.c (language_get_symbol_name_matcher): Ditto.
12878 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
12881 2018-01-10 Pedro Alves <palves@redhat.com>
12885 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
12886 Adjust to use language_get_symbol_name_matcher instead of
12887 language_defn::la_get_symbol_name_matcher.
12888 * language.c (language_get_symbol_name_matcher): If in Ada mode
12889 and the lookup name is a verbatim match, return Ada's matcher.
12890 * language.h (language_get_symbol_name_matcher): Adjust comment.
12891 (ada_lookup_name_info::verbatim_p):: New method.
12893 2018-01-10 Pedro Alves <palves@redhat.com>
12896 * ada-lang.c (ada_collect_symbol_completion_matches): If the
12897 minsym's language is language_auto or language_cplus, pass down
12898 language_ada instead.
12899 * symtab.c (compare_symbol_name): Don't frob symbol language here.
12901 2018-01-10 Pedro Alves <palves@redhat.com>
12904 * minsyms.c (linkage_name_str): New function.
12905 (iterate_over_minimal_symbols): Use it.
12907 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12909 * NEWS: Document that 'info proc' now works on FreeBSD.
12911 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12913 * configure.ac: Check for kinfo_getfile in libutil.
12914 * configure: Regenerate.
12915 * config.in: Regenerate.
12916 * fbsd-nat.c: Include "fbsd-tdep.h".
12917 (fbsd_fetch_cmdline): New.
12918 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
12919 rather than calling error.
12920 (fbsd_info_proc): New.
12921 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
12922 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
12923 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
12925 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12927 * fbsd-nat.c (struct free_deleter): Remove.
12928 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
12930 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12932 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
12933 NULL for an empty pathname.
12935 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12937 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
12938 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
12939 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12940 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12941 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
12942 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
12943 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
12944 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
12945 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
12946 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
12947 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
12948 (fbsd_core_fetch_timeval, fbsd_print_sigset)
12949 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
12950 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
12951 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
12953 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
12955 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
12956 (gnu_xfer_auxv): New function.
12957 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
12958 TARGET_OBJECT_AUXV.
12960 2018-01-08 Yao Qi <yao.qi@linaro.org>
12961 Simon Marchi <simon.marchi@ericsson.com>
12963 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
12965 (COMMON_OBS): Remove selftest.o.
12966 * configure.ac: Append selftest-arch.c and common/selftest.c to
12967 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
12968 * configure: Re-generated.
12969 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
12971 (maintenance_info_selftests): Likewise.
12973 2018-01-08 Xavier Roirand <roirand@adacore.com>
12975 * ada-valprint.c (val_print_packed_array_elements): Use
12976 proper number of elements when printing an array indexed
12977 by an enumeration type.
12979 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12981 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
12982 (dw2_get_file_names_reader): Adjust.
12983 (lookup_dwo_signatured_type): Adjust.
12984 (lookup_dwp_signatured_type): Adjust.
12985 (lookup_signatured_type): Adjust.
12986 (create_type_unit_group): Adjust.
12987 (get_type_unit_group): Adjust.
12988 (process_psymtab_comp_unit_reader): Adjust.
12989 (build_type_psymtabs_reader): Adjust.
12990 (scan_partial_symbols): Adjust.
12991 (add_partial_symbol): Adjust.
12992 (add_partial_subprogram): Adjust.
12993 (peek_die_abbrev): Adjust.
12994 (fixup_go_packaging): Adjust.
12995 (process_imported_unit_die): Adjust.
12996 (dwarf2_compute_name): Adjust.
12997 (dwarf2_physname): Adjust.
12998 (read_import_statement): Adjust.
12999 (handle_DW_AT_stmt_list): Adjust.
13000 (read_file_scope): Adjust.
13001 (read_func_scope): Adjust.
13002 (read_lexical_block_scope): Adjust.
13003 (read_call_site_scope): Adjust.
13004 (read_variable): Adjust.
13005 (dwarf2_rnglists_process): Adjust.
13006 (dwarf2_ranges_process): Adjust.
13007 (dwarf2_ranges_read): Adjust.
13008 (dwarf2_get_pc_bounds): Adjust.
13009 (dwarf2_record_block_ranges): Adjust.
13010 (dwarf2_add_field): Adjust.
13011 (dwarf2_add_member_fn): Adjust.
13012 (read_structure_type): Adjust.
13013 (process_structure_scope): Adjust.
13014 (read_enumeration_type): Adjust.
13015 (read_array_type): Adjust.
13016 (mark_common_block_symbol_computed): Adjust.
13017 (read_common_block): Adjust.
13018 (read_namespace_type): Adjust.
13019 (read_namespace): Adjust.
13020 (read_module_type): Adjust.
13021 (read_tag_pointer_type): Adjust.
13022 (read_tag_ptr_to_member_type): Adjust.
13023 (read_tag_string_type): Adjust.
13024 (read_subroutine_type): Adjust.
13025 (read_typedef): Adjust.
13026 (read_base_type): Adjust.
13027 (attr_to_dynamic_prop): Adjust.
13028 (read_subrange_type): Adjust.
13029 (read_unspecified_type): Adjust.
13030 (dwarf2_read_abbrevs): Adjust.
13031 (load_partial_dies): Adjust.
13032 (read_partial_die): Adjust.
13033 (find_partial_die): Adjust.
13034 (guess_partial_die_structure_name): Adjust.
13035 (fixup_partial_die): Adjust.
13036 (read_attribute_value): Adjust.
13037 (read_addr_index): Adjust.
13038 (read_addr_index_from_leb128): Adjust.
13039 (read_str_index): Adjust.
13040 (dwarf2_string_attr): Adjust.
13041 (get_debug_line_section): Adjust.
13042 (dwarf_decode_line_header): Adjust.
13043 (lnp_state_machine::check_line_address): Adjust.
13044 (dwarf_decode_lines_1): Adjust.
13045 (dwarf_decode_lines): Adjust.
13046 (dwarf2_start_symtab): Adjust.
13047 (var_decode_location): Adjust.
13048 (new_symbol_full): Adjust.
13049 (dwarf2_const_value_data): Adjust.
13050 (dwarf2_const_value_attr): Adjust.
13051 (dwarf2_const_value): Adjust.
13052 (die_type): Adjust.
13053 (die_containing_type): Adjust.
13054 (build_error_marker_type): Adjust.
13055 (lookup_die_type): Adjust.
13056 (guess_full_die_structure_name): Adjust.
13057 (anonymous_struct_prefix): Adjust.
13058 (determine_prefix): Adjust.
13059 (dwarf2_name): Adjust.
13060 (follow_die_ref_or_sig): Adjust.
13061 (follow_die_offset): Adjust.
13062 (follow_die_ref): Adjust.
13063 (follow_die_sig_1): Adjust.
13064 (follow_die_sig): Adjust.
13065 (get_signatured_type): Adjust.
13066 (get_DW_AT_signature_type): Adjust.
13067 (decode_locdesc): Adjust.
13068 (dwarf_decode_macros): Adjust.
13069 (cu_debug_loc_section): Adjust.
13070 (fill_in_loclist_baton): Adjust.
13071 (dwarf2_symbol_mark_computed): Adjust.
13072 (init_one_comp_unit): Don't assign
13073 dwarf2_cu::dwarf2_per_objfile.
13074 (set_die_type): Adjust.
13076 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13078 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13079 <dwarf2_per_objfile>: New field.
13080 (dwarf2_per_objfile): Remove global.
13081 (get_dwarf2_per_objfile): New function.
13082 (set_dwarf2_per_objfile): New function.
13083 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13084 dwarf2_per_objfile.
13085 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13086 (read_abbrev_offset): Likewise.
13087 (read_indirect_string): Likewise.
13088 (read_indirect_line_string): Likewise.
13089 (read_indirect_string_at_offset): Likewise.
13090 (read_indirect_string_from_dwz): Likewise.
13091 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13092 dwarf2_per_objfile.
13093 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13094 (create_all_comp_units): Change objfile parameter to
13095 dwarf2_per_objfile.
13096 (create_all_type_units): Likewise.
13097 (process_queue): Add dwarf2_per_objfile parameter.
13098 (read_and_check_comp_unit_head): Likewise.
13099 (lookup_dwo_unit_in_dwp): Likewise.
13100 (get_dwp_file): Likewise.
13101 (process_cu_includes): Likewise.
13102 (struct free_dwo_file_cleanup_data): New struct.
13103 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13104 set_dwarf2_per_objfile.
13105 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13106 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13107 context, adjust calls.
13108 (dw2_instantiate_symtab): Likewise.
13109 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13110 (dw2_get_cu): Likewise.
13111 (create_cu_from_index_list): Change objfile parameter to
13112 dwarf2_per_objfile.
13113 (create_cus_from_index_list): Get dwarf2_per_objfile from
13114 context, adjust calls.
13115 (create_cus_from_index): Likewise.
13116 (create_signatured_type_table_from_index): Change objfile
13117 parameter to dwarf2_per_objfile.
13118 (create_signatured_type_table_from_debug_names): Change objfile
13119 parameter to dwarf2_per_objfile.
13120 (create_addrmap_from_index): Likewise.
13121 (create_addrmap_from_aranges): Likewise.
13122 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13123 (dw2_setup): Remove.
13124 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13126 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13127 get_dwarf2_per_objfile.
13128 (dw2_forget_cached_source_info): Likewise.
13129 (dw2_map_symtabs_matching_filename): Likewise.
13130 (struct dw2_symtab_iterator) <index>: Remove.
13131 <dwarf2_per_objfile>: New field.
13132 (dw2_symtab_iter_init): Replace index parameter with
13133 dwarf2_per_objfile.
13134 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13135 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13136 (dw2_print_stats): Likewise.
13137 (dw2_dump): Likewise.
13138 (dw2_expand_symtabs_for_function): Likewise.
13139 (dw2_expand_all_symtabs): Likewise.
13140 (dw2_expand_symtabs_with_fullname): Likewise.
13141 (dw2_expand_marked_cus): Replace index and objfile parameters
13142 with dwarf2_per_objfile.
13143 (dw_expand_symtabs_matching_file_matcher): Add
13144 dwarf2_per_objfile parameter and adjust calls.
13145 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13147 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13148 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13150 (create_cus_from_debug_names_list): Replace objfile parameter
13151 with dwarf2_per_objfile and adjust calls.
13152 (create_cus_from_debug_names): Likewise.
13153 (dwarf2_read_debug_names): Likewise.
13154 (mapped_debug_names::namei_to_name): Adjust call.
13155 (dw2_debug_names_iterator::next): Likewise.
13156 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13157 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13158 (dw2_debug_names_dump): Likewise.
13159 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13160 (dw2_debug_names_expand_symtabs_matching): Likewise.
13161 (dwarf2_initialize_objfile): Likewise.
13162 (dwarf2_build_psymtabs): Likewise.
13163 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13165 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13166 (read_and_check_comp_unit_head): Likewise.
13167 (read_abbrev_offset): Likewise.
13168 (create_debug_type_hash_table): Likewise.
13169 (create_debug_types_hash_table): Likewise.
13170 (create_all_type_units): Replace objfile parameter with
13171 dwarf2_per_objfile.
13172 (add_type_unit): Add dwarf2_per_objfile parameter.
13173 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13174 with dwarf2_per_objfile.
13175 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13176 (lookup_dwp_signatured_type): Likewise.
13177 (lookup_signatured_type): Likewise.
13178 (read_cutu_die_from_dwo): Likewise.
13179 (init_tu_and_read_dwo_dies): Likewise.
13180 (init_cutu_and_read_dies): Likewise.
13181 (init_cutu_and_read_dies_no_follow): Likewise.
13182 (allocate_type_unit_groups_table): Add objfile parameter.
13183 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13184 (get_type_unit_group): Likewise.
13185 (process_psymtab_comp_unit): Update call.
13186 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13187 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13188 (print_tu_stats): Likewise.
13189 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13190 in void* parameter.
13191 (build_type_psymtabs): Change objfile parameter to
13192 dwarf2_per_objfile.
13193 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13194 passed in void* parameter.
13195 (process_skeletonless_type_units): Change objfile parameter to
13196 dwarf2_per_objfile.
13197 (set_partial_user): Likewise.
13198 (dwarf2_build_psymtabs_hard): Likewise.
13199 (read_comp_units_from_section): Likewise.
13200 (create_all_comp_units): Likewise.
13201 (scan_partial_symbols): Update calls.
13202 (add_partial_symbol): Likewise.
13203 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13204 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13205 (process_queue): Add dwarf2_per_objfile parameter.
13206 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13207 (compute_compunit_symtab_includes): Likewise.
13208 (process_cu_includes): Add dwarf2_per_objfile parameter.
13209 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13210 (process_full_type_unit): Likewise.
13211 (process_imported_unit_die): Update call.
13212 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13213 (read_file_scope): Likewise.
13214 (allocate_dwo_file_hash_table): Add objfile parameter.
13215 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13216 (create_cus_hash_table): Likewise.
13217 (create_dwp_hash_table): Likewise.
13218 (create_dwo_unit_in_dwp_v1): Likewise.
13219 (create_dwp_v2_section): Likewise.
13220 (create_dwo_unit_in_dwp_v2): Likewise.
13221 (lookup_dwo_unit_in_dwp): Likewise.
13222 (try_open_dwop_file): Likewise.
13223 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13224 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13225 cleanup to include a reference to dwarf2_per_objfile.
13226 (open_dwp_file): Add dwarf2_per_objfile parameter.
13227 (open_and_init_dwp_file): Likewise.
13228 (get_dwp_file): Likewise.
13229 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13230 (queue_and_load_all_dwo_tus): Update call.
13231 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13233 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13234 (dwarf2_ranges_process): Likewise.
13235 (dwarf2_get_pc_bounds): Likewise.
13236 (mark_common_block_symbol_computed): Likewise.
13237 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13238 (dwarf2_read_abbrevs): Update call.
13239 (read_partial_die): Use dwarf2_per_objfile from cu.
13240 (find_partial_die): Likewise.
13241 (fixup_partial_die): Likewise.
13242 (read_attribute_value): Likewise.
13243 (read_indirect_string_at_offset_from): Add objfile parameter.
13244 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13246 (read_indirect_string_from_dwz): Add objfile parameter.
13247 (read_indirect_string): Add objfile parameter.
13248 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13249 (read_addr_index): Use dwarf2_per_objfile from cu.
13250 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13252 (read_str_index): Use dwarf2_per_objfile from cu.
13253 (get_debug_line_section): Likewise.
13254 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13255 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13256 (new_symbol_full): Use dwarf2_per_objfile from cu.
13257 (build_error_marker_type): Likewise.
13258 (lookup_die_type): Likewise.
13259 (determine_prefix): Likewise.
13260 (follow_die_offset): Likewise.
13261 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13262 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13263 (dwarf2_fetch_die_type_sect_off): Likewise.
13264 (dwarf2_get_die_type): Likewise.
13265 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13266 (get_signatured_type): Likewise.
13267 (get_DW_AT_signature_type): Likewise.
13268 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13269 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13270 (cu_debug_loc_section): Likewise.
13271 (fill_in_loclist_baton): Likewise.
13272 (dwarf2_symbol_mark_computed): Likewise.
13273 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13274 dwarf2_per_objfile.
13275 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13277 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13278 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13279 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13280 (set_die_type): Use dwarf2_free_objfile from cu.
13281 (get_die_type_at_offset): Likewise.
13282 (dwarf2_per_objfile_free): Don't assign global variable.
13283 (debug_names) <constructor>: Add dwarf2_per_objfile
13284 parameter, update m_debugstrlookup construction.
13285 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13287 <m_dwarf2_per_objfile>: New field.
13288 <lookup>: Use m_dwarf2_per_objfile.
13289 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13290 (psyms_seen_size): Likewise.
13291 (write_gdbindex): Replace objfile parameter with
13292 dwarf2_per_objfile.
13293 (write_debug_names): Likewise.
13294 (write_psymtabs_to_index): Likewise.
13295 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13298 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13300 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13301 <dwarf2_per_objfile>: New field.
13302 (struct dwarf2_per_cu_data) <objfile>: Remove.
13303 <dwarf2_per_objfile>: New field.
13304 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13306 (create_signatured_type_table_from_index): Likewise.
13307 (create_debug_type_hash_table): Likewise.
13308 (fill_in_sig_entry_from_dwo_entry): Likewise.
13309 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13310 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13312 (create_partial_symtab): Access objfile through
13313 dwarf2_per_objfile.
13314 (process_psymtab_comp_unit_reader): Likewise.
13315 (read_comp_units_from_section): Likewise.
13316 (scan_partial_symbols): Likewise.
13317 (add_partial_symbol): Likewise.
13318 (add_partial_subprogram): Likewise.
13319 (peek_die_abbrev): Likewise.
13320 (fixup_go_packaging): Likewise.
13321 (process_full_comp_unit): Likewise.
13322 (process_full_type_unit): Likewise.
13323 (process_imported_unit_die): Likewise.
13324 (dwarf2_compute_name): Likewise.
13325 (dwarf2_physname): Likewise.
13326 (read_import_statement): Likewise.
13327 (create_cus_hash_table): Assign dwarf2_physname instead of
13329 (read_func_scope): Access objfile through dwarf2_per_objfile.
13330 (read_lexical_block_scope): Likewise.
13331 (read_call_site_scope): Likewise.
13332 (read_variable): Likewise.
13333 (dwarf2_rnglists_process): Likewise.
13334 (dwarf2_ranges_process): Likewise.
13335 (dwarf2_ranges_read): Likewise.
13336 (dwarf2_record_block_ranges): Likewise.
13337 (dwarf2_add_field): Likewise.
13338 (dwarf2_add_member_fn): Likewise.
13339 (read_structure_type): Likewise.
13340 (process_structure_scope): Likewise.
13341 (read_enumeration_type): Likewise.
13342 (read_array_type): Likewise.
13343 (read_common_block): Likewise.
13344 (read_namespace_type): Likewise.
13345 (read_namespace): Likewise.
13346 (read_module_type): Likewise.
13347 (read_tag_pointer_type): Likewise.
13348 (read_tag_ptr_to_member_type): Likewise.
13349 (read_tag_string_type): Likewise.
13350 (read_subroutine_type): Likewise.
13351 (read_typedef): Likewise.
13352 (read_base_type): Likewise.
13353 (attr_to_dynamic_prop): Likewise.
13354 (read_subrange_type): Likewise.
13355 (read_unspecified_type): Likewise.
13356 (load_partial_dies): Likewise.
13357 (read_partial_die): Likewise.
13358 (find_partial_die): Likewise.
13359 (guess_partial_die_structure_name): Likewise.
13360 (fixup_partial_die): Likewise.
13361 (read_attribute_value): Likewise.
13362 (read_addr_index_from_leb128): Likewise.
13363 (dwarf2_read_addr_index): Likewise.
13364 (dwarf2_string_attr): Likewise.
13365 (lnp_state_machine::check_line_address): Likewise.
13366 (dwarf_decode_lines_1): Likewise.
13367 (dwarf_decode_lines): Likewise.
13368 (dwarf2_start_symtab): Likewise.
13369 (var_decode_location): Likewise.
13370 (new_symbol_full): Likewise.
13371 (dwarf2_const_value_data): Likewise.
13372 (dwarf2_const_value_attr): Likewise.
13373 (dwarf2_const_value): Likewise.
13374 (die_type): Likewise.
13375 (die_containing_type): Likewise.
13376 (lookup_die_type): Likewise.
13377 (guess_full_die_structure_name): Likewise.
13378 (anonymous_struct_prefix): Likewise.
13379 (dwarf2_name): Likewise.
13380 (follow_die_ref_or_sig): Likewise.
13381 (follow_die_offset): Likewise.
13382 (follow_die_ref): Likewise.
13383 (dwarf2_fetch_die_loc_sect_off): Likewise.
13384 (dwarf2_fetch_constant_bytes): Likewise.
13385 (dwarf2_fetch_die_type_sect_off): Likewise.
13386 (dwarf2_get_die_type): Likewise.
13387 (follow_die_sig): Likewise.
13388 (decode_locdesc): Likewise.
13389 (dwarf2_per_cu_objfile): Likewise.
13390 (dwarf2_per_cu_text_offset): Likewise.
13391 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13393 (set_die_type): Access objfile through
13394 dwarf2_per_objfile.
13396 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13398 * valprint.c (converted_character_d): Remove typedef.
13399 (DEF_VEC_O (converted_character_d)): Remove.
13400 (count_next_character): Use std::vector.
13401 (print_converted_chars_to_obstack): Likewise.
13402 (generic_printstr): Likewise.
13404 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13406 * xml-support.h (struct gdb_xml_value): Add constructor.
13407 <value>: Change type to unique_xmalloc_ptr.
13408 (gdb_xml_value_s): Remove typedef.
13409 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13410 (gdb_xml_element_start_handler): Change parameter type to
13412 (xml_find_attribute): Likewise.
13413 * xml-support.c (xml_find_attribute): Change parameter type to
13414 std::vector and adjust.
13415 (gdb_xml_values_cleanup): Remove.
13416 (gdb_xml_parser::start_element): Adjust to std::vector.
13417 (xinclude_start_include): Change paraeter type to std::vector
13419 * btrace.c (check_xml_btrace_version): Likewise.
13420 (parse_xml_btrace_block): Likewise.
13421 (parse_xml_btrace_pt_config_cpu): Likewise.
13422 (parse_xml_btrace_pt): Likewise.
13423 (parse_xml_btrace_conf_bts): Likewise.
13424 (parse_xml_btrace_conf_pt): Likewise.
13425 * memory-map.c (memory_map_start_memory): Likewise.
13426 (memory_map_start_property): Likewise.
13427 * osdata.c (osdata_start_osdata): Likewise.
13428 (osdata_start_item): Likewise.
13429 (osdata_start_column): Likewise.
13430 * remote.c (start_thread): Likewise.
13431 * solib-aix.c (library_list_start_library): Likewise.
13432 (library_list_start_list): Likewise.
13433 * solib-svr4.c (library_list_start_library): Likewise.
13434 (svr4_library_list_start_list): Likewise.
13435 * solib-target.c (library_list_start_segment): Likewise.
13436 (library_list_start_section): Likewise.
13437 (library_list_start_library): Likewise.
13438 (library_list_start_list): Likewise.
13439 * tracepoint.c (traceframe_info_start_memory): Likewise.
13440 (traceframe_info_start_tvar): Likewise.
13441 * xml-syscall.c (syscall_start_syscall): Likewise.
13442 * xml-tdesc.c (tdesc_start_target): Likewise.
13443 (tdesc_start_feature): Likewise.
13444 (tdesc_start_reg): Likewise.
13445 (tdesc_start_union): Likewise.
13446 (tdesc_start_struct): Likewise.
13447 (tdesc_start_flags): Likewise.
13448 (tdesc_start_enum): Likewise.
13449 (tdesc_start_field): Likewise.
13450 (tdesc_start_enum_value): Likewise.
13451 (tdesc_start_vector): Likewise.
13453 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13455 * extension.h (struct xmethod_worker) <clone>: Remove.
13456 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13458 (python_xmethod_worker::clone): Remove.
13459 * valops.c (find_overload_match): Use std::move instead of
13462 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13464 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13465 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13466 <free_xmethod_worker_data>: Remove.
13467 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13468 <get_xmethod_arg_types>: Remove.
13469 <get_xmethod_result_type>: Remove.
13470 <invoke_xmethod>: Remove.
13471 * extension.c (new_xmethod_worker): Remove.
13472 (clone_xmethod_worker): Remove.
13473 (get_matching_xmethod_workers): Return void, pass std::vector by
13475 (get_xmethod_arg_types): Rename to...
13476 (xmethod_worker::get_arg_types): ... this, and adjust.
13477 (get_xmethod_result_type): Rename to...
13478 (xmethod_worker::get_result_type): ... this, and adjust.
13479 (invoke_xmethod): Remove.
13480 (free_xmethod_worker): Remove.
13481 (free_xmethod_worker_vec): Remove.
13482 * extension.h (enum ext_lang_rc): Move here from
13484 (struct xmethod_worker): Add constructor and destructor.
13487 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13488 virtual pure methods.
13489 <get_arg_types, get_result_type>: New methods.
13490 (xmethod_worker_ptr): Remove typedef.
13491 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13492 (xmethod_worker_vec): Remove typedef.
13493 (xmethod_worker_up): New typedef.
13494 (invoke_xmethod): Remove.
13495 (clone_xmethod_worker): Remove.
13496 (free_xmethod_worker): Remove.
13497 (free_xmethod_worker_vec): Remove.
13498 (get_xmethod_arg_types): Remove.
13499 (get_xmethod_result_type): Remove.
13500 * valops.c (find_method_list): Use std::vector, don't use
13501 intermediate vector.
13502 (value_find_oload_method_list): Use std::vector.
13503 (find_overload_match): Use std::vector.
13504 (find_oload_champ): Use std::vector.
13505 * value.c (value_free): Use operator delete.
13506 (value_of_xmethod): Rename to...
13507 (value_from_xmethod): ... this. Don't assign
13508 xmethod_worker::value, take rvalue-reference.
13509 (result_type_of_xmethod): Adjust.
13510 (call_xmethod): Adjust.
13511 * value.h: Include extension.h.
13512 (struct xmethod_worker): Don't forward-declare.
13513 (value_of_xmethod): Rename to...
13514 (value_from_xmethod): ... this, take rvalue-reference.
13515 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13516 (struct python_xmethod_worker): ... this, add constructor and
13518 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13519 (gdbpy_free_xmethod_worker_data): Rename to...
13520 (python_xmethod_worker::~python_xmethod_worker): ... this and
13522 (gdbpy_clone_xmethod_worker_data): Rename to...
13523 (python_xmethod_worker::clone): ... this and adjust.
13524 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13526 (gdbpy_get_xmethod_arg_types): Rename to...
13527 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13528 (gdbpy_get_xmethod_result_type): Rename to...
13529 (python_xmethod_worker::do_get_result_type): ... this and
13531 (gdbpy_invoke_xmethod): Rename to...
13532 (python_xmethod_worker::invoke): ... this and adjust.
13533 (new_python_xmethod_worker): Rename to...
13534 (python_xmethod_worker::python_xmethod_worker): ... this and
13536 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13538 (gdbpy_free_xmethod_worker_data): Remove.
13539 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13540 (gdbpy_get_xmethod_arg_types): Remove.
13541 (gdbpy_get_xmethod_result_type): Remove.
13542 (gdbpy_invoke_xmethod): Remove.
13543 * python/python.c (python_extension_ops): Remove obsolete
13546 2018-01-05 Pedro Alves <palves@redhat.com>
13549 * common/signals-state-save-restore.c
13550 (save_original_signals_state): New parameter 'quiet'. Warn if we
13551 find a custom handler preinstalled, instead of internal erroring.
13552 But only warn if !quiet.
13553 * common/signals-state-save-restore.h
13554 (save_original_signals_state): New parameter 'quiet'.
13555 * main.c (captured_main_1): Move save_original_signals_state call
13556 after option handling, and pass QUIET.
13558 2018-01-05 Pedro Alves <palves@redhat.com>
13560 * spu-tdep.c (spu_catch_start): Pass
13561 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13563 2018-01-05 Pedro Alves <palves@redhat.com>
13566 * ada-lang.c (literal_symbol_name_matcher): New function.
13567 (ada_get_symbol_name_matcher): Use it for
13568 symbol_name_match_type::SEARCH_NAME.
13569 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13570 it down instead of assuming symbol_name_match_type::FULL.
13571 * block.h (block_lookup_symbol): New parameter 'match_type'.
13572 * c-valprint.c (print_unpacked_pointer): Use
13573 lookup_symbol_search_name instead of lookup_symbol.
13574 * compile/compile-object-load.c (get_out_value_type): Pass down
13575 symbol_name_match_type::SEARCH_NAME.
13576 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13577 symbol_name_match_type::FULL.
13578 * cp-support.c (cp_get_symbol_name_matcher): Handle
13579 symbol_name_match_type::SEARCH_NAME.
13580 * infrun.c (insert_exception_resume_breakpoint): Use
13581 lookup_symbol_search_name.
13582 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13583 * psymtab.c (maintenance_check_psymtabs): Use
13584 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13585 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13586 SYMBOL_SEARCH_NAME.
13587 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13588 if symbol_name_match_type::SEARCH_NAME.
13589 (lookup_symbol_in_language): Pass down
13590 symbol_name_match_type::FULL.
13591 (lookup_symbol_search_name): New.
13592 (lookup_language_this): Pass down
13593 symbol_name_match_type::SEARCH_NAME.
13594 (lookup_symbol_aux, lookup_local_symbol): New parameter
13595 'match_type'. Pass it down.
13596 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13597 (lookup_symbol_search_name): New declaration.
13598 (lookup_symbol_in_block): New 'match_type' parameter.
13600 2018-01-05 Pedro Alves <palves@redhat.com>
13603 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13605 (ada_lookup_symbol): Reimplement in terms of
13606 ada_lookup_symbol_list, bits factored out from
13607 ada_lookup_encoded_symbol.
13609 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13611 * ada-exp.y (write_object_renaming): When subscripting an array
13612 using a symbol as the index, pass the block in call to
13613 ada_lookup_encoded_symbol when looking that symbol up.
13615 2018-01-05 Jerome Guitton <guitton@adacore.com>
13617 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13620 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13622 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13623 the case where VALUE_LVAL (val0) is not lval_memory.
13625 2018-01-05 Xavier Roirand <roirand@adacore.com>
13627 * ada-valprint.c (print_optional_low_bound): Handle
13628 character-indexed array printing like boolean-indexed array
13631 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13633 * NEWS: Create a new section for the next release branch.
13634 Rename the section of the current branch, now that it has
13637 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13639 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13640 * version.in: Bump version to 8.1.50.DATE-git.
13642 2018-01-03 Xavier Roirand <roirand@adacore.com>
13644 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13646 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13648 (default_exception_support_info) <catch_handlers_sym>: Add field.
13649 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13650 (ada_exception_name_addr_1): Add "catch handlers" handling.
13651 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13652 Update all callers.
13653 (create_excep_cond_exprs) <ex>: Add parameter.
13654 (re_set_exception): Update create_excep_cond_exprs call.
13655 (print_it_exception, print_one_exception, print_mention_exception)
13656 (print_recreate_exception): Add "catch handler" handling.
13657 (allocate_location_catch_handlers, re_set_catch_handlers)
13658 (check_status_catch_handlers, print_it_catch_handlers)
13659 (print_one_catch_handlers, print_mention_catch_handlers)
13660 (print_recreate_catch_handlers): New function.
13661 (catch_handlers_breakpoint_ops): New variable.
13662 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13663 Add parameter. Add "catch handler" handling.
13664 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13665 Add "catch handler" handling.
13666 (ada_exception_catchpoint_cond_string): Add "catch handler"
13668 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13670 (catch_ada_handlers_command): New function.
13671 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13672 operations structure.
13673 (_initialize_ada_language): Add "catch handlers" command entry.
13674 * NEWS: Document "catch handlers" feature.
13676 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13678 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13679 account when creating the array type of the slice.
13680 (ada_value_slice): Likewise.
13682 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13684 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13686 (create_array_type_with_stride): Add byte_stride_prop parameter.
13687 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13688 New parameter. Update all callers in this file.
13689 (array_type_has_dynamic_stride): New function.
13690 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13691 of arrays with dynamic byte strides.
13692 * dwarf2read.c (read_array_type): Add support for dynamic
13693 DW_AT_byte_stride attributes.
13695 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13697 * dwarf2read.c (read_unspecified_type): Treat
13698 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13700 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13702 Update copyright year range in all GDB files.
13704 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13706 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13707 and gdb/testsuite/gdb.base/step-line.c.
13709 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13711 * copyright.py (main): Dump the contents of
13712 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13713 even if BY_HAND is empty.
13715 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13717 * top.c (print_gdb_version): Update Copyright year in version
13720 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13722 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
13724 For older changes see ChangeLog-2017.
13730 version-control: never