1 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
6 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
11 2018-09-17 Tom Tromey <tom@tromey.com>
15 * configure.ac: Conditionally use -DNDEBUG for Python.
17 2018-09-17 Tom Tromey <tom@tromey.com>
20 * configure.ac: Use gmp as a library dependency when checking for
23 2018-09-17 Pedro Alves <palves@redhat.com>
25 * python/py-inferior.c (find_inferior_object): Delete.
27 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
29 * compile/compile-cplus-types.c
30 (compile_cplus_instance::enter_scope): Don't use new_scope after
33 2018-09-17 Tom Tromey <tom@tromey.com>
35 * common/pathstuff.c (get_standard_cache_dir): Use
36 ~/Library/Caches on macOS.
37 * common/pathstuff.h (get_standard_cache_dir): Update comment.
39 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
42 * breakpoint.c (commands_cmd_element): New.
43 (_initialize_breakpoint): Assign commands_cmd_element.
44 * breakpoint.h (commands_cmd_element): New.
45 * cli/cli-script.c (while_cmd_element, if_command,
46 define_cmd_element): New.
47 (command_name_equals): Remove.
48 (process_next_line): Compare commands by pointer, not by name.
49 (_initialize_cli_script): Assign the various cmd_list_element
51 * compile/compile.c (compile_cmd_element): New.
52 (_initialize_compile): Assign compile_cmd_element.
53 * compile/compile.h (compile_cmd_element): New.
54 * guile/guile.c (guile_cmd_element): New.
55 (install_gdb_commands): Assign guile_cmd_element.
56 * guile/guile.h (guile_cmd_element): New.
57 * python/python.c (python_cmd_element): New.
58 (_initialize_python): Assign python_cmd_element.
59 * python/python.h (python_cmd_element): New.
60 * tracepoint.c (while_stepping_cmd_element): New.
61 (_initialize_tracepoint): Assign while_stepping_cmd_element.
62 * tracepoint.h (while_stepping_cmd_element): New.
64 2018-09-17 Tom Tromey <tom@tromey.com>
66 * infrun.c (save_infcall_suspend_state): Return
67 infcall_suspend_state_up.
68 (save_infcall_control_state): Return infcall_control_state_up.
69 * inferior.h (save_infcall_suspend_state)
70 (save_infcall_control_state): Declare later. Return unique
73 2018-09-17 Tom Tromey <tom@tromey.com>
75 * infrun.c (struct stop_context): Declare constructor,
76 destructor, "changed" method.
77 (stop_context::stop_context): Rename from save_stop_context.
78 (stop_context::~stop_context): Rename from
79 release_stop_context_cleanup.
80 (normal_stop): Update.
81 (stop_context::changed): Rename from stop_context_changed. Return
84 2018-09-17 Tom Tromey <tom@tromey.com>
86 * inferior.h (struct infcall_suspend_state_deleter): New.
87 (infcall_suspend_state_up): New typedef.
88 (struct infcall_control_state_deleter): New.
89 (infcall_control_state_up): New typedef.
90 (make_cleanup_restore_infcall_suspend_state)
91 (make_cleanup_restore_infcall_control_state): Don't declare.
92 * infcall.c (call_function_by_hand_dummy): Update.
93 * infrun.c (do_restore_infcall_suspend_state_cleanup)
94 (make_cleanup_restore_infcall_suspend_state): Remove.
95 (do_restore_infcall_control_state_cleanup)
96 (make_cleanup_restore_infcall_control_state): Remove.
98 2018-09-17 Tom Tromey <tom@tromey.com>
100 * gdbthread.h (struct thread_control_state): Add initializer.
101 (class thread_info) <control>: Remove initializer.
102 * inferior.h (struct inferior_control_state): Add initializer.
103 (class inferior) <control>: Remove initializer.
104 (exit_inferior_1): Update.
105 * infrun.c (struct infcall_control_state): Add constructors.
106 (save_infcall_control_state): Use new.
107 (restore_infcall_control_state, discard_infcall_control_state):
110 2018-09-17 Tom Tromey <tom@tromey.com>
112 * infrun.c (struct infcall_suspend_state) <registers>: Now a
114 <siginfo_data>: Now a unique_xmalloc_ptr.
115 (save_infcall_suspend_state, restore_infcall_suspend_state)
116 (discard_infcall_suspend_state)
117 (get_infcall_suspend_state_regcache): Update.
119 2018-09-17 Tom Tromey <tom@tromey.com>
121 * gdbthread.h (struct thread_suspend_state): Add initializers.
122 (class thread_info) <suspend>: Remove initializer.
123 * infrun.c (struct infcall_suspend_state): Add initializers.
124 (save_infcall_suspend_state): Use new.
125 (discard_infcall_suspend_state): Use delete.
127 2018-09-16 Tom Tromey <tom@tromey.com>
129 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
131 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
132 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
133 (py_varobj_iter_new): Likewise.
134 (py_varobj_get_iterator): Use gdbpy_ref.
136 2018-09-16 Tom Tromey <tom@tromey.com>
138 * python/py-threadevent.c (py_get_event_thread): Simplify.
139 * python/py-inferior.c (infpy_thread_from_thread_handle):
140 Return immediately after calling thread_to_thread_object. Use
142 (thread_to_thread_object): Set the exception on a NULL return.
144 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
146 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
148 2018-09-16 Tom Tromey <tom@tromey.com>
150 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
153 2018-09-16 Tom Tromey <tom@tromey.com>
155 * python/python-internal.h (thread_to_thread_object): Change
157 * python/py-inferior.c (thread_to_thread_object): Return a new
159 (infpy_thread_from_thread_handle): Update.
160 * python/py-infthread.c (gdbpy_selected_thread): Update.
161 * python/py-stopevent.c (create_stop_event_object): Update.
162 * python/py-threadevent.c (py_get_event_thread): Return a new
164 (py_get_event_thread): Update.
165 * python/py-event.h (py_get_event_thread): Change return type.
166 * python/py-continueevent.c (create_continue_event_object):
169 2018-09-16 Tom Tromey <tom@tromey.com>
171 * python/py-progspace.c (pspy_get_objfiles): Update.
172 * python/python-internal.h (objfile_to_objfile_object): Change
174 * python/py-newobjfileevent.c (create_new_objfile_event_object):
176 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
178 * python/python.c (gdbpy_get_current_objfile): Update.
179 (gdbpy_objfiles): Update.
180 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
182 (objfile_to_objfile_object): Return a new reference.
183 * python/py-symtab.c (stpy_get_objfile): Update.
184 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
187 2018-09-16 Tom Tromey <tom@tromey.com>
189 * python/py-inferior.c (infpy_get_progspace): Update.
190 * python/python-internal.h (pspace_to_pspace_object): Change
192 * python/py-newobjfileevent.c
193 (create_clear_objfiles_event_object): Update.
194 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
196 * python/python.c (gdbpy_get_current_progspace): Update.
197 (gdbpy_progspaces): Update.
198 * python/py-progspace.c (pspace_to_pspace_object): Return a new
200 * python/py-objfile.c (objfpy_get_progspace): Update.
201 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
204 2018-09-16 Tom Tromey <tom@tromey.com>
206 * python/lib/gdb/__init__.py (current_progspace, objfiles)
207 (solib_name, block_for_pc, find_pc_line): New functions.
208 (execute_unwinders): Update.
209 * python/py-block.c (gdbpy_block_for_pc): Remove.
210 * python/py-inferior.c (infpy_get_progspace): New function.
211 (inferior_object_getset) <progspace>: Add.
212 * python/py-progspace.c (pspy_objfiles): Rewrite.
213 (pspy_solib_name, pspy_block_for_pc)
214 (pspy_find_pc_line, pspy_is_valid): New functions.
215 (progspace_object_methods): Add entries for solib_name,
216 block_for_pc, find_pc_line, is_valid.
217 * python/python-internal.h (gdbpy_block_for_pc)
218 (build_objfiles_list): Don't declare.
219 * python/python.c: Don't include solib.h.
220 (gdbpy_solib_name, gdbpy_find_pc_line)
221 (gdbpy_get_current_progspace, build_objfiles_list)
222 (gdbpy_objfiles): Remove.
223 (GdbMethods) <current_progspace, objfiles, block_for_pc,
224 solib_name, find_pc_line>: Remove entries.
226 2018-09-16 Tom Tromey <tom@tromey.com>
228 * top.c (new_ui_command): Use GNU style for metasyntactic
230 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
232 * maint.c (maintenance_translate_address): Remove "<>" around
234 * interps.c (interpreter_exec_cmd): Use GNU style for
235 metasyntactic variables.
236 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
237 metasyntactic variables.
238 * tracepoint.c (tfind_range_command): Use GNU style for
239 metasyntactic variables.
240 (tfind_outside_command): Likewise.
241 (_initialize_tracepoint): Likewise.
242 * remote.c (extended_remote_target::create_inferior): Use GNU
243 style for metasyntactic variables.
244 * sparc64-tdep.c (adi_examine_command): Use GNU style for
245 metasyntactic variables.
246 (adi_assign_command): Likewise.
248 2018-09-16 Tom Tromey <tom@tromey.com>
250 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
251 metasyntactic variables. Print message if no disassembler options
254 2018-09-15 Tom Tromey <tom@tromey.com>
256 * infcmd.c (get_inferior_args): Return const char *.
257 * inferior.h (get_inferior_args): Return type now const.
258 * linux-tdep.c (linux_fill_prpsinfo): Update.
259 * procfs.c (procfs_target::make_corefile_notes): Update.
261 2018-09-07 Tom Tromey <tom@tromey.com>
263 * python/python.c (execute_gdb_command): Call bpstat_do_actions
266 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
268 * nios2-tdep.c (nios2_type_align): New.
269 (nios2_gdb_arch_init): Install type_align hook.
271 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
273 * eval.c (fake_method::fake_method): Call xzalloc directly for a
274 type that is neither object file owned, nor gdbarch owned.
275 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
277 (alloc_type_instance): Allocate non-objfile owned types on the
279 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
280 using TYPE_ALLOC to ensure memory is allocated on the correct
282 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
283 obstack, or the gdbarch obstack.
284 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
286 2018-09-14 Tom Tromey <tom@tromey.com>
288 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
291 2018-09-14 Tom Tromey <tom@tromey.com>
293 * nat/fork-inferior.c (get_startup_shell): Remove "static".
295 2018-09-13 Tom Tromey <tom@tromey.com>
297 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
300 2018-09-13 Tom Tromey <tom@tromey.com>
302 * exec.c (try_open_exec_file): Use std::string.
304 2018-09-13 Tom Tromey <tom@tromey.com>
306 * utils.h (gdb_bfd_errmsg): Return std::string.
307 * exec.c (exec_file_attach): Update.
308 * compile/compile-object-load.c (compile_object_load): Update.
309 * utils.c (gdb_bfd_errmsg): Return std::string.
311 2018-09-13 Tom Tromey <tom@tromey.com>
313 * procfs.c (struct procinfo_deleter): New.
314 (procinfo_up): New typedef.
315 (do_destroy_procinfo_cleanup): Remove.
316 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
318 2018-09-13 Tom Tromey <tom@tromey.com>
320 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
322 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
323 2018-09-13 Tom Tromey <tom@tromey.com>
325 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
326 (pspy_get_objfiles): New function.
327 (progspace_object_methods): New.
328 (pspace_object_type): Add tp_methods callback.
329 * python/python-internal.h (build_objfiles_list): New
331 * python/python.c (build_objfiles_list): New function.
332 (gdbpy_objfiles): Implement using build_objfiles_list.
333 * NEWS: Mention the Progspace.objfiles method.
335 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
337 * python/py-inferior.c (infpy_get_progspace): New function.
338 (inferior_object_getset): Add progspace property.
339 * NEWS: Mention the new property.
341 2018-09-13 Tom Tromey <tom@tromey.com>
344 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
346 2018-09-13 Tom Tromey <tom@tromey.com>
349 * rust-lang.c (rust_enum_variant): Now static.
350 (rust_empty_enum_p): New function.
351 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
354 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
356 * python/py-inferior.c (infpy_repr): New.
357 (inferior_object_type): Register infpy_repr.
358 * python/py-objfile.c (objfpy_repr): New.
359 (objfile_object_type): Register objfpy_repr.
361 2018-09-12 John Baldwin <jhb@FreeBSD.org>
363 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
365 2018-09-12 John Baldwin <jhb@FreeBSD.org>
367 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
370 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
372 * common/common-utils.c: Don't include '<sys/stat.h>'.
373 (is_regular_file): Move to...
374 * common/filestuff.c (is_regular_file): ... here.
375 * common/common-utils.h (is_regular_file): Move to...
376 * common/filestuff.h (is_regular_file): ... here.
378 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
380 * skip.c (debug_skip): New variable.
381 (skiplist_entry::do_skip_file_p): Add debug output.
382 (skiplist_entry::do_skip_gfile_p): Likewise.
383 (skiplist_entry::skip_function_p): Likewise.
384 (_initialize_step_skip): Create debug command.
385 * NEWS: Mention set/show debug skip.
387 2018-09-11 Xavier Roirand <roirand@adacore.com>
389 * darwin-nat.c (should_disable_startup_with_shell):
391 (darwin_nat_target::create_inferior): Add call.
393 2018-09-11 Xavier Roirand <roirand@adacore.com>
395 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
396 inf_port, msg_state>: Initialize.
397 (struct darwin_thread_info) <signaled, single_step>: Change
399 (struct darwin_thread_info) <event>: Initialize.
401 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
405 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
408 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
411 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
415 * gnulib/aclocal.m4: Regenerate.
416 * gnulib/config.in: Regenerate.
417 * gnulib/configure: Regenerate.
418 * gnulib/import/Makefile.am: Update.
419 * gnulib/import/Makefile.in: Update.
420 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
421 * gnulib/import/_Noreturn.h: ... this.
422 * gnulib/import/alloca.in.h: Update.
423 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
424 * gnulib/import/arg-nonnull.h: ... this.
425 * gnulib/import/assure.h: Update.
426 * gnulib/import/at-func.c: Update.
427 * gnulib/import/basename-lgpl.c: Update.
428 * gnulib/import/extra/snippet/c++defs.h: Rename to...
429 * gnulib/import/c++defs.h: ... this.
430 * gnulib/import/canonicalize-lgpl.c: Update.
431 * gnulib/import/cdefs.h: Update.
432 * gnulib/import/chdir-long.c: Update.
433 * gnulib/import/chdir-long.h: Update.
434 * gnulib/import/cloexec.c: Update.
435 * gnulib/import/cloexec.h: Update.
436 * gnulib/import/close.c: Update.
437 * gnulib/import/closedir.c: Update.
438 * gnulib/import/config.charset: Update.
439 * gnulib/import/dirent-private.h: Update.
440 * gnulib/import/dirent.in.h: Update.
441 * gnulib/import/dirfd.c: Update.
442 * gnulib/import/dirname-lgpl.c: Update.
443 * gnulib/import/dirname.h: Update.
444 * gnulib/import/dosname.h: Update.
445 * gnulib/import/dup-safer-flag.c: Update.
446 * gnulib/import/dup-safer.c: Update.
447 * gnulib/import/dup.c: Update.
448 * gnulib/import/dup2.c: Update.
449 * gnulib/import/errno.in.h: Update.
450 * gnulib/import/error.c: Update.
451 * gnulib/import/error.h: Update.
452 * gnulib/import/exitfail.c: Update.
453 * gnulib/import/exitfail.h: Update.
454 * gnulib/import/extra/update-copyright: Update.
455 * gnulib/import/fchdir.c: Update.
456 * gnulib/import/fcntl.c: Update.
457 * gnulib/import/fcntl.in.h: Update.
458 * gnulib/import/fd-hook.c: Update.
459 * gnulib/import/fd-hook.h: Update.
460 * gnulib/import/fd-safer-flag.c: Update.
461 * gnulib/import/fd-safer.c: Update.
462 * gnulib/import/fdopendir.c: Update.
463 * gnulib/import/filename.h: Update.
464 * gnulib/import/filenamecat-lgpl.c: Update.
465 * gnulib/import/filenamecat.h: Update.
466 * gnulib/import/flexmember.h: Update.
467 * gnulib/import/float+.h: Update.
468 * gnulib/import/float.c: Update.
469 * gnulib/import/float.in.h: Update.
470 * gnulib/import/fnmatch.c: Update.
471 * gnulib/import/fnmatch.in.h: Update.
472 * gnulib/import/fnmatch_loop.c: Update.
473 * gnulib/import/fpucw.h: Update.
474 * gnulib/import/frexp.c: Update.
475 * gnulib/import/frexpl.c: Update.
476 * gnulib/import/fstat.c: Update.
477 * gnulib/import/fstatat.c: Update.
478 * gnulib/import/getcwd-lgpl.c: Update.
479 * gnulib/import/getcwd.c: Update.
480 * gnulib/import/getdtablesize.c: Update.
481 * gnulib/import/getlogin_r.c: Update.
482 * gnulib/import/getprogname.c: Update.
483 * gnulib/import/getprogname.h: Update.
484 * gnulib/import/gettext.h: Update.
485 * gnulib/import/gettimeofday.c: Update.
486 * gnulib/import/glob-libc.h: Update.
487 * gnulib/import/glob.c: Update.
488 * gnulib/import/glob.in.h: Update.
489 * gnulib/import/glob_internal.h: Update.
490 * gnulib/import/glob_pattern_p.c: Update.
491 * gnulib/import/globfree.c: Update.
492 * gnulib/import/hard-locale.c: Update.
493 * gnulib/import/hard-locale.h: Update.
494 * gnulib/import/intprops.h: Update.
495 * gnulib/import/inttypes.in.h: Update.
496 * gnulib/import/isnan.c: Update.
497 * gnulib/import/isnand-nolibm.h: Update.
498 * gnulib/import/isnand.c: Update.
499 * gnulib/import/isnanl-nolibm.h: Update.
500 * gnulib/import/isnanl.c: Update.
501 * gnulib/import/itold.c: Update.
502 * gnulib/import/libc-config.h: Update.
503 * gnulib/import/limits.in.h: Update.
504 * gnulib/import/localcharset.c: Update.
505 * gnulib/import/localcharset.h: Update.
506 * gnulib/import/localtime-buffer.c: Update.
507 * gnulib/import/localtime-buffer.h: Update.
508 * gnulib/import/lstat.c: Update.
509 * gnulib/import/m4/00gnulib.m4: Update.
510 * gnulib/import/m4/__inline.m4: Update.
511 * gnulib/import/m4/absolute-header.m4: Update.
512 * gnulib/import/m4/alloca.m4: Update.
513 * gnulib/import/m4/builtin-expect.m4: Update.
514 * gnulib/import/m4/canonicalize.m4: Update.
515 * gnulib/import/m4/chdir-long.m4: Update.
516 * gnulib/import/m4/close.m4: Update.
517 * gnulib/import/m4/closedir.m4: Update.
518 * gnulib/import/m4/configmake.m4: Update.
519 * gnulib/import/m4/d-ino.m4: Update.
520 * gnulib/import/m4/d-type.m4: Update.
521 * gnulib/import/m4/dirent_h.m4: Update.
522 * gnulib/import/m4/dirfd.m4: Update.
523 * gnulib/import/m4/dirname.m4: Update.
524 * gnulib/import/m4/double-slash-root.m4: Update.
525 * gnulib/import/m4/dup.m4: Update.
526 * gnulib/import/m4/dup2.m4: Update.
527 * gnulib/import/m4/eealloc.m4: Update.
528 * gnulib/import/m4/environ.m4: Update.
529 * gnulib/import/m4/errno_h.m4: Update.
530 * gnulib/import/m4/error.m4: Update.
531 * gnulib/import/m4/exponentd.m4: Update.
532 * gnulib/import/m4/exponentl.m4: Update.
533 * gnulib/import/m4/extensions.m4: Update.
534 * gnulib/import/m4/extern-inline.m4: Update.
535 * gnulib/import/m4/fchdir.m4: Update.
536 * gnulib/import/m4/fcntl-o.m4: Update.
537 * gnulib/import/m4/fcntl.m4: Update.
538 * gnulib/import/m4/fcntl_h.m4: Update.
539 * gnulib/import/m4/fdopendir.m4: Update.
540 * gnulib/import/m4/filenamecat.m4: Update.
541 * gnulib/import/m4/flexmember.m4: Update.
542 * gnulib/import/m4/float_h.m4: Update.
543 * gnulib/import/m4/fnmatch.m4: Update.
544 * gnulib/import/m4/fnmatch_h.m4: Update.
545 * gnulib/import/m4/fpieee.m4: Update.
546 * gnulib/import/m4/frexp.m4: Update.
547 * gnulib/import/m4/frexpl.m4: Update.
548 * gnulib/import/m4/fstat.m4: Update.
549 * gnulib/import/m4/fstatat.m4: Update.
550 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
551 * gnulib/import/m4/getcwd-path-max.m4: Update.
552 * gnulib/import/m4/getcwd.m4: Update.
553 * gnulib/import/m4/getdtablesize.m4: Update.
554 * gnulib/import/m4/getlogin.m4: Update.
555 * gnulib/import/m4/getlogin_r.m4: Update.
556 * gnulib/import/m4/getpagesize.m4: Update.
557 * gnulib/import/m4/getprogname.m4: Update.
558 * gnulib/import/m4/gettimeofday.m4: Update.
559 * gnulib/import/m4/glibc21.m4: Update.
560 * gnulib/import/m4/glob.m4: Update.
561 * gnulib/import/m4/glob_h.m4: Update.
562 * gnulib/import/m4/gnulib-cache.m4: Update.
563 * gnulib/import/m4/gnulib-common.m4: Update.
564 * gnulib/import/m4/gnulib-comp.m4: Update.
565 * gnulib/import/m4/gnulib-tool.m4: Update.
566 * gnulib/import/m4/hard-locale.m4: Update.
567 * gnulib/import/m4/include_next.m4: Update.
568 * gnulib/import/m4/inttypes-pri.m4: Update.
569 * gnulib/import/m4/inttypes.m4: Update.
570 * gnulib/import/m4/isnand.m4: Update.
571 * gnulib/import/m4/isnanl.m4: Update.
572 * gnulib/import/m4/largefile.m4: Update.
573 * gnulib/import/m4/limits-h.m4: Update.
574 * gnulib/import/m4/localcharset.m4: Update.
575 * gnulib/import/m4/locale-fr.m4: Update.
576 * gnulib/import/m4/locale-ja.m4: Update.
577 * gnulib/import/m4/locale-zh.m4: Update.
578 * gnulib/import/m4/localtime-buffer.m4: Update.
579 * gnulib/import/m4/longlong.m4: Update.
580 * gnulib/import/m4/lstat.m4: Update.
581 * gnulib/import/m4/malloc.m4: Update.
582 * gnulib/import/m4/malloca.m4: Update.
583 * gnulib/import/m4/math_h.m4: Update.
584 * gnulib/import/m4/mbrtowc.m4: Update.
585 * gnulib/import/m4/mbsinit.m4: Update.
586 * gnulib/import/m4/mbsrtowcs.m4: Update.
587 * gnulib/import/m4/mbstate_t.m4: Update.
588 * gnulib/import/m4/memchr.m4: Update.
589 * gnulib/import/m4/memmem.m4: Update.
590 * gnulib/import/m4/mempcpy.m4: Update.
591 * gnulib/import/m4/memrchr.m4: Update.
592 * gnulib/import/m4/mkdir.m4: Update.
593 * gnulib/import/m4/mkstemp.m4: Update.
594 * gnulib/import/m4/mmap-anon.m4: Update.
595 * gnulib/import/m4/mode_t.m4: Update.
596 * gnulib/import/m4/msvc-inval.m4: Update.
597 * gnulib/import/m4/msvc-nothrow.m4: Update.
598 * gnulib/import/m4/multiarch.m4: Update.
599 * gnulib/import/m4/nocrash.m4: Update.
600 * gnulib/import/m4/off_t.m4: Update.
601 * gnulib/import/m4/onceonly.m4: Update.
602 * gnulib/import/m4/open-cloexec.m4: Update.
603 * gnulib/import/m4/open.m4: Update.
604 * gnulib/import/m4/openat.m4: Update.
605 * gnulib/import/m4/opendir.m4: Update.
606 * gnulib/import/m4/pathmax.m4: Update.
607 * gnulib/import/m4/rawmemchr.m4: Update.
608 * gnulib/import/m4/readdir.m4: Update.
609 * gnulib/import/m4/readlink.m4: Update.
610 * gnulib/import/m4/realloc.m4: Update.
611 * gnulib/import/m4/rename.m4: Update.
612 * gnulib/import/m4/rewinddir.m4: Update.
613 * gnulib/import/m4/rmdir.m4: Update.
614 * gnulib/import/m4/save-cwd.m4: Update.
615 * gnulib/import/m4/secure_getenv.m4: Update.
616 * gnulib/import/m4/setenv.m4: Update.
617 * gnulib/import/m4/signal_h.m4: Update.
618 * gnulib/import/m4/ssize_t.m4: Update.
619 * gnulib/import/m4/stat-time.m4: Update.
620 * gnulib/import/m4/stat.m4: Update.
621 * gnulib/import/m4/std-gnu11.m4: Update.
622 * gnulib/import/m4/stdbool.m4: Update.
623 * gnulib/import/m4/stddef_h.m4: Update.
624 * gnulib/import/m4/stdint.m4: Update.
625 * gnulib/import/m4/stdio_h.m4: Update.
626 * gnulib/import/m4/stdlib_h.m4: Update.
627 * gnulib/import/m4/strchrnul.m4: Update.
628 * gnulib/import/m4/strdup.m4: Update.
629 * gnulib/import/m4/strerror.m4: Update.
630 * gnulib/import/m4/string_h.m4: Update.
631 * gnulib/import/m4/strstr.m4: Update.
632 * gnulib/import/m4/strtok_r.m4: Update.
633 * gnulib/import/m4/sys_socket_h.m4: Update.
634 * gnulib/import/m4/sys_stat_h.m4: Update.
635 * gnulib/import/m4/sys_time_h.m4: Update.
636 * gnulib/import/m4/sys_types_h.m4: Update.
637 * gnulib/import/m4/tempname.m4: Update.
638 * gnulib/import/m4/time_h.m4: Update.
639 * gnulib/import/m4/unistd-safer.m4: Update.
640 * gnulib/import/m4/unistd_h.m4: Update.
641 * gnulib/import/m4/warn-on-use.m4: Update.
642 * gnulib/import/m4/wchar_h.m4: Update.
643 * gnulib/import/m4/wchar_t.m4: Update.
644 * gnulib/import/m4/wctype_h.m4: Update.
645 * gnulib/import/m4/wint_t.m4: Update.
646 * gnulib/import/malloc.c: Update.
647 * gnulib/import/malloc/scratch_buffer.h: Update.
648 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
649 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
650 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
651 * gnulib/import/malloca.c: Update.
652 * gnulib/import/malloca.h: Update.
653 * gnulib/import/malloca.valgrind: Update.
654 * gnulib/import/math.in.h: Update.
655 * gnulib/import/mbrtowc.c: Update.
656 * gnulib/import/mbsinit.c: Update.
657 * gnulib/import/mbsrtowcs-impl.h: Update.
658 * gnulib/import/mbsrtowcs-state.c: Update.
659 * gnulib/import/mbsrtowcs.c: Update.
660 * gnulib/import/memchr.c: Update.
661 * gnulib/import/memmem.c: Update.
662 * gnulib/import/mempcpy.c: Update.
663 * gnulib/import/memrchr.c: Update.
664 * gnulib/import/mkdir.c: Update.
665 * gnulib/import/mkstemp.c: Update.
666 * gnulib/import/msvc-inval.c: Update.
667 * gnulib/import/msvc-inval.h: Update.
668 * gnulib/import/msvc-nothrow.c: Update.
669 * gnulib/import/msvc-nothrow.h: Update.
670 * gnulib/import/open.c: Update.
671 * gnulib/import/openat-die.c: Update.
672 * gnulib/import/openat-priv.h: Update.
673 * gnulib/import/openat-proc.c: Update.
674 * gnulib/import/openat.c: Update.
675 * gnulib/import/openat.h: Update.
676 * gnulib/import/opendir.c: Update.
677 * gnulib/import/pathmax.h: Update.
678 * gnulib/import/pipe-safer.c: Update.
679 * gnulib/import/rawmemchr.c: Update.
680 * gnulib/import/readdir.c: Update.
681 * gnulib/import/readlink.c: Update.
682 * gnulib/import/realloc.c: Update.
683 * gnulib/import/ref-add.sin: Update.
684 * gnulib/import/ref-del.sin: Update.
685 * gnulib/import/rename.c: Update.
686 * gnulib/import/rewinddir.c: Update.
687 * gnulib/import/rmdir.c: Update.
688 * gnulib/import/same-inode.h: Update.
689 * gnulib/import/save-cwd.c: Update.
690 * gnulib/import/save-cwd.h: Update.
691 * gnulib/import/scratch_buffer.h: Update.
692 * gnulib/import/secure_getenv.c: Update.
693 * gnulib/import/setenv.c: Update.
694 * gnulib/import/signal.in.h: Update.
695 * gnulib/import/stat-time.c: Update.
696 * gnulib/import/stat-time.h: Update.
697 * gnulib/import/stat-w32.c: Update.
698 * gnulib/import/stat-w32.h: Update.
699 * gnulib/import/stat.c: Update.
700 * gnulib/import/stdbool.in.h: Update.
701 * gnulib/import/stddef.in.h: Update.
702 * gnulib/import/stdint.in.h: Update.
703 * gnulib/import/stdio.in.h: Update.
704 * gnulib/import/stdlib.in.h: Update.
705 * gnulib/import/str-two-way.h: Update.
706 * gnulib/import/strchrnul.c: Update.
707 * gnulib/import/strdup.c: Update.
708 * gnulib/import/streq.h: Update.
709 * gnulib/import/strerror-override.c: Update.
710 * gnulib/import/strerror-override.h: Update.
711 * gnulib/import/strerror.c: Update.
712 * gnulib/import/string.in.h: Update.
713 * gnulib/import/stripslash.c: Update.
714 * gnulib/import/strnlen1.c: Update.
715 * gnulib/import/strnlen1.h: Update.
716 * gnulib/import/strstr.c: Update.
717 * gnulib/import/strtok_r.c: Update.
718 * gnulib/import/sys_stat.in.h: Update.
719 * gnulib/import/sys_time.in.h: Update.
720 * gnulib/import/sys_types.in.h: Update.
721 * gnulib/import/tempname.c: Update.
722 * gnulib/import/tempname.h: Update.
723 * gnulib/import/time.in.h: Update.
724 * gnulib/import/unistd--.h: Update.
725 * gnulib/import/unistd-safer.h: Update.
726 * gnulib/import/unistd.in.h: Update.
727 * gnulib/import/unsetenv.c: Update.
728 * gnulib/import/verify.h: Update.
729 * gnulib/import/extra/snippet/warn-on-use.h: Update.
730 * gnulib/import/wchar.in.h: Update.
731 * gnulib/import/wctype.in.h: Update.
732 * gnulib/import/xalloc-oversized.h: Update.
733 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
734 "53e2c179f26a890fa6685af4b6c1397ee370433b".
736 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
738 * record-btrace.c (get_thread_current_frame): Remove
741 2018-09-10 Jerome Guitton <guitton@adacore.com>
743 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
744 with check_tag to 1 if and only if the type is tagged and the
745 component being searched cannot been found in the current
746 view. Otherwise, always call ada_to_fixed_type with
749 2018-09-10 Xavier Roirand <roirand@adacore.com>
751 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
753 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
754 * ada-varobj.c (ada_varobj_get_number_of_children,
755 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
757 2018-09-10 Xavier Roirand <roirand@adacore.com>
759 * ada-valprint.c (ada_value_print): Use type instead of
762 2018-09-10 Xavier Roirand <roirand@adacore.com>
764 * ada-lang.c (ada_value_subscript): Handle case when parameter is
765 an array of access to unconstrained array.
767 2018-09-10 Xavier Roirand <roirand@adacore.com>
769 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
770 (ada_check_typedef): Use it.
772 2018-09-10 Xavier Roirand <roirand@adacore.com>
774 * ada-varobj.c (ada_varobj_describe_struct_child)
775 (ada_varobj_describe_child): Handle union case like struct one.
777 2018-09-10 Tom Tromey <tom@tromey.com>
780 * python/python.c (_initialize_python): Make example in "python"
781 help work in Python 3.
783 2018-09-10 Eli Zaretskii <eliz@gnu.org>
785 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
786 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
787 $(EXEEXT) to the script, as it is not a program.
789 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
791 * python/py-prettyprint.c (pretty_print_one_value): Return
793 (print_string_repr): Adjust.
794 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
795 * python/python-internal.h (apply_varobj_pretty_printer): Return
797 * varobj.c (varobj_value_get_print_value): Adjust.
799 2018-09-08 Tom Tromey <tom@tromey.com>
802 * python/py-prettyprint.c (pretty_print_one_value): Check for
805 2018-09-08 Joel Brobecker <brobecker@adacore.com>
807 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
808 replace_operator_with_call.
810 2018-09-08 Joel Brobecker <brobecker@adacore.com>
812 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
814 2018-09-08 Joel Brobecker <brobecker@adacore.com>
816 * ada-typeprint.c (print_range): Print the bounds using TYPE
817 rather than its TYPE_TARGET_TYPE.
819 2018-09-08 Joel Brobecker <brobecker@adacore.com>
821 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
822 call to ada_to_fixed_value_create.
824 2018-09-08 Jerome Guitton <guitton@adacore.com>
826 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
828 2018-09-08 Joel Brobecker <brobecker@adacore.com>
830 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
833 2018-09-08 Joel Brobecker <brobecker@adacore.com>
835 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
836 Move update of loop variable "fi".
838 2018-09-08 Joel Brobecker <brobecker@adacore.com>
840 * ada-lang.c (value_assign_to_component): In the case of
841 big-endian targets, extract the bits of the given VAL
842 using an src_offset of zero if container is not a scalar.
844 2018-09-06 Simon Ser <contact@emersion.fr>
847 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
848 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
849 * fbsd-tdep.c (fbsd_make_note_desc): New.
850 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
851 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
852 * target.h (enum target_object) Add FreeBSD-specific
853 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
855 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
857 * compile/compile-c.h (generate_c_for_variable_locations):
858 Change reference to pointer.
859 * compile/compile-c-support.c (compile_program) <compute>:
861 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
862 (generate_c_for_for_one_variable): Likewise
863 (generate_c_for_variable_locations): Likewise
864 * compile/compile-c-types.c (compile_c_instance::convert_type):
866 * compile/compile-cplus-symbols.c (convert_one_symbol):
867 std::move the scope passed to enter_scope.
868 * compile/compile-cplus-types.c
869 (compile_cplus_instance::enter_scope): Make parameter
871 (compile_cplus_instance::new_scope): Change reference to
873 (compile_cplus_instance::convert_type): Likewise
874 (compile_cplus_convert_typedef): std::move the scope passed to
876 (compile_cplus_convert_struct_or_union): Likewise.
877 (compile_cplus_convert_enum): Likewise.
878 (compile_cplus_convert_namespace): Likewise.
879 * compile/compile-cplus.h (compile_cplus_instance)
880 <enter_scope>: Make parameter rvalue-reference.
881 * compile/compile-internal.h (compile_instance)
882 <get_cached_type>: Likewise
883 * compile/compile-loc2c.c (push): Likewise
887 (print_label): Likewise
888 (pushf_register_address): Likewise
889 (pushf_register): Likewise
890 (do_compile_dwarf_expr_to_c): Likewise
891 (compile_dwarf_expr_to_c): Likewise
892 (compile_dwarf_bounds_to_c): Likewise
893 * compile/compile.c (compile_instance::get_cached_type):
895 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
896 (compile_dwarf_bounds_to_c): Likewise
897 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
898 (dwarf2_compile_property_to_c): Likewise
899 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
900 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
903 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
905 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
906 * tui/tui-data.c (init_content_element): Don't initialize it.
908 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
910 * tui/tui-data.h (struct tui_win_info)
911 <detail::opaque>: Remove.
912 * tui/tui-data.c (init_win_info): Remove assignment.
914 2018-09-05 Tom Tromey <tom@tromey.com>
916 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
918 * target-float.c (host_float_ops<T>::to_string)
919 (host_float_ops<T>::from_string): Use
920 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
921 * configure: Rebuild.
923 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
925 * printcmd.c (printf_c_string): Use
926 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
927 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
929 2018-09-05 Tom Tromey <tom@tromey.com>
931 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
933 2018-09-05 Tom de Vries <tdevries@suse.de>
935 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
936 with resolve_abstract_p == true.
937 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
938 defaulting to false. Propagate resolve_abstract_p to
939 dwarf2_fetch_die_loc_sect_off.
940 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
941 parameter, defaulting to false.
942 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
943 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
945 * dwarf2read.h (struct die_info): Forward-declare.
946 (die_info_ptr): New typedef.
947 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
949 2018-09-05 Joel Brobecker <brobecker@adacore.com>
953 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
954 Pedro Alves <palves@redhat.com>
956 * gnulib/Makefile.in (aclocal_m4_deps): Move to
957 "aclocal-m4-deps.mk". Include file here.
958 $(srcdir)/aclocal.m4: Add "configure.ac".
959 * gnulib/aclocal-m4-deps.mk: New file.
960 * gnulib/update-gnulib.sh: Automatically update
961 "aclocal-m4-deps.mk".
963 2018-09-04 Tom Tromey <tom@tromey.com>
965 * configure: Rebuild.
966 * configure.ac: Remove multi-ice code.
968 2018-09-04 Tom Tromey <tom@tromey.com>
970 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
973 2018-09-04 Tom Tromey <tom@tromey.com>
975 * Makefile.in (printcmd.o, target-float.o): Remove.
976 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
978 2018-09-04 Tom Tromey <tom@tromey.com>
980 * gnulib/Makefile.in: Remove obsolete comment.
981 * Makefile.in: Remove obsolete comment.
983 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
985 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
988 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
990 * riscv-tdep.c: Add 'prologue-value.h' include.
991 (struct riscv_unwind_cache): New struct.
992 (riscv_debug_unwinder): New global.
993 (riscv_scan_prologue): Update arguments, capture register details
995 (riscv_skip_prologue): Reformat arguments line, move end of
996 prologue calculation into riscv_scan_prologue.
997 (riscv_frame_cache): Update return type, create
998 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1000 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1001 (riscv_frame_prev_register): Use the trad_frame within the
1003 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1006 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1008 * trad-frame.h (trad_frame_set_realreg): Declare.
1009 (trad_frame_set_addr): Declare.
1010 * trad-frame.c (trad_frame_set_realreg): Define new function.
1011 (trad_frame_set_addr): Define new function.
1012 (trad_frame_set_reg_realreg): Use new function.
1013 (trad_frame_set_reg_addr): Use new function.
1015 2018-09-01 Keith Seitz <keiths@redhat.com>
1017 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1018 pulongest instead of "%lld".
1019 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1022 2018-08-31 Tom Tromey <tom@tromey.com>
1024 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1027 2018-08-31 Pedro Alves <palves@redhat.com>
1029 * gdbarch.h: Regenerate.
1031 2018-08-31 Pedro Alves <palves@redhat.com>
1033 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1034 * target.h (Hardware watchpoint interfaces): Describe
1035 continuable/steppable/non-steppable watchpoints.
1036 * gdbarch.h, gdbarch.c: Regenerate.
1038 2018-08-31 Pedro Alves <palves@redhat.com>
1040 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1043 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1044 * target.h (target_ops::have_continuable_watchpoint): Delete.
1045 (target_have_continuable_watchpoint): Delete.
1046 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1047 * target-delegates.c: Regenerate.
1049 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1051 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1052 the files present in "gnulib/import/m4/".
1054 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1056 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1057 c.sw, c.swsp, and c.sdsp.
1059 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1061 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1062 (riscv_read_misa_reg): Don't cache value read into inferior data.
1063 (riscv_new_inferior_data): Delete.
1064 (riscv_inferior_data_cleanup): Delete.
1065 (riscv_inferior_data): Delete.
1066 (riscv_invalidate_inferior_data): Delete.
1067 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1069 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1071 * compile/compile-cplus-types.c
1072 (compile_cplus_instance::leave_scope): Take the address of scope
1074 (compile_cplus_instance::convert_qualified_base): Compare quals
1077 2018-08-30 Keith Seitz <keiths@redhat.com>
1079 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1080 Use "%s" and host_address_to_string instead of "%p" in printf.
1082 2018-08-29 Keith Seitz <keiths@redhat.com>
1084 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1085 and compile-cplus-types.c.
1086 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1087 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1088 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1090 * compile/compile-c-support.c: Include compile-cplus.h.
1091 (load_libcompile): Templatize.
1092 (get_compile_context): "New" function.
1093 (c_get_compile_context): Use get_compile_context.
1094 (cplus_get_compile_context): New function.
1095 (cplus_push_user_expression, cplus_pop_user_expression)
1096 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1097 (cplus_compute_program): Define new structs/functions.
1098 * compile/compile-cplus-symmbols.c: New file.
1099 * compile/compile-cplus-types.c: New file.
1100 * compile/compile-cplus.h: New file.
1101 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1103 * compile/compile-object-load.c (get_out_value_type): Use
1104 strncmp_iw when comparing symbol names.
1105 (compile_object_load): Add mst_bss and mst_data.
1106 * compile/compile.c (_initialize_compile): Remove
1107 -Wno-implicit-function-declaration from `compile_args'.
1108 * compile/gcc-cp-plugin.h: New file.
1109 * NEWS: Mention C++ compile support and new debug options.
1111 2018-08-29 Keith Seitz <keiths@redhat.com>
1113 * linespec.c (collect_info::add_symbol): Make virtual.
1114 (struct symbol_searcher_collect_info): New struct.
1115 (symbol_searcher::find_all_symbols): New method.
1116 * symtab.h (class symbol_searcher): New class.
1118 2018-08-29 Keith Seitz <keiths@redhat.com>
1120 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1121 Change to vector of block_symbol. Update all users.
1122 (struct collect_info) <symbols>: Likewise.
1123 (collect_info::add_symbol): Take block_symbol as argument.
1125 (decode_compound_collector) <m_symbols>: Change type to vector
1126 of block_symbol. Update all users.
1127 (decode_compound_collector::operator ()): Change parameter type
1129 (find_method, find_function_symbols, find_linespec_symbols)
1130 (find_label_symbols_in_block, find_label_symbols): Change symbol
1131 vectors to block_symbol vectors.
1132 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1135 2018-08-29 Keith Seitz <keiths@redhat.com>
1137 * linespec.c (symbolp): Remove typedef and VEC definitions.
1138 (bound_minimal_symbol_d): Likewise.
1140 2018-08-29 Keith Seitz <keiths@redhat.com>
1142 * linespec.c (decode_compound_collector::decode_compound_collector):
1143 Remove initialization for `m_symtabs'.
1144 (decode_compound_collector::release_symbols): Change return type
1145 to std::vector. Update all callers.
1146 (class decode_compound_collector) <m_symbols>: Change type to
1148 (lookup_prefix_sym): Change return type to std::vector. Update all
1150 (compare_symbols): Remove.
1151 (std_compare_symbols): Rename to `compare_symbols'.
1152 (find_method): Change `sym_classes' parameter to std::vector.
1153 Update all callers. Use std::sort to sort sym_classes.
1154 (find_linespec_symbols): Remove cleanup.
1156 2018-08-29 Keith Seitz <keiths@redhat.com>
1158 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1159 std::vector. Update all users.
1160 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1161 (struct collect_info) <minimal_symbols>: Likewise.
1162 (compare_msymbols): Return bool. Change parameters to const
1163 bound_minimal_symbol references.
1164 (find_method, find_function_symbols, find_linespec_symbols): Change
1165 `minsyms' parameter to std::vector. Update all callers.
1167 2018-08-29 Keith Seitz <keiths@redhat.com>
1169 * linespec.c (struct linespec) <label_symbols>: Change type to
1170 std::vector. Update all users.
1171 (find_label_symbols_in_block): Change `result' parameter to
1172 std::vector. Update all callers.
1173 (find_label_symbols): Return std::vector. Update all callers.
1175 2018-08-29 Keith Seitz <keiths@redhat.com>
1177 * linespec.c (struct linespec) <function_symbols>: Change type to
1178 std::vector. Update all users.
1179 (struct collect_info) <function_symbols>: Likewise.
1180 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1181 (std_compare_symbols): New function.
1182 (find_method, find_function_symbols, find_linespec_symbols)
1183 (find_label_symbols_in_block): Change `symbols' parameter to
1184 std::vector. Update all callers.
1185 (find_label_symbols): Likewise for `function_symbols' and
1188 2018-08-29 Keith Seitz <keiths@redhat.com>
1190 * linespec.c (symtab_vector_up): Define.
1191 (struct linespec) <file_symtabs>: Change type to std::vector *.
1193 (struct collect_info) <file_symtabs>: Likewise.
1194 (collect_symtabs_from_filename): Return symtab_vector_up.
1196 (decode_objc): Remove cleanup.
1197 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1198 (symtab_collector::release_symtabs): Return symtab_vector_up.
1200 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1202 (collect_symtabs_from_filename, symtabs_from_filename): Return
1203 symtab_vector_up. Update all callers.
1205 2018-08-29 Tom Tromey <tom@tromey.com>
1207 * csky-tdep.c (csky_analyze_prologue): Use
1208 core_addr_to_string_nz.
1210 2018-08-29 Tom Tromey <tom@tromey.com>
1212 * windows-nat.c (struct xlate_exception) <them>: Change type to
1214 (xlate): Fix formatting. Remove last entry.
1215 (struct xlate_exception, xlate): Comment out.
1216 (windows_nat_target::resume): Use ranged for.
1218 2018-08-29 Jim Wilson <jimw@sifive.com>
1220 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1221 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1223 (riscv_linux_nat_target::store_registers): Likewise.
1225 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1229 * gnulib/aclocal.m4: Regenerate.
1230 * gnulib/config.in: Regenerate.
1231 * gnulib/configure: Regenerate.
1232 * gnulib/import/Makefile.am: Update.
1233 * gnulib/import/Makefile.in: Update.
1234 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1235 * gnulib/import/_Noreturn.h: ... this.
1236 * gnulib/import/alloca.in.h: Update.
1237 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1238 * gnulib/import/arg-nonnull.h: ... this.
1239 * gnulib/import/assure.h: Update.
1240 * gnulib/import/at-func.c: Update.
1241 * gnulib/import/basename-lgpl.c: Update.
1242 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1243 * gnulib/import/c++defs.h: ... this.
1244 * gnulib/import/canonicalize-lgpl.c: Update.
1245 * gnulib/import/cdefs.h: Update.
1246 * gnulib/import/chdir-long.c: Update.
1247 * gnulib/import/chdir-long.h: Update.
1248 * gnulib/import/cloexec.c: Update.
1249 * gnulib/import/cloexec.h: Update.
1250 * gnulib/import/close.c: Update.
1251 * gnulib/import/closedir.c: Update.
1252 * gnulib/import/config.charset: Update.
1253 * gnulib/import/dirent-private.h: Update.
1254 * gnulib/import/dirent.in.h: Update.
1255 * gnulib/import/dirfd.c: Update.
1256 * gnulib/import/dirname-lgpl.c: Update.
1257 * gnulib/import/dirname.h: Update.
1258 * gnulib/import/dosname.h: Update.
1259 * gnulib/import/dup-safer-flag.c: Update.
1260 * gnulib/import/dup-safer.c: Update.
1261 * gnulib/import/dup.c: Update.
1262 * gnulib/import/dup2.c: Update.
1263 * gnulib/import/errno.in.h: Update.
1264 * gnulib/import/error.c: Update.
1265 * gnulib/import/error.h: Update.
1266 * gnulib/import/exitfail.c: Update.
1267 * gnulib/import/exitfail.h: Update.
1268 * gnulib/import/extra/update-copyright: Update.
1269 * gnulib/import/fchdir.c: Update.
1270 * gnulib/import/fcntl.c: Update.
1271 * gnulib/import/fcntl.in.h: Update.
1272 * gnulib/import/fd-hook.c: Update.
1273 * gnulib/import/fd-hook.h: Update.
1274 * gnulib/import/fd-safer-flag.c: Update.
1275 * gnulib/import/fd-safer.c: Update.
1276 * gnulib/import/fdopendir.c: Update.
1277 * gnulib/import/filename.h: Update.
1278 * gnulib/import/filenamecat-lgpl.c: Update.
1279 * gnulib/import/filenamecat.h: Update.
1280 * gnulib/import/flexmember.h: Update.
1281 * gnulib/import/float+.h: Update.
1282 * gnulib/import/float.c: Update.
1283 * gnulib/import/float.in.h: Update.
1284 * gnulib/import/fnmatch.c: Update.
1285 * gnulib/import/fnmatch.in.h: Update.
1286 * gnulib/import/fnmatch_loop.c: Update.
1287 * gnulib/import/fpucw.h: Update.
1288 * gnulib/import/frexp.c: Update.
1289 * gnulib/import/frexpl.c: Update.
1290 * gnulib/import/fstat.c: Update.
1291 * gnulib/import/fstatat.c: Update.
1292 * gnulib/import/getcwd-lgpl.c: Update.
1293 * gnulib/import/getcwd.c: Update.
1294 * gnulib/import/getdtablesize.c: Update.
1295 * gnulib/import/getlogin_r.c: Update.
1296 * gnulib/import/getprogname.c: Update.
1297 * gnulib/import/getprogname.h: Update.
1298 * gnulib/import/gettext.h: Update.
1299 * gnulib/import/gettimeofday.c: Update.
1300 * gnulib/import/glob-libc.h: Update.
1301 * gnulib/import/glob.c: Update.
1302 * gnulib/import/glob.in.h: Update.
1303 * gnulib/import/glob_internal.h: Update.
1304 * gnulib/import/glob_pattern_p.c: Update.
1305 * gnulib/import/globfree.c: Update.
1306 * gnulib/import/hard-locale.c: Update.
1307 * gnulib/import/hard-locale.h: Update.
1308 * gnulib/import/intprops.h: Update.
1309 * gnulib/import/inttypes.in.h: Update.
1310 * gnulib/import/isnan.c: Update.
1311 * gnulib/import/isnand-nolibm.h: Update.
1312 * gnulib/import/isnand.c: Update.
1313 * gnulib/import/isnanl-nolibm.h: Update.
1314 * gnulib/import/isnanl.c: Update.
1315 * gnulib/import/itold.c: Update.
1316 * gnulib/import/libc-config.h: Update.
1317 * gnulib/import/limits.in.h: Update.
1318 * gnulib/import/localcharset.c: Update.
1319 * gnulib/import/localcharset.h: Update.
1320 * gnulib/import/localtime-buffer.c: Update.
1321 * gnulib/import/localtime-buffer.h: Update.
1322 * gnulib/import/lstat.c: Update.
1323 * gnulib/import/m4/00gnulib.m4: Update.
1324 * gnulib/import/m4/__inline.m4: Update.
1325 * gnulib/import/m4/absolute-header.m4: Update.
1326 * gnulib/import/m4/alloca.m4: Update.
1327 * gnulib/import/m4/builtin-expect.m4: Update.
1328 * gnulib/import/m4/canonicalize.m4: Update.
1329 * gnulib/import/m4/chdir-long.m4: Update.
1330 * gnulib/import/m4/close.m4: Update.
1331 * gnulib/import/m4/closedir.m4: Update.
1332 * gnulib/import/m4/configmake.m4: Update.
1333 * gnulib/import/m4/d-ino.m4: Update.
1334 * gnulib/import/m4/d-type.m4: Update.
1335 * gnulib/import/m4/dirent_h.m4: Update.
1336 * gnulib/import/m4/dirfd.m4: Update.
1337 * gnulib/import/m4/dirname.m4: Update.
1338 * gnulib/import/m4/double-slash-root.m4: Update.
1339 * gnulib/import/m4/dup.m4: Update.
1340 * gnulib/import/m4/dup2.m4: Update.
1341 * gnulib/import/m4/eealloc.m4: Update.
1342 * gnulib/import/m4/environ.m4: Update.
1343 * gnulib/import/m4/errno_h.m4: Update.
1344 * gnulib/import/m4/error.m4: Update.
1345 * gnulib/import/m4/exponentd.m4: Update.
1346 * gnulib/import/m4/exponentl.m4: Update.
1347 * gnulib/import/m4/extensions.m4: Update.
1348 * gnulib/import/m4/extern-inline.m4: Update.
1349 * gnulib/import/m4/fchdir.m4: Update.
1350 * gnulib/import/m4/fcntl-o.m4: Update.
1351 * gnulib/import/m4/fcntl.m4: Update.
1352 * gnulib/import/m4/fcntl_h.m4: Update.
1353 * gnulib/import/m4/fdopendir.m4: Update.
1354 * gnulib/import/m4/filenamecat.m4: Update.
1355 * gnulib/import/m4/flexmember.m4: Update.
1356 * gnulib/import/m4/float_h.m4: Update.
1357 * gnulib/import/m4/fnmatch.m4: Update.
1358 * gnulib/import/m4/fnmatch_h.m4: Update.
1359 * gnulib/import/m4/fpieee.m4: Update.
1360 * gnulib/import/m4/frexp.m4: Update.
1361 * gnulib/import/m4/frexpl.m4: Update.
1362 * gnulib/import/m4/fstat.m4: Update.
1363 * gnulib/import/m4/fstatat.m4: Update.
1364 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1365 * gnulib/import/m4/getcwd-path-max.m4: Update.
1366 * gnulib/import/m4/getcwd.m4: Update.
1367 * gnulib/import/m4/getdtablesize.m4: Update.
1368 * gnulib/import/m4/getlogin.m4: Update.
1369 * gnulib/import/m4/getlogin_r.m4: Update.
1370 * gnulib/import/m4/getpagesize.m4: Update.
1371 * gnulib/import/m4/getprogname.m4: Update.
1372 * gnulib/import/m4/gettimeofday.m4: Update.
1373 * gnulib/import/m4/glibc21.m4: Update.
1374 * gnulib/import/m4/glob.m4: Update.
1375 * gnulib/import/m4/glob_h.m4: Update.
1376 * gnulib/import/m4/gnulib-cache.m4: Update.
1377 * gnulib/import/m4/gnulib-common.m4: Update.
1378 * gnulib/import/m4/gnulib-comp.m4: Update.
1379 * gnulib/import/m4/gnulib-tool.m4: Update.
1380 * gnulib/import/m4/hard-locale.m4: Update.
1381 * gnulib/import/m4/include_next.m4: Update.
1382 * gnulib/import/m4/inttypes-pri.m4: Update.
1383 * gnulib/import/m4/inttypes.m4: Update.
1384 * gnulib/import/m4/isnand.m4: Update.
1385 * gnulib/import/m4/isnanl.m4: Update.
1386 * gnulib/import/m4/largefile.m4: Update.
1387 * gnulib/import/m4/limits-h.m4: Update.
1388 * gnulib/import/m4/localcharset.m4: Update.
1389 * gnulib/import/m4/locale-fr.m4: Update.
1390 * gnulib/import/m4/locale-ja.m4: Update.
1391 * gnulib/import/m4/locale-zh.m4: Update.
1392 * gnulib/import/m4/localtime-buffer.m4: Update.
1393 * gnulib/import/m4/longlong.m4: Update.
1394 * gnulib/import/m4/lstat.m4: Update.
1395 * gnulib/import/m4/malloc.m4: Update.
1396 * gnulib/import/m4/malloca.m4: Update.
1397 * gnulib/import/m4/math_h.m4: Update.
1398 * gnulib/import/m4/mbrtowc.m4: Update.
1399 * gnulib/import/m4/mbsinit.m4: Update.
1400 * gnulib/import/m4/mbsrtowcs.m4: Update.
1401 * gnulib/import/m4/mbstate_t.m4: Update.
1402 * gnulib/import/m4/memchr.m4: Update.
1403 * gnulib/import/m4/memmem.m4: Update.
1404 * gnulib/import/m4/mempcpy.m4: Update.
1405 * gnulib/import/m4/memrchr.m4: Update.
1406 * gnulib/import/m4/mkdir.m4: Update.
1407 * gnulib/import/m4/mkstemp.m4: Update.
1408 * gnulib/import/m4/mmap-anon.m4: Update.
1409 * gnulib/import/m4/mode_t.m4: Update.
1410 * gnulib/import/m4/msvc-inval.m4: Update.
1411 * gnulib/import/m4/msvc-nothrow.m4: Update.
1412 * gnulib/import/m4/multiarch.m4: Update.
1413 * gnulib/import/m4/nocrash.m4: Update.
1414 * gnulib/import/m4/off_t.m4: Update.
1415 * gnulib/import/m4/onceonly.m4: Update.
1416 * gnulib/import/m4/open-cloexec.m4: Update.
1417 * gnulib/import/m4/open.m4: Update.
1418 * gnulib/import/m4/openat.m4: Update.
1419 * gnulib/import/m4/opendir.m4: Update.
1420 * gnulib/import/m4/pathmax.m4: Update.
1421 * gnulib/import/m4/rawmemchr.m4: Update.
1422 * gnulib/import/m4/readdir.m4: Update.
1423 * gnulib/import/m4/readlink.m4: Update.
1424 * gnulib/import/m4/realloc.m4: Update.
1425 * gnulib/import/m4/rename.m4: Update.
1426 * gnulib/import/m4/rewinddir.m4: Update.
1427 * gnulib/import/m4/rmdir.m4: Update.
1428 * gnulib/import/m4/save-cwd.m4: Update.
1429 * gnulib/import/m4/secure_getenv.m4: Update.
1430 * gnulib/import/m4/setenv.m4: Update.
1431 * gnulib/import/m4/signal_h.m4: Update.
1432 * gnulib/import/m4/ssize_t.m4: Update.
1433 * gnulib/import/m4/stat-time.m4: Update.
1434 * gnulib/import/m4/stat.m4: Update.
1435 * gnulib/import/m4/std-gnu11.m4: Update.
1436 * gnulib/import/m4/stdbool.m4: Update.
1437 * gnulib/import/m4/stddef_h.m4: Update.
1438 * gnulib/import/m4/stdint.m4: Update.
1439 * gnulib/import/m4/stdio_h.m4: Update.
1440 * gnulib/import/m4/stdlib_h.m4: Update.
1441 * gnulib/import/m4/strchrnul.m4: Update.
1442 * gnulib/import/m4/strdup.m4: Update.
1443 * gnulib/import/m4/strerror.m4: Update.
1444 * gnulib/import/m4/string_h.m4: Update.
1445 * gnulib/import/m4/strstr.m4: Update.
1446 * gnulib/import/m4/strtok_r.m4: Update.
1447 * gnulib/import/m4/sys_socket_h.m4: Update.
1448 * gnulib/import/m4/sys_stat_h.m4: Update.
1449 * gnulib/import/m4/sys_time_h.m4: Update.
1450 * gnulib/import/m4/sys_types_h.m4: Update.
1451 * gnulib/import/m4/tempname.m4: Update.
1452 * gnulib/import/m4/time_h.m4: Update.
1453 * gnulib/import/m4/unistd-safer.m4: Update.
1454 * gnulib/import/m4/unistd_h.m4: Update.
1455 * gnulib/import/m4/warn-on-use.m4: Update.
1456 * gnulib/import/m4/wchar_h.m4: Update.
1457 * gnulib/import/m4/wchar_t.m4: Update.
1458 * gnulib/import/m4/wctype_h.m4: Update.
1459 * gnulib/import/m4/wint_t.m4: Update.
1460 * gnulib/import/malloc.c: Update.
1461 * gnulib/import/malloc/scratch_buffer.h: Update.
1462 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1463 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1464 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1465 * gnulib/import/malloca.c: Update.
1466 * gnulib/import/malloca.h: Update.
1467 * gnulib/import/malloca.valgrind: Update.
1468 * gnulib/import/math.in.h: Update.
1469 * gnulib/import/mbrtowc.c: Update.
1470 * gnulib/import/mbsinit.c: Update.
1471 * gnulib/import/mbsrtowcs-impl.h: Update.
1472 * gnulib/import/mbsrtowcs-state.c: Update.
1473 * gnulib/import/mbsrtowcs.c: Update.
1474 * gnulib/import/memchr.c: Update.
1475 * gnulib/import/memmem.c: Update.
1476 * gnulib/import/mempcpy.c: Update.
1477 * gnulib/import/memrchr.c: Update.
1478 * gnulib/import/mkdir.c: Update.
1479 * gnulib/import/mkstemp.c: Update.
1480 * gnulib/import/msvc-inval.c: Update.
1481 * gnulib/import/msvc-inval.h: Update.
1482 * gnulib/import/msvc-nothrow.c: Update.
1483 * gnulib/import/msvc-nothrow.h: Update.
1484 * gnulib/import/open.c: Update.
1485 * gnulib/import/openat-die.c: Update.
1486 * gnulib/import/openat-priv.h: Update.
1487 * gnulib/import/openat-proc.c: Update.
1488 * gnulib/import/openat.c: Update.
1489 * gnulib/import/openat.h: Update.
1490 * gnulib/import/opendir.c: Update.
1491 * gnulib/import/pathmax.h: Update.
1492 * gnulib/import/pipe-safer.c: Update.
1493 * gnulib/import/rawmemchr.c: Update.
1494 * gnulib/import/readdir.c: Update.
1495 * gnulib/import/readlink.c: Update.
1496 * gnulib/import/realloc.c: Update.
1497 * gnulib/import/ref-add.sin: Update.
1498 * gnulib/import/ref-del.sin: Update.
1499 * gnulib/import/rename.c: Update.
1500 * gnulib/import/rewinddir.c: Update.
1501 * gnulib/import/rmdir.c: Update.
1502 * gnulib/import/same-inode.h: Update.
1503 * gnulib/import/save-cwd.c: Update.
1504 * gnulib/import/save-cwd.h: Update.
1505 * gnulib/import/scratch_buffer.h: Update.
1506 * gnulib/import/secure_getenv.c: Update.
1507 * gnulib/import/setenv.c: Update.
1508 * gnulib/import/signal.in.h: Update.
1509 * gnulib/import/stat-time.c: Update.
1510 * gnulib/import/stat-time.h: Update.
1511 * gnulib/import/stat-w32.c: Update.
1512 * gnulib/import/stat-w32.h: Update.
1513 * gnulib/import/stat.c: Update.
1514 * gnulib/import/stdbool.in.h: Update.
1515 * gnulib/import/stddef.in.h: Update.
1516 * gnulib/import/stdint.in.h: Update.
1517 * gnulib/import/stdio.in.h: Update.
1518 * gnulib/import/stdlib.in.h: Update.
1519 * gnulib/import/str-two-way.h: Update.
1520 * gnulib/import/strchrnul.c: Update.
1521 * gnulib/import/strdup.c: Update.
1522 * gnulib/import/streq.h: Update.
1523 * gnulib/import/strerror-override.c: Update.
1524 * gnulib/import/strerror-override.h: Update.
1525 * gnulib/import/strerror.c: Update.
1526 * gnulib/import/string.in.h: Update.
1527 * gnulib/import/stripslash.c: Update.
1528 * gnulib/import/strnlen1.c: Update.
1529 * gnulib/import/strnlen1.h: Update.
1530 * gnulib/import/strstr.c: Update.
1531 * gnulib/import/strtok_r.c: Update.
1532 * gnulib/import/sys_stat.in.h: Update.
1533 * gnulib/import/sys_time.in.h: Update.
1534 * gnulib/import/sys_types.in.h: Update.
1535 * gnulib/import/tempname.c: Update.
1536 * gnulib/import/tempname.h: Update.
1537 * gnulib/import/time.in.h: Update.
1538 * gnulib/import/unistd--.h: Update.
1539 * gnulib/import/unistd-safer.h: Update.
1540 * gnulib/import/unistd.in.h: Update.
1541 * gnulib/import/unsetenv.c: Update.
1542 * gnulib/import/verify.h: Update.
1543 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1544 * gnulib/import/wchar.in.h: Update.
1545 * gnulib/import/wctype.in.h: Update.
1546 * gnulib/import/xalloc-oversized.h: Update.
1547 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1548 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1550 2018-08-16 Gary Benson <gbenson@redhat.com>
1553 * gdb/main.c (captured_main_1): Exit with nonzero status
1554 in batch mode if the last command to be executed failed.
1555 * NEWS: Mention the above.
1557 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1559 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1560 end of warning message.
1562 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1565 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1566 (aarch64_extract_return_value): Use
1567 aapcs_is_vfp_call_or_return_candidate.
1568 (aarch64_return_in_memory): Likewise.
1569 (aarch64_store_return_value): Likewise.
1571 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1574 (aapcs_is_vfp_call_or_return_candidate): Make static
1575 (pass_in_v_or_stack): Remove function.
1576 (pass_in_v_vfp_candidate): New function.
1577 (aarch64_push_dummy_call): Check for float register candidates.
1579 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1581 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1582 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1583 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1585 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1588 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1589 (struct ipa_sym_addresses): Rename to...
1590 (struct ipa_sym_addresses_common): ... this.
1591 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1593 2018-08-28 Tom Tromey <tom@tromey.com>
1595 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1596 (token_fifo): Now a std::vector.
1597 (yylex, c_parse): Update.
1598 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1599 (token_fifo): Now a std::vector.
1600 (yylex, d_parse): Update.
1601 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1602 (token_fifo): Now a std::vector.
1603 (yylex, go_parse): Update.
1605 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1607 * parser-defs.h (struct type_stack) <elements>: Change type to
1608 std::vector<union type_stack_elt>.
1609 <depth, size>: Remove.
1610 * parse.c (parse_exp_in_context_1): Adjust.
1611 (type_stack_reserve): Remove.
1612 (check_type_stack_depth): Remove.
1613 (insert_into_type_stack): Adjust to std::vector.
1614 (insert_type): Likewise.
1615 (push_type): Likewise.
1616 (push_type_int): Likewise.
1617 (insert_type_address_space): Likewise.
1618 (pop_type): Likewise.
1619 (pop_type_int): Likewise.
1620 (pop_typelist): Likewise.
1621 (pop_type_stack): Likewise.
1622 (append_type_stack): Likewise.
1623 (push_type_stack): Likewise.
1624 (get_type_stack): Likewise.
1625 (type_stack_cleanup): Likewise.
1626 (push_typelist): Likewise.
1627 (follow_types): Likewise.
1628 (_initialize_parse): Likewise.
1630 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1632 * NEWS: Mention csky target.
1634 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1635 Hafiz Abid Qadeer <abidh@codesourcery.com>
1636 Don Breazeal <donb@codesourcery.com>
1638 * csky-linux-tdep.c: New file.
1639 * csky-tdep.c: Likewise.
1640 * csky-tdep.h: Likewise.
1641 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1643 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1644 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1645 * configure.tgt: Add csky support.
1647 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1649 * python/py-framefilter.c (py_print_frame): Print frame architecture
1650 when printing on an MI output.
1652 2018-08-27 Tom Tromey <tom@tromey.com>
1655 * configure: Rebuild.
1656 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1658 2018-08-27 Tom Tromey <tom@tromey.com>
1660 * aarch64-linux-tdep.c
1661 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1664 2018-08-27 Tom Tromey <tom@tromey.com>
1666 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1668 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1669 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1670 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1671 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1674 2018-08-27 Tom Tromey <tom@tromey.com>
1676 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1677 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1679 2018-08-27 Tom Tromey <tom@tromey.com>
1681 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1682 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1684 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1686 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1688 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1689 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1690 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1692 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1693 (ppc64_linux_sigaction_tramp_frame)
1694 (ppc32_linux_sighandler_tramp_frame)
1695 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1696 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1697 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1698 * mn10300-linux-tdep.c (am33_linux_sigframe)
1699 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1700 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1701 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1702 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1703 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1704 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1705 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1706 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1707 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1708 * microblaze-linux-tdep.c
1709 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1710 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1711 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1712 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1713 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1714 * common/common-types.h (ULONGEST_MAX): New define.
1715 (CORE_ADDR_MAX): Fix formatting.
1716 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1717 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1718 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1719 (arm_linux_rt_sigreturn_tramp_frame)
1720 (arm_eabi_linux_sigreturn_tramp_frame)
1721 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1722 (thumb2_eabi_linux_sigreturn_tramp_frame)
1723 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1724 (arm_linux_restart_syscall_tramp_frame)
1725 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1726 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1727 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1729 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1731 2018-08-27 Tom Tromey <tom@tromey.com>
1733 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1735 * mips-tdep.c (mips_deal_with_atomic_sequence)
1736 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1737 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1738 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1739 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1741 * aarch64-tdep.c (aarch64_software_single_step): Use
1744 2018-08-27 Tom Tromey <tom@tromey.com>
1746 * linespec.c (complete_linespec_component): Add cast to "char".
1747 * completer.c (completion_tracker::build_completion_result): Add
1750 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1752 * solist.h (struct solist, struct target_so_ops): Fix
1755 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1757 * ada-tasks.c (ada_task_info_s): Remove typedef.
1758 (DEF_VEC_O(ada_task_info_s)): Remove.
1759 (struct ada_tasks_inferior_data): Initialize fields.
1760 <task_list>: Make an std::vector.
1761 (get_ada_tasks_inferior_data): Allocate with new.
1762 (ada_get_task_number): Adjust.
1763 (get_task_number_from_id): Likewise.
1764 (valid_task_id): Likewise.
1765 (ada_get_task_info_from_ptid): Likewise.
1766 (iterate_over_live_ada_tasks): Likewise.
1767 (add_ada_task): Likewise.
1768 (read_known_tasks): Likewise.
1769 (ada_build_task_list): Likewise.
1770 (print_ada_task_info): Likewise.
1771 (info_task): Likewise.
1772 (task_command_1): Likewise.
1774 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1776 * ada-lang.c (add_angle_brackets): Return std::string.
1778 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
1780 * python/py-threadevent.c (py_get_event_thread): Initialize
1783 2018-08-24 Pedro Alves <palves@redhat.com>
1785 * python/py-bpevent.c (create_breakpoint_event_object): Use
1786 copy-initialization.
1787 * python/py-continueevent.c (emit_continue_event): Use
1788 copy-initialization.
1789 * python/py-exitedevent.c (create_exited_event_object): Return a
1791 (emit_exited_event): Use copy-initialization.
1792 * python/py-inferior.c (python_new_inferior)
1793 (python_inferior_deleted, add_thread_object): Use
1794 copy-initialization.
1795 * python/py-infevents.c (create_inferior_call_event_object)
1796 (create_register_changed_event_object)
1797 (create_memory_changed_event_object): Return a gdbpy_ref<>.
1798 (emit_inferior_call_event, emit_memory_changed_event)
1799 (emit_register_changed_event): Use copy-initialization.
1800 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1801 Return a gdbpy_ref<>.
1802 (emit_new_objfile_event): Use copy-initialization.
1803 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
1804 (emit_clear_objfiles_event): Use copy-initialization.
1805 * python/py-signalevent.c (create_signal_event_object): Use
1806 copy-initialization.
1807 * python/py-threadevent.c (create_thread_event_object): Use
1808 copy-initialization.
1810 2018-08-24 Pedro Alves <palves@redhat.com>
1811 Simon Marchi <simon.marchi@ericsson.com>
1814 * python/py-continueevent.c: Include "gdbthread.h".
1815 (create_continue_event_object): Add intro comment. Add 'ptid'
1816 parameter. Use it to find thread to pass to
1817 create_thread_event_object.
1818 (emit_continue_event): Pass PTID down to
1819 create_continue_event_object.
1820 * python/py-event.h (py_get_event_thread): Declare.
1821 (create_thread_event_object): Remove default from 'thread'
1823 * python/py-stopevent.c (create_stop_event_object): Use
1824 py_get_event_thread.
1825 * python/py-threadevent.c (get_event_thread): Rename to ...
1826 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
1827 and use it to find the thread.
1828 (create_thread_event_object): Assert that THREAD isn't null.
1829 Don't find the event thread here.
1831 2018-08-23 Kevin Buettner <kevinb@redhat.com>
1833 * block.h (blockrange, blockranges): New struct declarations.
1834 (struct block): Add new field named `ranges'.
1835 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
1836 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
1837 macros for accessing ranges in struct block.
1838 (make_blockranges): New declaration.
1839 block.c (make_blockranges): New function.
1840 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
1842 * symtab.h (find_pc_partial_function): Add new parameter `block'.
1843 * blockframe.c (cache_pc_function_block): New static global.
1844 (clear_pc_function_cache): Clear cache_pc_function_block.
1845 (find_pc_partial_function): Move comment to symtab.h. Add
1846 support for non-contiguous blocks.
1847 * cli/cli-cmds.c (block.h): Include.
1848 (print_disassembly): Handle printing of non-contiguous blocks.
1849 (disassemble_current_function): Likewise.
1850 (disassemble_command): Likewise.
1852 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
1854 * blockframe.c (get_pc_function_start): Likewise.
1855 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
1856 (gcc_symbol_address): Likewise.
1857 * compile/compile-object-run.c (compile_object_run): Likewise.
1858 * compile/compile.c (get_expr_block_and_pc): Likewise.
1859 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
1860 (func_addr_to_tail_call_list): Likewise.
1861 * findvar.c (default_read_var_value): Likewise.
1862 * inline-frame.c (inline_frame_this_id): Likewise.
1863 (skip-inline_frames): Likewise.
1864 * infcmd.c (until_next_command): Likewise.
1865 * linespec.c (convert_linespec_to_sals): Likewise.
1866 * parse.c (parse_exp_in_context_1): Likewise.
1867 * printcmd.c (build_address_symbolic): likewise.
1868 (info_address_command): Likewise.
1869 symtab.c (find_function_start_sal): Likewise.
1870 (skip_prologue_sal): Likewise.
1871 (find_function_alias_target): Likewise.
1872 (find_gnu_ifunc): Likewise.
1873 * stack.c (find_frame_funname): Likewise.
1874 * symtab.c (fixup_symbol_section): Likewise.
1875 (find_function_start_sal): Likewise.
1876 (skip_prologue_sal): Likewsie.
1877 (find_function_alias_target): Likewise.
1878 (find_gnu_ifunc): Likewise.
1879 * tracepoint.c (info_scope_command): Likewise.
1880 * value.c (value_fn_field): Likewise.
1882 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
1883 in place of find_pc_partial_function.
1884 * blockframe.c (find_function_entry_range_from_pc): New function.
1885 * symtab.h (find_function_entry_range_from_pc): Declare and document.
1886 * objfiles.c (objfile_relocate1): Relocate start and end addresses
1887 for each range in a block.
1890 2018-08-23 Xavier Roirand <roirand@adacore.com>
1892 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
1895 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1897 * solib-svr4.c (read_program_headers_from_bfd): Return
1898 gdb::optional<gdb::byte_vector>.
1899 (svr4_exec_displacement): Adjust.
1901 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1903 * solib-svr4.c (read_program_header): Return
1904 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
1905 (find_program_interpreter): Return
1906 gdb::optional<gdb::byte_vector>.
1907 (scan_dyntag_auxv): Adjust.
1908 (enable_break): Adjust.
1909 (svr4_exec_displacement): Adjust.
1911 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1913 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
1914 * inf-child.c (inf_child_target::terminal_save_inferior): New.
1916 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1918 * guile/scm-string.c (gdbscm_scm_from_printf): Use
1920 * guile/scm-utils.c (gdbscm_printf): Likewise.
1921 * serial.c (serial_printf): Likewise.
1922 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
1924 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
1926 * stack.c (print_frame): Print frame architecture when printing on
1928 * NEWS: Mention new "arch" attribute in frame output.
1930 2018-08-21 Alan Hayward <alan.hayward@arm.com>
1932 * arch/aarch64.h (aarch64_regnum): Update comment.
1934 2018-08-21 Alan Hayward <alan.hayward@arm.com>
1936 * NEWS: Add SVE to 8.2 section.
1938 2018-08-21 Pedro Alves <palves@redhat.com>
1940 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
1941 out from gdbscm_parse_function_args.
1942 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
1943 gdbscm_parse_function_args_1.
1945 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
1948 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
1951 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
1953 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
1955 2018-08-19 Michael Spang <spang@google.com>
1958 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
1959 for PT_TLS segments.
1961 2018-08-18 Kevin Buettner <kevinb@redhat.com>
1963 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
1964 dwarf_variable_value.
1965 * dwarf2-frame.c (class dwarf_expr_executor):
1966 Add override for dwarf_variable_value.
1967 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
1968 (class symbol_needs_eval_context): Likewise.
1969 (indirect_synthetic_pointer): Add forward declaration.
1970 (sect_variable_value): New function.
1971 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
1972 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
1973 for DW_OP_GNU_variable_value.
1975 2018-08-16 Tom Tromey <tom@tromey.com>
1977 * top.c (read_command_file): Update.
1978 (command_line_input): Remove "repeat" argument.
1979 * ada-lang.c (get_selections): Update.
1980 * linespec.c (decode_line_2): Update.
1981 * defs.h (command_line_input): Remove argument.
1982 * cli/cli-script.c (read_next_line): Update.
1983 * python/py-gdb-readline.c: Update.
1985 2018-08-17 Tom Tromey <tom@tromey.com>
1987 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
1990 2018-08-15 Tom Tromey <tom@tromey.com>
1992 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
1994 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
1996 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
1997 If used, use find_pc_partial_function to find address range
1999 * mi/mi-main.c (mi_cmd_list_features): Report
2000 "data-disassemble-a-option" feature.
2001 * NEWS: Mention new -data-disassemble option -a.
2003 2018-08-13 Tom Tromey <tom@tromey.com>
2005 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2007 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2009 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2010 (aarch64_linux_collect_sve_regset): Likewise.
2011 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2012 * regcache.h (regcache_map_entry_size): New function.
2014 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2016 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2017 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2018 (SVE_HEADER_VL_LENGTH): Likewise.
2019 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2020 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2021 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2022 (SVE_HEADER_SIZE_OFFSET): Likewise.
2023 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2024 (SVE_HEADER_VL_OFFSET): Likewise.
2025 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2026 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2027 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2028 (SVE_HEADER_SIZE): Likewise.
2029 (aarch64_linux_core_read_vq): Add function.
2030 (aarch64_linux_core_read_description): Check for SVE section.
2032 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2034 * aarch64-fbsd-tdep.c
2035 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2037 * aarch64-linux-tdep.c
2038 (aarch64_linux_iterate_over_regset_sections): Likewise.
2039 * alpha-linux-tdep.c
2040 (alpha_linux_iterate_over_regset_sections):
2042 (alphanbsd_iterate_over_regset_sections): Likewise.
2044 (amd64fbsd_iterate_over_regset_sections): Likewise.
2045 * amd64-linux-tdep.c
2046 (amd64_linux_iterate_over_regset_sections): Likewise.
2048 (armbsd_iterate_over_regset_sections): Likewise.
2050 (arm_fbsd_iterate_over_regset_sections): Likewise.
2052 (arm_linux_iterate_over_regset_sections): Likewise.
2053 * corelow.c (get_core_registers_cb): Likewise.
2054 (core_target::fetch_registers): Likewise.
2055 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2056 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2057 * gdbarch.h (void): Regenerate.
2058 * gdbarch.sh: Add supply_size and collect_size.
2059 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2060 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2061 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2062 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2063 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2064 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2065 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2066 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2067 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2068 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2069 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2070 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2071 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2072 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2073 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2074 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2075 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2076 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2077 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2078 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2079 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2080 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2081 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2082 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2083 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2084 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2085 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2086 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2087 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2088 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2090 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2092 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2095 2018-08-10 Keith Seitz <keiths@redhat.com>
2097 * compile/compile-c-support.c (add_code_header, add_code_footer):
2098 Move into policy class.
2099 (c_push_user_expression, pop_user_expression_nop)
2100 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2101 (compile_program): New host class.
2102 (c_compile_program): New typedef.
2103 (c_compute_porgram): Use c_compile_program.
2105 2018-08-10 Keith Seitz <keiths@redhat.com>
2107 * compile/compile-internal.h (compile_instance::~compile_instance):
2108 Remove calls to htab_delete.
2109 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2110 * compile.c (compile_instance::compile_instance): Initialize
2111 htab unique pointers.
2112 (compile_instance::get_cached_type, compile_instance::insert_type)
2113 (compile_instance::error_symbol_once): Update for unique_ptr.
2115 2018-08-10 Keith Seitz <keiths@redhat.com>
2117 * compile/compile-c-symbols.c (struct symbol_error)
2118 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2119 (compile_instance::insert_symbol_error)
2120 (compile_instance::error_symbol_once): Move to ...
2121 * compile/compile.c: ... here.
2123 2018-08-10 Keith Seitz <keiths@redhat.com>
2125 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2126 instead of `new_compile_instance'.
2127 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2129 If the symbol error map is not initialized, create it.
2130 (generate_c_for_for_one_symbol): Do not check/initialize
2131 the symbol error map.
2132 * compile/compile-c-types.c (compile_c_instance): Make a class.
2134 (compile_instance::compile_instance): Initialize the type cache.
2135 (get_cached_type): New function.
2136 (insert_type): Update description.
2137 (compile_c_instance::m_default_cflags): Define.
2138 (convert_type): Update description. Use get_cached_type.
2139 (delete_instance): Moved to destructor.
2140 (new_compile_instance): Moved to constructor.
2141 * compile/compile-c.h (compile_c_instance): Make class inheriting
2142 from compile_instance.
2143 <base>: Remove field.
2144 <type_map, symbol_err_map>: Move to base class.
2145 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2146 * compile/compile-internal.h (compile_instance): Make class.
2147 <type_map_t, symbol_err_map_t>: Define.
2148 <fe>: Rename to `m_gcc_fe'.
2149 <scope, block, gcc_target_options>: Add `m_' prefix.
2150 <m_type_map, m_symbol_err_map>: New fields, moved from
2153 (convert_type, new_compile_instance): Remove.
2154 * compile/compile.c (cleanup_compile_instance): Remove.
2155 (compile_to_object): Use unique_ptr to eliminate cleanups.
2156 (compile_instance::set_print_callback, compile_instance::version)
2157 (compile_instance::set_verbose)
2158 (compile_instance::set_driver_filename)
2159 (compile_instance::set_triplet_regexp)
2160 (compile_instance::set_arguments)
2161 (compile_instance::set_source_file)
2162 (compile_instance::compile): Define.
2164 2018-08-10 Keith Seitz <keiths@redhat.com>
2166 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2167 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2168 gcc-c-fe.def to define C plugin.
2169 (delete_instance): Delete `c_plugin'.
2170 (new_compile_instance): Initialize `c_plugin'.
2171 * compile/compile-c.h: Include gcc_c_plugin.h.
2172 (struct compile_c_instance) <c_plugin>: New member.
2173 * gcc-c-plugin.h: New file.
2174 Update all callers with API change.
2176 2018-08-10 Keith Seitz <keiths@redhat.com>
2178 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2179 (HFILES_NO_SRCDIR): ... to here.
2180 Add compile-internal.h and compile-c.h.
2181 * compile/compile-c-support.c: Include compile-c.h.
2182 * compile/compile-c-symbols.c: Include compile-c.h.
2183 (generate_c_for_variable_locations): Update comment.
2184 * compile/compile-c-types.c: Include compile-c.h.
2185 * compile/compile-c.h: New file -- moved C language declarations
2186 from other files here.
2187 * compile/compile-internal.h: Do not include hashtab.h or
2188 common/enum-flags.h.
2189 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2190 (gcc_convert_symbol, gcc_symbol_address)
2191 (generate_c_for_variable_locations, c_get_mode_for_size)
2192 (c_get_range_decl_name): Definitions moved to compile-c.h.
2193 * compile/compile-loc2c.c: Include compile-c.h.
2195 2018-08-10 Keith Seitz <keiths@redhat.com>
2197 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2198 (c_symbol_substitution_name): ... this.
2201 2018-08-10 Keith Seitz <keiths@redhat.com>
2203 * compile/compile-c-support.c (c_compute_program): Use
2204 unique_xmalloc_ptr to eliminate cleanup.
2205 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2206 Return a unique_xmalloc_ptr and eliminate cleanup.
2207 * compile/compile-internal.h (generate_c_for_variable_locations):
2208 Return unique_xmalloc_ptr and update description.
2210 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2212 * corelow.c (core_target::get_core_register_section): Rename
2213 min_size to section_min_size.
2215 2018-08-09 Jim Wilson <jimw@sifive.com>
2217 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2218 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2219 * NEWS: Mention new GNU/Linux RISC-V target.
2220 * configure.host: Add riscv*-*-linux*.
2221 * configure.nat: Add riscv*.
2222 * configure.tgt: Add riscv*-*-linux*.
2223 * riscv-linux-nat.c: New file.
2224 * riscv-linux-tdep.c: New file.
2226 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2228 * infrun.c (resume): Make static, add forward declaration.
2229 (proceed): Update header comment.
2230 * infrun.h (resume): Delete declaration.
2232 2018-08-09 Tom Tromey <tom@tromey.com>
2234 * riscv-tdep.h: Minor formatting fixes.
2236 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2238 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2239 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2240 (test_mkdir_recursive): Likewise.
2241 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2243 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2245 * valarith.c (value_subscripted_rvalue): If an array is not in
2246 memory, and we don't know the upper bound, then we can't know that
2247 the requested element exists or not.
2249 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2251 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2252 (target_options_to_string): Add comment.
2254 2018-08-08 Tom Tromey <tom@tromey.com>
2256 * unittests/scoped_mmap-selftests.c: Check result of "write".
2258 2018-08-08 Jim Wilson <jimw@sifive.com>
2260 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2261 (decode_register_index_short): New.
2262 (decode_j_type_insn, decode_cj_type_insn): New.
2263 (decode_b_type_insn, decode_cb_type_insn): New.
2264 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2265 local xlen. Check xlen when decoding ambiguous compressed insns. In
2266 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2267 is_c_sw_insn instead of is_sw_insn.
2268 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2269 (riscv_software_single_step): New.
2270 * riscv-tdep.h (riscv_software_single_step): Declare.
2272 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2273 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2275 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2278 * target.c (dispose_inferior): Don't dispose of inferiors that are
2281 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2283 * remote.c (remote_target::download_tracepoint): Change char* to
2286 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2288 * target.h (target_options_to_string): Return an std::string.
2289 * target.c (str_comma_list_concat_elem): Return void, use
2291 (do_option): Likewise.
2292 (target_options_to_string): Return an std::string.
2293 * linux-nat.c (linux_nat_target::wait): Adjust.
2294 * target-debug.h (target_debug_print_options): Adjust.
2296 2018-08-07 Tom Tromey <tom@tromey.com>
2298 * Makefile.in (CPPFLAGS): New variable.
2299 (INTERNAL_CPPFLAGS): Use it.
2301 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2303 * NEWS: Mention the index cache.
2305 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2307 * common/pathstuff.h (get_standard_cache_dir): New.
2308 * common/pathstuff.c (get_standard_cache_dir): New.
2309 * build-id.h (build_id_to_string): New.
2310 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2311 DEBUG_STR_SUFFIX): Move to here.
2312 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2313 DEBUG_STR_SUFFIX): Move from there.
2314 (write_psymtabs_to_index): Make non-static, add basename
2315 parameter. Write to temporary files, rename when done.
2316 (save_gdb_index_command): Adjust call to
2317 write_psymtabs_to_index.
2318 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2320 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2321 (get_gdb_index_contents_from_cache): New.
2322 (get_gdb_index_contents_from_cache_dwz): New.
2323 (dwarf2_initialize_objfile): Read index from cache.
2324 (dwarf2_build_psymtabs): Save to index.
2325 * dwarf-index-cache.h: New file.
2326 * dwarf-index-cache.c: New file.
2327 * dwarf-index-write.h: New file.
2329 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2331 * gnulib/aclocal.m4: Re-generate.
2332 * gnulib/config.in: Re-generate.
2333 * gnulib/configure: Re-generate.
2334 * gnulib/import/Makefile.am: Re-generate.
2335 * gnulib/import/Makefile.in: Re-generate.
2336 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2337 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2338 * gnulib/import/m4/mkdir.m4: New file.
2339 * gnulib/import/mkdir.c: New file.
2340 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2343 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2345 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2346 * common/scoped_mmap.c: New file.
2347 * common/scoped_mmap.h (destroy): New method.
2348 (~scoped_mmap, reset): Use destroy.
2349 (scoped_mmap): New move constructor.
2350 (mmap_file): New declaration.
2351 * unittests/scoped_mmap-selftests.c (test_normal,
2352 test_invalid_filename, run_tests): New functions.
2353 (_initialize_scoped_mmap_selftests): Register selftest.
2355 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2357 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2358 (read_gdb_index_from_buffer): ... this. Remove section
2359 parameter, add buffer parameter.
2360 (get_gdb_index_contents_ftype,
2361 get_gdb_index_contents_dwz_ftype): New typedefs.
2362 (dwarf2_read_gdb_index): Add callback parameters to get the
2364 (get_gdb_index_contents_from_section): New.
2365 (dwarf2_initialize_objfile): Update call to
2366 dwarf2_read_gdb_index.
2368 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2370 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2371 (gdb_open_cloexec): Likewise.
2372 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2373 (commandline_from_pid): Likewise.
2374 (linux_xfer_osdata_threads): Likewise.
2375 (linux_xfer_osdata_fds): Likewise.
2376 * ada-lang.c (is_package_name): Likewise.
2377 * auxv.c (procfs_xfer_auxv): Likewise.
2378 * breakpoint.c (print_one_breakpoint_location): Use
2380 (print_one_catch_solib): Use string_printf.
2381 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2382 (add_pe_forwarded_sym): Likewise.
2383 * dwarf2read.c (create_type_unit_group): Likewise.
2384 (build_error_marker_type): Likewise.
2385 * infcall.c (get_function_name): Likewise.
2386 * valprint.c (print_converted_chars_to_obstack): Likewise.
2387 * xtensa-tdep.c (xtensa_register_type): Likewise.
2389 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2391 * remote.c (remote_target::download_tracepoint): Fix format
2394 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2396 * tracefile.c: Include common/byte-vector.h.
2397 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2398 with trace_regblock_size if needed. Update uses of buf.
2400 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2402 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2403 std::vector<unsigned char>.
2404 * tracepoint.c (collection_list::collection_list): Remove
2405 m_regs_mask initializer from initializer list. Resize
2406 m_regs_mask using the largest remote register number.
2407 (collection_list::add_remote_register): Remove size check on
2408 m_regs_mask. Use at to access element.
2409 (collection_list::stringify): Change type of temp_buf to
2410 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2411 stringify the register mask. Use pack_hex_byte for the register
2414 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2416 * tracepoint.h (class collection_list) <add_register>: Remove.
2417 <add_remote_register, add_ax_registers, add_local_register>:
2419 <add_memrange>: Add scope parameter.
2420 * tracepoint.c (encode_actions_1): Likewise.
2421 (collection_list::add_register): Rename to ...
2422 (collection_list::add_remote_register): ... this. Update
2424 (collection_list::add_ax_registers, add_local_register): New
2426 (collection_list::add_memrange): Add scope parameter. Call
2427 add_local_register instead of add_register.
2428 (finalize_tracepoint_aexpr): New function.
2429 (collection_list::collect_symbol): Update calls to add_memrange.
2430 Call add_local_register instead of add_register. Call
2431 add_ax_registers. Call finalize_tracepoint_aexpr.
2432 (encode_actions_1): Get remote regnos for $reg action. Call
2433 add_remote_register, add_ax_registers, and add_local_register.
2434 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2435 (validate_actionline): Call finalize_tracepoint_aexpr.
2437 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2439 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2440 Replace array buf with gdb::char_vector buf, of size
2441 get_remote_packet_size (). Replace references to buf and
2442 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2443 and xsnprintf with snprintf. Raise errors if the buffer is too
2446 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2448 * remote.c (remote_target::download_tracepoint): Fix the has_more
2449 predicate in the QTDP action list iteration.
2451 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2453 * remote.c (remote_target::download_tracepoint): Fix indentation
2456 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2458 * proc-api.c (_initialize_proc_api): Remove c, unused.
2459 * procfs.c (procfs_init_inferior): Remove signals, unused.
2460 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2463 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2464 Andrew Burgess <andrew.burgess@embecosm.com>
2466 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2467 'W_STOPCODE (0)' as this could be ambiguous.
2469 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2471 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2472 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2475 2018-08-02 Tom Tromey <tom@tromey.com>
2478 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2480 (process_structure_scope): Likewise.
2482 2018-08-02 Xavier Roirand <roirand@adacore.com>
2485 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2488 2018-08-02 Tom Tromey <tom@tromey.com>
2490 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2491 (darwin_suspend_inferior, darwin_resume_inferior)
2492 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2493 (darwin_check_new_threads): Check result of get_darwin_inferior.
2495 2018-07-31 Joel Brobecker <brobecker@adacore.com>
2499 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2501 * varobj.c (varobj_get_path_expr_parent): Report an error if
2502 parent is a dynamic varobj.
2504 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2506 * gnulib/aclocal.m4: Re-generate.
2507 * gnulib/config.in: Re-generate.
2508 * gnulib/configure: Re-generate.
2509 * gnulib/import/Makefile.in: Re-generate.
2510 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2511 * gnulib/import/m4/onceonly.m4: Re-generate.
2513 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2515 * target-descriptions.c (struct xml_test_tdesc): New.
2516 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2517 (record_xml_tdesc): Update.
2518 (maintenance_check_xml_descriptions): Update.
2519 * target-descriptions.h (record_xml_tdesc): Update comment.
2521 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2523 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2524 checking array bounds are defined.
2526 2018-07-30 Tom Tromey <tom@tromey.com>
2528 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2529 irreflexivity violation.
2531 2018-07-30 Tom Tromey <tom@tromey.com>
2533 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2534 * value.c (unpack_long): Remove lint code.
2535 * valops.c (value_ind): Remove lint code.
2536 * valarith.c (value_x_binop, value_x_unop, value_equal)
2537 (value_pos): Remove lint code.
2539 2018-07-28 Tom de Vries <tdevries@suse.de>
2541 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2542 with undefined upper bound as <optimized out>.
2544 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2546 * gcore.in: Rename variable "name" to "prefix". Expand
2549 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2551 * windows-nat.c (windows_nat_target::create_inferior): Update to
2552 call close() in global namespace.
2554 2018-07-26 Tom Tromey <tom@tromey.com>
2556 * dwarf-index-write.c (add_address_entry): Don't add objfile
2558 * dbxread.c (find_stab_function): Rename from
2559 find_stab_function_addr. Return a bound_minimal_symbol.
2560 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2561 Don't add objfile offsets.
2562 (end_psymtab): Use raw_text_low, raw_text_high,
2563 MSYMBOL_VALUE_RAW_ADDRESS.
2564 (read_ofile_symtab): Update.
2565 (process_one_symbol): Update.
2566 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2568 (dw2_relocate): Remove.
2569 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2571 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2573 (process_psymtab_comp_unit_reader, add_partial_symbol)
2574 (add_partial_subprogram, dwarf2_ranges_read): Update.
2575 (load_partial_dies): Update.
2576 (add_address_entry): Don't add objfile offsets.
2577 (dwarf2_build_include_psymtabs): Update.
2578 (create_addrmap_from_aranges): Don't add objfile offsets.
2579 (dw2_find_pc_sect_compunit_symtab): Update.
2580 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2581 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2583 (parse_partial_symbols): Don't add objfile offsets. Use
2584 raw_text_low, raw_text_high. Update.
2585 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2586 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2587 or call 'relocate' quick function. Clear psymbol_map.
2588 * psympriv.h (struct partial_symbol) <address>: Add section
2590 <set_unrelocated_address>: Rename from set_address.
2591 <raw_text_low, raw_text_high>: New methods.
2592 <text_low, text_high>: Add objfile parameter.
2593 (add_psymbol_to_bcache): Add 'section' parameter. Call
2594 set_unrelocated_address.
2595 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2596 (find_pc_psymbol): Update.
2597 (fixup_psymbol_section, relocate_psymtabs): Remove.
2598 (dump_psymtab, psym_functions): Update.
2599 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2601 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2602 (start_psymtab_common): Update.
2603 * symfile-debug.c (debug_qf_relocate): Remove.
2604 (debug_sym_quick_functions): Update.
2605 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2606 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2609 2018-07-26 Tom Tromey <tromey@redhat.com>
2611 * dbxread.c (end_psymtab): Use text_high_valid and
2613 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2614 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2615 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2617 <text_low_valid, text_high_valid>: New fields.
2618 <set_text_low, set_text_high>: Update.
2619 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2621 2018-07-26 Tom Tromey <tom@tromey.com>
2623 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2625 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2626 textlow and texthigh fields.
2627 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2629 * mdebugread.c (parse_lines, parse_partial_symbols)
2630 (psymtab_to_symtab_1): Update.
2631 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2632 Rename fields. Update comment. Now private.
2633 <text_low, text_high, set_text_low, set_text_high>: New methods.
2634 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2635 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2636 (start_psymtab_common, maintenance_info_psymtabs)
2637 (maintenance_check_psymtabs): Update.
2638 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2640 (scan_xcoff_symtab): Update.
2642 2018-07-26 Tom Tromey <tromey@redhat.com>
2644 * psympriv.h (struct partial_symbol) <unrelocated_address,
2645 address, set_address>: New methods.
2646 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2647 (fixup_psymbol_section, relocate_psymtabs): Update.
2648 (print_partial_symbols): Add 'objfile' parameter. Update.
2649 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2652 2018-07-26 Tom Tromey <tom@tromey.com>
2654 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2655 (debug_names::write_psymbols): Update.
2656 * psympriv.h (struct partial_symbol): Derive from
2657 general_symbol_info.
2658 <obj_section>: New method.
2659 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2660 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2661 (find_pc_sect_psymbol, fixup_psymbol_section)
2662 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2663 (print_partial_symbols, recursively_search_psymtabs)
2664 (compare_psymbols, psymbol_hash, psymbol_compare)
2665 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2666 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2668 2018-07-26 Tom Tromey <tromey@redhat.com>
2670 * dbxread.c (end_psymtab): Remove dead code.
2672 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2674 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2675 DWARF unwinders are disabled.
2676 * dwarf2-frame.c: Add dwarf2read.h include.
2677 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2679 (dwarf2_frame_unwinders_enabled_p): Define.
2680 (show_dwarf_unwinders_enabled_p): New function.
2681 (_initialize_dwarf2_frame): Register switch to control DWARF
2683 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2684 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2685 (show_dwarf_cmdlist): Remove static keyword.
2686 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2687 (show_dwarf_cmdlist): Declare.
2688 * NEWS: Document new feature.
2690 2018-07-26 Tom de Vries <tdevries@suse.de>
2692 PR breakpoints/23366
2693 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2695 2018-07-26 Tom de Vries <tdevries@suse.de>
2697 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2698 DW_AT_count can't be translated to a dynamic prop.
2700 2018-07-25 Tom de Vries <tdevries@suse.de>
2702 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2705 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2707 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2709 2018-07-25 Joel Brobecker <brobecker@adacore.com>
2711 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2713 2018-07-24 Keith Seitz <keiths@redhat.comt
2716 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2717 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2718 instead of add_symbol_to_list.
2719 (read_file_scope): Call prepare_one_comp_unit before reading
2722 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2724 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2726 2018-07-24 Tom Tromey <tom@tromey.com>
2728 * utils.c (malloc, realloc, free): Don't declare.
2729 * configure, config.in: Rebuild.
2730 * configure.ac: Don't check for declarations of free, malloc, or
2733 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2735 * aarch64-linux-nat.c
2736 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2738 * arm-linux-nat.c (fetch_regs): Likewise.
2739 (store_regs): Likewise.
2740 (fetch_vfp_regs): Likewise.
2741 (store_vfp_regs): Likewise.
2742 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2743 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2744 (arm_linux_nat_target::insert_watchpoint): Likewise.
2745 (arm_linux_nat_target::remove_watchpoint): Likewise.
2746 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2748 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2750 * ppc-linux-nat.c (fetch_register): Likewise.
2751 (fetch_all_gp_regs): Likewise.
2752 (fetch_ppc_registers): Likewise.
2753 (store_all_gp_regs): Likewise.
2754 (store_ppc_registers): Likewise.
2755 (hwdebug_insert_point): Likewise.
2756 (can_use_watchpoint_cond_accel): Likewise.
2757 * remote-sim.c (gdb_os_write_stdout): Likewise.
2759 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2760 Tom Tromey <tom@tromey.com>
2762 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
2764 * configure: Rebuild.
2766 2018-07-22 Tom Tromey <tom@tromey.com>
2768 * regformats/regdat.sh: Define xmltarget_${name} inside
2769 #ifndef IN_PROCESS_AGENT.
2771 2018-07-22 Tom Tromey <tom@tromey.com>
2773 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
2775 2018-07-22 Tom Tromey <tom@tromey.com>
2777 * symfile.c (reread_symbols): Notify iter, not objfile.
2779 2018-07-22 Tom Tromey <tom@tromey.com>
2781 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
2783 (ravenscar_thread_target::prepare_to_store): Likewise.
2785 2018-07-22 Tom Tromey <tom@tromey.com>
2787 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
2788 unused variable. Call value_fetch_lazy when needed.
2789 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2790 Remove unused variable. Call value_fetch_lazy when needed.
2792 2018-07-22 Tom Tromey <tom@tromey.com>
2794 * m32c-tdep.c (mark_dma): Return void.
2795 (make_regs): Remove unused declarations.
2797 2018-07-22 Tom Tromey <tom@tromey.com>
2799 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
2800 cmdscm_get_valid_command_smob_arg_unsafe for effect.
2801 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
2802 bkscm_get_valid_block_smob_arg_unsafe for effect.
2804 2018-07-22 Tom Tromey <tom@tromey.com>
2806 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
2809 2018-07-22 Tom Tromey <tom@tromey.com>
2811 * windows-nat.c (saved_context): Conditionally define.
2812 * remote.c (remote_target::remote_btrace_maybe_reopen):
2813 Conditionally declare "warned".
2814 * inflow.c (sigquit_ours): Conditionally define.
2815 (new_tty): Move "tty" declaration inside #if.
2816 * guile/guile.c (guile_datadir): Conditionally define.
2817 * charset.c (set_be_le_names): Move some declarations inside #if.
2818 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
2820 (parse_xml_btrace_conf): Likewise.
2822 2018-07-22 Tom Tromey <tom@tromey.com>
2824 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
2826 2018-07-22 Tom Tromey <tom@tromey.com>
2828 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
2829 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
2830 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
2831 * buildsym-legacy.c (get_macro_table): Remove unused variable.
2832 * stack.c (frame_apply_level_command): Remove unused variable.
2833 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
2834 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
2835 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
2837 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
2838 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
2839 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
2841 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
2842 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
2844 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
2845 Remove unused variable.
2846 * cli/cli-script.c (recurse_read_control_structure): Remove unused
2848 * common/tdesc.c (print_xml_feature::visit): Remove unused
2850 * compile/compile-object-load.c (store_regs): Remove unused
2852 * complaints.c (clear_complaints): Remove unused variable.
2853 * corelow.c (core_target_open): Remove unused variable.
2854 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
2856 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
2858 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
2860 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
2862 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
2864 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
2866 * ia64-tdep.c (examine_prologue): Remove unused variable.
2867 * infcall.c (run_inferior_call): Remove unused variable.
2868 * inferior.c (exit_inferior): Remove unused variable.
2869 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
2870 * linespec.c (decode_line_2): Remove unused variable.
2871 * linux-nat.c (super_close): Remove.
2872 * linux-tdep.c (linux_info_proc): Remove unused variable.
2873 * mi/mi-main.c (mi_execute_command): Remove unused variable.
2874 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
2875 Remove unused variable.
2876 * parse.c (find_minsym_type_and_address): Remove unused variable.
2877 * printcmd.c (info_symbol_command, printf_floating): Remove unused
2879 * python/py-breakpoint.c (bppy_set_commands): Remove unused
2881 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
2883 * record-btrace.c (record_btrace_target::store_registers): Remove
2885 (cmd_show_record_btrace_cpu): Remove unused variable.
2886 * riscv-tdep.c (riscv_register_reggroup_p)
2887 (riscv_push_dummy_call, riscv_return_value): Remove unused
2889 * rust-exp.y (literal): Remove unused variable.
2890 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
2892 <STRUCTOP_ANONYMOUS>: Likewise.
2893 * s390-linux-tdep.c (s390_linux_init_abi_31)
2894 (s390_linux_init_abi_64): Remove unused variable.
2895 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
2896 (file_select_thread, net_windows_open, _initialize_ser_windows):
2897 Remove unused variables.
2898 * symtab.c (find_pc_sect_line): Remove unused variable.
2899 * target-memory.c (compute_garbled_blocks): Remove unused
2901 (target_write_memory_blocks): Remove unused variable.
2902 * target.c (target_stack::unpush): Remove unused variables.
2903 * tracepoint.c (start_tracing, all_tracepoint_actions)
2904 (merge_uploaded_trace_state_variables)
2905 (print_one_static_tracepoint_marker): Remove unused variable.
2906 * unittests/basic_string_view/element_access/char/1.cc (test01):
2907 Remove unused variable.
2908 * windows-nat.c (windows_continue, windows_add_all_dlls)
2909 (do_initial_windows_stuff, windows_nat_target::create_inferior):
2910 Remove unused variables.
2912 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2914 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
2915 attr_profile in HAVE_ELF.
2916 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
2919 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
2921 * frame.c (frame_register_unwind): Change parameter name.
2922 (frame_unwind_register): Likewise.
2923 (frame_unwind_register_value): Likewise.
2924 (frame_unwind_register_signed): Likewise.
2925 (frame_unwind_register_unsigned): Likewise.
2926 * frame.h (frame_register_unwind): Likewise.
2927 (frame_unwind_register): Likewise.
2928 (frame_unwind_register_value): Likewise.
2929 (frame_unwind_register_signed): Likewise.
2930 (frame_unwind_register_unsigned): Likewise.
2931 (frame_unwind_arch): Likewise.
2933 2018-07-20 Maciej W. Rozycki <macro@mips.com>
2935 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
2938 2018-07-20 Maciej W. Rozycki <macro@mips.com>
2940 * mips-linux-nat.c (mips_linux_nat_target::read_description):
2941 Call `get_ptrace_pid' rather than extracting the ptrace PID by
2944 2018-07-20 Keith Seitz <keiths@redhat.com>
2946 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
2947 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
2948 m_compunit_symtab, m_language>: Add "m_" prefix.
2950 * buildsym.c: Update all uses.
2952 2018-07-20 Tom Tromey <tom@tromey.com>
2954 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
2955 * buildsym.h (record_line_ftype): Remove typedef.
2957 2018-07-20 Tom Tromey <tom@tromey.com>
2959 * buildsym-legacy.h (augment_type_symtab): Don't declare.
2960 (end_expandable_symtab): Likewise.
2961 (end_symtab_get_static_block): Likewise.
2962 (end_symtab_from_static_block): Likewise.
2963 * buildsym-legacy.c (augment_type_symtab): Remove.
2964 (end_expandable_symtab): Remove.
2965 (end_symtab_get_static_block): Remove.
2966 (end_symtab_from_static_block): Remove.
2968 2018-07-20 Tom Tromey <tom@tromey.com>
2970 * dwarf2read.c: Include buildsym.h.
2971 (struct dwarf2_cu) <builder>: New method.
2972 (fixup_go_packaging): Update.
2973 (process_full_comp_unit, process_full_type_unit): Update. Don't
2974 use scoped_free_pendings.
2975 (using_directives): Add "cu" parameter, remove "language".
2976 (read_import_statement, setup_type_unit_groups, )
2977 (read_func_scope, read_lexical_block_scope)
2978 (dwarf2_record_block_ranges, read_namespace): Update.
2979 (lnp_state_machine::lnp_state_machine): Add cu parameter.
2980 (lnp_state_machine::handle_end_sequence): Update.
2981 (class lnp_state_machine) <m_cu>: New member.
2982 <m_record_line_callback>: Remove.
2983 <m_currently_recording_lines>: New member.
2984 (lnp_state_machine::handle_set_file): Update.
2985 (noop_record_line): Remove.
2986 (dwarf_record_line_p): Add cu parameter.
2987 (dwarf_record_line_1, dwarf_finish_line): Likewise.
2988 (lnp_state_machine::record_line)
2989 (lnp_state_machine::lnp_state_machine)
2990 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
2991 (dwarf_decode_lines): Update.
2992 (dwarf2_start_subfile): Add cu parameter.
2993 (dwarf2_start_symtab, new_symbol): Update.
2994 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
2995 Remove dwarf2_per_objfile parameter.
2996 (dwarf_decode_macros): Update.
2998 2018-07-20 Tom Tromey <tom@tromey.com>
3000 * stabsread.c (define_symbol): Update.
3001 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3002 * dwarf2read.c (new_symbol): Update.
3003 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3004 * cp-namespace.c: Include buildsym.h.
3005 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3006 * buildsym-legacy.c (get_buildsym_compunit): New function.
3008 2018-07-20 Tom Tromey <tom@tromey.com>
3010 * xcoffread.c: Include buildsym-legacy.h.
3011 * windows-nat.c: Include buildsym-legacy.h.
3012 * stabsread.c: Include buildsym-legacy.h.
3013 * mdebugread.c: Include buildsym-legacy.h.
3014 * buildsym-legacy.h: New file.
3015 * buildsym-legacy.c: New file, from buildsym.c.
3016 * go32-nat.c: Include buildsym-legacy.h.
3017 * dwarf2read.c: Include buildsym-legacy.h.
3018 * dbxread.c: Include buildsym-legacy.h.
3019 * cp-namespace.c: Include buildsym-legacy.h.
3020 * coffread.c: Include buildsym-legacy.h.
3021 * buildsym.h: Move some contents to buildsym-legacy.h.
3022 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3024 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3026 2018-07-20 Tom Tromey <tom@tromey.com>
3028 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3029 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3030 (buildsym_compunit::buildsym_compunit)
3031 (buildsym_compunit::~buildsym_compunit)
3032 (buildsym_compunit::get_macro_table): Define.
3034 2018-07-20 Tom Tromey <tom@tromey.com>
3036 * buildsym.c (reset_symtab_globals): Remove.
3037 (buildsym_compunit::end_symtab_from_static_block): Update.
3038 (buildsym_compunit::augment_type_symtab): Update.
3039 (end_symtab_from_static_block): Call free_buildsym_compunit.
3040 (augment_type_symtab, end_symtab, end_expandable_symtab):
3043 2018-07-20 Tom Tromey <tom@tromey.com>
3045 * arch-utils.c: Do not include buildsym.h.
3046 * mipsread.c: Do not include buildsym.h.
3047 * machoread.c: Do not include buildsym.h.
3048 * elfread.c: Do not include buildsym.h.
3050 2018-07-20 Tom Tromey <tom@tromey.com>
3052 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3054 (buildsym_compunit): Add new constructor.
3055 (struct buildsym_compunit) <get_last_source_file, finish_block,
3056 record_block_range, start_subfile, patch_subfile_names,
3057 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3058 set_last_source_start_addr, get_last_source_start_addr,
3059 get_local_using_directives, set_local_using_directives,
3060 get_global_using_directives, outermost_context_p,
3061 get_current_context_stack, get_context_stack_depth,
3062 get_current_subfile, get_local_symbols, get_file_symbols,
3063 get_global_symbols, record_debugformat, record_producer,
3064 push_context, pop_context, end_symtab_get_static_block,
3065 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3067 <record_pending_block, finish_block_internal, make_blockvector,
3068 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3072 2018-05-22 Tom Tromey <tom@tromey.com>
3074 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3076 (finish_block_internal): Update.
3078 2018-07-20 Tom Tromey <tom@tromey.com>
3080 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3082 (finish_block_internal): Update.
3084 2018-07-20 Tom Tromey <tom@tromey.com>
3086 * buildsym.h (EXTERN): Don't define or undef.
3087 * buildsym.c (EXTERN): Don't define.
3089 2018-07-20 Tom Tromey <tom@tromey.com>
3091 * buildsym.c: Remove TODO comment.
3093 2018-07-20 Tom Tromey <tom@tromey.com>
3095 * coffread.c (coff_symtab_read): Update.
3096 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3097 (xcoff_new_init): Update.
3098 * mipsread.c (mipscoff_new_init): Update.
3099 * mdebugread.c (mdebug_build_psymtabs): Update.
3100 * elfread.c (elf_new_init): Update.
3101 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3103 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3104 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3105 (stabsect_build_psymtabs): Update.
3106 * buildsym.h (buildsym_init): Don't declare.
3107 * buildsym.c: Update comment.
3108 (prepare_for_building): Remove.
3109 (start_symtab, restart_symtab): Update.
3110 (reset_symtab_globals): Update comment.
3111 (buildsym_init): Remove.
3113 2018-07-20 Tom Tromey <tom@tromey.com>
3115 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3116 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3117 (read_enum_type, common_block_start, common_block_end)
3118 (cleanup_undefined_types_1, finish_global_stabs): Update.
3119 * mdebugread.c (psymtab_to_symtab_1): Update.
3120 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3121 (read_lexical_block_scope, new_symbol): Update.
3122 * dbxread.c (process_one_symbol): Update.
3123 * coffread.c (coff_symtab_read, process_coff_symbol)
3124 (coff_read_enum_type): Update.
3125 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3127 (get_local_symbols, get_file_symbols, get_global_symbols): New
3129 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3131 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3132 (~scoped_free_pendings): Update.
3133 (finish_block, prepare_for_building, reset_symtab_globals)
3134 (end_symtab_get_static_block, end_symtab_with_blockvector)
3135 (augment_type_symtab, push_context): Update.
3136 (get_local_symbols, get_file_symbols, get_global_symbols): New
3138 (buildsym_init): Update.
3140 2018-07-20 Tom Tromey <tom@tromey.com>
3142 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3143 (process_full_type_unit): Likewise.
3144 (dwarf2_start_symtab): Set list_in_scope.
3146 2018-07-20 Tom Tromey <tom@tromey.com>
3148 * dwarf2read.c (process_psymtab_comp_unit_reader)
3149 (build_type_psymtabs_reader): Do not set list_in_scope.
3151 2018-07-20 Tom Tromey <tom@tromey.com>
3153 * buildsym.c (free_pendings): Remove.
3154 (add_symbol_to_list, scoped_free_pendings)
3155 (finish_block_internal, buildsym_init): Update.
3157 2018-07-20 Tom Tromey <tom@tromey.com>
3159 * xcoffread.c (read_xcoff_symtab): Update.
3160 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3162 * dbxread.c (process_one_symbol): Update.
3163 * coffread.c (coff_symtab_read): Update.
3164 * buildsym.h (finish_block): Update.
3165 * buildsym.c (finish_block): Remove "listhead" argument.
3166 (end_symtab_get_static_block): Update.
3168 2018-07-20 Tom Tromey <tom@tromey.com>
3170 * buildsym.h (class scoped_free_pendings): Remove constructor.
3171 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3173 <m_pending_block_obstack, m_pending_blocks>: New members.
3174 (pending_block_obstack, pending_blocks): Remove.
3175 (scoped_free_pendings::scoped_free_pendings): Default.
3176 (~scoped_free_pendings): Update.
3177 (free_pending_blocks): Remove.
3178 (finish_block_internal, record_pending_block, make_blockvector)
3179 (end_symtab_get_static_block, augment_type_symtab, push_context)
3180 (buildsym_init): Update.
3182 2018-07-20 Tom Tromey <tom@tromey.com>
3184 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3185 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3187 (pending_addrmap, pending_addrmap_obstack)
3188 (pending_addrmap_interesting): Remove.
3189 (scoped_free_pendings, record_block_range, make_blockvector)
3190 (prepare_for_building, reset_symtab_globals, buildsym_init):
3193 2018-07-20 Tom Tromey <tom@tromey.com>
3195 * xcoffread.c (process_linenos): Update.
3196 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3197 * mdebugread.c (psymtab_to_symtab_1): Update.
3198 * dwarf2read.c (setup_type_unit_groups)
3199 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3200 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3201 * dbxread.c (process_one_symbol): Update.
3202 * coffread.c (coff_symtab_read, enter_linenos)
3203 (process_coff_symbol): Update.
3204 * buildsym.h (current_subfile): Don't declare.
3205 (get_current_subfile): Declare.
3206 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3208 (start_subfile, free_buildsym_compunit, push_subfile)
3209 (prepare_for_building, start_symtab): Update.
3210 (get_current_subfile): New function.
3212 2018-07-20 Tom Tromey <tom@tromey.com>
3214 * coffread.c (coff_symtab_read): Update.
3215 * xcoffread.c (read_xcoff_symtab): Update.
3216 * dwarf2read.c (new_symbol): Update.
3217 (read_func_scope, read_lexical_block_scope): Update.
3218 * dbxread.c (process_one_symbol): Update.
3219 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3220 (outermost_context_p): Remove macro.
3221 (outermost_context_p, get_current_context_stack)
3222 (get_context_stack_depth): Declare.
3223 (pop_context): Return struct context_stack.
3224 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3226 (context_stack_size): Remove.
3227 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3228 (prepare_for_building, end_symtab_get_static_block)
3229 (augment_type_symtab, push_context): Update.
3230 (pop_context): Return struct context_stack.
3231 (outermost_context_p, get_current_context_stack)
3232 (get_context_stack_depth): New functions.
3233 (buildsym_init): Update.
3235 2018-07-20 Tom Tromey <tom@tromey.com>
3237 * rust-exp.y: Now a pure parser. Update all rules.
3238 (%union): Move earlier.
3239 (current_parser, work_obstack): Remove globals.
3240 (rust_parser, ~rust_parser): Update.
3241 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3242 lex_character, lex_number, lex_string, lex_identifier,
3243 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3244 convert_name, convert_params_to_expression,
3245 convert_ast_to_expression, ast_basic_type, ast_operation,
3246 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3247 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3248 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3249 ast_array_type, ast_slice_type, ast_reference_type,
3250 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3251 (rust_parse): Update.
3252 (rustyyerror, rustyylex): Add parser parameter.
3253 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3254 (rust_lex_stringish_test, rust_lex_test_sequence)
3255 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3256 (rust_lex_test_push_back, rust_lex_tests): Update.
3258 2018-07-19 Pedro Alves <palves@redhat.com>
3260 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3261 gdb::unique_xmalloc_ptr.
3262 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3263 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3264 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3265 copy-initialization.
3266 * guile/scm-pretty-print.c (ppscm_print_children): Use
3267 gdb::unique_xmalloc_ptr instead of cleanups.
3268 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3269 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3270 gdb::unique_xmalloc_ptr.
3271 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3272 Adjust to use gdb::unique_xmalloc_ptr.
3273 * guile/scm-utils.c (extract_arg): Adjust.
3274 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3275 gdb::unique_xmalloc_ptr instead of a cleanup.
3277 2018-07-19 Tom Tromey <tom@tromey.com>
3279 * utils.c (do_value_free_to_mark)
3280 (make_cleanup_value_free_to_mark): Remove.
3281 * utils.h (make_cleanup_value_free_to_mark): Remove.
3283 2018-07-19 Pedro Alves <palves@redhat.com>
3285 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3286 forwarding reference.
3288 2018-07-18 Pedro Alves <palves@redhat.com>
3290 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3291 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3294 2018-07-18 Pedro Alves <palves@redhat.com>
3296 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3298 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3300 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3301 directly instead of a cleanup.
3302 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3303 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3304 (vlscm_binop_gdbthrow): New, factored out from ...
3305 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3306 (vlscm_rich_compare): Use gdbscm_wrap.
3307 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3308 instead of a cleanup.
3309 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3311 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3312 Use xfree directly instead of a cleanup.
3313 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3314 Adjust to use gdbscm_wrap and scoped_value_mark.
3315 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3316 (gdbscm_value_address, gdbscm_value_dereference)
3317 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3319 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3320 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3322 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3323 gdbscm_wrap and scoped_value_mark.
3324 (gdbscm_value_to_string): Use xfree directly instead of a
3325 cleanup. Move 'buffer' unique_ptr to TRY scope.
3326 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3327 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3329 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3330 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3332 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3335 2018-07-18 Tom de Vries <tdevries@suse.de>
3337 * findvar.c (default_read_var_value): Also resolve dynamic type for
3338 LOC_OPTIMIZED_OUT vars.
3340 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3342 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3345 2018-07-17 Tom Tromey <tom@tromey.com>
3347 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3348 (compute_enum_list, pascm_set_param_value_x)
3349 (gdbscm_parameter_value): Update.
3350 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3351 (gdbscm_scm_to_host_string): Update.
3352 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3354 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3355 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3356 * guile/scm-string.c (gdbscm_scm_to_string): Return
3358 (gdbscm_scm_to_host_string): Likewise.
3360 2018-07-17 Tom Tromey <tom@tromey.com>
3362 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3363 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3364 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3365 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3368 2018-07-17 Tom Tromey <tom@tromey.com>
3370 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3371 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3373 * guile/scm-cmd.c (cmdscm_function): Update.
3374 * guile/scm-pretty-print.c
3375 (ppscm_print_exception_unless_memory_error): Update.
3376 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3377 Return unique_xmalloc_ptr.
3379 2018-07-17 Tom Tromey <tom@tromey.com>
3381 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3384 2018-07-17 Jim Wilson <jimw@sifive.com>
3386 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3387 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3388 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3389 unecessary braces after EF_RISCV_RVC test. Delete call to
3390 set_gdbarch_decr_pc_after_break.
3392 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3393 RISCV_LAST_FP_REGNUM + 1.
3394 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3396 2018-07-17 Tom Tromey <tom@tromey.com>
3398 * configure.ac: Remove --disable-gdbcli.
3399 * configure: Rebuild.
3400 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3401 (SUBDIR_CLI_CFLAGS): Remove.
3402 (SFILES): Use SUBDIR_CLI_SRCS.
3403 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3405 2018-07-17 Tom Tromey <tom@tromey.com>
3408 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3410 2018-07-16 Jim Wilson <jimw@sifive.com>
3412 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3414 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3416 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3418 (libunwind_frame_sniffer): Likewise.
3419 (libunwind_frame_prev_register): Likewise.
3420 (libunwind_sigtramp_frame_sniffer): Likewise.
3421 * ia64-tdep.c (ia64_access_reg): Likewise.
3422 (ia64_access_rse_reg): Likewise.
3423 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3424 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3426 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3428 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3430 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3432 * remote-sim.c (gdbsim_target::close,
3433 gdbsim_target::mourn_inferior): Remove unused variables.
3435 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3437 * ia64-tdep.c (ktab_buf): New global.
3438 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3439 (get_kernel_table): Adjust.
3441 2018-07-16 Tom Tromey <tom@tromey.com>
3443 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3444 * dwarf2read.c (using_directives, new_symbol): Use
3445 outermost_context_p.
3446 * dbxread.c (process_one_symbol): Use outermost_context_p.
3447 * coffread.c (coff_symtab_read): Use outermost_context_p.
3449 2018-07-16 Tom Tromey <tom@tromey.com>
3451 * dwarf2read.c (using_directives, read_func_scope)
3452 (read_lexical_block_scope): Update.
3453 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3454 * buildsym.h (local_using_directives, global_using_directives):
3456 (get_local_using_directives, set_local_using_directives)
3457 (get_global_using_directives): Declare.
3458 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3459 m_global_using_directives>: New members.
3460 (finish_block_internal, prepare_for_building)
3461 (reset_symtab_globals, end_symtab_get_static_block)
3462 (push_context): Update.
3463 (get_local_using_directives, set_local_using_directives)
3464 (get_global_using_directives): New functions.
3465 (buildsym_init): Update.
3467 2018-07-16 Tom Tromey <tom@tromey.com>
3469 * xcoffread.c (xcoff_initial_scan): Don't call
3470 free_pending_blocks.
3471 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3472 * buildsym.h (class scoped_free_pendings): Add constructor.
3473 (free_pending_blocks): Don't declare.
3474 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3475 (free_pending_blocks): Now static.
3477 2018-07-16 Tom Tromey <tom@tromey.com>
3479 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3480 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3482 (struct subfile_stack): Remove.
3483 (subfile_stack): Remove.
3484 (push_subfile, pop_subfile, buildsym_init): Update.
3486 2018-07-16 Tom Tromey <tom@tromey.com>
3488 * buildsym.c (push_subfile): Use gdb_assert.
3489 (pop_subfile): Use gdb_assert.
3491 2018-07-16 Tom Tromey <tom@tromey.com>
3493 * buildsym.h (merge_symbol_lists): Remove.
3494 * buildsym.c (merge_symbol_lists): Remove.
3496 2018-07-16 Tom Tromey <tom@tromey.com>
3498 * stabsread.c (scan_file_globals): Update comment.
3499 * stabsread.h (scan_file_globals): Move from buildsym.h.
3500 * buildsym.h (scan_file_globals): Move to stabsread.h.
3502 2018-07-16 Tom Tromey <tom@tromey.com>
3504 * xcoffread.c (xcoff_new_init): Update.
3505 * mipsread.c (mipscoff_new_init): Update.
3506 * mdebugread.c (mdebug_build_psymtabs): Update.
3507 * elfread.c (elf_new_init): Update.
3508 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3509 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3510 * buildsym.h (buildsym_new_init): Don't declare.
3511 * buildsym.c (buildsym_new_init): Remove.
3513 2018-07-16 Tom Tromey <tom@tromey.com>
3515 * stabsread.h (within_function): Move from buildsym.h.
3516 * stabsread.c (start_stabs): Clear within_function.
3517 * coffread.c (coff_start_symtab): Clear within_function.
3518 * buildsym.h (within_function): Move to stabsread.h.
3519 * buildsym.c (prepare_for_building): Update.
3521 2018-07-16 Tom Tromey <tom@tromey.com>
3523 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3524 * dwarf2read.c (dwarf2_start_symtab): Don't set
3525 processing_gcc_compilation.
3526 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3528 2018-07-16 Tom Tromey <tom@tromey.com>
3530 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3531 (next_symbol_text_func): Move from buildsym.h.
3532 * stabsread.c (hashname): Move from buildsym.c.
3533 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3534 (next_symbol_text_func, hashname): Move to stabsread.h.
3535 * buildsym.c: Don't include bcache.h
3536 (hashname): Move to stasbread.c.
3538 2018-07-16 Tom Tromey <tom@tromey.com>
3540 * buildsym.h (context_stack_size): Don't declare.
3541 * buildsym.c (context_stack_size): New global.
3543 2018-07-16 Tom Tromey <tom@tromey.com>
3545 * dbxread.c (processing_acc_compilation): New global.
3546 * buildsym.h (processing_acc_compilation): Don't declare.
3548 2018-07-16 Tom Tromey <tom@tromey.com>
3550 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3551 * dbxread.c (read_ofile_symtab): Update.
3552 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3553 * buildsym.h (last_source_start_addr): Remove.
3554 (set_last_source_start_addr, get_last_source_start_addr):
3556 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3558 (struct buildsym_compunit) <m_last_source_start_addr>: New
3560 (prepare_for_building): Remove start_addr parameter.
3561 (start_symtab, restart_symtab, end_symtab_get_static_block)
3562 (end_symtab_with_blockvector): Update.
3563 (set_last_source_start_addr, get_last_source_start_addr): New
3566 2018-07-16 Tom Tromey <tom@tromey.com>
3568 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3570 (have_line_numbers): Remove.
3571 (record_line, prepare_for_building, end_symtab_get_static_block)
3572 (augment_type_symtab): Update.
3574 2018-07-16 Tom Tromey <tom@tromey.com>
3576 * buildsym.c (~buildsym_compunit): Free the macro table.
3577 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3579 <m_pending_macros>: New member.
3580 (pending_macros): Remove.
3581 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3582 (reset_symtab_globals, end_symtab_get_static_block)
3583 (end_symtab_with_blockvector, augment_type_symtab)
3584 (buildsym_init): Update.
3586 2018-07-16 Tom Tromey <tom@tromey.com>
3588 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3590 (buildsym_compunit::set_last_source_file): New method.
3591 <m_last_source_file>: New member.
3592 (prepare_for_building): Remove "name" parameter.
3593 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3594 (last_source_file): Remove.
3595 (set_last_source_file, get_last_source_file): Update.
3597 2018-07-16 Tom Tromey <tom@tromey.com>
3599 * buildsym.c (prepare_for_building): Add assert.
3601 2018-07-16 Tom Tromey <tom@tromey.com>
3603 * buildsym.c (~buildsym_compunit): Update.
3604 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3605 (start_subfile, patch_subfile_names)
3606 (end_symtab_with_blockvector): Update.
3608 2018-07-16 Tom Tromey <tom@tromey.com>
3610 * buildsym.c (struct buildsym_compunit): Add constructor,
3611 destructor, initializers.
3612 (start_buildsym_compunit): Remove.
3613 (free_buildsym_compunit): Use "delete".
3614 (start_symtab, restart_symtab): Use "new".
3616 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3618 * symfile.c (set_objfile_default_section_offset): Remove struct
3621 2018-07-14 Stafford Horne <shorne@gmail.com>
3623 * (Responsible Maintainers): Add myself as or1k maintainer.
3625 2018-07-13 Tom Tromey <tom@tromey.com>
3627 * symfile.c (set_objfile_default_section_offset): Use extra braces
3630 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3632 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3635 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3637 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3638 unittests/cli-utils-selftests.c
3639 * unittests/cli-utils-selftests.c: New file.
3641 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3643 * NEWS: Mention new commands. Mention change to 'thread apply'.
3645 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3647 * thread.c (thr_try_catch_cmd): New function.
3648 (thread_apply_all_command): Handle qcs flags.
3649 (thread_apply_command): Handle qcs flags.
3650 (taas_command): New function.
3651 (tfaas_command): New function.
3652 (_initialize_thread): Update to setup the new commands 'taas
3653 and 'tfaas'. Change doc string for 'thread apply'.
3655 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3657 * stack.c: (trailing_outermost_frame): New function, mostly
3658 extracted from backtrace_command_1.
3659 (leading_innermost_frame): New function.
3660 (backtrace_command_1): Update to call trailing_outermost_frame.
3661 (frame_apply_command_count): New function.
3662 (frame_apply_level_command): New function.
3663 (frame_apply_all_command): New function.
3664 (frame_apply_command): New function.
3665 (faas_command): New function.
3666 (frame_cmd_list): New variable.
3667 (_initialize_stack): Update to setup the new commands 'frame apply'
3670 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3672 * cli-utils.c (number_or_range_parser::get_number): Only handle
3673 numbers or convenience var as numbers.
3674 (parse_flags): New function.
3675 (parse_flags_qcs): New function.
3676 (number_or_range_parser::finished): Ensure parsing end is detected
3677 before end of string.
3678 * cli-utils.h (parse_flags): New function.
3679 (parse_flags_qcs): New function.
3680 (number_or_range_parser): Remove m_finished bool.
3681 (number_or_range_parser::skip_range): Set m_in_range to false.
3683 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3685 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3688 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3689 Jan Kratochvil <jan.kratochvil@redhat.com>
3690 Paul Fertser <fercerpav@gmail.com>
3691 Tsutomu Seki <sekiriki@gmail.com>
3692 Pedro Alves <palves@redhat.com>
3694 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3695 'unittests/parse-connection-spec-selftests.c'.
3696 (COMMON_SFILES): Add 'common/netstuff.c'.
3697 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3698 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3699 * common/netstuff.c: New file.
3700 * common/netstuff.h: New file.
3701 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3702 (wait_for_connect): Update comment. New parameter
3703 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3704 Use 'sock' directly instead of 'scb->fd'.
3705 (try_connect): New function, with code from 'net_open'.
3706 (net_open): Rewrite main loop to deal with multiple
3707 sockets/addresses. Handle IPv6-style hostnames; implement
3708 support for IPv6 connections.
3709 * unittests/parse-connection-spec-selftests.c: New file.
3711 2018-07-11 Pedro Alves <palves@redhat.com>
3714 * remote.c (remote_target::remote_detach_pid): Call
3715 set_current_process.
3717 2018-07-11 Pedro Alves <palves@redhat.com>
3719 * h8300-tdep.c (h8300_gdbarch_init): Remove
3720 set_gdbarch_ecoff_reg_to_regnum calls.
3722 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3725 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3726 offsets/sizes for static members of a class/struct.
3728 2018-07-11 Alan Hayward <alan.hayward@arm.com>
3730 * target-descriptions.c (tdesc_register_bitsize): Rename.
3731 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3732 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3733 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3735 2018-07-10 Tom Tromey <tom@tromey.com>
3737 * breakpoint.c (moribund_locations): Now static and a
3739 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3740 (build_bpstat_chain, update_global_location_list)
3741 (breakpoint_retire_moribund): Update.
3742 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3745 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3747 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3748 (riscv_register_reggroup_p): Use new function, remove unneeded
3750 (riscv_push_dummy_call): Extend assert to compare against xlen or
3751 flen based on register type.
3753 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3755 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3757 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3759 * remote.c (show_hardware_watchpoint_limit): New function.
3760 (show_hardware_watchpoint_length_limit): New function.
3761 (show_hardware_breakpoint_limit): New function.
3762 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
3763 where appropriate, update help text.
3765 2018-07-09 Tom Tromey <tom@tromey.com>
3767 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
3768 (CLIBS): Don't mention NAT_CLIBS.
3770 2018-07-09 Tom Tromey <tom@tromey.com>
3772 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
3773 (LIBGDB_OBS, clean mostlyclean): Update.
3774 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
3776 2018-07-09 Tom Tromey <tom@tromey.com>
3778 * Makefile.in (%.c: %.y): Use ECHO_YACC.
3779 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
3780 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
3782 2018-07-09 Tom Tromey <tom@tromey.com>
3784 * Makefile.in (ALLDEPFILES): Remove exec.c.
3785 (COMMON_OBS): Remove exec.o.
3786 (COMMON_SFILES): Add exec.c.
3788 2018-07-09 Tom Tromey <tom@tromey.com>
3790 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
3792 2018-07-09 Tom Tromey <tom@tromey.com>
3794 * Makefile.in (clean mostlyclean): Remove stamp-version.
3795 (version.c): Depend on stamp-version.
3796 (stamp-version): New rule, from version.c rule.
3798 2018-07-09 Tom Tromey <tom@tromey.com>
3800 * Makefile.in (init.c): Depend on stamp-init.
3801 (stamp-init): New rule, from init.c rule.
3802 (clean mostlyclean): Remove stamp-init.
3804 2018-07-09 Tom Tromey <tom@tromey.com>
3806 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
3807 SUBDIR_GCC_COMPILE_SRCS.
3809 2018-07-09 Tom Tromey <tom@tromey.com>
3811 * Makefile.in (init.c): Remove some unused sed rules.
3813 2018-07-09 Tom Tromey <tom@tromey.com>
3815 * Makefile.in (TSOBS): Remove.
3816 (INIT_FILES): Update.
3817 (LIBGDB_OBS): Update.
3818 (COMMON_SFILES): Add inflow.c.
3819 (SFILES): Remove inflow.c.
3821 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3823 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
3825 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
3827 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
3828 get_saveloc_name, is_signal_frame_name, step_name,
3829 init_remote_name, create_addr_space_name,
3830 destroy_addr_space_name, search_unwind_table_name,
3831 find_dyn_list_name): Constify.
3833 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
3835 * darwin-nat.c (darwin_pthread_kill): New function.
3836 (darwin_resume_thread): Use darwin_pthread_kill.
3838 2018-07-05 Tom de Vries <tdevries@suse.de>
3840 * macroexp.c (macro_buffer) <operator=>: New member function.
3842 2018-07-04 Tom Tromey <tom@tromey.com>
3844 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
3846 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
3848 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
3849 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
3850 * maint.c: Likewise.
3853 2018-07-04 Joel Brobecker <brobecker@adacore.com>
3855 * NEWS: Create a new section for the next release branch.
3856 Rename the section of the current branch, now that it has
3859 2018-07-04 Joel Brobecker <brobecker@adacore.com>
3861 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
3862 * version.in: Bump version to 8.2.50.DATE-git.
3864 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3865 Pedro Alves <palves@redhat.com>
3867 * linux-nat.c (linux_init_ptrace): Rename to ...
3868 (linux_init_ptrace_procfs): ... this. Call
3869 linux_proc_init_warnings.
3870 (linux_nat_target::post_attach)
3871 (linux_nat_target::post_startup_inferior): Adjust.
3872 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
3873 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
3875 2018-07-04 Tom de Vries <tdevries@suse.de>
3877 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
3879 (read_comp_unit_head): ... here.
3881 2018-07-03 Tom Tromey <tom@tromey.com>
3883 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
3884 (stop_tracing, tstatus_command)
3885 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
3886 (print_one_static_tracepoint_marker): Update.
3887 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
3889 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
3891 (all_tracepoints, static_tracepoints_here): Return std::vector.
3893 2018-07-03 Tom Tromey <tom@tromey.com>
3895 * common/ptid.c (ptid_equal): Remove.
3896 * common/ptid.h (ptid_equal): Don't declare.
3897 * ada-tasks.c: Update.
3898 * breakpoint.c: Update.
3899 * common/agent.c: Update.
3900 * corelow.c: Update.
3901 * darwin-nat-info.c: Update.
3902 * darwin-nat.c: Update.
3904 * dtrace-probe.c: Update.
3905 * dummy-frame.c: Update.
3906 * fbsd-nat.c: Update.
3908 * gdbthread.h: Update.
3909 * gnu-nat.c: Update.
3910 * go32-nat.c: Update.
3911 * inf-loop.c: Update.
3912 * inf-ptrace.c: Update.
3913 * infcall.c: Update.
3917 * linux-fork.c: Update.
3918 * linux-nat.c: Update.
3919 * linux-thread-db.c: Update.
3920 * mi/mi-cmd-var.c: Update.
3921 * mi/mi-interp.c: Update.
3922 * mi/mi-main.c: Update.
3923 * nto-procfs.c: Update.
3924 * ppc-linux-tdep.c: Update.
3926 * python/py-inferior.c: Update.
3927 * python/py-record-btrace.c: Update.
3928 * python/py-record.c: Update.
3929 * ravenscar-thread.c: Update.
3930 * regcache.c: Update.
3931 * remote-sim.c: Update.
3933 * sol-thread.c: Update.
3936 * tui/tui-stack.c: Update.
3938 * windows-nat.c: Update.
3939 * windows-tdep.c: Update.
3941 2018-07-03 Tom Tromey <tom@tromey.com>
3943 * common/ptid.c (ptid_match): Remove.
3944 * common/ptid.h (ptid_match): Don't declare.
3945 * fbsd-nat.c: Update.
3948 * linux-nat.c: Update.
3949 * record-btrace.c: Update.
3950 * regcache.c: Update.
3953 2018-07-03 Tom Tromey <tom@tromey.com>
3955 * common/ptid.c (ptid_tid_p): Remove.
3956 * common/ptid.h (ptid_tid_p): Don't declare.
3957 * sol-thread.c: Update.
3959 2018-07-03 Tom Tromey <tom@tromey.com>
3961 * common/ptid.c (ptid_lwp_p): Remove.
3962 * common/ptid.h (ptid_lwp_p): Don't declare.
3963 * fbsd-nat.c: Update.
3964 * linux-nat.c: Update.
3965 * nat/linux-procfs.c: Update.
3966 * nat/x86-linux-dregs.c: Update.
3967 * sol-thread.c: Update.
3969 2018-07-03 Tom Tromey <tom@tromey.com>
3971 * common/ptid.c (ptid_is_pid): Remove.
3972 * common/ptid.h (ptid_is_pid): Don't declare.
3974 * linux-nat.c: Update.
3975 * mi/mi-interp.c: Update.
3979 2018-07-03 Tom Tromey <tom@tromey.com>
3981 * common/ptid.c (ptid_get_tid): Remove.
3982 * common/ptid.h (ptid_get_tid): Don't declare.
3983 * ada-tasks.c: Update.
3984 * aix-thread.c: Update.
3985 * bsd-uthread.c: Update.
3986 * darwin-nat.c: Update.
3987 * fbsd-nat.c: Update.
3988 * i386-darwin-nat.c: Update.
3990 * linux-tdep.c: Update.
3991 * nto-procfs.c: Update.
3992 * ppc-ravenscar-thread.c: Update.
3993 * python/py-infthread.c: Update.
3994 * ravenscar-thread.c: Update.
3995 * sol-thread.c: Update.
3996 * sparc-ravenscar-thread.c: Update.
3997 * windows-nat.c: Update.
3999 2018-07-03 Tom Tromey <tom@tromey.com>
4001 * common/ptid.c (ptid_get_lwp): Remove.
4002 * common/ptid.h (ptid_get_lwp): Don't declare.
4003 * aarch64-linux-nat.c: Update.
4004 * ada-tasks.c: Update.
4005 * aix-thread.c: Update.
4006 * amd64-linux-nat.c: Update.
4007 * arm-linux-nat.c: Update.
4008 * corelow.c: Update.
4009 * fbsd-nat.c: Update.
4010 * fbsd-tdep.c: Update.
4011 * gnu-nat.c: Update.
4012 * i386-cygwin-tdep.c: Update.
4013 * i386-gnu-nat.c: Update.
4014 * i386-linux-nat.c: Update.
4015 * ia64-linux-nat.c: Update.
4016 * inf-ptrace.c: Update.
4018 * linux-fork.c: Update.
4019 * linux-nat.c: Update.
4020 * linux-tdep.c: Update.
4021 * linux-thread-db.c: Update.
4022 * mips-linux-nat.c: Update.
4023 * nat/aarch64-linux-hw-point.c: Update.
4024 * nat/aarch64-linux.c: Update.
4025 * nat/linux-btrace.c: Update.
4026 * nat/linux-osdata.c: Update.
4027 * nat/linux-procfs.c: Update.
4028 * nat/x86-linux-dregs.c: Update.
4029 * obsd-nat.c: Update.
4030 * ppc-fbsd-nat.c: Update.
4031 * ppc-linux-nat.c: Update.
4033 * python/py-infthread.c: Update.
4034 * ravenscar-thread.c: Update.
4036 * s390-linux-nat.c: Update.
4037 * sol-thread.c: Update.
4038 * sol2-tdep.c: Update.
4039 * spu-linux-nat.c: Update.
4040 * x86-linux-nat.c: Update.
4041 * xtensa-linux-nat.c: Update.
4043 2018-07-03 Tom Tromey <tom@tromey.com>
4045 * common/ptid.c (ptid_get_pid): Remove.
4046 * common/ptid.h (ptid_get_pid): Don't declare.
4047 * aarch64-linux-nat.c: Update.
4048 * ada-lang.c: Update.
4049 * aix-thread.c: Update.
4050 * alpha-bsd-nat.c: Update.
4051 * amd64-fbsd-nat.c: Update.
4052 * amd64-linux-nat.c: Update.
4053 * arm-linux-nat.c: Update.
4054 * arm-nbsd-nat.c: Update.
4056 * break-catch-syscall.c: Update.
4057 * breakpoint.c: Update.
4058 * bsd-uthread.c: Update.
4059 * corelow.c: Update.
4061 * darwin-nat.c: Update.
4062 * fbsd-nat.c: Update.
4063 * fbsd-tdep.c: Update.
4065 * gnu-nat.c: Update.
4066 * hppa-nbsd-nat.c: Update.
4067 * hppa-obsd-nat.c: Update.
4068 * i386-fbsd-nat.c: Update.
4069 * ia64-linux-nat.c: Update.
4070 * inf-ptrace.c: Update.
4072 * inferior.c: Update.
4073 * inferior.h: Update.
4076 * linux-fork.c: Update.
4077 * linux-nat.c: Update.
4078 * linux-tdep.c: Update.
4079 * linux-thread-db.c: Update.
4080 * m68k-bsd-nat.c: Update.
4081 * mi/mi-interp.c: Update.
4082 * mi/mi-main.c: Update.
4083 * mips-linux-nat.c: Update.
4084 * mips-nbsd-nat.c: Update.
4085 * mips64-obsd-nat.c: Update.
4086 * nat/aarch64-linux-hw-point.c: Update.
4087 * nat/aarch64-linux.c: Update.
4088 * nat/linux-btrace.c: Update.
4089 * nat/linux-osdata.c: Update.
4090 * nat/linux-procfs.c: Update.
4091 * nat/x86-linux-dregs.c: Update.
4092 * nto-procfs.c: Update.
4093 * obsd-nat.c: Update.
4094 * ppc-linux-nat.c: Update.
4095 * ppc-nbsd-nat.c: Update.
4096 * ppc-obsd-nat.c: Update.
4097 * proc-service.c: Update.
4099 * python/py-inferior.c: Update.
4100 * python/py-infthread.c: Update.
4101 * ravenscar-thread.c: Update.
4103 * remote-sim.c: Update.
4105 * rs6000-nat.c: Update.
4106 * s390-linux-nat.c: Update.
4107 * sh-nbsd-nat.c: Update.
4108 * sol-thread.c: Update.
4109 * sparc-nat.c: Update.
4110 * sparc64-tdep.c: Update.
4111 * spu-linux-nat.c: Update.
4112 * spu-tdep.c: Update.
4113 * target-debug.h: Update.
4116 * tid-parse.c: Update.
4117 * tracefile-tfile.c: Update.
4118 * vax-bsd-nat.c: Update.
4119 * windows-nat.c: Update.
4120 * x86-linux-nat.c: Update.
4121 * x86-nat.c: Update.
4123 2018-07-03 Tom Tromey <tom@tromey.com>
4125 * common/ptid.c (pid_to_ptid): Remove.
4126 * common/ptid.h (pid_to_ptid): Don't declare.
4127 * aix-thread.c: Update.
4128 * arm-linux-nat.c: Update.
4129 * common/ptid.c: Update.
4130 * common/ptid.h: Update.
4131 * corelow.c: Update.
4133 * darwin-nat.c: Update.
4134 * fbsd-nat.c: Update.
4135 * fork-child.c: Update.
4136 * gnu-nat.c: Update.
4137 * go32-nat.c: Update.
4138 * inf-ptrace.c: Update.
4140 * inferior.c: Update.
4142 * linux-fork.c: Update.
4143 * linux-nat.c: Update.
4144 * nat/aarch64-linux-hw-point.c: Update.
4145 * nat/fork-inferior.c: Update.
4146 * nat/x86-linux-dregs.c: Update.
4147 * nto-procfs.c: Update.
4148 * obsd-nat.c: Update.
4150 * progspace.c: Update.
4152 * rs6000-nat.c: Update.
4153 * s390-linux-nat.c: Update.
4154 * sol-thread.c: Update.
4155 * spu-linux-nat.c: Update.
4158 * tracefile-tfile.c: Update.
4159 * windows-nat.c: Update.
4161 2018-07-03 Tom Tromey <tom@tromey.com>
4163 * common/ptid.h (ptid_build): Don't declare.
4164 * common/ptid.c (ptid_build): Remove.
4165 * aix-thread.c: Update.
4166 * bsd-kvm.c: Update.
4167 * bsd-uthread.c: Update.
4168 * common/agent.c: Update.
4169 * common/ptid.c: Update.
4170 * common/ptid.h: Update.
4171 * corelow.c: Update.
4172 * darwin-nat.c: Update.
4173 * fbsd-nat.c: Update.
4174 * gnu-nat.c: Update.
4175 * linux-fork.c: Update.
4176 * linux-nat.c: Update.
4177 * linux-thread-db.c: Update.
4178 * nat/linux-osdata.c: Update.
4179 * nat/linux-procfs.c: Update.
4180 * nto-procfs.c: Update.
4181 * obsd-nat.c: Update.
4182 * proc-service.c: Update.
4184 * ravenscar-thread.c: Update.
4185 * remote-sim.c: Update.
4187 * sol-thread.c: Update.
4189 * windows-nat.c: Update.
4191 2018-07-03 Tom Tromey <tom@tromey.com>
4193 * infrun.c (follow_exec): Use exit_inferior_silent.
4194 * inferior.c (exit_inferior_num_silent): Remove.
4195 * inferior.h (exit_inferior_num_silent): Don't declare.
4197 2018-07-03 Tom Tromey <tom@tromey.com>
4200 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4201 inferior_ptid on error.
4203 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4204 Simon Marchi <simon.marchi@polymtl.ca>
4207 * disasm.h (gdb_disassembler): Add
4208 `m_disassembler_options_holder'. member
4209 * disasm.c (get_all_disassembler_options): New function.
4210 (gdb_disassembler::gdb_disassembler): Use it.
4211 (gdb_buffered_insn_length_init_dis): Likewise.
4212 (gdb_buffered_insn_length): Adjust accordingly.
4213 (set_disassembler_options): Handle options with arguments.
4214 (show_disassembler_options_sfunc): Likewise. Add a leading new
4215 line if showing options with descriptions.
4216 (disassembler_options_completer): Adapt to using the
4217 `disasm_options_and_args_t' structure.
4218 * mips-tdep.c (mips_disassembler_options): New variable.
4219 (mips_disassembler_options_o32): Likewise.
4220 (mips_disassembler_options_n32): Likewise.
4221 (mips_disassembler_options_n64): Likewise.
4222 (gdb_print_insn_mips): Don't set `disassembler_options'.
4223 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4225 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4226 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4227 `gdbarch_disassembler_options_implicit' and
4228 `gdbarch_valid_disassembler_options'.
4229 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4230 `disasm_options_and_args_t' structure.
4231 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4233 (valid_disassembler_options): Switch from `disasm_options_t' to
4234 the `disasm_options_and_args_t' structure.
4235 * NEWS: Document `set disassembler-options' support for the MIPS
4237 * gdbarch.h: Regenerate.
4238 * gdbarch.c: Regenerate.
4240 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4242 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4244 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4246 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4247 parameter in call to amd64_target_description.
4248 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4249 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4250 (amd64fbsd_init_abi): Likewise.
4251 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4252 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4253 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4254 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4256 2018-06-29 Pedro Alves <palves@redhat.com>
4258 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4259 "segments" parameter.
4260 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4261 (_initialize_amd64_tdep): Update call to
4262 amd64_create_target_description.
4263 (amd64_target_description): Add "segments" parameter. Adjust
4264 the implementation to use it.
4265 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4266 call to amd64_create_target_description.
4267 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4268 * gdb/arch/amd64.h (amd64_create_target_description): Add
4269 "segments" register.
4270 * gdb/arch/amd64.c (amd64_create_target_description): Add
4271 "segments" parameter. Call create_feature_i386_64bit_segments
4272 only if SEGMENTS is true.
4273 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4274 call to amd64_create_target_description.
4276 2018-06-29 Pedro Alves <palves@redhat.com>
4278 * thread.c (thread_target_id_str): New, factored out from ...
4279 (print_thread_info_1): ... here. Use it to compute the max
4280 "Target Id" column width.
4282 2018-06-29 Pedro Alves <palves@redhat.com>
4284 * remote.c (remote_target::extra_thread_info): Delete
4285 'display_buf' and 'n' locals. from the cache, regardless of
4286 packet mechanims is in use. Use cache for qThreadExtra and qP
4289 2018-06-29 Pedro Alves <palves@redhat.com>
4291 * blockframe.c (find_pc_sect_containing_function): New function.
4292 * breakpoint.c (print_breakpoint_location): Don't call
4293 find_pc_sect_function.
4294 * linespec.c (create_sals_line_offset): Record the location's
4296 * linespec.c (convert_address_location_to_sals): Fill in sal's
4297 symbol with find_pc_sect_containing_function.
4298 * symtab.c (find_function_start_sal): Rename to ...
4299 (find_function_start_sal_1): ... this.
4300 (find_function_start_sal): Reimplement as wrapper around
4301 find_function_start_sal_1, and use
4302 find_pc_sect_containing_function to fill in the sal's symbol.
4303 (find_function_start_sal(symbol*, bool)): Adjust.
4304 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4306 (find_pc_sect_containing_function): Declare.
4308 2018-06-29 Pedro Alves <palves@redhat.com>
4310 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4311 true if the the location has no symbol.
4313 2018-06-28 Tom Tromey <tom@tromey.com>
4315 * NEWS: Mention --enable-codesign.
4316 * silent-rules.mk (ECHO_SIGN): New variable.
4317 * configure.ac: Add --enable-codesign.
4318 * configure: Rebuild.
4319 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4320 (gdb$(EXEEXT)): Optionally invoke codesign.
4322 2018-06-28 Pedro Alves <palves@redhat.com>
4324 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4326 (switch_to_thread_no_regs): Adjust comment.
4327 * infcmd.c (stop_pc): Delete.
4328 (post_create_inferior, info_program_command): Replace references
4329 to stop_pc with references to thread_info->suspend.stop_pc.
4330 * inferior.h (stop_pc): Delete declaration.
4331 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4332 (handle_inferior_event_1, handle_signal_stop)
4333 (process_event_stop_test, keep_going_stepped_thread)
4334 (handle_step_into_function, handle_step_into_function_backward)
4335 (print_stop_location): Replace references to stop_pc with
4336 references to thread_info->suspend.stop_pc.
4337 (struct infcall_suspend_state) <stop_pc>: Delete field.
4338 (save_infcall_suspend_state, restore_infcall_suspend_state):
4339 Remove references to inf_stat->stop_pc.
4340 * linux-fork.c (fork_load_infrun_state): Likewise.
4341 * record-btrace.c (record_btrace_set_replay): Likewise.
4342 * record-full.c (record_full_goto_entry): Likewise.
4343 * remote.c (print_one_stopped_thread): Likewise.
4344 * target.c (target_resume): Extend comment.
4345 * thread.c (set_executing_thread): New.
4346 (set_executing): Use it.
4347 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4348 Remove references to stop_pc.
4350 2018-06-28 Pedro Alves <palves@redhat.com>
4352 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4353 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4355 2018-06-28 Tom Tromey <tom@tromey.com>
4357 * coffread.c (coff_symfile_finish): Update.
4358 * xcoffread.c (xcoff_symfile_finish): Update.
4359 * elfread.c (elf_symfile_finish): Update.
4360 * symfile.h (dwarf2_free_objfile): Don't declare.
4361 * dwarf2read.c (_initialize_dwarf2_read): Use
4362 register_objfile_data_with_cleanup.
4363 (dwarf2_free_objfile): Now static. Change signature.
4365 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4367 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4368 option "-o" to add-symbol-file-load to add an offset to each
4369 section's load address.
4370 * symfile.c (set_objfile_default_section_offset): New function.
4372 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4374 * symfile.c (add_symbol_file_command): Make sure that sections
4375 with the same name are sorted in the same order.
4377 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4379 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4380 require the second argument. If omitted, load sections at the
4381 addresses specified in the file.
4383 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4385 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4386 (_initialize_symfile): Add option "-o" to symbol-file to add an
4387 offset to each section of the symbol file.
4389 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4391 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4393 2018-06-27 Tom Tromey <tom@tromey.com>
4395 * stack.c (_initialize_stack): Update "func" help text.
4397 2018-06-27 Tom Tromey <tom@tromey.com>
4399 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4401 (unwind_infopy_str, pyuw_create_unwind_info)
4402 (unwind_infopy_add_saved_register, pyuw_sniffer)
4403 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4405 (struct saved_reg): Add constructor.
4406 <value>: Now a gdbpy_ref<>.
4408 2018-06-27 Tom Tromey <tom@tromey.com>
4410 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4412 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4414 * gdb-gdb.py.in: Format using autopep8.
4416 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4418 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4419 (type_lookup_function): Recognize CORE_ADDR values.
4421 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4423 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4426 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4428 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4431 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4433 * gdb-gdb.py: Move to...
4434 * gdb-gdb.py.in: ... here.
4435 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4436 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4438 (distclean): Remove gdb-gdb.py when cleaning.
4439 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4440 * configure: Re-generate.
4442 2018-06-27 Pedro Alves <palves@redhat.com>
4444 * proc-service.c (get_ps_regcache): New.
4445 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4446 (ps_lsetfpregs): Use it.
4448 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
4451 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4452 (dwarf_decode_lines_1): Adjust.
4454 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4456 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4458 <info_proc>: Likewise.
4460 2018-06-26 Joel Brobecker <brobecker@adacore.com>
4462 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4463 to windows_fetch_one_register, and only handle the case of
4464 fetching one register. Move the code that reloads the context
4465 and iterates over all registers if R is negative to...
4466 (windows_nat_target::fetch_registers): ... here.
4467 (do_windows_store_inferior_registers): Rename to
4468 windows_store_one_register, and only handle the case of storing
4469 one register. Move the code that handles the case where r is
4471 (windows_nat_target::store_registers) ... here.
4473 2018-06-26 Tom Tromey <tom@tromey.com>
4476 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4477 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4479 (rust_internal_print_type): Add podata parameter.
4480 (rust_print_type): Update.
4482 2018-06-26 Tom Tromey <tom@tromey.com>
4484 * typeprint.h (struct print_offset_data) <update, finish,
4485 maybe_print_hole>: New methods.
4486 <indentation>: New constant.
4487 * typeprint.c (print_offset_data::indentation): Define.
4488 (print_offset_data::maybe_print_hole, print_offset_data::update)
4489 (print_offset_data::finish): Move from c-typeprint.c and rename.
4490 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4491 (print_spaces_filtered_with_print_options): Update.
4492 (c_print_type_union_field_offset, maybe_print_hole)
4493 (c_print_type_struct_field_offset): Move to typeprint.c and
4495 (c_type_print_base_struct_union): Update.
4497 2018-06-25 Pedro Alves <palves@redhat.com>
4499 * gdbthread.h (thread_info_ref, delete_thread)
4500 (delete_thread_silent, first_thread_of_inferior)
4501 (any_thread_of_inferior, switch_to_thread)
4502 (enable_thread_stack_temporaries)
4503 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4504 (get_last_thread_stack_temporary)
4505 (value_in_thread_stack_temporaries, can_access_registers_thread):
4506 Spell out "struct thread_info" instead of just "thread_info".
4507 * inferior.h (notice_new_inferior): Likewise.
4509 2018-06-25 Pedro Alves <palves@redhat.com>
4511 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4512 pass thread_info pointer to delete_thread.
4513 (windows_nat_target::detach): Pass inferior pointer to
4515 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4517 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4518 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4519 and pass a thread_info pointer to delete_thread.
4520 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4521 pass thread_info pointer to delete_thread.
4522 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4523 delete_thread_silent call.
4524 * procfs.c (procfs_target::detach): Pass inferior pointer to
4526 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4527 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4528 delete_thread_silent call.
4529 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4530 pass thread_info pointer to delete_thread.
4531 (windows_nat_target::detach): Pass inferior pointer to
4534 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4536 * regcache.c (readable_regcache::read_part): Fix asserts.
4537 (reg_buffer::raw_collect_part): New function.
4538 (regcache::write_part): Fix asserts.
4539 (reg_buffer::raw_supply_part): New function.
4540 (regcache::transfer_regset_register): New helper function.
4541 (regcache::transfer_regset): Call new functions.
4542 (regcache_supply_regset): Use gdb_byte*.
4543 (regcache::supply_regset): Likewise.
4544 (regcache_collect_regset): Likewise.
4545 (regcache::collect_regset): Likewise.
4546 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4547 (reg_buffer::raw_supply_part): Likewise.
4548 (regcache::transfer_regset_register): Likewise.
4549 (regcache::transfer_regset): Use gdb_byte*.
4551 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4553 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4555 2018-06-21 Pedro Alves <palves@redhat.com>
4557 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4558 instead of a ptid_t. All callers adjusted.
4559 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4561 (print_ada_task_info, display_current_task_id, task_command_1):
4563 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4565 (breakpoint_kind): Adjust.
4566 (remove_breakpoints_pid): Rename to ...
4567 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4568 pointer. All callers adjusted.
4569 (bpstat_clear_actions): Use inferior_thread.
4570 (get_bpstat_thread): New.
4571 (bpstat_do_actions): Use it.
4572 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4573 to take a thread_info pointer. All callers adjusted.
4574 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4575 (breakpoint_re_set_thread): Use inferior_thread.
4576 * breakpoint.h (struct inferior): Forward declare.
4577 (bpstat_stop_status): Update.
4578 (remove_breakpoints_pid): Delete.
4579 (remove_breakpoints_inf): New.
4580 * bsd-uthread.c (bsd_uthread_target::wait)
4581 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4582 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4583 (maint_btrace_packet_history_cmd)
4584 (maint_btrace_clear_packet_history_cmd): Adjust.
4585 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4587 * cli/cli-interp.c: Include "inferior.h".
4588 * common/refcounted-object.h (struct
4589 refcounted_object_ref_policy): New.
4590 * compile/compile-object-load.c: Include gdbthread.h.
4591 (store_regs): Use inferior_thread.
4592 * corelow.c (core_target::close): Use current_inferior.
4593 (core_target_open): Adjust to use first_thread_of_inferior and use
4594 the current inferior.
4595 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4596 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4597 <thread>: ... this new field. All references adjusted.
4598 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4599 Take a thread_info pointer instead of a ptid_t.
4600 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4601 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4602 thread_info pointer instead of a ptid_t.
4603 * elfread.c: Include "inferior.h".
4604 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4605 Use inferior_thread.
4606 * eval.c (evaluate_subexp): Likewise.
4607 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4609 * gdb_proc_service.h (struct thread_info): Forward declare.
4610 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4611 <thread>: ... this new field. All references adjusted.
4612 * gdbarch.h, gdbarch.c: Regenerate.
4613 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4614 'thread' parameter. All implementations and callers adjusted.
4615 * gdbthread.h (thread_info) <set_running>: New method.
4616 (delete_thread, delete_thread_silent): Take a thread_info pointer
4618 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4619 (first_thread_of_process): Delete, replaced by ...
4620 (first_thread_of_inferior): ... this new function. All callers
4622 (any_live_thread_of_process): Delete, replaced by ...
4623 (any_live_thread_of_inferior): ... this new function. All callers
4625 (switch_to_thread, switch_to_no_thread): Declare.
4626 (is_executing): Delete.
4627 (enable_thread_stack_temporaries): Update comment.
4628 <enable_thread_stack_temporaries>: Take a thread_info pointer
4629 instead of a ptid_t. Incref the thread.
4630 <~enable_thread_stack_temporaries>: Decref the thread.
4633 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4634 (get_last_thread_stack_temporary)
4635 (value_in_thread_stack_temporaries, can_access_registers_thread):
4636 Take a thread_info pointer instead of a ptid_t. All callers
4638 * infcall.c (get_call_return_value): Use inferior_thread.
4639 (run_inferior_call): Work with thread pointers instead of ptid_t.
4640 (call_function_by_hand_dummy): Work with thread pointers instead
4641 of ptid_t. Use thread_info_ref.
4642 * infcmd.c (proceed_thread_callback): Access thread's state
4644 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4645 access thread's state directly.
4646 (continue_command): Use inferior_thread.
4647 (info_program_command): Use find_thread_ptid and access thread
4649 (proceed_after_attach_callback): Use thread state directly.
4650 (notice_new_inferior): Take a thread_info pointer instead of a
4651 ptid_t. All callers adjusted.
4652 (exit_inferior): Take an inferior pointer instead of a pid. All
4654 (exit_inferior_silent): New.
4655 (detach_inferior): Delete.
4656 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4657 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4658 (detach_inferior_command, kill_inferior_command): Use
4659 find_inferior_id instead of valid_gdb_inferior_id and
4660 gdb_inferior_id_to_pid.
4661 (inferior_command): Use inferior and thread pointers.
4662 * inferior.h (struct thread_info): Forward declare.
4663 (notice_new_inferior): Take a thread_info pointer instead of a
4664 ptid_t. All callers adjusted.
4665 (detach_inferior): Delete declaration.
4666 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4667 instead of a pid. All callers adjusted.
4668 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4669 (valid_gdb_inferior_id): Delete.
4670 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4671 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4672 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4674 <inf>: ... this new field.
4675 <step_ptid>: Delete, replaced by ...
4676 <step_thread>: ... this new field.
4677 (get_displaced_stepping_state): Take an inferior pointer instead
4678 of a pid. All callers adjusted.
4679 (displaced_step_in_progress_any_inferior): Adjust.
4680 (displaced_step_in_progress_thread): Take a thread pointer instead
4681 of a ptid_t. All callers adjusted.
4682 (displaced_step_in_progress, add_displaced_stepping_state): Take
4683 an inferior pointer instead of a pid. All callers adjusted.
4684 (get_displaced_step_closure_by_addr): Adjust.
4685 (remove_displaced_stepping_state): Take an inferior pointer
4686 instead of a pid. All callers adjusted.
4687 (displaced_step_prepare_throw, displaced_step_prepare)
4688 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4689 All callers adjusted.
4690 (start_step_over): Adjust.
4691 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4692 displaced step queue.
4693 (do_target_resume): Adjust.
4694 (fetch_inferior_event): Use inferior_thread.
4695 (context_switch, get_inferior_stop_soon): Take an
4696 execution_control_state pointer instead of a ptid_t. All callers
4698 (switch_to_thread_cleanup): Delete.
4699 (stop_all_threads): Use scoped_restore_current_thread.
4700 * inline-frame.c: Include "gdbthread.h".
4701 (inline_state) <inline_state>: Take a thread pointer instead of a
4702 ptid_t. All callers adjusted.
4703 <ptid>: Delete, replaced by ...
4704 <thread>: ... this new field.
4705 (find_inline_frame_state): Take a thread pointer instead of a
4706 ptid_t. All callers adjusted.
4707 (skip_inline_frames, step_into_inline_frame)
4708 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4709 pointer instead of a ptid_t. All callers adjusted.
4710 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4711 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4712 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4714 * linux-nat.c (get_detach_signal): Likewise.
4715 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4716 (thread_db_notice_clone): Adjust.
4717 (thread_db_find_new_threads_silently)
4718 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4719 a thread pointer instead of a ptid_t. All callers adjusted.
4720 * mi/mi-cmd-var.c: Include "inferior.h".
4721 (mi_cmd_var_update_iter): Update to use thread pointers.
4722 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4724 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4726 (mi_output_running): ... this new function.
4727 (mi_on_resume_1): Adjust to use it.
4728 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4729 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4731 (interrupt_thread_callback): : Adjust to use thread and inferior
4733 * proc-service.c: Include "gdbthread.h".
4734 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4735 * progspace-and-thread.c: Include "inferior.h".
4736 * progspace.c: Include "inferior.h".
4737 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4738 hold a reference to an inferior_object.
4739 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4741 * python/py-inferior.c (struct inferior_object): Give the type a
4742 tag name instead of a typedef.
4743 (python_on_normal_stop): No need to check if the current thread is
4745 (inferior_to_inferior_object): Change return type to
4746 inferior_object. All callers adjusted.
4747 (find_thread_object): Delete, bits factored out to ...
4748 (thread_to_thread_object): ... this new function.
4749 * python/py-infthread.c (create_thread_object): Use
4750 inferior_to_inferior_object.
4751 (thpy_is_stopped): Use thread pointer directly.
4752 (gdbpy_selected_thread): Use inferior_thread.
4753 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4754 field, replaced with ...
4755 <thread>: ... this new field. All users adjusted.
4756 (btpy_insn_or_gap_new): Drop const.
4757 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
4759 * python/py-record.c: Include "gdbthread.h".
4760 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4761 a ptid_t. All callers adjusted.
4762 (gdbpy_current_recording): Use inferior_thread.
4763 * python/py-record.h (recpy_record_object) <ptid>: Delete
4764 field, replaced with ...
4765 <thread>: ... this new field. All users adjusted.
4766 (recpy_element_object) <ptid>: Delete
4767 field, replaced with ...
4768 <thread>: ... this new field. All users adjusted.
4769 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4770 a ptid_t. All callers adjusted.
4771 * python/py-threadevent.c: Include "gdbthread.h".
4772 (get_event_thread): Use thread_to_thread_object.
4773 * python/python-internal.h (struct inferior_object): Forward
4775 (find_thread_object, find_inferior_object): Delete declarations.
4776 (thread_to_thread_object, inferior_to_inferior_object): New
4778 * record-btrace.c: Include "inferior.h".
4779 (require_btrace_thread): Use inferior_thread.
4780 (record_btrace_frame_sniffer)
4781 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
4782 (get_thread_current_frame): Use scoped_restore_current_thread and
4784 (get_thread_current_frame): Use thread pointer directly.
4785 (record_btrace_replay_at_breakpoint): Use thread's inferior
4787 * record-full.c: Include "inferior.h".
4788 * regcache.c: Include "gdbthread.h".
4789 (get_thread_arch_regcache): Use the inferior's address space
4791 (get_thread_regcache, registers_changed_thread): New.
4792 * regcache.h (get_thread_regcache(thread_info *thread)): New
4794 (registers_changed_thread): New.
4795 (remote_target) <remote_detach_1>: Swap order of parameters.
4796 (remote_add_thread): <remote_add_thread>: Return the new thread.
4797 (get_remote_thread_info(ptid_t)): New overload.
4798 (remote_target::remote_notice_new_inferior): Use thread pointers
4800 (remote_target::process_initial_stop_replies): Use
4801 thread_info::set_running.
4802 (remote_target::remote_detach_1, remote_target::detach)
4803 (extended_remote_target::detach): Adjust.
4804 * stack.c (frame_show_address): Use inferior_thread.
4805 * target-debug.h (target_debug_print_thread_info_pp): New.
4806 * target-delegates.c: Regenerate.
4807 * target.c (default_thread_address_space): Delete.
4808 (memory_xfer_partial_1): Use current_inferior.
4809 (target_detach): Use current_inferior.
4810 (target_thread_address_space): Delete.
4811 (generic_mourn_inferior): Use current_inferior.
4812 * target.h (struct target_ops) <thread_address_space>: Delete.
4813 (target_thread_address_space): Delete.
4814 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
4816 (delete_thread_1, delete_thread, delete_thread_silent): Take a
4817 thread pointer instead of a ptid_t. Adjust all callers.
4818 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
4819 (first_thread_of_process): Delete, replaced by ...
4820 (first_thread_of_inferior): ... this new function. All callers
4822 (any_thread_of_process): Rename to ...
4823 (any_thread_of_inferior): ... this, and take an inferior pointer.
4824 (any_live_thread_of_process): Rename to ...
4825 (any_live_thread_of_inferior): ... this, and take an inferior
4827 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4828 (value_in_thread_stack_temporaries)
4829 (get_last_thread_stack_temporary): Take a thread pointer instead
4830 of a ptid_t. Adjust all callers.
4831 (thread_info::set_running): New.
4832 (validate_registers_access): Use inferior_thread.
4833 (can_access_registers_ptid): Rename to ...
4834 (can_access_registers_thread): ... this, and take a thread
4836 (print_thread_info_1): Adjust to compare thread pointers instead
4838 (switch_to_no_thread, switch_to_thread): Make extern.
4839 (scoped_restore_current_thread::~scoped_restore_current_thread):
4840 Use m_thread pointer directly.
4841 (scoped_restore_current_thread::scoped_restore_current_thread):
4842 Use inferior_thread.
4843 (thread_command): Use thread pointer directly.
4844 (thread_num_make_value_helper): Use inferior_thread.
4845 * top.c (execute_command): Use inferior_thread.
4846 * tui/tui-interp.c: Include "inferior.h".
4847 * varobj.c (varobj_create): Use inferior_thread.
4848 (value_of_root_1): Use find_thread_global_id instead of
4849 global_thread_id_to_ptid.
4851 2018-06-21 Alan Hayward <alan.hayward@arm.com>
4853 * regcache.c (readable_regcache::read_part): Avoid memcpy when
4855 (regcache::write_part): Likewise.
4856 (readable_regcache::cooked_read_part): Update comment.
4857 (readable_regcache::cooked_write_part): Likewise.
4858 * regcache.h: (readable_regcache::read_part): Likewise.
4859 (regcache::write_part): Likewise.
4861 2018-06-21 Richard Bunt <richard.bunt@arm.com>
4862 Dirk Schubert <dirk.schubert@arm.com>
4864 * aarch64-linux-nat.c (post_attach): New.
4865 (aarch64_linux_nat_target::post_attach): Override post_attach to
4866 record the number of hardware debug registers.
4868 2018-06-20 Tom Tromey <tom@tromey.com>
4870 * python/py-param.c (add_setshow_generic): Make parameters const.
4871 (parmpy_init): Update.
4873 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4875 * regcache.h (regcache_cooked_read_ftype): Rename to...
4876 (register_read_ftype): ...this, change type to function_view.
4877 (class reg_buffer) <save>: Remove src parameter.
4878 (readonly_detached_regcache) <readonly_detached_regcache>: Make
4879 parameter non-const in first overload. Remove src parameter in
4881 * regcache.c (do_cooked_read): Remove.
4882 (readonly_detached_regcache::readonly_detached_regcache): Make
4883 parameter non-const, adjust call to other constructor.
4884 (reg_buffer::save): Remove src parameter.
4885 * frame.c (do_frame_register_read): Remove.
4886 (frame_save_as_regcache): Use lambda function.
4887 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
4888 parameter to ppu2spu_data *.
4889 (ppu2spu_sniffer): Use lambda function.
4891 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4893 * record-full.c (record_full_target::insert_breakpoint): Remove
4894 "struct" keyword, add const.
4896 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4898 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
4899 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
4900 * configure.ac: Remove AC_PREREQ, add missing quoting.
4901 * gnulib/configure.ac: Modernize usage of
4902 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
4903 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
4904 (AUTOMAKE_VERSION): Bump to 1.15.1.
4905 * configure: Re-generate.
4906 * config.in: Re-generate.
4907 * aclocal.m4: Re-generate.
4908 * gnulib/aclocal.m4: Re-generate.
4909 * gnulib/config.in: Re-generate.
4910 * gnulib/configure: Re-generate.
4911 * gnulib/import/Makefile.in: Re-generate.
4913 2018-06-19 Pedro Alves <palves@redhat.com>
4915 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
4916 (lookup_minimal_symbol_by_pc_section): ... here with
4917 gdb_assert_not_reached added.
4919 2018-06-19 Pedro Alves <palves@redhat.com>
4921 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
4922 parameter with a block parameter. Compare location's block symbol
4923 with the frame's block instead of addresses.
4924 (skip_inline_frames): Pass the current block instead of the
4925 frame's address. Break out as soon as we determine the frame
4926 should not be skipped.
4928 2018-06-18 Tom Tromey <tom@tromey.com>
4930 * solib-aix.c (solib_aix_get_section_offsets): Return
4932 (solib_aix_solib_create_inferior_hook): Update.
4934 2018-06-18 Tom Tromey <tom@tromey.com>
4936 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
4938 2018-06-18 Tom Tromey <tom@tromey.com>
4940 * solib-frv.c (frv_relocate_main_executable): Use
4942 * solib-dsbt.c (dsbt_relocate_main_executable): Use
4945 2018-06-18 Tom Tromey <tom@tromey.com>
4947 * objfiles.h (inhibit_section_map_updates): Update.
4948 (resume_section_map_updates, resume_section_map_updates_cleanup):
4950 * solib-svr4.c (svr4_handle_solib_event): Update.
4951 * objfiles.c (inhibit_section_map_updates): Return
4952 scoped_restore_tmpl<int>.
4953 (resume_section_map_updates, resume_section_map_updates_cleanup):
4956 2018-06-18 Tom Tromey <tom@tromey.com>
4958 * valprint.h (read_string): Update.
4959 * valprint.c (read_string): Change type of "buffer".
4960 (val_print_string): Update.
4961 * python/py-value.c (valpy_string): Update.
4962 * language.h (struct language_defn) <la_get_string>: Change
4964 (default_get_string, c_get_string): Update.
4965 * language.c (default_get_string): Change type of "buffer".
4966 * guile/scm-value.c (gdbscm_value_to_string): Update.
4967 * c-lang.c (c_get_string): Change type of "buffer".
4969 2018-06-18 Tom Tromey <tom@tromey.com>
4971 * ser-mingw.c (struct pipe_state_destroyer): New.
4972 (pipe_state_up): New typedef.
4973 (cleanup_pipe_state): Remove.
4974 (pipe_windows_open): Use pipe_state_up. Don't release argv.
4976 2018-06-18 Tom Tromey <tom@tromey.com>
4978 * rust-lang.h (rust_yyerror): Don't declare.
4979 * rust-lang.c (rust_language_defn): Update.
4980 * rust-exp.y (yyerror): Now static.
4981 * parse.c (parse_exp_in_context_1): Update.
4982 * p-lang.h (p_yyerror): Don't declare.
4983 * p-lang.c (p_language_defn): Update.
4984 * p-exp.y (yyerror): Now static.
4985 * opencl-lang.c (opencl_language_defn): Update.
4986 * objc-lang.c (objc_language_defn): Update.
4987 * m2-lang.h (m2_yyerror): Don't declare.
4988 * m2-lang.c (m2_language_defn): Update.
4989 * m2-exp.y (yyerror): Now static.
4990 * language.h (struct language_defn) <la_error>: Remove.
4991 * language.c (unk_lang_error): Remove.
4992 (unknown_language_defn, auto_language_defn): Remove.
4993 * go-lang.h (go_yyerror): Don't declare.
4994 * go-lang.c (go_language_defn): Update.
4995 * go-exp.y (yyerror): Now static.
4996 * f-lang.h (f_yyerror): Don't declare.
4997 * f-lang.c (f_language_defn): Update.
4998 * f-exp.y (yyerror): Now static.
4999 * d-lang.h (d_yyerror): Don't declare.
5000 * d-lang.c (d_language_defn): Update.
5001 * d-exp.y (yyerror): Now static.
5002 * c-lang.h (c_yyerror): Don't declare.
5003 * c-lang.c (c_language_defn, cplus_language_defn)
5004 (asm_language_defn, minimal_language_defn): Update.
5005 * c-exp.y (yyerror): Now static.
5006 * ada-lang.h (ada_yyerror): Don't declare.
5007 * ada-lang.c (ada_language_defn): Update.
5008 * ada-exp.y (yyerror): Now static.
5010 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5012 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5013 (store_sveregs_to_thread): Likewise.
5014 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5015 (aarch64_linux_store_inferior_registers): Likewise.
5016 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5018 (aarch64_sve_regs_copy_to_regcache): Likewise.
5019 (aarch64_sve_regs_copy_from_regcache): Likewise.
5020 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5022 (aarch64_sve_regs_copy_to_regcache): Likewise.
5023 (aarch64_sve_regs_copy_from_regcache): Likewise.
5024 (sve_context): Structure from Linux headers.
5025 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5026 (SVE_SIG_ZREG_SIZE): Likewise.
5027 (SVE_SIG_PREG_SIZE): Likewise.
5028 (SVE_SIG_FFR_SIZE): Likewise.
5029 (SVE_SIG_REGS_OFFSET): Likewise.
5030 (SVE_SIG_ZREGS_OFFSET): Likewise.
5031 (SVE_SIG_ZREG_OFFSET): Likewise.
5032 (SVE_SIG_ZREGS_SIZE): Likewise.
5033 (SVE_SIG_PREGS_OFFSET): Likewise.
5034 (SVE_SIG_PREG_OFFSET): Likewise.
5035 (SVE_SIG_PREGS_SIZE): Likewise.
5036 (SVE_SIG_FFR_OFFSET): Likewise.
5037 (SVE_SIG_REGS_SIZE): Likewise.
5038 (SVE_SIG_CONTEXT_SIZE): Likewise.
5039 (SVE_PT_REGS_MASK): Likewise.
5040 (SVE_PT_REGS_FPSIMD): Likewise.
5041 (SVE_PT_REGS_SVE): Likewise.
5042 (SVE_PT_VL_INHERIT): Likewise.
5043 (SVE_PT_VL_ONEXEC): Likewise.
5044 (SVE_PT_REGS_OFFSET): Likewise.
5045 (SVE_PT_FPSIMD_OFFSET): Likewise.
5046 (SVE_PT_FPSIMD_SIZE): Likewise.
5047 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5048 (SVE_PT_SVE_PREG_SIZE): Likewise.
5049 (SVE_PT_SVE_FFR_SIZE): Likewise.
5050 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5051 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5052 (__SVE_SIG_TO_PT): Likewise.
5053 (SVE_PT_SVE_OFFSET): Likewise.
5054 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5055 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5056 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5057 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5058 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5059 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5060 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5061 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5062 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5063 (SVE_PT_SVE_SIZE): Likewise.
5064 (SVE_PT_SIZE): Likewise.
5065 (HAS_SVE_STATE): New define.
5067 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5069 * nat/aarch64-sve-linux-sigcontext.h: New file.
5070 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5072 (SVE_VQ_MIN): Likewise.
5073 (SVE_VQ_MAX): Likewise.
5074 (SVE_VL_MIN): Likewise.
5075 (SVE_VL_MAX): Likewise.
5076 (SVE_NUM_ZREGS): Likewise.
5077 (SVE_NUM_PREGS): Likewise.
5078 (sve_vl_valid): Likewise.
5079 (struct user_sve_header): Likewise.
5081 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5082 Richard Bunt <Richard.Bunt@arm.com>
5084 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5085 was requested by GDB.
5087 2018-06-15 Tom de Vries <tdevries@suse.de>
5089 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5091 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5093 * gnulib/update-gnulib.sh: Print expected versions of
5096 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5098 * arch-utils.c (default_type_align): Use type_length_units.
5099 * gdbtypes.c (type_align): Use type_length_units.
5101 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5103 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5104 of 'define' command.
5106 2018-06-14 Tom de Vries <tdevries@suse.de>
5109 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5110 get_no_prettyformat_print_options.
5112 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5114 * sparc-nat.h: Include target.h.
5115 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5116 <fetch_registers>: Remove this argument in function call.
5117 <store_registers>: Remove this argument in function call, remove
5119 <low_forget_process>: Call sparc64_forget_process instead of
5120 sparc_forget_process.
5122 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5124 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5125 (procfs_target::make_corefile_notes): Adjust to new
5126 target_read_alloc return type.
5128 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5129 Stephen Roberts <stephen.roberts@arm.com>
5132 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5133 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5134 Move should_notify_stop local into more inner scope.
5136 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5137 Stephen Roberts <stephen.roberts@arm.com>
5140 * infrun.c (resume_1): Add call to mark_async_event_handler.
5142 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5144 * infrun.c (do_target_wait): Change old version of $pc printed.
5146 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5148 * dwarf2read.c (read_index_from_section): Rename to...
5149 (read_gdb_index_from_section): ... this, update all callers.
5150 (dwarf2_read_index): Rename to...
5151 (dwarf2_read_gdb_index): ... this, update all callers.
5153 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5155 * gdb/hppa-linux-nat.c
5156 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5157 hppa_linux_nat_target::fetch_registers.
5159 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5161 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5162 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5163 (AARCH64_DWARF_SVE_FFR): Likewise.
5164 (AARCH64_DWARF_SVE_P0): Likewise.
5165 (AARCH64_DWARF_SVE_Z0): Likewise.
5167 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5169 * common/common-regcache.h (raw_compare): New function.
5170 * regcache.c (regcache::raw_compare): Likewise.
5171 * regcache.h (regcache::raw_compare): New declaration.
5173 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5175 * common/common-regcache.h (reg_buffer_common): New structure.
5176 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5177 (reg_buffer::raw_supply): Likewise.
5178 (reg_buffer::raw_supply_integer): Likewise.
5179 (reg_buffer::raw_supply_zeroed): Likewise.
5180 (reg_buffer::raw_collect): Likewise.
5181 (reg_buffer::raw_collect_integer): Likewise.
5182 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5183 (reg_buffer::raw_supply): Likewise.
5184 (reg_buffer::raw_supply_integer): Likewise.
5185 (reg_buffer::raw_supply_zeroed): Likewise.
5186 (reg_buffer::raw_collect): Likewise.
5187 (reg_buffer::raw_collect_integer): Likewise.
5189 2018-06-10 Tom Tromey <tom@tromey.com>
5191 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5192 (class remote_state) <stop_reply_queue>: Now std::vector.
5193 (remote_state::~remote_state)
5194 (remote_target::stop_reply_queue_length): Update.
5195 (struct queue_iter_param, remove_child_of_pending_fork)
5196 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5197 (check_pending_event_prevents_wildcard_vcont_callback)
5198 (remove_stop_reply_for_inferior)
5199 (remove_stop_reply_of_remote_state)
5200 (remote_notif_remove_once_on_match)
5201 (stop_reply_match_ptid_and_ws)
5202 (remote_kill_child_of_pending_fork): Remove.
5203 (remote_target::remove_new_fork_children)
5204 (remote_target::check_pending_events_prevent_wildcard_vcont)
5205 (remote_target::discard_pending_stop_replies)
5206 (remote_target::discard_pending_stop_replies_in_queue)
5207 (remote_target::remote_notif_remove_queued_reply)
5208 (remote_target::queued_stop_reply)
5209 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5210 (remote_target::wait, remote_target::kill_new_fork_children)
5211 (remote_target::async): Update.
5213 2018-06-10 Tom Tromey <tom@tromey.com>
5215 * record-full.c (record_full_arch_list_cleanups): Remove.
5216 (record_full_message): Use try/catch.
5217 (record_full_wait_cleanups): Remove.
5218 (record_full_wait_1): Use try/catch.
5219 (record_full_restore): Likewise.
5221 2018-06-10 Tom Tromey <tom@tromey.com>
5223 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5224 declare VEC. Add constructor.
5225 <in_target_beneath>: Now bool.
5226 (record_full_breakpoints): Now a std::vector, static.
5227 (record_full_sync_record_breakpoints)
5228 (record_full_init_record_breakpoints)
5229 (record_full_target::insert_breakpoint)
5230 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5232 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5234 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5235 * serial.c (serial_interface_lookup): Remove struct keyword.
5237 2018-06-10 Tom Tromey <tom@tromey.com>
5239 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5241 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5243 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5245 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5246 "beneath" as a method.
5247 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5248 Use "beneath" as a method.
5250 2018-06-10 Tom Tromey <tom@tromey.com>
5252 * tracefile.c (struct trace_file_writer_deleter): New.
5253 <operator()>: Rename from trace_file_writer_xfree.
5254 (trace_file_writer_up): New typedef.
5255 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5257 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5259 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5260 <m_registers, m_register_status>: Change type to
5262 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5265 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5267 * common/common-regcache.h (enum register_status): Add
5268 underlying type "signed char".
5269 * regcache.h (reg_buffer) <m_register_status>: Change type to
5271 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5272 register_status instead of signed char.
5273 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5274 (reg_buffer::get_register_status): Remove cast.
5275 (readable_regcache::raw_read): Remove cast.
5276 (readable_regcache::cooked_read): Remove cast.
5278 2018-06-09 Tom Tromey <tom@tromey.com>
5280 * source.c (reverse_search_command, forward_search_command): Use
5283 2018-06-09 Tom Tromey <tom@tromey.com>
5285 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5286 (serial_ops_list): Now static, std::vector.
5287 (serial_interface_lookup, serial_add_interface): Update.
5289 2018-06-09 Tom Tromey <tom@tromey.com>
5291 * dwarf2read.c (process_cu_includes): Update.
5292 (process_full_comp_unit): Update.
5293 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5296 2018-06-08 Paul Koning <paul_koning@dell.com>
5300 * python/python.c (do_start_initialization):
5301 Avoid call to internal Python API.
5302 (init__gdb_module): New function.
5304 2018-06-08 Gary Benson <gbenson@redhat.com>
5306 * linux-thread-db.c (valprint.h): New include.
5307 (struct check_thread_db_info): New structure.
5308 (check_thread_db_on_load, tdb_testinfo): New static globals.
5309 (check_thread_db, check_thread_db_callback): New functions.
5310 (try_thread_db_load_1): Run integrity checks if requested.
5311 (maintenance_check_libthread_db): New function.
5312 (_initialize_thread_db): Register "maint check libthread-db"
5313 and "maint set/show check-libthread-db".
5314 * NEWS: Mention the above new commands.
5316 2018-06-08 Tom Tromey <tom@tromey.com>
5318 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5321 2018-06-08 Tom Tromey <tom@tromey.com>
5323 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5325 2018-06-08 Tom Tromey <tom@tromey.com>
5327 * common/btrace-common.h (struct btrace_data): Add constructor,
5328 destructor, move assignment operator.
5329 <empty, clear, fini>: New methods.
5330 <format>: Initialize.
5331 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5332 (btrace_data_empty): Don't declare.
5333 * common/btrace-common.c (btrace_data_init): Remove.
5334 (btrace_data::fini): Rename from btrace_data_fini.
5335 (btrace_data::empty): Rename from btrace_data_empty.
5336 (btrace_data::clear): Rename from btrace_data_clear. Return
5338 * btrace.h (make_cleanup_btrace_data): Don't declare.
5339 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5340 (parse_xml_btrace): Update.
5341 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5342 (maint_btrace_clear_packet_history_cmd): Update.
5344 2018-06-07 Pedro Alves <palves@redhat.com>
5346 * target.h (target_ops) <beneath>: Now a method. All references
5348 (class target_stack): New.
5349 * target.c (g_target_stack): New.
5350 (g_current_top_target): Delete.
5351 (current_top_target): Get the top target out of g_target_stack.
5352 (target_stack::push, target_stack::unpush): New.
5353 (push_target, unpush_target): Reimplement.
5354 (target_is_pushed): Reimplement in terms of g_target_stack.
5355 (target_ops::beneath, target_stack::find_beneath): New.
5357 2018-06-07 Pedro Alves <palves@redhat.com>
5359 * target.h (find_target_beneath): Delete declaration.
5360 * target.c (find_target_beneath): Delete definition.
5361 * aix-thread.c: All callers of find_target_beneath adjusted to
5362 call target_ops::beneath instead.
5363 * bsd-uthread.c: Likewise.
5364 * linux-thread-db.c: Likewise.
5365 * ravenscar-thread.c: Likewise.
5366 * sol-thread.c: Likewise.
5367 * spu-multiarch.c: Likewise.
5369 2018-06-07 Pedro Alves <palves@redhat.com>
5371 * target.h (target_ops) <beneath>: Now a method. All references
5373 (target_ops) <m_beneath>: New.
5374 * target.c (target_ops::beneath): New.
5375 * corelow.c: Adjust all references to target_ops::beneath.
5376 * linux-thread-db.c: Likewise.
5377 * make-target-delegates: Likewise.
5378 * record-btrace.c: Likewise.
5379 * record-full.c: Likewise.
5380 * remote.c: Likewise.
5381 * target.c: Likewise.
5382 * target-delegates.c: Regenerate.
5384 2018-06-07 Pedro Alves <palves@redhat.com>
5386 * target.h (target_stack): Delete.
5387 (current_top_target): Declare function.
5388 * target.c (target_stack): Delete.
5389 (g_current_top_target): New.
5390 (current_top_target): New function.
5391 * auxv.c: Use current_top_target instead of target_stack
5393 * avr-tdep.c: Likewise.
5394 * breakpoint.c: Likewise.
5395 * corefile.c: Likewise.
5396 * elfread.c: Likewise.
5398 * exceptions.c: Likewise.
5399 * frame.c: Likewise.
5400 * gdbarch-selftests.c: Likewise.
5401 * gnu-v3-abi.c: Likewise.
5402 * ia64-tdep.c: Likewise.
5403 * ia64-vms-tdep.c: Likewise.
5404 * infcall.c: Likewise.
5405 * infcmd.c: Likewise.
5406 * infrun.c: Likewise.
5407 * linespec.c: Likewise.
5408 * linux-tdep.c: Likewise.
5409 * minsyms.c: Likewise.
5410 * ppc-linux-nat.c: Likewise.
5411 * ppc-linux-tdep.c: Likewise.
5412 * procfs.c: Likewise.
5413 * regcache.c: Likewise.
5414 * remote.c: Likewise.
5415 * rs6000-tdep.c: Likewise.
5416 * s390-linux-nat.c: Likewise.
5417 * s390-tdep.c: Likewise.
5418 * solib-aix.c: Likewise.
5419 * solib-darwin.c: Likewise.
5420 * solib-dsbt.c: Likewise.
5421 * solib-spu.c: Likewise.
5422 * solib-svr4.c: Likewise.
5423 * solib-target.c: Likewise.
5424 * sparc-tdep.c: Likewise.
5425 * sparc64-tdep.c: Likewise.
5426 * spu-tdep.c: Likewise.
5427 * symfile.c: Likewise.
5428 * symtab.c: Likewise.
5429 * target-descriptions.c: Likewise.
5430 * target-memory.c: Likewise.
5431 * target.c: Likewise.
5432 * target.h: Likewise.
5433 * tracefile-tfile.c: Likewise.
5434 * tracepoint.c: Likewise.
5435 * valops.c: Likewise.
5436 * valprint.c: Likewise.
5437 * value.c: Likewise.
5438 * windows-tdep.c: Likewise.
5439 * mi/mi-main.c: Likewise.
5441 2018-06-07 Tom Tromey <tom@tromey.com>
5443 * valprint.h (build_address_symbolic): Declare.
5444 * printcmd.c (print_address_symbolic): Update.
5445 (build_address_symbolic): Change "name" and "filename" to
5447 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5449 * defs.h (build_address_symbolic): Remove declaration.
5451 2018-06-07 Alan Hayward <alan.hayward@arm.com>
5453 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5454 (aarch64_vnv_type): Add function.
5455 (aarch64_pseudo_register_name): Add V regs for SVE.
5456 (aarch64_pseudo_register_type): Likewise.
5457 (aarch64_pseudo_register_reggroup_p): Likewise.
5458 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5459 (aarch64_pseudo_read_value): Add V regs for SVE.
5460 (aarch64_pseudo_write_2): Use V0 offset for SVE
5461 (aarch64_pseudo_write): Add V regs for SVE.
5462 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5464 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5466 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5467 (sve_vl_from_vq): Likewise.
5469 2018-06-05 Tom Tromey <tom@tromey.com>
5471 * cli/cli-cmds.c (show_version): Update.
5472 * top.c (print_gdb_version): Add "interactive" parameter.
5474 * main.c (captured_main_1): Update.
5475 * top.h (print_gdb_version): Add "interactive" parameter and a
5478 2018-06-05 David Malcolm <dmalcolm@redhat.com>
5480 * common/enum-flags.h: Add trailing semicolon to example in
5483 2018-06-05 Tom Tromey <tom@tromey.com>
5486 * NEWS: Add entry about pager.
5487 * utils.c (pagination_disabled_for_command): New global.
5488 (prompt_for_continue): Allow "c" response to prompt.
5489 (reinitialize_more_filter): Clear
5490 pagination_disabled_for_command.
5491 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5493 2018-06-04 Tom Tromey <tom@tromey.com>
5495 * ada-lang.h (ada_lookup_symbol_list): Update.
5496 * ada-lang.c (resolve_subexp): Update.
5497 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5499 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5500 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5501 results parameter to std::vector.
5502 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5504 * ada-exp.y (block_lookup): Update.
5505 (select_possible_type_sym): Change type of syms. Remove nsyms
5507 (write_var_or_type, write_name_assoc): Update.
5509 2018-06-04 Joel Brobecker <brobecker@adacore.com>
5511 * windows-nat.c (windows_nat_target::xfer_partial): Return
5512 TARGET_XFER_E_IO if we need to delegate to the target beneath
5513 but BENEATH is NULL.
5515 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5517 * Makefile.in (config.status): Add configure.nat as a
5520 2018-06-04 Tom Tromey <tom@tromey.com>
5522 * cp-name-parser.y (cpname_state): Add method declarations.
5523 (HANDLE_QUAL): Update.
5524 (cpname_state::d_grab, cpname_state::fill_comp)
5525 (cpname_state::make_operator, cpname_state::make_dtor)
5526 (cpname_state::make_builtin_type, cpname_state::make_name)
5527 (cpname_state::d_qualify, cpname_state::d_int_type)
5528 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5529 (%union): Move earlier.
5531 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5533 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5535 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5537 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5538 (aarch64_pseudo_write_1): Likewise.
5539 (aarch64_pseudo_read_value): Use helper.
5540 (aarch64_pseudo_write): Likewise.
5542 2018-06-04 Pedro Alves <palves@redhat.com>
5544 * darwin-nat.c (darwin_ops): Delete.
5545 (darwin_attach_pid): Use get_native_target.
5547 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5549 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5550 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5552 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5554 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5555 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5556 (aarch64_gdbarch_init): Check for SVE.
5557 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5559 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5561 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5562 * aarch64-tdep.h (aarch64_read_description): Likewise.
5563 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5564 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5565 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5566 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5567 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5569 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5571 * value.c (value_fetch_lazy_bitfield): New.
5572 (value_fetch_lazy_memory): New.
5573 (value_fetch_lazy_register): New.
5574 (value_fetch_lazy): Factor out to smaller functions.
5576 2018-06-01 Tom Tromey <tom@tromey.com>
5578 * cp-name-parser.y (backslashable, represented): Now const.
5580 2018-06-01 Tom Tromey <tom@tromey.com>
5582 * cp-name-parser.y: Include parser-defs.h.
5583 (parser_fprintf): Remove declaration.
5585 2018-06-01 Tom Tromey <tom@tromey.com>
5587 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5589 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5590 (global_result): Remove globals.
5591 (struct cpname_state): New.
5592 (yyparse): Don't declare.
5593 (yylex, yyerror): Move declarations after %union.
5594 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5595 (make_name): Add state parameter.
5597 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5599 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5601 (yylex): Add lvalp, state parameters.
5602 (yyerror): Add state parameter.
5603 (cp_demangled_name_to_comp): Update.
5605 2018-06-01 Tom Tromey <tom@tromey.com>
5607 * cp-name-parser.y (parser_fprintf): Declare.
5608 (GDB_YY_REMAP_PREFIX): Define.
5609 Include yy-remap.h. Don't redefine yy* identifiers.
5611 2018-06-01 Tom Tromey <tom@tromey.com>
5613 * python/py-type.c (typy_legacy_template_argument): Update.
5614 * cp-support.h (cp_demangled_name_to_comp): Update.
5615 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5616 parameter to be a "std::string *".
5619 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5621 * ada-lex.l: Include "diagnostics.h" instead of
5622 "common/diagnostics.h".
5623 * unittests/environ-selftests.c: Likewise.
5624 * common/diagnostics.h: Moved to ../include.
5626 2018-06-01 Joel Brobecker <brobecker@adacore.com>
5628 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5629 to language_mode_manual while calling breakpoint_re_set_one.
5631 2018-06-01 Tom Tromey <tom@tromey.com>
5633 * valops.c (value_cast_structs, destructor_name_p): Update.
5634 * symtab.c (gdb_mangle_name): Update.
5635 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5637 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5638 (pascal_object_print_value_fields, pascal_object_print_value):
5640 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5641 * linespec.c (find_methods): Update.
5642 * gdbtypes.h (type_name_no_tag): Remove.
5643 (type_name_or_error): Rename from type_name_no_tag_or_error.
5644 * gdbtypes.c (type_name_no_tag): Remove.
5645 (type_name_or_error): Rename from type_name_no_tag_or_error.
5646 (lookup_struct_elt_type, check_typedef): Update.
5647 * expprint.c (print_subexp_standard): Update.
5648 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5649 * d-namespace.c (d_lookup_nested_symbol): Update.
5650 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5651 (cp_print_class_member): Update.
5652 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5653 * completer.c (add_struct_fields): Update.
5654 * c-typeprint.c (cp_type_print_derivation_info)
5655 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5657 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5658 (ada_prefer_type, ada_is_exception_sym): Update.
5660 2018-06-01 Tom Tromey <tom@tromey.com>
5662 * valops.c (enum_constant_from_type, value_namespace_elt)
5663 (value_maybe_namespace_elt): Update.
5664 * valarith.c (find_size_for_pointer_math): Update.
5665 * target-descriptions.c (make_gdb_type): Update.
5666 * symmisc.c (print_symbol): Update.
5667 * stabsread.c (define_symbol, read_type)
5668 (complain_about_struct_wipeout, add_undefined_type)
5669 (cleanup_undefined_types_1): Update.
5670 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5671 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5672 (rust_internal_print_type, rust_composite_type)
5673 (rust_evaluate_funcall, rust_evaluate_subexp)
5674 (rust_inclusive_range_type_p): Update.
5675 * python/py-type.c (typy_get_tag): Update.
5676 * p-typeprint.c (pascal_type_print_base): Update.
5677 * mdebugread.c (parse_symbol, parse_type): Update.
5678 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5680 * guile/scm-type.c (gdbscm_type_tag): Update.
5681 * go-lang.c (sixg_string_p): Update.
5682 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5684 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5685 (TYPE_TAG_NAME): Remove.
5686 * gdbtypes.c (type_name_no_tag): Simplify.
5687 (check_typedef, check_types_equal, recursive_dump_type)
5688 (copy_type_recursive, arch_composite_type): Update.
5689 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5690 in summary mode when needed.
5691 * eval.c (evaluate_funcall): Update.
5692 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5693 (process_structure_scope, read_enumeration_type)
5694 (read_namespace_type, read_module_type, determine_prefix): Update.
5695 * cp-support.c (inspect_type): Update.
5696 * coffread.c (process_coff_symbol, decode_base_type): Update.
5697 * c-varobj.c (c_is_path_expr_parent): Update.
5698 * c-typeprint.c (c_type_print_base_struct_union): Update.
5699 (c_type_print_base_1): Update. Print struct/class/union/enum in
5700 summary when using C language.
5701 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5702 (gen_maybe_namespace_elt): Update.
5703 * ada-lang.c (ada_type_name): Simplify.
5704 (empty_record, ada_template_to_fixed_record_type_1)
5705 (template_to_static_fixed_type)
5706 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5708 2018-06-01 Tom Tromey <tom@tromey.com>
5710 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5712 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5713 (c_print_type): Update.
5714 (c_print_type): New overload.
5715 (c_type_print_varspec_prefix, c_type_print_args)
5716 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5717 (c_type_print_base_struct_union, c_type_print_base_1)
5718 (cp_type_print_method_args): Add "language" parameter.
5719 (c_type_print_base): Update.
5720 * c-lang.h (c_print_type): Add new overload.
5722 2018-06-01 Tom Tromey <tom@tromey.com>
5724 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5725 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5727 2018-06-01 Alan Hayward <alan.hayward@arm.com>
5729 * aarch64-tdep.c (aarch64_sve_register_names): New const
5731 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5732 (AARCH64_SVE_Z_REGS_NUM): New define.
5733 (AARCH64_SVE_P_REGS_NUM): Likewise.
5734 (AARCH64_SVE_NUM_REGS): Likewise.
5736 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
5738 * nat/linux-ptrace.h [__alpha__]
5739 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5742 2018-05-31 Maciej W. Rozycki <macro@mips.com>
5744 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5745 the endianness selected.
5746 * NEWS: Document `set endian auto' mode operation update.
5748 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5750 * Makefile.in: Add new header.
5751 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5752 (sve_vl_from_vg): Likewise.
5753 (sve_vq_from_vl): Likewise.
5754 (sve_vl_from_vq): Likewise.
5755 (sve_vq_from_vg): Likewise.
5756 (sve_vg_from_vq): Likewise.
5757 * configure.nat: Add new c file.
5758 * nat/aarch64-sve-linux-ptrace.c: New file.
5759 * nat/aarch64-sve-linux-ptrace.h: New file.
5761 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5763 * aarch64-linux-nat.c (aarch64_linux_read_description):
5765 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5767 * aarch64-tdep.c (tdesc_aarch64_list): Add.
5768 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
5769 (aarch64_gdbarch_init): Add parmeter zero.
5770 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
5771 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
5772 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
5774 * doc/gdb.texinfo: Describe SVE feature
5775 * features/aarch64-sve.c: New file.
5777 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
5780 * gdbarch.sh (significant_addr_bit): Default to zero when
5781 not set by target architecture.
5782 * gdbarch.c: Re-generated.
5783 * utils.c (address_significant): Update.
5785 2018-05-30 Joel Brobecker <brobecker@adacore.com>
5787 * stack.c (func_command): Remove trailing newline in call to error.
5789 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5791 * regcache.h (regcache_raw_collect): Remove, update callers to
5792 use regcache::raw_collect.
5793 * regcache.c (regcache_raw_collect): Remove.
5795 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5797 * regcache.h (regcache_raw_supply): Remove, update callers to
5798 use detached_regcache::raw_supply.
5799 * regcache.c (regcache_raw_supply): Remove.
5801 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5803 * regcache.h (regcache_cooked_write_part): Remove, update
5804 callers to use regcache::cooked_write_part.
5805 * regcache.c (regcache_cooked_write_part): Remove.
5807 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5809 * regcache.h (regcache_cooked_read_part): Remove, update callers
5810 to use readable_regcache::cooked_read_part.
5811 * regcache.c (regcache_cooked_read_part): Remove.
5813 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5815 * regcache.h (regcache_cooked_read_value): Remove, update
5816 callers to use readable_regcache::cooked_read_value.
5817 * regcache.c (regcache_cooked_read_value): Remove.
5819 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5821 * regcache.h (regcache_cooked_write): Remove, update callers to
5822 use regcache::cooked_write.
5823 * regcache.c (regcache_cooked_write): Remove.
5825 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5827 * regcache.h (regcache_invalidate): Remove, update callers to
5828 use detached_regcache::invalidate instead.
5829 * regcache.c (regcache_invalidate): Remove.
5831 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5833 * regcache.h (regcache_raw_write_part): Remove, update callers
5834 to use regcache::raw_write_part instead.
5835 * regcache.c (regcache_raw_write_part): Remove.
5837 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5839 * regcache.h (regcache_raw_read_part): Remove, update callers to
5840 use readable_regcache::raw_read_part instead.
5841 * regcache.c (regcache_raw_read_part): Remove.
5843 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5845 * regcache.h (regcache_cooked_read): Remove, update callers to
5846 use readable_regcache::cooked_read instead.
5847 * regcache.c (regcache_cooked_read): Remove.
5849 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5851 * regcache.h (regcache_raw_write): Remove, update callers to use
5852 regcache::raw_write instead.
5853 * regcache.c (regcache_raw_write): Remove.
5855 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5857 * regcache.h (regcache_raw_read): Remove, update callers to use
5858 readable_regcache::raw_read instead.
5859 * regcache.c (regcache_raw_read): Remove.
5861 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5863 * regcache.h (regcache_raw_update): Remove, update callers to
5864 use readable_regcache::raw_update instead.
5865 * regcache.c (regcache_raw_update): Remove.
5867 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5869 * regcache.h (regcache_register_status): Remove, update callers
5870 to use reg_buffer::get_register_status directly instead.
5871 * regcache.c (regcache_register_status): Remove.
5873 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5875 * regcache.h (regcache_get_ptid): Remove, update all callers to
5876 call regcache::ptid instead.
5877 * regcache.c (regcache_get_ptid): Remove.
5879 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5881 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
5883 2018-05-30 Pedro Alves <palves@redhat.com>
5885 * common/common-exceptions.h (exception_rethrow): Use
5888 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
5890 * breakpoint.c (print_solib_event, check_status_catch_solib):
5891 Remove struct keyword in range-based for loops.
5892 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
5893 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
5895 * linespec.c (find_superclass_methods, search_minsyms_for_name):
5897 * symfile.c (addr_info_make_relative): Likewise.
5898 * thread.c (value_in_thread_stack_temporaries): Likewise.
5900 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
5903 * valops.c (value_struct_elt_for_reference): Call check_typedef on
5904 aggregate type to get its real type before accessing it.
5906 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
5908 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
5909 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
5910 * coff-pe-read.c (add_pe_forwarded_sym): Replace
5911 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
5912 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
5913 * jit.c (jit_breakpoint_re_set_internal): Likewise.
5914 * printcmd.c (info_address_command): Likewise.
5916 2018-05-29 Tom Tromey <tom@tromey.com>
5918 * windows-nat.c (handle_exception): Update fall-through comment.
5920 2018-05-29 Tom Tromey <tom@tromey.com>
5922 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
5923 (struct program_space) <added_solibs>: Now a std::vector.
5924 * breakpoint.c (print_solib_event): Update.
5925 (check_status_catch_solib): Update.
5926 * progspace.c (clear_program_space_solib_cache): Update.
5927 * solib.c (update_solib_list): Update.
5929 2018-05-29 Tom Tromey <tom@tromey.com>
5931 * python/py-type.c (typy_richcompare): Update.
5932 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
5933 * gdbtypes.h (types_deeply_equal): Return bool.
5934 (types_equal): Likewise.
5935 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
5937 (check_types_equal): Change worklist to std::vector. Return
5939 (struct type_equality_entry): Add constructor.
5940 (compare_maybe_null_strings): Return bool.
5941 (check_types_worklist): Return bool. Change worklist to
5943 (types_deeply_equal): Use std::vector.
5944 (types_equal): Return bool.
5945 (compare_maybe_null_strings): Simplify.
5947 2018-05-29 Tom Tromey <tom@tromey.com>
5949 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
5951 2018-05-29 Tom Tromey <tom@tromey.com>
5953 * objc-lang.h: Don't include cp-support.h.
5954 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
5957 2018-05-27 Tom Tromey <tom@tromey.com>
5959 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
5961 2018-05-25 Tom Tromey <tom@tromey.com>
5963 * value.c (value::location): Initialize.
5965 2018-05-25 Tom Tromey <tom@tromey.com>
5967 * dbxread.c (init_bincl_list): Remove.
5968 (bincl_list): Now a std::vector.
5969 (bincls_allocated, next_bincl): Remove.
5970 (free_bincl_list, do_free_bincl_list_cleanup)
5971 (make_cleanup_free_bincl_list): Remove.
5972 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
5974 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
5975 (struct header_file_location): Add constructor.
5976 (add_bincl_to_list): Remove.
5978 2018-05-25 Tom Tromey <tom@tromey.com>
5980 * tui/tui.c (tui_enable): Update.
5981 * mi/mi-interp.c (mi_interp::init): Update.
5982 * interps.h (class interp) <name>: New method.
5983 <m_name>: Rename from name.
5984 (~scoped_restore_interp): Update.
5985 * interps.c (interp::interp): Update.
5986 (interp_add, interp_set, interp_lookup_existing)
5987 (current_interp_named_p): Update.
5989 2018-05-25 Tom Tromey <tom@tromey.com>
5991 * interps.c (interp_name): Remove.
5992 * mi/mi-interp.c (mi_interp::init): Update.
5993 * interps.h (interp_name): Remove.
5994 (~scoped_restore_interp): Update.
5995 * tui/tui.c (tui_enable): Update.
5997 2018-05-25 Tom Tromey <tom@tromey.com>
5999 * utils.c (fputs_maybe_filtered): Update.
6000 * linespec.c (decode_line_full): Update.
6001 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6002 (mi_print_breakpoint_for_event, mi_solib_loaded)
6003 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6004 (mi_user_selected_context_changed): Update.
6005 * mi/mi-main.c (mi_execute_command): Update.
6006 * cli/cli-script.c (execute_control_command): Update.
6007 * python/python.c (execute_gdb_command): Update.
6008 * solib.c (info_sharedlibrary_command): Update.
6009 * interps.c (interp_ui_out): Remove.
6010 * interps.h (interp_ui_out): Remove.
6012 2018-05-25 Tom Tromey <tom@tromey.com>
6014 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6015 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6016 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6018 2018-05-25 Tom Tromey <tom@tromey.com>
6020 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6021 * interps.c (interp_exec): Use scoped_restore.
6023 2018-05-25 Tom Tromey <tom@tromey.com>
6025 * remote.c (remote_target::remote_file_get): Use
6027 (remote_target::remote_file_put): Likewise.
6029 2018-05-25 Tom Tromey <tom@tromey.com>
6031 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6033 (get_pe_section_index, add_pe_exported_sym): Update.
6034 (read_pe_exported_syms): Use gdb::def_vector.
6036 2018-05-25 Tom Tromey <tom@tromey.com>
6038 * frame.c (remove_prev_frame): Remove.
6039 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6041 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6043 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6045 * mips-linux-nat.c (supply_fpregset): Always call
6046 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6047 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6048 `mips_fill_fpregset'.
6049 * mips-linux-tdep.c (mips_supply_fpregset)
6050 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6051 (mips_fill_fpregset_wrapper): Remove functions.
6052 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6053 (mips_linux_fpregset): Remove variable.
6054 (mips_linux_iterate_over_regset_sections): Use
6055 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6056 (mips_linux_o32_sigframe_init): Remove comment.
6058 2018-05-25 Pedro Alves <palves@redhat.com>
6060 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6061 (struct readahead_cache, struct packet_reg, struct
6062 remote_arch_state, class remote_state): Move higher up in the
6064 (remote_target::m_remote_state): Now an object instead of a pointer.
6065 (remote_target::get_remote_state): Adjust.
6067 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6069 * stack.c (select_and_print_frame): Delete.
6070 (struct function_bounds): Move struct within function.
6071 (func_command): Most content moved into new function
6072 find_frame_for_function, use new function, print result, add
6074 (find_frame_for_function): New function, now returns a result.
6076 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6078 * stack.c (iterate_over_block_arg_vars): Fix comment.
6079 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6081 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6085 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6087 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6089 * frame.h (class scoped_restore_selected_frame): New class.
6090 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6091 of any exception, use scoped_restore_selected_frame to restore the
6094 2018-05-24 Pedro Alves <palves@redhat.com>
6096 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6099 2018-05-23 Tom Tromey <tom@tromey.com>
6101 * complaints.c (struct complaints): Remove.
6102 (symfile_complaint_book): Remove.
6103 (series): New global.
6104 (complaint_internal): Update.
6105 (clear_complaints): Update.
6107 2018-05-23 Tom Tromey <tom@tromey.com>
6109 * complaints.c (counters): New global.
6110 (struct complain): Remove.
6111 (struct complaints) <root>: Remove.
6112 (complaint_sentinel): Remove.
6113 (symfile_complaint_book): Update.
6114 (find_complaint) Remove.
6115 (complaint_internal, clear_complaints): Update.
6117 2018-05-23 Tom Tromey <tom@tromey.com>
6119 * complaints.c (struct complain) <file, line>: Remove.
6120 (find_complaint): Remove file, line parameters.
6121 (complaint_internal): Update.
6123 2018-05-23 Tom Tromey <tom@tromey.com>
6125 * complaints.c (vcomplaint): Remove.
6126 (complaint_internal) Merge in contents of vcomplaint.
6128 2018-05-23 Tom Tromey <tom@tromey.com>
6130 * complaints.c (struct complaints) <explanation>: Remove.
6131 (symfile_explanations): Remove.
6132 (symfile_complaint_book): Update.
6133 (vcomplaint): Update.
6134 (struct explanation): Remove.
6136 2018-05-23 Tom Tromey <tom@tromey.com>
6138 * complaints.c (symfile_complaints): Remove.
6139 (complaint_internal): Remove "complaints" parameter.
6140 (clear_complaints, vcomplaint): Remove "c" parameter.
6141 (get_complaints): Remove.
6142 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6143 (dwarf2_debug_line_missing_file_complaint)
6144 (dwarf2_debug_line_missing_end_sequence_complaint)
6145 (dwarf2_complex_location_expr_complaint)
6146 (dwarf2_const_value_length_mismatch_complaint)
6147 (dwarf2_section_buffer_overflow_complaint)
6148 (dwarf2_macro_malformed_definition_complaint)
6149 (dwarf2_invalid_attrib_class_complaint)
6150 (create_addrmap_from_index, dw2_symtab_iter_next)
6151 (dw2_expand_marked_cus)
6152 (dw2_debug_names_iterator::find_vec_in_debug_names)
6153 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6154 (create_debug_type_hash_table, init_cutu_and_read_dies)
6155 (partial_die_parent_scope, add_partial_enumeration)
6156 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6157 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6158 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6159 (create_cus_hash_table, create_dwp_hash_table)
6160 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6161 (dwarf2_rnglists_process, dwarf2_ranges_process)
6162 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6163 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6164 (handle_struct_member_die, process_structure_scope)
6165 (read_array_type, read_common_block, read_module_type)
6166 (read_tag_pointer_type, read_typedef, read_base_type)
6167 (read_subrange_type, load_partial_dies, partial_die_info::read)
6168 (partial_die_info::read, partial_die_info::read)
6169 (partial_die_info::read, read_checked_initial_length_and_offset)
6170 (dwarf2_string_attr, read_formatted_entries)
6171 (dwarf_decode_line_header)
6172 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6173 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6174 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6175 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6176 (get_signatured_type, get_DW_AT_signature_type)
6177 (decode_locdesc, file_file_name, consume_improper_spaces)
6178 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6179 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6180 (dwarf2_symbol_mark_computed, set_die_type)
6181 (read_attribute_value): Update.
6182 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6184 * dbxread.c (unknown_symtype_complaint)
6185 (lbrac_mismatch_complaint, repeated_header_complaint)
6186 (set_namestring, function_outside_compilation_unit_complaint)
6187 (read_dbx_symtab, process_one_symbol): Update.
6188 * gdbtypes.c (stub_noname_complaint): Update.
6189 * windows-nat.c (handle_unload_dll): Update.
6190 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6191 (decode_base_type): Update.
6192 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6193 (eb_complaint, record_include_begin, record_include_end)
6194 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6195 (process_xcoff_symbol, read_symbol)
6196 (function_outside_compilation_unit_complaint)
6197 (scan_xcoff_symtab): Update.
6198 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6199 * buildsym.c (finish_block_internal, make_blockvector)
6200 (end_symtab_get_static_block, augment_type_symtab): Update.
6201 * dtrace-probe.c (dtrace_process_dof)
6202 (dtrace_static_probe_ops::get_probes): Update.
6203 * complaints.h (struct complaint): Don't declare.
6204 (symfile_complaints): Remove.
6205 (complaint_internal): Remove "complaints" parameter.
6206 (complaint): Likewise.
6207 (clear_complaints): Likewise.
6208 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6209 (reread_symbols): Update.
6210 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6211 (dwarf2_frame_cache, decode_frame_entry): Update.
6212 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6213 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6214 (info_selectors_command): Update.
6215 * macrotab.c (macro_include, check_for_redefinition)
6216 (macro_undef): Update.
6217 * objfiles.c (filter_overlapping_sections): Update.
6218 * stabsread.c (invalid_cpp_abbrev_complaint)
6219 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6220 (define_symbol, error_type, read_type, rs6000_builtin_type)
6221 (stabs_method_name_from_physname, read_member_functions)
6222 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6223 (attach_fields_to_type, complain_about_struct_wipeout)
6224 (read_range_type, read_args, common_block_start)
6225 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6227 * mdebugread.c (index_complaint, unknown_ext_complaint)
6228 (basic_type_complaint, bad_tag_guess_complaint)
6229 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6230 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6231 (parse_procedure, parse_lines)
6232 (function_outside_compilation_unit_complaint)
6233 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6234 (bad_tag_guess_complaint, reg_value_complaint): Update.
6235 * cp-support.c (demangled_name_complaint): Update.
6236 * macroscope.c (sal_macro_scope): Update.
6237 * dwarf-index-write.c (class debug_names): Update.
6239 2018-05-23 Tom Tromey <tom@tromey.com>
6241 * complaints.c (clear_complaints): Remove "noisy" parameter.
6242 * complaints.h (clear_complaints): Update.
6243 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6244 (reread_symbols): Update.
6246 2018-05-23 Tom Tromey <tom@tromey.com>
6248 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6250 (vcomplaint, clear_complaints): Update.
6251 (symfile_explanations): Remove some messages.
6253 2018-05-23 Tom Tromey <tom@tromey.com>
6255 * complaints.c (internal_complaint): Remove.
6256 * complaints.h (internal_complaint): Remove.
6258 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6260 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6262 2018-05-22 Pedro Alves <palves@redhat.com>
6264 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6265 (remote_fileio_badfd, remote_fileio_return_errno)
6266 (remote_fileio_return_success, remote_fileio_func_open)
6267 (remote_fileio_func_open, remote_fileio_func_close)
6268 (remote_fileio_func_read, remote_fileio_func_write)
6269 (remote_fileio_func_lseek, remote_fileio_func_rename)
6270 (remote_fileio_func_unlink, remote_fileio_func_stat)
6271 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6272 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6273 remote_target parameter.
6274 (remote_fio_func_map) <func>: Add remote_target parameter.
6275 (do_remote_fileio_request, remote_fileio_request):
6276 * remote-fileio.h (remote_fileio_request):
6277 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6278 remote_target parameter.
6279 (remote_notif_process, handle_notification): Adjust to pass down
6281 (remote_notif_state_allocate): Add remote_target parameter. Save
6283 * remote-notif.h (struct remote_target): Forward declare.
6284 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6285 remote_target parameter.
6286 (struct remote_notif_state) <remote>: New field.
6287 (remote_notif_ack, remote_notif_parse): Add remote_target
6289 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6290 remote_target parameter.
6291 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6292 (threads_listing_context, rmt_thread_action, protocol_feature)
6293 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6294 (packet_result, struct threads_listing_context, remote_state):
6295 Move definitions and declarations higher up.
6296 (remote_target) <~remote_target>: Declare.
6297 (remote_download_command_source, remote_file_put, remote_file_get)
6298 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6299 (remote_hostio_pread_vFile, remote_hostio_send_command)
6300 (remote_hostio_set_filesystem, remote_hostio_open)
6301 (remote_hostio_close, remote_hostio_unlink, remote_state)
6302 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6303 (get_memory_write_packet_size, get_memory_read_packet_size)
6304 (append_pending_thread_resumptions, remote_detach_1)
6305 (append_resumption, remote_resume_with_vcont)
6306 (add_current_inferior_and_thread, wait_ns, wait_as)
6307 (process_stop_reply, remote_notice_new_inferior)
6308 (process_initial_stop_replies, remote_add_thread)
6309 (btrace_sync_conf, remote_btrace_maybe_reopen)
6310 (remove_new_fork_children, kill_new_fork_children)
6311 (discard_pending_stop_replies, stop_reply_queue_length)
6312 (check_pending_events_prevent_wildcard_vcont)
6313 (discard_pending_stop_replies_in_queue, stop_reply)
6314 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6315 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6316 (remote_interrupt_as, remote_interrupt_ns)
6317 (remote_get_noisy_reply, remote_query_attached)
6318 (remote_add_inferior, remote_current_thread, get_current_thread)
6319 (set_thread, set_general_thread, set_continue_thread)
6320 (set_general_process, write_ptid)
6321 (remote_unpack_thread_info_response, remote_get_threadinfo)
6322 (parse_threadlist_response, remote_get_threadlist)
6323 (remote_threadlist_iterator, remote_get_threads_with_ql)
6324 (remote_get_threads_with_qxfer)
6325 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6326 (get_offsets, remote_check_symbols, remote_supported_packet)
6327 (remote_query_supported, remote_packet_size)
6328 (remote_serial_quit_handler, remote_detach_pid)
6329 (remote_vcont_probe, remote_resume_with_hc)
6330 (send_interrupt_sequence, interrupt_query)
6331 (remote_notif_get_pending_events, fetch_register_using_p)
6332 (send_g_packet, process_g_packet, fetch_registers_using_g)
6333 (store_register_using_P, store_registers_using_G)
6334 (set_remote_traceframe, check_binary_download)
6335 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6336 (remote_xfer_live_readonly_partial, remote_read_bytes)
6337 (remote_send_printf, remote_flash_write, readchar)
6338 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6339 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6340 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6341 (extended_remote_disable_randomization, extended_remote_run)
6342 (send_environment_packet, extended_remote_environment_support)
6343 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6344 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6345 (packet_command): Now methods of ...
6346 (remote_target): ... this class.
6347 (m_remote_state) <remote_target>: New field.
6348 (struct remote_state) <stop_reply_queue,
6349 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6351 (remote_state::remote_state): Allocate stop_reply_queue.
6352 (remote_state): Delete global.
6353 (get_remote_state_raw): Delete.
6354 (remote_target::get_remote_state): Allocate m_remote_state on
6356 (get_current_remote_target): New.
6357 (remote_ops, extended_remote_ops): Delete.
6358 (wait_forever_enabled_p, remote_async_inferior_event_token):
6359 Delete, moved to struct remote_state.
6360 (remote_target::close): Delete self. Destruction bits split to
6362 (remote_target::~remote_target): ... this.
6363 (show_memory_packet_size): Adjust to use
6364 get_current_remote_target.
6365 (struct protocol_feature) <func>: Add remote_target parameter.
6366 All callers adjusted.
6367 (curr_quit_handler_target): New.
6368 (remote_serial_quit_handler): Reimplement.
6369 (remote_target::open_1): Adjust to use get_current_remote_target.
6370 Heap-allocate remote_target/extended_remote_target instances.
6371 (vcont_builder::vcont_builder): Add remote_target parameter, and
6372 save it in m_remote. All callers adjusted.
6373 (vcont_builder::m_remote): New field.
6374 (vcont_builder::restart, vcont_builder::flush)
6375 (vcont_builder::push_action): Use it.
6376 (remote_target::commit_resume): Use it.
6377 (struct queue_iter_param) <remote>: New field.
6378 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6379 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6380 (check_pending_event_prevents_wildcard_vcont_callback)
6381 (remote_target::check_pending_events_prevent_wildcard_vcont)
6382 (remote_target::discard_pending_stop_replies)
6383 (remote_target::discard_pending_stop_replies_in_queue)
6384 (remote_target::remote_notif_remove_queued_reply): Fill in
6386 (remote_notif_get_pending_events): New.
6387 (remote_target::readchar, remote_target::remote_serial_write):
6388 Save/restore curr_quit_handler_target.
6390 (kill_new_fork_children): Fill in 'remote' field.
6391 (packet_command): Use get_current_remote_target, defer to
6392 remote_target method of same name.
6393 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6394 parameter, and save it in m_remote. All callers adjusted.
6395 (scoped_remote_fd::release): Use m_remote.
6396 (scoped_remote_fd::m_remote): New field.
6397 (remote_file_put, remote_file_get, remote_file_delete): Use
6398 get_current_remote_target, defer to remote_target method of same
6400 (remote_btrace_reset): Add remote_state paremeter. Update all
6402 (remote_async_inferior_event_handler). Pass down 'data'.
6403 (remote_new_objfile): Use get_current_remote_target.
6404 (remote_target::vcont_r_supported): New.
6405 (set_range_stepping): Use get_current_remote_target and
6406 remote_target::vcont_r_supported.
6407 (_initialize_remote): Don't allocate 'remote_state' and
6408 'stop_reply_queue' globals.
6409 * remote.h (struct remote_target): Forward declare.
6410 (getpkt, putpkt, remote_notif_get_pending_events): Add
6411 'remote_target' parameter.
6413 2018-05-22 Pedro Alves <palves@redhat.com>
6415 * remote.c (vcont_builder): Now a class. Make all data members
6417 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6419 (vcont_builder_restart): Rename to ...
6420 (vcont_builder::restart): ... this.
6421 (vcont_builder_flush): Rename to ...
6422 (vcont_builder::flush): ... this.
6423 (vcont_builder_push_action): Rename to ...
6424 (vcont_builder::push_action): ... this.
6425 (remote_target::commit_resume): Adjust.
6427 2018-05-22 Pedro Alves <palves@redhat.com>
6429 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6430 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6431 (get_fixed_memory_packet_size): New.
6432 (get_memory_packet_size): Use it.
6433 (set_memory_packet_size): Don't override the config size with
6434 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6435 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6436 Don't refer to get_memory_packet_size if not connected to a remote
6437 target. Show "(default)" if configured size is 0.
6439 2018-05-22 Pedro Alves <palves@redhat.com>
6441 * remote.c (remote_target::mourn_inferior): Move
6442 discard_pending_stop_replies call here from ...
6443 (_initialize_remote): ... here.
6445 2018-05-22 Pedro Alves <palves@redhat.com>
6447 * remote.c (compare_section_command): Remove set_general_process
6450 2018-05-22 Pedro Alves <palves@redhat.com>
6452 * remote.c (struct packet_reg, struct remote_arch_state):
6453 Move higher up in the file.
6454 (remote_state) <m_arch_states>: Store remote_arch_state values
6455 instead of remote_arch_state pointers.
6456 (remote_state::get_remote_arch_state): Adjust.
6458 2018-05-22 Pedro Alves <palves@redhat.com>
6460 * remote.c: Include <unordered_map>.
6461 (remote_state): Now a class.
6462 (remote_state) <get_remote_arch_state>: Declare method.
6463 <get_remote_arch_state>: New field.
6464 (remote_arch_state) <remote_arch_state>: Declare ctor.
6465 <regs>: Now a unique_ptr.
6466 (remote_gdbarch_data_handle): Delete.
6467 (get_remote_arch_state): Delete.
6468 (remote_state::get_remote_arch_state): New.
6469 (get_remote_state): Adjust to call remote_state's
6470 get_remote_arch_state method.
6471 (init_remote_state): Delete, bits factored out to ...
6472 (remote_arch_state::remote_arch_state): ... this new method.
6473 (get_remote_packet_size, get_memory_packet_size)
6474 (process_g_packet, remote_target::fetch_registers)
6475 (remote_target::prepare_to_store, store_registers_using_G)
6476 (remote_target::store_registers, remote_target::get_trace_status):
6477 Adjust to call remote_state's method.
6478 (_initialize_remote): Remove reference to
6479 remote_gdbarch_data_handle.
6481 2018-05-22 Pedro Alves <palves@redhat.com>
6483 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6484 pread>: New method declarations.
6485 (remote_target::open_1): Adjust.
6486 (readahead_cache_invalidate): Rename to ...
6487 (readahead_cache::invalidate): ... this, and adjust to be a class
6489 (readahead_cache_invalidate_fd): Rename to ...
6490 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6492 (remote_hostio_pwrite): Adjust.
6493 (remote_hostio_pread_from_cache): Rename to ...
6494 (readahead_cache::pread): ... this, and adjust to be a class
6496 (remote_hostio_close): Adjust.
6498 2018-05-22 Pedro Alves <palves@redhat.com>
6500 * remote.c (remote_hostio_close_cleanup): Delete.
6501 (class scoped_remote_fd): New.
6502 (remote_file_put, remote_file_get): Use it.
6504 2018-05-22 Pedro Alves <palves@redhat.com>
6506 (struct vCont_action_support): Use bool and initialize all fields.
6507 (struct readahead_cache): Initialize all fields.
6508 (remote_state): Use bool and initialize all fields.
6509 (remote_state::remote_state, remote_state::~remote_state): New.
6510 (new_remote_state): Delete.
6511 (_initialize_remote): Use new to allocate remote_state.
6513 2018-05-22 Pedro Alves <palves@redhat.com>
6517 * c-exp.y: Include "c-support.h".
6518 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6519 of tolower. Use c_ident_is_alpha to scan names.
6520 * c-lang.c: Include "c-support.h".
6521 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6522 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6523 * c-support.h: New file, with bits factored out from ...
6524 * cp-name-parser.y: ... this file.
6525 Include "c-support.h".
6526 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6527 c-support.h and renamed.
6528 (symbol_end, yylex): Adjust.
6530 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6532 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6533 parameter type to CORE_ADDR.
6534 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6535 parameter type in declaration to CORE_ADDR.
6536 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6537 target_auxv_search to get AT_HWCAP and use the result to get the
6539 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6540 to CORE_ADDR. Remove the cast of the return value to unsigned
6541 long. Fix error predicate of target_auxv_search.
6542 (ppc_linux_nat_target::read_description): Change the type of the
6543 hwcap variable to CORE_ADDR.
6545 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6547 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6548 if the size of fpscr is larger than 32 bits.
6550 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6552 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6553 (ppc32_linux_vsxregmap): New global.
6554 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6555 regcache_supply_regset, and regcache_collect_regset.
6556 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6557 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6558 (fetch_vsx_register, store_vsx_register): Remove.
6559 (fetch_vsx_registers): Add regno parameter. Get regset using
6560 ppc_linux_vsxregset. Use regset to supply registers.
6561 (store_vsx_registers): Add regno parameter. Get regset using
6562 ppc_linux_vsxregset. Use regset to collect registers.
6563 (fetch_register): Call fetch_vsx_registers instead of
6565 (store_register): Call store_vsx_registers instead of
6567 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6568 new regno parameter.
6569 (store_ppc_registers): Call store_vsx_registers with -1 for the
6570 new regno parameter.
6571 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6572 (ppc_collect_vsxregset): Remove.
6574 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6576 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6578 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6579 for vector register offset fields.
6580 (ppc64_fbsd_reg_offsets): Likewise.
6581 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6582 to vector register offset fields.
6583 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6584 to vector register offset fields.
6585 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6586 vector register offset fields.
6587 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6588 initializers for vector register offset fields.
6589 (rs6000_aix64_reg_offsets): Likewise.
6590 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6591 (ppc_supply_vrregset): Remove.
6592 (ppc_collect_vrregset): Remove.
6593 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6594 (ppc_linux_vrregset) : New function.
6595 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6596 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6597 (ppc32_linux_vrregset): Remove.
6598 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6599 and use result instead of ppc32_linux_vrregset.
6600 (ppc32_linux_reg_offsets): Remove initializers for vector register
6602 (ppc64_linux_reg_offsets): Likewise.
6603 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6604 * ppc-linux-nat.c: Include regset.h.
6605 (gdb_vrregset_t): Adjust comment to account for little-endian
6607 (supply_vrregset, fill_vrregset): Remove.
6608 (fetch_altivec_register, store_altivec_register): Remove.
6609 (fetch_altivec_registers): Add regno parameter. Get regset using
6610 ppc_linux_vrregset. Use regset to supply registers.
6611 (store_altivec_registers): Add regno parameter. Get regset using
6612 ppc_linux_vrregset. Use regset to collect registers.
6613 (fetch_register): Call fetch_altivec_registers instead of
6614 fetch_altivec_register.
6615 (store_register): Call store_altivec_registers instead of
6616 store_altivec_register.
6617 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6618 the new regno parameter.
6619 (store_ppc_registers): Call store_altivec_registers with -1 for
6620 the new regno parameter.
6622 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6624 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6625 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6626 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6627 (gdb_vrregset_t): Change array type size to
6628 PPC_LINUX_SIZEOF_VRREGSET.
6629 (gdb_vsxregset_t): Change array type size to
6630 PPC_LINUX_SIZEOF_VSXREGSET.
6631 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6632 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6633 PPC_LINUX_SIZEOF_VSXREGSET.
6635 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6637 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6638 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6640 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6641 ppc_linux_target_wordsize with tid.
6642 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6644 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6645 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6646 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6647 tid parameter. Remove static specifier.
6648 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6649 (ppc_linux_target_wordsize): New declaration.
6651 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6653 * arch/ppc-linux-common.c: New file.
6654 * arch/ppc-linux-common.h: New file.
6655 * arch/ppc-linux-tdesc.h: New file.
6656 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6657 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6658 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6659 arch/ppc-linux-tdesc.h.
6660 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6661 arch/ppc-linux-tdesc.h.
6662 (ppc_linux_nat_target::read_description): Remove target
6663 description matching code. Fill a ppc_linux_features struct and
6664 call ppc_linux_match_description with it. Move comment about ISA
6665 2.05 to ppc-linux-common.c.
6666 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6667 arch/ppc-linux-tdesc.h.
6668 (ppc_linux_core_read_description): Remove target description
6669 matching code. Fill a ppc_linux_features struct and call
6670 ppc_linux_match_description with it.
6671 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6672 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6673 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6674 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6675 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6676 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6677 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6678 (tdesc_powerpc_e500l): Remove.
6680 2018-05-22 Joel Brobecker <brobecker@adacore.com>
6682 * ada-lang.c (catch_assert_command): Pass empty string instead
6683 of NULL for excep_string argument.
6685 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6687 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6688 the width of the requested register exceeds the width of the
6691 2018-05-21 Tom Tromey <tom@tromey.com>
6693 * printcmd.c (output_command): Remove.
6694 (output_command_const): Rename to output_command.
6695 * valprint.h (output_command): Rename from output_command_const.
6696 * tracepoint.c (trace_dump_actions): Call output_command.
6698 2018-05-21 Tom Tromey <tom@tromey.com>
6700 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6701 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6702 * ada-lang.h (create_ada_exception_catchpoint): Update.
6703 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6705 (create_excep_cond_exprs, ~ada_catchpoint)
6706 (should_stop_exception, print_one_exception)
6707 (print_mention_exception, print_recreate_exception): Update.
6708 (ada_get_next_arg): Remove.
6709 (catch_ada_exception_command_split): Use std::string. Change type
6710 of "excep_string", "cond_string".
6711 (catch_ada_exception_command): Update.
6712 (create_ada_exception_catchpoint): Change type of excep_string.
6713 (ada_exception_sal): Remove excep_string parameter.
6714 (~ada_catchpoint): Remove.
6716 2018-05-21 Tom Tromey <tom@tromey.com>
6718 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6721 2018-05-21 Tom Tromey <tom@tromey.com>
6723 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6724 Return unique_xmalloc_ptr.
6725 (print_it_exception): Update.
6727 2018-05-21 Tom Tromey <tom@tromey.com>
6729 * tracepoint.c (trace_dump_actions): Use std::string.
6731 2018-05-21 Tom Tromey <tom@tromey.com>
6733 * symfile.c (reread_symbols): Use std::string for original_name.
6735 2018-05-21 Tom Tromey <tom@tromey.com>
6737 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6738 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6741 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6743 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6745 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6746 * objfiles.c (get_objfile_bfd_data): Allocate
6747 objfile_per_bfd_storage with obstack_new when allocating on
6750 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6752 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6754 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6755 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6756 * mdebugread.c (mdebug_build_psymtabs): Likewise.
6757 (add_pending): Likewise.
6758 (parse_symbol): Likewise.
6759 (parse_partial_symbols): Likewise.
6760 (psymtab_to_symtab_1): Likewise.
6761 (new_psymtab): Likewise.
6762 (elfmdebug_build_psymtabs): Likewise.
6763 * minsyms.c (terminate_minimal_symbol_table): Likewise.
6764 * objfiles.c (get_objfile_bfd_data): Likewise.
6765 (objfile_register_static_link): Likewise.
6766 * psymtab.c (allocate_psymtab): Likewise.
6767 * stabsread.c (read_member_functions): Likewise.
6768 * xcoffread.c (xcoff_end_psymtab): Likewise.
6770 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6772 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
6773 compiler supports std::is_trivially_constructible.
6774 * common/poison.h: Include obstack.h.
6775 (IsMallocable): Define to is_trivially_constructible if the
6776 compiler supports it, define to true_type otherwise.
6780 (XOBNEWVEC): Redefine.
6781 * gdb_obstack.h (obstack_zalloc): New.
6782 (OBSTACK_ZALLOC): Redefine.
6783 (obstack_calloc): New.
6784 (OBSTACK_CALLOC): Redefine.
6786 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
6787 (gdbarch_obstack): New declaration in gdbarch.h, definition in
6789 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
6790 obstack_calloc/obstack_zalloc.
6791 (gdbarch_obstack_zalloc): Remove.
6792 * target-descriptions.c (tdesc_data_init): Use obstack_new.
6794 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6796 * stack.c (backtrace_command_1): Remove useless variable int i.
6798 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6800 * stack.c (print_frame_info): Fix comment.
6802 2018-05-18 Tom Tromey <tom@tromey.com>
6804 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
6805 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
6806 (~dwarf2_per_objfile): Update
6807 (dwarf2_get_dwz_file): Use new.
6808 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6811 2018-05-18 Tom Tromey <tom@tromey.com>
6813 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
6815 * dwarf2read.c (struct dwp_file): Add constructor and
6817 (open_and_init_dwp_file): Return a unique_ptr.
6818 (dwarf2_per_objfile, create_dwp_hash_table)
6819 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
6820 (lookup_dwo_unit_in_dwp): Update.
6821 (open_and_init_dwp_file, get_dwp_file): Update.
6823 2018-05-18 Tom Tromey <tom@tromey.com>
6825 * dwarf2read.c (dwarf2_per_objfile): Update.
6826 (struct mapped_index): Add initializers.
6827 (dwarf2_read_index): Use new.
6828 (dw2_symtab_iter_init): Update.
6829 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
6832 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6834 * dwarf2read.c (mapped_index) <total_size>: Remove.
6836 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6838 * unittests/format_pieces-selftests.c (test_format_specifier):
6841 2018-05-18 Tom Tromey <tom@tromey.com>
6843 * c-typeprint.c (maybe_print_hole): New function.
6844 (c_print_type_struct_field_offset): Update.
6845 (c_type_print_base_struct_union): Call maybe_print_hole.
6847 2018-05-17 Keith Seitz <keiths@redhat.com>
6849 * breakpoint.c (build_bpstat_chain): New function, moved from
6851 (bpstat_stop_status): Add optional parameter, `stop_chain'.
6852 If no stop chain is passed, call build_bpstat_chain to build it.
6853 * breakpoint.h (build_bpstat_chain): Declare.
6854 (bpstat_stop_status): Move documentation here from breakpoint.c.
6855 * infrun.c (handle_signal_stop): Before eliding inlined frames,
6856 build the stop chain and pass it to skip_inline_frames.
6857 Pass this stop chain to bpstat_stop_status.
6858 * inline-frame.c: Include breakpoint.h.
6859 (stopped_by_user_bp_inline_frame): New function.
6860 (skip_inline_frames): Add parameter `stop_chain'.
6861 Move documention to inline-frame.h.
6862 If non-NULL, use stopped_by_user_bp_inline_frame to determine
6863 whether the frame should be elided.
6864 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
6865 Add moved documentation and update for new parameter.
6867 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6870 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6871 unittests/format_pieces-selftests.c.
6872 * common/format.h (format_piece) <operator==>: New.
6873 (format_pieces) <operator[]>: Remove.
6874 * common/format.c (format_pieces::format_pieces): Handle \e.
6875 * unittests/format_pieces-selftests.c: New.
6877 2018-05-17 Tom Tromey <tom@tromey.com>
6880 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
6881 (dw2_instantiate_symtab): Add skip_partial parameter.
6882 (dw2_find_last_source_symtab, dw2_map_expand_apply)
6883 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
6884 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
6885 (dw2_expand_symtabs_matching_one)
6886 (dw2_find_pc_sect_compunit_symtab)
6887 (dw2_debug_names_lookup_symbol)
6888 (dw2_debug_names_expand_symtabs_for_function): Update.
6889 (init_cutu_and_read_dies): Add skip_partial parameter.
6890 (process_psymtab_comp_unit, build_type_psymtabs_1)
6891 (process_skeletonless_type_unit, load_partial_comp_unit)
6892 (psymtab_to_symtab_1): Update.
6893 (load_full_comp_unit): Add skip_partial parameter.
6894 (process_imported_unit_die, dwarf2_read_addr_index)
6895 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
6896 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
6897 (read_signatured_type): Update.
6899 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6901 * value.c (release_value): Remove unused variable.
6902 (record_latest_value): Likewise.
6903 (access_value_history): Likewise.
6904 (preserve_values): Likewise.
6906 2018-05-17 Tom Tromey <tom@tromey.com>
6908 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
6911 2018-05-16 Maciej W. Rozycki <macro@mips.com>
6914 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
6915 Also handle registers whose width is not a multiple of
6917 (linux_nat_trad_target::store_register): Likewise.
6919 2018-05-16 Tom Tromey <tom@tromey.com>
6921 * gdbcore.h (core_bfd): Redefine.
6922 * corelow.c (core_target::close): Update.
6923 (core_target_open): Update.
6924 * progspace.h (struct program_space) <cbfd>: Now a
6927 2018-05-16 Tom Tromey <tom@tromey.com>
6930 * symfile-add-flags.h (enum symfile_add_flags)
6931 <SYMFILE_NOT_FILENAME>: New constant.
6932 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
6933 objfile name from BFD.
6934 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
6935 * minidebug.c (find_separate_debug_file_in_section): Put
6936 ".gnu_debugdata" into BFD's file name.
6938 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
6940 * regcache.c (regcache_read_ftype, regcache_write_ftype):
6943 2018-05-15 Tamar Christina <tamar.christina@arm.com>
6946 * aarch64-tdep.c (aarch64_analyze_prologue,
6947 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
6948 Indicate not interested in errors.
6950 2018-05-15 Maciej W. Rozycki <macro@mips.com>
6952 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
6953 Supply the MIPS_ZERO_REGNUM register.
6955 2018-05-15 Maciej W. Rozycki <macro@mips.com>
6957 * mips-tdep.c (mask_address_var): Make variable static.
6959 2018-05-14 Tom Tromey <tom@tromey.com>
6961 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
6963 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
6965 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
6966 FXSAVE_ADDR for the mxcsr register.
6968 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
6970 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
6972 2018-05-11 Pedro Alves <palves@redhat.com>
6974 * corelow.c (core_target) <core_target>: No longer inline.
6975 Initialize m_core_gdbarch, m_core_vec and build the section table
6977 <~core_target>: New.
6978 <core_gdbarch, get_core_register_section>: New methods.
6979 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
6980 factored out from ...
6981 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
6983 (sniff_core_bfd): Add gdbarch parameter.
6984 (core_close): Delete, merged into ...
6985 (core_target::close): ... here. Delete self.
6986 (core_close_cleanup): Delete.
6987 (core_target_open): Allocate a core_target on the heap. Use a
6988 unique_ptr instead of a cleanup. Bits moved into the core_target
6989 ctor. Adjust to use core_target methods instead of globals.
6990 (get_core_register_section): Rename to ...
6991 (core_target::get_core_register_section): ... this and adjust.
6992 (struct get_core_registers_cb_data): New.
6993 (get_core_registers_cb): Use it. Use bool.
6994 (core_target::fetch_registers, core_target::files_info)
6995 (core_target::xfer_partial, core_target::read_description)
6996 (core_target::pid_to, core_target::thread_name): Adjust to
6997 reference class fields instead of globals.
6998 * target.h (struct target_ops_deleter, target_ops_up): New.
7000 2018-05-11 Pedro Alves <palves@redhat.com>
7002 * corefile.c (core_file_command): Move to corelow.c.
7003 * corelow.c (the_core_target): Delete.
7004 (core_file_command): Moved from corefile.c. Check exec_bfd
7005 instead of the_core_target. Use target_detach instead of calling
7006 into the_core_target directly.
7007 (maybe_say_no_core_file_now): New.
7008 (core_target::detach): Use it.
7009 (_initialize_corelow): Remove references to the_core_target.
7010 * gdbcore.h (the_core_target): Delete.
7012 2018-05-11 Tom Tromey <tromey@redhat.com>
7013 Pedro Alves <palves@redhat.com>
7015 * corefile.c (core_bfd): Remove.
7016 * gdbcore.h (core_bfd): Now a macro.
7017 * progspace.h (struct program_space) <cbfd>: New field.
7019 2018-05-11 Tom Tromey <tom@tromey.com>
7021 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7024 2018-05-10 Tom Tromey <tom@tromey.com>
7026 * configure: Rebuild.
7027 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7029 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7032 * regformats/regdat.sh: Adjust script, following the addition
7033 of the new expedite_regs parameter to init_target_desc.
7035 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7038 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7039 set_gdbarch_significant_addr_bit.
7040 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7041 set_gdbarch_significant_addr_bit.
7042 * utils.c (address_significant): Update to sign extend addr.
7044 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7046 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7047 (xtensa_linux_init_abi): Limit tdep->num_regs by
7048 tdep->num_nopriv_regs.
7049 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7050 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7053 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7055 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7057 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7059 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7060 (I387_MXCSR_INIT_VAL): New constant.
7061 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7062 buffer if it was supplied by the inferior.
7063 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7064 (i387_xsave_get_clear_bv): New function.
7065 (i387_supply_xsave): Only read x87 control registers from the
7066 xsave buffer if the feature is enabled, and the state will have
7067 been written, otherwise, provide a suitable default.
7068 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7069 including x87 control registers. Update control registers if they
7070 have changed from the default value, and mark features as enabled
7072 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7074 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7076 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7078 2018-05-07 Tom Tromey <tom@tromey.com>
7080 * configure: Rebuild.
7081 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7083 2018-05-07 Tom Tromey <tom@tromey.com>
7086 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7087 bit. Use correct value for VDIV.
7089 2018-05-04 Tom Tromey <tom@tromey.com>
7091 * configure: Rebuild.
7092 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7094 2018-05-04 Tom Tromey <tom@tromey.com>
7096 * linux-record.c (record_linux_system_call) <case
7097 RECORD_SYS_RECVFROM>: Add "break".
7099 2018-05-04 Tom Tromey <tom@tromey.com>
7101 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7102 Add missing "break".
7103 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7104 Add missing "break".
7106 2018-05-04 Tom Tromey <tom@tromey.com>
7108 * rs6000-tdep.c (ppc_process_record_op4)
7109 (ppc_process_record_op63): Add fall-through comment.
7111 2018-05-04 Tom Tromey <tom@tromey.com>
7113 * i386-tdep.c (i386_process_record): Add fall-through comment.
7115 2018-05-04 Tom Tromey <tom@tromey.com>
7117 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7120 2018-05-04 Tom Tromey <tom@tromey.com>
7122 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7123 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7124 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7126 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7128 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7131 2018-05-04 Tom Tromey <tom@tromey.com>
7133 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7135 2018-05-04 Tom Tromey <tom@tromey.com>
7137 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7138 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7139 * symfile.c (section_is_mapped): Fix fall-through comment.
7140 * stabsread.c (define_symbol, read_member_functions): Fix
7141 fall-through comment.
7142 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7144 * remote.c (remote_wait_as): Fix fall-through comment.
7145 * p-exp.y (yylex): Fix fall-through comment.
7146 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7148 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7149 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7150 * jv-exp.y (yylex): Fix fall-through comment.
7151 * go-exp.y (lex_one_token): Fix fall-through comment.
7152 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7153 fall-through comment.
7154 * f-exp.y (yylex): Fix fall-through comment.
7155 * dwarf2read.c (process_die): Fix fall-through comments.
7156 * dbxread.c (process_one_symbol): Fix fall-through comment.
7157 * d-exp.y (lex_one_token): Fix fall-through comment.
7158 * cp-name-parser.y (yylex): Fix fall-through comment.
7159 * coffread.c (coff_symtab_read): Fix fall-through comment.
7160 * c-exp.y (lex_one_token): Fix fall-through comment.
7161 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7163 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7166 2018-05-04 Tom Tromey <tom@tromey.com>
7169 * NEWS: Mention gdb.execute change.
7170 * gdbcmd.h (execute_control_command): Don't declare.
7171 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7172 execute_control_commands, execute_control_commands_to_string.
7173 * cli/cli-script.h (execute_control_commands)
7174 (execute_control_commands_to_string): Declare.
7175 (execute_control_command): Add from_tty parameter.
7176 * cli/cli-script.c (execute_control_commands)
7177 (execute_control_commands_to_string): New functions.
7178 (execute_user_command): Use execute_control_commands.
7179 (execute_control_command_1): Add "from_tty" parameter. Update.
7180 (execute_control_command): Likewise.
7182 2018-05-04 Tom Tromey <tom@tromey.com>
7185 * NEWS: Mention that breakpoint commands are writable.
7186 * python/py-breakpoint.c (bppy_set_commands): New function.
7187 (breakpoint_object_getset) <"commands">: Use it.
7189 2018-05-04 Tom Tromey <tom@tromey.com>
7191 * tracepoint.c (actions_command): Update.
7192 * mi/mi-cmd-break.c (mi_command_line_array)
7193 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7194 (mi_read_next_line): Remove.
7195 (mi_cmd_break_commands): Update.
7196 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7198 * cli/cli-script.c (get_command_line): Update.
7199 (process_next_line): Use function_view. Constify.
7200 (recurse_read_control_structure, read_command_lines)
7201 (read_command_lines_1): Change argument types to function_view.
7202 (do_define_command, document_command): Update.
7203 * breakpoint.h (check_tracepoint_command): Don't declare.
7204 * breakpoint.c (check_tracepoint_command): Remove.
7205 (commands_command_1, create_tracepoint_from_upload): Update.
7207 2018-05-04 Tom Tromey <tom@tromey.com>
7210 * cli/cli-script.h (enum command_control_type) <define_control>:
7212 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7213 (build_command_line, execute_control_command_1)
7214 (process_next_line): Likewise.
7215 (do_define_command): New function, extracted from define_command.
7216 (define_command): Use it.
7218 2018-05-04 Tom Tromey <tom@tromey.com>
7220 * tracepoint.c (actions_command): Update.
7221 * cli/cli-script.h (read_command_lines): Update.
7222 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7223 (MAX_TMPBUF): Remove define.
7224 (define_command): Use string_printf.
7225 (document_command): Likewise.
7226 * breakpoint.c (commands_command_1): Update.
7228 2018-05-04 Tom Tromey <tom@tromey.com>
7230 * top.c (execute_command): Update.
7231 * cli/cli-script.h (print_command_lines): Now varargs.
7232 * cli/cli-script.c (print_command_lines): Now varargs.
7233 (execute_control_command_1) <case while_control, case if_control>:
7236 2018-05-04 Tom Tromey <tom@tromey.com>
7238 * tracepoint.c (all_tracepoint_actions): Rename from
7239 all_tracepoint_actions_and_cleanup. Change return type.
7240 (actions_command, encode_actions_1, encode_actions)
7241 (trace_dump_actions, tdump_command): Update.
7242 * remote.c (remote_download_command_source): Update.
7243 * python/python.c (gdbpy_eval_from_control_command)
7244 (python_command, python_interactive_command): Update.
7245 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7246 * guile/guile.c (guile_command)
7247 (gdbscm_eval_from_control_command, guile_command): Update.
7248 * compile/compile.c (compile_code_command)
7249 (compile_print_command, compile_to_object): Update.
7250 * cli/cli-script.h (struct command_lines_deleter): New.
7251 (counted_command_line): New typedef.
7252 (struct command_line): Add constructor, destructor.
7253 <body_list>: Remove.
7254 <body_list_0, body_list_1>: New members.
7255 (command_line_up): Remove typedef.
7256 (read_command_lines, read_command_lines_1, get_command_line):
7258 (copy_command_lines): Don't declare.
7259 * cli/cli-script.c (build_command_line): Use "new".
7260 (get_command_line): Return counted_command_line.
7261 (print_command_lines, execute_user_command)
7262 (execute_control_command_1, while_command, if_command): Update.
7263 (realloc_body_list): Remove.
7264 (process_next_line, recurse_read_control_structure): Update.
7265 (read_command_lines, read_command_lines_1): Return counted_command_line.
7266 (free_command_lines): Use "delete".
7267 (copy_command_lines): Remove.
7268 (define_command, document_command, show_user_1): Update.
7269 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7270 a counted_command_line.
7271 * breakpoint.h (counted_command_line): Remove typedef.
7272 (breakpoint_set_commands): Update.
7273 * breakpoint.c (check_no_tracepoint_commands)
7274 (validate_commands_for_breakpoint): Update.
7275 (breakpoint_set_commands): Change commands to be a
7276 counted_command_line.
7277 (commands_command_1, update_dprintf_command_list)
7278 (create_tracepoint_from_upload): Update.
7280 2018-05-04 Tom Tromey <tom@tromey.com>
7282 * cli/cli-decode.h (cmd_list_element): New constructor.
7283 (~cmd_list_element): New destructor.
7284 (struct cmd_list_element): Add initializers.
7285 * cli/cli-decode.c (do_add_cmd): Use "new".
7286 (delete_cmd): Use "delete".
7288 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7289 Pedro Alves <palves@redhat.com>
7291 PR breakpoints/19806 and support for PR external/20207.
7292 * NEWS: Mention Aarch64 watchpoint improvements.
7293 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7294 watchpoints and PR external/20207 watchpoints.
7295 * nat/aarch64-linux-hw-point.c
7296 (kernel_supports_any_contiguous_range): New.
7297 (aarch64_watchpoint_offset): New.
7298 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7299 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7300 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7301 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7302 next_addr_orig_p. Support PR external/20207 watchpoints.
7303 (aarch64_downgrade_regs): New.
7304 (aarch64_dr_state_insert_one_point): New parameters offset and
7306 (aarch64_dr_state_remove_one_point): Likewise.
7307 (aarch64_handle_breakpoint): Update caller.
7308 (aarch64_handle_aligned_watchpoint): Likewise.
7309 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7311 (aarch64_linux_set_debug_regs): Remove const from state. Call
7312 aarch64_downgrade_regs.
7313 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7314 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7315 (DR_CONTROL_MASK): ... this.
7316 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7317 (unsigned int aarch64_watchpoint_offset): New prototype.
7318 (aarch64_linux_set_debug_regs): Remove const from state.
7319 * utils.c (align_up, align_down): Move to ...
7320 * common/common-utils.c (align_up, align_down): ... here.
7321 * utils.h (align_up, align_down): Move to ...
7322 * common/common-utils.h (align_up, align_down): ... here.
7324 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7326 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7327 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7328 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7329 Re-implement to match the ABI as summarized in GCC's
7330 gcc/config/sparc/sparc.c. All callers updated.
7331 (sparc32_store_arguments): Remove assertion.
7333 2018-05-04 Tom Tromey <tom@tromey.com>
7335 * printcmd.c: Don't include tui.h.
7336 (decode_format): Use skip_spaces.
7338 2018-05-04 Tom Tromey <tom@tromey.com>
7341 * printcmd.c (last_count): New global.
7342 (x_command): Use saved count when repeating.
7344 2018-05-04 Tom Tromey <tom@tromey.com>
7346 * nto-procfs.c (do_closedir_cleanup): Remove.
7347 (procfs_pidlist): Use gdb_dir_up.
7348 * procfs.c (do_closedir_cleanup): Remove.
7349 (proc_update_threads): Use gdb_dir_up.
7350 * common/filestuff.h (struct gdb_dir_deleter): New.
7351 (gdb_dir_up): New typedef.
7353 2018-05-04 Tom Tromey <tom@tromey.com>
7355 * ada-lang.c (print_mention_exception): Use std::string.
7357 2018-05-04 Tom Tromey <tom@tromey.com>
7359 * ada-lang.c (create_excep_cond_exprs): Update.
7360 (ada_exception_catchpoint_cond_string): Use std::string.
7362 2018-05-04 Tom Tromey <tom@tromey.com>
7364 * ada-lang.c (xget_renaming_scope): Return std::string.
7365 (old_renaming_is_invisible): Update.
7367 2018-05-04 Tom Tromey <tom@tromey.com>
7369 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7370 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7372 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7374 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7376 2018-05-04 Tom Tromey <tom@tromey.com>
7378 * remote.c (remote_query_supported_append): Change type.
7379 (remote_check_symbols): Update.
7381 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7384 * configure.ac: Prepend libpython.
7385 * python/python-config.py: Likewise.
7386 * configure: Regenerate.
7388 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7390 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7392 2018-05-03 Pedro Alves <palves@redhat.com>
7395 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7396 override. Write 'true' instead of '1'.
7397 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7400 2018-05-02 Pedro Alves <palves@redhat.com>
7402 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7403 add_inf_child_target.
7404 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7405 add_inf_child_target.
7406 * aix-thread.c (aix_thread_target_info): New.
7407 (aix_thread_target) <shortname, longname, doc>: Delete.
7409 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7410 add_inf_child_target.
7411 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7412 add_inf_child_target.
7413 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7414 add_inf_child_target.
7415 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7416 add_inf_child_target.
7417 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7418 add_inf_child_target.
7419 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7420 add_inf_child_target.
7421 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7422 add_inf_child_target.
7423 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7424 add_inf_child_target.
7425 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7426 add_inf_child_target.
7427 * bfd-target.c (target_bfd_target_info): New.
7428 (target_bfd) <shortname, longname, doc>: Delete.
7430 * bsd-kvm.c (bsd_kvm_target_info): New.
7431 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7433 (bsd_kvm_target::open): Rename to ...
7434 (bsd_kvm_target_open): ... this. Adjust.
7435 * bsd-uthread.c (bsd_uthread_target_info): New.
7436 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7438 * corefile.c (core_file_command): Adjust.
7439 * corelow.c (core_target_info): New.
7440 (core_target) <shortname, longname, doc>: Delete.
7442 (core_target::open): Rename to ...
7443 (core_target_open): ... this. Adjust.
7444 * ctf.c (ctf_target_info): New.
7445 (ctf_target) <shortname, longname, doc>: Delete.
7447 (ctf_target::open): Rename to ...
7448 (ctf_target_open): ... this.
7449 (_initialize_ctf): Adjust.
7450 * exec.c (exec_target_info): New.
7451 (exec_target) <shortname, longname, doc>: Delete.
7453 (exec_target::open): Rename to ...
7454 (exec_target_open): ... this.
7455 * gdbcore.h (core_target_open): Declare.
7456 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7457 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7458 add_inf_child_target.
7459 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7460 add_inf_child_target.
7461 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7462 add_inf_child_target.
7463 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7464 add_inf_child_target.
7465 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7466 add_inf_child_target.
7467 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7468 add_inf_child_target.
7469 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7470 add_inf_child_target.
7471 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7472 add_inf_child_target.
7473 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7474 add_inf_child_target.
7475 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7476 add_inf_child_target.
7477 * inf-child.c (inf_child_target_info): New.
7478 (inf_child_target::info): New.
7479 (inf_child_open_target): Remove 'target' parameter. Use
7480 get_native_target instead.
7481 (inf_child_target::open): Delete.
7482 (add_inf_child_target): New.
7483 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7486 (add_inf_child_target): Declare.
7487 (inf_child_open_target): Declare.
7488 * linux-thread-db.c (thread_db_target_info): New.
7489 (thread_db_target) <shortname, longname, doc>: Delete.
7491 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7492 add_inf_child_target.
7493 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7494 add_inf_child_target.
7495 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7496 add_inf_child_target.
7497 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7498 add_inf_child_target.
7499 * make-target-delegates (print_class): Adjust.
7500 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7501 add_inf_child_target.
7502 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7503 add_inf_child_target.
7504 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7505 add_inf_child_target.
7506 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7507 add_inf_child_target.
7508 * nto-procfs.c (nto_native_target_info): New.
7509 (nto_procfs_target_native) <shortname, longname, doc>:
7512 (nto_procfs_target_info): New.
7513 (nto_procfs_target_procfs) <shortname, longname, doc>:
7516 (init_procfs_targets): Adjust.
7517 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7518 add_inf_child_target.
7519 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7520 add_inf_child_target.
7521 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7522 add_inf_child_target.
7523 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7524 add_inf_child_target.
7525 * ravenscar-thread.c (ravenscar_target_info): New.
7526 (ravenscar_thread_target) <shortname, longname, doc>:
7529 * record-btrace.c (record_btrace_target_info):
7530 (record_btrace_target) <shortname, longname, doc>: Delete.
7532 (record_btrace_target::open): Rename to ...
7533 (record_btrace_target_open): ... this. Adjust.
7534 * record-full.c (record_longname, record_doc): New.
7535 (record_full_base_target) <shortname, longname, doc>: Delete.
7537 (record_full_target_info): New.
7538 (record_full_target): <shortname>: Delete.
7540 (record_full_core_open_1, record_full_open_1): Update comments.
7541 (record_full_base_target::open): Rename to ...
7542 (record_full_open): ... this.
7543 (cmd_record_full_restore): Update.
7544 (_initialize_record_full): Update.
7545 * remote-sim.c (remote_sim_target_info): New.
7546 (gdbsim_target) <shortname, longname, doc>: Delete.
7548 (gdbsim_target::open): Rename to ...
7549 (gdbsim_target_open): ... this.
7550 (_initialize_remote_sim): Adjust.
7551 * remote.c (remote_doc): New.
7552 (remote_target_info): New.
7553 (remote_target) <shortname, longname, doc>: Delete.
7555 (extended_remote_target_info): New.
7556 (extended_remote_target) <shortname, longname, doc>: Delete.
7558 (remote_target::open_1): Make static. Adjust.
7559 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7560 * s390-linux-nat.c (_initialize_s390_nat): Use
7561 add_inf_child_target.
7562 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7563 add_inf_child_target.
7564 * sol-thread.c (thread_db_target_info): New.
7565 (sol_thread_target) <shortname, longname, doc>: Delete.
7567 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7568 add_inf_child_target.
7569 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7570 add_inf_child_target.
7571 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7572 add_inf_child_target.
7573 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7574 add_inf_child_target.
7575 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7576 add_inf_child_target.
7577 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7578 add_inf_child_target.
7579 * spu-linux-nat.c (_initialize_spu_nat): Use
7580 add_inf_child_target.
7581 * spu-multiarch.c (spu_multiarch_target_info): New.
7582 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7584 * target-delegates.c: Regenerate.
7585 * target.c: Include <unordered_map>.
7586 (target_ops_p): Delete.
7587 (DEF_VEC_P(target_ops_p)): Delete.
7588 (target_factories): New.
7589 (test_target_info): New.
7590 (test_target_ops::info): New.
7591 (open_target): Adjust to use target_factories.
7592 (add_target_with_completer): Rename to ...
7593 (add_target): ... this. Change prototype. Register target_info
7594 and open callback in target_factories. Register target_info in
7595 command context instead of target_ops.
7596 (add_target): Delete old implementation.
7597 (add_deprecated_target_alias): Change prototype. Adjust.
7598 (the_native_target): New.
7599 (set_native_target, get_native_target): New.
7600 (find_default_run_target): Use the_native_target.
7601 (find_attach_target, find_run_target): Simplify.
7602 (target_ops::open): Delete.
7603 (dummy_target_info): New.
7604 (dummy_target::shortname, dummy_target::longname)
7605 (dummy_target::doc): Delete.
7606 (dummy_target::info): New.
7607 (debug_target::shortname, debug_target::longname)
7608 (debug_target::doc): Delete.
7609 (debug_target::info): New.
7610 * target.h (struct target_info): New.
7611 (target_ops::~target_ops): Add comment.
7612 (target_ops::info): New.
7613 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7614 longer virtual. Implement in terms of target_info.
7615 (set_native_target, get_native_target): Declare.
7616 (target_open_ftype): New.
7617 (add_target, add_target_with_completer)
7618 (add_deprecated_target_alias): Change prototype.
7619 (test_target) <shortname, longname, doc>: Delete.
7621 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7622 add_inf_child_target.
7623 * tracefile-tfile.c (tfile_target_info): New.
7624 (tfile_target) <shortname, longname, doc>: Delete.
7626 (tfile_target::open): Rename to ...
7627 (tfile_target_open): ... this.
7628 (_initialize_tracefile_tfile): Adjust.
7629 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7630 add_inf_child_target.
7631 * windows-nat.c (_initialize_windows_nat): Use
7632 add_inf_child_target.
7633 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7634 add_inf_child_target.
7636 2018-05-02 Pedro Alves <palves@redhat.com>
7638 * linux-nat.h (linux_nat_target) <low_new_thread,
7639 low_delete_thread, low_new_fork, low_forget_process,
7640 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7641 New virtual methods.
7642 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7643 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7644 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7645 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7646 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7648 * linux-fork.c (delete_fork): Adjust to call low method.
7649 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7650 (linux_nat_new_fork, linux_nat_forget_process_hook)
7651 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7652 (linux_nat_status_is_event):
7653 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7654 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7656 (sigtrap_is_event): Rename to ...
7657 (linux_nat_target::low_status_is_event): ... this.
7658 (linux_nat_set_status_is_event): Delete.
7659 (save_stop_reason, linux_nat_wait_1)
7660 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7662 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7663 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7664 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7665 (linux_nat_set_prepare_to_resume): Delete.
7666 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7667 low virtual methods.
7668 * amd64-linux-nat.c: Likewise.
7669 * arm-linux-nat.c: Likewise.
7670 * i386-linux-nat.c: Likewise.
7671 * ia64-linux-nat.c: Likewise.
7672 * mips-linux-nat.c: Likewise.
7673 * ppc-linux-nat.c: Likewise.
7674 * s390-linux-nat.c: Likewise.
7675 * sparc64-linux-nat.c: Likewise.
7676 * x86-linux-nat.c: Likewise.
7677 * x86-linux-nat.h: Include "nat/x86-linux.h".
7678 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7679 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7682 2018-05-02 Pedro Alves <palves@redhat.com>
7684 * target.h (target_ops)
7685 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7686 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7687 stopped_by_watchpoint, have_continuable_watchpoint,
7688 stopped_data_address, watchpoint_addr_within_range,
7689 can_accel_watchpoint_condition, can_run, thread_alive,
7690 has_all_memory, has_memory, has_stack, has_registers,
7691 has_execution, can_async_p, is_async_p, supports_non_stop,
7692 always_non_stop_p, can_execute_reverse, supports_multi_process,
7693 supports_enable_disable_tracepoint,
7694 supports_disable_randomization, supports_string_tracing,
7695 supports_evaluation_of_breakpoint_conditions,
7696 can_run_breakpoint_commands, filesystem_is_local,
7697 can_download_tracepoint, get_trace_state_variable_value,
7698 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7699 record_is_replaying, record_will_replay,
7700 augmented_libraries_svr4_read>: Adjust to return bool.
7701 * aarch64-linux-nat.c: All implementations adjusted.
7702 * aix-thread.c: All implementations adjusted.
7703 * arm-linux-nat.c: All implementations adjusted.
7704 * breakpoint.c: All implementations adjusted.
7705 * bsd-kvm.c: All implementations adjusted.
7706 * bsd-uthread.c: All implementations adjusted.
7707 * corelow.c: All implementations adjusted.
7708 * ctf.c: All implementations adjusted.
7709 * darwin-nat.c: All implementations adjusted.
7710 * darwin-nat.h: All implementations adjusted.
7711 * exec.c: All implementations adjusted.
7712 * fbsd-nat.c: All implementations adjusted.
7713 * fbsd-nat.h: All implementations adjusted.
7714 * gnu-nat.c: All implementations adjusted.
7715 * gnu-nat.h: All implementations adjusted.
7716 * go32-nat.c: All implementations adjusted.
7717 * ia64-linux-nat.c: All implementations adjusted.
7718 * inf-child.c: All implementations adjusted.
7719 * inf-child.h: All implementations adjusted.
7720 * inf-ptrace.c: All implementations adjusted.
7721 * inf-ptrace.h: All implementations adjusted.
7722 * linux-nat.c: All implementations adjusted.
7723 * linux-nat.h: All implementations adjusted.
7724 * mips-linux-nat.c: All implementations adjusted.
7725 * nto-procfs.c: All implementations adjusted.
7726 * ppc-linux-nat.c: All implementations adjusted.
7727 * procfs.c: All implementations adjusted.
7728 * ravenscar-thread.c: All implementations adjusted.
7729 * record-btrace.c: All implementations adjusted.
7730 * record-full.c: All implementations adjusted.
7731 * remote-sim.c: All implementations adjusted.
7732 * remote.c: All implementations adjusted.
7733 * s390-linux-nat.c: All implementations adjusted.
7734 * sol-thread.c: All implementations adjusted.
7735 * spu-multiarch.c: All implementations adjusted.
7736 * target-delegates.c: All implementations adjusted.
7737 * target.c: All implementations adjusted.
7738 * target.h: All implementations adjusted.
7739 * tracefile-tfile.c: All implementations adjusted.
7740 * tracefile.c: All implementations adjusted.
7741 * tracefile.h: All implementations adjusted.
7742 * windows-nat.c: All implementations adjusted.
7743 * x86-linux-nat.h: All implementations adjusted.
7744 * x86-nat.h: All implementations adjusted.
7746 2018-05-02 Pedro Alves <palves@redhat.com>
7748 * make-target-delegates (scan_target_h): Don't trim lines here.
7749 Replace sequences of tabs and/or whitespace with a single
7751 (top level, parsing methods): Trim each line before processing it
7754 2018-05-02 Pedro Alves <palves@redhat.com>
7755 John Baldwin <jhb@freebsd.org>
7757 * target.h (enum strata) <debug_stratum>: New.
7758 (struct target_ops) <all delegation methods>: Replace by C++
7759 virtual methods, and drop "to_" prefix. All references updated
7761 <to_shortname, to_longname, to_doc, to_data,
7762 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
7763 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
7764 virtual methods. All references updated throughout.
7765 <can_attach, supports_terminal_ours, can_create_inferior,
7766 get_thread_control_capabilities, attach_no_wait>: New
7768 <insert_breakpoint, remove_breakpoint>: Now
7769 TARGET_DEFAULT_NORETURN methods.
7770 <info_proc>: Now returns bool.
7772 (OPS_MAGIC): Delete.
7773 (current_target): Delete. All references replaced by references
7775 (target_stack): ... this. New.
7776 (target_shortname, target_longname): Adjust.
7777 (target_can_run): Now a function declaration.
7778 (default_child_has_all_memory, default_child_has_memory)
7779 (default_child_has_stack, default_child_has_registers)
7780 (default_child_has_execution): Remove target_ops parameter.
7781 (complete_target_initialization): Delete.
7782 (memory_breakpoint_target): New template class.
7783 (test_target_ops): Refactor as a C++ class with virtual methods.
7784 * make-target-delegates (NAME_PART): Tighten.
7785 (POINTER_PART, CP_SYMBOL): New.
7786 (SIMPLE_RETURN_PART): Reimplement.
7787 (VEC_RETURN_PART): Expect less.
7788 (RETURN_PART, VIRTUAL_PART): New.
7789 (METHOD): Adjust to C++ virtual methods.
7790 (scan_target_h): Remove reference to C99.
7791 (dname): Output "target_ops::" prefix.
7792 (write_function_header): Adjust to output a C++ class method.
7793 (write_declaration): New.
7794 (write_delegator): Adjust to output a C++ class method.
7795 (tdname): Output "dummy_target::" prefix.
7796 (write_tdefault, write_debugmethod): Adjust to output a C++ class
7798 (tdefault_names, debug_names): Delete.
7799 (return_types, tdefaults, styles, argtypes_array): New.
7800 (top level): All methods are delegators.
7802 (top level): Print dummy_target and debug_target classes.
7803 * target-delegates.c: Regenerate.
7804 * target-debug.h (target_debug_print_enum_info_proc_what)
7805 (target_debug_print_thread_control_capabilities)
7806 (target_debug_print_thread_info_p): New.
7807 * target.c (dummy_target): Delete.
7808 (the_dummy_target, the_debug_target): New.
7809 (target_stack): Now extern.
7810 (set_targetdebug): Push/unpush debug target.
7811 (default_child_has_all_memory, default_child_has_memory)
7812 (default_child_has_stack, default_child_has_registers)
7813 (default_child_has_execution): Remove target_ops parameter.
7814 (complete_target_initialization): Delete.
7815 (add_target_with_completer): No longer call
7816 complete_target_initialization.
7817 (target_supports_terminal_ours): Use regular delegation.
7818 (update_current_target): Delete.
7819 (push_target): No longer check magic number. Don't call
7820 update_current_target.
7821 (unpush_target): Don't call update_current_target.
7822 (target_is_pushed): No longer check magic number.
7823 (target_require_runnable): Skip for all stratums over
7825 (target_ops::info_proc): New.
7826 (target_info_proc): Use find_target_at and
7827 find_default_run_target.
7828 (target_supports_disable_randomization): Use regular delegation.
7829 (target_get_osdata): Use find_target_at.
7830 (target_ops::open, target_ops::close, target_ops::can_attach)
7831 (target_ops::attach, target_ops::can_create_inferior)
7832 (target_ops::create_inferior, target_ops::can_run)
7833 (target_can_run): New.
7834 (default_fileio_target): Use regular delegation.
7835 (target_ops::fileio_open, target_ops::fileio_pwrite)
7836 (target_ops::fileio_pread, target_ops::fileio_fstat)
7837 (target_ops::fileio_close, target_ops::fileio_unlink)
7838 (target_ops::fileio_readlink): New.
7839 (target_fileio_open_1, target_fileio_unlink)
7840 (target_fileio_readlink): Always call the target method. Handle
7842 (return_zero, return_zero_has_execution): Delete.
7843 (init_dummy_target): Delete.
7844 (dummy_target::dummy_target, dummy_target::shortname)
7845 (dummy_target::longname, dummy_target::doc)
7846 (debug_target::debug_target, debug_target::shortname)
7847 (debug_target::longname, debug_target::doc): New.
7848 (target_supports_delete_record): Use regular delegation.
7849 (setup_target_debug): Delete.
7850 (maintenance_print_target_stack): Skip debug_stratum.
7851 (initialize_targets): Instantiate the_dummy_target and
7853 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
7855 (target_auxv_search, fprint_target_auxv): Adjust.
7856 (info_auxv_command): Adjust to use target_stack.
7857 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
7858 * exceptions.c (print_flush): Handle a NULL target_stack.
7859 * regcache.c (target_ops_no_register): Refactor as class with
7862 * exec.c (exec_target): New class.
7863 (exec_ops): Now an exec_target.
7864 (exec_open, exec_close_1, exec_get_section_table)
7865 (exec_xfer_partial, exec_files_info, exec_has_memory)
7866 (exec_make_note_section): Refactor as exec_target methods.
7867 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
7869 (exec_target::find_memory_regions): New.
7870 (_initialize_exec): Don't call init_exec_ops.
7871 * gdbcore.h (exec_file_clear): Delete.
7873 * corefile.c (core_target): Delete.
7874 (core_file_command): Adjust.
7875 * corelow.c (core_target): New class.
7876 (the_core_target): New.
7877 (core_close): Remove target_ops parameter.
7878 (core_close_cleanup): Adjust.
7879 (core_target::close): New.
7880 (core_open, core_detach, get_core_registers, core_files_info)
7881 (core_xfer_partial, core_thread_alive, core_read_description)
7882 (core_pid_to_str, core_thread_name, core_has_memory)
7883 (core_has_stack, core_has_registers, core_info_proc): Rework as
7884 core_target methods.
7885 (ignore, core_remove_breakpoint, init_core_ops): Delete.
7886 (_initialize_corelow): Initialize the_core_target.
7887 * gdbcore.h (core_target): Delete.
7888 (the_core_target): New.
7890 * ctf.c: (ctf_target): New class.
7891 (ctf_ops): Now a ctf_target.
7892 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
7893 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
7894 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
7896 (init_ctf_ops): Delete.
7897 (_initialize_ctf): Don't call it.
7898 * tracefile-tfile.c (tfile_target): New class.
7899 (tfile_ops): Now a tfile_target.
7900 (tfile_open, tfile_close, tfile_files_info)
7901 (tfile_get_tracepoint_status, tfile_trace_find)
7902 (tfile_fetch_registers, tfile_xfer_partial)
7903 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
7904 Refactor as tfile_target methods.
7905 (tfile_xfer_partial_features): Remove target_ops parameter.
7906 (init_tfile_ops): Delete.
7907 (_initialize_tracefile_tfile): Don't call it.
7908 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
7909 (tracefile_has_stack, tracefile_has_registers)
7910 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
7911 tracefile_target methods.
7912 (init_tracefile_ops): Delete.
7913 (tracefile_target::tracefile_target): New.
7914 * tracefile.h: Include "target.h".
7915 (tracefile_target): New class.
7916 (init_tracefile_ops): Delete.
7918 * spu-multiarch.c (spu_multiarch_target): New class.
7919 (spu_ops): Now a spu_multiarch_target.
7920 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
7921 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
7922 (spu_search_memory, spu_mourn_inferior): Refactor as
7923 spu_multiarch_target methods.
7924 (init_spu_ops): Delete.
7925 (_initialize_spu_multiarch): Remove references to init_spu_ops,
7926 complete_target_initialization.
7928 * ravenscar-thread.c (ravenscar_thread_target): New class.
7929 (ravenscar_ops): Now a ravenscar_thread_target.
7930 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
7931 (ravenscar_thread_alive, ravenscar_pid_to_str)
7932 (ravenscar_fetch_registers, ravenscar_store_registers)
7933 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
7934 (ravenscar_stopped_by_hw_breakpoint)
7935 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
7936 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
7937 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
7939 (init_ravenscar_thread_ops): Delete.
7940 (_initialize_ravenscar): Remove references to
7941 init_ravenscar_thread_ops and complete_target_initialization.
7943 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
7944 (bsd_uthread_target): New class.
7945 (bsd_uthread_ops): Now a bsd_uthread_target.
7946 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
7947 (bsd_uthread_close, bsd_uthread_mourn_inferior)
7948 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
7949 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
7950 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
7951 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
7952 (bsd_uthread_target): Delete function.
7953 (_initialize_bsd_uthread): Remove reference to
7954 complete_target_initialization.
7956 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
7957 (target_bfd): ... this new class.
7958 (target_bfd_xfer_partial, target_bfd_get_section_table)
7959 (target_bfd_close): Refactor as target_bfd methods.
7960 (target_bfd::~target_bfd): New.
7961 (target_bfd_reopen): Adjust.
7962 (target_bfd::close): New.
7964 * record-btrace.c (record_btrace_target): New class.
7965 (record_btrace_ops): Now a record_btrace_target.
7966 (record_btrace_open, record_btrace_stop_recording)
7967 (record_btrace_disconnect, record_btrace_close)
7968 (record_btrace_async, record_btrace_info)
7969 (record_btrace_insn_history, record_btrace_insn_history_range)
7970 (record_btrace_insn_history_from, record_btrace_call_history)
7971 (record_btrace_call_history_range)
7972 (record_btrace_call_history_from, record_btrace_record_method)
7973 (record_btrace_is_replaying, record_btrace_will_replay)
7974 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7975 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
7976 (record_btrace_store_registers, record_btrace_prepare_to_store)
7977 (record_btrace_to_get_unwinder)
7978 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
7979 (record_btrace_commit_resume, record_btrace_wait)
7980 (record_btrace_stop, record_btrace_can_execute_reverse)
7981 (record_btrace_stopped_by_sw_breakpoint)
7982 (record_btrace_supports_stopped_by_sw_breakpoint)
7983 (record_btrace_stopped_by_hw_breakpoint)
7984 (record_btrace_supports_stopped_by_hw_breakpoint)
7985 (record_btrace_update_thread_list, record_btrace_thread_alive)
7986 (record_btrace_goto_begin, record_btrace_goto_end)
7987 (record_btrace_goto, record_btrace_stop_replaying_all)
7988 (record_btrace_execution_direction)
7989 (record_btrace_prepare_to_generate_core)
7990 (record_btrace_done_generating_core): Refactor as
7991 record_btrace_target methods.
7992 (init_record_btrace_ops): Delete.
7993 (_initialize_record_btrace): Remove reference to
7994 init_record_btrace_ops.
7995 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
7996 the execution_direction global.
7997 (record_full_base_target, record_full_target)
7998 (record_full_core_target): New classes.
7999 (record_full_ops): Now a record_full_target.
8000 (record_full_core_ops): Now a record_full_core_target.
8001 (record_full_target::detach, record_full_target::disconnect)
8002 (record_full_core_target::disconnect)
8003 (record_full_target::mourn_inferior, record_full_target::kill):
8005 (record_full_open, record_full_close, record_full_async): Refactor
8006 as methods of the record_full_base_target class.
8007 (record_full_resume, record_full_commit_resume): Refactor
8008 as methods of the record_full_target class.
8009 (record_full_wait, record_full_stopped_by_watchpoint)
8010 (record_full_stopped_data_address)
8011 (record_full_stopped_by_sw_breakpoint)
8012 (record_full_supports_stopped_by_sw_breakpoint)
8013 (record_full_stopped_by_hw_breakpoint)
8014 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8015 methods of the record_full_base_target class.
8016 (record_full_store_registers, record_full_xfer_partial)
8017 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8018 Refactor as methods of the record_full_target class.
8019 (record_full_can_execute_reverse, record_full_get_bookmark)
8020 (record_full_goto_bookmark, record_full_execution_direction)
8021 (record_full_record_method, record_full_info, record_full_delete)
8022 (record_full_is_replaying, record_full_will_replay)
8023 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8024 (record_full_stop_replaying): Refactor as methods of the
8025 record_full_base_target class.
8026 (record_full_core_resume, record_full_core_kill)
8027 (record_full_core_fetch_registers)
8028 (record_full_core_prepare_to_store)
8029 (record_full_core_store_registers, record_full_core_xfer_partial)
8030 (record_full_core_insert_breakpoint)
8031 (record_full_core_remove_breakpoint)
8032 (record_full_core_has_execution): Refactor
8033 as methods of the record_full_core_target class.
8034 (record_full_base_target::supports_delete_record): New.
8035 (init_record_full_ops): Delete.
8036 (init_record_full_core_ops): Delete.
8037 (record_full_save): Refactor as method of the
8038 record_full_base_target class.
8039 (_initialize_record_full): Remove references to
8040 init_record_full_ops and init_record_full_core_ops.
8042 * remote.c (remote_target, extended_remote_target): New classes.
8043 (remote_ops): Now a remote_target.
8044 (extended_remote_ops): Now an extended_remote_target.
8045 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8046 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8047 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8048 (remote_pass_signals, remote_set_syscall_catchpoint)
8049 (remote_program_signals, )
8050 (remote_thread_always_alive): Remove target_ops parameter.
8051 (remote_thread_alive, remote_thread_name)
8052 (remote_update_thread_list, remote_threads_extra_info)
8053 (remote_static_tracepoint_marker_at)
8054 (remote_static_tracepoint_markers_by_strid)
8055 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8056 (remote_open): Refactor as methods of remote_target.
8057 (extended_remote_open, extended_remote_detach)
8058 (extended_remote_attach, extended_remote_post_attach):
8059 (extended_remote_supports_disable_randomization)
8060 (extended_remote_create_inferior): : Refactor as method of
8061 extended_remote_target.
8062 (remote_set_permissions, remote_open_1, remote_detach)
8063 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8064 (remote_resume, remote_commit_resume, remote_stop)
8065 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8066 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8067 (remote_prepare_to_store, remote_store_registers)
8068 (remote_flash_erase, remote_flash_done, remote_files_info)
8069 (remote_kill, remote_mourn, remote_insert_breakpoint)
8070 (remote_remove_breakpoint, remote_insert_watchpoint)
8071 (remote_watchpoint_addr_within_range)
8072 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8073 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8074 (remote_supports_stopped_by_sw_breakpoint)
8075 (remote_stopped_by_hw_breakpoint)
8076 (remote_supports_stopped_by_hw_breakpoint)
8077 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8078 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8079 (remote_verify_memory): Refactor as methods of remote_target.
8080 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8082 (remote_xfer_partial, remote_get_memory_xfer_limit)
8083 (remote_search_memory, remote_rcmd, remote_memory_map)
8084 (remote_pid_to_str, remote_get_thread_local_address)
8085 (remote_get_tib_address, remote_read_description): Refactor as
8086 methods of remote_target.
8087 (remote_target::fileio_open, remote_target::fileio_pwrite)
8088 (remote_target::fileio_pread, remote_target::fileio_close): New.
8089 (remote_hostio_readlink, remote_hostio_fstat)
8090 (remote_filesystem_is_local, remote_can_execute_reverse)
8091 (remote_supports_non_stop, remote_supports_disable_randomization)
8092 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8093 (remote_supports_enable_disable_tracepoint)
8094 (remote_supports_string_tracing)
8095 (remote_can_run_breakpoint_commands, remote_trace_init)
8096 (remote_download_tracepoint, remote_can_download_tracepoint)
8097 (remote_download_trace_state_variable, remote_enable_tracepoint)
8098 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8099 (remote_trace_start, remote_get_trace_status)
8100 (remote_get_tracepoint_status, remote_trace_stop)
8101 (remote_trace_find, remote_get_trace_state_variable_value)
8102 (remote_save_trace_data, remote_get_raw_trace_data)
8103 (remote_set_disconnected_tracing, remote_core_of_thread)
8104 (remote_set_circular_trace_buffer, remote_traceframe_info)
8105 (remote_get_min_fast_tracepoint_insn_len)
8106 (remote_set_trace_buffer_size, remote_set_trace_notes)
8107 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8108 (remote_disable_btrace, remote_teardown_btrace)
8109 (remote_read_btrace, remote_btrace_conf)
8110 (remote_augmented_libraries_svr4_read, remote_load)
8111 (remote_pid_to_exec_file, remote_can_do_single_step)
8112 (remote_execution_direction, remote_thread_handle_to_thread_info):
8113 Refactor as methods of remote_target.
8114 (init_remote_ops, init_extended_remote_ops): Delete.
8115 (remote_can_async_p, remote_is_async_p, remote_async)
8116 (remote_thread_events, remote_upload_tracepoints)
8117 (remote_upload_trace_state_variables): Refactor as methods of
8119 (_initialize_remote): Remove references to init_remote_ops and
8120 init_extended_remote_ops.
8122 * remote-sim.c (gdbsim_target): New class.
8123 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8124 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8125 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8126 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8127 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8128 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8129 Refactor as methods of gdbsim_target.
8130 (gdbsim_ops): Now a gdbsim_target.
8131 (init_gdbsim_ops): Delete.
8132 (gdbsim_cntrl_c): Adjust.
8133 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8135 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8136 (the_amd64_linux_nat_target): New.
8137 (amd64_linux_fetch_inferior_registers)
8138 (amd64_linux_store_inferior_registers): Refactor as methods of
8139 amd64_linux_nat_target.
8140 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8141 * i386-linux-nat.c: Don't include "linux-nat.h".
8142 (i386_linux_nat_target): New class.
8143 (the_i386_linux_nat_target): New.
8144 (i386_linux_fetch_inferior_registers)
8145 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8146 as methods of i386_linux_nat_target.
8147 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8148 * inf-child.c (inf_child_ops): Delete.
8149 (inf_child_fetch_inferior_registers)
8150 (inf_child_store_inferior_registers): Delete.
8151 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8152 methods of inf_child_target.
8153 (inf_child_target::supports_terminal_ours)
8154 (inf_child_target::terminal_init)
8155 (inf_child_target::terminal_inferior)
8156 (inf_child_target::terminal_ours_for_output)
8157 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8158 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8160 (inf_child_open, inf_child_disconnect, inf_child_close)
8161 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8162 (inf_child_post_startup_inferior, inf_child_can_run)
8163 (inf_child_pid_to_exec_file): Refactor as methods of
8165 (inf_child_follow_fork): Delete.
8166 (inf_child_target::can_create_inferior)
8167 (inf_child_target::can_attach): New.
8168 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8169 (inf_child_target::has_stack, inf_child_target::has_registers)
8170 (inf_child_target::has_execution): New.
8171 (inf_child_fileio_open, inf_child_fileio_pwrite)
8172 (inf_child_fileio_pread, inf_child_fileio_fstat)
8173 (inf_child_fileio_close, inf_child_fileio_unlink)
8174 (inf_child_fileio_readlink, inf_child_use_agent)
8175 (inf_child_can_use_agent): Refactor as methods of
8177 (return_zero, inf_child_target): Delete.
8178 (inf_child_target::inf_child_target): New.
8179 * inf-child.h: Include "target.h".
8180 (inf_child_target): Delete function prototype.
8181 (inf_child_target): New class.
8182 (inf_child_open_target, inf_child_mourn_inferior)
8183 (inf_child_maybe_unpush_target): Delete.
8184 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8185 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8186 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8187 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8188 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8189 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8190 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8191 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8192 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8193 methods of inf_ptrace_target.
8194 (inf_ptrace_target): Delete function.
8195 * inf-ptrace.h: Include "inf-child.h".
8196 (inf_ptrace_target): Delete function declaration.
8197 (inf_ptrace_target): New class.
8198 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8199 * linux-nat.c (linux_target): New.
8200 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8201 (linux_nat_target::~linux_nat_target): New.
8202 (linux_child_post_attach, linux_child_post_startup_inferior)
8203 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8204 (linux_child_remove_fork_catchpoint)
8205 (linux_child_insert_vfork_catchpoint)
8206 (linux_child_remove_vfork_catchpoint)
8207 (linux_child_insert_exec_catchpoint)
8208 (linux_child_remove_exec_catchpoint)
8209 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8210 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8211 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8212 (linux_nat_stopped_data_address)
8213 (linux_nat_stopped_by_sw_breakpoint)
8214 (linux_nat_supports_stopped_by_sw_breakpoint)
8215 (linux_nat_stopped_by_hw_breakpoint)
8216 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8217 (linux_nat_kill, linux_nat_mourn_inferior)
8218 (linux_nat_xfer_partial, linux_nat_thread_alive)
8219 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8220 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8221 (linux_child_static_tracepoint_markers_by_strid)
8222 (linux_nat_is_async_p, linux_nat_can_async_p)
8223 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8224 (linux_nat_supports_multi_process)
8225 (linux_nat_supports_disable_randomization, linux_nat_async)
8226 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8227 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8228 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8229 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8230 methods of linux_nat_target.
8231 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8232 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8234 (check_stopped_by_watchpoint): Adjust.
8235 (linux_xfer_partial): Delete.
8236 (linux_target_install_ops, linux_target, linux_nat_add_target):
8238 (linux_nat_target::linux_nat_target): New.
8239 * linux-nat.h: Include "inf-ptrace.h".
8240 (linux_nat_target): New.
8241 (linux_target, linux_target_install_ops, linux_nat_add_target):
8242 Delete function declarations.
8243 (linux_target): Declare global.
8244 * linux-thread-db.c (thread_db_target): New.
8245 (thread_db_target::thread_db_target): New.
8246 (thread_db_ops): Delete.
8247 (the_thread_db_target): New.
8248 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8249 (thread_db_update_thread_list, thread_db_pid_to_str)
8250 (thread_db_extra_thread_info)
8251 (thread_db_thread_handle_to_thread_info)
8252 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8253 (thread_db_resume): Refactor as methods of thread_db_target.
8254 (init_thread_db_ops): Delete.
8255 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8256 * x86-linux-nat.c: Don't include "linux-nat.h".
8257 (super_post_startup_inferior): Delete.
8258 (x86_linux_nat_target::~x86_linux_nat_target): New.
8259 (x86_linux_child_post_startup_inferior)
8260 (x86_linux_read_description, x86_linux_enable_btrace)
8261 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8262 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8263 methods of x86_linux_nat_target.
8264 (x86_linux_create_target): Delete. Bits folded ...
8265 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8267 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8268 (x86_linux_nat_target): New class.
8269 (x86_linux_create_target): Delete.
8270 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8271 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8272 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8273 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8274 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8275 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8277 (x86_use_watchpoints): Delete.
8278 * x86-nat.h: Include "breakpoint.h" and "target.h".
8279 (x86_use_watchpoints): Delete.
8280 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8281 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8282 (x86_insert_watchpoint, x86_remove_watchpoint)
8283 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8284 (x86_stopped_by_hw_breakpoint): New declarations.
8285 (x86_nat_target): New template class.
8287 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8288 (the_ppc_linux_nat_target): New.
8289 (ppc_linux_fetch_inferior_registers)
8290 (ppc_linux_can_use_hw_breakpoint)
8291 (ppc_linux_region_ok_for_hw_watchpoint)
8292 (ppc_linux_ranged_break_num_registers)
8293 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8294 (ppc_linux_insert_mask_watchpoint)
8295 (ppc_linux_remove_mask_watchpoint)
8296 (ppc_linux_can_accel_watchpoint_condition)
8297 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8298 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8299 (ppc_linux_watchpoint_addr_within_range)
8300 (ppc_linux_masked_watch_num_registers)
8301 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8302 (ppc_linux_read_description): Refactor as methods of
8303 ppc_linux_nat_target.
8304 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8306 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8307 (procfs_target): New class.
8308 (the_procfs_target): New.
8309 (procfs_target): Delete function.
8310 (procfs_auxv_parse, procfs_attach, procfs_detach)
8311 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8312 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8313 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8314 (procfs_create_inferior, procfs_update_thread_list)
8315 (procfs_thread_alive, procfs_pid_to_str)
8316 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8317 (procfs_stopped_data_address, procfs_insert_watchpoint)
8318 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8319 (proc_find_memory_regions, procfs_info_proc)
8320 (procfs_make_note_section): Refactor as methods of procfs_target.
8321 (_initialize_procfs): Adjust.
8322 * sol-thread.c (sol_thread_target): New class.
8323 (sol_thread_ops): Now a sol_thread_target.
8324 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8325 (sol_thread_fetch_registers, sol_thread_store_registers)
8326 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8327 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8328 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8329 (init_sol_thread_ops): Delete.
8330 (_initialize_sol_thread): Adjust. Remove references to
8331 init_sol_thread_ops and complete_target_initialization.
8333 * windows-nat.c (windows_nat_target): New class.
8334 (windows_fetch_inferior_registers)
8335 (windows_store_inferior_registers, windows_resume, windows_wait)
8336 (windows_attach, windows_detach, windows_pid_to_exec_file)
8337 (windows_files_info, windows_create_inferior)
8338 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8339 (windows_close, windows_pid_to_str, windows_xfer_partial)
8340 (windows_get_tib_address, windows_get_ada_task_ptid)
8341 (windows_thread_name, windows_thread_alive): Refactor as
8342 windows_nat_target methods.
8343 (do_initial_windows_stuff): Adjust.
8344 (windows_target): Delete function.
8345 (_initialize_windows_nat): Adjust.
8347 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8348 (darwin_mourn_inferior, darwin_kill_inferior)
8349 (darwin_create_inferior, darwin_attach, darwin_detach)
8350 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8351 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8352 (darwin_supports_multi_process): Refactor as darwin_nat_target
8354 (darwin_resume_to, darwin_files_info): Delete.
8355 (_initialize_darwin_inferior): Rename to ...
8356 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8357 * darwin-nat.h: Include "inf-child.h".
8358 (darwin_nat_target): New class.
8359 (darwin_complete_target): Delete.
8360 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8361 (darwin_target): New.
8362 (i386_darwin_fetch_inferior_registers)
8363 (i386_darwin_store_inferior_registers): Refactor as methods of
8365 (darwin_complete_target): Delete, with ...
8366 (_initialize_i386_darwin_nat): ... bits factored out here.
8368 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8369 (the_alpha_linux_nat_target): New.
8370 (alpha_linux_register_u_offset): Refactor as
8371 alpha_linux_nat_target method.
8372 (_initialize_alpha_linux_nat): Adjust.
8373 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8374 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8375 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8376 methods of linux_nat_trad_target.
8377 (linux_trad_target): Delete.
8378 * linux-nat-trad.h (linux_trad_target): Delete function.
8379 (linux_nat_trad_target): New class.
8380 * mips-linux-nat.c (mips_linux_nat_target): New class.
8381 (super_fetch_registers, super_store_registers, super_close):
8383 (the_mips_linux_nat_target): New.
8384 (mips64_linux_regsets_fetch_registers)
8385 (mips64_linux_regsets_store_registers)
8386 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8387 (mips_linux_register_u_offset, mips_linux_read_description)
8388 (mips_linux_can_use_hw_breakpoint)
8389 (mips_linux_stopped_by_watchpoint)
8390 (mips_linux_stopped_data_address)
8391 (mips_linux_region_ok_for_hw_watchpoint)
8392 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8393 (mips_linux_close): Refactor as methods of mips_linux_nat.
8394 (_initialize_mips_linux_nat): Adjust to C++ification.
8396 * aix-thread.c (aix_thread_target): New class.
8397 (aix_thread_ops): Now an aix_thread_target.
8398 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8399 (aix_thread_fetch_registers, aix_thread_store_registers)
8400 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8401 (aix_thread_thread_alive, aix_thread_pid_to_str)
8402 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8403 Refactor as methods of aix_thread_target.
8404 (init_aix_thread_ops): Delete.
8405 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8406 and complete_target_initialization.
8407 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8408 (rs6000_nat_target): New class.
8409 (the_rs6000_nat_target): New.
8410 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8411 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8412 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8413 (super_create_inferior): Delete.
8414 (_initialize_rs6000_nat): Adjust to C++ification.
8416 * arm-linux-nat.c (arm_linux_nat_target): New class.
8417 (the_arm_linux_nat_target): New.
8418 (arm_linux_fetch_inferior_registers)
8419 (arm_linux_store_inferior_registers, arm_linux_read_description)
8420 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8421 (arm_linux_remove_hw_breakpoint)
8422 (arm_linux_region_ok_for_hw_watchpoint)
8423 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8424 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8425 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8426 arm_linux_nat_target.
8427 (_initialize_arm_linux_nat): Adjust to C++ification.
8429 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8430 (the_aarch64_linux_nat_target): New.
8431 (aarch64_linux_fetch_inferior_registers)
8432 (aarch64_linux_store_inferior_registers)
8433 (aarch64_linux_child_post_startup_inferior)
8434 (aarch64_linux_read_description)
8435 (aarch64_linux_can_use_hw_breakpoint)
8436 (aarch64_linux_insert_hw_breakpoint)
8437 (aarch64_linux_remove_hw_breakpoint)
8438 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8439 (aarch64_linux_region_ok_for_hw_watchpoint)
8440 (aarch64_linux_stopped_data_address)
8441 (aarch64_linux_stopped_by_watchpoint)
8442 (aarch64_linux_watchpoint_addr_within_range)
8443 (aarch64_linux_can_do_single_step): Refactor as methods of
8444 aarch64_linux_nat_target.
8445 (super_post_startup_inferior): Delete.
8446 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8448 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8449 (the_hppa_linux_nat_target): New.
8450 (hppa_linux_fetch_inferior_registers)
8451 (hppa_linux_store_inferior_registers): Refactor as methods of
8452 hppa_linux_nat_target.
8453 (_initialize_hppa_linux_nat): Adjust to C++ification.
8455 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8456 (the_ia64_linux_nat_target): New.
8457 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8458 (ia64_linux_stopped_data_address)
8459 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8460 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8461 ia64_linux_nat_target methods.
8462 (super_xfer_partial): Delete.
8463 (_initialize_ia64_linux_nat): Adjust to C++ification.
8465 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8466 (the_m32r_linux_nat_target): New.
8467 (m32r_linux_fetch_inferior_registers)
8468 (m32r_linux_store_inferior_registers): Refactor as
8469 m32r_linux_nat_target methods.
8470 (_initialize_m32r_linux_nat): Adjust to C++ification.
8472 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8473 (the_m68k_linux_nat_target): New.
8474 (m68k_linux_fetch_inferior_registers)
8475 (m68k_linux_store_inferior_registers): Refactor as
8476 m68k_linux_nat_target methods.
8477 (_initialize_m68k_linux_nat): Adjust to C++ification.
8479 * s390-linux-nat.c (s390_linux_nat_target): New class.
8480 (the_s390_linux_nat_target): New.
8481 (s390_linux_fetch_inferior_registers)
8482 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8483 (s390_insert_watchpoint, s390_remove_watchpoint)
8484 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8485 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8486 (s390_auxv_parse, s390_read_description): Refactor as methods of
8487 s390_linux_nat_target.
8488 (_initialize_s390_nat): Adjust to C++ification.
8490 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8491 (the_sparc_linux_nat_target): New.
8492 (_initialize_sparc_linux_nat): Adjust to C++ification.
8493 * sparc-nat.c (sparc_fetch_inferior_registers)
8494 (sparc_store_inferior_registers): Remove target_ops parameter.
8495 * sparc-nat.h (sparc_fetch_inferior_registers)
8496 (sparc_store_inferior_registers): Remove target_ops parameter.
8497 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8498 (the_sparc64_linux_nat_target): New.
8499 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8501 * spu-linux-nat.c (spu_linux_nat_target): New class.
8502 (the_spu_linux_nat_target): New.
8503 (spu_child_post_startup_inferior, spu_child_post_attach)
8504 (spu_child_wait, spu_fetch_inferior_registers)
8505 (spu_store_inferior_registers, spu_xfer_partial)
8506 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8508 (_initialize_spu_nat): Adjust to C++ification.
8510 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8511 (the_tilegx_linux_nat_target): New.
8512 (fetch_inferior_registers, store_inferior_registers):
8513 Refactor as methods.
8514 (_initialize_tile_linux_nat): Adjust to C++ification.
8516 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8517 (the_xtensa_linux_nat_target): New.
8518 (xtensa_linux_fetch_inferior_registers)
8519 (xtensa_linux_store_inferior_registers): Refactor as
8520 xtensa_linux_nat_target methods.
8521 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8523 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8524 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8525 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8526 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8527 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8528 (fbsd_stopped_by_sw_breakpoint)
8529 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8530 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8531 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8532 (fbsd_post_startup_inferior, fbsd_post_attach)
8533 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8534 (fbsd_set_syscall_catchpoint)
8535 (super_xfer_partial, super_resume, super_wait)
8536 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8537 (fbsd_handle_debug_trap): Remove target_ops parameter.
8538 (fbsd_nat_add_target): Delete.
8539 * fbsd-nat.h: Include "inf-ptrace.h".
8540 (fbsd_nat_add_target): Delete.
8541 (USE_SIGTRAP_SIGINFO): Define.
8542 (fbsd_nat_target): New class.
8544 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8545 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8546 (amd64bsd_target): Delete.
8547 * amd64-bsd-nat.h: New file.
8548 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8550 (amd64_fbsd_nat_target): New class.
8551 (the_amd64_fbsd_nat_target): New.
8552 (amd64fbsd_read_description): Refactor as method of
8553 amd64_fbsd_nat_target.
8554 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8555 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8556 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8557 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8558 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8559 (i386bsd_target): Delete.
8560 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8561 (i386bsd_fetch_inferior_registers)
8562 (i386bsd_store_inferior_registers): Declare.
8563 (i386_bsd_nat_target): New class.
8564 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8565 (the_i386_fbsd_nat_target): New.
8566 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8567 i386_fbsd_nat_target methods.
8568 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8569 (_initialize_i386fbsd_nat): Adjust to C++ification.
8570 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8571 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8572 (_initialize_x86_bsd_nat): Adjust to C++ification.
8573 * x86-bsd-nat.h: Include "x86-nat.h".
8574 (x86bsd_target): Delete declaration.
8575 (x86bsd_nat_target): New class.
8577 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8578 (the_aarch64_fbsd_nat_target): New.
8579 (aarch64_fbsd_fetch_inferior_registers)
8580 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8581 aarch64_fbsd_nat_target.
8582 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8583 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8584 (the_alpha_bsd_nat_target): New.
8585 (alphabsd_fetch_inferior_registers)
8586 (alphabsd_store_inferior_registers): Refactor as
8587 alpha_bsd_nat_target methods.
8588 (_initialize_alphabsd_nat): Refactor as methods of
8589 alpha_bsd_nat_target.
8590 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8591 (the_amd64_nbsd_nat_target): New.
8592 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8593 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8594 (the_amd64_obsd_nat_target): New.
8595 (_initialize_amd64obsd_nat): Adjust to C++ification.
8596 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8597 (the_arm_fbsd_nat_target): New.
8598 (arm_fbsd_fetch_inferior_registers)
8599 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8600 (_initialize_arm_fbsd_nat): Refactor as methods of
8601 arm_fbsd_nat_target.
8602 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8603 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8604 (the_arm_netbsd_nat_target): New.
8605 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8606 arm_netbsd_nat_target.
8607 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8608 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8609 (the_hppa_nbsd_nat_target): New.
8610 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8611 hppa_nbsd_nat_target methods.
8612 (_initialize_hppanbsd_nat): Adjust to C++ification.
8613 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8614 (the_hppa_obsd_nat_target): New.
8615 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8616 methods of hppa_obsd_nat_target.
8617 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8619 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8620 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8622 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8623 (_initialize_i386obsd_nat): Use add_target.
8624 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8625 (the_m68k_bsd_nat_target): New.
8626 (m68kbsd_fetch_inferior_registers)
8627 (m68kbsd_store_inferior_registers): Refactor as methods of
8628 m68k_bsd_nat_target.
8629 (_initialize_m68kbsd_nat): Adjust to C++ification.
8630 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8631 (the_mips_fbsd_nat_target): New.
8632 (mips_fbsd_fetch_inferior_registers)
8633 (mips_fbsd_store_inferior_registers): Refactor as methods of
8634 mips_fbsd_nat_target.
8635 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8637 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8638 (the_mips_nbsd_nat_target): New.
8639 (mipsnbsd_fetch_inferior_registers)
8640 (mipsnbsd_store_inferior_registers): Refactor as methods of
8641 mips_nbsd_nat_target.
8642 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8643 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8644 (the_mips64_obsd_nat_target): New.
8645 (mips64obsd_fetch_inferior_registers)
8646 (mips64obsd_store_inferior_registers): Refactor as methods of
8647 mips64_obsd_nat_target.
8648 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8650 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8652 * nbsd-nat.h: Include "inf-ptrace.h".
8653 (nbsd_nat_target): New class.
8654 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8655 (obsd_wait): Refactor as methods of obsd_nat_target.
8656 (obsd_add_target): Delete.
8657 * obsd-nat.h: Include "inf-ptrace.h".
8658 (obsd_nat_target): New class.
8659 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8660 (the_ppc_fbsd_nat_target): New.
8661 (ppcfbsd_fetch_inferior_registers)
8662 (ppcfbsd_store_inferior_registers): Refactor as methods of
8663 ppc_fbsd_nat_target.
8664 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8666 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8667 (the_ppc_nbsd_nat_target): New.
8668 (ppcnbsd_fetch_inferior_registers)
8669 (ppcnbsd_store_inferior_registers): Refactor as methods of
8670 ppc_nbsd_nat_target.
8671 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8672 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8673 (the_ppc_obsd_nat_target): New.
8674 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8675 methods of ppc_obsd_nat_target.
8676 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8678 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8679 (the_sh_nbsd_nat_target): New.
8680 (shnbsd_fetch_inferior_registers)
8681 (shnbsd_store_inferior_registers): Refactor as methods of
8683 (_initialize_shnbsd_nat): Adjust to C++ification.
8684 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8685 (inf_ptrace_xfer_partial): Delete.
8686 (sparc_xfer_partial, sparc_target): Delete.
8687 * sparc-nat.h (sparc_fetch_inferior_registers)
8688 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8689 (sparc_target): Delete function declaration.
8690 (sparc_target): New template class.
8691 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8692 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8693 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8694 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8696 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8697 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8698 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8699 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8701 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8702 (the_vax_bsd_nat_target): New.
8703 (vaxbsd_fetch_inferior_registers)
8704 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8706 (_initialize_vaxbsd_nat): Adjust to C++ification.
8708 * bsd-kvm.c (bsd_kvm_target): New class.
8709 (bsd_kvm_ops): Now a bsd_kvm_target.
8710 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8711 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8712 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8714 (bsd_kvm_return_one): Delete.
8715 (bsd_kvm_add_target): Adjust to C++ification.
8717 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8718 (nto_procfs_target_procfs): New classes.
8719 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8720 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8721 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8722 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8723 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8724 (procfs_remove_hw_breakpoint, procfs_resume)
8725 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8726 (procfs_kill_inferior, procfs_store_registers)
8727 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8728 as methods of nto_procfs_target.
8729 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8730 (nto_native_ops): Delete.
8731 (procfs_open, procfs_native_open): Delete.
8732 (nto_native_ops): Now an nto_procfs_target_native.
8733 (init_procfs_targets): Adjust to C++ification.
8734 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8735 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8736 Refactor as methods of nto_procfs_target.
8738 * go32-nat.c (go32_nat_target): New class.
8739 (the_go32_nat_target): New.
8740 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8741 (go32_store_registers, go32_xfer_partial, go32_files_info)
8742 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8743 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8744 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8745 (go32_pid_to_str): Refactor as methods of go32_nat_target.
8746 (go32_target): Delete.
8747 (_initialize_go32_nat): Adjust to C++ification.
8749 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8750 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8751 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8752 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8754 (gnu_target): Delete.
8755 * gnu-nat.h (gnu_target): Delete.
8756 (gnu_nat_target): New class.
8757 * i386-gnu-nat.c (gnu_base_target): New.
8758 (i386_gnu_nat_target): New class.
8759 (the_i386_gnu_nat_target): New.
8760 (_initialize_i386gnu_nat): Adjust to C++ification.
8762 2018-05-02 Pedro Alves <palves@redhat.com>
8764 * bfd-target.c (target_bfd_xclose): Rename to ...
8765 (target_bfd_close): ... this.
8766 (target_bfd_reopen): Adjust.
8767 * target.c (target_close): Remove references to to_xclose.
8768 * target.h (target_ops::to_xclose): Delete.
8769 (target_ops::to_close): Update comments.
8771 2018-05-02 Pedro Alves <palves@redhat.com>
8773 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
8775 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
8776 * inf-ptrace.c (inf_ptrace_register_u_offset)
8777 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8778 (inf_ptrace_store_register, inf_ptrace_store_registers)
8779 (inf_ptrace_trad_target): Move to ...
8780 * linux-nat-trad.c: ... this new file.
8781 * linux-nat-trad.h: New file.
8782 * linux-nat.c (linux_target_install_ops): Make extern.
8783 (linux_trad_target): Delete.
8784 * linux-nat.h (linux_trad_target): Delete declaration.
8785 (linux_target_install_ops): Declare.
8786 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
8789 2018-05-02 Pedro Alves <palves@redhat.com>
8791 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8792 procfs_target/add_target here.
8793 * procfs.c (procfs_target): Make static.
8794 (_initialize_procfs): Call add_target here.
8795 * procfs.h (struct target_ops): Remove forward declaration.
8796 (procfs_target): Remove declaration.
8797 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
8799 2018-05-02 Pedro Alves <palves@redhat.com>
8801 * procfs.c (procfs_stopped_by_watchpoint)
8802 (procfs_insert_watchpoint, procfs_remove_watchpoint)
8803 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
8805 (procfs_use_watchpoints): Delete, move contents...
8806 (procfs_target): ... here.
8807 * procfs.h (procfs_use_watchpoints): Delete declaration.
8808 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8809 procfs_use_watchpoints.
8810 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8811 procfs_use_watchpoints.
8813 2018-05-02 Tom Tromey <tom@tromey.com>
8816 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
8817 and var_zuinteger_unlimited.
8818 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
8819 and PARAM_ZUINTEGER_UNLIMITED.
8820 (set_parameter_value): Handle var_zuinteger and
8821 var_zuinteger_unlimited.
8822 (add_setshow_generic): Likewise.
8823 (parmpy_init): Likewise.
8825 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
8828 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
8829 pointer is not null before dereferencing it.
8831 2018-04-30 Tom Tromey <tom@tromey.com>
8833 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
8836 2018-04-30 Tom Tromey <tom@tromey.com>
8838 * breakpoint.c (mention): Remove use of is_mi_like_p.
8839 (print_mention_ranged_breakpoint): Likewise.
8840 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
8843 2018-04-30 Tom Tromey <tom@tromey.com>
8845 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
8847 2018-04-30 Tom Tromey <tom@tromey.com>
8849 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
8850 (info_spu_event_command): Remove some uses of is_mi_like_p.
8852 2018-04-30 Tom Tromey <tom@tromey.com>
8854 * python/py-framefilter.c (py_print_single_arg)
8855 (enumerate_locals, py_print_args, py_print_frame): Remove some
8856 uses of is_mi_like_p.
8858 2018-04-30 Tom Tromey <tom@tromey.com>
8861 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
8862 * ui-out.h (ui_out::is_mi_like_p): Now const.
8863 (ui_out::do_is_mi_like_p): Now const.
8864 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
8866 2018-04-30 Tom Tromey <tom@tromey.com>
8868 * varobj.c (varobj_set_visualizer): Use new_reference.
8869 * python/python.c (gdbpy_decode_line): Use new_reference.
8870 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
8873 2018-04-30 Tom Tromey <tom@tromey.com>
8875 * varobj.c (install_new_value): Use new_reference.
8876 * value.h (value_incref): Return void. Swap intro comment with
8878 * value.c (set_value_parent): Use new_reference.
8879 (value_incref): Return void. Update intro comment.
8880 (release_value): Use new_reference.
8881 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
8883 2018-04-30 Tom Tromey <tom@tromey.com>
8885 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
8886 * gdb_bfd.h (new_bfd_ref): Remove.
8887 (gdb_bfd_open): Update comment.
8888 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
8889 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
8890 (gdb_bfd_fdopenr): Use new_reference.
8891 * exec.c (exec_file_attach): Use new_reference.
8893 2018-04-30 Tom Tromey <tom@tromey.com>
8895 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
8898 2018-04-30 Tom Tromey <tom@tromey.com>
8900 * jit.c (jit_read_code_entry): Use type_align.
8901 * i386-tdep.c (i386_gdbarch_init): Don't call
8902 set_gdbarch_long_long_align_bit.
8903 * gdbarch.sh: Remove long_long_align_bit.
8904 * gdbarch.c, gdbarch.h: Rebuild.
8905 * arc-tdep.c (arc_type_align): New function.
8906 (arc_gdbarch_init): Use arc_type_align. Don't call
8907 set_gdbarch_long_long_align_bit.
8909 2018-04-30 Tom Tromey <tom@tromey.com>
8911 * rust-lang.c (rust_type_alignment): Remove.
8912 (rust_composite_type): Use type_align.
8914 2018-04-30 Tom Tromey <tom@tromey.com>
8916 * NEWS: Mention Type.align.
8917 * python/py-type.c (typy_get_alignof): New function.
8918 (type_object_getset): Add "alignof".
8920 2018-04-30 Tom Tromey <tom@tromey.com>
8924 * std-operator.def (UNOP_ALIGNOF): New operator.
8925 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
8927 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
8928 * c-lang.c (c_op_print_tab): Add alignof.
8929 * c-exp.y (ALIGNOF): New token.
8930 (exp): Add "ALIGNOF" production.
8931 (ident_tokens): Add _Alignof and alignof.
8933 2018-04-30 Tom Tromey <tom@tromey.com>
8935 * i386-tdep.c (i386_type_align): New function.
8936 (i386_gdbarch_init): Update.
8937 * gdbarch.sh (type_align): New method.
8938 * gdbarch.c, gdbarch.h: Rebuild.
8939 * arch-utils.h (default_type_align): Declare.
8940 * arch-utils.c (default_type_align): New function.
8941 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
8942 (struct type) <align_log2>: New field.
8943 <instance_flags>: Now a bitfield.
8944 (TYPE_RAW_ALIGN): New macro.
8945 (type_align, type_raw_align, set_type_align): Declare.
8946 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
8948 * dwarf2read.c (quirk_rust_enum): Set type alignment.
8949 (get_alignment, maybe_set_alignment): New functions.
8950 (read_structure_type, read_enumeration_type, read_array_type)
8951 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
8952 (read_subrange_type, read_base_type): Set type alignment.
8954 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
8956 * dwarf2read.c (read_index_from_section): Use bool.
8958 2018-04-29 Fabian Groffen <grobian@gentoo.org>
8961 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
8964 2018-04-29 John Reiser <jreiser@BitWagon.com>
8967 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
8968 last step, and do it atomically.
8970 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
8972 * compile/compile-c-types.c (convert_int, convert_float):
8975 2018-04-27 Tom Tromey <tom@tromey.com>
8978 * rust-lang.c (rust_inclusive_range_type_p): New function.
8979 (rust_range): Handle inclusive ranges.
8980 (rust_compute_range): Likewise.
8981 * rust-exp.y (struct rust_op) <inclusive>: New field.
8982 (DOTDOTEQ): New constant.
8983 (range_expr): Add "..=" productions.
8984 (operator_tokens): Add "..=" token.
8985 (ast_range): Add "inclusive" parameter.
8986 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
8988 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
8990 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
8991 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
8993 * expprint.c (print_subexp_standard): Handle new bounds values.
8994 (dump_subexp_body_standard): Likewise.
8996 2018-04-27 Tom Tromey <tom@tromey.com>
8998 * configure: Rebuild.
8999 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9000 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9002 (class symbol_needs_eval_context): Likewise.
9003 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9004 (mock_mapped_index::symbol_name_at): Use "override". Remove
9006 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9008 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9009 * aarch64-tdep.c (instruction_reader::read): Use "override".
9010 (instruction_reader_test::read): Likewise.
9011 * arm-tdep.c (instruction_reader::read): Use "override".
9012 (instruction_reader_thumb::read): Likewise.
9014 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9017 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9018 instead of remote_send.
9019 (remote_send): Remove.
9021 2018-04-26 Pedro Alves <palves@redhat.com>
9023 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9024 find_function_start_sal instead of find_pc_line.
9026 2018-04-26 Pedro Alves <palves@redhat.com>
9028 * breakpoint.c (set_breakpoint_location_function): Handle
9030 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9031 * elfread.c (elf_symtab_read): Give data symbols with
9032 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9033 (elf_rel_plt_read): Update comment.
9034 * linespec.c (convert_linespec_to_sals): Handle
9036 (minsym_found): Handle mst_data_gnu_ifunc.
9037 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9038 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9039 * parse.c (find_minsym_type_and_address): Handle
9041 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9042 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9043 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9045 <mst_data_gnu_ifunc>: New enumerator.
9047 2018-04-26 Pedro Alves <palves@redhat.com>
9049 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9050 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9051 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9053 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9054 (lookup_minimal_symbol_by_pc): Adjust.
9055 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9056 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9057 * minsyms.h (lookup_msym_prefer): New enum.
9058 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9059 parameter by a lookup_msym_prefer parameter.
9061 2018-04-26 Pedro Alves <palves@redhat.com>
9063 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9064 ends in "@plt" instead of looking at the symbol's section.
9066 2018-04-26 Pedro Alves <palves@redhat.com>
9068 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9070 (find_pc_partial_function_gnu_ifunc): Rename to ...
9071 (find_pc_partial_function): ... this, and remove references to
9073 (find_pc_partial_function): Delete old implementation.
9074 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9076 2018-04-26 Pedro Alves <palves@redhat.com>
9078 * linespec.c (struct bound_minimal_symbol_search_key): New.
9079 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9080 skip first line if we found a GNU ifunc minimal symbol by name.
9081 (compare_msymbols): Change parameters to work with a destructured
9083 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9086 2018-04-26 Pedro Alves <palves@redhat.com>
9088 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9089 ifunc targets here. Instead, if we have an ifunc minsym, use its
9091 (add_location_to_breakpoint): Store the minsym and the objfile in
9092 the breakpoint location.
9093 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9094 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9095 Record the minsym in the sal.
9096 * symtab.h (symtab_and_line) <msymbol>: New field.
9098 2018-04-26 Pedro Alves <palves@redhat.com>
9100 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9101 unless we actually resolved the ifunc.
9103 2018-04-26 Pedro Alves <palves@redhat.com>
9105 * c-exp.y (variable production): Prefer ifunc minsyms over
9106 regular function symbols.
9107 * symtab.c (find_gnu_ifunc): New function.
9108 * minsyms.h (lookup_msym_prefer): New enum.
9109 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9110 parameter by a lookup_msym_prefer parameter.
9111 * symtab.h (find_gnu_ifunc): New declaration.
9113 2018-04-26 Pedro Alves <palves@redhat.com>
9115 * blockframe.c (find_gnu_ifunc_target_type): New function.
9116 (find_function_type): New.
9117 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9118 return a value with a memory address.
9119 (eval_call): For calls to GNU ifunc functions, try to find the
9120 type of the target function from the type that the resolver
9122 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9124 * infcall.c (find_function_return_type): Delete.
9125 (find_function_addr): Add 'function_type' parameter. For calls to
9126 GNU ifunc functions, try to find the type of the target function
9127 from the type that the resolver returns, and return it via
9129 (call_function_by_hand_dummy): Adjust to use the function type
9130 returned by find_function_addr.
9131 (find_function_addr): Add 'function_type' parameter and move
9133 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9136 2018-04-26 Pedro Alves <palves@redhat.com>
9138 * c-exp.y (variable production): Skip finding an alias for ifunc
9141 2018-04-26 Pedro Alves <palves@redhat.com>
9143 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9145 2018-04-25 Pedro Alves <palves@redhat.com>
9147 * infcmd.c (kill_command): Print the pid as string, not the whole
9148 thread's ptid. Add comment. s/has been killed/killed/ in output
9150 * remote.c (remote_detach_1): Print the pid as string, not the
9151 whole thread's ptid.
9153 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9154 Sergio Durigan Junior <sergiodj@redhat.com>
9155 Pedro Alves <palves@redhat.com>
9157 * infcmd.c (kill_command): Print message when inferior has
9159 * inferior.c (print_inferior_events): Remove 'static'. Set as
9161 (add_inferior): Improve message printed when
9162 'print_inferior_events' is on.
9163 (exit_inferior): Remove message printed when
9164 'print_inferior_events' is on.
9165 (detach_inferior): Improve message printed when
9166 'print_inferior_events' is on.
9167 (initialize_inferiors): Use 'add_inferior_silent' to set
9168 'current_inferior_'.
9169 * inferior.h (print_inferior_events): Declare here as
9171 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9172 '[Detaching...]' messages when 'print_inferior_events' is on.
9173 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9174 as prefix/suffix for messages. Remove periods. Fix erroneous
9175 'Detaching after fork from child...', replace it by '... from
9177 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9178 prefix/suffix when printing 'Detaching...' messages. Print
9179 them when 'print_inferior_events' is on.
9180 * remote.c (remote_detach_1): Print message when detaching
9181 from inferior and '!is_fork_parent'.
9183 2018-04-24 Tom Tromey <tom@tromey.com>
9185 * cli-out.h: Reindent.
9187 2018-04-24 Tom Tromey <tom@tromey.com>
9189 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9190 (cli_ui_out::do_field_string): Use fputs_filtered.
9191 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9193 2018-04-23 Tom Tromey <tom@tromey.com>
9195 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9196 gdb::unique_xmalloc_ptr.
9198 2018-04-23 Tom Tromey <tom@tromey.com>
9200 * configure: Rebuild.
9202 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9205 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9206 prepare_for_testing. Set normal_bp to r_debug_state if target
9209 2018-04-21 Pedro Alves <palves@redhat.com>
9210 Rajendra SY <rajendra.sy@gmail.com>
9212 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9213 * remote.c (extended_remote_attach): In all-stop mode, mark the
9214 thread as executing.
9216 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9218 * thread.c (thread_apply_all_command): Fix comment.
9219 (thread_command): Fix comment.
9221 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9223 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9225 * features/aarch64-core.c (create_feature_aarch64_core):
9227 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9229 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9231 * features/i386/32bit-avx512.c
9232 (create_feature_i386_32bit_avx512): Likewise.
9233 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9235 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9237 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9239 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9241 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9243 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9245 * features/i386/64bit-avx512.c
9246 (create_feature_i386_64bit_avx512): Likewise.
9247 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9249 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9251 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9253 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9255 * features/i386/64bit-segments.c
9256 (create_feature_i386_64bit_segments): Likewise.
9257 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9259 * features/i386/x32-core.c
9260 (create_feature_i386_x32_core): Likewise.
9261 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9262 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9263 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9264 * target-descriptions.c: In generated code, don't pass xml
9267 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9269 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9270 (print_xml_feature::visit_post): Likewise.
9271 (print_xml_feature::visit): Likewise.
9272 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9273 (print_xml_feature): Add new class.
9274 * regformats/regdat.sh: Null xmltarget on feature targets.
9275 * target-descriptions.c (struct target_desc): Add xmltarget.
9276 (maintenance_check_tdesc_xml_convert): Add unittest function.
9277 (tdesc_get_features_xml): Add function to get xml.
9278 (maintenance_check_xml_descriptions): Test xml generation.
9279 * xml-tdesc.c (string_read_description_xml): Add function.
9280 * xml-tdesc.h (string_read_description_xml): Add declaration.
9282 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9284 * features/Makefile: Add feature marker to targets with new style
9285 target descriptions.
9286 * regformats/aarch64.dat: Regenerate.
9287 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9288 * regformats/i386/amd64-avx-linux.dat: Likewise.
9289 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9290 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9291 * regformats/i386/amd64-linux.dat: Likewise.
9292 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9293 * regformats/i386/amd64.dat: Likewise.
9294 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9295 * regformats/i386/i386-avx-linux.dat: Likewise.
9296 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9297 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9298 * regformats/i386/i386-linux.dat: Likewise.
9299 * regformats/i386/i386-mmx-linux.dat: Likewise.
9300 * regformats/i386/i386-mpx-linux.dat: Likewise.
9301 * regformats/i386/i386.dat: Likewise.
9302 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9303 * regformats/i386/x32-avx-linux.dat: Likewise.
9304 * regformats/i386/x32-linux.dat: Likewise.
9305 * regformats/tic6x-c62x-linux.dat: Likewise.
9306 * regformats/tic6x-c64x-linux.dat: Likewise.
9307 * regformats/tic6x-c64xp-linux.dat: Likewise.
9308 * regformats/regdat.sh: Parse feature marker.
9310 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9312 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9313 (tdesc_osabi_name): Likewise.
9314 * target-descriptions.c (tdesc_architecture_name): Add new
9316 (tdesc_osabi_name): Likewise.
9318 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9320 * common/tdesc.c (tdesc_predefined_type): Move to here.
9321 (tdesc_named_type): Likewise.
9322 (tdesc_create_vector): Likewise.
9323 (tdesc_create_struct): Likewise.
9324 (tdesc_set_struct_size): Likewise.
9325 (tdesc_create_union): Likewise.
9326 (tdesc_create_flags): Likewise.
9327 (tdesc_create_enum): Likewise.
9328 (tdesc_add_field): Likewise.
9329 (tdesc_add_typed_bitfield): Likewise.
9330 (tdesc_add_bitfield): Likewise.
9331 (tdesc_add_flag): Likewise.
9332 (tdesc_add_enum_value): Likewise.
9333 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9334 (struct tdesc_type_vector): Likewise.
9335 (struct tdesc_type_field): Likewise.
9336 (struct tdesc_type_with_fields): Likewise.
9337 (tdesc_create_enum): Add declaration.
9338 (tdesc_add_typed_bitfield): Likewise.
9339 (tdesc_add_enum_value): Likewise.
9340 * target-descriptions.c (tdesc_type_field): Move from here.
9341 (tdesc_type_builtin): Likewise.
9342 (tdesc_type_vector): Likewise.
9343 (tdesc_type_with_fields): Likewise.
9344 (tdesc_predefined_types): Likewise.
9345 (tdesc_named_type): Likewise.
9346 (tdesc_create_vector): Likewise.
9347 (tdesc_create_struct): Likewise.
9348 (tdesc_set_struct_size): Likewise.
9349 (tdesc_create_union): Likewise.
9350 (tdesc_create_flags): Likewise.
9351 (tdesc_create_enum): Likewise.
9352 (tdesc_add_field): Likewise.
9353 (tdesc_add_typed_bitfield): Likewise.
9354 (tdesc_add_bitfield): Likewise.
9355 (tdesc_add_flag): Likewise.
9356 (tdesc_add_enum_value): Likewise.
9357 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9358 (tdesc_add_typed_bitfield): Likewise.
9359 (tdesc_add_enum_value): Likewise.
9361 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9363 * common/tdesc.c (tdesc_feature::accept): Move to here.
9364 (tdesc_feature::operator==): Likewise.
9365 (tdesc_create_reg): Likewise.
9366 * common/tdesc.h (tdesc_type_kind): Likewise.
9367 (struct tdesc_type): Likewise.
9368 (struct tdesc_feature): Likewise.
9369 * regformats/regdat.sh: Create a feature.
9370 * target-descriptions.c (tdesc_type_kind): Move from here.
9371 (tdesc_type): Likewise.
9372 (tdesc_type_up): Likewise.
9373 (tdesc_feature): Likewise.
9374 (tdesc_create_reg): Likewise.
9376 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9378 * Makefile.in: Add arch/tdesc.c
9379 * common/tdesc.c: New file.
9380 * common/tdesc.h (tdesc_element_visitor): Move to here.
9381 (tdesc_element): Likewise.
9382 (tdesc_reg): Likewise.
9383 (tdesc_reg_up): Likewise.
9384 * regformats/regdef.h (reg): Add offset to constructors.
9385 * target-descriptions.c (tdesc_element_visitor): Move from here.
9386 (tdesc_element): Likewise.
9387 (tdesc_reg): Likewise.
9388 (tdesc_reg_up): Likewise.
9390 2018-04-17 Tom Tromey <tom@tromey.com>
9392 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9395 2018-04-17 Tom Tromey <tom@tromey.com>
9397 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9399 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9401 * symtab.c (print_symbol_info): Skip printing filename and line
9402 number when `last' is NULL.
9403 (symtab_symbol_info): Use empty string instead of NULL for first
9404 invocation of print_symbol_info.
9405 (rbreak_command): Pass NULL to `last' parameter of
9408 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9410 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9413 2018-04-16 Pedro Alves <palves@redhat.com>
9415 * MAINTAINERS (sh): Remove.
9416 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9417 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9418 (ALLDEPFILES): Remove sh64-tdep.c.
9419 * NEWS: Mentions that support for SH-5/SH64 is removed.
9420 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9421 (sh*-*-openbsd*): Ditto.
9422 (sh64-*-elf*): Remove.
9424 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9425 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9426 * sh-tdep.c: No longer include "sh64-tdep.h".
9427 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9428 * sh64-tdep.c, sh64-tdep.h: Remove files.
9430 2018-04-16 Pedro Alves <palves@redhat.com>
9432 * MAINTAINERS: Remove m88k.
9433 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9434 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9435 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9436 * NEWS: Mention that support for m88k was removed.
9437 * configure.host (m88*-*-*): Remove support.
9438 * configure.nat (m88k-*-*): Remove support.
9439 * configure.tgt (m88*-*-openbsd*): Remove.
9440 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9442 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9444 * configure.tgt (x86_tobjs): New variable.
9445 (amd64_tobjs, i386_tobjs): Use it.
9447 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9449 * symtab.c (print_symbol_info): Precede the symbol definition by
9450 the line number when available.
9451 * NEWS: Advertise this enhancement.
9453 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9455 * NEWS (New options): announce set/show record btrace cpu.
9456 * btrace.c: Include record-btrace.h.
9457 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9458 the vendor is unknown.
9459 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9460 Maybe overwrite the btrace configuration's cpu.
9461 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9462 (btrace_fetch): Add cpu parameter. Update callers.
9463 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9464 Maybe overwrite the btrace configuration's cpu. Skip enabling
9465 errata workarounds if the vendor is unknown.
9466 * python/py-record-btrace.c: Include record-btrace.h.
9467 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9468 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9469 * record-btrace.c (record_btrace_cpu_state_kind): New.
9470 (record_btrace_cpu): New.
9471 (set_record_btrace_cpu_cmdlist): New.
9472 (record_btrace_get_cpu): New.
9473 (require_btrace_thread, record_btrace_info)
9474 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9475 (cmd_set_record_btrace_cpu_none): New.
9476 (cmd_set_record_btrace_cpu_auto): New.
9477 (cmd_set_record_btrace_cpu): New.
9478 (cmd_show_record_btrace_cpu): New.
9479 (_initialize_record_btrace): Initialize set/show record btrace cpu
9481 * record-btrace.h (record_btrace_get_cpu): New.
9483 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9485 * record.c (set_record_command): Fix typo in message.
9487 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9489 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9491 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9493 * infrun.c (process_event_stop_test): Call
9494 gdbarch_in_indirect_branch_thunk.
9495 * gdbarch.sh (in_indirect_branch_thunk): New.
9496 * gdbarch.c: Regenerated.
9497 * gdbarch.h: Regenerated.
9500 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9501 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9502 (ALLDEPFILES): Add x86-tdep.c.
9503 * arch-utils.h (default_in_indirect_branch_thunk): New.
9504 * arch-utils.c (default_in_indirect_branch_thunk): New.
9505 * i386-tdep: Include x86-tdep.h.
9506 (i386_in_indirect_branch_thunk): New.
9507 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9509 * amd64-tdep: Include x86-tdep.h.
9510 (amd64_in_indirect_branch_thunk): New.
9511 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9513 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9516 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9517 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9518 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9521 2018-04-12 Tom Tromey <tom@tromey.com>
9523 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9524 (rust_evaluate_subexp): Likewise.
9526 2018-04-12 Pedro Alves <palves@redhat.com>
9528 * procfs.c (procfs_detach): Make forward declaration's prototype
9529 match definition's protototype.
9530 (proc_get_LDT_entry): Remove stale do_cleanups call.
9532 2018-04-12 Pedro Alves <palves@redhat.com>
9534 * target.h (target_ops::to_has_exited): Delete.
9535 (target_has_exited): Delete.
9536 * target-delegates.c: Regenerate.
9538 2018-04-11 Pedro Alves <palves@redhat.com>
9540 * target.c (fileio_fh_t::t): Add comment.
9541 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9542 (target_fileio_close): Handle a NULL target.
9543 (invalidate_fileio_fh): New.
9544 (target_close): Call it.
9545 * remote.c (remote_hostio_send_command): No longer check whether
9546 remote_desc is open.
9548 2018-04-11 Pedro Alves <palves@redhat.com>
9550 * target.c (fileio_fh_t): Make it a named struct instead of a
9552 (fileio_fh_t::is_closed): New method.
9553 (DEF_VEC_O (fileio_fh_t)): Remove.
9554 (fileio_fhandles): Now a std::vector.
9555 (is_closed_fileio_fh): Delete.
9556 (acquire_fileio_fd): Adjust. Rename parameters.
9557 (release_fileio_fd): Adjust.
9558 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9559 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9560 (target_fileio_close): Adjust.
9562 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9564 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9567 2018-04-10 Pedro Alves <palves@redhat.com>
9569 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9570 (scoped_finish_thread_state): New class.
9571 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9573 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9574 (fetch_inferior_event, normal_stop): Likewise.
9575 * thread.c (finish_thread_state_cleanup): Delete.
9577 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9578 Pedro Alves <palves@redhat.com>
9580 * value.c: Include "selftest.h" and "common/array-view.h".
9581 (struct range) <operator ==>: New.
9582 (test_ranges_contain): New.
9583 (check_ranges_vector): New.
9584 (test_insert_into_bit_range_vector): New.
9585 (_initialize_values): Register selftests.
9586 * common/array-view.h (operator==, operator!=): New.
9588 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9590 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9592 * inline-frame.c: Include <algorithm>.
9593 (struct inline_state): Add constructor.
9594 (inline_state_s): Remove.
9595 (DEF_VEC_O(inline_state_s)): Remove.
9596 (inline_states): Change type to std::vector.
9597 (find_inline_frame_state): Adjust to std::vector.
9598 (allocate_inline_frame_state): Remove.
9599 (clear_inline_frame_state): Adjust to std::vector.
9600 (skip_inline_frames): Adjust to std::vector.
9602 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9604 * tracepoint.h (struct trace_state_variable): Add constructor.
9605 <name>: Change type to std::string.
9606 * tracepoint.c (tsv_s): Remove.
9607 (DEF_VEC_O(tsv_s)): Remove.
9608 (tvariables): Change to std::vector.
9609 (create_trace_state_variable): Adjust to std::vector.
9610 (find_trace_state_variable): Likewise.
9611 (find_trace_state_variable_by_number): Likewise.
9612 (delete_trace_state_variable): Likewise.
9613 (trace_variable_command): Adjust to std::string.
9614 (delete_trace_variable_command): Likewise.
9615 (tvariables_info_1): Adjust to std::vector.
9616 (save_trace_state_variables): Likewise.
9617 (start_tracing): Likewise.
9618 (merge_uploaded_trace_state_variables): Adjust to std::vector
9620 * target.h (struct target_ops)
9621 <to_download_trace_state_variable>: Pass reference to
9622 trace_state_variable.
9623 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9624 * target-delegates.c: Re-generate.
9625 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9626 (mi_tsv_deleted): Likewise.
9627 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9628 * remote.c (remote_download_trace_state_variable): Change
9629 pointer to reference and adjust.
9630 * make-target-delegates (parse_argtypes): Handle references.
9631 (write_function_header): Likewise.
9632 (munge_type): Likewise.
9634 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9636 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9637 string_view-selftests.c.
9638 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9640 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9641 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9642 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9643 * unittests/basic_string_view/element_access/char/1.cc:
9645 * unittests/basic_string_view/element_access/char/empty.cc:
9647 * unittests/basic_string_view/element_access/char/front_back.cc:
9649 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9650 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9652 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9654 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9656 * unittests/basic_string_view/operations/compare/char/1.cc:
9658 * unittests/basic_string_view/operations/compare/char/13650.cc:
9660 * unittests/basic_string_view/operations/copy/char/1.cc:
9662 * unittests/basic_string_view/operations/data/char/1.cc:
9664 * unittests/basic_string_view/operations/find/char/1.cc:
9666 * unittests/basic_string_view/operations/find/char/2.cc:
9668 * unittests/basic_string_view/operations/find/char/3.cc:
9670 * unittests/basic_string_view/operations/find/char/4.cc:
9672 * unittests/basic_string_view/operations/rfind/char/1.cc:
9674 * unittests/basic_string_view/operations/rfind/char/2.cc:
9676 * unittests/basic_string_view/operations/rfind/char/3.cc:
9678 * unittests/basic_string_view/operations/substr/char/1.cc:
9680 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9681 * unittests/string_view-selftests.c: New file.
9683 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9685 * unittests/basic_string_view/capacity/1.cc: New file.
9686 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9687 * unittests/basic_string_view/cons/char/1.cc: New file.
9688 * unittests/basic_string_view/cons/char/2.cc: New file.
9689 * unittests/basic_string_view/cons/char/3.cc: New file.
9690 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9691 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9692 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9693 * unittests/basic_string_view/element_access/char/1.cc: New file.
9694 * unittests/basic_string_view/element_access/char/2.cc: New file.
9695 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9696 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9697 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9698 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9699 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9700 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9701 * unittests/basic_string_view/include.cc: New file.
9702 * unittests/basic_string_view/inserters/char/1.cc: New file.
9703 * unittests/basic_string_view/inserters/char/2.cc: New file.
9704 * unittests/basic_string_view/inserters/char/3.cc: New file.
9705 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9706 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9707 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9708 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9709 * unittests/basic_string_view/literals/types.cc: New file.
9710 * unittests/basic_string_view/literals/values.cc: New file.
9711 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9712 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9713 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9714 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9715 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9716 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9717 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9718 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9719 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9720 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9721 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9722 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9723 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9724 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9725 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9726 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9727 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9728 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9729 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9730 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9731 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9732 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9733 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9734 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9735 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9736 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9737 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9738 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9739 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9740 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9741 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9742 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9743 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9744 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9745 * unittests/basic_string_view/operators/char/2.cc: New file.
9746 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9747 * unittests/basic_string_view/range_access/char/1.cc: New file.
9748 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9749 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9750 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9751 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9752 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9753 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9754 * unittests/basic_string_view/requirements/typedefs.cc: New file.
9755 * unittests/basic_string_view/typedefs.cc: New file.
9756 * unittests/basic_string_view/types/1.cc: New file.
9758 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9760 * common/gdb_string_view.h: Remove libstdc++ implementation
9761 details, adjust to gdb reality.
9762 * common/gdb_string_view.tcc: Likewise.
9763 * cli/cli-script.c (struct string_view): Remove.
9764 (user_args) <m_args>: Change element type to gdb::string_view.
9765 (user_args::insert_args): Adjust.
9767 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9769 * common/gdb_string_view.h: New file.
9770 * common/gdb_string_view.tcc: New file.
9772 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9774 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9775 * configure: Re-generate.
9777 2018-04-09 Pedro Alves <palves@redhat.com>
9779 * gdbarch.sh: Include "observable.h" instead of "observer.h".
9780 (set_target_gdbarch): Call
9781 gdb::observers::architecture_changed.notify instead of
9782 observer_notify_architecture_changed.
9784 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9786 * tracepoint.c (struct current_traceframe_cleanup): Remove.
9787 (do_restore_current_traceframe_cleanup): Remove.
9788 (restore_current_traceframe_cleanup_dtor): Remove.
9789 (make_cleanup_restore_current_traceframe): Remove.
9790 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
9792 * tracepoint.h (struct scoped_restore_current_traceframe): New.
9793 * infrun.c (fetch_inferior_event): Use
9794 scoped_restore_current_traceframe.
9796 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9798 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
9800 <n_allocated_type_units>: Remove.
9801 <all_type_units>: Change to std::vector.
9802 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9803 to std::vector change.
9804 (dwarf2_per_objfile::get_cutu): Likewise.
9805 (dwarf2_per_objfile::get_tu): Likewise.
9806 (create_signatured_type_table_from_index): Likewise.
9807 (create_signatured_type_table_from_debug_names): Likewise.
9808 (dw2_symtab_iter_next): Likewise.
9809 (dw2_print_stats): Likewise.
9810 (dw2_expand_all_symtabs): Likewise.
9811 (dw2_expand_marked_cus): Likewise.
9812 (dw2_debug_names_iterator::next): Likewise.
9813 (dwarf2_initialize_objfile): Likewise.
9814 (add_signatured_type_cu_to_table): Likewise.
9815 (create_all_type_units): Likewise.
9816 (add_type_unit): Likewise.
9817 (struct tu_abbrev_offset): Add constructor.
9818 (build_type_psymtabs_1): Adjust to std::vector change.
9819 (print_tu_stats): Likewise.
9820 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9821 (write_debug_names): Likewise.
9823 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9825 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
9826 Make an std::vector.
9827 <n_comp_units>: Remove.
9828 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9829 to std::vector change.
9830 (dwarf2_per_objfile::get_cutu): Likewise.
9831 (dwarf2_per_objfile::get_cu): Likewise.
9832 (create_cus_from_index): Likewise.
9833 (create_addrmap_from_index): Likewise.
9834 (create_addrmap_from_aranges): Likewise.
9835 (dwarf2_read_index): Likewise.
9836 (dw2_find_last_source_symtab): Likewise.
9837 (dw2_map_symtabs_matching_filename): Likewise.
9838 (dw2_symtab_iter_next): Likewise.
9839 (dw2_print_stats): Likewise.
9840 (dw2_expand_all_symtabs): Likewise.
9841 (dw2_expand_symtabs_with_fullname): Likewise.
9842 (dw2_expand_marked_cus): Likewise.
9843 (dw2_map_symbol_filenames): Likewise.
9844 (create_cus_from_debug_names): Likewise.
9845 (dwarf2_read_debug_names): Likewise.
9846 (dw2_debug_names_iterator::next): Likewise.
9847 (dwarf2_initialize_objfile): Likewise.
9848 (set_partial_user): Likewise.
9849 (dwarf2_build_psymtabs_hard): Likewise.
9850 (read_comp_units_from_section): Remove arguments, adjust to
9852 (create_all_comp_units): Adjust to std::vector and
9853 read_comp_units_from_section changes.
9854 (dwarf2_find_containing_comp_unit): Adjust to std::vector
9856 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9857 (psyms_seen_size): Likewise.
9858 (write_gdbindex): Likewise.
9859 (write_debug_names): Likewise.
9861 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9863 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
9864 with dwarf2_per_objfile.
9865 (create_cus_from_index): Likewise.
9866 (create_signatured_type_table_from_index): Likewise.
9867 (dwarf2_read_index): Likewise.
9868 (dwarf2_initialize_objfile): Likewise.
9869 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
9870 per_cu rather than get_dwarf2_per_objfile.
9872 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9874 * dwarf2read.h (struct signatured_type): Forward declare.
9875 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
9877 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
9878 (dw2_get_cutu): ...this.
9879 (dwarf2_per_objfile::get_cu): Rename from...
9880 (dw2_get_cu): ...this.
9881 (dwarf2_per_objfile::get_tu): New.
9882 (create_addrmap_from_index): Adjust.
9883 (create_addrmap_from_aranges): Adjust.
9884 (dw2_find_last_source_symtab): Adjust.
9885 (dw2_map_symtabs_matching_filename): Adjust.
9886 (dw2_symtab_iter_next): Adjust.
9887 (dw2_print_stats): Adjust.
9888 (dw2_expand_all_symtabs): Adjust.
9889 (dw2_expand_symtabs_with_fullname): Adjust.
9890 (dw2_expand_marked_cus): Adjust.
9891 (dw_expand_symtabs_matching_file_matcher): Adjust.
9892 (dw2_map_symbol_filenames): Adjust.
9893 (dw2_debug_names_iterator::next): Adjust.
9894 (dwarf2_initialize_objfile): Adjust.
9895 (set_partial_user): Adjust.
9896 (dwarf2_build_psymtabs_hard): Adjust.
9898 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9900 * dwarf2read.c (create_signatured_type_table_from_debug_names):
9901 Remove unused variables.
9902 (dw2_map_symtabs_matching_filename): Likewise.
9903 (dwarf2_record_block_ranges): Likewise.
9904 (dwarf2_read_addr_index): Likewise.
9905 (follow_die_offset): Likewise.
9907 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9909 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
9910 to symbol_file_add_main.
9912 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9915 * mi/mi-console.c (do_fputc_async_safe): New.
9916 (mi_console_file::write_async_safe): New.
9917 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
9918 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
9920 * ui-file.c (ui_file::putstrn): Adjust call to
9921 fputstrn_unfiltered.
9922 * utils.c (printchar): Replace do_fputs and do_fprintf
9923 parameters by do_fputc.
9924 (fputstr_filtered): Adjust call to printchar.
9925 (fputstr_unfiltered): Likewise.
9926 (fputstrn_filtered): Likewise.
9927 (fputstrn_unfiltered): Add do_fputc parameter, pass to
9929 * utils.h (do_fputc_ftype): New typedef.
9930 (fputstrn_unfiltered): Add do_fputc parameter.
9932 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9934 * regformats/i386/i386-avx.dat: Remove.
9936 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9939 * amd64-tdep.c (amd64_none_init_abi): New function.
9940 (amd64_x32_none_init_abi): New function.
9941 (_initialize_amd64_tdep): Register handlers for x86-64 and
9942 x64_32 with GDB_OSABI_NONE.
9943 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
9944 GDB_OSABI_NONE osabi.
9946 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9949 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
9951 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
9952 * osabi.c (gdb_osabi_names): Add "unknown" entry.
9954 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9956 * common/byte-vector.h (char_vector): New type.
9957 * target.h (target_read_alloc): Return
9958 gdb::optional<byte_vector>.
9959 (target_read_stralloc): Return gdb::optional<char_vector>.
9960 (target_get_osdata): Return gdb::optional<char_vector>.
9961 * target.c (target_read_alloc_1): Templatize. Replacement
9962 manual memory management with vector.
9963 (target_read_alloc): Change return type, adjust.
9964 (target_read_stralloc): Change return type, adjust.
9965 (target_get_osdata): Change return type, adjust.
9966 * auxv.c (struct auxv_info) <length>: Remove.
9967 <data>: Change type to gdb::optional<byte_vector>.
9968 (auxv_inferior_data_cleanup): Free auxv_info with delete.
9969 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
9970 (target_auxv_search): Adjust.
9971 (fprint_target_auxv): Adjust.
9972 * avr-tdep.c (avr_io_reg_read_command): Adjust.
9973 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
9974 (linux_make_corefile_notes): Adjust.
9975 * osdata.c (get_osdata): Adjust.
9976 * remote.c (remote_get_threads_with_qxfer): Adjust.
9977 (remote_memory_map): Adjust.
9978 (remote_traceframe_info): Adjust.
9979 (btrace_read_config): Adjust.
9980 (remote_read_btrace): Adjust.
9981 (remote_pid_to_exec_file): Adjust.
9982 * solib-aix.c (solib_aix_get_library_list): Adjust.
9983 * solib-dsbt.c (decode_loadmap): Don't free buf.
9984 (dsbt_get_initial_loadmaps): Adjust.
9985 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
9986 * solib-target.c (solib_target_current_sos): Adjust.
9987 * tracepoint.c (sdata_make_value): Adjust.
9988 * xml-support.c (xinclude_start_include): Adjust.
9989 (xml_fetch_content_from_file): Adjust.
9990 * xml-support.h (xml_fetch_another): Change return type.
9991 (xml_fetch_content_from_file): Change return type.
9992 * xml-syscall.c (xml_init_syscalls_info): Adjust.
9993 * xml-tdesc.c (file_read_description_xml): Adjust.
9994 (fetch_available_features_from_target): Change return type.
9995 (target_fetch_description_xml): Adjust.
9996 (target_read_description_xml): Adjust.
9998 2018-04-06 Tom Tromey <tom@tromey.com>
10000 * value.c (~value): Update.
10001 (struct value) <contents>: Now unique_xmalloc_ptr.
10002 (value_contents_bits_eq, allocate_value_contents)
10003 (value_contents_raw, value_contents_all_raw)
10004 (value_contents_for_printing, value_contents_for_printing_const)
10005 (set_value_enclosing_type): Update.
10007 2018-04-06 Tom Tromey <tom@tromey.com>
10009 * value.c (range_s): Remove typedef, VEC.
10010 (struct range): Add operator<.
10011 (range_lessthan): Remove.
10012 (ranges_contain): Change type.
10014 (struct value) <unavailable, optimized_out>: Now std::vector.
10015 (value_entirely_available)
10016 (value_entirely_covered_by_range_vector)
10017 (value_entirely_unavailable, value_entirely_optimized_out):
10019 (insert_into_bit_range_vector): Change argument type.
10020 (find_first_range_overlap): Likewise.
10021 (struct ranges_and_idx, value_contents_bits_eq)
10022 (require_not_optimized_out, require_available): Update.
10023 (ranges_copy_adjusted): Change argument types.
10024 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10026 2018-04-06 Tom Tromey <tom@tromey.com>
10028 * value.c (~value): Update.
10029 (struct value) <parent>: Now a value_ref_ptr.
10030 (value_parent, set_value_parent, value_address, value_copy):
10033 2018-04-06 Tom Tromey <tom@tromey.com>
10035 * value.c (struct value): Add constructor, destructor, and member
10037 (allocate_value_lazy, value_decref): Update.
10039 2018-04-06 Tom Tromey <tom@tromey.com>
10041 * value.c (struct value) <released, next>: Remove.
10042 (all_values): Now a std::vector.
10043 (allocate_value_lazy): Update.
10044 (value_next): Remove.
10045 (value_mark, value_free_to_mark, release_value)
10046 (value_release_to_mark): Update.
10048 2018-04-06 Tom Tromey <tom@tromey.com>
10050 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10051 (free_value_chain): Remove.
10052 * value.c (free_value_chain): Remove.
10053 (value_release_to_mark): Return a std::vector.
10054 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10056 (check_condition): Update.
10057 * eval.c (fetch_subexp_value): Change "val_chain" to a
10059 * breakpoint.c (update_watchpoint): Update.
10060 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10062 2018-04-06 Tom Tromey <tom@tromey.com>
10064 * value.h (free_all_values): Remove.
10065 * value.c (free_all_values): Remove.
10067 2018-04-06 Tom Tromey <tom@tromey.com>
10069 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10070 (value_history_chain, value_history_count): Remove.
10071 (value_history): New global.
10072 (record_latest_value, access_value_history, show_values)
10073 (preserve_values): Update.
10075 2018-04-06 Tom Tromey <tom@tromey.com>
10077 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10078 * varobj.c (varobj_set_display_format, varobj_set_value)
10079 (install_default_visualizer, construct_visualizer)
10080 (install_new_value, ~varobj, varobj_get_value_type)
10081 (my_value_of_variable, varobj_editable_p): Update.
10082 * c-varobj.c (c_describe_child, c_value_of_variable)
10083 (cplus_number_of_children, cplus_describe_child): Update.
10084 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10085 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10086 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10088 2018-04-06 Tom Tromey <tom@tromey.com>
10090 * printcmd.c (last_examine_address): Change type to
10092 (do_examine, x_command): Update.
10094 2018-04-06 Tom Tromey <tom@tromey.com>
10096 * value.c (release_value): Update.
10097 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10098 (struct bpstats) <val>: Now a value_ref_ptr.
10099 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10100 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10101 (~watchpoint, print_it_watchpoint, watch_command_1)
10102 (invalidate_bp_value_on_memory_change): Update.
10104 2018-04-06 Tom Tromey <tom@tromey.com>
10106 * varobj.c (varobj_clear_saved_item)
10107 (update_dynamic_varobj_children, install_new_value, ~varobj):
10109 * value.h (value_incref): Move declaration earlier.
10110 (value_decref): Rename from value_free.
10111 (struct value_ref_policy): New.
10112 (value_ref_ptr): New typedef.
10113 (struct value_deleter): Remove.
10114 (gdb_value_up): Remove typedef.
10115 (release_value): Change return type.
10116 (release_value_or_incref): Remove.
10117 * value.c (set_value_parent): Update.
10118 (value_incref): Change return type.
10119 (value_decref): Rename from value_free.
10120 (value_free_to_mark, free_all_values, free_value_chain): Update.
10121 (release_value): Return value_ref_ptr.
10122 (release_value_or_incref): Remove.
10123 (record_latest_value, set_internalvar, clear_internalvar):
10125 * stack.c (info_frame_command): Don't call value_free.
10126 * python/py-value.c (valpy_dealloc, valpy_new)
10127 (value_to_value_object): Update.
10128 * printcmd.c (do_examine): Update.
10129 * opencl-lang.c (lval_func_free_closure): Update.
10130 * mi/mi-main.c (register_changed_p): Don't call value_free.
10131 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10132 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10133 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10135 * guile/scm-value.c (vlscm_free_value_smob)
10136 (vlscm_scm_from_value): Update.
10137 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10138 (frame_unwind_register_unsigned, get_frame_register_bytes)
10139 (put_frame_register_bytes): Don't call value_free.
10140 * findvar.c (address_from_register): Don't call value_free.
10141 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10142 * dwarf2loc.c (entry_data_value_free_closure)
10143 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10144 (dwarf2_evaluate_loc_desc_full): Update.
10145 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10146 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10147 (~watchpoint, watch_command_1)
10148 (invalidate_bp_value_on_memory_change): Update.
10149 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10151 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10154 * warning.m4: Add -Wno-error=deprecated-register.
10155 * configure: Re-generate.
10157 2018-04-05 Tom Tromey <tom@tromey.com>
10159 * linespec.h: Remove include of "vec.h".
10161 2018-04-05 Tom Tromey <tom@tromey.com>
10163 * linespec.c (typep): Remove typedef.
10164 (find_methods, find_superclass_methods): Take a std::vector.
10165 (find_method): Use std::vector.
10167 2018-04-05 Tom Tromey <tom@tromey.com>
10169 * utils.c (compare_strings): Remove.
10170 * utils.h (compare_strings): Remove.
10171 * objc-lang.h (find_imps): Update.
10172 * objc-lang.c (find_methods): Take a std::vector.
10173 (uniquify_strings, find_imps): Likewise.
10174 * linespec.c (find_methods): Take a std::vector.
10175 (decode_objc): Use std::vector.
10176 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10178 (find_method, find_function_symbols): Use std::vector.
10180 2018-04-05 Tom Tromey <tom@tromey.com>
10182 * completer.c (completion_tracker::completion_tracker): Remove
10184 (completion_tracker::discard_completions): Likewise.
10185 * breakpoint.c (ambiguous_names_p): Remove cast.
10186 * ada-lang.c (_initialize_ada_language): Remove cast.
10187 * utils.h (streq): Update.
10188 (streq_hash): Add new declaration.
10189 * utils.c (streq): Return bool.
10190 (streq_hash): New function.
10192 2018-04-05 Tom Tromey <tom@tromey.com>
10194 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10195 Remove a string copy.
10197 2018-04-05 Tom Tromey <tom@tromey.com>
10199 * linespec.c (filter_results): Use std::vector.
10200 (decode_line_2, decode_line_full): Update.
10202 2018-04-05 Tom Tromey <tom@tromey.com>
10204 * linespec.c (canonical_to_fullform): Return std::string.
10205 (filter_results): Update.
10206 (struct decode_line_2_item): Add constructor.
10207 <fullform, displayform>: Now std::string.
10208 (decode_line_2_compare_items): Now a std::sort comparator.
10209 (decode_line_2): Update.
10211 2018-04-05 Tom Tromey <tom@tromey.com>
10213 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10214 (unexpected_linespec_error): Update.
10215 (linespec_parse_basic, parse_linespec): Update.
10217 2018-04-05 Tom Tromey <tom@tromey.com>
10219 * linespec.c (linespec_parse_basic): Reindent.
10221 2018-04-05 Tom Tromey <tom@tromey.com>
10223 * minsyms.h (iterate_over_minimal_symbols): Update.
10224 * minsyms.c (iterate_over_minimal_symbols): Take a
10225 gdb::function_view.
10226 * linespec.c (struct collect_minsyms): Remove.
10227 (compare_msyms): Now a std::sort comparator.
10228 (add_minsym): Add parameters.
10229 (search_minsyms_for_name): Update. Use std::vector.
10231 2018-04-03 Tom Tromey <tom@tromey.com>
10233 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10236 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10238 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10240 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10243 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10244 printing static type.
10246 2018-04-01 Tom Tromey <tom@tromey.com>
10248 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10249 (rs6000_xfer_shared_libraries): Update.
10251 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10253 * common/gdb_vecs.h (char_ptr): Remove.
10254 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10256 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10258 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10260 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10262 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10264 * tracepoint.h (struct uploaded_tp): Initialize fields.
10265 <actions, step_actions, cmd_strings>: Change type to
10266 std::vector<char *>.
10267 * tracepoint.c (get_uploaded_tp): Allocate with new.
10268 (free_uploaded_tps): Free with delete.
10269 (parse_tracepoint_definition): Adjust to std::vector change.
10270 * breakpoint.c (read_uploaded_action): Likewise.
10271 (create_tracepoint_from_upload): Likewise.
10272 * ctf.c (ctf_write_uploaded_tp): Likewise.
10273 (SET_ARRAY_FIELD): Likewise.
10274 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10276 2018-03-30 Tom Tromey <tom@tromey.com>
10278 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10280 (svr4_keep_data_in_core): Update.
10281 (svr4_read_so_list): Update.
10283 2018-03-30 Tom Tromey <tom@tromey.com>
10285 * windows-nat.c (handle_output_debug_string, handle_exception):
10287 * target.h (target_read_string): Update.
10288 * target.c (target_read_string): Change "string" to
10289 unique_xmalloc_ptr.
10290 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10292 * solib-frv.c (frv_current_sos): Update.
10293 * solib-dsbt.c (dsbt_current_sos): Update.
10294 * solib-darwin.c (darwin_current_sos): Update.
10295 * linux-thread-db.c (inferior_has_bug): Update.
10296 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10297 Update. Remove alloca.
10298 * ada-lang.c (ada_main_name): Update.
10300 2018-03-30 Tom Tromey <tom@tromey.com>
10302 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10303 (struct dwo_file_deleter): New.
10304 (dwo_file_up): New typedef.
10305 (open_and_init_dwo_file): Use dwo_file_up.
10306 (free_dwo_file_cleanup): Remove.
10308 2018-03-30 Tom Tromey <tom@tromey.com>
10310 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10311 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10313 2018-03-30 Tom Tromey <tom@tromey.com>
10315 * dwarf2read.c (class free_cached_comp_units): New class.
10316 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10317 (free_cached_comp_units): Remove function.
10319 2018-03-30 Tom Tromey <tom@tromey.com>
10321 * utils.h (make_cleanup_unpush_target): Remove.
10322 * inf-ptrace.c (struct target_unpusher): New.
10323 (target_unpush_up) New typedef.
10324 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10326 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10328 2018-03-27 Tom Tromey <tom@tromey.com>
10330 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10332 2018-03-27 Pedro Alves <palves@redhat.com>
10333 Tom Tromey <tom@tromey.com>
10335 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10336 destructor. Now a class.
10337 (gdb_readline_wrapper_cleanup): Remove function.
10338 (gdb_readline_wrapper): Remove cleanups.
10340 2018-03-27 Tom Tromey <tom@tromey.com>
10342 * typeprint.h (struct type_print_options) <local_typedefs,
10343 global_typedefs>: Remove "struct" keyword.
10344 (class typedef_hash_table): New class.
10345 (recursively_update_typedef_hash, add_template_parameters)
10346 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10347 (find_typedef_in_hash): Don't declare.
10348 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10349 (typedef_hash_table::recursively_update): Rename from
10350 recursively_update_typedef_hash. Now a member.
10351 (typedef_hash_table::add_template_parameters): Rename from
10352 add_template_parameters. Now a member.
10353 (typedef_hash_table::typedef_hash_table): Now a constructor;
10354 rename from create_typedef_hash.
10355 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10356 rename from free_typedef_hash.
10357 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10358 (do_free_global_table): Remove.
10359 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10360 from copy_type_recursive.
10361 (create_global_typedef_table): Remove.
10362 (typedef_hash_table::find_global_typedef): Now a member of
10363 typedef_hash_table.
10364 (typedef_hash_table::find_typedef): Rename from
10365 find_typedef_in_hash; now a member.
10366 (whatis_exp): Update.
10367 * extension.h (struct ext_lang_type_printers): Add constructor and
10369 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10371 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10372 Now a constructor; rename from start_ext_lang_type_printers.
10373 (ext_lang_type_printers): Now a destructor; rename from
10374 free_ext_lang_type_printers.
10375 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10377 (c_type_print_base_struct_union): Update. Remove cleanups.
10379 2018-03-27 Tom Tromey <tom@tromey.com>
10381 * dwarf-index-write.c: Include <cmath>.
10383 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10385 * NEWS: Add entry describing new "set|show varsize-limit" command.
10386 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10388 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10391 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10393 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10394 dwarf-index-write.c
10395 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10396 * dwarf-index-common.c: New file.
10397 * dwarf-index-common.h: New file.
10398 * dwarf-index-write.c: New file.
10399 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10400 (struct dwarf2_section_info): Move from here.
10401 (dwarf2_section_info_def): Likewise.
10402 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10403 (offset_type): Likewise.
10404 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10405 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10406 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10407 (byte_swap): Likewise.
10408 (MAYBE_SWAP): Likewise.
10409 (dwarf2_per_cu_ptr): Likewise.
10410 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10411 (struct tu_stats): Likewise.
10412 (struct dwarf2_per_objfile): Likewise.
10413 (struct dwarf2_per_cu_data): Likewise.
10414 (struct signatured_type): Likewise.
10415 (sig_type_ptr): Likewise.
10416 (DEF_VEC_P (sig_type_ptr)): Likewise.
10417 (INDEX4_SUFFIX): Likewise.
10418 (INDEX5_SUFFIX): Likewise.
10419 (DEBUG_STR_SUFFIX): Likewise.
10420 (dwarf2_read_section): Make non-static.
10421 (mapped_index_string_hash): Move from here.
10422 (dwarf5_djb_hash): Likewise.
10423 (file_write): Likewise.
10424 (class data_buf): Likewise.
10425 (struct symtab_index_entry): Likewise.
10426 (struct mapped_symtab): Likewise.
10427 (find_slot): Likewise.
10428 (hash_expand): Likewise.
10429 (add_index_entry): Likewise.
10430 (uniquify_cu_indices): Likewise.
10431 (class c_str_view): Likewise.
10432 (class c_str_view_hasher): Likewise.
10433 (class vector_hasher): Likewise.
10434 (write_hash_table): Likewise.
10435 (psym_index_map): Likewise.
10436 (struct addrmap_index_data): Likewise.
10437 (add_address_entry): Likewise.
10438 (add_address_entry_worker): Likewise.
10439 (write_address_map): Likewise.
10440 (symbol_kind): Likewise.
10441 (write_psymbols): Likewise.
10442 (struct signatured_type_index_data): Likewise.
10443 (write_one_signatured_type): Likewise.
10444 (recursively_count_psymbols): Likewise.
10445 (recursively_write_psymbols): Likewise.
10446 (class debug_names): Likewise.
10447 (check_dwarf64_offsets): Likewise.
10448 (psyms_seen_size): Likewise.
10449 (write_gdbindex): Likewise.
10450 (write_debug_names): Likewise.
10451 (assert_file_size): Likewise.
10452 (write_psymtabs_to_index): Likewise.
10453 (save_gdb_index_command): Likewise.
10454 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10456 * dwarf2read.h: New file.
10458 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10461 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10462 symbol name if the CU's language stores symbol names in linkage
10464 * language.h (struct language_defn)
10465 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10466 all instances of this struct.
10468 2018-03-26 Tom Tromey <tom@tromey.com>
10470 * stack.c (backtrace_command_1): Remove verbose code.
10472 2018-03-26 Tom Tromey <tom@tromey.com>
10474 * python/py-framefilter.c (py_print_type): Don't catch
10475 exceptions. Return void.
10476 (py_print_value): Likewise.
10477 (py_print_single_arg): Likewise.
10478 (enumerate_args): Don't catch exceptions.
10479 (py_print_args): Likewise.
10480 (py_print_frame): Likewise.
10481 (gdbpy_apply_frame_filter): Catch exceptions here.
10483 2018-03-26 Tom Tromey <tom@tromey.com>
10485 * stack.c (_initialize_stack): Remove trailing newlines from help
10486 text. Add "Usage" line to "backtrace" help.
10488 2018-03-26 Tom Tromey <tom@tromey.com>
10491 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10493 2018-03-26 Tom Tromey <tom@tromey.com>
10495 * python/py-framefilter.c (py_print_single_arg): Return
10496 EXT_LANG_BT_ERROR from catch.
10498 2018-03-26 Tom Tromey <tom@tromey.com>
10500 PR backtrace/15584:
10501 * stack.c (backtrace_command_1): Move some code into no-filters
10504 2018-03-26 Tom Tromey <tom@tromey.com>
10506 * python/py-framefilter.c (throw_quit_or_print_exception): New
10508 (gdbpy_apply_frame_filter): Use it.
10510 2018-03-26 Tom Tromey <tom@tromey.com>
10513 * python/py-framefilter.c (py_print_type, py_print_value)
10514 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10517 2018-03-26 Tom Tromey <tom@tromey.com>
10519 * python/py-framefilter.c (enumerate_args): Use
10520 gdb::unique_xmalloc_ptr.
10522 2018-03-26 Tom Tromey <tom@tromey.com>
10524 * python/py-framefilter.c (py_print_frame): Return
10526 (gdbpy_apply_frame_filter): Update comment.
10527 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10529 <EXT_LANG_BT_NO_FILTERS>: Change value.
10531 2018-03-26 Tom Tromey <tom@tromey.com>
10533 PR backtrace/15582:
10534 * stack.c (backtrace_command): Parse "hide" argument.
10535 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10536 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10539 2018-03-26 Tom Tromey <tom@tromey.com>
10541 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10543 (backtrace_command): Remove "fulltrace", add "flags".
10545 2018-03-26 Tom Tromey <tom@tromey.com>
10547 * stack.c (backtrace_command): Rewrite command line parsing.
10549 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10551 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10553 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10555 * filename-seen-cache.h: Add include guard.
10557 2018-03-26 Keith Seitz <keiths@redhat.com>
10559 * symfile.c (place_section): Remove "struct" from section_addr_info
10561 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10562 "struct" keyword from section_addr_info.
10564 2018-03-26 Alan Hayward <alan.hayward@arm.com>
10566 * regformats/regdef.h (reg): Add constructors.
10568 2018-03-25 Pedro Alves <palves@redhat.com>
10570 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10571 if then/else bodies in var_func_name extraction.
10573 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
10575 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10576 lookup_minimal_symbol() to find symbol entry.
10577 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10579 2018-03-23 Keith Seitz <keiths@redhat.com>
10582 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10583 nested type definitions for C++, too.
10585 2018-03-23 Tom Tromey <tom@tromey.com>
10587 * machoread.c (struct oso_el): Add a constructor. Don't define as
10589 (macho_register_oso): Remove.
10590 (macho_symtab_read): Take a std::vector.
10591 (oso_el_compare_name): Now a std::sort comparator.
10592 (macho_symfile_read_all_oso): Take a std::vector.
10593 (macho_symfile_read): Use std::vector. Remove cleanups.
10595 2018-03-22 Tom Tromey <tom@tromey.com>
10597 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10598 (record_full_goto_bookmark): Use std::string.
10600 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10603 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10606 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10608 * rs6000-tdep.c (store_insn_p): New function.
10609 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10610 and cr_reg to their unshifted values. Use store_insn_p to
10611 match LR saves using either R1 or fdata->alloca_reg. Use
10612 store_insn_p to match CR saves. Set alloca_reg_offset
10613 when alloca_reg and framep are set. Remove lr_reg shift
10614 when assigning to fdata->lr_register.
10616 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10618 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10619 command line args instead of emitting a warning.
10621 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10623 * tracepoint.h (struct static_tracepoint_marker): Initialize
10624 fields, define default constructor, move constructor and move
10625 assignment, disable the rest.
10626 <str_id, extra>: Make std::string.
10627 (release_static_tracepoint_marker): Remove.
10628 (free_current_marker): Remove.
10629 * tracepoint.c (free_current_marker): Remove.
10630 (parse_static_tracepoint_marker_definition): Adjust to
10631 std::string, use new hex2str overload.
10632 (release_static_tracepoint_marker): Remove.
10633 (print_one_static_tracepoint_marker): Get marker by reference
10634 and adjust to std::string.
10635 (info_static_tracepoint_markers_command): Adjust to std::vector
10637 * target.h (static_tracepoint_marker_p): Remove typedef.
10638 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10639 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10641 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10643 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10644 (target_debug_print_std_vector_static_tracepoint_marker): New.
10645 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10647 (target_debug_print_static_tracepoint_marker_p): ... this.
10648 * target-delegates.c: Re-generate.
10649 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10651 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10652 (decode_static_tracepoint_spec): Adjust to std::vector.
10653 (tracepoint_print_one_detail): Adjust to std::string.
10654 (strace_marker_decode_location): Adjust to std::string.
10655 (update_static_tracepoint): Adjust to std::string, remove call
10656 to release_static_tracepoint_marker.
10657 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10658 Adjust to std::vector.
10659 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10660 (remote_static_tracepoint_markers_by_strid): Adjust to
10662 * common/rsp-low.h (hex2str): New overload with explicit count
10664 * common/rsp-low.c (hex2str): New overload with explicit count
10666 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10667 (_initialize_rsp_low_selftests): Add test_hex2str test.
10668 * unittests/tracepoint-selftests.c
10669 (test_parse_static_tracepoint_marker_definition): Adjust to
10672 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10674 * tracepoint.c (parse_static_tracepoint_marker_definition):
10675 Consider case where the definition is followed by more
10677 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10678 tracepoint-selftests.c.
10679 * unittests/tracepoint-selftests.c: New.
10681 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10683 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10686 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10688 * symtab.c (find_pc_sect_line): fixed indentation.
10690 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10692 * symtab.c (find_pc_sect_line): now uses binary search.
10694 2018-03-19 Tom Tromey <tom@tromey.com>
10696 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10697 "IDENT" production.
10699 2018-03-19 Pedro Alves <palves@redhat.com>
10700 Tom Tromey <tom@tromey.com>
10702 * unittests/observable-selftests.c: New file.
10703 * common/observable.h: New file.
10704 * observable.h: New file.
10705 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10706 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10707 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10708 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10709 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10710 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10711 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10712 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10713 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10714 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10715 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10716 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10717 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10718 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10719 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10720 tui/tui-interp.c, valops.c: Update all users.
10721 * tui/tui-hooks.c (tui_bp_created_observer)
10722 (tui_bp_deleted_observer, tui_bp_modified_observer)
10723 (tui_inferior_exit_observer, tui_before_prompt_observer)
10724 (tui_normal_stop_observer, tui_register_changed_observer):
10726 (tui_observers_token): New global.
10727 (attach_or_detach, tui_attach_detach_observers): New functions.
10728 (tui_install_hooks, tui_remove_hooks): Use
10729 tui_attach_detach_observers.
10730 * record-btrace.c (record_btrace_thread_observer): Remove.
10731 (record_btrace_thread_observer_token): New global.
10732 * observer.sh: Remove.
10733 * observer.c: Rename to observable.c.
10734 * observable.c (namespace gdb_observers): Define new objects.
10735 (observer_debug): Move into gdb_observers namespace.
10736 (struct observer, struct observer_list, xalloc_observer_list_node)
10737 (xfree_observer_list_node, generic_observer_attach)
10738 (generic_observer_detach, generic_observer_notify): Remove.
10739 (_initialize_observer): Update.
10740 Don't include observer.inc.
10741 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10742 (clean mostlyclean): Likewise.
10743 (observer.h, observer.inc): Remove targets.
10744 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10745 (COMMON_SFILES): Use observable.c, not observer.c.
10746 * .gitignore: Remove observer.h.
10748 2018-03-18 Tom Tromey <tom@tromey.com>
10750 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10752 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10754 2018-03-17 Tom Tromey <tom@tromey.com>
10756 * auto-load.c (auto_load_objfile_script_1): Use std::string.
10758 2018-03-17 Tom Tromey <tom@tromey.com>
10760 * target.c (class scoped_target_fd): New.
10761 (target_fileio_close_cleanup): Remove.
10762 (target_fileio_read_alloc_1): Use scoped_target_fd.
10764 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
10766 * silent-rules.mk: New.
10767 * Makefile.in: Include silent-rules.mk
10768 (srcdir, VPATH, top_srcdir): Move up.
10769 (COMPILE): Add ECHO_CXX.
10770 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
10771 (init.c): Add ECHO_INIT_C.
10772 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10773 (version.c): Add ECHO_GEN.
10774 (printcmd.o): Add ECHO_CXX.
10775 (target-float.o): Add ECHO_CXX.
10776 (ada-exp.o): Add ECHO_CXX.
10777 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
10778 (insight$(EXEEXT)): Add ECHO_CXXLD.
10779 * gnulib/configure.ac: Add AM_SILENT_RULES.
10780 * gnulib/aclocal.m4: Re-generate.
10781 * gnulib/configure: Re-generate.
10782 * gnulib/import/Makefile.in: Re-generate.
10784 2018-03-16 Tom Tromey <tom@tromey.com>
10786 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
10787 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
10788 * utils.c (do_free_section_addr_info)
10789 (make_cleanup_free_section_addr_info): Remove.
10790 * symfile.h (struct other_sections): Add constructor.
10791 (struct section_addr_info): Remove.
10792 (section_addr_info): New typedef.
10793 (struct sym_fns) <sym_offsets>: Change type of parameter.
10794 (build_section_addr_info_from_objfile)
10795 (relative_addr_info_to_section_offsets, addr_info_make_relative)
10796 (default_symfile_offsets, symbol_file_add)
10797 (symbol_file_add_from_bfd)
10798 (build_section_addr_info_from_section_table): Update.
10799 (alloc_section_addr_info, free_section_addr_info): Don't declare.
10800 * symfile.c (alloc_section_addr_info): Remove.
10801 (build_section_addr_info_from_section_table): Change return type.
10803 (build_section_addr_info_from_bfd)
10804 (build_section_addr_info_from_objfile): Likewise.
10805 (free_section_addr_info): Remove.
10806 (relative_addr_info_to_section_offsets): Change type of "addrs".
10807 (addrs_section_compar): Now a std::sort comparator.
10808 (addrs_section_sort): Change return type.
10809 (addr_info_make_relative): Change type of "addrs". Update.
10810 (default_symfile_offsets, syms_from_objfile_1)
10811 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
10812 (symbol_file_add_separate): Update.
10813 (symbol_file_add): Change type of "addrs". Update.
10814 (add_symbol_file_command): Update. Remove cleanups.
10815 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
10817 * symfile-debug.c (debug_sym_offsets): Change type of "info".
10818 * solib.c (solib_read_symbols): Update.
10819 * objfiles.c (objfile_relocate): Update. Remove cleanups.
10820 * machoread.c (macho_symfile_offsets): Update.
10821 * jit.c (jit_bfd_try_read_symtab): Update.
10823 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
10825 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10826 unittests/utils-selftests.c.
10827 * unittests/utils-selftests.c: New file.
10829 2018-03-14 Tom Tromey <tom@tromey.com>
10832 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
10835 2018-03-14 Tom Tromey <tom@tromey.com>
10838 * printcmd.c (printf_pointer): Allow "-" in format.
10840 2018-03-14 Tom Tromey <tom@tromey.com>
10842 * printcmd.c (_initialize_printcmd): Add usage to printf.
10844 2018-03-14 Yao Qi <qiyao@sourceware.org>
10846 * MAINTAINERS: Update my email address.
10848 2018-03-13 Tom Tromey <tom@tromey.com>
10850 * machoread.c (macho_check_dsym): Change filenamep to a
10852 (macho_symfile_read): Update.
10853 * symfile.c (load_command): Use std::string.
10855 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
10857 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
10858 to error message string.
10859 (riscv_register_name): Use xsnprintf instead of sprintf.
10860 (riscv_insn::fetch_instruction): Use gdb_assert instead of
10862 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
10864 (riscv_push_dummy_call): Likewise.
10866 2018-03-12 Tom Tromey <tom@tromey.com>
10868 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
10869 Use gdb::byte_vector.
10870 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
10872 2018-03-12 Yao Qi <yao.qi@linaro.org>
10874 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
10875 parameter type to readable_regcache.
10876 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
10879 2018-03-11 Tom Tromey <tom@tromey.com>
10881 * dwarf2read.c (struct nextfield): Add initializers.
10882 (struct nextfnfield): Remove.
10883 (struct fnfieldlist): Add initializers. Remove "length" and
10884 "head", use std::vector.
10885 (struct decl_field_list): Remove.
10886 (struct field_info): Add initializers.
10887 <fields, baseclasses>: Now std::vector.
10888 <nbaseclasses, nfnfields, typedef_field_list_count,
10889 nested_types_list_count>: Remove.
10890 (dwarf2_add_field, dwarf2_add_type_defn)
10891 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
10892 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
10893 (process_structure_scope): Update.
10895 2018-03-11 Tom Tromey <tom@tromey.com>
10897 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
10898 for use by std::sort.
10899 (build_type_psymtabs_1): Use std::vector.
10901 2018-03-09 Eli Zaretskii <eliz@gnu.org>
10903 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
10904 and LIBMPFR in the printed configuration.
10906 2018-03-08 Tom Tromey <tom@tromey.com>
10908 * source.c (get_filename_and_charpos): Use scoped_fd.
10909 * nto-procfs.c (procfs_open_1): Use scoped_fd.
10910 (procfs_pidlist): Likewise.
10911 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
10912 (iterate_over_mappings): Likewise.
10914 2018-03-08 Tom Tromey <tom@tromey.com>
10916 * infcall.c (struct call_return_meta_info)
10917 <stack_temporaries_enabled>: Remove.
10918 (get_call_return_value, call_function_by_hand_dummy): Update.
10919 * thread.c (disable_thread_stack_temporaries): Remove.
10920 (enable_thread_stack_temporaries): Remove.
10921 (thread_stack_temporaries_enabled_p): Return bool.
10922 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
10923 (get_last_thread_stack_temporary): Update.
10924 * eval.c (evaluate_subexp): Update.
10925 * gdbthread.h (class enable_thread_stack_temporaries): Now a
10926 class, not a function.
10927 (value_ptr, value_vec): Remove typedefs.
10928 (class thread_info) <stack_temporaries_enabled>: Now bool.
10929 <stack_temporaries>: Now a std::vector.
10930 (thread_stack_temporaries_enabled_p)
10931 (value_in_thread_stack_temporaries): Return bool.
10933 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
10935 * remote.c (putpkt_binary): Fix omitted bytes reporting.
10936 (getpkt_or_notif_sane_1): Likewise.
10938 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10940 * build-id.c (build_id_to_debug_bfd): Use std::string.
10942 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10944 * build-id.c (find_separate_debug_file_by_buildid): Return
10946 * build-id.h (find_separate_debug_file_by_buildid): Return
10948 * coffread.c (coff_symfile_read): Adjust to std::string.
10949 * elfread.c (elf_symfile_read): Adjust to std::string.
10950 * symfile.c (separate_debug_file_exists): Change parameter to
10952 (find_separate_debug_file): Return std::string.
10953 (find_separate_debug_file_by_debuglink): Return std::string.
10954 * symfile.h (find_separate_debug_file_by_debuglink): Return
10957 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10959 * common/xml-utils.c (xml_escape_text): Move code to...
10960 (xml_escape_text_append): ... this new function.
10961 * common/xml-utils.h (xml_escape_text_append): New declaration.
10962 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
10964 (_initialize_xml_utils): register test_xml_escape_text_append as
10967 2018-03-07 Alan Hayward <alan.hayward@arm.com>
10969 * defs.h: Remove MAX_REGISTER_SIZE.
10970 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
10972 * python/py-unwind.c (pyuw_sniffer): Likewise.
10974 2018-03-07 Tom Tromey <tom@tromey.com>
10976 * linux-tdep.c (linux_info_proc): Update.
10977 * target.h (struct target_ops) <to_fileio_readlink>: Return
10979 (target_fileio_readlink): Return optional<string>.
10980 * remote.c (remote_hostio_readlink): Return optional<string>.
10981 * inf-child.c (inf_child_fileio_readlink): Return
10983 * target.c (target_fileio_readlink): Return optional<string>.
10985 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10987 * regcache.c (cooked_read_test): Add riscv to the list of
10988 architectures that have a save_reggroup.
10990 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
10992 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
10993 value is not a dynamic class object.
10995 2018-03-06 Tom Tromey <tom@tromey.com>
10997 * rust-exp.y: Formatting fixes.
10999 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11001 * riscv-tdep.c (riscv_register_name): Remove target description
11003 (riscv_gdbarch_init): Remove target description check.
11005 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11007 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11009 * riscv-tdep.h: Likewise.
11011 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11013 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11014 (riscv_pseudo_register_write): Delete.
11015 (riscv_gdbarch_init): Remove all use of pseudo registers.
11017 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11019 * record-btrace.c (btrace_print_lines): Replace cleanup
11020 parameter with RAII equivalents.
11021 (btrace_insn_history): Replace cleanup with RAII equivalents.
11022 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11023 make_cleanup_ui_out_tuple_begin_end): Remove.
11024 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11025 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11026 make_cleanup_ui_out_list_begin_end): Remove.
11028 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11030 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11031 parameter types to std::vector. Use bool.
11032 (record_btrace_wait): Replace VEC(tp_t) with
11033 std::vector<thread_info *>.
11034 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11036 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11038 * record-btrace.c (record_btrace_disable_callback): Remove.
11039 (struct scoped_btrace_disable): New.
11040 (record_btrace_open): Use scoped_btrace_disable.
11042 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11044 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11045 reading values from registers.
11047 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11049 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11052 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11054 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11055 change parameter type. Use GDB's print functions, and use
11056 core_addr_to_string where appropriate.
11057 (riscv_push_dummy_call): Use core_addr_to_string where
11058 appropriate, update call to riscv_print_arg_location, and reindent
11060 (riscv_return_value): Update call to riscv_print_arg_location.
11062 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11063 Tim Newsome <tim@sifive.com>
11064 Albert Ou <a0u@eecs.berkeley.edu>
11065 Darius Rad <darius@bluespec.com>
11067 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11068 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11069 (ALLDEPFILES): Add riscv-tdep.c
11070 * configure.tgt: Add riscv support.
11071 * riscv-tdep.c: New file.
11072 * riscv-tdep.h: New file.
11073 * NEWS: Mention new target.
11074 * MAINTAINERS: Add entry for riscv.
11076 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11078 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11079 fields within aggregates.
11081 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11083 * record-btrace.c (btrace_print_lines): Change type of flags to
11084 gdb_disassembly_flags.
11086 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11088 * fbsd-nat.c: Include "inf-ptrace.h".
11089 (USE_SIGTRAP_SIGINFO): Conditionally define.
11090 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11091 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11092 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11094 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11096 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11098 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11099 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11100 "supports_stopped_by_hw_breakpoint" target methods.
11102 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11104 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11105 * fbsd-nat.c (debug_fbsd_nat): New variable.
11106 (show_fbsd_nat_debug): New function.
11107 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11108 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11110 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11112 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11113 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11115 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11116 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11119 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11121 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11122 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11124 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11126 * charset.c (struct charset_vector): New.
11127 (charsets): Change type to charset_vector.
11128 (find_charset_names): Adjust.
11130 (_initialize_charset): Adjust.
11132 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11134 * progspace.h (struct program_space) <deleted_solibs>: Change
11135 type to std::vector<std::string>.
11136 * progspace.c (clear_program_space_solib_cache): Adjust.
11137 * breakpoint.c (print_solib_event): Adjust.
11138 (check_status_catch_solib): Adjust.
11139 * solib.c (update_solib_list): Adjust.
11140 * ui-out.h (class ui_out) <field_string>: New overload.
11141 * ui-out.c (ui_out::field_string): New overload.
11143 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11145 * progspace.h (struct program_space): Add constructor and
11146 destructor, initialize fields.
11147 (add_program_space): Remove.
11148 * progspace.c (add_program_space): Rename to...
11149 (program_space::program_space): ... this.
11150 (release_program_space): Rename to...
11151 (program_space::~program_space): ... this.
11152 (delete_program_space): Use delete to delete program_space.
11153 (initialize_progspace): Use new to allocate program_space.
11154 * inferior.c (add_inferior_with_spaces): Likewise.
11155 (clone_inferior_command): Likewise.
11156 * infrun.c (follow_fork_inferior): Likewise.
11157 (handle_vfork_child_exec_or_exit): Likewise.
11159 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11161 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11162 (delim_string_to_char_ptr_vec): Return std::vector of
11163 gdb::unique_xmalloc_ptr.
11164 (dirnames_to_char_ptr_vec_append): Take std::vector of
11165 gdb::unique_xmalloc_ptr.
11166 (dirnames_to_char_ptr_vec): Return std::vector of
11167 gdb::unique_xmalloc_ptr.
11168 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11169 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11170 (delim_string_to_char_ptr_vec): Return an std::vector of
11171 gdb::unique_xmalloc_ptr, adjust the code.
11172 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11173 gdb::unique_xmalloc_ptr, adjust the code.
11174 (dirnames_to_char_ptr_vec): Return an std::vector of
11175 gdb::unique_xmalloc_ptr, adjust the code.
11176 * auto-load.c (auto_load_safe_path_vec): Change type to
11177 std::vector of gdb::unique_xmalloc_ptr.
11178 (auto_load_expand_dir_vars): Return an std::vector of
11179 gdb::unique_xmalloc_ptr, adjust the code.
11180 (auto_load_safe_path_vec_update): Adjust.
11181 (filename_is_in_auto_load_safe_path_vec): Adjust.
11182 (auto_load_objfile_script_1): Adjust.
11183 * build-id.c (build_id_to_debug_bfd): Adjust.
11184 * linux-thread-db.c (thread_db_load_search): Adjust.
11185 * source.c (add_path): Adjust.
11187 * symfile.c (find_separate_debug_file): Adjust.
11188 * utils.c (do_free_char_ptr_vec): Remove.
11189 (make_cleanup_free_char_ptr_vec): Remove.
11191 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11194 * common/pathstuff.c: Conditionally include "<windows.h>".
11196 2018-03-01 Georg Sauthoff <mail@georg.so>
11199 * gcore.in: Quote variables and switch interpreter to bash.
11201 2018-03-01 Tom Tromey <tom@tromey.com>
11203 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11204 assertion. Add assertion for discriminant_index.
11205 (quirk_rust_enum): Use correct base type name in univariant case.
11207 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11209 * record.c (get_call_history_modifiers): Return a
11210 record_print_flags.
11211 (cmd_record_call_history): Adjust.
11212 * record-btrace.c (record_btrace_call_history): Adjust.
11213 (record_btrace_call_history_range): Adjust.
11214 (record_btrace_call_history_from): Adjust.
11215 * target-debug.h (target_debug_print_record_print_flags): New.
11216 * target-delegates.c: Re-generate.
11217 * target.c (target_call_history): Change flags type.
11218 (target_call_history_from): Likewise.
11219 (target_call_history_range): Likewise.
11220 * target.h (struct target_ops) <target_call_history>: Likewise.
11221 (target_call_history_from): Likewise.
11222 (target_call_history_range): Likewise.
11224 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11225 Simon Marchi <simon.marchi@polymtl.ca>
11227 * common/common-utils.c: Include "sys/stat.h".
11228 (is_regular_file): Move here from "source.c"; change return
11230 * common/common-utils.h (is_regular_file): New prototype.
11231 * common/pathstuff.c (contains_dir_separator): New function.
11232 * common/pathstuff.h (contains_dir_separator): New prototype.
11233 * source.c: Don't include "sys/stat.h".
11234 (is_regular_file): Move to "common/common-utils.c".
11236 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11238 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11239 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11240 * auto-load.c: Include "common/pathstuff.h".
11241 * common/common-def.h (current_directory): Move here.
11242 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11244 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11246 * common/pathstuff.c: New file.
11247 * common/pathstuff.h: New file.
11248 * compile/compile.c: Include "common/pathstuff.h".
11249 * defs.h (current_directory): Move to "common/common-defs.h".
11250 * dwarf2read.c: Include "common/pathstuff.h".
11251 * exec.c: Likewise.
11252 * guile/scm-safe-call.c: Likewise.
11253 * linux-thread-db.c: Likewise.
11254 * main.c: Likewise.
11255 * nto-tdep.c: Likewise.
11256 * objfiles.c: Likewise.
11257 * source.c: Likewise.
11258 * symtab.c: Likewise.
11259 * utils.c: Include "common/pathstuff.h".
11260 (gdb_realpath): Move to "common/pathstuff.c".
11261 (gdb_realpath_keepfile): Likewise.
11262 (gdb_abspath): Likewise.
11263 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11264 (gdb_realpath_keepfile): Likewise.
11265 (gdb_abspath): Likewise.
11267 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11269 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11270 wildcard process pid for super_resume for kernels with a
11273 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11275 * compile/compile.c (get_args): Add additional comments
11276 explaining function.
11278 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11279 Tom Tromey <tom@tromey.com>
11281 * target.h (memory_write_request_s): Remove typedef. Don't define
11283 (target_write_memory_blocks): Change argument to std::vector.
11284 (struct memory_write_request): Add constructor.
11285 * target-memory.c (compare_block_starting_address): Return bool.
11286 Change argument types.
11287 (claim_memory): Change arguments to use std::vector.
11288 (split_regular_and_flash_blocks, blocks_to_erase)
11289 (compute_garbled_blocks): Likewise.
11290 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11291 (target_write_memory_blocks): Change argument to std::vector.
11292 * symfile.c (struct load_section_data): Add constructor and
11293 destructor. Use std::vector for "requests".
11294 (struct load_progress_data): Add initializers.
11295 (load_section_callback): Update. Use "new".
11296 (clear_memory_write_data): Remove.
11297 (generic_load): Update.
11299 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11301 * arch/aarch64.h: Use common/tdesc.h.
11303 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11305 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11306 architecture with a 64-bit ABI.
11308 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11310 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11311 ahead of target description loading.
11313 2018-02-26 Tom Tromey <tom@tromey.com>
11315 * stack.c (backtrace_command_1): Update.
11316 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11318 * python/py-framefilter.c (py_print_frame)
11319 (gdbpy_apply_frame_filter): Change type of "flags".
11320 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11322 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11323 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11324 * extension.h (enum frame_filter_flag): Rename from
11325 frame_filter_flags.
11326 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11327 (apply_ext_lang_frame_filter): Change type of "flags".
11328 * extension.c (apply_ext_lang_frame_filter): Change type of
11330 * extension-priv.h (struct extension_language_ops)
11331 <apply_frame_filter>: Change type of "flags".
11333 2018-02-26 Tom Tromey <tom@tromey.com>
11336 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11337 off-by-one in py_end computation.
11338 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11340 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11343 2018-02-26 Tom Tromey <tom@tromey.com>
11345 * dwarf2read.c (struct variant_field): New.
11346 (struct nextfield) <variant>: New field.
11347 (dwarf2_add_field): Handle DW_TAG_variant_part.
11348 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11349 discriminated union.
11350 (read_structure_type): Handle DW_TAG_variant_part.
11351 (handle_struct_member_die): New function, extracted from
11352 process_structure_scope. Handle DW_TAG_variant.
11353 (process_structure_scope): Handle discriminated unions. Call
11354 handle_struct_member_die.
11356 2018-02-26 Tom Tromey <tom@tromey.com>
11358 * rust-lang.h (rust_last_path_segment): Declare.
11359 * rust-lang.c (rust_last_path_segment): Now public. Change
11361 (struct disr_info): Remove.
11362 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11363 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11364 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11365 (rust_enum_p, rust_enum_variant): New function.
11366 (rust_underscore_fields): Remove "offset" parameter.
11367 (rust_print_enum): New function.
11368 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11369 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11370 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11372 (rust_internal_print_type): New function, from rust_print_type.
11374 (rust_print_type): Call rust_internal_print_type.
11375 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11376 Update enum handling.
11377 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11378 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11379 (rust_union_quirks): New functions.
11380 (process_full_comp_unit, process_full_type_unit): Call
11382 (process_structure_scope): Update rust_unions if necessary.
11384 2018-02-26 Tom Tromey <tom@tromey.com>
11386 * value.h (value_union_variant): Declare.
11387 * valops.c (value_union_variant): New function.
11388 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11389 (struct discriminant_info): New.
11390 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11392 (struct main_type) <flag_discriminated_union>: New field.
11394 2018-02-26 Tom Tromey <tom@tromey.com>
11396 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11397 unittests/unpack-selftests.c.
11398 * unittests/unpack-selftests.c: New file.
11399 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11401 2018-02-26 Yao Qi <yao.qi@linaro.org>
11403 * dwarf2read.c (struct partial_die_info) <read>: New method.
11404 (read_partial_die): Remove the declaration.
11405 (load_partial_dies): Update.
11406 (partial_die_info::partial_die_info):
11407 (read_partial_die): Change it to partial_die_info::read.
11409 2018-02-26 Yao Qi <yao.qi@linaro.org>
11411 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11412 (fixup_partial_die): Remove declaration.
11413 (scan_partial_symbols): Update.
11414 (partial_die_parent_scope): Likewise.
11415 (partial_die_full_name): Likewise.
11416 (fixup_partial_die): Change it to partial_die_info::fixup.
11418 2018-02-26 Yao Qi <yao.qi@linaro.org>
11420 * dwarf2read.c (read_partial_die): Update the declaration.
11421 (load_partial_dies): Caller update.
11422 (read_partial_die): Remove one argument abbrev_len.
11424 2018-02-26 Yao Qi <yao.qi@linaro.org>
11426 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11427 assignment operator.
11428 (load_partial_dies): Use ctor and copy ctor.
11429 (read_partial_die): Update.
11430 (dwarf2_cu::find_partial_die): Use ctor.
11432 2018-02-26 Yao Qi <yao.qi@linaro.org>
11434 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11435 (find_partial_die_in_comp_unit): Change it to
11436 dwarf2_cu::find_partial_die.
11437 (find_partial_die): Update.
11439 2018-02-26 Yao Qi <yao.qi@linaro.org>
11441 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11444 2018-02-26 Yao Qi <yao.qi@linaro.org>
11446 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11448 2018-02-26 Alan Hayward <alan.hayward@arm.com>
11450 * arch/amd64.h: Use common/tdesc.h.
11451 * arch/i386.c: Likewise.
11452 * arch/i386.h: Likewise.
11453 * arch/tic6x.c: Likewise.
11454 * arch/tdesc.h: Move file from here...
11455 * common/tdesc.h: ...to here.
11456 * features/aarch64-core.c: Regenerate.
11457 * features/aarch64-fpu.c: Regenerate.
11458 * features/i386/32bit-avx.c: Regenerate.
11459 * features/i386/32bit-avx512.c: Regenerate.
11460 * features/i386/32bit-core.c: Regenerate.
11461 * features/i386/32bit-linux.c: Regenerate.
11462 * features/i386/32bit-mpx.c: Regenerate.
11463 * features/i386/32bit-pkeys.c: Regenerate.
11464 * features/i386/32bit-sse.c: Regenerate.
11465 * features/i386/64bit-avx.c: Regenerate.
11466 * features/i386/64bit-avx512.c: Regenerate.
11467 * features/i386/64bit-core.c: Regenerate.
11468 * features/i386/64bit-linux.c: Regenerate.
11469 * features/i386/64bit-mpx.c: Regenerate.
11470 * features/i386/64bit-pkeys.c: Regenerate.
11471 * features/i386/64bit-segments.c: Regenerate.
11472 * features/i386/64bit-sse.c: Regenerate.
11473 * features/i386/x32-core.c: Regenerate.
11474 * features/tic6x-c6xp.c: Regenerate.
11475 * features/tic6x-core.c: Regenerate.
11476 * features/tic6x-gp.c: Regenerate.
11477 * target-descriptions.c: Use common/tdesc.h.
11478 * target-descriptions.h: Likewise.
11480 2018-02-24 Tom Tromey <tom@tromey.com>
11482 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11483 (try_thread_db_load_from_dir, thread_db_load_search): Use
11485 (info_auto_load_libthread_db_compare): Return bool. Change
11487 (info_auto_load_libthread_db): Use std::vector, std::string.
11490 2018-02-24 Tom Tromey <tom@tromey.com>
11492 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11494 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11496 * gdbarch.c: Rebuild.
11497 * gdbarch.h: Rebuild.
11498 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11499 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11500 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11503 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11505 * gdbtypes.h (sect_offset): Change type to uint64_t.
11506 (sect_offset_str): New function.
11507 * dwarf2read.c (create_addrmap_from_aranges): Use
11509 (error_check_comp_unit_head): Likewise.
11510 (create_debug_type_hash_table): Likewise.
11511 (read_cutu_die_from_dwo): Likewise.
11512 (init_cutu_and_read_dies): Likewise.
11513 (init_cutu_and_read_dies_no_follow): Likewise.
11514 (process_psymtab_comp_unit_reader): Likewise.
11515 (partial_die_parent_scope): Likewise.
11516 (peek_die_abbrev): Likewise.
11517 (process_queue): Likewise.
11518 (dwarf2_physname): Likewise.
11519 (read_namespace_alias): Likewise.
11520 (read_import_statement): Likewise.
11521 (create_dwo_cu_reader): Likewise.
11522 (create_cus_hash_table): Likewise.
11523 (lookup_dwo_cutu): Likewise.
11524 (inherit_abstract_dies): Likewise.
11525 (read_func_scope): Likewise.
11526 (read_call_site_scope): Likewise.
11527 (dwarf2_add_member_fn): Likewise.
11528 (read_common_block): Likewise.
11529 (read_module_type): Likewise.
11530 (read_typedef): Likewise.
11531 (read_subrange_type): Likewise.
11532 (load_partial_dies): Likewise.
11533 (read_partial_die): Likewise.
11534 (find_partial_die): Likewise.
11535 (read_str_index): Likewise.
11536 (dwarf2_string_attr): Likewise.
11537 (build_error_marker_type): Likewise.
11538 (lookup_die_type): Likewise.
11539 (dump_die_shallow): Likewise.
11540 (follow_die_ref): Likewise.
11541 (dwarf2_fetch_die_loc_sect_off): Likewise.
11542 (dwarf2_fetch_constant_bytes): Likewise.
11543 (follow_die_sig): Likewise.
11544 (get_signatured_type): Likewise.
11545 (get_DW_AT_signature_type): Likewise.
11546 (dwarf2_find_containing_comp_unit): Likewise.
11547 (set_die_type): Likewise.
11549 2018-02-21 John Baldwin <jhb@FreeBSD.org>
11551 * arch/aarch64.c: Include "common-defs.h".
11552 * arch/amd64.c: Likewise.
11553 * arch/i386.c: Likewise.
11555 2018-02-21 Tom Tromey <tom@tromey.com>
11557 * value.h: (extract_field_op): Update.
11558 * eval.c (extract_field_op): Return a const char *.
11559 * expression.h (parse_expression_for_completion): Update.
11560 * completer.c (complete_expression): Update.
11561 (add_struct_fields): Make fieldname const.
11562 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11563 (mark_completion_tag, parse_exp_in_context_1): Update.
11564 (parse_expression_for_completion): Change "name" to
11565 unique_xmalloc_ptr*.
11567 2018-02-21 Tom Tromey <tom@tromey.com>
11569 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11571 2018-02-21 Yao Qi <yao.qi@linaro.org>
11573 * avr-tdep.c (avr_read_pc): Change parameter type to
11575 * gdbarch.sh (read_pc): Likewise.
11576 * gdbarch.c: Re-generated.
11577 * gdbarch.h: Re-generated.
11578 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11580 * ia64-tdep.c (ia64_read_pc): Likewise.
11581 * mips-tdep.c (mips_read_pc): Likewise.
11582 * spu-tdep.c (spu_read_pc): Likewise.
11584 2018-02-21 Yao Qi <yao.qi@linaro.org>
11586 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11587 * regcache-dump.c: New file.
11588 * regcache.c: Move register_dump to regcache-dump.c.
11589 (maintenance_print_registers): Likewise.
11590 (maintenance_print_raw_registers): Likewise.
11591 (maintenance_print_cooked_registers): Likewise.
11592 (maintenance_print_register_groups): Likewise.
11593 (maintenance_print_remote_registers): Likewise.
11594 (_initialize_regcache): Likewise.
11595 * regcache.h (register_dump): Moved from regcache.c.
11597 2018-02-21 Yao Qi <yao.qi@linaro.org>
11599 * regcache.c (regcache::regcache): Update.
11600 (regcache::invalidate): Move it to detached_regcache::invalidate.
11601 (get_thread_arch_aspace_regcache): Update.
11602 (regcache::raw_update): Update.
11603 (regcache::cooked_read): Remove some code.
11604 (regcache::cooked_read_value): Likewise.
11605 (regcache::raw_write): Remove assert on m_readonly_p.
11606 (regcache::raw_supply_integer): Move it to
11607 detached_regcache::raw_supply_integer.
11608 (regcache::raw_supply_zeroed): Likewise.
11609 * regcache.h (detached_regcache) <raw_supply_integer>: New
11611 <raw_supply_zeroed, invalidate>: Likewise.
11612 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11613 <invalidate>: Likewise.
11614 <m_readonly_p>: Removed.
11616 2018-02-21 Yao Qi <yao.qi@linaro.org>
11618 * infcmd.c (get_return_value): Let stop_regs point to
11619 get_current_regcache.
11620 * regcache.c (regcache::regcache): Remove.
11621 (register_dump_reg_buffer): New class.
11622 (regcache_print): Adjust.
11623 * regcache.h (regcache): Remove constructors.
11625 2018-02-21 Yao Qi <yao.qi@linaro.org>
11627 * regcache.c (class register_dump): New class.
11628 (register_dump_regcache, register_dump_none): New class.
11629 (register_dump_remote, register_dump_groups): New class.
11630 (regcache_print): Update.
11631 * regcache.h (regcache_dump_what): Move it to regcache.c.
11632 (regcache) <dump>: Remove.
11634 2018-02-21 Yao Qi <yao.qi@linaro.org>
11636 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11638 (jit_unwind_reg_set_impl): Call raw_supply.
11639 (jit_frame_sniffer): Use reg_buffer_rw.
11640 * record-full.c (record_full_core_regbuf): Change its type.
11641 (record_full_core_open_1): Use reg_buffer_rw.
11642 (record_full_close): Likewise.
11643 (record_full_core_fetch_registers): Use regcache->raw_supply.
11644 (record_full_core_store_registers): Likewise.
11645 * regcache.c (regcache::get_register_status): Move it to
11647 (regcache_raw_set_cached_value): Remove.
11648 (regcache::raw_set_cached_value): Remove.
11649 (regcache::raw_write): Call raw_supply.
11650 (regcache::raw_supply): Move it to reg_buffer_rw.
11651 * regcache.h (regcache_raw_set_cached_value): Remove.
11652 (reg_buffer_rw): New class.
11654 2018-02-21 Yao Qi <yao.qi@linaro.org>
11656 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11657 readonly_detached_regcache.
11658 (dummy_frame_prev_register): Use regcache->cooked_read.
11659 * frame.c (frame_save_as_regcache): Change return type.
11660 (frame_pop): Update.
11661 * frame.h (frame_save_as_regcache): Update declaration.
11662 * inferior.h (get_infcall_suspend_state_regcache): Update
11664 * infrun.c (infcall_suspend_state) <registers>: use
11665 readonly_detached_regcache.
11666 (save_infcall_suspend_state): Don't use regcache_dup.
11667 (get_infcall_suspend_state_regcache): Change return type.
11668 * linux-fork.c (struct fork_info) <savedregs>: Change to
11669 readonly_detached_regcache.
11671 (fork_save_infrun_state): Don't use regcache_dup.
11672 (info_checkpoints_command): Adjust.
11673 * mi/mi-main.c (register_changed_p): Update declaration.
11674 (mi_cmd_data_list_changed_registers): Use
11675 readonly_detached_regcache.
11676 (register_changed_p): Change parameter type to
11677 readonly_detached_regcache.
11678 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11679 readonly_detached_regcache.
11680 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11681 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11683 (regcache::save): Move it to reg_buffer.
11684 (regcache::restore): Change parameter type.
11685 (regcache_dup): Remove.
11686 * regcache.h (reg_buffer) <save>: New method.
11687 (readonly_detached_regcache): New class.
11688 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11689 readonly_detached_regcache.
11690 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11692 2018-02-21 Yao Qi <yao.qi@linaro.org>
11694 * frame.c (frame_save_as_regcache): Use regcache method save.
11695 (frame_pop): Use regcache method restore.
11696 * infrun.c (restore_infcall_suspend_state): Likewise.
11697 * linux-fork.c (fork_load_infrun_state): Likewise.
11698 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11700 * regcache.c (regcache_save): Remove.
11701 (regcache::restore): More asserts.
11702 (regcache_cpy): Remove.
11703 * regcache.h (regcache_save): Remove the declaration.
11704 (regcache::restore): Move from private to public.
11705 Remove the friend declaration of regcache_cpy.
11706 (regcache_cpy): Remove declaration.
11708 2018-02-21 Yao Qi <yao.qi@linaro.org>
11710 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11711 parameter type to 'readable_regcache *'.
11712 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11713 * arm-tdep.c (arm_neon_quad_read): Likewise.
11714 (arm_pseudo_read): Likewise.
11715 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11716 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11717 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11718 * gdbarch.c: Re-generated.
11719 * gdbarch.h: Re-generated.
11720 * gdbarch.sh (pseudo_register_read): Change parameter type to
11721 'readable_regcache *'.
11722 (pseudo_register_read_value): Likewise.
11723 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11724 (h8300_pseudo_register_read): Likewise.
11725 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11726 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11727 (i386_pseudo_register_read_into_value): Likewise.
11728 (i386_pseudo_register_read_value): Likewise.
11729 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11731 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11732 * m32c-tdep.c (m32c_raw_read): Likewise.
11733 (m32c_read_flg): Likewise.
11734 (m32c_banked_register): Likewise.
11735 (m32c_banked_read): Likewise.
11736 (m32c_sb_read): Likewise.
11737 (m32c_part_read): Likewise.
11738 (m32c_cat_read): Likewise.
11739 (m32c_r3r2r1r0_read): Likewise.
11740 (m32c_pseudo_register_read): Likewise.
11741 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11742 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11743 (mep_pseudo_cr64_read): Likewise.
11744 (mep_pseudo_register_read): Likewise.
11745 * mips-tdep.c (mips_pseudo_register_read): Likewise.
11746 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11747 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11748 * regcache.c (regcache::raw_read): Move it to readable_regcache.
11749 (regcache::cooked_read): Likewise.
11750 (regcache::cooked_read_value): Likewise.
11751 (regcache_cooked_read_signed):
11752 (regcache::cooked_read): Likewise.
11753 * regcache.h (readable_regcache): New class.
11754 (regcache): Inherit readable_regcache. Move some methods to
11756 * rl78-tdep.c (rl78_pseudo_register_read): Change
11757 parameter type to 'readable_regcache *'.
11758 * rs6000-tdep.c (do_regcache_raw_read): Remove.
11759 (e500_pseudo_register_read): Change parameter type to
11760 'readable_regcache *'.
11761 (dfp_pseudo_register_read): Likewise.
11762 (vsx_pseudo_register_read): Likewise.
11763 (efpr_pseudo_register_read): Likewise.
11764 * s390-tdep.c (s390_pseudo_register_read): Likewise.
11765 * sh-tdep.c (sh_pseudo_register_read): Likewise.
11766 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
11767 (sh64_pseudo_register_read): Likewise.
11768 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11769 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11770 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11771 (spu_pseudo_register_read): Likewise.
11772 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11773 (xtensa_pseudo_register_read): Likewise.
11775 2018-02-21 Yao Qi <yao.qi@linaro.org>
11777 * regcache.c (regcache::regcache): Call reg_buffer ctor.
11778 (regcache::arch): Move it to reg_buffer::arch.
11779 (regcache::register_buffer): Likewise.
11780 (regcache::assert_regnum): Likewise.
11781 (regcache::num_raw_registers): Likewise.
11782 * regcache.h (reg_buffer): New class.
11783 (regcache): Inherit reg_buffer.
11785 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
11787 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
11788 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
11790 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
11792 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
11794 2018-02-19 Alan Hayward <alan.hayward@arm.com>
11796 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
11797 (SFILES): Remove common/*.c files.
11798 (COMMON_OBS): Remove some *.o files built from common/*.c files.
11799 * common/common.host: Add common reference.
11800 * configure.ac: Likewise.
11801 * configure: Regenerate.
11803 2018-02-16 Yao Qi <yao.qi@linaro.org>
11805 * block.c (block_namespace_info): Inherit allocate_on_obstack.
11806 (block_initialize_namespace): Use new.
11807 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
11808 (dwarf2_free_objfile): Use delete.
11809 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11810 (copy_type_recursive): Use new.
11811 * gdb_obstack.h (allocate_on_obstack): New.
11813 2018-02-15 Yao Qi <yao.qi@linaro.org>
11816 * inferior.c (exit_inferior_1): Reset inf->control.
11818 2018-02-15 Joel Brobecker <brobecker@adacore.com>
11820 * ada-lang.c (ada_to_fixed_value_create): Delete advance
11823 2018-02-14 Pedro Alves <palves@redhat.com>
11825 * frame-unwind.c (frame_unwind_try_unwinder): Always call
11826 frame_cleanup_after_sniffer on exception.
11828 2018-02-14 Tom Tromey <tom@tromey.com>
11830 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
11832 (solib_bfd_open): Make pathname const.
11833 * solib.c (solib_bfd_open): Make pathname const.
11834 * solib-spu.c (spu_bfd_fopen): Make name const.
11835 (spu_bfd_open): Make pathname const.
11836 * solib-darwin.c (darwin_bfd_open): Make pathname const.
11837 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
11839 2018-02-14 Tom Tromey <tom@tromey.com>
11841 * symfile.c (symfile_bfd_open): Update.
11842 * source.h (openp, source_full_path_of, find_and_open_source):
11843 Change argument type to unique_xmalloc_ptr.
11844 * source.c (openp): Take a unique_xmalloc_ptr.
11845 (source_full_path_of, find_and_open_source): Likewise.
11846 (open_source_file, symtab_to_fullname): Update.
11847 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
11848 unique_xmalloc_ptr.
11849 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
11850 (exec_file_find): Update.
11851 * psymtab.c (psymtab_to_fullname): Update.
11852 * nto-tdep.h (nto_find_and_open_solib): Update.
11853 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
11854 unique_xmalloc_ptr.
11855 * exec.c (exec_file_attach): Update.
11856 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
11857 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
11859 2018-02-14 Tom Tromey <tom@tromey.com>
11861 * solib.c: Include source.h.
11862 * nto-tdep.c: Include source.h.
11863 * mi/mi-cmd-env.c: Include source.h.
11864 * infcmd.c: Include source.h.
11865 * exec.c: Include source.h.
11866 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
11867 (add_path, directory_switch, source_path, init_source_path): Move
11869 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
11870 (add_path, directory_switch, source_path, init_source_path):
11873 2018-02-14 Tom Tromey <tom@tromey.com>
11875 * solist.h (exec_file_find, solib_find): Return
11876 unique_xmalloc_ptr.
11877 (solib_bfd_fopen): Take a const char *.
11878 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
11879 (exec_file_find, solib_find): Likewise.
11880 (solib_bfd_fopen): Do not take ownership of "pathname".
11881 (solib_bfd_open): Use unique_xmalloc_ptr.
11882 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
11883 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
11884 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
11885 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
11887 2018-02-14 Joel Brobecker <brobecker@adacore.com>
11889 * ada-lang.c (name_match_type_from_name): Remove reference to
11890 ada_name_for_lookup in function's documentation.
11891 * ada-lang.h (ada_name_for_lookup): Delete declaration.
11893 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11895 * defs.h (enum openp_flags): New enum.
11896 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
11897 Move to enum openp_flags.
11898 (openp_flags): New enum flags.
11899 (openp): Change parameter type to openp_flags.
11900 * source.c (openp): Change parameter type to openp_flags.
11901 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
11902 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
11904 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11906 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
11909 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
11911 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
11913 (class dwarf2_queue_guard): ...the destructor of this new class.
11914 (dw2_do_instantiate_symtab): Create instance of the new class
11915 dwarf2_queue_guard, remove cleanup.
11917 2018-02-09 Tom Tromey <tom@tromey.com>
11919 * source.c (find_source_lines): Don't reference past the end of
11922 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11924 * remote.c (remote_btrace_maybe_reopen): Change error message.
11925 * btrace.c (btrace_enable): Likewise.
11926 (parse_xml_btrace): Likewise.
11927 (parse_xml_btrace_conf): Likewise.
11929 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11931 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
11932 (linux_enable_pt, linux_enable_bts): Call
11933 diagnose_perf_event_open_fail.
11935 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11937 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
11938 Remove parameter and change return type. Update callers. Move it.
11939 (linux_enable_bts, linux_enable_pt): Improve error message.
11940 (linux_enable_pt): Remove zero buffer size check.
11941 (linux_enable_btrace): Improve error messages. Remove NULL return
11944 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11946 * btrace.c (btrace_enable): Remove target_supports_btrace call.
11947 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
11948 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
11949 (linux_supports_pt, linux_supports_btrace): Remove.
11950 (linux_enable_bts): Call cpu_supports_bts.
11951 * nat/linux-btrace.h (linux_supports_btrace): Remove.
11952 * remote.c (remote_supports_btrace): Remove.
11953 (init_remote_ops): Remove remote_supports_btrace.
11954 * target-delegates.c: Regenerated.
11955 * target.c (target_supports_btrace): Remove.
11956 * target.h (target_ops) <to_supports_btrace>: Remove
11957 (target_supports_btrace): Remove.
11958 * x86-linux-nat.c (x86_linux_create_target): Remove
11959 linux_supports_btrace.
11961 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11963 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
11965 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
11966 exception and use message in own exception.
11968 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11970 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
11971 (perf_event_pt_event_type): Use gdb_file_up.
11972 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
11973 scoped_fd, and scoped_mmap.
11975 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11977 * common/scoped_mmap.h: New.
11978 * unittests/scoped_mmap-selftest.c: New.
11979 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11980 unittests/scoped_mmap-selftest.c.
11982 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11984 * common/scoped_fd.h: New.
11985 * unittests/scoped_fd-selftest.c: New.
11986 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11987 unittests/scoped_fd-selftest.c.
11989 2018-02-09 Tom Tromey <tom@tromey.com>
11991 * auto-load.c (auto_load_section_scripts): Use
11992 gdb::unique_xmalloc_ptr.
11994 2018-02-09 Tom Tromey <tom@tromey.com>
11996 * auto-load.c (execute_script_contents): Use std::string.
11998 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12000 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12001 Python function, rather than a new command.
12003 2018-02-08 Tom Tromey <tom@tromey.com>
12005 * solib.c (solib_find_1): Use std::string.
12006 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12008 2018-02-08 Tom Tromey <tom@tromey.com>
12010 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12012 2018-02-08 Tom Tromey <tom@tromey.com>
12014 * source.c (find_source_lines): Use gdb::def_vector.
12016 2018-02-08 Tom Tromey <tom@tromey.com>
12018 * macrocmd.c (struct temporary_macro_definition): New.
12019 (macro_define_command): Use temporary_macro_definition. Remove
12021 (free_macro_definition_ptr): Remove.
12023 2018-02-08 Tom Tromey <tom@tromey.com>
12025 * macroexp.c (maybe_expand): Use std::string.
12027 2018-02-08 Tom Tromey <tom@tromey.com>
12029 * macroexp.c (struct macro_buffer): Add initializers for some
12031 (init_buffer, init_shared_buffer, free_buffer)
12032 (free_buffer_return_text): Remove.
12033 (macro_buffer): New constructors.
12034 (~macro_buffer): New destructor.
12035 (macro_buffer::set_shared): New method.
12036 (macro_buffer::resize_buffer, macro_buffer::appendc)
12037 (macro_buffer::appendmem): Now methods, not free functions.
12038 (set_token, append_tokens_without_splicing, stringify)
12039 (macro_stringify): Update.
12040 (gather_arguments): Change return type. Remove argc_p argument,
12041 add args_ptr argument. Use std::vector.
12042 (substitute_args): Remove argc argument. Accept std::vector.
12043 (expand): Update. Use std::vector.
12044 (scan, macro_expand, macro_expand_next): Update.
12046 2018-02-08 Tom Tromey <tom@tromey.com>
12048 * symtab.c (default_collect_symbol_completion_matches_break_on):
12049 Use unique_xmalloc_ptr.
12050 * macroscope.h: (sal_macro_scope, user_macro_scope)
12051 (default_macro_scope): Return unique_xmalloc_ptr.
12052 * macroscope.c (sal_macro_scope, user_macro_scope)
12053 (default_macro_scope): Return unique_xmalloc_ptr.
12054 * macroexp.h (macro_expand, macro_expand_once): Return
12055 unique_xmalloc_ptr.
12056 * macroexp.c (macro_expand, macro_expand_once): Return
12057 unique_xmalloc_ptr.
12058 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12059 (info_macro_command, info_macros_command): Use
12060 unique_xmalloc_ptr.
12061 * compile/compile-c-support.c (write_macro_definitions): Use
12062 unique_xmalloc_ptr.
12063 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12065 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12067 * value.c (value_static_field): Assign field type instead of
12068 containing type when returning an optimized out value.
12070 2018-02-06 Yao Qi <yao.qi@linaro.org>
12072 * ft32-tdep.c (ft32_read_pc): Remove.
12073 (ft32_write_pc): Remove.
12074 (ft32_gdbarch_init): Update.
12075 * m32r-tdep.c (m32r_read_pc): Remove.
12076 (m32r_gdbarch_init): Update.
12077 * mep-tdep.c (mep_read_pc): Remove.
12078 (mep_gdbarch_init): Update.
12079 * microblaze-tdep.c (microblaze_write_pc): Remove.
12080 (microblaze_gdbarch_init): Update.
12081 * mn10300-tdep.c (mn10300_read_pc): Remove.
12082 (mn10300_write_pc): Remove.
12083 (mn10300_gdbarch_init): Update.
12084 * moxie-tdep.c (moxie_read_pc): Remove.
12085 (moxie_write_pc): Remove.
12086 (moxie_gdbarch_init): Update.
12088 2018-02-06 Yao Qi <yao.qi@linaro.org>
12090 * expprint.c (print_subexp_standard): Handle
12091 OP_F77_UNDETERMINED_ARGLIST.
12092 (dump_subexp_body_standard): Likewise.
12094 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12096 * target-descriptions.c (tdesc_element_visitor) Add empty
12098 (tdesc_type): Move make_gdb_type from here.
12099 (tdesc_type_builtin): Likewise.
12100 (tdesc_type_vector): Likewise.
12101 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12102 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12103 (make_gdb_type_union): Likewise.
12104 (make_gdb_type_flags): Likewise.
12105 (make_gdb_type_enum): Likewise.
12106 (make_gdb_type): New function.
12107 (tdesc_register_type): Use static make_gdb_type.
12109 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12111 * infcmd.c (default_print_one_register_info): Align natural-format
12112 column values consistently one under another.
12113 (pad_to_column): New function.
12115 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12117 * dwarf2read.c (dwarf2_physname): Move commment.
12119 2018-02-01 Leszek Swirski <leszeks@google.com>
12121 * varobj.c (varobj_formatted_print_options): Allow recursive
12122 pretty printing if pretty printing is enabled.
12124 2018-02-01 Leszek Swirski <leszeks@google.com>
12126 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12127 names after a structop as a filename.
12129 2018-02-01 Yao Qi <yao.qi@linaro.org>
12131 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12132 (arm_record_coproc_data_proc): Likewise.
12134 2018-02-01 Yao Qi <yao.qi@linaro.org>
12136 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12138 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12140 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12141 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12143 2018-01-31 Pedro Alves <palves@redhat.com>
12145 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12146 * inflow.c (child_terminal_save_inferior): Wrap reference to
12147 tcgetpgrp in HAVE_TERMIOS_H.
12148 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12150 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12151 always iterate over all inferiors.
12152 (gdbsim_cntrl_c): Adjust.
12153 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12155 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12157 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12158 index type is objfile-owned if the element type is as well.
12160 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12164 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12166 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12167 "features/s390x-linux64.c".
12168 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12169 s390_linux32 and s390x_linux64.
12170 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12172 * s390-tdep.c: Include "features/s390-linux32.c" and
12173 "features/s390x-linux64.c".
12174 (s390_tdesc_valid): Add check for tdesc_has_registers.
12175 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12176 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12177 tdesc_s390x_linux64.
12178 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12179 tdesc_s390x_linux64 to...
12180 * s390-tdep.h: ...here.
12182 2018-01-30 Pedro Alves <palves@redhat.com>
12185 * config.in, configure: Regenerate.
12186 * configure.ac: Check for getpgid.
12187 * go32-nat.c (go32_pass_ctrlc): New.
12188 (go32_target): Install it.
12189 * inf-child.c (inf_child_target): Install
12190 child_terminal_save_inferior, child_pass_ctrlc and
12192 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12193 (inf_ptrace_target): No longer install it.
12194 * infcmd.c (interrupt_target_1): Adjust.
12195 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12196 (child_interrupt): Declare.
12197 (inferior::terminal_state): New.
12198 * inflow.c (struct terminal_info): Update comments.
12199 (inferior_process_group): Delete.
12200 (terminal_is_ours): Delete.
12201 (gdb_tty_state): New.
12202 (child_terminal_init): Adjust.
12203 (is_gdb_terminal, sharing_input_terminal_1)
12204 (sharing_input_terminal): New functions.
12205 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12206 Set the process's actual process group in the foreground if
12207 possible. Handle is_ours_for_output/is_ours distinction. Don't
12208 mark terminal as the inferior's if not sharing GDB's terminal.
12209 Don't check attach_flag.
12210 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12211 pass down a target_terminal_state.
12212 (child_terminal_save_inferior): New, factored out from ...
12213 (child_terminal_ours_1): ... this. Handle
12214 target_terminal_state::is_ours_for_output.
12215 (child_interrupt, child_pass_ctrlc): New.
12216 (inflow_inferior_exit): Clear the inferior's terminal_state.
12217 (copy_terminal_info): Copy the inferior's terminal state.
12218 (_initialize_inflow): Remove reference to terminal_is_ours.
12219 * inflow.h (inferior_process_group): Delete.
12220 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12221 * procfs.c (procfs_target): Don't install procfs_interrupt.
12222 (procfs_interrupt): Delete.
12223 * remote.c (remote_serial_quit_handler): Adjust.
12224 (remote_interrupt): Remove ptid parameter. Adjust.
12225 * target-delegates.c: Regenerate.
12226 * target.c: Include "terminal.h".
12227 (target_terminal::terminal_state): Rename to ...
12228 (target_terminal::m_terminal_state): ... this.
12229 (target_terminal::init): Adjust.
12230 (target_terminal::inferior): Adjust to per-inferior
12232 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12233 (target_terminal::ours, target_terminal::ours_for_output): Use
12234 target_terminal_is_ours_kind.
12235 (target_interrupt): Remove ptid parameter. Adjust.
12236 (default_target_pass_ctrlc): Adjust.
12237 * target.h (target_ops::to_terminal_save_inferior): New field.
12238 (target_ops::to_interrupt): Remove ptid_t parameter.
12239 (target_interrupt): Remove ptid_t parameter. Update comment.
12240 (target_pass_ctrlc): Update comment.
12241 * target/target.h (target_terminal_state): New scoped enum,
12242 factored out of ...
12243 (target_terminal::terminal_state): ... here.
12244 (target_terminal::inferior): Update comments.
12245 (target_terminal::restore_inferior): New.
12246 (target_terminal::is_inferior, target_terminal::is_ours)
12247 (target_terminal::is_ours_for_output): Adjust.
12248 (target_terminal::scoped_restore_terminal_state): Adjust to
12249 rename, and call restore_inferior() instead of inferior().
12250 (target_terminal::scoped_restore_terminal_state::m_state): Change
12252 (target_terminal::terminal_state): Rename to ...
12253 (target_terminal::m_terminal_state): ... this and change type.
12255 2018-01-30 Pedro Alves <palves@redhat.com>
12257 * linux-nat.c (wait_for_signal): New function.
12258 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12260 (async_terminal_is_ours)
12261 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12262 (linux_nat_add_target): Don't override
12263 to_terminal_inferior/to_terminal_ours.
12265 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12267 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12269 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12271 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12272 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12273 dwarf2_per_objfile_free here.
12274 (dwarf2_per_objfile_free): Remove.
12275 (_initialize_dwarf2_read): Don't register
12276 dwarf2_per_objfile_free as a registry cleanup.
12278 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12280 Avoid compilation errors in MinGW native builds
12282 The error is triggered by including python-internal.h, and the
12285 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12286 from build-gnulib/import/math.h:27,
12287 from d:/usr/Python26/include/pyport.h:235,
12288 from d:/usr/Python26/include/Python.h:58,
12289 from python/python-internal.h:94,
12290 from python/py-arch.c:24:
12291 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12295 This happens because Python headers define 'hypot' to expand t
12296 '_hypot' in the Windows builds.
12297 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12298 'hypoth'. This avoids a compilation error.
12300 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12302 * MAINTAINERS (Write After Approval): Fix ordering.
12304 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12306 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12308 2018-01-26 Alan Modra <amodra@gmail.com>
12310 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12311 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12312 Remove nop. Make const. Comment.
12313 (powerpc32_plt_stub_so_2): New.
12314 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12315 Correct count. Update uses.
12316 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12317 Move common code reading PLT entry word. Correct
12318 powerpc32_plt_stub PLT address calculation.
12319 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12320 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12321 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12322 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12323 (ppc64_standard_linkage8): Likewise.
12324 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12325 Correct insns description.
12326 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12328 2018-01-24 Pedro Alves <palves@redhat.com>
12330 GCC PR libstdc++/83906
12331 * gdbtypes.c (operator==(const dynamic_prop &,
12332 const dynamic_prop &)): New.
12333 (operator==(const range_bounds &, const range_bounds &)): New.
12334 (check_types_equal): Use them instead of memcmp.
12335 * gdbtypes.h (operator==(const dynamic_prop &,
12336 const dynamic_prop &)): Declare.
12337 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12338 (operator==(const range_bounds &, const range_bounds &)): Declare.
12339 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12341 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12343 * s390-linux-tdep.c (s390_record_address_mask)
12344 (s390_record_calc_disp_common, s390_record_calc_disp)
12345 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12346 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12347 (s390_process_record): Move to s390-tdep.c.
12348 (s390_linux_init_abi_any): Adjust.
12349 * s390-tdep.c (s390_record_address_mask)
12350 (s390_record_calc_disp_common, s390_record_calc_disp)
12351 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12352 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12353 (s390_process_record): Moved from s390-linux-tdep.c
12354 (s390_gdbarch_init): Adjust.
12356 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12358 * s390-linux-nat.c (s390-tdep.h): New include.
12359 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12360 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12361 (ALLDEPFILES): Add s390-tdep.c.
12362 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12363 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12364 * s390-tdep.h: ...this. New file.
12365 * s390-linux-tdep.c (s390-tdep.h): New include.
12366 (_initialize_s390_tdep): Rename to...
12367 (_initialize_s390_linux_tdep): ...this and adjust.
12368 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12369 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12371 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12372 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12373 (s390_is_partial_instruction, s390_software_single_step)
12374 (is_non_branch_ril, s390_displaced_step_copy_insn)
12375 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12376 (s390_prologue_data, s390_addr, s390_store, s390_load)
12377 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12378 (s390_register_call_saved, s390_guess_tracepoint_registers)
12379 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12380 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12381 (s390_pseudo_register_name, s390_pseudo_register_type)
12382 (s390_pseudo_register_read, s390_pseudo_register_write)
12383 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12384 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12385 (s390_addr_bits_remove, s390_address_class_type_flags)
12386 (s390_address_class_type_flags_to_name)
12387 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12388 (s390_function_arg_float, s390_function_arg_vector)
12389 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12390 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12391 (s390_frame_align, s390_register_return_value, s390_return_value)
12392 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12393 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12394 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12395 (s390_trad_frame_prev_register, s390_unwind_cache)
12396 (s390_prologue_frame_unwind_cache)
12397 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12398 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12399 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12400 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12401 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12402 (s390_frame_base_address, s390_local_base_address)
12403 (s390_frame_base, s390_gcc_target_options)
12404 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12405 (s390_validate_reg_range, s390_tdesc_valid)
12406 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12407 * s390-tdep.c: ...this. New file.
12409 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12411 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12412 (s390_process_record, s390_gdbarch_tdep_alloc)
12413 (s390_linux_init_abi_any): Use/set new hook.
12415 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12417 * s390-linux-tdep.c (osabi.h): New include.
12418 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12419 (s390_linux_init_abi_any): New functions.
12420 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12422 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12424 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12425 tdesc_has_registers check
12427 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12429 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12430 (s390_validate_reg_range): New macro.
12431 (s390_gdbarch_init): Adjust.
12433 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12435 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12436 (s390_gdbarch_tdep_alloc): Adjust.
12437 (s390_gdbarch_init): Adjust.
12439 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12441 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12442 <have_tdb>: Change type to bool.
12443 (s390_gdbarch_tdep_alloc): Adjust.
12444 (s390_gdbarch_init): Adjust.
12446 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12448 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12449 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12450 (s390_gdbarch_tdep_alloc): New function.
12451 (s390_gdbarch_init): Allocate tdep at start and use its fields
12452 instead of separate variables.
12454 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12456 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12457 when looking for cached gdbarch and add comment for remaining.
12459 2018-01-22 Pedro Alves <palves@redhat.com>
12460 Sergio Durigan Junior <sergiodj@redhat.com>
12462 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12465 2018-01-22 Maciej W. Rozycki <macro@mips.com>
12467 * MAINTAINERS: Update my company e-mail address.
12469 2018-01-22 Yao Qi <yao.qi@linaro.org>
12471 * regcache.c (cooked_write_test): New function.
12472 (_initialize_regcache): Register the test.
12474 2018-01-22 Yao Qi <yao.qi@linaro.org>
12476 * ia64-tdep.c (ia64_pseudo_register_read): Call
12477 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12478 * m32c-tdep.c (m32c_cat_read): Likewise.
12479 (m32c_r3r2r1r0_read): Likewise.
12480 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12481 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12483 2018-01-22 Yao Qi <yao.qi@linaro.org>
12485 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12486 method raw_read instead of regcache_raw_read.
12487 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12488 * arm-tdep.c (arm_neon_quad_read): Likewise.
12489 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12490 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12491 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12492 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12493 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12494 (i386_pseudo_register_read_into_value): Likewise.
12495 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12496 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12497 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12498 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12499 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12500 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12501 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12502 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12503 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12505 2018-01-22 Yao Qi <yao.qi@linaro.org>
12507 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12508 * configure.tgt: Remove target mt.
12509 * mt-tdep.c: Remove.
12510 * regcache.c (cooked_read_test): Remove the check for mt.
12512 2018-01-22 Yao Qi <yao.qi@linaro.org>
12514 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12515 instead of gdbarch_pseudo_register_read_value.
12517 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12519 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12522 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12524 * linespec.c (create_sals_line_offset): Remove code that preserved
12525 the symtab_and_line's line number.
12527 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12529 * varobj.c (varobj_create): Don't set valid_block when creating a
12532 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12534 * varobj.c (varobj_create): Remove out of date comment.
12536 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12539 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12540 updating innermost block.
12541 * parse.c (innermost_block_tracker::update): Take extra type
12542 parameter, and check types match before updating innermost block.
12543 (write_dollar_variable): Update innermost block for registers.
12544 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12545 (innermost_block_tracker::innermost_block_tracker): Initialise
12547 (innermost_block_tracker::reset): Take type parameter.
12548 (innermost_block_tracker::update): Take type parameter, and pass
12549 type through as needed.
12550 (innermost_block_tracker::m_types): New member.
12551 * varobj.c (varobj_create): Pass type when reseting innermost
12554 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12556 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12557 * ada-lang.c (resolve_subexp): Likewise.
12558 * breakpoint.c (set_breakpoint_condition) Likewise.
12559 (watch_command_1) Likewise.
12560 * c-exp.y (variable): Likewise.
12561 * d-exp.y (PrimaryExpression): Likewise.
12562 * f-exp.y (variable): Likewise.
12563 * go-exp.y (variable): Likewise.
12564 * m2-exp.y (variable): Likewise.
12565 * objfiles.c (objfile::~objfile): Likewise.
12566 * p-exp.y (variable): Likewise.
12567 * parse.c (innermost_block): Change type.
12568 * parser-defs.h (class innermost_block_tracker): New.
12569 (innermost_block): Change to innermost_block_tracker.
12570 * printcmd.c (display_command): Switch to innermost_block API.
12571 (do_one_display): Likewise.
12572 * rust-exp.y (do_one_display): Likewise.
12573 * symfile.c (clear_symtab_users): Likewise.
12574 * varobj.c (varobj_create): Switch to innermost_block API, replace
12575 use of innermost_block with block stored on varobj object.
12577 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12579 * expression.h (innermost_block): Remove declaration.
12580 * varobj.c: Add 'parser-defs.h' include.
12582 2018-01-19 Tom Tromey <tom@tromey.com>
12584 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12585 symbols in the static and global blocks.
12587 2018-01-19 James Clarke <jrtc27@jrtc27.com>
12589 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12590 gdb_ptrace.h, and move including gdb_wait.h ...
12591 * nat/linux-ptrace.h: ... to here.
12593 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12595 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12596 inf_ptrace_detach_success.
12597 (inf_ptrace_detach_success): Add inferior parameter, use it
12598 instead of inferior_ptid, pass it to detach_inferior.
12599 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12601 * inferior.c (detach_inferior): Add overload that takes an
12603 * inferior.h (detach_inferior): Likewise.
12604 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12605 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12606 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12608 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12610 * target.h (struct target_ops) <to_detach>: Add inferior
12612 (target_detach): Likewise.
12613 * target.c (dispose_inferior): Pass inferior down.
12614 (target_detach): Pass inferior down. Assert that it is equal to
12615 the current inferior.
12616 * aix-thread.c (aix_thread_detach): Pass inferior down.
12617 * corefile.c (core_file_command): Pass current_inferior() down.
12618 * corelow.c (core_detach): Add inferior parameter.
12619 * darwin-nat.c (darwin_detach): Likewise.
12620 * gnu-nat.c (gnu_detach): Likewise.
12621 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12622 * infcmd.c (detach_command): Pass current_inferior() down to
12624 * infrun.c (follow_fork_inferior): Pass parent_inf to
12626 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12628 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12629 * linux-thread-db.c (thread_db_detach): Likewise.
12630 * nto-procfs.c (procfs_detach): Likewise.
12631 * procfs.c (procfs_detach): Likewise.
12632 * record.c (record_detach): Likewise.
12633 * record.h (struct inferior): Forward-declare.
12634 (record_detach): Add inferior parameter.
12635 * remote-sim.c (gdbsim_detach): Likewise.
12636 * remote.c (remote_detach_1): Likewise.
12637 (remote_detach): Likewise.
12638 (extended_remote_detach): Likewise.
12639 * sol-thread.c (sol_thread_detach): Likewise.
12640 * target-debug.h (target_debug_print_inferior_p): New macro.
12641 * target-delegates.c: Re-generate.
12642 * top.c (kill_or_detach): Pass inferior down to target_detach.
12643 * windows-nat.c (windows_detach): Add inferior parameter.
12645 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12647 * target.h (struct target_ops) <to_detach>: Remove args
12649 (target_detach): Likewise.
12650 * target.c (dispose_inferior): Adjust.
12651 (target_detach): Remove args parameter, adjust.
12652 * aix-thread.c (aix_thread_detach): Adjust.
12653 * corefile.c (core_file_command): Adjust.
12654 * corelow.c (core_detach): Adjust.
12655 * darwin-nat.c (darwin_detach): Adjust.
12656 * gnu-nat.c (gnu_detach): Adjust.
12657 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12658 * infcmd.c (detach_command): Adjust
12659 * infrun.c (follow_fork_inferior): Adjust.
12660 (handle_vfork_child_exec_or_exit): Adjust.
12661 * linux-fork.c (linux_fork_detach): Remove args parameter.
12662 * linux-fork.h (linux_fork_detach): Likewise.
12663 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12664 * linux-thread-db.c (thread_db_detach): Likewise.
12665 * nto-procfs.c (procfs_detach): Likewise.
12666 * procfs.c (procfs_detach): Likewise.
12667 (do_detach): Remove signo parameter.
12668 * record.c (record_detach): Remove args parameter.
12669 * record.h (record_detach): Likewise.
12670 * remote-sim.c (gdbsim_detach): Likewise.
12671 * remote.c (remote_detach_1): Likewise.
12672 (remote_detach): Likewise.
12673 (extended_remote_detach): Likewise.
12674 * sol-thread.c (sol_thread_detach): Likewise.
12675 * target-delegates.c: Re-generate.
12676 * top.c (struct qt_args) <args>: Remove field.
12677 (kill_or_detach): Don't pass args.
12678 (quit_force): Don't set args.
12679 * windows-nat.c (windows_detach): Remove args parameter.
12681 2018-01-19 Yao Qi <yao.qi@linaro.org>
12683 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12684 (arm_linux_init_abi): Install it.
12686 2018-01-19 Yao Qi <yao.qi@linaro.org>
12688 * osabi.c (gdb_osabi_names): Extend the regexp for
12689 arm-linux-gnueabihf.
12691 2018-01-18 Yao Qi <yao.qi@linaro.org>
12693 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12695 (abbrev_table::add_abbrev): Update.
12696 (abbrev_table::lookup_abbrev): Update.
12698 2018-01-18 Yao Qi <yao.qi@linaro.org>
12700 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12702 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12704 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12707 2018-01-17 Tom Tromey <tom@tromey.com>
12709 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12711 2018-01-17 Tom Tromey <tom@tromey.com>
12713 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12714 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12715 (create_array_type_with_stride): Update.
12716 * dwarf2read.c (set_die_type): Update.
12718 2018-01-17 Tom Tromey <tom@tromey.com>
12720 * dwarf2read.c (delayed_method_info): Remove typedef.
12721 (dwarf2_cu::method_info): Now a std::vector.
12722 (add_to_method_list): Update.
12723 (free_delayed_list): Remove.
12724 (compute_delayed_physnames): Update.
12725 (process_full_comp_unit, process_full_type_unit): Clear the method
12726 list. Remove cleanups.
12727 (psymtab_include_file_name): Add name_holder parameter. Use
12728 unique_xmalloc_ptr.
12729 (dwarf_decode_lines): Update.
12731 2018-01-17 Tom Tromey <tom@tromey.com>
12732 Simon Marchi <simon.marchi@ericsson.com>
12734 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12735 (dwarf2_per_objfile::free_cached_comp_units)
12736 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12737 (init_cutu_and_read_dies_no_follow): Update.
12738 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12739 (dwarf2_cu::~dwarf2_cu): New.
12740 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12741 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12743 2018-01-17 Tom Tromey <tom@tromey.com>
12744 Simon Marchi <simon.marchi@ericsson.com>
12746 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12747 (struct die_reader_specs) <abbrev_table>: New member.
12748 (struct abbrev_table): Add constructor.
12749 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12750 <abbrev_obstack>: Now an auto_obstack.
12751 (abbrev_table_up): New typedef.
12752 (init_cu_die_reader): Add abbrev_table parameter.
12753 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12754 Add result_dwo_abbrev_table.
12755 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12756 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12758 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12760 (skip_children): Update.
12761 (abbrev_table::alloc_abbrev): Rename from
12762 abbrev_table_alloc_abbrev.
12763 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
12764 (abbrev_table::lookup_abbrev): Rename from
12765 abbrev_table_lookup_abbrev.
12766 (abbrev_table_read_table): Return abbrev_table_up.
12767 (abbrev_table_free, abbrev_table_free_cleanup)
12768 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
12769 (load_partial_dies): Update.
12771 2018-01-17 Tom Tromey <tom@tromey.com>
12773 * dwarf2read.c (dwarf2_compute_name): Update comment.
12774 (read_func_scope, read_variable): Update.
12775 (new_symbol): Remove.
12776 (new_symbol_full): Rename to new_symbol.
12778 2018-01-17 Mike Gulick <mgulick@mathworks.com>
12781 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
12782 a warning instead of throwing an error, set section size to 0 and return
12784 * gdb_bfd.h (gdb_bfd_map_section): Update description.
12786 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12788 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
12790 (linux_ptrace_attach_fail_reason_string): Likewise.
12791 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
12793 (linux_ptrace_attach_fail_reason_string): Likewise.
12794 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
12796 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12798 * linux-nat.c (linux_nat_attach): Remove xstrdup.
12800 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
12803 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
12804 checking for fs_base/gs_base fields in struct user_regs_struct.
12805 * configure: Regenerate.
12807 2018-01-17 Yao Qi <yao.qi@linaro.org>
12809 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12811 (aarch64_linux_init_abi): Install it to gdbarch hook
12812 gcc_target_options.
12814 2018-01-15 Pedro Alves <palves@redhat.com>
12816 * common/signals-state-save-restore.c
12817 (save_original_signals_state): Fix typos.
12819 2017-01-12 Tom Tromey <tom@tromey.com>
12820 Sergio Durigan Junior <sergiodj@redhat.com>
12822 * Makefile.in (install-only): Install gdb-add-index.
12824 2018-01-12 John Baldwin <jhb@FreeBSD.org>
12826 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
12828 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12830 * infrun.c (keep_going_pass_signal): Clear step-over info when
12831 insert_breakpoints fails.
12833 2018-01-11 Pedro Alves <palves@redhat.com>
12836 * infrun.c (resume): Rename to ...
12837 (resume_1): ... this.
12838 (resume): Reimplement as wrapper around resume_1.
12840 2018-01-11 Pedro Alves <palves@redhat.com>
12843 * remote.c (remote_parse_stop_reply): Default to the last-set
12844 general thread instead of to 'magic_null_ptid'.
12846 2018-01-10 Pedro Alves <palves@redhat.com>
12848 * language.h (language_get_symbol_name_matcher): Rename ...
12849 (get_symbol_name_matcher): ... this.
12850 * language.c (language_get_symbol_name_matcher): Ditto.
12851 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
12854 2018-01-10 Pedro Alves <palves@redhat.com>
12858 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
12859 Adjust to use language_get_symbol_name_matcher instead of
12860 language_defn::la_get_symbol_name_matcher.
12861 * language.c (language_get_symbol_name_matcher): If in Ada mode
12862 and the lookup name is a verbatim match, return Ada's matcher.
12863 * language.h (language_get_symbol_name_matcher): Adjust comment.
12864 (ada_lookup_name_info::verbatim_p):: New method.
12866 2018-01-10 Pedro Alves <palves@redhat.com>
12869 * ada-lang.c (ada_collect_symbol_completion_matches): If the
12870 minsym's language is language_auto or language_cplus, pass down
12871 language_ada instead.
12872 * symtab.c (compare_symbol_name): Don't frob symbol language here.
12874 2018-01-10 Pedro Alves <palves@redhat.com>
12877 * minsyms.c (linkage_name_str): New function.
12878 (iterate_over_minimal_symbols): Use it.
12880 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12882 * NEWS: Document that 'info proc' now works on FreeBSD.
12884 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12886 * configure.ac: Check for kinfo_getfile in libutil.
12887 * configure: Regenerate.
12888 * config.in: Regenerate.
12889 * fbsd-nat.c: Include "fbsd-tdep.h".
12890 (fbsd_fetch_cmdline): New.
12891 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
12892 rather than calling error.
12893 (fbsd_info_proc): New.
12894 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
12895 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
12896 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
12898 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12900 * fbsd-nat.c (struct free_deleter): Remove.
12901 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
12903 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12905 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
12906 NULL for an empty pathname.
12908 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12910 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
12911 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
12912 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12913 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12914 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
12915 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
12916 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
12917 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
12918 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
12919 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
12920 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
12921 (fbsd_core_fetch_timeval, fbsd_print_sigset)
12922 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
12923 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
12924 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
12926 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
12928 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
12929 (gnu_xfer_auxv): New function.
12930 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
12931 TARGET_OBJECT_AUXV.
12933 2018-01-08 Yao Qi <yao.qi@linaro.org>
12934 Simon Marchi <simon.marchi@ericsson.com>
12936 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
12938 (COMMON_OBS): Remove selftest.o.
12939 * configure.ac: Append selftest-arch.c and common/selftest.c to
12940 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
12941 * configure: Re-generated.
12942 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
12944 (maintenance_info_selftests): Likewise.
12946 2018-01-08 Xavier Roirand <roirand@adacore.com>
12948 * ada-valprint.c (val_print_packed_array_elements): Use
12949 proper number of elements when printing an array indexed
12950 by an enumeration type.
12952 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12954 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
12955 (dw2_get_file_names_reader): Adjust.
12956 (lookup_dwo_signatured_type): Adjust.
12957 (lookup_dwp_signatured_type): Adjust.
12958 (lookup_signatured_type): Adjust.
12959 (create_type_unit_group): Adjust.
12960 (get_type_unit_group): Adjust.
12961 (process_psymtab_comp_unit_reader): Adjust.
12962 (build_type_psymtabs_reader): Adjust.
12963 (scan_partial_symbols): Adjust.
12964 (add_partial_symbol): Adjust.
12965 (add_partial_subprogram): Adjust.
12966 (peek_die_abbrev): Adjust.
12967 (fixup_go_packaging): Adjust.
12968 (process_imported_unit_die): Adjust.
12969 (dwarf2_compute_name): Adjust.
12970 (dwarf2_physname): Adjust.
12971 (read_import_statement): Adjust.
12972 (handle_DW_AT_stmt_list): Adjust.
12973 (read_file_scope): Adjust.
12974 (read_func_scope): Adjust.
12975 (read_lexical_block_scope): Adjust.
12976 (read_call_site_scope): Adjust.
12977 (read_variable): Adjust.
12978 (dwarf2_rnglists_process): Adjust.
12979 (dwarf2_ranges_process): Adjust.
12980 (dwarf2_ranges_read): Adjust.
12981 (dwarf2_get_pc_bounds): Adjust.
12982 (dwarf2_record_block_ranges): Adjust.
12983 (dwarf2_add_field): Adjust.
12984 (dwarf2_add_member_fn): Adjust.
12985 (read_structure_type): Adjust.
12986 (process_structure_scope): Adjust.
12987 (read_enumeration_type): Adjust.
12988 (read_array_type): Adjust.
12989 (mark_common_block_symbol_computed): Adjust.
12990 (read_common_block): Adjust.
12991 (read_namespace_type): Adjust.
12992 (read_namespace): Adjust.
12993 (read_module_type): Adjust.
12994 (read_tag_pointer_type): Adjust.
12995 (read_tag_ptr_to_member_type): Adjust.
12996 (read_tag_string_type): Adjust.
12997 (read_subroutine_type): Adjust.
12998 (read_typedef): Adjust.
12999 (read_base_type): Adjust.
13000 (attr_to_dynamic_prop): Adjust.
13001 (read_subrange_type): Adjust.
13002 (read_unspecified_type): Adjust.
13003 (dwarf2_read_abbrevs): Adjust.
13004 (load_partial_dies): Adjust.
13005 (read_partial_die): Adjust.
13006 (find_partial_die): Adjust.
13007 (guess_partial_die_structure_name): Adjust.
13008 (fixup_partial_die): Adjust.
13009 (read_attribute_value): Adjust.
13010 (read_addr_index): Adjust.
13011 (read_addr_index_from_leb128): Adjust.
13012 (read_str_index): Adjust.
13013 (dwarf2_string_attr): Adjust.
13014 (get_debug_line_section): Adjust.
13015 (dwarf_decode_line_header): Adjust.
13016 (lnp_state_machine::check_line_address): Adjust.
13017 (dwarf_decode_lines_1): Adjust.
13018 (dwarf_decode_lines): Adjust.
13019 (dwarf2_start_symtab): Adjust.
13020 (var_decode_location): Adjust.
13021 (new_symbol_full): Adjust.
13022 (dwarf2_const_value_data): Adjust.
13023 (dwarf2_const_value_attr): Adjust.
13024 (dwarf2_const_value): Adjust.
13025 (die_type): Adjust.
13026 (die_containing_type): Adjust.
13027 (build_error_marker_type): Adjust.
13028 (lookup_die_type): Adjust.
13029 (guess_full_die_structure_name): Adjust.
13030 (anonymous_struct_prefix): Adjust.
13031 (determine_prefix): Adjust.
13032 (dwarf2_name): Adjust.
13033 (follow_die_ref_or_sig): Adjust.
13034 (follow_die_offset): Adjust.
13035 (follow_die_ref): Adjust.
13036 (follow_die_sig_1): Adjust.
13037 (follow_die_sig): Adjust.
13038 (get_signatured_type): Adjust.
13039 (get_DW_AT_signature_type): Adjust.
13040 (decode_locdesc): Adjust.
13041 (dwarf_decode_macros): Adjust.
13042 (cu_debug_loc_section): Adjust.
13043 (fill_in_loclist_baton): Adjust.
13044 (dwarf2_symbol_mark_computed): Adjust.
13045 (init_one_comp_unit): Don't assign
13046 dwarf2_cu::dwarf2_per_objfile.
13047 (set_die_type): Adjust.
13049 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13051 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13052 <dwarf2_per_objfile>: New field.
13053 (dwarf2_per_objfile): Remove global.
13054 (get_dwarf2_per_objfile): New function.
13055 (set_dwarf2_per_objfile): New function.
13056 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13057 dwarf2_per_objfile.
13058 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13059 (read_abbrev_offset): Likewise.
13060 (read_indirect_string): Likewise.
13061 (read_indirect_line_string): Likewise.
13062 (read_indirect_string_at_offset): Likewise.
13063 (read_indirect_string_from_dwz): Likewise.
13064 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13065 dwarf2_per_objfile.
13066 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13067 (create_all_comp_units): Change objfile parameter to
13068 dwarf2_per_objfile.
13069 (create_all_type_units): Likewise.
13070 (process_queue): Add dwarf2_per_objfile parameter.
13071 (read_and_check_comp_unit_head): Likewise.
13072 (lookup_dwo_unit_in_dwp): Likewise.
13073 (get_dwp_file): Likewise.
13074 (process_cu_includes): Likewise.
13075 (struct free_dwo_file_cleanup_data): New struct.
13076 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13077 set_dwarf2_per_objfile.
13078 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13079 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13080 context, adjust calls.
13081 (dw2_instantiate_symtab): Likewise.
13082 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13083 (dw2_get_cu): Likewise.
13084 (create_cu_from_index_list): Change objfile parameter to
13085 dwarf2_per_objfile.
13086 (create_cus_from_index_list): Get dwarf2_per_objfile from
13087 context, adjust calls.
13088 (create_cus_from_index): Likewise.
13089 (create_signatured_type_table_from_index): Change objfile
13090 parameter to dwarf2_per_objfile.
13091 (create_signatured_type_table_from_debug_names): Change objfile
13092 parameter to dwarf2_per_objfile.
13093 (create_addrmap_from_index): Likewise.
13094 (create_addrmap_from_aranges): Likewise.
13095 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13096 (dw2_setup): Remove.
13097 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13099 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13100 get_dwarf2_per_objfile.
13101 (dw2_forget_cached_source_info): Likewise.
13102 (dw2_map_symtabs_matching_filename): Likewise.
13103 (struct dw2_symtab_iterator) <index>: Remove.
13104 <dwarf2_per_objfile>: New field.
13105 (dw2_symtab_iter_init): Replace index parameter with
13106 dwarf2_per_objfile.
13107 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13108 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13109 (dw2_print_stats): Likewise.
13110 (dw2_dump): Likewise.
13111 (dw2_expand_symtabs_for_function): Likewise.
13112 (dw2_expand_all_symtabs): Likewise.
13113 (dw2_expand_symtabs_with_fullname): Likewise.
13114 (dw2_expand_marked_cus): Replace index and objfile parameters
13115 with dwarf2_per_objfile.
13116 (dw_expand_symtabs_matching_file_matcher): Add
13117 dwarf2_per_objfile parameter and adjust calls.
13118 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13120 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13121 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13123 (create_cus_from_debug_names_list): Replace objfile parameter
13124 with dwarf2_per_objfile and adjust calls.
13125 (create_cus_from_debug_names): Likewise.
13126 (dwarf2_read_debug_names): Likewise.
13127 (mapped_debug_names::namei_to_name): Adjust call.
13128 (dw2_debug_names_iterator::next): Likewise.
13129 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13130 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13131 (dw2_debug_names_dump): Likewise.
13132 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13133 (dw2_debug_names_expand_symtabs_matching): Likewise.
13134 (dwarf2_initialize_objfile): Likewise.
13135 (dwarf2_build_psymtabs): Likewise.
13136 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13138 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13139 (read_and_check_comp_unit_head): Likewise.
13140 (read_abbrev_offset): Likewise.
13141 (create_debug_type_hash_table): Likewise.
13142 (create_debug_types_hash_table): Likewise.
13143 (create_all_type_units): Replace objfile parameter with
13144 dwarf2_per_objfile.
13145 (add_type_unit): Add dwarf2_per_objfile parameter.
13146 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13147 with dwarf2_per_objfile.
13148 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13149 (lookup_dwp_signatured_type): Likewise.
13150 (lookup_signatured_type): Likewise.
13151 (read_cutu_die_from_dwo): Likewise.
13152 (init_tu_and_read_dwo_dies): Likewise.
13153 (init_cutu_and_read_dies): Likewise.
13154 (init_cutu_and_read_dies_no_follow): Likewise.
13155 (allocate_type_unit_groups_table): Add objfile parameter.
13156 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13157 (get_type_unit_group): Likewise.
13158 (process_psymtab_comp_unit): Update call.
13159 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13160 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13161 (print_tu_stats): Likewise.
13162 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13163 in void* parameter.
13164 (build_type_psymtabs): Change objfile parameter to
13165 dwarf2_per_objfile.
13166 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13167 passed in void* parameter.
13168 (process_skeletonless_type_units): Change objfile parameter to
13169 dwarf2_per_objfile.
13170 (set_partial_user): Likewise.
13171 (dwarf2_build_psymtabs_hard): Likewise.
13172 (read_comp_units_from_section): Likewise.
13173 (create_all_comp_units): Likewise.
13174 (scan_partial_symbols): Update calls.
13175 (add_partial_symbol): Likewise.
13176 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13177 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13178 (process_queue): Add dwarf2_per_objfile parameter.
13179 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13180 (compute_compunit_symtab_includes): Likewise.
13181 (process_cu_includes): Add dwarf2_per_objfile parameter.
13182 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13183 (process_full_type_unit): Likewise.
13184 (process_imported_unit_die): Update call.
13185 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13186 (read_file_scope): Likewise.
13187 (allocate_dwo_file_hash_table): Add objfile parameter.
13188 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13189 (create_cus_hash_table): Likewise.
13190 (create_dwp_hash_table): Likewise.
13191 (create_dwo_unit_in_dwp_v1): Likewise.
13192 (create_dwp_v2_section): Likewise.
13193 (create_dwo_unit_in_dwp_v2): Likewise.
13194 (lookup_dwo_unit_in_dwp): Likewise.
13195 (try_open_dwop_file): Likewise.
13196 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13197 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13198 cleanup to include a reference to dwarf2_per_objfile.
13199 (open_dwp_file): Add dwarf2_per_objfile parameter.
13200 (open_and_init_dwp_file): Likewise.
13201 (get_dwp_file): Likewise.
13202 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13203 (queue_and_load_all_dwo_tus): Update call.
13204 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13206 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13207 (dwarf2_ranges_process): Likewise.
13208 (dwarf2_get_pc_bounds): Likewise.
13209 (mark_common_block_symbol_computed): Likewise.
13210 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13211 (dwarf2_read_abbrevs): Update call.
13212 (read_partial_die): Use dwarf2_per_objfile from cu.
13213 (find_partial_die): Likewise.
13214 (fixup_partial_die): Likewise.
13215 (read_attribute_value): Likewise.
13216 (read_indirect_string_at_offset_from): Add objfile parameter.
13217 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13219 (read_indirect_string_from_dwz): Add objfile parameter.
13220 (read_indirect_string): Add objfile parameter.
13221 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13222 (read_addr_index): Use dwarf2_per_objfile from cu.
13223 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13225 (read_str_index): Use dwarf2_per_objfile from cu.
13226 (get_debug_line_section): Likewise.
13227 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13228 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13229 (new_symbol_full): Use dwarf2_per_objfile from cu.
13230 (build_error_marker_type): Likewise.
13231 (lookup_die_type): Likewise.
13232 (determine_prefix): Likewise.
13233 (follow_die_offset): Likewise.
13234 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13235 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13236 (dwarf2_fetch_die_type_sect_off): Likewise.
13237 (dwarf2_get_die_type): Likewise.
13238 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13239 (get_signatured_type): Likewise.
13240 (get_DW_AT_signature_type): Likewise.
13241 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13242 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13243 (cu_debug_loc_section): Likewise.
13244 (fill_in_loclist_baton): Likewise.
13245 (dwarf2_symbol_mark_computed): Likewise.
13246 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13247 dwarf2_per_objfile.
13248 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13250 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13251 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13252 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13253 (set_die_type): Use dwarf2_free_objfile from cu.
13254 (get_die_type_at_offset): Likewise.
13255 (dwarf2_per_objfile_free): Don't assign global variable.
13256 (debug_names) <constructor>: Add dwarf2_per_objfile
13257 parameter, update m_debugstrlookup construction.
13258 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13260 <m_dwarf2_per_objfile>: New field.
13261 <lookup>: Use m_dwarf2_per_objfile.
13262 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13263 (psyms_seen_size): Likewise.
13264 (write_gdbindex): Replace objfile parameter with
13265 dwarf2_per_objfile.
13266 (write_debug_names): Likewise.
13267 (write_psymtabs_to_index): Likewise.
13268 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13271 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13273 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13274 <dwarf2_per_objfile>: New field.
13275 (struct dwarf2_per_cu_data) <objfile>: Remove.
13276 <dwarf2_per_objfile>: New field.
13277 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13279 (create_signatured_type_table_from_index): Likewise.
13280 (create_debug_type_hash_table): Likewise.
13281 (fill_in_sig_entry_from_dwo_entry): Likewise.
13282 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13283 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13285 (create_partial_symtab): Access objfile through
13286 dwarf2_per_objfile.
13287 (process_psymtab_comp_unit_reader): Likewise.
13288 (read_comp_units_from_section): Likewise.
13289 (scan_partial_symbols): Likewise.
13290 (add_partial_symbol): Likewise.
13291 (add_partial_subprogram): Likewise.
13292 (peek_die_abbrev): Likewise.
13293 (fixup_go_packaging): Likewise.
13294 (process_full_comp_unit): Likewise.
13295 (process_full_type_unit): Likewise.
13296 (process_imported_unit_die): Likewise.
13297 (dwarf2_compute_name): Likewise.
13298 (dwarf2_physname): Likewise.
13299 (read_import_statement): Likewise.
13300 (create_cus_hash_table): Assign dwarf2_physname instead of
13302 (read_func_scope): Access objfile through dwarf2_per_objfile.
13303 (read_lexical_block_scope): Likewise.
13304 (read_call_site_scope): Likewise.
13305 (read_variable): Likewise.
13306 (dwarf2_rnglists_process): Likewise.
13307 (dwarf2_ranges_process): Likewise.
13308 (dwarf2_ranges_read): Likewise.
13309 (dwarf2_record_block_ranges): Likewise.
13310 (dwarf2_add_field): Likewise.
13311 (dwarf2_add_member_fn): Likewise.
13312 (read_structure_type): Likewise.
13313 (process_structure_scope): Likewise.
13314 (read_enumeration_type): Likewise.
13315 (read_array_type): Likewise.
13316 (read_common_block): Likewise.
13317 (read_namespace_type): Likewise.
13318 (read_namespace): Likewise.
13319 (read_module_type): Likewise.
13320 (read_tag_pointer_type): Likewise.
13321 (read_tag_ptr_to_member_type): Likewise.
13322 (read_tag_string_type): Likewise.
13323 (read_subroutine_type): Likewise.
13324 (read_typedef): Likewise.
13325 (read_base_type): Likewise.
13326 (attr_to_dynamic_prop): Likewise.
13327 (read_subrange_type): Likewise.
13328 (read_unspecified_type): Likewise.
13329 (load_partial_dies): Likewise.
13330 (read_partial_die): Likewise.
13331 (find_partial_die): Likewise.
13332 (guess_partial_die_structure_name): Likewise.
13333 (fixup_partial_die): Likewise.
13334 (read_attribute_value): Likewise.
13335 (read_addr_index_from_leb128): Likewise.
13336 (dwarf2_read_addr_index): Likewise.
13337 (dwarf2_string_attr): Likewise.
13338 (lnp_state_machine::check_line_address): Likewise.
13339 (dwarf_decode_lines_1): Likewise.
13340 (dwarf_decode_lines): Likewise.
13341 (dwarf2_start_symtab): Likewise.
13342 (var_decode_location): Likewise.
13343 (new_symbol_full): Likewise.
13344 (dwarf2_const_value_data): Likewise.
13345 (dwarf2_const_value_attr): Likewise.
13346 (dwarf2_const_value): Likewise.
13347 (die_type): Likewise.
13348 (die_containing_type): Likewise.
13349 (lookup_die_type): Likewise.
13350 (guess_full_die_structure_name): Likewise.
13351 (anonymous_struct_prefix): Likewise.
13352 (dwarf2_name): Likewise.
13353 (follow_die_ref_or_sig): Likewise.
13354 (follow_die_offset): Likewise.
13355 (follow_die_ref): Likewise.
13356 (dwarf2_fetch_die_loc_sect_off): Likewise.
13357 (dwarf2_fetch_constant_bytes): Likewise.
13358 (dwarf2_fetch_die_type_sect_off): Likewise.
13359 (dwarf2_get_die_type): Likewise.
13360 (follow_die_sig): Likewise.
13361 (decode_locdesc): Likewise.
13362 (dwarf2_per_cu_objfile): Likewise.
13363 (dwarf2_per_cu_text_offset): Likewise.
13364 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13366 (set_die_type): Access objfile through
13367 dwarf2_per_objfile.
13369 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13371 * valprint.c (converted_character_d): Remove typedef.
13372 (DEF_VEC_O (converted_character_d)): Remove.
13373 (count_next_character): Use std::vector.
13374 (print_converted_chars_to_obstack): Likewise.
13375 (generic_printstr): Likewise.
13377 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13379 * xml-support.h (struct gdb_xml_value): Add constructor.
13380 <value>: Change type to unique_xmalloc_ptr.
13381 (gdb_xml_value_s): Remove typedef.
13382 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13383 (gdb_xml_element_start_handler): Change parameter type to
13385 (xml_find_attribute): Likewise.
13386 * xml-support.c (xml_find_attribute): Change parameter type to
13387 std::vector and adjust.
13388 (gdb_xml_values_cleanup): Remove.
13389 (gdb_xml_parser::start_element): Adjust to std::vector.
13390 (xinclude_start_include): Change paraeter type to std::vector
13392 * btrace.c (check_xml_btrace_version): Likewise.
13393 (parse_xml_btrace_block): Likewise.
13394 (parse_xml_btrace_pt_config_cpu): Likewise.
13395 (parse_xml_btrace_pt): Likewise.
13396 (parse_xml_btrace_conf_bts): Likewise.
13397 (parse_xml_btrace_conf_pt): Likewise.
13398 * memory-map.c (memory_map_start_memory): Likewise.
13399 (memory_map_start_property): Likewise.
13400 * osdata.c (osdata_start_osdata): Likewise.
13401 (osdata_start_item): Likewise.
13402 (osdata_start_column): Likewise.
13403 * remote.c (start_thread): Likewise.
13404 * solib-aix.c (library_list_start_library): Likewise.
13405 (library_list_start_list): Likewise.
13406 * solib-svr4.c (library_list_start_library): Likewise.
13407 (svr4_library_list_start_list): Likewise.
13408 * solib-target.c (library_list_start_segment): Likewise.
13409 (library_list_start_section): Likewise.
13410 (library_list_start_library): Likewise.
13411 (library_list_start_list): Likewise.
13412 * tracepoint.c (traceframe_info_start_memory): Likewise.
13413 (traceframe_info_start_tvar): Likewise.
13414 * xml-syscall.c (syscall_start_syscall): Likewise.
13415 * xml-tdesc.c (tdesc_start_target): Likewise.
13416 (tdesc_start_feature): Likewise.
13417 (tdesc_start_reg): Likewise.
13418 (tdesc_start_union): Likewise.
13419 (tdesc_start_struct): Likewise.
13420 (tdesc_start_flags): Likewise.
13421 (tdesc_start_enum): Likewise.
13422 (tdesc_start_field): Likewise.
13423 (tdesc_start_enum_value): Likewise.
13424 (tdesc_start_vector): Likewise.
13426 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13428 * extension.h (struct xmethod_worker) <clone>: Remove.
13429 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13431 (python_xmethod_worker::clone): Remove.
13432 * valops.c (find_overload_match): Use std::move instead of
13435 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13437 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13438 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13439 <free_xmethod_worker_data>: Remove.
13440 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13441 <get_xmethod_arg_types>: Remove.
13442 <get_xmethod_result_type>: Remove.
13443 <invoke_xmethod>: Remove.
13444 * extension.c (new_xmethod_worker): Remove.
13445 (clone_xmethod_worker): Remove.
13446 (get_matching_xmethod_workers): Return void, pass std::vector by
13448 (get_xmethod_arg_types): Rename to...
13449 (xmethod_worker::get_arg_types): ... this, and adjust.
13450 (get_xmethod_result_type): Rename to...
13451 (xmethod_worker::get_result_type): ... this, and adjust.
13452 (invoke_xmethod): Remove.
13453 (free_xmethod_worker): Remove.
13454 (free_xmethod_worker_vec): Remove.
13455 * extension.h (enum ext_lang_rc): Move here from
13457 (struct xmethod_worker): Add constructor and destructor.
13460 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13461 virtual pure methods.
13462 <get_arg_types, get_result_type>: New methods.
13463 (xmethod_worker_ptr): Remove typedef.
13464 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13465 (xmethod_worker_vec): Remove typedef.
13466 (xmethod_worker_up): New typedef.
13467 (invoke_xmethod): Remove.
13468 (clone_xmethod_worker): Remove.
13469 (free_xmethod_worker): Remove.
13470 (free_xmethod_worker_vec): Remove.
13471 (get_xmethod_arg_types): Remove.
13472 (get_xmethod_result_type): Remove.
13473 * valops.c (find_method_list): Use std::vector, don't use
13474 intermediate vector.
13475 (value_find_oload_method_list): Use std::vector.
13476 (find_overload_match): Use std::vector.
13477 (find_oload_champ): Use std::vector.
13478 * value.c (value_free): Use operator delete.
13479 (value_of_xmethod): Rename to...
13480 (value_from_xmethod): ... this. Don't assign
13481 xmethod_worker::value, take rvalue-reference.
13482 (result_type_of_xmethod): Adjust.
13483 (call_xmethod): Adjust.
13484 * value.h: Include extension.h.
13485 (struct xmethod_worker): Don't forward-declare.
13486 (value_of_xmethod): Rename to...
13487 (value_from_xmethod): ... this, take rvalue-reference.
13488 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13489 (struct python_xmethod_worker): ... this, add constructor and
13491 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13492 (gdbpy_free_xmethod_worker_data): Rename to...
13493 (python_xmethod_worker::~python_xmethod_worker): ... this and
13495 (gdbpy_clone_xmethod_worker_data): Rename to...
13496 (python_xmethod_worker::clone): ... this and adjust.
13497 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13499 (gdbpy_get_xmethod_arg_types): Rename to...
13500 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13501 (gdbpy_get_xmethod_result_type): Rename to...
13502 (python_xmethod_worker::do_get_result_type): ... this and
13504 (gdbpy_invoke_xmethod): Rename to...
13505 (python_xmethod_worker::invoke): ... this and adjust.
13506 (new_python_xmethod_worker): Rename to...
13507 (python_xmethod_worker::python_xmethod_worker): ... this and
13509 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13511 (gdbpy_free_xmethod_worker_data): Remove.
13512 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13513 (gdbpy_get_xmethod_arg_types): Remove.
13514 (gdbpy_get_xmethod_result_type): Remove.
13515 (gdbpy_invoke_xmethod): Remove.
13516 * python/python.c (python_extension_ops): Remove obsolete
13519 2018-01-05 Pedro Alves <palves@redhat.com>
13522 * common/signals-state-save-restore.c
13523 (save_original_signals_state): New parameter 'quiet'. Warn if we
13524 find a custom handler preinstalled, instead of internal erroring.
13525 But only warn if !quiet.
13526 * common/signals-state-save-restore.h
13527 (save_original_signals_state): New parameter 'quiet'.
13528 * main.c (captured_main_1): Move save_original_signals_state call
13529 after option handling, and pass QUIET.
13531 2018-01-05 Pedro Alves <palves@redhat.com>
13533 * spu-tdep.c (spu_catch_start): Pass
13534 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13536 2018-01-05 Pedro Alves <palves@redhat.com>
13539 * ada-lang.c (literal_symbol_name_matcher): New function.
13540 (ada_get_symbol_name_matcher): Use it for
13541 symbol_name_match_type::SEARCH_NAME.
13542 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13543 it down instead of assuming symbol_name_match_type::FULL.
13544 * block.h (block_lookup_symbol): New parameter 'match_type'.
13545 * c-valprint.c (print_unpacked_pointer): Use
13546 lookup_symbol_search_name instead of lookup_symbol.
13547 * compile/compile-object-load.c (get_out_value_type): Pass down
13548 symbol_name_match_type::SEARCH_NAME.
13549 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13550 symbol_name_match_type::FULL.
13551 * cp-support.c (cp_get_symbol_name_matcher): Handle
13552 symbol_name_match_type::SEARCH_NAME.
13553 * infrun.c (insert_exception_resume_breakpoint): Use
13554 lookup_symbol_search_name.
13555 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13556 * psymtab.c (maintenance_check_psymtabs): Use
13557 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13558 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13559 SYMBOL_SEARCH_NAME.
13560 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13561 if symbol_name_match_type::SEARCH_NAME.
13562 (lookup_symbol_in_language): Pass down
13563 symbol_name_match_type::FULL.
13564 (lookup_symbol_search_name): New.
13565 (lookup_language_this): Pass down
13566 symbol_name_match_type::SEARCH_NAME.
13567 (lookup_symbol_aux, lookup_local_symbol): New parameter
13568 'match_type'. Pass it down.
13569 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13570 (lookup_symbol_search_name): New declaration.
13571 (lookup_symbol_in_block): New 'match_type' parameter.
13573 2018-01-05 Pedro Alves <palves@redhat.com>
13576 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13578 (ada_lookup_symbol): Reimplement in terms of
13579 ada_lookup_symbol_list, bits factored out from
13580 ada_lookup_encoded_symbol.
13582 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13584 * ada-exp.y (write_object_renaming): When subscripting an array
13585 using a symbol as the index, pass the block in call to
13586 ada_lookup_encoded_symbol when looking that symbol up.
13588 2018-01-05 Jerome Guitton <guitton@adacore.com>
13590 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13593 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13595 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13596 the case where VALUE_LVAL (val0) is not lval_memory.
13598 2018-01-05 Xavier Roirand <roirand@adacore.com>
13600 * ada-valprint.c (print_optional_low_bound): Handle
13601 character-indexed array printing like boolean-indexed array
13604 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13606 * NEWS: Create a new section for the next release branch.
13607 Rename the section of the current branch, now that it has
13610 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13612 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13613 * version.in: Bump version to 8.1.50.DATE-git.
13615 2018-01-03 Xavier Roirand <roirand@adacore.com>
13617 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13619 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13621 (default_exception_support_info) <catch_handlers_sym>: Add field.
13622 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13623 (ada_exception_name_addr_1): Add "catch handlers" handling.
13624 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13625 Update all callers.
13626 (create_excep_cond_exprs) <ex>: Add parameter.
13627 (re_set_exception): Update create_excep_cond_exprs call.
13628 (print_it_exception, print_one_exception, print_mention_exception)
13629 (print_recreate_exception): Add "catch handler" handling.
13630 (allocate_location_catch_handlers, re_set_catch_handlers)
13631 (check_status_catch_handlers, print_it_catch_handlers)
13632 (print_one_catch_handlers, print_mention_catch_handlers)
13633 (print_recreate_catch_handlers): New function.
13634 (catch_handlers_breakpoint_ops): New variable.
13635 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13636 Add parameter. Add "catch handler" handling.
13637 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13638 Add "catch handler" handling.
13639 (ada_exception_catchpoint_cond_string): Add "catch handler"
13641 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13643 (catch_ada_handlers_command): New function.
13644 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13645 operations structure.
13646 (_initialize_ada_language): Add "catch handlers" command entry.
13647 * NEWS: Document "catch handlers" feature.
13649 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13651 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13652 account when creating the array type of the slice.
13653 (ada_value_slice): Likewise.
13655 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13657 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13659 (create_array_type_with_stride): Add byte_stride_prop parameter.
13660 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13661 New parameter. Update all callers in this file.
13662 (array_type_has_dynamic_stride): New function.
13663 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13664 of arrays with dynamic byte strides.
13665 * dwarf2read.c (read_array_type): Add support for dynamic
13666 DW_AT_byte_stride attributes.
13668 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13670 * dwarf2read.c (read_unspecified_type): Treat
13671 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13673 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13675 Update copyright year range in all GDB files.
13677 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13679 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13680 and gdb/testsuite/gdb.base/step-line.c.
13682 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13684 * copyright.py (main): Dump the contents of
13685 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13686 even if BY_HAND is empty.
13688 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13690 * top.c (print_gdb_version): Update Copyright year in version
13693 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13695 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
13697 For older changes see ChangeLog-2017.
13703 version-control: never