Use enum for return method for dummy calls
[external/binutils.git] / gdb / ChangeLog
1 2018-11-16  Alan Hayward  <alan.hayward@arm.com>
2
3         * gdbarch.sh (enum function_call_return_method): Add enum.
4         * gdbarch.h: Regenerate.
5         * infcall.c (call_function_by_hand_dummy): Replace vars with enum.
6
7 2018-11-15  Joel Brobecker  <brobecker@adacore.com>
8
9         * unittests/copy_bitwise-selftests.c: New file.
10         * utils.c (selftests::bits_to_str, selftests::check_copy_bitwise)
11         (selftests::copy_bitwise_tests): Delete, moving this code to
12         unittests/copy_bitwise-selftests.c instead.
13         (_initialize_utils): Do not register copy_bitwise tests.
14         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15         unittests/copy_bitwise-selftests.c.
16
17 2018-11-14  Joel Brobecker  <brobecker@adacore.com>
18
19         * ada-lang.c (move_bits): Delete. Update all callers to use
20         copy_bitwise instead.
21         * dwarf2loc.c (copy_bitwise, bits_to_str::bits_to_str)
22         (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
23         Move from here to utils.c.
24         (_initialize_dwarf2loc): Remove call to register copy_bitwise
25         selftests.
26         * utils.h (copy_bitwise): Add declaration.
27         * utils.c (copy_bitwise, bits_to_str::bits_to_str)
28         (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
29         Moved here from dwarf2loc.c.
30         (_initialize_utils): Register copy_bitwise selftests.
31
32 2018-11-14  Jim Wilson  <jimw@sifive.com>
33
34         * riscv-tdep.c (struct riscv_arg_info): New field is_unnamed.
35         (riscv_call_arg_scalar_int): If unnamed arg with twice xlen alignment,
36         then increment next_regnum if odd.
37         (riscv_arg_location): New arg is_unnamed.  Set ainfo->is_unnamed.
38         (riscv_push_dummy_call): New local ftype.  Call check_typedef to set
39         function type.  Pass new arg to riscv_arg_location based on function
40         type.
41         (riscv_return_value): Pass new arg to riscv_arg_location.
42
43         * riscv-tdep.c (BIGGEST_ALIGNMENT): New.
44         (riscv_type_alignment) <TYPE_CODE_ARRAY>: If TYPE_VECTOR, return min
45         of TYPE_LENGTH and BIGGEST_ALIGNMENT.
46
47         * riscv-tdep.c (riscv_call_arg_scalar_int): Use std::min when
48         setting len.  New local align, set to max of arg align and xlen,
49         and pass to first riscv_assign_stack_location call.
50
51 2018-11-12  Simon Marchi  <simon.marchi@polymtl.ca>
52
53         * skip.c (complete_skip_number): New function.
54         (_initialize_step_skip): Add completers to some skip commands.
55
56 2018-11-09  Tom Tromey  <tom@tromey.com>
57
58         * remote.c (remote_g_packet_guess_s): Remove typedef and DEF_VEC.
59         (struct remote_g_packet_data): Derive from allocate_on_obstack.
60         <guesses>: Now a std::vector.
61         (remote_g_packet_data_init, register_remote_g_packet_guess):
62         Update.
63         (remote_read_description_p): Update.  Return bool.
64         (remote_target::read_description): Update.
65         (struct remote_g_packet_guess): Add constructor.
66
67 2018-11-09  Tom Tromey  <tom@tromey.com>
68
69         * common/scoped_fd.h (class scoped_fd): Add move constructor and
70         move assignment operator.
71         * psymtab.c (psymtab_to_fullname): Update.
72         * source.h (open_source_file): Return scoped_fd.
73         (find_and_open_source): Likewise.
74         * source.c (open_source_file): Return scoped_fd.
75         (get_filename_and_charpos): Update.
76         (print_source_lines_base): Update.  Use scoped_fd::to_file.
77         (forward_search_command): Likewise.
78         (reverse_search_command): Likewise.
79         (find_and_open_source): Return scoped_fd.
80         * tui/tui-source.c (tui_set_source_content): Update.  Use
81         gdb_file_up.
82
83 2018-11-09  John Baldwin  <jhb@FreeBSD.org>
84
85         * minsyms.c (minimal_symbol_reader::install): Fix unsigned
86         overflow.
87
88 2018-11-09  Hafiz Abid Qadeer  <abidh@codesourcery.com>
89
90         * configure: Regenerate.
91
92 2018-11-09  Tom de Vries  <tdevries@suse.de>
93
94         * symtab.c (symbol_set_names): Call symbol_find_demangled_name
95         unconditionally, to set the language of the symbol.  Manage freeing
96         returned pointer using gdb::unique_xmalloc_ptr.
97
98 2018-11-08  Tom Tromey  <tom@tromey.com>
99
100         * record.c (require_record_target): Upper-case "<TAB>".
101
102 2018-11-08  Tom Tromey  <tom@tromey.com>
103
104         * python/lib/gdb/command/pretty_printers.py
105         (InfoPrettyPrinter.invoke): Don't indent "objfile" heading.
106
107 2018-11-08  Tom Tromey  <tom@tromey.com>
108
109         PR gdb/23555:
110         PR gdb/23838:
111         * target.h (target_supports_terminal_ours): Return bool.
112         * target.c (target_supports_terminal_ours): Handle case where
113         current_top_target returns nullptr.  Return bool.
114
115 2018-11-08  Joel Brobecker  <brobecker@adacore.com>
116
117         * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1):
118         return the correct count for potential HFAs.
119
120 2018-11-08  Jan Beulich  <jbeulich@suse.com>
121
122         * i387-tdep.c (i387_supply_xsave): Split handling of
123         X86_XSTATE_ZMM_H and X86_XSTATE_ZMM.
124         (i387_collect_xsave): Likewise.
125
126 2018-11-08  Andrew Burgess  <andrew.burgess@embecosm.com>
127
128         * riscv-tdep.c (riscv_insn::decode): Update header comment.
129         (riscv_frame_this_id): Catch errors thrown while building the
130         frame cache, leave the frame id as the default, which is the outer
131         frame id.
132
133 2018-11-07  Joel Brobecker  <brobecker@adacore.com>
134
135         * ada-lang.c (read_atcb): Only set task_info->called_task if
136         task_info->state == Entry_Caller_Sleep.
137         (print_ada_task_info): Do not check task_info->state before
138         checking task_info->called_task.
139         (info_task): Likewise.
140
141 2018-11-07  Joel Brobecker  <brobecker@adacore.com>
142
143         * ada-tasks.c (read_atcb): Clear task_info before computing
144         the value of each of its fields.
145
146 2018-11-07  Andrew Burgess  <andrew.burgess@embecosm.com>
147
148         * dwarf2read.c (dwarf2_init_integer_type): Check for name being
149         NULL before dereferencing it.
150
151 2018-11-06  Tom de Vries  <tdevries@suse.de>
152
153         * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate
154         program headers.
155
156 2018-11-06  Max Filippov  <jcmvbkbc@gmail.com>
157
158         * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux*
159         so that it applies to uclinux as well.
160
161 2018-11-06  Marius Muench  <marius.muench@eurecom.fr>
162
163         * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg
164         when on AAPCS.
165
166 2018-11-06  John Baldwin  <jhb@FreeBSD.org>
167
168         * riscv-fbsd-nat.c (getregs_supplies): Return true for
169         RISCV_CSR_SSTATUS_REGNUM.
170
171 2018-11-04  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
172
173         * source.c (open_source_file): Fix leak by transferring the
174         current s->fullname to the unique_xmalloc_ptr fullname given
175         to find_and_open_source.
176
177 2018-11-04  Tom Tromey  <tom@tromey.com>
178
179         * varobj.c (install_default_visualizer): Update.
180         * python/python-internal.h (gdbpy_get_varobj_pretty_printer):
181         Return gdbpy_ref.
182         * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref.
183         (find_pretty_printer_from_progspace)
184         (find_pretty_printer_from_gdb, find_pretty_printer)
185         (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref.
186         (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer):
187         Update.
188
189 2018-11-04  Tom Tromey  <tom@tromey.com>
190
191         * python/python.c (gdbpy_parameter_value): Update.
192         * python/python-internal.h (python_string_to_unicode)
193         (python_string_to_target_python_string)
194         (host_string_to_python_string): Return gdbpy_ref.
195         * python/py-utils.c (python_string_to_unicode)
196         (unicode_to_encoded_python_string)
197         (unicode_to_target_python_string)
198         (python_string_to_target_string)
199         (python_string_to_target_python_string): Return gdbpy_ref.
200         (python_string_to_host_string): Update.
201         (host_string_to_python_string): Return gdbpy_ref.
202         * python/py-symtab.c (stpy_get_filename, stpy_get_producer)
203         (stpy_fullname): Update.
204         * python/py-progspace.c (pspy_get_filename, pspy_solib_name):
205         Update.
206         * python/py-prettyprint.c (print_string_repr): Update.
207         * python/py-objfile.c (objfpy_get_filename, objfpy_get_username)
208         (objfpy_get_build_id): Update.
209         * python/py-breakpoint.c (bppy_get_location)
210         (bppy_get_expression, bppy_get_condition, bppy_get_commands):
211         Update.
212
213 2018-11-04  Tom Tromey  <tom@tromey.com>
214
215         * python/python-internal.h (gdb_py_object_from_longest)
216         (gdb_py_object_from_ulongest): Return gdbpy_ref.
217         * python/py-value.c (valpy_int): Update.
218         * python/py-utils.c (gdb_py_object_from_longest): Return
219         gdbpy_ref.
220         (gdb_py_object_from_ulongest): Likewise.
221         * python/py-type.c (typy_get_alignof): Update.
222         * python/py-linetable.c (ltpy_get_all_source_lines)
223         (ltpy_entry_get_line, ltpy_entry_get_pc): Update.
224         * python/py-block.c (blpy_get_start, blpy_get_end): Update.
225
226 2018-11-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
227
228         * ada-lang.c (_initialize_ada_language): Fix typo.
229
230 2018-11-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
231
232         * language.c (type): Remove.
233         (_initialize_language): Remove assignment to type.
234
235 2018-11-02  Joel Brobecker  <brobecker@adacore.com>
236
237         * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files.
238         * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h".
239         (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops.
240         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o.
241         (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h.
242         (ALLDEPFILES): Add aarch64-ravenscar-thread.c.
243         * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o
244         and aarch64-ravenscar-thread.o.
245         * NEWS: Add entry documenting Ravenscar tasking support
246         on AArch64 ELF.
247
248 2018-11-02  Matthew Malcomson  <matthew.malcomson@arm.com>
249
250         * symtab.c (info_functions_command): Initialize quiet flag.
251         * stack.c (info_args_command): Likewise.
252
253 2018-11-01  Jim Wilson  <jimw@sifive.com>
254
255         * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p.
256         Set if pcptr if unaligned.  Return 2 if unaligned_p true.  Update
257         debugging messages.
258
259 2018-11-01  Joel Brobecker  <brobecker@adacore.com>
260
261         * ada-lang.c (ada_watch_location_expression): New function.
262         (ada_language_defn): Set la_watch_location_expression to
263         ada_watch_location_expression.
264
265 2018-11-01  Joel Brobecker  <brobecker@adacore.com>
266
267         * print-utils.c (int_string): Remove unnecessary trailing spaces.
268
269 2018-11-01  Joel Brobecker  <brobecker@adacore.com>
270
271         * rs6000-tdep.c (skip_prologue): Fix potential negative left
272         shifting.
273
274 2018-11-01  Jerome Guitton  <guitton@adacore.com>
275             Joel Brobecker  <brobecker@adacore.com>
276
277         * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS.
278         * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS.
279         * arm-pikeos-tdep.c: New file.
280         * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM
281         embedded system.
282         * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o.
283
284 2018-11-01  Simon Marchi  <simon.marchi@ericsson.com>
285
286         * common/pathstuff.c (get_standard_temp_dir): New.
287         * common/pathstuff.h (get_standard_temp_dir): New.
288         * config.in: Re-generate.
289         * configure: Re-generate.
290         * configure.ac: Don't check for mkdtemp.
291         * gnulib/aclocal-m4-deps.mk: Re-generate.
292         * gnulib/aclocal.m4: Re-generate.
293         * gnulib/config.in: Re-generate.
294         * gnulib/configure: Re-generate.
295         * gnulib/import/Makefile.am: Re-generate.
296         * gnulib/import/Makefile.in: Re-generate.
297         * gnulib/import/m4/gnulib-cache.m4: Re-generate.
298         * gnulib/import/m4/gnulib-comp.m4: Re-generate.
299         * gnulib/import/m4/mkdtemp.m4: New file.
300         * gnulib/import/mkdtemp.c: New file.
301         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES):
302         Add mkdtemp module.
303         * unittests/mkdir-recursive-selftests.c (test): Use
304         get_standard_temp_dir.
305         (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP
306         ifdef.
307         * compile/compile.c (get_compile_file_tempdir): Likewise.
308
309 2018-11-01  Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
310
311         * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
312         (SIG_FRAME_LR_OFFSET64): New define.
313         (SIG_FRAME_FP_OFFSET64): New define.
314         (aix_sighandle_frame_cache): New Function.
315         (aix_sighandle_frame_this_id): New Function.
316         (aix_sighandle_frame_prev_register): New Function.
317         (aix_sighandle_frame_sniffer): New Function.
318         (aix_sighandle_frame_unwind): New global variable.
319         (rs6000_aix_init_osabi): Install new frame unwinder.
320
321 2018-10-31  Sergio Durigan Junior  <sergiodj@redhat.com>
322
323         PR gdb/23835
324         * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's
325         already defined.
326
327 2018-10-31  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
328
329         * ppc-linux-nat.c: Include nat/linux-ptrace.h.
330
331 2018-10-31  Andrew Burgess  <andrew.burgess@embecosm.com>
332
333         * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field.
334         (producer_is_icc): New function.
335         (check_producer): Set producer_is_icc field on dwarf2_cu.
336         (dwarf2_init_integer_type): New function.
337         (read_base_type): Call dwarf2_init_integer_type instead of
338         init_integer_type in all cases.
339         (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field.
340         * valprint.c (maybe_negate_by_bytes): Add an assertion that the
341         LEN is greater than 0.
342
343 2018-10-30  Tom Tromey  <tom@tromey.com>
344
345         * main.c (captured_main_1): Check return value of bfd_init.
346
347 2018-10-29  Sergio Durigan Junior  <sergiodj@redhat.com>
348
349         * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete.
350         Adjust comments.
351
352 2018-10-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
353
354         * procfs.c: Include common/pathstuff.h.
355
356 2018-10-28  Andrew Burgess  <andrew.burgess@embecosm.com>
357
358         * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
359         Add missing braces.  No functional change.
360
361 2018-10-27  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
362
363         * macrocmd.c (info_macro_command): Use report_unrecognized_option_error
364         to report a bad option and fix indentation.
365         * demangle.c (demangle_command): Use report_unrecognized_option_error
366         to report a bad option and correctly report the bad option.
367
368 2018-10-27  Tom Tromey  <tom@tromey.com>
369
370         PR cli/23364:
371         * darwin-nat.c (copied_shell): New global.
372         (may_have_sip): Rename from should_disable_startup_with_shell.
373         (copy_shell_to_cache, maybe_cache_shell): New functions.
374         (darwin_nat_target::create_inferior): Update.  Use
375         copied_shell.
376
377 2018-10-27  Tom Tromey  <tom@tromey.com>
378
379         * unittests/scoped_fd-selftests.c (test_to_file): New function.
380         (run_tests): Call test_to_file.
381         * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen
382         temporary files.
383         * common/scoped_fd.h (scoped_fd::to_file): New method.
384
385 2018-10-27  Tom Tromey  <tom@tromey.com>
386
387         * unittests/scoped_mmap-selftests.c (test_normal): Use
388         gdb_mkostemp_cloexec.
389         * unittests/scoped_fd-selftests.c (test_destroy, test_release):
390         Use gdb_mkostemp_cloexec.
391         * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
392         gnulib/config.in, gnulib/configure,
393         gnulib/import/Makefile.am, gnulib/import/Makefile.in,
394         gnulib/import/m4/gnulib-cache.m4,
395         gnulib/import/m4/gnulib-comp.m4: Update.
396         * gnulib/import/m4/mkostemp.m4: New file.
397         * gnulib/import/m4/mkstemp.m4: Remove.
398         * gnulib/import/mkostemp.c: New file.
399         * gnulib/import/mkstemp.m4: Remove.
400         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
401         mkstemp, add mkostemp.  Apply new patch.
402         * gnulib/import/stdlib.in.h: Apply patch.
403         * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
404         New file.
405         * dwarf-index-write.c (write_psymtabs_to_index): Use
406         gdb_mkostemp_cloexec.
407         * common/filestuff.h (gdb_mkostemp_cloexec): New function.
408
409 2018-10-27  Tom Tromey  <tom@tromey.com>
410
411         * unittests/mkdir-recursive-selftests.c: New file.
412         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
413         unittests/mkdir-recursive-selftests.c.
414         * dwarf-index-cache.c (mkdir_recursive): Move to
415         common/filestuff.c.
416         (index_cache::store): Check return value of mkdir_recursive.
417         (create_dir_and_check, test_mkdir_recursive): Move to new file.
418         (_initialize_index_cache): Don't register test.
419         * common/filestuff.h (mkdir_recursive): Declare.
420         * common/filestuff.c (mkdir_recursive): Move from
421         dwarf-index-cache.c.  Return bool.
422
423 2018-10-27  Tom Tromey  <tom@tromey.com>
424
425         * dwarf-index-write.c (write_psymtabs_to_index): Move
426         make_temp_filename to common/pathstuff.c.
427         * common/pathstuff.h (make_temp_filename): Declare.
428         * common/pathstuff.c (make_temp_filename): New function, moved
429         from dwarf-index-write.c.
430
431 2018-10-27  Tom Tromey  <tom@tromey.com>
432
433         * procfs.c (procfs_target::create_inferior): Use get_shell.
434         * cli/cli-cmds.c (shell_escape): Use get_shell.
435         * windows-nat.c (windows_nat_target::create_inferior): Use
436         get_shell.
437         * common/pathstuff.c (get_shell): New function.
438         * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
439         (fork_inferior): Use get_shell.
440         * common/pathstuff.h (get_shell): Declare.
441
442 2018-10-27  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
443
444         * NEWS: Mention changes to 'info [args|functions|locals|variables]'
445
446 2018-10-27  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
447
448         * stack.c (print_variable_and_value_data): Add preg and treg.
449         (print_frame_local_vars): Add quiet, regexp and t_regexp arguments,
450         and update callers.
451         (print_frame_arg_vars): Likewise.
452         (prepare_reg): New function.
453         (info_locals_command): Extract info print args and use them.
454         (info_args_command): Likewise.
455         (_initialize_stack): Modify on-line help.
456         * symtab.c (treg_matches_sym_type_name): New function.
457         (search_symbols): New arg t_regexp.
458         (symtab_symbol_info): New args quiet, regexp, t_regexp.
459         (info_variables_command): Extract info print args and use them.
460         (info_functions_command): Likewise.
461         (info_types_command): Update call to symtab_symbol_info.
462         (_initialize_symtab): Modify on-line help.
463         * symtab.h (treg_matches_sym_type_name): New function.
464         (search_symbols): New t_regexp arg.
465
466 2018-10-27  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
467
468         * cli-utils.c (extract_arg_maybe_quoted): New function.
469         (extract_info_print_args): New function.
470         (info_print_args_help): New function.
471         (report_unrecognized_option_error): New function.
472         * cli-utils.h (extract_arg_maybe_quoted): New function.
473         (extract_info_print_args): New function.
474         (info_print_args_help): New function.
475         (report_unrecognized_option_error): New function.
476
477 2018-10-26  Tom Tromey  <tom@tromey.com>
478
479         * dwarf2read.c (recursively_compute_inclusions): Use std::vector.
480         (compute_compunit_symtab_includes): Update.
481         * symtab.h: (symtab_ptr): Remove typedef.  Don't define a VEC.
482         (compunit_symtab_ptr): Likewise.
483
484 2018-10-26  John Baldwin  <jhb@FreeBSD.org>
485
486         * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
487         default_print_auxv_entry for specific tag values.
488
489 2018-10-26  John Baldwin  <jhb@FreeBSD.org>
490
491         * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2.
492
493 2018-10-26  Jim Wilson  <jimw@sifive.com>
494
495         * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
496         (riscv_linux_sigframe_init): Declare.
497         (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
498         (riscv_linux_sigframe): New.
499         (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
500         (riscv_linux_sigframe_init): Define.
501         (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
502
503         * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment.
504         (riscv_isa_flen): Likewise.  Drop static.
505         * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here.
506         (riscv_isa_flen): Likewise.  Declare.
507
508 2018-10-26  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
509             Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
510
511         * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l)
512         (tdesc_powerpc_isa207_htm_vsx64l): Declare.
513         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET)
514         (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET)
515         (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET)
516         (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET)
517         (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET):
518         Define.
519         (struct ppc_linux_features) <htm>: New field.
520         (ppc_linux_no_features): Add initializer for htm field.
521         * arch/ppc-linux-common.c (ppc_linux_match_description): Return
522         new tdescs.
523         * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR)
524         (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX)
525         (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR):
526         Define if not already defined.
527         * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l
528         and rs6000/powerpc-isa207-htm-vsx64l.
529         (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and
530         rs6000/powerpc-isa207-htm-vsx64l.xml.
531         * features/rs6000/power-htm-spr.xml: New file.
532         * features/rs6000/power-htm-core.xml: New file.
533         * features/rs6000/power64-htm-core.xml: New file.
534         * features/rs6000/power-htm-fpu.xml: New file.
535         * features/rs6000/power-htm-altivec.xml: New file.
536         * features/rs6000/power-htm-vsx.xml: New file.
537         * features/rs6000/power-htm-ppr.xml: New file.
538         * features/rs6000/power-htm-dscr.xml: New file.
539         * features/rs6000/power-htm-tar.xml: New file.
540         * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file.
541         * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file.
542         * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate.
543         * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate.
544         * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate.
545         * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate.
546         * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
547         fetch_regset with HTM regsets.
548         (store_register, store_ppc_registers): Call store_regset with HTM
549         regsets.
550         (ppc_linux_nat_target::read_description): Set htm field in the
551         features struct if needed.
552         * ppc-linux-tdep.c: Include
553         features/rs6000/powerpc-isa207-htm-vsx32l.c and
554         features/rs6000/powerpc-isa207-htm-vsx64l.c.
555         (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr)
556         (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx)
557         (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr)
558         (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals.
559         (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset)
560         (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset)
561         (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset)
562         (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset)
563         (ppc32_linux_cpprregset, ppc32_linux_cdscrregset)
564         (ppc32_linux_ctarregset): New globals.
565         (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions.
566         (ppc_linux_collect_core_cpgrregset): New function.
567         (ppc_linux_iterate_over_regset_sections): Call back with the htm
568         regsets.
569         (ppc_linux_core_read_description): Check if the tm spr section is
570         present and set htm in the features struct.
571         (_initialize_ppc_linux_tdep): Call
572         initialize_tdesc_powerpc_isa207_htm_vsx32l and
573         initialize_tdesc_powerpc_isa207_htm_vsx64l.
574         * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset):
575         Declare.
576         (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset)
577         (ppc32_linux_cvsxregset, ppc32_linux_cpprregset)
578         (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare.
579         * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>:
580         New fields.
581         <have_htm_fpu, have_htm_altivec, have_htm_vsx>:
582         Likewise.
583         <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise.
584         <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise.
585         (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>:
586         New enum fields.
587         <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise.
588         <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise.
589         <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise.
590         <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise.
591         <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise.
592         <PPC_CTAR_REGNUM>: Likewise.
593         (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM)
594         (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define.
595         * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG)
596         (IS_CEFP_PSEUDOREG): Define.
597         (rs6000_register_name): Hide the upper halves of checkpointed VSX
598         registers.  Return names for the checkpointed DFP, VSX, and EFP
599         pseudo registers.
600         (rs6000_pseudo_register_type): Remove initial assert and raise an
601         internal error in the else clause instead.  Return types for the
602         checkpointed DFP, VSX, and EFP pseudo registers.
603         (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle
604         checkpointed DFP pseudo registers.
605         (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle
606         checkpointed VSX pseudo registers.
607         (efp_pseudo_register_read, efp_pseudo_register_write): Rename
608         from efpr_pseudo_register_read and
609         efpr_pseudo_register_write.  Handle checkpointed EFP pseudo
610         registers.
611         (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
612         Handle checkpointed DFP, VSX, and EFP registers.
613         (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect)
614         (efp_ax_pseudo_register_collect): New functions.
615         (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo
616         register logic to new functions.  Handle checkpointed DFP, VSX,
617         and EFP pseudo registers.
618         (rs6000_gdbarch_init): Look for and validate the htm features.
619         Include checkpointed DFP, VSX and EFP pseudo-registers.
620         * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and
621         HTM registers.
622
623 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
624
625         * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but
626         without altivec or fpu.
627
628 2018-10-26  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
629             Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
630
631         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET)
632         (PPC_LINUX_SIZEOF_PMUREGSET): Declare.
633         * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU):
634         Define if not already defined.
635         * features/rs6000/power-ebb.xml: New file.
636         * features/rs6000/power-linux-pmu.xml: New file.
637         * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu
638         features.
639         * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise.
640         * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate.
641         * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate.
642         * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate.
643         * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate.
644         * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
645         fetch_regset with ebb and pmu regsets.
646         (store_register, store_ppc_registers): Call store_regset with ebb
647         and pmu regsets.
648         (ppc_linux_nat_target::read_description): Set isa207 field in the
649         features struct if ebb and pmu are avaiable.
650         * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu)
651         (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals.
652         (ppc_linux_iterate_over_regset_sections): Call back with the ebb
653         and pmu regsets.
654         (ppc_linux_core_read_description): Check if the pmu section is
655         present and set isa207 in the features struct.
656         * ppc-linux-tdep.h (ppc32_linux_ebbregset)
657         (ppc32_linux_pmuregset): Declare.
658         * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field.
659         <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields.
660         <ppc_sier_regnum>: New field.
661         (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>:
662         New enum values.
663         <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum
664         values.
665         <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values.
666         (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define.
667         * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the
668         ebb and pmu features.
669
670 2018-10-26  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
671             Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
672
673         * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l)
674         (tdesc_powerpc_isa207_vsx64l): Declare.
675         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define.
676         (struct ppc_linux_features) <isa207>: New field.
677         (ppc_linux_no_features): Add initializer for isa207 field.
678         * arch/ppc-linux-common.c (ppc_linux_match_description): Return
679         new tdescs.
680         * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR)
681         (NT_PPC_TAR): Define if not already defined.
682         * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and
683         rs6000/powerpc-isa207-vsx64l.
684         (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and
685         rs6000/powerpc-isa207-vsx64l.xml.
686         * features/rs6000/power-tar.xml: New file.
687         * features/rs6000/powerpc-isa207-vsx32l.xml: New file.
688         * features/rs6000/powerpc-isa207-vsx64l.xml: New file.
689         * features/rs6000/powerpc-isa207-vsx32l.c: Generate.
690         * features/rs6000/powerpc-isa207-vsx64l.c: Generate.
691         * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate.
692         * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate.
693         * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
694         fetch_regset with the TAR regset.
695         (store_register, store_ppc_registers): Call store_regset with the
696         TAR regset.
697         (ppc_linux_nat_target::read_description): Set isa207 field in the
698         features struct if needed.
699         * ppc-linux-tdep.c: Include
700         features/rs6000/powerpc-isa207-vsx32l.c and
701         features/rs6000/powerpc-isa207-vsx64l.c.
702         (ppc32_regmap_tar, ppc32_linux_tarregset): New globals.
703         (ppc_linux_iterate_over_regset_sections): Call back with the tar
704         regset.
705         (ppc_linux_core_read_description): Check if the tar section is
706         present and set isa207 in the features struct.
707         (_initialize_ppc_linux_tdep): Call
708         initialize_tdesc_powerpc_isa207_vsx32l and
709         initialize_tdesc_powerpc_isa207_vsx64l.
710         * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare.
711         * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field.
712         (enum) <PPC_TAR_REGNUM>: New enum value.
713         * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar
714         feature.
715         (ppc_process_record_op31): Record changes to TAR.
716
717 2018-10-26  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
718             Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
719
720         * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l)
721         (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare.
722         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET)
723         (PPC_LINUX_SIZEOF_DSCRREGSET): Define.
724         (struct ppc_linux_features) <ppr_dscr>: New field.
725         (ppc_linux_no_features): Add initializer for ppr_dscr field.
726         * arch/ppc-linux-common.c (ppc_linux_match_description): Return
727         new tdescs.
728         * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR):
729         Define if not already defined.
730         * features/Makefile (WHICH): Add
731         rs6000/powerpc-isa205-ppr-dscr-vsx32l and
732         rs6000/powerpc-isa205-ppr-dscr-vsx64l.
733         (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
734         rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml.
735         * features/rs6000/power-dscr.xml: New file.
736         * features/rs6000/power-ppr.xml: New file.
737         * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file.
738         * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file.
739         * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate.
740         * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate.
741         * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate.
742         * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate.
743         * ppc-linux-nat.c: Include <sys/uio.h>.
744         (fetch_regset, store_regset, check_regset): New functions.
745         (fetch_register, fetch_ppc_registers): Call fetch_regset with
746         DSCR and PPR regsets.
747         (store_register, store_ppc_registers): Call store_regset with
748         DSCR and PPR regsets.
749         (ppc_linux_get_hwcap2): New function.
750         (ppc_linux_nat_target::read_description): Call
751         ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the
752         features struct if needed.
753         * ppc-linux-tdep.c: Include
754         features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and
755         features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c.
756         (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset)
757         (ppc32_linux_dscrregset): New globals.
758         (ppc_linux_iterate_over_regset_sections): Call back with the ppr
759         and dscr regsets.
760         (ppc_linux_core_read_description): Check if the ppr and dscr
761         sections are present and set ppr_dscr in the features struct.
762         (_initialize_ppc_linux_tdep): Call
763         initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and
764         initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l.
765         * ppc-linux-tdep.h (ppc32_linux_pprregset)
766         (ppc32_linux_dscrregset): Declare.
767         * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field.
768         <ppc_dscr_regnum>: New field.
769         (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values.
770         * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr
771         and dscr features.
772         (ppc_process_record_op31): Record changes to PPR and DSCR.
773
774 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
775
776         * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
777         second initializer line for the have_* variables.  Initialize
778         have_fpu to 0 instead of 1.
779
780 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
781
782         * arch/ppc-linux-common.c (ppc_linux_match_description):
783         Parenthesize tdesc assignements and indent them properly.
784
785 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
786
787         * ppc-linux-nat.c (fetch_register): Change if statement to else
788         if.
789         (store_register): Likewise.
790
791 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
792
793         * rs6000-tdep.c: Remove reggroups.h include.
794         (rs6000_pseudo_register_reggroup_p): Remove.
795         (rs6000_gdbarch_init): Remove call to
796         set_tdesc_pseudo_register_reggroup_p.
797
798 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
799
800         * reggroups.c (default_register_reggroup_p): Return true for
801         decfloat registers and float_reggroup.
802
803 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
804
805         * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove.
806         (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace
807         ppc_linux_collect_vrregset by regcache_collect_regset.
808
809 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
810
811         * linux-tdep.c (linux_collect_regset_section_cb): Use
812         std::vector<gdb_byte> instead of char * and malloc for buf.
813         Remove xfree.
814
815 2018-10-26  Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
816
817         * xcoffread.c (read_xcoff_symtab): Pass deduced language to
818         symtab_start instead of always using language_unknown.
819
820 2018-10-26  Andrew Burgess  <andrew.burgess@embecosm.com>
821
822         * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove
823         READ_P parameter, catch and ignore register access errors from
824         either the old or new MISA location.
825         (riscv_has_feature): Update call to riscv_read_misa_reg.
826
827 2018-10-25  Andrew Burgess  <andrew.burgess@embecosm.com>
828
829         * python/py-function.c (convert_values_to_python): Return
830         gdbpy_ref<>.  Add header comment.
831         (fnpy_call): Adjust.
832
833 2018-10-25  Andrew Burgess  <andrew.burgess@embecosm.com>
834
835         * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
836         (cmdpy_completer_handle_brkchars): Adjust.
837         (cmdpy_completer): Adjust.
838
839 2018-10-25  Andrew Burgess  <andrew.burgess@embecosm.com>
840
841         * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
842         Pass correct regnum to raw_supply_zeroed.
843
844 2018-10-23  Hafiz Abid Qadeer  <abidh@codesourcery.com>
845
846         * regcache.c (cooked_read_test): Add CSKY to the list of
847         architectures with a save_reggroup
848
849 2018-10-23  Simon Marchi  <simon.marchi@polymtl.ca>
850
851         PR gdb/23368
852         * infrun.c (follow_exec): In the follow_exec_mode_new case,
853         transfer terminal state from old new new inferior.
854         * terminal.h (swap_terminal_info): New function.
855         * inflow.c (swap_terminal_info): New function.
856
857 2018-10-23  Tom Tromey  <tom@tromey.com>
858
859         * record-btrace.c (get_thread_current_frame_id): Rename from
860         get_thread_current_frame.  Return a frame_id.
861         (record_btrace_start_replaying): Update.
862
863 2018-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
864
865         * riscv-tdep.c (riscv_register_name): Use the user-friendly names
866         for CSRs.
867
868 2018-10-23  Joel Brobecker  <brobecker@adacore.com>
869
870         * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
871         have_nonsteppable_watchpoint attribute to 1.
872
873 2018-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
874
875         * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
876         register names.
877         (struct register_alias): Rename to...
878         (struct riscv_register_alias): ...this, and update comment.
879         (riscv_register_aliases): Update type, and alias names.  Remove
880         CSR names from this list.
881         (riscv_register_name): Use riscv_gdb_reg_names for int and float
882         register names.  Add an extra assertion.
883         (riscv_is_regnum_a_named_csr): New function.
884         (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
885
886 2018-10-22  Jim Wilson  <jimw@sifive.com>
887
888         * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
889         FP reg smaller than FP reg size, and fill with -1 instead of 0.
890
891         * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
892         (riscv_register_type): Use them.
893         (riscv_print_one_register_info): Handle union of floats same as float.
894         * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
895         riscv_fpreg_q_type fields.
896
897 2018-10-21  Simon Marchi  <simon.marchi@ericsson.com>
898
899         * gdbarch.sh (gdbarch_num_cooked_regs): New.
900         * gdbarch.h: Re-generate.
901         * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
902         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
903         * eval.c (evaluate_subexp_standard): Likewise.
904         * findvar.c (value_of_register): Likewise.
905         (value_of_register_lazy): Likewise.
906         (address_from_register): Likewise.
907         * frame.c (get_frame_register_bytes): Likewise.
908         * gdbarch-selftests.c (register_to_value_test): Likewise.
909         * h8300-tdep.c (h8300_register_type): Likewise.
910         * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
911         (i386_svr4_reg_to_regnum): Likewise.
912         * infcmd.c (default_print_registers_info): Likewise.
913         (registers_info): Likewise.
914         (print_vector_info): Likewise.
915         (default_print_float_info): Likewise.
916         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
917         * mdebugread.c (mdebug_reg_to_regnum): Likewise.
918         * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
919         (mi_cmd_data_list_changed_registers): Likewise.
920         (mi_cmd_data_list_register_values): Likewise.
921         (mi_cmd_data_write_register_values): Likewise.
922         (mi_cmd_trace_frame_collected): Likewise.
923         * mips-tdep.c (print_gp_register_row): Likewise.
924         (mips_print_registers_info): Likewise.
925         * nds32-tdep.c (nds32_gdbarch_init): Likewise.
926         * regcache.c (init_regcache_descr): Likewise.
927         (register_size): Likewise.
928         (register_dump::dump): Likewise.
929         (cooked_read_test): Likewise.
930         (cooked_write_test): Likewise.
931         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
932         (rs6000_gdbarch_init): Likewise.
933         * stabsread.c (stab_reg_to_regnum): Likewise.
934         * stack.c (info_frame_command): Likewise.
935         * target-descriptions.c (tdesc_register_name): Likewise.
936         * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
937         * tui/tui-regs.c (tui_show_register_group): Likewise.
938         * user-regs.c (user_reg_map_name_to_regnum): Likewise.
939         (user_reg_map_regnum_to_name): Likewise.
940         (value_of_user_reg): Likewise.
941         (maintenance_print_user_registers): Likewise.
942         * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
943         (xtensa_register_name): Likewise.
944         (xtensa_register_type): Likewise.
945         (xtensa_reg_to_regnum): Likewise.
946         (xtensa_pseudo_register_read): Likewise.
947         (xtensa_pseudo_register_write): Likewise.
948
949 2018-10-21  Simon Marchi  <simon.marchi@polymtl.ca>
950
951         * amd64-tdep.c (amd64_pseudo_register_read_value): Use
952         correctly-sized buffer with raw_read.
953         (amd64_pseudo_register_write): Use correctly-sized buffer for
954         raw_read/raw_write.
955
956 2018-10-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
957
958         * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
959         in add_prefix_cmd of set print type.
960
961 2018-10-19  Tom Tromey  <tom@tromey.com>
962
963         PR tui/18388:
964         * NEWS: Mention tabset deprecation.
965         * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
966         (update_tab_width): New function.
967         (tui_set_tab_width, tui_show_tab_width): New functions.
968         (tui_set_tab_width_command): Use update_tab_width.
969         (_initialize_tui_win): Move to end of file.  Deprecate "tabset".
970         Add new "set tui tab-width" command.
971         * tui/tui-source.c (tui_set_source_content): Update.
972         * tui/tui-disasm.c (tui_set_disassem_content): Update.
973         * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
974         Don't declare.
975         (tui_tab_width): Declare.
976         * tui/tui-data.c (default_tab_len, tui_default_tab_len)
977         (tui_set_default_tab_len): Remove.
978
979 2018-10-19  Tom Tromey  <tom@tromey.com>
980
981         * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
982         (key_is_backspace, tui_getc): Don't declare.
983         * tui/tui-io.c (key_is_start_sequence): Now static.
984         (key_is_end_sequence, key_is_backspace): Remove.
985         (tui_getc): Now static.
986
987 2018-10-19  Tom Tromey  <tom@tromey.com>
988
989         * symfile.c (reread_symbols): Clear "static_links".
990
991 2018-10-19  Alan Hayward  <alan.hayward@arm.com>
992
993         * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
994         define.
995         (aarch64_linux_sigframe_init): Extra boundary checks.
996
997 2018-10-19  Andreas Arnez  <arnez@linux.ibm.com>
998
999         * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
1000         the possibly non-existent tdesc type 'vec128', but the type of raw
1001         register v16 instead.
1002
1003 2018-10-19  Gary Benson <gbenson@redhat.com>
1004
1005         * cli/cli-interp.c (cli_interp::~cli_interp): New function.
1006
1007 2018-10-18  Sergio Durigan Junior  <sergiodj@redhat.com>
1008
1009         PR cli/23785
1010         * cli/cli-dump.c (restore_binary_file): Check if "file" is
1011         NULL.
1012
1013 2018-10-17  Paul Koning  <paul_koning@dell.com>
1014
1015         * charset.c (convert_between_encodings): Fix unsigned overflow.
1016
1017 2018-10-17  John Baldwin  <jhb@FreeBSD.org>
1018
1019         * fbsd-nat.c (fbsd_nat_target::info_proc) Use
1020         fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
1021         * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
1022         (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1023         New functions.
1024         (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
1025         and fbsd_info_proc_mappings_header.
1026         * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
1027         (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1028         New.
1029
1030 2018-10-17  Joel Brobecker  <brobecker@adacore.com>
1031
1032         * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
1033         Solaris Maintainer.
1034
1035 2018-10-15  Tom Tromey  <tom@tromey.com>
1036
1037         * tui/tui.c (strcat_to_buf): Remove casts.
1038         * tui/tui-winsource.c (tui_show_source_line)
1039         (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
1040         * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
1041         * tui/tui-windata.c (tui_first_data_item_displayed)
1042         (tui_delete_data_content_windows, tui_erase_data_content)
1043         (tui_display_all_data, tui_display_data_from)
1044         (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
1045         * tui/tui-win.c (tui_set_win_height)
1046         (make_invisible_and_set_new_height, parse_scrolling_args): Remove
1047         casts.
1048         * tui/tui-win.c (tui_resize_all): Remove casts.
1049         (tui_scroll_backward_command, tui_set_focus)
1050         (tui_set_tab_width_command): Likewise.
1051         * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
1052         * tui/tui-regs.c (tui_show_register_group): Remove cast.
1053         * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
1054         * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
1055         * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
1056         Remove casts.
1057
1058 2018-10-15  Simon Marchi  <simon.marchi@ericsson.com>
1059
1060         * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
1061         AArch64/ARM maintainer.
1062
1063 2018-10-11  Gary Benson <gbenson@redhat.com>
1064
1065         * interps.h (interp::m_name): Make private and mutable.
1066         * interps.c (interp::~interp): Free m_name.
1067
1068 2018-10-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1069             Simon Marchi <simark@simark.ca>
1070
1071         * README (`configure' options): Add documentation for new
1072         "--enable-unit-tests" option.
1073         * acinclude.m4: Include "selftest.m4".
1074         * configure: Regenerate.
1075         * configure.ac: Use "GDB_AC_SELFTEST".
1076         * maint.c (maintenance_selftest): Update message informing
1077         that selftests have been disabled.
1078         (maintenance_info_selftests): Likewise.
1079         * selftest.m4: New file.
1080
1081 2018-10-10  Gary Benson <gbenson@redhat.com>
1082
1083         * remote.c (remote_target::remote_send_printf): Add
1084         missing va_end found by Coverity.
1085
1086 2018-10-10  Markus Metzger  <markus.t.metzger@intel.com>
1087
1088         * btrace.c (ftrace_update_function): Add indirect jump heuristic.
1089
1090 2018-10-09  Tom Tromey  <tom@tromey.com>
1091
1092         * configure: Rebuild.
1093         * sanitize.m4 (AM_GDB_UBSAN): Default to no.
1094         * NEWS: Update --enable-ubsan documentation.
1095
1096 2018-10-09  Gary Benson <gbenson@redhat.com>
1097
1098         * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
1099         found by Coverity.
1100
1101 2018-10-08  Tom Tromey  <tom@tromey.com>
1102
1103         * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
1104         variable.
1105         (riscv_fbsd_init_abi): Likewise.
1106
1107 2018-10-08  Weimin Pan  <weimin.pan@oracle.com>
1108         * valops.c (value_struct_elt_for_reference): Rename local variable
1109         to work around the shadowing a previous local warning.
1110
1111 2018-10-08  John Baldwin  <jhb@FreeBSD.org>
1112
1113         * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
1114         * NEWS: Mention new FreeBSD/riscv native configuration.
1115         * configure.host: Add riscv*-*-freebsd*.
1116         * configure.nat: Likewise.
1117         * riscv-fbsd-nat.c: New file.
1118
1119 2018-10-08  John Baldwin  <jhb@FreeBSD.org>
1120
1121         * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
1122         (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
1123         (ALLDEPFILES): Add riscv-fbsd-tdep.c.
1124         * NEWS: Mention new FreeBSD/riscv target.
1125         * configure.tgt: Add riscv*-*-freebsd*.
1126         * riscv-fbsd-tdep.c: New file.
1127         * riscv-fbsd-tdep.h: New file.
1128
1129 2018-10-08  John Baldwin  <jhb@FreeBSD.org>
1130
1131         * regcache.h (struct regcache_map_entry): Note that this type can
1132         be used with traditional frame caches.
1133         * trad-frame.c (trad_frame_set_reg_regmap): New.
1134         * trad-frame.h (trad_frame_set_reg_regmap): New.
1135
1136 2018-10-08  Weimin Pan  <weimin.pan@oracle.com>
1137
1138         PR c++/16841
1139         * valops.c (get_virtual_base_offset): New function.
1140         (value_struct_elt_for_reference): Use it to get virtual base offset
1141         and add it in calculating class member address.
1142
1143 2018-10-08   John Darrington <john@darrington.wattle.id.au>
1144
1145     * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
1146       (check_producer): Check if the producer is codewarrior.
1147       (producer_is_codewarrior): New function.
1148       (lnp_state_machine::record_line): Ignore is_stmt flag for records
1149        produced by codewarrior.
1150       (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
1151
1152 2018-10-06  Tom Tromey  <tom@tromey.com>
1153
1154         PR python/19399:
1155         * python/py-inferior.c: Add "architecture" entry.
1156         (infpy_architecture): New function.
1157
1158 2018-10-06  Tom Tromey  <tom@tromey.com>
1159
1160         PR python/21765:
1161         * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
1162         SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
1163         SYMBOL_TYPES_DOMAIN.  Define SYMBOL_MODULE_DOMAIN,
1164         SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
1165
1166 2018-10-06  Tom Tromey  <tom@tromey.com>
1167
1168         PR build/17077:
1169         * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
1170         * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
1171         microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
1172         #include.
1173
1174 2018-10-06  Tom Tromey  <tom@tromey.com>
1175
1176         * python/py-breakpoint.c (bppy_get_location): Handle a
1177         bp_breakpoint without a location.
1178
1179 2018-10-06  Tom Tromey  <tom@tromey.com>
1180
1181         * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
1182         (_RegEx): Reformat help text.
1183         * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
1184         (AnyCallerIs, AnyCallerMatches): Reformat help text.
1185         * python/lib/gdb/function/as_string.py (_AsString): Reformat help
1186         text.
1187         * python/lib/gdb/command/xmethods.py (InfoXMethod)
1188         (EnableXMethod, DisableXMethod): Remove help indentation.
1189         Capitalize meta-syntactic variables.
1190         * python/lib/gdb/command/unwinders.py (InfoUnwinder)
1191         (EnableUnwinder, DisableUnwinder): Remove help indentation.
1192         Capitalize meta-syntactic variables.
1193         * python/lib/gdb/command/explore.py (ExploreCommand)
1194         (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
1195         * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
1196         (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
1197         * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
1198         Remove help indentation.
1199         (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
1200         * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
1201         (DisableFrameFilter, SetFrameFilterPriority)
1202         (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
1203
1204 2018-10-06  Tom Tromey  <tom@tromey.com>
1205
1206         PR tui/28819:
1207         * tui/tui-io.c (gdb_wgetch): New function.
1208         (tui_mld_getc, tui_getc): Use it.
1209
1210 2018-10-05  Tom Tromey  <tom@tromey.com>
1211
1212         * sol-thread.c (sol_thread_target::wait): Rename inner
1213         "save_ptid".
1214
1215 2018-10-04  Tom Tromey  <tom@tromey.com>
1216
1217         * configure: Rebuild.
1218         * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
1219
1220 2018-10-04  Tom Tromey  <tom@tromey.com>
1221
1222         * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
1223         declaration of "block".
1224
1225 2018-10-04  Tom Tromey  <tom@tromey.com>
1226
1227         * common/filestuff.c (fdwalk): Remove inner declaration of
1228         "result".
1229
1230 2018-10-04  Tom Tromey  <tom@tromey.com>
1231
1232         * msp430-tdep.c (msp430_push_dummy_call): Rename inner
1233         "structs_addr" and hoist declaration.
1234
1235 2018-10-04  Tom Tromey  <tom@tromey.com>
1236
1237         * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
1238         variable "size".
1239
1240 2018-10-04  Tom Tromey  <tom@tromey.com>
1241
1242         * mdebugread.c (parse_partial_symbols): Use std::string.
1243
1244 2018-10-04  Tom Tromey  <tom@tromey.com>
1245
1246         * ctf.c (SET_ARRAY_FIELD): Rename "u32".
1247         * p-valprint.c (pascal_val_print): Split inner "i" variable.
1248         * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
1249         header.
1250         * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
1251         more inner scope.
1252         * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
1253         * varobj.c (varobj_update): Rename inner "newobj",
1254         "type_changed".
1255         * valprint.c (generic_emit_char): Rename inner "buf".
1256         * valops.c (find_overload_match): Rename inner "temp".
1257         (value_struct_elt_for_reference): Declare "v" in more inner
1258         scope.
1259         * v850-tdep.c (v850_push_dummy_call): Rename "len".
1260         * unittests/array-view-selftests.c (run_tests): Rename inner
1261         "vec".
1262         * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
1263         header.
1264         * tracepoint.c (merge_uploaded_trace_state_variables): Declare
1265         "tsv" in more inner scope.
1266         (print_one_static_tracepoint_marker): Rename inner
1267         "tuple_emitter".
1268         * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
1269         (tic6x_push_dummy_call): Don't redeclare "addr".
1270         * target-float.c: Declare "dto" lower.
1271         * symtab.c (lookup_local_symbol): Rename inner "sym".
1272         (find_pc_sect_line): Rename inner "pc".
1273         * stack.c (print_frame): Don't redeclare "gdbarch".
1274         (return_command): Rename inner "gdbarch".
1275         * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
1276         "sp".
1277         * rust-lang.c (rust_internal_print_type): Declare "i" in loop
1278         header.
1279         * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
1280         * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
1281         scope.
1282         * remote.c (remote_target::update_thread_list): Don't redeclare
1283         "tp".
1284         (remote_target::process_initial_stop_replies): Rename inner
1285         "thread".
1286         (remote_target::remote_parse_stop_reply): Don't redeclare "p".
1287         (remote_target::wait_as): Don't redeclare "stop_reply".
1288         (remote_target::get_thread_local_address): Rename inner
1289         "result".
1290         (remote_target::get_tib_address): Likewise.
1291
1292         * regcache.c (cooked_read_test): Rename "regnum".
1293         * record-btrace.c (cmd_record_btrace_start): Rename inner
1294         "exception".
1295         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
1296         loop header.
1297         * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
1298         header.
1299         (ppu2spu_sniffer): Rename inner "buf".
1300         * parse.c (operator_check_standard): Rename inner "type",
1301         "objfile".
1302         * p-valprint.c (pascal_val_print): Introduce new scope for
1303         "low_bound", "high_bound".
1304         * p-exp.y (yylex): Declare "i" in loop header.
1305         * objfiles.c (objfile_relocate1): Declare "i" in loop header.
1306         Lower declaration of "s".
1307         * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
1308         header.
1309         (nios2_push_dummy_call): Rename "len".
1310         * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
1311         "buf".
1312         (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
1313         (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
1314         (linux_xfer_osdata_modules): Likewise.
1315         * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
1316         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
1317         (mips_o64_push_dummy_call): Likewise.
1318         * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
1319         "op".
1320         * mi/mi-main.c (list_available_thread_groups): Rename inner
1321         "tuple_emitter".
1322         (mi_cmd_data_read_memory): Rename inner "opts".
1323         * mi/mi-cmd-var.c (varobj_update_one): Rename inner
1324         "tuple_emitter".
1325         * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
1326         * mdebugread.c (parse_symbol): Rename inner "b".  Declare "f" in
1327         more inner scope.
1328         (parse_partial_symbols): Rename inner "pst", "p", "name"
1329         * main.c (captured_main_1): Rename inner "i"s.
1330         * machoread.c (macho_symfile_read_all_oso): Don't redeclare
1331         "oso2".
1332         * linux-tdep.c (linux_info_proc): Rename inner "filename".
1333         * linespec.c (linespec_lexer_lex_string): Rename inner "p".
1334         * infrun.c (handle_no_resumed): Don't redeclare "thread".
1335         (handle_signal_stop): Rename inner "gdbarch".
1336         (handle_command): Declare "signum" in loop header.
1337         * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
1338         "status".
1339         (examine_prologue): Rename inner "sol" and "sof".
1340         (ia64_extract_return_value): Rename inner "val".  Declare another
1341         "val" in a more inner scope.
1342         * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
1343         inner scope.
1344         * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
1345         "except".
1346         * findvar.c (default_read_var_value): Don't redeclare "addr".
1347         * f-exp.y (yylex): Declare "i" in loop header.
1348         * eval.c (evaluate_subexp_standard): Don't redeclare "type".
1349         Rename inner "type", "expect_type".
1350         (evaluate_subexp_for_sizeof): Rename inner "pc".
1351         * elfread.c (elf_symfile_read): Rename inner "abfd".
1352         * dwarf2read.c (read_debug_names_from_section): Don't redeclare
1353         "bytes_read".
1354         (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
1355         (add_partial_subprogram): Rename inner "lowpc" and "highpc".
1356         (dwarf_decode_line_header): Rename inner "lh".
1357         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
1358         "offset".  Declare "i" in loop header.
1359         (disassemble_dwarf_expression): Rename inner "addr_size".
1360         * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
1361         inner "result".
1362         (dwarf_expr_context::execute_stack_op): Rename inner "offset".
1363         * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
1364         * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
1365         "inner_list_emitter".
1366         (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
1367         * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
1368         declaration in a block.
1369         * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
1370         * cp-valprint.c (cp_print_value_fields): Don't redeclare
1371         "obstack_final_size".
1372         * cp-support.c (inspect_type): Declare "i" in loop header.
1373         * compile/compile.c (compile_instance::insert_symbol_error):
1374         Rename inner "e".
1375         * common/agent.c (agent_run_command): Remove inner "ret"
1376         declaration.
1377         * coffread.c (coff_symfile_read): Rename inner "name".
1378         (coff_symfile_read): Rename inner "abfd".
1379         * cli/cli-utils.c (get_number_trailer): Rename inner "val".
1380         * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
1381         "high".
1382         * c-exp.y (lex_one_token): Move "len" declaration lower.
1383         * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
1384         "gdbarch".
1385         (create_exception_master_breakpoint): Likewise.  Don't redeclare
1386         "b".
1387         (watch_command_1): Declare "mark" later.
1388         (clear_command): Don't shadow "a" or "b".
1389         (delete_command): Rename inner "b".
1390         (delete_trace_command): Likewise.
1391         * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
1392         "op".
1393         (arm_gdbarch_init): Remove inner "e_flags".
1394         * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
1395         "offset" in inner blocks.
1396
1397 2018-10-04  Simon Marchi  <simon.marchi@ericsson.com>
1398
1399         * dwarf-index-write.c (file_write): Don't write if the vector is
1400         empty.
1401
1402 2018-10-05  Tom de Vries  <tdevries@suse.de>
1403
1404         * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
1405         PyArg_ParseTuple call.
1406
1407 2018-10-05  Tom de Vries  <tdevries@suse.de>
1408
1409         * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
1410         PyArg_ParseTuple call.
1411
1412 2018-10-04  Joel Brobecker  <brobecker@adacore.com>
1413
1414         * psymtab.c (recursively_search_psymtabs): Reformat parameters
1415         to avoid exceeding 80 characters per line limit.
1416
1417 2018-10-04  Tom Tromey  <tom@tromey.com>
1418
1419         * symfile.c (syms_from_objfile_1, finish_new_objfile)
1420         (reread_symbols): Update.
1421         * complaints.h (clear_complaints): Remove argument.
1422         * complaints.c (enum complaint_series): Remove.
1423         (series): Remove global.
1424         (complaint_internal): Update.
1425         (clear_complaints): Remove argument.
1426
1427 2018-10-04  Tom Tromey  <tom@tromey.com>
1428
1429         * symfile.c (symbol_file_add_with_addrs): Do not print "no
1430         debugging symbols" message if there is a separate debug objfile.
1431
1432 2018-10-04  Tom Tromey  <tom@tromey.com>
1433
1434         PR cli/19551:
1435         * symfile.c (symbol_file_add_with_addrs): Update output.
1436         * psymtab.c (require_partial_symbols): Update output.
1437
1438 2018-10-04  Tom Tromey  <tom@tromey.com>
1439
1440         PR cli/22234:
1441         * complaints.c: Emit \n.
1442
1443 2018-10-04  Tom Tromey  <tom@tromey.com>
1444
1445         * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
1446         (separate_debug_file_exists, find_separate_debug_file)
1447         (add_symbol_file_command, reread_symbols, allocate_symtab)
1448         (allocate_compunit_symtab): Use filtered printing, not
1449         unfiltered.
1450         * psymtab.c (require_partial_symbols, dump_psymtab)
1451         (allocate_psymtab): Use filtered printing, not unfiltered.
1452
1453 2018-10-04  Tom Tromey  <tom@tromey.com>
1454
1455         * complaints.c (complaint_internal): Correctly check complaint
1456         count.
1457
1458 2018-10-04  Tom Tromey  <tom@tromey.com>
1459
1460         * complaints.h (struct complaints): Remove declaration.
1461         * complaints.c (clear_complaints): Remove an unused variable.
1462
1463 2018-10-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1464
1465         * MAINTAINERS (Write After Approval): Add self.
1466
1467 2018-10-03  Tom Tromey  <tom@tromey.com>
1468
1469         * guile/scm-value.c (gdbscm_value_to_string): Initialize
1470         "buffer_contents".
1471         * coffread.c (coff_symtab_read): Initialize "newobj".
1472
1473 2018-10-03  Simon Marchi  <simon.marchi@polymtl.ca>
1474
1475         * dwarf2read.c (read_func_scope): Remove struct keyword in
1476         range-based for.
1477
1478 2018-10-03  Tom Tromey  <tom@tromey.com>
1479
1480         * README: Mention --enable-ubsan.
1481         * NEWS: Mention --enable-ubsan.
1482         * acinclude.m4: Include sanitize.m4.
1483         * configure: Rebuild.
1484         * configure.ac: Call AM_GDB_UBSAN.
1485         * sanitize.m4: New file.
1486
1487 2018-10-03  Tom Tromey  <tom@tromey.com>
1488
1489         * expression.h (enum exp_opcode): Use uint8_t as base type.
1490         * expprint.c (op_name): Handle invalid opcodes.
1491
1492 2018-10-03  Tom Tromey  <tom@tromey.com>
1493
1494         * parse.c (prefixify_expression): Add assert.
1495         (parse_exp_in_context_1): Throw exception if the expression is
1496         empty.
1497
1498 2018-10-03  Tom Tromey  <tom@tromey.com>
1499
1500         * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
1501
1502 2018-10-03  Tom Tromey  <tom@tromey.com>
1503
1504         * c-exp.y (parse_number): Work in unsigned.  Remove casts.
1505
1506 2018-10-03  Tom Tromey  <tom@tromey.com>
1507
1508         * dwarf2read.c (read_subrange_type): Make "negative_mask"
1509         unsigned.
1510
1511 2018-10-03  Tom Tromey  <tom@tromey.com>
1512
1513         * findvar.c (extract_integer): Do work in an unsigned type.
1514
1515 2018-10-03  Tom Tromey  <tom@tromey.com>
1516
1517         * common/enum-flags.h (enum_flags::operator~): Add static assert.
1518         * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
1519         base type.
1520         * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
1521         * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
1522         type.
1523         * c-lang.h (enum c_string_type_values): Use unsigned as base
1524         type.
1525         * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
1526
1527 2018-10-03  Tom Tromey  <tom@tromey.com>
1528
1529         * dwarf2-frame.h (dwarf2_frame_state_reg_info)
1530         <~dwarf2_frame_state_reg_info>: Update.
1531         <dwarf2_frame_state_reg_info>: Update.
1532         <alloc_regs>: Add assertion.  Update.
1533         <reg>: Now a std::vector.
1534         <num_regs>: Remove.
1535         <swap>: Update.
1536         * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
1537         (execute_cfa_program_test, dwarf2_frame_cache): Update.
1538
1539 2018-10-03  Tom Tromey  <tom@tromey.com>
1540
1541         * namespace.c (add_using_directive): Don't pass NULL to memcpy.
1542
1543 2018-10-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1544
1545         * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
1546
1547 2018-10-02  Tom Tromey  <tom@tromey.com>
1548
1549         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
1550
1551 2018-10-02  John Darrington <john@darrington.wattle.id.au>
1552
1553         * NEWS: Mention changed commands.
1554         * ser-uds.c: New file.
1555         * configure.ac (SER_HARDWIRE): Add ser-uds.o.
1556         * configure: Regenerate.
1557         * Makefile.in: Add new file.
1558         * serial.c (serial_open): Check if filename is a socket
1559           and lookup the appropriate interface accordingly.
1560
1561 2018-10-01  Alan Hayward  <alan.hayward@arm.com>
1562
1563         * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
1564         define.
1565         (AARCH64_EXTRA_MAGIC): Likewise.
1566         (AARCH64_FPSIMD_MAGIC): Likewise.
1567         (AARCH64_SVE_MAGIC): Likewise.
1568         (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
1569         (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
1570         (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
1571         (AARCH64_FPSIMD_V0_OFFSET): Likewise.
1572         (AARCH64_FPSIMD_VREG_SIZE): Likewise.
1573         (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
1574         (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
1575         (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
1576         (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
1577         (AARCH64_SVE_CONTEXT_SIZE): Likewise.
1578         (read_aarch64_ctx): Add function.
1579         (aarch64_linux_sigframe_init): Detect FP registers.
1580
1581 2018-10-01  Alan Hayward  <alan.hayward@arm.com>
1582
1583         * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
1584         (AARCH64_D0_REGNUM): Likewise.
1585         (AARCH64_S0_REGNUM): Likewise.
1586         (AARCH64_H0_REGNUM): Likewise.
1587         (AARCH64_B0_REGNUM): Likewise.
1588         (AARCH64_SVE_V0_REGNUM): Likewise.
1589         * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
1590         (AARCH64_D0_REGNUM): Likewise.
1591         (AARCH64_S0_REGNUM): Likewise.
1592         (AARCH64_H0_REGNUM): Likewise.
1593         (AARCH64_B0_REGNUM): Likewise.
1594         (AARCH64_SVE_V0_REGNUM): Likewise.
1595
1596 2018-10-01  Gary Benson <gbenson@redhat.com>
1597
1598         * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
1599         * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
1600         prfpregset_t instead of gdb_prfpregset_t.
1601         * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
1602         * configure, config.in: Rebuild.
1603
1604 2018-10-01  Gary Benson <gbenson@redhat.com>
1605
1606         * common/gdb_proc_service.h: New file, factored out from...
1607         * gdb_proc_service.h: Moved common code to the above file.
1608         * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
1609
1610 2018-10-01  Gary Benson <gbenson@redhat.com>
1611
1612         * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
1613         undefined.  Use elf_fpregset_t if prfpregset_t is undefined.
1614
1615 2018-10-01  Gary Benson <gbenson@redhat.com>
1616
1617         * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
1618         (AC_CHECK_HEADERS): Check for linux/elf.h.
1619         * configure, config.in: Rebuild.
1620         * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
1621         doesn't define elf_fpregset_t.
1622
1623 2018-10-01  Gary Benson <gbenson@redhat.com>
1624
1625         * gdb_proc_service.h: Whitespace change.
1626
1627 2018-10-01  Tom Tromey  <tom@tromey.com>
1628
1629         * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
1630         * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
1631         * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
1632
1633 2018-10-01  Tom Tromey  <tom@tromey.com>
1634
1635         * README: Minor change.
1636
1637 2018-09-30  Pedro Alves  <palves@redhat.com>
1638
1639         * darwin-nat-info.c (darwin_debug_regions_recurse)
1640         (info_mach_exceptions_command): Remove unused local variables.
1641         * darwin-nat.c (darwin_decode_notify_message)
1642         (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
1643         (darwin_stop_inferior, darwin_setup_exceptions)
1644         (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
1645         (darwin_nat_target::attach, darwin_nat_target::detach)
1646         (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
1647         local variables.
1648         * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
1649         variables.
1650
1651 2018-09-29  Tom Tromey  <tom@tromey.com>
1652
1653         * README: Remove some leftover text.
1654
1655 2018-09-29  Tom Tromey  <tom@tromey.com>
1656
1657         * PROBLEMS: Rewrite.
1658         * README: Update.
1659
1660 2018-09-28  John Baldwin  <jhb@FreeBSD.org>
1661
1662         * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
1663         case with explicit breakpoint kind.
1664         * riscv-tdep.c (show_use_compressed_breakpoints): Remove
1665         'additional_info' and related logic.
1666         (riscv_debug_breakpoints): New variable.
1667         (riscv_breakpoint_kind_from_pc): Use the length of the existing
1668         instruction to determine the breakpoint kind.
1669         (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
1670         flag.  Update description of 'set/show riscv
1671         use-compressed-breakpoints' flag.
1672
1673 2018-09-28  Andrew Burgess  <andrew.burgess@embecosm.com>
1674
1675         (NEWS): Mention changes to frame related commands.
1676         * cli/cli-decode.c (add_cmd_suppress_notification): New function.
1677         (add_prefix_cmd_suppress_notification): New function.
1678         (add_com_suppress_notification): Call
1679         add_cmd_suppress_notification.
1680         * command.h (add_cmd_suppress_notification): Declare.
1681         (add_prefix_cmd_suppress_notification): Declare.
1682         * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
1683         (parse_frame_specification): Moved from stack.c, with
1684         simplification to handle a single argument.
1685         (mi_cmd_stack_select_frame): Use parse_frame_specification, the
1686         switch to the selected frame.  Add a header comment.
1687         * stack.c: Remove 'safe-ctype.h' include.
1688         (find_frame_for_function): Add declaration.
1689         (find_frame_for_address): New function.
1690         (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
1691         (frame_selection_by_function_completer): New function.
1692         (info_frame_command): Rename to...
1693         (info_frame_command_core): ...this, and update parameter types.
1694         (select_frame_command): Rename to...
1695         (select_frame_command_core): ...this, and update parameter types.
1696         (frame_command): Rename to...
1697         (frame_command_core): ...this, and update parameter types.
1698         (class frame_command_helper): New class to wrap implementations of
1699         frame related sub-commands.
1700         (frame_apply_cmd_list): New static global.
1701         (frame_cmd_list): Make static.
1702         (select_frame_cmd_list): New global for sub-commands.
1703         (info_frame_cmd_list): New global for sub-commands.
1704         (_initialize_stack): Register sub-commands for 'frame',
1705         'select-frame', and 'info frame'.  Update 'frame apply' commands
1706         to use frame_apply_cmd_list.  Move function local static
1707         frame_apply_list to file static frame_apply_cmd_list for
1708         consistency.
1709         * stack.h (select_frame_command): Delete declarationn.
1710         (select_frame_for_mi): Declare new function.
1711
1712 2018-09-26  Andrew Burgess  <andrew.burgess@embecosm.com>
1713
1714         * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
1715         (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
1716         and NOP.
1717
1718 2018-09-26  Simon Marchi  <simon.marchi@ericsson.com>
1719
1720         * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
1721
1722 2018-09-26  Tom Tromey  <tom@tromey.com>
1723
1724         * valops.c (auto_abandon): Remove dead code.
1725
1726 2018-09-26  Tom Tromey  <tom@tromey.com>
1727
1728         * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
1729
1730 2018-09-24  Tom Tromey  <tom@tromey.com>
1731
1732         * common/pathstuff.c (get_standard_cache_dir): Make
1733         "xdg_cache_home" and "home" const.
1734         * top.c (init_history): Make "tmpenv" const.
1735         * main.c (get_init_files): Make "homedir" const.
1736
1737 2018-09-23  Tom Tromey  <tom@tromey.com>
1738
1739         PR python/18852:
1740         * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
1741
1742 2018-09-23  Tom Tromey  <tom@tromey.com>
1743
1744         * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
1745         * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
1746         * python/python-internal.h (gdbpy_handle_exception): Declare.
1747         * python/py-utils.c (gdbpy_handle_exception): New function.
1748
1749 2018-09-23  Tom Tromey  <tom@tromey.com>
1750
1751         PR python/17284:
1752         * python/py-type.c (typy_template_argument): Check for negative
1753         argument number.
1754
1755 2018-09-23  Tom Tromey  <tom@tromey.com>
1756
1757         PR python/14062:
1758         * python/python.c (gdbpy_run_events): Do not ignore exceptions.
1759
1760 2018-09-23  Tom Tromey  <tom@tromey.com>
1761
1762         PR python/18170:
1763         * python/py-value.c (valpy_int): Allow conversion from pointer
1764         type.
1765
1766 2018-09-23  Tom Tromey  <tom@tromey.com>
1767
1768         PR python/20126:
1769         * python/py-value.c (valpy_int): Respect type sign.
1770
1771 2018-09-23  Tom Tromey  <tom@tromey.com>
1772
1773         PR python/18352;
1774         * python/py-value.c (valpy_float): Allow conversions from int or
1775         char.
1776         (valpy_int, valpy_long): Allow conversions from float.
1777
1778 2018-09-23  Tom Tromey  <tom@tromey.com>
1779
1780         * ctf.c (ctf_start): Use gdb_fopen_cloexec.
1781         * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
1782
1783 2018-09-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1784
1785         * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
1786         __sighndlr.
1787         * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
1788
1789 2018-08-02  Jon Turney  <jon.turney@dronecode.org.uk>
1790
1791         * windows-nat.c (windows_nat_target::wait): Remove a spurious
1792         target_terminal::ours().
1793
1794 2018-09-23  Simon Marchi  <simon.marchi@ericsson.com>
1795
1796         * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
1797         of vl to ULONGEST.
1798
1799 2018-09-21  Yacov Simhony  <ysimhony@gmail.com>
1800
1801         * breakpoint.c (update_inserted_breakpoint_locations): Remove
1802         redundant condition.
1803
1804 2018-09-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1805
1806         * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
1807
1808         * procfs.c: Don't check for PR_MODEL_NATIVE definition.
1809         * sparc-sol2-nat.c: Likewise.  Remove Linux, __arch64__ references.
1810         * sol-thread.c (ps_pdmodel): Don't guard definition.
1811
1812         * procfs.c: Fix formatting.
1813
1814         * procfs.c (sysset_t_alloc): Remove.
1815         (create_procinfo): Use XNEW instead of sysset_t_alloc.
1816         (procfs_debug_inferior): Likewise.
1817         (procfs_set_exec_trap): Likewise.
1818         (proc_set_traced_sysentry): Don't allocate argp dynamically.
1819         (proc_set_traced_sysexit): Likewise.
1820
1821         * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
1822         (dead_procinfo): Likewise.
1823         (proc_warn): Likewise.
1824         (proc_error): Likewise.
1825         (proc_get_LDT_entry): Likewise.
1826         (do_attach): Likewise.
1827         (procfs_target::pid_to_str): Likewise.
1828         (iterate_over_mappings): Likewise.
1829
1830         * procfs.c (create_procinfo): Fix ARI warning.
1831         (proc_get_status): Likewise.
1832         (proc_stop_process): Likewise.
1833         (proc_run_process): Likewise.
1834         (proc_kill): Likewise.
1835         (proc_get_LDT_entry): Likewise.
1836         (procfs_find_LDT_entry): Likewise.
1837         (proc_update_threads): Likewise.
1838         (proc_iterate_over_threads): Likewise.
1839         (do_attach): Likewise.
1840         (procfs_xfer_memory): Likewise.
1841         (invalidate_cache): Likewise.
1842         (procfs_target::resume): Likewise.
1843         (procfs_init_inferior): Likewise.
1844         (procfs_set_exec_trap): Likewise.
1845         (procfs_target::thread_alive): Likewise.
1846         (procfs_target::pid_to_exec_file): Likewise.
1847         (iterate_over_mappings): Likewise.
1848         (procfs_target::make_corefile_notes): Likewise.
1849         * sol-thread.c (sol_thread_target::thread_alive): Likewise.
1850
1851         * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
1852         (procfs_find_LDT_entry): Likewise.
1853         * sol-thread.c (ps_lgetLDT): Likewise.
1854
1855 2018-09-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1856
1857         PR tdep/17903
1858         * procfs.c (procfs_target): Declare pid_to_exec_file.
1859         (procfs_target::pid_to_exec_file): New.
1860
1861 2018-09-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1862
1863         * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
1864         renaming.
1865         Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
1866         AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
1867
1868 2018-09-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1869
1870         * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
1871         (supply_fpregset, fill_fpregset): Move ...
1872         * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
1873         Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
1874         Remove references to ioctl-based procfs.
1875         Include <sys/reg.h>.
1876         Remove PR_MODEL_NATIVE guards.
1877         * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
1878         * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
1879
1880 2018-09-19  Xavier Roirand  <roirand@adacore.com>
1881
1882         PR gdb/20981:
1883         * solib-darwin.c (darwin_get_dyld_bfd): New function.
1884         (darwin_solib_get_all_image_info_addr_at_init): Update call.
1885         (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
1886
1887 2018-09-19  John Baldwin  <jhb@FreeBSD.org>
1888
1889         * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
1890         (fbsd_print_sockaddr_in6): Likewise.
1891
1892 2018-09-19  Richard Bunt  <richard.bunt@arm.com>
1893             Chris January  <chris.january@arm.com>
1894
1895         * eval.c (skip_undetermined_arglist): Skip argument list helper.
1896         (evaluate_subexp_standard): Return a dummy type when
1897         honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
1898         OP_F77_UNDETERMINED_ARGLIST case.
1899         * expression.h (enum noside): Update comment.
1900
1901 2018-09-19  George Vasick <george.vasick@oracle.com>
1902
1903         * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
1904
1905 2018-09-19  Stefan Teleman <stefan.teleman@oracle.com>
1906             April Chin <april.chin@oracle.com>
1907             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1908
1909         * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
1910         uint_t lwpid_t.
1911         (create_procinfo): Print pids in /proc without leading zeros.
1912
1913 2018-09-18  Sandra Loosemore  <sandra@codesourcery.com>
1914
1915         * nios2-tdep.c (nios2_gcc_target_options): New.
1916         (nios2_gdb_arch_init): Install new hook.
1917
1918 2018-09-18  Simon Marchi  <simon.marchi@ericsson.com>
1919
1920         * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
1921         New file.
1922         * update-gnulib.sh: Apply patch.
1923         * configure: Re-generate.
1924
1925 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
1926
1927         * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
1928         description.  Make "info proc" command descriptions more
1929         consistent.
1930
1931 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
1932
1933         * NEWS: Mention 'info proc files' command.
1934
1935 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
1936
1937         * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
1938         descriptors for IP_FILES and IP_ALL.
1939
1940 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
1941
1942         * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
1943         (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
1944         (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
1945         (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
1946         (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
1947         (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
1948         (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
1949         (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
1950         (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
1951         (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
1952         (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
1953         (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
1954         (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
1955         (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
1956         (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
1957         (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
1958         (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
1959         (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
1960         (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
1961         (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
1962         (struct fbsd_sockaddr_un): New types.
1963         (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
1964         (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
1965         (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
1966         (fbsd_core_info_proc_files): New functions.
1967         (fbsd_core_info_proc): List open file descriptors for IP_FILES and
1968         IP_ALL.
1969         * fbsd-tdep.h (fbsd_info_proc_files_header)
1970         (fbsd_info_proc_files_entry): New.
1971
1972 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
1973
1974         * defs.h (enum info_proc_what) [IP_FILES]: New value.
1975         * infcmd.c (info_proc_cmd_files): New function.
1976         (_initialize_infcmd): Register 'info proc files' command.
1977
1978 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
1979
1980         * gnulib/aclocal-m4-deps.mk: Re-generate.
1981         * gnulib/aclocal.m4: Re-generate.
1982         * gnulib/config.in: Re-generate.
1983         * gnulib/configure: Re-generate.
1984         * gnulib/import/Makefile.am: Re-generate.
1985         * gnulib/import/Makefile.in: Re-generate.
1986         * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1987         * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1988         * gnulib/import/arpa_inet.in.h: New file.
1989         * gnulib/import/inet_ntop.c: New file.
1990         * gnulib/import/m4/arpa_inet_h.m4: New file.
1991         * gnulib/import/m4/inet_ntop.m4: New file.
1992         * gnulib/import/m4/netinet_in_h.m4: New file.
1993         * gnulib/import/m4/socklen.m4: New file.
1994         * gnulib/import/m4/sockpfaf.m4: New file.
1995         * gnulib/import/m4/stdalign.m4: New file.
1996         * gnulib/import/m4/sys_uio_h.m4: New file.
1997         * gnulib/import/netinet_in.in.h: New file.
1998         * gnulib/import/stdalign.in.h: New file.
1999         * gnulib/import/sys_socket.c: New file.
2000         * gnulib/import/sys_socket.in.h: New file.
2001         * gnulib/import/sys_uio.in.h: New file.
2002         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
2003         module.
2004
2005 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
2006
2007         * gnulib/aclocal-m4-deps.mk: New file.
2008         * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
2009         deterministically.
2010
2011 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
2012
2013         * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
2014         KVE_PATH.
2015
2016 2018-09-18  Tom Tromey  <tom@tromey.com>
2017
2018         * compile/compile-object-load.c (struct
2019         link_hash_table_cleanup_data): Add constructor and destructor.
2020         Use DISABLE_COPY_AND_ASSIGN.
2021         (~link_hash_table_cleanup_data): Rename from
2022         link_hash_table_free.  Now a destructor.
2023         (copy_sections): Use gdb::unique_xmalloc_ptr.  Remove cleanups.
2024
2025 2018-09-18  Tom Tromey  <tom@tromey.com>
2026
2027         * compile/compile-object-run.c (do_module_cleanup): Use delete.
2028         * compile/compile-object-load.c (struct munmap_list): Move to
2029         header file.
2030         (munmap_list::add): Rename from munmap_list_add; rewrite.
2031         (munmap_list::~munmap_list): Rename from munmap_list_free.
2032         (munmap_listp_free_cleanup): Remove.
2033         (compile_object_load): Update.
2034         * compile/compile-object-load.h (struct munmap_list): Move from
2035         compile-object-load.c.  Rewrite.
2036
2037 2018-09-18  Alan Hayward  <alan.hayward@arm.com>
2038
2039         * aarch64-tdep.c (pass_in_v): Use register size.
2040         (aarch64_extract_return_value): Likewise.
2041         (aarch64_store_return_value): Likewise.
2042
2043 2018-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2044
2045         * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
2046         rlim_t.
2047
2048 2018-09-17  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2049
2050         * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
2051         Fix short help line.
2052
2053 2018-09-17  Tom Tromey  <tom@tromey.com>
2054
2055         PR python/20445:
2056         * configure: Rebuild.
2057         * configure.ac: Conditionally use -DNDEBUG for Python.
2058
2059 2018-09-17  Tom Tromey  <tom@tromey.com>
2060
2061         * configure: Rebuild.
2062         * configure.ac: Use gmp as a library dependency when checking for
2063         mpfr.
2064
2065 2018-09-17  Pedro Alves  <palves@redhat.com>
2066
2067         * python/py-inferior.c (find_inferior_object): Delete.
2068
2069 2018-09-17  Simon Marchi  <simon.marchi@ericsson.com>
2070
2071         * compile/compile-cplus-types.c
2072         (compile_cplus_instance::enter_scope): Don't use new_scope after
2073         std::move.
2074
2075 2018-09-17  Tom Tromey  <tom@tromey.com>
2076
2077         * common/pathstuff.c (get_standard_cache_dir): Use
2078         ~/Library/Caches on macOS.
2079         * common/pathstuff.h (get_standard_cache_dir): Update comment.
2080
2081 2018-09-17  Simon Marchi  <simon.marchi@polymtl.ca>
2082
2083         PR python/23669
2084         * breakpoint.c (commands_cmd_element): New.
2085         (_initialize_breakpoint): Assign commands_cmd_element.
2086         * breakpoint.h (commands_cmd_element): New.
2087         * cli/cli-script.c (while_cmd_element, if_command,
2088         define_cmd_element): New.
2089         (command_name_equals): Remove.
2090         (process_next_line): Compare commands by pointer, not by name.
2091         (_initialize_cli_script): Assign the various cmd_list_element
2092         variables.
2093         * compile/compile.c (compile_cmd_element): New.
2094         (_initialize_compile): Assign compile_cmd_element.
2095         * compile/compile.h (compile_cmd_element): New.
2096         * guile/guile.c (guile_cmd_element): New.
2097         (install_gdb_commands): Assign guile_cmd_element.
2098         * guile/guile.h (guile_cmd_element): New.
2099         * python/python.c (python_cmd_element): New.
2100         (_initialize_python): Assign python_cmd_element.
2101         * python/python.h (python_cmd_element): New.
2102         * tracepoint.c (while_stepping_cmd_element): New.
2103         (_initialize_tracepoint): Assign while_stepping_cmd_element.
2104         * tracepoint.h (while_stepping_cmd_element): New.
2105
2106 2018-09-17  Tom Tromey  <tom@tromey.com>
2107
2108         * infrun.c (save_infcall_suspend_state): Return
2109         infcall_suspend_state_up.
2110         (save_infcall_control_state): Return infcall_control_state_up.
2111         * inferior.h (save_infcall_suspend_state)
2112         (save_infcall_control_state): Declare later.  Return unique
2113         pointers.
2114
2115 2018-09-17  Tom Tromey  <tom@tromey.com>
2116
2117         * infrun.c (struct stop_context): Declare constructor,
2118         destructor, "changed" method.
2119         (stop_context::stop_context): Rename from save_stop_context.
2120         (stop_context::~stop_context): Rename from
2121         release_stop_context_cleanup.
2122         (normal_stop): Update.
2123         (stop_context::changed): Rename from stop_context_changed.  Return
2124         bool.
2125
2126 2018-09-17  Tom Tromey  <tom@tromey.com>
2127
2128         * inferior.h (struct infcall_suspend_state_deleter): New.
2129         (infcall_suspend_state_up): New typedef.
2130         (struct infcall_control_state_deleter): New.
2131         (infcall_control_state_up): New typedef.
2132         (make_cleanup_restore_infcall_suspend_state)
2133         (make_cleanup_restore_infcall_control_state): Don't declare.
2134         * infcall.c (call_function_by_hand_dummy): Update.
2135         * infrun.c (do_restore_infcall_suspend_state_cleanup)
2136         (make_cleanup_restore_infcall_suspend_state): Remove.
2137         (do_restore_infcall_control_state_cleanup)
2138         (make_cleanup_restore_infcall_control_state): Remove.
2139
2140 2018-09-17  Tom Tromey  <tom@tromey.com>
2141
2142         * gdbthread.h (struct thread_control_state): Add initializer.
2143         (class thread_info) <control>: Remove initializer.
2144         * inferior.h (struct inferior_control_state): Add initializer.
2145         (class inferior) <control>: Remove initializer.
2146         (exit_inferior_1): Update.
2147         * infrun.c (struct infcall_control_state): Add constructors.
2148         (save_infcall_control_state): Use new.
2149         (restore_infcall_control_state, discard_infcall_control_state):
2150         Use delete.
2151
2152 2018-09-17  Tom Tromey  <tom@tromey.com>
2153
2154         * infrun.c (struct infcall_suspend_state) <registers>: Now a
2155         unique_ptr.
2156         <siginfo_data>: Now a unique_xmalloc_ptr.
2157         (save_infcall_suspend_state, restore_infcall_suspend_state)
2158         (discard_infcall_suspend_state)
2159         (get_infcall_suspend_state_regcache): Update.
2160
2161 2018-09-17  Tom Tromey  <tom@tromey.com>
2162
2163         * gdbthread.h (struct thread_suspend_state): Add initializers.
2164         (class thread_info) <suspend>: Remove initializer.
2165         * infrun.c (struct infcall_suspend_state): Add initializers.
2166         (save_infcall_suspend_state): Use new.
2167         (discard_infcall_suspend_state): Use delete.
2168
2169 2018-09-16  Tom Tromey  <tom@tromey.com>
2170
2171         * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
2172         Remove.
2173         * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
2174         rvalue reference.  Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
2175         (py_varobj_iter_new): Likewise.
2176         (py_varobj_get_iterator): Use gdbpy_ref.
2177
2178 2018-09-16  Tom Tromey  <tom@tromey.com>
2179
2180         * python/py-threadevent.c (py_get_event_thread): Simplify.
2181         * python/py-inferior.c (infpy_thread_from_thread_handle):
2182         Return immediately after calling thread_to_thread_object.  Use
2183         Py_RETURN_NONE.
2184         (thread_to_thread_object): Set the exception on a NULL return.
2185
2186 2018-09-16  Simon Marchi  <simon.marchi@polymtl.ca>
2187
2188         * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
2189
2190 2018-09-16  Tom Tromey  <tom@tromey.com>
2191
2192         * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
2193         Remove.
2194
2195 2018-09-16  Tom Tromey  <tom@tromey.com>
2196
2197         * python/python-internal.h (thread_to_thread_object): Change
2198         return type.
2199         * python/py-inferior.c (thread_to_thread_object): Return a new
2200         reference.
2201         (infpy_thread_from_thread_handle): Update.
2202         * python/py-infthread.c (gdbpy_selected_thread): Update.
2203         * python/py-stopevent.c (create_stop_event_object): Update.
2204         * python/py-threadevent.c (py_get_event_thread): Return a new
2205         reference.
2206         (py_get_event_thread): Update.
2207         * python/py-event.h (py_get_event_thread): Change return type.
2208         * python/py-continueevent.c (create_continue_event_object):
2209         Update.
2210
2211 2018-09-16  Tom Tromey  <tom@tromey.com>
2212
2213         * python/py-progspace.c (pspy_get_objfiles): Update.
2214         * python/python-internal.h (objfile_to_objfile_object): Change
2215         return type.
2216         * python/py-newobjfileevent.c (create_new_objfile_event_object):
2217         Update.
2218         * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2219         Update.
2220         * python/python.c (gdbpy_get_current_objfile): Update.
2221         (gdbpy_objfiles): Update.
2222         * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
2223         Update.
2224         (objfile_to_objfile_object): Return a new reference.
2225         * python/py-symtab.c (stpy_get_objfile): Update.
2226         * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
2227         Update.
2228
2229 2018-09-16  Tom Tromey  <tom@tromey.com>
2230
2231         * python/py-inferior.c (infpy_get_progspace): Update.
2232         * python/python-internal.h (pspace_to_pspace_object): Change
2233         return type.
2234         * python/py-newobjfileevent.c
2235         (create_clear_objfiles_event_object): Update.
2236         * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2237         Update.
2238         * python/python.c (gdbpy_get_current_progspace): Update.
2239         (gdbpy_progspaces): Update.
2240         * python/py-progspace.c (pspace_to_pspace_object): Return a new
2241         reference.
2242         * python/py-objfile.c (objfpy_get_progspace): Update.
2243         * python/py-prettyprint.c (find_pretty_printer_from_progspace):
2244         Update.
2245
2246 2018-09-16  Tom Tromey  <tom@tromey.com>
2247
2248         * python/lib/gdb/__init__.py (current_progspace, objfiles)
2249         (solib_name, block_for_pc, find_pc_line): New functions.
2250         (execute_unwinders): Update.
2251         * python/py-block.c (gdbpy_block_for_pc): Remove.
2252         * python/py-inferior.c (infpy_get_progspace): New function.
2253         (inferior_object_getset) <progspace>: Add.
2254         * python/py-progspace.c (pspy_objfiles): Rewrite.
2255         (pspy_solib_name, pspy_block_for_pc)
2256         (pspy_find_pc_line, pspy_is_valid): New functions.
2257         (progspace_object_methods): Add entries for solib_name,
2258         block_for_pc, find_pc_line, is_valid.
2259         * python/python-internal.h (gdbpy_block_for_pc)
2260         (build_objfiles_list): Don't declare.
2261         * python/python.c: Don't include solib.h.
2262         (gdbpy_solib_name, gdbpy_find_pc_line)
2263         (gdbpy_get_current_progspace, build_objfiles_list)
2264         (gdbpy_objfiles): Remove.
2265         (GdbMethods) <current_progspace, objfiles, block_for_pc,
2266         solib_name, find_pc_line>: Remove entries.
2267
2268 2018-09-16  Tom Tromey  <tom@tromey.com>
2269
2270         * top.c (new_ui_command): Use GNU style for metasyntactic
2271         variables.
2272         * breakpoint.c (stopat_command): Use GNU style for metasyntactic
2273         variables.
2274         * maint.c (maintenance_translate_address): Remove "<>" around
2275         text.
2276         * interps.c (interpreter_exec_cmd): Use GNU style for
2277         metasyntactic variables.
2278         * nto-procfs.c (nto_procfs_target_info): Use GNU style for
2279         metasyntactic variables.
2280         * tracepoint.c (tfind_range_command): Use GNU style for
2281         metasyntactic variables.
2282         (tfind_outside_command): Likewise.
2283         (_initialize_tracepoint): Likewise.
2284         * remote.c (extended_remote_target::create_inferior): Use GNU
2285         style for metasyntactic variables.
2286         * sparc64-tdep.c (adi_examine_command): Use GNU style for
2287         metasyntactic variables.
2288         (adi_assign_command): Likewise.
2289
2290 2018-09-16  Tom Tromey  <tom@tromey.com>
2291
2292         * disasm.c (show_disassembler_options_sfunc): Use GNU style for
2293         metasyntactic variables.  Print message if no disassembler options
2294         are available.
2295
2296 2018-09-15  Tom Tromey  <tom@tromey.com>
2297
2298         * infcmd.c (get_inferior_args): Return const char *.
2299         * inferior.h (get_inferior_args): Return type now const.
2300         * linux-tdep.c (linux_fill_prpsinfo): Update.
2301         * procfs.c (procfs_target::make_corefile_notes): Update.
2302
2303 2018-09-07  Tom Tromey  <tom@tromey.com>
2304
2305         * python/python.c (execute_gdb_command): Call bpstat_do_actions
2306         inside the TRY.
2307
2308 2018-09-14  Sandra Loosemore  <sandra@codesourcery.com>
2309
2310         * nios2-tdep.c (nios2_type_align): New.
2311         (nios2_gdb_arch_init): Install type_align hook.
2312
2313 2018-09-10  Andrew Burgess  <andrew.burgess@embecosm.com>
2314
2315         * eval.c (fake_method::fake_method): Call xzalloc directly for a
2316         type that is neither object file owned, nor gdbarch owned.
2317         * gdbtypes.c (get_type_gdbarch): Add an assert that returned
2318         gdbarch is non-NULL.
2319         (alloc_type_instance): Allocate non-objfile owned types on the
2320         gdbarch obstack.
2321         (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
2322         using TYPE_ALLOC to ensure memory is allocated on the correct
2323         obstack.
2324         * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
2325         obstack, or the gdbarch obstack.
2326         (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
2327
2328 2018-09-14  Tom Tromey  <tom@tromey.com>
2329
2330         * infcall.c (call_function_by_hand_dummy): Remove unnecessary
2331         block.
2332
2333 2018-09-14  Tom Tromey  <tom@tromey.com>
2334
2335         * nat/fork-inferior.c (get_startup_shell): Remove "static".
2336
2337 2018-09-13  Tom Tromey  <tom@tromey.com>
2338
2339         * python/py-inferior.c (infpy_thread_from_thread_handle): Now
2340         static.
2341
2342 2018-09-13  Tom Tromey  <tom@tromey.com>
2343
2344         * exec.c (try_open_exec_file): Use std::string.
2345
2346 2018-09-13  Tom Tromey  <tom@tromey.com>
2347
2348         * utils.h (gdb_bfd_errmsg): Return std::string.
2349         * exec.c (exec_file_attach): Update.
2350         * compile/compile-object-load.c (compile_object_load): Update.
2351         * utils.c (gdb_bfd_errmsg): Return std::string.
2352
2353 2018-09-13  Tom Tromey  <tom@tromey.com>
2354
2355         * procfs.c (struct procinfo_deleter): New.
2356         (procinfo_up): New typedef.
2357         (do_destroy_procinfo_cleanup): Remove.
2358         (procfs_target::info_proc): Use procinfo_up.  Remove cleanups.
2359
2360 2018-09-13  Tom Tromey  <tom@tromey.com>
2361
2362         * source.c (add_path): Use gdb::unique_xmalloc_ptr.
2363
2364 2018-09-13  Simon Marchi  <simon.marchi@ericsson.com>
2365 2018-09-13  Tom Tromey  <tom@tromey.com>
2366
2367         * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
2368         (pspy_get_objfiles): New function.
2369         (progspace_object_methods): New.
2370         (pspace_object_type): Add tp_methods callback.
2371         * python/python-internal.h (build_objfiles_list): New
2372         declaration.
2373         * python/python.c (build_objfiles_list): New function.
2374         (gdbpy_objfiles): Implement using build_objfiles_list.
2375         * NEWS: Mention the Progspace.objfiles method.
2376
2377 2018-09-13  Simon Marchi  <simon.marchi@ericsson.com>
2378
2379         * python/py-inferior.c (infpy_get_progspace): New function.
2380         (inferior_object_getset): Add progspace property.
2381         * NEWS: Mention the new property.
2382
2383 2018-09-13  Tom Tromey  <tom@tromey.com>
2384
2385         PR rust/23650:
2386         * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
2387
2388 2018-09-13  Tom Tromey  <tom@tromey.com>
2389
2390         PR rust/23626:
2391         * rust-lang.c (rust_enum_variant): Now static.
2392         (rust_empty_enum_p): New function.
2393         (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
2394         Handle empty enum.
2395
2396 2018-09-13  Simon Marchi  <simon.marchi@ericsson.com>
2397
2398         * python/py-inferior.c (infpy_repr): New.
2399         (inferior_object_type): Register infpy_repr.
2400         * python/py-objfile.c (objfpy_repr): New.
2401         (objfile_object_type): Register objfpy_repr.
2402
2403 2018-09-12  John Baldwin  <jhb@FreeBSD.org>
2404
2405         * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
2406
2407 2018-09-12  John Baldwin  <jhb@FreeBSD.org>
2408
2409         * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
2410         typo.
2411
2412 2018-09-12  Sergio Durigan Junior  <sergiodj@redhat.com>
2413
2414         * common/common-utils.c: Don't include '<sys/stat.h>'.
2415         (is_regular_file): Move to...
2416         * common/filestuff.c (is_regular_file): ... here.
2417         * common/common-utils.h (is_regular_file): Move to...
2418         * common/filestuff.h (is_regular_file): ... here.
2419
2420 2018-09-12  Simon Marchi  <simon.marchi@ericsson.com>
2421
2422         * skip.c (debug_skip): New variable.
2423         (skiplist_entry::do_skip_file_p): Add debug output.
2424         (skiplist_entry::do_skip_gfile_p): Likewise.
2425         (skiplist_entry::skip_function_p): Likewise.
2426         (_initialize_step_skip): Create debug command.
2427         * NEWS: Mention set/show debug skip.
2428
2429 2018-09-11  Xavier Roirand  <roirand@adacore.com>
2430
2431         * darwin-nat.c (should_disable_startup_with_shell):
2432         New function.
2433         (darwin_nat_target::create_inferior): Add call.
2434
2435 2018-09-11  Xavier Roirand  <roirand@adacore.com>
2436
2437         * darwin-nat.h (struct darwin_thread_info) <gdb_port,
2438         inf_port, msg_state>: Initialize.
2439         (struct darwin_thread_info) <signaled, single_step>: Change
2440         type and initialize.
2441         (struct darwin_thread_info) <event>: Initialize.
2442
2443 2018-09-10  Sergio Durigan Junior  <sergiodj@redhat.com>
2444
2445         PR gdb/23555
2446         PR gdb/23558
2447         * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
2448         guesses.
2449
2450 2018-09-10  Sergio Durigan Junior  <sergiodj@redhat.com>
2451
2452         Revert:
2453         2018-08-29  Sergio Durigan Junior  <sergiodj@redhat.com>
2454
2455         PR gdb/23555
2456         PR gdb/23558
2457         * gnulib/aclocal.m4: Regenerate.
2458         * gnulib/config.in: Regenerate.
2459         * gnulib/configure: Regenerate.
2460         * gnulib/import/Makefile.am: Update.
2461         * gnulib/import/Makefile.in: Update.
2462         * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2463         * gnulib/import/_Noreturn.h: ... this.
2464         * gnulib/import/alloca.in.h: Update.
2465         * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2466         * gnulib/import/arg-nonnull.h: ... this.
2467         * gnulib/import/assure.h: Update.
2468         * gnulib/import/at-func.c: Update.
2469         * gnulib/import/basename-lgpl.c: Update.
2470         * gnulib/import/extra/snippet/c++defs.h: Rename to...
2471         * gnulib/import/c++defs.h: ... this.
2472         * gnulib/import/canonicalize-lgpl.c: Update.
2473         * gnulib/import/cdefs.h: Update.
2474         * gnulib/import/chdir-long.c: Update.
2475         * gnulib/import/chdir-long.h: Update.
2476         * gnulib/import/cloexec.c: Update.
2477         * gnulib/import/cloexec.h: Update.
2478         * gnulib/import/close.c: Update.
2479         * gnulib/import/closedir.c: Update.
2480         * gnulib/import/config.charset: Update.
2481         * gnulib/import/dirent-private.h: Update.
2482         * gnulib/import/dirent.in.h: Update.
2483         * gnulib/import/dirfd.c: Update.
2484         * gnulib/import/dirname-lgpl.c: Update.
2485         * gnulib/import/dirname.h: Update.
2486         * gnulib/import/dosname.h: Update.
2487         * gnulib/import/dup-safer-flag.c: Update.
2488         * gnulib/import/dup-safer.c: Update.
2489         * gnulib/import/dup.c: Update.
2490         * gnulib/import/dup2.c: Update.
2491         * gnulib/import/errno.in.h: Update.
2492         * gnulib/import/error.c: Update.
2493         * gnulib/import/error.h: Update.
2494         * gnulib/import/exitfail.c: Update.
2495         * gnulib/import/exitfail.h: Update.
2496         * gnulib/import/extra/update-copyright: Update.
2497         * gnulib/import/fchdir.c: Update.
2498         * gnulib/import/fcntl.c: Update.
2499         * gnulib/import/fcntl.in.h: Update.
2500         * gnulib/import/fd-hook.c: Update.
2501         * gnulib/import/fd-hook.h: Update.
2502         * gnulib/import/fd-safer-flag.c: Update.
2503         * gnulib/import/fd-safer.c: Update.
2504         * gnulib/import/fdopendir.c: Update.
2505         * gnulib/import/filename.h: Update.
2506         * gnulib/import/filenamecat-lgpl.c: Update.
2507         * gnulib/import/filenamecat.h: Update.
2508         * gnulib/import/flexmember.h: Update.
2509         * gnulib/import/float+.h: Update.
2510         * gnulib/import/float.c: Update.
2511         * gnulib/import/float.in.h: Update.
2512         * gnulib/import/fnmatch.c: Update.
2513         * gnulib/import/fnmatch.in.h: Update.
2514         * gnulib/import/fnmatch_loop.c: Update.
2515         * gnulib/import/fpucw.h: Update.
2516         * gnulib/import/frexp.c: Update.
2517         * gnulib/import/frexpl.c: Update.
2518         * gnulib/import/fstat.c: Update.
2519         * gnulib/import/fstatat.c: Update.
2520         * gnulib/import/getcwd-lgpl.c: Update.
2521         * gnulib/import/getcwd.c: Update.
2522         * gnulib/import/getdtablesize.c: Update.
2523         * gnulib/import/getlogin_r.c: Update.
2524         * gnulib/import/getprogname.c: Update.
2525         * gnulib/import/getprogname.h: Update.
2526         * gnulib/import/gettext.h: Update.
2527         * gnulib/import/gettimeofday.c: Update.
2528         * gnulib/import/glob-libc.h: Update.
2529         * gnulib/import/glob.c: Update.
2530         * gnulib/import/glob.in.h: Update.
2531         * gnulib/import/glob_internal.h: Update.
2532         * gnulib/import/glob_pattern_p.c: Update.
2533         * gnulib/import/globfree.c: Update.
2534         * gnulib/import/hard-locale.c: Update.
2535         * gnulib/import/hard-locale.h: Update.
2536         * gnulib/import/intprops.h: Update.
2537         * gnulib/import/inttypes.in.h: Update.
2538         * gnulib/import/isnan.c: Update.
2539         * gnulib/import/isnand-nolibm.h: Update.
2540         * gnulib/import/isnand.c: Update.
2541         * gnulib/import/isnanl-nolibm.h: Update.
2542         * gnulib/import/isnanl.c: Update.
2543         * gnulib/import/itold.c: Update.
2544         * gnulib/import/libc-config.h: Update.
2545         * gnulib/import/limits.in.h: Update.
2546         * gnulib/import/localcharset.c: Update.
2547         * gnulib/import/localcharset.h: Update.
2548         * gnulib/import/localtime-buffer.c: Update.
2549         * gnulib/import/localtime-buffer.h: Update.
2550         * gnulib/import/lstat.c: Update.
2551         * gnulib/import/m4/00gnulib.m4: Update.
2552         * gnulib/import/m4/__inline.m4: Update.
2553         * gnulib/import/m4/absolute-header.m4: Update.
2554         * gnulib/import/m4/alloca.m4: Update.
2555         * gnulib/import/m4/builtin-expect.m4: Update.
2556         * gnulib/import/m4/canonicalize.m4: Update.
2557         * gnulib/import/m4/chdir-long.m4: Update.
2558         * gnulib/import/m4/close.m4: Update.
2559         * gnulib/import/m4/closedir.m4: Update.
2560         * gnulib/import/m4/configmake.m4: Update.
2561         * gnulib/import/m4/d-ino.m4: Update.
2562         * gnulib/import/m4/d-type.m4: Update.
2563         * gnulib/import/m4/dirent_h.m4: Update.
2564         * gnulib/import/m4/dirfd.m4: Update.
2565         * gnulib/import/m4/dirname.m4: Update.
2566         * gnulib/import/m4/double-slash-root.m4: Update.
2567         * gnulib/import/m4/dup.m4: Update.
2568         * gnulib/import/m4/dup2.m4: Update.
2569         * gnulib/import/m4/eealloc.m4: Update.
2570         * gnulib/import/m4/environ.m4: Update.
2571         * gnulib/import/m4/errno_h.m4: Update.
2572         * gnulib/import/m4/error.m4: Update.
2573         * gnulib/import/m4/exponentd.m4: Update.
2574         * gnulib/import/m4/exponentl.m4: Update.
2575         * gnulib/import/m4/extensions.m4: Update.
2576         * gnulib/import/m4/extern-inline.m4: Update.
2577         * gnulib/import/m4/fchdir.m4: Update.
2578         * gnulib/import/m4/fcntl-o.m4: Update.
2579         * gnulib/import/m4/fcntl.m4: Update.
2580         * gnulib/import/m4/fcntl_h.m4: Update.
2581         * gnulib/import/m4/fdopendir.m4: Update.
2582         * gnulib/import/m4/filenamecat.m4: Update.
2583         * gnulib/import/m4/flexmember.m4: Update.
2584         * gnulib/import/m4/float_h.m4: Update.
2585         * gnulib/import/m4/fnmatch.m4: Update.
2586         * gnulib/import/m4/fnmatch_h.m4: Update.
2587         * gnulib/import/m4/fpieee.m4: Update.
2588         * gnulib/import/m4/frexp.m4: Update.
2589         * gnulib/import/m4/frexpl.m4: Update.
2590         * gnulib/import/m4/fstat.m4: Update.
2591         * gnulib/import/m4/fstatat.m4: Update.
2592         * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2593         * gnulib/import/m4/getcwd-path-max.m4: Update.
2594         * gnulib/import/m4/getcwd.m4: Update.
2595         * gnulib/import/m4/getdtablesize.m4: Update.
2596         * gnulib/import/m4/getlogin.m4: Update.
2597         * gnulib/import/m4/getlogin_r.m4: Update.
2598         * gnulib/import/m4/getpagesize.m4: Update.
2599         * gnulib/import/m4/getprogname.m4: Update.
2600         * gnulib/import/m4/gettimeofday.m4: Update.
2601         * gnulib/import/m4/glibc21.m4: Update.
2602         * gnulib/import/m4/glob.m4: Update.
2603         * gnulib/import/m4/glob_h.m4: Update.
2604         * gnulib/import/m4/gnulib-cache.m4: Update.
2605         * gnulib/import/m4/gnulib-common.m4: Update.
2606         * gnulib/import/m4/gnulib-comp.m4: Update.
2607         * gnulib/import/m4/gnulib-tool.m4: Update.
2608         * gnulib/import/m4/hard-locale.m4: Update.
2609         * gnulib/import/m4/include_next.m4: Update.
2610         * gnulib/import/m4/inttypes-pri.m4: Update.
2611         * gnulib/import/m4/inttypes.m4: Update.
2612         * gnulib/import/m4/isnand.m4: Update.
2613         * gnulib/import/m4/isnanl.m4: Update.
2614         * gnulib/import/m4/largefile.m4: Update.
2615         * gnulib/import/m4/limits-h.m4: Update.
2616         * gnulib/import/m4/localcharset.m4: Update.
2617         * gnulib/import/m4/locale-fr.m4: Update.
2618         * gnulib/import/m4/locale-ja.m4: Update.
2619         * gnulib/import/m4/locale-zh.m4: Update.
2620         * gnulib/import/m4/localtime-buffer.m4: Update.
2621         * gnulib/import/m4/longlong.m4: Update.
2622         * gnulib/import/m4/lstat.m4: Update.
2623         * gnulib/import/m4/malloc.m4: Update.
2624         * gnulib/import/m4/malloca.m4: Update.
2625         * gnulib/import/m4/math_h.m4: Update.
2626         * gnulib/import/m4/mbrtowc.m4: Update.
2627         * gnulib/import/m4/mbsinit.m4: Update.
2628         * gnulib/import/m4/mbsrtowcs.m4: Update.
2629         * gnulib/import/m4/mbstate_t.m4: Update.
2630         * gnulib/import/m4/memchr.m4: Update.
2631         * gnulib/import/m4/memmem.m4: Update.
2632         * gnulib/import/m4/mempcpy.m4: Update.
2633         * gnulib/import/m4/memrchr.m4: Update.
2634         * gnulib/import/m4/mkdir.m4: Update.
2635         * gnulib/import/m4/mkstemp.m4: Update.
2636         * gnulib/import/m4/mmap-anon.m4: Update.
2637         * gnulib/import/m4/mode_t.m4: Update.
2638         * gnulib/import/m4/msvc-inval.m4: Update.
2639         * gnulib/import/m4/msvc-nothrow.m4: Update.
2640         * gnulib/import/m4/multiarch.m4: Update.
2641         * gnulib/import/m4/nocrash.m4: Update.
2642         * gnulib/import/m4/off_t.m4: Update.
2643         * gnulib/import/m4/onceonly.m4: Update.
2644         * gnulib/import/m4/open-cloexec.m4: Update.
2645         * gnulib/import/m4/open.m4: Update.
2646         * gnulib/import/m4/openat.m4: Update.
2647         * gnulib/import/m4/opendir.m4: Update.
2648         * gnulib/import/m4/pathmax.m4: Update.
2649         * gnulib/import/m4/rawmemchr.m4: Update.
2650         * gnulib/import/m4/readdir.m4: Update.
2651         * gnulib/import/m4/readlink.m4: Update.
2652         * gnulib/import/m4/realloc.m4: Update.
2653         * gnulib/import/m4/rename.m4: Update.
2654         * gnulib/import/m4/rewinddir.m4: Update.
2655         * gnulib/import/m4/rmdir.m4: Update.
2656         * gnulib/import/m4/save-cwd.m4: Update.
2657         * gnulib/import/m4/secure_getenv.m4: Update.
2658         * gnulib/import/m4/setenv.m4: Update.
2659         * gnulib/import/m4/signal_h.m4: Update.
2660         * gnulib/import/m4/ssize_t.m4: Update.
2661         * gnulib/import/m4/stat-time.m4: Update.
2662         * gnulib/import/m4/stat.m4: Update.
2663         * gnulib/import/m4/std-gnu11.m4: Update.
2664         * gnulib/import/m4/stdbool.m4: Update.
2665         * gnulib/import/m4/stddef_h.m4: Update.
2666         * gnulib/import/m4/stdint.m4: Update.
2667         * gnulib/import/m4/stdio_h.m4: Update.
2668         * gnulib/import/m4/stdlib_h.m4: Update.
2669         * gnulib/import/m4/strchrnul.m4: Update.
2670         * gnulib/import/m4/strdup.m4: Update.
2671         * gnulib/import/m4/strerror.m4: Update.
2672         * gnulib/import/m4/string_h.m4: Update.
2673         * gnulib/import/m4/strstr.m4: Update.
2674         * gnulib/import/m4/strtok_r.m4: Update.
2675         * gnulib/import/m4/sys_socket_h.m4: Update.
2676         * gnulib/import/m4/sys_stat_h.m4: Update.
2677         * gnulib/import/m4/sys_time_h.m4: Update.
2678         * gnulib/import/m4/sys_types_h.m4: Update.
2679         * gnulib/import/m4/tempname.m4: Update.
2680         * gnulib/import/m4/time_h.m4: Update.
2681         * gnulib/import/m4/unistd-safer.m4: Update.
2682         * gnulib/import/m4/unistd_h.m4: Update.
2683         * gnulib/import/m4/warn-on-use.m4: Update.
2684         * gnulib/import/m4/wchar_h.m4: Update.
2685         * gnulib/import/m4/wchar_t.m4: Update.
2686         * gnulib/import/m4/wctype_h.m4: Update.
2687         * gnulib/import/m4/wint_t.m4: Update.
2688         * gnulib/import/malloc.c: Update.
2689         * gnulib/import/malloc/scratch_buffer.h: Update.
2690         * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2691         * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2692         * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2693         * gnulib/import/malloca.c: Update.
2694         * gnulib/import/malloca.h: Update.
2695         * gnulib/import/malloca.valgrind: Update.
2696         * gnulib/import/math.in.h: Update.
2697         * gnulib/import/mbrtowc.c: Update.
2698         * gnulib/import/mbsinit.c: Update.
2699         * gnulib/import/mbsrtowcs-impl.h: Update.
2700         * gnulib/import/mbsrtowcs-state.c: Update.
2701         * gnulib/import/mbsrtowcs.c: Update.
2702         * gnulib/import/memchr.c: Update.
2703         * gnulib/import/memmem.c: Update.
2704         * gnulib/import/mempcpy.c: Update.
2705         * gnulib/import/memrchr.c: Update.
2706         * gnulib/import/mkdir.c: Update.
2707         * gnulib/import/mkstemp.c: Update.
2708         * gnulib/import/msvc-inval.c: Update.
2709         * gnulib/import/msvc-inval.h: Update.
2710         * gnulib/import/msvc-nothrow.c: Update.
2711         * gnulib/import/msvc-nothrow.h: Update.
2712         * gnulib/import/open.c: Update.
2713         * gnulib/import/openat-die.c: Update.
2714         * gnulib/import/openat-priv.h: Update.
2715         * gnulib/import/openat-proc.c: Update.
2716         * gnulib/import/openat.c: Update.
2717         * gnulib/import/openat.h: Update.
2718         * gnulib/import/opendir.c: Update.
2719         * gnulib/import/pathmax.h: Update.
2720         * gnulib/import/pipe-safer.c: Update.
2721         * gnulib/import/rawmemchr.c: Update.
2722         * gnulib/import/readdir.c: Update.
2723         * gnulib/import/readlink.c: Update.
2724         * gnulib/import/realloc.c: Update.
2725         * gnulib/import/ref-add.sin: Update.
2726         * gnulib/import/ref-del.sin: Update.
2727         * gnulib/import/rename.c: Update.
2728         * gnulib/import/rewinddir.c: Update.
2729         * gnulib/import/rmdir.c: Update.
2730         * gnulib/import/same-inode.h: Update.
2731         * gnulib/import/save-cwd.c: Update.
2732         * gnulib/import/save-cwd.h: Update.
2733         * gnulib/import/scratch_buffer.h: Update.
2734         * gnulib/import/secure_getenv.c: Update.
2735         * gnulib/import/setenv.c: Update.
2736         * gnulib/import/signal.in.h: Update.
2737         * gnulib/import/stat-time.c: Update.
2738         * gnulib/import/stat-time.h: Update.
2739         * gnulib/import/stat-w32.c: Update.
2740         * gnulib/import/stat-w32.h: Update.
2741         * gnulib/import/stat.c: Update.
2742         * gnulib/import/stdbool.in.h: Update.
2743         * gnulib/import/stddef.in.h: Update.
2744         * gnulib/import/stdint.in.h: Update.
2745         * gnulib/import/stdio.in.h: Update.
2746         * gnulib/import/stdlib.in.h: Update.
2747         * gnulib/import/str-two-way.h: Update.
2748         * gnulib/import/strchrnul.c: Update.
2749         * gnulib/import/strdup.c: Update.
2750         * gnulib/import/streq.h: Update.
2751         * gnulib/import/strerror-override.c: Update.
2752         * gnulib/import/strerror-override.h: Update.
2753         * gnulib/import/strerror.c: Update.
2754         * gnulib/import/string.in.h: Update.
2755         * gnulib/import/stripslash.c: Update.
2756         * gnulib/import/strnlen1.c: Update.
2757         * gnulib/import/strnlen1.h: Update.
2758         * gnulib/import/strstr.c: Update.
2759         * gnulib/import/strtok_r.c: Update.
2760         * gnulib/import/sys_stat.in.h: Update.
2761         * gnulib/import/sys_time.in.h: Update.
2762         * gnulib/import/sys_types.in.h: Update.
2763         * gnulib/import/tempname.c: Update.
2764         * gnulib/import/tempname.h: Update.
2765         * gnulib/import/time.in.h: Update.
2766         * gnulib/import/unistd--.h: Update.
2767         * gnulib/import/unistd-safer.h: Update.
2768         * gnulib/import/unistd.in.h: Update.
2769         * gnulib/import/unsetenv.c: Update.
2770         * gnulib/import/verify.h: Update.
2771         * gnulib/import/extra/snippet/warn-on-use.h: Update.
2772         * gnulib/import/wchar.in.h: Update.
2773         * gnulib/import/wctype.in.h: Update.
2774         * gnulib/import/xalloc-oversized.h: Update.
2775         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2776         "53e2c179f26a890fa6685af4b6c1397ee370433b".
2777
2778 2018-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2779
2780         * record-btrace.c (get_thread_current_frame): Remove
2781         old_inferior_ptid.
2782
2783 2018-09-10  Jerome Guitton  <guitton@adacore.com>
2784
2785         * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
2786         with check_tag to 1 if and only if the type is tagged and the
2787         component being searched cannot been found in the current
2788         view. Otherwise, always call ada_to_fixed_type with
2789         check_tag to 0.
2790
2791 2018-09-10  Xavier Roirand  <roirand@adacore.com>
2792
2793         * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
2794         declaration.
2795         * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
2796         * ada-varobj.c (ada_varobj_get_number_of_children,
2797         ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
2798
2799 2018-09-10  Xavier Roirand  <roirand@adacore.com>
2800
2801         * ada-valprint.c (ada_value_print): Use type instead of
2802         enclosing type.
2803
2804 2018-09-10  Xavier Roirand  <roirand@adacore.com>
2805
2806         * ada-lang.c (ada_value_subscript): Handle case when parameter is
2807         an array of access to unconstrained array.
2808
2809 2018-09-10  Xavier Roirand  <roirand@adacore.com>
2810
2811         * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
2812         (ada_check_typedef): Use it.
2813
2814 2018-09-10  Xavier Roirand  <roirand@adacore.com>
2815
2816         * ada-varobj.c (ada_varobj_describe_struct_child)
2817         (ada_varobj_describe_child): Handle union case like struct one.
2818
2819 2018-09-10  Tom Tromey  <tom@tromey.com>
2820
2821         PR python/18380:
2822         * python/python.c (_initialize_python): Make example in "python"
2823         help work in Python 3.
2824
2825 2018-09-10  Eli Zaretskii  <eliz@gnu.org>
2826
2827         * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
2828         INSTALL_PROGRAM to install gdb-add-index.sh.  Don't append
2829         $(EXEEXT) to the script, as it is not a program.
2830
2831 2018-09-09  Simon Marchi  <simon.marchi@ericsson.com>
2832
2833         * python/py-prettyprint.c (pretty_print_one_value): Return
2834         gdbpy_ref<>.
2835         (print_string_repr): Adjust.
2836         (apply_varobj_pretty_printer): Return gdbpy_ref<>.
2837         * python/python-internal.h (apply_varobj_pretty_printer): Return
2838         gdbpy_ref<>.
2839         * varobj.c (varobj_value_get_print_value): Adjust.
2840
2841 2018-09-08  Tom Tromey  <tom@tromey.com>
2842
2843         PR python/16047:
2844         * python/py-prettyprint.c (pretty_print_one_value): Check for
2845         to_string method.
2846
2847 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
2848
2849         * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
2850         replace_operator_with_call.
2851
2852 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
2853
2854         * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
2855
2856 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
2857
2858         * ada-typeprint.c (print_range): Print the bounds using TYPE
2859         rather than its TYPE_TARGET_TYPE.
2860
2861 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
2862
2863         * ada-lang.c (ada_to_fixed_value): Minor reformatting in
2864         call to ada_to_fixed_value_create.
2865
2866 2018-09-08  Jerome Guitton  <guitton@adacore.com>
2867
2868         * ada-lang.c (ada_decode): strip dot prefix in symbol name.
2869
2870 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
2871
2872         * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
2873         by calls to error.
2874
2875 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
2876
2877         * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
2878         Move update of loop variable "fi".
2879
2880 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
2881
2882         * ada-lang.c (value_assign_to_component): In the case of
2883         big-endian targets, extract the bits of the given VAL
2884         using an src_offset of zero if container is not a scalar.
2885
2886 2018-09-06  Simon Ser  <contact@emersion.fr>
2887
2888         PR gdb/23105
2889         * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
2890         TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
2891         * fbsd-tdep.c (fbsd_make_note_desc): New.
2892         (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
2893         NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
2894         * target.h (enum target_object) Add FreeBSD-specific
2895         TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
2896
2897 2018-09-06  Simon Marchi  <simon.marchi@ericsson.com>
2898
2899         * compile/compile-c.h (generate_c_for_variable_locations):
2900         Change reference to pointer.
2901         * compile/compile-c-support.c (compile_program) <compute>:
2902         Likewise.
2903         * compile/compile-c-symbols.c (generate_vla_size): Likewise.
2904         (generate_c_for_for_one_variable): Likewise
2905         (generate_c_for_variable_locations): Likewise
2906         * compile/compile-c-types.c (compile_c_instance::convert_type):
2907         Likewise
2908         * compile/compile-cplus-symbols.c (convert_one_symbol):
2909         std::move the scope passed to enter_scope.
2910         * compile/compile-cplus-types.c
2911         (compile_cplus_instance::enter_scope): Make parameter
2912         rvalue-reference.
2913         (compile_cplus_instance::new_scope): Change reference to
2914         pointer.
2915         (compile_cplus_instance::convert_type): Likewise
2916         (compile_cplus_convert_typedef): std::move the scope passed to
2917         enter_scope.
2918         (compile_cplus_convert_struct_or_union): Likewise.
2919         (compile_cplus_convert_enum): Likewise.
2920         (compile_cplus_convert_namespace): Likewise.
2921         * compile/compile-cplus.h (compile_cplus_instance)
2922         <enter_scope>: Make parameter rvalue-reference.
2923         * compile/compile-internal.h (compile_instance)
2924         <get_cached_type>: Likewise
2925         * compile/compile-loc2c.c (push): Likewise
2926         (pushf): Likewise
2927         (unary): Likewise
2928         (binary): Likewise
2929         (print_label): Likewise
2930         (pushf_register_address): Likewise
2931         (pushf_register): Likewise
2932         (do_compile_dwarf_expr_to_c): Likewise
2933         (compile_dwarf_expr_to_c): Likewise
2934         (compile_dwarf_bounds_to_c): Likewise
2935         * compile/compile.c (compile_instance::get_cached_type):
2936         Likewise
2937         * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
2938         (compile_dwarf_bounds_to_c): Likewise
2939         * dwarf2loc.c (locexpr_generate_c_location): Likewise.
2940         (dwarf2_compile_property_to_c): Likewise
2941         * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
2942         * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2943         Likewise
2944
2945 2018-09-06  Simon Marchi  <simon.marchi@ericsson.com>
2946
2947         * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
2948         * tui/tui-data.c (init_content_element): Don't initialize it.
2949
2950 2018-09-06  Simon Marchi  <simon.marchi@ericsson.com>
2951
2952         * tui/tui-data.h (struct tui_win_info)
2953         <detail::opaque>: Remove.
2954         * tui/tui-data.c (init_win_info): Remove assignment.
2955
2956 2018-09-05  Tom Tromey  <tom@tromey.com>
2957
2958         * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
2959         -Wformat-nonliteral.
2960         * target-float.c (host_float_ops<T>::to_string)
2961         (host_float_ops<T>::from_string): Use
2962         DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2963         * configure: Rebuild.
2964
2965 2018-09-05  Simon Marchi  <simon.marchi@ericsson.com>
2966
2967         * printcmd.c (printf_c_string): Use
2968         DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2969         (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
2970
2971 2018-09-05  Tom Tromey  <tom@tromey.com>
2972
2973         * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
2974
2975 2018-09-05  Tom de Vries  <tdevries@suse.de>
2976
2977         * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
2978         with resolve_abstract_p == true.
2979         (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
2980         defaulting to false. Propagate resolve_abstract_p to
2981         dwarf2_fetch_die_loc_sect_off.
2982         * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
2983         parameter, defaulting to false.
2984         * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
2985         (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
2986         parameter.
2987         * dwarf2read.h (struct die_info): Forward-declare.
2988         (die_info_ptr): New typedef.
2989         (struct dwarf2_per_objfile): Add abstract_to_concrete field.
2990
2991 2018-09-05  Joel Brobecker  <brobecker@adacore.com>
2992
2993         GDB 8.2 released.
2994
2995 2018-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
2996             Pedro Alves  <palves@redhat.com>
2997
2998         * gnulib/Makefile.in (aclocal_m4_deps): Move to
2999         "aclocal-m4-deps.mk".  Include file here.
3000         $(srcdir)/aclocal.m4: Add "configure.ac".
3001         * gnulib/aclocal-m4-deps.mk: New file.
3002         * gnulib/update-gnulib.sh: Automatically update
3003         "aclocal-m4-deps.mk".
3004
3005 2018-09-04  Tom Tromey  <tom@tromey.com>
3006
3007         * configure: Rebuild.
3008         * configure.ac: Remove multi-ice code.
3009
3010 2018-09-04  Tom Tromey  <tom@tromey.com>
3011
3012         * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
3013         (ada-exp.o): Update.
3014
3015 2018-09-04  Tom Tromey  <tom@tromey.com>
3016
3017         * Makefile.in (printcmd.o, target-float.o): Remove.
3018         (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
3019
3020 2018-09-04  Tom Tromey  <tom@tromey.com>
3021
3022         * gnulib/Makefile.in: Remove obsolete comment.
3023         * Makefile.in: Remove obsolete comment.
3024
3025 2018-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3026
3027         * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
3028         line with '+'.
3029
3030 2018-09-03  Andrew Burgess  <andrew.burgess@embecosm.com>
3031
3032         * riscv-tdep.c: Add 'prologue-value.h' include.
3033         (struct riscv_unwind_cache): New struct.
3034         (riscv_debug_unwinder): New global.
3035         (riscv_scan_prologue): Update arguments, capture register details
3036         from prologue scan.
3037         (riscv_skip_prologue): Reformat arguments line, move end of
3038         prologue calculation into riscv_scan_prologue.
3039         (riscv_frame_cache): Update return type, create
3040         riscv_unwind_cache, scan the prologue, and fill in remaining cache
3041         details.
3042         (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
3043         (riscv_frame_prev_register): Use the trad_frame within the
3044         riscv_unwind_cache.
3045         (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
3046         flag.
3047
3048 2018-09-03  Andrew Burgess  <andrew.burgess@embecosm.com>
3049
3050         * trad-frame.h (trad_frame_set_realreg): Declare.
3051         (trad_frame_set_addr): Declare.
3052         * trad-frame.c (trad_frame_set_realreg): Define new function.
3053         (trad_frame_set_addr): Define new function.
3054         (trad_frame_set_reg_realreg): Use new function.
3055         (trad_frame_set_reg_addr): Use new function.
3056
3057 2018-09-01  Keith Seitz  <keiths@redhat.com>
3058
3059         * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
3060         pulongest instead of "%lld".
3061         * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
3062         ATTRIBUTE_UNUSED.
3063
3064 2018-08-31  Tom Tromey  <tom@tromey.com>
3065
3066         * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
3067         variant part type.
3068
3069 2018-08-31  Pedro Alves  <palves@redhat.com>
3070
3071         * gdbarch.h: Regenerate.
3072
3073 2018-08-31  Pedro Alves  <palves@redhat.com>
3074
3075         * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
3076         * target.h (Hardware watchpoint interfaces): Describe
3077         continuable/steppable/non-steppable watchpoints.
3078         * gdbarch.h, gdbarch.c: Regenerate.
3079
3080 2018-08-31  Pedro Alves  <palves@redhat.com>
3081
3082         * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
3083         Delete.
3084         * s390-linux-nat.c
3085         (s390_linux_nat_target::have_continuable_watchpoint): Delete.
3086         * target.h (target_ops::have_continuable_watchpoint): Delete.
3087         (target_have_continuable_watchpoint): Delete.
3088         * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
3089         * target-delegates.c: Regenerate.
3090
3091 2018-08-31  Sergio Durigan Junior  <sergiodj@redhat.com>
3092
3093         * gnulib/Makefile.in (aclocal_m4_deps): Update according to
3094         the files present in "gnulib/import/m4/".
3095
3096 2018-08-30  Andrew Burgess  <andrew.burgess@embecosm.com>
3097
3098         * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
3099         c.sw, c.swsp, and c.sdsp.
3100
3101 2018-08-30  Andrew Burgess  <andrew.burgess@embecosm.com>
3102
3103         * riscv-tdep.c (struct riscv_inferior_data): Delete.
3104         (riscv_read_misa_reg): Don't cache value read into inferior data.
3105         (riscv_new_inferior_data): Delete.
3106         (riscv_inferior_data_cleanup): Delete.
3107         (riscv_inferior_data): Delete.
3108         (riscv_invalidate_inferior_data): Delete.
3109         (_initialize_riscv_tdep): Remove initialisation of inferior data.
3110
3111 2018-08-30  Simon Marchi  <simon.marchi@ericsson.com>
3112
3113         * compile/compile-cplus-types.c
3114         (compile_cplus_instance::leave_scope): Take the address of scope
3115         object.
3116         (compile_cplus_instance::convert_qualified_base): Compare quals
3117         to 0.
3118
3119 2018-08-30  Keith Seitz  <keiths@redhat.com>
3120
3121         * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
3122         Use "%s" and host_address_to_string instead of "%p" in printf.
3123
3124 2018-08-29  Keith Seitz  <keiths@redhat.com>
3125
3126         * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
3127         and compile-cplus-types.c.
3128         (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
3129         * c-lang.c (cplus_language_defn): Set C++ compile functions.
3130         * c-lang.h (cplus_get_compile_context, cplus_compute_program):
3131         Declare.
3132         * compile/compile-c-support.c: Include compile-cplus.h.
3133         (load_libcompile): Templatize.
3134         (get_compile_context): "New" function.
3135         (c_get_compile_context): Use get_compile_context.
3136         (cplus_get_compile_context): New function.
3137         (cplus_push_user_expression, cplus_pop_user_expression)
3138         (cplus_add_code_header, cplus_add_input, cplus_compile_program)
3139         (cplus_compute_program): Define new structs/functions.
3140         * compile/compile-cplus-symmbols.c: New file.
3141         * compile/compile-cplus-types.c: New file.
3142         * compile/compile-cplus.h: New file.
3143         * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
3144         Declare.
3145         * compile/compile-object-load.c (get_out_value_type): Use
3146         strncmp_iw when comparing symbol names.
3147         (compile_object_load): Add mst_bss and mst_data.
3148         * compile/compile.c (_initialize_compile): Remove
3149         -Wno-implicit-function-declaration from `compile_args'.
3150         * compile/gcc-cp-plugin.h: New file.
3151         * NEWS: Mention C++ compile support and new debug options.
3152
3153 2018-08-29  Keith Seitz  <keiths@redhat.com>
3154
3155         * linespec.c (collect_info::add_symbol): Make virtual.
3156         (struct symbol_searcher_collect_info): New struct.
3157         (symbol_searcher::find_all_symbols): New method.
3158         * symtab.h (class symbol_searcher): New class.
3159
3160 2018-08-29  Keith Seitz  <keiths@redhat.com>
3161
3162         * linespec.c (struct linespec) <function_symbols, label_symbols>:
3163         Change to vector of block_symbol.  Update all users.
3164         (struct collect_info) <symbols>: Likewise.
3165         (collect_info::add_symbol): Take block_symbol as argument.
3166         Update all callers.
3167         (decode_compound_collector) <m_symbols>: Change type to vector
3168         of block_symbol.  Update all users.
3169         (decode_compound_collector::operator ()): Change parameter type
3170         to block_symbol.
3171         (find_method, find_function_symbols, find_linespec_symbols)
3172         (find_label_symbols_in_block, find_label_symbols): Change symbol
3173         vectors to block_symbol vectors.
3174         * symtab.h (symbol_found_callback_ftype): Change parameter type to
3175         block_symbol.
3176
3177 2018-08-29  Keith Seitz  <keiths@redhat.com>
3178
3179         * linespec.c (symbolp): Remove typedef and VEC definitions.
3180         (bound_minimal_symbol_d): Likewise.
3181
3182 2018-08-29  Keith Seitz  <keiths@redhat.com>
3183
3184         * linespec.c (decode_compound_collector::decode_compound_collector):
3185         Remove initialization for `m_symtabs'.
3186         (decode_compound_collector::release_symbols): Change return type
3187         to std::vector.  Update all callers.
3188         (class decode_compound_collector) <m_symbols>: Change type to
3189         std::vector.
3190         (lookup_prefix_sym): Change return type to std::vector.  Update all
3191         callers.
3192         (compare_symbols): Remove.
3193         (std_compare_symbols): Rename to `compare_symbols'.
3194         (find_method): Change `sym_classes' parameter to std::vector.
3195         Update all callers.  Use std::sort to sort sym_classes.
3196         (find_linespec_symbols): Remove cleanup.
3197
3198 2018-08-29  Keith Seitz  <keiths@redhat.com>
3199
3200         * linespec.c (struct linespec) <minimal_symbols>: Change type to
3201         std::vector.  Update all users.
3202         (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
3203         (struct collect_info) <minimal_symbols>: Likewise.
3204         (compare_msymbols): Return bool.  Change parameters to const
3205         bound_minimal_symbol references.
3206         (find_method, find_function_symbols, find_linespec_symbols): Change
3207         `minsyms' parameter to std::vector.  Update all callers.
3208
3209 2018-08-29  Keith Seitz  <keiths@redhat.com>
3210
3211         * linespec.c (struct linespec) <label_symbols>: Change type to
3212         std::vector.  Update all users.
3213         (find_label_symbols_in_block): Change `result' parameter to
3214         std::vector.  Update all callers.
3215         (find_label_symbols): Return std::vector.  Update all callers.
3216
3217 2018-08-29  Keith Seitz  <keiths@redhat.com>
3218
3219         * linespec.c (struct linespec) <function_symbols>: Change type to
3220         std::vector.  Update all users.
3221         (struct collect_info) <function_symbols>: Likewise.
3222         (convert_linespec_to_sals): Use std::sort to sort function_symbols.
3223         (std_compare_symbols): New function.
3224         (find_method, find_function_symbols, find_linespec_symbols)
3225         (find_label_symbols_in_block): Change `symbols' parameter to
3226         std::vector.  Update all callers.
3227         (find_label_symbols): Likewise for `function_symbols' and
3228         `label_funcs_ret'.
3229
3230 2018-08-29  Keith Seitz  <keiths@redhat.com>
3231
3232         * linespec.c (symtab_vector_up): Define.
3233         (struct linespec) <file_symtabs>: Change type to std::vector *.
3234         Update all uses.
3235         (struct collect_info) <file_symtabs>: Likewise.
3236         (collect_symtabs_from_filename): Return symtab_vector_up.
3237         Update all callers.
3238         (decode_objc): Remove cleanup.
3239         (symtab_collector::symtab_collector): Initialize `m_symtabs'.
3240         (symtab_collector::release_symtabs): Return symtab_vector_up.
3241         Update all callers.
3242         (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
3243         Update all users.
3244         (collect_symtabs_from_filename, symtabs_from_filename): Return
3245         symtab_vector_up.  Update all callers.
3246
3247 2018-08-29  Tom Tromey  <tom@tromey.com>
3248
3249         * csky-tdep.c (csky_analyze_prologue): Use
3250         core_addr_to_string_nz.
3251
3252 2018-08-29  Tom Tromey  <tom@tromey.com>
3253
3254         * windows-nat.c (struct xlate_exception) <them>: Change type to
3255         DWORD.
3256         (xlate): Fix formatting.  Remove last entry.
3257         (struct xlate_exception, xlate): Comment out.
3258         (windows_nat_target::resume): Use ranged for.
3259
3260 2018-08-29  Jim Wilson  <jimw@sifive.com>
3261
3262         * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
3263         (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
3264         of NT_PRFPREG.
3265         (riscv_linux_nat_target::store_registers): Likewise.
3266
3267 2018-08-29  Sergio Durigan Junior  <sergiodj@redhat.com>
3268
3269         PR gdb/23555
3270         PR gdb/23558
3271         * gnulib/aclocal.m4: Regenerate.
3272         * gnulib/config.in: Regenerate.
3273         * gnulib/configure: Regenerate.
3274         * gnulib/import/Makefile.am: Update.
3275         * gnulib/import/Makefile.in: Update.
3276         * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
3277         * gnulib/import/_Noreturn.h: ... this.
3278         * gnulib/import/alloca.in.h: Update.
3279         * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
3280         * gnulib/import/arg-nonnull.h: ... this.
3281         * gnulib/import/assure.h: Update.
3282         * gnulib/import/at-func.c: Update.
3283         * gnulib/import/basename-lgpl.c: Update.
3284         * gnulib/import/extra/snippet/c++defs.h: Rename to...
3285         * gnulib/import/c++defs.h: ... this.
3286         * gnulib/import/canonicalize-lgpl.c: Update.
3287         * gnulib/import/cdefs.h: Update.
3288         * gnulib/import/chdir-long.c: Update.
3289         * gnulib/import/chdir-long.h: Update.
3290         * gnulib/import/cloexec.c: Update.
3291         * gnulib/import/cloexec.h: Update.
3292         * gnulib/import/close.c: Update.
3293         * gnulib/import/closedir.c: Update.
3294         * gnulib/import/config.charset: Update.
3295         * gnulib/import/dirent-private.h: Update.
3296         * gnulib/import/dirent.in.h: Update.
3297         * gnulib/import/dirfd.c: Update.
3298         * gnulib/import/dirname-lgpl.c: Update.
3299         * gnulib/import/dirname.h: Update.
3300         * gnulib/import/dosname.h: Update.
3301         * gnulib/import/dup-safer-flag.c: Update.
3302         * gnulib/import/dup-safer.c: Update.
3303         * gnulib/import/dup.c: Update.
3304         * gnulib/import/dup2.c: Update.
3305         * gnulib/import/errno.in.h: Update.
3306         * gnulib/import/error.c: Update.
3307         * gnulib/import/error.h: Update.
3308         * gnulib/import/exitfail.c: Update.
3309         * gnulib/import/exitfail.h: Update.
3310         * gnulib/import/extra/update-copyright: Update.
3311         * gnulib/import/fchdir.c: Update.
3312         * gnulib/import/fcntl.c: Update.
3313         * gnulib/import/fcntl.in.h: Update.
3314         * gnulib/import/fd-hook.c: Update.
3315         * gnulib/import/fd-hook.h: Update.
3316         * gnulib/import/fd-safer-flag.c: Update.
3317         * gnulib/import/fd-safer.c: Update.
3318         * gnulib/import/fdopendir.c: Update.
3319         * gnulib/import/filename.h: Update.
3320         * gnulib/import/filenamecat-lgpl.c: Update.
3321         * gnulib/import/filenamecat.h: Update.
3322         * gnulib/import/flexmember.h: Update.
3323         * gnulib/import/float+.h: Update.
3324         * gnulib/import/float.c: Update.
3325         * gnulib/import/float.in.h: Update.
3326         * gnulib/import/fnmatch.c: Update.
3327         * gnulib/import/fnmatch.in.h: Update.
3328         * gnulib/import/fnmatch_loop.c: Update.
3329         * gnulib/import/fpucw.h: Update.
3330         * gnulib/import/frexp.c: Update.
3331         * gnulib/import/frexpl.c: Update.
3332         * gnulib/import/fstat.c: Update.
3333         * gnulib/import/fstatat.c: Update.
3334         * gnulib/import/getcwd-lgpl.c: Update.
3335         * gnulib/import/getcwd.c: Update.
3336         * gnulib/import/getdtablesize.c: Update.
3337         * gnulib/import/getlogin_r.c: Update.
3338         * gnulib/import/getprogname.c: Update.
3339         * gnulib/import/getprogname.h: Update.
3340         * gnulib/import/gettext.h: Update.
3341         * gnulib/import/gettimeofday.c: Update.
3342         * gnulib/import/glob-libc.h: Update.
3343         * gnulib/import/glob.c: Update.
3344         * gnulib/import/glob.in.h: Update.
3345         * gnulib/import/glob_internal.h: Update.
3346         * gnulib/import/glob_pattern_p.c: Update.
3347         * gnulib/import/globfree.c: Update.
3348         * gnulib/import/hard-locale.c: Update.
3349         * gnulib/import/hard-locale.h: Update.
3350         * gnulib/import/intprops.h: Update.
3351         * gnulib/import/inttypes.in.h: Update.
3352         * gnulib/import/isnan.c: Update.
3353         * gnulib/import/isnand-nolibm.h: Update.
3354         * gnulib/import/isnand.c: Update.
3355         * gnulib/import/isnanl-nolibm.h: Update.
3356         * gnulib/import/isnanl.c: Update.
3357         * gnulib/import/itold.c: Update.
3358         * gnulib/import/libc-config.h: Update.
3359         * gnulib/import/limits.in.h: Update.
3360         * gnulib/import/localcharset.c: Update.
3361         * gnulib/import/localcharset.h: Update.
3362         * gnulib/import/localtime-buffer.c: Update.
3363         * gnulib/import/localtime-buffer.h: Update.
3364         * gnulib/import/lstat.c: Update.
3365         * gnulib/import/m4/00gnulib.m4: Update.
3366         * gnulib/import/m4/__inline.m4: Update.
3367         * gnulib/import/m4/absolute-header.m4: Update.
3368         * gnulib/import/m4/alloca.m4: Update.
3369         * gnulib/import/m4/builtin-expect.m4: Update.
3370         * gnulib/import/m4/canonicalize.m4: Update.
3371         * gnulib/import/m4/chdir-long.m4: Update.
3372         * gnulib/import/m4/close.m4: Update.
3373         * gnulib/import/m4/closedir.m4: Update.
3374         * gnulib/import/m4/configmake.m4: Update.
3375         * gnulib/import/m4/d-ino.m4: Update.
3376         * gnulib/import/m4/d-type.m4: Update.
3377         * gnulib/import/m4/dirent_h.m4: Update.
3378         * gnulib/import/m4/dirfd.m4: Update.
3379         * gnulib/import/m4/dirname.m4: Update.
3380         * gnulib/import/m4/double-slash-root.m4: Update.
3381         * gnulib/import/m4/dup.m4: Update.
3382         * gnulib/import/m4/dup2.m4: Update.
3383         * gnulib/import/m4/eealloc.m4: Update.
3384         * gnulib/import/m4/environ.m4: Update.
3385         * gnulib/import/m4/errno_h.m4: Update.
3386         * gnulib/import/m4/error.m4: Update.
3387         * gnulib/import/m4/exponentd.m4: Update.
3388         * gnulib/import/m4/exponentl.m4: Update.
3389         * gnulib/import/m4/extensions.m4: Update.
3390         * gnulib/import/m4/extern-inline.m4: Update.
3391         * gnulib/import/m4/fchdir.m4: Update.
3392         * gnulib/import/m4/fcntl-o.m4: Update.
3393         * gnulib/import/m4/fcntl.m4: Update.
3394         * gnulib/import/m4/fcntl_h.m4: Update.
3395         * gnulib/import/m4/fdopendir.m4: Update.
3396         * gnulib/import/m4/filenamecat.m4: Update.
3397         * gnulib/import/m4/flexmember.m4: Update.
3398         * gnulib/import/m4/float_h.m4: Update.
3399         * gnulib/import/m4/fnmatch.m4: Update.
3400         * gnulib/import/m4/fnmatch_h.m4: Update.
3401         * gnulib/import/m4/fpieee.m4: Update.
3402         * gnulib/import/m4/frexp.m4: Update.
3403         * gnulib/import/m4/frexpl.m4: Update.
3404         * gnulib/import/m4/fstat.m4: Update.
3405         * gnulib/import/m4/fstatat.m4: Update.
3406         * gnulib/import/m4/getcwd-abort-bug.m4: Update.
3407         * gnulib/import/m4/getcwd-path-max.m4: Update.
3408         * gnulib/import/m4/getcwd.m4: Update.
3409         * gnulib/import/m4/getdtablesize.m4: Update.
3410         * gnulib/import/m4/getlogin.m4: Update.
3411         * gnulib/import/m4/getlogin_r.m4: Update.
3412         * gnulib/import/m4/getpagesize.m4: Update.
3413         * gnulib/import/m4/getprogname.m4: Update.
3414         * gnulib/import/m4/gettimeofday.m4: Update.
3415         * gnulib/import/m4/glibc21.m4: Update.
3416         * gnulib/import/m4/glob.m4: Update.
3417         * gnulib/import/m4/glob_h.m4: Update.
3418         * gnulib/import/m4/gnulib-cache.m4: Update.
3419         * gnulib/import/m4/gnulib-common.m4: Update.
3420         * gnulib/import/m4/gnulib-comp.m4: Update.
3421         * gnulib/import/m4/gnulib-tool.m4: Update.
3422         * gnulib/import/m4/hard-locale.m4: Update.
3423         * gnulib/import/m4/include_next.m4: Update.
3424         * gnulib/import/m4/inttypes-pri.m4: Update.
3425         * gnulib/import/m4/inttypes.m4: Update.
3426         * gnulib/import/m4/isnand.m4: Update.
3427         * gnulib/import/m4/isnanl.m4: Update.
3428         * gnulib/import/m4/largefile.m4: Update.
3429         * gnulib/import/m4/limits-h.m4: Update.
3430         * gnulib/import/m4/localcharset.m4: Update.
3431         * gnulib/import/m4/locale-fr.m4: Update.
3432         * gnulib/import/m4/locale-ja.m4: Update.
3433         * gnulib/import/m4/locale-zh.m4: Update.
3434         * gnulib/import/m4/localtime-buffer.m4: Update.
3435         * gnulib/import/m4/longlong.m4: Update.
3436         * gnulib/import/m4/lstat.m4: Update.
3437         * gnulib/import/m4/malloc.m4: Update.
3438         * gnulib/import/m4/malloca.m4: Update.
3439         * gnulib/import/m4/math_h.m4: Update.
3440         * gnulib/import/m4/mbrtowc.m4: Update.
3441         * gnulib/import/m4/mbsinit.m4: Update.
3442         * gnulib/import/m4/mbsrtowcs.m4: Update.
3443         * gnulib/import/m4/mbstate_t.m4: Update.
3444         * gnulib/import/m4/memchr.m4: Update.
3445         * gnulib/import/m4/memmem.m4: Update.
3446         * gnulib/import/m4/mempcpy.m4: Update.
3447         * gnulib/import/m4/memrchr.m4: Update.
3448         * gnulib/import/m4/mkdir.m4: Update.
3449         * gnulib/import/m4/mkstemp.m4: Update.
3450         * gnulib/import/m4/mmap-anon.m4: Update.
3451         * gnulib/import/m4/mode_t.m4: Update.
3452         * gnulib/import/m4/msvc-inval.m4: Update.
3453         * gnulib/import/m4/msvc-nothrow.m4: Update.
3454         * gnulib/import/m4/multiarch.m4: Update.
3455         * gnulib/import/m4/nocrash.m4: Update.
3456         * gnulib/import/m4/off_t.m4: Update.
3457         * gnulib/import/m4/onceonly.m4: Update.
3458         * gnulib/import/m4/open-cloexec.m4: Update.
3459         * gnulib/import/m4/open.m4: Update.
3460         * gnulib/import/m4/openat.m4: Update.
3461         * gnulib/import/m4/opendir.m4: Update.
3462         * gnulib/import/m4/pathmax.m4: Update.
3463         * gnulib/import/m4/rawmemchr.m4: Update.
3464         * gnulib/import/m4/readdir.m4: Update.
3465         * gnulib/import/m4/readlink.m4: Update.
3466         * gnulib/import/m4/realloc.m4: Update.
3467         * gnulib/import/m4/rename.m4: Update.
3468         * gnulib/import/m4/rewinddir.m4: Update.
3469         * gnulib/import/m4/rmdir.m4: Update.
3470         * gnulib/import/m4/save-cwd.m4: Update.
3471         * gnulib/import/m4/secure_getenv.m4: Update.
3472         * gnulib/import/m4/setenv.m4: Update.
3473         * gnulib/import/m4/signal_h.m4: Update.
3474         * gnulib/import/m4/ssize_t.m4: Update.
3475         * gnulib/import/m4/stat-time.m4: Update.
3476         * gnulib/import/m4/stat.m4: Update.
3477         * gnulib/import/m4/std-gnu11.m4: Update.
3478         * gnulib/import/m4/stdbool.m4: Update.
3479         * gnulib/import/m4/stddef_h.m4: Update.
3480         * gnulib/import/m4/stdint.m4: Update.
3481         * gnulib/import/m4/stdio_h.m4: Update.
3482         * gnulib/import/m4/stdlib_h.m4: Update.
3483         * gnulib/import/m4/strchrnul.m4: Update.
3484         * gnulib/import/m4/strdup.m4: Update.
3485         * gnulib/import/m4/strerror.m4: Update.
3486         * gnulib/import/m4/string_h.m4: Update.
3487         * gnulib/import/m4/strstr.m4: Update.
3488         * gnulib/import/m4/strtok_r.m4: Update.
3489         * gnulib/import/m4/sys_socket_h.m4: Update.
3490         * gnulib/import/m4/sys_stat_h.m4: Update.
3491         * gnulib/import/m4/sys_time_h.m4: Update.
3492         * gnulib/import/m4/sys_types_h.m4: Update.
3493         * gnulib/import/m4/tempname.m4: Update.
3494         * gnulib/import/m4/time_h.m4: Update.
3495         * gnulib/import/m4/unistd-safer.m4: Update.
3496         * gnulib/import/m4/unistd_h.m4: Update.
3497         * gnulib/import/m4/warn-on-use.m4: Update.
3498         * gnulib/import/m4/wchar_h.m4: Update.
3499         * gnulib/import/m4/wchar_t.m4: Update.
3500         * gnulib/import/m4/wctype_h.m4: Update.
3501         * gnulib/import/m4/wint_t.m4: Update.
3502         * gnulib/import/malloc.c: Update.
3503         * gnulib/import/malloc/scratch_buffer.h: Update.
3504         * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3505         * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3506         * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3507         * gnulib/import/malloca.c: Update.
3508         * gnulib/import/malloca.h: Update.
3509         * gnulib/import/malloca.valgrind: Update.
3510         * gnulib/import/math.in.h: Update.
3511         * gnulib/import/mbrtowc.c: Update.
3512         * gnulib/import/mbsinit.c: Update.
3513         * gnulib/import/mbsrtowcs-impl.h: Update.
3514         * gnulib/import/mbsrtowcs-state.c: Update.
3515         * gnulib/import/mbsrtowcs.c: Update.
3516         * gnulib/import/memchr.c: Update.
3517         * gnulib/import/memmem.c: Update.
3518         * gnulib/import/mempcpy.c: Update.
3519         * gnulib/import/memrchr.c: Update.
3520         * gnulib/import/mkdir.c: Update.
3521         * gnulib/import/mkstemp.c: Update.
3522         * gnulib/import/msvc-inval.c: Update.
3523         * gnulib/import/msvc-inval.h: Update.
3524         * gnulib/import/msvc-nothrow.c: Update.
3525         * gnulib/import/msvc-nothrow.h: Update.
3526         * gnulib/import/open.c: Update.
3527         * gnulib/import/openat-die.c: Update.
3528         * gnulib/import/openat-priv.h: Update.
3529         * gnulib/import/openat-proc.c: Update.
3530         * gnulib/import/openat.c: Update.
3531         * gnulib/import/openat.h: Update.
3532         * gnulib/import/opendir.c: Update.
3533         * gnulib/import/pathmax.h: Update.
3534         * gnulib/import/pipe-safer.c: Update.
3535         * gnulib/import/rawmemchr.c: Update.
3536         * gnulib/import/readdir.c: Update.
3537         * gnulib/import/readlink.c: Update.
3538         * gnulib/import/realloc.c: Update.
3539         * gnulib/import/ref-add.sin: Update.
3540         * gnulib/import/ref-del.sin: Update.
3541         * gnulib/import/rename.c: Update.
3542         * gnulib/import/rewinddir.c: Update.
3543         * gnulib/import/rmdir.c: Update.
3544         * gnulib/import/same-inode.h: Update.
3545         * gnulib/import/save-cwd.c: Update.
3546         * gnulib/import/save-cwd.h: Update.
3547         * gnulib/import/scratch_buffer.h: Update.
3548         * gnulib/import/secure_getenv.c: Update.
3549         * gnulib/import/setenv.c: Update.
3550         * gnulib/import/signal.in.h: Update.
3551         * gnulib/import/stat-time.c: Update.
3552         * gnulib/import/stat-time.h: Update.
3553         * gnulib/import/stat-w32.c: Update.
3554         * gnulib/import/stat-w32.h: Update.
3555         * gnulib/import/stat.c: Update.
3556         * gnulib/import/stdbool.in.h: Update.
3557         * gnulib/import/stddef.in.h: Update.
3558         * gnulib/import/stdint.in.h: Update.
3559         * gnulib/import/stdio.in.h: Update.
3560         * gnulib/import/stdlib.in.h: Update.
3561         * gnulib/import/str-two-way.h: Update.
3562         * gnulib/import/strchrnul.c: Update.
3563         * gnulib/import/strdup.c: Update.
3564         * gnulib/import/streq.h: Update.
3565         * gnulib/import/strerror-override.c: Update.
3566         * gnulib/import/strerror-override.h: Update.
3567         * gnulib/import/strerror.c: Update.
3568         * gnulib/import/string.in.h: Update.
3569         * gnulib/import/stripslash.c: Update.
3570         * gnulib/import/strnlen1.c: Update.
3571         * gnulib/import/strnlen1.h: Update.
3572         * gnulib/import/strstr.c: Update.
3573         * gnulib/import/strtok_r.c: Update.
3574         * gnulib/import/sys_stat.in.h: Update.
3575         * gnulib/import/sys_time.in.h: Update.
3576         * gnulib/import/sys_types.in.h: Update.
3577         * gnulib/import/tempname.c: Update.
3578         * gnulib/import/tempname.h: Update.
3579         * gnulib/import/time.in.h: Update.
3580         * gnulib/import/unistd--.h: Update.
3581         * gnulib/import/unistd-safer.h: Update.
3582         * gnulib/import/unistd.in.h: Update.
3583         * gnulib/import/unsetenv.c: Update.
3584         * gnulib/import/verify.h: Update.
3585         * gnulib/import/extra/snippet/warn-on-use.h: Update.
3586         * gnulib/import/wchar.in.h: Update.
3587         * gnulib/import/wctype.in.h: Update.
3588         * gnulib/import/xalloc-oversized.h: Update.
3589         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3590         "53e2c179f26a890fa6685af4b6c1397ee370433b".
3591
3592 2018-08-16  Gary Benson <gbenson@redhat.com>
3593
3594         PR gdb/13000:
3595         * gdb/main.c (captured_main_1): Exit with nonzero status
3596         in batch mode if the last command to be executed failed.
3597         * NEWS: Mention the above.
3598
3599 2018-08-29  Simon Marchi  <simon.marchi@ericsson.com>
3600
3601         * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
3602         end of warning message.
3603
3604 2018-08-29  Alan Hayward  <alan.hayward@arm.com>
3605
3606         PR gdb/22943:
3607         * aarch64-tdep.c (is_hfa_or_hva): Remove function.
3608         (aarch64_extract_return_value): Use
3609         aapcs_is_vfp_call_or_return_candidate.
3610         (aarch64_return_in_memory): Likewise.
3611         (aarch64_store_return_value): Likewise.
3612
3613 2018-08-29  Alan Hayward  <alan.hayward@arm.com>
3614
3615         * aarch64-tdep.c
3616         (aapcs_is_vfp_call_or_return_candidate): Make static
3617         (pass_in_v_or_stack): Remove function.
3618         (pass_in_v_vfp_candidate): New function.
3619         (aarch64_push_dummy_call): Check for float register candidates.
3620
3621 2018-08-29  Alan Hayward  <alan.hayward@arm.com>
3622
3623         * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
3624         (aapcs_is_vfp_call_or_return_candidate_1): New function.
3625         (aapcs_is_vfp_call_or_return_candidate): Likewise.
3626
3627 2018-08-28  Simon Marchi  <simon.marchi@polymtl.ca>
3628
3629         PR build/23399
3630         * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
3631         (struct ipa_sym_addresses): Rename to...
3632         (struct ipa_sym_addresses_common): ... this.
3633         * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
3634
3635 2018-08-28  Tom Tromey  <tom@tromey.com>
3636
3637         * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3638         (token_fifo): Now a std::vector.
3639         (yylex, c_parse): Update.
3640         * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3641         (token_fifo): Now a std::vector.
3642         (yylex, d_parse): Update.
3643         * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3644         (token_fifo): Now a std::vector.
3645         (yylex, go_parse): Update.
3646
3647 2018-08-28  Simon Marchi  <simon.marchi@ericsson.com>
3648
3649         * parser-defs.h (struct type_stack) <elements>: Change type to
3650         std::vector<union type_stack_elt>.
3651         <depth, size>: Remove.
3652         * parse.c (parse_exp_in_context_1): Adjust.
3653         (type_stack_reserve): Remove.
3654         (check_type_stack_depth): Remove.
3655         (insert_into_type_stack): Adjust to std::vector.
3656         (insert_type): Likewise.
3657         (push_type): Likewise.
3658         (push_type_int): Likewise.
3659         (insert_type_address_space): Likewise.
3660         (pop_type): Likewise.
3661         (pop_type_int): Likewise.
3662         (pop_typelist): Likewise.
3663         (pop_type_stack): Likewise.
3664         (append_type_stack): Likewise.
3665         (push_type_stack): Likewise.
3666         (get_type_stack): Likewise.
3667         (type_stack_cleanup): Likewise.
3668         (push_typelist): Likewise.
3669         (follow_types): Likewise.
3670         (_initialize_parse): Likewise.
3671
3672 2018-08-28  Hafiz Abid Qadeer  <abidh@codesourcery.com>
3673
3674         * NEWS: Mention csky target.
3675
3676 2018-08-28  Jiangshuai Li  <jiangshuai_li@c-sky.com>
3677             Hafiz Abid Qadeer  <abidh@codesourcery.com>
3678             Don Breazeal  <donb@codesourcery.com>
3679
3680         * csky-linux-tdep.c: New file.
3681         * csky-tdep.c: Likewise.
3682         * csky-tdep.h: Likewise.
3683         * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
3684         csky-tdep.o.
3685         (HFILES_NO_SRCDIR): Add csky-tdep.h.
3686         (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
3687         * configure.tgt: Add csky support.
3688
3689 2018-08-27  Jan Vrany  <jan.vrany@fit.cvut.cz>
3690
3691         * python/py-framefilter.c (py_print_frame): Print frame architecture
3692         when printing on an MI output.
3693
3694 2018-08-27  Tom Tromey  <tom@tromey.com>
3695
3696         PR build/23087:
3697         * configure: Rebuild.
3698         * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
3699
3700 2018-08-27  Tom Tromey  <tom@tromey.com>
3701
3702         * aarch64-linux-tdep.c
3703         (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
3704         casts to int.
3705
3706 2018-08-27  Tom Tromey  <tom@tromey.com>
3707
3708         * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
3709         unsigned.
3710         (ppc64_standard_linkage1, ppc64_standard_linkage2)
3711         (ppc64_standard_linkage3, ppc64_standard_linkage4)
3712         (ppc64_standard_linkage5, ppc64_standard_linkage6)
3713         (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
3714         unsigned.
3715
3716 2018-08-27  Tom Tromey  <tom@tromey.com>
3717
3718         * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
3719         (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
3720
3721 2018-08-27  Tom Tromey  <tom@tromey.com>
3722
3723         * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
3724         * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
3725         ULONGEST_MAX.
3726         * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
3727         ULONGEST_MAX.
3728         * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
3729         ULONGEST_MAX.
3730         * sparc-linux-tdep.c (sparc32_linux_sigframe)
3731         (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
3732         * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
3733         ULONGEST_MAX.
3734         * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
3735         (ppc64_linux_sigaction_tramp_frame)
3736         (ppc32_linux_sighandler_tramp_frame)
3737         (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
3738         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
3739         (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
3740         * mn10300-linux-tdep.c (am33_linux_sigframe)
3741         (am33_linux_rt_sigframe): Use ULONGEST_MAX.
3742         * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
3743         * mips-linux-tdep.c (mips_linux_o32_sigframe)
3744         (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3745         (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
3746         (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
3747         (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
3748         * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
3749         (mips64_fbsd_sigframe): Use ULONGEST_MAX.
3750         * microblaze-linux-tdep.c
3751         (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
3752         * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
3753         (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
3754         (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
3755         * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
3756         * common/common-types.h (ULONGEST_MAX): New define.
3757         (CORE_ADDR_MAX): Fix formatting.
3758         * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
3759         * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
3760         * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
3761         (arm_linux_rt_sigreturn_tramp_frame)
3762         (arm_eabi_linux_sigreturn_tramp_frame)
3763         (arm_eabi_linux_rt_sigreturn_tramp_frame)
3764         (thumb2_eabi_linux_sigreturn_tramp_frame)
3765         (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
3766         (arm_linux_restart_syscall_tramp_frame)
3767         (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
3768         * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
3769         * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
3770         ULONGEST_MAX.
3771         * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
3772
3773 2018-08-27  Tom Tromey  <tom@tromey.com>
3774
3775         * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
3776         CORE_ADDR_MAX.
3777         * mips-tdep.c (mips_deal_with_atomic_sequence)
3778         (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
3779         * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
3780         (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
3781         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
3782         CORE_ADDR_MAX.
3783         * aarch64-tdep.c (aarch64_software_single_step): Use
3784         CORE_ADDR_MAX.
3785
3786 2018-08-27  Tom Tromey  <tom@tromey.com>
3787
3788         * linespec.c (complete_linespec_component): Add cast to "char".
3789         * completer.c (completion_tracker::build_completion_result): Add
3790         cast to "char".
3791
3792 2018-08-26  Simon Marchi  <simon.marchi@polymtl.ca>
3793
3794         * solist.h (struct solist, struct target_so_ops): Fix
3795         indentation.
3796
3797 2018-08-26  Simon Marchi  <simon.marchi@polymtl.ca>
3798
3799         * ada-tasks.c (ada_task_info_s): Remove typedef.
3800         (DEF_VEC_O(ada_task_info_s)): Remove.
3801         (struct ada_tasks_inferior_data): Initialize fields.
3802         <task_list>: Make an std::vector.
3803         (get_ada_tasks_inferior_data): Allocate with new.
3804         (ada_get_task_number): Adjust.
3805         (get_task_number_from_id): Likewise.
3806         (valid_task_id): Likewise.
3807         (ada_get_task_info_from_ptid): Likewise.
3808         (iterate_over_live_ada_tasks): Likewise.
3809         (add_ada_task): Likewise.
3810         (read_known_tasks): Likewise.
3811         (ada_build_task_list): Likewise.
3812         (print_ada_task_info): Likewise.
3813         (info_task): Likewise.
3814         (task_command_1): Likewise.
3815
3816 2018-08-26  Simon Marchi  <simon.marchi@polymtl.ca>
3817
3818         * ada-lang.c (add_angle_brackets): Return std::string.
3819
3820 2018-08-25  Simon Marchi  <simon.marchi@polymtl.ca>
3821
3822         * python/py-threadevent.c (py_get_event_thread): Initialize
3823         pythread.
3824
3825 2018-08-24  Pedro Alves  <palves@redhat.com>
3826
3827         * python/py-bpevent.c (create_breakpoint_event_object): Use
3828         copy-initialization.
3829         * python/py-continueevent.c (emit_continue_event): Use
3830         copy-initialization.
3831         * python/py-exitedevent.c (create_exited_event_object): Return a
3832         gdbpy_ref<>.
3833         (emit_exited_event): Use copy-initialization.
3834         * python/py-inferior.c (python_new_inferior)
3835         (python_inferior_deleted, add_thread_object): Use
3836         copy-initialization.
3837         * python/py-infevents.c (create_inferior_call_event_object)
3838         (create_register_changed_event_object)
3839         (create_memory_changed_event_object): Return a gdbpy_ref<>.
3840         (emit_inferior_call_event, emit_memory_changed_event)
3841         (emit_register_changed_event): Use copy-initialization.
3842         * python/py-newobjfileevent.c (create_new_objfile_event_object):
3843         Return a gdbpy_ref<>.
3844         (emit_new_objfile_event): Use copy-initialization.
3845         (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
3846         (emit_clear_objfiles_event): Use copy-initialization.
3847         * python/py-signalevent.c (create_signal_event_object): Use
3848         copy-initialization.
3849         * python/py-threadevent.c (create_thread_event_object): Use
3850         copy-initialization.
3851
3852 2018-08-24  Pedro Alves  <palves@redhat.com>
3853             Simon Marchi  <simon.marchi@ericsson.com>
3854
3855         PR gdb/23379
3856         * python/py-continueevent.c: Include "gdbthread.h".
3857         (create_continue_event_object): Add intro comment.  Add 'ptid'
3858         parameter.  Use it to find thread to pass to
3859         create_thread_event_object.
3860         (emit_continue_event): Pass PTID down to
3861         create_continue_event_object.
3862         * python/py-event.h (py_get_event_thread): Declare.
3863         (create_thread_event_object): Remove default from 'thread'
3864         parameter.
3865         * python/py-stopevent.c (create_stop_event_object): Use
3866         py_get_event_thread.
3867         * python/py-threadevent.c (get_event_thread): Rename to ...
3868         (py_get_event_thread): ... this, make extern, add 'ptid' parameter
3869         and use it to find the thread.
3870         (create_thread_event_object): Assert that THREAD isn't null.
3871         Don't find the event thread here.
3872
3873 2018-08-23  Kevin Buettner  <kevinb@redhat.com>
3874
3875         * block.h (blockrange, blockranges): New struct declarations.
3876         (struct block): Add new field named `ranges'.
3877         (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
3878         (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
3879         macros for accessing ranges in struct block.
3880         (make_blockranges): New declaration.
3881         block.c (make_blockranges): New function.
3882         * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
3883         for block.
3884         * symtab.h (find_pc_partial_function): Add new parameter `block'.
3885         * blockframe.c (cache_pc_function_block): New static global.
3886         (clear_pc_function_cache): Clear cache_pc_function_block.
3887         (find_pc_partial_function): Move comment to symtab.h.  Add
3888         support for non-contiguous blocks.
3889         * cli/cli-cmds.c (block.h): Include.
3890         (print_disassembly): Handle printing of non-contiguous blocks.
3891         (disassemble_current_function): Likewise.
3892         (disassemble_command): Likewise.
3893
3894         * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
3895         BLOCK_START.
3896         * blockframe.c (get_pc_function_start): Likewise.
3897         * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
3898         (gcc_symbol_address): Likewise.
3899         * compile/compile-object-run.c (compile_object_run): Likewise.
3900         * compile/compile.c (get_expr_block_and_pc): Likewise.
3901         * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
3902         (func_addr_to_tail_call_list): Likewise.
3903         * findvar.c (default_read_var_value): Likewise.
3904         * inline-frame.c (inline_frame_this_id): Likewise.
3905         (skip-inline_frames): Likewise.
3906         * infcmd.c (until_next_command): Likewise.
3907         * linespec.c (convert_linespec_to_sals): Likewise.
3908         * parse.c (parse_exp_in_context_1): Likewise.
3909         * printcmd.c (build_address_symbolic): likewise.
3910         (info_address_command): Likewise.
3911         symtab.c (find_function_start_sal): Likewise.
3912         (skip_prologue_sal): Likewise.
3913         (find_function_alias_target): Likewise.
3914         (find_gnu_ifunc): Likewise.
3915         * stack.c (find_frame_funname): Likewise.
3916         * symtab.c (fixup_symbol_section): Likewise.
3917         (find_function_start_sal): Likewise.
3918         (skip_prologue_sal): Likewsie.
3919         (find_function_alias_target): Likewise.
3920         (find_gnu_ifunc): Likewise.
3921         * tracepoint.c (info_scope_command): Likewise.
3922         * value.c (value_fn_field): Likewise.
3923
3924         * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
3925         in place of find_pc_partial_function.
3926         * blockframe.c (find_function_entry_range_from_pc): New function.
3927         * symtab.h (find_function_entry_range_from_pc): Declare and document.
3928         * objfiles.c (objfile_relocate1): Relocate start and end addresses
3929         for each range in a block.
3930
3931
3932 2018-08-23  Xavier Roirand  <roirand@adacore.com>
3933
3934         * machoread.c (macho_symfile_read_all_oso): Remove uneeded
3935         incrementation.
3936
3937 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
3938
3939         * solib-svr4.c (read_program_headers_from_bfd): Return
3940         gdb::optional<gdb::byte_vector>.
3941         (svr4_exec_displacement): Adjust.
3942
3943 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
3944
3945         * solib-svr4.c (read_program_header): Return
3946         gdb::optional<gdb::byte_vector>, remove p_sect_size param.
3947         (find_program_interpreter): Return
3948         gdb::optional<gdb::byte_vector>.
3949         (scan_dyntag_auxv): Adjust.
3950         (enable_break): Adjust.
3951         (svr4_exec_displacement): Adjust.
3952
3953 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
3954
3955         * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
3956         * inf-child.c (inf_child_target::terminal_save_inferior): New.
3957
3958 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
3959
3960         * guile/scm-string.c (gdbscm_scm_from_printf): Use
3961         string_vprintf.
3962         * guile/scm-utils.c (gdbscm_printf): Likewise.
3963         * serial.c (serial_printf): Likewise.
3964         * xml-support.c (gdb_xml_parser::vdebug): Likewise.
3965
3966 2018-08-22  Jan Vrany  <jan.vrany@fit.cvut.cz>
3967
3968         * stack.c (print_frame): Print frame architecture when printing on
3969         an MI output.
3970         * NEWS: Mention new "arch" attribute in frame output.
3971
3972 2018-08-21  Alan Hayward  <alan.hayward@arm.com>
3973
3974         * arch/aarch64.h (aarch64_regnum): Update comment.
3975
3976 2018-08-21  Alan Hayward  <alan.hayward@arm.com>
3977
3978         * NEWS: Add SVE to 8.2 section.
3979
3980 2018-08-21  Pedro Alves  <palves@redhat.com>
3981
3982         * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
3983         out from gdbscm_parse_function_args.
3984         (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
3985         gdbscm_parse_function_args_1.
3986
3987 2018-08-21  Simon Marchi  <simon.marchi@ericsson.com>
3988
3989         PR gdb/17816
3990         * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
3991         operator.
3992
3993 2018-08-19  Simon Marchi  <simon.marchi@polymtl.ca>
3994
3995         * solib-svr4.c (svr4_exec_displacement): Fix formatting.
3996
3997 2018-08-19  Michael Spang  <spang@google.com>
3998
3999         PR gdb/11786
4000         * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
4001         for PT_TLS segments.
4002
4003 2018-08-18  Kevin Buettner  <kevinb@redhat.com>
4004
4005         * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
4006         dwarf_variable_value.
4007         * dwarf2-frame.c (class dwarf_expr_executor):
4008         Add override for dwarf_variable_value.
4009         * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
4010         (class symbol_needs_eval_context): Likewise.
4011         (indirect_synthetic_pointer): Add forward declaration.
4012         (sect_variable_value): New function.
4013         (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
4014         * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
4015         for DW_OP_GNU_variable_value.
4016
4017 2018-08-16  Tom Tromey  <tom@tromey.com>
4018
4019         * top.c (read_command_file): Update.
4020         (command_line_input): Remove "repeat" argument.
4021         * ada-lang.c (get_selections): Update.
4022         * linespec.c (decode_line_2): Update.
4023         * defs.h (command_line_input): Remove argument.
4024         * cli/cli-script.c (read_next_line): Update.
4025         * python/py-gdb-readline.c: Update.
4026
4027 2018-08-17  Tom Tromey  <tom@tromey.com>
4028
4029         * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
4030         command_line_input.
4031
4032 2018-08-15  Tom Tromey  <tom@tromey.com>
4033
4034         * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
4035
4036 2018-08-14  Jan Vrany  <jan.vrany@fit.cvut.cz>
4037
4038         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
4039         If used, use find_pc_partial_function to find address range
4040         to disassemble.
4041         * mi/mi-main.c (mi_cmd_list_features): Report
4042         "data-disassemble-a-option" feature.
4043         * NEWS: Mention new -data-disassemble option -a.
4044
4045 2018-08-13  Tom Tromey  <tom@tromey.com>
4046
4047         * common/common-defs.h (_FORTIFY_SOURCE): Define.
4048
4049 2018-08-13  Alan Hayward  <alan.hayward@arm.com>
4050
4051         * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
4052         (aarch64_linux_collect_sve_regset): Likewise.
4053         (aarch64_linux_iterate_over_regset_sections): Check for SVE.
4054         * regcache.h (regcache_map_entry_size): New function.
4055
4056 2018-08-13  Alan Hayward  <alan.hayward@arm.com>
4057
4058         * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
4059         (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
4060         (SVE_HEADER_VL_LENGTH): Likewise.
4061         (SVE_HEADER_MAX_VL_LENGTH): Likewise.
4062         (SVE_HEADER_FLAGS_LENGTH): Likewise.
4063         (SVE_HEADER_RESERVED_LENGTH): Likewise.
4064         (SVE_HEADER_SIZE_OFFSET): Likewise.
4065         (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
4066         (SVE_HEADER_VL_OFFSET): Likewise.
4067         (SVE_HEADER_MAX_VL_OFFSET): Likewise.
4068         (SVE_HEADER_FLAGS_OFFSET): Likewise.
4069         (SVE_HEADER_RESERVED_OFFSET): Likewise.
4070         (SVE_HEADER_SIZE): Likewise.
4071         (aarch64_linux_core_read_vq): Add function.
4072         (aarch64_linux_core_read_description): Check for SVE section.
4073
4074 2018-08-13  Alan Hayward  <alan.hayward@arm.com>
4075
4076         * aarch64-fbsd-tdep.c
4077         (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
4078         collect_size.
4079         * aarch64-linux-tdep.c
4080         (aarch64_linux_iterate_over_regset_sections): Likewise.
4081         * alpha-linux-tdep.c
4082         (alpha_linux_iterate_over_regset_sections):
4083         * alpha-nbsd-tdep.c
4084         (alphanbsd_iterate_over_regset_sections): Likewise.
4085         * amd64-fbsd-tdep.c
4086         (amd64fbsd_iterate_over_regset_sections): Likewise.
4087         * amd64-linux-tdep.c
4088         (amd64_linux_iterate_over_regset_sections): Likewise.
4089         * arm-bsd-tdep.c
4090         (armbsd_iterate_over_regset_sections): Likewise.
4091         * arm-fbsd-tdep.c
4092         (arm_fbsd_iterate_over_regset_sections): Likewise.
4093         * arm-linux-tdep.c
4094         (arm_linux_iterate_over_regset_sections): Likewise.
4095         * corelow.c (get_core_registers_cb): Likewise.
4096         (core_target::fetch_registers): Likewise.
4097         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
4098         * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
4099         * gdbarch.h (void): Regenerate.
4100         * gdbarch.sh: Add supply_size and collect_size.
4101         * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
4102         * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
4103         * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
4104         * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
4105         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
4106         * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
4107         * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
4108         * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
4109         * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
4110         * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
4111         * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
4112         * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
4113         * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
4114         * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
4115         * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
4116         * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
4117         * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
4118         * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
4119         * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
4120         * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
4121         * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
4122         * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
4123         * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
4124         * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
4125         * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
4126         * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
4127         * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
4128         * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
4129         * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
4130         * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
4131
4132 2018-08-10  Simon Marchi  <simon.marchi@ericsson.com>
4133
4134         * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
4135         with string_printf.
4136
4137 2018-08-10  Keith Seitz  <keiths@redhat.com>
4138
4139         * compile/compile-c-support.c (add_code_header, add_code_footer):
4140         Move into policy class.
4141         (c_push_user_expression, pop_user_expression_nop)
4142         (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
4143         (compile_program): New host class.
4144         (c_compile_program): New typedef.
4145         (c_compute_porgram): Use c_compile_program.
4146
4147 2018-08-10  Keith Seitz  <keiths@redhat.com>
4148
4149         * compile/compile-internal.h (compile_instance::~compile_instance):
4150         Remove calls to htab_delete.
4151         <m_type_map, m_symbol_err_map>: Switch type to htab_up.
4152         * compile.c (compile_instance::compile_instance): Initialize
4153         htab unique pointers.
4154         (compile_instance::get_cached_type, compile_instance::insert_type)
4155         (compile_instance::error_symbol_once): Update for unique_ptr.
4156
4157 2018-08-10  Keith Seitz  <keiths@redhat.com>
4158
4159         * compile/compile-c-symbols.c (struct symbol_error)
4160         (hash_symbol_error, eq_symbol_error, del_symbol_error)
4161         (compile_instance::insert_symbol_error)
4162         (compile_instance::error_symbol_once): Move to ...
4163         * compile/compile.c: ... here.
4164
4165 2018-08-10  Keith Seitz  <keiths@redhat.com>
4166
4167         * compile/compile-c-support.c (c_get_compile_context): Use `new'
4168         instead of `new_compile_instance'.
4169         * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
4170         Update description.
4171         If the symbol error map is not initialized, create it.
4172         (generate_c_for_for_one_symbol): Do not check/initialize
4173         the symbol error map.
4174         * compile/compile-c-types.c (compile_c_instance): Make a class.
4175         Update all callers.
4176         (compile_instance::compile_instance): Initialize the type cache.
4177         (get_cached_type): New function.
4178         (insert_type): Update description.
4179         (compile_c_instance::m_default_cflags): Define.
4180         (convert_type): Update description.  Use get_cached_type.
4181         (delete_instance): Moved to destructor.
4182         (new_compile_instance): Moved to constructor.
4183         * compile/compile-c.h (compile_c_instance): Make class inheriting
4184         from compile_instance.
4185         <base>: Remove field.
4186         <type_map, symbol_err_map>: Move to base class.
4187         <c_plugin>: Rename to `m_plugin' and remove pointer type.
4188         * compile/compile-internal.h (compile_instance): Make class.
4189         <type_map_t, symbol_err_map_t>: Define.
4190         <fe>: Rename to `m_gcc_fe'.
4191         <scope, block, gcc_target_options>: Add `m_' prefix.
4192         <m_type_map, m_symbol_err_map>: New fields, moved from
4193         compile_c_instance.
4194         <destroy>: Remove.
4195         (convert_type, new_compile_instance): Remove.
4196         * compile/compile.c (cleanup_compile_instance): Remove.
4197         (compile_to_object): Use unique_ptr to eliminate cleanups.
4198         (compile_instance::set_print_callback, compile_instance::version)
4199         (compile_instance::set_verbose)
4200         (compile_instance::set_driver_filename)
4201         (compile_instance::set_triplet_regexp)
4202         (compile_instance::set_arguments)
4203         (compile_instance::set_source_file)
4204         (compile_instance::compile): Define.
4205
4206 2018-08-10  Keith Seitz  <keiths@redhat.com>
4207
4208         * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
4209         * compile/compile-c-types.c: Define GCC_METHODN macros and include
4210         gcc-c-fe.def to define C plugin.
4211         (delete_instance): Delete `c_plugin'.
4212         (new_compile_instance): Initialize `c_plugin'.
4213         * compile/compile-c.h: Include gcc_c_plugin.h.
4214         (struct compile_c_instance) <c_plugin>: New member.
4215         * gcc-c-plugin.h: New file.
4216         Update all callers with API change.
4217
4218 2018-08-10  Keith Seitz  <keiths@redhat.com>
4219
4220         * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
4221         (HFILES_NO_SRCDIR): ... to here.
4222         Add compile-internal.h and compile-c.h.
4223         * compile/compile-c-support.c: Include compile-c.h.
4224         * compile/compile-c-symbols.c: Include compile-c.h.
4225         (generate_c_for_variable_locations): Update comment.
4226         * compile/compile-c-types.c: Include compile-c.h.
4227         * compile/compile-c.h: New file -- moved C language declarations
4228         from other files here.
4229         * compile/compile-internal.h: Do not include hashtab.h or
4230         common/enum-flags.h.
4231         (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
4232         (gcc_convert_symbol, gcc_symbol_address)
4233         (generate_c_for_variable_locations, c_get_mode_for_size)
4234         (c_get_range_decl_name): Definitions moved to compile-c.h.
4235         * compile/compile-loc2c.c: Include compile-c.h.
4236
4237 2018-08-10  Keith Seitz  <keiths@redhat.com>
4238
4239         * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
4240         (c_symbol_substitution_name): ... this.
4241         Update all callers.
4242
4243 2018-08-10  Keith Seitz  <keiths@redhat.com>
4244
4245         * compile/compile-c-support.c (c_compute_program): Use
4246         unique_xmalloc_ptr to eliminate cleanup.
4247         * compile/compile-c-symbols.c (generate_c_for_variable_locations):
4248         Return a unique_xmalloc_ptr and eliminate cleanup.
4249         * compile/compile-internal.h (generate_c_for_variable_locations):
4250         Return unique_xmalloc_ptr and update description.
4251
4252 2018-08-10  Alan Hayward  <alan.hayward@arm.com>
4253
4254         * corelow.c (core_target::get_core_register_section): Rename
4255         min_size to section_min_size.
4256
4257 2018-08-09  Jim Wilson  <jimw@sifive.com>
4258
4259         * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
4260         (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
4261         * NEWS: Mention new GNU/Linux RISC-V target.
4262         * configure.host: Add riscv*-*-linux*.
4263         * configure.nat: Add riscv*.
4264         * configure.tgt: Add riscv*-*-linux*.
4265         * riscv-linux-nat.c: New file.
4266         * riscv-linux-tdep.c: New file.
4267
4268 2018-08-09  Andrew Burgess  <andrew.burgess@embecosm.com>
4269
4270         * infrun.c (resume): Make static, add forward declaration.
4271         (proceed): Update header comment.
4272         * infrun.h (resume): Delete declaration.
4273
4274 2018-08-09  Tom Tromey  <tom@tromey.com>
4275
4276         * riscv-tdep.h: Minor formatting fixes.
4277
4278 2018-08-09  Simon Marchi  <simon.marchi@ericsson.com>
4279
4280         * common/scoped_mmap.c (mmap_file): Silence ARI warning.
4281         * dwarf-index-cache.c (create_dir_and_check): Likewise.
4282         (test_mkdir_recursive): Likewise.
4283         * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
4284
4285 2018-08-09  Andrew Burgess  <andrew.burgess@embecosm.com>
4286
4287         * valarith.c (value_subscripted_rvalue): If an array is not in
4288         memory, and we don't know the upper bound, then we can't know that
4289         the requested element exists or not.
4290
4291 2018-08-08  Simon Marchi  <simon.marchi@ericsson.com>
4292
4293         * target.c (str_comma_list_concat_elem): Fix typo in comment.
4294         (target_options_to_string): Add comment.
4295
4296 2018-08-08  Tom Tromey  <tom@tromey.com>
4297
4298         * unittests/scoped_mmap-selftests.c: Check result of "write".
4299
4300 2018-08-08  Jim Wilson  <jimw@sifive.com>
4301
4302         * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
4303         (decode_register_index_short): New.
4304         (decode_j_type_insn, decode_cj_type_insn): New.
4305         (decode_b_type_insn, decode_cb_type_insn): New.
4306         (riscv_insn::decode): Add support for jumps, branches, lr, and sc.  New
4307         local xlen.  Check xlen when decoding ambiguous compressed insns.  In
4308         compressed decode, use is_c_lui_insn instead of is_lui_insn, and
4309         is_c_sw_insn instead of is_sw_insn.
4310         (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
4311         (riscv_software_single_step): New.
4312         * riscv-tdep.h (riscv_software_single_step): Declare.
4313
4314         * riscv-tdep.c (riscv_isa_xlen): Drop static.
4315         * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
4316
4317 2018-08-08  Andrew Burgess  <andrew.burgess@embecosm.com>
4318
4319         PR gdb/18050:
4320         * target.c (dispose_inferior): Don't dispose of inferiors that are
4321         already killed.
4322
4323 2018-08-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4324
4325         * remote.c (remote_target::download_tracepoint): Change char* to
4326         const char*.
4327
4328 2018-08-07  Simon Marchi  <simon.marchi@polymtl.ca>
4329
4330         * target.h (target_options_to_string): Return an std::string.
4331         * target.c (str_comma_list_concat_elem): Return void, use
4332         std::string.
4333         (do_option): Likewise.
4334         (target_options_to_string): Return an std::string.
4335         * linux-nat.c (linux_nat_target::wait): Adjust.
4336         * target-debug.h (target_debug_print_options): Adjust.
4337
4338 2018-08-07  Tom Tromey  <tom@tromey.com>
4339
4340         * Makefile.in (CPPFLAGS): New variable.
4341         (INTERNAL_CPPFLAGS): Use it.
4342
4343 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
4344
4345         * NEWS: Mention the index cache.
4346
4347 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
4348
4349         * common/pathstuff.h (get_standard_cache_dir): New.
4350         * common/pathstuff.c (get_standard_cache_dir): New.
4351         * build-id.h (build_id_to_string): New.
4352         * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
4353         DEBUG_STR_SUFFIX): Move to here.
4354         * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
4355         DEBUG_STR_SUFFIX): Move from there.
4356         (write_psymtabs_to_index): Make non-static, add basename
4357         parameter.  Write to temporary files, rename when done.
4358         (save_gdb_index_command): Adjust call to
4359         write_psymtabs_to_index.
4360         * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
4361         field.
4362         * dwarf2read.c (dwz_file) <index_cache_res>: New field.
4363         (get_gdb_index_contents_from_cache): New.
4364         (get_gdb_index_contents_from_cache_dwz): New.
4365         (dwarf2_initialize_objfile): Read index from cache.
4366         (dwarf2_build_psymtabs): Save to index.
4367         * dwarf-index-cache.h: New file.
4368         * dwarf-index-cache.c: New file.
4369         * dwarf-index-write.h: New file.
4370
4371 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
4372
4373         * gnulib/aclocal.m4: Re-generate.
4374         * gnulib/config.in: Re-generate.
4375         * gnulib/configure: Re-generate.
4376         * gnulib/import/Makefile.am: Re-generate.
4377         * gnulib/import/Makefile.in: Re-generate.
4378         * gnulib/import/m4/gnulib-cache.m4: Re-generate.
4379         * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4380         * gnulib/import/m4/mkdir.m4: New file.
4381         * gnulib/import/mkdir.c: New file.
4382         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
4383         module.
4384
4385 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
4386
4387         * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
4388         * common/scoped_mmap.c: New file.
4389         * common/scoped_mmap.h (destroy): New method.
4390         (~scoped_mmap, reset): Use destroy.
4391         (scoped_mmap): New move constructor.
4392         (mmap_file): New declaration.
4393         * unittests/scoped_mmap-selftests.c (test_normal,
4394         test_invalid_filename, run_tests): New functions.
4395         (_initialize_scoped_mmap_selftests): Register selftest.
4396
4397 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
4398
4399         * dwarf2read.c (read_gdb_index_from_section): Rename to...
4400         (read_gdb_index_from_buffer): ... this.  Remove section
4401         parameter, add buffer parameter.
4402         (get_gdb_index_contents_ftype,
4403         get_gdb_index_contents_dwz_ftype): New typedefs.
4404         (dwarf2_read_gdb_index): Add callback parameters to get the
4405         index contents.
4406         (get_gdb_index_contents_from_section): New.
4407         (dwarf2_initialize_objfile): Update call to
4408         dwarf2_read_gdb_index.
4409
4410 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
4411
4412         * common/filestuff.h (gdb_fopen_cloexec): New overload.
4413         (gdb_open_cloexec): Likewise.
4414         * nat/linux-osdata.c (command_from_pid): Use string_printf.
4415         (commandline_from_pid): Likewise.
4416         (linux_xfer_osdata_threads): Likewise.
4417         (linux_xfer_osdata_fds): Likewise.
4418         * ada-lang.c (is_package_name): Likewise.
4419         * auxv.c (procfs_xfer_auxv): Likewise.
4420         * breakpoint.c (print_one_breakpoint_location): Use
4421         uiout::field_fmt.
4422         (print_one_catch_solib): Use string_printf.
4423         * coff-pe-read.c (add_pe_exported_sym): Likewise.
4424         (add_pe_forwarded_sym): Likewise.
4425         * dwarf2read.c (create_type_unit_group): Likewise.
4426         (build_error_marker_type): Likewise.
4427         * infcall.c (get_function_name): Likewise.
4428         * valprint.c (print_converted_chars_to_obstack): Likewise.
4429         * xtensa-tdep.c (xtensa_register_type): Likewise.
4430
4431 2018-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4432
4433         * remote.c (remote_target::download_tracepoint): Fix format
4434         string errors.
4435
4436 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
4437
4438         * tracefile.c: Include common/byte-vector.h.
4439         (trace_save): Change type of buf to gdb::byte_vector.  Initialize
4440         with trace_regblock_size if needed.  Update uses of buf.
4441
4442 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
4443
4444         * tracepoint.h (collection_list) <m_regs_mask>: Change type to
4445         std::vector<unsigned char>.
4446         * tracepoint.c (collection_list::collection_list): Remove
4447         m_regs_mask initializer from initializer list.  Resize
4448         m_regs_mask using the largest remote register number.
4449         (collection_list::add_remote_register): Remove size check on
4450         m_regs_mask.  Use at to access element.
4451         (collection_list::stringify): Change type of temp_buf to
4452         gdb::char_vector.  Update uses of temp_buf.  Resize if needed to
4453         stringify the register mask.  Use pack_hex_byte for the register
4454         mask.
4455
4456 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
4457
4458         * tracepoint.h (class collection_list) <add_register>: Remove.
4459         <add_remote_register, add_ax_registers, add_local_register>:
4460         Declare.
4461         <add_memrange>: Add scope parameter.
4462         * tracepoint.c (encode_actions_1): Likewise.
4463         (collection_list::add_register): Rename to ...
4464         (collection_list::add_remote_register): ... this.  Update
4465         comment.
4466         (collection_list::add_ax_registers, add_local_register): New
4467         methods.
4468         (collection_list::add_memrange): Add scope parameter.  Call
4469         add_local_register instead of add_register.
4470         (finalize_tracepoint_aexpr): New function.
4471         (collection_list::collect_symbol): Update calls to add_memrange.
4472         Call add_local_register instead of add_register.  Call
4473         add_ax_registers.  Call finalize_tracepoint_aexpr.
4474         (encode_actions_1): Get remote regnos for $reg action.  Call
4475         add_remote_register, add_ax_registers, and add_local_register.
4476         Update call to add_memrange.  Call finalize_tracepoint_aexpr.
4477         (validate_actionline): Call finalize_tracepoint_aexpr.
4478
4479 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
4480
4481         * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
4482         Replace array buf with gdb::char_vector buf, of size
4483         get_remote_packet_size ().  Replace references to buf and
4484         BUF_SIZE to buf.data () and buf.size ().  Replace strcpy, strcat
4485         and xsnprintf with snprintf.  Raise errors if the buffer is too
4486         small.
4487
4488 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
4489
4490         * remote.c (remote_target::download_tracepoint): Fix the has_more
4491         predicate in the QTDP action list iteration.
4492
4493 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
4494
4495         * remote.c (remote_target::download_tracepoint): Fix indentation
4496         in for block.
4497
4498 2018-08-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4499
4500         * proc-api.c (_initialize_proc_api): Remove c, unused.
4501         * procfs.c (procfs_init_inferior): Remove signals, unused.
4502         (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
4503         unused.
4504
4505 2018-08-06  Sergey Korolev  <s.korolev@ndmsystems.com>
4506             Andrew Burgess  <andrew.burgess@embecosm.com>
4507
4508         * linux-nat.c (linux_nat_target::follow_fork): Avoid using
4509         'W_STOPCODE (0)' as this could be ambiguous.
4510
4511 2018-08-03  Sergio Durigan Junior  <sergiodj@redhat.com>
4512
4513         * ser-tcp.c (net_open): Fix thinko when deciding whether to
4514         disable TCP's Nagle algorithm (use "ai_protocol" instead of
4515         "ai_socktype").
4516
4517 2018-08-02  Tom Tromey  <tom@tromey.com>
4518
4519         PR symtab/16842.
4520         * dwarf2read.c (read_func_scope): Set symtab on template parameter
4521         symbols.
4522         (process_structure_scope): Likewise.
4523
4524 2018-08-02  Xavier Roirand  <roirand@adacore.com>
4525
4526         PR gdb/22629:
4527         * darwin-nat.c (darwin_kill_inferior): Fix handling of
4528         kill inferior.
4529
4530 2018-08-02  Tom Tromey  <tom@tromey.com>
4531
4532         * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
4533         (darwin_suspend_inferior, darwin_resume_inferior)
4534         (darwin_decode_notify_message, darwin_resume_inferior_threads)
4535         (darwin_check_new_threads): Check result of get_darwin_inferior.
4536
4537 2018-07-31  Joel Brobecker  <brobecker@adacore.com>
4538
4539         GDB 8.1.1 released.
4540
4541 2018-07-31  Jan Vrany  <jan.vrany@fit.cvut.cz>
4542
4543         * varobj.c (varobj_get_path_expr_parent): Report an error if
4544         parent is a dynamic varobj.
4545
4546 2018-07-31  Simon Marchi  <simon.marchi@ericsson.com>
4547
4548         * gnulib/aclocal.m4: Re-generate.
4549         * gnulib/config.in: Re-generate.
4550         * gnulib/configure: Re-generate.
4551         * gnulib/import/Makefile.in: Re-generate.
4552         * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4553         * gnulib/import/m4/onceonly.m4: Re-generate.
4554
4555 2018-07-31  Simon Marchi  <simon.marchi@ericsson.com>
4556
4557         * target-descriptions.c (struct xml_test_tdesc): New.
4558         (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
4559         (record_xml_tdesc): Update.
4560         (maintenance_check_xml_descriptions): Update.
4561         * target-descriptions.h (record_xml_tdesc): Update comment.
4562
4563 2018-07-30  Andrew Burgess  <andrew.burgess@embecosm.com>
4564
4565         * eval.c (evaluate_subexp_for_sizeof): Check for array type before
4566         checking array bounds are defined.
4567
4568 2018-07-30  Tom Tromey  <tom@tromey.com>
4569
4570         * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
4571         irreflexivity violation.
4572
4573 2018-07-30  Tom Tromey  <tom@tromey.com>
4574
4575         * cli/cli-decode.c (lookup_cmd): Remove lint code.
4576         * value.c (unpack_long): Remove lint code.
4577         * valops.c (value_ind): Remove lint code.
4578         * valarith.c (value_x_binop, value_x_unop, value_equal)
4579         (value_pos): Remove lint code.
4580
4581 2018-07-28  Tom de Vries  <tdevries@suse.de>
4582
4583         * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
4584         with undefined upper bound as <optimized out>.
4585
4586 2018-07-27  Sergio Durigan Junior  <sergiodj@redhat.com>
4587
4588         * gcore.in: Rename variable "name" to "prefix".  Expand
4589         "usage" text.
4590
4591 2018-07-14  Jon Turney  <jon.turney@dronecode.org.uk>
4592
4593         * windows-nat.c (windows_nat_target::create_inferior): Update to
4594         call close() in global namespace.
4595
4596 2018-07-26  Tom Tromey  <tom@tromey.com>
4597
4598         * dwarf-index-write.c (add_address_entry): Don't add objfile
4599         offsets.
4600         * dbxread.c (find_stab_function): Rename from
4601         find_stab_function_addr.  Return a bound_minimal_symbol.
4602         (read_dbx_symtab): Use raw_text_low, raw_text_high.
4603         Don't add objfile offsets.
4604         (end_psymtab): Use raw_text_low, raw_text_high,
4605         MSYMBOL_VALUE_RAW_ADDRESS.
4606         (read_ofile_symtab): Update.
4607         (process_one_symbol): Update.
4608         * dwarf2read.c (create_addrmap_from_index): Don't add objfile
4609         offsets.
4610         (dw2_relocate): Remove.
4611         (dw2_find_pc_sect_symtab): Bias PC by the text offset before
4612         searching addrmap.
4613         (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
4614         Update.
4615         (process_psymtab_comp_unit_reader, add_partial_symbol)
4616         (add_partial_subprogram, dwarf2_ranges_read): Update.
4617         (load_partial_dies): Update.
4618         (add_address_entry): Don't add objfile offsets.
4619         (dwarf2_build_include_psymtabs): Update.
4620         (create_addrmap_from_aranges): Don't add objfile offsets.
4621         (dw2_find_pc_sect_compunit_symtab): Update.
4622         * mdebugread.c (parse_symbol): Don't add objfile offsets.
4623         (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
4624         Update.
4625         (parse_partial_symbols): Don't add objfile offsets.  Use
4626         raw_text_low, raw_text_high.  Update.
4627         (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
4628         * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
4629         or call 'relocate' quick function.  Clear psymbol_map.
4630         * psympriv.h (struct partial_symbol) <address>: Add section
4631         offset.
4632         <set_unrelocated_address>: Rename from set_address.
4633         <raw_text_low, raw_text_high>: New methods.
4634         <text_low, text_high>: Add objfile parameter.
4635         (add_psymbol_to_bcache): Add 'section' parameter.  Call
4636         set_unrelocated_address.
4637         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4638         (find_pc_psymbol): Update.
4639         (fixup_psymbol_section, relocate_psymtabs): Remove.
4640         (dump_psymtab, psym_functions): Update.
4641         (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
4642         parameter.
4643         (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
4644         (start_psymtab_common): Update.
4645         * symfile-debug.c (debug_qf_relocate): Remove.
4646         (debug_sym_quick_functions): Update.
4647         * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
4648         * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
4649         Update.
4650
4651 2018-07-26  Tom Tromey  <tromey@redhat.com>
4652
4653         * dbxread.c (end_psymtab): Use text_high_valid and
4654         text_low_valid.
4655         * mdebugread.c (parse_partial_symbols): Use text_low_valid.
4656         (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
4657         * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
4658         Update comment.
4659         <text_low_valid, text_high_valid>: New fields.
4660         <set_text_low, set_text_high>: Update.
4661         * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
4662
4663 2018-07-26  Tom Tromey  <tom@tromey.com>
4664
4665         * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
4666         Update.
4667         * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
4668         textlow and texthigh fields.
4669         (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
4670         Update.
4671         * mdebugread.c (parse_lines, parse_partial_symbols)
4672         (psymtab_to_symtab_1): Update.
4673         * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
4674         Rename fields.  Update comment.  Now private.
4675         <text_low, text_high, set_text_low, set_text_high>: New methods.
4676         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4677         (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
4678         (start_psymtab_common, maintenance_info_psymtabs)
4679         (maintenance_check_psymtabs): Update.
4680         * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
4681         texthigh fields.
4682         (scan_xcoff_symtab): Update.
4683
4684 2018-07-26  Tom Tromey  <tromey@redhat.com>
4685
4686         * psympriv.h (struct partial_symbol) <unrelocated_address,
4687         address, set_address>: New methods.
4688         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
4689         (fixup_psymbol_section, relocate_psymtabs): Update.
4690         (print_partial_symbols): Add 'objfile' parameter.  Update.
4691         (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
4692         Update.
4693
4694 2018-07-26  Tom Tromey  <tom@tromey.com>
4695
4696         * dwarf-index-write.c (write_psymbols, debug_names::insert)
4697         (debug_names::write_psymbols): Update.
4698         * psympriv.h (struct partial_symbol): Derive from
4699         general_symbol_info.
4700         <obj_section>: New method.
4701         (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
4702         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4703         (find_pc_sect_psymbol, fixup_psymbol_section)
4704         (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
4705         (print_partial_symbols, recursively_search_psymtabs)
4706         (compare_psymbols, psymbol_hash, psymbol_compare)
4707         (add_psymbol_to_bcache, maintenance_check_psymtabs)
4708         (psymbol_name_matches, psym_fill_psymbol_map): Update.
4709
4710 2018-07-26  Tom Tromey  <tromey@redhat.com>
4711
4712         * dbxread.c (end_psymtab): Remove dead code.
4713
4714 2018-07-26  Andrew Burgess  <andrew.burgess@embecosm.com>
4715
4716         * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
4717         DWARF unwinders are disabled.
4718         * dwarf2-frame.c: Add dwarf2read.h include.
4719         (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
4720         disabled.
4721         (dwarf2_frame_unwinders_enabled_p): Define.
4722         (show_dwarf_unwinders_enabled_p): New function.
4723         (_initialize_dwarf2_frame): Register switch to control DWARF
4724         unwinder use.
4725         * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
4726         * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
4727         (show_dwarf_cmdlist): Remove static keyword.
4728         * dwarf2read.h (set_dwarf_cmdlist): Declare.
4729         (show_dwarf_cmdlist): Declare.
4730         * NEWS: Document new feature.
4731
4732 2018-07-26  Tom de Vries  <tdevries@suse.de>
4733
4734         PR breakpoints/23366
4735         * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
4736
4737 2018-07-26  Tom de Vries  <tdevries@suse.de>
4738
4739         * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
4740         DW_AT_count can't be translated to a dynamic prop.
4741
4742 2018-07-25  Tom de Vries  <tdevries@suse.de>
4743
4744         * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
4745         try/catch.
4746
4747 2018-07-25  Jan Vrany  <jan.vrany@fit.cvut.cz>
4748
4749         * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
4750
4751 2018-07-25  Joel Brobecker  <brobecker@adacore.com>
4752
4753         * MAINTAINERS (Global Maintainers): Add Tom Tromey.
4754
4755 2018-07-24  Keith Seitz  <keiths@redhat.comt
4756
4757         PR symtab/23010
4758         * dwarf2read.c (dw2_add_symbol_to_list): New function.
4759         (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
4760         instead of add_symbol_to_list.
4761         (read_file_scope): Call prepare_one_comp_unit before reading
4762         any other DIEs.
4763
4764 2018-07-24  Simon Marchi  <simon.marchi@ericsson.com>
4765
4766         * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
4767
4768 2018-07-24  Tom Tromey  <tom@tromey.com>
4769
4770         * utils.c (malloc, realloc, free): Don't declare.
4771         * configure, config.in: Rebuild.
4772         * configure.ac: Don't check for declarations of free, malloc, or
4773         realloc.
4774
4775 2018-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
4776
4777         * aarch64-linux-nat.c
4778         (aarch64_linux_nat_target::stopped_data_address): Remove unused
4779         variable.
4780         * arm-linux-nat.c (fetch_regs): Likewise.
4781         (store_regs): Likewise.
4782         (fetch_vfp_regs): Likewise.
4783         (store_vfp_regs): Likewise.
4784         (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
4785         (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
4786         (arm_linux_nat_target::insert_watchpoint): Likewise.
4787         (arm_linux_nat_target::remove_watchpoint): Likewise.
4788         * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
4789         Likewise.
4790         * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
4791         Likewise.
4792         * ppc-linux-nat.c (fetch_register): Likewise.
4793         (fetch_all_gp_regs): Likewise.
4794         (fetch_ppc_registers): Likewise.
4795         (store_all_gp_regs): Likewise.
4796         (store_ppc_registers): Likewise.
4797         (hwdebug_insert_point): Likewise.
4798         (can_use_watchpoint_cond_accel): Likewise.
4799         * remote-sim.c (gdb_os_write_stdout): Likewise.
4800
4801 2018-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
4802             Tom Tromey  <tom@tromey.com>
4803
4804         * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
4805         test for it.
4806         * configure: Rebuild.
4807
4808 2018-07-22  Tom Tromey  <tom@tromey.com>
4809
4810         * regformats/regdat.sh: Define xmltarget_${name} inside
4811         #ifndef IN_PROCESS_AGENT.
4812
4813 2018-07-22  Tom Tromey  <tom@tromey.com>
4814
4815         * value.c (value_fetch_lazy_bitfield): Remove unused variable.
4816
4817 2018-07-22  Tom Tromey  <tom@tromey.com>
4818
4819         * symfile.c (reread_symbols): Notify iter, not objfile.
4820
4821 2018-07-22  Tom Tromey  <tom@tromey.com>
4822
4823         * ravenscar-thread.c (ravenscar_thread_target::store_registers):
4824         Use arch_ops.
4825         (ravenscar_thread_target::prepare_to_store): Likewise.
4826
4827 2018-07-22  Tom Tromey  <tom@tromey.com>
4828
4829         * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
4830         unused variable.  Call value_fetch_lazy when needed.
4831         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
4832         Remove unused variable.  Call value_fetch_lazy when needed.
4833
4834 2018-07-22  Tom Tromey  <tom@tromey.com>
4835
4836         * m32c-tdep.c (mark_dma): Return void.
4837         (make_regs): Remove unused declarations.
4838
4839 2018-07-22  Tom Tromey  <tom@tromey.com>
4840
4841         * guile/scm-cmd.c (gdbscm_dont_repeat): Call
4842         cmdscm_get_valid_command_smob_arg_unsafe for effect.
4843         * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
4844         bkscm_get_valid_block_smob_arg_unsafe for effect.
4845
4846 2018-07-22  Tom Tromey  <tom@tromey.com>
4847
4848         * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
4849         value_type.
4850
4851 2018-07-22  Tom Tromey  <tom@tromey.com>
4852
4853         * windows-nat.c (saved_context): Conditionally define.
4854         * remote.c (remote_target::remote_btrace_maybe_reopen):
4855         Conditionally declare "warned".
4856         * inflow.c (sigquit_ours): Conditionally define.
4857         (new_tty): Move "tty" declaration inside #if.
4858         * guile/guile.c (guile_datadir): Conditionally define.
4859         * charset.c (set_be_le_names): Move some declarations inside #if.
4860         * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
4861         #if.
4862         (parse_xml_btrace_conf): Likewise.
4863
4864 2018-07-22  Tom Tromey  <tom@tromey.com>
4865
4866         * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
4867
4868 2018-07-22  Tom Tromey  <tom@tromey.com>
4869
4870         * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
4871         * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
4872         (vlscm_convert_typed_value_from_scheme): Remove unused variable.
4873         * buildsym-legacy.c (get_macro_table): Remove unused variable.
4874         * stack.c (frame_apply_level_command): Remove unused variable.
4875         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
4876         * sparc64-tdep.c (adi_examine_command): Remove unused variable.
4877         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
4878         unused variable.
4879         * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
4880         * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
4881         * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
4882         variable.
4883         * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
4884         * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
4885         variable.
4886         * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
4887         Remove unused variable.
4888         * cli/cli-script.c (recurse_read_control_structure): Remove unused
4889         variable.
4890         * common/tdesc.c (print_xml_feature::visit): Remove unused
4891         variable.
4892         * compile/compile-object-load.c (store_regs): Remove unused
4893         variables.
4894         * complaints.c (clear_complaints): Remove unused variable.
4895         * corelow.c (core_target_open): Remove unused variable.
4896         * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
4897         variable.
4898         * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
4899         variable.
4900         * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
4901         variable.
4902         * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
4903         variable.
4904         * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
4905         variable.
4906         * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
4907         variable.
4908         * ia64-tdep.c (examine_prologue): Remove unused variable.
4909         * infcall.c (run_inferior_call): Remove unused variable.
4910         * inferior.c (exit_inferior): Remove unused variable.
4911         * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
4912         * linespec.c (decode_line_2): Remove unused variable.
4913         * linux-nat.c (super_close): Remove.
4914         * linux-tdep.c (linux_info_proc): Remove unused variable.
4915         * mi/mi-main.c (mi_execute_command): Remove unused variable.
4916         * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
4917         Remove unused variable.
4918         * parse.c (find_minsym_type_and_address): Remove unused variable.
4919         * printcmd.c (info_symbol_command, printf_floating): Remove unused
4920         variable.
4921         * python/py-breakpoint.c (bppy_set_commands): Remove unused
4922         variable.
4923         * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
4924         variables.
4925         * record-btrace.c (record_btrace_target::store_registers): Remove
4926         unused variable.
4927         (cmd_show_record_btrace_cpu): Remove unused variable.
4928         * riscv-tdep.c (riscv_register_reggroup_p)
4929         (riscv_push_dummy_call, riscv_return_value): Remove unused
4930         variable.
4931         * rust-exp.y (literal): Remove unused variable.
4932         * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
4933         unused variable.
4934         <STRUCTOP_ANONYMOUS>: Likewise.
4935         * s390-linux-tdep.c (s390_linux_init_abi_31)
4936         (s390_linux_init_abi_64): Remove unused variable.
4937         * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
4938         (file_select_thread, net_windows_open, _initialize_ser_windows):
4939         Remove unused variables.
4940         * symtab.c (find_pc_sect_line): Remove unused variable.
4941         * target-memory.c (compute_garbled_blocks): Remove unused
4942         variable.
4943         (target_write_memory_blocks): Remove unused variable.
4944         * target.c (target_stack::unpush): Remove unused variables.
4945         * tracepoint.c (start_tracing, all_tracepoint_actions)
4946         (merge_uploaded_trace_state_variables)
4947         (print_one_static_tracepoint_marker): Remove unused variable.
4948         * unittests/basic_string_view/element_access/char/1.cc (test01):
4949         Remove unused variable.
4950         * windows-nat.c (windows_continue, windows_add_all_dlls)
4951         (do_initial_windows_stuff, windows_nat_target::create_inferior):
4952         Remove unused variables.
4953
4954 2018-07-21  Simon Marchi  <simon.marchi@polymtl.ca>
4955
4956         * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
4957         attr_profile in HAVE_ELF.
4958         * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
4959         HAVE_ELF.
4960
4961 2018-07-20  Simon Marchi  <simon.marchi@polymtl.ca>
4962
4963         * frame.c (frame_register_unwind): Change parameter name.
4964         (frame_unwind_register): Likewise.
4965         (frame_unwind_register_value): Likewise.
4966         (frame_unwind_register_signed): Likewise.
4967         (frame_unwind_register_unsigned): Likewise.
4968         * frame.h (frame_register_unwind): Likewise.
4969         (frame_unwind_register): Likewise.
4970         (frame_unwind_register_value): Likewise.
4971         (frame_unwind_register_signed): Likewise.
4972         (frame_unwind_register_unsigned): Likewise.
4973         (frame_unwind_arch): Likewise.
4974
4975 2018-07-20  Maciej W. Rozycki  <macro@mips.com>
4976
4977         * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
4978         ISA maintenance.
4979
4980 2018-07-20  Maciej W. Rozycki  <macro@mips.com>
4981
4982         * mips-linux-nat.c (mips_linux_nat_target::read_description):
4983         Call `get_ptrace_pid' rather than extracting the ptrace PID by
4984         hand.
4985
4986 2018-07-20  Keith Seitz  <keiths@redhat.com>
4987
4988         * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
4989         m_main_subfile, m_comp_dir, m_producer, m_debugformat,
4990         m_compunit_symtab, m_language>: Add "m_" prefix.
4991         Update all uses.
4992         * buildsym.c: Update all uses.
4993
4994 2018-07-20  Tom Tromey  <tom@tromey.com>
4995
4996         * buildsym-legacy.h (record_line): Don't use record_line_ftype.
4997         * buildsym.h (record_line_ftype): Remove typedef.
4998
4999 2018-07-20  Tom Tromey  <tom@tromey.com>
5000
5001         * buildsym-legacy.h (augment_type_symtab): Don't declare.
5002         (end_expandable_symtab): Likewise.
5003         (end_symtab_get_static_block): Likewise.
5004         (end_symtab_from_static_block): Likewise.
5005         * buildsym-legacy.c (augment_type_symtab): Remove.
5006         (end_expandable_symtab): Remove.
5007         (end_symtab_get_static_block): Remove.
5008         (end_symtab_from_static_block): Remove.
5009
5010 2018-07-20  Tom Tromey  <tom@tromey.com>
5011
5012         * dwarf2read.c: Include buildsym.h.
5013         (struct dwarf2_cu) <builder>: New method.
5014         (fixup_go_packaging): Update.
5015         (process_full_comp_unit, process_full_type_unit): Update.  Don't
5016         use scoped_free_pendings.
5017         (using_directives): Add "cu" parameter, remove "language".
5018         (read_import_statement, setup_type_unit_groups, )
5019         (read_func_scope, read_lexical_block_scope)
5020         (dwarf2_record_block_ranges, read_namespace): Update.
5021         (lnp_state_machine::lnp_state_machine): Add cu parameter.
5022         (lnp_state_machine::handle_end_sequence): Update.
5023         (class lnp_state_machine) <m_cu>: New member.
5024         <m_record_line_callback>: Remove.
5025         <m_currently_recording_lines>: New member.
5026         (lnp_state_machine::handle_set_file): Update.
5027         (noop_record_line): Remove.
5028         (dwarf_record_line_p): Add cu parameter.
5029         (dwarf_record_line_1, dwarf_finish_line): Likewise.
5030         (lnp_state_machine::record_line)
5031         (lnp_state_machine::lnp_state_machine)
5032         (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5033         (dwarf_decode_lines): Update.
5034         (dwarf2_start_subfile): Add cu parameter.
5035         (dwarf2_start_symtab, new_symbol): Update.
5036         (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
5037         Remove dwarf2_per_objfile parameter.
5038         (dwarf_decode_macros): Update.
5039
5040 2018-07-20  Tom Tromey  <tom@tromey.com>
5041
5042         * stabsread.c (define_symbol): Update.
5043         * buildsym-legacy.h (get_buildsym_compunit): Declare.
5044         * dwarf2read.c (new_symbol): Update.
5045         * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
5046         * cp-namespace.c: Include buildsym.h.
5047         (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
5048         * buildsym-legacy.c (get_buildsym_compunit): New function.
5049
5050 2018-07-20  Tom Tromey  <tom@tromey.com>
5051
5052         * xcoffread.c: Include buildsym-legacy.h.
5053         * windows-nat.c: Include buildsym-legacy.h.
5054         * stabsread.c: Include buildsym-legacy.h.
5055         * mdebugread.c: Include buildsym-legacy.h.
5056         * buildsym-legacy.h: New file.
5057         * buildsym-legacy.c: New file, from buildsym.c.
5058         * go32-nat.c: Include buildsym-legacy.h.
5059         * dwarf2read.c: Include buildsym-legacy.h.
5060         * dbxread.c: Include buildsym-legacy.h.
5061         * cp-namespace.c: Include buildsym-legacy.h.
5062         * coffread.c: Include buildsym-legacy.h.
5063         * buildsym.h: Move some contents to buildsym-legacy.h.
5064         * buildsym.c: Include buildsym-legacy.h.  Move many functions to
5065         buildsym-legacy.c.
5066         * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
5067
5068 2018-07-20  Tom Tromey  <tom@tromey.com>
5069
5070         * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
5071         * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
5072         (buildsym_compunit::buildsym_compunit)
5073         (buildsym_compunit::~buildsym_compunit)
5074         (buildsym_compunit::get_macro_table): Define.
5075
5076 2018-07-20  Tom Tromey  <tom@tromey.com>
5077
5078         * buildsym.c (reset_symtab_globals): Remove.
5079         (buildsym_compunit::end_symtab_from_static_block): Update.
5080         (buildsym_compunit::augment_type_symtab): Update.
5081         (end_symtab_from_static_block): Call free_buildsym_compunit.
5082         (augment_type_symtab, end_symtab, end_expandable_symtab):
5083         Likewise.
5084
5085 2018-07-20  Tom Tromey  <tom@tromey.com>
5086
5087         * arch-utils.c: Do not include buildsym.h.
5088         * mipsread.c: Do not include buildsym.h.
5089         * machoread.c: Do not include buildsym.h.
5090         * elfread.c: Do not include buildsym.h.
5091
5092 2018-07-20  Tom Tromey  <tom@tromey.com>
5093
5094         * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
5095         initialization.
5096         (buildsym_compunit): Add new constructor.
5097         (struct buildsym_compunit) <get_last_source_file, finish_block,
5098         record_block_range, start_subfile, patch_subfile_names,
5099         push_subfile, pop_subfile, record_line, get_compunit_symtab,
5100         set_last_source_start_addr, get_last_source_start_addr,
5101         get_local_using_directives, set_local_using_directives,
5102         get_global_using_directives, outermost_context_p,
5103         get_current_context_stack, get_context_stack_depth,
5104         get_current_subfile, get_local_symbols, get_file_symbols,
5105         get_global_symbols, record_debugformat, record_producer,
5106         push_context, pop_context, end_symtab_get_static_block,
5107         end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
5108         New public methods.
5109         <record_pending_block, finish_block_internal, make_blockvector,
5110         watch_main_source_file_lossage, end_symtab_with_blockvector>: New
5111         private methods.
5112         Update all users.
5113
5114 2018-05-22  Tom Tromey  <tom@tromey.com>
5115
5116         * buildsym.c (record_pending_block): Move earlier.  Remove objfile
5117         parameter.
5118         (finish_block_internal): Update.
5119
5120 2018-07-20  Tom Tromey  <tom@tromey.com>
5121
5122         * buildsym.c (record_pending_block): Move earlier.  Remove objfile
5123         parameter.
5124         (finish_block_internal): Update.
5125
5126 2018-07-20  Tom Tromey  <tom@tromey.com>
5127
5128         * buildsym.h (EXTERN): Don't define or undef.
5129         * buildsym.c (EXTERN): Don't define.
5130
5131 2018-07-20  Tom Tromey  <tom@tromey.com>
5132
5133         * buildsym.c: Remove TODO comment.
5134
5135 2018-07-20  Tom Tromey  <tom@tromey.com>
5136
5137         * coffread.c (coff_symtab_read): Update.
5138         * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5139         (xcoff_new_init): Update.
5140         * mipsread.c (mipscoff_new_init): Update.
5141         * mdebugread.c (mdebug_build_psymtabs): Update.
5142         * elfread.c (elf_new_init): Update.
5143         * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
5144         Update.
5145         * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
5146         (coffstab_build_psymtabs, elfstab_build_psymtabs)
5147         (stabsect_build_psymtabs): Update.
5148         * buildsym.h (buildsym_init): Don't declare.
5149         * buildsym.c: Update comment.
5150         (prepare_for_building): Remove.
5151         (start_symtab, restart_symtab): Update.
5152         (reset_symtab_globals): Update comment.
5153         (buildsym_init): Remove.
5154
5155 2018-07-20  Tom Tromey  <tom@tromey.com>
5156
5157         * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
5158         * stabsread.c (patch_block_stabs, define_symbol, read_type)
5159         (read_enum_type, common_block_start, common_block_end)
5160         (cleanup_undefined_types_1, finish_global_stabs): Update.
5161         * mdebugread.c (psymtab_to_symtab_1): Update.
5162         * dwarf2read.c (fixup_go_packaging, read_func_scope)
5163         (read_lexical_block_scope, new_symbol): Update.
5164         * dbxread.c (process_one_symbol): Update.
5165         * coffread.c (coff_symtab_read, process_coff_symbol)
5166         (coff_read_enum_type): Update.
5167         * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
5168         declare.
5169         (get_local_symbols, get_file_symbols, get_global_symbols): New
5170         functions.
5171         * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
5172         m_global_symbols.
5173         <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
5174         (~scoped_free_pendings): Update.
5175         (finish_block, prepare_for_building, reset_symtab_globals)
5176         (end_symtab_get_static_block, end_symtab_with_blockvector)
5177         (augment_type_symtab, push_context): Update.
5178         (get_local_symbols, get_file_symbols, get_global_symbols): New
5179         functions.
5180         (buildsym_init): Update.
5181
5182 2018-07-20  Tom Tromey  <tom@tromey.com>
5183
5184         * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
5185         (process_full_type_unit): Likewise.
5186         (dwarf2_start_symtab): Set list_in_scope.
5187
5188 2018-07-20  Tom Tromey  <tom@tromey.com>
5189
5190         * dwarf2read.c (process_psymtab_comp_unit_reader)
5191         (build_type_psymtabs_reader): Do not set list_in_scope.
5192
5193 2018-07-20  Tom Tromey  <tom@tromey.com>
5194
5195         * buildsym.c (free_pendings): Remove.
5196         (add_symbol_to_list, scoped_free_pendings)
5197         (finish_block_internal, buildsym_init): Update.
5198
5199 2018-07-20  Tom Tromey  <tom@tromey.com>
5200
5201         * xcoffread.c (read_xcoff_symtab): Update.
5202         * dwarf2read.c (read_func_scope, read_lexical_block_scope):
5203         Update.
5204         * dbxread.c (process_one_symbol): Update.
5205         * coffread.c (coff_symtab_read): Update.
5206         * buildsym.h (finish_block): Update.
5207         * buildsym.c (finish_block): Remove "listhead" argument.
5208         (end_symtab_get_static_block): Update.
5209
5210 2018-07-20  Tom Tromey  <tom@tromey.com>
5211
5212         * buildsym.h (class scoped_free_pendings): Remove constructor.
5213         * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
5214         method.
5215         <m_pending_block_obstack, m_pending_blocks>: New members.
5216         (pending_block_obstack, pending_blocks): Remove.
5217         (scoped_free_pendings::scoped_free_pendings): Default.
5218         (~scoped_free_pendings): Update.
5219         (free_pending_blocks): Remove.
5220         (finish_block_internal, record_pending_block, make_blockvector)
5221         (end_symtab_get_static_block, augment_type_symtab, push_context)
5222         (buildsym_init): Update.
5223
5224 2018-07-20  Tom Tromey  <tom@tromey.com>
5225
5226         * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
5227         m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
5228         members.
5229         (pending_addrmap, pending_addrmap_obstack)
5230         (pending_addrmap_interesting): Remove.
5231         (scoped_free_pendings, record_block_range, make_blockvector)
5232         (prepare_for_building, reset_symtab_globals, buildsym_init):
5233         Update.
5234
5235 2018-07-20  Tom Tromey  <tom@tromey.com>
5236
5237         * xcoffread.c (process_linenos): Update.
5238         * stabsread.c (define_symbol, read_type, read_enum_type): Update.
5239         * mdebugread.c (psymtab_to_symtab_1): Update.
5240         * dwarf2read.c (setup_type_unit_groups)
5241         (lnp_state_machine::handle_set_file, dwarf_record_line_p)
5242         (lnp_state_machine::record_line, dwarf_decode_lines): Update.
5243         * dbxread.c (process_one_symbol): Update.
5244         * coffread.c (coff_symtab_read, enter_linenos)
5245         (process_coff_symbol): Update.
5246         * buildsym.h (current_subfile): Don't declare.
5247         (get_current_subfile): Declare.
5248         * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
5249         member.
5250         (start_subfile, free_buildsym_compunit, push_subfile)
5251         (prepare_for_building, start_symtab): Update.
5252         (get_current_subfile): New function.
5253
5254 2018-07-20  Tom Tromey  <tom@tromey.com>
5255
5256         * coffread.c (coff_symtab_read): Update.
5257         * xcoffread.c (read_xcoff_symtab): Update.
5258         * dwarf2read.c (new_symbol): Update.
5259         (read_func_scope, read_lexical_block_scope): Update.
5260         * dbxread.c (process_one_symbol): Update.
5261         * buildsym.h (context_stack, context_stack_depth): Don't declare.
5262         (outermost_context_p): Remove macro.
5263         (outermost_context_p, get_current_context_stack)
5264         (get_context_stack_depth): Declare.
5265         (pop_context): Return struct context_stack.
5266         * buildsym.c (struct buildsym_compunit) <m_context_stack: New
5267         member.
5268         (context_stack_size): Remove.
5269         (INITIAL_CONTEXT_STACK_SIZE): Remove.
5270         (prepare_for_building, end_symtab_get_static_block)
5271         (augment_type_symtab, push_context): Update.
5272         (pop_context): Return struct context_stack.
5273         (outermost_context_p, get_current_context_stack)
5274         (get_context_stack_depth): New functions.
5275         (buildsym_init): Update.
5276
5277 2018-07-20  Tom Tromey  <tom@tromey.com>
5278
5279         * rust-exp.y: Now a pure parser.  Update all rules.
5280         (%union): Move earlier.
5281         (current_parser, work_obstack): Remove globals.
5282         (rust_parser, ~rust_parser): Update.
5283         (class rust_parser) <copy_name, concat3, crate_name, super_name,
5284         lex_character, lex_number, lex_string, lex_identifier,
5285         rust_lookup_type, convert_params_to_types, convert_ast_to_type,
5286         convert_name, convert_params_to_expression,
5287         convert_ast_to_expression, ast_basic_type, ast_operation,
5288         ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
5289         ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
5290         ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
5291         ast_array_type, ast_slice_type, ast_reference_type,
5292         ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
5293         (rust_parse): Update.
5294         (rustyyerror, rustyylex): Add parser parameter.
5295         (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
5296         (rust_lex_stringish_test, rust_lex_test_sequence)
5297         (rust_lex_test_trailing_dot, rust_lex_test_completion)
5298         (rust_lex_test_push_back, rust_lex_tests): Update.
5299
5300 2018-07-19  Pedro Alves  <palves@redhat.com>
5301
5302         * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
5303         gdb::unique_xmalloc_ptr.
5304         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
5305         Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
5306         * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
5307         copy-initialization.
5308         * guile/scm-pretty-print.c (ppscm_print_children): Use
5309         gdb::unique_xmalloc_ptr instead of cleanups.
5310         (gdbscm_apply_val_pretty_printer): Remove cleanups.
5311         * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
5312         gdb::unique_xmalloc_ptr.
5313         * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
5314         Adjust to use gdb::unique_xmalloc_ptr.
5315         * guile/scm-utils.c (extract_arg): Adjust.
5316         * guile/scm-value.c (gdbscm_value_field): Adjust to use
5317         gdb::unique_xmalloc_ptr instead of a cleanup.
5318
5319 2018-07-19  Tom Tromey  <tom@tromey.com>
5320
5321         * utils.c (do_value_free_to_mark)
5322         (make_cleanup_value_free_to_mark): Remove.
5323         * utils.h (make_cleanup_value_free_to_mark): Remove.
5324
5325 2018-07-19  Pedro Alves  <palves@redhat.com>
5326
5327         * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
5328         forwarding reference.
5329
5330 2018-07-18  Pedro Alves  <palves@redhat.com>
5331
5332         * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
5333         gdbscm_wrap.  Use gdb::unique_xmalloc_ptr<char> instead of a
5334         cleanup.
5335
5336 2018-07-18  Pedro Alves  <palves@redhat.com>
5337
5338         * guile/guile-internal.h: Add comment about mixing GDB and Scheme
5339         exceptions.
5340         (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
5341         (gdbscm_wrap): New.
5342         * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
5343         directly instead of a cleanup.
5344         * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
5345         (vlscm_unop): ... this.  Reimplement using gdbscm_wrap.
5346         (vlscm_binop_gdbthrow): New, factored out from ...
5347         (vlscm_binop): ... this.  Reimplement using gdbscm_wrap.
5348         (vlscm_rich_compare): Use gdbscm_wrap.
5349         * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
5350         instead of a cleanup.
5351         (gdbscm_lookup_global_symbol): Use xfree directly instead of a
5352         cleanup.
5353         * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
5354         Use xfree directly instead of a cleanup.
5355         * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
5356         Adjust to use gdbscm_wrap and scoped_value_mark.
5357         (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
5358         (gdbscm_value_address, gdbscm_value_dereference)
5359         (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
5360         scoped_value_mark.
5361         (gdbscm_value_dynamic_type): Use scoped_value_mark.
5362         (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
5363         scoped_value_mark.
5364         (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
5365         gdbscm_wrap and scoped_value_mark.
5366         (gdbscm_value_to_string): Use xfree directly instead of a
5367         cleanup.  Move 'buffer' unique_ptr to TRY scope.
5368         (gdbscm_value_to_lazy_string): Use xfree directly instead of a
5369         cleanup.  Move 'buffer' unique_ptr to TRY scope.  Use
5370         scoped_value_mark.
5371         (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
5372         (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
5373         scoped_value_mark.
5374         (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
5375         gdbscm_wrap.
5376
5377 2018-07-18  Tom de Vries  <tdevries@suse.de>
5378
5379         * findvar.c (default_read_var_value): Also resolve dynamic type for
5380         LOC_OPTIMIZED_OUT vars.
5381
5382 2018-07-18  Maciej W. Rozycki  <macro@mips.com>
5383
5384         * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
5385         decoding.
5386
5387 2018-07-17  Tom Tromey  <tom@tromey.com>
5388
5389         * guile/scm-param.c (pascm_set_func, pascm_show_func)
5390         (compute_enum_list, pascm_set_param_value_x)
5391         (gdbscm_parameter_value): Update.
5392         * guile/guile-internal.h (gdbscm_scm_to_string): Update.
5393         (gdbscm_scm_to_host_string): Update.
5394         * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
5395         Update.
5396         * guile/scm-cmd.c (cmdscm_add_completion): Update.
5397         * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
5398         * guile/scm-string.c (gdbscm_scm_to_string): Return
5399         unique_xmalloc_ptr.
5400         (gdbscm_scm_to_host_string): Likewise.
5401
5402 2018-07-17  Tom Tromey  <tom@tromey.com>
5403
5404         * guile/guile.c (gdbscm_eval_from_control_command): Update.
5405         * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
5406         * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
5407         * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
5408         unique_xmalloc_ptr.
5409
5410 2018-07-17  Tom Tromey  <tom@tromey.com>
5411
5412         * guile/scm-param.c (pascm_signal_setshow_error): Update.
5413         * guile/guile-internal.h (gdbscm_exception_message_to_string):
5414         Update.
5415         * guile/scm-cmd.c (cmdscm_function): Update.
5416         * guile/scm-pretty-print.c
5417         (ppscm_print_exception_unless_memory_error): Update.
5418         * guile/scm-exception.c (gdbscm_exception_message_to_string):
5419         Return unique_xmalloc_ptr.
5420
5421 2018-07-17  Tom Tromey  <tom@tromey.com>
5422
5423         * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
5424         Use string_printf.
5425
5426 2018-07-17  Jim Wilson  <jimw@sifive.com>
5427
5428         * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
5429         set_gdbarch_decr_pc_after_break.  Call riscv_read_misa_reg always.
5430         (riscv_gdbarch_init): Delete local has_compressed_isa.  Delete now
5431         unecessary braces after EF_RISCV_RVC test.  Delete call to
5432         set_gdbarch_decr_pc_after_break.
5433
5434         * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
5435         RISCV_LAST_FP_REGNUM + 1.
5436         (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
5437
5438 2018-07-17  Tom Tromey  <tom@tromey.com>
5439
5440         * configure.ac: Remove --disable-gdbcli.
5441         * configure: Rebuild.
5442         * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
5443         (SUBDIR_CLI_CFLAGS): Remove.
5444         (SFILES): Use SUBDIR_CLI_SRCS.
5445         (COMMON_OBS): Use SUBDIR_CLI_OBS.
5446
5447 2018-07-17  Tom Tromey  <tom@tromey.com>
5448
5449         PR gdb/18624:
5450         * coffread.c (coff_symtab_read): Use scoped_free_pendings.
5451
5452 2018-07-16  Jim Wilson  <jimw@sifive.com>
5453
5454         * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
5455
5456 2018-07-16  Simon Marchi  <simon.marchi@ericsson.com>
5457
5458         * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
5459         variable.
5460         (libunwind_frame_sniffer): Likewise.
5461         (libunwind_frame_prev_register): Likewise.
5462         (libunwind_sigtramp_frame_sniffer): Likewise.
5463         * ia64-tdep.c (ia64_access_reg): Likewise.
5464         (ia64_access_rse_reg): Likewise.
5465         (ia64_libunwind_sigtramp_frame_this_id): Likewise.
5466         * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
5467
5468 2018-07-16  Simon Marchi  <simon.marchi@ericsson.com>
5469
5470         * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
5471
5472 2018-07-16  Simon Marchi  <simon.marchi@ericsson.com>
5473
5474         * remote-sim.c (gdbsim_target::close,
5475         gdbsim_target::mourn_inferior): Remove unused variables.
5476
5477 2018-07-16  Simon Marchi  <simon.marchi@polymtl.ca>
5478
5479         * ia64-tdep.c (ktab_buf): New global.
5480         (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
5481         (get_kernel_table): Adjust.
5482
5483 2018-07-16  Tom Tromey  <tom@tromey.com>
5484
5485         * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
5486         * dwarf2read.c (using_directives, new_symbol): Use
5487         outermost_context_p.
5488         * dbxread.c (process_one_symbol): Use outermost_context_p.
5489         * coffread.c (coff_symtab_read): Use outermost_context_p.
5490
5491 2018-07-16  Tom Tromey  <tom@tromey.com>
5492
5493         * dwarf2read.c (using_directives, read_func_scope)
5494         (read_lexical_block_scope): Update.
5495         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
5496         * buildsym.h (local_using_directives, global_using_directives):
5497         Don't declare.
5498         (get_local_using_directives, set_local_using_directives)
5499         (get_global_using_directives): Declare.
5500         * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
5501         m_global_using_directives>: New members.
5502         (finish_block_internal, prepare_for_building)
5503         (reset_symtab_globals, end_symtab_get_static_block)
5504         (push_context): Update.
5505         (get_local_using_directives, set_local_using_directives)
5506         (get_global_using_directives): New functions.
5507         (buildsym_init): Update.
5508
5509 2018-07-16  Tom Tromey  <tom@tromey.com>
5510
5511         * xcoffread.c (xcoff_initial_scan): Don't call
5512         free_pending_blocks.
5513         * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
5514         * buildsym.h (class scoped_free_pendings): Add constructor.
5515         (free_pending_blocks): Don't declare.
5516         * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
5517         (free_pending_blocks): Now static.
5518
5519 2018-07-16  Tom Tromey  <tom@tromey.com>
5520
5521         * buildsym.h (push_subfile, pop_subfile): Update declarations.
5522         * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
5523         member.
5524         (struct subfile_stack): Remove.
5525         (subfile_stack): Remove.
5526         (push_subfile, pop_subfile, buildsym_init): Update.
5527
5528 2018-07-16  Tom Tromey  <tom@tromey.com>
5529
5530         * buildsym.c (push_subfile): Use gdb_assert.
5531         (pop_subfile): Use gdb_assert.
5532
5533 2018-07-16  Tom Tromey  <tom@tromey.com>
5534
5535         * buildsym.h (merge_symbol_lists): Remove.
5536         * buildsym.c (merge_symbol_lists): Remove.
5537
5538 2018-07-16  Tom Tromey  <tom@tromey.com>
5539
5540         * stabsread.c (scan_file_globals): Update comment.
5541         * stabsread.h (scan_file_globals): Move from buildsym.h.
5542         * buildsym.h (scan_file_globals): Move to stabsread.h.
5543
5544 2018-07-16  Tom Tromey  <tom@tromey.com>
5545
5546         * xcoffread.c (xcoff_new_init): Update.
5547         * mipsread.c (mipscoff_new_init): Update.
5548         * mdebugread.c (mdebug_build_psymtabs): Update.
5549         * elfread.c (elf_new_init): Update.
5550         * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
5551         (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
5552         * buildsym.h (buildsym_new_init): Don't declare.
5553         * buildsym.c (buildsym_new_init): Remove.
5554
5555 2018-07-16  Tom Tromey  <tom@tromey.com>
5556
5557         * stabsread.h (within_function): Move from buildsym.h.
5558         * stabsread.c (start_stabs): Clear within_function.
5559         * coffread.c (coff_start_symtab): Clear within_function.
5560         * buildsym.h (within_function): Move to stabsread.h.
5561         * buildsym.c (prepare_for_building): Update.
5562
5563 2018-07-16  Tom Tromey  <tom@tromey.com>
5564
5565         * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
5566         * dwarf2read.c (dwarf2_start_symtab): Don't set
5567         processing_gcc_compilation.
5568         * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
5569
5570 2018-07-16  Tom Tromey  <tom@tromey.com>
5571
5572         * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
5573         (next_symbol_text_func): Move from buildsym.h.
5574         * stabsread.c (hashname): Move from buildsym.c.
5575         * buildsym.h (HASHSIZE, symnum, next_symbol_text)
5576         (next_symbol_text_func, hashname): Move to stabsread.h.
5577         * buildsym.c: Don't include bcache.h
5578         (hashname): Move to stasbread.c.
5579
5580 2018-07-16  Tom Tromey  <tom@tromey.com>
5581
5582         * buildsym.h (context_stack_size): Don't declare.
5583         * buildsym.c (context_stack_size): New global.
5584
5585 2018-07-16  Tom Tromey  <tom@tromey.com>
5586
5587         * dbxread.c (processing_acc_compilation): New global.
5588         * buildsym.h (processing_acc_compilation): Don't declare.
5589
5590 2018-07-16  Tom Tromey  <tom@tromey.com>
5591
5592         * xcoffread.c (aix_process_linenos, complete_symtab): Update.
5593         * dbxread.c (read_ofile_symtab): Update.
5594         * coffread.c (coff_start_symtab, coff_end_symtab): Update.
5595         * buildsym.h (last_source_start_addr): Remove.
5596         (set_last_source_start_addr, get_last_source_start_addr):
5597         Declare.
5598         * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
5599         parameter.
5600         (struct buildsym_compunit) <m_last_source_start_addr>: New
5601         member.
5602         (prepare_for_building): Remove start_addr parameter.
5603         (start_symtab, restart_symtab, end_symtab_get_static_block)
5604         (end_symtab_with_blockvector): Update.
5605         (set_last_source_start_addr, get_last_source_start_addr): New
5606         functions.
5607
5608 2018-07-16  Tom Tromey  <tom@tromey.com>
5609
5610         * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
5611         member.
5612         (have_line_numbers): Remove.
5613         (record_line, prepare_for_building, end_symtab_get_static_block)
5614         (augment_type_symtab): Update.
5615
5616 2018-07-16  Tom Tromey  <tom@tromey.com>
5617
5618         * buildsym.c (~buildsym_compunit): Free the macro table.
5619         (struct buildsym_compunit) <get_macro_table, release_macros>: New
5620         methods.
5621         <m_pending_macros>: New member.
5622         (pending_macros): Remove.
5623         (~scoped_free_pendings, get_macro_table, prepare_for_building)
5624         (reset_symtab_globals, end_symtab_get_static_block)
5625         (end_symtab_with_blockvector, augment_type_symtab)
5626         (buildsym_init): Update.
5627
5628 2018-07-16  Tom Tromey  <tom@tromey.com>
5629
5630         * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
5631         parameter.
5632         (buildsym_compunit::set_last_source_file): New method.
5633         <m_last_source_file>: New member.
5634         (prepare_for_building): Remove "name" parameter.
5635         (start_symtab, restart_symtab, reset_symtab_globals): Update.
5636         (last_source_file): Remove.
5637         (set_last_source_file, get_last_source_file): Update.
5638
5639 2018-07-16  Tom Tromey  <tom@tromey.com>
5640
5641         * buildsym.c (prepare_for_building): Add assert.
5642
5643 2018-07-16  Tom Tromey  <tom@tromey.com>
5644
5645         * buildsym.c (~buildsym_compunit): Update.
5646         (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
5647         (start_subfile, patch_subfile_names)
5648         (end_symtab_with_blockvector): Update.
5649
5650 2018-07-16  Tom Tromey  <tom@tromey.com>
5651
5652         * buildsym.c (struct buildsym_compunit): Add constructor,
5653         destructor, initializers.
5654         (start_buildsym_compunit): Remove.
5655         (free_buildsym_compunit): Use "delete".
5656         (start_symtab, restart_symtab): Use "new".
5657
5658 2018-07-13  Simon Marchi  <simon.marchi@polymtl.ca>
5659
5660         * symfile.c (set_objfile_default_section_offset): Remove struct
5661         keyword.
5662
5663 2018-07-14  Stafford Horne  <shorne@gmail.com>
5664
5665         * (Responsible Maintainers): Add myself as or1k maintainer.
5666
5667 2018-07-13  Tom Tromey  <tom@tromey.com>
5668
5669         * symfile.c (set_objfile_default_section_offset): Use extra braces
5670         around initializer.
5671
5672 2018-07-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5673
5674         * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
5675         non-branching basr.
5676
5677 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5678
5679         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5680         unittests/cli-utils-selftests.c
5681         * unittests/cli-utils-selftests.c: New file.
5682
5683 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5684
5685         * NEWS: Mention new commands. Mention change to 'thread apply'.
5686
5687 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5688
5689         * thread.c (thr_try_catch_cmd): New function.
5690         (thread_apply_all_command): Handle qcs flags.
5691         (thread_apply_command): Handle qcs flags.
5692         (taas_command): New function.
5693         (tfaas_command): New function.
5694         (_initialize_thread): Update to setup the new commands 'taas
5695         and 'tfaas'. Change doc string for 'thread apply'.
5696
5697 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5698
5699         * stack.c: (trailing_outermost_frame): New function, mostly
5700         extracted from backtrace_command_1.
5701         (leading_innermost_frame): New function.
5702         (backtrace_command_1): Update to call trailing_outermost_frame.
5703         (frame_apply_command_count): New function.
5704         (frame_apply_level_command): New function.
5705         (frame_apply_all_command): New function.
5706         (frame_apply_command): New function.
5707         (faas_command): New function.
5708         (frame_cmd_list): New variable.
5709         (_initialize_stack): Update to setup the new commands 'frame apply'
5710         and 'faas'.
5711
5712 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5713
5714         * cli-utils.c (number_or_range_parser::get_number): Only handle
5715         numbers or convenience var as numbers.
5716         (parse_flags): New function.
5717         (parse_flags_qcs): New function.
5718         (number_or_range_parser::finished): Ensure parsing end is detected
5719         before end of string.
5720         * cli-utils.h (parse_flags): New function.
5721         (parse_flags_qcs): New function.
5722         (number_or_range_parser): Remove m_finished bool.
5723         (number_or_range_parser::skip_range): Set m_in_range to false.
5724
5725 2018-07-12  Sergio Durigan Junior  <sergiodj@redhat.com>
5726
5727         * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
5728         on Windows.
5729
5730 2018-07-11  Sergio Durigan Junior  <sergiodj@redhat.com>
5731             Jan Kratochvil  <jan.kratochvil@redhat.com>
5732             Paul Fertser  <fercerpav@gmail.com>
5733             Tsutomu Seki  <sekiriki@gmail.com>
5734             Pedro Alves  <palves@redhat.com>
5735
5736         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5737         'unittests/parse-connection-spec-selftests.c'.
5738         (COMMON_SFILES): Add 'common/netstuff.c'.
5739         (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
5740         * NEWS (Changes since GDB 8.2): Mention IPv6 support.
5741         * common/netstuff.c: New file.
5742         * common/netstuff.h: New file.
5743         * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
5744         (wait_for_connect): Update comment.  New parameter
5745         'gdb::optional<int> sock' instead of 'struct serial *scb'.
5746         Use 'sock' directly instead of 'scb->fd'.
5747         (try_connect): New function, with code from 'net_open'.
5748         (net_open): Rewrite main loop to deal with multiple
5749         sockets/addresses.  Handle IPv6-style hostnames; implement
5750         support for IPv6 connections.
5751         * unittests/parse-connection-spec-selftests.c: New file.
5752
5753 2018-07-11  Pedro Alves  <palves@redhat.com>
5754
5755         PR gdb/23377
5756         * remote.c (remote_target::remote_detach_pid): Call
5757         set_current_process.
5758
5759 2018-07-11  Pedro Alves  <palves@redhat.com>
5760
5761         * h8300-tdep.c (h8300_gdbarch_init): Remove
5762         set_gdbarch_ecoff_reg_to_regnum calls.
5763
5764 2018-07-11  Sergio Durigan Junior  <sergiodj@redhat.com>
5765
5766         PR c++/23373
5767         * c-typeprint.c (c_type_print_base_struct_union): Don't print
5768         offsets/sizes for static members of a class/struct.
5769
5770 2018-07-11  Alan Hayward  <alan.hayward@arm.com>
5771
5772         * target-descriptions.c (tdesc_register_bitsize): Rename.
5773         * target-descriptions.h (tdesc_register_bitsize): Likewise.
5774         * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
5775         * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
5776
5777 2018-07-10  Tom Tromey  <tom@tromey.com>
5778
5779         * breakpoint.c (moribund_locations): Now static and a
5780         std::vector.
5781         (breakpoint_init_inferior, moribund_breakpoint_here_p)
5782         (build_bpstat_chain, update_global_location_list)
5783         (breakpoint_retire_moribund): Update.
5784         * breakpoint.h (bp_location_p): Remove typedef.  Don't declare
5785         VEC.
5786
5787 2018-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
5788
5789         * riscv-tdep.c (riscv_is_fp_regno_p): New function.
5790         (riscv_register_reggroup_p): Use new function, remove unneeded
5791         parenthesis.
5792         (riscv_push_dummy_call): Extend assert to compare against xlen or
5793         flen based on register type.
5794
5795 2018-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
5796
5797         * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
5798
5799 2018-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
5800
5801         * remote.c (show_hardware_watchpoint_limit): New function.
5802         (show_hardware_watchpoint_length_limit): New function.
5803         (show_hardware_breakpoint_limit): New function.
5804         (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
5805         where appropriate, update help text.
5806
5807 2018-07-09  Tom Tromey  <tom@tromey.com>
5808
5809         * Makefile.in (CDEPS): Don't mention XM_CDEPS.
5810         (CLIBS): Don't mention NAT_CLIBS.
5811
5812 2018-07-09  Tom Tromey  <tom@tromey.com>
5813
5814         * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
5815         (LIBGDB_OBS, clean mostlyclean): Update.
5816         (gdb$(EXEEXT), insight$(EXEEXT)): Update.
5817
5818 2018-07-09  Tom Tromey  <tom@tromey.com>
5819
5820         * Makefile.in (%.c: %.y): Use ECHO_YACC.
5821         (%.c: %.l): Use ECHO_LEX.  Just fail if flex not available.
5822         * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
5823
5824 2018-07-09  Tom Tromey  <tom@tromey.com>
5825
5826         * Makefile.in (ALLDEPFILES): Remove exec.c.
5827         (COMMON_OBS): Remove exec.o.
5828         (COMMON_SFILES): Add exec.c.
5829
5830 2018-07-09  Tom Tromey  <tom@tromey.com>
5831
5832         * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
5833
5834 2018-07-09  Tom Tromey  <tom@tromey.com>
5835
5836         * Makefile.in (clean mostlyclean): Remove stamp-version.
5837         (version.c): Depend on stamp-version.
5838         (stamp-version): New rule, from version.c rule.
5839
5840 2018-07-09  Tom Tromey  <tom@tromey.com>
5841
5842         * Makefile.in (init.c): Depend on stamp-init.
5843         (stamp-init): New rule, from init.c rule.
5844         (clean mostlyclean): Remove stamp-init.
5845
5846 2018-07-09  Tom Tromey  <tom@tromey.com>
5847
5848         * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
5849         SUBDIR_GCC_COMPILE_SRCS.
5850
5851 2018-07-09  Tom Tromey  <tom@tromey.com>
5852
5853         * Makefile.in (init.c): Remove some unused sed rules.
5854
5855 2018-07-09  Tom Tromey  <tom@tromey.com>
5856
5857         * Makefile.in (TSOBS): Remove.
5858         (INIT_FILES): Update.
5859         (LIBGDB_OBS): Update.
5860         (COMMON_SFILES): Add inflow.c.
5861         (SFILES): Remove inflow.c.
5862
5863 2018-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
5864
5865         * contrib/gdb-add-index.sh ($dwarf5): New, use it.
5866
5867 2018-07-07  Simon Marchi  <simon.marchi@polymtl.ca>
5868
5869         * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
5870         get_saveloc_name, is_signal_frame_name, step_name,
5871         init_remote_name, create_addr_space_name,
5872         destroy_addr_space_name, search_unwind_table_name,
5873         find_dyn_list_name): Constify.
5874
5875 2018-07-05  Simon Marchi  <simon.marchi@polymtl.ca>
5876
5877         * darwin-nat.c (darwin_pthread_kill): New function.
5878         (darwin_resume_thread): Use darwin_pthread_kill.
5879
5880 2018-07-05  Tom de Vries  <tdevries@suse.de>
5881
5882         * macroexp.c (macro_buffer) <operator=>: New member function.
5883
5884 2018-07-04  Tom Tromey  <tom@tromey.com>
5885
5886         * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
5887
5888 2018-07-04  Simon Marchi  <simon.marchi@polymtl.ca>
5889
5890         * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
5891         * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
5892         * maint.c: Likewise.
5893         * top.c: Likewise.
5894
5895 2018-07-04  Joel Brobecker  <brobecker@adacore.com>
5896
5897         * NEWS: Create a new section for the next release branch.
5898         Rename the section of the current branch, now that it has
5899         been cut.
5900
5901 2018-07-04  Joel Brobecker  <brobecker@adacore.com>
5902
5903         GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
5904         * version.in: Bump version to 8.2.50.DATE-git.
5905
5906 2018-07-04  Vyacheslav Barinov  <v.barinov@samsung.com>
5907             Pedro Alves  <palves@redhat.com>
5908
5909         * linux-nat.c (linux_init_ptrace): Rename to ...
5910         (linux_init_ptrace_procfs): ... this.  Call
5911         linux_proc_init_warnings.
5912         (linux_nat_target::post_attach)
5913         (linux_nat_target::post_startup_inferior): Adjust.
5914         * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
5915         * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
5916
5917 2018-07-04  Tom de Vries  <tdevries@suse.de>
5918
5919         * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
5920         check ...
5921         (read_comp_unit_head): ... here.
5922
5923 2018-07-03  Tom Tromey  <tom@tromey.com>
5924
5925         * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
5926         (stop_tracing, tstatus_command)
5927         (find_matching_tracepoint_location, merge_uploaded_tracepoints)
5928         (print_one_static_tracepoint_marker): Update.
5929         * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
5930         std::vector.
5931         * breakpoint.h (breakpoint_p): Remove typedef.  Don't declare
5932         VEC.
5933         (all_tracepoints, static_tracepoints_here): Return std::vector.
5934
5935 2018-07-03  Tom Tromey  <tom@tromey.com>
5936
5937         * common/ptid.c (ptid_equal): Remove.
5938         * common/ptid.h (ptid_equal): Don't declare.
5939         * ada-tasks.c: Update.
5940         * breakpoint.c: Update.
5941         * common/agent.c: Update.
5942         * corelow.c: Update.
5943         * darwin-nat-info.c: Update.
5944         * darwin-nat.c: Update.
5945         * dcache.c: Update.
5946         * dtrace-probe.c: Update.
5947         * dummy-frame.c: Update.
5948         * fbsd-nat.c: Update.
5949         * frame.c: Update.
5950         * gdbthread.h: Update.
5951         * gnu-nat.c: Update.
5952         * go32-nat.c: Update.
5953         * inf-loop.c: Update.
5954         * inf-ptrace.c: Update.
5955         * infcall.c: Update.
5956         * infcmd.c: Update.
5957         * inflow.c: Update.
5958         * infrun.c: Update.
5959         * linux-fork.c: Update.
5960         * linux-nat.c: Update.
5961         * linux-thread-db.c: Update.
5962         * mi/mi-cmd-var.c: Update.
5963         * mi/mi-interp.c: Update.
5964         * mi/mi-main.c: Update.
5965         * nto-procfs.c: Update.
5966         * ppc-linux-tdep.c: Update.
5967         * procfs.c: Update.
5968         * python/py-inferior.c: Update.
5969         * python/py-record-btrace.c: Update.
5970         * python/py-record.c: Update.
5971         * ravenscar-thread.c: Update.
5972         * regcache.c: Update.
5973         * remote-sim.c: Update.
5974         * remote.c: Update.
5975         * sol-thread.c: Update.
5976         * solib.c: Update.
5977         * target.c: Update.
5978         * tui/tui-stack.c: Update.
5979         * varobj.c: Update.
5980         * windows-nat.c: Update.
5981         * windows-tdep.c: Update.
5982
5983 2018-07-03  Tom Tromey  <tom@tromey.com>
5984
5985         * common/ptid.c (ptid_match): Remove.
5986         * common/ptid.h (ptid_match): Don't declare.
5987         * fbsd-nat.c: Update.
5988         * infcmd.c: Update.
5989         * infrun.c: Update.
5990         * linux-nat.c: Update.
5991         * record-btrace.c: Update.
5992         * regcache.c: Update.
5993         * remote.c: Update.
5994
5995 2018-07-03  Tom Tromey  <tom@tromey.com>
5996
5997         * common/ptid.c (ptid_tid_p): Remove.
5998         * common/ptid.h (ptid_tid_p): Don't declare.
5999         * sol-thread.c: Update.
6000
6001 2018-07-03  Tom Tromey  <tom@tromey.com>
6002
6003         * common/ptid.c (ptid_lwp_p): Remove.
6004         * common/ptid.h (ptid_lwp_p): Don't declare.
6005         * fbsd-nat.c: Update.
6006         * linux-nat.c: Update.
6007         * nat/linux-procfs.c: Update.
6008         * nat/x86-linux-dregs.c: Update.
6009         * sol-thread.c: Update.
6010
6011 2018-07-03  Tom Tromey  <tom@tromey.com>
6012
6013         * common/ptid.c (ptid_is_pid): Remove.
6014         * common/ptid.h (ptid_is_pid): Don't declare.
6015         * infrun.c: Update.
6016         * linux-nat.c: Update.
6017         * mi/mi-interp.c: Update.
6018         * remote.c: Update.
6019         * thread.c: Update.
6020
6021 2018-07-03  Tom Tromey  <tom@tromey.com>
6022
6023         * common/ptid.c (ptid_get_tid): Remove.
6024         * common/ptid.h (ptid_get_tid): Don't declare.
6025         * ada-tasks.c: Update.
6026         * aix-thread.c: Update.
6027         * bsd-uthread.c: Update.
6028         * darwin-nat.c: Update.
6029         * fbsd-nat.c: Update.
6030         * i386-darwin-nat.c: Update.
6031         * infrun.c: Update.
6032         * linux-tdep.c: Update.
6033         * nto-procfs.c: Update.
6034         * ppc-ravenscar-thread.c: Update.
6035         * python/py-infthread.c: Update.
6036         * ravenscar-thread.c: Update.
6037         * sol-thread.c: Update.
6038         * sparc-ravenscar-thread.c: Update.
6039         * windows-nat.c: Update.
6040
6041 2018-07-03  Tom Tromey  <tom@tromey.com>
6042
6043         * common/ptid.c (ptid_get_lwp): Remove.
6044         * common/ptid.h (ptid_get_lwp): Don't declare.
6045         * aarch64-linux-nat.c: Update.
6046         * ada-tasks.c: Update.
6047         * aix-thread.c: Update.
6048         * amd64-linux-nat.c: Update.
6049         * arm-linux-nat.c: Update.
6050         * corelow.c: Update.
6051         * fbsd-nat.c: Update.
6052         * fbsd-tdep.c: Update.
6053         * gnu-nat.c: Update.
6054         * i386-cygwin-tdep.c: Update.
6055         * i386-gnu-nat.c: Update.
6056         * i386-linux-nat.c: Update.
6057         * ia64-linux-nat.c: Update.
6058         * inf-ptrace.c: Update.
6059         * infrun.c: Update.
6060         * linux-fork.c: Update.
6061         * linux-nat.c: Update.
6062         * linux-tdep.c: Update.
6063         * linux-thread-db.c: Update.
6064         * mips-linux-nat.c: Update.
6065         * nat/aarch64-linux-hw-point.c: Update.
6066         * nat/aarch64-linux.c: Update.
6067         * nat/linux-btrace.c: Update.
6068         * nat/linux-osdata.c: Update.
6069         * nat/linux-procfs.c: Update.
6070         * nat/x86-linux-dregs.c: Update.
6071         * obsd-nat.c: Update.
6072         * ppc-fbsd-nat.c: Update.
6073         * ppc-linux-nat.c: Update.
6074         * procfs.c: Update.
6075         * python/py-infthread.c: Update.
6076         * ravenscar-thread.c: Update.
6077         * remote.c: Update.
6078         * s390-linux-nat.c: Update.
6079         * sol-thread.c: Update.
6080         * sol2-tdep.c: Update.
6081         * spu-linux-nat.c: Update.
6082         * x86-linux-nat.c: Update.
6083         * xtensa-linux-nat.c: Update.
6084
6085 2018-07-03  Tom Tromey  <tom@tromey.com>
6086
6087         * common/ptid.c (ptid_get_pid): Remove.
6088         * common/ptid.h (ptid_get_pid): Don't declare.
6089         * aarch64-linux-nat.c: Update.
6090         * ada-lang.c: Update.
6091         * aix-thread.c: Update.
6092         * alpha-bsd-nat.c: Update.
6093         * amd64-fbsd-nat.c: Update.
6094         * amd64-linux-nat.c: Update.
6095         * arm-linux-nat.c: Update.
6096         * arm-nbsd-nat.c: Update.
6097         * auxv.c: Update.
6098         * break-catch-syscall.c: Update.
6099         * breakpoint.c: Update.
6100         * bsd-uthread.c: Update.
6101         * corelow.c: Update.
6102         * ctf.c: Update.
6103         * darwin-nat.c: Update.
6104         * fbsd-nat.c: Update.
6105         * fbsd-tdep.c: Update.
6106         * gcore.c: Update.
6107         * gnu-nat.c: Update.
6108         * hppa-nbsd-nat.c: Update.
6109         * hppa-obsd-nat.c: Update.
6110         * i386-fbsd-nat.c: Update.
6111         * ia64-linux-nat.c: Update.
6112         * inf-ptrace.c: Update.
6113         * infcmd.c: Update.
6114         * inferior.c: Update.
6115         * inferior.h: Update.
6116         * inflow.c: Update.
6117         * infrun.c: Update.
6118         * linux-fork.c: Update.
6119         * linux-nat.c: Update.
6120         * linux-tdep.c: Update.
6121         * linux-thread-db.c: Update.
6122         * m68k-bsd-nat.c: Update.
6123         * mi/mi-interp.c: Update.
6124         * mi/mi-main.c: Update.
6125         * mips-linux-nat.c: Update.
6126         * mips-nbsd-nat.c: Update.
6127         * mips64-obsd-nat.c: Update.
6128         * nat/aarch64-linux-hw-point.c: Update.
6129         * nat/aarch64-linux.c: Update.
6130         * nat/linux-btrace.c: Update.
6131         * nat/linux-osdata.c: Update.
6132         * nat/linux-procfs.c: Update.
6133         * nat/x86-linux-dregs.c: Update.
6134         * nto-procfs.c: Update.
6135         * obsd-nat.c: Update.
6136         * ppc-linux-nat.c: Update.
6137         * ppc-nbsd-nat.c: Update.
6138         * ppc-obsd-nat.c: Update.
6139         * proc-service.c: Update.
6140         * procfs.c: Update.
6141         * python/py-inferior.c: Update.
6142         * python/py-infthread.c: Update.
6143         * ravenscar-thread.c: Update.
6144         * record.c: Update.
6145         * remote-sim.c: Update.
6146         * remote.c: Update.
6147         * rs6000-nat.c: Update.
6148         * s390-linux-nat.c: Update.
6149         * sh-nbsd-nat.c: Update.
6150         * sol-thread.c: Update.
6151         * sparc-nat.c: Update.
6152         * sparc64-tdep.c: Update.
6153         * spu-linux-nat.c: Update.
6154         * spu-tdep.c: Update.
6155         * target-debug.h: Update.
6156         * target.c: Update.
6157         * thread.c: Update.
6158         * tid-parse.c: Update.
6159         * tracefile-tfile.c: Update.
6160         * vax-bsd-nat.c: Update.
6161         * windows-nat.c: Update.
6162         * x86-linux-nat.c: Update.
6163         * x86-nat.c: Update.
6164
6165 2018-07-03  Tom Tromey  <tom@tromey.com>
6166
6167         * common/ptid.c (pid_to_ptid): Remove.
6168         * common/ptid.h (pid_to_ptid): Don't declare.
6169         * aix-thread.c: Update.
6170         * arm-linux-nat.c: Update.
6171         * common/ptid.c: Update.
6172         * common/ptid.h: Update.
6173         * corelow.c: Update.
6174         * ctf.c: Update.
6175         * darwin-nat.c: Update.
6176         * fbsd-nat.c: Update.
6177         * fork-child.c: Update.
6178         * gnu-nat.c: Update.
6179         * go32-nat.c: Update.
6180         * inf-ptrace.c: Update.
6181         * infcmd.c: Update.
6182         * inferior.c: Update.
6183         * infrun.c: Update.
6184         * linux-fork.c: Update.
6185         * linux-nat.c: Update.
6186         * nat/aarch64-linux-hw-point.c: Update.
6187         * nat/fork-inferior.c: Update.
6188         * nat/x86-linux-dregs.c: Update.
6189         * nto-procfs.c: Update.
6190         * obsd-nat.c: Update.
6191         * procfs.c: Update.
6192         * progspace.c: Update.
6193         * remote.c: Update.
6194         * rs6000-nat.c: Update.
6195         * s390-linux-nat.c: Update.
6196         * sol-thread.c: Update.
6197         * spu-linux-nat.c: Update.
6198         * target.c: Update.
6199         * top.c: Update.
6200         * tracefile-tfile.c: Update.
6201         * windows-nat.c: Update.
6202
6203 2018-07-03  Tom Tromey  <tom@tromey.com>
6204
6205         * common/ptid.h (ptid_build): Don't declare.
6206         * common/ptid.c (ptid_build): Remove.
6207         * aix-thread.c: Update.
6208         * bsd-kvm.c: Update.
6209         * bsd-uthread.c: Update.
6210         * common/agent.c: Update.
6211         * common/ptid.c: Update.
6212         * common/ptid.h: Update.
6213         * corelow.c: Update.
6214         * darwin-nat.c: Update.
6215         * fbsd-nat.c: Update.
6216         * gnu-nat.c: Update.
6217         * linux-fork.c: Update.
6218         * linux-nat.c: Update.
6219         * linux-thread-db.c: Update.
6220         * nat/linux-osdata.c: Update.
6221         * nat/linux-procfs.c: Update.
6222         * nto-procfs.c: Update.
6223         * obsd-nat.c: Update.
6224         * proc-service.c: Update.
6225         * procfs.c: Update.
6226         * ravenscar-thread.c: Update.
6227         * remote-sim.c: Update.
6228         * remote.c: Update.
6229         * sol-thread.c: Update.
6230         * target.c: Update.
6231         * windows-nat.c: Update.
6232
6233 2018-07-03  Tom Tromey  <tom@tromey.com>
6234
6235         * infrun.c (follow_exec): Use exit_inferior_silent.
6236         * inferior.c (exit_inferior_num_silent): Remove.
6237         * inferior.h (exit_inferior_num_silent): Don't declare.
6238
6239 2018-07-03  Tom Tromey  <tom@tromey.com>
6240
6241         PR cli/23340:
6242         * darwin-nat.c (darwin_attach_pid): Reset inferior and
6243         inferior_ptid on error.
6244
6245 2018-07-02  Maciej W. Rozycki  <macro@mips.com>
6246             Simon Marchi  <simon.marchi@polymtl.ca>
6247
6248         PR tdep/8282
6249         * disasm.h (gdb_disassembler): Add
6250         `m_disassembler_options_holder'. member
6251         * disasm.c (get_all_disassembler_options): New function.
6252         (gdb_disassembler::gdb_disassembler): Use it.
6253         (gdb_buffered_insn_length_init_dis): Likewise.
6254         (gdb_buffered_insn_length): Adjust accordingly.
6255         (set_disassembler_options): Handle options with arguments.
6256         (show_disassembler_options_sfunc): Likewise.  Add a leading new
6257         line if showing options with descriptions.
6258         (disassembler_options_completer): Adapt to using the
6259         `disasm_options_and_args_t' structure.
6260         * mips-tdep.c (mips_disassembler_options): New variable.
6261         (mips_disassembler_options_o32): Likewise.
6262         (mips_disassembler_options_n32): Likewise.
6263         (mips_disassembler_options_n64): Likewise.
6264         (gdb_print_insn_mips): Don't set `disassembler_options'.
6265         (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
6266         functions.
6267         (mips_gdbarch_init): Always set `gdbarch_print_insn' to
6268         `gdb_print_insn_mips'.  Set `gdbarch_disassembler_options',
6269         `gdbarch_disassembler_options_implicit' and
6270         `gdbarch_valid_disassembler_options'.
6271         * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
6272         `disasm_options_and_args_t' structure.
6273         * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
6274         method.
6275         (valid_disassembler_options): Switch from `disasm_options_t' to
6276         the `disasm_options_and_args_t' structure.
6277         * NEWS: Document `set disassembler-options' support for the MIPS
6278         target.
6279         * gdbarch.h: Regenerate.
6280         * gdbarch.c: Regenerate.
6281
6282 2018-07-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6283
6284         * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
6285
6286 2018-06-29  Joel Brobecker  <brobecker@adacore.com>
6287
6288         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
6289         parameter in call to amd64_target_description.
6290         * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
6291         * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
6292         (amd64fbsd_init_abi): Likewise.
6293         * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6294         * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
6295         * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
6296         * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
6297
6298 2018-06-29  Pedro Alves  <palves@redhat.com>
6299
6300         * gdb/amd64-tdep.h (amd64_create_target_description): Add
6301         "segments" parameter.
6302         * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
6303         (_initialize_amd64_tdep): Update call to
6304         amd64_create_target_description.
6305         (amd64_target_description): Add "segments" parameter.  Adjust
6306         the implementation to use it.
6307         * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
6308         call to amd64_create_target_description.
6309         * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
6310         * gdb/arch/amd64.h (amd64_create_target_description): Add
6311         "segments" register.
6312         * gdb/arch/amd64.c (amd64_create_target_description): Add
6313         "segments" parameter.  Call create_feature_i386_64bit_segments
6314         only if SEGMENTS is true.
6315         * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
6316         call to amd64_create_target_description.
6317
6318 2018-06-29  Pedro Alves  <palves@redhat.com>
6319
6320         * thread.c (thread_target_id_str): New, factored out from ...
6321         (print_thread_info_1): ... here.  Use it to compute the max
6322         "Target Id" column width.
6323
6324 2018-06-29  Pedro Alves  <palves@redhat.com>
6325
6326         * remote.c (remote_target::extra_thread_info): Delete
6327         'display_buf' and 'n' locals.  from the cache, regardless of
6328         packet mechanims is in use.  Use cache for qThreadExtra and qP
6329         methods too.
6330
6331 2018-06-29  Pedro Alves  <palves@redhat.com>
6332
6333         * blockframe.c (find_pc_sect_containing_function): New function.
6334         * breakpoint.c (print_breakpoint_location): Don't call
6335         find_pc_sect_function.
6336         * linespec.c (create_sals_line_offset): Record the location's
6337         symbol in the sal.
6338         * linespec.c (convert_address_location_to_sals): Fill in sal's
6339         symbol with find_pc_sect_containing_function.
6340         * symtab.c (find_function_start_sal): Rename to ...
6341         (find_function_start_sal_1): ... this.
6342         (find_function_start_sal): Reimplement as wrapper around
6343         find_function_start_sal_1, and use
6344         find_pc_sect_containing_function to fill in the sal's symbol.
6345         (find_function_start_sal(symbol*, bool)): Adjust.
6346         * symtab.h (find_pc_function, find_pc_sect_function): Adjust
6347         comments.
6348         (find_pc_sect_containing_function): Declare.
6349
6350 2018-06-29  Pedro Alves  <palves@redhat.com>
6351
6352         * inline-frame.c (stopped_by_user_bp_inline_frame): Return
6353         true if the the location has no symbol.
6354
6355 2018-06-28  Tom Tromey  <tom@tromey.com>
6356
6357         * NEWS: Mention --enable-codesign.
6358         * silent-rules.mk (ECHO_SIGN): New variable.
6359         * configure.ac: Add --enable-codesign.
6360         * configure: Rebuild.
6361         * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
6362         (gdb$(EXEEXT)): Optionally invoke codesign.
6363
6364 2018-06-28  Pedro Alves  <palves@redhat.com>
6365
6366         * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
6367         comments.
6368         (switch_to_thread_no_regs): Adjust comment.
6369         * infcmd.c (stop_pc): Delete.
6370         (post_create_inferior, info_program_command): Replace references
6371         to stop_pc with references to thread_info->suspend.stop_pc.
6372         * inferior.h (stop_pc): Delete declaration.
6373         * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
6374         (handle_inferior_event_1, handle_signal_stop)
6375         (process_event_stop_test, keep_going_stepped_thread)
6376         (handle_step_into_function, handle_step_into_function_backward)
6377         (print_stop_location): Replace references to stop_pc with
6378         references to thread_info->suspend.stop_pc.
6379         (struct infcall_suspend_state) <stop_pc>: Delete field.
6380         (save_infcall_suspend_state, restore_infcall_suspend_state):
6381         Remove references to inf_stat->stop_pc.
6382         * linux-fork.c (fork_load_infrun_state): Likewise.
6383         * record-btrace.c (record_btrace_set_replay): Likewise.
6384         * record-full.c (record_full_goto_entry): Likewise.
6385         * remote.c (print_one_stopped_thread): Likewise.
6386         * target.c (target_resume): Extend comment.
6387         * thread.c (set_executing_thread): New.
6388         (set_executing): Use it.
6389         (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
6390         Remove references to stop_pc.
6391
6392 2018-06-28  Pedro Alves  <palves@redhat.com>
6393
6394         * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
6395         Moving fetching stop_pc until after ecs->event_thread is refreshed.
6396
6397 2018-06-28  Tom Tromey  <tom@tromey.com>
6398
6399         * coffread.c (coff_symfile_finish): Update.
6400         * xcoffread.c (xcoff_symfile_finish): Update.
6401         * elfread.c (elf_symfile_finish): Update.
6402         * symfile.h (dwarf2_free_objfile): Don't declare.
6403         * dwarf2read.c (_initialize_dwarf2_read): Use
6404         register_objfile_data_with_cleanup.
6405         (dwarf2_free_objfile): Now static.  Change signature.
6406
6407 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
6408
6409         * symfile.c (add_symbol_file_command, _initialize_symfile): Add
6410         option "-o" to add-symbol-file-load to add an offset to each
6411         section's load address.
6412         * symfile.c (set_objfile_default_section_offset): New function.
6413
6414 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
6415
6416         * symfile.c (add_symbol_file_command): Make sure that sections
6417         with the same name are sorted in the same order.
6418
6419 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
6420
6421         * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
6422         require the second argument.  If omitted, load sections at the
6423         addresses specified in the file.
6424
6425 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
6426
6427         * symfile.c (symbol_file_command, symbol_file_add_main_1)
6428         (_initialize_symfile): Add option "-o" to symbol-file to add an
6429         offset to each section of the symbol file.
6430
6431 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
6432
6433         * MAINTAINERS (Write After Approval): Add Petr Tesarik.
6434
6435 2018-06-27  Tom Tromey  <tom@tromey.com>
6436
6437         * stack.c (_initialize_stack): Update "func" help text.
6438
6439 2018-06-27  Tom Tromey  <tom@tromey.com>
6440
6441         * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
6442         std::vector.
6443         (unwind_infopy_str, pyuw_create_unwind_info)
6444         (unwind_infopy_add_saved_register, pyuw_sniffer)
6445         (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
6446         Update.
6447         (struct saved_reg): Add constructor.
6448         <value>: Now a gdbpy_ref<>.
6449
6450 2018-06-27  Tom Tromey  <tom@tromey.com>
6451
6452         * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
6453
6454 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
6455
6456         * gdb-gdb.py.in: Format using autopep8.
6457
6458 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
6459
6460         * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
6461         (type_lookup_function): Recognize CORE_ADDR values.
6462
6463 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
6464
6465         * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
6466         print tag_name.
6467
6468 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
6469
6470         * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
6471         <__lt__>: Add.
6472
6473 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
6474
6475         * gdb-gdb.py: Move to...
6476         * gdb-gdb.py.in: ... here.
6477         * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
6478         * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
6479         dependencies.
6480         (distclean): Remove gdb-gdb.py when cleaning.
6481         (gdb-gdb.py, gdb-gdb.gdb): New rules.
6482         * configure: Re-generate.
6483
6484 2018-06-27  Pedro Alves  <palves@redhat.com>
6485
6486         * proc-service.c (get_ps_regcache): New.
6487         (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6488         (ps_lsetfpregs): Use it.
6489
6490 2018-06-27  Omair Javaid  <omair.javaid@linaro.org>
6491
6492         PR gdb/21695
6493         * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
6494         (dwarf_decode_lines_1): Adjust.
6495
6496 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
6497
6498         * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
6499         override.
6500         <info_proc>: Likewise.
6501
6502 2018-06-26  Joel Brobecker  <brobecker@adacore.com>
6503
6504         * windows-nat.c (do_windows_fetch_inferior_registers): Rename
6505         to windows_fetch_one_register, and only handle the case of
6506         fetching one register.  Move the code that reloads the context
6507         and iterates over all registers if R is negative to...
6508         (windows_nat_target::fetch_registers): ... here.
6509         (do_windows_store_inferior_registers): Rename to
6510         windows_store_one_register, and only handle the case of storing
6511         one register.  Move the code that handles the case where r is
6512         negative to...
6513         (windows_nat_target::store_registers) ... here.
6514
6515 2018-06-26  Tom Tromey  <tom@tromey.com>
6516
6517         PR rust/22574:
6518         * typeprint.c (whatis_exp): Allow ptype/o for Rust.
6519         * rust-lang.c (rust_print_struct_def): Add podata parameter.
6520         Update.
6521         (rust_internal_print_type): Add podata parameter.
6522         (rust_print_type): Update.
6523
6524 2018-06-26  Tom Tromey  <tom@tromey.com>
6525
6526         * typeprint.h (struct print_offset_data) <update, finish,
6527         maybe_print_hole>: New methods.
6528         <indentation>: New constant.
6529         * typeprint.c (print_offset_data::indentation): Define.
6530         (print_offset_data::maybe_print_hole, print_offset_data::update)
6531         (print_offset_data::finish): Move from c-typeprint.c and rename.
6532         * c-typeprint.c (OFFSET_SPC_LEN): Remove.
6533         (print_spaces_filtered_with_print_options): Update.
6534         (c_print_type_union_field_offset, maybe_print_hole)
6535         (c_print_type_struct_field_offset): Move to typeprint.c and
6536         rename.
6537         (c_type_print_base_struct_union): Update.
6538
6539 2018-06-25  Pedro Alves  <palves@redhat.com>
6540
6541         * gdbthread.h (thread_info_ref, delete_thread)
6542         (delete_thread_silent, first_thread_of_inferior)
6543         (any_thread_of_inferior, switch_to_thread)
6544         (enable_thread_stack_temporaries)
6545         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6546         (get_last_thread_stack_temporary)
6547         (value_in_thread_stack_temporaries, can_access_registers_thread):
6548         Spell out "struct thread_info" instead of just "thread_info".
6549         * inferior.h (notice_new_inferior): Likewise.
6550
6551 2018-06-25  Pedro Alves  <palves@redhat.com>
6552
6553         * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6554         pass thread_info pointer to delete_thread.
6555         (windows_nat_target::detach): Pass inferior pointer to
6556         detach_inferior.
6557         * aix-thread.c (sync_threadlists): Pass thread_info pointer to
6558         delete_thread.
6559         * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
6560         * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
6561         and pass a thread_info pointer to delete_thread.
6562         * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
6563         pass thread_info pointer to delete_thread.
6564         * go32-nat.c (go32_nat_target::mourn_inferior): Remove
6565         delete_thread_silent call.
6566         * procfs.c (procfs_target::detach): Pass inferior pointer to
6567         detach_inferior.
6568         (procfs_target::wait): Pass thread_info pointer to delete_thread.
6569         * remote-sim.c (gdbsim_target::mourn_inferior): Remove
6570         delete_thread_silent call.
6571         * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6572         pass thread_info pointer to delete_thread.
6573         (windows_nat_target::detach): Pass inferior pointer to
6574         delete_inferior.
6575
6576 2018-06-22  Alan Hayward  <alan.hayward@arm.com>
6577
6578         * regcache.c (readable_regcache::read_part): Fix asserts.
6579         (reg_buffer::raw_collect_part): New function.
6580         (regcache::write_part): Fix asserts.
6581         (reg_buffer::raw_supply_part): New function.
6582         (regcache::transfer_regset_register): New helper function.
6583         (regcache::transfer_regset): Call new functions.
6584         (regcache_supply_regset): Use gdb_byte*.
6585         (regcache::supply_regset): Likewise.
6586         (regcache_collect_regset): Likewise.
6587         (regcache::collect_regset): Likewise.
6588         * regcache.h (reg_buffer::raw_collect_part): New declaration.
6589         (reg_buffer::raw_supply_part): Likewise.
6590         (regcache::transfer_regset_register): Likewise.
6591         (regcache::transfer_regset): Use gdb_byte*.
6592
6593 2018-06-22  Alan Hayward  <alan.hayward@arm.com>
6594
6595         * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
6596
6597 2018-06-21  Pedro Alves  <palves@redhat.com>
6598
6599         * ada-lang.h (ada_get_task_number): Take a thread_info pointer
6600         instead of a ptid_t.  All callers adjusted.
6601         * ada-tasks.c (ada_get_task_number): Likewise.  All callers
6602         adjusted.
6603         (print_ada_task_info, display_current_task_id, task_command_1):
6604         Adjust.
6605         * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
6606         inferior_thread.
6607         (breakpoint_kind): Adjust.
6608         (remove_breakpoints_pid): Rename to ...
6609         (remove_breakpoints_inf): ... this.  Adjust to take an inferior
6610         pointer.  All callers adjusted.
6611         (bpstat_clear_actions): Use inferior_thread.
6612         (get_bpstat_thread): New.
6613         (bpstat_do_actions): Use it.
6614         (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
6615         to take a thread_info pointer.  All callers adjusted.
6616         (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
6617         (breakpoint_re_set_thread): Use inferior_thread.
6618         * breakpoint.h (struct inferior): Forward declare.
6619         (bpstat_stop_status): Update.
6620         (remove_breakpoints_pid): Delete.
6621         (remove_breakpoints_inf): New.
6622         * bsd-uthread.c (bsd_uthread_target::wait)
6623         (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
6624         * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
6625         (maint_btrace_packet_history_cmd)
6626         (maint_btrace_clear_packet_history_cmd): Adjust.
6627         (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
6628         inferior_thread.
6629         * cli/cli-interp.c: Include "inferior.h".
6630         * common/refcounted-object.h (struct
6631         refcounted_object_ref_policy): New.
6632         * compile/compile-object-load.c: Include gdbthread.h.
6633         (store_regs): Use inferior_thread.
6634         * corelow.c (core_target::close): Use current_inferior.
6635         (core_target_open): Adjust to use first_thread_of_inferior and use
6636         the current inferior.
6637         * ctf.c (ctf_target::close): Adjust to use current_inferior.
6638         * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
6639         <thread>: ... this new field.  All references adjusted.
6640         (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
6641         Take a thread_info pointer instead of a ptid_t.
6642         * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
6643         (dummy_frame_discard, register_dummy_frame_dtor): Take a
6644         thread_info pointer instead of a ptid_t.
6645         * elfread.c: Include "inferior.h".
6646         (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
6647         Use inferior_thread.
6648         * eval.c (evaluate_subexp): Likewise.
6649         * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
6650         inferior_thread.
6651         * gdb_proc_service.h (struct thread_info): Forward declare.
6652         (struct ps_prochandle) <ptid>: Delete, replaced by ...
6653         <thread>: ... this new field.  All references adjusted.
6654         * gdbarch.h, gdbarch.c: Regenerate.
6655         * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
6656         'thread' parameter.  All implementations and callers adjusted.
6657         * gdbthread.h (thread_info) <set_running>: New method.
6658         (delete_thread, delete_thread_silent): Take a thread_info pointer
6659         instead of a ptid.
6660         (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
6661         (first_thread_of_process): Delete, replaced by ...
6662         (first_thread_of_inferior): ... this new function.  All callers
6663         adjusted.
6664         (any_live_thread_of_process): Delete, replaced by ...
6665         (any_live_thread_of_inferior): ... this new function.  All callers
6666         adjusted.
6667         (switch_to_thread, switch_to_no_thread): Declare.
6668         (is_executing): Delete.
6669         (enable_thread_stack_temporaries): Update comment.
6670         <enable_thread_stack_temporaries>: Take a thread_info pointer
6671         instead of a ptid_t.  Incref the thread.
6672         <~enable_thread_stack_temporaries>: Decref the thread.
6673         <m_ptid>: Delete
6674         <m_thr>: New.
6675         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6676         (get_last_thread_stack_temporary)
6677         (value_in_thread_stack_temporaries, can_access_registers_thread):
6678         Take a thread_info pointer instead of a ptid_t.  All callers
6679         adjusted.
6680         * infcall.c (get_call_return_value): Use inferior_thread.
6681         (run_inferior_call): Work with thread pointers instead of ptid_t.
6682         (call_function_by_hand_dummy): Work with thread pointers instead
6683         of ptid_t.  Use thread_info_ref.
6684         * infcmd.c (proceed_thread_callback): Access thread's state
6685         directly.
6686         (ensure_valid_thread, ensure_not_running): Use inferior_thread,
6687         access thread's state directly.
6688         (continue_command): Use inferior_thread.
6689         (info_program_command): Use find_thread_ptid and access thread
6690         state directly.
6691         (proceed_after_attach_callback): Use thread state directly.
6692         (notice_new_inferior): Take a thread_info pointer instead of a
6693         ptid_t.  All callers adjusted.
6694         (exit_inferior): Take an inferior pointer instead of a pid.  All
6695         callers adjusted.
6696         (exit_inferior_silent): New.
6697         (detach_inferior): Delete.
6698         (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
6699         (gdb_inferior_id_to_pid, in_inferior_list): Delete.
6700         (detach_inferior_command, kill_inferior_command): Use
6701         find_inferior_id instead of valid_gdb_inferior_id and
6702         gdb_inferior_id_to_pid.
6703         (inferior_command): Use inferior and thread pointers.
6704         * inferior.h (struct thread_info): Forward declare.
6705         (notice_new_inferior): Take a thread_info pointer instead of a
6706         ptid_t.  All callers adjusted.
6707         (detach_inferior): Delete declaration.
6708         (exit_inferior, exit_inferior_silent): Take an inferior pointer
6709         instead of a pid.  All callers adjusted.
6710         (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
6711         (valid_gdb_inferior_id): Delete.
6712         * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
6713         (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
6714         (struct displaced_step_inferior_state) <pid>: Delete, replaced by
6715         ...
6716         <inf>: ... this new field.
6717         <step_ptid>: Delete, replaced by ...
6718         <step_thread>: ... this new field.
6719         (get_displaced_stepping_state): Take an inferior pointer instead
6720         of a pid.  All callers adjusted.
6721         (displaced_step_in_progress_any_inferior): Adjust.
6722         (displaced_step_in_progress_thread): Take a thread pointer instead
6723         of a ptid_t.  All callers adjusted.
6724         (displaced_step_in_progress, add_displaced_stepping_state): Take
6725         an inferior pointer instead of a pid.  All callers adjusted.
6726         (get_displaced_step_closure_by_addr): Adjust.
6727         (remove_displaced_stepping_state): Take an inferior pointer
6728         instead of a pid.  All callers adjusted.
6729         (displaced_step_prepare_throw, displaced_step_prepare)
6730         (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
6731         All callers adjusted.
6732         (start_step_over): Adjust.
6733         (infrun_thread_ptid_changed): Remove bit updating ptids in the
6734         displaced step queue.
6735         (do_target_resume): Adjust.
6736         (fetch_inferior_event): Use inferior_thread.
6737         (context_switch, get_inferior_stop_soon): Take an
6738         execution_control_state pointer instead of a ptid_t.  All callers
6739         adjusted.
6740         (switch_to_thread_cleanup): Delete.
6741         (stop_all_threads): Use scoped_restore_current_thread.
6742         * inline-frame.c: Include "gdbthread.h".
6743         (inline_state) <inline_state>: Take a thread pointer instead of a
6744         ptid_t.  All callers adjusted.
6745         <ptid>: Delete, replaced by ...
6746         <thread>: ... this new field.
6747         (find_inline_frame_state): Take a thread pointer instead of a
6748         ptid_t.  All callers adjusted.
6749         (skip_inline_frames, step_into_inline_frame)
6750         (inline_skipped_frames, inline_skipped_symbol): Take a thread
6751         pointer instead of a ptid_t.  All callers adjusted.
6752         * inline-frame.h (skip_inline_frames, step_into_inline_frame)
6753         (inline_skipped_frames, inline_skipped_symbol): Likewise.
6754         * linux-fork.c (delete_checkpoint_command): Adjust to use thread
6755         pointers directly.
6756         * linux-nat.c (get_detach_signal): Likewise.
6757         * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
6758         (thread_db_notice_clone): Adjust.
6759         (thread_db_find_new_threads_silently)
6760         (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
6761         a thread pointer instead of a ptid_t.  All callers adjusted.
6762         * mi/mi-cmd-var.c: Include "inferior.h".
6763         (mi_cmd_var_update_iter): Update to use thread pointers.
6764         * mi/mi-interp.c (mi_new_thread): Update to use the thread's
6765         inferior directly.
6766         (mi_output_running_pid, mi_inferior_count): Delete, bits factored
6767         out to ...
6768         (mi_output_running): ... this new function.
6769         (mi_on_resume_1): Adjust to use it.
6770         (mi_user_selected_context_changed): Adjust to use inferior_thread.
6771         * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
6772         directly.
6773         (interrupt_thread_callback): : Adjust to use thread and inferior
6774         pointers.
6775         * proc-service.c: Include "gdbthread.h".
6776         (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
6777         * progspace-and-thread.c: Include "inferior.h".
6778         * progspace.c: Include "inferior.h".
6779         * python/py-exitedevent.c (create_exited_event_object): Adjust to
6780         hold a reference to an inferior_object.
6781         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
6782         inferior_thread.
6783         * python/py-inferior.c (struct inferior_object): Give the type a
6784         tag name instead of a typedef.
6785         (python_on_normal_stop): No need to check if the current thread is
6786         listed.
6787         (inferior_to_inferior_object): Change return type to
6788         inferior_object.  All callers adjusted.
6789         (find_thread_object): Delete, bits factored out to ...
6790         (thread_to_thread_object): ... this new function.
6791         * python/py-infthread.c (create_thread_object): Use
6792         inferior_to_inferior_object.
6793         (thpy_is_stopped): Use thread pointer directly.
6794         (gdbpy_selected_thread): Use inferior_thread.
6795         * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
6796         field, replaced with ...
6797         <thread>: ... this new field.  All users adjusted.
6798         (btpy_insn_or_gap_new): Drop const.
6799         (btpy_list_new): Take a thread pointer instead of a ptid_t.  All
6800         callers adjusted.
6801         * python/py-record.c: Include "gdbthread.h".
6802         (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
6803         a ptid_t.  All callers adjusted.
6804         (gdbpy_current_recording): Use inferior_thread.
6805         * python/py-record.h (recpy_record_object) <ptid>: Delete
6806         field, replaced with ...
6807         <thread>: ... this new field.  All users adjusted.
6808         (recpy_element_object) <ptid>: Delete
6809         field, replaced with ...
6810         <thread>: ... this new field.  All users adjusted.
6811         (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
6812         a ptid_t.  All callers adjusted.
6813         * python/py-threadevent.c: Include "gdbthread.h".
6814         (get_event_thread): Use thread_to_thread_object.
6815         * python/python-internal.h (struct inferior_object): Forward
6816         declare.
6817         (find_thread_object, find_inferior_object): Delete declarations.
6818         (thread_to_thread_object, inferior_to_inferior_object): New
6819         declarations.
6820         * record-btrace.c: Include "inferior.h".
6821         (require_btrace_thread): Use inferior_thread.
6822         (record_btrace_frame_sniffer)
6823         (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
6824         (get_thread_current_frame): Use scoped_restore_current_thread and
6825         switch_to_thread.
6826         (get_thread_current_frame): Use thread pointer directly.
6827         (record_btrace_replay_at_breakpoint): Use thread's inferior
6828         pointer directly.
6829         * record-full.c: Include "inferior.h".
6830         * regcache.c: Include "gdbthread.h".
6831         (get_thread_arch_regcache): Use the inferior's address space
6832         directly.
6833         (get_thread_regcache, registers_changed_thread): New.
6834         * regcache.h (get_thread_regcache(thread_info *thread)): New
6835         overload.
6836         (registers_changed_thread): New.
6837         (remote_target) <remote_detach_1>: Swap order of parameters.
6838         (remote_add_thread): <remote_add_thread>: Return the new thread.
6839         (get_remote_thread_info(ptid_t)): New overload.
6840         (remote_target::remote_notice_new_inferior): Use thread pointers
6841         directly.
6842         (remote_target::process_initial_stop_replies): Use
6843         thread_info::set_running.
6844         (remote_target::remote_detach_1, remote_target::detach)
6845         (extended_remote_target::detach): Adjust.
6846         * stack.c (frame_show_address): Use inferior_thread.
6847         * target-debug.h (target_debug_print_thread_info_pp): New.
6848         * target-delegates.c: Regenerate.
6849         * target.c (default_thread_address_space): Delete.
6850         (memory_xfer_partial_1): Use current_inferior.
6851         (target_detach): Use current_inferior.
6852         (target_thread_address_space): Delete.
6853         (generic_mourn_inferior): Use current_inferior.
6854         * target.h (struct target_ops) <thread_address_space>: Delete.
6855         (target_thread_address_space): Delete.
6856         * thread.c (init_thread_list): Use ALL_THREADS_SAFE.  Use thread
6857         pointers directly.
6858         (delete_thread_1, delete_thread, delete_thread_silent): Take a
6859         thread pointer instead of a ptid_t.  Adjust all callers.
6860         (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
6861         (first_thread_of_process): Delete, replaced by ...
6862         (first_thread_of_inferior): ... this new function.  All callers
6863         adjusted.
6864         (any_thread_of_process): Rename to ...
6865         (any_thread_of_inferior): ... this, and take an inferior pointer.
6866         (any_live_thread_of_process): Rename to ...
6867         (any_live_thread_of_inferior): ... this, and take an inferior
6868         pointer.
6869         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6870         (value_in_thread_stack_temporaries)
6871         (get_last_thread_stack_temporary): Take a thread pointer instead
6872         of a ptid_t.  Adjust all callers.
6873         (thread_info::set_running): New.
6874         (validate_registers_access): Use inferior_thread.
6875         (can_access_registers_ptid): Rename to ...
6876         (can_access_registers_thread): ... this, and take a thread
6877         pointer.
6878         (print_thread_info_1): Adjust to compare thread pointers instead
6879         of ptids.
6880         (switch_to_no_thread, switch_to_thread): Make extern.
6881         (scoped_restore_current_thread::~scoped_restore_current_thread):
6882         Use m_thread pointer directly.
6883         (scoped_restore_current_thread::scoped_restore_current_thread):
6884         Use inferior_thread.
6885         (thread_command): Use thread pointer directly.
6886         (thread_num_make_value_helper): Use inferior_thread.
6887         * top.c (execute_command): Use inferior_thread.
6888         * tui/tui-interp.c: Include "inferior.h".
6889         * varobj.c (varobj_create): Use inferior_thread.
6890         (value_of_root_1): Use find_thread_global_id instead of
6891         global_thread_id_to_ptid.
6892
6893 2018-06-21  Alan Hayward  <alan.hayward@arm.com>
6894
6895         * regcache.c (readable_regcache::read_part): Avoid memcpy when
6896         possible.
6897         (regcache::write_part): Likewise.
6898         (readable_regcache::cooked_read_part): Update comment.
6899         (readable_regcache::cooked_write_part): Likewise.
6900         * regcache.h: (readable_regcache::read_part): Likewise.
6901         (regcache::write_part): Likewise.
6902
6903 2018-06-21  Richard Bunt  <richard.bunt@arm.com>
6904             Dirk Schubert  <dirk.schubert@arm.com>
6905
6906         * aarch64-linux-nat.c (post_attach): New.
6907         (aarch64_linux_nat_target::post_attach): Override post_attach to
6908         record the number of hardware debug registers.
6909
6910 2018-06-20  Tom Tromey  <tom@tromey.com>
6911
6912         * python/py-param.c (add_setshow_generic): Make parameters const.
6913         (parmpy_init): Update.
6914
6915 2018-06-20  Simon Marchi  <simon.marchi@polymtl.ca>
6916
6917         * regcache.h (regcache_cooked_read_ftype): Rename to...
6918         (register_read_ftype): ...this, change type to function_view.
6919         (class reg_buffer) <save>: Remove src parameter.
6920         (readonly_detached_regcache) <readonly_detached_regcache>: Make
6921         parameter non-const in first overload.  Remove src parameter in
6922         second overload.
6923         * regcache.c (do_cooked_read): Remove.
6924         (readonly_detached_regcache::readonly_detached_regcache): Make
6925         parameter non-const, adjust call to other constructor.
6926         (reg_buffer::save): Remove src parameter.
6927         * frame.c (do_frame_register_read): Remove.
6928         (frame_save_as_regcache): Use lambda function.
6929         * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
6930         parameter to ppu2spu_data *.
6931         (ppu2spu_sniffer): Use lambda function.
6932
6933 2018-06-20  Simon Marchi  <simon.marchi@polymtl.ca>
6934
6935         * record-full.c (record_full_target::insert_breakpoint): Remove
6936         "struct" keyword, add const.
6937
6938 2018-06-19  Simon Marchi  <simon.marchi@ericsson.com>
6939
6940         * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
6941         PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
6942         * configure.ac: Remove AC_PREREQ, add missing quoting.
6943         * gnulib/configure.ac: Modernize usage of
6944         AC_INIT/AM_INIT_AUTOMAKE.  Remove AC_PREREQ.
6945         * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
6946         (AUTOMAKE_VERSION): Bump to 1.15.1.
6947         * configure: Re-generate.
6948         * config.in: Re-generate.
6949         * aclocal.m4: Re-generate.
6950         * gnulib/aclocal.m4: Re-generate.
6951         * gnulib/config.in: Re-generate.
6952         * gnulib/configure: Re-generate.
6953         * gnulib/import/Makefile.in: Re-generate.
6954
6955 2018-06-19  Pedro Alves  <palves@redhat.com>
6956
6957         * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
6958         (lookup_minimal_symbol_by_pc_section): ... here with
6959         gdb_assert_not_reached added.
6960
6961 2018-06-19  Pedro Alves  <palves@redhat.com>
6962
6963         * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
6964         parameter with a block parameter.  Compare location's block symbol
6965         with the frame's block instead of addresses.
6966         (skip_inline_frames): Pass the current block instead of the
6967         frame's address.  Break out as soon as we determine the frame
6968         should not be skipped.
6969
6970 2018-06-18  Tom Tromey  <tom@tromey.com>
6971
6972         * solib-aix.c (solib_aix_get_section_offsets): Return
6973         unique_xmalloc_ptr.
6974         (solib_aix_solib_create_inferior_hook): Update.
6975
6976 2018-06-18  Tom Tromey  <tom@tromey.com>
6977
6978         * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
6979
6980 2018-06-18  Tom Tromey  <tom@tromey.com>
6981
6982         * solib-frv.c (frv_relocate_main_executable): Use
6983         unique_xmalloc_ptr.
6984         * solib-dsbt.c (dsbt_relocate_main_executable): Use
6985         unique_xmalloc_ptr.
6986
6987 2018-06-18  Tom Tromey  <tom@tromey.com>
6988
6989         * objfiles.h (inhibit_section_map_updates): Update.
6990         (resume_section_map_updates, resume_section_map_updates_cleanup):
6991         Remove.
6992         * solib-svr4.c (svr4_handle_solib_event): Update.
6993         * objfiles.c (inhibit_section_map_updates): Return
6994         scoped_restore_tmpl<int>.
6995         (resume_section_map_updates, resume_section_map_updates_cleanup):
6996         Remove.
6997
6998 2018-06-18  Tom Tromey  <tom@tromey.com>
6999
7000         * valprint.h (read_string): Update.
7001         * valprint.c (read_string): Change type of "buffer".
7002         (val_print_string): Update.
7003         * python/py-value.c (valpy_string): Update.
7004         * language.h (struct language_defn) <la_get_string>: Change
7005         type of "buffer".
7006         (default_get_string, c_get_string): Update.
7007         * language.c (default_get_string): Change type of "buffer".
7008         * guile/scm-value.c (gdbscm_value_to_string): Update.
7009         * c-lang.c (c_get_string): Change type of "buffer".
7010
7011 2018-06-18  Tom Tromey  <tom@tromey.com>
7012
7013         * ser-mingw.c (struct pipe_state_destroyer): New.
7014         (pipe_state_up): New typedef.
7015         (cleanup_pipe_state): Remove.
7016         (pipe_windows_open): Use pipe_state_up.  Don't release argv.
7017
7018 2018-06-18  Tom Tromey  <tom@tromey.com>
7019
7020         * rust-lang.h (rust_yyerror): Don't declare.
7021         * rust-lang.c (rust_language_defn): Update.
7022         * rust-exp.y (yyerror): Now static.
7023         * parse.c (parse_exp_in_context_1): Update.
7024         * p-lang.h (p_yyerror): Don't declare.
7025         * p-lang.c (p_language_defn): Update.
7026         * p-exp.y (yyerror): Now static.
7027         * opencl-lang.c (opencl_language_defn): Update.
7028         * objc-lang.c (objc_language_defn): Update.
7029         * m2-lang.h (m2_yyerror): Don't declare.
7030         * m2-lang.c (m2_language_defn): Update.
7031         * m2-exp.y (yyerror): Now static.
7032         * language.h (struct language_defn) <la_error>: Remove.
7033         * language.c (unk_lang_error): Remove.
7034         (unknown_language_defn, auto_language_defn): Remove.
7035         * go-lang.h (go_yyerror): Don't declare.
7036         * go-lang.c (go_language_defn): Update.
7037         * go-exp.y (yyerror): Now static.
7038         * f-lang.h (f_yyerror): Don't declare.
7039         * f-lang.c (f_language_defn): Update.
7040         * f-exp.y (yyerror): Now static.
7041         * d-lang.h (d_yyerror): Don't declare.
7042         * d-lang.c (d_language_defn): Update.
7043         * d-exp.y (yyerror): Now static.
7044         * c-lang.h (c_yyerror): Don't declare.
7045         * c-lang.c (c_language_defn, cplus_language_defn)
7046         (asm_language_defn, minimal_language_defn): Update.
7047         * c-exp.y (yyerror): Now static.
7048         * ada-lang.h (ada_yyerror): Don't declare.
7049         * ada-lang.c (ada_language_defn): Update.
7050         * ada-exp.y (yyerror): Now static.
7051
7052 2018-06-18  Alan Hayward  <alan.hayward@arm.com>
7053
7054         * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
7055         (store_sveregs_to_thread): Likewise.
7056         (aarch64_linux_fetch_inferior_registers): Check for SVE.
7057         (aarch64_linux_store_inferior_registers): Likewise.
7058         * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
7059         function.
7060         (aarch64_sve_regs_copy_to_regcache): Likewise.
7061         (aarch64_sve_regs_copy_from_regcache): Likewise.
7062         * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
7063         declaration.
7064         (aarch64_sve_regs_copy_to_regcache): Likewise.
7065         (aarch64_sve_regs_copy_from_regcache): Likewise.
7066         (sve_context): Structure from Linux headers.
7067         (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
7068         (SVE_SIG_ZREG_SIZE): Likewise.
7069         (SVE_SIG_PREG_SIZE): Likewise.
7070         (SVE_SIG_FFR_SIZE): Likewise.
7071         (SVE_SIG_REGS_OFFSET): Likewise.
7072         (SVE_SIG_ZREGS_OFFSET): Likewise.
7073         (SVE_SIG_ZREG_OFFSET): Likewise.
7074         (SVE_SIG_ZREGS_SIZE): Likewise.
7075         (SVE_SIG_PREGS_OFFSET): Likewise.
7076         (SVE_SIG_PREG_OFFSET): Likewise.
7077         (SVE_SIG_PREGS_SIZE): Likewise.
7078         (SVE_SIG_FFR_OFFSET): Likewise.
7079         (SVE_SIG_REGS_SIZE): Likewise.
7080         (SVE_SIG_CONTEXT_SIZE): Likewise.
7081         (SVE_PT_REGS_MASK): Likewise.
7082         (SVE_PT_REGS_FPSIMD): Likewise.
7083         (SVE_PT_REGS_SVE): Likewise.
7084         (SVE_PT_VL_INHERIT): Likewise.
7085         (SVE_PT_VL_ONEXEC): Likewise.
7086         (SVE_PT_REGS_OFFSET): Likewise.
7087         (SVE_PT_FPSIMD_OFFSET): Likewise.
7088         (SVE_PT_FPSIMD_SIZE): Likewise.
7089         (SVE_PT_SVE_ZREG_SIZE): Likewise.
7090         (SVE_PT_SVE_PREG_SIZE): Likewise.
7091         (SVE_PT_SVE_FFR_SIZE): Likewise.
7092         (SVE_PT_SVE_FPSR_SIZE): Likewise.
7093         (SVE_PT_SVE_FPCR_SIZE): Likewise.
7094         (__SVE_SIG_TO_PT): Likewise.
7095         (SVE_PT_SVE_OFFSET): Likewise.
7096         (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
7097         (SVE_PT_SVE_ZREG_OFFSET): Likewise.
7098         (SVE_PT_SVE_ZREGS_SIZE): Likewise.
7099         (SVE_PT_SVE_PREGS_OFFSET): Likewise.
7100         (SVE_PT_SVE_PREG_OFFSET): Likewise.
7101         (SVE_PT_SVE_PREGS_SIZE): Likewise.
7102         (SVE_PT_SVE_FFR_OFFSET): Likewise.
7103         (SVE_PT_SVE_FPSR_OFFSET): Likewise.
7104         (SVE_PT_SVE_FPCR_OFFSET): Likewise.
7105         (SVE_PT_SVE_SIZE): Likewise.
7106         (SVE_PT_SIZE): Likewise.
7107         (HAS_SVE_STATE): New define.
7108
7109 2018-06-18  Alan Hayward  <alan.hayward@arm.com>
7110
7111         * nat/aarch64-sve-linux-sigcontext.h: New file.
7112         * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
7113         new files.
7114         (SVE_VQ_MIN): Likewise.
7115         (SVE_VQ_MAX): Likewise.
7116         (SVE_VL_MIN): Likewise.
7117         (SVE_VL_MAX): Likewise.
7118         (SVE_NUM_ZREGS): Likewise.
7119         (SVE_NUM_PREGS): Likewise.
7120         (sve_vl_valid): Likewise.
7121         (struct user_sve_header): Likewise.
7122
7123 2018-06-16  Andrew Burgess  <andrew.burgess@embecosm.com>
7124             Richard Bunt <Richard.Bunt@arm.com>
7125
7126         * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
7127         was requested by GDB.
7128
7129 2018-06-15  Tom de Vries  <tdevries@suse.de>
7130
7131         * MAINTAINERS (Write After Approval): Add Tom de Vries.
7132
7133 2018-06-14  Simon Marchi  <simon.marchi@polymtl.ca>
7134
7135         * gnulib/update-gnulib.sh: Print expected versions of
7136         autoconf/aclocal.
7137
7138 2018-06-14  Simon Marchi  <simon.marchi@ericsson.com>
7139
7140         * arch-utils.c (default_type_align): Use type_length_units.
7141         * gdbtypes.c (type_align): Use type_length_units.
7142
7143 2018-06-14  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7144
7145         * cli/cli-script.c (_initialize_cli_script): Fix online documentation
7146         of 'define' command.
7147
7148 2018-06-14  Tom de Vries  <tdevries@suse.de>
7149
7150         PR cli/22573
7151         * infcmd.c (print_return_value_1): Use get_user_print_options instead of
7152         get_no_prettyformat_print_options.
7153
7154 2018-06-13  Simon Marchi  <simon.marchi@ericsson.com>
7155
7156         * sparc-nat.h: Include target.h.
7157         * sparc64-linux-nat.c (class sparc64_linux_nat_target)
7158         <fetch_registers>: Remove this argument in function call.
7159         <store_registers>: Remove this argument in function call, remove
7160         extra semicolon.
7161         <low_forget_process>: Call sparc64_forget_process instead of
7162         sparc_forget_process.
7163
7164 2018-06-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7165
7166         * procfs.c (_initialize_procfs): Use add_inf_child_target.
7167         (procfs_target::make_corefile_notes): Adjust to new
7168         target_read_alloc return type.
7169
7170 2018-06-12  Andrew Burgess  <andrew.burgess@embecosm.com>
7171             Stephen Roberts  <stephen.roberts@arm.com>
7172
7173         PR gdb/22882
7174         * infrun.c (fetch_inferior_event): If GDB is not proceeding then
7175         run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
7176         Move should_notify_stop local into more inner scope.
7177
7178 2018-06-12  Andrew Burgess  <andrew.burgess@embecosm.com>
7179             Stephen Roberts  <stephen.roberts@arm.com>
7180
7181         PR gdb/22882
7182         * infrun.c (resume_1): Add call to mark_async_event_handler.
7183
7184 2018-06-12  Andrew Burgess  <andrew.burgess@embecosm.com>
7185
7186         * infrun.c (do_target_wait): Change old version of $pc printed.
7187
7188 2018-06-11  Simon Marchi  <simon.marchi@ericsson.com>
7189
7190         * dwarf2read.c (read_index_from_section): Rename to...
7191         (read_gdb_index_from_section): ... this, update all callers.
7192         (dwarf2_read_index): Rename to...
7193         (dwarf2_read_gdb_index): ... this, update all callers.
7194
7195 2018-06-11  John David Anglin  <danglin@gcc.gnu.org>
7196
7197         * gdb/hppa-linux-nat.c
7198         (hppa_linux_nat_target::fetch_inferior_registers): Rename to
7199         hppa_linux_nat_target::fetch_registers.
7200
7201 2018-06-11  Alan Hayward  <alan.hayward@arm.com>
7202
7203         * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
7204         * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
7205         (AARCH64_DWARF_SVE_FFR): Likewise.
7206         (AARCH64_DWARF_SVE_P0): Likewise.
7207         (AARCH64_DWARF_SVE_Z0): Likewise.
7208
7209 2018-06-11  Alan Hayward  <alan.hayward@arm.com>
7210
7211         * common/common-regcache.h (raw_compare): New function.
7212         * regcache.c (regcache::raw_compare): Likewise.
7213         * regcache.h (regcache::raw_compare): New declaration.
7214
7215 2018-06-11  Alan Hayward  <alan.hayward@arm.com>
7216
7217         * common/common-regcache.h (reg_buffer_common): New structure.
7218         * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
7219         (reg_buffer::raw_supply): Likewise.
7220         (reg_buffer::raw_supply_integer): Likewise.
7221         (reg_buffer::raw_supply_zeroed): Likewise.
7222         (reg_buffer::raw_collect): Likewise.
7223         (reg_buffer::raw_collect_integer): Likewise.
7224         * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
7225         (reg_buffer::raw_supply): Likewise.
7226         (reg_buffer::raw_supply_integer): Likewise.
7227         (reg_buffer::raw_supply_zeroed): Likewise.
7228         (reg_buffer::raw_collect): Likewise.
7229         (reg_buffer::raw_collect_integer): Likewise.
7230
7231 2018-06-10  Tom Tromey  <tom@tromey.com>
7232
7233         * remote.c (stop_reply_p): Remove typedef.  Don't declare queue.
7234         (class remote_state) <stop_reply_queue>: Now std::vector.
7235         (remote_state::~remote_state)
7236         (remote_target::stop_reply_queue_length): Update.
7237         (struct queue_iter_param, remove_child_of_pending_fork)
7238         (struct check_pending_event_prevents_wildcard_vcont_callback_data)
7239         (check_pending_event_prevents_wildcard_vcont_callback)
7240         (remove_stop_reply_for_inferior)
7241         (remove_stop_reply_of_remote_state)
7242         (remote_notif_remove_once_on_match)
7243         (stop_reply_match_ptid_and_ws)
7244         (remote_kill_child_of_pending_fork): Remove.
7245         (remote_target::remove_new_fork_children)
7246         (remote_target::check_pending_events_prevent_wildcard_vcont)
7247         (remote_target::discard_pending_stop_replies)
7248         (remote_target::discard_pending_stop_replies_in_queue)
7249         (remote_target::remote_notif_remove_queued_reply)
7250         (remote_target::queued_stop_reply)
7251         (remote_target::push_stop_reply, remote_target::peek_stop_reply)
7252         (remote_target::wait, remote_target::kill_new_fork_children)
7253         (remote_target::async): Update.
7254
7255 2018-06-10  Tom Tromey  <tom@tromey.com>
7256
7257         * record-full.c (record_full_arch_list_cleanups): Remove.
7258         (record_full_message): Use try/catch.
7259         (record_full_wait_cleanups): Remove.
7260         (record_full_wait_1): Use try/catch.
7261         (record_full_restore): Likewise.
7262
7263 2018-06-10  Tom Tromey  <tom@tromey.com>
7264
7265         * record-full.c (record_full_breakpoint_p): Remove typedef.  Don't
7266         declare VEC.  Add constructor.
7267         <in_target_beneath>: Now bool.
7268         (record_full_breakpoints): Now a std::vector, static.
7269         (record_full_sync_record_breakpoints)
7270         (record_full_init_record_breakpoints)
7271         (record_full_target::insert_breakpoint)
7272         (record_full_target::remove_breakpoint): Update.  Don't use XNEW.
7273
7274 2018-06-10  Simon Marchi  <simon.marchi@polymtl.ca>
7275
7276         * dwarf2read.c (process_cu_includes): Remove struct keyword.
7277         * serial.c (serial_interface_lookup): Remove struct keyword.
7278
7279 2018-06-10  Tom Tromey  <tom@tromey.com>
7280
7281         * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
7282         method.
7283         * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
7284         a method.
7285         * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
7286         method.
7287         * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
7288         "beneath" as a method.
7289         * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
7290         Use "beneath" as a method.
7291
7292 2018-06-10  Tom Tromey  <tom@tromey.com>
7293
7294         * tracefile.c (struct trace_file_writer_deleter): New.
7295         <operator()>: Rename from trace_file_writer_xfree.
7296         (trace_file_writer_up): New typedef.
7297         (tsave_command, trace_save_tfile, trace_save_ctf): Update.
7298
7299 2018-06-09  Simon Marchi  <simon.marchi@ericsson.com>
7300
7301         * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
7302         <m_registers, m_register_status>: Change type to
7303         std::unique_ptr.
7304         * regcache.c (reg_buffer::reg_buffer): Use new instead of
7305         XCNEWVEC.
7306
7307 2018-06-09  Simon Marchi  <simon.marchi@ericsson.com>
7308
7309         * common/common-regcache.h (enum register_status): Add
7310         underlying type "signed char".
7311         * regcache.h (reg_buffer) <m_register_status>: Change type to
7312         register_status *.
7313         * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
7314         register_status instead of signed char.
7315         (reg_buffer::save): Use REG_UNKNOWN instead of 0.
7316         (reg_buffer::get_register_status): Remove cast.
7317         (readable_regcache::raw_read): Remove cast.
7318         (readable_regcache::cooked_read): Remove cast.
7319
7320 2018-06-09  Tom Tromey  <tom@tromey.com>
7321
7322         * source.c (reverse_search_command, forward_search_command): Use
7323         scoped_fd.
7324
7325 2018-06-09  Tom Tromey  <tom@tromey.com>
7326
7327         * serial.c (serial_ops_p): Remove typedef.  Don't declare VEC.
7328         (serial_ops_list): Now static, std::vector.
7329         (serial_interface_lookup, serial_add_interface): Update.
7330
7331 2018-06-09  Tom Tromey  <tom@tromey.com>
7332
7333         * dwarf2read.c (process_cu_includes): Update.
7334         (process_full_comp_unit): Update.
7335         * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
7336         std::vector.
7337
7338 2018-06-08  Paul Koning  <paul_koning@dell.com>
7339
7340         PR gdb/23252
7341
7342         * python/python.c (do_start_initialization):
7343         Avoid call to internal Python API.
7344         (init__gdb_module): New function.
7345
7346 2018-06-08  Gary Benson <gbenson@redhat.com>
7347
7348         * linux-thread-db.c (valprint.h): New include.
7349         (struct check_thread_db_info): New structure.
7350         (check_thread_db_on_load, tdb_testinfo): New static globals.
7351         (check_thread_db, check_thread_db_callback): New functions.
7352         (try_thread_db_load_1): Run integrity checks if requested.
7353         (maintenance_check_libthread_db): New function.
7354         (_initialize_thread_db): Register "maint check libthread-db"
7355         and "maint set/show check-libthread-db".
7356         * NEWS: Mention the above new commands.
7357
7358 2018-06-08  Tom Tromey  <tom@tromey.com>
7359
7360         * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
7361         now a method.
7362
7363 2018-06-08  Tom Tromey  <tom@tromey.com>
7364
7365         * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
7366
7367 2018-06-08  Tom Tromey  <tom@tromey.com>
7368
7369         * common/btrace-common.h (struct btrace_data): Add constructor,
7370         destructor, move assignment operator.
7371         <empty, clear, fini>: New methods.
7372         <format>: Initialize.
7373         (btrace_data_init, btrace_data_fini, btrace_data_clear)
7374         (btrace_data_empty): Don't declare.
7375         * common/btrace-common.c (btrace_data_init): Remove.
7376         (btrace_data::fini): Rename from btrace_data_fini.
7377         (btrace_data::empty): Rename from btrace_data_empty.
7378         (btrace_data::clear): Rename from btrace_data_clear.  Return
7379         bool.
7380         * btrace.h (make_cleanup_btrace_data): Don't declare.
7381         * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
7382         (parse_xml_btrace): Update.
7383         (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
7384         (maint_btrace_clear_packet_history_cmd): Update.
7385
7386 2018-06-07  Pedro Alves  <palves@redhat.com>
7387
7388         * target.h (target_ops) <beneath>: Now a method.  All references
7389         updated.
7390         (class target_stack): New.
7391         * target.c (g_target_stack): New.
7392         (g_current_top_target): Delete.
7393         (current_top_target): Get the top target out of g_target_stack.
7394         (target_stack::push, target_stack::unpush): New.
7395         (push_target, unpush_target): Reimplement.
7396         (target_is_pushed): Reimplement in terms of g_target_stack.
7397         (target_ops::beneath, target_stack::find_beneath): New.
7398
7399 2018-06-07  Pedro Alves  <palves@redhat.com>
7400
7401         * target.h (find_target_beneath): Delete declaration.
7402         * target.c (find_target_beneath): Delete definition.
7403         * aix-thread.c: All callers of find_target_beneath adjusted to
7404         call target_ops::beneath instead.
7405         * bsd-uthread.c: Likewise.
7406         * linux-thread-db.c: Likewise.
7407         * ravenscar-thread.c: Likewise.
7408         * sol-thread.c: Likewise.
7409         * spu-multiarch.c: Likewise.
7410
7411 2018-06-07  Pedro Alves  <palves@redhat.com>
7412
7413         * target.h (target_ops) <beneath>: Now a method.  All references
7414         updated.
7415         (target_ops) <m_beneath>: New.
7416         * target.c (target_ops::beneath): New.
7417         * corelow.c: Adjust all references to target_ops::beneath.
7418         * linux-thread-db.c: Likewise.
7419         * make-target-delegates: Likewise.
7420         * record-btrace.c: Likewise.
7421         * record-full.c: Likewise.
7422         * remote.c: Likewise.
7423         * target.c: Likewise.
7424         * target-delegates.c: Regenerate.
7425
7426 2018-06-07  Pedro Alves  <palves@redhat.com>
7427
7428         * target.h (target_stack): Delete.
7429         (current_top_target): Declare function.
7430         * target.c (target_stack): Delete.
7431         (g_current_top_target): New.
7432         (current_top_target): New function.
7433         * auxv.c: Use current_top_target instead of target_stack
7434         throughout.
7435         * avr-tdep.c: Likewise.
7436         * breakpoint.c: Likewise.
7437         * corefile.c: Likewise.
7438         * elfread.c: Likewise.
7439         * eval.c: Likewise.
7440         * exceptions.c: Likewise.
7441         * frame.c: Likewise.
7442         * gdbarch-selftests.c: Likewise.
7443         * gnu-v3-abi.c: Likewise.
7444         * ia64-tdep.c: Likewise.
7445         * ia64-vms-tdep.c: Likewise.
7446         * infcall.c: Likewise.
7447         * infcmd.c: Likewise.
7448         * infrun.c: Likewise.
7449         * linespec.c: Likewise.
7450         * linux-tdep.c: Likewise.
7451         * minsyms.c: Likewise.
7452         * ppc-linux-nat.c: Likewise.
7453         * ppc-linux-tdep.c: Likewise.
7454         * procfs.c: Likewise.
7455         * regcache.c: Likewise.
7456         * remote.c: Likewise.
7457         * rs6000-tdep.c: Likewise.
7458         * s390-linux-nat.c: Likewise.
7459         * s390-tdep.c: Likewise.
7460         * solib-aix.c: Likewise.
7461         * solib-darwin.c: Likewise.
7462         * solib-dsbt.c: Likewise.
7463         * solib-spu.c: Likewise.
7464         * solib-svr4.c: Likewise.
7465         * solib-target.c: Likewise.
7466         * sparc-tdep.c: Likewise.
7467         * sparc64-tdep.c: Likewise.
7468         * spu-tdep.c: Likewise.
7469         * symfile.c: Likewise.
7470         * symtab.c: Likewise.
7471         * target-descriptions.c: Likewise.
7472         * target-memory.c: Likewise.
7473         * target.c: Likewise.
7474         * target.h: Likewise.
7475         * tracefile-tfile.c: Likewise.
7476         * tracepoint.c: Likewise.
7477         * valops.c: Likewise.
7478         * valprint.c: Likewise.
7479         * value.c: Likewise.
7480         * windows-tdep.c: Likewise.
7481         * mi/mi-main.c: Likewise.
7482
7483 2018-06-07  Tom Tromey  <tom@tromey.com>
7484
7485         * valprint.h (build_address_symbolic): Declare.
7486         * printcmd.c (print_address_symbolic): Update.
7487         (build_address_symbolic): Change "name" and "filename" to
7488         std::string.
7489         * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7490         Update.
7491         * defs.h (build_address_symbolic): Remove declaration.
7492
7493 2018-06-07  Alan Hayward  <alan.hayward@arm.com>
7494
7495         * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
7496         (aarch64_vnv_type): Add function.
7497         (aarch64_pseudo_register_name): Add V regs for SVE.
7498         (aarch64_pseudo_register_type): Likewise.
7499         (aarch64_pseudo_register_reggroup_p): Likewise.
7500         (aarch64_pseudo_read_value_2): Use V0 offset for SVE
7501         (aarch64_pseudo_read_value): Add V regs for SVE.
7502         (aarch64_pseudo_write_2): Use V0 offset for SVE
7503         (aarch64_pseudo_write): Add V regs for SVE.
7504         * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
7505
7506 2018-06-06  Sergio Durigan Junior  <sergiodj@redhat.com>
7507
7508         * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
7509         (sve_vl_from_vq): Likewise.
7510
7511 2018-06-05  Tom Tromey  <tom@tromey.com>
7512
7513         * cli/cli-cmds.c (show_version): Update.
7514         * top.c (print_gdb_version): Add "interactive" parameter.
7515         Update.
7516         * main.c (captured_main_1): Update.
7517         * top.h (print_gdb_version): Add "interactive" parameter and a
7518         comment.
7519
7520 2018-06-05  David Malcolm  <dmalcolm@redhat.com>
7521
7522         * common/enum-flags.h: Add trailing semicolon to example in
7523         comment.
7524
7525 2018-06-05  Tom Tromey  <tom@tromey.com>
7526
7527         PR cli/12326:
7528         * NEWS: Add entry about pager.
7529         * utils.c (pagination_disabled_for_command): New global.
7530         (prompt_for_continue): Allow "c" response to prompt.
7531         (reinitialize_more_filter): Clear
7532         pagination_disabled_for_command.
7533         (fputs_maybe_filtered): Check pagination_disabled_for_command.
7534
7535 2018-06-04  Tom Tromey  <tom@tromey.com>
7536
7537         * ada-lang.h (ada_lookup_symbol_list): Update.
7538         * ada-lang.c (resolve_subexp): Update.
7539         (symbols_are_identical_enums): Change type of syms.  Remove nsyms
7540         parameter.
7541         (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
7542         (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
7543         results parameter to std::vector.
7544         (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
7545         Update.
7546         * ada-exp.y (block_lookup): Update.
7547         (select_possible_type_sym): Change type of syms.  Remove nsyms
7548         parameter.
7549         (write_var_or_type, write_name_assoc): Update.
7550
7551 2018-06-04  Joel Brobecker  <brobecker@adacore.com>
7552
7553         * windows-nat.c (windows_nat_target::xfer_partial): Return
7554         TARGET_XFER_E_IO if we need to delegate to the target beneath
7555         but BENEATH is NULL.
7556
7557 2018-06-04  Simon Marchi  <simon.marchi@ericsson.com>
7558
7559         * Makefile.in (config.status): Add configure.nat as a
7560         dependency.
7561
7562 2018-06-04  Tom Tromey  <tom@tromey.com>
7563
7564         * cp-name-parser.y (cpname_state): Add method declarations.
7565         (HANDLE_QUAL): Update.
7566         (cpname_state::d_grab, cpname_state::fill_comp)
7567         (cpname_state::make_operator, cpname_state::make_dtor)
7568         (cpname_state::make_builtin_type, cpname_state::make_name)
7569         (cpname_state::d_qualify, cpname_state::d_int_type)
7570         (cpname_state::d_unary, cpname_state::d_binary): Now methods.
7571         (%union): Move earlier.
7572
7573 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
7574
7575         * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
7576
7577 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
7578
7579         * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
7580         (aarch64_pseudo_write_1): Likewise.
7581         (aarch64_pseudo_read_value): Use helper.
7582         (aarch64_pseudo_write): Likewise.
7583
7584 2018-06-04  Pedro Alves  <palves@redhat.com>
7585
7586         * darwin-nat.c (darwin_ops): Delete.
7587         (darwin_attach_pid): Use get_native_target.
7588
7589 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
7590
7591         * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
7592         * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
7593
7594 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
7595
7596         * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
7597         * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
7598         (aarch64_gdbarch_init): Check for SVE.
7599         * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
7600
7601 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
7602
7603         * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
7604         * aarch64-tdep.h (aarch64_read_description): Likewise.
7605         * arch/aarch64.c (aarch64_create_target_description): Likewise.
7606         * arch/aarch64.h (aarch64_create_target_description): Likewise.
7607         * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
7608         * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
7609         * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
7610
7611 2018-06-02  Simon Marchi  <simon.marchi@ericsson.com>
7612
7613         * value.c (value_fetch_lazy_bitfield): New.
7614         (value_fetch_lazy_memory): New.
7615         (value_fetch_lazy_register): New.
7616         (value_fetch_lazy): Factor out to smaller functions.
7617
7618 2018-06-01  Tom Tromey  <tom@tromey.com>
7619
7620         * cp-name-parser.y (backslashable, represented): Now const.
7621
7622 2018-06-01  Tom Tromey  <tom@tromey.com>
7623
7624         * cp-name-parser.y: Include parser-defs.h.
7625         (parser_fprintf): Remove declaration.
7626
7627 2018-06-01  Tom Tromey  <tom@tromey.com>
7628
7629         * cp-name-parser.y: Use %pure-parser, %lex-param, and
7630         %parse-param.
7631         (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
7632         (global_result): Remove globals.
7633         (struct cpname_state): New.
7634         (yyparse): Don't declare.
7635         (yylex, yyerror): Move declarations after %union.
7636         (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
7637         (make_name): Add state parameter.
7638         Update all callers.
7639         (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
7640         parameter.
7641         (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
7642         Update.
7643         (yylex): Add lvalp, state parameters.
7644         (yyerror): Add state parameter.
7645         (cp_demangled_name_to_comp): Update.
7646
7647 2018-06-01  Tom Tromey  <tom@tromey.com>
7648
7649         * cp-name-parser.y (parser_fprintf): Declare.
7650         (GDB_YY_REMAP_PREFIX): Define.
7651         Include yy-remap.h.  Don't redefine yy* identifiers.
7652
7653 2018-06-01  Tom Tromey  <tom@tromey.com>
7654
7655         * python/py-type.c (typy_legacy_template_argument): Update.
7656         * cp-support.h (cp_demangled_name_to_comp): Update.
7657         * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
7658         parameter to be a "std::string *".
7659         (main): Update.
7660
7661 2018-06-01  H.J. Lu  <hongjiu.lu@intel.com>
7662
7663         * ada-lex.l: Include "diagnostics.h" instead of
7664         "common/diagnostics.h".
7665         * unittests/environ-selftests.c: Likewise.
7666         * common/diagnostics.h: Moved to ../include.
7667
7668 2018-06-01  Joel Brobecker  <brobecker@adacore.com>
7669
7670         * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
7671         to language_mode_manual while calling breakpoint_re_set_one.
7672
7673 2018-06-01  Tom Tromey  <tom@tromey.com>
7674
7675         * valops.c (value_cast_structs, destructor_name_p): Update.
7676         * symtab.c (gdb_mangle_name): Update.
7677         * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
7678         Update.
7679         * p-valprint.c (pascal_object_is_vtbl_ptr_type)
7680         (pascal_object_print_value_fields, pascal_object_print_value):
7681         Update.
7682         * p-typeprint.c (pascal_type_print_derivation_info): Update.
7683         * linespec.c (find_methods): Update.
7684         * gdbtypes.h (type_name_no_tag): Remove.
7685         (type_name_or_error): Rename from type_name_no_tag_or_error.
7686         * gdbtypes.c (type_name_no_tag): Remove.
7687         (type_name_or_error): Rename from type_name_no_tag_or_error.
7688         (lookup_struct_elt_type, check_typedef): Update.
7689         * expprint.c (print_subexp_standard): Update.
7690         * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
7691         * d-namespace.c (d_lookup_nested_symbol): Update.
7692         * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
7693         (cp_print_class_member): Update.
7694         * cp-namespace.c (cp_lookup_nested_symbol): Update.
7695         * completer.c (add_struct_fields): Update.
7696         * c-typeprint.c (cp_type_print_derivation_info)
7697         (c_type_print_varspec_prefix, c_type_print_base_struct_union):
7698         Update.
7699         * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
7700         (ada_prefer_type, ada_is_exception_sym): Update.
7701
7702 2018-06-01  Tom Tromey  <tom@tromey.com>
7703
7704         * valops.c (enum_constant_from_type, value_namespace_elt)
7705         (value_maybe_namespace_elt): Update.
7706         * valarith.c (find_size_for_pointer_math): Update.
7707         * target-descriptions.c (make_gdb_type): Update.
7708         * symmisc.c (print_symbol): Update.
7709         * stabsread.c (define_symbol, read_type)
7710         (complain_about_struct_wipeout, add_undefined_type)
7711         (cleanup_undefined_types_1): Update.
7712         * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
7713         (rust_range_type_p, val_print_struct, rust_print_struct_def)
7714         (rust_internal_print_type, rust_composite_type)
7715         (rust_evaluate_funcall, rust_evaluate_subexp)
7716         (rust_inclusive_range_type_p): Update.
7717         * python/py-type.c (typy_get_tag): Update.
7718         * p-typeprint.c (pascal_type_print_base): Update.
7719         * mdebugread.c (parse_symbol, parse_type): Update.
7720         * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
7721         Update.
7722         * guile/scm-type.c (gdbscm_type_tag): Update.
7723         * go-lang.c (sixg_string_p): Update.
7724         * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
7725         Update.
7726         * gdbtypes.h (struct main_type) <tag_name>: Remove.
7727         (TYPE_TAG_NAME): Remove.
7728         * gdbtypes.c (type_name_no_tag): Simplify.
7729         (check_typedef, check_types_equal, recursive_dump_type)
7730         (copy_type_recursive, arch_composite_type): Update.
7731         * f-typeprint.c (f_type_print_base): Update.  Print "Type" prefix
7732         in summary mode when needed.
7733         * eval.c (evaluate_funcall): Update.
7734         * dwarf2read.c (fixup_go_packaging, read_structure_type)
7735         (process_structure_scope, read_enumeration_type)
7736         (read_namespace_type, read_module_type, determine_prefix): Update.
7737         * cp-support.c (inspect_type): Update.
7738         * coffread.c (process_coff_symbol, decode_base_type): Update.
7739         * c-varobj.c (c_is_path_expr_parent): Update.
7740         * c-typeprint.c (c_type_print_base_struct_union): Update.
7741         (c_type_print_base_1): Update.  Print struct/class/union/enum in
7742         summary when using C language.
7743         * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
7744         (gen_maybe_namespace_elt): Update.
7745         * ada-lang.c (ada_type_name): Simplify.
7746         (empty_record, ada_template_to_fixed_record_type_1)
7747         (template_to_static_fixed_type)
7748         (to_record_with_fixed_variant_part, ada_check_typedef): Update.
7749
7750 2018-06-01  Tom Tromey  <tom@tromey.com>
7751
7752         * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
7753         c_print_type.
7754         * c-typeprint.c (c_print_type_1): Add "language" parameter.
7755         (c_print_type): Update.
7756         (c_print_type): New overload.
7757         (c_type_print_varspec_prefix, c_type_print_args)
7758         (c_type_print_varspec_suffix, c_print_type_no_offsets)
7759         (c_type_print_base_struct_union, c_type_print_base_1)
7760         (cp_type_print_method_args): Add "language" parameter.
7761         (c_type_print_base): Update.
7762         * c-lang.h (c_print_type): Add new overload.
7763
7764 2018-06-01  Tom Tromey  <tom@tromey.com>
7765
7766         * typeprint.h (c_type_print_varspec_suffix): Don't declare.
7767         * c-typeprint.c (c_type_print_varspec_suffix): Now static.
7768
7769 2018-06-01  Alan Hayward  <alan.hayward@arm.com>
7770
7771         * aarch64-tdep.c (aarch64_sve_register_names): New const
7772         var.
7773         * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
7774         (AARCH64_SVE_Z_REGS_NUM): New define.
7775         (AARCH64_SVE_P_REGS_NUM): Likewise.
7776         (AARCH64_SVE_NUM_REGS): Likewise.
7777
7778 2018-05-31  Uros Bizjak  <ubizjak@gmail.com>
7779
7780         * nat/linux-ptrace.h [__alpha__]
7781         (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
7782         definitions.
7783
7784 2018-05-31  Maciej W. Rozycki  <macro@mips.com>
7785
7786         * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
7787         the endianness selected.
7788         * NEWS: Document `set endian auto' mode operation update.
7789
7790 2018-05-31  Alan Hayward  <alan.hayward@arm.com>
7791
7792         * Makefile.in: Add new header.
7793         * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
7794         (sve_vl_from_vg): Likewise.
7795         (sve_vq_from_vl): Likewise.
7796         (sve_vl_from_vq): Likewise.
7797         (sve_vq_from_vg): Likewise.
7798         (sve_vg_from_vq): Likewise.
7799         * configure.nat: Add new c file.
7800         * nat/aarch64-sve-linux-ptrace.c: New file.
7801         * nat/aarch64-sve-linux-ptrace.h: New file.
7802
7803 2018-05-31  Alan Hayward  <alan.hayward@arm.com>
7804
7805         * aarch64-linux-nat.c (aarch64_linux_read_description):
7806         Add parmeter zero.
7807         * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7808         Likewise.
7809         * aarch64-tdep.c (tdesc_aarch64_list): Add.
7810         (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
7811         (aarch64_gdbarch_init): Add parmeter zero.
7812         * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
7813         * arch/aarch64.c (aarch64_create_target_description): Check VQ.
7814         * arch/aarch64.h (aarch64_create_target_description): Add VQ.
7815         parmeter.
7816         * doc/gdb.texinfo: Describe SVE feature
7817         * features/aarch64-sve.c: New file.
7818
7819 2018-05-31  Omair Javaid  <omair.javaid@linaro.org>
7820
7821         PR gdb/23210
7822         * gdbarch.sh (significant_addr_bit): Default to zero when
7823         not set by target architecture.
7824         * gdbarch.c: Re-generated.
7825         * utils.c (address_significant): Update.
7826
7827 2018-05-30  Joel Brobecker  <brobecker@adacore.com>
7828
7829         * stack.c (func_command): Remove trailing newline in call to error.
7830
7831 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7832
7833         * regcache.h (regcache_raw_collect): Remove, update callers to
7834         use regcache::raw_collect.
7835         * regcache.c (regcache_raw_collect): Remove.
7836
7837 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7838
7839         * regcache.h (regcache_raw_supply): Remove, update callers to
7840         use detached_regcache::raw_supply.
7841         * regcache.c (regcache_raw_supply): Remove.
7842
7843 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7844
7845         * regcache.h (regcache_cooked_write_part): Remove, update
7846         callers to use regcache::cooked_write_part.
7847         * regcache.c (regcache_cooked_write_part): Remove.
7848
7849 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7850
7851         * regcache.h (regcache_cooked_read_part): Remove, update callers
7852         to use readable_regcache::cooked_read_part.
7853         * regcache.c (regcache_cooked_read_part): Remove.
7854
7855 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7856
7857         * regcache.h (regcache_cooked_read_value): Remove, update
7858         callers to use readable_regcache::cooked_read_value.
7859         * regcache.c (regcache_cooked_read_value): Remove.
7860
7861 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7862
7863         * regcache.h (regcache_cooked_write): Remove, update callers to
7864         use regcache::cooked_write.
7865         * regcache.c (regcache_cooked_write): Remove.
7866
7867 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7868
7869         * regcache.h (regcache_invalidate): Remove, update callers to
7870         use detached_regcache::invalidate instead.
7871         * regcache.c (regcache_invalidate): Remove.
7872
7873 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7874
7875         * regcache.h (regcache_raw_write_part): Remove, update callers
7876         to use regcache::raw_write_part instead.
7877         * regcache.c (regcache_raw_write_part): Remove.
7878
7879 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7880
7881         * regcache.h (regcache_raw_read_part): Remove, update callers to
7882         use readable_regcache::raw_read_part instead.
7883         * regcache.c (regcache_raw_read_part): Remove.
7884
7885 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7886
7887         * regcache.h (regcache_cooked_read): Remove, update callers to
7888         use readable_regcache::cooked_read instead.
7889         * regcache.c (regcache_cooked_read): Remove.
7890
7891 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7892
7893         * regcache.h (regcache_raw_write): Remove, update callers to use
7894         regcache::raw_write instead.
7895         * regcache.c (regcache_raw_write): Remove.
7896
7897 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7898
7899         * regcache.h (regcache_raw_read): Remove, update callers to use
7900         readable_regcache::raw_read instead.
7901         * regcache.c (regcache_raw_read): Remove.
7902
7903 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7904
7905         * regcache.h (regcache_raw_update): Remove, update callers to
7906         use readable_regcache::raw_update instead.
7907         * regcache.c (regcache_raw_update): Remove.
7908
7909 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7910
7911         * regcache.h (regcache_register_status): Remove, update callers
7912         to use reg_buffer::get_register_status directly instead.
7913         * regcache.c (regcache_register_status): Remove.
7914
7915 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7916
7917         * regcache.h (regcache_get_ptid): Remove, update all callers to
7918         call regcache::ptid instead.
7919         * regcache.c (regcache_get_ptid): Remove.
7920
7921 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7922
7923         * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
7924
7925 2018-05-30  Pedro Alves  <palves@redhat.com>
7926
7927         * common/common-exceptions.h (exception_rethrow): Use
7928         ATTRIBUTE_NORETURN.
7929
7930 2018-05-29  Simon Marchi  <simon.marchi@polymtl.ca>
7931
7932         * breakpoint.c (print_solib_event, check_status_catch_solib):
7933         Remove struct keyword in range-based for loops.
7934         * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
7935         * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
7936         Likewise.
7937         * linespec.c (find_superclass_methods, search_minsyms_for_name):
7938         Likewise.
7939         * symfile.c (addr_info_make_relative): Likewise.
7940         * thread.c (value_in_thread_stack_temporaries): Likewise.
7941
7942 2018-06-12  Weimin Pan  <weimin.pan@oracle.com>
7943
7944         PR gdb/16841
7945         * valops.c (value_struct_elt_for_reference): Call check_typedef on
7946         aggregate type to get its real type before accessing it.
7947
7948 2018-05-29  Weimin Pan  <weimin.pan@oracle.com>
7949
7950         * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
7951         * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
7952         * coff-pe-read.c (add_pe_forwarded_sym): Replace
7953         lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
7954         * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
7955         * jit.c (jit_breakpoint_re_set_internal): Likewise.
7956         * printcmd.c (info_address_command): Likewise.
7957
7958 2018-05-29  Tom Tromey  <tom@tromey.com>
7959
7960         * windows-nat.c (handle_exception): Update fall-through comment.
7961
7962 2018-05-29  Tom Tromey  <tom@tromey.com>
7963
7964         * progspace.h (so_list_ptr): Remove typedef.  Don't declare VEC.
7965         (struct program_space) <added_solibs>: Now a std::vector.
7966         * breakpoint.c (print_solib_event): Update.
7967         (check_status_catch_solib): Update.
7968         * progspace.c (clear_program_space_solib_cache): Update.
7969         * solib.c (update_solib_list): Update.
7970
7971 2018-05-29  Tom Tromey  <tom@tromey.com>
7972
7973         * python/py-type.c (typy_richcompare): Update.
7974         * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
7975         * gdbtypes.h (types_deeply_equal): Return bool.
7976         (types_equal): Likewise.
7977         * gdbtypes.c (type_equality_entry_d): Remove typedef.  Don't
7978         declare VEC.
7979         (check_types_equal): Change worklist to std::vector.  Return
7980         bool.
7981         (struct type_equality_entry): Add constructor.
7982         (compare_maybe_null_strings): Return bool.
7983         (check_types_worklist): Return bool.  Change worklist to
7984         std::vector.
7985         (types_deeply_equal): Use std::vector.
7986         (types_equal): Return bool.
7987         (compare_maybe_null_strings): Simplify.
7988
7989 2018-05-29  Tom Tromey  <tom@tromey.com>
7990
7991         * record-btrace.c (tp_t): Remove typedef.  Don't declare VEC.
7992
7993 2018-05-29  Tom Tromey  <tom@tromey.com>
7994
7995         * objc-lang.h: Don't include cp-support.h.
7996         * common/gdb_vecs.h (const_char_ptr): Remove typedef.  Don't
7997         declare VEC.
7998
7999 2018-05-27  Tom Tromey  <tom@tromey.com>
8000
8001         * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
8002
8003 2018-05-25  Tom Tromey  <tom@tromey.com>
8004
8005         * value.c (value::location): Initialize.
8006
8007 2018-05-25  Tom Tromey  <tom@tromey.com>
8008
8009         * dbxread.c (init_bincl_list): Remove.
8010         (bincl_list): Now a std::vector.
8011         (bincls_allocated, next_bincl): Remove.
8012         (free_bincl_list, do_free_bincl_list_cleanup)
8013         (make_cleanup_free_bincl_list): Remove.
8014         (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
8015         unique_xmalloc_ptr.
8016         (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
8017         (struct header_file_location): Add constructor.
8018         (add_bincl_to_list): Remove.
8019
8020 2018-05-25  Tom Tromey  <tom@tromey.com>
8021
8022         * tui/tui.c (tui_enable): Update.
8023         * mi/mi-interp.c (mi_interp::init): Update.
8024         * interps.h (class interp) <name>: New method.
8025         <m_name>: Rename from name.
8026         (~scoped_restore_interp): Update.
8027         * interps.c (interp::interp): Update.
8028         (interp_add, interp_set, interp_lookup_existing)
8029         (current_interp_named_p): Update.
8030
8031 2018-05-25  Tom Tromey  <tom@tromey.com>
8032
8033         * interps.c (interp_name): Remove.
8034         * mi/mi-interp.c (mi_interp::init): Update.
8035         * interps.h (interp_name): Remove.
8036         (~scoped_restore_interp): Update.
8037         * tui/tui.c (tui_enable): Update.
8038
8039 2018-05-25  Tom Tromey  <tom@tromey.com>
8040
8041         * utils.c (fputs_maybe_filtered): Update.
8042         * linespec.c (decode_line_full): Update.
8043         * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
8044         (mi_print_breakpoint_for_event, mi_solib_loaded)
8045         (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
8046         (mi_user_selected_context_changed): Update.
8047         * mi/mi-main.c (mi_execute_command): Update.
8048         * cli/cli-script.c (execute_control_command): Update.
8049         * python/python.c (execute_gdb_command): Update.
8050         * solib.c (info_sharedlibrary_command): Update.
8051         * interps.c (interp_ui_out): Remove.
8052         * interps.h (interp_ui_out): Remove.
8053
8054 2018-05-25  Tom Tromey  <tom@tromey.com>
8055
8056         * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
8057         * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
8058         * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
8059
8060 2018-05-25  Tom Tromey  <tom@tromey.com>
8061
8062         * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
8063         * interps.c (interp_exec): Use scoped_restore.
8064
8065 2018-05-25  Tom Tromey  <tom@tromey.com>
8066
8067         * remote.c (remote_target::remote_file_get): Use
8068         gdb::byte_vector.
8069         (remote_target::remote_file_put): Likewise.
8070
8071 2018-05-25  Tom Tromey  <tom@tromey.com>
8072
8073         * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
8074         a std::string.
8075         (get_pe_section_index, add_pe_exported_sym): Update.
8076         (read_pe_exported_syms): Use gdb::def_vector.
8077
8078 2018-05-25  Tom Tromey  <tom@tromey.com>
8079
8080         * frame.c (remove_prev_frame): Remove.
8081         (get_prev_frame_if_no_cycle): Use TRY/CATCH.
8082
8083 2018-05-25  Maciej W. Rozycki  <macro@mips.com>
8084
8085         * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
8086         Remove prototypes.
8087         * mips-linux-nat.c (supply_fpregset): Always call
8088         `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
8089         (fill_fpregset): Always call `mips64_fill_fpregset' rather than
8090         `mips_fill_fpregset'.
8091         * mips-linux-tdep.c (mips_supply_fpregset)
8092         (mips_supply_fpregset_wrapper, mips_fill_fpregset)
8093         (mips_fill_fpregset_wrapper): Remove functions.
8094         (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
8095         (mips_linux_fpregset): Remove variable.
8096         (mips_linux_iterate_over_regset_sections): Use
8097         `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
8098         (mips_linux_o32_sigframe_init): Remove comment.
8099
8100 2018-05-25  Pedro Alves  <palves@redhat.com>
8101
8102         * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
8103         (struct readahead_cache, struct packet_reg, struct
8104         remote_arch_state, class remote_state): Move higher up in the
8105         file.
8106         (remote_target::m_remote_state): Now an object instead of a pointer.
8107         (remote_target::get_remote_state): Adjust.
8108
8109 2018-05-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8110
8111         * stack.c (select_and_print_frame): Delete.
8112         (struct function_bounds): Move struct within function.
8113         (func_command): Most content moved into new function
8114         find_frame_for_function, use new function, print result, add
8115         function comment.
8116         (find_frame_for_function): New function, now returns a result.
8117
8118 2018-05-24  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
8119
8120         * stack.c (iterate_over_block_arg_vars): Fix comment.
8121         (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
8122
8123 2018-05-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8124
8125         PR gdb/23203
8126         * frame.c
8127         (scoped_restore_selected_frame::scoped_restore_selected_frame):
8128         Define.
8129         (scoped_restore_selected_frame::~scoped_restore_selected_frame):
8130         Define.
8131         * frame.h (class scoped_restore_selected_frame): New class.
8132         * stack.c (print_frame_local_vars): Remove catching and rethrowing
8133         of any exception, use scoped_restore_selected_frame to restore the
8134         frame instead.
8135
8136 2018-05-24  Pedro Alves  <palves@redhat.com>
8137
8138         * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
8139         override.
8140
8141 2018-05-23  Tom Tromey  <tom@tromey.com>
8142
8143         * complaints.c (struct complaints): Remove.
8144         (symfile_complaint_book): Remove.
8145         (series): New global.
8146         (complaint_internal): Update.
8147         (clear_complaints): Update.
8148
8149 2018-05-23  Tom Tromey  <tom@tromey.com>
8150
8151         * complaints.c (counters): New global.
8152         (struct complain): Remove.
8153         (struct complaints) <root>: Remove.
8154         (complaint_sentinel): Remove.
8155         (symfile_complaint_book): Update.
8156         (find_complaint) Remove.
8157         (complaint_internal, clear_complaints): Update.
8158
8159 2018-05-23  Tom Tromey  <tom@tromey.com>
8160
8161         * complaints.c (struct complain) <file, line>: Remove.
8162         (find_complaint): Remove file, line parameters.
8163         (complaint_internal): Update.
8164
8165 2018-05-23  Tom Tromey  <tom@tromey.com>
8166
8167         * complaints.c (vcomplaint): Remove.
8168         (complaint_internal) Merge in contents of vcomplaint.
8169
8170 2018-05-23  Tom Tromey  <tom@tromey.com>
8171
8172         * complaints.c (struct complaints) <explanation>: Remove.
8173         (symfile_explanations): Remove.
8174         (symfile_complaint_book): Update.
8175         (vcomplaint): Update.
8176         (struct explanation): Remove.
8177
8178 2018-05-23  Tom Tromey  <tom@tromey.com>
8179
8180         * complaints.c (symfile_complaints): Remove.
8181         (complaint_internal): Remove "complaints" parameter.
8182         (clear_complaints, vcomplaint): Remove "c" parameter.
8183         (get_complaints): Remove.
8184         * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
8185         (dwarf2_debug_line_missing_file_complaint)
8186         (dwarf2_debug_line_missing_end_sequence_complaint)
8187         (dwarf2_complex_location_expr_complaint)
8188         (dwarf2_const_value_length_mismatch_complaint)
8189         (dwarf2_section_buffer_overflow_complaint)
8190         (dwarf2_macro_malformed_definition_complaint)
8191         (dwarf2_invalid_attrib_class_complaint)
8192         (create_addrmap_from_index, dw2_symtab_iter_next)
8193         (dw2_expand_marked_cus)
8194         (dw2_debug_names_iterator::find_vec_in_debug_names)
8195         (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
8196         (create_debug_type_hash_table, init_cutu_and_read_dies)
8197         (partial_die_parent_scope, add_partial_enumeration)
8198         (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
8199         (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
8200         (read_import_statement, read_file_scope, create_dwo_cu_reader)
8201         (create_cus_hash_table, create_dwp_hash_table)
8202         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8203         (dwarf2_rnglists_process, dwarf2_ranges_process)
8204         (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
8205         (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
8206         (handle_struct_member_die, process_structure_scope)
8207         (read_array_type, read_common_block, read_module_type)
8208         (read_tag_pointer_type, read_typedef, read_base_type)
8209         (read_subrange_type, load_partial_dies, partial_die_info::read)
8210         (partial_die_info::read, partial_die_info::read)
8211         (partial_die_info::read, read_checked_initial_length_and_offset)
8212         (dwarf2_string_attr, read_formatted_entries)
8213         (dwarf_decode_line_header)
8214         (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
8215         (new_symbol, dwarf2_const_value_attr, lookup_die_type)
8216         (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
8217         (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
8218         (get_signatured_type, get_DW_AT_signature_type)
8219         (decode_locdesc, file_file_name, consume_improper_spaces)
8220         (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
8221         (dwarf_decode_macro_bytes, dwarf_decode_macros)
8222         (dwarf2_symbol_mark_computed, set_die_type)
8223         (read_attribute_value): Update.
8224         * stap-probe.c (handle_stap_probe, get_stap_base_address):
8225         Update.
8226         * dbxread.c (unknown_symtype_complaint)
8227         (lbrac_mismatch_complaint, repeated_header_complaint)
8228         (set_namestring, function_outside_compilation_unit_complaint)
8229         (read_dbx_symtab, process_one_symbol): Update.
8230         * gdbtypes.c (stub_noname_complaint): Update.
8231         * windows-nat.c (handle_unload_dll): Update.
8232         * coffread.c (coff_symtab_read, enter_linenos, decode_type)
8233         (decode_base_type): Update.
8234         * xcoffread.c (bf_notfound_complaint, ef_complaint)
8235         (eb_complaint, record_include_begin, record_include_end)
8236         (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
8237         (process_xcoff_symbol, read_symbol)
8238         (function_outside_compilation_unit_complaint)
8239         (scan_xcoff_symtab): Update.
8240         * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
8241         * buildsym.c (finish_block_internal, make_blockvector)
8242         (end_symtab_get_static_block, augment_type_symtab): Update.
8243         * dtrace-probe.c (dtrace_process_dof)
8244         (dtrace_static_probe_ops::get_probes): Update.
8245         * complaints.h (struct complaint): Don't declare.
8246         (symfile_complaints): Remove.
8247         (complaint_internal): Remove "complaints" parameter.
8248         (complaint): Likewise.
8249         (clear_complaints): Likewise.
8250         * symfile.c (syms_from_objfile_1, finish_new_objfile)
8251         (reread_symbols): Update.
8252         * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
8253         (dwarf2_frame_cache, decode_frame_entry): Update.
8254         * dwarf2loc.c (dwarf_reg_to_regnum): Update.
8255         * objc-lang.c (lookup_objc_class, lookup_child_selector)
8256         (info_selectors_command): Update.
8257         * macrotab.c (macro_include, check_for_redefinition)
8258         (macro_undef): Update.
8259         * objfiles.c (filter_overlapping_sections): Update.
8260         * stabsread.c (invalid_cpp_abbrev_complaint)
8261         (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
8262         (define_symbol, error_type, read_type, rs6000_builtin_type)
8263         (stabs_method_name_from_physname, read_member_functions)
8264         (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
8265         (attach_fields_to_type, complain_about_struct_wipeout)
8266         (read_range_type, read_args, common_block_start)
8267         (common_block_end, cleanup_undefined_types_1, scan_file_globals):
8268         Update.
8269         * mdebugread.c (index_complaint, unknown_ext_complaint)
8270         (basic_type_complaint, bad_tag_guess_complaint)
8271         (bad_rfd_entry_complaint, unexpected_type_code_complaint)
8272         (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
8273         (parse_procedure, parse_lines)
8274         (function_outside_compilation_unit_complaint)
8275         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
8276         (bad_tag_guess_complaint, reg_value_complaint): Update.
8277         * cp-support.c (demangled_name_complaint): Update.
8278         * macroscope.c (sal_macro_scope): Update.
8279         * dwarf-index-write.c (class debug_names): Update.
8280
8281 2018-05-23  Tom Tromey  <tom@tromey.com>
8282
8283         * complaints.c (clear_complaints): Remove "noisy" parameter.
8284         * complaints.h (clear_complaints): Update.
8285         * symfile.c (syms_from_objfile_1, finish_new_objfile)
8286         (reread_symbols): Update.
8287
8288 2018-05-23  Tom Tromey  <tom@tromey.com>
8289
8290         * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
8291         SUBSEQUENT_MESSAGE.
8292         (vcomplaint, clear_complaints): Update.
8293         (symfile_explanations): Remove some messages.
8294
8295 2018-05-23  Tom Tromey  <tom@tromey.com>
8296
8297         * complaints.c (internal_complaint): Remove.
8298         * complaints.h (internal_complaint): Remove.
8299
8300 2018-05-22  Maciej W. Rozycki  <macro@mips.com>
8301
8302         * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
8303
8304 2018-05-22  Pedro Alves  <palves@redhat.com>
8305
8306         * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
8307         (remote_fileio_badfd, remote_fileio_return_errno)
8308         (remote_fileio_return_success, remote_fileio_func_open)
8309         (remote_fileio_func_open, remote_fileio_func_close)
8310         (remote_fileio_func_read, remote_fileio_func_write)
8311         (remote_fileio_func_lseek, remote_fileio_func_rename)
8312         (remote_fileio_func_unlink, remote_fileio_func_stat)
8313         (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
8314         (remote_fileio_func_isatty, remote_fileio_func_system): Add
8315         remote_target parameter.
8316         (remote_fio_func_map) <func>: Add remote_target parameter.
8317         (do_remote_fileio_request, remote_fileio_request):
8318         * remote-fileio.h (remote_fileio_request):
8319         * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
8320         remote_target parameter.
8321         (remote_notif_process, handle_notification): Adjust to pass down
8322         the remote.
8323         (remote_notif_state_allocate): Add remote_target parameter.  Save
8324         it.
8325         * remote-notif.h (struct remote_target): Forward declare.
8326         (struct notif_client) <parse, ack, can_get_pending_events>: Add
8327         remote_target parameter.
8328         (struct remote_notif_state) <remote>: New field.
8329         (remote_notif_ack, remote_notif_parse): Add remote_target
8330         parameter.
8331         (remote_notif_state_allocate, remote_notif_state_allocate): Add
8332         remote_target parameter.
8333         * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
8334         (threads_listing_context, rmt_thread_action, protocol_feature)
8335         (packet_reg, stop_reply, stop_reply_p, enum packet_support)
8336         (packet_result, struct threads_listing_context, remote_state):
8337         Move definitions and declarations higher up.
8338         (remote_target) <~remote_target>: Declare.
8339         (remote_download_command_source, remote_file_put, remote_file_get)
8340         (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
8341         (remote_hostio_pread_vFile, remote_hostio_send_command)
8342         (remote_hostio_set_filesystem, remote_hostio_open)
8343         (remote_hostio_close, remote_hostio_unlink, remote_state)
8344         (get_remote_state, get_remote_packet_size, get_memory_packet_size)
8345         (get_memory_write_packet_size, get_memory_read_packet_size)
8346         (append_pending_thread_resumptions, remote_detach_1)
8347         (append_resumption, remote_resume_with_vcont)
8348         (add_current_inferior_and_thread, wait_ns, wait_as)
8349         (process_stop_reply, remote_notice_new_inferior)
8350         (process_initial_stop_replies, remote_add_thread)
8351         (btrace_sync_conf, remote_btrace_maybe_reopen)
8352         (remove_new_fork_children, kill_new_fork_children)
8353         (discard_pending_stop_replies, stop_reply_queue_length)
8354         (check_pending_events_prevent_wildcard_vcont)
8355         (discard_pending_stop_replies_in_queue, stop_reply)
8356         (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
8357         (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
8358         (remote_interrupt_as, remote_interrupt_ns)
8359         (remote_get_noisy_reply, remote_query_attached)
8360         (remote_add_inferior, remote_current_thread, get_current_thread)
8361         (set_thread, set_general_thread, set_continue_thread)
8362         (set_general_process, write_ptid)
8363         (remote_unpack_thread_info_response, remote_get_threadinfo)
8364         (parse_threadlist_response, remote_get_threadlist)
8365         (remote_threadlist_iterator, remote_get_threads_with_ql)
8366         (remote_get_threads_with_qxfer)
8367         (remote_get_threads_with_qthreadinfo, extended_remote_restart)
8368         (get_offsets, remote_check_symbols, remote_supported_packet)
8369         (remote_query_supported, remote_packet_size)
8370         (remote_serial_quit_handler, remote_detach_pid)
8371         (remote_vcont_probe, remote_resume_with_hc)
8372         (send_interrupt_sequence, interrupt_query)
8373         (remote_notif_get_pending_events, fetch_register_using_p)
8374         (send_g_packet, process_g_packet, fetch_registers_using_g)
8375         (store_register_using_P, store_registers_using_G)
8376         (set_remote_traceframe, check_binary_download)
8377         (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
8378         (remote_xfer_live_readonly_partial, remote_read_bytes)
8379         (remote_send_printf, remote_flash_write, readchar)
8380         (remote_serial_write, putpkt, putpkt_binary, skip_frame)
8381         (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
8382         (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
8383         (extended_remote_disable_randomization, extended_remote_run)
8384         (send_environment_packet, extended_remote_environment_support)
8385         (extended_remote_set_inferior_cwd, remote_write_qxfer)
8386         (remote_read_qxfer, push_stop_reply, vcont_r_supported)
8387         (packet_command): Now methods of ...
8388         (remote_target): ... this class.
8389         (m_remote_state) <remote_target>: New field.
8390         (struct remote_state) <stop_reply_queue,
8391         remote_async_inferior_event_token, wait_forever_enabled_p>: New
8392         fields.
8393         (remote_state::remote_state): Allocate stop_reply_queue.
8394         (remote_state): Delete global.
8395         (get_remote_state_raw): Delete.
8396         (remote_target::get_remote_state): Allocate m_remote_state on
8397         demand.
8398         (get_current_remote_target): New.
8399         (remote_ops, extended_remote_ops): Delete.
8400         (wait_forever_enabled_p, remote_async_inferior_event_token):
8401         Delete, moved to struct remote_state.
8402         (remote_target::close): Delete self.  Destruction bits split to
8403         ...
8404         (remote_target::~remote_target): ... this.
8405         (show_memory_packet_size): Adjust to use
8406         get_current_remote_target.
8407         (struct protocol_feature) <func>: Add remote_target parameter.
8408         All callers adjusted.
8409         (curr_quit_handler_target): New.
8410         (remote_serial_quit_handler): Reimplement.
8411         (remote_target::open_1): Adjust to use get_current_remote_target.
8412         Heap-allocate remote_target/extended_remote_target instances.
8413         (vcont_builder::vcont_builder): Add remote_target parameter, and
8414         save it in m_remote.  All callers adjusted.
8415         (vcont_builder::m_remote): New field.
8416         (vcont_builder::restart, vcont_builder::flush)
8417         (vcont_builder::push_action): Use it.
8418         (remote_target::commit_resume): Use it.
8419         (struct queue_iter_param) <remote>: New field.
8420         (remote_target::remove_new_fork_children): Fill in 'remote' field.
8421         (check_pending_event_prevents_wildcard_vcont_callback_data): New.
8422         (check_pending_event_prevents_wildcard_vcont_callback)
8423         (remote_target::check_pending_events_prevent_wildcard_vcont)
8424         (remote_target::discard_pending_stop_replies)
8425         (remote_target::discard_pending_stop_replies_in_queue)
8426         (remote_target::remote_notif_remove_queued_reply): Fill in
8427         'remote' field.
8428         (remote_notif_get_pending_events): New.
8429         (remote_target::readchar, remote_target::remote_serial_write):
8430         Save/restore curr_quit_handler_target.
8431         (putpkt): New.
8432         (kill_new_fork_children): Fill in 'remote' field.
8433         (packet_command): Use get_current_remote_target, defer to
8434         remote_target method of same name.
8435         (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
8436         parameter, and save it in m_remote.  All callers adjusted.
8437         (scoped_remote_fd::release): Use m_remote.
8438         (scoped_remote_fd::m_remote): New field.
8439         (remote_file_put, remote_file_get, remote_file_delete): Use
8440         get_current_remote_target, defer to remote_target method of same
8441         name.
8442         (remote_btrace_reset): Add remote_state paremeter.  Update all
8443         callers.
8444         (remote_async_inferior_event_handler). Pass down 'data'.
8445         (remote_new_objfile): Use get_current_remote_target.
8446         (remote_target::vcont_r_supported): New.
8447         (set_range_stepping): Use get_current_remote_target and
8448         remote_target::vcont_r_supported.
8449         (_initialize_remote): Don't allocate 'remote_state' and
8450         'stop_reply_queue' globals.
8451         * remote.h (struct remote_target): Forward declare.
8452         (getpkt, putpkt, remote_notif_get_pending_events): Add
8453         'remote_target' parameter.
8454
8455 2018-05-22  Pedro Alves  <palves@redhat.com>
8456
8457         * remote.c (vcont_builder): Now a class.  Make all data members
8458         private.
8459         (vcont_builder) <vcont_builder, restart, flush, push_action>:
8460         Declare methods.
8461         (vcont_builder_restart): Rename to ...
8462         (vcont_builder::restart): ... this.
8463         (vcont_builder_flush): Rename to ...
8464         (vcont_builder::flush): ... this.
8465         (vcont_builder_push_action): Rename to ...
8466         (vcont_builder::push_action): ... this.
8467         (remote_target::commit_resume): Adjust.
8468
8469 2018-05-22  Pedro Alves  <palves@redhat.com>
8470
8471         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
8472         (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
8473         (get_fixed_memory_packet_size): New.
8474         (get_memory_packet_size): Use it.
8475         (set_memory_packet_size): Don't override the config size with
8476         DEFAULT_MAX_MEMORY_PACKET_SIZE.
8477         (show_memory_packet_size): Use get_fixed_memory_packet_size.
8478         Don't refer to get_memory_packet_size if not connected to a remote
8479         target.  Show "(default)" if configured size is 0.
8480
8481 2018-05-22  Pedro Alves  <palves@redhat.com>
8482
8483         * remote.c (remote_target::mourn_inferior): Move
8484         discard_pending_stop_replies call here from ...
8485         (_initialize_remote): ... here.
8486
8487 2018-05-22  Pedro Alves  <palves@redhat.com>
8488
8489         * remote.c (compare_section_command): Remove set_general_process
8490         call.
8491
8492 2018-05-22  Pedro Alves  <palves@redhat.com>
8493
8494         * remote.c (struct packet_reg, struct remote_arch_state):
8495         Move higher up in the file.
8496         (remote_state) <m_arch_states>: Store remote_arch_state values
8497         instead of remote_arch_state pointers.
8498         (remote_state::get_remote_arch_state): Adjust.
8499
8500 2018-05-22  Pedro Alves  <palves@redhat.com>
8501
8502         * remote.c: Include <unordered_map>.
8503         (remote_state): Now a class.
8504         (remote_state) <get_remote_arch_state>: Declare method.
8505         <get_remote_arch_state>: New field.
8506         (remote_arch_state) <remote_arch_state>: Declare ctor.
8507         <regs>: Now a unique_ptr.
8508         (remote_gdbarch_data_handle): Delete.
8509         (get_remote_arch_state): Delete.
8510         (remote_state::get_remote_arch_state): New.
8511         (get_remote_state): Adjust to call remote_state's
8512         get_remote_arch_state method.
8513         (init_remote_state): Delete, bits factored out to ...
8514         (remote_arch_state::remote_arch_state): ... this new method.
8515         (get_remote_packet_size, get_memory_packet_size)
8516         (process_g_packet, remote_target::fetch_registers)
8517         (remote_target::prepare_to_store, store_registers_using_G)
8518         (remote_target::store_registers, remote_target::get_trace_status):
8519         Adjust to call remote_state's method.
8520         (_initialize_remote): Remove reference to
8521         remote_gdbarch_data_handle.
8522
8523 2018-05-22  Pedro Alves  <palves@redhat.com>
8524
8525         * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
8526         pread>: New method declarations.
8527         (remote_target::open_1): Adjust.
8528         (readahead_cache_invalidate): Rename to ...
8529         (readahead_cache::invalidate): ... this, and adjust to be a class
8530         method.
8531         (readahead_cache_invalidate_fd): Rename to ...
8532         (readahead_cache::invalidate_fd): ... this, and adjust to be a
8533         class method.
8534         (remote_hostio_pwrite): Adjust.
8535         (remote_hostio_pread_from_cache): Rename to ...
8536         (readahead_cache::pread): ... this, and adjust to be a class
8537         method.
8538         (remote_hostio_close): Adjust.
8539
8540 2018-05-22  Pedro Alves  <palves@redhat.com>
8541
8542         * remote.c (remote_hostio_close_cleanup): Delete.
8543         (class scoped_remote_fd): New.
8544         (remote_file_put, remote_file_get): Use it.
8545
8546 2018-05-22  Pedro Alves  <palves@redhat.com>
8547
8548         (struct vCont_action_support): Use bool and initialize all fields.
8549         (struct readahead_cache): Initialize all fields.
8550         (remote_state): Use bool and initialize all fields.
8551         (remote_state::remote_state, remote_state::~remote_state): New.
8552         (new_remote_state): Delete.
8553         (_initialize_remote): Use new to allocate remote_state.
8554
8555 2018-05-22  Pedro Alves  <palves@redhat.com>
8556             張俊芝  <zjz@zjz.name>
8557
8558         PR gdb/22973
8559         * c-exp.y: Include "c-support.h".
8560         (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
8561         of tolower.  Use c_ident_is_alpha to scan names.
8562         * c-lang.c: Include "c-support.h".
8563         (convert_ucn, convert_octal, convert_hex, convert_escape): Use
8564         ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
8565         * c-support.h: New file, with bits factored out from ...
8566         * cp-name-parser.y: ... this file.
8567         Include "c-support.h".
8568         (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
8569         c-support.h and renamed.
8570         (symbol_end, yylex): Adjust.
8571
8572 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
8573
8574         * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
8575         parameter type to CORE_ADDR.
8576         * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
8577         parameter type in declaration to CORE_ADDR.
8578         * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
8579         target_auxv_search to get AT_HWCAP and use the result to get the
8580         target description.
8581         * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
8582         to CORE_ADDR. Remove the cast of the return value to unsigned
8583         long. Fix error predicate of target_auxv_search.
8584         (ppc_linux_nat_target::read_description): Change the type of the
8585         hwcap variable to CORE_ADDR.
8586
8587 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
8588
8589         * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
8590         if the size of fpscr is larger than 32 bits.
8591
8592 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
8593
8594         * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
8595         (ppc32_linux_vsxregmap): New global.
8596         (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
8597         regcache_supply_regset, and regcache_collect_regset.
8598         * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
8599         * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
8600         (fetch_vsx_register, store_vsx_register): Remove.
8601         (fetch_vsx_registers): Add regno parameter. Get regset using
8602         ppc_linux_vsxregset. Use regset to supply registers.
8603         (store_vsx_registers): Add regno parameter. Get regset using
8604         ppc_linux_vsxregset. Use regset to collect registers.
8605         (fetch_register): Call fetch_vsx_registers instead of
8606         fetch_vsx_register.
8607         (store_register): Call store_vsx_registers instead of
8608         store_vsx_register.
8609         (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
8610         new regno parameter.
8611         (store_ppc_registers): Call store_vsx_registers with -1 for the
8612         new regno parameter.
8613         * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
8614         (ppc_collect_vsxregset): Remove.
8615
8616 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
8617
8618         * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
8619         offset fields.
8620         * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
8621         for vector register offset fields.
8622         (ppc64_fbsd_reg_offsets): Likewise.
8623         * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
8624         to vector register offset fields.
8625         * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
8626         to vector register offset fields.
8627         * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
8628         vector register offset fields.
8629         * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
8630         initializers for vector register offset fields.
8631         (rs6000_aix64_reg_offsets): Likewise.
8632         * rs6000-tdep.c (ppc_vrreg_offset): Remove.
8633         (ppc_supply_vrregset): Remove.
8634         (ppc_collect_vrregset): Remove.
8635         * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
8636         (ppc_linux_vrregset) : New function.
8637         (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
8638         (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
8639         (ppc32_linux_vrregset): Remove.
8640         (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
8641         and use result instead of ppc32_linux_vrregset.
8642         (ppc32_linux_reg_offsets): Remove initializers for vector register
8643         offset fields.
8644         (ppc64_linux_reg_offsets): Likewise.
8645         * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
8646         * ppc-linux-nat.c: Include regset.h.
8647         (gdb_vrregset_t): Adjust comment to account for little-endian
8648         mode.
8649         (supply_vrregset, fill_vrregset): Remove.
8650         (fetch_altivec_register, store_altivec_register): Remove.
8651         (fetch_altivec_registers): Add regno parameter. Get regset using
8652         ppc_linux_vrregset. Use regset to supply registers.
8653         (store_altivec_registers): Add regno parameter. Get regset using
8654         ppc_linux_vrregset. Use regset to collect registers.
8655         (fetch_register): Call fetch_altivec_registers instead of
8656         fetch_altivec_register.
8657         (store_register): Call store_altivec_registers instead of
8658         store_altivec_register.
8659         (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
8660         the new regno parameter.
8661         (store_ppc_registers): Call store_altivec_registers with -1 for
8662         the new regno parameter.
8663
8664 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
8665
8666         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
8667         (PPC_LINUX_SIZEOF_VSXREGSET): Define.
8668         * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
8669         (gdb_vrregset_t): Change array type size to
8670         PPC_LINUX_SIZEOF_VRREGSET.
8671         (gdb_vsxregset_t): Change array type size to
8672         PPC_LINUX_SIZEOF_VSXREGSET.
8673         * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
8674         Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
8675         PPC_LINUX_SIZEOF_VSXREGSET.
8676
8677 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
8678
8679         * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
8680         * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
8681         nat/ppc-linux.c.
8682         (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
8683         ppc_linux_target_wordsize with tid.
8684         (ppc_linux_nat_target::read_description): Call ppc_linux_target
8685         wordsize with tid.
8686         * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
8687         (ppc64_64bit_inferior_p): Add static and inline specifiers.
8688         (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
8689         tid parameter. Remove static specifier.
8690         * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
8691         (ppc_linux_target_wordsize): New declaration.
8692
8693 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
8694
8695         * arch/ppc-linux-common.c: New file.
8696         * arch/ppc-linux-common.h: New file.
8697         * arch/ppc-linux-tdesc.h: New file.
8698         * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
8699         * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
8700         (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
8701         arch/ppc-linux-tdesc.h.
8702         * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
8703         arch/ppc-linux-tdesc.h.
8704         (ppc_linux_nat_target::read_description): Remove target
8705         description matching code. Fill a ppc_linux_features struct and
8706         call ppc_linux_match_description with it. Move comment about ISA
8707         2.05 to ppc-linux-common.c.
8708         * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
8709         arch/ppc-linux-tdesc.h.
8710         (ppc_linux_core_read_description): Remove target description
8711         matching code. Fill a ppc_linux_features struct and call
8712         ppc_linux_match_description with it.
8713         * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
8714         (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
8715         (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
8716         (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
8717         (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
8718         (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
8719         (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
8720         (tdesc_powerpc_e500l): Remove.
8721
8722 2018-05-22  Joel Brobecker  <brobecker@adacore.com>
8723
8724         * ada-lang.c (catch_assert_command): Pass empty string instead
8725         of NULL for excep_string argument.
8726
8727 2018-05-22  Maciej W. Rozycki  <macro@mips.com>
8728
8729         * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
8730         the width of the requested register exceeds the width of the
8731         `ptrace' data type.
8732
8733 2018-05-21  Tom Tromey  <tom@tromey.com>
8734
8735         * printcmd.c (output_command): Remove.
8736         (output_command_const): Rename to output_command.
8737         * valprint.h (output_command): Rename from output_command_const.
8738         * tracepoint.c (trace_dump_actions): Call output_command.
8739
8740 2018-05-21  Tom Tromey  <tom@tromey.com>
8741
8742         * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
8743         (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
8744         * ada-lang.h (create_ada_exception_catchpoint): Update.
8745         * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
8746         std::string.
8747         (create_excep_cond_exprs, ~ada_catchpoint)
8748         (should_stop_exception, print_one_exception)
8749         (print_mention_exception, print_recreate_exception): Update.
8750         (ada_get_next_arg): Remove.
8751         (catch_ada_exception_command_split): Use std::string.  Change type
8752         of "excep_string", "cond_string".
8753         (catch_ada_exception_command): Update.
8754         (create_ada_exception_catchpoint): Change type of excep_string.
8755         (ada_exception_sal): Remove excep_string parameter.
8756         (~ada_catchpoint): Remove.
8757
8758 2018-05-21  Tom Tromey  <tom@tromey.com>
8759
8760         * ada-lang.c (ada_collect_symbol_completion_matches): Remove
8761         cleanup.
8762
8763 2018-05-21  Tom Tromey  <tom@tromey.com>
8764
8765         * ada-lang.c (ada_exception_message_1, ada_exception_message):
8766         Return unique_xmalloc_ptr.
8767         (print_it_exception): Update.
8768
8769 2018-05-21  Tom Tromey  <tom@tromey.com>
8770
8771         * tracepoint.c (trace_dump_actions): Use std::string.
8772
8773 2018-05-21  Tom Tromey  <tom@tromey.com>
8774
8775         * symfile.c (reread_symbols): Use std::string for original_name.
8776
8777 2018-05-21  Tom Tromey  <tom@tromey.com>
8778
8779         * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
8780         (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN.  Default
8781         constructor.
8782
8783 2018-05-20  Simon Marchi  <simon.marchi@polymtl.ca>
8784
8785         * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
8786         instance to...
8787         (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
8788         * objfiles.c (get_objfile_bfd_data): Allocate
8789         objfile_per_bfd_storage with obstack_new when allocating on
8790         obstack.
8791
8792 2018-05-20  Simon Marchi  <simon.marchi@ericsson.com>
8793
8794         * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
8795         OBSTACK_ZALLOC.
8796         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
8797         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
8798         * mdebugread.c (mdebug_build_psymtabs): Likewise.
8799         (add_pending): Likewise.
8800         (parse_symbol): Likewise.
8801         (parse_partial_symbols): Likewise.
8802         (psymtab_to_symtab_1): Likewise.
8803         (new_psymtab): Likewise.
8804         (elfmdebug_build_psymtabs): Likewise.
8805         * minsyms.c (terminate_minimal_symbol_table): Likewise.
8806         * objfiles.c (get_objfile_bfd_data): Likewise.
8807         (objfile_register_static_link): Likewise.
8808         * psymtab.c (allocate_psymtab): Likewise.
8809         * stabsread.c (read_member_functions): Likewise.
8810         * xcoffread.c (xcoff_end_psymtab): Likewise.
8811
8812 2018-05-20  Simon Marchi  <simon.marchi@ericsson.com>
8813
8814         * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
8815         compiler supports std::is_trivially_constructible.
8816         * common/poison.h: Include obstack.h.
8817         (IsMallocable): Define to is_trivially_constructible if the
8818         compiler supports it, define to true_type otherwise.
8819         (xobnew): New.
8820         (XOBNEW): Redefine.
8821         (xobnewvec): New.
8822         (XOBNEWVEC): Redefine.
8823         * gdb_obstack.h (obstack_zalloc): New.
8824         (OBSTACK_ZALLOC): Redefine.
8825         (obstack_calloc): New.
8826         (OBSTACK_CALLOC): Redefine.
8827         (obstack_new): New.
8828         * gdbarch.sh: Include gdb_obstack in gdbarch.h.
8829         (gdbarch_obstack): New declaration in gdbarch.h, definition in
8830         gdbarch.c.
8831         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
8832         obstack_calloc/obstack_zalloc.
8833         (gdbarch_obstack_zalloc): Remove.
8834         * target-descriptions.c (tdesc_data_init): Use obstack_new.
8835
8836 2018-05-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
8837
8838         * stack.c (backtrace_command_1): Remove useless variable int i.
8839
8840 2018-05-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
8841
8842         * stack.c (print_frame_info): Fix comment.
8843
8844 2018-05-18  Tom Tromey  <tom@tromey.com>
8845
8846         * dwarf2read.c (struct dwz_file): Add constructor, initializers.
8847         <dwz_bfd>: Now a gdb_bfd_ref_ptr.
8848         (~dwarf2_per_objfile): Update
8849         (dwarf2_get_dwz_file): Use new.
8850         * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
8851         unique_ptr.
8852
8853 2018-05-18  Tom Tromey  <tom@tromey.com>
8854
8855         * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
8856         unique_ptr.
8857         * dwarf2read.c (struct dwp_file): Add constructor and
8858         initializers.
8859         (open_and_init_dwp_file): Return a unique_ptr.
8860         (dwarf2_per_objfile, create_dwp_hash_table)
8861         (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
8862         (lookup_dwo_unit_in_dwp): Update.
8863         (open_and_init_dwp_file, get_dwp_file): Update.
8864
8865 2018-05-18  Tom Tromey  <tom@tromey.com>
8866
8867         * dwarf2read.c (dwarf2_per_objfile): Update.
8868         (struct mapped_index): Add initializers.
8869         (dwarf2_read_index): Use new.
8870         (dw2_symtab_iter_init): Update.
8871         * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
8872         unique_ptr.
8873
8874 2018-05-18  Simon Marchi  <simon.marchi@ericsson.com>
8875
8876         * dwarf2read.c (mapped_index) <total_size>: Remove.
8877
8878 2018-05-18  Simon Marchi  <simon.marchi@ericsson.com>
8879
8880         * unittests/format_pieces-selftests.c (test_format_specifier):
8881         Add ARI comments.
8882
8883 2018-05-18  Tom Tromey  <tom@tromey.com>
8884
8885         * c-typeprint.c (maybe_print_hole): New function.
8886         (c_print_type_struct_field_offset): Update.
8887         (c_type_print_base_struct_union): Call maybe_print_hole.
8888
8889 2018-05-17  Keith Seitz  <keiths@redhat.com>
8890
8891         * breakpoint.c (build_bpstat_chain): New function, moved from
8892         bpstat_stop_status.
8893         (bpstat_stop_status): Add optional parameter, `stop_chain'.
8894         If no stop chain is passed, call build_bpstat_chain to build it.
8895         * breakpoint.h (build_bpstat_chain): Declare.
8896         (bpstat_stop_status): Move documentation here from breakpoint.c.
8897         * infrun.c (handle_signal_stop): Before eliding inlined frames,
8898         build the stop chain and pass it to skip_inline_frames.
8899         Pass this stop chain to bpstat_stop_status.
8900         * inline-frame.c: Include breakpoint.h.
8901         (stopped_by_user_bp_inline_frame): New function.
8902         (skip_inline_frames): Add parameter `stop_chain'.
8903         Move documention to inline-frame.h.
8904         If non-NULL, use stopped_by_user_bp_inline_frame to determine
8905         whether the frame should be elided.
8906         * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
8907         Add moved documentation and update for new parameter.
8908
8909 2018-05-17  Simon Marchi  <simon.marchi@ericsson.com>
8910
8911         PR cli/14975
8912         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8913         unittests/format_pieces-selftests.c.
8914         * common/format.h (format_piece) <operator==>: New.
8915         (format_pieces) <operator[]>: Remove.
8916         * common/format.c (format_pieces::format_pieces): Handle \e.
8917         * unittests/format_pieces-selftests.c: New.
8918
8919 2018-05-17  Tom Tromey  <tom@tromey.com>
8920
8921         PR symtab/23010:
8922         * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
8923         (dw2_instantiate_symtab): Add skip_partial parameter.
8924         (dw2_find_last_source_symtab, dw2_map_expand_apply)
8925         (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
8926         (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
8927         (dw2_expand_symtabs_matching_one)
8928         (dw2_find_pc_sect_compunit_symtab)
8929         (dw2_debug_names_lookup_symbol)
8930         (dw2_debug_names_expand_symtabs_for_function): Update.
8931         (init_cutu_and_read_dies): Add skip_partial parameter.
8932         (process_psymtab_comp_unit, build_type_psymtabs_1)
8933         (process_skeletonless_type_unit, load_partial_comp_unit)
8934         (psymtab_to_symtab_1): Update.
8935         (load_full_comp_unit): Add skip_partial parameter.
8936         (process_imported_unit_die, dwarf2_read_addr_index)
8937         (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
8938         (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
8939         (read_signatured_type): Update.
8940
8941 2018-05-17  Simon Marchi  <simon.marchi@ericsson.com>
8942
8943         * value.c (release_value): Remove unused variable.
8944         (record_latest_value): Likewise.
8945         (access_value_history): Likewise.
8946         (preserve_values): Likewise.
8947
8948 2018-05-17  Tom Tromey  <tom@tromey.com>
8949
8950         * extension.h (struct ext_lang_type_printers) <py_type_printers>:
8951         Initialize.
8952
8953 2018-05-16  Maciej W. Rozycki  <macro@mips.com>
8954
8955         PR gdb/22286
8956         * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
8957         Also handle registers whose width is not a multiple of
8958         PTRACE_TYPE_RET.
8959         (linux_nat_trad_target::store_register): Likewise.
8960
8961 2018-05-16  Tom Tromey  <tom@tromey.com>
8962
8963         * gdbcore.h (core_bfd): Redefine.
8964         * corelow.c (core_target::close): Update.
8965         (core_target_open): Update.
8966         * progspace.h (struct program_space) <cbfd>: Now a
8967         gdb_bfd_ref_ptr.
8968
8969 2018-05-16  Tom Tromey  <tom@tromey.com>
8970
8971         PR cli/19551:
8972         * symfile-add-flags.h (enum symfile_add_flags)
8973         <SYMFILE_NOT_FILENAME>: New constant.
8974         * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME.  Get
8975         objfile name from BFD.
8976         (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
8977         * minidebug.c (find_separate_debug_file_in_section): Put
8978         ".gnu_debugdata" into BFD's file name.
8979
8980 2018-05-16  Simon Marchi  <simon.marchi@ericsson.com>
8981
8982         * regcache.c (regcache_read_ftype, regcache_write_ftype):
8983         Remove.
8984
8985 2018-05-15  Tamar Christina  <tamar.christina@arm.com>
8986
8987         PR binutils/21446
8988         * aarch64-tdep.c (aarch64_analyze_prologue,
8989         aarch64_software_single_step, aarch64_displaced_step_copy_insn):
8990         Indicate not interested in errors.
8991
8992 2018-05-15  Maciej W. Rozycki  <macro@mips.com>
8993
8994         * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
8995         Supply the MIPS_ZERO_REGNUM register.
8996
8997 2018-05-15  Maciej W. Rozycki  <macro@mips.com>
8998
8999         * mips-tdep.c (mask_address_var): Make variable static.
9000
9001 2018-05-14  Tom Tromey  <tom@tromey.com>
9002
9003         * dwarf2read.c (rust_union_quirks): Clear rust_unions.
9004
9005 2018-05-11  Andrew Burgess  <andrew.burgess@embecosm.com>
9006
9007         * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
9008         FXSAVE_ADDR for the mxcsr register.
9009
9010 2018-05-11  Max Filippov  <jcmvbkbc@gmail.com>
9011
9012         * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
9013
9014 2018-05-11  Pedro Alves  <palves@redhat.com>
9015
9016         * corelow.c (core_target) <core_target>: No longer inline.
9017         Initialize m_core_gdbarch, m_core_vec and build the section table
9018         here.
9019         <~core_target>: New.
9020         <core_gdbarch, get_core_register_section>: New methods.
9021         <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
9022         factored out from ...
9023         <core_data, core_vec, core_gdbarch>: ... these deleted globals.
9024         (core_ops): Delete.
9025         (sniff_core_bfd): Add gdbarch parameter.
9026         (core_close): Delete, merged into ...
9027         (core_target::close): ... here.  Delete self.
9028         (core_close_cleanup): Delete.
9029         (core_target_open): Allocate a core_target on the heap.  Use a
9030         unique_ptr instead of a cleanup.  Bits moved into the core_target
9031         ctor.  Adjust to use core_target methods instead of globals.
9032         (get_core_register_section): Rename to ...
9033         (core_target::get_core_register_section): ... this and adjust.
9034         (struct get_core_registers_cb_data): New.
9035         (get_core_registers_cb): Use it.  Use bool.
9036         (core_target::fetch_registers, core_target::files_info)
9037         (core_target::xfer_partial, core_target::read_description)
9038         (core_target::pid_to, core_target::thread_name): Adjust to
9039         reference class fields instead of globals.
9040         * target.h (struct target_ops_deleter, target_ops_up): New.
9041
9042 2018-05-11  Pedro Alves  <palves@redhat.com>
9043
9044         * corefile.c (core_file_command): Move to corelow.c.
9045         * corelow.c (the_core_target): Delete.
9046         (core_file_command): Moved from corefile.c.  Check exec_bfd
9047         instead of the_core_target.  Use target_detach instead of calling
9048         into the_core_target directly.
9049         (maybe_say_no_core_file_now): New.
9050         (core_target::detach): Use it.
9051         (_initialize_corelow): Remove references to the_core_target.
9052         * gdbcore.h (the_core_target): Delete.
9053
9054 2018-05-11  Tom Tromey  <tromey@redhat.com>
9055             Pedro Alves  <palves@redhat.com>
9056
9057         * corefile.c (core_bfd): Remove.
9058         * gdbcore.h (core_bfd): Now a macro.
9059         * progspace.h (struct program_space) <cbfd>: New field.
9060
9061 2018-05-11  Tom Tromey  <tom@tromey.com>
9062
9063         * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
9064         gdb::def_vector.
9065
9066 2018-05-10  Tom Tromey  <tom@tromey.com>
9067
9068         * configure: Rebuild.
9069         * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
9070
9071 2018-05-10  Joel Brobecker  <brobecker@adacore.com>
9072
9073         PR server/23158:
9074         * regformats/regdat.sh: Adjust script, following the addition
9075         of the new expedite_regs parameter to init_target_desc.
9076
9077 2018-05-10  Omair Javaid  <omair.javaid@linaro.org>
9078     
9079         PR gdb/23127
9080         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
9081         set_gdbarch_significant_addr_bit.
9082         * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
9083         set_gdbarch_significant_addr_bit.
9084         * utils.c (address_significant): Update to sign extend addr.
9085
9086 2018-05-09  Max Filippov  <jcmvbkbc@gmail.com>
9087
9088         * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
9089         (xtensa_linux_init_abi): Limit tdep->num_regs by
9090         tdep->num_nopriv_regs.
9091         * xtensa-tdep.c (xtensa_derive_tdep): Calculate
9092         tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
9093         not initialized.
9094
9095 2018-05-08  Simon Marchi  <simon.marchi@ericsson.com>
9096
9097         * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
9098
9099 2018-05-08  Andrew Burgess  <andrew.burgess@embecosm.com>
9100
9101         * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
9102         (I387_MXCSR_INIT_VAL): New constant.
9103         * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
9104         buffer if it was supplied by the inferior.
9105         * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
9106         (i387_xsave_get_clear_bv): New function.
9107         (i387_supply_xsave): Only read x87 control registers from the
9108         xsave buffer if the feature is enabled, and the state will have
9109         been written, otherwise, provide a suitable default.
9110         (i387_collect_xsave): Pre-clear all registers in xsave buffer,
9111         including x87 control registers.  Update control registers if they
9112         have changed from the default value, and mark features as enabled
9113         as required.
9114         * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
9115
9116 2018-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
9117
9118         * spu-tdep.c (info_spu_event_command): Fix output formatting.
9119
9120 2018-05-07  Tom Tromey  <tom@tromey.com>
9121
9122         * configure: Rebuild.
9123         * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
9124
9125 2018-05-07  Tom Tromey  <tom@tromey.com>
9126
9127         PR tdep/20362:
9128         * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
9129         bit.  Use correct value for VDIV.
9130
9131 2018-05-04  Tom Tromey  <tom@tromey.com>
9132
9133         * configure: Rebuild.
9134         * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
9135
9136 2018-05-04  Tom Tromey  <tom@tromey.com>
9137
9138         * linux-record.c (record_linux_system_call) <case
9139         RECORD_SYS_RECVFROM>: Add "break".
9140
9141 2018-05-04  Tom Tromey  <tom@tromey.com>
9142
9143         * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
9144         Add missing "break".
9145         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
9146         Add missing "break".
9147
9148 2018-05-04  Tom Tromey  <tom@tromey.com>
9149
9150         * rs6000-tdep.c (ppc_process_record_op4)
9151         (ppc_process_record_op63): Add fall-through comment.
9152
9153 2018-05-04  Tom Tromey  <tom@tromey.com>
9154
9155         * i386-tdep.c (i386_process_record): Add fall-through comment.
9156
9157 2018-05-04  Tom Tromey  <tom@tromey.com>
9158
9159         * stabsread.c (define_symbol) <case 'p'>: Add fall-through
9160         comment.
9161
9162 2018-05-04  Tom Tromey  <tom@tromey.com>
9163
9164         * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
9165         * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
9166         * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
9167         comment.
9168         * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
9169         comment.
9170         * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
9171         comment.
9172
9173 2018-05-04  Tom Tromey  <tom@tromey.com>
9174
9175         * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
9176
9177 2018-05-04  Tom Tromey  <tom@tromey.com>
9178
9179         * s390-tdep.c (s390_process_record): Fix fall-through comments.
9180         * xcoffread.c (scan_xcoff_symtab): Move comment later.
9181         * symfile.c (section_is_mapped): Fix fall-through comment.
9182         * stabsread.c (define_symbol, read_member_functions): Fix
9183         fall-through comment.
9184         * s390-linux-tdep.c (s390_process_record): Fix fall-through
9185         comment.
9186         * remote.c (remote_wait_as): Fix fall-through comment.
9187         * p-exp.y (yylex): Fix fall-through comment.
9188         * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
9189         comment.
9190         * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
9191         * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
9192         * jv-exp.y (yylex): Fix fall-through comment.
9193         * go-exp.y (lex_one_token): Fix fall-through comment.
9194         * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
9195         fall-through comment.
9196         * f-exp.y (yylex): Fix fall-through comment.
9197         * dwarf2read.c (process_die): Fix fall-through comments.
9198         * dbxread.c (process_one_symbol): Fix fall-through comment.
9199         * d-exp.y (lex_one_token): Fix fall-through comment.
9200         * cp-name-parser.y (yylex): Fix fall-through comment.
9201         * coffread.c (coff_symtab_read): Fix fall-through comment.
9202         * c-exp.y (lex_one_token): Fix fall-through comment.
9203         * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
9204         comment.
9205         * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
9206         comment.
9207
9208 2018-05-04  Tom Tromey  <tom@tromey.com>
9209
9210         PR python/22730:
9211         * NEWS: Mention gdb.execute change.
9212         * gdbcmd.h (execute_control_command): Don't declare.
9213         * python/python.c (execute_gdb_command): Use read_command_lines_1,
9214         execute_control_commands, execute_control_commands_to_string.
9215         * cli/cli-script.h (execute_control_commands)
9216         (execute_control_commands_to_string): Declare.
9217         (execute_control_command): Add from_tty parameter.
9218         * cli/cli-script.c (execute_control_commands)
9219         (execute_control_commands_to_string): New functions.
9220         (execute_user_command): Use execute_control_commands.
9221         (execute_control_command_1): Add "from_tty" parameter.  Update.
9222         (execute_control_command): Likewise.
9223
9224 2018-05-04  Tom Tromey  <tom@tromey.com>
9225
9226         PR python/22731:
9227         * NEWS: Mention that breakpoint commands are writable.
9228         * python/py-breakpoint.c (bppy_set_commands): New function.
9229         (breakpoint_object_getset) <"commands">: Use it.
9230
9231 2018-05-04  Tom Tromey  <tom@tromey.com>
9232
9233         * tracepoint.c (actions_command): Update.
9234         * mi/mi-cmd-break.c (mi_command_line_array)
9235         (mi_command_line_array_cnt, mi_command_line_array_ptr)
9236         (mi_read_next_line): Remove.
9237         (mi_cmd_break_commands): Update.
9238         * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
9239         function_view.
9240         * cli/cli-script.c (get_command_line): Update.
9241         (process_next_line): Use function_view.  Constify.
9242         (recurse_read_control_structure, read_command_lines)
9243         (read_command_lines_1): Change argument types to function_view.
9244         (do_define_command, document_command): Update.
9245         * breakpoint.h (check_tracepoint_command): Don't declare.
9246         * breakpoint.c (check_tracepoint_command): Remove.
9247         (commands_command_1, create_tracepoint_from_upload): Update.
9248
9249 2018-05-04  Tom Tromey  <tom@tromey.com>
9250
9251         PR gdb/11750:
9252         * cli/cli-script.h (enum command_control_type) <define_control>:
9253         New constant.
9254         * cli/cli-script.c (multi_line_command_p): Handle define_control.
9255         (build_command_line, execute_control_command_1)
9256         (process_next_line): Likewise.
9257         (do_define_command): New function, extracted from define_command.
9258         (define_command): Use it.
9259
9260 2018-05-04  Tom Tromey  <tom@tromey.com>
9261
9262         * tracepoint.c (actions_command): Update.
9263         * cli/cli-script.h (read_command_lines): Update.
9264         * cli/cli-script.c (read_command_lines): Constify prompt_arg.
9265         (MAX_TMPBUF): Remove define.
9266         (define_command): Use string_printf.
9267         (document_command): Likewise.
9268         * breakpoint.c (commands_command_1): Update.
9269
9270 2018-05-04  Tom Tromey  <tom@tromey.com>
9271
9272         * top.c (execute_command): Update.
9273         * cli/cli-script.h (print_command_lines): Now varargs.
9274         * cli/cli-script.c (print_command_lines): Now varargs.
9275         (execute_control_command_1) <case while_control, case if_control>:
9276         Update.
9277
9278 2018-05-04  Tom Tromey  <tom@tromey.com>
9279
9280         * tracepoint.c (all_tracepoint_actions): Rename from
9281         all_tracepoint_actions_and_cleanup.  Change return type.
9282         (actions_command, encode_actions_1, encode_actions)
9283         (trace_dump_actions, tdump_command): Update.
9284         * remote.c (remote_download_command_source): Update.
9285         * python/python.c (gdbpy_eval_from_control_command)
9286         (python_command, python_interactive_command): Update.
9287         * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
9288         * guile/guile.c (guile_command)
9289         (gdbscm_eval_from_control_command, guile_command): Update.
9290         * compile/compile.c (compile_code_command)
9291         (compile_print_command, compile_to_object): Update.
9292         * cli/cli-script.h (struct command_lines_deleter): New.
9293         (counted_command_line): New typedef.
9294         (struct command_line): Add constructor, destructor.
9295         <body_list>: Remove.
9296         <body_list_0, body_list_1>: New members.
9297         (command_line_up): Remove typedef.
9298         (read_command_lines, read_command_lines_1, get_command_line):
9299         Update.
9300         (copy_command_lines): Don't declare.
9301         * cli/cli-script.c (build_command_line): Use "new".
9302         (get_command_line): Return counted_command_line.
9303         (print_command_lines, execute_user_command)
9304         (execute_control_command_1, while_command, if_command): Update.
9305         (realloc_body_list): Remove.
9306         (process_next_line, recurse_read_control_structure): Update.
9307         (read_command_lines, read_command_lines_1): Return counted_command_line.
9308         (free_command_lines): Use "delete".
9309         (copy_command_lines): Remove.
9310         (define_command, document_command, show_user_1): Update.
9311         * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
9312         a counted_command_line.
9313         * breakpoint.h (counted_command_line): Remove typedef.
9314         (breakpoint_set_commands): Update.
9315         * breakpoint.c (check_no_tracepoint_commands)
9316         (validate_commands_for_breakpoint): Update.
9317         (breakpoint_set_commands): Change commands to be a
9318         counted_command_line.
9319         (commands_command_1, update_dprintf_command_list)
9320         (create_tracepoint_from_upload): Update.
9321
9322 2018-05-04  Tom Tromey  <tom@tromey.com>
9323
9324         * cli/cli-decode.h (cmd_list_element): New constructor.
9325         (~cmd_list_element): New destructor.
9326         (struct cmd_list_element): Add initializers.
9327         * cli/cli-decode.c (do_add_cmd): Use "new".
9328         (delete_cmd): Use "delete".
9329
9330 2018-05-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
9331             Pedro Alves <palves@redhat.com>
9332
9333         PR breakpoints/19806 and support for PR external/20207.
9334         * NEWS: Mention Aarch64 watchpoint improvements.
9335         * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
9336         watchpoints and PR external/20207 watchpoints.
9337         * nat/aarch64-linux-hw-point.c
9338         (kernel_supports_any_contiguous_range): New.
9339         (aarch64_watchpoint_offset): New.
9340         (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
9341         (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
9342         (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
9343         (aarch64_align_watchpoint): New parameters aligned_offset_p and
9344         next_addr_orig_p.  Support PR external/20207 watchpoints.
9345         (aarch64_downgrade_regs): New.
9346         (aarch64_dr_state_insert_one_point): New parameters offset and
9347         addr_orig.
9348         (aarch64_dr_state_remove_one_point): Likewise.
9349         (aarch64_handle_breakpoint): Update caller.
9350         (aarch64_handle_aligned_watchpoint): Likewise.
9351         (aarch64_handle_unaligned_watchpoint): Support addr_orig and
9352         aligned_offset.
9353         (aarch64_linux_set_debug_regs): Remove const from state.  Call
9354         aarch64_downgrade_regs.
9355         (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
9356         * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
9357         (DR_CONTROL_MASK): ... this.
9358         (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
9359         (unsigned int aarch64_watchpoint_offset): New prototype.
9360         (aarch64_linux_set_debug_regs): Remove const from state.
9361         * utils.c (align_up, align_down): Move to ...
9362         * common/common-utils.c (align_up, align_down): ... here.
9363         * utils.h (align_up, align_down): Move to ...
9364         * common/common-utils.h (align_up, align_down): ... here.
9365
9366 2018-05-04  Joel Brobecker  <brobecker@adacore.com>
9367
9368         * sparc-tdep.c (sparc_structure_return_p): Re-implement to
9369         match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
9370         (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
9371         Re-implement to match the ABI as summarized in GCC's
9372         gcc/config/sparc/sparc.c.  All callers updated.
9373         (sparc32_store_arguments): Remove assertion.
9374
9375 2018-05-04  Tom Tromey  <tom@tromey.com>
9376
9377         * printcmd.c: Don't include tui.h.
9378         (decode_format): Use skip_spaces.
9379
9380 2018-05-04  Tom Tromey  <tom@tromey.com>
9381
9382         PR gdb/22619:
9383         * printcmd.c (last_count): New global.
9384         (x_command): Use saved count when repeating.
9385
9386 2018-05-04  Tom Tromey  <tom@tromey.com>
9387
9388         * nto-procfs.c (do_closedir_cleanup): Remove.
9389         (procfs_pidlist): Use gdb_dir_up.
9390         * procfs.c (do_closedir_cleanup): Remove.
9391         (proc_update_threads): Use gdb_dir_up.
9392         * common/filestuff.h (struct gdb_dir_deleter): New.
9393         (gdb_dir_up): New typedef.
9394
9395 2018-05-04  Tom Tromey  <tom@tromey.com>
9396
9397         * ada-lang.c (print_mention_exception): Use std::string.
9398
9399 2018-05-04  Tom Tromey  <tom@tromey.com>
9400
9401         * ada-lang.c (create_excep_cond_exprs): Update.
9402         (ada_exception_catchpoint_cond_string): Use std::string.
9403
9404 2018-05-04  Tom Tromey  <tom@tromey.com>
9405
9406         * ada-lang.c (xget_renaming_scope): Return std::string.
9407         (old_renaming_is_invisible): Update.
9408
9409 2018-05-04  Tom Tromey  <tom@tromey.com>
9410
9411         * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
9412         (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
9413
9414 2018-05-04  Ulrich Weigand  <uweigand@de.ibm.com>
9415
9416         * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
9417
9418 2018-05-04  Tom Tromey  <tom@tromey.com>
9419
9420         * remote.c (remote_query_supported_append): Change type.
9421         (remote_check_symbols): Update.
9422
9423 2018-05-04  Paul Pluzhnikov  <ppluzhnikov@google.com>
9424
9425         PR gdb/11420
9426         * configure.ac: Prepend libpython.
9427         * python/python-config.py: Likewise.
9428         * configure: Regenerate.
9429
9430 2018-05-03  Simon Marchi  <simon.marchi@ericsson.com>
9431
9432         * Makefile.in (%.c: %.l): Use -t instead of --stdout.
9433
9434 2018-05-03  Pedro Alves  <palves@redhat.com>
9435
9436         * s390-linux-nat.c
9437         (s390_linux_nat_target::have_continuable_watchpoint): Mark with
9438         override.  Write 'true' instead of '1'.
9439         (s390_linux_nat_target::watchpoint_addr_within_range): Remove
9440         declaration.
9441
9442 2018-05-02  Pedro Alves  <palves@redhat.com>
9443
9444         * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
9445         add_inf_child_target.
9446         * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
9447         add_inf_child_target.
9448         * aix-thread.c (aix_thread_target_info): New.
9449         (aix_thread_target) <shortname, longname, doc>: Delete.
9450         <info>: New.
9451         * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
9452         add_inf_child_target.
9453         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
9454         add_inf_child_target.
9455         * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
9456         add_inf_child_target.
9457         * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
9458         add_inf_child_target.
9459         * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
9460         add_inf_child_target.
9461         * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
9462         add_inf_child_target.
9463         * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
9464         add_inf_child_target.
9465         * arm-linux-nat.c (_initialize_arm_linux_nat): Use
9466         add_inf_child_target.
9467         * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
9468         add_inf_child_target.
9469         * bfd-target.c (target_bfd_target_info): New.
9470         (target_bfd) <shortname, longname, doc>: Delete.
9471         <info>: New.
9472         * bsd-kvm.c (bsd_kvm_target_info): New.
9473         (bsd_kvm_target) <shortname, longname, doc>: Delete.
9474         <info>: New.
9475         (bsd_kvm_target::open): Rename to ...
9476         (bsd_kvm_target_open): ... this.  Adjust.
9477         * bsd-uthread.c (bsd_uthread_target_info): New.
9478         (bsd_uthread_target) <shortname, longname, doc>: Delete.
9479         <info>: New.
9480         * corefile.c (core_file_command): Adjust.
9481         * corelow.c (core_target_info): New.
9482         (core_target) <shortname, longname, doc>: Delete.
9483         <info>: New.
9484         (core_target::open): Rename to ...
9485         (core_target_open): ... this.  Adjust.
9486         * ctf.c (ctf_target_info): New.
9487         (ctf_target) <shortname, longname, doc>: Delete.
9488         <info>: New.
9489         (ctf_target::open): Rename to ...
9490         (ctf_target_open): ... this.
9491         (_initialize_ctf): Adjust.
9492         * exec.c (exec_target_info): New.
9493         (exec_target) <shortname, longname, doc>: Delete.
9494         <info>: New.
9495         (exec_target::open): Rename to ...
9496         (exec_target_open): ... this.
9497         * gdbcore.h (core_target_open): Declare.
9498         * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
9499         * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
9500         add_inf_child_target.
9501         * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
9502         add_inf_child_target.
9503         * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
9504         add_inf_child_target.
9505         * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
9506         add_inf_child_target.
9507         * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
9508         add_inf_child_target.
9509         * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
9510         add_inf_child_target.
9511         * i386-linux-nat.c (_initialize_i386_linux_nat): Use
9512         add_inf_child_target.
9513         * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
9514         add_inf_child_target.
9515         * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
9516         add_inf_child_target.
9517         * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
9518         add_inf_child_target.
9519         * inf-child.c (inf_child_target_info): New.
9520         (inf_child_target::info): New.
9521         (inf_child_open_target): Remove 'target' parameter.  Use
9522         get_native_target instead.
9523         (inf_child_target::open): Delete.
9524         (add_inf_child_target): New.
9525         * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
9526         Delete.
9527         <info>: New.
9528         (add_inf_child_target): Declare.
9529         (inf_child_open_target): Declare.
9530         * linux-thread-db.c (thread_db_target_info): New.
9531         (thread_db_target) <shortname, longname, doc>: Delete.
9532         <info>: New.
9533         * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
9534         add_inf_child_target.
9535         * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
9536         add_inf_child_target.
9537         * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
9538         add_inf_child_target.
9539         * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
9540         add_inf_child_target.
9541         * make-target-delegates (print_class): Adjust.
9542         * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
9543         add_inf_child_target.
9544         * mips-linux-nat.c (_initialize_mips_linux_nat): Use
9545         add_inf_child_target.
9546         * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
9547         add_inf_child_target.
9548         * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
9549         add_inf_child_target.
9550         * nto-procfs.c (nto_native_target_info): New.
9551         (nto_procfs_target_native) <shortname, longname, doc>:
9552         Delete.
9553         <info>: New.
9554         (nto_procfs_target_info): New.
9555         (nto_procfs_target_procfs) <shortname, longname, doc>:
9556         Delete.
9557         <info>: New.
9558         (init_procfs_targets): Adjust.
9559         * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
9560         add_inf_child_target.
9561         * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
9562         add_inf_child_target.
9563         * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
9564         add_inf_child_target.
9565         * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
9566         add_inf_child_target.
9567         * ravenscar-thread.c (ravenscar_target_info): New.
9568         (ravenscar_thread_target) <shortname, longname, doc>:
9569         Delete.
9570         <info>: New.
9571         * record-btrace.c (record_btrace_target_info):
9572         (record_btrace_target) <shortname, longname, doc>: Delete.
9573         <info>: New.
9574         (record_btrace_target::open): Rename to ...
9575         (record_btrace_target_open): ... this.  Adjust.
9576         * record-full.c (record_longname, record_doc): New.
9577         (record_full_base_target) <shortname, longname, doc>: Delete.
9578         <info>: New.
9579         (record_full_target_info): New.
9580         (record_full_target): <shortname>: Delete.
9581         <info>: New.
9582         (record_full_core_open_1, record_full_open_1): Update comments.
9583         (record_full_base_target::open): Rename to ...
9584         (record_full_open): ... this.
9585         (cmd_record_full_restore): Update.
9586         (_initialize_record_full): Update.
9587         * remote-sim.c (remote_sim_target_info): New.
9588         (gdbsim_target) <shortname, longname, doc>: Delete.
9589         <info>: New.
9590         (gdbsim_target::open): Rename to ...
9591         (gdbsim_target_open): ... this.
9592         (_initialize_remote_sim): Adjust.
9593         * remote.c (remote_doc): New.
9594         (remote_target_info): New.
9595         (remote_target) <shortname, longname, doc>: Delete.
9596         <info>: New.
9597         (extended_remote_target_info): New.
9598         (extended_remote_target) <shortname, longname, doc>: Delete.
9599         <info>: New.
9600         (remote_target::open_1): Make static.  Adjust.
9601         * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
9602         * s390-linux-nat.c (_initialize_s390_nat): Use
9603         add_inf_child_target.
9604         * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
9605         add_inf_child_target.
9606         * sol-thread.c (thread_db_target_info): New.
9607         (sol_thread_target) <shortname, longname, doc>: Delete.
9608         <info>: New.
9609         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
9610         add_inf_child_target.
9611         * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
9612         add_inf_child_target.
9613         * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
9614         add_inf_child_target.
9615         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
9616         add_inf_child_target.
9617         * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
9618         add_inf_child_target.
9619         * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
9620         add_inf_child_target.
9621         * spu-linux-nat.c (_initialize_spu_nat): Use
9622         add_inf_child_target.
9623         * spu-multiarch.c (spu_multiarch_target_info): New.
9624         (spu_multiarch_target) <shortname, longname, doc>: Delete.
9625         <info>: New.
9626         * target-delegates.c: Regenerate.
9627         * target.c: Include <unordered_map>.
9628         (target_ops_p): Delete.
9629         (DEF_VEC_P(target_ops_p)): Delete.
9630         (target_factories): New.
9631         (test_target_info): New.
9632         (test_target_ops::info): New.
9633         (open_target): Adjust to use target_factories.
9634         (add_target_with_completer): Rename to ...
9635         (add_target): ... this.  Change prototype.  Register target_info
9636         and open callback in target_factories.  Register target_info in
9637         command context instead of target_ops.
9638         (add_target): Delete old implementation.
9639         (add_deprecated_target_alias): Change prototype.  Adjust.
9640         (the_native_target): New.
9641         (set_native_target, get_native_target): New.
9642         (find_default_run_target): Use the_native_target.
9643         (find_attach_target, find_run_target): Simplify.
9644         (target_ops::open): Delete.
9645         (dummy_target_info): New.
9646         (dummy_target::shortname, dummy_target::longname)
9647         (dummy_target::doc): Delete.
9648         (dummy_target::info): New.
9649         (debug_target::shortname, debug_target::longname)
9650         (debug_target::doc): Delete.
9651         (debug_target::info): New.
9652         * target.h (struct target_info): New.
9653         (target_ops::~target_ops): Add comment.
9654         (target_ops::info): New.
9655         (target_ops::shortname, target_ops::longname, target_ops::doc): No
9656         longer virtual.  Implement in terms of target_info.
9657         (set_native_target, get_native_target): Declare.
9658         (target_open_ftype): New.
9659         (add_target, add_target_with_completer)
9660         (add_deprecated_target_alias): Change prototype.
9661         (test_target) <shortname, longname, doc>: Delete.
9662         <info>: New.
9663         * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
9664         add_inf_child_target.
9665         * tracefile-tfile.c (tfile_target_info): New.
9666         (tfile_target) <shortname, longname, doc>: Delete.
9667         <info>: New.
9668         (tfile_target::open): Rename to ...
9669         (tfile_target_open): ... this.
9670         (_initialize_tracefile_tfile): Adjust.
9671         * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
9672         add_inf_child_target.
9673         * windows-nat.c (_initialize_windows_nat): Use
9674         add_inf_child_target.
9675         * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
9676         add_inf_child_target.
9677
9678 2018-05-02  Pedro Alves  <palves@redhat.com>
9679
9680         * linux-nat.h (linux_nat_target) <low_new_thread,
9681         low_delete_thread, low_new_fork, low_forget_process,
9682         low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
9683         New virtual methods.
9684         (linux_nat_set_new_thread, linux_nat_set_delete_thread)
9685         (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
9686         (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
9687         (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
9688         (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
9689         Delete.
9690         * linux-fork.c (delete_fork): Adjust to call low method.
9691         * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
9692         (linux_nat_new_fork, linux_nat_forget_process_hook)
9693         (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
9694         (linux_nat_status_is_event):
9695         (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
9696         (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
9697         to call low method.
9698         (sigtrap_is_event): Rename to ...
9699         (linux_nat_target::low_status_is_event): ... this.
9700         (linux_nat_set_status_is_event): Delete.
9701         (save_stop_reason, linux_nat_wait_1)
9702         (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
9703         low methods.
9704         (linux_nat_set_new_thread, linux_nat_set_delete_thread)
9705         (linux_nat_set_new_fork, linux_nat_set_forget_process)
9706         (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
9707         (linux_nat_set_prepare_to_resume): Delete.
9708         * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
9709         low virtual methods.
9710         * amd64-linux-nat.c: Likewise.
9711         * arm-linux-nat.c: Likewise.
9712         * i386-linux-nat.c: Likewise.
9713         * ia64-linux-nat.c: Likewise.
9714         * mips-linux-nat.c: Likewise.
9715         * ppc-linux-nat.c: Likewise.
9716         * s390-linux-nat.c: Likewise.
9717         * sparc64-linux-nat.c: Likewise.
9718         * x86-linux-nat.c: Likewise.
9719         * x86-linux-nat.h: Include "nat/x86-linux.h".
9720         (x86_linux_nat_target) <low_new_fork, low_forget_process,
9721         low_prepare_to_resume, low_new_thread, low_delete_thread>:
9722         Override methods.
9723
9724 2018-05-02  Pedro Alves  <palves@redhat.com>
9725
9726         * target.h (target_ops)
9727         <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
9728         stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
9729         stopped_by_watchpoint, have_continuable_watchpoint,
9730         stopped_data_address, watchpoint_addr_within_range,
9731         can_accel_watchpoint_condition, can_run, thread_alive,
9732         has_all_memory, has_memory, has_stack, has_registers,
9733         has_execution, can_async_p, is_async_p, supports_non_stop,
9734         always_non_stop_p, can_execute_reverse, supports_multi_process,
9735         supports_enable_disable_tracepoint,
9736         supports_disable_randomization, supports_string_tracing,
9737         supports_evaluation_of_breakpoint_conditions,
9738         can_run_breakpoint_commands, filesystem_is_local,
9739         can_download_tracepoint, get_trace_state_variable_value,
9740         set_trace_notes, get_tib_address, use_agent, can_use_agent,
9741         record_is_replaying, record_will_replay,
9742         augmented_libraries_svr4_read>: Adjust to return bool.
9743         * aarch64-linux-nat.c: All implementations adjusted.
9744         * aix-thread.c: All implementations adjusted.
9745         * arm-linux-nat.c: All implementations adjusted.
9746         * breakpoint.c: All implementations adjusted.
9747         * bsd-kvm.c: All implementations adjusted.
9748         * bsd-uthread.c: All implementations adjusted.
9749         * corelow.c: All implementations adjusted.
9750         * ctf.c: All implementations adjusted.
9751         * darwin-nat.c: All implementations adjusted.
9752         * darwin-nat.h: All implementations adjusted.
9753         * exec.c: All implementations adjusted.
9754         * fbsd-nat.c: All implementations adjusted.
9755         * fbsd-nat.h: All implementations adjusted.
9756         * gnu-nat.c: All implementations adjusted.
9757         * gnu-nat.h: All implementations adjusted.
9758         * go32-nat.c: All implementations adjusted.
9759         * ia64-linux-nat.c: All implementations adjusted.
9760         * inf-child.c: All implementations adjusted.
9761         * inf-child.h: All implementations adjusted.
9762         * inf-ptrace.c: All implementations adjusted.
9763         * inf-ptrace.h: All implementations adjusted.
9764         * linux-nat.c: All implementations adjusted.
9765         * linux-nat.h: All implementations adjusted.
9766         * mips-linux-nat.c: All implementations adjusted.
9767         * nto-procfs.c: All implementations adjusted.
9768         * ppc-linux-nat.c: All implementations adjusted.
9769         * procfs.c: All implementations adjusted.
9770         * ravenscar-thread.c: All implementations adjusted.
9771         * record-btrace.c: All implementations adjusted.
9772         * record-full.c: All implementations adjusted.
9773         * remote-sim.c: All implementations adjusted.
9774         * remote.c: All implementations adjusted.
9775         * s390-linux-nat.c: All implementations adjusted.
9776         * sol-thread.c: All implementations adjusted.
9777         * spu-multiarch.c: All implementations adjusted.
9778         * target-delegates.c: All implementations adjusted.
9779         * target.c: All implementations adjusted.
9780         * target.h: All implementations adjusted.
9781         * tracefile-tfile.c: All implementations adjusted.
9782         * tracefile.c: All implementations adjusted.
9783         * tracefile.h: All implementations adjusted.
9784         * windows-nat.c: All implementations adjusted.
9785         * x86-linux-nat.h: All implementations adjusted.
9786         * x86-nat.h: All implementations adjusted.
9787
9788 2018-05-02  Pedro Alves  <palves@redhat.com>
9789
9790         * make-target-delegates (scan_target_h): Don't trim lines here.
9791         Replace sequences of tabs and/or whitespace with a single
9792         whitespace.
9793         (top level, parsing methods): Trim each line before processing it
9794         here.
9795
9796 2018-05-02  Pedro Alves  <palves@redhat.com>
9797             John Baldwin  <jhb@freebsd.org>
9798
9799         * target.h (enum strata) <debug_stratum>: New.
9800         (struct target_ops) <all delegation methods>: Replace by C++
9801         virtual methods, and drop "to_" prefix.  All references updated
9802         throughout.
9803         <to_shortname, to_longname, to_doc, to_data,
9804         to_have_steppable_watchpoint, to_have_continuable_watchpoint,
9805         to_has_thread_control, to_attach_no_wait>: Delete, replaced by
9806         virtual methods.  All references updated throughout.
9807         <can_attach, supports_terminal_ours, can_create_inferior,
9808         get_thread_control_capabilities, attach_no_wait>: New
9809         virtual methods.
9810         <insert_breakpoint, remove_breakpoint>: Now
9811         TARGET_DEFAULT_NORETURN methods.
9812         <info_proc>: Now returns bool.
9813         <to_magic>: Delete.
9814         (OPS_MAGIC): Delete.
9815         (current_target): Delete.  All references replaced by references
9816         to ...
9817         (target_stack): ... this.  New.
9818         (target_shortname, target_longname): Adjust.
9819         (target_can_run): Now a function declaration.
9820         (default_child_has_all_memory, default_child_has_memory)
9821         (default_child_has_stack, default_child_has_registers)
9822         (default_child_has_execution): Remove target_ops parameter.
9823         (complete_target_initialization): Delete.
9824         (memory_breakpoint_target): New template class.
9825         (test_target_ops): Refactor as a C++ class with virtual methods.
9826         * make-target-delegates (NAME_PART): Tighten.
9827         (POINTER_PART, CP_SYMBOL): New.
9828         (SIMPLE_RETURN_PART): Reimplement.
9829         (VEC_RETURN_PART): Expect less.
9830         (RETURN_PART, VIRTUAL_PART): New.
9831         (METHOD): Adjust to C++ virtual methods.
9832         (scan_target_h): Remove reference to C99.
9833         (dname): Output "target_ops::" prefix.
9834         (write_function_header): Adjust to output a C++ class method.
9835         (write_declaration): New.
9836         (write_delegator): Adjust to output a C++ class method.
9837         (tdname): Output "dummy_target::" prefix.
9838         (write_tdefault, write_debugmethod): Adjust to output a C++ class
9839         method.
9840         (tdefault_names, debug_names): Delete.
9841         (return_types, tdefaults, styles, argtypes_array): New.
9842         (top level): All methods are delegators.
9843         (print_class): New.
9844         (top level): Print dummy_target and debug_target classes.
9845         * target-delegates.c: Regenerate.
9846         * target-debug.h (target_debug_print_enum_info_proc_what)
9847         (target_debug_print_thread_control_capabilities)
9848         (target_debug_print_thread_info_p): New.
9849         * target.c (dummy_target): Delete.
9850         (the_dummy_target, the_debug_target): New.
9851         (target_stack): Now extern.
9852         (set_targetdebug): Push/unpush debug target.
9853         (default_child_has_all_memory, default_child_has_memory)
9854         (default_child_has_stack, default_child_has_registers)
9855         (default_child_has_execution): Remove target_ops parameter.
9856         (complete_target_initialization): Delete.
9857         (add_target_with_completer): No longer call
9858         complete_target_initialization.
9859         (target_supports_terminal_ours): Use regular delegation.
9860         (update_current_target): Delete.
9861         (push_target): No longer check magic number.  Don't call
9862         update_current_target.
9863         (unpush_target): Don't call update_current_target.
9864         (target_is_pushed): No longer check magic number.
9865         (target_require_runnable): Skip for all stratums over
9866         process_stratum.
9867         (target_ops::info_proc): New.
9868         (target_info_proc): Use find_target_at and
9869         find_default_run_target.
9870         (target_supports_disable_randomization): Use regular delegation.
9871         (target_get_osdata): Use find_target_at.
9872         (target_ops::open, target_ops::close, target_ops::can_attach)
9873         (target_ops::attach, target_ops::can_create_inferior)
9874         (target_ops::create_inferior, target_ops::can_run)
9875         (target_can_run): New.
9876         (default_fileio_target): Use regular delegation.
9877         (target_ops::fileio_open, target_ops::fileio_pwrite)
9878         (target_ops::fileio_pread, target_ops::fileio_fstat)
9879         (target_ops::fileio_close, target_ops::fileio_unlink)
9880         (target_ops::fileio_readlink): New.
9881         (target_fileio_open_1, target_fileio_unlink)
9882         (target_fileio_readlink): Always call the target method.  Handle
9883         FILEIO_ENOSYS.
9884         (return_zero, return_zero_has_execution): Delete.
9885         (init_dummy_target): Delete.
9886         (dummy_target::dummy_target, dummy_target::shortname)
9887         (dummy_target::longname, dummy_target::doc)
9888         (debug_target::debug_target, debug_target::shortname)
9889         (debug_target::longname, debug_target::doc): New.
9890         (target_supports_delete_record): Use regular delegation.
9891         (setup_target_debug): Delete.
9892         (maintenance_print_target_stack): Skip debug_stratum.
9893         (initialize_targets): Instantiate the_dummy_target and
9894         the_debug_target.
9895         * auxv.c (target_auxv_parse): Remove 'ops' parameter.  Adjust to
9896         use target_stack.
9897         (target_auxv_search, fprint_target_auxv): Adjust.
9898         (info_auxv_command): Adjust to use target_stack.
9899         * auxv.h (target_auxv_parse): Remove 'ops' parameter.
9900         * exceptions.c (print_flush): Handle a NULL target_stack.
9901         * regcache.c (target_ops_no_register): Refactor as class with
9902         virtual methods.
9903
9904         * exec.c (exec_target): New class.
9905         (exec_ops): Now an exec_target.
9906         (exec_open, exec_close_1, exec_get_section_table)
9907         (exec_xfer_partial, exec_files_info, exec_has_memory)
9908         (exec_make_note_section): Refactor as exec_target methods.
9909         (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
9910         Delete.
9911         (exec_target::find_memory_regions): New.
9912         (_initialize_exec): Don't call init_exec_ops.
9913         * gdbcore.h (exec_file_clear): Delete.
9914
9915         * corefile.c (core_target): Delete.
9916         (core_file_command): Adjust.
9917         * corelow.c (core_target): New class.
9918         (the_core_target): New.
9919         (core_close): Remove target_ops parameter.
9920         (core_close_cleanup): Adjust.
9921         (core_target::close): New.
9922         (core_open, core_detach, get_core_registers, core_files_info)
9923         (core_xfer_partial, core_thread_alive, core_read_description)
9924         (core_pid_to_str, core_thread_name, core_has_memory)
9925         (core_has_stack, core_has_registers, core_info_proc): Rework as
9926         core_target methods.
9927         (ignore, core_remove_breakpoint, init_core_ops): Delete.
9928         (_initialize_corelow): Initialize the_core_target.
9929         * gdbcore.h (core_target): Delete.
9930         (the_core_target): New.
9931
9932         * ctf.c: (ctf_target): New class.
9933         (ctf_ops): Now a ctf_target.
9934         (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
9935         (ctf_xfer_partial, ctf_get_trace_state_variable_value)
9936         (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
9937         methods.
9938         (init_ctf_ops): Delete.
9939         (_initialize_ctf): Don't call it.
9940         * tracefile-tfile.c (tfile_target): New class.
9941         (tfile_ops): Now a tfile_target.
9942         (tfile_open, tfile_close, tfile_files_info)
9943         (tfile_get_tracepoint_status, tfile_trace_find)
9944         (tfile_fetch_registers, tfile_xfer_partial)
9945         (tfile_get_trace_state_variable_value, tfile_traceframe_info):
9946         Refactor as tfile_target methods.
9947         (tfile_xfer_partial_features): Remove target_ops parameter.
9948         (init_tfile_ops): Delete.
9949         (_initialize_tracefile_tfile): Don't call it.
9950         * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
9951         (tracefile_has_stack, tracefile_has_registers)
9952         (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
9953         tracefile_target methods.
9954         (init_tracefile_ops): Delete.
9955         (tracefile_target::tracefile_target): New.
9956         * tracefile.h: Include "target.h".
9957         (tracefile_target): New class.
9958         (init_tracefile_ops): Delete.
9959
9960         * spu-multiarch.c (spu_multiarch_target): New class.
9961         (spu_ops): Now a spu_multiarch_target.
9962         (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
9963         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
9964         (spu_search_memory, spu_mourn_inferior): Refactor as
9965         spu_multiarch_target methods.
9966         (init_spu_ops): Delete.
9967         (_initialize_spu_multiarch): Remove references to init_spu_ops,
9968         complete_target_initialization.
9969
9970         * ravenscar-thread.c (ravenscar_thread_target): New class.
9971         (ravenscar_ops): Now a ravenscar_thread_target.
9972         (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
9973         (ravenscar_thread_alive, ravenscar_pid_to_str)
9974         (ravenscar_fetch_registers, ravenscar_store_registers)
9975         (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
9976         (ravenscar_stopped_by_hw_breakpoint)
9977         (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
9978         (ravenscar_mourn_inferior, ravenscar_core_of_thread)
9979         (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
9980         methods.
9981         (init_ravenscar_thread_ops): Delete.
9982         (_initialize_ravenscar): Remove references to
9983         init_ravenscar_thread_ops and complete_target_initialization.
9984
9985         * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
9986         (bsd_uthread_target): New class.
9987         (bsd_uthread_ops): Now a bsd_uthread_target.
9988         (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
9989         (bsd_uthread_close, bsd_uthread_mourn_inferior)
9990         (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
9991         (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
9992         (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
9993         (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
9994         (bsd_uthread_target): Delete function.
9995         (_initialize_bsd_uthread): Remove reference to
9996         complete_target_initialization.
9997
9998         * bfd-target.c (target_bfd_data): Delete.  Fields folded into ...
9999         (target_bfd): ... this new class.
10000         (target_bfd_xfer_partial, target_bfd_get_section_table)
10001         (target_bfd_close): Refactor as target_bfd methods.
10002         (target_bfd::~target_bfd): New.
10003         (target_bfd_reopen): Adjust.
10004         (target_bfd::close): New.
10005
10006         * record-btrace.c (record_btrace_target): New class.
10007         (record_btrace_ops): Now a record_btrace_target.
10008         (record_btrace_open, record_btrace_stop_recording)
10009         (record_btrace_disconnect, record_btrace_close)
10010         (record_btrace_async, record_btrace_info)
10011         (record_btrace_insn_history, record_btrace_insn_history_range)
10012         (record_btrace_insn_history_from, record_btrace_call_history)
10013         (record_btrace_call_history_range)
10014         (record_btrace_call_history_from, record_btrace_record_method)
10015         (record_btrace_is_replaying, record_btrace_will_replay)
10016         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
10017         (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
10018         (record_btrace_store_registers, record_btrace_prepare_to_store)
10019         (record_btrace_to_get_unwinder)
10020         (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
10021         (record_btrace_commit_resume, record_btrace_wait)
10022         (record_btrace_stop, record_btrace_can_execute_reverse)
10023         (record_btrace_stopped_by_sw_breakpoint)
10024         (record_btrace_supports_stopped_by_sw_breakpoint)
10025         (record_btrace_stopped_by_hw_breakpoint)
10026         (record_btrace_supports_stopped_by_hw_breakpoint)
10027         (record_btrace_update_thread_list, record_btrace_thread_alive)
10028         (record_btrace_goto_begin, record_btrace_goto_end)
10029         (record_btrace_goto, record_btrace_stop_replaying_all)
10030         (record_btrace_execution_direction)
10031         (record_btrace_prepare_to_generate_core)
10032         (record_btrace_done_generating_core): Refactor as
10033         record_btrace_target methods.
10034         (init_record_btrace_ops): Delete.
10035         (_initialize_record_btrace): Remove reference to
10036         init_record_btrace_ops.
10037         * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
10038         the execution_direction global.
10039         (record_full_base_target, record_full_target)
10040         (record_full_core_target): New classes.
10041         (record_full_ops): Now a record_full_target.
10042         (record_full_core_ops): Now a record_full_core_target.
10043         (record_full_target::detach, record_full_target::disconnect)
10044         (record_full_core_target::disconnect)
10045         (record_full_target::mourn_inferior, record_full_target::kill):
10046         New.
10047         (record_full_open, record_full_close, record_full_async): Refactor
10048         as methods of the record_full_base_target class.
10049         (record_full_resume, record_full_commit_resume): Refactor
10050         as methods of the record_full_target class.
10051         (record_full_wait, record_full_stopped_by_watchpoint)
10052         (record_full_stopped_data_address)
10053         (record_full_stopped_by_sw_breakpoint)
10054         (record_full_supports_stopped_by_sw_breakpoint)
10055         (record_full_stopped_by_hw_breakpoint)
10056         (record_full_supports_stopped_by_hw_breakpoint): Refactor as
10057         methods of the record_full_base_target class.
10058         (record_full_store_registers, record_full_xfer_partial)
10059         (record_full_insert_breakpoint, record_full_remove_breakpoint):
10060         Refactor as methods of the record_full_target class.
10061         (record_full_can_execute_reverse, record_full_get_bookmark)
10062         (record_full_goto_bookmark, record_full_execution_direction)
10063         (record_full_record_method, record_full_info, record_full_delete)
10064         (record_full_is_replaying, record_full_will_replay)
10065         (record_full_goto_begin, record_full_goto_end, record_full_goto)
10066         (record_full_stop_replaying): Refactor as methods of the
10067         record_full_base_target class.
10068         (record_full_core_resume, record_full_core_kill)
10069         (record_full_core_fetch_registers)
10070         (record_full_core_prepare_to_store)
10071         (record_full_core_store_registers, record_full_core_xfer_partial)
10072         (record_full_core_insert_breakpoint)
10073         (record_full_core_remove_breakpoint)
10074         (record_full_core_has_execution): Refactor
10075         as methods of the record_full_core_target class.
10076         (record_full_base_target::supports_delete_record): New.
10077         (init_record_full_ops): Delete.
10078         (init_record_full_core_ops): Delete.
10079         (record_full_save): Refactor as method of the
10080         record_full_base_target class.
10081         (_initialize_record_full): Remove references to
10082         init_record_full_ops and init_record_full_core_ops.
10083
10084         * remote.c (remote_target, extended_remote_target): New classes.
10085         (remote_ops): Now a remote_target.
10086         (extended_remote_ops): Now an extended_remote_target.
10087         (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
10088         (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
10089         (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
10090         (remote_pass_signals, remote_set_syscall_catchpoint)
10091         (remote_program_signals, )
10092         (remote_thread_always_alive): Remove target_ops parameter.
10093         (remote_thread_alive, remote_thread_name)
10094         (remote_update_thread_list, remote_threads_extra_info)
10095         (remote_static_tracepoint_marker_at)
10096         (remote_static_tracepoint_markers_by_strid)
10097         (remote_get_ada_task_ptid, remote_close, remote_start_remote)
10098         (remote_open): Refactor as methods of remote_target.
10099         (extended_remote_open, extended_remote_detach)
10100         (extended_remote_attach, extended_remote_post_attach):
10101         (extended_remote_supports_disable_randomization)
10102         (extended_remote_create_inferior): : Refactor as method of
10103         extended_remote_target.
10104         (remote_set_permissions, remote_open_1, remote_detach)
10105         (remote_follow_fork, remote_follow_exec, remote_disconnect)
10106         (remote_resume, remote_commit_resume, remote_stop)
10107         (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
10108         (remote_terminal_ours, remote_wait, remote_fetch_registers)
10109         (remote_prepare_to_store, remote_store_registers)
10110         (remote_flash_erase, remote_flash_done, remote_files_info)
10111         (remote_kill, remote_mourn, remote_insert_breakpoint)
10112         (remote_remove_breakpoint, remote_insert_watchpoint)
10113         (remote_watchpoint_addr_within_range)
10114         (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
10115         (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
10116         (remote_supports_stopped_by_sw_breakpoint)
10117         (remote_stopped_by_hw_breakpoint)
10118         (remote_supports_stopped_by_hw_breakpoint)
10119         (remote_stopped_by_watchpoint, remote_stopped_data_address)
10120         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
10121         (remote_verify_memory): Refactor as methods of remote_target.
10122         (remote_write_qxfer, remote_read_qxfer): Remove target_ops
10123         parameter.
10124         (remote_xfer_partial, remote_get_memory_xfer_limit)
10125         (remote_search_memory, remote_rcmd, remote_memory_map)
10126         (remote_pid_to_str, remote_get_thread_local_address)
10127         (remote_get_tib_address, remote_read_description): Refactor as
10128         methods of remote_target.
10129         (remote_target::fileio_open, remote_target::fileio_pwrite)
10130         (remote_target::fileio_pread, remote_target::fileio_close): New.
10131         (remote_hostio_readlink, remote_hostio_fstat)
10132         (remote_filesystem_is_local, remote_can_execute_reverse)
10133         (remote_supports_non_stop, remote_supports_disable_randomization)
10134         (remote_supports_multi_process, remote_supports_cond_breakpoints)
10135         (remote_supports_enable_disable_tracepoint)
10136         (remote_supports_string_tracing)
10137         (remote_can_run_breakpoint_commands, remote_trace_init)
10138         (remote_download_tracepoint, remote_can_download_tracepoint)
10139         (remote_download_trace_state_variable, remote_enable_tracepoint)
10140         (remote_disable_tracepoint, remote_trace_set_readonly_regions)
10141         (remote_trace_start, remote_get_trace_status)
10142         (remote_get_tracepoint_status, remote_trace_stop)
10143         (remote_trace_find, remote_get_trace_state_variable_value)
10144         (remote_save_trace_data, remote_get_raw_trace_data)
10145         (remote_set_disconnected_tracing, remote_core_of_thread)
10146         (remote_set_circular_trace_buffer, remote_traceframe_info)
10147         (remote_get_min_fast_tracepoint_insn_len)
10148         (remote_set_trace_buffer_size, remote_set_trace_notes)
10149         (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
10150         (remote_disable_btrace, remote_teardown_btrace)
10151         (remote_read_btrace, remote_btrace_conf)
10152         (remote_augmented_libraries_svr4_read, remote_load)
10153         (remote_pid_to_exec_file, remote_can_do_single_step)
10154         (remote_execution_direction, remote_thread_handle_to_thread_info):
10155         Refactor as methods of remote_target.
10156         (init_remote_ops, init_extended_remote_ops): Delete.
10157         (remote_can_async_p, remote_is_async_p, remote_async)
10158         (remote_thread_events, remote_upload_tracepoints)
10159         (remote_upload_trace_state_variables): Refactor as methods of
10160         remote_target.
10161         (_initialize_remote): Remove references to init_remote_ops and
10162         init_extended_remote_ops.
10163
10164         * remote-sim.c (gdbsim_target): New class.
10165         (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
10166         (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
10167         (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
10168         (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
10169         (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
10170         (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
10171         Refactor as methods of gdbsim_target.
10172         (gdbsim_ops): Now a gdbsim_target.
10173         (init_gdbsim_ops): Delete.
10174         (gdbsim_cntrl_c): Adjust.
10175         (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
10176
10177         * amd64-linux-nat.c (amd64_linux_nat_target): New class.
10178         (the_amd64_linux_nat_target): New.
10179         (amd64_linux_fetch_inferior_registers)
10180         (amd64_linux_store_inferior_registers): Refactor as methods of
10181         amd64_linux_nat_target.
10182         (_initialize_amd64_linux_nat): Adjust.  Set linux_target.
10183         * i386-linux-nat.c: Don't include "linux-nat.h".
10184         (i386_linux_nat_target): New class.
10185         (the_i386_linux_nat_target): New.
10186         (i386_linux_fetch_inferior_registers)
10187         (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
10188         as methods of i386_linux_nat_target.
10189         (_initialize_i386_linux_nat): Adjust.  Set linux_target.
10190         * inf-child.c (inf_child_ops): Delete.
10191         (inf_child_fetch_inferior_registers)
10192         (inf_child_store_inferior_registers): Delete.
10193         (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
10194         methods of inf_child_target.
10195         (inf_child_target::supports_terminal_ours)
10196         (inf_child_target::terminal_init)
10197         (inf_child_target::terminal_inferior)
10198         (inf_child_target::terminal_ours_for_output)
10199         (inf_child_target::terminal_ours, inf_child_target::interrupt)
10200         (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
10201         New.
10202         (inf_child_open, inf_child_disconnect, inf_child_close)
10203         (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
10204         (inf_child_post_startup_inferior, inf_child_can_run)
10205         (inf_child_pid_to_exec_file): Refactor as methods of
10206         inf_child_target.
10207         (inf_child_follow_fork): Delete.
10208         (inf_child_target::can_create_inferior)
10209         (inf_child_target::can_attach): New.
10210         (inf_child_target::has_all_memory, inf_child_target::has_memory)
10211         (inf_child_target::has_stack, inf_child_target::has_registers)
10212         (inf_child_target::has_execution): New.
10213         (inf_child_fileio_open, inf_child_fileio_pwrite)
10214         (inf_child_fileio_pread, inf_child_fileio_fstat)
10215         (inf_child_fileio_close, inf_child_fileio_unlink)
10216         (inf_child_fileio_readlink, inf_child_use_agent)
10217         (inf_child_can_use_agent): Refactor as methods of
10218         inf_child_target.
10219         (return_zero, inf_child_target): Delete.
10220         (inf_child_target::inf_child_target): New.
10221         * inf-child.h: Include "target.h".
10222         (inf_child_target): Delete function prototype.
10223         (inf_child_target): New class.
10224         (inf_child_open_target, inf_child_mourn_inferior)
10225         (inf_child_maybe_unpush_target): Delete.
10226         * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
10227         (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
10228         (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
10229         (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
10230         (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
10231         (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
10232         (inf_ptrace_wait, inf_ptrace_xfer_partial)
10233         (inf_ptrace_thread_alive, inf_ptrace_files_info)
10234         (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
10235         methods of inf_ptrace_target.
10236         (inf_ptrace_target): Delete function.
10237         * inf-ptrace.h: Include "inf-child.h".
10238         (inf_ptrace_target): Delete function declaration.
10239         (inf_ptrace_target): New class.
10240         (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
10241         * linux-nat.c (linux_target): New.
10242         (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
10243         (linux_nat_target::~linux_nat_target): New.
10244         (linux_child_post_attach, linux_child_post_startup_inferior)
10245         (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
10246         (linux_child_remove_fork_catchpoint)
10247         (linux_child_insert_vfork_catchpoint)
10248         (linux_child_remove_vfork_catchpoint)
10249         (linux_child_insert_exec_catchpoint)
10250         (linux_child_remove_exec_catchpoint)
10251         (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
10252         (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
10253         (linux_nat_resume, linux_nat_stopped_by_watchpoint)
10254         (linux_nat_stopped_data_address)
10255         (linux_nat_stopped_by_sw_breakpoint)
10256         (linux_nat_supports_stopped_by_sw_breakpoint)
10257         (linux_nat_stopped_by_hw_breakpoint)
10258         (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
10259         (linux_nat_kill, linux_nat_mourn_inferior)
10260         (linux_nat_xfer_partial, linux_nat_thread_alive)
10261         (linux_nat_update_thread_list, linux_nat_pid_to_str)
10262         (linux_nat_thread_name, linux_child_pid_to_exec_file)
10263         (linux_child_static_tracepoint_markers_by_strid)
10264         (linux_nat_is_async_p, linux_nat_can_async_p)
10265         (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
10266         (linux_nat_supports_multi_process)
10267         (linux_nat_supports_disable_randomization, linux_nat_async)
10268         (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
10269         (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
10270         (linux_nat_fileio_open, linux_nat_fileio_readlink)
10271         (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
10272         methods of linux_nat_target.
10273         (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
10274         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
10275         parameter.
10276         (check_stopped_by_watchpoint): Adjust.
10277         (linux_xfer_partial): Delete.
10278         (linux_target_install_ops, linux_target, linux_nat_add_target):
10279         Delete.
10280         (linux_nat_target::linux_nat_target): New.
10281         * linux-nat.h: Include "inf-ptrace.h".
10282         (linux_nat_target): New.
10283         (linux_target, linux_target_install_ops, linux_nat_add_target):
10284         Delete function declarations.
10285         (linux_target): Declare global.
10286         * linux-thread-db.c (thread_db_target): New.
10287         (thread_db_target::thread_db_target): New.
10288         (thread_db_ops): Delete.
10289         (the_thread_db_target): New.
10290         (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
10291         (thread_db_update_thread_list, thread_db_pid_to_str)
10292         (thread_db_extra_thread_info)
10293         (thread_db_thread_handle_to_thread_info)
10294         (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
10295         (thread_db_resume): Refactor as methods of thread_db_target.
10296         (init_thread_db_ops): Delete.
10297         (_initialize_thread_db): Remove reference to init_thread_db_ops.
10298         * x86-linux-nat.c: Don't include "linux-nat.h".
10299         (super_post_startup_inferior): Delete.
10300         (x86_linux_nat_target::~x86_linux_nat_target): New.
10301         (x86_linux_child_post_startup_inferior)
10302         (x86_linux_read_description, x86_linux_enable_btrace)
10303         (x86_linux_disable_btrace, x86_linux_teardown_btrace)
10304         (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
10305         methods of x86_linux_nat_target.
10306         (x86_linux_create_target): Delete.  Bits folded ...
10307         (x86_linux_add_target): ... here.  Now takes a linux_nat_target
10308         pointer.
10309         * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
10310         (x86_linux_nat_target): New class.
10311         (x86_linux_create_target): Delete.
10312         (x86_linux_add_target): Now takes a linux_nat_target pointer.
10313         * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
10314         (x86_region_ok_for_watchpoint, x86_stopped_data_address)
10315         (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
10316         (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
10317         (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
10318         make extern.
10319         (x86_use_watchpoints): Delete.
10320         * x86-nat.h: Include "breakpoint.h" and "target.h".
10321         (x86_use_watchpoints): Delete.
10322         (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
10323         (x86_stopped_by_watchpoint, x86_stopped_data_address)
10324         (x86_insert_watchpoint, x86_remove_watchpoint)
10325         (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
10326         (x86_stopped_by_hw_breakpoint): New declarations.
10327         (x86_nat_target): New template class.
10328
10329         * ppc-linux-nat.c (ppc_linux_nat_target): New class.
10330         (the_ppc_linux_nat_target): New.
10331         (ppc_linux_fetch_inferior_registers)
10332         (ppc_linux_can_use_hw_breakpoint)
10333         (ppc_linux_region_ok_for_hw_watchpoint)
10334         (ppc_linux_ranged_break_num_registers)
10335         (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
10336         (ppc_linux_insert_mask_watchpoint)
10337         (ppc_linux_remove_mask_watchpoint)
10338         (ppc_linux_can_accel_watchpoint_condition)
10339         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
10340         (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
10341         (ppc_linux_watchpoint_addr_within_range)
10342         (ppc_linux_masked_watch_num_registers)
10343         (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
10344         (ppc_linux_read_description): Refactor as methods of
10345         ppc_linux_nat_target.
10346         (_initialize_ppc_linux_nat): Adjust.  Set linux_target.
10347
10348         * procfs.c (procfs_xfer_partial): Delete forward declaration.
10349         (procfs_target): New class.
10350         (the_procfs_target): New.
10351         (procfs_target): Delete function.
10352         (procfs_auxv_parse, procfs_attach, procfs_detach)
10353         (procfs_fetch_registers, procfs_store_registers, procfs_wait)
10354         (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
10355         (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
10356         (procfs_create_inferior, procfs_update_thread_list)
10357         (procfs_thread_alive, procfs_pid_to_str)
10358         (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
10359         (procfs_stopped_data_address, procfs_insert_watchpoint)
10360         (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
10361         (proc_find_memory_regions, procfs_info_proc)
10362         (procfs_make_note_section): Refactor as methods of procfs_target.
10363         (_initialize_procfs): Adjust.
10364         * sol-thread.c (sol_thread_target): New class.
10365         (sol_thread_ops): Now a sol_thread_target.
10366         (sol_thread_detach, sol_thread_resume, sol_thread_wait)
10367         (sol_thread_fetch_registers, sol_thread_store_registers)
10368         (sol_thread_xfer_partial, sol_thread_mourn_inferior)
10369         (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
10370         (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
10371         (init_sol_thread_ops): Delete.
10372         (_initialize_sol_thread): Adjust.  Remove references to
10373         init_sol_thread_ops and complete_target_initialization.
10374
10375         * windows-nat.c (windows_nat_target): New class.
10376         (windows_fetch_inferior_registers)
10377         (windows_store_inferior_registers, windows_resume, windows_wait)
10378         (windows_attach, windows_detach, windows_pid_to_exec_file)
10379         (windows_files_info, windows_create_inferior)
10380         (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
10381         (windows_close, windows_pid_to_str, windows_xfer_partial)
10382         (windows_get_tib_address, windows_get_ada_task_ptid)
10383         (windows_thread_name, windows_thread_alive): Refactor as
10384         windows_nat_target methods.
10385         (do_initial_windows_stuff): Adjust.
10386         (windows_target): Delete function.
10387         (_initialize_windows_nat): Adjust.
10388
10389         * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
10390         (darwin_mourn_inferior, darwin_kill_inferior)
10391         (darwin_create_inferior, darwin_attach, darwin_detach)
10392         (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
10393         (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
10394         (darwin_supports_multi_process): Refactor as darwin_nat_target
10395         methods.
10396         (darwin_resume_to, darwin_files_info): Delete.
10397         (_initialize_darwin_inferior): Rename to ...
10398         (_initialize_darwin_nat): ... this.  Adjust to C++ification.
10399         * darwin-nat.h: Include "inf-child.h".
10400         (darwin_nat_target): New class.
10401         (darwin_complete_target): Delete.
10402         * i386-darwin-nat.c (i386_darwin_nat_target): New class.
10403         (darwin_target): New.
10404         (i386_darwin_fetch_inferior_registers)
10405         (i386_darwin_store_inferior_registers): Refactor as methods of
10406         darwin_nat_target.
10407         (darwin_complete_target): Delete, with ...
10408         (_initialize_i386_darwin_nat): ... bits factored out here.
10409
10410         * alpha-linux-nat.c (alpha_linux_nat_target): New class.
10411         (the_alpha_linux_nat_target): New.
10412         (alpha_linux_register_u_offset): Refactor as
10413         alpha_linux_nat_target method.
10414         (_initialize_alpha_linux_nat): Adjust.
10415         * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
10416         (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
10417         (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
10418         methods of linux_nat_trad_target.
10419         (linux_trad_target): Delete.
10420         * linux-nat-trad.h (linux_trad_target): Delete function.
10421         (linux_nat_trad_target): New class.
10422         * mips-linux-nat.c (mips_linux_nat_target): New class.
10423         (super_fetch_registers, super_store_registers, super_close):
10424         Delete.
10425         (the_mips_linux_nat_target): New.
10426         (mips64_linux_regsets_fetch_registers)
10427         (mips64_linux_regsets_store_registers)
10428         (mips64_linux_fetch_registers, mips64_linux_store_registers)
10429         (mips_linux_register_u_offset, mips_linux_read_description)
10430         (mips_linux_can_use_hw_breakpoint)
10431         (mips_linux_stopped_by_watchpoint)
10432         (mips_linux_stopped_data_address)
10433         (mips_linux_region_ok_for_hw_watchpoint)
10434         (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
10435         (mips_linux_close): Refactor as methods of mips_linux_nat.
10436         (_initialize_mips_linux_nat): Adjust to C++ification.
10437
10438         * aix-thread.c (aix_thread_target): New class.
10439         (aix_thread_ops): Now an aix_thread_target.
10440         (aix_thread_detach, aix_thread_resume, aix_thread_wait)
10441         (aix_thread_fetch_registers, aix_thread_store_registers)
10442         (aix_thread_xfer_partial, aix_thread_mourn_inferior)
10443         (aix_thread_thread_alive, aix_thread_pid_to_str)
10444         (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
10445         Refactor as methods of aix_thread_target.
10446         (init_aix_thread_ops): Delete.
10447         (_initialize_aix_thread): Remove references to init_aix_thread_ops
10448         and complete_target_initialization.
10449         * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
10450         (rs6000_nat_target): New class.
10451         (the_rs6000_nat_target): New.
10452         (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
10453         (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
10454         (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
10455         (super_create_inferior): Delete.
10456         (_initialize_rs6000_nat): Adjust to C++ification.
10457
10458         * arm-linux-nat.c (arm_linux_nat_target): New class.
10459         (the_arm_linux_nat_target): New.
10460         (arm_linux_fetch_inferior_registers)
10461         (arm_linux_store_inferior_registers, arm_linux_read_description)
10462         (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
10463         (arm_linux_remove_hw_breakpoint)
10464         (arm_linux_region_ok_for_hw_watchpoint)
10465         (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
10466         (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
10467         (arm_linux_watchpoint_addr_within_range): Refactor as methods of
10468         arm_linux_nat_target.
10469         (_initialize_arm_linux_nat): Adjust to C++ification.
10470
10471         * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
10472         (the_aarch64_linux_nat_target): New.
10473         (aarch64_linux_fetch_inferior_registers)
10474         (aarch64_linux_store_inferior_registers)
10475         (aarch64_linux_child_post_startup_inferior)
10476         (aarch64_linux_read_description)
10477         (aarch64_linux_can_use_hw_breakpoint)
10478         (aarch64_linux_insert_hw_breakpoint)
10479         (aarch64_linux_remove_hw_breakpoint)
10480         (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
10481         (aarch64_linux_region_ok_for_hw_watchpoint)
10482         (aarch64_linux_stopped_data_address)
10483         (aarch64_linux_stopped_by_watchpoint)
10484         (aarch64_linux_watchpoint_addr_within_range)
10485         (aarch64_linux_can_do_single_step): Refactor as methods of
10486         aarch64_linux_nat_target.
10487         (super_post_startup_inferior): Delete.
10488         (_initialize_aarch64_linux_nat): Adjust to C++ification.
10489
10490         * hppa-linux-nat.c (hppa_linux_nat_target): New class.
10491         (the_hppa_linux_nat_target): New.
10492         (hppa_linux_fetch_inferior_registers)
10493         (hppa_linux_store_inferior_registers): Refactor as methods of
10494         hppa_linux_nat_target.
10495         (_initialize_hppa_linux_nat): Adjust to C++ification.
10496
10497         * ia64-linux-nat.c (ia64_linux_nat_target): New class.
10498         (the_ia64_linux_nat_target): New.
10499         (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
10500         (ia64_linux_stopped_data_address)
10501         (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
10502         (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
10503         ia64_linux_nat_target methods.
10504         (super_xfer_partial): Delete.
10505         (_initialize_ia64_linux_nat): Adjust to C++ification.
10506
10507         * m32r-linux-nat.c (m32r_linux_nat_target): New class.
10508         (the_m32r_linux_nat_target): New.
10509         (m32r_linux_fetch_inferior_registers)
10510         (m32r_linux_store_inferior_registers): Refactor as
10511         m32r_linux_nat_target methods.
10512         (_initialize_m32r_linux_nat): Adjust to C++ification.
10513
10514         * m68k-linux-nat.c (m68k_linux_nat_target): New class.
10515         (the_m68k_linux_nat_target): New.
10516         (m68k_linux_fetch_inferior_registers)
10517         (m68k_linux_store_inferior_registers): Refactor as
10518         m68k_linux_nat_target methods.
10519         (_initialize_m68k_linux_nat): Adjust to C++ification.
10520
10521         * s390-linux-nat.c (s390_linux_nat_target): New class.
10522         (the_s390_linux_nat_target): New.
10523         (s390_linux_fetch_inferior_registers)
10524         (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
10525         (s390_insert_watchpoint, s390_remove_watchpoint)
10526         (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
10527         (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
10528         (s390_auxv_parse, s390_read_description): Refactor as methods of
10529         s390_linux_nat_target.
10530         (_initialize_s390_nat): Adjust to C++ification.
10531
10532         * sparc-linux-nat.c (sparc_linux_nat_target): New class.
10533         (the_sparc_linux_nat_target): New.
10534         (_initialize_sparc_linux_nat): Adjust to C++ification.
10535         * sparc-nat.c (sparc_fetch_inferior_registers)
10536         (sparc_store_inferior_registers): Remove target_ops parameter.
10537         * sparc-nat.h (sparc_fetch_inferior_registers)
10538         (sparc_store_inferior_registers): Remove target_ops parameter.
10539         * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
10540         (the_sparc64_linux_nat_target): New.
10541         (_initialize_sparc64_linux_nat): Adjust to C++ification.
10542
10543         * spu-linux-nat.c (spu_linux_nat_target): New class.
10544         (the_spu_linux_nat_target): New.
10545         (spu_child_post_startup_inferior, spu_child_post_attach)
10546         (spu_child_wait, spu_fetch_inferior_registers)
10547         (spu_store_inferior_registers, spu_xfer_partial)
10548         (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
10549         methods.
10550         (_initialize_spu_nat): Adjust to C++ification.
10551
10552         * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
10553         (the_tilegx_linux_nat_target): New.
10554         (fetch_inferior_registers, store_inferior_registers):
10555         Refactor as methods.
10556         (_initialize_tile_linux_nat): Adjust to C++ification.
10557
10558         * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
10559         (the_xtensa_linux_nat_target): New.
10560         (xtensa_linux_fetch_inferior_registers)
10561         (xtensa_linux_store_inferior_registers): Refactor as
10562         xtensa_linux_nat_target methods.
10563         (_initialize_xtensa_linux_nat): Adjust to C++ification.
10564
10565         * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
10566         (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
10567         (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
10568         (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
10569         (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
10570         (fbsd_stopped_by_sw_breakpoint)
10571         (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
10572         (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
10573         (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
10574         (fbsd_post_startup_inferior, fbsd_post_attach)
10575         (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
10576         (fbsd_set_syscall_catchpoint)
10577         (super_xfer_partial, super_resume, super_wait)
10578         (fbsd_supports_stopped_by_hw_breakpoint): Delete.
10579         (fbsd_handle_debug_trap): Remove target_ops parameter.
10580         (fbsd_nat_add_target): Delete.
10581         * fbsd-nat.h: Include "inf-ptrace.h".
10582         (fbsd_nat_add_target): Delete.
10583         (USE_SIGTRAP_SIGINFO): Define.
10584         (fbsd_nat_target): New class.
10585
10586         * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
10587         (amd64bsd_store_inferior_registers): Remove target_ops parameter.
10588         (amd64bsd_target): Delete.
10589         * amd64-bsd-nat.h: New file.
10590         * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
10591         "x86-bsd-nat.h".
10592         (amd64_fbsd_nat_target): New class.
10593         (the_amd64_fbsd_nat_target): New.
10594         (amd64fbsd_read_description): Refactor as method of
10595         amd64_fbsd_nat_target.
10596         (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
10597         (_initialize_amd64fbsd_nat): Adjust to C++ification.
10598         * amd64-nat.h (amd64bsd_target): Delete function declaration.
10599         * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
10600         (i386bsd_store_inferior_registers): Remove target_ops parameter.
10601         (i386bsd_target): Delete.
10602         * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
10603         (i386bsd_fetch_inferior_registers)
10604         (i386bsd_store_inferior_registers): Declare.
10605         (i386_bsd_nat_target): New class.
10606         * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
10607         (the_i386_fbsd_nat_target): New.
10608         (i386fbsd_resume, i386fbsd_read_description): Refactor as
10609         i386_fbsd_nat_target methods.
10610         (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
10611         (_initialize_i386fbsd_nat): Adjust to C++ification.
10612         * x86-bsd-nat.c (super_mourn_inferior): Delete.
10613         (x86bsd_mourn_inferior, x86bsd_target): Delete.
10614         (_initialize_x86_bsd_nat): Adjust to C++ification.
10615         * x86-bsd-nat.h: Include "x86-nat.h".
10616         (x86bsd_target): Delete declaration.
10617         (x86bsd_nat_target): New class.
10618
10619         * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
10620         (the_aarch64_fbsd_nat_target): New.
10621         (aarch64_fbsd_fetch_inferior_registers)
10622         (aarch64_fbsd_store_inferior_registers): Refactor as methods of
10623         aarch64_fbsd_nat_target.
10624         (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
10625         * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
10626         (the_alpha_bsd_nat_target): New.
10627         (alphabsd_fetch_inferior_registers)
10628         (alphabsd_store_inferior_registers): Refactor as
10629         alpha_bsd_nat_target methods.
10630         (_initialize_alphabsd_nat): Refactor as methods of
10631         alpha_bsd_nat_target.
10632         * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
10633         (the_amd64_nbsd_nat_target): New.
10634         (_initialize_amd64nbsd_nat): Adjust to C++ification.
10635         * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
10636         (the_amd64_obsd_nat_target): New.
10637         (_initialize_amd64obsd_nat): Adjust to C++ification.
10638         * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
10639         (the_arm_fbsd_nat_target): New.
10640         (arm_fbsd_fetch_inferior_registers)
10641         (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
10642         (_initialize_arm_fbsd_nat): Refactor as methods of
10643         arm_fbsd_nat_target.
10644         (_initialize_arm_fbsd_nat): Adjust to C++ification.
10645         * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
10646         (the_arm_netbsd_nat_target): New.
10647         (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
10648         arm_netbsd_nat_target.
10649         (_initialize_arm_netbsd_nat): Adjust to C++ification.
10650         * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
10651         (the_hppa_nbsd_nat_target): New.
10652         (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
10653         hppa_nbsd_nat_target methods.
10654         (_initialize_hppanbsd_nat): Adjust to C++ification.
10655         * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
10656         (the_hppa_obsd_nat_target): New.
10657         (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
10658         methods of hppa_obsd_nat_target.
10659         (_initialize_hppaobsd_nat): Adjust to C++ification.  Use
10660         add_target.
10661         * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
10662         (_initialize_i386nbsd_nat): Adjust to C++ification.  Use
10663         add_target.
10664         * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
10665         (_initialize_i386obsd_nat): Use add_target.
10666         * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
10667         (the_m68k_bsd_nat_target): New.
10668         (m68kbsd_fetch_inferior_registers)
10669         (m68kbsd_store_inferior_registers): Refactor as methods of
10670         m68k_bsd_nat_target.
10671         (_initialize_m68kbsd_nat): Adjust to C++ification.
10672         * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
10673         (the_mips_fbsd_nat_target): New.
10674         (mips_fbsd_fetch_inferior_registers)
10675         (mips_fbsd_store_inferior_registers): Refactor as methods of
10676         mips_fbsd_nat_target.
10677         (_initialize_mips_fbsd_nat): Adjust to C++ification.  Use
10678         add_target.
10679         * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
10680         (the_mips_nbsd_nat_target): New.
10681         (mipsnbsd_fetch_inferior_registers)
10682         (mipsnbsd_store_inferior_registers): Refactor as methods of
10683         mips_nbsd_nat_target.
10684         (_initialize_mipsnbsd_nat): Adjust to C++ification.
10685         * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
10686         (the_mips64_obsd_nat_target): New.
10687         (mips64obsd_fetch_inferior_registers)
10688         (mips64obsd_store_inferior_registers): Refactor as methods of
10689         mips64_obsd_nat_target.
10690         (_initialize_mips64obsd_nat): Adjust to C++ification.  Use
10691         add_target.
10692         * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
10693         nbsd_nat_target.
10694         * nbsd-nat.h: Include "inf-ptrace.h".
10695         (nbsd_nat_target): New class.
10696         * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
10697         (obsd_wait): Refactor as methods of obsd_nat_target.
10698         (obsd_add_target): Delete.
10699         * obsd-nat.h: Include "inf-ptrace.h".
10700         (obsd_nat_target): New class.
10701         * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
10702         (the_ppc_fbsd_nat_target): New.
10703         (ppcfbsd_fetch_inferior_registers)
10704         (ppcfbsd_store_inferior_registers): Refactor as methods of
10705         ppc_fbsd_nat_target.
10706         (_initialize_ppcfbsd_nat): Adjust to C++ification.  Use
10707         add_target.
10708         * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
10709         (the_ppc_nbsd_nat_target): New.
10710         (ppcnbsd_fetch_inferior_registers)
10711         (ppcnbsd_store_inferior_registers): Refactor as methods of
10712         ppc_nbsd_nat_target.
10713         (_initialize_ppcnbsd_nat): Adjust to C++ification.
10714         * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
10715         (the_ppc_obsd_nat_target): New.
10716         (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
10717         methods of ppc_obsd_nat_target.
10718         (_initialize_ppcobsd_nat): Adjust to C++ification.  Use
10719         add_target.
10720         * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
10721         (the_sh_nbsd_nat_target): New.
10722         (shnbsd_fetch_inferior_registers)
10723         (shnbsd_store_inferior_registers): Refactor as methods of
10724         sh_nbsd_nat_target.
10725         (_initialize_shnbsd_nat): Adjust to C++ification.
10726         * sparc-nat.c (sparc_xfer_wcookie): Make extern.
10727         (inf_ptrace_xfer_partial): Delete.
10728         (sparc_xfer_partial, sparc_target): Delete.
10729         * sparc-nat.h (sparc_fetch_inferior_registers)
10730         (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
10731         (sparc_target): Delete function declaration.
10732         (sparc_target): New template class.
10733         * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
10734         (_initialize_sparcnbsd_nat): Adjust to C++ification.
10735         * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
10736         (_initialize_sparc64fbsd_nat): Adjust to C++ification.  Use
10737         add_target.
10738         * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
10739         (_initialize_sparc64nbsd_nat): Adjust to C++ification.
10740         * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
10741         (_initialize_sparc64obsd_nat): Adjust to C++ification.  Use
10742         add_target.
10743         * vax-bsd-nat.c (vax_bsd_nat_target): New class.
10744         (the_vax_bsd_nat_target): New.
10745         (vaxbsd_fetch_inferior_registers)
10746         (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
10747         methods.
10748         (_initialize_vaxbsd_nat): Adjust to C++ification.
10749
10750         * bsd-kvm.c (bsd_kvm_target): New class.
10751         (bsd_kvm_ops): Now a bsd_kvm_target.
10752         (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
10753         (bsd_kvm_files_info, bsd_kvm_fetch_registers)
10754         (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
10755         bsd_kvm_target.
10756         (bsd_kvm_return_one): Delete.
10757         (bsd_kvm_add_target): Adjust to C++ification.
10758
10759         * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
10760         (nto_procfs_target_procfs): New classes.
10761         (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
10762         (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
10763         (procfs_post_attach, procfs_wait, procfs_fetch_registers)
10764         (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
10765         (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
10766         (procfs_remove_hw_breakpoint, procfs_resume)
10767         (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
10768         (procfs_kill_inferior, procfs_store_registers)
10769         (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
10770         as methods of nto_procfs_target.
10771         (nto_procfs_ops): Now an nto_procfs_target_procfs.
10772         (nto_native_ops): Delete.
10773         (procfs_open, procfs_native_open): Delete.
10774         (nto_native_ops): Now an nto_procfs_target_native.
10775         (init_procfs_targets): Adjust to C++ification.
10776         (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
10777         (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
10778         Refactor as methods of nto_procfs_target.
10779
10780         * go32-nat.c (go32_nat_target): New class.
10781         (the_go32_nat_target): New.
10782         (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
10783         (go32_store_registers, go32_xfer_partial, go32_files_info)
10784         (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
10785         (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
10786         (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
10787         (go32_pid_to_str): Refactor as methods of go32_nat_target.
10788         (go32_target): Delete.
10789         (_initialize_go32_nat): Adjust to C++ification.
10790
10791         * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
10792         (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
10793         (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
10794         (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
10795         gnu_nat_target.
10796         (gnu_target): Delete.
10797         * gnu-nat.h (gnu_target): Delete.
10798         (gnu_nat_target): New class.
10799         * i386-gnu-nat.c (gnu_base_target): New.
10800         (i386_gnu_nat_target): New class.
10801         (the_i386_gnu_nat_target): New.
10802         (_initialize_i386gnu_nat): Adjust to C++ification.
10803
10804 2018-05-02  Pedro Alves  <palves@redhat.com>
10805
10806         * bfd-target.c (target_bfd_xclose): Rename to ...
10807         (target_bfd_close): ... this.
10808         (target_bfd_reopen): Adjust.
10809         * target.c (target_close): Remove references to to_xclose.
10810         * target.h (target_ops::to_xclose): Delete.
10811         (target_ops::to_close): Update comments.
10812
10813 2018-05-02  Pedro Alves  <palves@redhat.com>
10814
10815         * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
10816         "linux-nat.h".
10817         * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
10818         * inf-ptrace.c (inf_ptrace_register_u_offset)
10819         (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
10820         (inf_ptrace_store_register, inf_ptrace_store_registers)
10821         (inf_ptrace_trad_target): Move to ...
10822         * linux-nat-trad.c: ... this new file.
10823         * linux-nat-trad.h: New file.
10824         * linux-nat.c (linux_target_install_ops): Make extern.
10825         (linux_trad_target): Delete.
10826         * linux-nat.h (linux_trad_target): Delete declaration.
10827         (linux_target_install_ops): Declare.
10828         * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
10829         "linux-nat.h".
10830
10831 2018-05-02  Pedro Alves  <palves@redhat.com>
10832
10833         * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
10834         procfs_target/add_target here.
10835         * procfs.c (procfs_target): Make static.
10836         (_initialize_procfs): Call add_target here.
10837         * procfs.h (struct target_ops): Remove forward declaration.
10838         (procfs_target): Remove declaration.
10839         * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
10840
10841 2018-05-02  Pedro Alves  <palves@redhat.com>
10842
10843         * procfs.c (procfs_stopped_by_watchpoint)
10844         (procfs_insert_watchpoint, procfs_remove_watchpoint)
10845         (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
10846         Forward declare.
10847         (procfs_use_watchpoints): Delete, move contents...
10848         (procfs_target): ... here.
10849         * procfs.h (procfs_use_watchpoints): Delete declaration.
10850         * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
10851         procfs_use_watchpoints.
10852         * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
10853         procfs_use_watchpoints.
10854
10855 2018-05-02  Tom Tromey  <tom@tromey.com>
10856
10857         PR python/20084:
10858         * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
10859         and var_zuinteger_unlimited.
10860         * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
10861         and PARAM_ZUINTEGER_UNLIMITED.
10862         (set_parameter_value): Handle var_zuinteger and
10863         var_zuinteger_unlimited.
10864         (add_setshow_generic): Likewise.
10865         (parmpy_init): Likewise.
10866
10867 2018-04-28  Dan Robertson  <danlrobertson89@gmail.com>
10868
10869         PR rust/23124
10870         * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
10871         pointer is not null before dereferencing it.
10872
10873 2018-04-30  Tom Tromey  <tom@tromey.com>
10874
10875         * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
10876         is_mi_like_p.
10877
10878 2018-04-30  Tom Tromey  <tom@tromey.com>
10879
10880         * breakpoint.c (mention): Remove use of is_mi_like_p.
10881         (print_mention_ranged_breakpoint): Likewise.
10882         * break-catch-throw.c (print_it_exception_catchpoint): Remove use
10883         of is_mi_like_p.
10884
10885 2018-04-30  Tom Tromey  <tom@tromey.com>
10886
10887         * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
10888
10889 2018-04-30  Tom Tromey  <tom@tromey.com>
10890
10891         * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
10892         (info_spu_event_command): Remove some uses of is_mi_like_p.
10893
10894 2018-04-30  Tom Tromey  <tom@tromey.com>
10895
10896         * python/py-framefilter.c (py_print_single_arg)
10897         (enumerate_locals, py_print_args, py_print_frame): Remove some
10898         uses of is_mi_like_p.
10899
10900 2018-04-30  Tom Tromey  <tom@tromey.com>
10901
10902         * ui-out.c: Update.
10903         * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
10904         * ui-out.h (ui_out::is_mi_like_p): Now const.
10905         (ui_out::do_is_mi_like_p): Now const.
10906         * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
10907
10908 2018-04-30  Tom Tromey  <tom@tromey.com>
10909
10910         * varobj.c (varobj_set_visualizer): Use new_reference.
10911         * python/python.c (gdbpy_decode_line): Use new_reference.
10912         * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
10913         new_reference.
10914
10915 2018-04-30  Tom Tromey  <tom@tromey.com>
10916
10917         * varobj.c (install_new_value): Use new_reference.
10918         * value.h (value_incref): Return void.  Swap intro comment with
10919         value_decref.
10920         * value.c (set_value_parent): Use new_reference.
10921         (value_incref): Return void.  Update intro comment.
10922         (release_value): Use new_reference.
10923         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
10924
10925 2018-04-30  Tom Tromey  <tom@tromey.com>
10926
10927         * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
10928         * gdb_bfd.h (new_bfd_ref): Remove.
10929         (gdb_bfd_open): Update comment.
10930         * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10931         (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
10932         (gdb_bfd_fdopenr): Use new_reference.
10933         * exec.c (exec_file_attach): Use new_reference.
10934
10935 2018-04-30  Tom Tromey  <tom@tromey.com>
10936
10937         * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
10938         method.
10939
10940 2018-04-30  Tom Tromey  <tom@tromey.com>
10941
10942         * jit.c (jit_read_code_entry): Use type_align.
10943         * i386-tdep.c (i386_gdbarch_init): Don't call
10944         set_gdbarch_long_long_align_bit.
10945         * gdbarch.sh: Remove long_long_align_bit.
10946         * gdbarch.c, gdbarch.h: Rebuild.
10947         * arc-tdep.c (arc_type_align): New function.
10948         (arc_gdbarch_init): Use arc_type_align.  Don't call
10949         set_gdbarch_long_long_align_bit.
10950
10951 2018-04-30  Tom Tromey  <tom@tromey.com>
10952
10953         * rust-lang.c (rust_type_alignment): Remove.
10954         (rust_composite_type): Use type_align.
10955
10956 2018-04-30  Tom Tromey  <tom@tromey.com>
10957
10958         * NEWS: Mention Type.align.
10959         * python/py-type.c (typy_get_alignof): New function.
10960         (type_object_getset): Add "alignof".
10961
10962 2018-04-30  Tom Tromey  <tom@tromey.com>
10963
10964         PR exp/17095:
10965         * NEWS: Update.
10966         * std-operator.def (UNOP_ALIGNOF): New operator.
10967         * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
10968         New.
10969         * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
10970         * c-lang.c (c_op_print_tab): Add alignof.
10971         * c-exp.y (ALIGNOF): New token.
10972         (exp): Add "ALIGNOF" production.
10973         (ident_tokens): Add _Alignof and alignof.
10974
10975 2018-04-30  Tom Tromey  <tom@tromey.com>
10976
10977         * i386-tdep.c (i386_type_align): New function.
10978         (i386_gdbarch_init): Update.
10979         * gdbarch.sh (type_align): New method.
10980         * gdbarch.c, gdbarch.h: Rebuild.
10981         * arch-utils.h (default_type_align): Declare.
10982         * arch-utils.c (default_type_align): New function.
10983         * gdbtypes.h (TYPE_ALIGN_BITS): New define.
10984         (struct type) <align_log2>: New field.
10985         <instance_flags>: Now a bitfield.
10986         (TYPE_RAW_ALIGN): New macro.
10987         (type_align, type_raw_align, set_type_align): Declare.
10988         * gdbtypes.c (type_align, type_raw_align, set_type_align): New
10989         functions.
10990         * dwarf2read.c (quirk_rust_enum): Set type alignment.
10991         (get_alignment, maybe_set_alignment): New functions.
10992         (read_structure_type, read_enumeration_type, read_array_type)
10993         (read_set_type, read_tag_pointer_type, read_tag_reference_type)
10994         (read_subrange_type, read_base_type): Set type alignment.
10995
10996 2018-04-30  Simon Marchi  <simon.marchi@ericsson.com>
10997
10998         * dwarf2read.c (read_index_from_section): Use bool.
10999
11000 2018-04-29  Fabian Groffen  <grobian@gentoo.org>
11001
11002         PR gdb/22950
11003         * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
11004         with #ifdef.
11005
11006 2018-04-29  John Reiser  <jreiser@BitWagon.com>
11007
11008         PR build/22873
11009         * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
11010         last step, and do it atomically.
11011
11012 2018-04-27  Alexandre Oliva  <aoliva@redhat.com>
11013
11014         * compile/compile-c-types.c (convert_int, convert_float):
11015         Update for C FE v1.
11016
11017 2018-04-27  Tom Tromey  <tom@tromey.com>
11018
11019         PR rust/22545:
11020         * rust-lang.c (rust_inclusive_range_type_p): New function.
11021         (rust_range): Handle inclusive ranges.
11022         (rust_compute_range): Likewise.
11023         * rust-exp.y (struct rust_op) <inclusive>: New field.
11024         (DOTDOTEQ): New constant.
11025         (range_expr): Add "..=" productions.
11026         (operator_tokens): Add "..=" token.
11027         (ast_range): Add "inclusive" parameter.
11028         (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
11029         ranges.
11030         * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
11031         bounds values.
11032         * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
11033         LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
11034         Update comments.
11035         * expprint.c (print_subexp_standard): Handle new bounds values.
11036         (dump_subexp_body_standard): Likewise.
11037
11038 2018-04-27  Tom Tromey  <tom@tromey.com>
11039
11040         * configure: Rebuild.
11041         * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
11042         * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
11043         "OVERRIDE".
11044         (class symbol_needs_eval_context): Likewise.
11045         * dwarf2read.c (mock_mapped_index::symbol_name_count)
11046         (mock_mapped_index::symbol_name_at): Use "override".  Remove
11047         "virtual".
11048         * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
11049         "override".
11050         (class dwarf_expr_executor): Use "override", not "OVERRIDE".
11051         * aarch64-tdep.c (instruction_reader::read): Use "override".
11052         (instruction_reader_test::read): Likewise.
11053         * arm-tdep.c (instruction_reader::read): Use "override".
11054         (instruction_reader_thumb::read): Likewise.
11055
11056 2018-04-26  Andrzej Kaczmarek  <andrzej.kaczmarek@codecoup.pl>
11057
11058         PR remote/9665
11059         * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
11060         instead of remote_send.
11061         (remote_send): Remove.
11062
11063 2018-04-26  Pedro Alves  <palves@redhat.com>
11064
11065         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
11066         find_function_start_sal instead of find_pc_line.
11067
11068 2018-04-26  Pedro Alves  <palves@redhat.com>
11069
11070         * breakpoint.c (set_breakpoint_location_function): Handle
11071         mst_data_gnu_ifunc.
11072         * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
11073         * elfread.c (elf_symtab_read): Give data symbols with
11074         BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
11075         (elf_rel_plt_read): Update comment.
11076         * linespec.c (convert_linespec_to_sals): Handle
11077         mst_data_gnu_ifunc.
11078         (minsym_found): Handle mst_data_gnu_ifunc.
11079         * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
11080         (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
11081         * parse.c (find_minsym_type_and_address): Handle
11082         mst_data_gnu_ifunc.
11083         * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
11084         * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
11085         * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
11086         comment.
11087         <mst_data_gnu_ifunc>: New enumerator.
11088
11089 2018-04-26  Pedro Alves  <palves@redhat.com>
11090
11091         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
11092         (lookup_minimal_symbol_by_pc_section): ... this.  Replace
11093         'want_trampoline' parameter by a lookup_msym_prefer parameter.
11094         Handle it.
11095         (lookup_minimal_symbol_by_pc_section): Delete old implementation.
11096         (lookup_minimal_symbol_by_pc): Adjust.
11097         (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
11098         (lookup_solib_trampoline_symbol_by_pc): Adjust.
11099         * minsyms.h (lookup_msym_prefer): New enum.
11100         (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
11101         parameter by a lookup_msym_prefer parameter.
11102
11103 2018-04-26  Pedro Alves  <palves@redhat.com>
11104
11105         * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
11106         ends in "@plt" instead of looking at the symbol's section.
11107
11108 2018-04-26  Pedro Alves  <palves@redhat.com>
11109
11110         * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete.  Remove
11111         all references.
11112         (find_pc_partial_function_gnu_ifunc): Rename to ...
11113         (find_pc_partial_function): ... this, and remove references to
11114         'is_gnu_ifunc_p'.
11115         (find_pc_partial_function): Delete old implementation.
11116         * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
11117
11118 2018-04-26  Pedro Alves  <palves@redhat.com>
11119
11120         * linespec.c (struct bound_minimal_symbol_search_key): New.
11121         (convert_linespec_to_sals): Sort minimal symbols earlier.  Don't
11122         skip first line if we found a GNU ifunc minimal symbol by name.
11123         (compare_msymbols): Change parameters to work with a destructured
11124         lhs minsym.
11125         (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
11126         functions.
11127
11128 2018-04-26  Pedro Alves  <palves@redhat.com>
11129
11130         * breakpoint.c (set_breakpoint_location_function): Don't resolve
11131         ifunc targets here.  Instead, if we have an ifunc minsym, use its
11132         address/name.
11133         (add_location_to_breakpoint): Store the minsym and the objfile in
11134         the breakpoint location.
11135         * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
11136         * linespec.c (minsym_found): Resolve GNU ifunc targets here.
11137         Record the minsym in the sal.
11138         * symtab.h (symtab_and_line) <msymbol>: New field.
11139
11140 2018-04-26  Pedro Alves  <palves@redhat.com>
11141
11142         * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
11143         unless we actually resolved the ifunc.
11144
11145 2018-04-26  Pedro Alves  <palves@redhat.com>
11146
11147         * c-exp.y (variable production): Prefer ifunc minsyms over
11148         regular function symbols.
11149         * symtab.c (find_gnu_ifunc): New function.
11150         * minsyms.h (lookup_msym_prefer): New enum.
11151         (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
11152         parameter by a lookup_msym_prefer parameter.
11153         * symtab.h (find_gnu_ifunc): New declaration.
11154
11155 2018-04-26  Pedro Alves  <palves@redhat.com>
11156
11157         * blockframe.c (find_gnu_ifunc_target_type): New function.
11158         (find_function_type): New.
11159         * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
11160         return a value with a memory address.
11161         (eval_call): For calls to GNU ifunc functions, try to find the
11162         type of the target function from the type that the resolver
11163         returns.
11164         * gdbtypes.c (objfile_type): Don't install a return type for ifunc
11165         symbols.
11166         * infcall.c (find_function_return_type): Delete.
11167         (find_function_addr): Add 'function_type' parameter.  For calls to
11168         GNU ifunc functions, try to find the type of the target function
11169         from the type that the resolver returns, and return it via
11170         FUNCTION_TYPE.
11171         (call_function_by_hand_dummy): Adjust to use the function type
11172         returned by find_function_addr.
11173         (find_function_addr): Add 'function_type' parameter and move
11174         description here.
11175         * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
11176         declarations.
11177
11178 2018-04-26  Pedro Alves  <palves@redhat.com>
11179
11180         * c-exp.y (variable production): Skip finding an alias for ifunc
11181         symbols.
11182
11183 2018-04-26  Pedro Alves  <palves@redhat.com>
11184
11185         * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
11186
11187 2018-04-25  Pedro Alves  <palves@redhat.com>
11188
11189         * infcmd.c (kill_command): Print the pid as string, not the whole
11190         thread's ptid.  Add comment.  s/has been killed/killed/ in output
11191         message.
11192         * remote.c (remote_detach_1): Print the pid as string, not the
11193         whole thread's ptid.
11194
11195 2018-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
11196             Sergio Durigan Junior  <sergiodj@redhat.com>
11197             Pedro Alves  <palves@redhat.com>
11198
11199         * infcmd.c (kill_command): Print message when inferior has
11200         been killed.
11201         * inferior.c (print_inferior_events): Remove 'static'.  Set as
11202         '1'.
11203         (add_inferior): Improve message printed when
11204         'print_inferior_events' is on.
11205         (exit_inferior): Remove message printed when
11206         'print_inferior_events' is on.
11207         (detach_inferior): Improve message printed when
11208         'print_inferior_events' is on.
11209         (initialize_inferiors): Use 'add_inferior_silent' to set
11210         'current_inferior_'.
11211         * inferior.h (print_inferior_events): Declare here as
11212         'extern'.
11213         * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
11214         '[Detaching...]' messages when 'print_inferior_events' is on.
11215         Use 'add_thread_silent' instead of 'add_thread'.  Add '[' and ']'
11216         as prefix/suffix for messages.  Remove periods.  Fix erroneous
11217         'Detaching after fork from child...', replace it by '... from
11218         parent...'.
11219         (handle_vfork_child_exec_or_exit): Add '[' and ']' as
11220         prefix/suffix when printing 'Detaching...' messages.  Print
11221         them when 'print_inferior_events' is on.
11222         * remote.c (remote_detach_1): Print message when detaching
11223         from inferior and '!is_fork_parent'.
11224
11225 2018-04-24  Tom Tromey  <tom@tromey.com>
11226
11227         * cli-out.h: Reindent.
11228
11229 2018-04-24  Tom Tromey  <tom@tromey.com>
11230
11231         * cli-out.c (cli_ui_out::out_field_fmt): Remove.
11232         (cli_ui_out::do_field_string): Use fputs_filtered.
11233         * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
11234
11235 2018-04-23  Tom Tromey  <tom@tromey.com>
11236
11237         * guile/scm-frame.c (gdbscm_frame_read_var): Use
11238         gdb::unique_xmalloc_ptr.
11239
11240 2018-04-23  Tom Tromey  <tom@tromey.com>
11241
11242         * configure: Rebuild.
11243
11244 2018-04-22  Rajendra SY  <rajendra.sy@gmail.com>
11245
11246         PR gdb/23095
11247         * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
11248         prepare_for_testing.  Set normal_bp to r_debug_state if target
11249         is bsd.
11250
11251 2018-04-21  Pedro Alves  <palves@redhat.com>
11252             Rajendra SY  <rajendra.sy@gmail.com>
11253
11254         * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
11255         * remote.c (extended_remote_attach): In all-stop mode, mark the
11256         thread as executing.
11257
11258 2018-04-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
11259
11260         * thread.c (thread_apply_all_command): Fix comment.
11261         (thread_command): Fix comment.
11262
11263 2018-04-10  Alan Hayward  <alan.hayward@arm.com>
11264
11265         * common/tdesc.h (tdesc_create_feature): Remove xml filename
11266         parameter.
11267         * features/aarch64-core.c (create_feature_aarch64_core):
11268         Regenerate.
11269         * features/aarch64-fpu.c (create_feature_aarch64_fpu):
11270         Likewise.
11271         * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
11272         Likewise.
11273         * features/i386/32bit-avx512.c
11274         (create_feature_i386_32bit_avx512): Likewise.
11275         * features/i386/32bit-core.c (create_feature_i386_32bit_core):
11276         Likewise.
11277         * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
11278         Likewise.
11279         * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
11280         Likewise.
11281         * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
11282         Likewise.
11283         * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
11284         Likewise.
11285         * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
11286         Likewise.
11287         * features/i386/64bit-avx512.c
11288         (create_feature_i386_64bit_avx512): Likewise.
11289         * features/i386/64bit-core.c (create_feature_i386_64bit_core):
11290         Likewise.
11291         * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
11292         Likewise.
11293         * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
11294         Likewise.
11295         * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
11296         Likewise.
11297         * features/i386/64bit-segments.c
11298         (create_feature_i386_64bit_segments): Likewise.
11299         * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
11300         Likewise.
11301         * features/i386/x32-core.c
11302         (create_feature_i386_x32_core): Likewise.
11303         * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
11304         * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
11305         * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
11306         * target-descriptions.c: In generated code, don't pass xml
11307         filename.
11308
11309 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
11310
11311         * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
11312         (print_xml_feature::visit_post): Likewise.
11313         (print_xml_feature::visit): Likewise.
11314         * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
11315         (print_xml_feature): Add new class.
11316         * regformats/regdat.sh: Null xmltarget on feature targets.
11317         * target-descriptions.c (struct target_desc): Add xmltarget.
11318         (maintenance_check_tdesc_xml_convert): Add unittest function.
11319         (tdesc_get_features_xml): Add function to get xml.
11320         (maintenance_check_xml_descriptions): Test xml generation.
11321         * xml-tdesc.c (string_read_description_xml): Add function.
11322         * xml-tdesc.h (string_read_description_xml): Add declaration.
11323
11324 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
11325
11326         * features/Makefile: Add feature marker to targets with new style
11327         target descriptions.
11328         * regformats/aarch64.dat: Regenerate.
11329         * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
11330         * regformats/i386/amd64-avx-linux.dat: Likewise.
11331         * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
11332         * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
11333         * regformats/i386/amd64-linux.dat: Likewise.
11334         * regformats/i386/amd64-mpx-linux.dat: Likewise.
11335         * regformats/i386/amd64.dat: Likewise.
11336         * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
11337         * regformats/i386/i386-avx-linux.dat: Likewise.
11338         * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
11339         * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
11340         * regformats/i386/i386-linux.dat: Likewise.
11341         * regformats/i386/i386-mmx-linux.dat: Likewise.
11342         * regformats/i386/i386-mpx-linux.dat: Likewise.
11343         * regformats/i386/i386.dat: Likewise.
11344         * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
11345         * regformats/i386/x32-avx-linux.dat: Likewise.
11346         * regformats/i386/x32-linux.dat: Likewise.
11347         * regformats/tic6x-c62x-linux.dat: Likewise.
11348         * regformats/tic6x-c64x-linux.dat: Likewise.
11349         * regformats/tic6x-c64xp-linux.dat: Likewise.
11350         * regformats/regdat.sh: Parse feature marker.
11351
11352 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
11353
11354         * common/tdesc.h (tdesc_architecture_name): Add new declaration.
11355         (tdesc_osabi_name): Likewise.
11356         * target-descriptions.c (tdesc_architecture_name): Add new
11357         function.
11358         (tdesc_osabi_name): Likewise.
11359
11360 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
11361
11362         * common/tdesc.c (tdesc_predefined_type): Move to here.
11363         (tdesc_named_type): Likewise.
11364         (tdesc_create_vector): Likewise.
11365         (tdesc_create_struct): Likewise.
11366         (tdesc_set_struct_size): Likewise.
11367         (tdesc_create_union): Likewise.
11368         (tdesc_create_flags): Likewise.
11369         (tdesc_create_enum): Likewise.
11370         (tdesc_add_field): Likewise.
11371         (tdesc_add_typed_bitfield): Likewise.
11372         (tdesc_add_bitfield): Likewise.
11373         (tdesc_add_flag): Likewise.
11374         (tdesc_add_enum_value): Likewise.
11375         * common/tdesc.h (struct tdesc_type_builtin): Likewise.
11376         (struct tdesc_type_vector): Likewise.
11377         (struct tdesc_type_field): Likewise.
11378         (struct tdesc_type_with_fields): Likewise.
11379         (tdesc_create_enum): Add declaration.
11380         (tdesc_add_typed_bitfield): Likewise.
11381         (tdesc_add_enum_value): Likewise.
11382         * target-descriptions.c (tdesc_type_field): Move from here.
11383         (tdesc_type_builtin): Likewise.
11384         (tdesc_type_vector): Likewise.
11385         (tdesc_type_with_fields): Likewise.
11386         (tdesc_predefined_types): Likewise.
11387         (tdesc_named_type): Likewise.
11388         (tdesc_create_vector): Likewise.
11389         (tdesc_create_struct): Likewise.
11390         (tdesc_set_struct_size): Likewise.
11391         (tdesc_create_union): Likewise.
11392         (tdesc_create_flags): Likewise.
11393         (tdesc_create_enum): Likewise.
11394         (tdesc_add_field): Likewise.
11395         (tdesc_add_typed_bitfield): Likewise.
11396         (tdesc_add_bitfield): Likewise.
11397         (tdesc_add_flag): Likewise.
11398         (tdesc_add_enum_value): Likewise.
11399         * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
11400         (tdesc_add_typed_bitfield): Likewise.
11401         (tdesc_add_enum_value): Likewise.
11402
11403 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
11404
11405         * common/tdesc.c (tdesc_feature::accept): Move to here.
11406         (tdesc_feature::operator==): Likewise.
11407         (tdesc_create_reg): Likewise.
11408         * common/tdesc.h (tdesc_type_kind): Likewise.
11409         (struct tdesc_type): Likewise.
11410         (struct tdesc_feature): Likewise.
11411         * regformats/regdat.sh: Create a feature.
11412         * target-descriptions.c (tdesc_type_kind): Move from here.
11413         (tdesc_type): Likewise.
11414         (tdesc_type_up): Likewise.
11415         (tdesc_feature): Likewise.
11416         (tdesc_create_reg): Likewise.
11417
11418 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
11419
11420         * Makefile.in: Add arch/tdesc.c
11421         * common/tdesc.c: New file.
11422         * common/tdesc.h (tdesc_element_visitor): Move to here.
11423         (tdesc_element): Likewise.
11424         (tdesc_reg): Likewise.
11425         (tdesc_reg_up): Likewise.
11426         * regformats/regdef.h (reg): Add offset to constructors.
11427         * target-descriptions.c (tdesc_element_visitor): Move from here.
11428         (tdesc_element): Likewise.
11429         (tdesc_reg): Likewise.
11430         (tdesc_reg_up): Likewise.
11431
11432 2018-04-17  Tom Tromey  <tom@tromey.com>
11433
11434         * dwarf2read.c (quirk_rust_enum): Conditionally drop the
11435         discriminant field.
11436
11437 2018-04-17  Tom Tromey  <tom@tromey.com>
11438
11439         * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
11440
11441 2018-04-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11442
11443         * symtab.c (print_symbol_info): Skip printing filename and line
11444         number when `last' is NULL.
11445         (symtab_symbol_info): Use empty string instead of NULL for first
11446         invocation of print_symbol_info.
11447         (rbreak_command): Pass NULL to `last' parameter of
11448         print_symbol_info.
11449
11450 2018-04-16  Simon Marchi  <simon.marchi@ericsson.com>
11451
11452         * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
11453         instead of nullptr.
11454
11455 2018-04-16  Pedro Alves  <palves@redhat.com>
11456
11457         * MAINTAINERS (sh): Remove.
11458         * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
11459         (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
11460         (ALLDEPFILES): Remove sh64-tdep.c.
11461         * NEWS: Mentions that support for SH-5/SH64 is removed.
11462         * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
11463         (sh*-*-openbsd*): Ditto.
11464         (sh64-*-elf*): Remove.
11465         (sh*): Remove.
11466         * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
11467         * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
11468         * sh-tdep.c: No longer include "sh64-tdep.h".
11469         (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
11470         * sh64-tdep.c, sh64-tdep.h: Remove files.
11471
11472 2018-04-16  Pedro Alves  <palves@redhat.com>
11473
11474         * MAINTAINERS: Remove m88k.
11475         * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
11476         (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
11477         (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
11478         * NEWS: Mention that support for m88k was removed.
11479         * configure.host (m88*-*-*): Remove support.
11480         * configure.nat (m88k-*-*): Remove support.
11481         * configure.tgt (m88*-*-openbsd*): Remove.
11482         * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
11483
11484 2018-04-15  Simon Marchi  <simon.marchi@polymtl.ca>
11485
11486         * configure.tgt (x86_tobjs): New variable.
11487         (amd64_tobjs, i386_tobjs): Use it.
11488
11489 2018-04-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11490
11491         * symtab.c (print_symbol_info): Precede the symbol definition by
11492         the line number when available.
11493         * NEWS: Advertise this enhancement.
11494
11495 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
11496
11497         * NEWS (New options): announce set/show record btrace cpu.
11498         * btrace.c: Include record-btrace.h.
11499         (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
11500         the vendor is unknown.
11501         (btrace_compute_ftrace_1): Add cpu parameter.  Update callers.
11502         Maybe overwrite the btrace configuration's cpu.
11503         (btrace_compute_ftrace): Add cpu parameter.  Update callers.
11504         (btrace_fetch): Add cpu parameter.  Update callers.
11505         (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
11506         Maybe overwrite the btrace configuration's cpu.  Skip enabling
11507         errata workarounds if the vendor is unknown.
11508         * python/py-record-btrace.c: Include record-btrace.h.
11509         (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
11510         (recpy_bt_function_call_history): Call record_btrace_get_cpu.
11511         * record-btrace.c (record_btrace_cpu_state_kind): New.
11512         (record_btrace_cpu): New.
11513         (set_record_btrace_cpu_cmdlist): New.
11514         (record_btrace_get_cpu): New.
11515         (require_btrace_thread, record_btrace_info)
11516         (record_btrace_resume_thread): Call record_btrace_get_cpu.
11517         (cmd_set_record_btrace_cpu_none): New.
11518         (cmd_set_record_btrace_cpu_auto): New.
11519         (cmd_set_record_btrace_cpu): New.
11520         (cmd_show_record_btrace_cpu): New.
11521         (_initialize_record_btrace): Initialize set/show record btrace cpu
11522         commands.
11523         * record-btrace.h (record_btrace_get_cpu): New.
11524
11525 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
11526
11527         * record.c (set_record_command): Fix typo in message.
11528
11529 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
11530
11531         * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
11532
11533 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
11534
11535         * infrun.c (process_event_stop_test): Call
11536         gdbarch_in_indirect_branch_thunk.
11537         * gdbarch.sh (in_indirect_branch_thunk): New.
11538         * gdbarch.c: Regenerated.
11539         * gdbarch.h: Regenerated.
11540         * x86-tdep.h: New.
11541         * x86-tdep.c: New.
11542         * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
11543         (HFILES_NO_SRCDIR): Add x86-tdep.h.
11544         (ALLDEPFILES): Add x86-tdep.c.
11545         * arch-utils.h (default_in_indirect_branch_thunk): New.
11546         * arch-utils.c (default_in_indirect_branch_thunk): New.
11547         * i386-tdep: Include x86-tdep.h.
11548         (i386_in_indirect_branch_thunk): New.
11549         (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
11550         function.
11551         * amd64-tdep: Include x86-tdep.h.
11552         (amd64_in_indirect_branch_thunk): New.
11553         (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
11554
11555 2018-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
11556
11557         PR gdb/23053
11558         * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
11559         (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
11560         (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
11561         regression.
11562
11563 2018-04-12  Tom Tromey  <tom@tromey.com>
11564
11565         * rust-lang.c (rust_print_struct_def): Remove univariant code.
11566         (rust_evaluate_subexp): Likewise.
11567
11568 2018-04-12  Pedro Alves  <palves@redhat.com>
11569
11570         * procfs.c (procfs_detach): Make forward declaration's prototype
11571         match definition's protototype.
11572         (proc_get_LDT_entry): Remove stale do_cleanups call.
11573
11574 2018-04-12  Pedro Alves  <palves@redhat.com>
11575
11576         * target.h (target_ops::to_has_exited): Delete.
11577         (target_has_exited): Delete.
11578         * target-delegates.c: Regenerate.
11579
11580 2018-04-11  Pedro Alves  <palves@redhat.com>
11581
11582         * target.c (fileio_fh_t::t): Add comment.
11583         (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
11584         (target_fileio_close): Handle a NULL target.
11585         (invalidate_fileio_fh): New.
11586         (target_close): Call it.
11587         * remote.c (remote_hostio_send_command): No longer check whether
11588         remote_desc is open.
11589
11590 2018-04-11  Pedro Alves  <palves@redhat.com>
11591
11592         * target.c (fileio_fh_t): Make it a named struct instead of a
11593         typedef.
11594         (fileio_fh_t::is_closed): New method.
11595         (DEF_VEC_O (fileio_fh_t)): Remove.
11596         (fileio_fhandles): Now a std::vector.
11597         (is_closed_fileio_fh): Delete.
11598         (acquire_fileio_fd): Adjust.  Rename parameters.
11599         (release_fileio_fd): Adjust.
11600         (fileio_fd_to_fh): Reimplement as a function instead of a macro.
11601         (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
11602         (target_fileio_close): Adjust.
11603
11604 2018-04-10  Simon Marchi  <simon.marchi@ericsson.com>
11605
11606         * auto-load.c (auto_load_safe_path_vec_update): Iterate by
11607         index.
11608
11609 2018-04-10  Pedro Alves  <palves@redhat.com>
11610
11611         * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
11612         (scoped_finish_thread_state): New class.
11613         * infcmd.c (run_command_1): Use it instead of finish_thread_state
11614         cleanup.
11615         * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
11616         (fetch_inferior_event, normal_stop): Likewise.
11617         * thread.c (finish_thread_state_cleanup): Delete.
11618
11619 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
11620             Pedro Alves  <palves@redhat.com>
11621
11622         * value.c: Include "selftest.h" and "common/array-view.h".
11623         (struct range) <operator ==>: New.
11624         (test_ranges_contain): New.
11625         (check_ranges_vector): New.
11626         (test_insert_into_bit_range_vector): New.
11627         (_initialize_values): Register selftests.
11628         * common/array-view.h (operator==, operator!=): New.
11629
11630 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
11631
11632         * common/gdb_vecs.h (unordered_remove): Add overload that takes
11633         an iterator.
11634         * inline-frame.c: Include <algorithm>.
11635         (struct inline_state): Add constructor.
11636         (inline_state_s): Remove.
11637         (DEF_VEC_O(inline_state_s)): Remove.
11638         (inline_states): Change type to std::vector.
11639         (find_inline_frame_state): Adjust to std::vector.
11640         (allocate_inline_frame_state): Remove.
11641         (clear_inline_frame_state): Adjust to std::vector.
11642         (skip_inline_frames): Adjust to std::vector.
11643
11644 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
11645
11646         * tracepoint.h (struct trace_state_variable): Add constructor.
11647         <name>: Change type to std::string.
11648         * tracepoint.c (tsv_s): Remove.
11649         (DEF_VEC_O(tsv_s)): Remove.
11650         (tvariables): Change to std::vector.
11651         (create_trace_state_variable): Adjust to std::vector.
11652         (find_trace_state_variable): Likewise.
11653         (find_trace_state_variable_by_number): Likewise.
11654         (delete_trace_state_variable): Likewise.
11655         (trace_variable_command): Adjust to std::string.
11656         (delete_trace_variable_command): Likewise.
11657         (tvariables_info_1): Adjust to std::vector.
11658         (save_trace_state_variables): Likewise.
11659         (start_tracing): Likewise.
11660         (merge_uploaded_trace_state_variables): Adjust to std::vector
11661         and std::string.
11662         * target.h (struct target_ops)
11663         <to_download_trace_state_variable>: Pass reference to
11664         trace_state_variable.
11665         * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
11666         * target-delegates.c: Re-generate.
11667         * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
11668         (mi_tsv_deleted): Likewise.
11669         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
11670         * remote.c (remote_download_trace_state_variable): Change
11671         pointer to reference and adjust.
11672         * make-target-delegates (parse_argtypes): Handle references.
11673         (write_function_header): Likewise.
11674         (munge_type): Likewise.
11675
11676 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
11677
11678         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11679         string_view-selftests.c.
11680         * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
11681         testsuite.
11682         * unittests/basic_string_view/cons/char/1.cc: Likewise.
11683         * unittests/basic_string_view/cons/char/2.cc: Likewise.
11684         * unittests/basic_string_view/cons/char/3.cc: Likewise.
11685         * unittests/basic_string_view/element_access/char/1.cc:
11686         Likewise.
11687         * unittests/basic_string_view/element_access/char/empty.cc:
11688         Likewise.
11689         * unittests/basic_string_view/element_access/char/front_back.cc:
11690         Likewise.
11691         * unittests/basic_string_view/inserters/char/2.cc: Likewise.
11692         * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
11693         Likewise.
11694         * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
11695         Likewise.
11696         * unittests/basic_string_view/modifiers/swap/char/1.cc:
11697         Likewise.
11698         * unittests/basic_string_view/operations/compare/char/1.cc:
11699         Likewise.
11700         * unittests/basic_string_view/operations/compare/char/13650.cc:
11701         Likewise.
11702         * unittests/basic_string_view/operations/copy/char/1.cc:
11703         Likewise.
11704         * unittests/basic_string_view/operations/data/char/1.cc:
11705         Likewise.
11706         * unittests/basic_string_view/operations/find/char/1.cc:
11707         Likewise.
11708         * unittests/basic_string_view/operations/find/char/2.cc:
11709         Likewise.
11710         * unittests/basic_string_view/operations/find/char/3.cc:
11711         Likewise.
11712         * unittests/basic_string_view/operations/find/char/4.cc:
11713         Likewise.
11714         * unittests/basic_string_view/operations/rfind/char/1.cc:
11715         Likewise.
11716         * unittests/basic_string_view/operations/rfind/char/2.cc:
11717         Likewise.
11718         * unittests/basic_string_view/operations/rfind/char/3.cc:
11719         Likewise.
11720         * unittests/basic_string_view/operations/substr/char/1.cc:
11721         Likewise.
11722         * unittests/basic_string_view/operators/char/2.cc: Likewise.
11723         * unittests/string_view-selftests.c: New file.
11724
11725 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
11726
11727         * unittests/basic_string_view/capacity/1.cc: New file.
11728         * unittests/basic_string_view/capacity/empty_neg.cc: New file.
11729         * unittests/basic_string_view/cons/char/1.cc: New file.
11730         * unittests/basic_string_view/cons/char/2.cc: New file.
11731         * unittests/basic_string_view/cons/char/3.cc: New file.
11732         * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
11733         * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
11734         * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
11735         * unittests/basic_string_view/element_access/char/1.cc: New file.
11736         * unittests/basic_string_view/element_access/char/2.cc: New file.
11737         * unittests/basic_string_view/element_access/char/empty.cc: New file.
11738         * unittests/basic_string_view/element_access/char/front_back.cc: New file.
11739         * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
11740         * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
11741         * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
11742         * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
11743         * unittests/basic_string_view/include.cc: New file.
11744         * unittests/basic_string_view/inserters/char/1.cc: New file.
11745         * unittests/basic_string_view/inserters/char/2.cc: New file.
11746         * unittests/basic_string_view/inserters/char/3.cc: New file.
11747         * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
11748         * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
11749         * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
11750         * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
11751         * unittests/basic_string_view/literals/types.cc: New file.
11752         * unittests/basic_string_view/literals/values.cc: New file.
11753         * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
11754         * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
11755         * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
11756         * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
11757         * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
11758         * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
11759         * unittests/basic_string_view/operations/compare/char/1.cc: New file.
11760         * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
11761         * unittests/basic_string_view/operations/compare/char/2.cc: New file.
11762         * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
11763         * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
11764         * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
11765         * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
11766         * unittests/basic_string_view/operations/copy/char/1.cc: New file.
11767         * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
11768         * unittests/basic_string_view/operations/data/char/1.cc: New file.
11769         * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
11770         * unittests/basic_string_view/operations/find/char/1.cc: New file.
11771         * unittests/basic_string_view/operations/find/char/2.cc: New file.
11772         * unittests/basic_string_view/operations/find/char/3.cc: New file.
11773         * unittests/basic_string_view/operations/find/char/4.cc: New file.
11774         * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
11775         * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
11776         * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
11777         * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
11778         * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
11779         * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
11780         * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
11781         * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
11782         * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
11783         * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
11784         * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
11785         * unittests/basic_string_view/operations/substr/char/1.cc: New file.
11786         * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
11787         * unittests/basic_string_view/operators/char/2.cc: New file.
11788         * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
11789         * unittests/basic_string_view/range_access/char/1.cc: New file.
11790         * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
11791         * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
11792         * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
11793         * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
11794         * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
11795         * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
11796         * unittests/basic_string_view/requirements/typedefs.cc: New file.
11797         * unittests/basic_string_view/typedefs.cc: New file.
11798         * unittests/basic_string_view/types/1.cc: New file.
11799
11800 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
11801
11802         * common/gdb_string_view.h: Remove libstdc++ implementation
11803         details, adjust to gdb reality.
11804         * common/gdb_string_view.tcc: Likewise.
11805         * cli/cli-script.c (struct string_view): Remove.
11806         (user_args) <m_args>: Change element type to gdb::string_view.
11807         (user_args::insert_args): Adjust.
11808
11809 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
11810
11811         * common/gdb_string_view.h: New file.
11812         * common/gdb_string_view.tcc: New file.
11813
11814 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
11815
11816         * ax_cxx_compile_stdcxx.m4: Sync with upstream.
11817         * configure: Re-generate.
11818
11819 2018-04-09  Pedro Alves  <palves@redhat.com>
11820
11821         * gdbarch.sh: Include "observable.h" instead of "observer.h".
11822         (set_target_gdbarch): Call
11823         gdb::observers::architecture_changed.notify instead of
11824         observer_notify_architecture_changed.
11825
11826 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
11827
11828         * tracepoint.c (struct current_traceframe_cleanup): Remove.
11829         (do_restore_current_traceframe_cleanup): Remove.
11830         (restore_current_traceframe_cleanup_dtor): Remove.
11831         (make_cleanup_restore_current_traceframe): Remove.
11832         (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
11833         New.
11834         * tracepoint.h (struct scoped_restore_current_traceframe): New.
11835         * infrun.c (fetch_inferior_event): Use
11836         scoped_restore_current_traceframe.
11837
11838 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
11839
11840         * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
11841         Remove.
11842         <n_allocated_type_units>: Remove.
11843         <all_type_units>: Change to std::vector.
11844         * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
11845         to std::vector change.
11846         (dwarf2_per_objfile::get_cutu): Likewise.
11847         (dwarf2_per_objfile::get_tu): Likewise.
11848         (create_signatured_type_table_from_index): Likewise.
11849         (create_signatured_type_table_from_debug_names): Likewise.
11850         (dw2_symtab_iter_next): Likewise.
11851         (dw2_print_stats): Likewise.
11852         (dw2_expand_all_symtabs): Likewise.
11853         (dw2_expand_marked_cus): Likewise.
11854         (dw2_debug_names_iterator::next): Likewise.
11855         (dwarf2_initialize_objfile): Likewise.
11856         (add_signatured_type_cu_to_table): Likewise.
11857         (create_all_type_units): Likewise.
11858         (add_type_unit): Likewise.
11859         (struct tu_abbrev_offset): Add constructor.
11860         (build_type_psymtabs_1): Adjust to std::vector change.
11861         (print_tu_stats): Likewise.
11862         * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
11863         (write_debug_names): Likewise.
11864
11865 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
11866
11867         * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
11868         Make an std::vector.
11869         <n_comp_units>: Remove.
11870         * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
11871         to std::vector change.
11872         (dwarf2_per_objfile::get_cutu): Likewise.
11873         (dwarf2_per_objfile::get_cu): Likewise.
11874         (create_cus_from_index): Likewise.
11875         (create_addrmap_from_index): Likewise.
11876         (create_addrmap_from_aranges): Likewise.
11877         (dwarf2_read_index): Likewise.
11878         (dw2_find_last_source_symtab): Likewise.
11879         (dw2_map_symtabs_matching_filename): Likewise.
11880         (dw2_symtab_iter_next): Likewise.
11881         (dw2_print_stats): Likewise.
11882         (dw2_expand_all_symtabs): Likewise.
11883         (dw2_expand_symtabs_with_fullname): Likewise.
11884         (dw2_expand_marked_cus): Likewise.
11885         (dw2_map_symbol_filenames): Likewise.
11886         (create_cus_from_debug_names): Likewise.
11887         (dwarf2_read_debug_names): Likewise.
11888         (dw2_debug_names_iterator::next): Likewise.
11889         (dwarf2_initialize_objfile): Likewise.
11890         (set_partial_user): Likewise.
11891         (dwarf2_build_psymtabs_hard): Likewise.
11892         (read_comp_units_from_section): Remove arguments, adjust to
11893         std::vector change.
11894         (create_all_comp_units): Adjust to std::vector and
11895         read_comp_units_from_section changes.
11896         (dwarf2_find_containing_comp_unit): Adjust to std::vector
11897         change.
11898         * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
11899         (psyms_seen_size): Likewise.
11900         (write_gdbindex): Likewise.
11901         (write_debug_names): Likewise.
11902
11903 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
11904
11905         * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
11906         with dwarf2_per_objfile.
11907         (create_cus_from_index): Likewise.
11908         (create_signatured_type_table_from_index): Likewise.
11909         (dwarf2_read_index): Likewise.
11910         (dwarf2_initialize_objfile): Likewise.
11911         (dwarf2_fetch_die_loc_sect_off):  Get dwarf2_per_objfile from
11912         per_cu rather than get_dwarf2_per_objfile.
11913
11914 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
11915
11916         * dwarf2read.h (struct signatured_type): Forward declare.
11917         (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
11918         New methods.
11919         * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
11920         (dw2_get_cutu): ...this.
11921         (dwarf2_per_objfile::get_cu): Rename from...
11922         (dw2_get_cu): ...this.
11923         (dwarf2_per_objfile::get_tu): New.
11924         (create_addrmap_from_index): Adjust.
11925         (create_addrmap_from_aranges): Adjust.
11926         (dw2_find_last_source_symtab): Adjust.
11927         (dw2_map_symtabs_matching_filename): Adjust.
11928         (dw2_symtab_iter_next): Adjust.
11929         (dw2_print_stats): Adjust.
11930         (dw2_expand_all_symtabs): Adjust.
11931         (dw2_expand_symtabs_with_fullname): Adjust.
11932         (dw2_expand_marked_cus): Adjust.
11933         (dw_expand_symtabs_matching_file_matcher): Adjust.
11934         (dw2_map_symbol_filenames): Adjust.
11935         (dw2_debug_names_iterator::next): Adjust.
11936         (dwarf2_initialize_objfile): Adjust.
11937         (set_partial_user): Adjust.
11938         (dwarf2_build_psymtabs_hard): Adjust.
11939
11940 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
11941
11942         * dwarf2read.c (create_signatured_type_table_from_debug_names):
11943         Remove unused variables.
11944         (dw2_map_symtabs_matching_filename): Likewise.
11945         (dwarf2_record_block_ranges): Likewise.
11946         (dwarf2_read_addr_index): Likewise.
11947         (follow_die_offset): Likewise.
11948
11949 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
11950
11951         * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
11952         to symbol_file_add_main.
11953
11954 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
11955
11956         PR mi/22299
11957         * mi/mi-console.c (do_fputc_async_safe): New.
11958         (mi_console_file::write_async_safe): New.
11959         (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
11960         * mi/mi-console.h (class mi_console_file) <write_async_safe>:
11961         New.
11962         * ui-file.c (ui_file::putstrn): Adjust call to
11963         fputstrn_unfiltered.
11964         * utils.c (printchar): Replace do_fputs and do_fprintf
11965         parameters by do_fputc.
11966         (fputstr_filtered): Adjust call to printchar.
11967         (fputstr_unfiltered): Likewise.
11968         (fputstrn_filtered): Likewise.
11969         (fputstrn_unfiltered): Add do_fputc parameter, pass to
11970         printchar.
11971         * utils.h (do_fputc_ftype): New typedef.
11972         (fputstrn_unfiltered): Add do_fputc parameter.
11973
11974 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
11975
11976         * regformats/i386/i386-avx.dat: Remove.
11977
11978 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
11979
11980         PR gdb/22979
11981         * amd64-tdep.c (amd64_none_init_abi): New function.
11982         (amd64_x32_none_init_abi): New function.
11983         (_initialize_amd64_tdep): Register handlers for x86-64 and
11984         x64_32 with GDB_OSABI_NONE.
11985         * osabi.c (gdbarch_init_osabi): Allow running handlers for the
11986         GDB_OSABI_NONE osabi.
11987
11988 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
11989
11990         PR gdb/22980
11991         * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
11992         GDB_OSABI_NONE.
11993         * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
11994         * osabi.c (gdb_osabi_names): Add "unknown" entry.
11995
11996 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
11997
11998         * common/byte-vector.h (char_vector): New type.
11999         * target.h (target_read_alloc): Return
12000         gdb::optional<byte_vector>.
12001         (target_read_stralloc): Return gdb::optional<char_vector>.
12002         (target_get_osdata): Return gdb::optional<char_vector>.
12003         * target.c (target_read_alloc_1): Templatize.  Replacement
12004         manual memory management with vector.
12005         (target_read_alloc): Change return type, adjust.
12006         (target_read_stralloc): Change return type, adjust.
12007         (target_get_osdata): Change return type, adjust.
12008         * auxv.c (struct auxv_info) <length>: Remove.
12009         <data>: Change type to gdb::optional<byte_vector>.
12010         (auxv_inferior_data_cleanup): Free auxv_info with delete.
12011         (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
12012         (target_auxv_search): Adjust.
12013         (fprint_target_auxv): Adjust.
12014         * avr-tdep.c (avr_io_reg_read_command): Adjust.
12015         * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
12016         (linux_make_corefile_notes): Adjust.
12017         * osdata.c (get_osdata): Adjust.
12018         * remote.c (remote_get_threads_with_qxfer): Adjust.
12019         (remote_memory_map): Adjust.
12020         (remote_traceframe_info): Adjust.
12021         (btrace_read_config): Adjust.
12022         (remote_read_btrace): Adjust.
12023         (remote_pid_to_exec_file): Adjust.
12024         * solib-aix.c (solib_aix_get_library_list): Adjust.
12025         * solib-dsbt.c (decode_loadmap): Don't free buf.
12026         (dsbt_get_initial_loadmaps): Adjust.
12027         * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
12028         * solib-target.c (solib_target_current_sos): Adjust.
12029         * tracepoint.c (sdata_make_value): Adjust.
12030         * xml-support.c (xinclude_start_include): Adjust.
12031         (xml_fetch_content_from_file): Adjust.
12032         * xml-support.h (xml_fetch_another): Change return type.
12033         (xml_fetch_content_from_file): Change return type.
12034         * xml-syscall.c (xml_init_syscalls_info): Adjust.
12035         * xml-tdesc.c (file_read_description_xml): Adjust.
12036         (fetch_available_features_from_target): Change return type.
12037         (target_fetch_description_xml): Adjust.
12038         (target_read_description_xml): Adjust.
12039
12040 2018-04-06  Tom Tromey  <tom@tromey.com>
12041
12042         * value.c (~value): Update.
12043         (struct value) <contents>: Now unique_xmalloc_ptr.
12044         (value_contents_bits_eq, allocate_value_contents)
12045         (value_contents_raw, value_contents_all_raw)
12046         (value_contents_for_printing, value_contents_for_printing_const)
12047         (set_value_enclosing_type): Update.
12048
12049 2018-04-06  Tom Tromey  <tom@tromey.com>
12050
12051         * value.c (range_s): Remove typedef, VEC.
12052         (struct range): Add operator<.
12053         (range_lessthan): Remove.
12054         (ranges_contain): Change type.
12055         (~value): Update.
12056         (struct value) <unavailable, optimized_out>: Now std::vector.
12057         (value_entirely_available)
12058         (value_entirely_covered_by_range_vector)
12059         (value_entirely_unavailable, value_entirely_optimized_out):
12060         Update.
12061         (insert_into_bit_range_vector): Change argument type.
12062         (find_first_range_overlap): Likewise.
12063         (struct ranges_and_idx, value_contents_bits_eq)
12064         (require_not_optimized_out, require_available): Update.
12065         (ranges_copy_adjusted): Change argument types.
12066         (value_optimized_out, value_copy, value_fetch_lazy): Update.
12067
12068 2018-04-06  Tom Tromey  <tom@tromey.com>
12069
12070         * value.c (~value): Update.
12071         (struct value) <parent>: Now a value_ref_ptr.
12072         (value_parent, set_value_parent, value_address, value_copy):
12073         Update.
12074
12075 2018-04-06  Tom Tromey  <tom@tromey.com>
12076
12077         * value.c (struct value): Add constructor, destructor, and member
12078         initializers.
12079         (allocate_value_lazy, value_decref): Update.
12080
12081 2018-04-06  Tom Tromey  <tom@tromey.com>
12082
12083         * value.c (struct value) <released, next>: Remove.
12084         (all_values): Now a std::vector.
12085         (allocate_value_lazy): Update.
12086         (value_next): Remove.
12087         (value_mark, value_free_to_mark, release_value)
12088         (value_release_to_mark): Update.
12089
12090 2018-04-06  Tom Tromey  <tom@tromey.com>
12091
12092         * value.h (fetch_subexp_value, value_release_to_mark): Update.
12093         (free_value_chain): Remove.
12094         * value.c (free_value_chain): Remove.
12095         (value_release_to_mark): Return a std::vector.
12096         * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
12097         std::vector.
12098         (check_condition): Update.
12099         * eval.c (fetch_subexp_value): Change "val_chain" to a
12100         std::vector.
12101         * breakpoint.c (update_watchpoint): Update.
12102         (can_use_hardware_watchpoint): Change "vals" to a std::vector.
12103
12104 2018-04-06  Tom Tromey  <tom@tromey.com>
12105
12106         * value.h (free_all_values): Remove.
12107         * value.c (free_all_values): Remove.
12108
12109 2018-04-06  Tom Tromey  <tom@tromey.com>
12110
12111         * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
12112         (value_history_chain, value_history_count): Remove.
12113         (value_history): New global.
12114         (record_latest_value, access_value_history, show_values)
12115         (preserve_values): Update.
12116
12117 2018-04-06  Tom Tromey  <tom@tromey.com>
12118
12119         * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
12120         * varobj.c (varobj_set_display_format, varobj_set_value)
12121         (install_default_visualizer, construct_visualizer)
12122         (install_new_value, ~varobj, varobj_get_value_type)
12123         (my_value_of_variable, varobj_editable_p): Update.
12124         * c-varobj.c (c_describe_child, c_value_of_variable)
12125         (cplus_number_of_children, cplus_describe_child): Update.
12126         * ada-varobj.c (ada_number_of_children, ada_name_of_child)
12127         (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
12128         (ada_value_of_variable, ada_value_is_changeable_p): Update.
12129
12130 2018-04-06  Tom Tromey  <tom@tromey.com>
12131
12132         * printcmd.c (last_examine_address): Change type to
12133         value_ref_ptr.
12134         (do_examine, x_command): Update.
12135
12136 2018-04-06  Tom Tromey  <tom@tromey.com>
12137
12138         * value.c (release_value): Update.
12139         * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
12140         (struct bpstats) <val>: Now a value_ref_ptr.
12141         * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
12142         (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
12143         (~watchpoint, print_it_watchpoint, watch_command_1)
12144         (invalidate_bp_value_on_memory_change): Update.
12145
12146 2018-04-06  Tom Tromey  <tom@tromey.com>
12147
12148         * varobj.c (varobj_clear_saved_item)
12149         (update_dynamic_varobj_children, install_new_value, ~varobj):
12150         Update.
12151         * value.h (value_incref): Move declaration earlier.
12152         (value_decref): Rename from value_free.
12153         (struct value_ref_policy): New.
12154         (value_ref_ptr): New typedef.
12155         (struct value_deleter): Remove.
12156         (gdb_value_up): Remove typedef.
12157         (release_value): Change return type.
12158         (release_value_or_incref): Remove.
12159         * value.c (set_value_parent): Update.
12160         (value_incref): Change return type.
12161         (value_decref): Rename from value_free.
12162         (value_free_to_mark, free_all_values, free_value_chain): Update.
12163         (release_value): Return value_ref_ptr.
12164         (release_value_or_incref): Remove.
12165         (record_latest_value, set_internalvar, clear_internalvar):
12166         Update.
12167         * stack.c (info_frame_command): Don't call value_free.
12168         * python/py-value.c (valpy_dealloc, valpy_new)
12169         (value_to_value_object): Update.
12170         * printcmd.c (do_examine): Update.
12171         * opencl-lang.c (lval_func_free_closure): Update.
12172         * mi/mi-main.c (register_changed_p): Don't call value_free.
12173         * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
12174         * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
12175         * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
12176         value_free.
12177         * guile/scm-value.c (vlscm_free_value_smob)
12178         (vlscm_scm_from_value): Update.
12179         * frame.c (frame_register_unwind, frame_unwind_register_signed)
12180         (frame_unwind_register_unsigned, get_frame_register_bytes)
12181         (put_frame_register_bytes): Don't call value_free.
12182         * findvar.c (address_from_register): Don't call value_free.
12183         * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
12184         * dwarf2loc.c (entry_data_value_free_closure)
12185         (value_of_dwarf_reg_entry, free_pieced_value_closure)
12186         (dwarf2_evaluate_loc_desc_full): Update.
12187         * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
12188         (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
12189         (~watchpoint, watch_command_1)
12190         (invalidate_bp_value_on_memory_change): Update.
12191         * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
12192
12193 2018-04-06  Simon Marchi  <simon.marchi@polymtl.ca>
12194
12195         PR gdb/23022
12196         * warning.m4: Add -Wno-error=deprecated-register.
12197         * configure: Re-generate.
12198
12199 2018-04-05  Tom Tromey  <tom@tromey.com>
12200
12201         * linespec.h: Remove include of "vec.h".
12202
12203 2018-04-05  Tom Tromey  <tom@tromey.com>
12204
12205         * linespec.c (typep): Remove typedef.
12206         (find_methods, find_superclass_methods): Take a std::vector.
12207         (find_method): Use std::vector.
12208
12209 2018-04-05  Tom Tromey  <tom@tromey.com>
12210
12211         * utils.c (compare_strings): Remove.
12212         * utils.h (compare_strings): Remove.
12213         * objc-lang.h (find_imps): Update.
12214         * objc-lang.c (find_methods): Take a std::vector.
12215         (uniquify_strings, find_imps): Likewise.
12216         * linespec.c (find_methods): Take a std::vector.
12217         (decode_objc): Use std::vector.
12218         (add_all_symbol_names_from_pspace, find_superclass_methods): Take
12219         a std::vector.
12220         (find_method, find_function_symbols): Use std::vector.
12221
12222 2018-04-05  Tom Tromey  <tom@tromey.com>
12223
12224         * completer.c (completion_tracker::completion_tracker): Remove
12225         cast.
12226         (completion_tracker::discard_completions): Likewise.
12227         * breakpoint.c (ambiguous_names_p): Remove cast.
12228         * ada-lang.c (_initialize_ada_language): Remove cast.
12229         * utils.h (streq): Update.
12230         (streq_hash): Add new declaration.
12231         * utils.c (streq): Return bool.
12232         (streq_hash): New function.
12233
12234 2018-04-05  Tom Tromey  <tom@tromey.com>
12235
12236         * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
12237         Remove a string copy.
12238
12239 2018-04-05  Tom Tromey  <tom@tromey.com>
12240
12241         * linespec.c (filter_results): Use std::vector.
12242         (decode_line_2, decode_line_full): Update.
12243
12244 2018-04-05  Tom Tromey  <tom@tromey.com>
12245
12246         * linespec.c (canonical_to_fullform): Return std::string.
12247         (filter_results): Update.
12248         (struct decode_line_2_item): Add constructor.
12249         <fullform, displayform>: Now std::string.
12250         (decode_line_2_compare_items): Now a std::sort comparator.
12251         (decode_line_2): Update.
12252
12253 2018-04-05  Tom Tromey  <tom@tromey.com>
12254
12255         * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
12256         (unexpected_linespec_error): Update.
12257         (linespec_parse_basic, parse_linespec): Update.
12258
12259 2018-04-05  Tom Tromey  <tom@tromey.com>
12260
12261         * linespec.c (linespec_parse_basic): Reindent.
12262
12263 2018-04-05  Tom Tromey  <tom@tromey.com>
12264
12265         * minsyms.h (iterate_over_minimal_symbols): Update.
12266         * minsyms.c (iterate_over_minimal_symbols): Take a
12267         gdb::function_view.
12268         * linespec.c (struct collect_minsyms): Remove.
12269         (compare_msyms): Now a std::sort comparator.
12270         (add_minsym): Add parameters.
12271         (search_minsyms_for_name): Update.  Use std::vector.
12272
12273 2018-04-03  Tom Tromey  <tom@tromey.com>
12274
12275         * mipsread.c (read_alphacoff_dynamic_symtab): Use
12276         gdb::byte_vector.
12277
12278 2018-04-02  Weimin Pan  <weimin.pan@oracle.com>
12279
12280         * MAINTAINERS (Write After Approval): Add Weimin Pan.
12281
12282 2018-04-02  Weimin Pan  <weimin.pan@oracle.com>
12283
12284         PR gdb/16959
12285         * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when 
12286         printing static type.
12287
12288 2018-04-01  Tom Tromey  <tom@tromey.com>
12289
12290         * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
12291         (rs6000_xfer_shared_libraries): Update.
12292
12293 2018-04-01  Simon Marchi  <simon.marchi@polymtl.ca>
12294
12295         * common/gdb_vecs.h (char_ptr): Remove.
12296         * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
12297
12298 2018-03-30  Simon Marchi  <simon.marchi@polymtl.ca>
12299
12300         * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
12301         with std::vector.
12302         * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
12303
12304 2018-03-30  Simon Marchi  <simon.marchi@polymtl.ca>
12305
12306         * tracepoint.h (struct uploaded_tp): Initialize fields.
12307         <actions, step_actions, cmd_strings>: Change type to
12308         std::vector<char *>.
12309         * tracepoint.c (get_uploaded_tp): Allocate with new.
12310         (free_uploaded_tps): Free with delete.
12311         (parse_tracepoint_definition): Adjust to std::vector change.
12312         * breakpoint.c (read_uploaded_action): Likewise.
12313         (create_tracepoint_from_upload): Likewise.
12314         * ctf.c (ctf_write_uploaded_tp): Likewise.
12315         (SET_ARRAY_FIELD): Likewise.
12316         * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
12317
12318 2018-03-30  Tom Tromey  <tom@tromey.com>
12319
12320         * solib-svr4.c (lm_info_read): Use gdb::byte_vector.  Return
12321         std::unique_ptr.
12322         (svr4_keep_data_in_core): Update.
12323         (svr4_read_so_list): Update.
12324
12325 2018-03-30  Tom Tromey  <tom@tromey.com>
12326
12327         * windows-nat.c (handle_output_debug_string, handle_exception):
12328         Update.
12329         * target.h (target_read_string): Update.
12330         * target.c (target_read_string): Change "string" to
12331         unique_xmalloc_ptr.
12332         * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
12333         Update.
12334         * solib-frv.c (frv_current_sos): Update.
12335         * solib-dsbt.c (dsbt_current_sos): Update.
12336         * solib-darwin.c (darwin_current_sos): Update.
12337         * linux-thread-db.c (inferior_has_bug): Update.
12338         * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
12339         Update.  Remove alloca.
12340         * ada-lang.c (ada_main_name): Update.
12341
12342 2018-03-30  Tom Tromey  <tom@tromey.com>
12343
12344         * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
12345         (struct dwo_file_deleter): New.
12346         (dwo_file_up): New typedef.
12347         (open_and_init_dwo_file): Use dwo_file_up.
12348         (free_dwo_file_cleanup): Remove.
12349
12350 2018-03-30  Tom Tromey  <tom@tromey.com>
12351
12352         * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
12353         (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
12354
12355 2018-03-30  Tom Tromey  <tom@tromey.com>
12356
12357         * dwarf2read.c (class free_cached_comp_units): New class.
12358         (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
12359         (free_cached_comp_units): Remove function.
12360
12361 2018-03-30  Tom Tromey  <tom@tromey.com>
12362
12363         * utils.h (make_cleanup_unpush_target): Remove.
12364         * inf-ptrace.c (struct target_unpusher): New.
12365         (target_unpush_up) New typedef.
12366         (inf_ptrace_create_inferior, inf_ptrace_attach): Use
12367         target_unpush_up.
12368         * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
12369
12370 2018-03-27  Tom Tromey  <tom@tromey.com>
12371
12372         * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
12373
12374 2018-03-27  Pedro Alves  <palves@redhat.com>
12375             Tom Tromey  <tom@tromey.com>
12376
12377         * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
12378         destructor.  Now a class.
12379         (gdb_readline_wrapper_cleanup): Remove function.
12380         (gdb_readline_wrapper): Remove cleanups.
12381
12382 2018-03-27  Tom Tromey  <tom@tromey.com>
12383
12384         * typeprint.h (struct type_print_options) <local_typedefs,
12385         global_typedefs>: Remove "struct" keyword.
12386         (class typedef_hash_table): New class.
12387         (recursively_update_typedef_hash, add_template_parameters)
12388         (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
12389         (find_typedef_in_hash): Don't declare.
12390         * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
12391         (typedef_hash_table::recursively_update): Rename from
12392         recursively_update_typedef_hash.  Now a member.
12393         (typedef_hash_table::add_template_parameters): Rename from
12394         add_template_parameters.  Now a member.
12395         (typedef_hash_table::typedef_hash_table): Now a constructor;
12396         rename from create_typedef_hash.
12397         (typedef_hash_table::~typedef_hash_table): Now a destructor;
12398         rename from free_typedef_hash.
12399         (do_free_typedef_hash, make_cleanup_free_typedef_hash)
12400         (do_free_global_table): Remove.
12401         (typedef_hash_table::typedef_hash_table): New constructor; renamed
12402         from copy_type_recursive.
12403         (create_global_typedef_table): Remove.
12404         (typedef_hash_table::find_global_typedef): Now a member of
12405         typedef_hash_table.
12406         (typedef_hash_table::find_typedef): Rename from
12407         find_typedef_in_hash; now a member.
12408         (whatis_exp): Update.
12409         * extension.h (struct ext_lang_type_printers): Add constructor and
12410         destructor.
12411         (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
12412         declare.
12413         * extension.c (ext_lang_type_printers::ext_lang_type_printers):
12414         Now a constructor; rename from start_ext_lang_type_printers.
12415         (ext_lang_type_printers): Now a destructor; rename from
12416         free_ext_lang_type_printers.
12417         * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
12418         Update.
12419         (c_type_print_base_struct_union): Update.  Remove cleanups.
12420
12421 2018-03-27  Tom Tromey  <tom@tromey.com>
12422
12423         * dwarf-index-write.c: Include <cmath>.
12424
12425 2018-03-27  Joel Brobecker  <brobecker@adacore.com>
12426
12427         * NEWS: Add entry describing new "set|show varsize-limit" command.
12428         * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
12429         command.
12430         * printcmd.c (_initialize_printcmd): Add "set var" alias of
12431         "set variable".
12432
12433 2018-03-27  Simon Marchi  <simon.marchi@ericsson.com>
12434
12435         * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
12436         dwarf-index-write.c
12437         (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
12438         * dwarf-index-common.c: New file.
12439         * dwarf-index-common.h: New file.
12440         * dwarf-index-write.c: New file.
12441         * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
12442         (struct dwarf2_section_info): Move from here.
12443         (dwarf2_section_info_def): Likewise.
12444         (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
12445         (offset_type): Likewise.
12446         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
12447         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
12448         (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
12449         (byte_swap): Likewise.
12450         (MAYBE_SWAP): Likewise.
12451         (dwarf2_per_cu_ptr): Likewise.
12452         (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
12453         (struct tu_stats): Likewise.
12454         (struct dwarf2_per_objfile): Likewise.
12455         (struct dwarf2_per_cu_data): Likewise.
12456         (struct signatured_type): Likewise.
12457         (sig_type_ptr): Likewise.
12458         (DEF_VEC_P (sig_type_ptr)): Likewise.
12459         (INDEX4_SUFFIX): Likewise.
12460         (INDEX5_SUFFIX): Likewise.
12461         (DEBUG_STR_SUFFIX): Likewise.
12462         (dwarf2_read_section): Make non-static.
12463         (mapped_index_string_hash): Move from here.
12464         (dwarf5_djb_hash): Likewise.
12465         (file_write): Likewise.
12466         (class data_buf): Likewise.
12467         (struct symtab_index_entry): Likewise.
12468         (struct mapped_symtab): Likewise.
12469         (find_slot): Likewise.
12470         (hash_expand): Likewise.
12471         (add_index_entry): Likewise.
12472         (uniquify_cu_indices): Likewise.
12473         (class c_str_view): Likewise.
12474         (class c_str_view_hasher): Likewise.
12475         (class vector_hasher): Likewise.
12476         (write_hash_table): Likewise.
12477         (psym_index_map): Likewise.
12478         (struct addrmap_index_data): Likewise.
12479         (add_address_entry): Likewise.
12480         (add_address_entry_worker): Likewise.
12481         (write_address_map): Likewise.
12482         (symbol_kind): Likewise.
12483         (write_psymbols): Likewise.
12484         (struct signatured_type_index_data): Likewise.
12485         (write_one_signatured_type): Likewise.
12486         (recursively_count_psymbols): Likewise.
12487         (recursively_write_psymbols): Likewise.
12488         (class debug_names): Likewise.
12489         (check_dwarf64_offsets): Likewise.
12490         (psyms_seen_size): Likewise.
12491         (write_gdbindex): Likewise.
12492         (write_debug_names): Likewise.
12493         (assert_file_size): Likewise.
12494         (write_psymtabs_to_index): Likewise.
12495         (save_gdb_index_command): Likewise.
12496         (_initialize_dwarf2_read): Don't register the "save gdb-index"
12497         command.
12498         * dwarf2read.h: New file.
12499
12500 2018-03-27  Joel Brobecker  <brobecker@adacore.com>
12501
12502         PR gdb/22670
12503         * dwarf2read.c (dwarf2_physname): Do not return the demangled
12504         symbol name if the CU's language stores symbol names in linkage
12505         format.
12506         * language.h (struct language_defn)
12507         <la_store_sym_names_in_linkage_form_p>: New field.  Adjust
12508         all instances of this struct.
12509
12510 2018-03-26  Tom Tromey  <tom@tromey.com>
12511
12512         * stack.c (backtrace_command_1): Remove verbose code.
12513
12514 2018-03-26  Tom Tromey  <tom@tromey.com>
12515
12516         * python/py-framefilter.c (py_print_type): Don't catch
12517         exceptions.  Return void.
12518         (py_print_value): Likewise.
12519         (py_print_single_arg): Likewise.
12520         (enumerate_args): Don't catch exceptions.
12521         (py_print_args): Likewise.
12522         (py_print_frame): Likewise.
12523         (gdbpy_apply_frame_filter): Catch exceptions here.
12524
12525 2018-03-26  Tom Tromey  <tom@tromey.com>
12526
12527         * stack.c (_initialize_stack): Remove trailing newlines from help
12528         text.  Add "Usage" line to "backtrace" help.
12529
12530 2018-03-26  Tom Tromey  <tom@tromey.com>
12531
12532         PR python/16486:
12533         * python/py-framefilter.c (py_print_args): Call wrap_hint.
12534
12535 2018-03-26  Tom Tromey  <tom@tromey.com>
12536
12537         * python/py-framefilter.c (py_print_single_arg): Return
12538         EXT_LANG_BT_ERROR from catch.
12539
12540 2018-03-26  Tom Tromey  <tom@tromey.com>
12541
12542         PR backtrace/15584:
12543         * stack.c (backtrace_command_1): Move some code into no-filters
12544         "if".
12545
12546 2018-03-26  Tom Tromey  <tom@tromey.com>
12547
12548         * python/py-framefilter.c (throw_quit_or_print_exception): New
12549         function.
12550         (gdbpy_apply_frame_filter): Use it.
12551
12552 2018-03-26  Tom Tromey  <tom@tromey.com>
12553
12554         PR cli/17716:
12555         * python/py-framefilter.c (py_print_type, py_print_value)
12556         (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
12557         RETURN_MASK_ERROR.
12558
12559 2018-03-26  Tom Tromey  <tom@tromey.com>
12560
12561         * python/py-framefilter.c (enumerate_args): Use
12562         gdb::unique_xmalloc_ptr.
12563
12564 2018-03-26  Tom Tromey  <tom@tromey.com>
12565
12566         * python/py-framefilter.c (py_print_frame): Return
12567         EXT_LANG_BT_OK.
12568         (gdbpy_apply_frame_filter): Update comment.
12569         * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
12570         Remove.
12571         <EXT_LANG_BT_NO_FILTERS>: Change value.
12572
12573 2018-03-26  Tom Tromey  <tom@tromey.com>
12574
12575         PR backtrace/15582:
12576         * stack.c (backtrace_command): Parse "hide" argument.
12577         * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
12578         * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
12579         constant.
12580
12581 2018-03-26  Tom Tromey  <tom@tromey.com>
12582
12583         * stack.c (backtrace_command_1): Remove "show_locals" parameter,
12584         add "flags".
12585         (backtrace_command): Remove "fulltrace", add "flags".
12586
12587 2018-03-26  Tom Tromey  <tom@tromey.com>
12588
12589         * stack.c (backtrace_command): Rewrite command line parsing.
12590
12591 2018-03-26  Simon Marchi  <simon.marchi@ericsson.com>
12592
12593         * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
12594
12595 2018-03-26  Simon Marchi  <simon.marchi@ericsson.com>
12596
12597         * filename-seen-cache.h: Add include guard.
12598
12599 2018-03-26  Keith Seitz  <keiths@redhat.com>
12600
12601         * symfile.c (place_section): Remove "struct" from section_addr_info
12602         in comment.
12603         * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
12604         "struct" keyword from section_addr_info.
12605
12606 2018-03-26  Alan Hayward  <alan.hayward@arm.com>
12607
12608         * regformats/regdef.h (reg): Add constructors.
12609
12610 2018-03-25  Pedro Alves  <palves@redhat.com>
12611
12612         * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
12613         if then/else bodies in var_func_name extraction.
12614
12615 2018-03-23  Weimin Pan  <weimin.pan@oracle.com>
12616
12617         * minsyms.c (lookup_minimal_symbol_and_objfile): Use
12618         lookup_minimal_symbol() to find symbol entry.
12619         * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
12620
12621 2018-03-23  Keith Seitz  <keiths@redhat.com>
12622
12623         PR c++/22968
12624         * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
12625         nested type definitions for C++, too.
12626
12627 2018-03-23  Tom Tromey  <tom@tromey.com>
12628
12629         * machoread.c (struct oso_el): Add a constructor.  Don't define as
12630         a typedef.
12631         (macho_register_oso): Remove.
12632         (macho_symtab_read): Take a std::vector.
12633         (oso_el_compare_name): Now a std::sort comparator.
12634         (macho_symfile_read_all_oso): Take a std::vector.
12635         (macho_symfile_read): Use std::vector.  Remove cleanups.
12636
12637 2018-03-22  Tom Tromey  <tom@tromey.com>
12638
12639         * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
12640         (record_full_goto_bookmark): Use std::string.
12641
12642 2018-03-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
12643
12644         PR tdep/18295
12645         * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
12646         a single mask.
12647
12648 2018-03-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
12649
12650         * rs6000-tdep.c (store_insn_p): New function.
12651         (skip_prologue): New variable alloca_reg_offset. Set lr_reg
12652         and cr_reg to their unshifted values. Use store_insn_p to
12653         match LR saves using either R1 or fdata->alloca_reg. Use
12654         store_insn_p to match CR saves. Set alloca_reg_offset
12655         when alloca_reg and framep are set. Remove lr_reg shift
12656         when assigning to fdata->lr_register.
12657
12658 2018-03-22  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12659
12660         * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
12661         command line args instead of emitting a warning.
12662
12663 2018-03-22  Simon Marchi  <simon.marchi@polymtl.ca>
12664
12665         * tracepoint.h (struct static_tracepoint_marker): Initialize
12666         fields, define default constructor, move constructor and move
12667         assignment, disable the rest.
12668         <str_id, extra>: Make std::string.
12669         (release_static_tracepoint_marker): Remove.
12670         (free_current_marker): Remove.
12671         * tracepoint.c (free_current_marker): Remove.
12672         (parse_static_tracepoint_marker_definition): Adjust to
12673         std::string, use new hex2str overload.
12674         (release_static_tracepoint_marker): Remove.
12675         (print_one_static_tracepoint_marker): Get marker by reference
12676         and adjust to std::string.
12677         (info_static_tracepoint_markers_command): Adjust to std::vector
12678         changes
12679         * target.h (static_tracepoint_marker_p): Remove typedef.
12680         (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
12681         (struct target_ops) <to_static_tracepoint_marker_at>: Return
12682         bool.
12683         <to_static_tracepoint_markers_by_strid>: Return std::vector.
12684         * target-debug.h
12685         (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
12686         (target_debug_print_std_vector_static_tracepoint_marker): New.
12687         (target_debug_print_struct_static_tracepoint_marker_p): Rename
12688         to...
12689         (target_debug_print_static_tracepoint_marker_p): ... this.
12690         * target-delegates.c: Re-generate.
12691         * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
12692         Make std::string.
12693         * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
12694         (decode_static_tracepoint_spec): Adjust to std::vector.
12695         (tracepoint_print_one_detail): Adjust to std::string.
12696         (strace_marker_decode_location): Adjust to std::string.
12697         (update_static_tracepoint): Adjust to std::string, remove call
12698         to release_static_tracepoint_marker.
12699         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
12700         Adjust to std::vector.
12701         * remote.c (remote_static_tracepoint_marker_at): Return bool.
12702         (remote_static_tracepoint_markers_by_strid): Adjust to
12703         std::vector.
12704         * common/rsp-low.h (hex2str): New overload with explicit count
12705         of bytes.
12706         * common/rsp-low.c (hex2str): New overload with explicit count
12707         of bytes.
12708         * unittests/rsp-low-selftests.c (test_hex2str): New function.
12709         (_initialize_rsp_low_selftests): Add test_hex2str test.
12710         * unittests/tracepoint-selftests.c
12711         (test_parse_static_tracepoint_marker_definition): Adjust to
12712         std::string.
12713
12714 2018-03-22  Simon Marchi  <simon.marchi@polymtl.ca>
12715
12716         * tracepoint.c (parse_static_tracepoint_marker_definition):
12717         Consider case where the definition is followed by more
12718         definitions.
12719         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12720         tracepoint-selftests.c.
12721         * unittests/tracepoint-selftests.c: New.
12722
12723 2018-03-21  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
12724
12725         * MAINTAINERS (Write After Approval): Add Pedro Franco de
12726         Carvalho.
12727
12728 2018-03-20  Stephen Roberts  <stephen.roberts@arm.com>
12729
12730         * symtab.c (find_pc_sect_line): fixed indentation.
12731
12732 2018-03-20  Stephen Roberts  <stephen.roberts@arm.com>
12733
12734         * symtab.c (find_pc_sect_line): now uses binary search.
12735
12736 2018-03-19  Tom Tromey  <tom@tromey.com>
12737
12738         * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
12739         "IDENT" production.
12740
12741 2018-03-19  Pedro Alves  <palves@redhat.com>
12742             Tom Tromey  <tom@tromey.com>
12743
12744         * unittests/observable-selftests.c: New file.
12745         * common/observable.h: New file.
12746         * observable.h: New file.
12747         * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
12748         arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
12749         breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
12750         corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
12751         extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
12752         infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
12753         linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
12754         mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
12755         ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
12756         python/py-breakpoint.c, python/py-finishbreakpoint.c,
12757         python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
12758         record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
12759         riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
12760         spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
12761         symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
12762         tui/tui-interp.c, valops.c: Update all users.
12763         * tui/tui-hooks.c (tui_bp_created_observer)
12764         (tui_bp_deleted_observer, tui_bp_modified_observer)
12765         (tui_inferior_exit_observer, tui_before_prompt_observer)
12766         (tui_normal_stop_observer, tui_register_changed_observer):
12767         Remove.
12768         (tui_observers_token): New global.
12769         (attach_or_detach, tui_attach_detach_observers): New functions.
12770         (tui_install_hooks, tui_remove_hooks): Use
12771         tui_attach_detach_observers.
12772         * record-btrace.c (record_btrace_thread_observer): Remove.
12773         (record_btrace_thread_observer_token): New global.
12774         * observer.sh: Remove.
12775         * observer.c: Rename to observable.c.
12776         * observable.c (namespace gdb_observers): Define new objects.
12777         (observer_debug): Move into gdb_observers namespace.
12778         (struct observer, struct observer_list, xalloc_observer_list_node)
12779         (xfree_observer_list_node, generic_observer_attach)
12780         (generic_observer_detach, generic_observer_notify): Remove.
12781         (_initialize_observer): Update.
12782         Don't include observer.inc.
12783         * Makefile.in (generated_files): Remove observer.h, observer.inc.
12784         (clean mostlyclean): Likewise.
12785         (observer.h, observer.inc): Remove targets.
12786         (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
12787         (COMMON_SFILES): Use observable.c, not observer.c.
12788         * .gitignore: Remove observer.h.
12789
12790 2018-03-18  Tom Tromey  <tom@tromey.com>
12791
12792         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
12793         gdb::def_vector.
12794         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
12795
12796 2018-03-17  Tom Tromey  <tom@tromey.com>
12797
12798         * auto-load.c (auto_load_objfile_script_1): Use std::string.
12799
12800 2018-03-17  Tom Tromey  <tom@tromey.com>
12801
12802         * target.c (class scoped_target_fd): New.
12803         (target_fileio_close_cleanup): Remove.
12804         (target_fileio_read_alloc_1): Use scoped_target_fd.
12805
12806 2018-03-16  Simon Marchi  <simon.marchi@polymtl.ca>
12807
12808         * silent-rules.mk: New.
12809         * Makefile.in: Include silent-rules.mk
12810         (srcdir, VPATH, top_srcdir): Move up.
12811         (COMPILE): Add ECHO_CXX.
12812         (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
12813         (init.c): Add ECHO_INIT_C.
12814         (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
12815         (version.c): Add ECHO_GEN.
12816         (printcmd.o): Add ECHO_CXX.
12817         (target-float.o): Add ECHO_CXX.
12818         (ada-exp.o): Add ECHO_CXX.
12819         (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
12820         (insight$(EXEEXT)): Add ECHO_CXXLD.
12821         * gnulib/configure.ac: Add AM_SILENT_RULES.
12822         * gnulib/aclocal.m4: Re-generate.
12823         * gnulib/configure: Re-generate.
12824         * gnulib/import/Makefile.in: Re-generate.
12825
12826 2018-03-16  Tom Tromey  <tom@tromey.com>
12827
12828         * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
12829         * utils.h (make_cleanup_free_section_addr_info): Don't declare.
12830         * utils.c (do_free_section_addr_info)
12831         (make_cleanup_free_section_addr_info): Remove.
12832         * symfile.h (struct other_sections): Add constructor.
12833         (struct section_addr_info): Remove.
12834         (section_addr_info): New typedef.
12835         (struct sym_fns) <sym_offsets>: Change type of parameter.
12836         (build_section_addr_info_from_objfile)
12837         (relative_addr_info_to_section_offsets, addr_info_make_relative)
12838         (default_symfile_offsets, symbol_file_add)
12839         (symbol_file_add_from_bfd)
12840         (build_section_addr_info_from_section_table): Update.
12841         (alloc_section_addr_info, free_section_addr_info): Don't declare.
12842         * symfile.c (alloc_section_addr_info): Remove.
12843         (build_section_addr_info_from_section_table): Change return type.
12844         Update.
12845         (build_section_addr_info_from_bfd)
12846         (build_section_addr_info_from_objfile): Likewise.
12847         (free_section_addr_info): Remove.
12848         (relative_addr_info_to_section_offsets): Change type of "addrs".
12849         (addrs_section_compar): Now a std::sort comparator.
12850         (addrs_section_sort): Change return type.
12851         (addr_info_make_relative): Change type of "addrs".  Update.
12852         (default_symfile_offsets, syms_from_objfile_1)
12853         (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
12854         (symbol_file_add_separate): Update.
12855         (symbol_file_add): Change type of "addrs".  Update.
12856         (add_symbol_file_command): Update.  Remove cleanups.
12857         * symfile-mem.c (symbol_file_add_from_memory): Update.  Remove
12858         cleanups.
12859         * symfile-debug.c (debug_sym_offsets): Change type of "info".
12860         * solib.c (solib_read_symbols): Update.
12861         * objfiles.c (objfile_relocate): Update.  Remove cleanups.
12862         * machoread.c (macho_symfile_offsets): Update.
12863         * jit.c (jit_bfd_try_read_symtab): Update.
12864
12865 2018-03-15  Simon Marchi  <simon.marchi@polymtl.ca>
12866
12867         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12868         unittests/utils-selftests.c.
12869         * unittests/utils-selftests.c: New file.
12870
12871 2018-03-14  Tom Tromey  <tom@tromey.com>
12872
12873         PR cli/14977:
12874         * printcmd.c (printf_c_string, printf_wide_c_string): Special case
12875         for NULL.
12876
12877 2018-03-14  Tom Tromey  <tom@tromey.com>
12878
12879         PR cli/19918:
12880         * printcmd.c (printf_pointer): Allow "-" in format.
12881
12882 2018-03-14  Tom Tromey  <tom@tromey.com>
12883
12884         * printcmd.c (_initialize_printcmd): Add usage to printf.
12885
12886 2018-03-14  Yao Qi  <qiyao@sourceware.org>
12887
12888         * MAINTAINERS: Update my email address.
12889
12890 2018-03-13  Tom Tromey  <tom@tromey.com>
12891
12892         * machoread.c (macho_check_dsym): Change filenamep to a
12893         std::string*.
12894         (macho_symfile_read): Update.
12895         * symfile.c (load_command): Use std::string.
12896
12897 2018-03-12  Andrew Burgess  <andrew.burgess@embecosm.com>
12898
12899         * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
12900         to error message string.
12901         (riscv_register_name): Use xsnprintf instead of sprintf.
12902         (riscv_insn::fetch_instruction): Use gdb_assert instead of
12903         internal_error.
12904         (riscv_print_arg_location): Use gdb_assert_not_reached instead of
12905         error.
12906         (riscv_push_dummy_call): Likewise.
12907
12908 2018-03-12  Tom Tromey  <tom@tromey.com>
12909
12910         * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
12911         Use gdb::byte_vector.
12912         * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
12913
12914 2018-03-12  Yao Qi  <yao.qi@linaro.org>
12915
12916         * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
12917         parameter type to readable_regcache.
12918         * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
12919         the declaration.
12920
12921 2018-03-11  Tom Tromey  <tom@tromey.com>
12922
12923         * dwarf2read.c (struct nextfield): Add initializers.
12924         (struct nextfnfield): Remove.
12925         (struct fnfieldlist): Add initializers.  Remove "length" and
12926         "head", use std::vector.
12927         (struct decl_field_list): Remove.
12928         (struct field_info): Add initializers.
12929         <fields, baseclasses>: Now std::vector.
12930         <nbaseclasses, nfnfields, typedef_field_list_count,
12931         nested_types_list_count>: Remove.
12932         (dwarf2_add_field, dwarf2_add_type_defn)
12933         (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
12934         (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
12935         (process_structure_scope): Update.
12936
12937 2018-03-11  Tom Tromey  <tom@tromey.com>
12938
12939         * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
12940         for use by std::sort.
12941         (build_type_psymtabs_1): Use std::vector.
12942
12943 2018-03-09  Eli Zaretskii  <eliz@gnu.org>
12944
12945         * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
12946         and LIBMPFR in the printed configuration.
12947
12948 2018-03-08  Tom Tromey  <tom@tromey.com>
12949
12950         * source.c (get_filename_and_charpos): Use scoped_fd.
12951         * nto-procfs.c (procfs_open_1): Use scoped_fd.
12952         (procfs_pidlist): Likewise.
12953         * procfs.c (proc_get_LDT_entry): Use scoped_fd.
12954         (iterate_over_mappings): Likewise.
12955
12956 2018-03-08  Tom Tromey  <tom@tromey.com>
12957
12958         * infcall.c (struct call_return_meta_info)
12959         <stack_temporaries_enabled>: Remove.
12960         (get_call_return_value, call_function_by_hand_dummy): Update.
12961         * thread.c (disable_thread_stack_temporaries): Remove.
12962         (enable_thread_stack_temporaries): Remove.
12963         (thread_stack_temporaries_enabled_p): Return bool.
12964         (push_thread_stack_temporary, value_in_thread_stack_temporaries)
12965         (get_last_thread_stack_temporary): Update.
12966         * eval.c (evaluate_subexp): Update.
12967         * gdbthread.h (class enable_thread_stack_temporaries): Now a
12968         class, not a function.
12969         (value_ptr, value_vec): Remove typedefs.
12970         (class thread_info) <stack_temporaries_enabled>: Now bool.
12971         <stack_temporaries>: Now a std::vector.
12972         (thread_stack_temporaries_enabled_p)
12973         (value_in_thread_stack_temporaries): Return bool.
12974
12975 2018-03-08  Simon Marchi  <simon.marchi@ericsson.com>
12976
12977         * remote.c (putpkt_binary): Fix omitted bytes reporting.
12978         (getpkt_or_notif_sane_1): Likewise.
12979
12980 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
12981
12982         * build-id.c (build_id_to_debug_bfd): Use std::string.
12983
12984 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
12985
12986         * build-id.c (find_separate_debug_file_by_buildid): Return
12987         std::string.
12988         * build-id.h (find_separate_debug_file_by_buildid): Return
12989         std::string.
12990         * coffread.c (coff_symfile_read): Adjust to std::string.
12991         * elfread.c (elf_symfile_read): Adjust to std::string.
12992         * symfile.c (separate_debug_file_exists): Change parameter to
12993         std::string.
12994         (find_separate_debug_file): Return std::string.
12995         (find_separate_debug_file_by_debuglink): Return std::string.
12996         * symfile.h (find_separate_debug_file_by_debuglink): Return
12997         std::string.
12998
12999 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
13000
13001         * common/xml-utils.c (xml_escape_text): Move code to...
13002         (xml_escape_text_append): ... this new function.
13003         * common/xml-utils.h (xml_escape_text_append): New declaration.
13004         * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
13005         New function.
13006         (_initialize_xml_utils): register test_xml_escape_text_append as
13007         a selftest.
13008
13009 2018-03-07  Alan Hayward  <alan.hayward@arm.com>
13010
13011         * defs.h: Remove MAX_REGISTER_SIZE.
13012         * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
13013         asserts.
13014         * python/py-unwind.c (pyuw_sniffer): Likewise.
13015
13016 2018-03-07  Tom Tromey  <tom@tromey.com>
13017
13018         * linux-tdep.c (linux_info_proc): Update.
13019         * target.h (struct target_ops) <to_fileio_readlink>: Return
13020         optional<string>.
13021         (target_fileio_readlink): Return optional<string>.
13022         * remote.c (remote_hostio_readlink): Return optional<string>.
13023         * inf-child.c (inf_child_fileio_readlink): Return
13024         optional<string>.
13025         * target.c (target_fileio_readlink): Return optional<string>.
13026
13027 2018-03-07  Andrew Burgess  <andrew.burgess@embecosm.com>
13028
13029         * regcache.c (cooked_read_test): Add riscv to the list of
13030         architectures that have a save_reggroup.
13031
13032 2018-03-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
13033
13034         * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
13035         value is not a dynamic class object.
13036
13037 2018-03-06  Tom Tromey  <tom@tromey.com>
13038
13039         * rust-exp.y: Formatting fixes.
13040
13041 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13042
13043         * riscv-tdep.c (riscv_register_name): Remove target description
13044         support.
13045         (riscv_gdbarch_init): Remove target description check.
13046
13047 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13048
13049         * riscv-tdep.c: Remove 'Contributed by ...' lines from header
13050         comment.
13051         * riscv-tdep.h: Likewise.
13052
13053 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13054
13055         * riscv-tdep.c (riscv_pseudo_register_read): Delete.
13056         (riscv_pseudo_register_write): Delete.
13057         (riscv_gdbarch_init): Remove all use of pseudo registers.
13058
13059 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
13060
13061         * record-btrace.c (btrace_print_lines): Replace cleanup
13062         parameter with RAII equivalents.
13063         (btrace_insn_history): Replace cleanup with RAII equivalents.
13064         * ui-out.h (make_cleanup_ui_out_list_begin_end,
13065         make_cleanup_ui_out_tuple_begin_end): Remove.
13066         * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
13067         make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
13068         make_cleanup_ui_out_list_begin_end): Remove.
13069
13070 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
13071
13072         * record-btrace.c (record_btrace_maybe_mark_async_event): Change
13073         parameter types to std::vector.  Use bool.
13074         (record_btrace_wait): Replace VEC(tp_t) with
13075         std::vector<thread_info *>.
13076         * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
13077
13078 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
13079
13080         * record-btrace.c (record_btrace_disable_callback): Remove.
13081         (struct scoped_btrace_disable): New.
13082         (record_btrace_open): Use scoped_btrace_disable.
13083
13084 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13085
13086         * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
13087         reading values from registers.
13088
13089 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13090
13091         * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
13092         where appropriate.
13093
13094 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13095
13096         * riscv-tdep.c (riscv_print_arg_location): Add header comment,
13097         change parameter type.  Use GDB's print functions, and use
13098         core_addr_to_string where appropriate.
13099         (riscv_push_dummy_call): Use core_addr_to_string where
13100         appropriate, update call to riscv_print_arg_location, and reindent
13101         a few lines.
13102         (riscv_return_value): Update call to riscv_print_arg_location.
13103
13104 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13105             Tim Newsome <tim@sifive.com>
13106             Albert Ou <a0u@eecs.berkeley.edu>
13107             Darius Rad <darius@bluespec.com>
13108
13109         * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
13110         (HFILES_NO_SRCDIR): Add riscv-tdep.h.
13111         (ALLDEPFILES): Add riscv-tdep.c
13112         * configure.tgt: Add riscv support.
13113         * riscv-tdep.c: New file.
13114         * riscv-tdep.h: New file.
13115         * NEWS: Mention new target.
13116         * MAINTAINERS: Add entry for riscv.
13117
13118 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13119
13120         * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
13121         fields within aggregates.
13122
13123 2018-03-04  Simon Marchi  <simon.marchi@polymtl.ca>
13124
13125         * record-btrace.c (btrace_print_lines): Change type of flags to
13126         gdb_disassembly_flags.
13127
13128 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
13129
13130         * fbsd-nat.c: Include "inf-ptrace.h".
13131         (USE_SIGTRAP_SIGINFO): Conditionally define.
13132         [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
13133         (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
13134         [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
13135         function.
13136         [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
13137         Likewise.
13138         [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
13139         Likewise.
13140         (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
13141         "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
13142         "supports_stopped_by_hw_breakpoint" target methods.
13143
13144 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
13145
13146         * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
13147         * fbsd-nat.c (debug_fbsd_nat): New variable.
13148         (show_fbsd_nat_debug): New function.
13149         (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
13150         (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
13151
13152 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
13153
13154         * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
13155         * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
13156         prototype.
13157         * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
13158         (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
13159         method.
13160
13161 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
13162
13163         * common/gdb_vecs.c (free_char_ptr_vec): Remove.
13164         * common/gdb_vecs.h (free_char_ptr_vec): Remove.
13165
13166 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
13167
13168         * charset.c (struct charset_vector): New.
13169         (charsets): Change type to charset_vector.
13170         (find_charset_names): Adjust.
13171         (add_one): Adjust.
13172         (_initialize_charset): Adjust.
13173
13174 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
13175
13176         * progspace.h (struct program_space) <deleted_solibs>: Change
13177         type to std::vector<std::string>.
13178         * progspace.c (clear_program_space_solib_cache): Adjust.
13179         * breakpoint.c (print_solib_event): Adjust.
13180         (check_status_catch_solib): Adjust.
13181         * solib.c (update_solib_list): Adjust.
13182         * ui-out.h (class ui_out) <field_string>: New overload.
13183         * ui-out.c (ui_out::field_string): New overload.
13184
13185 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
13186
13187         * progspace.h (struct program_space): Add constructor and
13188         destructor, initialize fields.
13189         (add_program_space): Remove.
13190         * progspace.c (add_program_space): Rename to...
13191         (program_space::program_space): ... this.
13192         (release_program_space): Rename to...
13193         (program_space::~program_space): ... this.
13194         (delete_program_space): Use delete to delete program_space.
13195         (initialize_progspace): Use new to allocate program_space.
13196         * inferior.c (add_inferior_with_spaces): Likewise.
13197         (clone_inferior_command): Likewise.
13198         * infrun.c (follow_fork_inferior): Likewise.
13199         (handle_vfork_child_exec_or_exit): Likewise.
13200
13201 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
13202
13203         * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
13204         (delim_string_to_char_ptr_vec): Return std::vector of
13205         gdb::unique_xmalloc_ptr.
13206         (dirnames_to_char_ptr_vec_append): Take std::vector of
13207         gdb::unique_xmalloc_ptr.
13208         (dirnames_to_char_ptr_vec): Return std::vector of
13209         gdb::unique_xmalloc_ptr.
13210         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
13211         Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
13212         (delim_string_to_char_ptr_vec): Return an std::vector of
13213         gdb::unique_xmalloc_ptr, adjust the code.
13214         (dirnames_to_char_ptr_vec_append): Take an std::vector of
13215         gdb::unique_xmalloc_ptr, adjust the code.
13216         (dirnames_to_char_ptr_vec): Return an std::vector of
13217         gdb::unique_xmalloc_ptr, adjust the code.
13218         * auto-load.c (auto_load_safe_path_vec): Change type to
13219         std::vector of gdb::unique_xmalloc_ptr.
13220         (auto_load_expand_dir_vars): Return an std::vector of
13221         gdb::unique_xmalloc_ptr, adjust the code.
13222         (auto_load_safe_path_vec_update): Adjust.
13223         (filename_is_in_auto_load_safe_path_vec): Adjust.
13224         (auto_load_objfile_script_1): Adjust.
13225         * build-id.c (build_id_to_debug_bfd): Adjust.
13226         * linux-thread-db.c (thread_db_load_search): Adjust.
13227         * source.c (add_path): Adjust.
13228         (openp): Adjust.
13229         * symfile.c (find_separate_debug_file): Adjust.
13230         * utils.c (do_free_char_ptr_vec): Remove.
13231         (make_cleanup_free_char_ptr_vec): Remove.
13232
13233 2018-03-01  Sergio Durigan Junior  <sergiodj@redhat.com>
13234
13235         PR gdb/22907
13236         * common/pathstuff.c: Conditionally include "<windows.h>".
13237
13238 2018-03-01  Georg Sauthoff  <mail@georg.so>
13239
13240         PR gdb/22888
13241         * gcore.in: Quote variables and switch interpreter to bash.
13242
13243 2018-03-01  Tom Tromey  <tom@tromey.com>
13244
13245         * dwarf2read.c (alloc_discriminant_info): Fix default_index
13246         assertion.  Add assertion for discriminant_index.
13247         (quirk_rust_enum): Use correct base type name in univariant case.
13248
13249 2018-03-01  Simon Marchi  <simon.marchi@ericsson.com>
13250
13251         * record.c (get_call_history_modifiers): Return a
13252         record_print_flags.
13253         (cmd_record_call_history): Adjust.
13254         * record-btrace.c (record_btrace_call_history): Adjust.
13255         (record_btrace_call_history_range): Adjust.
13256         (record_btrace_call_history_from): Adjust.
13257         * target-debug.h (target_debug_print_record_print_flags): New.
13258         * target-delegates.c: Re-generate.
13259         * target.c (target_call_history): Change flags type.
13260         (target_call_history_from): Likewise.
13261         (target_call_history_range): Likewise.
13262         * target.h (struct target_ops) <target_call_history>: Likewise.
13263         (target_call_history_from): Likewise.
13264         (target_call_history_range): Likewise.
13265
13266 2018-02-28  Sergio Durigan Junior  <sergiodj@redhat.com>
13267             Simon Marchi  <simon.marchi@polymtl.ca>
13268
13269         * common/common-utils.c: Include "sys/stat.h".
13270         (is_regular_file): Move here from "source.c"; change return
13271         type to "bool".
13272         * common/common-utils.h (is_regular_file): New prototype.
13273         * common/pathstuff.c (contains_dir_separator): New function.
13274         * common/pathstuff.h (contains_dir_separator): New prototype.
13275         * source.c: Don't include "sys/stat.h".
13276         (is_regular_file): Move to "common/common-utils.c".
13277
13278 2018-02-28  Sergio Durigan Junior  <sergiodj@redhat.com>
13279
13280         * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
13281         (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
13282         * auto-load.c: Include "common/pathstuff.h".
13283         * common/common-def.h (current_directory): Move here.
13284         * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
13285         function.
13286         * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
13287         prototype.
13288         * common/pathstuff.c: New file.
13289         * common/pathstuff.h: New file.
13290         * compile/compile.c: Include "common/pathstuff.h".
13291         * defs.h (current_directory): Move to "common/common-defs.h".
13292         * dwarf2read.c: Include "common/pathstuff.h".
13293         * exec.c: Likewise.
13294         * guile/scm-safe-call.c: Likewise.
13295         * linux-thread-db.c: Likewise.
13296         * main.c: Likewise.
13297         * nto-tdep.c: Likewise.
13298         * objfiles.c: Likewise.
13299         * source.c: Likewise.
13300         * symtab.c: Likewise.
13301         * utils.c: Include "common/pathstuff.h".
13302         (gdb_realpath): Move to "common/pathstuff.c".
13303         (gdb_realpath_keepfile): Likewise.
13304         (gdb_abspath): Likewise.
13305         * utils.h (gdb_realpath): Move to "common/pathstuff.h".
13306         (gdb_realpath_keepfile): Likewise.
13307         (gdb_abspath): Likewise.
13308
13309 2018-02-28  John Baldwin  <jhb@FreeBSD.org>
13310
13311         * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
13312         wildcard process pid for super_resume for kernels with a
13313         specific bug.
13314
13315 2018-02-27  Phil Muldoon  <pmuldoon@redhat.com>
13316
13317         * compile/compile.c (get_args): Add additional comments
13318         explaining function.
13319
13320 2018-02-27  Simon Marchi  <simon.marchi@polymtl.ca>
13321             Tom Tromey  <tom@tromey.com>
13322
13323         * target.h (memory_write_request_s): Remove typedef.  Don't define
13324         VEC.
13325         (target_write_memory_blocks): Change argument to std::vector.
13326         (struct memory_write_request): Add constructor.
13327         * target-memory.c (compare_block_starting_address): Return bool.
13328         Change argument types.
13329         (claim_memory): Change arguments to use std::vector.
13330         (split_regular_and_flash_blocks, blocks_to_erase)
13331         (compute_garbled_blocks): Likewise.
13332         (cleanup_request_data, cleanup_write_requests_vector): Remove.
13333         (target_write_memory_blocks): Change argument to std::vector.
13334         * symfile.c (struct load_section_data): Add constructor and
13335         destructor.  Use std::vector for "requests".
13336         (struct load_progress_data): Add initializers.
13337         (load_section_callback): Update.  Use "new".
13338         (clear_memory_write_data): Remove.
13339         (generic_load): Update.
13340
13341 2018-02-27  Alan Hayward  <alan.hayward@arm.com>
13342
13343         * arch/aarch64.h: Use common/tdesc.h.
13344
13345 2018-02-26  Maciej W. Rozycki  <macro@mips.com>
13346
13347         * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
13348         architecture with a 64-bit ABI.
13349
13350 2018-02-26  Maciej W. Rozycki  <macro@mips.com>
13351
13352         * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
13353         ahead of target description loading.
13354
13355 2018-02-26  Tom Tromey  <tom@tromey.com>
13356
13357         * stack.c (backtrace_command_1): Update.
13358         * python/python-internal.h (gdbpy_apply_frame_filter): Change type
13359         of "flags".
13360         * python/py-framefilter.c (py_print_frame)
13361         (gdbpy_apply_frame_filter): Change type of "flags".
13362         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
13363         of "flags".
13364         (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
13365         (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
13366         * extension.h (enum frame_filter_flag): Rename from
13367         frame_filter_flags.
13368         (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
13369         (apply_ext_lang_frame_filter): Change type of "flags".
13370         * extension.c (apply_ext_lang_frame_filter): Change type of
13371         "flags".
13372         * extension-priv.h (struct extension_language_ops)
13373         <apply_frame_filter>: Change type of "flags".
13374
13375 2018-02-26  Tom Tromey  <tom@tromey.com>
13376
13377         PR python/16497:
13378         * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag.  Fix
13379         off-by-one in py_end computation.
13380         * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
13381         PRINT_MORE_FRAMES.
13382         * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
13383         constant.
13384
13385 2018-02-26  Tom Tromey  <tom@tromey.com>
13386
13387         * dwarf2read.c (struct variant_field): New.
13388         (struct nextfield) <variant>: New field.
13389         (dwarf2_add_field): Handle DW_TAG_variant_part.
13390         (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
13391         discriminated union.
13392         (read_structure_type): Handle DW_TAG_variant_part.
13393         (handle_struct_member_die): New function, extracted from
13394         process_structure_scope.  Handle DW_TAG_variant.
13395         (process_structure_scope): Handle discriminated unions.  Call
13396         handle_struct_member_die.
13397
13398 2018-02-26  Tom Tromey  <tom@tromey.com>
13399
13400         * rust-lang.h (rust_last_path_segment): Declare.
13401         * rust-lang.c (rust_last_path_segment): Now public.  Change
13402         contract.
13403         (struct disr_info): Remove.
13404         (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
13405         (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
13406         (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
13407         (rust_enum_p, rust_enum_variant): New function.
13408         (rust_underscore_fields): Remove "offset" parameter.
13409         (rust_print_enum): New function.
13410         (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
13411         <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
13412         (rust_print_struct_def): Add "for_rust_enum" parameter.  Handle
13413         enums.
13414         (rust_internal_print_type): New function, from rust_print_type.
13415         Remove enum code.
13416         (rust_print_type): Call rust_internal_print_type.
13417         (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
13418         Update enum handling.
13419         * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
13420         (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
13421         (rust_union_quirks): New functions.
13422         (process_full_comp_unit, process_full_type_unit): Call
13423         rust_union_quirks.
13424         (process_structure_scope): Update rust_unions if necessary.
13425
13426 2018-02-26  Tom Tromey  <tom@tromey.com>
13427
13428         * value.h (value_union_variant): Declare.
13429         * valops.c (value_union_variant): New function.
13430         * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
13431         (struct discriminant_info): New.
13432         (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
13433         enumerator.
13434         (struct main_type) <flag_discriminated_union>: New field.
13435
13436 2018-02-26  Tom Tromey  <tom@tromey.com>
13437
13438         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13439         unittests/unpack-selftests.c.
13440         * unittests/unpack-selftests.c: New file.
13441         * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
13442
13443 2018-02-26  Yao Qi  <yao.qi@linaro.org>
13444
13445         * dwarf2read.c (struct partial_die_info) <read>: New method.
13446         (read_partial_die): Remove the declaration.
13447         (load_partial_dies): Update.
13448         (partial_die_info::partial_die_info):
13449         (read_partial_die): Change it to partial_die_info::read.
13450
13451 2018-02-26  Yao Qi  <yao.qi@linaro.org>
13452
13453         * dwarf2read.c (struct partial_die_info) <fixup>: New method.
13454         (fixup_partial_die): Remove declaration.
13455         (scan_partial_symbols): Update.
13456         (partial_die_parent_scope): Likewise.
13457         (partial_die_full_name): Likewise.
13458         (fixup_partial_die): Change it to partial_die_info::fixup.
13459
13460 2018-02-26  Yao Qi  <yao.qi@linaro.org>
13461
13462         * dwarf2read.c (read_partial_die): Update the declaration.
13463         (load_partial_dies): Caller update.
13464         (read_partial_die): Remove one argument abbrev_len.
13465
13466 2018-02-26  Yao Qi  <yao.qi@linaro.org>
13467
13468         * dwarf2read.c (struct partial_die_info): Add ctor, delete
13469         assignment operator.
13470         (load_partial_dies): Use ctor and copy ctor.
13471         (read_partial_die): Update.
13472         (dwarf2_cu::find_partial_die): Use ctor.
13473
13474 2018-02-26  Yao Qi  <yao.qi@linaro.org>
13475
13476         * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
13477         (find_partial_die_in_comp_unit): Change it to
13478         dwarf2_cu::find_partial_die.
13479         (find_partial_die): Update.
13480
13481 2018-02-26  Yao Qi  <yao.qi@linaro.org>
13482
13483         * dwarf2read.c (read_partial_die): Remove the code checking abbrev
13484         is NULL.
13485
13486 2018-02-26  Yao Qi  <yao.qi@linaro.org>
13487
13488         * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
13489
13490 2018-02-26  Alan Hayward  <alan.hayward@arm.com>
13491
13492         * arch/amd64.h: Use common/tdesc.h.
13493         * arch/i386.c: Likewise.
13494         * arch/i386.h: Likewise.
13495         * arch/tic6x.c: Likewise.
13496         * arch/tdesc.h: Move file from here...
13497         * common/tdesc.h: ...to here.
13498         * features/aarch64-core.c: Regenerate.
13499         * features/aarch64-fpu.c: Regenerate.
13500         * features/i386/32bit-avx.c: Regenerate.
13501         * features/i386/32bit-avx512.c: Regenerate.
13502         * features/i386/32bit-core.c: Regenerate.
13503         * features/i386/32bit-linux.c: Regenerate.
13504         * features/i386/32bit-mpx.c: Regenerate.
13505         * features/i386/32bit-pkeys.c: Regenerate.
13506         * features/i386/32bit-sse.c: Regenerate.
13507         * features/i386/64bit-avx.c: Regenerate.
13508         * features/i386/64bit-avx512.c: Regenerate.
13509         * features/i386/64bit-core.c: Regenerate.
13510         * features/i386/64bit-linux.c: Regenerate.
13511         * features/i386/64bit-mpx.c: Regenerate.
13512         * features/i386/64bit-pkeys.c: Regenerate.
13513         * features/i386/64bit-segments.c: Regenerate.
13514         * features/i386/64bit-sse.c: Regenerate.
13515         * features/i386/x32-core.c: Regenerate.
13516         * features/tic6x-c6xp.c: Regenerate.
13517         * features/tic6x-core.c: Regenerate.
13518         * features/tic6x-gp.c: Regenerate.
13519         * target-descriptions.c: Use common/tdesc.h.
13520         * target-descriptions.h: Likewise.
13521
13522 2018-02-24  Tom Tromey  <tom@tromey.com>
13523
13524         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
13525         (try_thread_db_load_from_dir, thread_db_load_search): Use
13526         std::string.
13527         (info_auto_load_libthread_db_compare): Return bool.  Change
13528         argument types.
13529         (info_auto_load_libthread_db): Use std::vector, std::string.
13530         Remove cleanups.
13531
13532 2018-02-24  Tom Tromey  <tom@tromey.com>
13533
13534         * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
13535         std::string.
13536         * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
13537         std::string*.
13538         * gdbarch.c: Rebuild.
13539         * gdbarch.h: Rebuild.
13540         * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
13541         * arch-utils.h (default_fast_tracepoint_valid_at): Update.
13542         * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
13543         std::string*.
13544
13545 2018-02-23  Simon Marchi  <simon.marchi@polymtl.ca>
13546
13547         * gdbtypes.h (sect_offset): Change type to uint64_t.
13548         (sect_offset_str): New function.
13549         * dwarf2read.c (create_addrmap_from_aranges): Use
13550         sect_offset_str.
13551         (error_check_comp_unit_head): Likewise.
13552         (create_debug_type_hash_table): Likewise.
13553         (read_cutu_die_from_dwo): Likewise.
13554         (init_cutu_and_read_dies): Likewise.
13555         (init_cutu_and_read_dies_no_follow): Likewise.
13556         (process_psymtab_comp_unit_reader): Likewise.
13557         (partial_die_parent_scope): Likewise.
13558         (peek_die_abbrev): Likewise.
13559         (process_queue): Likewise.
13560         (dwarf2_physname): Likewise.
13561         (read_namespace_alias): Likewise.
13562         (read_import_statement): Likewise.
13563         (create_dwo_cu_reader): Likewise.
13564         (create_cus_hash_table): Likewise.
13565         (lookup_dwo_cutu): Likewise.
13566         (inherit_abstract_dies): Likewise.
13567         (read_func_scope): Likewise.
13568         (read_call_site_scope): Likewise.
13569         (dwarf2_add_member_fn): Likewise.
13570         (read_common_block): Likewise.
13571         (read_module_type): Likewise.
13572         (read_typedef): Likewise.
13573         (read_subrange_type): Likewise.
13574         (load_partial_dies): Likewise.
13575         (read_partial_die): Likewise.
13576         (find_partial_die): Likewise.
13577         (read_str_index): Likewise.
13578         (dwarf2_string_attr): Likewise.
13579         (build_error_marker_type): Likewise.
13580         (lookup_die_type): Likewise.
13581         (dump_die_shallow): Likewise.
13582         (follow_die_ref): Likewise.
13583         (dwarf2_fetch_die_loc_sect_off): Likewise.
13584         (dwarf2_fetch_constant_bytes): Likewise.
13585         (follow_die_sig): Likewise.
13586         (get_signatured_type): Likewise.
13587         (get_DW_AT_signature_type): Likewise.
13588         (dwarf2_find_containing_comp_unit): Likewise.
13589         (set_die_type): Likewise.
13590
13591 2018-02-21  John Baldwin  <jhb@FreeBSD.org>
13592
13593         * arch/aarch64.c: Include "common-defs.h".
13594         * arch/amd64.c: Likewise.
13595         * arch/i386.c: Likewise.
13596
13597 2018-02-21  Tom Tromey  <tom@tromey.com>
13598
13599         * value.h: (extract_field_op): Update.
13600         * eval.c (extract_field_op): Return a const char *.
13601         * expression.h (parse_expression_for_completion): Update.
13602         * completer.c (complete_expression): Update.
13603         (add_struct_fields): Make fieldname const.
13604         * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
13605         (mark_completion_tag, parse_exp_in_context_1): Update.
13606         (parse_expression_for_completion): Change "name" to
13607         unique_xmalloc_ptr*.
13608
13609 2018-02-21  Tom Tromey  <tom@tromey.com>
13610
13611         * infcall.c (call_function_by_hand_dummy): Use std::vector.
13612
13613 2018-02-21  Yao Qi  <yao.qi@linaro.org>
13614
13615         * avr-tdep.c (avr_read_pc): Change parameter type to
13616         readable_regcache.
13617         * gdbarch.sh (read_pc): Likewise.
13618         * gdbarch.c: Re-generated.
13619         * gdbarch.h: Re-generated.
13620         * hppa-tdep.c (hppa_read_pc): Change parameter type to
13621         readable_regcache.
13622         * ia64-tdep.c (ia64_read_pc): Likewise.
13623         * mips-tdep.c (mips_read_pc): Likewise.
13624         * spu-tdep.c (spu_read_pc): Likewise.
13625
13626 2018-02-21  Yao Qi  <yao.qi@linaro.org>
13627
13628         * Makefile.in (COMMON_SFILES): Add regcache-dump.c
13629         * regcache-dump.c: New file.
13630         * regcache.c: Move register_dump to regcache-dump.c.
13631         (maintenance_print_registers): Likewise.
13632         (maintenance_print_raw_registers): Likewise.
13633         (maintenance_print_cooked_registers): Likewise.
13634         (maintenance_print_register_groups): Likewise.
13635         (maintenance_print_remote_registers): Likewise.
13636         (_initialize_regcache): Likewise.
13637         * regcache.h (register_dump): Moved from regcache.c.
13638
13639 2018-02-21  Yao Qi  <yao.qi@linaro.org>
13640
13641         * regcache.c (regcache::regcache): Update.
13642         (regcache::invalidate): Move it to detached_regcache::invalidate.
13643         (get_thread_arch_aspace_regcache): Update.
13644         (regcache::raw_update): Update.
13645         (regcache::cooked_read): Remove some code.
13646         (regcache::cooked_read_value): Likewise.
13647         (regcache::raw_write): Remove assert on m_readonly_p.
13648         (regcache::raw_supply_integer): Move it to
13649         detached_regcache::raw_supply_integer.
13650         (regcache::raw_supply_zeroed): Likewise.
13651         * regcache.h (detached_regcache) <raw_supply_integer>: New
13652         declaration.
13653         <raw_supply_zeroed, invalidate>: Likewise.
13654         (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
13655         <invalidate>: Likewise.
13656         <m_readonly_p>: Removed.
13657
13658 2018-02-21  Yao Qi  <yao.qi@linaro.org>
13659
13660         * infcmd.c (get_return_value): Let stop_regs point to
13661         get_current_regcache.
13662         * regcache.c (regcache::regcache): Remove.
13663         (register_dump_reg_buffer): New class.
13664         (regcache_print): Adjust.
13665         * regcache.h (regcache): Remove constructors.
13666
13667 2018-02-21  Yao Qi  <yao.qi@linaro.org>
13668
13669         * regcache.c (class register_dump): New class.
13670         (register_dump_regcache, register_dump_none): New class.
13671         (register_dump_remote, register_dump_groups): New class.
13672         (regcache_print): Update.
13673         * regcache.h (regcache_dump_what): Move it to regcache.c.
13674         (regcache) <dump>: Remove.
13675
13676 2018-02-21  Yao Qi  <yao.qi@linaro.org>
13677
13678         * jit.c (struct jit_unwind_private) <regcache>: Change its type to
13679          reg_buffer_rw *.
13680         (jit_unwind_reg_set_impl): Call raw_supply.
13681         (jit_frame_sniffer): Use reg_buffer_rw.
13682         * record-full.c (record_full_core_regbuf): Change its type.
13683         (record_full_core_open_1): Use reg_buffer_rw.
13684         (record_full_close): Likewise.
13685         (record_full_core_fetch_registers): Use regcache->raw_supply.
13686         (record_full_core_store_registers): Likewise.
13687         * regcache.c (regcache::get_register_status): Move it to
13688         reg_buffer.
13689         (regcache_raw_set_cached_value): Remove.
13690         (regcache::raw_set_cached_value): Remove.
13691         (regcache::raw_write): Call raw_supply.
13692         (regcache::raw_supply): Move it to reg_buffer_rw.
13693         * regcache.h (regcache_raw_set_cached_value): Remove.
13694         (reg_buffer_rw): New class.
13695
13696 2018-02-21  Yao Qi  <yao.qi@linaro.org>
13697
13698         * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
13699         readonly_detached_regcache.
13700         (dummy_frame_prev_register): Use regcache->cooked_read.
13701         * frame.c (frame_save_as_regcache): Change return type.
13702         (frame_pop): Update.
13703         * frame.h (frame_save_as_regcache): Update declaration.
13704         * inferior.h (get_infcall_suspend_state_regcache): Update
13705         declaration.
13706         * infrun.c (infcall_suspend_state) <registers>: use
13707         readonly_detached_regcache.
13708         (save_infcall_suspend_state): Don't use regcache_dup.
13709         (get_infcall_suspend_state_regcache): Change return type.
13710         * linux-fork.c (struct fork_info) <savedregs>: Change to
13711         readonly_detached_regcache.
13712         <pc>: New field.
13713         (fork_save_infrun_state): Don't use regcache_dup.
13714         (info_checkpoints_command): Adjust.
13715         * mi/mi-main.c (register_changed_p): Update declaration.
13716         (mi_cmd_data_list_changed_registers): Use
13717         readonly_detached_regcache.
13718         (register_changed_p): Change parameter type to
13719         readonly_detached_regcache.
13720         * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
13721         readonly_detached_regcache.
13722         (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
13723         * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
13724         New.
13725         (regcache::save): Move it to reg_buffer.
13726         (regcache::restore): Change parameter type.
13727         (regcache_dup): Remove.
13728         * regcache.h (reg_buffer) <save>: New method.
13729         (readonly_detached_regcache): New class.
13730         * spu-tdep.c (spu2ppu_cache) <regcache>: Use
13731         readonly_detached_regcache.
13732         (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
13733
13734 2018-02-21  Yao Qi  <yao.qi@linaro.org>
13735
13736         * frame.c (frame_save_as_regcache): Use regcache method save.
13737         (frame_pop): Use regcache method restore.
13738         * infrun.c (restore_infcall_suspend_state): Likewise.
13739         * linux-fork.c (fork_load_infrun_state): Likewise.
13740         * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
13741         save.
13742         * regcache.c (regcache_save): Remove.
13743         (regcache::restore): More asserts.
13744         (regcache_cpy): Remove.
13745         * regcache.h (regcache_save): Remove the declaration.
13746         (regcache::restore): Move from private to public.
13747         Remove the friend declaration of regcache_cpy.
13748         (regcache_cpy): Remove declaration.
13749
13750 2018-02-21  Yao Qi  <yao.qi@linaro.org>
13751
13752         * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
13753         parameter type to 'readable_regcache *'.
13754         * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13755         * arm-tdep.c (arm_neon_quad_read): Likewise.
13756         (arm_pseudo_read): Likewise.
13757         * avr-tdep.c (avr_pseudo_register_read): Likewise.
13758         * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13759         * frv-tdep.c (frv_pseudo_register_read): Likewise.
13760         * gdbarch.c: Re-generated.
13761         * gdbarch.h: Re-generated.
13762         * gdbarch.sh (pseudo_register_read): Change parameter type to
13763         'readable_regcache *'.
13764         (pseudo_register_read_value): Likewise.
13765         * h8300-tdep.c (pseudo_from_raw_register): Likewise.
13766         (h8300_pseudo_register_read): Likewise.
13767         * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
13768         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13769         (i386_pseudo_register_read_into_value): Likewise.
13770         (i386_pseudo_register_read_value): Likewise.
13771         * i386-tdep.h (i386_pseudo_register_read_into_value): Update
13772         declaration.
13773         * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
13774         * m32c-tdep.c (m32c_raw_read): Likewise.
13775         (m32c_read_flg): Likewise.
13776         (m32c_banked_register): Likewise.
13777         (m32c_banked_read): Likewise.
13778         (m32c_sb_read): Likewise.
13779         (m32c_part_read): Likewise.
13780         (m32c_cat_read): Likewise.
13781         (m32c_r3r2r1r0_read): Likewise.
13782         (m32c_pseudo_register_read): Likewise.
13783         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13784         * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13785         (mep_pseudo_cr64_read): Likewise.
13786         (mep_pseudo_register_read): Likewise.
13787         * mips-tdep.c (mips_pseudo_register_read): Likewise.
13788         * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13789         * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13790         * regcache.c (regcache::raw_read): Move it to readable_regcache.
13791         (regcache::cooked_read): Likewise.
13792         (regcache::cooked_read_value): Likewise.
13793         (regcache_cooked_read_signed):
13794         (regcache::cooked_read): Likewise.
13795         * regcache.h (readable_regcache): New class.
13796         (regcache): Inherit readable_regcache.  Move some methods to
13797         readable_regcache.
13798         * rl78-tdep.c (rl78_pseudo_register_read): Change
13799         parameter type to 'readable_regcache *'.
13800         * rs6000-tdep.c (do_regcache_raw_read): Remove.
13801         (e500_pseudo_register_read): Change parameter type to
13802         'readable_regcache *'.
13803         (dfp_pseudo_register_read): Likewise.
13804         (vsx_pseudo_register_read): Likewise.
13805         (efpr_pseudo_register_read): Likewise.
13806         * s390-tdep.c (s390_pseudo_register_read): Likewise.
13807         * sh-tdep.c (sh_pseudo_register_read): Likewise.
13808         * sh64-tdep.c (pseudo_register_read_portions): Likewise.
13809         (sh64_pseudo_register_read): Likewise.
13810         * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13811         * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13812         * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13813         (spu_pseudo_register_read): Likewise.
13814         * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13815         (xtensa_pseudo_register_read): Likewise.
13816
13817 2018-02-21  Yao Qi  <yao.qi@linaro.org>
13818
13819         * regcache.c (regcache::regcache): Call reg_buffer ctor.
13820         (regcache::arch): Move it to reg_buffer::arch.
13821         (regcache::register_buffer): Likewise.
13822         (regcache::assert_regnum): Likewise.
13823         (regcache::num_raw_registers): Likewise.
13824         * regcache.h (reg_buffer): New class.
13825         (regcache): Inherit reg_buffer.
13826
13827 2018-02-20  Simon Marchi  <simon.marchi@ericsson.com>
13828
13829         * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
13830         gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
13831
13832 2018-02-20  Markus Metzger  <markus.t.metzger@intel.com>
13833
13834         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
13835
13836 2018-02-19  Alan Hayward  <alan.hayward@arm.com>
13837
13838         * Makefile.in: (COMMON_SFILES): Add common/*.c files.
13839         (SFILES): Remove common/*.c files.
13840         (COMMON_OBS): Remove some *.o files built from common/*.c files.
13841         * common/common.host: Add common reference.
13842         * configure.ac: Likewise.
13843         * configure: Regenerate.
13844
13845 2018-02-16  Yao Qi  <yao.qi@linaro.org>
13846
13847         * block.c (block_namespace_info): Inherit allocate_on_obstack.
13848         (block_initialize_namespace): Use new.
13849         * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
13850         (dwarf2_free_objfile): Use delete.
13851         * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
13852         (copy_type_recursive): Use new.
13853         * gdb_obstack.h (allocate_on_obstack): New.
13854
13855 2018-02-15  Yao Qi  <yao.qi@linaro.org>
13856
13857         PR gdb/22849
13858         * inferior.c (exit_inferior_1): Reset inf->control.
13859
13860 2018-02-15  Joel Brobecker  <brobecker@adacore.com>
13861
13862         * ada-lang.c (ada_to_fixed_value_create): Delete advance
13863         declaration.
13864
13865 2018-02-14  Pedro Alves  <palves@redhat.com>
13866
13867         * frame-unwind.c (frame_unwind_try_unwinder): Always call
13868         frame_cleanup_after_sniffer on exception.
13869
13870 2018-02-14  Tom Tromey  <tom@tromey.com>
13871
13872         * solist.h (struct target_so_ops) <bfd_open>: Make pathname
13873         const.
13874         (solib_bfd_open): Make pathname const.
13875         * solib.c (solib_bfd_open): Make pathname const.
13876         * solib-spu.c (spu_bfd_fopen): Make name const.
13877         (spu_bfd_open): Make pathname const.
13878         * solib-darwin.c (darwin_bfd_open): Make pathname const.
13879         * solib-aix.c (solib_aix_bfd_open): Make pathname const.
13880
13881 2018-02-14  Tom Tromey  <tom@tromey.com>
13882
13883         * symfile.c (symfile_bfd_open): Update.
13884         * source.h (openp, source_full_path_of, find_and_open_source):
13885         Change argument type to unique_xmalloc_ptr.
13886         * source.c (openp): Take a unique_xmalloc_ptr.
13887         (source_full_path_of, find_and_open_source): Likewise.
13888         (open_source_file, symtab_to_fullname): Update.
13889         * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
13890         unique_xmalloc_ptr.
13891         * solib.c (solib_find_1): Use unique_xmalloc_ptr.
13892         (exec_file_find): Update.
13893         * psymtab.c (psymtab_to_fullname): Update.
13894         * nto-tdep.h (nto_find_and_open_solib): Update.
13895         * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
13896         unique_xmalloc_ptr.
13897         * exec.c (exec_file_attach): Update.
13898         * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
13899         * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
13900
13901 2018-02-14  Tom Tromey  <tom@tromey.com>
13902
13903         * solib.c: Include source.h.
13904         * nto-tdep.c: Include source.h.
13905         * mi/mi-cmd-env.c: Include source.h.
13906         * infcmd.c: Include source.h.
13907         * exec.c: Include source.h.
13908         * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
13909         (add_path, directory_switch, source_path, init_source_path): Move
13910         declarations...
13911         * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
13912         (add_path, directory_switch, source_path, init_source_path):
13913         ...here.
13914
13915 2018-02-14  Tom Tromey  <tom@tromey.com>
13916
13917         * solist.h (exec_file_find, solib_find): Return
13918         unique_xmalloc_ptr.
13919         (solib_bfd_fopen): Take a const char *.
13920         * solib.c (solib_find_1): Return unique_xmalloc_ptr.
13921         (exec_file_find, solib_find): Likewise.
13922         (solib_bfd_fopen): Do not take ownership of "pathname".
13923         (solib_bfd_open): Use unique_xmalloc_ptr.
13924         * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
13925         * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
13926         * infrun.c (follow_exec): Use unique_xmalloc_ptr.
13927         * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
13928
13929 2018-02-14  Joel Brobecker  <brobecker@adacore.com>
13930
13931         * ada-lang.c (name_match_type_from_name): Remove reference to
13932         ada_name_for_lookup in function's documentation.
13933         * ada-lang.h (ada_name_for_lookup): Delete declaration.
13934
13935 2018-02-13  Simon Marchi  <simon.marchi@polymtl.ca>
13936
13937         * defs.h (enum openp_flags): New enum.
13938         (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
13939         Move to enum openp_flags.
13940         (openp_flags): New enum flags.
13941         (openp): Change parameter type to openp_flags.
13942         * source.c (openp): Change parameter type to openp_flags.
13943         * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
13944         * dwarf2read.c (try_open_dwop_file): Use openp_flags.
13945
13946 2018-02-13  Simon Marchi  <simon.marchi@polymtl.ca>
13947
13948         * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
13949         per-command.
13950
13951 2018-02-12  Andrew Burgess  <andrew.burgess@embecosm.com>
13952
13953         * dwarf2read.c (dwarf2_release_queue): Delete function, move body
13954         into...
13955         (class dwarf2_queue_guard): ...the destructor of this new class.
13956         (dw2_do_instantiate_symtab): Create instance of the new class
13957         dwarf2_queue_guard, remove cleanup.
13958
13959 2018-02-09  Tom Tromey  <tom@tromey.com>
13960
13961         * source.c (find_source_lines): Don't reference past the end of
13962         the vector.
13963
13964 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13965
13966         * remote.c (remote_btrace_maybe_reopen): Change error message.
13967         * btrace.c (btrace_enable): Likewise.
13968         (parse_xml_btrace): Likewise.
13969         (parse_xml_btrace_conf): Likewise.
13970
13971 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13972
13973         * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
13974         (linux_enable_pt, linux_enable_bts): Call
13975         diagnose_perf_event_open_fail.
13976
13977 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13978
13979         * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
13980         Remove parameter and change return type.  Update callers.  Move it.
13981         (linux_enable_bts, linux_enable_pt): Improve error message.
13982         (linux_enable_pt): Remove zero buffer size check.
13983         (linux_enable_btrace): Improve error messages.  Remove NULL return
13984         check.
13985
13986 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13987
13988         * btrace.c (btrace_enable): Remove target_supports_btrace call.
13989         * nat/linux-btrace.c (perf_event_pt_event_type): Move.
13990         (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
13991         (linux_supports_pt, linux_supports_btrace): Remove.
13992         (linux_enable_bts): Call cpu_supports_bts.
13993         * nat/linux-btrace.h (linux_supports_btrace): Remove.
13994         * remote.c (remote_supports_btrace): Remove.
13995         (init_remote_ops): Remove remote_supports_btrace.
13996         * target-delegates.c: Regenerated.
13997         * target.c (target_supports_btrace): Remove.
13998         * target.h (target_ops) <to_supports_btrace>: Remove
13999         (target_supports_btrace): Remove.
14000         * x86-linux-nat.c (x86_linux_create_target): Remove
14001         linux_supports_btrace.
14002
14003 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
14004
14005         * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
14006         btrace failed.
14007         * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
14008         exception and use message in own exception.
14009
14010 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
14011
14012         * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
14013         (perf_event_pt_event_type): Use gdb_file_up.
14014         (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
14015         scoped_fd, and scoped_mmap.
14016
14017 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
14018
14019         * common/scoped_mmap.h: New.
14020         * unittests/scoped_mmap-selftest.c: New.
14021         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14022         unittests/scoped_mmap-selftest.c.
14023
14024 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
14025
14026         * common/scoped_fd.h: New.
14027         * unittests/scoped_fd-selftest.c: New.
14028         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14029         unittests/scoped_fd-selftest.c.
14030
14031 2018-02-09  Tom Tromey  <tom@tromey.com>
14032
14033         * auto-load.c (auto_load_section_scripts): Use
14034         gdb::unique_xmalloc_ptr.
14035
14036 2018-02-09  Tom Tromey  <tom@tromey.com>
14037
14038         * auto-load.c (execute_script_contents): Use std::string.
14039
14040 2018-02-09  Joel Brobecker  <brobecker@adacore.com>
14041
14042         * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
14043         Python function, rather than a new command.
14044
14045 2018-02-08  Tom Tromey  <tom@tromey.com>
14046
14047         * solib.c (solib_find_1): Use std::string.
14048         (solib_bfd_fopen): Use unique_xmalloc_ptr.
14049
14050 2018-02-08  Tom Tromey  <tom@tromey.com>
14051
14052         * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
14053
14054 2018-02-08  Tom Tromey  <tom@tromey.com>
14055
14056         * source.c (find_source_lines): Use gdb::def_vector.
14057
14058 2018-02-08  Tom Tromey  <tom@tromey.com>
14059
14060         * macrocmd.c (struct temporary_macro_definition): New.
14061         (macro_define_command): Use temporary_macro_definition.  Remove
14062         cleanups.
14063         (free_macro_definition_ptr): Remove.
14064
14065 2018-02-08  Tom Tromey  <tom@tromey.com>
14066
14067         * macroexp.c (maybe_expand): Use std::string.
14068
14069 2018-02-08  Tom Tromey  <tom@tromey.com>
14070
14071         * macroexp.c (struct macro_buffer): Add initializers for some
14072         members.
14073         (init_buffer, init_shared_buffer, free_buffer)
14074         (free_buffer_return_text): Remove.
14075         (macro_buffer): New constructors.
14076         (~macro_buffer): New destructor.
14077         (macro_buffer::set_shared): New method.
14078         (macro_buffer::resize_buffer, macro_buffer::appendc)
14079         (macro_buffer::appendmem): Now methods, not free functions.
14080         (set_token, append_tokens_without_splicing, stringify)
14081         (macro_stringify): Update.
14082         (gather_arguments): Change return type.  Remove argc_p argument,
14083         add args_ptr argument.  Use std::vector.
14084         (substitute_args): Remove argc argument.  Accept std::vector.
14085         (expand): Update.  Use std::vector.
14086         (scan, macro_expand, macro_expand_next): Update.
14087
14088 2018-02-08  Tom Tromey  <tom@tromey.com>
14089
14090         * symtab.c (default_collect_symbol_completion_matches_break_on):
14091         Use unique_xmalloc_ptr.
14092         * macroscope.h: (sal_macro_scope, user_macro_scope)
14093         (default_macro_scope): Return unique_xmalloc_ptr.
14094         * macroscope.c (sal_macro_scope, user_macro_scope)
14095         (default_macro_scope): Return unique_xmalloc_ptr.
14096         * macroexp.h (macro_expand, macro_expand_once): Return
14097         unique_xmalloc_ptr.
14098         * macroexp.c (macro_expand, macro_expand_once): Return
14099         unique_xmalloc_ptr.
14100         * macrocmd.c (macro_expand_command, macro_expand_once_command)
14101         (info_macro_command, info_macros_command): Use
14102         unique_xmalloc_ptr.
14103         * compile/compile-c-support.c (write_macro_definitions): Use
14104         unique_xmalloc_ptr.
14105         * c-exp.y (c_parse): Use unique_xmalloc_ptr.
14106
14107 2018-02-07  Simon Marchi  <simon.marchi@ericsson.com>
14108
14109         * value.c (value_static_field): Assign field type instead of
14110         containing type when returning an optimized out value.
14111
14112 2018-02-06  Yao Qi  <yao.qi@linaro.org>
14113
14114         * ft32-tdep.c (ft32_read_pc): Remove.
14115         (ft32_write_pc): Remove.
14116         (ft32_gdbarch_init): Update.
14117         * m32r-tdep.c (m32r_read_pc): Remove.
14118         (m32r_gdbarch_init): Update.
14119         * mep-tdep.c (mep_read_pc): Remove.
14120         (mep_gdbarch_init): Update.
14121         * microblaze-tdep.c (microblaze_write_pc): Remove.
14122         (microblaze_gdbarch_init): Update.
14123         * mn10300-tdep.c (mn10300_read_pc): Remove.
14124         (mn10300_write_pc): Remove.
14125         (mn10300_gdbarch_init): Update.
14126         * moxie-tdep.c (moxie_read_pc): Remove.
14127         (moxie_write_pc): Remove.
14128         (moxie_gdbarch_init): Update.
14129
14130 2018-02-06  Yao Qi  <yao.qi@linaro.org>
14131
14132         * expprint.c (print_subexp_standard): Handle
14133         OP_F77_UNDETERMINED_ARGLIST.
14134         (dump_subexp_body_standard): Likewise.
14135
14136 2018-02-05  Alan Hayward  <alan.hayward@arm.com>
14137
14138         * target-descriptions.c (tdesc_element_visitor) Add empty
14139         implementations.
14140         (tdesc_type): Move make_gdb_type from here.
14141         (tdesc_type_builtin): Likewise.
14142         (tdesc_type_vector): Likewise.
14143         (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
14144         (make_gdb_type_struct): Move from tdesc_type_with_fields.
14145         (make_gdb_type_union): Likewise.
14146         (make_gdb_type_flags): Likewise.
14147         (make_gdb_type_enum): Likewise.
14148         (make_gdb_type): New function.
14149         (tdesc_register_type): Use static make_gdb_type.
14150
14151 2018-02-05  Ruslan Kabatsayev <b7.10110111@gmail.com>
14152
14153         * infcmd.c (default_print_one_register_info): Align natural-format
14154         column values consistently one under another.
14155         (pad_to_column): New function.
14156
14157 2018-02-05  Joel Brobecker  <brobecker@adacore.com>
14158
14159         * dwarf2read.c (dwarf2_physname): Move commment.
14160
14161 2018-02-01  Leszek Swirski  <leszeks@google.com>
14162
14163         * varobj.c (varobj_formatted_print_options): Allow recursive
14164         pretty printing if pretty printing is enabled.
14165
14166 2018-02-01  Leszek Swirski  <leszeks@google.com>
14167
14168         * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
14169         names after a structop as a filename.
14170
14171 2018-02-01  Yao Qi  <yao.qi@linaro.org>
14172
14173         * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
14174         (arm_record_coproc_data_proc): Likewise.
14175
14176 2018-02-01  Yao Qi  <yao.qi@linaro.org>
14177
14178         * arm-tdep.c (arm_record_extension_space): Change ret to signed.
14179
14180 2018-01-31  Nikola Prica  <nikola.prica@rt-rk.com>
14181
14182         * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
14183         assign shifted lr_reg to fdata->lr_register when lr_reg is set.
14184
14185 2018-01-31  Pedro Alves  <palves@redhat.com>
14186
14187         * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
14188         * inflow.c (child_terminal_save_inferior): Wrap reference to
14189         tcgetpgrp in HAVE_TERMIOS_H.
14190         (child_interrupt, child_pass_ctrlc): Wrap references to signal in
14191         _WIN32.
14192         * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
14193         always iterate over all inferiors.
14194         (gdbsim_cntrl_c): Adjust.
14195         * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
14196
14197 2018-01-31  Joel Brobecker  <brobecker@adacore.com>
14198
14199         * gdbtypes.c (lookup_array_range_type): Make sure the array's
14200         index type is objfile-owned if the element type is as well.
14201
14202 2018-01-31  Joel Brobecker  <brobecker@adacore.com>
14203
14204         GDB 8.1 released.
14205
14206 2018-01-30  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14207
14208         * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
14209         "features/s390x-linux64.c".
14210         (_initialize_s390_linux_tdep): Remove initialization of tdescs
14211         s390_linux32 and s390x_linux64.
14212         (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
14213         default tdesc.
14214         * s390-tdep.c: Include "features/s390-linux32.c" and
14215         "features/s390x-linux64.c".
14216         (s390_tdesc_valid): Add check for tdesc_has_registers.
14217         (s390_gdbarch_init): Make sure there is always a valid tdesc.
14218         (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
14219         tdesc_s390x_linux64.
14220         * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
14221         tdesc_s390x_linux64 to...
14222         * s390-tdep.h: ...here.
14223
14224 2018-01-30  Pedro Alves  <palves@redhat.com>
14225
14226         PR gdb/13211
14227         * config.in, configure: Regenerate.
14228         * configure.ac: Check for getpgid.
14229         * go32-nat.c (go32_pass_ctrlc): New.
14230         (go32_target): Install it.
14231         * inf-child.c (inf_child_target): Install
14232         child_terminal_save_inferior, child_pass_ctrlc and
14233         child_interrupt.
14234         * inf-ptrace.c (inf_ptrace_interrupt): Delete.
14235         (inf_ptrace_target): No longer install it.
14236         * infcmd.c (interrupt_target_1): Adjust.
14237         * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
14238         (child_interrupt): Declare.
14239         (inferior::terminal_state): New.
14240         * inflow.c (struct terminal_info): Update comments.
14241         (inferior_process_group): Delete.
14242         (terminal_is_ours): Delete.
14243         (gdb_tty_state): New.
14244         (child_terminal_init): Adjust.
14245         (is_gdb_terminal, sharing_input_terminal_1)
14246         (sharing_input_terminal): New functions.
14247         (child_terminal_inferior): Adjust.  Use sharing_input_terminal.
14248         Set the process's actual process group in the foreground if
14249         possible.  Handle is_ours_for_output/is_ours distinction.  Don't
14250         mark terminal as the inferior's if not sharing GDB's terminal.
14251         Don't check attach_flag.
14252         (child_terminal_ours_for_output, child_terminal_ours): Adjust to
14253         pass down a target_terminal_state.
14254         (child_terminal_save_inferior): New, factored out from ...
14255         (child_terminal_ours_1): ... this.  Handle
14256         target_terminal_state::is_ours_for_output.
14257         (child_interrupt, child_pass_ctrlc): New.
14258         (inflow_inferior_exit): Clear the inferior's terminal_state.
14259         (copy_terminal_info): Copy the inferior's terminal state.
14260         (_initialize_inflow): Remove reference to terminal_is_ours.
14261         * inflow.h (inferior_process_group): Delete.
14262         * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
14263         * procfs.c (procfs_target): Don't install procfs_interrupt.
14264         (procfs_interrupt): Delete.
14265         * remote.c (remote_serial_quit_handler): Adjust.
14266         (remote_interrupt): Remove ptid parameter.  Adjust.
14267         * target-delegates.c: Regenerate.
14268         * target.c: Include "terminal.h".
14269         (target_terminal::terminal_state): Rename to ...
14270         (target_terminal::m_terminal_state): ... this.
14271         (target_terminal::init): Adjust.
14272         (target_terminal::inferior): Adjust to per-inferior
14273         terminal_state.
14274         (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
14275         (target_terminal::ours, target_terminal::ours_for_output): Use
14276         target_terminal_is_ours_kind.
14277         (target_interrupt): Remove ptid parameter.  Adjust.
14278         (default_target_pass_ctrlc): Adjust.
14279         * target.h (target_ops::to_terminal_save_inferior): New field.
14280         (target_ops::to_interrupt): Remove ptid_t parameter.
14281         (target_interrupt): Remove ptid_t parameter.  Update comment.
14282         (target_pass_ctrlc): Update comment.
14283         * target/target.h (target_terminal_state): New scoped enum,
14284         factored out of ...
14285         (target_terminal::terminal_state): ... here.
14286         (target_terminal::inferior): Update comments.
14287         (target_terminal::restore_inferior): New.
14288         (target_terminal::is_inferior, target_terminal::is_ours)
14289         (target_terminal::is_ours_for_output): Adjust.
14290         (target_terminal::scoped_restore_terminal_state): Adjust to
14291         rename, and call restore_inferior() instead of inferior().
14292         (target_terminal::scoped_restore_terminal_state::m_state): Change
14293         type.
14294         (target_terminal::terminal_state): Rename to ...
14295         (target_terminal::m_terminal_state): ... this and change type.
14296
14297 2018-01-30  Pedro Alves  <palves@redhat.com>
14298
14299         * linux-nat.c (wait_for_signal): New function.
14300         (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
14301         directly.
14302         (async_terminal_is_ours)
14303         (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
14304         (linux_nat_add_target): Don't override
14305         to_terminal_inferior/to_terminal_ours.
14306
14307 2018-01-29  Sergio Durigan Junior  <sergiodj@redhat.com>
14308
14309         * remote.c (remote_follow_fork): Don't call "detach_inferior".
14310
14311 2018-01-28  Simon Marchi  <simon.marchi@ericsson.com>
14312
14313         * dwarf2read.c (free_dwo_files): Add forward-declaration.
14314         (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
14315         dwarf2_per_objfile_free here.
14316         (dwarf2_per_objfile_free): Remove.
14317         (_initialize_dwarf2_read): Don't register
14318         dwarf2_per_objfile_free as a registry cleanup.
14319
14320 2018-01-27  Eli Zaretskii  <eliz@gnu.org>
14321
14322         Avoid compilation errors in MinGW native builds
14323
14324         The error is triggered by including python-internal.h, and the
14325         error message is:
14326
14327              In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
14328                       from build-gnulib/import/math.h:27,
14329                       from d:/usr/Python26/include/pyport.h:235,
14330                       from d:/usr/Python26/include/Python.h:58,
14331                       from python/python-internal.h:94,
14332                       from python/py-arch.c:24:
14333              d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
14334         using ::hypot;
14335                 ^~~~~
14336
14337         This happens because Python headers define 'hypot' to expand t
14338         '_hypot' in the Windows builds.
14339         * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
14340         'hypoth'.  This avoids a compilation error.
14341
14342 2018-01-26  Alan Hayward  <alan.hayward@arm.com>
14343
14344         * MAINTAINERS (Write After Approval): Fix ordering.
14345
14346 2018-01-26  Alan Hayward  <alan.hayward@arm.com>
14347
14348         * MAINTAINERS (Write After Approval): Add Alan Hayward.
14349
14350 2018-01-26  Alan Modra  <amodra@gmail.com>
14351
14352         * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
14353         (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
14354         Remove nop.  Make const.  Comment.
14355         (powerpc32_plt_stub_so_2): New.
14356         (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
14357         Correct count.  Update uses.
14358         (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
14359         Move common code reading PLT entry word.  Correct
14360         powerpc32_plt_stub PLT address calculation.
14361         * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
14362         (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
14363         (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
14364         (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
14365         (ppc64_standard_linkage8): Likewise.
14366         * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
14367         Correct insns description.
14368         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
14369
14370 2018-01-24  Pedro Alves  <palves@redhat.com>
14371
14372         GCC PR libstdc++/83906
14373         * gdbtypes.c (operator==(const dynamic_prop &,
14374         const dynamic_prop &)): New.
14375         (operator==(const range_bounds &, const range_bounds &)): New.
14376         (check_types_equal): Use them instead of memcmp.
14377         * gdbtypes.h (operator==(const dynamic_prop &,
14378         const dynamic_prop &)): Declare.
14379         (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
14380         (operator==(const range_bounds &, const range_bounds &)): Declare.
14381         (operator!=(const range_bounds &, const range_bounds &)): Declare.
14382
14383 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14384
14385         * s390-linux-tdep.c (s390_record_address_mask)
14386         (s390_record_calc_disp_common, s390_record_calc_disp)
14387         (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
14388         (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
14389         (s390_process_record): Move to s390-tdep.c.
14390         (s390_linux_init_abi_any): Adjust.
14391         * s390-tdep.c (s390_record_address_mask)
14392         (s390_record_calc_disp_common, s390_record_calc_disp)
14393         (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
14394         (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
14395         (s390_process_record): Moved from s390-linux-tdep.c
14396         (s390_gdbarch_init): Adjust.
14397
14398 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14399
14400         * s390-linux-nat.c (s390-tdep.h): New include.
14401         * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
14402         (HFILES_NO_SRCDIR): Add s390-tdep.h.
14403         (ALLDEPFILES): Add s390-tdep.c.
14404         * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
14405         * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
14406         * s390-tdep.h: ...this.  New file.
14407         * s390-linux-tdep.c (s390-tdep.h): New include.
14408         (_initialize_s390_tdep): Rename to...
14409         (_initialize_s390_linux_tdep): ...this and adjust.
14410         (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
14411         (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
14412         s390-tdep.h.
14413         (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
14414         (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
14415         (s390_is_partial_instruction, s390_software_single_step)
14416         (is_non_branch_ril, s390_displaced_step_copy_insn)
14417         (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
14418         (s390_prologue_data, s390_addr, s390_store, s390_load)
14419         (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
14420         (s390_register_call_saved, s390_guess_tracepoint_registers)
14421         (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
14422         (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
14423         (s390_pseudo_register_name, s390_pseudo_register_type)
14424         (s390_pseudo_register_read, s390_pseudo_register_write)
14425         (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
14426         (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
14427         (s390_addr_bits_remove, s390_address_class_type_flags)
14428         (s390_address_class_type_flags_to_name)
14429         (s390_address_class_name_to_type_flags, s390_effective_inner_type)
14430         (s390_function_arg_float, s390_function_arg_vector)
14431         (is_power_of_two, s390_function_arg_integer, s390_arg_state)
14432         (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
14433         (s390_frame_align, s390_register_return_value, s390_return_value)
14434         (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
14435         (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
14436         (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
14437         (s390_trad_frame_prev_register, s390_unwind_cache)
14438         (s390_prologue_frame_unwind_cache)
14439         (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
14440         (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
14441         (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
14442         (s390_stub_frame_this_id, s390_stub_frame_prev_register)
14443         (s390_stub_frame_sniffer, s390_stub_frame_unwind)
14444         (s390_frame_base_address, s390_local_base_address)
14445         (s390_frame_base, s390_gcc_target_options)
14446         (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
14447         (s390_validate_reg_range, s390_tdesc_valid)
14448         (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
14449         * s390-tdep.c: ...this.  New file.
14450
14451 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14452
14453         * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
14454         (s390_process_record, s390_gdbarch_tdep_alloc)
14455         (s390_linux_init_abi_any): Use/set new hook.
14456
14457 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14458
14459         * s390-linux-tdep.c (osabi.h): New include.
14460         (s390_linux_init_abi_31, s390_linux_init_abi_64)
14461         (s390_linux_init_abi_any): New functions.
14462         (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
14463
14464 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14465
14466         * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
14467         tdesc_has_registers check
14468
14469 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14470
14471         * s390-linux-tdep.c (s390_tdesc_valid): New function.
14472         (s390_validate_reg_range): New macro.
14473         (s390_gdbarch_init): Adjust.
14474
14475 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14476
14477         * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
14478         (s390_gdbarch_tdep_alloc): Adjust.
14479         (s390_gdbarch_init): Adjust.
14480
14481 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14482
14483         * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
14484         <have_tdb>: Change type to bool.
14485         (s390_gdbarch_tdep_alloc): Adjust.
14486         (s390_gdbarch_init): Adjust.
14487
14488 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14489
14490         * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
14491         (gdbarch_tdep) <have_upper, have_vx>: New fields.
14492         (s390_gdbarch_tdep_alloc): New function.
14493         (s390_gdbarch_init): Allocate tdep at start and use its fields
14494         instead of separate variables.
14495
14496 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14497
14498         * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
14499         when looking for cached gdbarch and add comment for remaining.
14500
14501 2018-01-22  Pedro Alves  <palves@redhat.com>
14502             Sergio Durigan Junior  <sergiodj@redhat.com>
14503
14504         * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
14505         case.
14506
14507 2018-01-22  Maciej W. Rozycki  <macro@mips.com>
14508
14509         * MAINTAINERS: Update my company e-mail address.
14510
14511 2018-01-22  Yao Qi  <yao.qi@linaro.org>
14512
14513         * regcache.c (cooked_write_test): New function.
14514         (_initialize_regcache): Register the test.
14515
14516 2018-01-22  Yao Qi  <yao.qi@linaro.org>
14517
14518         * ia64-tdep.c (ia64_pseudo_register_read): Call
14519         regcache->cooked_read instead of regcache_cooked_read_unsigned.
14520         * m32c-tdep.c (m32c_cat_read): Likewise.
14521         (m32c_r3r2r1r0_read): Likewise.
14522         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14523         * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14524
14525 2018-01-22  Yao Qi  <yao.qi@linaro.org>
14526
14527         * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
14528         method raw_read instead of regcache_raw_read.
14529         * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14530         * arm-tdep.c (arm_neon_quad_read): Likewise.
14531         * avr-tdep.c (avr_pseudo_register_read): Likewise.
14532         * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14533         * frv-tdep.c (frv_pseudo_register_read): Likewise.
14534         * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
14535         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14536         (i386_pseudo_register_read_into_value): Likewise.
14537         * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14538         * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14539         * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14540         * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
14541         * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
14542         * sparc-tdep.c (sparc32_pseudo_register_read):  Likewise.
14543         * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14544         * spu-tdep.c (spu_pseudo_register_read_spu):  Likewise.
14545         * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
14546
14547 2018-01-22  Yao Qi  <yao.qi@linaro.org>
14548
14549         * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
14550         * configure.tgt: Remove target mt.
14551         * mt-tdep.c: Remove.
14552         * regcache.c (cooked_read_test): Remove the check for mt.
14553
14554 2018-01-22  Yao Qi  <yao.qi@linaro.org>
14555
14556         * jit.c (jit_frame_prev_register): Call regcache::cooked_read
14557         instead of gdbarch_pseudo_register_read_value.
14558
14559 2018-01-22  Joel Brobecker  <brobecker@adacore.com>
14560
14561         * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
14562         language is Ada.
14563
14564 2018-01-22  Joel Brobecker  <brobecker@adacore.com>
14565
14566         * linespec.c (create_sals_line_offset): Remove code that preserved
14567         the symtab_and_line's line number.
14568
14569 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
14570
14571         * varobj.c (varobj_create): Don't set valid_block when creating a
14572         floating varobj.
14573
14574 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
14575
14576         * varobj.c (varobj_create): Remove out of date comment.
14577
14578 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
14579
14580         PR mi/20395
14581         * ada-exp.y (write_var_from_sym): Pass extra parameter when
14582         updating innermost block.
14583         * parse.c (innermost_block_tracker::update): Take extra type
14584         parameter, and check types match before updating innermost block.
14585         (write_dollar_variable): Update innermost block for registers.
14586         * parser-defs.h (enum innermost_block_tracker_type): New enum.
14587         (innermost_block_tracker::innermost_block_tracker): Initialise
14588         m_types member.
14589         (innermost_block_tracker::reset): Take type parameter.
14590         (innermost_block_tracker::update): Take type parameter, and pass
14591         type through as needed.
14592         (innermost_block_tracker::m_types): New member.
14593         * varobj.c (varobj_create): Pass type when reseting innermost
14594         block.
14595
14596 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
14597
14598         * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
14599         * ada-lang.c (resolve_subexp): Likewise.
14600         * breakpoint.c (set_breakpoint_condition) Likewise.
14601         (watch_command_1) Likewise.
14602         * c-exp.y (variable): Likewise.
14603         * d-exp.y (PrimaryExpression): Likewise.
14604         * f-exp.y (variable): Likewise.
14605         * go-exp.y (variable): Likewise.
14606         * m2-exp.y (variable): Likewise.
14607         * objfiles.c (objfile::~objfile): Likewise.
14608         * p-exp.y (variable): Likewise.
14609         * parse.c (innermost_block): Change type.
14610         * parser-defs.h (class innermost_block_tracker): New.
14611         (innermost_block): Change to innermost_block_tracker.
14612         * printcmd.c (display_command): Switch to innermost_block API.
14613         (do_one_display): Likewise.
14614         * rust-exp.y (do_one_display): Likewise.
14615         * symfile.c (clear_symtab_users): Likewise.
14616         * varobj.c (varobj_create): Switch to innermost_block API, replace
14617         use of innermost_block with block stored on varobj object.
14618
14619 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
14620
14621         * expression.h (innermost_block): Remove declaration.
14622         * varobj.c: Add 'parser-defs.h' include.
14623
14624 2018-01-19  Tom Tromey  <tom@tromey.com>
14625
14626         * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
14627         symbols in the static and global blocks.
14628
14629 2018-01-19  James Clarke  <jrtc27@jrtc27.com>
14630
14631         * nat/linux-ptrace.c: Remove unnecessary reinclusion of
14632         gdb_ptrace.h, and move including gdb_wait.h ...
14633         * nat/linux-ptrace.h: ... to here.
14634
14635 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
14636
14637         * inf-ptrace.c (inf_ptrace_detach): Adjust call to
14638         inf_ptrace_detach_success.
14639         (inf_ptrace_detach_success): Add inferior parameter, use it
14640         instead of inferior_ptid, pass it to detach_inferior.
14641         * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
14642         parameter.
14643         * inferior.c (detach_inferior): Add overload that takes an
14644         inferior object.
14645         * inferior.h (detach_inferior): Likewise.
14646         * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
14647         use inferior_ptid, adjust call to inf_ptrace_detach_success.
14648         * linux-thread-db.c (thread_db_detach): Use inf parameter.
14649
14650 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
14651
14652         * target.h (struct target_ops) <to_detach>: Add inferior
14653         parameter.
14654         (target_detach): Likewise.
14655         * target.c (dispose_inferior): Pass inferior down.
14656         (target_detach): Pass inferior down.  Assert that it is equal to
14657         the current inferior.
14658         * aix-thread.c (aix_thread_detach): Pass inferior down.
14659         * corefile.c (core_file_command): Pass current_inferior() down.
14660         * corelow.c (core_detach): Add inferior parameter.
14661         * darwin-nat.c (darwin_detach): Likewise.
14662         * gnu-nat.c (gnu_detach): Likewise.
14663         * inf-ptrace.c (inf_ptrace_detach): Likewise.
14664         * infcmd.c (detach_command): Pass current_inferior() down to
14665         target_detach.
14666         * infrun.c (follow_fork_inferior): Pass parent_inf to
14667         target_detach.
14668         (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
14669         target_detach.
14670         * linux-nat.c (linux_nat_detach): Add inferior parameter.
14671         * linux-thread-db.c (thread_db_detach): Likewise.
14672         * nto-procfs.c (procfs_detach): Likewise.
14673         * procfs.c (procfs_detach): Likewise.
14674         * record.c (record_detach): Likewise.
14675         * record.h (struct inferior): Forward-declare.
14676         (record_detach): Add inferior parameter.
14677         * remote-sim.c (gdbsim_detach): Likewise.
14678         * remote.c (remote_detach_1): Likewise.
14679         (remote_detach): Likewise.
14680         (extended_remote_detach): Likewise.
14681         * sol-thread.c (sol_thread_detach): Likewise.
14682         * target-debug.h (target_debug_print_inferior_p): New macro.
14683         * target-delegates.c: Re-generate.
14684         * top.c (kill_or_detach): Pass inferior down to target_detach.
14685         * windows-nat.c (windows_detach): Add inferior parameter.
14686
14687 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
14688
14689         * target.h (struct target_ops) <to_detach>: Remove args
14690         parameter.
14691         (target_detach): Likewise.
14692         * target.c (dispose_inferior): Adjust.
14693         (target_detach): Remove args parameter, adjust.
14694         * aix-thread.c (aix_thread_detach): Adjust.
14695         * corefile.c (core_file_command): Adjust.
14696         * corelow.c (core_detach): Adjust.
14697         * darwin-nat.c (darwin_detach): Adjust.
14698         * gnu-nat.c (gnu_detach): Adjust.
14699         * inf-ptrace.c (inf_ptrace_detach): Adjust.
14700         * infcmd.c (detach_command): Adjust
14701         * infrun.c (follow_fork_inferior): Adjust.
14702         (handle_vfork_child_exec_or_exit): Adjust.
14703         * linux-fork.c (linux_fork_detach): Remove args parameter.
14704         * linux-fork.h (linux_fork_detach): Likewise.
14705         * linux-nat.c (linux_nat_detach): Likewise, and adjust.
14706         * linux-thread-db.c (thread_db_detach): Likewise.
14707         * nto-procfs.c (procfs_detach): Likewise.
14708         * procfs.c (procfs_detach): Likewise.
14709         (do_detach): Remove signo parameter.
14710         * record.c (record_detach): Remove args parameter.
14711         * record.h (record_detach): Likewise.
14712         * remote-sim.c (gdbsim_detach): Likewise.
14713         * remote.c (remote_detach_1): Likewise.
14714         (remote_detach): Likewise.
14715         (extended_remote_detach): Likewise.
14716         * sol-thread.c (sol_thread_detach): Likewise.
14717         * target-delegates.c: Re-generate.
14718         * top.c (struct qt_args) <args>: Remove field.
14719         (kill_or_detach): Don't pass args.
14720         (quit_force): Don't set args.
14721         * windows-nat.c (windows_detach): Remove args parameter.
14722
14723 2018-01-19  Yao Qi  <yao.qi@linaro.org>
14724
14725         * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
14726         (arm_linux_init_abi): Install it.
14727
14728 2018-01-19  Yao Qi  <yao.qi@linaro.org>
14729
14730         * osabi.c (gdb_osabi_names): Extend the regexp for
14731         arm-linux-gnueabihf.
14732
14733 2018-01-18  Yao Qi  <yao.qi@linaro.org>
14734
14735         * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
14736         m_abbrevs.
14737         (abbrev_table::add_abbrev): Update.
14738         (abbrev_table::lookup_abbrev): Update.
14739
14740 2018-01-18  Yao Qi  <yao.qi@linaro.org>
14741
14742         * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
14743
14744 2018-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
14745
14746         * compile/compile.c (compile_to_object): Convert "triplet_rx"
14747         to "std::string".
14748
14749 2018-01-17  Tom Tromey  <tom@tromey.com>
14750
14751         * dwarf2read.c (symbolp): Remove typedef.  Don't instantiate VEC.
14752
14753 2018-01-17  Tom Tromey  <tom@tromey.com>
14754
14755         * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
14756         * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
14757         (create_array_type_with_stride): Update.
14758         * dwarf2read.c (set_die_type): Update.
14759
14760 2018-01-17  Tom Tromey  <tom@tromey.com>
14761
14762         * dwarf2read.c (delayed_method_info): Remove typedef.
14763         (dwarf2_cu::method_info): Now a std::vector.
14764         (add_to_method_list): Update.
14765         (free_delayed_list): Remove.
14766         (compute_delayed_physnames): Update.
14767         (process_full_comp_unit, process_full_type_unit): Clear the method
14768         list.  Remove cleanups.
14769         (psymtab_include_file_name): Add name_holder parameter.  Use
14770         unique_xmalloc_ptr.
14771         (dwarf_decode_lines): Update.
14772
14773 2018-01-17  Tom Tromey  <tom@tromey.com>
14774             Simon Marchi  <simon.marchi@ericsson.com>
14775
14776         * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
14777         (dwarf2_per_objfile::free_cached_comp_units)
14778         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
14779         (init_cutu_and_read_dies_no_follow): Update.
14780         (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
14781         (dwarf2_cu::~dwarf2_cu): New.
14782         (free_heap_comp_unit, free_stack_comp_unit): Remove.
14783         (age_cached_comp_units, free_one_cached_comp_unit): Update.
14784
14785 2018-01-17  Tom Tromey  <tom@tromey.com>
14786             Simon Marchi  <simon.marchi@ericsson.com>
14787
14788         * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
14789         (struct die_reader_specs) <abbrev_table>: New member.
14790         (struct abbrev_table): Add constructor.
14791         <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
14792         <abbrev_obstack>: Now an auto_obstack.
14793         (abbrev_table_up): New typedef.
14794         (init_cu_die_reader): Add abbrev_table parameter.
14795         (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
14796         Add result_dwo_abbrev_table.
14797         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
14798         (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
14799         Update.
14800         (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
14801         parameter.
14802         (skip_children): Update.
14803         (abbrev_table::alloc_abbrev): Rename from
14804         abbrev_table_alloc_abbrev.
14805         (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
14806         (abbrev_table::lookup_abbrev): Rename from
14807         abbrev_table_lookup_abbrev.
14808         (abbrev_table_read_table): Return abbrev_table_up.
14809         (abbrev_table_free, abbrev_table_free_cleanup)
14810         (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
14811         (load_partial_dies): Update.
14812
14813 2018-01-17  Tom Tromey  <tom@tromey.com>
14814
14815         * dwarf2read.c (dwarf2_compute_name): Update comment.
14816         (read_func_scope, read_variable): Update.
14817         (new_symbol): Remove.
14818         (new_symbol_full): Rename to new_symbol.
14819
14820 2018-01-17  Mike Gulick  <mgulick@mathworks.com>
14821
14822         PR gdb/16577
14823         * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
14824         a warning instead of throwing an error, set section size to 0 and return
14825         NULL.
14826         * gdb_bfd.h (gdb_bfd_map_section): Update description.
14827
14828 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
14829
14830         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
14831         std::string.
14832         (linux_ptrace_attach_fail_reason_string): Likewise.
14833         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
14834         Likewise.
14835         (linux_ptrace_attach_fail_reason_string): Likewise.
14836         * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
14837
14838 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
14839
14840         * linux-nat.c (linux_nat_attach): Remove xstrdup.
14841
14842 2018-01-17  Eldar Abusalimov  <eldar.abusalimov@jetbrains.com>
14843
14844         PR gdb/21559
14845         * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
14846         checking for fs_base/gs_base fields in struct user_regs_struct.
14847         * configure: Regenerate.
14848
14849 2018-01-17  Yao Qi  <yao.qi@linaro.org>
14850
14851         * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
14852         function.
14853         (aarch64_linux_init_abi): Install it to gdbarch hook
14854         gcc_target_options.
14855
14856 2018-01-15  Pedro Alves  <palves@redhat.com>
14857
14858         * common/signals-state-save-restore.c
14859         (save_original_signals_state): Fix typos.
14860
14861 2017-01-12  Tom Tromey  <tom@tromey.com>
14862             Sergio Durigan Junior  <sergiodj@redhat.com>
14863
14864         * Makefile.in (install-only): Install gdb-add-index.
14865
14866 2018-01-12  John Baldwin  <jhb@FreeBSD.org>
14867
14868         * fbsd-tdep.c (KVE_PROTECTION): Correct value.
14869
14870 2018-01-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
14871
14872         * infrun.c (keep_going_pass_signal): Clear step-over info when
14873         insert_breakpoints fails.
14874
14875 2018-01-11  Pedro Alves  <palves@redhat.com>
14876
14877         PR gdb/22583
14878         * infrun.c (resume): Rename to ...
14879         (resume_1): ... this.
14880         (resume): Reimplement as wrapper around resume_1.
14881
14882 2018-01-11  Pedro Alves  <palves@redhat.com>
14883
14884         PR remote/22597
14885         * remote.c (remote_parse_stop_reply): Default to the last-set
14886         general thread instead of to 'magic_null_ptid'.
14887
14888 2018-01-10  Pedro Alves  <palves@redhat.com>
14889
14890         * language.h (language_get_symbol_name_matcher): Rename ...
14891         (get_symbol_name_matcher): ... this.
14892         * language.c (language_get_symbol_name_matcher): Ditto.
14893         * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
14894         callers adjusted.
14895
14896 2018-01-10  Pedro Alves  <palves@redhat.com>
14897
14898         PR gdb/22670
14899         * dwarf2read.c
14900         (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
14901         Adjust to use language_get_symbol_name_matcher instead of
14902         language_defn::la_get_symbol_name_matcher.
14903         * language.c (language_get_symbol_name_matcher): If in Ada mode
14904         and the lookup name is a verbatim match, return Ada's matcher.
14905         * language.h (language_get_symbol_name_matcher): Adjust comment.
14906         (ada_lookup_name_info::verbatim_p):: New method.
14907
14908 2018-01-10  Pedro Alves  <palves@redhat.com>
14909
14910         PR gdb/22670
14911         * ada-lang.c (ada_collect_symbol_completion_matches): If the
14912         minsym's language is language_auto or language_cplus, pass down
14913         language_ada instead.
14914         * symtab.c (compare_symbol_name): Don't frob symbol language here.
14915
14916 2018-01-10  Pedro Alves  <palves@redhat.com>
14917
14918         PR gdb/22670
14919         * minsyms.c (linkage_name_str): New function.
14920         (iterate_over_minimal_symbols): Use it.
14921
14922 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
14923
14924         * NEWS: Document that 'info proc' now works on FreeBSD.
14925
14926 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
14927
14928         * configure.ac: Check for kinfo_getfile in libutil.
14929         * configure: Regenerate.
14930         * config.in: Regenerate.
14931         * fbsd-nat.c: Include "fbsd-tdep.h".
14932         (fbsd_fetch_cmdline): New.
14933         (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
14934         rather than calling error.
14935         (fbsd_info_proc): New.
14936         (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
14937         (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
14938         (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
14939
14940 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
14941
14942         * fbsd-nat.c (struct free_deleter): Remove.
14943         (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
14944
14945 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
14946
14947         * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
14948         NULL for an empty pathname.
14949
14950 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
14951
14952         * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
14953         (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
14954         (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
14955         (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
14956         (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
14957         (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
14958         (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
14959         (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
14960         (kinfo_proc_layout_32, kinfo_proc_layout_i386)
14961         (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
14962         (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
14963         (fbsd_core_fetch_timeval, fbsd_print_sigset)
14964         (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
14965         (fbsd_init_abi):  Install gdbarch "core_info_proc" method.
14966         * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
14967
14968 2018-01-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14969
14970         * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
14971         (gnu_xfer_auxv): New function.
14972         (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
14973         TARGET_OBJECT_AUXV.
14974
14975 2018-01-08  Yao Qi  <yao.qi@linaro.org>
14976             Simon Marchi  <simon.marchi@ericsson.com>
14977
14978         * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
14979         common/selftest.c.
14980         (COMMON_OBS): Remove selftest.o.
14981         * configure.ac: Append selftest-arch.c and common/selftest.c to
14982         CONFIG_SRCS.  Append selftest-arch.o and selftest.o to COMMON_OBS.
14983         * configure: Re-generated.
14984         * maint.c (maintenance_selftest): Wrap selftests::run_tests with
14985         GDB_SELF_TEST.
14986         (maintenance_info_selftests): Likewise.
14987
14988 2018-01-08  Xavier Roirand  <roirand@adacore.com>
14989
14990         * ada-valprint.c (val_print_packed_array_elements): Use
14991         proper number of elements when printing an array indexed
14992         by an enumeration type.
14993
14994 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
14995
14996         * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
14997         (dw2_get_file_names_reader): Adjust.
14998         (lookup_dwo_signatured_type): Adjust.
14999         (lookup_dwp_signatured_type): Adjust.
15000         (lookup_signatured_type): Adjust.
15001         (create_type_unit_group): Adjust.
15002         (get_type_unit_group): Adjust.
15003         (process_psymtab_comp_unit_reader): Adjust.
15004         (build_type_psymtabs_reader): Adjust.
15005         (scan_partial_symbols): Adjust.
15006         (add_partial_symbol): Adjust.
15007         (add_partial_subprogram): Adjust.
15008         (peek_die_abbrev): Adjust.
15009         (fixup_go_packaging): Adjust.
15010         (process_imported_unit_die): Adjust.
15011         (dwarf2_compute_name): Adjust.
15012         (dwarf2_physname): Adjust.
15013         (read_import_statement): Adjust.
15014         (handle_DW_AT_stmt_list): Adjust.
15015         (read_file_scope): Adjust.
15016         (read_func_scope): Adjust.
15017         (read_lexical_block_scope): Adjust.
15018         (read_call_site_scope): Adjust.
15019         (read_variable): Adjust.
15020         (dwarf2_rnglists_process): Adjust.
15021         (dwarf2_ranges_process): Adjust.
15022         (dwarf2_ranges_read): Adjust.
15023         (dwarf2_get_pc_bounds): Adjust.
15024         (dwarf2_record_block_ranges): Adjust.
15025         (dwarf2_add_field): Adjust.
15026         (dwarf2_add_member_fn): Adjust.
15027         (read_structure_type): Adjust.
15028         (process_structure_scope): Adjust.
15029         (read_enumeration_type): Adjust.
15030         (read_array_type): Adjust.
15031         (mark_common_block_symbol_computed): Adjust.
15032         (read_common_block): Adjust.
15033         (read_namespace_type): Adjust.
15034         (read_namespace): Adjust.
15035         (read_module_type): Adjust.
15036         (read_tag_pointer_type): Adjust.
15037         (read_tag_ptr_to_member_type): Adjust.
15038         (read_tag_string_type): Adjust.
15039         (read_subroutine_type): Adjust.
15040         (read_typedef): Adjust.
15041         (read_base_type): Adjust.
15042         (attr_to_dynamic_prop): Adjust.
15043         (read_subrange_type): Adjust.
15044         (read_unspecified_type): Adjust.
15045         (dwarf2_read_abbrevs): Adjust.
15046         (load_partial_dies): Adjust.
15047         (read_partial_die): Adjust.
15048         (find_partial_die): Adjust.
15049         (guess_partial_die_structure_name): Adjust.
15050         (fixup_partial_die): Adjust.
15051         (read_attribute_value): Adjust.
15052         (read_addr_index): Adjust.
15053         (read_addr_index_from_leb128): Adjust.
15054         (read_str_index): Adjust.
15055         (dwarf2_string_attr): Adjust.
15056         (get_debug_line_section): Adjust.
15057         (dwarf_decode_line_header): Adjust.
15058         (lnp_state_machine::check_line_address): Adjust.
15059         (dwarf_decode_lines_1): Adjust.
15060         (dwarf_decode_lines): Adjust.
15061         (dwarf2_start_symtab): Adjust.
15062         (var_decode_location): Adjust.
15063         (new_symbol_full): Adjust.
15064         (dwarf2_const_value_data): Adjust.
15065         (dwarf2_const_value_attr): Adjust.
15066         (dwarf2_const_value): Adjust.
15067         (die_type): Adjust.
15068         (die_containing_type): Adjust.
15069         (build_error_marker_type): Adjust.
15070         (lookup_die_type): Adjust.
15071         (guess_full_die_structure_name): Adjust.
15072         (anonymous_struct_prefix): Adjust.
15073         (determine_prefix): Adjust.
15074         (dwarf2_name): Adjust.
15075         (follow_die_ref_or_sig): Adjust.
15076         (follow_die_offset): Adjust.
15077         (follow_die_ref): Adjust.
15078         (follow_die_sig_1): Adjust.
15079         (follow_die_sig): Adjust.
15080         (get_signatured_type): Adjust.
15081         (get_DW_AT_signature_type): Adjust.
15082         (decode_locdesc): Adjust.
15083         (dwarf_decode_macros): Adjust.
15084         (cu_debug_loc_section): Adjust.
15085         (fill_in_loclist_baton): Adjust.
15086         (dwarf2_symbol_mark_computed): Adjust.
15087         (init_one_comp_unit): Don't assign
15088         dwarf2_cu::dwarf2_per_objfile.
15089         (set_die_type): Adjust.
15090
15091 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
15092
15093         * dwarf2read.c (struct mapped_debug_names): Add constructor.
15094         <dwarf2_per_objfile>: New field.
15095         (dwarf2_per_objfile): Remove global.
15096         (get_dwarf2_per_objfile): New function.
15097         (set_dwarf2_per_objfile): New function.
15098         (dwarf2_build_psymtabs_hard): Change objfile parameter to
15099         dwarf2_per_objfile.
15100         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
15101         (read_abbrev_offset): Likewise.
15102         (read_indirect_string): Likewise.
15103         (read_indirect_line_string): Likewise.
15104         (read_indirect_string_at_offset): Likewise.
15105         (read_indirect_string_from_dwz): Likewise.
15106         (dwarf2_find_containing_comp_unit): Change objfile parameter to
15107         dwarf2_per_objfile.
15108         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
15109         (create_all_comp_units): Change objfile parameter to
15110         dwarf2_per_objfile.
15111         (create_all_type_units): Likewise.
15112         (process_queue): Add dwarf2_per_objfile parameter.
15113         (read_and_check_comp_unit_head): Likewise.
15114         (lookup_dwo_unit_in_dwp): Likewise.
15115         (get_dwp_file): Likewise.
15116         (process_cu_includes): Likewise.
15117         (struct free_dwo_file_cleanup_data): New struct.
15118         (dwarf2_has_info): Use get_dwarf2_per_objfile and
15119         set_dwarf2_per_objfile.
15120         (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
15121         (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
15122         context, adjust calls.
15123         (dw2_instantiate_symtab): Likewise.
15124         (dw2_get_cutu): Add dwarf2_per_objfile parameter.
15125         (dw2_get_cu): Likewise.
15126         (create_cu_from_index_list): Change objfile parameter to
15127         dwarf2_per_objfile.
15128         (create_cus_from_index_list): Get dwarf2_per_objfile from
15129         context, adjust calls.
15130         (create_cus_from_index): Likewise.
15131         (create_signatured_type_table_from_index): Change objfile
15132         parameter to dwarf2_per_objfile.
15133         (create_signatured_type_table_from_debug_names): Change objfile
15134         parameter to dwarf2_per_objfile.
15135         (create_addrmap_from_index): Likewise.
15136         (create_addrmap_from_aranges): Likewise.
15137         (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
15138         (dw2_setup): Remove.
15139         (dw2_get_file_names_reader): Get dwarf2_per_objfile from
15140         context.
15141         (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
15142         get_dwarf2_per_objfile.
15143         (dw2_forget_cached_source_info): Likewise.
15144         (dw2_map_symtabs_matching_filename): Likewise.
15145         (struct dw2_symtab_iterator) <index>: Remove.
15146         <dwarf2_per_objfile>: New field.
15147         (dw2_symtab_iter_init): Replace index parameter with
15148         dwarf2_per_objfile.
15149         (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
15150         (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
15151         (dw2_print_stats): Likewise.
15152         (dw2_dump): Likewise.
15153         (dw2_expand_symtabs_for_function): Likewise.
15154         (dw2_expand_all_symtabs): Likewise.
15155         (dw2_expand_symtabs_with_fullname): Likewise.
15156         (dw2_expand_marked_cus): Replace index and objfile parameters
15157         with dwarf2_per_objfile.
15158         (dw_expand_symtabs_matching_file_matcher): Add
15159         dwarf2_per_objfile parameter and adjust calls.
15160         (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
15161         adjust calls.
15162         (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
15163         (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
15164         adjust calls.
15165         (create_cus_from_debug_names_list): Replace objfile parameter
15166         with dwarf2_per_objfile and adjust calls.
15167         (create_cus_from_debug_names): Likewise.
15168         (dwarf2_read_debug_names): Likewise.
15169         (mapped_debug_names::namei_to_name): Adjust call.
15170         (dw2_debug_names_iterator::next): Likewise.
15171         (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
15172         (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
15173         (dw2_debug_names_dump): Likewise.
15174         (dw2_debug_names_expand_symtabs_for_function): Likewise.
15175         (dw2_debug_names_expand_symtabs_matching): Likewise.
15176         (dwarf2_initialize_objfile): Likewise.
15177         (dwarf2_build_psymtabs): Likewise.
15178         (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
15179         this_cu.
15180         (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
15181         (read_and_check_comp_unit_head): Likewise.
15182         (read_abbrev_offset): Likewise.
15183         (create_debug_type_hash_table): Likewise.
15184         (create_debug_types_hash_table): Likewise.
15185         (create_all_type_units): Replace objfile parameter with
15186         dwarf2_per_objfile.
15187         (add_type_unit): Add dwarf2_per_objfile parameter.
15188         (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
15189         with dwarf2_per_objfile.
15190         (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
15191         (lookup_dwp_signatured_type): Likewise.
15192         (lookup_signatured_type): Likewise.
15193         (read_cutu_die_from_dwo): Likewise.
15194         (init_tu_and_read_dwo_dies): Likewise.
15195         (init_cutu_and_read_dies): Likewise.
15196         (init_cutu_and_read_dies_no_follow): Likewise.
15197         (allocate_type_unit_groups_table): Add objfile parameter.
15198         (create_type_unit_group): Use dwarf2_per_objfile from cu.
15199         (get_type_unit_group): Likewise.
15200         (process_psymtab_comp_unit): Update call.
15201         (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
15202         (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
15203         (print_tu_stats): Likewise.
15204         (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
15205         in void* parameter.
15206         (build_type_psymtabs): Change objfile parameter to
15207         dwarf2_per_objfile.
15208         (process_skeletonless_type_unit): Use dwarf2_per_objfile
15209         passed in void* parameter.
15210         (process_skeletonless_type_units): Change objfile parameter to
15211         dwarf2_per_objfile.
15212         (set_partial_user): Likewise.
15213         (dwarf2_build_psymtabs_hard): Likewise.
15214         (read_comp_units_from_section): Likewise.
15215         (create_all_comp_units): Likewise.
15216         (scan_partial_symbols): Update calls.
15217         (add_partial_symbol): Likewise.
15218         (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
15219         (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
15220         (process_queue): Add dwarf2_per_objfile parameter.
15221         (get_compunit_symtab): Use dwarf2_per_objfile from cu.
15222         (compute_compunit_symtab_includes): Likewise.
15223         (process_cu_includes): Add dwarf2_per_objfile parameter.
15224         (process_full_comp_unit): Use dwarf2_per_objfile from cu.
15225         (process_full_type_unit): Likewise.
15226         (process_imported_unit_die): Update call.
15227         (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
15228         (read_file_scope): Likewise.
15229         (allocate_dwo_file_hash_table): Add objfile parameter.
15230         (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
15231         (create_cus_hash_table): Likewise.
15232         (create_dwp_hash_table): Likewise.
15233         (create_dwo_unit_in_dwp_v1): Likewise.
15234         (create_dwp_v2_section): Likewise.
15235         (create_dwo_unit_in_dwp_v2): Likewise.
15236         (lookup_dwo_unit_in_dwp): Likewise.
15237         (try_open_dwop_file): Likewise.
15238         (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
15239         (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
15240         cleanup to include a reference to dwarf2_per_objfile.
15241         (open_dwp_file): Add dwarf2_per_objfile parameter.
15242         (open_and_init_dwp_file): Likewise.
15243         (get_dwp_file): Likewise.
15244         (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
15245         (queue_and_load_all_dwo_tus): Update call.
15246         (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
15247         data.
15248         (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
15249         (dwarf2_ranges_process): Likewise.
15250         (dwarf2_get_pc_bounds): Likewise.
15251         (mark_common_block_symbol_computed): Likewise.
15252         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
15253         (dwarf2_read_abbrevs): Update call.
15254         (read_partial_die): Use dwarf2_per_objfile from cu.
15255         (find_partial_die): Likewise.
15256         (fixup_partial_die): Likewise.
15257         (read_attribute_value): Likewise.
15258         (read_indirect_string_at_offset_from): Add objfile parameter.
15259         (read_indirect_string_at_offset): Add dwarf2_per_objfile
15260         parameter.
15261         (read_indirect_string_from_dwz): Add objfile parameter.
15262         (read_indirect_string): Add objfile parameter.
15263         (read_addr_index_1): Add dwarf2_per_objfile parameter.
15264         (read_addr_index): Use dwarf2_per_objfile from cu.
15265         (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
15266         call dw2_setup.
15267         (read_str_index): Use dwarf2_per_objfile from cu.
15268         (get_debug_line_section): Likewise.
15269         (read_formatted_entries): Add dwarf2_per_objfile parameter.
15270         (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
15271         (new_symbol_full): Use dwarf2_per_objfile from cu.
15272         (build_error_marker_type): Likewise.
15273         (lookup_die_type): Likewise.
15274         (determine_prefix): Likewise.
15275         (follow_die_offset): Likewise.
15276         (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
15277         (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
15278         (dwarf2_fetch_die_type_sect_off): Likewise.
15279         (dwarf2_get_die_type): Likewise.
15280         (follow_die_sig_1): Use dwarf2_per_objfile from cu.
15281         (get_signatured_type): Likewise.
15282         (get_DW_AT_signature_type): Likewise.
15283         (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
15284         (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
15285         (cu_debug_loc_section): Likewise.
15286         (fill_in_loclist_baton): Likewise.
15287         (dwarf2_symbol_mark_computed): Likewise.
15288         (dwarf2_find_containing_comp_unit): Change objfile parameter to
15289         dwarf2_per_objfile.
15290         (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
15291         parameter.
15292         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
15293         (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
15294         (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
15295         (set_die_type): Use dwarf2_free_objfile from cu.
15296         (get_die_type_at_offset): Likewise.
15297         (dwarf2_per_objfile_free): Don't assign global variable.
15298         (debug_names) <constructor>: Add dwarf2_per_objfile
15299         parameter, update m_debugstrlookup construction.
15300         (debug_names::debug_str_lookup): Add dwarf2_per_objfile
15301         parameter.
15302         <m_dwarf2_per_objfile>: New field.
15303         <lookup>: Use m_dwarf2_per_objfile.
15304         (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
15305         (psyms_seen_size): Likewise.
15306         (write_gdbindex): Replace objfile parameter with
15307         dwarf2_per_objfile.
15308         (write_debug_names): Likewise.
15309         (write_psymtabs_to_index): Likewise.
15310         (save_gdb_index_command): Use get_dwarf2_per_objfile, update
15311         calls.
15312
15313 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
15314
15315         * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
15316         <dwarf2_per_objfile>: New field.
15317         (struct dwarf2_per_cu_data) <objfile>: Remove.
15318         <dwarf2_per_objfile>: New field.
15319         (create_cu_from_index_list): Assign dwarf2_per_objfile instead
15320         of objfile.
15321         (create_signatured_type_table_from_index): Likewise.
15322         (create_debug_type_hash_table): Likewise.
15323         (fill_in_sig_entry_from_dwo_entry): Likewise.
15324         (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
15325         (create_type_unit_group): Assign dwarf2_per_objfile instead of
15326         objfile.
15327         (create_partial_symtab): Access objfile through
15328         dwarf2_per_objfile.
15329         (process_psymtab_comp_unit_reader): Likewise.
15330         (read_comp_units_from_section): Likewise.
15331         (scan_partial_symbols): Likewise.
15332         (add_partial_symbol): Likewise.
15333         (add_partial_subprogram): Likewise.
15334         (peek_die_abbrev): Likewise.
15335         (fixup_go_packaging): Likewise.
15336         (process_full_comp_unit): Likewise.
15337         (process_full_type_unit): Likewise.
15338         (process_imported_unit_die): Likewise.
15339         (dwarf2_compute_name): Likewise.
15340         (dwarf2_physname): Likewise.
15341         (read_import_statement): Likewise.
15342         (create_cus_hash_table): Assign dwarf2_physname instead of
15343         objfile.
15344         (read_func_scope): Access objfile through dwarf2_per_objfile.
15345         (read_lexical_block_scope): Likewise.
15346         (read_call_site_scope): Likewise.
15347         (read_variable): Likewise.
15348         (dwarf2_rnglists_process): Likewise.
15349         (dwarf2_ranges_process): Likewise.
15350         (dwarf2_ranges_read): Likewise.
15351         (dwarf2_record_block_ranges): Likewise.
15352         (dwarf2_add_field): Likewise.
15353         (dwarf2_add_member_fn): Likewise.
15354         (read_structure_type): Likewise.
15355         (process_structure_scope): Likewise.
15356         (read_enumeration_type): Likewise.
15357         (read_array_type): Likewise.
15358         (read_common_block): Likewise.
15359         (read_namespace_type): Likewise.
15360         (read_namespace): Likewise.
15361         (read_module_type): Likewise.
15362         (read_tag_pointer_type): Likewise.
15363         (read_tag_ptr_to_member_type): Likewise.
15364         (read_tag_string_type): Likewise.
15365         (read_subroutine_type): Likewise.
15366         (read_typedef): Likewise.
15367         (read_base_type): Likewise.
15368         (attr_to_dynamic_prop): Likewise.
15369         (read_subrange_type): Likewise.
15370         (read_unspecified_type): Likewise.
15371         (load_partial_dies): Likewise.
15372         (read_partial_die): Likewise.
15373         (find_partial_die): Likewise.
15374         (guess_partial_die_structure_name): Likewise.
15375         (fixup_partial_die): Likewise.
15376         (read_attribute_value): Likewise.
15377         (read_addr_index_from_leb128): Likewise.
15378         (dwarf2_read_addr_index): Likewise.
15379         (dwarf2_string_attr): Likewise.
15380         (lnp_state_machine::check_line_address): Likewise.
15381         (dwarf_decode_lines_1): Likewise.
15382         (dwarf_decode_lines): Likewise.
15383         (dwarf2_start_symtab): Likewise.
15384         (var_decode_location): Likewise.
15385         (new_symbol_full): Likewise.
15386         (dwarf2_const_value_data): Likewise.
15387         (dwarf2_const_value_attr): Likewise.
15388         (dwarf2_const_value): Likewise.
15389         (die_type): Likewise.
15390         (die_containing_type): Likewise.
15391         (lookup_die_type): Likewise.
15392         (guess_full_die_structure_name): Likewise.
15393         (anonymous_struct_prefix): Likewise.
15394         (dwarf2_name): Likewise.
15395         (follow_die_ref_or_sig): Likewise.
15396         (follow_die_offset): Likewise.
15397         (follow_die_ref): Likewise.
15398         (dwarf2_fetch_die_loc_sect_off): Likewise.
15399         (dwarf2_fetch_constant_bytes): Likewise.
15400         (dwarf2_fetch_die_type_sect_off): Likewise.
15401         (dwarf2_get_die_type): Likewise.
15402         (follow_die_sig): Likewise.
15403         (decode_locdesc): Likewise.
15404         (dwarf2_per_cu_objfile): Likewise.
15405         (dwarf2_per_cu_text_offset): Likewise.
15406         (init_one_comp_unit): Assign dwarf2_per_objfile instead of
15407         objfile.
15408         (set_die_type): Access objfile through
15409         dwarf2_per_objfile.
15410
15411 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
15412
15413         * valprint.c (converted_character_d): Remove typedef.
15414         (DEF_VEC_O (converted_character_d)): Remove.
15415         (count_next_character): Use std::vector.
15416         (print_converted_chars_to_obstack): Likewise.
15417         (generic_printstr): Likewise.
15418
15419 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
15420
15421         * xml-support.h (struct gdb_xml_value): Add constructor.
15422         <value>: Change type to unique_xmalloc_ptr.
15423         (gdb_xml_value_s): Remove typedef.
15424         (DEF_VEC_O (gdb_xml_value_s)): Remove.
15425         (gdb_xml_element_start_handler): Change parameter type to
15426         std::vector.
15427         (xml_find_attribute): Likewise.
15428         * xml-support.c (xml_find_attribute): Change parameter type to
15429         std::vector and adjust.
15430         (gdb_xml_values_cleanup): Remove.
15431         (gdb_xml_parser::start_element): Adjust to std::vector.
15432         (xinclude_start_include): Change paraeter type to std::vector
15433         and adjust.
15434         * btrace.c (check_xml_btrace_version): Likewise.
15435         (parse_xml_btrace_block): Likewise.
15436         (parse_xml_btrace_pt_config_cpu): Likewise.
15437         (parse_xml_btrace_pt): Likewise.
15438         (parse_xml_btrace_conf_bts): Likewise.
15439         (parse_xml_btrace_conf_pt): Likewise.
15440         * memory-map.c (memory_map_start_memory): Likewise.
15441         (memory_map_start_property): Likewise.
15442         * osdata.c (osdata_start_osdata): Likewise.
15443         (osdata_start_item): Likewise.
15444         (osdata_start_column): Likewise.
15445         * remote.c (start_thread): Likewise.
15446         * solib-aix.c (library_list_start_library): Likewise.
15447         (library_list_start_list): Likewise.
15448         * solib-svr4.c (library_list_start_library): Likewise.
15449         (svr4_library_list_start_list): Likewise.
15450         * solib-target.c (library_list_start_segment): Likewise.
15451         (library_list_start_section): Likewise.
15452         (library_list_start_library): Likewise.
15453         (library_list_start_list): Likewise.
15454         * tracepoint.c (traceframe_info_start_memory): Likewise.
15455         (traceframe_info_start_tvar): Likewise.
15456         * xml-syscall.c (syscall_start_syscall): Likewise.
15457         * xml-tdesc.c (tdesc_start_target): Likewise.
15458         (tdesc_start_feature): Likewise.
15459         (tdesc_start_reg): Likewise.
15460         (tdesc_start_union): Likewise.
15461         (tdesc_start_struct): Likewise.
15462         (tdesc_start_flags): Likewise.
15463         (tdesc_start_enum): Likewise.
15464         (tdesc_start_field): Likewise.
15465         (tdesc_start_enum_value): Likewise.
15466         (tdesc_start_vector): Likewise.
15467
15468 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
15469
15470         * extension.h (struct xmethod_worker) <clone>: Remove.
15471         * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
15472         Remove.
15473         (python_xmethod_worker::clone): Remove.
15474         * valops.c (find_overload_match): Use std::move instead of
15475         clone.
15476
15477 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
15478
15479         * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
15480         (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
15481         <free_xmethod_worker_data>: Remove.
15482         <get_matching_xmethod_workers>: Chance VEC to std::vector.
15483         <get_xmethod_arg_types>: Remove.
15484         <get_xmethod_result_type>: Remove.
15485         <invoke_xmethod>: Remove.
15486         * extension.c (new_xmethod_worker): Remove.
15487         (clone_xmethod_worker): Remove.
15488         (get_matching_xmethod_workers): Return void, pass std::vector by
15489         pointer.
15490         (get_xmethod_arg_types): Rename to...
15491         (xmethod_worker::get_arg_types): ... this, and adjust.
15492         (get_xmethod_result_type): Rename to...
15493         (xmethod_worker::get_result_type): ... this, and adjust.
15494         (invoke_xmethod): Remove.
15495         (free_xmethod_worker): Remove.
15496         (free_xmethod_worker_vec): Remove.
15497         * extension.h (enum ext_lang_rc): Move here from
15498         extension-priv.h.
15499         (struct xmethod_worker): Add constructor and destructor.
15500         <data>: Remove.
15501         <value>: Remove.
15502         <invoke, clone, do_get_result_type, do_get_arg_types>: New
15503         virtual pure methods.
15504         <get_arg_types, get_result_type>: New methods.
15505         (xmethod_worker_ptr): Remove typedef.
15506         (DEF_VEC_P (xmethod_worker_ptr)): Remove.
15507         (xmethod_worker_vec): Remove typedef.
15508         (xmethod_worker_up): New typedef.
15509         (invoke_xmethod): Remove.
15510         (clone_xmethod_worker): Remove.
15511         (free_xmethod_worker): Remove.
15512         (free_xmethod_worker_vec): Remove.
15513         (get_xmethod_arg_types): Remove.
15514         (get_xmethod_result_type): Remove.
15515         * valops.c (find_method_list): Use std::vector, don't use
15516         intermediate vector.
15517         (value_find_oload_method_list): Use std::vector.
15518         (find_overload_match): Use std::vector.
15519         (find_oload_champ): Use std::vector.
15520         * value.c (value_free): Use operator delete.
15521         (value_of_xmethod): Rename to...
15522         (value_from_xmethod): ... this.  Don't assign
15523         xmethod_worker::value, take rvalue-reference.
15524         (result_type_of_xmethod): Adjust.
15525         (call_xmethod): Adjust.
15526         * value.h: Include extension.h.
15527         (struct xmethod_worker): Don't forward-declare.
15528         (value_of_xmethod): Rename to...
15529         (value_from_xmethod): ... this, take rvalue-reference.
15530         * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
15531         (struct python_xmethod_worker): ... this, add constructor and
15532         destructor.
15533         <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
15534         (gdbpy_free_xmethod_worker_data): Rename to...
15535         (python_xmethod_worker::~python_xmethod_worker): ... this and
15536         adjust.
15537         (gdbpy_clone_xmethod_worker_data): Rename to...
15538         (python_xmethod_worker::clone): ... this and adjust.
15539         (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
15540         temporary vector.
15541         (gdbpy_get_xmethod_arg_types): Rename to...
15542         (python_xmethod_worker::do_get_arg_types): ... this and adjust.
15543         (gdbpy_get_xmethod_result_type): Rename to...
15544         (python_xmethod_worker::do_get_result_type): ... this and
15545         adjust.
15546         (gdbpy_invoke_xmethod): Rename to...
15547         (python_xmethod_worker::invoke): ... this and adjust.
15548         (new_python_xmethod_worker): Rename to...
15549         (python_xmethod_worker::python_xmethod_worker): ... this and
15550         adjust.
15551         * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
15552         Remove.
15553         (gdbpy_free_xmethod_worker_data): Remove.
15554         (gdbpy_get_matching_xmethod_workers): Use std::vector.
15555         (gdbpy_get_xmethod_arg_types): Remove.
15556         (gdbpy_get_xmethod_result_type): Remove.
15557         (gdbpy_invoke_xmethod): Remove.
15558         * python/python.c (python_extension_ops): Remove obsolete
15559         callbacks.
15560
15561 2018-01-05  Pedro Alves  <palves@redhat.com>
15562
15563         PR gdb/18653
15564         * common/signals-state-save-restore.c
15565         (save_original_signals_state): New parameter 'quiet'.  Warn if we
15566         find a custom handler preinstalled, instead of internal erroring.
15567         But only warn if !quiet.
15568         * common/signals-state-save-restore.h
15569         (save_original_signals_state): New parameter 'quiet'.
15570         * main.c (captured_main_1): Move save_original_signals_state call
15571         after option handling, and pass QUIET.
15572
15573 2018-01-05  Pedro Alves  <palves@redhat.com>
15574
15575         * spu-tdep.c (spu_catch_start): Pass
15576         symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
15577
15578 2018-01-05  Pedro Alves  <palves@redhat.com>
15579
15580         PR gdb/22670
15581         * ada-lang.c (literal_symbol_name_matcher): New function.
15582         (ada_get_symbol_name_matcher): Use it for
15583         symbol_name_match_type::SEARCH_NAME.
15584         * block.c (block_lookup_symbol): New parameter 'match_type'.  Pass
15585         it down instead of assuming symbol_name_match_type::FULL.
15586         * block.h (block_lookup_symbol): New parameter 'match_type'.
15587         * c-valprint.c (print_unpacked_pointer): Use
15588         lookup_symbol_search_name instead of lookup_symbol.
15589         * compile/compile-object-load.c (get_out_value_type): Pass down
15590         symbol_name_match_type::SEARCH_NAME.
15591         * cp-namespace.c (cp_basic_lookup_symbol): Pass down
15592         symbol_name_match_type::FULL.
15593         * cp-support.c (cp_get_symbol_name_matcher): Handle
15594         symbol_name_match_type::SEARCH_NAME.
15595         * infrun.c (insert_exception_resume_breakpoint): Use
15596         lookup_symbol_search_name.
15597         * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
15598         * psymtab.c (maintenance_check_psymtabs): Use
15599         symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
15600         * stack.c (print_frame_args): Use lookup_symbol_search_name and
15601         SYMBOL_SEARCH_NAME.
15602         * symtab.c (lookup_local_symbol): Don't demangle the lookup name
15603         if symbol_name_match_type::SEARCH_NAME.
15604         (lookup_symbol_in_language): Pass down
15605         symbol_name_match_type::FULL.
15606         (lookup_symbol_search_name): New.
15607         (lookup_language_this): Pass down
15608         symbol_name_match_type::SEARCH_NAME.
15609         (lookup_symbol_aux, lookup_local_symbol): New parameter
15610         'match_type'.  Pass it down.
15611         * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
15612         (lookup_symbol_search_name): New declaration.
15613         (lookup_symbol_in_block): New 'match_type' parameter.
15614
15615 2018-01-05  Pedro Alves  <palves@redhat.com>
15616
15617         PR gdb/22670
15618         * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
15619         ada_lookup_symbol.
15620         (ada_lookup_symbol): Reimplement in terms of
15621         ada_lookup_symbol_list, bits factored out from
15622         ada_lookup_encoded_symbol.
15623
15624 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
15625
15626         * ada-exp.y (write_object_renaming): When subscripting an array
15627         using a symbol as the index, pass the block in call to
15628         ada_lookup_encoded_symbol when looking that symbol up.
15629
15630 2018-01-05  Jerome Guitton  <guitton@adacore.com>
15631
15632         * ada-lang.c (ada_array_length): Use ada_index_type instead of
15633         TYPE_INDEX_TYPE.
15634
15635 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
15636
15637         * ada-lang.c (ada_to_fixed_value_create): Add handling of
15638         the case where VALUE_LVAL (val0) is not lval_memory.
15639
15640 2018-01-05  Xavier Roirand  <roirand@adacore.com>
15641
15642         * ada-valprint.c (print_optional_low_bound): Handle
15643         character-indexed array printing like boolean-indexed array
15644         printing.
15645
15646 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
15647
15648         * NEWS: Create a new section for the next release branch.
15649         Rename the section of the current branch, now that it has
15650         been cut.
15651
15652 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
15653
15654         GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
15655         * version.in: Bump version to 8.1.50.DATE-git.
15656
15657 2018-01-03  Xavier Roirand  <roirand@adacore.com>
15658
15659         * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
15660         Add field.
15661         * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
15662         Add field.
15663         (default_exception_support_info) <catch_handlers_sym>: Add field.
15664         (exception_support_info_fallback) <catch_handlers_sym>: Add field.
15665         (ada_exception_name_addr_1): Add "catch handlers" handling.
15666         (ada_exception_catchpoint_cond_string) <ex>: New parameter.
15667         Update all callers.
15668         (create_excep_cond_exprs) <ex>: Add parameter.
15669         (re_set_exception): Update create_excep_cond_exprs call.
15670         (print_it_exception, print_one_exception, print_mention_exception)
15671         (print_recreate_exception): Add "catch handler" handling.
15672         (allocate_location_catch_handlers, re_set_catch_handlers)
15673         (check_status_catch_handlers, print_it_catch_handlers)
15674         (print_one_catch_handlers, print_mention_catch_handlers)
15675         (print_recreate_catch_handlers): New function.
15676         (catch_handlers_breakpoint_ops): New variable.
15677         (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
15678         Add parameter.  Add "catch handler" handling.
15679         (ada_exception_sym_name, ada_exception_breakpoint_ops):
15680         Add "catch handler" handling.
15681         (ada_exception_catchpoint_cond_string): Add "catch handler"
15682         handling.
15683         (create_ada_exception_catchpoint): Update create_excep_cond_exprs
15684         call.
15685         (catch_ada_handlers_command): New function.
15686         (initialize_ada_catchpoint_ops): Initialize "catch handlers"
15687         operations structure.
15688         (_initialize_ada_language): Add "catch handlers" command entry.
15689         * NEWS: Document "catch handlers" feature.
15690
15691 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
15692
15693         * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
15694         account when creating the array type of the slice.
15695         (ada_value_slice): Likewise.
15696
15697 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
15698
15699         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
15700         New enum value.
15701         (create_array_type_with_stride): Add byte_stride_prop parameter.
15702         * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
15703         New parameter.  Update all callers in this file.
15704         (array_type_has_dynamic_stride): New function.
15705         (is_dynamic_type_internal, resolve_dynamic_array): Add handling
15706         of arrays with dynamic byte strides.
15707         * dwarf2read.c (read_array_type): Add support for dynamic
15708         DW_AT_byte_stride attributes.
15709
15710 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
15711
15712         * dwarf2read.c (read_unspecified_type): Treat
15713         DW_TAG_enumeration_type DIEs from Ada units as stubs.
15714
15715 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
15716
15717         Update copyright year range in all GDB files.
15718
15719 2018-01-01, 18  Joel Brobecker  <brobecker@adacore.com>
15720
15721         * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
15722         and gdb/testsuite/gdb.base/step-line.c.
15723
15724 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
15725
15726         * copyright.py (main): Dump the contents of
15727         MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
15728         even if BY_HAND is empty.
15729
15730 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
15731
15732         * top.c (print_gdb_version): Update Copyright year in version
15733         message.
15734
15735 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
15736
15737         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
15738
15739 For older changes see ChangeLog-2017.
15740 \f
15741 Local Variables:
15742 mode: change-log
15743 left-margin: 8
15744 fill-column: 74
15745 version-control: never
15746 coding: utf-8
15747 End: