Style the "Reading symbols" message
[external/binutils.git] / gdb / ChangeLog
1 2018-12-28  Tom Tromey  <tom@tromey.com>
2
3         * symfile.c (symbol_file_add_with_addrs): Style file name.
4
5 2018-12-28  Tom Tromey  <tom@tromey.com>
6
7         * top.c (print_gdb_version): Style gdb version number.
8
9 2018-12-28  Tom Tromey  <tom@tromey.com>
10
11         * printcmd.c (print_address_symbolic): Style function name.
12
13 2018-12-28  Tom Tromey  <tom@tromey.com>
14
15         * breakpoint.c (say_where): Style file name.
16
17 2018-12-28  Tom Tromey  <tom@tromey.com>
18
19         * ui-out.h (enum class ui_out_style_kind) <VARIABLE>: New global.
20         * stack.c (print_frame_arg): Style name.
21         * printcmd.c (print_variable_and_value): Style variable name.
22         * cli/cli-style.h (variable_name_style): Declare.
23         * cli/cli-style.c (variable_name_style): New global.
24         (_initialize_cli_style): Update.
25         * cli-out.c (cli_ui_out::do_field_string): Update.
26
27 2018-12-28  Tom Tromey  <tom@tromey.com>
28
29         * utils.h (reset_terminal_style): Declare.
30         * utils.c (can_emit_style_escape): New function.
31         (set_output_style): Use it.
32         (reset_terminal_style): New function.
33         * printcmd.c (printf_command): Call reset_terminal_style.
34         * cli/cli-cmds.c (echo_command): Call reset_terminal_style.
35
36 2018-12-28  Tom Tromey  <tom@tromey.com>
37
38         * utils.h (set_output_style, fprintf_styled)
39         (fputs_styled): Declare.
40         * utils.c (applied_style, desired_style): New globals.
41         (emit_style_escape, set_output_style): New function.
42         (prompt_for_continue): Emit style escapes.
43         (fputs_maybe_filtered): Likewise.
44         (fputs_styled, fprintf_styled): New functions.
45         * ui-out.h (enum class ui_out_style_kind): New.
46         (class ui_out) <field_string, field_stream, do_field_string>: Add
47         style parameter.
48         * ui-out.c (ui_out::field_stream, ui_out::field_string): Add style
49         parameter.
50         * tui/tui-out.h (class tui_ui_out) <do_field_string>: Add style
51         parameter.
52         * tui/tui-out.c (tui_ui_out::do_field_string): Add style
53         parameter.
54         (tui_ui_out::do_field_string): Update.
55         * tracepoint.c (print_one_static_tracepoint_marker): Style
56         output.
57         * stack.c (print_frame_info, print_frame): Style output.
58         * source.c (print_source_lines_base): Style output.
59         * skip.c (info_skip_command): Style output.
60         * record-btrace.c (btrace_call_history_src_line): Style output.
61         (btrace_call_history): Likewise.
62         * python/py-framefilter.c (py_print_frame): Style output.
63         * mi/mi-out.h (class mi_ui_out) <do_field_string>: Add style
64         parameter.
65         * mi/mi-out.c (mi_ui_out::do_table_header)
66         (mi_ui_out::do_field_int): Update.
67         (mi_ui_out::do_field_string): Update.
68         * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
69         Style output.
70         * cli/cli-style.h: New file.
71         * cli/cli-style.c: New file.
72         * cli-out.h (class cli_ui_out) <do_field_string>: Add style
73         parameter.
74         * cli-out.c (cli_ui_out::do_table_header)
75         (cli_ui_out::do_field_int, cli_ui_out::do_field_skip): Update.
76         (cli_ui_out::do_field_string): Add style parameter.  Style the
77         output.
78         * breakpoint.c (print_breakpoint_location): Style output.
79         (update_static_tracepoint): Likewise.
80         * Makefile.in (SUBDIR_CLI_SRCS): Add cli-style.c.
81         (HFILES_NO_SRCDIR): Add cli-style.h.
82
83 2018-12-28  Tom Tromey  <tom@tromey.com>
84
85         * unittests/style-selftests.c: New file.
86         * ui-style.c: New file.
87         * ui-style.h: New file.
88         * ui-file.h: Include ui-style.h.
89         * Makefile.in (COMMON_SFILES): Add ui-style.c.
90         (HFILES_NO_SRCDIR): Add ui-style.h.
91         (SUBDIR_UNITTESTS_SRCS): Add style-selftests.c.
92
93 2018-12-28  Tom Tromey  <tom@tromey.com>
94
95         * command.h (add_setshow_enum_cmd): Add "context" argument.
96         * cli/cli-decode.c (add_setshow_enum_cmd): Add "context"
97         argument.  Call set_cmd_context.
98
99 2018-12-28  Tom Tromey  <tom@tromey.com>
100
101         * utils.c (filter_initialized): New global.
102         (wrap_buffer): Now a std::string.
103         (wrap_pointer): Remove.
104         (flush_wrap_buffer): New function.
105         (filtered_printing_initialized, set_width, wrap_here)
106         (fputs_maybe_filtered): Update.
107
108 2018-12-28  Eli Zaretskii  <eliz@gnu.org>
109
110         * coffread.c (coff_symtab_read): Don't record in minsyms symbols
111         that are unresolved.  This avoids triggering an internal error
112         when stepping outside of 'main' in MinGW programs.
113
114 2018-12-27  Tom Tromey  <tom@tromey.com>
115
116         * python/py-utils.c (gdbpy_handle_exception): Translate
117         PyExc_KeyboardInterrupt to quit.
118
119 2018-12-27  Tom Tromey  <tom@tromey.com>
120
121         * python/python-internal.h (gdbpy_print_stack_or_quit): Declare.
122         * python/py-unwind.c (pyuw_sniffer): Use
123         gdbpy_print_stack_or_quit.
124         * python/py-framefilter.c (throw_quit_or_print_exception):
125         Remove.
126         (gdbpy_apply_frame_filter): Use gdbpy_print_stack_or_quit.
127         * python/python.c (gdbpy_print_stack_or_quit): New function.
128
129 2018-12-27  Tom Tromey  <tom@tromey.com>
130
131         * python/py-value.c (convert_value_from_python): Use
132         gdbpy_convert_exception.
133         * python/py-param.c (parmpy_init): Use gdbpy_convert_exception.
134         * python/py-cmd.c (cmdpy_init): Use gdbpy_convert_exception.
135         * python/py-breakpoint.c (bppy_init): Use
136         gdbpy_convert_exception.
137
138 2018-12-27  Tom Tromey  <tom@tromey.com>
139
140         * configure.nat (NATDEPFILES): Use nat/ prefix.
141         * Makefile.in (CONFIG_SRC_SUBDIR): Add nat.
142         (%.o: ${srcdir}/nat/%.c): Remove rule.
143         (INIT_FILES): Do not filter out NATDEPFILES.
144
145 2018-12-27  Tom Tromey  <tom@tromey.com>
146
147         * Makefile.in (INIT_FILES): Redefine.
148         (stamp-init): Remove sed, tr invocations.  Use for loop.  Don't
149         set LANG or LC_ALL.
150
151 2018-12-27  Tom Tromey  <tom@tromey.com>
152
153         * Makefile.in (stamp-init): Remove gdbtypes special case.
154
155 2018-12-27  John Baldwin  <jhb@FreeBSD.org>
156
157         * config/i386/nm-fbsd.h: Remove file.
158         * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-fbsd.h.
159         * configure.nat: Remove NAT_FILE for FreeBSD/i386.
160
161 2018-12-27  Tom Tromey  <tom@tromey.com>
162
163         * minsyms.h (class minimal_symbol_reader): Use
164         DISABLE_COPY_AND_ASSIGN.
165
166 2018-12-27  Tom Tromey  <tom@tromey.com>
167
168         * python/python.c (python_interactive_command): Use std::string.
169         (gdbpy_parameter): Likewise.
170         * python/py-utils.c (unicode_to_encoded_string): Update comment.
171         * python/py-symtab.c (salpy_str): Use PyString_FromFormat.
172         * python/py-record-btrace.c (recpy_bt_insn_data): Use
173         byte_vector.
174         * python/py-objfile.c (objfpy_get_build_id): Use
175         unique_xmalloc_ptr.
176         * python/py-inferior.c (infpy_read_memory): Use
177         unique_xmalloc_ptr.
178         * python/py-cmd.c (gdbpy_parse_command_name): Use std::string.
179
180 2018-12-26  Simon Marchi  <simon.marchi@polymtl.ca>
181
182         * target.c (target_terminal::restore_inferior): Remove struct keyword.
183
184 2018-12-26  Simon Marchi  <simon.marchi@ericsson.com>
185
186         * build-id.c (build_id_to_debug_bfd): Enhance debug output.
187         * symfile.c (separate_debug_file_exists): Likewise.
188
189 2018-12-24  Andrew Burgess  <andrew.burgess@embecosm.com>
190
191         * c-exp.y (field_name): Allow DOUBLE_KEYWORD, INT_KEYWORD, LONG,
192         SHORT, SIGNED_KEYWORD, and UNSIGNED tokens to act as a field
193         names.
194         (typename_stoken): New function.
195
196 2018-12-24  Andrew Burgess  <andrew.burgess@embecosm.com>
197
198         * c-exp.y (field_name): New %token, and new rule.
199         (exp): Replace uses of 'name' with 'field_name' where appropriate.
200
201 2018-12-24  Andrew Burgess  <andrew.burgess@embecosm.com>
202
203         PR gdb/13368
204         * c-exp.y (typebase): Extend the comment.
205         (ident_tokens): Likewise.
206
207 2018-12-18  Tom Tromey  <tom@tromey.com>
208
209         * dwarf2read.c (dwarf2_find_containing_comp_unit): Don't take
210         address of sect_off.
211
212 2018-12-23  Joel Brobecker  <brobecker@adacore.com>
213
214         GDB 8.2.1 released.
215
216 2018-12-22  Andrew Burgess  <andrew.burgess@embecosm.com>
217
218         * riscv-tdep.c (riscv_call_arg_struct): Don't adjust size before
219         assigning locations.
220         (riscv_return_value): Take more care not to read/write outside of
221         argument buffer.  Cast return value between the declared type and
222         the abi type.
223
224 2018-12-22  Andrew Burgess  <andrew.burgess@embecosm.com>
225
226         * riscv-tdep.c (riscv_register_reggroup_p): Save and restore fcsr,
227         fflags, and frm registers.
228
229 2018-12-22  Andrew Burgess  <andrew.burgess@embecosm.com>
230
231         * riscv-tdep.c (riscv_dwarf_reg_to_regnum): New function.
232         (riscv_gdbarch_init): Register new function with gdbarch.
233         * riscv-tdep.h: New enum to define RISC-V DWARF register numbers.
234
235 2018-12-21  Simon Marchi  <simon.marchi@ericsson.com>
236
237         * minsyms.c (mst_str): New.
238         (minimal_symbol_reader::record_full): Add debug output.
239
240 2018-12-21  John Baldwin  <jhb@FreeBSD.org>
241
242         * fbsd-nat.c (fbsd_handle_debug_trap): Require pl.pl_flags to
243         equal PL_FLAG_SI.
244         (fbsd_nat_target::stopped_by_sw_breakpoint): Likewise.
245
246 2018-12-21  Paul Marechal  <paul.marechal@ericsson.com>
247
248         PR gdb/23974
249         * target.c (target_read_stralloc): Check for empty vector.
250
251 2018-12-21  Дилян Палаузов  <dilyan.palauzov@aegee.org>
252
253         * top.c (print_gdb_configuration): Print "--without-python"
254         if GDB was configured without Python.
255
256 2018-12-21  Andrew Burgess  <andrew.burgess@embecosm.com>
257
258         * riscv-tdep.c (riscv_scan_prologue): Use plongest to format
259         a signed offset as a string.
260
261 2018-12-21  Dave Murphy  <davem@devkitpro.org>
262
263         * dtrace-probe.c (dtrace_static_probe_ops): Explicit zero
264         initialise.
265         * probe.c (any_static_probe_ops): Ditto.
266         * record-btrace.c (record_btrace_thread_observer_token): Ditto.
267         * stap-probe.c (stap_static_probe_ops): Ditto.
268         * tui/tui-hooks.c (tui_observers_token): Ditto.
269         * unittests/observable-selftests.c (token1, token2, token3): Ditto.
270
271 2018-12-19  Andrew Burgess  <andrew.burgess@embecosm.com>
272
273         * gdb/dummy-frame.c (default_dummy_id): Defined new function.
274         * gdb/dummy-frame.h (default_dummy_id): Declare new function.
275         * gdb/frame-unwind.c (default_unwind_pc): Define new function.
276         (default_unwind_sp): Define new function.
277         * gdb/frame-unwind.h (default_unwind_pc): Declare new function.
278         (default_unwind_sp): Declare new function.
279         * gdb/frame.c (frame_unwind_pc): Assume gdbarch_unwind_pc is
280         available.
281         (get_frame_sp): Assume that gdbarch_unwind_sp is available.
282         * gdb/gdbarch.c: Regenerate.
283         * gdb/gdbarch.h: Regenerate.
284         * gdb/gdbarch.sh: Update definition of dummy_id, unwind_pc, and
285         unwind_sp.  Add additional header files to be included in
286         generated file.
287
288 2018-12-19  Dimitar Dimitrov  <dimitar@dinux.eu>
289
290         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Remove
291         sp clobbers.
292
293 2018-12-17  Andrew Burgess  <andrew.burgess@embecosm.com>
294
295         * dwarf2read.c (struct dwarf2_cu): Convert the fields 'mark',
296         'has_loclist', 'checked_producer', 'producer_is_gxx_lt_4_6',
297         'producer_is_gcc_lt_4_3', 'producer_is_icc_lt_14',
298         'processing_has_namespace_info' from unsigned int to bool.  Update
299         comments.
300         (producer_is_icc_lt_14): Update return type.
301         (producer_is_gcc_lt_4_3): Likewise.
302         (producer_is_gxx_lt_4_6): Likewise.
303         (process_die): Write true instead of 1 into predicate fields.
304         (dwarf2_start_symtab): Likewise.
305         (var_decode_location): Likewise.
306         (dwarf2_mark_helper): Likewise.
307         (dwarf2_mark): Likewise.
308         (dwarf2_clear_marks): Write false instead of 0 into predicate
309         field.
310         (dwarf2_cu::dwarf2_cu): Initialise predicate fields to false, not
311         0.
312
313 2018-12-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
314
315         * nat/aarch64-sve-linux-ptrace.h: Include signal.h instead of
316         asm/sigcontext.h.
317
318 2018-12-17  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
319
320         * nat/linux-ptrace.c (kill_child): Fix ARI warning by removing
321         warning trailing new line.
322
323 2018-12-16  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
324
325         * nat/linux-ptrace.c (kill_child): New function.
326         (linux_ptrace_test_ret_to_nx): Use kill_child instead of local code.
327         Add a call to kill_child in case of early return after fork.
328         (linux_check_ptrace_features): Use kill_child instead of local code.
329         (linux_test_for_tracefork): Likewise.
330
331 2018-12-14  Tom Tromey  <tom@tromey.com>
332
333         * Makefile.in: Remove "alloca" comment.
334         (INFOFILES): Remove.
335         (local-maintainer-clean): Don't use INFOFILES.
336
337 2018-12-13  John Baldwin  <jhb@FreeBSD.org>
338
339         * syscalls/update-freebsd.sh: New file.
340         * syscalls/freebsd.xml: Regenerate.
341
342 2018-12-13  John Baldwin  <jhb@FreeBSD.org>
343
344         * NEWS: Add entry documenting system call aliases.
345         * break-catch-syscall.c (catch_syscall_split_args): Pass 'result'
346         to get_syscalls_by_name.
347         * gdbarch.sh (UNKNOWN_SYSCALL): Remove.
348         * gdbarch.h: Regenerate.
349         * syscalls/gdb-syscalls.dtd (syscall): Add alias attribute.
350         * xml-syscall.c [!HAVE_LIBEXPAT] (get_syscalls_by_name): Rename
351         from get_syscall_by_name.  Now accepts a pointer to a vector of
352         integers and returns a bool.
353         [HAVE_LIBEXPAT] (struct syscall_desc): Add alias member.
354         (syscall_create_syscall_desc): Add alias parameter and pass it to
355         syscall_desc constructor.
356         (syscall_start_syscall): Handle alias attribute.
357         (syscall_attr): Add alias attribute.
358         (xml_get_syscalls_by_name): Rename from xml_get_syscall_number.
359         Now accepts a pointer to a vector of integers and returns a
360         bool.  Add syscalls whose alias or name matches the requested
361         name.
362         (get_syscalls_by_name): Rename from get_syscall_by_name.  Now
363         accepts a pointer to a vector of integers and returns a bool.
364         * xml-syscall.h (get_syscalls_by_name): Likewise.
365
366 2018-12-13  John Baldwin  <jhb@FreeBSD.org>
367
368         * break-catch-syscall.c (catch_syscall_split_args): Pass 'result'
369         to get_syscalls_by_group.
370         * xml-syscall.c [!HAVE_LIBEXPAT] (get_syscalls_by_group): Return
371         false.
372         [HAVE_LIBEXPAT] (xml_list_syscalls_by_group): Append syscall
373         numbers to an existing vector of integers and return a bool.
374         (get_syscalls_by_group): Accept pointer to vector of integers
375         and change return type to bool.
376         * xml-syscall.h (get_syscalls_by_group): Likewise.
377
378 2018-12-13  Jim Wilson  <jimw@sifive.com>
379
380         * riscv-tdep.c (riscv_print_one_register_info): For MSTATUS, add
381         comment for SD field, and correct xlen calculation.  For MISA, add
382         comment for MXL field, add call to register_size, and correct base
383         calculation.
384
385 2018-12-13  Stafford Horne  <shorne@gmail.com>
386
387         * NEWS(New targets): Add or1k*-*-linux*.
388
389 2018-12-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
390
391         * nat/linux-osdata.c (linux_xfer_osdata_info_os_types): Forward
392         declare on one line to fix ARI warning.
393
394 2018-12-12  Andrew Burgess  <andrew.burgess@embecosm.com>
395
396         * infrun.c (infcall_suspend_state::infcall_suspend_state): New.
397         (infcall_suspend_state::registers): New.
398         (infcall_suspend_state::restore): New.
399         (infcall_suspend_state::thread_suspend): Rename to...
400         (infcall_suspend_state::m_thread_suspend): ...this.
401         (infcall_suspend_state::registers): Rename to...
402         (infcall_suspend_state::m_registers): ...this.
403         (infcall_suspend_state::siginfo_gdbarch): Rename to...
404         (infcall_suspend_state::m_siginfo_gdbarch): ...this.
405         (infcall_suspend_state::siginfo_data): Rename to...
406         (infcall_suspend_state::m_siginfo_data): ...this.
407         (save_infcall_suspend_state): Rewrite to use infcall_suspend_state
408         constructor.
409         (restore_infcall_suspend_state): Rewrite to use
410         infcall_suspend_state::restore method.
411         (get_infcall_suspend_state_regcache): Use
412         infcall_suspend_state::registers method.
413
414 2018-12-12  Andrew Burgess  <andrew.burgess@embecosm.com>
415
416         * riscv-tdep.c (riscv_call_arg_scalar_float): Unnamed (variadic)
417         arguments are passed in integer registers.
418         (riscv_call_arg_complex_float): Likewise.
419
420 2018-12-11  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
421
422         * nat/linux-osdata.c (common_getter): New function.
423         (struct osdata_type): Change getter to take_snapshot.
424         Add LONGEST len_avail and struct buffer buffer.
425         Change all elements in the initializer.
426         Add an element for the list of types.
427         (linux_xfer_osdata_info_os_types): New function.
428         (linux_common_xfer_osdata): Use common_getter for the list of types.
429         Replace getter call by common_getter.
430         (linux_xfer_osdata_cpus): Remove args READBUF, OFFSET, LEN.
431         Add arg BUFFER.  Only keep the code that adds data in BUFFER.
432         (linux_xfer_osdata_fds): Likewise.
433         (linux_xfer_osdata_modules): Likewise.
434         (linux_xfer_osdata_msg): Likewise.
435         (linux_xfer_osdata_processes): Likewise.
436         (linux_xfer_osdata_processgroups): Likewise.
437         (linux_xfer_osdata_sem): Likewise.
438         (linux_xfer_osdata_shm): Likewise.
439         (linux_xfer_osdata_isockets): Likewise.
440         (linux_xfer_osdata_threads): Likewise.
441
442 2018-12-11  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
443
444         * nat/linux-osdata.c: Removed various trailing spaces.
445
446 2018-12-10  Andrew Burgess  <andrew.burgess@embecosm.com>
447
448         * riscv-tdep.c (riscv_register_name): Fix ARI warning by removing
449         leading whitespace before #include line.
450
451 2018-12-08  Simon Marchi  <simon.marchi@ericsson.com>
452             Дилян Палаузов  <dilyan.palauzov@aegee.org>
453
454         PR gdb/23950
455         * configure.ac: Search for tgetent in libtinfow.
456         * configure: Re-generate.
457
458 2018-12-08  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
459
460         * linux-thread-db.c (struct thread_db_info): Add td_ta_delete_p.
461         (thread_db_err_str): Forward declare.
462         (delete_thread_db_info): Call td_ta_delete_p if available.
463         (try_thread_db_load_1): Acquire td_ta_delete address.
464         * nat/gdb_thread_db.h (td_ta_delete_ftype): Declare.
465
466 2018-12-08  Pedro Alves  <palves@redhat.com>
467
468         * source.c (forward_search_command): Rename to ...
469         (search_command_helper): ... this.  Add 'forward' parameter.
470         Tweak to use a gdb::def_vector<char> instead of a xrealloc'ed
471         buffer.  Handle backward searches too.
472         (forward_search_command, reverse_search_command): Reimplement by
473         calling search_command_helper.
474
475 2018-12-07  Andrew Burgess  <andrew.burgess@embecosm.com>
476
477         * .dir-locals.el: Copy most of the settings from c-mode over to
478         c++-mode.
479
480 2018-12-08  Stafford Horne  <shorne@gmail.com>
481
482         * Makefile.in (ALL_TARGET_OBS): Add or1k-linux-tdep.o.
483         * configure.tgt: Add or1k*-*-linux*.
484         * or1k-linux-tdep.c: New file.
485         * or1k-tdep.c (or1k_gdbarch_init): Call gdbarch_init_osabi.
486
487 2018-12-07  Pedro Alves  <palves@redhat.com>
488
489         * dwarf2read.c (get_gdb_index_contents_from_section): Use
490         gdb::make_array_view.
491
492 2018-12-05  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
493
494         * language.c (_initialize_language): Fix leak by assigning
495         a static string to language.  Same for range and case_sensitive,
496         even if no leak is detected for these variables.
497
498 2018-12-05  John Baldwin  <jhb@FreeBSD.org>
499
500         * configure: Re-generate.
501         * configure.ac: Use separate sed expressions to escape variables
502         in auto-load directories.
503
504 2018-12-05  Andrew Burgess  <andrew.burgess@embecosm.com>
505
506         * riscv-tdep.c (riscv_features_from_gdbarch_info): New function.
507         (riscv_find_default_target_description): Use new function to
508         extract feature from gdbarch_info.
509         (riscv_gdbarch_init): Add error checks for xlen and flen between
510         target description and bfd headers.  Be smarter about when we
511         think the hardware floating point abi should be used.
512
513 2018-12-05  Alan Hayward  <alan.hayward@arm.com>
514
515         * nat/aarch64-linux-hw-point.c
516         (aarch64_linux_any_set_debug_regs_state): New function.
517         * nat/aarch64-linux-hw-point.h
518         (aarch64_linux_any_set_debug_regs_state): New declaration.
519         * nat/aarch64-linux.c (aarch64_linux_new_thread): Check if any
520         BPs or WPs are set.
521
522 2018-11-30  John Baldwin  <jhb@FreeBSD.org>
523
524         * common/filestuff.c [HAVE_KINFO_GETFILE]: Include headers.
525         (fdwalk) [HAVE_KINFO_GETFILE]: Use kinfo_getfile.
526
527 2018-11-30  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
528             Simon Marchi  <simon.marchi@ericsson.com>
529
530         * linespec.c (symtab_vector_up): Remove.
531         (symtabs_from_filename): Change return type to std::vector.
532         (collect_symtabs_from_filename): Likewise.
533         (create_sals_line_offset): Assign return value of
534         collect_symtabs_from_filename to *ls->file_symtabs.
535         (convert_explicit_location_to_linespec): Remove call to release.
536         (parse_linespec): Likewise.
537         (symtab_collector) <symtab_collector>: Remove initialization of
538         m_symtabs.
539         <release_symtabs>: Change return type to std::vector<symtab *>.
540         <operator ()>: Adjust.
541
542 2018-11-30  John Baldwin  <jhb@FreeBSD.org>
543
544         * fbsd-nat.c [__FreeBSD_version >= 700009] (USE_SIGINFO): Macro
545         defined.
546         (union sigval32, struct siginfo32, fbsd_siginfo_size)
547         (fbsd_convert_siginfo): Make conditional on USE_SIGINFO instead
548         of KERN_PROC_AUXV and PT_LWPINFO.
549         (fbsd_nat_target::xfer_partial): Define method unconditionally.
550         Make TARGET_OBJECT_SIGNAL_INFO conditional on USE_SIGINFO.
551         Make TARGET_OBJECT_AUXV conditional on KERN_PROC_AUXV.
552         Make TARGET_OBJECT_FREEBSD_VMMAP and
553         TARGET_OBJECT_FREEBSD_PS_STRINGS conditional on KERN_PROC_VMMAP
554         and KERN_PROC_PS_STRINGS.
555         * fbsd-nat.h: Include <sys/proc.h>.
556         (fbsd_nat_target::xfer_partial): Declare method unconditionally.
557
558 2018-11-30  Andrew Burgess  <andrew.burgess@embecosm.com>
559
560         * riscv-linux-nat.c: Add 'inferior.h' and 'target-descriptions.h'
561         header files.
562         (riscv_linux_nat_target::read_description): New method.
563
564 2018-11-30  Andrew Burgess  <andrew.burgess@embecosm.com>
565
566         * arch/riscv.h (riscv_gdbarch_features::hash): New method.
567         * arch/riscv.c (struct riscv_gdbarch_features_hasher): New.
568         (riscv_tdesc_cache): New global.
569         (riscv_create_target_description): Look in the cache before
570         creating a new target description.
571
572 2018-11-30  Andrew Burgess  <andrew.burgess@embecosm.com>
573
574         * arch/riscv.h (riscv_gdb_features::operator==): New.
575         (riscv_gdb_features::operator!=): New.
576         * riscv-tdep.c (riscv_gdbarch_init): Make use of the inequality
577         operator.
578
579 2018-11-30  Andrew Burgess  <andrew.burgess@embecosm.com>
580
581         * arch/riscv.h (riscv_create_target_description): Make return type
582         const.
583         * arch/riscv.c (riscv_create_target_description): Likewise.
584         * riscv-tdep.c (riscv_find_default_target_description): Likewise.
585
586 2018-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
587             Keith Seitz  <keiths@redhat.com>
588             Tom Tromey  <tom@tromey.com>
589             Sergio Durigan Junior  <sergiodj@redhat.com>
590
591         https://bugzilla.redhat.com/show_bug.cgi?id=1613614
592         * dwarf2read.c (dwarf2_find_containing_comp_unit): Add
593         'mid_cu->length' to '*cu_off' when checking if 'sect_off' is
594         inside the CU.
595
596 2018-11-30  Pedro Alves  <palves@redhat.com>
597
598         * aix-thread.c (aix_thread_target) <aix_thread_target>: Delete.
599         <stratum>: New override.
600         * bfd-target.c (aix_thread_target) <aix_thread_target>: Delete.
601         <stratum>: New override.
602         * bsd-uthread.c (bsd_uthread_target) <bsd_uthread_target>: Delete.
603         <stratum>: New override.
604         * exec.c (exec_target) <exec_target>: Delete.
605         <stratum>: New override.
606         * gdbarch-selftests.c (register_to_value_test): Adjust to use the
607         stratum method instead of the to_stratum field.
608         * linux-thread-db.c (thread_db_target) <thread_db_target>: Delete.
609         <stratum>: New override.
610         (thread_db_target::thread_db_target): Delete.
611         * make-target-delegates (print_class): Don't print a ctor
612         declaration.  Print a stratum method override declaration.
613         * process-stratum-target.h (process_stratum_target)
614         <process_stratum_target>: Delete.
615         <stratum>: New override.
616         * ravenscar-thread.c (ravenscar_thread_target)
617         <ravenscar_thread_target>: Delete.
618         <stratum>: New override.
619         * record-btrace.c (record_btrace_target)
620         <record_btrace_target>: Delete.
621         <stratum>: New override.
622         * record-full.c (record_full_base_target)
623         <record_full_base_target>: Delete.
624         <stratum>: New override.
625         * record.c (record_disconnect, record_detach)
626         (record_mourn_inferior, record_kill): Adjust to use the stratum
627         method instead of the to_stratum field.
628         * regcache.c (cooked_read_test, cooked_write_test): Likewise.
629         * sol-thread.c (sol_thread_target)
630         <sol_thread_target>: Delete.
631         <stratum>: New override.
632         * spu-multiarch.c (spu_multiarch_target)
633         <spu_multiarch_target>: Delete.
634         <stratum>: New override.
635         * target-delegates.c: Regenerate.
636         * target.c (target_stack::push, target_stack::unpush)
637         (pop_all_targets_above, pop_all_targets_at_and_above)
638         (info_target_command, target_require_runnable)
639         (target_stack::find_beneath): Adjust to use the stratum method
640         instead of the to_stratum field.
641         (dummy_target::dummy_target): Delete.
642         (dummy_target::stratum): New.
643         (debug_target::debug_target): Delete.
644         (debug_target::stratum): New.
645         (maintenance_print_target_stack): Adjust to use the stratum method
646         instead of the to_stratum field.
647         * target.h (struct target_ops) <stratum>: New method.
648         <to_stratum>: Delete.
649         <is_pushed>: Adjust to use the stratum method
650         instead of the to_stratum field.
651
652 2018-11-30  Pedro Alves  <palves@redhat.com>
653
654         * corelow.c (core_target) <has_all_memory, has_execution>: New
655         overrides.
656         * inf-child.c (inf_child_target::has_all_memory)
657         (inf_child_target::has_memory, inf_child_target::has_stack)
658         (inf_child_target::has_registers)
659         (inf_child_target::has_execution): Delete.
660         * inf-child.h (inf_child_target) <has_all_memory, has_memory,
661         has_stack, has_registers, has_execution>: Delete.
662         * process-stratum-target.c
663         (process_stratum_target::has_all_memory)
664         (process_stratum_target::has_memory)
665         (process_stratum_target::has_stack)
666         (process_stratum_target::has_registers)
667         (process_stratum_target::has_execution): New.
668         * process-stratum-target.h (process_stratum_target)
669         <has_all_memory, has_memory, has_stack, has_registers,
670         has_execution>: New method overrides.
671         * ravenscar-thread.c (ravenscar_thread_target) <has_all_memory,
672         has_memory, has_stack, has_registers, has_execution>: Delete.
673         * remote-sim.c (gdbsim_target) <has_stack, has_registers,
674         has_execution>: Delete.
675         * remote.c (remote_target) <has_all_memory, has_memory, has_stack,
676         has_registers, has_execution>: Delete.
677         * target.c (default_child_has_all_memory)
678         (default_child_has_memory, default_child_has_stack)
679         (default_child_has_registers, default_child_has_execution):
680         Delete.
681         * target.h (default_child_has_all_memory)
682         (default_child_has_memory, default_child_has_stack)
683         (default_child_has_registers, default_child_has_execution):
684         Delete.
685         * tracefile.h (tracefile_target) <has_execution>: New override.
686
687 2018-11-30  Pedro Alves  <palves@redhat.com>
688
689         * Makefile.in (COMMON_SFILES): Add process-stratum-target.c.
690         * bsd-kvm.c: Include "process-stratum-target.h".
691         (bsd_kvm_target): Now inherits from process_stratum_target.
692         (bsd_kvm_target::bsd_kvm_target): Default it.
693         * corelow.c: Include "process-stratum-target.h".
694         (core_target): Now inherits from process_stratum_target.
695         (core_target::core_target): Don't set to_stratum here.
696         * inf-child.c (inf_child_target::inf_child_target): Delete.
697         * inf-child.h: Include "process-stratum-target.h".
698         (inf_child_target): Inherit from process_stratum_target.
699         (inf_child_target) <inf_child_target>: Default it.
700         <can_async_p, supports_non_stop, supports_disable_randomization>:
701         Delete overrides.
702         * process-stratum-target.c: New file.
703         * process-stratum-target.h: New file.
704         * remote-sim.c: Include "process-stratum-target.h".
705         (gdbsim_target): Inherit from process_stratum_target.
706         <gdbsim_target>: Default it.
707         * remote.c: Include "process-stratum-target.h".
708         (remote_target): Inherit from process_stratum_target.
709         <remote_target>: Default it.
710         * target.c (default_thread_address_space)
711         (default_thread_architecture): Delete.
712         * target.h (target_ops) <thread_architecture>: Now returns NULL by
713         default.
714         <thread_address_space>: Ditto.
715         * test-target.h: Include "process-stratum-target.h" instead of
716         "target.h".
717         (test_target_ops): Inherit from process_stratum_target.
718         <test_target_ops>: Default it.
719         * tracefile.c (tracefile_target::tracefile_target): Delete.
720         * tracefile.h: Include "process-stratum-target.h".
721         (tracefile_target): Inherit from process_stratum_target.
722         <tracefile_target>: Default it.
723         * target-delegates.c: Regenerate.
724
725 2018-11-30  Pedro Alves  <palves@redhat.com>
726
727         * Makefile.in (COMMON_SFILES): Add test-target.c.
728         * gdbarch-selftests.c: Include "test-target.h".
729         * regcache.c: Include "test-target.h".
730         * target.c (test_target_info, test_target_ops::info): Move to ...
731         * test-target.c: ... this new file.
732         * target.h (test_target_ops): Move to ...
733         * test-target.h: ... this new file.
734
735 2018-11-29  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
736
737         * source.c (forward_search_command): Fix leak by using
738         xrealloc even for the first allocation in the loop, as buf
739         is static.
740
741 2018-11-29  Rajendra SY  <rajendra.sy@gmail.com>
742
743         PR gdb/23093
744         * gdb/fbsd-tdep.c (fbsd_gdb_signal_from_target)
745         (fbsd_gdb_signal_to_target): New.
746         (fbsd_init_abi): Install gdbarch "signal_from_target" and
747         "signal_to_target" methods.
748
749 2018-11-29  Tom Tromey  <tom@tromey.com>
750
751         * valarith.c (value_x_unop): Don't set argvec[3].
752
753 2018-11-26  Simon Marchi  <simon.marchi@ericsson.com>
754
755         PR gdb/23917
756         * sparc-linux-nat.c (sparc_linux_nat_target): Remove extraneous
757         semicolon.
758
759 2018-11-26  Pedro Alves  <palves@redhat.com>
760
761         * procfs.c (procfs_notice_thread): Replace uses of
762         in_thread_list/is_exited with find_thread_ptid/THREAD_EXITED.
763         * sol-thread.c (sol_thread_target::wait)
764         (sol_update_thread_list_callback): Likewise.
765
766 2018-11-25  Tom Tromey  <tom@tromey.com>
767
768         * ui-out.c (ui_out::field_fmt): Remove comment.
769         * tui/tui-out.c (tui_ui_out::do_field_fmt): Remove comment.
770         * mi/mi-out.c (mi_ui_out::do_field_fmt): Remove comment.
771
772 2018-11-24  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
773
774         * source.c (open_source_file): Leak fixed in '8e6a5953e1d Fix 4K
775         leak in open_source_file' has been partially undone by '2179fbc36d23
776         Return scoped_fd from open_source_file'. Re-add the transfer of
777         current s->fullname to the unique_xmalloc_ptr fullname given
778         to find_and_open_source.
779
780 2018-11-23  Pedro Alves  <palves@redhat.com>
781
782         * gdbthread.h (enum thread_state): Move comments here.
783         (is_running, is_stopped, is_exited): Remove declarations.
784
785 2018-11-22  Pedro Alves  <palves@redhat.com>
786
787         * Makefile.in (COMMON_SFILES): Add thread-iter.c.
788         * breakpoint.c (breakpoints_should_be_inserted_now): Replace
789         ALL_NON_EXITED_THREADS with all_non_exited_threads.
790         (print_one_breakpoint_location): Replace ALL_INFERIORS with
791         all_inferiors.
792         * bsd-kvm.c: Include inferior.h.
793         * btrace.c (btrace_free_objfile): Replace ALL_NON_EXITED_THREADS
794         with all_non_exited_threads.
795         * common/filtered-iterator.h: New.
796         * common/safe-iterator.h: New.
797         * corelow.c (core_target_open): Don't call init_thread_list here.
798         * darwin-nat.c (thread_info_from_private_thread_info): Replace
799         ALL_THREADS with all_threads.
800         * fbsd-nat.c (fbsd_nat_target::resume): Replace
801         ALL_NON_EXITED_THREADS with inf->non_exited_threads.
802         * fbsd-tdep.c (fbsd_make_corefile_notes): Replace
803         ALL_NON_EXITED_THREADS with inf->non_exited_threads.
804         * fork-child.c (postfork_hook): Don't call init_thread_list here.
805         * gdbarch-selftests.c (register_to_value_test): Adjust.
806         * gdbthread.h: Don't include "inferior.h" here.
807         (struct inferior): Forward declare.
808         (enum step_over_calls_kind): Moved here from inferior.h.
809         (thread_info::deletable): Definition moved to thread.c.
810         (find_thread_ptid (inferior *, ptid_t)): Declare.
811         (ALL_THREADS, ALL_THREADS_BY_INFERIOR, ALL_THREADS_SAFE): Delete.
812         Include "thread-iter.h".
813         (all_threads, all_non_exited_threads, all_threads_safe): New.
814         (any_thread_p): Declare.
815         (thread_list): Delete.
816         * infcmd.c (signal_command): Replace ALL_NON_EXITED_THREADS with
817         all_non_exited_threads.
818         (proceed_after_attach_callback): Delete.
819         (proceed_after_attach): Take an inferior pointer instead of an
820         integer PID.  Adjust to use range-for.
821         (attach_post_wait): Pass down inferior pointer instead of pid.
822         Use range-for instead of ALL_NON_EXITED_THREADS.
823         (detach_command): Remove init_thread_list call.
824         * inferior-iter.h: New.
825         * inferior.c (struct delete_thread_of_inferior_arg): Delete.
826         (delete_thread_of_inferior): Delete.
827         (delete_inferior, exit_inferior_1): Use range-for with
828         inf->threads_safe() instead of iterate_over_threads.
829         (inferior_appeared): Call init_thread_list here.
830         (discard_all_inferiors): Use all_non_exited_inferiors.
831         (find_inferior_id, find_inferior_pid): Use all_inferiors.
832         (iterate_over_inferiors): Use all_inferiors_safe.
833         (have_inferiors, number_of_live_inferiors): Use
834         all_non_exited_inferiors.
835         (number_of_inferiors): Use all_inferiors and std::distance.
836         (print_inferior): Use all_inferiors.
837         * inferior.h: Include gdbthread.h.
838         (enum step_over_calls_kind): Moved to gdbthread.h.
839         (struct inferior) <thread_list>: New field.
840         <threads, non_exited_threads, threads_safe>: New methods.
841         (ALL_INFERIORS): Delete.
842         Include "inferior-iter.h".
843         (ALL_NON_EXITED_INFERIORS): Delete.
844         (all_inferiors_safe, all_inferiors, all_non_exited_inferiors): New
845         functions.
846         * inflow.c (child_interrupt, child_pass_ctrlc): Replace
847         ALL_NON_EXITED_THREADS with all_non_exited_threads.
848         * infrun.c (follow_exec): Use all_threads_safe.
849         (clear_proceed_status, proceed): Use all_non_exited_threads.
850         (init_wait_for_inferior): Don't clear inline frame state here.
851         (infrun_thread_stop_requested, for_each_just_stopped_thread): Use
852         all_threads instead of ALL_NON_EXITED_THREADS.
853         (random_pending_event_thread): Use all_non_exited_threads instead
854         of ALL_NON_EXITED_THREADS.  Use a lambda for repeated code.
855         (clean_up_just_stopped_threads_fsms): Use all_non_exited_threads
856         instead of ALL_NON_EXITED_THREADS.
857         (handle_no_resumed): Use all_non_exited_threads instead of
858         ALL_NON_EXITED_THREADS.  Use all_inferiors instead of
859         ALL_INFERIORS.
860         (restart_threads, switch_back_to_stepped_thread): Use
861         all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
862         * linux-nat.c (check_zombie_leaders): Replace ALL_INFERIORS with
863         all_inferiors.
864         (kill_unfollowed_fork_children): Use inf->non_exited_threads
865         instead of ALL_NON_EXITED_THREADS.
866         * linux-tdep.c (linux_make_corefile_notes): Use
867         inf->non_exited_threads instead of ALL_NON_EXITED_THREADS.
868         * linux-thread-db.c (thread_db_target::update_thread_list):
869         Replace ALL_INFERIORS with all_inferiors.
870         (thread_db_target::thread_handle_to_thread_info): Use
871         inf->non_exited_threads instead of ALL_NON_EXITED_THREADS.
872         * mi/mi-interp.c (multiple_inferiors_p): New.
873         (mi_on_resume_1): Simplify using all_non_exited_threads and
874         multiple_inferiors_p.
875         * mi/mi-main.c (mi_cmd_thread_list_ids): Use all_non_exited_threads
876         instead of ALL_NON_EXITED_THREADS.
877         * nto-procfs.c (nto_procfs_target::open): Don't call
878         init_thread_list here.
879         * record-btrace.c (record_btrace_target_open)
880         (record_btrace_target::stop_recording)
881         (record_btrace_target::close)
882         (record_btrace_target::record_is_replaying)
883         (record_btrace_target::resume, record_btrace_target::wait)
884         (record_btrace_target::record_stop_replaying): Use
885         all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
886         * record-full.c (record_full_wait_1): Use all_non_exited_threads
887         instead of ALL_NON_EXITED_THREADS.
888         * regcache.c (cooked_read_test): Remove reference to global
889         thread_list.
890         * remote-sim.c (gdbsim_target::create_inferior): Don't call
891         init_thread_list here.
892         * remote.c (remote_target::update_thread_list): Use
893         all_threads_safe instead of ALL_NON_EXITED_THREADS.
894         (remote_target::process_initial_stop_replies): Replace
895         ALL_INFERIORS with all_non_exited_inferiors and use
896         all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
897         (remote_target::open_1): Don't call init_thread_list here.
898         (remote_target::append_pending_thread_resumptions)
899         (remote_target::remote_resume_with_hc): Use all_non_exited_threads
900         instead of ALL_NON_EXITED_THREADS.
901         (remote_target::commit_resume)
902         (remote_target::remove_new_fork_children): Replace ALL_INFERIORS
903         with all_non_exited_inferiors and use all_non_exited_threads
904         instead of ALL_NON_EXITED_THREADS.
905         (remote_target::kill_new_fork_children): Use
906         all_non_exited_threads instead of ALL_NON_EXITED_THREADS.  Remove
907         init_thread_list and init_wait_for_inferior calls.
908         (remote_target::remote_btrace_maybe_reopen)
909         (remote_target::thread_handle_to_thread_info): Use
910         all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
911         * target.c (target_terminal::restore_inferior)
912         (target_terminal_is_ours_kind): Replace ALL_INFERIORS with
913         all_non_exited_inferiors.
914         * thread-iter.c: New file.
915         * thread-iter.h: New file.
916         * thread.c: Include "inline-frame.h".
917         (thread_list): Delete.
918         (clear_thread_inferior_resources): Call clear_inline_frame_state.
919         (init_thread_list): Use all_threads_safe instead of
920         ALL_THREADS_SAFE.  Adjust to per-inferior thread lists.
921         (new_thread): Adjust to per-inferior thread lists.
922         (add_thread_silent): Pass inferior to find_thread_ptid.
923         (thread_info::deletable): New, moved from the header.
924         (delete_thread_1): Adjust to per-inferior thread lists.
925         (find_thread_global_id): Use inf->threads().
926         (find_thread_ptid): Use find_inferior_ptid and pass inferior to
927         find_thread_ptid.
928         (find_thread_ptid(inferior*, ptid_t)): New overload.
929         (iterate_over_threads): Use all_threads_safe.
930         (any_thread_p): New.
931         (thread_count): Use all_threads and std::distance.
932         (live_threads_count): Use all_non_exited_threads and
933         std::distance.
934         (valid_global_thread_id): Use all_threads.
935         (in_thread_list): Use find_thread_ptid.
936         (first_thread_of_inferior): Adjust to per-inferior thread lists.
937         (any_thread_of_inferior, any_live_thread_of_inferior): Use
938         inf->non_exited_threads().
939         (prune_threads, delete_exited_threads): Use all_threads_safe.
940         (thread_change_ptid): Pass inferior pointer to find_thread_ptid.
941         (set_resumed, set_running): Use all_non_exited_threads.
942         (is_thread_state, is_stopped, is_exited, is_running)
943         (is_executing): Delete.
944         (set_executing, set_stop_requested, finish_thread_state): Use
945         all_non_exited_threads.
946         (print_thread_info_1): Use all_inferiors and all_threads.
947         (thread_apply_all_command): Use all_non_exited_threads.
948         (thread_find_command): Use all_threads.
949         (update_threads_executing): Use all_non_exited_threads.
950         * tid-parse.c (parse_thread_id): Use inf->threads.
951         * x86-bsd-nat.c (x86bsd_dr_set): Use inf->non_exited_threads ().
952
953 2018-11-22  Pedro Alves  <palves@redhat.com>
954
955         * infrun.c (follow_exec) <set follow-exec new>: Add thread and
956         switch to it before calling into try_open_exec_file.
957
958 2018-11-22  Pedro Alves  <palves@redhat.com>
959
960         * cli/cli-interp.c (cli_on_user_selected_context_changed): Use
961         inferior_thread instead of find_thread_ptid, and only when
962         inferior_ptid is not null_ptid.
963         * inferior.c (add_inferior): Don't include target_pid_to_str
964         output when the inferior is not started.
965         * python/py-inferior.c (python_on_normal_stop): Don't use
966         find_thread_ptid.
967         (tui_on_user_selected_context_changed): Use inferior_thread
968         instead of find_thread_ptid, and only when inferior_ptid is not
969         null_ptid.
970
971 2018-11-21  Benno Fünfstück  <benno.fuenfstueck@gmail.com>
972
973         PR python/23714
974         * gdb/python/python.c (execute_gdb_command): Call
975         prevent_dont_repeat earlier to avoid affecting dont_repeat.
976
977 2018-11-21  Andrew Burgess  <andrew.burgess@embecosm.com>
978
979         * Makefile.in (ALL_TARGET_OBS): Add arch/riscv.o.
980         (HFILES_NO_SRCDIR): Add arch/riscv.h.
981         * arch/riscv.c: New file.
982         * arch/riscv.h: New file.
983         * configure.tgt: Add cpu_obs list of riscv, move riscv-tdep.o into
984         this list, and add arch/riscv.o.
985         * features/Makefile: Add riscv features.
986         * features/riscv/32bit-cpu.c: New file.
987         * features/riscv/32bit-cpu.xml: New file.
988         * features/riscv/32bit-csr.c: New file.
989         * features/riscv/32bit-csr.xml: New file.
990         * features/riscv/32bit-fpu.c: New file.
991         * features/riscv/32bit-fpu.xml: New file.
992         * features/riscv/64bit-cpu.c: New file.
993         * features/riscv/64bit-cpu.xml: New file.
994         * features/riscv/64bit-csr.c: New file.
995         * features/riscv/64bit-csr.xml: New file.
996         * features/riscv/64bit-fpu.c: New file.
997         * features/riscv/64bit-fpu.xml: New file.
998         * features/riscv/rebuild-csr-xml.sh: New file.
999         * riscv-tdep.c: Add 'arch/riscv.h' include.
1000         (riscv_gdb_reg_names): Delete.
1001         (csr_reggroup): New global.
1002         (struct riscv_register_alias): Delete.
1003         (struct riscv_register_feature): New structure.
1004         (riscv_register_aliases): Delete.
1005         (riscv_xreg_feature): New global.
1006         (riscv_freg_feature): New global.
1007         (riscv_virtual_feature): New global.
1008         (riscv_csr_feature): New global.
1009         (riscv_create_csr_aliases): New function.
1010         (riscv_read_misa_reg): Delete.
1011         (riscv_has_feature): Delete.
1012         (riscv_isa_xlen): Simplify, just return cached xlen.
1013         (riscv_isa_flen): Simplify, just return cached flen.
1014         (riscv_has_fp_abi): Update for changes in struct gdbarch_tdep.
1015         (riscv_register_name): Update to make use of tdesc_register_name.
1016         Look up xreg and freg names in the new globals riscv_xreg_feature
1017         and riscv_freg_feature.  Don't supply csr aliases here.
1018         (riscv_fpreg_q_type): Delete.
1019         (riscv_register_type): Use tdesc_register_type in almost all
1020         cases, override the returned type in a few specific cases only.
1021         (riscv_print_one_register_info): Handle errors reading registers.
1022         (riscv_register_reggroup_p): Use tdesc_register_in_reggroup_p for
1023         registers that are otherwise unknown to GDB.  Also check the
1024         csr_reggroup.
1025         (riscv_print_registers_info): Remove assert about upper register
1026         number, and use gdbarch_register_reggroup_p instead of
1027         short-cutting.
1028         (riscv_find_default_target_description): New function.
1029         (riscv_check_tdesc_feature): New function.
1030         (riscv_add_reggroups): New function.
1031         (riscv_setup_register_aliases): New function.
1032         (riscv_init_reggroups): New function.
1033         (_initialize_riscv_tdep): Add calls to setup CSR aliases, and
1034         setup register groups.  Register new riscv debug variable.
1035         * riscv-tdep.h: Add 'arch/riscv.h' include.
1036         (struct gdbarch_tdep): Remove abi union, and add
1037         riscv_gdbarch_features field.  Remove cached quad floating point
1038         type, and provide initialisation for double type field.
1039         * target-descriptions.c (maint_print_c_tdesc_cmd): Add riscv to
1040         the list of targets using the feature based target descriptions.
1041         * NEWS: Mention target description support.
1042
1043 2018-11-21  Pedro Alves  <palves@redhat.com>
1044
1045         * valops.c (find_method_list, value_find_oload_method_list)
1046         (find_overload_match, find_oload_champ): Rename parameters and
1047         locals.
1048
1049 2018-11-21  Pedro Alves  <palves@redhat.com>
1050
1051         * valops.c (find_method_list): Replace pointer and length
1052         parameters with an gdb::array_view.  Adjust.
1053         (value_find_oload_method_list): Likewise.
1054         (find_overload_match): Use gdb::array_view for methods list.
1055         Adjust to find_oload_champ interface change.
1056         (find_oload_champ): 'xm_worker_vec' parameter now a pointer/array.
1057         'num_fns' parameter now a size_t.  Eliminate 'fn_count' local.
1058
1059 2018-11-21  Pedro Alves  <palves@redhat.com>
1060
1061         * gdbtypes.c (compare_badness): Change type of parameters to const
1062         reference.  Adjust to badness_vector being a std::vector now.
1063         (rank_function): Adjust to badness_vector being a std::vector now.
1064         * gdbtypes.h (badness_vector): Now a typedef to std::vector.
1065         (LENGTH_MATCH): Delete.
1066         (compare_badness): Change type of parameters to const reference.
1067         (rank_function): Return a badness_vector by value now.
1068         (find_overload_match): Adjust to badness_vector being a
1069         std::vector now.  Remove cleanups.
1070         (find_oload_champ_namespace): 'oload_champ_bv' parameter now a
1071         badness_vector pointer.
1072         (find_oload_champ_namespace_loop): 'oload_champ_bv' parameter now
1073         a badness_vector pointer.  Adjust to badness_vector being a
1074         std::vector now.  Remove cleanups.
1075         (find_oload_champ): 'oload_champ_bv' parameter now
1076         a badness_vector pointer.  Adjust to badness_vector being a
1077         std::vector now.  Remove cleanups.
1078
1079 2018-11-21  Pedro Alves  <palves@redhat.com>
1080
1081         * cp-support.c (sym_return_val_size, sym_return_val_index)
1082         (sym_return_val): Delete.
1083         (overload_list_add_symbol): Add std::vector parameter.  Adjust to
1084         add to the vector.
1085         (make_symbol_overload_list): Adjust to return a std::vector
1086         instead of maintaining a global open coded vector.
1087         (make_symbol_overload_list_block): Add std::vector parameter.
1088         (make_symbol_overload_list_block): Rename to ...
1089         (add_symbol_overload_list_block): ... this and add std::vector
1090         parameter.
1091         (make_symbol_overload_list_namespace): Rename to ...
1092         (add_symbol_overload_list_namespace): ... this and add std::vector
1093         parameter.
1094         (make_symbol_overload_list_adl_namespace): Rename to ...
1095         (add_symbol_overload_list_adl_namespace): ... this and add
1096         std::vector parameter.
1097         (make_symbol_overload_list_adl): Delete.
1098         (add_symbol_overload_list_adl): New.
1099         (make_symbol_overload_list_using): Rename to ...
1100         (add_symbol_overload_list_using): ... this and add std::vector
1101         parameter.
1102         (make_symbol_overload_list_qualified): Rename to ...
1103         (add_symbol_overload_list_qualified): ... this and add std::vector
1104         parameter.
1105         * cp-support.h: Include "common/array-view.h" and <vector>.
1106         (make_symbol_overload_list): Change return type to std::vector.
1107         (make_symbol_overload_list_adl): Delete declaration.
1108         (add_symbol_overload_list_adl): New declaration.
1109         * valops.c (find_overload_match): Local 'oload_syms' now a
1110         std::vector.
1111         (find_oload_champ_namespace): 'oload_syms' parameter now a
1112         std::vector pointer.
1113         (find_oload_champ_namespace_loop): 'oload_syms' parameter now a
1114         std::vector pointer.  Adjust to new make_symbol_overload_list
1115         interface.
1116
1117 2018-11-21  Pedro Alves  <palves@redhat.com>
1118
1119         * common/array-view.h (array_view::splice(size_type, size_t)): New.
1120         (array_view::splice(size_type)): New.
1121         * eval.c (eval_call, evaluate_funcall): Adjust to use array_view.
1122         * extension.c (xmethod_worker::get_arg_types): Adjust to return an
1123         std::vector.
1124         (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
1125         * extension.h: Include "common/array-view.h".
1126         (xmethod_worker::invoke): Adjust to use gdb::array_view.
1127         (xmethod_worker::get_arg_types): Adjust to return an std::vector.
1128         (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
1129         (xmethod_worker::do_get_arg_types): Adjust to use std::vector.
1130         (xmethod_worker::do_get_result_type): Adjust to use
1131         gdb::array_view.
1132         * gdbtypes.c (rank_function): Adjust to use gdb::array_view.
1133         * gdbtypes.h: Include "common/array-view.h".
1134         (rank_function): Adjust to use gdb::array_view.
1135         * python/py-xmethods.c (python_xmethod_worker::invoke)
1136         (python_xmethod_worker::do_get_arg_types)
1137         (python_xmethod_worker::do_get_result_type)
1138         (python_xmethod_worker::invoke): Adjust to new interfaces.
1139         * valarith.c (value_user_defined_cpp_op, value_user_defined_op)
1140         (value_x_binop, value_x_unop): Adjust to use gdb::array_view.
1141         * valops.c (find_overload_match, find_oload_champ_namespace)
1142         (find_oload_champ_namespace_loop, find_oload_champ): Adjust to use
1143         gdb:array_view and the new xmethod_worker interfaces.
1144         * value.c (result_type_of_xmethod, call_xmethod): Adjust to use
1145         gdb::array_view.
1146         * value.h (find_overload_match, result_type_of_xmethod)
1147         (call_xmethod): Adjust to use gdb::array_view.
1148         * unittests/array-view-selftests.c: Add slicing tests.
1149
1150 2018-11-21  Pedro Alves  <palves@redhat.com>
1151
1152         * ada-lang.c (ada_evaluate_subexp): Adjust to pass an array_view.
1153         * common/array-view.h (make_array_view): New.
1154         * compile/compile-object-run.c (compile_object_run): Adjust to
1155         pass an array_view.
1156         * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust.
1157         * eval.c (eval_call): Adjust to pass an array_view.
1158         (evaluate_subexp_standard): Adjust to pass an array_view.
1159         * gcore.c (call_target_sbrk): Adjust to pass an array_view.
1160         * guile/scm-value.c (gdbscm_value_call): Likewise.
1161         * infcall.c (push_dummy_code): Replace pointer + size parameters
1162         with an array_view parameter.
1163         (call_function_by_hand, call_function_by_hand_dummy): Likewise and
1164         adjust.
1165         * infcall.h: Include "common/array-view.h".
1166         (call_function_by_hand, call_function_by_hand_dummy): Replace
1167         pointer + size parameters with an array_view parameter.
1168         * linux-fork.c (inferior_call_waitpid): Adjust to use array_view.
1169         * linux-tdep.c (linux_infcall_mmap): Likewise.
1170         * objc-lang.c (lookup_objc_class, lookup_child_selector)
1171         (value_nsstring, print_object_command): Likewise.
1172         * python/py-value.c (valpy_call): Likewise.
1173         * rust-lang.c (rust_evaluate_funcall): Likewise.
1174         * spu-tdep.c (flush_ea_cache): Likewise.
1175         * valarith.c (value_x_binop, value_x_unop): Likewise.
1176         * valops.c (value_allocate_space_in_inferior): Likewise.
1177         * unittests/array-view-selftests.c (run_tests): Add
1178         gdb::make_array_view test.
1179
1180 2018-11-20  Andrew Burgess  <andrew.burgess@embecosm.com>
1181
1182         * cli-out.c (cli_ui_out::do_field_int): Use string_printf rather
1183         than a fixed size buffer.
1184
1185 2018-11-20  Andrew Burgess  <andrew.burgess@embecosm.com>
1186
1187         * breakpoint.c (print_one_breakpoint_location): Reduce whitespace,
1188         and remove insertion of extra spaces in GDB's output.
1189         * cli-out.c (cli_ui_out::do_field_fmt): Update header comment.
1190         Layout field into a temporary buffer, and then output it as a
1191         string field.
1192
1193 2018-11-20  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1194
1195         * NEWS: Document the language choice done by
1196         'info [types|functions|variables]|rbreak'.
1197
1198 2018-11-20  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1199
1200         * symtab.c (treg_matches_sym_type_name): Use
1201         scoped_switch_to_sym_language_if_auto instead of local logic.
1202         (print_symbol_info): Use scoped_switch_to_sym_language_if_auto
1203         to switch to SYM language when language mode is auto.
1204
1205 2018-11-20  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1206
1207         * language.h (scoped_switch_to_sym_language_if_auto): New class.
1208
1209 2018-11-20  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1210
1211         * symtab.c (search_symbols): Properly check absence of type regexp
1212         before entering the loop scanning the minimal symbols.
1213
1214 2018-11-20  John Darrington  <john@darrington.wattle.id.au>
1215
1216         * s12z-tdep.c (s12z_extract_return_value): New function.
1217         (inv_reg_perm) New array.
1218         (s12z_return_value): Populate readbuf if non-null.
1219
1220 2018-11-20  Eli Zaretskii  <eliz@gnu.org>
1221
1222         * common/filestuff.c (gdb_fopen_cloexec): Disable use of "e" mode
1223         with 'fopen' also if O_CLOEXEC is equal to O_NOINHERIT, to cater
1224         to MinGW fixed by Gnulib.
1225         (O_NOINHERIT): Define if not defined.
1226
1227 2018-11-19  John Darrington  <john@darrington.wattle.id.au>
1228
1229         * s12z-tdep.c (s12z_frame_cache): Add an assertion.
1230
1231 2018-11-19  Simon Marchi  <simon.marchi@polymtl.ca>
1232
1233         * infrun.c (displaced_step_inferior_state) <next>: Remove.
1234
1235 2018-11-19  Tom Tromey  <tom@tromey.com>
1236
1237         * source.c (get_filename_and_charpos): Return void.
1238
1239 2018-11-19  Simon Marchi  <simon.marchi@polymtl.ca>
1240
1241         * skip.c (_initialize_step_skip): Fix "info skip" help.
1242
1243 2018-11-16  Tom Tromey  <tom@tromey.com>
1244
1245         PR rust/23625:
1246         * rust-lang.c (rust_internal_print_type): Handle TYPE_CODE_PTR.
1247
1248 2018-11-19  Simon Marchi  <simon.marchi@ericsson.com>
1249
1250         * infrun.c (displaced_step_inferior_states): Change type to
1251         std::forward_list.
1252         (get_displaced_stepping_state): Adjust.
1253         (displaced_step_in_progress_any_inferior): Adjust.
1254         (add_displaced_stepping_state): Adjust.
1255         (remove_displaced_stepping_state): Adjust.
1256
1257 2018-11-18  Tom Tromey  <tom@tromey.com>
1258
1259         PR build/23814:
1260         * target-delegates.c: Rebuild.
1261         * ia64-linux-nat.c (class ia64_linux_nat_target)
1262         <have_steppable_watchpoint>: Use override.  Return true, not 1.
1263         (ia64_linux_nat_target::can_use_hw_breakpoint): Rename.  Remove
1264         "self" argument.
1265         (ia64_linux_nat_target::low_new_thread): Rename.
1266         (class ia64_linux_nat_target) <read_description>: Don't declare.
1267         * target.h (struct target_ops) <have_steppable_watchpoint>: Return
1268         bool.
1269
1270 2018-11-16  Alan Hayward  <alan.hayward@arm.com>
1271
1272         PR gdb/22736:
1273         * aarch64-tdep.c (aarch64_push_dummy_call): Remove
1274         lang_struct_return code.
1275
1276 2018-11-16  Alan Hayward  <alan.hayward@arm.com>
1277
1278         * aarch64-tdep.c (aarch64_push_dummy_call): Replace arg with
1279         return_method.
1280         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
1281         * amd64-tdep.c (amd64_push_arguments): Likewise.
1282         (amd64_push_dummy_call): Likewise.
1283         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
1284         * arc-tdep.c (arc_push_dummy_call): Likewise.
1285         * arm-tdep.c (arm_push_dummy_call): Likewise.
1286         * avr-tdep.c (avr_push_dummy_call): Likewise.
1287         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1288         * cris-tdep.c (cris_push_dummy_call): Likewise.
1289         * csky-tdep.c (csky_push_dummy_call): Likewise.
1290         * frv-tdep.c (frv_push_dummy_call): Likewise.
1291         * gdbarch.c: Regenerate.
1292         * gdbarch.h: Regenerate.
1293         * gdbarch.sh (gdbarch_push_dummy_call): Replace arg with
1294         return_method.
1295         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1296         * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
1297         (hppa64_push_dummy_call): Likewise.
1298         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1299         * i386-tdep.c (i386_push_dummy_call): Likewise.
1300         * ia64-tdep.c (ia64_push_dummy_call): Likewise.
1301         * infcall.c (call_function_by_hand_dummy): Likewise.
1302         * iq2000-tdep.c (iq2000_push_dummy_call): Likewise.
1303         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1304         * m32c-tdep.c (m32c_push_dummy_call): Likewise.
1305         * m32r-tdep.c (m32r_push_dummy_call): Likewise.
1306         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1307         * m68k-tdep.c (m68k_push_dummy_call): Likewise.
1308         * mep-tdep.c (mep_push_dummy_call): Likewise.
1309         * mips-tdep.c (mips_eabi_push_dummy_call): Likewise.
1310         (mips_n32n64_push_dummy_call): Likewise.
1311         (mips_o32_push_dummy_call): Likewise.
1312         (mips_o64_push_dummy_call): Likewise.
1313         * mn10300-tdep.c (mn10300_push_dummy_call): Likewise.
1314         * msp430-tdep.c (msp430_push_dummy_call): Likewise.
1315         * nds32-tdep.c (nds32_push_dummy_call): Likewise.
1316         * nios2-tdep.c (nios2_push_dummy_call): Likewise.
1317         * or1k-tdep.c (or1k_push_dummy_call): Likewise.
1318         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
1319         (ppc64_sysv_abi_push_dummy_call): Likewise.
1320         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Likewise.
1321         (ppc64_sysv_abi_push_dummy_call): Likewise.
1322         * riscv-tdep.c (riscv_push_dummy_call): Likewise.
1323         * rl78-tdep.c (rl78_push_dummy_call): Likewise.
1324         * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
1325         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
1326         * rx-tdep.c (rx_push_dummy_call): Likewise.
1327         * s390-tdep.c (s390_push_dummy_call): Likewise.
1328         * score-tdep.c (score_push_dummy_call): Likewise.
1329         * sh-tdep.c (sh_push_dummy_call_fpu): Likewise.
1330         (sh_push_dummy_call_nofpu): Likewise.
1331         * sparc-tdep.c (sparc32_store_arguments): Likewise.
1332         (sparc32_push_dummy_call): Likewise.
1333         * sparc64-tdep.c (sparc64_store_arguments): Likewise.
1334         (sparc64_push_dummy_call): Likewise.
1335         * spu-tdep.c (spu_push_dummy_call): Likewise.
1336         * tic6x-tdep.c (tic6x_push_dummy_call): Likewise.
1337         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1338         * v850-tdep.c (v850_push_dummy_call): Likewise.
1339         * vax-tdep.c (vax_push_dummy_call): Likewise.
1340         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1341         * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1342
1343 2018-11-16  Alan Hayward  <alan.hayward@arm.com>
1344
1345         * gdbarch.sh (enum function_call_return_method): Add enum.
1346         * gdbarch.h: Regenerate.
1347         * infcall.c (call_function_by_hand_dummy): Replace vars with enum.
1348
1349 2018-11-15  Joel Brobecker  <brobecker@adacore.com>
1350
1351         * unittests/copy_bitwise-selftests.c: New file.
1352         * utils.c (selftests::bits_to_str, selftests::check_copy_bitwise)
1353         (selftests::copy_bitwise_tests): Delete, moving this code to
1354         unittests/copy_bitwise-selftests.c instead.
1355         (_initialize_utils): Do not register copy_bitwise tests.
1356         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1357         unittests/copy_bitwise-selftests.c.
1358
1359 2018-11-14  Joel Brobecker  <brobecker@adacore.com>
1360
1361         * ada-lang.c (move_bits): Delete. Update all callers to use
1362         copy_bitwise instead.
1363         * dwarf2loc.c (copy_bitwise, bits_to_str::bits_to_str)
1364         (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
1365         Move from here to utils.c.
1366         (_initialize_dwarf2loc): Remove call to register copy_bitwise
1367         selftests.
1368         * utils.h (copy_bitwise): Add declaration.
1369         * utils.c (copy_bitwise, bits_to_str::bits_to_str)
1370         (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
1371         Moved here from dwarf2loc.c.
1372         (_initialize_utils): Register copy_bitwise selftests.
1373
1374 2018-11-14  Jim Wilson  <jimw@sifive.com>
1375
1376         * riscv-tdep.c (struct riscv_arg_info): New field is_unnamed.
1377         (riscv_call_arg_scalar_int): If unnamed arg with twice xlen alignment,
1378         then increment next_regnum if odd.
1379         (riscv_arg_location): New arg is_unnamed.  Set ainfo->is_unnamed.
1380         (riscv_push_dummy_call): New local ftype.  Call check_typedef to set
1381         function type.  Pass new arg to riscv_arg_location based on function
1382         type.
1383         (riscv_return_value): Pass new arg to riscv_arg_location.
1384
1385         * riscv-tdep.c (BIGGEST_ALIGNMENT): New.
1386         (riscv_type_alignment) <TYPE_CODE_ARRAY>: If TYPE_VECTOR, return min
1387         of TYPE_LENGTH and BIGGEST_ALIGNMENT.
1388
1389         * riscv-tdep.c (riscv_call_arg_scalar_int): Use std::min when
1390         setting len.  New local align, set to max of arg align and xlen,
1391         and pass to first riscv_assign_stack_location call.
1392
1393 2018-11-12  Simon Marchi  <simon.marchi@polymtl.ca>
1394
1395         * skip.c (complete_skip_number): New function.
1396         (_initialize_step_skip): Add completers to some skip commands.
1397
1398 2018-11-09  Tom Tromey  <tom@tromey.com>
1399
1400         * remote.c (remote_g_packet_guess_s): Remove typedef and DEF_VEC.
1401         (struct remote_g_packet_data): Derive from allocate_on_obstack.
1402         <guesses>: Now a std::vector.
1403         (remote_g_packet_data_init, register_remote_g_packet_guess):
1404         Update.
1405         (remote_read_description_p): Update.  Return bool.
1406         (remote_target::read_description): Update.
1407         (struct remote_g_packet_guess): Add constructor.
1408
1409 2018-11-09  Tom Tromey  <tom@tromey.com>
1410
1411         * common/scoped_fd.h (class scoped_fd): Add move constructor and
1412         move assignment operator.
1413         * psymtab.c (psymtab_to_fullname): Update.
1414         * source.h (open_source_file): Return scoped_fd.
1415         (find_and_open_source): Likewise.
1416         * source.c (open_source_file): Return scoped_fd.
1417         (get_filename_and_charpos): Update.
1418         (print_source_lines_base): Update.  Use scoped_fd::to_file.
1419         (forward_search_command): Likewise.
1420         (reverse_search_command): Likewise.
1421         (find_and_open_source): Return scoped_fd.
1422         * tui/tui-source.c (tui_set_source_content): Update.  Use
1423         gdb_file_up.
1424
1425 2018-11-09  John Baldwin  <jhb@FreeBSD.org>
1426
1427         * minsyms.c (minimal_symbol_reader::install): Fix unsigned
1428         overflow.
1429
1430 2018-11-09  Hafiz Abid Qadeer  <abidh@codesourcery.com>
1431
1432         * configure: Regenerate.
1433
1434 2018-11-09  Tom de Vries  <tdevries@suse.de>
1435
1436         * symtab.c (symbol_set_names): Call symbol_find_demangled_name
1437         unconditionally, to set the language of the symbol.  Manage freeing
1438         returned pointer using gdb::unique_xmalloc_ptr.
1439
1440 2018-11-08  Tom Tromey  <tom@tromey.com>
1441
1442         * record.c (require_record_target): Upper-case "<TAB>".
1443
1444 2018-11-08  Tom Tromey  <tom@tromey.com>
1445
1446         * python/lib/gdb/command/pretty_printers.py
1447         (InfoPrettyPrinter.invoke): Don't indent "objfile" heading.
1448
1449 2018-11-08  Tom Tromey  <tom@tromey.com>
1450
1451         PR gdb/23555:
1452         PR gdb/23838:
1453         * target.h (target_supports_terminal_ours): Return bool.
1454         * target.c (target_supports_terminal_ours): Handle case where
1455         current_top_target returns nullptr.  Return bool.
1456
1457 2018-11-08  Joel Brobecker  <brobecker@adacore.com>
1458
1459         * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1):
1460         return the correct count for potential HFAs.
1461
1462 2018-11-08  Jan Beulich  <jbeulich@suse.com>
1463
1464         * i387-tdep.c (i387_supply_xsave): Split handling of
1465         X86_XSTATE_ZMM_H and X86_XSTATE_ZMM.
1466         (i387_collect_xsave): Likewise.
1467
1468 2018-11-08  Andrew Burgess  <andrew.burgess@embecosm.com>
1469
1470         * riscv-tdep.c (riscv_insn::decode): Update header comment.
1471         (riscv_frame_this_id): Catch errors thrown while building the
1472         frame cache, leave the frame id as the default, which is the outer
1473         frame id.
1474
1475 2018-11-07  Joel Brobecker  <brobecker@adacore.com>
1476
1477         * ada-lang.c (read_atcb): Only set task_info->called_task if
1478         task_info->state == Entry_Caller_Sleep.
1479         (print_ada_task_info): Do not check task_info->state before
1480         checking task_info->called_task.
1481         (info_task): Likewise.
1482
1483 2018-11-07  Joel Brobecker  <brobecker@adacore.com>
1484
1485         * ada-tasks.c (read_atcb): Clear task_info before computing
1486         the value of each of its fields.
1487
1488 2018-11-07  Andrew Burgess  <andrew.burgess@embecosm.com>
1489
1490         * dwarf2read.c (dwarf2_init_integer_type): Check for name being
1491         NULL before dereferencing it.
1492
1493 2018-11-06  Tom de Vries  <tdevries@suse.de>
1494
1495         * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate
1496         program headers.
1497
1498 2018-11-06  Max Filippov  <jcmvbkbc@gmail.com>
1499
1500         * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux*
1501         so that it applies to uclinux as well.
1502
1503 2018-11-06  Marius Muench  <marius.muench@eurecom.fr>
1504
1505         * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg
1506         when on AAPCS.
1507
1508 2018-11-06  John Baldwin  <jhb@FreeBSD.org>
1509
1510         * riscv-fbsd-nat.c (getregs_supplies): Return true for
1511         RISCV_CSR_SSTATUS_REGNUM.
1512
1513 2018-11-04  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1514
1515         * source.c (open_source_file): Fix leak by transferring the
1516         current s->fullname to the unique_xmalloc_ptr fullname given
1517         to find_and_open_source.
1518
1519 2018-11-04  Tom Tromey  <tom@tromey.com>
1520
1521         * varobj.c (install_default_visualizer): Update.
1522         * python/python-internal.h (gdbpy_get_varobj_pretty_printer):
1523         Return gdbpy_ref.
1524         * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref.
1525         (find_pretty_printer_from_progspace)
1526         (find_pretty_printer_from_gdb, find_pretty_printer)
1527         (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref.
1528         (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer):
1529         Update.
1530
1531 2018-11-04  Tom Tromey  <tom@tromey.com>
1532
1533         * python/python.c (gdbpy_parameter_value): Update.
1534         * python/python-internal.h (python_string_to_unicode)
1535         (python_string_to_target_python_string)
1536         (host_string_to_python_string): Return gdbpy_ref.
1537         * python/py-utils.c (python_string_to_unicode)
1538         (unicode_to_encoded_python_string)
1539         (unicode_to_target_python_string)
1540         (python_string_to_target_string)
1541         (python_string_to_target_python_string): Return gdbpy_ref.
1542         (python_string_to_host_string): Update.
1543         (host_string_to_python_string): Return gdbpy_ref.
1544         * python/py-symtab.c (stpy_get_filename, stpy_get_producer)
1545         (stpy_fullname): Update.
1546         * python/py-progspace.c (pspy_get_filename, pspy_solib_name):
1547         Update.
1548         * python/py-prettyprint.c (print_string_repr): Update.
1549         * python/py-objfile.c (objfpy_get_filename, objfpy_get_username)
1550         (objfpy_get_build_id): Update.
1551         * python/py-breakpoint.c (bppy_get_location)
1552         (bppy_get_expression, bppy_get_condition, bppy_get_commands):
1553         Update.
1554
1555 2018-11-04  Tom Tromey  <tom@tromey.com>
1556
1557         * python/python-internal.h (gdb_py_object_from_longest)
1558         (gdb_py_object_from_ulongest): Return gdbpy_ref.
1559         * python/py-value.c (valpy_int): Update.
1560         * python/py-utils.c (gdb_py_object_from_longest): Return
1561         gdbpy_ref.
1562         (gdb_py_object_from_ulongest): Likewise.
1563         * python/py-type.c (typy_get_alignof): Update.
1564         * python/py-linetable.c (ltpy_get_all_source_lines)
1565         (ltpy_entry_get_line, ltpy_entry_get_pc): Update.
1566         * python/py-block.c (blpy_get_start, blpy_get_end): Update.
1567
1568 2018-11-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1569
1570         * ada-lang.c (_initialize_ada_language): Fix typo.
1571
1572 2018-11-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1573
1574         * language.c (type): Remove.
1575         (_initialize_language): Remove assignment to type.
1576
1577 2018-11-02  Joel Brobecker  <brobecker@adacore.com>
1578
1579         * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files.
1580         * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h".
1581         (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops.
1582         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o.
1583         (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h.
1584         (ALLDEPFILES): Add aarch64-ravenscar-thread.c.
1585         * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o
1586         and aarch64-ravenscar-thread.o.
1587         * NEWS: Add entry documenting Ravenscar tasking support
1588         on AArch64 ELF.
1589
1590 2018-11-02  Matthew Malcomson  <matthew.malcomson@arm.com>
1591
1592         * symtab.c (info_functions_command): Initialize quiet flag.
1593         * stack.c (info_args_command): Likewise.
1594
1595 2018-11-01  Jim Wilson  <jimw@sifive.com>
1596
1597         * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p.
1598         Set if pcptr if unaligned.  Return 2 if unaligned_p true.  Update
1599         debugging messages.
1600
1601 2018-11-01  Joel Brobecker  <brobecker@adacore.com>
1602
1603         * ada-lang.c (ada_watch_location_expression): New function.
1604         (ada_language_defn): Set la_watch_location_expression to
1605         ada_watch_location_expression.
1606
1607 2018-11-01  Joel Brobecker  <brobecker@adacore.com>
1608
1609         * print-utils.c (int_string): Remove unnecessary trailing spaces.
1610
1611 2018-11-01  Joel Brobecker  <brobecker@adacore.com>
1612
1613         * rs6000-tdep.c (skip_prologue): Fix potential negative left
1614         shifting.
1615
1616 2018-11-01  Jerome Guitton  <guitton@adacore.com>
1617             Joel Brobecker  <brobecker@adacore.com>
1618
1619         * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS.
1620         * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS.
1621         * arm-pikeos-tdep.c: New file.
1622         * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM
1623         embedded system.
1624         * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o.
1625
1626 2018-11-01  Simon Marchi  <simon.marchi@ericsson.com>
1627
1628         * common/pathstuff.c (get_standard_temp_dir): New.
1629         * common/pathstuff.h (get_standard_temp_dir): New.
1630         * config.in: Re-generate.
1631         * configure: Re-generate.
1632         * configure.ac: Don't check for mkdtemp.
1633         * gnulib/aclocal-m4-deps.mk: Re-generate.
1634         * gnulib/aclocal.m4: Re-generate.
1635         * gnulib/config.in: Re-generate.
1636         * gnulib/configure: Re-generate.
1637         * gnulib/import/Makefile.am: Re-generate.
1638         * gnulib/import/Makefile.in: Re-generate.
1639         * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1640         * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1641         * gnulib/import/m4/mkdtemp.m4: New file.
1642         * gnulib/import/mkdtemp.c: New file.
1643         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES):
1644         Add mkdtemp module.
1645         * unittests/mkdir-recursive-selftests.c (test): Use
1646         get_standard_temp_dir.
1647         (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP
1648         ifdef.
1649         * compile/compile.c (get_compile_file_tempdir): Likewise.
1650
1651 2018-11-01  Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1652
1653         * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
1654         (SIG_FRAME_LR_OFFSET64): New define.
1655         (SIG_FRAME_FP_OFFSET64): New define.
1656         (aix_sighandle_frame_cache): New Function.
1657         (aix_sighandle_frame_this_id): New Function.
1658         (aix_sighandle_frame_prev_register): New Function.
1659         (aix_sighandle_frame_sniffer): New Function.
1660         (aix_sighandle_frame_unwind): New global variable.
1661         (rs6000_aix_init_osabi): Install new frame unwinder.
1662
1663 2018-10-31  Sergio Durigan Junior  <sergiodj@redhat.com>
1664
1665         PR gdb/23835
1666         * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's
1667         already defined.
1668
1669 2018-10-31  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1670
1671         * ppc-linux-nat.c: Include nat/linux-ptrace.h.
1672
1673 2018-10-31  Andrew Burgess  <andrew.burgess@embecosm.com>
1674
1675         * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field.
1676         (producer_is_icc): New function.
1677         (check_producer): Set producer_is_icc field on dwarf2_cu.
1678         (dwarf2_init_integer_type): New function.
1679         (read_base_type): Call dwarf2_init_integer_type instead of
1680         init_integer_type in all cases.
1681         (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field.
1682         * valprint.c (maybe_negate_by_bytes): Add an assertion that the
1683         LEN is greater than 0.
1684
1685 2018-10-30  Tom Tromey  <tom@tromey.com>
1686
1687         * main.c (captured_main_1): Check return value of bfd_init.
1688
1689 2018-10-29  Sergio Durigan Junior  <sergiodj@redhat.com>
1690
1691         * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete.
1692         Adjust comments.
1693
1694 2018-10-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1695
1696         * procfs.c: Include common/pathstuff.h.
1697
1698 2018-10-28  Andrew Burgess  <andrew.burgess@embecosm.com>
1699
1700         * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
1701         Add missing braces.  No functional change.
1702
1703 2018-10-27  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1704
1705         * macrocmd.c (info_macro_command): Use report_unrecognized_option_error
1706         to report a bad option and fix indentation.
1707         * demangle.c (demangle_command): Use report_unrecognized_option_error
1708         to report a bad option and correctly report the bad option.
1709
1710 2018-10-27  Tom Tromey  <tom@tromey.com>
1711
1712         PR cli/23364:
1713         * darwin-nat.c (copied_shell): New global.
1714         (may_have_sip): Rename from should_disable_startup_with_shell.
1715         (copy_shell_to_cache, maybe_cache_shell): New functions.
1716         (darwin_nat_target::create_inferior): Update.  Use
1717         copied_shell.
1718
1719 2018-10-27  Tom Tromey  <tom@tromey.com>
1720
1721         * unittests/scoped_fd-selftests.c (test_to_file): New function.
1722         (run_tests): Call test_to_file.
1723         * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen
1724         temporary files.
1725         * common/scoped_fd.h (scoped_fd::to_file): New method.
1726
1727 2018-10-27  Tom Tromey  <tom@tromey.com>
1728
1729         * unittests/scoped_mmap-selftests.c (test_normal): Use
1730         gdb_mkostemp_cloexec.
1731         * unittests/scoped_fd-selftests.c (test_destroy, test_release):
1732         Use gdb_mkostemp_cloexec.
1733         * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
1734         gnulib/config.in, gnulib/configure,
1735         gnulib/import/Makefile.am, gnulib/import/Makefile.in,
1736         gnulib/import/m4/gnulib-cache.m4,
1737         gnulib/import/m4/gnulib-comp.m4: Update.
1738         * gnulib/import/m4/mkostemp.m4: New file.
1739         * gnulib/import/m4/mkstemp.m4: Remove.
1740         * gnulib/import/mkostemp.c: New file.
1741         * gnulib/import/mkstemp.m4: Remove.
1742         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
1743         mkstemp, add mkostemp.  Apply new patch.
1744         * gnulib/import/stdlib.in.h: Apply patch.
1745         * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
1746         New file.
1747         * dwarf-index-write.c (write_psymtabs_to_index): Use
1748         gdb_mkostemp_cloexec.
1749         * common/filestuff.h (gdb_mkostemp_cloexec): New function.
1750
1751 2018-10-27  Tom Tromey  <tom@tromey.com>
1752
1753         * unittests/mkdir-recursive-selftests.c: New file.
1754         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1755         unittests/mkdir-recursive-selftests.c.
1756         * dwarf-index-cache.c (mkdir_recursive): Move to
1757         common/filestuff.c.
1758         (index_cache::store): Check return value of mkdir_recursive.
1759         (create_dir_and_check, test_mkdir_recursive): Move to new file.
1760         (_initialize_index_cache): Don't register test.
1761         * common/filestuff.h (mkdir_recursive): Declare.
1762         * common/filestuff.c (mkdir_recursive): Move from
1763         dwarf-index-cache.c.  Return bool.
1764
1765 2018-10-27  Tom Tromey  <tom@tromey.com>
1766
1767         * dwarf-index-write.c (write_psymtabs_to_index): Move
1768         make_temp_filename to common/pathstuff.c.
1769         * common/pathstuff.h (make_temp_filename): Declare.
1770         * common/pathstuff.c (make_temp_filename): New function, moved
1771         from dwarf-index-write.c.
1772
1773 2018-10-27  Tom Tromey  <tom@tromey.com>
1774
1775         * procfs.c (procfs_target::create_inferior): Use get_shell.
1776         * cli/cli-cmds.c (shell_escape): Use get_shell.
1777         * windows-nat.c (windows_nat_target::create_inferior): Use
1778         get_shell.
1779         * common/pathstuff.c (get_shell): New function.
1780         * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
1781         (fork_inferior): Use get_shell.
1782         * common/pathstuff.h (get_shell): Declare.
1783
1784 2018-10-27  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1785
1786         * NEWS: Mention changes to 'info [args|functions|locals|variables]'
1787
1788 2018-10-27  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1789
1790         * stack.c (print_variable_and_value_data): Add preg and treg.
1791         (print_frame_local_vars): Add quiet, regexp and t_regexp arguments,
1792         and update callers.
1793         (print_frame_arg_vars): Likewise.
1794         (prepare_reg): New function.
1795         (info_locals_command): Extract info print args and use them.
1796         (info_args_command): Likewise.
1797         (_initialize_stack): Modify on-line help.
1798         * symtab.c (treg_matches_sym_type_name): New function.
1799         (search_symbols): New arg t_regexp.
1800         (symtab_symbol_info): New args quiet, regexp, t_regexp.
1801         (info_variables_command): Extract info print args and use them.
1802         (info_functions_command): Likewise.
1803         (info_types_command): Update call to symtab_symbol_info.
1804         (_initialize_symtab): Modify on-line help.
1805         * symtab.h (treg_matches_sym_type_name): New function.
1806         (search_symbols): New t_regexp arg.
1807
1808 2018-10-27  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1809
1810         * cli-utils.c (extract_arg_maybe_quoted): New function.
1811         (extract_info_print_args): New function.
1812         (info_print_args_help): New function.
1813         (report_unrecognized_option_error): New function.
1814         * cli-utils.h (extract_arg_maybe_quoted): New function.
1815         (extract_info_print_args): New function.
1816         (info_print_args_help): New function.
1817         (report_unrecognized_option_error): New function.
1818
1819 2018-10-26  Tom Tromey  <tom@tromey.com>
1820
1821         * dwarf2read.c (recursively_compute_inclusions): Use std::vector.
1822         (compute_compunit_symtab_includes): Update.
1823         * symtab.h: (symtab_ptr): Remove typedef.  Don't define a VEC.
1824         (compunit_symtab_ptr): Likewise.
1825
1826 2018-10-26  John Baldwin  <jhb@FreeBSD.org>
1827
1828         * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
1829         default_print_auxv_entry for specific tag values.
1830
1831 2018-10-26  John Baldwin  <jhb@FreeBSD.org>
1832
1833         * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2.
1834
1835 2018-10-26  Jim Wilson  <jimw@sifive.com>
1836
1837         * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
1838         (riscv_linux_sigframe_init): Declare.
1839         (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
1840         (riscv_linux_sigframe): New.
1841         (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
1842         (riscv_linux_sigframe_init): Define.
1843         (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
1844
1845         * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment.
1846         (riscv_isa_flen): Likewise.  Drop static.
1847         * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here.
1848         (riscv_isa_flen): Likewise.  Declare.
1849
1850 2018-10-26  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1851             Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1852
1853         * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l)
1854         (tdesc_powerpc_isa207_htm_vsx64l): Declare.
1855         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET)
1856         (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET)
1857         (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET)
1858         (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET)
1859         (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET):
1860         Define.
1861         (struct ppc_linux_features) <htm>: New field.
1862         (ppc_linux_no_features): Add initializer for htm field.
1863         * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1864         new tdescs.
1865         * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR)
1866         (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX)
1867         (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR):
1868         Define if not already defined.
1869         * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l
1870         and rs6000/powerpc-isa207-htm-vsx64l.
1871         (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and
1872         rs6000/powerpc-isa207-htm-vsx64l.xml.
1873         * features/rs6000/power-htm-spr.xml: New file.
1874         * features/rs6000/power-htm-core.xml: New file.
1875         * features/rs6000/power64-htm-core.xml: New file.
1876         * features/rs6000/power-htm-fpu.xml: New file.
1877         * features/rs6000/power-htm-altivec.xml: New file.
1878         * features/rs6000/power-htm-vsx.xml: New file.
1879         * features/rs6000/power-htm-ppr.xml: New file.
1880         * features/rs6000/power-htm-dscr.xml: New file.
1881         * features/rs6000/power-htm-tar.xml: New file.
1882         * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file.
1883         * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file.
1884         * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate.
1885         * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate.
1886         * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate.
1887         * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate.
1888         * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1889         fetch_regset with HTM regsets.
1890         (store_register, store_ppc_registers): Call store_regset with HTM
1891         regsets.
1892         (ppc_linux_nat_target::read_description): Set htm field in the
1893         features struct if needed.
1894         * ppc-linux-tdep.c: Include
1895         features/rs6000/powerpc-isa207-htm-vsx32l.c and
1896         features/rs6000/powerpc-isa207-htm-vsx64l.c.
1897         (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr)
1898         (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx)
1899         (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr)
1900         (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals.
1901         (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset)
1902         (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset)
1903         (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset)
1904         (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset)
1905         (ppc32_linux_cpprregset, ppc32_linux_cdscrregset)
1906         (ppc32_linux_ctarregset): New globals.
1907         (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions.
1908         (ppc_linux_collect_core_cpgrregset): New function.
1909         (ppc_linux_iterate_over_regset_sections): Call back with the htm
1910         regsets.
1911         (ppc_linux_core_read_description): Check if the tm spr section is
1912         present and set htm in the features struct.
1913         (_initialize_ppc_linux_tdep): Call
1914         initialize_tdesc_powerpc_isa207_htm_vsx32l and
1915         initialize_tdesc_powerpc_isa207_htm_vsx64l.
1916         * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset):
1917         Declare.
1918         (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset)
1919         (ppc32_linux_cvsxregset, ppc32_linux_cpprregset)
1920         (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare.
1921         * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>:
1922         New fields.
1923         <have_htm_fpu, have_htm_altivec, have_htm_vsx>:
1924         Likewise.
1925         <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise.
1926         <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise.
1927         (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>:
1928         New enum fields.
1929         <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise.
1930         <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise.
1931         <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise.
1932         <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise.
1933         <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise.
1934         <PPC_CTAR_REGNUM>: Likewise.
1935         (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM)
1936         (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define.
1937         * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG)
1938         (IS_CEFP_PSEUDOREG): Define.
1939         (rs6000_register_name): Hide the upper halves of checkpointed VSX
1940         registers.  Return names for the checkpointed DFP, VSX, and EFP
1941         pseudo registers.
1942         (rs6000_pseudo_register_type): Remove initial assert and raise an
1943         internal error in the else clause instead.  Return types for the
1944         checkpointed DFP, VSX, and EFP pseudo registers.
1945         (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle
1946         checkpointed DFP pseudo registers.
1947         (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle
1948         checkpointed VSX pseudo registers.
1949         (efp_pseudo_register_read, efp_pseudo_register_write): Rename
1950         from efpr_pseudo_register_read and
1951         efpr_pseudo_register_write.  Handle checkpointed EFP pseudo
1952         registers.
1953         (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
1954         Handle checkpointed DFP, VSX, and EFP registers.
1955         (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect)
1956         (efp_ax_pseudo_register_collect): New functions.
1957         (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo
1958         register logic to new functions.  Handle checkpointed DFP, VSX,
1959         and EFP pseudo registers.
1960         (rs6000_gdbarch_init): Look for and validate the htm features.
1961         Include checkpointed DFP, VSX and EFP pseudo-registers.
1962         * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and
1963         HTM registers.
1964
1965 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1966
1967         * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but
1968         without altivec or fpu.
1969
1970 2018-10-26  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1971             Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1972
1973         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET)
1974         (PPC_LINUX_SIZEOF_PMUREGSET): Declare.
1975         * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU):
1976         Define if not already defined.
1977         * features/rs6000/power-ebb.xml: New file.
1978         * features/rs6000/power-linux-pmu.xml: New file.
1979         * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu
1980         features.
1981         * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise.
1982         * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate.
1983         * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate.
1984         * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate.
1985         * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate.
1986         * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1987         fetch_regset with ebb and pmu regsets.
1988         (store_register, store_ppc_registers): Call store_regset with ebb
1989         and pmu regsets.
1990         (ppc_linux_nat_target::read_description): Set isa207 field in the
1991         features struct if ebb and pmu are avaiable.
1992         * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu)
1993         (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals.
1994         (ppc_linux_iterate_over_regset_sections): Call back with the ebb
1995         and pmu regsets.
1996         (ppc_linux_core_read_description): Check if the pmu section is
1997         present and set isa207 in the features struct.
1998         * ppc-linux-tdep.h (ppc32_linux_ebbregset)
1999         (ppc32_linux_pmuregset): Declare.
2000         * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field.
2001         <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields.
2002         <ppc_sier_regnum>: New field.
2003         (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>:
2004         New enum values.
2005         <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum
2006         values.
2007         <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values.
2008         (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define.
2009         * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the
2010         ebb and pmu features.
2011
2012 2018-10-26  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
2013             Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
2014
2015         * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l)
2016         (tdesc_powerpc_isa207_vsx64l): Declare.
2017         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define.
2018         (struct ppc_linux_features) <isa207>: New field.
2019         (ppc_linux_no_features): Add initializer for isa207 field.
2020         * arch/ppc-linux-common.c (ppc_linux_match_description): Return
2021         new tdescs.
2022         * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR)
2023         (NT_PPC_TAR): Define if not already defined.
2024         * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and
2025         rs6000/powerpc-isa207-vsx64l.
2026         (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and
2027         rs6000/powerpc-isa207-vsx64l.xml.
2028         * features/rs6000/power-tar.xml: New file.
2029         * features/rs6000/powerpc-isa207-vsx32l.xml: New file.
2030         * features/rs6000/powerpc-isa207-vsx64l.xml: New file.
2031         * features/rs6000/powerpc-isa207-vsx32l.c: Generate.
2032         * features/rs6000/powerpc-isa207-vsx64l.c: Generate.
2033         * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate.
2034         * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate.
2035         * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
2036         fetch_regset with the TAR regset.
2037         (store_register, store_ppc_registers): Call store_regset with the
2038         TAR regset.
2039         (ppc_linux_nat_target::read_description): Set isa207 field in the
2040         features struct if needed.
2041         * ppc-linux-tdep.c: Include
2042         features/rs6000/powerpc-isa207-vsx32l.c and
2043         features/rs6000/powerpc-isa207-vsx64l.c.
2044         (ppc32_regmap_tar, ppc32_linux_tarregset): New globals.
2045         (ppc_linux_iterate_over_regset_sections): Call back with the tar
2046         regset.
2047         (ppc_linux_core_read_description): Check if the tar section is
2048         present and set isa207 in the features struct.
2049         (_initialize_ppc_linux_tdep): Call
2050         initialize_tdesc_powerpc_isa207_vsx32l and
2051         initialize_tdesc_powerpc_isa207_vsx64l.
2052         * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare.
2053         * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field.
2054         (enum) <PPC_TAR_REGNUM>: New enum value.
2055         * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar
2056         feature.
2057         (ppc_process_record_op31): Record changes to TAR.
2058
2059 2018-10-26  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
2060             Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
2061
2062         * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l)
2063         (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare.
2064         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET)
2065         (PPC_LINUX_SIZEOF_DSCRREGSET): Define.
2066         (struct ppc_linux_features) <ppr_dscr>: New field.
2067         (ppc_linux_no_features): Add initializer for ppr_dscr field.
2068         * arch/ppc-linux-common.c (ppc_linux_match_description): Return
2069         new tdescs.
2070         * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR):
2071         Define if not already defined.
2072         * features/Makefile (WHICH): Add
2073         rs6000/powerpc-isa205-ppr-dscr-vsx32l and
2074         rs6000/powerpc-isa205-ppr-dscr-vsx64l.
2075         (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
2076         rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml.
2077         * features/rs6000/power-dscr.xml: New file.
2078         * features/rs6000/power-ppr.xml: New file.
2079         * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file.
2080         * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file.
2081         * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate.
2082         * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate.
2083         * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate.
2084         * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate.
2085         * ppc-linux-nat.c: Include <sys/uio.h>.
2086         (fetch_regset, store_regset, check_regset): New functions.
2087         (fetch_register, fetch_ppc_registers): Call fetch_regset with
2088         DSCR and PPR regsets.
2089         (store_register, store_ppc_registers): Call store_regset with
2090         DSCR and PPR regsets.
2091         (ppc_linux_get_hwcap2): New function.
2092         (ppc_linux_nat_target::read_description): Call
2093         ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the
2094         features struct if needed.
2095         * ppc-linux-tdep.c: Include
2096         features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and
2097         features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c.
2098         (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset)
2099         (ppc32_linux_dscrregset): New globals.
2100         (ppc_linux_iterate_over_regset_sections): Call back with the ppr
2101         and dscr regsets.
2102         (ppc_linux_core_read_description): Check if the ppr and dscr
2103         sections are present and set ppr_dscr in the features struct.
2104         (_initialize_ppc_linux_tdep): Call
2105         initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and
2106         initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l.
2107         * ppc-linux-tdep.h (ppc32_linux_pprregset)
2108         (ppc32_linux_dscrregset): Declare.
2109         * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field.
2110         <ppc_dscr_regnum>: New field.
2111         (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values.
2112         * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr
2113         and dscr features.
2114         (ppc_process_record_op31): Record changes to PPR and DSCR.
2115
2116 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
2117
2118         * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
2119         second initializer line for the have_* variables.  Initialize
2120         have_fpu to 0 instead of 1.
2121
2122 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
2123
2124         * arch/ppc-linux-common.c (ppc_linux_match_description):
2125         Parenthesize tdesc assignements and indent them properly.
2126
2127 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
2128
2129         * ppc-linux-nat.c (fetch_register): Change if statement to else
2130         if.
2131         (store_register): Likewise.
2132
2133 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
2134
2135         * rs6000-tdep.c: Remove reggroups.h include.
2136         (rs6000_pseudo_register_reggroup_p): Remove.
2137         (rs6000_gdbarch_init): Remove call to
2138         set_tdesc_pseudo_register_reggroup_p.
2139
2140 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
2141
2142         * reggroups.c (default_register_reggroup_p): Return true for
2143         decfloat registers and float_reggroup.
2144
2145 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
2146
2147         * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove.
2148         (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace
2149         ppc_linux_collect_vrregset by regcache_collect_regset.
2150
2151 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
2152
2153         * linux-tdep.c (linux_collect_regset_section_cb): Use
2154         std::vector<gdb_byte> instead of char * and malloc for buf.
2155         Remove xfree.
2156
2157 2018-10-26  Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
2158
2159         * xcoffread.c (read_xcoff_symtab): Pass deduced language to
2160         symtab_start instead of always using language_unknown.
2161
2162 2018-10-26  Andrew Burgess  <andrew.burgess@embecosm.com>
2163
2164         * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove
2165         READ_P parameter, catch and ignore register access errors from
2166         either the old or new MISA location.
2167         (riscv_has_feature): Update call to riscv_read_misa_reg.
2168
2169 2018-10-25  Andrew Burgess  <andrew.burgess@embecosm.com>
2170
2171         * python/py-function.c (convert_values_to_python): Return
2172         gdbpy_ref<>.  Add header comment.
2173         (fnpy_call): Adjust.
2174
2175 2018-10-25  Andrew Burgess  <andrew.burgess@embecosm.com>
2176
2177         * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
2178         (cmdpy_completer_handle_brkchars): Adjust.
2179         (cmdpy_completer): Adjust.
2180
2181 2018-10-25  Andrew Burgess  <andrew.burgess@embecosm.com>
2182
2183         * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
2184         Pass correct regnum to raw_supply_zeroed.
2185
2186 2018-10-23  Hafiz Abid Qadeer  <abidh@codesourcery.com>
2187
2188         * regcache.c (cooked_read_test): Add CSKY to the list of
2189         architectures with a save_reggroup
2190
2191 2018-10-23  Simon Marchi  <simon.marchi@polymtl.ca>
2192
2193         PR gdb/23368
2194         * infrun.c (follow_exec): In the follow_exec_mode_new case,
2195         transfer terminal state from old new new inferior.
2196         * terminal.h (swap_terminal_info): New function.
2197         * inflow.c (swap_terminal_info): New function.
2198
2199 2018-10-23  Tom Tromey  <tom@tromey.com>
2200
2201         * record-btrace.c (get_thread_current_frame_id): Rename from
2202         get_thread_current_frame.  Return a frame_id.
2203         (record_btrace_start_replaying): Update.
2204
2205 2018-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
2206
2207         * riscv-tdep.c (riscv_register_name): Use the user-friendly names
2208         for CSRs.
2209
2210 2018-10-23  Joel Brobecker  <brobecker@adacore.com>
2211
2212         * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
2213         have_nonsteppable_watchpoint attribute to 1.
2214
2215 2018-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
2216
2217         * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
2218         register names.
2219         (struct register_alias): Rename to...
2220         (struct riscv_register_alias): ...this, and update comment.
2221         (riscv_register_aliases): Update type, and alias names.  Remove
2222         CSR names from this list.
2223         (riscv_register_name): Use riscv_gdb_reg_names for int and float
2224         register names.  Add an extra assertion.
2225         (riscv_is_regnum_a_named_csr): New function.
2226         (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
2227
2228 2018-10-23  John Darrington  <john@darrington.wattle.id.au>
2229
2230         * configure.tgt: Add configuration for s12z.
2231         * s12z-tdep.c:  New file.
2232         * NEWS: Mention new target.
2233
2234 2018-10-22  Jim Wilson  <jimw@sifive.com>
2235
2236         * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
2237         FP reg smaller than FP reg size, and fill with -1 instead of 0.
2238
2239         * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
2240         (riscv_register_type): Use them.
2241         (riscv_print_one_register_info): Handle union of floats same as float.
2242         * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
2243         riscv_fpreg_q_type fields.
2244
2245 2018-10-21  Simon Marchi  <simon.marchi@ericsson.com>
2246
2247         * gdbarch.sh (gdbarch_num_cooked_regs): New.
2248         * gdbarch.h: Re-generate.
2249         * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
2250         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2251         * eval.c (evaluate_subexp_standard): Likewise.
2252         * findvar.c (value_of_register): Likewise.
2253         (value_of_register_lazy): Likewise.
2254         (address_from_register): Likewise.
2255         * frame.c (get_frame_register_bytes): Likewise.
2256         * gdbarch-selftests.c (register_to_value_test): Likewise.
2257         * h8300-tdep.c (h8300_register_type): Likewise.
2258         * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
2259         (i386_svr4_reg_to_regnum): Likewise.
2260         * infcmd.c (default_print_registers_info): Likewise.
2261         (registers_info): Likewise.
2262         (print_vector_info): Likewise.
2263         (default_print_float_info): Likewise.
2264         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2265         * mdebugread.c (mdebug_reg_to_regnum): Likewise.
2266         * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
2267         (mi_cmd_data_list_changed_registers): Likewise.
2268         (mi_cmd_data_list_register_values): Likewise.
2269         (mi_cmd_data_write_register_values): Likewise.
2270         (mi_cmd_trace_frame_collected): Likewise.
2271         * mips-tdep.c (print_gp_register_row): Likewise.
2272         (mips_print_registers_info): Likewise.
2273         * nds32-tdep.c (nds32_gdbarch_init): Likewise.
2274         * regcache.c (init_regcache_descr): Likewise.
2275         (register_size): Likewise.
2276         (register_dump::dump): Likewise.
2277         (cooked_read_test): Likewise.
2278         (cooked_write_test): Likewise.
2279         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
2280         (rs6000_gdbarch_init): Likewise.
2281         * stabsread.c (stab_reg_to_regnum): Likewise.
2282         * stack.c (info_frame_command): Likewise.
2283         * target-descriptions.c (tdesc_register_name): Likewise.
2284         * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
2285         * tui/tui-regs.c (tui_show_register_group): Likewise.
2286         * user-regs.c (user_reg_map_name_to_regnum): Likewise.
2287         (user_reg_map_regnum_to_name): Likewise.
2288         (value_of_user_reg): Likewise.
2289         (maintenance_print_user_registers): Likewise.
2290         * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
2291         (xtensa_register_name): Likewise.
2292         (xtensa_register_type): Likewise.
2293         (xtensa_reg_to_regnum): Likewise.
2294         (xtensa_pseudo_register_read): Likewise.
2295         (xtensa_pseudo_register_write): Likewise.
2296
2297 2018-10-21  Simon Marchi  <simon.marchi@polymtl.ca>
2298
2299         * amd64-tdep.c (amd64_pseudo_register_read_value): Use
2300         correctly-sized buffer with raw_read.
2301         (amd64_pseudo_register_write): Use correctly-sized buffer for
2302         raw_read/raw_write.
2303
2304 2018-10-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2305
2306         * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
2307         in add_prefix_cmd of set print type.
2308
2309 2018-10-19  Tom Tromey  <tom@tromey.com>
2310
2311         PR tui/18388:
2312         * NEWS: Mention tabset deprecation.
2313         * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
2314         (update_tab_width): New function.
2315         (tui_set_tab_width, tui_show_tab_width): New functions.
2316         (tui_set_tab_width_command): Use update_tab_width.
2317         (_initialize_tui_win): Move to end of file.  Deprecate "tabset".
2318         Add new "set tui tab-width" command.
2319         * tui/tui-source.c (tui_set_source_content): Update.
2320         * tui/tui-disasm.c (tui_set_disassem_content): Update.
2321         * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
2322         Don't declare.
2323         (tui_tab_width): Declare.
2324         * tui/tui-data.c (default_tab_len, tui_default_tab_len)
2325         (tui_set_default_tab_len): Remove.
2326
2327 2018-10-19  Tom Tromey  <tom@tromey.com>
2328
2329         * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
2330         (key_is_backspace, tui_getc): Don't declare.
2331         * tui/tui-io.c (key_is_start_sequence): Now static.
2332         (key_is_end_sequence, key_is_backspace): Remove.
2333         (tui_getc): Now static.
2334
2335 2018-10-19  Tom Tromey  <tom@tromey.com>
2336
2337         * symfile.c (reread_symbols): Clear "static_links".
2338
2339 2018-10-19  Alan Hayward  <alan.hayward@arm.com>
2340
2341         * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
2342         define.
2343         (aarch64_linux_sigframe_init): Extra boundary checks.
2344
2345 2018-10-19  Andreas Arnez  <arnez@linux.ibm.com>
2346
2347         * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
2348         the possibly non-existent tdesc type 'vec128', but the type of raw
2349         register v16 instead.
2350
2351 2018-10-19  Gary Benson <gbenson@redhat.com>
2352
2353         * cli/cli-interp.c (cli_interp::~cli_interp): New function.
2354
2355 2018-10-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2356
2357         PR cli/23785
2358         * cli/cli-dump.c (restore_binary_file): Check if "file" is
2359         NULL.
2360
2361 2018-10-17  Paul Koning  <paul_koning@dell.com>
2362
2363         * charset.c (convert_between_encodings): Fix unsigned overflow.
2364
2365 2018-10-17  John Baldwin  <jhb@FreeBSD.org>
2366
2367         * fbsd-nat.c (fbsd_nat_target::info_proc) Use
2368         fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
2369         * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
2370         (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
2371         New functions.
2372         (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
2373         and fbsd_info_proc_mappings_header.
2374         * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
2375         (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
2376         New.
2377
2378 2018-10-17  Joel Brobecker  <brobecker@adacore.com>
2379
2380         * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
2381         Solaris Maintainer.
2382
2383 2018-10-15  Tom Tromey  <tom@tromey.com>
2384
2385         * tui/tui.c (strcat_to_buf): Remove casts.
2386         * tui/tui-winsource.c (tui_show_source_line)
2387         (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
2388         * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
2389         * tui/tui-windata.c (tui_first_data_item_displayed)
2390         (tui_delete_data_content_windows, tui_erase_data_content)
2391         (tui_display_all_data, tui_display_data_from)
2392         (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
2393         * tui/tui-win.c (tui_set_win_height)
2394         (make_invisible_and_set_new_height, parse_scrolling_args): Remove
2395         casts.
2396         * tui/tui-win.c (tui_resize_all): Remove casts.
2397         (tui_scroll_backward_command, tui_set_focus)
2398         (tui_set_tab_width_command): Likewise.
2399         * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
2400         * tui/tui-regs.c (tui_show_register_group): Remove cast.
2401         * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
2402         * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
2403         * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
2404         Remove casts.
2405
2406 2018-10-15  Simon Marchi  <simon.marchi@ericsson.com>
2407
2408         * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
2409         AArch64/ARM maintainer.
2410
2411 2018-10-11  Gary Benson <gbenson@redhat.com>
2412
2413         * interps.h (interp::m_name): Make private and mutable.
2414         * interps.c (interp::~interp): Free m_name.
2415
2416 2018-10-10  Sergio Durigan Junior  <sergiodj@redhat.com>
2417             Simon Marchi <simark@simark.ca>
2418
2419         * README (`configure' options): Add documentation for new
2420         "--enable-unit-tests" option.
2421         * acinclude.m4: Include "selftest.m4".
2422         * configure: Regenerate.
2423         * configure.ac: Use "GDB_AC_SELFTEST".
2424         * maint.c (maintenance_selftest): Update message informing
2425         that selftests have been disabled.
2426         (maintenance_info_selftests): Likewise.
2427         * selftest.m4: New file.
2428
2429 2018-10-10  Gary Benson <gbenson@redhat.com>
2430
2431         * remote.c (remote_target::remote_send_printf): Add
2432         missing va_end found by Coverity.
2433
2434 2018-10-10  Markus Metzger  <markus.t.metzger@intel.com>
2435
2436         * btrace.c (ftrace_update_function): Add indirect jump heuristic.
2437
2438 2018-10-09  Tom Tromey  <tom@tromey.com>
2439
2440         * configure: Rebuild.
2441         * sanitize.m4 (AM_GDB_UBSAN): Default to no.
2442         * NEWS: Update --enable-ubsan documentation.
2443
2444 2018-10-09  Gary Benson <gbenson@redhat.com>
2445
2446         * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
2447         found by Coverity.
2448
2449 2018-10-08  Tom Tromey  <tom@tromey.com>
2450
2451         * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
2452         variable.
2453         (riscv_fbsd_init_abi): Likewise.
2454
2455 2018-10-08  Weimin Pan  <weimin.pan@oracle.com>
2456         * valops.c (value_struct_elt_for_reference): Rename local variable
2457         to work around the shadowing a previous local warning.
2458
2459 2018-10-08  John Baldwin  <jhb@FreeBSD.org>
2460
2461         * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
2462         * NEWS: Mention new FreeBSD/riscv native configuration.
2463         * configure.host: Add riscv*-*-freebsd*.
2464         * configure.nat: Likewise.
2465         * riscv-fbsd-nat.c: New file.
2466
2467 2018-10-08  John Baldwin  <jhb@FreeBSD.org>
2468
2469         * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
2470         (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
2471         (ALLDEPFILES): Add riscv-fbsd-tdep.c.
2472         * NEWS: Mention new FreeBSD/riscv target.
2473         * configure.tgt: Add riscv*-*-freebsd*.
2474         * riscv-fbsd-tdep.c: New file.
2475         * riscv-fbsd-tdep.h: New file.
2476
2477 2018-10-08  John Baldwin  <jhb@FreeBSD.org>
2478
2479         * regcache.h (struct regcache_map_entry): Note that this type can
2480         be used with traditional frame caches.
2481         * trad-frame.c (trad_frame_set_reg_regmap): New.
2482         * trad-frame.h (trad_frame_set_reg_regmap): New.
2483
2484 2018-10-08  Weimin Pan  <weimin.pan@oracle.com>
2485
2486         PR c++/16841
2487         * valops.c (get_virtual_base_offset): New function.
2488         (value_struct_elt_for_reference): Use it to get virtual base offset
2489         and add it in calculating class member address.
2490
2491 2018-10-08  John Darrington  <john@darrington.wattle.id.au>
2492
2493         * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
2494         (check_producer): Check if the producer is codewarrior.
2495         (producer_is_codewarrior): New function.
2496         (lnp_state_machine::record_line): Ignore is_stmt flag for records
2497         produced by codewarrior.
2498         (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
2499
2500 2018-10-06  Tom Tromey  <tom@tromey.com>
2501
2502         PR python/19399:
2503         * python/py-inferior.c: Add "architecture" entry.
2504         (infpy_architecture): New function.
2505
2506 2018-10-06  Tom Tromey  <tom@tromey.com>
2507
2508         PR python/21765:
2509         * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
2510         SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
2511         SYMBOL_TYPES_DOMAIN.  Define SYMBOL_MODULE_DOMAIN,
2512         SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
2513
2514 2018-10-06  Tom Tromey  <tom@tromey.com>
2515
2516         PR build/17077:
2517         * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
2518         * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
2519         microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
2520         #include.
2521
2522 2018-10-06  Tom Tromey  <tom@tromey.com>
2523
2524         * python/py-breakpoint.c (bppy_get_location): Handle a
2525         bp_breakpoint without a location.
2526
2527 2018-10-06  Tom Tromey  <tom@tromey.com>
2528
2529         * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
2530         (_RegEx): Reformat help text.
2531         * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
2532         (AnyCallerIs, AnyCallerMatches): Reformat help text.
2533         * python/lib/gdb/function/as_string.py (_AsString): Reformat help
2534         text.
2535         * python/lib/gdb/command/xmethods.py (InfoXMethod)
2536         (EnableXMethod, DisableXMethod): Remove help indentation.
2537         Capitalize meta-syntactic variables.
2538         * python/lib/gdb/command/unwinders.py (InfoUnwinder)
2539         (EnableUnwinder, DisableUnwinder): Remove help indentation.
2540         Capitalize meta-syntactic variables.
2541         * python/lib/gdb/command/explore.py (ExploreCommand)
2542         (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
2543         * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
2544         (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
2545         * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
2546         Remove help indentation.
2547         (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
2548         * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
2549         (DisableFrameFilter, SetFrameFilterPriority)
2550         (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
2551
2552 2018-10-06  Tom Tromey  <tom@tromey.com>
2553
2554         PR tui/28819:
2555         * tui/tui-io.c (gdb_wgetch): New function.
2556         (tui_mld_getc, tui_getc): Use it.
2557
2558 2018-10-05  Tom Tromey  <tom@tromey.com>
2559
2560         * sol-thread.c (sol_thread_target::wait): Rename inner
2561         "save_ptid".
2562
2563 2018-10-04  Tom Tromey  <tom@tromey.com>
2564
2565         * configure: Rebuild.
2566         * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
2567
2568 2018-10-04  Tom Tromey  <tom@tromey.com>
2569
2570         * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
2571         declaration of "block".
2572
2573 2018-10-04  Tom Tromey  <tom@tromey.com>
2574
2575         * common/filestuff.c (fdwalk): Remove inner declaration of
2576         "result".
2577
2578 2018-10-04  Tom Tromey  <tom@tromey.com>
2579
2580         * msp430-tdep.c (msp430_push_dummy_call): Rename inner
2581         "structs_addr" and hoist declaration.
2582
2583 2018-10-04  Tom Tromey  <tom@tromey.com>
2584
2585         * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
2586         variable "size".
2587
2588 2018-10-04  Tom Tromey  <tom@tromey.com>
2589
2590         * mdebugread.c (parse_partial_symbols): Use std::string.
2591
2592 2018-10-04  Tom Tromey  <tom@tromey.com>
2593
2594         * ctf.c (SET_ARRAY_FIELD): Rename "u32".
2595         * p-valprint.c (pascal_val_print): Split inner "i" variable.
2596         * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
2597         header.
2598         * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
2599         more inner scope.
2600         * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
2601         * varobj.c (varobj_update): Rename inner "newobj",
2602         "type_changed".
2603         * valprint.c (generic_emit_char): Rename inner "buf".
2604         * valops.c (find_overload_match): Rename inner "temp".
2605         (value_struct_elt_for_reference): Declare "v" in more inner
2606         scope.
2607         * v850-tdep.c (v850_push_dummy_call): Rename "len".
2608         * unittests/array-view-selftests.c (run_tests): Rename inner
2609         "vec".
2610         * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
2611         header.
2612         * tracepoint.c (merge_uploaded_trace_state_variables): Declare
2613         "tsv" in more inner scope.
2614         (print_one_static_tracepoint_marker): Rename inner
2615         "tuple_emitter".
2616         * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
2617         (tic6x_push_dummy_call): Don't redeclare "addr".
2618         * target-float.c: Declare "dto" lower.
2619         * symtab.c (lookup_local_symbol): Rename inner "sym".
2620         (find_pc_sect_line): Rename inner "pc".
2621         * stack.c (print_frame): Don't redeclare "gdbarch".
2622         (return_command): Rename inner "gdbarch".
2623         * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
2624         "sp".
2625         * rust-lang.c (rust_internal_print_type): Declare "i" in loop
2626         header.
2627         * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
2628         * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
2629         scope.
2630         * remote.c (remote_target::update_thread_list): Don't redeclare
2631         "tp".
2632         (remote_target::process_initial_stop_replies): Rename inner
2633         "thread".
2634         (remote_target::remote_parse_stop_reply): Don't redeclare "p".
2635         (remote_target::wait_as): Don't redeclare "stop_reply".
2636         (remote_target::get_thread_local_address): Rename inner
2637         "result".
2638         (remote_target::get_tib_address): Likewise.
2639
2640         * regcache.c (cooked_read_test): Rename "regnum".
2641         * record-btrace.c (cmd_record_btrace_start): Rename inner
2642         "exception".
2643         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
2644         loop header.
2645         * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
2646         header.
2647         (ppu2spu_sniffer): Rename inner "buf".
2648         * parse.c (operator_check_standard): Rename inner "type",
2649         "objfile".
2650         * p-valprint.c (pascal_val_print): Introduce new scope for
2651         "low_bound", "high_bound".
2652         * p-exp.y (yylex): Declare "i" in loop header.
2653         * objfiles.c (objfile_relocate1): Declare "i" in loop header.
2654         Lower declaration of "s".
2655         * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
2656         header.
2657         (nios2_push_dummy_call): Rename "len".
2658         * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
2659         "buf".
2660         (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
2661         (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
2662         (linux_xfer_osdata_modules): Likewise.
2663         * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
2664         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
2665         (mips_o64_push_dummy_call): Likewise.
2666         * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
2667         "op".
2668         * mi/mi-main.c (list_available_thread_groups): Rename inner
2669         "tuple_emitter".
2670         (mi_cmd_data_read_memory): Rename inner "opts".
2671         * mi/mi-cmd-var.c (varobj_update_one): Rename inner
2672         "tuple_emitter".
2673         * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
2674         * mdebugread.c (parse_symbol): Rename inner "b".  Declare "f" in
2675         more inner scope.
2676         (parse_partial_symbols): Rename inner "pst", "p", "name"
2677         * main.c (captured_main_1): Rename inner "i"s.
2678         * machoread.c (macho_symfile_read_all_oso): Don't redeclare
2679         "oso2".
2680         * linux-tdep.c (linux_info_proc): Rename inner "filename".
2681         * linespec.c (linespec_lexer_lex_string): Rename inner "p".
2682         * infrun.c (handle_no_resumed): Don't redeclare "thread".
2683         (handle_signal_stop): Rename inner "gdbarch".
2684         (handle_command): Declare "signum" in loop header.
2685         * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
2686         "status".
2687         (examine_prologue): Rename inner "sol" and "sof".
2688         (ia64_extract_return_value): Rename inner "val".  Declare another
2689         "val" in a more inner scope.
2690         * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
2691         inner scope.
2692         * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
2693         "except".
2694         * findvar.c (default_read_var_value): Don't redeclare "addr".
2695         * f-exp.y (yylex): Declare "i" in loop header.
2696         * eval.c (evaluate_subexp_standard): Don't redeclare "type".
2697         Rename inner "type", "expect_type".
2698         (evaluate_subexp_for_sizeof): Rename inner "pc".
2699         * elfread.c (elf_symfile_read): Rename inner "abfd".
2700         * dwarf2read.c (read_debug_names_from_section): Don't redeclare
2701         "bytes_read".
2702         (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
2703         (add_partial_subprogram): Rename inner "lowpc" and "highpc".
2704         (dwarf_decode_line_header): Rename inner "lh".
2705         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
2706         "offset".  Declare "i" in loop header.
2707         (disassemble_dwarf_expression): Rename inner "addr_size".
2708         * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
2709         inner "result".
2710         (dwarf_expr_context::execute_stack_op): Rename inner "offset".
2711         * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
2712         * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
2713         "inner_list_emitter".
2714         (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
2715         * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
2716         declaration in a block.
2717         * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
2718         * cp-valprint.c (cp_print_value_fields): Don't redeclare
2719         "obstack_final_size".
2720         * cp-support.c (inspect_type): Declare "i" in loop header.
2721         * compile/compile.c (compile_instance::insert_symbol_error):
2722         Rename inner "e".
2723         * common/agent.c (agent_run_command): Remove inner "ret"
2724         declaration.
2725         * coffread.c (coff_symfile_read): Rename inner "name".
2726         (coff_symfile_read): Rename inner "abfd".
2727         * cli/cli-utils.c (get_number_trailer): Rename inner "val".
2728         * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
2729         "high".
2730         * c-exp.y (lex_one_token): Move "len" declaration lower.
2731         * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
2732         "gdbarch".
2733         (create_exception_master_breakpoint): Likewise.  Don't redeclare
2734         "b".
2735         (watch_command_1): Declare "mark" later.
2736         (clear_command): Don't shadow "a" or "b".
2737         (delete_command): Rename inner "b".
2738         (delete_trace_command): Likewise.
2739         * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
2740         "op".
2741         (arm_gdbarch_init): Remove inner "e_flags".
2742         * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
2743         "offset" in inner blocks.
2744
2745 2018-10-04  Simon Marchi  <simon.marchi@ericsson.com>
2746
2747         * dwarf-index-write.c (file_write): Don't write if the vector is
2748         empty.
2749
2750 2018-10-05  Tom de Vries  <tdevries@suse.de>
2751
2752         * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
2753         PyArg_ParseTuple call.
2754
2755 2018-10-05  Tom de Vries  <tdevries@suse.de>
2756
2757         * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
2758         PyArg_ParseTuple call.
2759
2760 2018-10-04  Joel Brobecker  <brobecker@adacore.com>
2761
2762         * psymtab.c (recursively_search_psymtabs): Reformat parameters
2763         to avoid exceeding 80 characters per line limit.
2764
2765 2018-10-04  Tom Tromey  <tom@tromey.com>
2766
2767         * symfile.c (syms_from_objfile_1, finish_new_objfile)
2768         (reread_symbols): Update.
2769         * complaints.h (clear_complaints): Remove argument.
2770         * complaints.c (enum complaint_series): Remove.
2771         (series): Remove global.
2772         (complaint_internal): Update.
2773         (clear_complaints): Remove argument.
2774
2775 2018-10-04  Tom Tromey  <tom@tromey.com>
2776
2777         * symfile.c (symbol_file_add_with_addrs): Do not print "no
2778         debugging symbols" message if there is a separate debug objfile.
2779
2780 2018-10-04  Tom Tromey  <tom@tromey.com>
2781
2782         PR cli/19551:
2783         * symfile.c (symbol_file_add_with_addrs): Update output.
2784         * psymtab.c (require_partial_symbols): Update output.
2785
2786 2018-10-04  Tom Tromey  <tom@tromey.com>
2787
2788         PR cli/22234:
2789         * complaints.c: Emit \n.
2790
2791 2018-10-04  Tom Tromey  <tom@tromey.com>
2792
2793         * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
2794         (separate_debug_file_exists, find_separate_debug_file)
2795         (add_symbol_file_command, reread_symbols, allocate_symtab)
2796         (allocate_compunit_symtab): Use filtered printing, not
2797         unfiltered.
2798         * psymtab.c (require_partial_symbols, dump_psymtab)
2799         (allocate_psymtab): Use filtered printing, not unfiltered.
2800
2801 2018-10-04  Tom Tromey  <tom@tromey.com>
2802
2803         * complaints.c (complaint_internal): Correctly check complaint
2804         count.
2805
2806 2018-10-04  Tom Tromey  <tom@tromey.com>
2807
2808         * complaints.h (struct complaints): Remove declaration.
2809         * complaints.c (clear_complaints): Remove an unused variable.
2810
2811 2018-10-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2812
2813         * MAINTAINERS (Write After Approval): Add self.
2814
2815 2018-10-03  Tom Tromey  <tom@tromey.com>
2816
2817         * guile/scm-value.c (gdbscm_value_to_string): Initialize
2818         "buffer_contents".
2819         * coffread.c (coff_symtab_read): Initialize "newobj".
2820
2821 2018-10-03  Simon Marchi  <simon.marchi@polymtl.ca>
2822
2823         * dwarf2read.c (read_func_scope): Remove struct keyword in
2824         range-based for.
2825
2826 2018-10-03  Tom Tromey  <tom@tromey.com>
2827
2828         * README: Mention --enable-ubsan.
2829         * NEWS: Mention --enable-ubsan.
2830         * acinclude.m4: Include sanitize.m4.
2831         * configure: Rebuild.
2832         * configure.ac: Call AM_GDB_UBSAN.
2833         * sanitize.m4: New file.
2834
2835 2018-10-03  Tom Tromey  <tom@tromey.com>
2836
2837         * expression.h (enum exp_opcode): Use uint8_t as base type.
2838         * expprint.c (op_name): Handle invalid opcodes.
2839
2840 2018-10-03  Tom Tromey  <tom@tromey.com>
2841
2842         * parse.c (prefixify_expression): Add assert.
2843         (parse_exp_in_context_1): Throw exception if the expression is
2844         empty.
2845
2846 2018-10-03  Tom Tromey  <tom@tromey.com>
2847
2848         * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
2849
2850 2018-10-03  Tom Tromey  <tom@tromey.com>
2851
2852         * c-exp.y (parse_number): Work in unsigned.  Remove casts.
2853
2854 2018-10-03  Tom Tromey  <tom@tromey.com>
2855
2856         * dwarf2read.c (read_subrange_type): Make "negative_mask"
2857         unsigned.
2858
2859 2018-10-03  Tom Tromey  <tom@tromey.com>
2860
2861         * findvar.c (extract_integer): Do work in an unsigned type.
2862
2863 2018-10-03  Tom Tromey  <tom@tromey.com>
2864
2865         * common/enum-flags.h (enum_flags::operator~): Add static assert.
2866         * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
2867         base type.
2868         * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
2869         * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
2870         type.
2871         * c-lang.h (enum c_string_type_values): Use unsigned as base
2872         type.
2873         * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
2874
2875 2018-10-03  Tom Tromey  <tom@tromey.com>
2876
2877         * dwarf2-frame.h (dwarf2_frame_state_reg_info)
2878         <~dwarf2_frame_state_reg_info>: Update.
2879         <dwarf2_frame_state_reg_info>: Update.
2880         <alloc_regs>: Add assertion.  Update.
2881         <reg>: Now a std::vector.
2882         <num_regs>: Remove.
2883         <swap>: Update.
2884         * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
2885         (execute_cfa_program_test, dwarf2_frame_cache): Update.
2886
2887 2018-10-03  Tom Tromey  <tom@tromey.com>
2888
2889         * namespace.c (add_using_directive): Don't pass NULL to memcpy.
2890
2891 2018-10-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2892
2893         * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
2894
2895 2018-10-02  Tom Tromey  <tom@tromey.com>
2896
2897         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
2898
2899 2018-10-02  John Darrington  <john@darrington.wattle.id.au>
2900
2901         * NEWS: Mention changed commands.
2902         * ser-uds.c: New file.
2903         * configure.ac (SER_HARDWIRE): Add ser-uds.o.
2904         * configure: Regenerate.
2905         * Makefile.in: Add new file.
2906         * serial.c (serial_open): Check if filename is a socket
2907         and lookup the appropriate interface accordingly.
2908
2909 2018-10-01  Alan Hayward  <alan.hayward@arm.com>
2910
2911         * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
2912         define.
2913         (AARCH64_EXTRA_MAGIC): Likewise.
2914         (AARCH64_FPSIMD_MAGIC): Likewise.
2915         (AARCH64_SVE_MAGIC): Likewise.
2916         (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
2917         (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
2918         (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
2919         (AARCH64_FPSIMD_V0_OFFSET): Likewise.
2920         (AARCH64_FPSIMD_VREG_SIZE): Likewise.
2921         (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
2922         (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
2923         (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
2924         (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
2925         (AARCH64_SVE_CONTEXT_SIZE): Likewise.
2926         (read_aarch64_ctx): Add function.
2927         (aarch64_linux_sigframe_init): Detect FP registers.
2928
2929 2018-10-01  Alan Hayward  <alan.hayward@arm.com>
2930
2931         * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
2932         (AARCH64_D0_REGNUM): Likewise.
2933         (AARCH64_S0_REGNUM): Likewise.
2934         (AARCH64_H0_REGNUM): Likewise.
2935         (AARCH64_B0_REGNUM): Likewise.
2936         (AARCH64_SVE_V0_REGNUM): Likewise.
2937         * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
2938         (AARCH64_D0_REGNUM): Likewise.
2939         (AARCH64_S0_REGNUM): Likewise.
2940         (AARCH64_H0_REGNUM): Likewise.
2941         (AARCH64_B0_REGNUM): Likewise.
2942         (AARCH64_SVE_V0_REGNUM): Likewise.
2943
2944 2018-10-01  Gary Benson <gbenson@redhat.com>
2945
2946         * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
2947         * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
2948         prfpregset_t instead of gdb_prfpregset_t.
2949         * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
2950         * configure, config.in: Rebuild.
2951
2952 2018-10-01  Gary Benson <gbenson@redhat.com>
2953
2954         * common/gdb_proc_service.h: New file, factored out from...
2955         * gdb_proc_service.h: Moved common code to the above file.
2956         * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
2957
2958 2018-10-01  Gary Benson <gbenson@redhat.com>
2959
2960         * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
2961         undefined.  Use elf_fpregset_t if prfpregset_t is undefined.
2962
2963 2018-10-01  Gary Benson <gbenson@redhat.com>
2964
2965         * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
2966         (AC_CHECK_HEADERS): Check for linux/elf.h.
2967         * configure, config.in: Rebuild.
2968         * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
2969         doesn't define elf_fpregset_t.
2970
2971 2018-10-01  Gary Benson <gbenson@redhat.com>
2972
2973         * gdb_proc_service.h: Whitespace change.
2974
2975 2018-10-01  Tom Tromey  <tom@tromey.com>
2976
2977         * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
2978         * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
2979         * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
2980
2981 2018-10-01  Tom Tromey  <tom@tromey.com>
2982
2983         * README: Minor change.
2984
2985 2018-09-30  Pedro Alves  <palves@redhat.com>
2986
2987         * darwin-nat-info.c (darwin_debug_regions_recurse)
2988         (info_mach_exceptions_command): Remove unused local variables.
2989         * darwin-nat.c (darwin_decode_notify_message)
2990         (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
2991         (darwin_stop_inferior, darwin_setup_exceptions)
2992         (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
2993         (darwin_nat_target::attach, darwin_nat_target::detach)
2994         (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
2995         local variables.
2996         * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
2997         variables.
2998
2999 2018-09-29  Tom Tromey  <tom@tromey.com>
3000
3001         * README: Remove some leftover text.
3002
3003 2018-09-29  Tom Tromey  <tom@tromey.com>
3004
3005         * PROBLEMS: Rewrite.
3006         * README: Update.
3007
3008 2018-09-28  John Baldwin  <jhb@FreeBSD.org>
3009
3010         * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
3011         case with explicit breakpoint kind.
3012         * riscv-tdep.c (show_use_compressed_breakpoints): Remove
3013         'additional_info' and related logic.
3014         (riscv_debug_breakpoints): New variable.
3015         (riscv_breakpoint_kind_from_pc): Use the length of the existing
3016         instruction to determine the breakpoint kind.
3017         (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
3018         flag.  Update description of 'set/show riscv
3019         use-compressed-breakpoints' flag.
3020
3021 2018-09-28  Andrew Burgess  <andrew.burgess@embecosm.com>
3022
3023         (NEWS): Mention changes to frame related commands.
3024         * cli/cli-decode.c (add_cmd_suppress_notification): New function.
3025         (add_prefix_cmd_suppress_notification): New function.
3026         (add_com_suppress_notification): Call
3027         add_cmd_suppress_notification.
3028         * command.h (add_cmd_suppress_notification): Declare.
3029         (add_prefix_cmd_suppress_notification): Declare.
3030         * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
3031         (parse_frame_specification): Moved from stack.c, with
3032         simplification to handle a single argument.
3033         (mi_cmd_stack_select_frame): Use parse_frame_specification, the
3034         switch to the selected frame.  Add a header comment.
3035         * stack.c: Remove 'safe-ctype.h' include.
3036         (find_frame_for_function): Add declaration.
3037         (find_frame_for_address): New function.
3038         (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
3039         (frame_selection_by_function_completer): New function.
3040         (info_frame_command): Rename to...
3041         (info_frame_command_core): ...this, and update parameter types.
3042         (select_frame_command): Rename to...
3043         (select_frame_command_core): ...this, and update parameter types.
3044         (frame_command): Rename to...
3045         (frame_command_core): ...this, and update parameter types.
3046         (class frame_command_helper): New class to wrap implementations of
3047         frame related sub-commands.
3048         (frame_apply_cmd_list): New static global.
3049         (frame_cmd_list): Make static.
3050         (select_frame_cmd_list): New global for sub-commands.
3051         (info_frame_cmd_list): New global for sub-commands.
3052         (_initialize_stack): Register sub-commands for 'frame',
3053         'select-frame', and 'info frame'.  Update 'frame apply' commands
3054         to use frame_apply_cmd_list.  Move function local static
3055         frame_apply_list to file static frame_apply_cmd_list for
3056         consistency.
3057         * stack.h (select_frame_command): Delete declarationn.
3058         (select_frame_for_mi): Declare new function.
3059
3060 2018-09-26  Andrew Burgess  <andrew.burgess@embecosm.com>
3061
3062         * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
3063         (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
3064         and NOP.
3065
3066 2018-09-26  Simon Marchi  <simon.marchi@ericsson.com>
3067
3068         * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
3069
3070 2018-09-26  Tom Tromey  <tom@tromey.com>
3071
3072         * valops.c (auto_abandon): Remove dead code.
3073
3074 2018-09-26  Tom Tromey  <tom@tromey.com>
3075
3076         * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
3077
3078 2018-09-24  Tom Tromey  <tom@tromey.com>
3079
3080         * common/pathstuff.c (get_standard_cache_dir): Make
3081         "xdg_cache_home" and "home" const.
3082         * top.c (init_history): Make "tmpenv" const.
3083         * main.c (get_init_files): Make "homedir" const.
3084
3085 2018-09-23  Tom Tromey  <tom@tromey.com>
3086
3087         PR python/18852:
3088         * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
3089
3090 2018-09-23  Tom Tromey  <tom@tromey.com>
3091
3092         * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
3093         * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
3094         * python/python-internal.h (gdbpy_handle_exception): Declare.
3095         * python/py-utils.c (gdbpy_handle_exception): New function.
3096
3097 2018-09-23  Tom Tromey  <tom@tromey.com>
3098
3099         PR python/17284:
3100         * python/py-type.c (typy_template_argument): Check for negative
3101         argument number.
3102
3103 2018-09-23  Tom Tromey  <tom@tromey.com>
3104
3105         PR python/14062:
3106         * python/python.c (gdbpy_run_events): Do not ignore exceptions.
3107
3108 2018-09-23  Tom Tromey  <tom@tromey.com>
3109
3110         PR python/18170:
3111         * python/py-value.c (valpy_int): Allow conversion from pointer
3112         type.
3113
3114 2018-09-23  Tom Tromey  <tom@tromey.com>
3115
3116         PR python/20126:
3117         * python/py-value.c (valpy_int): Respect type sign.
3118
3119 2018-09-23  Tom Tromey  <tom@tromey.com>
3120
3121         PR python/18352;
3122         * python/py-value.c (valpy_float): Allow conversions from int or
3123         char.
3124         (valpy_int, valpy_long): Allow conversions from float.
3125
3126 2018-09-23  Tom Tromey  <tom@tromey.com>
3127
3128         * ctf.c (ctf_start): Use gdb_fopen_cloexec.
3129         * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
3130
3131 2018-09-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3132
3133         * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
3134         __sighndlr.
3135         * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
3136
3137 2018-08-02  Jon Turney  <jon.turney@dronecode.org.uk>
3138
3139         * windows-nat.c (windows_nat_target::wait): Remove a spurious
3140         target_terminal::ours().
3141
3142 2018-09-23  Simon Marchi  <simon.marchi@ericsson.com>
3143
3144         * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
3145         of vl to ULONGEST.
3146
3147 2018-09-21  Yacov Simhony  <ysimhony@gmail.com>
3148
3149         * breakpoint.c (update_inserted_breakpoint_locations): Remove
3150         redundant condition.
3151
3152 2018-09-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3153
3154         * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
3155
3156         * procfs.c: Don't check for PR_MODEL_NATIVE definition.
3157         * sparc-sol2-nat.c: Likewise.  Remove Linux, __arch64__ references.
3158         * sol-thread.c (ps_pdmodel): Don't guard definition.
3159
3160         * procfs.c: Fix formatting.
3161
3162         * procfs.c (sysset_t_alloc): Remove.
3163         (create_procinfo): Use XNEW instead of sysset_t_alloc.
3164         (procfs_debug_inferior): Likewise.
3165         (procfs_set_exec_trap): Likewise.
3166         (proc_set_traced_sysentry): Don't allocate argp dynamically.
3167         (proc_set_traced_sysexit): Likewise.
3168
3169         * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
3170         (dead_procinfo): Likewise.
3171         (proc_warn): Likewise.
3172         (proc_error): Likewise.
3173         (proc_get_LDT_entry): Likewise.
3174         (do_attach): Likewise.
3175         (procfs_target::pid_to_str): Likewise.
3176         (iterate_over_mappings): Likewise.
3177
3178         * procfs.c (create_procinfo): Fix ARI warning.
3179         (proc_get_status): Likewise.
3180         (proc_stop_process): Likewise.
3181         (proc_run_process): Likewise.
3182         (proc_kill): Likewise.
3183         (proc_get_LDT_entry): Likewise.
3184         (procfs_find_LDT_entry): Likewise.
3185         (proc_update_threads): Likewise.
3186         (proc_iterate_over_threads): Likewise.
3187         (do_attach): Likewise.
3188         (procfs_xfer_memory): Likewise.
3189         (invalidate_cache): Likewise.
3190         (procfs_target::resume): Likewise.
3191         (procfs_init_inferior): Likewise.
3192         (procfs_set_exec_trap): Likewise.
3193         (procfs_target::thread_alive): Likewise.
3194         (procfs_target::pid_to_exec_file): Likewise.
3195         (iterate_over_mappings): Likewise.
3196         (procfs_target::make_corefile_notes): Likewise.
3197         * sol-thread.c (sol_thread_target::thread_alive): Likewise.
3198
3199         * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
3200         (procfs_find_LDT_entry): Likewise.
3201         * sol-thread.c (ps_lgetLDT): Likewise.
3202
3203 2018-09-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3204
3205         PR tdep/17903
3206         * procfs.c (procfs_target): Declare pid_to_exec_file.
3207         (procfs_target::pid_to_exec_file): New.
3208
3209 2018-09-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3210
3211         * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
3212         renaming.
3213         Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
3214         AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
3215
3216 2018-09-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3217
3218         * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
3219         (supply_fpregset, fill_fpregset): Move ...
3220         * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
3221         Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
3222         Remove references to ioctl-based procfs.
3223         Include <sys/reg.h>.
3224         Remove PR_MODEL_NATIVE guards.
3225         * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
3226         * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
3227
3228 2018-09-19  Xavier Roirand  <roirand@adacore.com>
3229
3230         PR gdb/20981:
3231         * solib-darwin.c (darwin_get_dyld_bfd): New function.
3232         (darwin_solib_get_all_image_info_addr_at_init): Update call.
3233         (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
3234
3235 2018-09-19  John Baldwin  <jhb@FreeBSD.org>
3236
3237         * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
3238         (fbsd_print_sockaddr_in6): Likewise.
3239
3240 2018-09-19  Richard Bunt  <richard.bunt@arm.com>
3241             Chris January  <chris.january@arm.com>
3242
3243         * eval.c (skip_undetermined_arglist): Skip argument list helper.
3244         (evaluate_subexp_standard): Return a dummy type when
3245         honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
3246         OP_F77_UNDETERMINED_ARGLIST case.
3247         * expression.h (enum noside): Update comment.
3248
3249 2018-09-19  George Vasick <george.vasick@oracle.com>
3250
3251         * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
3252
3253 2018-09-19  Stefan Teleman <stefan.teleman@oracle.com>
3254             April Chin <april.chin@oracle.com>
3255             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3256
3257         * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
3258         uint_t lwpid_t.
3259         (create_procinfo): Print pids in /proc without leading zeros.
3260
3261 2018-09-18  Sandra Loosemore  <sandra@codesourcery.com>
3262
3263         * nios2-tdep.c (nios2_gcc_target_options): New.
3264         (nios2_gdb_arch_init): Install new hook.
3265
3266 2018-09-18  Simon Marchi  <simon.marchi@ericsson.com>
3267
3268         * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
3269         New file.
3270         * update-gnulib.sh: Apply patch.
3271         * configure: Re-generate.
3272
3273 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
3274
3275         * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
3276         description.  Make "info proc" command descriptions more
3277         consistent.
3278
3279 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
3280
3281         * NEWS: Mention 'info proc files' command.
3282
3283 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
3284
3285         * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
3286         descriptors for IP_FILES and IP_ALL.
3287
3288 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
3289
3290         * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
3291         (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
3292         (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
3293         (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
3294         (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
3295         (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
3296         (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
3297         (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
3298         (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
3299         (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
3300         (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
3301         (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
3302         (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
3303         (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
3304         (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
3305         (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
3306         (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
3307         (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
3308         (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
3309         (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
3310         (struct fbsd_sockaddr_un): New types.
3311         (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
3312         (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
3313         (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
3314         (fbsd_core_info_proc_files): New functions.
3315         (fbsd_core_info_proc): List open file descriptors for IP_FILES and
3316         IP_ALL.
3317         * fbsd-tdep.h (fbsd_info_proc_files_header)
3318         (fbsd_info_proc_files_entry): New.
3319
3320 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
3321
3322         * defs.h (enum info_proc_what) [IP_FILES]: New value.
3323         * infcmd.c (info_proc_cmd_files): New function.
3324         (_initialize_infcmd): Register 'info proc files' command.
3325
3326 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
3327
3328         * gnulib/aclocal-m4-deps.mk: Re-generate.
3329         * gnulib/aclocal.m4: Re-generate.
3330         * gnulib/config.in: Re-generate.
3331         * gnulib/configure: Re-generate.
3332         * gnulib/import/Makefile.am: Re-generate.
3333         * gnulib/import/Makefile.in: Re-generate.
3334         * gnulib/import/m4/gnulib-cache.m4: Re-generate.
3335         * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3336         * gnulib/import/arpa_inet.in.h: New file.
3337         * gnulib/import/inet_ntop.c: New file.
3338         * gnulib/import/m4/arpa_inet_h.m4: New file.
3339         * gnulib/import/m4/inet_ntop.m4: New file.
3340         * gnulib/import/m4/netinet_in_h.m4: New file.
3341         * gnulib/import/m4/socklen.m4: New file.
3342         * gnulib/import/m4/sockpfaf.m4: New file.
3343         * gnulib/import/m4/stdalign.m4: New file.
3344         * gnulib/import/m4/sys_uio_h.m4: New file.
3345         * gnulib/import/netinet_in.in.h: New file.
3346         * gnulib/import/stdalign.in.h: New file.
3347         * gnulib/import/sys_socket.c: New file.
3348         * gnulib/import/sys_socket.in.h: New file.
3349         * gnulib/import/sys_uio.in.h: New file.
3350         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
3351         module.
3352
3353 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
3354
3355         * gnulib/aclocal-m4-deps.mk: New file.
3356         * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
3357         deterministically.
3358
3359 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
3360
3361         * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
3362         KVE_PATH.
3363
3364 2018-09-18  Tom Tromey  <tom@tromey.com>
3365
3366         * compile/compile-object-load.c (struct
3367         link_hash_table_cleanup_data): Add constructor and destructor.
3368         Use DISABLE_COPY_AND_ASSIGN.
3369         (~link_hash_table_cleanup_data): Rename from
3370         link_hash_table_free.  Now a destructor.
3371         (copy_sections): Use gdb::unique_xmalloc_ptr.  Remove cleanups.
3372
3373 2018-09-18  Tom Tromey  <tom@tromey.com>
3374
3375         * compile/compile-object-run.c (do_module_cleanup): Use delete.
3376         * compile/compile-object-load.c (struct munmap_list): Move to
3377         header file.
3378         (munmap_list::add): Rename from munmap_list_add; rewrite.
3379         (munmap_list::~munmap_list): Rename from munmap_list_free.
3380         (munmap_listp_free_cleanup): Remove.
3381         (compile_object_load): Update.
3382         * compile/compile-object-load.h (struct munmap_list): Move from
3383         compile-object-load.c.  Rewrite.
3384
3385 2018-09-18  Alan Hayward  <alan.hayward@arm.com>
3386
3387         * aarch64-tdep.c (pass_in_v): Use register size.
3388         (aarch64_extract_return_value): Likewise.
3389         (aarch64_store_return_value): Likewise.
3390
3391 2018-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3392
3393         * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
3394         rlim_t.
3395
3396 2018-09-17  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
3397
3398         * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
3399         Fix short help line.
3400
3401 2018-09-17  Tom Tromey  <tom@tromey.com>
3402
3403         PR python/20445:
3404         * configure: Rebuild.
3405         * configure.ac: Conditionally use -DNDEBUG for Python.
3406
3407 2018-09-17  Tom Tromey  <tom@tromey.com>
3408
3409         * configure: Rebuild.
3410         * configure.ac: Use gmp as a library dependency when checking for
3411         mpfr.
3412
3413 2018-09-17  Pedro Alves  <palves@redhat.com>
3414
3415         * python/py-inferior.c (find_inferior_object): Delete.
3416
3417 2018-09-17  Simon Marchi  <simon.marchi@ericsson.com>
3418
3419         * compile/compile-cplus-types.c
3420         (compile_cplus_instance::enter_scope): Don't use new_scope after
3421         std::move.
3422
3423 2018-09-17  Tom Tromey  <tom@tromey.com>
3424
3425         * common/pathstuff.c (get_standard_cache_dir): Use
3426         ~/Library/Caches on macOS.
3427         * common/pathstuff.h (get_standard_cache_dir): Update comment.
3428
3429 2018-09-17  Simon Marchi  <simon.marchi@polymtl.ca>
3430
3431         PR python/23669
3432         * breakpoint.c (commands_cmd_element): New.
3433         (_initialize_breakpoint): Assign commands_cmd_element.
3434         * breakpoint.h (commands_cmd_element): New.
3435         * cli/cli-script.c (while_cmd_element, if_command,
3436         define_cmd_element): New.
3437         (command_name_equals): Remove.
3438         (process_next_line): Compare commands by pointer, not by name.
3439         (_initialize_cli_script): Assign the various cmd_list_element
3440         variables.
3441         * compile/compile.c (compile_cmd_element): New.
3442         (_initialize_compile): Assign compile_cmd_element.
3443         * compile/compile.h (compile_cmd_element): New.
3444         * guile/guile.c (guile_cmd_element): New.
3445         (install_gdb_commands): Assign guile_cmd_element.
3446         * guile/guile.h (guile_cmd_element): New.
3447         * python/python.c (python_cmd_element): New.
3448         (_initialize_python): Assign python_cmd_element.
3449         * python/python.h (python_cmd_element): New.
3450         * tracepoint.c (while_stepping_cmd_element): New.
3451         (_initialize_tracepoint): Assign while_stepping_cmd_element.
3452         * tracepoint.h (while_stepping_cmd_element): New.
3453
3454 2018-09-17  Tom Tromey  <tom@tromey.com>
3455
3456         * infrun.c (save_infcall_suspend_state): Return
3457         infcall_suspend_state_up.
3458         (save_infcall_control_state): Return infcall_control_state_up.
3459         * inferior.h (save_infcall_suspend_state)
3460         (save_infcall_control_state): Declare later.  Return unique
3461         pointers.
3462
3463 2018-09-17  Tom Tromey  <tom@tromey.com>
3464
3465         * infrun.c (struct stop_context): Declare constructor,
3466         destructor, "changed" method.
3467         (stop_context::stop_context): Rename from save_stop_context.
3468         (stop_context::~stop_context): Rename from
3469         release_stop_context_cleanup.
3470         (normal_stop): Update.
3471         (stop_context::changed): Rename from stop_context_changed.  Return
3472         bool.
3473
3474 2018-09-17  Tom Tromey  <tom@tromey.com>
3475
3476         * inferior.h (struct infcall_suspend_state_deleter): New.
3477         (infcall_suspend_state_up): New typedef.
3478         (struct infcall_control_state_deleter): New.
3479         (infcall_control_state_up): New typedef.
3480         (make_cleanup_restore_infcall_suspend_state)
3481         (make_cleanup_restore_infcall_control_state): Don't declare.
3482         * infcall.c (call_function_by_hand_dummy): Update.
3483         * infrun.c (do_restore_infcall_suspend_state_cleanup)
3484         (make_cleanup_restore_infcall_suspend_state): Remove.
3485         (do_restore_infcall_control_state_cleanup)
3486         (make_cleanup_restore_infcall_control_state): Remove.
3487
3488 2018-09-17  Tom Tromey  <tom@tromey.com>
3489
3490         * gdbthread.h (struct thread_control_state): Add initializer.
3491         (class thread_info) <control>: Remove initializer.
3492         * inferior.h (struct inferior_control_state): Add initializer.
3493         (class inferior) <control>: Remove initializer.
3494         (exit_inferior_1): Update.
3495         * infrun.c (struct infcall_control_state): Add constructors.
3496         (save_infcall_control_state): Use new.
3497         (restore_infcall_control_state, discard_infcall_control_state):
3498         Use delete.
3499
3500 2018-09-17  Tom Tromey  <tom@tromey.com>
3501
3502         * infrun.c (struct infcall_suspend_state) <registers>: Now a
3503         unique_ptr.
3504         <siginfo_data>: Now a unique_xmalloc_ptr.
3505         (save_infcall_suspend_state, restore_infcall_suspend_state)
3506         (discard_infcall_suspend_state)
3507         (get_infcall_suspend_state_regcache): Update.
3508
3509 2018-09-17  Tom Tromey  <tom@tromey.com>
3510
3511         * gdbthread.h (struct thread_suspend_state): Add initializers.
3512         (class thread_info) <suspend>: Remove initializer.
3513         * infrun.c (struct infcall_suspend_state): Add initializers.
3514         (save_infcall_suspend_state): Use new.
3515         (discard_infcall_suspend_state): Use delete.
3516
3517 2018-09-16  Tom Tromey  <tom@tromey.com>
3518
3519         * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
3520         Remove.
3521         * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
3522         rvalue reference.  Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
3523         (py_varobj_iter_new): Likewise.
3524         (py_varobj_get_iterator): Use gdbpy_ref.
3525
3526 2018-09-16  Tom Tromey  <tom@tromey.com>
3527
3528         * python/py-threadevent.c (py_get_event_thread): Simplify.
3529         * python/py-inferior.c (infpy_thread_from_thread_handle):
3530         Return immediately after calling thread_to_thread_object.  Use
3531         Py_RETURN_NONE.
3532         (thread_to_thread_object): Set the exception on a NULL return.
3533
3534 2018-09-16  Simon Marchi  <simon.marchi@polymtl.ca>
3535
3536         * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
3537
3538 2018-09-16  Tom Tromey  <tom@tromey.com>
3539
3540         * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
3541         Remove.
3542
3543 2018-09-16  Tom Tromey  <tom@tromey.com>
3544
3545         * python/python-internal.h (thread_to_thread_object): Change
3546         return type.
3547         * python/py-inferior.c (thread_to_thread_object): Return a new
3548         reference.
3549         (infpy_thread_from_thread_handle): Update.
3550         * python/py-infthread.c (gdbpy_selected_thread): Update.
3551         * python/py-stopevent.c (create_stop_event_object): Update.
3552         * python/py-threadevent.c (py_get_event_thread): Return a new
3553         reference.
3554         (py_get_event_thread): Update.
3555         * python/py-event.h (py_get_event_thread): Change return type.
3556         * python/py-continueevent.c (create_continue_event_object):
3557         Update.
3558
3559 2018-09-16  Tom Tromey  <tom@tromey.com>
3560
3561         * python/py-progspace.c (pspy_get_objfiles): Update.
3562         * python/python-internal.h (objfile_to_objfile_object): Change
3563         return type.
3564         * python/py-newobjfileevent.c (create_new_objfile_event_object):
3565         Update.
3566         * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
3567         Update.
3568         * python/python.c (gdbpy_get_current_objfile): Update.
3569         (gdbpy_objfiles): Update.
3570         * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
3571         Update.
3572         (objfile_to_objfile_object): Return a new reference.
3573         * python/py-symtab.c (stpy_get_objfile): Update.
3574         * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
3575         Update.
3576
3577 2018-09-16  Tom Tromey  <tom@tromey.com>
3578
3579         * python/py-inferior.c (infpy_get_progspace): Update.
3580         * python/python-internal.h (pspace_to_pspace_object): Change
3581         return type.
3582         * python/py-newobjfileevent.c
3583         (create_clear_objfiles_event_object): Update.
3584         * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
3585         Update.
3586         * python/python.c (gdbpy_get_current_progspace): Update.
3587         (gdbpy_progspaces): Update.
3588         * python/py-progspace.c (pspace_to_pspace_object): Return a new
3589         reference.
3590         * python/py-objfile.c (objfpy_get_progspace): Update.
3591         * python/py-prettyprint.c (find_pretty_printer_from_progspace):
3592         Update.
3593
3594 2018-09-16  Tom Tromey  <tom@tromey.com>
3595
3596         * python/lib/gdb/__init__.py (current_progspace, objfiles)
3597         (solib_name, block_for_pc, find_pc_line): New functions.
3598         (execute_unwinders): Update.
3599         * python/py-block.c (gdbpy_block_for_pc): Remove.
3600         * python/py-inferior.c (infpy_get_progspace): New function.
3601         (inferior_object_getset) <progspace>: Add.
3602         * python/py-progspace.c (pspy_objfiles): Rewrite.
3603         (pspy_solib_name, pspy_block_for_pc)
3604         (pspy_find_pc_line, pspy_is_valid): New functions.
3605         (progspace_object_methods): Add entries for solib_name,
3606         block_for_pc, find_pc_line, is_valid.
3607         * python/python-internal.h (gdbpy_block_for_pc)
3608         (build_objfiles_list): Don't declare.
3609         * python/python.c: Don't include solib.h.
3610         (gdbpy_solib_name, gdbpy_find_pc_line)
3611         (gdbpy_get_current_progspace, build_objfiles_list)
3612         (gdbpy_objfiles): Remove.
3613         (GdbMethods) <current_progspace, objfiles, block_for_pc,
3614         solib_name, find_pc_line>: Remove entries.
3615
3616 2018-09-16  Tom Tromey  <tom@tromey.com>
3617
3618         * top.c (new_ui_command): Use GNU style for metasyntactic
3619         variables.
3620         * breakpoint.c (stopat_command): Use GNU style for metasyntactic
3621         variables.
3622         * maint.c (maintenance_translate_address): Remove "<>" around
3623         text.
3624         * interps.c (interpreter_exec_cmd): Use GNU style for
3625         metasyntactic variables.
3626         * nto-procfs.c (nto_procfs_target_info): Use GNU style for
3627         metasyntactic variables.
3628         * tracepoint.c (tfind_range_command): Use GNU style for
3629         metasyntactic variables.
3630         (tfind_outside_command): Likewise.
3631         (_initialize_tracepoint): Likewise.
3632         * remote.c (extended_remote_target::create_inferior): Use GNU
3633         style for metasyntactic variables.
3634         * sparc64-tdep.c (adi_examine_command): Use GNU style for
3635         metasyntactic variables.
3636         (adi_assign_command): Likewise.
3637
3638 2018-09-16  Tom Tromey  <tom@tromey.com>
3639
3640         * disasm.c (show_disassembler_options_sfunc): Use GNU style for
3641         metasyntactic variables.  Print message if no disassembler options
3642         are available.
3643
3644 2018-09-15  Tom Tromey  <tom@tromey.com>
3645
3646         * infcmd.c (get_inferior_args): Return const char *.
3647         * inferior.h (get_inferior_args): Return type now const.
3648         * linux-tdep.c (linux_fill_prpsinfo): Update.
3649         * procfs.c (procfs_target::make_corefile_notes): Update.
3650
3651 2018-09-07  Tom Tromey  <tom@tromey.com>
3652
3653         * python/python.c (execute_gdb_command): Call bpstat_do_actions
3654         inside the TRY.
3655
3656 2018-09-14  Sandra Loosemore  <sandra@codesourcery.com>
3657
3658         * nios2-tdep.c (nios2_type_align): New.
3659         (nios2_gdb_arch_init): Install type_align hook.
3660
3661 2018-09-10  Andrew Burgess  <andrew.burgess@embecosm.com>
3662
3663         * eval.c (fake_method::fake_method): Call xzalloc directly for a
3664         type that is neither object file owned, nor gdbarch owned.
3665         * gdbtypes.c (get_type_gdbarch): Add an assert that returned
3666         gdbarch is non-NULL.
3667         (alloc_type_instance): Allocate non-objfile owned types on the
3668         gdbarch obstack.
3669         (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
3670         using TYPE_ALLOC to ensure memory is allocated on the correct
3671         obstack.
3672         * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
3673         obstack, or the gdbarch obstack.
3674         (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
3675
3676 2018-09-14  Tom Tromey  <tom@tromey.com>
3677
3678         * infcall.c (call_function_by_hand_dummy): Remove unnecessary
3679         block.
3680
3681 2018-09-14  Tom Tromey  <tom@tromey.com>
3682
3683         * nat/fork-inferior.c (get_startup_shell): Remove "static".
3684
3685 2018-09-13  Tom Tromey  <tom@tromey.com>
3686
3687         * python/py-inferior.c (infpy_thread_from_thread_handle): Now
3688         static.
3689
3690 2018-09-13  Tom Tromey  <tom@tromey.com>
3691
3692         * exec.c (try_open_exec_file): Use std::string.
3693
3694 2018-09-13  Tom Tromey  <tom@tromey.com>
3695
3696         * utils.h (gdb_bfd_errmsg): Return std::string.
3697         * exec.c (exec_file_attach): Update.
3698         * compile/compile-object-load.c (compile_object_load): Update.
3699         * utils.c (gdb_bfd_errmsg): Return std::string.
3700
3701 2018-09-13  Tom Tromey  <tom@tromey.com>
3702
3703         * procfs.c (struct procinfo_deleter): New.
3704         (procinfo_up): New typedef.
3705         (do_destroy_procinfo_cleanup): Remove.
3706         (procfs_target::info_proc): Use procinfo_up.  Remove cleanups.
3707
3708 2018-09-13  Tom Tromey  <tom@tromey.com>
3709
3710         * source.c (add_path): Use gdb::unique_xmalloc_ptr.
3711
3712 2018-09-13  Simon Marchi  <simon.marchi@ericsson.com>
3713 2018-09-13  Tom Tromey  <tom@tromey.com>
3714
3715         * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
3716         (pspy_get_objfiles): New function.
3717         (progspace_object_methods): New.
3718         (pspace_object_type): Add tp_methods callback.
3719         * python/python-internal.h (build_objfiles_list): New
3720         declaration.
3721         * python/python.c (build_objfiles_list): New function.
3722         (gdbpy_objfiles): Implement using build_objfiles_list.
3723         * NEWS: Mention the Progspace.objfiles method.
3724
3725 2018-09-13  Simon Marchi  <simon.marchi@ericsson.com>
3726
3727         * python/py-inferior.c (infpy_get_progspace): New function.
3728         (inferior_object_getset): Add progspace property.
3729         * NEWS: Mention the new property.
3730
3731 2018-09-13  Tom Tromey  <tom@tromey.com>
3732
3733         PR rust/23650:
3734         * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
3735
3736 2018-09-13  Tom Tromey  <tom@tromey.com>
3737
3738         PR rust/23626:
3739         * rust-lang.c (rust_enum_variant): Now static.
3740         (rust_empty_enum_p): New function.
3741         (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
3742         Handle empty enum.
3743
3744 2018-09-13  Simon Marchi  <simon.marchi@ericsson.com>
3745
3746         * python/py-inferior.c (infpy_repr): New.
3747         (inferior_object_type): Register infpy_repr.
3748         * python/py-objfile.c (objfpy_repr): New.
3749         (objfile_object_type): Register objfpy_repr.
3750
3751 2018-09-12  John Baldwin  <jhb@FreeBSD.org>
3752
3753         * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
3754
3755 2018-09-12  John Baldwin  <jhb@FreeBSD.org>
3756
3757         * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
3758         typo.
3759
3760 2018-09-12  Sergio Durigan Junior  <sergiodj@redhat.com>
3761
3762         * common/common-utils.c: Don't include '<sys/stat.h>'.
3763         (is_regular_file): Move to...
3764         * common/filestuff.c (is_regular_file): ... here.
3765         * common/common-utils.h (is_regular_file): Move to...
3766         * common/filestuff.h (is_regular_file): ... here.
3767
3768 2018-09-12  Simon Marchi  <simon.marchi@ericsson.com>
3769
3770         * skip.c (debug_skip): New variable.
3771         (skiplist_entry::do_skip_file_p): Add debug output.
3772         (skiplist_entry::do_skip_gfile_p): Likewise.
3773         (skiplist_entry::skip_function_p): Likewise.
3774         (_initialize_step_skip): Create debug command.
3775         * NEWS: Mention set/show debug skip.
3776
3777 2018-09-11  Xavier Roirand  <roirand@adacore.com>
3778
3779         * darwin-nat.c (should_disable_startup_with_shell):
3780         New function.
3781         (darwin_nat_target::create_inferior): Add call.
3782
3783 2018-09-11  Xavier Roirand  <roirand@adacore.com>
3784
3785         * darwin-nat.h (struct darwin_thread_info) <gdb_port,
3786         inf_port, msg_state>: Initialize.
3787         (struct darwin_thread_info) <signaled, single_step>: Change
3788         type and initialize.
3789         (struct darwin_thread_info) <event>: Initialize.
3790
3791 2018-09-10  Sergio Durigan Junior  <sergiodj@redhat.com>
3792
3793         PR gdb/23555
3794         PR gdb/23558
3795         * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
3796         guesses.
3797
3798 2018-09-10  Sergio Durigan Junior  <sergiodj@redhat.com>
3799
3800         Revert:
3801         2018-08-29  Sergio Durigan Junior  <sergiodj@redhat.com>
3802
3803         PR gdb/23555
3804         PR gdb/23558
3805         * gnulib/aclocal.m4: Regenerate.
3806         * gnulib/config.in: Regenerate.
3807         * gnulib/configure: Regenerate.
3808         * gnulib/import/Makefile.am: Update.
3809         * gnulib/import/Makefile.in: Update.
3810         * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
3811         * gnulib/import/_Noreturn.h: ... this.
3812         * gnulib/import/alloca.in.h: Update.
3813         * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
3814         * gnulib/import/arg-nonnull.h: ... this.
3815         * gnulib/import/assure.h: Update.
3816         * gnulib/import/at-func.c: Update.
3817         * gnulib/import/basename-lgpl.c: Update.
3818         * gnulib/import/extra/snippet/c++defs.h: Rename to...
3819         * gnulib/import/c++defs.h: ... this.
3820         * gnulib/import/canonicalize-lgpl.c: Update.
3821         * gnulib/import/cdefs.h: Update.
3822         * gnulib/import/chdir-long.c: Update.
3823         * gnulib/import/chdir-long.h: Update.
3824         * gnulib/import/cloexec.c: Update.
3825         * gnulib/import/cloexec.h: Update.
3826         * gnulib/import/close.c: Update.
3827         * gnulib/import/closedir.c: Update.
3828         * gnulib/import/config.charset: Update.
3829         * gnulib/import/dirent-private.h: Update.
3830         * gnulib/import/dirent.in.h: Update.
3831         * gnulib/import/dirfd.c: Update.
3832         * gnulib/import/dirname-lgpl.c: Update.
3833         * gnulib/import/dirname.h: Update.
3834         * gnulib/import/dosname.h: Update.
3835         * gnulib/import/dup-safer-flag.c: Update.
3836         * gnulib/import/dup-safer.c: Update.
3837         * gnulib/import/dup.c: Update.
3838         * gnulib/import/dup2.c: Update.
3839         * gnulib/import/errno.in.h: Update.
3840         * gnulib/import/error.c: Update.
3841         * gnulib/import/error.h: Update.
3842         * gnulib/import/exitfail.c: Update.
3843         * gnulib/import/exitfail.h: Update.
3844         * gnulib/import/extra/update-copyright: Update.
3845         * gnulib/import/fchdir.c: Update.
3846         * gnulib/import/fcntl.c: Update.
3847         * gnulib/import/fcntl.in.h: Update.
3848         * gnulib/import/fd-hook.c: Update.
3849         * gnulib/import/fd-hook.h: Update.
3850         * gnulib/import/fd-safer-flag.c: Update.
3851         * gnulib/import/fd-safer.c: Update.
3852         * gnulib/import/fdopendir.c: Update.
3853         * gnulib/import/filename.h: Update.
3854         * gnulib/import/filenamecat-lgpl.c: Update.
3855         * gnulib/import/filenamecat.h: Update.
3856         * gnulib/import/flexmember.h: Update.
3857         * gnulib/import/float+.h: Update.
3858         * gnulib/import/float.c: Update.
3859         * gnulib/import/float.in.h: Update.
3860         * gnulib/import/fnmatch.c: Update.
3861         * gnulib/import/fnmatch.in.h: Update.
3862         * gnulib/import/fnmatch_loop.c: Update.
3863         * gnulib/import/fpucw.h: Update.
3864         * gnulib/import/frexp.c: Update.
3865         * gnulib/import/frexpl.c: Update.
3866         * gnulib/import/fstat.c: Update.
3867         * gnulib/import/fstatat.c: Update.
3868         * gnulib/import/getcwd-lgpl.c: Update.
3869         * gnulib/import/getcwd.c: Update.
3870         * gnulib/import/getdtablesize.c: Update.
3871         * gnulib/import/getlogin_r.c: Update.
3872         * gnulib/import/getprogname.c: Update.
3873         * gnulib/import/getprogname.h: Update.
3874         * gnulib/import/gettext.h: Update.
3875         * gnulib/import/gettimeofday.c: Update.
3876         * gnulib/import/glob-libc.h: Update.
3877         * gnulib/import/glob.c: Update.
3878         * gnulib/import/glob.in.h: Update.
3879         * gnulib/import/glob_internal.h: Update.
3880         * gnulib/import/glob_pattern_p.c: Update.
3881         * gnulib/import/globfree.c: Update.
3882         * gnulib/import/hard-locale.c: Update.
3883         * gnulib/import/hard-locale.h: Update.
3884         * gnulib/import/intprops.h: Update.
3885         * gnulib/import/inttypes.in.h: Update.
3886         * gnulib/import/isnan.c: Update.
3887         * gnulib/import/isnand-nolibm.h: Update.
3888         * gnulib/import/isnand.c: Update.
3889         * gnulib/import/isnanl-nolibm.h: Update.
3890         * gnulib/import/isnanl.c: Update.
3891         * gnulib/import/itold.c: Update.
3892         * gnulib/import/libc-config.h: Update.
3893         * gnulib/import/limits.in.h: Update.
3894         * gnulib/import/localcharset.c: Update.
3895         * gnulib/import/localcharset.h: Update.
3896         * gnulib/import/localtime-buffer.c: Update.
3897         * gnulib/import/localtime-buffer.h: Update.
3898         * gnulib/import/lstat.c: Update.
3899         * gnulib/import/m4/00gnulib.m4: Update.
3900         * gnulib/import/m4/__inline.m4: Update.
3901         * gnulib/import/m4/absolute-header.m4: Update.
3902         * gnulib/import/m4/alloca.m4: Update.
3903         * gnulib/import/m4/builtin-expect.m4: Update.
3904         * gnulib/import/m4/canonicalize.m4: Update.
3905         * gnulib/import/m4/chdir-long.m4: Update.
3906         * gnulib/import/m4/close.m4: Update.
3907         * gnulib/import/m4/closedir.m4: Update.
3908         * gnulib/import/m4/configmake.m4: Update.
3909         * gnulib/import/m4/d-ino.m4: Update.
3910         * gnulib/import/m4/d-type.m4: Update.
3911         * gnulib/import/m4/dirent_h.m4: Update.
3912         * gnulib/import/m4/dirfd.m4: Update.
3913         * gnulib/import/m4/dirname.m4: Update.
3914         * gnulib/import/m4/double-slash-root.m4: Update.
3915         * gnulib/import/m4/dup.m4: Update.
3916         * gnulib/import/m4/dup2.m4: Update.
3917         * gnulib/import/m4/eealloc.m4: Update.
3918         * gnulib/import/m4/environ.m4: Update.
3919         * gnulib/import/m4/errno_h.m4: Update.
3920         * gnulib/import/m4/error.m4: Update.
3921         * gnulib/import/m4/exponentd.m4: Update.
3922         * gnulib/import/m4/exponentl.m4: Update.
3923         * gnulib/import/m4/extensions.m4: Update.
3924         * gnulib/import/m4/extern-inline.m4: Update.
3925         * gnulib/import/m4/fchdir.m4: Update.
3926         * gnulib/import/m4/fcntl-o.m4: Update.
3927         * gnulib/import/m4/fcntl.m4: Update.
3928         * gnulib/import/m4/fcntl_h.m4: Update.
3929         * gnulib/import/m4/fdopendir.m4: Update.
3930         * gnulib/import/m4/filenamecat.m4: Update.
3931         * gnulib/import/m4/flexmember.m4: Update.
3932         * gnulib/import/m4/float_h.m4: Update.
3933         * gnulib/import/m4/fnmatch.m4: Update.
3934         * gnulib/import/m4/fnmatch_h.m4: Update.
3935         * gnulib/import/m4/fpieee.m4: Update.
3936         * gnulib/import/m4/frexp.m4: Update.
3937         * gnulib/import/m4/frexpl.m4: Update.
3938         * gnulib/import/m4/fstat.m4: Update.
3939         * gnulib/import/m4/fstatat.m4: Update.
3940         * gnulib/import/m4/getcwd-abort-bug.m4: Update.
3941         * gnulib/import/m4/getcwd-path-max.m4: Update.
3942         * gnulib/import/m4/getcwd.m4: Update.
3943         * gnulib/import/m4/getdtablesize.m4: Update.
3944         * gnulib/import/m4/getlogin.m4: Update.
3945         * gnulib/import/m4/getlogin_r.m4: Update.
3946         * gnulib/import/m4/getpagesize.m4: Update.
3947         * gnulib/import/m4/getprogname.m4: Update.
3948         * gnulib/import/m4/gettimeofday.m4: Update.
3949         * gnulib/import/m4/glibc21.m4: Update.
3950         * gnulib/import/m4/glob.m4: Update.
3951         * gnulib/import/m4/glob_h.m4: Update.
3952         * gnulib/import/m4/gnulib-cache.m4: Update.
3953         * gnulib/import/m4/gnulib-common.m4: Update.
3954         * gnulib/import/m4/gnulib-comp.m4: Update.
3955         * gnulib/import/m4/gnulib-tool.m4: Update.
3956         * gnulib/import/m4/hard-locale.m4: Update.
3957         * gnulib/import/m4/include_next.m4: Update.
3958         * gnulib/import/m4/inttypes-pri.m4: Update.
3959         * gnulib/import/m4/inttypes.m4: Update.
3960         * gnulib/import/m4/isnand.m4: Update.
3961         * gnulib/import/m4/isnanl.m4: Update.
3962         * gnulib/import/m4/largefile.m4: Update.
3963         * gnulib/import/m4/limits-h.m4: Update.
3964         * gnulib/import/m4/localcharset.m4: Update.
3965         * gnulib/import/m4/locale-fr.m4: Update.
3966         * gnulib/import/m4/locale-ja.m4: Update.
3967         * gnulib/import/m4/locale-zh.m4: Update.
3968         * gnulib/import/m4/localtime-buffer.m4: Update.
3969         * gnulib/import/m4/longlong.m4: Update.
3970         * gnulib/import/m4/lstat.m4: Update.
3971         * gnulib/import/m4/malloc.m4: Update.
3972         * gnulib/import/m4/malloca.m4: Update.
3973         * gnulib/import/m4/math_h.m4: Update.
3974         * gnulib/import/m4/mbrtowc.m4: Update.
3975         * gnulib/import/m4/mbsinit.m4: Update.
3976         * gnulib/import/m4/mbsrtowcs.m4: Update.
3977         * gnulib/import/m4/mbstate_t.m4: Update.
3978         * gnulib/import/m4/memchr.m4: Update.
3979         * gnulib/import/m4/memmem.m4: Update.
3980         * gnulib/import/m4/mempcpy.m4: Update.
3981         * gnulib/import/m4/memrchr.m4: Update.
3982         * gnulib/import/m4/mkdir.m4: Update.
3983         * gnulib/import/m4/mkstemp.m4: Update.
3984         * gnulib/import/m4/mmap-anon.m4: Update.
3985         * gnulib/import/m4/mode_t.m4: Update.
3986         * gnulib/import/m4/msvc-inval.m4: Update.
3987         * gnulib/import/m4/msvc-nothrow.m4: Update.
3988         * gnulib/import/m4/multiarch.m4: Update.
3989         * gnulib/import/m4/nocrash.m4: Update.
3990         * gnulib/import/m4/off_t.m4: Update.
3991         * gnulib/import/m4/onceonly.m4: Update.
3992         * gnulib/import/m4/open-cloexec.m4: Update.
3993         * gnulib/import/m4/open.m4: Update.
3994         * gnulib/import/m4/openat.m4: Update.
3995         * gnulib/import/m4/opendir.m4: Update.
3996         * gnulib/import/m4/pathmax.m4: Update.
3997         * gnulib/import/m4/rawmemchr.m4: Update.
3998         * gnulib/import/m4/readdir.m4: Update.
3999         * gnulib/import/m4/readlink.m4: Update.
4000         * gnulib/import/m4/realloc.m4: Update.
4001         * gnulib/import/m4/rename.m4: Update.
4002         * gnulib/import/m4/rewinddir.m4: Update.
4003         * gnulib/import/m4/rmdir.m4: Update.
4004         * gnulib/import/m4/save-cwd.m4: Update.
4005         * gnulib/import/m4/secure_getenv.m4: Update.
4006         * gnulib/import/m4/setenv.m4: Update.
4007         * gnulib/import/m4/signal_h.m4: Update.
4008         * gnulib/import/m4/ssize_t.m4: Update.
4009         * gnulib/import/m4/stat-time.m4: Update.
4010         * gnulib/import/m4/stat.m4: Update.
4011         * gnulib/import/m4/std-gnu11.m4: Update.
4012         * gnulib/import/m4/stdbool.m4: Update.
4013         * gnulib/import/m4/stddef_h.m4: Update.
4014         * gnulib/import/m4/stdint.m4: Update.
4015         * gnulib/import/m4/stdio_h.m4: Update.
4016         * gnulib/import/m4/stdlib_h.m4: Update.
4017         * gnulib/import/m4/strchrnul.m4: Update.
4018         * gnulib/import/m4/strdup.m4: Update.
4019         * gnulib/import/m4/strerror.m4: Update.
4020         * gnulib/import/m4/string_h.m4: Update.
4021         * gnulib/import/m4/strstr.m4: Update.
4022         * gnulib/import/m4/strtok_r.m4: Update.
4023         * gnulib/import/m4/sys_socket_h.m4: Update.
4024         * gnulib/import/m4/sys_stat_h.m4: Update.
4025         * gnulib/import/m4/sys_time_h.m4: Update.
4026         * gnulib/import/m4/sys_types_h.m4: Update.
4027         * gnulib/import/m4/tempname.m4: Update.
4028         * gnulib/import/m4/time_h.m4: Update.
4029         * gnulib/import/m4/unistd-safer.m4: Update.
4030         * gnulib/import/m4/unistd_h.m4: Update.
4031         * gnulib/import/m4/warn-on-use.m4: Update.
4032         * gnulib/import/m4/wchar_h.m4: Update.
4033         * gnulib/import/m4/wchar_t.m4: Update.
4034         * gnulib/import/m4/wctype_h.m4: Update.
4035         * gnulib/import/m4/wint_t.m4: Update.
4036         * gnulib/import/malloc.c: Update.
4037         * gnulib/import/malloc/scratch_buffer.h: Update.
4038         * gnulib/import/malloc/scratch_buffer_grow.c: Update.
4039         * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
4040         * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
4041         * gnulib/import/malloca.c: Update.
4042         * gnulib/import/malloca.h: Update.
4043         * gnulib/import/malloca.valgrind: Update.
4044         * gnulib/import/math.in.h: Update.
4045         * gnulib/import/mbrtowc.c: Update.
4046         * gnulib/import/mbsinit.c: Update.
4047         * gnulib/import/mbsrtowcs-impl.h: Update.
4048         * gnulib/import/mbsrtowcs-state.c: Update.
4049         * gnulib/import/mbsrtowcs.c: Update.
4050         * gnulib/import/memchr.c: Update.
4051         * gnulib/import/memmem.c: Update.
4052         * gnulib/import/mempcpy.c: Update.
4053         * gnulib/import/memrchr.c: Update.
4054         * gnulib/import/mkdir.c: Update.
4055         * gnulib/import/mkstemp.c: Update.
4056         * gnulib/import/msvc-inval.c: Update.
4057         * gnulib/import/msvc-inval.h: Update.
4058         * gnulib/import/msvc-nothrow.c: Update.
4059         * gnulib/import/msvc-nothrow.h: Update.
4060         * gnulib/import/open.c: Update.
4061         * gnulib/import/openat-die.c: Update.
4062         * gnulib/import/openat-priv.h: Update.
4063         * gnulib/import/openat-proc.c: Update.
4064         * gnulib/import/openat.c: Update.
4065         * gnulib/import/openat.h: Update.
4066         * gnulib/import/opendir.c: Update.
4067         * gnulib/import/pathmax.h: Update.
4068         * gnulib/import/pipe-safer.c: Update.
4069         * gnulib/import/rawmemchr.c: Update.
4070         * gnulib/import/readdir.c: Update.
4071         * gnulib/import/readlink.c: Update.
4072         * gnulib/import/realloc.c: Update.
4073         * gnulib/import/ref-add.sin: Update.
4074         * gnulib/import/ref-del.sin: Update.
4075         * gnulib/import/rename.c: Update.
4076         * gnulib/import/rewinddir.c: Update.
4077         * gnulib/import/rmdir.c: Update.
4078         * gnulib/import/same-inode.h: Update.
4079         * gnulib/import/save-cwd.c: Update.
4080         * gnulib/import/save-cwd.h: Update.
4081         * gnulib/import/scratch_buffer.h: Update.
4082         * gnulib/import/secure_getenv.c: Update.
4083         * gnulib/import/setenv.c: Update.
4084         * gnulib/import/signal.in.h: Update.
4085         * gnulib/import/stat-time.c: Update.
4086         * gnulib/import/stat-time.h: Update.
4087         * gnulib/import/stat-w32.c: Update.
4088         * gnulib/import/stat-w32.h: Update.
4089         * gnulib/import/stat.c: Update.
4090         * gnulib/import/stdbool.in.h: Update.
4091         * gnulib/import/stddef.in.h: Update.
4092         * gnulib/import/stdint.in.h: Update.
4093         * gnulib/import/stdio.in.h: Update.
4094         * gnulib/import/stdlib.in.h: Update.
4095         * gnulib/import/str-two-way.h: Update.
4096         * gnulib/import/strchrnul.c: Update.
4097         * gnulib/import/strdup.c: Update.
4098         * gnulib/import/streq.h: Update.
4099         * gnulib/import/strerror-override.c: Update.
4100         * gnulib/import/strerror-override.h: Update.
4101         * gnulib/import/strerror.c: Update.
4102         * gnulib/import/string.in.h: Update.
4103         * gnulib/import/stripslash.c: Update.
4104         * gnulib/import/strnlen1.c: Update.
4105         * gnulib/import/strnlen1.h: Update.
4106         * gnulib/import/strstr.c: Update.
4107         * gnulib/import/strtok_r.c: Update.
4108         * gnulib/import/sys_stat.in.h: Update.
4109         * gnulib/import/sys_time.in.h: Update.
4110         * gnulib/import/sys_types.in.h: Update.
4111         * gnulib/import/tempname.c: Update.
4112         * gnulib/import/tempname.h: Update.
4113         * gnulib/import/time.in.h: Update.
4114         * gnulib/import/unistd--.h: Update.
4115         * gnulib/import/unistd-safer.h: Update.
4116         * gnulib/import/unistd.in.h: Update.
4117         * gnulib/import/unsetenv.c: Update.
4118         * gnulib/import/verify.h: Update.
4119         * gnulib/import/extra/snippet/warn-on-use.h: Update.
4120         * gnulib/import/wchar.in.h: Update.
4121         * gnulib/import/wctype.in.h: Update.
4122         * gnulib/import/xalloc-oversized.h: Update.
4123         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4124         "53e2c179f26a890fa6685af4b6c1397ee370433b".
4125
4126 2018-09-10  Simon Marchi  <simon.marchi@ericsson.com>
4127
4128         * record-btrace.c (get_thread_current_frame): Remove
4129         old_inferior_ptid.
4130
4131 2018-09-10  Jerome Guitton  <guitton@adacore.com>
4132
4133         * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
4134         with check_tag to 1 if and only if the type is tagged and the
4135         component being searched cannot been found in the current
4136         view. Otherwise, always call ada_to_fixed_type with
4137         check_tag to 0.
4138
4139 2018-09-10  Xavier Roirand  <roirand@adacore.com>
4140
4141         * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
4142         declaration.
4143         * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
4144         * ada-varobj.c (ada_varobj_get_number_of_children,
4145         ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
4146
4147 2018-09-10  Xavier Roirand  <roirand@adacore.com>
4148
4149         * ada-valprint.c (ada_value_print): Use type instead of
4150         enclosing type.
4151
4152 2018-09-10  Xavier Roirand  <roirand@adacore.com>
4153
4154         * ada-lang.c (ada_value_subscript): Handle case when parameter is
4155         an array of access to unconstrained array.
4156
4157 2018-09-10  Xavier Roirand  <roirand@adacore.com>
4158
4159         * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
4160         (ada_check_typedef): Use it.
4161
4162 2018-09-10  Xavier Roirand  <roirand@adacore.com>
4163
4164         * ada-varobj.c (ada_varobj_describe_struct_child)
4165         (ada_varobj_describe_child): Handle union case like struct one.
4166
4167 2018-09-10  Tom Tromey  <tom@tromey.com>
4168
4169         PR python/18380:
4170         * python/python.c (_initialize_python): Make example in "python"
4171         help work in Python 3.
4172
4173 2018-09-10  Eli Zaretskii  <eliz@gnu.org>
4174
4175         * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
4176         INSTALL_PROGRAM to install gdb-add-index.sh.  Don't append
4177         $(EXEEXT) to the script, as it is not a program.
4178
4179 2018-09-09  Simon Marchi  <simon.marchi@ericsson.com>
4180
4181         * python/py-prettyprint.c (pretty_print_one_value): Return
4182         gdbpy_ref<>.
4183         (print_string_repr): Adjust.
4184         (apply_varobj_pretty_printer): Return gdbpy_ref<>.
4185         * python/python-internal.h (apply_varobj_pretty_printer): Return
4186         gdbpy_ref<>.
4187         * varobj.c (varobj_value_get_print_value): Adjust.
4188
4189 2018-09-08  Tom Tromey  <tom@tromey.com>
4190
4191         PR python/16047:
4192         * python/py-prettyprint.c (pretty_print_one_value): Check for
4193         to_string method.
4194
4195 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
4196
4197         * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
4198         replace_operator_with_call.
4199
4200 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
4201
4202         * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
4203
4204 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
4205
4206         * ada-typeprint.c (print_range): Print the bounds using TYPE
4207         rather than its TYPE_TARGET_TYPE.
4208
4209 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
4210
4211         * ada-lang.c (ada_to_fixed_value): Minor reformatting in
4212         call to ada_to_fixed_value_create.
4213
4214 2018-09-08  Jerome Guitton  <guitton@adacore.com>
4215
4216         * ada-lang.c (ada_decode): strip dot prefix in symbol name.
4217
4218 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
4219
4220         * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
4221         by calls to error.
4222
4223 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
4224
4225         * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
4226         Move update of loop variable "fi".
4227
4228 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
4229
4230         * ada-lang.c (value_assign_to_component): In the case of
4231         big-endian targets, extract the bits of the given VAL
4232         using an src_offset of zero if container is not a scalar.
4233
4234 2018-09-06  Simon Ser  <contact@emersion.fr>
4235
4236         PR gdb/23105
4237         * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
4238         TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
4239         * fbsd-tdep.c (fbsd_make_note_desc): New.
4240         (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
4241         NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
4242         * target.h (enum target_object) Add FreeBSD-specific
4243         TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
4244
4245 2018-09-06  Simon Marchi  <simon.marchi@ericsson.com>
4246
4247         * compile/compile-c.h (generate_c_for_variable_locations):
4248         Change reference to pointer.
4249         * compile/compile-c-support.c (compile_program) <compute>:
4250         Likewise.
4251         * compile/compile-c-symbols.c (generate_vla_size): Likewise.
4252         (generate_c_for_for_one_variable): Likewise
4253         (generate_c_for_variable_locations): Likewise
4254         * compile/compile-c-types.c (compile_c_instance::convert_type):
4255         Likewise
4256         * compile/compile-cplus-symbols.c (convert_one_symbol):
4257         std::move the scope passed to enter_scope.
4258         * compile/compile-cplus-types.c
4259         (compile_cplus_instance::enter_scope): Make parameter
4260         rvalue-reference.
4261         (compile_cplus_instance::new_scope): Change reference to
4262         pointer.
4263         (compile_cplus_instance::convert_type): Likewise
4264         (compile_cplus_convert_typedef): std::move the scope passed to
4265         enter_scope.
4266         (compile_cplus_convert_struct_or_union): Likewise.
4267         (compile_cplus_convert_enum): Likewise.
4268         (compile_cplus_convert_namespace): Likewise.
4269         * compile/compile-cplus.h (compile_cplus_instance)
4270         <enter_scope>: Make parameter rvalue-reference.
4271         * compile/compile-internal.h (compile_instance)
4272         <get_cached_type>: Likewise
4273         * compile/compile-loc2c.c (push): Likewise
4274         (pushf): Likewise
4275         (unary): Likewise
4276         (binary): Likewise
4277         (print_label): Likewise
4278         (pushf_register_address): Likewise
4279         (pushf_register): Likewise
4280         (do_compile_dwarf_expr_to_c): Likewise
4281         (compile_dwarf_expr_to_c): Likewise
4282         (compile_dwarf_bounds_to_c): Likewise
4283         * compile/compile.c (compile_instance::get_cached_type):
4284         Likewise
4285         * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
4286         (compile_dwarf_bounds_to_c): Likewise
4287         * dwarf2loc.c (locexpr_generate_c_location): Likewise.
4288         (dwarf2_compile_property_to_c): Likewise
4289         * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
4290         * symtab.h (struct symbol_computed_ops) <generate_c_location>:
4291         Likewise
4292
4293 2018-09-06  Simon Marchi  <simon.marchi@ericsson.com>
4294
4295         * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
4296         * tui/tui-data.c (init_content_element): Don't initialize it.
4297
4298 2018-09-06  Simon Marchi  <simon.marchi@ericsson.com>
4299
4300         * tui/tui-data.h (struct tui_win_info)
4301         <detail::opaque>: Remove.
4302         * tui/tui-data.c (init_win_info): Remove assignment.
4303
4304 2018-09-05  Tom Tromey  <tom@tromey.com>
4305
4306         * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
4307         -Wformat-nonliteral.
4308         * target-float.c (host_float_ops<T>::to_string)
4309         (host_float_ops<T>::from_string): Use
4310         DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
4311         * configure: Rebuild.
4312
4313 2018-09-05  Simon Marchi  <simon.marchi@ericsson.com>
4314
4315         * printcmd.c (printf_c_string): Use
4316         DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
4317         (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
4318
4319 2018-09-05  Tom Tromey  <tom@tromey.com>
4320
4321         * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
4322
4323 2018-09-05  Tom de Vries  <tdevries@suse.de>
4324
4325         * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
4326         with resolve_abstract_p == true.
4327         (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
4328         defaulting to false. Propagate resolve_abstract_p to
4329         dwarf2_fetch_die_loc_sect_off.
4330         * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
4331         parameter, defaulting to false.
4332         * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
4333         (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
4334         parameter.
4335         * dwarf2read.h (struct die_info): Forward-declare.
4336         (die_info_ptr): New typedef.
4337         (struct dwarf2_per_objfile): Add abstract_to_concrete field.
4338
4339 2018-09-05  Joel Brobecker  <brobecker@adacore.com>
4340
4341         GDB 8.2 released.
4342
4343 2018-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
4344             Pedro Alves  <palves@redhat.com>
4345
4346         * gnulib/Makefile.in (aclocal_m4_deps): Move to
4347         "aclocal-m4-deps.mk".  Include file here.
4348         $(srcdir)/aclocal.m4: Add "configure.ac".
4349         * gnulib/aclocal-m4-deps.mk: New file.
4350         * gnulib/update-gnulib.sh: Automatically update
4351         "aclocal-m4-deps.mk".
4352
4353 2018-09-04  Tom Tromey  <tom@tromey.com>
4354
4355         * configure: Rebuild.
4356         * configure.ac: Remove multi-ice code.
4357
4358 2018-09-04  Tom Tromey  <tom@tromey.com>
4359
4360         * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
4361         (ada-exp.o): Update.
4362
4363 2018-09-04  Tom Tromey  <tom@tromey.com>
4364
4365         * Makefile.in (printcmd.o, target-float.o): Remove.
4366         (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
4367
4368 2018-09-04  Tom Tromey  <tom@tromey.com>
4369
4370         * gnulib/Makefile.in: Remove obsolete comment.
4371         * Makefile.in: Remove obsolete comment.
4372
4373 2018-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
4374
4375         * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
4376         line with '+'.
4377
4378 2018-09-03  Andrew Burgess  <andrew.burgess@embecosm.com>
4379
4380         * riscv-tdep.c: Add 'prologue-value.h' include.
4381         (struct riscv_unwind_cache): New struct.
4382         (riscv_debug_unwinder): New global.
4383         (riscv_scan_prologue): Update arguments, capture register details
4384         from prologue scan.
4385         (riscv_skip_prologue): Reformat arguments line, move end of
4386         prologue calculation into riscv_scan_prologue.
4387         (riscv_frame_cache): Update return type, create
4388         riscv_unwind_cache, scan the prologue, and fill in remaining cache
4389         details.
4390         (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
4391         (riscv_frame_prev_register): Use the trad_frame within the
4392         riscv_unwind_cache.
4393         (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
4394         flag.
4395
4396 2018-09-03  Andrew Burgess  <andrew.burgess@embecosm.com>
4397
4398         * trad-frame.h (trad_frame_set_realreg): Declare.
4399         (trad_frame_set_addr): Declare.
4400         * trad-frame.c (trad_frame_set_realreg): Define new function.
4401         (trad_frame_set_addr): Define new function.
4402         (trad_frame_set_reg_realreg): Use new function.
4403         (trad_frame_set_reg_addr): Use new function.
4404
4405 2018-09-01  Keith Seitz  <keiths@redhat.com>
4406
4407         * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
4408         pulongest instead of "%lld".
4409         * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
4410         ATTRIBUTE_UNUSED.
4411
4412 2018-08-31  Tom Tromey  <tom@tromey.com>
4413
4414         * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
4415         variant part type.
4416
4417 2018-08-31  Pedro Alves  <palves@redhat.com>
4418
4419         * gdbarch.h: Regenerate.
4420
4421 2018-08-31  Pedro Alves  <palves@redhat.com>
4422
4423         * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
4424         * target.h (Hardware watchpoint interfaces): Describe
4425         continuable/steppable/non-steppable watchpoints.
4426         * gdbarch.h, gdbarch.c: Regenerate.
4427
4428 2018-08-31  Pedro Alves  <palves@redhat.com>
4429
4430         * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
4431         Delete.
4432         * s390-linux-nat.c
4433         (s390_linux_nat_target::have_continuable_watchpoint): Delete.
4434         * target.h (target_ops::have_continuable_watchpoint): Delete.
4435         (target_have_continuable_watchpoint): Delete.
4436         * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
4437         * target-delegates.c: Regenerate.
4438
4439 2018-08-31  Sergio Durigan Junior  <sergiodj@redhat.com>
4440
4441         * gnulib/Makefile.in (aclocal_m4_deps): Update according to
4442         the files present in "gnulib/import/m4/".
4443
4444 2018-08-30  Andrew Burgess  <andrew.burgess@embecosm.com>
4445
4446         * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
4447         c.sw, c.swsp, and c.sdsp.
4448
4449 2018-08-30  Andrew Burgess  <andrew.burgess@embecosm.com>
4450
4451         * riscv-tdep.c (struct riscv_inferior_data): Delete.
4452         (riscv_read_misa_reg): Don't cache value read into inferior data.
4453         (riscv_new_inferior_data): Delete.
4454         (riscv_inferior_data_cleanup): Delete.
4455         (riscv_inferior_data): Delete.
4456         (riscv_invalidate_inferior_data): Delete.
4457         (_initialize_riscv_tdep): Remove initialisation of inferior data.
4458
4459 2018-08-30  Simon Marchi  <simon.marchi@ericsson.com>
4460
4461         * compile/compile-cplus-types.c
4462         (compile_cplus_instance::leave_scope): Take the address of scope
4463         object.
4464         (compile_cplus_instance::convert_qualified_base): Compare quals
4465         to 0.
4466
4467 2018-08-30  Keith Seitz  <keiths@redhat.com>
4468
4469         * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
4470         Use "%s" and host_address_to_string instead of "%p" in printf.
4471
4472 2018-08-29  Keith Seitz  <keiths@redhat.com>
4473
4474         * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
4475         and compile-cplus-types.c.
4476         (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
4477         * c-lang.c (cplus_language_defn): Set C++ compile functions.
4478         * c-lang.h (cplus_get_compile_context, cplus_compute_program):
4479         Declare.
4480         * compile/compile-c-support.c: Include compile-cplus.h.
4481         (load_libcompile): Templatize.
4482         (get_compile_context): "New" function.
4483         (c_get_compile_context): Use get_compile_context.
4484         (cplus_get_compile_context): New function.
4485         (cplus_push_user_expression, cplus_pop_user_expression)
4486         (cplus_add_code_header, cplus_add_input, cplus_compile_program)
4487         (cplus_compute_program): Define new structs/functions.
4488         * compile/compile-cplus-symmbols.c: New file.
4489         * compile/compile-cplus-types.c: New file.
4490         * compile/compile-cplus.h: New file.
4491         * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
4492         Declare.
4493         * compile/compile-object-load.c (get_out_value_type): Use
4494         strncmp_iw when comparing symbol names.
4495         (compile_object_load): Add mst_bss and mst_data.
4496         * compile/compile.c (_initialize_compile): Remove
4497         -Wno-implicit-function-declaration from `compile_args'.
4498         * compile/gcc-cp-plugin.h: New file.
4499         * NEWS: Mention C++ compile support and new debug options.
4500
4501 2018-08-29  Keith Seitz  <keiths@redhat.com>
4502
4503         * linespec.c (collect_info::add_symbol): Make virtual.
4504         (struct symbol_searcher_collect_info): New struct.
4505         (symbol_searcher::find_all_symbols): New method.
4506         * symtab.h (class symbol_searcher): New class.
4507
4508 2018-08-29  Keith Seitz  <keiths@redhat.com>
4509
4510         * linespec.c (struct linespec) <function_symbols, label_symbols>:
4511         Change to vector of block_symbol.  Update all users.
4512         (struct collect_info) <symbols>: Likewise.
4513         (collect_info::add_symbol): Take block_symbol as argument.
4514         Update all callers.
4515         (decode_compound_collector) <m_symbols>: Change type to vector
4516         of block_symbol.  Update all users.
4517         (decode_compound_collector::operator ()): Change parameter type
4518         to block_symbol.
4519         (find_method, find_function_symbols, find_linespec_symbols)
4520         (find_label_symbols_in_block, find_label_symbols): Change symbol
4521         vectors to block_symbol vectors.
4522         * symtab.h (symbol_found_callback_ftype): Change parameter type to
4523         block_symbol.
4524
4525 2018-08-29  Keith Seitz  <keiths@redhat.com>
4526
4527         * linespec.c (symbolp): Remove typedef and VEC definitions.
4528         (bound_minimal_symbol_d): Likewise.
4529
4530 2018-08-29  Keith Seitz  <keiths@redhat.com>
4531
4532         * linespec.c (decode_compound_collector::decode_compound_collector):
4533         Remove initialization for `m_symtabs'.
4534         (decode_compound_collector::release_symbols): Change return type
4535         to std::vector.  Update all callers.
4536         (class decode_compound_collector) <m_symbols>: Change type to
4537         std::vector.
4538         (lookup_prefix_sym): Change return type to std::vector.  Update all
4539         callers.
4540         (compare_symbols): Remove.
4541         (std_compare_symbols): Rename to `compare_symbols'.
4542         (find_method): Change `sym_classes' parameter to std::vector.
4543         Update all callers.  Use std::sort to sort sym_classes.
4544         (find_linespec_symbols): Remove cleanup.
4545
4546 2018-08-29  Keith Seitz  <keiths@redhat.com>
4547
4548         * linespec.c (struct linespec) <minimal_symbols>: Change type to
4549         std::vector.  Update all users.
4550         (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
4551         (struct collect_info) <minimal_symbols>: Likewise.
4552         (compare_msymbols): Return bool.  Change parameters to const
4553         bound_minimal_symbol references.
4554         (find_method, find_function_symbols, find_linespec_symbols): Change
4555         `minsyms' parameter to std::vector.  Update all callers.
4556
4557 2018-08-29  Keith Seitz  <keiths@redhat.com>
4558
4559         * linespec.c (struct linespec) <label_symbols>: Change type to
4560         std::vector.  Update all users.
4561         (find_label_symbols_in_block): Change `result' parameter to
4562         std::vector.  Update all callers.
4563         (find_label_symbols): Return std::vector.  Update all callers.
4564
4565 2018-08-29  Keith Seitz  <keiths@redhat.com>
4566
4567         * linespec.c (struct linespec) <function_symbols>: Change type to
4568         std::vector.  Update all users.
4569         (struct collect_info) <function_symbols>: Likewise.
4570         (convert_linespec_to_sals): Use std::sort to sort function_symbols.
4571         (std_compare_symbols): New function.
4572         (find_method, find_function_symbols, find_linespec_symbols)
4573         (find_label_symbols_in_block): Change `symbols' parameter to
4574         std::vector.  Update all callers.
4575         (find_label_symbols): Likewise for `function_symbols' and
4576         `label_funcs_ret'.
4577
4578 2018-08-29  Keith Seitz  <keiths@redhat.com>
4579
4580         * linespec.c (symtab_vector_up): Define.
4581         (struct linespec) <file_symtabs>: Change type to std::vector *.
4582         Update all uses.
4583         (struct collect_info) <file_symtabs>: Likewise.
4584         (collect_symtabs_from_filename): Return symtab_vector_up.
4585         Update all callers.
4586         (decode_objc): Remove cleanup.
4587         (symtab_collector::symtab_collector): Initialize `m_symtabs'.
4588         (symtab_collector::release_symtabs): Return symtab_vector_up.
4589         Update all callers.
4590         (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
4591         Update all users.
4592         (collect_symtabs_from_filename, symtabs_from_filename): Return
4593         symtab_vector_up.  Update all callers.
4594
4595 2018-08-29  Tom Tromey  <tom@tromey.com>
4596
4597         * csky-tdep.c (csky_analyze_prologue): Use
4598         core_addr_to_string_nz.
4599
4600 2018-08-29  Tom Tromey  <tom@tromey.com>
4601
4602         * windows-nat.c (struct xlate_exception) <them>: Change type to
4603         DWORD.
4604         (xlate): Fix formatting.  Remove last entry.
4605         (struct xlate_exception, xlate): Comment out.
4606         (windows_nat_target::resume): Use ranged for.
4607
4608 2018-08-29  Jim Wilson  <jimw@sifive.com>
4609
4610         * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
4611         (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
4612         of NT_PRFPREG.
4613         (riscv_linux_nat_target::store_registers): Likewise.
4614
4615 2018-08-29  Sergio Durigan Junior  <sergiodj@redhat.com>
4616
4617         PR gdb/23555
4618         PR gdb/23558
4619         * gnulib/aclocal.m4: Regenerate.
4620         * gnulib/config.in: Regenerate.
4621         * gnulib/configure: Regenerate.
4622         * gnulib/import/Makefile.am: Update.
4623         * gnulib/import/Makefile.in: Update.
4624         * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
4625         * gnulib/import/_Noreturn.h: ... this.
4626         * gnulib/import/alloca.in.h: Update.
4627         * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
4628         * gnulib/import/arg-nonnull.h: ... this.
4629         * gnulib/import/assure.h: Update.
4630         * gnulib/import/at-func.c: Update.
4631         * gnulib/import/basename-lgpl.c: Update.
4632         * gnulib/import/extra/snippet/c++defs.h: Rename to...
4633         * gnulib/import/c++defs.h: ... this.
4634         * gnulib/import/canonicalize-lgpl.c: Update.
4635         * gnulib/import/cdefs.h: Update.
4636         * gnulib/import/chdir-long.c: Update.
4637         * gnulib/import/chdir-long.h: Update.
4638         * gnulib/import/cloexec.c: Update.
4639         * gnulib/import/cloexec.h: Update.
4640         * gnulib/import/close.c: Update.
4641         * gnulib/import/closedir.c: Update.
4642         * gnulib/import/config.charset: Update.
4643         * gnulib/import/dirent-private.h: Update.
4644         * gnulib/import/dirent.in.h: Update.
4645         * gnulib/import/dirfd.c: Update.
4646         * gnulib/import/dirname-lgpl.c: Update.
4647         * gnulib/import/dirname.h: Update.
4648         * gnulib/import/dosname.h: Update.
4649         * gnulib/import/dup-safer-flag.c: Update.
4650         * gnulib/import/dup-safer.c: Update.
4651         * gnulib/import/dup.c: Update.
4652         * gnulib/import/dup2.c: Update.
4653         * gnulib/import/errno.in.h: Update.
4654         * gnulib/import/error.c: Update.
4655         * gnulib/import/error.h: Update.
4656         * gnulib/import/exitfail.c: Update.
4657         * gnulib/import/exitfail.h: Update.
4658         * gnulib/import/extra/update-copyright: Update.
4659         * gnulib/import/fchdir.c: Update.
4660         * gnulib/import/fcntl.c: Update.
4661         * gnulib/import/fcntl.in.h: Update.
4662         * gnulib/import/fd-hook.c: Update.
4663         * gnulib/import/fd-hook.h: Update.
4664         * gnulib/import/fd-safer-flag.c: Update.
4665         * gnulib/import/fd-safer.c: Update.
4666         * gnulib/import/fdopendir.c: Update.
4667         * gnulib/import/filename.h: Update.
4668         * gnulib/import/filenamecat-lgpl.c: Update.
4669         * gnulib/import/filenamecat.h: Update.
4670         * gnulib/import/flexmember.h: Update.
4671         * gnulib/import/float+.h: Update.
4672         * gnulib/import/float.c: Update.
4673         * gnulib/import/float.in.h: Update.
4674         * gnulib/import/fnmatch.c: Update.
4675         * gnulib/import/fnmatch.in.h: Update.
4676         * gnulib/import/fnmatch_loop.c: Update.
4677         * gnulib/import/fpucw.h: Update.
4678         * gnulib/import/frexp.c: Update.
4679         * gnulib/import/frexpl.c: Update.
4680         * gnulib/import/fstat.c: Update.
4681         * gnulib/import/fstatat.c: Update.
4682         * gnulib/import/getcwd-lgpl.c: Update.
4683         * gnulib/import/getcwd.c: Update.
4684         * gnulib/import/getdtablesize.c: Update.
4685         * gnulib/import/getlogin_r.c: Update.
4686         * gnulib/import/getprogname.c: Update.
4687         * gnulib/import/getprogname.h: Update.
4688         * gnulib/import/gettext.h: Update.
4689         * gnulib/import/gettimeofday.c: Update.
4690         * gnulib/import/glob-libc.h: Update.
4691         * gnulib/import/glob.c: Update.
4692         * gnulib/import/glob.in.h: Update.
4693         * gnulib/import/glob_internal.h: Update.
4694         * gnulib/import/glob_pattern_p.c: Update.
4695         * gnulib/import/globfree.c: Update.
4696         * gnulib/import/hard-locale.c: Update.
4697         * gnulib/import/hard-locale.h: Update.
4698         * gnulib/import/intprops.h: Update.
4699         * gnulib/import/inttypes.in.h: Update.
4700         * gnulib/import/isnan.c: Update.
4701         * gnulib/import/isnand-nolibm.h: Update.
4702         * gnulib/import/isnand.c: Update.
4703         * gnulib/import/isnanl-nolibm.h: Update.
4704         * gnulib/import/isnanl.c: Update.
4705         * gnulib/import/itold.c: Update.
4706         * gnulib/import/libc-config.h: Update.
4707         * gnulib/import/limits.in.h: Update.
4708         * gnulib/import/localcharset.c: Update.
4709         * gnulib/import/localcharset.h: Update.
4710         * gnulib/import/localtime-buffer.c: Update.
4711         * gnulib/import/localtime-buffer.h: Update.
4712         * gnulib/import/lstat.c: Update.
4713         * gnulib/import/m4/00gnulib.m4: Update.
4714         * gnulib/import/m4/__inline.m4: Update.
4715         * gnulib/import/m4/absolute-header.m4: Update.
4716         * gnulib/import/m4/alloca.m4: Update.
4717         * gnulib/import/m4/builtin-expect.m4: Update.
4718         * gnulib/import/m4/canonicalize.m4: Update.
4719         * gnulib/import/m4/chdir-long.m4: Update.
4720         * gnulib/import/m4/close.m4: Update.
4721         * gnulib/import/m4/closedir.m4: Update.
4722         * gnulib/import/m4/configmake.m4: Update.
4723         * gnulib/import/m4/d-ino.m4: Update.
4724         * gnulib/import/m4/d-type.m4: Update.
4725         * gnulib/import/m4/dirent_h.m4: Update.
4726         * gnulib/import/m4/dirfd.m4: Update.
4727         * gnulib/import/m4/dirname.m4: Update.
4728         * gnulib/import/m4/double-slash-root.m4: Update.
4729         * gnulib/import/m4/dup.m4: Update.
4730         * gnulib/import/m4/dup2.m4: Update.
4731         * gnulib/import/m4/eealloc.m4: Update.
4732         * gnulib/import/m4/environ.m4: Update.
4733         * gnulib/import/m4/errno_h.m4: Update.
4734         * gnulib/import/m4/error.m4: Update.
4735         * gnulib/import/m4/exponentd.m4: Update.
4736         * gnulib/import/m4/exponentl.m4: Update.
4737         * gnulib/import/m4/extensions.m4: Update.
4738         * gnulib/import/m4/extern-inline.m4: Update.
4739         * gnulib/import/m4/fchdir.m4: Update.
4740         * gnulib/import/m4/fcntl-o.m4: Update.
4741         * gnulib/import/m4/fcntl.m4: Update.
4742         * gnulib/import/m4/fcntl_h.m4: Update.
4743         * gnulib/import/m4/fdopendir.m4: Update.
4744         * gnulib/import/m4/filenamecat.m4: Update.
4745         * gnulib/import/m4/flexmember.m4: Update.
4746         * gnulib/import/m4/float_h.m4: Update.
4747         * gnulib/import/m4/fnmatch.m4: Update.
4748         * gnulib/import/m4/fnmatch_h.m4: Update.
4749         * gnulib/import/m4/fpieee.m4: Update.
4750         * gnulib/import/m4/frexp.m4: Update.
4751         * gnulib/import/m4/frexpl.m4: Update.
4752         * gnulib/import/m4/fstat.m4: Update.
4753         * gnulib/import/m4/fstatat.m4: Update.
4754         * gnulib/import/m4/getcwd-abort-bug.m4: Update.
4755         * gnulib/import/m4/getcwd-path-max.m4: Update.
4756         * gnulib/import/m4/getcwd.m4: Update.
4757         * gnulib/import/m4/getdtablesize.m4: Update.
4758         * gnulib/import/m4/getlogin.m4: Update.
4759         * gnulib/import/m4/getlogin_r.m4: Update.
4760         * gnulib/import/m4/getpagesize.m4: Update.
4761         * gnulib/import/m4/getprogname.m4: Update.
4762         * gnulib/import/m4/gettimeofday.m4: Update.
4763         * gnulib/import/m4/glibc21.m4: Update.
4764         * gnulib/import/m4/glob.m4: Update.
4765         * gnulib/import/m4/glob_h.m4: Update.
4766         * gnulib/import/m4/gnulib-cache.m4: Update.
4767         * gnulib/import/m4/gnulib-common.m4: Update.
4768         * gnulib/import/m4/gnulib-comp.m4: Update.
4769         * gnulib/import/m4/gnulib-tool.m4: Update.
4770         * gnulib/import/m4/hard-locale.m4: Update.
4771         * gnulib/import/m4/include_next.m4: Update.
4772         * gnulib/import/m4/inttypes-pri.m4: Update.
4773         * gnulib/import/m4/inttypes.m4: Update.
4774         * gnulib/import/m4/isnand.m4: Update.
4775         * gnulib/import/m4/isnanl.m4: Update.
4776         * gnulib/import/m4/largefile.m4: Update.
4777         * gnulib/import/m4/limits-h.m4: Update.
4778         * gnulib/import/m4/localcharset.m4: Update.
4779         * gnulib/import/m4/locale-fr.m4: Update.
4780         * gnulib/import/m4/locale-ja.m4: Update.
4781         * gnulib/import/m4/locale-zh.m4: Update.
4782         * gnulib/import/m4/localtime-buffer.m4: Update.
4783         * gnulib/import/m4/longlong.m4: Update.
4784         * gnulib/import/m4/lstat.m4: Update.
4785         * gnulib/import/m4/malloc.m4: Update.
4786         * gnulib/import/m4/malloca.m4: Update.
4787         * gnulib/import/m4/math_h.m4: Update.
4788         * gnulib/import/m4/mbrtowc.m4: Update.
4789         * gnulib/import/m4/mbsinit.m4: Update.
4790         * gnulib/import/m4/mbsrtowcs.m4: Update.
4791         * gnulib/import/m4/mbstate_t.m4: Update.
4792         * gnulib/import/m4/memchr.m4: Update.
4793         * gnulib/import/m4/memmem.m4: Update.
4794         * gnulib/import/m4/mempcpy.m4: Update.
4795         * gnulib/import/m4/memrchr.m4: Update.
4796         * gnulib/import/m4/mkdir.m4: Update.
4797         * gnulib/import/m4/mkstemp.m4: Update.
4798         * gnulib/import/m4/mmap-anon.m4: Update.
4799         * gnulib/import/m4/mode_t.m4: Update.
4800         * gnulib/import/m4/msvc-inval.m4: Update.
4801         * gnulib/import/m4/msvc-nothrow.m4: Update.
4802         * gnulib/import/m4/multiarch.m4: Update.
4803         * gnulib/import/m4/nocrash.m4: Update.
4804         * gnulib/import/m4/off_t.m4: Update.
4805         * gnulib/import/m4/onceonly.m4: Update.
4806         * gnulib/import/m4/open-cloexec.m4: Update.
4807         * gnulib/import/m4/open.m4: Update.
4808         * gnulib/import/m4/openat.m4: Update.
4809         * gnulib/import/m4/opendir.m4: Update.
4810         * gnulib/import/m4/pathmax.m4: Update.
4811         * gnulib/import/m4/rawmemchr.m4: Update.
4812         * gnulib/import/m4/readdir.m4: Update.
4813         * gnulib/import/m4/readlink.m4: Update.
4814         * gnulib/import/m4/realloc.m4: Update.
4815         * gnulib/import/m4/rename.m4: Update.
4816         * gnulib/import/m4/rewinddir.m4: Update.
4817         * gnulib/import/m4/rmdir.m4: Update.
4818         * gnulib/import/m4/save-cwd.m4: Update.
4819         * gnulib/import/m4/secure_getenv.m4: Update.
4820         * gnulib/import/m4/setenv.m4: Update.
4821         * gnulib/import/m4/signal_h.m4: Update.
4822         * gnulib/import/m4/ssize_t.m4: Update.
4823         * gnulib/import/m4/stat-time.m4: Update.
4824         * gnulib/import/m4/stat.m4: Update.
4825         * gnulib/import/m4/std-gnu11.m4: Update.
4826         * gnulib/import/m4/stdbool.m4: Update.
4827         * gnulib/import/m4/stddef_h.m4: Update.
4828         * gnulib/import/m4/stdint.m4: Update.
4829         * gnulib/import/m4/stdio_h.m4: Update.
4830         * gnulib/import/m4/stdlib_h.m4: Update.
4831         * gnulib/import/m4/strchrnul.m4: Update.
4832         * gnulib/import/m4/strdup.m4: Update.
4833         * gnulib/import/m4/strerror.m4: Update.
4834         * gnulib/import/m4/string_h.m4: Update.
4835         * gnulib/import/m4/strstr.m4: Update.
4836         * gnulib/import/m4/strtok_r.m4: Update.
4837         * gnulib/import/m4/sys_socket_h.m4: Update.
4838         * gnulib/import/m4/sys_stat_h.m4: Update.
4839         * gnulib/import/m4/sys_time_h.m4: Update.
4840         * gnulib/import/m4/sys_types_h.m4: Update.
4841         * gnulib/import/m4/tempname.m4: Update.
4842         * gnulib/import/m4/time_h.m4: Update.
4843         * gnulib/import/m4/unistd-safer.m4: Update.
4844         * gnulib/import/m4/unistd_h.m4: Update.
4845         * gnulib/import/m4/warn-on-use.m4: Update.
4846         * gnulib/import/m4/wchar_h.m4: Update.
4847         * gnulib/import/m4/wchar_t.m4: Update.
4848         * gnulib/import/m4/wctype_h.m4: Update.
4849         * gnulib/import/m4/wint_t.m4: Update.
4850         * gnulib/import/malloc.c: Update.
4851         * gnulib/import/malloc/scratch_buffer.h: Update.
4852         * gnulib/import/malloc/scratch_buffer_grow.c: Update.
4853         * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
4854         * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
4855         * gnulib/import/malloca.c: Update.
4856         * gnulib/import/malloca.h: Update.
4857         * gnulib/import/malloca.valgrind: Update.
4858         * gnulib/import/math.in.h: Update.
4859         * gnulib/import/mbrtowc.c: Update.
4860         * gnulib/import/mbsinit.c: Update.
4861         * gnulib/import/mbsrtowcs-impl.h: Update.
4862         * gnulib/import/mbsrtowcs-state.c: Update.
4863         * gnulib/import/mbsrtowcs.c: Update.
4864         * gnulib/import/memchr.c: Update.
4865         * gnulib/import/memmem.c: Update.
4866         * gnulib/import/mempcpy.c: Update.
4867         * gnulib/import/memrchr.c: Update.
4868         * gnulib/import/mkdir.c: Update.
4869         * gnulib/import/mkstemp.c: Update.
4870         * gnulib/import/msvc-inval.c: Update.
4871         * gnulib/import/msvc-inval.h: Update.
4872         * gnulib/import/msvc-nothrow.c: Update.
4873         * gnulib/import/msvc-nothrow.h: Update.
4874         * gnulib/import/open.c: Update.
4875         * gnulib/import/openat-die.c: Update.
4876         * gnulib/import/openat-priv.h: Update.
4877         * gnulib/import/openat-proc.c: Update.
4878         * gnulib/import/openat.c: Update.
4879         * gnulib/import/openat.h: Update.
4880         * gnulib/import/opendir.c: Update.
4881         * gnulib/import/pathmax.h: Update.
4882         * gnulib/import/pipe-safer.c: Update.
4883         * gnulib/import/rawmemchr.c: Update.
4884         * gnulib/import/readdir.c: Update.
4885         * gnulib/import/readlink.c: Update.
4886         * gnulib/import/realloc.c: Update.
4887         * gnulib/import/ref-add.sin: Update.
4888         * gnulib/import/ref-del.sin: Update.
4889         * gnulib/import/rename.c: Update.
4890         * gnulib/import/rewinddir.c: Update.
4891         * gnulib/import/rmdir.c: Update.
4892         * gnulib/import/same-inode.h: Update.
4893         * gnulib/import/save-cwd.c: Update.
4894         * gnulib/import/save-cwd.h: Update.
4895         * gnulib/import/scratch_buffer.h: Update.
4896         * gnulib/import/secure_getenv.c: Update.
4897         * gnulib/import/setenv.c: Update.
4898         * gnulib/import/signal.in.h: Update.
4899         * gnulib/import/stat-time.c: Update.
4900         * gnulib/import/stat-time.h: Update.
4901         * gnulib/import/stat-w32.c: Update.
4902         * gnulib/import/stat-w32.h: Update.
4903         * gnulib/import/stat.c: Update.
4904         * gnulib/import/stdbool.in.h: Update.
4905         * gnulib/import/stddef.in.h: Update.
4906         * gnulib/import/stdint.in.h: Update.
4907         * gnulib/import/stdio.in.h: Update.
4908         * gnulib/import/stdlib.in.h: Update.
4909         * gnulib/import/str-two-way.h: Update.
4910         * gnulib/import/strchrnul.c: Update.
4911         * gnulib/import/strdup.c: Update.
4912         * gnulib/import/streq.h: Update.
4913         * gnulib/import/strerror-override.c: Update.
4914         * gnulib/import/strerror-override.h: Update.
4915         * gnulib/import/strerror.c: Update.
4916         * gnulib/import/string.in.h: Update.
4917         * gnulib/import/stripslash.c: Update.
4918         * gnulib/import/strnlen1.c: Update.
4919         * gnulib/import/strnlen1.h: Update.
4920         * gnulib/import/strstr.c: Update.
4921         * gnulib/import/strtok_r.c: Update.
4922         * gnulib/import/sys_stat.in.h: Update.
4923         * gnulib/import/sys_time.in.h: Update.
4924         * gnulib/import/sys_types.in.h: Update.
4925         * gnulib/import/tempname.c: Update.
4926         * gnulib/import/tempname.h: Update.
4927         * gnulib/import/time.in.h: Update.
4928         * gnulib/import/unistd--.h: Update.
4929         * gnulib/import/unistd-safer.h: Update.
4930         * gnulib/import/unistd.in.h: Update.
4931         * gnulib/import/unsetenv.c: Update.
4932         * gnulib/import/verify.h: Update.
4933         * gnulib/import/extra/snippet/warn-on-use.h: Update.
4934         * gnulib/import/wchar.in.h: Update.
4935         * gnulib/import/wctype.in.h: Update.
4936         * gnulib/import/xalloc-oversized.h: Update.
4937         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4938         "53e2c179f26a890fa6685af4b6c1397ee370433b".
4939
4940 2018-08-16  Gary Benson <gbenson@redhat.com>
4941
4942         PR gdb/13000:
4943         * gdb/main.c (captured_main_1): Exit with nonzero status
4944         in batch mode if the last command to be executed failed.
4945         * NEWS: Mention the above.
4946
4947 2018-08-29  Simon Marchi  <simon.marchi@ericsson.com>
4948
4949         * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
4950         end of warning message.
4951
4952 2018-08-29  Alan Hayward  <alan.hayward@arm.com>
4953
4954         PR gdb/22943:
4955         * aarch64-tdep.c (is_hfa_or_hva): Remove function.
4956         (aarch64_extract_return_value): Use
4957         aapcs_is_vfp_call_or_return_candidate.
4958         (aarch64_return_in_memory): Likewise.
4959         (aarch64_store_return_value): Likewise.
4960
4961 2018-08-29  Alan Hayward  <alan.hayward@arm.com>
4962
4963         * aarch64-tdep.c
4964         (aapcs_is_vfp_call_or_return_candidate): Make static
4965         (pass_in_v_or_stack): Remove function.
4966         (pass_in_v_vfp_candidate): New function.
4967         (aarch64_push_dummy_call): Check for float register candidates.
4968
4969 2018-08-29  Alan Hayward  <alan.hayward@arm.com>
4970
4971         * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
4972         (aapcs_is_vfp_call_or_return_candidate_1): New function.
4973         (aapcs_is_vfp_call_or_return_candidate): Likewise.
4974
4975 2018-08-28  Simon Marchi  <simon.marchi@polymtl.ca>
4976
4977         PR build/23399
4978         * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
4979         (struct ipa_sym_addresses): Rename to...
4980         (struct ipa_sym_addresses_common): ... this.
4981         * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
4982
4983 2018-08-28  Tom Tromey  <tom@tromey.com>
4984
4985         * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4986         (token_fifo): Now a std::vector.
4987         (yylex, c_parse): Update.
4988         * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4989         (token_fifo): Now a std::vector.
4990         (yylex, d_parse): Update.
4991         * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4992         (token_fifo): Now a std::vector.
4993         (yylex, go_parse): Update.
4994
4995 2018-08-28  Simon Marchi  <simon.marchi@ericsson.com>
4996
4997         * parser-defs.h (struct type_stack) <elements>: Change type to
4998         std::vector<union type_stack_elt>.
4999         <depth, size>: Remove.
5000         * parse.c (parse_exp_in_context_1): Adjust.
5001         (type_stack_reserve): Remove.
5002         (check_type_stack_depth): Remove.
5003         (insert_into_type_stack): Adjust to std::vector.
5004         (insert_type): Likewise.
5005         (push_type): Likewise.
5006         (push_type_int): Likewise.
5007         (insert_type_address_space): Likewise.
5008         (pop_type): Likewise.
5009         (pop_type_int): Likewise.
5010         (pop_typelist): Likewise.
5011         (pop_type_stack): Likewise.
5012         (append_type_stack): Likewise.
5013         (push_type_stack): Likewise.
5014         (get_type_stack): Likewise.
5015         (type_stack_cleanup): Likewise.
5016         (push_typelist): Likewise.
5017         (follow_types): Likewise.
5018         (_initialize_parse): Likewise.
5019
5020 2018-08-28  Hafiz Abid Qadeer  <abidh@codesourcery.com>
5021
5022         * NEWS: Mention csky target.
5023
5024 2018-08-28  Jiangshuai Li  <jiangshuai_li@c-sky.com>
5025             Hafiz Abid Qadeer  <abidh@codesourcery.com>
5026             Don Breazeal  <donb@codesourcery.com>
5027
5028         * csky-linux-tdep.c: New file.
5029         * csky-tdep.c: Likewise.
5030         * csky-tdep.h: Likewise.
5031         * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
5032         csky-tdep.o.
5033         (HFILES_NO_SRCDIR): Add csky-tdep.h.
5034         (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
5035         * configure.tgt: Add csky support.
5036
5037 2018-08-27  Jan Vrany  <jan.vrany@fit.cvut.cz>
5038
5039         * python/py-framefilter.c (py_print_frame): Print frame architecture
5040         when printing on an MI output.
5041
5042 2018-08-27  Tom Tromey  <tom@tromey.com>
5043
5044         PR build/23087:
5045         * configure: Rebuild.
5046         * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
5047
5048 2018-08-27  Tom Tromey  <tom@tromey.com>
5049
5050         * aarch64-linux-tdep.c
5051         (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
5052         casts to int.
5053
5054 2018-08-27  Tom Tromey  <tom@tromey.com>
5055
5056         * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
5057         unsigned.
5058         (ppc64_standard_linkage1, ppc64_standard_linkage2)
5059         (ppc64_standard_linkage3, ppc64_standard_linkage4)
5060         (ppc64_standard_linkage5, ppc64_standard_linkage6)
5061         (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
5062         unsigned.
5063
5064 2018-08-27  Tom Tromey  <tom@tromey.com>
5065
5066         * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
5067         (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
5068
5069 2018-08-27  Tom Tromey  <tom@tromey.com>
5070
5071         * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
5072         * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
5073         ULONGEST_MAX.
5074         * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
5075         ULONGEST_MAX.
5076         * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
5077         ULONGEST_MAX.
5078         * sparc-linux-tdep.c (sparc32_linux_sigframe)
5079         (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
5080         * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
5081         ULONGEST_MAX.
5082         * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
5083         (ppc64_linux_sigaction_tramp_frame)
5084         (ppc32_linux_sighandler_tramp_frame)
5085         (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
5086         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
5087         (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
5088         * mn10300-linux-tdep.c (am33_linux_sigframe)
5089         (am33_linux_rt_sigframe): Use ULONGEST_MAX.
5090         * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
5091         * mips-linux-tdep.c (mips_linux_o32_sigframe)
5092         (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5093         (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
5094         (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
5095         (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
5096         * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
5097         (mips64_fbsd_sigframe): Use ULONGEST_MAX.
5098         * microblaze-linux-tdep.c
5099         (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
5100         * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
5101         (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
5102         (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
5103         * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
5104         * common/common-types.h (ULONGEST_MAX): New define.
5105         (CORE_ADDR_MAX): Fix formatting.
5106         * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
5107         * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
5108         * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
5109         (arm_linux_rt_sigreturn_tramp_frame)
5110         (arm_eabi_linux_sigreturn_tramp_frame)
5111         (arm_eabi_linux_rt_sigreturn_tramp_frame)
5112         (thumb2_eabi_linux_sigreturn_tramp_frame)
5113         (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
5114         (arm_linux_restart_syscall_tramp_frame)
5115         (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
5116         * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
5117         * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
5118         ULONGEST_MAX.
5119         * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
5120
5121 2018-08-27  Tom Tromey  <tom@tromey.com>
5122
5123         * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
5124         CORE_ADDR_MAX.
5125         * mips-tdep.c (mips_deal_with_atomic_sequence)
5126         (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
5127         * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
5128         (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
5129         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
5130         CORE_ADDR_MAX.
5131         * aarch64-tdep.c (aarch64_software_single_step): Use
5132         CORE_ADDR_MAX.
5133
5134 2018-08-27  Tom Tromey  <tom@tromey.com>
5135
5136         * linespec.c (complete_linespec_component): Add cast to "char".
5137         * completer.c (completion_tracker::build_completion_result): Add
5138         cast to "char".
5139
5140 2018-08-26  Simon Marchi  <simon.marchi@polymtl.ca>
5141
5142         * solist.h (struct solist, struct target_so_ops): Fix
5143         indentation.
5144
5145 2018-08-26  Simon Marchi  <simon.marchi@polymtl.ca>
5146
5147         * ada-tasks.c (ada_task_info_s): Remove typedef.
5148         (DEF_VEC_O(ada_task_info_s)): Remove.
5149         (struct ada_tasks_inferior_data): Initialize fields.
5150         <task_list>: Make an std::vector.
5151         (get_ada_tasks_inferior_data): Allocate with new.
5152         (ada_get_task_number): Adjust.
5153         (get_task_number_from_id): Likewise.
5154         (valid_task_id): Likewise.
5155         (ada_get_task_info_from_ptid): Likewise.
5156         (iterate_over_live_ada_tasks): Likewise.
5157         (add_ada_task): Likewise.
5158         (read_known_tasks): Likewise.
5159         (ada_build_task_list): Likewise.
5160         (print_ada_task_info): Likewise.
5161         (info_task): Likewise.
5162         (task_command_1): Likewise.
5163
5164 2018-08-26  Simon Marchi  <simon.marchi@polymtl.ca>
5165
5166         * ada-lang.c (add_angle_brackets): Return std::string.
5167
5168 2018-08-25  Simon Marchi  <simon.marchi@polymtl.ca>
5169
5170         * python/py-threadevent.c (py_get_event_thread): Initialize
5171         pythread.
5172
5173 2018-08-24  Pedro Alves  <palves@redhat.com>
5174
5175         * python/py-bpevent.c (create_breakpoint_event_object): Use
5176         copy-initialization.
5177         * python/py-continueevent.c (emit_continue_event): Use
5178         copy-initialization.
5179         * python/py-exitedevent.c (create_exited_event_object): Return a
5180         gdbpy_ref<>.
5181         (emit_exited_event): Use copy-initialization.
5182         * python/py-inferior.c (python_new_inferior)
5183         (python_inferior_deleted, add_thread_object): Use
5184         copy-initialization.
5185         * python/py-infevents.c (create_inferior_call_event_object)
5186         (create_register_changed_event_object)
5187         (create_memory_changed_event_object): Return a gdbpy_ref<>.
5188         (emit_inferior_call_event, emit_memory_changed_event)
5189         (emit_register_changed_event): Use copy-initialization.
5190         * python/py-newobjfileevent.c (create_new_objfile_event_object):
5191         Return a gdbpy_ref<>.
5192         (emit_new_objfile_event): Use copy-initialization.
5193         (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
5194         (emit_clear_objfiles_event): Use copy-initialization.
5195         * python/py-signalevent.c (create_signal_event_object): Use
5196         copy-initialization.
5197         * python/py-threadevent.c (create_thread_event_object): Use
5198         copy-initialization.
5199
5200 2018-08-24  Pedro Alves  <palves@redhat.com>
5201             Simon Marchi  <simon.marchi@ericsson.com>
5202
5203         PR gdb/23379
5204         * python/py-continueevent.c: Include "gdbthread.h".
5205         (create_continue_event_object): Add intro comment.  Add 'ptid'
5206         parameter.  Use it to find thread to pass to
5207         create_thread_event_object.
5208         (emit_continue_event): Pass PTID down to
5209         create_continue_event_object.
5210         * python/py-event.h (py_get_event_thread): Declare.
5211         (create_thread_event_object): Remove default from 'thread'
5212         parameter.
5213         * python/py-stopevent.c (create_stop_event_object): Use
5214         py_get_event_thread.
5215         * python/py-threadevent.c (get_event_thread): Rename to ...
5216         (py_get_event_thread): ... this, make extern, add 'ptid' parameter
5217         and use it to find the thread.
5218         (create_thread_event_object): Assert that THREAD isn't null.
5219         Don't find the event thread here.
5220
5221 2018-08-23  Kevin Buettner  <kevinb@redhat.com>
5222
5223         * block.h (blockrange, blockranges): New struct declarations.
5224         (struct block): Add new field named `ranges'.
5225         (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
5226         (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
5227         macros for accessing ranges in struct block.
5228         (make_blockranges): New declaration.
5229         block.c (make_blockranges): New function.
5230         * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
5231         for block.
5232         * symtab.h (find_pc_partial_function): Add new parameter `block'.
5233         * blockframe.c (cache_pc_function_block): New static global.
5234         (clear_pc_function_cache): Clear cache_pc_function_block.
5235         (find_pc_partial_function): Move comment to symtab.h.  Add
5236         support for non-contiguous blocks.
5237         * cli/cli-cmds.c (block.h): Include.
5238         (print_disassembly): Handle printing of non-contiguous blocks.
5239         (disassemble_current_function): Likewise.
5240         (disassemble_command): Likewise.
5241
5242         * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
5243         BLOCK_START.
5244         * blockframe.c (get_pc_function_start): Likewise.
5245         * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
5246         (gcc_symbol_address): Likewise.
5247         * compile/compile-object-run.c (compile_object_run): Likewise.
5248         * compile/compile.c (get_expr_block_and_pc): Likewise.
5249         * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
5250         (func_addr_to_tail_call_list): Likewise.
5251         * findvar.c (default_read_var_value): Likewise.
5252         * inline-frame.c (inline_frame_this_id): Likewise.
5253         (skip-inline_frames): Likewise.
5254         * infcmd.c (until_next_command): Likewise.
5255         * linespec.c (convert_linespec_to_sals): Likewise.
5256         * parse.c (parse_exp_in_context_1): Likewise.
5257         * printcmd.c (build_address_symbolic): likewise.
5258         (info_address_command): Likewise.
5259         symtab.c (find_function_start_sal): Likewise.
5260         (skip_prologue_sal): Likewise.
5261         (find_function_alias_target): Likewise.
5262         (find_gnu_ifunc): Likewise.
5263         * stack.c (find_frame_funname): Likewise.
5264         * symtab.c (fixup_symbol_section): Likewise.
5265         (find_function_start_sal): Likewise.
5266         (skip_prologue_sal): Likewsie.
5267         (find_function_alias_target): Likewise.
5268         (find_gnu_ifunc): Likewise.
5269         * tracepoint.c (info_scope_command): Likewise.
5270         * value.c (value_fn_field): Likewise.
5271
5272         * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
5273         in place of find_pc_partial_function.
5274         * blockframe.c (find_function_entry_range_from_pc): New function.
5275         * symtab.h (find_function_entry_range_from_pc): Declare and document.
5276         * objfiles.c (objfile_relocate1): Relocate start and end addresses
5277         for each range in a block.
5278
5279
5280 2018-08-23  Xavier Roirand  <roirand@adacore.com>
5281
5282         * machoread.c (macho_symfile_read_all_oso): Remove uneeded
5283         incrementation.
5284
5285 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
5286
5287         * solib-svr4.c (read_program_headers_from_bfd): Return
5288         gdb::optional<gdb::byte_vector>.
5289         (svr4_exec_displacement): Adjust.
5290
5291 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
5292
5293         * solib-svr4.c (read_program_header): Return
5294         gdb::optional<gdb::byte_vector>, remove p_sect_size param.
5295         (find_program_interpreter): Return
5296         gdb::optional<gdb::byte_vector>.
5297         (scan_dyntag_auxv): Adjust.
5298         (enable_break): Adjust.
5299         (svr4_exec_displacement): Adjust.
5300
5301 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
5302
5303         * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
5304         * inf-child.c (inf_child_target::terminal_save_inferior): New.
5305
5306 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
5307
5308         * guile/scm-string.c (gdbscm_scm_from_printf): Use
5309         string_vprintf.
5310         * guile/scm-utils.c (gdbscm_printf): Likewise.
5311         * serial.c (serial_printf): Likewise.
5312         * xml-support.c (gdb_xml_parser::vdebug): Likewise.
5313
5314 2018-08-22  Jan Vrany  <jan.vrany@fit.cvut.cz>
5315
5316         * stack.c (print_frame): Print frame architecture when printing on
5317         an MI output.
5318         * NEWS: Mention new "arch" attribute in frame output.
5319
5320 2018-08-21  Alan Hayward  <alan.hayward@arm.com>
5321
5322         * arch/aarch64.h (aarch64_regnum): Update comment.
5323
5324 2018-08-21  Alan Hayward  <alan.hayward@arm.com>
5325
5326         * NEWS: Add SVE to 8.2 section.
5327
5328 2018-08-21  Pedro Alves  <palves@redhat.com>
5329
5330         * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
5331         out from gdbscm_parse_function_args.
5332         (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
5333         gdbscm_parse_function_args_1.
5334
5335 2018-08-21  Simon Marchi  <simon.marchi@ericsson.com>
5336
5337         PR gdb/17816
5338         * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
5339         operator.
5340
5341 2018-08-19  Simon Marchi  <simon.marchi@polymtl.ca>
5342
5343         * solib-svr4.c (svr4_exec_displacement): Fix formatting.
5344
5345 2018-08-19  Michael Spang  <spang@google.com>
5346
5347         PR gdb/11786
5348         * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
5349         for PT_TLS segments.
5350
5351 2018-08-18  Kevin Buettner  <kevinb@redhat.com>
5352
5353         * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
5354         dwarf_variable_value.
5355         * dwarf2-frame.c (class dwarf_expr_executor):
5356         Add override for dwarf_variable_value.
5357         * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
5358         (class symbol_needs_eval_context): Likewise.
5359         (indirect_synthetic_pointer): Add forward declaration.
5360         (sect_variable_value): New function.
5361         (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
5362         * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
5363         for DW_OP_GNU_variable_value.
5364
5365 2018-08-16  Tom Tromey  <tom@tromey.com>
5366
5367         * top.c (read_command_file): Update.
5368         (command_line_input): Remove "repeat" argument.
5369         * ada-lang.c (get_selections): Update.
5370         * linespec.c (decode_line_2): Update.
5371         * defs.h (command_line_input): Remove argument.
5372         * cli/cli-script.c (read_next_line): Update.
5373         * python/py-gdb-readline.c: Update.
5374
5375 2018-08-17  Tom Tromey  <tom@tromey.com>
5376
5377         * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
5378         command_line_input.
5379
5380 2018-08-15  Tom Tromey  <tom@tromey.com>
5381
5382         * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
5383
5384 2018-08-14  Jan Vrany  <jan.vrany@fit.cvut.cz>
5385
5386         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
5387         If used, use find_pc_partial_function to find address range
5388         to disassemble.
5389         * mi/mi-main.c (mi_cmd_list_features): Report
5390         "data-disassemble-a-option" feature.
5391         * NEWS: Mention new -data-disassemble option -a.
5392
5393 2018-08-13  Tom Tromey  <tom@tromey.com>
5394
5395         * common/common-defs.h (_FORTIFY_SOURCE): Define.
5396
5397 2018-08-13  Alan Hayward  <alan.hayward@arm.com>
5398
5399         * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
5400         (aarch64_linux_collect_sve_regset): Likewise.
5401         (aarch64_linux_iterate_over_regset_sections): Check for SVE.
5402         * regcache.h (regcache_map_entry_size): New function.
5403
5404 2018-08-13  Alan Hayward  <alan.hayward@arm.com>
5405
5406         * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
5407         (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
5408         (SVE_HEADER_VL_LENGTH): Likewise.
5409         (SVE_HEADER_MAX_VL_LENGTH): Likewise.
5410         (SVE_HEADER_FLAGS_LENGTH): Likewise.
5411         (SVE_HEADER_RESERVED_LENGTH): Likewise.
5412         (SVE_HEADER_SIZE_OFFSET): Likewise.
5413         (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
5414         (SVE_HEADER_VL_OFFSET): Likewise.
5415         (SVE_HEADER_MAX_VL_OFFSET): Likewise.
5416         (SVE_HEADER_FLAGS_OFFSET): Likewise.
5417         (SVE_HEADER_RESERVED_OFFSET): Likewise.
5418         (SVE_HEADER_SIZE): Likewise.
5419         (aarch64_linux_core_read_vq): Add function.
5420         (aarch64_linux_core_read_description): Check for SVE section.
5421
5422 2018-08-13  Alan Hayward  <alan.hayward@arm.com>
5423
5424         * aarch64-fbsd-tdep.c
5425         (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
5426         collect_size.
5427         * aarch64-linux-tdep.c
5428         (aarch64_linux_iterate_over_regset_sections): Likewise.
5429         * alpha-linux-tdep.c
5430         (alpha_linux_iterate_over_regset_sections):
5431         * alpha-nbsd-tdep.c
5432         (alphanbsd_iterate_over_regset_sections): Likewise.
5433         * amd64-fbsd-tdep.c
5434         (amd64fbsd_iterate_over_regset_sections): Likewise.
5435         * amd64-linux-tdep.c
5436         (amd64_linux_iterate_over_regset_sections): Likewise.
5437         * arm-bsd-tdep.c
5438         (armbsd_iterate_over_regset_sections): Likewise.
5439         * arm-fbsd-tdep.c
5440         (arm_fbsd_iterate_over_regset_sections): Likewise.
5441         * arm-linux-tdep.c
5442         (arm_linux_iterate_over_regset_sections): Likewise.
5443         * corelow.c (get_core_registers_cb): Likewise.
5444         (core_target::fetch_registers): Likewise.
5445         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
5446         * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
5447         * gdbarch.h (void): Regenerate.
5448         * gdbarch.sh: Add supply_size and collect_size.
5449         * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
5450         * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
5451         * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
5452         * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
5453         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
5454         * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
5455         * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
5456         * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
5457         * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
5458         * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
5459         * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
5460         * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
5461         * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
5462         * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
5463         * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections):
5464         Likewise.
5465         * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
5466         * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
5467         * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
5468         * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
5469         * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
5470         * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
5471         * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections):
5472         Likewise.
5473         * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
5474         * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
5475         * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
5476         * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
5477         * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
5478         * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
5479         * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
5480         * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
5481
5482 2018-08-10  Simon Marchi  <simon.marchi@ericsson.com>
5483
5484         * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
5485         with string_printf.
5486
5487 2018-08-10  Keith Seitz  <keiths@redhat.com>
5488
5489         * compile/compile-c-support.c (add_code_header, add_code_footer):
5490         Move into policy class.
5491         (c_push_user_expression, pop_user_expression_nop)
5492         (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
5493         (compile_program): New host class.
5494         (c_compile_program): New typedef.
5495         (c_compute_porgram): Use c_compile_program.
5496
5497 2018-08-10  Keith Seitz  <keiths@redhat.com>
5498
5499         * compile/compile-internal.h (compile_instance::~compile_instance):
5500         Remove calls to htab_delete.
5501         <m_type_map, m_symbol_err_map>: Switch type to htab_up.
5502         * compile.c (compile_instance::compile_instance): Initialize
5503         htab unique pointers.
5504         (compile_instance::get_cached_type, compile_instance::insert_type)
5505         (compile_instance::error_symbol_once): Update for unique_ptr.
5506
5507 2018-08-10  Keith Seitz  <keiths@redhat.com>
5508
5509         * compile/compile-c-symbols.c (struct symbol_error)
5510         (hash_symbol_error, eq_symbol_error, del_symbol_error)
5511         (compile_instance::insert_symbol_error)
5512         (compile_instance::error_symbol_once): Move to ...
5513         * compile/compile.c: ... here.
5514
5515 2018-08-10  Keith Seitz  <keiths@redhat.com>
5516
5517         * compile/compile-c-support.c (c_get_compile_context): Use `new'
5518         instead of `new_compile_instance'.
5519         * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
5520         Update description.
5521         If the symbol error map is not initialized, create it.
5522         (generate_c_for_for_one_symbol): Do not check/initialize
5523         the symbol error map.
5524         * compile/compile-c-types.c (compile_c_instance): Make a class.
5525         Update all callers.
5526         (compile_instance::compile_instance): Initialize the type cache.
5527         (get_cached_type): New function.
5528         (insert_type): Update description.
5529         (compile_c_instance::m_default_cflags): Define.
5530         (convert_type): Update description.  Use get_cached_type.
5531         (delete_instance): Moved to destructor.
5532         (new_compile_instance): Moved to constructor.
5533         * compile/compile-c.h (compile_c_instance): Make class inheriting
5534         from compile_instance.
5535         <base>: Remove field.
5536         <type_map, symbol_err_map>: Move to base class.
5537         <c_plugin>: Rename to `m_plugin' and remove pointer type.
5538         * compile/compile-internal.h (compile_instance): Make class.
5539         <type_map_t, symbol_err_map_t>: Define.
5540         <fe>: Rename to `m_gcc_fe'.
5541         <scope, block, gcc_target_options>: Add `m_' prefix.
5542         <m_type_map, m_symbol_err_map>: New fields, moved from
5543         compile_c_instance.
5544         <destroy>: Remove.
5545         (convert_type, new_compile_instance): Remove.
5546         * compile/compile.c (cleanup_compile_instance): Remove.
5547         (compile_to_object): Use unique_ptr to eliminate cleanups.
5548         (compile_instance::set_print_callback, compile_instance::version)
5549         (compile_instance::set_verbose)
5550         (compile_instance::set_driver_filename)
5551         (compile_instance::set_triplet_regexp)
5552         (compile_instance::set_arguments)
5553         (compile_instance::set_source_file)
5554         (compile_instance::compile): Define.
5555
5556 2018-08-10  Keith Seitz  <keiths@redhat.com>
5557
5558         * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
5559         * compile/compile-c-types.c: Define GCC_METHODN macros and include
5560         gcc-c-fe.def to define C plugin.
5561         (delete_instance): Delete `c_plugin'.
5562         (new_compile_instance): Initialize `c_plugin'.
5563         * compile/compile-c.h: Include gcc_c_plugin.h.
5564         (struct compile_c_instance) <c_plugin>: New member.
5565         * gcc-c-plugin.h: New file.
5566         Update all callers with API change.
5567
5568 2018-08-10  Keith Seitz  <keiths@redhat.com>
5569
5570         * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
5571         (HFILES_NO_SRCDIR): ... to here.
5572         Add compile-internal.h and compile-c.h.
5573         * compile/compile-c-support.c: Include compile-c.h.
5574         * compile/compile-c-symbols.c: Include compile-c.h.
5575         (generate_c_for_variable_locations): Update comment.
5576         * compile/compile-c-types.c: Include compile-c.h.
5577         * compile/compile-c.h: New file -- moved C language declarations
5578         from other files here.
5579         * compile/compile-internal.h: Do not include hashtab.h or
5580         common/enum-flags.h.
5581         (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
5582         (gcc_convert_symbol, gcc_symbol_address)
5583         (generate_c_for_variable_locations, c_get_mode_for_size)
5584         (c_get_range_decl_name): Definitions moved to compile-c.h.
5585         * compile/compile-loc2c.c: Include compile-c.h.
5586
5587 2018-08-10  Keith Seitz  <keiths@redhat.com>
5588
5589         * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
5590         (c_symbol_substitution_name): ... this.
5591         Update all callers.
5592
5593 2018-08-10  Keith Seitz  <keiths@redhat.com>
5594
5595         * compile/compile-c-support.c (c_compute_program): Use
5596         unique_xmalloc_ptr to eliminate cleanup.
5597         * compile/compile-c-symbols.c (generate_c_for_variable_locations):
5598         Return a unique_xmalloc_ptr and eliminate cleanup.
5599         * compile/compile-internal.h (generate_c_for_variable_locations):
5600         Return unique_xmalloc_ptr and update description.
5601
5602 2018-08-10  Alan Hayward  <alan.hayward@arm.com>
5603
5604         * corelow.c (core_target::get_core_register_section): Rename
5605         min_size to section_min_size.
5606
5607 2018-08-09  Jim Wilson  <jimw@sifive.com>
5608
5609         * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
5610         (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
5611         * NEWS: Mention new GNU/Linux RISC-V target.
5612         * configure.host: Add riscv*-*-linux*.
5613         * configure.nat: Add riscv*.
5614         * configure.tgt: Add riscv*-*-linux*.
5615         * riscv-linux-nat.c: New file.
5616         * riscv-linux-tdep.c: New file.
5617
5618 2018-08-09  Andrew Burgess  <andrew.burgess@embecosm.com>
5619
5620         * infrun.c (resume): Make static, add forward declaration.
5621         (proceed): Update header comment.
5622         * infrun.h (resume): Delete declaration.
5623
5624 2018-08-09  Tom Tromey  <tom@tromey.com>
5625
5626         * riscv-tdep.h: Minor formatting fixes.
5627
5628 2018-08-09  Simon Marchi  <simon.marchi@ericsson.com>
5629
5630         * common/scoped_mmap.c (mmap_file): Silence ARI warning.
5631         * dwarf-index-cache.c (create_dir_and_check): Likewise.
5632         (test_mkdir_recursive): Likewise.
5633         * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
5634
5635 2018-08-09  Andrew Burgess  <andrew.burgess@embecosm.com>
5636
5637         * valarith.c (value_subscripted_rvalue): If an array is not in
5638         memory, and we don't know the upper bound, then we can't know that
5639         the requested element exists or not.
5640
5641 2018-08-08  Simon Marchi  <simon.marchi@ericsson.com>
5642
5643         * target.c (str_comma_list_concat_elem): Fix typo in comment.
5644         (target_options_to_string): Add comment.
5645
5646 2018-08-08  Tom Tromey  <tom@tromey.com>
5647
5648         * unittests/scoped_mmap-selftests.c: Check result of "write".
5649
5650 2018-08-08  Jim Wilson  <jimw@sifive.com>
5651
5652         * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
5653         (decode_register_index_short): New.
5654         (decode_j_type_insn, decode_cj_type_insn): New.
5655         (decode_b_type_insn, decode_cb_type_insn): New.
5656         (riscv_insn::decode): Add support for jumps, branches, lr, and sc.  New
5657         local xlen.  Check xlen when decoding ambiguous compressed insns.  In
5658         compressed decode, use is_c_lui_insn instead of is_lui_insn, and
5659         is_c_sw_insn instead of is_sw_insn.
5660         (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
5661         (riscv_software_single_step): New.
5662         * riscv-tdep.h (riscv_software_single_step): Declare.
5663
5664         * riscv-tdep.c (riscv_isa_xlen): Drop static.
5665         * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
5666
5667 2018-08-08  Andrew Burgess  <andrew.burgess@embecosm.com>
5668
5669         PR gdb/18050:
5670         * target.c (dispose_inferior): Don't dispose of inferiors that are
5671         already killed.
5672
5673 2018-08-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5674
5675         * remote.c (remote_target::download_tracepoint): Change char* to
5676         const char*.
5677
5678 2018-08-07  Simon Marchi  <simon.marchi@polymtl.ca>
5679
5680         * target.h (target_options_to_string): Return an std::string.
5681         * target.c (str_comma_list_concat_elem): Return void, use
5682         std::string.
5683         (do_option): Likewise.
5684         (target_options_to_string): Return an std::string.
5685         * linux-nat.c (linux_nat_target::wait): Adjust.
5686         * target-debug.h (target_debug_print_options): Adjust.
5687
5688 2018-08-07  Tom Tromey  <tom@tromey.com>
5689
5690         * Makefile.in (CPPFLAGS): New variable.
5691         (INTERNAL_CPPFLAGS): Use it.
5692
5693 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
5694
5695         * NEWS: Mention the index cache.
5696
5697 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
5698
5699         * common/pathstuff.h (get_standard_cache_dir): New.
5700         * common/pathstuff.c (get_standard_cache_dir): New.
5701         * build-id.h (build_id_to_string): New.
5702         * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
5703         DEBUG_STR_SUFFIX): Move to here.
5704         * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
5705         DEBUG_STR_SUFFIX): Move from there.
5706         (write_psymtabs_to_index): Make non-static, add basename
5707         parameter.  Write to temporary files, rename when done.
5708         (save_gdb_index_command): Adjust call to
5709         write_psymtabs_to_index.
5710         * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
5711         field.
5712         * dwarf2read.c (dwz_file) <index_cache_res>: New field.
5713         (get_gdb_index_contents_from_cache): New.
5714         (get_gdb_index_contents_from_cache_dwz): New.
5715         (dwarf2_initialize_objfile): Read index from cache.
5716         (dwarf2_build_psymtabs): Save to index.
5717         * dwarf-index-cache.h: New file.
5718         * dwarf-index-cache.c: New file.
5719         * dwarf-index-write.h: New file.
5720
5721 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
5722
5723         * gnulib/aclocal.m4: Re-generate.
5724         * gnulib/config.in: Re-generate.
5725         * gnulib/configure: Re-generate.
5726         * gnulib/import/Makefile.am: Re-generate.
5727         * gnulib/import/Makefile.in: Re-generate.
5728         * gnulib/import/m4/gnulib-cache.m4: Re-generate.
5729         * gnulib/import/m4/gnulib-comp.m4: Re-generate.
5730         * gnulib/import/m4/mkdir.m4: New file.
5731         * gnulib/import/mkdir.c: New file.
5732         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
5733         module.
5734
5735 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
5736
5737         * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
5738         * common/scoped_mmap.c: New file.
5739         * common/scoped_mmap.h (destroy): New method.
5740         (~scoped_mmap, reset): Use destroy.
5741         (scoped_mmap): New move constructor.
5742         (mmap_file): New declaration.
5743         * unittests/scoped_mmap-selftests.c (test_normal,
5744         test_invalid_filename, run_tests): New functions.
5745         (_initialize_scoped_mmap_selftests): Register selftest.
5746
5747 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
5748
5749         * dwarf2read.c (read_gdb_index_from_section): Rename to...
5750         (read_gdb_index_from_buffer): ... this.  Remove section
5751         parameter, add buffer parameter.
5752         (get_gdb_index_contents_ftype,
5753         get_gdb_index_contents_dwz_ftype): New typedefs.
5754         (dwarf2_read_gdb_index): Add callback parameters to get the
5755         index contents.
5756         (get_gdb_index_contents_from_section): New.
5757         (dwarf2_initialize_objfile): Update call to
5758         dwarf2_read_gdb_index.
5759
5760 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
5761
5762         * common/filestuff.h (gdb_fopen_cloexec): New overload.
5763         (gdb_open_cloexec): Likewise.
5764         * nat/linux-osdata.c (command_from_pid): Use string_printf.
5765         (commandline_from_pid): Likewise.
5766         (linux_xfer_osdata_threads): Likewise.
5767         (linux_xfer_osdata_fds): Likewise.
5768         * ada-lang.c (is_package_name): Likewise.
5769         * auxv.c (procfs_xfer_auxv): Likewise.
5770         * breakpoint.c (print_one_breakpoint_location): Use
5771         uiout::field_fmt.
5772         (print_one_catch_solib): Use string_printf.
5773         * coff-pe-read.c (add_pe_exported_sym): Likewise.
5774         (add_pe_forwarded_sym): Likewise.
5775         * dwarf2read.c (create_type_unit_group): Likewise.
5776         (build_error_marker_type): Likewise.
5777         * infcall.c (get_function_name): Likewise.
5778         * valprint.c (print_converted_chars_to_obstack): Likewise.
5779         * xtensa-tdep.c (xtensa_register_type): Likewise.
5780
5781 2018-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5782
5783         * remote.c (remote_target::download_tracepoint): Fix format
5784         string errors.
5785
5786 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5787
5788         * tracefile.c: Include common/byte-vector.h.
5789         (trace_save): Change type of buf to gdb::byte_vector.  Initialize
5790         with trace_regblock_size if needed.  Update uses of buf.
5791
5792 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5793
5794         * tracepoint.h (collection_list) <m_regs_mask>: Change type to
5795         std::vector<unsigned char>.
5796         * tracepoint.c (collection_list::collection_list): Remove
5797         m_regs_mask initializer from initializer list.  Resize
5798         m_regs_mask using the largest remote register number.
5799         (collection_list::add_remote_register): Remove size check on
5800         m_regs_mask.  Use at to access element.
5801         (collection_list::stringify): Change type of temp_buf to
5802         gdb::char_vector.  Update uses of temp_buf.  Resize if needed to
5803         stringify the register mask.  Use pack_hex_byte for the register
5804         mask.
5805
5806 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5807
5808         * tracepoint.h (class collection_list) <add_register>: Remove.
5809         <add_remote_register, add_ax_registers, add_local_register>:
5810         Declare.
5811         <add_memrange>: Add scope parameter.
5812         * tracepoint.c (encode_actions_1): Likewise.
5813         (collection_list::add_register): Rename to ...
5814         (collection_list::add_remote_register): ... this.  Update
5815         comment.
5816         (collection_list::add_ax_registers, add_local_register): New
5817         methods.
5818         (collection_list::add_memrange): Add scope parameter.  Call
5819         add_local_register instead of add_register.
5820         (finalize_tracepoint_aexpr): New function.
5821         (collection_list::collect_symbol): Update calls to add_memrange.
5822         Call add_local_register instead of add_register.  Call
5823         add_ax_registers.  Call finalize_tracepoint_aexpr.
5824         (encode_actions_1): Get remote regnos for $reg action.  Call
5825         add_remote_register, add_ax_registers, and add_local_register.
5826         Update call to add_memrange.  Call finalize_tracepoint_aexpr.
5827         (validate_actionline): Call finalize_tracepoint_aexpr.
5828
5829 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5830
5831         * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
5832         Replace array buf with gdb::char_vector buf, of size
5833         get_remote_packet_size ().  Replace references to buf and
5834         BUF_SIZE to buf.data () and buf.size ().  Replace strcpy, strcat
5835         and xsnprintf with snprintf.  Raise errors if the buffer is too
5836         small.
5837
5838 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5839
5840         * remote.c (remote_target::download_tracepoint): Fix the has_more
5841         predicate in the QTDP action list iteration.
5842
5843 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5844
5845         * remote.c (remote_target::download_tracepoint): Fix indentation
5846         in for block.
5847
5848 2018-08-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5849
5850         * proc-api.c (_initialize_proc_api): Remove c, unused.
5851         * procfs.c (procfs_init_inferior): Remove signals, unused.
5852         (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
5853         unused.
5854
5855 2018-08-06  Sergey Korolev  <s.korolev@ndmsystems.com>
5856             Andrew Burgess  <andrew.burgess@embecosm.com>
5857
5858         * linux-nat.c (linux_nat_target::follow_fork): Avoid using
5859         'W_STOPCODE (0)' as this could be ambiguous.
5860
5861 2018-08-03  Sergio Durigan Junior  <sergiodj@redhat.com>
5862
5863         * ser-tcp.c (net_open): Fix thinko when deciding whether to
5864         disable TCP's Nagle algorithm (use "ai_protocol" instead of
5865         "ai_socktype").
5866
5867 2018-08-02  Tom Tromey  <tom@tromey.com>
5868
5869         PR symtab/16842.
5870         * dwarf2read.c (read_func_scope): Set symtab on template parameter
5871         symbols.
5872         (process_structure_scope): Likewise.
5873
5874 2018-08-02  Xavier Roirand  <roirand@adacore.com>
5875
5876         PR gdb/22629:
5877         * darwin-nat.c (darwin_kill_inferior): Fix handling of
5878         kill inferior.
5879
5880 2018-08-02  Tom Tromey  <tom@tromey.com>
5881
5882         * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
5883         (darwin_suspend_inferior, darwin_resume_inferior)
5884         (darwin_decode_notify_message, darwin_resume_inferior_threads)
5885         (darwin_check_new_threads): Check result of get_darwin_inferior.
5886
5887 2018-07-31  Joel Brobecker  <brobecker@adacore.com>
5888
5889         GDB 8.1.1 released.
5890
5891 2018-07-31  Jan Vrany  <jan.vrany@fit.cvut.cz>
5892
5893         * varobj.c (varobj_get_path_expr_parent): Report an error if
5894         parent is a dynamic varobj.
5895
5896 2018-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5897
5898         * gnulib/aclocal.m4: Re-generate.
5899         * gnulib/config.in: Re-generate.
5900         * gnulib/configure: Re-generate.
5901         * gnulib/import/Makefile.in: Re-generate.
5902         * gnulib/import/m4/gnulib-comp.m4: Re-generate.
5903         * gnulib/import/m4/onceonly.m4: Re-generate.
5904
5905 2018-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5906
5907         * target-descriptions.c (struct xml_test_tdesc): New.
5908         (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
5909         (record_xml_tdesc): Update.
5910         (maintenance_check_xml_descriptions): Update.
5911         * target-descriptions.h (record_xml_tdesc): Update comment.
5912
5913 2018-07-30  Andrew Burgess  <andrew.burgess@embecosm.com>
5914
5915         * eval.c (evaluate_subexp_for_sizeof): Check for array type before
5916         checking array bounds are defined.
5917
5918 2018-07-30  Tom Tromey  <tom@tromey.com>
5919
5920         * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
5921         irreflexivity violation.
5922
5923 2018-07-30  Tom Tromey  <tom@tromey.com>
5924
5925         * cli/cli-decode.c (lookup_cmd): Remove lint code.
5926         * value.c (unpack_long): Remove lint code.
5927         * valops.c (value_ind): Remove lint code.
5928         * valarith.c (value_x_binop, value_x_unop, value_equal)
5929         (value_pos): Remove lint code.
5930
5931 2018-07-28  Tom de Vries  <tdevries@suse.de>
5932
5933         * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
5934         with undefined upper bound as <optimized out>.
5935
5936 2018-07-27  Sergio Durigan Junior  <sergiodj@redhat.com>
5937
5938         * gcore.in: Rename variable "name" to "prefix".  Expand
5939         "usage" text.
5940
5941 2018-07-14  Jon Turney  <jon.turney@dronecode.org.uk>
5942
5943         * windows-nat.c (windows_nat_target::create_inferior): Update to
5944         call close() in global namespace.
5945
5946 2018-07-26  Tom Tromey  <tom@tromey.com>
5947
5948         * dwarf-index-write.c (add_address_entry): Don't add objfile
5949         offsets.
5950         * dbxread.c (find_stab_function): Rename from
5951         find_stab_function_addr.  Return a bound_minimal_symbol.
5952         (read_dbx_symtab): Use raw_text_low, raw_text_high.
5953         Don't add objfile offsets.
5954         (end_psymtab): Use raw_text_low, raw_text_high,
5955         MSYMBOL_VALUE_RAW_ADDRESS.
5956         (read_ofile_symtab): Update.
5957         (process_one_symbol): Update.
5958         * dwarf2read.c (create_addrmap_from_index): Don't add objfile
5959         offsets.
5960         (dw2_relocate): Remove.
5961         (dw2_find_pc_sect_symtab): Bias PC by the text offset before
5962         searching addrmap.
5963         (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
5964         Update.
5965         (process_psymtab_comp_unit_reader, add_partial_symbol)
5966         (add_partial_subprogram, dwarf2_ranges_read): Update.
5967         (load_partial_dies): Update.
5968         (add_address_entry): Don't add objfile offsets.
5969         (dwarf2_build_include_psymtabs): Update.
5970         (create_addrmap_from_aranges): Don't add objfile offsets.
5971         (dw2_find_pc_sect_compunit_symtab): Update.
5972         * mdebugread.c (parse_symbol): Don't add objfile offsets.
5973         (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
5974         Update.
5975         (parse_partial_symbols): Don't add objfile offsets.  Use
5976         raw_text_low, raw_text_high.  Update.
5977         (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
5978         * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
5979         or call 'relocate' quick function.  Clear psymbol_map.
5980         * psympriv.h (struct partial_symbol) <address>: Add section
5981         offset.
5982         <set_unrelocated_address>: Rename from set_address.
5983         <raw_text_low, raw_text_high>: New methods.
5984         <text_low, text_high>: Add objfile parameter.
5985         (add_psymbol_to_bcache): Add 'section' parameter.  Call
5986         set_unrelocated_address.
5987         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5988         (find_pc_psymbol): Update.
5989         (fixup_psymbol_section, relocate_psymtabs): Remove.
5990         (dump_psymtab, psym_functions): Update.
5991         (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
5992         parameter.
5993         (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5994         (start_psymtab_common): Update.
5995         * symfile-debug.c (debug_qf_relocate): Remove.
5996         (debug_sym_quick_functions): Update.
5997         * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
5998         * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
5999         Update.
6000
6001 2018-07-26  Tom Tromey  <tromey@redhat.com>
6002
6003         * dbxread.c (end_psymtab): Use text_high_valid and
6004         text_low_valid.
6005         * mdebugread.c (parse_partial_symbols): Use text_low_valid.
6006         (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
6007         * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
6008         Update comment.
6009         <text_low_valid, text_high_valid>: New fields.
6010         <set_text_low, set_text_high>: Update.
6011         * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
6012
6013 2018-07-26  Tom Tromey  <tom@tromey.com>
6014
6015         * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
6016         Update.
6017         * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
6018         textlow and texthigh fields.
6019         (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
6020         Update.
6021         * mdebugread.c (parse_lines, parse_partial_symbols)
6022         (psymtab_to_symtab_1): Update.
6023         * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
6024         Rename fields.  Update comment.  Now private.
6025         <text_low, text_high, set_text_low, set_text_high>: New methods.
6026         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
6027         (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
6028         (start_psymtab_common, maintenance_info_psymtabs)
6029         (maintenance_check_psymtabs): Update.
6030         * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
6031         texthigh fields.
6032         (scan_xcoff_symtab): Update.
6033
6034 2018-07-26  Tom Tromey  <tromey@redhat.com>
6035
6036         * psympriv.h (struct partial_symbol) <unrelocated_address,
6037         address, set_address>: New methods.
6038         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
6039         (fixup_psymbol_section, relocate_psymtabs): Update.
6040         (print_partial_symbols): Add 'objfile' parameter.  Update.
6041         (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
6042         Update.
6043
6044 2018-07-26  Tom Tromey  <tom@tromey.com>
6045
6046         * dwarf-index-write.c (write_psymbols, debug_names::insert)
6047         (debug_names::write_psymbols): Update.
6048         * psympriv.h (struct partial_symbol): Derive from
6049         general_symbol_info.
6050         <obj_section>: New method.
6051         (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
6052         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
6053         (find_pc_sect_psymbol, fixup_psymbol_section)
6054         (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
6055         (print_partial_symbols, recursively_search_psymtabs)
6056         (compare_psymbols, psymbol_hash, psymbol_compare)
6057         (add_psymbol_to_bcache, maintenance_check_psymtabs)
6058         (psymbol_name_matches, psym_fill_psymbol_map): Update.
6059
6060 2018-07-26  Tom Tromey  <tromey@redhat.com>
6061
6062         * dbxread.c (end_psymtab): Remove dead code.
6063
6064 2018-07-26  Andrew Burgess  <andrew.burgess@embecosm.com>
6065
6066         * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
6067         DWARF unwinders are disabled.
6068         * dwarf2-frame.c: Add dwarf2read.h include.
6069         (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
6070         disabled.
6071         (dwarf2_frame_unwinders_enabled_p): Define.
6072         (show_dwarf_unwinders_enabled_p): New function.
6073         (_initialize_dwarf2_frame): Register switch to control DWARF
6074         unwinder use.
6075         * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
6076         * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
6077         (show_dwarf_cmdlist): Remove static keyword.
6078         * dwarf2read.h (set_dwarf_cmdlist): Declare.
6079         (show_dwarf_cmdlist): Declare.
6080         * NEWS: Document new feature.
6081
6082 2018-07-26  Tom de Vries  <tdevries@suse.de>
6083
6084         PR breakpoints/23366
6085         * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
6086
6087 2018-07-26  Tom de Vries  <tdevries@suse.de>
6088
6089         * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
6090         DW_AT_count can't be translated to a dynamic prop.
6091
6092 2018-07-25  Tom de Vries  <tdevries@suse.de>
6093
6094         * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
6095         try/catch.
6096
6097 2018-07-25  Jan Vrany  <jan.vrany@fit.cvut.cz>
6098
6099         * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
6100
6101 2018-07-25  Joel Brobecker  <brobecker@adacore.com>
6102
6103         * MAINTAINERS (Global Maintainers): Add Tom Tromey.
6104
6105 2018-07-24  Keith Seitz  <keiths@redhat.comt
6106
6107         PR symtab/23010
6108         * dwarf2read.c (dw2_add_symbol_to_list): New function.
6109         (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
6110         instead of add_symbol_to_list.
6111         (read_file_scope): Call prepare_one_comp_unit before reading
6112         any other DIEs.
6113
6114 2018-07-24  Simon Marchi  <simon.marchi@ericsson.com>
6115
6116         * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
6117
6118 2018-07-24  Tom Tromey  <tom@tromey.com>
6119
6120         * utils.c (malloc, realloc, free): Don't declare.
6121         * configure, config.in: Rebuild.
6122         * configure.ac: Don't check for declarations of free, malloc, or
6123         realloc.
6124
6125 2018-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
6126
6127         * aarch64-linux-nat.c
6128         (aarch64_linux_nat_target::stopped_data_address): Remove unused
6129         variable.
6130         * arm-linux-nat.c (fetch_regs): Likewise.
6131         (store_regs): Likewise.
6132         (fetch_vfp_regs): Likewise.
6133         (store_vfp_regs): Likewise.
6134         (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
6135         (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
6136         (arm_linux_nat_target::insert_watchpoint): Likewise.
6137         (arm_linux_nat_target::remove_watchpoint): Likewise.
6138         * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
6139         Likewise.
6140         * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
6141         Likewise.
6142         * ppc-linux-nat.c (fetch_register): Likewise.
6143         (fetch_all_gp_regs): Likewise.
6144         (fetch_ppc_registers): Likewise.
6145         (store_all_gp_regs): Likewise.
6146         (store_ppc_registers): Likewise.
6147         (hwdebug_insert_point): Likewise.
6148         (can_use_watchpoint_cond_accel): Likewise.
6149         * remote-sim.c (gdb_os_write_stdout): Likewise.
6150
6151 2018-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
6152             Tom Tromey  <tom@tromey.com>
6153
6154         * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
6155         test for it.
6156         * configure: Rebuild.
6157
6158 2018-07-22  Tom Tromey  <tom@tromey.com>
6159
6160         * regformats/regdat.sh: Define xmltarget_${name} inside
6161         #ifndef IN_PROCESS_AGENT.
6162
6163 2018-07-22  Tom Tromey  <tom@tromey.com>
6164
6165         * value.c (value_fetch_lazy_bitfield): Remove unused variable.
6166
6167 2018-07-22  Tom Tromey  <tom@tromey.com>
6168
6169         * symfile.c (reread_symbols): Notify iter, not objfile.
6170
6171 2018-07-22  Tom Tromey  <tom@tromey.com>
6172
6173         * ravenscar-thread.c (ravenscar_thread_target::store_registers):
6174         Use arch_ops.
6175         (ravenscar_thread_target::prepare_to_store): Likewise.
6176
6177 2018-07-22  Tom Tromey  <tom@tromey.com>
6178
6179         * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
6180         unused variable.  Call value_fetch_lazy when needed.
6181         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6182         Remove unused variable.  Call value_fetch_lazy when needed.
6183
6184 2018-07-22  Tom Tromey  <tom@tromey.com>
6185
6186         * m32c-tdep.c (mark_dma): Return void.
6187         (make_regs): Remove unused declarations.
6188
6189 2018-07-22  Tom Tromey  <tom@tromey.com>
6190
6191         * guile/scm-cmd.c (gdbscm_dont_repeat): Call
6192         cmdscm_get_valid_command_smob_arg_unsafe for effect.
6193         * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
6194         bkscm_get_valid_block_smob_arg_unsafe for effect.
6195
6196 2018-07-22  Tom Tromey  <tom@tromey.com>
6197
6198         * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
6199         value_type.
6200
6201 2018-07-22  Tom Tromey  <tom@tromey.com>
6202
6203         * windows-nat.c (saved_context): Conditionally define.
6204         * remote.c (remote_target::remote_btrace_maybe_reopen):
6205         Conditionally declare "warned".
6206         * inflow.c (sigquit_ours): Conditionally define.
6207         (new_tty): Move "tty" declaration inside #if.
6208         * guile/guile.c (guile_datadir): Conditionally define.
6209         * charset.c (set_be_le_names): Move some declarations inside #if.
6210         * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
6211         #if.
6212         (parse_xml_btrace_conf): Likewise.
6213
6214 2018-07-22  Tom Tromey  <tom@tromey.com>
6215
6216         * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
6217
6218 2018-07-22  Tom Tromey  <tom@tromey.com>
6219
6220         * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
6221         * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
6222         (vlscm_convert_typed_value_from_scheme): Remove unused variable.
6223         * buildsym-legacy.c (get_macro_table): Remove unused variable.
6224         * stack.c (frame_apply_level_command): Remove unused variable.
6225         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
6226         * sparc64-tdep.c (adi_examine_command): Remove unused variable.
6227         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
6228         unused variable.
6229         * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
6230         * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
6231         * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
6232         variable.
6233         * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
6234         * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
6235         variable.
6236         * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
6237         Remove unused variable.
6238         * cli/cli-script.c (recurse_read_control_structure): Remove unused
6239         variable.
6240         * common/tdesc.c (print_xml_feature::visit): Remove unused
6241         variable.
6242         * compile/compile-object-load.c (store_regs): Remove unused
6243         variables.
6244         * complaints.c (clear_complaints): Remove unused variable.
6245         * corelow.c (core_target_open): Remove unused variable.
6246         * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
6247         variable.
6248         * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
6249         variable.
6250         * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
6251         variable.
6252         * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
6253         variable.
6254         * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
6255         variable.
6256         * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
6257         variable.
6258         * ia64-tdep.c (examine_prologue): Remove unused variable.
6259         * infcall.c (run_inferior_call): Remove unused variable.
6260         * inferior.c (exit_inferior): Remove unused variable.
6261         * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
6262         * linespec.c (decode_line_2): Remove unused variable.
6263         * linux-nat.c (super_close): Remove.
6264         * linux-tdep.c (linux_info_proc): Remove unused variable.
6265         * mi/mi-main.c (mi_execute_command): Remove unused variable.
6266         * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
6267         Remove unused variable.
6268         * parse.c (find_minsym_type_and_address): Remove unused variable.
6269         * printcmd.c (info_symbol_command, printf_floating): Remove unused
6270         variable.
6271         * python/py-breakpoint.c (bppy_set_commands): Remove unused
6272         variable.
6273         * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
6274         variables.
6275         * record-btrace.c (record_btrace_target::store_registers): Remove
6276         unused variable.
6277         (cmd_show_record_btrace_cpu): Remove unused variable.
6278         * riscv-tdep.c (riscv_register_reggroup_p)
6279         (riscv_push_dummy_call, riscv_return_value): Remove unused
6280         variable.
6281         * rust-exp.y (literal): Remove unused variable.
6282         * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
6283         unused variable.
6284         <STRUCTOP_ANONYMOUS>: Likewise.
6285         * s390-linux-tdep.c (s390_linux_init_abi_31)
6286         (s390_linux_init_abi_64): Remove unused variable.
6287         * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
6288         (file_select_thread, net_windows_open, _initialize_ser_windows):
6289         Remove unused variables.
6290         * symtab.c (find_pc_sect_line): Remove unused variable.
6291         * target-memory.c (compute_garbled_blocks): Remove unused
6292         variable.
6293         (target_write_memory_blocks): Remove unused variable.
6294         * target.c (target_stack::unpush): Remove unused variables.
6295         * tracepoint.c (start_tracing, all_tracepoint_actions)
6296         (merge_uploaded_trace_state_variables)
6297         (print_one_static_tracepoint_marker): Remove unused variable.
6298         * unittests/basic_string_view/element_access/char/1.cc (test01):
6299         Remove unused variable.
6300         * windows-nat.c (windows_continue, windows_add_all_dlls)
6301         (do_initial_windows_stuff, windows_nat_target::create_inferior):
6302         Remove unused variables.
6303
6304 2018-07-21  Simon Marchi  <simon.marchi@polymtl.ca>
6305
6306         * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
6307         attr_profile in HAVE_ELF.
6308         * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
6309         HAVE_ELF.
6310
6311 2018-07-20  Simon Marchi  <simon.marchi@polymtl.ca>
6312
6313         * frame.c (frame_register_unwind): Change parameter name.
6314         (frame_unwind_register): Likewise.
6315         (frame_unwind_register_value): Likewise.
6316         (frame_unwind_register_signed): Likewise.
6317         (frame_unwind_register_unsigned): Likewise.
6318         * frame.h (frame_register_unwind): Likewise.
6319         (frame_unwind_register): Likewise.
6320         (frame_unwind_register_value): Likewise.
6321         (frame_unwind_register_signed): Likewise.
6322         (frame_unwind_register_unsigned): Likewise.
6323         (frame_unwind_arch): Likewise.
6324
6325 2018-07-20  Maciej W. Rozycki  <macro@mips.com>
6326
6327         * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
6328         ISA maintenance.
6329
6330 2018-07-20  Maciej W. Rozycki  <macro@mips.com>
6331
6332         * mips-linux-nat.c (mips_linux_nat_target::read_description):
6333         Call `get_ptrace_pid' rather than extracting the ptrace PID by
6334         hand.
6335
6336 2018-07-20  Keith Seitz  <keiths@redhat.com>
6337
6338         * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
6339         m_main_subfile, m_comp_dir, m_producer, m_debugformat,
6340         m_compunit_symtab, m_language>: Add "m_" prefix.
6341         Update all uses.
6342         * buildsym.c: Update all uses.
6343
6344 2018-07-20  Tom Tromey  <tom@tromey.com>
6345
6346         * buildsym-legacy.h (record_line): Don't use record_line_ftype.
6347         * buildsym.h (record_line_ftype): Remove typedef.
6348
6349 2018-07-20  Tom Tromey  <tom@tromey.com>
6350
6351         * buildsym-legacy.h (augment_type_symtab): Don't declare.
6352         (end_expandable_symtab): Likewise.
6353         (end_symtab_get_static_block): Likewise.
6354         (end_symtab_from_static_block): Likewise.
6355         * buildsym-legacy.c (augment_type_symtab): Remove.
6356         (end_expandable_symtab): Remove.
6357         (end_symtab_get_static_block): Remove.
6358         (end_symtab_from_static_block): Remove.
6359
6360 2018-07-20  Tom Tromey  <tom@tromey.com>
6361
6362         * dwarf2read.c: Include buildsym.h.
6363         (struct dwarf2_cu) <builder>: New method.
6364         (fixup_go_packaging): Update.
6365         (process_full_comp_unit, process_full_type_unit): Update.  Don't
6366         use scoped_free_pendings.
6367         (using_directives): Add "cu" parameter, remove "language".
6368         (read_import_statement, setup_type_unit_groups, )
6369         (read_func_scope, read_lexical_block_scope)
6370         (dwarf2_record_block_ranges, read_namespace): Update.
6371         (lnp_state_machine::lnp_state_machine): Add cu parameter.
6372         (lnp_state_machine::handle_end_sequence): Update.
6373         (class lnp_state_machine) <m_cu>: New member.
6374         <m_record_line_callback>: Remove.
6375         <m_currently_recording_lines>: New member.
6376         (lnp_state_machine::handle_set_file): Update.
6377         (noop_record_line): Remove.
6378         (dwarf_record_line_p): Add cu parameter.
6379         (dwarf_record_line_1, dwarf_finish_line): Likewise.
6380         (lnp_state_machine::record_line)
6381         (lnp_state_machine::lnp_state_machine)
6382         (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6383         (dwarf_decode_lines): Update.
6384         (dwarf2_start_subfile): Add cu parameter.
6385         (dwarf2_start_symtab, new_symbol): Update.
6386         (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
6387         Remove dwarf2_per_objfile parameter.
6388         (dwarf_decode_macros): Update.
6389
6390 2018-07-20  Tom Tromey  <tom@tromey.com>
6391
6392         * stabsread.c (define_symbol): Update.
6393         * buildsym-legacy.h (get_buildsym_compunit): Declare.
6394         * dwarf2read.c (new_symbol): Update.
6395         * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
6396         * cp-namespace.c: Include buildsym.h.
6397         (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
6398         * buildsym-legacy.c (get_buildsym_compunit): New function.
6399
6400 2018-07-20  Tom Tromey  <tom@tromey.com>
6401
6402         * xcoffread.c: Include buildsym-legacy.h.
6403         * windows-nat.c: Include buildsym-legacy.h.
6404         * stabsread.c: Include buildsym-legacy.h.
6405         * mdebugread.c: Include buildsym-legacy.h.
6406         * buildsym-legacy.h: New file.
6407         * buildsym-legacy.c: New file, from buildsym.c.
6408         * go32-nat.c: Include buildsym-legacy.h.
6409         * dwarf2read.c: Include buildsym-legacy.h.
6410         * dbxread.c: Include buildsym-legacy.h.
6411         * cp-namespace.c: Include buildsym-legacy.h.
6412         * coffread.c: Include buildsym-legacy.h.
6413         * buildsym.h: Move some contents to buildsym-legacy.h.
6414         * buildsym.c: Include buildsym-legacy.h.  Move many functions to
6415         buildsym-legacy.c.
6416         * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
6417
6418 2018-07-20  Tom Tromey  <tom@tromey.com>
6419
6420         * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
6421         * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
6422         (buildsym_compunit::buildsym_compunit)
6423         (buildsym_compunit::~buildsym_compunit)
6424         (buildsym_compunit::get_macro_table): Define.
6425
6426 2018-07-20  Tom Tromey  <tom@tromey.com>
6427
6428         * buildsym.c (reset_symtab_globals): Remove.
6429         (buildsym_compunit::end_symtab_from_static_block): Update.
6430         (buildsym_compunit::augment_type_symtab): Update.
6431         (end_symtab_from_static_block): Call free_buildsym_compunit.
6432         (augment_type_symtab, end_symtab, end_expandable_symtab):
6433         Likewise.
6434
6435 2018-07-20  Tom Tromey  <tom@tromey.com>
6436
6437         * arch-utils.c: Do not include buildsym.h.
6438         * mipsread.c: Do not include buildsym.h.
6439         * machoread.c: Do not include buildsym.h.
6440         * elfread.c: Do not include buildsym.h.
6441
6442 2018-07-20  Tom Tromey  <tom@tromey.com>
6443
6444         * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
6445         initialization.
6446         (buildsym_compunit): Add new constructor.
6447         (struct buildsym_compunit) <get_last_source_file, finish_block,
6448         record_block_range, start_subfile, patch_subfile_names,
6449         push_subfile, pop_subfile, record_line, get_compunit_symtab,
6450         set_last_source_start_addr, get_last_source_start_addr,
6451         get_local_using_directives, set_local_using_directives,
6452         get_global_using_directives, outermost_context_p,
6453         get_current_context_stack, get_context_stack_depth,
6454         get_current_subfile, get_local_symbols, get_file_symbols,
6455         get_global_symbols, record_debugformat, record_producer,
6456         push_context, pop_context, end_symtab_get_static_block,
6457         end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
6458         New public methods.
6459         <record_pending_block, finish_block_internal, make_blockvector,
6460         watch_main_source_file_lossage, end_symtab_with_blockvector>: New
6461         private methods.
6462         Update all users.
6463
6464 2018-05-22  Tom Tromey  <tom@tromey.com>
6465
6466         * buildsym.c (record_pending_block): Move earlier.  Remove objfile
6467         parameter.
6468         (finish_block_internal): Update.
6469
6470 2018-07-20  Tom Tromey  <tom@tromey.com>
6471
6472         * buildsym.c (record_pending_block): Move earlier.  Remove objfile
6473         parameter.
6474         (finish_block_internal): Update.
6475
6476 2018-07-20  Tom Tromey  <tom@tromey.com>
6477
6478         * buildsym.h (EXTERN): Don't define or undef.
6479         * buildsym.c (EXTERN): Don't define.
6480
6481 2018-07-20  Tom Tromey  <tom@tromey.com>
6482
6483         * buildsym.c: Remove TODO comment.
6484
6485 2018-07-20  Tom Tromey  <tom@tromey.com>
6486
6487         * coffread.c (coff_symtab_read): Update.
6488         * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6489         (xcoff_new_init): Update.
6490         * mipsread.c (mipscoff_new_init): Update.
6491         * mdebugread.c (mdebug_build_psymtabs): Update.
6492         * elfread.c (elf_new_init): Update.
6493         * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
6494         Update.
6495         * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
6496         (coffstab_build_psymtabs, elfstab_build_psymtabs)
6497         (stabsect_build_psymtabs): Update.
6498         * buildsym.h (buildsym_init): Don't declare.
6499         * buildsym.c: Update comment.
6500         (prepare_for_building): Remove.
6501         (start_symtab, restart_symtab): Update.
6502         (reset_symtab_globals): Update comment.
6503         (buildsym_init): Remove.
6504
6505 2018-07-20  Tom Tromey  <tom@tromey.com>
6506
6507         * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
6508         * stabsread.c (patch_block_stabs, define_symbol, read_type)
6509         (read_enum_type, common_block_start, common_block_end)
6510         (cleanup_undefined_types_1, finish_global_stabs): Update.
6511         * mdebugread.c (psymtab_to_symtab_1): Update.
6512         * dwarf2read.c (fixup_go_packaging, read_func_scope)
6513         (read_lexical_block_scope, new_symbol): Update.
6514         * dbxread.c (process_one_symbol): Update.
6515         * coffread.c (coff_symtab_read, process_coff_symbol)
6516         (coff_read_enum_type): Update.
6517         * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
6518         declare.
6519         (get_local_symbols, get_file_symbols, get_global_symbols): New
6520         functions.
6521         * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
6522         m_global_symbols.
6523         <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
6524         (~scoped_free_pendings): Update.
6525         (finish_block, prepare_for_building, reset_symtab_globals)
6526         (end_symtab_get_static_block, end_symtab_with_blockvector)
6527         (augment_type_symtab, push_context): Update.
6528         (get_local_symbols, get_file_symbols, get_global_symbols): New
6529         functions.
6530         (buildsym_init): Update.
6531
6532 2018-07-20  Tom Tromey  <tom@tromey.com>
6533
6534         * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
6535         (process_full_type_unit): Likewise.
6536         (dwarf2_start_symtab): Set list_in_scope.
6537
6538 2018-07-20  Tom Tromey  <tom@tromey.com>
6539
6540         * dwarf2read.c (process_psymtab_comp_unit_reader)
6541         (build_type_psymtabs_reader): Do not set list_in_scope.
6542
6543 2018-07-20  Tom Tromey  <tom@tromey.com>
6544
6545         * buildsym.c (free_pendings): Remove.
6546         (add_symbol_to_list, scoped_free_pendings)
6547         (finish_block_internal, buildsym_init): Update.
6548
6549 2018-07-20  Tom Tromey  <tom@tromey.com>
6550
6551         * xcoffread.c (read_xcoff_symtab): Update.
6552         * dwarf2read.c (read_func_scope, read_lexical_block_scope):
6553         Update.
6554         * dbxread.c (process_one_symbol): Update.
6555         * coffread.c (coff_symtab_read): Update.
6556         * buildsym.h (finish_block): Update.
6557         * buildsym.c (finish_block): Remove "listhead" argument.
6558         (end_symtab_get_static_block): Update.
6559
6560 2018-07-20  Tom Tromey  <tom@tromey.com>
6561
6562         * buildsym.h (class scoped_free_pendings): Remove constructor.
6563         * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
6564         method.
6565         <m_pending_block_obstack, m_pending_blocks>: New members.
6566         (pending_block_obstack, pending_blocks): Remove.
6567         (scoped_free_pendings::scoped_free_pendings): Default.
6568         (~scoped_free_pendings): Update.
6569         (free_pending_blocks): Remove.
6570         (finish_block_internal, record_pending_block, make_blockvector)
6571         (end_symtab_get_static_block, augment_type_symtab, push_context)
6572         (buildsym_init): Update.
6573
6574 2018-07-20  Tom Tromey  <tom@tromey.com>
6575
6576         * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
6577         m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
6578         members.
6579         (pending_addrmap, pending_addrmap_obstack)
6580         (pending_addrmap_interesting): Remove.
6581         (scoped_free_pendings, record_block_range, make_blockvector)
6582         (prepare_for_building, reset_symtab_globals, buildsym_init):
6583         Update.
6584
6585 2018-07-20  Tom Tromey  <tom@tromey.com>
6586
6587         * xcoffread.c (process_linenos): Update.
6588         * stabsread.c (define_symbol, read_type, read_enum_type): Update.
6589         * mdebugread.c (psymtab_to_symtab_1): Update.
6590         * dwarf2read.c (setup_type_unit_groups)
6591         (lnp_state_machine::handle_set_file, dwarf_record_line_p)
6592         (lnp_state_machine::record_line, dwarf_decode_lines): Update.
6593         * dbxread.c (process_one_symbol): Update.
6594         * coffread.c (coff_symtab_read, enter_linenos)
6595         (process_coff_symbol): Update.
6596         * buildsym.h (current_subfile): Don't declare.
6597         (get_current_subfile): Declare.
6598         * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
6599         member.
6600         (start_subfile, free_buildsym_compunit, push_subfile)
6601         (prepare_for_building, start_symtab): Update.
6602         (get_current_subfile): New function.
6603
6604 2018-07-20  Tom Tromey  <tom@tromey.com>
6605
6606         * coffread.c (coff_symtab_read): Update.
6607         * xcoffread.c (read_xcoff_symtab): Update.
6608         * dwarf2read.c (new_symbol): Update.
6609         (read_func_scope, read_lexical_block_scope): Update.
6610         * dbxread.c (process_one_symbol): Update.
6611         * buildsym.h (context_stack, context_stack_depth): Don't declare.
6612         (outermost_context_p): Remove macro.
6613         (outermost_context_p, get_current_context_stack)
6614         (get_context_stack_depth): Declare.
6615         (pop_context): Return struct context_stack.
6616         * buildsym.c (struct buildsym_compunit) <m_context_stack: New
6617         member.
6618         (context_stack_size): Remove.
6619         (INITIAL_CONTEXT_STACK_SIZE): Remove.
6620         (prepare_for_building, end_symtab_get_static_block)
6621         (augment_type_symtab, push_context): Update.
6622         (pop_context): Return struct context_stack.
6623         (outermost_context_p, get_current_context_stack)
6624         (get_context_stack_depth): New functions.
6625         (buildsym_init): Update.
6626
6627 2018-07-20  Tom Tromey  <tom@tromey.com>
6628
6629         * rust-exp.y: Now a pure parser.  Update all rules.
6630         (%union): Move earlier.
6631         (current_parser, work_obstack): Remove globals.
6632         (rust_parser, ~rust_parser): Update.
6633         (class rust_parser) <copy_name, concat3, crate_name, super_name,
6634         lex_character, lex_number, lex_string, lex_identifier,
6635         rust_lookup_type, convert_params_to_types, convert_ast_to_type,
6636         convert_name, convert_params_to_expression,
6637         convert_ast_to_expression, ast_basic_type, ast_operation,
6638         ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
6639         ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
6640         ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
6641         ast_array_type, ast_slice_type, ast_reference_type,
6642         ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
6643         (rust_parse): Update.
6644         (rustyyerror, rustyylex): Add parser parameter.
6645         (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
6646         (rust_lex_stringish_test, rust_lex_test_sequence)
6647         (rust_lex_test_trailing_dot, rust_lex_test_completion)
6648         (rust_lex_test_push_back, rust_lex_tests): Update.
6649
6650 2018-07-19  Pedro Alves  <palves@redhat.com>
6651
6652         * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
6653         gdb::unique_xmalloc_ptr.
6654         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
6655         Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
6656         * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
6657         copy-initialization.
6658         * guile/scm-pretty-print.c (ppscm_print_children): Use
6659         gdb::unique_xmalloc_ptr instead of cleanups.
6660         (gdbscm_apply_val_pretty_printer): Remove cleanups.
6661         * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
6662         gdb::unique_xmalloc_ptr.
6663         * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
6664         Adjust to use gdb::unique_xmalloc_ptr.
6665         * guile/scm-utils.c (extract_arg): Adjust.
6666         * guile/scm-value.c (gdbscm_value_field): Adjust to use
6667         gdb::unique_xmalloc_ptr instead of a cleanup.
6668
6669 2018-07-19  Tom Tromey  <tom@tromey.com>
6670
6671         * utils.c (do_value_free_to_mark)
6672         (make_cleanup_value_free_to_mark): Remove.
6673         * utils.h (make_cleanup_value_free_to_mark): Remove.
6674
6675 2018-07-19  Pedro Alves  <palves@redhat.com>
6676
6677         * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
6678         forwarding reference.
6679
6680 2018-07-18  Pedro Alves  <palves@redhat.com>
6681
6682         * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
6683         gdbscm_wrap.  Use gdb::unique_xmalloc_ptr<char> instead of a
6684         cleanup.
6685
6686 2018-07-18  Pedro Alves  <palves@redhat.com>
6687
6688         * guile/guile-internal.h: Add comment about mixing GDB and Scheme
6689         exceptions.
6690         (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
6691         (gdbscm_wrap): New.
6692         * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
6693         directly instead of a cleanup.
6694         * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
6695         (vlscm_unop): ... this.  Reimplement using gdbscm_wrap.
6696         (vlscm_binop_gdbthrow): New, factored out from ...
6697         (vlscm_binop): ... this.  Reimplement using gdbscm_wrap.
6698         (vlscm_rich_compare): Use gdbscm_wrap.
6699         * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
6700         instead of a cleanup.
6701         (gdbscm_lookup_global_symbol): Use xfree directly instead of a
6702         cleanup.
6703         * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
6704         Use xfree directly instead of a cleanup.
6705         * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
6706         Adjust to use gdbscm_wrap and scoped_value_mark.
6707         (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
6708         (gdbscm_value_address, gdbscm_value_dereference)
6709         (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
6710         scoped_value_mark.
6711         (gdbscm_value_dynamic_type): Use scoped_value_mark.
6712         (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
6713         scoped_value_mark.
6714         (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
6715         gdbscm_wrap and scoped_value_mark.
6716         (gdbscm_value_to_string): Use xfree directly instead of a
6717         cleanup.  Move 'buffer' unique_ptr to TRY scope.
6718         (gdbscm_value_to_lazy_string): Use xfree directly instead of a
6719         cleanup.  Move 'buffer' unique_ptr to TRY scope.  Use
6720         scoped_value_mark.
6721         (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
6722         (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
6723         scoped_value_mark.
6724         (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
6725         gdbscm_wrap.
6726
6727 2018-07-18  Tom de Vries  <tdevries@suse.de>
6728
6729         * findvar.c (default_read_var_value): Also resolve dynamic type for
6730         LOC_OPTIMIZED_OUT vars.
6731
6732 2018-07-18  Maciej W. Rozycki  <macro@mips.com>
6733
6734         * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
6735         decoding.
6736
6737 2018-07-17  Tom Tromey  <tom@tromey.com>
6738
6739         * guile/scm-param.c (pascm_set_func, pascm_show_func)
6740         (compute_enum_list, pascm_set_param_value_x)
6741         (gdbscm_parameter_value): Update.
6742         * guile/guile-internal.h (gdbscm_scm_to_string): Update.
6743         (gdbscm_scm_to_host_string): Update.
6744         * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
6745         Update.
6746         * guile/scm-cmd.c (cmdscm_add_completion): Update.
6747         * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
6748         * guile/scm-string.c (gdbscm_scm_to_string): Return
6749         unique_xmalloc_ptr.
6750         (gdbscm_scm_to_host_string): Likewise.
6751
6752 2018-07-17  Tom Tromey  <tom@tromey.com>
6753
6754         * guile/guile.c (gdbscm_eval_from_control_command): Update.
6755         * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
6756         * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
6757         * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
6758         unique_xmalloc_ptr.
6759
6760 2018-07-17  Tom Tromey  <tom@tromey.com>
6761
6762         * guile/scm-param.c (pascm_signal_setshow_error): Update.
6763         * guile/guile-internal.h (gdbscm_exception_message_to_string):
6764         Update.
6765         * guile/scm-cmd.c (cmdscm_function): Update.
6766         * guile/scm-pretty-print.c
6767         (ppscm_print_exception_unless_memory_error): Update.
6768         * guile/scm-exception.c (gdbscm_exception_message_to_string):
6769         Return unique_xmalloc_ptr.
6770
6771 2018-07-17  Tom Tromey  <tom@tromey.com>
6772
6773         * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
6774         Use string_printf.
6775
6776 2018-07-17  Jim Wilson  <jimw@sifive.com>
6777
6778         * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
6779         set_gdbarch_decr_pc_after_break.  Call riscv_read_misa_reg always.
6780         (riscv_gdbarch_init): Delete local has_compressed_isa.  Delete now
6781         unecessary braces after EF_RISCV_RVC test.  Delete call to
6782         set_gdbarch_decr_pc_after_break.
6783
6784         * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
6785         RISCV_LAST_FP_REGNUM + 1.
6786         (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
6787
6788 2018-07-17  Tom Tromey  <tom@tromey.com>
6789
6790         * configure.ac: Remove --disable-gdbcli.
6791         * configure: Rebuild.
6792         * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
6793         (SUBDIR_CLI_CFLAGS): Remove.
6794         (SFILES): Use SUBDIR_CLI_SRCS.
6795         (COMMON_OBS): Use SUBDIR_CLI_OBS.
6796
6797 2018-07-17  Tom Tromey  <tom@tromey.com>
6798
6799         PR gdb/18624:
6800         * coffread.c (coff_symtab_read): Use scoped_free_pendings.
6801
6802 2018-07-16  Jim Wilson  <jimw@sifive.com>
6803
6804         * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
6805
6806 2018-07-16  Simon Marchi  <simon.marchi@ericsson.com>
6807
6808         * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
6809         variable.
6810         (libunwind_frame_sniffer): Likewise.
6811         (libunwind_frame_prev_register): Likewise.
6812         (libunwind_sigtramp_frame_sniffer): Likewise.
6813         * ia64-tdep.c (ia64_access_reg): Likewise.
6814         (ia64_access_rse_reg): Likewise.
6815         (ia64_libunwind_sigtramp_frame_this_id): Likewise.
6816         * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
6817
6818 2018-07-16  Simon Marchi  <simon.marchi@ericsson.com>
6819
6820         * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
6821
6822 2018-07-16  Simon Marchi  <simon.marchi@ericsson.com>
6823
6824         * remote-sim.c (gdbsim_target::close,
6825         gdbsim_target::mourn_inferior): Remove unused variables.
6826
6827 2018-07-16  Simon Marchi  <simon.marchi@polymtl.ca>
6828
6829         * ia64-tdep.c (ktab_buf): New global.
6830         (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
6831         (get_kernel_table): Adjust.
6832
6833 2018-07-16  Tom Tromey  <tom@tromey.com>
6834
6835         * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
6836         * dwarf2read.c (using_directives, new_symbol): Use
6837         outermost_context_p.
6838         * dbxread.c (process_one_symbol): Use outermost_context_p.
6839         * coffread.c (coff_symtab_read): Use outermost_context_p.
6840
6841 2018-07-16  Tom Tromey  <tom@tromey.com>
6842
6843         * dwarf2read.c (using_directives, read_func_scope)
6844         (read_lexical_block_scope): Update.
6845         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6846         * buildsym.h (local_using_directives, global_using_directives):
6847         Don't declare.
6848         (get_local_using_directives, set_local_using_directives)
6849         (get_global_using_directives): Declare.
6850         * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
6851         m_global_using_directives>: New members.
6852         (finish_block_internal, prepare_for_building)
6853         (reset_symtab_globals, end_symtab_get_static_block)
6854         (push_context): Update.
6855         (get_local_using_directives, set_local_using_directives)
6856         (get_global_using_directives): New functions.
6857         (buildsym_init): Update.
6858
6859 2018-07-16  Tom Tromey  <tom@tromey.com>
6860
6861         * xcoffread.c (xcoff_initial_scan): Don't call
6862         free_pending_blocks.
6863         * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
6864         * buildsym.h (class scoped_free_pendings): Add constructor.
6865         (free_pending_blocks): Don't declare.
6866         * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
6867         (free_pending_blocks): Now static.
6868
6869 2018-07-16  Tom Tromey  <tom@tromey.com>
6870
6871         * buildsym.h (push_subfile, pop_subfile): Update declarations.
6872         * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
6873         member.
6874         (struct subfile_stack): Remove.
6875         (subfile_stack): Remove.
6876         (push_subfile, pop_subfile, buildsym_init): Update.
6877
6878 2018-07-16  Tom Tromey  <tom@tromey.com>
6879
6880         * buildsym.c (push_subfile): Use gdb_assert.
6881         (pop_subfile): Use gdb_assert.
6882
6883 2018-07-16  Tom Tromey  <tom@tromey.com>
6884
6885         * buildsym.h (merge_symbol_lists): Remove.
6886         * buildsym.c (merge_symbol_lists): Remove.
6887
6888 2018-07-16  Tom Tromey  <tom@tromey.com>
6889
6890         * stabsread.c (scan_file_globals): Update comment.
6891         * stabsread.h (scan_file_globals): Move from buildsym.h.
6892         * buildsym.h (scan_file_globals): Move to stabsread.h.
6893
6894 2018-07-16  Tom Tromey  <tom@tromey.com>
6895
6896         * xcoffread.c (xcoff_new_init): Update.
6897         * mipsread.c (mipscoff_new_init): Update.
6898         * mdebugread.c (mdebug_build_psymtabs): Update.
6899         * elfread.c (elf_new_init): Update.
6900         * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
6901         (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
6902         * buildsym.h (buildsym_new_init): Don't declare.
6903         * buildsym.c (buildsym_new_init): Remove.
6904
6905 2018-07-16  Tom Tromey  <tom@tromey.com>
6906
6907         * stabsread.h (within_function): Move from buildsym.h.
6908         * stabsread.c (start_stabs): Clear within_function.
6909         * coffread.c (coff_start_symtab): Clear within_function.
6910         * buildsym.h (within_function): Move to stabsread.h.
6911         * buildsym.c (prepare_for_building): Update.
6912
6913 2018-07-16  Tom Tromey  <tom@tromey.com>
6914
6915         * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
6916         * dwarf2read.c (dwarf2_start_symtab): Don't set
6917         processing_gcc_compilation.
6918         * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
6919
6920 2018-07-16  Tom Tromey  <tom@tromey.com>
6921
6922         * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
6923         (next_symbol_text_func): Move from buildsym.h.
6924         * stabsread.c (hashname): Move from buildsym.c.
6925         * buildsym.h (HASHSIZE, symnum, next_symbol_text)
6926         (next_symbol_text_func, hashname): Move to stabsread.h.
6927         * buildsym.c: Don't include bcache.h
6928         (hashname): Move to stasbread.c.
6929
6930 2018-07-16  Tom Tromey  <tom@tromey.com>
6931
6932         * buildsym.h (context_stack_size): Don't declare.
6933         * buildsym.c (context_stack_size): New global.
6934
6935 2018-07-16  Tom Tromey  <tom@tromey.com>
6936
6937         * dbxread.c (processing_acc_compilation): New global.
6938         * buildsym.h (processing_acc_compilation): Don't declare.
6939
6940 2018-07-16  Tom Tromey  <tom@tromey.com>
6941
6942         * xcoffread.c (aix_process_linenos, complete_symtab): Update.
6943         * dbxread.c (read_ofile_symtab): Update.
6944         * coffread.c (coff_start_symtab, coff_end_symtab): Update.
6945         * buildsym.h (last_source_start_addr): Remove.
6946         (set_last_source_start_addr, get_last_source_start_addr):
6947         Declare.
6948         * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
6949         parameter.
6950         (struct buildsym_compunit) <m_last_source_start_addr>: New
6951         member.
6952         (prepare_for_building): Remove start_addr parameter.
6953         (start_symtab, restart_symtab, end_symtab_get_static_block)
6954         (end_symtab_with_blockvector): Update.
6955         (set_last_source_start_addr, get_last_source_start_addr): New
6956         functions.
6957
6958 2018-07-16  Tom Tromey  <tom@tromey.com>
6959
6960         * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
6961         member.
6962         (have_line_numbers): Remove.
6963         (record_line, prepare_for_building, end_symtab_get_static_block)
6964         (augment_type_symtab): Update.
6965
6966 2018-07-16  Tom Tromey  <tom@tromey.com>
6967
6968         * buildsym.c (~buildsym_compunit): Free the macro table.
6969         (struct buildsym_compunit) <get_macro_table, release_macros>: New
6970         methods.
6971         <m_pending_macros>: New member.
6972         (pending_macros): Remove.
6973         (~scoped_free_pendings, get_macro_table, prepare_for_building)
6974         (reset_symtab_globals, end_symtab_get_static_block)
6975         (end_symtab_with_blockvector, augment_type_symtab)
6976         (buildsym_init): Update.
6977
6978 2018-07-16  Tom Tromey  <tom@tromey.com>
6979
6980         * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
6981         parameter.
6982         (buildsym_compunit::set_last_source_file): New method.
6983         <m_last_source_file>: New member.
6984         (prepare_for_building): Remove "name" parameter.
6985         (start_symtab, restart_symtab, reset_symtab_globals): Update.
6986         (last_source_file): Remove.
6987         (set_last_source_file, get_last_source_file): Update.
6988
6989 2018-07-16  Tom Tromey  <tom@tromey.com>
6990
6991         * buildsym.c (prepare_for_building): Add assert.
6992
6993 2018-07-16  Tom Tromey  <tom@tromey.com>
6994
6995         * buildsym.c (~buildsym_compunit): Update.
6996         (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
6997         (start_subfile, patch_subfile_names)
6998         (end_symtab_with_blockvector): Update.
6999
7000 2018-07-16  Tom Tromey  <tom@tromey.com>
7001
7002         * buildsym.c (struct buildsym_compunit): Add constructor,
7003         destructor, initializers.
7004         (start_buildsym_compunit): Remove.
7005         (free_buildsym_compunit): Use "delete".
7006         (start_symtab, restart_symtab): Use "new".
7007
7008 2018-07-13  Simon Marchi  <simon.marchi@polymtl.ca>
7009
7010         * symfile.c (set_objfile_default_section_offset): Remove struct
7011         keyword.
7012
7013 2018-07-14  Stafford Horne  <shorne@gmail.com>
7014
7015         * (Responsible Maintainers): Add myself as or1k maintainer.
7016
7017 2018-07-13  Tom Tromey  <tom@tromey.com>
7018
7019         * symfile.c (set_objfile_default_section_offset): Use extra braces
7020         around initializer.
7021
7022 2018-07-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7023
7024         * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
7025         non-branching basr.
7026
7027 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7028
7029         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7030         unittests/cli-utils-selftests.c
7031         * unittests/cli-utils-selftests.c: New file.
7032
7033 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7034
7035         * NEWS: Mention new commands. Mention change to 'thread apply'.
7036
7037 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7038
7039         * thread.c (thr_try_catch_cmd): New function.
7040         (thread_apply_all_command): Handle qcs flags.
7041         (thread_apply_command): Handle qcs flags.
7042         (taas_command): New function.
7043         (tfaas_command): New function.
7044         (_initialize_thread): Update to setup the new commands 'taas
7045         and 'tfaas'. Change doc string for 'thread apply'.
7046
7047 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7048
7049         * stack.c: (trailing_outermost_frame): New function, mostly
7050         extracted from backtrace_command_1.
7051         (leading_innermost_frame): New function.
7052         (backtrace_command_1): Update to call trailing_outermost_frame.
7053         (frame_apply_command_count): New function.
7054         (frame_apply_level_command): New function.
7055         (frame_apply_all_command): New function.
7056         (frame_apply_command): New function.
7057         (faas_command): New function.
7058         (frame_cmd_list): New variable.
7059         (_initialize_stack): Update to setup the new commands 'frame apply'
7060         and 'faas'.
7061
7062 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7063
7064         * cli-utils.c (number_or_range_parser::get_number): Only handle
7065         numbers or convenience var as numbers.
7066         (parse_flags): New function.
7067         (parse_flags_qcs): New function.
7068         (number_or_range_parser::finished): Ensure parsing end is detected
7069         before end of string.
7070         * cli-utils.h (parse_flags): New function.
7071         (parse_flags_qcs): New function.
7072         (number_or_range_parser): Remove m_finished bool.
7073         (number_or_range_parser::skip_range): Set m_in_range to false.
7074
7075 2018-07-12  Sergio Durigan Junior  <sergiodj@redhat.com>
7076
7077         * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
7078         on Windows.
7079
7080 2018-07-11  Sergio Durigan Junior  <sergiodj@redhat.com>
7081             Jan Kratochvil  <jan.kratochvil@redhat.com>
7082             Paul Fertser  <fercerpav@gmail.com>
7083             Tsutomu Seki  <sekiriki@gmail.com>
7084             Pedro Alves  <palves@redhat.com>
7085
7086         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7087         'unittests/parse-connection-spec-selftests.c'.
7088         (COMMON_SFILES): Add 'common/netstuff.c'.
7089         (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
7090         * NEWS (Changes since GDB 8.2): Mention IPv6 support.
7091         * common/netstuff.c: New file.
7092         * common/netstuff.h: New file.
7093         * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
7094         (wait_for_connect): Update comment.  New parameter
7095         'gdb::optional<int> sock' instead of 'struct serial *scb'.
7096         Use 'sock' directly instead of 'scb->fd'.
7097         (try_connect): New function, with code from 'net_open'.
7098         (net_open): Rewrite main loop to deal with multiple
7099         sockets/addresses.  Handle IPv6-style hostnames; implement
7100         support for IPv6 connections.
7101         * unittests/parse-connection-spec-selftests.c: New file.
7102
7103 2018-07-11  Pedro Alves  <palves@redhat.com>
7104
7105         PR gdb/23377
7106         * remote.c (remote_target::remote_detach_pid): Call
7107         set_current_process.
7108
7109 2018-07-11  Pedro Alves  <palves@redhat.com>
7110
7111         * h8300-tdep.c (h8300_gdbarch_init): Remove
7112         set_gdbarch_ecoff_reg_to_regnum calls.
7113
7114 2018-07-11  Sergio Durigan Junior  <sergiodj@redhat.com>
7115
7116         PR c++/23373
7117         * c-typeprint.c (c_type_print_base_struct_union): Don't print
7118         offsets/sizes for static members of a class/struct.
7119
7120 2018-07-11  Alan Hayward  <alan.hayward@arm.com>
7121
7122         * target-descriptions.c (tdesc_register_bitsize): Rename.
7123         * target-descriptions.h (tdesc_register_bitsize): Likewise.
7124         * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
7125         * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
7126
7127 2018-07-10  Tom Tromey  <tom@tromey.com>
7128
7129         * breakpoint.c (moribund_locations): Now static and a
7130         std::vector.
7131         (breakpoint_init_inferior, moribund_breakpoint_here_p)
7132         (build_bpstat_chain, update_global_location_list)
7133         (breakpoint_retire_moribund): Update.
7134         * breakpoint.h (bp_location_p): Remove typedef.  Don't declare
7135         VEC.
7136
7137 2018-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
7138
7139         * riscv-tdep.c (riscv_is_fp_regno_p): New function.
7140         (riscv_register_reggroup_p): Use new function, remove unneeded
7141         parenthesis.
7142         (riscv_push_dummy_call): Extend assert to compare against xlen or
7143         flen based on register type.
7144
7145 2018-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
7146
7147         * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
7148
7149 2018-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
7150
7151         * remote.c (show_hardware_watchpoint_limit): New function.
7152         (show_hardware_watchpoint_length_limit): New function.
7153         (show_hardware_breakpoint_limit): New function.
7154         (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
7155         where appropriate, update help text.
7156
7157 2018-07-09  Tom Tromey  <tom@tromey.com>
7158
7159         * Makefile.in (CDEPS): Don't mention XM_CDEPS.
7160         (CLIBS): Don't mention NAT_CLIBS.
7161
7162 2018-07-09  Tom Tromey  <tom@tromey.com>
7163
7164         * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
7165         (LIBGDB_OBS, clean mostlyclean): Update.
7166         (gdb$(EXEEXT), insight$(EXEEXT)): Update.
7167
7168 2018-07-09  Tom Tromey  <tom@tromey.com>
7169
7170         * Makefile.in (%.c: %.y): Use ECHO_YACC.
7171         (%.c: %.l): Use ECHO_LEX.  Just fail if flex not available.
7172         * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
7173
7174 2018-07-09  Tom Tromey  <tom@tromey.com>
7175
7176         * Makefile.in (ALLDEPFILES): Remove exec.c.
7177         (COMMON_OBS): Remove exec.o.
7178         (COMMON_SFILES): Add exec.c.
7179
7180 2018-07-09  Tom Tromey  <tom@tromey.com>
7181
7182         * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
7183
7184 2018-07-09  Tom Tromey  <tom@tromey.com>
7185
7186         * Makefile.in (clean mostlyclean): Remove stamp-version.
7187         (version.c): Depend on stamp-version.
7188         (stamp-version): New rule, from version.c rule.
7189
7190 2018-07-09  Tom Tromey  <tom@tromey.com>
7191
7192         * Makefile.in (init.c): Depend on stamp-init.
7193         (stamp-init): New rule, from init.c rule.
7194         (clean mostlyclean): Remove stamp-init.
7195
7196 2018-07-09  Tom Tromey  <tom@tromey.com>
7197
7198         * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
7199         SUBDIR_GCC_COMPILE_SRCS.
7200
7201 2018-07-09  Tom Tromey  <tom@tromey.com>
7202
7203         * Makefile.in (init.c): Remove some unused sed rules.
7204
7205 2018-07-09  Tom Tromey  <tom@tromey.com>
7206
7207         * Makefile.in (TSOBS): Remove.
7208         (INIT_FILES): Update.
7209         (LIBGDB_OBS): Update.
7210         (COMMON_SFILES): Add inflow.c.
7211         (SFILES): Remove inflow.c.
7212
7213 2018-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
7214
7215         * contrib/gdb-add-index.sh ($dwarf5): New, use it.
7216
7217 2018-07-07  Simon Marchi  <simon.marchi@polymtl.ca>
7218
7219         * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
7220         get_saveloc_name, is_signal_frame_name, step_name,
7221         init_remote_name, create_addr_space_name,
7222         destroy_addr_space_name, search_unwind_table_name,
7223         find_dyn_list_name): Constify.
7224
7225 2018-07-05  Simon Marchi  <simon.marchi@polymtl.ca>
7226
7227         * darwin-nat.c (darwin_pthread_kill): New function.
7228         (darwin_resume_thread): Use darwin_pthread_kill.
7229
7230 2018-07-05  Tom de Vries  <tdevries@suse.de>
7231
7232         * macroexp.c (macro_buffer) <operator=>: New member function.
7233
7234 2018-07-04  Tom Tromey  <tom@tromey.com>
7235
7236         * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
7237
7238 2018-07-04  Simon Marchi  <simon.marchi@polymtl.ca>
7239
7240         * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
7241         * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
7242         * maint.c: Likewise.
7243         * top.c: Likewise.
7244
7245 2018-07-04  Joel Brobecker  <brobecker@adacore.com>
7246
7247         * NEWS: Create a new section for the next release branch.
7248         Rename the section of the current branch, now that it has
7249         been cut.
7250
7251 2018-07-04  Joel Brobecker  <brobecker@adacore.com>
7252
7253         GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
7254         * version.in: Bump version to 8.2.50.DATE-git.
7255
7256 2018-07-04  Vyacheslav Barinov  <v.barinov@samsung.com>
7257             Pedro Alves  <palves@redhat.com>
7258
7259         * linux-nat.c (linux_init_ptrace): Rename to ...
7260         (linux_init_ptrace_procfs): ... this.  Call
7261         linux_proc_init_warnings.
7262         (linux_nat_target::post_attach)
7263         (linux_nat_target::post_startup_inferior): Adjust.
7264         * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
7265         * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
7266
7267 2018-07-04  Tom de Vries  <tdevries@suse.de>
7268
7269         * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
7270         check ...
7271         (read_comp_unit_head): ... here.
7272
7273 2018-07-03  Tom Tromey  <tom@tromey.com>
7274
7275         * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
7276         (stop_tracing, tstatus_command)
7277         (find_matching_tracepoint_location, merge_uploaded_tracepoints)
7278         (print_one_static_tracepoint_marker): Update.
7279         * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
7280         std::vector.
7281         * breakpoint.h (breakpoint_p): Remove typedef.  Don't declare
7282         VEC.
7283         (all_tracepoints, static_tracepoints_here): Return std::vector.
7284
7285 2018-07-03  Tom Tromey  <tom@tromey.com>
7286
7287         * common/ptid.c (ptid_equal): Remove.
7288         * common/ptid.h (ptid_equal): Don't declare.
7289         * ada-tasks.c: Update.
7290         * breakpoint.c: Update.
7291         * common/agent.c: Update.
7292         * corelow.c: Update.
7293         * darwin-nat-info.c: Update.
7294         * darwin-nat.c: Update.
7295         * dcache.c: Update.
7296         * dtrace-probe.c: Update.
7297         * dummy-frame.c: Update.
7298         * fbsd-nat.c: Update.
7299         * frame.c: Update.
7300         * gdbthread.h: Update.
7301         * gnu-nat.c: Update.
7302         * go32-nat.c: Update.
7303         * inf-loop.c: Update.
7304         * inf-ptrace.c: Update.
7305         * infcall.c: Update.
7306         * infcmd.c: Update.
7307         * inflow.c: Update.
7308         * infrun.c: Update.
7309         * linux-fork.c: Update.
7310         * linux-nat.c: Update.
7311         * linux-thread-db.c: Update.
7312         * mi/mi-cmd-var.c: Update.
7313         * mi/mi-interp.c: Update.
7314         * mi/mi-main.c: Update.
7315         * nto-procfs.c: Update.
7316         * ppc-linux-tdep.c: Update.
7317         * procfs.c: Update.
7318         * python/py-inferior.c: Update.
7319         * python/py-record-btrace.c: Update.
7320         * python/py-record.c: Update.
7321         * ravenscar-thread.c: Update.
7322         * regcache.c: Update.
7323         * remote-sim.c: Update.
7324         * remote.c: Update.
7325         * sol-thread.c: Update.
7326         * solib.c: Update.
7327         * target.c: Update.
7328         * tui/tui-stack.c: Update.
7329         * varobj.c: Update.
7330         * windows-nat.c: Update.
7331         * windows-tdep.c: Update.
7332
7333 2018-07-03  Tom Tromey  <tom@tromey.com>
7334
7335         * common/ptid.c (ptid_match): Remove.
7336         * common/ptid.h (ptid_match): Don't declare.
7337         * fbsd-nat.c: Update.
7338         * infcmd.c: Update.
7339         * infrun.c: Update.
7340         * linux-nat.c: Update.
7341         * record-btrace.c: Update.
7342         * regcache.c: Update.
7343         * remote.c: Update.
7344
7345 2018-07-03  Tom Tromey  <tom@tromey.com>
7346
7347         * common/ptid.c (ptid_tid_p): Remove.
7348         * common/ptid.h (ptid_tid_p): Don't declare.
7349         * sol-thread.c: Update.
7350
7351 2018-07-03  Tom Tromey  <tom@tromey.com>
7352
7353         * common/ptid.c (ptid_lwp_p): Remove.
7354         * common/ptid.h (ptid_lwp_p): Don't declare.
7355         * fbsd-nat.c: Update.
7356         * linux-nat.c: Update.
7357         * nat/linux-procfs.c: Update.
7358         * nat/x86-linux-dregs.c: Update.
7359         * sol-thread.c: Update.
7360
7361 2018-07-03  Tom Tromey  <tom@tromey.com>
7362
7363         * common/ptid.c (ptid_is_pid): Remove.
7364         * common/ptid.h (ptid_is_pid): Don't declare.
7365         * infrun.c: Update.
7366         * linux-nat.c: Update.
7367         * mi/mi-interp.c: Update.
7368         * remote.c: Update.
7369         * thread.c: Update.
7370
7371 2018-07-03  Tom Tromey  <tom@tromey.com>
7372
7373         * common/ptid.c (ptid_get_tid): Remove.
7374         * common/ptid.h (ptid_get_tid): Don't declare.
7375         * ada-tasks.c: Update.
7376         * aix-thread.c: Update.
7377         * bsd-uthread.c: Update.
7378         * darwin-nat.c: Update.
7379         * fbsd-nat.c: Update.
7380         * i386-darwin-nat.c: Update.
7381         * infrun.c: Update.
7382         * linux-tdep.c: Update.
7383         * nto-procfs.c: Update.
7384         * ppc-ravenscar-thread.c: Update.
7385         * python/py-infthread.c: Update.
7386         * ravenscar-thread.c: Update.
7387         * sol-thread.c: Update.
7388         * sparc-ravenscar-thread.c: Update.
7389         * windows-nat.c: Update.
7390
7391 2018-07-03  Tom Tromey  <tom@tromey.com>
7392
7393         * common/ptid.c (ptid_get_lwp): Remove.
7394         * common/ptid.h (ptid_get_lwp): Don't declare.
7395         * aarch64-linux-nat.c: Update.
7396         * ada-tasks.c: Update.
7397         * aix-thread.c: Update.
7398         * amd64-linux-nat.c: Update.
7399         * arm-linux-nat.c: Update.
7400         * corelow.c: Update.
7401         * fbsd-nat.c: Update.
7402         * fbsd-tdep.c: Update.
7403         * gnu-nat.c: Update.
7404         * i386-cygwin-tdep.c: Update.
7405         * i386-gnu-nat.c: Update.
7406         * i386-linux-nat.c: Update.
7407         * ia64-linux-nat.c: Update.
7408         * inf-ptrace.c: Update.
7409         * infrun.c: Update.
7410         * linux-fork.c: Update.
7411         * linux-nat.c: Update.
7412         * linux-tdep.c: Update.
7413         * linux-thread-db.c: Update.
7414         * mips-linux-nat.c: Update.
7415         * nat/aarch64-linux-hw-point.c: Update.
7416         * nat/aarch64-linux.c: Update.
7417         * nat/linux-btrace.c: Update.
7418         * nat/linux-osdata.c: Update.
7419         * nat/linux-procfs.c: Update.
7420         * nat/x86-linux-dregs.c: Update.
7421         * obsd-nat.c: Update.
7422         * ppc-fbsd-nat.c: Update.
7423         * ppc-linux-nat.c: Update.
7424         * procfs.c: Update.
7425         * python/py-infthread.c: Update.
7426         * ravenscar-thread.c: Update.
7427         * remote.c: Update.
7428         * s390-linux-nat.c: Update.
7429         * sol-thread.c: Update.
7430         * sol2-tdep.c: Update.
7431         * spu-linux-nat.c: Update.
7432         * x86-linux-nat.c: Update.
7433         * xtensa-linux-nat.c: Update.
7434
7435 2018-07-03  Tom Tromey  <tom@tromey.com>
7436
7437         * common/ptid.c (ptid_get_pid): Remove.
7438         * common/ptid.h (ptid_get_pid): Don't declare.
7439         * aarch64-linux-nat.c: Update.
7440         * ada-lang.c: Update.
7441         * aix-thread.c: Update.
7442         * alpha-bsd-nat.c: Update.
7443         * amd64-fbsd-nat.c: Update.
7444         * amd64-linux-nat.c: Update.
7445         * arm-linux-nat.c: Update.
7446         * arm-nbsd-nat.c: Update.
7447         * auxv.c: Update.
7448         * break-catch-syscall.c: Update.
7449         * breakpoint.c: Update.
7450         * bsd-uthread.c: Update.
7451         * corelow.c: Update.
7452         * ctf.c: Update.
7453         * darwin-nat.c: Update.
7454         * fbsd-nat.c: Update.
7455         * fbsd-tdep.c: Update.
7456         * gcore.c: Update.
7457         * gnu-nat.c: Update.
7458         * hppa-nbsd-nat.c: Update.
7459         * hppa-obsd-nat.c: Update.
7460         * i386-fbsd-nat.c: Update.
7461         * ia64-linux-nat.c: Update.
7462         * inf-ptrace.c: Update.
7463         * infcmd.c: Update.
7464         * inferior.c: Update.
7465         * inferior.h: Update.
7466         * inflow.c: Update.
7467         * infrun.c: Update.
7468         * linux-fork.c: Update.
7469         * linux-nat.c: Update.
7470         * linux-tdep.c: Update.
7471         * linux-thread-db.c: Update.
7472         * m68k-bsd-nat.c: Update.
7473         * mi/mi-interp.c: Update.
7474         * mi/mi-main.c: Update.
7475         * mips-linux-nat.c: Update.
7476         * mips-nbsd-nat.c: Update.
7477         * mips64-obsd-nat.c: Update.
7478         * nat/aarch64-linux-hw-point.c: Update.
7479         * nat/aarch64-linux.c: Update.
7480         * nat/linux-btrace.c: Update.
7481         * nat/linux-osdata.c: Update.
7482         * nat/linux-procfs.c: Update.
7483         * nat/x86-linux-dregs.c: Update.
7484         * nto-procfs.c: Update.
7485         * obsd-nat.c: Update.
7486         * ppc-linux-nat.c: Update.
7487         * ppc-nbsd-nat.c: Update.
7488         * ppc-obsd-nat.c: Update.
7489         * proc-service.c: Update.
7490         * procfs.c: Update.
7491         * python/py-inferior.c: Update.
7492         * python/py-infthread.c: Update.
7493         * ravenscar-thread.c: Update.
7494         * record.c: Update.
7495         * remote-sim.c: Update.
7496         * remote.c: Update.
7497         * rs6000-nat.c: Update.
7498         * s390-linux-nat.c: Update.
7499         * sh-nbsd-nat.c: Update.
7500         * sol-thread.c: Update.
7501         * sparc-nat.c: Update.
7502         * sparc64-tdep.c: Update.
7503         * spu-linux-nat.c: Update.
7504         * spu-tdep.c: Update.
7505         * target-debug.h: Update.
7506         * target.c: Update.
7507         * thread.c: Update.
7508         * tid-parse.c: Update.
7509         * tracefile-tfile.c: Update.
7510         * vax-bsd-nat.c: Update.
7511         * windows-nat.c: Update.
7512         * x86-linux-nat.c: Update.
7513         * x86-nat.c: Update.
7514
7515 2018-07-03  Tom Tromey  <tom@tromey.com>
7516
7517         * common/ptid.c (pid_to_ptid): Remove.
7518         * common/ptid.h (pid_to_ptid): Don't declare.
7519         * aix-thread.c: Update.
7520         * arm-linux-nat.c: Update.
7521         * common/ptid.c: Update.
7522         * common/ptid.h: Update.
7523         * corelow.c: Update.
7524         * ctf.c: Update.
7525         * darwin-nat.c: Update.
7526         * fbsd-nat.c: Update.
7527         * fork-child.c: Update.
7528         * gnu-nat.c: Update.
7529         * go32-nat.c: Update.
7530         * inf-ptrace.c: Update.
7531         * infcmd.c: Update.
7532         * inferior.c: Update.
7533         * infrun.c: Update.
7534         * linux-fork.c: Update.
7535         * linux-nat.c: Update.
7536         * nat/aarch64-linux-hw-point.c: Update.
7537         * nat/fork-inferior.c: Update.
7538         * nat/x86-linux-dregs.c: Update.
7539         * nto-procfs.c: Update.
7540         * obsd-nat.c: Update.
7541         * procfs.c: Update.
7542         * progspace.c: Update.
7543         * remote.c: Update.
7544         * rs6000-nat.c: Update.
7545         * s390-linux-nat.c: Update.
7546         * sol-thread.c: Update.
7547         * spu-linux-nat.c: Update.
7548         * target.c: Update.
7549         * top.c: Update.
7550         * tracefile-tfile.c: Update.
7551         * windows-nat.c: Update.
7552
7553 2018-07-03  Tom Tromey  <tom@tromey.com>
7554
7555         * common/ptid.h (ptid_build): Don't declare.
7556         * common/ptid.c (ptid_build): Remove.
7557         * aix-thread.c: Update.
7558         * bsd-kvm.c: Update.
7559         * bsd-uthread.c: Update.
7560         * common/agent.c: Update.
7561         * common/ptid.c: Update.
7562         * common/ptid.h: Update.
7563         * corelow.c: Update.
7564         * darwin-nat.c: Update.
7565         * fbsd-nat.c: Update.
7566         * gnu-nat.c: Update.
7567         * linux-fork.c: Update.
7568         * linux-nat.c: Update.
7569         * linux-thread-db.c: Update.
7570         * nat/linux-osdata.c: Update.
7571         * nat/linux-procfs.c: Update.
7572         * nto-procfs.c: Update.
7573         * obsd-nat.c: Update.
7574         * proc-service.c: Update.
7575         * procfs.c: Update.
7576         * ravenscar-thread.c: Update.
7577         * remote-sim.c: Update.
7578         * remote.c: Update.
7579         * sol-thread.c: Update.
7580         * target.c: Update.
7581         * windows-nat.c: Update.
7582
7583 2018-07-03  Tom Tromey  <tom@tromey.com>
7584
7585         * infrun.c (follow_exec): Use exit_inferior_silent.
7586         * inferior.c (exit_inferior_num_silent): Remove.
7587         * inferior.h (exit_inferior_num_silent): Don't declare.
7588
7589 2018-07-03  Tom Tromey  <tom@tromey.com>
7590
7591         PR cli/23340:
7592         * darwin-nat.c (darwin_attach_pid): Reset inferior and
7593         inferior_ptid on error.
7594
7595 2018-07-02  Maciej W. Rozycki  <macro@mips.com>
7596             Simon Marchi  <simon.marchi@polymtl.ca>
7597
7598         PR tdep/8282
7599         * disasm.h (gdb_disassembler): Add
7600         `m_disassembler_options_holder'. member
7601         * disasm.c (get_all_disassembler_options): New function.
7602         (gdb_disassembler::gdb_disassembler): Use it.
7603         (gdb_buffered_insn_length_init_dis): Likewise.
7604         (gdb_buffered_insn_length): Adjust accordingly.
7605         (set_disassembler_options): Handle options with arguments.
7606         (show_disassembler_options_sfunc): Likewise.  Add a leading new
7607         line if showing options with descriptions.
7608         (disassembler_options_completer): Adapt to using the
7609         `disasm_options_and_args_t' structure.
7610         * mips-tdep.c (mips_disassembler_options): New variable.
7611         (mips_disassembler_options_o32): Likewise.
7612         (mips_disassembler_options_n32): Likewise.
7613         (mips_disassembler_options_n64): Likewise.
7614         (gdb_print_insn_mips): Don't set `disassembler_options'.
7615         (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
7616         functions.
7617         (mips_gdbarch_init): Always set `gdbarch_print_insn' to
7618         `gdb_print_insn_mips'.  Set `gdbarch_disassembler_options',
7619         `gdbarch_disassembler_options_implicit' and
7620         `gdbarch_valid_disassembler_options'.
7621         * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
7622         `disasm_options_and_args_t' structure.
7623         * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
7624         method.
7625         (valid_disassembler_options): Switch from `disasm_options_t' to
7626         the `disasm_options_and_args_t' structure.
7627         * NEWS: Document `set disassembler-options' support for the MIPS
7628         target.
7629         * gdbarch.h: Regenerate.
7630         * gdbarch.c: Regenerate.
7631
7632 2018-07-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7633
7634         * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
7635
7636 2018-06-29  Joel Brobecker  <brobecker@adacore.com>
7637
7638         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
7639         parameter in call to amd64_target_description.
7640         * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
7641         * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
7642         (amd64fbsd_init_abi): Likewise.
7643         * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7644         * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7645         * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7646         * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
7647
7648 2018-06-29  Pedro Alves  <palves@redhat.com>
7649
7650         * gdb/amd64-tdep.h (amd64_create_target_description): Add
7651         "segments" parameter.
7652         * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
7653         (_initialize_amd64_tdep): Update call to
7654         amd64_create_target_description.
7655         (amd64_target_description): Add "segments" parameter.  Adjust
7656         the implementation to use it.
7657         * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
7658         call to amd64_create_target_description.
7659         * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
7660         * gdb/arch/amd64.h (amd64_create_target_description): Add
7661         "segments" register.
7662         * gdb/arch/amd64.c (amd64_create_target_description): Add
7663         "segments" parameter.  Call create_feature_i386_64bit_segments
7664         only if SEGMENTS is true.
7665         * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
7666         call to amd64_create_target_description.
7667
7668 2018-06-29  Pedro Alves  <palves@redhat.com>
7669
7670         * thread.c (thread_target_id_str): New, factored out from ...
7671         (print_thread_info_1): ... here.  Use it to compute the max
7672         "Target Id" column width.
7673
7674 2018-06-29  Pedro Alves  <palves@redhat.com>
7675
7676         * remote.c (remote_target::extra_thread_info): Delete
7677         'display_buf' and 'n' locals.  from the cache, regardless of
7678         packet mechanims is in use.  Use cache for qThreadExtra and qP
7679         methods too.
7680
7681 2018-06-29  Pedro Alves  <palves@redhat.com>
7682
7683         * blockframe.c (find_pc_sect_containing_function): New function.
7684         * breakpoint.c (print_breakpoint_location): Don't call
7685         find_pc_sect_function.
7686         * linespec.c (create_sals_line_offset): Record the location's
7687         symbol in the sal.
7688         * linespec.c (convert_address_location_to_sals): Fill in sal's
7689         symbol with find_pc_sect_containing_function.
7690         * symtab.c (find_function_start_sal): Rename to ...
7691         (find_function_start_sal_1): ... this.
7692         (find_function_start_sal): Reimplement as wrapper around
7693         find_function_start_sal_1, and use
7694         find_pc_sect_containing_function to fill in the sal's symbol.
7695         (find_function_start_sal(symbol*, bool)): Adjust.
7696         * symtab.h (find_pc_function, find_pc_sect_function): Adjust
7697         comments.
7698         (find_pc_sect_containing_function): Declare.
7699
7700 2018-06-29  Pedro Alves  <palves@redhat.com>
7701
7702         * inline-frame.c (stopped_by_user_bp_inline_frame): Return
7703         true if the the location has no symbol.
7704
7705 2018-06-28  Tom Tromey  <tom@tromey.com>
7706
7707         * NEWS: Mention --enable-codesign.
7708         * silent-rules.mk (ECHO_SIGN): New variable.
7709         * configure.ac: Add --enable-codesign.
7710         * configure: Rebuild.
7711         * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
7712         (gdb$(EXEEXT)): Optionally invoke codesign.
7713
7714 2018-06-28  Pedro Alves  <palves@redhat.com>
7715
7716         * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
7717         comments.
7718         (switch_to_thread_no_regs): Adjust comment.
7719         * infcmd.c (stop_pc): Delete.
7720         (post_create_inferior, info_program_command): Replace references
7721         to stop_pc with references to thread_info->suspend.stop_pc.
7722         * inferior.h (stop_pc): Delete declaration.
7723         * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
7724         (handle_inferior_event_1, handle_signal_stop)
7725         (process_event_stop_test, keep_going_stepped_thread)
7726         (handle_step_into_function, handle_step_into_function_backward)
7727         (print_stop_location): Replace references to stop_pc with
7728         references to thread_info->suspend.stop_pc.
7729         (struct infcall_suspend_state) <stop_pc>: Delete field.
7730         (save_infcall_suspend_state, restore_infcall_suspend_state):
7731         Remove references to inf_stat->stop_pc.
7732         * linux-fork.c (fork_load_infrun_state): Likewise.
7733         * record-btrace.c (record_btrace_set_replay): Likewise.
7734         * record-full.c (record_full_goto_entry): Likewise.
7735         * remote.c (print_one_stopped_thread): Likewise.
7736         * target.c (target_resume): Extend comment.
7737         * thread.c (set_executing_thread): New.
7738         (set_executing): Use it.
7739         (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
7740         Remove references to stop_pc.
7741
7742 2018-06-28  Pedro Alves  <palves@redhat.com>
7743
7744         * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
7745         Moving fetching stop_pc until after ecs->event_thread is refreshed.
7746
7747 2018-06-28  Tom Tromey  <tom@tromey.com>
7748
7749         * coffread.c (coff_symfile_finish): Update.
7750         * xcoffread.c (xcoff_symfile_finish): Update.
7751         * elfread.c (elf_symfile_finish): Update.
7752         * symfile.h (dwarf2_free_objfile): Don't declare.
7753         * dwarf2read.c (_initialize_dwarf2_read): Use
7754         register_objfile_data_with_cleanup.
7755         (dwarf2_free_objfile): Now static.  Change signature.
7756
7757 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
7758
7759         * symfile.c (add_symbol_file_command, _initialize_symfile): Add
7760         option "-o" to add-symbol-file-load to add an offset to each
7761         section's load address.
7762         * symfile.c (set_objfile_default_section_offset): New function.
7763
7764 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
7765
7766         * symfile.c (add_symbol_file_command): Make sure that sections
7767         with the same name are sorted in the same order.
7768
7769 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
7770
7771         * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
7772         require the second argument.  If omitted, load sections at the
7773         addresses specified in the file.
7774
7775 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
7776
7777         * symfile.c (symbol_file_command, symbol_file_add_main_1)
7778         (_initialize_symfile): Add option "-o" to symbol-file to add an
7779         offset to each section of the symbol file.
7780
7781 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
7782
7783         * MAINTAINERS (Write After Approval): Add Petr Tesarik.
7784
7785 2018-06-27  Tom Tromey  <tom@tromey.com>
7786
7787         * stack.c (_initialize_stack): Update "func" help text.
7788
7789 2018-06-27  Tom Tromey  <tom@tromey.com>
7790
7791         * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
7792         std::vector.
7793         (unwind_infopy_str, pyuw_create_unwind_info)
7794         (unwind_infopy_add_saved_register, pyuw_sniffer)
7795         (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
7796         Update.
7797         (struct saved_reg): Add constructor.
7798         <value>: Now a gdbpy_ref<>.
7799
7800 2018-06-27  Tom Tromey  <tom@tromey.com>
7801
7802         * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
7803
7804 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
7805
7806         * gdb-gdb.py.in: Format using autopep8.
7807
7808 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
7809
7810         * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
7811         (type_lookup_function): Recognize CORE_ADDR values.
7812
7813 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
7814
7815         * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
7816         print tag_name.
7817
7818 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
7819
7820         * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
7821         <__lt__>: Add.
7822
7823 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
7824
7825         * gdb-gdb.py: Move to...
7826         * gdb-gdb.py.in: ... here.
7827         * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
7828         * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
7829         dependencies.
7830         (distclean): Remove gdb-gdb.py when cleaning.
7831         (gdb-gdb.py, gdb-gdb.gdb): New rules.
7832         * configure: Re-generate.
7833
7834 2018-06-27  Pedro Alves  <palves@redhat.com>
7835
7836         * proc-service.c (get_ps_regcache): New.
7837         (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7838         (ps_lsetfpregs): Use it.
7839
7840 2018-06-27  Omair Javaid  <omair.javaid@linaro.org>
7841
7842         PR gdb/21695
7843         * dwarf2read.c (lnp_state_machine::check_line_address): Update
7844         declaration.
7845         (dwarf_decode_lines_1): Adjust.
7846
7847 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
7848
7849         * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
7850         override.
7851         <info_proc>: Likewise.
7852
7853 2018-06-26  Joel Brobecker  <brobecker@adacore.com>
7854
7855         * windows-nat.c (do_windows_fetch_inferior_registers): Rename
7856         to windows_fetch_one_register, and only handle the case of
7857         fetching one register.  Move the code that reloads the context
7858         and iterates over all registers if R is negative to...
7859         (windows_nat_target::fetch_registers): ... here.
7860         (do_windows_store_inferior_registers): Rename to
7861         windows_store_one_register, and only handle the case of storing
7862         one register.  Move the code that handles the case where r is
7863         negative to...
7864         (windows_nat_target::store_registers) ... here.
7865
7866 2018-06-26  Tom Tromey  <tom@tromey.com>
7867
7868         PR rust/22574:
7869         * typeprint.c (whatis_exp): Allow ptype/o for Rust.
7870         * rust-lang.c (rust_print_struct_def): Add podata parameter.
7871         Update.
7872         (rust_internal_print_type): Add podata parameter.
7873         (rust_print_type): Update.
7874
7875 2018-06-26  Tom Tromey  <tom@tromey.com>
7876
7877         * typeprint.h (struct print_offset_data) <update, finish,
7878         maybe_print_hole>: New methods.
7879         <indentation>: New constant.
7880         * typeprint.c (print_offset_data::indentation): Define.
7881         (print_offset_data::maybe_print_hole, print_offset_data::update)
7882         (print_offset_data::finish): Move from c-typeprint.c and rename.
7883         * c-typeprint.c (OFFSET_SPC_LEN): Remove.
7884         (print_spaces_filtered_with_print_options): Update.
7885         (c_print_type_union_field_offset, maybe_print_hole)
7886         (c_print_type_struct_field_offset): Move to typeprint.c and
7887         rename.
7888         (c_type_print_base_struct_union): Update.
7889
7890 2018-06-25  Pedro Alves  <palves@redhat.com>
7891
7892         * gdbthread.h (thread_info_ref, delete_thread)
7893         (delete_thread_silent, first_thread_of_inferior)
7894         (any_thread_of_inferior, switch_to_thread)
7895         (enable_thread_stack_temporaries)
7896         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7897         (get_last_thread_stack_temporary)
7898         (value_in_thread_stack_temporaries, can_access_registers_thread):
7899         Spell out "struct thread_info" instead of just "thread_info".
7900         * inferior.h (notice_new_inferior): Likewise.
7901
7902 2018-06-25  Pedro Alves  <palves@redhat.com>
7903
7904         * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
7905         pass thread_info pointer to delete_thread.
7906         (windows_nat_target::detach): Pass inferior pointer to
7907         detach_inferior.
7908         * aix-thread.c (sync_threadlists): Pass thread_info pointer to
7909         delete_thread.
7910         * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
7911         * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
7912         and pass a thread_info pointer to delete_thread.
7913         * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
7914         pass thread_info pointer to delete_thread.
7915         * go32-nat.c (go32_nat_target::mourn_inferior): Remove
7916         delete_thread_silent call.
7917         * procfs.c (procfs_target::detach): Pass inferior pointer to
7918         detach_inferior.
7919         (procfs_target::wait): Pass thread_info pointer to delete_thread.
7920         * remote-sim.c (gdbsim_target::mourn_inferior): Remove
7921         delete_thread_silent call.
7922         * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
7923         pass thread_info pointer to delete_thread.
7924         (windows_nat_target::detach): Pass inferior pointer to
7925         delete_inferior.
7926
7927 2018-06-22  Alan Hayward  <alan.hayward@arm.com>
7928
7929         * regcache.c (readable_regcache::read_part): Fix asserts.
7930         (reg_buffer::raw_collect_part): New function.
7931         (regcache::write_part): Fix asserts.
7932         (reg_buffer::raw_supply_part): New function.
7933         (regcache::transfer_regset_register): New helper function.
7934         (regcache::transfer_regset): Call new functions.
7935         (regcache_supply_regset): Use gdb_byte*.
7936         (regcache::supply_regset): Likewise.
7937         (regcache_collect_regset): Likewise.
7938         (regcache::collect_regset): Likewise.
7939         * regcache.h (reg_buffer::raw_collect_part): New declaration.
7940         (reg_buffer::raw_supply_part): Likewise.
7941         (regcache::transfer_regset_register): Likewise.
7942         (regcache::transfer_regset): Use gdb_byte*.
7943
7944 2018-06-22  Alan Hayward  <alan.hayward@arm.com>
7945
7946         * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
7947
7948 2018-06-21  Pedro Alves  <palves@redhat.com>
7949
7950         * ada-lang.h (ada_get_task_number): Take a thread_info pointer
7951         instead of a ptid_t.  All callers adjusted.
7952         * ada-tasks.c (ada_get_task_number): Likewise.  All callers
7953         adjusted.
7954         (print_ada_task_info, display_current_task_id, task_command_1):
7955         Adjust.
7956         * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
7957         inferior_thread.
7958         (breakpoint_kind): Adjust.
7959         (remove_breakpoints_pid): Rename to ...
7960         (remove_breakpoints_inf): ... this.  Adjust to take an inferior
7961         pointer.  All callers adjusted.
7962         (bpstat_clear_actions): Use inferior_thread.
7963         (get_bpstat_thread): New.
7964         (bpstat_do_actions): Use it.
7965         (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
7966         to take a thread_info pointer.  All callers adjusted.
7967         (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
7968         (breakpoint_re_set_thread): Use inferior_thread.
7969         * breakpoint.h (struct inferior): Forward declare.
7970         (bpstat_stop_status): Update.
7971         (remove_breakpoints_pid): Delete.
7972         (remove_breakpoints_inf): New.
7973         * bsd-uthread.c (bsd_uthread_target::wait)
7974         (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
7975         * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
7976         (maint_btrace_packet_history_cmd)
7977         (maint_btrace_clear_packet_history_cmd): Adjust.
7978         (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
7979         inferior_thread.
7980         * cli/cli-interp.c: Include "inferior.h".
7981         * common/refcounted-object.h (struct
7982         refcounted_object_ref_policy): New.
7983         * compile/compile-object-load.c: Include gdbthread.h.
7984         (store_regs): Use inferior_thread.
7985         * corelow.c (core_target::close): Use current_inferior.
7986         (core_target_open): Adjust to use first_thread_of_inferior and use
7987         the current inferior.
7988         * ctf.c (ctf_target::close): Adjust to use current_inferior.
7989         * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
7990         <thread>: ... this new field.  All references adjusted.
7991         (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
7992         Take a thread_info pointer instead of a ptid_t.
7993         * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
7994         (dummy_frame_discard, register_dummy_frame_dtor): Take a
7995         thread_info pointer instead of a ptid_t.
7996         * elfread.c: Include "inferior.h".
7997         (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
7998         Use inferior_thread.
7999         * eval.c (evaluate_subexp): Likewise.
8000         * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
8001         inferior_thread.
8002         * gdb_proc_service.h (struct thread_info): Forward declare.
8003         (struct ps_prochandle) <ptid>: Delete, replaced by ...
8004         <thread>: ... this new field.  All references adjusted.
8005         * gdbarch.h, gdbarch.c: Regenerate.
8006         * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
8007         'thread' parameter.  All implementations and callers adjusted.
8008         * gdbthread.h (thread_info) <set_running>: New method.
8009         (delete_thread, delete_thread_silent): Take a thread_info pointer
8010         instead of a ptid.
8011         (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
8012         (first_thread_of_process): Delete, replaced by ...
8013         (first_thread_of_inferior): ... this new function.  All callers
8014         adjusted.
8015         (any_live_thread_of_process): Delete, replaced by ...
8016         (any_live_thread_of_inferior): ... this new function.  All callers
8017         adjusted.
8018         (switch_to_thread, switch_to_no_thread): Declare.
8019         (is_executing): Delete.
8020         (enable_thread_stack_temporaries): Update comment.
8021         <enable_thread_stack_temporaries>: Take a thread_info pointer
8022         instead of a ptid_t.  Incref the thread.
8023         <~enable_thread_stack_temporaries>: Decref the thread.
8024         <m_ptid>: Delete
8025         <m_thr>: New.
8026         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
8027         (get_last_thread_stack_temporary)
8028         (value_in_thread_stack_temporaries, can_access_registers_thread):
8029         Take a thread_info pointer instead of a ptid_t.  All callers
8030         adjusted.
8031         * infcall.c (get_call_return_value): Use inferior_thread.
8032         (run_inferior_call): Work with thread pointers instead of ptid_t.
8033         (call_function_by_hand_dummy): Work with thread pointers instead
8034         of ptid_t.  Use thread_info_ref.
8035         * infcmd.c (proceed_thread_callback): Access thread's state
8036         directly.
8037         (ensure_valid_thread, ensure_not_running): Use inferior_thread,
8038         access thread's state directly.
8039         (continue_command): Use inferior_thread.
8040         (info_program_command): Use find_thread_ptid and access thread
8041         state directly.
8042         (proceed_after_attach_callback): Use thread state directly.
8043         (notice_new_inferior): Take a thread_info pointer instead of a
8044         ptid_t.  All callers adjusted.
8045         (exit_inferior): Take an inferior pointer instead of a pid.  All
8046         callers adjusted.
8047         (exit_inferior_silent): New.
8048         (detach_inferior): Delete.
8049         (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
8050         (gdb_inferior_id_to_pid, in_inferior_list): Delete.
8051         (detach_inferior_command, kill_inferior_command): Use
8052         find_inferior_id instead of valid_gdb_inferior_id and
8053         gdb_inferior_id_to_pid.
8054         (inferior_command): Use inferior and thread pointers.
8055         * inferior.h (struct thread_info): Forward declare.
8056         (notice_new_inferior): Take a thread_info pointer instead of a
8057         ptid_t.  All callers adjusted.
8058         (detach_inferior): Delete declaration.
8059         (exit_inferior, exit_inferior_silent): Take an inferior pointer
8060         instead of a pid.  All callers adjusted.
8061         (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
8062         (valid_gdb_inferior_id): Delete.
8063         * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
8064         (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
8065         (struct displaced_step_inferior_state) <pid>: Delete, replaced by
8066         ...
8067         <inf>: ... this new field.
8068         <step_ptid>: Delete, replaced by ...
8069         <step_thread>: ... this new field.
8070         (get_displaced_stepping_state): Take an inferior pointer instead
8071         of a pid.  All callers adjusted.
8072         (displaced_step_in_progress_any_inferior): Adjust.
8073         (displaced_step_in_progress_thread): Take a thread pointer instead
8074         of a ptid_t.  All callers adjusted.
8075         (displaced_step_in_progress, add_displaced_stepping_state): Take
8076         an inferior pointer instead of a pid.  All callers adjusted.
8077         (get_displaced_step_closure_by_addr): Adjust.
8078         (remove_displaced_stepping_state): Take an inferior pointer
8079         instead of a pid.  All callers adjusted.
8080         (displaced_step_prepare_throw, displaced_step_prepare)
8081         (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
8082         All callers adjusted.
8083         (start_step_over): Adjust.
8084         (infrun_thread_ptid_changed): Remove bit updating ptids in the
8085         displaced step queue.
8086         (do_target_resume): Adjust.
8087         (fetch_inferior_event): Use inferior_thread.
8088         (context_switch, get_inferior_stop_soon): Take an
8089         execution_control_state pointer instead of a ptid_t.  All callers
8090         adjusted.
8091         (switch_to_thread_cleanup): Delete.
8092         (stop_all_threads): Use scoped_restore_current_thread.
8093         * inline-frame.c: Include "gdbthread.h".
8094         (inline_state) <inline_state>: Take a thread pointer instead of a
8095         ptid_t.  All callers adjusted.
8096         <ptid>: Delete, replaced by ...
8097         <thread>: ... this new field.
8098         (find_inline_frame_state): Take a thread pointer instead of a
8099         ptid_t.  All callers adjusted.
8100         (skip_inline_frames, step_into_inline_frame)
8101         (inline_skipped_frames, inline_skipped_symbol): Take a thread
8102         pointer instead of a ptid_t.  All callers adjusted.
8103         * inline-frame.h (skip_inline_frames, step_into_inline_frame)
8104         (inline_skipped_frames, inline_skipped_symbol): Likewise.
8105         * linux-fork.c (delete_checkpoint_command): Adjust to use thread
8106         pointers directly.
8107         * linux-nat.c (get_detach_signal): Likewise.
8108         * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
8109         (thread_db_notice_clone): Adjust.
8110         (thread_db_find_new_threads_silently)
8111         (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
8112         a thread pointer instead of a ptid_t.  All callers adjusted.
8113         * mi/mi-cmd-var.c: Include "inferior.h".
8114         (mi_cmd_var_update_iter): Update to use thread pointers.
8115         * mi/mi-interp.c (mi_new_thread): Update to use the thread's
8116         inferior directly.
8117         (mi_output_running_pid, mi_inferior_count): Delete, bits factored
8118         out to ...
8119         (mi_output_running): ... this new function.
8120         (mi_on_resume_1): Adjust to use it.
8121         (mi_user_selected_context_changed): Adjust to use inferior_thread.
8122         * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
8123         directly.
8124         (interrupt_thread_callback): : Adjust to use thread and inferior
8125         pointers.
8126         * proc-service.c: Include "gdbthread.h".
8127         (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
8128         * progspace-and-thread.c: Include "inferior.h".
8129         * progspace.c: Include "inferior.h".
8130         * python/py-exitedevent.c (create_exited_event_object): Adjust to
8131         hold a reference to an inferior_object.
8132         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
8133         inferior_thread.
8134         * python/py-inferior.c (struct inferior_object): Give the type a
8135         tag name instead of a typedef.
8136         (python_on_normal_stop): No need to check if the current thread is
8137         listed.
8138         (inferior_to_inferior_object): Change return type to
8139         inferior_object.  All callers adjusted.
8140         (find_thread_object): Delete, bits factored out to ...
8141         (thread_to_thread_object): ... this new function.
8142         * python/py-infthread.c (create_thread_object): Use
8143         inferior_to_inferior_object.
8144         (thpy_is_stopped): Use thread pointer directly.
8145         (gdbpy_selected_thread): Use inferior_thread.
8146         * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
8147         field, replaced with ...
8148         <thread>: ... this new field.  All users adjusted.
8149         (btpy_insn_or_gap_new): Drop const.
8150         (btpy_list_new): Take a thread pointer instead of a ptid_t.  All
8151         callers adjusted.
8152         * python/py-record.c: Include "gdbthread.h".
8153         (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
8154         a ptid_t.  All callers adjusted.
8155         (gdbpy_current_recording): Use inferior_thread.
8156         * python/py-record.h (recpy_record_object) <ptid>: Delete
8157         field, replaced with ...
8158         <thread>: ... this new field.  All users adjusted.
8159         (recpy_element_object) <ptid>: Delete
8160         field, replaced with ...
8161         <thread>: ... this new field.  All users adjusted.
8162         (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
8163         a ptid_t.  All callers adjusted.
8164         * python/py-threadevent.c: Include "gdbthread.h".
8165         (get_event_thread): Use thread_to_thread_object.
8166         * python/python-internal.h (struct inferior_object): Forward
8167         declare.
8168         (find_thread_object, find_inferior_object): Delete declarations.
8169         (thread_to_thread_object, inferior_to_inferior_object): New
8170         declarations.
8171         * record-btrace.c: Include "inferior.h".
8172         (require_btrace_thread): Use inferior_thread.
8173         (record_btrace_frame_sniffer)
8174         (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
8175         (get_thread_current_frame): Use scoped_restore_current_thread and
8176         switch_to_thread.
8177         (get_thread_current_frame): Use thread pointer directly.
8178         (record_btrace_replay_at_breakpoint): Use thread's inferior
8179         pointer directly.
8180         * record-full.c: Include "inferior.h".
8181         * regcache.c: Include "gdbthread.h".
8182         (get_thread_arch_regcache): Use the inferior's address space
8183         directly.
8184         (get_thread_regcache, registers_changed_thread): New.
8185         * regcache.h (get_thread_regcache(thread_info *thread)): New
8186         overload.
8187         (registers_changed_thread): New.
8188         (remote_target) <remote_detach_1>: Swap order of parameters.
8189         (remote_add_thread): <remote_add_thread>: Return the new thread.
8190         (get_remote_thread_info(ptid_t)): New overload.
8191         (remote_target::remote_notice_new_inferior): Use thread pointers
8192         directly.
8193         (remote_target::process_initial_stop_replies): Use
8194         thread_info::set_running.
8195         (remote_target::remote_detach_1, remote_target::detach)
8196         (extended_remote_target::detach): Adjust.
8197         * stack.c (frame_show_address): Use inferior_thread.
8198         * target-debug.h (target_debug_print_thread_info_pp): New.
8199         * target-delegates.c: Regenerate.
8200         * target.c (default_thread_address_space): Delete.
8201         (memory_xfer_partial_1): Use current_inferior.
8202         (target_detach): Use current_inferior.
8203         (target_thread_address_space): Delete.
8204         (generic_mourn_inferior): Use current_inferior.
8205         * target.h (struct target_ops) <thread_address_space>: Delete.
8206         (target_thread_address_space): Delete.
8207         * thread.c (init_thread_list): Use ALL_THREADS_SAFE.  Use thread
8208         pointers directly.
8209         (delete_thread_1, delete_thread, delete_thread_silent): Take a
8210         thread pointer instead of a ptid_t.  Adjust all callers.
8211         (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
8212         (first_thread_of_process): Delete, replaced by ...
8213         (first_thread_of_inferior): ... this new function.  All callers
8214         adjusted.
8215         (any_thread_of_process): Rename to ...
8216         (any_thread_of_inferior): ... this, and take an inferior pointer.
8217         (any_live_thread_of_process): Rename to ...
8218         (any_live_thread_of_inferior): ... this, and take an inferior
8219         pointer.
8220         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
8221         (value_in_thread_stack_temporaries)
8222         (get_last_thread_stack_temporary): Take a thread pointer instead
8223         of a ptid_t.  Adjust all callers.
8224         (thread_info::set_running): New.
8225         (validate_registers_access): Use inferior_thread.
8226         (can_access_registers_ptid): Rename to ...
8227         (can_access_registers_thread): ... this, and take a thread
8228         pointer.
8229         (print_thread_info_1): Adjust to compare thread pointers instead
8230         of ptids.
8231         (switch_to_no_thread, switch_to_thread): Make extern.
8232         (scoped_restore_current_thread::~scoped_restore_current_thread):
8233         Use m_thread pointer directly.
8234         (scoped_restore_current_thread::scoped_restore_current_thread):
8235         Use inferior_thread.
8236         (thread_command): Use thread pointer directly.
8237         (thread_num_make_value_helper): Use inferior_thread.
8238         * top.c (execute_command): Use inferior_thread.
8239         * tui/tui-interp.c: Include "inferior.h".
8240         * varobj.c (varobj_create): Use inferior_thread.
8241         (value_of_root_1): Use find_thread_global_id instead of
8242         global_thread_id_to_ptid.
8243
8244 2018-06-21  Alan Hayward  <alan.hayward@arm.com>
8245
8246         * regcache.c (readable_regcache::read_part): Avoid memcpy when
8247         possible.
8248         (regcache::write_part): Likewise.
8249         (readable_regcache::cooked_read_part): Update comment.
8250         (readable_regcache::cooked_write_part): Likewise.
8251         * regcache.h: (readable_regcache::read_part): Likewise.
8252         (regcache::write_part): Likewise.
8253
8254 2018-06-21  Richard Bunt  <richard.bunt@arm.com>
8255             Dirk Schubert  <dirk.schubert@arm.com>
8256
8257         * aarch64-linux-nat.c (post_attach): New.
8258         (aarch64_linux_nat_target::post_attach): Override post_attach to
8259         record the number of hardware debug registers.
8260
8261 2018-06-20  Tom Tromey  <tom@tromey.com>
8262
8263         * python/py-param.c (add_setshow_generic): Make parameters const.
8264         (parmpy_init): Update.
8265
8266 2018-06-20  Simon Marchi  <simon.marchi@polymtl.ca>
8267
8268         * regcache.h (regcache_cooked_read_ftype): Rename to...
8269         (register_read_ftype): ...this, change type to function_view.
8270         (class reg_buffer) <save>: Remove src parameter.
8271         (readonly_detached_regcache) <readonly_detached_regcache>: Make
8272         parameter non-const in first overload.  Remove src parameter in
8273         second overload.
8274         * regcache.c (do_cooked_read): Remove.
8275         (readonly_detached_regcache::readonly_detached_regcache): Make
8276         parameter non-const, adjust call to other constructor.
8277         (reg_buffer::save): Remove src parameter.
8278         * frame.c (do_frame_register_read): Remove.
8279         (frame_save_as_regcache): Use lambda function.
8280         * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
8281         parameter to ppu2spu_data *.
8282         (ppu2spu_sniffer): Use lambda function.
8283
8284 2018-06-20  Simon Marchi  <simon.marchi@polymtl.ca>
8285
8286         * record-full.c (record_full_target::insert_breakpoint): Remove
8287         "struct" keyword, add const.
8288
8289 2018-06-19  Simon Marchi  <simon.marchi@ericsson.com>
8290
8291         * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
8292         PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
8293         * configure.ac: Remove AC_PREREQ, add missing quoting.
8294         * gnulib/configure.ac: Modernize usage of
8295         AC_INIT/AM_INIT_AUTOMAKE.  Remove AC_PREREQ.
8296         * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
8297         (AUTOMAKE_VERSION): Bump to 1.15.1.
8298         * configure: Re-generate.
8299         * config.in: Re-generate.
8300         * aclocal.m4: Re-generate.
8301         * gnulib/aclocal.m4: Re-generate.
8302         * gnulib/config.in: Re-generate.
8303         * gnulib/configure: Re-generate.
8304         * gnulib/import/Makefile.in: Re-generate.
8305
8306 2018-06-19  Pedro Alves  <palves@redhat.com>
8307
8308         * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
8309         (lookup_minimal_symbol_by_pc_section): ... here with
8310         gdb_assert_not_reached added.
8311
8312 2018-06-19  Pedro Alves  <palves@redhat.com>
8313
8314         * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
8315         parameter with a block parameter.  Compare location's block symbol
8316         with the frame's block instead of addresses.
8317         (skip_inline_frames): Pass the current block instead of the
8318         frame's address.  Break out as soon as we determine the frame
8319         should not be skipped.
8320
8321 2018-06-18  Tom Tromey  <tom@tromey.com>
8322
8323         * solib-aix.c (solib_aix_get_section_offsets): Return
8324         unique_xmalloc_ptr.
8325         (solib_aix_solib_create_inferior_hook): Update.
8326
8327 2018-06-18  Tom Tromey  <tom@tromey.com>
8328
8329         * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
8330
8331 2018-06-18  Tom Tromey  <tom@tromey.com>
8332
8333         * solib-frv.c (frv_relocate_main_executable): Use
8334         unique_xmalloc_ptr.
8335         * solib-dsbt.c (dsbt_relocate_main_executable): Use
8336         unique_xmalloc_ptr.
8337
8338 2018-06-18  Tom Tromey  <tom@tromey.com>
8339
8340         * objfiles.h (inhibit_section_map_updates): Update.
8341         (resume_section_map_updates, resume_section_map_updates_cleanup):
8342         Remove.
8343         * solib-svr4.c (svr4_handle_solib_event): Update.
8344         * objfiles.c (inhibit_section_map_updates): Return
8345         scoped_restore_tmpl<int>.
8346         (resume_section_map_updates, resume_section_map_updates_cleanup):
8347         Remove.
8348
8349 2018-06-18  Tom Tromey  <tom@tromey.com>
8350
8351         * valprint.h (read_string): Update.
8352         * valprint.c (read_string): Change type of "buffer".
8353         (val_print_string): Update.
8354         * python/py-value.c (valpy_string): Update.
8355         * language.h (struct language_defn) <la_get_string>: Change
8356         type of "buffer".
8357         (default_get_string, c_get_string): Update.
8358         * language.c (default_get_string): Change type of "buffer".
8359         * guile/scm-value.c (gdbscm_value_to_string): Update.
8360         * c-lang.c (c_get_string): Change type of "buffer".
8361
8362 2018-06-18  Tom Tromey  <tom@tromey.com>
8363
8364         * ser-mingw.c (struct pipe_state_destroyer): New.
8365         (pipe_state_up): New typedef.
8366         (cleanup_pipe_state): Remove.
8367         (pipe_windows_open): Use pipe_state_up.  Don't release argv.
8368
8369 2018-06-18  Tom Tromey  <tom@tromey.com>
8370
8371         * rust-lang.h (rust_yyerror): Don't declare.
8372         * rust-lang.c (rust_language_defn): Update.
8373         * rust-exp.y (yyerror): Now static.
8374         * parse.c (parse_exp_in_context_1): Update.
8375         * p-lang.h (p_yyerror): Don't declare.
8376         * p-lang.c (p_language_defn): Update.
8377         * p-exp.y (yyerror): Now static.
8378         * opencl-lang.c (opencl_language_defn): Update.
8379         * objc-lang.c (objc_language_defn): Update.
8380         * m2-lang.h (m2_yyerror): Don't declare.
8381         * m2-lang.c (m2_language_defn): Update.
8382         * m2-exp.y (yyerror): Now static.
8383         * language.h (struct language_defn) <la_error>: Remove.
8384         * language.c (unk_lang_error): Remove.
8385         (unknown_language_defn, auto_language_defn): Remove.
8386         * go-lang.h (go_yyerror): Don't declare.
8387         * go-lang.c (go_language_defn): Update.
8388         * go-exp.y (yyerror): Now static.
8389         * f-lang.h (f_yyerror): Don't declare.
8390         * f-lang.c (f_language_defn): Update.
8391         * f-exp.y (yyerror): Now static.
8392         * d-lang.h (d_yyerror): Don't declare.
8393         * d-lang.c (d_language_defn): Update.
8394         * d-exp.y (yyerror): Now static.
8395         * c-lang.h (c_yyerror): Don't declare.
8396         * c-lang.c (c_language_defn, cplus_language_defn)
8397         (asm_language_defn, minimal_language_defn): Update.
8398         * c-exp.y (yyerror): Now static.
8399         * ada-lang.h (ada_yyerror): Don't declare.
8400         * ada-lang.c (ada_language_defn): Update.
8401         * ada-exp.y (yyerror): Now static.
8402
8403 2018-06-18  Alan Hayward  <alan.hayward@arm.com>
8404
8405         * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
8406         (store_sveregs_to_thread): Likewise.
8407         (aarch64_linux_fetch_inferior_registers): Check for SVE.
8408         (aarch64_linux_store_inferior_registers): Likewise.
8409         * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
8410         function.
8411         (aarch64_sve_regs_copy_to_regcache): Likewise.
8412         (aarch64_sve_regs_copy_from_regcache): Likewise.
8413         * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
8414         declaration.
8415         (aarch64_sve_regs_copy_to_regcache): Likewise.
8416         (aarch64_sve_regs_copy_from_regcache): Likewise.
8417         (sve_context): Structure from Linux headers.
8418         (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
8419         (SVE_SIG_ZREG_SIZE): Likewise.
8420         (SVE_SIG_PREG_SIZE): Likewise.
8421         (SVE_SIG_FFR_SIZE): Likewise.
8422         (SVE_SIG_REGS_OFFSET): Likewise.
8423         (SVE_SIG_ZREGS_OFFSET): Likewise.
8424         (SVE_SIG_ZREG_OFFSET): Likewise.
8425         (SVE_SIG_ZREGS_SIZE): Likewise.
8426         (SVE_SIG_PREGS_OFFSET): Likewise.
8427         (SVE_SIG_PREG_OFFSET): Likewise.
8428         (SVE_SIG_PREGS_SIZE): Likewise.
8429         (SVE_SIG_FFR_OFFSET): Likewise.
8430         (SVE_SIG_REGS_SIZE): Likewise.
8431         (SVE_SIG_CONTEXT_SIZE): Likewise.
8432         (SVE_PT_REGS_MASK): Likewise.
8433         (SVE_PT_REGS_FPSIMD): Likewise.
8434         (SVE_PT_REGS_SVE): Likewise.
8435         (SVE_PT_VL_INHERIT): Likewise.
8436         (SVE_PT_VL_ONEXEC): Likewise.
8437         (SVE_PT_REGS_OFFSET): Likewise.
8438         (SVE_PT_FPSIMD_OFFSET): Likewise.
8439         (SVE_PT_FPSIMD_SIZE): Likewise.
8440         (SVE_PT_SVE_ZREG_SIZE): Likewise.
8441         (SVE_PT_SVE_PREG_SIZE): Likewise.
8442         (SVE_PT_SVE_FFR_SIZE): Likewise.
8443         (SVE_PT_SVE_FPSR_SIZE): Likewise.
8444         (SVE_PT_SVE_FPCR_SIZE): Likewise.
8445         (__SVE_SIG_TO_PT): Likewise.
8446         (SVE_PT_SVE_OFFSET): Likewise.
8447         (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
8448         (SVE_PT_SVE_ZREG_OFFSET): Likewise.
8449         (SVE_PT_SVE_ZREGS_SIZE): Likewise.
8450         (SVE_PT_SVE_PREGS_OFFSET): Likewise.
8451         (SVE_PT_SVE_PREG_OFFSET): Likewise.
8452         (SVE_PT_SVE_PREGS_SIZE): Likewise.
8453         (SVE_PT_SVE_FFR_OFFSET): Likewise.
8454         (SVE_PT_SVE_FPSR_OFFSET): Likewise.
8455         (SVE_PT_SVE_FPCR_OFFSET): Likewise.
8456         (SVE_PT_SVE_SIZE): Likewise.
8457         (SVE_PT_SIZE): Likewise.
8458         (HAS_SVE_STATE): New define.
8459
8460 2018-06-18  Alan Hayward  <alan.hayward@arm.com>
8461
8462         * nat/aarch64-sve-linux-sigcontext.h: New file.
8463         * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
8464         new files.
8465         (SVE_VQ_MIN): Likewise.
8466         (SVE_VQ_MAX): Likewise.
8467         (SVE_VL_MIN): Likewise.
8468         (SVE_VL_MAX): Likewise.
8469         (SVE_NUM_ZREGS): Likewise.
8470         (SVE_NUM_PREGS): Likewise.
8471         (sve_vl_valid): Likewise.
8472         (struct user_sve_header): Likewise.
8473
8474 2018-06-16  Andrew Burgess  <andrew.burgess@embecosm.com>
8475             Richard Bunt <Richard.Bunt@arm.com>
8476
8477         * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
8478         was requested by GDB.
8479
8480 2018-06-15  Tom de Vries  <tdevries@suse.de>
8481
8482         * MAINTAINERS (Write After Approval): Add Tom de Vries.
8483
8484 2018-06-14  Simon Marchi  <simon.marchi@polymtl.ca>
8485
8486         * gnulib/update-gnulib.sh: Print expected versions of
8487         autoconf/aclocal.
8488
8489 2018-06-14  Simon Marchi  <simon.marchi@ericsson.com>
8490
8491         * arch-utils.c (default_type_align): Use type_length_units.
8492         * gdbtypes.c (type_align): Use type_length_units.
8493
8494 2018-06-14  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
8495
8496         * cli/cli-script.c (_initialize_cli_script): Fix online documentation
8497         of 'define' command.
8498
8499 2018-06-14  Tom de Vries  <tdevries@suse.de>
8500
8501         PR cli/22573
8502         * infcmd.c (print_return_value_1): Use get_user_print_options instead of
8503         get_no_prettyformat_print_options.
8504
8505 2018-06-13  Simon Marchi  <simon.marchi@ericsson.com>
8506
8507         * sparc-nat.h: Include target.h.
8508         * sparc64-linux-nat.c (class sparc64_linux_nat_target)
8509         <fetch_registers>: Remove this argument in function call.
8510         <store_registers>: Remove this argument in function call, remove
8511         extra semicolon.
8512         <low_forget_process>: Call sparc64_forget_process instead of
8513         sparc_forget_process.
8514
8515 2018-06-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8516
8517         * procfs.c (_initialize_procfs): Use add_inf_child_target.
8518         (procfs_target::make_corefile_notes): Adjust to new
8519         target_read_alloc return type.
8520
8521 2018-06-12  Andrew Burgess  <andrew.burgess@embecosm.com>
8522             Stephen Roberts  <stephen.roberts@arm.com>
8523
8524         PR gdb/22882
8525         * infrun.c (fetch_inferior_event): If GDB is not proceeding then
8526         run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
8527         Move should_notify_stop local into more inner scope.
8528
8529 2018-06-12  Andrew Burgess  <andrew.burgess@embecosm.com>
8530             Stephen Roberts  <stephen.roberts@arm.com>
8531
8532         PR gdb/22882
8533         * infrun.c (resume_1): Add call to mark_async_event_handler.
8534
8535 2018-06-12  Andrew Burgess  <andrew.burgess@embecosm.com>
8536
8537         * infrun.c (do_target_wait): Change old version of $pc printed.
8538
8539 2018-06-11  Simon Marchi  <simon.marchi@ericsson.com>
8540
8541         * dwarf2read.c (read_index_from_section): Rename to...
8542         (read_gdb_index_from_section): ... this, update all callers.
8543         (dwarf2_read_index): Rename to...
8544         (dwarf2_read_gdb_index): ... this, update all callers.
8545
8546 2018-06-11  John David Anglin  <danglin@gcc.gnu.org>
8547
8548         * hppa-linux-nat.c
8549         (hppa_linux_nat_target::fetch_inferior_registers): Rename to
8550         hppa_linux_nat_target::fetch_registers.
8551
8552 2018-06-11  Alan Hayward  <alan.hayward@arm.com>
8553
8554         * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
8555         * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
8556         (AARCH64_DWARF_SVE_FFR): Likewise.
8557         (AARCH64_DWARF_SVE_P0): Likewise.
8558         (AARCH64_DWARF_SVE_Z0): Likewise.
8559
8560 2018-06-11  Alan Hayward  <alan.hayward@arm.com>
8561
8562         * common/common-regcache.h (raw_compare): New function.
8563         * regcache.c (regcache::raw_compare): Likewise.
8564         * regcache.h (regcache::raw_compare): New declaration.
8565
8566 2018-06-11  Alan Hayward  <alan.hayward@arm.com>
8567
8568         * common/common-regcache.h (reg_buffer_common): New structure.
8569         * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
8570         (reg_buffer::raw_supply): Likewise.
8571         (reg_buffer::raw_supply_integer): Likewise.
8572         (reg_buffer::raw_supply_zeroed): Likewise.
8573         (reg_buffer::raw_collect): Likewise.
8574         (reg_buffer::raw_collect_integer): Likewise.
8575         * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
8576         (reg_buffer::raw_supply): Likewise.
8577         (reg_buffer::raw_supply_integer): Likewise.
8578         (reg_buffer::raw_supply_zeroed): Likewise.
8579         (reg_buffer::raw_collect): Likewise.
8580         (reg_buffer::raw_collect_integer): Likewise.
8581
8582 2018-06-10  Tom Tromey  <tom@tromey.com>
8583
8584         * remote.c (stop_reply_p): Remove typedef.  Don't declare queue.
8585         (class remote_state) <stop_reply_queue>: Now std::vector.
8586         (remote_state::~remote_state)
8587         (remote_target::stop_reply_queue_length): Update.
8588         (struct queue_iter_param, remove_child_of_pending_fork)
8589         (struct check_pending_event_prevents_wildcard_vcont_callback_data)
8590         (check_pending_event_prevents_wildcard_vcont_callback)
8591         (remove_stop_reply_for_inferior)
8592         (remove_stop_reply_of_remote_state)
8593         (remote_notif_remove_once_on_match)
8594         (stop_reply_match_ptid_and_ws)
8595         (remote_kill_child_of_pending_fork): Remove.
8596         (remote_target::remove_new_fork_children)
8597         (remote_target::check_pending_events_prevent_wildcard_vcont)
8598         (remote_target::discard_pending_stop_replies)
8599         (remote_target::discard_pending_stop_replies_in_queue)
8600         (remote_target::remote_notif_remove_queued_reply)
8601         (remote_target::queued_stop_reply)
8602         (remote_target::push_stop_reply, remote_target::peek_stop_reply)
8603         (remote_target::wait, remote_target::kill_new_fork_children)
8604         (remote_target::async): Update.
8605
8606 2018-06-10  Tom Tromey  <tom@tromey.com>
8607
8608         * record-full.c (record_full_arch_list_cleanups): Remove.
8609         (record_full_message): Use try/catch.
8610         (record_full_wait_cleanups): Remove.
8611         (record_full_wait_1): Use try/catch.
8612         (record_full_restore): Likewise.
8613
8614 2018-06-10  Tom Tromey  <tom@tromey.com>
8615
8616         * record-full.c (record_full_breakpoint_p): Remove typedef.  Don't
8617         declare VEC.  Add constructor.
8618         <in_target_beneath>: Now bool.
8619         (record_full_breakpoints): Now a std::vector, static.
8620         (record_full_sync_record_breakpoints)
8621         (record_full_init_record_breakpoints)
8622         (record_full_target::insert_breakpoint)
8623         (record_full_target::remove_breakpoint): Update.  Don't use XNEW.
8624
8625 2018-06-10  Simon Marchi  <simon.marchi@polymtl.ca>
8626
8627         * dwarf2read.c (process_cu_includes): Remove struct keyword.
8628         * serial.c (serial_interface_lookup): Remove struct keyword.
8629
8630 2018-06-10  Tom Tromey  <tom@tromey.com>
8631
8632         * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
8633         method.
8634         * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
8635         a method.
8636         * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
8637         method.
8638         * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
8639         "beneath" as a method.
8640         * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
8641         Use "beneath" as a method.
8642
8643 2018-06-10  Tom Tromey  <tom@tromey.com>
8644
8645         * tracefile.c (struct trace_file_writer_deleter): New.
8646         <operator()>: Rename from trace_file_writer_xfree.
8647         (trace_file_writer_up): New typedef.
8648         (tsave_command, trace_save_tfile, trace_save_ctf): Update.
8649
8650 2018-06-09  Simon Marchi  <simon.marchi@ericsson.com>
8651
8652         * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
8653         <m_registers, m_register_status>: Change type to
8654         std::unique_ptr.
8655         * regcache.c (reg_buffer::reg_buffer): Use new instead of
8656         XCNEWVEC.
8657
8658 2018-06-09  Simon Marchi  <simon.marchi@ericsson.com>
8659
8660         * common/common-regcache.h (enum register_status): Add
8661         underlying type "signed char".
8662         * regcache.h (reg_buffer) <m_register_status>: Change type to
8663         register_status *.
8664         * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
8665         register_status instead of signed char.
8666         (reg_buffer::save): Use REG_UNKNOWN instead of 0.
8667         (reg_buffer::get_register_status): Remove cast.
8668         (readable_regcache::raw_read): Remove cast.
8669         (readable_regcache::cooked_read): Remove cast.
8670
8671 2018-06-09  Tom Tromey  <tom@tromey.com>
8672
8673         * source.c (reverse_search_command, forward_search_command): Use
8674         scoped_fd.
8675
8676 2018-06-09  Tom Tromey  <tom@tromey.com>
8677
8678         * serial.c (serial_ops_p): Remove typedef.  Don't declare VEC.
8679         (serial_ops_list): Now static, std::vector.
8680         (serial_interface_lookup, serial_add_interface): Update.
8681
8682 2018-06-09  Tom Tromey  <tom@tromey.com>
8683
8684         * dwarf2read.c (process_cu_includes): Update.
8685         (process_full_comp_unit): Update.
8686         * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
8687         std::vector.
8688
8689 2018-06-08  Paul Koning  <paul_koning@dell.com>
8690
8691         PR gdb/23252
8692
8693         * python/python.c (do_start_initialization):
8694         Avoid call to internal Python API.
8695         (init__gdb_module): New function.
8696
8697 2018-06-08  Gary Benson <gbenson@redhat.com>
8698
8699         * linux-thread-db.c (valprint.h): New include.
8700         (struct check_thread_db_info): New structure.
8701         (check_thread_db_on_load, tdb_testinfo): New static globals.
8702         (check_thread_db, check_thread_db_callback): New functions.
8703         (try_thread_db_load_1): Run integrity checks if requested.
8704         (maintenance_check_libthread_db): New function.
8705         (_initialize_thread_db): Register "maint check libthread-db"
8706         and "maint set/show check-libthread-db".
8707         * NEWS: Mention the above new commands.
8708
8709 2018-06-08  Tom Tromey  <tom@tromey.com>
8710
8711         * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
8712         now a method.
8713
8714 2018-06-08  Tom Tromey  <tom@tromey.com>
8715
8716         * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
8717
8718 2018-06-08  Tom Tromey  <tom@tromey.com>
8719
8720         * common/btrace-common.h (struct btrace_data): Add constructor,
8721         destructor, move assignment operator.
8722         <empty, clear, fini>: New methods.
8723         <format>: Initialize.
8724         (btrace_data_init, btrace_data_fini, btrace_data_clear)
8725         (btrace_data_empty): Don't declare.
8726         * common/btrace-common.c (btrace_data_init): Remove.
8727         (btrace_data::fini): Rename from btrace_data_fini.
8728         (btrace_data::empty): Rename from btrace_data_empty.
8729         (btrace_data::clear): Rename from btrace_data_clear.  Return
8730         bool.
8731         * btrace.h (make_cleanup_btrace_data): Don't declare.
8732         * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
8733         (parse_xml_btrace): Update.
8734         (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
8735         (maint_btrace_clear_packet_history_cmd): Update.
8736
8737 2018-06-07  Pedro Alves  <palves@redhat.com>
8738
8739         * target.h (target_ops) <beneath>: Now a method.  All references
8740         updated.
8741         (class target_stack): New.
8742         * target.c (g_target_stack): New.
8743         (g_current_top_target): Delete.
8744         (current_top_target): Get the top target out of g_target_stack.
8745         (target_stack::push, target_stack::unpush): New.
8746         (push_target, unpush_target): Reimplement.
8747         (target_is_pushed): Reimplement in terms of g_target_stack.
8748         (target_ops::beneath, target_stack::find_beneath): New.
8749
8750 2018-06-07  Pedro Alves  <palves@redhat.com>
8751
8752         * target.h (find_target_beneath): Delete declaration.
8753         * target.c (find_target_beneath): Delete definition.
8754         * aix-thread.c: All callers of find_target_beneath adjusted to
8755         call target_ops::beneath instead.
8756         * bsd-uthread.c: Likewise.
8757         * linux-thread-db.c: Likewise.
8758         * ravenscar-thread.c: Likewise.
8759         * sol-thread.c: Likewise.
8760         * spu-multiarch.c: Likewise.
8761
8762 2018-06-07  Pedro Alves  <palves@redhat.com>
8763
8764         * target.h (target_ops) <beneath>: Now a method.  All references
8765         updated.
8766         (target_ops) <m_beneath>: New.
8767         * target.c (target_ops::beneath): New.
8768         * corelow.c: Adjust all references to target_ops::beneath.
8769         * linux-thread-db.c: Likewise.
8770         * make-target-delegates: Likewise.
8771         * record-btrace.c: Likewise.
8772         * record-full.c: Likewise.
8773         * remote.c: Likewise.
8774         * target.c: Likewise.
8775         * target-delegates.c: Regenerate.
8776
8777 2018-06-07  Pedro Alves  <palves@redhat.com>
8778
8779         * target.h (target_stack): Delete.
8780         (current_top_target): Declare function.
8781         * target.c (target_stack): Delete.
8782         (g_current_top_target): New.
8783         (current_top_target): New function.
8784         * auxv.c: Use current_top_target instead of target_stack
8785         throughout.
8786         * avr-tdep.c: Likewise.
8787         * breakpoint.c: Likewise.
8788         * corefile.c: Likewise.
8789         * elfread.c: Likewise.
8790         * eval.c: Likewise.
8791         * exceptions.c: Likewise.
8792         * frame.c: Likewise.
8793         * gdbarch-selftests.c: Likewise.
8794         * gnu-v3-abi.c: Likewise.
8795         * ia64-tdep.c: Likewise.
8796         * ia64-vms-tdep.c: Likewise.
8797         * infcall.c: Likewise.
8798         * infcmd.c: Likewise.
8799         * infrun.c: Likewise.
8800         * linespec.c: Likewise.
8801         * linux-tdep.c: Likewise.
8802         * minsyms.c: Likewise.
8803         * ppc-linux-nat.c: Likewise.
8804         * ppc-linux-tdep.c: Likewise.
8805         * procfs.c: Likewise.
8806         * regcache.c: Likewise.
8807         * remote.c: Likewise.
8808         * rs6000-tdep.c: Likewise.
8809         * s390-linux-nat.c: Likewise.
8810         * s390-tdep.c: Likewise.
8811         * solib-aix.c: Likewise.
8812         * solib-darwin.c: Likewise.
8813         * solib-dsbt.c: Likewise.
8814         * solib-spu.c: Likewise.
8815         * solib-svr4.c: Likewise.
8816         * solib-target.c: Likewise.
8817         * sparc-tdep.c: Likewise.
8818         * sparc64-tdep.c: Likewise.
8819         * spu-tdep.c: Likewise.
8820         * symfile.c: Likewise.
8821         * symtab.c: Likewise.
8822         * target-descriptions.c: Likewise.
8823         * target-memory.c: Likewise.
8824         * target.c: Likewise.
8825         * target.h: Likewise.
8826         * tracefile-tfile.c: Likewise.
8827         * tracepoint.c: Likewise.
8828         * valops.c: Likewise.
8829         * valprint.c: Likewise.
8830         * value.c: Likewise.
8831         * windows-tdep.c: Likewise.
8832         * mi/mi-main.c: Likewise.
8833
8834 2018-06-07  Tom Tromey  <tom@tromey.com>
8835
8836         * valprint.h (build_address_symbolic): Declare.
8837         * printcmd.c (print_address_symbolic): Update.
8838         (build_address_symbolic): Change "name" and "filename" to
8839         std::string.
8840         * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
8841         Update.
8842         * defs.h (build_address_symbolic): Remove declaration.
8843
8844 2018-06-07  Alan Hayward  <alan.hayward@arm.com>
8845
8846         * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
8847         (aarch64_vnv_type): Add function.
8848         (aarch64_pseudo_register_name): Add V regs for SVE.
8849         (aarch64_pseudo_register_type): Likewise.
8850         (aarch64_pseudo_register_reggroup_p): Likewise.
8851         (aarch64_pseudo_read_value_2): Use V0 offset for SVE
8852         (aarch64_pseudo_read_value): Add V regs for SVE.
8853         (aarch64_pseudo_write_2): Use V0 offset for SVE
8854         (aarch64_pseudo_write): Add V regs for SVE.
8855         * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
8856
8857 2018-06-06  Sergio Durigan Junior  <sergiodj@redhat.com>
8858
8859         * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
8860         (sve_vl_from_vq): Likewise.
8861
8862 2018-06-05  Tom Tromey  <tom@tromey.com>
8863
8864         * cli/cli-cmds.c (show_version): Update.
8865         * top.c (print_gdb_version): Add "interactive" parameter.
8866         Update.
8867         * main.c (captured_main_1): Update.
8868         * top.h (print_gdb_version): Add "interactive" parameter and a
8869         comment.
8870
8871 2018-06-05  David Malcolm  <dmalcolm@redhat.com>
8872
8873         * common/enum-flags.h: Add trailing semicolon to example in
8874         comment.
8875
8876 2018-06-05  Tom Tromey  <tom@tromey.com>
8877
8878         PR cli/12326:
8879         * NEWS: Add entry about pager.
8880         * utils.c (pagination_disabled_for_command): New global.
8881         (prompt_for_continue): Allow "c" response to prompt.
8882         (reinitialize_more_filter): Clear
8883         pagination_disabled_for_command.
8884         (fputs_maybe_filtered): Check pagination_disabled_for_command.
8885
8886 2018-06-04  Tom Tromey  <tom@tromey.com>
8887
8888         * ada-lang.h (ada_lookup_symbol_list): Update.
8889         * ada-lang.c (resolve_subexp): Update.
8890         (symbols_are_identical_enums): Change type of syms.  Remove nsyms
8891         parameter.
8892         (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
8893         (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
8894         results parameter to std::vector.
8895         (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
8896         Update.
8897         * ada-exp.y (block_lookup): Update.
8898         (select_possible_type_sym): Change type of syms.  Remove nsyms
8899         parameter.
8900         (write_var_or_type, write_name_assoc): Update.
8901
8902 2018-06-04  Joel Brobecker  <brobecker@adacore.com>
8903
8904         * windows-nat.c (windows_nat_target::xfer_partial): Return
8905         TARGET_XFER_E_IO if we need to delegate to the target beneath
8906         but BENEATH is NULL.
8907
8908 2018-06-04  Simon Marchi  <simon.marchi@ericsson.com>
8909
8910         * Makefile.in (config.status): Add configure.nat as a
8911         dependency.
8912
8913 2018-06-04  Tom Tromey  <tom@tromey.com>
8914
8915         * cp-name-parser.y (cpname_state): Add method declarations.
8916         (HANDLE_QUAL): Update.
8917         (cpname_state::d_grab, cpname_state::fill_comp)
8918         (cpname_state::make_operator, cpname_state::make_dtor)
8919         (cpname_state::make_builtin_type, cpname_state::make_name)
8920         (cpname_state::d_qualify, cpname_state::d_int_type)
8921         (cpname_state::d_unary, cpname_state::d_binary): Now methods.
8922         (%union): Move earlier.
8923
8924 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
8925
8926         * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
8927
8928 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
8929
8930         * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
8931         (aarch64_pseudo_write_1): Likewise.
8932         (aarch64_pseudo_read_value): Use helper.
8933         (aarch64_pseudo_write): Likewise.
8934
8935 2018-06-04  Pedro Alves  <palves@redhat.com>
8936
8937         * darwin-nat.c (darwin_ops): Delete.
8938         (darwin_attach_pid): Use get_native_target.
8939
8940 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
8941
8942         * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
8943         * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
8944
8945 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
8946
8947         * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
8948         * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
8949         (aarch64_gdbarch_init): Check for SVE.
8950         * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
8951
8952 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
8953
8954         * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
8955         * aarch64-tdep.h (aarch64_read_description): Likewise.
8956         * arch/aarch64.c (aarch64_create_target_description): Likewise.
8957         * arch/aarch64.h (aarch64_create_target_description): Likewise.
8958         * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
8959         * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
8960         * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
8961
8962 2018-06-02  Simon Marchi  <simon.marchi@ericsson.com>
8963
8964         * value.c (value_fetch_lazy_bitfield): New.
8965         (value_fetch_lazy_memory): New.
8966         (value_fetch_lazy_register): New.
8967         (value_fetch_lazy): Factor out to smaller functions.
8968
8969 2018-06-01  Tom Tromey  <tom@tromey.com>
8970
8971         * cp-name-parser.y (backslashable, represented): Now const.
8972
8973 2018-06-01  Tom Tromey  <tom@tromey.com>
8974
8975         * cp-name-parser.y: Include parser-defs.h.
8976         (parser_fprintf): Remove declaration.
8977
8978 2018-06-01  Tom Tromey  <tom@tromey.com>
8979
8980         * cp-name-parser.y: Use %pure-parser, %lex-param, and
8981         %parse-param.
8982         (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
8983         (global_result): Remove globals.
8984         (struct cpname_state): New.
8985         (yyparse): Don't declare.
8986         (yylex, yyerror): Move declarations after %union.
8987         (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
8988         (make_name): Add state parameter.
8989         Update all callers.
8990         (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
8991         parameter.
8992         (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
8993         Update.
8994         (yylex): Add lvalp, state parameters.
8995         (yyerror): Add state parameter.
8996         (cp_demangled_name_to_comp): Update.
8997
8998 2018-06-01  Tom Tromey  <tom@tromey.com>
8999
9000         * cp-name-parser.y (parser_fprintf): Declare.
9001         (GDB_YY_REMAP_PREFIX): Define.
9002         Include yy-remap.h.  Don't redefine yy* identifiers.
9003
9004 2018-06-01  Tom Tromey  <tom@tromey.com>
9005
9006         * python/py-type.c (typy_legacy_template_argument): Update.
9007         * cp-support.h (cp_demangled_name_to_comp): Update.
9008         * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
9009         parameter to be a "std::string *".
9010         (main): Update.
9011
9012 2018-06-01  H.J. Lu  <hongjiu.lu@intel.com>
9013
9014         * ada-lex.l: Include "diagnostics.h" instead of
9015         "common/diagnostics.h".
9016         * unittests/environ-selftests.c: Likewise.
9017         * common/diagnostics.h: Moved to ../include.
9018
9019 2018-06-01  Joel Brobecker  <brobecker@adacore.com>
9020
9021         * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
9022         to language_mode_manual while calling breakpoint_re_set_one.
9023
9024 2018-06-01  Tom Tromey  <tom@tromey.com>
9025
9026         * valops.c (value_cast_structs, destructor_name_p): Update.
9027         * symtab.c (gdb_mangle_name): Update.
9028         * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
9029         Update.
9030         * p-valprint.c (pascal_object_is_vtbl_ptr_type)
9031         (pascal_object_print_value_fields, pascal_object_print_value):
9032         Update.
9033         * p-typeprint.c (pascal_type_print_derivation_info): Update.
9034         * linespec.c (find_methods): Update.
9035         * gdbtypes.h (type_name_no_tag): Remove.
9036         (type_name_or_error): Rename from type_name_no_tag_or_error.
9037         * gdbtypes.c (type_name_no_tag): Remove.
9038         (type_name_or_error): Rename from type_name_no_tag_or_error.
9039         (lookup_struct_elt_type, check_typedef): Update.
9040         * expprint.c (print_subexp_standard): Update.
9041         * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
9042         * d-namespace.c (d_lookup_nested_symbol): Update.
9043         * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
9044         (cp_print_class_member): Update.
9045         * cp-namespace.c (cp_lookup_nested_symbol): Update.
9046         * completer.c (add_struct_fields): Update.
9047         * c-typeprint.c (cp_type_print_derivation_info)
9048         (c_type_print_varspec_prefix, c_type_print_base_struct_union):
9049         Update.
9050         * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
9051         (ada_prefer_type, ada_is_exception_sym): Update.
9052
9053 2018-06-01  Tom Tromey  <tom@tromey.com>
9054
9055         * valops.c (enum_constant_from_type, value_namespace_elt)
9056         (value_maybe_namespace_elt): Update.
9057         * valarith.c (find_size_for_pointer_math): Update.
9058         * target-descriptions.c (make_gdb_type): Update.
9059         * symmisc.c (print_symbol): Update.
9060         * stabsread.c (define_symbol, read_type)
9061         (complain_about_struct_wipeout, add_undefined_type)
9062         (cleanup_undefined_types_1): Update.
9063         * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
9064         (rust_range_type_p, val_print_struct, rust_print_struct_def)
9065         (rust_internal_print_type, rust_composite_type)
9066         (rust_evaluate_funcall, rust_evaluate_subexp)
9067         (rust_inclusive_range_type_p): Update.
9068         * python/py-type.c (typy_get_tag): Update.
9069         * p-typeprint.c (pascal_type_print_base): Update.
9070         * mdebugread.c (parse_symbol, parse_type): Update.
9071         * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
9072         Update.
9073         * guile/scm-type.c (gdbscm_type_tag): Update.
9074         * go-lang.c (sixg_string_p): Update.
9075         * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
9076         Update.
9077         * gdbtypes.h (struct main_type) <tag_name>: Remove.
9078         (TYPE_TAG_NAME): Remove.
9079         * gdbtypes.c (type_name_no_tag): Simplify.
9080         (check_typedef, check_types_equal, recursive_dump_type)
9081         (copy_type_recursive, arch_composite_type): Update.
9082         * f-typeprint.c (f_type_print_base): Update.  Print "Type" prefix
9083         in summary mode when needed.
9084         * eval.c (evaluate_funcall): Update.
9085         * dwarf2read.c (fixup_go_packaging, read_structure_type)
9086         (process_structure_scope, read_enumeration_type)
9087         (read_namespace_type, read_module_type, determine_prefix): Update.
9088         * cp-support.c (inspect_type): Update.
9089         * coffread.c (process_coff_symbol, decode_base_type): Update.
9090         * c-varobj.c (c_is_path_expr_parent): Update.
9091         * c-typeprint.c (c_type_print_base_struct_union): Update.
9092         (c_type_print_base_1): Update.  Print struct/class/union/enum in
9093         summary when using C language.
9094         * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
9095         (gen_maybe_namespace_elt): Update.
9096         * ada-lang.c (ada_type_name): Simplify.
9097         (empty_record, ada_template_to_fixed_record_type_1)
9098         (template_to_static_fixed_type)
9099         (to_record_with_fixed_variant_part, ada_check_typedef): Update.
9100
9101 2018-06-01  Tom Tromey  <tom@tromey.com>
9102
9103         * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
9104         c_print_type.
9105         * c-typeprint.c (c_print_type_1): Add "language" parameter.
9106         (c_print_type): Update.
9107         (c_print_type): New overload.
9108         (c_type_print_varspec_prefix, c_type_print_args)
9109         (c_type_print_varspec_suffix, c_print_type_no_offsets)
9110         (c_type_print_base_struct_union, c_type_print_base_1)
9111         (cp_type_print_method_args): Add "language" parameter.
9112         (c_type_print_base): Update.
9113         * c-lang.h (c_print_type): Add new overload.
9114
9115 2018-06-01  Tom Tromey  <tom@tromey.com>
9116
9117         * typeprint.h (c_type_print_varspec_suffix): Don't declare.
9118         * c-typeprint.c (c_type_print_varspec_suffix): Now static.
9119
9120 2018-06-01  Alan Hayward  <alan.hayward@arm.com>
9121
9122         * aarch64-tdep.c (aarch64_sve_register_names): New const
9123         var.
9124         * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
9125         (AARCH64_SVE_Z_REGS_NUM): New define.
9126         (AARCH64_SVE_P_REGS_NUM): Likewise.
9127         (AARCH64_SVE_NUM_REGS): Likewise.
9128
9129 2018-05-31  Uros Bizjak  <ubizjak@gmail.com>
9130
9131         * nat/linux-ptrace.h [__alpha__]
9132         (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
9133         definitions.
9134
9135 2018-05-31  Maciej W. Rozycki  <macro@mips.com>
9136
9137         * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
9138         the endianness selected.
9139         * NEWS: Document `set endian auto' mode operation update.
9140
9141 2018-05-31  Alan Hayward  <alan.hayward@arm.com>
9142
9143         * Makefile.in: Add new header.
9144         * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
9145         (sve_vl_from_vg): Likewise.
9146         (sve_vq_from_vl): Likewise.
9147         (sve_vl_from_vq): Likewise.
9148         (sve_vq_from_vg): Likewise.
9149         (sve_vg_from_vq): Likewise.
9150         * configure.nat: Add new c file.
9151         * nat/aarch64-sve-linux-ptrace.c: New file.
9152         * nat/aarch64-sve-linux-ptrace.h: New file.
9153
9154 2018-05-31  Alan Hayward  <alan.hayward@arm.com>
9155
9156         * aarch64-linux-nat.c (aarch64_linux_read_description):
9157         Add parmeter zero.
9158         * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9159         Likewise.
9160         * aarch64-tdep.c (tdesc_aarch64_list): Add.
9161         (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
9162         (aarch64_gdbarch_init): Add parmeter zero.
9163         * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
9164         * arch/aarch64.c (aarch64_create_target_description): Check VQ.
9165         * arch/aarch64.h (aarch64_create_target_description): Add VQ.
9166         parmeter.
9167         * doc/gdb.texinfo: Describe SVE feature
9168         * features/aarch64-sve.c: New file.
9169
9170 2018-05-31  Omair Javaid  <omair.javaid@linaro.org>
9171
9172         PR gdb/23210
9173         * gdbarch.sh (significant_addr_bit): Default to zero when
9174         not set by target architecture.
9175         * gdbarch.c: Re-generated.
9176         * utils.c (address_significant): Update.
9177
9178 2018-05-30  Joel Brobecker  <brobecker@adacore.com>
9179
9180         * stack.c (func_command): Remove trailing newline in call to error.
9181
9182 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
9183
9184         * regcache.h (regcache_raw_collect): Remove, update callers to
9185         use regcache::raw_collect.
9186         * regcache.c (regcache_raw_collect): Remove.
9187
9188 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
9189
9190         * regcache.h (regcache_raw_supply): Remove, update callers to
9191         use detached_regcache::raw_supply.
9192         * regcache.c (regcache_raw_supply): Remove.
9193
9194 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
9195
9196         * regcache.h (regcache_cooked_write_part): Remove, update
9197         callers to use regcache::cooked_write_part.
9198         * regcache.c (regcache_cooked_write_part): Remove.
9199
9200 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
9201
9202         * regcache.h (regcache_cooked_read_part): Remove, update callers
9203         to use readable_regcache::cooked_read_part.
9204         * regcache.c (regcache_cooked_read_part): Remove.
9205
9206 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
9207
9208         * regcache.h (regcache_cooked_read_value): Remove, update
9209         callers to use readable_regcache::cooked_read_value.
9210         * regcache.c (regcache_cooked_read_value): Remove.
9211
9212 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
9213
9214         * regcache.h (regcache_cooked_write): Remove, update callers to
9215         use regcache::cooked_write.
9216         * regcache.c (regcache_cooked_write): Remove.
9217
9218 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
9219
9220         * regcache.h (regcache_invalidate): Remove, update callers to
9221         use detached_regcache::invalidate instead.
9222         * regcache.c (regcache_invalidate): Remove.
9223
9224 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
9225
9226         * regcache.h (regcache_raw_write_part): Remove, update callers
9227         to use regcache::raw_write_part instead.
9228         * regcache.c (regcache_raw_write_part): Remove.
9229
9230 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
9231
9232         * regcache.h (regcache_raw_read_part): Remove, update callers to
9233         use readable_regcache::raw_read_part instead.
9234         * regcache.c (regcache_raw_read_part): Remove.
9235
9236 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
9237
9238         * regcache.h (regcache_cooked_read): Remove, update callers to
9239         use readable_regcache::cooked_read instead.
9240         * regcache.c (regcache_cooked_read): Remove.
9241
9242 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
9243
9244         * regcache.h (regcache_raw_write): Remove, update callers to use
9245         regcache::raw_write instead.
9246         * regcache.c (regcache_raw_write): Remove.
9247
9248 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
9249
9250         * regcache.h (regcache_raw_read): Remove, update callers to use
9251         readable_regcache::raw_read instead.
9252         * regcache.c (regcache_raw_read): Remove.
9253
9254 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
9255
9256         * regcache.h (regcache_raw_update): Remove, update callers to
9257         use readable_regcache::raw_update instead.
9258         * regcache.c (regcache_raw_update): Remove.
9259
9260 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
9261
9262         * regcache.h (regcache_register_status): Remove, update callers
9263         to use reg_buffer::get_register_status directly instead.
9264         * regcache.c (regcache_register_status): Remove.
9265
9266 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
9267
9268         * regcache.h (regcache_get_ptid): Remove, update all callers to
9269         call regcache::ptid instead.
9270         * regcache.c (regcache_get_ptid): Remove.
9271
9272 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
9273
9274         * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
9275
9276 2018-05-30  Pedro Alves  <palves@redhat.com>
9277
9278         * common/common-exceptions.h (exception_rethrow): Use
9279         ATTRIBUTE_NORETURN.
9280
9281 2018-05-29  Simon Marchi  <simon.marchi@polymtl.ca>
9282
9283         * breakpoint.c (print_solib_event, check_status_catch_solib):
9284         Remove struct keyword in range-based for loops.
9285         * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
9286         * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
9287         Likewise.
9288         * linespec.c (find_superclass_methods, search_minsyms_for_name):
9289         Likewise.
9290         * symfile.c (addr_info_make_relative): Likewise.
9291         * thread.c (value_in_thread_stack_temporaries): Likewise.
9292
9293 2018-06-12  Weimin Pan  <weimin.pan@oracle.com>
9294
9295         PR gdb/16841
9296         * valops.c (value_struct_elt_for_reference): Call check_typedef on
9297         aggregate type to get its real type before accessing it.
9298
9299 2018-05-29  Weimin Pan  <weimin.pan@oracle.com>
9300
9301         * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
9302         * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
9303         * coff-pe-read.c (add_pe_forwarded_sym): Replace
9304         lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
9305         * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
9306         * jit.c (jit_breakpoint_re_set_internal): Likewise.
9307         * printcmd.c (info_address_command): Likewise.
9308
9309 2018-05-29  Tom Tromey  <tom@tromey.com>
9310
9311         * windows-nat.c (handle_exception): Update fall-through comment.
9312
9313 2018-05-29  Tom Tromey  <tom@tromey.com>
9314
9315         * progspace.h (so_list_ptr): Remove typedef.  Don't declare VEC.
9316         (struct program_space) <added_solibs>: Now a std::vector.
9317         * breakpoint.c (print_solib_event): Update.
9318         (check_status_catch_solib): Update.
9319         * progspace.c (clear_program_space_solib_cache): Update.
9320         * solib.c (update_solib_list): Update.
9321
9322 2018-05-29  Tom Tromey  <tom@tromey.com>
9323
9324         * python/py-type.c (typy_richcompare): Update.
9325         * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
9326         * gdbtypes.h (types_deeply_equal): Return bool.
9327         (types_equal): Likewise.
9328         * gdbtypes.c (type_equality_entry_d): Remove typedef.  Don't
9329         declare VEC.
9330         (check_types_equal): Change worklist to std::vector.  Return
9331         bool.
9332         (struct type_equality_entry): Add constructor.
9333         (compare_maybe_null_strings): Return bool.
9334         (check_types_worklist): Return bool.  Change worklist to
9335         std::vector.
9336         (types_deeply_equal): Use std::vector.
9337         (types_equal): Return bool.
9338         (compare_maybe_null_strings): Simplify.
9339
9340 2018-05-29  Tom Tromey  <tom@tromey.com>
9341
9342         * record-btrace.c (tp_t): Remove typedef.  Don't declare VEC.
9343
9344 2018-05-29  Tom Tromey  <tom@tromey.com>
9345
9346         * objc-lang.h: Don't include cp-support.h.
9347         * common/gdb_vecs.h (const_char_ptr): Remove typedef.  Don't
9348         declare VEC.
9349
9350 2018-05-27  Tom Tromey  <tom@tromey.com>
9351
9352         * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
9353
9354 2018-05-25  Tom Tromey  <tom@tromey.com>
9355
9356         * value.c (value::location): Initialize.
9357
9358 2018-05-25  Tom Tromey  <tom@tromey.com>
9359
9360         * dbxread.c (init_bincl_list): Remove.
9361         (bincl_list): Now a std::vector.
9362         (bincls_allocated, next_bincl): Remove.
9363         (free_bincl_list, do_free_bincl_list_cleanup)
9364         (make_cleanup_free_bincl_list): Remove.
9365         (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
9366         unique_xmalloc_ptr.
9367         (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
9368         (struct header_file_location): Add constructor.
9369         (add_bincl_to_list): Remove.
9370
9371 2018-05-25  Tom Tromey  <tom@tromey.com>
9372
9373         * tui/tui.c (tui_enable): Update.
9374         * mi/mi-interp.c (mi_interp::init): Update.
9375         * interps.h (class interp) <name>: New method.
9376         <m_name>: Rename from name.
9377         (~scoped_restore_interp): Update.
9378         * interps.c (interp::interp): Update.
9379         (interp_add, interp_set, interp_lookup_existing)
9380         (current_interp_named_p): Update.
9381
9382 2018-05-25  Tom Tromey  <tom@tromey.com>
9383
9384         * interps.c (interp_name): Remove.
9385         * mi/mi-interp.c (mi_interp::init): Update.
9386         * interps.h (interp_name): Remove.
9387         (~scoped_restore_interp): Update.
9388         * tui/tui.c (tui_enable): Update.
9389
9390 2018-05-25  Tom Tromey  <tom@tromey.com>
9391
9392         * utils.c (fputs_maybe_filtered): Update.
9393         * linespec.c (decode_line_full): Update.
9394         * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
9395         (mi_print_breakpoint_for_event, mi_solib_loaded)
9396         (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
9397         (mi_user_selected_context_changed): Update.
9398         * mi/mi-main.c (mi_execute_command): Update.
9399         * cli/cli-script.c (execute_control_command): Update.
9400         * python/python.c (execute_gdb_command): Update.
9401         * solib.c (info_sharedlibrary_command): Update.
9402         * interps.c (interp_ui_out): Remove.
9403         * interps.h (interp_ui_out): Remove.
9404
9405 2018-05-25  Tom Tromey  <tom@tromey.com>
9406
9407         * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
9408         * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
9409         * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
9410
9411 2018-05-25  Tom Tromey  <tom@tromey.com>
9412
9413         * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
9414         * interps.c (interp_exec): Use scoped_restore.
9415
9416 2018-05-25  Tom Tromey  <tom@tromey.com>
9417
9418         * remote.c (remote_target::remote_file_get): Use
9419         gdb::byte_vector.
9420         (remote_target::remote_file_put): Likewise.
9421
9422 2018-05-25  Tom Tromey  <tom@tromey.com>
9423
9424         * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
9425         a std::string.
9426         (get_pe_section_index, add_pe_exported_sym): Update.
9427         (read_pe_exported_syms): Use gdb::def_vector.
9428
9429 2018-05-25  Tom Tromey  <tom@tromey.com>
9430
9431         * frame.c (remove_prev_frame): Remove.
9432         (get_prev_frame_if_no_cycle): Use TRY/CATCH.
9433
9434 2018-05-25  Maciej W. Rozycki  <macro@mips.com>
9435
9436         * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
9437         Remove prototypes.
9438         * mips-linux-nat.c (supply_fpregset): Always call
9439         `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
9440         (fill_fpregset): Always call `mips64_fill_fpregset' rather than
9441         `mips_fill_fpregset'.
9442         * mips-linux-tdep.c (mips_supply_fpregset)
9443         (mips_supply_fpregset_wrapper, mips_fill_fpregset)
9444         (mips_fill_fpregset_wrapper): Remove functions.
9445         (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
9446         (mips_linux_fpregset): Remove variable.
9447         (mips_linux_iterate_over_regset_sections): Use
9448         `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
9449         (mips_linux_o32_sigframe_init): Remove comment.
9450
9451 2018-05-25  Pedro Alves  <palves@redhat.com>
9452
9453         * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
9454         (struct readahead_cache, struct packet_reg, struct
9455         remote_arch_state, class remote_state): Move higher up in the
9456         file.
9457         (remote_target::m_remote_state): Now an object instead of a pointer.
9458         (remote_target::get_remote_state): Adjust.
9459
9460 2018-05-24  Andrew Burgess  <andrew.burgess@embecosm.com>
9461
9462         * stack.c (select_and_print_frame): Delete.
9463         (struct function_bounds): Move struct within function.
9464         (func_command): Most content moved into new function
9465         find_frame_for_function, use new function, print result, add
9466         function comment.
9467         (find_frame_for_function): New function, now returns a result.
9468
9469 2018-05-24  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9470
9471         * stack.c (iterate_over_block_arg_vars): Fix comment.
9472         (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
9473
9474 2018-05-24  Andrew Burgess  <andrew.burgess@embecosm.com>
9475
9476         PR gdb/23203
9477         * frame.c
9478         (scoped_restore_selected_frame::scoped_restore_selected_frame):
9479         Define.
9480         (scoped_restore_selected_frame::~scoped_restore_selected_frame):
9481         Define.
9482         * frame.h (class scoped_restore_selected_frame): New class.
9483         * stack.c (print_frame_local_vars): Remove catching and rethrowing
9484         of any exception, use scoped_restore_selected_frame to restore the
9485         frame instead.
9486
9487 2018-05-24  Pedro Alves  <palves@redhat.com>
9488
9489         * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
9490         override.
9491
9492 2018-05-23  Tom Tromey  <tom@tromey.com>
9493
9494         * complaints.c (struct complaints): Remove.
9495         (symfile_complaint_book): Remove.
9496         (series): New global.
9497         (complaint_internal): Update.
9498         (clear_complaints): Update.
9499
9500 2018-05-23  Tom Tromey  <tom@tromey.com>
9501
9502         * complaints.c (counters): New global.
9503         (struct complain): Remove.
9504         (struct complaints) <root>: Remove.
9505         (complaint_sentinel): Remove.
9506         (symfile_complaint_book): Update.
9507         (find_complaint) Remove.
9508         (complaint_internal, clear_complaints): Update.
9509
9510 2018-05-23  Tom Tromey  <tom@tromey.com>
9511
9512         * complaints.c (struct complain) <file, line>: Remove.
9513         (find_complaint): Remove file, line parameters.
9514         (complaint_internal): Update.
9515
9516 2018-05-23  Tom Tromey  <tom@tromey.com>
9517
9518         * complaints.c (vcomplaint): Remove.
9519         (complaint_internal) Merge in contents of vcomplaint.
9520
9521 2018-05-23  Tom Tromey  <tom@tromey.com>
9522
9523         * complaints.c (struct complaints) <explanation>: Remove.
9524         (symfile_explanations): Remove.
9525         (symfile_complaint_book): Update.
9526         (vcomplaint): Update.
9527         (struct explanation): Remove.
9528
9529 2018-05-23  Tom Tromey  <tom@tromey.com>
9530
9531         * complaints.c (symfile_complaints): Remove.
9532         (complaint_internal): Remove "complaints" parameter.
9533         (clear_complaints, vcomplaint): Remove "c" parameter.
9534         (get_complaints): Remove.
9535         * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
9536         (dwarf2_debug_line_missing_file_complaint)
9537         (dwarf2_debug_line_missing_end_sequence_complaint)
9538         (dwarf2_complex_location_expr_complaint)
9539         (dwarf2_const_value_length_mismatch_complaint)
9540         (dwarf2_section_buffer_overflow_complaint)
9541         (dwarf2_macro_malformed_definition_complaint)
9542         (dwarf2_invalid_attrib_class_complaint)
9543         (create_addrmap_from_index, dw2_symtab_iter_next)
9544         (dw2_expand_marked_cus)
9545         (dw2_debug_names_iterator::find_vec_in_debug_names)
9546         (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
9547         (create_debug_type_hash_table, init_cutu_and_read_dies)
9548         (partial_die_parent_scope, add_partial_enumeration)
9549         (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
9550         (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
9551         (read_import_statement, read_file_scope, create_dwo_cu_reader)
9552         (create_cus_hash_table, create_dwp_hash_table)
9553         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9554         (dwarf2_rnglists_process, dwarf2_ranges_process)
9555         (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
9556         (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
9557         (handle_struct_member_die, process_structure_scope)
9558         (read_array_type, read_common_block, read_module_type)
9559         (read_tag_pointer_type, read_typedef, read_base_type)
9560         (read_subrange_type, load_partial_dies, partial_die_info::read)
9561         (partial_die_info::read, partial_die_info::read)
9562         (partial_die_info::read, read_checked_initial_length_and_offset)
9563         (dwarf2_string_attr, read_formatted_entries)
9564         (dwarf_decode_line_header)
9565         (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
9566         (new_symbol, dwarf2_const_value_attr, lookup_die_type)
9567         (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
9568         (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9569         (get_signatured_type, get_DW_AT_signature_type)
9570         (decode_locdesc, file_file_name, consume_improper_spaces)
9571         (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
9572         (dwarf_decode_macro_bytes, dwarf_decode_macros)
9573         (dwarf2_symbol_mark_computed, set_die_type)
9574         (read_attribute_value): Update.
9575         * stap-probe.c (handle_stap_probe, get_stap_base_address):
9576         Update.
9577         * dbxread.c (unknown_symtype_complaint)
9578         (lbrac_mismatch_complaint, repeated_header_complaint)
9579         (set_namestring, function_outside_compilation_unit_complaint)
9580         (read_dbx_symtab, process_one_symbol): Update.
9581         * gdbtypes.c (stub_noname_complaint): Update.
9582         * windows-nat.c (handle_unload_dll): Update.
9583         * coffread.c (coff_symtab_read, enter_linenos, decode_type)
9584         (decode_base_type): Update.
9585         * xcoffread.c (bf_notfound_complaint, ef_complaint)
9586         (eb_complaint, record_include_begin, record_include_end)
9587         (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
9588         (process_xcoff_symbol, read_symbol)
9589         (function_outside_compilation_unit_complaint)
9590         (scan_xcoff_symtab): Update.
9591         * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
9592         * buildsym.c (finish_block_internal, make_blockvector)
9593         (end_symtab_get_static_block, augment_type_symtab): Update.
9594         * dtrace-probe.c (dtrace_process_dof)
9595         (dtrace_static_probe_ops::get_probes): Update.
9596         * complaints.h (struct complaint): Don't declare.
9597         (symfile_complaints): Remove.
9598         (complaint_internal): Remove "complaints" parameter.
9599         (complaint): Likewise.
9600         (clear_complaints): Likewise.
9601         * symfile.c (syms_from_objfile_1, finish_new_objfile)
9602         (reread_symbols): Update.
9603         * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
9604         (dwarf2_frame_cache, decode_frame_entry): Update.
9605         * dwarf2loc.c (dwarf_reg_to_regnum): Update.
9606         * objc-lang.c (lookup_objc_class, lookup_child_selector)
9607         (info_selectors_command): Update.
9608         * macrotab.c (macro_include, check_for_redefinition)
9609         (macro_undef): Update.
9610         * objfiles.c (filter_overlapping_sections): Update.
9611         * stabsread.c (invalid_cpp_abbrev_complaint)
9612         (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
9613         (define_symbol, error_type, read_type, rs6000_builtin_type)
9614         (stabs_method_name_from_physname, read_member_functions)
9615         (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
9616         (attach_fields_to_type, complain_about_struct_wipeout)
9617         (read_range_type, read_args, common_block_start)
9618         (common_block_end, cleanup_undefined_types_1, scan_file_globals):
9619         Update.
9620         * mdebugread.c (index_complaint, unknown_ext_complaint)
9621         (basic_type_complaint, bad_tag_guess_complaint)
9622         (bad_rfd_entry_complaint, unexpected_type_code_complaint)
9623         (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
9624         (parse_procedure, parse_lines)
9625         (function_outside_compilation_unit_complaint)
9626         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
9627         (bad_tag_guess_complaint, reg_value_complaint): Update.
9628         * cp-support.c (demangled_name_complaint): Update.
9629         * macroscope.c (sal_macro_scope): Update.
9630         * dwarf-index-write.c (class debug_names): Update.
9631
9632 2018-05-23  Tom Tromey  <tom@tromey.com>
9633
9634         * complaints.c (clear_complaints): Remove "noisy" parameter.
9635         * complaints.h (clear_complaints): Update.
9636         * symfile.c (syms_from_objfile_1, finish_new_objfile)
9637         (reread_symbols): Update.
9638
9639 2018-05-23  Tom Tromey  <tom@tromey.com>
9640
9641         * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
9642         SUBSEQUENT_MESSAGE.
9643         (vcomplaint, clear_complaints): Update.
9644         (symfile_explanations): Remove some messages.
9645
9646 2018-05-23  Tom Tromey  <tom@tromey.com>
9647
9648         * complaints.c (internal_complaint): Remove.
9649         * complaints.h (internal_complaint): Remove.
9650
9651 2018-05-22  Maciej W. Rozycki  <macro@mips.com>
9652
9653         * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
9654
9655 2018-05-22  Pedro Alves  <palves@redhat.com>
9656
9657         * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
9658         (remote_fileio_badfd, remote_fileio_return_errno)
9659         (remote_fileio_return_success, remote_fileio_func_open)
9660         (remote_fileio_func_open, remote_fileio_func_close)
9661         (remote_fileio_func_read, remote_fileio_func_write)
9662         (remote_fileio_func_lseek, remote_fileio_func_rename)
9663         (remote_fileio_func_unlink, remote_fileio_func_stat)
9664         (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
9665         (remote_fileio_func_isatty, remote_fileio_func_system): Add
9666         remote_target parameter.
9667         (remote_fio_func_map) <func>: Add remote_target parameter.
9668         (do_remote_fileio_request, remote_fileio_request):
9669         * remote-fileio.h (remote_fileio_request):
9670         * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
9671         remote_target parameter.
9672         (remote_notif_process, handle_notification): Adjust to pass down
9673         the remote.
9674         (remote_notif_state_allocate): Add remote_target parameter.  Save
9675         it.
9676         * remote-notif.h (struct remote_target): Forward declare.
9677         (struct notif_client) <parse, ack, can_get_pending_events>: Add
9678         remote_target parameter.
9679         (struct remote_notif_state) <remote>: New field.
9680         (remote_notif_ack, remote_notif_parse): Add remote_target
9681         parameter.
9682         (remote_notif_state_allocate, remote_notif_state_allocate): Add
9683         remote_target parameter.
9684         * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
9685         (threads_listing_context, rmt_thread_action, protocol_feature)
9686         (packet_reg, stop_reply, stop_reply_p, enum packet_support)
9687         (packet_result, struct threads_listing_context, remote_state):
9688         Move definitions and declarations higher up.
9689         (remote_target) <~remote_target>: Declare.
9690         (remote_download_command_source, remote_file_put, remote_file_get)
9691         (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
9692         (remote_hostio_pread_vFile, remote_hostio_send_command)
9693         (remote_hostio_set_filesystem, remote_hostio_open)
9694         (remote_hostio_close, remote_hostio_unlink, remote_state)
9695         (get_remote_state, get_remote_packet_size, get_memory_packet_size)
9696         (get_memory_write_packet_size, get_memory_read_packet_size)
9697         (append_pending_thread_resumptions, remote_detach_1)
9698         (append_resumption, remote_resume_with_vcont)
9699         (add_current_inferior_and_thread, wait_ns, wait_as)
9700         (process_stop_reply, remote_notice_new_inferior)
9701         (process_initial_stop_replies, remote_add_thread)
9702         (btrace_sync_conf, remote_btrace_maybe_reopen)
9703         (remove_new_fork_children, kill_new_fork_children)
9704         (discard_pending_stop_replies, stop_reply_queue_length)
9705         (check_pending_events_prevent_wildcard_vcont)
9706         (discard_pending_stop_replies_in_queue, stop_reply)
9707         (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
9708         (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
9709         (remote_interrupt_as, remote_interrupt_ns)
9710         (remote_get_noisy_reply, remote_query_attached)
9711         (remote_add_inferior, remote_current_thread, get_current_thread)
9712         (set_thread, set_general_thread, set_continue_thread)
9713         (set_general_process, write_ptid)
9714         (remote_unpack_thread_info_response, remote_get_threadinfo)
9715         (parse_threadlist_response, remote_get_threadlist)
9716         (remote_threadlist_iterator, remote_get_threads_with_ql)
9717         (remote_get_threads_with_qxfer)
9718         (remote_get_threads_with_qthreadinfo, extended_remote_restart)
9719         (get_offsets, remote_check_symbols, remote_supported_packet)
9720         (remote_query_supported, remote_packet_size)
9721         (remote_serial_quit_handler, remote_detach_pid)
9722         (remote_vcont_probe, remote_resume_with_hc)
9723         (send_interrupt_sequence, interrupt_query)
9724         (remote_notif_get_pending_events, fetch_register_using_p)
9725         (send_g_packet, process_g_packet, fetch_registers_using_g)
9726         (store_register_using_P, store_registers_using_G)
9727         (set_remote_traceframe, check_binary_download)
9728         (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
9729         (remote_xfer_live_readonly_partial, remote_read_bytes)
9730         (remote_send_printf, remote_flash_write, readchar)
9731         (remote_serial_write, putpkt, putpkt_binary, skip_frame)
9732         (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
9733         (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
9734         (extended_remote_disable_randomization, extended_remote_run)
9735         (send_environment_packet, extended_remote_environment_support)
9736         (extended_remote_set_inferior_cwd, remote_write_qxfer)
9737         (remote_read_qxfer, push_stop_reply, vcont_r_supported)
9738         (packet_command): Now methods of ...
9739         (remote_target): ... this class.
9740         (m_remote_state) <remote_target>: New field.
9741         (struct remote_state) <stop_reply_queue,
9742         remote_async_inferior_event_token, wait_forever_enabled_p>: New
9743         fields.
9744         (remote_state::remote_state): Allocate stop_reply_queue.
9745         (remote_state): Delete global.
9746         (get_remote_state_raw): Delete.
9747         (remote_target::get_remote_state): Allocate m_remote_state on
9748         demand.
9749         (get_current_remote_target): New.
9750         (remote_ops, extended_remote_ops): Delete.
9751         (wait_forever_enabled_p, remote_async_inferior_event_token):
9752         Delete, moved to struct remote_state.
9753         (remote_target::close): Delete self.  Destruction bits split to
9754         ...
9755         (remote_target::~remote_target): ... this.
9756         (show_memory_packet_size): Adjust to use
9757         get_current_remote_target.
9758         (struct protocol_feature) <func>: Add remote_target parameter.
9759         All callers adjusted.
9760         (curr_quit_handler_target): New.
9761         (remote_serial_quit_handler): Reimplement.
9762         (remote_target::open_1): Adjust to use get_current_remote_target.
9763         Heap-allocate remote_target/extended_remote_target instances.
9764         (vcont_builder::vcont_builder): Add remote_target parameter, and
9765         save it in m_remote.  All callers adjusted.
9766         (vcont_builder::m_remote): New field.
9767         (vcont_builder::restart, vcont_builder::flush)
9768         (vcont_builder::push_action): Use it.
9769         (remote_target::commit_resume): Use it.
9770         (struct queue_iter_param) <remote>: New field.
9771         (remote_target::remove_new_fork_children): Fill in 'remote' field.
9772         (check_pending_event_prevents_wildcard_vcont_callback_data): New.
9773         (check_pending_event_prevents_wildcard_vcont_callback)
9774         (remote_target::check_pending_events_prevent_wildcard_vcont)
9775         (remote_target::discard_pending_stop_replies)
9776         (remote_target::discard_pending_stop_replies_in_queue)
9777         (remote_target::remote_notif_remove_queued_reply): Fill in
9778         'remote' field.
9779         (remote_notif_get_pending_events): New.
9780         (remote_target::readchar, remote_target::remote_serial_write):
9781         Save/restore curr_quit_handler_target.
9782         (putpkt): New.
9783         (kill_new_fork_children): Fill in 'remote' field.
9784         (packet_command): Use get_current_remote_target, defer to
9785         remote_target method of same name.
9786         (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
9787         parameter, and save it in m_remote.  All callers adjusted.
9788         (scoped_remote_fd::release): Use m_remote.
9789         (scoped_remote_fd::m_remote): New field.
9790         (remote_file_put, remote_file_get, remote_file_delete): Use
9791         get_current_remote_target, defer to remote_target method of same
9792         name.
9793         (remote_btrace_reset): Add remote_state paremeter.  Update all
9794         callers.
9795         (remote_async_inferior_event_handler). Pass down 'data'.
9796         (remote_new_objfile): Use get_current_remote_target.
9797         (remote_target::vcont_r_supported): New.
9798         (set_range_stepping): Use get_current_remote_target and
9799         remote_target::vcont_r_supported.
9800         (_initialize_remote): Don't allocate 'remote_state' and
9801         'stop_reply_queue' globals.
9802         * remote.h (struct remote_target): Forward declare.
9803         (getpkt, putpkt, remote_notif_get_pending_events): Add
9804         'remote_target' parameter.
9805
9806 2018-05-22  Pedro Alves  <palves@redhat.com>
9807
9808         * remote.c (vcont_builder): Now a class.  Make all data members
9809         private.
9810         (vcont_builder) <vcont_builder, restart, flush, push_action>:
9811         Declare methods.
9812         (vcont_builder_restart): Rename to ...
9813         (vcont_builder::restart): ... this.
9814         (vcont_builder_flush): Rename to ...
9815         (vcont_builder::flush): ... this.
9816         (vcont_builder_push_action): Rename to ...
9817         (vcont_builder::push_action): ... this.
9818         (remote_target::commit_resume): Adjust.
9819
9820 2018-05-22  Pedro Alves  <palves@redhat.com>
9821
9822         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
9823         (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
9824         (get_fixed_memory_packet_size): New.
9825         (get_memory_packet_size): Use it.
9826         (set_memory_packet_size): Don't override the config size with
9827         DEFAULT_MAX_MEMORY_PACKET_SIZE.
9828         (show_memory_packet_size): Use get_fixed_memory_packet_size.
9829         Don't refer to get_memory_packet_size if not connected to a remote
9830         target.  Show "(default)" if configured size is 0.
9831
9832 2018-05-22  Pedro Alves  <palves@redhat.com>
9833
9834         * remote.c (remote_target::mourn_inferior): Move
9835         discard_pending_stop_replies call here from ...
9836         (_initialize_remote): ... here.
9837
9838 2018-05-22  Pedro Alves  <palves@redhat.com>
9839
9840         * remote.c (compare_section_command): Remove set_general_process
9841         call.
9842
9843 2018-05-22  Pedro Alves  <palves@redhat.com>
9844
9845         * remote.c (struct packet_reg, struct remote_arch_state):
9846         Move higher up in the file.
9847         (remote_state) <m_arch_states>: Store remote_arch_state values
9848         instead of remote_arch_state pointers.
9849         (remote_state::get_remote_arch_state): Adjust.
9850
9851 2018-05-22  Pedro Alves  <palves@redhat.com>
9852
9853         * remote.c: Include <unordered_map>.
9854         (remote_state): Now a class.
9855         (remote_state) <get_remote_arch_state>: Declare method.
9856         <get_remote_arch_state>: New field.
9857         (remote_arch_state) <remote_arch_state>: Declare ctor.
9858         <regs>: Now a unique_ptr.
9859         (remote_gdbarch_data_handle): Delete.
9860         (get_remote_arch_state): Delete.
9861         (remote_state::get_remote_arch_state): New.
9862         (get_remote_state): Adjust to call remote_state's
9863         get_remote_arch_state method.
9864         (init_remote_state): Delete, bits factored out to ...
9865         (remote_arch_state::remote_arch_state): ... this new method.
9866         (get_remote_packet_size, get_memory_packet_size)
9867         (process_g_packet, remote_target::fetch_registers)
9868         (remote_target::prepare_to_store, store_registers_using_G)
9869         (remote_target::store_registers, remote_target::get_trace_status):
9870         Adjust to call remote_state's method.
9871         (_initialize_remote): Remove reference to
9872         remote_gdbarch_data_handle.
9873
9874 2018-05-22  Pedro Alves  <palves@redhat.com>
9875
9876         * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
9877         pread>: New method declarations.
9878         (remote_target::open_1): Adjust.
9879         (readahead_cache_invalidate): Rename to ...
9880         (readahead_cache::invalidate): ... this, and adjust to be a class
9881         method.
9882         (readahead_cache_invalidate_fd): Rename to ...
9883         (readahead_cache::invalidate_fd): ... this, and adjust to be a
9884         class method.
9885         (remote_hostio_pwrite): Adjust.
9886         (remote_hostio_pread_from_cache): Rename to ...
9887         (readahead_cache::pread): ... this, and adjust to be a class
9888         method.
9889         (remote_hostio_close): Adjust.
9890
9891 2018-05-22  Pedro Alves  <palves@redhat.com>
9892
9893         * remote.c (remote_hostio_close_cleanup): Delete.
9894         (class scoped_remote_fd): New.
9895         (remote_file_put, remote_file_get): Use it.
9896
9897 2018-05-22  Pedro Alves  <palves@redhat.com>
9898
9899         (struct vCont_action_support): Use bool and initialize all fields.
9900         (struct readahead_cache): Initialize all fields.
9901         (remote_state): Use bool and initialize all fields.
9902         (remote_state::remote_state, remote_state::~remote_state): New.
9903         (new_remote_state): Delete.
9904         (_initialize_remote): Use new to allocate remote_state.
9905
9906 2018-05-22  Pedro Alves  <palves@redhat.com>
9907             張俊芝  <zjz@zjz.name>
9908
9909         PR gdb/22973
9910         * c-exp.y: Include "c-support.h".
9911         (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
9912         of tolower.  Use c_ident_is_alpha to scan names.
9913         * c-lang.c: Include "c-support.h".
9914         (convert_ucn, convert_octal, convert_hex, convert_escape): Use
9915         ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
9916         * c-support.h: New file, with bits factored out from ...
9917         * cp-name-parser.y: ... this file.
9918         Include "c-support.h".
9919         (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
9920         c-support.h and renamed.
9921         (symbol_end, yylex): Adjust.
9922
9923 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
9924
9925         * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
9926         parameter type to CORE_ADDR.
9927         * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
9928         parameter type in declaration to CORE_ADDR.
9929         * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
9930         target_auxv_search to get AT_HWCAP and use the result to get the
9931         target description.
9932         * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
9933         to CORE_ADDR. Remove the cast of the return value to unsigned
9934         long. Fix error predicate of target_auxv_search.
9935         (ppc_linux_nat_target::read_description): Change the type of the
9936         hwcap variable to CORE_ADDR.
9937
9938 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
9939
9940         * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
9941         if the size of fpscr is larger than 32 bits.
9942
9943 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
9944
9945         * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
9946         (ppc32_linux_vsxregmap): New global.
9947         (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
9948         regcache_supply_regset, and regcache_collect_regset.
9949         * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
9950         * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
9951         (fetch_vsx_register, store_vsx_register): Remove.
9952         (fetch_vsx_registers): Add regno parameter. Get regset using
9953         ppc_linux_vsxregset. Use regset to supply registers.
9954         (store_vsx_registers): Add regno parameter. Get regset using
9955         ppc_linux_vsxregset. Use regset to collect registers.
9956         (fetch_register): Call fetch_vsx_registers instead of
9957         fetch_vsx_register.
9958         (store_register): Call store_vsx_registers instead of
9959         store_vsx_register.
9960         (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
9961         new regno parameter.
9962         (store_ppc_registers): Call store_vsx_registers with -1 for the
9963         new regno parameter.
9964         * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
9965         (ppc_collect_vsxregset): Remove.
9966
9967 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
9968
9969         * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
9970         offset fields.
9971         * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
9972         for vector register offset fields.
9973         (ppc64_fbsd_reg_offsets): Likewise.
9974         * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9975         to vector register offset fields.
9976         * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9977         to vector register offset fields.
9978         * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
9979         vector register offset fields.
9980         * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
9981         initializers for vector register offset fields.
9982         (rs6000_aix64_reg_offsets): Likewise.
9983         * rs6000-tdep.c (ppc_vrreg_offset): Remove.
9984         (ppc_supply_vrregset): Remove.
9985         (ppc_collect_vrregset): Remove.
9986         * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
9987         (ppc_linux_vrregset) : New function.
9988         (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
9989         (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
9990         (ppc32_linux_vrregset): Remove.
9991         (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
9992         and use result instead of ppc32_linux_vrregset.
9993         (ppc32_linux_reg_offsets): Remove initializers for vector register
9994         offset fields.
9995         (ppc64_linux_reg_offsets): Likewise.
9996         * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
9997         * ppc-linux-nat.c: Include regset.h.
9998         (gdb_vrregset_t): Adjust comment to account for little-endian
9999         mode.
10000         (supply_vrregset, fill_vrregset): Remove.
10001         (fetch_altivec_register, store_altivec_register): Remove.
10002         (fetch_altivec_registers): Add regno parameter. Get regset using
10003         ppc_linux_vrregset. Use regset to supply registers.
10004         (store_altivec_registers): Add regno parameter. Get regset using
10005         ppc_linux_vrregset. Use regset to collect registers.
10006         (fetch_register): Call fetch_altivec_registers instead of
10007         fetch_altivec_register.
10008         (store_register): Call store_altivec_registers instead of
10009         store_altivec_register.
10010         (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
10011         the new regno parameter.
10012         (store_ppc_registers): Call store_altivec_registers with -1 for
10013         the new regno parameter.
10014
10015 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
10016
10017         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
10018         (PPC_LINUX_SIZEOF_VSXREGSET): Define.
10019         * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
10020         (gdb_vrregset_t): Change array type size to
10021         PPC_LINUX_SIZEOF_VRREGSET.
10022         (gdb_vsxregset_t): Change array type size to
10023         PPC_LINUX_SIZEOF_VSXREGSET.
10024         * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
10025         Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
10026         PPC_LINUX_SIZEOF_VSXREGSET.
10027
10028 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
10029
10030         * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
10031         * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
10032         nat/ppc-linux.c.
10033         (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
10034         ppc_linux_target_wordsize with tid.
10035         (ppc_linux_nat_target::read_description): Call ppc_linux_target
10036         wordsize with tid.
10037         * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
10038         (ppc64_64bit_inferior_p): Add static and inline specifiers.
10039         (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
10040         tid parameter. Remove static specifier.
10041         * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
10042         (ppc_linux_target_wordsize): New declaration.
10043
10044 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
10045
10046         * arch/ppc-linux-common.c: New file.
10047         * arch/ppc-linux-common.h: New file.
10048         * arch/ppc-linux-tdesc.h: New file.
10049         * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
10050         * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
10051         (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
10052         arch/ppc-linux-tdesc.h.
10053         * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
10054         arch/ppc-linux-tdesc.h.
10055         (ppc_linux_nat_target::read_description): Remove target
10056         description matching code. Fill a ppc_linux_features struct and
10057         call ppc_linux_match_description with it. Move comment about ISA
10058         2.05 to ppc-linux-common.c.
10059         * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
10060         arch/ppc-linux-tdesc.h.
10061         (ppc_linux_core_read_description): Remove target description
10062         matching code. Fill a ppc_linux_features struct and call
10063         ppc_linux_match_description with it.
10064         * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
10065         (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
10066         (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
10067         (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
10068         (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
10069         (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
10070         (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
10071         (tdesc_powerpc_e500l): Remove.
10072
10073 2018-05-22  Joel Brobecker  <brobecker@adacore.com>
10074
10075         * ada-lang.c (catch_assert_command): Pass empty string instead
10076         of NULL for excep_string argument.
10077
10078 2018-05-22  Maciej W. Rozycki  <macro@mips.com>
10079
10080         * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
10081         the width of the requested register exceeds the width of the
10082         `ptrace' data type.
10083
10084 2018-05-21  Tom Tromey  <tom@tromey.com>
10085
10086         * printcmd.c (output_command): Remove.
10087         (output_command_const): Rename to output_command.
10088         * valprint.h (output_command): Rename from output_command_const.
10089         * tracepoint.c (trace_dump_actions): Call output_command.
10090
10091 2018-05-21  Tom Tromey  <tom@tromey.com>
10092
10093         * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
10094         (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
10095         * ada-lang.h (create_ada_exception_catchpoint): Update.
10096         * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
10097         std::string.
10098         (create_excep_cond_exprs, ~ada_catchpoint)
10099         (should_stop_exception, print_one_exception)
10100         (print_mention_exception, print_recreate_exception): Update.
10101         (ada_get_next_arg): Remove.
10102         (catch_ada_exception_command_split): Use std::string.  Change type
10103         of "excep_string", "cond_string".
10104         (catch_ada_exception_command): Update.
10105         (create_ada_exception_catchpoint): Change type of excep_string.
10106         (ada_exception_sal): Remove excep_string parameter.
10107         (~ada_catchpoint): Remove.
10108
10109 2018-05-21  Tom Tromey  <tom@tromey.com>
10110
10111         * ada-lang.c (ada_collect_symbol_completion_matches): Remove
10112         cleanup.
10113
10114 2018-05-21  Tom Tromey  <tom@tromey.com>
10115
10116         * ada-lang.c (ada_exception_message_1, ada_exception_message):
10117         Return unique_xmalloc_ptr.
10118         (print_it_exception): Update.
10119
10120 2018-05-21  Tom Tromey  <tom@tromey.com>
10121
10122         * tracepoint.c (trace_dump_actions): Use std::string.
10123
10124 2018-05-21  Tom Tromey  <tom@tromey.com>
10125
10126         * symfile.c (reread_symbols): Use std::string for original_name.
10127
10128 2018-05-21  Tom Tromey  <tom@tromey.com>
10129
10130         * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
10131         (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN.  Default
10132         constructor.
10133
10134 2018-05-20  Simon Marchi  <simon.marchi@polymtl.ca>
10135
10136         * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
10137         instance to...
10138         (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
10139         * objfiles.c (get_objfile_bfd_data): Allocate
10140         objfile_per_bfd_storage with obstack_new when allocating on
10141         obstack.
10142
10143 2018-05-20  Simon Marchi  <simon.marchi@ericsson.com>
10144
10145         * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
10146         OBSTACK_ZALLOC.
10147         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
10148         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
10149         * mdebugread.c (mdebug_build_psymtabs): Likewise.
10150         (add_pending): Likewise.
10151         (parse_symbol): Likewise.
10152         (parse_partial_symbols): Likewise.
10153         (psymtab_to_symtab_1): Likewise.
10154         (new_psymtab): Likewise.
10155         (elfmdebug_build_psymtabs): Likewise.
10156         * minsyms.c (terminate_minimal_symbol_table): Likewise.
10157         * objfiles.c (get_objfile_bfd_data): Likewise.
10158         (objfile_register_static_link): Likewise.
10159         * psymtab.c (allocate_psymtab): Likewise.
10160         * stabsread.c (read_member_functions): Likewise.
10161         * xcoffread.c (xcoff_end_psymtab): Likewise.
10162
10163 2018-05-20  Simon Marchi  <simon.marchi@ericsson.com>
10164
10165         * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
10166         compiler supports std::is_trivially_constructible.
10167         * common/poison.h: Include obstack.h.
10168         (IsMallocable): Define to is_trivially_constructible if the
10169         compiler supports it, define to true_type otherwise.
10170         (xobnew): New.
10171         (XOBNEW): Redefine.
10172         (xobnewvec): New.
10173         (XOBNEWVEC): Redefine.
10174         * gdb_obstack.h (obstack_zalloc): New.
10175         (OBSTACK_ZALLOC): Redefine.
10176         (obstack_calloc): New.
10177         (OBSTACK_CALLOC): Redefine.
10178         (obstack_new): New.
10179         * gdbarch.sh: Include gdb_obstack in gdbarch.h.
10180         (gdbarch_obstack): New declaration in gdbarch.h, definition in
10181         gdbarch.c.
10182         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
10183         obstack_calloc/obstack_zalloc.
10184         (gdbarch_obstack_zalloc): Remove.
10185         * target-descriptions.c (tdesc_data_init): Use obstack_new.
10186
10187 2018-05-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10188
10189         * stack.c (backtrace_command_1): Remove useless variable int i.
10190
10191 2018-05-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10192
10193         * stack.c (print_frame_info): Fix comment.
10194
10195 2018-05-18  Tom Tromey  <tom@tromey.com>
10196
10197         * dwarf2read.c (struct dwz_file): Add constructor, initializers.
10198         <dwz_bfd>: Now a gdb_bfd_ref_ptr.
10199         (~dwarf2_per_objfile): Update
10200         (dwarf2_get_dwz_file): Use new.
10201         * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
10202         unique_ptr.
10203
10204 2018-05-18  Tom Tromey  <tom@tromey.com>
10205
10206         * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
10207         unique_ptr.
10208         * dwarf2read.c (struct dwp_file): Add constructor and
10209         initializers.
10210         (open_and_init_dwp_file): Return a unique_ptr.
10211         (dwarf2_per_objfile, create_dwp_hash_table)
10212         (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
10213         (lookup_dwo_unit_in_dwp): Update.
10214         (open_and_init_dwp_file, get_dwp_file): Update.
10215
10216 2018-05-18  Tom Tromey  <tom@tromey.com>
10217
10218         * dwarf2read.c (dwarf2_per_objfile): Update.
10219         (struct mapped_index): Add initializers.
10220         (dwarf2_read_index): Use new.
10221         (dw2_symtab_iter_init): Update.
10222         * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
10223         unique_ptr.
10224
10225 2018-05-18  Simon Marchi  <simon.marchi@ericsson.com>
10226
10227         * dwarf2read.c (mapped_index) <total_size>: Remove.
10228
10229 2018-05-18  Simon Marchi  <simon.marchi@ericsson.com>
10230
10231         * unittests/format_pieces-selftests.c (test_format_specifier):
10232         Add ARI comments.
10233
10234 2018-05-18  Tom Tromey  <tom@tromey.com>
10235
10236         * c-typeprint.c (maybe_print_hole): New function.
10237         (c_print_type_struct_field_offset): Update.
10238         (c_type_print_base_struct_union): Call maybe_print_hole.
10239
10240 2018-05-17  Keith Seitz  <keiths@redhat.com>
10241
10242         * breakpoint.c (build_bpstat_chain): New function, moved from
10243         bpstat_stop_status.
10244         (bpstat_stop_status): Add optional parameter, `stop_chain'.
10245         If no stop chain is passed, call build_bpstat_chain to build it.
10246         * breakpoint.h (build_bpstat_chain): Declare.
10247         (bpstat_stop_status): Move documentation here from breakpoint.c.
10248         * infrun.c (handle_signal_stop): Before eliding inlined frames,
10249         build the stop chain and pass it to skip_inline_frames.
10250         Pass this stop chain to bpstat_stop_status.
10251         * inline-frame.c: Include breakpoint.h.
10252         (stopped_by_user_bp_inline_frame): New function.
10253         (skip_inline_frames): Add parameter `stop_chain'.
10254         Move documention to inline-frame.h.
10255         If non-NULL, use stopped_by_user_bp_inline_frame to determine
10256         whether the frame should be elided.
10257         * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
10258         Add moved documentation and update for new parameter.
10259
10260 2018-05-17  Simon Marchi  <simon.marchi@ericsson.com>
10261
10262         PR cli/14975
10263         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10264         unittests/format_pieces-selftests.c.
10265         * common/format.h (format_piece) <operator==>: New.
10266         (format_pieces) <operator[]>: Remove.
10267         * common/format.c (format_pieces::format_pieces): Handle \e.
10268         * unittests/format_pieces-selftests.c: New.
10269
10270 2018-05-17  Tom Tromey  <tom@tromey.com>
10271
10272         PR symtab/23010:
10273         * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
10274         (dw2_instantiate_symtab): Add skip_partial parameter.
10275         (dw2_find_last_source_symtab, dw2_map_expand_apply)
10276         (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
10277         (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
10278         (dw2_expand_symtabs_matching_one)
10279         (dw2_find_pc_sect_compunit_symtab)
10280         (dw2_debug_names_lookup_symbol)
10281         (dw2_debug_names_expand_symtabs_for_function): Update.
10282         (init_cutu_and_read_dies): Add skip_partial parameter.
10283         (process_psymtab_comp_unit, build_type_psymtabs_1)
10284         (process_skeletonless_type_unit, load_partial_comp_unit)
10285         (psymtab_to_symtab_1): Update.
10286         (load_full_comp_unit): Add skip_partial parameter.
10287         (process_imported_unit_die, dwarf2_read_addr_index)
10288         (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
10289         (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
10290         (read_signatured_type): Update.
10291
10292 2018-05-17  Simon Marchi  <simon.marchi@ericsson.com>
10293
10294         * value.c (release_value): Remove unused variable.
10295         (record_latest_value): Likewise.
10296         (access_value_history): Likewise.
10297         (preserve_values): Likewise.
10298
10299 2018-05-17  Tom Tromey  <tom@tromey.com>
10300
10301         * extension.h (struct ext_lang_type_printers) <py_type_printers>:
10302         Initialize.
10303
10304 2018-05-16  Maciej W. Rozycki  <macro@mips.com>
10305
10306         PR gdb/22286
10307         * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
10308         Also handle registers whose width is not a multiple of
10309         PTRACE_TYPE_RET.
10310         (linux_nat_trad_target::store_register): Likewise.
10311
10312 2018-05-16  Tom Tromey  <tom@tromey.com>
10313
10314         * gdbcore.h (core_bfd): Redefine.
10315         * corelow.c (core_target::close): Update.
10316         (core_target_open): Update.
10317         * progspace.h (struct program_space) <cbfd>: Now a
10318         gdb_bfd_ref_ptr.
10319
10320 2018-05-16  Tom Tromey  <tom@tromey.com>
10321
10322         PR cli/19551:
10323         * symfile-add-flags.h (enum symfile_add_flags)
10324         <SYMFILE_NOT_FILENAME>: New constant.
10325         * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME.  Get
10326         objfile name from BFD.
10327         (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
10328         * minidebug.c (find_separate_debug_file_in_section): Put
10329         ".gnu_debugdata" into BFD's file name.
10330
10331 2018-05-16  Simon Marchi  <simon.marchi@ericsson.com>
10332
10333         * regcache.c (regcache_read_ftype, regcache_write_ftype):
10334         Remove.
10335
10336 2018-05-15  Tamar Christina  <tamar.christina@arm.com>
10337
10338         PR binutils/21446
10339         * aarch64-tdep.c (aarch64_analyze_prologue,
10340         aarch64_software_single_step, aarch64_displaced_step_copy_insn):
10341         Indicate not interested in errors.
10342
10343 2018-05-15  Maciej W. Rozycki  <macro@mips.com>
10344
10345         * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
10346         Supply the MIPS_ZERO_REGNUM register.
10347
10348 2018-05-15  Maciej W. Rozycki  <macro@mips.com>
10349
10350         * mips-tdep.c (mask_address_var): Make variable static.
10351
10352 2018-05-14  Tom Tromey  <tom@tromey.com>
10353
10354         * dwarf2read.c (rust_union_quirks): Clear rust_unions.
10355
10356 2018-05-11  Andrew Burgess  <andrew.burgess@embecosm.com>
10357
10358         * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
10359         FXSAVE_ADDR for the mxcsr register.
10360
10361 2018-05-11  Max Filippov  <jcmvbkbc@gmail.com>
10362
10363         * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
10364
10365 2018-05-11  Pedro Alves  <palves@redhat.com>
10366
10367         * corelow.c (core_target) <core_target>: No longer inline.
10368         Initialize m_core_gdbarch, m_core_vec and build the section table
10369         here.
10370         <~core_target>: New.
10371         <core_gdbarch, get_core_register_section>: New methods.
10372         <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
10373         factored out from ...
10374         <core_data, core_vec, core_gdbarch>: ... these deleted globals.
10375         (core_ops): Delete.
10376         (sniff_core_bfd): Add gdbarch parameter.
10377         (core_close): Delete, merged into ...
10378         (core_target::close): ... here.  Delete self.
10379         (core_close_cleanup): Delete.
10380         (core_target_open): Allocate a core_target on the heap.  Use a
10381         unique_ptr instead of a cleanup.  Bits moved into the core_target
10382         ctor.  Adjust to use core_target methods instead of globals.
10383         (get_core_register_section): Rename to ...
10384         (core_target::get_core_register_section): ... this and adjust.
10385         (struct get_core_registers_cb_data): New.
10386         (get_core_registers_cb): Use it.  Use bool.
10387         (core_target::fetch_registers, core_target::files_info)
10388         (core_target::xfer_partial, core_target::read_description)
10389         (core_target::pid_to, core_target::thread_name): Adjust to
10390         reference class fields instead of globals.
10391         * target.h (struct target_ops_deleter, target_ops_up): New.
10392
10393 2018-05-11  Pedro Alves  <palves@redhat.com>
10394
10395         * corefile.c (core_file_command): Move to corelow.c.
10396         * corelow.c (the_core_target): Delete.
10397         (core_file_command): Moved from corefile.c.  Check exec_bfd
10398         instead of the_core_target.  Use target_detach instead of calling
10399         into the_core_target directly.
10400         (maybe_say_no_core_file_now): New.
10401         (core_target::detach): Use it.
10402         (_initialize_corelow): Remove references to the_core_target.
10403         * gdbcore.h (the_core_target): Delete.
10404
10405 2018-05-11  Tom Tromey  <tromey@redhat.com>
10406             Pedro Alves  <palves@redhat.com>
10407
10408         * corefile.c (core_bfd): Remove.
10409         * gdbcore.h (core_bfd): Now a macro.
10410         * progspace.h (struct program_space) <cbfd>: New field.
10411
10412 2018-05-11  Tom Tromey  <tom@tromey.com>
10413
10414         * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
10415         gdb::def_vector.
10416
10417 2018-05-10  Tom Tromey  <tom@tromey.com>
10418
10419         * configure: Rebuild.
10420         * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
10421
10422 2018-05-10  Joel Brobecker  <brobecker@adacore.com>
10423
10424         PR server/23158:
10425         * regformats/regdat.sh: Adjust script, following the addition
10426         of the new expedite_regs parameter to init_target_desc.
10427
10428 2018-05-10  Omair Javaid  <omair.javaid@linaro.org>
10429     
10430         PR gdb/23127
10431         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
10432         set_gdbarch_significant_addr_bit.
10433         * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
10434         set_gdbarch_significant_addr_bit.
10435         * utils.c (address_significant): Update to sign extend addr.
10436
10437 2018-05-09  Max Filippov  <jcmvbkbc@gmail.com>
10438
10439         * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
10440         (xtensa_linux_init_abi): Limit tdep->num_regs by
10441         tdep->num_nopriv_regs.
10442         * xtensa-tdep.c (xtensa_derive_tdep): Calculate
10443         tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
10444         not initialized.
10445
10446 2018-05-08  Simon Marchi  <simon.marchi@ericsson.com>
10447
10448         * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
10449
10450 2018-05-08  Andrew Burgess  <andrew.burgess@embecosm.com>
10451
10452         * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
10453         (I387_MXCSR_INIT_VAL): New constant.
10454         * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
10455         buffer if it was supplied by the inferior.
10456         * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
10457         (i387_xsave_get_clear_bv): New function.
10458         (i387_supply_xsave): Only read x87 control registers from the
10459         xsave buffer if the feature is enabled, and the state will have
10460         been written, otherwise, provide a suitable default.
10461         (i387_collect_xsave): Pre-clear all registers in xsave buffer,
10462         including x87 control registers.  Update control registers if they
10463         have changed from the default value, and mark features as enabled
10464         as required.
10465         * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
10466
10467 2018-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
10468
10469         * spu-tdep.c (info_spu_event_command): Fix output formatting.
10470
10471 2018-05-07  Tom Tromey  <tom@tromey.com>
10472
10473         * configure: Rebuild.
10474         * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
10475
10476 2018-05-07  Tom Tromey  <tom@tromey.com>
10477
10478         PR tdep/20362:
10479         * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
10480         bit.  Use correct value for VDIV.
10481
10482 2018-05-04  Tom Tromey  <tom@tromey.com>
10483
10484         * configure: Rebuild.
10485         * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
10486
10487 2018-05-04  Tom Tromey  <tom@tromey.com>
10488
10489         * linux-record.c (record_linux_system_call) <case
10490         RECORD_SYS_RECVFROM>: Add "break".
10491
10492 2018-05-04  Tom Tromey  <tom@tromey.com>
10493
10494         * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
10495         Add missing "break".
10496         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
10497         Add missing "break".
10498
10499 2018-05-04  Tom Tromey  <tom@tromey.com>
10500
10501         * rs6000-tdep.c (ppc_process_record_op4)
10502         (ppc_process_record_op63): Add fall-through comment.
10503
10504 2018-05-04  Tom Tromey  <tom@tromey.com>
10505
10506         * i386-tdep.c (i386_process_record): Add fall-through comment.
10507
10508 2018-05-04  Tom Tromey  <tom@tromey.com>
10509
10510         * stabsread.c (define_symbol) <case 'p'>: Add fall-through
10511         comment.
10512
10513 2018-05-04  Tom Tromey  <tom@tromey.com>
10514
10515         * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
10516         * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
10517         * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
10518         comment.
10519         * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
10520         comment.
10521         * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
10522         comment.
10523
10524 2018-05-04  Tom Tromey  <tom@tromey.com>
10525
10526         * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
10527
10528 2018-05-04  Tom Tromey  <tom@tromey.com>
10529
10530         * s390-tdep.c (s390_process_record): Fix fall-through comments.
10531         * xcoffread.c (scan_xcoff_symtab): Move comment later.
10532         * symfile.c (section_is_mapped): Fix fall-through comment.
10533         * stabsread.c (define_symbol, read_member_functions): Fix
10534         fall-through comment.
10535         * s390-linux-tdep.c (s390_process_record): Fix fall-through
10536         comment.
10537         * remote.c (remote_wait_as): Fix fall-through comment.
10538         * p-exp.y (yylex): Fix fall-through comment.
10539         * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
10540         comment.
10541         * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
10542         * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
10543         * jv-exp.y (yylex): Fix fall-through comment.
10544         * go-exp.y (lex_one_token): Fix fall-through comment.
10545         * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
10546         fall-through comment.
10547         * f-exp.y (yylex): Fix fall-through comment.
10548         * dwarf2read.c (process_die): Fix fall-through comments.
10549         * dbxread.c (process_one_symbol): Fix fall-through comment.
10550         * d-exp.y (lex_one_token): Fix fall-through comment.
10551         * cp-name-parser.y (yylex): Fix fall-through comment.
10552         * coffread.c (coff_symtab_read): Fix fall-through comment.
10553         * c-exp.y (lex_one_token): Fix fall-through comment.
10554         * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
10555         comment.
10556         * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
10557         comment.
10558
10559 2018-05-04  Tom Tromey  <tom@tromey.com>
10560
10561         PR python/22730:
10562         * NEWS: Mention gdb.execute change.
10563         * gdbcmd.h (execute_control_command): Don't declare.
10564         * python/python.c (execute_gdb_command): Use read_command_lines_1,
10565         execute_control_commands, execute_control_commands_to_string.
10566         * cli/cli-script.h (execute_control_commands)
10567         (execute_control_commands_to_string): Declare.
10568         (execute_control_command): Add from_tty parameter.
10569         * cli/cli-script.c (execute_control_commands)
10570         (execute_control_commands_to_string): New functions.
10571         (execute_user_command): Use execute_control_commands.
10572         (execute_control_command_1): Add "from_tty" parameter.  Update.
10573         (execute_control_command): Likewise.
10574
10575 2018-05-04  Tom Tromey  <tom@tromey.com>
10576
10577         PR python/22731:
10578         * NEWS: Mention that breakpoint commands are writable.
10579         * python/py-breakpoint.c (bppy_set_commands): New function.
10580         (breakpoint_object_getset) <"commands">: Use it.
10581
10582 2018-05-04  Tom Tromey  <tom@tromey.com>
10583
10584         * tracepoint.c (actions_command): Update.
10585         * mi/mi-cmd-break.c (mi_command_line_array)
10586         (mi_command_line_array_cnt, mi_command_line_array_ptr)
10587         (mi_read_next_line): Remove.
10588         (mi_cmd_break_commands): Update.
10589         * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
10590         function_view.
10591         * cli/cli-script.c (get_command_line): Update.
10592         (process_next_line): Use function_view.  Constify.
10593         (recurse_read_control_structure, read_command_lines)
10594         (read_command_lines_1): Change argument types to function_view.
10595         (do_define_command, document_command): Update.
10596         * breakpoint.h (check_tracepoint_command): Don't declare.
10597         * breakpoint.c (check_tracepoint_command): Remove.
10598         (commands_command_1, create_tracepoint_from_upload): Update.
10599
10600 2018-05-04  Tom Tromey  <tom@tromey.com>
10601
10602         PR gdb/11750:
10603         * cli/cli-script.h (enum command_control_type) <define_control>:
10604         New constant.
10605         * cli/cli-script.c (multi_line_command_p): Handle define_control.
10606         (build_command_line, execute_control_command_1)
10607         (process_next_line): Likewise.
10608         (do_define_command): New function, extracted from define_command.
10609         (define_command): Use it.
10610
10611 2018-05-04  Tom Tromey  <tom@tromey.com>
10612
10613         * tracepoint.c (actions_command): Update.
10614         * cli/cli-script.h (read_command_lines): Update.
10615         * cli/cli-script.c (read_command_lines): Constify prompt_arg.
10616         (MAX_TMPBUF): Remove define.
10617         (define_command): Use string_printf.
10618         (document_command): Likewise.
10619         * breakpoint.c (commands_command_1): Update.
10620
10621 2018-05-04  Tom Tromey  <tom@tromey.com>
10622
10623         * top.c (execute_command): Update.
10624         * cli/cli-script.h (print_command_lines): Now varargs.
10625         * cli/cli-script.c (print_command_lines): Now varargs.
10626         (execute_control_command_1) <case while_control, case if_control>:
10627         Update.
10628
10629 2018-05-04  Tom Tromey  <tom@tromey.com>
10630
10631         * tracepoint.c (all_tracepoint_actions): Rename from
10632         all_tracepoint_actions_and_cleanup.  Change return type.
10633         (actions_command, encode_actions_1, encode_actions)
10634         (trace_dump_actions, tdump_command): Update.
10635         * remote.c (remote_download_command_source): Update.
10636         * python/python.c (gdbpy_eval_from_control_command)
10637         (python_command, python_interactive_command): Update.
10638         * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10639         * guile/guile.c (guile_command)
10640         (gdbscm_eval_from_control_command, guile_command): Update.
10641         * compile/compile.c (compile_code_command)
10642         (compile_print_command, compile_to_object): Update.
10643         * cli/cli-script.h (struct command_lines_deleter): New.
10644         (counted_command_line): New typedef.
10645         (struct command_line): Add constructor, destructor.
10646         <body_list>: Remove.
10647         <body_list_0, body_list_1>: New members.
10648         (command_line_up): Remove typedef.
10649         (read_command_lines, read_command_lines_1, get_command_line):
10650         Update.
10651         (copy_command_lines): Don't declare.
10652         * cli/cli-script.c (build_command_line): Use "new".
10653         (get_command_line): Return counted_command_line.
10654         (print_command_lines, execute_user_command)
10655         (execute_control_command_1, while_command, if_command): Update.
10656         (realloc_body_list): Remove.
10657         (process_next_line, recurse_read_control_structure): Update.
10658         (read_command_lines, read_command_lines_1): Return counted_command_line.
10659         (free_command_lines): Use "delete".
10660         (copy_command_lines): Remove.
10661         (define_command, document_command, show_user_1): Update.
10662         * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
10663         a counted_command_line.
10664         * breakpoint.h (counted_command_line): Remove typedef.
10665         (breakpoint_set_commands): Update.
10666         * breakpoint.c (check_no_tracepoint_commands)
10667         (validate_commands_for_breakpoint): Update.
10668         (breakpoint_set_commands): Change commands to be a
10669         counted_command_line.
10670         (commands_command_1, update_dprintf_command_list)
10671         (create_tracepoint_from_upload): Update.
10672
10673 2018-05-04  Tom Tromey  <tom@tromey.com>
10674
10675         * cli/cli-decode.h (cmd_list_element): New constructor.
10676         (~cmd_list_element): New destructor.
10677         (struct cmd_list_element): Add initializers.
10678         * cli/cli-decode.c (do_add_cmd): Use "new".
10679         (delete_cmd): Use "delete".
10680
10681 2018-05-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
10682             Pedro Alves <palves@redhat.com>
10683
10684         PR breakpoints/19806 and support for PR external/20207.
10685         * NEWS: Mention Aarch64 watchpoint improvements.
10686         * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
10687         watchpoints and PR external/20207 watchpoints.
10688         * nat/aarch64-linux-hw-point.c
10689         (kernel_supports_any_contiguous_range): New.
10690         (aarch64_watchpoint_offset): New.
10691         (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
10692         (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
10693         (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
10694         (aarch64_align_watchpoint): New parameters aligned_offset_p and
10695         next_addr_orig_p.  Support PR external/20207 watchpoints.
10696         (aarch64_downgrade_regs): New.
10697         (aarch64_dr_state_insert_one_point): New parameters offset and
10698         addr_orig.
10699         (aarch64_dr_state_remove_one_point): Likewise.
10700         (aarch64_handle_breakpoint): Update caller.
10701         (aarch64_handle_aligned_watchpoint): Likewise.
10702         (aarch64_handle_unaligned_watchpoint): Support addr_orig and
10703         aligned_offset.
10704         (aarch64_linux_set_debug_regs): Remove const from state.  Call
10705         aarch64_downgrade_regs.
10706         (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
10707         * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
10708         (DR_CONTROL_MASK): ... this.
10709         (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
10710         (unsigned int aarch64_watchpoint_offset): New prototype.
10711         (aarch64_linux_set_debug_regs): Remove const from state.
10712         * utils.c (align_up, align_down): Move to ...
10713         * common/common-utils.c (align_up, align_down): ... here.
10714         * utils.h (align_up, align_down): Move to ...
10715         * common/common-utils.h (align_up, align_down): ... here.
10716
10717 2018-05-04  Joel Brobecker  <brobecker@adacore.com>
10718
10719         * sparc-tdep.c (sparc_structure_return_p): Re-implement to
10720         match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
10721         (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
10722         Re-implement to match the ABI as summarized in GCC's
10723         gcc/config/sparc/sparc.c.  All callers updated.
10724         (sparc32_store_arguments): Remove assertion.
10725
10726 2018-05-04  Tom Tromey  <tom@tromey.com>
10727
10728         * printcmd.c: Don't include tui.h.
10729         (decode_format): Use skip_spaces.
10730
10731 2018-05-04  Tom Tromey  <tom@tromey.com>
10732
10733         PR gdb/22619:
10734         * printcmd.c (last_count): New global.
10735         (x_command): Use saved count when repeating.
10736
10737 2018-05-04  Tom Tromey  <tom@tromey.com>
10738
10739         * nto-procfs.c (do_closedir_cleanup): Remove.
10740         (procfs_pidlist): Use gdb_dir_up.
10741         * procfs.c (do_closedir_cleanup): Remove.
10742         (proc_update_threads): Use gdb_dir_up.
10743         * common/filestuff.h (struct gdb_dir_deleter): New.
10744         (gdb_dir_up): New typedef.
10745
10746 2018-05-04  Tom Tromey  <tom@tromey.com>
10747
10748         * ada-lang.c (print_mention_exception): Use std::string.
10749
10750 2018-05-04  Tom Tromey  <tom@tromey.com>
10751
10752         * ada-lang.c (create_excep_cond_exprs): Update.
10753         (ada_exception_catchpoint_cond_string): Use std::string.
10754
10755 2018-05-04  Tom Tromey  <tom@tromey.com>
10756
10757         * ada-lang.c (xget_renaming_scope): Return std::string.
10758         (old_renaming_is_invisible): Update.
10759
10760 2018-05-04  Tom Tromey  <tom@tromey.com>
10761
10762         * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
10763         (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
10764
10765 2018-05-04  Ulrich Weigand  <uweigand@de.ibm.com>
10766
10767         * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
10768
10769 2018-05-04  Tom Tromey  <tom@tromey.com>
10770
10771         * remote.c (remote_query_supported_append): Change type.
10772         (remote_check_symbols): Update.
10773
10774 2018-05-04  Paul Pluzhnikov  <ppluzhnikov@google.com>
10775
10776         PR gdb/11420
10777         * configure.ac: Prepend libpython.
10778         * python/python-config.py: Likewise.
10779         * configure: Regenerate.
10780
10781 2018-05-03  Simon Marchi  <simon.marchi@ericsson.com>
10782
10783         * Makefile.in (%.c: %.l): Use -t instead of --stdout.
10784
10785 2018-05-03  Pedro Alves  <palves@redhat.com>
10786
10787         * s390-linux-nat.c
10788         (s390_linux_nat_target::have_continuable_watchpoint): Mark with
10789         override.  Write 'true' instead of '1'.
10790         (s390_linux_nat_target::watchpoint_addr_within_range): Remove
10791         declaration.
10792
10793 2018-05-02  Pedro Alves  <palves@redhat.com>
10794
10795         * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
10796         add_inf_child_target.
10797         * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
10798         add_inf_child_target.
10799         * aix-thread.c (aix_thread_target_info): New.
10800         (aix_thread_target) <shortname, longname, doc>: Delete.
10801         <info>: New.
10802         * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
10803         add_inf_child_target.
10804         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
10805         add_inf_child_target.
10806         * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
10807         add_inf_child_target.
10808         * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
10809         add_inf_child_target.
10810         * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
10811         add_inf_child_target.
10812         * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
10813         add_inf_child_target.
10814         * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
10815         add_inf_child_target.
10816         * arm-linux-nat.c (_initialize_arm_linux_nat): Use
10817         add_inf_child_target.
10818         * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
10819         add_inf_child_target.
10820         * bfd-target.c (target_bfd_target_info): New.
10821         (target_bfd) <shortname, longname, doc>: Delete.
10822         <info>: New.
10823         * bsd-kvm.c (bsd_kvm_target_info): New.
10824         (bsd_kvm_target) <shortname, longname, doc>: Delete.
10825         <info>: New.
10826         (bsd_kvm_target::open): Rename to ...
10827         (bsd_kvm_target_open): ... this.  Adjust.
10828         * bsd-uthread.c (bsd_uthread_target_info): New.
10829         (bsd_uthread_target) <shortname, longname, doc>: Delete.
10830         <info>: New.
10831         * corefile.c (core_file_command): Adjust.
10832         * corelow.c (core_target_info): New.
10833         (core_target) <shortname, longname, doc>: Delete.
10834         <info>: New.
10835         (core_target::open): Rename to ...
10836         (core_target_open): ... this.  Adjust.
10837         * ctf.c (ctf_target_info): New.
10838         (ctf_target) <shortname, longname, doc>: Delete.
10839         <info>: New.
10840         (ctf_target::open): Rename to ...
10841         (ctf_target_open): ... this.
10842         (_initialize_ctf): Adjust.
10843         * exec.c (exec_target_info): New.
10844         (exec_target) <shortname, longname, doc>: Delete.
10845         <info>: New.
10846         (exec_target::open): Rename to ...
10847         (exec_target_open): ... this.
10848         * gdbcore.h (core_target_open): Declare.
10849         * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
10850         * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
10851         add_inf_child_target.
10852         * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
10853         add_inf_child_target.
10854         * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
10855         add_inf_child_target.
10856         * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
10857         add_inf_child_target.
10858         * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
10859         add_inf_child_target.
10860         * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
10861         add_inf_child_target.
10862         * i386-linux-nat.c (_initialize_i386_linux_nat): Use
10863         add_inf_child_target.
10864         * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
10865         add_inf_child_target.
10866         * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
10867         add_inf_child_target.
10868         * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
10869         add_inf_child_target.
10870         * inf-child.c (inf_child_target_info): New.
10871         (inf_child_target::info): New.
10872         (inf_child_open_target): Remove 'target' parameter.  Use
10873         get_native_target instead.
10874         (inf_child_target::open): Delete.
10875         (add_inf_child_target): New.
10876         * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
10877         Delete.
10878         <info>: New.
10879         (add_inf_child_target): Declare.
10880         (inf_child_open_target): Declare.
10881         * linux-thread-db.c (thread_db_target_info): New.
10882         (thread_db_target) <shortname, longname, doc>: Delete.
10883         <info>: New.
10884         * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
10885         add_inf_child_target.
10886         * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
10887         add_inf_child_target.
10888         * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
10889         add_inf_child_target.
10890         * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
10891         add_inf_child_target.
10892         * make-target-delegates (print_class): Adjust.
10893         * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
10894         add_inf_child_target.
10895         * mips-linux-nat.c (_initialize_mips_linux_nat): Use
10896         add_inf_child_target.
10897         * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
10898         add_inf_child_target.
10899         * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
10900         add_inf_child_target.
10901         * nto-procfs.c (nto_native_target_info): New.
10902         (nto_procfs_target_native) <shortname, longname, doc>:
10903         Delete.
10904         <info>: New.
10905         (nto_procfs_target_info): New.
10906         (nto_procfs_target_procfs) <shortname, longname, doc>:
10907         Delete.
10908         <info>: New.
10909         (init_procfs_targets): Adjust.
10910         * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
10911         add_inf_child_target.
10912         * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
10913         add_inf_child_target.
10914         * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
10915         add_inf_child_target.
10916         * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
10917         add_inf_child_target.
10918         * ravenscar-thread.c (ravenscar_target_info): New.
10919         (ravenscar_thread_target) <shortname, longname, doc>:
10920         Delete.
10921         <info>: New.
10922         * record-btrace.c (record_btrace_target_info):
10923         (record_btrace_target) <shortname, longname, doc>: Delete.
10924         <info>: New.
10925         (record_btrace_target::open): Rename to ...
10926         (record_btrace_target_open): ... this.  Adjust.
10927         * record-full.c (record_longname, record_doc): New.
10928         (record_full_base_target) <shortname, longname, doc>: Delete.
10929         <info>: New.
10930         (record_full_target_info): New.
10931         (record_full_target): <shortname>: Delete.
10932         <info>: New.
10933         (record_full_core_open_1, record_full_open_1): Update comments.
10934         (record_full_base_target::open): Rename to ...
10935         (record_full_open): ... this.
10936         (cmd_record_full_restore): Update.
10937         (_initialize_record_full): Update.
10938         * remote-sim.c (remote_sim_target_info): New.
10939         (gdbsim_target) <shortname, longname, doc>: Delete.
10940         <info>: New.
10941         (gdbsim_target::open): Rename to ...
10942         (gdbsim_target_open): ... this.
10943         (_initialize_remote_sim): Adjust.
10944         * remote.c (remote_doc): New.
10945         (remote_target_info): New.
10946         (remote_target) <shortname, longname, doc>: Delete.
10947         <info>: New.
10948         (extended_remote_target_info): New.
10949         (extended_remote_target) <shortname, longname, doc>: Delete.
10950         <info>: New.
10951         (remote_target::open_1): Make static.  Adjust.
10952         * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
10953         * s390-linux-nat.c (_initialize_s390_nat): Use
10954         add_inf_child_target.
10955         * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
10956         add_inf_child_target.
10957         * sol-thread.c (thread_db_target_info): New.
10958         (sol_thread_target) <shortname, longname, doc>: Delete.
10959         <info>: New.
10960         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
10961         add_inf_child_target.
10962         * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
10963         add_inf_child_target.
10964         * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
10965         add_inf_child_target.
10966         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
10967         add_inf_child_target.
10968         * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
10969         add_inf_child_target.
10970         * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
10971         add_inf_child_target.
10972         * spu-linux-nat.c (_initialize_spu_nat): Use
10973         add_inf_child_target.
10974         * spu-multiarch.c (spu_multiarch_target_info): New.
10975         (spu_multiarch_target) <shortname, longname, doc>: Delete.
10976         <info>: New.
10977         * target-delegates.c: Regenerate.
10978         * target.c: Include <unordered_map>.
10979         (target_ops_p): Delete.
10980         (DEF_VEC_P(target_ops_p)): Delete.
10981         (target_factories): New.
10982         (test_target_info): New.
10983         (test_target_ops::info): New.
10984         (open_target): Adjust to use target_factories.
10985         (add_target_with_completer): Rename to ...
10986         (add_target): ... this.  Change prototype.  Register target_info
10987         and open callback in target_factories.  Register target_info in
10988         command context instead of target_ops.
10989         (add_target): Delete old implementation.
10990         (add_deprecated_target_alias): Change prototype.  Adjust.
10991         (the_native_target): New.
10992         (set_native_target, get_native_target): New.
10993         (find_default_run_target): Use the_native_target.
10994         (find_attach_target, find_run_target): Simplify.
10995         (target_ops::open): Delete.
10996         (dummy_target_info): New.
10997         (dummy_target::shortname, dummy_target::longname)
10998         (dummy_target::doc): Delete.
10999         (dummy_target::info): New.
11000         (debug_target::shortname, debug_target::longname)
11001         (debug_target::doc): Delete.
11002         (debug_target::info): New.
11003         * target.h (struct target_info): New.
11004         (target_ops::~target_ops): Add comment.
11005         (target_ops::info): New.
11006         (target_ops::shortname, target_ops::longname, target_ops::doc): No
11007         longer virtual.  Implement in terms of target_info.
11008         (set_native_target, get_native_target): Declare.
11009         (target_open_ftype): New.
11010         (add_target, add_target_with_completer)
11011         (add_deprecated_target_alias): Change prototype.
11012         (test_target) <shortname, longname, doc>: Delete.
11013         <info>: New.
11014         * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
11015         add_inf_child_target.
11016         * tracefile-tfile.c (tfile_target_info): New.
11017         (tfile_target) <shortname, longname, doc>: Delete.
11018         <info>: New.
11019         (tfile_target::open): Rename to ...
11020         (tfile_target_open): ... this.
11021         (_initialize_tracefile_tfile): Adjust.
11022         * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
11023         add_inf_child_target.
11024         * windows-nat.c (_initialize_windows_nat): Use
11025         add_inf_child_target.
11026         * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
11027         add_inf_child_target.
11028
11029 2018-05-02  Pedro Alves  <palves@redhat.com>
11030
11031         * linux-nat.h (linux_nat_target) <low_new_thread,
11032         low_delete_thread, low_new_fork, low_forget_process,
11033         low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
11034         New virtual methods.
11035         (linux_nat_set_new_thread, linux_nat_set_delete_thread)
11036         (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
11037         (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
11038         (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
11039         (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
11040         Delete.
11041         * linux-fork.c (delete_fork): Adjust to call low method.
11042         * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
11043         (linux_nat_new_fork, linux_nat_forget_process_hook)
11044         (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
11045         (linux_nat_status_is_event):
11046         (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
11047         (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
11048         to call low method.
11049         (sigtrap_is_event): Rename to ...
11050         (linux_nat_target::low_status_is_event): ... this.
11051         (linux_nat_set_status_is_event): Delete.
11052         (save_stop_reason, linux_nat_wait_1)
11053         (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
11054         low methods.
11055         (linux_nat_set_new_thread, linux_nat_set_delete_thread)
11056         (linux_nat_set_new_fork, linux_nat_set_forget_process)
11057         (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
11058         (linux_nat_set_prepare_to_resume): Delete.
11059         * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
11060         low virtual methods.
11061         * amd64-linux-nat.c: Likewise.
11062         * arm-linux-nat.c: Likewise.
11063         * i386-linux-nat.c: Likewise.
11064         * ia64-linux-nat.c: Likewise.
11065         * mips-linux-nat.c: Likewise.
11066         * ppc-linux-nat.c: Likewise.
11067         * s390-linux-nat.c: Likewise.
11068         * sparc64-linux-nat.c: Likewise.
11069         * x86-linux-nat.c: Likewise.
11070         * x86-linux-nat.h: Include "nat/x86-linux.h".
11071         (x86_linux_nat_target) <low_new_fork, low_forget_process,
11072         low_prepare_to_resume, low_new_thread, low_delete_thread>:
11073         Override methods.
11074
11075 2018-05-02  Pedro Alves  <palves@redhat.com>
11076
11077         * target.h (target_ops)
11078         <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11079         stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
11080         stopped_by_watchpoint, have_continuable_watchpoint,
11081         stopped_data_address, watchpoint_addr_within_range,
11082         can_accel_watchpoint_condition, can_run, thread_alive,
11083         has_all_memory, has_memory, has_stack, has_registers,
11084         has_execution, can_async_p, is_async_p, supports_non_stop,
11085         always_non_stop_p, can_execute_reverse, supports_multi_process,
11086         supports_enable_disable_tracepoint,
11087         supports_disable_randomization, supports_string_tracing,
11088         supports_evaluation_of_breakpoint_conditions,
11089         can_run_breakpoint_commands, filesystem_is_local,
11090         can_download_tracepoint, get_trace_state_variable_value,
11091         set_trace_notes, get_tib_address, use_agent, can_use_agent,
11092         record_is_replaying, record_will_replay,
11093         augmented_libraries_svr4_read>: Adjust to return bool.
11094         * aarch64-linux-nat.c: All implementations adjusted.
11095         * aix-thread.c: All implementations adjusted.
11096         * arm-linux-nat.c: All implementations adjusted.
11097         * breakpoint.c: All implementations adjusted.
11098         * bsd-kvm.c: All implementations adjusted.
11099         * bsd-uthread.c: All implementations adjusted.
11100         * corelow.c: All implementations adjusted.
11101         * ctf.c: All implementations adjusted.
11102         * darwin-nat.c: All implementations adjusted.
11103         * darwin-nat.h: All implementations adjusted.
11104         * exec.c: All implementations adjusted.
11105         * fbsd-nat.c: All implementations adjusted.
11106         * fbsd-nat.h: All implementations adjusted.
11107         * gnu-nat.c: All implementations adjusted.
11108         * gnu-nat.h: All implementations adjusted.
11109         * go32-nat.c: All implementations adjusted.
11110         * ia64-linux-nat.c: All implementations adjusted.
11111         * inf-child.c: All implementations adjusted.
11112         * inf-child.h: All implementations adjusted.
11113         * inf-ptrace.c: All implementations adjusted.
11114         * inf-ptrace.h: All implementations adjusted.
11115         * linux-nat.c: All implementations adjusted.
11116         * linux-nat.h: All implementations adjusted.
11117         * mips-linux-nat.c: All implementations adjusted.
11118         * nto-procfs.c: All implementations adjusted.
11119         * ppc-linux-nat.c: All implementations adjusted.
11120         * procfs.c: All implementations adjusted.
11121         * ravenscar-thread.c: All implementations adjusted.
11122         * record-btrace.c: All implementations adjusted.
11123         * record-full.c: All implementations adjusted.
11124         * remote-sim.c: All implementations adjusted.
11125         * remote.c: All implementations adjusted.
11126         * s390-linux-nat.c: All implementations adjusted.
11127         * sol-thread.c: All implementations adjusted.
11128         * spu-multiarch.c: All implementations adjusted.
11129         * target-delegates.c: All implementations adjusted.
11130         * target.c: All implementations adjusted.
11131         * target.h: All implementations adjusted.
11132         * tracefile-tfile.c: All implementations adjusted.
11133         * tracefile.c: All implementations adjusted.
11134         * tracefile.h: All implementations adjusted.
11135         * windows-nat.c: All implementations adjusted.
11136         * x86-linux-nat.h: All implementations adjusted.
11137         * x86-nat.h: All implementations adjusted.
11138
11139 2018-05-02  Pedro Alves  <palves@redhat.com>
11140
11141         * make-target-delegates (scan_target_h): Don't trim lines here.
11142         Replace sequences of tabs and/or whitespace with a single
11143         whitespace.
11144         (top level, parsing methods): Trim each line before processing it
11145         here.
11146
11147 2018-05-02  Pedro Alves  <palves@redhat.com>
11148             John Baldwin  <jhb@freebsd.org>
11149
11150         * target.h (enum strata) <debug_stratum>: New.
11151         (struct target_ops) <all delegation methods>: Replace by C++
11152         virtual methods, and drop "to_" prefix.  All references updated
11153         throughout.
11154         <to_shortname, to_longname, to_doc, to_data,
11155         to_have_steppable_watchpoint, to_have_continuable_watchpoint,
11156         to_has_thread_control, to_attach_no_wait>: Delete, replaced by
11157         virtual methods.  All references updated throughout.
11158         <can_attach, supports_terminal_ours, can_create_inferior,
11159         get_thread_control_capabilities, attach_no_wait>: New
11160         virtual methods.
11161         <insert_breakpoint, remove_breakpoint>: Now
11162         TARGET_DEFAULT_NORETURN methods.
11163         <info_proc>: Now returns bool.
11164         <to_magic>: Delete.
11165         (OPS_MAGIC): Delete.
11166         (current_target): Delete.  All references replaced by references
11167         to ...
11168         (target_stack): ... this.  New.
11169         (target_shortname, target_longname): Adjust.
11170         (target_can_run): Now a function declaration.
11171         (default_child_has_all_memory, default_child_has_memory)
11172         (default_child_has_stack, default_child_has_registers)
11173         (default_child_has_execution): Remove target_ops parameter.
11174         (complete_target_initialization): Delete.
11175         (memory_breakpoint_target): New template class.
11176         (test_target_ops): Refactor as a C++ class with virtual methods.
11177         * make-target-delegates (NAME_PART): Tighten.
11178         (POINTER_PART, CP_SYMBOL): New.
11179         (SIMPLE_RETURN_PART): Reimplement.
11180         (VEC_RETURN_PART): Expect less.
11181         (RETURN_PART, VIRTUAL_PART): New.
11182         (METHOD): Adjust to C++ virtual methods.
11183         (scan_target_h): Remove reference to C99.
11184         (dname): Output "target_ops::" prefix.
11185         (write_function_header): Adjust to output a C++ class method.
11186         (write_declaration): New.
11187         (write_delegator): Adjust to output a C++ class method.
11188         (tdname): Output "dummy_target::" prefix.
11189         (write_tdefault, write_debugmethod): Adjust to output a C++ class
11190         method.
11191         (tdefault_names, debug_names): Delete.
11192         (return_types, tdefaults, styles, argtypes_array): New.
11193         (top level): All methods are delegators.
11194         (print_class): New.
11195         (top level): Print dummy_target and debug_target classes.
11196         * target-delegates.c: Regenerate.
11197         * target-debug.h (target_debug_print_enum_info_proc_what)
11198         (target_debug_print_thread_control_capabilities)
11199         (target_debug_print_thread_info_p): New.
11200         * target.c (dummy_target): Delete.
11201         (the_dummy_target, the_debug_target): New.
11202         (target_stack): Now extern.
11203         (set_targetdebug): Push/unpush debug target.
11204         (default_child_has_all_memory, default_child_has_memory)
11205         (default_child_has_stack, default_child_has_registers)
11206         (default_child_has_execution): Remove target_ops parameter.
11207         (complete_target_initialization): Delete.
11208         (add_target_with_completer): No longer call
11209         complete_target_initialization.
11210         (target_supports_terminal_ours): Use regular delegation.
11211         (update_current_target): Delete.
11212         (push_target): No longer check magic number.  Don't call
11213         update_current_target.
11214         (unpush_target): Don't call update_current_target.
11215         (target_is_pushed): No longer check magic number.
11216         (target_require_runnable): Skip for all stratums over
11217         process_stratum.
11218         (target_ops::info_proc): New.
11219         (target_info_proc): Use find_target_at and
11220         find_default_run_target.
11221         (target_supports_disable_randomization): Use regular delegation.
11222         (target_get_osdata): Use find_target_at.
11223         (target_ops::open, target_ops::close, target_ops::can_attach)
11224         (target_ops::attach, target_ops::can_create_inferior)
11225         (target_ops::create_inferior, target_ops::can_run)
11226         (target_can_run): New.
11227         (default_fileio_target): Use regular delegation.
11228         (target_ops::fileio_open, target_ops::fileio_pwrite)
11229         (target_ops::fileio_pread, target_ops::fileio_fstat)
11230         (target_ops::fileio_close, target_ops::fileio_unlink)
11231         (target_ops::fileio_readlink): New.
11232         (target_fileio_open_1, target_fileio_unlink)
11233         (target_fileio_readlink): Always call the target method.  Handle
11234         FILEIO_ENOSYS.
11235         (return_zero, return_zero_has_execution): Delete.
11236         (init_dummy_target): Delete.
11237         (dummy_target::dummy_target, dummy_target::shortname)
11238         (dummy_target::longname, dummy_target::doc)
11239         (debug_target::debug_target, debug_target::shortname)
11240         (debug_target::longname, debug_target::doc): New.
11241         (target_supports_delete_record): Use regular delegation.
11242         (setup_target_debug): Delete.
11243         (maintenance_print_target_stack): Skip debug_stratum.
11244         (initialize_targets): Instantiate the_dummy_target and
11245         the_debug_target.
11246         * auxv.c (target_auxv_parse): Remove 'ops' parameter.  Adjust to
11247         use target_stack.
11248         (target_auxv_search, fprint_target_auxv): Adjust.
11249         (info_auxv_command): Adjust to use target_stack.
11250         * auxv.h (target_auxv_parse): Remove 'ops' parameter.
11251         * exceptions.c (print_flush): Handle a NULL target_stack.
11252         * regcache.c (target_ops_no_register): Refactor as class with
11253         virtual methods.
11254
11255         * exec.c (exec_target): New class.
11256         (exec_ops): Now an exec_target.
11257         (exec_open, exec_close_1, exec_get_section_table)
11258         (exec_xfer_partial, exec_files_info, exec_has_memory)
11259         (exec_make_note_section): Refactor as exec_target methods.
11260         (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
11261         Delete.
11262         (exec_target::find_memory_regions): New.
11263         (_initialize_exec): Don't call init_exec_ops.
11264         * gdbcore.h (exec_file_clear): Delete.
11265
11266         * corefile.c (core_target): Delete.
11267         (core_file_command): Adjust.
11268         * corelow.c (core_target): New class.
11269         (the_core_target): New.
11270         (core_close): Remove target_ops parameter.
11271         (core_close_cleanup): Adjust.
11272         (core_target::close): New.
11273         (core_open, core_detach, get_core_registers, core_files_info)
11274         (core_xfer_partial, core_thread_alive, core_read_description)
11275         (core_pid_to_str, core_thread_name, core_has_memory)
11276         (core_has_stack, core_has_registers, core_info_proc): Rework as
11277         core_target methods.
11278         (ignore, core_remove_breakpoint, init_core_ops): Delete.
11279         (_initialize_corelow): Initialize the_core_target.
11280         * gdbcore.h (core_target): Delete.
11281         (the_core_target): New.
11282
11283         * ctf.c: (ctf_target): New class.
11284         (ctf_ops): Now a ctf_target.
11285         (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
11286         (ctf_xfer_partial, ctf_get_trace_state_variable_value)
11287         (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
11288         methods.
11289         (init_ctf_ops): Delete.
11290         (_initialize_ctf): Don't call it.
11291         * tracefile-tfile.c (tfile_target): New class.
11292         (tfile_ops): Now a tfile_target.
11293         (tfile_open, tfile_close, tfile_files_info)
11294         (tfile_get_tracepoint_status, tfile_trace_find)
11295         (tfile_fetch_registers, tfile_xfer_partial)
11296         (tfile_get_trace_state_variable_value, tfile_traceframe_info):
11297         Refactor as tfile_target methods.
11298         (tfile_xfer_partial_features): Remove target_ops parameter.
11299         (init_tfile_ops): Delete.
11300         (_initialize_tracefile_tfile): Don't call it.
11301         * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
11302         (tracefile_has_stack, tracefile_has_registers)
11303         (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
11304         tracefile_target methods.
11305         (init_tracefile_ops): Delete.
11306         (tracefile_target::tracefile_target): New.
11307         * tracefile.h: Include "target.h".
11308         (tracefile_target): New class.
11309         (init_tracefile_ops): Delete.
11310
11311         * spu-multiarch.c (spu_multiarch_target): New class.
11312         (spu_ops): Now a spu_multiarch_target.
11313         (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
11314         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
11315         (spu_search_memory, spu_mourn_inferior): Refactor as
11316         spu_multiarch_target methods.
11317         (init_spu_ops): Delete.
11318         (_initialize_spu_multiarch): Remove references to init_spu_ops,
11319         complete_target_initialization.
11320
11321         * ravenscar-thread.c (ravenscar_thread_target): New class.
11322         (ravenscar_ops): Now a ravenscar_thread_target.
11323         (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
11324         (ravenscar_thread_alive, ravenscar_pid_to_str)
11325         (ravenscar_fetch_registers, ravenscar_store_registers)
11326         (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
11327         (ravenscar_stopped_by_hw_breakpoint)
11328         (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
11329         (ravenscar_mourn_inferior, ravenscar_core_of_thread)
11330         (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
11331         methods.
11332         (init_ravenscar_thread_ops): Delete.
11333         (_initialize_ravenscar): Remove references to
11334         init_ravenscar_thread_ops and complete_target_initialization.
11335
11336         * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
11337         (bsd_uthread_target): New class.
11338         (bsd_uthread_ops): Now a bsd_uthread_target.
11339         (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
11340         (bsd_uthread_close, bsd_uthread_mourn_inferior)
11341         (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
11342         (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
11343         (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
11344         (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
11345         (bsd_uthread_target): Delete function.
11346         (_initialize_bsd_uthread): Remove reference to
11347         complete_target_initialization.
11348
11349         * bfd-target.c (target_bfd_data): Delete.  Fields folded into ...
11350         (target_bfd): ... this new class.
11351         (target_bfd_xfer_partial, target_bfd_get_section_table)
11352         (target_bfd_close): Refactor as target_bfd methods.
11353         (target_bfd::~target_bfd): New.
11354         (target_bfd_reopen): Adjust.
11355         (target_bfd::close): New.
11356
11357         * record-btrace.c (record_btrace_target): New class.
11358         (record_btrace_ops): Now a record_btrace_target.
11359         (record_btrace_open, record_btrace_stop_recording)
11360         (record_btrace_disconnect, record_btrace_close)
11361         (record_btrace_async, record_btrace_info)
11362         (record_btrace_insn_history, record_btrace_insn_history_range)
11363         (record_btrace_insn_history_from, record_btrace_call_history)
11364         (record_btrace_call_history_range)
11365         (record_btrace_call_history_from, record_btrace_record_method)
11366         (record_btrace_is_replaying, record_btrace_will_replay)
11367         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
11368         (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
11369         (record_btrace_store_registers, record_btrace_prepare_to_store)
11370         (record_btrace_to_get_unwinder)
11371         (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
11372         (record_btrace_commit_resume, record_btrace_wait)
11373         (record_btrace_stop, record_btrace_can_execute_reverse)
11374         (record_btrace_stopped_by_sw_breakpoint)
11375         (record_btrace_supports_stopped_by_sw_breakpoint)
11376         (record_btrace_stopped_by_hw_breakpoint)
11377         (record_btrace_supports_stopped_by_hw_breakpoint)
11378         (record_btrace_update_thread_list, record_btrace_thread_alive)
11379         (record_btrace_goto_begin, record_btrace_goto_end)
11380         (record_btrace_goto, record_btrace_stop_replaying_all)
11381         (record_btrace_execution_direction)
11382         (record_btrace_prepare_to_generate_core)
11383         (record_btrace_done_generating_core): Refactor as
11384         record_btrace_target methods.
11385         (init_record_btrace_ops): Delete.
11386         (_initialize_record_btrace): Remove reference to
11387         init_record_btrace_ops.
11388         * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
11389         the execution_direction global.
11390         (record_full_base_target, record_full_target)
11391         (record_full_core_target): New classes.
11392         (record_full_ops): Now a record_full_target.
11393         (record_full_core_ops): Now a record_full_core_target.
11394         (record_full_target::detach, record_full_target::disconnect)
11395         (record_full_core_target::disconnect)
11396         (record_full_target::mourn_inferior, record_full_target::kill):
11397         New.
11398         (record_full_open, record_full_close, record_full_async): Refactor
11399         as methods of the record_full_base_target class.
11400         (record_full_resume, record_full_commit_resume): Refactor
11401         as methods of the record_full_target class.
11402         (record_full_wait, record_full_stopped_by_watchpoint)
11403         (record_full_stopped_data_address)
11404         (record_full_stopped_by_sw_breakpoint)
11405         (record_full_supports_stopped_by_sw_breakpoint)
11406         (record_full_stopped_by_hw_breakpoint)
11407         (record_full_supports_stopped_by_hw_breakpoint): Refactor as
11408         methods of the record_full_base_target class.
11409         (record_full_store_registers, record_full_xfer_partial)
11410         (record_full_insert_breakpoint, record_full_remove_breakpoint):
11411         Refactor as methods of the record_full_target class.
11412         (record_full_can_execute_reverse, record_full_get_bookmark)
11413         (record_full_goto_bookmark, record_full_execution_direction)
11414         (record_full_record_method, record_full_info, record_full_delete)
11415         (record_full_is_replaying, record_full_will_replay)
11416         (record_full_goto_begin, record_full_goto_end, record_full_goto)
11417         (record_full_stop_replaying): Refactor as methods of the
11418         record_full_base_target class.
11419         (record_full_core_resume, record_full_core_kill)
11420         (record_full_core_fetch_registers)
11421         (record_full_core_prepare_to_store)
11422         (record_full_core_store_registers, record_full_core_xfer_partial)
11423         (record_full_core_insert_breakpoint)
11424         (record_full_core_remove_breakpoint)
11425         (record_full_core_has_execution): Refactor
11426         as methods of the record_full_core_target class.
11427         (record_full_base_target::supports_delete_record): New.
11428         (init_record_full_ops): Delete.
11429         (init_record_full_core_ops): Delete.
11430         (record_full_save): Refactor as method of the
11431         record_full_base_target class.
11432         (_initialize_record_full): Remove references to
11433         init_record_full_ops and init_record_full_core_ops.
11434
11435         * remote.c (remote_target, extended_remote_target): New classes.
11436         (remote_ops): Now a remote_target.
11437         (extended_remote_ops): Now an extended_remote_target.
11438         (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
11439         (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
11440         (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
11441         (remote_pass_signals, remote_set_syscall_catchpoint)
11442         (remote_program_signals, )
11443         (remote_thread_always_alive): Remove target_ops parameter.
11444         (remote_thread_alive, remote_thread_name)
11445         (remote_update_thread_list, remote_threads_extra_info)
11446         (remote_static_tracepoint_marker_at)
11447         (remote_static_tracepoint_markers_by_strid)
11448         (remote_get_ada_task_ptid, remote_close, remote_start_remote)
11449         (remote_open): Refactor as methods of remote_target.
11450         (extended_remote_open, extended_remote_detach)
11451         (extended_remote_attach, extended_remote_post_attach):
11452         (extended_remote_supports_disable_randomization)
11453         (extended_remote_create_inferior): : Refactor as method of
11454         extended_remote_target.
11455         (remote_set_permissions, remote_open_1, remote_detach)
11456         (remote_follow_fork, remote_follow_exec, remote_disconnect)
11457         (remote_resume, remote_commit_resume, remote_stop)
11458         (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
11459         (remote_terminal_ours, remote_wait, remote_fetch_registers)
11460         (remote_prepare_to_store, remote_store_registers)
11461         (remote_flash_erase, remote_flash_done, remote_files_info)
11462         (remote_kill, remote_mourn, remote_insert_breakpoint)
11463         (remote_remove_breakpoint, remote_insert_watchpoint)
11464         (remote_watchpoint_addr_within_range)
11465         (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
11466         (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
11467         (remote_supports_stopped_by_sw_breakpoint)
11468         (remote_stopped_by_hw_breakpoint)
11469         (remote_supports_stopped_by_hw_breakpoint)
11470         (remote_stopped_by_watchpoint, remote_stopped_data_address)
11471         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
11472         (remote_verify_memory): Refactor as methods of remote_target.
11473         (remote_write_qxfer, remote_read_qxfer): Remove target_ops
11474         parameter.
11475         (remote_xfer_partial, remote_get_memory_xfer_limit)
11476         (remote_search_memory, remote_rcmd, remote_memory_map)
11477         (remote_pid_to_str, remote_get_thread_local_address)
11478         (remote_get_tib_address, remote_read_description): Refactor as
11479         methods of remote_target.
11480         (remote_target::fileio_open, remote_target::fileio_pwrite)
11481         (remote_target::fileio_pread, remote_target::fileio_close): New.
11482         (remote_hostio_readlink, remote_hostio_fstat)
11483         (remote_filesystem_is_local, remote_can_execute_reverse)
11484         (remote_supports_non_stop, remote_supports_disable_randomization)
11485         (remote_supports_multi_process, remote_supports_cond_breakpoints)
11486         (remote_supports_enable_disable_tracepoint)
11487         (remote_supports_string_tracing)
11488         (remote_can_run_breakpoint_commands, remote_trace_init)
11489         (remote_download_tracepoint, remote_can_download_tracepoint)
11490         (remote_download_trace_state_variable, remote_enable_tracepoint)
11491         (remote_disable_tracepoint, remote_trace_set_readonly_regions)
11492         (remote_trace_start, remote_get_trace_status)
11493         (remote_get_tracepoint_status, remote_trace_stop)
11494         (remote_trace_find, remote_get_trace_state_variable_value)
11495         (remote_save_trace_data, remote_get_raw_trace_data)
11496         (remote_set_disconnected_tracing, remote_core_of_thread)
11497         (remote_set_circular_trace_buffer, remote_traceframe_info)
11498         (remote_get_min_fast_tracepoint_insn_len)
11499         (remote_set_trace_buffer_size, remote_set_trace_notes)
11500         (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
11501         (remote_disable_btrace, remote_teardown_btrace)
11502         (remote_read_btrace, remote_btrace_conf)
11503         (remote_augmented_libraries_svr4_read, remote_load)
11504         (remote_pid_to_exec_file, remote_can_do_single_step)
11505         (remote_execution_direction, remote_thread_handle_to_thread_info):
11506         Refactor as methods of remote_target.
11507         (init_remote_ops, init_extended_remote_ops): Delete.
11508         (remote_can_async_p, remote_is_async_p, remote_async)
11509         (remote_thread_events, remote_upload_tracepoints)
11510         (remote_upload_trace_state_variables): Refactor as methods of
11511         remote_target.
11512         (_initialize_remote): Remove references to init_remote_ops and
11513         init_extended_remote_ops.
11514
11515         * remote-sim.c (gdbsim_target): New class.
11516         (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
11517         (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
11518         (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
11519         (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
11520         (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
11521         (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
11522         Refactor as methods of gdbsim_target.
11523         (gdbsim_ops): Now a gdbsim_target.
11524         (init_gdbsim_ops): Delete.
11525         (gdbsim_cntrl_c): Adjust.
11526         (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
11527
11528         * amd64-linux-nat.c (amd64_linux_nat_target): New class.
11529         (the_amd64_linux_nat_target): New.
11530         (amd64_linux_fetch_inferior_registers)
11531         (amd64_linux_store_inferior_registers): Refactor as methods of
11532         amd64_linux_nat_target.
11533         (_initialize_amd64_linux_nat): Adjust.  Set linux_target.
11534         * i386-linux-nat.c: Don't include "linux-nat.h".
11535         (i386_linux_nat_target): New class.
11536         (the_i386_linux_nat_target): New.
11537         (i386_linux_fetch_inferior_registers)
11538         (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
11539         as methods of i386_linux_nat_target.
11540         (_initialize_i386_linux_nat): Adjust.  Set linux_target.
11541         * inf-child.c (inf_child_ops): Delete.
11542         (inf_child_fetch_inferior_registers)
11543         (inf_child_store_inferior_registers): Delete.
11544         (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
11545         methods of inf_child_target.
11546         (inf_child_target::supports_terminal_ours)
11547         (inf_child_target::terminal_init)
11548         (inf_child_target::terminal_inferior)
11549         (inf_child_target::terminal_ours_for_output)
11550         (inf_child_target::terminal_ours, inf_child_target::interrupt)
11551         (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
11552         New.
11553         (inf_child_open, inf_child_disconnect, inf_child_close)
11554         (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
11555         (inf_child_post_startup_inferior, inf_child_can_run)
11556         (inf_child_pid_to_exec_file): Refactor as methods of
11557         inf_child_target.
11558         (inf_child_follow_fork): Delete.
11559         (inf_child_target::can_create_inferior)
11560         (inf_child_target::can_attach): New.
11561         (inf_child_target::has_all_memory, inf_child_target::has_memory)
11562         (inf_child_target::has_stack, inf_child_target::has_registers)
11563         (inf_child_target::has_execution): New.
11564         (inf_child_fileio_open, inf_child_fileio_pwrite)
11565         (inf_child_fileio_pread, inf_child_fileio_fstat)
11566         (inf_child_fileio_close, inf_child_fileio_unlink)
11567         (inf_child_fileio_readlink, inf_child_use_agent)
11568         (inf_child_can_use_agent): Refactor as methods of
11569         inf_child_target.
11570         (return_zero, inf_child_target): Delete.
11571         (inf_child_target::inf_child_target): New.
11572         * inf-child.h: Include "target.h".
11573         (inf_child_target): Delete function prototype.
11574         (inf_child_target): New class.
11575         (inf_child_open_target, inf_child_mourn_inferior)
11576         (inf_child_maybe_unpush_target): Delete.
11577         * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
11578         (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
11579         (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
11580         (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
11581         (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
11582         (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
11583         (inf_ptrace_wait, inf_ptrace_xfer_partial)
11584         (inf_ptrace_thread_alive, inf_ptrace_files_info)
11585         (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
11586         methods of inf_ptrace_target.
11587         (inf_ptrace_target): Delete function.
11588         * inf-ptrace.h: Include "inf-child.h".
11589         (inf_ptrace_target): Delete function declaration.
11590         (inf_ptrace_target): New class.
11591         (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
11592         * linux-nat.c (linux_target): New.
11593         (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
11594         (linux_nat_target::~linux_nat_target): New.
11595         (linux_child_post_attach, linux_child_post_startup_inferior)
11596         (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
11597         (linux_child_remove_fork_catchpoint)
11598         (linux_child_insert_vfork_catchpoint)
11599         (linux_child_remove_vfork_catchpoint)
11600         (linux_child_insert_exec_catchpoint)
11601         (linux_child_remove_exec_catchpoint)
11602         (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
11603         (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
11604         (linux_nat_resume, linux_nat_stopped_by_watchpoint)
11605         (linux_nat_stopped_data_address)
11606         (linux_nat_stopped_by_sw_breakpoint)
11607         (linux_nat_supports_stopped_by_sw_breakpoint)
11608         (linux_nat_stopped_by_hw_breakpoint)
11609         (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
11610         (linux_nat_kill, linux_nat_mourn_inferior)
11611         (linux_nat_xfer_partial, linux_nat_thread_alive)
11612         (linux_nat_update_thread_list, linux_nat_pid_to_str)
11613         (linux_nat_thread_name, linux_child_pid_to_exec_file)
11614         (linux_child_static_tracepoint_markers_by_strid)
11615         (linux_nat_is_async_p, linux_nat_can_async_p)
11616         (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
11617         (linux_nat_supports_multi_process)
11618         (linux_nat_supports_disable_randomization, linux_nat_async)
11619         (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
11620         (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
11621         (linux_nat_fileio_open, linux_nat_fileio_readlink)
11622         (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
11623         methods of linux_nat_target.
11624         (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
11625         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
11626         parameter.
11627         (check_stopped_by_watchpoint): Adjust.
11628         (linux_xfer_partial): Delete.
11629         (linux_target_install_ops, linux_target, linux_nat_add_target):
11630         Delete.
11631         (linux_nat_target::linux_nat_target): New.
11632         * linux-nat.h: Include "inf-ptrace.h".
11633         (linux_nat_target): New.
11634         (linux_target, linux_target_install_ops, linux_nat_add_target):
11635         Delete function declarations.
11636         (linux_target): Declare global.
11637         * linux-thread-db.c (thread_db_target): New.
11638         (thread_db_target::thread_db_target): New.
11639         (thread_db_ops): Delete.
11640         (the_thread_db_target): New.
11641         (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
11642         (thread_db_update_thread_list, thread_db_pid_to_str)
11643         (thread_db_extra_thread_info)
11644         (thread_db_thread_handle_to_thread_info)
11645         (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
11646         (thread_db_resume): Refactor as methods of thread_db_target.
11647         (init_thread_db_ops): Delete.
11648         (_initialize_thread_db): Remove reference to init_thread_db_ops.
11649         * x86-linux-nat.c: Don't include "linux-nat.h".
11650         (super_post_startup_inferior): Delete.
11651         (x86_linux_nat_target::~x86_linux_nat_target): New.
11652         (x86_linux_child_post_startup_inferior)
11653         (x86_linux_read_description, x86_linux_enable_btrace)
11654         (x86_linux_disable_btrace, x86_linux_teardown_btrace)
11655         (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
11656         methods of x86_linux_nat_target.
11657         (x86_linux_create_target): Delete.  Bits folded ...
11658         (x86_linux_add_target): ... here.  Now takes a linux_nat_target
11659         pointer.
11660         * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
11661         (x86_linux_nat_target): New class.
11662         (x86_linux_create_target): Delete.
11663         (x86_linux_add_target): Now takes a linux_nat_target pointer.
11664         * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
11665         (x86_region_ok_for_watchpoint, x86_stopped_data_address)
11666         (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
11667         (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
11668         (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
11669         make extern.
11670         (x86_use_watchpoints): Delete.
11671         * x86-nat.h: Include "breakpoint.h" and "target.h".
11672         (x86_use_watchpoints): Delete.
11673         (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
11674         (x86_stopped_by_watchpoint, x86_stopped_data_address)
11675         (x86_insert_watchpoint, x86_remove_watchpoint)
11676         (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
11677         (x86_stopped_by_hw_breakpoint): New declarations.
11678         (x86_nat_target): New template class.
11679
11680         * ppc-linux-nat.c (ppc_linux_nat_target): New class.
11681         (the_ppc_linux_nat_target): New.
11682         (ppc_linux_fetch_inferior_registers)
11683         (ppc_linux_can_use_hw_breakpoint)
11684         (ppc_linux_region_ok_for_hw_watchpoint)
11685         (ppc_linux_ranged_break_num_registers)
11686         (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
11687         (ppc_linux_insert_mask_watchpoint)
11688         (ppc_linux_remove_mask_watchpoint)
11689         (ppc_linux_can_accel_watchpoint_condition)
11690         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
11691         (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
11692         (ppc_linux_watchpoint_addr_within_range)
11693         (ppc_linux_masked_watch_num_registers)
11694         (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
11695         (ppc_linux_read_description): Refactor as methods of
11696         ppc_linux_nat_target.
11697         (_initialize_ppc_linux_nat): Adjust.  Set linux_target.
11698
11699         * procfs.c (procfs_xfer_partial): Delete forward declaration.
11700         (procfs_target): New class.
11701         (the_procfs_target): New.
11702         (procfs_target): Delete function.
11703         (procfs_auxv_parse, procfs_attach, procfs_detach)
11704         (procfs_fetch_registers, procfs_store_registers, procfs_wait)
11705         (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
11706         (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
11707         (procfs_create_inferior, procfs_update_thread_list)
11708         (procfs_thread_alive, procfs_pid_to_str)
11709         (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
11710         (procfs_stopped_data_address, procfs_insert_watchpoint)
11711         (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
11712         (proc_find_memory_regions, procfs_info_proc)
11713         (procfs_make_note_section): Refactor as methods of procfs_target.
11714         (_initialize_procfs): Adjust.
11715         * sol-thread.c (sol_thread_target): New class.
11716         (sol_thread_ops): Now a sol_thread_target.
11717         (sol_thread_detach, sol_thread_resume, sol_thread_wait)
11718         (sol_thread_fetch_registers, sol_thread_store_registers)
11719         (sol_thread_xfer_partial, sol_thread_mourn_inferior)
11720         (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
11721         (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
11722         (init_sol_thread_ops): Delete.
11723         (_initialize_sol_thread): Adjust.  Remove references to
11724         init_sol_thread_ops and complete_target_initialization.
11725
11726         * windows-nat.c (windows_nat_target): New class.
11727         (windows_fetch_inferior_registers)
11728         (windows_store_inferior_registers, windows_resume, windows_wait)
11729         (windows_attach, windows_detach, windows_pid_to_exec_file)
11730         (windows_files_info, windows_create_inferior)
11731         (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
11732         (windows_close, windows_pid_to_str, windows_xfer_partial)
11733         (windows_get_tib_address, windows_get_ada_task_ptid)
11734         (windows_thread_name, windows_thread_alive): Refactor as
11735         windows_nat_target methods.
11736         (do_initial_windows_stuff): Adjust.
11737         (windows_target): Delete function.
11738         (_initialize_windows_nat): Adjust.
11739
11740         * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
11741         (darwin_mourn_inferior, darwin_kill_inferior)
11742         (darwin_create_inferior, darwin_attach, darwin_detach)
11743         (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
11744         (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
11745         (darwin_supports_multi_process): Refactor as darwin_nat_target
11746         methods.
11747         (darwin_resume_to, darwin_files_info): Delete.
11748         (_initialize_darwin_inferior): Rename to ...
11749         (_initialize_darwin_nat): ... this.  Adjust to C++ification.
11750         * darwin-nat.h: Include "inf-child.h".
11751         (darwin_nat_target): New class.
11752         (darwin_complete_target): Delete.
11753         * i386-darwin-nat.c (i386_darwin_nat_target): New class.
11754         (darwin_target): New.
11755         (i386_darwin_fetch_inferior_registers)
11756         (i386_darwin_store_inferior_registers): Refactor as methods of
11757         darwin_nat_target.
11758         (darwin_complete_target): Delete, with ...
11759         (_initialize_i386_darwin_nat): ... bits factored out here.
11760
11761         * alpha-linux-nat.c (alpha_linux_nat_target): New class.
11762         (the_alpha_linux_nat_target): New.
11763         (alpha_linux_register_u_offset): Refactor as
11764         alpha_linux_nat_target method.
11765         (_initialize_alpha_linux_nat): Adjust.
11766         * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
11767         (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
11768         (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
11769         methods of linux_nat_trad_target.
11770         (linux_trad_target): Delete.
11771         * linux-nat-trad.h (linux_trad_target): Delete function.
11772         (linux_nat_trad_target): New class.
11773         * mips-linux-nat.c (mips_linux_nat_target): New class.
11774         (super_fetch_registers, super_store_registers, super_close):
11775         Delete.
11776         (the_mips_linux_nat_target): New.
11777         (mips64_linux_regsets_fetch_registers)
11778         (mips64_linux_regsets_store_registers)
11779         (mips64_linux_fetch_registers, mips64_linux_store_registers)
11780         (mips_linux_register_u_offset, mips_linux_read_description)
11781         (mips_linux_can_use_hw_breakpoint)
11782         (mips_linux_stopped_by_watchpoint)
11783         (mips_linux_stopped_data_address)
11784         (mips_linux_region_ok_for_hw_watchpoint)
11785         (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
11786         (mips_linux_close): Refactor as methods of mips_linux_nat.
11787         (_initialize_mips_linux_nat): Adjust to C++ification.
11788
11789         * aix-thread.c (aix_thread_target): New class.
11790         (aix_thread_ops): Now an aix_thread_target.
11791         (aix_thread_detach, aix_thread_resume, aix_thread_wait)
11792         (aix_thread_fetch_registers, aix_thread_store_registers)
11793         (aix_thread_xfer_partial, aix_thread_mourn_inferior)
11794         (aix_thread_thread_alive, aix_thread_pid_to_str)
11795         (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
11796         Refactor as methods of aix_thread_target.
11797         (init_aix_thread_ops): Delete.
11798         (_initialize_aix_thread): Remove references to init_aix_thread_ops
11799         and complete_target_initialization.
11800         * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
11801         (rs6000_nat_target): New class.
11802         (the_rs6000_nat_target): New.
11803         (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
11804         (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
11805         (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
11806         (super_create_inferior): Delete.
11807         (_initialize_rs6000_nat): Adjust to C++ification.
11808
11809         * arm-linux-nat.c (arm_linux_nat_target): New class.
11810         (the_arm_linux_nat_target): New.
11811         (arm_linux_fetch_inferior_registers)
11812         (arm_linux_store_inferior_registers, arm_linux_read_description)
11813         (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
11814         (arm_linux_remove_hw_breakpoint)
11815         (arm_linux_region_ok_for_hw_watchpoint)
11816         (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
11817         (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
11818         (arm_linux_watchpoint_addr_within_range): Refactor as methods of
11819         arm_linux_nat_target.
11820         (_initialize_arm_linux_nat): Adjust to C++ification.
11821
11822         * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
11823         (the_aarch64_linux_nat_target): New.
11824         (aarch64_linux_fetch_inferior_registers)
11825         (aarch64_linux_store_inferior_registers)
11826         (aarch64_linux_child_post_startup_inferior)
11827         (aarch64_linux_read_description)
11828         (aarch64_linux_can_use_hw_breakpoint)
11829         (aarch64_linux_insert_hw_breakpoint)
11830         (aarch64_linux_remove_hw_breakpoint)
11831         (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
11832         (aarch64_linux_region_ok_for_hw_watchpoint)
11833         (aarch64_linux_stopped_data_address)
11834         (aarch64_linux_stopped_by_watchpoint)
11835         (aarch64_linux_watchpoint_addr_within_range)
11836         (aarch64_linux_can_do_single_step): Refactor as methods of
11837         aarch64_linux_nat_target.
11838         (super_post_startup_inferior): Delete.
11839         (_initialize_aarch64_linux_nat): Adjust to C++ification.
11840
11841         * hppa-linux-nat.c (hppa_linux_nat_target): New class.
11842         (the_hppa_linux_nat_target): New.
11843         (hppa_linux_fetch_inferior_registers)
11844         (hppa_linux_store_inferior_registers): Refactor as methods of
11845         hppa_linux_nat_target.
11846         (_initialize_hppa_linux_nat): Adjust to C++ification.
11847
11848         * ia64-linux-nat.c (ia64_linux_nat_target): New class.
11849         (the_ia64_linux_nat_target): New.
11850         (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
11851         (ia64_linux_stopped_data_address)
11852         (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
11853         (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
11854         ia64_linux_nat_target methods.
11855         (super_xfer_partial): Delete.
11856         (_initialize_ia64_linux_nat): Adjust to C++ification.
11857
11858         * m32r-linux-nat.c (m32r_linux_nat_target): New class.
11859         (the_m32r_linux_nat_target): New.
11860         (m32r_linux_fetch_inferior_registers)
11861         (m32r_linux_store_inferior_registers): Refactor as
11862         m32r_linux_nat_target methods.
11863         (_initialize_m32r_linux_nat): Adjust to C++ification.
11864
11865         * m68k-linux-nat.c (m68k_linux_nat_target): New class.
11866         (the_m68k_linux_nat_target): New.
11867         (m68k_linux_fetch_inferior_registers)
11868         (m68k_linux_store_inferior_registers): Refactor as
11869         m68k_linux_nat_target methods.
11870         (_initialize_m68k_linux_nat): Adjust to C++ification.
11871
11872         * s390-linux-nat.c (s390_linux_nat_target): New class.
11873         (the_s390_linux_nat_target): New.
11874         (s390_linux_fetch_inferior_registers)
11875         (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
11876         (s390_insert_watchpoint, s390_remove_watchpoint)
11877         (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
11878         (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
11879         (s390_auxv_parse, s390_read_description): Refactor as methods of
11880         s390_linux_nat_target.
11881         (_initialize_s390_nat): Adjust to C++ification.
11882
11883         * sparc-linux-nat.c (sparc_linux_nat_target): New class.
11884         (the_sparc_linux_nat_target): New.
11885         (_initialize_sparc_linux_nat): Adjust to C++ification.
11886         * sparc-nat.c (sparc_fetch_inferior_registers)
11887         (sparc_store_inferior_registers): Remove target_ops parameter.
11888         * sparc-nat.h (sparc_fetch_inferior_registers)
11889         (sparc_store_inferior_registers): Remove target_ops parameter.
11890         * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
11891         (the_sparc64_linux_nat_target): New.
11892         (_initialize_sparc64_linux_nat): Adjust to C++ification.
11893
11894         * spu-linux-nat.c (spu_linux_nat_target): New class.
11895         (the_spu_linux_nat_target): New.
11896         (spu_child_post_startup_inferior, spu_child_post_attach)
11897         (spu_child_wait, spu_fetch_inferior_registers)
11898         (spu_store_inferior_registers, spu_xfer_partial)
11899         (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
11900         methods.
11901         (_initialize_spu_nat): Adjust to C++ification.
11902
11903         * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
11904         (the_tilegx_linux_nat_target): New.
11905         (fetch_inferior_registers, store_inferior_registers):
11906         Refactor as methods.
11907         (_initialize_tile_linux_nat): Adjust to C++ification.
11908
11909         * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
11910         (the_xtensa_linux_nat_target): New.
11911         (xtensa_linux_fetch_inferior_registers)
11912         (xtensa_linux_store_inferior_registers): Refactor as
11913         xtensa_linux_nat_target methods.
11914         (_initialize_xtensa_linux_nat): Adjust to C++ification.
11915
11916         * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
11917         (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
11918         (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
11919         (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
11920         (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
11921         (fbsd_stopped_by_sw_breakpoint)
11922         (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
11923         (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
11924         (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
11925         (fbsd_post_startup_inferior, fbsd_post_attach)
11926         (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
11927         (fbsd_set_syscall_catchpoint)
11928         (super_xfer_partial, super_resume, super_wait)
11929         (fbsd_supports_stopped_by_hw_breakpoint): Delete.
11930         (fbsd_handle_debug_trap): Remove target_ops parameter.
11931         (fbsd_nat_add_target): Delete.
11932         * fbsd-nat.h: Include "inf-ptrace.h".
11933         (fbsd_nat_add_target): Delete.
11934         (USE_SIGTRAP_SIGINFO): Define.
11935         (fbsd_nat_target): New class.
11936
11937         * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
11938         (amd64bsd_store_inferior_registers): Remove target_ops parameter.
11939         (amd64bsd_target): Delete.
11940         * amd64-bsd-nat.h: New file.
11941         * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
11942         "x86-bsd-nat.h".
11943         (amd64_fbsd_nat_target): New class.
11944         (the_amd64_fbsd_nat_target): New.
11945         (amd64fbsd_read_description): Refactor as method of
11946         amd64_fbsd_nat_target.
11947         (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
11948         (_initialize_amd64fbsd_nat): Adjust to C++ification.
11949         * amd64-nat.h (amd64bsd_target): Delete function declaration.
11950         * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
11951         (i386bsd_store_inferior_registers): Remove target_ops parameter.
11952         (i386bsd_target): Delete.
11953         * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
11954         (i386bsd_fetch_inferior_registers)
11955         (i386bsd_store_inferior_registers): Declare.
11956         (i386_bsd_nat_target): New class.
11957         * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
11958         (the_i386_fbsd_nat_target): New.
11959         (i386fbsd_resume, i386fbsd_read_description): Refactor as
11960         i386_fbsd_nat_target methods.
11961         (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
11962         (_initialize_i386fbsd_nat): Adjust to C++ification.
11963         * x86-bsd-nat.c (super_mourn_inferior): Delete.
11964         (x86bsd_mourn_inferior, x86bsd_target): Delete.
11965         (_initialize_x86_bsd_nat): Adjust to C++ification.
11966         * x86-bsd-nat.h: Include "x86-nat.h".
11967         (x86bsd_target): Delete declaration.
11968         (x86bsd_nat_target): New class.
11969
11970         * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
11971         (the_aarch64_fbsd_nat_target): New.
11972         (aarch64_fbsd_fetch_inferior_registers)
11973         (aarch64_fbsd_store_inferior_registers): Refactor as methods of
11974         aarch64_fbsd_nat_target.
11975         (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
11976         * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
11977         (the_alpha_bsd_nat_target): New.
11978         (alphabsd_fetch_inferior_registers)
11979         (alphabsd_store_inferior_registers): Refactor as
11980         alpha_bsd_nat_target methods.
11981         (_initialize_alphabsd_nat): Refactor as methods of
11982         alpha_bsd_nat_target.
11983         * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
11984         (the_amd64_nbsd_nat_target): New.
11985         (_initialize_amd64nbsd_nat): Adjust to C++ification.
11986         * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
11987         (the_amd64_obsd_nat_target): New.
11988         (_initialize_amd64obsd_nat): Adjust to C++ification.
11989         * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
11990         (the_arm_fbsd_nat_target): New.
11991         (arm_fbsd_fetch_inferior_registers)
11992         (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
11993         (_initialize_arm_fbsd_nat): Refactor as methods of
11994         arm_fbsd_nat_target.
11995         (_initialize_arm_fbsd_nat): Adjust to C++ification.
11996         * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
11997         (the_arm_netbsd_nat_target): New.
11998         (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
11999         arm_netbsd_nat_target.
12000         (_initialize_arm_netbsd_nat): Adjust to C++ification.
12001         * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
12002         (the_hppa_nbsd_nat_target): New.
12003         (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
12004         hppa_nbsd_nat_target methods.
12005         (_initialize_hppanbsd_nat): Adjust to C++ification.
12006         * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
12007         (the_hppa_obsd_nat_target): New.
12008         (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
12009         methods of hppa_obsd_nat_target.
12010         (_initialize_hppaobsd_nat): Adjust to C++ification.  Use
12011         add_target.
12012         * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
12013         (_initialize_i386nbsd_nat): Adjust to C++ification.  Use
12014         add_target.
12015         * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
12016         (_initialize_i386obsd_nat): Use add_target.
12017         * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
12018         (the_m68k_bsd_nat_target): New.
12019         (m68kbsd_fetch_inferior_registers)
12020         (m68kbsd_store_inferior_registers): Refactor as methods of
12021         m68k_bsd_nat_target.
12022         (_initialize_m68kbsd_nat): Adjust to C++ification.
12023         * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
12024         (the_mips_fbsd_nat_target): New.
12025         (mips_fbsd_fetch_inferior_registers)
12026         (mips_fbsd_store_inferior_registers): Refactor as methods of
12027         mips_fbsd_nat_target.
12028         (_initialize_mips_fbsd_nat): Adjust to C++ification.  Use
12029         add_target.
12030         * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
12031         (the_mips_nbsd_nat_target): New.
12032         (mipsnbsd_fetch_inferior_registers)
12033         (mipsnbsd_store_inferior_registers): Refactor as methods of
12034         mips_nbsd_nat_target.
12035         (_initialize_mipsnbsd_nat): Adjust to C++ification.
12036         * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
12037         (the_mips64_obsd_nat_target): New.
12038         (mips64obsd_fetch_inferior_registers)
12039         (mips64obsd_store_inferior_registers): Refactor as methods of
12040         mips64_obsd_nat_target.
12041         (_initialize_mips64obsd_nat): Adjust to C++ification.  Use
12042         add_target.
12043         * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
12044         nbsd_nat_target.
12045         * nbsd-nat.h: Include "inf-ptrace.h".
12046         (nbsd_nat_target): New class.
12047         * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
12048         (obsd_wait): Refactor as methods of obsd_nat_target.
12049         (obsd_add_target): Delete.
12050         * obsd-nat.h: Include "inf-ptrace.h".
12051         (obsd_nat_target): New class.
12052         * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
12053         (the_ppc_fbsd_nat_target): New.
12054         (ppcfbsd_fetch_inferior_registers)
12055         (ppcfbsd_store_inferior_registers): Refactor as methods of
12056         ppc_fbsd_nat_target.
12057         (_initialize_ppcfbsd_nat): Adjust to C++ification.  Use
12058         add_target.
12059         * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
12060         (the_ppc_nbsd_nat_target): New.
12061         (ppcnbsd_fetch_inferior_registers)
12062         (ppcnbsd_store_inferior_registers): Refactor as methods of
12063         ppc_nbsd_nat_target.
12064         (_initialize_ppcnbsd_nat): Adjust to C++ification.
12065         * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
12066         (the_ppc_obsd_nat_target): New.
12067         (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
12068         methods of ppc_obsd_nat_target.
12069         (_initialize_ppcobsd_nat): Adjust to C++ification.  Use
12070         add_target.
12071         * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
12072         (the_sh_nbsd_nat_target): New.
12073         (shnbsd_fetch_inferior_registers)
12074         (shnbsd_store_inferior_registers): Refactor as methods of
12075         sh_nbsd_nat_target.
12076         (_initialize_shnbsd_nat): Adjust to C++ification.
12077         * sparc-nat.c (sparc_xfer_wcookie): Make extern.
12078         (inf_ptrace_xfer_partial): Delete.
12079         (sparc_xfer_partial, sparc_target): Delete.
12080         * sparc-nat.h (sparc_fetch_inferior_registers)
12081         (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
12082         (sparc_target): Delete function declaration.
12083         (sparc_target): New template class.
12084         * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
12085         (_initialize_sparcnbsd_nat): Adjust to C++ification.
12086         * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
12087         (_initialize_sparc64fbsd_nat): Adjust to C++ification.  Use
12088         add_target.
12089         * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
12090         (_initialize_sparc64nbsd_nat): Adjust to C++ification.
12091         * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
12092         (_initialize_sparc64obsd_nat): Adjust to C++ification.  Use
12093         add_target.
12094         * vax-bsd-nat.c (vax_bsd_nat_target): New class.
12095         (the_vax_bsd_nat_target): New.
12096         (vaxbsd_fetch_inferior_registers)
12097         (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
12098         methods.
12099         (_initialize_vaxbsd_nat): Adjust to C++ification.
12100
12101         * bsd-kvm.c (bsd_kvm_target): New class.
12102         (bsd_kvm_ops): Now a bsd_kvm_target.
12103         (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
12104         (bsd_kvm_files_info, bsd_kvm_fetch_registers)
12105         (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
12106         bsd_kvm_target.
12107         (bsd_kvm_return_one): Delete.
12108         (bsd_kvm_add_target): Adjust to C++ification.
12109
12110         * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
12111         (nto_procfs_target_procfs): New classes.
12112         (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
12113         (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
12114         (procfs_post_attach, procfs_wait, procfs_fetch_registers)
12115         (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
12116         (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
12117         (procfs_remove_hw_breakpoint, procfs_resume)
12118         (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
12119         (procfs_kill_inferior, procfs_store_registers)
12120         (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
12121         as methods of nto_procfs_target.
12122         (nto_procfs_ops): Now an nto_procfs_target_procfs.
12123         (nto_native_ops): Delete.
12124         (procfs_open, procfs_native_open): Delete.
12125         (nto_native_ops): Now an nto_procfs_target_native.
12126         (init_procfs_targets): Adjust to C++ification.
12127         (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
12128         (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
12129         Refactor as methods of nto_procfs_target.
12130
12131         * go32-nat.c (go32_nat_target): New class.
12132         (the_go32_nat_target): New.
12133         (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
12134         (go32_store_registers, go32_xfer_partial, go32_files_info)
12135         (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
12136         (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
12137         (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
12138         (go32_pid_to_str): Refactor as methods of go32_nat_target.
12139         (go32_target): Delete.
12140         (_initialize_go32_nat): Adjust to C++ification.
12141
12142         * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
12143         (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
12144         (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
12145         (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
12146         gnu_nat_target.
12147         (gnu_target): Delete.
12148         * gnu-nat.h (gnu_target): Delete.
12149         (gnu_nat_target): New class.
12150         * i386-gnu-nat.c (gnu_base_target): New.
12151         (i386_gnu_nat_target): New class.
12152         (the_i386_gnu_nat_target): New.
12153         (_initialize_i386gnu_nat): Adjust to C++ification.
12154
12155 2018-05-02  Pedro Alves  <palves@redhat.com>
12156
12157         * bfd-target.c (target_bfd_xclose): Rename to ...
12158         (target_bfd_close): ... this.
12159         (target_bfd_reopen): Adjust.
12160         * target.c (target_close): Remove references to to_xclose.
12161         * target.h (target_ops::to_xclose): Delete.
12162         (target_ops::to_close): Update comments.
12163
12164 2018-05-02  Pedro Alves  <palves@redhat.com>
12165
12166         * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
12167         "linux-nat.h".
12168         * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
12169         * inf-ptrace.c (inf_ptrace_register_u_offset)
12170         (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
12171         (inf_ptrace_store_register, inf_ptrace_store_registers)
12172         (inf_ptrace_trad_target): Move to ...
12173         * linux-nat-trad.c: ... this new file.
12174         * linux-nat-trad.h: New file.
12175         * linux-nat.c (linux_target_install_ops): Make extern.
12176         (linux_trad_target): Delete.
12177         * linux-nat.h (linux_trad_target): Delete declaration.
12178         (linux_target_install_ops): Declare.
12179         * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
12180         "linux-nat.h".
12181
12182 2018-05-02  Pedro Alves  <palves@redhat.com>
12183
12184         * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
12185         procfs_target/add_target here.
12186         * procfs.c (procfs_target): Make static.
12187         (_initialize_procfs): Call add_target here.
12188         * procfs.h (struct target_ops): Remove forward declaration.
12189         (procfs_target): Remove declaration.
12190         * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
12191
12192 2018-05-02  Pedro Alves  <palves@redhat.com>
12193
12194         * procfs.c (procfs_stopped_by_watchpoint)
12195         (procfs_insert_watchpoint, procfs_remove_watchpoint)
12196         (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
12197         Forward declare.
12198         (procfs_use_watchpoints): Delete, move contents...
12199         (procfs_target): ... here.
12200         * procfs.h (procfs_use_watchpoints): Delete declaration.
12201         * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
12202         procfs_use_watchpoints.
12203         * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
12204         procfs_use_watchpoints.
12205
12206 2018-05-02  Tom Tromey  <tom@tromey.com>
12207
12208         PR python/20084:
12209         * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
12210         and var_zuinteger_unlimited.
12211         * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
12212         and PARAM_ZUINTEGER_UNLIMITED.
12213         (set_parameter_value): Handle var_zuinteger and
12214         var_zuinteger_unlimited.
12215         (add_setshow_generic): Likewise.
12216         (parmpy_init): Likewise.
12217
12218 2018-04-28  Dan Robertson  <danlrobertson89@gmail.com>
12219
12220         PR rust/23124
12221         * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
12222         pointer is not null before dereferencing it.
12223
12224 2018-04-30  Tom Tromey  <tom@tromey.com>
12225
12226         * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
12227         is_mi_like_p.
12228
12229 2018-04-30  Tom Tromey  <tom@tromey.com>
12230
12231         * breakpoint.c (mention): Remove use of is_mi_like_p.
12232         (print_mention_ranged_breakpoint): Likewise.
12233         * break-catch-throw.c (print_it_exception_catchpoint): Remove use
12234         of is_mi_like_p.
12235
12236 2018-04-30  Tom Tromey  <tom@tromey.com>
12237
12238         * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
12239
12240 2018-04-30  Tom Tromey  <tom@tromey.com>
12241
12242         * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
12243         (info_spu_event_command): Remove some uses of is_mi_like_p.
12244
12245 2018-04-30  Tom Tromey  <tom@tromey.com>
12246
12247         * python/py-framefilter.c (py_print_single_arg)
12248         (enumerate_locals, py_print_args, py_print_frame): Remove some
12249         uses of is_mi_like_p.
12250
12251 2018-04-30  Tom Tromey  <tom@tromey.com>
12252
12253         * ui-out.c: Update.
12254         * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
12255         * ui-out.h (ui_out::is_mi_like_p): Now const.
12256         (ui_out::do_is_mi_like_p): Now const.
12257         * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
12258
12259 2018-04-30  Tom Tromey  <tom@tromey.com>
12260
12261         * varobj.c (varobj_set_visualizer): Use new_reference.
12262         * python/python.c (gdbpy_decode_line): Use new_reference.
12263         * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
12264         new_reference.
12265
12266 2018-04-30  Tom Tromey  <tom@tromey.com>
12267
12268         * varobj.c (install_new_value): Use new_reference.
12269         * value.h (value_incref): Return void.  Swap intro comment with
12270         value_decref.
12271         * value.c (set_value_parent): Use new_reference.
12272         (value_incref): Return void.  Update intro comment.
12273         (release_value): Use new_reference.
12274         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
12275
12276 2018-04-30  Tom Tromey  <tom@tromey.com>
12277
12278         * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
12279         * gdb_bfd.h (new_bfd_ref): Remove.
12280         (gdb_bfd_open): Update comment.
12281         * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
12282         (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
12283         (gdb_bfd_fdopenr): Use new_reference.
12284         * exec.c (exec_file_attach): Use new_reference.
12285
12286 2018-04-30  Tom Tromey  <tom@tromey.com>
12287
12288         * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
12289         method.
12290
12291 2018-04-30  Tom Tromey  <tom@tromey.com>
12292
12293         * jit.c (jit_read_code_entry): Use type_align.
12294         * i386-tdep.c (i386_gdbarch_init): Don't call
12295         set_gdbarch_long_long_align_bit.
12296         * gdbarch.sh: Remove long_long_align_bit.
12297         * gdbarch.c, gdbarch.h: Rebuild.
12298         * arc-tdep.c (arc_type_align): New function.
12299         (arc_gdbarch_init): Use arc_type_align.  Don't call
12300         set_gdbarch_long_long_align_bit.
12301
12302 2018-04-30  Tom Tromey  <tom@tromey.com>
12303
12304         * rust-lang.c (rust_type_alignment): Remove.
12305         (rust_composite_type): Use type_align.
12306
12307 2018-04-30  Tom Tromey  <tom@tromey.com>
12308
12309         * NEWS: Mention Type.align.
12310         * python/py-type.c (typy_get_alignof): New function.
12311         (type_object_getset): Add "alignof".
12312
12313 2018-04-30  Tom Tromey  <tom@tromey.com>
12314
12315         PR exp/17095:
12316         * NEWS: Update.
12317         * std-operator.def (UNOP_ALIGNOF): New operator.
12318         * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
12319         New.
12320         * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
12321         * c-lang.c (c_op_print_tab): Add alignof.
12322         * c-exp.y (ALIGNOF): New token.
12323         (exp): Add "ALIGNOF" production.
12324         (ident_tokens): Add _Alignof and alignof.
12325
12326 2018-04-30  Tom Tromey  <tom@tromey.com>
12327
12328         * i386-tdep.c (i386_type_align): New function.
12329         (i386_gdbarch_init): Update.
12330         * gdbarch.sh (type_align): New method.
12331         * gdbarch.c, gdbarch.h: Rebuild.
12332         * arch-utils.h (default_type_align): Declare.
12333         * arch-utils.c (default_type_align): New function.
12334         * gdbtypes.h (TYPE_ALIGN_BITS): New define.
12335         (struct type) <align_log2>: New field.
12336         <instance_flags>: Now a bitfield.
12337         (TYPE_RAW_ALIGN): New macro.
12338         (type_align, type_raw_align, set_type_align): Declare.
12339         * gdbtypes.c (type_align, type_raw_align, set_type_align): New
12340         functions.
12341         * dwarf2read.c (quirk_rust_enum): Set type alignment.
12342         (get_alignment, maybe_set_alignment): New functions.
12343         (read_structure_type, read_enumeration_type, read_array_type)
12344         (read_set_type, read_tag_pointer_type, read_tag_reference_type)
12345         (read_subrange_type, read_base_type): Set type alignment.
12346
12347 2018-04-30  Simon Marchi  <simon.marchi@ericsson.com>
12348
12349         * dwarf2read.c (read_index_from_section): Use bool.
12350
12351 2018-04-29  Fabian Groffen  <grobian@gentoo.org>
12352
12353         PR gdb/22950
12354         * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
12355         with #ifdef.
12356
12357 2018-04-29  John Reiser  <jreiser@BitWagon.com>
12358
12359         PR build/22873
12360         * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
12361         last step, and do it atomically.
12362
12363 2018-04-27  Alexandre Oliva  <aoliva@redhat.com>
12364
12365         * compile/compile-c-types.c (convert_int, convert_float):
12366         Update for C FE v1.
12367
12368 2018-04-27  Tom Tromey  <tom@tromey.com>
12369
12370         PR rust/22545:
12371         * rust-lang.c (rust_inclusive_range_type_p): New function.
12372         (rust_range): Handle inclusive ranges.
12373         (rust_compute_range): Likewise.
12374         * rust-exp.y (struct rust_op) <inclusive>: New field.
12375         (DOTDOTEQ): New constant.
12376         (range_expr): Add "..=" productions.
12377         (operator_tokens): Add "..=" token.
12378         (ast_range): Add "inclusive" parameter.
12379         (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
12380         ranges.
12381         * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
12382         bounds values.
12383         * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
12384         LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
12385         Update comments.
12386         * expprint.c (print_subexp_standard): Handle new bounds values.
12387         (dump_subexp_body_standard): Likewise.
12388
12389 2018-04-27  Tom Tromey  <tom@tromey.com>
12390
12391         * configure: Rebuild.
12392         * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
12393         * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
12394         "OVERRIDE".
12395         (class symbol_needs_eval_context): Likewise.
12396         * dwarf2read.c (mock_mapped_index::symbol_name_count)
12397         (mock_mapped_index::symbol_name_at): Use "override".  Remove
12398         "virtual".
12399         * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
12400         "override".
12401         (class dwarf_expr_executor): Use "override", not "OVERRIDE".
12402         * aarch64-tdep.c (instruction_reader::read): Use "override".
12403         (instruction_reader_test::read): Likewise.
12404         * arm-tdep.c (instruction_reader::read): Use "override".
12405         (instruction_reader_thumb::read): Likewise.
12406
12407 2018-04-26  Andrzej Kaczmarek  <andrzej.kaczmarek@codecoup.pl>
12408
12409         PR remote/9665
12410         * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
12411         instead of remote_send.
12412         (remote_send): Remove.
12413
12414 2018-04-26  Pedro Alves  <palves@redhat.com>
12415
12416         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
12417         find_function_start_sal instead of find_pc_line.
12418
12419 2018-04-26  Pedro Alves  <palves@redhat.com>
12420
12421         * breakpoint.c (set_breakpoint_location_function): Handle
12422         mst_data_gnu_ifunc.
12423         * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
12424         * elfread.c (elf_symtab_read): Give data symbols with
12425         BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
12426         (elf_rel_plt_read): Update comment.
12427         * linespec.c (convert_linespec_to_sals): Handle
12428         mst_data_gnu_ifunc.
12429         (minsym_found): Handle mst_data_gnu_ifunc.
12430         * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
12431         (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
12432         * parse.c (find_minsym_type_and_address): Handle
12433         mst_data_gnu_ifunc.
12434         * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
12435         * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
12436         * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
12437         comment.
12438         <mst_data_gnu_ifunc>: New enumerator.
12439
12440 2018-04-26  Pedro Alves  <palves@redhat.com>
12441
12442         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
12443         (lookup_minimal_symbol_by_pc_section): ... this.  Replace
12444         'want_trampoline' parameter by a lookup_msym_prefer parameter.
12445         Handle it.
12446         (lookup_minimal_symbol_by_pc_section): Delete old implementation.
12447         (lookup_minimal_symbol_by_pc): Adjust.
12448         (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
12449         (lookup_solib_trampoline_symbol_by_pc): Adjust.
12450         * minsyms.h (lookup_msym_prefer): New enum.
12451         (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
12452         parameter by a lookup_msym_prefer parameter.
12453
12454 2018-04-26  Pedro Alves  <palves@redhat.com>
12455
12456         * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
12457         ends in "@plt" instead of looking at the symbol's section.
12458
12459 2018-04-26  Pedro Alves  <palves@redhat.com>
12460
12461         * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete.  Remove
12462         all references.
12463         (find_pc_partial_function_gnu_ifunc): Rename to ...
12464         (find_pc_partial_function): ... this, and remove references to
12465         'is_gnu_ifunc_p'.
12466         (find_pc_partial_function): Delete old implementation.
12467         * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
12468
12469 2018-04-26  Pedro Alves  <palves@redhat.com>
12470
12471         * linespec.c (struct bound_minimal_symbol_search_key): New.
12472         (convert_linespec_to_sals): Sort minimal symbols earlier.  Don't
12473         skip first line if we found a GNU ifunc minimal symbol by name.
12474         (compare_msymbols): Change parameters to work with a destructured
12475         lhs minsym.
12476         (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
12477         functions.
12478
12479 2018-04-26  Pedro Alves  <palves@redhat.com>
12480
12481         * breakpoint.c (set_breakpoint_location_function): Don't resolve
12482         ifunc targets here.  Instead, if we have an ifunc minsym, use its
12483         address/name.
12484         (add_location_to_breakpoint): Store the minsym and the objfile in
12485         the breakpoint location.
12486         * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
12487         * linespec.c (minsym_found): Resolve GNU ifunc targets here.
12488         Record the minsym in the sal.
12489         * symtab.h (symtab_and_line) <msymbol>: New field.
12490
12491 2018-04-26  Pedro Alves  <palves@redhat.com>
12492
12493         * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
12494         unless we actually resolved the ifunc.
12495
12496 2018-04-26  Pedro Alves  <palves@redhat.com>
12497
12498         * c-exp.y (variable production): Prefer ifunc minsyms over
12499         regular function symbols.
12500         * symtab.c (find_gnu_ifunc): New function.
12501         * minsyms.h (lookup_msym_prefer): New enum.
12502         (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
12503         parameter by a lookup_msym_prefer parameter.
12504         * symtab.h (find_gnu_ifunc): New declaration.
12505
12506 2018-04-26  Pedro Alves  <palves@redhat.com>
12507
12508         * blockframe.c (find_gnu_ifunc_target_type): New function.
12509         (find_function_type): New.
12510         * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
12511         return a value with a memory address.
12512         (eval_call): For calls to GNU ifunc functions, try to find the
12513         type of the target function from the type that the resolver
12514         returns.
12515         * gdbtypes.c (objfile_type): Don't install a return type for ifunc
12516         symbols.
12517         * infcall.c (find_function_return_type): Delete.
12518         (find_function_addr): Add 'function_type' parameter.  For calls to
12519         GNU ifunc functions, try to find the type of the target function
12520         from the type that the resolver returns, and return it via
12521         FUNCTION_TYPE.
12522         (call_function_by_hand_dummy): Adjust to use the function type
12523         returned by find_function_addr.
12524         (find_function_addr): Add 'function_type' parameter and move
12525         description here.
12526         * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
12527         declarations.
12528
12529 2018-04-26  Pedro Alves  <palves@redhat.com>
12530
12531         * c-exp.y (variable production): Skip finding an alias for ifunc
12532         symbols.
12533
12534 2018-04-26  Pedro Alves  <palves@redhat.com>
12535
12536         * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
12537
12538 2018-04-25  Pedro Alves  <palves@redhat.com>
12539
12540         * infcmd.c (kill_command): Print the pid as string, not the whole
12541         thread's ptid.  Add comment.  s/has been killed/killed/ in output
12542         message.
12543         * remote.c (remote_detach_1): Print the pid as string, not the
12544         whole thread's ptid.
12545
12546 2018-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12547             Sergio Durigan Junior  <sergiodj@redhat.com>
12548             Pedro Alves  <palves@redhat.com>
12549
12550         * infcmd.c (kill_command): Print message when inferior has
12551         been killed.
12552         * inferior.c (print_inferior_events): Remove 'static'.  Set as
12553         '1'.
12554         (add_inferior): Improve message printed when
12555         'print_inferior_events' is on.
12556         (exit_inferior): Remove message printed when
12557         'print_inferior_events' is on.
12558         (detach_inferior): Improve message printed when
12559         'print_inferior_events' is on.
12560         (initialize_inferiors): Use 'add_inferior_silent' to set
12561         'current_inferior_'.
12562         * inferior.h (print_inferior_events): Declare here as
12563         'extern'.
12564         * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
12565         '[Detaching...]' messages when 'print_inferior_events' is on.
12566         Use 'add_thread_silent' instead of 'add_thread'.  Add '[' and ']'
12567         as prefix/suffix for messages.  Remove periods.  Fix erroneous
12568         'Detaching after fork from child...', replace it by '... from
12569         parent...'.
12570         (handle_vfork_child_exec_or_exit): Add '[' and ']' as
12571         prefix/suffix when printing 'Detaching...' messages.  Print
12572         them when 'print_inferior_events' is on.
12573         * remote.c (remote_detach_1): Print message when detaching
12574         from inferior and '!is_fork_parent'.
12575
12576 2018-04-24  Tom Tromey  <tom@tromey.com>
12577
12578         * cli-out.h: Reindent.
12579
12580 2018-04-24  Tom Tromey  <tom@tromey.com>
12581
12582         * cli-out.c (cli_ui_out::out_field_fmt): Remove.
12583         (cli_ui_out::do_field_string): Use fputs_filtered.
12584         * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
12585
12586 2018-04-23  Tom Tromey  <tom@tromey.com>
12587
12588         * guile/scm-frame.c (gdbscm_frame_read_var): Use
12589         gdb::unique_xmalloc_ptr.
12590
12591 2018-04-23  Tom Tromey  <tom@tromey.com>
12592
12593         * configure: Rebuild.
12594
12595 2018-04-22  Rajendra SY  <rajendra.sy@gmail.com>
12596
12597         PR gdb/23095
12598         * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
12599         prepare_for_testing.  Set normal_bp to r_debug_state if target
12600         is bsd.
12601
12602 2018-04-21  Pedro Alves  <palves@redhat.com>
12603             Rajendra SY  <rajendra.sy@gmail.com>
12604
12605         * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
12606         * remote.c (extended_remote_attach): In all-stop mode, mark the
12607         thread as executing.
12608
12609 2018-04-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
12610
12611         * thread.c (thread_apply_all_command): Fix comment.
12612         (thread_command): Fix comment.
12613
12614 2018-04-10  Alan Hayward  <alan.hayward@arm.com>
12615
12616         * common/tdesc.h (tdesc_create_feature): Remove xml filename
12617         parameter.
12618         * features/aarch64-core.c (create_feature_aarch64_core):
12619         Regenerate.
12620         * features/aarch64-fpu.c (create_feature_aarch64_fpu):
12621         Likewise.
12622         * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
12623         Likewise.
12624         * features/i386/32bit-avx512.c
12625         (create_feature_i386_32bit_avx512): Likewise.
12626         * features/i386/32bit-core.c (create_feature_i386_32bit_core):
12627         Likewise.
12628         * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
12629         Likewise.
12630         * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
12631         Likewise.
12632         * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
12633         Likewise.
12634         * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
12635         Likewise.
12636         * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
12637         Likewise.
12638         * features/i386/64bit-avx512.c
12639         (create_feature_i386_64bit_avx512): Likewise.
12640         * features/i386/64bit-core.c (create_feature_i386_64bit_core):
12641         Likewise.
12642         * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
12643         Likewise.
12644         * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
12645         Likewise.
12646         * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
12647         Likewise.
12648         * features/i386/64bit-segments.c
12649         (create_feature_i386_64bit_segments): Likewise.
12650         * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
12651         Likewise.
12652         * features/i386/x32-core.c
12653         (create_feature_i386_x32_core): Likewise.
12654         * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
12655         * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
12656         * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
12657         * target-descriptions.c: In generated code, don't pass xml
12658         filename.
12659
12660 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
12661
12662         * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
12663         (print_xml_feature::visit_post): Likewise.
12664         (print_xml_feature::visit): Likewise.
12665         * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
12666         (print_xml_feature): Add new class.
12667         * regformats/regdat.sh: Null xmltarget on feature targets.
12668         * target-descriptions.c (struct target_desc): Add xmltarget.
12669         (maintenance_check_tdesc_xml_convert): Add unittest function.
12670         (tdesc_get_features_xml): Add function to get xml.
12671         (maintenance_check_xml_descriptions): Test xml generation.
12672         * xml-tdesc.c (string_read_description_xml): Add function.
12673         * xml-tdesc.h (string_read_description_xml): Add declaration.
12674
12675 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
12676
12677         * features/Makefile: Add feature marker to targets with new style
12678         target descriptions.
12679         * regformats/aarch64.dat: Regenerate.
12680         * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
12681         * regformats/i386/amd64-avx-linux.dat: Likewise.
12682         * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
12683         * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
12684         * regformats/i386/amd64-linux.dat: Likewise.
12685         * regformats/i386/amd64-mpx-linux.dat: Likewise.
12686         * regformats/i386/amd64.dat: Likewise.
12687         * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
12688         * regformats/i386/i386-avx-linux.dat: Likewise.
12689         * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
12690         * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
12691         * regformats/i386/i386-linux.dat: Likewise.
12692         * regformats/i386/i386-mmx-linux.dat: Likewise.
12693         * regformats/i386/i386-mpx-linux.dat: Likewise.
12694         * regformats/i386/i386.dat: Likewise.
12695         * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
12696         * regformats/i386/x32-avx-linux.dat: Likewise.
12697         * regformats/i386/x32-linux.dat: Likewise.
12698         * regformats/tic6x-c62x-linux.dat: Likewise.
12699         * regformats/tic6x-c64x-linux.dat: Likewise.
12700         * regformats/tic6x-c64xp-linux.dat: Likewise.
12701         * regformats/regdat.sh: Parse feature marker.
12702
12703 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
12704
12705         * common/tdesc.h (tdesc_architecture_name): Add new declaration.
12706         (tdesc_osabi_name): Likewise.
12707         * target-descriptions.c (tdesc_architecture_name): Add new
12708         function.
12709         (tdesc_osabi_name): Likewise.
12710
12711 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
12712
12713         * common/tdesc.c (tdesc_predefined_type): Move to here.
12714         (tdesc_named_type): Likewise.
12715         (tdesc_create_vector): Likewise.
12716         (tdesc_create_struct): Likewise.
12717         (tdesc_set_struct_size): Likewise.
12718         (tdesc_create_union): Likewise.
12719         (tdesc_create_flags): Likewise.
12720         (tdesc_create_enum): Likewise.
12721         (tdesc_add_field): Likewise.
12722         (tdesc_add_typed_bitfield): Likewise.
12723         (tdesc_add_bitfield): Likewise.
12724         (tdesc_add_flag): Likewise.
12725         (tdesc_add_enum_value): Likewise.
12726         * common/tdesc.h (struct tdesc_type_builtin): Likewise.
12727         (struct tdesc_type_vector): Likewise.
12728         (struct tdesc_type_field): Likewise.
12729         (struct tdesc_type_with_fields): Likewise.
12730         (tdesc_create_enum): Add declaration.
12731         (tdesc_add_typed_bitfield): Likewise.
12732         (tdesc_add_enum_value): Likewise.
12733         * target-descriptions.c (tdesc_type_field): Move from here.
12734         (tdesc_type_builtin): Likewise.
12735         (tdesc_type_vector): Likewise.
12736         (tdesc_type_with_fields): Likewise.
12737         (tdesc_predefined_types): Likewise.
12738         (tdesc_named_type): Likewise.
12739         (tdesc_create_vector): Likewise.
12740         (tdesc_create_struct): Likewise.
12741         (tdesc_set_struct_size): Likewise.
12742         (tdesc_create_union): Likewise.
12743         (tdesc_create_flags): Likewise.
12744         (tdesc_create_enum): Likewise.
12745         (tdesc_add_field): Likewise.
12746         (tdesc_add_typed_bitfield): Likewise.
12747         (tdesc_add_bitfield): Likewise.
12748         (tdesc_add_flag): Likewise.
12749         (tdesc_add_enum_value): Likewise.
12750         * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
12751         (tdesc_add_typed_bitfield): Likewise.
12752         (tdesc_add_enum_value): Likewise.
12753
12754 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
12755
12756         * common/tdesc.c (tdesc_feature::accept): Move to here.
12757         (tdesc_feature::operator==): Likewise.
12758         (tdesc_create_reg): Likewise.
12759         * common/tdesc.h (tdesc_type_kind): Likewise.
12760         (struct tdesc_type): Likewise.
12761         (struct tdesc_feature): Likewise.
12762         * regformats/regdat.sh: Create a feature.
12763         * target-descriptions.c (tdesc_type_kind): Move from here.
12764         (tdesc_type): Likewise.
12765         (tdesc_type_up): Likewise.
12766         (tdesc_feature): Likewise.
12767         (tdesc_create_reg): Likewise.
12768
12769 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
12770
12771         * Makefile.in: Add arch/tdesc.c
12772         * common/tdesc.c: New file.
12773         * common/tdesc.h (tdesc_element_visitor): Move to here.
12774         (tdesc_element): Likewise.
12775         (tdesc_reg): Likewise.
12776         (tdesc_reg_up): Likewise.
12777         * regformats/regdef.h (reg): Add offset to constructors.
12778         * target-descriptions.c (tdesc_element_visitor): Move from here.
12779         (tdesc_element): Likewise.
12780         (tdesc_reg): Likewise.
12781         (tdesc_reg_up): Likewise.
12782
12783 2018-04-17  Tom Tromey  <tom@tromey.com>
12784
12785         * dwarf2read.c (quirk_rust_enum): Conditionally drop the
12786         discriminant field.
12787
12788 2018-04-17  Tom Tromey  <tom@tromey.com>
12789
12790         * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
12791
12792 2018-04-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12793
12794         * symtab.c (print_symbol_info): Skip printing filename and line
12795         number when `last' is NULL.
12796         (symtab_symbol_info): Use empty string instead of NULL for first
12797         invocation of print_symbol_info.
12798         (rbreak_command): Pass NULL to `last' parameter of
12799         print_symbol_info.
12800
12801 2018-04-16  Simon Marchi  <simon.marchi@ericsson.com>
12802
12803         * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
12804         instead of nullptr.
12805
12806 2018-04-16  Pedro Alves  <palves@redhat.com>
12807
12808         * MAINTAINERS (sh): Remove.
12809         * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
12810         (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
12811         (ALLDEPFILES): Remove sh64-tdep.c.
12812         * NEWS: Mentions that support for SH-5/SH64 is removed.
12813         * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
12814         (sh*-*-openbsd*): Ditto.
12815         (sh64-*-elf*): Remove.
12816         (sh*): Remove.
12817         * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
12818         * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
12819         * sh-tdep.c: No longer include "sh64-tdep.h".
12820         (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
12821         * sh64-tdep.c, sh64-tdep.h: Remove files.
12822
12823 2018-04-16  Pedro Alves  <palves@redhat.com>
12824
12825         * MAINTAINERS: Remove m88k.
12826         * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
12827         (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
12828         (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
12829         * NEWS: Mention that support for m88k was removed.
12830         * configure.host (m88*-*-*): Remove support.
12831         * configure.nat (m88k-*-*): Remove support.
12832         * configure.tgt (m88*-*-openbsd*): Remove.
12833         * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
12834
12835 2018-04-15  Simon Marchi  <simon.marchi@polymtl.ca>
12836
12837         * configure.tgt (x86_tobjs): New variable.
12838         (amd64_tobjs, i386_tobjs): Use it.
12839
12840 2018-04-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12841
12842         * symtab.c (print_symbol_info): Precede the symbol definition by
12843         the line number when available.
12844         * NEWS: Advertise this enhancement.
12845
12846 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
12847
12848         * NEWS (New options): announce set/show record btrace cpu.
12849         * btrace.c: Include record-btrace.h.
12850         (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
12851         the vendor is unknown.
12852         (btrace_compute_ftrace_1): Add cpu parameter.  Update callers.
12853         Maybe overwrite the btrace configuration's cpu.
12854         (btrace_compute_ftrace): Add cpu parameter.  Update callers.
12855         (btrace_fetch): Add cpu parameter.  Update callers.
12856         (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
12857         Maybe overwrite the btrace configuration's cpu.  Skip enabling
12858         errata workarounds if the vendor is unknown.
12859         * python/py-record-btrace.c: Include record-btrace.h.
12860         (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
12861         (recpy_bt_function_call_history): Call record_btrace_get_cpu.
12862         * record-btrace.c (record_btrace_cpu_state_kind): New.
12863         (record_btrace_cpu): New.
12864         (set_record_btrace_cpu_cmdlist): New.
12865         (record_btrace_get_cpu): New.
12866         (require_btrace_thread, record_btrace_info)
12867         (record_btrace_resume_thread): Call record_btrace_get_cpu.
12868         (cmd_set_record_btrace_cpu_none): New.
12869         (cmd_set_record_btrace_cpu_auto): New.
12870         (cmd_set_record_btrace_cpu): New.
12871         (cmd_show_record_btrace_cpu): New.
12872         (_initialize_record_btrace): Initialize set/show record btrace cpu
12873         commands.
12874         * record-btrace.h (record_btrace_get_cpu): New.
12875
12876 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
12877
12878         * record.c (set_record_command): Fix typo in message.
12879
12880 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
12881
12882         * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
12883
12884 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
12885
12886         * infrun.c (process_event_stop_test): Call
12887         gdbarch_in_indirect_branch_thunk.
12888         * gdbarch.sh (in_indirect_branch_thunk): New.
12889         * gdbarch.c: Regenerated.
12890         * gdbarch.h: Regenerated.
12891         * x86-tdep.h: New.
12892         * x86-tdep.c: New.
12893         * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
12894         (HFILES_NO_SRCDIR): Add x86-tdep.h.
12895         (ALLDEPFILES): Add x86-tdep.c.
12896         * arch-utils.h (default_in_indirect_branch_thunk): New.
12897         * arch-utils.c (default_in_indirect_branch_thunk): New.
12898         * i386-tdep: Include x86-tdep.h.
12899         (i386_in_indirect_branch_thunk): New.
12900         (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
12901         function.
12902         * amd64-tdep: Include x86-tdep.h.
12903         (amd64_in_indirect_branch_thunk): New.
12904         (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
12905
12906 2018-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
12907
12908         PR gdb/23053
12909         * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
12910         (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
12911         (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
12912         regression.
12913
12914 2018-04-12  Tom Tromey  <tom@tromey.com>
12915
12916         * rust-lang.c (rust_print_struct_def): Remove univariant code.
12917         (rust_evaluate_subexp): Likewise.
12918
12919 2018-04-12  Pedro Alves  <palves@redhat.com>
12920
12921         * procfs.c (procfs_detach): Make forward declaration's prototype
12922         match definition's protototype.
12923         (proc_get_LDT_entry): Remove stale do_cleanups call.
12924
12925 2018-04-12  Pedro Alves  <palves@redhat.com>
12926
12927         * target.h (target_ops::to_has_exited): Delete.
12928         (target_has_exited): Delete.
12929         * target-delegates.c: Regenerate.
12930
12931 2018-04-11  Pedro Alves  <palves@redhat.com>
12932
12933         * target.c (fileio_fh_t::t): Add comment.
12934         (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
12935         (target_fileio_close): Handle a NULL target.
12936         (invalidate_fileio_fh): New.
12937         (target_close): Call it.
12938         * remote.c (remote_hostio_send_command): No longer check whether
12939         remote_desc is open.
12940
12941 2018-04-11  Pedro Alves  <palves@redhat.com>
12942
12943         * target.c (fileio_fh_t): Make it a named struct instead of a
12944         typedef.
12945         (fileio_fh_t::is_closed): New method.
12946         (DEF_VEC_O (fileio_fh_t)): Remove.
12947         (fileio_fhandles): Now a std::vector.
12948         (is_closed_fileio_fh): Delete.
12949         (acquire_fileio_fd): Adjust.  Rename parameters.
12950         (release_fileio_fd): Adjust.
12951         (fileio_fd_to_fh): Reimplement as a function instead of a macro.
12952         (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
12953         (target_fileio_close): Adjust.
12954
12955 2018-04-10  Simon Marchi  <simon.marchi@ericsson.com>
12956
12957         * auto-load.c (auto_load_safe_path_vec_update): Iterate by
12958         index.
12959
12960 2018-04-10  Pedro Alves  <palves@redhat.com>
12961
12962         * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
12963         (scoped_finish_thread_state): New class.
12964         * infcmd.c (run_command_1): Use it instead of finish_thread_state
12965         cleanup.
12966         * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
12967         (fetch_inferior_event, normal_stop): Likewise.
12968         * thread.c (finish_thread_state_cleanup): Delete.
12969
12970 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
12971             Pedro Alves  <palves@redhat.com>
12972
12973         * value.c: Include "selftest.h" and "common/array-view.h".
12974         (struct range) <operator ==>: New.
12975         (test_ranges_contain): New.
12976         (check_ranges_vector): New.
12977         (test_insert_into_bit_range_vector): New.
12978         (_initialize_values): Register selftests.
12979         * common/array-view.h (operator==, operator!=): New.
12980
12981 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
12982
12983         * common/gdb_vecs.h (unordered_remove): Add overload that takes
12984         an iterator.
12985         * inline-frame.c: Include <algorithm>.
12986         (struct inline_state): Add constructor.
12987         (inline_state_s): Remove.
12988         (DEF_VEC_O(inline_state_s)): Remove.
12989         (inline_states): Change type to std::vector.
12990         (find_inline_frame_state): Adjust to std::vector.
12991         (allocate_inline_frame_state): Remove.
12992         (clear_inline_frame_state): Adjust to std::vector.
12993         (skip_inline_frames): Adjust to std::vector.
12994
12995 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
12996
12997         * tracepoint.h (struct trace_state_variable): Add constructor.
12998         <name>: Change type to std::string.
12999         * tracepoint.c (tsv_s): Remove.
13000         (DEF_VEC_O(tsv_s)): Remove.
13001         (tvariables): Change to std::vector.
13002         (create_trace_state_variable): Adjust to std::vector.
13003         (find_trace_state_variable): Likewise.
13004         (find_trace_state_variable_by_number): Likewise.
13005         (delete_trace_state_variable): Likewise.
13006         (trace_variable_command): Adjust to std::string.
13007         (delete_trace_variable_command): Likewise.
13008         (tvariables_info_1): Adjust to std::vector.
13009         (save_trace_state_variables): Likewise.
13010         (start_tracing): Likewise.
13011         (merge_uploaded_trace_state_variables): Adjust to std::vector
13012         and std::string.
13013         * target.h (struct target_ops)
13014         <to_download_trace_state_variable>: Pass reference to
13015         trace_state_variable.
13016         * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
13017         * target-delegates.c: Re-generate.
13018         * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
13019         (mi_tsv_deleted): Likewise.
13020         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
13021         * remote.c (remote_download_trace_state_variable): Change
13022         pointer to reference and adjust.
13023         * make-target-delegates (parse_argtypes): Handle references.
13024         (write_function_header): Likewise.
13025         (munge_type): Likewise.
13026
13027 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
13028
13029         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13030         string_view-selftests.c.
13031         * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
13032         testsuite.
13033         * unittests/basic_string_view/cons/char/1.cc: Likewise.
13034         * unittests/basic_string_view/cons/char/2.cc: Likewise.
13035         * unittests/basic_string_view/cons/char/3.cc: Likewise.
13036         * unittests/basic_string_view/element_access/char/1.cc:
13037         Likewise.
13038         * unittests/basic_string_view/element_access/char/empty.cc:
13039         Likewise.
13040         * unittests/basic_string_view/element_access/char/front_back.cc:
13041         Likewise.
13042         * unittests/basic_string_view/inserters/char/2.cc: Likewise.
13043         * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
13044         Likewise.
13045         * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
13046         Likewise.
13047         * unittests/basic_string_view/modifiers/swap/char/1.cc:
13048         Likewise.
13049         * unittests/basic_string_view/operations/compare/char/1.cc:
13050         Likewise.
13051         * unittests/basic_string_view/operations/compare/char/13650.cc:
13052         Likewise.
13053         * unittests/basic_string_view/operations/copy/char/1.cc:
13054         Likewise.
13055         * unittests/basic_string_view/operations/data/char/1.cc:
13056         Likewise.
13057         * unittests/basic_string_view/operations/find/char/1.cc:
13058         Likewise.
13059         * unittests/basic_string_view/operations/find/char/2.cc:
13060         Likewise.
13061         * unittests/basic_string_view/operations/find/char/3.cc:
13062         Likewise.
13063         * unittests/basic_string_view/operations/find/char/4.cc:
13064         Likewise.
13065         * unittests/basic_string_view/operations/rfind/char/1.cc:
13066         Likewise.
13067         * unittests/basic_string_view/operations/rfind/char/2.cc:
13068         Likewise.
13069         * unittests/basic_string_view/operations/rfind/char/3.cc:
13070         Likewise.
13071         * unittests/basic_string_view/operations/substr/char/1.cc:
13072         Likewise.
13073         * unittests/basic_string_view/operators/char/2.cc: Likewise.
13074         * unittests/string_view-selftests.c: New file.
13075
13076 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
13077
13078         * unittests/basic_string_view/capacity/1.cc: New file.
13079         * unittests/basic_string_view/capacity/empty_neg.cc: New file.
13080         * unittests/basic_string_view/cons/char/1.cc: New file.
13081         * unittests/basic_string_view/cons/char/2.cc: New file.
13082         * unittests/basic_string_view/cons/char/3.cc: New file.
13083         * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
13084         * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
13085         * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
13086         * unittests/basic_string_view/element_access/char/1.cc: New file.
13087         * unittests/basic_string_view/element_access/char/2.cc: New file.
13088         * unittests/basic_string_view/element_access/char/empty.cc: New file.
13089         * unittests/basic_string_view/element_access/char/front_back.cc: New file.
13090         * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
13091         * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
13092         * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
13093         * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
13094         * unittests/basic_string_view/include.cc: New file.
13095         * unittests/basic_string_view/inserters/char/1.cc: New file.
13096         * unittests/basic_string_view/inserters/char/2.cc: New file.
13097         * unittests/basic_string_view/inserters/char/3.cc: New file.
13098         * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
13099         * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
13100         * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
13101         * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
13102         * unittests/basic_string_view/literals/types.cc: New file.
13103         * unittests/basic_string_view/literals/values.cc: New file.
13104         * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
13105         * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
13106         * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
13107         * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
13108         * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
13109         * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
13110         * unittests/basic_string_view/operations/compare/char/1.cc: New file.
13111         * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
13112         * unittests/basic_string_view/operations/compare/char/2.cc: New file.
13113         * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
13114         * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
13115         * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
13116         * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
13117         * unittests/basic_string_view/operations/copy/char/1.cc: New file.
13118         * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
13119         * unittests/basic_string_view/operations/data/char/1.cc: New file.
13120         * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
13121         * unittests/basic_string_view/operations/find/char/1.cc: New file.
13122         * unittests/basic_string_view/operations/find/char/2.cc: New file.
13123         * unittests/basic_string_view/operations/find/char/3.cc: New file.
13124         * unittests/basic_string_view/operations/find/char/4.cc: New file.
13125         * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
13126         * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
13127         * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
13128         * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
13129         * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
13130         * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
13131         * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
13132         * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
13133         * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
13134         * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
13135         * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
13136         * unittests/basic_string_view/operations/substr/char/1.cc: New file.
13137         * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
13138         * unittests/basic_string_view/operators/char/2.cc: New file.
13139         * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
13140         * unittests/basic_string_view/range_access/char/1.cc: New file.
13141         * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
13142         * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
13143         * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
13144         * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
13145         * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
13146         * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
13147         * unittests/basic_string_view/requirements/typedefs.cc: New file.
13148         * unittests/basic_string_view/typedefs.cc: New file.
13149         * unittests/basic_string_view/types/1.cc: New file.
13150
13151 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
13152
13153         * common/gdb_string_view.h: Remove libstdc++ implementation
13154         details, adjust to gdb reality.
13155         * common/gdb_string_view.tcc: Likewise.
13156         * cli/cli-script.c (struct string_view): Remove.
13157         (user_args) <m_args>: Change element type to gdb::string_view.
13158         (user_args::insert_args): Adjust.
13159
13160 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
13161
13162         * common/gdb_string_view.h: New file.
13163         * common/gdb_string_view.tcc: New file.
13164
13165 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
13166
13167         * ax_cxx_compile_stdcxx.m4: Sync with upstream.
13168         * configure: Re-generate.
13169
13170 2018-04-09  Pedro Alves  <palves@redhat.com>
13171
13172         * gdbarch.sh: Include "observable.h" instead of "observer.h".
13173         (set_target_gdbarch): Call
13174         gdb::observers::architecture_changed.notify instead of
13175         observer_notify_architecture_changed.
13176
13177 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
13178
13179         * tracepoint.c (struct current_traceframe_cleanup): Remove.
13180         (do_restore_current_traceframe_cleanup): Remove.
13181         (restore_current_traceframe_cleanup_dtor): Remove.
13182         (make_cleanup_restore_current_traceframe): Remove.
13183         (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
13184         New.
13185         * tracepoint.h (struct scoped_restore_current_traceframe): New.
13186         * infrun.c (fetch_inferior_event): Use
13187         scoped_restore_current_traceframe.
13188
13189 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
13190
13191         * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
13192         Remove.
13193         <n_allocated_type_units>: Remove.
13194         <all_type_units>: Change to std::vector.
13195         * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
13196         to std::vector change.
13197         (dwarf2_per_objfile::get_cutu): Likewise.
13198         (dwarf2_per_objfile::get_tu): Likewise.
13199         (create_signatured_type_table_from_index): Likewise.
13200         (create_signatured_type_table_from_debug_names): Likewise.
13201         (dw2_symtab_iter_next): Likewise.
13202         (dw2_print_stats): Likewise.
13203         (dw2_expand_all_symtabs): Likewise.
13204         (dw2_expand_marked_cus): Likewise.
13205         (dw2_debug_names_iterator::next): Likewise.
13206         (dwarf2_initialize_objfile): Likewise.
13207         (add_signatured_type_cu_to_table): Likewise.
13208         (create_all_type_units): Likewise.
13209         (add_type_unit): Likewise.
13210         (struct tu_abbrev_offset): Add constructor.
13211         (build_type_psymtabs_1): Adjust to std::vector change.
13212         (print_tu_stats): Likewise.
13213         * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
13214         (write_debug_names): Likewise.
13215
13216 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
13217
13218         * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
13219         Make an std::vector.
13220         <n_comp_units>: Remove.
13221         * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
13222         to std::vector change.
13223         (dwarf2_per_objfile::get_cutu): Likewise.
13224         (dwarf2_per_objfile::get_cu): Likewise.
13225         (create_cus_from_index): Likewise.
13226         (create_addrmap_from_index): Likewise.
13227         (create_addrmap_from_aranges): Likewise.
13228         (dwarf2_read_index): Likewise.
13229         (dw2_find_last_source_symtab): Likewise.
13230         (dw2_map_symtabs_matching_filename): Likewise.
13231         (dw2_symtab_iter_next): Likewise.
13232         (dw2_print_stats): Likewise.
13233         (dw2_expand_all_symtabs): Likewise.
13234         (dw2_expand_symtabs_with_fullname): Likewise.
13235         (dw2_expand_marked_cus): Likewise.
13236         (dw2_map_symbol_filenames): Likewise.
13237         (create_cus_from_debug_names): Likewise.
13238         (dwarf2_read_debug_names): Likewise.
13239         (dw2_debug_names_iterator::next): Likewise.
13240         (dwarf2_initialize_objfile): Likewise.
13241         (set_partial_user): Likewise.
13242         (dwarf2_build_psymtabs_hard): Likewise.
13243         (read_comp_units_from_section): Remove arguments, adjust to
13244         std::vector change.
13245         (create_all_comp_units): Adjust to std::vector and
13246         read_comp_units_from_section changes.
13247         (dwarf2_find_containing_comp_unit): Adjust to std::vector
13248         change.
13249         * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
13250         (psyms_seen_size): Likewise.
13251         (write_gdbindex): Likewise.
13252         (write_debug_names): Likewise.
13253
13254 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
13255
13256         * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
13257         with dwarf2_per_objfile.
13258         (create_cus_from_index): Likewise.
13259         (create_signatured_type_table_from_index): Likewise.
13260         (dwarf2_read_index): Likewise.
13261         (dwarf2_initialize_objfile): Likewise.
13262         (dwarf2_fetch_die_loc_sect_off):  Get dwarf2_per_objfile from
13263         per_cu rather than get_dwarf2_per_objfile.
13264
13265 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
13266
13267         * dwarf2read.h (struct signatured_type): Forward declare.
13268         (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
13269         New methods.
13270         * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
13271         (dw2_get_cutu): ...this.
13272         (dwarf2_per_objfile::get_cu): Rename from...
13273         (dw2_get_cu): ...this.
13274         (dwarf2_per_objfile::get_tu): New.
13275         (create_addrmap_from_index): Adjust.
13276         (create_addrmap_from_aranges): Adjust.
13277         (dw2_find_last_source_symtab): Adjust.
13278         (dw2_map_symtabs_matching_filename): Adjust.
13279         (dw2_symtab_iter_next): Adjust.
13280         (dw2_print_stats): Adjust.
13281         (dw2_expand_all_symtabs): Adjust.
13282         (dw2_expand_symtabs_with_fullname): Adjust.
13283         (dw2_expand_marked_cus): Adjust.
13284         (dw_expand_symtabs_matching_file_matcher): Adjust.
13285         (dw2_map_symbol_filenames): Adjust.
13286         (dw2_debug_names_iterator::next): Adjust.
13287         (dwarf2_initialize_objfile): Adjust.
13288         (set_partial_user): Adjust.
13289         (dwarf2_build_psymtabs_hard): Adjust.
13290
13291 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
13292
13293         * dwarf2read.c (create_signatured_type_table_from_debug_names):
13294         Remove unused variables.
13295         (dw2_map_symtabs_matching_filename): Likewise.
13296         (dwarf2_record_block_ranges): Likewise.
13297         (dwarf2_read_addr_index): Likewise.
13298         (follow_die_offset): Likewise.
13299
13300 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
13301
13302         * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
13303         to symbol_file_add_main.
13304
13305 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
13306
13307         PR mi/22299
13308         * mi/mi-console.c (do_fputc_async_safe): New.
13309         (mi_console_file::write_async_safe): New.
13310         (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
13311         * mi/mi-console.h (class mi_console_file) <write_async_safe>:
13312         New.
13313         * ui-file.c (ui_file::putstrn): Adjust call to
13314         fputstrn_unfiltered.
13315         * utils.c (printchar): Replace do_fputs and do_fprintf
13316         parameters by do_fputc.
13317         (fputstr_filtered): Adjust call to printchar.
13318         (fputstr_unfiltered): Likewise.
13319         (fputstrn_filtered): Likewise.
13320         (fputstrn_unfiltered): Add do_fputc parameter, pass to
13321         printchar.
13322         * utils.h (do_fputc_ftype): New typedef.
13323         (fputstrn_unfiltered): Add do_fputc parameter.
13324
13325 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
13326
13327         * regformats/i386/i386-avx.dat: Remove.
13328
13329 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
13330
13331         PR gdb/22979
13332         * amd64-tdep.c (amd64_none_init_abi): New function.
13333         (amd64_x32_none_init_abi): New function.
13334         (_initialize_amd64_tdep): Register handlers for x86-64 and
13335         x64_32 with GDB_OSABI_NONE.
13336         * osabi.c (gdbarch_init_osabi): Allow running handlers for the
13337         GDB_OSABI_NONE osabi.
13338
13339 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
13340
13341         PR gdb/22980
13342         * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
13343         GDB_OSABI_NONE.
13344         * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
13345         * osabi.c (gdb_osabi_names): Add "unknown" entry.
13346
13347 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
13348
13349         * common/byte-vector.h (char_vector): New type.
13350         * target.h (target_read_alloc): Return
13351         gdb::optional<byte_vector>.
13352         (target_read_stralloc): Return gdb::optional<char_vector>.
13353         (target_get_osdata): Return gdb::optional<char_vector>.
13354         * target.c (target_read_alloc_1): Templatize.  Replacement
13355         manual memory management with vector.
13356         (target_read_alloc): Change return type, adjust.
13357         (target_read_stralloc): Change return type, adjust.
13358         (target_get_osdata): Change return type, adjust.
13359         * auxv.c (struct auxv_info) <length>: Remove.
13360         <data>: Change type to gdb::optional<byte_vector>.
13361         (auxv_inferior_data_cleanup): Free auxv_info with delete.
13362         (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
13363         (target_auxv_search): Adjust.
13364         (fprint_target_auxv): Adjust.
13365         * avr-tdep.c (avr_io_reg_read_command): Adjust.
13366         * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
13367         (linux_make_corefile_notes): Adjust.
13368         * osdata.c (get_osdata): Adjust.
13369         * remote.c (remote_get_threads_with_qxfer): Adjust.
13370         (remote_memory_map): Adjust.
13371         (remote_traceframe_info): Adjust.
13372         (btrace_read_config): Adjust.
13373         (remote_read_btrace): Adjust.
13374         (remote_pid_to_exec_file): Adjust.
13375         * solib-aix.c (solib_aix_get_library_list): Adjust.
13376         * solib-dsbt.c (decode_loadmap): Don't free buf.
13377         (dsbt_get_initial_loadmaps): Adjust.
13378         * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
13379         * solib-target.c (solib_target_current_sos): Adjust.
13380         * tracepoint.c (sdata_make_value): Adjust.
13381         * xml-support.c (xinclude_start_include): Adjust.
13382         (xml_fetch_content_from_file): Adjust.
13383         * xml-support.h (xml_fetch_another): Change return type.
13384         (xml_fetch_content_from_file): Change return type.
13385         * xml-syscall.c (xml_init_syscalls_info): Adjust.
13386         * xml-tdesc.c (file_read_description_xml): Adjust.
13387         (fetch_available_features_from_target): Change return type.
13388         (target_fetch_description_xml): Adjust.
13389         (target_read_description_xml): Adjust.
13390
13391 2018-04-06  Tom Tromey  <tom@tromey.com>
13392
13393         * value.c (~value): Update.
13394         (struct value) <contents>: Now unique_xmalloc_ptr.
13395         (value_contents_bits_eq, allocate_value_contents)
13396         (value_contents_raw, value_contents_all_raw)
13397         (value_contents_for_printing, value_contents_for_printing_const)
13398         (set_value_enclosing_type): Update.
13399
13400 2018-04-06  Tom Tromey  <tom@tromey.com>
13401
13402         * value.c (range_s): Remove typedef, VEC.
13403         (struct range): Add operator<.
13404         (range_lessthan): Remove.
13405         (ranges_contain): Change type.
13406         (~value): Update.
13407         (struct value) <unavailable, optimized_out>: Now std::vector.
13408         (value_entirely_available)
13409         (value_entirely_covered_by_range_vector)
13410         (value_entirely_unavailable, value_entirely_optimized_out):
13411         Update.
13412         (insert_into_bit_range_vector): Change argument type.
13413         (find_first_range_overlap): Likewise.
13414         (struct ranges_and_idx, value_contents_bits_eq)
13415         (require_not_optimized_out, require_available): Update.
13416         (ranges_copy_adjusted): Change argument types.
13417         (value_optimized_out, value_copy, value_fetch_lazy): Update.
13418
13419 2018-04-06  Tom Tromey  <tom@tromey.com>
13420
13421         * value.c (~value): Update.
13422         (struct value) <parent>: Now a value_ref_ptr.
13423         (value_parent, set_value_parent, value_address, value_copy):
13424         Update.
13425
13426 2018-04-06  Tom Tromey  <tom@tromey.com>
13427
13428         * value.c (struct value): Add constructor, destructor, and member
13429         initializers.
13430         (allocate_value_lazy, value_decref): Update.
13431
13432 2018-04-06  Tom Tromey  <tom@tromey.com>
13433
13434         * value.c (struct value) <released, next>: Remove.
13435         (all_values): Now a std::vector.
13436         (allocate_value_lazy): Update.
13437         (value_next): Remove.
13438         (value_mark, value_free_to_mark, release_value)
13439         (value_release_to_mark): Update.
13440
13441 2018-04-06  Tom Tromey  <tom@tromey.com>
13442
13443         * value.h (fetch_subexp_value, value_release_to_mark): Update.
13444         (free_value_chain): Remove.
13445         * value.c (free_value_chain): Remove.
13446         (value_release_to_mark): Return a std::vector.
13447         * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
13448         std::vector.
13449         (check_condition): Update.
13450         * eval.c (fetch_subexp_value): Change "val_chain" to a
13451         std::vector.
13452         * breakpoint.c (update_watchpoint): Update.
13453         (can_use_hardware_watchpoint): Change "vals" to a std::vector.
13454
13455 2018-04-06  Tom Tromey  <tom@tromey.com>
13456
13457         * value.h (free_all_values): Remove.
13458         * value.c (free_all_values): Remove.
13459
13460 2018-04-06  Tom Tromey  <tom@tromey.com>
13461
13462         * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
13463         (value_history_chain, value_history_count): Remove.
13464         (value_history): New global.
13465         (record_latest_value, access_value_history, show_values)
13466         (preserve_values): Update.
13467
13468 2018-04-06  Tom Tromey  <tom@tromey.com>
13469
13470         * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
13471         * varobj.c (varobj_set_display_format, varobj_set_value)
13472         (install_default_visualizer, construct_visualizer)
13473         (install_new_value, ~varobj, varobj_get_value_type)
13474         (my_value_of_variable, varobj_editable_p): Update.
13475         * c-varobj.c (c_describe_child, c_value_of_variable)
13476         (cplus_number_of_children, cplus_describe_child): Update.
13477         * ada-varobj.c (ada_number_of_children, ada_name_of_child)
13478         (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
13479         (ada_value_of_variable, ada_value_is_changeable_p): Update.
13480
13481 2018-04-06  Tom Tromey  <tom@tromey.com>
13482
13483         * printcmd.c (last_examine_address): Change type to
13484         value_ref_ptr.
13485         (do_examine, x_command): Update.
13486
13487 2018-04-06  Tom Tromey  <tom@tromey.com>
13488
13489         * value.c (release_value): Update.
13490         * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
13491         (struct bpstats) <val>: Now a value_ref_ptr.
13492         * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
13493         (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
13494         (~watchpoint, print_it_watchpoint, watch_command_1)
13495         (invalidate_bp_value_on_memory_change): Update.
13496
13497 2018-04-06  Tom Tromey  <tom@tromey.com>
13498
13499         * varobj.c (varobj_clear_saved_item)
13500         (update_dynamic_varobj_children, install_new_value, ~varobj):
13501         Update.
13502         * value.h (value_incref): Move declaration earlier.
13503         (value_decref): Rename from value_free.
13504         (struct value_ref_policy): New.
13505         (value_ref_ptr): New typedef.
13506         (struct value_deleter): Remove.
13507         (gdb_value_up): Remove typedef.
13508         (release_value): Change return type.
13509         (release_value_or_incref): Remove.
13510         * value.c (set_value_parent): Update.
13511         (value_incref): Change return type.
13512         (value_decref): Rename from value_free.
13513         (value_free_to_mark, free_all_values, free_value_chain): Update.
13514         (release_value): Return value_ref_ptr.
13515         (release_value_or_incref): Remove.
13516         (record_latest_value, set_internalvar, clear_internalvar):
13517         Update.
13518         * stack.c (info_frame_command): Don't call value_free.
13519         * python/py-value.c (valpy_dealloc, valpy_new)
13520         (value_to_value_object): Update.
13521         * printcmd.c (do_examine): Update.
13522         * opencl-lang.c (lval_func_free_closure): Update.
13523         * mi/mi-main.c (register_changed_p): Don't call value_free.
13524         * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
13525         * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
13526         * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
13527         value_free.
13528         * guile/scm-value.c (vlscm_free_value_smob)
13529         (vlscm_scm_from_value): Update.
13530         * frame.c (frame_register_unwind, frame_unwind_register_signed)
13531         (frame_unwind_register_unsigned, get_frame_register_bytes)
13532         (put_frame_register_bytes): Don't call value_free.
13533         * findvar.c (address_from_register): Don't call value_free.
13534         * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
13535         * dwarf2loc.c (entry_data_value_free_closure)
13536         (value_of_dwarf_reg_entry, free_pieced_value_closure)
13537         (dwarf2_evaluate_loc_desc_full): Update.
13538         * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
13539         (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
13540         (~watchpoint, watch_command_1)
13541         (invalidate_bp_value_on_memory_change): Update.
13542         * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
13543
13544 2018-04-06  Simon Marchi  <simon.marchi@polymtl.ca>
13545
13546         PR gdb/23022
13547         * warning.m4: Add -Wno-error=deprecated-register.
13548         * configure: Re-generate.
13549
13550 2018-04-05  Tom Tromey  <tom@tromey.com>
13551
13552         * linespec.h: Remove include of "vec.h".
13553
13554 2018-04-05  Tom Tromey  <tom@tromey.com>
13555
13556         * linespec.c (typep): Remove typedef.
13557         (find_methods, find_superclass_methods): Take a std::vector.
13558         (find_method): Use std::vector.
13559
13560 2018-04-05  Tom Tromey  <tom@tromey.com>
13561
13562         * utils.c (compare_strings): Remove.
13563         * utils.h (compare_strings): Remove.
13564         * objc-lang.h (find_imps): Update.
13565         * objc-lang.c (find_methods): Take a std::vector.
13566         (uniquify_strings, find_imps): Likewise.
13567         * linespec.c (find_methods): Take a std::vector.
13568         (decode_objc): Use std::vector.
13569         (add_all_symbol_names_from_pspace, find_superclass_methods): Take
13570         a std::vector.
13571         (find_method, find_function_symbols): Use std::vector.
13572
13573 2018-04-05  Tom Tromey  <tom@tromey.com>
13574
13575         * completer.c (completion_tracker::completion_tracker): Remove
13576         cast.
13577         (completion_tracker::discard_completions): Likewise.
13578         * breakpoint.c (ambiguous_names_p): Remove cast.
13579         * ada-lang.c (_initialize_ada_language): Remove cast.
13580         * utils.h (streq): Update.
13581         (streq_hash): Add new declaration.
13582         * utils.c (streq): Return bool.
13583         (streq_hash): New function.
13584
13585 2018-04-05  Tom Tromey  <tom@tromey.com>
13586
13587         * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
13588         Remove a string copy.
13589
13590 2018-04-05  Tom Tromey  <tom@tromey.com>
13591
13592         * linespec.c (filter_results): Use std::vector.
13593         (decode_line_2, decode_line_full): Update.
13594
13595 2018-04-05  Tom Tromey  <tom@tromey.com>
13596
13597         * linespec.c (canonical_to_fullform): Return std::string.
13598         (filter_results): Update.
13599         (struct decode_line_2_item): Add constructor.
13600         <fullform, displayform>: Now std::string.
13601         (decode_line_2_compare_items): Now a std::sort comparator.
13602         (decode_line_2): Update.
13603
13604 2018-04-05  Tom Tromey  <tom@tromey.com>
13605
13606         * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
13607         (unexpected_linespec_error): Update.
13608         (linespec_parse_basic, parse_linespec): Update.
13609
13610 2018-04-05  Tom Tromey  <tom@tromey.com>
13611
13612         * linespec.c (linespec_parse_basic): Reindent.
13613
13614 2018-04-05  Tom Tromey  <tom@tromey.com>
13615
13616         * minsyms.h (iterate_over_minimal_symbols): Update.
13617         * minsyms.c (iterate_over_minimal_symbols): Take a
13618         gdb::function_view.
13619         * linespec.c (struct collect_minsyms): Remove.
13620         (compare_msyms): Now a std::sort comparator.
13621         (add_minsym): Add parameters.
13622         (search_minsyms_for_name): Update.  Use std::vector.
13623
13624 2018-04-03  Tom Tromey  <tom@tromey.com>
13625
13626         * mipsread.c (read_alphacoff_dynamic_symtab): Use
13627         gdb::byte_vector.
13628
13629 2018-04-02  Weimin Pan  <weimin.pan@oracle.com>
13630
13631         * MAINTAINERS (Write After Approval): Add Weimin Pan.
13632
13633 2018-04-02  Weimin Pan  <weimin.pan@oracle.com>
13634
13635         PR gdb/16959
13636         * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when 
13637         printing static type.
13638
13639 2018-04-01  Tom Tromey  <tom@tromey.com>
13640
13641         * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
13642         (rs6000_xfer_shared_libraries): Update.
13643
13644 2018-04-01  Simon Marchi  <simon.marchi@polymtl.ca>
13645
13646         * common/gdb_vecs.h (char_ptr): Remove.
13647         * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
13648
13649 2018-03-30  Simon Marchi  <simon.marchi@polymtl.ca>
13650
13651         * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
13652         with std::vector.
13653         * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
13654
13655 2018-03-30  Simon Marchi  <simon.marchi@polymtl.ca>
13656
13657         * tracepoint.h (struct uploaded_tp): Initialize fields.
13658         <actions, step_actions, cmd_strings>: Change type to
13659         std::vector<char *>.
13660         * tracepoint.c (get_uploaded_tp): Allocate with new.
13661         (free_uploaded_tps): Free with delete.
13662         (parse_tracepoint_definition): Adjust to std::vector change.
13663         * breakpoint.c (read_uploaded_action): Likewise.
13664         (create_tracepoint_from_upload): Likewise.
13665         * ctf.c (ctf_write_uploaded_tp): Likewise.
13666         (SET_ARRAY_FIELD): Likewise.
13667         * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
13668
13669 2018-03-30  Tom Tromey  <tom@tromey.com>
13670
13671         * solib-svr4.c (lm_info_read): Use gdb::byte_vector.  Return
13672         std::unique_ptr.
13673         (svr4_keep_data_in_core): Update.
13674         (svr4_read_so_list): Update.
13675
13676 2018-03-30  Tom Tromey  <tom@tromey.com>
13677
13678         * windows-nat.c (handle_output_debug_string, handle_exception):
13679         Update.
13680         * target.h (target_read_string): Update.
13681         * target.c (target_read_string): Change "string" to
13682         unique_xmalloc_ptr.
13683         * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
13684         Update.
13685         * solib-frv.c (frv_current_sos): Update.
13686         * solib-dsbt.c (dsbt_current_sos): Update.
13687         * solib-darwin.c (darwin_current_sos): Update.
13688         * linux-thread-db.c (inferior_has_bug): Update.
13689         * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
13690         Update.  Remove alloca.
13691         * ada-lang.c (ada_main_name): Update.
13692
13693 2018-03-30  Tom Tromey  <tom@tromey.com>
13694
13695         * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
13696         (struct dwo_file_deleter): New.
13697         (dwo_file_up): New typedef.
13698         (open_and_init_dwo_file): Use dwo_file_up.
13699         (free_dwo_file_cleanup): Remove.
13700
13701 2018-03-30  Tom Tromey  <tom@tromey.com>
13702
13703         * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
13704         (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
13705
13706 2018-03-30  Tom Tromey  <tom@tromey.com>
13707
13708         * dwarf2read.c (class free_cached_comp_units): New class.
13709         (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
13710         (free_cached_comp_units): Remove function.
13711
13712 2018-03-30  Tom Tromey  <tom@tromey.com>
13713
13714         * utils.h (make_cleanup_unpush_target): Remove.
13715         * inf-ptrace.c (struct target_unpusher): New.
13716         (target_unpush_up) New typedef.
13717         (inf_ptrace_create_inferior, inf_ptrace_attach): Use
13718         target_unpush_up.
13719         * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
13720
13721 2018-03-27  Tom Tromey  <tom@tromey.com>
13722
13723         * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
13724
13725 2018-03-27  Pedro Alves  <palves@redhat.com>
13726             Tom Tromey  <tom@tromey.com>
13727
13728         * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
13729         destructor.  Now a class.
13730         (gdb_readline_wrapper_cleanup): Remove function.
13731         (gdb_readline_wrapper): Remove cleanups.
13732
13733 2018-03-27  Tom Tromey  <tom@tromey.com>
13734
13735         * typeprint.h (struct type_print_options) <local_typedefs,
13736         global_typedefs>: Remove "struct" keyword.
13737         (class typedef_hash_table): New class.
13738         (recursively_update_typedef_hash, add_template_parameters)
13739         (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
13740         (find_typedef_in_hash): Don't declare.
13741         * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
13742         (typedef_hash_table::recursively_update): Rename from
13743         recursively_update_typedef_hash.  Now a member.
13744         (typedef_hash_table::add_template_parameters): Rename from
13745         add_template_parameters.  Now a member.
13746         (typedef_hash_table::typedef_hash_table): Now a constructor;
13747         rename from create_typedef_hash.
13748         (typedef_hash_table::~typedef_hash_table): Now a destructor;
13749         rename from free_typedef_hash.
13750         (do_free_typedef_hash, make_cleanup_free_typedef_hash)
13751         (do_free_global_table): Remove.
13752         (typedef_hash_table::typedef_hash_table): New constructor; renamed
13753         from copy_type_recursive.
13754         (create_global_typedef_table): Remove.
13755         (typedef_hash_table::find_global_typedef): Now a member of
13756         typedef_hash_table.
13757         (typedef_hash_table::find_typedef): Rename from
13758         find_typedef_in_hash; now a member.
13759         (whatis_exp): Update.
13760         * extension.h (struct ext_lang_type_printers): Add constructor and
13761         destructor.
13762         (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
13763         declare.
13764         * extension.c (ext_lang_type_printers::ext_lang_type_printers):
13765         Now a constructor; rename from start_ext_lang_type_printers.
13766         (ext_lang_type_printers): Now a destructor; rename from
13767         free_ext_lang_type_printers.
13768         * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
13769         Update.
13770         (c_type_print_base_struct_union): Update.  Remove cleanups.
13771
13772 2018-03-27  Tom Tromey  <tom@tromey.com>
13773
13774         * dwarf-index-write.c: Include <cmath>.
13775
13776 2018-03-27  Joel Brobecker  <brobecker@adacore.com>
13777
13778         * NEWS: Add entry describing new "set|show varsize-limit" command.
13779         * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
13780         command.
13781         * printcmd.c (_initialize_printcmd): Add "set var" alias of
13782         "set variable".
13783
13784 2018-03-27  Simon Marchi  <simon.marchi@ericsson.com>
13785
13786         * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
13787         dwarf-index-write.c
13788         (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
13789         * dwarf-index-common.c: New file.
13790         * dwarf-index-common.h: New file.
13791         * dwarf-index-write.c: New file.
13792         * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
13793         (struct dwarf2_section_info): Move from here.
13794         (dwarf2_section_info_def): Likewise.
13795         (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
13796         (offset_type): Likewise.
13797         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
13798         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
13799         (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
13800         (byte_swap): Likewise.
13801         (MAYBE_SWAP): Likewise.
13802         (dwarf2_per_cu_ptr): Likewise.
13803         (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
13804         (struct tu_stats): Likewise.
13805         (struct dwarf2_per_objfile): Likewise.
13806         (struct dwarf2_per_cu_data): Likewise.
13807         (struct signatured_type): Likewise.
13808         (sig_type_ptr): Likewise.
13809         (DEF_VEC_P (sig_type_ptr)): Likewise.
13810         (INDEX4_SUFFIX): Likewise.
13811         (INDEX5_SUFFIX): Likewise.
13812         (DEBUG_STR_SUFFIX): Likewise.
13813         (dwarf2_read_section): Make non-static.
13814         (mapped_index_string_hash): Move from here.
13815         (dwarf5_djb_hash): Likewise.
13816         (file_write): Likewise.
13817         (class data_buf): Likewise.
13818         (struct symtab_index_entry): Likewise.
13819         (struct mapped_symtab): Likewise.
13820         (find_slot): Likewise.
13821         (hash_expand): Likewise.
13822         (add_index_entry): Likewise.
13823         (uniquify_cu_indices): Likewise.
13824         (class c_str_view): Likewise.
13825         (class c_str_view_hasher): Likewise.
13826         (class vector_hasher): Likewise.
13827         (write_hash_table): Likewise.
13828         (psym_index_map): Likewise.
13829         (struct addrmap_index_data): Likewise.
13830         (add_address_entry): Likewise.
13831         (add_address_entry_worker): Likewise.
13832         (write_address_map): Likewise.
13833         (symbol_kind): Likewise.
13834         (write_psymbols): Likewise.
13835         (struct signatured_type_index_data): Likewise.
13836         (write_one_signatured_type): Likewise.
13837         (recursively_count_psymbols): Likewise.
13838         (recursively_write_psymbols): Likewise.
13839         (class debug_names): Likewise.
13840         (check_dwarf64_offsets): Likewise.
13841         (psyms_seen_size): Likewise.
13842         (write_gdbindex): Likewise.
13843         (write_debug_names): Likewise.
13844         (assert_file_size): Likewise.
13845         (write_psymtabs_to_index): Likewise.
13846         (save_gdb_index_command): Likewise.
13847         (_initialize_dwarf2_read): Don't register the "save gdb-index"
13848         command.
13849         * dwarf2read.h: New file.
13850
13851 2018-03-27  Joel Brobecker  <brobecker@adacore.com>
13852
13853         PR gdb/22670
13854         * dwarf2read.c (dwarf2_physname): Do not return the demangled
13855         symbol name if the CU's language stores symbol names in linkage
13856         format.
13857         * language.h (struct language_defn)
13858         <la_store_sym_names_in_linkage_form_p>: New field.  Adjust
13859         all instances of this struct.
13860
13861 2018-03-26  Tom Tromey  <tom@tromey.com>
13862
13863         * stack.c (backtrace_command_1): Remove verbose code.
13864
13865 2018-03-26  Tom Tromey  <tom@tromey.com>
13866
13867         * python/py-framefilter.c (py_print_type): Don't catch
13868         exceptions.  Return void.
13869         (py_print_value): Likewise.
13870         (py_print_single_arg): Likewise.
13871         (enumerate_args): Don't catch exceptions.
13872         (py_print_args): Likewise.
13873         (py_print_frame): Likewise.
13874         (gdbpy_apply_frame_filter): Catch exceptions here.
13875
13876 2018-03-26  Tom Tromey  <tom@tromey.com>
13877
13878         * stack.c (_initialize_stack): Remove trailing newlines from help
13879         text.  Add "Usage" line to "backtrace" help.
13880
13881 2018-03-26  Tom Tromey  <tom@tromey.com>
13882
13883         PR python/16486:
13884         * python/py-framefilter.c (py_print_args): Call wrap_hint.
13885
13886 2018-03-26  Tom Tromey  <tom@tromey.com>
13887
13888         * python/py-framefilter.c (py_print_single_arg): Return
13889         EXT_LANG_BT_ERROR from catch.
13890
13891 2018-03-26  Tom Tromey  <tom@tromey.com>
13892
13893         PR backtrace/15584:
13894         * stack.c (backtrace_command_1): Move some code into no-filters
13895         "if".
13896
13897 2018-03-26  Tom Tromey  <tom@tromey.com>
13898
13899         * python/py-framefilter.c (throw_quit_or_print_exception): New
13900         function.
13901         (gdbpy_apply_frame_filter): Use it.
13902
13903 2018-03-26  Tom Tromey  <tom@tromey.com>
13904
13905         PR cli/17716:
13906         * python/py-framefilter.c (py_print_type, py_print_value)
13907         (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
13908         RETURN_MASK_ERROR.
13909
13910 2018-03-26  Tom Tromey  <tom@tromey.com>
13911
13912         * python/py-framefilter.c (enumerate_args): Use
13913         gdb::unique_xmalloc_ptr.
13914
13915 2018-03-26  Tom Tromey  <tom@tromey.com>
13916
13917         * python/py-framefilter.c (py_print_frame): Return
13918         EXT_LANG_BT_OK.
13919         (gdbpy_apply_frame_filter): Update comment.
13920         * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
13921         Remove.
13922         <EXT_LANG_BT_NO_FILTERS>: Change value.
13923
13924 2018-03-26  Tom Tromey  <tom@tromey.com>
13925
13926         PR backtrace/15582:
13927         * stack.c (backtrace_command): Parse "hide" argument.
13928         * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
13929         * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
13930         constant.
13931
13932 2018-03-26  Tom Tromey  <tom@tromey.com>
13933
13934         * stack.c (backtrace_command_1): Remove "show_locals" parameter,
13935         add "flags".
13936         (backtrace_command): Remove "fulltrace", add "flags".
13937
13938 2018-03-26  Tom Tromey  <tom@tromey.com>
13939
13940         * stack.c (backtrace_command): Rewrite command line parsing.
13941
13942 2018-03-26  Simon Marchi  <simon.marchi@ericsson.com>
13943
13944         * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
13945
13946 2018-03-26  Simon Marchi  <simon.marchi@ericsson.com>
13947
13948         * filename-seen-cache.h: Add include guard.
13949
13950 2018-03-26  Keith Seitz  <keiths@redhat.com>
13951
13952         * symfile.c (place_section): Remove "struct" from section_addr_info
13953         in comment.
13954         * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
13955         "struct" keyword from section_addr_info.
13956
13957 2018-03-26  Alan Hayward  <alan.hayward@arm.com>
13958
13959         * regformats/regdef.h (reg): Add constructors.
13960
13961 2018-03-25  Pedro Alves  <palves@redhat.com>
13962
13963         * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
13964         if then/else bodies in var_func_name extraction.
13965
13966 2018-03-23  Weimin Pan  <weimin.pan@oracle.com>
13967
13968         * minsyms.c (lookup_minimal_symbol_and_objfile): Use
13969         lookup_minimal_symbol() to find symbol entry.
13970         * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
13971
13972 2018-03-23  Keith Seitz  <keiths@redhat.com>
13973
13974         PR c++/22968
13975         * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
13976         nested type definitions for C++, too.
13977
13978 2018-03-23  Tom Tromey  <tom@tromey.com>
13979
13980         * machoread.c (struct oso_el): Add a constructor.  Don't define as
13981         a typedef.
13982         (macho_register_oso): Remove.
13983         (macho_symtab_read): Take a std::vector.
13984         (oso_el_compare_name): Now a std::sort comparator.
13985         (macho_symfile_read_all_oso): Take a std::vector.
13986         (macho_symfile_read): Use std::vector.  Remove cleanups.
13987
13988 2018-03-22  Tom Tromey  <tom@tromey.com>
13989
13990         * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
13991         (record_full_goto_bookmark): Use std::string.
13992
13993 2018-03-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
13994
13995         PR tdep/18295
13996         * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
13997         a single mask.
13998
13999 2018-03-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
14000
14001         * rs6000-tdep.c (store_insn_p): New function.
14002         (skip_prologue): New variable alloca_reg_offset. Set lr_reg
14003         and cr_reg to their unshifted values. Use store_insn_p to
14004         match LR saves using either R1 or fdata->alloca_reg. Use
14005         store_insn_p to match CR saves. Set alloca_reg_offset
14006         when alloca_reg and framep are set. Remove lr_reg shift
14007         when assigning to fdata->lr_register.
14008
14009 2018-03-22  Andreas Arnez  <arnez@linux.vnet.ibm.com>
14010
14011         * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
14012         command line args instead of emitting a warning.
14013
14014 2018-03-22  Simon Marchi  <simon.marchi@polymtl.ca>
14015
14016         * tracepoint.h (struct static_tracepoint_marker): Initialize
14017         fields, define default constructor, move constructor and move
14018         assignment, disable the rest.
14019         <str_id, extra>: Make std::string.
14020         (release_static_tracepoint_marker): Remove.
14021         (free_current_marker): Remove.
14022         * tracepoint.c (free_current_marker): Remove.
14023         (parse_static_tracepoint_marker_definition): Adjust to
14024         std::string, use new hex2str overload.
14025         (release_static_tracepoint_marker): Remove.
14026         (print_one_static_tracepoint_marker): Get marker by reference
14027         and adjust to std::string.
14028         (info_static_tracepoint_markers_command): Adjust to std::vector
14029         changes
14030         * target.h (static_tracepoint_marker_p): Remove typedef.
14031         (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
14032         (struct target_ops) <to_static_tracepoint_marker_at>: Return
14033         bool.
14034         <to_static_tracepoint_markers_by_strid>: Return std::vector.
14035         * target-debug.h
14036         (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
14037         (target_debug_print_std_vector_static_tracepoint_marker): New.
14038         (target_debug_print_struct_static_tracepoint_marker_p): Rename
14039         to...
14040         (target_debug_print_static_tracepoint_marker_p): ... this.
14041         * target-delegates.c: Re-generate.
14042         * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
14043         Make std::string.
14044         * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
14045         (decode_static_tracepoint_spec): Adjust to std::vector.
14046         (tracepoint_print_one_detail): Adjust to std::string.
14047         (strace_marker_decode_location): Adjust to std::string.
14048         (update_static_tracepoint): Adjust to std::string, remove call
14049         to release_static_tracepoint_marker.
14050         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
14051         Adjust to std::vector.
14052         * remote.c (remote_static_tracepoint_marker_at): Return bool.
14053         (remote_static_tracepoint_markers_by_strid): Adjust to
14054         std::vector.
14055         * common/rsp-low.h (hex2str): New overload with explicit count
14056         of bytes.
14057         * common/rsp-low.c (hex2str): New overload with explicit count
14058         of bytes.
14059         * unittests/rsp-low-selftests.c (test_hex2str): New function.
14060         (_initialize_rsp_low_selftests): Add test_hex2str test.
14061         * unittests/tracepoint-selftests.c
14062         (test_parse_static_tracepoint_marker_definition): Adjust to
14063         std::string.
14064
14065 2018-03-22  Simon Marchi  <simon.marchi@polymtl.ca>
14066
14067         * tracepoint.c (parse_static_tracepoint_marker_definition):
14068         Consider case where the definition is followed by more
14069         definitions.
14070         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14071         tracepoint-selftests.c.
14072         * unittests/tracepoint-selftests.c: New.
14073
14074 2018-03-21  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
14075
14076         * MAINTAINERS (Write After Approval): Add Pedro Franco de
14077         Carvalho.
14078
14079 2018-03-20  Stephen Roberts  <stephen.roberts@arm.com>
14080
14081         * symtab.c (find_pc_sect_line): fixed indentation.
14082
14083 2018-03-20  Stephen Roberts  <stephen.roberts@arm.com>
14084
14085         * symtab.c (find_pc_sect_line): now uses binary search.
14086
14087 2018-03-19  Tom Tromey  <tom@tromey.com>
14088
14089         * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
14090         "IDENT" production.
14091
14092 2018-03-19  Pedro Alves  <palves@redhat.com>
14093             Tom Tromey  <tom@tromey.com>
14094
14095         * unittests/observable-selftests.c: New file.
14096         * common/observable.h: New file.
14097         * observable.h: New file.
14098         * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
14099         arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
14100         breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
14101         corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
14102         extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
14103         infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
14104         linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
14105         mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
14106         ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
14107         python/py-breakpoint.c, python/py-finishbreakpoint.c,
14108         python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
14109         record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
14110         riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
14111         spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
14112         symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
14113         tui/tui-interp.c, valops.c: Update all users.
14114         * tui/tui-hooks.c (tui_bp_created_observer)
14115         (tui_bp_deleted_observer, tui_bp_modified_observer)
14116         (tui_inferior_exit_observer, tui_before_prompt_observer)
14117         (tui_normal_stop_observer, tui_register_changed_observer):
14118         Remove.
14119         (tui_observers_token): New global.
14120         (attach_or_detach, tui_attach_detach_observers): New functions.
14121         (tui_install_hooks, tui_remove_hooks): Use
14122         tui_attach_detach_observers.
14123         * record-btrace.c (record_btrace_thread_observer): Remove.
14124         (record_btrace_thread_observer_token): New global.
14125         * observer.sh: Remove.
14126         * observer.c: Rename to observable.c.
14127         * observable.c (namespace gdb_observers): Define new objects.
14128         (observer_debug): Move into gdb_observers namespace.
14129         (struct observer, struct observer_list, xalloc_observer_list_node)
14130         (xfree_observer_list_node, generic_observer_attach)
14131         (generic_observer_detach, generic_observer_notify): Remove.
14132         (_initialize_observer): Update.
14133         Don't include observer.inc.
14134         * Makefile.in (generated_files): Remove observer.h, observer.inc.
14135         (clean mostlyclean): Likewise.
14136         (observer.h, observer.inc): Remove targets.
14137         (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
14138         (COMMON_SFILES): Use observable.c, not observer.c.
14139         * .gitignore: Remove observer.h.
14140
14141 2018-03-18  Tom Tromey  <tom@tromey.com>
14142
14143         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
14144         gdb::def_vector.
14145         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
14146
14147 2018-03-17  Tom Tromey  <tom@tromey.com>
14148
14149         * auto-load.c (auto_load_objfile_script_1): Use std::string.
14150
14151 2018-03-17  Tom Tromey  <tom@tromey.com>
14152
14153         * target.c (class scoped_target_fd): New.
14154         (target_fileio_close_cleanup): Remove.
14155         (target_fileio_read_alloc_1): Use scoped_target_fd.
14156
14157 2018-03-16  Simon Marchi  <simon.marchi@polymtl.ca>
14158
14159         * silent-rules.mk: New.
14160         * Makefile.in: Include silent-rules.mk
14161         (srcdir, VPATH, top_srcdir): Move up.
14162         (COMPILE): Add ECHO_CXX.
14163         (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
14164         (init.c): Add ECHO_INIT_C.
14165         (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
14166         (version.c): Add ECHO_GEN.
14167         (printcmd.o): Add ECHO_CXX.
14168         (target-float.o): Add ECHO_CXX.
14169         (ada-exp.o): Add ECHO_CXX.
14170         (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
14171         (insight$(EXEEXT)): Add ECHO_CXXLD.
14172         * gnulib/configure.ac: Add AM_SILENT_RULES.
14173         * gnulib/aclocal.m4: Re-generate.
14174         * gnulib/configure: Re-generate.
14175         * gnulib/import/Makefile.in: Re-generate.
14176
14177 2018-03-16  Tom Tromey  <tom@tromey.com>
14178
14179         * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
14180         * utils.h (make_cleanup_free_section_addr_info): Don't declare.
14181         * utils.c (do_free_section_addr_info)
14182         (make_cleanup_free_section_addr_info): Remove.
14183         * symfile.h (struct other_sections): Add constructor.
14184         (struct section_addr_info): Remove.
14185         (section_addr_info): New typedef.
14186         (struct sym_fns) <sym_offsets>: Change type of parameter.
14187         (build_section_addr_info_from_objfile)
14188         (relative_addr_info_to_section_offsets, addr_info_make_relative)
14189         (default_symfile_offsets, symbol_file_add)
14190         (symbol_file_add_from_bfd)
14191         (build_section_addr_info_from_section_table): Update.
14192         (alloc_section_addr_info, free_section_addr_info): Don't declare.
14193         * symfile.c (alloc_section_addr_info): Remove.
14194         (build_section_addr_info_from_section_table): Change return type.
14195         Update.
14196         (build_section_addr_info_from_bfd)
14197         (build_section_addr_info_from_objfile): Likewise.
14198         (free_section_addr_info): Remove.
14199         (relative_addr_info_to_section_offsets): Change type of "addrs".
14200         (addrs_section_compar): Now a std::sort comparator.
14201         (addrs_section_sort): Change return type.
14202         (addr_info_make_relative): Change type of "addrs".  Update.
14203         (default_symfile_offsets, syms_from_objfile_1)
14204         (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
14205         (symbol_file_add_separate): Update.
14206         (symbol_file_add): Change type of "addrs".  Update.
14207         (add_symbol_file_command): Update.  Remove cleanups.
14208         * symfile-mem.c (symbol_file_add_from_memory): Update.  Remove
14209         cleanups.
14210         * symfile-debug.c (debug_sym_offsets): Change type of "info".
14211         * solib.c (solib_read_symbols): Update.
14212         * objfiles.c (objfile_relocate): Update.  Remove cleanups.
14213         * machoread.c (macho_symfile_offsets): Update.
14214         * jit.c (jit_bfd_try_read_symtab): Update.
14215
14216 2018-03-15  Simon Marchi  <simon.marchi@polymtl.ca>
14217
14218         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14219         unittests/utils-selftests.c.
14220         * unittests/utils-selftests.c: New file.
14221
14222 2018-03-14  Tom Tromey  <tom@tromey.com>
14223
14224         PR cli/14977:
14225         * printcmd.c (printf_c_string, printf_wide_c_string): Special case
14226         for NULL.
14227
14228 2018-03-14  Tom Tromey  <tom@tromey.com>
14229
14230         PR cli/19918:
14231         * printcmd.c (printf_pointer): Allow "-" in format.
14232
14233 2018-03-14  Tom Tromey  <tom@tromey.com>
14234
14235         * printcmd.c (_initialize_printcmd): Add usage to printf.
14236
14237 2018-03-14  Yao Qi  <qiyao@sourceware.org>
14238
14239         * MAINTAINERS: Update my email address.
14240
14241 2018-03-13  Tom Tromey  <tom@tromey.com>
14242
14243         * machoread.c (macho_check_dsym): Change filenamep to a
14244         std::string*.
14245         (macho_symfile_read): Update.
14246         * symfile.c (load_command): Use std::string.
14247
14248 2018-03-12  Andrew Burgess  <andrew.burgess@embecosm.com>
14249
14250         * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
14251         to error message string.
14252         (riscv_register_name): Use xsnprintf instead of sprintf.
14253         (riscv_insn::fetch_instruction): Use gdb_assert instead of
14254         internal_error.
14255         (riscv_print_arg_location): Use gdb_assert_not_reached instead of
14256         error.
14257         (riscv_push_dummy_call): Likewise.
14258
14259 2018-03-12  Tom Tromey  <tom@tromey.com>
14260
14261         * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
14262         Use gdb::byte_vector.
14263         * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
14264
14265 2018-03-12  Yao Qi  <yao.qi@linaro.org>
14266
14267         * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
14268         parameter type to readable_regcache.
14269         * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
14270         the declaration.
14271
14272 2018-03-11  Tom Tromey  <tom@tromey.com>
14273
14274         * dwarf2read.c (struct nextfield): Add initializers.
14275         (struct nextfnfield): Remove.
14276         (struct fnfieldlist): Add initializers.  Remove "length" and
14277         "head", use std::vector.
14278         (struct decl_field_list): Remove.
14279         (struct field_info): Add initializers.
14280         <fields, baseclasses>: Now std::vector.
14281         <nbaseclasses, nfnfields, typedef_field_list_count,
14282         nested_types_list_count>: Remove.
14283         (dwarf2_add_field, dwarf2_add_type_defn)
14284         (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
14285         (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
14286         (process_structure_scope): Update.
14287
14288 2018-03-11  Tom Tromey  <tom@tromey.com>
14289
14290         * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
14291         for use by std::sort.
14292         (build_type_psymtabs_1): Use std::vector.
14293
14294 2018-03-09  Eli Zaretskii  <eliz@gnu.org>
14295
14296         * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
14297         and LIBMPFR in the printed configuration.
14298
14299 2018-03-08  Tom Tromey  <tom@tromey.com>
14300
14301         * source.c (get_filename_and_charpos): Use scoped_fd.
14302         * nto-procfs.c (procfs_open_1): Use scoped_fd.
14303         (procfs_pidlist): Likewise.
14304         * procfs.c (proc_get_LDT_entry): Use scoped_fd.
14305         (iterate_over_mappings): Likewise.
14306
14307 2018-03-08  Tom Tromey  <tom@tromey.com>
14308
14309         * infcall.c (struct call_return_meta_info)
14310         <stack_temporaries_enabled>: Remove.
14311         (get_call_return_value, call_function_by_hand_dummy): Update.
14312         * thread.c (disable_thread_stack_temporaries): Remove.
14313         (enable_thread_stack_temporaries): Remove.
14314         (thread_stack_temporaries_enabled_p): Return bool.
14315         (push_thread_stack_temporary, value_in_thread_stack_temporaries)
14316         (get_last_thread_stack_temporary): Update.
14317         * eval.c (evaluate_subexp): Update.
14318         * gdbthread.h (class enable_thread_stack_temporaries): Now a
14319         class, not a function.
14320         (value_ptr, value_vec): Remove typedefs.
14321         (class thread_info) <stack_temporaries_enabled>: Now bool.
14322         <stack_temporaries>: Now a std::vector.
14323         (thread_stack_temporaries_enabled_p)
14324         (value_in_thread_stack_temporaries): Return bool.
14325
14326 2018-03-08  Simon Marchi  <simon.marchi@ericsson.com>
14327
14328         * remote.c (putpkt_binary): Fix omitted bytes reporting.
14329         (getpkt_or_notif_sane_1): Likewise.
14330
14331 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
14332
14333         * build-id.c (build_id_to_debug_bfd): Use std::string.
14334
14335 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
14336
14337         * build-id.c (find_separate_debug_file_by_buildid): Return
14338         std::string.
14339         * build-id.h (find_separate_debug_file_by_buildid): Return
14340         std::string.
14341         * coffread.c (coff_symfile_read): Adjust to std::string.
14342         * elfread.c (elf_symfile_read): Adjust to std::string.
14343         * symfile.c (separate_debug_file_exists): Change parameter to
14344         std::string.
14345         (find_separate_debug_file): Return std::string.
14346         (find_separate_debug_file_by_debuglink): Return std::string.
14347         * symfile.h (find_separate_debug_file_by_debuglink): Return
14348         std::string.
14349
14350 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
14351
14352         * common/xml-utils.c (xml_escape_text): Move code to...
14353         (xml_escape_text_append): ... this new function.
14354         * common/xml-utils.h (xml_escape_text_append): New declaration.
14355         * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
14356         New function.
14357         (_initialize_xml_utils): register test_xml_escape_text_append as
14358         a selftest.
14359
14360 2018-03-07  Alan Hayward  <alan.hayward@arm.com>
14361
14362         * defs.h: Remove MAX_REGISTER_SIZE.
14363         * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
14364         asserts.
14365         * python/py-unwind.c (pyuw_sniffer): Likewise.
14366
14367 2018-03-07  Tom Tromey  <tom@tromey.com>
14368
14369         * linux-tdep.c (linux_info_proc): Update.
14370         * target.h (struct target_ops) <to_fileio_readlink>: Return
14371         optional<string>.
14372         (target_fileio_readlink): Return optional<string>.
14373         * remote.c (remote_hostio_readlink): Return optional<string>.
14374         * inf-child.c (inf_child_fileio_readlink): Return
14375         optional<string>.
14376         * target.c (target_fileio_readlink): Return optional<string>.
14377
14378 2018-03-07  Andrew Burgess  <andrew.burgess@embecosm.com>
14379
14380         * regcache.c (cooked_read_test): Add riscv to the list of
14381         architectures that have a save_reggroup.
14382
14383 2018-03-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
14384
14385         * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
14386         value is not a dynamic class object.
14387
14388 2018-03-06  Tom Tromey  <tom@tromey.com>
14389
14390         * rust-exp.y: Formatting fixes.
14391
14392 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
14393
14394         * riscv-tdep.c (riscv_register_name): Remove target description
14395         support.
14396         (riscv_gdbarch_init): Remove target description check.
14397
14398 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
14399
14400         * riscv-tdep.c: Remove 'Contributed by ...' lines from header
14401         comment.
14402         * riscv-tdep.h: Likewise.
14403
14404 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
14405
14406         * riscv-tdep.c (riscv_pseudo_register_read): Delete.
14407         (riscv_pseudo_register_write): Delete.
14408         (riscv_gdbarch_init): Remove all use of pseudo registers.
14409
14410 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
14411
14412         * record-btrace.c (btrace_print_lines): Replace cleanup
14413         parameter with RAII equivalents.
14414         (btrace_insn_history): Replace cleanup with RAII equivalents.
14415         * ui-out.h (make_cleanup_ui_out_list_begin_end,
14416         make_cleanup_ui_out_tuple_begin_end): Remove.
14417         * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
14418         make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
14419         make_cleanup_ui_out_list_begin_end): Remove.
14420
14421 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
14422
14423         * record-btrace.c (record_btrace_maybe_mark_async_event): Change
14424         parameter types to std::vector.  Use bool.
14425         (record_btrace_wait): Replace VEC(tp_t) with
14426         std::vector<thread_info *>.
14427         * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
14428
14429 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
14430
14431         * record-btrace.c (record_btrace_disable_callback): Remove.
14432         (struct scoped_btrace_disable): New.
14433         (record_btrace_open): Use scoped_btrace_disable.
14434
14435 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
14436
14437         * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
14438         reading values from registers.
14439
14440 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
14441
14442         * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
14443         where appropriate.
14444
14445 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
14446
14447         * riscv-tdep.c (riscv_print_arg_location): Add header comment,
14448         change parameter type.  Use GDB's print functions, and use
14449         core_addr_to_string where appropriate.
14450         (riscv_push_dummy_call): Use core_addr_to_string where
14451         appropriate, update call to riscv_print_arg_location, and reindent
14452         a few lines.
14453         (riscv_return_value): Update call to riscv_print_arg_location.
14454
14455 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
14456             Tim Newsome <tim@sifive.com>
14457             Albert Ou <a0u@eecs.berkeley.edu>
14458             Darius Rad <darius@bluespec.com>
14459
14460         * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
14461         (HFILES_NO_SRCDIR): Add riscv-tdep.h.
14462         (ALLDEPFILES): Add riscv-tdep.c
14463         * configure.tgt: Add riscv support.
14464         * riscv-tdep.c: New file.
14465         * riscv-tdep.h: New file.
14466         * NEWS: Mention new target.
14467         * MAINTAINERS: Add entry for riscv.
14468
14469 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
14470
14471         * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
14472         fields within aggregates.
14473
14474 2018-03-04  Simon Marchi  <simon.marchi@polymtl.ca>
14475
14476         * record-btrace.c (btrace_print_lines): Change type of flags to
14477         gdb_disassembly_flags.
14478
14479 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
14480
14481         * fbsd-nat.c: Include "inf-ptrace.h".
14482         (USE_SIGTRAP_SIGINFO): Conditionally define.
14483         [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
14484         (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
14485         [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
14486         function.
14487         [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
14488         Likewise.
14489         [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
14490         Likewise.
14491         (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
14492         "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
14493         "supports_stopped_by_hw_breakpoint" target methods.
14494
14495 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
14496
14497         * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
14498         * fbsd-nat.c (debug_fbsd_nat): New variable.
14499         (show_fbsd_nat_debug): New function.
14500         (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
14501         (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
14502
14503 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
14504
14505         * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
14506         * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
14507         prototype.
14508         * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
14509         (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
14510         method.
14511
14512 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
14513
14514         * common/gdb_vecs.c (free_char_ptr_vec): Remove.
14515         * common/gdb_vecs.h (free_char_ptr_vec): Remove.
14516
14517 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
14518
14519         * charset.c (struct charset_vector): New.
14520         (charsets): Change type to charset_vector.
14521         (find_charset_names): Adjust.
14522         (add_one): Adjust.
14523         (_initialize_charset): Adjust.
14524
14525 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
14526
14527         * progspace.h (struct program_space) <deleted_solibs>: Change
14528         type to std::vector<std::string>.
14529         * progspace.c (clear_program_space_solib_cache): Adjust.
14530         * breakpoint.c (print_solib_event): Adjust.
14531         (check_status_catch_solib): Adjust.
14532         * solib.c (update_solib_list): Adjust.
14533         * ui-out.h (class ui_out) <field_string>: New overload.
14534         * ui-out.c (ui_out::field_string): New overload.
14535
14536 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
14537
14538         * progspace.h (struct program_space): Add constructor and
14539         destructor, initialize fields.
14540         (add_program_space): Remove.
14541         * progspace.c (add_program_space): Rename to...
14542         (program_space::program_space): ... this.
14543         (release_program_space): Rename to...
14544         (program_space::~program_space): ... this.
14545         (delete_program_space): Use delete to delete program_space.
14546         (initialize_progspace): Use new to allocate program_space.
14547         * inferior.c (add_inferior_with_spaces): Likewise.
14548         (clone_inferior_command): Likewise.
14549         * infrun.c (follow_fork_inferior): Likewise.
14550         (handle_vfork_child_exec_or_exit): Likewise.
14551
14552 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
14553
14554         * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
14555         (delim_string_to_char_ptr_vec): Return std::vector of
14556         gdb::unique_xmalloc_ptr.
14557         (dirnames_to_char_ptr_vec_append): Take std::vector of
14558         gdb::unique_xmalloc_ptr.
14559         (dirnames_to_char_ptr_vec): Return std::vector of
14560         gdb::unique_xmalloc_ptr.
14561         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
14562         Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
14563         (delim_string_to_char_ptr_vec): Return an std::vector of
14564         gdb::unique_xmalloc_ptr, adjust the code.
14565         (dirnames_to_char_ptr_vec_append): Take an std::vector of
14566         gdb::unique_xmalloc_ptr, adjust the code.
14567         (dirnames_to_char_ptr_vec): Return an std::vector of
14568         gdb::unique_xmalloc_ptr, adjust the code.
14569         * auto-load.c (auto_load_safe_path_vec): Change type to
14570         std::vector of gdb::unique_xmalloc_ptr.
14571         (auto_load_expand_dir_vars): Return an std::vector of
14572         gdb::unique_xmalloc_ptr, adjust the code.
14573         (auto_load_safe_path_vec_update): Adjust.
14574         (filename_is_in_auto_load_safe_path_vec): Adjust.
14575         (auto_load_objfile_script_1): Adjust.
14576         * build-id.c (build_id_to_debug_bfd): Adjust.
14577         * linux-thread-db.c (thread_db_load_search): Adjust.
14578         * source.c (add_path): Adjust.
14579         (openp): Adjust.
14580         * symfile.c (find_separate_debug_file): Adjust.
14581         * utils.c (do_free_char_ptr_vec): Remove.
14582         (make_cleanup_free_char_ptr_vec): Remove.
14583
14584 2018-03-01  Sergio Durigan Junior  <sergiodj@redhat.com>
14585
14586         PR gdb/22907
14587         * common/pathstuff.c: Conditionally include "<windows.h>".
14588
14589 2018-03-01  Georg Sauthoff  <mail@georg.so>
14590
14591         PR gdb/22888
14592         * gcore.in: Quote variables and switch interpreter to bash.
14593
14594 2018-03-01  Tom Tromey  <tom@tromey.com>
14595
14596         * dwarf2read.c (alloc_discriminant_info): Fix default_index
14597         assertion.  Add assertion for discriminant_index.
14598         (quirk_rust_enum): Use correct base type name in univariant case.
14599
14600 2018-03-01  Simon Marchi  <simon.marchi@ericsson.com>
14601
14602         * record.c (get_call_history_modifiers): Return a
14603         record_print_flags.
14604         (cmd_record_call_history): Adjust.
14605         * record-btrace.c (record_btrace_call_history): Adjust.
14606         (record_btrace_call_history_range): Adjust.
14607         (record_btrace_call_history_from): Adjust.
14608         * target-debug.h (target_debug_print_record_print_flags): New.
14609         * target-delegates.c: Re-generate.
14610         * target.c (target_call_history): Change flags type.
14611         (target_call_history_from): Likewise.
14612         (target_call_history_range): Likewise.
14613         * target.h (struct target_ops) <target_call_history>: Likewise.
14614         (target_call_history_from): Likewise.
14615         (target_call_history_range): Likewise.
14616
14617 2018-02-28  Sergio Durigan Junior  <sergiodj@redhat.com>
14618             Simon Marchi  <simon.marchi@polymtl.ca>
14619
14620         * common/common-utils.c: Include "sys/stat.h".
14621         (is_regular_file): Move here from "source.c"; change return
14622         type to "bool".
14623         * common/common-utils.h (is_regular_file): New prototype.
14624         * common/pathstuff.c (contains_dir_separator): New function.
14625         * common/pathstuff.h (contains_dir_separator): New prototype.
14626         * source.c: Don't include "sys/stat.h".
14627         (is_regular_file): Move to "common/common-utils.c".
14628
14629 2018-02-28  Sergio Durigan Junior  <sergiodj@redhat.com>
14630
14631         * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
14632         (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
14633         * auto-load.c: Include "common/pathstuff.h".
14634         * common/common-def.h (current_directory): Move here.
14635         * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
14636         function.
14637         * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
14638         prototype.
14639         * common/pathstuff.c: New file.
14640         * common/pathstuff.h: New file.
14641         * compile/compile.c: Include "common/pathstuff.h".
14642         * defs.h (current_directory): Move to "common/common-defs.h".
14643         * dwarf2read.c: Include "common/pathstuff.h".
14644         * exec.c: Likewise.
14645         * guile/scm-safe-call.c: Likewise.
14646         * linux-thread-db.c: Likewise.
14647         * main.c: Likewise.
14648         * nto-tdep.c: Likewise.
14649         * objfiles.c: Likewise.
14650         * source.c: Likewise.
14651         * symtab.c: Likewise.
14652         * utils.c: Include "common/pathstuff.h".
14653         (gdb_realpath): Move to "common/pathstuff.c".
14654         (gdb_realpath_keepfile): Likewise.
14655         (gdb_abspath): Likewise.
14656         * utils.h (gdb_realpath): Move to "common/pathstuff.h".
14657         (gdb_realpath_keepfile): Likewise.
14658         (gdb_abspath): Likewise.
14659
14660 2018-02-28  John Baldwin  <jhb@FreeBSD.org>
14661
14662         * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
14663         wildcard process pid for super_resume for kernels with a
14664         specific bug.
14665
14666 2018-02-27  Phil Muldoon  <pmuldoon@redhat.com>
14667
14668         * compile/compile.c (get_args): Add additional comments
14669         explaining function.
14670
14671 2018-02-27  Simon Marchi  <simon.marchi@polymtl.ca>
14672             Tom Tromey  <tom@tromey.com>
14673
14674         * target.h (memory_write_request_s): Remove typedef.  Don't define
14675         VEC.
14676         (target_write_memory_blocks): Change argument to std::vector.
14677         (struct memory_write_request): Add constructor.
14678         * target-memory.c (compare_block_starting_address): Return bool.
14679         Change argument types.
14680         (claim_memory): Change arguments to use std::vector.
14681         (split_regular_and_flash_blocks, blocks_to_erase)
14682         (compute_garbled_blocks): Likewise.
14683         (cleanup_request_data, cleanup_write_requests_vector): Remove.
14684         (target_write_memory_blocks): Change argument to std::vector.
14685         * symfile.c (struct load_section_data): Add constructor and
14686         destructor.  Use std::vector for "requests".
14687         (struct load_progress_data): Add initializers.
14688         (load_section_callback): Update.  Use "new".
14689         (clear_memory_write_data): Remove.
14690         (generic_load): Update.
14691
14692 2018-02-27  Alan Hayward  <alan.hayward@arm.com>
14693
14694         * arch/aarch64.h: Use common/tdesc.h.
14695
14696 2018-02-26  Maciej W. Rozycki  <macro@mips.com>
14697
14698         * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
14699         architecture with a 64-bit ABI.
14700
14701 2018-02-26  Maciej W. Rozycki  <macro@mips.com>
14702
14703         * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
14704         ahead of target description loading.
14705
14706 2018-02-26  Tom Tromey  <tom@tromey.com>
14707
14708         * stack.c (backtrace_command_1): Update.
14709         * python/python-internal.h (gdbpy_apply_frame_filter): Change type
14710         of "flags".
14711         * python/py-framefilter.c (py_print_frame)
14712         (gdbpy_apply_frame_filter): Change type of "flags".
14713         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
14714         of "flags".
14715         (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
14716         (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
14717         * extension.h (enum frame_filter_flag): Rename from
14718         frame_filter_flags.
14719         (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
14720         (apply_ext_lang_frame_filter): Change type of "flags".
14721         * extension.c (apply_ext_lang_frame_filter): Change type of
14722         "flags".
14723         * extension-priv.h (struct extension_language_ops)
14724         <apply_frame_filter>: Change type of "flags".
14725
14726 2018-02-26  Tom Tromey  <tom@tromey.com>
14727
14728         PR python/16497:
14729         * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag.  Fix
14730         off-by-one in py_end computation.
14731         * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
14732         PRINT_MORE_FRAMES.
14733         * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
14734         constant.
14735
14736 2018-02-26  Tom Tromey  <tom@tromey.com>
14737
14738         * dwarf2read.c (struct variant_field): New.
14739         (struct nextfield) <variant>: New field.
14740         (dwarf2_add_field): Handle DW_TAG_variant_part.
14741         (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
14742         discriminated union.
14743         (read_structure_type): Handle DW_TAG_variant_part.
14744         (handle_struct_member_die): New function, extracted from
14745         process_structure_scope.  Handle DW_TAG_variant.
14746         (process_structure_scope): Handle discriminated unions.  Call
14747         handle_struct_member_die.
14748
14749 2018-02-26  Tom Tromey  <tom@tromey.com>
14750
14751         * rust-lang.h (rust_last_path_segment): Declare.
14752         * rust-lang.c (rust_last_path_segment): Now public.  Change
14753         contract.
14754         (struct disr_info): Remove.
14755         (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
14756         (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
14757         (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
14758         (rust_enum_p, rust_enum_variant): New function.
14759         (rust_underscore_fields): Remove "offset" parameter.
14760         (rust_print_enum): New function.
14761         (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
14762         <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
14763         (rust_print_struct_def): Add "for_rust_enum" parameter.  Handle
14764         enums.
14765         (rust_internal_print_type): New function, from rust_print_type.
14766         Remove enum code.
14767         (rust_print_type): Call rust_internal_print_type.
14768         (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
14769         Update enum handling.
14770         * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
14771         (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
14772         (rust_union_quirks): New functions.
14773         (process_full_comp_unit, process_full_type_unit): Call
14774         rust_union_quirks.
14775         (process_structure_scope): Update rust_unions if necessary.
14776
14777 2018-02-26  Tom Tromey  <tom@tromey.com>
14778
14779         * value.h (value_union_variant): Declare.
14780         * valops.c (value_union_variant): New function.
14781         * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
14782         (struct discriminant_info): New.
14783         (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
14784         enumerator.
14785         (struct main_type) <flag_discriminated_union>: New field.
14786
14787 2018-02-26  Tom Tromey  <tom@tromey.com>
14788
14789         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14790         unittests/unpack-selftests.c.
14791         * unittests/unpack-selftests.c: New file.
14792         * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
14793
14794 2018-02-26  Yao Qi  <yao.qi@linaro.org>
14795
14796         * dwarf2read.c (struct partial_die_info) <read>: New method.
14797         (read_partial_die): Remove the declaration.
14798         (load_partial_dies): Update.
14799         (partial_die_info::partial_die_info):
14800         (read_partial_die): Change it to partial_die_info::read.
14801
14802 2018-02-26  Yao Qi  <yao.qi@linaro.org>
14803
14804         * dwarf2read.c (struct partial_die_info) <fixup>: New method.
14805         (fixup_partial_die): Remove declaration.
14806         (scan_partial_symbols): Update.
14807         (partial_die_parent_scope): Likewise.
14808         (partial_die_full_name): Likewise.
14809         (fixup_partial_die): Change it to partial_die_info::fixup.
14810
14811 2018-02-26  Yao Qi  <yao.qi@linaro.org>
14812
14813         * dwarf2read.c (read_partial_die): Update the declaration.
14814         (load_partial_dies): Caller update.
14815         (read_partial_die): Remove one argument abbrev_len.
14816
14817 2018-02-26  Yao Qi  <yao.qi@linaro.org>
14818
14819         * dwarf2read.c (struct partial_die_info): Add ctor, delete
14820         assignment operator.
14821         (load_partial_dies): Use ctor and copy ctor.
14822         (read_partial_die): Update.
14823         (dwarf2_cu::find_partial_die): Use ctor.
14824
14825 2018-02-26  Yao Qi  <yao.qi@linaro.org>
14826
14827         * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
14828         (find_partial_die_in_comp_unit): Change it to
14829         dwarf2_cu::find_partial_die.
14830         (find_partial_die): Update.
14831
14832 2018-02-26  Yao Qi  <yao.qi@linaro.org>
14833
14834         * dwarf2read.c (read_partial_die): Remove the code checking abbrev
14835         is NULL.
14836
14837 2018-02-26  Yao Qi  <yao.qi@linaro.org>
14838
14839         * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
14840
14841 2018-02-26  Alan Hayward  <alan.hayward@arm.com>
14842
14843         * arch/amd64.h: Use common/tdesc.h.
14844         * arch/i386.c: Likewise.
14845         * arch/i386.h: Likewise.
14846         * arch/tic6x.c: Likewise.
14847         * arch/tdesc.h: Move file from here...
14848         * common/tdesc.h: ...to here.
14849         * features/aarch64-core.c: Regenerate.
14850         * features/aarch64-fpu.c: Regenerate.
14851         * features/i386/32bit-avx.c: Regenerate.
14852         * features/i386/32bit-avx512.c: Regenerate.
14853         * features/i386/32bit-core.c: Regenerate.
14854         * features/i386/32bit-linux.c: Regenerate.
14855         * features/i386/32bit-mpx.c: Regenerate.
14856         * features/i386/32bit-pkeys.c: Regenerate.
14857         * features/i386/32bit-sse.c: Regenerate.
14858         * features/i386/64bit-avx.c: Regenerate.
14859         * features/i386/64bit-avx512.c: Regenerate.
14860         * features/i386/64bit-core.c: Regenerate.
14861         * features/i386/64bit-linux.c: Regenerate.
14862         * features/i386/64bit-mpx.c: Regenerate.
14863         * features/i386/64bit-pkeys.c: Regenerate.
14864         * features/i386/64bit-segments.c: Regenerate.
14865         * features/i386/64bit-sse.c: Regenerate.
14866         * features/i386/x32-core.c: Regenerate.
14867         * features/tic6x-c6xp.c: Regenerate.
14868         * features/tic6x-core.c: Regenerate.
14869         * features/tic6x-gp.c: Regenerate.
14870         * target-descriptions.c: Use common/tdesc.h.
14871         * target-descriptions.h: Likewise.
14872
14873 2018-02-24  Tom Tromey  <tom@tromey.com>
14874
14875         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
14876         (try_thread_db_load_from_dir, thread_db_load_search): Use
14877         std::string.
14878         (info_auto_load_libthread_db_compare): Return bool.  Change
14879         argument types.
14880         (info_auto_load_libthread_db): Use std::vector, std::string.
14881         Remove cleanups.
14882
14883 2018-02-24  Tom Tromey  <tom@tromey.com>
14884
14885         * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
14886         std::string.
14887         * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
14888         std::string*.
14889         * gdbarch.c: Rebuild.
14890         * gdbarch.h: Rebuild.
14891         * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
14892         * arch-utils.h (default_fast_tracepoint_valid_at): Update.
14893         * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
14894         std::string*.
14895
14896 2018-02-23  Simon Marchi  <simon.marchi@polymtl.ca>
14897
14898         * gdbtypes.h (sect_offset): Change type to uint64_t.
14899         (sect_offset_str): New function.
14900         * dwarf2read.c (create_addrmap_from_aranges): Use
14901         sect_offset_str.
14902         (error_check_comp_unit_head): Likewise.
14903         (create_debug_type_hash_table): Likewise.
14904         (read_cutu_die_from_dwo): Likewise.
14905         (init_cutu_and_read_dies): Likewise.
14906         (init_cutu_and_read_dies_no_follow): Likewise.
14907         (process_psymtab_comp_unit_reader): Likewise.
14908         (partial_die_parent_scope): Likewise.
14909         (peek_die_abbrev): Likewise.
14910         (process_queue): Likewise.
14911         (dwarf2_physname): Likewise.
14912         (read_namespace_alias): Likewise.
14913         (read_import_statement): Likewise.
14914         (create_dwo_cu_reader): Likewise.
14915         (create_cus_hash_table): Likewise.
14916         (lookup_dwo_cutu): Likewise.
14917         (inherit_abstract_dies): Likewise.
14918         (read_func_scope): Likewise.
14919         (read_call_site_scope): Likewise.
14920         (dwarf2_add_member_fn): Likewise.
14921         (read_common_block): Likewise.
14922         (read_module_type): Likewise.
14923         (read_typedef): Likewise.
14924         (read_subrange_type): Likewise.
14925         (load_partial_dies): Likewise.
14926         (read_partial_die): Likewise.
14927         (find_partial_die): Likewise.
14928         (read_str_index): Likewise.
14929         (dwarf2_string_attr): Likewise.
14930         (build_error_marker_type): Likewise.
14931         (lookup_die_type): Likewise.
14932         (dump_die_shallow): Likewise.
14933         (follow_die_ref): Likewise.
14934         (dwarf2_fetch_die_loc_sect_off): Likewise.
14935         (dwarf2_fetch_constant_bytes): Likewise.
14936         (follow_die_sig): Likewise.
14937         (get_signatured_type): Likewise.
14938         (get_DW_AT_signature_type): Likewise.
14939         (dwarf2_find_containing_comp_unit): Likewise.
14940         (set_die_type): Likewise.
14941
14942 2018-02-21  John Baldwin  <jhb@FreeBSD.org>
14943
14944         * arch/aarch64.c: Include "common-defs.h".
14945         * arch/amd64.c: Likewise.
14946         * arch/i386.c: Likewise.
14947
14948 2018-02-21  Tom Tromey  <tom@tromey.com>
14949
14950         * value.h: (extract_field_op): Update.
14951         * eval.c (extract_field_op): Return a const char *.
14952         * expression.h (parse_expression_for_completion): Update.
14953         * completer.c (complete_expression): Update.
14954         (add_struct_fields): Make fieldname const.
14955         * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
14956         (mark_completion_tag, parse_exp_in_context_1): Update.
14957         (parse_expression_for_completion): Change "name" to
14958         unique_xmalloc_ptr*.
14959
14960 2018-02-21  Tom Tromey  <tom@tromey.com>
14961
14962         * infcall.c (call_function_by_hand_dummy): Use std::vector.
14963
14964 2018-02-21  Yao Qi  <yao.qi@linaro.org>
14965
14966         * avr-tdep.c (avr_read_pc): Change parameter type to
14967         readable_regcache.
14968         * gdbarch.sh (read_pc): Likewise.
14969         * gdbarch.c: Re-generated.
14970         * gdbarch.h: Re-generated.
14971         * hppa-tdep.c (hppa_read_pc): Change parameter type to
14972         readable_regcache.
14973         * ia64-tdep.c (ia64_read_pc): Likewise.
14974         * mips-tdep.c (mips_read_pc): Likewise.
14975         * spu-tdep.c (spu_read_pc): Likewise.
14976
14977 2018-02-21  Yao Qi  <yao.qi@linaro.org>
14978
14979         * Makefile.in (COMMON_SFILES): Add regcache-dump.c
14980         * regcache-dump.c: New file.
14981         * regcache.c: Move register_dump to regcache-dump.c.
14982         (maintenance_print_registers): Likewise.
14983         (maintenance_print_raw_registers): Likewise.
14984         (maintenance_print_cooked_registers): Likewise.
14985         (maintenance_print_register_groups): Likewise.
14986         (maintenance_print_remote_registers): Likewise.
14987         (_initialize_regcache): Likewise.
14988         * regcache.h (register_dump): Moved from regcache.c.
14989
14990 2018-02-21  Yao Qi  <yao.qi@linaro.org>
14991
14992         * regcache.c (regcache::regcache): Update.
14993         (regcache::invalidate): Move it to detached_regcache::invalidate.
14994         (get_thread_arch_aspace_regcache): Update.
14995         (regcache::raw_update): Update.
14996         (regcache::cooked_read): Remove some code.
14997         (regcache::cooked_read_value): Likewise.
14998         (regcache::raw_write): Remove assert on m_readonly_p.
14999         (regcache::raw_supply_integer): Move it to
15000         detached_regcache::raw_supply_integer.
15001         (regcache::raw_supply_zeroed): Likewise.
15002         * regcache.h (detached_regcache) <raw_supply_integer>: New
15003         declaration.
15004         <raw_supply_zeroed, invalidate>: Likewise.
15005         (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
15006         <invalidate>: Likewise.
15007         <m_readonly_p>: Removed.
15008
15009 2018-02-21  Yao Qi  <yao.qi@linaro.org>
15010
15011         * infcmd.c (get_return_value): Let stop_regs point to
15012         get_current_regcache.
15013         * regcache.c (regcache::regcache): Remove.
15014         (register_dump_reg_buffer): New class.
15015         (regcache_print): Adjust.
15016         * regcache.h (regcache): Remove constructors.
15017
15018 2018-02-21  Yao Qi  <yao.qi@linaro.org>
15019
15020         * regcache.c (class register_dump): New class.
15021         (register_dump_regcache, register_dump_none): New class.
15022         (register_dump_remote, register_dump_groups): New class.
15023         (regcache_print): Update.
15024         * regcache.h (regcache_dump_what): Move it to regcache.c.
15025         (regcache) <dump>: Remove.
15026
15027 2018-02-21  Yao Qi  <yao.qi@linaro.org>
15028
15029         * jit.c (struct jit_unwind_private) <regcache>: Change its type to
15030          reg_buffer_rw *.
15031         (jit_unwind_reg_set_impl): Call raw_supply.
15032         (jit_frame_sniffer): Use reg_buffer_rw.
15033         * record-full.c (record_full_core_regbuf): Change its type.
15034         (record_full_core_open_1): Use reg_buffer_rw.
15035         (record_full_close): Likewise.
15036         (record_full_core_fetch_registers): Use regcache->raw_supply.
15037         (record_full_core_store_registers): Likewise.
15038         * regcache.c (regcache::get_register_status): Move it to
15039         reg_buffer.
15040         (regcache_raw_set_cached_value): Remove.
15041         (regcache::raw_set_cached_value): Remove.
15042         (regcache::raw_write): Call raw_supply.
15043         (regcache::raw_supply): Move it to reg_buffer_rw.
15044         * regcache.h (regcache_raw_set_cached_value): Remove.
15045         (reg_buffer_rw): New class.
15046
15047 2018-02-21  Yao Qi  <yao.qi@linaro.org>
15048
15049         * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
15050         readonly_detached_regcache.
15051         (dummy_frame_prev_register): Use regcache->cooked_read.
15052         * frame.c (frame_save_as_regcache): Change return type.
15053         (frame_pop): Update.
15054         * frame.h (frame_save_as_regcache): Update declaration.
15055         * inferior.h (get_infcall_suspend_state_regcache): Update
15056         declaration.
15057         * infrun.c (infcall_suspend_state) <registers>: use
15058         readonly_detached_regcache.
15059         (save_infcall_suspend_state): Don't use regcache_dup.
15060         (get_infcall_suspend_state_regcache): Change return type.
15061         * linux-fork.c (struct fork_info) <savedregs>: Change to
15062         readonly_detached_regcache.
15063         <pc>: New field.
15064         (fork_save_infrun_state): Don't use regcache_dup.
15065         (info_checkpoints_command): Adjust.
15066         * mi/mi-main.c (register_changed_p): Update declaration.
15067         (mi_cmd_data_list_changed_registers): Use
15068         readonly_detached_regcache.
15069         (register_changed_p): Change parameter type to
15070         readonly_detached_regcache.
15071         * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
15072         readonly_detached_regcache.
15073         (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
15074         * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
15075         New.
15076         (regcache::save): Move it to reg_buffer.
15077         (regcache::restore): Change parameter type.
15078         (regcache_dup): Remove.
15079         * regcache.h (reg_buffer) <save>: New method.
15080         (readonly_detached_regcache): New class.
15081         * spu-tdep.c (spu2ppu_cache) <regcache>: Use
15082         readonly_detached_regcache.
15083         (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
15084
15085 2018-02-21  Yao Qi  <yao.qi@linaro.org>
15086
15087         * frame.c (frame_save_as_regcache): Use regcache method save.
15088         (frame_pop): Use regcache method restore.
15089         * infrun.c (restore_infcall_suspend_state): Likewise.
15090         * linux-fork.c (fork_load_infrun_state): Likewise.
15091         * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
15092         save.
15093         * regcache.c (regcache_save): Remove.
15094         (regcache::restore): More asserts.
15095         (regcache_cpy): Remove.
15096         * regcache.h (regcache_save): Remove the declaration.
15097         (regcache::restore): Move from private to public.
15098         Remove the friend declaration of regcache_cpy.
15099         (regcache_cpy): Remove declaration.
15100
15101 2018-02-21  Yao Qi  <yao.qi@linaro.org>
15102
15103         * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
15104         parameter type to 'readable_regcache *'.
15105         * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
15106         * arm-tdep.c (arm_neon_quad_read): Likewise.
15107         (arm_pseudo_read): Likewise.
15108         * avr-tdep.c (avr_pseudo_register_read): Likewise.
15109         * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
15110         * frv-tdep.c (frv_pseudo_register_read): Likewise.
15111         * gdbarch.c: Re-generated.
15112         * gdbarch.h: Re-generated.
15113         * gdbarch.sh (pseudo_register_read): Change parameter type to
15114         'readable_regcache *'.
15115         (pseudo_register_read_value): Likewise.
15116         * h8300-tdep.c (pseudo_from_raw_register): Likewise.
15117         (h8300_pseudo_register_read): Likewise.
15118         * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
15119         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
15120         (i386_pseudo_register_read_into_value): Likewise.
15121         (i386_pseudo_register_read_value): Likewise.
15122         * i386-tdep.h (i386_pseudo_register_read_into_value): Update
15123         declaration.
15124         * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
15125         * m32c-tdep.c (m32c_raw_read): Likewise.
15126         (m32c_read_flg): Likewise.
15127         (m32c_banked_register): Likewise.
15128         (m32c_banked_read): Likewise.
15129         (m32c_sb_read): Likewise.
15130         (m32c_part_read): Likewise.
15131         (m32c_cat_read): Likewise.
15132         (m32c_r3r2r1r0_read): Likewise.
15133         (m32c_pseudo_register_read): Likewise.
15134         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
15135         * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
15136         (mep_pseudo_cr64_read): Likewise.
15137         (mep_pseudo_register_read): Likewise.
15138         * mips-tdep.c (mips_pseudo_register_read): Likewise.
15139         * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
15140         * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
15141         * regcache.c (regcache::raw_read): Move it to readable_regcache.
15142         (regcache::cooked_read): Likewise.
15143         (regcache::cooked_read_value): Likewise.
15144         (regcache_cooked_read_signed):
15145         (regcache::cooked_read): Likewise.
15146         * regcache.h (readable_regcache): New class.
15147         (regcache): Inherit readable_regcache.  Move some methods to
15148         readable_regcache.
15149         * rl78-tdep.c (rl78_pseudo_register_read): Change
15150         parameter type to 'readable_regcache *'.
15151         * rs6000-tdep.c (do_regcache_raw_read): Remove.
15152         (e500_pseudo_register_read): Change parameter type to
15153         'readable_regcache *'.
15154         (dfp_pseudo_register_read): Likewise.
15155         (vsx_pseudo_register_read): Likewise.
15156         (efpr_pseudo_register_read): Likewise.
15157         * s390-tdep.c (s390_pseudo_register_read): Likewise.
15158         * sh-tdep.c (sh_pseudo_register_read): Likewise.
15159         * sh64-tdep.c (pseudo_register_read_portions): Likewise.
15160         (sh64_pseudo_register_read): Likewise.
15161         * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
15162         * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
15163         * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
15164         (spu_pseudo_register_read): Likewise.
15165         * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
15166         (xtensa_pseudo_register_read): Likewise.
15167
15168 2018-02-21  Yao Qi  <yao.qi@linaro.org>
15169
15170         * regcache.c (regcache::regcache): Call reg_buffer ctor.
15171         (regcache::arch): Move it to reg_buffer::arch.
15172         (regcache::register_buffer): Likewise.
15173         (regcache::assert_regnum): Likewise.
15174         (regcache::num_raw_registers): Likewise.
15175         * regcache.h (reg_buffer): New class.
15176         (regcache): Inherit reg_buffer.
15177
15178 2018-02-20  Simon Marchi  <simon.marchi@ericsson.com>
15179
15180         * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
15181         gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
15182
15183 2018-02-20  Markus Metzger  <markus.t.metzger@intel.com>
15184
15185         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
15186
15187 2018-02-19  Alan Hayward  <alan.hayward@arm.com>
15188
15189         * Makefile.in: (COMMON_SFILES): Add common/*.c files.
15190         (SFILES): Remove common/*.c files.
15191         (COMMON_OBS): Remove some *.o files built from common/*.c files.
15192         * common/common.host: Add common reference.
15193         * configure.ac: Likewise.
15194         * configure: Regenerate.
15195
15196 2018-02-16  Yao Qi  <yao.qi@linaro.org>
15197
15198         * block.c (block_namespace_info): Inherit allocate_on_obstack.
15199         (block_initialize_namespace): Use new.
15200         * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
15201         (dwarf2_free_objfile): Use delete.
15202         * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
15203         (copy_type_recursive): Use new.
15204         * gdb_obstack.h (allocate_on_obstack): New.
15205
15206 2018-02-15  Yao Qi  <yao.qi@linaro.org>
15207
15208         PR gdb/22849
15209         * inferior.c (exit_inferior_1): Reset inf->control.
15210
15211 2018-02-15  Joel Brobecker  <brobecker@adacore.com>
15212
15213         * ada-lang.c (ada_to_fixed_value_create): Delete advance
15214         declaration.
15215
15216 2018-02-14  Pedro Alves  <palves@redhat.com>
15217
15218         * frame-unwind.c (frame_unwind_try_unwinder): Always call
15219         frame_cleanup_after_sniffer on exception.
15220
15221 2018-02-14  Tom Tromey  <tom@tromey.com>
15222
15223         * solist.h (struct target_so_ops) <bfd_open>: Make pathname
15224         const.
15225         (solib_bfd_open): Make pathname const.
15226         * solib.c (solib_bfd_open): Make pathname const.
15227         * solib-spu.c (spu_bfd_fopen): Make name const.
15228         (spu_bfd_open): Make pathname const.
15229         * solib-darwin.c (darwin_bfd_open): Make pathname const.
15230         * solib-aix.c (solib_aix_bfd_open): Make pathname const.
15231
15232 2018-02-14  Tom Tromey  <tom@tromey.com>
15233
15234         * symfile.c (symfile_bfd_open): Update.
15235         * source.h (openp, source_full_path_of, find_and_open_source):
15236         Change argument type to unique_xmalloc_ptr.
15237         * source.c (openp): Take a unique_xmalloc_ptr.
15238         (source_full_path_of, find_and_open_source): Likewise.
15239         (open_source_file, symtab_to_fullname): Update.
15240         * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
15241         unique_xmalloc_ptr.
15242         * solib.c (solib_find_1): Use unique_xmalloc_ptr.
15243         (exec_file_find): Update.
15244         * psymtab.c (psymtab_to_fullname): Update.
15245         * nto-tdep.h (nto_find_and_open_solib): Update.
15246         * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
15247         unique_xmalloc_ptr.
15248         * exec.c (exec_file_attach): Update.
15249         * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
15250         * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
15251
15252 2018-02-14  Tom Tromey  <tom@tromey.com>
15253
15254         * solib.c: Include source.h.
15255         * nto-tdep.c: Include source.h.
15256         * mi/mi-cmd-env.c: Include source.h.
15257         * infcmd.c: Include source.h.
15258         * exec.c: Include source.h.
15259         * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
15260         (add_path, directory_switch, source_path, init_source_path): Move
15261         declarations...
15262         * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
15263         (add_path, directory_switch, source_path, init_source_path):
15264         ...here.
15265
15266 2018-02-14  Tom Tromey  <tom@tromey.com>
15267
15268         * solist.h (exec_file_find, solib_find): Return
15269         unique_xmalloc_ptr.
15270         (solib_bfd_fopen): Take a const char *.
15271         * solib.c (solib_find_1): Return unique_xmalloc_ptr.
15272         (exec_file_find, solib_find): Likewise.
15273         (solib_bfd_fopen): Do not take ownership of "pathname".
15274         (solib_bfd_open): Use unique_xmalloc_ptr.
15275         * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
15276         * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
15277         * infrun.c (follow_exec): Use unique_xmalloc_ptr.
15278         * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
15279
15280 2018-02-14  Joel Brobecker  <brobecker@adacore.com>
15281
15282         * ada-lang.c (name_match_type_from_name): Remove reference to
15283         ada_name_for_lookup in function's documentation.
15284         * ada-lang.h (ada_name_for_lookup): Delete declaration.
15285
15286 2018-02-13  Simon Marchi  <simon.marchi@polymtl.ca>
15287
15288         * defs.h (enum openp_flags): New enum.
15289         (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
15290         Move to enum openp_flags.
15291         (openp_flags): New enum flags.
15292         (openp): Change parameter type to openp_flags.
15293         * source.c (openp): Change parameter type to openp_flags.
15294         * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
15295         * dwarf2read.c (try_open_dwop_file): Use openp_flags.
15296
15297 2018-02-13  Simon Marchi  <simon.marchi@polymtl.ca>
15298
15299         * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
15300         per-command.
15301
15302 2018-02-12  Andrew Burgess  <andrew.burgess@embecosm.com>
15303
15304         * dwarf2read.c (dwarf2_release_queue): Delete function, move body
15305         into...
15306         (class dwarf2_queue_guard): ...the destructor of this new class.
15307         (dw2_do_instantiate_symtab): Create instance of the new class
15308         dwarf2_queue_guard, remove cleanup.
15309
15310 2018-02-09  Tom Tromey  <tom@tromey.com>
15311
15312         * source.c (find_source_lines): Don't reference past the end of
15313         the vector.
15314
15315 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
15316
15317         * remote.c (remote_btrace_maybe_reopen): Change error message.
15318         * btrace.c (btrace_enable): Likewise.
15319         (parse_xml_btrace): Likewise.
15320         (parse_xml_btrace_conf): Likewise.
15321
15322 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
15323
15324         * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
15325         (linux_enable_pt, linux_enable_bts): Call
15326         diagnose_perf_event_open_fail.
15327
15328 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
15329
15330         * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
15331         Remove parameter and change return type.  Update callers.  Move it.
15332         (linux_enable_bts, linux_enable_pt): Improve error message.
15333         (linux_enable_pt): Remove zero buffer size check.
15334         (linux_enable_btrace): Improve error messages.  Remove NULL return
15335         check.
15336
15337 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
15338
15339         * btrace.c (btrace_enable): Remove target_supports_btrace call.
15340         * nat/linux-btrace.c (perf_event_pt_event_type): Move.
15341         (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
15342         (linux_supports_pt, linux_supports_btrace): Remove.
15343         (linux_enable_bts): Call cpu_supports_bts.
15344         * nat/linux-btrace.h (linux_supports_btrace): Remove.
15345         * remote.c (remote_supports_btrace): Remove.
15346         (init_remote_ops): Remove remote_supports_btrace.
15347         * target-delegates.c: Regenerated.
15348         * target.c (target_supports_btrace): Remove.
15349         * target.h (target_ops) <to_supports_btrace>: Remove
15350         (target_supports_btrace): Remove.
15351         * x86-linux-nat.c (x86_linux_create_target): Remove
15352         linux_supports_btrace.
15353
15354 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
15355
15356         * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
15357         btrace failed.
15358         * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
15359         exception and use message in own exception.
15360
15361 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
15362
15363         * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
15364         (perf_event_pt_event_type): Use gdb_file_up.
15365         (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
15366         scoped_fd, and scoped_mmap.
15367
15368 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
15369
15370         * common/scoped_mmap.h: New.
15371         * unittests/scoped_mmap-selftest.c: New.
15372         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15373         unittests/scoped_mmap-selftest.c.
15374
15375 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
15376
15377         * common/scoped_fd.h: New.
15378         * unittests/scoped_fd-selftest.c: New.
15379         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15380         unittests/scoped_fd-selftest.c.
15381
15382 2018-02-09  Tom Tromey  <tom@tromey.com>
15383
15384         * auto-load.c (auto_load_section_scripts): Use
15385         gdb::unique_xmalloc_ptr.
15386
15387 2018-02-09  Tom Tromey  <tom@tromey.com>
15388
15389         * auto-load.c (execute_script_contents): Use std::string.
15390
15391 2018-02-09  Joel Brobecker  <brobecker@adacore.com>
15392
15393         * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
15394         Python function, rather than a new command.
15395
15396 2018-02-08  Tom Tromey  <tom@tromey.com>
15397
15398         * solib.c (solib_find_1): Use std::string.
15399         (solib_bfd_fopen): Use unique_xmalloc_ptr.
15400
15401 2018-02-08  Tom Tromey  <tom@tromey.com>
15402
15403         * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
15404
15405 2018-02-08  Tom Tromey  <tom@tromey.com>
15406
15407         * source.c (find_source_lines): Use gdb::def_vector.
15408
15409 2018-02-08  Tom Tromey  <tom@tromey.com>
15410
15411         * macrocmd.c (struct temporary_macro_definition): New.
15412         (macro_define_command): Use temporary_macro_definition.  Remove
15413         cleanups.
15414         (free_macro_definition_ptr): Remove.
15415
15416 2018-02-08  Tom Tromey  <tom@tromey.com>
15417
15418         * macroexp.c (maybe_expand): Use std::string.
15419
15420 2018-02-08  Tom Tromey  <tom@tromey.com>
15421
15422         * macroexp.c (struct macro_buffer): Add initializers for some
15423         members.
15424         (init_buffer, init_shared_buffer, free_buffer)
15425         (free_buffer_return_text): Remove.
15426         (macro_buffer): New constructors.
15427         (~macro_buffer): New destructor.
15428         (macro_buffer::set_shared): New method.
15429         (macro_buffer::resize_buffer, macro_buffer::appendc)
15430         (macro_buffer::appendmem): Now methods, not free functions.
15431         (set_token, append_tokens_without_splicing, stringify)
15432         (macro_stringify): Update.
15433         (gather_arguments): Change return type.  Remove argc_p argument,
15434         add args_ptr argument.  Use std::vector.
15435         (substitute_args): Remove argc argument.  Accept std::vector.
15436         (expand): Update.  Use std::vector.
15437         (scan, macro_expand, macro_expand_next): Update.
15438
15439 2018-02-08  Tom Tromey  <tom@tromey.com>
15440
15441         * symtab.c (default_collect_symbol_completion_matches_break_on):
15442         Use unique_xmalloc_ptr.
15443         * macroscope.h: (sal_macro_scope, user_macro_scope)
15444         (default_macro_scope): Return unique_xmalloc_ptr.
15445         * macroscope.c (sal_macro_scope, user_macro_scope)
15446         (default_macro_scope): Return unique_xmalloc_ptr.
15447         * macroexp.h (macro_expand, macro_expand_once): Return
15448         unique_xmalloc_ptr.
15449         * macroexp.c (macro_expand, macro_expand_once): Return
15450         unique_xmalloc_ptr.
15451         * macrocmd.c (macro_expand_command, macro_expand_once_command)
15452         (info_macro_command, info_macros_command): Use
15453         unique_xmalloc_ptr.
15454         * compile/compile-c-support.c (write_macro_definitions): Use
15455         unique_xmalloc_ptr.
15456         * c-exp.y (c_parse): Use unique_xmalloc_ptr.
15457
15458 2018-02-07  Simon Marchi  <simon.marchi@ericsson.com>
15459
15460         * value.c (value_static_field): Assign field type instead of
15461         containing type when returning an optimized out value.
15462
15463 2018-02-06  Yao Qi  <yao.qi@linaro.org>
15464
15465         * ft32-tdep.c (ft32_read_pc): Remove.
15466         (ft32_write_pc): Remove.
15467         (ft32_gdbarch_init): Update.
15468         * m32r-tdep.c (m32r_read_pc): Remove.
15469         (m32r_gdbarch_init): Update.
15470         * mep-tdep.c (mep_read_pc): Remove.
15471         (mep_gdbarch_init): Update.
15472         * microblaze-tdep.c (microblaze_write_pc): Remove.
15473         (microblaze_gdbarch_init): Update.
15474         * mn10300-tdep.c (mn10300_read_pc): Remove.
15475         (mn10300_write_pc): Remove.
15476         (mn10300_gdbarch_init): Update.
15477         * moxie-tdep.c (moxie_read_pc): Remove.
15478         (moxie_write_pc): Remove.
15479         (moxie_gdbarch_init): Update.
15480
15481 2018-02-06  Yao Qi  <yao.qi@linaro.org>
15482
15483         * expprint.c (print_subexp_standard): Handle
15484         OP_F77_UNDETERMINED_ARGLIST.
15485         (dump_subexp_body_standard): Likewise.
15486
15487 2018-02-05  Alan Hayward  <alan.hayward@arm.com>
15488
15489         * target-descriptions.c (tdesc_element_visitor) Add empty
15490         implementations.
15491         (tdesc_type): Move make_gdb_type from here.
15492         (tdesc_type_builtin): Likewise.
15493         (tdesc_type_vector): Likewise.
15494         (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
15495         (make_gdb_type_struct): Move from tdesc_type_with_fields.
15496         (make_gdb_type_union): Likewise.
15497         (make_gdb_type_flags): Likewise.
15498         (make_gdb_type_enum): Likewise.
15499         (make_gdb_type): New function.
15500         (tdesc_register_type): Use static make_gdb_type.
15501
15502 2018-02-05  Ruslan Kabatsayev <b7.10110111@gmail.com>
15503
15504         * infcmd.c (default_print_one_register_info): Align natural-format
15505         column values consistently one under another.
15506         (pad_to_column): New function.
15507
15508 2018-02-05  Joel Brobecker  <brobecker@adacore.com>
15509
15510         * dwarf2read.c (dwarf2_physname): Move commment.
15511
15512 2018-02-01  Leszek Swirski  <leszeks@google.com>
15513
15514         * varobj.c (varobj_formatted_print_options): Allow recursive
15515         pretty printing if pretty printing is enabled.
15516
15517 2018-02-01  Leszek Swirski  <leszeks@google.com>
15518
15519         * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
15520         names after a structop as a filename.
15521
15522 2018-02-01  Yao Qi  <yao.qi@linaro.org>
15523
15524         * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
15525         (arm_record_coproc_data_proc): Likewise.
15526
15527 2018-02-01  Yao Qi  <yao.qi@linaro.org>
15528
15529         * arm-tdep.c (arm_record_extension_space): Change ret to signed.
15530
15531 2018-01-31  Nikola Prica  <nikola.prica@rt-rk.com>
15532
15533         * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
15534         assign shifted lr_reg to fdata->lr_register when lr_reg is set.
15535
15536 2018-01-31  Pedro Alves  <palves@redhat.com>
15537
15538         * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
15539         * inflow.c (child_terminal_save_inferior): Wrap reference to
15540         tcgetpgrp in HAVE_TERMIOS_H.
15541         (child_interrupt, child_pass_ctrlc): Wrap references to signal in
15542         _WIN32.
15543         * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
15544         always iterate over all inferiors.
15545         (gdbsim_cntrl_c): Adjust.
15546         * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
15547
15548 2018-01-31  Joel Brobecker  <brobecker@adacore.com>
15549
15550         * gdbtypes.c (lookup_array_range_type): Make sure the array's
15551         index type is objfile-owned if the element type is as well.
15552
15553 2018-01-31  Joel Brobecker  <brobecker@adacore.com>
15554
15555         GDB 8.1 released.
15556
15557 2018-01-30  Philipp Rudo  <prudo@linux.vnet.ibm.com>
15558
15559         * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
15560         "features/s390x-linux64.c".
15561         (_initialize_s390_linux_tdep): Remove initialization of tdescs
15562         s390_linux32 and s390x_linux64.
15563         (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
15564         default tdesc.
15565         * s390-tdep.c: Include "features/s390-linux32.c" and
15566         "features/s390x-linux64.c".
15567         (s390_tdesc_valid): Add check for tdesc_has_registers.
15568         (s390_gdbarch_init): Make sure there is always a valid tdesc.
15569         (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
15570         tdesc_s390x_linux64.
15571         * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
15572         tdesc_s390x_linux64 to...
15573         * s390-tdep.h: ...here.
15574
15575 2018-01-30  Pedro Alves  <palves@redhat.com>
15576
15577         PR gdb/13211
15578         * config.in, configure: Regenerate.
15579         * configure.ac: Check for getpgid.
15580         * go32-nat.c (go32_pass_ctrlc): New.
15581         (go32_target): Install it.
15582         * inf-child.c (inf_child_target): Install
15583         child_terminal_save_inferior, child_pass_ctrlc and
15584         child_interrupt.
15585         * inf-ptrace.c (inf_ptrace_interrupt): Delete.
15586         (inf_ptrace_target): No longer install it.
15587         * infcmd.c (interrupt_target_1): Adjust.
15588         * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
15589         (child_interrupt): Declare.
15590         (inferior::terminal_state): New.
15591         * inflow.c (struct terminal_info): Update comments.
15592         (inferior_process_group): Delete.
15593         (terminal_is_ours): Delete.
15594         (gdb_tty_state): New.
15595         (child_terminal_init): Adjust.
15596         (is_gdb_terminal, sharing_input_terminal_1)
15597         (sharing_input_terminal): New functions.
15598         (child_terminal_inferior): Adjust.  Use sharing_input_terminal.
15599         Set the process's actual process group in the foreground if
15600         possible.  Handle is_ours_for_output/is_ours distinction.  Don't
15601         mark terminal as the inferior's if not sharing GDB's terminal.
15602         Don't check attach_flag.
15603         (child_terminal_ours_for_output, child_terminal_ours): Adjust to
15604         pass down a target_terminal_state.
15605         (child_terminal_save_inferior): New, factored out from ...
15606         (child_terminal_ours_1): ... this.  Handle
15607         target_terminal_state::is_ours_for_output.
15608         (child_interrupt, child_pass_ctrlc): New.
15609         (inflow_inferior_exit): Clear the inferior's terminal_state.
15610         (copy_terminal_info): Copy the inferior's terminal state.
15611         (_initialize_inflow): Remove reference to terminal_is_ours.
15612         * inflow.h (inferior_process_group): Delete.
15613         * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
15614         * procfs.c (procfs_target): Don't install procfs_interrupt.
15615         (procfs_interrupt): Delete.
15616         * remote.c (remote_serial_quit_handler): Adjust.
15617         (remote_interrupt): Remove ptid parameter.  Adjust.
15618         * target-delegates.c: Regenerate.
15619         * target.c: Include "terminal.h".
15620         (target_terminal::terminal_state): Rename to ...
15621         (target_terminal::m_terminal_state): ... this.
15622         (target_terminal::init): Adjust.
15623         (target_terminal::inferior): Adjust to per-inferior
15624         terminal_state.
15625         (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
15626         (target_terminal::ours, target_terminal::ours_for_output): Use
15627         target_terminal_is_ours_kind.
15628         (target_interrupt): Remove ptid parameter.  Adjust.
15629         (default_target_pass_ctrlc): Adjust.
15630         * target.h (target_ops::to_terminal_save_inferior): New field.
15631         (target_ops::to_interrupt): Remove ptid_t parameter.
15632         (target_interrupt): Remove ptid_t parameter.  Update comment.
15633         (target_pass_ctrlc): Update comment.
15634         * target/target.h (target_terminal_state): New scoped enum,
15635         factored out of ...
15636         (target_terminal::terminal_state): ... here.
15637         (target_terminal::inferior): Update comments.
15638         (target_terminal::restore_inferior): New.
15639         (target_terminal::is_inferior, target_terminal::is_ours)
15640         (target_terminal::is_ours_for_output): Adjust.
15641         (target_terminal::scoped_restore_terminal_state): Adjust to
15642         rename, and call restore_inferior() instead of inferior().
15643         (target_terminal::scoped_restore_terminal_state::m_state): Change
15644         type.
15645         (target_terminal::terminal_state): Rename to ...
15646         (target_terminal::m_terminal_state): ... this and change type.
15647
15648 2018-01-30  Pedro Alves  <palves@redhat.com>
15649
15650         * linux-nat.c (wait_for_signal): New function.
15651         (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
15652         directly.
15653         (async_terminal_is_ours)
15654         (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
15655         (linux_nat_add_target): Don't override
15656         to_terminal_inferior/to_terminal_ours.
15657
15658 2018-01-29  Sergio Durigan Junior  <sergiodj@redhat.com>
15659
15660         * remote.c (remote_follow_fork): Don't call "detach_inferior".
15661
15662 2018-01-28  Simon Marchi  <simon.marchi@ericsson.com>
15663
15664         * dwarf2read.c (free_dwo_files): Add forward-declaration.
15665         (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
15666         dwarf2_per_objfile_free here.
15667         (dwarf2_per_objfile_free): Remove.
15668         (_initialize_dwarf2_read): Don't register
15669         dwarf2_per_objfile_free as a registry cleanup.
15670
15671 2018-01-27  Eli Zaretskii  <eliz@gnu.org>
15672
15673         Avoid compilation errors in MinGW native builds
15674
15675         The error is triggered by including python-internal.h, and the
15676         error message is:
15677
15678              In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
15679                       from build-gnulib/import/math.h:27,
15680                       from d:/usr/Python26/include/pyport.h:235,
15681                       from d:/usr/Python26/include/Python.h:58,
15682                       from python/python-internal.h:94,
15683                       from python/py-arch.c:24:
15684              d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
15685         using ::hypot;
15686                 ^~~~~
15687
15688         This happens because Python headers define 'hypot' to expand t
15689         '_hypot' in the Windows builds.
15690         * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
15691         'hypoth'.  This avoids a compilation error.
15692
15693 2018-01-26  Alan Hayward  <alan.hayward@arm.com>
15694
15695         * MAINTAINERS (Write After Approval): Fix ordering.
15696
15697 2018-01-26  Alan Hayward  <alan.hayward@arm.com>
15698
15699         * MAINTAINERS (Write After Approval): Add Alan Hayward.
15700
15701 2018-01-26  Alan Modra  <amodra@gmail.com>
15702
15703         * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
15704         (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
15705         Remove nop.  Make const.  Comment.
15706         (powerpc32_plt_stub_so_2): New.
15707         (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
15708         Correct count.  Update uses.
15709         (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
15710         Move common code reading PLT entry word.  Correct
15711         powerpc32_plt_stub PLT address calculation.
15712         * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
15713         (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
15714         (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
15715         (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
15716         (ppc64_standard_linkage8): Likewise.
15717         * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
15718         Correct insns description.
15719         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
15720
15721 2018-01-24  Pedro Alves  <palves@redhat.com>
15722
15723         GCC PR libstdc++/83906
15724         * gdbtypes.c (operator==(const dynamic_prop &,
15725         const dynamic_prop &)): New.
15726         (operator==(const range_bounds &, const range_bounds &)): New.
15727         (check_types_equal): Use them instead of memcmp.
15728         * gdbtypes.h (operator==(const dynamic_prop &,
15729         const dynamic_prop &)): Declare.
15730         (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
15731         (operator==(const range_bounds &, const range_bounds &)): Declare.
15732         (operator!=(const range_bounds &, const range_bounds &)): Declare.
15733
15734 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
15735
15736         * s390-linux-tdep.c (s390_record_address_mask)
15737         (s390_record_calc_disp_common, s390_record_calc_disp)
15738         (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
15739         (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
15740         (s390_process_record): Move to s390-tdep.c.
15741         (s390_linux_init_abi_any): Adjust.
15742         * s390-tdep.c (s390_record_address_mask)
15743         (s390_record_calc_disp_common, s390_record_calc_disp)
15744         (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
15745         (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
15746         (s390_process_record): Moved from s390-linux-tdep.c
15747         (s390_gdbarch_init): Adjust.
15748
15749 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
15750
15751         * s390-linux-nat.c (s390-tdep.h): New include.
15752         * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
15753         (HFILES_NO_SRCDIR): Add s390-tdep.h.
15754         (ALLDEPFILES): Add s390-tdep.c.
15755         * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
15756         * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
15757         * s390-tdep.h: ...this.  New file.
15758         * s390-linux-tdep.c (s390-tdep.h): New include.
15759         (_initialize_s390_tdep): Rename to...
15760         (_initialize_s390_linux_tdep): ...this and adjust.
15761         (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
15762         (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
15763         s390-tdep.h.
15764         (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
15765         (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
15766         (s390_is_partial_instruction, s390_software_single_step)
15767         (is_non_branch_ril, s390_displaced_step_copy_insn)
15768         (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
15769         (s390_prologue_data, s390_addr, s390_store, s390_load)
15770         (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
15771         (s390_register_call_saved, s390_guess_tracepoint_registers)
15772         (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
15773         (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
15774         (s390_pseudo_register_name, s390_pseudo_register_type)
15775         (s390_pseudo_register_read, s390_pseudo_register_write)
15776         (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
15777         (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
15778         (s390_addr_bits_remove, s390_address_class_type_flags)
15779         (s390_address_class_type_flags_to_name)
15780         (s390_address_class_name_to_type_flags, s390_effective_inner_type)
15781         (s390_function_arg_float, s390_function_arg_vector)
15782         (is_power_of_two, s390_function_arg_integer, s390_arg_state)
15783         (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
15784         (s390_frame_align, s390_register_return_value, s390_return_value)
15785         (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
15786         (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
15787         (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
15788         (s390_trad_frame_prev_register, s390_unwind_cache)
15789         (s390_prologue_frame_unwind_cache)
15790         (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
15791         (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
15792         (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
15793         (s390_stub_frame_this_id, s390_stub_frame_prev_register)
15794         (s390_stub_frame_sniffer, s390_stub_frame_unwind)
15795         (s390_frame_base_address, s390_local_base_address)
15796         (s390_frame_base, s390_gcc_target_options)
15797         (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
15798         (s390_validate_reg_range, s390_tdesc_valid)
15799         (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
15800         * s390-tdep.c: ...this.  New file.
15801
15802 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
15803
15804         * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
15805         (s390_process_record, s390_gdbarch_tdep_alloc)
15806         (s390_linux_init_abi_any): Use/set new hook.
15807
15808 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
15809
15810         * s390-linux-tdep.c (osabi.h): New include.
15811         (s390_linux_init_abi_31, s390_linux_init_abi_64)
15812         (s390_linux_init_abi_any): New functions.
15813         (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
15814
15815 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
15816
15817         * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
15818         tdesc_has_registers check
15819
15820 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
15821
15822         * s390-linux-tdep.c (s390_tdesc_valid): New function.
15823         (s390_validate_reg_range): New macro.
15824         (s390_gdbarch_init): Adjust.
15825
15826 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
15827
15828         * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
15829         (s390_gdbarch_tdep_alloc): Adjust.
15830         (s390_gdbarch_init): Adjust.
15831
15832 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
15833
15834         * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
15835         <have_tdb>: Change type to bool.
15836         (s390_gdbarch_tdep_alloc): Adjust.
15837         (s390_gdbarch_init): Adjust.
15838
15839 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
15840
15841         * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
15842         (gdbarch_tdep) <have_upper, have_vx>: New fields.
15843         (s390_gdbarch_tdep_alloc): New function.
15844         (s390_gdbarch_init): Allocate tdep at start and use its fields
15845         instead of separate variables.
15846
15847 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
15848
15849         * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
15850         when looking for cached gdbarch and add comment for remaining.
15851
15852 2018-01-22  Pedro Alves  <palves@redhat.com>
15853             Sergio Durigan Junior  <sergiodj@redhat.com>
15854
15855         * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
15856         case.
15857
15858 2018-01-22  Maciej W. Rozycki  <macro@mips.com>
15859
15860         * MAINTAINERS: Update my company e-mail address.
15861
15862 2018-01-22  Yao Qi  <yao.qi@linaro.org>
15863
15864         * regcache.c (cooked_write_test): New function.
15865         (_initialize_regcache): Register the test.
15866
15867 2018-01-22  Yao Qi  <yao.qi@linaro.org>
15868
15869         * ia64-tdep.c (ia64_pseudo_register_read): Call
15870         regcache->cooked_read instead of regcache_cooked_read_unsigned.
15871         * m32c-tdep.c (m32c_cat_read): Likewise.
15872         (m32c_r3r2r1r0_read): Likewise.
15873         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
15874         * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
15875
15876 2018-01-22  Yao Qi  <yao.qi@linaro.org>
15877
15878         * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
15879         method raw_read instead of regcache_raw_read.
15880         * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
15881         * arm-tdep.c (arm_neon_quad_read): Likewise.
15882         * avr-tdep.c (avr_pseudo_register_read): Likewise.
15883         * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
15884         * frv-tdep.c (frv_pseudo_register_read): Likewise.
15885         * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
15886         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
15887         (i386_pseudo_register_read_into_value): Likewise.
15888         * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
15889         * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
15890         * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
15891         * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
15892         * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
15893         * sparc-tdep.c (sparc32_pseudo_register_read):  Likewise.
15894         * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
15895         * spu-tdep.c (spu_pseudo_register_read_spu):  Likewise.
15896         * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
15897
15898 2018-01-22  Yao Qi  <yao.qi@linaro.org>
15899
15900         * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
15901         * configure.tgt: Remove target mt.
15902         * mt-tdep.c: Remove.
15903         * regcache.c (cooked_read_test): Remove the check for mt.
15904
15905 2018-01-22  Yao Qi  <yao.qi@linaro.org>
15906
15907         * jit.c (jit_frame_prev_register): Call regcache::cooked_read
15908         instead of gdbarch_pseudo_register_read_value.
15909
15910 2018-01-22  Joel Brobecker  <brobecker@adacore.com>
15911
15912         * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
15913         language is Ada.
15914
15915 2018-01-22  Joel Brobecker  <brobecker@adacore.com>
15916
15917         * linespec.c (create_sals_line_offset): Remove code that preserved
15918         the symtab_and_line's line number.
15919
15920 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
15921
15922         * varobj.c (varobj_create): Don't set valid_block when creating a
15923         floating varobj.
15924
15925 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
15926
15927         * varobj.c (varobj_create): Remove out of date comment.
15928
15929 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
15930
15931         PR mi/20395
15932         * ada-exp.y (write_var_from_sym): Pass extra parameter when
15933         updating innermost block.
15934         * parse.c (innermost_block_tracker::update): Take extra type
15935         parameter, and check types match before updating innermost block.
15936         (write_dollar_variable): Update innermost block for registers.
15937         * parser-defs.h (enum innermost_block_tracker_type): New enum.
15938         (innermost_block_tracker::innermost_block_tracker): Initialise
15939         m_types member.
15940         (innermost_block_tracker::reset): Take type parameter.
15941         (innermost_block_tracker::update): Take type parameter, and pass
15942         type through as needed.
15943         (innermost_block_tracker::m_types): New member.
15944         * varobj.c (varobj_create): Pass type when reseting innermost
15945         block.
15946
15947 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
15948
15949         * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
15950         * ada-lang.c (resolve_subexp): Likewise.
15951         * breakpoint.c (set_breakpoint_condition) Likewise.
15952         (watch_command_1) Likewise.
15953         * c-exp.y (variable): Likewise.
15954         * d-exp.y (PrimaryExpression): Likewise.
15955         * f-exp.y (variable): Likewise.
15956         * go-exp.y (variable): Likewise.
15957         * m2-exp.y (variable): Likewise.
15958         * objfiles.c (objfile::~objfile): Likewise.
15959         * p-exp.y (variable): Likewise.
15960         * parse.c (innermost_block): Change type.
15961         * parser-defs.h (class innermost_block_tracker): New.
15962         (innermost_block): Change to innermost_block_tracker.
15963         * printcmd.c (display_command): Switch to innermost_block API.
15964         (do_one_display): Likewise.
15965         * rust-exp.y (do_one_display): Likewise.
15966         * symfile.c (clear_symtab_users): Likewise.
15967         * varobj.c (varobj_create): Switch to innermost_block API, replace
15968         use of innermost_block with block stored on varobj object.
15969
15970 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
15971
15972         * expression.h (innermost_block): Remove declaration.
15973         * varobj.c: Add 'parser-defs.h' include.
15974
15975 2018-01-19  Tom Tromey  <tom@tromey.com>
15976
15977         * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
15978         symbols in the static and global blocks.
15979
15980 2018-01-19  James Clarke  <jrtc27@jrtc27.com>
15981
15982         * nat/linux-ptrace.c: Remove unnecessary reinclusion of
15983         gdb_ptrace.h, and move including gdb_wait.h ...
15984         * nat/linux-ptrace.h: ... to here.
15985
15986 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
15987
15988         * inf-ptrace.c (inf_ptrace_detach): Adjust call to
15989         inf_ptrace_detach_success.
15990         (inf_ptrace_detach_success): Add inferior parameter, use it
15991         instead of inferior_ptid, pass it to detach_inferior.
15992         * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
15993         parameter.
15994         * inferior.c (detach_inferior): Add overload that takes an
15995         inferior object.
15996         * inferior.h (detach_inferior): Likewise.
15997         * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
15998         use inferior_ptid, adjust call to inf_ptrace_detach_success.
15999         * linux-thread-db.c (thread_db_detach): Use inf parameter.
16000
16001 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
16002
16003         * target.h (struct target_ops) <to_detach>: Add inferior
16004         parameter.
16005         (target_detach): Likewise.
16006         * target.c (dispose_inferior): Pass inferior down.
16007         (target_detach): Pass inferior down.  Assert that it is equal to
16008         the current inferior.
16009         * aix-thread.c (aix_thread_detach): Pass inferior down.
16010         * corefile.c (core_file_command): Pass current_inferior() down.
16011         * corelow.c (core_detach): Add inferior parameter.
16012         * darwin-nat.c (darwin_detach): Likewise.
16013         * gnu-nat.c (gnu_detach): Likewise.
16014         * inf-ptrace.c (inf_ptrace_detach): Likewise.
16015         * infcmd.c (detach_command): Pass current_inferior() down to
16016         target_detach.
16017         * infrun.c (follow_fork_inferior): Pass parent_inf to
16018         target_detach.
16019         (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
16020         target_detach.
16021         * linux-nat.c (linux_nat_detach): Add inferior parameter.
16022         * linux-thread-db.c (thread_db_detach): Likewise.
16023         * nto-procfs.c (procfs_detach): Likewise.
16024         * procfs.c (procfs_detach): Likewise.
16025         * record.c (record_detach): Likewise.
16026         * record.h (struct inferior): Forward-declare.
16027         (record_detach): Add inferior parameter.
16028         * remote-sim.c (gdbsim_detach): Likewise.
16029         * remote.c (remote_detach_1): Likewise.
16030         (remote_detach): Likewise.
16031         (extended_remote_detach): Likewise.
16032         * sol-thread.c (sol_thread_detach): Likewise.
16033         * target-debug.h (target_debug_print_inferior_p): New macro.
16034         * target-delegates.c: Re-generate.
16035         * top.c (kill_or_detach): Pass inferior down to target_detach.
16036         * windows-nat.c (windows_detach): Add inferior parameter.
16037
16038 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
16039
16040         * target.h (struct target_ops) <to_detach>: Remove args
16041         parameter.
16042         (target_detach): Likewise.
16043         * target.c (dispose_inferior): Adjust.
16044         (target_detach): Remove args parameter, adjust.
16045         * aix-thread.c (aix_thread_detach): Adjust.
16046         * corefile.c (core_file_command): Adjust.
16047         * corelow.c (core_detach): Adjust.
16048         * darwin-nat.c (darwin_detach): Adjust.
16049         * gnu-nat.c (gnu_detach): Adjust.
16050         * inf-ptrace.c (inf_ptrace_detach): Adjust.
16051         * infcmd.c (detach_command): Adjust
16052         * infrun.c (follow_fork_inferior): Adjust.
16053         (handle_vfork_child_exec_or_exit): Adjust.
16054         * linux-fork.c (linux_fork_detach): Remove args parameter.
16055         * linux-fork.h (linux_fork_detach): Likewise.
16056         * linux-nat.c (linux_nat_detach): Likewise, and adjust.
16057         * linux-thread-db.c (thread_db_detach): Likewise.
16058         * nto-procfs.c (procfs_detach): Likewise.
16059         * procfs.c (procfs_detach): Likewise.
16060         (do_detach): Remove signo parameter.
16061         * record.c (record_detach): Remove args parameter.
16062         * record.h (record_detach): Likewise.
16063         * remote-sim.c (gdbsim_detach): Likewise.
16064         * remote.c (remote_detach_1): Likewise.
16065         (remote_detach): Likewise.
16066         (extended_remote_detach): Likewise.
16067         * sol-thread.c (sol_thread_detach): Likewise.
16068         * target-delegates.c: Re-generate.
16069         * top.c (struct qt_args) <args>: Remove field.
16070         (kill_or_detach): Don't pass args.
16071         (quit_force): Don't set args.
16072         * windows-nat.c (windows_detach): Remove args parameter.
16073
16074 2018-01-19  Yao Qi  <yao.qi@linaro.org>
16075
16076         * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
16077         (arm_linux_init_abi): Install it.
16078
16079 2018-01-19  Yao Qi  <yao.qi@linaro.org>
16080
16081         * osabi.c (gdb_osabi_names): Extend the regexp for
16082         arm-linux-gnueabihf.
16083
16084 2018-01-18  Yao Qi  <yao.qi@linaro.org>
16085
16086         * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
16087         m_abbrevs.
16088         (abbrev_table::add_abbrev): Update.
16089         (abbrev_table::lookup_abbrev): Update.
16090
16091 2018-01-18  Yao Qi  <yao.qi@linaro.org>
16092
16093         * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
16094
16095 2018-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
16096
16097         * compile/compile.c (compile_to_object): Convert "triplet_rx"
16098         to "std::string".
16099
16100 2018-01-17  Tom Tromey  <tom@tromey.com>
16101
16102         * dwarf2read.c (symbolp): Remove typedef.  Don't instantiate VEC.
16103
16104 2018-01-17  Tom Tromey  <tom@tromey.com>
16105
16106         * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
16107         * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
16108         (create_array_type_with_stride): Update.
16109         * dwarf2read.c (set_die_type): Update.
16110
16111 2018-01-17  Tom Tromey  <tom@tromey.com>
16112
16113         * dwarf2read.c (delayed_method_info): Remove typedef.
16114         (dwarf2_cu::method_info): Now a std::vector.
16115         (add_to_method_list): Update.
16116         (free_delayed_list): Remove.
16117         (compute_delayed_physnames): Update.
16118         (process_full_comp_unit, process_full_type_unit): Clear the method
16119         list.  Remove cleanups.
16120         (psymtab_include_file_name): Add name_holder parameter.  Use
16121         unique_xmalloc_ptr.
16122         (dwarf_decode_lines): Update.
16123
16124 2018-01-17  Tom Tromey  <tom@tromey.com>
16125             Simon Marchi  <simon.marchi@ericsson.com>
16126
16127         * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
16128         (dwarf2_per_objfile::free_cached_comp_units)
16129         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
16130         (init_cutu_and_read_dies_no_follow): Update.
16131         (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
16132         (dwarf2_cu::~dwarf2_cu): New.
16133         (free_heap_comp_unit, free_stack_comp_unit): Remove.
16134         (age_cached_comp_units, free_one_cached_comp_unit): Update.
16135
16136 2018-01-17  Tom Tromey  <tom@tromey.com>
16137             Simon Marchi  <simon.marchi@ericsson.com>
16138
16139         * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
16140         (struct die_reader_specs) <abbrev_table>: New member.
16141         (struct abbrev_table): Add constructor.
16142         <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
16143         <abbrev_obstack>: Now an auto_obstack.
16144         (abbrev_table_up): New typedef.
16145         (init_cu_die_reader): Add abbrev_table parameter.
16146         (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
16147         Add result_dwo_abbrev_table.
16148         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
16149         (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
16150         Update.
16151         (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
16152         parameter.
16153         (skip_children): Update.
16154         (abbrev_table::alloc_abbrev): Rename from
16155         abbrev_table_alloc_abbrev.
16156         (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
16157         (abbrev_table::lookup_abbrev): Rename from
16158         abbrev_table_lookup_abbrev.
16159         (abbrev_table_read_table): Return abbrev_table_up.
16160         (abbrev_table_free, abbrev_table_free_cleanup)
16161         (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
16162         (load_partial_dies): Update.
16163
16164 2018-01-17  Tom Tromey  <tom@tromey.com>
16165
16166         * dwarf2read.c (dwarf2_compute_name): Update comment.
16167         (read_func_scope, read_variable): Update.
16168         (new_symbol): Remove.
16169         (new_symbol_full): Rename to new_symbol.
16170
16171 2018-01-17  Mike Gulick  <mgulick@mathworks.com>
16172
16173         PR gdb/16577
16174         * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
16175         a warning instead of throwing an error, set section size to 0 and return
16176         NULL.
16177         * gdb_bfd.h (gdb_bfd_map_section): Update description.
16178
16179 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
16180
16181         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
16182         std::string.
16183         (linux_ptrace_attach_fail_reason_string): Likewise.
16184         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
16185         Likewise.
16186         (linux_ptrace_attach_fail_reason_string): Likewise.
16187         * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
16188
16189 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
16190
16191         * linux-nat.c (linux_nat_attach): Remove xstrdup.
16192
16193 2018-01-17  Eldar Abusalimov  <eldar.abusalimov@jetbrains.com>
16194
16195         PR gdb/21559
16196         * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
16197         checking for fs_base/gs_base fields in struct user_regs_struct.
16198         * configure: Regenerate.
16199
16200 2018-01-17  Yao Qi  <yao.qi@linaro.org>
16201
16202         * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
16203         function.
16204         (aarch64_linux_init_abi): Install it to gdbarch hook
16205         gcc_target_options.
16206
16207 2018-01-15  Pedro Alves  <palves@redhat.com>
16208
16209         * common/signals-state-save-restore.c
16210         (save_original_signals_state): Fix typos.
16211
16212 2017-01-12  Tom Tromey  <tom@tromey.com>
16213             Sergio Durigan Junior  <sergiodj@redhat.com>
16214
16215         * Makefile.in (install-only): Install gdb-add-index.
16216
16217 2018-01-12  John Baldwin  <jhb@FreeBSD.org>
16218
16219         * fbsd-tdep.c (KVE_PROTECTION): Correct value.
16220
16221 2018-01-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
16222
16223         * infrun.c (keep_going_pass_signal): Clear step-over info when
16224         insert_breakpoints fails.
16225
16226 2018-01-11  Pedro Alves  <palves@redhat.com>
16227
16228         PR gdb/22583
16229         * infrun.c (resume): Rename to ...
16230         (resume_1): ... this.
16231         (resume): Reimplement as wrapper around resume_1.
16232
16233 2018-01-11  Pedro Alves  <palves@redhat.com>
16234
16235         PR remote/22597
16236         * remote.c (remote_parse_stop_reply): Default to the last-set
16237         general thread instead of to 'magic_null_ptid'.
16238
16239 2018-01-10  Pedro Alves  <palves@redhat.com>
16240
16241         * language.h (language_get_symbol_name_matcher): Rename ...
16242         (get_symbol_name_matcher): ... this.
16243         * language.c (language_get_symbol_name_matcher): Ditto.
16244         * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
16245         callers adjusted.
16246
16247 2018-01-10  Pedro Alves  <palves@redhat.com>
16248
16249         PR gdb/22670
16250         * dwarf2read.c
16251         (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
16252         Adjust to use language_get_symbol_name_matcher instead of
16253         language_defn::la_get_symbol_name_matcher.
16254         * language.c (language_get_symbol_name_matcher): If in Ada mode
16255         and the lookup name is a verbatim match, return Ada's matcher.
16256         * language.h (language_get_symbol_name_matcher): Adjust comment.
16257         (ada_lookup_name_info::verbatim_p):: New method.
16258
16259 2018-01-10  Pedro Alves  <palves@redhat.com>
16260
16261         PR gdb/22670
16262         * ada-lang.c (ada_collect_symbol_completion_matches): If the
16263         minsym's language is language_auto or language_cplus, pass down
16264         language_ada instead.
16265         * symtab.c (compare_symbol_name): Don't frob symbol language here.
16266
16267 2018-01-10  Pedro Alves  <palves@redhat.com>
16268
16269         PR gdb/22670
16270         * minsyms.c (linkage_name_str): New function.
16271         (iterate_over_minimal_symbols): Use it.
16272
16273 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
16274
16275         * NEWS: Document that 'info proc' now works on FreeBSD.
16276
16277 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
16278
16279         * configure.ac: Check for kinfo_getfile in libutil.
16280         * configure: Regenerate.
16281         * config.in: Regenerate.
16282         * fbsd-nat.c: Include "fbsd-tdep.h".
16283         (fbsd_fetch_cmdline): New.
16284         (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
16285         rather than calling error.
16286         (fbsd_info_proc): New.
16287         (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
16288         (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
16289         (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
16290
16291 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
16292
16293         * fbsd-nat.c (struct free_deleter): Remove.
16294         (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
16295
16296 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
16297
16298         * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
16299         NULL for an empty pathname.
16300
16301 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
16302
16303         * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
16304         (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
16305         (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
16306         (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
16307         (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
16308         (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
16309         (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
16310         (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
16311         (kinfo_proc_layout_32, kinfo_proc_layout_i386)
16312         (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
16313         (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
16314         (fbsd_core_fetch_timeval, fbsd_print_sigset)
16315         (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
16316         (fbsd_init_abi):  Install gdbarch "core_info_proc" method.
16317         * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
16318
16319 2018-01-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16320
16321         * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
16322         (gnu_xfer_auxv): New function.
16323         (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
16324         TARGET_OBJECT_AUXV.
16325
16326 2018-01-08  Yao Qi  <yao.qi@linaro.org>
16327             Simon Marchi  <simon.marchi@ericsson.com>
16328
16329         * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
16330         common/selftest.c.
16331         (COMMON_OBS): Remove selftest.o.
16332         * configure.ac: Append selftest-arch.c and common/selftest.c to
16333         CONFIG_SRCS.  Append selftest-arch.o and selftest.o to COMMON_OBS.
16334         * configure: Re-generated.
16335         * maint.c (maintenance_selftest): Wrap selftests::run_tests with
16336         GDB_SELF_TEST.
16337         (maintenance_info_selftests): Likewise.
16338
16339 2018-01-08  Xavier Roirand  <roirand@adacore.com>
16340
16341         * ada-valprint.c (val_print_packed_array_elements): Use
16342         proper number of elements when printing an array indexed
16343         by an enumeration type.
16344
16345 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
16346
16347         * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
16348         (dw2_get_file_names_reader): Adjust.
16349         (lookup_dwo_signatured_type): Adjust.
16350         (lookup_dwp_signatured_type): Adjust.
16351         (lookup_signatured_type): Adjust.
16352         (create_type_unit_group): Adjust.
16353         (get_type_unit_group): Adjust.
16354         (process_psymtab_comp_unit_reader): Adjust.
16355         (build_type_psymtabs_reader): Adjust.
16356         (scan_partial_symbols): Adjust.
16357         (add_partial_symbol): Adjust.
16358         (add_partial_subprogram): Adjust.
16359         (peek_die_abbrev): Adjust.
16360         (fixup_go_packaging): Adjust.
16361         (process_imported_unit_die): Adjust.
16362         (dwarf2_compute_name): Adjust.
16363         (dwarf2_physname): Adjust.
16364         (read_import_statement): Adjust.
16365         (handle_DW_AT_stmt_list): Adjust.
16366         (read_file_scope): Adjust.
16367         (read_func_scope): Adjust.
16368         (read_lexical_block_scope): Adjust.
16369         (read_call_site_scope): Adjust.
16370         (read_variable): Adjust.
16371         (dwarf2_rnglists_process): Adjust.
16372         (dwarf2_ranges_process): Adjust.
16373         (dwarf2_ranges_read): Adjust.
16374         (dwarf2_get_pc_bounds): Adjust.
16375         (dwarf2_record_block_ranges): Adjust.
16376         (dwarf2_add_field): Adjust.
16377         (dwarf2_add_member_fn): Adjust.
16378         (read_structure_type): Adjust.
16379         (process_structure_scope): Adjust.
16380         (read_enumeration_type): Adjust.
16381         (read_array_type): Adjust.
16382         (mark_common_block_symbol_computed): Adjust.
16383         (read_common_block): Adjust.
16384         (read_namespace_type): Adjust.
16385         (read_namespace): Adjust.
16386         (read_module_type): Adjust.
16387         (read_tag_pointer_type): Adjust.
16388         (read_tag_ptr_to_member_type): Adjust.
16389         (read_tag_string_type): Adjust.
16390         (read_subroutine_type): Adjust.
16391         (read_typedef): Adjust.
16392         (read_base_type): Adjust.
16393         (attr_to_dynamic_prop): Adjust.
16394         (read_subrange_type): Adjust.
16395         (read_unspecified_type): Adjust.
16396         (dwarf2_read_abbrevs): Adjust.
16397         (load_partial_dies): Adjust.
16398         (read_partial_die): Adjust.
16399         (find_partial_die): Adjust.
16400         (guess_partial_die_structure_name): Adjust.
16401         (fixup_partial_die): Adjust.
16402         (read_attribute_value): Adjust.
16403         (read_addr_index): Adjust.
16404         (read_addr_index_from_leb128): Adjust.
16405         (read_str_index): Adjust.
16406         (dwarf2_string_attr): Adjust.
16407         (get_debug_line_section): Adjust.
16408         (dwarf_decode_line_header): Adjust.
16409         (lnp_state_machine::check_line_address): Adjust.
16410         (dwarf_decode_lines_1): Adjust.
16411         (dwarf_decode_lines): Adjust.
16412         (dwarf2_start_symtab): Adjust.
16413         (var_decode_location): Adjust.
16414         (new_symbol_full): Adjust.
16415         (dwarf2_const_value_data): Adjust.
16416         (dwarf2_const_value_attr): Adjust.
16417         (dwarf2_const_value): Adjust.
16418         (die_type): Adjust.
16419         (die_containing_type): Adjust.
16420         (build_error_marker_type): Adjust.
16421         (lookup_die_type): Adjust.
16422         (guess_full_die_structure_name): Adjust.
16423         (anonymous_struct_prefix): Adjust.
16424         (determine_prefix): Adjust.
16425         (dwarf2_name): Adjust.
16426         (follow_die_ref_or_sig): Adjust.
16427         (follow_die_offset): Adjust.
16428         (follow_die_ref): Adjust.
16429         (follow_die_sig_1): Adjust.
16430         (follow_die_sig): Adjust.
16431         (get_signatured_type): Adjust.
16432         (get_DW_AT_signature_type): Adjust.
16433         (decode_locdesc): Adjust.
16434         (dwarf_decode_macros): Adjust.
16435         (cu_debug_loc_section): Adjust.
16436         (fill_in_loclist_baton): Adjust.
16437         (dwarf2_symbol_mark_computed): Adjust.
16438         (init_one_comp_unit): Don't assign
16439         dwarf2_cu::dwarf2_per_objfile.
16440         (set_die_type): Adjust.
16441
16442 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
16443
16444         * dwarf2read.c (struct mapped_debug_names): Add constructor.
16445         <dwarf2_per_objfile>: New field.
16446         (dwarf2_per_objfile): Remove global.
16447         (get_dwarf2_per_objfile): New function.
16448         (set_dwarf2_per_objfile): New function.
16449         (dwarf2_build_psymtabs_hard): Change objfile parameter to
16450         dwarf2_per_objfile.
16451         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
16452         (read_abbrev_offset): Likewise.
16453         (read_indirect_string): Likewise.
16454         (read_indirect_line_string): Likewise.
16455         (read_indirect_string_at_offset): Likewise.
16456         (read_indirect_string_from_dwz): Likewise.
16457         (dwarf2_find_containing_comp_unit): Change objfile parameter to
16458         dwarf2_per_objfile.
16459         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
16460         (create_all_comp_units): Change objfile parameter to
16461         dwarf2_per_objfile.
16462         (create_all_type_units): Likewise.
16463         (process_queue): Add dwarf2_per_objfile parameter.
16464         (read_and_check_comp_unit_head): Likewise.
16465         (lookup_dwo_unit_in_dwp): Likewise.
16466         (get_dwp_file): Likewise.
16467         (process_cu_includes): Likewise.
16468         (struct free_dwo_file_cleanup_data): New struct.
16469         (dwarf2_has_info): Use get_dwarf2_per_objfile and
16470         set_dwarf2_per_objfile.
16471         (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
16472         (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
16473         context, adjust calls.
16474         (dw2_instantiate_symtab): Likewise.
16475         (dw2_get_cutu): Add dwarf2_per_objfile parameter.
16476         (dw2_get_cu): Likewise.
16477         (create_cu_from_index_list): Change objfile parameter to
16478         dwarf2_per_objfile.
16479         (create_cus_from_index_list): Get dwarf2_per_objfile from
16480         context, adjust calls.
16481         (create_cus_from_index): Likewise.
16482         (create_signatured_type_table_from_index): Change objfile
16483         parameter to dwarf2_per_objfile.
16484         (create_signatured_type_table_from_debug_names): Change objfile
16485         parameter to dwarf2_per_objfile.
16486         (create_addrmap_from_index): Likewise.
16487         (create_addrmap_from_aranges): Likewise.
16488         (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
16489         (dw2_setup): Remove.
16490         (dw2_get_file_names_reader): Get dwarf2_per_objfile from
16491         context.
16492         (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
16493         get_dwarf2_per_objfile.
16494         (dw2_forget_cached_source_info): Likewise.
16495         (dw2_map_symtabs_matching_filename): Likewise.
16496         (struct dw2_symtab_iterator) <index>: Remove.
16497         <dwarf2_per_objfile>: New field.
16498         (dw2_symtab_iter_init): Replace index parameter with
16499         dwarf2_per_objfile.
16500         (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
16501         (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
16502         (dw2_print_stats): Likewise.
16503         (dw2_dump): Likewise.
16504         (dw2_expand_symtabs_for_function): Likewise.
16505         (dw2_expand_all_symtabs): Likewise.
16506         (dw2_expand_symtabs_with_fullname): Likewise.
16507         (dw2_expand_marked_cus): Replace index and objfile parameters
16508         with dwarf2_per_objfile.
16509         (dw_expand_symtabs_matching_file_matcher): Add
16510         dwarf2_per_objfile parameter and adjust calls.
16511         (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
16512         adjust calls.
16513         (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
16514         (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
16515         adjust calls.
16516         (create_cus_from_debug_names_list): Replace objfile parameter
16517         with dwarf2_per_objfile and adjust calls.
16518         (create_cus_from_debug_names): Likewise.
16519         (dwarf2_read_debug_names): Likewise.
16520         (mapped_debug_names::namei_to_name): Adjust call.
16521         (dw2_debug_names_iterator::next): Likewise.
16522         (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
16523         (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
16524         (dw2_debug_names_dump): Likewise.
16525         (dw2_debug_names_expand_symtabs_for_function): Likewise.
16526         (dw2_debug_names_expand_symtabs_matching): Likewise.
16527         (dwarf2_initialize_objfile): Likewise.
16528         (dwarf2_build_psymtabs): Likewise.
16529         (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
16530         this_cu.
16531         (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
16532         (read_and_check_comp_unit_head): Likewise.
16533         (read_abbrev_offset): Likewise.
16534         (create_debug_type_hash_table): Likewise.
16535         (create_debug_types_hash_table): Likewise.
16536         (create_all_type_units): Replace objfile parameter with
16537         dwarf2_per_objfile.
16538         (add_type_unit): Add dwarf2_per_objfile parameter.
16539         (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
16540         with dwarf2_per_objfile.
16541         (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
16542         (lookup_dwp_signatured_type): Likewise.
16543         (lookup_signatured_type): Likewise.
16544         (read_cutu_die_from_dwo): Likewise.
16545         (init_tu_and_read_dwo_dies): Likewise.
16546         (init_cutu_and_read_dies): Likewise.
16547         (init_cutu_and_read_dies_no_follow): Likewise.
16548         (allocate_type_unit_groups_table): Add objfile parameter.
16549         (create_type_unit_group): Use dwarf2_per_objfile from cu.
16550         (get_type_unit_group): Likewise.
16551         (process_psymtab_comp_unit): Update call.
16552         (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
16553         (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
16554         (print_tu_stats): Likewise.
16555         (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
16556         in void* parameter.
16557         (build_type_psymtabs): Change objfile parameter to
16558         dwarf2_per_objfile.
16559         (process_skeletonless_type_unit): Use dwarf2_per_objfile
16560         passed in void* parameter.
16561         (process_skeletonless_type_units): Change objfile parameter to
16562         dwarf2_per_objfile.
16563         (set_partial_user): Likewise.
16564         (dwarf2_build_psymtabs_hard): Likewise.
16565         (read_comp_units_from_section): Likewise.
16566         (create_all_comp_units): Likewise.
16567         (scan_partial_symbols): Update calls.
16568         (add_partial_symbol): Likewise.
16569         (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
16570         (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
16571         (process_queue): Add dwarf2_per_objfile parameter.
16572         (get_compunit_symtab): Use dwarf2_per_objfile from cu.
16573         (compute_compunit_symtab_includes): Likewise.
16574         (process_cu_includes): Add dwarf2_per_objfile parameter.
16575         (process_full_comp_unit): Use dwarf2_per_objfile from cu.
16576         (process_full_type_unit): Likewise.
16577         (process_imported_unit_die): Update call.
16578         (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
16579         (read_file_scope): Likewise.
16580         (allocate_dwo_file_hash_table): Add objfile parameter.
16581         (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
16582         (create_cus_hash_table): Likewise.
16583         (create_dwp_hash_table): Likewise.
16584         (create_dwo_unit_in_dwp_v1): Likewise.
16585         (create_dwp_v2_section): Likewise.
16586         (create_dwo_unit_in_dwp_v2): Likewise.
16587         (lookup_dwo_unit_in_dwp): Likewise.
16588         (try_open_dwop_file): Likewise.
16589         (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
16590         (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
16591         cleanup to include a reference to dwarf2_per_objfile.
16592         (open_dwp_file): Add dwarf2_per_objfile parameter.
16593         (open_and_init_dwp_file): Likewise.
16594         (get_dwp_file): Likewise.
16595         (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
16596         (queue_and_load_all_dwo_tus): Update call.
16597         (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
16598         data.
16599         (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
16600         (dwarf2_ranges_process): Likewise.
16601         (dwarf2_get_pc_bounds): Likewise.
16602         (mark_common_block_symbol_computed): Likewise.
16603         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
16604         (dwarf2_read_abbrevs): Update call.
16605         (read_partial_die): Use dwarf2_per_objfile from cu.
16606         (find_partial_die): Likewise.
16607         (fixup_partial_die): Likewise.
16608         (read_attribute_value): Likewise.
16609         (read_indirect_string_at_offset_from): Add objfile parameter.
16610         (read_indirect_string_at_offset): Add dwarf2_per_objfile
16611         parameter.
16612         (read_indirect_string_from_dwz): Add objfile parameter.
16613         (read_indirect_string): Add objfile parameter.
16614         (read_addr_index_1): Add dwarf2_per_objfile parameter.
16615         (read_addr_index): Use dwarf2_per_objfile from cu.
16616         (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
16617         call dw2_setup.
16618         (read_str_index): Use dwarf2_per_objfile from cu.
16619         (get_debug_line_section): Likewise.
16620         (read_formatted_entries): Add dwarf2_per_objfile parameter.
16621         (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
16622         (new_symbol_full): Use dwarf2_per_objfile from cu.
16623         (build_error_marker_type): Likewise.
16624         (lookup_die_type): Likewise.
16625         (determine_prefix): Likewise.
16626         (follow_die_offset): Likewise.
16627         (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
16628         (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
16629         (dwarf2_fetch_die_type_sect_off): Likewise.
16630         (dwarf2_get_die_type): Likewise.
16631         (follow_die_sig_1): Use dwarf2_per_objfile from cu.
16632         (get_signatured_type): Likewise.
16633         (get_DW_AT_signature_type): Likewise.
16634         (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
16635         (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
16636         (cu_debug_loc_section): Likewise.
16637         (fill_in_loclist_baton): Likewise.
16638         (dwarf2_symbol_mark_computed): Likewise.
16639         (dwarf2_find_containing_comp_unit): Change objfile parameter to
16640         dwarf2_per_objfile.
16641         (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
16642         parameter.
16643         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
16644         (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
16645         (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
16646         (set_die_type): Use dwarf2_free_objfile from cu.
16647         (get_die_type_at_offset): Likewise.
16648         (dwarf2_per_objfile_free): Don't assign global variable.
16649         (debug_names) <constructor>: Add dwarf2_per_objfile
16650         parameter, update m_debugstrlookup construction.
16651         (debug_names::debug_str_lookup): Add dwarf2_per_objfile
16652         parameter.
16653         <m_dwarf2_per_objfile>: New field.
16654         <lookup>: Use m_dwarf2_per_objfile.
16655         (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
16656         (psyms_seen_size): Likewise.
16657         (write_gdbindex): Replace objfile parameter with
16658         dwarf2_per_objfile.
16659         (write_debug_names): Likewise.
16660         (write_psymtabs_to_index): Likewise.
16661         (save_gdb_index_command): Use get_dwarf2_per_objfile, update
16662         calls.
16663
16664 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
16665
16666         * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
16667         <dwarf2_per_objfile>: New field.
16668         (struct dwarf2_per_cu_data) <objfile>: Remove.
16669         <dwarf2_per_objfile>: New field.
16670         (create_cu_from_index_list): Assign dwarf2_per_objfile instead
16671         of objfile.
16672         (create_signatured_type_table_from_index): Likewise.
16673         (create_debug_type_hash_table): Likewise.
16674         (fill_in_sig_entry_from_dwo_entry): Likewise.
16675         (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
16676         (create_type_unit_group): Assign dwarf2_per_objfile instead of
16677         objfile.
16678         (create_partial_symtab): Access objfile through
16679         dwarf2_per_objfile.
16680         (process_psymtab_comp_unit_reader): Likewise.
16681         (read_comp_units_from_section): Likewise.
16682         (scan_partial_symbols): Likewise.
16683         (add_partial_symbol): Likewise.
16684         (add_partial_subprogram): Likewise.
16685         (peek_die_abbrev): Likewise.
16686         (fixup_go_packaging): Likewise.
16687         (process_full_comp_unit): Likewise.
16688         (process_full_type_unit): Likewise.
16689         (process_imported_unit_die): Likewise.
16690         (dwarf2_compute_name): Likewise.
16691         (dwarf2_physname): Likewise.
16692         (read_import_statement): Likewise.
16693         (create_cus_hash_table): Assign dwarf2_physname instead of
16694         objfile.
16695         (read_func_scope): Access objfile through dwarf2_per_objfile.
16696         (read_lexical_block_scope): Likewise.
16697         (read_call_site_scope): Likewise.
16698         (read_variable): Likewise.
16699         (dwarf2_rnglists_process): Likewise.
16700         (dwarf2_ranges_process): Likewise.
16701         (dwarf2_ranges_read): Likewise.
16702         (dwarf2_record_block_ranges): Likewise.
16703         (dwarf2_add_field): Likewise.
16704         (dwarf2_add_member_fn): Likewise.
16705         (read_structure_type): Likewise.
16706         (process_structure_scope): Likewise.
16707         (read_enumeration_type): Likewise.
16708         (read_array_type): Likewise.
16709         (read_common_block): Likewise.
16710         (read_namespace_type): Likewise.
16711         (read_namespace): Likewise.
16712         (read_module_type): Likewise.
16713         (read_tag_pointer_type): Likewise.
16714         (read_tag_ptr_to_member_type): Likewise.
16715         (read_tag_string_type): Likewise.
16716         (read_subroutine_type): Likewise.
16717         (read_typedef): Likewise.
16718         (read_base_type): Likewise.
16719         (attr_to_dynamic_prop): Likewise.
16720         (read_subrange_type): Likewise.
16721         (read_unspecified_type): Likewise.
16722         (load_partial_dies): Likewise.
16723         (read_partial_die): Likewise.
16724         (find_partial_die): Likewise.
16725         (guess_partial_die_structure_name): Likewise.
16726         (fixup_partial_die): Likewise.
16727         (read_attribute_value): Likewise.
16728         (read_addr_index_from_leb128): Likewise.
16729         (dwarf2_read_addr_index): Likewise.
16730         (dwarf2_string_attr): Likewise.
16731         (lnp_state_machine::check_line_address): Likewise.
16732         (dwarf_decode_lines_1): Likewise.
16733         (dwarf_decode_lines): Likewise.
16734         (dwarf2_start_symtab): Likewise.
16735         (var_decode_location): Likewise.
16736         (new_symbol_full): Likewise.
16737         (dwarf2_const_value_data): Likewise.
16738         (dwarf2_const_value_attr): Likewise.
16739         (dwarf2_const_value): Likewise.
16740         (die_type): Likewise.
16741         (die_containing_type): Likewise.
16742         (lookup_die_type): Likewise.
16743         (guess_full_die_structure_name): Likewise.
16744         (anonymous_struct_prefix): Likewise.
16745         (dwarf2_name): Likewise.
16746         (follow_die_ref_or_sig): Likewise.
16747         (follow_die_offset): Likewise.
16748         (follow_die_ref): Likewise.
16749         (dwarf2_fetch_die_loc_sect_off): Likewise.
16750         (dwarf2_fetch_constant_bytes): Likewise.
16751         (dwarf2_fetch_die_type_sect_off): Likewise.
16752         (dwarf2_get_die_type): Likewise.
16753         (follow_die_sig): Likewise.
16754         (decode_locdesc): Likewise.
16755         (dwarf2_per_cu_objfile): Likewise.
16756         (dwarf2_per_cu_text_offset): Likewise.
16757         (init_one_comp_unit): Assign dwarf2_per_objfile instead of
16758         objfile.
16759         (set_die_type): Access objfile through
16760         dwarf2_per_objfile.
16761
16762 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
16763
16764         * valprint.c (converted_character_d): Remove typedef.
16765         (DEF_VEC_O (converted_character_d)): Remove.
16766         (count_next_character): Use std::vector.
16767         (print_converted_chars_to_obstack): Likewise.
16768         (generic_printstr): Likewise.
16769
16770 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
16771
16772         * xml-support.h (struct gdb_xml_value): Add constructor.
16773         <value>: Change type to unique_xmalloc_ptr.
16774         (gdb_xml_value_s): Remove typedef.
16775         (DEF_VEC_O (gdb_xml_value_s)): Remove.
16776         (gdb_xml_element_start_handler): Change parameter type to
16777         std::vector.
16778         (xml_find_attribute): Likewise.
16779         * xml-support.c (xml_find_attribute): Change parameter type to
16780         std::vector and adjust.
16781         (gdb_xml_values_cleanup): Remove.
16782         (gdb_xml_parser::start_element): Adjust to std::vector.
16783         (xinclude_start_include): Change paraeter type to std::vector
16784         and adjust.
16785         * btrace.c (check_xml_btrace_version): Likewise.
16786         (parse_xml_btrace_block): Likewise.
16787         (parse_xml_btrace_pt_config_cpu): Likewise.
16788         (parse_xml_btrace_pt): Likewise.
16789         (parse_xml_btrace_conf_bts): Likewise.
16790         (parse_xml_btrace_conf_pt): Likewise.
16791         * memory-map.c (memory_map_start_memory): Likewise.
16792         (memory_map_start_property): Likewise.
16793         * osdata.c (osdata_start_osdata): Likewise.
16794         (osdata_start_item): Likewise.
16795         (osdata_start_column): Likewise.
16796         * remote.c (start_thread): Likewise.
16797         * solib-aix.c (library_list_start_library): Likewise.
16798         (library_list_start_list): Likewise.
16799         * solib-svr4.c (library_list_start_library): Likewise.
16800         (svr4_library_list_start_list): Likewise.
16801         * solib-target.c (library_list_start_segment): Likewise.
16802         (library_list_start_section): Likewise.
16803         (library_list_start_library): Likewise.
16804         (library_list_start_list): Likewise.
16805         * tracepoint.c (traceframe_info_start_memory): Likewise.
16806         (traceframe_info_start_tvar): Likewise.
16807         * xml-syscall.c (syscall_start_syscall): Likewise.
16808         * xml-tdesc.c (tdesc_start_target): Likewise.
16809         (tdesc_start_feature): Likewise.
16810         (tdesc_start_reg): Likewise.
16811         (tdesc_start_union): Likewise.
16812         (tdesc_start_struct): Likewise.
16813         (tdesc_start_flags): Likewise.
16814         (tdesc_start_enum): Likewise.
16815         (tdesc_start_field): Likewise.
16816         (tdesc_start_enum_value): Likewise.
16817         (tdesc_start_vector): Likewise.
16818
16819 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
16820
16821         * extension.h (struct xmethod_worker) <clone>: Remove.
16822         * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
16823         Remove.
16824         (python_xmethod_worker::clone): Remove.
16825         * valops.c (find_overload_match): Use std::move instead of
16826         clone.
16827
16828 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
16829
16830         * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
16831         (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
16832         <free_xmethod_worker_data>: Remove.
16833         <get_matching_xmethod_workers>: Chance VEC to std::vector.
16834         <get_xmethod_arg_types>: Remove.
16835         <get_xmethod_result_type>: Remove.
16836         <invoke_xmethod>: Remove.
16837         * extension.c (new_xmethod_worker): Remove.
16838         (clone_xmethod_worker): Remove.
16839         (get_matching_xmethod_workers): Return void, pass std::vector by
16840         pointer.
16841         (get_xmethod_arg_types): Rename to...
16842         (xmethod_worker::get_arg_types): ... this, and adjust.
16843         (get_xmethod_result_type): Rename to...
16844         (xmethod_worker::get_result_type): ... this, and adjust.
16845         (invoke_xmethod): Remove.
16846         (free_xmethod_worker): Remove.
16847         (free_xmethod_worker_vec): Remove.
16848         * extension.h (enum ext_lang_rc): Move here from
16849         extension-priv.h.
16850         (struct xmethod_worker): Add constructor and destructor.
16851         <data>: Remove.
16852         <value>: Remove.
16853         <invoke, clone, do_get_result_type, do_get_arg_types>: New
16854         virtual pure methods.
16855         <get_arg_types, get_result_type>: New methods.
16856         (xmethod_worker_ptr): Remove typedef.
16857         (DEF_VEC_P (xmethod_worker_ptr)): Remove.
16858         (xmethod_worker_vec): Remove typedef.
16859         (xmethod_worker_up): New typedef.
16860         (invoke_xmethod): Remove.
16861         (clone_xmethod_worker): Remove.
16862         (free_xmethod_worker): Remove.
16863         (free_xmethod_worker_vec): Remove.
16864         (get_xmethod_arg_types): Remove.
16865         (get_xmethod_result_type): Remove.
16866         * valops.c (find_method_list): Use std::vector, don't use
16867         intermediate vector.
16868         (value_find_oload_method_list): Use std::vector.
16869         (find_overload_match): Use std::vector.
16870         (find_oload_champ): Use std::vector.
16871         * value.c (value_free): Use operator delete.
16872         (value_of_xmethod): Rename to...
16873         (value_from_xmethod): ... this.  Don't assign
16874         xmethod_worker::value, take rvalue-reference.
16875         (result_type_of_xmethod): Adjust.
16876         (call_xmethod): Adjust.
16877         * value.h: Include extension.h.
16878         (struct xmethod_worker): Don't forward-declare.
16879         (value_of_xmethod): Rename to...
16880         (value_from_xmethod): ... this, take rvalue-reference.
16881         * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
16882         (struct python_xmethod_worker): ... this, add constructor and
16883         destructor.
16884         <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
16885         (gdbpy_free_xmethod_worker_data): Rename to...
16886         (python_xmethod_worker::~python_xmethod_worker): ... this and
16887         adjust.
16888         (gdbpy_clone_xmethod_worker_data): Rename to...
16889         (python_xmethod_worker::clone): ... this and adjust.
16890         (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
16891         temporary vector.
16892         (gdbpy_get_xmethod_arg_types): Rename to...
16893         (python_xmethod_worker::do_get_arg_types): ... this and adjust.
16894         (gdbpy_get_xmethod_result_type): Rename to...
16895         (python_xmethod_worker::do_get_result_type): ... this and
16896         adjust.
16897         (gdbpy_invoke_xmethod): Rename to...
16898         (python_xmethod_worker::invoke): ... this and adjust.
16899         (new_python_xmethod_worker): Rename to...
16900         (python_xmethod_worker::python_xmethod_worker): ... this and
16901         adjust.
16902         * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
16903         Remove.
16904         (gdbpy_free_xmethod_worker_data): Remove.
16905         (gdbpy_get_matching_xmethod_workers): Use std::vector.
16906         (gdbpy_get_xmethod_arg_types): Remove.
16907         (gdbpy_get_xmethod_result_type): Remove.
16908         (gdbpy_invoke_xmethod): Remove.
16909         * python/python.c (python_extension_ops): Remove obsolete
16910         callbacks.
16911
16912 2018-01-05  Pedro Alves  <palves@redhat.com>
16913
16914         PR gdb/18653
16915         * common/signals-state-save-restore.c
16916         (save_original_signals_state): New parameter 'quiet'.  Warn if we
16917         find a custom handler preinstalled, instead of internal erroring.
16918         But only warn if !quiet.
16919         * common/signals-state-save-restore.h
16920         (save_original_signals_state): New parameter 'quiet'.
16921         * main.c (captured_main_1): Move save_original_signals_state call
16922         after option handling, and pass QUIET.
16923
16924 2018-01-05  Pedro Alves  <palves@redhat.com>
16925
16926         * spu-tdep.c (spu_catch_start): Pass
16927         symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
16928
16929 2018-01-05  Pedro Alves  <palves@redhat.com>
16930
16931         PR gdb/22670
16932         * ada-lang.c (literal_symbol_name_matcher): New function.
16933         (ada_get_symbol_name_matcher): Use it for
16934         symbol_name_match_type::SEARCH_NAME.
16935         * block.c (block_lookup_symbol): New parameter 'match_type'.  Pass
16936         it down instead of assuming symbol_name_match_type::FULL.
16937         * block.h (block_lookup_symbol): New parameter 'match_type'.
16938         * c-valprint.c (print_unpacked_pointer): Use
16939         lookup_symbol_search_name instead of lookup_symbol.
16940         * compile/compile-object-load.c (get_out_value_type): Pass down
16941         symbol_name_match_type::SEARCH_NAME.
16942         * cp-namespace.c (cp_basic_lookup_symbol): Pass down
16943         symbol_name_match_type::FULL.
16944         * cp-support.c (cp_get_symbol_name_matcher): Handle
16945         symbol_name_match_type::SEARCH_NAME.
16946         * infrun.c (insert_exception_resume_breakpoint): Use
16947         lookup_symbol_search_name.
16948         * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
16949         * psymtab.c (maintenance_check_psymtabs): Use
16950         symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
16951         * stack.c (print_frame_args): Use lookup_symbol_search_name and
16952         SYMBOL_SEARCH_NAME.
16953         * symtab.c (lookup_local_symbol): Don't demangle the lookup name
16954         if symbol_name_match_type::SEARCH_NAME.
16955         (lookup_symbol_in_language): Pass down
16956         symbol_name_match_type::FULL.
16957         (lookup_symbol_search_name): New.
16958         (lookup_language_this): Pass down
16959         symbol_name_match_type::SEARCH_NAME.
16960         (lookup_symbol_aux, lookup_local_symbol): New parameter
16961         'match_type'.  Pass it down.
16962         * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
16963         (lookup_symbol_search_name): New declaration.
16964         (lookup_symbol_in_block): New 'match_type' parameter.
16965
16966 2018-01-05  Pedro Alves  <palves@redhat.com>
16967
16968         PR gdb/22670
16969         * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
16970         ada_lookup_symbol.
16971         (ada_lookup_symbol): Reimplement in terms of
16972         ada_lookup_symbol_list, bits factored out from
16973         ada_lookup_encoded_symbol.
16974
16975 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
16976
16977         * ada-exp.y (write_object_renaming): When subscripting an array
16978         using a symbol as the index, pass the block in call to
16979         ada_lookup_encoded_symbol when looking that symbol up.
16980
16981 2018-01-05  Jerome Guitton  <guitton@adacore.com>
16982
16983         * ada-lang.c (ada_array_length): Use ada_index_type instead of
16984         TYPE_INDEX_TYPE.
16985
16986 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
16987
16988         * ada-lang.c (ada_to_fixed_value_create): Add handling of
16989         the case where VALUE_LVAL (val0) is not lval_memory.
16990
16991 2018-01-05  Xavier Roirand  <roirand@adacore.com>
16992
16993         * ada-valprint.c (print_optional_low_bound): Handle
16994         character-indexed array printing like boolean-indexed array
16995         printing.
16996
16997 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
16998
16999         * NEWS: Create a new section for the next release branch.
17000         Rename the section of the current branch, now that it has
17001         been cut.
17002
17003 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
17004
17005         GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
17006         * version.in: Bump version to 8.1.50.DATE-git.
17007
17008 2018-01-03  Xavier Roirand  <roirand@adacore.com>
17009
17010         * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
17011         Add field.
17012         * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
17013         Add field.
17014         (default_exception_support_info) <catch_handlers_sym>: Add field.
17015         (exception_support_info_fallback) <catch_handlers_sym>: Add field.
17016         (ada_exception_name_addr_1): Add "catch handlers" handling.
17017         (ada_exception_catchpoint_cond_string) <ex>: New parameter.
17018         Update all callers.
17019         (create_excep_cond_exprs) <ex>: Add parameter.
17020         (re_set_exception): Update create_excep_cond_exprs call.
17021         (print_it_exception, print_one_exception, print_mention_exception)
17022         (print_recreate_exception): Add "catch handler" handling.
17023         (allocate_location_catch_handlers, re_set_catch_handlers)
17024         (check_status_catch_handlers, print_it_catch_handlers)
17025         (print_one_catch_handlers, print_mention_catch_handlers)
17026         (print_recreate_catch_handlers): New function.
17027         (catch_handlers_breakpoint_ops): New variable.
17028         (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
17029         Add parameter.  Add "catch handler" handling.
17030         (ada_exception_sym_name, ada_exception_breakpoint_ops):
17031         Add "catch handler" handling.
17032         (ada_exception_catchpoint_cond_string): Add "catch handler"
17033         handling.
17034         (create_ada_exception_catchpoint): Update create_excep_cond_exprs
17035         call.
17036         (catch_ada_handlers_command): New function.
17037         (initialize_ada_catchpoint_ops): Initialize "catch handlers"
17038         operations structure.
17039         (_initialize_ada_language): Add "catch handlers" command entry.
17040         * NEWS: Document "catch handlers" feature.
17041
17042 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
17043
17044         * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
17045         account when creating the array type of the slice.
17046         (ada_value_slice): Likewise.
17047
17048 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
17049
17050         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
17051         New enum value.
17052         (create_array_type_with_stride): Add byte_stride_prop parameter.
17053         * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
17054         New parameter.  Update all callers in this file.
17055         (array_type_has_dynamic_stride): New function.
17056         (is_dynamic_type_internal, resolve_dynamic_array): Add handling
17057         of arrays with dynamic byte strides.
17058         * dwarf2read.c (read_array_type): Add support for dynamic
17059         DW_AT_byte_stride attributes.
17060
17061 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
17062
17063         * dwarf2read.c (read_unspecified_type): Treat
17064         DW_TAG_enumeration_type DIEs from Ada units as stubs.
17065
17066 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
17067
17068         Update copyright year range in all GDB files.
17069
17070 2018-01-01, 18  Joel Brobecker  <brobecker@adacore.com>
17071
17072         * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
17073         and gdb/testsuite/gdb.base/step-line.c.
17074
17075 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
17076
17077         * copyright.py (main): Dump the contents of
17078         MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
17079         even if BY_HAND is empty.
17080
17081 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
17082
17083         * top.c (print_gdb_version): Update Copyright year in version
17084         message.
17085
17086 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
17087
17088         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
17089
17090 For older changes see ChangeLog-2017.
17091 \f
17092 Local Variables:
17093 mode: change-log
17094 left-margin: 8
17095 fill-column: 74
17096 version-control: never
17097 coding: utf-8
17098 End: