[gdb, hurd] Work around conflict between Mach's 'thread_info' function, and GDB's...
[external/binutils.git] / gdb / ChangeLog
1 2019-02-14  Thomas Schwinge  <thomas@codesourcery.com>
2
3         * config/i386/nm-i386gnu.h: Don't "#include" any files.
4         * gnu-nat.h (mach_thread_info): New function.
5         * gnu-nat.c (thread_takeover_sc_cmd): Use it.
6
7         * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
8
9 2019-02-14  Frederic Konrad  <konrad@adacore.com>
10
11         * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12
13 2019-02-14  Joel Brobecker  <brobecker@adacore.com>
14
15         * windows-nat.c (windows_add_thread): Add new parameter
16         "main_thread_p" with default value set to false.  Update
17         function documentation as well as all callers.
18         (windows_delete_thread): Likewise.
19         (fake_create_process): Update call to windows_add_thread.
20         (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
21         <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
22         <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
23         call to windows_delete_thread.
24
25 2019-02-13  Simon Marchi  <simon.marchi@ericsson.com>
26
27         * MAINTAINERS: Add Andrew Burgess as global maintainer.
28
29 2019-02-12  John Baldwin  <jhb@FreeBSD.org>
30
31         * symfile.c (find_separate_debug_file): Use canonical path of
32         sysroot with child_path instead of gdb_sysroot if it is valid.
33
34 2019-02-12  John Baldwin  <jhb@FreeBSD.org>
35
36         * symfile.c (find_separate_debug_file): Use child_path to
37         determine if an object file is under a sysroot.
38
39 2019-02-12  John Baldwin  <jhb@FreeBSD.org>
40
41         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
42         unittests/child-path-selftests.c.
43         * common/pathstuff.c (child_path): New function.
44         * common/pathstuff.h (child_path): New prototype.
45         * unittests/child-path-selftests.c: New file.
46
47 2019-02-12  John Baldwin  <jhb@FreeBSD.org>
48
49         * symfile.c (find_separate_debug_file): Look for separate debug
50         files in debug directories under the sysroot.
51
52 2019-02-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
53
54         * symtab.h (struct minimal_symbol data_p): New const method.
55         (struct minimal_symbol text_p): Likewise.
56         * symtab.c (output_source_filename): Use file name style
57         to print file name.
58         (print_symbol_info): Likewise.
59         (print_msymbol_info): Use address style to print addresses.
60         Use function name style to print executable text symbols.
61         (expand_symtab_containing_pc): Use data_p.
62         (find_pc_sect_compunit_symtab): Likewise.
63
64 2019-02-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
65
66         * breakpoint.c (describe_other_breakpoints): Use address style
67         to print addresses.
68         (say_where): Likewise.
69
70 2019-02-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
71
72         * ada-typeprint.c (print_func_type): Print function name
73         style to print function name.
74         * c-typeprint.c (c_print_type_1): Likewise.
75
76 2019-02-11  Alan Hayward  <alan.hayward@arm.com>
77
78         * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
79         for execve.
80
81 2019-02-10  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
82
83         * c-exp.y (direct_abs_decl): Use emplace_back to record the
84         type_stack.
85
86 2019-02-10  Joel Brobecker  <brobecker@adacore.com>
87
88         * ada-varobj.c (ada_value_is_changeable_p): Add handling of
89         TYPE_CODE_REF types.
90
91 2019-02-08  Jim Wilson  <jimw@sifive.com>
92
93         * riscv-linux-tdep.c (riscv_linux_fregmap): New.
94         (riscv_linux_fregset): New.
95         (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
96
97 2019-02-07  Tom Tromey  <tom@tromey.com>
98
99         * thread.c (thread_cancel_execution_command): Update.
100         * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
101         methods.
102         (struct thread_fsm_ops): Remove.
103         (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
104         (thread_fsm_should_stop, thread_fsm_return_value)
105         (thread_fsm_set_finished, thread_fsm_finished_p)
106         (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
107         Don't declare.
108         * mi/mi-interp.c (mi_on_normal_stop_1): Update.
109         * infrun.c (clear_proceed_status_thread)
110         (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
111         (print_stop_event): Update.
112         * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
113         Add constructor.
114         (step_command_fsm_ops): Remove.
115         (new_step_command_fsm): Remove.
116         (step_1): Update.
117         (step_command_fsm::should_stop): Rename from
118         step_command_fsm_should_stop.
119         (step_command_fsm::clean_up): Rename from
120         step_command_fsm_clean_up.
121         (step_command_fsm::do_async_reply_reason): Rename from
122         step_command_fsm_async_reply_reason.
123         (struct until_next_fsm): Inherit from thread_fsm.  Add
124         constructor.
125         (until_next_fsm_ops): Remove.
126         (new_until_next_fsm): Remove.
127         (until_next_fsm::should_stop): Rename from
128         until_next_fsm_should_stop.
129         (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
130         (until_next_fsm::do_async_reply_reason): Rename from
131         until_next_fsm_async_reply_reason.
132         (struct finish_command_fsm): Inherit from thread_fsm.  Add
133         constructor.  Change type of breakpoint.
134         (finish_command_fsm_ops): Remove.
135         (new_finish_command_fsm): Remove.
136         (finish_command_fsm::should_stop): Rename from
137         finish_command_fsm_should_stop.
138         (finish_command_fsm::clean_up): Rename from
139         finish_command_fsm_clean_up.
140         (finish_command_fsm::return_value): Rename from
141         finish_command_fsm_return_value.
142         (finish_command_fsm::do_async_reply_reason): Rename from
143         finish_command_fsm_async_reply_reason.
144         (finish_command): Update.
145         * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
146         Add constructor.
147         (call_thread_fsm_ops): Remove.
148         (call_thread_fsm::call_thread_fsm): Rename from
149         new_call_thread_fsm.
150         (call_thread_fsm::should_stop): Rename from
151         call_thread_fsm_should_stop.
152         (call_thread_fsm::should_notify_stop): Rename from
153         call_thread_fsm_should_notify_stop.
154         (run_inferior_call, call_function_by_hand_dummy): Update.
155         * cli/cli-interp.c (should_print_stop_to_console): Update.
156         * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
157         Add constructor.  Change type of location_breakpoint,
158         caller_breakpoint.
159         (until_break_fsm_ops): Remove.
160         (new_until_break_fsm): Remove.
161         (until_break_fsm::should_stop): Rename from
162         until_break_fsm_should_stop.
163         (until_break_fsm::clean_up): Rename from
164         until_break_fsm_clean_up.
165         (until_break_fsm::do_async_reply_reason): Rename from
166         until_break_fsm_async_reply_reason.
167         (until_break_command): Update.
168         * thread-fsm.c: Remove.
169         * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
170
171 2019-02-07  Tom Tromey  <tom@tromey.com>
172
173         * yy-remap.h: Add include guard.
174         * xtensa-tdep.h: Add include guard.
175         * xcoffread.h: Rename include guard.
176         * varobj-iter.h: Add include guard.
177         * tui/tui.h: Rename include guard.
178         * tui/tui-winsource.h: Rename include guard.
179         * tui/tui-wingeneral.h: Rename include guard.
180         * tui/tui-windata.h: Rename include guard.
181         * tui/tui-win.h: Rename include guard.
182         * tui/tui-stack.h: Rename include guard.
183         * tui/tui-source.h: Rename include guard.
184         * tui/tui-regs.h: Rename include guard.
185         * tui/tui-out.h: Rename include guard.
186         * tui/tui-layout.h: Rename include guard.
187         * tui/tui-io.h: Rename include guard.
188         * tui/tui-hooks.h: Rename include guard.
189         * tui/tui-file.h: Rename include guard.
190         * tui/tui-disasm.h: Rename include guard.
191         * tui/tui-data.h: Rename include guard.
192         * tui/tui-command.h: Rename include guard.
193         * tic6x-tdep.h: Add include guard.
194         * target/waitstatus.h: Rename include guard.
195         * target/wait.h: Rename include guard.
196         * target/target.h: Rename include guard.
197         * target/resume.h: Rename include guard.
198         * target-float.h: Rename include guard.
199         * stabsread.h: Add include guard.
200         * rs6000-tdep.h: Add include guard.
201         * riscv-fbsd-tdep.h: Add include guard.
202         * regformats/regdef.h: Rename include guard.
203         * record.h: Rename include guard.
204         * python/python.h: Rename include guard.
205         * python/python-internal.h: Rename include guard.
206         * python/py-stopevent.h: Rename include guard.
207         * python/py-ref.h: Rename include guard.
208         * python/py-record.h: Rename include guard.
209         * python/py-record-full.h: Rename include guard.
210         * python/py-record-btrace.h: Rename include guard.
211         * python/py-instruction.h: Rename include guard.
212         * python/py-events.h: Rename include guard.
213         * python/py-event.h: Rename include guard.
214         * procfs.h: Add include guard.
215         * proc-utils.h: Add include guard.
216         * p-lang.h: Add include guard.
217         * or1k-tdep.h: Rename include guard.
218         * observable.h: Rename include guard.
219         * nto-tdep.h: Rename include guard.
220         * nat/x86-linux.h: Rename include guard.
221         * nat/x86-linux-dregs.h: Rename include guard.
222         * nat/x86-gcc-cpuid.h: Add include guard.
223         * nat/x86-dregs.h: Rename include guard.
224         * nat/x86-cpuid.h: Rename include guard.
225         * nat/ppc-linux.h: Rename include guard.
226         * nat/mips-linux-watch.h: Rename include guard.
227         * nat/linux-waitpid.h: Rename include guard.
228         * nat/linux-ptrace.h: Rename include guard.
229         * nat/linux-procfs.h: Rename include guard.
230         * nat/linux-osdata.h: Rename include guard.
231         * nat/linux-nat.h: Rename include guard.
232         * nat/linux-namespaces.h: Rename include guard.
233         * nat/linux-btrace.h: Rename include guard.
234         * nat/glibc_thread_db.h: Rename include guard.
235         * nat/gdb_thread_db.h: Rename include guard.
236         * nat/gdb_ptrace.h: Rename include guard.
237         * nat/fork-inferior.h: Rename include guard.
238         * nat/amd64-linux-siginfo.h: Rename include guard.
239         * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
240         * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
241         * nat/aarch64-linux.h: Rename include guard.
242         * nat/aarch64-linux-hw-point.h: Rename include guard.
243         * mn10300-tdep.h: Add include guard.
244         * mips-linux-tdep.h: Add include guard.
245         * mi/mi-parse.h: Rename include guard.
246         * mi/mi-out.h: Rename include guard.
247         * mi/mi-main.h: Rename include guard.
248         * mi/mi-interp.h: Rename include guard.
249         * mi/mi-getopt.h: Rename include guard.
250         * mi/mi-console.h: Rename include guard.
251         * mi/mi-common.h: Rename include guard.
252         * mi/mi-cmds.h: Rename include guard.
253         * mi/mi-cmd-break.h: Rename include guard.
254         * m2-lang.h: Add include guard.
255         * location.h: Rename include guard.
256         * linux-record.h: Rename include guard.
257         * linux-nat.h: Add include guard.
258         * linux-fork.h: Add include guard.
259         * i386-darwin-tdep.h: Rename include guard.
260         * hppa-linux-offsets.h: Add include guard.
261         * guile/guile.h: Rename include guard.
262         * guile/guile-internal.h: Rename include guard.
263         * gnu-nat.h: Rename include guard.
264         * gdb-stabs.h: Rename include guard.
265         * frv-tdep.h: Add include guard.
266         * f-lang.h: Add include guard.
267         * event-loop.h: Add include guard.
268         * darwin-nat.h: Rename include guard.
269         * cp-abi.h: Rename include guard.
270         * config/sparc/nm-sol2.h: Rename include guard.
271         * config/nm-nto.h: Rename include guard.
272         * config/nm-linux.h: Add include guard.
273         * config/i386/nm-i386gnu.h: Rename include guard.
274         * config/djgpp/nl_types.h: Rename include guard.
275         * config/djgpp/langinfo.h: Rename include guard.
276         * compile/gcc-cp-plugin.h: Add include guard.
277         * compile/gcc-c-plugin.h: Add include guard.
278         * compile/compile.h: Rename include guard.
279         * compile/compile-object-run.h: Rename include guard.
280         * compile/compile-object-load.h: Rename include guard.
281         * compile/compile-internal.h: Rename include guard.
282         * compile/compile-cplus.h: Rename include guard.
283         * compile/compile-c.h: Rename include guard.
284         * common/xml-utils.h: Rename include guard.
285         * common/x86-xstate.h: Rename include guard.
286         * common/version.h: Rename include guard.
287         * common/vec.h: Rename include guard.
288         * common/tdesc.h: Rename include guard.
289         * common/selftest.h: Rename include guard.
290         * common/scoped_restore.h: Rename include guard.
291         * common/scoped_mmap.h: Rename include guard.
292         * common/scoped_fd.h: Rename include guard.
293         * common/safe-iterator.h: Rename include guard.
294         * common/run-time-clock.h: Rename include guard.
295         * common/refcounted-object.h: Rename include guard.
296         * common/queue.h: Rename include guard.
297         * common/ptid.h: Rename include guard.
298         * common/print-utils.h: Rename include guard.
299         * common/preprocessor.h: Rename include guard.
300         * common/pathstuff.h: Rename include guard.
301         * common/observable.h: Rename include guard.
302         * common/netstuff.h: Rename include guard.
303         * common/job-control.h: Rename include guard.
304         * common/host-defs.h: Rename include guard.
305         * common/gdb_wait.h: Rename include guard.
306         * common/gdb_vecs.h: Rename include guard.
307         * common/gdb_unlinker.h: Rename include guard.
308         * common/gdb_unique_ptr.h: Rename include guard.
309         * common/gdb_tilde_expand.h: Rename include guard.
310         * common/gdb_sys_time.h: Rename include guard.
311         * common/gdb_string_view.h: Rename include guard.
312         * common/gdb_splay_tree.h: Rename include guard.
313         * common/gdb_setjmp.h: Rename include guard.
314         * common/gdb_ref_ptr.h: Rename include guard.
315         * common/gdb_optional.h: Rename include guard.
316         * common/gdb_locale.h: Rename include guard.
317         * common/gdb_assert.h: Rename include guard.
318         * common/filtered-iterator.h: Rename include guard.
319         * common/filestuff.h: Rename include guard.
320         * common/fileio.h: Rename include guard.
321         * common/environ.h: Rename include guard.
322         * common/common-utils.h: Rename include guard.
323         * common/common-types.h: Rename include guard.
324         * common/common-regcache.h: Rename include guard.
325         * common/common-inferior.h: Rename include guard.
326         * common/common-gdbthread.h: Rename include guard.
327         * common/common-exceptions.h: Rename include guard.
328         * common/common-defs.h: Rename include guard.
329         * common/common-debug.h: Rename include guard.
330         * common/cleanups.h: Rename include guard.
331         * common/buffer.h: Rename include guard.
332         * common/btrace-common.h: Rename include guard.
333         * common/break-common.h: Rename include guard.
334         * cli/cli-utils.h: Rename include guard.
335         * cli/cli-style.h: Rename include guard.
336         * cli/cli-setshow.h: Rename include guard.
337         * cli/cli-script.h: Rename include guard.
338         * cli/cli-interp.h: Rename include guard.
339         * cli/cli-decode.h: Rename include guard.
340         * cli/cli-cmds.h: Rename include guard.
341         * charset-list.h: Add include guard.
342         * buildsym-legacy.h: Rename include guard.
343         * bfin-tdep.h: Add include guard.
344         * ax.h: Rename include guard.
345         * arm-linux-tdep.h: Add include guard.
346         * arm-fbsd-tdep.h: Add include guard.
347         * arch/xtensa.h: Rename include guard.
348         * arch/tic6x.h: Add include guard.
349         * arch/i386.h: Add include guard.
350         * arch/arm.h: Rename include guard.
351         * arch/arm-linux.h: Rename include guard.
352         * arch/arm-get-next-pcs.h: Rename include guard.
353         * arch/amd64.h: Add include guard.
354         * arch/aarch64-insn.h: Rename include guard.
355         * arch-utils.h: Rename include guard.
356         * annotate.h: Add include guard.
357         * amd64-darwin-tdep.h: Rename include guard.
358         * aarch64-linux-tdep.h: Add include guard.
359         * aarch64-fbsd-tdep.h: Add include guard.
360         * aarch32-linux-nat.h: Add include guard.
361
362 2019-02-06  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
363
364         * macrotab.c (macro_define_internal): New function that
365         factorizes macro_define_object_internal and macro_define_function
366         code.
367         (macro_define_object_internal): Use macro_define_internal.
368         (macro_define_function): Likewise.
369
370 2019-02-06  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
371
372         * macrocmd.c (extract_identifier): Return
373         a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
374         callers.
375
376 2019-02-06  John Baldwin  <jhb@FreeBSD.org>
377
378         * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
379
380 2019-02-05  Tom Tromey  <tom@tromey.com>
381
382         * target.c (target_stack::unpush): Move assertion earlier.
383
384 2019-01-30  Tom Tromey  <tom@tromey.com>
385
386         PR python/23615:
387         * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
388         (gdbpy_parse_and_eval): Likewise.
389         * python/python-internal.h (gdbpy_allow_threads): New class.
390
391 2019-01-28  John Baldwin  <jhb@FreeBSD.org>
392
393         * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
394         (aarch64_fbsd_fpregmap): Move earlier.
395         (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
396         (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
397         instead of individual calls to trad_frame_set_reg_addr.
398         * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
399         earlier.
400         (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
401         (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
402         instead of individual calls to trad_frame_set_reg_addr.
403
404 2019-01-28  Alan Hayward  <alan.hayward@arm.com>
405
406         * CONTRIBUTE: Replace contribution list with wiki link.
407
408 2019-01-25  Tom Tromey  <tom@tromey.com>
409
410         * Makefile.in (GDB_CFLAGS): Don't add -I for common.
411
412 2019-01-25  Tom Tromey  <tom@tromey.com>
413
414         * xtensa-linux-nat.c: Fix common/ includes.
415         * xml-support.h: Fix common/ includes.
416         * xml-support.c: Fix common/ includes.
417         * x86-linux-nat.c: Fix common/ includes.
418         * windows-nat.c: Fix common/ includes.
419         * varobj.h: Fix common/ includes.
420         * varobj.c: Fix common/ includes.
421         * value.c: Fix common/ includes.
422         * valops.c: Fix common/ includes.
423         * utils.c: Fix common/ includes.
424         * unittests/xml-utils-selftests.c: Fix common/ includes.
425         * unittests/utils-selftests.c: Fix common/ includes.
426         * unittests/unpack-selftests.c: Fix common/ includes.
427         * unittests/tracepoint-selftests.c: Fix common/ includes.
428         * unittests/style-selftests.c: Fix common/ includes.
429         * unittests/string_view-selftests.c: Fix common/ includes.
430         * unittests/scoped_restore-selftests.c: Fix common/ includes.
431         * unittests/scoped_mmap-selftests.c: Fix common/ includes.
432         * unittests/scoped_fd-selftests.c: Fix common/ includes.
433         * unittests/rsp-low-selftests.c: Fix common/ includes.
434         * unittests/parse-connection-spec-selftests.c: Fix common/
435         includes.
436         * unittests/optional-selftests.c: Fix common/ includes.
437         * unittests/offset-type-selftests.c: Fix common/ includes.
438         * unittests/observable-selftests.c: Fix common/ includes.
439         * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
440         * unittests/memrange-selftests.c: Fix common/ includes.
441         * unittests/memory-map-selftests.c: Fix common/ includes.
442         * unittests/lookup_name_info-selftests.c: Fix common/ includes.
443         * unittests/function-view-selftests.c: Fix common/ includes.
444         * unittests/environ-selftests.c: Fix common/ includes.
445         * unittests/copy_bitwise-selftests.c: Fix common/ includes.
446         * unittests/common-utils-selftests.c: Fix common/ includes.
447         * unittests/cli-utils-selftests.c: Fix common/ includes.
448         * unittests/array-view-selftests.c: Fix common/ includes.
449         * ui-file.c: Fix common/ includes.
450         * tui/tui-io.c: Fix common/ includes.
451         * tracepoint.h: Fix common/ includes.
452         * tracepoint.c: Fix common/ includes.
453         * tracefile-tfile.c: Fix common/ includes.
454         * top.h: Fix common/ includes.
455         * top.c: Fix common/ includes.
456         * thread.c: Fix common/ includes.
457         * target/waitstatus.h: Fix common/ includes.
458         * target/waitstatus.c: Fix common/ includes.
459         * target.h: Fix common/ includes.
460         * target.c: Fix common/ includes.
461         * target-memory.c: Fix common/ includes.
462         * target-descriptions.c: Fix common/ includes.
463         * symtab.h: Fix common/ includes.
464         * symfile.c: Fix common/ includes.
465         * stap-probe.c: Fix common/ includes.
466         * spu-linux-nat.c: Fix common/ includes.
467         * sparc-nat.c: Fix common/ includes.
468         * source.c: Fix common/ includes.
469         * solib.c: Fix common/ includes.
470         * solib-target.c: Fix common/ includes.
471         * ser-unix.c: Fix common/ includes.
472         * ser-tcp.c: Fix common/ includes.
473         * ser-pipe.c: Fix common/ includes.
474         * ser-base.c: Fix common/ includes.
475         * selftest-arch.c: Fix common/ includes.
476         * s12z-tdep.c: Fix common/ includes.
477         * rust-exp.y: Fix common/ includes.
478         * rs6000-aix-tdep.c: Fix common/ includes.
479         * riscv-tdep.c: Fix common/ includes.
480         * remote.c: Fix common/ includes.
481         * remote-notif.h: Fix common/ includes.
482         * remote-fileio.h: Fix common/ includes.
483         * remote-fileio.c: Fix common/ includes.
484         * regcache.h: Fix common/ includes.
485         * regcache.c: Fix common/ includes.
486         * record-btrace.c: Fix common/ includes.
487         * python/python.c: Fix common/ includes.
488         * python/py-type.c: Fix common/ includes.
489         * python/py-inferior.c: Fix common/ includes.
490         * progspace.h: Fix common/ includes.
491         * producer.c: Fix common/ includes.
492         * procfs.c: Fix common/ includes.
493         * proc-api.c: Fix common/ includes.
494         * printcmd.c: Fix common/ includes.
495         * ppc-linux-nat.c: Fix common/ includes.
496         * parser-defs.h: Fix common/ includes.
497         * osdata.c: Fix common/ includes.
498         * obsd-nat.c: Fix common/ includes.
499         * nat/x86-linux.c: Fix common/ includes.
500         * nat/x86-linux-dregs.c: Fix common/ includes.
501         * nat/x86-dregs.h: Fix common/ includes.
502         * nat/x86-dregs.c: Fix common/ includes.
503         * nat/ppc-linux.c: Fix common/ includes.
504         * nat/mips-linux-watch.h: Fix common/ includes.
505         * nat/mips-linux-watch.c: Fix common/ includes.
506         * nat/linux-waitpid.c: Fix common/ includes.
507         * nat/linux-ptrace.h: Fix common/ includes.
508         * nat/linux-ptrace.c: Fix common/ includes.
509         * nat/linux-procfs.c: Fix common/ includes.
510         * nat/linux-personality.c: Fix common/ includes.
511         * nat/linux-osdata.c: Fix common/ includes.
512         * nat/linux-namespaces.c: Fix common/ includes.
513         * nat/linux-btrace.h: Fix common/ includes.
514         * nat/linux-btrace.c: Fix common/ includes.
515         * nat/fork-inferior.c: Fix common/ includes.
516         * nat/amd64-linux-siginfo.c: Fix common/ includes.
517         * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
518         * nat/aarch64-linux.c: Fix common/ includes.
519         * nat/aarch64-linux-hw-point.h: Fix common/ includes.
520         * nat/aarch64-linux-hw-point.c: Fix common/ includes.
521         * namespace.h: Fix common/ includes.
522         * mips-linux-tdep.c: Fix common/ includes.
523         * minsyms.c: Fix common/ includes.
524         * mi/mi-parse.h: Fix common/ includes.
525         * mi/mi-main.c: Fix common/ includes.
526         * mi/mi-cmd-env.c: Fix common/ includes.
527         * memrange.h: Fix common/ includes.
528         * memattr.c: Fix common/ includes.
529         * maint.h: Fix common/ includes.
530         * maint.c: Fix common/ includes.
531         * main.c: Fix common/ includes.
532         * machoread.c: Fix common/ includes.
533         * location.c: Fix common/ includes.
534         * linux-thread-db.c: Fix common/ includes.
535         * linux-nat.c: Fix common/ includes.
536         * linux-fork.c: Fix common/ includes.
537         * inline-frame.c: Fix common/ includes.
538         * infrun.c: Fix common/ includes.
539         * inflow.c: Fix common/ includes.
540         * inferior.h: Fix common/ includes.
541         * inferior.c: Fix common/ includes.
542         * infcmd.c: Fix common/ includes.
543         * inf-ptrace.c: Fix common/ includes.
544         * inf-child.c: Fix common/ includes.
545         * ia64-linux-nat.c: Fix common/ includes.
546         * i387-tdep.c: Fix common/ includes.
547         * i386-tdep.c: Fix common/ includes.
548         * i386-linux-tdep.c: Fix common/ includes.
549         * i386-linux-nat.c: Fix common/ includes.
550         * i386-go32-tdep.c: Fix common/ includes.
551         * i386-fbsd-tdep.c: Fix common/ includes.
552         * i386-fbsd-nat.c: Fix common/ includes.
553         * guile/scm-type.c: Fix common/ includes.
554         * guile/guile.c: Fix common/ includes.
555         * go32-nat.c: Fix common/ includes.
556         * gnu-nat.c: Fix common/ includes.
557         * gdbthread.h: Fix common/ includes.
558         * gdbarch-selftests.c: Fix common/ includes.
559         * gdb_usleep.c: Fix common/ includes.
560         * gdb_select.h: Fix common/ includes.
561         * gdb_bfd.c: Fix common/ includes.
562         * gcore.c: Fix common/ includes.
563         * fork-child.c: Fix common/ includes.
564         * findvar.c: Fix common/ includes.
565         * fbsd-nat.c: Fix common/ includes.
566         * event-top.c: Fix common/ includes.
567         * event-loop.c: Fix common/ includes.
568         * dwarf2read.c: Fix common/ includes.
569         * dwarf2loc.c: Fix common/ includes.
570         * dwarf2-frame.c: Fix common/ includes.
571         * dwarf-index-cache.c: Fix common/ includes.
572         * dtrace-probe.c: Fix common/ includes.
573         * disasm-selftests.c: Fix common/ includes.
574         * defs.h: Fix common/ includes.
575         * csky-tdep.c: Fix common/ includes.
576         * cp-valprint.c: Fix common/ includes.
577         * cp-support.h: Fix common/ includes.
578         * cp-support.c: Fix common/ includes.
579         * corelow.c: Fix common/ includes.
580         * completer.h: Fix common/ includes.
581         * completer.c: Fix common/ includes.
582         * compile/compile.c: Fix common/ includes.
583         * compile/compile-loc2c.c: Fix common/ includes.
584         * compile/compile-cplus-types.c: Fix common/ includes.
585         * compile/compile-cplus-symbols.c: Fix common/ includes.
586         * command.h: Fix common/ includes.
587         * cli/cli-dump.c: Fix common/ includes.
588         * cli/cli-cmds.c: Fix common/ includes.
589         * charset.c: Fix common/ includes.
590         * build-id.c: Fix common/ includes.
591         * btrace.h: Fix common/ includes.
592         * btrace.c: Fix common/ includes.
593         * breakpoint.h: Fix common/ includes.
594         * breakpoint.c: Fix common/ includes.
595         * ax.h: 
596         (enum agent_op): Fix common/ includes.
597         * ax-general.c (struct aop_map): Fix common/ includes.
598         * ax-gdb.c: Fix common/ includes.
599         * auxv.c: Fix common/ includes.
600         * auto-load.c: Fix common/ includes.
601         * arm-tdep.c: Fix common/ includes.
602         * arch/riscv.c: Fix common/ includes.
603         * arch/ppc-linux-common.c: Fix common/ includes.
604         * arch/i386.c: Fix common/ includes.
605         * arch/arm.c: Fix common/ includes.
606         * arch/arm-linux.c: Fix common/ includes.
607         * arch/arm-get-next-pcs.c: Fix common/ includes.
608         * arch/amd64.c: Fix common/ includes.
609         * arch/aarch64.c: Fix common/ includes.
610         * arch/aarch64-insn.c: Fix common/ includes.
611         * arch-utils.c: Fix common/ includes.
612         * amd64-windows-tdep.c: Fix common/ includes.
613         * amd64-tdep.c: Fix common/ includes.
614         * amd64-sol2-tdep.c: Fix common/ includes.
615         * amd64-obsd-tdep.c: Fix common/ includes.
616         * amd64-nbsd-tdep.c: Fix common/ includes.
617         * amd64-linux-tdep.c: Fix common/ includes.
618         * amd64-linux-nat.c: Fix common/ includes.
619         * amd64-fbsd-tdep.c: Fix common/ includes.
620         * amd64-fbsd-nat.c: Fix common/ includes.
621         * amd64-dicos-tdep.c: Fix common/ includes.
622         * amd64-darwin-tdep.c: Fix common/ includes.
623         * agent.c: Fix common/ includes.
624         * ada-lang.h: Fix common/ includes.
625         * ada-lang.c: Fix common/ includes.
626         * aarch64-tdep.c: Fix common/ includes.
627
628 2019-01-25  Tom Tromey  <tom@tromey.com>
629
630         * common/create-version.sh: Use common/version.h.
631
632 2019-01-24  Pedro Alves  <palves@redhat.com>
633
634         * infrun.c (signal_stop, signal_print, signal_program)
635         (signal_catch, signal_pass): Now arrays instead of pointers.
636         (update_signals_program_target, do_target_resume)
637         (signal_catch_update, handle_command, _initialize_infrun): Adjust.
638         * linux-nat.c (linux_nat_target::pass_signals)
639         (linux_nat_target::create_inferior, linux_nat_target::attach):
640         Adjust.
641         * linux-nat.h (linux_nat_target::pass_signals): Adjust.
642         * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
643         * procfs.c (procfs_target::pass_signals): Adjust.
644         * record-full.c (record_full_target::resume): Adjust.
645         * remote.c (remote_target::pass_signals)
646         (remote_target::program_signals): Adjust.
647         * target-debug.h (target_debug_print_signals): Now takes a
648         gdb::array_view as parameter.  Adjust.
649         * target.h (target_ops) <pass_signals, program_signals>: Replace
650         pointer and length parameters with gdb::array_view.
651         (target_pass_signals, target_program_signals): Likewise.
652         * target-delegates.c: Regenerate.
653
654 2019-01-24  Pedro Alves  <palves@redhat.com>
655
656         * common/forward-scope-exit.h
657         (forward_scope_exit::forward_scope_exit): Pass arguments to
658         m_bind_function directly, instead of creating a std::bind and
659         copying that.
660
661 2019-01-24  Alan Hayward  <alan.hayward@arm.com>
662
663         * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
664         for static members.
665         (pass_in_v_vfp_candidate): Likewise.
666
667 2019-01-23  Tom Tromey  <tom@tromey.com>
668             Pedro Alves  <palves@redhat.com>
669
670         * regcache.c (class regcache_invalidator): Remove.
671         (regcache::raw_write): Use make_scope_exit.
672
673 2019-01-23  Tom Tromey  <tom@tromey.com>
674
675         * ui-out.h (class ui_out_emit_type): Update comment.
676
677 2019-01-23  Tom Tromey  <tom@tromey.com>
678
679         * infrun.c (fetch_inferior_event): Update comment.
680
681 2019-01-23  Tom Tromey  <tom@tromey.com>
682             Pedro Alves  <palves@redhat.com>
683
684         * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
685         parameter.
686         (fetch_inferior_event): Use SCOPE_EXIT.
687
688
689 2019-01-23  Tom Tromey  <tom@tromey.com>
690             Pedro Alves  <palves@redhat.com>
691
692         * infrun.c (disable_thread_events): Delete.
693         (stop_all_threads): Use SCOPE_EXIT.
694
695 2019-01-23  Tom Tromey  <tom@tromey.com>
696             Pedro Alves  <palves@redhat.com>
697
698         * symfile.c: Include forward-scope-exit.h.
699         (clear_symtab_users_cleanup): Replace forward declaration with
700         a FORWARD_SCOPE_EXIT.
701         (syms_from_objfile_1): Use the forward_scope_exit and
702         gdb::optional instead of cleanup_function.
703         (reread_symbols): Use the forward_scope_exit instead of
704         cleanup_function.
705         (clear_symtab_users_cleanup): Remove function.
706
707 2019-01-23  Tom Tromey  <tom@tromey.com>
708             Pedro Alves  <palves@redhat.com>
709
710         * linux-nat.c: Include scope-exit.h.
711         (cleanup_target_stop): Remove.
712         (linux_nat_target::static_tracepoint_markers_by_strid): Use
713         SCOPE_EXIT.
714
715 2019-01-23  Tom Tromey  <tom@tromey.com>
716             Pedro Alves  <palves@redhat.com>
717
718         * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
719         (call_function_by_hand_dummy): Use SCOPE_EXIT.
720
721 2019-01-23  Tom Tromey  <tom@tromey.com>
722             Andrew Burgess  <andrew.burgess@embecosm.com>
723             Pedro Alves  <palves@redhat.com>
724
725         * infrun.c (fetch_inferior_event): Use scope_exit.
726         * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
727         * top.c (execute_command): Use scope_exit.
728         * breakpoint.c (bpstat_do_actions): Use scope_exit.
729         * utils.c (do_bpstat_clear_actions_cleanup)
730         (make_bpstat_clear_actions_cleanup): Remove.
731
732 2019-01-23  Tom Tromey  <tom@tromey.com>
733             Pedro Alves  <palves@redhat.com>
734
735         * infrun.c: Include "common/scope-exit.h"
736         (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
737         (wait_for_inferior): Use SCOPE_EXIT.
738         (fetch_inferior_event): Use scope_exit.
739
740 2019-01-23  Tom Tromey  <tom@tromey.com>
741             Pedro Alves  <palves@redhat.com>
742
743         * breakpoint.c (create_breakpoint): Remove cleanup.
744
745 2019-01-23  Tom Tromey  <tom@tromey.com>
746             Andrew Burgess  <andrew.burgess@embecosm.com>
747             Pedro Alves  <palves@redhat.com>
748
749 2019-01-23  Pedro Alves  <palves@redhat.com>
750
751         * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
752
753 2019-01-23  Pedro Alves  <palves@redhat.com>
754             Andrew Burgess  <andrew.burgess@embecosm.com>
755
756         * gdbthread.h: Include "common/forward-scope-exit.h".
757         (scoped_finish_thread_state): Redefine custom class in terms of
758         forward_scope_exit.
759
760 2019-01-23  Pedro Alves  <palves@redhat.com>
761             Andrew Burgess  <andrew.burgess@embecosm.com>
762
763         * common/forward-scope-exit.h: New file.
764
765 2019-01-23  Pedro Alves  <palves@redhat.com>
766             Andrew Burgess  <andrew.burgess@embecosm.com>
767             Tom Tromey  <tom@tromey.com>
768
769         * common/scope-exit.h: New file.
770
771 2019-01-23  Pedro Alves  <palves@redhat.com>
772
773         * common/preprocessor.h (ESC): Rename to ...
774         (ESC_PARENS): ... this.
775         * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
776         (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
777
778 2019-01-23  Tom Tromey  <tom@tromey.com>
779
780         * language.h (class scoped_switch_to_sym_language_if_auto):
781         Initialize m_lang in both cases.
782
783 2019-01-23  Alan Hayward  <alan.hayward@arm.com>
784
785         * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
786         with XCNEW.
787
788 2019-01-22  Tom Tromey  <tom@tromey.com>
789
790         * corelow.c: Do not include sys/file.h.
791
792 2019-01-22  Tom Tromey  <tom@tromey.com>
793
794         * tui/tui-wingeneral.h: Include gdb_curses.h.
795
796 2019-01-22  Tom Tromey  <tom@tromey.com>
797
798         * source-cache.h (class source_cache) <get_source_lines,
799         get_plain_source_lines, extract_lines>: Rename "lines" parameter.
800
801 2019-01-22  Tom Tromey  <tom@tromey.com>
802
803         * remote-fileio.h (struct remote_target): Declare.
804
805 2019-01-22  Tom Tromey  <tom@tromey.com>
806
807         * python/py-arch.c: Do not include py-ref.h.
808         * python/py-bpevent.c: Do not include py-ref.h.
809         * python/py-cmd.c: Do not include py-ref.h.
810         * python/py-continueevent.c: Do not include py-ref.h.
811         * python/py-event.h: Do not include py-ref.h.
812         * python/py-evtregistry.c: Do not include py-ref.h.
813         * python/py-finishbreakpoint.c: Do not include py-ref.h.
814         * python/py-frame.c: Do not include py-ref.h.
815         * python/py-framefilter.c: Do not include py-ref.h.
816         * python/py-function.c: Do not include py-ref.h.
817         * python/py-infevents.c: Do not include py-ref.h.
818         * python/py-linetable.c: Do not include py-ref.h.
819         * python/py-objfile.c: Do not include py-ref.h.
820         * python/py-param.c: Do not include py-ref.h.
821         * python/py-prettyprint.c: Do not include py-ref.h.
822         * python/py-progspace.c: Do not include py-ref.h.
823         * python/py-symbol.c: Do not include py-ref.h.
824         * python/py-symtab.c: Do not include py-ref.h.
825         * python/py-type.c: Do not include py-ref.h.
826         * python/py-unwind.c: Do not include py-ref.h.
827         * python/py-utils.c: Do not include py-ref.h.
828         * python/py-value.c: Do not include py-ref.h.
829         * python/py-varobj.c: Do not include py-ref.h.
830         * python/py-xmethods.c: Do not include py-ref.h.
831         * python/python.c: Do not include py-ref.h.
832         * varobj.c: Do not include py-ref.h.
833
834 2019-01-22  Tom Tromey  <tom@tromey.com>
835
836         * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
837         keyword for bcache.
838
839 2019-01-22  Tom Tromey  <tom@tromey.com>
840
841         * compile/compile-cplus-types.c: Remove a comment by #include.
842
843 2019-01-22  Tom Tromey  <tom@tromey.com>
844
845         * compile/gcc-c-plugin.h: Include compile-internal.h.
846
847 2019-01-22  Tom Tromey  <tom@tromey.com>
848
849         * stabsread.c (EXTERN): Do not define.
850         (symnum, next_symbol_text_func, processing_gcc_compilation)
851         (within_function, global_sym_chain, global_stabs)
852         (previous_stab_code, this_object_header_files)
853         (n_this_object_header_files)
854         (n_allocated_this_object_header_files): Define.
855         * stabsread.h (EXTERN): Never define.  Use "extern".
856
857 2019-01-22  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
858
859         * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
860         history_value.
861
862 2019-01-21  Tom Tromey  <tom@tromey.com>
863
864         * ui-out.c: Fix includes.
865         * tui/tui-source.c: Fix includes.
866         * target.c: Fix includes.
867         * remote.c: Fix includes.
868         * regcache.c: Fix includes.
869         * python/py-block.c: Fix includes.
870         * printcmd.c: Fix includes.
871         * or1k-tdep.c: Fix includes.
872         * mi/mi-main.c: Fix includes.
873         * m32r-tdep.c: Fix includes.
874         * csky-tdep.c: Fix includes.
875         * compile/compile-cplus-types.c: Fix includes.
876         * cli/cli-interp.c: Fix includes.
877
878 2019-01-21  Alan Hayward  <alan.hayward@arm.com>
879
880         * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
881         for padding.
882
883 2019-01-16  Tom Tromey  <tom@tromey.com>
884
885         * objfiles.h (struct minimal_symbol_iterator): Rename.  Move
886         earlier.
887         (struct objfile) <msymbols_range>: Move from top level.
888         <msymbols>: New method.
889         (class objfile_msymbols): Remove.
890         * symtab.c (default_collect_symbol_completion_matches_break_on):
891         Update.
892         * symmisc.c (dump_msymbols): Update.
893         * stabsread.c (scan_file_globals): Update.
894         * objc-lang.c (info_selectors_command, info_classes_command)
895         (find_methods): Update.
896         * minsyms.c (find_solib_trampoline_target): Update.
897         * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
898         * coffread.c (coff_symfile_read): Update.
899         * ada-lang.c (ada_lookup_simple_minsym)
900         (ada_collect_symbol_completion_matches): Update.
901
902 2019-01-16  Tom Tromey  <tom@tromey.com>
903
904         * objfiles.h (class objfile_msymbols) <iterator>: Change argument
905         type.  Remove no-argument constructor.
906         <iterator::operator++>: Simplify.
907         <begin>: Update.
908         <end>: Use minimal_symbol_count.
909
910 2019-01-16  Tom Tromey  <tom@tromey.com>
911
912         * objfiles.h (struct objfile) <psymtabs>: New method.
913         (class objfile_psymtabs): Remove.
914         * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
915         typedef.
916         <range>: New method.
917         (require_partial_symbols): Change return type.
918         * psymtab.c (require_partial_symbols)
919         (psym_expand_symtabs_matching): Update.
920         * mdebugread.c (parse_partial_symbols): Update.
921         * dbxread.c (dbx_end_psymtab): Update.
922
923 2019-01-15  Tom Tromey  <tom@tromey.com>
924
925         * symtab.c (lookup_objfile_from_block)
926         (lookup_symbol_in_objfile_symtabs)
927         (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
928         (find_line_symtab, info_sources_command)
929         (default_collect_symbol_completion_matches_break_on)
930         (make_source_files_completion_list): Update.
931         * symmisc.c (print_objfile_statistics, dump_objfile)
932         (maintenance_print_symbols, maintenance_info_symtabs)
933         (maintenance_check_symtabs, maintenance_info_line_tables):
934         Update.
935         * source.c (select_source_symtab)
936         (forget_cached_source_info_for_objfile): Update.
937         * objfiles.h (class objfile_compunits): Remove.
938         (struct objfile) <compunits_range>: New typedef.
939         (compunits): New method.
940         * objfiles.c (objfile_relocate1): Update.
941         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
942         * maint.c (count_symtabs_and_blocks): Update.
943         * linespec.c (iterate_over_all_matching_symtabs): Update.
944         * cp-support.c (add_symbol_overload_list_qualified): Update.
945         * coffread.c (coff_symtab_read): Update.
946         * ada-lang.c (add_nonlocal_symbols)
947         (ada_collect_symbol_completion_matches)
948         (ada_add_global_exceptions): Update.
949
950 2019-01-15  Tom Tromey  <tom@tromey.com>
951
952         * progspace.h (program_space) <objfiles_safe_range>: New
953         typedef.
954         <objfiles_safe>: New method.
955         * objfiles.h (class all_objfiles_safe): Remove.
956         * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
957         * jit.c (jit_inferior_exit_hook): Update.
958
959 2019-01-17  Tom Tromey  <tom@tromey.com>
960
961         * progspace.h (program_space) <objfiles_range>: New typedef.
962         <objfiles>: New method.
963         <objfiles_head>: Rename from objfiles.
964         (object_files): Update.
965         * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
966         * guile/scm-pretty-print.c
967         (ppscm_find_pretty_printer_from_objfiles): Update.
968         * guile/scm-objfile.c (gdbscm_objfiles): Update.
969         * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
970         Update.
971         * python/py-progspace.c (pspy_get_objfiles): Update.
972         * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
973         Update.
974         * python/py-objfile.c (objfpy_lookup_objfile_by_name)
975         (objfpy_lookup_objfile_by_build_id): Update.
976         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
977         * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
978         Update.
979         * symtab.c (iterate_over_symtabs, matching_obj_sections)
980         (expand_symtab_containing_pc, lookup_objfile_from_block)
981         (lookup_static_symbol, basic_lookup_transparent_type)
982         (find_pc_sect_compunit_symtab, find_symbol_at_address)
983         (find_line_symtab, info_sources_command)
984         (default_collect_symbol_completion_matches_break_on)
985         (make_source_files_completion_list, find_main_name): Update.
986         * symmisc.c (print_symbol_bcache_statistics)
987         (print_objfile_statistics, maintenance_print_symbols)
988         (maintenance_print_msymbols, maintenance_print_objfiles)
989         (maintenance_info_symtabs, maintenance_check_symtabs)
990         (maintenance_expand_symtabs, maintenance_info_line_tables):
991         Update.
992         * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
993         (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
994         (map_overlay_command, unmap_overlay_command)
995         (simple_overlay_update, expand_symtabs_matching)
996         (map_symbol_filenames): Update.
997         * symfile-debug.c (set_debug_symfile): Update.
998         * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
999         Update.
1000         * source.c (select_source_symtab, forget_cached_source_info):
1001         Update.
1002         * solib.c (solib_read_symbols): Update.
1003         * solib-spu.c (append_ocl_sos): Update.
1004         * psymtab.c (maintenance_print_psymbols)
1005         (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1006         * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
1007         * printcmd.c (info_symbol_command): Update.
1008         * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
1009         Update.
1010         * objfiles.h (class all_objfiles): Remove.
1011         * objfiles.c (have_partial_symbols, have_full_symbols)
1012         (have_minimal_symbols, qsort_cmp, update_section_map)
1013         (shared_objfile_contains_address_p)
1014         (default_iterate_over_objfiles_in_search_order): Update.
1015         * objc-lang.c (info_selectors_command, info_classes_command)
1016         (find_methods): Update.
1017         * minsyms.c (find_solib_trampoline_target): Update.
1018         * maint.c (maintenance_info_sections)
1019         (maintenance_translate_address, count_symtabs_and_blocks):
1020         Update.
1021         * main.c (captured_main_1): Update.
1022         * linux-thread-db.c (try_thread_db_load_from_pdir)
1023         (has_libpthread): Update.
1024         * linespec.c (iterate_over_all_matching_symtabs)
1025         (search_minsyms_for_name): Update.
1026         * jit.c (jit_find_objf_with_entry_addr): Update.
1027         * hppa-tdep.c (find_unwind_entry)
1028         (hppa_lookup_stub_minimal_symbol): Update.
1029         * gcore.c (gcore_create_callback, objfile_find_memory_regions):
1030         Update.
1031         * elfread.c (elf_gnu_ifunc_resolve_by_cache)
1032         (elf_gnu_ifunc_resolve_by_got): Update.
1033         * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
1034         * dwarf-index-write.c (save_gdb_index_command): Update.
1035         * cp-support.c (add_symbol_overload_list_qualified): Update.
1036         * breakpoint.c (create_overlay_event_breakpoint)
1037         (create_longjmp_master_breakpoint)
1038         (create_std_terminate_master_breakpoint)
1039         (create_exception_master_breakpoint): Update.
1040         * blockframe.c (find_pc_partial_function): Update.
1041         * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
1042         (ada_collect_symbol_completion_matches)
1043         (ada_add_global_exceptions): Update.
1044
1045 2019-01-17  Tom Tromey  <tom@tromey.com>
1046
1047         * solib-target.c (lm_info_target_p): Remove typedef.  Don't
1048         declare VEC.
1049         (solib_target_parse_libraries): Change return type.
1050         (library_list_start_segment, library_list_start_section)
1051         (library_list_end_library, library_list_start_library); Update.
1052         (solib_target_free_library_list): Remove.
1053         (solib_target_parse_libraries): Remove cleanup.  Change return
1054         type.
1055         (solib_target_current_sos): Update.
1056
1057 2019-01-17  Tom Tromey  <tromey@bapiya>
1058
1059         * valprint.c: Replace "the the" with "the".
1060         * symtab.c: Replace "the the" with "the".
1061         * solib.c: Replace "the the" with "the".
1062         * solib-dsbt.c: Replace "the the" with "the".
1063         * linespec.c: Replace "the the" with "the".
1064         * dwarf2loc.h: Replace "the the" with "the".
1065         * amd64-windows-tdep.c: Replace "the the" with "the".
1066         * aarch64-tdep.c: Replace "the the" with "the".
1067
1068 2019-01-16  Keith Seitz  <keiths@redhat.com>
1069
1070         PR gdb/23773
1071         * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
1072         <builder>: Rename to ..
1073         <m_builder>: ... this and make private.
1074         (dwarf2_cu::get_builder): New method.  Change all users of
1075         `builder' to use this method.
1076         (dwarf2_start_symtab): Move to ...
1077         (dwarf2_cu::start_symtab): ... here.  Update all callers
1078         (setup_type_unit_groups): Move to ...
1079         (dwarf2_cu::setup_type_unit_groups): ... here.  Update all
1080         callers.
1081         (dwarf2_cu::reset_builder): New method.
1082         (process_full_compunit, process_full_type_unit): Use
1083         dwarf2_cu::reset_builder.
1084         (follow_die_offset): Record the ancestor CU if it is different
1085         from the followed DIE's CU.
1086         (follow_die_sig_1): Likewise.
1087
1088 2019-01-15  Tom Tromey  <tom@tromey.com>
1089
1090         * remote.c (class remote_state) <buf>: Now a char_vector.
1091         <buf_size>: Remove.
1092         (remote_target::getpkt): Change type of buf.  Remove sizeof_buf
1093         parameter.
1094         (remote_target::getpkt_or_notif_sane_1)
1095         (remote_target::getpkt_sane)
1096         (remote_target::getpkt_or_notif_sane): Likewise.
1097         (class remote_target) <putpkt>: New overload.
1098         (remote_target::read_frame): Change type of "buf_p".  Remove
1099         sizeof_p parameter.
1100         (packet_ok): New overload.
1101         (packet_check_result): New overload.
1102         Update all uses.
1103
1104 2019-01-14  Tom Tromey  <tom@tromey.com>
1105
1106         * remote-notif.c (handle_notification, remote_notif_ack)
1107         (remote_notif_parse): Make "buf" const.
1108         * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
1109         const.
1110         (remote_notif_parse, remote_notif_ack, handle_notification):
1111         Likewise.
1112         * remote.c (remote_notif_stop_parse): Make "buf" const.
1113         (remote_target::remote_parse_stop_reply): Make "buf" const.
1114         (remote_notif_stop_ack): Make "buf" const.
1115
1116 2019-01-14  Tom Tromey  <tom@tromey.com>
1117
1118         * remote.c (remote_console_output): Make parameter const.
1119
1120 2019-01-14  Tom Tromey  <tom@tromey.com>
1121
1122         * target-debug.h (target_debug_print_signals): Constify.
1123         * nto-procfs.c (nto_procfs_target::pass_signals): Update.
1124         * procfs.c (procfs_target::pass_signals): Update.
1125         * linux-nat.c (linux_nat_target::pass_signals): Update.
1126         * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
1127         * target-delegates.c: Rebuild.
1128         * remote.c (remote_target::program_signals): Update.
1129         (remote_target::pass_signals): Update.
1130         * target.c (target_pass_signals): Constify argument.
1131         (target_program_signals): Likewise.
1132         * target.h (struct target_ops) <pass_signals, program_signals>:
1133         Constify argument.
1134         (target_pass_signals, target_program_signals): Constify argument.
1135
1136 2019-01-14  Tom Tromey  <tom@tromey.com>
1137
1138         PR tui/28819:
1139         * tui/tui-io.c (gdb_wgetch): Print \r when needed.
1140
1141 2019-01-14  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1142
1143         * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
1144         field.
1145         * rs6000-tdep.c: Include reggroups.h.
1146         (IS_V_ALIAS_PSEUDOREG): Define.
1147         (rs6000_register_name): Return names for the "vX" aliases.
1148         (rs6000_pseudo_register_type): Return type for the "vX" aliases.
1149         (rs6000_pseudo_register_reggroup_p): Restore.  Handle "vX"
1150         aliases.  Call default_register_reggroup_p for all other
1151         pseudo-registers.
1152         (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
1153         New functions.
1154         (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
1155         Handle "vX" aliases.
1156         (v_alias_pseudo_register_collect): New function.
1157         (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
1158         (rs6000_gdbarch_init): Initialize "vX" aliases as
1159         pseudo-registers.  Restore registration of
1160         rs6000_pseudo_register_reggroup_p with
1161         set_tdesc_pseudo_register_reggroup_p.
1162
1163 2019-01-13  Max Filippov  <jcmvbkbc@gmail.com>
1164
1165         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
1166         tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
1167         set_gdbarch_num_pseudo_regs.
1168
1169 2019-01-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1170
1171         * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
1172         Remove arg prefixname, add do_set and do_show.
1173         Add member functions set_list and show_list.
1174         * cli/cli-style.c (class cli_style_option): Update accordingly.
1175         (style_set_list): Move to file scope.
1176         (style_show_list): Likewise.
1177         (set_style): Call help_list.
1178         (show_style): Call cmd_show_list.
1179         (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
1180         Update to use the new macro.
1181
1182 2019-10-12  Joel Brobecker  <brobecker@adacore.com>
1183
1184         * ada-lang.c (_initialize_ada_language): Expand the help text
1185         for the "catch exception" command.
1186
1187 2019-01-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1188
1189         * symtab.c (matching_obj_sections): Initialize obj,
1190         declare it closer to its usage.
1191
1192 2019-01-10  Tom Tromey  <tom@tromey.com>
1193
1194         * thread-iter.h (inf_threads_iterator): Use next_iterator.
1195         (basic_inf_threads_range): Remove.
1196         (inf_threads_range, inf_non_exited_threads_range)
1197         (safe_inf_threads_range): Use next_adapter.
1198
1199 2019-01-10  Keith Seitz  <keiths@redhat.com>
1200
1201         PR gdb/23712
1202         PR symtab/23010
1203         * dwarf2read.c (dw2_add_symbol_to_list): Remove.
1204         (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
1205
1206 2019-01-10  Keith Seitz  <keiths@redhat.com>
1207
1208         PR gdb/23712
1209         PR symtab/23010
1210         * dictionary.c (pending_to_vector): Remove.
1211         (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
1212         Remove _1 suffix, replacing functions of the same name.  Update
1213         all callers.
1214         (dict_create_hashed, dict_create_hashed_expandable)
1215         (dict_create_linear, dict_create_linear_expandable, dict_free)
1216         (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
1217         Make functions static.
1218
1219 2019-01-10  Keith Seitz  <keiths@redhat.com>
1220
1221         PR gdb/23712
1222         PR symtab/23010
1223         * dictionary.h (struct dictionary): Replace declaration with
1224         multidictionary.
1225         (dict_create_hashed, dict_create_hashed_expandable)
1226         (dict_create_linear, dict_create_linear_expandable)
1227         (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
1228         (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
1229         (dict_iter_match_next, dict_size): Rename to "mdict_" versions
1230         taking multidictionary argument.
1231         [ALL_DICT_SYMBOLS]: Update for multidictionary.
1232         * block.h (struct block) <dict>: Change to multidictionary
1233         and rename `multidict'.
1234         * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
1235         symmisc.c: Update all dictionary references to multidictionary.
1236
1237 2019-01-10  Keith Seitz  <keiths@redhat.com>
1238
1239         PR gdb/23712
1240         PR symtab/23010
1241         * dictionary.c: Include unordered_map.
1242         (pending_to_vector): New function.
1243         (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
1244         Rewrite the non-"_1" functions to take vector instead
1245         of linked list.
1246         (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
1247         "new" _1 versions of the same name.
1248         (multidictionary): Define.
1249         (std::hash<enum language): New definition.
1250         (collate_pending_symbols_by_language, mdict_create_hashed)
1251         (mdict_create_hashed_expandable, mdict_create_linear)
1252         (mdict_create_linear_expandable, mdict_free)
1253         (find_language_dictionary, create_new_language_dictionary)
1254         (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
1255         (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
1256         (mdict_size, mdict_empty): New functions.
1257         * dictionary.h (mdict_iterator): Define.
1258
1259 2019-01-10  Pedro Alves  <palves@redhat.com>
1260
1261         * breakpoint.c (read_uploaded_action)
1262         (create_tracepoint_from_upload): Adjust to use
1263         gdb::unique_xmalloc_ptr.
1264         * ctf.c (ctf_write_uploaded_tp):
1265         (SET_ARRAY_FIELD): Use emplace_back.
1266         (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
1267         * tracefile-tfile.c (tfile_write_uploaded_tp):
1268         * tracepoint.c (parse_tracepoint_definition): Adjust to use
1269         gdb::unique_xmalloc_ptr.
1270         * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
1271         at_string, cond_string, cmd_strings>: Replace char pointers
1272         with gdb::unique_xmalloc_ptr.
1273
1274 2019-01-10  Pedro Alves  <palves@redhat.com>
1275
1276         * solib-target.c (library_list_start_library): Don't xstrdup name.
1277
1278 2019-01-10  Pedro Alves  <palves@redhat.com>
1279
1280         * mdebugread.c (parse_partial_symbols): Use
1281         gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
1282
1283 2019-01-10  Andrew Burgess  <andrew.burgess@embecosm.com>
1284
1285         * linux-fork.c (scoped_switch_fork_info)
1286         <~scoped_switch_fork_info>: Fix incorrect variable name.
1287
1288 2019-01-10  Andrew Burgess  <andrew.burgess@embecosm.com>
1289
1290         * linux-fork.c (scoped_switch_fork_info)
1291         <scoped_switch_fork_info>: Make explicit.
1292         <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
1293
1294 2019-01-10  Tom Tromey  <tom@tromey.com>
1295
1296         * objfiles.h (objfile::reset_psymtabs): Update.
1297         * objfiles.c (objfile::objfile): Update.
1298         * psymtab.h (psymtab_storage::obstack): Update.
1299         (psymtab_storage::m_obstack): Use gdb::optional.
1300         (class psymtab_storage): Update comment.  Remove objfile
1301         parameter.
1302         * psymtab.c (psymtab_storage::psymtab_storage): Update.
1303
1304 2019-01-10  Tom Tromey  <tom@tromey.com>
1305
1306         * psymtab.h (psymtab_storage::allocate_psymtab): New method.
1307         <free_psymtabs>: Now private.
1308         * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
1309         (allocate_psymtab): Use new method.
1310
1311 2019-01-10  Tom Tromey  <tom@tromey.com>
1312
1313         * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
1314         * psymtab.h (psymtab_storage::allocate_dependencies): New method.
1315         * mdebugread.c (parse_partial_symbols): Use
1316         allocate_dependencies.
1317         * dwarf2read.c (dwarf2_create_include_psymtab): Use
1318         allocate_dependencies.
1319         (process_psymtab_comp_unit_reader)
1320         (build_type_psymtab_dependencies): Likewise.
1321         * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
1322
1323 2019-01-10  Tom Tromey  <tom@tromey.com>
1324
1325         * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
1326         PSYMBOL_SET_LANGUAGE.
1327         (allocate_psymtab): Allocate psymtab on the psymtab obstack.
1328
1329 2019-01-10  Tom Tromey  <tom@tromey.com>
1330
1331         * psymtab.h (psymtab_storage::obstack): New method.
1332         <m_obstack>: Rename from obstack; now private.
1333         * psymtab.c (psymtab_storage): Update.
1334         * dwarf2read.c (create_addrmap_from_index)
1335         (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
1336         Update.
1337
1338 2019-01-10  Tom Tromey  <tom@tromey.com>
1339
1340         * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
1341         * objfiles.h (objfile::reset_psymtabs): New method.
1342
1343 2019-01-10  Tom Tromey  <tom@tromey.com>
1344
1345         * symmisc.c (print_symbol_bcache_statistics): Update.
1346         (print_objfile_statistics): Update.
1347         * symfile.c (reread_symbols): Update.
1348         * psymtab.h (class psymtab_storage): New.
1349         * psymtab.c (psymtab_storage): New constructor.
1350         (~psymtab_storage): New destructor.
1351         (require_partial_symbols): Update.
1352         (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
1353         (find_pc_sect_psymtab, find_pc_sect_psymbol)
1354         (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
1355         (psym_dump, recursively_search_psymtabs, psym_has_symbols)
1356         (psym_find_compunit_symtab_by_address, sort_pst_symbols)
1357         (start_psymtab_common, end_psymtab_common)
1358         (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
1359         (allocate_psymtab): Update.
1360         (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
1361         Update.
1362         (dump_psymtab_addrmap, maintenance_print_psymbols)
1363         (maintenance_check_psymtabs): Update.
1364         (class objfile_psymtabs): Move to objfiles.h.
1365         * psympriv.h (discard_psymtab): Now inline.
1366         (psymtab_discarder::psymtab_discarder): Update.
1367         (psymtab_discarder::~psymtab_discarder): Update.
1368         (ALL_OBJFILE_PSYMTABS): Rewrite.
1369         * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
1370         free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
1371         Remove fields.
1372         <partial_symtabs>: New field.
1373         (class objfile_psymtabs): Move from psymtab.h.  Update.
1374         * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
1375         psymbol_cache.
1376         (objfile::~objfile): Don't destroy psymbol_cache.
1377         * mdebugread.c (parse_partial_symbols): Update.
1378         * dwarf2read.c (create_addrmap_from_index)
1379         (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
1380         (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
1381         (add_partial_subprogram, dwarf2_ranges_read): Update.
1382         * dwarf-index-write.c (write_address_map)
1383         (write_one_signatured_type, recursively_write_psymbols)
1384         (class debug_names, class debug_names, write_psymtabs_to_index):
1385         Update.
1386
1387 2019-01-10  Tom Tromey  <tom@tromey.com>
1388
1389         * symtab.h (SYMBOL_SET_NAMES): Update.
1390         (symbol_set_names): Update.
1391         (MSYMBOL_SET_NAMES): Update.
1392         * symtab.c (symbol_set_names): Change argument to be an
1393         objfile_per_bfd_storage.
1394         * psymtab.c (add_psymbol_to_bcache): Update.
1395         * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
1396
1397 2019-01-10  Tom Tromey  <tom@tromey.com>
1398
1399         * symtab.c (create_demangled_names_hash): Change argument to be an
1400         objfile_per_bfd_storage.
1401         (symbol_set_names): Update.
1402
1403 2019-01-10  Tom Tromey  <tom@tromey.com>
1404
1405         * xcoffread.c (xcoff_initial_scan): Unconditionally call
1406         init_psymbol_list.
1407         * psymtab.c (init_psymbol_list): Do nothing if already called.
1408         * psympriv.h (init_psymbol_list): Add comment.
1409         * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
1410         init_psymbol_list.
1411         * dbxread.c (dbx_symfile_read): Unconditionally call
1412         init_psymbol_list.
1413
1414 2019-01-10  Tom Tromey  <tom@tromey.com>
1415
1416         * xcoffread.c (scan_xcoff_symtab): Update.
1417         * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
1418         "where".
1419         * mdebugread.c (parse_partial_symbols)
1420         (handle_psymbol_enumerators): Update.
1421         * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
1422         * dbxread.c (read_dbx_symtab): Update.
1423         * psympriv.h (psymbol_placement): New enum.
1424         (add_psymbol_to_list): Update.
1425
1426 2019-01-10  Tom Tromey  <tom@tromey.com>
1427
1428         * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
1429         static_psymbols parameters.
1430         (scan_xcoff_symtab): Update.
1431         * psymtab.c (start_psymtab_common): Remove global_psymbols and
1432         static_psymbols parameters.
1433         * psympriv.h (start_psymtab_common): Update.
1434         * mdebugread.c (parse_partial_symbols): Update.
1435         * dwarf2read.c (create_partial_symtab): Update.
1436         * dbxread.c (read_dbx_symtab): Update.
1437         (start_psymtab): Remove global_psymbols and static_psymbols
1438         parameters.
1439
1440 2019-01-10  Tom Tromey  <tom@tromey.com>
1441
1442         * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
1443         * psymtab.c (allocate_psymtab): Add comment.
1444         * psympriv.h (allocate_psymtab): Add comment.
1445         * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
1446         initializations.
1447         * dbxread.c (dbx_end_psymtab): Remove some initializations.
1448
1449 2019-01-10  Tom Tromey  <tom@tromey.com>
1450
1451         * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
1452         Don't declare.
1453         * mipsread.c: Include mdebugread.h.
1454         * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
1455         Declare.
1456         * elfread.c: Include mdebugread.h.
1457
1458 2019-01-09  Tom Tromey  <tom@tromey.com>
1459
1460         * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
1461         * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
1462         * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
1463         (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1464         (psym_lookup_symbol, psym_find_last_source_symtab)
1465         (psym_forget_cached_source_info, psym_print_stats)
1466         (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1467         (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1468         (psym_map_matching_symbols, psym_expand_symtabs_matching)
1469         (psym_find_compunit_symtab_by_address)
1470         (maintenance_print_psymbols, maintenance_info_psymtabs)
1471         (maintenance_check_psymtabs): Use ranged for.
1472         * psymtab.h (class objfile_psymtabs): New.
1473         (require_partial_symbols): Return objfile_psymtabs.
1474         * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
1475
1476 2019-01-09  Tom Tromey  <tom@tromey.com>
1477
1478         * symfile.c (overlay_invalidate_all, find_pc_overlay)
1479         (find_pc_mapped_section, list_overlays_command)
1480         (map_overlay_command, unmap_overlay_command)
1481         (simple_overlay_update): Use all_objfiles.
1482         * spu-tdep.c (spu_overlay_update): Use all_objfiles.
1483         * printcmd.c (info_symbol_command): Use all_objfiles.
1484         * objfiles.h (ALL_OBJSECTIONS): Remove.
1485         * maint.c (maintenance_translate_address): Use all_objfiles.
1486         * gcore.c (gcore_create_callback): Use all_objfiles.
1487         (objfile_find_memory_regions): Likewise.
1488
1489 2019-01-09  Tom Tromey  <tom@tromey.com>
1490
1491         * symtab.c (find_line_symtab, info_sources_command)
1492         (make_source_files_completion_list): Use objfile_compunits.
1493         * source.c (select_source_symtab): Use objfile_compunits.
1494         * objfiles.h (struct objfile): Update comment.
1495         (ALL_OBJFILES): Remove.
1496         (ALL_FILETABS): Remove.
1497         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
1498         objfile_compunits.
1499
1500 2019-01-09  Tom Tromey  <tom@tromey.com>
1501
1502         * symmisc.c (print_objfile_statistics, dump_objfile)
1503         (maintenance_print_symbols): Use compunit_filetabs.
1504         * source.c (forget_cached_source_info_for_objfile): Use
1505         compunit_filetabs.
1506         * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
1507         (ALL_FILETABS): Use compunit_filetabs.
1508         * objfiles.c (objfile_relocate1): Use compunit_filetabs.
1509         * coffread.c (coff_symtab_read): Use compunit_filetabs.
1510
1511 2019-01-09  Tom Tromey  <tom@tromey.com>
1512
1513         * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
1514         (compunit_filetabs): New.
1515         * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
1516         compunit_filetabs.
1517         (info_sources_command, make_source_files_completion_list): Remove
1518         declaration.
1519         * symmisc.c (print_objfile_statistics, dump_objfile)
1520         (maintenance_print_symbols): Remove declaration.
1521         (maintenance_info_symtabs): Use compunit_filetabs.
1522         (maintenance_info_line_tables): Likewise.
1523         * source.c (select_source_symtab): Change local variable name.
1524         (forget_cached_source_info_for_objfile): Remove declaration.
1525         * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
1526         * objfiles.c (objfile_relocate1): Remove declaration.
1527         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
1528         declaration.
1529         * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
1530         * coffread.c (coff_symtab_read): Remove declaration.
1531         * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1532         compunit_filetabs.
1533
1534 2019-01-09  Tom Tromey  <tom@tromey.com>
1535
1536         * symtab.c (lookup_objfile_from_block)
1537         (find_pc_sect_compunit_symtab, search_symbols)
1538         (default_collect_symbol_completion_matches_break_on): Use
1539         objfile_compunits.
1540         * objfiles.h (ALL_COMPUNITS): Remove.
1541         * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
1542         * cp-support.c (add_symbol_overload_list_qualified): Use
1543         objfile_compunits.
1544         * ada-lang.c (ada_collect_symbol_completion_matches)
1545         (ada_add_global_exceptions): Use objfile_compunits.
1546
1547 2019-01-09  Tom Tromey  <tom@tromey.com>
1548
1549         * source.c (select_source_symtab)
1550         (forget_cached_source_info_for_objfile): Remove declaration.
1551         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
1552         declaration.
1553         * maint.c (count_symtabs_and_blocks): Remove declaration.
1554         * cp-support.c (add_symbol_overload_list_qualified): Remove
1555         declaration.
1556         * coffread.c (coff_symtab_read): Remove declaration.
1557         * symtab.c (lookup_symbol_in_objfile_symtabs)
1558         (basic_lookup_transparent_type_1): Use objfile_compunits.
1559         (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
1560         (info_sources_command, search_symbols)
1561         (default_collect_symbol_completion_matches_break_on)
1562         (make_source_files_completion_list): Remove declaration.
1563         * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
1564         (ada_collect_symbol_completion_matches)
1565         (ada_add_global_exceptions): Remove declaration.
1566         * linespec.c (iterate_over_all_matching_symtabs): Use
1567         objfile_compunits.
1568         * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
1569         (class objfile_compunits): New.
1570         (ALL_COMPUNITS): Use objfile_compunits.
1571         * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
1572         (maintenance_check_symtabs, maintenance_info_line_tables): Use
1573         objfile_compunits.
1574         * objfiles.c (objfile_relocate1): Use objfile_compunits.
1575
1576 2019-01-09  Tom Tromey  <tom@tromey.com>
1577
1578         * symtab.c (search_symbols)
1579         (default_collect_symbol_completion_matches_break_on): Use
1580         objfile_msymbols.
1581         * ada-lang.c (ada_lookup_simple_minsym)
1582         (ada_collect_symbol_completion_matches): Use objfile_msymbols.
1583         * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
1584         * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
1585         objfile_msymbols.
1586         * coffread.c (coff_symfile_read): Use objfile_msymbols.
1587         * symmisc.c (dump_msymbols): Use objfile_msymbols.
1588         * objc-lang.c (find_methods): Use objfile_msymbols.
1589         (info_selectors_command, info_classes_command): Likewise.
1590         * stabsread.c (scan_file_globals): Use objfile_msymbols.
1591         * objfiles.h (class objfile_msymbols): New.
1592         (ALL_OBJFILE_MSYMBOLS): Remove.
1593         (ALL_MSYMBOLS): Remove.
1594
1595 2019-01-09  Tom Tromey  <tom@tromey.com>
1596
1597         * common/next-iterator.h (next_adapter): Add Iterator template
1598         parameter.
1599         * objfiles.h (ALL_OBJFILES_SAFE): Remove.
1600         (class all_objfiles_safe): New.
1601         * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
1602         * objfiles.c (put_objfile_before): Update comment.
1603         (add_separate_debug_objfile): Likewise.
1604         (free_all_objfiles): Use all_objfiles_safe.
1605         (objfile_purge_solibs): Likewise.
1606
1607 2019-01-09  Tom Tromey  <tom@tromey.com>
1608
1609         * symtab.c (iterate_over_symtabs, matching_obj_sections)
1610         (expand_symtab_containing_pc, lookup_static_symbol)
1611         (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
1612         (find_symbol_at_address, find_line_symtab, find_main_name): Use
1613         all_objfiles.
1614         * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
1615         * breakpoint.c (create_overlay_event_breakpoint)
1616         (create_longjmp_master_breakpoint)
1617         (create_std_terminate_master_breakpoint)
1618         (create_exception_master_breakpoint): Use all_objfiles.
1619         * linux-thread-db.c (try_thread_db_load_from_pdir)
1620         (has_libpthread): Use all_objfiles.
1621         * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
1622         * linespec.c (iterate_over_all_matching_symtabs)
1623         (search_minsyms_for_name): Use all_objfiles.
1624         * maint.c (maintenance_info_sections): Use all_objfiles.
1625         * main.c (captured_main_1): Use all_objfiles.
1626         * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
1627         * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
1628         * guile/scm-pretty-print.c
1629         (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
1630         * solib-spu.c (append_ocl_sos): Use all_objfiles.
1631         * symmisc.c (maintenance_print_symbols): Use all_objfiles.
1632         (maintenance_print_msymbols): Use all_objfiles.
1633         * source.c (select_source_symtab): Use all_objfiles.
1634         * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
1635         * symfile.c (remove_symbol_file_command)
1636         (expand_symtabs_matching, map_symbol_filenames): Use
1637         all_objfiles.
1638         * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
1639         all_objfiles.
1640         * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
1641         * objc-lang.c (find_methods): Use all_objfiles.
1642         * objfiles.c (have_partial_symbols, have_full_symbols)
1643         (have_minimal_symbols, qsort_cmp)
1644         (default_iterate_over_objfiles_in_search_order): Use
1645         all_objfiles.
1646         * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
1647         * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
1648         (maintenance_check_psymtabs): Use all_objfiles.
1649         (ALL_PSYMTABS): Remove.
1650         * compile/compile-object-run.c (do_module_cleanup): Use
1651         all_objfiles.
1652         * blockframe.c (find_pc_partial_function): Use all_objfiles.
1653         * cp-support.c (add_symbol_overload_list_qualified): Use
1654         all_objfiles.
1655         * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
1656         Use all_objfiles.
1657         * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
1658         * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
1659         all_objfiles.
1660         * python/py-objfile.c (objfpy_lookup_objfile_by_name)
1661         (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
1662         * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
1663         Uses all_objfiles.
1664         * solib.c (solib_read_symbols): Use all_objfiles
1665
1666 2019-01-09  Tom Tromey  <tom@tromey.com>
1667
1668         * probe.c (parse_probes_in_pspace): Use all_objfiles.
1669         * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
1670         all_objfiles.
1671         * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
1672         * symmisc.c (print_symbol_bcache_statistics)
1673         (print_objfile_statistics, maintenance_print_objfiles)
1674         (maintenance_info_symtabs, maintenance_check_symtabs)
1675         (maintenance_expand_symtabs, maintenance_info_line_tables): Use
1676         all_objfiles.
1677         * source.c (forget_cached_source_info): Use all_objfiles.
1678         * symfile-debug.c (set_debug_symfile): Use all_objfiles.
1679         * elfread.c (elf_gnu_ifunc_resolve_by_cache)
1680         (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
1681         * objfiles.c (update_section_map): Use all_objfiles.
1682         (shared_objfile_contains_address_p): Likewise.
1683         * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
1684         * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
1685
1686 2019-01-09  Tom Tromey  <tom@tromey.com>
1687
1688         * common/next-iterator.h: New file.
1689         * objfiles.h (class all_objfiles): New.
1690         (struct objfile_iterator): New.
1691
1692 2019-01-09  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1693
1694         * NEWS: Move the description of the changed "frame", "select-frame",
1695          and "info frame" commands to the Changed commands section.
1696
1697 2019-01-09  Simon Marchi  <simon.marchi@ericsson.com>
1698
1699         * gdbtypes.c (check_stub_method_group): Remove handling of old
1700         mangling schemes.
1701         * linespec.c (find_methods): Likewise.
1702         * stabsread.c (read_member_functions): Likewise.
1703         * valops.c (search_struct_method): Likewise.
1704         (value_struct_elt_for_reference): Likewise.
1705         * NEWS: Mention this change.
1706
1707 2019-01-09  Andrew Burgess  <andrew.burgess@embecosm.com>
1708
1709         * cli/cli-cmds.c (list_command): Pass a source_lines_range to
1710         print_source_lines.
1711         * source.c (print_source_lines_base): Update line number check.
1712         (print_source_lines): New function.
1713         (source_lines_range::source_lines_range): New function.
1714         * source.h (class source_lines_range): New class.
1715         (print_source_lines): New declaration.
1716
1717 2019-01-09  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1718
1719         * linespec.c (linespec_state_destructor): Free self->canonical_names.
1720
1721 2019-01-08  Tom Tromey  <tom@tromey.com>
1722             Simon Marchi  <simon.marchi@ericsson.com>
1723
1724         PR gdb/24060
1725         * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
1726         * ada-lex.l (DOLLAR_VARIABLE): Likewise.
1727         * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
1728         * f-exp.y (DOLLAR_VARIABLE): Likewise.
1729         * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
1730         * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
1731
1732 2019-01-08  Andrew Burgess  <andrew.burgess@embecosm.com>
1733
1734         * source.c (select_source_symtab): Move header comment to
1735         declaration in source.h.
1736         (forget_cached_source_info_for_objfile): Likewise.
1737         (forget_cached_source_info): Likewise.
1738         (identify_source_line): Likewise.
1739         * source.h (identify_source_line): Move declaration from symtab.h
1740         and add comment from source.c
1741         (print_source_lines): Likewise.
1742         (forget_cached_source_info_for_objfile): Likewise.
1743         (forget_cached_source_info): Likewise.
1744         (select_source_symtab): Likewise.
1745         (enum print_source_lines_flag): Move definition from symtab.h.
1746         * symtab.h (identify_source_line): Move declaration to source.h.
1747         (print_source_lines): Likewise.
1748         (forget_cached_source_info_for_objfile): Likewise.
1749         (forget_cached_source_info): Likewise.
1750         (select_source_symtab): Likewise.
1751         (enum print_source_lines_flag): Move definition to source.h.
1752         * tui/tui-hooks.c: Add 'source.h' include.
1753
1754 2019-01-08  Andrew Burgess  <andrew.burgess@embecosm.com>
1755
1756         * source.c (print_source_lines_base): Handle requests to print
1757         reverse line number sequences, and guard against empty lines
1758         string.
1759
1760 2019-01-08  Andrew Burgess  <andrew.burgess@embecosm.com>
1761
1762         * source.c (print_source_lines_base): Fix skip of '\r' if next
1763         character is '\n'.
1764
1765 2019-01-06  Tom Tromey  <tom@tromey.com>
1766
1767         * c-exp.y (struct c_parse_state) <macro_original_text,
1768         expansion_obstack>: New member.
1769         (macro_original_text, expansion_obstack): Remove globals.
1770         (scan_macro_expansion, scanning_macro_expansion)
1771         (finished_macro_expansion): Update.
1772         (scan_macro_cleanup): Remove.
1773         (yylex, c_parse): Update.
1774
1775 2019-01-06  Tom Tromey  <tom@tromey.com>
1776
1777         * c-exp.y (struct c_parse_state) <strings>: New member.
1778         (operator_stoken): Update.
1779
1780 2019-01-06  Tom Tromey  <tom@tromey.com>
1781
1782         * parser-defs.h (type_ptr): Remove typedef.  Don't declare VEC.
1783         (union type_stack_elt) <typelist_val>: Now a pointer to
1784         std::vector.
1785         (type_stack_cleanup): Don't declare.
1786         (push_typelist): Update.
1787         * parse.c (pop_typelist): Return a std::vector.
1788         (push_typelist): Take a std::vector.
1789         (follow_types): Update.  Do not free args.
1790         (type_stack_cleanup): Remove.
1791         * c-exp.y (struct c_parse_state): New.
1792         (cpstate): New global.
1793         (type_aggregate_p, exp, ptr_operator, parameter_typelist)
1794         (nonempty_typelist): Update.
1795         (func_mod): Create a new vector.
1796         (c_parse): Create a c_parse_state.
1797         (check_parameter_typelist): Do not delete params.
1798         (function_method): Update.  Do not delete type_list.
1799
1800 2019-01-06  Tom Tromey  <tom@tromey.com>
1801
1802         PR gdb/28155:
1803         * python/py-finishbreakpoint.c (bpfinishpy_init): Use
1804         check_typedef.
1805         * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
1806         (print_return_value): Likewise.
1807
1808 2019-01-05  Tom Tromey  <tom@tromey.com>
1809
1810         * contrib/cleanup_check.py: Remove.
1811         * contrib/gcc-with-excheck: Remove.
1812         * contrib/exsummary.py: Remove.
1813         * contrib/excheck.py: Remove.
1814
1815 2019-01-05  Joel Brobecker  <brobecker@adacore.com>
1816
1817         * thread.c (delete_thread_1): Add gdb_assert that THR is not
1818         NULL. Initialize tpprev to NULL instead of assigning it
1819         to NULL on the next statement.
1820         * windows-nat.c (windows_delete_thread): Remove check for
1821         main_thread_id before printing thread exit notifications.
1822         (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
1823         Remove thread ID check against main_thread_id.
1824         <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
1825         windows_delete_thread.
1826         <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
1827
1828 2019-01-04  Tom Tromey  <tom@tromey.com>
1829
1830         * compile/compile.c (_initialize_compile): Use upper case for
1831         metasyntactic variables.
1832         * symmisc.c (_initialize_symmisc): Use upper case for
1833         metasyntactic variables.
1834         * psymtab.c (_initialize_psymtab): Use upper case for
1835         metasyntactic variables.
1836         * demangle.c (demangle_command): Use upper case for metasyntactic
1837         variables.
1838         (_initialize_demangler): Likewise.
1839         * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
1840         variables.
1841
1842 2019-01-03  Tom Tromey  <tom@tromey.com>
1843
1844         * tui/tui-source.c (tui_set_source_content): Use xstrdup.
1845
1846 2019-01-03  Tom Tromey  <tom@tromey.com>
1847
1848         * python/py-symtab.c (salpy_str): Update.
1849         (struct salpy_sal_object) <symtab>: Now a PyObject.
1850         (salpy_dealloc): Update.
1851         (del_objfile_sal): Use gdbpy_ref.
1852
1853 2019-01-03  Tom Tromey  <tom@tromey.com>
1854
1855         * python/py-type.c (convert_field): Use new_reference.  Return
1856         gdbpy_ref.
1857         (make_fielditem): Return gdbpy_ref.
1858         (typy_fields): Update.
1859         (typy_getitem): Update.
1860         (field_name): Return gdbpy_ref.  Use new_reference.
1861         (typy_iterator_iternext): Update.
1862
1863 2019-01-03  Tom Tromey  <tom@tromey.com>
1864
1865         * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
1866
1867 2019-01-03  Tom Tromey  <tom@tromey.com>
1868
1869         * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
1870         * python/py-type.c (typy_fields_items): Use gdbpy_ref.
1871         * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
1872         (pspy_set_frame_filters, pspy_set_frame_unwinders)
1873         (pspy_set_type_printers): Likewise.
1874         * python/py-function.c (fnpy_init): Use gdbpy_ref.
1875         * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
1876         * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
1877         (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
1878         (objfpy_set_type_printers): Likewise.
1879
1880 2019-01-03  Tom Tromey  <tom@tromey.com>
1881
1882         * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
1883         (gdbpy_print_stack): Use gdbpy_err_fetch.
1884         * python/python-internal.h (class gdbpy_err_fetch): New class.
1885         (class gdbpy_enter) <m_error_type, m_error_value,
1886         m_error_traceback>: Remove.
1887         <m_error>: New member.
1888         (gdbpy_exception_to_string): Don't declare.
1889         * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
1890         * python/py-value.c (convert_value_from_python): Use
1891         gdbpy_err_fetch.
1892         * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
1893         gdbpy_exception_to_string.
1894         (gdbpy_handle_exception): Use gdbpy_err_fetch.
1895         * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1896         gdbpy_err_fetch.
1897
1898 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
1899
1900         * linux-nat.c (delete_lwp_cleanup): Delete.
1901         (struct lwp_deleter): New struct.
1902         (lwp_info_up): New typedef.
1903         (linux_nat_target::follow_fork): Delete cleanup, and make use of
1904         lwp_info_up.
1905
1906 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
1907
1908         * linux-fork.c (class scoped_switch_fork_info): New class.
1909         (inferior_call_waitpid): Update to use scoped_switch_fork_info.
1910
1911 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
1912
1913         * valops.c (find_overload_match): Remove use of null_cleanup, and
1914         calls to do_cleanups.
1915
1916 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
1917
1918         * compile/compile-cplus-types.c
1919         (compile_cplus_instance::decl_name): Handle changes to
1920         cp_func_name.
1921         * cp-support.c (cp_func_name): Update header comment, update
1922         return type.
1923         * cp-support.h (cp_func_name): Update return type in declaration.
1924         * valops.c (find_overload_match): Move temp_func local to top
1925         level of function and change its type.  Use temp_func to hold and
1926         delete temporary string obtained from cp_func_name.
1927
1928 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
1929
1930         * remote.c (remote_target::remote_check_symbols): Convert `msg` to
1931         gdb::char_vector, remove cleanup, and update uses of `msg`.
1932
1933 2019-01-03  Jim Wilson  <jimw@sifive.com>
1934
1935         * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
1936
1937 2019-01-02  Tom Tromey  <tom@tromey.com>
1938
1939         * xml-tdesc.c (xml_cache): Hold a target_desc_up.
1940         (tdesc_parse_xml): Remove cleanups.
1941         * target-descriptions.h (make_cleanup_free_target_description):
1942         Don't declare.
1943         (target_desc_deleter): New struct.
1944         (target_desc_up): New typedef.
1945         * target-descriptions.c (target_desc_deleter::operator()): Rename
1946         from free_target_description.
1947         (make_cleanup_free_target_description): Remove.
1948
1949 2019-01-02  Tom Tromey  <tom@tromey.com>
1950
1951         * linespec.c (struct linespec_parser): Rename from ls_parser.  Add
1952         constructor, destructor.
1953         (linespec_parser): Remove typedef.
1954         (~linespec_parser): Rename from linespec_parser_delete.
1955         (linespec_lex_to_end, linespec_complete_label)
1956         (linespec_complete): Update.
1957         (decode_line_full): Remove cleanups.
1958         (decode_line_1): Update.
1959
1960 2019-01-02  Tom Tromey  <tom@tromey.com>
1961
1962         * python/python-internal.h (inferior_to_inferior_object): Change
1963         return type.
1964         * python/py-exitedevent.c (create_exited_event_object): Update.
1965         * python/py-inferior.c (inferior_to_inferior_object): Return
1966         gdbpy_ref.
1967         (python_new_inferior, python_inferior_deleted)
1968         (thread_to_thread_object, delete_thread_object)
1969         (build_inferior_list, gdbpy_selected_inferior): Update.
1970         * python/py-infthread.c (create_thread_object): Update.  Also fail
1971         if inferior_to_inferior_object fails.
1972
1973 2019-01-02  Simon Marchi  <simon.marchi@ericsson.com>
1974
1975         * inferior.h (class inferior) <displaced_step_state>: New field.
1976         * infrun.h (struct displaced_step_state): Move here from
1977         infrun.c.  Initialize fields, add constructor.
1978         <inf>: Remove field.
1979         <reset>: New method.
1980         * infrun.c (struct displaced_step_inferior_state): Move to
1981         infrun.h.
1982         (displaced_step_inferior_states): Remove.
1983         (get_displaced_stepping_state): Adust.
1984         (displaced_step_in_progress_any_inferior): Adjust.
1985         (displaced_step_in_progress_thread): Adjust.
1986         (displaced_step_in_progress): Adjust.
1987         (add_displaced_stepping_state): Remove.
1988         (get_displaced_step_closure_by_addr): Adjust.
1989         (remove_displaced_stepping_state): Remove.
1990         (infrun_inferior_exit): Call displaced_step_state.reset.
1991         (use_displaced_stepping): Don't check for NULL.
1992         (displaced_step_prepare_throw): Call
1993         get_displaced_stepping_state.
1994         (displaced_step_fixup): Don't check for NULL.
1995         (prepare_for_detach): Don't check for NULL.
1996
1997 2019-01-02  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1998
1999         * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
2000          in case of call that did not complete.
2001
2002 2019-01-02  Andrey Utkin  <autkin@undo.io>
2003
2004         * symfile.c (find_separate_debug_file): Fix search of debug files for
2005         remote debuggee.
2006
2007 2019-01-02  Tom Tromey  <tom@tromey.com>
2008
2009         * python/py-inferior.c (gdbpy_initialize_inferior): Fix
2010         indentation.
2011         * python/py-frame.c (frapy_older): Remove cast.
2012         (frapy_newer): Likewise.
2013         * python/py-breakpoint.c (local_setattro): Remove cast.
2014         * python/py-arch.c (archpy_name): Remove local variable.
2015         * python/py-type.c (gdbpy_lookup_type): Remove cast.
2016
2017 2019-01-02  Joel Brobecker  <brobecker@adacore.com>
2018
2019         * unittests/basic_string_view/element_access/char/empty.cc:
2020         Fix year range in copyright header.
2021
2022 2019-01-01  Andrew Burgess  <andrew.burgess@embecosm.com>
2023
2024         * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
2025         Delete.
2026         <operator==>: Update with for removed field.
2027         <hash>: Likewise.
2028         * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
2029         <isa_features>: ...this.
2030         <abi_features>: New field.
2031         (riscv_isa_flen): Update comment.
2032         (riscv_abi_xlen): New declaration.
2033         (riscv_abi_flen): New declaration.
2034         * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
2035         isa_features.
2036         (riscv_abi_xlen): New function.
2037         (riscv_isa_flen): Update to get answer from isa_features.
2038         (riscv_abi_flen): New function.
2039         (riscv_has_fp_abi): Update to get answer from abi_features.
2040         (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
2041         xlen and flen.
2042         (riscv_call_info) <xlen, flen>: Update comment.
2043         (riscv_call_arg_struct): Remove invalid assertions
2044         (riscv_features_from_gdbarch_info): Update now hw_float_abi field
2045         is removed.
2046         (riscv_gdbarch_init): Gather isa features and abi features
2047         separately, ensure both match on the gdbarch when reusing an old
2048         gdbarch.  Relax an error check to allow 32-bit abi float to run on
2049         a target with 64-bit float hardware.
2050
2051 2019-01-01  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2052
2053         * source.c (search_command_helper): Stop reverse search
2054         when line 1 has been searched.
2055
2056 2019-01-01  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2057
2058         * record-full.c (record_full_base_target::close): Rewrite
2059         record_full_core_buf_list free logic.
2060
2061 2019-01-01  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2062
2063         * break-catch-syscall.c (print_one_catch_syscall): xfree
2064         the last text.
2065
2066 2019-01-01  Joel Brobecker  <brobecker@adacore.com>
2067
2068         * top.c (print_gdb_version): Update Copyright year in version
2069         message.
2070
2071 2019-01-01  Joel Brobecker  <brobecker@adacore.com>
2072
2073         Update copyright year range in all GDB files.
2074
2075 2019-01-01, 19  Joel Brobecker  <brobecker@adacore.com>
2076
2077         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2078
2079 For older changes see ChangeLog-2018.
2080 \f
2081 Local Variables:
2082 mode: change-log
2083 left-margin: 8
2084 fill-column: 74
2085 version-control: never
2086 coding: utf-8
2087 End:
2088