Use kinfo_getfile to implement fdwalk on FreeBSD.
[external/binutils.git] / gdb / ChangeLog
1 2018-11-30  John Baldwin  <jhb@FreeBSD.org>
2
3         * common/filestuff.c [HAVE_KINFO_GETFILE]: Include headers.
4         (fdwalk) [HAVE_KINFO_GETFILE]: Use kinfo_getfile.
5
6 2018-11-30  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7             Simon Marchi  <simon.marchi@ericsson.com>
8
9         * linespec.c (symtab_vector_up): Remove.
10         (symtabs_from_filename): Change return type to std::vector.
11         (collect_symtabs_from_filename): Likewise.
12         (create_sals_line_offset): Assign return value of
13         collect_symtabs_from_filename to *ls->file_symtabs.
14         (convert_explicit_location_to_linespec): Remove call to release.
15         (parse_linespec): Likewise.
16         (symtab_collector) <symtab_collector>: Remove initialization of
17         m_symtabs.
18         <release_symtabs>: Change return type to std::vector<symtab *>.
19         <operator ()>: Adjust.
20
21 2018-11-30  John Baldwin  <jhb@FreeBSD.org>
22
23         * fbsd-nat.c [__FreeBSD_version >= 700009] (USE_SIGINFO): Macro
24         defined.
25         (union sigval32, struct siginfo32, fbsd_siginfo_size)
26         (fbsd_convert_siginfo): Make conditional on USE_SIGINFO instead
27         of KERN_PROC_AUXV and PT_LWPINFO.
28         (fbsd_nat_target::xfer_partial): Define method unconditionally.
29         Make TARGET_OBJECT_SIGNAL_INFO conditional on USE_SIGINFO.
30         Make TARGET_OBJECT_AUXV conditional on KERN_PROC_AUXV.
31         Make TARGET_OBJECT_FREEBSD_VMMAP and
32         TARGET_OBJECT_FREEBSD_PS_STRINGS conditional on KERN_PROC_VMMAP
33         and KERN_PROC_PS_STRINGS.
34         * fbsd-nat.h: Include <sys/proc.h>.
35         (fbsd_nat_target::xfer_partial): Declare method unconditionally.
36
37 2018-11-30  Andrew Burgess  <andrew.burgess@embecosm.com>
38
39         * riscv-linux-nat.c: Add 'inferior.h' and 'target-descriptions.h'
40         header files.
41         (riscv_linux_nat_target::read_description): New method.
42
43 2018-11-30  Andrew Burgess  <andrew.burgess@embecosm.com>
44
45         * arch/riscv.h (riscv_gdbarch_features::hash): New method.
46         * arch/riscv.c (struct riscv_gdbarch_features_hasher): New.
47         (riscv_tdesc_cache): New global.
48         (riscv_create_target_description): Look in the cache before
49         creating a new target description.
50
51 2018-11-30  Andrew Burgess  <andrew.burgess@embecosm.com>
52
53         * arch/riscv.h (riscv_gdb_features::operator==): New.
54         (riscv_gdb_features::operator!=): New.
55         * riscv-tdep.c (riscv_gdbarch_init): Make use of the inequality
56         operator.
57
58 2018-11-30  Andrew Burgess  <andrew.burgess@embecosm.com>
59
60         * arch/riscv.h (riscv_create_target_description): Make return type
61         const.
62         * arch/riscv.c (riscv_create_target_description): Likewise.
63         * riscv-tdep.c (riscv_find_default_target_description): Likewise.
64
65 2018-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
66             Keith Seitz  <keiths@redhat.com>
67             Tom Tromey  <tom@tromey.com>
68             Sergio Durigan Junior  <sergiodj@redhat.com>
69
70         https://bugzilla.redhat.com/show_bug.cgi?id=1613614
71         * dwarf2read.c (dwarf2_find_containing_comp_unit): Add
72         'mid_cu->length' to '*cu_off' when checking if 'sect_off' is
73         inside the CU.
74
75 2018-11-30  Pedro Alves  <palves@redhat.com>
76
77         * aix-thread.c (aix_thread_target) <aix_thread_target>: Delete.
78         <stratum>: New override.
79         * bfd-target.c (aix_thread_target) <aix_thread_target>: Delete.
80         <stratum>: New override.
81         * bsd-uthread.c (bsd_uthread_target) <bsd_uthread_target>: Delete.
82         <stratum>: New override.
83         * exec.c (exec_target) <exec_target>: Delete.
84         <stratum>: New override.
85         * gdbarch-selftests.c (register_to_value_test): Adjust to use the
86         stratum method instead of the to_stratum field.
87         * linux-thread-db.c (thread_db_target) <thread_db_target>: Delete.
88         <stratum>: New override.
89         (thread_db_target::thread_db_target): Delete.
90         * make-target-delegates (print_class): Don't print a ctor
91         declaration.  Print a stratum method override declaration.
92         * process-stratum-target.h (process_stratum_target)
93         <process_stratum_target>: Delete.
94         <stratum>: New override.
95         * ravenscar-thread.c (ravenscar_thread_target)
96         <ravenscar_thread_target>: Delete.
97         <stratum>: New override.
98         * record-btrace.c (record_btrace_target)
99         <record_btrace_target>: Delete.
100         <stratum>: New override.
101         * record-full.c (record_full_base_target)
102         <record_full_base_target>: Delete.
103         <stratum>: New override.
104         * record.c (record_disconnect, record_detach)
105         (record_mourn_inferior, record_kill): Adjust to use the stratum
106         method instead of the to_stratum field.
107         * regcache.c (cooked_read_test, cooked_write_test): Likewise.
108         * sol-thread.c (sol_thread_target)
109         <sol_thread_target>: Delete.
110         <stratum>: New override.
111         * spu-multiarch.c (spu_multiarch_target)
112         <spu_multiarch_target>: Delete.
113         <stratum>: New override.
114         * target-delegates.c: Regenerate.
115         * target.c (target_stack::push, target_stack::unpush)
116         (pop_all_targets_above, pop_all_targets_at_and_above)
117         (info_target_command, target_require_runnable)
118         (target_stack::find_beneath): Adjust to use the stratum method
119         instead of the to_stratum field.
120         (dummy_target::dummy_target): Delete.
121         (dummy_target::stratum): New.
122         (debug_target::debug_target): Delete.
123         (debug_target::stratum): New.
124         (maintenance_print_target_stack): Adjust to use the stratum method
125         instead of the to_stratum field.
126         * target.h (struct target_ops) <stratum>: New method.
127         <to_stratum>: Delete.
128         <is_pushed>: Adjust to use the stratum method
129         instead of the to_stratum field.
130
131 2018-11-30  Pedro Alves  <palves@redhat.com>
132
133         * corelow.c (core_target) <has_all_memory, has_execution>: New
134         overrides.
135         * inf-child.c (inf_child_target::has_all_memory)
136         (inf_child_target::has_memory, inf_child_target::has_stack)
137         (inf_child_target::has_registers)
138         (inf_child_target::has_execution): Delete.
139         * inf-child.h (inf_child_target) <has_all_memory, has_memory,
140         has_stack, has_registers, has_execution>: Delete.
141         * process-stratum-target.c
142         (process_stratum_target::has_all_memory)
143         (process_stratum_target::has_memory)
144         (process_stratum_target::has_stack)
145         (process_stratum_target::has_registers)
146         (process_stratum_target::has_execution): New.
147         * process-stratum-target.h (process_stratum_target)
148         <has_all_memory, has_memory, has_stack, has_registers,
149         has_execution>: New method overrides.
150         * ravenscar-thread.c (ravenscar_thread_target) <has_all_memory,
151         has_memory, has_stack, has_registers, has_execution>: Delete.
152         * remote-sim.c (gdbsim_target) <has_stack, has_registers,
153         has_execution>: Delete.
154         * remote.c (remote_target) <has_all_memory, has_memory, has_stack,
155         has_registers, has_execution>: Delete.
156         * target.c (default_child_has_all_memory)
157         (default_child_has_memory, default_child_has_stack)
158         (default_child_has_registers, default_child_has_execution):
159         Delete.
160         * target.h (default_child_has_all_memory)
161         (default_child_has_memory, default_child_has_stack)
162         (default_child_has_registers, default_child_has_execution):
163         Delete.
164         * tracefile.h (tracefile_target) <has_execution>: New override.
165
166 2018-11-30  Pedro Alves  <palves@redhat.com>
167
168         * Makefile.in (COMMON_SFILES): Add process-stratum-target.c.
169         * bsd-kvm.c: Include "process-stratum-target.h".
170         (bsd_kvm_target): Now inherits from process_stratum_target.
171         (bsd_kvm_target::bsd_kvm_target): Default it.
172         * corelow.c: Include "process-stratum-target.h".
173         (core_target): Now inherits from process_stratum_target.
174         (core_target::core_target): Don't set to_stratum here.
175         * inf-child.c (inf_child_target::inf_child_target): Delete.
176         * inf-child.h: Include "process-stratum-target.h".
177         (inf_child_target): Inherit from process_stratum_target.
178         (inf_child_target) <inf_child_target>: Default it.
179         <can_async_p, supports_non_stop, supports_disable_randomization>:
180         Delete overrides.
181         * process-stratum-target.c: New file.
182         * process-stratum-target.h: New file.
183         * remote-sim.c: Include "process-stratum-target.h".
184         (gdbsim_target): Inherit from process_stratum_target.
185         <gdbsim_target>: Default it.
186         * remote.c: Include "process-stratum-target.h".
187         (remote_target): Inherit from process_stratum_target.
188         <remote_target>: Default it.
189         * target.c (default_thread_address_space)
190         (default_thread_architecture): Delete.
191         * target.h (target_ops) <thread_architecture>: Now returns NULL by
192         default.
193         <thread_address_space>: Ditto.
194         * test-target.h: Include "process-stratum-target.h" instead of
195         "target.h".
196         (test_target_ops): Inherit from process_stratum_target.
197         <test_target_ops>: Default it.
198         * tracefile.c (tracefile_target::tracefile_target): Delete.
199         * tracefile.h: Include "process-stratum-target.h".
200         (tracefile_target): Inherit from process_stratum_target.
201         <tracefile_target>: Default it.
202         * target-delegates.c: Regenerate.
203
204 2018-11-30  Pedro Alves  <palves@redhat.com>
205
206         * Makefile.in (COMMON_SFILES): Add test-target.c.
207         * gdbarch-selftests.c: Include "test-target.h".
208         * regcache.c: Include "test-target.h".
209         * target.c (test_target_info, test_target_ops::info): Move to ...
210         * test-target.c: ... this new file.
211         * target.h (test_target_ops): Move to ...
212         * test-target.h: ... this new file.
213
214 2018-11-29  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
215
216         * source.c (forward_search_command): Fix leak by using
217         xrealloc even for the first allocation in the loop, as buf
218         is static.
219
220 2018-11-29  Rajendra SY  <rajendra.sy@gmail.com>
221
222         PR gdb/23093
223         * gdb/fbsd-tdep.c (fbsd_gdb_signal_from_target)
224         (fbsd_gdb_signal_to_target): New.
225         (fbsd_init_abi): Install gdbarch "signal_from_target" and
226         "signal_to_target" methods.
227
228 2018-11-29  Tom Tromey  <tom@tromey.com>
229
230         * valarith.c (value_x_unop): Don't set argvec[3].
231
232 2018-11-26  Simon Marchi  <simon.marchi@ericsson.com>
233
234         PR gdb/23917
235         * sparc-linux-nat.c (sparc_linux_nat_target): Remove extraneous
236         semicolon.
237
238 2018-11-26  Pedro Alves  <palves@redhat.com>
239
240         * procfs.c (procfs_notice_thread): Replace uses of
241         in_thread_list/is_exited with find_thread_ptid/THREAD_EXITED.
242         * sol-thread.c (sol_thread_target::wait)
243         (sol_update_thread_list_callback): Likewise.
244
245 2018-11-25  Tom Tromey  <tom@tromey.com>
246
247         * ui-out.c (ui_out::field_fmt): Remove comment.
248         * tui/tui-out.c (tui_ui_out::do_field_fmt): Remove comment.
249         * mi/mi-out.c (mi_ui_out::do_field_fmt): Remove comment.
250
251 2018-11-24  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
252
253         * source.c (open_source_file): Leak fixed in '8e6a5953e1d Fix 4K
254         leak in open_source_file' has been partially undone by '2179fbc36d23
255         Return scoped_fd from open_source_file'. Re-add the transfer of
256         current s->fullname to the unique_xmalloc_ptr fullname given
257         to find_and_open_source.
258
259 2018-11-23  Pedro Alves  <palves@redhat.com>
260
261         * gdbthread.h (enum thread_state): Move comments here.
262         (is_running, is_stopped, is_exited): Remove declarations.
263
264 2018-11-22  Pedro Alves  <palves@redhat.com>
265
266         * Makefile.in (COMMON_SFILES): Add thread-iter.c.
267         * breakpoint.c (breakpoints_should_be_inserted_now): Replace
268         ALL_NON_EXITED_THREADS with all_non_exited_threads.
269         (print_one_breakpoint_location): Replace ALL_INFERIORS with
270         all_inferiors.
271         * bsd-kvm.c: Include inferior.h.
272         * btrace.c (btrace_free_objfile): Replace ALL_NON_EXITED_THREADS
273         with all_non_exited_threads.
274         * common/filtered-iterator.h: New.
275         * common/safe-iterator.h: New.
276         * corelow.c (core_target_open): Don't call init_thread_list here.
277         * darwin-nat.c (thread_info_from_private_thread_info): Replace
278         ALL_THREADS with all_threads.
279         * fbsd-nat.c (fbsd_nat_target::resume): Replace
280         ALL_NON_EXITED_THREADS with inf->non_exited_threads.
281         * fbsd-tdep.c (fbsd_make_corefile_notes): Replace
282         ALL_NON_EXITED_THREADS with inf->non_exited_threads.
283         * fork-child.c (postfork_hook): Don't call init_thread_list here.
284         * gdbarch-selftests.c (register_to_value_test): Adjust.
285         * gdbthread.h: Don't include "inferior.h" here.
286         (struct inferior): Forward declare.
287         (enum step_over_calls_kind): Moved here from inferior.h.
288         (thread_info::deletable): Definition moved to thread.c.
289         (find_thread_ptid (inferior *, ptid_t)): Declare.
290         (ALL_THREADS, ALL_THREADS_BY_INFERIOR, ALL_THREADS_SAFE): Delete.
291         Include "thread-iter.h".
292         (all_threads, all_non_exited_threads, all_threads_safe): New.
293         (any_thread_p): Declare.
294         (thread_list): Delete.
295         * infcmd.c (signal_command): Replace ALL_NON_EXITED_THREADS with
296         all_non_exited_threads.
297         (proceed_after_attach_callback): Delete.
298         (proceed_after_attach): Take an inferior pointer instead of an
299         integer PID.  Adjust to use range-for.
300         (attach_post_wait): Pass down inferior pointer instead of pid.
301         Use range-for instead of ALL_NON_EXITED_THREADS.
302         (detach_command): Remove init_thread_list call.
303         * inferior-iter.h: New.
304         * inferior.c (struct delete_thread_of_inferior_arg): Delete.
305         (delete_thread_of_inferior): Delete.
306         (delete_inferior, exit_inferior_1): Use range-for with
307         inf->threads_safe() instead of iterate_over_threads.
308         (inferior_appeared): Call init_thread_list here.
309         (discard_all_inferiors): Use all_non_exited_inferiors.
310         (find_inferior_id, find_inferior_pid): Use all_inferiors.
311         (iterate_over_inferiors): Use all_inferiors_safe.
312         (have_inferiors, number_of_live_inferiors): Use
313         all_non_exited_inferiors.
314         (number_of_inferiors): Use all_inferiors and std::distance.
315         (print_inferior): Use all_inferiors.
316         * inferior.h: Include gdbthread.h.
317         (enum step_over_calls_kind): Moved to gdbthread.h.
318         (struct inferior) <thread_list>: New field.
319         <threads, non_exited_threads, threads_safe>: New methods.
320         (ALL_INFERIORS): Delete.
321         Include "inferior-iter.h".
322         (ALL_NON_EXITED_INFERIORS): Delete.
323         (all_inferiors_safe, all_inferiors, all_non_exited_inferiors): New
324         functions.
325         * inflow.c (child_interrupt, child_pass_ctrlc): Replace
326         ALL_NON_EXITED_THREADS with all_non_exited_threads.
327         * infrun.c (follow_exec): Use all_threads_safe.
328         (clear_proceed_status, proceed): Use all_non_exited_threads.
329         (init_wait_for_inferior): Don't clear inline frame state here.
330         (infrun_thread_stop_requested, for_each_just_stopped_thread): Use
331         all_threads instead of ALL_NON_EXITED_THREADS.
332         (random_pending_event_thread): Use all_non_exited_threads instead
333         of ALL_NON_EXITED_THREADS.  Use a lambda for repeated code.
334         (clean_up_just_stopped_threads_fsms): Use all_non_exited_threads
335         instead of ALL_NON_EXITED_THREADS.
336         (handle_no_resumed): Use all_non_exited_threads instead of
337         ALL_NON_EXITED_THREADS.  Use all_inferiors instead of
338         ALL_INFERIORS.
339         (restart_threads, switch_back_to_stepped_thread): Use
340         all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
341         * linux-nat.c (check_zombie_leaders): Replace ALL_INFERIORS with
342         all_inferiors.
343         (kill_unfollowed_fork_children): Use inf->non_exited_threads
344         instead of ALL_NON_EXITED_THREADS.
345         * linux-tdep.c (linux_make_corefile_notes): Use
346         inf->non_exited_threads instead of ALL_NON_EXITED_THREADS.
347         * linux-thread-db.c (thread_db_target::update_thread_list):
348         Replace ALL_INFERIORS with all_inferiors.
349         (thread_db_target::thread_handle_to_thread_info): Use
350         inf->non_exited_threads instead of ALL_NON_EXITED_THREADS.
351         * mi/mi-interp.c (multiple_inferiors_p): New.
352         (mi_on_resume_1): Simplify using all_non_exited_threads and
353         multiple_inferiors_p.
354         * mi/mi-main.c (mi_cmd_thread_list_ids): Use all_non_exited_threads
355         instead of ALL_NON_EXITED_THREADS.
356         * nto-procfs.c (nto_procfs_target::open): Don't call
357         init_thread_list here.
358         * record-btrace.c (record_btrace_target_open)
359         (record_btrace_target::stop_recording)
360         (record_btrace_target::close)
361         (record_btrace_target::record_is_replaying)
362         (record_btrace_target::resume, record_btrace_target::wait)
363         (record_btrace_target::record_stop_replaying): Use
364         all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
365         * record-full.c (record_full_wait_1): Use all_non_exited_threads
366         instead of ALL_NON_EXITED_THREADS.
367         * regcache.c (cooked_read_test): Remove reference to global
368         thread_list.
369         * remote-sim.c (gdbsim_target::create_inferior): Don't call
370         init_thread_list here.
371         * remote.c (remote_target::update_thread_list): Use
372         all_threads_safe instead of ALL_NON_EXITED_THREADS.
373         (remote_target::process_initial_stop_replies): Replace
374         ALL_INFERIORS with all_non_exited_inferiors and use
375         all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
376         (remote_target::open_1): Don't call init_thread_list here.
377         (remote_target::append_pending_thread_resumptions)
378         (remote_target::remote_resume_with_hc): Use all_non_exited_threads
379         instead of ALL_NON_EXITED_THREADS.
380         (remote_target::commit_resume)
381         (remote_target::remove_new_fork_children): Replace ALL_INFERIORS
382         with all_non_exited_inferiors and use all_non_exited_threads
383         instead of ALL_NON_EXITED_THREADS.
384         (remote_target::kill_new_fork_children): Use
385         all_non_exited_threads instead of ALL_NON_EXITED_THREADS.  Remove
386         init_thread_list and init_wait_for_inferior calls.
387         (remote_target::remote_btrace_maybe_reopen)
388         (remote_target::thread_handle_to_thread_info): Use
389         all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
390         * target.c (target_terminal::restore_inferior)
391         (target_terminal_is_ours_kind): Replace ALL_INFERIORS with
392         all_non_exited_inferiors.
393         * thread-iter.c: New file.
394         * thread-iter.h: New file.
395         * thread.c: Include "inline-frame.h".
396         (thread_list): Delete.
397         (clear_thread_inferior_resources): Call clear_inline_frame_state.
398         (init_thread_list): Use all_threads_safe instead of
399         ALL_THREADS_SAFE.  Adjust to per-inferior thread lists.
400         (new_thread): Adjust to per-inferior thread lists.
401         (add_thread_silent): Pass inferior to find_thread_ptid.
402         (thread_info::deletable): New, moved from the header.
403         (delete_thread_1): Adjust to per-inferior thread lists.
404         (find_thread_global_id): Use inf->threads().
405         (find_thread_ptid): Use find_inferior_ptid and pass inferior to
406         find_thread_ptid.
407         (find_thread_ptid(inferior*, ptid_t)): New overload.
408         (iterate_over_threads): Use all_threads_safe.
409         (any_thread_p): New.
410         (thread_count): Use all_threads and std::distance.
411         (live_threads_count): Use all_non_exited_threads and
412         std::distance.
413         (valid_global_thread_id): Use all_threads.
414         (in_thread_list): Use find_thread_ptid.
415         (first_thread_of_inferior): Adjust to per-inferior thread lists.
416         (any_thread_of_inferior, any_live_thread_of_inferior): Use
417         inf->non_exited_threads().
418         (prune_threads, delete_exited_threads): Use all_threads_safe.
419         (thread_change_ptid): Pass inferior pointer to find_thread_ptid.
420         (set_resumed, set_running): Use all_non_exited_threads.
421         (is_thread_state, is_stopped, is_exited, is_running)
422         (is_executing): Delete.
423         (set_executing, set_stop_requested, finish_thread_state): Use
424         all_non_exited_threads.
425         (print_thread_info_1): Use all_inferiors and all_threads.
426         (thread_apply_all_command): Use all_non_exited_threads.
427         (thread_find_command): Use all_threads.
428         (update_threads_executing): Use all_non_exited_threads.
429         * tid-parse.c (parse_thread_id): Use inf->threads.
430         * x86-bsd-nat.c (x86bsd_dr_set): Use inf->non_exited_threads ().
431
432 2018-11-22  Pedro Alves  <palves@redhat.com>
433
434         * infrun.c (follow_exec) <set follow-exec new>: Add thread and
435         switch to it before calling into try_open_exec_file.
436
437 2018-11-22  Pedro Alves  <palves@redhat.com>
438
439         * cli/cli-interp.c (cli_on_user_selected_context_changed): Use
440         inferior_thread instead of find_thread_ptid, and only when
441         inferior_ptid is not null_ptid.
442         * inferior.c (add_inferior): Don't include target_pid_to_str
443         output when the inferior is not started.
444         * python/py-inferior.c (python_on_normal_stop): Don't use
445         find_thread_ptid.
446         (tui_on_user_selected_context_changed): Use inferior_thread
447         instead of find_thread_ptid, and only when inferior_ptid is not
448         null_ptid.
449
450 2018-11-21  Benno Fünfstück  <benno.fuenfstueck@gmail.com>
451
452         PR python/23714
453         * gdb/python/python.c (execute_gdb_command): Call
454         prevent_dont_repeat earlier to avoid affecting dont_repeat.
455
456 2018-11-21  Andrew Burgess  <andrew.burgess@embecosm.com>
457
458         * Makefile.in (ALL_TARGET_OBS): Add arch/riscv.o.
459         (HFILES_NO_SRCDIR): Add arch/riscv.h.
460         * arch/riscv.c: New file.
461         * arch/riscv.h: New file.
462         * configure.tgt: Add cpu_obs list of riscv, move riscv-tdep.o into
463         this list, and add arch/riscv.o.
464         * features/Makefile: Add riscv features.
465         * features/riscv/32bit-cpu.c: New file.
466         * features/riscv/32bit-cpu.xml: New file.
467         * features/riscv/32bit-csr.c: New file.
468         * features/riscv/32bit-csr.xml: New file.
469         * features/riscv/32bit-fpu.c: New file.
470         * features/riscv/32bit-fpu.xml: New file.
471         * features/riscv/64bit-cpu.c: New file.
472         * features/riscv/64bit-cpu.xml: New file.
473         * features/riscv/64bit-csr.c: New file.
474         * features/riscv/64bit-csr.xml: New file.
475         * features/riscv/64bit-fpu.c: New file.
476         * features/riscv/64bit-fpu.xml: New file.
477         * features/riscv/rebuild-csr-xml.sh: New file.
478         * riscv-tdep.c: Add 'arch/riscv.h' include.
479         (riscv_gdb_reg_names): Delete.
480         (csr_reggroup): New global.
481         (struct riscv_register_alias): Delete.
482         (struct riscv_register_feature): New structure.
483         (riscv_register_aliases): Delete.
484         (riscv_xreg_feature): New global.
485         (riscv_freg_feature): New global.
486         (riscv_virtual_feature): New global.
487         (riscv_csr_feature): New global.
488         (riscv_create_csr_aliases): New function.
489         (riscv_read_misa_reg): Delete.
490         (riscv_has_feature): Delete.
491         (riscv_isa_xlen): Simplify, just return cached xlen.
492         (riscv_isa_flen): Simplify, just return cached flen.
493         (riscv_has_fp_abi): Update for changes in struct gdbarch_tdep.
494         (riscv_register_name): Update to make use of tdesc_register_name.
495         Look up xreg and freg names in the new globals riscv_xreg_feature
496         and riscv_freg_feature.  Don't supply csr aliases here.
497         (riscv_fpreg_q_type): Delete.
498         (riscv_register_type): Use tdesc_register_type in almost all
499         cases, override the returned type in a few specific cases only.
500         (riscv_print_one_register_info): Handle errors reading registers.
501         (riscv_register_reggroup_p): Use tdesc_register_in_reggroup_p for
502         registers that are otherwise unknown to GDB.  Also check the
503         csr_reggroup.
504         (riscv_print_registers_info): Remove assert about upper register
505         number, and use gdbarch_register_reggroup_p instead of
506         short-cutting.
507         (riscv_find_default_target_description): New function.
508         (riscv_check_tdesc_feature): New function.
509         (riscv_add_reggroups): New function.
510         (riscv_setup_register_aliases): New function.
511         (riscv_init_reggroups): New function.
512         (_initialize_riscv_tdep): Add calls to setup CSR aliases, and
513         setup register groups.  Register new riscv debug variable.
514         * riscv-tdep.h: Add 'arch/riscv.h' include.
515         (struct gdbarch_tdep): Remove abi union, and add
516         riscv_gdbarch_features field.  Remove cached quad floating point
517         type, and provide initialisation for double type field.
518         * target-descriptions.c (maint_print_c_tdesc_cmd): Add riscv to
519         the list of targets using the feature based target descriptions.
520         * NEWS: Mention target description support.
521
522 2018-11-21  Pedro Alves  <palves@redhat.com>
523
524         * valops.c (find_method_list, value_find_oload_method_list)
525         (find_overload_match, find_oload_champ): Rename parameters and
526         locals.
527
528 2018-11-21  Pedro Alves  <palves@redhat.com>
529
530         * valops.c (find_method_list): Replace pointer and length
531         parameters with an gdb::array_view.  Adjust.
532         (value_find_oload_method_list): Likewise.
533         (find_overload_match): Use gdb::array_view for methods list.
534         Adjust to find_oload_champ interface change.
535         (find_oload_champ): 'xm_worker_vec' parameter now a pointer/array.
536         'num_fns' parameter now a size_t.  Eliminate 'fn_count' local.
537
538 2018-11-21  Pedro Alves  <palves@redhat.com>
539
540         * gdbtypes.c (compare_badness): Change type of parameters to const
541         reference.  Adjust to badness_vector being a std::vector now.
542         (rank_function): Adjust to badness_vector being a std::vector now.
543         * gdbtypes.h (badness_vector): Now a typedef to std::vector.
544         (LENGTH_MATCH): Delete.
545         (compare_badness): Change type of parameters to const reference.
546         (rank_function): Return a badness_vector by value now.
547         (find_overload_match): Adjust to badness_vector being a
548         std::vector now.  Remove cleanups.
549         (find_oload_champ_namespace): 'oload_champ_bv' parameter now a
550         badness_vector pointer.
551         (find_oload_champ_namespace_loop): 'oload_champ_bv' parameter now
552         a badness_vector pointer.  Adjust to badness_vector being a
553         std::vector now.  Remove cleanups.
554         (find_oload_champ): 'oload_champ_bv' parameter now
555         a badness_vector pointer.  Adjust to badness_vector being a
556         std::vector now.  Remove cleanups.
557
558 2018-11-21  Pedro Alves  <palves@redhat.com>
559
560         * cp-support.c (sym_return_val_size, sym_return_val_index)
561         (sym_return_val): Delete.
562         (overload_list_add_symbol): Add std::vector parameter.  Adjust to
563         add to the vector.
564         (make_symbol_overload_list): Adjust to return a std::vector
565         instead of maintaining a global open coded vector.
566         (make_symbol_overload_list_block): Add std::vector parameter.
567         (make_symbol_overload_list_block): Rename to ...
568         (add_symbol_overload_list_block): ... this and add std::vector
569         parameter.
570         (make_symbol_overload_list_namespace): Rename to ...
571         (add_symbol_overload_list_namespace): ... this and add std::vector
572         parameter.
573         (make_symbol_overload_list_adl_namespace): Rename to ...
574         (add_symbol_overload_list_adl_namespace): ... this and add
575         std::vector parameter.
576         (make_symbol_overload_list_adl): Delete.
577         (add_symbol_overload_list_adl): New.
578         (make_symbol_overload_list_using): Rename to ...
579         (add_symbol_overload_list_using): ... this and add std::vector
580         parameter.
581         (make_symbol_overload_list_qualified): Rename to ...
582         (add_symbol_overload_list_qualified): ... this and add std::vector
583         parameter.
584         * cp-support.h: Include "common/array-view.h" and <vector>.
585         (make_symbol_overload_list): Change return type to std::vector.
586         (make_symbol_overload_list_adl): Delete declaration.
587         (add_symbol_overload_list_adl): New declaration.
588         * valops.c (find_overload_match): Local 'oload_syms' now a
589         std::vector.
590         (find_oload_champ_namespace): 'oload_syms' parameter now a
591         std::vector pointer.
592         (find_oload_champ_namespace_loop): 'oload_syms' parameter now a
593         std::vector pointer.  Adjust to new make_symbol_overload_list
594         interface.
595
596 2018-11-21  Pedro Alves  <palves@redhat.com>
597
598         * common/array-view.h (array_view::splice(size_type, size_t)): New.
599         (array_view::splice(size_type)): New.
600         * eval.c (eval_call, evaluate_funcall): Adjust to use array_view.
601         * extension.c (xmethod_worker::get_arg_types): Adjust to return an
602         std::vector.
603         (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
604         * extension.h: Include "common/array-view.h".
605         (xmethod_worker::invoke): Adjust to use gdb::array_view.
606         (xmethod_worker::get_arg_types): Adjust to return an std::vector.
607         (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
608         (xmethod_worker::do_get_arg_types): Adjust to use std::vector.
609         (xmethod_worker::do_get_result_type): Adjust to use
610         gdb::array_view.
611         * gdbtypes.c (rank_function): Adjust to use gdb::array_view.
612         * gdbtypes.h: Include "common/array-view.h".
613         (rank_function): Adjust to use gdb::array_view.
614         * python/py-xmethods.c (python_xmethod_worker::invoke)
615         (python_xmethod_worker::do_get_arg_types)
616         (python_xmethod_worker::do_get_result_type)
617         (python_xmethod_worker::invoke): Adjust to new interfaces.
618         * valarith.c (value_user_defined_cpp_op, value_user_defined_op)
619         (value_x_binop, value_x_unop): Adjust to use gdb::array_view.
620         * valops.c (find_overload_match, find_oload_champ_namespace)
621         (find_oload_champ_namespace_loop, find_oload_champ): Adjust to use
622         gdb:array_view and the new xmethod_worker interfaces.
623         * value.c (result_type_of_xmethod, call_xmethod): Adjust to use
624         gdb::array_view.
625         * value.h (find_overload_match, result_type_of_xmethod)
626         (call_xmethod): Adjust to use gdb::array_view.
627         * unittests/array-view-selftests.c: Add slicing tests.
628
629 2018-11-21  Pedro Alves  <palves@redhat.com>
630
631         * ada-lang.c (ada_evaluate_subexp): Adjust to pass an array_view.
632         * common/array-view.h (make_array_view): New.
633         * compile/compile-object-run.c (compile_object_run): Adjust to
634         pass an array_view.
635         * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust.
636         * eval.c (eval_call): Adjust to pass an array_view.
637         (evaluate_subexp_standard): Adjust to pass an array_view.
638         * gcore.c (call_target_sbrk): Adjust to pass an array_view.
639         * guile/scm-value.c (gdbscm_value_call): Likewise.
640         * infcall.c (push_dummy_code): Replace pointer + size parameters
641         with an array_view parameter.
642         (call_function_by_hand, call_function_by_hand_dummy): Likewise and
643         adjust.
644         * infcall.h: Include "common/array-view.h".
645         (call_function_by_hand, call_function_by_hand_dummy): Replace
646         pointer + size parameters with an array_view parameter.
647         * linux-fork.c (inferior_call_waitpid): Adjust to use array_view.
648         * linux-tdep.c (linux_infcall_mmap): Likewise.
649         * objc-lang.c (lookup_objc_class, lookup_child_selector)
650         (value_nsstring, print_object_command): Likewise.
651         * python/py-value.c (valpy_call): Likewise.
652         * rust-lang.c (rust_evaluate_funcall): Likewise.
653         * spu-tdep.c (flush_ea_cache): Likewise.
654         * valarith.c (value_x_binop, value_x_unop): Likewise.
655         * valops.c (value_allocate_space_in_inferior): Likewise.
656         * unittests/array-view-selftests.c (run_tests): Add
657         gdb::make_array_view test.
658
659 2018-11-20  Andrew Burgess  <andrew.burgess@embecosm.com>
660
661         * cli-out.c (cli_ui_out::do_field_int): Use string_printf rather
662         than a fixed size buffer.
663
664 2018-11-20  Andrew Burgess  <andrew.burgess@embecosm.com>
665
666         * breakpoint.c (print_one_breakpoint_location): Reduce whitespace,
667         and remove insertion of extra spaces in GDB's output.
668         * cli-out.c (cli_ui_out::do_field_fmt): Update header comment.
669         Layout field into a temporary buffer, and then output it as a
670         string field.
671
672 2018-11-20  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
673
674         * NEWS: Document the language choice done by
675         'info [types|functions|variables]|rbreak'.
676
677 2018-11-20  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
678
679         * symtab.c (treg_matches_sym_type_name): Use
680         scoped_switch_to_sym_language_if_auto instead of local logic.
681         (print_symbol_info): Use scoped_switch_to_sym_language_if_auto
682         to switch to SYM language when language mode is auto.
683
684 2018-11-20  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
685
686         * language.h (scoped_switch_to_sym_language_if_auto): New class.
687
688 2018-11-20  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
689
690         * symtab.c (search_symbols): Properly check absence of type regexp
691         before entering the loop scanning the minimal symbols.
692
693 2018-11-20  John Darrington  <john@darrington.wattle.id.au>
694
695         * s12z-tdep.c (s12z_extract_return_value): New function.
696         (inv_reg_perm) New array.
697         (s12z_return_value): Populate readbuf if non-null.
698
699 2018-11-20  Eli Zaretskii  <eliz@gnu.org>
700
701         * common/filestuff.c (gdb_fopen_cloexec): Disable use of "e" mode
702         with 'fopen' also if O_CLOEXEC is equal to O_NOINHERIT, to cater
703         to MinGW fixed by Gnulib.
704         (O_NOINHERIT): Define if not defined.
705
706 2018-11-19  John Darrington  <john@darrington.wattle.id.au>
707
708         * s12z-tdep.c (s12z_frame_cache): Add an assertion.
709
710 2018-11-19  Simon Marchi  <simon.marchi@polymtl.ca>
711
712         * infrun.c (displaced_step_inferior_state) <next>: Remove.
713
714 2018-11-19  Tom Tromey  <tom@tromey.com>
715
716         * source.c (get_filename_and_charpos): Return void.
717
718 2018-11-19  Simon Marchi  <simon.marchi@polymtl.ca>
719
720         * skip.c (_initialize_step_skip): Fix "info skip" help.
721
722 2018-11-16  Tom Tromey  <tom@tromey.com>
723
724         PR rust/23625:
725         * rust-lang.c (rust_internal_print_type): Handle TYPE_CODE_PTR.
726
727 2018-11-19  Simon Marchi  <simon.marchi@ericsson.com>
728
729         * infrun.c (displaced_step_inferior_states): Change type to
730         std::forward_list.
731         (get_displaced_stepping_state): Adjust.
732         (displaced_step_in_progress_any_inferior): Adjust.
733         (add_displaced_stepping_state): Adjust.
734         (remove_displaced_stepping_state): Adjust.
735
736 2018-11-18  Tom Tromey  <tom@tromey.com>
737
738         PR build/23814:
739         * target-delegates.c: Rebuild.
740         * ia64-linux-nat.c (class ia64_linux_nat_target)
741         <have_steppable_watchpoint>: Use override.  Return true, not 1.
742         (ia64_linux_nat_target::can_use_hw_breakpoint): Rename.  Remove
743         "self" argument.
744         (ia64_linux_nat_target::low_new_thread): Rename.
745         (class ia64_linux_nat_target) <read_description>: Don't declare.
746         * target.h (struct target_ops) <have_steppable_watchpoint>: Return
747         bool.
748
749 2018-11-16  Alan Hayward  <alan.hayward@arm.com>
750
751         PR gdb/22736:
752         * aarch64-tdep.c (aarch64_push_dummy_call): Remove
753         lang_struct_return code.
754
755 2018-11-16  Alan Hayward  <alan.hayward@arm.com>
756
757         * aarch64-tdep.c (aarch64_push_dummy_call): Replace arg with
758         return_method.
759         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
760         * amd64-tdep.c (amd64_push_arguments): Likewise.
761         (amd64_push_dummy_call): Likewise.
762         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
763         * arc-tdep.c (arc_push_dummy_call): Likewise.
764         * arm-tdep.c (arm_push_dummy_call): Likewise.
765         * avr-tdep.c (avr_push_dummy_call): Likewise.
766         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
767         * cris-tdep.c (cris_push_dummy_call): Likewise.
768         * csky-tdep.c (csky_push_dummy_call): Likewise.
769         * frv-tdep.c (frv_push_dummy_call): Likewise.
770         * gdbarch.c: Regenerate.
771         * gdbarch.h: Regenerate.
772         * gdbarch.sh (gdbarch_push_dummy_call): Replace arg with
773         return_method.
774         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
775         * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
776         (hppa64_push_dummy_call): Likewise.
777         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
778         * i386-tdep.c (i386_push_dummy_call): Likewise.
779         * ia64-tdep.c (ia64_push_dummy_call): Likewise.
780         * infcall.c (call_function_by_hand_dummy): Likewise.
781         * iq2000-tdep.c (iq2000_push_dummy_call): Likewise.
782         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
783         * m32c-tdep.c (m32c_push_dummy_call): Likewise.
784         * m32r-tdep.c (m32r_push_dummy_call): Likewise.
785         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
786         * m68k-tdep.c (m68k_push_dummy_call): Likewise.
787         * mep-tdep.c (mep_push_dummy_call): Likewise.
788         * mips-tdep.c (mips_eabi_push_dummy_call): Likewise.
789         (mips_n32n64_push_dummy_call): Likewise.
790         (mips_o32_push_dummy_call): Likewise.
791         (mips_o64_push_dummy_call): Likewise.
792         * mn10300-tdep.c (mn10300_push_dummy_call): Likewise.
793         * msp430-tdep.c (msp430_push_dummy_call): Likewise.
794         * nds32-tdep.c (nds32_push_dummy_call): Likewise.
795         * nios2-tdep.c (nios2_push_dummy_call): Likewise.
796         * or1k-tdep.c (or1k_push_dummy_call): Likewise.
797         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
798         (ppc64_sysv_abi_push_dummy_call): Likewise.
799         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Likewise.
800         (ppc64_sysv_abi_push_dummy_call): Likewise.
801         * riscv-tdep.c (riscv_push_dummy_call): Likewise.
802         * rl78-tdep.c (rl78_push_dummy_call): Likewise.
803         * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
804         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
805         * rx-tdep.c (rx_push_dummy_call): Likewise.
806         * s390-tdep.c (s390_push_dummy_call): Likewise.
807         * score-tdep.c (score_push_dummy_call): Likewise.
808         * sh-tdep.c (sh_push_dummy_call_fpu): Likewise.
809         (sh_push_dummy_call_nofpu): Likewise.
810         * sparc-tdep.c (sparc32_store_arguments): Likewise.
811         (sparc32_push_dummy_call): Likewise.
812         * sparc64-tdep.c (sparc64_store_arguments): Likewise.
813         (sparc64_push_dummy_call): Likewise.
814         * spu-tdep.c (spu_push_dummy_call): Likewise.
815         * tic6x-tdep.c (tic6x_push_dummy_call): Likewise.
816         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
817         * v850-tdep.c (v850_push_dummy_call): Likewise.
818         * vax-tdep.c (vax_push_dummy_call): Likewise.
819         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
820         * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
821
822 2018-11-16  Alan Hayward  <alan.hayward@arm.com>
823
824         * gdbarch.sh (enum function_call_return_method): Add enum.
825         * gdbarch.h: Regenerate.
826         * infcall.c (call_function_by_hand_dummy): Replace vars with enum.
827
828 2018-11-15  Joel Brobecker  <brobecker@adacore.com>
829
830         * unittests/copy_bitwise-selftests.c: New file.
831         * utils.c (selftests::bits_to_str, selftests::check_copy_bitwise)
832         (selftests::copy_bitwise_tests): Delete, moving this code to
833         unittests/copy_bitwise-selftests.c instead.
834         (_initialize_utils): Do not register copy_bitwise tests.
835         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
836         unittests/copy_bitwise-selftests.c.
837
838 2018-11-14  Joel Brobecker  <brobecker@adacore.com>
839
840         * ada-lang.c (move_bits): Delete. Update all callers to use
841         copy_bitwise instead.
842         * dwarf2loc.c (copy_bitwise, bits_to_str::bits_to_str)
843         (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
844         Move from here to utils.c.
845         (_initialize_dwarf2loc): Remove call to register copy_bitwise
846         selftests.
847         * utils.h (copy_bitwise): Add declaration.
848         * utils.c (copy_bitwise, bits_to_str::bits_to_str)
849         (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
850         Moved here from dwarf2loc.c.
851         (_initialize_utils): Register copy_bitwise selftests.
852
853 2018-11-14  Jim Wilson  <jimw@sifive.com>
854
855         * riscv-tdep.c (struct riscv_arg_info): New field is_unnamed.
856         (riscv_call_arg_scalar_int): If unnamed arg with twice xlen alignment,
857         then increment next_regnum if odd.
858         (riscv_arg_location): New arg is_unnamed.  Set ainfo->is_unnamed.
859         (riscv_push_dummy_call): New local ftype.  Call check_typedef to set
860         function type.  Pass new arg to riscv_arg_location based on function
861         type.
862         (riscv_return_value): Pass new arg to riscv_arg_location.
863
864         * riscv-tdep.c (BIGGEST_ALIGNMENT): New.
865         (riscv_type_alignment) <TYPE_CODE_ARRAY>: If TYPE_VECTOR, return min
866         of TYPE_LENGTH and BIGGEST_ALIGNMENT.
867
868         * riscv-tdep.c (riscv_call_arg_scalar_int): Use std::min when
869         setting len.  New local align, set to max of arg align and xlen,
870         and pass to first riscv_assign_stack_location call.
871
872 2018-11-12  Simon Marchi  <simon.marchi@polymtl.ca>
873
874         * skip.c (complete_skip_number): New function.
875         (_initialize_step_skip): Add completers to some skip commands.
876
877 2018-11-09  Tom Tromey  <tom@tromey.com>
878
879         * remote.c (remote_g_packet_guess_s): Remove typedef and DEF_VEC.
880         (struct remote_g_packet_data): Derive from allocate_on_obstack.
881         <guesses>: Now a std::vector.
882         (remote_g_packet_data_init, register_remote_g_packet_guess):
883         Update.
884         (remote_read_description_p): Update.  Return bool.
885         (remote_target::read_description): Update.
886         (struct remote_g_packet_guess): Add constructor.
887
888 2018-11-09  Tom Tromey  <tom@tromey.com>
889
890         * common/scoped_fd.h (class scoped_fd): Add move constructor and
891         move assignment operator.
892         * psymtab.c (psymtab_to_fullname): Update.
893         * source.h (open_source_file): Return scoped_fd.
894         (find_and_open_source): Likewise.
895         * source.c (open_source_file): Return scoped_fd.
896         (get_filename_and_charpos): Update.
897         (print_source_lines_base): Update.  Use scoped_fd::to_file.
898         (forward_search_command): Likewise.
899         (reverse_search_command): Likewise.
900         (find_and_open_source): Return scoped_fd.
901         * tui/tui-source.c (tui_set_source_content): Update.  Use
902         gdb_file_up.
903
904 2018-11-09  John Baldwin  <jhb@FreeBSD.org>
905
906         * minsyms.c (minimal_symbol_reader::install): Fix unsigned
907         overflow.
908
909 2018-11-09  Hafiz Abid Qadeer  <abidh@codesourcery.com>
910
911         * configure: Regenerate.
912
913 2018-11-09  Tom de Vries  <tdevries@suse.de>
914
915         * symtab.c (symbol_set_names): Call symbol_find_demangled_name
916         unconditionally, to set the language of the symbol.  Manage freeing
917         returned pointer using gdb::unique_xmalloc_ptr.
918
919 2018-11-08  Tom Tromey  <tom@tromey.com>
920
921         * record.c (require_record_target): Upper-case "<TAB>".
922
923 2018-11-08  Tom Tromey  <tom@tromey.com>
924
925         * python/lib/gdb/command/pretty_printers.py
926         (InfoPrettyPrinter.invoke): Don't indent "objfile" heading.
927
928 2018-11-08  Tom Tromey  <tom@tromey.com>
929
930         PR gdb/23555:
931         PR gdb/23838:
932         * target.h (target_supports_terminal_ours): Return bool.
933         * target.c (target_supports_terminal_ours): Handle case where
934         current_top_target returns nullptr.  Return bool.
935
936 2018-11-08  Joel Brobecker  <brobecker@adacore.com>
937
938         * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1):
939         return the correct count for potential HFAs.
940
941 2018-11-08  Jan Beulich  <jbeulich@suse.com>
942
943         * i387-tdep.c (i387_supply_xsave): Split handling of
944         X86_XSTATE_ZMM_H and X86_XSTATE_ZMM.
945         (i387_collect_xsave): Likewise.
946
947 2018-11-08  Andrew Burgess  <andrew.burgess@embecosm.com>
948
949         * riscv-tdep.c (riscv_insn::decode): Update header comment.
950         (riscv_frame_this_id): Catch errors thrown while building the
951         frame cache, leave the frame id as the default, which is the outer
952         frame id.
953
954 2018-11-07  Joel Brobecker  <brobecker@adacore.com>
955
956         * ada-lang.c (read_atcb): Only set task_info->called_task if
957         task_info->state == Entry_Caller_Sleep.
958         (print_ada_task_info): Do not check task_info->state before
959         checking task_info->called_task.
960         (info_task): Likewise.
961
962 2018-11-07  Joel Brobecker  <brobecker@adacore.com>
963
964         * ada-tasks.c (read_atcb): Clear task_info before computing
965         the value of each of its fields.
966
967 2018-11-07  Andrew Burgess  <andrew.burgess@embecosm.com>
968
969         * dwarf2read.c (dwarf2_init_integer_type): Check for name being
970         NULL before dereferencing it.
971
972 2018-11-06  Tom de Vries  <tdevries@suse.de>
973
974         * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate
975         program headers.
976
977 2018-11-06  Max Filippov  <jcmvbkbc@gmail.com>
978
979         * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux*
980         so that it applies to uclinux as well.
981
982 2018-11-06  Marius Muench  <marius.muench@eurecom.fr>
983
984         * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg
985         when on AAPCS.
986
987 2018-11-06  John Baldwin  <jhb@FreeBSD.org>
988
989         * riscv-fbsd-nat.c (getregs_supplies): Return true for
990         RISCV_CSR_SSTATUS_REGNUM.
991
992 2018-11-04  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
993
994         * source.c (open_source_file): Fix leak by transferring the
995         current s->fullname to the unique_xmalloc_ptr fullname given
996         to find_and_open_source.
997
998 2018-11-04  Tom Tromey  <tom@tromey.com>
999
1000         * varobj.c (install_default_visualizer): Update.
1001         * python/python-internal.h (gdbpy_get_varobj_pretty_printer):
1002         Return gdbpy_ref.
1003         * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref.
1004         (find_pretty_printer_from_progspace)
1005         (find_pretty_printer_from_gdb, find_pretty_printer)
1006         (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref.
1007         (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer):
1008         Update.
1009
1010 2018-11-04  Tom Tromey  <tom@tromey.com>
1011
1012         * python/python.c (gdbpy_parameter_value): Update.
1013         * python/python-internal.h (python_string_to_unicode)
1014         (python_string_to_target_python_string)
1015         (host_string_to_python_string): Return gdbpy_ref.
1016         * python/py-utils.c (python_string_to_unicode)
1017         (unicode_to_encoded_python_string)
1018         (unicode_to_target_python_string)
1019         (python_string_to_target_string)
1020         (python_string_to_target_python_string): Return gdbpy_ref.
1021         (python_string_to_host_string): Update.
1022         (host_string_to_python_string): Return gdbpy_ref.
1023         * python/py-symtab.c (stpy_get_filename, stpy_get_producer)
1024         (stpy_fullname): Update.
1025         * python/py-progspace.c (pspy_get_filename, pspy_solib_name):
1026         Update.
1027         * python/py-prettyprint.c (print_string_repr): Update.
1028         * python/py-objfile.c (objfpy_get_filename, objfpy_get_username)
1029         (objfpy_get_build_id): Update.
1030         * python/py-breakpoint.c (bppy_get_location)
1031         (bppy_get_expression, bppy_get_condition, bppy_get_commands):
1032         Update.
1033
1034 2018-11-04  Tom Tromey  <tom@tromey.com>
1035
1036         * python/python-internal.h (gdb_py_object_from_longest)
1037         (gdb_py_object_from_ulongest): Return gdbpy_ref.
1038         * python/py-value.c (valpy_int): Update.
1039         * python/py-utils.c (gdb_py_object_from_longest): Return
1040         gdbpy_ref.
1041         (gdb_py_object_from_ulongest): Likewise.
1042         * python/py-type.c (typy_get_alignof): Update.
1043         * python/py-linetable.c (ltpy_get_all_source_lines)
1044         (ltpy_entry_get_line, ltpy_entry_get_pc): Update.
1045         * python/py-block.c (blpy_get_start, blpy_get_end): Update.
1046
1047 2018-11-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1048
1049         * ada-lang.c (_initialize_ada_language): Fix typo.
1050
1051 2018-11-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1052
1053         * language.c (type): Remove.
1054         (_initialize_language): Remove assignment to type.
1055
1056 2018-11-02  Joel Brobecker  <brobecker@adacore.com>
1057
1058         * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files.
1059         * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h".
1060         (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops.
1061         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o.
1062         (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h.
1063         (ALLDEPFILES): Add aarch64-ravenscar-thread.c.
1064         * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o
1065         and aarch64-ravenscar-thread.o.
1066         * NEWS: Add entry documenting Ravenscar tasking support
1067         on AArch64 ELF.
1068
1069 2018-11-02  Matthew Malcomson  <matthew.malcomson@arm.com>
1070
1071         * symtab.c (info_functions_command): Initialize quiet flag.
1072         * stack.c (info_args_command): Likewise.
1073
1074 2018-11-01  Jim Wilson  <jimw@sifive.com>
1075
1076         * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p.
1077         Set if pcptr if unaligned.  Return 2 if unaligned_p true.  Update
1078         debugging messages.
1079
1080 2018-11-01  Joel Brobecker  <brobecker@adacore.com>
1081
1082         * ada-lang.c (ada_watch_location_expression): New function.
1083         (ada_language_defn): Set la_watch_location_expression to
1084         ada_watch_location_expression.
1085
1086 2018-11-01  Joel Brobecker  <brobecker@adacore.com>
1087
1088         * print-utils.c (int_string): Remove unnecessary trailing spaces.
1089
1090 2018-11-01  Joel Brobecker  <brobecker@adacore.com>
1091
1092         * rs6000-tdep.c (skip_prologue): Fix potential negative left
1093         shifting.
1094
1095 2018-11-01  Jerome Guitton  <guitton@adacore.com>
1096             Joel Brobecker  <brobecker@adacore.com>
1097
1098         * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS.
1099         * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS.
1100         * arm-pikeos-tdep.c: New file.
1101         * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM
1102         embedded system.
1103         * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o.
1104
1105 2018-11-01  Simon Marchi  <simon.marchi@ericsson.com>
1106
1107         * common/pathstuff.c (get_standard_temp_dir): New.
1108         * common/pathstuff.h (get_standard_temp_dir): New.
1109         * config.in: Re-generate.
1110         * configure: Re-generate.
1111         * configure.ac: Don't check for mkdtemp.
1112         * gnulib/aclocal-m4-deps.mk: Re-generate.
1113         * gnulib/aclocal.m4: Re-generate.
1114         * gnulib/config.in: Re-generate.
1115         * gnulib/configure: Re-generate.
1116         * gnulib/import/Makefile.am: Re-generate.
1117         * gnulib/import/Makefile.in: Re-generate.
1118         * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1119         * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1120         * gnulib/import/m4/mkdtemp.m4: New file.
1121         * gnulib/import/mkdtemp.c: New file.
1122         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES):
1123         Add mkdtemp module.
1124         * unittests/mkdir-recursive-selftests.c (test): Use
1125         get_standard_temp_dir.
1126         (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP
1127         ifdef.
1128         * compile/compile.c (get_compile_file_tempdir): Likewise.
1129
1130 2018-11-01  Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1131
1132         * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
1133         (SIG_FRAME_LR_OFFSET64): New define.
1134         (SIG_FRAME_FP_OFFSET64): New define.
1135         (aix_sighandle_frame_cache): New Function.
1136         (aix_sighandle_frame_this_id): New Function.
1137         (aix_sighandle_frame_prev_register): New Function.
1138         (aix_sighandle_frame_sniffer): New Function.
1139         (aix_sighandle_frame_unwind): New global variable.
1140         (rs6000_aix_init_osabi): Install new frame unwinder.
1141
1142 2018-10-31  Sergio Durigan Junior  <sergiodj@redhat.com>
1143
1144         PR gdb/23835
1145         * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's
1146         already defined.
1147
1148 2018-10-31  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1149
1150         * ppc-linux-nat.c: Include nat/linux-ptrace.h.
1151
1152 2018-10-31  Andrew Burgess  <andrew.burgess@embecosm.com>
1153
1154         * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field.
1155         (producer_is_icc): New function.
1156         (check_producer): Set producer_is_icc field on dwarf2_cu.
1157         (dwarf2_init_integer_type): New function.
1158         (read_base_type): Call dwarf2_init_integer_type instead of
1159         init_integer_type in all cases.
1160         (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field.
1161         * valprint.c (maybe_negate_by_bytes): Add an assertion that the
1162         LEN is greater than 0.
1163
1164 2018-10-30  Tom Tromey  <tom@tromey.com>
1165
1166         * main.c (captured_main_1): Check return value of bfd_init.
1167
1168 2018-10-29  Sergio Durigan Junior  <sergiodj@redhat.com>
1169
1170         * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete.
1171         Adjust comments.
1172
1173 2018-10-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1174
1175         * procfs.c: Include common/pathstuff.h.
1176
1177 2018-10-28  Andrew Burgess  <andrew.burgess@embecosm.com>
1178
1179         * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
1180         Add missing braces.  No functional change.
1181
1182 2018-10-27  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1183
1184         * macrocmd.c (info_macro_command): Use report_unrecognized_option_error
1185         to report a bad option and fix indentation.
1186         * demangle.c (demangle_command): Use report_unrecognized_option_error
1187         to report a bad option and correctly report the bad option.
1188
1189 2018-10-27  Tom Tromey  <tom@tromey.com>
1190
1191         PR cli/23364:
1192         * darwin-nat.c (copied_shell): New global.
1193         (may_have_sip): Rename from should_disable_startup_with_shell.
1194         (copy_shell_to_cache, maybe_cache_shell): New functions.
1195         (darwin_nat_target::create_inferior): Update.  Use
1196         copied_shell.
1197
1198 2018-10-27  Tom Tromey  <tom@tromey.com>
1199
1200         * unittests/scoped_fd-selftests.c (test_to_file): New function.
1201         (run_tests): Call test_to_file.
1202         * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen
1203         temporary files.
1204         * common/scoped_fd.h (scoped_fd::to_file): New method.
1205
1206 2018-10-27  Tom Tromey  <tom@tromey.com>
1207
1208         * unittests/scoped_mmap-selftests.c (test_normal): Use
1209         gdb_mkostemp_cloexec.
1210         * unittests/scoped_fd-selftests.c (test_destroy, test_release):
1211         Use gdb_mkostemp_cloexec.
1212         * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
1213         gnulib/config.in, gnulib/configure,
1214         gnulib/import/Makefile.am, gnulib/import/Makefile.in,
1215         gnulib/import/m4/gnulib-cache.m4,
1216         gnulib/import/m4/gnulib-comp.m4: Update.
1217         * gnulib/import/m4/mkostemp.m4: New file.
1218         * gnulib/import/m4/mkstemp.m4: Remove.
1219         * gnulib/import/mkostemp.c: New file.
1220         * gnulib/import/mkstemp.m4: Remove.
1221         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
1222         mkstemp, add mkostemp.  Apply new patch.
1223         * gnulib/import/stdlib.in.h: Apply patch.
1224         * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
1225         New file.
1226         * dwarf-index-write.c (write_psymtabs_to_index): Use
1227         gdb_mkostemp_cloexec.
1228         * common/filestuff.h (gdb_mkostemp_cloexec): New function.
1229
1230 2018-10-27  Tom Tromey  <tom@tromey.com>
1231
1232         * unittests/mkdir-recursive-selftests.c: New file.
1233         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1234         unittests/mkdir-recursive-selftests.c.
1235         * dwarf-index-cache.c (mkdir_recursive): Move to
1236         common/filestuff.c.
1237         (index_cache::store): Check return value of mkdir_recursive.
1238         (create_dir_and_check, test_mkdir_recursive): Move to new file.
1239         (_initialize_index_cache): Don't register test.
1240         * common/filestuff.h (mkdir_recursive): Declare.
1241         * common/filestuff.c (mkdir_recursive): Move from
1242         dwarf-index-cache.c.  Return bool.
1243
1244 2018-10-27  Tom Tromey  <tom@tromey.com>
1245
1246         * dwarf-index-write.c (write_psymtabs_to_index): Move
1247         make_temp_filename to common/pathstuff.c.
1248         * common/pathstuff.h (make_temp_filename): Declare.
1249         * common/pathstuff.c (make_temp_filename): New function, moved
1250         from dwarf-index-write.c.
1251
1252 2018-10-27  Tom Tromey  <tom@tromey.com>
1253
1254         * procfs.c (procfs_target::create_inferior): Use get_shell.
1255         * cli/cli-cmds.c (shell_escape): Use get_shell.
1256         * windows-nat.c (windows_nat_target::create_inferior): Use
1257         get_shell.
1258         * common/pathstuff.c (get_shell): New function.
1259         * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
1260         (fork_inferior): Use get_shell.
1261         * common/pathstuff.h (get_shell): Declare.
1262
1263 2018-10-27  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1264
1265         * NEWS: Mention changes to 'info [args|functions|locals|variables]'
1266
1267 2018-10-27  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1268
1269         * stack.c (print_variable_and_value_data): Add preg and treg.
1270         (print_frame_local_vars): Add quiet, regexp and t_regexp arguments,
1271         and update callers.
1272         (print_frame_arg_vars): Likewise.
1273         (prepare_reg): New function.
1274         (info_locals_command): Extract info print args and use them.
1275         (info_args_command): Likewise.
1276         (_initialize_stack): Modify on-line help.
1277         * symtab.c (treg_matches_sym_type_name): New function.
1278         (search_symbols): New arg t_regexp.
1279         (symtab_symbol_info): New args quiet, regexp, t_regexp.
1280         (info_variables_command): Extract info print args and use them.
1281         (info_functions_command): Likewise.
1282         (info_types_command): Update call to symtab_symbol_info.
1283         (_initialize_symtab): Modify on-line help.
1284         * symtab.h (treg_matches_sym_type_name): New function.
1285         (search_symbols): New t_regexp arg.
1286
1287 2018-10-27  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1288
1289         * cli-utils.c (extract_arg_maybe_quoted): New function.
1290         (extract_info_print_args): New function.
1291         (info_print_args_help): New function.
1292         (report_unrecognized_option_error): New function.
1293         * cli-utils.h (extract_arg_maybe_quoted): New function.
1294         (extract_info_print_args): New function.
1295         (info_print_args_help): New function.
1296         (report_unrecognized_option_error): New function.
1297
1298 2018-10-26  Tom Tromey  <tom@tromey.com>
1299
1300         * dwarf2read.c (recursively_compute_inclusions): Use std::vector.
1301         (compute_compunit_symtab_includes): Update.
1302         * symtab.h: (symtab_ptr): Remove typedef.  Don't define a VEC.
1303         (compunit_symtab_ptr): Likewise.
1304
1305 2018-10-26  John Baldwin  <jhb@FreeBSD.org>
1306
1307         * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
1308         default_print_auxv_entry for specific tag values.
1309
1310 2018-10-26  John Baldwin  <jhb@FreeBSD.org>
1311
1312         * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2.
1313
1314 2018-10-26  Jim Wilson  <jimw@sifive.com>
1315
1316         * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
1317         (riscv_linux_sigframe_init): Declare.
1318         (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
1319         (riscv_linux_sigframe): New.
1320         (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
1321         (riscv_linux_sigframe_init): Define.
1322         (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
1323
1324         * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment.
1325         (riscv_isa_flen): Likewise.  Drop static.
1326         * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here.
1327         (riscv_isa_flen): Likewise.  Declare.
1328
1329 2018-10-26  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1330             Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1331
1332         * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l)
1333         (tdesc_powerpc_isa207_htm_vsx64l): Declare.
1334         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET)
1335         (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET)
1336         (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET)
1337         (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET)
1338         (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET):
1339         Define.
1340         (struct ppc_linux_features) <htm>: New field.
1341         (ppc_linux_no_features): Add initializer for htm field.
1342         * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1343         new tdescs.
1344         * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR)
1345         (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX)
1346         (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR):
1347         Define if not already defined.
1348         * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l
1349         and rs6000/powerpc-isa207-htm-vsx64l.
1350         (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and
1351         rs6000/powerpc-isa207-htm-vsx64l.xml.
1352         * features/rs6000/power-htm-spr.xml: New file.
1353         * features/rs6000/power-htm-core.xml: New file.
1354         * features/rs6000/power64-htm-core.xml: New file.
1355         * features/rs6000/power-htm-fpu.xml: New file.
1356         * features/rs6000/power-htm-altivec.xml: New file.
1357         * features/rs6000/power-htm-vsx.xml: New file.
1358         * features/rs6000/power-htm-ppr.xml: New file.
1359         * features/rs6000/power-htm-dscr.xml: New file.
1360         * features/rs6000/power-htm-tar.xml: New file.
1361         * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file.
1362         * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file.
1363         * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate.
1364         * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate.
1365         * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate.
1366         * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate.
1367         * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1368         fetch_regset with HTM regsets.
1369         (store_register, store_ppc_registers): Call store_regset with HTM
1370         regsets.
1371         (ppc_linux_nat_target::read_description): Set htm field in the
1372         features struct if needed.
1373         * ppc-linux-tdep.c: Include
1374         features/rs6000/powerpc-isa207-htm-vsx32l.c and
1375         features/rs6000/powerpc-isa207-htm-vsx64l.c.
1376         (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr)
1377         (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx)
1378         (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr)
1379         (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals.
1380         (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset)
1381         (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset)
1382         (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset)
1383         (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset)
1384         (ppc32_linux_cpprregset, ppc32_linux_cdscrregset)
1385         (ppc32_linux_ctarregset): New globals.
1386         (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions.
1387         (ppc_linux_collect_core_cpgrregset): New function.
1388         (ppc_linux_iterate_over_regset_sections): Call back with the htm
1389         regsets.
1390         (ppc_linux_core_read_description): Check if the tm spr section is
1391         present and set htm in the features struct.
1392         (_initialize_ppc_linux_tdep): Call
1393         initialize_tdesc_powerpc_isa207_htm_vsx32l and
1394         initialize_tdesc_powerpc_isa207_htm_vsx64l.
1395         * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset):
1396         Declare.
1397         (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset)
1398         (ppc32_linux_cvsxregset, ppc32_linux_cpprregset)
1399         (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare.
1400         * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>:
1401         New fields.
1402         <have_htm_fpu, have_htm_altivec, have_htm_vsx>:
1403         Likewise.
1404         <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise.
1405         <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise.
1406         (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>:
1407         New enum fields.
1408         <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise.
1409         <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise.
1410         <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise.
1411         <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise.
1412         <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise.
1413         <PPC_CTAR_REGNUM>: Likewise.
1414         (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM)
1415         (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define.
1416         * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG)
1417         (IS_CEFP_PSEUDOREG): Define.
1418         (rs6000_register_name): Hide the upper halves of checkpointed VSX
1419         registers.  Return names for the checkpointed DFP, VSX, and EFP
1420         pseudo registers.
1421         (rs6000_pseudo_register_type): Remove initial assert and raise an
1422         internal error in the else clause instead.  Return types for the
1423         checkpointed DFP, VSX, and EFP pseudo registers.
1424         (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle
1425         checkpointed DFP pseudo registers.
1426         (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle
1427         checkpointed VSX pseudo registers.
1428         (efp_pseudo_register_read, efp_pseudo_register_write): Rename
1429         from efpr_pseudo_register_read and
1430         efpr_pseudo_register_write.  Handle checkpointed EFP pseudo
1431         registers.
1432         (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
1433         Handle checkpointed DFP, VSX, and EFP registers.
1434         (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect)
1435         (efp_ax_pseudo_register_collect): New functions.
1436         (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo
1437         register logic to new functions.  Handle checkpointed DFP, VSX,
1438         and EFP pseudo registers.
1439         (rs6000_gdbarch_init): Look for and validate the htm features.
1440         Include checkpointed DFP, VSX and EFP pseudo-registers.
1441         * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and
1442         HTM registers.
1443
1444 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1445
1446         * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but
1447         without altivec or fpu.
1448
1449 2018-10-26  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1450             Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1451
1452         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET)
1453         (PPC_LINUX_SIZEOF_PMUREGSET): Declare.
1454         * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU):
1455         Define if not already defined.
1456         * features/rs6000/power-ebb.xml: New file.
1457         * features/rs6000/power-linux-pmu.xml: New file.
1458         * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu
1459         features.
1460         * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise.
1461         * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate.
1462         * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate.
1463         * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate.
1464         * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate.
1465         * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1466         fetch_regset with ebb and pmu regsets.
1467         (store_register, store_ppc_registers): Call store_regset with ebb
1468         and pmu regsets.
1469         (ppc_linux_nat_target::read_description): Set isa207 field in the
1470         features struct if ebb and pmu are avaiable.
1471         * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu)
1472         (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals.
1473         (ppc_linux_iterate_over_regset_sections): Call back with the ebb
1474         and pmu regsets.
1475         (ppc_linux_core_read_description): Check if the pmu section is
1476         present and set isa207 in the features struct.
1477         * ppc-linux-tdep.h (ppc32_linux_ebbregset)
1478         (ppc32_linux_pmuregset): Declare.
1479         * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field.
1480         <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields.
1481         <ppc_sier_regnum>: New field.
1482         (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>:
1483         New enum values.
1484         <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum
1485         values.
1486         <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values.
1487         (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define.
1488         * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the
1489         ebb and pmu features.
1490
1491 2018-10-26  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1492             Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1493
1494         * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l)
1495         (tdesc_powerpc_isa207_vsx64l): Declare.
1496         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define.
1497         (struct ppc_linux_features) <isa207>: New field.
1498         (ppc_linux_no_features): Add initializer for isa207 field.
1499         * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1500         new tdescs.
1501         * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR)
1502         (NT_PPC_TAR): Define if not already defined.
1503         * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and
1504         rs6000/powerpc-isa207-vsx64l.
1505         (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and
1506         rs6000/powerpc-isa207-vsx64l.xml.
1507         * features/rs6000/power-tar.xml: New file.
1508         * features/rs6000/powerpc-isa207-vsx32l.xml: New file.
1509         * features/rs6000/powerpc-isa207-vsx64l.xml: New file.
1510         * features/rs6000/powerpc-isa207-vsx32l.c: Generate.
1511         * features/rs6000/powerpc-isa207-vsx64l.c: Generate.
1512         * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate.
1513         * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate.
1514         * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1515         fetch_regset with the TAR regset.
1516         (store_register, store_ppc_registers): Call store_regset with the
1517         TAR regset.
1518         (ppc_linux_nat_target::read_description): Set isa207 field in the
1519         features struct if needed.
1520         * ppc-linux-tdep.c: Include
1521         features/rs6000/powerpc-isa207-vsx32l.c and
1522         features/rs6000/powerpc-isa207-vsx64l.c.
1523         (ppc32_regmap_tar, ppc32_linux_tarregset): New globals.
1524         (ppc_linux_iterate_over_regset_sections): Call back with the tar
1525         regset.
1526         (ppc_linux_core_read_description): Check if the tar section is
1527         present and set isa207 in the features struct.
1528         (_initialize_ppc_linux_tdep): Call
1529         initialize_tdesc_powerpc_isa207_vsx32l and
1530         initialize_tdesc_powerpc_isa207_vsx64l.
1531         * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare.
1532         * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field.
1533         (enum) <PPC_TAR_REGNUM>: New enum value.
1534         * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar
1535         feature.
1536         (ppc_process_record_op31): Record changes to TAR.
1537
1538 2018-10-26  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1539             Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1540
1541         * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l)
1542         (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare.
1543         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET)
1544         (PPC_LINUX_SIZEOF_DSCRREGSET): Define.
1545         (struct ppc_linux_features) <ppr_dscr>: New field.
1546         (ppc_linux_no_features): Add initializer for ppr_dscr field.
1547         * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1548         new tdescs.
1549         * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR):
1550         Define if not already defined.
1551         * features/Makefile (WHICH): Add
1552         rs6000/powerpc-isa205-ppr-dscr-vsx32l and
1553         rs6000/powerpc-isa205-ppr-dscr-vsx64l.
1554         (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
1555         rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml.
1556         * features/rs6000/power-dscr.xml: New file.
1557         * features/rs6000/power-ppr.xml: New file.
1558         * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file.
1559         * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file.
1560         * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate.
1561         * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate.
1562         * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate.
1563         * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate.
1564         * ppc-linux-nat.c: Include <sys/uio.h>.
1565         (fetch_regset, store_regset, check_regset): New functions.
1566         (fetch_register, fetch_ppc_registers): Call fetch_regset with
1567         DSCR and PPR regsets.
1568         (store_register, store_ppc_registers): Call store_regset with
1569         DSCR and PPR regsets.
1570         (ppc_linux_get_hwcap2): New function.
1571         (ppc_linux_nat_target::read_description): Call
1572         ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the
1573         features struct if needed.
1574         * ppc-linux-tdep.c: Include
1575         features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and
1576         features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c.
1577         (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset)
1578         (ppc32_linux_dscrregset): New globals.
1579         (ppc_linux_iterate_over_regset_sections): Call back with the ppr
1580         and dscr regsets.
1581         (ppc_linux_core_read_description): Check if the ppr and dscr
1582         sections are present and set ppr_dscr in the features struct.
1583         (_initialize_ppc_linux_tdep): Call
1584         initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and
1585         initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l.
1586         * ppc-linux-tdep.h (ppc32_linux_pprregset)
1587         (ppc32_linux_dscrregset): Declare.
1588         * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field.
1589         <ppc_dscr_regnum>: New field.
1590         (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values.
1591         * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr
1592         and dscr features.
1593         (ppc_process_record_op31): Record changes to PPR and DSCR.
1594
1595 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1596
1597         * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
1598         second initializer line for the have_* variables.  Initialize
1599         have_fpu to 0 instead of 1.
1600
1601 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1602
1603         * arch/ppc-linux-common.c (ppc_linux_match_description):
1604         Parenthesize tdesc assignements and indent them properly.
1605
1606 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1607
1608         * ppc-linux-nat.c (fetch_register): Change if statement to else
1609         if.
1610         (store_register): Likewise.
1611
1612 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1613
1614         * rs6000-tdep.c: Remove reggroups.h include.
1615         (rs6000_pseudo_register_reggroup_p): Remove.
1616         (rs6000_gdbarch_init): Remove call to
1617         set_tdesc_pseudo_register_reggroup_p.
1618
1619 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1620
1621         * reggroups.c (default_register_reggroup_p): Return true for
1622         decfloat registers and float_reggroup.
1623
1624 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1625
1626         * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove.
1627         (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace
1628         ppc_linux_collect_vrregset by regcache_collect_regset.
1629
1630 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1631
1632         * linux-tdep.c (linux_collect_regset_section_cb): Use
1633         std::vector<gdb_byte> instead of char * and malloc for buf.
1634         Remove xfree.
1635
1636 2018-10-26  Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1637
1638         * xcoffread.c (read_xcoff_symtab): Pass deduced language to
1639         symtab_start instead of always using language_unknown.
1640
1641 2018-10-26  Andrew Burgess  <andrew.burgess@embecosm.com>
1642
1643         * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove
1644         READ_P parameter, catch and ignore register access errors from
1645         either the old or new MISA location.
1646         (riscv_has_feature): Update call to riscv_read_misa_reg.
1647
1648 2018-10-25  Andrew Burgess  <andrew.burgess@embecosm.com>
1649
1650         * python/py-function.c (convert_values_to_python): Return
1651         gdbpy_ref<>.  Add header comment.
1652         (fnpy_call): Adjust.
1653
1654 2018-10-25  Andrew Burgess  <andrew.burgess@embecosm.com>
1655
1656         * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
1657         (cmdpy_completer_handle_brkchars): Adjust.
1658         (cmdpy_completer): Adjust.
1659
1660 2018-10-25  Andrew Burgess  <andrew.burgess@embecosm.com>
1661
1662         * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
1663         Pass correct regnum to raw_supply_zeroed.
1664
1665 2018-10-23  Hafiz Abid Qadeer  <abidh@codesourcery.com>
1666
1667         * regcache.c (cooked_read_test): Add CSKY to the list of
1668         architectures with a save_reggroup
1669
1670 2018-10-23  Simon Marchi  <simon.marchi@polymtl.ca>
1671
1672         PR gdb/23368
1673         * infrun.c (follow_exec): In the follow_exec_mode_new case,
1674         transfer terminal state from old new new inferior.
1675         * terminal.h (swap_terminal_info): New function.
1676         * inflow.c (swap_terminal_info): New function.
1677
1678 2018-10-23  Tom Tromey  <tom@tromey.com>
1679
1680         * record-btrace.c (get_thread_current_frame_id): Rename from
1681         get_thread_current_frame.  Return a frame_id.
1682         (record_btrace_start_replaying): Update.
1683
1684 2018-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
1685
1686         * riscv-tdep.c (riscv_register_name): Use the user-friendly names
1687         for CSRs.
1688
1689 2018-10-23  Joel Brobecker  <brobecker@adacore.com>
1690
1691         * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
1692         have_nonsteppable_watchpoint attribute to 1.
1693
1694 2018-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
1695
1696         * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
1697         register names.
1698         (struct register_alias): Rename to...
1699         (struct riscv_register_alias): ...this, and update comment.
1700         (riscv_register_aliases): Update type, and alias names.  Remove
1701         CSR names from this list.
1702         (riscv_register_name): Use riscv_gdb_reg_names for int and float
1703         register names.  Add an extra assertion.
1704         (riscv_is_regnum_a_named_csr): New function.
1705         (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
1706
1707 2018-10-23  John Darrington  <john@darrington.wattle.id.au>
1708
1709         * configure.tgt: Add configuration for s12z.
1710         * s12z-tdep.c:  New file.
1711         * NEWS: Mention new target.
1712
1713 2018-10-22  Jim Wilson  <jimw@sifive.com>
1714
1715         * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
1716         FP reg smaller than FP reg size, and fill with -1 instead of 0.
1717
1718         * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
1719         (riscv_register_type): Use them.
1720         (riscv_print_one_register_info): Handle union of floats same as float.
1721         * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
1722         riscv_fpreg_q_type fields.
1723
1724 2018-10-21  Simon Marchi  <simon.marchi@ericsson.com>
1725
1726         * gdbarch.sh (gdbarch_num_cooked_regs): New.
1727         * gdbarch.h: Re-generate.
1728         * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
1729         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
1730         * eval.c (evaluate_subexp_standard): Likewise.
1731         * findvar.c (value_of_register): Likewise.
1732         (value_of_register_lazy): Likewise.
1733         (address_from_register): Likewise.
1734         * frame.c (get_frame_register_bytes): Likewise.
1735         * gdbarch-selftests.c (register_to_value_test): Likewise.
1736         * h8300-tdep.c (h8300_register_type): Likewise.
1737         * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
1738         (i386_svr4_reg_to_regnum): Likewise.
1739         * infcmd.c (default_print_registers_info): Likewise.
1740         (registers_info): Likewise.
1741         (print_vector_info): Likewise.
1742         (default_print_float_info): Likewise.
1743         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1744         * mdebugread.c (mdebug_reg_to_regnum): Likewise.
1745         * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
1746         (mi_cmd_data_list_changed_registers): Likewise.
1747         (mi_cmd_data_list_register_values): Likewise.
1748         (mi_cmd_data_write_register_values): Likewise.
1749         (mi_cmd_trace_frame_collected): Likewise.
1750         * mips-tdep.c (print_gp_register_row): Likewise.
1751         (mips_print_registers_info): Likewise.
1752         * nds32-tdep.c (nds32_gdbarch_init): Likewise.
1753         * regcache.c (init_regcache_descr): Likewise.
1754         (register_size): Likewise.
1755         (register_dump::dump): Likewise.
1756         (cooked_read_test): Likewise.
1757         (cooked_write_test): Likewise.
1758         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1759         (rs6000_gdbarch_init): Likewise.
1760         * stabsread.c (stab_reg_to_regnum): Likewise.
1761         * stack.c (info_frame_command): Likewise.
1762         * target-descriptions.c (tdesc_register_name): Likewise.
1763         * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1764         * tui/tui-regs.c (tui_show_register_group): Likewise.
1765         * user-regs.c (user_reg_map_name_to_regnum): Likewise.
1766         (user_reg_map_regnum_to_name): Likewise.
1767         (value_of_user_reg): Likewise.
1768         (maintenance_print_user_registers): Likewise.
1769         * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
1770         (xtensa_register_name): Likewise.
1771         (xtensa_register_type): Likewise.
1772         (xtensa_reg_to_regnum): Likewise.
1773         (xtensa_pseudo_register_read): Likewise.
1774         (xtensa_pseudo_register_write): Likewise.
1775
1776 2018-10-21  Simon Marchi  <simon.marchi@polymtl.ca>
1777
1778         * amd64-tdep.c (amd64_pseudo_register_read_value): Use
1779         correctly-sized buffer with raw_read.
1780         (amd64_pseudo_register_write): Use correctly-sized buffer for
1781         raw_read/raw_write.
1782
1783 2018-10-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1784
1785         * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
1786         in add_prefix_cmd of set print type.
1787
1788 2018-10-19  Tom Tromey  <tom@tromey.com>
1789
1790         PR tui/18388:
1791         * NEWS: Mention tabset deprecation.
1792         * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
1793         (update_tab_width): New function.
1794         (tui_set_tab_width, tui_show_tab_width): New functions.
1795         (tui_set_tab_width_command): Use update_tab_width.
1796         (_initialize_tui_win): Move to end of file.  Deprecate "tabset".
1797         Add new "set tui tab-width" command.
1798         * tui/tui-source.c (tui_set_source_content): Update.
1799         * tui/tui-disasm.c (tui_set_disassem_content): Update.
1800         * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
1801         Don't declare.
1802         (tui_tab_width): Declare.
1803         * tui/tui-data.c (default_tab_len, tui_default_tab_len)
1804         (tui_set_default_tab_len): Remove.
1805
1806 2018-10-19  Tom Tromey  <tom@tromey.com>
1807
1808         * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
1809         (key_is_backspace, tui_getc): Don't declare.
1810         * tui/tui-io.c (key_is_start_sequence): Now static.
1811         (key_is_end_sequence, key_is_backspace): Remove.
1812         (tui_getc): Now static.
1813
1814 2018-10-19  Tom Tromey  <tom@tromey.com>
1815
1816         * symfile.c (reread_symbols): Clear "static_links".
1817
1818 2018-10-19  Alan Hayward  <alan.hayward@arm.com>
1819
1820         * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
1821         define.
1822         (aarch64_linux_sigframe_init): Extra boundary checks.
1823
1824 2018-10-19  Andreas Arnez  <arnez@linux.ibm.com>
1825
1826         * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
1827         the possibly non-existent tdesc type 'vec128', but the type of raw
1828         register v16 instead.
1829
1830 2018-10-19  Gary Benson <gbenson@redhat.com>
1831
1832         * cli/cli-interp.c (cli_interp::~cli_interp): New function.
1833
1834 2018-10-18  Sergio Durigan Junior  <sergiodj@redhat.com>
1835
1836         PR cli/23785
1837         * cli/cli-dump.c (restore_binary_file): Check if "file" is
1838         NULL.
1839
1840 2018-10-17  Paul Koning  <paul_koning@dell.com>
1841
1842         * charset.c (convert_between_encodings): Fix unsigned overflow.
1843
1844 2018-10-17  John Baldwin  <jhb@FreeBSD.org>
1845
1846         * fbsd-nat.c (fbsd_nat_target::info_proc) Use
1847         fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
1848         * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
1849         (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1850         New functions.
1851         (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
1852         and fbsd_info_proc_mappings_header.
1853         * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
1854         (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1855         New.
1856
1857 2018-10-17  Joel Brobecker  <brobecker@adacore.com>
1858
1859         * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
1860         Solaris Maintainer.
1861
1862 2018-10-15  Tom Tromey  <tom@tromey.com>
1863
1864         * tui/tui.c (strcat_to_buf): Remove casts.
1865         * tui/tui-winsource.c (tui_show_source_line)
1866         (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
1867         * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
1868         * tui/tui-windata.c (tui_first_data_item_displayed)
1869         (tui_delete_data_content_windows, tui_erase_data_content)
1870         (tui_display_all_data, tui_display_data_from)
1871         (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
1872         * tui/tui-win.c (tui_set_win_height)
1873         (make_invisible_and_set_new_height, parse_scrolling_args): Remove
1874         casts.
1875         * tui/tui-win.c (tui_resize_all): Remove casts.
1876         (tui_scroll_backward_command, tui_set_focus)
1877         (tui_set_tab_width_command): Likewise.
1878         * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
1879         * tui/tui-regs.c (tui_show_register_group): Remove cast.
1880         * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
1881         * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
1882         * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
1883         Remove casts.
1884
1885 2018-10-15  Simon Marchi  <simon.marchi@ericsson.com>
1886
1887         * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
1888         AArch64/ARM maintainer.
1889
1890 2018-10-11  Gary Benson <gbenson@redhat.com>
1891
1892         * interps.h (interp::m_name): Make private and mutable.
1893         * interps.c (interp::~interp): Free m_name.
1894
1895 2018-10-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1896             Simon Marchi <simark@simark.ca>
1897
1898         * README (`configure' options): Add documentation for new
1899         "--enable-unit-tests" option.
1900         * acinclude.m4: Include "selftest.m4".
1901         * configure: Regenerate.
1902         * configure.ac: Use "GDB_AC_SELFTEST".
1903         * maint.c (maintenance_selftest): Update message informing
1904         that selftests have been disabled.
1905         (maintenance_info_selftests): Likewise.
1906         * selftest.m4: New file.
1907
1908 2018-10-10  Gary Benson <gbenson@redhat.com>
1909
1910         * remote.c (remote_target::remote_send_printf): Add
1911         missing va_end found by Coverity.
1912
1913 2018-10-10  Markus Metzger  <markus.t.metzger@intel.com>
1914
1915         * btrace.c (ftrace_update_function): Add indirect jump heuristic.
1916
1917 2018-10-09  Tom Tromey  <tom@tromey.com>
1918
1919         * configure: Rebuild.
1920         * sanitize.m4 (AM_GDB_UBSAN): Default to no.
1921         * NEWS: Update --enable-ubsan documentation.
1922
1923 2018-10-09  Gary Benson <gbenson@redhat.com>
1924
1925         * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
1926         found by Coverity.
1927
1928 2018-10-08  Tom Tromey  <tom@tromey.com>
1929
1930         * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
1931         variable.
1932         (riscv_fbsd_init_abi): Likewise.
1933
1934 2018-10-08  Weimin Pan  <weimin.pan@oracle.com>
1935         * valops.c (value_struct_elt_for_reference): Rename local variable
1936         to work around the shadowing a previous local warning.
1937
1938 2018-10-08  John Baldwin  <jhb@FreeBSD.org>
1939
1940         * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
1941         * NEWS: Mention new FreeBSD/riscv native configuration.
1942         * configure.host: Add riscv*-*-freebsd*.
1943         * configure.nat: Likewise.
1944         * riscv-fbsd-nat.c: New file.
1945
1946 2018-10-08  John Baldwin  <jhb@FreeBSD.org>
1947
1948         * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
1949         (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
1950         (ALLDEPFILES): Add riscv-fbsd-tdep.c.
1951         * NEWS: Mention new FreeBSD/riscv target.
1952         * configure.tgt: Add riscv*-*-freebsd*.
1953         * riscv-fbsd-tdep.c: New file.
1954         * riscv-fbsd-tdep.h: New file.
1955
1956 2018-10-08  John Baldwin  <jhb@FreeBSD.org>
1957
1958         * regcache.h (struct regcache_map_entry): Note that this type can
1959         be used with traditional frame caches.
1960         * trad-frame.c (trad_frame_set_reg_regmap): New.
1961         * trad-frame.h (trad_frame_set_reg_regmap): New.
1962
1963 2018-10-08  Weimin Pan  <weimin.pan@oracle.com>
1964
1965         PR c++/16841
1966         * valops.c (get_virtual_base_offset): New function.
1967         (value_struct_elt_for_reference): Use it to get virtual base offset
1968         and add it in calculating class member address.
1969
1970 2018-10-08  John Darrington  <john@darrington.wattle.id.au>
1971
1972         * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
1973         (check_producer): Check if the producer is codewarrior.
1974         (producer_is_codewarrior): New function.
1975         (lnp_state_machine::record_line): Ignore is_stmt flag for records
1976         produced by codewarrior.
1977         (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
1978
1979 2018-10-06  Tom Tromey  <tom@tromey.com>
1980
1981         PR python/19399:
1982         * python/py-inferior.c: Add "architecture" entry.
1983         (infpy_architecture): New function.
1984
1985 2018-10-06  Tom Tromey  <tom@tromey.com>
1986
1987         PR python/21765:
1988         * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
1989         SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
1990         SYMBOL_TYPES_DOMAIN.  Define SYMBOL_MODULE_DOMAIN,
1991         SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
1992
1993 2018-10-06  Tom Tromey  <tom@tromey.com>
1994
1995         PR build/17077:
1996         * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
1997         * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
1998         microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
1999         #include.
2000
2001 2018-10-06  Tom Tromey  <tom@tromey.com>
2002
2003         * python/py-breakpoint.c (bppy_get_location): Handle a
2004         bp_breakpoint without a location.
2005
2006 2018-10-06  Tom Tromey  <tom@tromey.com>
2007
2008         * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
2009         (_RegEx): Reformat help text.
2010         * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
2011         (AnyCallerIs, AnyCallerMatches): Reformat help text.
2012         * python/lib/gdb/function/as_string.py (_AsString): Reformat help
2013         text.
2014         * python/lib/gdb/command/xmethods.py (InfoXMethod)
2015         (EnableXMethod, DisableXMethod): Remove help indentation.
2016         Capitalize meta-syntactic variables.
2017         * python/lib/gdb/command/unwinders.py (InfoUnwinder)
2018         (EnableUnwinder, DisableUnwinder): Remove help indentation.
2019         Capitalize meta-syntactic variables.
2020         * python/lib/gdb/command/explore.py (ExploreCommand)
2021         (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
2022         * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
2023         (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
2024         * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
2025         Remove help indentation.
2026         (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
2027         * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
2028         (DisableFrameFilter, SetFrameFilterPriority)
2029         (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
2030
2031 2018-10-06  Tom Tromey  <tom@tromey.com>
2032
2033         PR tui/28819:
2034         * tui/tui-io.c (gdb_wgetch): New function.
2035         (tui_mld_getc, tui_getc): Use it.
2036
2037 2018-10-05  Tom Tromey  <tom@tromey.com>
2038
2039         * sol-thread.c (sol_thread_target::wait): Rename inner
2040         "save_ptid".
2041
2042 2018-10-04  Tom Tromey  <tom@tromey.com>
2043
2044         * configure: Rebuild.
2045         * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
2046
2047 2018-10-04  Tom Tromey  <tom@tromey.com>
2048
2049         * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
2050         declaration of "block".
2051
2052 2018-10-04  Tom Tromey  <tom@tromey.com>
2053
2054         * common/filestuff.c (fdwalk): Remove inner declaration of
2055         "result".
2056
2057 2018-10-04  Tom Tromey  <tom@tromey.com>
2058
2059         * msp430-tdep.c (msp430_push_dummy_call): Rename inner
2060         "structs_addr" and hoist declaration.
2061
2062 2018-10-04  Tom Tromey  <tom@tromey.com>
2063
2064         * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
2065         variable "size".
2066
2067 2018-10-04  Tom Tromey  <tom@tromey.com>
2068
2069         * mdebugread.c (parse_partial_symbols): Use std::string.
2070
2071 2018-10-04  Tom Tromey  <tom@tromey.com>
2072
2073         * ctf.c (SET_ARRAY_FIELD): Rename "u32".
2074         * p-valprint.c (pascal_val_print): Split inner "i" variable.
2075         * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
2076         header.
2077         * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
2078         more inner scope.
2079         * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
2080         * varobj.c (varobj_update): Rename inner "newobj",
2081         "type_changed".
2082         * valprint.c (generic_emit_char): Rename inner "buf".
2083         * valops.c (find_overload_match): Rename inner "temp".
2084         (value_struct_elt_for_reference): Declare "v" in more inner
2085         scope.
2086         * v850-tdep.c (v850_push_dummy_call): Rename "len".
2087         * unittests/array-view-selftests.c (run_tests): Rename inner
2088         "vec".
2089         * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
2090         header.
2091         * tracepoint.c (merge_uploaded_trace_state_variables): Declare
2092         "tsv" in more inner scope.
2093         (print_one_static_tracepoint_marker): Rename inner
2094         "tuple_emitter".
2095         * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
2096         (tic6x_push_dummy_call): Don't redeclare "addr".
2097         * target-float.c: Declare "dto" lower.
2098         * symtab.c (lookup_local_symbol): Rename inner "sym".
2099         (find_pc_sect_line): Rename inner "pc".
2100         * stack.c (print_frame): Don't redeclare "gdbarch".
2101         (return_command): Rename inner "gdbarch".
2102         * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
2103         "sp".
2104         * rust-lang.c (rust_internal_print_type): Declare "i" in loop
2105         header.
2106         * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
2107         * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
2108         scope.
2109         * remote.c (remote_target::update_thread_list): Don't redeclare
2110         "tp".
2111         (remote_target::process_initial_stop_replies): Rename inner
2112         "thread".
2113         (remote_target::remote_parse_stop_reply): Don't redeclare "p".
2114         (remote_target::wait_as): Don't redeclare "stop_reply".
2115         (remote_target::get_thread_local_address): Rename inner
2116         "result".
2117         (remote_target::get_tib_address): Likewise.
2118
2119         * regcache.c (cooked_read_test): Rename "regnum".
2120         * record-btrace.c (cmd_record_btrace_start): Rename inner
2121         "exception".
2122         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
2123         loop header.
2124         * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
2125         header.
2126         (ppu2spu_sniffer): Rename inner "buf".
2127         * parse.c (operator_check_standard): Rename inner "type",
2128         "objfile".
2129         * p-valprint.c (pascal_val_print): Introduce new scope for
2130         "low_bound", "high_bound".
2131         * p-exp.y (yylex): Declare "i" in loop header.
2132         * objfiles.c (objfile_relocate1): Declare "i" in loop header.
2133         Lower declaration of "s".
2134         * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
2135         header.
2136         (nios2_push_dummy_call): Rename "len".
2137         * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
2138         "buf".
2139         (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
2140         (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
2141         (linux_xfer_osdata_modules): Likewise.
2142         * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
2143         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
2144         (mips_o64_push_dummy_call): Likewise.
2145         * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
2146         "op".
2147         * mi/mi-main.c (list_available_thread_groups): Rename inner
2148         "tuple_emitter".
2149         (mi_cmd_data_read_memory): Rename inner "opts".
2150         * mi/mi-cmd-var.c (varobj_update_one): Rename inner
2151         "tuple_emitter".
2152         * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
2153         * mdebugread.c (parse_symbol): Rename inner "b".  Declare "f" in
2154         more inner scope.
2155         (parse_partial_symbols): Rename inner "pst", "p", "name"
2156         * main.c (captured_main_1): Rename inner "i"s.
2157         * machoread.c (macho_symfile_read_all_oso): Don't redeclare
2158         "oso2".
2159         * linux-tdep.c (linux_info_proc): Rename inner "filename".
2160         * linespec.c (linespec_lexer_lex_string): Rename inner "p".
2161         * infrun.c (handle_no_resumed): Don't redeclare "thread".
2162         (handle_signal_stop): Rename inner "gdbarch".
2163         (handle_command): Declare "signum" in loop header.
2164         * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
2165         "status".
2166         (examine_prologue): Rename inner "sol" and "sof".
2167         (ia64_extract_return_value): Rename inner "val".  Declare another
2168         "val" in a more inner scope.
2169         * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
2170         inner scope.
2171         * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
2172         "except".
2173         * findvar.c (default_read_var_value): Don't redeclare "addr".
2174         * f-exp.y (yylex): Declare "i" in loop header.
2175         * eval.c (evaluate_subexp_standard): Don't redeclare "type".
2176         Rename inner "type", "expect_type".
2177         (evaluate_subexp_for_sizeof): Rename inner "pc".
2178         * elfread.c (elf_symfile_read): Rename inner "abfd".
2179         * dwarf2read.c (read_debug_names_from_section): Don't redeclare
2180         "bytes_read".
2181         (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
2182         (add_partial_subprogram): Rename inner "lowpc" and "highpc".
2183         (dwarf_decode_line_header): Rename inner "lh".
2184         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
2185         "offset".  Declare "i" in loop header.
2186         (disassemble_dwarf_expression): Rename inner "addr_size".
2187         * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
2188         inner "result".
2189         (dwarf_expr_context::execute_stack_op): Rename inner "offset".
2190         * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
2191         * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
2192         "inner_list_emitter".
2193         (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
2194         * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
2195         declaration in a block.
2196         * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
2197         * cp-valprint.c (cp_print_value_fields): Don't redeclare
2198         "obstack_final_size".
2199         * cp-support.c (inspect_type): Declare "i" in loop header.
2200         * compile/compile.c (compile_instance::insert_symbol_error):
2201         Rename inner "e".
2202         * common/agent.c (agent_run_command): Remove inner "ret"
2203         declaration.
2204         * coffread.c (coff_symfile_read): Rename inner "name".
2205         (coff_symfile_read): Rename inner "abfd".
2206         * cli/cli-utils.c (get_number_trailer): Rename inner "val".
2207         * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
2208         "high".
2209         * c-exp.y (lex_one_token): Move "len" declaration lower.
2210         * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
2211         "gdbarch".
2212         (create_exception_master_breakpoint): Likewise.  Don't redeclare
2213         "b".
2214         (watch_command_1): Declare "mark" later.
2215         (clear_command): Don't shadow "a" or "b".
2216         (delete_command): Rename inner "b".
2217         (delete_trace_command): Likewise.
2218         * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
2219         "op".
2220         (arm_gdbarch_init): Remove inner "e_flags".
2221         * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
2222         "offset" in inner blocks.
2223
2224 2018-10-04  Simon Marchi  <simon.marchi@ericsson.com>
2225
2226         * dwarf-index-write.c (file_write): Don't write if the vector is
2227         empty.
2228
2229 2018-10-05  Tom de Vries  <tdevries@suse.de>
2230
2231         * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
2232         PyArg_ParseTuple call.
2233
2234 2018-10-05  Tom de Vries  <tdevries@suse.de>
2235
2236         * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
2237         PyArg_ParseTuple call.
2238
2239 2018-10-04  Joel Brobecker  <brobecker@adacore.com>
2240
2241         * psymtab.c (recursively_search_psymtabs): Reformat parameters
2242         to avoid exceeding 80 characters per line limit.
2243
2244 2018-10-04  Tom Tromey  <tom@tromey.com>
2245
2246         * symfile.c (syms_from_objfile_1, finish_new_objfile)
2247         (reread_symbols): Update.
2248         * complaints.h (clear_complaints): Remove argument.
2249         * complaints.c (enum complaint_series): Remove.
2250         (series): Remove global.
2251         (complaint_internal): Update.
2252         (clear_complaints): Remove argument.
2253
2254 2018-10-04  Tom Tromey  <tom@tromey.com>
2255
2256         * symfile.c (symbol_file_add_with_addrs): Do not print "no
2257         debugging symbols" message if there is a separate debug objfile.
2258
2259 2018-10-04  Tom Tromey  <tom@tromey.com>
2260
2261         PR cli/19551:
2262         * symfile.c (symbol_file_add_with_addrs): Update output.
2263         * psymtab.c (require_partial_symbols): Update output.
2264
2265 2018-10-04  Tom Tromey  <tom@tromey.com>
2266
2267         PR cli/22234:
2268         * complaints.c: Emit \n.
2269
2270 2018-10-04  Tom Tromey  <tom@tromey.com>
2271
2272         * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
2273         (separate_debug_file_exists, find_separate_debug_file)
2274         (add_symbol_file_command, reread_symbols, allocate_symtab)
2275         (allocate_compunit_symtab): Use filtered printing, not
2276         unfiltered.
2277         * psymtab.c (require_partial_symbols, dump_psymtab)
2278         (allocate_psymtab): Use filtered printing, not unfiltered.
2279
2280 2018-10-04  Tom Tromey  <tom@tromey.com>
2281
2282         * complaints.c (complaint_internal): Correctly check complaint
2283         count.
2284
2285 2018-10-04  Tom Tromey  <tom@tromey.com>
2286
2287         * complaints.h (struct complaints): Remove declaration.
2288         * complaints.c (clear_complaints): Remove an unused variable.
2289
2290 2018-10-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2291
2292         * MAINTAINERS (Write After Approval): Add self.
2293
2294 2018-10-03  Tom Tromey  <tom@tromey.com>
2295
2296         * guile/scm-value.c (gdbscm_value_to_string): Initialize
2297         "buffer_contents".
2298         * coffread.c (coff_symtab_read): Initialize "newobj".
2299
2300 2018-10-03  Simon Marchi  <simon.marchi@polymtl.ca>
2301
2302         * dwarf2read.c (read_func_scope): Remove struct keyword in
2303         range-based for.
2304
2305 2018-10-03  Tom Tromey  <tom@tromey.com>
2306
2307         * README: Mention --enable-ubsan.
2308         * NEWS: Mention --enable-ubsan.
2309         * acinclude.m4: Include sanitize.m4.
2310         * configure: Rebuild.
2311         * configure.ac: Call AM_GDB_UBSAN.
2312         * sanitize.m4: New file.
2313
2314 2018-10-03  Tom Tromey  <tom@tromey.com>
2315
2316         * expression.h (enum exp_opcode): Use uint8_t as base type.
2317         * expprint.c (op_name): Handle invalid opcodes.
2318
2319 2018-10-03  Tom Tromey  <tom@tromey.com>
2320
2321         * parse.c (prefixify_expression): Add assert.
2322         (parse_exp_in_context_1): Throw exception if the expression is
2323         empty.
2324
2325 2018-10-03  Tom Tromey  <tom@tromey.com>
2326
2327         * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
2328
2329 2018-10-03  Tom Tromey  <tom@tromey.com>
2330
2331         * c-exp.y (parse_number): Work in unsigned.  Remove casts.
2332
2333 2018-10-03  Tom Tromey  <tom@tromey.com>
2334
2335         * dwarf2read.c (read_subrange_type): Make "negative_mask"
2336         unsigned.
2337
2338 2018-10-03  Tom Tromey  <tom@tromey.com>
2339
2340         * findvar.c (extract_integer): Do work in an unsigned type.
2341
2342 2018-10-03  Tom Tromey  <tom@tromey.com>
2343
2344         * common/enum-flags.h (enum_flags::operator~): Add static assert.
2345         * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
2346         base type.
2347         * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
2348         * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
2349         type.
2350         * c-lang.h (enum c_string_type_values): Use unsigned as base
2351         type.
2352         * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
2353
2354 2018-10-03  Tom Tromey  <tom@tromey.com>
2355
2356         * dwarf2-frame.h (dwarf2_frame_state_reg_info)
2357         <~dwarf2_frame_state_reg_info>: Update.
2358         <dwarf2_frame_state_reg_info>: Update.
2359         <alloc_regs>: Add assertion.  Update.
2360         <reg>: Now a std::vector.
2361         <num_regs>: Remove.
2362         <swap>: Update.
2363         * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
2364         (execute_cfa_program_test, dwarf2_frame_cache): Update.
2365
2366 2018-10-03  Tom Tromey  <tom@tromey.com>
2367
2368         * namespace.c (add_using_directive): Don't pass NULL to memcpy.
2369
2370 2018-10-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2371
2372         * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
2373
2374 2018-10-02  Tom Tromey  <tom@tromey.com>
2375
2376         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
2377
2378 2018-10-02  John Darrington  <john@darrington.wattle.id.au>
2379
2380         * NEWS: Mention changed commands.
2381         * ser-uds.c: New file.
2382         * configure.ac (SER_HARDWIRE): Add ser-uds.o.
2383         * configure: Regenerate.
2384         * Makefile.in: Add new file.
2385         * serial.c (serial_open): Check if filename is a socket
2386         and lookup the appropriate interface accordingly.
2387
2388 2018-10-01  Alan Hayward  <alan.hayward@arm.com>
2389
2390         * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
2391         define.
2392         (AARCH64_EXTRA_MAGIC): Likewise.
2393         (AARCH64_FPSIMD_MAGIC): Likewise.
2394         (AARCH64_SVE_MAGIC): Likewise.
2395         (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
2396         (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
2397         (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
2398         (AARCH64_FPSIMD_V0_OFFSET): Likewise.
2399         (AARCH64_FPSIMD_VREG_SIZE): Likewise.
2400         (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
2401         (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
2402         (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
2403         (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
2404         (AARCH64_SVE_CONTEXT_SIZE): Likewise.
2405         (read_aarch64_ctx): Add function.
2406         (aarch64_linux_sigframe_init): Detect FP registers.
2407
2408 2018-10-01  Alan Hayward  <alan.hayward@arm.com>
2409
2410         * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
2411         (AARCH64_D0_REGNUM): Likewise.
2412         (AARCH64_S0_REGNUM): Likewise.
2413         (AARCH64_H0_REGNUM): Likewise.
2414         (AARCH64_B0_REGNUM): Likewise.
2415         (AARCH64_SVE_V0_REGNUM): Likewise.
2416         * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
2417         (AARCH64_D0_REGNUM): Likewise.
2418         (AARCH64_S0_REGNUM): Likewise.
2419         (AARCH64_H0_REGNUM): Likewise.
2420         (AARCH64_B0_REGNUM): Likewise.
2421         (AARCH64_SVE_V0_REGNUM): Likewise.
2422
2423 2018-10-01  Gary Benson <gbenson@redhat.com>
2424
2425         * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
2426         * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
2427         prfpregset_t instead of gdb_prfpregset_t.
2428         * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
2429         * configure, config.in: Rebuild.
2430
2431 2018-10-01  Gary Benson <gbenson@redhat.com>
2432
2433         * common/gdb_proc_service.h: New file, factored out from...
2434         * gdb_proc_service.h: Moved common code to the above file.
2435         * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
2436
2437 2018-10-01  Gary Benson <gbenson@redhat.com>
2438
2439         * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
2440         undefined.  Use elf_fpregset_t if prfpregset_t is undefined.
2441
2442 2018-10-01  Gary Benson <gbenson@redhat.com>
2443
2444         * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
2445         (AC_CHECK_HEADERS): Check for linux/elf.h.
2446         * configure, config.in: Rebuild.
2447         * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
2448         doesn't define elf_fpregset_t.
2449
2450 2018-10-01  Gary Benson <gbenson@redhat.com>
2451
2452         * gdb_proc_service.h: Whitespace change.
2453
2454 2018-10-01  Tom Tromey  <tom@tromey.com>
2455
2456         * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
2457         * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
2458         * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
2459
2460 2018-10-01  Tom Tromey  <tom@tromey.com>
2461
2462         * README: Minor change.
2463
2464 2018-09-30  Pedro Alves  <palves@redhat.com>
2465
2466         * darwin-nat-info.c (darwin_debug_regions_recurse)
2467         (info_mach_exceptions_command): Remove unused local variables.
2468         * darwin-nat.c (darwin_decode_notify_message)
2469         (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
2470         (darwin_stop_inferior, darwin_setup_exceptions)
2471         (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
2472         (darwin_nat_target::attach, darwin_nat_target::detach)
2473         (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
2474         local variables.
2475         * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
2476         variables.
2477
2478 2018-09-29  Tom Tromey  <tom@tromey.com>
2479
2480         * README: Remove some leftover text.
2481
2482 2018-09-29  Tom Tromey  <tom@tromey.com>
2483
2484         * PROBLEMS: Rewrite.
2485         * README: Update.
2486
2487 2018-09-28  John Baldwin  <jhb@FreeBSD.org>
2488
2489         * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
2490         case with explicit breakpoint kind.
2491         * riscv-tdep.c (show_use_compressed_breakpoints): Remove
2492         'additional_info' and related logic.
2493         (riscv_debug_breakpoints): New variable.
2494         (riscv_breakpoint_kind_from_pc): Use the length of the existing
2495         instruction to determine the breakpoint kind.
2496         (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
2497         flag.  Update description of 'set/show riscv
2498         use-compressed-breakpoints' flag.
2499
2500 2018-09-28  Andrew Burgess  <andrew.burgess@embecosm.com>
2501
2502         (NEWS): Mention changes to frame related commands.
2503         * cli/cli-decode.c (add_cmd_suppress_notification): New function.
2504         (add_prefix_cmd_suppress_notification): New function.
2505         (add_com_suppress_notification): Call
2506         add_cmd_suppress_notification.
2507         * command.h (add_cmd_suppress_notification): Declare.
2508         (add_prefix_cmd_suppress_notification): Declare.
2509         * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
2510         (parse_frame_specification): Moved from stack.c, with
2511         simplification to handle a single argument.
2512         (mi_cmd_stack_select_frame): Use parse_frame_specification, the
2513         switch to the selected frame.  Add a header comment.
2514         * stack.c: Remove 'safe-ctype.h' include.
2515         (find_frame_for_function): Add declaration.
2516         (find_frame_for_address): New function.
2517         (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
2518         (frame_selection_by_function_completer): New function.
2519         (info_frame_command): Rename to...
2520         (info_frame_command_core): ...this, and update parameter types.
2521         (select_frame_command): Rename to...
2522         (select_frame_command_core): ...this, and update parameter types.
2523         (frame_command): Rename to...
2524         (frame_command_core): ...this, and update parameter types.
2525         (class frame_command_helper): New class to wrap implementations of
2526         frame related sub-commands.
2527         (frame_apply_cmd_list): New static global.
2528         (frame_cmd_list): Make static.
2529         (select_frame_cmd_list): New global for sub-commands.
2530         (info_frame_cmd_list): New global for sub-commands.
2531         (_initialize_stack): Register sub-commands for 'frame',
2532         'select-frame', and 'info frame'.  Update 'frame apply' commands
2533         to use frame_apply_cmd_list.  Move function local static
2534         frame_apply_list to file static frame_apply_cmd_list for
2535         consistency.
2536         * stack.h (select_frame_command): Delete declarationn.
2537         (select_frame_for_mi): Declare new function.
2538
2539 2018-09-26  Andrew Burgess  <andrew.burgess@embecosm.com>
2540
2541         * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
2542         (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
2543         and NOP.
2544
2545 2018-09-26  Simon Marchi  <simon.marchi@ericsson.com>
2546
2547         * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
2548
2549 2018-09-26  Tom Tromey  <tom@tromey.com>
2550
2551         * valops.c (auto_abandon): Remove dead code.
2552
2553 2018-09-26  Tom Tromey  <tom@tromey.com>
2554
2555         * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
2556
2557 2018-09-24  Tom Tromey  <tom@tromey.com>
2558
2559         * common/pathstuff.c (get_standard_cache_dir): Make
2560         "xdg_cache_home" and "home" const.
2561         * top.c (init_history): Make "tmpenv" const.
2562         * main.c (get_init_files): Make "homedir" const.
2563
2564 2018-09-23  Tom Tromey  <tom@tromey.com>
2565
2566         PR python/18852:
2567         * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
2568
2569 2018-09-23  Tom Tromey  <tom@tromey.com>
2570
2571         * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
2572         * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
2573         * python/python-internal.h (gdbpy_handle_exception): Declare.
2574         * python/py-utils.c (gdbpy_handle_exception): New function.
2575
2576 2018-09-23  Tom Tromey  <tom@tromey.com>
2577
2578         PR python/17284:
2579         * python/py-type.c (typy_template_argument): Check for negative
2580         argument number.
2581
2582 2018-09-23  Tom Tromey  <tom@tromey.com>
2583
2584         PR python/14062:
2585         * python/python.c (gdbpy_run_events): Do not ignore exceptions.
2586
2587 2018-09-23  Tom Tromey  <tom@tromey.com>
2588
2589         PR python/18170:
2590         * python/py-value.c (valpy_int): Allow conversion from pointer
2591         type.
2592
2593 2018-09-23  Tom Tromey  <tom@tromey.com>
2594
2595         PR python/20126:
2596         * python/py-value.c (valpy_int): Respect type sign.
2597
2598 2018-09-23  Tom Tromey  <tom@tromey.com>
2599
2600         PR python/18352;
2601         * python/py-value.c (valpy_float): Allow conversions from int or
2602         char.
2603         (valpy_int, valpy_long): Allow conversions from float.
2604
2605 2018-09-23  Tom Tromey  <tom@tromey.com>
2606
2607         * ctf.c (ctf_start): Use gdb_fopen_cloexec.
2608         * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
2609
2610 2018-09-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2611
2612         * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
2613         __sighndlr.
2614         * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
2615
2616 2018-08-02  Jon Turney  <jon.turney@dronecode.org.uk>
2617
2618         * windows-nat.c (windows_nat_target::wait): Remove a spurious
2619         target_terminal::ours().
2620
2621 2018-09-23  Simon Marchi  <simon.marchi@ericsson.com>
2622
2623         * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
2624         of vl to ULONGEST.
2625
2626 2018-09-21  Yacov Simhony  <ysimhony@gmail.com>
2627
2628         * breakpoint.c (update_inserted_breakpoint_locations): Remove
2629         redundant condition.
2630
2631 2018-09-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2632
2633         * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
2634
2635         * procfs.c: Don't check for PR_MODEL_NATIVE definition.
2636         * sparc-sol2-nat.c: Likewise.  Remove Linux, __arch64__ references.
2637         * sol-thread.c (ps_pdmodel): Don't guard definition.
2638
2639         * procfs.c: Fix formatting.
2640
2641         * procfs.c (sysset_t_alloc): Remove.
2642         (create_procinfo): Use XNEW instead of sysset_t_alloc.
2643         (procfs_debug_inferior): Likewise.
2644         (procfs_set_exec_trap): Likewise.
2645         (proc_set_traced_sysentry): Don't allocate argp dynamically.
2646         (proc_set_traced_sysexit): Likewise.
2647
2648         * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
2649         (dead_procinfo): Likewise.
2650         (proc_warn): Likewise.
2651         (proc_error): Likewise.
2652         (proc_get_LDT_entry): Likewise.
2653         (do_attach): Likewise.
2654         (procfs_target::pid_to_str): Likewise.
2655         (iterate_over_mappings): Likewise.
2656
2657         * procfs.c (create_procinfo): Fix ARI warning.
2658         (proc_get_status): Likewise.
2659         (proc_stop_process): Likewise.
2660         (proc_run_process): Likewise.
2661         (proc_kill): Likewise.
2662         (proc_get_LDT_entry): Likewise.
2663         (procfs_find_LDT_entry): Likewise.
2664         (proc_update_threads): Likewise.
2665         (proc_iterate_over_threads): Likewise.
2666         (do_attach): Likewise.
2667         (procfs_xfer_memory): Likewise.
2668         (invalidate_cache): Likewise.
2669         (procfs_target::resume): Likewise.
2670         (procfs_init_inferior): Likewise.
2671         (procfs_set_exec_trap): Likewise.
2672         (procfs_target::thread_alive): Likewise.
2673         (procfs_target::pid_to_exec_file): Likewise.
2674         (iterate_over_mappings): Likewise.
2675         (procfs_target::make_corefile_notes): Likewise.
2676         * sol-thread.c (sol_thread_target::thread_alive): Likewise.
2677
2678         * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
2679         (procfs_find_LDT_entry): Likewise.
2680         * sol-thread.c (ps_lgetLDT): Likewise.
2681
2682 2018-09-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2683
2684         PR tdep/17903
2685         * procfs.c (procfs_target): Declare pid_to_exec_file.
2686         (procfs_target::pid_to_exec_file): New.
2687
2688 2018-09-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2689
2690         * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
2691         renaming.
2692         Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
2693         AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
2694
2695 2018-09-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2696
2697         * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
2698         (supply_fpregset, fill_fpregset): Move ...
2699         * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
2700         Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
2701         Remove references to ioctl-based procfs.
2702         Include <sys/reg.h>.
2703         Remove PR_MODEL_NATIVE guards.
2704         * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
2705         * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
2706
2707 2018-09-19  Xavier Roirand  <roirand@adacore.com>
2708
2709         PR gdb/20981:
2710         * solib-darwin.c (darwin_get_dyld_bfd): New function.
2711         (darwin_solib_get_all_image_info_addr_at_init): Update call.
2712         (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
2713
2714 2018-09-19  John Baldwin  <jhb@FreeBSD.org>
2715
2716         * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
2717         (fbsd_print_sockaddr_in6): Likewise.
2718
2719 2018-09-19  Richard Bunt  <richard.bunt@arm.com>
2720             Chris January  <chris.january@arm.com>
2721
2722         * eval.c (skip_undetermined_arglist): Skip argument list helper.
2723         (evaluate_subexp_standard): Return a dummy type when
2724         honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
2725         OP_F77_UNDETERMINED_ARGLIST case.
2726         * expression.h (enum noside): Update comment.
2727
2728 2018-09-19  George Vasick <george.vasick@oracle.com>
2729
2730         * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
2731
2732 2018-09-19  Stefan Teleman <stefan.teleman@oracle.com>
2733             April Chin <april.chin@oracle.com>
2734             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2735
2736         * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
2737         uint_t lwpid_t.
2738         (create_procinfo): Print pids in /proc without leading zeros.
2739
2740 2018-09-18  Sandra Loosemore  <sandra@codesourcery.com>
2741
2742         * nios2-tdep.c (nios2_gcc_target_options): New.
2743         (nios2_gdb_arch_init): Install new hook.
2744
2745 2018-09-18  Simon Marchi  <simon.marchi@ericsson.com>
2746
2747         * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
2748         New file.
2749         * update-gnulib.sh: Apply patch.
2750         * configure: Re-generate.
2751
2752 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
2753
2754         * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
2755         description.  Make "info proc" command descriptions more
2756         consistent.
2757
2758 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
2759
2760         * NEWS: Mention 'info proc files' command.
2761
2762 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
2763
2764         * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
2765         descriptors for IP_FILES and IP_ALL.
2766
2767 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
2768
2769         * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
2770         (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
2771         (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
2772         (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
2773         (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
2774         (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
2775         (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
2776         (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
2777         (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
2778         (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
2779         (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
2780         (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
2781         (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
2782         (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
2783         (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
2784         (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
2785         (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
2786         (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
2787         (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
2788         (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
2789         (struct fbsd_sockaddr_un): New types.
2790         (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
2791         (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
2792         (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
2793         (fbsd_core_info_proc_files): New functions.
2794         (fbsd_core_info_proc): List open file descriptors for IP_FILES and
2795         IP_ALL.
2796         * fbsd-tdep.h (fbsd_info_proc_files_header)
2797         (fbsd_info_proc_files_entry): New.
2798
2799 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
2800
2801         * defs.h (enum info_proc_what) [IP_FILES]: New value.
2802         * infcmd.c (info_proc_cmd_files): New function.
2803         (_initialize_infcmd): Register 'info proc files' command.
2804
2805 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
2806
2807         * gnulib/aclocal-m4-deps.mk: Re-generate.
2808         * gnulib/aclocal.m4: Re-generate.
2809         * gnulib/config.in: Re-generate.
2810         * gnulib/configure: Re-generate.
2811         * gnulib/import/Makefile.am: Re-generate.
2812         * gnulib/import/Makefile.in: Re-generate.
2813         * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2814         * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2815         * gnulib/import/arpa_inet.in.h: New file.
2816         * gnulib/import/inet_ntop.c: New file.
2817         * gnulib/import/m4/arpa_inet_h.m4: New file.
2818         * gnulib/import/m4/inet_ntop.m4: New file.
2819         * gnulib/import/m4/netinet_in_h.m4: New file.
2820         * gnulib/import/m4/socklen.m4: New file.
2821         * gnulib/import/m4/sockpfaf.m4: New file.
2822         * gnulib/import/m4/stdalign.m4: New file.
2823         * gnulib/import/m4/sys_uio_h.m4: New file.
2824         * gnulib/import/netinet_in.in.h: New file.
2825         * gnulib/import/stdalign.in.h: New file.
2826         * gnulib/import/sys_socket.c: New file.
2827         * gnulib/import/sys_socket.in.h: New file.
2828         * gnulib/import/sys_uio.in.h: New file.
2829         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
2830         module.
2831
2832 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
2833
2834         * gnulib/aclocal-m4-deps.mk: New file.
2835         * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
2836         deterministically.
2837
2838 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
2839
2840         * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
2841         KVE_PATH.
2842
2843 2018-09-18  Tom Tromey  <tom@tromey.com>
2844
2845         * compile/compile-object-load.c (struct
2846         link_hash_table_cleanup_data): Add constructor and destructor.
2847         Use DISABLE_COPY_AND_ASSIGN.
2848         (~link_hash_table_cleanup_data): Rename from
2849         link_hash_table_free.  Now a destructor.
2850         (copy_sections): Use gdb::unique_xmalloc_ptr.  Remove cleanups.
2851
2852 2018-09-18  Tom Tromey  <tom@tromey.com>
2853
2854         * compile/compile-object-run.c (do_module_cleanup): Use delete.
2855         * compile/compile-object-load.c (struct munmap_list): Move to
2856         header file.
2857         (munmap_list::add): Rename from munmap_list_add; rewrite.
2858         (munmap_list::~munmap_list): Rename from munmap_list_free.
2859         (munmap_listp_free_cleanup): Remove.
2860         (compile_object_load): Update.
2861         * compile/compile-object-load.h (struct munmap_list): Move from
2862         compile-object-load.c.  Rewrite.
2863
2864 2018-09-18  Alan Hayward  <alan.hayward@arm.com>
2865
2866         * aarch64-tdep.c (pass_in_v): Use register size.
2867         (aarch64_extract_return_value): Likewise.
2868         (aarch64_store_return_value): Likewise.
2869
2870 2018-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2871
2872         * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
2873         rlim_t.
2874
2875 2018-09-17  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2876
2877         * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
2878         Fix short help line.
2879
2880 2018-09-17  Tom Tromey  <tom@tromey.com>
2881
2882         PR python/20445:
2883         * configure: Rebuild.
2884         * configure.ac: Conditionally use -DNDEBUG for Python.
2885
2886 2018-09-17  Tom Tromey  <tom@tromey.com>
2887
2888         * configure: Rebuild.
2889         * configure.ac: Use gmp as a library dependency when checking for
2890         mpfr.
2891
2892 2018-09-17  Pedro Alves  <palves@redhat.com>
2893
2894         * python/py-inferior.c (find_inferior_object): Delete.
2895
2896 2018-09-17  Simon Marchi  <simon.marchi@ericsson.com>
2897
2898         * compile/compile-cplus-types.c
2899         (compile_cplus_instance::enter_scope): Don't use new_scope after
2900         std::move.
2901
2902 2018-09-17  Tom Tromey  <tom@tromey.com>
2903
2904         * common/pathstuff.c (get_standard_cache_dir): Use
2905         ~/Library/Caches on macOS.
2906         * common/pathstuff.h (get_standard_cache_dir): Update comment.
2907
2908 2018-09-17  Simon Marchi  <simon.marchi@polymtl.ca>
2909
2910         PR python/23669
2911         * breakpoint.c (commands_cmd_element): New.
2912         (_initialize_breakpoint): Assign commands_cmd_element.
2913         * breakpoint.h (commands_cmd_element): New.
2914         * cli/cli-script.c (while_cmd_element, if_command,
2915         define_cmd_element): New.
2916         (command_name_equals): Remove.
2917         (process_next_line): Compare commands by pointer, not by name.
2918         (_initialize_cli_script): Assign the various cmd_list_element
2919         variables.
2920         * compile/compile.c (compile_cmd_element): New.
2921         (_initialize_compile): Assign compile_cmd_element.
2922         * compile/compile.h (compile_cmd_element): New.
2923         * guile/guile.c (guile_cmd_element): New.
2924         (install_gdb_commands): Assign guile_cmd_element.
2925         * guile/guile.h (guile_cmd_element): New.
2926         * python/python.c (python_cmd_element): New.
2927         (_initialize_python): Assign python_cmd_element.
2928         * python/python.h (python_cmd_element): New.
2929         * tracepoint.c (while_stepping_cmd_element): New.
2930         (_initialize_tracepoint): Assign while_stepping_cmd_element.
2931         * tracepoint.h (while_stepping_cmd_element): New.
2932
2933 2018-09-17  Tom Tromey  <tom@tromey.com>
2934
2935         * infrun.c (save_infcall_suspend_state): Return
2936         infcall_suspend_state_up.
2937         (save_infcall_control_state): Return infcall_control_state_up.
2938         * inferior.h (save_infcall_suspend_state)
2939         (save_infcall_control_state): Declare later.  Return unique
2940         pointers.
2941
2942 2018-09-17  Tom Tromey  <tom@tromey.com>
2943
2944         * infrun.c (struct stop_context): Declare constructor,
2945         destructor, "changed" method.
2946         (stop_context::stop_context): Rename from save_stop_context.
2947         (stop_context::~stop_context): Rename from
2948         release_stop_context_cleanup.
2949         (normal_stop): Update.
2950         (stop_context::changed): Rename from stop_context_changed.  Return
2951         bool.
2952
2953 2018-09-17  Tom Tromey  <tom@tromey.com>
2954
2955         * inferior.h (struct infcall_suspend_state_deleter): New.
2956         (infcall_suspend_state_up): New typedef.
2957         (struct infcall_control_state_deleter): New.
2958         (infcall_control_state_up): New typedef.
2959         (make_cleanup_restore_infcall_suspend_state)
2960         (make_cleanup_restore_infcall_control_state): Don't declare.
2961         * infcall.c (call_function_by_hand_dummy): Update.
2962         * infrun.c (do_restore_infcall_suspend_state_cleanup)
2963         (make_cleanup_restore_infcall_suspend_state): Remove.
2964         (do_restore_infcall_control_state_cleanup)
2965         (make_cleanup_restore_infcall_control_state): Remove.
2966
2967 2018-09-17  Tom Tromey  <tom@tromey.com>
2968
2969         * gdbthread.h (struct thread_control_state): Add initializer.
2970         (class thread_info) <control>: Remove initializer.
2971         * inferior.h (struct inferior_control_state): Add initializer.
2972         (class inferior) <control>: Remove initializer.
2973         (exit_inferior_1): Update.
2974         * infrun.c (struct infcall_control_state): Add constructors.
2975         (save_infcall_control_state): Use new.
2976         (restore_infcall_control_state, discard_infcall_control_state):
2977         Use delete.
2978
2979 2018-09-17  Tom Tromey  <tom@tromey.com>
2980
2981         * infrun.c (struct infcall_suspend_state) <registers>: Now a
2982         unique_ptr.
2983         <siginfo_data>: Now a unique_xmalloc_ptr.
2984         (save_infcall_suspend_state, restore_infcall_suspend_state)
2985         (discard_infcall_suspend_state)
2986         (get_infcall_suspend_state_regcache): Update.
2987
2988 2018-09-17  Tom Tromey  <tom@tromey.com>
2989
2990         * gdbthread.h (struct thread_suspend_state): Add initializers.
2991         (class thread_info) <suspend>: Remove initializer.
2992         * infrun.c (struct infcall_suspend_state): Add initializers.
2993         (save_infcall_suspend_state): Use new.
2994         (discard_infcall_suspend_state): Use delete.
2995
2996 2018-09-16  Tom Tromey  <tom@tromey.com>
2997
2998         * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
2999         Remove.
3000         * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
3001         rvalue reference.  Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
3002         (py_varobj_iter_new): Likewise.
3003         (py_varobj_get_iterator): Use gdbpy_ref.
3004
3005 2018-09-16  Tom Tromey  <tom@tromey.com>
3006
3007         * python/py-threadevent.c (py_get_event_thread): Simplify.
3008         * python/py-inferior.c (infpy_thread_from_thread_handle):
3009         Return immediately after calling thread_to_thread_object.  Use
3010         Py_RETURN_NONE.
3011         (thread_to_thread_object): Set the exception on a NULL return.
3012
3013 2018-09-16  Simon Marchi  <simon.marchi@polymtl.ca>
3014
3015         * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
3016
3017 2018-09-16  Tom Tromey  <tom@tromey.com>
3018
3019         * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
3020         Remove.
3021
3022 2018-09-16  Tom Tromey  <tom@tromey.com>
3023
3024         * python/python-internal.h (thread_to_thread_object): Change
3025         return type.
3026         * python/py-inferior.c (thread_to_thread_object): Return a new
3027         reference.
3028         (infpy_thread_from_thread_handle): Update.
3029         * python/py-infthread.c (gdbpy_selected_thread): Update.
3030         * python/py-stopevent.c (create_stop_event_object): Update.
3031         * python/py-threadevent.c (py_get_event_thread): Return a new
3032         reference.
3033         (py_get_event_thread): Update.
3034         * python/py-event.h (py_get_event_thread): Change return type.
3035         * python/py-continueevent.c (create_continue_event_object):
3036         Update.
3037
3038 2018-09-16  Tom Tromey  <tom@tromey.com>
3039
3040         * python/py-progspace.c (pspy_get_objfiles): Update.
3041         * python/python-internal.h (objfile_to_objfile_object): Change
3042         return type.
3043         * python/py-newobjfileevent.c (create_new_objfile_event_object):
3044         Update.
3045         * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
3046         Update.
3047         * python/python.c (gdbpy_get_current_objfile): Update.
3048         (gdbpy_objfiles): Update.
3049         * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
3050         Update.
3051         (objfile_to_objfile_object): Return a new reference.
3052         * python/py-symtab.c (stpy_get_objfile): Update.
3053         * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
3054         Update.
3055
3056 2018-09-16  Tom Tromey  <tom@tromey.com>
3057
3058         * python/py-inferior.c (infpy_get_progspace): Update.
3059         * python/python-internal.h (pspace_to_pspace_object): Change
3060         return type.
3061         * python/py-newobjfileevent.c
3062         (create_clear_objfiles_event_object): Update.
3063         * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
3064         Update.
3065         * python/python.c (gdbpy_get_current_progspace): Update.
3066         (gdbpy_progspaces): Update.
3067         * python/py-progspace.c (pspace_to_pspace_object): Return a new
3068         reference.
3069         * python/py-objfile.c (objfpy_get_progspace): Update.
3070         * python/py-prettyprint.c (find_pretty_printer_from_progspace):
3071         Update.
3072
3073 2018-09-16  Tom Tromey  <tom@tromey.com>
3074
3075         * python/lib/gdb/__init__.py (current_progspace, objfiles)
3076         (solib_name, block_for_pc, find_pc_line): New functions.
3077         (execute_unwinders): Update.
3078         * python/py-block.c (gdbpy_block_for_pc): Remove.
3079         * python/py-inferior.c (infpy_get_progspace): New function.
3080         (inferior_object_getset) <progspace>: Add.
3081         * python/py-progspace.c (pspy_objfiles): Rewrite.
3082         (pspy_solib_name, pspy_block_for_pc)
3083         (pspy_find_pc_line, pspy_is_valid): New functions.
3084         (progspace_object_methods): Add entries for solib_name,
3085         block_for_pc, find_pc_line, is_valid.
3086         * python/python-internal.h (gdbpy_block_for_pc)
3087         (build_objfiles_list): Don't declare.
3088         * python/python.c: Don't include solib.h.
3089         (gdbpy_solib_name, gdbpy_find_pc_line)
3090         (gdbpy_get_current_progspace, build_objfiles_list)
3091         (gdbpy_objfiles): Remove.
3092         (GdbMethods) <current_progspace, objfiles, block_for_pc,
3093         solib_name, find_pc_line>: Remove entries.
3094
3095 2018-09-16  Tom Tromey  <tom@tromey.com>
3096
3097         * top.c (new_ui_command): Use GNU style for metasyntactic
3098         variables.
3099         * breakpoint.c (stopat_command): Use GNU style for metasyntactic
3100         variables.
3101         * maint.c (maintenance_translate_address): Remove "<>" around
3102         text.
3103         * interps.c (interpreter_exec_cmd): Use GNU style for
3104         metasyntactic variables.
3105         * nto-procfs.c (nto_procfs_target_info): Use GNU style for
3106         metasyntactic variables.
3107         * tracepoint.c (tfind_range_command): Use GNU style for
3108         metasyntactic variables.
3109         (tfind_outside_command): Likewise.
3110         (_initialize_tracepoint): Likewise.
3111         * remote.c (extended_remote_target::create_inferior): Use GNU
3112         style for metasyntactic variables.
3113         * sparc64-tdep.c (adi_examine_command): Use GNU style for
3114         metasyntactic variables.
3115         (adi_assign_command): Likewise.
3116
3117 2018-09-16  Tom Tromey  <tom@tromey.com>
3118
3119         * disasm.c (show_disassembler_options_sfunc): Use GNU style for
3120         metasyntactic variables.  Print message if no disassembler options
3121         are available.
3122
3123 2018-09-15  Tom Tromey  <tom@tromey.com>
3124
3125         * infcmd.c (get_inferior_args): Return const char *.
3126         * inferior.h (get_inferior_args): Return type now const.
3127         * linux-tdep.c (linux_fill_prpsinfo): Update.
3128         * procfs.c (procfs_target::make_corefile_notes): Update.
3129
3130 2018-09-07  Tom Tromey  <tom@tromey.com>
3131
3132         * python/python.c (execute_gdb_command): Call bpstat_do_actions
3133         inside the TRY.
3134
3135 2018-09-14  Sandra Loosemore  <sandra@codesourcery.com>
3136
3137         * nios2-tdep.c (nios2_type_align): New.
3138         (nios2_gdb_arch_init): Install type_align hook.
3139
3140 2018-09-10  Andrew Burgess  <andrew.burgess@embecosm.com>
3141
3142         * eval.c (fake_method::fake_method): Call xzalloc directly for a
3143         type that is neither object file owned, nor gdbarch owned.
3144         * gdbtypes.c (get_type_gdbarch): Add an assert that returned
3145         gdbarch is non-NULL.
3146         (alloc_type_instance): Allocate non-objfile owned types on the
3147         gdbarch obstack.
3148         (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
3149         using TYPE_ALLOC to ensure memory is allocated on the correct
3150         obstack.
3151         * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
3152         obstack, or the gdbarch obstack.
3153         (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
3154
3155 2018-09-14  Tom Tromey  <tom@tromey.com>
3156
3157         * infcall.c (call_function_by_hand_dummy): Remove unnecessary
3158         block.
3159
3160 2018-09-14  Tom Tromey  <tom@tromey.com>
3161
3162         * nat/fork-inferior.c (get_startup_shell): Remove "static".
3163
3164 2018-09-13  Tom Tromey  <tom@tromey.com>
3165
3166         * python/py-inferior.c (infpy_thread_from_thread_handle): Now
3167         static.
3168
3169 2018-09-13  Tom Tromey  <tom@tromey.com>
3170
3171         * exec.c (try_open_exec_file): Use std::string.
3172
3173 2018-09-13  Tom Tromey  <tom@tromey.com>
3174
3175         * utils.h (gdb_bfd_errmsg): Return std::string.
3176         * exec.c (exec_file_attach): Update.
3177         * compile/compile-object-load.c (compile_object_load): Update.
3178         * utils.c (gdb_bfd_errmsg): Return std::string.
3179
3180 2018-09-13  Tom Tromey  <tom@tromey.com>
3181
3182         * procfs.c (struct procinfo_deleter): New.
3183         (procinfo_up): New typedef.
3184         (do_destroy_procinfo_cleanup): Remove.
3185         (procfs_target::info_proc): Use procinfo_up.  Remove cleanups.
3186
3187 2018-09-13  Tom Tromey  <tom@tromey.com>
3188
3189         * source.c (add_path): Use gdb::unique_xmalloc_ptr.
3190
3191 2018-09-13  Simon Marchi  <simon.marchi@ericsson.com>
3192 2018-09-13  Tom Tromey  <tom@tromey.com>
3193
3194         * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
3195         (pspy_get_objfiles): New function.
3196         (progspace_object_methods): New.
3197         (pspace_object_type): Add tp_methods callback.
3198         * python/python-internal.h (build_objfiles_list): New
3199         declaration.
3200         * python/python.c (build_objfiles_list): New function.
3201         (gdbpy_objfiles): Implement using build_objfiles_list.
3202         * NEWS: Mention the Progspace.objfiles method.
3203
3204 2018-09-13  Simon Marchi  <simon.marchi@ericsson.com>
3205
3206         * python/py-inferior.c (infpy_get_progspace): New function.
3207         (inferior_object_getset): Add progspace property.
3208         * NEWS: Mention the new property.
3209
3210 2018-09-13  Tom Tromey  <tom@tromey.com>
3211
3212         PR rust/23650:
3213         * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
3214
3215 2018-09-13  Tom Tromey  <tom@tromey.com>
3216
3217         PR rust/23626:
3218         * rust-lang.c (rust_enum_variant): Now static.
3219         (rust_empty_enum_p): New function.
3220         (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
3221         Handle empty enum.
3222
3223 2018-09-13  Simon Marchi  <simon.marchi@ericsson.com>
3224
3225         * python/py-inferior.c (infpy_repr): New.
3226         (inferior_object_type): Register infpy_repr.
3227         * python/py-objfile.c (objfpy_repr): New.
3228         (objfile_object_type): Register objfpy_repr.
3229
3230 2018-09-12  John Baldwin  <jhb@FreeBSD.org>
3231
3232         * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
3233
3234 2018-09-12  John Baldwin  <jhb@FreeBSD.org>
3235
3236         * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
3237         typo.
3238
3239 2018-09-12  Sergio Durigan Junior  <sergiodj@redhat.com>
3240
3241         * common/common-utils.c: Don't include '<sys/stat.h>'.
3242         (is_regular_file): Move to...
3243         * common/filestuff.c (is_regular_file): ... here.
3244         * common/common-utils.h (is_regular_file): Move to...
3245         * common/filestuff.h (is_regular_file): ... here.
3246
3247 2018-09-12  Simon Marchi  <simon.marchi@ericsson.com>
3248
3249         * skip.c (debug_skip): New variable.
3250         (skiplist_entry::do_skip_file_p): Add debug output.
3251         (skiplist_entry::do_skip_gfile_p): Likewise.
3252         (skiplist_entry::skip_function_p): Likewise.
3253         (_initialize_step_skip): Create debug command.
3254         * NEWS: Mention set/show debug skip.
3255
3256 2018-09-11  Xavier Roirand  <roirand@adacore.com>
3257
3258         * darwin-nat.c (should_disable_startup_with_shell):
3259         New function.
3260         (darwin_nat_target::create_inferior): Add call.
3261
3262 2018-09-11  Xavier Roirand  <roirand@adacore.com>
3263
3264         * darwin-nat.h (struct darwin_thread_info) <gdb_port,
3265         inf_port, msg_state>: Initialize.
3266         (struct darwin_thread_info) <signaled, single_step>: Change
3267         type and initialize.
3268         (struct darwin_thread_info) <event>: Initialize.
3269
3270 2018-09-10  Sergio Durigan Junior  <sergiodj@redhat.com>
3271
3272         PR gdb/23555
3273         PR gdb/23558
3274         * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
3275         guesses.
3276
3277 2018-09-10  Sergio Durigan Junior  <sergiodj@redhat.com>
3278
3279         Revert:
3280         2018-08-29  Sergio Durigan Junior  <sergiodj@redhat.com>
3281
3282         PR gdb/23555
3283         PR gdb/23558
3284         * gnulib/aclocal.m4: Regenerate.
3285         * gnulib/config.in: Regenerate.
3286         * gnulib/configure: Regenerate.
3287         * gnulib/import/Makefile.am: Update.
3288         * gnulib/import/Makefile.in: Update.
3289         * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
3290         * gnulib/import/_Noreturn.h: ... this.
3291         * gnulib/import/alloca.in.h: Update.
3292         * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
3293         * gnulib/import/arg-nonnull.h: ... this.
3294         * gnulib/import/assure.h: Update.
3295         * gnulib/import/at-func.c: Update.
3296         * gnulib/import/basename-lgpl.c: Update.
3297         * gnulib/import/extra/snippet/c++defs.h: Rename to...
3298         * gnulib/import/c++defs.h: ... this.
3299         * gnulib/import/canonicalize-lgpl.c: Update.
3300         * gnulib/import/cdefs.h: Update.
3301         * gnulib/import/chdir-long.c: Update.
3302         * gnulib/import/chdir-long.h: Update.
3303         * gnulib/import/cloexec.c: Update.
3304         * gnulib/import/cloexec.h: Update.
3305         * gnulib/import/close.c: Update.
3306         * gnulib/import/closedir.c: Update.
3307         * gnulib/import/config.charset: Update.
3308         * gnulib/import/dirent-private.h: Update.
3309         * gnulib/import/dirent.in.h: Update.
3310         * gnulib/import/dirfd.c: Update.
3311         * gnulib/import/dirname-lgpl.c: Update.
3312         * gnulib/import/dirname.h: Update.
3313         * gnulib/import/dosname.h: Update.
3314         * gnulib/import/dup-safer-flag.c: Update.
3315         * gnulib/import/dup-safer.c: Update.
3316         * gnulib/import/dup.c: Update.
3317         * gnulib/import/dup2.c: Update.
3318         * gnulib/import/errno.in.h: Update.
3319         * gnulib/import/error.c: Update.
3320         * gnulib/import/error.h: Update.
3321         * gnulib/import/exitfail.c: Update.
3322         * gnulib/import/exitfail.h: Update.
3323         * gnulib/import/extra/update-copyright: Update.
3324         * gnulib/import/fchdir.c: Update.
3325         * gnulib/import/fcntl.c: Update.
3326         * gnulib/import/fcntl.in.h: Update.
3327         * gnulib/import/fd-hook.c: Update.
3328         * gnulib/import/fd-hook.h: Update.
3329         * gnulib/import/fd-safer-flag.c: Update.
3330         * gnulib/import/fd-safer.c: Update.
3331         * gnulib/import/fdopendir.c: Update.
3332         * gnulib/import/filename.h: Update.
3333         * gnulib/import/filenamecat-lgpl.c: Update.
3334         * gnulib/import/filenamecat.h: Update.
3335         * gnulib/import/flexmember.h: Update.
3336         * gnulib/import/float+.h: Update.
3337         * gnulib/import/float.c: Update.
3338         * gnulib/import/float.in.h: Update.
3339         * gnulib/import/fnmatch.c: Update.
3340         * gnulib/import/fnmatch.in.h: Update.
3341         * gnulib/import/fnmatch_loop.c: Update.
3342         * gnulib/import/fpucw.h: Update.
3343         * gnulib/import/frexp.c: Update.
3344         * gnulib/import/frexpl.c: Update.
3345         * gnulib/import/fstat.c: Update.
3346         * gnulib/import/fstatat.c: Update.
3347         * gnulib/import/getcwd-lgpl.c: Update.
3348         * gnulib/import/getcwd.c: Update.
3349         * gnulib/import/getdtablesize.c: Update.
3350         * gnulib/import/getlogin_r.c: Update.
3351         * gnulib/import/getprogname.c: Update.
3352         * gnulib/import/getprogname.h: Update.
3353         * gnulib/import/gettext.h: Update.
3354         * gnulib/import/gettimeofday.c: Update.
3355         * gnulib/import/glob-libc.h: Update.
3356         * gnulib/import/glob.c: Update.
3357         * gnulib/import/glob.in.h: Update.
3358         * gnulib/import/glob_internal.h: Update.
3359         * gnulib/import/glob_pattern_p.c: Update.
3360         * gnulib/import/globfree.c: Update.
3361         * gnulib/import/hard-locale.c: Update.
3362         * gnulib/import/hard-locale.h: Update.
3363         * gnulib/import/intprops.h: Update.
3364         * gnulib/import/inttypes.in.h: Update.
3365         * gnulib/import/isnan.c: Update.
3366         * gnulib/import/isnand-nolibm.h: Update.
3367         * gnulib/import/isnand.c: Update.
3368         * gnulib/import/isnanl-nolibm.h: Update.
3369         * gnulib/import/isnanl.c: Update.
3370         * gnulib/import/itold.c: Update.
3371         * gnulib/import/libc-config.h: Update.
3372         * gnulib/import/limits.in.h: Update.
3373         * gnulib/import/localcharset.c: Update.
3374         * gnulib/import/localcharset.h: Update.
3375         * gnulib/import/localtime-buffer.c: Update.
3376         * gnulib/import/localtime-buffer.h: Update.
3377         * gnulib/import/lstat.c: Update.
3378         * gnulib/import/m4/00gnulib.m4: Update.
3379         * gnulib/import/m4/__inline.m4: Update.
3380         * gnulib/import/m4/absolute-header.m4: Update.
3381         * gnulib/import/m4/alloca.m4: Update.
3382         * gnulib/import/m4/builtin-expect.m4: Update.
3383         * gnulib/import/m4/canonicalize.m4: Update.
3384         * gnulib/import/m4/chdir-long.m4: Update.
3385         * gnulib/import/m4/close.m4: Update.
3386         * gnulib/import/m4/closedir.m4: Update.
3387         * gnulib/import/m4/configmake.m4: Update.
3388         * gnulib/import/m4/d-ino.m4: Update.
3389         * gnulib/import/m4/d-type.m4: Update.
3390         * gnulib/import/m4/dirent_h.m4: Update.
3391         * gnulib/import/m4/dirfd.m4: Update.
3392         * gnulib/import/m4/dirname.m4: Update.
3393         * gnulib/import/m4/double-slash-root.m4: Update.
3394         * gnulib/import/m4/dup.m4: Update.
3395         * gnulib/import/m4/dup2.m4: Update.
3396         * gnulib/import/m4/eealloc.m4: Update.
3397         * gnulib/import/m4/environ.m4: Update.
3398         * gnulib/import/m4/errno_h.m4: Update.
3399         * gnulib/import/m4/error.m4: Update.
3400         * gnulib/import/m4/exponentd.m4: Update.
3401         * gnulib/import/m4/exponentl.m4: Update.
3402         * gnulib/import/m4/extensions.m4: Update.
3403         * gnulib/import/m4/extern-inline.m4: Update.
3404         * gnulib/import/m4/fchdir.m4: Update.
3405         * gnulib/import/m4/fcntl-o.m4: Update.
3406         * gnulib/import/m4/fcntl.m4: Update.
3407         * gnulib/import/m4/fcntl_h.m4: Update.
3408         * gnulib/import/m4/fdopendir.m4: Update.
3409         * gnulib/import/m4/filenamecat.m4: Update.
3410         * gnulib/import/m4/flexmember.m4: Update.
3411         * gnulib/import/m4/float_h.m4: Update.
3412         * gnulib/import/m4/fnmatch.m4: Update.
3413         * gnulib/import/m4/fnmatch_h.m4: Update.
3414         * gnulib/import/m4/fpieee.m4: Update.
3415         * gnulib/import/m4/frexp.m4: Update.
3416         * gnulib/import/m4/frexpl.m4: Update.
3417         * gnulib/import/m4/fstat.m4: Update.
3418         * gnulib/import/m4/fstatat.m4: Update.
3419         * gnulib/import/m4/getcwd-abort-bug.m4: Update.
3420         * gnulib/import/m4/getcwd-path-max.m4: Update.
3421         * gnulib/import/m4/getcwd.m4: Update.
3422         * gnulib/import/m4/getdtablesize.m4: Update.
3423         * gnulib/import/m4/getlogin.m4: Update.
3424         * gnulib/import/m4/getlogin_r.m4: Update.
3425         * gnulib/import/m4/getpagesize.m4: Update.
3426         * gnulib/import/m4/getprogname.m4: Update.
3427         * gnulib/import/m4/gettimeofday.m4: Update.
3428         * gnulib/import/m4/glibc21.m4: Update.
3429         * gnulib/import/m4/glob.m4: Update.
3430         * gnulib/import/m4/glob_h.m4: Update.
3431         * gnulib/import/m4/gnulib-cache.m4: Update.
3432         * gnulib/import/m4/gnulib-common.m4: Update.
3433         * gnulib/import/m4/gnulib-comp.m4: Update.
3434         * gnulib/import/m4/gnulib-tool.m4: Update.
3435         * gnulib/import/m4/hard-locale.m4: Update.
3436         * gnulib/import/m4/include_next.m4: Update.
3437         * gnulib/import/m4/inttypes-pri.m4: Update.
3438         * gnulib/import/m4/inttypes.m4: Update.
3439         * gnulib/import/m4/isnand.m4: Update.
3440         * gnulib/import/m4/isnanl.m4: Update.
3441         * gnulib/import/m4/largefile.m4: Update.
3442         * gnulib/import/m4/limits-h.m4: Update.
3443         * gnulib/import/m4/localcharset.m4: Update.
3444         * gnulib/import/m4/locale-fr.m4: Update.
3445         * gnulib/import/m4/locale-ja.m4: Update.
3446         * gnulib/import/m4/locale-zh.m4: Update.
3447         * gnulib/import/m4/localtime-buffer.m4: Update.
3448         * gnulib/import/m4/longlong.m4: Update.
3449         * gnulib/import/m4/lstat.m4: Update.
3450         * gnulib/import/m4/malloc.m4: Update.
3451         * gnulib/import/m4/malloca.m4: Update.
3452         * gnulib/import/m4/math_h.m4: Update.
3453         * gnulib/import/m4/mbrtowc.m4: Update.
3454         * gnulib/import/m4/mbsinit.m4: Update.
3455         * gnulib/import/m4/mbsrtowcs.m4: Update.
3456         * gnulib/import/m4/mbstate_t.m4: Update.
3457         * gnulib/import/m4/memchr.m4: Update.
3458         * gnulib/import/m4/memmem.m4: Update.
3459         * gnulib/import/m4/mempcpy.m4: Update.
3460         * gnulib/import/m4/memrchr.m4: Update.
3461         * gnulib/import/m4/mkdir.m4: Update.
3462         * gnulib/import/m4/mkstemp.m4: Update.
3463         * gnulib/import/m4/mmap-anon.m4: Update.
3464         * gnulib/import/m4/mode_t.m4: Update.
3465         * gnulib/import/m4/msvc-inval.m4: Update.
3466         * gnulib/import/m4/msvc-nothrow.m4: Update.
3467         * gnulib/import/m4/multiarch.m4: Update.
3468         * gnulib/import/m4/nocrash.m4: Update.
3469         * gnulib/import/m4/off_t.m4: Update.
3470         * gnulib/import/m4/onceonly.m4: Update.
3471         * gnulib/import/m4/open-cloexec.m4: Update.
3472         * gnulib/import/m4/open.m4: Update.
3473         * gnulib/import/m4/openat.m4: Update.
3474         * gnulib/import/m4/opendir.m4: Update.
3475         * gnulib/import/m4/pathmax.m4: Update.
3476         * gnulib/import/m4/rawmemchr.m4: Update.
3477         * gnulib/import/m4/readdir.m4: Update.
3478         * gnulib/import/m4/readlink.m4: Update.
3479         * gnulib/import/m4/realloc.m4: Update.
3480         * gnulib/import/m4/rename.m4: Update.
3481         * gnulib/import/m4/rewinddir.m4: Update.
3482         * gnulib/import/m4/rmdir.m4: Update.
3483         * gnulib/import/m4/save-cwd.m4: Update.
3484         * gnulib/import/m4/secure_getenv.m4: Update.
3485         * gnulib/import/m4/setenv.m4: Update.
3486         * gnulib/import/m4/signal_h.m4: Update.
3487         * gnulib/import/m4/ssize_t.m4: Update.
3488         * gnulib/import/m4/stat-time.m4: Update.
3489         * gnulib/import/m4/stat.m4: Update.
3490         * gnulib/import/m4/std-gnu11.m4: Update.
3491         * gnulib/import/m4/stdbool.m4: Update.
3492         * gnulib/import/m4/stddef_h.m4: Update.
3493         * gnulib/import/m4/stdint.m4: Update.
3494         * gnulib/import/m4/stdio_h.m4: Update.
3495         * gnulib/import/m4/stdlib_h.m4: Update.
3496         * gnulib/import/m4/strchrnul.m4: Update.
3497         * gnulib/import/m4/strdup.m4: Update.
3498         * gnulib/import/m4/strerror.m4: Update.
3499         * gnulib/import/m4/string_h.m4: Update.
3500         * gnulib/import/m4/strstr.m4: Update.
3501         * gnulib/import/m4/strtok_r.m4: Update.
3502         * gnulib/import/m4/sys_socket_h.m4: Update.
3503         * gnulib/import/m4/sys_stat_h.m4: Update.
3504         * gnulib/import/m4/sys_time_h.m4: Update.
3505         * gnulib/import/m4/sys_types_h.m4: Update.
3506         * gnulib/import/m4/tempname.m4: Update.
3507         * gnulib/import/m4/time_h.m4: Update.
3508         * gnulib/import/m4/unistd-safer.m4: Update.
3509         * gnulib/import/m4/unistd_h.m4: Update.
3510         * gnulib/import/m4/warn-on-use.m4: Update.
3511         * gnulib/import/m4/wchar_h.m4: Update.
3512         * gnulib/import/m4/wchar_t.m4: Update.
3513         * gnulib/import/m4/wctype_h.m4: Update.
3514         * gnulib/import/m4/wint_t.m4: Update.
3515         * gnulib/import/malloc.c: Update.
3516         * gnulib/import/malloc/scratch_buffer.h: Update.
3517         * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3518         * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3519         * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3520         * gnulib/import/malloca.c: Update.
3521         * gnulib/import/malloca.h: Update.
3522         * gnulib/import/malloca.valgrind: Update.
3523         * gnulib/import/math.in.h: Update.
3524         * gnulib/import/mbrtowc.c: Update.
3525         * gnulib/import/mbsinit.c: Update.
3526         * gnulib/import/mbsrtowcs-impl.h: Update.
3527         * gnulib/import/mbsrtowcs-state.c: Update.
3528         * gnulib/import/mbsrtowcs.c: Update.
3529         * gnulib/import/memchr.c: Update.
3530         * gnulib/import/memmem.c: Update.
3531         * gnulib/import/mempcpy.c: Update.
3532         * gnulib/import/memrchr.c: Update.
3533         * gnulib/import/mkdir.c: Update.
3534         * gnulib/import/mkstemp.c: Update.
3535         * gnulib/import/msvc-inval.c: Update.
3536         * gnulib/import/msvc-inval.h: Update.
3537         * gnulib/import/msvc-nothrow.c: Update.
3538         * gnulib/import/msvc-nothrow.h: Update.
3539         * gnulib/import/open.c: Update.
3540         * gnulib/import/openat-die.c: Update.
3541         * gnulib/import/openat-priv.h: Update.
3542         * gnulib/import/openat-proc.c: Update.
3543         * gnulib/import/openat.c: Update.
3544         * gnulib/import/openat.h: Update.
3545         * gnulib/import/opendir.c: Update.
3546         * gnulib/import/pathmax.h: Update.
3547         * gnulib/import/pipe-safer.c: Update.
3548         * gnulib/import/rawmemchr.c: Update.
3549         * gnulib/import/readdir.c: Update.
3550         * gnulib/import/readlink.c: Update.
3551         * gnulib/import/realloc.c: Update.
3552         * gnulib/import/ref-add.sin: Update.
3553         * gnulib/import/ref-del.sin: Update.
3554         * gnulib/import/rename.c: Update.
3555         * gnulib/import/rewinddir.c: Update.
3556         * gnulib/import/rmdir.c: Update.
3557         * gnulib/import/same-inode.h: Update.
3558         * gnulib/import/save-cwd.c: Update.
3559         * gnulib/import/save-cwd.h: Update.
3560         * gnulib/import/scratch_buffer.h: Update.
3561         * gnulib/import/secure_getenv.c: Update.
3562         * gnulib/import/setenv.c: Update.
3563         * gnulib/import/signal.in.h: Update.
3564         * gnulib/import/stat-time.c: Update.
3565         * gnulib/import/stat-time.h: Update.
3566         * gnulib/import/stat-w32.c: Update.
3567         * gnulib/import/stat-w32.h: Update.
3568         * gnulib/import/stat.c: Update.
3569         * gnulib/import/stdbool.in.h: Update.
3570         * gnulib/import/stddef.in.h: Update.
3571         * gnulib/import/stdint.in.h: Update.
3572         * gnulib/import/stdio.in.h: Update.
3573         * gnulib/import/stdlib.in.h: Update.
3574         * gnulib/import/str-two-way.h: Update.
3575         * gnulib/import/strchrnul.c: Update.
3576         * gnulib/import/strdup.c: Update.
3577         * gnulib/import/streq.h: Update.
3578         * gnulib/import/strerror-override.c: Update.
3579         * gnulib/import/strerror-override.h: Update.
3580         * gnulib/import/strerror.c: Update.
3581         * gnulib/import/string.in.h: Update.
3582         * gnulib/import/stripslash.c: Update.
3583         * gnulib/import/strnlen1.c: Update.
3584         * gnulib/import/strnlen1.h: Update.
3585         * gnulib/import/strstr.c: Update.
3586         * gnulib/import/strtok_r.c: Update.
3587         * gnulib/import/sys_stat.in.h: Update.
3588         * gnulib/import/sys_time.in.h: Update.
3589         * gnulib/import/sys_types.in.h: Update.
3590         * gnulib/import/tempname.c: Update.
3591         * gnulib/import/tempname.h: Update.
3592         * gnulib/import/time.in.h: Update.
3593         * gnulib/import/unistd--.h: Update.
3594         * gnulib/import/unistd-safer.h: Update.
3595         * gnulib/import/unistd.in.h: Update.
3596         * gnulib/import/unsetenv.c: Update.
3597         * gnulib/import/verify.h: Update.
3598         * gnulib/import/extra/snippet/warn-on-use.h: Update.
3599         * gnulib/import/wchar.in.h: Update.
3600         * gnulib/import/wctype.in.h: Update.
3601         * gnulib/import/xalloc-oversized.h: Update.
3602         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3603         "53e2c179f26a890fa6685af4b6c1397ee370433b".
3604
3605 2018-09-10  Simon Marchi  <simon.marchi@ericsson.com>
3606
3607         * record-btrace.c (get_thread_current_frame): Remove
3608         old_inferior_ptid.
3609
3610 2018-09-10  Jerome Guitton  <guitton@adacore.com>
3611
3612         * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
3613         with check_tag to 1 if and only if the type is tagged and the
3614         component being searched cannot been found in the current
3615         view. Otherwise, always call ada_to_fixed_type with
3616         check_tag to 0.
3617
3618 2018-09-10  Xavier Roirand  <roirand@adacore.com>
3619
3620         * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
3621         declaration.
3622         * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
3623         * ada-varobj.c (ada_varobj_get_number_of_children,
3624         ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
3625
3626 2018-09-10  Xavier Roirand  <roirand@adacore.com>
3627
3628         * ada-valprint.c (ada_value_print): Use type instead of
3629         enclosing type.
3630
3631 2018-09-10  Xavier Roirand  <roirand@adacore.com>
3632
3633         * ada-lang.c (ada_value_subscript): Handle case when parameter is
3634         an array of access to unconstrained array.
3635
3636 2018-09-10  Xavier Roirand  <roirand@adacore.com>
3637
3638         * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
3639         (ada_check_typedef): Use it.
3640
3641 2018-09-10  Xavier Roirand  <roirand@adacore.com>
3642
3643         * ada-varobj.c (ada_varobj_describe_struct_child)
3644         (ada_varobj_describe_child): Handle union case like struct one.
3645
3646 2018-09-10  Tom Tromey  <tom@tromey.com>
3647
3648         PR python/18380:
3649         * python/python.c (_initialize_python): Make example in "python"
3650         help work in Python 3.
3651
3652 2018-09-10  Eli Zaretskii  <eliz@gnu.org>
3653
3654         * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
3655         INSTALL_PROGRAM to install gdb-add-index.sh.  Don't append
3656         $(EXEEXT) to the script, as it is not a program.
3657
3658 2018-09-09  Simon Marchi  <simon.marchi@ericsson.com>
3659
3660         * python/py-prettyprint.c (pretty_print_one_value): Return
3661         gdbpy_ref<>.
3662         (print_string_repr): Adjust.
3663         (apply_varobj_pretty_printer): Return gdbpy_ref<>.
3664         * python/python-internal.h (apply_varobj_pretty_printer): Return
3665         gdbpy_ref<>.
3666         * varobj.c (varobj_value_get_print_value): Adjust.
3667
3668 2018-09-08  Tom Tromey  <tom@tromey.com>
3669
3670         PR python/16047:
3671         * python/py-prettyprint.c (pretty_print_one_value): Check for
3672         to_string method.
3673
3674 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
3675
3676         * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
3677         replace_operator_with_call.
3678
3679 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
3680
3681         * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
3682
3683 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
3684
3685         * ada-typeprint.c (print_range): Print the bounds using TYPE
3686         rather than its TYPE_TARGET_TYPE.
3687
3688 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
3689
3690         * ada-lang.c (ada_to_fixed_value): Minor reformatting in
3691         call to ada_to_fixed_value_create.
3692
3693 2018-09-08  Jerome Guitton  <guitton@adacore.com>
3694
3695         * ada-lang.c (ada_decode): strip dot prefix in symbol name.
3696
3697 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
3698
3699         * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
3700         by calls to error.
3701
3702 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
3703
3704         * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
3705         Move update of loop variable "fi".
3706
3707 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
3708
3709         * ada-lang.c (value_assign_to_component): In the case of
3710         big-endian targets, extract the bits of the given VAL
3711         using an src_offset of zero if container is not a scalar.
3712
3713 2018-09-06  Simon Ser  <contact@emersion.fr>
3714
3715         PR gdb/23105
3716         * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
3717         TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
3718         * fbsd-tdep.c (fbsd_make_note_desc): New.
3719         (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
3720         NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
3721         * target.h (enum target_object) Add FreeBSD-specific
3722         TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
3723
3724 2018-09-06  Simon Marchi  <simon.marchi@ericsson.com>
3725
3726         * compile/compile-c.h (generate_c_for_variable_locations):
3727         Change reference to pointer.
3728         * compile/compile-c-support.c (compile_program) <compute>:
3729         Likewise.
3730         * compile/compile-c-symbols.c (generate_vla_size): Likewise.
3731         (generate_c_for_for_one_variable): Likewise
3732         (generate_c_for_variable_locations): Likewise
3733         * compile/compile-c-types.c (compile_c_instance::convert_type):
3734         Likewise
3735         * compile/compile-cplus-symbols.c (convert_one_symbol):
3736         std::move the scope passed to enter_scope.
3737         * compile/compile-cplus-types.c
3738         (compile_cplus_instance::enter_scope): Make parameter
3739         rvalue-reference.
3740         (compile_cplus_instance::new_scope): Change reference to
3741         pointer.
3742         (compile_cplus_instance::convert_type): Likewise
3743         (compile_cplus_convert_typedef): std::move the scope passed to
3744         enter_scope.
3745         (compile_cplus_convert_struct_or_union): Likewise.
3746         (compile_cplus_convert_enum): Likewise.
3747         (compile_cplus_convert_namespace): Likewise.
3748         * compile/compile-cplus.h (compile_cplus_instance)
3749         <enter_scope>: Make parameter rvalue-reference.
3750         * compile/compile-internal.h (compile_instance)
3751         <get_cached_type>: Likewise
3752         * compile/compile-loc2c.c (push): Likewise
3753         (pushf): Likewise
3754         (unary): Likewise
3755         (binary): Likewise
3756         (print_label): Likewise
3757         (pushf_register_address): Likewise
3758         (pushf_register): Likewise
3759         (do_compile_dwarf_expr_to_c): Likewise
3760         (compile_dwarf_expr_to_c): Likewise
3761         (compile_dwarf_bounds_to_c): Likewise
3762         * compile/compile.c (compile_instance::get_cached_type):
3763         Likewise
3764         * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
3765         (compile_dwarf_bounds_to_c): Likewise
3766         * dwarf2loc.c (locexpr_generate_c_location): Likewise.
3767         (dwarf2_compile_property_to_c): Likewise
3768         * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
3769         * symtab.h (struct symbol_computed_ops) <generate_c_location>:
3770         Likewise
3771
3772 2018-09-06  Simon Marchi  <simon.marchi@ericsson.com>
3773
3774         * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
3775         * tui/tui-data.c (init_content_element): Don't initialize it.
3776
3777 2018-09-06  Simon Marchi  <simon.marchi@ericsson.com>
3778
3779         * tui/tui-data.h (struct tui_win_info)
3780         <detail::opaque>: Remove.
3781         * tui/tui-data.c (init_win_info): Remove assignment.
3782
3783 2018-09-05  Tom Tromey  <tom@tromey.com>
3784
3785         * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
3786         -Wformat-nonliteral.
3787         * target-float.c (host_float_ops<T>::to_string)
3788         (host_float_ops<T>::from_string): Use
3789         DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
3790         * configure: Rebuild.
3791
3792 2018-09-05  Simon Marchi  <simon.marchi@ericsson.com>
3793
3794         * printcmd.c (printf_c_string): Use
3795         DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
3796         (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
3797
3798 2018-09-05  Tom Tromey  <tom@tromey.com>
3799
3800         * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
3801
3802 2018-09-05  Tom de Vries  <tdevries@suse.de>
3803
3804         * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
3805         with resolve_abstract_p == true.
3806         (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
3807         defaulting to false. Propagate resolve_abstract_p to
3808         dwarf2_fetch_die_loc_sect_off.
3809         * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
3810         parameter, defaulting to false.
3811         * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
3812         (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
3813         parameter.
3814         * dwarf2read.h (struct die_info): Forward-declare.
3815         (die_info_ptr): New typedef.
3816         (struct dwarf2_per_objfile): Add abstract_to_concrete field.
3817
3818 2018-09-05  Joel Brobecker  <brobecker@adacore.com>
3819
3820         GDB 8.2 released.
3821
3822 2018-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
3823             Pedro Alves  <palves@redhat.com>
3824
3825         * gnulib/Makefile.in (aclocal_m4_deps): Move to
3826         "aclocal-m4-deps.mk".  Include file here.
3827         $(srcdir)/aclocal.m4: Add "configure.ac".
3828         * gnulib/aclocal-m4-deps.mk: New file.
3829         * gnulib/update-gnulib.sh: Automatically update
3830         "aclocal-m4-deps.mk".
3831
3832 2018-09-04  Tom Tromey  <tom@tromey.com>
3833
3834         * configure: Rebuild.
3835         * configure.ac: Remove multi-ice code.
3836
3837 2018-09-04  Tom Tromey  <tom@tromey.com>
3838
3839         * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
3840         (ada-exp.o): Update.
3841
3842 2018-09-04  Tom Tromey  <tom@tromey.com>
3843
3844         * Makefile.in (printcmd.o, target-float.o): Remove.
3845         (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
3846
3847 2018-09-04  Tom Tromey  <tom@tromey.com>
3848
3849         * gnulib/Makefile.in: Remove obsolete comment.
3850         * Makefile.in: Remove obsolete comment.
3851
3852 2018-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3853
3854         * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
3855         line with '+'.
3856
3857 2018-09-03  Andrew Burgess  <andrew.burgess@embecosm.com>
3858
3859         * riscv-tdep.c: Add 'prologue-value.h' include.
3860         (struct riscv_unwind_cache): New struct.
3861         (riscv_debug_unwinder): New global.
3862         (riscv_scan_prologue): Update arguments, capture register details
3863         from prologue scan.
3864         (riscv_skip_prologue): Reformat arguments line, move end of
3865         prologue calculation into riscv_scan_prologue.
3866         (riscv_frame_cache): Update return type, create
3867         riscv_unwind_cache, scan the prologue, and fill in remaining cache
3868         details.
3869         (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
3870         (riscv_frame_prev_register): Use the trad_frame within the
3871         riscv_unwind_cache.
3872         (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
3873         flag.
3874
3875 2018-09-03  Andrew Burgess  <andrew.burgess@embecosm.com>
3876
3877         * trad-frame.h (trad_frame_set_realreg): Declare.
3878         (trad_frame_set_addr): Declare.
3879         * trad-frame.c (trad_frame_set_realreg): Define new function.
3880         (trad_frame_set_addr): Define new function.
3881         (trad_frame_set_reg_realreg): Use new function.
3882         (trad_frame_set_reg_addr): Use new function.
3883
3884 2018-09-01  Keith Seitz  <keiths@redhat.com>
3885
3886         * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
3887         pulongest instead of "%lld".
3888         * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
3889         ATTRIBUTE_UNUSED.
3890
3891 2018-08-31  Tom Tromey  <tom@tromey.com>
3892
3893         * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
3894         variant part type.
3895
3896 2018-08-31  Pedro Alves  <palves@redhat.com>
3897
3898         * gdbarch.h: Regenerate.
3899
3900 2018-08-31  Pedro Alves  <palves@redhat.com>
3901
3902         * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
3903         * target.h (Hardware watchpoint interfaces): Describe
3904         continuable/steppable/non-steppable watchpoints.
3905         * gdbarch.h, gdbarch.c: Regenerate.
3906
3907 2018-08-31  Pedro Alves  <palves@redhat.com>
3908
3909         * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
3910         Delete.
3911         * s390-linux-nat.c
3912         (s390_linux_nat_target::have_continuable_watchpoint): Delete.
3913         * target.h (target_ops::have_continuable_watchpoint): Delete.
3914         (target_have_continuable_watchpoint): Delete.
3915         * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
3916         * target-delegates.c: Regenerate.
3917
3918 2018-08-31  Sergio Durigan Junior  <sergiodj@redhat.com>
3919
3920         * gnulib/Makefile.in (aclocal_m4_deps): Update according to
3921         the files present in "gnulib/import/m4/".
3922
3923 2018-08-30  Andrew Burgess  <andrew.burgess@embecosm.com>
3924
3925         * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
3926         c.sw, c.swsp, and c.sdsp.
3927
3928 2018-08-30  Andrew Burgess  <andrew.burgess@embecosm.com>
3929
3930         * riscv-tdep.c (struct riscv_inferior_data): Delete.
3931         (riscv_read_misa_reg): Don't cache value read into inferior data.
3932         (riscv_new_inferior_data): Delete.
3933         (riscv_inferior_data_cleanup): Delete.
3934         (riscv_inferior_data): Delete.
3935         (riscv_invalidate_inferior_data): Delete.
3936         (_initialize_riscv_tdep): Remove initialisation of inferior data.
3937
3938 2018-08-30  Simon Marchi  <simon.marchi@ericsson.com>
3939
3940         * compile/compile-cplus-types.c
3941         (compile_cplus_instance::leave_scope): Take the address of scope
3942         object.
3943         (compile_cplus_instance::convert_qualified_base): Compare quals
3944         to 0.
3945
3946 2018-08-30  Keith Seitz  <keiths@redhat.com>
3947
3948         * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
3949         Use "%s" and host_address_to_string instead of "%p" in printf.
3950
3951 2018-08-29  Keith Seitz  <keiths@redhat.com>
3952
3953         * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
3954         and compile-cplus-types.c.
3955         (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
3956         * c-lang.c (cplus_language_defn): Set C++ compile functions.
3957         * c-lang.h (cplus_get_compile_context, cplus_compute_program):
3958         Declare.
3959         * compile/compile-c-support.c: Include compile-cplus.h.
3960         (load_libcompile): Templatize.
3961         (get_compile_context): "New" function.
3962         (c_get_compile_context): Use get_compile_context.
3963         (cplus_get_compile_context): New function.
3964         (cplus_push_user_expression, cplus_pop_user_expression)
3965         (cplus_add_code_header, cplus_add_input, cplus_compile_program)
3966         (cplus_compute_program): Define new structs/functions.
3967         * compile/compile-cplus-symmbols.c: New file.
3968         * compile/compile-cplus-types.c: New file.
3969         * compile/compile-cplus.h: New file.
3970         * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
3971         Declare.
3972         * compile/compile-object-load.c (get_out_value_type): Use
3973         strncmp_iw when comparing symbol names.
3974         (compile_object_load): Add mst_bss and mst_data.
3975         * compile/compile.c (_initialize_compile): Remove
3976         -Wno-implicit-function-declaration from `compile_args'.
3977         * compile/gcc-cp-plugin.h: New file.
3978         * NEWS: Mention C++ compile support and new debug options.
3979
3980 2018-08-29  Keith Seitz  <keiths@redhat.com>
3981
3982         * linespec.c (collect_info::add_symbol): Make virtual.
3983         (struct symbol_searcher_collect_info): New struct.
3984         (symbol_searcher::find_all_symbols): New method.
3985         * symtab.h (class symbol_searcher): New class.
3986
3987 2018-08-29  Keith Seitz  <keiths@redhat.com>
3988
3989         * linespec.c (struct linespec) <function_symbols, label_symbols>:
3990         Change to vector of block_symbol.  Update all users.
3991         (struct collect_info) <symbols>: Likewise.
3992         (collect_info::add_symbol): Take block_symbol as argument.
3993         Update all callers.
3994         (decode_compound_collector) <m_symbols>: Change type to vector
3995         of block_symbol.  Update all users.
3996         (decode_compound_collector::operator ()): Change parameter type
3997         to block_symbol.
3998         (find_method, find_function_symbols, find_linespec_symbols)
3999         (find_label_symbols_in_block, find_label_symbols): Change symbol
4000         vectors to block_symbol vectors.
4001         * symtab.h (symbol_found_callback_ftype): Change parameter type to
4002         block_symbol.
4003
4004 2018-08-29  Keith Seitz  <keiths@redhat.com>
4005
4006         * linespec.c (symbolp): Remove typedef and VEC definitions.
4007         (bound_minimal_symbol_d): Likewise.
4008
4009 2018-08-29  Keith Seitz  <keiths@redhat.com>
4010
4011         * linespec.c (decode_compound_collector::decode_compound_collector):
4012         Remove initialization for `m_symtabs'.
4013         (decode_compound_collector::release_symbols): Change return type
4014         to std::vector.  Update all callers.
4015         (class decode_compound_collector) <m_symbols>: Change type to
4016         std::vector.
4017         (lookup_prefix_sym): Change return type to std::vector.  Update all
4018         callers.
4019         (compare_symbols): Remove.
4020         (std_compare_symbols): Rename to `compare_symbols'.
4021         (find_method): Change `sym_classes' parameter to std::vector.
4022         Update all callers.  Use std::sort to sort sym_classes.
4023         (find_linespec_symbols): Remove cleanup.
4024
4025 2018-08-29  Keith Seitz  <keiths@redhat.com>
4026
4027         * linespec.c (struct linespec) <minimal_symbols>: Change type to
4028         std::vector.  Update all users.
4029         (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
4030         (struct collect_info) <minimal_symbols>: Likewise.
4031         (compare_msymbols): Return bool.  Change parameters to const
4032         bound_minimal_symbol references.
4033         (find_method, find_function_symbols, find_linespec_symbols): Change
4034         `minsyms' parameter to std::vector.  Update all callers.
4035
4036 2018-08-29  Keith Seitz  <keiths@redhat.com>
4037
4038         * linespec.c (struct linespec) <label_symbols>: Change type to
4039         std::vector.  Update all users.
4040         (find_label_symbols_in_block): Change `result' parameter to
4041         std::vector.  Update all callers.
4042         (find_label_symbols): Return std::vector.  Update all callers.
4043
4044 2018-08-29  Keith Seitz  <keiths@redhat.com>
4045
4046         * linespec.c (struct linespec) <function_symbols>: Change type to
4047         std::vector.  Update all users.
4048         (struct collect_info) <function_symbols>: Likewise.
4049         (convert_linespec_to_sals): Use std::sort to sort function_symbols.
4050         (std_compare_symbols): New function.
4051         (find_method, find_function_symbols, find_linespec_symbols)
4052         (find_label_symbols_in_block): Change `symbols' parameter to
4053         std::vector.  Update all callers.
4054         (find_label_symbols): Likewise for `function_symbols' and
4055         `label_funcs_ret'.
4056
4057 2018-08-29  Keith Seitz  <keiths@redhat.com>
4058
4059         * linespec.c (symtab_vector_up): Define.
4060         (struct linespec) <file_symtabs>: Change type to std::vector *.
4061         Update all uses.
4062         (struct collect_info) <file_symtabs>: Likewise.
4063         (collect_symtabs_from_filename): Return symtab_vector_up.
4064         Update all callers.
4065         (decode_objc): Remove cleanup.
4066         (symtab_collector::symtab_collector): Initialize `m_symtabs'.
4067         (symtab_collector::release_symtabs): Return symtab_vector_up.
4068         Update all callers.
4069         (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
4070         Update all users.
4071         (collect_symtabs_from_filename, symtabs_from_filename): Return
4072         symtab_vector_up.  Update all callers.
4073
4074 2018-08-29  Tom Tromey  <tom@tromey.com>
4075
4076         * csky-tdep.c (csky_analyze_prologue): Use
4077         core_addr_to_string_nz.
4078
4079 2018-08-29  Tom Tromey  <tom@tromey.com>
4080
4081         * windows-nat.c (struct xlate_exception) <them>: Change type to
4082         DWORD.
4083         (xlate): Fix formatting.  Remove last entry.
4084         (struct xlate_exception, xlate): Comment out.
4085         (windows_nat_target::resume): Use ranged for.
4086
4087 2018-08-29  Jim Wilson  <jimw@sifive.com>
4088
4089         * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
4090         (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
4091         of NT_PRFPREG.
4092         (riscv_linux_nat_target::store_registers): Likewise.
4093
4094 2018-08-29  Sergio Durigan Junior  <sergiodj@redhat.com>
4095
4096         PR gdb/23555
4097         PR gdb/23558
4098         * gnulib/aclocal.m4: Regenerate.
4099         * gnulib/config.in: Regenerate.
4100         * gnulib/configure: Regenerate.
4101         * gnulib/import/Makefile.am: Update.
4102         * gnulib/import/Makefile.in: Update.
4103         * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
4104         * gnulib/import/_Noreturn.h: ... this.
4105         * gnulib/import/alloca.in.h: Update.
4106         * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
4107         * gnulib/import/arg-nonnull.h: ... this.
4108         * gnulib/import/assure.h: Update.
4109         * gnulib/import/at-func.c: Update.
4110         * gnulib/import/basename-lgpl.c: Update.
4111         * gnulib/import/extra/snippet/c++defs.h: Rename to...
4112         * gnulib/import/c++defs.h: ... this.
4113         * gnulib/import/canonicalize-lgpl.c: Update.
4114         * gnulib/import/cdefs.h: Update.
4115         * gnulib/import/chdir-long.c: Update.
4116         * gnulib/import/chdir-long.h: Update.
4117         * gnulib/import/cloexec.c: Update.
4118         * gnulib/import/cloexec.h: Update.
4119         * gnulib/import/close.c: Update.
4120         * gnulib/import/closedir.c: Update.
4121         * gnulib/import/config.charset: Update.
4122         * gnulib/import/dirent-private.h: Update.
4123         * gnulib/import/dirent.in.h: Update.
4124         * gnulib/import/dirfd.c: Update.
4125         * gnulib/import/dirname-lgpl.c: Update.
4126         * gnulib/import/dirname.h: Update.
4127         * gnulib/import/dosname.h: Update.
4128         * gnulib/import/dup-safer-flag.c: Update.
4129         * gnulib/import/dup-safer.c: Update.
4130         * gnulib/import/dup.c: Update.
4131         * gnulib/import/dup2.c: Update.
4132         * gnulib/import/errno.in.h: Update.
4133         * gnulib/import/error.c: Update.
4134         * gnulib/import/error.h: Update.
4135         * gnulib/import/exitfail.c: Update.
4136         * gnulib/import/exitfail.h: Update.
4137         * gnulib/import/extra/update-copyright: Update.
4138         * gnulib/import/fchdir.c: Update.
4139         * gnulib/import/fcntl.c: Update.
4140         * gnulib/import/fcntl.in.h: Update.
4141         * gnulib/import/fd-hook.c: Update.
4142         * gnulib/import/fd-hook.h: Update.
4143         * gnulib/import/fd-safer-flag.c: Update.
4144         * gnulib/import/fd-safer.c: Update.
4145         * gnulib/import/fdopendir.c: Update.
4146         * gnulib/import/filename.h: Update.
4147         * gnulib/import/filenamecat-lgpl.c: Update.
4148         * gnulib/import/filenamecat.h: Update.
4149         * gnulib/import/flexmember.h: Update.
4150         * gnulib/import/float+.h: Update.
4151         * gnulib/import/float.c: Update.
4152         * gnulib/import/float.in.h: Update.
4153         * gnulib/import/fnmatch.c: Update.
4154         * gnulib/import/fnmatch.in.h: Update.
4155         * gnulib/import/fnmatch_loop.c: Update.
4156         * gnulib/import/fpucw.h: Update.
4157         * gnulib/import/frexp.c: Update.
4158         * gnulib/import/frexpl.c: Update.
4159         * gnulib/import/fstat.c: Update.
4160         * gnulib/import/fstatat.c: Update.
4161         * gnulib/import/getcwd-lgpl.c: Update.
4162         * gnulib/import/getcwd.c: Update.
4163         * gnulib/import/getdtablesize.c: Update.
4164         * gnulib/import/getlogin_r.c: Update.
4165         * gnulib/import/getprogname.c: Update.
4166         * gnulib/import/getprogname.h: Update.
4167         * gnulib/import/gettext.h: Update.
4168         * gnulib/import/gettimeofday.c: Update.
4169         * gnulib/import/glob-libc.h: Update.
4170         * gnulib/import/glob.c: Update.
4171         * gnulib/import/glob.in.h: Update.
4172         * gnulib/import/glob_internal.h: Update.
4173         * gnulib/import/glob_pattern_p.c: Update.
4174         * gnulib/import/globfree.c: Update.
4175         * gnulib/import/hard-locale.c: Update.
4176         * gnulib/import/hard-locale.h: Update.
4177         * gnulib/import/intprops.h: Update.
4178         * gnulib/import/inttypes.in.h: Update.
4179         * gnulib/import/isnan.c: Update.
4180         * gnulib/import/isnand-nolibm.h: Update.
4181         * gnulib/import/isnand.c: Update.
4182         * gnulib/import/isnanl-nolibm.h: Update.
4183         * gnulib/import/isnanl.c: Update.
4184         * gnulib/import/itold.c: Update.
4185         * gnulib/import/libc-config.h: Update.
4186         * gnulib/import/limits.in.h: Update.
4187         * gnulib/import/localcharset.c: Update.
4188         * gnulib/import/localcharset.h: Update.
4189         * gnulib/import/localtime-buffer.c: Update.
4190         * gnulib/import/localtime-buffer.h: Update.
4191         * gnulib/import/lstat.c: Update.
4192         * gnulib/import/m4/00gnulib.m4: Update.
4193         * gnulib/import/m4/__inline.m4: Update.
4194         * gnulib/import/m4/absolute-header.m4: Update.
4195         * gnulib/import/m4/alloca.m4: Update.
4196         * gnulib/import/m4/builtin-expect.m4: Update.
4197         * gnulib/import/m4/canonicalize.m4: Update.
4198         * gnulib/import/m4/chdir-long.m4: Update.
4199         * gnulib/import/m4/close.m4: Update.
4200         * gnulib/import/m4/closedir.m4: Update.
4201         * gnulib/import/m4/configmake.m4: Update.
4202         * gnulib/import/m4/d-ino.m4: Update.
4203         * gnulib/import/m4/d-type.m4: Update.
4204         * gnulib/import/m4/dirent_h.m4: Update.
4205         * gnulib/import/m4/dirfd.m4: Update.
4206         * gnulib/import/m4/dirname.m4: Update.
4207         * gnulib/import/m4/double-slash-root.m4: Update.
4208         * gnulib/import/m4/dup.m4: Update.
4209         * gnulib/import/m4/dup2.m4: Update.
4210         * gnulib/import/m4/eealloc.m4: Update.
4211         * gnulib/import/m4/environ.m4: Update.
4212         * gnulib/import/m4/errno_h.m4: Update.
4213         * gnulib/import/m4/error.m4: Update.
4214         * gnulib/import/m4/exponentd.m4: Update.
4215         * gnulib/import/m4/exponentl.m4: Update.
4216         * gnulib/import/m4/extensions.m4: Update.
4217         * gnulib/import/m4/extern-inline.m4: Update.
4218         * gnulib/import/m4/fchdir.m4: Update.
4219         * gnulib/import/m4/fcntl-o.m4: Update.
4220         * gnulib/import/m4/fcntl.m4: Update.
4221         * gnulib/import/m4/fcntl_h.m4: Update.
4222         * gnulib/import/m4/fdopendir.m4: Update.
4223         * gnulib/import/m4/filenamecat.m4: Update.
4224         * gnulib/import/m4/flexmember.m4: Update.
4225         * gnulib/import/m4/float_h.m4: Update.
4226         * gnulib/import/m4/fnmatch.m4: Update.
4227         * gnulib/import/m4/fnmatch_h.m4: Update.
4228         * gnulib/import/m4/fpieee.m4: Update.
4229         * gnulib/import/m4/frexp.m4: Update.
4230         * gnulib/import/m4/frexpl.m4: Update.
4231         * gnulib/import/m4/fstat.m4: Update.
4232         * gnulib/import/m4/fstatat.m4: Update.
4233         * gnulib/import/m4/getcwd-abort-bug.m4: Update.
4234         * gnulib/import/m4/getcwd-path-max.m4: Update.
4235         * gnulib/import/m4/getcwd.m4: Update.
4236         * gnulib/import/m4/getdtablesize.m4: Update.
4237         * gnulib/import/m4/getlogin.m4: Update.
4238         * gnulib/import/m4/getlogin_r.m4: Update.
4239         * gnulib/import/m4/getpagesize.m4: Update.
4240         * gnulib/import/m4/getprogname.m4: Update.
4241         * gnulib/import/m4/gettimeofday.m4: Update.
4242         * gnulib/import/m4/glibc21.m4: Update.
4243         * gnulib/import/m4/glob.m4: Update.
4244         * gnulib/import/m4/glob_h.m4: Update.
4245         * gnulib/import/m4/gnulib-cache.m4: Update.
4246         * gnulib/import/m4/gnulib-common.m4: Update.
4247         * gnulib/import/m4/gnulib-comp.m4: Update.
4248         * gnulib/import/m4/gnulib-tool.m4: Update.
4249         * gnulib/import/m4/hard-locale.m4: Update.
4250         * gnulib/import/m4/include_next.m4: Update.
4251         * gnulib/import/m4/inttypes-pri.m4: Update.
4252         * gnulib/import/m4/inttypes.m4: Update.
4253         * gnulib/import/m4/isnand.m4: Update.
4254         * gnulib/import/m4/isnanl.m4: Update.
4255         * gnulib/import/m4/largefile.m4: Update.
4256         * gnulib/import/m4/limits-h.m4: Update.
4257         * gnulib/import/m4/localcharset.m4: Update.
4258         * gnulib/import/m4/locale-fr.m4: Update.
4259         * gnulib/import/m4/locale-ja.m4: Update.
4260         * gnulib/import/m4/locale-zh.m4: Update.
4261         * gnulib/import/m4/localtime-buffer.m4: Update.
4262         * gnulib/import/m4/longlong.m4: Update.
4263         * gnulib/import/m4/lstat.m4: Update.
4264         * gnulib/import/m4/malloc.m4: Update.
4265         * gnulib/import/m4/malloca.m4: Update.
4266         * gnulib/import/m4/math_h.m4: Update.
4267         * gnulib/import/m4/mbrtowc.m4: Update.
4268         * gnulib/import/m4/mbsinit.m4: Update.
4269         * gnulib/import/m4/mbsrtowcs.m4: Update.
4270         * gnulib/import/m4/mbstate_t.m4: Update.
4271         * gnulib/import/m4/memchr.m4: Update.
4272         * gnulib/import/m4/memmem.m4: Update.
4273         * gnulib/import/m4/mempcpy.m4: Update.
4274         * gnulib/import/m4/memrchr.m4: Update.
4275         * gnulib/import/m4/mkdir.m4: Update.
4276         * gnulib/import/m4/mkstemp.m4: Update.
4277         * gnulib/import/m4/mmap-anon.m4: Update.
4278         * gnulib/import/m4/mode_t.m4: Update.
4279         * gnulib/import/m4/msvc-inval.m4: Update.
4280         * gnulib/import/m4/msvc-nothrow.m4: Update.
4281         * gnulib/import/m4/multiarch.m4: Update.
4282         * gnulib/import/m4/nocrash.m4: Update.
4283         * gnulib/import/m4/off_t.m4: Update.
4284         * gnulib/import/m4/onceonly.m4: Update.
4285         * gnulib/import/m4/open-cloexec.m4: Update.
4286         * gnulib/import/m4/open.m4: Update.
4287         * gnulib/import/m4/openat.m4: Update.
4288         * gnulib/import/m4/opendir.m4: Update.
4289         * gnulib/import/m4/pathmax.m4: Update.
4290         * gnulib/import/m4/rawmemchr.m4: Update.
4291         * gnulib/import/m4/readdir.m4: Update.
4292         * gnulib/import/m4/readlink.m4: Update.
4293         * gnulib/import/m4/realloc.m4: Update.
4294         * gnulib/import/m4/rename.m4: Update.
4295         * gnulib/import/m4/rewinddir.m4: Update.
4296         * gnulib/import/m4/rmdir.m4: Update.
4297         * gnulib/import/m4/save-cwd.m4: Update.
4298         * gnulib/import/m4/secure_getenv.m4: Update.
4299         * gnulib/import/m4/setenv.m4: Update.
4300         * gnulib/import/m4/signal_h.m4: Update.
4301         * gnulib/import/m4/ssize_t.m4: Update.
4302         * gnulib/import/m4/stat-time.m4: Update.
4303         * gnulib/import/m4/stat.m4: Update.
4304         * gnulib/import/m4/std-gnu11.m4: Update.
4305         * gnulib/import/m4/stdbool.m4: Update.
4306         * gnulib/import/m4/stddef_h.m4: Update.
4307         * gnulib/import/m4/stdint.m4: Update.
4308         * gnulib/import/m4/stdio_h.m4: Update.
4309         * gnulib/import/m4/stdlib_h.m4: Update.
4310         * gnulib/import/m4/strchrnul.m4: Update.
4311         * gnulib/import/m4/strdup.m4: Update.
4312         * gnulib/import/m4/strerror.m4: Update.
4313         * gnulib/import/m4/string_h.m4: Update.
4314         * gnulib/import/m4/strstr.m4: Update.
4315         * gnulib/import/m4/strtok_r.m4: Update.
4316         * gnulib/import/m4/sys_socket_h.m4: Update.
4317         * gnulib/import/m4/sys_stat_h.m4: Update.
4318         * gnulib/import/m4/sys_time_h.m4: Update.
4319         * gnulib/import/m4/sys_types_h.m4: Update.
4320         * gnulib/import/m4/tempname.m4: Update.
4321         * gnulib/import/m4/time_h.m4: Update.
4322         * gnulib/import/m4/unistd-safer.m4: Update.
4323         * gnulib/import/m4/unistd_h.m4: Update.
4324         * gnulib/import/m4/warn-on-use.m4: Update.
4325         * gnulib/import/m4/wchar_h.m4: Update.
4326         * gnulib/import/m4/wchar_t.m4: Update.
4327         * gnulib/import/m4/wctype_h.m4: Update.
4328         * gnulib/import/m4/wint_t.m4: Update.
4329         * gnulib/import/malloc.c: Update.
4330         * gnulib/import/malloc/scratch_buffer.h: Update.
4331         * gnulib/import/malloc/scratch_buffer_grow.c: Update.
4332         * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
4333         * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
4334         * gnulib/import/malloca.c: Update.
4335         * gnulib/import/malloca.h: Update.
4336         * gnulib/import/malloca.valgrind: Update.
4337         * gnulib/import/math.in.h: Update.
4338         * gnulib/import/mbrtowc.c: Update.
4339         * gnulib/import/mbsinit.c: Update.
4340         * gnulib/import/mbsrtowcs-impl.h: Update.
4341         * gnulib/import/mbsrtowcs-state.c: Update.
4342         * gnulib/import/mbsrtowcs.c: Update.
4343         * gnulib/import/memchr.c: Update.
4344         * gnulib/import/memmem.c: Update.
4345         * gnulib/import/mempcpy.c: Update.
4346         * gnulib/import/memrchr.c: Update.
4347         * gnulib/import/mkdir.c: Update.
4348         * gnulib/import/mkstemp.c: Update.
4349         * gnulib/import/msvc-inval.c: Update.
4350         * gnulib/import/msvc-inval.h: Update.
4351         * gnulib/import/msvc-nothrow.c: Update.
4352         * gnulib/import/msvc-nothrow.h: Update.
4353         * gnulib/import/open.c: Update.
4354         * gnulib/import/openat-die.c: Update.
4355         * gnulib/import/openat-priv.h: Update.
4356         * gnulib/import/openat-proc.c: Update.
4357         * gnulib/import/openat.c: Update.
4358         * gnulib/import/openat.h: Update.
4359         * gnulib/import/opendir.c: Update.
4360         * gnulib/import/pathmax.h: Update.
4361         * gnulib/import/pipe-safer.c: Update.
4362         * gnulib/import/rawmemchr.c: Update.
4363         * gnulib/import/readdir.c: Update.
4364         * gnulib/import/readlink.c: Update.
4365         * gnulib/import/realloc.c: Update.
4366         * gnulib/import/ref-add.sin: Update.
4367         * gnulib/import/ref-del.sin: Update.
4368         * gnulib/import/rename.c: Update.
4369         * gnulib/import/rewinddir.c: Update.
4370         * gnulib/import/rmdir.c: Update.
4371         * gnulib/import/same-inode.h: Update.
4372         * gnulib/import/save-cwd.c: Update.
4373         * gnulib/import/save-cwd.h: Update.
4374         * gnulib/import/scratch_buffer.h: Update.
4375         * gnulib/import/secure_getenv.c: Update.
4376         * gnulib/import/setenv.c: Update.
4377         * gnulib/import/signal.in.h: Update.
4378         * gnulib/import/stat-time.c: Update.
4379         * gnulib/import/stat-time.h: Update.
4380         * gnulib/import/stat-w32.c: Update.
4381         * gnulib/import/stat-w32.h: Update.
4382         * gnulib/import/stat.c: Update.
4383         * gnulib/import/stdbool.in.h: Update.
4384         * gnulib/import/stddef.in.h: Update.
4385         * gnulib/import/stdint.in.h: Update.
4386         * gnulib/import/stdio.in.h: Update.
4387         * gnulib/import/stdlib.in.h: Update.
4388         * gnulib/import/str-two-way.h: Update.
4389         * gnulib/import/strchrnul.c: Update.
4390         * gnulib/import/strdup.c: Update.
4391         * gnulib/import/streq.h: Update.
4392         * gnulib/import/strerror-override.c: Update.
4393         * gnulib/import/strerror-override.h: Update.
4394         * gnulib/import/strerror.c: Update.
4395         * gnulib/import/string.in.h: Update.
4396         * gnulib/import/stripslash.c: Update.
4397         * gnulib/import/strnlen1.c: Update.
4398         * gnulib/import/strnlen1.h: Update.
4399         * gnulib/import/strstr.c: Update.
4400         * gnulib/import/strtok_r.c: Update.
4401         * gnulib/import/sys_stat.in.h: Update.
4402         * gnulib/import/sys_time.in.h: Update.
4403         * gnulib/import/sys_types.in.h: Update.
4404         * gnulib/import/tempname.c: Update.
4405         * gnulib/import/tempname.h: Update.
4406         * gnulib/import/time.in.h: Update.
4407         * gnulib/import/unistd--.h: Update.
4408         * gnulib/import/unistd-safer.h: Update.
4409         * gnulib/import/unistd.in.h: Update.
4410         * gnulib/import/unsetenv.c: Update.
4411         * gnulib/import/verify.h: Update.
4412         * gnulib/import/extra/snippet/warn-on-use.h: Update.
4413         * gnulib/import/wchar.in.h: Update.
4414         * gnulib/import/wctype.in.h: Update.
4415         * gnulib/import/xalloc-oversized.h: Update.
4416         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4417         "53e2c179f26a890fa6685af4b6c1397ee370433b".
4418
4419 2018-08-16  Gary Benson <gbenson@redhat.com>
4420
4421         PR gdb/13000:
4422         * gdb/main.c (captured_main_1): Exit with nonzero status
4423         in batch mode if the last command to be executed failed.
4424         * NEWS: Mention the above.
4425
4426 2018-08-29  Simon Marchi  <simon.marchi@ericsson.com>
4427
4428         * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
4429         end of warning message.
4430
4431 2018-08-29  Alan Hayward  <alan.hayward@arm.com>
4432
4433         PR gdb/22943:
4434         * aarch64-tdep.c (is_hfa_or_hva): Remove function.
4435         (aarch64_extract_return_value): Use
4436         aapcs_is_vfp_call_or_return_candidate.
4437         (aarch64_return_in_memory): Likewise.
4438         (aarch64_store_return_value): Likewise.
4439
4440 2018-08-29  Alan Hayward  <alan.hayward@arm.com>
4441
4442         * aarch64-tdep.c
4443         (aapcs_is_vfp_call_or_return_candidate): Make static
4444         (pass_in_v_or_stack): Remove function.
4445         (pass_in_v_vfp_candidate): New function.
4446         (aarch64_push_dummy_call): Check for float register candidates.
4447
4448 2018-08-29  Alan Hayward  <alan.hayward@arm.com>
4449
4450         * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
4451         (aapcs_is_vfp_call_or_return_candidate_1): New function.
4452         (aapcs_is_vfp_call_or_return_candidate): Likewise.
4453
4454 2018-08-28  Simon Marchi  <simon.marchi@polymtl.ca>
4455
4456         PR build/23399
4457         * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
4458         (struct ipa_sym_addresses): Rename to...
4459         (struct ipa_sym_addresses_common): ... this.
4460         * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
4461
4462 2018-08-28  Tom Tromey  <tom@tromey.com>
4463
4464         * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4465         (token_fifo): Now a std::vector.
4466         (yylex, c_parse): Update.
4467         * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4468         (token_fifo): Now a std::vector.
4469         (yylex, d_parse): Update.
4470         * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4471         (token_fifo): Now a std::vector.
4472         (yylex, go_parse): Update.
4473
4474 2018-08-28  Simon Marchi  <simon.marchi@ericsson.com>
4475
4476         * parser-defs.h (struct type_stack) <elements>: Change type to
4477         std::vector<union type_stack_elt>.
4478         <depth, size>: Remove.
4479         * parse.c (parse_exp_in_context_1): Adjust.
4480         (type_stack_reserve): Remove.
4481         (check_type_stack_depth): Remove.
4482         (insert_into_type_stack): Adjust to std::vector.
4483         (insert_type): Likewise.
4484         (push_type): Likewise.
4485         (push_type_int): Likewise.
4486         (insert_type_address_space): Likewise.
4487         (pop_type): Likewise.
4488         (pop_type_int): Likewise.
4489         (pop_typelist): Likewise.
4490         (pop_type_stack): Likewise.
4491         (append_type_stack): Likewise.
4492         (push_type_stack): Likewise.
4493         (get_type_stack): Likewise.
4494         (type_stack_cleanup): Likewise.
4495         (push_typelist): Likewise.
4496         (follow_types): Likewise.
4497         (_initialize_parse): Likewise.
4498
4499 2018-08-28  Hafiz Abid Qadeer  <abidh@codesourcery.com>
4500
4501         * NEWS: Mention csky target.
4502
4503 2018-08-28  Jiangshuai Li  <jiangshuai_li@c-sky.com>
4504             Hafiz Abid Qadeer  <abidh@codesourcery.com>
4505             Don Breazeal  <donb@codesourcery.com>
4506
4507         * csky-linux-tdep.c: New file.
4508         * csky-tdep.c: Likewise.
4509         * csky-tdep.h: Likewise.
4510         * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
4511         csky-tdep.o.
4512         (HFILES_NO_SRCDIR): Add csky-tdep.h.
4513         (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
4514         * configure.tgt: Add csky support.
4515
4516 2018-08-27  Jan Vrany  <jan.vrany@fit.cvut.cz>
4517
4518         * python/py-framefilter.c (py_print_frame): Print frame architecture
4519         when printing on an MI output.
4520
4521 2018-08-27  Tom Tromey  <tom@tromey.com>
4522
4523         PR build/23087:
4524         * configure: Rebuild.
4525         * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
4526
4527 2018-08-27  Tom Tromey  <tom@tromey.com>
4528
4529         * aarch64-linux-tdep.c
4530         (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
4531         casts to int.
4532
4533 2018-08-27  Tom Tromey  <tom@tromey.com>
4534
4535         * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
4536         unsigned.
4537         (ppc64_standard_linkage1, ppc64_standard_linkage2)
4538         (ppc64_standard_linkage3, ppc64_standard_linkage4)
4539         (ppc64_standard_linkage5, ppc64_standard_linkage6)
4540         (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
4541         unsigned.
4542
4543 2018-08-27  Tom Tromey  <tom@tromey.com>
4544
4545         * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
4546         (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
4547
4548 2018-08-27  Tom Tromey  <tom@tromey.com>
4549
4550         * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
4551         * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
4552         ULONGEST_MAX.
4553         * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
4554         ULONGEST_MAX.
4555         * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
4556         ULONGEST_MAX.
4557         * sparc-linux-tdep.c (sparc32_linux_sigframe)
4558         (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
4559         * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
4560         ULONGEST_MAX.
4561         * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
4562         (ppc64_linux_sigaction_tramp_frame)
4563         (ppc32_linux_sighandler_tramp_frame)
4564         (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4565         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
4566         (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
4567         * mn10300-linux-tdep.c (am33_linux_sigframe)
4568         (am33_linux_rt_sigframe): Use ULONGEST_MAX.
4569         * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
4570         * mips-linux-tdep.c (mips_linux_o32_sigframe)
4571         (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4572         (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
4573         (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
4574         (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
4575         * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
4576         (mips64_fbsd_sigframe): Use ULONGEST_MAX.
4577         * microblaze-linux-tdep.c
4578         (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4579         * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
4580         (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
4581         (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
4582         * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
4583         * common/common-types.h (ULONGEST_MAX): New define.
4584         (CORE_ADDR_MAX): Fix formatting.
4585         * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
4586         * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
4587         * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
4588         (arm_linux_rt_sigreturn_tramp_frame)
4589         (arm_eabi_linux_sigreturn_tramp_frame)
4590         (arm_eabi_linux_rt_sigreturn_tramp_frame)
4591         (thumb2_eabi_linux_sigreturn_tramp_frame)
4592         (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
4593         (arm_linux_restart_syscall_tramp_frame)
4594         (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
4595         * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
4596         * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
4597         ULONGEST_MAX.
4598         * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
4599
4600 2018-08-27  Tom Tromey  <tom@tromey.com>
4601
4602         * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
4603         CORE_ADDR_MAX.
4604         * mips-tdep.c (mips_deal_with_atomic_sequence)
4605         (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
4606         * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
4607         (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
4608         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
4609         CORE_ADDR_MAX.
4610         * aarch64-tdep.c (aarch64_software_single_step): Use
4611         CORE_ADDR_MAX.
4612
4613 2018-08-27  Tom Tromey  <tom@tromey.com>
4614
4615         * linespec.c (complete_linespec_component): Add cast to "char".
4616         * completer.c (completion_tracker::build_completion_result): Add
4617         cast to "char".
4618
4619 2018-08-26  Simon Marchi  <simon.marchi@polymtl.ca>
4620
4621         * solist.h (struct solist, struct target_so_ops): Fix
4622         indentation.
4623
4624 2018-08-26  Simon Marchi  <simon.marchi@polymtl.ca>
4625
4626         * ada-tasks.c (ada_task_info_s): Remove typedef.
4627         (DEF_VEC_O(ada_task_info_s)): Remove.
4628         (struct ada_tasks_inferior_data): Initialize fields.
4629         <task_list>: Make an std::vector.
4630         (get_ada_tasks_inferior_data): Allocate with new.
4631         (ada_get_task_number): Adjust.
4632         (get_task_number_from_id): Likewise.
4633         (valid_task_id): Likewise.
4634         (ada_get_task_info_from_ptid): Likewise.
4635         (iterate_over_live_ada_tasks): Likewise.
4636         (add_ada_task): Likewise.
4637         (read_known_tasks): Likewise.
4638         (ada_build_task_list): Likewise.
4639         (print_ada_task_info): Likewise.
4640         (info_task): Likewise.
4641         (task_command_1): Likewise.
4642
4643 2018-08-26  Simon Marchi  <simon.marchi@polymtl.ca>
4644
4645         * ada-lang.c (add_angle_brackets): Return std::string.
4646
4647 2018-08-25  Simon Marchi  <simon.marchi@polymtl.ca>
4648
4649         * python/py-threadevent.c (py_get_event_thread): Initialize
4650         pythread.
4651
4652 2018-08-24  Pedro Alves  <palves@redhat.com>
4653
4654         * python/py-bpevent.c (create_breakpoint_event_object): Use
4655         copy-initialization.
4656         * python/py-continueevent.c (emit_continue_event): Use
4657         copy-initialization.
4658         * python/py-exitedevent.c (create_exited_event_object): Return a
4659         gdbpy_ref<>.
4660         (emit_exited_event): Use copy-initialization.
4661         * python/py-inferior.c (python_new_inferior)
4662         (python_inferior_deleted, add_thread_object): Use
4663         copy-initialization.
4664         * python/py-infevents.c (create_inferior_call_event_object)
4665         (create_register_changed_event_object)
4666         (create_memory_changed_event_object): Return a gdbpy_ref<>.
4667         (emit_inferior_call_event, emit_memory_changed_event)
4668         (emit_register_changed_event): Use copy-initialization.
4669         * python/py-newobjfileevent.c (create_new_objfile_event_object):
4670         Return a gdbpy_ref<>.
4671         (emit_new_objfile_event): Use copy-initialization.
4672         (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
4673         (emit_clear_objfiles_event): Use copy-initialization.
4674         * python/py-signalevent.c (create_signal_event_object): Use
4675         copy-initialization.
4676         * python/py-threadevent.c (create_thread_event_object): Use
4677         copy-initialization.
4678
4679 2018-08-24  Pedro Alves  <palves@redhat.com>
4680             Simon Marchi  <simon.marchi@ericsson.com>
4681
4682         PR gdb/23379
4683         * python/py-continueevent.c: Include "gdbthread.h".
4684         (create_continue_event_object): Add intro comment.  Add 'ptid'
4685         parameter.  Use it to find thread to pass to
4686         create_thread_event_object.
4687         (emit_continue_event): Pass PTID down to
4688         create_continue_event_object.
4689         * python/py-event.h (py_get_event_thread): Declare.
4690         (create_thread_event_object): Remove default from 'thread'
4691         parameter.
4692         * python/py-stopevent.c (create_stop_event_object): Use
4693         py_get_event_thread.
4694         * python/py-threadevent.c (get_event_thread): Rename to ...
4695         (py_get_event_thread): ... this, make extern, add 'ptid' parameter
4696         and use it to find the thread.
4697         (create_thread_event_object): Assert that THREAD isn't null.
4698         Don't find the event thread here.
4699
4700 2018-08-23  Kevin Buettner  <kevinb@redhat.com>
4701
4702         * block.h (blockrange, blockranges): New struct declarations.
4703         (struct block): Add new field named `ranges'.
4704         (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
4705         (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
4706         macros for accessing ranges in struct block.
4707         (make_blockranges): New declaration.
4708         block.c (make_blockranges): New function.
4709         * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
4710         for block.
4711         * symtab.h (find_pc_partial_function): Add new parameter `block'.
4712         * blockframe.c (cache_pc_function_block): New static global.
4713         (clear_pc_function_cache): Clear cache_pc_function_block.
4714         (find_pc_partial_function): Move comment to symtab.h.  Add
4715         support for non-contiguous blocks.
4716         * cli/cli-cmds.c (block.h): Include.
4717         (print_disassembly): Handle printing of non-contiguous blocks.
4718         (disassemble_current_function): Likewise.
4719         (disassemble_command): Likewise.
4720
4721         * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
4722         BLOCK_START.
4723         * blockframe.c (get_pc_function_start): Likewise.
4724         * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
4725         (gcc_symbol_address): Likewise.
4726         * compile/compile-object-run.c (compile_object_run): Likewise.
4727         * compile/compile.c (get_expr_block_and_pc): Likewise.
4728         * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
4729         (func_addr_to_tail_call_list): Likewise.
4730         * findvar.c (default_read_var_value): Likewise.
4731         * inline-frame.c (inline_frame_this_id): Likewise.
4732         (skip-inline_frames): Likewise.
4733         * infcmd.c (until_next_command): Likewise.
4734         * linespec.c (convert_linespec_to_sals): Likewise.
4735         * parse.c (parse_exp_in_context_1): Likewise.
4736         * printcmd.c (build_address_symbolic): likewise.
4737         (info_address_command): Likewise.
4738         symtab.c (find_function_start_sal): Likewise.
4739         (skip_prologue_sal): Likewise.
4740         (find_function_alias_target): Likewise.
4741         (find_gnu_ifunc): Likewise.
4742         * stack.c (find_frame_funname): Likewise.
4743         * symtab.c (fixup_symbol_section): Likewise.
4744         (find_function_start_sal): Likewise.
4745         (skip_prologue_sal): Likewsie.
4746         (find_function_alias_target): Likewise.
4747         (find_gnu_ifunc): Likewise.
4748         * tracepoint.c (info_scope_command): Likewise.
4749         * value.c (value_fn_field): Likewise.
4750
4751         * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
4752         in place of find_pc_partial_function.
4753         * blockframe.c (find_function_entry_range_from_pc): New function.
4754         * symtab.h (find_function_entry_range_from_pc): Declare and document.
4755         * objfiles.c (objfile_relocate1): Relocate start and end addresses
4756         for each range in a block.
4757
4758
4759 2018-08-23  Xavier Roirand  <roirand@adacore.com>
4760
4761         * machoread.c (macho_symfile_read_all_oso): Remove uneeded
4762         incrementation.
4763
4764 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
4765
4766         * solib-svr4.c (read_program_headers_from_bfd): Return
4767         gdb::optional<gdb::byte_vector>.
4768         (svr4_exec_displacement): Adjust.
4769
4770 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
4771
4772         * solib-svr4.c (read_program_header): Return
4773         gdb::optional<gdb::byte_vector>, remove p_sect_size param.
4774         (find_program_interpreter): Return
4775         gdb::optional<gdb::byte_vector>.
4776         (scan_dyntag_auxv): Adjust.
4777         (enable_break): Adjust.
4778         (svr4_exec_displacement): Adjust.
4779
4780 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
4781
4782         * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
4783         * inf-child.c (inf_child_target::terminal_save_inferior): New.
4784
4785 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
4786
4787         * guile/scm-string.c (gdbscm_scm_from_printf): Use
4788         string_vprintf.
4789         * guile/scm-utils.c (gdbscm_printf): Likewise.
4790         * serial.c (serial_printf): Likewise.
4791         * xml-support.c (gdb_xml_parser::vdebug): Likewise.
4792
4793 2018-08-22  Jan Vrany  <jan.vrany@fit.cvut.cz>
4794
4795         * stack.c (print_frame): Print frame architecture when printing on
4796         an MI output.
4797         * NEWS: Mention new "arch" attribute in frame output.
4798
4799 2018-08-21  Alan Hayward  <alan.hayward@arm.com>
4800
4801         * arch/aarch64.h (aarch64_regnum): Update comment.
4802
4803 2018-08-21  Alan Hayward  <alan.hayward@arm.com>
4804
4805         * NEWS: Add SVE to 8.2 section.
4806
4807 2018-08-21  Pedro Alves  <palves@redhat.com>
4808
4809         * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
4810         out from gdbscm_parse_function_args.
4811         (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
4812         gdbscm_parse_function_args_1.
4813
4814 2018-08-21  Simon Marchi  <simon.marchi@ericsson.com>
4815
4816         PR gdb/17816
4817         * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
4818         operator.
4819
4820 2018-08-19  Simon Marchi  <simon.marchi@polymtl.ca>
4821
4822         * solib-svr4.c (svr4_exec_displacement): Fix formatting.
4823
4824 2018-08-19  Michael Spang  <spang@google.com>
4825
4826         PR gdb/11786
4827         * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
4828         for PT_TLS segments.
4829
4830 2018-08-18  Kevin Buettner  <kevinb@redhat.com>
4831
4832         * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
4833         dwarf_variable_value.
4834         * dwarf2-frame.c (class dwarf_expr_executor):
4835         Add override for dwarf_variable_value.
4836         * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
4837         (class symbol_needs_eval_context): Likewise.
4838         (indirect_synthetic_pointer): Add forward declaration.
4839         (sect_variable_value): New function.
4840         (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
4841         * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
4842         for DW_OP_GNU_variable_value.
4843
4844 2018-08-16  Tom Tromey  <tom@tromey.com>
4845
4846         * top.c (read_command_file): Update.
4847         (command_line_input): Remove "repeat" argument.
4848         * ada-lang.c (get_selections): Update.
4849         * linespec.c (decode_line_2): Update.
4850         * defs.h (command_line_input): Remove argument.
4851         * cli/cli-script.c (read_next_line): Update.
4852         * python/py-gdb-readline.c: Update.
4853
4854 2018-08-17  Tom Tromey  <tom@tromey.com>
4855
4856         * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
4857         command_line_input.
4858
4859 2018-08-15  Tom Tromey  <tom@tromey.com>
4860
4861         * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
4862
4863 2018-08-14  Jan Vrany  <jan.vrany@fit.cvut.cz>
4864
4865         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
4866         If used, use find_pc_partial_function to find address range
4867         to disassemble.
4868         * mi/mi-main.c (mi_cmd_list_features): Report
4869         "data-disassemble-a-option" feature.
4870         * NEWS: Mention new -data-disassemble option -a.
4871
4872 2018-08-13  Tom Tromey  <tom@tromey.com>
4873
4874         * common/common-defs.h (_FORTIFY_SOURCE): Define.
4875
4876 2018-08-13  Alan Hayward  <alan.hayward@arm.com>
4877
4878         * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
4879         (aarch64_linux_collect_sve_regset): Likewise.
4880         (aarch64_linux_iterate_over_regset_sections): Check for SVE.
4881         * regcache.h (regcache_map_entry_size): New function.
4882
4883 2018-08-13  Alan Hayward  <alan.hayward@arm.com>
4884
4885         * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
4886         (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
4887         (SVE_HEADER_VL_LENGTH): Likewise.
4888         (SVE_HEADER_MAX_VL_LENGTH): Likewise.
4889         (SVE_HEADER_FLAGS_LENGTH): Likewise.
4890         (SVE_HEADER_RESERVED_LENGTH): Likewise.
4891         (SVE_HEADER_SIZE_OFFSET): Likewise.
4892         (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
4893         (SVE_HEADER_VL_OFFSET): Likewise.
4894         (SVE_HEADER_MAX_VL_OFFSET): Likewise.
4895         (SVE_HEADER_FLAGS_OFFSET): Likewise.
4896         (SVE_HEADER_RESERVED_OFFSET): Likewise.
4897         (SVE_HEADER_SIZE): Likewise.
4898         (aarch64_linux_core_read_vq): Add function.
4899         (aarch64_linux_core_read_description): Check for SVE section.
4900
4901 2018-08-13  Alan Hayward  <alan.hayward@arm.com>
4902
4903         * aarch64-fbsd-tdep.c
4904         (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
4905         collect_size.
4906         * aarch64-linux-tdep.c
4907         (aarch64_linux_iterate_over_regset_sections): Likewise.
4908         * alpha-linux-tdep.c
4909         (alpha_linux_iterate_over_regset_sections):
4910         * alpha-nbsd-tdep.c
4911         (alphanbsd_iterate_over_regset_sections): Likewise.
4912         * amd64-fbsd-tdep.c
4913         (amd64fbsd_iterate_over_regset_sections): Likewise.
4914         * amd64-linux-tdep.c
4915         (amd64_linux_iterate_over_regset_sections): Likewise.
4916         * arm-bsd-tdep.c
4917         (armbsd_iterate_over_regset_sections): Likewise.
4918         * arm-fbsd-tdep.c
4919         (arm_fbsd_iterate_over_regset_sections): Likewise.
4920         * arm-linux-tdep.c
4921         (arm_linux_iterate_over_regset_sections): Likewise.
4922         * corelow.c (get_core_registers_cb): Likewise.
4923         (core_target::fetch_registers): Likewise.
4924         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
4925         * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
4926         * gdbarch.h (void): Regenerate.
4927         * gdbarch.sh: Add supply_size and collect_size.
4928         * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
4929         * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
4930         * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
4931         * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
4932         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
4933         * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
4934         * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
4935         * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
4936         * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
4937         * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
4938         * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
4939         * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
4940         * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
4941         * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
4942         * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections):
4943         Likewise.
4944         * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
4945         * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
4946         * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
4947         * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
4948         * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
4949         * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
4950         * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections):
4951         Likewise.
4952         * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
4953         * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
4954         * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
4955         * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
4956         * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
4957         * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
4958         * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
4959         * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
4960
4961 2018-08-10  Simon Marchi  <simon.marchi@ericsson.com>
4962
4963         * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
4964         with string_printf.
4965
4966 2018-08-10  Keith Seitz  <keiths@redhat.com>
4967
4968         * compile/compile-c-support.c (add_code_header, add_code_footer):
4969         Move into policy class.
4970         (c_push_user_expression, pop_user_expression_nop)
4971         (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
4972         (compile_program): New host class.
4973         (c_compile_program): New typedef.
4974         (c_compute_porgram): Use c_compile_program.
4975
4976 2018-08-10  Keith Seitz  <keiths@redhat.com>
4977
4978         * compile/compile-internal.h (compile_instance::~compile_instance):
4979         Remove calls to htab_delete.
4980         <m_type_map, m_symbol_err_map>: Switch type to htab_up.
4981         * compile.c (compile_instance::compile_instance): Initialize
4982         htab unique pointers.
4983         (compile_instance::get_cached_type, compile_instance::insert_type)
4984         (compile_instance::error_symbol_once): Update for unique_ptr.
4985
4986 2018-08-10  Keith Seitz  <keiths@redhat.com>
4987
4988         * compile/compile-c-symbols.c (struct symbol_error)
4989         (hash_symbol_error, eq_symbol_error, del_symbol_error)
4990         (compile_instance::insert_symbol_error)
4991         (compile_instance::error_symbol_once): Move to ...
4992         * compile/compile.c: ... here.
4993
4994 2018-08-10  Keith Seitz  <keiths@redhat.com>
4995
4996         * compile/compile-c-support.c (c_get_compile_context): Use `new'
4997         instead of `new_compile_instance'.
4998         * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
4999         Update description.
5000         If the symbol error map is not initialized, create it.
5001         (generate_c_for_for_one_symbol): Do not check/initialize
5002         the symbol error map.
5003         * compile/compile-c-types.c (compile_c_instance): Make a class.
5004         Update all callers.
5005         (compile_instance::compile_instance): Initialize the type cache.
5006         (get_cached_type): New function.
5007         (insert_type): Update description.
5008         (compile_c_instance::m_default_cflags): Define.
5009         (convert_type): Update description.  Use get_cached_type.
5010         (delete_instance): Moved to destructor.
5011         (new_compile_instance): Moved to constructor.
5012         * compile/compile-c.h (compile_c_instance): Make class inheriting
5013         from compile_instance.
5014         <base>: Remove field.
5015         <type_map, symbol_err_map>: Move to base class.
5016         <c_plugin>: Rename to `m_plugin' and remove pointer type.
5017         * compile/compile-internal.h (compile_instance): Make class.
5018         <type_map_t, symbol_err_map_t>: Define.
5019         <fe>: Rename to `m_gcc_fe'.
5020         <scope, block, gcc_target_options>: Add `m_' prefix.
5021         <m_type_map, m_symbol_err_map>: New fields, moved from
5022         compile_c_instance.
5023         <destroy>: Remove.
5024         (convert_type, new_compile_instance): Remove.
5025         * compile/compile.c (cleanup_compile_instance): Remove.
5026         (compile_to_object): Use unique_ptr to eliminate cleanups.
5027         (compile_instance::set_print_callback, compile_instance::version)
5028         (compile_instance::set_verbose)
5029         (compile_instance::set_driver_filename)
5030         (compile_instance::set_triplet_regexp)
5031         (compile_instance::set_arguments)
5032         (compile_instance::set_source_file)
5033         (compile_instance::compile): Define.
5034
5035 2018-08-10  Keith Seitz  <keiths@redhat.com>
5036
5037         * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
5038         * compile/compile-c-types.c: Define GCC_METHODN macros and include
5039         gcc-c-fe.def to define C plugin.
5040         (delete_instance): Delete `c_plugin'.
5041         (new_compile_instance): Initialize `c_plugin'.
5042         * compile/compile-c.h: Include gcc_c_plugin.h.
5043         (struct compile_c_instance) <c_plugin>: New member.
5044         * gcc-c-plugin.h: New file.
5045         Update all callers with API change.
5046
5047 2018-08-10  Keith Seitz  <keiths@redhat.com>
5048
5049         * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
5050         (HFILES_NO_SRCDIR): ... to here.
5051         Add compile-internal.h and compile-c.h.
5052         * compile/compile-c-support.c: Include compile-c.h.
5053         * compile/compile-c-symbols.c: Include compile-c.h.
5054         (generate_c_for_variable_locations): Update comment.
5055         * compile/compile-c-types.c: Include compile-c.h.
5056         * compile/compile-c.h: New file -- moved C language declarations
5057         from other files here.
5058         * compile/compile-internal.h: Do not include hashtab.h or
5059         common/enum-flags.h.
5060         (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
5061         (gcc_convert_symbol, gcc_symbol_address)
5062         (generate_c_for_variable_locations, c_get_mode_for_size)
5063         (c_get_range_decl_name): Definitions moved to compile-c.h.
5064         * compile/compile-loc2c.c: Include compile-c.h.
5065
5066 2018-08-10  Keith Seitz  <keiths@redhat.com>
5067
5068         * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
5069         (c_symbol_substitution_name): ... this.
5070         Update all callers.
5071
5072 2018-08-10  Keith Seitz  <keiths@redhat.com>
5073
5074         * compile/compile-c-support.c (c_compute_program): Use
5075         unique_xmalloc_ptr to eliminate cleanup.
5076         * compile/compile-c-symbols.c (generate_c_for_variable_locations):
5077         Return a unique_xmalloc_ptr and eliminate cleanup.
5078         * compile/compile-internal.h (generate_c_for_variable_locations):
5079         Return unique_xmalloc_ptr and update description.
5080
5081 2018-08-10  Alan Hayward  <alan.hayward@arm.com>
5082
5083         * corelow.c (core_target::get_core_register_section): Rename
5084         min_size to section_min_size.
5085
5086 2018-08-09  Jim Wilson  <jimw@sifive.com>
5087
5088         * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
5089         (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
5090         * NEWS: Mention new GNU/Linux RISC-V target.
5091         * configure.host: Add riscv*-*-linux*.
5092         * configure.nat: Add riscv*.
5093         * configure.tgt: Add riscv*-*-linux*.
5094         * riscv-linux-nat.c: New file.
5095         * riscv-linux-tdep.c: New file.
5096
5097 2018-08-09  Andrew Burgess  <andrew.burgess@embecosm.com>
5098
5099         * infrun.c (resume): Make static, add forward declaration.
5100         (proceed): Update header comment.
5101         * infrun.h (resume): Delete declaration.
5102
5103 2018-08-09  Tom Tromey  <tom@tromey.com>
5104
5105         * riscv-tdep.h: Minor formatting fixes.
5106
5107 2018-08-09  Simon Marchi  <simon.marchi@ericsson.com>
5108
5109         * common/scoped_mmap.c (mmap_file): Silence ARI warning.
5110         * dwarf-index-cache.c (create_dir_and_check): Likewise.
5111         (test_mkdir_recursive): Likewise.
5112         * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
5113
5114 2018-08-09  Andrew Burgess  <andrew.burgess@embecosm.com>
5115
5116         * valarith.c (value_subscripted_rvalue): If an array is not in
5117         memory, and we don't know the upper bound, then we can't know that
5118         the requested element exists or not.
5119
5120 2018-08-08  Simon Marchi  <simon.marchi@ericsson.com>
5121
5122         * target.c (str_comma_list_concat_elem): Fix typo in comment.
5123         (target_options_to_string): Add comment.
5124
5125 2018-08-08  Tom Tromey  <tom@tromey.com>
5126
5127         * unittests/scoped_mmap-selftests.c: Check result of "write".
5128
5129 2018-08-08  Jim Wilson  <jimw@sifive.com>
5130
5131         * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
5132         (decode_register_index_short): New.
5133         (decode_j_type_insn, decode_cj_type_insn): New.
5134         (decode_b_type_insn, decode_cb_type_insn): New.
5135         (riscv_insn::decode): Add support for jumps, branches, lr, and sc.  New
5136         local xlen.  Check xlen when decoding ambiguous compressed insns.  In
5137         compressed decode, use is_c_lui_insn instead of is_lui_insn, and
5138         is_c_sw_insn instead of is_sw_insn.
5139         (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
5140         (riscv_software_single_step): New.
5141         * riscv-tdep.h (riscv_software_single_step): Declare.
5142
5143         * riscv-tdep.c (riscv_isa_xlen): Drop static.
5144         * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
5145
5146 2018-08-08  Andrew Burgess  <andrew.burgess@embecosm.com>
5147
5148         PR gdb/18050:
5149         * target.c (dispose_inferior): Don't dispose of inferiors that are
5150         already killed.
5151
5152 2018-08-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5153
5154         * remote.c (remote_target::download_tracepoint): Change char* to
5155         const char*.
5156
5157 2018-08-07  Simon Marchi  <simon.marchi@polymtl.ca>
5158
5159         * target.h (target_options_to_string): Return an std::string.
5160         * target.c (str_comma_list_concat_elem): Return void, use
5161         std::string.
5162         (do_option): Likewise.
5163         (target_options_to_string): Return an std::string.
5164         * linux-nat.c (linux_nat_target::wait): Adjust.
5165         * target-debug.h (target_debug_print_options): Adjust.
5166
5167 2018-08-07  Tom Tromey  <tom@tromey.com>
5168
5169         * Makefile.in (CPPFLAGS): New variable.
5170         (INTERNAL_CPPFLAGS): Use it.
5171
5172 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
5173
5174         * NEWS: Mention the index cache.
5175
5176 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
5177
5178         * common/pathstuff.h (get_standard_cache_dir): New.
5179         * common/pathstuff.c (get_standard_cache_dir): New.
5180         * build-id.h (build_id_to_string): New.
5181         * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
5182         DEBUG_STR_SUFFIX): Move to here.
5183         * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
5184         DEBUG_STR_SUFFIX): Move from there.
5185         (write_psymtabs_to_index): Make non-static, add basename
5186         parameter.  Write to temporary files, rename when done.
5187         (save_gdb_index_command): Adjust call to
5188         write_psymtabs_to_index.
5189         * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
5190         field.
5191         * dwarf2read.c (dwz_file) <index_cache_res>: New field.
5192         (get_gdb_index_contents_from_cache): New.
5193         (get_gdb_index_contents_from_cache_dwz): New.
5194         (dwarf2_initialize_objfile): Read index from cache.
5195         (dwarf2_build_psymtabs): Save to index.
5196         * dwarf-index-cache.h: New file.
5197         * dwarf-index-cache.c: New file.
5198         * dwarf-index-write.h: New file.
5199
5200 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
5201
5202         * gnulib/aclocal.m4: Re-generate.
5203         * gnulib/config.in: Re-generate.
5204         * gnulib/configure: Re-generate.
5205         * gnulib/import/Makefile.am: Re-generate.
5206         * gnulib/import/Makefile.in: Re-generate.
5207         * gnulib/import/m4/gnulib-cache.m4: Re-generate.
5208         * gnulib/import/m4/gnulib-comp.m4: Re-generate.
5209         * gnulib/import/m4/mkdir.m4: New file.
5210         * gnulib/import/mkdir.c: New file.
5211         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
5212         module.
5213
5214 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
5215
5216         * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
5217         * common/scoped_mmap.c: New file.
5218         * common/scoped_mmap.h (destroy): New method.
5219         (~scoped_mmap, reset): Use destroy.
5220         (scoped_mmap): New move constructor.
5221         (mmap_file): New declaration.
5222         * unittests/scoped_mmap-selftests.c (test_normal,
5223         test_invalid_filename, run_tests): New functions.
5224         (_initialize_scoped_mmap_selftests): Register selftest.
5225
5226 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
5227
5228         * dwarf2read.c (read_gdb_index_from_section): Rename to...
5229         (read_gdb_index_from_buffer): ... this.  Remove section
5230         parameter, add buffer parameter.
5231         (get_gdb_index_contents_ftype,
5232         get_gdb_index_contents_dwz_ftype): New typedefs.
5233         (dwarf2_read_gdb_index): Add callback parameters to get the
5234         index contents.
5235         (get_gdb_index_contents_from_section): New.
5236         (dwarf2_initialize_objfile): Update call to
5237         dwarf2_read_gdb_index.
5238
5239 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
5240
5241         * common/filestuff.h (gdb_fopen_cloexec): New overload.
5242         (gdb_open_cloexec): Likewise.
5243         * nat/linux-osdata.c (command_from_pid): Use string_printf.
5244         (commandline_from_pid): Likewise.
5245         (linux_xfer_osdata_threads): Likewise.
5246         (linux_xfer_osdata_fds): Likewise.
5247         * ada-lang.c (is_package_name): Likewise.
5248         * auxv.c (procfs_xfer_auxv): Likewise.
5249         * breakpoint.c (print_one_breakpoint_location): Use
5250         uiout::field_fmt.
5251         (print_one_catch_solib): Use string_printf.
5252         * coff-pe-read.c (add_pe_exported_sym): Likewise.
5253         (add_pe_forwarded_sym): Likewise.
5254         * dwarf2read.c (create_type_unit_group): Likewise.
5255         (build_error_marker_type): Likewise.
5256         * infcall.c (get_function_name): Likewise.
5257         * valprint.c (print_converted_chars_to_obstack): Likewise.
5258         * xtensa-tdep.c (xtensa_register_type): Likewise.
5259
5260 2018-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5261
5262         * remote.c (remote_target::download_tracepoint): Fix format
5263         string errors.
5264
5265 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5266
5267         * tracefile.c: Include common/byte-vector.h.
5268         (trace_save): Change type of buf to gdb::byte_vector.  Initialize
5269         with trace_regblock_size if needed.  Update uses of buf.
5270
5271 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5272
5273         * tracepoint.h (collection_list) <m_regs_mask>: Change type to
5274         std::vector<unsigned char>.
5275         * tracepoint.c (collection_list::collection_list): Remove
5276         m_regs_mask initializer from initializer list.  Resize
5277         m_regs_mask using the largest remote register number.
5278         (collection_list::add_remote_register): Remove size check on
5279         m_regs_mask.  Use at to access element.
5280         (collection_list::stringify): Change type of temp_buf to
5281         gdb::char_vector.  Update uses of temp_buf.  Resize if needed to
5282         stringify the register mask.  Use pack_hex_byte for the register
5283         mask.
5284
5285 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5286
5287         * tracepoint.h (class collection_list) <add_register>: Remove.
5288         <add_remote_register, add_ax_registers, add_local_register>:
5289         Declare.
5290         <add_memrange>: Add scope parameter.
5291         * tracepoint.c (encode_actions_1): Likewise.
5292         (collection_list::add_register): Rename to ...
5293         (collection_list::add_remote_register): ... this.  Update
5294         comment.
5295         (collection_list::add_ax_registers, add_local_register): New
5296         methods.
5297         (collection_list::add_memrange): Add scope parameter.  Call
5298         add_local_register instead of add_register.
5299         (finalize_tracepoint_aexpr): New function.
5300         (collection_list::collect_symbol): Update calls to add_memrange.
5301         Call add_local_register instead of add_register.  Call
5302         add_ax_registers.  Call finalize_tracepoint_aexpr.
5303         (encode_actions_1): Get remote regnos for $reg action.  Call
5304         add_remote_register, add_ax_registers, and add_local_register.
5305         Update call to add_memrange.  Call finalize_tracepoint_aexpr.
5306         (validate_actionline): Call finalize_tracepoint_aexpr.
5307
5308 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5309
5310         * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
5311         Replace array buf with gdb::char_vector buf, of size
5312         get_remote_packet_size ().  Replace references to buf and
5313         BUF_SIZE to buf.data () and buf.size ().  Replace strcpy, strcat
5314         and xsnprintf with snprintf.  Raise errors if the buffer is too
5315         small.
5316
5317 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5318
5319         * remote.c (remote_target::download_tracepoint): Fix the has_more
5320         predicate in the QTDP action list iteration.
5321
5322 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5323
5324         * remote.c (remote_target::download_tracepoint): Fix indentation
5325         in for block.
5326
5327 2018-08-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5328
5329         * proc-api.c (_initialize_proc_api): Remove c, unused.
5330         * procfs.c (procfs_init_inferior): Remove signals, unused.
5331         (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
5332         unused.
5333
5334 2018-08-06  Sergey Korolev  <s.korolev@ndmsystems.com>
5335             Andrew Burgess  <andrew.burgess@embecosm.com>
5336
5337         * linux-nat.c (linux_nat_target::follow_fork): Avoid using
5338         'W_STOPCODE (0)' as this could be ambiguous.
5339
5340 2018-08-03  Sergio Durigan Junior  <sergiodj@redhat.com>
5341
5342         * ser-tcp.c (net_open): Fix thinko when deciding whether to
5343         disable TCP's Nagle algorithm (use "ai_protocol" instead of
5344         "ai_socktype").
5345
5346 2018-08-02  Tom Tromey  <tom@tromey.com>
5347
5348         PR symtab/16842.
5349         * dwarf2read.c (read_func_scope): Set symtab on template parameter
5350         symbols.
5351         (process_structure_scope): Likewise.
5352
5353 2018-08-02  Xavier Roirand  <roirand@adacore.com>
5354
5355         PR gdb/22629:
5356         * darwin-nat.c (darwin_kill_inferior): Fix handling of
5357         kill inferior.
5358
5359 2018-08-02  Tom Tromey  <tom@tromey.com>
5360
5361         * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
5362         (darwin_suspend_inferior, darwin_resume_inferior)
5363         (darwin_decode_notify_message, darwin_resume_inferior_threads)
5364         (darwin_check_new_threads): Check result of get_darwin_inferior.
5365
5366 2018-07-31  Joel Brobecker  <brobecker@adacore.com>
5367
5368         GDB 8.1.1 released.
5369
5370 2018-07-31  Jan Vrany  <jan.vrany@fit.cvut.cz>
5371
5372         * varobj.c (varobj_get_path_expr_parent): Report an error if
5373         parent is a dynamic varobj.
5374
5375 2018-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5376
5377         * gnulib/aclocal.m4: Re-generate.
5378         * gnulib/config.in: Re-generate.
5379         * gnulib/configure: Re-generate.
5380         * gnulib/import/Makefile.in: Re-generate.
5381         * gnulib/import/m4/gnulib-comp.m4: Re-generate.
5382         * gnulib/import/m4/onceonly.m4: Re-generate.
5383
5384 2018-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5385
5386         * target-descriptions.c (struct xml_test_tdesc): New.
5387         (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
5388         (record_xml_tdesc): Update.
5389         (maintenance_check_xml_descriptions): Update.
5390         * target-descriptions.h (record_xml_tdesc): Update comment.
5391
5392 2018-07-30  Andrew Burgess  <andrew.burgess@embecosm.com>
5393
5394         * eval.c (evaluate_subexp_for_sizeof): Check for array type before
5395         checking array bounds are defined.
5396
5397 2018-07-30  Tom Tromey  <tom@tromey.com>
5398
5399         * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
5400         irreflexivity violation.
5401
5402 2018-07-30  Tom Tromey  <tom@tromey.com>
5403
5404         * cli/cli-decode.c (lookup_cmd): Remove lint code.
5405         * value.c (unpack_long): Remove lint code.
5406         * valops.c (value_ind): Remove lint code.
5407         * valarith.c (value_x_binop, value_x_unop, value_equal)
5408         (value_pos): Remove lint code.
5409
5410 2018-07-28  Tom de Vries  <tdevries@suse.de>
5411
5412         * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
5413         with undefined upper bound as <optimized out>.
5414
5415 2018-07-27  Sergio Durigan Junior  <sergiodj@redhat.com>
5416
5417         * gcore.in: Rename variable "name" to "prefix".  Expand
5418         "usage" text.
5419
5420 2018-07-14  Jon Turney  <jon.turney@dronecode.org.uk>
5421
5422         * windows-nat.c (windows_nat_target::create_inferior): Update to
5423         call close() in global namespace.
5424
5425 2018-07-26  Tom Tromey  <tom@tromey.com>
5426
5427         * dwarf-index-write.c (add_address_entry): Don't add objfile
5428         offsets.
5429         * dbxread.c (find_stab_function): Rename from
5430         find_stab_function_addr.  Return a bound_minimal_symbol.
5431         (read_dbx_symtab): Use raw_text_low, raw_text_high.
5432         Don't add objfile offsets.
5433         (end_psymtab): Use raw_text_low, raw_text_high,
5434         MSYMBOL_VALUE_RAW_ADDRESS.
5435         (read_ofile_symtab): Update.
5436         (process_one_symbol): Update.
5437         * dwarf2read.c (create_addrmap_from_index): Don't add objfile
5438         offsets.
5439         (dw2_relocate): Remove.
5440         (dw2_find_pc_sect_symtab): Bias PC by the text offset before
5441         searching addrmap.
5442         (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
5443         Update.
5444         (process_psymtab_comp_unit_reader, add_partial_symbol)
5445         (add_partial_subprogram, dwarf2_ranges_read): Update.
5446         (load_partial_dies): Update.
5447         (add_address_entry): Don't add objfile offsets.
5448         (dwarf2_build_include_psymtabs): Update.
5449         (create_addrmap_from_aranges): Don't add objfile offsets.
5450         (dw2_find_pc_sect_compunit_symtab): Update.
5451         * mdebugread.c (parse_symbol): Don't add objfile offsets.
5452         (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
5453         Update.
5454         (parse_partial_symbols): Don't add objfile offsets.  Use
5455         raw_text_low, raw_text_high.  Update.
5456         (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
5457         * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
5458         or call 'relocate' quick function.  Clear psymbol_map.
5459         * psympriv.h (struct partial_symbol) <address>: Add section
5460         offset.
5461         <set_unrelocated_address>: Rename from set_address.
5462         <raw_text_low, raw_text_high>: New methods.
5463         <text_low, text_high>: Add objfile parameter.
5464         (add_psymbol_to_bcache): Add 'section' parameter.  Call
5465         set_unrelocated_address.
5466         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5467         (find_pc_psymbol): Update.
5468         (fixup_psymbol_section, relocate_psymtabs): Remove.
5469         (dump_psymtab, psym_functions): Update.
5470         (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
5471         parameter.
5472         (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5473         (start_psymtab_common): Update.
5474         * symfile-debug.c (debug_qf_relocate): Remove.
5475         (debug_sym_quick_functions): Update.
5476         * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
5477         * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
5478         Update.
5479
5480 2018-07-26  Tom Tromey  <tromey@redhat.com>
5481
5482         * dbxread.c (end_psymtab): Use text_high_valid and
5483         text_low_valid.
5484         * mdebugread.c (parse_partial_symbols): Use text_low_valid.
5485         (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
5486         * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5487         Update comment.
5488         <text_low_valid, text_high_valid>: New fields.
5489         <set_text_low, set_text_high>: Update.
5490         * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
5491
5492 2018-07-26  Tom Tromey  <tom@tromey.com>
5493
5494         * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
5495         Update.
5496         * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
5497         textlow and texthigh fields.
5498         (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
5499         Update.
5500         * mdebugread.c (parse_lines, parse_partial_symbols)
5501         (psymtab_to_symtab_1): Update.
5502         * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5503         Rename fields.  Update comment.  Now private.
5504         <text_low, text_high, set_text_low, set_text_high>: New methods.
5505         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5506         (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
5507         (start_psymtab_common, maintenance_info_psymtabs)
5508         (maintenance_check_psymtabs): Update.
5509         * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
5510         texthigh fields.
5511         (scan_xcoff_symtab): Update.
5512
5513 2018-07-26  Tom Tromey  <tromey@redhat.com>
5514
5515         * psympriv.h (struct partial_symbol) <unrelocated_address,
5516         address, set_address>: New methods.
5517         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
5518         (fixup_psymbol_section, relocate_psymtabs): Update.
5519         (print_partial_symbols): Add 'objfile' parameter.  Update.
5520         (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
5521         Update.
5522
5523 2018-07-26  Tom Tromey  <tom@tromey.com>
5524
5525         * dwarf-index-write.c (write_psymbols, debug_names::insert)
5526         (debug_names::write_psymbols): Update.
5527         * psympriv.h (struct partial_symbol): Derive from
5528         general_symbol_info.
5529         <obj_section>: New method.
5530         (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
5531         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5532         (find_pc_sect_psymbol, fixup_psymbol_section)
5533         (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
5534         (print_partial_symbols, recursively_search_psymtabs)
5535         (compare_psymbols, psymbol_hash, psymbol_compare)
5536         (add_psymbol_to_bcache, maintenance_check_psymtabs)
5537         (psymbol_name_matches, psym_fill_psymbol_map): Update.
5538
5539 2018-07-26  Tom Tromey  <tromey@redhat.com>
5540
5541         * dbxread.c (end_psymtab): Remove dead code.
5542
5543 2018-07-26  Andrew Burgess  <andrew.burgess@embecosm.com>
5544
5545         * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
5546         DWARF unwinders are disabled.
5547         * dwarf2-frame.c: Add dwarf2read.h include.
5548         (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
5549         disabled.
5550         (dwarf2_frame_unwinders_enabled_p): Define.
5551         (show_dwarf_unwinders_enabled_p): New function.
5552         (_initialize_dwarf2_frame): Register switch to control DWARF
5553         unwinder use.
5554         * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
5555         * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
5556         (show_dwarf_cmdlist): Remove static keyword.
5557         * dwarf2read.h (set_dwarf_cmdlist): Declare.
5558         (show_dwarf_cmdlist): Declare.
5559         * NEWS: Document new feature.
5560
5561 2018-07-26  Tom de Vries  <tdevries@suse.de>
5562
5563         PR breakpoints/23366
5564         * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
5565
5566 2018-07-26  Tom de Vries  <tdevries@suse.de>
5567
5568         * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
5569         DW_AT_count can't be translated to a dynamic prop.
5570
5571 2018-07-25  Tom de Vries  <tdevries@suse.de>
5572
5573         * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
5574         try/catch.
5575
5576 2018-07-25  Jan Vrany  <jan.vrany@fit.cvut.cz>
5577
5578         * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
5579
5580 2018-07-25  Joel Brobecker  <brobecker@adacore.com>
5581
5582         * MAINTAINERS (Global Maintainers): Add Tom Tromey.
5583
5584 2018-07-24  Keith Seitz  <keiths@redhat.comt
5585
5586         PR symtab/23010
5587         * dwarf2read.c (dw2_add_symbol_to_list): New function.
5588         (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
5589         instead of add_symbol_to_list.
5590         (read_file_scope): Call prepare_one_comp_unit before reading
5591         any other DIEs.
5592
5593 2018-07-24  Simon Marchi  <simon.marchi@ericsson.com>
5594
5595         * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
5596
5597 2018-07-24  Tom Tromey  <tom@tromey.com>
5598
5599         * utils.c (malloc, realloc, free): Don't declare.
5600         * configure, config.in: Rebuild.
5601         * configure.ac: Don't check for declarations of free, malloc, or
5602         realloc.
5603
5604 2018-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
5605
5606         * aarch64-linux-nat.c
5607         (aarch64_linux_nat_target::stopped_data_address): Remove unused
5608         variable.
5609         * arm-linux-nat.c (fetch_regs): Likewise.
5610         (store_regs): Likewise.
5611         (fetch_vfp_regs): Likewise.
5612         (store_vfp_regs): Likewise.
5613         (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
5614         (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
5615         (arm_linux_nat_target::insert_watchpoint): Likewise.
5616         (arm_linux_nat_target::remove_watchpoint): Likewise.
5617         * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
5618         Likewise.
5619         * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
5620         Likewise.
5621         * ppc-linux-nat.c (fetch_register): Likewise.
5622         (fetch_all_gp_regs): Likewise.
5623         (fetch_ppc_registers): Likewise.
5624         (store_all_gp_regs): Likewise.
5625         (store_ppc_registers): Likewise.
5626         (hwdebug_insert_point): Likewise.
5627         (can_use_watchpoint_cond_accel): Likewise.
5628         * remote-sim.c (gdb_os_write_stdout): Likewise.
5629
5630 2018-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
5631             Tom Tromey  <tom@tromey.com>
5632
5633         * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
5634         test for it.
5635         * configure: Rebuild.
5636
5637 2018-07-22  Tom Tromey  <tom@tromey.com>
5638
5639         * regformats/regdat.sh: Define xmltarget_${name} inside
5640         #ifndef IN_PROCESS_AGENT.
5641
5642 2018-07-22  Tom Tromey  <tom@tromey.com>
5643
5644         * value.c (value_fetch_lazy_bitfield): Remove unused variable.
5645
5646 2018-07-22  Tom Tromey  <tom@tromey.com>
5647
5648         * symfile.c (reread_symbols): Notify iter, not objfile.
5649
5650 2018-07-22  Tom Tromey  <tom@tromey.com>
5651
5652         * ravenscar-thread.c (ravenscar_thread_target::store_registers):
5653         Use arch_ops.
5654         (ravenscar_thread_target::prepare_to_store): Likewise.
5655
5656 2018-07-22  Tom Tromey  <tom@tromey.com>
5657
5658         * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
5659         unused variable.  Call value_fetch_lazy when needed.
5660         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5661         Remove unused variable.  Call value_fetch_lazy when needed.
5662
5663 2018-07-22  Tom Tromey  <tom@tromey.com>
5664
5665         * m32c-tdep.c (mark_dma): Return void.
5666         (make_regs): Remove unused declarations.
5667
5668 2018-07-22  Tom Tromey  <tom@tromey.com>
5669
5670         * guile/scm-cmd.c (gdbscm_dont_repeat): Call
5671         cmdscm_get_valid_command_smob_arg_unsafe for effect.
5672         * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
5673         bkscm_get_valid_block_smob_arg_unsafe for effect.
5674
5675 2018-07-22  Tom Tromey  <tom@tromey.com>
5676
5677         * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
5678         value_type.
5679
5680 2018-07-22  Tom Tromey  <tom@tromey.com>
5681
5682         * windows-nat.c (saved_context): Conditionally define.
5683         * remote.c (remote_target::remote_btrace_maybe_reopen):
5684         Conditionally declare "warned".
5685         * inflow.c (sigquit_ours): Conditionally define.
5686         (new_tty): Move "tty" declaration inside #if.
5687         * guile/guile.c (guile_datadir): Conditionally define.
5688         * charset.c (set_be_le_names): Move some declarations inside #if.
5689         * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
5690         #if.
5691         (parse_xml_btrace_conf): Likewise.
5692
5693 2018-07-22  Tom Tromey  <tom@tromey.com>
5694
5695         * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
5696
5697 2018-07-22  Tom Tromey  <tom@tromey.com>
5698
5699         * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
5700         * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
5701         (vlscm_convert_typed_value_from_scheme): Remove unused variable.
5702         * buildsym-legacy.c (get_macro_table): Remove unused variable.
5703         * stack.c (frame_apply_level_command): Remove unused variable.
5704         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
5705         * sparc64-tdep.c (adi_examine_command): Remove unused variable.
5706         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
5707         unused variable.
5708         * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
5709         * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
5710         * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
5711         variable.
5712         * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
5713         * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
5714         variable.
5715         * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
5716         Remove unused variable.
5717         * cli/cli-script.c (recurse_read_control_structure): Remove unused
5718         variable.
5719         * common/tdesc.c (print_xml_feature::visit): Remove unused
5720         variable.
5721         * compile/compile-object-load.c (store_regs): Remove unused
5722         variables.
5723         * complaints.c (clear_complaints): Remove unused variable.
5724         * corelow.c (core_target_open): Remove unused variable.
5725         * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
5726         variable.
5727         * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
5728         variable.
5729         * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
5730         variable.
5731         * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
5732         variable.
5733         * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
5734         variable.
5735         * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
5736         variable.
5737         * ia64-tdep.c (examine_prologue): Remove unused variable.
5738         * infcall.c (run_inferior_call): Remove unused variable.
5739         * inferior.c (exit_inferior): Remove unused variable.
5740         * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
5741         * linespec.c (decode_line_2): Remove unused variable.
5742         * linux-nat.c (super_close): Remove.
5743         * linux-tdep.c (linux_info_proc): Remove unused variable.
5744         * mi/mi-main.c (mi_execute_command): Remove unused variable.
5745         * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
5746         Remove unused variable.
5747         * parse.c (find_minsym_type_and_address): Remove unused variable.
5748         * printcmd.c (info_symbol_command, printf_floating): Remove unused
5749         variable.
5750         * python/py-breakpoint.c (bppy_set_commands): Remove unused
5751         variable.
5752         * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
5753         variables.
5754         * record-btrace.c (record_btrace_target::store_registers): Remove
5755         unused variable.
5756         (cmd_show_record_btrace_cpu): Remove unused variable.
5757         * riscv-tdep.c (riscv_register_reggroup_p)
5758         (riscv_push_dummy_call, riscv_return_value): Remove unused
5759         variable.
5760         * rust-exp.y (literal): Remove unused variable.
5761         * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
5762         unused variable.
5763         <STRUCTOP_ANONYMOUS>: Likewise.
5764         * s390-linux-tdep.c (s390_linux_init_abi_31)
5765         (s390_linux_init_abi_64): Remove unused variable.
5766         * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
5767         (file_select_thread, net_windows_open, _initialize_ser_windows):
5768         Remove unused variables.
5769         * symtab.c (find_pc_sect_line): Remove unused variable.
5770         * target-memory.c (compute_garbled_blocks): Remove unused
5771         variable.
5772         (target_write_memory_blocks): Remove unused variable.
5773         * target.c (target_stack::unpush): Remove unused variables.
5774         * tracepoint.c (start_tracing, all_tracepoint_actions)
5775         (merge_uploaded_trace_state_variables)
5776         (print_one_static_tracepoint_marker): Remove unused variable.
5777         * unittests/basic_string_view/element_access/char/1.cc (test01):
5778         Remove unused variable.
5779         * windows-nat.c (windows_continue, windows_add_all_dlls)
5780         (do_initial_windows_stuff, windows_nat_target::create_inferior):
5781         Remove unused variables.
5782
5783 2018-07-21  Simon Marchi  <simon.marchi@polymtl.ca>
5784
5785         * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
5786         attr_profile in HAVE_ELF.
5787         * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
5788         HAVE_ELF.
5789
5790 2018-07-20  Simon Marchi  <simon.marchi@polymtl.ca>
5791
5792         * frame.c (frame_register_unwind): Change parameter name.
5793         (frame_unwind_register): Likewise.
5794         (frame_unwind_register_value): Likewise.
5795         (frame_unwind_register_signed): Likewise.
5796         (frame_unwind_register_unsigned): Likewise.
5797         * frame.h (frame_register_unwind): Likewise.
5798         (frame_unwind_register): Likewise.
5799         (frame_unwind_register_value): Likewise.
5800         (frame_unwind_register_signed): Likewise.
5801         (frame_unwind_register_unsigned): Likewise.
5802         (frame_unwind_arch): Likewise.
5803
5804 2018-07-20  Maciej W. Rozycki  <macro@mips.com>
5805
5806         * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
5807         ISA maintenance.
5808
5809 2018-07-20  Maciej W. Rozycki  <macro@mips.com>
5810
5811         * mips-linux-nat.c (mips_linux_nat_target::read_description):
5812         Call `get_ptrace_pid' rather than extracting the ptrace PID by
5813         hand.
5814
5815 2018-07-20  Keith Seitz  <keiths@redhat.com>
5816
5817         * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
5818         m_main_subfile, m_comp_dir, m_producer, m_debugformat,
5819         m_compunit_symtab, m_language>: Add "m_" prefix.
5820         Update all uses.
5821         * buildsym.c: Update all uses.
5822
5823 2018-07-20  Tom Tromey  <tom@tromey.com>
5824
5825         * buildsym-legacy.h (record_line): Don't use record_line_ftype.
5826         * buildsym.h (record_line_ftype): Remove typedef.
5827
5828 2018-07-20  Tom Tromey  <tom@tromey.com>
5829
5830         * buildsym-legacy.h (augment_type_symtab): Don't declare.
5831         (end_expandable_symtab): Likewise.
5832         (end_symtab_get_static_block): Likewise.
5833         (end_symtab_from_static_block): Likewise.
5834         * buildsym-legacy.c (augment_type_symtab): Remove.
5835         (end_expandable_symtab): Remove.
5836         (end_symtab_get_static_block): Remove.
5837         (end_symtab_from_static_block): Remove.
5838
5839 2018-07-20  Tom Tromey  <tom@tromey.com>
5840
5841         * dwarf2read.c: Include buildsym.h.
5842         (struct dwarf2_cu) <builder>: New method.
5843         (fixup_go_packaging): Update.
5844         (process_full_comp_unit, process_full_type_unit): Update.  Don't
5845         use scoped_free_pendings.
5846         (using_directives): Add "cu" parameter, remove "language".
5847         (read_import_statement, setup_type_unit_groups, )
5848         (read_func_scope, read_lexical_block_scope)
5849         (dwarf2_record_block_ranges, read_namespace): Update.
5850         (lnp_state_machine::lnp_state_machine): Add cu parameter.
5851         (lnp_state_machine::handle_end_sequence): Update.
5852         (class lnp_state_machine) <m_cu>: New member.
5853         <m_record_line_callback>: Remove.
5854         <m_currently_recording_lines>: New member.
5855         (lnp_state_machine::handle_set_file): Update.
5856         (noop_record_line): Remove.
5857         (dwarf_record_line_p): Add cu parameter.
5858         (dwarf_record_line_1, dwarf_finish_line): Likewise.
5859         (lnp_state_machine::record_line)
5860         (lnp_state_machine::lnp_state_machine)
5861         (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5862         (dwarf_decode_lines): Update.
5863         (dwarf2_start_subfile): Add cu parameter.
5864         (dwarf2_start_symtab, new_symbol): Update.
5865         (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
5866         Remove dwarf2_per_objfile parameter.
5867         (dwarf_decode_macros): Update.
5868
5869 2018-07-20  Tom Tromey  <tom@tromey.com>
5870
5871         * stabsread.c (define_symbol): Update.
5872         * buildsym-legacy.h (get_buildsym_compunit): Declare.
5873         * dwarf2read.c (new_symbol): Update.
5874         * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
5875         * cp-namespace.c: Include buildsym.h.
5876         (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
5877         * buildsym-legacy.c (get_buildsym_compunit): New function.
5878
5879 2018-07-20  Tom Tromey  <tom@tromey.com>
5880
5881         * xcoffread.c: Include buildsym-legacy.h.
5882         * windows-nat.c: Include buildsym-legacy.h.
5883         * stabsread.c: Include buildsym-legacy.h.
5884         * mdebugread.c: Include buildsym-legacy.h.
5885         * buildsym-legacy.h: New file.
5886         * buildsym-legacy.c: New file, from buildsym.c.
5887         * go32-nat.c: Include buildsym-legacy.h.
5888         * dwarf2read.c: Include buildsym-legacy.h.
5889         * dbxread.c: Include buildsym-legacy.h.
5890         * cp-namespace.c: Include buildsym-legacy.h.
5891         * coffread.c: Include buildsym-legacy.h.
5892         * buildsym.h: Move some contents to buildsym-legacy.h.
5893         * buildsym.c: Include buildsym-legacy.h.  Move many functions to
5894         buildsym-legacy.c.
5895         * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
5896
5897 2018-07-20  Tom Tromey  <tom@tromey.com>
5898
5899         * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
5900         * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
5901         (buildsym_compunit::buildsym_compunit)
5902         (buildsym_compunit::~buildsym_compunit)
5903         (buildsym_compunit::get_macro_table): Define.
5904
5905 2018-07-20  Tom Tromey  <tom@tromey.com>
5906
5907         * buildsym.c (reset_symtab_globals): Remove.
5908         (buildsym_compunit::end_symtab_from_static_block): Update.
5909         (buildsym_compunit::augment_type_symtab): Update.
5910         (end_symtab_from_static_block): Call free_buildsym_compunit.
5911         (augment_type_symtab, end_symtab, end_expandable_symtab):
5912         Likewise.
5913
5914 2018-07-20  Tom Tromey  <tom@tromey.com>
5915
5916         * arch-utils.c: Do not include buildsym.h.
5917         * mipsread.c: Do not include buildsym.h.
5918         * machoread.c: Do not include buildsym.h.
5919         * elfread.c: Do not include buildsym.h.
5920
5921 2018-07-20  Tom Tromey  <tom@tromey.com>
5922
5923         * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
5924         initialization.
5925         (buildsym_compunit): Add new constructor.
5926         (struct buildsym_compunit) <get_last_source_file, finish_block,
5927         record_block_range, start_subfile, patch_subfile_names,
5928         push_subfile, pop_subfile, record_line, get_compunit_symtab,
5929         set_last_source_start_addr, get_last_source_start_addr,
5930         get_local_using_directives, set_local_using_directives,
5931         get_global_using_directives, outermost_context_p,
5932         get_current_context_stack, get_context_stack_depth,
5933         get_current_subfile, get_local_symbols, get_file_symbols,
5934         get_global_symbols, record_debugformat, record_producer,
5935         push_context, pop_context, end_symtab_get_static_block,
5936         end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
5937         New public methods.
5938         <record_pending_block, finish_block_internal, make_blockvector,
5939         watch_main_source_file_lossage, end_symtab_with_blockvector>: New
5940         private methods.
5941         Update all users.
5942
5943 2018-05-22  Tom Tromey  <tom@tromey.com>
5944
5945         * buildsym.c (record_pending_block): Move earlier.  Remove objfile
5946         parameter.
5947         (finish_block_internal): Update.
5948
5949 2018-07-20  Tom Tromey  <tom@tromey.com>
5950
5951         * buildsym.c (record_pending_block): Move earlier.  Remove objfile
5952         parameter.
5953         (finish_block_internal): Update.
5954
5955 2018-07-20  Tom Tromey  <tom@tromey.com>
5956
5957         * buildsym.h (EXTERN): Don't define or undef.
5958         * buildsym.c (EXTERN): Don't define.
5959
5960 2018-07-20  Tom Tromey  <tom@tromey.com>
5961
5962         * buildsym.c: Remove TODO comment.
5963
5964 2018-07-20  Tom Tromey  <tom@tromey.com>
5965
5966         * coffread.c (coff_symtab_read): Update.
5967         * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5968         (xcoff_new_init): Update.
5969         * mipsread.c (mipscoff_new_init): Update.
5970         * mdebugread.c (mdebug_build_psymtabs): Update.
5971         * elfread.c (elf_new_init): Update.
5972         * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
5973         Update.
5974         * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
5975         (coffstab_build_psymtabs, elfstab_build_psymtabs)
5976         (stabsect_build_psymtabs): Update.
5977         * buildsym.h (buildsym_init): Don't declare.
5978         * buildsym.c: Update comment.
5979         (prepare_for_building): Remove.
5980         (start_symtab, restart_symtab): Update.
5981         (reset_symtab_globals): Update comment.
5982         (buildsym_init): Remove.
5983
5984 2018-07-20  Tom Tromey  <tom@tromey.com>
5985
5986         * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
5987         * stabsread.c (patch_block_stabs, define_symbol, read_type)
5988         (read_enum_type, common_block_start, common_block_end)
5989         (cleanup_undefined_types_1, finish_global_stabs): Update.
5990         * mdebugread.c (psymtab_to_symtab_1): Update.
5991         * dwarf2read.c (fixup_go_packaging, read_func_scope)
5992         (read_lexical_block_scope, new_symbol): Update.
5993         * dbxread.c (process_one_symbol): Update.
5994         * coffread.c (coff_symtab_read, process_coff_symbol)
5995         (coff_read_enum_type): Update.
5996         * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
5997         declare.
5998         (get_local_symbols, get_file_symbols, get_global_symbols): New
5999         functions.
6000         * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
6001         m_global_symbols.
6002         <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
6003         (~scoped_free_pendings): Update.
6004         (finish_block, prepare_for_building, reset_symtab_globals)
6005         (end_symtab_get_static_block, end_symtab_with_blockvector)
6006         (augment_type_symtab, push_context): Update.
6007         (get_local_symbols, get_file_symbols, get_global_symbols): New
6008         functions.
6009         (buildsym_init): Update.
6010
6011 2018-07-20  Tom Tromey  <tom@tromey.com>
6012
6013         * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
6014         (process_full_type_unit): Likewise.
6015         (dwarf2_start_symtab): Set list_in_scope.
6016
6017 2018-07-20  Tom Tromey  <tom@tromey.com>
6018
6019         * dwarf2read.c (process_psymtab_comp_unit_reader)
6020         (build_type_psymtabs_reader): Do not set list_in_scope.
6021
6022 2018-07-20  Tom Tromey  <tom@tromey.com>
6023
6024         * buildsym.c (free_pendings): Remove.
6025         (add_symbol_to_list, scoped_free_pendings)
6026         (finish_block_internal, buildsym_init): Update.
6027
6028 2018-07-20  Tom Tromey  <tom@tromey.com>
6029
6030         * xcoffread.c (read_xcoff_symtab): Update.
6031         * dwarf2read.c (read_func_scope, read_lexical_block_scope):
6032         Update.
6033         * dbxread.c (process_one_symbol): Update.
6034         * coffread.c (coff_symtab_read): Update.
6035         * buildsym.h (finish_block): Update.
6036         * buildsym.c (finish_block): Remove "listhead" argument.
6037         (end_symtab_get_static_block): Update.
6038
6039 2018-07-20  Tom Tromey  <tom@tromey.com>
6040
6041         * buildsym.h (class scoped_free_pendings): Remove constructor.
6042         * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
6043         method.
6044         <m_pending_block_obstack, m_pending_blocks>: New members.
6045         (pending_block_obstack, pending_blocks): Remove.
6046         (scoped_free_pendings::scoped_free_pendings): Default.
6047         (~scoped_free_pendings): Update.
6048         (free_pending_blocks): Remove.
6049         (finish_block_internal, record_pending_block, make_blockvector)
6050         (end_symtab_get_static_block, augment_type_symtab, push_context)
6051         (buildsym_init): Update.
6052
6053 2018-07-20  Tom Tromey  <tom@tromey.com>
6054
6055         * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
6056         m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
6057         members.
6058         (pending_addrmap, pending_addrmap_obstack)
6059         (pending_addrmap_interesting): Remove.
6060         (scoped_free_pendings, record_block_range, make_blockvector)
6061         (prepare_for_building, reset_symtab_globals, buildsym_init):
6062         Update.
6063
6064 2018-07-20  Tom Tromey  <tom@tromey.com>
6065
6066         * xcoffread.c (process_linenos): Update.
6067         * stabsread.c (define_symbol, read_type, read_enum_type): Update.
6068         * mdebugread.c (psymtab_to_symtab_1): Update.
6069         * dwarf2read.c (setup_type_unit_groups)
6070         (lnp_state_machine::handle_set_file, dwarf_record_line_p)
6071         (lnp_state_machine::record_line, dwarf_decode_lines): Update.
6072         * dbxread.c (process_one_symbol): Update.
6073         * coffread.c (coff_symtab_read, enter_linenos)
6074         (process_coff_symbol): Update.
6075         * buildsym.h (current_subfile): Don't declare.
6076         (get_current_subfile): Declare.
6077         * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
6078         member.
6079         (start_subfile, free_buildsym_compunit, push_subfile)
6080         (prepare_for_building, start_symtab): Update.
6081         (get_current_subfile): New function.
6082
6083 2018-07-20  Tom Tromey  <tom@tromey.com>
6084
6085         * coffread.c (coff_symtab_read): Update.
6086         * xcoffread.c (read_xcoff_symtab): Update.
6087         * dwarf2read.c (new_symbol): Update.
6088         (read_func_scope, read_lexical_block_scope): Update.
6089         * dbxread.c (process_one_symbol): Update.
6090         * buildsym.h (context_stack, context_stack_depth): Don't declare.
6091         (outermost_context_p): Remove macro.
6092         (outermost_context_p, get_current_context_stack)
6093         (get_context_stack_depth): Declare.
6094         (pop_context): Return struct context_stack.
6095         * buildsym.c (struct buildsym_compunit) <m_context_stack: New
6096         member.
6097         (context_stack_size): Remove.
6098         (INITIAL_CONTEXT_STACK_SIZE): Remove.
6099         (prepare_for_building, end_symtab_get_static_block)
6100         (augment_type_symtab, push_context): Update.
6101         (pop_context): Return struct context_stack.
6102         (outermost_context_p, get_current_context_stack)
6103         (get_context_stack_depth): New functions.
6104         (buildsym_init): Update.
6105
6106 2018-07-20  Tom Tromey  <tom@tromey.com>
6107
6108         * rust-exp.y: Now a pure parser.  Update all rules.
6109         (%union): Move earlier.
6110         (current_parser, work_obstack): Remove globals.
6111         (rust_parser, ~rust_parser): Update.
6112         (class rust_parser) <copy_name, concat3, crate_name, super_name,
6113         lex_character, lex_number, lex_string, lex_identifier,
6114         rust_lookup_type, convert_params_to_types, convert_ast_to_type,
6115         convert_name, convert_params_to_expression,
6116         convert_ast_to_expression, ast_basic_type, ast_operation,
6117         ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
6118         ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
6119         ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
6120         ast_array_type, ast_slice_type, ast_reference_type,
6121         ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
6122         (rust_parse): Update.
6123         (rustyyerror, rustyylex): Add parser parameter.
6124         (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
6125         (rust_lex_stringish_test, rust_lex_test_sequence)
6126         (rust_lex_test_trailing_dot, rust_lex_test_completion)
6127         (rust_lex_test_push_back, rust_lex_tests): Update.
6128
6129 2018-07-19  Pedro Alves  <palves@redhat.com>
6130
6131         * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
6132         gdb::unique_xmalloc_ptr.
6133         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
6134         Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
6135         * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
6136         copy-initialization.
6137         * guile/scm-pretty-print.c (ppscm_print_children): Use
6138         gdb::unique_xmalloc_ptr instead of cleanups.
6139         (gdbscm_apply_val_pretty_printer): Remove cleanups.
6140         * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
6141         gdb::unique_xmalloc_ptr.
6142         * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
6143         Adjust to use gdb::unique_xmalloc_ptr.
6144         * guile/scm-utils.c (extract_arg): Adjust.
6145         * guile/scm-value.c (gdbscm_value_field): Adjust to use
6146         gdb::unique_xmalloc_ptr instead of a cleanup.
6147
6148 2018-07-19  Tom Tromey  <tom@tromey.com>
6149
6150         * utils.c (do_value_free_to_mark)
6151         (make_cleanup_value_free_to_mark): Remove.
6152         * utils.h (make_cleanup_value_free_to_mark): Remove.
6153
6154 2018-07-19  Pedro Alves  <palves@redhat.com>
6155
6156         * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
6157         forwarding reference.
6158
6159 2018-07-18  Pedro Alves  <palves@redhat.com>
6160
6161         * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
6162         gdbscm_wrap.  Use gdb::unique_xmalloc_ptr<char> instead of a
6163         cleanup.
6164
6165 2018-07-18  Pedro Alves  <palves@redhat.com>
6166
6167         * guile/guile-internal.h: Add comment about mixing GDB and Scheme
6168         exceptions.
6169         (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
6170         (gdbscm_wrap): New.
6171         * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
6172         directly instead of a cleanup.
6173         * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
6174         (vlscm_unop): ... this.  Reimplement using gdbscm_wrap.
6175         (vlscm_binop_gdbthrow): New, factored out from ...
6176         (vlscm_binop): ... this.  Reimplement using gdbscm_wrap.
6177         (vlscm_rich_compare): Use gdbscm_wrap.
6178         * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
6179         instead of a cleanup.
6180         (gdbscm_lookup_global_symbol): Use xfree directly instead of a
6181         cleanup.
6182         * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
6183         Use xfree directly instead of a cleanup.
6184         * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
6185         Adjust to use gdbscm_wrap and scoped_value_mark.
6186         (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
6187         (gdbscm_value_address, gdbscm_value_dereference)
6188         (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
6189         scoped_value_mark.
6190         (gdbscm_value_dynamic_type): Use scoped_value_mark.
6191         (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
6192         scoped_value_mark.
6193         (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
6194         gdbscm_wrap and scoped_value_mark.
6195         (gdbscm_value_to_string): Use xfree directly instead of a
6196         cleanup.  Move 'buffer' unique_ptr to TRY scope.
6197         (gdbscm_value_to_lazy_string): Use xfree directly instead of a
6198         cleanup.  Move 'buffer' unique_ptr to TRY scope.  Use
6199         scoped_value_mark.
6200         (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
6201         (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
6202         scoped_value_mark.
6203         (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
6204         gdbscm_wrap.
6205
6206 2018-07-18  Tom de Vries  <tdevries@suse.de>
6207
6208         * findvar.c (default_read_var_value): Also resolve dynamic type for
6209         LOC_OPTIMIZED_OUT vars.
6210
6211 2018-07-18  Maciej W. Rozycki  <macro@mips.com>
6212
6213         * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
6214         decoding.
6215
6216 2018-07-17  Tom Tromey  <tom@tromey.com>
6217
6218         * guile/scm-param.c (pascm_set_func, pascm_show_func)
6219         (compute_enum_list, pascm_set_param_value_x)
6220         (gdbscm_parameter_value): Update.
6221         * guile/guile-internal.h (gdbscm_scm_to_string): Update.
6222         (gdbscm_scm_to_host_string): Update.
6223         * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
6224         Update.
6225         * guile/scm-cmd.c (cmdscm_add_completion): Update.
6226         * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
6227         * guile/scm-string.c (gdbscm_scm_to_string): Return
6228         unique_xmalloc_ptr.
6229         (gdbscm_scm_to_host_string): Likewise.
6230
6231 2018-07-17  Tom Tromey  <tom@tromey.com>
6232
6233         * guile/guile.c (gdbscm_eval_from_control_command): Update.
6234         * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
6235         * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
6236         * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
6237         unique_xmalloc_ptr.
6238
6239 2018-07-17  Tom Tromey  <tom@tromey.com>
6240
6241         * guile/scm-param.c (pascm_signal_setshow_error): Update.
6242         * guile/guile-internal.h (gdbscm_exception_message_to_string):
6243         Update.
6244         * guile/scm-cmd.c (cmdscm_function): Update.
6245         * guile/scm-pretty-print.c
6246         (ppscm_print_exception_unless_memory_error): Update.
6247         * guile/scm-exception.c (gdbscm_exception_message_to_string):
6248         Return unique_xmalloc_ptr.
6249
6250 2018-07-17  Tom Tromey  <tom@tromey.com>
6251
6252         * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
6253         Use string_printf.
6254
6255 2018-07-17  Jim Wilson  <jimw@sifive.com>
6256
6257         * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
6258         set_gdbarch_decr_pc_after_break.  Call riscv_read_misa_reg always.
6259         (riscv_gdbarch_init): Delete local has_compressed_isa.  Delete now
6260         unecessary braces after EF_RISCV_RVC test.  Delete call to
6261         set_gdbarch_decr_pc_after_break.
6262
6263         * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
6264         RISCV_LAST_FP_REGNUM + 1.
6265         (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
6266
6267 2018-07-17  Tom Tromey  <tom@tromey.com>
6268
6269         * configure.ac: Remove --disable-gdbcli.
6270         * configure: Rebuild.
6271         * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
6272         (SUBDIR_CLI_CFLAGS): Remove.
6273         (SFILES): Use SUBDIR_CLI_SRCS.
6274         (COMMON_OBS): Use SUBDIR_CLI_OBS.
6275
6276 2018-07-17  Tom Tromey  <tom@tromey.com>
6277
6278         PR gdb/18624:
6279         * coffread.c (coff_symtab_read): Use scoped_free_pendings.
6280
6281 2018-07-16  Jim Wilson  <jimw@sifive.com>
6282
6283         * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
6284
6285 2018-07-16  Simon Marchi  <simon.marchi@ericsson.com>
6286
6287         * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
6288         variable.
6289         (libunwind_frame_sniffer): Likewise.
6290         (libunwind_frame_prev_register): Likewise.
6291         (libunwind_sigtramp_frame_sniffer): Likewise.
6292         * ia64-tdep.c (ia64_access_reg): Likewise.
6293         (ia64_access_rse_reg): Likewise.
6294         (ia64_libunwind_sigtramp_frame_this_id): Likewise.
6295         * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
6296
6297 2018-07-16  Simon Marchi  <simon.marchi@ericsson.com>
6298
6299         * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
6300
6301 2018-07-16  Simon Marchi  <simon.marchi@ericsson.com>
6302
6303         * remote-sim.c (gdbsim_target::close,
6304         gdbsim_target::mourn_inferior): Remove unused variables.
6305
6306 2018-07-16  Simon Marchi  <simon.marchi@polymtl.ca>
6307
6308         * ia64-tdep.c (ktab_buf): New global.
6309         (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
6310         (get_kernel_table): Adjust.
6311
6312 2018-07-16  Tom Tromey  <tom@tromey.com>
6313
6314         * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
6315         * dwarf2read.c (using_directives, new_symbol): Use
6316         outermost_context_p.
6317         * dbxread.c (process_one_symbol): Use outermost_context_p.
6318         * coffread.c (coff_symtab_read): Use outermost_context_p.
6319
6320 2018-07-16  Tom Tromey  <tom@tromey.com>
6321
6322         * dwarf2read.c (using_directives, read_func_scope)
6323         (read_lexical_block_scope): Update.
6324         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6325         * buildsym.h (local_using_directives, global_using_directives):
6326         Don't declare.
6327         (get_local_using_directives, set_local_using_directives)
6328         (get_global_using_directives): Declare.
6329         * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
6330         m_global_using_directives>: New members.
6331         (finish_block_internal, prepare_for_building)
6332         (reset_symtab_globals, end_symtab_get_static_block)
6333         (push_context): Update.
6334         (get_local_using_directives, set_local_using_directives)
6335         (get_global_using_directives): New functions.
6336         (buildsym_init): Update.
6337
6338 2018-07-16  Tom Tromey  <tom@tromey.com>
6339
6340         * xcoffread.c (xcoff_initial_scan): Don't call
6341         free_pending_blocks.
6342         * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
6343         * buildsym.h (class scoped_free_pendings): Add constructor.
6344         (free_pending_blocks): Don't declare.
6345         * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
6346         (free_pending_blocks): Now static.
6347
6348 2018-07-16  Tom Tromey  <tom@tromey.com>
6349
6350         * buildsym.h (push_subfile, pop_subfile): Update declarations.
6351         * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
6352         member.
6353         (struct subfile_stack): Remove.
6354         (subfile_stack): Remove.
6355         (push_subfile, pop_subfile, buildsym_init): Update.
6356
6357 2018-07-16  Tom Tromey  <tom@tromey.com>
6358
6359         * buildsym.c (push_subfile): Use gdb_assert.
6360         (pop_subfile): Use gdb_assert.
6361
6362 2018-07-16  Tom Tromey  <tom@tromey.com>
6363
6364         * buildsym.h (merge_symbol_lists): Remove.
6365         * buildsym.c (merge_symbol_lists): Remove.
6366
6367 2018-07-16  Tom Tromey  <tom@tromey.com>
6368
6369         * stabsread.c (scan_file_globals): Update comment.
6370         * stabsread.h (scan_file_globals): Move from buildsym.h.
6371         * buildsym.h (scan_file_globals): Move to stabsread.h.
6372
6373 2018-07-16  Tom Tromey  <tom@tromey.com>
6374
6375         * xcoffread.c (xcoff_new_init): Update.
6376         * mipsread.c (mipscoff_new_init): Update.
6377         * mdebugread.c (mdebug_build_psymtabs): Update.
6378         * elfread.c (elf_new_init): Update.
6379         * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
6380         (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
6381         * buildsym.h (buildsym_new_init): Don't declare.
6382         * buildsym.c (buildsym_new_init): Remove.
6383
6384 2018-07-16  Tom Tromey  <tom@tromey.com>
6385
6386         * stabsread.h (within_function): Move from buildsym.h.
6387         * stabsread.c (start_stabs): Clear within_function.
6388         * coffread.c (coff_start_symtab): Clear within_function.
6389         * buildsym.h (within_function): Move to stabsread.h.
6390         * buildsym.c (prepare_for_building): Update.
6391
6392 2018-07-16  Tom Tromey  <tom@tromey.com>
6393
6394         * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
6395         * dwarf2read.c (dwarf2_start_symtab): Don't set
6396         processing_gcc_compilation.
6397         * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
6398
6399 2018-07-16  Tom Tromey  <tom@tromey.com>
6400
6401         * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
6402         (next_symbol_text_func): Move from buildsym.h.
6403         * stabsread.c (hashname): Move from buildsym.c.
6404         * buildsym.h (HASHSIZE, symnum, next_symbol_text)
6405         (next_symbol_text_func, hashname): Move to stabsread.h.
6406         * buildsym.c: Don't include bcache.h
6407         (hashname): Move to stasbread.c.
6408
6409 2018-07-16  Tom Tromey  <tom@tromey.com>
6410
6411         * buildsym.h (context_stack_size): Don't declare.
6412         * buildsym.c (context_stack_size): New global.
6413
6414 2018-07-16  Tom Tromey  <tom@tromey.com>
6415
6416         * dbxread.c (processing_acc_compilation): New global.
6417         * buildsym.h (processing_acc_compilation): Don't declare.
6418
6419 2018-07-16  Tom Tromey  <tom@tromey.com>
6420
6421         * xcoffread.c (aix_process_linenos, complete_symtab): Update.
6422         * dbxread.c (read_ofile_symtab): Update.
6423         * coffread.c (coff_start_symtab, coff_end_symtab): Update.
6424         * buildsym.h (last_source_start_addr): Remove.
6425         (set_last_source_start_addr, get_last_source_start_addr):
6426         Declare.
6427         * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
6428         parameter.
6429         (struct buildsym_compunit) <m_last_source_start_addr>: New
6430         member.
6431         (prepare_for_building): Remove start_addr parameter.
6432         (start_symtab, restart_symtab, end_symtab_get_static_block)
6433         (end_symtab_with_blockvector): Update.
6434         (set_last_source_start_addr, get_last_source_start_addr): New
6435         functions.
6436
6437 2018-07-16  Tom Tromey  <tom@tromey.com>
6438
6439         * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
6440         member.
6441         (have_line_numbers): Remove.
6442         (record_line, prepare_for_building, end_symtab_get_static_block)
6443         (augment_type_symtab): Update.
6444
6445 2018-07-16  Tom Tromey  <tom@tromey.com>
6446
6447         * buildsym.c (~buildsym_compunit): Free the macro table.
6448         (struct buildsym_compunit) <get_macro_table, release_macros>: New
6449         methods.
6450         <m_pending_macros>: New member.
6451         (pending_macros): Remove.
6452         (~scoped_free_pendings, get_macro_table, prepare_for_building)
6453         (reset_symtab_globals, end_symtab_get_static_block)
6454         (end_symtab_with_blockvector, augment_type_symtab)
6455         (buildsym_init): Update.
6456
6457 2018-07-16  Tom Tromey  <tom@tromey.com>
6458
6459         * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
6460         parameter.
6461         (buildsym_compunit::set_last_source_file): New method.
6462         <m_last_source_file>: New member.
6463         (prepare_for_building): Remove "name" parameter.
6464         (start_symtab, restart_symtab, reset_symtab_globals): Update.
6465         (last_source_file): Remove.
6466         (set_last_source_file, get_last_source_file): Update.
6467
6468 2018-07-16  Tom Tromey  <tom@tromey.com>
6469
6470         * buildsym.c (prepare_for_building): Add assert.
6471
6472 2018-07-16  Tom Tromey  <tom@tromey.com>
6473
6474         * buildsym.c (~buildsym_compunit): Update.
6475         (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
6476         (start_subfile, patch_subfile_names)
6477         (end_symtab_with_blockvector): Update.
6478
6479 2018-07-16  Tom Tromey  <tom@tromey.com>
6480
6481         * buildsym.c (struct buildsym_compunit): Add constructor,
6482         destructor, initializers.
6483         (start_buildsym_compunit): Remove.
6484         (free_buildsym_compunit): Use "delete".
6485         (start_symtab, restart_symtab): Use "new".
6486
6487 2018-07-13  Simon Marchi  <simon.marchi@polymtl.ca>
6488
6489         * symfile.c (set_objfile_default_section_offset): Remove struct
6490         keyword.
6491
6492 2018-07-14  Stafford Horne  <shorne@gmail.com>
6493
6494         * (Responsible Maintainers): Add myself as or1k maintainer.
6495
6496 2018-07-13  Tom Tromey  <tom@tromey.com>
6497
6498         * symfile.c (set_objfile_default_section_offset): Use extra braces
6499         around initializer.
6500
6501 2018-07-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6502
6503         * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
6504         non-branching basr.
6505
6506 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6507
6508         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6509         unittests/cli-utils-selftests.c
6510         * unittests/cli-utils-selftests.c: New file.
6511
6512 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6513
6514         * NEWS: Mention new commands. Mention change to 'thread apply'.
6515
6516 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6517
6518         * thread.c (thr_try_catch_cmd): New function.
6519         (thread_apply_all_command): Handle qcs flags.
6520         (thread_apply_command): Handle qcs flags.
6521         (taas_command): New function.
6522         (tfaas_command): New function.
6523         (_initialize_thread): Update to setup the new commands 'taas
6524         and 'tfaas'. Change doc string for 'thread apply'.
6525
6526 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6527
6528         * stack.c: (trailing_outermost_frame): New function, mostly
6529         extracted from backtrace_command_1.
6530         (leading_innermost_frame): New function.
6531         (backtrace_command_1): Update to call trailing_outermost_frame.
6532         (frame_apply_command_count): New function.
6533         (frame_apply_level_command): New function.
6534         (frame_apply_all_command): New function.
6535         (frame_apply_command): New function.
6536         (faas_command): New function.
6537         (frame_cmd_list): New variable.
6538         (_initialize_stack): Update to setup the new commands 'frame apply'
6539         and 'faas'.
6540
6541 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6542
6543         * cli-utils.c (number_or_range_parser::get_number): Only handle
6544         numbers or convenience var as numbers.
6545         (parse_flags): New function.
6546         (parse_flags_qcs): New function.
6547         (number_or_range_parser::finished): Ensure parsing end is detected
6548         before end of string.
6549         * cli-utils.h (parse_flags): New function.
6550         (parse_flags_qcs): New function.
6551         (number_or_range_parser): Remove m_finished bool.
6552         (number_or_range_parser::skip_range): Set m_in_range to false.
6553
6554 2018-07-12  Sergio Durigan Junior  <sergiodj@redhat.com>
6555
6556         * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
6557         on Windows.
6558
6559 2018-07-11  Sergio Durigan Junior  <sergiodj@redhat.com>
6560             Jan Kratochvil  <jan.kratochvil@redhat.com>
6561             Paul Fertser  <fercerpav@gmail.com>
6562             Tsutomu Seki  <sekiriki@gmail.com>
6563             Pedro Alves  <palves@redhat.com>
6564
6565         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6566         'unittests/parse-connection-spec-selftests.c'.
6567         (COMMON_SFILES): Add 'common/netstuff.c'.
6568         (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
6569         * NEWS (Changes since GDB 8.2): Mention IPv6 support.
6570         * common/netstuff.c: New file.
6571         * common/netstuff.h: New file.
6572         * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
6573         (wait_for_connect): Update comment.  New parameter
6574         'gdb::optional<int> sock' instead of 'struct serial *scb'.
6575         Use 'sock' directly instead of 'scb->fd'.
6576         (try_connect): New function, with code from 'net_open'.
6577         (net_open): Rewrite main loop to deal with multiple
6578         sockets/addresses.  Handle IPv6-style hostnames; implement
6579         support for IPv6 connections.
6580         * unittests/parse-connection-spec-selftests.c: New file.
6581
6582 2018-07-11  Pedro Alves  <palves@redhat.com>
6583
6584         PR gdb/23377
6585         * remote.c (remote_target::remote_detach_pid): Call
6586         set_current_process.
6587
6588 2018-07-11  Pedro Alves  <palves@redhat.com>
6589
6590         * h8300-tdep.c (h8300_gdbarch_init): Remove
6591         set_gdbarch_ecoff_reg_to_regnum calls.
6592
6593 2018-07-11  Sergio Durigan Junior  <sergiodj@redhat.com>
6594
6595         PR c++/23373
6596         * c-typeprint.c (c_type_print_base_struct_union): Don't print
6597         offsets/sizes for static members of a class/struct.
6598
6599 2018-07-11  Alan Hayward  <alan.hayward@arm.com>
6600
6601         * target-descriptions.c (tdesc_register_bitsize): Rename.
6602         * target-descriptions.h (tdesc_register_bitsize): Likewise.
6603         * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
6604         * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
6605
6606 2018-07-10  Tom Tromey  <tom@tromey.com>
6607
6608         * breakpoint.c (moribund_locations): Now static and a
6609         std::vector.
6610         (breakpoint_init_inferior, moribund_breakpoint_here_p)
6611         (build_bpstat_chain, update_global_location_list)
6612         (breakpoint_retire_moribund): Update.
6613         * breakpoint.h (bp_location_p): Remove typedef.  Don't declare
6614         VEC.
6615
6616 2018-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6617
6618         * riscv-tdep.c (riscv_is_fp_regno_p): New function.
6619         (riscv_register_reggroup_p): Use new function, remove unneeded
6620         parenthesis.
6621         (riscv_push_dummy_call): Extend assert to compare against xlen or
6622         flen based on register type.
6623
6624 2018-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6625
6626         * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
6627
6628 2018-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
6629
6630         * remote.c (show_hardware_watchpoint_limit): New function.
6631         (show_hardware_watchpoint_length_limit): New function.
6632         (show_hardware_breakpoint_limit): New function.
6633         (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
6634         where appropriate, update help text.
6635
6636 2018-07-09  Tom Tromey  <tom@tromey.com>
6637
6638         * Makefile.in (CDEPS): Don't mention XM_CDEPS.
6639         (CLIBS): Don't mention NAT_CLIBS.
6640
6641 2018-07-09  Tom Tromey  <tom@tromey.com>
6642
6643         * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
6644         (LIBGDB_OBS, clean mostlyclean): Update.
6645         (gdb$(EXEEXT), insight$(EXEEXT)): Update.
6646
6647 2018-07-09  Tom Tromey  <tom@tromey.com>
6648
6649         * Makefile.in (%.c: %.y): Use ECHO_YACC.
6650         (%.c: %.l): Use ECHO_LEX.  Just fail if flex not available.
6651         * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
6652
6653 2018-07-09  Tom Tromey  <tom@tromey.com>
6654
6655         * Makefile.in (ALLDEPFILES): Remove exec.c.
6656         (COMMON_OBS): Remove exec.o.
6657         (COMMON_SFILES): Add exec.c.
6658
6659 2018-07-09  Tom Tromey  <tom@tromey.com>
6660
6661         * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
6662
6663 2018-07-09  Tom Tromey  <tom@tromey.com>
6664
6665         * Makefile.in (clean mostlyclean): Remove stamp-version.
6666         (version.c): Depend on stamp-version.
6667         (stamp-version): New rule, from version.c rule.
6668
6669 2018-07-09  Tom Tromey  <tom@tromey.com>
6670
6671         * Makefile.in (init.c): Depend on stamp-init.
6672         (stamp-init): New rule, from init.c rule.
6673         (clean mostlyclean): Remove stamp-init.
6674
6675 2018-07-09  Tom Tromey  <tom@tromey.com>
6676
6677         * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
6678         SUBDIR_GCC_COMPILE_SRCS.
6679
6680 2018-07-09  Tom Tromey  <tom@tromey.com>
6681
6682         * Makefile.in (init.c): Remove some unused sed rules.
6683
6684 2018-07-09  Tom Tromey  <tom@tromey.com>
6685
6686         * Makefile.in (TSOBS): Remove.
6687         (INIT_FILES): Update.
6688         (LIBGDB_OBS): Update.
6689         (COMMON_SFILES): Add inflow.c.
6690         (SFILES): Remove inflow.c.
6691
6692 2018-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
6693
6694         * contrib/gdb-add-index.sh ($dwarf5): New, use it.
6695
6696 2018-07-07  Simon Marchi  <simon.marchi@polymtl.ca>
6697
6698         * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
6699         get_saveloc_name, is_signal_frame_name, step_name,
6700         init_remote_name, create_addr_space_name,
6701         destroy_addr_space_name, search_unwind_table_name,
6702         find_dyn_list_name): Constify.
6703
6704 2018-07-05  Simon Marchi  <simon.marchi@polymtl.ca>
6705
6706         * darwin-nat.c (darwin_pthread_kill): New function.
6707         (darwin_resume_thread): Use darwin_pthread_kill.
6708
6709 2018-07-05  Tom de Vries  <tdevries@suse.de>
6710
6711         * macroexp.c (macro_buffer) <operator=>: New member function.
6712
6713 2018-07-04  Tom Tromey  <tom@tromey.com>
6714
6715         * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
6716
6717 2018-07-04  Simon Marchi  <simon.marchi@polymtl.ca>
6718
6719         * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
6720         * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
6721         * maint.c: Likewise.
6722         * top.c: Likewise.
6723
6724 2018-07-04  Joel Brobecker  <brobecker@adacore.com>
6725
6726         * NEWS: Create a new section for the next release branch.
6727         Rename the section of the current branch, now that it has
6728         been cut.
6729
6730 2018-07-04  Joel Brobecker  <brobecker@adacore.com>
6731
6732         GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
6733         * version.in: Bump version to 8.2.50.DATE-git.
6734
6735 2018-07-04  Vyacheslav Barinov  <v.barinov@samsung.com>
6736             Pedro Alves  <palves@redhat.com>
6737
6738         * linux-nat.c (linux_init_ptrace): Rename to ...
6739         (linux_init_ptrace_procfs): ... this.  Call
6740         linux_proc_init_warnings.
6741         (linux_nat_target::post_attach)
6742         (linux_nat_target::post_startup_inferior): Adjust.
6743         * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
6744         * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
6745
6746 2018-07-04  Tom de Vries  <tdevries@suse.de>
6747
6748         * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
6749         check ...
6750         (read_comp_unit_head): ... here.
6751
6752 2018-07-03  Tom Tromey  <tom@tromey.com>
6753
6754         * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
6755         (stop_tracing, tstatus_command)
6756         (find_matching_tracepoint_location, merge_uploaded_tracepoints)
6757         (print_one_static_tracepoint_marker): Update.
6758         * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
6759         std::vector.
6760         * breakpoint.h (breakpoint_p): Remove typedef.  Don't declare
6761         VEC.
6762         (all_tracepoints, static_tracepoints_here): Return std::vector.
6763
6764 2018-07-03  Tom Tromey  <tom@tromey.com>
6765
6766         * common/ptid.c (ptid_equal): Remove.
6767         * common/ptid.h (ptid_equal): Don't declare.
6768         * ada-tasks.c: Update.
6769         * breakpoint.c: Update.
6770         * common/agent.c: Update.
6771         * corelow.c: Update.
6772         * darwin-nat-info.c: Update.
6773         * darwin-nat.c: Update.
6774         * dcache.c: Update.
6775         * dtrace-probe.c: Update.
6776         * dummy-frame.c: Update.
6777         * fbsd-nat.c: Update.
6778         * frame.c: Update.
6779         * gdbthread.h: Update.
6780         * gnu-nat.c: Update.
6781         * go32-nat.c: Update.
6782         * inf-loop.c: Update.
6783         * inf-ptrace.c: Update.
6784         * infcall.c: Update.
6785         * infcmd.c: Update.
6786         * inflow.c: Update.
6787         * infrun.c: Update.
6788         * linux-fork.c: Update.
6789         * linux-nat.c: Update.
6790         * linux-thread-db.c: Update.
6791         * mi/mi-cmd-var.c: Update.
6792         * mi/mi-interp.c: Update.
6793         * mi/mi-main.c: Update.
6794         * nto-procfs.c: Update.
6795         * ppc-linux-tdep.c: Update.
6796         * procfs.c: Update.
6797         * python/py-inferior.c: Update.
6798         * python/py-record-btrace.c: Update.
6799         * python/py-record.c: Update.
6800         * ravenscar-thread.c: Update.
6801         * regcache.c: Update.
6802         * remote-sim.c: Update.
6803         * remote.c: Update.
6804         * sol-thread.c: Update.
6805         * solib.c: Update.
6806         * target.c: Update.
6807         * tui/tui-stack.c: Update.
6808         * varobj.c: Update.
6809         * windows-nat.c: Update.
6810         * windows-tdep.c: Update.
6811
6812 2018-07-03  Tom Tromey  <tom@tromey.com>
6813
6814         * common/ptid.c (ptid_match): Remove.
6815         * common/ptid.h (ptid_match): Don't declare.
6816         * fbsd-nat.c: Update.
6817         * infcmd.c: Update.
6818         * infrun.c: Update.
6819         * linux-nat.c: Update.
6820         * record-btrace.c: Update.
6821         * regcache.c: Update.
6822         * remote.c: Update.
6823
6824 2018-07-03  Tom Tromey  <tom@tromey.com>
6825
6826         * common/ptid.c (ptid_tid_p): Remove.
6827         * common/ptid.h (ptid_tid_p): Don't declare.
6828         * sol-thread.c: Update.
6829
6830 2018-07-03  Tom Tromey  <tom@tromey.com>
6831
6832         * common/ptid.c (ptid_lwp_p): Remove.
6833         * common/ptid.h (ptid_lwp_p): Don't declare.
6834         * fbsd-nat.c: Update.
6835         * linux-nat.c: Update.
6836         * nat/linux-procfs.c: Update.
6837         * nat/x86-linux-dregs.c: Update.
6838         * sol-thread.c: Update.
6839
6840 2018-07-03  Tom Tromey  <tom@tromey.com>
6841
6842         * common/ptid.c (ptid_is_pid): Remove.
6843         * common/ptid.h (ptid_is_pid): Don't declare.
6844         * infrun.c: Update.
6845         * linux-nat.c: Update.
6846         * mi/mi-interp.c: Update.
6847         * remote.c: Update.
6848         * thread.c: Update.
6849
6850 2018-07-03  Tom Tromey  <tom@tromey.com>
6851
6852         * common/ptid.c (ptid_get_tid): Remove.
6853         * common/ptid.h (ptid_get_tid): Don't declare.
6854         * ada-tasks.c: Update.
6855         * aix-thread.c: Update.
6856         * bsd-uthread.c: Update.
6857         * darwin-nat.c: Update.
6858         * fbsd-nat.c: Update.
6859         * i386-darwin-nat.c: Update.
6860         * infrun.c: Update.
6861         * linux-tdep.c: Update.
6862         * nto-procfs.c: Update.
6863         * ppc-ravenscar-thread.c: Update.
6864         * python/py-infthread.c: Update.
6865         * ravenscar-thread.c: Update.
6866         * sol-thread.c: Update.
6867         * sparc-ravenscar-thread.c: Update.
6868         * windows-nat.c: Update.
6869
6870 2018-07-03  Tom Tromey  <tom@tromey.com>
6871
6872         * common/ptid.c (ptid_get_lwp): Remove.
6873         * common/ptid.h (ptid_get_lwp): Don't declare.
6874         * aarch64-linux-nat.c: Update.
6875         * ada-tasks.c: Update.
6876         * aix-thread.c: Update.
6877         * amd64-linux-nat.c: Update.
6878         * arm-linux-nat.c: Update.
6879         * corelow.c: Update.
6880         * fbsd-nat.c: Update.
6881         * fbsd-tdep.c: Update.
6882         * gnu-nat.c: Update.
6883         * i386-cygwin-tdep.c: Update.
6884         * i386-gnu-nat.c: Update.
6885         * i386-linux-nat.c: Update.
6886         * ia64-linux-nat.c: Update.
6887         * inf-ptrace.c: Update.
6888         * infrun.c: Update.
6889         * linux-fork.c: Update.
6890         * linux-nat.c: Update.
6891         * linux-tdep.c: Update.
6892         * linux-thread-db.c: Update.
6893         * mips-linux-nat.c: Update.
6894         * nat/aarch64-linux-hw-point.c: Update.
6895         * nat/aarch64-linux.c: Update.
6896         * nat/linux-btrace.c: Update.
6897         * nat/linux-osdata.c: Update.
6898         * nat/linux-procfs.c: Update.
6899         * nat/x86-linux-dregs.c: Update.
6900         * obsd-nat.c: Update.
6901         * ppc-fbsd-nat.c: Update.
6902         * ppc-linux-nat.c: Update.
6903         * procfs.c: Update.
6904         * python/py-infthread.c: Update.
6905         * ravenscar-thread.c: Update.
6906         * remote.c: Update.
6907         * s390-linux-nat.c: Update.
6908         * sol-thread.c: Update.
6909         * sol2-tdep.c: Update.
6910         * spu-linux-nat.c: Update.
6911         * x86-linux-nat.c: Update.
6912         * xtensa-linux-nat.c: Update.
6913
6914 2018-07-03  Tom Tromey  <tom@tromey.com>
6915
6916         * common/ptid.c (ptid_get_pid): Remove.
6917         * common/ptid.h (ptid_get_pid): Don't declare.
6918         * aarch64-linux-nat.c: Update.
6919         * ada-lang.c: Update.
6920         * aix-thread.c: Update.
6921         * alpha-bsd-nat.c: Update.
6922         * amd64-fbsd-nat.c: Update.
6923         * amd64-linux-nat.c: Update.
6924         * arm-linux-nat.c: Update.
6925         * arm-nbsd-nat.c: Update.
6926         * auxv.c: Update.
6927         * break-catch-syscall.c: Update.
6928         * breakpoint.c: Update.
6929         * bsd-uthread.c: Update.
6930         * corelow.c: Update.
6931         * ctf.c: Update.
6932         * darwin-nat.c: Update.
6933         * fbsd-nat.c: Update.
6934         * fbsd-tdep.c: Update.
6935         * gcore.c: Update.
6936         * gnu-nat.c: Update.
6937         * hppa-nbsd-nat.c: Update.
6938         * hppa-obsd-nat.c: Update.
6939         * i386-fbsd-nat.c: Update.
6940         * ia64-linux-nat.c: Update.
6941         * inf-ptrace.c: Update.
6942         * infcmd.c: Update.
6943         * inferior.c: Update.
6944         * inferior.h: Update.
6945         * inflow.c: Update.
6946         * infrun.c: Update.
6947         * linux-fork.c: Update.
6948         * linux-nat.c: Update.
6949         * linux-tdep.c: Update.
6950         * linux-thread-db.c: Update.
6951         * m68k-bsd-nat.c: Update.
6952         * mi/mi-interp.c: Update.
6953         * mi/mi-main.c: Update.
6954         * mips-linux-nat.c: Update.
6955         * mips-nbsd-nat.c: Update.
6956         * mips64-obsd-nat.c: Update.
6957         * nat/aarch64-linux-hw-point.c: Update.
6958         * nat/aarch64-linux.c: Update.
6959         * nat/linux-btrace.c: Update.
6960         * nat/linux-osdata.c: Update.
6961         * nat/linux-procfs.c: Update.
6962         * nat/x86-linux-dregs.c: Update.
6963         * nto-procfs.c: Update.
6964         * obsd-nat.c: Update.
6965         * ppc-linux-nat.c: Update.
6966         * ppc-nbsd-nat.c: Update.
6967         * ppc-obsd-nat.c: Update.
6968         * proc-service.c: Update.
6969         * procfs.c: Update.
6970         * python/py-inferior.c: Update.
6971         * python/py-infthread.c: Update.
6972         * ravenscar-thread.c: Update.
6973         * record.c: Update.
6974         * remote-sim.c: Update.
6975         * remote.c: Update.
6976         * rs6000-nat.c: Update.
6977         * s390-linux-nat.c: Update.
6978         * sh-nbsd-nat.c: Update.
6979         * sol-thread.c: Update.
6980         * sparc-nat.c: Update.
6981         * sparc64-tdep.c: Update.
6982         * spu-linux-nat.c: Update.
6983         * spu-tdep.c: Update.
6984         * target-debug.h: Update.
6985         * target.c: Update.
6986         * thread.c: Update.
6987         * tid-parse.c: Update.
6988         * tracefile-tfile.c: Update.
6989         * vax-bsd-nat.c: Update.
6990         * windows-nat.c: Update.
6991         * x86-linux-nat.c: Update.
6992         * x86-nat.c: Update.
6993
6994 2018-07-03  Tom Tromey  <tom@tromey.com>
6995
6996         * common/ptid.c (pid_to_ptid): Remove.
6997         * common/ptid.h (pid_to_ptid): Don't declare.
6998         * aix-thread.c: Update.
6999         * arm-linux-nat.c: Update.
7000         * common/ptid.c: Update.
7001         * common/ptid.h: Update.
7002         * corelow.c: Update.
7003         * ctf.c: Update.
7004         * darwin-nat.c: Update.
7005         * fbsd-nat.c: Update.
7006         * fork-child.c: Update.
7007         * gnu-nat.c: Update.
7008         * go32-nat.c: Update.
7009         * inf-ptrace.c: Update.
7010         * infcmd.c: Update.
7011         * inferior.c: Update.
7012         * infrun.c: Update.
7013         * linux-fork.c: Update.
7014         * linux-nat.c: Update.
7015         * nat/aarch64-linux-hw-point.c: Update.
7016         * nat/fork-inferior.c: Update.
7017         * nat/x86-linux-dregs.c: Update.
7018         * nto-procfs.c: Update.
7019         * obsd-nat.c: Update.
7020         * procfs.c: Update.
7021         * progspace.c: Update.
7022         * remote.c: Update.
7023         * rs6000-nat.c: Update.
7024         * s390-linux-nat.c: Update.
7025         * sol-thread.c: Update.
7026         * spu-linux-nat.c: Update.
7027         * target.c: Update.
7028         * top.c: Update.
7029         * tracefile-tfile.c: Update.
7030         * windows-nat.c: Update.
7031
7032 2018-07-03  Tom Tromey  <tom@tromey.com>
7033
7034         * common/ptid.h (ptid_build): Don't declare.
7035         * common/ptid.c (ptid_build): Remove.
7036         * aix-thread.c: Update.
7037         * bsd-kvm.c: Update.
7038         * bsd-uthread.c: Update.
7039         * common/agent.c: Update.
7040         * common/ptid.c: Update.
7041         * common/ptid.h: Update.
7042         * corelow.c: Update.
7043         * darwin-nat.c: Update.
7044         * fbsd-nat.c: Update.
7045         * gnu-nat.c: Update.
7046         * linux-fork.c: Update.
7047         * linux-nat.c: Update.
7048         * linux-thread-db.c: Update.
7049         * nat/linux-osdata.c: Update.
7050         * nat/linux-procfs.c: Update.
7051         * nto-procfs.c: Update.
7052         * obsd-nat.c: Update.
7053         * proc-service.c: Update.
7054         * procfs.c: Update.
7055         * ravenscar-thread.c: Update.
7056         * remote-sim.c: Update.
7057         * remote.c: Update.
7058         * sol-thread.c: Update.
7059         * target.c: Update.
7060         * windows-nat.c: Update.
7061
7062 2018-07-03  Tom Tromey  <tom@tromey.com>
7063
7064         * infrun.c (follow_exec): Use exit_inferior_silent.
7065         * inferior.c (exit_inferior_num_silent): Remove.
7066         * inferior.h (exit_inferior_num_silent): Don't declare.
7067
7068 2018-07-03  Tom Tromey  <tom@tromey.com>
7069
7070         PR cli/23340:
7071         * darwin-nat.c (darwin_attach_pid): Reset inferior and
7072         inferior_ptid on error.
7073
7074 2018-07-02  Maciej W. Rozycki  <macro@mips.com>
7075             Simon Marchi  <simon.marchi@polymtl.ca>
7076
7077         PR tdep/8282
7078         * disasm.h (gdb_disassembler): Add
7079         `m_disassembler_options_holder'. member
7080         * disasm.c (get_all_disassembler_options): New function.
7081         (gdb_disassembler::gdb_disassembler): Use it.
7082         (gdb_buffered_insn_length_init_dis): Likewise.
7083         (gdb_buffered_insn_length): Adjust accordingly.
7084         (set_disassembler_options): Handle options with arguments.
7085         (show_disassembler_options_sfunc): Likewise.  Add a leading new
7086         line if showing options with descriptions.
7087         (disassembler_options_completer): Adapt to using the
7088         `disasm_options_and_args_t' structure.
7089         * mips-tdep.c (mips_disassembler_options): New variable.
7090         (mips_disassembler_options_o32): Likewise.
7091         (mips_disassembler_options_n32): Likewise.
7092         (mips_disassembler_options_n64): Likewise.
7093         (gdb_print_insn_mips): Don't set `disassembler_options'.
7094         (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
7095         functions.
7096         (mips_gdbarch_init): Always set `gdbarch_print_insn' to
7097         `gdb_print_insn_mips'.  Set `gdbarch_disassembler_options',
7098         `gdbarch_disassembler_options_implicit' and
7099         `gdbarch_valid_disassembler_options'.
7100         * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
7101         `disasm_options_and_args_t' structure.
7102         * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
7103         method.
7104         (valid_disassembler_options): Switch from `disasm_options_t' to
7105         the `disasm_options_and_args_t' structure.
7106         * NEWS: Document `set disassembler-options' support for the MIPS
7107         target.
7108         * gdbarch.h: Regenerate.
7109         * gdbarch.c: Regenerate.
7110
7111 2018-07-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7112
7113         * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
7114
7115 2018-06-29  Joel Brobecker  <brobecker@adacore.com>
7116
7117         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
7118         parameter in call to amd64_target_description.
7119         * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
7120         * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
7121         (amd64fbsd_init_abi): Likewise.
7122         * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7123         * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7124         * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7125         * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
7126
7127 2018-06-29  Pedro Alves  <palves@redhat.com>
7128
7129         * gdb/amd64-tdep.h (amd64_create_target_description): Add
7130         "segments" parameter.
7131         * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
7132         (_initialize_amd64_tdep): Update call to
7133         amd64_create_target_description.
7134         (amd64_target_description): Add "segments" parameter.  Adjust
7135         the implementation to use it.
7136         * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
7137         call to amd64_create_target_description.
7138         * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
7139         * gdb/arch/amd64.h (amd64_create_target_description): Add
7140         "segments" register.
7141         * gdb/arch/amd64.c (amd64_create_target_description): Add
7142         "segments" parameter.  Call create_feature_i386_64bit_segments
7143         only if SEGMENTS is true.
7144         * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
7145         call to amd64_create_target_description.
7146
7147 2018-06-29  Pedro Alves  <palves@redhat.com>
7148
7149         * thread.c (thread_target_id_str): New, factored out from ...
7150         (print_thread_info_1): ... here.  Use it to compute the max
7151         "Target Id" column width.
7152
7153 2018-06-29  Pedro Alves  <palves@redhat.com>
7154
7155         * remote.c (remote_target::extra_thread_info): Delete
7156         'display_buf' and 'n' locals.  from the cache, regardless of
7157         packet mechanims is in use.  Use cache for qThreadExtra and qP
7158         methods too.
7159
7160 2018-06-29  Pedro Alves  <palves@redhat.com>
7161
7162         * blockframe.c (find_pc_sect_containing_function): New function.
7163         * breakpoint.c (print_breakpoint_location): Don't call
7164         find_pc_sect_function.
7165         * linespec.c (create_sals_line_offset): Record the location's
7166         symbol in the sal.
7167         * linespec.c (convert_address_location_to_sals): Fill in sal's
7168         symbol with find_pc_sect_containing_function.
7169         * symtab.c (find_function_start_sal): Rename to ...
7170         (find_function_start_sal_1): ... this.
7171         (find_function_start_sal): Reimplement as wrapper around
7172         find_function_start_sal_1, and use
7173         find_pc_sect_containing_function to fill in the sal's symbol.
7174         (find_function_start_sal(symbol*, bool)): Adjust.
7175         * symtab.h (find_pc_function, find_pc_sect_function): Adjust
7176         comments.
7177         (find_pc_sect_containing_function): Declare.
7178
7179 2018-06-29  Pedro Alves  <palves@redhat.com>
7180
7181         * inline-frame.c (stopped_by_user_bp_inline_frame): Return
7182         true if the the location has no symbol.
7183
7184 2018-06-28  Tom Tromey  <tom@tromey.com>
7185
7186         * NEWS: Mention --enable-codesign.
7187         * silent-rules.mk (ECHO_SIGN): New variable.
7188         * configure.ac: Add --enable-codesign.
7189         * configure: Rebuild.
7190         * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
7191         (gdb$(EXEEXT)): Optionally invoke codesign.
7192
7193 2018-06-28  Pedro Alves  <palves@redhat.com>
7194
7195         * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
7196         comments.
7197         (switch_to_thread_no_regs): Adjust comment.
7198         * infcmd.c (stop_pc): Delete.
7199         (post_create_inferior, info_program_command): Replace references
7200         to stop_pc with references to thread_info->suspend.stop_pc.
7201         * inferior.h (stop_pc): Delete declaration.
7202         * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
7203         (handle_inferior_event_1, handle_signal_stop)
7204         (process_event_stop_test, keep_going_stepped_thread)
7205         (handle_step_into_function, handle_step_into_function_backward)
7206         (print_stop_location): Replace references to stop_pc with
7207         references to thread_info->suspend.stop_pc.
7208         (struct infcall_suspend_state) <stop_pc>: Delete field.
7209         (save_infcall_suspend_state, restore_infcall_suspend_state):
7210         Remove references to inf_stat->stop_pc.
7211         * linux-fork.c (fork_load_infrun_state): Likewise.
7212         * record-btrace.c (record_btrace_set_replay): Likewise.
7213         * record-full.c (record_full_goto_entry): Likewise.
7214         * remote.c (print_one_stopped_thread): Likewise.
7215         * target.c (target_resume): Extend comment.
7216         * thread.c (set_executing_thread): New.
7217         (set_executing): Use it.
7218         (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
7219         Remove references to stop_pc.
7220
7221 2018-06-28  Pedro Alves  <palves@redhat.com>
7222
7223         * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
7224         Moving fetching stop_pc until after ecs->event_thread is refreshed.
7225
7226 2018-06-28  Tom Tromey  <tom@tromey.com>
7227
7228         * coffread.c (coff_symfile_finish): Update.
7229         * xcoffread.c (xcoff_symfile_finish): Update.
7230         * elfread.c (elf_symfile_finish): Update.
7231         * symfile.h (dwarf2_free_objfile): Don't declare.
7232         * dwarf2read.c (_initialize_dwarf2_read): Use
7233         register_objfile_data_with_cleanup.
7234         (dwarf2_free_objfile): Now static.  Change signature.
7235
7236 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
7237
7238         * symfile.c (add_symbol_file_command, _initialize_symfile): Add
7239         option "-o" to add-symbol-file-load to add an offset to each
7240         section's load address.
7241         * symfile.c (set_objfile_default_section_offset): New function.
7242
7243 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
7244
7245         * symfile.c (add_symbol_file_command): Make sure that sections
7246         with the same name are sorted in the same order.
7247
7248 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
7249
7250         * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
7251         require the second argument.  If omitted, load sections at the
7252         addresses specified in the file.
7253
7254 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
7255
7256         * symfile.c (symbol_file_command, symbol_file_add_main_1)
7257         (_initialize_symfile): Add option "-o" to symbol-file to add an
7258         offset to each section of the symbol file.
7259
7260 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
7261
7262         * MAINTAINERS (Write After Approval): Add Petr Tesarik.
7263
7264 2018-06-27  Tom Tromey  <tom@tromey.com>
7265
7266         * stack.c (_initialize_stack): Update "func" help text.
7267
7268 2018-06-27  Tom Tromey  <tom@tromey.com>
7269
7270         * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
7271         std::vector.
7272         (unwind_infopy_str, pyuw_create_unwind_info)
7273         (unwind_infopy_add_saved_register, pyuw_sniffer)
7274         (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
7275         Update.
7276         (struct saved_reg): Add constructor.
7277         <value>: Now a gdbpy_ref<>.
7278
7279 2018-06-27  Tom Tromey  <tom@tromey.com>
7280
7281         * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
7282
7283 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
7284
7285         * gdb-gdb.py.in: Format using autopep8.
7286
7287 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
7288
7289         * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
7290         (type_lookup_function): Recognize CORE_ADDR values.
7291
7292 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
7293
7294         * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
7295         print tag_name.
7296
7297 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
7298
7299         * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
7300         <__lt__>: Add.
7301
7302 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
7303
7304         * gdb-gdb.py: Move to...
7305         * gdb-gdb.py.in: ... here.
7306         * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
7307         * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
7308         dependencies.
7309         (distclean): Remove gdb-gdb.py when cleaning.
7310         (gdb-gdb.py, gdb-gdb.gdb): New rules.
7311         * configure: Re-generate.
7312
7313 2018-06-27  Pedro Alves  <palves@redhat.com>
7314
7315         * proc-service.c (get_ps_regcache): New.
7316         (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7317         (ps_lsetfpregs): Use it.
7318
7319 2018-06-27  Omair Javaid  <omair.javaid@linaro.org>
7320
7321         PR gdb/21695
7322         * dwarf2read.c (lnp_state_machine::check_line_address): Update
7323         declaration.
7324         (dwarf_decode_lines_1): Adjust.
7325
7326 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
7327
7328         * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
7329         override.
7330         <info_proc>: Likewise.
7331
7332 2018-06-26  Joel Brobecker  <brobecker@adacore.com>
7333
7334         * windows-nat.c (do_windows_fetch_inferior_registers): Rename
7335         to windows_fetch_one_register, and only handle the case of
7336         fetching one register.  Move the code that reloads the context
7337         and iterates over all registers if R is negative to...
7338         (windows_nat_target::fetch_registers): ... here.
7339         (do_windows_store_inferior_registers): Rename to
7340         windows_store_one_register, and only handle the case of storing
7341         one register.  Move the code that handles the case where r is
7342         negative to...
7343         (windows_nat_target::store_registers) ... here.
7344
7345 2018-06-26  Tom Tromey  <tom@tromey.com>
7346
7347         PR rust/22574:
7348         * typeprint.c (whatis_exp): Allow ptype/o for Rust.
7349         * rust-lang.c (rust_print_struct_def): Add podata parameter.
7350         Update.
7351         (rust_internal_print_type): Add podata parameter.
7352         (rust_print_type): Update.
7353
7354 2018-06-26  Tom Tromey  <tom@tromey.com>
7355
7356         * typeprint.h (struct print_offset_data) <update, finish,
7357         maybe_print_hole>: New methods.
7358         <indentation>: New constant.
7359         * typeprint.c (print_offset_data::indentation): Define.
7360         (print_offset_data::maybe_print_hole, print_offset_data::update)
7361         (print_offset_data::finish): Move from c-typeprint.c and rename.
7362         * c-typeprint.c (OFFSET_SPC_LEN): Remove.
7363         (print_spaces_filtered_with_print_options): Update.
7364         (c_print_type_union_field_offset, maybe_print_hole)
7365         (c_print_type_struct_field_offset): Move to typeprint.c and
7366         rename.
7367         (c_type_print_base_struct_union): Update.
7368
7369 2018-06-25  Pedro Alves  <palves@redhat.com>
7370
7371         * gdbthread.h (thread_info_ref, delete_thread)
7372         (delete_thread_silent, first_thread_of_inferior)
7373         (any_thread_of_inferior, switch_to_thread)
7374         (enable_thread_stack_temporaries)
7375         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7376         (get_last_thread_stack_temporary)
7377         (value_in_thread_stack_temporaries, can_access_registers_thread):
7378         Spell out "struct thread_info" instead of just "thread_info".
7379         * inferior.h (notice_new_inferior): Likewise.
7380
7381 2018-06-25  Pedro Alves  <palves@redhat.com>
7382
7383         * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
7384         pass thread_info pointer to delete_thread.
7385         (windows_nat_target::detach): Pass inferior pointer to
7386         detach_inferior.
7387         * aix-thread.c (sync_threadlists): Pass thread_info pointer to
7388         delete_thread.
7389         * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
7390         * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
7391         and pass a thread_info pointer to delete_thread.
7392         * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
7393         pass thread_info pointer to delete_thread.
7394         * go32-nat.c (go32_nat_target::mourn_inferior): Remove
7395         delete_thread_silent call.
7396         * procfs.c (procfs_target::detach): Pass inferior pointer to
7397         detach_inferior.
7398         (procfs_target::wait): Pass thread_info pointer to delete_thread.
7399         * remote-sim.c (gdbsim_target::mourn_inferior): Remove
7400         delete_thread_silent call.
7401         * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
7402         pass thread_info pointer to delete_thread.
7403         (windows_nat_target::detach): Pass inferior pointer to
7404         delete_inferior.
7405
7406 2018-06-22  Alan Hayward  <alan.hayward@arm.com>
7407
7408         * regcache.c (readable_regcache::read_part): Fix asserts.
7409         (reg_buffer::raw_collect_part): New function.
7410         (regcache::write_part): Fix asserts.
7411         (reg_buffer::raw_supply_part): New function.
7412         (regcache::transfer_regset_register): New helper function.
7413         (regcache::transfer_regset): Call new functions.
7414         (regcache_supply_regset): Use gdb_byte*.
7415         (regcache::supply_regset): Likewise.
7416         (regcache_collect_regset): Likewise.
7417         (regcache::collect_regset): Likewise.
7418         * regcache.h (reg_buffer::raw_collect_part): New declaration.
7419         (reg_buffer::raw_supply_part): Likewise.
7420         (regcache::transfer_regset_register): Likewise.
7421         (regcache::transfer_regset): Use gdb_byte*.
7422
7423 2018-06-22  Alan Hayward  <alan.hayward@arm.com>
7424
7425         * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
7426
7427 2018-06-21  Pedro Alves  <palves@redhat.com>
7428
7429         * ada-lang.h (ada_get_task_number): Take a thread_info pointer
7430         instead of a ptid_t.  All callers adjusted.
7431         * ada-tasks.c (ada_get_task_number): Likewise.  All callers
7432         adjusted.
7433         (print_ada_task_info, display_current_task_id, task_command_1):
7434         Adjust.
7435         * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
7436         inferior_thread.
7437         (breakpoint_kind): Adjust.
7438         (remove_breakpoints_pid): Rename to ...
7439         (remove_breakpoints_inf): ... this.  Adjust to take an inferior
7440         pointer.  All callers adjusted.
7441         (bpstat_clear_actions): Use inferior_thread.
7442         (get_bpstat_thread): New.
7443         (bpstat_do_actions): Use it.
7444         (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
7445         to take a thread_info pointer.  All callers adjusted.
7446         (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
7447         (breakpoint_re_set_thread): Use inferior_thread.
7448         * breakpoint.h (struct inferior): Forward declare.
7449         (bpstat_stop_status): Update.
7450         (remove_breakpoints_pid): Delete.
7451         (remove_breakpoints_inf): New.
7452         * bsd-uthread.c (bsd_uthread_target::wait)
7453         (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
7454         * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
7455         (maint_btrace_packet_history_cmd)
7456         (maint_btrace_clear_packet_history_cmd): Adjust.
7457         (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
7458         inferior_thread.
7459         * cli/cli-interp.c: Include "inferior.h".
7460         * common/refcounted-object.h (struct
7461         refcounted_object_ref_policy): New.
7462         * compile/compile-object-load.c: Include gdbthread.h.
7463         (store_regs): Use inferior_thread.
7464         * corelow.c (core_target::close): Use current_inferior.
7465         (core_target_open): Adjust to use first_thread_of_inferior and use
7466         the current inferior.
7467         * ctf.c (ctf_target::close): Adjust to use current_inferior.
7468         * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
7469         <thread>: ... this new field.  All references adjusted.
7470         (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
7471         Take a thread_info pointer instead of a ptid_t.
7472         * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
7473         (dummy_frame_discard, register_dummy_frame_dtor): Take a
7474         thread_info pointer instead of a ptid_t.
7475         * elfread.c: Include "inferior.h".
7476         (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
7477         Use inferior_thread.
7478         * eval.c (evaluate_subexp): Likewise.
7479         * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
7480         inferior_thread.
7481         * gdb_proc_service.h (struct thread_info): Forward declare.
7482         (struct ps_prochandle) <ptid>: Delete, replaced by ...
7483         <thread>: ... this new field.  All references adjusted.
7484         * gdbarch.h, gdbarch.c: Regenerate.
7485         * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
7486         'thread' parameter.  All implementations and callers adjusted.
7487         * gdbthread.h (thread_info) <set_running>: New method.
7488         (delete_thread, delete_thread_silent): Take a thread_info pointer
7489         instead of a ptid.
7490         (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
7491         (first_thread_of_process): Delete, replaced by ...
7492         (first_thread_of_inferior): ... this new function.  All callers
7493         adjusted.
7494         (any_live_thread_of_process): Delete, replaced by ...
7495         (any_live_thread_of_inferior): ... this new function.  All callers
7496         adjusted.
7497         (switch_to_thread, switch_to_no_thread): Declare.
7498         (is_executing): Delete.
7499         (enable_thread_stack_temporaries): Update comment.
7500         <enable_thread_stack_temporaries>: Take a thread_info pointer
7501         instead of a ptid_t.  Incref the thread.
7502         <~enable_thread_stack_temporaries>: Decref the thread.
7503         <m_ptid>: Delete
7504         <m_thr>: New.
7505         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7506         (get_last_thread_stack_temporary)
7507         (value_in_thread_stack_temporaries, can_access_registers_thread):
7508         Take a thread_info pointer instead of a ptid_t.  All callers
7509         adjusted.
7510         * infcall.c (get_call_return_value): Use inferior_thread.
7511         (run_inferior_call): Work with thread pointers instead of ptid_t.
7512         (call_function_by_hand_dummy): Work with thread pointers instead
7513         of ptid_t.  Use thread_info_ref.
7514         * infcmd.c (proceed_thread_callback): Access thread's state
7515         directly.
7516         (ensure_valid_thread, ensure_not_running): Use inferior_thread,
7517         access thread's state directly.
7518         (continue_command): Use inferior_thread.
7519         (info_program_command): Use find_thread_ptid and access thread
7520         state directly.
7521         (proceed_after_attach_callback): Use thread state directly.
7522         (notice_new_inferior): Take a thread_info pointer instead of a
7523         ptid_t.  All callers adjusted.
7524         (exit_inferior): Take an inferior pointer instead of a pid.  All
7525         callers adjusted.
7526         (exit_inferior_silent): New.
7527         (detach_inferior): Delete.
7528         (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
7529         (gdb_inferior_id_to_pid, in_inferior_list): Delete.
7530         (detach_inferior_command, kill_inferior_command): Use
7531         find_inferior_id instead of valid_gdb_inferior_id and
7532         gdb_inferior_id_to_pid.
7533         (inferior_command): Use inferior and thread pointers.
7534         * inferior.h (struct thread_info): Forward declare.
7535         (notice_new_inferior): Take a thread_info pointer instead of a
7536         ptid_t.  All callers adjusted.
7537         (detach_inferior): Delete declaration.
7538         (exit_inferior, exit_inferior_silent): Take an inferior pointer
7539         instead of a pid.  All callers adjusted.
7540         (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
7541         (valid_gdb_inferior_id): Delete.
7542         * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
7543         (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
7544         (struct displaced_step_inferior_state) <pid>: Delete, replaced by
7545         ...
7546         <inf>: ... this new field.
7547         <step_ptid>: Delete, replaced by ...
7548         <step_thread>: ... this new field.
7549         (get_displaced_stepping_state): Take an inferior pointer instead
7550         of a pid.  All callers adjusted.
7551         (displaced_step_in_progress_any_inferior): Adjust.
7552         (displaced_step_in_progress_thread): Take a thread pointer instead
7553         of a ptid_t.  All callers adjusted.
7554         (displaced_step_in_progress, add_displaced_stepping_state): Take
7555         an inferior pointer instead of a pid.  All callers adjusted.
7556         (get_displaced_step_closure_by_addr): Adjust.
7557         (remove_displaced_stepping_state): Take an inferior pointer
7558         instead of a pid.  All callers adjusted.
7559         (displaced_step_prepare_throw, displaced_step_prepare)
7560         (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
7561         All callers adjusted.
7562         (start_step_over): Adjust.
7563         (infrun_thread_ptid_changed): Remove bit updating ptids in the
7564         displaced step queue.
7565         (do_target_resume): Adjust.
7566         (fetch_inferior_event): Use inferior_thread.
7567         (context_switch, get_inferior_stop_soon): Take an
7568         execution_control_state pointer instead of a ptid_t.  All callers
7569         adjusted.
7570         (switch_to_thread_cleanup): Delete.
7571         (stop_all_threads): Use scoped_restore_current_thread.
7572         * inline-frame.c: Include "gdbthread.h".
7573         (inline_state) <inline_state>: Take a thread pointer instead of a
7574         ptid_t.  All callers adjusted.
7575         <ptid>: Delete, replaced by ...
7576         <thread>: ... this new field.
7577         (find_inline_frame_state): Take a thread pointer instead of a
7578         ptid_t.  All callers adjusted.
7579         (skip_inline_frames, step_into_inline_frame)
7580         (inline_skipped_frames, inline_skipped_symbol): Take a thread
7581         pointer instead of a ptid_t.  All callers adjusted.
7582         * inline-frame.h (skip_inline_frames, step_into_inline_frame)
7583         (inline_skipped_frames, inline_skipped_symbol): Likewise.
7584         * linux-fork.c (delete_checkpoint_command): Adjust to use thread
7585         pointers directly.
7586         * linux-nat.c (get_detach_signal): Likewise.
7587         * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
7588         (thread_db_notice_clone): Adjust.
7589         (thread_db_find_new_threads_silently)
7590         (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
7591         a thread pointer instead of a ptid_t.  All callers adjusted.
7592         * mi/mi-cmd-var.c: Include "inferior.h".
7593         (mi_cmd_var_update_iter): Update to use thread pointers.
7594         * mi/mi-interp.c (mi_new_thread): Update to use the thread's
7595         inferior directly.
7596         (mi_output_running_pid, mi_inferior_count): Delete, bits factored
7597         out to ...
7598         (mi_output_running): ... this new function.
7599         (mi_on_resume_1): Adjust to use it.
7600         (mi_user_selected_context_changed): Adjust to use inferior_thread.
7601         * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
7602         directly.
7603         (interrupt_thread_callback): : Adjust to use thread and inferior
7604         pointers.
7605         * proc-service.c: Include "gdbthread.h".
7606         (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
7607         * progspace-and-thread.c: Include "inferior.h".
7608         * progspace.c: Include "inferior.h".
7609         * python/py-exitedevent.c (create_exited_event_object): Adjust to
7610         hold a reference to an inferior_object.
7611         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
7612         inferior_thread.
7613         * python/py-inferior.c (struct inferior_object): Give the type a
7614         tag name instead of a typedef.
7615         (python_on_normal_stop): No need to check if the current thread is
7616         listed.
7617         (inferior_to_inferior_object): Change return type to
7618         inferior_object.  All callers adjusted.
7619         (find_thread_object): Delete, bits factored out to ...
7620         (thread_to_thread_object): ... this new function.
7621         * python/py-infthread.c (create_thread_object): Use
7622         inferior_to_inferior_object.
7623         (thpy_is_stopped): Use thread pointer directly.
7624         (gdbpy_selected_thread): Use inferior_thread.
7625         * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
7626         field, replaced with ...
7627         <thread>: ... this new field.  All users adjusted.
7628         (btpy_insn_or_gap_new): Drop const.
7629         (btpy_list_new): Take a thread pointer instead of a ptid_t.  All
7630         callers adjusted.
7631         * python/py-record.c: Include "gdbthread.h".
7632         (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7633         a ptid_t.  All callers adjusted.
7634         (gdbpy_current_recording): Use inferior_thread.
7635         * python/py-record.h (recpy_record_object) <ptid>: Delete
7636         field, replaced with ...
7637         <thread>: ... this new field.  All users adjusted.
7638         (recpy_element_object) <ptid>: Delete
7639         field, replaced with ...
7640         <thread>: ... this new field.  All users adjusted.
7641         (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7642         a ptid_t.  All callers adjusted.
7643         * python/py-threadevent.c: Include "gdbthread.h".
7644         (get_event_thread): Use thread_to_thread_object.
7645         * python/python-internal.h (struct inferior_object): Forward
7646         declare.
7647         (find_thread_object, find_inferior_object): Delete declarations.
7648         (thread_to_thread_object, inferior_to_inferior_object): New
7649         declarations.
7650         * record-btrace.c: Include "inferior.h".
7651         (require_btrace_thread): Use inferior_thread.
7652         (record_btrace_frame_sniffer)
7653         (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
7654         (get_thread_current_frame): Use scoped_restore_current_thread and
7655         switch_to_thread.
7656         (get_thread_current_frame): Use thread pointer directly.
7657         (record_btrace_replay_at_breakpoint): Use thread's inferior
7658         pointer directly.
7659         * record-full.c: Include "inferior.h".
7660         * regcache.c: Include "gdbthread.h".
7661         (get_thread_arch_regcache): Use the inferior's address space
7662         directly.
7663         (get_thread_regcache, registers_changed_thread): New.
7664         * regcache.h (get_thread_regcache(thread_info *thread)): New
7665         overload.
7666         (registers_changed_thread): New.
7667         (remote_target) <remote_detach_1>: Swap order of parameters.
7668         (remote_add_thread): <remote_add_thread>: Return the new thread.
7669         (get_remote_thread_info(ptid_t)): New overload.
7670         (remote_target::remote_notice_new_inferior): Use thread pointers
7671         directly.
7672         (remote_target::process_initial_stop_replies): Use
7673         thread_info::set_running.
7674         (remote_target::remote_detach_1, remote_target::detach)
7675         (extended_remote_target::detach): Adjust.
7676         * stack.c (frame_show_address): Use inferior_thread.
7677         * target-debug.h (target_debug_print_thread_info_pp): New.
7678         * target-delegates.c: Regenerate.
7679         * target.c (default_thread_address_space): Delete.
7680         (memory_xfer_partial_1): Use current_inferior.
7681         (target_detach): Use current_inferior.
7682         (target_thread_address_space): Delete.
7683         (generic_mourn_inferior): Use current_inferior.
7684         * target.h (struct target_ops) <thread_address_space>: Delete.
7685         (target_thread_address_space): Delete.
7686         * thread.c (init_thread_list): Use ALL_THREADS_SAFE.  Use thread
7687         pointers directly.
7688         (delete_thread_1, delete_thread, delete_thread_silent): Take a
7689         thread pointer instead of a ptid_t.  Adjust all callers.
7690         (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
7691         (first_thread_of_process): Delete, replaced by ...
7692         (first_thread_of_inferior): ... this new function.  All callers
7693         adjusted.
7694         (any_thread_of_process): Rename to ...
7695         (any_thread_of_inferior): ... this, and take an inferior pointer.
7696         (any_live_thread_of_process): Rename to ...
7697         (any_live_thread_of_inferior): ... this, and take an inferior
7698         pointer.
7699         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7700         (value_in_thread_stack_temporaries)
7701         (get_last_thread_stack_temporary): Take a thread pointer instead
7702         of a ptid_t.  Adjust all callers.
7703         (thread_info::set_running): New.
7704         (validate_registers_access): Use inferior_thread.
7705         (can_access_registers_ptid): Rename to ...
7706         (can_access_registers_thread): ... this, and take a thread
7707         pointer.
7708         (print_thread_info_1): Adjust to compare thread pointers instead
7709         of ptids.
7710         (switch_to_no_thread, switch_to_thread): Make extern.
7711         (scoped_restore_current_thread::~scoped_restore_current_thread):
7712         Use m_thread pointer directly.
7713         (scoped_restore_current_thread::scoped_restore_current_thread):
7714         Use inferior_thread.
7715         (thread_command): Use thread pointer directly.
7716         (thread_num_make_value_helper): Use inferior_thread.
7717         * top.c (execute_command): Use inferior_thread.
7718         * tui/tui-interp.c: Include "inferior.h".
7719         * varobj.c (varobj_create): Use inferior_thread.
7720         (value_of_root_1): Use find_thread_global_id instead of
7721         global_thread_id_to_ptid.
7722
7723 2018-06-21  Alan Hayward  <alan.hayward@arm.com>
7724
7725         * regcache.c (readable_regcache::read_part): Avoid memcpy when
7726         possible.
7727         (regcache::write_part): Likewise.
7728         (readable_regcache::cooked_read_part): Update comment.
7729         (readable_regcache::cooked_write_part): Likewise.
7730         * regcache.h: (readable_regcache::read_part): Likewise.
7731         (regcache::write_part): Likewise.
7732
7733 2018-06-21  Richard Bunt  <richard.bunt@arm.com>
7734             Dirk Schubert  <dirk.schubert@arm.com>
7735
7736         * aarch64-linux-nat.c (post_attach): New.
7737         (aarch64_linux_nat_target::post_attach): Override post_attach to
7738         record the number of hardware debug registers.
7739
7740 2018-06-20  Tom Tromey  <tom@tromey.com>
7741
7742         * python/py-param.c (add_setshow_generic): Make parameters const.
7743         (parmpy_init): Update.
7744
7745 2018-06-20  Simon Marchi  <simon.marchi@polymtl.ca>
7746
7747         * regcache.h (regcache_cooked_read_ftype): Rename to...
7748         (register_read_ftype): ...this, change type to function_view.
7749         (class reg_buffer) <save>: Remove src parameter.
7750         (readonly_detached_regcache) <readonly_detached_regcache>: Make
7751         parameter non-const in first overload.  Remove src parameter in
7752         second overload.
7753         * regcache.c (do_cooked_read): Remove.
7754         (readonly_detached_regcache::readonly_detached_regcache): Make
7755         parameter non-const, adjust call to other constructor.
7756         (reg_buffer::save): Remove src parameter.
7757         * frame.c (do_frame_register_read): Remove.
7758         (frame_save_as_regcache): Use lambda function.
7759         * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
7760         parameter to ppu2spu_data *.
7761         (ppu2spu_sniffer): Use lambda function.
7762
7763 2018-06-20  Simon Marchi  <simon.marchi@polymtl.ca>
7764
7765         * record-full.c (record_full_target::insert_breakpoint): Remove
7766         "struct" keyword, add const.
7767
7768 2018-06-19  Simon Marchi  <simon.marchi@ericsson.com>
7769
7770         * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
7771         PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
7772         * configure.ac: Remove AC_PREREQ, add missing quoting.
7773         * gnulib/configure.ac: Modernize usage of
7774         AC_INIT/AM_INIT_AUTOMAKE.  Remove AC_PREREQ.
7775         * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
7776         (AUTOMAKE_VERSION): Bump to 1.15.1.
7777         * configure: Re-generate.
7778         * config.in: Re-generate.
7779         * aclocal.m4: Re-generate.
7780         * gnulib/aclocal.m4: Re-generate.
7781         * gnulib/config.in: Re-generate.
7782         * gnulib/configure: Re-generate.
7783         * gnulib/import/Makefile.in: Re-generate.
7784
7785 2018-06-19  Pedro Alves  <palves@redhat.com>
7786
7787         * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
7788         (lookup_minimal_symbol_by_pc_section): ... here with
7789         gdb_assert_not_reached added.
7790
7791 2018-06-19  Pedro Alves  <palves@redhat.com>
7792
7793         * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
7794         parameter with a block parameter.  Compare location's block symbol
7795         with the frame's block instead of addresses.
7796         (skip_inline_frames): Pass the current block instead of the
7797         frame's address.  Break out as soon as we determine the frame
7798         should not be skipped.
7799
7800 2018-06-18  Tom Tromey  <tom@tromey.com>
7801
7802         * solib-aix.c (solib_aix_get_section_offsets): Return
7803         unique_xmalloc_ptr.
7804         (solib_aix_solib_create_inferior_hook): Update.
7805
7806 2018-06-18  Tom Tromey  <tom@tromey.com>
7807
7808         * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
7809
7810 2018-06-18  Tom Tromey  <tom@tromey.com>
7811
7812         * solib-frv.c (frv_relocate_main_executable): Use
7813         unique_xmalloc_ptr.
7814         * solib-dsbt.c (dsbt_relocate_main_executable): Use
7815         unique_xmalloc_ptr.
7816
7817 2018-06-18  Tom Tromey  <tom@tromey.com>
7818
7819         * objfiles.h (inhibit_section_map_updates): Update.
7820         (resume_section_map_updates, resume_section_map_updates_cleanup):
7821         Remove.
7822         * solib-svr4.c (svr4_handle_solib_event): Update.
7823         * objfiles.c (inhibit_section_map_updates): Return
7824         scoped_restore_tmpl<int>.
7825         (resume_section_map_updates, resume_section_map_updates_cleanup):
7826         Remove.
7827
7828 2018-06-18  Tom Tromey  <tom@tromey.com>
7829
7830         * valprint.h (read_string): Update.
7831         * valprint.c (read_string): Change type of "buffer".
7832         (val_print_string): Update.
7833         * python/py-value.c (valpy_string): Update.
7834         * language.h (struct language_defn) <la_get_string>: Change
7835         type of "buffer".
7836         (default_get_string, c_get_string): Update.
7837         * language.c (default_get_string): Change type of "buffer".
7838         * guile/scm-value.c (gdbscm_value_to_string): Update.
7839         * c-lang.c (c_get_string): Change type of "buffer".
7840
7841 2018-06-18  Tom Tromey  <tom@tromey.com>
7842
7843         * ser-mingw.c (struct pipe_state_destroyer): New.
7844         (pipe_state_up): New typedef.
7845         (cleanup_pipe_state): Remove.
7846         (pipe_windows_open): Use pipe_state_up.  Don't release argv.
7847
7848 2018-06-18  Tom Tromey  <tom@tromey.com>
7849
7850         * rust-lang.h (rust_yyerror): Don't declare.
7851         * rust-lang.c (rust_language_defn): Update.
7852         * rust-exp.y (yyerror): Now static.
7853         * parse.c (parse_exp_in_context_1): Update.
7854         * p-lang.h (p_yyerror): Don't declare.
7855         * p-lang.c (p_language_defn): Update.
7856         * p-exp.y (yyerror): Now static.
7857         * opencl-lang.c (opencl_language_defn): Update.
7858         * objc-lang.c (objc_language_defn): Update.
7859         * m2-lang.h (m2_yyerror): Don't declare.
7860         * m2-lang.c (m2_language_defn): Update.
7861         * m2-exp.y (yyerror): Now static.
7862         * language.h (struct language_defn) <la_error>: Remove.
7863         * language.c (unk_lang_error): Remove.
7864         (unknown_language_defn, auto_language_defn): Remove.
7865         * go-lang.h (go_yyerror): Don't declare.
7866         * go-lang.c (go_language_defn): Update.
7867         * go-exp.y (yyerror): Now static.
7868         * f-lang.h (f_yyerror): Don't declare.
7869         * f-lang.c (f_language_defn): Update.
7870         * f-exp.y (yyerror): Now static.
7871         * d-lang.h (d_yyerror): Don't declare.
7872         * d-lang.c (d_language_defn): Update.
7873         * d-exp.y (yyerror): Now static.
7874         * c-lang.h (c_yyerror): Don't declare.
7875         * c-lang.c (c_language_defn, cplus_language_defn)
7876         (asm_language_defn, minimal_language_defn): Update.
7877         * c-exp.y (yyerror): Now static.
7878         * ada-lang.h (ada_yyerror): Don't declare.
7879         * ada-lang.c (ada_language_defn): Update.
7880         * ada-exp.y (yyerror): Now static.
7881
7882 2018-06-18  Alan Hayward  <alan.hayward@arm.com>
7883
7884         * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
7885         (store_sveregs_to_thread): Likewise.
7886         (aarch64_linux_fetch_inferior_registers): Check for SVE.
7887         (aarch64_linux_store_inferior_registers): Likewise.
7888         * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
7889         function.
7890         (aarch64_sve_regs_copy_to_regcache): Likewise.
7891         (aarch64_sve_regs_copy_from_regcache): Likewise.
7892         * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
7893         declaration.
7894         (aarch64_sve_regs_copy_to_regcache): Likewise.
7895         (aarch64_sve_regs_copy_from_regcache): Likewise.
7896         (sve_context): Structure from Linux headers.
7897         (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
7898         (SVE_SIG_ZREG_SIZE): Likewise.
7899         (SVE_SIG_PREG_SIZE): Likewise.
7900         (SVE_SIG_FFR_SIZE): Likewise.
7901         (SVE_SIG_REGS_OFFSET): Likewise.
7902         (SVE_SIG_ZREGS_OFFSET): Likewise.
7903         (SVE_SIG_ZREG_OFFSET): Likewise.
7904         (SVE_SIG_ZREGS_SIZE): Likewise.
7905         (SVE_SIG_PREGS_OFFSET): Likewise.
7906         (SVE_SIG_PREG_OFFSET): Likewise.
7907         (SVE_SIG_PREGS_SIZE): Likewise.
7908         (SVE_SIG_FFR_OFFSET): Likewise.
7909         (SVE_SIG_REGS_SIZE): Likewise.
7910         (SVE_SIG_CONTEXT_SIZE): Likewise.
7911         (SVE_PT_REGS_MASK): Likewise.
7912         (SVE_PT_REGS_FPSIMD): Likewise.
7913         (SVE_PT_REGS_SVE): Likewise.
7914         (SVE_PT_VL_INHERIT): Likewise.
7915         (SVE_PT_VL_ONEXEC): Likewise.
7916         (SVE_PT_REGS_OFFSET): Likewise.
7917         (SVE_PT_FPSIMD_OFFSET): Likewise.
7918         (SVE_PT_FPSIMD_SIZE): Likewise.
7919         (SVE_PT_SVE_ZREG_SIZE): Likewise.
7920         (SVE_PT_SVE_PREG_SIZE): Likewise.
7921         (SVE_PT_SVE_FFR_SIZE): Likewise.
7922         (SVE_PT_SVE_FPSR_SIZE): Likewise.
7923         (SVE_PT_SVE_FPCR_SIZE): Likewise.
7924         (__SVE_SIG_TO_PT): Likewise.
7925         (SVE_PT_SVE_OFFSET): Likewise.
7926         (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
7927         (SVE_PT_SVE_ZREG_OFFSET): Likewise.
7928         (SVE_PT_SVE_ZREGS_SIZE): Likewise.
7929         (SVE_PT_SVE_PREGS_OFFSET): Likewise.
7930         (SVE_PT_SVE_PREG_OFFSET): Likewise.
7931         (SVE_PT_SVE_PREGS_SIZE): Likewise.
7932         (SVE_PT_SVE_FFR_OFFSET): Likewise.
7933         (SVE_PT_SVE_FPSR_OFFSET): Likewise.
7934         (SVE_PT_SVE_FPCR_OFFSET): Likewise.
7935         (SVE_PT_SVE_SIZE): Likewise.
7936         (SVE_PT_SIZE): Likewise.
7937         (HAS_SVE_STATE): New define.
7938
7939 2018-06-18  Alan Hayward  <alan.hayward@arm.com>
7940
7941         * nat/aarch64-sve-linux-sigcontext.h: New file.
7942         * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
7943         new files.
7944         (SVE_VQ_MIN): Likewise.
7945         (SVE_VQ_MAX): Likewise.
7946         (SVE_VL_MIN): Likewise.
7947         (SVE_VL_MAX): Likewise.
7948         (SVE_NUM_ZREGS): Likewise.
7949         (SVE_NUM_PREGS): Likewise.
7950         (sve_vl_valid): Likewise.
7951         (struct user_sve_header): Likewise.
7952
7953 2018-06-16  Andrew Burgess  <andrew.burgess@embecosm.com>
7954             Richard Bunt <Richard.Bunt@arm.com>
7955
7956         * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
7957         was requested by GDB.
7958
7959 2018-06-15  Tom de Vries  <tdevries@suse.de>
7960
7961         * MAINTAINERS (Write After Approval): Add Tom de Vries.
7962
7963 2018-06-14  Simon Marchi  <simon.marchi@polymtl.ca>
7964
7965         * gnulib/update-gnulib.sh: Print expected versions of
7966         autoconf/aclocal.
7967
7968 2018-06-14  Simon Marchi  <simon.marchi@ericsson.com>
7969
7970         * arch-utils.c (default_type_align): Use type_length_units.
7971         * gdbtypes.c (type_align): Use type_length_units.
7972
7973 2018-06-14  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7974
7975         * cli/cli-script.c (_initialize_cli_script): Fix online documentation
7976         of 'define' command.
7977
7978 2018-06-14  Tom de Vries  <tdevries@suse.de>
7979
7980         PR cli/22573
7981         * infcmd.c (print_return_value_1): Use get_user_print_options instead of
7982         get_no_prettyformat_print_options.
7983
7984 2018-06-13  Simon Marchi  <simon.marchi@ericsson.com>
7985
7986         * sparc-nat.h: Include target.h.
7987         * sparc64-linux-nat.c (class sparc64_linux_nat_target)
7988         <fetch_registers>: Remove this argument in function call.
7989         <store_registers>: Remove this argument in function call, remove
7990         extra semicolon.
7991         <low_forget_process>: Call sparc64_forget_process instead of
7992         sparc_forget_process.
7993
7994 2018-06-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7995
7996         * procfs.c (_initialize_procfs): Use add_inf_child_target.
7997         (procfs_target::make_corefile_notes): Adjust to new
7998         target_read_alloc return type.
7999
8000 2018-06-12  Andrew Burgess  <andrew.burgess@embecosm.com>
8001             Stephen Roberts  <stephen.roberts@arm.com>
8002
8003         PR gdb/22882
8004         * infrun.c (fetch_inferior_event): If GDB is not proceeding then
8005         run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
8006         Move should_notify_stop local into more inner scope.
8007
8008 2018-06-12  Andrew Burgess  <andrew.burgess@embecosm.com>
8009             Stephen Roberts  <stephen.roberts@arm.com>
8010
8011         PR gdb/22882
8012         * infrun.c (resume_1): Add call to mark_async_event_handler.
8013
8014 2018-06-12  Andrew Burgess  <andrew.burgess@embecosm.com>
8015
8016         * infrun.c (do_target_wait): Change old version of $pc printed.
8017
8018 2018-06-11  Simon Marchi  <simon.marchi@ericsson.com>
8019
8020         * dwarf2read.c (read_index_from_section): Rename to...
8021         (read_gdb_index_from_section): ... this, update all callers.
8022         (dwarf2_read_index): Rename to...
8023         (dwarf2_read_gdb_index): ... this, update all callers.
8024
8025 2018-06-11  John David Anglin  <danglin@gcc.gnu.org>
8026
8027         * hppa-linux-nat.c
8028         (hppa_linux_nat_target::fetch_inferior_registers): Rename to
8029         hppa_linux_nat_target::fetch_registers.
8030
8031 2018-06-11  Alan Hayward  <alan.hayward@arm.com>
8032
8033         * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
8034         * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
8035         (AARCH64_DWARF_SVE_FFR): Likewise.
8036         (AARCH64_DWARF_SVE_P0): Likewise.
8037         (AARCH64_DWARF_SVE_Z0): Likewise.
8038
8039 2018-06-11  Alan Hayward  <alan.hayward@arm.com>
8040
8041         * common/common-regcache.h (raw_compare): New function.
8042         * regcache.c (regcache::raw_compare): Likewise.
8043         * regcache.h (regcache::raw_compare): New declaration.
8044
8045 2018-06-11  Alan Hayward  <alan.hayward@arm.com>
8046
8047         * common/common-regcache.h (reg_buffer_common): New structure.
8048         * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
8049         (reg_buffer::raw_supply): Likewise.
8050         (reg_buffer::raw_supply_integer): Likewise.
8051         (reg_buffer::raw_supply_zeroed): Likewise.
8052         (reg_buffer::raw_collect): Likewise.
8053         (reg_buffer::raw_collect_integer): Likewise.
8054         * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
8055         (reg_buffer::raw_supply): Likewise.
8056         (reg_buffer::raw_supply_integer): Likewise.
8057         (reg_buffer::raw_supply_zeroed): Likewise.
8058         (reg_buffer::raw_collect): Likewise.
8059         (reg_buffer::raw_collect_integer): Likewise.
8060
8061 2018-06-10  Tom Tromey  <tom@tromey.com>
8062
8063         * remote.c (stop_reply_p): Remove typedef.  Don't declare queue.
8064         (class remote_state) <stop_reply_queue>: Now std::vector.
8065         (remote_state::~remote_state)
8066         (remote_target::stop_reply_queue_length): Update.
8067         (struct queue_iter_param, remove_child_of_pending_fork)
8068         (struct check_pending_event_prevents_wildcard_vcont_callback_data)
8069         (check_pending_event_prevents_wildcard_vcont_callback)
8070         (remove_stop_reply_for_inferior)
8071         (remove_stop_reply_of_remote_state)
8072         (remote_notif_remove_once_on_match)
8073         (stop_reply_match_ptid_and_ws)
8074         (remote_kill_child_of_pending_fork): Remove.
8075         (remote_target::remove_new_fork_children)
8076         (remote_target::check_pending_events_prevent_wildcard_vcont)
8077         (remote_target::discard_pending_stop_replies)
8078         (remote_target::discard_pending_stop_replies_in_queue)
8079         (remote_target::remote_notif_remove_queued_reply)
8080         (remote_target::queued_stop_reply)
8081         (remote_target::push_stop_reply, remote_target::peek_stop_reply)
8082         (remote_target::wait, remote_target::kill_new_fork_children)
8083         (remote_target::async): Update.
8084
8085 2018-06-10  Tom Tromey  <tom@tromey.com>
8086
8087         * record-full.c (record_full_arch_list_cleanups): Remove.
8088         (record_full_message): Use try/catch.
8089         (record_full_wait_cleanups): Remove.
8090         (record_full_wait_1): Use try/catch.
8091         (record_full_restore): Likewise.
8092
8093 2018-06-10  Tom Tromey  <tom@tromey.com>
8094
8095         * record-full.c (record_full_breakpoint_p): Remove typedef.  Don't
8096         declare VEC.  Add constructor.
8097         <in_target_beneath>: Now bool.
8098         (record_full_breakpoints): Now a std::vector, static.
8099         (record_full_sync_record_breakpoints)
8100         (record_full_init_record_breakpoints)
8101         (record_full_target::insert_breakpoint)
8102         (record_full_target::remove_breakpoint): Update.  Don't use XNEW.
8103
8104 2018-06-10  Simon Marchi  <simon.marchi@polymtl.ca>
8105
8106         * dwarf2read.c (process_cu_includes): Remove struct keyword.
8107         * serial.c (serial_interface_lookup): Remove struct keyword.
8108
8109 2018-06-10  Tom Tromey  <tom@tromey.com>
8110
8111         * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
8112         method.
8113         * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
8114         a method.
8115         * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
8116         method.
8117         * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
8118         "beneath" as a method.
8119         * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
8120         Use "beneath" as a method.
8121
8122 2018-06-10  Tom Tromey  <tom@tromey.com>
8123
8124         * tracefile.c (struct trace_file_writer_deleter): New.
8125         <operator()>: Rename from trace_file_writer_xfree.
8126         (trace_file_writer_up): New typedef.
8127         (tsave_command, trace_save_tfile, trace_save_ctf): Update.
8128
8129 2018-06-09  Simon Marchi  <simon.marchi@ericsson.com>
8130
8131         * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
8132         <m_registers, m_register_status>: Change type to
8133         std::unique_ptr.
8134         * regcache.c (reg_buffer::reg_buffer): Use new instead of
8135         XCNEWVEC.
8136
8137 2018-06-09  Simon Marchi  <simon.marchi@ericsson.com>
8138
8139         * common/common-regcache.h (enum register_status): Add
8140         underlying type "signed char".
8141         * regcache.h (reg_buffer) <m_register_status>: Change type to
8142         register_status *.
8143         * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
8144         register_status instead of signed char.
8145         (reg_buffer::save): Use REG_UNKNOWN instead of 0.
8146         (reg_buffer::get_register_status): Remove cast.
8147         (readable_regcache::raw_read): Remove cast.
8148         (readable_regcache::cooked_read): Remove cast.
8149
8150 2018-06-09  Tom Tromey  <tom@tromey.com>
8151
8152         * source.c (reverse_search_command, forward_search_command): Use
8153         scoped_fd.
8154
8155 2018-06-09  Tom Tromey  <tom@tromey.com>
8156
8157         * serial.c (serial_ops_p): Remove typedef.  Don't declare VEC.
8158         (serial_ops_list): Now static, std::vector.
8159         (serial_interface_lookup, serial_add_interface): Update.
8160
8161 2018-06-09  Tom Tromey  <tom@tromey.com>
8162
8163         * dwarf2read.c (process_cu_includes): Update.
8164         (process_full_comp_unit): Update.
8165         * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
8166         std::vector.
8167
8168 2018-06-08  Paul Koning  <paul_koning@dell.com>
8169
8170         PR gdb/23252
8171
8172         * python/python.c (do_start_initialization):
8173         Avoid call to internal Python API.
8174         (init__gdb_module): New function.
8175
8176 2018-06-08  Gary Benson <gbenson@redhat.com>
8177
8178         * linux-thread-db.c (valprint.h): New include.
8179         (struct check_thread_db_info): New structure.
8180         (check_thread_db_on_load, tdb_testinfo): New static globals.
8181         (check_thread_db, check_thread_db_callback): New functions.
8182         (try_thread_db_load_1): Run integrity checks if requested.
8183         (maintenance_check_libthread_db): New function.
8184         (_initialize_thread_db): Register "maint check libthread-db"
8185         and "maint set/show check-libthread-db".
8186         * NEWS: Mention the above new commands.
8187
8188 2018-06-08  Tom Tromey  <tom@tromey.com>
8189
8190         * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
8191         now a method.
8192
8193 2018-06-08  Tom Tromey  <tom@tromey.com>
8194
8195         * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
8196
8197 2018-06-08  Tom Tromey  <tom@tromey.com>
8198
8199         * common/btrace-common.h (struct btrace_data): Add constructor,
8200         destructor, move assignment operator.
8201         <empty, clear, fini>: New methods.
8202         <format>: Initialize.
8203         (btrace_data_init, btrace_data_fini, btrace_data_clear)
8204         (btrace_data_empty): Don't declare.
8205         * common/btrace-common.c (btrace_data_init): Remove.
8206         (btrace_data::fini): Rename from btrace_data_fini.
8207         (btrace_data::empty): Rename from btrace_data_empty.
8208         (btrace_data::clear): Rename from btrace_data_clear.  Return
8209         bool.
8210         * btrace.h (make_cleanup_btrace_data): Don't declare.
8211         * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
8212         (parse_xml_btrace): Update.
8213         (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
8214         (maint_btrace_clear_packet_history_cmd): Update.
8215
8216 2018-06-07  Pedro Alves  <palves@redhat.com>
8217
8218         * target.h (target_ops) <beneath>: Now a method.  All references
8219         updated.
8220         (class target_stack): New.
8221         * target.c (g_target_stack): New.
8222         (g_current_top_target): Delete.
8223         (current_top_target): Get the top target out of g_target_stack.
8224         (target_stack::push, target_stack::unpush): New.
8225         (push_target, unpush_target): Reimplement.
8226         (target_is_pushed): Reimplement in terms of g_target_stack.
8227         (target_ops::beneath, target_stack::find_beneath): New.
8228
8229 2018-06-07  Pedro Alves  <palves@redhat.com>
8230
8231         * target.h (find_target_beneath): Delete declaration.
8232         * target.c (find_target_beneath): Delete definition.
8233         * aix-thread.c: All callers of find_target_beneath adjusted to
8234         call target_ops::beneath instead.
8235         * bsd-uthread.c: Likewise.
8236         * linux-thread-db.c: Likewise.
8237         * ravenscar-thread.c: Likewise.
8238         * sol-thread.c: Likewise.
8239         * spu-multiarch.c: Likewise.
8240
8241 2018-06-07  Pedro Alves  <palves@redhat.com>
8242
8243         * target.h (target_ops) <beneath>: Now a method.  All references
8244         updated.
8245         (target_ops) <m_beneath>: New.
8246         * target.c (target_ops::beneath): New.
8247         * corelow.c: Adjust all references to target_ops::beneath.
8248         * linux-thread-db.c: Likewise.
8249         * make-target-delegates: Likewise.
8250         * record-btrace.c: Likewise.
8251         * record-full.c: Likewise.
8252         * remote.c: Likewise.
8253         * target.c: Likewise.
8254         * target-delegates.c: Regenerate.
8255
8256 2018-06-07  Pedro Alves  <palves@redhat.com>
8257
8258         * target.h (target_stack): Delete.
8259         (current_top_target): Declare function.
8260         * target.c (target_stack): Delete.
8261         (g_current_top_target): New.
8262         (current_top_target): New function.
8263         * auxv.c: Use current_top_target instead of target_stack
8264         throughout.
8265         * avr-tdep.c: Likewise.
8266         * breakpoint.c: Likewise.
8267         * corefile.c: Likewise.
8268         * elfread.c: Likewise.
8269         * eval.c: Likewise.
8270         * exceptions.c: Likewise.
8271         * frame.c: Likewise.
8272         * gdbarch-selftests.c: Likewise.
8273         * gnu-v3-abi.c: Likewise.
8274         * ia64-tdep.c: Likewise.
8275         * ia64-vms-tdep.c: Likewise.
8276         * infcall.c: Likewise.
8277         * infcmd.c: Likewise.
8278         * infrun.c: Likewise.
8279         * linespec.c: Likewise.
8280         * linux-tdep.c: Likewise.
8281         * minsyms.c: Likewise.
8282         * ppc-linux-nat.c: Likewise.
8283         * ppc-linux-tdep.c: Likewise.
8284         * procfs.c: Likewise.
8285         * regcache.c: Likewise.
8286         * remote.c: Likewise.
8287         * rs6000-tdep.c: Likewise.
8288         * s390-linux-nat.c: Likewise.
8289         * s390-tdep.c: Likewise.
8290         * solib-aix.c: Likewise.
8291         * solib-darwin.c: Likewise.
8292         * solib-dsbt.c: Likewise.
8293         * solib-spu.c: Likewise.
8294         * solib-svr4.c: Likewise.
8295         * solib-target.c: Likewise.
8296         * sparc-tdep.c: Likewise.
8297         * sparc64-tdep.c: Likewise.
8298         * spu-tdep.c: Likewise.
8299         * symfile.c: Likewise.
8300         * symtab.c: Likewise.
8301         * target-descriptions.c: Likewise.
8302         * target-memory.c: Likewise.
8303         * target.c: Likewise.
8304         * target.h: Likewise.
8305         * tracefile-tfile.c: Likewise.
8306         * tracepoint.c: Likewise.
8307         * valops.c: Likewise.
8308         * valprint.c: Likewise.
8309         * value.c: Likewise.
8310         * windows-tdep.c: Likewise.
8311         * mi/mi-main.c: Likewise.
8312
8313 2018-06-07  Tom Tromey  <tom@tromey.com>
8314
8315         * valprint.h (build_address_symbolic): Declare.
8316         * printcmd.c (print_address_symbolic): Update.
8317         (build_address_symbolic): Change "name" and "filename" to
8318         std::string.
8319         * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
8320         Update.
8321         * defs.h (build_address_symbolic): Remove declaration.
8322
8323 2018-06-07  Alan Hayward  <alan.hayward@arm.com>
8324
8325         * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
8326         (aarch64_vnv_type): Add function.
8327         (aarch64_pseudo_register_name): Add V regs for SVE.
8328         (aarch64_pseudo_register_type): Likewise.
8329         (aarch64_pseudo_register_reggroup_p): Likewise.
8330         (aarch64_pseudo_read_value_2): Use V0 offset for SVE
8331         (aarch64_pseudo_read_value): Add V regs for SVE.
8332         (aarch64_pseudo_write_2): Use V0 offset for SVE
8333         (aarch64_pseudo_write): Add V regs for SVE.
8334         * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
8335
8336 2018-06-06  Sergio Durigan Junior  <sergiodj@redhat.com>
8337
8338         * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
8339         (sve_vl_from_vq): Likewise.
8340
8341 2018-06-05  Tom Tromey  <tom@tromey.com>
8342
8343         * cli/cli-cmds.c (show_version): Update.
8344         * top.c (print_gdb_version): Add "interactive" parameter.
8345         Update.
8346         * main.c (captured_main_1): Update.
8347         * top.h (print_gdb_version): Add "interactive" parameter and a
8348         comment.
8349
8350 2018-06-05  David Malcolm  <dmalcolm@redhat.com>
8351
8352         * common/enum-flags.h: Add trailing semicolon to example in
8353         comment.
8354
8355 2018-06-05  Tom Tromey  <tom@tromey.com>
8356
8357         PR cli/12326:
8358         * NEWS: Add entry about pager.
8359         * utils.c (pagination_disabled_for_command): New global.
8360         (prompt_for_continue): Allow "c" response to prompt.
8361         (reinitialize_more_filter): Clear
8362         pagination_disabled_for_command.
8363         (fputs_maybe_filtered): Check pagination_disabled_for_command.
8364
8365 2018-06-04  Tom Tromey  <tom@tromey.com>
8366
8367         * ada-lang.h (ada_lookup_symbol_list): Update.
8368         * ada-lang.c (resolve_subexp): Update.
8369         (symbols_are_identical_enums): Change type of syms.  Remove nsyms
8370         parameter.
8371         (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
8372         (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
8373         results parameter to std::vector.
8374         (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
8375         Update.
8376         * ada-exp.y (block_lookup): Update.
8377         (select_possible_type_sym): Change type of syms.  Remove nsyms
8378         parameter.
8379         (write_var_or_type, write_name_assoc): Update.
8380
8381 2018-06-04  Joel Brobecker  <brobecker@adacore.com>
8382
8383         * windows-nat.c (windows_nat_target::xfer_partial): Return
8384         TARGET_XFER_E_IO if we need to delegate to the target beneath
8385         but BENEATH is NULL.
8386
8387 2018-06-04  Simon Marchi  <simon.marchi@ericsson.com>
8388
8389         * Makefile.in (config.status): Add configure.nat as a
8390         dependency.
8391
8392 2018-06-04  Tom Tromey  <tom@tromey.com>
8393
8394         * cp-name-parser.y (cpname_state): Add method declarations.
8395         (HANDLE_QUAL): Update.
8396         (cpname_state::d_grab, cpname_state::fill_comp)
8397         (cpname_state::make_operator, cpname_state::make_dtor)
8398         (cpname_state::make_builtin_type, cpname_state::make_name)
8399         (cpname_state::d_qualify, cpname_state::d_int_type)
8400         (cpname_state::d_unary, cpname_state::d_binary): Now methods.
8401         (%union): Move earlier.
8402
8403 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
8404
8405         * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
8406
8407 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
8408
8409         * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
8410         (aarch64_pseudo_write_1): Likewise.
8411         (aarch64_pseudo_read_value): Use helper.
8412         (aarch64_pseudo_write): Likewise.
8413
8414 2018-06-04  Pedro Alves  <palves@redhat.com>
8415
8416         * darwin-nat.c (darwin_ops): Delete.
8417         (darwin_attach_pid): Use get_native_target.
8418
8419 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
8420
8421         * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
8422         * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
8423
8424 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
8425
8426         * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
8427         * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
8428         (aarch64_gdbarch_init): Check for SVE.
8429         * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
8430
8431 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
8432
8433         * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
8434         * aarch64-tdep.h (aarch64_read_description): Likewise.
8435         * arch/aarch64.c (aarch64_create_target_description): Likewise.
8436         * arch/aarch64.h (aarch64_create_target_description): Likewise.
8437         * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
8438         * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
8439         * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
8440
8441 2018-06-02  Simon Marchi  <simon.marchi@ericsson.com>
8442
8443         * value.c (value_fetch_lazy_bitfield): New.
8444         (value_fetch_lazy_memory): New.
8445         (value_fetch_lazy_register): New.
8446         (value_fetch_lazy): Factor out to smaller functions.
8447
8448 2018-06-01  Tom Tromey  <tom@tromey.com>
8449
8450         * cp-name-parser.y (backslashable, represented): Now const.
8451
8452 2018-06-01  Tom Tromey  <tom@tromey.com>
8453
8454         * cp-name-parser.y: Include parser-defs.h.
8455         (parser_fprintf): Remove declaration.
8456
8457 2018-06-01  Tom Tromey  <tom@tromey.com>
8458
8459         * cp-name-parser.y: Use %pure-parser, %lex-param, and
8460         %parse-param.
8461         (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
8462         (global_result): Remove globals.
8463         (struct cpname_state): New.
8464         (yyparse): Don't declare.
8465         (yylex, yyerror): Move declarations after %union.
8466         (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
8467         (make_name): Add state parameter.
8468         Update all callers.
8469         (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
8470         parameter.
8471         (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
8472         Update.
8473         (yylex): Add lvalp, state parameters.
8474         (yyerror): Add state parameter.
8475         (cp_demangled_name_to_comp): Update.
8476
8477 2018-06-01  Tom Tromey  <tom@tromey.com>
8478
8479         * cp-name-parser.y (parser_fprintf): Declare.
8480         (GDB_YY_REMAP_PREFIX): Define.
8481         Include yy-remap.h.  Don't redefine yy* identifiers.
8482
8483 2018-06-01  Tom Tromey  <tom@tromey.com>
8484
8485         * python/py-type.c (typy_legacy_template_argument): Update.
8486         * cp-support.h (cp_demangled_name_to_comp): Update.
8487         * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
8488         parameter to be a "std::string *".
8489         (main): Update.
8490
8491 2018-06-01  H.J. Lu  <hongjiu.lu@intel.com>
8492
8493         * ada-lex.l: Include "diagnostics.h" instead of
8494         "common/diagnostics.h".
8495         * unittests/environ-selftests.c: Likewise.
8496         * common/diagnostics.h: Moved to ../include.
8497
8498 2018-06-01  Joel Brobecker  <brobecker@adacore.com>
8499
8500         * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
8501         to language_mode_manual while calling breakpoint_re_set_one.
8502
8503 2018-06-01  Tom Tromey  <tom@tromey.com>
8504
8505         * valops.c (value_cast_structs, destructor_name_p): Update.
8506         * symtab.c (gdb_mangle_name): Update.
8507         * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
8508         Update.
8509         * p-valprint.c (pascal_object_is_vtbl_ptr_type)
8510         (pascal_object_print_value_fields, pascal_object_print_value):
8511         Update.
8512         * p-typeprint.c (pascal_type_print_derivation_info): Update.
8513         * linespec.c (find_methods): Update.
8514         * gdbtypes.h (type_name_no_tag): Remove.
8515         (type_name_or_error): Rename from type_name_no_tag_or_error.
8516         * gdbtypes.c (type_name_no_tag): Remove.
8517         (type_name_or_error): Rename from type_name_no_tag_or_error.
8518         (lookup_struct_elt_type, check_typedef): Update.
8519         * expprint.c (print_subexp_standard): Update.
8520         * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
8521         * d-namespace.c (d_lookup_nested_symbol): Update.
8522         * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
8523         (cp_print_class_member): Update.
8524         * cp-namespace.c (cp_lookup_nested_symbol): Update.
8525         * completer.c (add_struct_fields): Update.
8526         * c-typeprint.c (cp_type_print_derivation_info)
8527         (c_type_print_varspec_prefix, c_type_print_base_struct_union):
8528         Update.
8529         * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
8530         (ada_prefer_type, ada_is_exception_sym): Update.
8531
8532 2018-06-01  Tom Tromey  <tom@tromey.com>
8533
8534         * valops.c (enum_constant_from_type, value_namespace_elt)
8535         (value_maybe_namespace_elt): Update.
8536         * valarith.c (find_size_for_pointer_math): Update.
8537         * target-descriptions.c (make_gdb_type): Update.
8538         * symmisc.c (print_symbol): Update.
8539         * stabsread.c (define_symbol, read_type)
8540         (complain_about_struct_wipeout, add_undefined_type)
8541         (cleanup_undefined_types_1): Update.
8542         * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
8543         (rust_range_type_p, val_print_struct, rust_print_struct_def)
8544         (rust_internal_print_type, rust_composite_type)
8545         (rust_evaluate_funcall, rust_evaluate_subexp)
8546         (rust_inclusive_range_type_p): Update.
8547         * python/py-type.c (typy_get_tag): Update.
8548         * p-typeprint.c (pascal_type_print_base): Update.
8549         * mdebugread.c (parse_symbol, parse_type): Update.
8550         * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
8551         Update.
8552         * guile/scm-type.c (gdbscm_type_tag): Update.
8553         * go-lang.c (sixg_string_p): Update.
8554         * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
8555         Update.
8556         * gdbtypes.h (struct main_type) <tag_name>: Remove.
8557         (TYPE_TAG_NAME): Remove.
8558         * gdbtypes.c (type_name_no_tag): Simplify.
8559         (check_typedef, check_types_equal, recursive_dump_type)
8560         (copy_type_recursive, arch_composite_type): Update.
8561         * f-typeprint.c (f_type_print_base): Update.  Print "Type" prefix
8562         in summary mode when needed.
8563         * eval.c (evaluate_funcall): Update.
8564         * dwarf2read.c (fixup_go_packaging, read_structure_type)
8565         (process_structure_scope, read_enumeration_type)
8566         (read_namespace_type, read_module_type, determine_prefix): Update.
8567         * cp-support.c (inspect_type): Update.
8568         * coffread.c (process_coff_symbol, decode_base_type): Update.
8569         * c-varobj.c (c_is_path_expr_parent): Update.
8570         * c-typeprint.c (c_type_print_base_struct_union): Update.
8571         (c_type_print_base_1): Update.  Print struct/class/union/enum in
8572         summary when using C language.
8573         * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
8574         (gen_maybe_namespace_elt): Update.
8575         * ada-lang.c (ada_type_name): Simplify.
8576         (empty_record, ada_template_to_fixed_record_type_1)
8577         (template_to_static_fixed_type)
8578         (to_record_with_fixed_variant_part, ada_check_typedef): Update.
8579
8580 2018-06-01  Tom Tromey  <tom@tromey.com>
8581
8582         * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
8583         c_print_type.
8584         * c-typeprint.c (c_print_type_1): Add "language" parameter.
8585         (c_print_type): Update.
8586         (c_print_type): New overload.
8587         (c_type_print_varspec_prefix, c_type_print_args)
8588         (c_type_print_varspec_suffix, c_print_type_no_offsets)
8589         (c_type_print_base_struct_union, c_type_print_base_1)
8590         (cp_type_print_method_args): Add "language" parameter.
8591         (c_type_print_base): Update.
8592         * c-lang.h (c_print_type): Add new overload.
8593
8594 2018-06-01  Tom Tromey  <tom@tromey.com>
8595
8596         * typeprint.h (c_type_print_varspec_suffix): Don't declare.
8597         * c-typeprint.c (c_type_print_varspec_suffix): Now static.
8598
8599 2018-06-01  Alan Hayward  <alan.hayward@arm.com>
8600
8601         * aarch64-tdep.c (aarch64_sve_register_names): New const
8602         var.
8603         * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
8604         (AARCH64_SVE_Z_REGS_NUM): New define.
8605         (AARCH64_SVE_P_REGS_NUM): Likewise.
8606         (AARCH64_SVE_NUM_REGS): Likewise.
8607
8608 2018-05-31  Uros Bizjak  <ubizjak@gmail.com>
8609
8610         * nat/linux-ptrace.h [__alpha__]
8611         (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
8612         definitions.
8613
8614 2018-05-31  Maciej W. Rozycki  <macro@mips.com>
8615
8616         * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
8617         the endianness selected.
8618         * NEWS: Document `set endian auto' mode operation update.
8619
8620 2018-05-31  Alan Hayward  <alan.hayward@arm.com>
8621
8622         * Makefile.in: Add new header.
8623         * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
8624         (sve_vl_from_vg): Likewise.
8625         (sve_vq_from_vl): Likewise.
8626         (sve_vl_from_vq): Likewise.
8627         (sve_vq_from_vg): Likewise.
8628         (sve_vg_from_vq): Likewise.
8629         * configure.nat: Add new c file.
8630         * nat/aarch64-sve-linux-ptrace.c: New file.
8631         * nat/aarch64-sve-linux-ptrace.h: New file.
8632
8633 2018-05-31  Alan Hayward  <alan.hayward@arm.com>
8634
8635         * aarch64-linux-nat.c (aarch64_linux_read_description):
8636         Add parmeter zero.
8637         * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8638         Likewise.
8639         * aarch64-tdep.c (tdesc_aarch64_list): Add.
8640         (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
8641         (aarch64_gdbarch_init): Add parmeter zero.
8642         * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
8643         * arch/aarch64.c (aarch64_create_target_description): Check VQ.
8644         * arch/aarch64.h (aarch64_create_target_description): Add VQ.
8645         parmeter.
8646         * doc/gdb.texinfo: Describe SVE feature
8647         * features/aarch64-sve.c: New file.
8648
8649 2018-05-31  Omair Javaid  <omair.javaid@linaro.org>
8650
8651         PR gdb/23210
8652         * gdbarch.sh (significant_addr_bit): Default to zero when
8653         not set by target architecture.
8654         * gdbarch.c: Re-generated.
8655         * utils.c (address_significant): Update.
8656
8657 2018-05-30  Joel Brobecker  <brobecker@adacore.com>
8658
8659         * stack.c (func_command): Remove trailing newline in call to error.
8660
8661 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8662
8663         * regcache.h (regcache_raw_collect): Remove, update callers to
8664         use regcache::raw_collect.
8665         * regcache.c (regcache_raw_collect): Remove.
8666
8667 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8668
8669         * regcache.h (regcache_raw_supply): Remove, update callers to
8670         use detached_regcache::raw_supply.
8671         * regcache.c (regcache_raw_supply): Remove.
8672
8673 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8674
8675         * regcache.h (regcache_cooked_write_part): Remove, update
8676         callers to use regcache::cooked_write_part.
8677         * regcache.c (regcache_cooked_write_part): Remove.
8678
8679 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8680
8681         * regcache.h (regcache_cooked_read_part): Remove, update callers
8682         to use readable_regcache::cooked_read_part.
8683         * regcache.c (regcache_cooked_read_part): Remove.
8684
8685 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8686
8687         * regcache.h (regcache_cooked_read_value): Remove, update
8688         callers to use readable_regcache::cooked_read_value.
8689         * regcache.c (regcache_cooked_read_value): Remove.
8690
8691 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8692
8693         * regcache.h (regcache_cooked_write): Remove, update callers to
8694         use regcache::cooked_write.
8695         * regcache.c (regcache_cooked_write): Remove.
8696
8697 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8698
8699         * regcache.h (regcache_invalidate): Remove, update callers to
8700         use detached_regcache::invalidate instead.
8701         * regcache.c (regcache_invalidate): Remove.
8702
8703 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8704
8705         * regcache.h (regcache_raw_write_part): Remove, update callers
8706         to use regcache::raw_write_part instead.
8707         * regcache.c (regcache_raw_write_part): Remove.
8708
8709 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8710
8711         * regcache.h (regcache_raw_read_part): Remove, update callers to
8712         use readable_regcache::raw_read_part instead.
8713         * regcache.c (regcache_raw_read_part): Remove.
8714
8715 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8716
8717         * regcache.h (regcache_cooked_read): Remove, update callers to
8718         use readable_regcache::cooked_read instead.
8719         * regcache.c (regcache_cooked_read): Remove.
8720
8721 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8722
8723         * regcache.h (regcache_raw_write): Remove, update callers to use
8724         regcache::raw_write instead.
8725         * regcache.c (regcache_raw_write): Remove.
8726
8727 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8728
8729         * regcache.h (regcache_raw_read): Remove, update callers to use
8730         readable_regcache::raw_read instead.
8731         * regcache.c (regcache_raw_read): Remove.
8732
8733 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8734
8735         * regcache.h (regcache_raw_update): Remove, update callers to
8736         use readable_regcache::raw_update instead.
8737         * regcache.c (regcache_raw_update): Remove.
8738
8739 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8740
8741         * regcache.h (regcache_register_status): Remove, update callers
8742         to use reg_buffer::get_register_status directly instead.
8743         * regcache.c (regcache_register_status): Remove.
8744
8745 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8746
8747         * regcache.h (regcache_get_ptid): Remove, update all callers to
8748         call regcache::ptid instead.
8749         * regcache.c (regcache_get_ptid): Remove.
8750
8751 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8752
8753         * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
8754
8755 2018-05-30  Pedro Alves  <palves@redhat.com>
8756
8757         * common/common-exceptions.h (exception_rethrow): Use
8758         ATTRIBUTE_NORETURN.
8759
8760 2018-05-29  Simon Marchi  <simon.marchi@polymtl.ca>
8761
8762         * breakpoint.c (print_solib_event, check_status_catch_solib):
8763         Remove struct keyword in range-based for loops.
8764         * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
8765         * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
8766         Likewise.
8767         * linespec.c (find_superclass_methods, search_minsyms_for_name):
8768         Likewise.
8769         * symfile.c (addr_info_make_relative): Likewise.
8770         * thread.c (value_in_thread_stack_temporaries): Likewise.
8771
8772 2018-06-12  Weimin Pan  <weimin.pan@oracle.com>
8773
8774         PR gdb/16841
8775         * valops.c (value_struct_elt_for_reference): Call check_typedef on
8776         aggregate type to get its real type before accessing it.
8777
8778 2018-05-29  Weimin Pan  <weimin.pan@oracle.com>
8779
8780         * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
8781         * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
8782         * coff-pe-read.c (add_pe_forwarded_sym): Replace
8783         lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
8784         * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
8785         * jit.c (jit_breakpoint_re_set_internal): Likewise.
8786         * printcmd.c (info_address_command): Likewise.
8787
8788 2018-05-29  Tom Tromey  <tom@tromey.com>
8789
8790         * windows-nat.c (handle_exception): Update fall-through comment.
8791
8792 2018-05-29  Tom Tromey  <tom@tromey.com>
8793
8794         * progspace.h (so_list_ptr): Remove typedef.  Don't declare VEC.
8795         (struct program_space) <added_solibs>: Now a std::vector.
8796         * breakpoint.c (print_solib_event): Update.
8797         (check_status_catch_solib): Update.
8798         * progspace.c (clear_program_space_solib_cache): Update.
8799         * solib.c (update_solib_list): Update.
8800
8801 2018-05-29  Tom Tromey  <tom@tromey.com>
8802
8803         * python/py-type.c (typy_richcompare): Update.
8804         * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
8805         * gdbtypes.h (types_deeply_equal): Return bool.
8806         (types_equal): Likewise.
8807         * gdbtypes.c (type_equality_entry_d): Remove typedef.  Don't
8808         declare VEC.
8809         (check_types_equal): Change worklist to std::vector.  Return
8810         bool.
8811         (struct type_equality_entry): Add constructor.
8812         (compare_maybe_null_strings): Return bool.
8813         (check_types_worklist): Return bool.  Change worklist to
8814         std::vector.
8815         (types_deeply_equal): Use std::vector.
8816         (types_equal): Return bool.
8817         (compare_maybe_null_strings): Simplify.
8818
8819 2018-05-29  Tom Tromey  <tom@tromey.com>
8820
8821         * record-btrace.c (tp_t): Remove typedef.  Don't declare VEC.
8822
8823 2018-05-29  Tom Tromey  <tom@tromey.com>
8824
8825         * objc-lang.h: Don't include cp-support.h.
8826         * common/gdb_vecs.h (const_char_ptr): Remove typedef.  Don't
8827         declare VEC.
8828
8829 2018-05-27  Tom Tromey  <tom@tromey.com>
8830
8831         * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
8832
8833 2018-05-25  Tom Tromey  <tom@tromey.com>
8834
8835         * value.c (value::location): Initialize.
8836
8837 2018-05-25  Tom Tromey  <tom@tromey.com>
8838
8839         * dbxread.c (init_bincl_list): Remove.
8840         (bincl_list): Now a std::vector.
8841         (bincls_allocated, next_bincl): Remove.
8842         (free_bincl_list, do_free_bincl_list_cleanup)
8843         (make_cleanup_free_bincl_list): Remove.
8844         (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
8845         unique_xmalloc_ptr.
8846         (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
8847         (struct header_file_location): Add constructor.
8848         (add_bincl_to_list): Remove.
8849
8850 2018-05-25  Tom Tromey  <tom@tromey.com>
8851
8852         * tui/tui.c (tui_enable): Update.
8853         * mi/mi-interp.c (mi_interp::init): Update.
8854         * interps.h (class interp) <name>: New method.
8855         <m_name>: Rename from name.
8856         (~scoped_restore_interp): Update.
8857         * interps.c (interp::interp): Update.
8858         (interp_add, interp_set, interp_lookup_existing)
8859         (current_interp_named_p): Update.
8860
8861 2018-05-25  Tom Tromey  <tom@tromey.com>
8862
8863         * interps.c (interp_name): Remove.
8864         * mi/mi-interp.c (mi_interp::init): Update.
8865         * interps.h (interp_name): Remove.
8866         (~scoped_restore_interp): Update.
8867         * tui/tui.c (tui_enable): Update.
8868
8869 2018-05-25  Tom Tromey  <tom@tromey.com>
8870
8871         * utils.c (fputs_maybe_filtered): Update.
8872         * linespec.c (decode_line_full): Update.
8873         * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
8874         (mi_print_breakpoint_for_event, mi_solib_loaded)
8875         (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
8876         (mi_user_selected_context_changed): Update.
8877         * mi/mi-main.c (mi_execute_command): Update.
8878         * cli/cli-script.c (execute_control_command): Update.
8879         * python/python.c (execute_gdb_command): Update.
8880         * solib.c (info_sharedlibrary_command): Update.
8881         * interps.c (interp_ui_out): Remove.
8882         * interps.h (interp_ui_out): Remove.
8883
8884 2018-05-25  Tom Tromey  <tom@tromey.com>
8885
8886         * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
8887         * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
8888         * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
8889
8890 2018-05-25  Tom Tromey  <tom@tromey.com>
8891
8892         * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
8893         * interps.c (interp_exec): Use scoped_restore.
8894
8895 2018-05-25  Tom Tromey  <tom@tromey.com>
8896
8897         * remote.c (remote_target::remote_file_get): Use
8898         gdb::byte_vector.
8899         (remote_target::remote_file_put): Likewise.
8900
8901 2018-05-25  Tom Tromey  <tom@tromey.com>
8902
8903         * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
8904         a std::string.
8905         (get_pe_section_index, add_pe_exported_sym): Update.
8906         (read_pe_exported_syms): Use gdb::def_vector.
8907
8908 2018-05-25  Tom Tromey  <tom@tromey.com>
8909
8910         * frame.c (remove_prev_frame): Remove.
8911         (get_prev_frame_if_no_cycle): Use TRY/CATCH.
8912
8913 2018-05-25  Maciej W. Rozycki  <macro@mips.com>
8914
8915         * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
8916         Remove prototypes.
8917         * mips-linux-nat.c (supply_fpregset): Always call
8918         `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
8919         (fill_fpregset): Always call `mips64_fill_fpregset' rather than
8920         `mips_fill_fpregset'.
8921         * mips-linux-tdep.c (mips_supply_fpregset)
8922         (mips_supply_fpregset_wrapper, mips_fill_fpregset)
8923         (mips_fill_fpregset_wrapper): Remove functions.
8924         (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
8925         (mips_linux_fpregset): Remove variable.
8926         (mips_linux_iterate_over_regset_sections): Use
8927         `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
8928         (mips_linux_o32_sigframe_init): Remove comment.
8929
8930 2018-05-25  Pedro Alves  <palves@redhat.com>
8931
8932         * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
8933         (struct readahead_cache, struct packet_reg, struct
8934         remote_arch_state, class remote_state): Move higher up in the
8935         file.
8936         (remote_target::m_remote_state): Now an object instead of a pointer.
8937         (remote_target::get_remote_state): Adjust.
8938
8939 2018-05-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8940
8941         * stack.c (select_and_print_frame): Delete.
8942         (struct function_bounds): Move struct within function.
8943         (func_command): Most content moved into new function
8944         find_frame_for_function, use new function, print result, add
8945         function comment.
8946         (find_frame_for_function): New function, now returns a result.
8947
8948 2018-05-24  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
8949
8950         * stack.c (iterate_over_block_arg_vars): Fix comment.
8951         (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
8952
8953 2018-05-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8954
8955         PR gdb/23203
8956         * frame.c
8957         (scoped_restore_selected_frame::scoped_restore_selected_frame):
8958         Define.
8959         (scoped_restore_selected_frame::~scoped_restore_selected_frame):
8960         Define.
8961         * frame.h (class scoped_restore_selected_frame): New class.
8962         * stack.c (print_frame_local_vars): Remove catching and rethrowing
8963         of any exception, use scoped_restore_selected_frame to restore the
8964         frame instead.
8965
8966 2018-05-24  Pedro Alves  <palves@redhat.com>
8967
8968         * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
8969         override.
8970
8971 2018-05-23  Tom Tromey  <tom@tromey.com>
8972
8973         * complaints.c (struct complaints): Remove.
8974         (symfile_complaint_book): Remove.
8975         (series): New global.
8976         (complaint_internal): Update.
8977         (clear_complaints): Update.
8978
8979 2018-05-23  Tom Tromey  <tom@tromey.com>
8980
8981         * complaints.c (counters): New global.
8982         (struct complain): Remove.
8983         (struct complaints) <root>: Remove.
8984         (complaint_sentinel): Remove.
8985         (symfile_complaint_book): Update.
8986         (find_complaint) Remove.
8987         (complaint_internal, clear_complaints): Update.
8988
8989 2018-05-23  Tom Tromey  <tom@tromey.com>
8990
8991         * complaints.c (struct complain) <file, line>: Remove.
8992         (find_complaint): Remove file, line parameters.
8993         (complaint_internal): Update.
8994
8995 2018-05-23  Tom Tromey  <tom@tromey.com>
8996
8997         * complaints.c (vcomplaint): Remove.
8998         (complaint_internal) Merge in contents of vcomplaint.
8999
9000 2018-05-23  Tom Tromey  <tom@tromey.com>
9001
9002         * complaints.c (struct complaints) <explanation>: Remove.
9003         (symfile_explanations): Remove.
9004         (symfile_complaint_book): Update.
9005         (vcomplaint): Update.
9006         (struct explanation): Remove.
9007
9008 2018-05-23  Tom Tromey  <tom@tromey.com>
9009
9010         * complaints.c (symfile_complaints): Remove.
9011         (complaint_internal): Remove "complaints" parameter.
9012         (clear_complaints, vcomplaint): Remove "c" parameter.
9013         (get_complaints): Remove.
9014         * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
9015         (dwarf2_debug_line_missing_file_complaint)
9016         (dwarf2_debug_line_missing_end_sequence_complaint)
9017         (dwarf2_complex_location_expr_complaint)
9018         (dwarf2_const_value_length_mismatch_complaint)
9019         (dwarf2_section_buffer_overflow_complaint)
9020         (dwarf2_macro_malformed_definition_complaint)
9021         (dwarf2_invalid_attrib_class_complaint)
9022         (create_addrmap_from_index, dw2_symtab_iter_next)
9023         (dw2_expand_marked_cus)
9024         (dw2_debug_names_iterator::find_vec_in_debug_names)
9025         (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
9026         (create_debug_type_hash_table, init_cutu_and_read_dies)
9027         (partial_die_parent_scope, add_partial_enumeration)
9028         (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
9029         (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
9030         (read_import_statement, read_file_scope, create_dwo_cu_reader)
9031         (create_cus_hash_table, create_dwp_hash_table)
9032         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9033         (dwarf2_rnglists_process, dwarf2_ranges_process)
9034         (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
9035         (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
9036         (handle_struct_member_die, process_structure_scope)
9037         (read_array_type, read_common_block, read_module_type)
9038         (read_tag_pointer_type, read_typedef, read_base_type)
9039         (read_subrange_type, load_partial_dies, partial_die_info::read)
9040         (partial_die_info::read, partial_die_info::read)
9041         (partial_die_info::read, read_checked_initial_length_and_offset)
9042         (dwarf2_string_attr, read_formatted_entries)
9043         (dwarf_decode_line_header)
9044         (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
9045         (new_symbol, dwarf2_const_value_attr, lookup_die_type)
9046         (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
9047         (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9048         (get_signatured_type, get_DW_AT_signature_type)
9049         (decode_locdesc, file_file_name, consume_improper_spaces)
9050         (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
9051         (dwarf_decode_macro_bytes, dwarf_decode_macros)
9052         (dwarf2_symbol_mark_computed, set_die_type)
9053         (read_attribute_value): Update.
9054         * stap-probe.c (handle_stap_probe, get_stap_base_address):
9055         Update.
9056         * dbxread.c (unknown_symtype_complaint)
9057         (lbrac_mismatch_complaint, repeated_header_complaint)
9058         (set_namestring, function_outside_compilation_unit_complaint)
9059         (read_dbx_symtab, process_one_symbol): Update.
9060         * gdbtypes.c (stub_noname_complaint): Update.
9061         * windows-nat.c (handle_unload_dll): Update.
9062         * coffread.c (coff_symtab_read, enter_linenos, decode_type)
9063         (decode_base_type): Update.
9064         * xcoffread.c (bf_notfound_complaint, ef_complaint)
9065         (eb_complaint, record_include_begin, record_include_end)
9066         (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
9067         (process_xcoff_symbol, read_symbol)
9068         (function_outside_compilation_unit_complaint)
9069         (scan_xcoff_symtab): Update.
9070         * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
9071         * buildsym.c (finish_block_internal, make_blockvector)
9072         (end_symtab_get_static_block, augment_type_symtab): Update.
9073         * dtrace-probe.c (dtrace_process_dof)
9074         (dtrace_static_probe_ops::get_probes): Update.
9075         * complaints.h (struct complaint): Don't declare.
9076         (symfile_complaints): Remove.
9077         (complaint_internal): Remove "complaints" parameter.
9078         (complaint): Likewise.
9079         (clear_complaints): Likewise.
9080         * symfile.c (syms_from_objfile_1, finish_new_objfile)
9081         (reread_symbols): Update.
9082         * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
9083         (dwarf2_frame_cache, decode_frame_entry): Update.
9084         * dwarf2loc.c (dwarf_reg_to_regnum): Update.
9085         * objc-lang.c (lookup_objc_class, lookup_child_selector)
9086         (info_selectors_command): Update.
9087         * macrotab.c (macro_include, check_for_redefinition)
9088         (macro_undef): Update.
9089         * objfiles.c (filter_overlapping_sections): Update.
9090         * stabsread.c (invalid_cpp_abbrev_complaint)
9091         (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
9092         (define_symbol, error_type, read_type, rs6000_builtin_type)
9093         (stabs_method_name_from_physname, read_member_functions)
9094         (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
9095         (attach_fields_to_type, complain_about_struct_wipeout)
9096         (read_range_type, read_args, common_block_start)
9097         (common_block_end, cleanup_undefined_types_1, scan_file_globals):
9098         Update.
9099         * mdebugread.c (index_complaint, unknown_ext_complaint)
9100         (basic_type_complaint, bad_tag_guess_complaint)
9101         (bad_rfd_entry_complaint, unexpected_type_code_complaint)
9102         (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
9103         (parse_procedure, parse_lines)
9104         (function_outside_compilation_unit_complaint)
9105         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
9106         (bad_tag_guess_complaint, reg_value_complaint): Update.
9107         * cp-support.c (demangled_name_complaint): Update.
9108         * macroscope.c (sal_macro_scope): Update.
9109         * dwarf-index-write.c (class debug_names): Update.
9110
9111 2018-05-23  Tom Tromey  <tom@tromey.com>
9112
9113         * complaints.c (clear_complaints): Remove "noisy" parameter.
9114         * complaints.h (clear_complaints): Update.
9115         * symfile.c (syms_from_objfile_1, finish_new_objfile)
9116         (reread_symbols): Update.
9117
9118 2018-05-23  Tom Tromey  <tom@tromey.com>
9119
9120         * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
9121         SUBSEQUENT_MESSAGE.
9122         (vcomplaint, clear_complaints): Update.
9123         (symfile_explanations): Remove some messages.
9124
9125 2018-05-23  Tom Tromey  <tom@tromey.com>
9126
9127         * complaints.c (internal_complaint): Remove.
9128         * complaints.h (internal_complaint): Remove.
9129
9130 2018-05-22  Maciej W. Rozycki  <macro@mips.com>
9131
9132         * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
9133
9134 2018-05-22  Pedro Alves  <palves@redhat.com>
9135
9136         * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
9137         (remote_fileio_badfd, remote_fileio_return_errno)
9138         (remote_fileio_return_success, remote_fileio_func_open)
9139         (remote_fileio_func_open, remote_fileio_func_close)
9140         (remote_fileio_func_read, remote_fileio_func_write)
9141         (remote_fileio_func_lseek, remote_fileio_func_rename)
9142         (remote_fileio_func_unlink, remote_fileio_func_stat)
9143         (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
9144         (remote_fileio_func_isatty, remote_fileio_func_system): Add
9145         remote_target parameter.
9146         (remote_fio_func_map) <func>: Add remote_target parameter.
9147         (do_remote_fileio_request, remote_fileio_request):
9148         * remote-fileio.h (remote_fileio_request):
9149         * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
9150         remote_target parameter.
9151         (remote_notif_process, handle_notification): Adjust to pass down
9152         the remote.
9153         (remote_notif_state_allocate): Add remote_target parameter.  Save
9154         it.
9155         * remote-notif.h (struct remote_target): Forward declare.
9156         (struct notif_client) <parse, ack, can_get_pending_events>: Add
9157         remote_target parameter.
9158         (struct remote_notif_state) <remote>: New field.
9159         (remote_notif_ack, remote_notif_parse): Add remote_target
9160         parameter.
9161         (remote_notif_state_allocate, remote_notif_state_allocate): Add
9162         remote_target parameter.
9163         * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
9164         (threads_listing_context, rmt_thread_action, protocol_feature)
9165         (packet_reg, stop_reply, stop_reply_p, enum packet_support)
9166         (packet_result, struct threads_listing_context, remote_state):
9167         Move definitions and declarations higher up.
9168         (remote_target) <~remote_target>: Declare.
9169         (remote_download_command_source, remote_file_put, remote_file_get)
9170         (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
9171         (remote_hostio_pread_vFile, remote_hostio_send_command)
9172         (remote_hostio_set_filesystem, remote_hostio_open)
9173         (remote_hostio_close, remote_hostio_unlink, remote_state)
9174         (get_remote_state, get_remote_packet_size, get_memory_packet_size)
9175         (get_memory_write_packet_size, get_memory_read_packet_size)
9176         (append_pending_thread_resumptions, remote_detach_1)
9177         (append_resumption, remote_resume_with_vcont)
9178         (add_current_inferior_and_thread, wait_ns, wait_as)
9179         (process_stop_reply, remote_notice_new_inferior)
9180         (process_initial_stop_replies, remote_add_thread)
9181         (btrace_sync_conf, remote_btrace_maybe_reopen)
9182         (remove_new_fork_children, kill_new_fork_children)
9183         (discard_pending_stop_replies, stop_reply_queue_length)
9184         (check_pending_events_prevent_wildcard_vcont)
9185         (discard_pending_stop_replies_in_queue, stop_reply)
9186         (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
9187         (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
9188         (remote_interrupt_as, remote_interrupt_ns)
9189         (remote_get_noisy_reply, remote_query_attached)
9190         (remote_add_inferior, remote_current_thread, get_current_thread)
9191         (set_thread, set_general_thread, set_continue_thread)
9192         (set_general_process, write_ptid)
9193         (remote_unpack_thread_info_response, remote_get_threadinfo)
9194         (parse_threadlist_response, remote_get_threadlist)
9195         (remote_threadlist_iterator, remote_get_threads_with_ql)
9196         (remote_get_threads_with_qxfer)
9197         (remote_get_threads_with_qthreadinfo, extended_remote_restart)
9198         (get_offsets, remote_check_symbols, remote_supported_packet)
9199         (remote_query_supported, remote_packet_size)
9200         (remote_serial_quit_handler, remote_detach_pid)
9201         (remote_vcont_probe, remote_resume_with_hc)
9202         (send_interrupt_sequence, interrupt_query)
9203         (remote_notif_get_pending_events, fetch_register_using_p)
9204         (send_g_packet, process_g_packet, fetch_registers_using_g)
9205         (store_register_using_P, store_registers_using_G)
9206         (set_remote_traceframe, check_binary_download)
9207         (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
9208         (remote_xfer_live_readonly_partial, remote_read_bytes)
9209         (remote_send_printf, remote_flash_write, readchar)
9210         (remote_serial_write, putpkt, putpkt_binary, skip_frame)
9211         (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
9212         (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
9213         (extended_remote_disable_randomization, extended_remote_run)
9214         (send_environment_packet, extended_remote_environment_support)
9215         (extended_remote_set_inferior_cwd, remote_write_qxfer)
9216         (remote_read_qxfer, push_stop_reply, vcont_r_supported)
9217         (packet_command): Now methods of ...
9218         (remote_target): ... this class.
9219         (m_remote_state) <remote_target>: New field.
9220         (struct remote_state) <stop_reply_queue,
9221         remote_async_inferior_event_token, wait_forever_enabled_p>: New
9222         fields.
9223         (remote_state::remote_state): Allocate stop_reply_queue.
9224         (remote_state): Delete global.
9225         (get_remote_state_raw): Delete.
9226         (remote_target::get_remote_state): Allocate m_remote_state on
9227         demand.
9228         (get_current_remote_target): New.
9229         (remote_ops, extended_remote_ops): Delete.
9230         (wait_forever_enabled_p, remote_async_inferior_event_token):
9231         Delete, moved to struct remote_state.
9232         (remote_target::close): Delete self.  Destruction bits split to
9233         ...
9234         (remote_target::~remote_target): ... this.
9235         (show_memory_packet_size): Adjust to use
9236         get_current_remote_target.
9237         (struct protocol_feature) <func>: Add remote_target parameter.
9238         All callers adjusted.
9239         (curr_quit_handler_target): New.
9240         (remote_serial_quit_handler): Reimplement.
9241         (remote_target::open_1): Adjust to use get_current_remote_target.
9242         Heap-allocate remote_target/extended_remote_target instances.
9243         (vcont_builder::vcont_builder): Add remote_target parameter, and
9244         save it in m_remote.  All callers adjusted.
9245         (vcont_builder::m_remote): New field.
9246         (vcont_builder::restart, vcont_builder::flush)
9247         (vcont_builder::push_action): Use it.
9248         (remote_target::commit_resume): Use it.
9249         (struct queue_iter_param) <remote>: New field.
9250         (remote_target::remove_new_fork_children): Fill in 'remote' field.
9251         (check_pending_event_prevents_wildcard_vcont_callback_data): New.
9252         (check_pending_event_prevents_wildcard_vcont_callback)
9253         (remote_target::check_pending_events_prevent_wildcard_vcont)
9254         (remote_target::discard_pending_stop_replies)
9255         (remote_target::discard_pending_stop_replies_in_queue)
9256         (remote_target::remote_notif_remove_queued_reply): Fill in
9257         'remote' field.
9258         (remote_notif_get_pending_events): New.
9259         (remote_target::readchar, remote_target::remote_serial_write):
9260         Save/restore curr_quit_handler_target.
9261         (putpkt): New.
9262         (kill_new_fork_children): Fill in 'remote' field.
9263         (packet_command): Use get_current_remote_target, defer to
9264         remote_target method of same name.
9265         (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
9266         parameter, and save it in m_remote.  All callers adjusted.
9267         (scoped_remote_fd::release): Use m_remote.
9268         (scoped_remote_fd::m_remote): New field.
9269         (remote_file_put, remote_file_get, remote_file_delete): Use
9270         get_current_remote_target, defer to remote_target method of same
9271         name.
9272         (remote_btrace_reset): Add remote_state paremeter.  Update all
9273         callers.
9274         (remote_async_inferior_event_handler). Pass down 'data'.
9275         (remote_new_objfile): Use get_current_remote_target.
9276         (remote_target::vcont_r_supported): New.
9277         (set_range_stepping): Use get_current_remote_target and
9278         remote_target::vcont_r_supported.
9279         (_initialize_remote): Don't allocate 'remote_state' and
9280         'stop_reply_queue' globals.
9281         * remote.h (struct remote_target): Forward declare.
9282         (getpkt, putpkt, remote_notif_get_pending_events): Add
9283         'remote_target' parameter.
9284
9285 2018-05-22  Pedro Alves  <palves@redhat.com>
9286
9287         * remote.c (vcont_builder): Now a class.  Make all data members
9288         private.
9289         (vcont_builder) <vcont_builder, restart, flush, push_action>:
9290         Declare methods.
9291         (vcont_builder_restart): Rename to ...
9292         (vcont_builder::restart): ... this.
9293         (vcont_builder_flush): Rename to ...
9294         (vcont_builder::flush): ... this.
9295         (vcont_builder_push_action): Rename to ...
9296         (vcont_builder::push_action): ... this.
9297         (remote_target::commit_resume): Adjust.
9298
9299 2018-05-22  Pedro Alves  <palves@redhat.com>
9300
9301         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
9302         (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
9303         (get_fixed_memory_packet_size): New.
9304         (get_memory_packet_size): Use it.
9305         (set_memory_packet_size): Don't override the config size with
9306         DEFAULT_MAX_MEMORY_PACKET_SIZE.
9307         (show_memory_packet_size): Use get_fixed_memory_packet_size.
9308         Don't refer to get_memory_packet_size if not connected to a remote
9309         target.  Show "(default)" if configured size is 0.
9310
9311 2018-05-22  Pedro Alves  <palves@redhat.com>
9312
9313         * remote.c (remote_target::mourn_inferior): Move
9314         discard_pending_stop_replies call here from ...
9315         (_initialize_remote): ... here.
9316
9317 2018-05-22  Pedro Alves  <palves@redhat.com>
9318
9319         * remote.c (compare_section_command): Remove set_general_process
9320         call.
9321
9322 2018-05-22  Pedro Alves  <palves@redhat.com>
9323
9324         * remote.c (struct packet_reg, struct remote_arch_state):
9325         Move higher up in the file.
9326         (remote_state) <m_arch_states>: Store remote_arch_state values
9327         instead of remote_arch_state pointers.
9328         (remote_state::get_remote_arch_state): Adjust.
9329
9330 2018-05-22  Pedro Alves  <palves@redhat.com>
9331
9332         * remote.c: Include <unordered_map>.
9333         (remote_state): Now a class.
9334         (remote_state) <get_remote_arch_state>: Declare method.
9335         <get_remote_arch_state>: New field.
9336         (remote_arch_state) <remote_arch_state>: Declare ctor.
9337         <regs>: Now a unique_ptr.
9338         (remote_gdbarch_data_handle): Delete.
9339         (get_remote_arch_state): Delete.
9340         (remote_state::get_remote_arch_state): New.
9341         (get_remote_state): Adjust to call remote_state's
9342         get_remote_arch_state method.
9343         (init_remote_state): Delete, bits factored out to ...
9344         (remote_arch_state::remote_arch_state): ... this new method.
9345         (get_remote_packet_size, get_memory_packet_size)
9346         (process_g_packet, remote_target::fetch_registers)
9347         (remote_target::prepare_to_store, store_registers_using_G)
9348         (remote_target::store_registers, remote_target::get_trace_status):
9349         Adjust to call remote_state's method.
9350         (_initialize_remote): Remove reference to
9351         remote_gdbarch_data_handle.
9352
9353 2018-05-22  Pedro Alves  <palves@redhat.com>
9354
9355         * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
9356         pread>: New method declarations.
9357         (remote_target::open_1): Adjust.
9358         (readahead_cache_invalidate): Rename to ...
9359         (readahead_cache::invalidate): ... this, and adjust to be a class
9360         method.
9361         (readahead_cache_invalidate_fd): Rename to ...
9362         (readahead_cache::invalidate_fd): ... this, and adjust to be a
9363         class method.
9364         (remote_hostio_pwrite): Adjust.
9365         (remote_hostio_pread_from_cache): Rename to ...
9366         (readahead_cache::pread): ... this, and adjust to be a class
9367         method.
9368         (remote_hostio_close): Adjust.
9369
9370 2018-05-22  Pedro Alves  <palves@redhat.com>
9371
9372         * remote.c (remote_hostio_close_cleanup): Delete.
9373         (class scoped_remote_fd): New.
9374         (remote_file_put, remote_file_get): Use it.
9375
9376 2018-05-22  Pedro Alves  <palves@redhat.com>
9377
9378         (struct vCont_action_support): Use bool and initialize all fields.
9379         (struct readahead_cache): Initialize all fields.
9380         (remote_state): Use bool and initialize all fields.
9381         (remote_state::remote_state, remote_state::~remote_state): New.
9382         (new_remote_state): Delete.
9383         (_initialize_remote): Use new to allocate remote_state.
9384
9385 2018-05-22  Pedro Alves  <palves@redhat.com>
9386             張俊芝  <zjz@zjz.name>
9387
9388         PR gdb/22973
9389         * c-exp.y: Include "c-support.h".
9390         (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
9391         of tolower.  Use c_ident_is_alpha to scan names.
9392         * c-lang.c: Include "c-support.h".
9393         (convert_ucn, convert_octal, convert_hex, convert_escape): Use
9394         ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
9395         * c-support.h: New file, with bits factored out from ...
9396         * cp-name-parser.y: ... this file.
9397         Include "c-support.h".
9398         (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
9399         c-support.h and renamed.
9400         (symbol_end, yylex): Adjust.
9401
9402 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
9403
9404         * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
9405         parameter type to CORE_ADDR.
9406         * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
9407         parameter type in declaration to CORE_ADDR.
9408         * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
9409         target_auxv_search to get AT_HWCAP and use the result to get the
9410         target description.
9411         * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
9412         to CORE_ADDR. Remove the cast of the return value to unsigned
9413         long. Fix error predicate of target_auxv_search.
9414         (ppc_linux_nat_target::read_description): Change the type of the
9415         hwcap variable to CORE_ADDR.
9416
9417 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
9418
9419         * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
9420         if the size of fpscr is larger than 32 bits.
9421
9422 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
9423
9424         * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
9425         (ppc32_linux_vsxregmap): New global.
9426         (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
9427         regcache_supply_regset, and regcache_collect_regset.
9428         * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
9429         * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
9430         (fetch_vsx_register, store_vsx_register): Remove.
9431         (fetch_vsx_registers): Add regno parameter. Get regset using
9432         ppc_linux_vsxregset. Use regset to supply registers.
9433         (store_vsx_registers): Add regno parameter. Get regset using
9434         ppc_linux_vsxregset. Use regset to collect registers.
9435         (fetch_register): Call fetch_vsx_registers instead of
9436         fetch_vsx_register.
9437         (store_register): Call store_vsx_registers instead of
9438         store_vsx_register.
9439         (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
9440         new regno parameter.
9441         (store_ppc_registers): Call store_vsx_registers with -1 for the
9442         new regno parameter.
9443         * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
9444         (ppc_collect_vsxregset): Remove.
9445
9446 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
9447
9448         * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
9449         offset fields.
9450         * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
9451         for vector register offset fields.
9452         (ppc64_fbsd_reg_offsets): Likewise.
9453         * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9454         to vector register offset fields.
9455         * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9456         to vector register offset fields.
9457         * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
9458         vector register offset fields.
9459         * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
9460         initializers for vector register offset fields.
9461         (rs6000_aix64_reg_offsets): Likewise.
9462         * rs6000-tdep.c (ppc_vrreg_offset): Remove.
9463         (ppc_supply_vrregset): Remove.
9464         (ppc_collect_vrregset): Remove.
9465         * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
9466         (ppc_linux_vrregset) : New function.
9467         (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
9468         (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
9469         (ppc32_linux_vrregset): Remove.
9470         (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
9471         and use result instead of ppc32_linux_vrregset.
9472         (ppc32_linux_reg_offsets): Remove initializers for vector register
9473         offset fields.
9474         (ppc64_linux_reg_offsets): Likewise.
9475         * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
9476         * ppc-linux-nat.c: Include regset.h.
9477         (gdb_vrregset_t): Adjust comment to account for little-endian
9478         mode.
9479         (supply_vrregset, fill_vrregset): Remove.
9480         (fetch_altivec_register, store_altivec_register): Remove.
9481         (fetch_altivec_registers): Add regno parameter. Get regset using
9482         ppc_linux_vrregset. Use regset to supply registers.
9483         (store_altivec_registers): Add regno parameter. Get regset using
9484         ppc_linux_vrregset. Use regset to collect registers.
9485         (fetch_register): Call fetch_altivec_registers instead of
9486         fetch_altivec_register.
9487         (store_register): Call store_altivec_registers instead of
9488         store_altivec_register.
9489         (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
9490         the new regno parameter.
9491         (store_ppc_registers): Call store_altivec_registers with -1 for
9492         the new regno parameter.
9493
9494 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
9495
9496         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
9497         (PPC_LINUX_SIZEOF_VSXREGSET): Define.
9498         * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
9499         (gdb_vrregset_t): Change array type size to
9500         PPC_LINUX_SIZEOF_VRREGSET.
9501         (gdb_vsxregset_t): Change array type size to
9502         PPC_LINUX_SIZEOF_VSXREGSET.
9503         * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
9504         Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
9505         PPC_LINUX_SIZEOF_VSXREGSET.
9506
9507 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
9508
9509         * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
9510         * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
9511         nat/ppc-linux.c.
9512         (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
9513         ppc_linux_target_wordsize with tid.
9514         (ppc_linux_nat_target::read_description): Call ppc_linux_target
9515         wordsize with tid.
9516         * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
9517         (ppc64_64bit_inferior_p): Add static and inline specifiers.
9518         (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
9519         tid parameter. Remove static specifier.
9520         * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
9521         (ppc_linux_target_wordsize): New declaration.
9522
9523 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
9524
9525         * arch/ppc-linux-common.c: New file.
9526         * arch/ppc-linux-common.h: New file.
9527         * arch/ppc-linux-tdesc.h: New file.
9528         * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
9529         * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
9530         (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
9531         arch/ppc-linux-tdesc.h.
9532         * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
9533         arch/ppc-linux-tdesc.h.
9534         (ppc_linux_nat_target::read_description): Remove target
9535         description matching code. Fill a ppc_linux_features struct and
9536         call ppc_linux_match_description with it. Move comment about ISA
9537         2.05 to ppc-linux-common.c.
9538         * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
9539         arch/ppc-linux-tdesc.h.
9540         (ppc_linux_core_read_description): Remove target description
9541         matching code. Fill a ppc_linux_features struct and call
9542         ppc_linux_match_description with it.
9543         * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
9544         (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
9545         (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
9546         (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
9547         (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
9548         (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
9549         (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
9550         (tdesc_powerpc_e500l): Remove.
9551
9552 2018-05-22  Joel Brobecker  <brobecker@adacore.com>
9553
9554         * ada-lang.c (catch_assert_command): Pass empty string instead
9555         of NULL for excep_string argument.
9556
9557 2018-05-22  Maciej W. Rozycki  <macro@mips.com>
9558
9559         * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
9560         the width of the requested register exceeds the width of the
9561         `ptrace' data type.
9562
9563 2018-05-21  Tom Tromey  <tom@tromey.com>
9564
9565         * printcmd.c (output_command): Remove.
9566         (output_command_const): Rename to output_command.
9567         * valprint.h (output_command): Rename from output_command_const.
9568         * tracepoint.c (trace_dump_actions): Call output_command.
9569
9570 2018-05-21  Tom Tromey  <tom@tromey.com>
9571
9572         * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
9573         (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
9574         * ada-lang.h (create_ada_exception_catchpoint): Update.
9575         * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
9576         std::string.
9577         (create_excep_cond_exprs, ~ada_catchpoint)
9578         (should_stop_exception, print_one_exception)
9579         (print_mention_exception, print_recreate_exception): Update.
9580         (ada_get_next_arg): Remove.
9581         (catch_ada_exception_command_split): Use std::string.  Change type
9582         of "excep_string", "cond_string".
9583         (catch_ada_exception_command): Update.
9584         (create_ada_exception_catchpoint): Change type of excep_string.
9585         (ada_exception_sal): Remove excep_string parameter.
9586         (~ada_catchpoint): Remove.
9587
9588 2018-05-21  Tom Tromey  <tom@tromey.com>
9589
9590         * ada-lang.c (ada_collect_symbol_completion_matches): Remove
9591         cleanup.
9592
9593 2018-05-21  Tom Tromey  <tom@tromey.com>
9594
9595         * ada-lang.c (ada_exception_message_1, ada_exception_message):
9596         Return unique_xmalloc_ptr.
9597         (print_it_exception): Update.
9598
9599 2018-05-21  Tom Tromey  <tom@tromey.com>
9600
9601         * tracepoint.c (trace_dump_actions): Use std::string.
9602
9603 2018-05-21  Tom Tromey  <tom@tromey.com>
9604
9605         * symfile.c (reread_symbols): Use std::string for original_name.
9606
9607 2018-05-21  Tom Tromey  <tom@tromey.com>
9608
9609         * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
9610         (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN.  Default
9611         constructor.
9612
9613 2018-05-20  Simon Marchi  <simon.marchi@polymtl.ca>
9614
9615         * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
9616         instance to...
9617         (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
9618         * objfiles.c (get_objfile_bfd_data): Allocate
9619         objfile_per_bfd_storage with obstack_new when allocating on
9620         obstack.
9621
9622 2018-05-20  Simon Marchi  <simon.marchi@ericsson.com>
9623
9624         * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
9625         OBSTACK_ZALLOC.
9626         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
9627         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
9628         * mdebugread.c (mdebug_build_psymtabs): Likewise.
9629         (add_pending): Likewise.
9630         (parse_symbol): Likewise.
9631         (parse_partial_symbols): Likewise.
9632         (psymtab_to_symtab_1): Likewise.
9633         (new_psymtab): Likewise.
9634         (elfmdebug_build_psymtabs): Likewise.
9635         * minsyms.c (terminate_minimal_symbol_table): Likewise.
9636         * objfiles.c (get_objfile_bfd_data): Likewise.
9637         (objfile_register_static_link): Likewise.
9638         * psymtab.c (allocate_psymtab): Likewise.
9639         * stabsread.c (read_member_functions): Likewise.
9640         * xcoffread.c (xcoff_end_psymtab): Likewise.
9641
9642 2018-05-20  Simon Marchi  <simon.marchi@ericsson.com>
9643
9644         * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
9645         compiler supports std::is_trivially_constructible.
9646         * common/poison.h: Include obstack.h.
9647         (IsMallocable): Define to is_trivially_constructible if the
9648         compiler supports it, define to true_type otherwise.
9649         (xobnew): New.
9650         (XOBNEW): Redefine.
9651         (xobnewvec): New.
9652         (XOBNEWVEC): Redefine.
9653         * gdb_obstack.h (obstack_zalloc): New.
9654         (OBSTACK_ZALLOC): Redefine.
9655         (obstack_calloc): New.
9656         (OBSTACK_CALLOC): Redefine.
9657         (obstack_new): New.
9658         * gdbarch.sh: Include gdb_obstack in gdbarch.h.
9659         (gdbarch_obstack): New declaration in gdbarch.h, definition in
9660         gdbarch.c.
9661         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
9662         obstack_calloc/obstack_zalloc.
9663         (gdbarch_obstack_zalloc): Remove.
9664         * target-descriptions.c (tdesc_data_init): Use obstack_new.
9665
9666 2018-05-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9667
9668         * stack.c (backtrace_command_1): Remove useless variable int i.
9669
9670 2018-05-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9671
9672         * stack.c (print_frame_info): Fix comment.
9673
9674 2018-05-18  Tom Tromey  <tom@tromey.com>
9675
9676         * dwarf2read.c (struct dwz_file): Add constructor, initializers.
9677         <dwz_bfd>: Now a gdb_bfd_ref_ptr.
9678         (~dwarf2_per_objfile): Update
9679         (dwarf2_get_dwz_file): Use new.
9680         * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
9681         unique_ptr.
9682
9683 2018-05-18  Tom Tromey  <tom@tromey.com>
9684
9685         * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
9686         unique_ptr.
9687         * dwarf2read.c (struct dwp_file): Add constructor and
9688         initializers.
9689         (open_and_init_dwp_file): Return a unique_ptr.
9690         (dwarf2_per_objfile, create_dwp_hash_table)
9691         (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
9692         (lookup_dwo_unit_in_dwp): Update.
9693         (open_and_init_dwp_file, get_dwp_file): Update.
9694
9695 2018-05-18  Tom Tromey  <tom@tromey.com>
9696
9697         * dwarf2read.c (dwarf2_per_objfile): Update.
9698         (struct mapped_index): Add initializers.
9699         (dwarf2_read_index): Use new.
9700         (dw2_symtab_iter_init): Update.
9701         * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
9702         unique_ptr.
9703
9704 2018-05-18  Simon Marchi  <simon.marchi@ericsson.com>
9705
9706         * dwarf2read.c (mapped_index) <total_size>: Remove.
9707
9708 2018-05-18  Simon Marchi  <simon.marchi@ericsson.com>
9709
9710         * unittests/format_pieces-selftests.c (test_format_specifier):
9711         Add ARI comments.
9712
9713 2018-05-18  Tom Tromey  <tom@tromey.com>
9714
9715         * c-typeprint.c (maybe_print_hole): New function.
9716         (c_print_type_struct_field_offset): Update.
9717         (c_type_print_base_struct_union): Call maybe_print_hole.
9718
9719 2018-05-17  Keith Seitz  <keiths@redhat.com>
9720
9721         * breakpoint.c (build_bpstat_chain): New function, moved from
9722         bpstat_stop_status.
9723         (bpstat_stop_status): Add optional parameter, `stop_chain'.
9724         If no stop chain is passed, call build_bpstat_chain to build it.
9725         * breakpoint.h (build_bpstat_chain): Declare.
9726         (bpstat_stop_status): Move documentation here from breakpoint.c.
9727         * infrun.c (handle_signal_stop): Before eliding inlined frames,
9728         build the stop chain and pass it to skip_inline_frames.
9729         Pass this stop chain to bpstat_stop_status.
9730         * inline-frame.c: Include breakpoint.h.
9731         (stopped_by_user_bp_inline_frame): New function.
9732         (skip_inline_frames): Add parameter `stop_chain'.
9733         Move documention to inline-frame.h.
9734         If non-NULL, use stopped_by_user_bp_inline_frame to determine
9735         whether the frame should be elided.
9736         * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
9737         Add moved documentation and update for new parameter.
9738
9739 2018-05-17  Simon Marchi  <simon.marchi@ericsson.com>
9740
9741         PR cli/14975
9742         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9743         unittests/format_pieces-selftests.c.
9744         * common/format.h (format_piece) <operator==>: New.
9745         (format_pieces) <operator[]>: Remove.
9746         * common/format.c (format_pieces::format_pieces): Handle \e.
9747         * unittests/format_pieces-selftests.c: New.
9748
9749 2018-05-17  Tom Tromey  <tom@tromey.com>
9750
9751         PR symtab/23010:
9752         * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
9753         (dw2_instantiate_symtab): Add skip_partial parameter.
9754         (dw2_find_last_source_symtab, dw2_map_expand_apply)
9755         (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
9756         (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
9757         (dw2_expand_symtabs_matching_one)
9758         (dw2_find_pc_sect_compunit_symtab)
9759         (dw2_debug_names_lookup_symbol)
9760         (dw2_debug_names_expand_symtabs_for_function): Update.
9761         (init_cutu_and_read_dies): Add skip_partial parameter.
9762         (process_psymtab_comp_unit, build_type_psymtabs_1)
9763         (process_skeletonless_type_unit, load_partial_comp_unit)
9764         (psymtab_to_symtab_1): Update.
9765         (load_full_comp_unit): Add skip_partial parameter.
9766         (process_imported_unit_die, dwarf2_read_addr_index)
9767         (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
9768         (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
9769         (read_signatured_type): Update.
9770
9771 2018-05-17  Simon Marchi  <simon.marchi@ericsson.com>
9772
9773         * value.c (release_value): Remove unused variable.
9774         (record_latest_value): Likewise.
9775         (access_value_history): Likewise.
9776         (preserve_values): Likewise.
9777
9778 2018-05-17  Tom Tromey  <tom@tromey.com>
9779
9780         * extension.h (struct ext_lang_type_printers) <py_type_printers>:
9781         Initialize.
9782
9783 2018-05-16  Maciej W. Rozycki  <macro@mips.com>
9784
9785         PR gdb/22286
9786         * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
9787         Also handle registers whose width is not a multiple of
9788         PTRACE_TYPE_RET.
9789         (linux_nat_trad_target::store_register): Likewise.
9790
9791 2018-05-16  Tom Tromey  <tom@tromey.com>
9792
9793         * gdbcore.h (core_bfd): Redefine.
9794         * corelow.c (core_target::close): Update.
9795         (core_target_open): Update.
9796         * progspace.h (struct program_space) <cbfd>: Now a
9797         gdb_bfd_ref_ptr.
9798
9799 2018-05-16  Tom Tromey  <tom@tromey.com>
9800
9801         PR cli/19551:
9802         * symfile-add-flags.h (enum symfile_add_flags)
9803         <SYMFILE_NOT_FILENAME>: New constant.
9804         * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME.  Get
9805         objfile name from BFD.
9806         (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
9807         * minidebug.c (find_separate_debug_file_in_section): Put
9808         ".gnu_debugdata" into BFD's file name.
9809
9810 2018-05-16  Simon Marchi  <simon.marchi@ericsson.com>
9811
9812         * regcache.c (regcache_read_ftype, regcache_write_ftype):
9813         Remove.
9814
9815 2018-05-15  Tamar Christina  <tamar.christina@arm.com>
9816
9817         PR binutils/21446
9818         * aarch64-tdep.c (aarch64_analyze_prologue,
9819         aarch64_software_single_step, aarch64_displaced_step_copy_insn):
9820         Indicate not interested in errors.
9821
9822 2018-05-15  Maciej W. Rozycki  <macro@mips.com>
9823
9824         * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
9825         Supply the MIPS_ZERO_REGNUM register.
9826
9827 2018-05-15  Maciej W. Rozycki  <macro@mips.com>
9828
9829         * mips-tdep.c (mask_address_var): Make variable static.
9830
9831 2018-05-14  Tom Tromey  <tom@tromey.com>
9832
9833         * dwarf2read.c (rust_union_quirks): Clear rust_unions.
9834
9835 2018-05-11  Andrew Burgess  <andrew.burgess@embecosm.com>
9836
9837         * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
9838         FXSAVE_ADDR for the mxcsr register.
9839
9840 2018-05-11  Max Filippov  <jcmvbkbc@gmail.com>
9841
9842         * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
9843
9844 2018-05-11  Pedro Alves  <palves@redhat.com>
9845
9846         * corelow.c (core_target) <core_target>: No longer inline.
9847         Initialize m_core_gdbarch, m_core_vec and build the section table
9848         here.
9849         <~core_target>: New.
9850         <core_gdbarch, get_core_register_section>: New methods.
9851         <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
9852         factored out from ...
9853         <core_data, core_vec, core_gdbarch>: ... these deleted globals.
9854         (core_ops): Delete.
9855         (sniff_core_bfd): Add gdbarch parameter.
9856         (core_close): Delete, merged into ...
9857         (core_target::close): ... here.  Delete self.
9858         (core_close_cleanup): Delete.
9859         (core_target_open): Allocate a core_target on the heap.  Use a
9860         unique_ptr instead of a cleanup.  Bits moved into the core_target
9861         ctor.  Adjust to use core_target methods instead of globals.
9862         (get_core_register_section): Rename to ...
9863         (core_target::get_core_register_section): ... this and adjust.
9864         (struct get_core_registers_cb_data): New.
9865         (get_core_registers_cb): Use it.  Use bool.
9866         (core_target::fetch_registers, core_target::files_info)
9867         (core_target::xfer_partial, core_target::read_description)
9868         (core_target::pid_to, core_target::thread_name): Adjust to
9869         reference class fields instead of globals.
9870         * target.h (struct target_ops_deleter, target_ops_up): New.
9871
9872 2018-05-11  Pedro Alves  <palves@redhat.com>
9873
9874         * corefile.c (core_file_command): Move to corelow.c.
9875         * corelow.c (the_core_target): Delete.
9876         (core_file_command): Moved from corefile.c.  Check exec_bfd
9877         instead of the_core_target.  Use target_detach instead of calling
9878         into the_core_target directly.
9879         (maybe_say_no_core_file_now): New.
9880         (core_target::detach): Use it.
9881         (_initialize_corelow): Remove references to the_core_target.
9882         * gdbcore.h (the_core_target): Delete.
9883
9884 2018-05-11  Tom Tromey  <tromey@redhat.com>
9885             Pedro Alves  <palves@redhat.com>
9886
9887         * corefile.c (core_bfd): Remove.
9888         * gdbcore.h (core_bfd): Now a macro.
9889         * progspace.h (struct program_space) <cbfd>: New field.
9890
9891 2018-05-11  Tom Tromey  <tom@tromey.com>
9892
9893         * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
9894         gdb::def_vector.
9895
9896 2018-05-10  Tom Tromey  <tom@tromey.com>
9897
9898         * configure: Rebuild.
9899         * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
9900
9901 2018-05-10  Joel Brobecker  <brobecker@adacore.com>
9902
9903         PR server/23158:
9904         * regformats/regdat.sh: Adjust script, following the addition
9905         of the new expedite_regs parameter to init_target_desc.
9906
9907 2018-05-10  Omair Javaid  <omair.javaid@linaro.org>
9908     
9909         PR gdb/23127
9910         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
9911         set_gdbarch_significant_addr_bit.
9912         * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
9913         set_gdbarch_significant_addr_bit.
9914         * utils.c (address_significant): Update to sign extend addr.
9915
9916 2018-05-09  Max Filippov  <jcmvbkbc@gmail.com>
9917
9918         * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
9919         (xtensa_linux_init_abi): Limit tdep->num_regs by
9920         tdep->num_nopriv_regs.
9921         * xtensa-tdep.c (xtensa_derive_tdep): Calculate
9922         tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
9923         not initialized.
9924
9925 2018-05-08  Simon Marchi  <simon.marchi@ericsson.com>
9926
9927         * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
9928
9929 2018-05-08  Andrew Burgess  <andrew.burgess@embecosm.com>
9930
9931         * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
9932         (I387_MXCSR_INIT_VAL): New constant.
9933         * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
9934         buffer if it was supplied by the inferior.
9935         * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
9936         (i387_xsave_get_clear_bv): New function.
9937         (i387_supply_xsave): Only read x87 control registers from the
9938         xsave buffer if the feature is enabled, and the state will have
9939         been written, otherwise, provide a suitable default.
9940         (i387_collect_xsave): Pre-clear all registers in xsave buffer,
9941         including x87 control registers.  Update control registers if they
9942         have changed from the default value, and mark features as enabled
9943         as required.
9944         * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
9945
9946 2018-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
9947
9948         * spu-tdep.c (info_spu_event_command): Fix output formatting.
9949
9950 2018-05-07  Tom Tromey  <tom@tromey.com>
9951
9952         * configure: Rebuild.
9953         * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
9954
9955 2018-05-07  Tom Tromey  <tom@tromey.com>
9956
9957         PR tdep/20362:
9958         * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
9959         bit.  Use correct value for VDIV.
9960
9961 2018-05-04  Tom Tromey  <tom@tromey.com>
9962
9963         * configure: Rebuild.
9964         * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
9965
9966 2018-05-04  Tom Tromey  <tom@tromey.com>
9967
9968         * linux-record.c (record_linux_system_call) <case
9969         RECORD_SYS_RECVFROM>: Add "break".
9970
9971 2018-05-04  Tom Tromey  <tom@tromey.com>
9972
9973         * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
9974         Add missing "break".
9975         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
9976         Add missing "break".
9977
9978 2018-05-04  Tom Tromey  <tom@tromey.com>
9979
9980         * rs6000-tdep.c (ppc_process_record_op4)
9981         (ppc_process_record_op63): Add fall-through comment.
9982
9983 2018-05-04  Tom Tromey  <tom@tromey.com>
9984
9985         * i386-tdep.c (i386_process_record): Add fall-through comment.
9986
9987 2018-05-04  Tom Tromey  <tom@tromey.com>
9988
9989         * stabsread.c (define_symbol) <case 'p'>: Add fall-through
9990         comment.
9991
9992 2018-05-04  Tom Tromey  <tom@tromey.com>
9993
9994         * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
9995         * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
9996         * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
9997         comment.
9998         * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
9999         comment.
10000         * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
10001         comment.
10002
10003 2018-05-04  Tom Tromey  <tom@tromey.com>
10004
10005         * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
10006
10007 2018-05-04  Tom Tromey  <tom@tromey.com>
10008
10009         * s390-tdep.c (s390_process_record): Fix fall-through comments.
10010         * xcoffread.c (scan_xcoff_symtab): Move comment later.
10011         * symfile.c (section_is_mapped): Fix fall-through comment.
10012         * stabsread.c (define_symbol, read_member_functions): Fix
10013         fall-through comment.
10014         * s390-linux-tdep.c (s390_process_record): Fix fall-through
10015         comment.
10016         * remote.c (remote_wait_as): Fix fall-through comment.
10017         * p-exp.y (yylex): Fix fall-through comment.
10018         * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
10019         comment.
10020         * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
10021         * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
10022         * jv-exp.y (yylex): Fix fall-through comment.
10023         * go-exp.y (lex_one_token): Fix fall-through comment.
10024         * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
10025         fall-through comment.
10026         * f-exp.y (yylex): Fix fall-through comment.
10027         * dwarf2read.c (process_die): Fix fall-through comments.
10028         * dbxread.c (process_one_symbol): Fix fall-through comment.
10029         * d-exp.y (lex_one_token): Fix fall-through comment.
10030         * cp-name-parser.y (yylex): Fix fall-through comment.
10031         * coffread.c (coff_symtab_read): Fix fall-through comment.
10032         * c-exp.y (lex_one_token): Fix fall-through comment.
10033         * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
10034         comment.
10035         * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
10036         comment.
10037
10038 2018-05-04  Tom Tromey  <tom@tromey.com>
10039
10040         PR python/22730:
10041         * NEWS: Mention gdb.execute change.
10042         * gdbcmd.h (execute_control_command): Don't declare.
10043         * python/python.c (execute_gdb_command): Use read_command_lines_1,
10044         execute_control_commands, execute_control_commands_to_string.
10045         * cli/cli-script.h (execute_control_commands)
10046         (execute_control_commands_to_string): Declare.
10047         (execute_control_command): Add from_tty parameter.
10048         * cli/cli-script.c (execute_control_commands)
10049         (execute_control_commands_to_string): New functions.
10050         (execute_user_command): Use execute_control_commands.
10051         (execute_control_command_1): Add "from_tty" parameter.  Update.
10052         (execute_control_command): Likewise.
10053
10054 2018-05-04  Tom Tromey  <tom@tromey.com>
10055
10056         PR python/22731:
10057         * NEWS: Mention that breakpoint commands are writable.
10058         * python/py-breakpoint.c (bppy_set_commands): New function.
10059         (breakpoint_object_getset) <"commands">: Use it.
10060
10061 2018-05-04  Tom Tromey  <tom@tromey.com>
10062
10063         * tracepoint.c (actions_command): Update.
10064         * mi/mi-cmd-break.c (mi_command_line_array)
10065         (mi_command_line_array_cnt, mi_command_line_array_ptr)
10066         (mi_read_next_line): Remove.
10067         (mi_cmd_break_commands): Update.
10068         * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
10069         function_view.
10070         * cli/cli-script.c (get_command_line): Update.
10071         (process_next_line): Use function_view.  Constify.
10072         (recurse_read_control_structure, read_command_lines)
10073         (read_command_lines_1): Change argument types to function_view.
10074         (do_define_command, document_command): Update.
10075         * breakpoint.h (check_tracepoint_command): Don't declare.
10076         * breakpoint.c (check_tracepoint_command): Remove.
10077         (commands_command_1, create_tracepoint_from_upload): Update.
10078
10079 2018-05-04  Tom Tromey  <tom@tromey.com>
10080
10081         PR gdb/11750:
10082         * cli/cli-script.h (enum command_control_type) <define_control>:
10083         New constant.
10084         * cli/cli-script.c (multi_line_command_p): Handle define_control.
10085         (build_command_line, execute_control_command_1)
10086         (process_next_line): Likewise.
10087         (do_define_command): New function, extracted from define_command.
10088         (define_command): Use it.
10089
10090 2018-05-04  Tom Tromey  <tom@tromey.com>
10091
10092         * tracepoint.c (actions_command): Update.
10093         * cli/cli-script.h (read_command_lines): Update.
10094         * cli/cli-script.c (read_command_lines): Constify prompt_arg.
10095         (MAX_TMPBUF): Remove define.
10096         (define_command): Use string_printf.
10097         (document_command): Likewise.
10098         * breakpoint.c (commands_command_1): Update.
10099
10100 2018-05-04  Tom Tromey  <tom@tromey.com>
10101
10102         * top.c (execute_command): Update.
10103         * cli/cli-script.h (print_command_lines): Now varargs.
10104         * cli/cli-script.c (print_command_lines): Now varargs.
10105         (execute_control_command_1) <case while_control, case if_control>:
10106         Update.
10107
10108 2018-05-04  Tom Tromey  <tom@tromey.com>
10109
10110         * tracepoint.c (all_tracepoint_actions): Rename from
10111         all_tracepoint_actions_and_cleanup.  Change return type.
10112         (actions_command, encode_actions_1, encode_actions)
10113         (trace_dump_actions, tdump_command): Update.
10114         * remote.c (remote_download_command_source): Update.
10115         * python/python.c (gdbpy_eval_from_control_command)
10116         (python_command, python_interactive_command): Update.
10117         * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10118         * guile/guile.c (guile_command)
10119         (gdbscm_eval_from_control_command, guile_command): Update.
10120         * compile/compile.c (compile_code_command)
10121         (compile_print_command, compile_to_object): Update.
10122         * cli/cli-script.h (struct command_lines_deleter): New.
10123         (counted_command_line): New typedef.
10124         (struct command_line): Add constructor, destructor.
10125         <body_list>: Remove.
10126         <body_list_0, body_list_1>: New members.
10127         (command_line_up): Remove typedef.
10128         (read_command_lines, read_command_lines_1, get_command_line):
10129         Update.
10130         (copy_command_lines): Don't declare.
10131         * cli/cli-script.c (build_command_line): Use "new".
10132         (get_command_line): Return counted_command_line.
10133         (print_command_lines, execute_user_command)
10134         (execute_control_command_1, while_command, if_command): Update.
10135         (realloc_body_list): Remove.
10136         (process_next_line, recurse_read_control_structure): Update.
10137         (read_command_lines, read_command_lines_1): Return counted_command_line.
10138         (free_command_lines): Use "delete".
10139         (copy_command_lines): Remove.
10140         (define_command, document_command, show_user_1): Update.
10141         * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
10142         a counted_command_line.
10143         * breakpoint.h (counted_command_line): Remove typedef.
10144         (breakpoint_set_commands): Update.
10145         * breakpoint.c (check_no_tracepoint_commands)
10146         (validate_commands_for_breakpoint): Update.
10147         (breakpoint_set_commands): Change commands to be a
10148         counted_command_line.
10149         (commands_command_1, update_dprintf_command_list)
10150         (create_tracepoint_from_upload): Update.
10151
10152 2018-05-04  Tom Tromey  <tom@tromey.com>
10153
10154         * cli/cli-decode.h (cmd_list_element): New constructor.
10155         (~cmd_list_element): New destructor.
10156         (struct cmd_list_element): Add initializers.
10157         * cli/cli-decode.c (do_add_cmd): Use "new".
10158         (delete_cmd): Use "delete".
10159
10160 2018-05-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
10161             Pedro Alves <palves@redhat.com>
10162
10163         PR breakpoints/19806 and support for PR external/20207.
10164         * NEWS: Mention Aarch64 watchpoint improvements.
10165         * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
10166         watchpoints and PR external/20207 watchpoints.
10167         * nat/aarch64-linux-hw-point.c
10168         (kernel_supports_any_contiguous_range): New.
10169         (aarch64_watchpoint_offset): New.
10170         (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
10171         (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
10172         (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
10173         (aarch64_align_watchpoint): New parameters aligned_offset_p and
10174         next_addr_orig_p.  Support PR external/20207 watchpoints.
10175         (aarch64_downgrade_regs): New.
10176         (aarch64_dr_state_insert_one_point): New parameters offset and
10177         addr_orig.
10178         (aarch64_dr_state_remove_one_point): Likewise.
10179         (aarch64_handle_breakpoint): Update caller.
10180         (aarch64_handle_aligned_watchpoint): Likewise.
10181         (aarch64_handle_unaligned_watchpoint): Support addr_orig and
10182         aligned_offset.
10183         (aarch64_linux_set_debug_regs): Remove const from state.  Call
10184         aarch64_downgrade_regs.
10185         (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
10186         * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
10187         (DR_CONTROL_MASK): ... this.
10188         (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
10189         (unsigned int aarch64_watchpoint_offset): New prototype.
10190         (aarch64_linux_set_debug_regs): Remove const from state.
10191         * utils.c (align_up, align_down): Move to ...
10192         * common/common-utils.c (align_up, align_down): ... here.
10193         * utils.h (align_up, align_down): Move to ...
10194         * common/common-utils.h (align_up, align_down): ... here.
10195
10196 2018-05-04  Joel Brobecker  <brobecker@adacore.com>
10197
10198         * sparc-tdep.c (sparc_structure_return_p): Re-implement to
10199         match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
10200         (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
10201         Re-implement to match the ABI as summarized in GCC's
10202         gcc/config/sparc/sparc.c.  All callers updated.
10203         (sparc32_store_arguments): Remove assertion.
10204
10205 2018-05-04  Tom Tromey  <tom@tromey.com>
10206
10207         * printcmd.c: Don't include tui.h.
10208         (decode_format): Use skip_spaces.
10209
10210 2018-05-04  Tom Tromey  <tom@tromey.com>
10211
10212         PR gdb/22619:
10213         * printcmd.c (last_count): New global.
10214         (x_command): Use saved count when repeating.
10215
10216 2018-05-04  Tom Tromey  <tom@tromey.com>
10217
10218         * nto-procfs.c (do_closedir_cleanup): Remove.
10219         (procfs_pidlist): Use gdb_dir_up.
10220         * procfs.c (do_closedir_cleanup): Remove.
10221         (proc_update_threads): Use gdb_dir_up.
10222         * common/filestuff.h (struct gdb_dir_deleter): New.
10223         (gdb_dir_up): New typedef.
10224
10225 2018-05-04  Tom Tromey  <tom@tromey.com>
10226
10227         * ada-lang.c (print_mention_exception): Use std::string.
10228
10229 2018-05-04  Tom Tromey  <tom@tromey.com>
10230
10231         * ada-lang.c (create_excep_cond_exprs): Update.
10232         (ada_exception_catchpoint_cond_string): Use std::string.
10233
10234 2018-05-04  Tom Tromey  <tom@tromey.com>
10235
10236         * ada-lang.c (xget_renaming_scope): Return std::string.
10237         (old_renaming_is_invisible): Update.
10238
10239 2018-05-04  Tom Tromey  <tom@tromey.com>
10240
10241         * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
10242         (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
10243
10244 2018-05-04  Ulrich Weigand  <uweigand@de.ibm.com>
10245
10246         * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
10247
10248 2018-05-04  Tom Tromey  <tom@tromey.com>
10249
10250         * remote.c (remote_query_supported_append): Change type.
10251         (remote_check_symbols): Update.
10252
10253 2018-05-04  Paul Pluzhnikov  <ppluzhnikov@google.com>
10254
10255         PR gdb/11420
10256         * configure.ac: Prepend libpython.
10257         * python/python-config.py: Likewise.
10258         * configure: Regenerate.
10259
10260 2018-05-03  Simon Marchi  <simon.marchi@ericsson.com>
10261
10262         * Makefile.in (%.c: %.l): Use -t instead of --stdout.
10263
10264 2018-05-03  Pedro Alves  <palves@redhat.com>
10265
10266         * s390-linux-nat.c
10267         (s390_linux_nat_target::have_continuable_watchpoint): Mark with
10268         override.  Write 'true' instead of '1'.
10269         (s390_linux_nat_target::watchpoint_addr_within_range): Remove
10270         declaration.
10271
10272 2018-05-02  Pedro Alves  <palves@redhat.com>
10273
10274         * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
10275         add_inf_child_target.
10276         * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
10277         add_inf_child_target.
10278         * aix-thread.c (aix_thread_target_info): New.
10279         (aix_thread_target) <shortname, longname, doc>: Delete.
10280         <info>: New.
10281         * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
10282         add_inf_child_target.
10283         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
10284         add_inf_child_target.
10285         * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
10286         add_inf_child_target.
10287         * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
10288         add_inf_child_target.
10289         * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
10290         add_inf_child_target.
10291         * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
10292         add_inf_child_target.
10293         * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
10294         add_inf_child_target.
10295         * arm-linux-nat.c (_initialize_arm_linux_nat): Use
10296         add_inf_child_target.
10297         * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
10298         add_inf_child_target.
10299         * bfd-target.c (target_bfd_target_info): New.
10300         (target_bfd) <shortname, longname, doc>: Delete.
10301         <info>: New.
10302         * bsd-kvm.c (bsd_kvm_target_info): New.
10303         (bsd_kvm_target) <shortname, longname, doc>: Delete.
10304         <info>: New.
10305         (bsd_kvm_target::open): Rename to ...
10306         (bsd_kvm_target_open): ... this.  Adjust.
10307         * bsd-uthread.c (bsd_uthread_target_info): New.
10308         (bsd_uthread_target) <shortname, longname, doc>: Delete.
10309         <info>: New.
10310         * corefile.c (core_file_command): Adjust.
10311         * corelow.c (core_target_info): New.
10312         (core_target) <shortname, longname, doc>: Delete.
10313         <info>: New.
10314         (core_target::open): Rename to ...
10315         (core_target_open): ... this.  Adjust.
10316         * ctf.c (ctf_target_info): New.
10317         (ctf_target) <shortname, longname, doc>: Delete.
10318         <info>: New.
10319         (ctf_target::open): Rename to ...
10320         (ctf_target_open): ... this.
10321         (_initialize_ctf): Adjust.
10322         * exec.c (exec_target_info): New.
10323         (exec_target) <shortname, longname, doc>: Delete.
10324         <info>: New.
10325         (exec_target::open): Rename to ...
10326         (exec_target_open): ... this.
10327         * gdbcore.h (core_target_open): Declare.
10328         * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
10329         * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
10330         add_inf_child_target.
10331         * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
10332         add_inf_child_target.
10333         * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
10334         add_inf_child_target.
10335         * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
10336         add_inf_child_target.
10337         * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
10338         add_inf_child_target.
10339         * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
10340         add_inf_child_target.
10341         * i386-linux-nat.c (_initialize_i386_linux_nat): Use
10342         add_inf_child_target.
10343         * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
10344         add_inf_child_target.
10345         * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
10346         add_inf_child_target.
10347         * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
10348         add_inf_child_target.
10349         * inf-child.c (inf_child_target_info): New.
10350         (inf_child_target::info): New.
10351         (inf_child_open_target): Remove 'target' parameter.  Use
10352         get_native_target instead.
10353         (inf_child_target::open): Delete.
10354         (add_inf_child_target): New.
10355         * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
10356         Delete.
10357         <info>: New.
10358         (add_inf_child_target): Declare.
10359         (inf_child_open_target): Declare.
10360         * linux-thread-db.c (thread_db_target_info): New.
10361         (thread_db_target) <shortname, longname, doc>: Delete.
10362         <info>: New.
10363         * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
10364         add_inf_child_target.
10365         * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
10366         add_inf_child_target.
10367         * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
10368         add_inf_child_target.
10369         * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
10370         add_inf_child_target.
10371         * make-target-delegates (print_class): Adjust.
10372         * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
10373         add_inf_child_target.
10374         * mips-linux-nat.c (_initialize_mips_linux_nat): Use
10375         add_inf_child_target.
10376         * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
10377         add_inf_child_target.
10378         * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
10379         add_inf_child_target.
10380         * nto-procfs.c (nto_native_target_info): New.
10381         (nto_procfs_target_native) <shortname, longname, doc>:
10382         Delete.
10383         <info>: New.
10384         (nto_procfs_target_info): New.
10385         (nto_procfs_target_procfs) <shortname, longname, doc>:
10386         Delete.
10387         <info>: New.
10388         (init_procfs_targets): Adjust.
10389         * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
10390         add_inf_child_target.
10391         * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
10392         add_inf_child_target.
10393         * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
10394         add_inf_child_target.
10395         * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
10396         add_inf_child_target.
10397         * ravenscar-thread.c (ravenscar_target_info): New.
10398         (ravenscar_thread_target) <shortname, longname, doc>:
10399         Delete.
10400         <info>: New.
10401         * record-btrace.c (record_btrace_target_info):
10402         (record_btrace_target) <shortname, longname, doc>: Delete.
10403         <info>: New.
10404         (record_btrace_target::open): Rename to ...
10405         (record_btrace_target_open): ... this.  Adjust.
10406         * record-full.c (record_longname, record_doc): New.
10407         (record_full_base_target) <shortname, longname, doc>: Delete.
10408         <info>: New.
10409         (record_full_target_info): New.
10410         (record_full_target): <shortname>: Delete.
10411         <info>: New.
10412         (record_full_core_open_1, record_full_open_1): Update comments.
10413         (record_full_base_target::open): Rename to ...
10414         (record_full_open): ... this.
10415         (cmd_record_full_restore): Update.
10416         (_initialize_record_full): Update.
10417         * remote-sim.c (remote_sim_target_info): New.
10418         (gdbsim_target) <shortname, longname, doc>: Delete.
10419         <info>: New.
10420         (gdbsim_target::open): Rename to ...
10421         (gdbsim_target_open): ... this.
10422         (_initialize_remote_sim): Adjust.
10423         * remote.c (remote_doc): New.
10424         (remote_target_info): New.
10425         (remote_target) <shortname, longname, doc>: Delete.
10426         <info>: New.
10427         (extended_remote_target_info): New.
10428         (extended_remote_target) <shortname, longname, doc>: Delete.
10429         <info>: New.
10430         (remote_target::open_1): Make static.  Adjust.
10431         * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
10432         * s390-linux-nat.c (_initialize_s390_nat): Use
10433         add_inf_child_target.
10434         * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
10435         add_inf_child_target.
10436         * sol-thread.c (thread_db_target_info): New.
10437         (sol_thread_target) <shortname, longname, doc>: Delete.
10438         <info>: New.
10439         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
10440         add_inf_child_target.
10441         * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
10442         add_inf_child_target.
10443         * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
10444         add_inf_child_target.
10445         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
10446         add_inf_child_target.
10447         * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
10448         add_inf_child_target.
10449         * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
10450         add_inf_child_target.
10451         * spu-linux-nat.c (_initialize_spu_nat): Use
10452         add_inf_child_target.
10453         * spu-multiarch.c (spu_multiarch_target_info): New.
10454         (spu_multiarch_target) <shortname, longname, doc>: Delete.
10455         <info>: New.
10456         * target-delegates.c: Regenerate.
10457         * target.c: Include <unordered_map>.
10458         (target_ops_p): Delete.
10459         (DEF_VEC_P(target_ops_p)): Delete.
10460         (target_factories): New.
10461         (test_target_info): New.
10462         (test_target_ops::info): New.
10463         (open_target): Adjust to use target_factories.
10464         (add_target_with_completer): Rename to ...
10465         (add_target): ... this.  Change prototype.  Register target_info
10466         and open callback in target_factories.  Register target_info in
10467         command context instead of target_ops.
10468         (add_target): Delete old implementation.
10469         (add_deprecated_target_alias): Change prototype.  Adjust.
10470         (the_native_target): New.
10471         (set_native_target, get_native_target): New.
10472         (find_default_run_target): Use the_native_target.
10473         (find_attach_target, find_run_target): Simplify.
10474         (target_ops::open): Delete.
10475         (dummy_target_info): New.
10476         (dummy_target::shortname, dummy_target::longname)
10477         (dummy_target::doc): Delete.
10478         (dummy_target::info): New.
10479         (debug_target::shortname, debug_target::longname)
10480         (debug_target::doc): Delete.
10481         (debug_target::info): New.
10482         * target.h (struct target_info): New.
10483         (target_ops::~target_ops): Add comment.
10484         (target_ops::info): New.
10485         (target_ops::shortname, target_ops::longname, target_ops::doc): No
10486         longer virtual.  Implement in terms of target_info.
10487         (set_native_target, get_native_target): Declare.
10488         (target_open_ftype): New.
10489         (add_target, add_target_with_completer)
10490         (add_deprecated_target_alias): Change prototype.
10491         (test_target) <shortname, longname, doc>: Delete.
10492         <info>: New.
10493         * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
10494         add_inf_child_target.
10495         * tracefile-tfile.c (tfile_target_info): New.
10496         (tfile_target) <shortname, longname, doc>: Delete.
10497         <info>: New.
10498         (tfile_target::open): Rename to ...
10499         (tfile_target_open): ... this.
10500         (_initialize_tracefile_tfile): Adjust.
10501         * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
10502         add_inf_child_target.
10503         * windows-nat.c (_initialize_windows_nat): Use
10504         add_inf_child_target.
10505         * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
10506         add_inf_child_target.
10507
10508 2018-05-02  Pedro Alves  <palves@redhat.com>
10509
10510         * linux-nat.h (linux_nat_target) <low_new_thread,
10511         low_delete_thread, low_new_fork, low_forget_process,
10512         low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
10513         New virtual methods.
10514         (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10515         (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
10516         (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
10517         (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10518         (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
10519         Delete.
10520         * linux-fork.c (delete_fork): Adjust to call low method.
10521         * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
10522         (linux_nat_new_fork, linux_nat_forget_process_hook)
10523         (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
10524         (linux_nat_status_is_event):
10525         (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
10526         (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
10527         to call low method.
10528         (sigtrap_is_event): Rename to ...
10529         (linux_nat_target::low_status_is_event): ... this.
10530         (linux_nat_set_status_is_event): Delete.
10531         (save_stop_reason, linux_nat_wait_1)
10532         (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
10533         low methods.
10534         (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10535         (linux_nat_set_new_fork, linux_nat_set_forget_process)
10536         (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10537         (linux_nat_set_prepare_to_resume): Delete.
10538         * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
10539         low virtual methods.
10540         * amd64-linux-nat.c: Likewise.
10541         * arm-linux-nat.c: Likewise.
10542         * i386-linux-nat.c: Likewise.
10543         * ia64-linux-nat.c: Likewise.
10544         * mips-linux-nat.c: Likewise.
10545         * ppc-linux-nat.c: Likewise.
10546         * s390-linux-nat.c: Likewise.
10547         * sparc64-linux-nat.c: Likewise.
10548         * x86-linux-nat.c: Likewise.
10549         * x86-linux-nat.h: Include "nat/x86-linux.h".
10550         (x86_linux_nat_target) <low_new_fork, low_forget_process,
10551         low_prepare_to_resume, low_new_thread, low_delete_thread>:
10552         Override methods.
10553
10554 2018-05-02  Pedro Alves  <palves@redhat.com>
10555
10556         * target.h (target_ops)
10557         <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10558         stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
10559         stopped_by_watchpoint, have_continuable_watchpoint,
10560         stopped_data_address, watchpoint_addr_within_range,
10561         can_accel_watchpoint_condition, can_run, thread_alive,
10562         has_all_memory, has_memory, has_stack, has_registers,
10563         has_execution, can_async_p, is_async_p, supports_non_stop,
10564         always_non_stop_p, can_execute_reverse, supports_multi_process,
10565         supports_enable_disable_tracepoint,
10566         supports_disable_randomization, supports_string_tracing,
10567         supports_evaluation_of_breakpoint_conditions,
10568         can_run_breakpoint_commands, filesystem_is_local,
10569         can_download_tracepoint, get_trace_state_variable_value,
10570         set_trace_notes, get_tib_address, use_agent, can_use_agent,
10571         record_is_replaying, record_will_replay,
10572         augmented_libraries_svr4_read>: Adjust to return bool.
10573         * aarch64-linux-nat.c: All implementations adjusted.
10574         * aix-thread.c: All implementations adjusted.
10575         * arm-linux-nat.c: All implementations adjusted.
10576         * breakpoint.c: All implementations adjusted.
10577         * bsd-kvm.c: All implementations adjusted.
10578         * bsd-uthread.c: All implementations adjusted.
10579         * corelow.c: All implementations adjusted.
10580         * ctf.c: All implementations adjusted.
10581         * darwin-nat.c: All implementations adjusted.
10582         * darwin-nat.h: All implementations adjusted.
10583         * exec.c: All implementations adjusted.
10584         * fbsd-nat.c: All implementations adjusted.
10585         * fbsd-nat.h: All implementations adjusted.
10586         * gnu-nat.c: All implementations adjusted.
10587         * gnu-nat.h: All implementations adjusted.
10588         * go32-nat.c: All implementations adjusted.
10589         * ia64-linux-nat.c: All implementations adjusted.
10590         * inf-child.c: All implementations adjusted.
10591         * inf-child.h: All implementations adjusted.
10592         * inf-ptrace.c: All implementations adjusted.
10593         * inf-ptrace.h: All implementations adjusted.
10594         * linux-nat.c: All implementations adjusted.
10595         * linux-nat.h: All implementations adjusted.
10596         * mips-linux-nat.c: All implementations adjusted.
10597         * nto-procfs.c: All implementations adjusted.
10598         * ppc-linux-nat.c: All implementations adjusted.
10599         * procfs.c: All implementations adjusted.
10600         * ravenscar-thread.c: All implementations adjusted.
10601         * record-btrace.c: All implementations adjusted.
10602         * record-full.c: All implementations adjusted.
10603         * remote-sim.c: All implementations adjusted.
10604         * remote.c: All implementations adjusted.
10605         * s390-linux-nat.c: All implementations adjusted.
10606         * sol-thread.c: All implementations adjusted.
10607         * spu-multiarch.c: All implementations adjusted.
10608         * target-delegates.c: All implementations adjusted.
10609         * target.c: All implementations adjusted.
10610         * target.h: All implementations adjusted.
10611         * tracefile-tfile.c: All implementations adjusted.
10612         * tracefile.c: All implementations adjusted.
10613         * tracefile.h: All implementations adjusted.
10614         * windows-nat.c: All implementations adjusted.
10615         * x86-linux-nat.h: All implementations adjusted.
10616         * x86-nat.h: All implementations adjusted.
10617
10618 2018-05-02  Pedro Alves  <palves@redhat.com>
10619
10620         * make-target-delegates (scan_target_h): Don't trim lines here.
10621         Replace sequences of tabs and/or whitespace with a single
10622         whitespace.
10623         (top level, parsing methods): Trim each line before processing it
10624         here.
10625
10626 2018-05-02  Pedro Alves  <palves@redhat.com>
10627             John Baldwin  <jhb@freebsd.org>
10628
10629         * target.h (enum strata) <debug_stratum>: New.
10630         (struct target_ops) <all delegation methods>: Replace by C++
10631         virtual methods, and drop "to_" prefix.  All references updated
10632         throughout.
10633         <to_shortname, to_longname, to_doc, to_data,
10634         to_have_steppable_watchpoint, to_have_continuable_watchpoint,
10635         to_has_thread_control, to_attach_no_wait>: Delete, replaced by
10636         virtual methods.  All references updated throughout.
10637         <can_attach, supports_terminal_ours, can_create_inferior,
10638         get_thread_control_capabilities, attach_no_wait>: New
10639         virtual methods.
10640         <insert_breakpoint, remove_breakpoint>: Now
10641         TARGET_DEFAULT_NORETURN methods.
10642         <info_proc>: Now returns bool.
10643         <to_magic>: Delete.
10644         (OPS_MAGIC): Delete.
10645         (current_target): Delete.  All references replaced by references
10646         to ...
10647         (target_stack): ... this.  New.
10648         (target_shortname, target_longname): Adjust.
10649         (target_can_run): Now a function declaration.
10650         (default_child_has_all_memory, default_child_has_memory)
10651         (default_child_has_stack, default_child_has_registers)
10652         (default_child_has_execution): Remove target_ops parameter.
10653         (complete_target_initialization): Delete.
10654         (memory_breakpoint_target): New template class.
10655         (test_target_ops): Refactor as a C++ class with virtual methods.
10656         * make-target-delegates (NAME_PART): Tighten.
10657         (POINTER_PART, CP_SYMBOL): New.
10658         (SIMPLE_RETURN_PART): Reimplement.
10659         (VEC_RETURN_PART): Expect less.
10660         (RETURN_PART, VIRTUAL_PART): New.
10661         (METHOD): Adjust to C++ virtual methods.
10662         (scan_target_h): Remove reference to C99.
10663         (dname): Output "target_ops::" prefix.
10664         (write_function_header): Adjust to output a C++ class method.
10665         (write_declaration): New.
10666         (write_delegator): Adjust to output a C++ class method.
10667         (tdname): Output "dummy_target::" prefix.
10668         (write_tdefault, write_debugmethod): Adjust to output a C++ class
10669         method.
10670         (tdefault_names, debug_names): Delete.
10671         (return_types, tdefaults, styles, argtypes_array): New.
10672         (top level): All methods are delegators.
10673         (print_class): New.
10674         (top level): Print dummy_target and debug_target classes.
10675         * target-delegates.c: Regenerate.
10676         * target-debug.h (target_debug_print_enum_info_proc_what)
10677         (target_debug_print_thread_control_capabilities)
10678         (target_debug_print_thread_info_p): New.
10679         * target.c (dummy_target): Delete.
10680         (the_dummy_target, the_debug_target): New.
10681         (target_stack): Now extern.
10682         (set_targetdebug): Push/unpush debug target.
10683         (default_child_has_all_memory, default_child_has_memory)
10684         (default_child_has_stack, default_child_has_registers)
10685         (default_child_has_execution): Remove target_ops parameter.
10686         (complete_target_initialization): Delete.
10687         (add_target_with_completer): No longer call
10688         complete_target_initialization.
10689         (target_supports_terminal_ours): Use regular delegation.
10690         (update_current_target): Delete.
10691         (push_target): No longer check magic number.  Don't call
10692         update_current_target.
10693         (unpush_target): Don't call update_current_target.
10694         (target_is_pushed): No longer check magic number.
10695         (target_require_runnable): Skip for all stratums over
10696         process_stratum.
10697         (target_ops::info_proc): New.
10698         (target_info_proc): Use find_target_at and
10699         find_default_run_target.
10700         (target_supports_disable_randomization): Use regular delegation.
10701         (target_get_osdata): Use find_target_at.
10702         (target_ops::open, target_ops::close, target_ops::can_attach)
10703         (target_ops::attach, target_ops::can_create_inferior)
10704         (target_ops::create_inferior, target_ops::can_run)
10705         (target_can_run): New.
10706         (default_fileio_target): Use regular delegation.
10707         (target_ops::fileio_open, target_ops::fileio_pwrite)
10708         (target_ops::fileio_pread, target_ops::fileio_fstat)
10709         (target_ops::fileio_close, target_ops::fileio_unlink)
10710         (target_ops::fileio_readlink): New.
10711         (target_fileio_open_1, target_fileio_unlink)
10712         (target_fileio_readlink): Always call the target method.  Handle
10713         FILEIO_ENOSYS.
10714         (return_zero, return_zero_has_execution): Delete.
10715         (init_dummy_target): Delete.
10716         (dummy_target::dummy_target, dummy_target::shortname)
10717         (dummy_target::longname, dummy_target::doc)
10718         (debug_target::debug_target, debug_target::shortname)
10719         (debug_target::longname, debug_target::doc): New.
10720         (target_supports_delete_record): Use regular delegation.
10721         (setup_target_debug): Delete.
10722         (maintenance_print_target_stack): Skip debug_stratum.
10723         (initialize_targets): Instantiate the_dummy_target and
10724         the_debug_target.
10725         * auxv.c (target_auxv_parse): Remove 'ops' parameter.  Adjust to
10726         use target_stack.
10727         (target_auxv_search, fprint_target_auxv): Adjust.
10728         (info_auxv_command): Adjust to use target_stack.
10729         * auxv.h (target_auxv_parse): Remove 'ops' parameter.
10730         * exceptions.c (print_flush): Handle a NULL target_stack.
10731         * regcache.c (target_ops_no_register): Refactor as class with
10732         virtual methods.
10733
10734         * exec.c (exec_target): New class.
10735         (exec_ops): Now an exec_target.
10736         (exec_open, exec_close_1, exec_get_section_table)
10737         (exec_xfer_partial, exec_files_info, exec_has_memory)
10738         (exec_make_note_section): Refactor as exec_target methods.
10739         (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
10740         Delete.
10741         (exec_target::find_memory_regions): New.
10742         (_initialize_exec): Don't call init_exec_ops.
10743         * gdbcore.h (exec_file_clear): Delete.
10744
10745         * corefile.c (core_target): Delete.
10746         (core_file_command): Adjust.
10747         * corelow.c (core_target): New class.
10748         (the_core_target): New.
10749         (core_close): Remove target_ops parameter.
10750         (core_close_cleanup): Adjust.
10751         (core_target::close): New.
10752         (core_open, core_detach, get_core_registers, core_files_info)
10753         (core_xfer_partial, core_thread_alive, core_read_description)
10754         (core_pid_to_str, core_thread_name, core_has_memory)
10755         (core_has_stack, core_has_registers, core_info_proc): Rework as
10756         core_target methods.
10757         (ignore, core_remove_breakpoint, init_core_ops): Delete.
10758         (_initialize_corelow): Initialize the_core_target.
10759         * gdbcore.h (core_target): Delete.
10760         (the_core_target): New.
10761
10762         * ctf.c: (ctf_target): New class.
10763         (ctf_ops): Now a ctf_target.
10764         (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
10765         (ctf_xfer_partial, ctf_get_trace_state_variable_value)
10766         (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
10767         methods.
10768         (init_ctf_ops): Delete.
10769         (_initialize_ctf): Don't call it.
10770         * tracefile-tfile.c (tfile_target): New class.
10771         (tfile_ops): Now a tfile_target.
10772         (tfile_open, tfile_close, tfile_files_info)
10773         (tfile_get_tracepoint_status, tfile_trace_find)
10774         (tfile_fetch_registers, tfile_xfer_partial)
10775         (tfile_get_trace_state_variable_value, tfile_traceframe_info):
10776         Refactor as tfile_target methods.
10777         (tfile_xfer_partial_features): Remove target_ops parameter.
10778         (init_tfile_ops): Delete.
10779         (_initialize_tracefile_tfile): Don't call it.
10780         * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
10781         (tracefile_has_stack, tracefile_has_registers)
10782         (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
10783         tracefile_target methods.
10784         (init_tracefile_ops): Delete.
10785         (tracefile_target::tracefile_target): New.
10786         * tracefile.h: Include "target.h".
10787         (tracefile_target): New class.
10788         (init_tracefile_ops): Delete.
10789
10790         * spu-multiarch.c (spu_multiarch_target): New class.
10791         (spu_ops): Now a spu_multiarch_target.
10792         (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
10793         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
10794         (spu_search_memory, spu_mourn_inferior): Refactor as
10795         spu_multiarch_target methods.
10796         (init_spu_ops): Delete.
10797         (_initialize_spu_multiarch): Remove references to init_spu_ops,
10798         complete_target_initialization.
10799
10800         * ravenscar-thread.c (ravenscar_thread_target): New class.
10801         (ravenscar_ops): Now a ravenscar_thread_target.
10802         (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
10803         (ravenscar_thread_alive, ravenscar_pid_to_str)
10804         (ravenscar_fetch_registers, ravenscar_store_registers)
10805         (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
10806         (ravenscar_stopped_by_hw_breakpoint)
10807         (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
10808         (ravenscar_mourn_inferior, ravenscar_core_of_thread)
10809         (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
10810         methods.
10811         (init_ravenscar_thread_ops): Delete.
10812         (_initialize_ravenscar): Remove references to
10813         init_ravenscar_thread_ops and complete_target_initialization.
10814
10815         * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
10816         (bsd_uthread_target): New class.
10817         (bsd_uthread_ops): Now a bsd_uthread_target.
10818         (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
10819         (bsd_uthread_close, bsd_uthread_mourn_inferior)
10820         (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
10821         (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
10822         (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
10823         (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
10824         (bsd_uthread_target): Delete function.
10825         (_initialize_bsd_uthread): Remove reference to
10826         complete_target_initialization.
10827
10828         * bfd-target.c (target_bfd_data): Delete.  Fields folded into ...
10829         (target_bfd): ... this new class.
10830         (target_bfd_xfer_partial, target_bfd_get_section_table)
10831         (target_bfd_close): Refactor as target_bfd methods.
10832         (target_bfd::~target_bfd): New.
10833         (target_bfd_reopen): Adjust.
10834         (target_bfd::close): New.
10835
10836         * record-btrace.c (record_btrace_target): New class.
10837         (record_btrace_ops): Now a record_btrace_target.
10838         (record_btrace_open, record_btrace_stop_recording)
10839         (record_btrace_disconnect, record_btrace_close)
10840         (record_btrace_async, record_btrace_info)
10841         (record_btrace_insn_history, record_btrace_insn_history_range)
10842         (record_btrace_insn_history_from, record_btrace_call_history)
10843         (record_btrace_call_history_range)
10844         (record_btrace_call_history_from, record_btrace_record_method)
10845         (record_btrace_is_replaying, record_btrace_will_replay)
10846         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
10847         (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
10848         (record_btrace_store_registers, record_btrace_prepare_to_store)
10849         (record_btrace_to_get_unwinder)
10850         (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
10851         (record_btrace_commit_resume, record_btrace_wait)
10852         (record_btrace_stop, record_btrace_can_execute_reverse)
10853         (record_btrace_stopped_by_sw_breakpoint)
10854         (record_btrace_supports_stopped_by_sw_breakpoint)
10855         (record_btrace_stopped_by_hw_breakpoint)
10856         (record_btrace_supports_stopped_by_hw_breakpoint)
10857         (record_btrace_update_thread_list, record_btrace_thread_alive)
10858         (record_btrace_goto_begin, record_btrace_goto_end)
10859         (record_btrace_goto, record_btrace_stop_replaying_all)
10860         (record_btrace_execution_direction)
10861         (record_btrace_prepare_to_generate_core)
10862         (record_btrace_done_generating_core): Refactor as
10863         record_btrace_target methods.
10864         (init_record_btrace_ops): Delete.
10865         (_initialize_record_btrace): Remove reference to
10866         init_record_btrace_ops.
10867         * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
10868         the execution_direction global.
10869         (record_full_base_target, record_full_target)
10870         (record_full_core_target): New classes.
10871         (record_full_ops): Now a record_full_target.
10872         (record_full_core_ops): Now a record_full_core_target.
10873         (record_full_target::detach, record_full_target::disconnect)
10874         (record_full_core_target::disconnect)
10875         (record_full_target::mourn_inferior, record_full_target::kill):
10876         New.
10877         (record_full_open, record_full_close, record_full_async): Refactor
10878         as methods of the record_full_base_target class.
10879         (record_full_resume, record_full_commit_resume): Refactor
10880         as methods of the record_full_target class.
10881         (record_full_wait, record_full_stopped_by_watchpoint)
10882         (record_full_stopped_data_address)
10883         (record_full_stopped_by_sw_breakpoint)
10884         (record_full_supports_stopped_by_sw_breakpoint)
10885         (record_full_stopped_by_hw_breakpoint)
10886         (record_full_supports_stopped_by_hw_breakpoint): Refactor as
10887         methods of the record_full_base_target class.
10888         (record_full_store_registers, record_full_xfer_partial)
10889         (record_full_insert_breakpoint, record_full_remove_breakpoint):
10890         Refactor as methods of the record_full_target class.
10891         (record_full_can_execute_reverse, record_full_get_bookmark)
10892         (record_full_goto_bookmark, record_full_execution_direction)
10893         (record_full_record_method, record_full_info, record_full_delete)
10894         (record_full_is_replaying, record_full_will_replay)
10895         (record_full_goto_begin, record_full_goto_end, record_full_goto)
10896         (record_full_stop_replaying): Refactor as methods of the
10897         record_full_base_target class.
10898         (record_full_core_resume, record_full_core_kill)
10899         (record_full_core_fetch_registers)
10900         (record_full_core_prepare_to_store)
10901         (record_full_core_store_registers, record_full_core_xfer_partial)
10902         (record_full_core_insert_breakpoint)
10903         (record_full_core_remove_breakpoint)
10904         (record_full_core_has_execution): Refactor
10905         as methods of the record_full_core_target class.
10906         (record_full_base_target::supports_delete_record): New.
10907         (init_record_full_ops): Delete.
10908         (init_record_full_core_ops): Delete.
10909         (record_full_save): Refactor as method of the
10910         record_full_base_target class.
10911         (_initialize_record_full): Remove references to
10912         init_record_full_ops and init_record_full_core_ops.
10913
10914         * remote.c (remote_target, extended_remote_target): New classes.
10915         (remote_ops): Now a remote_target.
10916         (extended_remote_ops): Now an extended_remote_target.
10917         (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
10918         (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
10919         (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
10920         (remote_pass_signals, remote_set_syscall_catchpoint)
10921         (remote_program_signals, )
10922         (remote_thread_always_alive): Remove target_ops parameter.
10923         (remote_thread_alive, remote_thread_name)
10924         (remote_update_thread_list, remote_threads_extra_info)
10925         (remote_static_tracepoint_marker_at)
10926         (remote_static_tracepoint_markers_by_strid)
10927         (remote_get_ada_task_ptid, remote_close, remote_start_remote)
10928         (remote_open): Refactor as methods of remote_target.
10929         (extended_remote_open, extended_remote_detach)
10930         (extended_remote_attach, extended_remote_post_attach):
10931         (extended_remote_supports_disable_randomization)
10932         (extended_remote_create_inferior): : Refactor as method of
10933         extended_remote_target.
10934         (remote_set_permissions, remote_open_1, remote_detach)
10935         (remote_follow_fork, remote_follow_exec, remote_disconnect)
10936         (remote_resume, remote_commit_resume, remote_stop)
10937         (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
10938         (remote_terminal_ours, remote_wait, remote_fetch_registers)
10939         (remote_prepare_to_store, remote_store_registers)
10940         (remote_flash_erase, remote_flash_done, remote_files_info)
10941         (remote_kill, remote_mourn, remote_insert_breakpoint)
10942         (remote_remove_breakpoint, remote_insert_watchpoint)
10943         (remote_watchpoint_addr_within_range)
10944         (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
10945         (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
10946         (remote_supports_stopped_by_sw_breakpoint)
10947         (remote_stopped_by_hw_breakpoint)
10948         (remote_supports_stopped_by_hw_breakpoint)
10949         (remote_stopped_by_watchpoint, remote_stopped_data_address)
10950         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
10951         (remote_verify_memory): Refactor as methods of remote_target.
10952         (remote_write_qxfer, remote_read_qxfer): Remove target_ops
10953         parameter.
10954         (remote_xfer_partial, remote_get_memory_xfer_limit)
10955         (remote_search_memory, remote_rcmd, remote_memory_map)
10956         (remote_pid_to_str, remote_get_thread_local_address)
10957         (remote_get_tib_address, remote_read_description): Refactor as
10958         methods of remote_target.
10959         (remote_target::fileio_open, remote_target::fileio_pwrite)
10960         (remote_target::fileio_pread, remote_target::fileio_close): New.
10961         (remote_hostio_readlink, remote_hostio_fstat)
10962         (remote_filesystem_is_local, remote_can_execute_reverse)
10963         (remote_supports_non_stop, remote_supports_disable_randomization)
10964         (remote_supports_multi_process, remote_supports_cond_breakpoints)
10965         (remote_supports_enable_disable_tracepoint)
10966         (remote_supports_string_tracing)
10967         (remote_can_run_breakpoint_commands, remote_trace_init)
10968         (remote_download_tracepoint, remote_can_download_tracepoint)
10969         (remote_download_trace_state_variable, remote_enable_tracepoint)
10970         (remote_disable_tracepoint, remote_trace_set_readonly_regions)
10971         (remote_trace_start, remote_get_trace_status)
10972         (remote_get_tracepoint_status, remote_trace_stop)
10973         (remote_trace_find, remote_get_trace_state_variable_value)
10974         (remote_save_trace_data, remote_get_raw_trace_data)
10975         (remote_set_disconnected_tracing, remote_core_of_thread)
10976         (remote_set_circular_trace_buffer, remote_traceframe_info)
10977         (remote_get_min_fast_tracepoint_insn_len)
10978         (remote_set_trace_buffer_size, remote_set_trace_notes)
10979         (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
10980         (remote_disable_btrace, remote_teardown_btrace)
10981         (remote_read_btrace, remote_btrace_conf)
10982         (remote_augmented_libraries_svr4_read, remote_load)
10983         (remote_pid_to_exec_file, remote_can_do_single_step)
10984         (remote_execution_direction, remote_thread_handle_to_thread_info):
10985         Refactor as methods of remote_target.
10986         (init_remote_ops, init_extended_remote_ops): Delete.
10987         (remote_can_async_p, remote_is_async_p, remote_async)
10988         (remote_thread_events, remote_upload_tracepoints)
10989         (remote_upload_trace_state_variables): Refactor as methods of
10990         remote_target.
10991         (_initialize_remote): Remove references to init_remote_ops and
10992         init_extended_remote_ops.
10993
10994         * remote-sim.c (gdbsim_target): New class.
10995         (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
10996         (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
10997         (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
10998         (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
10999         (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
11000         (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
11001         Refactor as methods of gdbsim_target.
11002         (gdbsim_ops): Now a gdbsim_target.
11003         (init_gdbsim_ops): Delete.
11004         (gdbsim_cntrl_c): Adjust.
11005         (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
11006
11007         * amd64-linux-nat.c (amd64_linux_nat_target): New class.
11008         (the_amd64_linux_nat_target): New.
11009         (amd64_linux_fetch_inferior_registers)
11010         (amd64_linux_store_inferior_registers): Refactor as methods of
11011         amd64_linux_nat_target.
11012         (_initialize_amd64_linux_nat): Adjust.  Set linux_target.
11013         * i386-linux-nat.c: Don't include "linux-nat.h".
11014         (i386_linux_nat_target): New class.
11015         (the_i386_linux_nat_target): New.
11016         (i386_linux_fetch_inferior_registers)
11017         (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
11018         as methods of i386_linux_nat_target.
11019         (_initialize_i386_linux_nat): Adjust.  Set linux_target.
11020         * inf-child.c (inf_child_ops): Delete.
11021         (inf_child_fetch_inferior_registers)
11022         (inf_child_store_inferior_registers): Delete.
11023         (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
11024         methods of inf_child_target.
11025         (inf_child_target::supports_terminal_ours)
11026         (inf_child_target::terminal_init)
11027         (inf_child_target::terminal_inferior)
11028         (inf_child_target::terminal_ours_for_output)
11029         (inf_child_target::terminal_ours, inf_child_target::interrupt)
11030         (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
11031         New.
11032         (inf_child_open, inf_child_disconnect, inf_child_close)
11033         (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
11034         (inf_child_post_startup_inferior, inf_child_can_run)
11035         (inf_child_pid_to_exec_file): Refactor as methods of
11036         inf_child_target.
11037         (inf_child_follow_fork): Delete.
11038         (inf_child_target::can_create_inferior)
11039         (inf_child_target::can_attach): New.
11040         (inf_child_target::has_all_memory, inf_child_target::has_memory)
11041         (inf_child_target::has_stack, inf_child_target::has_registers)
11042         (inf_child_target::has_execution): New.
11043         (inf_child_fileio_open, inf_child_fileio_pwrite)
11044         (inf_child_fileio_pread, inf_child_fileio_fstat)
11045         (inf_child_fileio_close, inf_child_fileio_unlink)
11046         (inf_child_fileio_readlink, inf_child_use_agent)
11047         (inf_child_can_use_agent): Refactor as methods of
11048         inf_child_target.
11049         (return_zero, inf_child_target): Delete.
11050         (inf_child_target::inf_child_target): New.
11051         * inf-child.h: Include "target.h".
11052         (inf_child_target): Delete function prototype.
11053         (inf_child_target): New class.
11054         (inf_child_open_target, inf_child_mourn_inferior)
11055         (inf_child_maybe_unpush_target): Delete.
11056         * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
11057         (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
11058         (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
11059         (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
11060         (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
11061         (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
11062         (inf_ptrace_wait, inf_ptrace_xfer_partial)
11063         (inf_ptrace_thread_alive, inf_ptrace_files_info)
11064         (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
11065         methods of inf_ptrace_target.
11066         (inf_ptrace_target): Delete function.
11067         * inf-ptrace.h: Include "inf-child.h".
11068         (inf_ptrace_target): Delete function declaration.
11069         (inf_ptrace_target): New class.
11070         (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
11071         * linux-nat.c (linux_target): New.
11072         (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
11073         (linux_nat_target::~linux_nat_target): New.
11074         (linux_child_post_attach, linux_child_post_startup_inferior)
11075         (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
11076         (linux_child_remove_fork_catchpoint)
11077         (linux_child_insert_vfork_catchpoint)
11078         (linux_child_remove_vfork_catchpoint)
11079         (linux_child_insert_exec_catchpoint)
11080         (linux_child_remove_exec_catchpoint)
11081         (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
11082         (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
11083         (linux_nat_resume, linux_nat_stopped_by_watchpoint)
11084         (linux_nat_stopped_data_address)
11085         (linux_nat_stopped_by_sw_breakpoint)
11086         (linux_nat_supports_stopped_by_sw_breakpoint)
11087         (linux_nat_stopped_by_hw_breakpoint)
11088         (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
11089         (linux_nat_kill, linux_nat_mourn_inferior)
11090         (linux_nat_xfer_partial, linux_nat_thread_alive)
11091         (linux_nat_update_thread_list, linux_nat_pid_to_str)
11092         (linux_nat_thread_name, linux_child_pid_to_exec_file)
11093         (linux_child_static_tracepoint_markers_by_strid)
11094         (linux_nat_is_async_p, linux_nat_can_async_p)
11095         (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
11096         (linux_nat_supports_multi_process)
11097         (linux_nat_supports_disable_randomization, linux_nat_async)
11098         (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
11099         (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
11100         (linux_nat_fileio_open, linux_nat_fileio_readlink)
11101         (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
11102         methods of linux_nat_target.
11103         (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
11104         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
11105         parameter.
11106         (check_stopped_by_watchpoint): Adjust.
11107         (linux_xfer_partial): Delete.
11108         (linux_target_install_ops, linux_target, linux_nat_add_target):
11109         Delete.
11110         (linux_nat_target::linux_nat_target): New.
11111         * linux-nat.h: Include "inf-ptrace.h".
11112         (linux_nat_target): New.
11113         (linux_target, linux_target_install_ops, linux_nat_add_target):
11114         Delete function declarations.
11115         (linux_target): Declare global.
11116         * linux-thread-db.c (thread_db_target): New.
11117         (thread_db_target::thread_db_target): New.
11118         (thread_db_ops): Delete.
11119         (the_thread_db_target): New.
11120         (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
11121         (thread_db_update_thread_list, thread_db_pid_to_str)
11122         (thread_db_extra_thread_info)
11123         (thread_db_thread_handle_to_thread_info)
11124         (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
11125         (thread_db_resume): Refactor as methods of thread_db_target.
11126         (init_thread_db_ops): Delete.
11127         (_initialize_thread_db): Remove reference to init_thread_db_ops.
11128         * x86-linux-nat.c: Don't include "linux-nat.h".
11129         (super_post_startup_inferior): Delete.
11130         (x86_linux_nat_target::~x86_linux_nat_target): New.
11131         (x86_linux_child_post_startup_inferior)
11132         (x86_linux_read_description, x86_linux_enable_btrace)
11133         (x86_linux_disable_btrace, x86_linux_teardown_btrace)
11134         (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
11135         methods of x86_linux_nat_target.
11136         (x86_linux_create_target): Delete.  Bits folded ...
11137         (x86_linux_add_target): ... here.  Now takes a linux_nat_target
11138         pointer.
11139         * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
11140         (x86_linux_nat_target): New class.
11141         (x86_linux_create_target): Delete.
11142         (x86_linux_add_target): Now takes a linux_nat_target pointer.
11143         * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
11144         (x86_region_ok_for_watchpoint, x86_stopped_data_address)
11145         (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
11146         (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
11147         (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
11148         make extern.
11149         (x86_use_watchpoints): Delete.
11150         * x86-nat.h: Include "breakpoint.h" and "target.h".
11151         (x86_use_watchpoints): Delete.
11152         (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
11153         (x86_stopped_by_watchpoint, x86_stopped_data_address)
11154         (x86_insert_watchpoint, x86_remove_watchpoint)
11155         (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
11156         (x86_stopped_by_hw_breakpoint): New declarations.
11157         (x86_nat_target): New template class.
11158
11159         * ppc-linux-nat.c (ppc_linux_nat_target): New class.
11160         (the_ppc_linux_nat_target): New.
11161         (ppc_linux_fetch_inferior_registers)
11162         (ppc_linux_can_use_hw_breakpoint)
11163         (ppc_linux_region_ok_for_hw_watchpoint)
11164         (ppc_linux_ranged_break_num_registers)
11165         (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
11166         (ppc_linux_insert_mask_watchpoint)
11167         (ppc_linux_remove_mask_watchpoint)
11168         (ppc_linux_can_accel_watchpoint_condition)
11169         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
11170         (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
11171         (ppc_linux_watchpoint_addr_within_range)
11172         (ppc_linux_masked_watch_num_registers)
11173         (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
11174         (ppc_linux_read_description): Refactor as methods of
11175         ppc_linux_nat_target.
11176         (_initialize_ppc_linux_nat): Adjust.  Set linux_target.
11177
11178         * procfs.c (procfs_xfer_partial): Delete forward declaration.
11179         (procfs_target): New class.
11180         (the_procfs_target): New.
11181         (procfs_target): Delete function.
11182         (procfs_auxv_parse, procfs_attach, procfs_detach)
11183         (procfs_fetch_registers, procfs_store_registers, procfs_wait)
11184         (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
11185         (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
11186         (procfs_create_inferior, procfs_update_thread_list)
11187         (procfs_thread_alive, procfs_pid_to_str)
11188         (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
11189         (procfs_stopped_data_address, procfs_insert_watchpoint)
11190         (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
11191         (proc_find_memory_regions, procfs_info_proc)
11192         (procfs_make_note_section): Refactor as methods of procfs_target.
11193         (_initialize_procfs): Adjust.
11194         * sol-thread.c (sol_thread_target): New class.
11195         (sol_thread_ops): Now a sol_thread_target.
11196         (sol_thread_detach, sol_thread_resume, sol_thread_wait)
11197         (sol_thread_fetch_registers, sol_thread_store_registers)
11198         (sol_thread_xfer_partial, sol_thread_mourn_inferior)
11199         (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
11200         (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
11201         (init_sol_thread_ops): Delete.
11202         (_initialize_sol_thread): Adjust.  Remove references to
11203         init_sol_thread_ops and complete_target_initialization.
11204
11205         * windows-nat.c (windows_nat_target): New class.
11206         (windows_fetch_inferior_registers)
11207         (windows_store_inferior_registers, windows_resume, windows_wait)
11208         (windows_attach, windows_detach, windows_pid_to_exec_file)
11209         (windows_files_info, windows_create_inferior)
11210         (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
11211         (windows_close, windows_pid_to_str, windows_xfer_partial)
11212         (windows_get_tib_address, windows_get_ada_task_ptid)
11213         (windows_thread_name, windows_thread_alive): Refactor as
11214         windows_nat_target methods.
11215         (do_initial_windows_stuff): Adjust.
11216         (windows_target): Delete function.
11217         (_initialize_windows_nat): Adjust.
11218
11219         * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
11220         (darwin_mourn_inferior, darwin_kill_inferior)
11221         (darwin_create_inferior, darwin_attach, darwin_detach)
11222         (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
11223         (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
11224         (darwin_supports_multi_process): Refactor as darwin_nat_target
11225         methods.
11226         (darwin_resume_to, darwin_files_info): Delete.
11227         (_initialize_darwin_inferior): Rename to ...
11228         (_initialize_darwin_nat): ... this.  Adjust to C++ification.
11229         * darwin-nat.h: Include "inf-child.h".
11230         (darwin_nat_target): New class.
11231         (darwin_complete_target): Delete.
11232         * i386-darwin-nat.c (i386_darwin_nat_target): New class.
11233         (darwin_target): New.
11234         (i386_darwin_fetch_inferior_registers)
11235         (i386_darwin_store_inferior_registers): Refactor as methods of
11236         darwin_nat_target.
11237         (darwin_complete_target): Delete, with ...
11238         (_initialize_i386_darwin_nat): ... bits factored out here.
11239
11240         * alpha-linux-nat.c (alpha_linux_nat_target): New class.
11241         (the_alpha_linux_nat_target): New.
11242         (alpha_linux_register_u_offset): Refactor as
11243         alpha_linux_nat_target method.
11244         (_initialize_alpha_linux_nat): Adjust.
11245         * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
11246         (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
11247         (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
11248         methods of linux_nat_trad_target.
11249         (linux_trad_target): Delete.
11250         * linux-nat-trad.h (linux_trad_target): Delete function.
11251         (linux_nat_trad_target): New class.
11252         * mips-linux-nat.c (mips_linux_nat_target): New class.
11253         (super_fetch_registers, super_store_registers, super_close):
11254         Delete.
11255         (the_mips_linux_nat_target): New.
11256         (mips64_linux_regsets_fetch_registers)
11257         (mips64_linux_regsets_store_registers)
11258         (mips64_linux_fetch_registers, mips64_linux_store_registers)
11259         (mips_linux_register_u_offset, mips_linux_read_description)
11260         (mips_linux_can_use_hw_breakpoint)
11261         (mips_linux_stopped_by_watchpoint)
11262         (mips_linux_stopped_data_address)
11263         (mips_linux_region_ok_for_hw_watchpoint)
11264         (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
11265         (mips_linux_close): Refactor as methods of mips_linux_nat.
11266         (_initialize_mips_linux_nat): Adjust to C++ification.
11267
11268         * aix-thread.c (aix_thread_target): New class.
11269         (aix_thread_ops): Now an aix_thread_target.
11270         (aix_thread_detach, aix_thread_resume, aix_thread_wait)
11271         (aix_thread_fetch_registers, aix_thread_store_registers)
11272         (aix_thread_xfer_partial, aix_thread_mourn_inferior)
11273         (aix_thread_thread_alive, aix_thread_pid_to_str)
11274         (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
11275         Refactor as methods of aix_thread_target.
11276         (init_aix_thread_ops): Delete.
11277         (_initialize_aix_thread): Remove references to init_aix_thread_ops
11278         and complete_target_initialization.
11279         * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
11280         (rs6000_nat_target): New class.
11281         (the_rs6000_nat_target): New.
11282         (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
11283         (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
11284         (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
11285         (super_create_inferior): Delete.
11286         (_initialize_rs6000_nat): Adjust to C++ification.
11287
11288         * arm-linux-nat.c (arm_linux_nat_target): New class.
11289         (the_arm_linux_nat_target): New.
11290         (arm_linux_fetch_inferior_registers)
11291         (arm_linux_store_inferior_registers, arm_linux_read_description)
11292         (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
11293         (arm_linux_remove_hw_breakpoint)
11294         (arm_linux_region_ok_for_hw_watchpoint)
11295         (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
11296         (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
11297         (arm_linux_watchpoint_addr_within_range): Refactor as methods of
11298         arm_linux_nat_target.
11299         (_initialize_arm_linux_nat): Adjust to C++ification.
11300
11301         * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
11302         (the_aarch64_linux_nat_target): New.
11303         (aarch64_linux_fetch_inferior_registers)
11304         (aarch64_linux_store_inferior_registers)
11305         (aarch64_linux_child_post_startup_inferior)
11306         (aarch64_linux_read_description)
11307         (aarch64_linux_can_use_hw_breakpoint)
11308         (aarch64_linux_insert_hw_breakpoint)
11309         (aarch64_linux_remove_hw_breakpoint)
11310         (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
11311         (aarch64_linux_region_ok_for_hw_watchpoint)
11312         (aarch64_linux_stopped_data_address)
11313         (aarch64_linux_stopped_by_watchpoint)
11314         (aarch64_linux_watchpoint_addr_within_range)
11315         (aarch64_linux_can_do_single_step): Refactor as methods of
11316         aarch64_linux_nat_target.
11317         (super_post_startup_inferior): Delete.
11318         (_initialize_aarch64_linux_nat): Adjust to C++ification.
11319
11320         * hppa-linux-nat.c (hppa_linux_nat_target): New class.
11321         (the_hppa_linux_nat_target): New.
11322         (hppa_linux_fetch_inferior_registers)
11323         (hppa_linux_store_inferior_registers): Refactor as methods of
11324         hppa_linux_nat_target.
11325         (_initialize_hppa_linux_nat): Adjust to C++ification.
11326
11327         * ia64-linux-nat.c (ia64_linux_nat_target): New class.
11328         (the_ia64_linux_nat_target): New.
11329         (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
11330         (ia64_linux_stopped_data_address)
11331         (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
11332         (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
11333         ia64_linux_nat_target methods.
11334         (super_xfer_partial): Delete.
11335         (_initialize_ia64_linux_nat): Adjust to C++ification.
11336
11337         * m32r-linux-nat.c (m32r_linux_nat_target): New class.
11338         (the_m32r_linux_nat_target): New.
11339         (m32r_linux_fetch_inferior_registers)
11340         (m32r_linux_store_inferior_registers): Refactor as
11341         m32r_linux_nat_target methods.
11342         (_initialize_m32r_linux_nat): Adjust to C++ification.
11343
11344         * m68k-linux-nat.c (m68k_linux_nat_target): New class.
11345         (the_m68k_linux_nat_target): New.
11346         (m68k_linux_fetch_inferior_registers)
11347         (m68k_linux_store_inferior_registers): Refactor as
11348         m68k_linux_nat_target methods.
11349         (_initialize_m68k_linux_nat): Adjust to C++ification.
11350
11351         * s390-linux-nat.c (s390_linux_nat_target): New class.
11352         (the_s390_linux_nat_target): New.
11353         (s390_linux_fetch_inferior_registers)
11354         (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
11355         (s390_insert_watchpoint, s390_remove_watchpoint)
11356         (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
11357         (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
11358         (s390_auxv_parse, s390_read_description): Refactor as methods of
11359         s390_linux_nat_target.
11360         (_initialize_s390_nat): Adjust to C++ification.
11361
11362         * sparc-linux-nat.c (sparc_linux_nat_target): New class.
11363         (the_sparc_linux_nat_target): New.
11364         (_initialize_sparc_linux_nat): Adjust to C++ification.
11365         * sparc-nat.c (sparc_fetch_inferior_registers)
11366         (sparc_store_inferior_registers): Remove target_ops parameter.
11367         * sparc-nat.h (sparc_fetch_inferior_registers)
11368         (sparc_store_inferior_registers): Remove target_ops parameter.
11369         * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
11370         (the_sparc64_linux_nat_target): New.
11371         (_initialize_sparc64_linux_nat): Adjust to C++ification.
11372
11373         * spu-linux-nat.c (spu_linux_nat_target): New class.
11374         (the_spu_linux_nat_target): New.
11375         (spu_child_post_startup_inferior, spu_child_post_attach)
11376         (spu_child_wait, spu_fetch_inferior_registers)
11377         (spu_store_inferior_registers, spu_xfer_partial)
11378         (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
11379         methods.
11380         (_initialize_spu_nat): Adjust to C++ification.
11381
11382         * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
11383         (the_tilegx_linux_nat_target): New.
11384         (fetch_inferior_registers, store_inferior_registers):
11385         Refactor as methods.
11386         (_initialize_tile_linux_nat): Adjust to C++ification.
11387
11388         * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
11389         (the_xtensa_linux_nat_target): New.
11390         (xtensa_linux_fetch_inferior_registers)
11391         (xtensa_linux_store_inferior_registers): Refactor as
11392         xtensa_linux_nat_target methods.
11393         (_initialize_xtensa_linux_nat): Adjust to C++ification.
11394
11395         * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
11396         (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
11397         (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
11398         (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
11399         (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
11400         (fbsd_stopped_by_sw_breakpoint)
11401         (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
11402         (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
11403         (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
11404         (fbsd_post_startup_inferior, fbsd_post_attach)
11405         (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
11406         (fbsd_set_syscall_catchpoint)
11407         (super_xfer_partial, super_resume, super_wait)
11408         (fbsd_supports_stopped_by_hw_breakpoint): Delete.
11409         (fbsd_handle_debug_trap): Remove target_ops parameter.
11410         (fbsd_nat_add_target): Delete.
11411         * fbsd-nat.h: Include "inf-ptrace.h".
11412         (fbsd_nat_add_target): Delete.
11413         (USE_SIGTRAP_SIGINFO): Define.
11414         (fbsd_nat_target): New class.
11415
11416         * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
11417         (amd64bsd_store_inferior_registers): Remove target_ops parameter.
11418         (amd64bsd_target): Delete.
11419         * amd64-bsd-nat.h: New file.
11420         * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
11421         "x86-bsd-nat.h".
11422         (amd64_fbsd_nat_target): New class.
11423         (the_amd64_fbsd_nat_target): New.
11424         (amd64fbsd_read_description): Refactor as method of
11425         amd64_fbsd_nat_target.
11426         (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
11427         (_initialize_amd64fbsd_nat): Adjust to C++ification.
11428         * amd64-nat.h (amd64bsd_target): Delete function declaration.
11429         * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
11430         (i386bsd_store_inferior_registers): Remove target_ops parameter.
11431         (i386bsd_target): Delete.
11432         * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
11433         (i386bsd_fetch_inferior_registers)
11434         (i386bsd_store_inferior_registers): Declare.
11435         (i386_bsd_nat_target): New class.
11436         * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
11437         (the_i386_fbsd_nat_target): New.
11438         (i386fbsd_resume, i386fbsd_read_description): Refactor as
11439         i386_fbsd_nat_target methods.
11440         (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
11441         (_initialize_i386fbsd_nat): Adjust to C++ification.
11442         * x86-bsd-nat.c (super_mourn_inferior): Delete.
11443         (x86bsd_mourn_inferior, x86bsd_target): Delete.
11444         (_initialize_x86_bsd_nat): Adjust to C++ification.
11445         * x86-bsd-nat.h: Include "x86-nat.h".
11446         (x86bsd_target): Delete declaration.
11447         (x86bsd_nat_target): New class.
11448
11449         * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
11450         (the_aarch64_fbsd_nat_target): New.
11451         (aarch64_fbsd_fetch_inferior_registers)
11452         (aarch64_fbsd_store_inferior_registers): Refactor as methods of
11453         aarch64_fbsd_nat_target.
11454         (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
11455         * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
11456         (the_alpha_bsd_nat_target): New.
11457         (alphabsd_fetch_inferior_registers)
11458         (alphabsd_store_inferior_registers): Refactor as
11459         alpha_bsd_nat_target methods.
11460         (_initialize_alphabsd_nat): Refactor as methods of
11461         alpha_bsd_nat_target.
11462         * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
11463         (the_amd64_nbsd_nat_target): New.
11464         (_initialize_amd64nbsd_nat): Adjust to C++ification.
11465         * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
11466         (the_amd64_obsd_nat_target): New.
11467         (_initialize_amd64obsd_nat): Adjust to C++ification.
11468         * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
11469         (the_arm_fbsd_nat_target): New.
11470         (arm_fbsd_fetch_inferior_registers)
11471         (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
11472         (_initialize_arm_fbsd_nat): Refactor as methods of
11473         arm_fbsd_nat_target.
11474         (_initialize_arm_fbsd_nat): Adjust to C++ification.
11475         * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
11476         (the_arm_netbsd_nat_target): New.
11477         (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
11478         arm_netbsd_nat_target.
11479         (_initialize_arm_netbsd_nat): Adjust to C++ification.
11480         * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
11481         (the_hppa_nbsd_nat_target): New.
11482         (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
11483         hppa_nbsd_nat_target methods.
11484         (_initialize_hppanbsd_nat): Adjust to C++ification.
11485         * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
11486         (the_hppa_obsd_nat_target): New.
11487         (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
11488         methods of hppa_obsd_nat_target.
11489         (_initialize_hppaobsd_nat): Adjust to C++ification.  Use
11490         add_target.
11491         * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
11492         (_initialize_i386nbsd_nat): Adjust to C++ification.  Use
11493         add_target.
11494         * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
11495         (_initialize_i386obsd_nat): Use add_target.
11496         * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
11497         (the_m68k_bsd_nat_target): New.
11498         (m68kbsd_fetch_inferior_registers)
11499         (m68kbsd_store_inferior_registers): Refactor as methods of
11500         m68k_bsd_nat_target.
11501         (_initialize_m68kbsd_nat): Adjust to C++ification.
11502         * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
11503         (the_mips_fbsd_nat_target): New.
11504         (mips_fbsd_fetch_inferior_registers)
11505         (mips_fbsd_store_inferior_registers): Refactor as methods of
11506         mips_fbsd_nat_target.
11507         (_initialize_mips_fbsd_nat): Adjust to C++ification.  Use
11508         add_target.
11509         * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
11510         (the_mips_nbsd_nat_target): New.
11511         (mipsnbsd_fetch_inferior_registers)
11512         (mipsnbsd_store_inferior_registers): Refactor as methods of
11513         mips_nbsd_nat_target.
11514         (_initialize_mipsnbsd_nat): Adjust to C++ification.
11515         * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
11516         (the_mips64_obsd_nat_target): New.
11517         (mips64obsd_fetch_inferior_registers)
11518         (mips64obsd_store_inferior_registers): Refactor as methods of
11519         mips64_obsd_nat_target.
11520         (_initialize_mips64obsd_nat): Adjust to C++ification.  Use
11521         add_target.
11522         * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
11523         nbsd_nat_target.
11524         * nbsd-nat.h: Include "inf-ptrace.h".
11525         (nbsd_nat_target): New class.
11526         * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
11527         (obsd_wait): Refactor as methods of obsd_nat_target.
11528         (obsd_add_target): Delete.
11529         * obsd-nat.h: Include "inf-ptrace.h".
11530         (obsd_nat_target): New class.
11531         * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
11532         (the_ppc_fbsd_nat_target): New.
11533         (ppcfbsd_fetch_inferior_registers)
11534         (ppcfbsd_store_inferior_registers): Refactor as methods of
11535         ppc_fbsd_nat_target.
11536         (_initialize_ppcfbsd_nat): Adjust to C++ification.  Use
11537         add_target.
11538         * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
11539         (the_ppc_nbsd_nat_target): New.
11540         (ppcnbsd_fetch_inferior_registers)
11541         (ppcnbsd_store_inferior_registers): Refactor as methods of
11542         ppc_nbsd_nat_target.
11543         (_initialize_ppcnbsd_nat): Adjust to C++ification.
11544         * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
11545         (the_ppc_obsd_nat_target): New.
11546         (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
11547         methods of ppc_obsd_nat_target.
11548         (_initialize_ppcobsd_nat): Adjust to C++ification.  Use
11549         add_target.
11550         * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
11551         (the_sh_nbsd_nat_target): New.
11552         (shnbsd_fetch_inferior_registers)
11553         (shnbsd_store_inferior_registers): Refactor as methods of
11554         sh_nbsd_nat_target.
11555         (_initialize_shnbsd_nat): Adjust to C++ification.
11556         * sparc-nat.c (sparc_xfer_wcookie): Make extern.
11557         (inf_ptrace_xfer_partial): Delete.
11558         (sparc_xfer_partial, sparc_target): Delete.
11559         * sparc-nat.h (sparc_fetch_inferior_registers)
11560         (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
11561         (sparc_target): Delete function declaration.
11562         (sparc_target): New template class.
11563         * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
11564         (_initialize_sparcnbsd_nat): Adjust to C++ification.
11565         * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
11566         (_initialize_sparc64fbsd_nat): Adjust to C++ification.  Use
11567         add_target.
11568         * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
11569         (_initialize_sparc64nbsd_nat): Adjust to C++ification.
11570         * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
11571         (_initialize_sparc64obsd_nat): Adjust to C++ification.  Use
11572         add_target.
11573         * vax-bsd-nat.c (vax_bsd_nat_target): New class.
11574         (the_vax_bsd_nat_target): New.
11575         (vaxbsd_fetch_inferior_registers)
11576         (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
11577         methods.
11578         (_initialize_vaxbsd_nat): Adjust to C++ification.
11579
11580         * bsd-kvm.c (bsd_kvm_target): New class.
11581         (bsd_kvm_ops): Now a bsd_kvm_target.
11582         (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
11583         (bsd_kvm_files_info, bsd_kvm_fetch_registers)
11584         (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
11585         bsd_kvm_target.
11586         (bsd_kvm_return_one): Delete.
11587         (bsd_kvm_add_target): Adjust to C++ification.
11588
11589         * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
11590         (nto_procfs_target_procfs): New classes.
11591         (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
11592         (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
11593         (procfs_post_attach, procfs_wait, procfs_fetch_registers)
11594         (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
11595         (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
11596         (procfs_remove_hw_breakpoint, procfs_resume)
11597         (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
11598         (procfs_kill_inferior, procfs_store_registers)
11599         (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
11600         as methods of nto_procfs_target.
11601         (nto_procfs_ops): Now an nto_procfs_target_procfs.
11602         (nto_native_ops): Delete.
11603         (procfs_open, procfs_native_open): Delete.
11604         (nto_native_ops): Now an nto_procfs_target_native.
11605         (init_procfs_targets): Adjust to C++ification.
11606         (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
11607         (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
11608         Refactor as methods of nto_procfs_target.
11609
11610         * go32-nat.c (go32_nat_target): New class.
11611         (the_go32_nat_target): New.
11612         (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
11613         (go32_store_registers, go32_xfer_partial, go32_files_info)
11614         (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
11615         (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
11616         (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
11617         (go32_pid_to_str): Refactor as methods of go32_nat_target.
11618         (go32_target): Delete.
11619         (_initialize_go32_nat): Adjust to C++ification.
11620
11621         * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
11622         (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
11623         (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
11624         (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
11625         gnu_nat_target.
11626         (gnu_target): Delete.
11627         * gnu-nat.h (gnu_target): Delete.
11628         (gnu_nat_target): New class.
11629         * i386-gnu-nat.c (gnu_base_target): New.
11630         (i386_gnu_nat_target): New class.
11631         (the_i386_gnu_nat_target): New.
11632         (_initialize_i386gnu_nat): Adjust to C++ification.
11633
11634 2018-05-02  Pedro Alves  <palves@redhat.com>
11635
11636         * bfd-target.c (target_bfd_xclose): Rename to ...
11637         (target_bfd_close): ... this.
11638         (target_bfd_reopen): Adjust.
11639         * target.c (target_close): Remove references to to_xclose.
11640         * target.h (target_ops::to_xclose): Delete.
11641         (target_ops::to_close): Update comments.
11642
11643 2018-05-02  Pedro Alves  <palves@redhat.com>
11644
11645         * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
11646         "linux-nat.h".
11647         * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
11648         * inf-ptrace.c (inf_ptrace_register_u_offset)
11649         (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
11650         (inf_ptrace_store_register, inf_ptrace_store_registers)
11651         (inf_ptrace_trad_target): Move to ...
11652         * linux-nat-trad.c: ... this new file.
11653         * linux-nat-trad.h: New file.
11654         * linux-nat.c (linux_target_install_ops): Make extern.
11655         (linux_trad_target): Delete.
11656         * linux-nat.h (linux_trad_target): Delete declaration.
11657         (linux_target_install_ops): Declare.
11658         * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
11659         "linux-nat.h".
11660
11661 2018-05-02  Pedro Alves  <palves@redhat.com>
11662
11663         * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11664         procfs_target/add_target here.
11665         * procfs.c (procfs_target): Make static.
11666         (_initialize_procfs): Call add_target here.
11667         * procfs.h (struct target_ops): Remove forward declaration.
11668         (procfs_target): Remove declaration.
11669         * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
11670
11671 2018-05-02  Pedro Alves  <palves@redhat.com>
11672
11673         * procfs.c (procfs_stopped_by_watchpoint)
11674         (procfs_insert_watchpoint, procfs_remove_watchpoint)
11675         (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
11676         Forward declare.
11677         (procfs_use_watchpoints): Delete, move contents...
11678         (procfs_target): ... here.
11679         * procfs.h (procfs_use_watchpoints): Delete declaration.
11680         * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11681         procfs_use_watchpoints.
11682         * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
11683         procfs_use_watchpoints.
11684
11685 2018-05-02  Tom Tromey  <tom@tromey.com>
11686
11687         PR python/20084:
11688         * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
11689         and var_zuinteger_unlimited.
11690         * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
11691         and PARAM_ZUINTEGER_UNLIMITED.
11692         (set_parameter_value): Handle var_zuinteger and
11693         var_zuinteger_unlimited.
11694         (add_setshow_generic): Likewise.
11695         (parmpy_init): Likewise.
11696
11697 2018-04-28  Dan Robertson  <danlrobertson89@gmail.com>
11698
11699         PR rust/23124
11700         * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
11701         pointer is not null before dereferencing it.
11702
11703 2018-04-30  Tom Tromey  <tom@tromey.com>
11704
11705         * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
11706         is_mi_like_p.
11707
11708 2018-04-30  Tom Tromey  <tom@tromey.com>
11709
11710         * breakpoint.c (mention): Remove use of is_mi_like_p.
11711         (print_mention_ranged_breakpoint): Likewise.
11712         * break-catch-throw.c (print_it_exception_catchpoint): Remove use
11713         of is_mi_like_p.
11714
11715 2018-04-30  Tom Tromey  <tom@tromey.com>
11716
11717         * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
11718
11719 2018-04-30  Tom Tromey  <tom@tromey.com>
11720
11721         * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
11722         (info_spu_event_command): Remove some uses of is_mi_like_p.
11723
11724 2018-04-30  Tom Tromey  <tom@tromey.com>
11725
11726         * python/py-framefilter.c (py_print_single_arg)
11727         (enumerate_locals, py_print_args, py_print_frame): Remove some
11728         uses of is_mi_like_p.
11729
11730 2018-04-30  Tom Tromey  <tom@tromey.com>
11731
11732         * ui-out.c: Update.
11733         * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
11734         * ui-out.h (ui_out::is_mi_like_p): Now const.
11735         (ui_out::do_is_mi_like_p): Now const.
11736         * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
11737
11738 2018-04-30  Tom Tromey  <tom@tromey.com>
11739
11740         * varobj.c (varobj_set_visualizer): Use new_reference.
11741         * python/python.c (gdbpy_decode_line): Use new_reference.
11742         * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
11743         new_reference.
11744
11745 2018-04-30  Tom Tromey  <tom@tromey.com>
11746
11747         * varobj.c (install_new_value): Use new_reference.
11748         * value.h (value_incref): Return void.  Swap intro comment with
11749         value_decref.
11750         * value.c (set_value_parent): Use new_reference.
11751         (value_incref): Return void.  Update intro comment.
11752         (release_value): Use new_reference.
11753         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
11754
11755 2018-04-30  Tom Tromey  <tom@tromey.com>
11756
11757         * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
11758         * gdb_bfd.h (new_bfd_ref): Remove.
11759         (gdb_bfd_open): Update comment.
11760         * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11761         (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
11762         (gdb_bfd_fdopenr): Use new_reference.
11763         * exec.c (exec_file_attach): Use new_reference.
11764
11765 2018-04-30  Tom Tromey  <tom@tromey.com>
11766
11767         * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
11768         method.
11769
11770 2018-04-30  Tom Tromey  <tom@tromey.com>
11771
11772         * jit.c (jit_read_code_entry): Use type_align.
11773         * i386-tdep.c (i386_gdbarch_init): Don't call
11774         set_gdbarch_long_long_align_bit.
11775         * gdbarch.sh: Remove long_long_align_bit.
11776         * gdbarch.c, gdbarch.h: Rebuild.
11777         * arc-tdep.c (arc_type_align): New function.
11778         (arc_gdbarch_init): Use arc_type_align.  Don't call
11779         set_gdbarch_long_long_align_bit.
11780
11781 2018-04-30  Tom Tromey  <tom@tromey.com>
11782
11783         * rust-lang.c (rust_type_alignment): Remove.
11784         (rust_composite_type): Use type_align.
11785
11786 2018-04-30  Tom Tromey  <tom@tromey.com>
11787
11788         * NEWS: Mention Type.align.
11789         * python/py-type.c (typy_get_alignof): New function.
11790         (type_object_getset): Add "alignof".
11791
11792 2018-04-30  Tom Tromey  <tom@tromey.com>
11793
11794         PR exp/17095:
11795         * NEWS: Update.
11796         * std-operator.def (UNOP_ALIGNOF): New operator.
11797         * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
11798         New.
11799         * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
11800         * c-lang.c (c_op_print_tab): Add alignof.
11801         * c-exp.y (ALIGNOF): New token.
11802         (exp): Add "ALIGNOF" production.
11803         (ident_tokens): Add _Alignof and alignof.
11804
11805 2018-04-30  Tom Tromey  <tom@tromey.com>
11806
11807         * i386-tdep.c (i386_type_align): New function.
11808         (i386_gdbarch_init): Update.
11809         * gdbarch.sh (type_align): New method.
11810         * gdbarch.c, gdbarch.h: Rebuild.
11811         * arch-utils.h (default_type_align): Declare.
11812         * arch-utils.c (default_type_align): New function.
11813         * gdbtypes.h (TYPE_ALIGN_BITS): New define.
11814         (struct type) <align_log2>: New field.
11815         <instance_flags>: Now a bitfield.
11816         (TYPE_RAW_ALIGN): New macro.
11817         (type_align, type_raw_align, set_type_align): Declare.
11818         * gdbtypes.c (type_align, type_raw_align, set_type_align): New
11819         functions.
11820         * dwarf2read.c (quirk_rust_enum): Set type alignment.
11821         (get_alignment, maybe_set_alignment): New functions.
11822         (read_structure_type, read_enumeration_type, read_array_type)
11823         (read_set_type, read_tag_pointer_type, read_tag_reference_type)
11824         (read_subrange_type, read_base_type): Set type alignment.
11825
11826 2018-04-30  Simon Marchi  <simon.marchi@ericsson.com>
11827
11828         * dwarf2read.c (read_index_from_section): Use bool.
11829
11830 2018-04-29  Fabian Groffen  <grobian@gentoo.org>
11831
11832         PR gdb/22950
11833         * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
11834         with #ifdef.
11835
11836 2018-04-29  John Reiser  <jreiser@BitWagon.com>
11837
11838         PR build/22873
11839         * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
11840         last step, and do it atomically.
11841
11842 2018-04-27  Alexandre Oliva  <aoliva@redhat.com>
11843
11844         * compile/compile-c-types.c (convert_int, convert_float):
11845         Update for C FE v1.
11846
11847 2018-04-27  Tom Tromey  <tom@tromey.com>
11848
11849         PR rust/22545:
11850         * rust-lang.c (rust_inclusive_range_type_p): New function.
11851         (rust_range): Handle inclusive ranges.
11852         (rust_compute_range): Likewise.
11853         * rust-exp.y (struct rust_op) <inclusive>: New field.
11854         (DOTDOTEQ): New constant.
11855         (range_expr): Add "..=" productions.
11856         (operator_tokens): Add "..=" token.
11857         (ast_range): Add "inclusive" parameter.
11858         (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
11859         ranges.
11860         * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
11861         bounds values.
11862         * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
11863         LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
11864         Update comments.
11865         * expprint.c (print_subexp_standard): Handle new bounds values.
11866         (dump_subexp_body_standard): Likewise.
11867
11868 2018-04-27  Tom Tromey  <tom@tromey.com>
11869
11870         * configure: Rebuild.
11871         * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
11872         * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
11873         "OVERRIDE".
11874         (class symbol_needs_eval_context): Likewise.
11875         * dwarf2read.c (mock_mapped_index::symbol_name_count)
11876         (mock_mapped_index::symbol_name_at): Use "override".  Remove
11877         "virtual".
11878         * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
11879         "override".
11880         (class dwarf_expr_executor): Use "override", not "OVERRIDE".
11881         * aarch64-tdep.c (instruction_reader::read): Use "override".
11882         (instruction_reader_test::read): Likewise.
11883         * arm-tdep.c (instruction_reader::read): Use "override".
11884         (instruction_reader_thumb::read): Likewise.
11885
11886 2018-04-26  Andrzej Kaczmarek  <andrzej.kaczmarek@codecoup.pl>
11887
11888         PR remote/9665
11889         * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
11890         instead of remote_send.
11891         (remote_send): Remove.
11892
11893 2018-04-26  Pedro Alves  <palves@redhat.com>
11894
11895         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
11896         find_function_start_sal instead of find_pc_line.
11897
11898 2018-04-26  Pedro Alves  <palves@redhat.com>
11899
11900         * breakpoint.c (set_breakpoint_location_function): Handle
11901         mst_data_gnu_ifunc.
11902         * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
11903         * elfread.c (elf_symtab_read): Give data symbols with
11904         BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
11905         (elf_rel_plt_read): Update comment.
11906         * linespec.c (convert_linespec_to_sals): Handle
11907         mst_data_gnu_ifunc.
11908         (minsym_found): Handle mst_data_gnu_ifunc.
11909         * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
11910         (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
11911         * parse.c (find_minsym_type_and_address): Handle
11912         mst_data_gnu_ifunc.
11913         * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
11914         * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
11915         * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
11916         comment.
11917         <mst_data_gnu_ifunc>: New enumerator.
11918
11919 2018-04-26  Pedro Alves  <palves@redhat.com>
11920
11921         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
11922         (lookup_minimal_symbol_by_pc_section): ... this.  Replace
11923         'want_trampoline' parameter by a lookup_msym_prefer parameter.
11924         Handle it.
11925         (lookup_minimal_symbol_by_pc_section): Delete old implementation.
11926         (lookup_minimal_symbol_by_pc): Adjust.
11927         (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
11928         (lookup_solib_trampoline_symbol_by_pc): Adjust.
11929         * minsyms.h (lookup_msym_prefer): New enum.
11930         (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
11931         parameter by a lookup_msym_prefer parameter.
11932
11933 2018-04-26  Pedro Alves  <palves@redhat.com>
11934
11935         * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
11936         ends in "@plt" instead of looking at the symbol's section.
11937
11938 2018-04-26  Pedro Alves  <palves@redhat.com>
11939
11940         * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete.  Remove
11941         all references.
11942         (find_pc_partial_function_gnu_ifunc): Rename to ...
11943         (find_pc_partial_function): ... this, and remove references to
11944         'is_gnu_ifunc_p'.
11945         (find_pc_partial_function): Delete old implementation.
11946         * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
11947
11948 2018-04-26  Pedro Alves  <palves@redhat.com>
11949
11950         * linespec.c (struct bound_minimal_symbol_search_key): New.
11951         (convert_linespec_to_sals): Sort minimal symbols earlier.  Don't
11952         skip first line if we found a GNU ifunc minimal symbol by name.
11953         (compare_msymbols): Change parameters to work with a destructured
11954         lhs minsym.
11955         (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
11956         functions.
11957
11958 2018-04-26  Pedro Alves  <palves@redhat.com>
11959
11960         * breakpoint.c (set_breakpoint_location_function): Don't resolve
11961         ifunc targets here.  Instead, if we have an ifunc minsym, use its
11962         address/name.
11963         (add_location_to_breakpoint): Store the minsym and the objfile in
11964         the breakpoint location.
11965         * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
11966         * linespec.c (minsym_found): Resolve GNU ifunc targets here.
11967         Record the minsym in the sal.
11968         * symtab.h (symtab_and_line) <msymbol>: New field.
11969
11970 2018-04-26  Pedro Alves  <palves@redhat.com>
11971
11972         * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
11973         unless we actually resolved the ifunc.
11974
11975 2018-04-26  Pedro Alves  <palves@redhat.com>
11976
11977         * c-exp.y (variable production): Prefer ifunc minsyms over
11978         regular function symbols.
11979         * symtab.c (find_gnu_ifunc): New function.
11980         * minsyms.h (lookup_msym_prefer): New enum.
11981         (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
11982         parameter by a lookup_msym_prefer parameter.
11983         * symtab.h (find_gnu_ifunc): New declaration.
11984
11985 2018-04-26  Pedro Alves  <palves@redhat.com>
11986
11987         * blockframe.c (find_gnu_ifunc_target_type): New function.
11988         (find_function_type): New.
11989         * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
11990         return a value with a memory address.
11991         (eval_call): For calls to GNU ifunc functions, try to find the
11992         type of the target function from the type that the resolver
11993         returns.
11994         * gdbtypes.c (objfile_type): Don't install a return type for ifunc
11995         symbols.
11996         * infcall.c (find_function_return_type): Delete.
11997         (find_function_addr): Add 'function_type' parameter.  For calls to
11998         GNU ifunc functions, try to find the type of the target function
11999         from the type that the resolver returns, and return it via
12000         FUNCTION_TYPE.
12001         (call_function_by_hand_dummy): Adjust to use the function type
12002         returned by find_function_addr.
12003         (find_function_addr): Add 'function_type' parameter and move
12004         description here.
12005         * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
12006         declarations.
12007
12008 2018-04-26  Pedro Alves  <palves@redhat.com>
12009
12010         * c-exp.y (variable production): Skip finding an alias for ifunc
12011         symbols.
12012
12013 2018-04-26  Pedro Alves  <palves@redhat.com>
12014
12015         * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
12016
12017 2018-04-25  Pedro Alves  <palves@redhat.com>
12018
12019         * infcmd.c (kill_command): Print the pid as string, not the whole
12020         thread's ptid.  Add comment.  s/has been killed/killed/ in output
12021         message.
12022         * remote.c (remote_detach_1): Print the pid as string, not the
12023         whole thread's ptid.
12024
12025 2018-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12026             Sergio Durigan Junior  <sergiodj@redhat.com>
12027             Pedro Alves  <palves@redhat.com>
12028
12029         * infcmd.c (kill_command): Print message when inferior has
12030         been killed.
12031         * inferior.c (print_inferior_events): Remove 'static'.  Set as
12032         '1'.
12033         (add_inferior): Improve message printed when
12034         'print_inferior_events' is on.
12035         (exit_inferior): Remove message printed when
12036         'print_inferior_events' is on.
12037         (detach_inferior): Improve message printed when
12038         'print_inferior_events' is on.
12039         (initialize_inferiors): Use 'add_inferior_silent' to set
12040         'current_inferior_'.
12041         * inferior.h (print_inferior_events): Declare here as
12042         'extern'.
12043         * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
12044         '[Detaching...]' messages when 'print_inferior_events' is on.
12045         Use 'add_thread_silent' instead of 'add_thread'.  Add '[' and ']'
12046         as prefix/suffix for messages.  Remove periods.  Fix erroneous
12047         'Detaching after fork from child...', replace it by '... from
12048         parent...'.
12049         (handle_vfork_child_exec_or_exit): Add '[' and ']' as
12050         prefix/suffix when printing 'Detaching...' messages.  Print
12051         them when 'print_inferior_events' is on.
12052         * remote.c (remote_detach_1): Print message when detaching
12053         from inferior and '!is_fork_parent'.
12054
12055 2018-04-24  Tom Tromey  <tom@tromey.com>
12056
12057         * cli-out.h: Reindent.
12058
12059 2018-04-24  Tom Tromey  <tom@tromey.com>
12060
12061         * cli-out.c (cli_ui_out::out_field_fmt): Remove.
12062         (cli_ui_out::do_field_string): Use fputs_filtered.
12063         * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
12064
12065 2018-04-23  Tom Tromey  <tom@tromey.com>
12066
12067         * guile/scm-frame.c (gdbscm_frame_read_var): Use
12068         gdb::unique_xmalloc_ptr.
12069
12070 2018-04-23  Tom Tromey  <tom@tromey.com>
12071
12072         * configure: Rebuild.
12073
12074 2018-04-22  Rajendra SY  <rajendra.sy@gmail.com>
12075
12076         PR gdb/23095
12077         * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
12078         prepare_for_testing.  Set normal_bp to r_debug_state if target
12079         is bsd.
12080
12081 2018-04-21  Pedro Alves  <palves@redhat.com>
12082             Rajendra SY  <rajendra.sy@gmail.com>
12083
12084         * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
12085         * remote.c (extended_remote_attach): In all-stop mode, mark the
12086         thread as executing.
12087
12088 2018-04-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
12089
12090         * thread.c (thread_apply_all_command): Fix comment.
12091         (thread_command): Fix comment.
12092
12093 2018-04-10  Alan Hayward  <alan.hayward@arm.com>
12094
12095         * common/tdesc.h (tdesc_create_feature): Remove xml filename
12096         parameter.
12097         * features/aarch64-core.c (create_feature_aarch64_core):
12098         Regenerate.
12099         * features/aarch64-fpu.c (create_feature_aarch64_fpu):
12100         Likewise.
12101         * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
12102         Likewise.
12103         * features/i386/32bit-avx512.c
12104         (create_feature_i386_32bit_avx512): Likewise.
12105         * features/i386/32bit-core.c (create_feature_i386_32bit_core):
12106         Likewise.
12107         * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
12108         Likewise.
12109         * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
12110         Likewise.
12111         * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
12112         Likewise.
12113         * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
12114         Likewise.
12115         * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
12116         Likewise.
12117         * features/i386/64bit-avx512.c
12118         (create_feature_i386_64bit_avx512): Likewise.
12119         * features/i386/64bit-core.c (create_feature_i386_64bit_core):
12120         Likewise.
12121         * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
12122         Likewise.
12123         * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
12124         Likewise.
12125         * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
12126         Likewise.
12127         * features/i386/64bit-segments.c
12128         (create_feature_i386_64bit_segments): Likewise.
12129         * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
12130         Likewise.
12131         * features/i386/x32-core.c
12132         (create_feature_i386_x32_core): Likewise.
12133         * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
12134         * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
12135         * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
12136         * target-descriptions.c: In generated code, don't pass xml
12137         filename.
12138
12139 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
12140
12141         * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
12142         (print_xml_feature::visit_post): Likewise.
12143         (print_xml_feature::visit): Likewise.
12144         * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
12145         (print_xml_feature): Add new class.
12146         * regformats/regdat.sh: Null xmltarget on feature targets.
12147         * target-descriptions.c (struct target_desc): Add xmltarget.
12148         (maintenance_check_tdesc_xml_convert): Add unittest function.
12149         (tdesc_get_features_xml): Add function to get xml.
12150         (maintenance_check_xml_descriptions): Test xml generation.
12151         * xml-tdesc.c (string_read_description_xml): Add function.
12152         * xml-tdesc.h (string_read_description_xml): Add declaration.
12153
12154 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
12155
12156         * features/Makefile: Add feature marker to targets with new style
12157         target descriptions.
12158         * regformats/aarch64.dat: Regenerate.
12159         * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
12160         * regformats/i386/amd64-avx-linux.dat: Likewise.
12161         * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
12162         * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
12163         * regformats/i386/amd64-linux.dat: Likewise.
12164         * regformats/i386/amd64-mpx-linux.dat: Likewise.
12165         * regformats/i386/amd64.dat: Likewise.
12166         * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
12167         * regformats/i386/i386-avx-linux.dat: Likewise.
12168         * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
12169         * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
12170         * regformats/i386/i386-linux.dat: Likewise.
12171         * regformats/i386/i386-mmx-linux.dat: Likewise.
12172         * regformats/i386/i386-mpx-linux.dat: Likewise.
12173         * regformats/i386/i386.dat: Likewise.
12174         * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
12175         * regformats/i386/x32-avx-linux.dat: Likewise.
12176         * regformats/i386/x32-linux.dat: Likewise.
12177         * regformats/tic6x-c62x-linux.dat: Likewise.
12178         * regformats/tic6x-c64x-linux.dat: Likewise.
12179         * regformats/tic6x-c64xp-linux.dat: Likewise.
12180         * regformats/regdat.sh: Parse feature marker.
12181
12182 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
12183
12184         * common/tdesc.h (tdesc_architecture_name): Add new declaration.
12185         (tdesc_osabi_name): Likewise.
12186         * target-descriptions.c (tdesc_architecture_name): Add new
12187         function.
12188         (tdesc_osabi_name): Likewise.
12189
12190 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
12191
12192         * common/tdesc.c (tdesc_predefined_type): Move to here.
12193         (tdesc_named_type): Likewise.
12194         (tdesc_create_vector): Likewise.
12195         (tdesc_create_struct): Likewise.
12196         (tdesc_set_struct_size): Likewise.
12197         (tdesc_create_union): Likewise.
12198         (tdesc_create_flags): Likewise.
12199         (tdesc_create_enum): Likewise.
12200         (tdesc_add_field): Likewise.
12201         (tdesc_add_typed_bitfield): Likewise.
12202         (tdesc_add_bitfield): Likewise.
12203         (tdesc_add_flag): Likewise.
12204         (tdesc_add_enum_value): Likewise.
12205         * common/tdesc.h (struct tdesc_type_builtin): Likewise.
12206         (struct tdesc_type_vector): Likewise.
12207         (struct tdesc_type_field): Likewise.
12208         (struct tdesc_type_with_fields): Likewise.
12209         (tdesc_create_enum): Add declaration.
12210         (tdesc_add_typed_bitfield): Likewise.
12211         (tdesc_add_enum_value): Likewise.
12212         * target-descriptions.c (tdesc_type_field): Move from here.
12213         (tdesc_type_builtin): Likewise.
12214         (tdesc_type_vector): Likewise.
12215         (tdesc_type_with_fields): Likewise.
12216         (tdesc_predefined_types): Likewise.
12217         (tdesc_named_type): Likewise.
12218         (tdesc_create_vector): Likewise.
12219         (tdesc_create_struct): Likewise.
12220         (tdesc_set_struct_size): Likewise.
12221         (tdesc_create_union): Likewise.
12222         (tdesc_create_flags): Likewise.
12223         (tdesc_create_enum): Likewise.
12224         (tdesc_add_field): Likewise.
12225         (tdesc_add_typed_bitfield): Likewise.
12226         (tdesc_add_bitfield): Likewise.
12227         (tdesc_add_flag): Likewise.
12228         (tdesc_add_enum_value): Likewise.
12229         * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
12230         (tdesc_add_typed_bitfield): Likewise.
12231         (tdesc_add_enum_value): Likewise.
12232
12233 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
12234
12235         * common/tdesc.c (tdesc_feature::accept): Move to here.
12236         (tdesc_feature::operator==): Likewise.
12237         (tdesc_create_reg): Likewise.
12238         * common/tdesc.h (tdesc_type_kind): Likewise.
12239         (struct tdesc_type): Likewise.
12240         (struct tdesc_feature): Likewise.
12241         * regformats/regdat.sh: Create a feature.
12242         * target-descriptions.c (tdesc_type_kind): Move from here.
12243         (tdesc_type): Likewise.
12244         (tdesc_type_up): Likewise.
12245         (tdesc_feature): Likewise.
12246         (tdesc_create_reg): Likewise.
12247
12248 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
12249
12250         * Makefile.in: Add arch/tdesc.c
12251         * common/tdesc.c: New file.
12252         * common/tdesc.h (tdesc_element_visitor): Move to here.
12253         (tdesc_element): Likewise.
12254         (tdesc_reg): Likewise.
12255         (tdesc_reg_up): Likewise.
12256         * regformats/regdef.h (reg): Add offset to constructors.
12257         * target-descriptions.c (tdesc_element_visitor): Move from here.
12258         (tdesc_element): Likewise.
12259         (tdesc_reg): Likewise.
12260         (tdesc_reg_up): Likewise.
12261
12262 2018-04-17  Tom Tromey  <tom@tromey.com>
12263
12264         * dwarf2read.c (quirk_rust_enum): Conditionally drop the
12265         discriminant field.
12266
12267 2018-04-17  Tom Tromey  <tom@tromey.com>
12268
12269         * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
12270
12271 2018-04-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12272
12273         * symtab.c (print_symbol_info): Skip printing filename and line
12274         number when `last' is NULL.
12275         (symtab_symbol_info): Use empty string instead of NULL for first
12276         invocation of print_symbol_info.
12277         (rbreak_command): Pass NULL to `last' parameter of
12278         print_symbol_info.
12279
12280 2018-04-16  Simon Marchi  <simon.marchi@ericsson.com>
12281
12282         * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
12283         instead of nullptr.
12284
12285 2018-04-16  Pedro Alves  <palves@redhat.com>
12286
12287         * MAINTAINERS (sh): Remove.
12288         * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
12289         (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
12290         (ALLDEPFILES): Remove sh64-tdep.c.
12291         * NEWS: Mentions that support for SH-5/SH64 is removed.
12292         * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
12293         (sh*-*-openbsd*): Ditto.
12294         (sh64-*-elf*): Remove.
12295         (sh*): Remove.
12296         * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
12297         * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
12298         * sh-tdep.c: No longer include "sh64-tdep.h".
12299         (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
12300         * sh64-tdep.c, sh64-tdep.h: Remove files.
12301
12302 2018-04-16  Pedro Alves  <palves@redhat.com>
12303
12304         * MAINTAINERS: Remove m88k.
12305         * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
12306         (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
12307         (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
12308         * NEWS: Mention that support for m88k was removed.
12309         * configure.host (m88*-*-*): Remove support.
12310         * configure.nat (m88k-*-*): Remove support.
12311         * configure.tgt (m88*-*-openbsd*): Remove.
12312         * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
12313
12314 2018-04-15  Simon Marchi  <simon.marchi@polymtl.ca>
12315
12316         * configure.tgt (x86_tobjs): New variable.
12317         (amd64_tobjs, i386_tobjs): Use it.
12318
12319 2018-04-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12320
12321         * symtab.c (print_symbol_info): Precede the symbol definition by
12322         the line number when available.
12323         * NEWS: Advertise this enhancement.
12324
12325 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
12326
12327         * NEWS (New options): announce set/show record btrace cpu.
12328         * btrace.c: Include record-btrace.h.
12329         (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
12330         the vendor is unknown.
12331         (btrace_compute_ftrace_1): Add cpu parameter.  Update callers.
12332         Maybe overwrite the btrace configuration's cpu.
12333         (btrace_compute_ftrace): Add cpu parameter.  Update callers.
12334         (btrace_fetch): Add cpu parameter.  Update callers.
12335         (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
12336         Maybe overwrite the btrace configuration's cpu.  Skip enabling
12337         errata workarounds if the vendor is unknown.
12338         * python/py-record-btrace.c: Include record-btrace.h.
12339         (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
12340         (recpy_bt_function_call_history): Call record_btrace_get_cpu.
12341         * record-btrace.c (record_btrace_cpu_state_kind): New.
12342         (record_btrace_cpu): New.
12343         (set_record_btrace_cpu_cmdlist): New.
12344         (record_btrace_get_cpu): New.
12345         (require_btrace_thread, record_btrace_info)
12346         (record_btrace_resume_thread): Call record_btrace_get_cpu.
12347         (cmd_set_record_btrace_cpu_none): New.
12348         (cmd_set_record_btrace_cpu_auto): New.
12349         (cmd_set_record_btrace_cpu): New.
12350         (cmd_show_record_btrace_cpu): New.
12351         (_initialize_record_btrace): Initialize set/show record btrace cpu
12352         commands.
12353         * record-btrace.h (record_btrace_get_cpu): New.
12354
12355 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
12356
12357         * record.c (set_record_command): Fix typo in message.
12358
12359 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
12360
12361         * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
12362
12363 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
12364
12365         * infrun.c (process_event_stop_test): Call
12366         gdbarch_in_indirect_branch_thunk.
12367         * gdbarch.sh (in_indirect_branch_thunk): New.
12368         * gdbarch.c: Regenerated.
12369         * gdbarch.h: Regenerated.
12370         * x86-tdep.h: New.
12371         * x86-tdep.c: New.
12372         * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
12373         (HFILES_NO_SRCDIR): Add x86-tdep.h.
12374         (ALLDEPFILES): Add x86-tdep.c.
12375         * arch-utils.h (default_in_indirect_branch_thunk): New.
12376         * arch-utils.c (default_in_indirect_branch_thunk): New.
12377         * i386-tdep: Include x86-tdep.h.
12378         (i386_in_indirect_branch_thunk): New.
12379         (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
12380         function.
12381         * amd64-tdep: Include x86-tdep.h.
12382         (amd64_in_indirect_branch_thunk): New.
12383         (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
12384
12385 2018-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
12386
12387         PR gdb/23053
12388         * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
12389         (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
12390         (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
12391         regression.
12392
12393 2018-04-12  Tom Tromey  <tom@tromey.com>
12394
12395         * rust-lang.c (rust_print_struct_def): Remove univariant code.
12396         (rust_evaluate_subexp): Likewise.
12397
12398 2018-04-12  Pedro Alves  <palves@redhat.com>
12399
12400         * procfs.c (procfs_detach): Make forward declaration's prototype
12401         match definition's protototype.
12402         (proc_get_LDT_entry): Remove stale do_cleanups call.
12403
12404 2018-04-12  Pedro Alves  <palves@redhat.com>
12405
12406         * target.h (target_ops::to_has_exited): Delete.
12407         (target_has_exited): Delete.
12408         * target-delegates.c: Regenerate.
12409
12410 2018-04-11  Pedro Alves  <palves@redhat.com>
12411
12412         * target.c (fileio_fh_t::t): Add comment.
12413         (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
12414         (target_fileio_close): Handle a NULL target.
12415         (invalidate_fileio_fh): New.
12416         (target_close): Call it.
12417         * remote.c (remote_hostio_send_command): No longer check whether
12418         remote_desc is open.
12419
12420 2018-04-11  Pedro Alves  <palves@redhat.com>
12421
12422         * target.c (fileio_fh_t): Make it a named struct instead of a
12423         typedef.
12424         (fileio_fh_t::is_closed): New method.
12425         (DEF_VEC_O (fileio_fh_t)): Remove.
12426         (fileio_fhandles): Now a std::vector.
12427         (is_closed_fileio_fh): Delete.
12428         (acquire_fileio_fd): Adjust.  Rename parameters.
12429         (release_fileio_fd): Adjust.
12430         (fileio_fd_to_fh): Reimplement as a function instead of a macro.
12431         (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
12432         (target_fileio_close): Adjust.
12433
12434 2018-04-10  Simon Marchi  <simon.marchi@ericsson.com>
12435
12436         * auto-load.c (auto_load_safe_path_vec_update): Iterate by
12437         index.
12438
12439 2018-04-10  Pedro Alves  <palves@redhat.com>
12440
12441         * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
12442         (scoped_finish_thread_state): New class.
12443         * infcmd.c (run_command_1): Use it instead of finish_thread_state
12444         cleanup.
12445         * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
12446         (fetch_inferior_event, normal_stop): Likewise.
12447         * thread.c (finish_thread_state_cleanup): Delete.
12448
12449 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
12450             Pedro Alves  <palves@redhat.com>
12451
12452         * value.c: Include "selftest.h" and "common/array-view.h".
12453         (struct range) <operator ==>: New.
12454         (test_ranges_contain): New.
12455         (check_ranges_vector): New.
12456         (test_insert_into_bit_range_vector): New.
12457         (_initialize_values): Register selftests.
12458         * common/array-view.h (operator==, operator!=): New.
12459
12460 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
12461
12462         * common/gdb_vecs.h (unordered_remove): Add overload that takes
12463         an iterator.
12464         * inline-frame.c: Include <algorithm>.
12465         (struct inline_state): Add constructor.
12466         (inline_state_s): Remove.
12467         (DEF_VEC_O(inline_state_s)): Remove.
12468         (inline_states): Change type to std::vector.
12469         (find_inline_frame_state): Adjust to std::vector.
12470         (allocate_inline_frame_state): Remove.
12471         (clear_inline_frame_state): Adjust to std::vector.
12472         (skip_inline_frames): Adjust to std::vector.
12473
12474 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
12475
12476         * tracepoint.h (struct trace_state_variable): Add constructor.
12477         <name>: Change type to std::string.
12478         * tracepoint.c (tsv_s): Remove.
12479         (DEF_VEC_O(tsv_s)): Remove.
12480         (tvariables): Change to std::vector.
12481         (create_trace_state_variable): Adjust to std::vector.
12482         (find_trace_state_variable): Likewise.
12483         (find_trace_state_variable_by_number): Likewise.
12484         (delete_trace_state_variable): Likewise.
12485         (trace_variable_command): Adjust to std::string.
12486         (delete_trace_variable_command): Likewise.
12487         (tvariables_info_1): Adjust to std::vector.
12488         (save_trace_state_variables): Likewise.
12489         (start_tracing): Likewise.
12490         (merge_uploaded_trace_state_variables): Adjust to std::vector
12491         and std::string.
12492         * target.h (struct target_ops)
12493         <to_download_trace_state_variable>: Pass reference to
12494         trace_state_variable.
12495         * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
12496         * target-delegates.c: Re-generate.
12497         * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
12498         (mi_tsv_deleted): Likewise.
12499         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
12500         * remote.c (remote_download_trace_state_variable): Change
12501         pointer to reference and adjust.
12502         * make-target-delegates (parse_argtypes): Handle references.
12503         (write_function_header): Likewise.
12504         (munge_type): Likewise.
12505
12506 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
12507
12508         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12509         string_view-selftests.c.
12510         * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
12511         testsuite.
12512         * unittests/basic_string_view/cons/char/1.cc: Likewise.
12513         * unittests/basic_string_view/cons/char/2.cc: Likewise.
12514         * unittests/basic_string_view/cons/char/3.cc: Likewise.
12515         * unittests/basic_string_view/element_access/char/1.cc:
12516         Likewise.
12517         * unittests/basic_string_view/element_access/char/empty.cc:
12518         Likewise.
12519         * unittests/basic_string_view/element_access/char/front_back.cc:
12520         Likewise.
12521         * unittests/basic_string_view/inserters/char/2.cc: Likewise.
12522         * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
12523         Likewise.
12524         * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
12525         Likewise.
12526         * unittests/basic_string_view/modifiers/swap/char/1.cc:
12527         Likewise.
12528         * unittests/basic_string_view/operations/compare/char/1.cc:
12529         Likewise.
12530         * unittests/basic_string_view/operations/compare/char/13650.cc:
12531         Likewise.
12532         * unittests/basic_string_view/operations/copy/char/1.cc:
12533         Likewise.
12534         * unittests/basic_string_view/operations/data/char/1.cc:
12535         Likewise.
12536         * unittests/basic_string_view/operations/find/char/1.cc:
12537         Likewise.
12538         * unittests/basic_string_view/operations/find/char/2.cc:
12539         Likewise.
12540         * unittests/basic_string_view/operations/find/char/3.cc:
12541         Likewise.
12542         * unittests/basic_string_view/operations/find/char/4.cc:
12543         Likewise.
12544         * unittests/basic_string_view/operations/rfind/char/1.cc:
12545         Likewise.
12546         * unittests/basic_string_view/operations/rfind/char/2.cc:
12547         Likewise.
12548         * unittests/basic_string_view/operations/rfind/char/3.cc:
12549         Likewise.
12550         * unittests/basic_string_view/operations/substr/char/1.cc:
12551         Likewise.
12552         * unittests/basic_string_view/operators/char/2.cc: Likewise.
12553         * unittests/string_view-selftests.c: New file.
12554
12555 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
12556
12557         * unittests/basic_string_view/capacity/1.cc: New file.
12558         * unittests/basic_string_view/capacity/empty_neg.cc: New file.
12559         * unittests/basic_string_view/cons/char/1.cc: New file.
12560         * unittests/basic_string_view/cons/char/2.cc: New file.
12561         * unittests/basic_string_view/cons/char/3.cc: New file.
12562         * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
12563         * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
12564         * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
12565         * unittests/basic_string_view/element_access/char/1.cc: New file.
12566         * unittests/basic_string_view/element_access/char/2.cc: New file.
12567         * unittests/basic_string_view/element_access/char/empty.cc: New file.
12568         * unittests/basic_string_view/element_access/char/front_back.cc: New file.
12569         * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
12570         * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
12571         * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
12572         * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
12573         * unittests/basic_string_view/include.cc: New file.
12574         * unittests/basic_string_view/inserters/char/1.cc: New file.
12575         * unittests/basic_string_view/inserters/char/2.cc: New file.
12576         * unittests/basic_string_view/inserters/char/3.cc: New file.
12577         * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
12578         * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
12579         * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
12580         * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
12581         * unittests/basic_string_view/literals/types.cc: New file.
12582         * unittests/basic_string_view/literals/values.cc: New file.
12583         * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
12584         * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
12585         * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
12586         * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
12587         * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
12588         * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
12589         * unittests/basic_string_view/operations/compare/char/1.cc: New file.
12590         * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
12591         * unittests/basic_string_view/operations/compare/char/2.cc: New file.
12592         * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
12593         * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
12594         * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
12595         * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
12596         * unittests/basic_string_view/operations/copy/char/1.cc: New file.
12597         * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
12598         * unittests/basic_string_view/operations/data/char/1.cc: New file.
12599         * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
12600         * unittests/basic_string_view/operations/find/char/1.cc: New file.
12601         * unittests/basic_string_view/operations/find/char/2.cc: New file.
12602         * unittests/basic_string_view/operations/find/char/3.cc: New file.
12603         * unittests/basic_string_view/operations/find/char/4.cc: New file.
12604         * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
12605         * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
12606         * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
12607         * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
12608         * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
12609         * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
12610         * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
12611         * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
12612         * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
12613         * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
12614         * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
12615         * unittests/basic_string_view/operations/substr/char/1.cc: New file.
12616         * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
12617         * unittests/basic_string_view/operators/char/2.cc: New file.
12618         * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
12619         * unittests/basic_string_view/range_access/char/1.cc: New file.
12620         * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
12621         * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
12622         * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
12623         * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
12624         * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
12625         * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
12626         * unittests/basic_string_view/requirements/typedefs.cc: New file.
12627         * unittests/basic_string_view/typedefs.cc: New file.
12628         * unittests/basic_string_view/types/1.cc: New file.
12629
12630 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
12631
12632         * common/gdb_string_view.h: Remove libstdc++ implementation
12633         details, adjust to gdb reality.
12634         * common/gdb_string_view.tcc: Likewise.
12635         * cli/cli-script.c (struct string_view): Remove.
12636         (user_args) <m_args>: Change element type to gdb::string_view.
12637         (user_args::insert_args): Adjust.
12638
12639 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
12640
12641         * common/gdb_string_view.h: New file.
12642         * common/gdb_string_view.tcc: New file.
12643
12644 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
12645
12646         * ax_cxx_compile_stdcxx.m4: Sync with upstream.
12647         * configure: Re-generate.
12648
12649 2018-04-09  Pedro Alves  <palves@redhat.com>
12650
12651         * gdbarch.sh: Include "observable.h" instead of "observer.h".
12652         (set_target_gdbarch): Call
12653         gdb::observers::architecture_changed.notify instead of
12654         observer_notify_architecture_changed.
12655
12656 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
12657
12658         * tracepoint.c (struct current_traceframe_cleanup): Remove.
12659         (do_restore_current_traceframe_cleanup): Remove.
12660         (restore_current_traceframe_cleanup_dtor): Remove.
12661         (make_cleanup_restore_current_traceframe): Remove.
12662         (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
12663         New.
12664         * tracepoint.h (struct scoped_restore_current_traceframe): New.
12665         * infrun.c (fetch_inferior_event): Use
12666         scoped_restore_current_traceframe.
12667
12668 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
12669
12670         * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
12671         Remove.
12672         <n_allocated_type_units>: Remove.
12673         <all_type_units>: Change to std::vector.
12674         * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12675         to std::vector change.
12676         (dwarf2_per_objfile::get_cutu): Likewise.
12677         (dwarf2_per_objfile::get_tu): Likewise.
12678         (create_signatured_type_table_from_index): Likewise.
12679         (create_signatured_type_table_from_debug_names): Likewise.
12680         (dw2_symtab_iter_next): Likewise.
12681         (dw2_print_stats): Likewise.
12682         (dw2_expand_all_symtabs): Likewise.
12683         (dw2_expand_marked_cus): Likewise.
12684         (dw2_debug_names_iterator::next): Likewise.
12685         (dwarf2_initialize_objfile): Likewise.
12686         (add_signatured_type_cu_to_table): Likewise.
12687         (create_all_type_units): Likewise.
12688         (add_type_unit): Likewise.
12689         (struct tu_abbrev_offset): Add constructor.
12690         (build_type_psymtabs_1): Adjust to std::vector change.
12691         (print_tu_stats): Likewise.
12692         * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
12693         (write_debug_names): Likewise.
12694
12695 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
12696
12697         * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
12698         Make an std::vector.
12699         <n_comp_units>: Remove.
12700         * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12701         to std::vector change.
12702         (dwarf2_per_objfile::get_cutu): Likewise.
12703         (dwarf2_per_objfile::get_cu): Likewise.
12704         (create_cus_from_index): Likewise.
12705         (create_addrmap_from_index): Likewise.
12706         (create_addrmap_from_aranges): Likewise.
12707         (dwarf2_read_index): Likewise.
12708         (dw2_find_last_source_symtab): Likewise.
12709         (dw2_map_symtabs_matching_filename): Likewise.
12710         (dw2_symtab_iter_next): Likewise.
12711         (dw2_print_stats): Likewise.
12712         (dw2_expand_all_symtabs): Likewise.
12713         (dw2_expand_symtabs_with_fullname): Likewise.
12714         (dw2_expand_marked_cus): Likewise.
12715         (dw2_map_symbol_filenames): Likewise.
12716         (create_cus_from_debug_names): Likewise.
12717         (dwarf2_read_debug_names): Likewise.
12718         (dw2_debug_names_iterator::next): Likewise.
12719         (dwarf2_initialize_objfile): Likewise.
12720         (set_partial_user): Likewise.
12721         (dwarf2_build_psymtabs_hard): Likewise.
12722         (read_comp_units_from_section): Remove arguments, adjust to
12723         std::vector change.
12724         (create_all_comp_units): Adjust to std::vector and
12725         read_comp_units_from_section changes.
12726         (dwarf2_find_containing_comp_unit): Adjust to std::vector
12727         change.
12728         * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
12729         (psyms_seen_size): Likewise.
12730         (write_gdbindex): Likewise.
12731         (write_debug_names): Likewise.
12732
12733 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
12734
12735         * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
12736         with dwarf2_per_objfile.
12737         (create_cus_from_index): Likewise.
12738         (create_signatured_type_table_from_index): Likewise.
12739         (dwarf2_read_index): Likewise.
12740         (dwarf2_initialize_objfile): Likewise.
12741         (dwarf2_fetch_die_loc_sect_off):  Get dwarf2_per_objfile from
12742         per_cu rather than get_dwarf2_per_objfile.
12743
12744 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
12745
12746         * dwarf2read.h (struct signatured_type): Forward declare.
12747         (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
12748         New methods.
12749         * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
12750         (dw2_get_cutu): ...this.
12751         (dwarf2_per_objfile::get_cu): Rename from...
12752         (dw2_get_cu): ...this.
12753         (dwarf2_per_objfile::get_tu): New.
12754         (create_addrmap_from_index): Adjust.
12755         (create_addrmap_from_aranges): Adjust.
12756         (dw2_find_last_source_symtab): Adjust.
12757         (dw2_map_symtabs_matching_filename): Adjust.
12758         (dw2_symtab_iter_next): Adjust.
12759         (dw2_print_stats): Adjust.
12760         (dw2_expand_all_symtabs): Adjust.
12761         (dw2_expand_symtabs_with_fullname): Adjust.
12762         (dw2_expand_marked_cus): Adjust.
12763         (dw_expand_symtabs_matching_file_matcher): Adjust.
12764         (dw2_map_symbol_filenames): Adjust.
12765         (dw2_debug_names_iterator::next): Adjust.
12766         (dwarf2_initialize_objfile): Adjust.
12767         (set_partial_user): Adjust.
12768         (dwarf2_build_psymtabs_hard): Adjust.
12769
12770 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
12771
12772         * dwarf2read.c (create_signatured_type_table_from_debug_names):
12773         Remove unused variables.
12774         (dw2_map_symtabs_matching_filename): Likewise.
12775         (dwarf2_record_block_ranges): Likewise.
12776         (dwarf2_read_addr_index): Likewise.
12777         (follow_die_offset): Likewise.
12778
12779 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
12780
12781         * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
12782         to symbol_file_add_main.
12783
12784 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
12785
12786         PR mi/22299
12787         * mi/mi-console.c (do_fputc_async_safe): New.
12788         (mi_console_file::write_async_safe): New.
12789         (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
12790         * mi/mi-console.h (class mi_console_file) <write_async_safe>:
12791         New.
12792         * ui-file.c (ui_file::putstrn): Adjust call to
12793         fputstrn_unfiltered.
12794         * utils.c (printchar): Replace do_fputs and do_fprintf
12795         parameters by do_fputc.
12796         (fputstr_filtered): Adjust call to printchar.
12797         (fputstr_unfiltered): Likewise.
12798         (fputstrn_filtered): Likewise.
12799         (fputstrn_unfiltered): Add do_fputc parameter, pass to
12800         printchar.
12801         * utils.h (do_fputc_ftype): New typedef.
12802         (fputstrn_unfiltered): Add do_fputc parameter.
12803
12804 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
12805
12806         * regformats/i386/i386-avx.dat: Remove.
12807
12808 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
12809
12810         PR gdb/22979
12811         * amd64-tdep.c (amd64_none_init_abi): New function.
12812         (amd64_x32_none_init_abi): New function.
12813         (_initialize_amd64_tdep): Register handlers for x86-64 and
12814         x64_32 with GDB_OSABI_NONE.
12815         * osabi.c (gdbarch_init_osabi): Allow running handlers for the
12816         GDB_OSABI_NONE osabi.
12817
12818 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
12819
12820         PR gdb/22980
12821         * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
12822         GDB_OSABI_NONE.
12823         * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
12824         * osabi.c (gdb_osabi_names): Add "unknown" entry.
12825
12826 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
12827
12828         * common/byte-vector.h (char_vector): New type.
12829         * target.h (target_read_alloc): Return
12830         gdb::optional<byte_vector>.
12831         (target_read_stralloc): Return gdb::optional<char_vector>.
12832         (target_get_osdata): Return gdb::optional<char_vector>.
12833         * target.c (target_read_alloc_1): Templatize.  Replacement
12834         manual memory management with vector.
12835         (target_read_alloc): Change return type, adjust.
12836         (target_read_stralloc): Change return type, adjust.
12837         (target_get_osdata): Change return type, adjust.
12838         * auxv.c (struct auxv_info) <length>: Remove.
12839         <data>: Change type to gdb::optional<byte_vector>.
12840         (auxv_inferior_data_cleanup): Free auxv_info with delete.
12841         (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
12842         (target_auxv_search): Adjust.
12843         (fprint_target_auxv): Adjust.
12844         * avr-tdep.c (avr_io_reg_read_command): Adjust.
12845         * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
12846         (linux_make_corefile_notes): Adjust.
12847         * osdata.c (get_osdata): Adjust.
12848         * remote.c (remote_get_threads_with_qxfer): Adjust.
12849         (remote_memory_map): Adjust.
12850         (remote_traceframe_info): Adjust.
12851         (btrace_read_config): Adjust.
12852         (remote_read_btrace): Adjust.
12853         (remote_pid_to_exec_file): Adjust.
12854         * solib-aix.c (solib_aix_get_library_list): Adjust.
12855         * solib-dsbt.c (decode_loadmap): Don't free buf.
12856         (dsbt_get_initial_loadmaps): Adjust.
12857         * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
12858         * solib-target.c (solib_target_current_sos): Adjust.
12859         * tracepoint.c (sdata_make_value): Adjust.
12860         * xml-support.c (xinclude_start_include): Adjust.
12861         (xml_fetch_content_from_file): Adjust.
12862         * xml-support.h (xml_fetch_another): Change return type.
12863         (xml_fetch_content_from_file): Change return type.
12864         * xml-syscall.c (xml_init_syscalls_info): Adjust.
12865         * xml-tdesc.c (file_read_description_xml): Adjust.
12866         (fetch_available_features_from_target): Change return type.
12867         (target_fetch_description_xml): Adjust.
12868         (target_read_description_xml): Adjust.
12869
12870 2018-04-06  Tom Tromey  <tom@tromey.com>
12871
12872         * value.c (~value): Update.
12873         (struct value) <contents>: Now unique_xmalloc_ptr.
12874         (value_contents_bits_eq, allocate_value_contents)
12875         (value_contents_raw, value_contents_all_raw)
12876         (value_contents_for_printing, value_contents_for_printing_const)
12877         (set_value_enclosing_type): Update.
12878
12879 2018-04-06  Tom Tromey  <tom@tromey.com>
12880
12881         * value.c (range_s): Remove typedef, VEC.
12882         (struct range): Add operator<.
12883         (range_lessthan): Remove.
12884         (ranges_contain): Change type.
12885         (~value): Update.
12886         (struct value) <unavailable, optimized_out>: Now std::vector.
12887         (value_entirely_available)
12888         (value_entirely_covered_by_range_vector)
12889         (value_entirely_unavailable, value_entirely_optimized_out):
12890         Update.
12891         (insert_into_bit_range_vector): Change argument type.
12892         (find_first_range_overlap): Likewise.
12893         (struct ranges_and_idx, value_contents_bits_eq)
12894         (require_not_optimized_out, require_available): Update.
12895         (ranges_copy_adjusted): Change argument types.
12896         (value_optimized_out, value_copy, value_fetch_lazy): Update.
12897
12898 2018-04-06  Tom Tromey  <tom@tromey.com>
12899
12900         * value.c (~value): Update.
12901         (struct value) <parent>: Now a value_ref_ptr.
12902         (value_parent, set_value_parent, value_address, value_copy):
12903         Update.
12904
12905 2018-04-06  Tom Tromey  <tom@tromey.com>
12906
12907         * value.c (struct value): Add constructor, destructor, and member
12908         initializers.
12909         (allocate_value_lazy, value_decref): Update.
12910
12911 2018-04-06  Tom Tromey  <tom@tromey.com>
12912
12913         * value.c (struct value) <released, next>: Remove.
12914         (all_values): Now a std::vector.
12915         (allocate_value_lazy): Update.
12916         (value_next): Remove.
12917         (value_mark, value_free_to_mark, release_value)
12918         (value_release_to_mark): Update.
12919
12920 2018-04-06  Tom Tromey  <tom@tromey.com>
12921
12922         * value.h (fetch_subexp_value, value_release_to_mark): Update.
12923         (free_value_chain): Remove.
12924         * value.c (free_value_chain): Remove.
12925         (value_release_to_mark): Return a std::vector.
12926         * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
12927         std::vector.
12928         (check_condition): Update.
12929         * eval.c (fetch_subexp_value): Change "val_chain" to a
12930         std::vector.
12931         * breakpoint.c (update_watchpoint): Update.
12932         (can_use_hardware_watchpoint): Change "vals" to a std::vector.
12933
12934 2018-04-06  Tom Tromey  <tom@tromey.com>
12935
12936         * value.h (free_all_values): Remove.
12937         * value.c (free_all_values): Remove.
12938
12939 2018-04-06  Tom Tromey  <tom@tromey.com>
12940
12941         * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
12942         (value_history_chain, value_history_count): Remove.
12943         (value_history): New global.
12944         (record_latest_value, access_value_history, show_values)
12945         (preserve_values): Update.
12946
12947 2018-04-06  Tom Tromey  <tom@tromey.com>
12948
12949         * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
12950         * varobj.c (varobj_set_display_format, varobj_set_value)
12951         (install_default_visualizer, construct_visualizer)
12952         (install_new_value, ~varobj, varobj_get_value_type)
12953         (my_value_of_variable, varobj_editable_p): Update.
12954         * c-varobj.c (c_describe_child, c_value_of_variable)
12955         (cplus_number_of_children, cplus_describe_child): Update.
12956         * ada-varobj.c (ada_number_of_children, ada_name_of_child)
12957         (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
12958         (ada_value_of_variable, ada_value_is_changeable_p): Update.
12959
12960 2018-04-06  Tom Tromey  <tom@tromey.com>
12961
12962         * printcmd.c (last_examine_address): Change type to
12963         value_ref_ptr.
12964         (do_examine, x_command): Update.
12965
12966 2018-04-06  Tom Tromey  <tom@tromey.com>
12967
12968         * value.c (release_value): Update.
12969         * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
12970         (struct bpstats) <val>: Now a value_ref_ptr.
12971         * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
12972         (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
12973         (~watchpoint, print_it_watchpoint, watch_command_1)
12974         (invalidate_bp_value_on_memory_change): Update.
12975
12976 2018-04-06  Tom Tromey  <tom@tromey.com>
12977
12978         * varobj.c (varobj_clear_saved_item)
12979         (update_dynamic_varobj_children, install_new_value, ~varobj):
12980         Update.
12981         * value.h (value_incref): Move declaration earlier.
12982         (value_decref): Rename from value_free.
12983         (struct value_ref_policy): New.
12984         (value_ref_ptr): New typedef.
12985         (struct value_deleter): Remove.
12986         (gdb_value_up): Remove typedef.
12987         (release_value): Change return type.
12988         (release_value_or_incref): Remove.
12989         * value.c (set_value_parent): Update.
12990         (value_incref): Change return type.
12991         (value_decref): Rename from value_free.
12992         (value_free_to_mark, free_all_values, free_value_chain): Update.
12993         (release_value): Return value_ref_ptr.
12994         (release_value_or_incref): Remove.
12995         (record_latest_value, set_internalvar, clear_internalvar):
12996         Update.
12997         * stack.c (info_frame_command): Don't call value_free.
12998         * python/py-value.c (valpy_dealloc, valpy_new)
12999         (value_to_value_object): Update.
13000         * printcmd.c (do_examine): Update.
13001         * opencl-lang.c (lval_func_free_closure): Update.
13002         * mi/mi-main.c (register_changed_p): Don't call value_free.
13003         * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
13004         * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
13005         * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
13006         value_free.
13007         * guile/scm-value.c (vlscm_free_value_smob)
13008         (vlscm_scm_from_value): Update.
13009         * frame.c (frame_register_unwind, frame_unwind_register_signed)
13010         (frame_unwind_register_unsigned, get_frame_register_bytes)
13011         (put_frame_register_bytes): Don't call value_free.
13012         * findvar.c (address_from_register): Don't call value_free.
13013         * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
13014         * dwarf2loc.c (entry_data_value_free_closure)
13015         (value_of_dwarf_reg_entry, free_pieced_value_closure)
13016         (dwarf2_evaluate_loc_desc_full): Update.
13017         * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
13018         (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
13019         (~watchpoint, watch_command_1)
13020         (invalidate_bp_value_on_memory_change): Update.
13021         * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
13022
13023 2018-04-06  Simon Marchi  <simon.marchi@polymtl.ca>
13024
13025         PR gdb/23022
13026         * warning.m4: Add -Wno-error=deprecated-register.
13027         * configure: Re-generate.
13028
13029 2018-04-05  Tom Tromey  <tom@tromey.com>
13030
13031         * linespec.h: Remove include of "vec.h".
13032
13033 2018-04-05  Tom Tromey  <tom@tromey.com>
13034
13035         * linespec.c (typep): Remove typedef.
13036         (find_methods, find_superclass_methods): Take a std::vector.
13037         (find_method): Use std::vector.
13038
13039 2018-04-05  Tom Tromey  <tom@tromey.com>
13040
13041         * utils.c (compare_strings): Remove.
13042         * utils.h (compare_strings): Remove.
13043         * objc-lang.h (find_imps): Update.
13044         * objc-lang.c (find_methods): Take a std::vector.
13045         (uniquify_strings, find_imps): Likewise.
13046         * linespec.c (find_methods): Take a std::vector.
13047         (decode_objc): Use std::vector.
13048         (add_all_symbol_names_from_pspace, find_superclass_methods): Take
13049         a std::vector.
13050         (find_method, find_function_symbols): Use std::vector.
13051
13052 2018-04-05  Tom Tromey  <tom@tromey.com>
13053
13054         * completer.c (completion_tracker::completion_tracker): Remove
13055         cast.
13056         (completion_tracker::discard_completions): Likewise.
13057         * breakpoint.c (ambiguous_names_p): Remove cast.
13058         * ada-lang.c (_initialize_ada_language): Remove cast.
13059         * utils.h (streq): Update.
13060         (streq_hash): Add new declaration.
13061         * utils.c (streq): Return bool.
13062         (streq_hash): New function.
13063
13064 2018-04-05  Tom Tromey  <tom@tromey.com>
13065
13066         * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
13067         Remove a string copy.
13068
13069 2018-04-05  Tom Tromey  <tom@tromey.com>
13070
13071         * linespec.c (filter_results): Use std::vector.
13072         (decode_line_2, decode_line_full): Update.
13073
13074 2018-04-05  Tom Tromey  <tom@tromey.com>
13075
13076         * linespec.c (canonical_to_fullform): Return std::string.
13077         (filter_results): Update.
13078         (struct decode_line_2_item): Add constructor.
13079         <fullform, displayform>: Now std::string.
13080         (decode_line_2_compare_items): Now a std::sort comparator.
13081         (decode_line_2): Update.
13082
13083 2018-04-05  Tom Tromey  <tom@tromey.com>
13084
13085         * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
13086         (unexpected_linespec_error): Update.
13087         (linespec_parse_basic, parse_linespec): Update.
13088
13089 2018-04-05  Tom Tromey  <tom@tromey.com>
13090
13091         * linespec.c (linespec_parse_basic): Reindent.
13092
13093 2018-04-05  Tom Tromey  <tom@tromey.com>
13094
13095         * minsyms.h (iterate_over_minimal_symbols): Update.
13096         * minsyms.c (iterate_over_minimal_symbols): Take a
13097         gdb::function_view.
13098         * linespec.c (struct collect_minsyms): Remove.
13099         (compare_msyms): Now a std::sort comparator.
13100         (add_minsym): Add parameters.
13101         (search_minsyms_for_name): Update.  Use std::vector.
13102
13103 2018-04-03  Tom Tromey  <tom@tromey.com>
13104
13105         * mipsread.c (read_alphacoff_dynamic_symtab): Use
13106         gdb::byte_vector.
13107
13108 2018-04-02  Weimin Pan  <weimin.pan@oracle.com>
13109
13110         * MAINTAINERS (Write After Approval): Add Weimin Pan.
13111
13112 2018-04-02  Weimin Pan  <weimin.pan@oracle.com>
13113
13114         PR gdb/16959
13115         * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when 
13116         printing static type.
13117
13118 2018-04-01  Tom Tromey  <tom@tromey.com>
13119
13120         * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
13121         (rs6000_xfer_shared_libraries): Update.
13122
13123 2018-04-01  Simon Marchi  <simon.marchi@polymtl.ca>
13124
13125         * common/gdb_vecs.h (char_ptr): Remove.
13126         * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
13127
13128 2018-03-30  Simon Marchi  <simon.marchi@polymtl.ca>
13129
13130         * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
13131         with std::vector.
13132         * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
13133
13134 2018-03-30  Simon Marchi  <simon.marchi@polymtl.ca>
13135
13136         * tracepoint.h (struct uploaded_tp): Initialize fields.
13137         <actions, step_actions, cmd_strings>: Change type to
13138         std::vector<char *>.
13139         * tracepoint.c (get_uploaded_tp): Allocate with new.
13140         (free_uploaded_tps): Free with delete.
13141         (parse_tracepoint_definition): Adjust to std::vector change.
13142         * breakpoint.c (read_uploaded_action): Likewise.
13143         (create_tracepoint_from_upload): Likewise.
13144         * ctf.c (ctf_write_uploaded_tp): Likewise.
13145         (SET_ARRAY_FIELD): Likewise.
13146         * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
13147
13148 2018-03-30  Tom Tromey  <tom@tromey.com>
13149
13150         * solib-svr4.c (lm_info_read): Use gdb::byte_vector.  Return
13151         std::unique_ptr.
13152         (svr4_keep_data_in_core): Update.
13153         (svr4_read_so_list): Update.
13154
13155 2018-03-30  Tom Tromey  <tom@tromey.com>
13156
13157         * windows-nat.c (handle_output_debug_string, handle_exception):
13158         Update.
13159         * target.h (target_read_string): Update.
13160         * target.c (target_read_string): Change "string" to
13161         unique_xmalloc_ptr.
13162         * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
13163         Update.
13164         * solib-frv.c (frv_current_sos): Update.
13165         * solib-dsbt.c (dsbt_current_sos): Update.
13166         * solib-darwin.c (darwin_current_sos): Update.
13167         * linux-thread-db.c (inferior_has_bug): Update.
13168         * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
13169         Update.  Remove alloca.
13170         * ada-lang.c (ada_main_name): Update.
13171
13172 2018-03-30  Tom Tromey  <tom@tromey.com>
13173
13174         * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
13175         (struct dwo_file_deleter): New.
13176         (dwo_file_up): New typedef.
13177         (open_and_init_dwo_file): Use dwo_file_up.
13178         (free_dwo_file_cleanup): Remove.
13179
13180 2018-03-30  Tom Tromey  <tom@tromey.com>
13181
13182         * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
13183         (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
13184
13185 2018-03-30  Tom Tromey  <tom@tromey.com>
13186
13187         * dwarf2read.c (class free_cached_comp_units): New class.
13188         (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
13189         (free_cached_comp_units): Remove function.
13190
13191 2018-03-30  Tom Tromey  <tom@tromey.com>
13192
13193         * utils.h (make_cleanup_unpush_target): Remove.
13194         * inf-ptrace.c (struct target_unpusher): New.
13195         (target_unpush_up) New typedef.
13196         (inf_ptrace_create_inferior, inf_ptrace_attach): Use
13197         target_unpush_up.
13198         * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
13199
13200 2018-03-27  Tom Tromey  <tom@tromey.com>
13201
13202         * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
13203
13204 2018-03-27  Pedro Alves  <palves@redhat.com>
13205             Tom Tromey  <tom@tromey.com>
13206
13207         * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
13208         destructor.  Now a class.
13209         (gdb_readline_wrapper_cleanup): Remove function.
13210         (gdb_readline_wrapper): Remove cleanups.
13211
13212 2018-03-27  Tom Tromey  <tom@tromey.com>
13213
13214         * typeprint.h (struct type_print_options) <local_typedefs,
13215         global_typedefs>: Remove "struct" keyword.
13216         (class typedef_hash_table): New class.
13217         (recursively_update_typedef_hash, add_template_parameters)
13218         (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
13219         (find_typedef_in_hash): Don't declare.
13220         * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
13221         (typedef_hash_table::recursively_update): Rename from
13222         recursively_update_typedef_hash.  Now a member.
13223         (typedef_hash_table::add_template_parameters): Rename from
13224         add_template_parameters.  Now a member.
13225         (typedef_hash_table::typedef_hash_table): Now a constructor;
13226         rename from create_typedef_hash.
13227         (typedef_hash_table::~typedef_hash_table): Now a destructor;
13228         rename from free_typedef_hash.
13229         (do_free_typedef_hash, make_cleanup_free_typedef_hash)
13230         (do_free_global_table): Remove.
13231         (typedef_hash_table::typedef_hash_table): New constructor; renamed
13232         from copy_type_recursive.
13233         (create_global_typedef_table): Remove.
13234         (typedef_hash_table::find_global_typedef): Now a member of
13235         typedef_hash_table.
13236         (typedef_hash_table::find_typedef): Rename from
13237         find_typedef_in_hash; now a member.
13238         (whatis_exp): Update.
13239         * extension.h (struct ext_lang_type_printers): Add constructor and
13240         destructor.
13241         (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
13242         declare.
13243         * extension.c (ext_lang_type_printers::ext_lang_type_printers):
13244         Now a constructor; rename from start_ext_lang_type_printers.
13245         (ext_lang_type_printers): Now a destructor; rename from
13246         free_ext_lang_type_printers.
13247         * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
13248         Update.
13249         (c_type_print_base_struct_union): Update.  Remove cleanups.
13250
13251 2018-03-27  Tom Tromey  <tom@tromey.com>
13252
13253         * dwarf-index-write.c: Include <cmath>.
13254
13255 2018-03-27  Joel Brobecker  <brobecker@adacore.com>
13256
13257         * NEWS: Add entry describing new "set|show varsize-limit" command.
13258         * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
13259         command.
13260         * printcmd.c (_initialize_printcmd): Add "set var" alias of
13261         "set variable".
13262
13263 2018-03-27  Simon Marchi  <simon.marchi@ericsson.com>
13264
13265         * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
13266         dwarf-index-write.c
13267         (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
13268         * dwarf-index-common.c: New file.
13269         * dwarf-index-common.h: New file.
13270         * dwarf-index-write.c: New file.
13271         * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
13272         (struct dwarf2_section_info): Move from here.
13273         (dwarf2_section_info_def): Likewise.
13274         (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
13275         (offset_type): Likewise.
13276         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
13277         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
13278         (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
13279         (byte_swap): Likewise.
13280         (MAYBE_SWAP): Likewise.
13281         (dwarf2_per_cu_ptr): Likewise.
13282         (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
13283         (struct tu_stats): Likewise.
13284         (struct dwarf2_per_objfile): Likewise.
13285         (struct dwarf2_per_cu_data): Likewise.
13286         (struct signatured_type): Likewise.
13287         (sig_type_ptr): Likewise.
13288         (DEF_VEC_P (sig_type_ptr)): Likewise.
13289         (INDEX4_SUFFIX): Likewise.
13290         (INDEX5_SUFFIX): Likewise.
13291         (DEBUG_STR_SUFFIX): Likewise.
13292         (dwarf2_read_section): Make non-static.
13293         (mapped_index_string_hash): Move from here.
13294         (dwarf5_djb_hash): Likewise.
13295         (file_write): Likewise.
13296         (class data_buf): Likewise.
13297         (struct symtab_index_entry): Likewise.
13298         (struct mapped_symtab): Likewise.
13299         (find_slot): Likewise.
13300         (hash_expand): Likewise.
13301         (add_index_entry): Likewise.
13302         (uniquify_cu_indices): Likewise.
13303         (class c_str_view): Likewise.
13304         (class c_str_view_hasher): Likewise.
13305         (class vector_hasher): Likewise.
13306         (write_hash_table): Likewise.
13307         (psym_index_map): Likewise.
13308         (struct addrmap_index_data): Likewise.
13309         (add_address_entry): Likewise.
13310         (add_address_entry_worker): Likewise.
13311         (write_address_map): Likewise.
13312         (symbol_kind): Likewise.
13313         (write_psymbols): Likewise.
13314         (struct signatured_type_index_data): Likewise.
13315         (write_one_signatured_type): Likewise.
13316         (recursively_count_psymbols): Likewise.
13317         (recursively_write_psymbols): Likewise.
13318         (class debug_names): Likewise.
13319         (check_dwarf64_offsets): Likewise.
13320         (psyms_seen_size): Likewise.
13321         (write_gdbindex): Likewise.
13322         (write_debug_names): Likewise.
13323         (assert_file_size): Likewise.
13324         (write_psymtabs_to_index): Likewise.
13325         (save_gdb_index_command): Likewise.
13326         (_initialize_dwarf2_read): Don't register the "save gdb-index"
13327         command.
13328         * dwarf2read.h: New file.
13329
13330 2018-03-27  Joel Brobecker  <brobecker@adacore.com>
13331
13332         PR gdb/22670
13333         * dwarf2read.c (dwarf2_physname): Do not return the demangled
13334         symbol name if the CU's language stores symbol names in linkage
13335         format.
13336         * language.h (struct language_defn)
13337         <la_store_sym_names_in_linkage_form_p>: New field.  Adjust
13338         all instances of this struct.
13339
13340 2018-03-26  Tom Tromey  <tom@tromey.com>
13341
13342         * stack.c (backtrace_command_1): Remove verbose code.
13343
13344 2018-03-26  Tom Tromey  <tom@tromey.com>
13345
13346         * python/py-framefilter.c (py_print_type): Don't catch
13347         exceptions.  Return void.
13348         (py_print_value): Likewise.
13349         (py_print_single_arg): Likewise.
13350         (enumerate_args): Don't catch exceptions.
13351         (py_print_args): Likewise.
13352         (py_print_frame): Likewise.
13353         (gdbpy_apply_frame_filter): Catch exceptions here.
13354
13355 2018-03-26  Tom Tromey  <tom@tromey.com>
13356
13357         * stack.c (_initialize_stack): Remove trailing newlines from help
13358         text.  Add "Usage" line to "backtrace" help.
13359
13360 2018-03-26  Tom Tromey  <tom@tromey.com>
13361
13362         PR python/16486:
13363         * python/py-framefilter.c (py_print_args): Call wrap_hint.
13364
13365 2018-03-26  Tom Tromey  <tom@tromey.com>
13366
13367         * python/py-framefilter.c (py_print_single_arg): Return
13368         EXT_LANG_BT_ERROR from catch.
13369
13370 2018-03-26  Tom Tromey  <tom@tromey.com>
13371
13372         PR backtrace/15584:
13373         * stack.c (backtrace_command_1): Move some code into no-filters
13374         "if".
13375
13376 2018-03-26  Tom Tromey  <tom@tromey.com>
13377
13378         * python/py-framefilter.c (throw_quit_or_print_exception): New
13379         function.
13380         (gdbpy_apply_frame_filter): Use it.
13381
13382 2018-03-26  Tom Tromey  <tom@tromey.com>
13383
13384         PR cli/17716:
13385         * python/py-framefilter.c (py_print_type, py_print_value)
13386         (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
13387         RETURN_MASK_ERROR.
13388
13389 2018-03-26  Tom Tromey  <tom@tromey.com>
13390
13391         * python/py-framefilter.c (enumerate_args): Use
13392         gdb::unique_xmalloc_ptr.
13393
13394 2018-03-26  Tom Tromey  <tom@tromey.com>
13395
13396         * python/py-framefilter.c (py_print_frame): Return
13397         EXT_LANG_BT_OK.
13398         (gdbpy_apply_frame_filter): Update comment.
13399         * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
13400         Remove.
13401         <EXT_LANG_BT_NO_FILTERS>: Change value.
13402
13403 2018-03-26  Tom Tromey  <tom@tromey.com>
13404
13405         PR backtrace/15582:
13406         * stack.c (backtrace_command): Parse "hide" argument.
13407         * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
13408         * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
13409         constant.
13410
13411 2018-03-26  Tom Tromey  <tom@tromey.com>
13412
13413         * stack.c (backtrace_command_1): Remove "show_locals" parameter,
13414         add "flags".
13415         (backtrace_command): Remove "fulltrace", add "flags".
13416
13417 2018-03-26  Tom Tromey  <tom@tromey.com>
13418
13419         * stack.c (backtrace_command): Rewrite command line parsing.
13420
13421 2018-03-26  Simon Marchi  <simon.marchi@ericsson.com>
13422
13423         * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
13424
13425 2018-03-26  Simon Marchi  <simon.marchi@ericsson.com>
13426
13427         * filename-seen-cache.h: Add include guard.
13428
13429 2018-03-26  Keith Seitz  <keiths@redhat.com>
13430
13431         * symfile.c (place_section): Remove "struct" from section_addr_info
13432         in comment.
13433         * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
13434         "struct" keyword from section_addr_info.
13435
13436 2018-03-26  Alan Hayward  <alan.hayward@arm.com>
13437
13438         * regformats/regdef.h (reg): Add constructors.
13439
13440 2018-03-25  Pedro Alves  <palves@redhat.com>
13441
13442         * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
13443         if then/else bodies in var_func_name extraction.
13444
13445 2018-03-23  Weimin Pan  <weimin.pan@oracle.com>
13446
13447         * minsyms.c (lookup_minimal_symbol_and_objfile): Use
13448         lookup_minimal_symbol() to find symbol entry.
13449         * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
13450
13451 2018-03-23  Keith Seitz  <keiths@redhat.com>
13452
13453         PR c++/22968
13454         * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
13455         nested type definitions for C++, too.
13456
13457 2018-03-23  Tom Tromey  <tom@tromey.com>
13458
13459         * machoread.c (struct oso_el): Add a constructor.  Don't define as
13460         a typedef.
13461         (macho_register_oso): Remove.
13462         (macho_symtab_read): Take a std::vector.
13463         (oso_el_compare_name): Now a std::sort comparator.
13464         (macho_symfile_read_all_oso): Take a std::vector.
13465         (macho_symfile_read): Use std::vector.  Remove cleanups.
13466
13467 2018-03-22  Tom Tromey  <tom@tromey.com>
13468
13469         * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
13470         (record_full_goto_bookmark): Use std::string.
13471
13472 2018-03-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
13473
13474         PR tdep/18295
13475         * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
13476         a single mask.
13477
13478 2018-03-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
13479
13480         * rs6000-tdep.c (store_insn_p): New function.
13481         (skip_prologue): New variable alloca_reg_offset. Set lr_reg
13482         and cr_reg to their unshifted values. Use store_insn_p to
13483         match LR saves using either R1 or fdata->alloca_reg. Use
13484         store_insn_p to match CR saves. Set alloca_reg_offset
13485         when alloca_reg and framep are set. Remove lr_reg shift
13486         when assigning to fdata->lr_register.
13487
13488 2018-03-22  Andreas Arnez  <arnez@linux.vnet.ibm.com>
13489
13490         * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
13491         command line args instead of emitting a warning.
13492
13493 2018-03-22  Simon Marchi  <simon.marchi@polymtl.ca>
13494
13495         * tracepoint.h (struct static_tracepoint_marker): Initialize
13496         fields, define default constructor, move constructor and move
13497         assignment, disable the rest.
13498         <str_id, extra>: Make std::string.
13499         (release_static_tracepoint_marker): Remove.
13500         (free_current_marker): Remove.
13501         * tracepoint.c (free_current_marker): Remove.
13502         (parse_static_tracepoint_marker_definition): Adjust to
13503         std::string, use new hex2str overload.
13504         (release_static_tracepoint_marker): Remove.
13505         (print_one_static_tracepoint_marker): Get marker by reference
13506         and adjust to std::string.
13507         (info_static_tracepoint_markers_command): Adjust to std::vector
13508         changes
13509         * target.h (static_tracepoint_marker_p): Remove typedef.
13510         (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
13511         (struct target_ops) <to_static_tracepoint_marker_at>: Return
13512         bool.
13513         <to_static_tracepoint_markers_by_strid>: Return std::vector.
13514         * target-debug.h
13515         (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
13516         (target_debug_print_std_vector_static_tracepoint_marker): New.
13517         (target_debug_print_struct_static_tracepoint_marker_p): Rename
13518         to...
13519         (target_debug_print_static_tracepoint_marker_p): ... this.
13520         * target-delegates.c: Re-generate.
13521         * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
13522         Make std::string.
13523         * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
13524         (decode_static_tracepoint_spec): Adjust to std::vector.
13525         (tracepoint_print_one_detail): Adjust to std::string.
13526         (strace_marker_decode_location): Adjust to std::string.
13527         (update_static_tracepoint): Adjust to std::string, remove call
13528         to release_static_tracepoint_marker.
13529         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
13530         Adjust to std::vector.
13531         * remote.c (remote_static_tracepoint_marker_at): Return bool.
13532         (remote_static_tracepoint_markers_by_strid): Adjust to
13533         std::vector.
13534         * common/rsp-low.h (hex2str): New overload with explicit count
13535         of bytes.
13536         * common/rsp-low.c (hex2str): New overload with explicit count
13537         of bytes.
13538         * unittests/rsp-low-selftests.c (test_hex2str): New function.
13539         (_initialize_rsp_low_selftests): Add test_hex2str test.
13540         * unittests/tracepoint-selftests.c
13541         (test_parse_static_tracepoint_marker_definition): Adjust to
13542         std::string.
13543
13544 2018-03-22  Simon Marchi  <simon.marchi@polymtl.ca>
13545
13546         * tracepoint.c (parse_static_tracepoint_marker_definition):
13547         Consider case where the definition is followed by more
13548         definitions.
13549         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13550         tracepoint-selftests.c.
13551         * unittests/tracepoint-selftests.c: New.
13552
13553 2018-03-21  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
13554
13555         * MAINTAINERS (Write After Approval): Add Pedro Franco de
13556         Carvalho.
13557
13558 2018-03-20  Stephen Roberts  <stephen.roberts@arm.com>
13559
13560         * symtab.c (find_pc_sect_line): fixed indentation.
13561
13562 2018-03-20  Stephen Roberts  <stephen.roberts@arm.com>
13563
13564         * symtab.c (find_pc_sect_line): now uses binary search.
13565
13566 2018-03-19  Tom Tromey  <tom@tromey.com>
13567
13568         * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
13569         "IDENT" production.
13570
13571 2018-03-19  Pedro Alves  <palves@redhat.com>
13572             Tom Tromey  <tom@tromey.com>
13573
13574         * unittests/observable-selftests.c: New file.
13575         * common/observable.h: New file.
13576         * observable.h: New file.
13577         * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
13578         arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
13579         breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
13580         corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
13581         extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
13582         infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
13583         linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
13584         mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
13585         ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
13586         python/py-breakpoint.c, python/py-finishbreakpoint.c,
13587         python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
13588         record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
13589         riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
13590         spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
13591         symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
13592         tui/tui-interp.c, valops.c: Update all users.
13593         * tui/tui-hooks.c (tui_bp_created_observer)
13594         (tui_bp_deleted_observer, tui_bp_modified_observer)
13595         (tui_inferior_exit_observer, tui_before_prompt_observer)
13596         (tui_normal_stop_observer, tui_register_changed_observer):
13597         Remove.
13598         (tui_observers_token): New global.
13599         (attach_or_detach, tui_attach_detach_observers): New functions.
13600         (tui_install_hooks, tui_remove_hooks): Use
13601         tui_attach_detach_observers.
13602         * record-btrace.c (record_btrace_thread_observer): Remove.
13603         (record_btrace_thread_observer_token): New global.
13604         * observer.sh: Remove.
13605         * observer.c: Rename to observable.c.
13606         * observable.c (namespace gdb_observers): Define new objects.
13607         (observer_debug): Move into gdb_observers namespace.
13608         (struct observer, struct observer_list, xalloc_observer_list_node)
13609         (xfree_observer_list_node, generic_observer_attach)
13610         (generic_observer_detach, generic_observer_notify): Remove.
13611         (_initialize_observer): Update.
13612         Don't include observer.inc.
13613         * Makefile.in (generated_files): Remove observer.h, observer.inc.
13614         (clean mostlyclean): Likewise.
13615         (observer.h, observer.inc): Remove targets.
13616         (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
13617         (COMMON_SFILES): Use observable.c, not observer.c.
13618         * .gitignore: Remove observer.h.
13619
13620 2018-03-18  Tom Tromey  <tom@tromey.com>
13621
13622         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
13623         gdb::def_vector.
13624         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
13625
13626 2018-03-17  Tom Tromey  <tom@tromey.com>
13627
13628         * auto-load.c (auto_load_objfile_script_1): Use std::string.
13629
13630 2018-03-17  Tom Tromey  <tom@tromey.com>
13631
13632         * target.c (class scoped_target_fd): New.
13633         (target_fileio_close_cleanup): Remove.
13634         (target_fileio_read_alloc_1): Use scoped_target_fd.
13635
13636 2018-03-16  Simon Marchi  <simon.marchi@polymtl.ca>
13637
13638         * silent-rules.mk: New.
13639         * Makefile.in: Include silent-rules.mk
13640         (srcdir, VPATH, top_srcdir): Move up.
13641         (COMPILE): Add ECHO_CXX.
13642         (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
13643         (init.c): Add ECHO_INIT_C.
13644         (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
13645         (version.c): Add ECHO_GEN.
13646         (printcmd.o): Add ECHO_CXX.
13647         (target-float.o): Add ECHO_CXX.
13648         (ada-exp.o): Add ECHO_CXX.
13649         (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
13650         (insight$(EXEEXT)): Add ECHO_CXXLD.
13651         * gnulib/configure.ac: Add AM_SILENT_RULES.
13652         * gnulib/aclocal.m4: Re-generate.
13653         * gnulib/configure: Re-generate.
13654         * gnulib/import/Makefile.in: Re-generate.
13655
13656 2018-03-16  Tom Tromey  <tom@tromey.com>
13657
13658         * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
13659         * utils.h (make_cleanup_free_section_addr_info): Don't declare.
13660         * utils.c (do_free_section_addr_info)
13661         (make_cleanup_free_section_addr_info): Remove.
13662         * symfile.h (struct other_sections): Add constructor.
13663         (struct section_addr_info): Remove.
13664         (section_addr_info): New typedef.
13665         (struct sym_fns) <sym_offsets>: Change type of parameter.
13666         (build_section_addr_info_from_objfile)
13667         (relative_addr_info_to_section_offsets, addr_info_make_relative)
13668         (default_symfile_offsets, symbol_file_add)
13669         (symbol_file_add_from_bfd)
13670         (build_section_addr_info_from_section_table): Update.
13671         (alloc_section_addr_info, free_section_addr_info): Don't declare.
13672         * symfile.c (alloc_section_addr_info): Remove.
13673         (build_section_addr_info_from_section_table): Change return type.
13674         Update.
13675         (build_section_addr_info_from_bfd)
13676         (build_section_addr_info_from_objfile): Likewise.
13677         (free_section_addr_info): Remove.
13678         (relative_addr_info_to_section_offsets): Change type of "addrs".
13679         (addrs_section_compar): Now a std::sort comparator.
13680         (addrs_section_sort): Change return type.
13681         (addr_info_make_relative): Change type of "addrs".  Update.
13682         (default_symfile_offsets, syms_from_objfile_1)
13683         (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
13684         (symbol_file_add_separate): Update.
13685         (symbol_file_add): Change type of "addrs".  Update.
13686         (add_symbol_file_command): Update.  Remove cleanups.
13687         * symfile-mem.c (symbol_file_add_from_memory): Update.  Remove
13688         cleanups.
13689         * symfile-debug.c (debug_sym_offsets): Change type of "info".
13690         * solib.c (solib_read_symbols): Update.
13691         * objfiles.c (objfile_relocate): Update.  Remove cleanups.
13692         * machoread.c (macho_symfile_offsets): Update.
13693         * jit.c (jit_bfd_try_read_symtab): Update.
13694
13695 2018-03-15  Simon Marchi  <simon.marchi@polymtl.ca>
13696
13697         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13698         unittests/utils-selftests.c.
13699         * unittests/utils-selftests.c: New file.
13700
13701 2018-03-14  Tom Tromey  <tom@tromey.com>
13702
13703         PR cli/14977:
13704         * printcmd.c (printf_c_string, printf_wide_c_string): Special case
13705         for NULL.
13706
13707 2018-03-14  Tom Tromey  <tom@tromey.com>
13708
13709         PR cli/19918:
13710         * printcmd.c (printf_pointer): Allow "-" in format.
13711
13712 2018-03-14  Tom Tromey  <tom@tromey.com>
13713
13714         * printcmd.c (_initialize_printcmd): Add usage to printf.
13715
13716 2018-03-14  Yao Qi  <qiyao@sourceware.org>
13717
13718         * MAINTAINERS: Update my email address.
13719
13720 2018-03-13  Tom Tromey  <tom@tromey.com>
13721
13722         * machoread.c (macho_check_dsym): Change filenamep to a
13723         std::string*.
13724         (macho_symfile_read): Update.
13725         * symfile.c (load_command): Use std::string.
13726
13727 2018-03-12  Andrew Burgess  <andrew.burgess@embecosm.com>
13728
13729         * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
13730         to error message string.
13731         (riscv_register_name): Use xsnprintf instead of sprintf.
13732         (riscv_insn::fetch_instruction): Use gdb_assert instead of
13733         internal_error.
13734         (riscv_print_arg_location): Use gdb_assert_not_reached instead of
13735         error.
13736         (riscv_push_dummy_call): Likewise.
13737
13738 2018-03-12  Tom Tromey  <tom@tromey.com>
13739
13740         * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
13741         Use gdb::byte_vector.
13742         * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
13743
13744 2018-03-12  Yao Qi  <yao.qi@linaro.org>
13745
13746         * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
13747         parameter type to readable_regcache.
13748         * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
13749         the declaration.
13750
13751 2018-03-11  Tom Tromey  <tom@tromey.com>
13752
13753         * dwarf2read.c (struct nextfield): Add initializers.
13754         (struct nextfnfield): Remove.
13755         (struct fnfieldlist): Add initializers.  Remove "length" and
13756         "head", use std::vector.
13757         (struct decl_field_list): Remove.
13758         (struct field_info): Add initializers.
13759         <fields, baseclasses>: Now std::vector.
13760         <nbaseclasses, nfnfields, typedef_field_list_count,
13761         nested_types_list_count>: Remove.
13762         (dwarf2_add_field, dwarf2_add_type_defn)
13763         (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
13764         (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
13765         (process_structure_scope): Update.
13766
13767 2018-03-11  Tom Tromey  <tom@tromey.com>
13768
13769         * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
13770         for use by std::sort.
13771         (build_type_psymtabs_1): Use std::vector.
13772
13773 2018-03-09  Eli Zaretskii  <eliz@gnu.org>
13774
13775         * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
13776         and LIBMPFR in the printed configuration.
13777
13778 2018-03-08  Tom Tromey  <tom@tromey.com>
13779
13780         * source.c (get_filename_and_charpos): Use scoped_fd.
13781         * nto-procfs.c (procfs_open_1): Use scoped_fd.
13782         (procfs_pidlist): Likewise.
13783         * procfs.c (proc_get_LDT_entry): Use scoped_fd.
13784         (iterate_over_mappings): Likewise.
13785
13786 2018-03-08  Tom Tromey  <tom@tromey.com>
13787
13788         * infcall.c (struct call_return_meta_info)
13789         <stack_temporaries_enabled>: Remove.
13790         (get_call_return_value, call_function_by_hand_dummy): Update.
13791         * thread.c (disable_thread_stack_temporaries): Remove.
13792         (enable_thread_stack_temporaries): Remove.
13793         (thread_stack_temporaries_enabled_p): Return bool.
13794         (push_thread_stack_temporary, value_in_thread_stack_temporaries)
13795         (get_last_thread_stack_temporary): Update.
13796         * eval.c (evaluate_subexp): Update.
13797         * gdbthread.h (class enable_thread_stack_temporaries): Now a
13798         class, not a function.
13799         (value_ptr, value_vec): Remove typedefs.
13800         (class thread_info) <stack_temporaries_enabled>: Now bool.
13801         <stack_temporaries>: Now a std::vector.
13802         (thread_stack_temporaries_enabled_p)
13803         (value_in_thread_stack_temporaries): Return bool.
13804
13805 2018-03-08  Simon Marchi  <simon.marchi@ericsson.com>
13806
13807         * remote.c (putpkt_binary): Fix omitted bytes reporting.
13808         (getpkt_or_notif_sane_1): Likewise.
13809
13810 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
13811
13812         * build-id.c (build_id_to_debug_bfd): Use std::string.
13813
13814 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
13815
13816         * build-id.c (find_separate_debug_file_by_buildid): Return
13817         std::string.
13818         * build-id.h (find_separate_debug_file_by_buildid): Return
13819         std::string.
13820         * coffread.c (coff_symfile_read): Adjust to std::string.
13821         * elfread.c (elf_symfile_read): Adjust to std::string.
13822         * symfile.c (separate_debug_file_exists): Change parameter to
13823         std::string.
13824         (find_separate_debug_file): Return std::string.
13825         (find_separate_debug_file_by_debuglink): Return std::string.
13826         * symfile.h (find_separate_debug_file_by_debuglink): Return
13827         std::string.
13828
13829 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
13830
13831         * common/xml-utils.c (xml_escape_text): Move code to...
13832         (xml_escape_text_append): ... this new function.
13833         * common/xml-utils.h (xml_escape_text_append): New declaration.
13834         * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
13835         New function.
13836         (_initialize_xml_utils): register test_xml_escape_text_append as
13837         a selftest.
13838
13839 2018-03-07  Alan Hayward  <alan.hayward@arm.com>
13840
13841         * defs.h: Remove MAX_REGISTER_SIZE.
13842         * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
13843         asserts.
13844         * python/py-unwind.c (pyuw_sniffer): Likewise.
13845
13846 2018-03-07  Tom Tromey  <tom@tromey.com>
13847
13848         * linux-tdep.c (linux_info_proc): Update.
13849         * target.h (struct target_ops) <to_fileio_readlink>: Return
13850         optional<string>.
13851         (target_fileio_readlink): Return optional<string>.
13852         * remote.c (remote_hostio_readlink): Return optional<string>.
13853         * inf-child.c (inf_child_fileio_readlink): Return
13854         optional<string>.
13855         * target.c (target_fileio_readlink): Return optional<string>.
13856
13857 2018-03-07  Andrew Burgess  <andrew.burgess@embecosm.com>
13858
13859         * regcache.c (cooked_read_test): Add riscv to the list of
13860         architectures that have a save_reggroup.
13861
13862 2018-03-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
13863
13864         * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
13865         value is not a dynamic class object.
13866
13867 2018-03-06  Tom Tromey  <tom@tromey.com>
13868
13869         * rust-exp.y: Formatting fixes.
13870
13871 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13872
13873         * riscv-tdep.c (riscv_register_name): Remove target description
13874         support.
13875         (riscv_gdbarch_init): Remove target description check.
13876
13877 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13878
13879         * riscv-tdep.c: Remove 'Contributed by ...' lines from header
13880         comment.
13881         * riscv-tdep.h: Likewise.
13882
13883 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13884
13885         * riscv-tdep.c (riscv_pseudo_register_read): Delete.
13886         (riscv_pseudo_register_write): Delete.
13887         (riscv_gdbarch_init): Remove all use of pseudo registers.
13888
13889 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
13890
13891         * record-btrace.c (btrace_print_lines): Replace cleanup
13892         parameter with RAII equivalents.
13893         (btrace_insn_history): Replace cleanup with RAII equivalents.
13894         * ui-out.h (make_cleanup_ui_out_list_begin_end,
13895         make_cleanup_ui_out_tuple_begin_end): Remove.
13896         * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
13897         make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
13898         make_cleanup_ui_out_list_begin_end): Remove.
13899
13900 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
13901
13902         * record-btrace.c (record_btrace_maybe_mark_async_event): Change
13903         parameter types to std::vector.  Use bool.
13904         (record_btrace_wait): Replace VEC(tp_t) with
13905         std::vector<thread_info *>.
13906         * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
13907
13908 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
13909
13910         * record-btrace.c (record_btrace_disable_callback): Remove.
13911         (struct scoped_btrace_disable): New.
13912         (record_btrace_open): Use scoped_btrace_disable.
13913
13914 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13915
13916         * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
13917         reading values from registers.
13918
13919 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13920
13921         * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
13922         where appropriate.
13923
13924 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13925
13926         * riscv-tdep.c (riscv_print_arg_location): Add header comment,
13927         change parameter type.  Use GDB's print functions, and use
13928         core_addr_to_string where appropriate.
13929         (riscv_push_dummy_call): Use core_addr_to_string where
13930         appropriate, update call to riscv_print_arg_location, and reindent
13931         a few lines.
13932         (riscv_return_value): Update call to riscv_print_arg_location.
13933
13934 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13935             Tim Newsome <tim@sifive.com>
13936             Albert Ou <a0u@eecs.berkeley.edu>
13937             Darius Rad <darius@bluespec.com>
13938
13939         * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
13940         (HFILES_NO_SRCDIR): Add riscv-tdep.h.
13941         (ALLDEPFILES): Add riscv-tdep.c
13942         * configure.tgt: Add riscv support.
13943         * riscv-tdep.c: New file.
13944         * riscv-tdep.h: New file.
13945         * NEWS: Mention new target.
13946         * MAINTAINERS: Add entry for riscv.
13947
13948 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13949
13950         * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
13951         fields within aggregates.
13952
13953 2018-03-04  Simon Marchi  <simon.marchi@polymtl.ca>
13954
13955         * record-btrace.c (btrace_print_lines): Change type of flags to
13956         gdb_disassembly_flags.
13957
13958 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
13959
13960         * fbsd-nat.c: Include "inf-ptrace.h".
13961         (USE_SIGTRAP_SIGINFO): Conditionally define.
13962         [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
13963         (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
13964         [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
13965         function.
13966         [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
13967         Likewise.
13968         [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
13969         Likewise.
13970         (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
13971         "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
13972         "supports_stopped_by_hw_breakpoint" target methods.
13973
13974 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
13975
13976         * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
13977         * fbsd-nat.c (debug_fbsd_nat): New variable.
13978         (show_fbsd_nat_debug): New function.
13979         (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
13980         (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
13981
13982 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
13983
13984         * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
13985         * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
13986         prototype.
13987         * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
13988         (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
13989         method.
13990
13991 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
13992
13993         * common/gdb_vecs.c (free_char_ptr_vec): Remove.
13994         * common/gdb_vecs.h (free_char_ptr_vec): Remove.
13995
13996 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
13997
13998         * charset.c (struct charset_vector): New.
13999         (charsets): Change type to charset_vector.
14000         (find_charset_names): Adjust.
14001         (add_one): Adjust.
14002         (_initialize_charset): Adjust.
14003
14004 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
14005
14006         * progspace.h (struct program_space) <deleted_solibs>: Change
14007         type to std::vector<std::string>.
14008         * progspace.c (clear_program_space_solib_cache): Adjust.
14009         * breakpoint.c (print_solib_event): Adjust.
14010         (check_status_catch_solib): Adjust.
14011         * solib.c (update_solib_list): Adjust.
14012         * ui-out.h (class ui_out) <field_string>: New overload.
14013         * ui-out.c (ui_out::field_string): New overload.
14014
14015 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
14016
14017         * progspace.h (struct program_space): Add constructor and
14018         destructor, initialize fields.
14019         (add_program_space): Remove.
14020         * progspace.c (add_program_space): Rename to...
14021         (program_space::program_space): ... this.
14022         (release_program_space): Rename to...
14023         (program_space::~program_space): ... this.
14024         (delete_program_space): Use delete to delete program_space.
14025         (initialize_progspace): Use new to allocate program_space.
14026         * inferior.c (add_inferior_with_spaces): Likewise.
14027         (clone_inferior_command): Likewise.
14028         * infrun.c (follow_fork_inferior): Likewise.
14029         (handle_vfork_child_exec_or_exit): Likewise.
14030
14031 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
14032
14033         * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
14034         (delim_string_to_char_ptr_vec): Return std::vector of
14035         gdb::unique_xmalloc_ptr.
14036         (dirnames_to_char_ptr_vec_append): Take std::vector of
14037         gdb::unique_xmalloc_ptr.
14038         (dirnames_to_char_ptr_vec): Return std::vector of
14039         gdb::unique_xmalloc_ptr.
14040         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
14041         Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
14042         (delim_string_to_char_ptr_vec): Return an std::vector of
14043         gdb::unique_xmalloc_ptr, adjust the code.
14044         (dirnames_to_char_ptr_vec_append): Take an std::vector of
14045         gdb::unique_xmalloc_ptr, adjust the code.
14046         (dirnames_to_char_ptr_vec): Return an std::vector of
14047         gdb::unique_xmalloc_ptr, adjust the code.
14048         * auto-load.c (auto_load_safe_path_vec): Change type to
14049         std::vector of gdb::unique_xmalloc_ptr.
14050         (auto_load_expand_dir_vars): Return an std::vector of
14051         gdb::unique_xmalloc_ptr, adjust the code.
14052         (auto_load_safe_path_vec_update): Adjust.
14053         (filename_is_in_auto_load_safe_path_vec): Adjust.
14054         (auto_load_objfile_script_1): Adjust.
14055         * build-id.c (build_id_to_debug_bfd): Adjust.
14056         * linux-thread-db.c (thread_db_load_search): Adjust.
14057         * source.c (add_path): Adjust.
14058         (openp): Adjust.
14059         * symfile.c (find_separate_debug_file): Adjust.
14060         * utils.c (do_free_char_ptr_vec): Remove.
14061         (make_cleanup_free_char_ptr_vec): Remove.
14062
14063 2018-03-01  Sergio Durigan Junior  <sergiodj@redhat.com>
14064
14065         PR gdb/22907
14066         * common/pathstuff.c: Conditionally include "<windows.h>".
14067
14068 2018-03-01  Georg Sauthoff  <mail@georg.so>
14069
14070         PR gdb/22888
14071         * gcore.in: Quote variables and switch interpreter to bash.
14072
14073 2018-03-01  Tom Tromey  <tom@tromey.com>
14074
14075         * dwarf2read.c (alloc_discriminant_info): Fix default_index
14076         assertion.  Add assertion for discriminant_index.
14077         (quirk_rust_enum): Use correct base type name in univariant case.
14078
14079 2018-03-01  Simon Marchi  <simon.marchi@ericsson.com>
14080
14081         * record.c (get_call_history_modifiers): Return a
14082         record_print_flags.
14083         (cmd_record_call_history): Adjust.
14084         * record-btrace.c (record_btrace_call_history): Adjust.
14085         (record_btrace_call_history_range): Adjust.
14086         (record_btrace_call_history_from): Adjust.
14087         * target-debug.h (target_debug_print_record_print_flags): New.
14088         * target-delegates.c: Re-generate.
14089         * target.c (target_call_history): Change flags type.
14090         (target_call_history_from): Likewise.
14091         (target_call_history_range): Likewise.
14092         * target.h (struct target_ops) <target_call_history>: Likewise.
14093         (target_call_history_from): Likewise.
14094         (target_call_history_range): Likewise.
14095
14096 2018-02-28  Sergio Durigan Junior  <sergiodj@redhat.com>
14097             Simon Marchi  <simon.marchi@polymtl.ca>
14098
14099         * common/common-utils.c: Include "sys/stat.h".
14100         (is_regular_file): Move here from "source.c"; change return
14101         type to "bool".
14102         * common/common-utils.h (is_regular_file): New prototype.
14103         * common/pathstuff.c (contains_dir_separator): New function.
14104         * common/pathstuff.h (contains_dir_separator): New prototype.
14105         * source.c: Don't include "sys/stat.h".
14106         (is_regular_file): Move to "common/common-utils.c".
14107
14108 2018-02-28  Sergio Durigan Junior  <sergiodj@redhat.com>
14109
14110         * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
14111         (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
14112         * auto-load.c: Include "common/pathstuff.h".
14113         * common/common-def.h (current_directory): Move here.
14114         * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
14115         function.
14116         * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
14117         prototype.
14118         * common/pathstuff.c: New file.
14119         * common/pathstuff.h: New file.
14120         * compile/compile.c: Include "common/pathstuff.h".
14121         * defs.h (current_directory): Move to "common/common-defs.h".
14122         * dwarf2read.c: Include "common/pathstuff.h".
14123         * exec.c: Likewise.
14124         * guile/scm-safe-call.c: Likewise.
14125         * linux-thread-db.c: Likewise.
14126         * main.c: Likewise.
14127         * nto-tdep.c: Likewise.
14128         * objfiles.c: Likewise.
14129         * source.c: Likewise.
14130         * symtab.c: Likewise.
14131         * utils.c: Include "common/pathstuff.h".
14132         (gdb_realpath): Move to "common/pathstuff.c".
14133         (gdb_realpath_keepfile): Likewise.
14134         (gdb_abspath): Likewise.
14135         * utils.h (gdb_realpath): Move to "common/pathstuff.h".
14136         (gdb_realpath_keepfile): Likewise.
14137         (gdb_abspath): Likewise.
14138
14139 2018-02-28  John Baldwin  <jhb@FreeBSD.org>
14140
14141         * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
14142         wildcard process pid for super_resume for kernels with a
14143         specific bug.
14144
14145 2018-02-27  Phil Muldoon  <pmuldoon@redhat.com>
14146
14147         * compile/compile.c (get_args): Add additional comments
14148         explaining function.
14149
14150 2018-02-27  Simon Marchi  <simon.marchi@polymtl.ca>
14151             Tom Tromey  <tom@tromey.com>
14152
14153         * target.h (memory_write_request_s): Remove typedef.  Don't define
14154         VEC.
14155         (target_write_memory_blocks): Change argument to std::vector.
14156         (struct memory_write_request): Add constructor.
14157         * target-memory.c (compare_block_starting_address): Return bool.
14158         Change argument types.
14159         (claim_memory): Change arguments to use std::vector.
14160         (split_regular_and_flash_blocks, blocks_to_erase)
14161         (compute_garbled_blocks): Likewise.
14162         (cleanup_request_data, cleanup_write_requests_vector): Remove.
14163         (target_write_memory_blocks): Change argument to std::vector.
14164         * symfile.c (struct load_section_data): Add constructor and
14165         destructor.  Use std::vector for "requests".
14166         (struct load_progress_data): Add initializers.
14167         (load_section_callback): Update.  Use "new".
14168         (clear_memory_write_data): Remove.
14169         (generic_load): Update.
14170
14171 2018-02-27  Alan Hayward  <alan.hayward@arm.com>
14172
14173         * arch/aarch64.h: Use common/tdesc.h.
14174
14175 2018-02-26  Maciej W. Rozycki  <macro@mips.com>
14176
14177         * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
14178         architecture with a 64-bit ABI.
14179
14180 2018-02-26  Maciej W. Rozycki  <macro@mips.com>
14181
14182         * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
14183         ahead of target description loading.
14184
14185 2018-02-26  Tom Tromey  <tom@tromey.com>
14186
14187         * stack.c (backtrace_command_1): Update.
14188         * python/python-internal.h (gdbpy_apply_frame_filter): Change type
14189         of "flags".
14190         * python/py-framefilter.c (py_print_frame)
14191         (gdbpy_apply_frame_filter): Change type of "flags".
14192         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
14193         of "flags".
14194         (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
14195         (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
14196         * extension.h (enum frame_filter_flag): Rename from
14197         frame_filter_flags.
14198         (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
14199         (apply_ext_lang_frame_filter): Change type of "flags".
14200         * extension.c (apply_ext_lang_frame_filter): Change type of
14201         "flags".
14202         * extension-priv.h (struct extension_language_ops)
14203         <apply_frame_filter>: Change type of "flags".
14204
14205 2018-02-26  Tom Tromey  <tom@tromey.com>
14206
14207         PR python/16497:
14208         * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag.  Fix
14209         off-by-one in py_end computation.
14210         * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
14211         PRINT_MORE_FRAMES.
14212         * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
14213         constant.
14214
14215 2018-02-26  Tom Tromey  <tom@tromey.com>
14216
14217         * dwarf2read.c (struct variant_field): New.
14218         (struct nextfield) <variant>: New field.
14219         (dwarf2_add_field): Handle DW_TAG_variant_part.
14220         (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
14221         discriminated union.
14222         (read_structure_type): Handle DW_TAG_variant_part.
14223         (handle_struct_member_die): New function, extracted from
14224         process_structure_scope.  Handle DW_TAG_variant.
14225         (process_structure_scope): Handle discriminated unions.  Call
14226         handle_struct_member_die.
14227
14228 2018-02-26  Tom Tromey  <tom@tromey.com>
14229
14230         * rust-lang.h (rust_last_path_segment): Declare.
14231         * rust-lang.c (rust_last_path_segment): Now public.  Change
14232         contract.
14233         (struct disr_info): Remove.
14234         (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
14235         (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
14236         (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
14237         (rust_enum_p, rust_enum_variant): New function.
14238         (rust_underscore_fields): Remove "offset" parameter.
14239         (rust_print_enum): New function.
14240         (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
14241         <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
14242         (rust_print_struct_def): Add "for_rust_enum" parameter.  Handle
14243         enums.
14244         (rust_internal_print_type): New function, from rust_print_type.
14245         Remove enum code.
14246         (rust_print_type): Call rust_internal_print_type.
14247         (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
14248         Update enum handling.
14249         * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
14250         (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
14251         (rust_union_quirks): New functions.
14252         (process_full_comp_unit, process_full_type_unit): Call
14253         rust_union_quirks.
14254         (process_structure_scope): Update rust_unions if necessary.
14255
14256 2018-02-26  Tom Tromey  <tom@tromey.com>
14257
14258         * value.h (value_union_variant): Declare.
14259         * valops.c (value_union_variant): New function.
14260         * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
14261         (struct discriminant_info): New.
14262         (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
14263         enumerator.
14264         (struct main_type) <flag_discriminated_union>: New field.
14265
14266 2018-02-26  Tom Tromey  <tom@tromey.com>
14267
14268         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14269         unittests/unpack-selftests.c.
14270         * unittests/unpack-selftests.c: New file.
14271         * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
14272
14273 2018-02-26  Yao Qi  <yao.qi@linaro.org>
14274
14275         * dwarf2read.c (struct partial_die_info) <read>: New method.
14276         (read_partial_die): Remove the declaration.
14277         (load_partial_dies): Update.
14278         (partial_die_info::partial_die_info):
14279         (read_partial_die): Change it to partial_die_info::read.
14280
14281 2018-02-26  Yao Qi  <yao.qi@linaro.org>
14282
14283         * dwarf2read.c (struct partial_die_info) <fixup>: New method.
14284         (fixup_partial_die): Remove declaration.
14285         (scan_partial_symbols): Update.
14286         (partial_die_parent_scope): Likewise.
14287         (partial_die_full_name): Likewise.
14288         (fixup_partial_die): Change it to partial_die_info::fixup.
14289
14290 2018-02-26  Yao Qi  <yao.qi@linaro.org>
14291
14292         * dwarf2read.c (read_partial_die): Update the declaration.
14293         (load_partial_dies): Caller update.
14294         (read_partial_die): Remove one argument abbrev_len.
14295
14296 2018-02-26  Yao Qi  <yao.qi@linaro.org>
14297
14298         * dwarf2read.c (struct partial_die_info): Add ctor, delete
14299         assignment operator.
14300         (load_partial_dies): Use ctor and copy ctor.
14301         (read_partial_die): Update.
14302         (dwarf2_cu::find_partial_die): Use ctor.
14303
14304 2018-02-26  Yao Qi  <yao.qi@linaro.org>
14305
14306         * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
14307         (find_partial_die_in_comp_unit): Change it to
14308         dwarf2_cu::find_partial_die.
14309         (find_partial_die): Update.
14310
14311 2018-02-26  Yao Qi  <yao.qi@linaro.org>
14312
14313         * dwarf2read.c (read_partial_die): Remove the code checking abbrev
14314         is NULL.
14315
14316 2018-02-26  Yao Qi  <yao.qi@linaro.org>
14317
14318         * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
14319
14320 2018-02-26  Alan Hayward  <alan.hayward@arm.com>
14321
14322         * arch/amd64.h: Use common/tdesc.h.
14323         * arch/i386.c: Likewise.
14324         * arch/i386.h: Likewise.
14325         * arch/tic6x.c: Likewise.
14326         * arch/tdesc.h: Move file from here...
14327         * common/tdesc.h: ...to here.
14328         * features/aarch64-core.c: Regenerate.
14329         * features/aarch64-fpu.c: Regenerate.
14330         * features/i386/32bit-avx.c: Regenerate.
14331         * features/i386/32bit-avx512.c: Regenerate.
14332         * features/i386/32bit-core.c: Regenerate.
14333         * features/i386/32bit-linux.c: Regenerate.
14334         * features/i386/32bit-mpx.c: Regenerate.
14335         * features/i386/32bit-pkeys.c: Regenerate.
14336         * features/i386/32bit-sse.c: Regenerate.
14337         * features/i386/64bit-avx.c: Regenerate.
14338         * features/i386/64bit-avx512.c: Regenerate.
14339         * features/i386/64bit-core.c: Regenerate.
14340         * features/i386/64bit-linux.c: Regenerate.
14341         * features/i386/64bit-mpx.c: Regenerate.
14342         * features/i386/64bit-pkeys.c: Regenerate.
14343         * features/i386/64bit-segments.c: Regenerate.
14344         * features/i386/64bit-sse.c: Regenerate.
14345         * features/i386/x32-core.c: Regenerate.
14346         * features/tic6x-c6xp.c: Regenerate.
14347         * features/tic6x-core.c: Regenerate.
14348         * features/tic6x-gp.c: Regenerate.
14349         * target-descriptions.c: Use common/tdesc.h.
14350         * target-descriptions.h: Likewise.
14351
14352 2018-02-24  Tom Tromey  <tom@tromey.com>
14353
14354         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
14355         (try_thread_db_load_from_dir, thread_db_load_search): Use
14356         std::string.
14357         (info_auto_load_libthread_db_compare): Return bool.  Change
14358         argument types.
14359         (info_auto_load_libthread_db): Use std::vector, std::string.
14360         Remove cleanups.
14361
14362 2018-02-24  Tom Tromey  <tom@tromey.com>
14363
14364         * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
14365         std::string.
14366         * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
14367         std::string*.
14368         * gdbarch.c: Rebuild.
14369         * gdbarch.h: Rebuild.
14370         * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
14371         * arch-utils.h (default_fast_tracepoint_valid_at): Update.
14372         * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
14373         std::string*.
14374
14375 2018-02-23  Simon Marchi  <simon.marchi@polymtl.ca>
14376
14377         * gdbtypes.h (sect_offset): Change type to uint64_t.
14378         (sect_offset_str): New function.
14379         * dwarf2read.c (create_addrmap_from_aranges): Use
14380         sect_offset_str.
14381         (error_check_comp_unit_head): Likewise.
14382         (create_debug_type_hash_table): Likewise.
14383         (read_cutu_die_from_dwo): Likewise.
14384         (init_cutu_and_read_dies): Likewise.
14385         (init_cutu_and_read_dies_no_follow): Likewise.
14386         (process_psymtab_comp_unit_reader): Likewise.
14387         (partial_die_parent_scope): Likewise.
14388         (peek_die_abbrev): Likewise.
14389         (process_queue): Likewise.
14390         (dwarf2_physname): Likewise.
14391         (read_namespace_alias): Likewise.
14392         (read_import_statement): Likewise.
14393         (create_dwo_cu_reader): Likewise.
14394         (create_cus_hash_table): Likewise.
14395         (lookup_dwo_cutu): Likewise.
14396         (inherit_abstract_dies): Likewise.
14397         (read_func_scope): Likewise.
14398         (read_call_site_scope): Likewise.
14399         (dwarf2_add_member_fn): Likewise.
14400         (read_common_block): Likewise.
14401         (read_module_type): Likewise.
14402         (read_typedef): Likewise.
14403         (read_subrange_type): Likewise.
14404         (load_partial_dies): Likewise.
14405         (read_partial_die): Likewise.
14406         (find_partial_die): Likewise.
14407         (read_str_index): Likewise.
14408         (dwarf2_string_attr): Likewise.
14409         (build_error_marker_type): Likewise.
14410         (lookup_die_type): Likewise.
14411         (dump_die_shallow): Likewise.
14412         (follow_die_ref): Likewise.
14413         (dwarf2_fetch_die_loc_sect_off): Likewise.
14414         (dwarf2_fetch_constant_bytes): Likewise.
14415         (follow_die_sig): Likewise.
14416         (get_signatured_type): Likewise.
14417         (get_DW_AT_signature_type): Likewise.
14418         (dwarf2_find_containing_comp_unit): Likewise.
14419         (set_die_type): Likewise.
14420
14421 2018-02-21  John Baldwin  <jhb@FreeBSD.org>
14422
14423         * arch/aarch64.c: Include "common-defs.h".
14424         * arch/amd64.c: Likewise.
14425         * arch/i386.c: Likewise.
14426
14427 2018-02-21  Tom Tromey  <tom@tromey.com>
14428
14429         * value.h: (extract_field_op): Update.
14430         * eval.c (extract_field_op): Return a const char *.
14431         * expression.h (parse_expression_for_completion): Update.
14432         * completer.c (complete_expression): Update.
14433         (add_struct_fields): Make fieldname const.
14434         * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
14435         (mark_completion_tag, parse_exp_in_context_1): Update.
14436         (parse_expression_for_completion): Change "name" to
14437         unique_xmalloc_ptr*.
14438
14439 2018-02-21  Tom Tromey  <tom@tromey.com>
14440
14441         * infcall.c (call_function_by_hand_dummy): Use std::vector.
14442
14443 2018-02-21  Yao Qi  <yao.qi@linaro.org>
14444
14445         * avr-tdep.c (avr_read_pc): Change parameter type to
14446         readable_regcache.
14447         * gdbarch.sh (read_pc): Likewise.
14448         * gdbarch.c: Re-generated.
14449         * gdbarch.h: Re-generated.
14450         * hppa-tdep.c (hppa_read_pc): Change parameter type to
14451         readable_regcache.
14452         * ia64-tdep.c (ia64_read_pc): Likewise.
14453         * mips-tdep.c (mips_read_pc): Likewise.
14454         * spu-tdep.c (spu_read_pc): Likewise.
14455
14456 2018-02-21  Yao Qi  <yao.qi@linaro.org>
14457
14458         * Makefile.in (COMMON_SFILES): Add regcache-dump.c
14459         * regcache-dump.c: New file.
14460         * regcache.c: Move register_dump to regcache-dump.c.
14461         (maintenance_print_registers): Likewise.
14462         (maintenance_print_raw_registers): Likewise.
14463         (maintenance_print_cooked_registers): Likewise.
14464         (maintenance_print_register_groups): Likewise.
14465         (maintenance_print_remote_registers): Likewise.
14466         (_initialize_regcache): Likewise.
14467         * regcache.h (register_dump): Moved from regcache.c.
14468
14469 2018-02-21  Yao Qi  <yao.qi@linaro.org>
14470
14471         * regcache.c (regcache::regcache): Update.
14472         (regcache::invalidate): Move it to detached_regcache::invalidate.
14473         (get_thread_arch_aspace_regcache): Update.
14474         (regcache::raw_update): Update.
14475         (regcache::cooked_read): Remove some code.
14476         (regcache::cooked_read_value): Likewise.
14477         (regcache::raw_write): Remove assert on m_readonly_p.
14478         (regcache::raw_supply_integer): Move it to
14479         detached_regcache::raw_supply_integer.
14480         (regcache::raw_supply_zeroed): Likewise.
14481         * regcache.h (detached_regcache) <raw_supply_integer>: New
14482         declaration.
14483         <raw_supply_zeroed, invalidate>: Likewise.
14484         (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
14485         <invalidate>: Likewise.
14486         <m_readonly_p>: Removed.
14487
14488 2018-02-21  Yao Qi  <yao.qi@linaro.org>
14489
14490         * infcmd.c (get_return_value): Let stop_regs point to
14491         get_current_regcache.
14492         * regcache.c (regcache::regcache): Remove.
14493         (register_dump_reg_buffer): New class.
14494         (regcache_print): Adjust.
14495         * regcache.h (regcache): Remove constructors.
14496
14497 2018-02-21  Yao Qi  <yao.qi@linaro.org>
14498
14499         * regcache.c (class register_dump): New class.
14500         (register_dump_regcache, register_dump_none): New class.
14501         (register_dump_remote, register_dump_groups): New class.
14502         (regcache_print): Update.
14503         * regcache.h (regcache_dump_what): Move it to regcache.c.
14504         (regcache) <dump>: Remove.
14505
14506 2018-02-21  Yao Qi  <yao.qi@linaro.org>
14507
14508         * jit.c (struct jit_unwind_private) <regcache>: Change its type to
14509          reg_buffer_rw *.
14510         (jit_unwind_reg_set_impl): Call raw_supply.
14511         (jit_frame_sniffer): Use reg_buffer_rw.
14512         * record-full.c (record_full_core_regbuf): Change its type.
14513         (record_full_core_open_1): Use reg_buffer_rw.
14514         (record_full_close): Likewise.
14515         (record_full_core_fetch_registers): Use regcache->raw_supply.
14516         (record_full_core_store_registers): Likewise.
14517         * regcache.c (regcache::get_register_status): Move it to
14518         reg_buffer.
14519         (regcache_raw_set_cached_value): Remove.
14520         (regcache::raw_set_cached_value): Remove.
14521         (regcache::raw_write): Call raw_supply.
14522         (regcache::raw_supply): Move it to reg_buffer_rw.
14523         * regcache.h (regcache_raw_set_cached_value): Remove.
14524         (reg_buffer_rw): New class.
14525
14526 2018-02-21  Yao Qi  <yao.qi@linaro.org>
14527
14528         * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
14529         readonly_detached_regcache.
14530         (dummy_frame_prev_register): Use regcache->cooked_read.
14531         * frame.c (frame_save_as_regcache): Change return type.
14532         (frame_pop): Update.
14533         * frame.h (frame_save_as_regcache): Update declaration.
14534         * inferior.h (get_infcall_suspend_state_regcache): Update
14535         declaration.
14536         * infrun.c (infcall_suspend_state) <registers>: use
14537         readonly_detached_regcache.
14538         (save_infcall_suspend_state): Don't use regcache_dup.
14539         (get_infcall_suspend_state_regcache): Change return type.
14540         * linux-fork.c (struct fork_info) <savedregs>: Change to
14541         readonly_detached_regcache.
14542         <pc>: New field.
14543         (fork_save_infrun_state): Don't use regcache_dup.
14544         (info_checkpoints_command): Adjust.
14545         * mi/mi-main.c (register_changed_p): Update declaration.
14546         (mi_cmd_data_list_changed_registers): Use
14547         readonly_detached_regcache.
14548         (register_changed_p): Change parameter type to
14549         readonly_detached_regcache.
14550         * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
14551         readonly_detached_regcache.
14552         (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
14553         * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
14554         New.
14555         (regcache::save): Move it to reg_buffer.
14556         (regcache::restore): Change parameter type.
14557         (regcache_dup): Remove.
14558         * regcache.h (reg_buffer) <save>: New method.
14559         (readonly_detached_regcache): New class.
14560         * spu-tdep.c (spu2ppu_cache) <regcache>: Use
14561         readonly_detached_regcache.
14562         (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
14563
14564 2018-02-21  Yao Qi  <yao.qi@linaro.org>
14565
14566         * frame.c (frame_save_as_regcache): Use regcache method save.
14567         (frame_pop): Use regcache method restore.
14568         * infrun.c (restore_infcall_suspend_state): Likewise.
14569         * linux-fork.c (fork_load_infrun_state): Likewise.
14570         * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
14571         save.
14572         * regcache.c (regcache_save): Remove.
14573         (regcache::restore): More asserts.
14574         (regcache_cpy): Remove.
14575         * regcache.h (regcache_save): Remove the declaration.
14576         (regcache::restore): Move from private to public.
14577         Remove the friend declaration of regcache_cpy.
14578         (regcache_cpy): Remove declaration.
14579
14580 2018-02-21  Yao Qi  <yao.qi@linaro.org>
14581
14582         * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
14583         parameter type to 'readable_regcache *'.
14584         * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14585         * arm-tdep.c (arm_neon_quad_read): Likewise.
14586         (arm_pseudo_read): Likewise.
14587         * avr-tdep.c (avr_pseudo_register_read): Likewise.
14588         * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14589         * frv-tdep.c (frv_pseudo_register_read): Likewise.
14590         * gdbarch.c: Re-generated.
14591         * gdbarch.h: Re-generated.
14592         * gdbarch.sh (pseudo_register_read): Change parameter type to
14593         'readable_regcache *'.
14594         (pseudo_register_read_value): Likewise.
14595         * h8300-tdep.c (pseudo_from_raw_register): Likewise.
14596         (h8300_pseudo_register_read): Likewise.
14597         * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
14598         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14599         (i386_pseudo_register_read_into_value): Likewise.
14600         (i386_pseudo_register_read_value): Likewise.
14601         * i386-tdep.h (i386_pseudo_register_read_into_value): Update
14602         declaration.
14603         * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
14604         * m32c-tdep.c (m32c_raw_read): Likewise.
14605         (m32c_read_flg): Likewise.
14606         (m32c_banked_register): Likewise.
14607         (m32c_banked_read): Likewise.
14608         (m32c_sb_read): Likewise.
14609         (m32c_part_read): Likewise.
14610         (m32c_cat_read): Likewise.
14611         (m32c_r3r2r1r0_read): Likewise.
14612         (m32c_pseudo_register_read): Likewise.
14613         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14614         * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14615         (mep_pseudo_cr64_read): Likewise.
14616         (mep_pseudo_register_read): Likewise.
14617         * mips-tdep.c (mips_pseudo_register_read): Likewise.
14618         * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14619         * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14620         * regcache.c (regcache::raw_read): Move it to readable_regcache.
14621         (regcache::cooked_read): Likewise.
14622         (regcache::cooked_read_value): Likewise.
14623         (regcache_cooked_read_signed):
14624         (regcache::cooked_read): Likewise.
14625         * regcache.h (readable_regcache): New class.
14626         (regcache): Inherit readable_regcache.  Move some methods to
14627         readable_regcache.
14628         * rl78-tdep.c (rl78_pseudo_register_read): Change
14629         parameter type to 'readable_regcache *'.
14630         * rs6000-tdep.c (do_regcache_raw_read): Remove.
14631         (e500_pseudo_register_read): Change parameter type to
14632         'readable_regcache *'.
14633         (dfp_pseudo_register_read): Likewise.
14634         (vsx_pseudo_register_read): Likewise.
14635         (efpr_pseudo_register_read): Likewise.
14636         * s390-tdep.c (s390_pseudo_register_read): Likewise.
14637         * sh-tdep.c (sh_pseudo_register_read): Likewise.
14638         * sh64-tdep.c (pseudo_register_read_portions): Likewise.
14639         (sh64_pseudo_register_read): Likewise.
14640         * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
14641         * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14642         * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
14643         (spu_pseudo_register_read): Likewise.
14644         * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14645         (xtensa_pseudo_register_read): Likewise.
14646
14647 2018-02-21  Yao Qi  <yao.qi@linaro.org>
14648
14649         * regcache.c (regcache::regcache): Call reg_buffer ctor.
14650         (regcache::arch): Move it to reg_buffer::arch.
14651         (regcache::register_buffer): Likewise.
14652         (regcache::assert_regnum): Likewise.
14653         (regcache::num_raw_registers): Likewise.
14654         * regcache.h (reg_buffer): New class.
14655         (regcache): Inherit reg_buffer.
14656
14657 2018-02-20  Simon Marchi  <simon.marchi@ericsson.com>
14658
14659         * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
14660         gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
14661
14662 2018-02-20  Markus Metzger  <markus.t.metzger@intel.com>
14663
14664         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
14665
14666 2018-02-19  Alan Hayward  <alan.hayward@arm.com>
14667
14668         * Makefile.in: (COMMON_SFILES): Add common/*.c files.
14669         (SFILES): Remove common/*.c files.
14670         (COMMON_OBS): Remove some *.o files built from common/*.c files.
14671         * common/common.host: Add common reference.
14672         * configure.ac: Likewise.
14673         * configure: Regenerate.
14674
14675 2018-02-16  Yao Qi  <yao.qi@linaro.org>
14676
14677         * block.c (block_namespace_info): Inherit allocate_on_obstack.
14678         (block_initialize_namespace): Use new.
14679         * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
14680         (dwarf2_free_objfile): Use delete.
14681         * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
14682         (copy_type_recursive): Use new.
14683         * gdb_obstack.h (allocate_on_obstack): New.
14684
14685 2018-02-15  Yao Qi  <yao.qi@linaro.org>
14686
14687         PR gdb/22849
14688         * inferior.c (exit_inferior_1): Reset inf->control.
14689
14690 2018-02-15  Joel Brobecker  <brobecker@adacore.com>
14691
14692         * ada-lang.c (ada_to_fixed_value_create): Delete advance
14693         declaration.
14694
14695 2018-02-14  Pedro Alves  <palves@redhat.com>
14696
14697         * frame-unwind.c (frame_unwind_try_unwinder): Always call
14698         frame_cleanup_after_sniffer on exception.
14699
14700 2018-02-14  Tom Tromey  <tom@tromey.com>
14701
14702         * solist.h (struct target_so_ops) <bfd_open>: Make pathname
14703         const.
14704         (solib_bfd_open): Make pathname const.
14705         * solib.c (solib_bfd_open): Make pathname const.
14706         * solib-spu.c (spu_bfd_fopen): Make name const.
14707         (spu_bfd_open): Make pathname const.
14708         * solib-darwin.c (darwin_bfd_open): Make pathname const.
14709         * solib-aix.c (solib_aix_bfd_open): Make pathname const.
14710
14711 2018-02-14  Tom Tromey  <tom@tromey.com>
14712
14713         * symfile.c (symfile_bfd_open): Update.
14714         * source.h (openp, source_full_path_of, find_and_open_source):
14715         Change argument type to unique_xmalloc_ptr.
14716         * source.c (openp): Take a unique_xmalloc_ptr.
14717         (source_full_path_of, find_and_open_source): Likewise.
14718         (open_source_file, symtab_to_fullname): Update.
14719         * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
14720         unique_xmalloc_ptr.
14721         * solib.c (solib_find_1): Use unique_xmalloc_ptr.
14722         (exec_file_find): Update.
14723         * psymtab.c (psymtab_to_fullname): Update.
14724         * nto-tdep.h (nto_find_and_open_solib): Update.
14725         * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
14726         unique_xmalloc_ptr.
14727         * exec.c (exec_file_attach): Update.
14728         * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
14729         * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
14730
14731 2018-02-14  Tom Tromey  <tom@tromey.com>
14732
14733         * solib.c: Include source.h.
14734         * nto-tdep.c: Include source.h.
14735         * mi/mi-cmd-env.c: Include source.h.
14736         * infcmd.c: Include source.h.
14737         * exec.c: Include source.h.
14738         * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
14739         (add_path, directory_switch, source_path, init_source_path): Move
14740         declarations...
14741         * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
14742         (add_path, directory_switch, source_path, init_source_path):
14743         ...here.
14744
14745 2018-02-14  Tom Tromey  <tom@tromey.com>
14746
14747         * solist.h (exec_file_find, solib_find): Return
14748         unique_xmalloc_ptr.
14749         (solib_bfd_fopen): Take a const char *.
14750         * solib.c (solib_find_1): Return unique_xmalloc_ptr.
14751         (exec_file_find, solib_find): Likewise.
14752         (solib_bfd_fopen): Do not take ownership of "pathname".
14753         (solib_bfd_open): Use unique_xmalloc_ptr.
14754         * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
14755         * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
14756         * infrun.c (follow_exec): Use unique_xmalloc_ptr.
14757         * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
14758
14759 2018-02-14  Joel Brobecker  <brobecker@adacore.com>
14760
14761         * ada-lang.c (name_match_type_from_name): Remove reference to
14762         ada_name_for_lookup in function's documentation.
14763         * ada-lang.h (ada_name_for_lookup): Delete declaration.
14764
14765 2018-02-13  Simon Marchi  <simon.marchi@polymtl.ca>
14766
14767         * defs.h (enum openp_flags): New enum.
14768         (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
14769         Move to enum openp_flags.
14770         (openp_flags): New enum flags.
14771         (openp): Change parameter type to openp_flags.
14772         * source.c (openp): Change parameter type to openp_flags.
14773         * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
14774         * dwarf2read.c (try_open_dwop_file): Use openp_flags.
14775
14776 2018-02-13  Simon Marchi  <simon.marchi@polymtl.ca>
14777
14778         * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
14779         per-command.
14780
14781 2018-02-12  Andrew Burgess  <andrew.burgess@embecosm.com>
14782
14783         * dwarf2read.c (dwarf2_release_queue): Delete function, move body
14784         into...
14785         (class dwarf2_queue_guard): ...the destructor of this new class.
14786         (dw2_do_instantiate_symtab): Create instance of the new class
14787         dwarf2_queue_guard, remove cleanup.
14788
14789 2018-02-09  Tom Tromey  <tom@tromey.com>
14790
14791         * source.c (find_source_lines): Don't reference past the end of
14792         the vector.
14793
14794 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
14795
14796         * remote.c (remote_btrace_maybe_reopen): Change error message.
14797         * btrace.c (btrace_enable): Likewise.
14798         (parse_xml_btrace): Likewise.
14799         (parse_xml_btrace_conf): Likewise.
14800
14801 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
14802
14803         * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
14804         (linux_enable_pt, linux_enable_bts): Call
14805         diagnose_perf_event_open_fail.
14806
14807 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
14808
14809         * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
14810         Remove parameter and change return type.  Update callers.  Move it.
14811         (linux_enable_bts, linux_enable_pt): Improve error message.
14812         (linux_enable_pt): Remove zero buffer size check.
14813         (linux_enable_btrace): Improve error messages.  Remove NULL return
14814         check.
14815
14816 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
14817
14818         * btrace.c (btrace_enable): Remove target_supports_btrace call.
14819         * nat/linux-btrace.c (perf_event_pt_event_type): Move.
14820         (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
14821         (linux_supports_pt, linux_supports_btrace): Remove.
14822         (linux_enable_bts): Call cpu_supports_bts.
14823         * nat/linux-btrace.h (linux_supports_btrace): Remove.
14824         * remote.c (remote_supports_btrace): Remove.
14825         (init_remote_ops): Remove remote_supports_btrace.
14826         * target-delegates.c: Regenerated.
14827         * target.c (target_supports_btrace): Remove.
14828         * target.h (target_ops) <to_supports_btrace>: Remove
14829         (target_supports_btrace): Remove.
14830         * x86-linux-nat.c (x86_linux_create_target): Remove
14831         linux_supports_btrace.
14832
14833 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
14834
14835         * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
14836         btrace failed.
14837         * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
14838         exception and use message in own exception.
14839
14840 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
14841
14842         * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
14843         (perf_event_pt_event_type): Use gdb_file_up.
14844         (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
14845         scoped_fd, and scoped_mmap.
14846
14847 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
14848
14849         * common/scoped_mmap.h: New.
14850         * unittests/scoped_mmap-selftest.c: New.
14851         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14852         unittests/scoped_mmap-selftest.c.
14853
14854 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
14855
14856         * common/scoped_fd.h: New.
14857         * unittests/scoped_fd-selftest.c: New.
14858         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14859         unittests/scoped_fd-selftest.c.
14860
14861 2018-02-09  Tom Tromey  <tom@tromey.com>
14862
14863         * auto-load.c (auto_load_section_scripts): Use
14864         gdb::unique_xmalloc_ptr.
14865
14866 2018-02-09  Tom Tromey  <tom@tromey.com>
14867
14868         * auto-load.c (execute_script_contents): Use std::string.
14869
14870 2018-02-09  Joel Brobecker  <brobecker@adacore.com>
14871
14872         * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
14873         Python function, rather than a new command.
14874
14875 2018-02-08  Tom Tromey  <tom@tromey.com>
14876
14877         * solib.c (solib_find_1): Use std::string.
14878         (solib_bfd_fopen): Use unique_xmalloc_ptr.
14879
14880 2018-02-08  Tom Tromey  <tom@tromey.com>
14881
14882         * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
14883
14884 2018-02-08  Tom Tromey  <tom@tromey.com>
14885
14886         * source.c (find_source_lines): Use gdb::def_vector.
14887
14888 2018-02-08  Tom Tromey  <tom@tromey.com>
14889
14890         * macrocmd.c (struct temporary_macro_definition): New.
14891         (macro_define_command): Use temporary_macro_definition.  Remove
14892         cleanups.
14893         (free_macro_definition_ptr): Remove.
14894
14895 2018-02-08  Tom Tromey  <tom@tromey.com>
14896
14897         * macroexp.c (maybe_expand): Use std::string.
14898
14899 2018-02-08  Tom Tromey  <tom@tromey.com>
14900
14901         * macroexp.c (struct macro_buffer): Add initializers for some
14902         members.
14903         (init_buffer, init_shared_buffer, free_buffer)
14904         (free_buffer_return_text): Remove.
14905         (macro_buffer): New constructors.
14906         (~macro_buffer): New destructor.
14907         (macro_buffer::set_shared): New method.
14908         (macro_buffer::resize_buffer, macro_buffer::appendc)
14909         (macro_buffer::appendmem): Now methods, not free functions.
14910         (set_token, append_tokens_without_splicing, stringify)
14911         (macro_stringify): Update.
14912         (gather_arguments): Change return type.  Remove argc_p argument,
14913         add args_ptr argument.  Use std::vector.
14914         (substitute_args): Remove argc argument.  Accept std::vector.
14915         (expand): Update.  Use std::vector.
14916         (scan, macro_expand, macro_expand_next): Update.
14917
14918 2018-02-08  Tom Tromey  <tom@tromey.com>
14919
14920         * symtab.c (default_collect_symbol_completion_matches_break_on):
14921         Use unique_xmalloc_ptr.
14922         * macroscope.h: (sal_macro_scope, user_macro_scope)
14923         (default_macro_scope): Return unique_xmalloc_ptr.
14924         * macroscope.c (sal_macro_scope, user_macro_scope)
14925         (default_macro_scope): Return unique_xmalloc_ptr.
14926         * macroexp.h (macro_expand, macro_expand_once): Return
14927         unique_xmalloc_ptr.
14928         * macroexp.c (macro_expand, macro_expand_once): Return
14929         unique_xmalloc_ptr.
14930         * macrocmd.c (macro_expand_command, macro_expand_once_command)
14931         (info_macro_command, info_macros_command): Use
14932         unique_xmalloc_ptr.
14933         * compile/compile-c-support.c (write_macro_definitions): Use
14934         unique_xmalloc_ptr.
14935         * c-exp.y (c_parse): Use unique_xmalloc_ptr.
14936
14937 2018-02-07  Simon Marchi  <simon.marchi@ericsson.com>
14938
14939         * value.c (value_static_field): Assign field type instead of
14940         containing type when returning an optimized out value.
14941
14942 2018-02-06  Yao Qi  <yao.qi@linaro.org>
14943
14944         * ft32-tdep.c (ft32_read_pc): Remove.
14945         (ft32_write_pc): Remove.
14946         (ft32_gdbarch_init): Update.
14947         * m32r-tdep.c (m32r_read_pc): Remove.
14948         (m32r_gdbarch_init): Update.
14949         * mep-tdep.c (mep_read_pc): Remove.
14950         (mep_gdbarch_init): Update.
14951         * microblaze-tdep.c (microblaze_write_pc): Remove.
14952         (microblaze_gdbarch_init): Update.
14953         * mn10300-tdep.c (mn10300_read_pc): Remove.
14954         (mn10300_write_pc): Remove.
14955         (mn10300_gdbarch_init): Update.
14956         * moxie-tdep.c (moxie_read_pc): Remove.
14957         (moxie_write_pc): Remove.
14958         (moxie_gdbarch_init): Update.
14959
14960 2018-02-06  Yao Qi  <yao.qi@linaro.org>
14961
14962         * expprint.c (print_subexp_standard): Handle
14963         OP_F77_UNDETERMINED_ARGLIST.
14964         (dump_subexp_body_standard): Likewise.
14965
14966 2018-02-05  Alan Hayward  <alan.hayward@arm.com>
14967
14968         * target-descriptions.c (tdesc_element_visitor) Add empty
14969         implementations.
14970         (tdesc_type): Move make_gdb_type from here.
14971         (tdesc_type_builtin): Likewise.
14972         (tdesc_type_vector): Likewise.
14973         (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
14974         (make_gdb_type_struct): Move from tdesc_type_with_fields.
14975         (make_gdb_type_union): Likewise.
14976         (make_gdb_type_flags): Likewise.
14977         (make_gdb_type_enum): Likewise.
14978         (make_gdb_type): New function.
14979         (tdesc_register_type): Use static make_gdb_type.
14980
14981 2018-02-05  Ruslan Kabatsayev <b7.10110111@gmail.com>
14982
14983         * infcmd.c (default_print_one_register_info): Align natural-format
14984         column values consistently one under another.
14985         (pad_to_column): New function.
14986
14987 2018-02-05  Joel Brobecker  <brobecker@adacore.com>
14988
14989         * dwarf2read.c (dwarf2_physname): Move commment.
14990
14991 2018-02-01  Leszek Swirski  <leszeks@google.com>
14992
14993         * varobj.c (varobj_formatted_print_options): Allow recursive
14994         pretty printing if pretty printing is enabled.
14995
14996 2018-02-01  Leszek Swirski  <leszeks@google.com>
14997
14998         * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
14999         names after a structop as a filename.
15000
15001 2018-02-01  Yao Qi  <yao.qi@linaro.org>
15002
15003         * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
15004         (arm_record_coproc_data_proc): Likewise.
15005
15006 2018-02-01  Yao Qi  <yao.qi@linaro.org>
15007
15008         * arm-tdep.c (arm_record_extension_space): Change ret to signed.
15009
15010 2018-01-31  Nikola Prica  <nikola.prica@rt-rk.com>
15011
15012         * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
15013         assign shifted lr_reg to fdata->lr_register when lr_reg is set.
15014
15015 2018-01-31  Pedro Alves  <palves@redhat.com>
15016
15017         * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
15018         * inflow.c (child_terminal_save_inferior): Wrap reference to
15019         tcgetpgrp in HAVE_TERMIOS_H.
15020         (child_interrupt, child_pass_ctrlc): Wrap references to signal in
15021         _WIN32.
15022         * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
15023         always iterate over all inferiors.
15024         (gdbsim_cntrl_c): Adjust.
15025         * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
15026
15027 2018-01-31  Joel Brobecker  <brobecker@adacore.com>
15028
15029         * gdbtypes.c (lookup_array_range_type): Make sure the array's
15030         index type is objfile-owned if the element type is as well.
15031
15032 2018-01-31  Joel Brobecker  <brobecker@adacore.com>
15033
15034         GDB 8.1 released.
15035
15036 2018-01-30  Philipp Rudo  <prudo@linux.vnet.ibm.com>
15037
15038         * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
15039         "features/s390x-linux64.c".
15040         (_initialize_s390_linux_tdep): Remove initialization of tdescs
15041         s390_linux32 and s390x_linux64.
15042         (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
15043         default tdesc.
15044         * s390-tdep.c: Include "features/s390-linux32.c" and
15045         "features/s390x-linux64.c".
15046         (s390_tdesc_valid): Add check for tdesc_has_registers.
15047         (s390_gdbarch_init): Make sure there is always a valid tdesc.
15048         (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
15049         tdesc_s390x_linux64.
15050         * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
15051         tdesc_s390x_linux64 to...
15052         * s390-tdep.h: ...here.
15053
15054 2018-01-30  Pedro Alves  <palves@redhat.com>
15055
15056         PR gdb/13211
15057         * config.in, configure: Regenerate.
15058         * configure.ac: Check for getpgid.
15059         * go32-nat.c (go32_pass_ctrlc): New.
15060         (go32_target): Install it.
15061         * inf-child.c (inf_child_target): Install
15062         child_terminal_save_inferior, child_pass_ctrlc and
15063         child_interrupt.
15064         * inf-ptrace.c (inf_ptrace_interrupt): Delete.
15065         (inf_ptrace_target): No longer install it.
15066         * infcmd.c (interrupt_target_1): Adjust.
15067         * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
15068         (child_interrupt): Declare.
15069         (inferior::terminal_state): New.
15070         * inflow.c (struct terminal_info): Update comments.
15071         (inferior_process_group): Delete.
15072         (terminal_is_ours): Delete.
15073         (gdb_tty_state): New.
15074         (child_terminal_init): Adjust.
15075         (is_gdb_terminal, sharing_input_terminal_1)
15076         (sharing_input_terminal): New functions.
15077         (child_terminal_inferior): Adjust.  Use sharing_input_terminal.
15078         Set the process's actual process group in the foreground if
15079         possible.  Handle is_ours_for_output/is_ours distinction.  Don't
15080         mark terminal as the inferior's if not sharing GDB's terminal.
15081         Don't check attach_flag.
15082         (child_terminal_ours_for_output, child_terminal_ours): Adjust to
15083         pass down a target_terminal_state.
15084         (child_terminal_save_inferior): New, factored out from ...
15085         (child_terminal_ours_1): ... this.  Handle
15086         target_terminal_state::is_ours_for_output.
15087         (child_interrupt, child_pass_ctrlc): New.
15088         (inflow_inferior_exit): Clear the inferior's terminal_state.
15089         (copy_terminal_info): Copy the inferior's terminal state.
15090         (_initialize_inflow): Remove reference to terminal_is_ours.
15091         * inflow.h (inferior_process_group): Delete.
15092         * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
15093         * procfs.c (procfs_target): Don't install procfs_interrupt.
15094         (procfs_interrupt): Delete.
15095         * remote.c (remote_serial_quit_handler): Adjust.
15096         (remote_interrupt): Remove ptid parameter.  Adjust.
15097         * target-delegates.c: Regenerate.
15098         * target.c: Include "terminal.h".
15099         (target_terminal::terminal_state): Rename to ...
15100         (target_terminal::m_terminal_state): ... this.
15101         (target_terminal::init): Adjust.
15102         (target_terminal::inferior): Adjust to per-inferior
15103         terminal_state.
15104         (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
15105         (target_terminal::ours, target_terminal::ours_for_output): Use
15106         target_terminal_is_ours_kind.
15107         (target_interrupt): Remove ptid parameter.  Adjust.
15108         (default_target_pass_ctrlc): Adjust.
15109         * target.h (target_ops::to_terminal_save_inferior): New field.
15110         (target_ops::to_interrupt): Remove ptid_t parameter.
15111         (target_interrupt): Remove ptid_t parameter.  Update comment.
15112         (target_pass_ctrlc): Update comment.
15113         * target/target.h (target_terminal_state): New scoped enum,
15114         factored out of ...
15115         (target_terminal::terminal_state): ... here.
15116         (target_terminal::inferior): Update comments.
15117         (target_terminal::restore_inferior): New.
15118         (target_terminal::is_inferior, target_terminal::is_ours)
15119         (target_terminal::is_ours_for_output): Adjust.
15120         (target_terminal::scoped_restore_terminal_state): Adjust to
15121         rename, and call restore_inferior() instead of inferior().
15122         (target_terminal::scoped_restore_terminal_state::m_state): Change
15123         type.
15124         (target_terminal::terminal_state): Rename to ...
15125         (target_terminal::m_terminal_state): ... this and change type.
15126
15127 2018-01-30  Pedro Alves  <palves@redhat.com>
15128
15129         * linux-nat.c (wait_for_signal): New function.
15130         (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
15131         directly.
15132         (async_terminal_is_ours)
15133         (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
15134         (linux_nat_add_target): Don't override
15135         to_terminal_inferior/to_terminal_ours.
15136
15137 2018-01-29  Sergio Durigan Junior  <sergiodj@redhat.com>
15138
15139         * remote.c (remote_follow_fork): Don't call "detach_inferior".
15140
15141 2018-01-28  Simon Marchi  <simon.marchi@ericsson.com>
15142
15143         * dwarf2read.c (free_dwo_files): Add forward-declaration.
15144         (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
15145         dwarf2_per_objfile_free here.
15146         (dwarf2_per_objfile_free): Remove.
15147         (_initialize_dwarf2_read): Don't register
15148         dwarf2_per_objfile_free as a registry cleanup.
15149
15150 2018-01-27  Eli Zaretskii  <eliz@gnu.org>
15151
15152         Avoid compilation errors in MinGW native builds
15153
15154         The error is triggered by including python-internal.h, and the
15155         error message is:
15156
15157              In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
15158                       from build-gnulib/import/math.h:27,
15159                       from d:/usr/Python26/include/pyport.h:235,
15160                       from d:/usr/Python26/include/Python.h:58,
15161                       from python/python-internal.h:94,
15162                       from python/py-arch.c:24:
15163              d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
15164         using ::hypot;
15165                 ^~~~~
15166
15167         This happens because Python headers define 'hypot' to expand t
15168         '_hypot' in the Windows builds.
15169         * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
15170         'hypoth'.  This avoids a compilation error.
15171
15172 2018-01-26  Alan Hayward  <alan.hayward@arm.com>
15173
15174         * MAINTAINERS (Write After Approval): Fix ordering.
15175
15176 2018-01-26  Alan Hayward  <alan.hayward@arm.com>
15177
15178         * MAINTAINERS (Write After Approval): Add Alan Hayward.
15179
15180 2018-01-26  Alan Modra  <amodra@gmail.com>
15181
15182         * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
15183         (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
15184         Remove nop.  Make const.  Comment.
15185         (powerpc32_plt_stub_so_2): New.
15186         (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
15187         Correct count.  Update uses.
15188         (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
15189         Move common code reading PLT entry word.  Correct
15190         powerpc32_plt_stub PLT address calculation.
15191         * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
15192         (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
15193         (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
15194         (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
15195         (ppc64_standard_linkage8): Likewise.
15196         * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
15197         Correct insns description.
15198         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
15199
15200 2018-01-24  Pedro Alves  <palves@redhat.com>
15201
15202         GCC PR libstdc++/83906
15203         * gdbtypes.c (operator==(const dynamic_prop &,
15204         const dynamic_prop &)): New.
15205         (operator==(const range_bounds &, const range_bounds &)): New.
15206         (check_types_equal): Use them instead of memcmp.
15207         * gdbtypes.h (operator==(const dynamic_prop &,
15208         const dynamic_prop &)): Declare.
15209         (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
15210         (operator==(const range_bounds &, const range_bounds &)): Declare.
15211         (operator!=(const range_bounds &, const range_bounds &)): Declare.
15212
15213 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
15214
15215         * s390-linux-tdep.c (s390_record_address_mask)
15216         (s390_record_calc_disp_common, s390_record_calc_disp)
15217         (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
15218         (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
15219         (s390_process_record): Move to s390-tdep.c.
15220         (s390_linux_init_abi_any): Adjust.
15221         * s390-tdep.c (s390_record_address_mask)
15222         (s390_record_calc_disp_common, s390_record_calc_disp)
15223         (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
15224         (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
15225         (s390_process_record): Moved from s390-linux-tdep.c
15226         (s390_gdbarch_init): Adjust.
15227
15228 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
15229
15230         * s390-linux-nat.c (s390-tdep.h): New include.
15231         * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
15232         (HFILES_NO_SRCDIR): Add s390-tdep.h.
15233         (ALLDEPFILES): Add s390-tdep.c.
15234         * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
15235         * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
15236         * s390-tdep.h: ...this.  New file.
15237         * s390-linux-tdep.c (s390-tdep.h): New include.
15238         (_initialize_s390_tdep): Rename to...
15239         (_initialize_s390_linux_tdep): ...this and adjust.
15240         (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
15241         (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
15242         s390-tdep.h.
15243         (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
15244         (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
15245         (s390_is_partial_instruction, s390_software_single_step)
15246         (is_non_branch_ril, s390_displaced_step_copy_insn)
15247         (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
15248         (s390_prologue_data, s390_addr, s390_store, s390_load)
15249         (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
15250         (s390_register_call_saved, s390_guess_tracepoint_registers)
15251         (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
15252         (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
15253         (s390_pseudo_register_name, s390_pseudo_register_type)
15254         (s390_pseudo_register_read, s390_pseudo_register_write)
15255         (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
15256         (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
15257         (s390_addr_bits_remove, s390_address_class_type_flags)
15258         (s390_address_class_type_flags_to_name)
15259         (s390_address_class_name_to_type_flags, s390_effective_inner_type)
15260         (s390_function_arg_float, s390_function_arg_vector)
15261         (is_power_of_two, s390_function_arg_integer, s390_arg_state)
15262         (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
15263         (s390_frame_align, s390_register_return_value, s390_return_value)
15264         (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
15265         (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
15266         (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
15267         (s390_trad_frame_prev_register, s390_unwind_cache)
15268         (s390_prologue_frame_unwind_cache)
15269         (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
15270         (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
15271         (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
15272         (s390_stub_frame_this_id, s390_stub_frame_prev_register)
15273         (s390_stub_frame_sniffer, s390_stub_frame_unwind)
15274         (s390_frame_base_address, s390_local_base_address)
15275         (s390_frame_base, s390_gcc_target_options)
15276         (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
15277         (s390_validate_reg_range, s390_tdesc_valid)
15278         (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
15279         * s390-tdep.c: ...this.  New file.
15280
15281 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
15282
15283         * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
15284         (s390_process_record, s390_gdbarch_tdep_alloc)
15285         (s390_linux_init_abi_any): Use/set new hook.
15286
15287 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
15288
15289         * s390-linux-tdep.c (osabi.h): New include.
15290         (s390_linux_init_abi_31, s390_linux_init_abi_64)
15291         (s390_linux_init_abi_any): New functions.
15292         (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
15293
15294 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
15295
15296         * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
15297         tdesc_has_registers check
15298
15299 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
15300
15301         * s390-linux-tdep.c (s390_tdesc_valid): New function.
15302         (s390_validate_reg_range): New macro.
15303         (s390_gdbarch_init): Adjust.
15304
15305 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
15306
15307         * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
15308         (s390_gdbarch_tdep_alloc): Adjust.
15309         (s390_gdbarch_init): Adjust.
15310
15311 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
15312
15313         * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
15314         <have_tdb>: Change type to bool.
15315         (s390_gdbarch_tdep_alloc): Adjust.
15316         (s390_gdbarch_init): Adjust.
15317
15318 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
15319
15320         * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
15321         (gdbarch_tdep) <have_upper, have_vx>: New fields.
15322         (s390_gdbarch_tdep_alloc): New function.
15323         (s390_gdbarch_init): Allocate tdep at start and use its fields
15324         instead of separate variables.
15325
15326 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
15327
15328         * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
15329         when looking for cached gdbarch and add comment for remaining.
15330
15331 2018-01-22  Pedro Alves  <palves@redhat.com>
15332             Sergio Durigan Junior  <sergiodj@redhat.com>
15333
15334         * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
15335         case.
15336
15337 2018-01-22  Maciej W. Rozycki  <macro@mips.com>
15338
15339         * MAINTAINERS: Update my company e-mail address.
15340
15341 2018-01-22  Yao Qi  <yao.qi@linaro.org>
15342
15343         * regcache.c (cooked_write_test): New function.
15344         (_initialize_regcache): Register the test.
15345
15346 2018-01-22  Yao Qi  <yao.qi@linaro.org>
15347
15348         * ia64-tdep.c (ia64_pseudo_register_read): Call
15349         regcache->cooked_read instead of regcache_cooked_read_unsigned.
15350         * m32c-tdep.c (m32c_cat_read): Likewise.
15351         (m32c_r3r2r1r0_read): Likewise.
15352         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
15353         * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
15354
15355 2018-01-22  Yao Qi  <yao.qi@linaro.org>
15356
15357         * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
15358         method raw_read instead of regcache_raw_read.
15359         * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
15360         * arm-tdep.c (arm_neon_quad_read): Likewise.
15361         * avr-tdep.c (avr_pseudo_register_read): Likewise.
15362         * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
15363         * frv-tdep.c (frv_pseudo_register_read): Likewise.
15364         * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
15365         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
15366         (i386_pseudo_register_read_into_value): Likewise.
15367         * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
15368         * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
15369         * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
15370         * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
15371         * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
15372         * sparc-tdep.c (sparc32_pseudo_register_read):  Likewise.
15373         * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
15374         * spu-tdep.c (spu_pseudo_register_read_spu):  Likewise.
15375         * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
15376
15377 2018-01-22  Yao Qi  <yao.qi@linaro.org>
15378
15379         * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
15380         * configure.tgt: Remove target mt.
15381         * mt-tdep.c: Remove.
15382         * regcache.c (cooked_read_test): Remove the check for mt.
15383
15384 2018-01-22  Yao Qi  <yao.qi@linaro.org>
15385
15386         * jit.c (jit_frame_prev_register): Call regcache::cooked_read
15387         instead of gdbarch_pseudo_register_read_value.
15388
15389 2018-01-22  Joel Brobecker  <brobecker@adacore.com>
15390
15391         * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
15392         language is Ada.
15393
15394 2018-01-22  Joel Brobecker  <brobecker@adacore.com>
15395
15396         * linespec.c (create_sals_line_offset): Remove code that preserved
15397         the symtab_and_line's line number.
15398
15399 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
15400
15401         * varobj.c (varobj_create): Don't set valid_block when creating a
15402         floating varobj.
15403
15404 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
15405
15406         * varobj.c (varobj_create): Remove out of date comment.
15407
15408 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
15409
15410         PR mi/20395
15411         * ada-exp.y (write_var_from_sym): Pass extra parameter when
15412         updating innermost block.
15413         * parse.c (innermost_block_tracker::update): Take extra type
15414         parameter, and check types match before updating innermost block.
15415         (write_dollar_variable): Update innermost block for registers.
15416         * parser-defs.h (enum innermost_block_tracker_type): New enum.
15417         (innermost_block_tracker::innermost_block_tracker): Initialise
15418         m_types member.
15419         (innermost_block_tracker::reset): Take type parameter.
15420         (innermost_block_tracker::update): Take type parameter, and pass
15421         type through as needed.
15422         (innermost_block_tracker::m_types): New member.
15423         * varobj.c (varobj_create): Pass type when reseting innermost
15424         block.
15425
15426 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
15427
15428         * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
15429         * ada-lang.c (resolve_subexp): Likewise.
15430         * breakpoint.c (set_breakpoint_condition) Likewise.
15431         (watch_command_1) Likewise.
15432         * c-exp.y (variable): Likewise.
15433         * d-exp.y (PrimaryExpression): Likewise.
15434         * f-exp.y (variable): Likewise.
15435         * go-exp.y (variable): Likewise.
15436         * m2-exp.y (variable): Likewise.
15437         * objfiles.c (objfile::~objfile): Likewise.
15438         * p-exp.y (variable): Likewise.
15439         * parse.c (innermost_block): Change type.
15440         * parser-defs.h (class innermost_block_tracker): New.
15441         (innermost_block): Change to innermost_block_tracker.
15442         * printcmd.c (display_command): Switch to innermost_block API.
15443         (do_one_display): Likewise.
15444         * rust-exp.y (do_one_display): Likewise.
15445         * symfile.c (clear_symtab_users): Likewise.
15446         * varobj.c (varobj_create): Switch to innermost_block API, replace
15447         use of innermost_block with block stored on varobj object.
15448
15449 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
15450
15451         * expression.h (innermost_block): Remove declaration.
15452         * varobj.c: Add 'parser-defs.h' include.
15453
15454 2018-01-19  Tom Tromey  <tom@tromey.com>
15455
15456         * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
15457         symbols in the static and global blocks.
15458
15459 2018-01-19  James Clarke  <jrtc27@jrtc27.com>
15460
15461         * nat/linux-ptrace.c: Remove unnecessary reinclusion of
15462         gdb_ptrace.h, and move including gdb_wait.h ...
15463         * nat/linux-ptrace.h: ... to here.
15464
15465 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
15466
15467         * inf-ptrace.c (inf_ptrace_detach): Adjust call to
15468         inf_ptrace_detach_success.
15469         (inf_ptrace_detach_success): Add inferior parameter, use it
15470         instead of inferior_ptid, pass it to detach_inferior.
15471         * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
15472         parameter.
15473         * inferior.c (detach_inferior): Add overload that takes an
15474         inferior object.
15475         * inferior.h (detach_inferior): Likewise.
15476         * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
15477         use inferior_ptid, adjust call to inf_ptrace_detach_success.
15478         * linux-thread-db.c (thread_db_detach): Use inf parameter.
15479
15480 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
15481
15482         * target.h (struct target_ops) <to_detach>: Add inferior
15483         parameter.
15484         (target_detach): Likewise.
15485         * target.c (dispose_inferior): Pass inferior down.
15486         (target_detach): Pass inferior down.  Assert that it is equal to
15487         the current inferior.
15488         * aix-thread.c (aix_thread_detach): Pass inferior down.
15489         * corefile.c (core_file_command): Pass current_inferior() down.
15490         * corelow.c (core_detach): Add inferior parameter.
15491         * darwin-nat.c (darwin_detach): Likewise.
15492         * gnu-nat.c (gnu_detach): Likewise.
15493         * inf-ptrace.c (inf_ptrace_detach): Likewise.
15494         * infcmd.c (detach_command): Pass current_inferior() down to
15495         target_detach.
15496         * infrun.c (follow_fork_inferior): Pass parent_inf to
15497         target_detach.
15498         (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
15499         target_detach.
15500         * linux-nat.c (linux_nat_detach): Add inferior parameter.
15501         * linux-thread-db.c (thread_db_detach): Likewise.
15502         * nto-procfs.c (procfs_detach): Likewise.
15503         * procfs.c (procfs_detach): Likewise.
15504         * record.c (record_detach): Likewise.
15505         * record.h (struct inferior): Forward-declare.
15506         (record_detach): Add inferior parameter.
15507         * remote-sim.c (gdbsim_detach): Likewise.
15508         * remote.c (remote_detach_1): Likewise.
15509         (remote_detach): Likewise.
15510         (extended_remote_detach): Likewise.
15511         * sol-thread.c (sol_thread_detach): Likewise.
15512         * target-debug.h (target_debug_print_inferior_p): New macro.
15513         * target-delegates.c: Re-generate.
15514         * top.c (kill_or_detach): Pass inferior down to target_detach.
15515         * windows-nat.c (windows_detach): Add inferior parameter.
15516
15517 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
15518
15519         * target.h (struct target_ops) <to_detach>: Remove args
15520         parameter.
15521         (target_detach): Likewise.
15522         * target.c (dispose_inferior): Adjust.
15523         (target_detach): Remove args parameter, adjust.
15524         * aix-thread.c (aix_thread_detach): Adjust.
15525         * corefile.c (core_file_command): Adjust.
15526         * corelow.c (core_detach): Adjust.
15527         * darwin-nat.c (darwin_detach): Adjust.
15528         * gnu-nat.c (gnu_detach): Adjust.
15529         * inf-ptrace.c (inf_ptrace_detach): Adjust.
15530         * infcmd.c (detach_command): Adjust
15531         * infrun.c (follow_fork_inferior): Adjust.
15532         (handle_vfork_child_exec_or_exit): Adjust.
15533         * linux-fork.c (linux_fork_detach): Remove args parameter.
15534         * linux-fork.h (linux_fork_detach): Likewise.
15535         * linux-nat.c (linux_nat_detach): Likewise, and adjust.
15536         * linux-thread-db.c (thread_db_detach): Likewise.
15537         * nto-procfs.c (procfs_detach): Likewise.
15538         * procfs.c (procfs_detach): Likewise.
15539         (do_detach): Remove signo parameter.
15540         * record.c (record_detach): Remove args parameter.
15541         * record.h (record_detach): Likewise.
15542         * remote-sim.c (gdbsim_detach): Likewise.
15543         * remote.c (remote_detach_1): Likewise.
15544         (remote_detach): Likewise.
15545         (extended_remote_detach): Likewise.
15546         * sol-thread.c (sol_thread_detach): Likewise.
15547         * target-delegates.c: Re-generate.
15548         * top.c (struct qt_args) <args>: Remove field.
15549         (kill_or_detach): Don't pass args.
15550         (quit_force): Don't set args.
15551         * windows-nat.c (windows_detach): Remove args parameter.
15552
15553 2018-01-19  Yao Qi  <yao.qi@linaro.org>
15554
15555         * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
15556         (arm_linux_init_abi): Install it.
15557
15558 2018-01-19  Yao Qi  <yao.qi@linaro.org>
15559
15560         * osabi.c (gdb_osabi_names): Extend the regexp for
15561         arm-linux-gnueabihf.
15562
15563 2018-01-18  Yao Qi  <yao.qi@linaro.org>
15564
15565         * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
15566         m_abbrevs.
15567         (abbrev_table::add_abbrev): Update.
15568         (abbrev_table::lookup_abbrev): Update.
15569
15570 2018-01-18  Yao Qi  <yao.qi@linaro.org>
15571
15572         * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
15573
15574 2018-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
15575
15576         * compile/compile.c (compile_to_object): Convert "triplet_rx"
15577         to "std::string".
15578
15579 2018-01-17  Tom Tromey  <tom@tromey.com>
15580
15581         * dwarf2read.c (symbolp): Remove typedef.  Don't instantiate VEC.
15582
15583 2018-01-17  Tom Tromey  <tom@tromey.com>
15584
15585         * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
15586         * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
15587         (create_array_type_with_stride): Update.
15588         * dwarf2read.c (set_die_type): Update.
15589
15590 2018-01-17  Tom Tromey  <tom@tromey.com>
15591
15592         * dwarf2read.c (delayed_method_info): Remove typedef.
15593         (dwarf2_cu::method_info): Now a std::vector.
15594         (add_to_method_list): Update.
15595         (free_delayed_list): Remove.
15596         (compute_delayed_physnames): Update.
15597         (process_full_comp_unit, process_full_type_unit): Clear the method
15598         list.  Remove cleanups.
15599         (psymtab_include_file_name): Add name_holder parameter.  Use
15600         unique_xmalloc_ptr.
15601         (dwarf_decode_lines): Update.
15602
15603 2018-01-17  Tom Tromey  <tom@tromey.com>
15604             Simon Marchi  <simon.marchi@ericsson.com>
15605
15606         * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
15607         (dwarf2_per_objfile::free_cached_comp_units)
15608         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15609         (init_cutu_and_read_dies_no_follow): Update.
15610         (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
15611         (dwarf2_cu::~dwarf2_cu): New.
15612         (free_heap_comp_unit, free_stack_comp_unit): Remove.
15613         (age_cached_comp_units, free_one_cached_comp_unit): Update.
15614
15615 2018-01-17  Tom Tromey  <tom@tromey.com>
15616             Simon Marchi  <simon.marchi@ericsson.com>
15617
15618         * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
15619         (struct die_reader_specs) <abbrev_table>: New member.
15620         (struct abbrev_table): Add constructor.
15621         <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
15622         <abbrev_obstack>: Now an auto_obstack.
15623         (abbrev_table_up): New typedef.
15624         (init_cu_die_reader): Add abbrev_table parameter.
15625         (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
15626         Add result_dwo_abbrev_table.
15627         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15628         (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
15629         Update.
15630         (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
15631         parameter.
15632         (skip_children): Update.
15633         (abbrev_table::alloc_abbrev): Rename from
15634         abbrev_table_alloc_abbrev.
15635         (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
15636         (abbrev_table::lookup_abbrev): Rename from
15637         abbrev_table_lookup_abbrev.
15638         (abbrev_table_read_table): Return abbrev_table_up.
15639         (abbrev_table_free, abbrev_table_free_cleanup)
15640         (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
15641         (load_partial_dies): Update.
15642
15643 2018-01-17  Tom Tromey  <tom@tromey.com>
15644
15645         * dwarf2read.c (dwarf2_compute_name): Update comment.
15646         (read_func_scope, read_variable): Update.
15647         (new_symbol): Remove.
15648         (new_symbol_full): Rename to new_symbol.
15649
15650 2018-01-17  Mike Gulick  <mgulick@mathworks.com>
15651
15652         PR gdb/16577
15653         * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
15654         a warning instead of throwing an error, set section size to 0 and return
15655         NULL.
15656         * gdb_bfd.h (gdb_bfd_map_section): Update description.
15657
15658 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
15659
15660         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
15661         std::string.
15662         (linux_ptrace_attach_fail_reason_string): Likewise.
15663         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
15664         Likewise.
15665         (linux_ptrace_attach_fail_reason_string): Likewise.
15666         * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
15667
15668 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
15669
15670         * linux-nat.c (linux_nat_attach): Remove xstrdup.
15671
15672 2018-01-17  Eldar Abusalimov  <eldar.abusalimov@jetbrains.com>
15673
15674         PR gdb/21559
15675         * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
15676         checking for fs_base/gs_base fields in struct user_regs_struct.
15677         * configure: Regenerate.
15678
15679 2018-01-17  Yao Qi  <yao.qi@linaro.org>
15680
15681         * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
15682         function.
15683         (aarch64_linux_init_abi): Install it to gdbarch hook
15684         gcc_target_options.
15685
15686 2018-01-15  Pedro Alves  <palves@redhat.com>
15687
15688         * common/signals-state-save-restore.c
15689         (save_original_signals_state): Fix typos.
15690
15691 2017-01-12  Tom Tromey  <tom@tromey.com>
15692             Sergio Durigan Junior  <sergiodj@redhat.com>
15693
15694         * Makefile.in (install-only): Install gdb-add-index.
15695
15696 2018-01-12  John Baldwin  <jhb@FreeBSD.org>
15697
15698         * fbsd-tdep.c (KVE_PROTECTION): Correct value.
15699
15700 2018-01-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
15701
15702         * infrun.c (keep_going_pass_signal): Clear step-over info when
15703         insert_breakpoints fails.
15704
15705 2018-01-11  Pedro Alves  <palves@redhat.com>
15706
15707         PR gdb/22583
15708         * infrun.c (resume): Rename to ...
15709         (resume_1): ... this.
15710         (resume): Reimplement as wrapper around resume_1.
15711
15712 2018-01-11  Pedro Alves  <palves@redhat.com>
15713
15714         PR remote/22597
15715         * remote.c (remote_parse_stop_reply): Default to the last-set
15716         general thread instead of to 'magic_null_ptid'.
15717
15718 2018-01-10  Pedro Alves  <palves@redhat.com>
15719
15720         * language.h (language_get_symbol_name_matcher): Rename ...
15721         (get_symbol_name_matcher): ... this.
15722         * language.c (language_get_symbol_name_matcher): Ditto.
15723         * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
15724         callers adjusted.
15725
15726 2018-01-10  Pedro Alves  <palves@redhat.com>
15727
15728         PR gdb/22670
15729         * dwarf2read.c
15730         (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
15731         Adjust to use language_get_symbol_name_matcher instead of
15732         language_defn::la_get_symbol_name_matcher.
15733         * language.c (language_get_symbol_name_matcher): If in Ada mode
15734         and the lookup name is a verbatim match, return Ada's matcher.
15735         * language.h (language_get_symbol_name_matcher): Adjust comment.
15736         (ada_lookup_name_info::verbatim_p):: New method.
15737
15738 2018-01-10  Pedro Alves  <palves@redhat.com>
15739
15740         PR gdb/22670
15741         * ada-lang.c (ada_collect_symbol_completion_matches): If the
15742         minsym's language is language_auto or language_cplus, pass down
15743         language_ada instead.
15744         * symtab.c (compare_symbol_name): Don't frob symbol language here.
15745
15746 2018-01-10  Pedro Alves  <palves@redhat.com>
15747
15748         PR gdb/22670
15749         * minsyms.c (linkage_name_str): New function.
15750         (iterate_over_minimal_symbols): Use it.
15751
15752 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
15753
15754         * NEWS: Document that 'info proc' now works on FreeBSD.
15755
15756 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
15757
15758         * configure.ac: Check for kinfo_getfile in libutil.
15759         * configure: Regenerate.
15760         * config.in: Regenerate.
15761         * fbsd-nat.c: Include "fbsd-tdep.h".
15762         (fbsd_fetch_cmdline): New.
15763         (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
15764         rather than calling error.
15765         (fbsd_info_proc): New.
15766         (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
15767         (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
15768         (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
15769
15770 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
15771
15772         * fbsd-nat.c (struct free_deleter): Remove.
15773         (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
15774
15775 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
15776
15777         * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
15778         NULL for an empty pathname.
15779
15780 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
15781
15782         * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
15783         (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
15784         (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
15785         (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
15786         (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
15787         (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
15788         (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
15789         (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
15790         (kinfo_proc_layout_32, kinfo_proc_layout_i386)
15791         (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
15792         (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
15793         (fbsd_core_fetch_timeval, fbsd_print_sigset)
15794         (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
15795         (fbsd_init_abi):  Install gdbarch "core_info_proc" method.
15796         * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
15797
15798 2018-01-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15799
15800         * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
15801         (gnu_xfer_auxv): New function.
15802         (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
15803         TARGET_OBJECT_AUXV.
15804
15805 2018-01-08  Yao Qi  <yao.qi@linaro.org>
15806             Simon Marchi  <simon.marchi@ericsson.com>
15807
15808         * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
15809         common/selftest.c.
15810         (COMMON_OBS): Remove selftest.o.
15811         * configure.ac: Append selftest-arch.c and common/selftest.c to
15812         CONFIG_SRCS.  Append selftest-arch.o and selftest.o to COMMON_OBS.
15813         * configure: Re-generated.
15814         * maint.c (maintenance_selftest): Wrap selftests::run_tests with
15815         GDB_SELF_TEST.
15816         (maintenance_info_selftests): Likewise.
15817
15818 2018-01-08  Xavier Roirand  <roirand@adacore.com>
15819
15820         * ada-valprint.c (val_print_packed_array_elements): Use
15821         proper number of elements when printing an array indexed
15822         by an enumeration type.
15823
15824 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
15825
15826         * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
15827         (dw2_get_file_names_reader): Adjust.
15828         (lookup_dwo_signatured_type): Adjust.
15829         (lookup_dwp_signatured_type): Adjust.
15830         (lookup_signatured_type): Adjust.
15831         (create_type_unit_group): Adjust.
15832         (get_type_unit_group): Adjust.
15833         (process_psymtab_comp_unit_reader): Adjust.
15834         (build_type_psymtabs_reader): Adjust.
15835         (scan_partial_symbols): Adjust.
15836         (add_partial_symbol): Adjust.
15837         (add_partial_subprogram): Adjust.
15838         (peek_die_abbrev): Adjust.
15839         (fixup_go_packaging): Adjust.
15840         (process_imported_unit_die): Adjust.
15841         (dwarf2_compute_name): Adjust.
15842         (dwarf2_physname): Adjust.
15843         (read_import_statement): Adjust.
15844         (handle_DW_AT_stmt_list): Adjust.
15845         (read_file_scope): Adjust.
15846         (read_func_scope): Adjust.
15847         (read_lexical_block_scope): Adjust.
15848         (read_call_site_scope): Adjust.
15849         (read_variable): Adjust.
15850         (dwarf2_rnglists_process): Adjust.
15851         (dwarf2_ranges_process): Adjust.
15852         (dwarf2_ranges_read): Adjust.
15853         (dwarf2_get_pc_bounds): Adjust.
15854         (dwarf2_record_block_ranges): Adjust.
15855         (dwarf2_add_field): Adjust.
15856         (dwarf2_add_member_fn): Adjust.
15857         (read_structure_type): Adjust.
15858         (process_structure_scope): Adjust.
15859         (read_enumeration_type): Adjust.
15860         (read_array_type): Adjust.
15861         (mark_common_block_symbol_computed): Adjust.
15862         (read_common_block): Adjust.
15863         (read_namespace_type): Adjust.
15864         (read_namespace): Adjust.
15865         (read_module_type): Adjust.
15866         (read_tag_pointer_type): Adjust.
15867         (read_tag_ptr_to_member_type): Adjust.
15868         (read_tag_string_type): Adjust.
15869         (read_subroutine_type): Adjust.
15870         (read_typedef): Adjust.
15871         (read_base_type): Adjust.
15872         (attr_to_dynamic_prop): Adjust.
15873         (read_subrange_type): Adjust.
15874         (read_unspecified_type): Adjust.
15875         (dwarf2_read_abbrevs): Adjust.
15876         (load_partial_dies): Adjust.
15877         (read_partial_die): Adjust.
15878         (find_partial_die): Adjust.
15879         (guess_partial_die_structure_name): Adjust.
15880         (fixup_partial_die): Adjust.
15881         (read_attribute_value): Adjust.
15882         (read_addr_index): Adjust.
15883         (read_addr_index_from_leb128): Adjust.
15884         (read_str_index): Adjust.
15885         (dwarf2_string_attr): Adjust.
15886         (get_debug_line_section): Adjust.
15887         (dwarf_decode_line_header): Adjust.
15888         (lnp_state_machine::check_line_address): Adjust.
15889         (dwarf_decode_lines_1): Adjust.
15890         (dwarf_decode_lines): Adjust.
15891         (dwarf2_start_symtab): Adjust.
15892         (var_decode_location): Adjust.
15893         (new_symbol_full): Adjust.
15894         (dwarf2_const_value_data): Adjust.
15895         (dwarf2_const_value_attr): Adjust.
15896         (dwarf2_const_value): Adjust.
15897         (die_type): Adjust.
15898         (die_containing_type): Adjust.
15899         (build_error_marker_type): Adjust.
15900         (lookup_die_type): Adjust.
15901         (guess_full_die_structure_name): Adjust.
15902         (anonymous_struct_prefix): Adjust.
15903         (determine_prefix): Adjust.
15904         (dwarf2_name): Adjust.
15905         (follow_die_ref_or_sig): Adjust.
15906         (follow_die_offset): Adjust.
15907         (follow_die_ref): Adjust.
15908         (follow_die_sig_1): Adjust.
15909         (follow_die_sig): Adjust.
15910         (get_signatured_type): Adjust.
15911         (get_DW_AT_signature_type): Adjust.
15912         (decode_locdesc): Adjust.
15913         (dwarf_decode_macros): Adjust.
15914         (cu_debug_loc_section): Adjust.
15915         (fill_in_loclist_baton): Adjust.
15916         (dwarf2_symbol_mark_computed): Adjust.
15917         (init_one_comp_unit): Don't assign
15918         dwarf2_cu::dwarf2_per_objfile.
15919         (set_die_type): Adjust.
15920
15921 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
15922
15923         * dwarf2read.c (struct mapped_debug_names): Add constructor.
15924         <dwarf2_per_objfile>: New field.
15925         (dwarf2_per_objfile): Remove global.
15926         (get_dwarf2_per_objfile): New function.
15927         (set_dwarf2_per_objfile): New function.
15928         (dwarf2_build_psymtabs_hard): Change objfile parameter to
15929         dwarf2_per_objfile.
15930         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
15931         (read_abbrev_offset): Likewise.
15932         (read_indirect_string): Likewise.
15933         (read_indirect_line_string): Likewise.
15934         (read_indirect_string_at_offset): Likewise.
15935         (read_indirect_string_from_dwz): Likewise.
15936         (dwarf2_find_containing_comp_unit): Change objfile parameter to
15937         dwarf2_per_objfile.
15938         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
15939         (create_all_comp_units): Change objfile parameter to
15940         dwarf2_per_objfile.
15941         (create_all_type_units): Likewise.
15942         (process_queue): Add dwarf2_per_objfile parameter.
15943         (read_and_check_comp_unit_head): Likewise.
15944         (lookup_dwo_unit_in_dwp): Likewise.
15945         (get_dwp_file): Likewise.
15946         (process_cu_includes): Likewise.
15947         (struct free_dwo_file_cleanup_data): New struct.
15948         (dwarf2_has_info): Use get_dwarf2_per_objfile and
15949         set_dwarf2_per_objfile.
15950         (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
15951         (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
15952         context, adjust calls.
15953         (dw2_instantiate_symtab): Likewise.
15954         (dw2_get_cutu): Add dwarf2_per_objfile parameter.
15955         (dw2_get_cu): Likewise.
15956         (create_cu_from_index_list): Change objfile parameter to
15957         dwarf2_per_objfile.
15958         (create_cus_from_index_list): Get dwarf2_per_objfile from
15959         context, adjust calls.
15960         (create_cus_from_index): Likewise.
15961         (create_signatured_type_table_from_index): Change objfile
15962         parameter to dwarf2_per_objfile.
15963         (create_signatured_type_table_from_debug_names): Change objfile
15964         parameter to dwarf2_per_objfile.
15965         (create_addrmap_from_index): Likewise.
15966         (create_addrmap_from_aranges): Likewise.
15967         (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
15968         (dw2_setup): Remove.
15969         (dw2_get_file_names_reader): Get dwarf2_per_objfile from
15970         context.
15971         (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
15972         get_dwarf2_per_objfile.
15973         (dw2_forget_cached_source_info): Likewise.
15974         (dw2_map_symtabs_matching_filename): Likewise.
15975         (struct dw2_symtab_iterator) <index>: Remove.
15976         <dwarf2_per_objfile>: New field.
15977         (dw2_symtab_iter_init): Replace index parameter with
15978         dwarf2_per_objfile.
15979         (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
15980         (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
15981         (dw2_print_stats): Likewise.
15982         (dw2_dump): Likewise.
15983         (dw2_expand_symtabs_for_function): Likewise.
15984         (dw2_expand_all_symtabs): Likewise.
15985         (dw2_expand_symtabs_with_fullname): Likewise.
15986         (dw2_expand_marked_cus): Replace index and objfile parameters
15987         with dwarf2_per_objfile.
15988         (dw_expand_symtabs_matching_file_matcher): Add
15989         dwarf2_per_objfile parameter and adjust calls.
15990         (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
15991         adjust calls.
15992         (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
15993         (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
15994         adjust calls.
15995         (create_cus_from_debug_names_list): Replace objfile parameter
15996         with dwarf2_per_objfile and adjust calls.
15997         (create_cus_from_debug_names): Likewise.
15998         (dwarf2_read_debug_names): Likewise.
15999         (mapped_debug_names::namei_to_name): Adjust call.
16000         (dw2_debug_names_iterator::next): Likewise.
16001         (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
16002         (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
16003         (dw2_debug_names_dump): Likewise.
16004         (dw2_debug_names_expand_symtabs_for_function): Likewise.
16005         (dw2_debug_names_expand_symtabs_matching): Likewise.
16006         (dwarf2_initialize_objfile): Likewise.
16007         (dwarf2_build_psymtabs): Likewise.
16008         (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
16009         this_cu.
16010         (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
16011         (read_and_check_comp_unit_head): Likewise.
16012         (read_abbrev_offset): Likewise.
16013         (create_debug_type_hash_table): Likewise.
16014         (create_debug_types_hash_table): Likewise.
16015         (create_all_type_units): Replace objfile parameter with
16016         dwarf2_per_objfile.
16017         (add_type_unit): Add dwarf2_per_objfile parameter.
16018         (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
16019         with dwarf2_per_objfile.
16020         (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
16021         (lookup_dwp_signatured_type): Likewise.
16022         (lookup_signatured_type): Likewise.
16023         (read_cutu_die_from_dwo): Likewise.
16024         (init_tu_and_read_dwo_dies): Likewise.
16025         (init_cutu_and_read_dies): Likewise.
16026         (init_cutu_and_read_dies_no_follow): Likewise.
16027         (allocate_type_unit_groups_table): Add objfile parameter.
16028         (create_type_unit_group): Use dwarf2_per_objfile from cu.
16029         (get_type_unit_group): Likewise.
16030         (process_psymtab_comp_unit): Update call.
16031         (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
16032         (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
16033         (print_tu_stats): Likewise.
16034         (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
16035         in void* parameter.
16036         (build_type_psymtabs): Change objfile parameter to
16037         dwarf2_per_objfile.
16038         (process_skeletonless_type_unit): Use dwarf2_per_objfile
16039         passed in void* parameter.
16040         (process_skeletonless_type_units): Change objfile parameter to
16041         dwarf2_per_objfile.
16042         (set_partial_user): Likewise.
16043         (dwarf2_build_psymtabs_hard): Likewise.
16044         (read_comp_units_from_section): Likewise.
16045         (create_all_comp_units): Likewise.
16046         (scan_partial_symbols): Update calls.
16047         (add_partial_symbol): Likewise.
16048         (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
16049         (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
16050         (process_queue): Add dwarf2_per_objfile parameter.
16051         (get_compunit_symtab): Use dwarf2_per_objfile from cu.
16052         (compute_compunit_symtab_includes): Likewise.
16053         (process_cu_includes): Add dwarf2_per_objfile parameter.
16054         (process_full_comp_unit): Use dwarf2_per_objfile from cu.
16055         (process_full_type_unit): Likewise.
16056         (process_imported_unit_die): Update call.
16057         (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
16058         (read_file_scope): Likewise.
16059         (allocate_dwo_file_hash_table): Add objfile parameter.
16060         (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
16061         (create_cus_hash_table): Likewise.
16062         (create_dwp_hash_table): Likewise.
16063         (create_dwo_unit_in_dwp_v1): Likewise.
16064         (create_dwp_v2_section): Likewise.
16065         (create_dwo_unit_in_dwp_v2): Likewise.
16066         (lookup_dwo_unit_in_dwp): Likewise.
16067         (try_open_dwop_file): Likewise.
16068         (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
16069         (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
16070         cleanup to include a reference to dwarf2_per_objfile.
16071         (open_dwp_file): Add dwarf2_per_objfile parameter.
16072         (open_and_init_dwp_file): Likewise.
16073         (get_dwp_file): Likewise.
16074         (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
16075         (queue_and_load_all_dwo_tus): Update call.
16076         (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
16077         data.
16078         (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
16079         (dwarf2_ranges_process): Likewise.
16080         (dwarf2_get_pc_bounds): Likewise.
16081         (mark_common_block_symbol_computed): Likewise.
16082         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
16083         (dwarf2_read_abbrevs): Update call.
16084         (read_partial_die): Use dwarf2_per_objfile from cu.
16085         (find_partial_die): Likewise.
16086         (fixup_partial_die): Likewise.
16087         (read_attribute_value): Likewise.
16088         (read_indirect_string_at_offset_from): Add objfile parameter.
16089         (read_indirect_string_at_offset): Add dwarf2_per_objfile
16090         parameter.
16091         (read_indirect_string_from_dwz): Add objfile parameter.
16092         (read_indirect_string): Add objfile parameter.
16093         (read_addr_index_1): Add dwarf2_per_objfile parameter.
16094         (read_addr_index): Use dwarf2_per_objfile from cu.
16095         (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
16096         call dw2_setup.
16097         (read_str_index): Use dwarf2_per_objfile from cu.
16098         (get_debug_line_section): Likewise.
16099         (read_formatted_entries): Add dwarf2_per_objfile parameter.
16100         (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
16101         (new_symbol_full): Use dwarf2_per_objfile from cu.
16102         (build_error_marker_type): Likewise.
16103         (lookup_die_type): Likewise.
16104         (determine_prefix): Likewise.
16105         (follow_die_offset): Likewise.
16106         (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
16107         (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
16108         (dwarf2_fetch_die_type_sect_off): Likewise.
16109         (dwarf2_get_die_type): Likewise.
16110         (follow_die_sig_1): Use dwarf2_per_objfile from cu.
16111         (get_signatured_type): Likewise.
16112         (get_DW_AT_signature_type): Likewise.
16113         (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
16114         (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
16115         (cu_debug_loc_section): Likewise.
16116         (fill_in_loclist_baton): Likewise.
16117         (dwarf2_symbol_mark_computed): Likewise.
16118         (dwarf2_find_containing_comp_unit): Change objfile parameter to
16119         dwarf2_per_objfile.
16120         (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
16121         parameter.
16122         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
16123         (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
16124         (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
16125         (set_die_type): Use dwarf2_free_objfile from cu.
16126         (get_die_type_at_offset): Likewise.
16127         (dwarf2_per_objfile_free): Don't assign global variable.
16128         (debug_names) <constructor>: Add dwarf2_per_objfile
16129         parameter, update m_debugstrlookup construction.
16130         (debug_names::debug_str_lookup): Add dwarf2_per_objfile
16131         parameter.
16132         <m_dwarf2_per_objfile>: New field.
16133         <lookup>: Use m_dwarf2_per_objfile.
16134         (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
16135         (psyms_seen_size): Likewise.
16136         (write_gdbindex): Replace objfile parameter with
16137         dwarf2_per_objfile.
16138         (write_debug_names): Likewise.
16139         (write_psymtabs_to_index): Likewise.
16140         (save_gdb_index_command): Use get_dwarf2_per_objfile, update
16141         calls.
16142
16143 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
16144
16145         * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
16146         <dwarf2_per_objfile>: New field.
16147         (struct dwarf2_per_cu_data) <objfile>: Remove.
16148         <dwarf2_per_objfile>: New field.
16149         (create_cu_from_index_list): Assign dwarf2_per_objfile instead
16150         of objfile.
16151         (create_signatured_type_table_from_index): Likewise.
16152         (create_debug_type_hash_table): Likewise.
16153         (fill_in_sig_entry_from_dwo_entry): Likewise.
16154         (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
16155         (create_type_unit_group): Assign dwarf2_per_objfile instead of
16156         objfile.
16157         (create_partial_symtab): Access objfile through
16158         dwarf2_per_objfile.
16159         (process_psymtab_comp_unit_reader): Likewise.
16160         (read_comp_units_from_section): Likewise.
16161         (scan_partial_symbols): Likewise.
16162         (add_partial_symbol): Likewise.
16163         (add_partial_subprogram): Likewise.
16164         (peek_die_abbrev): Likewise.
16165         (fixup_go_packaging): Likewise.
16166         (process_full_comp_unit): Likewise.
16167         (process_full_type_unit): Likewise.
16168         (process_imported_unit_die): Likewise.
16169         (dwarf2_compute_name): Likewise.
16170         (dwarf2_physname): Likewise.
16171         (read_import_statement): Likewise.
16172         (create_cus_hash_table): Assign dwarf2_physname instead of
16173         objfile.
16174         (read_func_scope): Access objfile through dwarf2_per_objfile.
16175         (read_lexical_block_scope): Likewise.
16176         (read_call_site_scope): Likewise.
16177         (read_variable): Likewise.
16178         (dwarf2_rnglists_process): Likewise.
16179         (dwarf2_ranges_process): Likewise.
16180         (dwarf2_ranges_read): Likewise.
16181         (dwarf2_record_block_ranges): Likewise.
16182         (dwarf2_add_field): Likewise.
16183         (dwarf2_add_member_fn): Likewise.
16184         (read_structure_type): Likewise.
16185         (process_structure_scope): Likewise.
16186         (read_enumeration_type): Likewise.
16187         (read_array_type): Likewise.
16188         (read_common_block): Likewise.
16189         (read_namespace_type): Likewise.
16190         (read_namespace): Likewise.
16191         (read_module_type): Likewise.
16192         (read_tag_pointer_type): Likewise.
16193         (read_tag_ptr_to_member_type): Likewise.
16194         (read_tag_string_type): Likewise.
16195         (read_subroutine_type): Likewise.
16196         (read_typedef): Likewise.
16197         (read_base_type): Likewise.
16198         (attr_to_dynamic_prop): Likewise.
16199         (read_subrange_type): Likewise.
16200         (read_unspecified_type): Likewise.
16201         (load_partial_dies): Likewise.
16202         (read_partial_die): Likewise.
16203         (find_partial_die): Likewise.
16204         (guess_partial_die_structure_name): Likewise.
16205         (fixup_partial_die): Likewise.
16206         (read_attribute_value): Likewise.
16207         (read_addr_index_from_leb128): Likewise.
16208         (dwarf2_read_addr_index): Likewise.
16209         (dwarf2_string_attr): Likewise.
16210         (lnp_state_machine::check_line_address): Likewise.
16211         (dwarf_decode_lines_1): Likewise.
16212         (dwarf_decode_lines): Likewise.
16213         (dwarf2_start_symtab): Likewise.
16214         (var_decode_location): Likewise.
16215         (new_symbol_full): Likewise.
16216         (dwarf2_const_value_data): Likewise.
16217         (dwarf2_const_value_attr): Likewise.
16218         (dwarf2_const_value): Likewise.
16219         (die_type): Likewise.
16220         (die_containing_type): Likewise.
16221         (lookup_die_type): Likewise.
16222         (guess_full_die_structure_name): Likewise.
16223         (anonymous_struct_prefix): Likewise.
16224         (dwarf2_name): Likewise.
16225         (follow_die_ref_or_sig): Likewise.
16226         (follow_die_offset): Likewise.
16227         (follow_die_ref): Likewise.
16228         (dwarf2_fetch_die_loc_sect_off): Likewise.
16229         (dwarf2_fetch_constant_bytes): Likewise.
16230         (dwarf2_fetch_die_type_sect_off): Likewise.
16231         (dwarf2_get_die_type): Likewise.
16232         (follow_die_sig): Likewise.
16233         (decode_locdesc): Likewise.
16234         (dwarf2_per_cu_objfile): Likewise.
16235         (dwarf2_per_cu_text_offset): Likewise.
16236         (init_one_comp_unit): Assign dwarf2_per_objfile instead of
16237         objfile.
16238         (set_die_type): Access objfile through
16239         dwarf2_per_objfile.
16240
16241 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
16242
16243         * valprint.c (converted_character_d): Remove typedef.
16244         (DEF_VEC_O (converted_character_d)): Remove.
16245         (count_next_character): Use std::vector.
16246         (print_converted_chars_to_obstack): Likewise.
16247         (generic_printstr): Likewise.
16248
16249 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
16250
16251         * xml-support.h (struct gdb_xml_value): Add constructor.
16252         <value>: Change type to unique_xmalloc_ptr.
16253         (gdb_xml_value_s): Remove typedef.
16254         (DEF_VEC_O (gdb_xml_value_s)): Remove.
16255         (gdb_xml_element_start_handler): Change parameter type to
16256         std::vector.
16257         (xml_find_attribute): Likewise.
16258         * xml-support.c (xml_find_attribute): Change parameter type to
16259         std::vector and adjust.
16260         (gdb_xml_values_cleanup): Remove.
16261         (gdb_xml_parser::start_element): Adjust to std::vector.
16262         (xinclude_start_include): Change paraeter type to std::vector
16263         and adjust.
16264         * btrace.c (check_xml_btrace_version): Likewise.
16265         (parse_xml_btrace_block): Likewise.
16266         (parse_xml_btrace_pt_config_cpu): Likewise.
16267         (parse_xml_btrace_pt): Likewise.
16268         (parse_xml_btrace_conf_bts): Likewise.
16269         (parse_xml_btrace_conf_pt): Likewise.
16270         * memory-map.c (memory_map_start_memory): Likewise.
16271         (memory_map_start_property): Likewise.
16272         * osdata.c (osdata_start_osdata): Likewise.
16273         (osdata_start_item): Likewise.
16274         (osdata_start_column): Likewise.
16275         * remote.c (start_thread): Likewise.
16276         * solib-aix.c (library_list_start_library): Likewise.
16277         (library_list_start_list): Likewise.
16278         * solib-svr4.c (library_list_start_library): Likewise.
16279         (svr4_library_list_start_list): Likewise.
16280         * solib-target.c (library_list_start_segment): Likewise.
16281         (library_list_start_section): Likewise.
16282         (library_list_start_library): Likewise.
16283         (library_list_start_list): Likewise.
16284         * tracepoint.c (traceframe_info_start_memory): Likewise.
16285         (traceframe_info_start_tvar): Likewise.
16286         * xml-syscall.c (syscall_start_syscall): Likewise.
16287         * xml-tdesc.c (tdesc_start_target): Likewise.
16288         (tdesc_start_feature): Likewise.
16289         (tdesc_start_reg): Likewise.
16290         (tdesc_start_union): Likewise.
16291         (tdesc_start_struct): Likewise.
16292         (tdesc_start_flags): Likewise.
16293         (tdesc_start_enum): Likewise.
16294         (tdesc_start_field): Likewise.
16295         (tdesc_start_enum_value): Likewise.
16296         (tdesc_start_vector): Likewise.
16297
16298 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
16299
16300         * extension.h (struct xmethod_worker) <clone>: Remove.
16301         * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
16302         Remove.
16303         (python_xmethod_worker::clone): Remove.
16304         * valops.c (find_overload_match): Use std::move instead of
16305         clone.
16306
16307 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
16308
16309         * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
16310         (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
16311         <free_xmethod_worker_data>: Remove.
16312         <get_matching_xmethod_workers>: Chance VEC to std::vector.
16313         <get_xmethod_arg_types>: Remove.
16314         <get_xmethod_result_type>: Remove.
16315         <invoke_xmethod>: Remove.
16316         * extension.c (new_xmethod_worker): Remove.
16317         (clone_xmethod_worker): Remove.
16318         (get_matching_xmethod_workers): Return void, pass std::vector by
16319         pointer.
16320         (get_xmethod_arg_types): Rename to...
16321         (xmethod_worker::get_arg_types): ... this, and adjust.
16322         (get_xmethod_result_type): Rename to...
16323         (xmethod_worker::get_result_type): ... this, and adjust.
16324         (invoke_xmethod): Remove.
16325         (free_xmethod_worker): Remove.
16326         (free_xmethod_worker_vec): Remove.
16327         * extension.h (enum ext_lang_rc): Move here from
16328         extension-priv.h.
16329         (struct xmethod_worker): Add constructor and destructor.
16330         <data>: Remove.
16331         <value>: Remove.
16332         <invoke, clone, do_get_result_type, do_get_arg_types>: New
16333         virtual pure methods.
16334         <get_arg_types, get_result_type>: New methods.
16335         (xmethod_worker_ptr): Remove typedef.
16336         (DEF_VEC_P (xmethod_worker_ptr)): Remove.
16337         (xmethod_worker_vec): Remove typedef.
16338         (xmethod_worker_up): New typedef.
16339         (invoke_xmethod): Remove.
16340         (clone_xmethod_worker): Remove.
16341         (free_xmethod_worker): Remove.
16342         (free_xmethod_worker_vec): Remove.
16343         (get_xmethod_arg_types): Remove.
16344         (get_xmethod_result_type): Remove.
16345         * valops.c (find_method_list): Use std::vector, don't use
16346         intermediate vector.
16347         (value_find_oload_method_list): Use std::vector.
16348         (find_overload_match): Use std::vector.
16349         (find_oload_champ): Use std::vector.
16350         * value.c (value_free): Use operator delete.
16351         (value_of_xmethod): Rename to...
16352         (value_from_xmethod): ... this.  Don't assign
16353         xmethod_worker::value, take rvalue-reference.
16354         (result_type_of_xmethod): Adjust.
16355         (call_xmethod): Adjust.
16356         * value.h: Include extension.h.
16357         (struct xmethod_worker): Don't forward-declare.
16358         (value_of_xmethod): Rename to...
16359         (value_from_xmethod): ... this, take rvalue-reference.
16360         * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
16361         (struct python_xmethod_worker): ... this, add constructor and
16362         destructor.
16363         <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
16364         (gdbpy_free_xmethod_worker_data): Rename to...
16365         (python_xmethod_worker::~python_xmethod_worker): ... this and
16366         adjust.
16367         (gdbpy_clone_xmethod_worker_data): Rename to...
16368         (python_xmethod_worker::clone): ... this and adjust.
16369         (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
16370         temporary vector.
16371         (gdbpy_get_xmethod_arg_types): Rename to...
16372         (python_xmethod_worker::do_get_arg_types): ... this and adjust.
16373         (gdbpy_get_xmethod_result_type): Rename to...
16374         (python_xmethod_worker::do_get_result_type): ... this and
16375         adjust.
16376         (gdbpy_invoke_xmethod): Rename to...
16377         (python_xmethod_worker::invoke): ... this and adjust.
16378         (new_python_xmethod_worker): Rename to...
16379         (python_xmethod_worker::python_xmethod_worker): ... this and
16380         adjust.
16381         * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
16382         Remove.
16383         (gdbpy_free_xmethod_worker_data): Remove.
16384         (gdbpy_get_matching_xmethod_workers): Use std::vector.
16385         (gdbpy_get_xmethod_arg_types): Remove.
16386         (gdbpy_get_xmethod_result_type): Remove.
16387         (gdbpy_invoke_xmethod): Remove.
16388         * python/python.c (python_extension_ops): Remove obsolete
16389         callbacks.
16390
16391 2018-01-05  Pedro Alves  <palves@redhat.com>
16392
16393         PR gdb/18653
16394         * common/signals-state-save-restore.c
16395         (save_original_signals_state): New parameter 'quiet'.  Warn if we
16396         find a custom handler preinstalled, instead of internal erroring.
16397         But only warn if !quiet.
16398         * common/signals-state-save-restore.h
16399         (save_original_signals_state): New parameter 'quiet'.
16400         * main.c (captured_main_1): Move save_original_signals_state call
16401         after option handling, and pass QUIET.
16402
16403 2018-01-05  Pedro Alves  <palves@redhat.com>
16404
16405         * spu-tdep.c (spu_catch_start): Pass
16406         symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
16407
16408 2018-01-05  Pedro Alves  <palves@redhat.com>
16409
16410         PR gdb/22670
16411         * ada-lang.c (literal_symbol_name_matcher): New function.
16412         (ada_get_symbol_name_matcher): Use it for
16413         symbol_name_match_type::SEARCH_NAME.
16414         * block.c (block_lookup_symbol): New parameter 'match_type'.  Pass
16415         it down instead of assuming symbol_name_match_type::FULL.
16416         * block.h (block_lookup_symbol): New parameter 'match_type'.
16417         * c-valprint.c (print_unpacked_pointer): Use
16418         lookup_symbol_search_name instead of lookup_symbol.
16419         * compile/compile-object-load.c (get_out_value_type): Pass down
16420         symbol_name_match_type::SEARCH_NAME.
16421         * cp-namespace.c (cp_basic_lookup_symbol): Pass down
16422         symbol_name_match_type::FULL.
16423         * cp-support.c (cp_get_symbol_name_matcher): Handle
16424         symbol_name_match_type::SEARCH_NAME.
16425         * infrun.c (insert_exception_resume_breakpoint): Use
16426         lookup_symbol_search_name.
16427         * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
16428         * psymtab.c (maintenance_check_psymtabs): Use
16429         symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
16430         * stack.c (print_frame_args): Use lookup_symbol_search_name and
16431         SYMBOL_SEARCH_NAME.
16432         * symtab.c (lookup_local_symbol): Don't demangle the lookup name
16433         if symbol_name_match_type::SEARCH_NAME.
16434         (lookup_symbol_in_language): Pass down
16435         symbol_name_match_type::FULL.
16436         (lookup_symbol_search_name): New.
16437         (lookup_language_this): Pass down
16438         symbol_name_match_type::SEARCH_NAME.
16439         (lookup_symbol_aux, lookup_local_symbol): New parameter
16440         'match_type'.  Pass it down.
16441         * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
16442         (lookup_symbol_search_name): New declaration.
16443         (lookup_symbol_in_block): New 'match_type' parameter.
16444
16445 2018-01-05  Pedro Alves  <palves@redhat.com>
16446
16447         PR gdb/22670
16448         * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
16449         ada_lookup_symbol.
16450         (ada_lookup_symbol): Reimplement in terms of
16451         ada_lookup_symbol_list, bits factored out from
16452         ada_lookup_encoded_symbol.
16453
16454 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
16455
16456         * ada-exp.y (write_object_renaming): When subscripting an array
16457         using a symbol as the index, pass the block in call to
16458         ada_lookup_encoded_symbol when looking that symbol up.
16459
16460 2018-01-05  Jerome Guitton  <guitton@adacore.com>
16461
16462         * ada-lang.c (ada_array_length): Use ada_index_type instead of
16463         TYPE_INDEX_TYPE.
16464
16465 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
16466
16467         * ada-lang.c (ada_to_fixed_value_create): Add handling of
16468         the case where VALUE_LVAL (val0) is not lval_memory.
16469
16470 2018-01-05  Xavier Roirand  <roirand@adacore.com>
16471
16472         * ada-valprint.c (print_optional_low_bound): Handle
16473         character-indexed array printing like boolean-indexed array
16474         printing.
16475
16476 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
16477
16478         * NEWS: Create a new section for the next release branch.
16479         Rename the section of the current branch, now that it has
16480         been cut.
16481
16482 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
16483
16484         GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
16485         * version.in: Bump version to 8.1.50.DATE-git.
16486
16487 2018-01-03  Xavier Roirand  <roirand@adacore.com>
16488
16489         * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
16490         Add field.
16491         * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
16492         Add field.
16493         (default_exception_support_info) <catch_handlers_sym>: Add field.
16494         (exception_support_info_fallback) <catch_handlers_sym>: Add field.
16495         (ada_exception_name_addr_1): Add "catch handlers" handling.
16496         (ada_exception_catchpoint_cond_string) <ex>: New parameter.
16497         Update all callers.
16498         (create_excep_cond_exprs) <ex>: Add parameter.
16499         (re_set_exception): Update create_excep_cond_exprs call.
16500         (print_it_exception, print_one_exception, print_mention_exception)
16501         (print_recreate_exception): Add "catch handler" handling.
16502         (allocate_location_catch_handlers, re_set_catch_handlers)
16503         (check_status_catch_handlers, print_it_catch_handlers)
16504         (print_one_catch_handlers, print_mention_catch_handlers)
16505         (print_recreate_catch_handlers): New function.
16506         (catch_handlers_breakpoint_ops): New variable.
16507         (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
16508         Add parameter.  Add "catch handler" handling.
16509         (ada_exception_sym_name, ada_exception_breakpoint_ops):
16510         Add "catch handler" handling.
16511         (ada_exception_catchpoint_cond_string): Add "catch handler"
16512         handling.
16513         (create_ada_exception_catchpoint): Update create_excep_cond_exprs
16514         call.
16515         (catch_ada_handlers_command): New function.
16516         (initialize_ada_catchpoint_ops): Initialize "catch handlers"
16517         operations structure.
16518         (_initialize_ada_language): Add "catch handlers" command entry.
16519         * NEWS: Document "catch handlers" feature.
16520
16521 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
16522
16523         * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
16524         account when creating the array type of the slice.
16525         (ada_value_slice): Likewise.
16526
16527 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
16528
16529         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
16530         New enum value.
16531         (create_array_type_with_stride): Add byte_stride_prop parameter.
16532         * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
16533         New parameter.  Update all callers in this file.
16534         (array_type_has_dynamic_stride): New function.
16535         (is_dynamic_type_internal, resolve_dynamic_array): Add handling
16536         of arrays with dynamic byte strides.
16537         * dwarf2read.c (read_array_type): Add support for dynamic
16538         DW_AT_byte_stride attributes.
16539
16540 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
16541
16542         * dwarf2read.c (read_unspecified_type): Treat
16543         DW_TAG_enumeration_type DIEs from Ada units as stubs.
16544
16545 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
16546
16547         Update copyright year range in all GDB files.
16548
16549 2018-01-01, 18  Joel Brobecker  <brobecker@adacore.com>
16550
16551         * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
16552         and gdb/testsuite/gdb.base/step-line.c.
16553
16554 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
16555
16556         * copyright.py (main): Dump the contents of
16557         MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
16558         even if BY_HAND is empty.
16559
16560 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
16561
16562         * top.c (print_gdb_version): Update Copyright year in version
16563         message.
16564
16565 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
16566
16567         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
16568
16569 For older changes see ChangeLog-2017.
16570 \f
16571 Local Variables:
16572 mode: change-log
16573 left-margin: 8
16574 fill-column: 74
16575 version-control: never
16576 coding: utf-8
16577 End: