Fix TARGET_CHAR_BIT/HOST_CHAR_BIT confusion in gmp-utils.c
[binutils-gdb.git] / gdb / ChangeLog
blobfd9599205642d2da4222294fd8ef60194e17753c
1 2020-12-05  Joel Brobecker  <brobecker@adacore.com>
3         * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
4         TARGET_CHAR_BIT.
5         (gdb_mpz::write): Likewise.
7 2020-12-04  Simon Marchi  <simon.marchi@efficios.com>
9         * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
10         number of displaced step buffers.
12 2020-12-04  Simon Marchi  <simon.marchi@efficios.com>
14         * displaced-stepping.h (struct displaced_step_buffer): Rename
15         to...
16         (struct displaced_step_buffers): ... this.
17         <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
18         <struct displaced_step_buffer>: New inner class.
19         <m_buffers>: New.
20         * displaced-stepping.c (displaced_step_buffer::prepare): Rename
21         to...
22         (displaced_step_buffers::prepare): ... this, adjust for multiple
23         buffers.
24         (displaced_step_buffer::finish):  Rename to...
25         (displaced_step_buffers::finish): ... this, adjust for multiple
26         buffers.
27         (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
28         (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
29         adjust for multiple buffers.
30         (displaced_step_buffer::restore_in_ptid): Rename to...
31         (displaced_step_buffers::restore_in_ptid): ... this, adjust for
32         multiple buffers.
33         * linux-tdep.h (linux_init_abi): Change supports_displaced_step
34         for num_disp_step_buffers.
35         * linux-tdep.c (struct linux_gdbarch_data)
36         <num_disp_step_buffers>: New field.
37         (struct linux_info) <disp_step_buf>: Rename to...
38         <disp_step_bufs>: ... this, change type to
39         displaced_step_buffers.
40         (linux_displaced_step_prepare): Use
41         linux_gdbarch_data::num_disp_step_buffers to create that number
42         of buffers.
43         (linux_displaced_step_finish): Adjust.
44         (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
45         (linux_displaced_step_restore_all_in_ptid): Adjust.
46         (linux_init_abi): Change supports_displaced_step parameter for
47         num_disp_step_buffers, save it in linux_gdbarch_data.
48         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
49         * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
50         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
51         supports_displaced_step parameter for num_disp_step_buffers.
52         (amd64_linux_init_abi): Adjust.
53         (amd64_x32_linux_init_abi): Adjust.
54         * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
55         * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
56         * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
57         * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
58         * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
59         * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
60         * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
61         * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
62         * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
63         * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
64         * m68k-linux-tdep.c (m68k_linux_init_abi):
65         * microblaze-linux-tdep.c (microblaze_linux_init_abi):
66         * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
67         * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
68         * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
69         * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
70         * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
71         * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
72         * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
73         Change type to displaced_step_buffers.
74         * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
75         * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
76         * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
77         * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
78         * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
79         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
80         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
82 2020-12-04  Simon Marchi  <simon.marchi@efficios.com>
84         * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
85         obkstack.
86         (_initialize_linux_tdep): Register pre-init gdb data instead of
87         post-init.
89 2020-12-04  Simon Marchi  <simon.marchi@efficios.com>
91         * displaced-stepping.h (struct
92         displaced_step_copy_insn_closure): Adjust comments.
93         (struct displaced_step_inferior_state) <step_thread,
94         step_gdbarch, step_closure, step_original, step_copy,
95         step_saved_copy>: Remove fields.
96         (struct displaced_step_thread_state): New.
97         (struct displaced_step_buffer): New.
98         * displaced-stepping.c (displaced_step_buffer::prepare): New.
99         (write_memory_ptid): Move from infrun.c.
100         (displaced_step_instruction_executed_successfully): New,
101         factored out of displaced_step_finish.
102         (displaced_step_buffer::finish): New.
103         (displaced_step_buffer::copy_insn_closure_by_addr): New.
104         (displaced_step_buffer::restore_in_ptid): New.
105         * gdbarch.sh (displaced_step_location): Remove.
106         (displaced_step_prepare, displaced_step_finish,
107         displaced_step_copy_insn_closure_by_addr,
108         displaced_step_restore_all_in_ptid): New.
109         * gdbarch.c: Re-generate.
110         * gdbarch.h: Re-generate.
111         * gdbthread.h (class thread_info) <displaced_step_state>: New
112         field.
113         (thread_step_over_chain_remove): New declaration.
114         (thread_step_over_chain_next): New declaration.
115         (thread_step_over_chain_length): New declaration.
116         * thread.c (thread_step_over_chain_remove): Make non-static.
117         (thread_step_over_chain_next): New.
118         (global_thread_step_over_chain_next): Use
119         thread_step_over_chain_next.
120         (thread_step_over_chain_length): New.
121         (global_thread_step_over_chain_enqueue): Add debug print.
122         (global_thread_step_over_chain_remove): Add debug print.
123         * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
124         Remove.
125         * infrun.c (get_displaced_stepping_state): New.
126         (displaced_step_in_progress_any_inferior): Remove.
127         (displaced_step_in_progress_thread): Adjust.
128         (displaced_step_in_progress): Adjust.
129         (displaced_step_in_progress_any_thread): New.
130         (get_displaced_step_copy_insn_closure_by_addr): Remove.
131         (gdbarch_supports_displaced_stepping): Use
132         gdbarch_displaced_step_prepare_p.
133         (displaced_step_reset): Change parameter from inferior to
134         thread.
135         (displaced_step_prepare_throw): Implement using
136         gdbarch_displaced_step_prepare.
137         (write_memory_ptid): Move to displaced-step.c.
138         (displaced_step_restore): Remove.
139         (displaced_step_finish): Implement using
140         gdbarch_displaced_step_finish.
141         (start_step_over): Allow starting more than one displaced step.
142         (prepare_for_detach): Handle possibly multiple threads doing
143         displaced steps.
144         (handle_inferior_event): Handle possibility that fork event
145         happens while another thread displaced steps.
146         * linux-tdep.h (linux_displaced_step_prepare): New.
147         (linux_displaced_step_finish): New.
148         (linux_displaced_step_copy_insn_closure_by_addr): New.
149         (linux_displaced_step_restore_all_in_ptid): New.
150         (linux_init_abi): Add supports_displaced_step parameter.
151         * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
152         (linux_displaced_step_prepare): New.
153         (linux_displaced_step_finish): New.
154         (linux_displaced_step_copy_insn_closure_by_addr): New.
155         (linux_displaced_step_restore_all_in_ptid): New.
156         (linux_init_abi): Add supports_displaced_step parameter,
157         register displaced step methods if true.
158         (_initialize_linux_tdep): Register inferior_execd observer.
159         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
160         supports_displaced_step parameter, adjust call to
161         linux_init_abi.  Remove call to
162         set_gdbarch_displaced_step_location.
163         (amd64_linux_init_abi): Adjust call to
164         amd64_linux_init_abi_common.
165         (amd64_x32_linux_init_abi): Likewise.
166         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
167         linux_init_abi.  Remove call to
168         set_gdbarch_displaced_step_location.
169         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
170         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
171         * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
172         linux_init_abi.
173         * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
174         * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
175         * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
176         * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
177         * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
178         * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
179         * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
180         * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
181         * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
182         * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
183         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
184         * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
185         * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
186         * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
187         * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
188         * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
189         * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
190         * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
191         * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
192         * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
193         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
194         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
195         * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
196         linux_init_abi.  Remove call to
197         set_gdbarch_displaced_step_location.
198         * arm-tdep.c (arm_pc_is_thumb): Call
199         gdbarch_displaced_step_copy_insn_closure_by_addr instead of
200         get_displaced_step_copy_insn_closure_by_addr.
201         * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
202         clear gdbarch methods.
203         * rs6000-tdep.c (struct ppc_inferior_data): New structure.
204         (get_ppc_per_inferior): New function.
205         (ppc_displaced_step_prepare): New function.
206         (ppc_displaced_step_finish): New function.
207         (ppc_displaced_step_restore_all_in_ptid): New function.
208         (rs6000_gdbarch_init): Register new gdbarch methods.
209         * s390-tdep.c (s390_gdbarch_init): Don't call
210         set_gdbarch_displaced_step_location, set new gdbarch methods.
212 2020-12-04  Simon Marchi  <simon.marchi@efficios.com>
214         * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
215         * aarch64-tdep.h: Include displaced-stepping.h.
216         * displaced-stepping.h (struct displaced_step_copy_insn_closure):
217         Move here.
218         (displaced_step_copy_insn_closure_up): Move here.
219         (struct buf_displaced_step_copy_insn_closure): Move here.
220         (struct displaced_step_inferior_state): Move here.
221         (debug_displaced): Move here.
222         (displaced_debug_printf_1): Move here.
223         (displaced_debug_printf): Move here.
224         * displaced-stepping.c: New file.
225         * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
226         * gdbarch.h: Re-generate.
227         * inferior.h: Include displaced-stepping.h.
228         * infrun.h (debug_displaced): Move to displaced-stepping.h.
229         (displaced_debug_printf_1): Likewise.
230         (displaced_debug_printf): Likewise.
231         (struct displaced_step_copy_insn_closure): Likewise.
232         (displaced_step_copy_insn_closure_up): Likewise.
233         (struct buf_displaced_step_copy_insn_closure): Likewise.
234         (struct displaced_step_inferior_state): Likewise.
235         * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
236         (displaced_debug_printf_1): Likewise.
237         (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
238         Likewise.
239         (_initialize_infrun): Don't register "set/show debug displaced".
241 2020-12-04  Simon Marchi  <simon.marchi@efficios.com>
243         * linux-tdep.c (get_linux_inferior_data): Add inferior
244         parameter.
245         (linux_vsyscall_range): Pass current inferior.
247 2020-12-04  Simon Marchi  <simon.marchi@efficios.com>
249         * infrun.c (displaced_step_prepare_throw): Change return type to
250         displaced_step_prepare_status.
251         (displaced_step_prepare): Likewise.
252         (displaced_step_finish): Change return type to
253         displaced_step_finish_status.
254         (resume_1): Adjust.
255         (stop_all_threads): Adjust.
256         * displaced-stepping.h: New file.
258 2020-12-04  Simon Marchi  <simon.marchi@efficios.com>
260         * infrun.c (displaced_step_fixup): Rename to...
261         (displaced_step_finish): ... this, update all callers.
263 2020-12-04  Simon Marchi  <simon.marchi@efficios.com>
265         * infrun.h (get_displaced_step_closure_by_addr): Rename to...
266         (get_displaced_step_copy_insn_closure_by_addr): ... this.
267         Update all users.
268         (displaced_step_closure): Rename to...
269         (displaced_step_copy_insn_closure): ... this.  Update all users.
270         (displaced_step_closure_up): Rename to...
271         (displaced_step_copy_insn_closure_up). ... this.  Update all
272         users.
273         (buf_displaced_step_closure): Rename to...
274         (buf_displaced_step_copy_insn_closure): ... this.  Update all
275         users.
276         * infrun.c (get_displaced_step_closure_by_addr): Rename to...
277         (get_displaced_step_copy_insn_closure_by_addr): ... this.
278         Update all users.
279         * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
280         (aarch64_displaced_step_copy_insn_closure): ... this.  Update
281         all users.
282         * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
283         (amd64_displaced_step_copy_insn_closure): ... this.  Update all
284         users.
285         * arm-tdep.h (arm_displaced_step_closure): Rename to...
286         (arm_displaced_step_copy_insn_closure): ... this.  Update all
287         users.
288         * i386-tdep.h (i386_displaced_step_closure): Rename to...
289         (i386_displaced_step_copy_insn_closure): ... this.  Update all
290         users.
291         * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
292         (ppc_displaced_step_copy_insn_closure): ... this.  Update all
293         users.
294         * s390-tdep.c (s390_displaced_step_closure): Rename to...
295         (s390_displaced_step_copy_insn_closure): ... this.  Update all
296         users.
297         * gdbarch.h: Re-generate.
298         * gdbarch.c: Re-generate.
300 2020-12-04  Simon Marchi  <simon.marchi@efficios.com>
302         * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
303         (global_thread_step_over_chain_enqueue): ... this.  Update all
304         users.
305         (thread_step_over_chain_remove): Rename to...
306         (global_thread_step_over_chain_remove): ... this.  Update all
307         users.
308         (thread_step_over_chain_next): Rename to...
309         (global_thread_step_over_chain_next): ... this.  Update all
310         users.
311         * infrun.h (step_over_queue_head): Rename to...
312         (global_thread_step_over_chain_head): ... this.  Update all
313         users.
314         * infrun.c (step_over_queue_head): Rename to...
315         (global_thread_step_over_chain_head): ... this.  Update all
316         users.
317         * thread.c (step_over_chain_remove): Rename to...
318         (thread_step_over_chain_remove): ... this.  Update all users.
319         (thread_step_over_chain_next): Rename to...
320         (global_thread_step_over_chain_next): ... this.  Update all
321         users.
322         (thread_step_over_chain_enqueue): Rename to...
323         (global_thread_step_over_chain_enqueue): ... this.  Update all
324         users.
325         (thread_step_over_chain_remove): Rename to...
326         (global_thread_step_over_chain_remove): ... this.  Update all
327         users.
329 2020-12-04  Simon Marchi  <simon.marchi@polymtl.ca>
331         * infrun.c (get_displaced_stepping_state): Remove, change
332         callers to access the field directly.
334 2020-12-04  Simon Marchi  <simon.marchi@polymtl.ca>
336         * infrun.c (handle_inferior_event): Restore displaced step
337         buffer bytes in child process when handling fork, even if fork
338         happened in another thread than the displaced-stepping one.
340 2020-12-04  Simon Marchi  <simon.marchi@efficios.com>
342         * infrun.c (infrun_inferior_execd): New function.
343         (_initialize_infrun): Attach inferior_execd observer.
345 2020-12-04  Simon Marchi  <simon.marchi@efficios.com>
347         * observable.h (inferior_execd): Declare new observable.
348         * observable.c (inferior_execd): Declare new observable.
349         * infrun.c (follow_exec): Notify inferior_execd observer.
350         * jit.c (jit_inferior_created_hook): Make static.
351         (_initialize_jit): Register inferior_execd observer.
352         * jit.h (jit_inferior_created_hook): Remove declaration.
353         * solib.c (_initialize_solib): Register inferior_execd observer.
355 2020-12-04  Tom de Vries  <tdevries@suse.de>
357         PR gdb/27003
358         * completer.c (completion_tracker::build_completion_result): Don't
359         access match_list[0][-1].
361 2020-12-04  Tom Tromey  <tromey@adacore.com>
363         * linespec.c (struct linespec_token): Rename; remove typedef.
364         * guile/scm-block.c (struct block_smob): Remove typedef.
365         (struct block_syms_progress_smob): Likewise.
366         * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
367         * guile/scm-symtab.c (symtab_smob): Remove typedef.
368         (struct sal_smob): Remove typedef.
369         * guile/scm-param.c (struct param_smob): Remove typedef.
370         * guile/scm-progspace.c (struct pspace_smob): Rename.
371         * guile/scm-objfile.c (struct objfile_smob): Rename.
372         * guile/scm-iterator.c (struct iterator_smob): Rename.
373         * guile/scm-frame.c (struct frame_smob): Rename.
374         * guile/scm-arch.c (struct arch_smob): Rename.
375         * guile/scm-type.c (struct field_smob): Remove typedef.
376         (struct type_smob): Rename.
377         * guile/scm-cmd.c (struct command_smob): Remove typedef.
378         * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
379         * guile/scm-value.c (struct value_smob): Remove typedef.
380         * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
381         * guile/guile-internal.h (struct scheme_variable)
382         (struct scheme_function, struct scheme_integer_constant)
383         (struct gdb_smob, struct chained_gdb_smob)
384         (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
385         (objfile_smob, pspace_smob, type_smob): Remove typedef.
386         * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
387         (struct pretty_printer_worker_smob): Remove typedef.
388         * guile/scm-exception.c (struct exception_smob): Remove typedef.
389         * python/py-block.c (struct block_object): Remove typedef.
390         (block_syms_iterator_object): Update.
391         (set_block): Update.
392         (block_syms_iterator_object): Remove typedef.
393         * python/py-inferior.c (struct membuf_object): Remove typedef.
394         * python/py-symtab.c (struct symtab_object): Remove typedef.
395         (set_symtab): Update.
396         (sal_object): Remove typedef.
397         (set_sal): Update.
398         * python/py-frame.c (frame_object): Remove typedef.
399         * python/py-record-btrace.c (struct btpy_list_object): Remove
400         typedef.
401         * python/py-arch.c (struct arch_object): Remove typedef.
402         * python/py-linetable.c (struct linetable_entry_object)
403         (linetable_object, struct ltpy_iterator_object): Remove typedef.
404         * python/py-events.h (eventregistry_object): Remove typedef.
405         (struct events_object): Remove typedef.
406         * python/python-internal.h (gdbpy_breakpoint_object): Remove
407         typedef.
408         (thread_object): Remove typedef.
409         * python/py-progspace.c (pspace_object): Remove typedef.
410         * python/py-value.c (struct value_object): Remove typedef.
411         * python/py-record.h (recpy_record_object): Remove typedef.
412         (struct recpy_element_object): Remove typedef.
413         * python/py-lazy-string.c (lazy_string_object): Remove typedef.
414         * python/py-objfile.c (objfile_object): Remove typedef.
415         * python/py-cmd.c (struct cmdpy_object): Remove typedef.
416         * python/py-type.c (type_object): Remove typedef.
417         (typy_iterator_object): Update.
418         (set_type): Update.
419         (field_object): Remove typedef.
420         (typy_iterator_object): Remove typedef.
421         * python/py-registers.c (register_descriptor_iterator_object):
422         Remove typedef.
423         (struct register_descriptor_object)
424         (struct reggroup_iterator_object, struct reggroup_object): Remove
425         typedef.
426         * python/py-record.c (recpy_gap_object): Remove typedef.
427         * python/py-symbol.c (symbol_object): Remove typedef.
428         (set_symbol): Update.
429         * python/py-event.h (event_object): Remove typedef.
430         * python/py-param.c (parmpy_object): Remove typedef.
431         * python/py-instruction.c (struct py_insn_obj): Remove typedef.
432         * python/py-unwind.c (struct pending_frame_object): Remove typedef.
433         (unwind_info_object, struct cached_frame_info): Likewise.
435 2020-12-04  Tom Tromey  <tromey@adacore.com>
437         * value.c (value_internal_function_name): Make return type const.
438         * value.h (value_internal_function_name): Make return type const.
440 2020-12-04  Luis Machado  <luis.machado@linaro.org>
442         * aarch64-tdep.c (submask, bit, bits): Remove.
443         * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
444         (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
445         (aarch64_decode_cb, aarch64_decode_tb)
446         (aarch64_decode_ldr_literal): Use sbits to extract a signed
447         immediate.
448         * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
450 2020-12-04  Tom de Vries  <tdevries@suse.de>
452         PR tdep/27007
453         * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
455 2020-12-03  Simon Marchi  <simon.marchi@polymtl.ca>
457         PR gdb/26876
458         * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
459         dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
461 2020-12-02  Andrew Burgess  <andrew.burgess@embecosm.com>
463         * arch/riscv.c: Include 'rv32e-xregs.c'.
464         (riscv_create_target_description): Update to handle rv32e.
465         * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
466         member variable.
467         <operator==>: Update to account for new field.
468         <hash>: Likewise.
469         * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
470         * features/riscv/rv32e-xregs.c: Generated.
471         * features/riscv/rv32e-xregs.xml: New file.
472         * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
473         file.
474         (riscv_debug_infcall): Likewise.
475         (riscv_debug_unwinder): Likewise.
476         (riscv_debug_gdbarch): Likewise.
477         (enum riscv_register_required_status): Delete.
478         (struct riscv_register_feature): Add constructor, delete default
479         constructor, copy, and assign constructors.
480         (struct riscv_register_feature::register_info) <required>: Delete.
481         <check>: Update comment and arguments.
482         (struct riscv_register_feature) <name>: Change to member function.
483         <prefer_first_name>: Delete.
484         <tdesc_feature>: New member function.
485         <registers>: Rename to...
486         <m_registers>: ...this.
487         <m_feature_name>: New member variable.
488         (riscv_register_feature::register_info::check): Update arguments.
489         (riscv_xreg_feature): Rewrite as class, create a single static
490         instance of the class.
491         (riscv_freg_feature): Likewise.
492         (riscv_virtual_feature): Likewise.
493         (riscv_csr_feature): Likewise.
494         (riscv_create_csr_aliases): Has become a member function inside
495         riscv_csr_feature class.
496         (riscv_abi_embedded): New function definition.
497         (riscv_register_name): Adjust to use new feature objects.
498         (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
499         and adjust available argument registers.
500         (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
501         (riscv_check_tdesc_feature): Delete.
502         (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
503         (riscv_gdbarch_init): Delete target description checking code, and
504         instead call to the new feature objects to perform the checks.
505         Reorder handling of no abi information case, allows small code
506         simplification.
507         (_initialize_riscv_tdep): Remove call, this is now done in the
508         riscv_csr_feature constructor.
509         * riscv-tdep.h (riscv_abi_embedded): Declare.
511 2020-12-02  Andrew Burgess  <andrew.burgess@embecosm.com>
513         * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
514         DECLARE_CSR_ALIAS.
516 2020-12-02  Andrew Burgess  <andrew.burgess@embecosm.com>
518         * riscv-tdep.c (riscv_is_unknown_csr): New function,
519         implementation moved from riscv_register_reggroup_p.
520         (riscv_register_reggroup_p): Update group handling for unknown
521         CSRs.
523 2020-12-01  Sergio Durigan Junior  <sergiodj@sergiodj.net>
525         * dwarf2/read.c (dwz_search_other_debugdirs): New function.
526         (dwarf2_get_dwz_file): Convert 'filename' to a
527         std::string.  Use dwz_search_other_debugdirs to search for DWZ
528         files in the debug-file-directories provided by the user as well.
530 2020-12-01  Tom Tromey  <tom@tromey.com>
532         * parse.c (expr_builder::expr_builder): Initialize expout.
533         (expr_builder::release): Use expression::resize.
534         (expression::expression, expression::~expression)
535         (expression::resize): New methods.
536         (write_exp_elt): Use expression::resize.
537         (prefixify_expression): Update.
538         (increase_expout_size): Use expression::resize.
539         * expression.h (struct expression): Add constructor, destructor.
540         <resize>: New method.
541         (expression_up): Change type.
543 2020-12-01  Rogerio A. Cardoso  <rcardoso@linux.ibm.com>
544         * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
545         (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
546         set region.
548 2020-11-30  Tom de Vries  <tdevries@suse.de>
550         PR symtab/26905
551         * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
552         is_reference parameter.
553         (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
555 2020-11-30  Tom Tromey  <tom@tromey.com>
557         * rust-lang.c (rust_op_name): Remove.
558         (exp_descriptor_rust): Update.
559         * parser-defs.h (op_name_standard): Don't declare.
560         (struct exp_descriptor) <op_name>: Remove.
561         * parse.c (exp_descriptor_standard): Update.
562         * opencl-lang.c (exp_descriptor_opencl): Update.
563         * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
564         * f-lang.c (op_name_f): Remove.
565         (f_language::exp_descriptor_tab): Update.
566         * expression.h (op_name): Update.
567         * expprint.c (op_name): Rewrite.
568         (op_name_standard): Remove.
569         (dump_raw_expression, dump_subexp): Update.
570         * c-lang.c (exp_descriptor_c): Update.
571         * ax-gdb.c (gen_expr): Update.
572         * ada-lang.c (ada_op_name): Remove.
573         (ada_exp_descriptor): Update.
575 2020-11-30  Tom Tromey  <tom@tromey.com>
577         * eval.c (init_array_element): Remove.
578         (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
580 2020-11-29  Hannes Domani  <ssbssa@yahoo.de>
582         PR tui/26973
583         * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
584         static locator win info.
586 2020-11-28  Alex Richardson  <Alexander.Richardson@cl.cam.ac.uk>
588         * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
589         program.
591 2020-11-27  Andrew Burgess  <andrew.burgess@embecosm.com>
593         * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
594         is always initialized.
596 2020-11-26  Rogerio Alves <rcardoso@linux.ibm.com>
597         * MAINTAINERS (Write After Approval): Add myself.
599 2020-11-26  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
601         * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
602         * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
604 2020-11-25  Tom Tromey  <tom@tromey.com>
606         * eval.c (evaluate_subexp_standard): Remove unnecessary
607         variables.
609 2020-11-25  Tom Tromey  <tom@tromey.com>
611         * d-lang.c: Include parser-defs.h.
612         * rust-lang.c: Include parser-defs.h.
613         * c-lang.h: Do not include parser-defs.h.
615 2020-11-24  Simon Marchi  <simon.marchi@polymtl.ca>
617         * regcache.h (struct cached_reg): Remove typedef.
619 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
621         * README: Fix the URL of the MPFR library.
623 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
625         * README: Document the --with-libgmp-prefix configure option.
627 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
629         * NEWS: Add entry documenting support for DWARF-based fixed
630         point types.
632 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
634         * NEWS: Document that building GDB now requires GMP.
636 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
638         * typeprint.c (print_type_scalar): Add handling of
639         TYPE_CODE_FIXED_POINT.
641 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
643         * valarith.c (fixed_point_binop): Replace the
644         INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda.  Update all
645         users accordingly.
647 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
649         * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
650         replacing fixed_point_scaling_factor.  All callers updated
651         throughout this project.
652         (fixed_point_scaling_factor): Delete declaration.
653         * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
654         fixed_point_scaling_factor.  Adjust implementation accordingly.
656 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
658         * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
659         replacing the fixed_point_type_base_type function. All callers
660         updated throughout this project.
661         (fixed_point_type_base_type): Remove declaration.
662         * gdbtypes.c (type::fixed_point_type_base_type): Replaces
663         fixed_point_type_base_type.  Adjust implementation accordingly.
665 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
667         * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
668         New methods.
669         (INIT_FIXED_POINT_SPECIFIC): Adjust.
670         (TYPE_FIXED_POINT_INFO): Delete macro.
671         (allocate_fixed_point_type_info): Change return type to void.
672         * gdbtypes.c (copy_type_recursive): Replace the use of
673         TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
674         (fixed_point_scaling_factor): Likewise.
675         (allocate_fixed_point_type_info): Change return type to void.
676         Adjust implementation accordingly.
677         * dwarf2/read.c (finish_fixed_point_type): Replace the use of
678         TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
680 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
682         * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
683         into one single gdb::array_view parameter.
684         (gdb_mpz::write): Likewise.
685         (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
686         * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
687         into one single gdb::array_view parameter.
688         Adjust implementation accordingly.
689         (gdb_mpz::write): Likewise.
690         (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
691         * unittests/gmp-utils-selftests.c: Adapt following changes above.
692         * valarith.c, valops.c, valprint.c, value.c: Likewise.
694 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
696         * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
697         Change return type to std::string. Update all callers.
698         * gmp-utils.c (gmp_string_printf): Likewise.
700 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
702         * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
703         instead of mpq_set_ui to initialize our GMP rational.
705 2020-11-23  Tom de Vries  <tdevries@suse.de>
707         * debuginfod-support.c (debuginfod_source_query)
708         (debuginfod_debuginfo_query): Only set DESTNAME if successful.
710 2020-11-21  Tom Tromey  <tom@tromey.com>
712         * breakpoint.c (watchpoint_exp_is_const): Return bool.
714 2020-11-20  Simon Marchi  <simon.marchi@polymtl.ca>
716         * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
717         Pass 2.0 to pow.
718         (gdb_mpz_write_all_from_small): Likewise.
720 2020-11-20  Simon Marchi  <simon.marchi@polymtl.ca>
722         * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
723         of abs.
725 2020-11-20  Nick Alcock  <nick.alcock@oracle.com>
727         * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
728         ctf_arc_open_by_name.
730 2020-11-20  Nick Alcock  <nick.alcock@oracle.com>
732         * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
733         (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
735 2020-11-20  Pedro Alves  <pedro@palves.net>
737         * language.c (language_arch_info::lookup_primitive_type): Use
738         gdb::function_view instead of gdb::function.
739         (template language_lookup_primitive_type): Rename to ...
740         (language_lookup_primitive_type_1): ... this, and make static.
741         (language_lookup_primitive_type(const struct language_defn *,
742         struct gdbarch *, const char *): Make non-template.
743         (language_lookup_primitive_type(const struct language_defn *,
744         struct gdbarch *, std::function<bool (struct type *)>): Make
745         non-template and use gdb::function_view.
746         * language.h (language_arch_info::lookup_primitive_type): Use
747         gdb::function_view instead of std::function.
748         (language_lookup_primitive_type): No longer template.
749         * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
750         lambda instead of a std::function.
752 2020-11-19  Andreas Arnez  <arnez@linux.ibm.com>
754         PR tdep/26916
755         * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
756         and STOCFH.
758 2020-11-19  Simon Marchi  <simon.marchi@polymtl.ca>
760         * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
762 2020-11-19  Simon Marchi  <simon.marchi@polymtl.ca>
764         * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
765         in `loop_cb` parameter.
766         * gdbarch.c: Re-generate.
767         * gdbarch.h: Re-generate.
768         * arch-utils.c (default_read_core_file_mappings): Remove `other`
769         parameter.
770         * arch-utils.h (default_read_core_file_mappings): Likewise.
771         * corelow.c (core_target::build_file_mappings): Likewise.
772         * linux-tdep.c (linux_read_core_file_mappings): Likewise.
773         (linux_core_info_proc_mappings): Likewise.
775 2020-11-19  Andrew Burgess  <andrew.burgess@embecosm.com>
777         * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
778         * NEWS: Mention new options.
779         * f-array-walker.h: New file.
780         * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
781         (repack_array_slices): New static global.
782         (show_repack_array_slices): New function.
783         (fortran_array_slicing_debug): New static global.
784         (show_fortran_array_slicing_debug): New function.
785         (value_f90_subarray): Delete.
786         (skip_undetermined_arglist): Delete.
787         (class fortran_array_repacker_base_impl): New class.
788         (class fortran_lazy_array_repacker_impl): New class.
789         (class fortran_array_repacker_impl): New class.
790         (fortran_value_subarray): Complete rewrite.
791         (set_fortran_list): New static global.
792         (show_fortran_list): Likewise.
793         (_initialize_f_language): Register new commands.
794         (fortran_adjust_dynamic_array_base_address_hack): New function.
795         * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
796         Declare.
797         * f-valprint.c: Include 'f-array-walker.h'.
798         (class fortran_array_printer_impl): New class.
799         (f77_print_array_1): Delete.
800         (f77_print_array): Delete.
801         (fortran_print_array): New.
802         (f_value_print_inner): Update to call fortran_print_array.
803         * gdbtypes.c: Include 'f-lang.h'.
804         (resolve_dynamic_type_internal): Call
805         fortran_adjust_dynamic_array_base_address_hack.
807 2020-11-19  Andrew Burgess  <andrew.burgess@embecosm.com>
809         * breakpoint.c (struct watch_options): New struct.
810         (watch_option_defs): New static global.
811         (make_watch_options_def_group): New function.
812         (watch_maybe_just_location): Convert option parsing.
813         (watch_command_completer): New function.
814         (_initialize_breakpoint): Build help text using options mechanism.
816 2020-11-19  Andrew Burgess  <andrew.burgess@embecosm.com>
818         * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
819         (watch_command_1): Update parameter types.  Convert locals to
820         bool.
821         (watch_command_wrapper): Change parameter type.
822         (watch_maybe_just_location): Change locals to bool.
823         (rwatch_command_wrapper): Update parameter type.
824         (awatch_command_wrapper): Update parameter type.
825         * breakpoint.h (watch_command_wrapper): Change parameter type.
826         (rwatch_command_wrapper): Update parameter type.
827         (awatch_command_wrapper): Update parameter type.
828         * eval.c (fetch_subexp_value): Change parameter type.
829         * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
830         'false' not '0'.
831         * value.h (fetch_subexp_value): Change parameter type in
832         declaration.
834 2020-11-19  Andrew Burgess  <andrew.burgess@embecosm.com>
836         * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
837         skip_spaces.
839 2020-11-18  Keith Seitz  <keiths@redhat.com>
841         * linux-tdep.c (dump_note_entry_p): Return true instead of
842         checking `filename'.
844 2020-11-18  Tom de Vries  <tdevries@suse.de>
846         * debuginfod-support.c (debuginfod_source_query)
847         (debuginfod_debuginfo_query): Also do early exit if
848         "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
850 2020-11-18  Tom de Vries  <tdevries@suse.de>
852         * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
853         warning.
855 2020-11-17  Simon Marchi  <simon.marchi@polymtl.ca>
857         * gdbtypes.h (get_array_bounds): Return bool, adjust some
858         callers.  Move doc here.
859         * gdbtypes.c (get_array_bounds): Return bool
861 2020-11-17  Andrew Burgess  <andrew.burgess@embecosm.com>
863         * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
864         assert.
865         * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
866         * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
867         case to the default.
869 2020-11-17  Andrew Burgess  <andrew.burgess@embecosm.com>
871         * printcmd.c: Include 'safe-ctype.c'.
872         (skip_over_slash_fmt): New function.
873         (print_command_completer): Call skip_over_slash_fmt.
874         (display_and_x_command_completer): New function.
875         (_initialize_printcmd): Add command completion for 'x' and
876         'display'.
878 2020-11-16  Pedro Alves  <pedro@palves.net>
880         * frame.c (get_prev_frame): Move get_frame_id call from here ...
881         (get_prev_frame_always_1): ... to here.
882         * inline-frame.c (inline_frame_this_id): Mention
883         get_prev_frame_always_1 in comment.
885 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
887         * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
888         handling.
889         (value_less): Add fixed-point handling.
891 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
893         * eval.c (binop_promote): Add fixed-point type handling.
894         * valarith.c (fixed_point_binop): New function.
895         (scalar_binop): Add fixed-point type handling.
896         (value_neg): Add fixed-point type handling.
897         * valops.c (value_cast_to_fixed_point): New function.
898         (value_cast): Add fixed-point type handling.
900 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
902         * ada-typeprint.c (ada_print_type): Add handing of fixed-point
903         range types.
904         * c-typeprint.c (c_type_print_varspec_prefix)
905         (c_type_print_varspec_suffix, c_type_print_base_1): Add
906         TYPE_CODE_FIXED_POINT handling.
907         * p-typeprint.c (pascal_type_print_varspec_prefix)
908         (pascal_type_print_varspec_suffix): Likewise.
909         * typeprint.c (print_type_fixed_point): New function.
910         * typeprint.h (print_type_fixed_point): Add declaration.
912 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
914         * printcmd.c (print_scalar_formatted): Add fixed-point type
915         handling when options->format is set.
917 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
919         * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
920         * dwarf2/read.c (get_dwarf2_rational_constant)
921         (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
922         (has_zero_over_zero_small_attribute): New functions.
923         read_base_type, set_die_type): Add fixed-point type handling.
924         * gdb-gdb.py.in: Add fixed-point type handling.
925         * gdbtypes.c: #include "gmp-utils.h".
926         (create_range_type, set_type_code): Add fixed-point type handling.
927         (init_fixed_point_type): New function.
928         (is_integral_type, is_scalar_type): Add fixed-point type handling.
929         (print_fixed_point_type_info): New function.
930         (recursive_dump_type, copy_type_recursive): Add fixed-point type
931         handling.
932         (fixed_point_type_storage): New typedef.
933         (fixed_point_objfile_key): New static global.
934         (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
935         (fixed_point_type_base_type, fixed_point_scaling_factor): New
936         functions.
937         * gdbtypes.h: #include "gmp-utils.h".
938         (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
939         (union type_specific) <fixed_point_info>: New field.
940         (struct fixed_point_type_info): New struct.
941         (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
942         (init_fixed_point_type, is_fixed_point_type)
943         (fixed_point_type_base_type, fixed_point_scaling_factor)
944         (allocate_fixed_point_type_info): Add declarations.
945         * valprint.c (generic_val_print_fixed_point): New function.
946         (generic_value_print): Add fixed-point type handling.
947         * value.c (value_as_address, unpack_long): Add fixed-point type
948         handling.
950 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
952         * utils.h (uinteger_pow): Add declaration.
953         * utils.c (uinteger_pow): Moved here (without changes)...
954         * valarith.c (uinteger_pow): ... from here.
956 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
958         * gmp-utils.h,  gmp-utils.c: New file.
959         * unittests/gmp-utils-selftests.c: New file.
960         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
961         unittests/gmp-utils-selftests.c.
962         (COMMON_SFILES) Add gmp-utils.c.
963         (HFILES_NO_SRCDIR): Add gmp-utils.h.
965 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
967         * configure.ac: Generate an error if a usable GMP library
968         could not be found.
969         * configure: Regenerate.
971 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
973         * configure.ac: Add support for --with-libgmp-prefix.
974         * Makefile.in (LIBGMP): New variable.
975         (CLIBS): Include $(LIBGMP).
976         * configure, config.in: Regenerate
978 2020-11-14  Andrew Burgess  <andrew.burgess@embecosm.com>
980         PR cli/26879
981         * f-exp.y (COMPLETE): New token.
982         (exp): Two new rules for tab-completion.
983         (saw_name_at_eof): New static global.
984         (last_was_structop): Likewise.
985         (yylex): Set new variables, and return COMPLETE token at the end
986         of the input stream in some cases.
988 2020-11-14  Tom Tromey  <tom@tromey.com>
990         * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
992 2020-11-14  Tom Tromey  <tom@tromey.com>
994         * opencl-lang.c (opencl_component_ref): Make "comps" const.
996 2020-11-14  Simon Marchi  <simon.marchi@polymtl.ca>
998         * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1000 2020-11-13  Tom Tromey  <tom@tromey.com>
1002         * c-lang.c (convert_ucn, convert_octal, convert_hex)
1003         (convert_escape, parse_one_string): Constify.
1005 2020-11-13  Keith Seitz  <keiths@redhat.com>
1007         https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1008         * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1009         outside of ELF segments" warning for debugin
1011 2020-11-13  Keith Seitz  <keiths@redhat.com>
1013         PR gdb/23034
1014         * elfread.c (elf_symfile_segments): Output a BFD file name
1015         for the "Loadable section ... outside of ELF segments" warning.
1017 2020-11-13  Simon Marchi  <simon.marchi@polymtl.ca>
1019         PR gdb/26835
1020         * arm-tdep.c (class arm_instruction_reader): New.
1021         (target_arm_instruction_reader): New.
1022         (arm_analyze_prologue): Add instruction reader parameter and use
1023         it.  Use arm_expand_immediate.
1024         (class target_arm_instruction_reader): Adjust.
1025         (arm_skip_prologue): Adjust.
1026         (arm_expand_immediate): New.
1027         (arm_scan_prologue): Adjust.
1028         (arm_analyze_prologue_test): New.
1029         (class test_arm_instruction_reader): New.
1031 2020-11-13  Andrew Burgess  <andrew.burgess@embecosm.com>
1033         * f-lang.c (fortran_argument_convert): Add declaration.  Add
1034         header comment, taken from f-lang.h.  Make static.
1035         * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1036         (fortran_argument_convert): Delete declaration.
1038 2020-11-12  Andrew Burgess  <andrew.burgess@embecosm.com>
1040         * ada-exp.y (find_primitive_type): Make parameter const.
1041         * ada-lang.c (enum ada_primitive_types): Delete.
1042         (ada_language::language_arch_info): Update.
1043         * c-lang.c (enum c_primitive_types): Delete.
1044         (c_language_arch_info): Update.
1045         (enum cplus_primitive_types): Delete.
1046         (cplus_language::language_arch_info): Update.
1047         * d-lang.c (enum d_primitive_types): Delete.
1048         (d_language::language_arch_info): Update.
1049         * f-lang.c (enum f_primitive_types): Delete.
1050         (f_language::language_arch_info): Update.
1051         * go-lang.c (enum go_primitive_types): Delete.
1052         (go_language::language_arch_info): Update.
1053         * language.c (auto_or_unknown_language::language_arch_info):
1054         Update.
1055         (language_gdbarch_post_init): Use obstack_new, use array indexing.
1056         (language_string_char_type): Add header comment, call function in
1057         language_arch_info.
1058         (language_bool_type): Likewise
1059         (language_arch_info::bool_type): Define.
1060         (language_lookup_primitive_type_1): Delete.
1061         (language_lookup_primitive_type): Rewrite as a templated function
1062         to call function in language_arch_info, then instantiate twice.
1063         (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1064         (language_arch_info::lookup_primitive_type_and_symbol): Define.
1065         (language_arch_info::lookup_primitive_type): Define twice with
1066         different signatures.
1067         (language_arch_info::lookup_primitive_type_as_symbol): Define.
1068         (language_lookup_primitive_type_as_symbol): Rewrite to call a
1069         member function in language_arch_info.
1070         * language.h (language_arch_info): Complete rewrite.
1071         (language_lookup_primitive_type): Make templated.
1072         * m2-lang.c (enum m2_primitive_types): Delete.
1073         (m2_language::language_arch_info): Update.
1074         * opencl-lang.c (OCL_P_TYPE): Delete.
1075         (enum opencl_primitive_types): Delete.
1076         (opencl_type_data): Delete.
1077         (builtin_opencl_type): Delete.
1078         (lookup_opencl_vector_type): Update.
1079         (opencl_language::language_arch_info): Update, lots of content
1080         moved from...
1081         (build_opencl_types): ...here.  This function is now deleted.
1082         (_initialize_opencl_language): Delete.
1083         * p-lang.c (enum pascal_primitive_types): Delete.
1084         (pascal_language::language_arch_info): Update.
1085         * rust-lang.c (enum rust_primitive_types): Delete.
1086         (rust_language::language_arch_info): Update.
1088 2020-11-12  Simon Marchi  <simon.marchi@polymtl.ca>
1090         * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1091         dwarf2_queue_guard.
1093 2020-11-12  Simon Marchi  <simon.marchi@polymtl.ca>
1095         * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1096         comment.
1098 2020-11-12  Simon Marchi  <simon.marchi@polymtl.ca>
1100         * dwarf2/read.c (dwarf_read_debug_printf,
1101         dwarf_read_debug_printf_v): New macros, use throughout the file.
1103 2020-11-12  Shahab Vahedi  <shahab@synopsys.com>
1105         PR tdep/27015
1106         * arc-linux-tdep.c (collect_register): Populate "eret" by
1107         "pc" value from the regcache when asked for "pc" value.
1109 2020-11-12  Tom Tromey  <tom@tromey.com>
1111         PR rust/26799:
1112         * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1113         exist.
1115 2020-11-12  Andrew Burgess  <andrew.burgess@embecosm.com>
1117         * features/Makefile (XMLTOC): Add rx.xml.
1118         (FEATURE_XMLFILES): Remove rx.xml.
1119         (FEATURE_CFILES rule): Pass '-single-feature' flag.
1120         * features/rx.c: Regenerate.
1121         * features/rx.xml: Wrap in `target` tags, and reindent.
1122         * target-descriptions.c (struct maint_print_c_tdesc_options): New
1123         structure.
1124         (maint_print_c_tdesc_opt_def): New typedef.
1125         (maint_print_c_tdesc_opt_defs): New static global.
1126         (make_maint_print_c_tdesc_options_def_group): New function.
1127         (maint_print_c_tdesc_cmd): Make use of command line flags, only
1128         print single feature C file for target descriptions containing a
1129         single feature.
1130         (maint_print_c_tdesc_cmd_completer): New function.
1131         (_initialize_target_descriptions): Update call to register command
1132         completer, and include command line flag in help text.
1134 2020-11-11  Andrew Burgess  <andrew.burgess@embecosm.com>
1136         * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1137         numbers.
1138         * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1139         enum values.
1141 2020-11-10  Tom Tromey  <tom@tromey.com>
1143         * value.h (internalvar_name): Update.
1144         * value.c (internalvar_name): Make return type const.
1146 2020-11-10  Tom Tromey  <tom@tromey.com>
1148         * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1149         (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1150         const.
1152 2020-11-10  Tom Tromey  <tom@tromey.com>
1154         * objc-lang.h (value_nsstring): Update.
1155         * objc-lang.c (value_nsstring): Make "ptr" const.
1157 2020-11-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1159         * expprint.c (print_subexp_funcall): Increment expression position
1160         after reading argument count.
1161         * f-lang.c (print_subexp_f): Skip over opcode before calling
1162         common function.
1163         (dump_subexp_body_f): Likewise.
1165 2020-11-06  Romain Geissler  <romain.geissler@amadeus.com>
1167         PR python/26832
1168         * configure: Regenerate.
1169         * configure.ac: Check for python modules ctypes instead of
1170         itertools.
1172 2020-11-06  Pedro Alves  <pedro@palves.net>
1174         * macroexp.c (struct macro_buffer): Split in two classes.  Add
1175         uses adjusted.
1176         (struct shared_macro_buffer): New, factored out from struct
1177         macro_buffer.
1178         (struct growable_macro_buffer): New, factored out from struct
1179         macro_buffer.
1180         (set_token, get_comment, get_identifier, get_pp_number)
1181         (get_character_constant, get_string_literal, get_punctuator)
1182         (get_next_token_for_substitution): Constify parameters.
1183         (substitute_args): Constify locals.
1185 2020-11-05  Tom Tromey  <tom@tromey.com>
1187         * dwarf2/read.c (read_cutu_die_from_dwo)
1188         (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1189         (build_type_psymtabs_1): Update.
1190         * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1191         parameter.
1192         * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1193         Don't read section.  Add assert.
1195 2020-11-04  Tom Tromey  <tromey@adacore.com>
1197         * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1199 2020-11-04  Tom Tromey  <tromey@adacore.com>
1201         * ada-typeprint.c (ada_print_type): Handle __T types.
1203 2020-11-04  Tom Tromey  <tromey@adacore.com>
1205         * dwarf2/read.c (add_partial_symbol, process_die):
1206         Handle DW_TAG_array_type.
1207         (is_type_tag_for_partial): Add "lang" parameter.
1208         (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1210 2020-11-04  Tom Tromey  <tromey@adacore.com>
1212         * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1214 2020-11-04  Tom Tromey  <tromey@adacore.com>
1216         * dwarf2/read.c (read_array_type): Only apply stride to innermost
1217         array.
1219 2020-11-04  Tom Tromey  <tromey@adacore.com>
1221         * gdbtypes.c (update_static_array_size): Handle bit stride.
1223 2020-11-04  Tom Tromey  <tromey@adacore.com>
1225         * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1227 2020-11-04  Tom Tromey  <tromey@adacore.com>
1229         * ada-lang.c (ada_is_any_packed_array_type): New function.
1230         (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1232 2020-11-04  Tom Tromey  <tromey@adacore.com>
1234         * dwarf2/read.c (recognize_bound_expression)
1235         (quirk_ada_thick_pointer): New functions.
1236         (read_array_type): Call quirk_ada_thick_pointer.
1237         (set_die_type): Add "skip_data_location" parameter.
1238         (quirk_ada_thick_pointer): New function.
1239         (process_structure_scope): Call quirk_ada_thick_pointer.
1240         * ada-lang.c (ada_is_unconstrained_packed_array_type)
1241         (decode_packed_array_bitsize): Handle thick pointers without
1242         parallel types.
1243         (ada_is_gnat_encoded_packed_array_type): Rename from
1244         ada_is_packed_array_type.
1245         (ada_is_constrained_packed_array_type): Update.
1246         * ada-valprint.c (ada_val_print_gnat_array): Remove.
1247         (ada_value_print_1): Use ada_get_decoded_value.
1249 2020-11-04  Tom Tromey  <tromey@adacore.com>
1251         * ada-lang.c (recursively_update_array_bitsize): New function.
1252         (decode_constrained_packed_array_type): Call it.
1254 2020-11-04  Tom Tromey  <tromey@adacore.com>
1256         * ada-lang.c (to_fixed_array_type): Error if
1257         decode_constrained_packed_array_type returns NULL.
1259 2020-11-04  Tom Tromey  <tromey@adacore.com>
1261         * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1263 2020-11-02  Tom Tromey  <tromey@adacore.com>
1265         * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1266         (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1267         (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1268         * amd64-ravenscar-thread.c: New file.
1269         * amd64-ravenscar-thread.h: New file.
1270         * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1271         * configure.tgt (amd64_tobjs): Add ravenscar objects.
1273 2020-11-02  Andrew Burgess  <andrew.burgess@embecosm.com>
1275         * main.c (execute_cmdargs): New function.
1276         (captured_main_1): Make use of execute_cmdargs.
1278 2020-11-02  Andrew Burgess  <andrew.burgess@embecosm.com>
1280         * NEWS: Mention changes to config file search path.
1281         * main.c
1283 2020-11-02  Tom Tromey  <tromey@adacore.com>
1285         * python/python.c: Consolidate two HAVE_PYTHON blocks.
1286         (python_GdbModuleDef): Move earlier.  Now static.
1287         (do_start_initialization): Consolidate some IS_PY3K blocks.
1289 2020-11-02  Simon Marchi  <simon.marchi@efficios.com>
1291         * aarch64-linux-tdep.c: Fix indentation.
1292         * aarch64-ravenscar-thread.c: Fix indentation.
1293         * aarch64-tdep.c: Fix indentation.
1294         * aarch64-tdep.h: Fix indentation.
1295         * ada-lang.c: Fix indentation.
1296         * ada-lang.h: Fix indentation.
1297         * ada-tasks.c: Fix indentation.
1298         * ada-typeprint.c: Fix indentation.
1299         * ada-valprint.c: Fix indentation.
1300         * ada-varobj.c: Fix indentation.
1301         * addrmap.c: Fix indentation.
1302         * addrmap.h: Fix indentation.
1303         * agent.c: Fix indentation.
1304         * aix-thread.c: Fix indentation.
1305         * alpha-bsd-nat.c: Fix indentation.
1306         * alpha-linux-tdep.c: Fix indentation.
1307         * alpha-mdebug-tdep.c: Fix indentation.
1308         * alpha-nbsd-tdep.c: Fix indentation.
1309         * alpha-obsd-tdep.c: Fix indentation.
1310         * alpha-tdep.c: Fix indentation.
1311         * amd64-bsd-nat.c: Fix indentation.
1312         * amd64-darwin-tdep.c: Fix indentation.
1313         * amd64-linux-nat.c: Fix indentation.
1314         * amd64-linux-tdep.c: Fix indentation.
1315         * amd64-nat.c: Fix indentation.
1316         * amd64-obsd-tdep.c: Fix indentation.
1317         * amd64-tdep.c: Fix indentation.
1318         * amd64-windows-tdep.c: Fix indentation.
1319         * annotate.c: Fix indentation.
1320         * arc-tdep.c: Fix indentation.
1321         * arch-utils.c: Fix indentation.
1322         * arch/arm-get-next-pcs.c: Fix indentation.
1323         * arch/arm.c: Fix indentation.
1324         * arm-linux-nat.c: Fix indentation.
1325         * arm-linux-tdep.c: Fix indentation.
1326         * arm-nbsd-tdep.c: Fix indentation.
1327         * arm-pikeos-tdep.c: Fix indentation.
1328         * arm-tdep.c: Fix indentation.
1329         * arm-tdep.h: Fix indentation.
1330         * arm-wince-tdep.c: Fix indentation.
1331         * auto-load.c: Fix indentation.
1332         * auxv.c: Fix indentation.
1333         * avr-tdep.c: Fix indentation.
1334         * ax-gdb.c: Fix indentation.
1335         * ax-general.c: Fix indentation.
1336         * bfin-linux-tdep.c: Fix indentation.
1337         * block.c: Fix indentation.
1338         * block.h: Fix indentation.
1339         * blockframe.c: Fix indentation.
1340         * bpf-tdep.c: Fix indentation.
1341         * break-catch-sig.c: Fix indentation.
1342         * break-catch-syscall.c: Fix indentation.
1343         * break-catch-throw.c: Fix indentation.
1344         * breakpoint.c: Fix indentation.
1345         * breakpoint.h: Fix indentation.
1346         * bsd-uthread.c: Fix indentation.
1347         * btrace.c: Fix indentation.
1348         * build-id.c: Fix indentation.
1349         * buildsym-legacy.h: Fix indentation.
1350         * buildsym.c: Fix indentation.
1351         * c-typeprint.c: Fix indentation.
1352         * c-valprint.c: Fix indentation.
1353         * c-varobj.c: Fix indentation.
1354         * charset.c: Fix indentation.
1355         * cli/cli-cmds.c: Fix indentation.
1356         * cli/cli-decode.c: Fix indentation.
1357         * cli/cli-decode.h: Fix indentation.
1358         * cli/cli-script.c: Fix indentation.
1359         * cli/cli-setshow.c: Fix indentation.
1360         * coff-pe-read.c: Fix indentation.
1361         * coffread.c: Fix indentation.
1362         * compile/compile-cplus-types.c: Fix indentation.
1363         * compile/compile-object-load.c: Fix indentation.
1364         * compile/compile-object-run.c: Fix indentation.
1365         * completer.c: Fix indentation.
1366         * corefile.c: Fix indentation.
1367         * corelow.c: Fix indentation.
1368         * cp-abi.h: Fix indentation.
1369         * cp-namespace.c: Fix indentation.
1370         * cp-support.c: Fix indentation.
1371         * cp-valprint.c: Fix indentation.
1372         * cris-linux-tdep.c: Fix indentation.
1373         * cris-tdep.c: Fix indentation.
1374         * darwin-nat-info.c: Fix indentation.
1375         * darwin-nat.c: Fix indentation.
1376         * darwin-nat.h: Fix indentation.
1377         * dbxread.c: Fix indentation.
1378         * dcache.c: Fix indentation.
1379         * disasm.c: Fix indentation.
1380         * dtrace-probe.c: Fix indentation.
1381         * dwarf2/abbrev.c: Fix indentation.
1382         * dwarf2/attribute.c: Fix indentation.
1383         * dwarf2/expr.c: Fix indentation.
1384         * dwarf2/frame.c: Fix indentation.
1385         * dwarf2/index-cache.c: Fix indentation.
1386         * dwarf2/index-write.c: Fix indentation.
1387         * dwarf2/line-header.c: Fix indentation.
1388         * dwarf2/loc.c: Fix indentation.
1389         * dwarf2/macro.c: Fix indentation.
1390         * dwarf2/read.c: Fix indentation.
1391         * dwarf2/read.h: Fix indentation.
1392         * elfread.c: Fix indentation.
1393         * eval.c: Fix indentation.
1394         * event-top.c: Fix indentation.
1395         * exec.c: Fix indentation.
1396         * exec.h: Fix indentation.
1397         * expprint.c: Fix indentation.
1398         * f-lang.c: Fix indentation.
1399         * f-typeprint.c: Fix indentation.
1400         * f-valprint.c: Fix indentation.
1401         * fbsd-nat.c: Fix indentation.
1402         * fbsd-tdep.c: Fix indentation.
1403         * findvar.c: Fix indentation.
1404         * fork-child.c: Fix indentation.
1405         * frame-unwind.c: Fix indentation.
1406         * frame-unwind.h: Fix indentation.
1407         * frame.c: Fix indentation.
1408         * frv-linux-tdep.c: Fix indentation.
1409         * frv-tdep.c: Fix indentation.
1410         * frv-tdep.h: Fix indentation.
1411         * ft32-tdep.c: Fix indentation.
1412         * gcore.c: Fix indentation.
1413         * gdb_bfd.c: Fix indentation.
1414         * gdbarch.sh: Fix indentation.
1415         * gdbarch.c: Re-generate
1416         * gdbarch.h: Re-generate.
1417         * gdbcore.h: Fix indentation.
1418         * gdbthread.h: Fix indentation.
1419         * gdbtypes.c: Fix indentation.
1420         * gdbtypes.h: Fix indentation.
1421         * glibc-tdep.c: Fix indentation.
1422         * gnu-nat.c: Fix indentation.
1423         * gnu-nat.h: Fix indentation.
1424         * gnu-v2-abi.c: Fix indentation.
1425         * gnu-v3-abi.c: Fix indentation.
1426         * go32-nat.c: Fix indentation.
1427         * guile/guile-internal.h: Fix indentation.
1428         * guile/scm-cmd.c: Fix indentation.
1429         * guile/scm-frame.c: Fix indentation.
1430         * guile/scm-iterator.c: Fix indentation.
1431         * guile/scm-math.c: Fix indentation.
1432         * guile/scm-ports.c: Fix indentation.
1433         * guile/scm-pretty-print.c: Fix indentation.
1434         * guile/scm-value.c: Fix indentation.
1435         * h8300-tdep.c: Fix indentation.
1436         * hppa-linux-nat.c: Fix indentation.
1437         * hppa-linux-tdep.c: Fix indentation.
1438         * hppa-nbsd-nat.c: Fix indentation.
1439         * hppa-nbsd-tdep.c: Fix indentation.
1440         * hppa-obsd-nat.c: Fix indentation.
1441         * hppa-tdep.c: Fix indentation.
1442         * hppa-tdep.h: Fix indentation.
1443         * i386-bsd-nat.c: Fix indentation.
1444         * i386-darwin-nat.c: Fix indentation.
1445         * i386-darwin-tdep.c: Fix indentation.
1446         * i386-dicos-tdep.c: Fix indentation.
1447         * i386-gnu-nat.c: Fix indentation.
1448         * i386-linux-nat.c: Fix indentation.
1449         * i386-linux-tdep.c: Fix indentation.
1450         * i386-nto-tdep.c: Fix indentation.
1451         * i386-obsd-tdep.c: Fix indentation.
1452         * i386-sol2-nat.c: Fix indentation.
1453         * i386-tdep.c: Fix indentation.
1454         * i386-tdep.h: Fix indentation.
1455         * i386-windows-tdep.c: Fix indentation.
1456         * i387-tdep.c: Fix indentation.
1457         * i387-tdep.h: Fix indentation.
1458         * ia64-libunwind-tdep.c: Fix indentation.
1459         * ia64-libunwind-tdep.h: Fix indentation.
1460         * ia64-linux-nat.c: Fix indentation.
1461         * ia64-linux-tdep.c: Fix indentation.
1462         * ia64-tdep.c: Fix indentation.
1463         * ia64-tdep.h: Fix indentation.
1464         * ia64-vms-tdep.c: Fix indentation.
1465         * infcall.c: Fix indentation.
1466         * infcmd.c: Fix indentation.
1467         * inferior.c: Fix indentation.
1468         * infrun.c: Fix indentation.
1469         * iq2000-tdep.c: Fix indentation.
1470         * language.c: Fix indentation.
1471         * linespec.c: Fix indentation.
1472         * linux-fork.c: Fix indentation.
1473         * linux-nat.c: Fix indentation.
1474         * linux-tdep.c: Fix indentation.
1475         * linux-thread-db.c: Fix indentation.
1476         * lm32-tdep.c: Fix indentation.
1477         * m2-lang.c: Fix indentation.
1478         * m2-typeprint.c: Fix indentation.
1479         * m2-valprint.c: Fix indentation.
1480         * m32c-tdep.c: Fix indentation.
1481         * m32r-linux-tdep.c: Fix indentation.
1482         * m32r-tdep.c: Fix indentation.
1483         * m68hc11-tdep.c: Fix indentation.
1484         * m68k-bsd-nat.c: Fix indentation.
1485         * m68k-linux-nat.c: Fix indentation.
1486         * m68k-linux-tdep.c: Fix indentation.
1487         * m68k-tdep.c: Fix indentation.
1488         * machoread.c: Fix indentation.
1489         * macrocmd.c: Fix indentation.
1490         * macroexp.c: Fix indentation.
1491         * macroscope.c: Fix indentation.
1492         * macrotab.c: Fix indentation.
1493         * macrotab.h: Fix indentation.
1494         * main.c: Fix indentation.
1495         * mdebugread.c: Fix indentation.
1496         * mep-tdep.c: Fix indentation.
1497         * mi/mi-cmd-catch.c: Fix indentation.
1498         * mi/mi-cmd-disas.c: Fix indentation.
1499         * mi/mi-cmd-env.c: Fix indentation.
1500         * mi/mi-cmd-stack.c: Fix indentation.
1501         * mi/mi-cmd-var.c: Fix indentation.
1502         * mi/mi-cmds.c: Fix indentation.
1503         * mi/mi-main.c: Fix indentation.
1504         * mi/mi-parse.c: Fix indentation.
1505         * microblaze-tdep.c: Fix indentation.
1506         * minidebug.c: Fix indentation.
1507         * minsyms.c: Fix indentation.
1508         * mips-linux-nat.c: Fix indentation.
1509         * mips-linux-tdep.c: Fix indentation.
1510         * mips-nbsd-tdep.c: Fix indentation.
1511         * mips-tdep.c: Fix indentation.
1512         * mn10300-linux-tdep.c: Fix indentation.
1513         * mn10300-tdep.c: Fix indentation.
1514         * moxie-tdep.c: Fix indentation.
1515         * msp430-tdep.c: Fix indentation.
1516         * namespace.h: Fix indentation.
1517         * nat/fork-inferior.c: Fix indentation.
1518         * nat/gdb_ptrace.h: Fix indentation.
1519         * nat/linux-namespaces.c: Fix indentation.
1520         * nat/linux-osdata.c: Fix indentation.
1521         * nat/netbsd-nat.c: Fix indentation.
1522         * nat/x86-dregs.c: Fix indentation.
1523         * nbsd-nat.c: Fix indentation.
1524         * nbsd-tdep.c: Fix indentation.
1525         * nios2-linux-tdep.c: Fix indentation.
1526         * nios2-tdep.c: Fix indentation.
1527         * nto-procfs.c: Fix indentation.
1528         * nto-tdep.c: Fix indentation.
1529         * objfiles.c: Fix indentation.
1530         * objfiles.h: Fix indentation.
1531         * opencl-lang.c: Fix indentation.
1532         * or1k-tdep.c: Fix indentation.
1533         * osabi.c: Fix indentation.
1534         * osabi.h: Fix indentation.
1535         * osdata.c: Fix indentation.
1536         * p-lang.c: Fix indentation.
1537         * p-typeprint.c: Fix indentation.
1538         * p-valprint.c: Fix indentation.
1539         * parse.c: Fix indentation.
1540         * ppc-linux-nat.c: Fix indentation.
1541         * ppc-linux-tdep.c: Fix indentation.
1542         * ppc-nbsd-nat.c: Fix indentation.
1543         * ppc-nbsd-tdep.c: Fix indentation.
1544         * ppc-obsd-nat.c: Fix indentation.
1545         * ppc-ravenscar-thread.c: Fix indentation.
1546         * ppc-sysv-tdep.c: Fix indentation.
1547         * ppc64-tdep.c: Fix indentation.
1548         * printcmd.c: Fix indentation.
1549         * proc-api.c: Fix indentation.
1550         * producer.c: Fix indentation.
1551         * producer.h: Fix indentation.
1552         * prologue-value.c: Fix indentation.
1553         * prologue-value.h: Fix indentation.
1554         * psymtab.c: Fix indentation.
1555         * python/py-arch.c: Fix indentation.
1556         * python/py-bpevent.c: Fix indentation.
1557         * python/py-event.c: Fix indentation.
1558         * python/py-event.h: Fix indentation.
1559         * python/py-finishbreakpoint.c: Fix indentation.
1560         * python/py-frame.c: Fix indentation.
1561         * python/py-framefilter.c: Fix indentation.
1562         * python/py-inferior.c: Fix indentation.
1563         * python/py-infthread.c: Fix indentation.
1564         * python/py-objfile.c: Fix indentation.
1565         * python/py-prettyprint.c: Fix indentation.
1566         * python/py-registers.c: Fix indentation.
1567         * python/py-signalevent.c: Fix indentation.
1568         * python/py-stopevent.c: Fix indentation.
1569         * python/py-stopevent.h: Fix indentation.
1570         * python/py-threadevent.c: Fix indentation.
1571         * python/py-tui.c: Fix indentation.
1572         * python/py-unwind.c: Fix indentation.
1573         * python/py-value.c: Fix indentation.
1574         * python/py-xmethods.c: Fix indentation.
1575         * python/python-internal.h: Fix indentation.
1576         * python/python.c: Fix indentation.
1577         * ravenscar-thread.c: Fix indentation.
1578         * record-btrace.c: Fix indentation.
1579         * record-full.c: Fix indentation.
1580         * record.c: Fix indentation.
1581         * reggroups.c: Fix indentation.
1582         * regset.h: Fix indentation.
1583         * remote-fileio.c: Fix indentation.
1584         * remote.c: Fix indentation.
1585         * reverse.c: Fix indentation.
1586         * riscv-linux-tdep.c: Fix indentation.
1587         * riscv-ravenscar-thread.c: Fix indentation.
1588         * riscv-tdep.c: Fix indentation.
1589         * rl78-tdep.c: Fix indentation.
1590         * rs6000-aix-tdep.c: Fix indentation.
1591         * rs6000-lynx178-tdep.c: Fix indentation.
1592         * rs6000-nat.c: Fix indentation.
1593         * rs6000-tdep.c: Fix indentation.
1594         * rust-lang.c: Fix indentation.
1595         * rx-tdep.c: Fix indentation.
1596         * s12z-tdep.c: Fix indentation.
1597         * s390-linux-tdep.c: Fix indentation.
1598         * score-tdep.c: Fix indentation.
1599         * ser-base.c: Fix indentation.
1600         * ser-mingw.c: Fix indentation.
1601         * ser-uds.c: Fix indentation.
1602         * ser-unix.c: Fix indentation.
1603         * serial.c: Fix indentation.
1604         * sh-linux-tdep.c: Fix indentation.
1605         * sh-nbsd-tdep.c: Fix indentation.
1606         * sh-tdep.c: Fix indentation.
1607         * skip.c: Fix indentation.
1608         * sol-thread.c: Fix indentation.
1609         * solib-aix.c: Fix indentation.
1610         * solib-darwin.c: Fix indentation.
1611         * solib-frv.c: Fix indentation.
1612         * solib-svr4.c: Fix indentation.
1613         * solib.c: Fix indentation.
1614         * source.c: Fix indentation.
1615         * sparc-linux-tdep.c: Fix indentation.
1616         * sparc-nbsd-tdep.c: Fix indentation.
1617         * sparc-obsd-tdep.c: Fix indentation.
1618         * sparc-ravenscar-thread.c: Fix indentation.
1619         * sparc-tdep.c: Fix indentation.
1620         * sparc64-linux-tdep.c: Fix indentation.
1621         * sparc64-nbsd-tdep.c: Fix indentation.
1622         * sparc64-obsd-tdep.c: Fix indentation.
1623         * sparc64-tdep.c: Fix indentation.
1624         * stabsread.c: Fix indentation.
1625         * stack.c: Fix indentation.
1626         * stap-probe.c: Fix indentation.
1627         * stubs/ia64vms-stub.c: Fix indentation.
1628         * stubs/m32r-stub.c: Fix indentation.
1629         * stubs/m68k-stub.c: Fix indentation.
1630         * stubs/sh-stub.c: Fix indentation.
1631         * stubs/sparc-stub.c: Fix indentation.
1632         * symfile-mem.c: Fix indentation.
1633         * symfile.c: Fix indentation.
1634         * symfile.h: Fix indentation.
1635         * symmisc.c: Fix indentation.
1636         * symtab.c: Fix indentation.
1637         * symtab.h: Fix indentation.
1638         * target-float.c: Fix indentation.
1639         * target.c: Fix indentation.
1640         * target.h: Fix indentation.
1641         * tic6x-tdep.c: Fix indentation.
1642         * tilegx-linux-tdep.c: Fix indentation.
1643         * tilegx-tdep.c: Fix indentation.
1644         * top.c: Fix indentation.
1645         * tracefile-tfile.c: Fix indentation.
1646         * tracepoint.c: Fix indentation.
1647         * tui/tui-disasm.c: Fix indentation.
1648         * tui/tui-io.c: Fix indentation.
1649         * tui/tui-regs.c: Fix indentation.
1650         * tui/tui-stack.c: Fix indentation.
1651         * tui/tui-win.c: Fix indentation.
1652         * tui/tui-winsource.c: Fix indentation.
1653         * tui/tui.c: Fix indentation.
1654         * typeprint.c: Fix indentation.
1655         * ui-out.h: Fix indentation.
1656         * unittests/copy_bitwise-selftests.c: Fix indentation.
1657         * unittests/memory-map-selftests.c: Fix indentation.
1658         * utils.c: Fix indentation.
1659         * v850-tdep.c: Fix indentation.
1660         * valarith.c: Fix indentation.
1661         * valops.c: Fix indentation.
1662         * valprint.c: Fix indentation.
1663         * valprint.h: Fix indentation.
1664         * value.c: Fix indentation.
1665         * value.h: Fix indentation.
1666         * varobj.c: Fix indentation.
1667         * vax-tdep.c: Fix indentation.
1668         * windows-nat.c: Fix indentation.
1669         * windows-tdep.c: Fix indentation.
1670         * xcoffread.c: Fix indentation.
1671         * xml-syscall.c: Fix indentation.
1672         * xml-tdesc.c: Fix indentation.
1673         * xstormy16-tdep.c: Fix indentation.
1674         * xtensa-config.c: Fix indentation.
1675         * xtensa-linux-nat.c: Fix indentation.
1676         * xtensa-linux-tdep.c: Fix indentation.
1677         * xtensa-tdep.c: Fix indentation.
1679 2020-11-02  Andrew Burgess  <andrew.burgess@embecosm.com>
1680             Craig Blackmore   <craig.blackmore@embecosm.com>
1682         * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1683         as an unsigned value.
1685 2020-11-01  Tom Tromey  <tom@tromey.com>
1687         * dbxread.c (dbx_end_psymtab): Update.
1688         * dwarf2/read.c (process_psymtab_comp_unit_reader)
1689         (build_type_psymtabs_reader): Update.
1690         * xcoffread.c (xcoff_end_psymtab): Update.
1691         * ctfread.c (scan_partial_symbols): Update.
1692         * psymtab.c (sort_pst_symbols): Remove.
1693         (partial_symtab::end): Rename from end_psymtab_common.  Inline
1694         sort_pst_symbols.
1695         * psympriv.h (struct partial_symtab) <end>: New method.
1696         (end_psymtab_common): Don't declare.
1698 2020-11-01  Tom Tromey  <tom@tromey.com>
1700         * symmisc.c (count_psyms): New function.
1701         (print_objfile_statistics): Use it.
1702         * psymtab.c (append_psymbol_to_list): Remove.
1703         (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1704         * objfiles.h (struct objstats) <n_psyms>: Remove.
1706 2020-11-01  Tom Tromey  <tom@tromey.com>
1708         * dbxread.c (dbx_end_psymtab): Update.
1709         * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1710         (build_type_psymtabs_reader): Update.
1711         * xcoffread.c (xcoff_end_psymtab): Update.
1712         * ctfread.c (scan_partial_symbols): Update.
1713         * psympriv.h (end_psymtab_common): Update.
1714         * psymtab.c (end_psymtab_common): Remove objfile parameter.
1715         (sort_pst_symbols): Likewise.
1717 2020-11-01  Tom Tromey  <tom@tromey.com>
1719         * dbxread.c (dbx_symfile_read): Update.
1720         * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1721         * xcoffread.c (xcoff_initial_scan): Update.
1722         * psympriv.h (init_psymbol_list): Don't declare.
1723         * psymtab.c (init_psymbol_list): Remove.
1725 2020-11-01  Joel Brobecker  <brobecker@adacore.com>
1727         * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1728         gnat_encoded_fixed_type_info.  Update all callers.
1730 2020-11-01  Joel Brobecker  <brobecker@adacore.com>
1732         * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1733         line too long.
1735 2020-11-01  Joel Brobecker  <brobecker@adacore.com>
1737         * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1738         cast_from_fixed.  Update all callers.
1739         (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1740         Update all callers.
1741         (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1742         Update all callers.
1743         * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1744         ada_scaling_factor.
1745         * ada-typeprint.c: Replace call to ada_scaling_factor by call
1746         to print_gnat_encoded_fixed_point_type.
1747         * ada-valprint.c: Likewise.
1749 2020-10-31  Andrew Burgess  <andrew.burgess@embecosm.com>
1751         * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1752         (debug_prefixed_printf): Add check of debug_displaced flag.
1753         * linux-nat.c (linux_nat_debug_printf): Add check of
1754         debug_linux_nat flag.
1756 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1758         * infrun.c (infrun_debug_printf_1): Remove.
1759         (displaced_debug_printf_1): Remove.
1760         (stop_all_threads): Use debug_prefixed_printf.
1761         * infrun.h (infrun_debug_printf_1): Remove.
1762         (infrun_debug_printf): Use debug_prefixed_printf.
1763         (displaced_debug_printf_1): Remove.
1764         (displaced_debug_printf): Use debug_prefixed_printf.
1765         * linux-nat.c (linux_nat_debug_printf_1): Remove.
1766         (linux_nat_debug_printf): Use debug_prefixed_printf.
1768 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1770         * configure: Re-generate.
1771         * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1772         AC_LANG_PROGRAM.
1774 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1776         * configure: Re-generate.
1778 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1780         * configure: Re-generate.
1782 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1784         * configure: Re-generate.
1786 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1788         * configure: Re-generate.
1790 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1792         * acinclude.m4: Modernize.
1793         * configure: Re-generate.
1795 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1797         * configure.ac: Modernize.
1798         * configure: Re-generate.
1800 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1802         * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1803         * configure: Re-generate.
1804         * configure.ac: Remove AM_PROG_CC_STDC.
1806 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1808         * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1809         AC_CANONICAL_SYSTEM.
1810         * configure: Re-generate.
1812 2020-10-30  Simon Marchi  <simon.marchi@efficios.com>
1814         * infrun.h (displaced_debug_printf): New macro.  Replace
1815         displaced debug prints throughout to use it.
1816         (displaced_debug_printf_1): New declaration.
1817         (displaced_step_dump_bytes): Return string, remove ui_file
1818         parameter, update all callers.
1819         * infrun.c (displaced_debug_printf_1): New function.
1820         (displaced_step_dump_bytes): Return string, remove ui_file
1821         parameter
1823 2020-10-30  Simon Marchi  <simon.marchi@polymtl.ca>
1825         * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1827 2020-10-30  Tom Tromey  <tromey@adacore.com>
1829         * Makefile.in (stamp-init): Depend on config.status.
1831 2020-10-30  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1833         * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1835 2020-10-30  Pedro Alves  <pedro@palves.net>
1837         * thread.c (lookup_selected_frame): Move ...
1838         * frame.c (lookup_selected_frame): ... here.
1840 2020-10-30  Pedro Alves  <pedro@palves.net>
1842         * blockframe.c (block_innermost_frame): Use get_selected_frame.
1843         * frame.c
1844         (scoped_restore_selected_frame::scoped_restore_selected_frame):
1845         Use save_selected_frame.  Save language as well.
1846         (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1847         Use restore_selected_frame, and restore language as well.
1848         (selected_frame_id, selected_frame_level): New.
1849         (selected_frame): Update comments.
1850         (save_selected_frame, restore_selected_frame): New.
1851         (get_selected_frame): Use lookup_selected_frame.
1852         (get_selected_frame_if_set): Delete.
1853         (select_frame): Record selected_frame_level and selected_frame_id.
1854         * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1855         fields.
1856         (get_selected_frame): Make 'message' parameter optional.
1857         (get_selected_frame_if_set): Delete declaration.
1858         (select_frame): Update comments.
1859         (save_selected_frame, restore_selected_frame)
1860         (lookup_selected_frame): Declare.
1861         * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1862         * infrun.c (struct infcall_control_state) <selected_frame_level>:
1863         New field.
1864         (save_infcall_control_state): Use save_selected_frame.
1865         (restore_selected_frame): Delete.
1866         (restore_infcall_control_state): Use restore_selected_frame.
1867         * stack.c (select_frame_command_core, frame_command_core): Use
1868         get_selected_frame.
1869         * thread.c (restore_selected_frame): Rename to ...
1870         (lookup_selected_frame): ... this and make extern.  Select the
1871         current frame if the frame level is -1.
1872         (scoped_restore_current_thread::restore): Also restore the
1873         language.
1874         (scoped_restore_current_thread::~scoped_restore_current_thread):
1875         Don't try/catch.
1876         (scoped_restore_current_thread::scoped_restore_current_thread):
1877         Save the language as well.  Use save_selected_frame.
1879 2020-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
1881         * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1882         documentation.
1883         * gdbarch.h: Re-generate.
1885 2020-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
1887         * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1888         parameter.
1889         * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1890         Likewise.
1891         * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1892         Likewise.
1893         * arch-utils.c (default_displaced_step_hw_singlestep):
1894         Likewise.
1895         * arch-utils.h (default_displaced_step_hw_singlestep):
1896         Likewise.
1897         * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1898         Likewise.
1899         * s390-tdep.c (s390_displaced_step_hw_singlestep):
1900         Likewise.
1901         * gdbarch.c: Re-generate.
1902         * gdbarch.h: Re-generate.
1903         * infrun.c (resume_1): Adjust.
1905 2020-10-29  Tom Tromey  <tom@tromey.com>
1907         * progspace.c (program_space::~program_space): Don't call
1908         exec_close.
1910 2020-10-29  Tom Tromey  <tom@tromey.com>
1912         * exec.c (exec_target::close): Don't change current program
1913         space.
1915 2020-10-29  Tom Tromey  <tom@tromey.com>
1917         * symfile.c (add_symbol_file_command): Update.
1918         * exec.c (program_space::add_target_sections): Rename.
1919         * symfile-mem.c (symbol_file_add_from_memory): Update.
1920         * progspace.h (struct program_space) <add_target_sections>:
1921         Declare new overload.
1922         * exec.h (add_target_sections_of_objfile): Don't declare.
1924 2020-10-29  Tom Tromey  <tom@tromey.com>
1926         * solib.c (solib_map_sections): Update.
1927         * exec.c (program_space::add_target_sections): Now a method.
1928         (exec_file_attach): Update.
1929         * exec.h (add_target_sections): Don't declare.
1930         * progspace.h (struct program_space) <add_target_sections>:
1931         Declare.
1933 2020-10-29  Tom Tromey  <tom@tromey.com>
1935         * progspace.h (struct program_space) <remove_target_sections>:
1936         Declare.
1937         * exec.c (program_space::remove_target_sections): Now a method.
1938         * exec.h (remove_target_sections): Don't declare.
1940 2020-10-29  Tom Tromey  <tom@tromey.com>
1942         * inferior.c (delete_inferior): Update.
1943         * progspace.c (program_space::empty): Rename from
1944         program_space_empty_p.  Return bool.
1945         * progspace.h (struct program_space) <empty>: New method.
1946         (program_space_empty_p): Don't declare.
1948 2020-10-29  Tom Tromey  <tom@tromey.com>
1950         * progspace.c (program_space::~program_space): Don't call
1951         clear_program_space_solib_cache.
1952         (program_space::clear_solib_cache): Rename from
1953         clear_solib_cache.
1954         * solib.c (handle_solib_event): Update.
1955         * progspace.h (struct program_space) <clear_solib_cache>: New
1956         method.
1957         (clear_program_space_solib_cache): Don't declare.
1959 2020-10-29  Tom Tromey  <tom@tromey.com>
1961         * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1962         * target.c (info_target_command): Update.
1963         * symfile.c (syms_from_objfile_1, finish_new_objfile)
1964         (symbol_file_clear, reread_symbols): Update.
1965         * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1966         * stabsread.c (scan_file_globals): Update.
1967         * solib.c (update_solib_list): Update.
1968         * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1969         (svr4_fetch_objfile_link_map, enable_break)
1970         (svr4_relocate_main_executable)
1971         (svr4_iterate_over_objfiles_in_search_order): Update.
1972         * solib-frv.c (lm_base, enable_break)
1973         (frv_relocate_main_executable): Update.
1974         (main_got, frv_fdpic_find_canonical_descriptor): Update.
1975         (frv_fetch_objfile_link_map): Update.
1976         * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1977         * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1978         * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1979         * remote.c (remote_target::get_offsets): Update.
1980         (remote_target::start_remote)
1981         (extended_remote_target::post_attach): Update.
1982         * objfiles.c (entry_point_address_query): Update.
1983         * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1984         * minsyms.c (get_symbol_leading_char): Update.
1985         * frame.c (inside_main_func): Update.
1986         * progspace.h (symfile_objfile): Remove macro.
1988 2020-10-29  Tom Tromey  <tom@tromey.com>
1990         * exec.c (exec_file_attach): Update.
1991         * progspace.c (program_space::exec_close): Update.
1992         * progspace.h (struct program_space) <ebfd>: Now a
1993         gdb_bfd_ref_ptr.
1994         <set_exec_bfd>: Change argument type.
1995         <exec_bfd>: Update.
1997 2020-10-29  Tom Tromey  <tom@tromey.com>
1999         * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2000         * symfile.c (reread_symbols): Update.
2001         * symfile-mem.c (add_symbol_file_from_memory_command)
2002         (add_vsyscall_page): Update.
2003         * source-cache.c (source_cache::get_plain_source_lines): Update.
2004         * solib-svr4.c (find_program_interpreter, elf_locate_base)
2005         (svr4_current_sos_direct, svr4_exec_displacement)
2006         (svr4_relocate_main_executable): Update.
2007         (svr4_iterate_over_objfiles_in_search_order): Update.
2008         * solib-frv.c (enable_break2, enable_break): Update.
2009         * solib-dsbt.c (lm_base, enable_break): Update.
2010         * solib-darwin.c (find_program_interpreter)
2011         (darwin_solib_create_inferior_hook): Update.
2012         * sol-thread.c (rw_common, ps_pdmodel): Update.
2013         * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2014         * remote.c (compare_sections_command)
2015         (remote_target::trace_set_readonly_regions): Update.
2016         * remote-sim.c (get_sim_inferior_data)
2017         (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2018         (gdbsim_target_open, gdbsim_target::files_info): Update.
2019         * exec.h (exec_bfd): Remove macro.
2020         * progspace.c (initialize_progspace): Update.
2021         * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2022         Update.
2023         * nto-procfs.c (nto_procfs_target::post_attach)
2024         (nto_procfs_target::create_inferior): Update.
2025         * maint.c (maintenance_info_sections): Update.
2026         * linux-thread-db.c (thread_db_target::get_thread_local_address):
2027         Update.
2028         * infcmd.c (post_create_inferior): Update.
2029         * gcore.c (default_gcore_arch, default_gcore_target): Update.
2030         (objfile_find_memory_regions): Update.
2031         * exec.c (validate_exec_file, exec_file_attach)
2032         (exec_read_partial_read_only, print_section_info): Update.
2033         * corelow.c (core_target_open): Update.
2034         * corefile.c (reopen_exec_file, validate_files): Update.
2035         * arm-tdep.c (gdb_print_insn_arm): Update.
2036         * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2037         * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2038         methods.
2040 2020-10-29  Tom Tromey  <tom@tromey.com>
2042         * progspace.h (current_target_sections): Remove macro.
2043         * solib-svr4.c (scan_dyntag): Update.
2044         * solib-dsbt.c (scan_dyntag): Update.
2045         * exec.c (exec_target::close): Update.
2046         (add_target_sections, add_target_sections_of_objfile)
2047         (remove_target_sections, exec_target::get_section_table)
2048         (exec_target::files_info, set_section_command)
2049         (exec_set_section_address, exec_target::has_memory)
2050         (exec_target::has_memory): Update.
2052 2020-10-29  Tom Tromey  <tom@tromey.com>
2054         * source-cache.c (source_cache::get_plain_source_lines): Use
2055         current_program_space.
2056         * corefile.c (reopen_exec_file): Use current_program_space.
2057         * exec.c (exec_file_attach): Use current_program_space.
2058         * exec.h (exec_bfd_mtime): Remove.
2060 2020-10-29  Tom Tromey  <tom@tromey.com>
2062         * gcore.c (default_gcore_mach): Remove.
2063         (create_gcore_bfd): Update.
2065 2020-10-29  Tom Tromey  <tom@tromey.com>
2067         * progspace.c (program_space::exec_close): New method, from
2068         exec_close in exec.c.
2069         * exec.c (exec_close): Move to progspace.c.
2070         (exec_target::close, exec_file_attach): Update.
2071         * progspace.h (struct program_space) <exec_close>: Declare
2072         method.
2074 2020-10-29  Tom Tromey  <tom@tromey.com>
2076         * progspace.h (struct program_space) <exec_filename>: Rename from
2077         pspace_exec_filename.  Now a unique_xmalloc_ptr.
2078         * inferior.c (print_selected_inferior): Update.
2079         (print_inferior): Update.
2080         * mi/mi-main.c (print_one_inferior): Update.
2081         * exec.h (exec_filename): Remove macro.
2082         * corefile.c (get_exec_file): Update.
2083         * exec.c (exec_close): Update.
2084         (exec_file_attach): Update.
2085         * progspace.c (clone_program_space): Update.
2086         (print_program_space): Update.
2088 2020-10-29  Tom Tromey  <tom@tromey.com>
2090         * target-section.h (struct target_section): Add constructor.
2091         * exec.c (build_section_table, add_target_sections_of_objfile):
2092         Update.
2093         * corelow.c (core_target::build_file_mappings): Update.
2095 2020-10-29  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2097         PR gdb/19318
2098         * inferior.c (detach_inferior_command): Restore the current thread.
2099         (kill_inferior_command): Ditto.
2101 2020-10-28  Tom de Vries  <tdevries@suse.de>
2103         PR symtab/26772
2104         * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2105         map, check it in the "best match" loop.
2107 2020-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
2109         * m32c-tdep.c: Remove unused includes.
2111 2020-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
2113         * xtensa-tdep.c: Remove includes.
2115 2020-10-27  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2117         * breakpoint.c (struct condition_command_opts): New struct.
2118         (condition_command_option_defs): New static global.
2119         (make_condition_command_options_def_group): New function.
2120         (condition_completer): Update to consider the '-force' flag.
2121         (condition_command): Use gdb::option for the '-force' flag.
2123 2020-10-27  Tom de Vries  <tdevries@suse.de>
2125         * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2126         symbols in section check.
2128 2020-10-27  Tom de Vries  <tdevries@suse.de>
2130         * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2132 2020-10-27  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2134         * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2135         * breakpoint.c: Update the help text of the 'condition' and 'break'
2136         commands.
2137         (set_breakpoint_condition): Take a new bool parameter
2138         to control whether condition definition should be forced even when
2139         the condition expression is invalid in all of the current locations.
2140         (condition_command): Update the call to 'set_breakpoint_condition'.
2141         (find_condition_and_thread): Take the "-force-condition" flag into
2142         account.
2143         * linespec.c (linespec_keywords): Add "-force-condition" as an
2144         element.
2145         (FORCE_KEYWORD_INDEX): New #define.
2146         (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2147         as a keyword.
2148         * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2149         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2150         * python/py-breakpoint.c (bppy_set_condition): Ditto.
2151         * NEWS: Mention the changes to the 'break' and 'condition' commands.
2153 2020-10-27  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2155         * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2156         * breakpoint.c (set_breakpoint_location_condition): New function.
2157         (set_breakpoint_condition): Disable a breakpoint location if parsing
2158         the condition string gives an error.
2159         (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2160         (build_target_condition_list): Ditto.
2161         (build_target_command_list): Ditto.
2162         (build_bpstat_chain): Ditto.
2163         (print_one_breakpoint_location): Ditto.
2164         (print_one_breakpoint): Ditto.
2165         (breakpoint_1): Ditto.
2166         (bp_location::bp_location): Ditto.
2167         (locations_are_equal): Ditto.
2168         (update_breakpoint_locations): Ditto.
2169         (enable_disable_bp_num_loc): Ditto.
2170         (init_breakpoint_sal): Use set_breakpoint_location_condition.
2171         (find_condition_and_thread_for_sals): New static function.
2172         (create_breakpoint): Call find_condition_and_thread_for_sals.
2173         (location_to_sals): Call find_condition_and_thread_for_sals instead
2174         of find_condition_and_thread.
2176 2020-10-26  Tom de Vries  <tdevries@suse.de>
2178         * dwarf2/read.c (process_full_comp_unit): Call
2179         dwarf2_find_base_address.
2181 2020-10-26  Tom Tromey  <tromey@adacore.com>
2183         * gdbtypes.c (create_range_type): Revert previous patch.  Add
2184         comment.
2186 2020-10-26  Pedro Alves  <pedro@palves.net>
2188         * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2189         (my_waitpid): Use gdb::handle_eintr.
2191 2020-10-25  Simon Marchi  <simon.marchi@polymtl.ca>
2193         * acinclude.m4: Update ptrace.m4 path.
2194         * ptrace.m4: Moved to gdbsupport.
2196 2020-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
2198         * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2199         instead of target_gdbarch.
2201 2020-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
2203         * jit.c (jit_reader_load_command): Pass current inferior.
2204         (jit_inferior_init): Change parameter type to inferior, use it.
2205         (jit_inferior_created): Remove.
2206         (jit_inferior_created_hook): Pass inferior parameter down.
2207         (_initialize_jit): Use jit_inferior_created_hook instead of
2208         jit_inferior_created.
2209         * jit.h (jit_inferior_created_hook): Add inferior parameter.
2210         * infrun.c (follow_exec): Pass inferior to
2211         jit_inferior_created_hook.
2213 2020-10-24  Simon Marchi  <simon.marchi@efficios.com>
2215         * linux-thread-db.c (check_pid_namespace_match): Add inferior
2216         parameter and use it.
2217         (thread_db_inferior_created): Pass inferior argument.
2219 2020-10-24  Simon Marchi  <simon.marchi@efficios.com>
2221         * aix-thread.c (aix_thread_inferior_created): Add inferior
2222         parameter.
2223         * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2224         * dummy-frame.c (cleanup_dummy_frames): Likewise.
2225         * jit.c (jit_inferior_created): Likewise.
2226         * linux-thread-db.c (thread_db_inferior_created): Likewise.
2227         * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2228         * observable.h (inferior_created): Likewise.
2229         * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2230         * symfile-mem.c (add_vsyscall_page): Likewise.
2231         * infcmd.c (post_create_inferior): Pass inferior argument.
2233 2020-10-24  Joel Brobecker  <brobecker@adacore.com>
2235         GDB 10.1 released.
2237 2020-10-23  Joel Brobecker  <brobecker@adacore.com>
2239         * ada-typeprint.c (ada_print_type): Remove superfluous second call
2240         to ada_check_typedef.
2242 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
2244         * f-exp.y (f_parse): Rename to...
2245         (f_language::parser): ...this.
2246         * f-lang.c (f_get_encoding): Rename to...
2247         (f_language::get_encoding): ...this.
2248         (f_op_print_tab): Rename to...
2249         (f_language::op_print_tab): ...this.
2250         (exp_descriptor_f): Rename to...
2251         (f_language::exp_descriptor_tab): ...this.
2252         (class f_language): Moved to f-lang.h.
2253         (f_language::language_arch_info): New function, moved out of class
2254         declaration.
2255         (f_language::search_name_hash): Likewise.
2256         (f_language::lookup_symbol_nonlocal): Likewise.
2257         (f_language::get_symbol_name_matcher_inner): Likewise.
2258         * f-lang.h: Add 'valprint.h' include.
2259         (class f_language): Moved here from f-lang.c.
2260         * f-typeprint.c (f_type_print_args): Delete commented out
2261         declaration.
2262         (f_print_typedef): Rename to...
2263         (f_language::print_typedef): ...this.
2264         (f_print_type): Rename to...
2265         (f_language::print_type): ...this.
2266         (f_type_print_varspec_prefix): Delete declaration and rename to...
2267         (f_language::f_type_print_varspec_prefix): ...this.
2268         (f_type_print_varspec_suffix): Delete declaration and rename to...
2269         (f_language::f_type_print_varspec_suffix): ...this.
2270         (f_type_print_base): Delete declaration and rename to...
2271         (f_language::f_type_print_base): ...this.
2272         * f-valprint.c (f_value_print_inner): Rename to...
2273         (f_language::value_print_inner): ...this.
2274         * parse.c: Delete 'f-lang.h' include.
2276 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
2278         * language.h (language_defn::print_type): Add variable names in
2279         declaration, and update header comment.
2281 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
2283         * ada-lang.c (ada_language::demangle): Rename to...
2284         (ada_language::demangle_symbol): ...this.
2285         * c-lang.c (cplus_language::demangle): Rename to...
2286         (cplus_language::demangle_symbol): ...this.
2287         * d-lang.c (d_language::demangle): Rename to...
2288         (d_language::demangle_symbol): ...this.
2289         * f-lang.c (f_language::demangle): Rename to...
2290         (f_language::demangle_symbol): ...this.
2291         * go-lang.c (go_language::demangle): Rename to...
2292         (go_language::demangle_symbol): ...this.
2293         * language.c (language_demangle): Update call to demangle_symbol.
2294         (auto_or_unknown_language::demangle): Rename to...
2295         (auto_or_unknown_language::demangle_symbol): ...this.
2296         * language.h (language_defn::demangle): Rename to...
2297         (language_defn::demangle_symbol): ...this.
2298         * objc-lang.c (objc_language::demangle): Rename to...
2299         (objc_language::demangle_symbol): ...this.
2300         * rust-lang.c (rust_language::demangle): Rename to...
2301         (rust_language::demangle_symbol): ...this.
2303 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
2305         * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2306         (iterate_over_file_blocks): Replace use of macro with the macros
2307         definition.
2309 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
2311         * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2312         * valprint.c (maybe_print_array_index): Replace use of macro with
2313         the macros definition.
2315 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
2317         * ada-lang.c (ada_language::print_array_index): Call value_print
2318         directly.
2319         * language.c (language_defn::print_array_index): Likewise.
2320         * language.h (LA_VALUE_PRINT): Delete.
2321         * valprint.c (value_print): Call value_print on the
2322         current_language directly.
2324 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
2326         * language.h (LA_PRINT_TYPEDEF): Delete.
2327         * typeprint.c (typedef_print): Call print_typedef directly on the
2328         current_language object.
2330 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
2332         * m2-exp.y (m2_parse): Rename to...
2333         (m2_language::parser): ...this.  Update function signature.
2334         * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2335         (m2_op_print): Rename to...
2336         (m2_language::op_print_tab): ...this, and make const.
2337         (exp_descriptor_modula2): Rename to...
2338         (m2_language::exp_descriptor_modula2): ...this.
2339         (class m2_language): Move to m2-lang.h.
2340         (m2_language::language_arch_info): New function, moved out of
2341         class declaration.
2342         (m2_language::printchar): New function, body from m2_printchar.
2343         (m2_language::printstr): New function, moved out of class
2344         declaration.
2345         (m2_language::emitchar): Likewise.
2346         * m2-lang.h (m2_parse): Delete declaration.
2347         (m2_print_typedef): Delete declaration.
2348         (m2_value_print_inner): Delete declaration.
2349         (class m2_language): Class declaration moved from m2-lang.c,
2350         larger functions are left in m2-lang.c.
2351         * m2-typeprint.c (m2_print_typedef): Rename to...
2352         (m2_language::print_typedef): ...this, and update function
2353         signature.
2354         * m2-valprint.c (m2_value_print_inner): Rename to...
2355         (m2_language::value_print_inner): ...this, replace use of
2356         LA_PRINT_STRING with a direct call to printstr member function,
2357         and update recursive call.
2359 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
2361         * language.c (default_is_string_type_p): Delete, implementation
2362         moved into auto_or_unknown_language::is_string_type_p.
2363         (unk_op_print_tab): Moved into
2364         auto_or_unknown_language::opcode_print_table.
2365         (unknown_language_arch_info): Delete, implementation moved into
2366         auto_or_unknown_language::language_arch_info.
2367         (class auto_or_unknown_language): New class, member functions
2368         copied from unknown_language class, with some updates.
2369         (class unknown_language): Most member functions moved into
2370         auto_or_unknown_language class.  Inherit from
2371         auto_or_unknown_language class.
2372         (class auto_language): Inherit from auto_or_unknown_language.
2373         Delete most member functions.
2375 2020-10-22  Hannes Domani  <ssbssa@yahoo.de>
2377         * stabsread.c (read_member_functions): Remove gdb_assert.
2379 2020-10-22  Hannes Domani  <ssbssa@yahoo.de>
2381         * gdbtypes.c (init_complex_type): Check target type name.
2383 2020-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
2385         * target-debug.h (target_debug_print_struct_target_ops_p):
2386         Remove.
2387         (target_debug_print_async_callback_ftype_p): Remove.
2388         (target_debug_print_struct_trace_state_variable_p): Remove.
2389         (target_debug_print_struct_traceframe_info_p): Remove.
2390         (target_debug_print_VEC__btrace_block_s__pp): Remove.
2391         (target_debug_print_enum_btrace_format): Remove.
2392         (target_debug_print_enum_info_proc_what): Remove.
2393         (target_debug_print_thread_info_pp): Remove.
2395 2020-10-22  Simon Marchi  <simon.marchi@efficios.com>
2397         * target.h (struct target_ops) <make_corefile_notes>:
2398         Change return type to unique pointer.
2399         * target.c (dummy_make_corefile_notes): Likewise.
2400         * exec.c (struct exec_target) <make_corefile_notes>:
2401         Likewise.
2402         (exec_target::make_corefile_notes): Likewise.
2403         * procfs.c (class procfs_target) <make_corefile_notes>:
2404         Likewise.
2405         (procfs_do_thread_registers): Adjust to unique pointer.
2406         (struct procfs_corefile_thread_data): Add constructor.
2407         <note_data>: Change type to unique pointer.
2408         (procfs_corefile_thread_callback): Adjust to unique pointer.
2409         (procfs_target::make_corefile_notes): Change return type to
2410         unique pointer.
2411         * target-delegates.c: Re-generate.
2412         * gcore.c (write_gcore_file_1): Adjust.
2413         * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2414         New.
2416 2020-10-22  Tom de Vries  <tdevries@suse.de>
2418         * block.c (find_block_in_blockvector): Make sure the returned block
2419         contains pc.
2421 2020-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
2423         PR gdb/26693
2424         * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2425         parameter.
2426         (load_cu): Pass existing CU.
2427         (process_imported_unit_die): Likewise.
2428         (follow_die_offset): Likewise.
2430 2020-10-22  Luis Machado  <luis.machado@linaro.org>
2432         * corelow.c (core_target::xfer_partial): Also check for an empty
2433         m_core_unavailable_mappings vector.
2435 2020-10-22  Andrew Burgess  <andrew.burgess@embecosm.com>
2437         * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2438         * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2439         * f-exp.y (arglist): Allow for a series of subranges.
2440         (subrange): Add cases for subranges with strides.
2441         * f-lang.c (value_f90_subarray): Catch use of array strides and
2442         throw an error.
2443         * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2445 2020-10-22  Andrew Burgess  <andrew.burgess@embecosm.com>
2447         * expprint.c (print_subexp_standard): Change enum range_type to
2448         range_flag and rename variables to match.
2449         (dump_subexp_body_standard): Likewise.
2450         * expression.h (enum range_type): Rename to...
2451         (enum range_flag): ...this.
2452         (range_types): Rename to...
2453         (range_flags): ...this.
2454         * f-lang.c (value_f90_subarray): Change enum range_type to
2455         range_flag and rename variables to match.
2456         * parse.c (operator_length_standard): Likewise.
2457         * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2458         range_type to range_flag.
2459         * rust-lang.c (rust_evaluate_funcall): Likewise.
2460         (rust_range): Likewise.
2461         (rust_compute_range): Likewise.
2462         (rust_subscript): Likewise.
2464 2020-10-22  Andrew Burgess  <andrew.burgess@embecosm.com>
2466         * expprint.c (print_subexp_standard): Update to reflect changes to
2467         enum range_type.
2468         (dump_subexp_body_standard): Likewise.
2469         * expression.h (enum range_type): Convert to a bit field enum, and
2470         make the enum unsigned.
2471         * f-exp.y (subrange): Update to reflect changes to enum
2472         range_type.
2473         * f-lang.c (value_f90_subarray): Likewise.
2474         * parse.c (operator_length_standard): Likewise.
2475         * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2476         * rust-lang.c (rust_range): Likewise.
2477         (rust_compute_range): Likewise.
2478         (rust_subscript): Likewise.
2480 2020-10-21  Simon Marchi  <simon.marchi@efficios.com>
2482         * infrun.c (displaced_step_in_progress_thread): Fix comment.
2483         (displaced_step_in_progress): Fix comment.
2485 2020-10-21  Simon Marchi  <simon.marchi@polymtl.ca>
2487         * gdbarch.sh (make_corefile_notes): Return unique pointer.
2488         * gdbarch.c: Re-generate.
2489         * gdbarch.h: Re-generate.
2490         * gcore.c (write_gcore_file_1): Adjust.
2491         * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2492         constructor.
2493         <note_data>: Change type to unique pointer.
2494         <abort_iteration>: Change type to bool.
2495         (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2496         (fbsd_collect_thread_registers): Return void, adjust.
2497         (struct fbsd_corefile_thread_data): Add construtor.
2498         <note_data>: Change type to unique pointer.
2499         (fbsd_corefile_thread): Adjust.
2500         (fbsd_make_corefile_notes): Return unique pointer, adjust.
2501         * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2502         to unique pointer, adjust.
2503         (struct linux_collect_regset_section_cb_data): Add constructor.
2504         <note_data>: Change type to unique pointer.
2505         <abort_iteration>: Change type to bool.
2506         (linux_collect_thread_registers): Return void, adjust.
2507         (struct linux_corefile_thread_data): Add constructor.
2508         <note_data>: Change type to unique pointer.
2509         (linux_corefile_thread): Adjust.
2510         (linux_make_corefile_notes): Return unique pointer, adjust.
2512 2020-10-20  Simon Marchi  <simon.marchi@polymtl.ca>
2514         * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2515         * gdbarch.c: Re-generate.
2516         * gdbarch.h: Re-generate.
2517         * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2518         bool.
2519         * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2520         Likewise.
2521         * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2522         * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2523         * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2524         * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2526 2020-10-20  Simon Marchi  <simon.marchi@polymtl.ca>
2528         * gdbarch.sh: Make generated predicates return bool.
2529         * gdbarch.c: Re-generate.
2530         * gdbarch.h: Re-generate.
2532 2020-10-20  Tom Tromey  <tom@tromey.com>
2534         * varobj-iter.h (struct varobj_item): Remove typedef.
2536 2020-10-20  Simon Marchi  <simon.marchi@polymtl.ca>
2538         * infrun.c (currently_stepping): Change int to bool
2539         (maybe_software_singlestep): Likewise.
2540         (show_stop_on_solib_events): Likewise.
2541         (stepping_past_nonsteppable_watchpoint): Likewise.
2542         (displaced_step_in_progress_any_inferior): Likewise.
2543         (displaced_step_in_progress_thread): Likewise.
2544         (keep_going_stepped_thread): Likewise.
2545         (thread_still_needs_step_over): Likewise.
2546         (start_step_over): Likewise.
2547         (do_target_resume): Likewise.
2548         (resume_1): Likewise.
2549         (clear_proceed_status): Likewise.
2550         (thread_still_needs_step_over_bp): Likewise.
2551         (proceed): Likewise.
2552         (switch_back_to_stepped_thread): Likewise.
2553         (adjust_pc_after_break): Likewise.
2554         (stepped_in_from): Likewise.
2555         (handle_stop_requested): Likewise.
2556         (handle_syscall_event): Likewise.
2557         (handle_no_resumed): Likewise.
2558         (handle_inferior_event): Likewise.
2559         (finish_step_over): Likewise.
2560         (handle_signal_stop): Likewise.
2561         (process_event_stop_test): Likewise.
2563 2020-10-20  Simon Marchi  <simon.marchi@polymtl.ca>
2565         * infrun.c (get_displaced_stepping_state): Fix comment.
2567 2020-10-20  Andreas Schwab  <schwab@linux-m68k.org>
2569         * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2571 2020-10-19  Tom Tromey  <tromey@adacore.com>
2573         PR tui/26719
2574         * tui/tui-winsource.h (struct tui_source_window_base)
2575         <refresh_window>: Rename from refresh_pad.
2576         * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2577         Rename from refresh_pad.
2578         (tui_source_window_base::show_source_content)
2579         (tui_source_window_base::do_scroll_horizontal): Update.
2581 2020-10-19  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2583         * thread.c (_initialize_thread): Fine-tune the help text of
2584         'info threads'.
2586 2020-10-19  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2588         * frame.c: Remove the unused 'uinteger_option_def' type alias.
2590 2020-10-14  Mihails Strasuns  <mihails.strasuns@intel.com>
2592         * breakpoint.c (handle_jit_event): Add an argument, change how
2593         `jit_event_handler` is called.
2595 2020-10-17  Tom Tromey  <tom@tromey.com>
2597         * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2598         (scan_xcoff_symtab): Update.
2599         * psymtab.h (class psymtab_storage) <global_psymbols,
2600         static_psymbols, current_global_psymbols,
2601         current_static_psymbols>: Remove.
2602         * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2603         (match_partial_symbol, lookup_partial_symbol): Update.
2604         (print_partial_symbols): Change parameters.
2605         (dump_psymtab, recursively_search_psymtabs)
2606         (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2607         (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2608         (concat): Remove.
2609         (end_psymtab_common): Simplify.
2610         (append_psymbol_to_list): Change parameters.
2611         (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2612         (init_psymbol_list): Simplify.
2613         (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2614         * psympriv.h (struct partial_symtab) <empty>: New method.
2615         <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2616         Remove.
2617         <global_psymbols, static_psymbols>: New members.
2618         <add_psymbol>: New methods.
2619         (add_psymbol_to_list): Don't declare.
2620         (psymbol_placement): Move earlier.
2621         * mdebugread.c (parse_partial_symbols): Update.
2622         (handle_psymbol_enumerators): Change parameters.
2623         (mdebug_expand_psymtab): Update.
2624         * dwarf2/read.c (process_psymtab_comp_unit_reader)
2625         (add_partial_symbol): Update.
2626         * dwarf2/index-write.c (write_psymbols): Change parameters.
2627         (write_one_signatured_type): Update.
2628         (recursively_count_psymbols): Update.
2629         (recursively_write_psymbols): Update.
2630         (class debug_names) <recursively_write_psymbols>: Update.
2631         <write_psymbols>: Change parameters.
2632         <write_one_signatured_type>: Update.
2633         * dbxread.c (read_dbx_symtab): Update.
2634         (dbx_end_psymtab): Use partial_symtab::empty.
2635         * ctfread.c (struct ctf_context) <pst>: New member.
2636         (create_partial_symtab): Set it.
2637         (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2638         (scan_partial_symbols): Use the psymtab's context.  Update.
2640 2020-10-17  Tom Tromey  <tom@tromey.com>
2642         * valprint.c (generic_value_print): Remove comment.
2643         * m2-valprint.c (m2_value_print_inner): Remove comment.
2644         * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2645         type.
2647 2020-10-17  Tom de Vries  <tdevries@suse.de>
2649         PR symtab/26317
2650         * source.c (select_source_symtab): Handling sal.symtab == NULL for
2651         symbol main.
2653 2020-10-14  Tom de Vries  <tdevries@suse.de>
2655         PR gdb/26733
2656         * solib.c (solib_contains_address_p): Handle
2657         'solib->sections == nullptr'.
2659 2020-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
2661         PR gdb/26642
2662         * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2663         target can't do async.
2664         * target.c (target_wait): Assert that we don't pass
2665         TARGET_WNOHANG to a target that can't async.
2667 2020-10-13  Kamil Rytarowski  <n54@gmx.com>
2669         * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2670         HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2671         * alpha-bsd-nat.c: Adjust include.
2672         * alpha-bsd-tdep.h: Adjust comment.
2673         * alpha-nbsd-tdep.c: Rename to ...
2674         * alpha-netbsd-tdep.c: ... this, adjust include.
2675         * amd64-nbsd-nat.c: Rename to ...
2676         * amd64-netbsd-nat.c: ... this, adjust include.
2677         * amd64-nbsd-tdep.c: Rename to ...
2678         * amd64-netbsd-tdep.c: ... this, adjust include.
2679         * amd64-tdep.h: Adjust include.
2680         * arm-nbsd-nat.c: Rename to ...
2681         * arm-netbsd-nat.c: ... this, adjust include.
2682         * arm-nbsd-tdep.c: Rename to ...
2683         * arm-netbsd-tdep.c: ... this, adjust include.
2684         * arm-nbsd-tdep.h: Rename to ...
2685         * arm-netbsd-tdep.h: ... this, adjust include.
2686         * configure.nat: Adjust file lists.
2687         * configure.tgt: Likewise.
2688         * hppa-nbsd-nat.c: Rename to ...
2689         * hppa-netbsd-nat.c: ... this, adjust include.
2690         * hppa-nbsd-tdep.c: Rename to ...
2691         * hppa-netbsd-tdep.c: ... this, adjust include.
2692         * i386-nbsd-nat.c: Rename to ...
2693         * i386-netbsd-nat.c: ... this, adjust include.
2694         * i386-nbsd-tdep.c: Rename to ...
2695         * i386-netbsd-tdep.c: ... this, adjust include.
2696         * m68k-bsd-nat.c: Adjust include.
2697         * mips-nbsd-nat.c: Rename to ...
2698         * mips-netbsd-nat.c: ... this, adjust include.
2699         * mips-nbsd-tdep.c: Rename to ...
2700         * mips-netbsd-tdep.c: ... this, adjust include.
2701         * mips-nbsd-tdep.h: Rename to ...
2702         * mips-netbsd-tdep.h: ... this.
2703         * nbsd-nat.c: Rename to ...
2704         * netbsd-nat.c: ... this, adjust include.
2705         * nbsd-nat.h: Rename to ...
2706         * netbsd-nat.h: ... this, adjust include.
2707         * nbsd-tdep.c: Rename to ...
2708         * netbsd-tdep.c: ... this, adjust include.
2709         * nbsd-tdep.h: Rename to ...
2710         * netbsd-tdep.h: ... this.
2711         * ppc-nbsd-nat.c: Rename to ...
2712         * ppc-netbsd-nat.c: ... this, adjust include.
2713         * ppc-nbsd-tdep.c: Rename to ...
2714         * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2715         * ppc-nbsd-tdep.h: Rename to ...
2716         * ppc-netbsd-tdep.h: ... this.
2717         * sh-nbsd-nat.c: Rename to ...
2718         * sh-netbsd-nat.c: ... this, adjust include.
2719         * sh-nbsd-tdep.c: Rename to ...
2720         * sh-netbsd-tdep.c: ... this, adjust include.
2721         * sparc-nbsd-nat.c: Rename to ...
2722         * sparc-netbsd-nat.c: ... this.
2723         * sparc-nbsd-tdep.c: Rename to ...
2724         * sparc-netbsd-tdep.c: ... this, adjust include.
2725         * sparc64-nbsd-nat.c: Rename to ...
2726         * sparc64-netbsd-nat.c: ... this.
2727         * sparc64-nbsd-tdep.c: Rename to ...
2728         * sparc64-netbsd-tdep.c: ... this, adjust include.
2729         * sparc64-tdep.h: Adjust comment.
2730         * vax-bsd-nat.c: Adjust include.
2731         * vax-nbsd-tdep.c: Rename to ...
2732         * vax-netbsd-tdep.c: ... this, adjust include.
2734 2020-10-12  Tom Tromey  <tom@tromey.com>
2736         * target.h (struct target_ops) <get_section_table>: Update.
2737         (target_get_section_table): Update.
2738         * target.c (target_get_section_table, target_section_by_addr)
2739         (memory_xfer_partial_1): Update.
2740         * target-section.h (target_section_table): Now an alias.
2741         * target-delegates.c: Rebuild.
2742         * target-debug.h (target_debug_print_target_section_table_p):
2743         Rename from target_debug_print_struct_target_section_table_p.
2744         * symfile.c (build_section_addr_info_from_section_table): Update.
2745         * solib.c (solib_map_sections, solib_contains_address_p): Update.
2746         * solib-svr4.c (scan_dyntag): Update.
2747         * solib-dsbt.c (scan_dyntag): Update.
2748         * remote.c (remote_target::remote_xfer_live_readonly_partial):
2749         Update.
2750         * record-full.c (record_full_core_target::xfer_partial): Update.
2751         * progspace.h (struct program_space) <target_sections>: Update.
2752         * exec.h (print_section_info): Update.
2753         * exec.c (exec_target::close, build_section_table)
2754         (add_target_sections, add_target_sections_of_objfile)
2755         (remove_target_sections, exec_on_vfork)
2756         (section_table_available_memory)
2757         (section_table_xfer_memory_partial)
2758         (exec_target::get_section_table, exec_target::xfer_partial)
2759         (print_section_info, set_section_command)
2760         (exec_set_section_address, exec_target::has_memory): Update.
2761         * corelow.c (core_target::build_file_mappings)
2762         (core_target::xfer_partial, core_target::info_proc_mappings)
2763         (core_target::info_proc_mappings): Update.
2764         * bfd-target.c (class target_bfd): Update
2766 2020-10-12  Tom Tromey  <tom@tromey.com>
2768         * progspace.c (program_space::~program_space): Don't call
2769         clear_section_table.
2770         * exec.h (clear_section_table): Don't declare.
2771         * exec.c (exec_target::close): Update.
2772         (clear_section_table): Remove.
2774 2020-10-12  Tom Tromey  <tom@tromey.com>
2776         * exec.c (add_target_sections_of_objfile): Simplify.
2778 2020-10-12  Tom Tromey  <tom@tromey.com>
2780         * solib.c (solib_map_sections): Update.
2781         * record-full.c (record_full_core_open_1): Update.
2782         * exec.h (build_section_table): Return a target_section_table.
2783         * exec.c (exec_file_attach): Update.
2784         (build_section_table): Return a target_section_table.
2785         * corelow.c (core_target::core_target): Update.
2786         * bfd-target.c (target_bfd::target_bfd): Update.
2788 2020-10-12  Tom Tromey  <tom@tromey.com>
2790         * target.c (target_section_by_addr, memory_xfer_partial_1):
2791         Update.
2792         * target-section.h (struct target_section_table): Use
2793         std::vector.
2794         * symfile.h (build_section_addr_info_from_section_table): Take a
2795         target_section_table.
2796         * symfile.c (build_section_addr_info_from_section_table): Take a
2797         target_section_table.
2798         * solist.h (struct so_list) <sections>: Change type.
2799         <sections_end>: Remove.
2800         * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2801         (solib_contains_address_p): Update.
2802         * solib-svr4.c (scan_dyntag): Update.
2803         * solib-dsbt.c (scan_dyntag): Update.
2804         * remote.c (remote_target::remote_xfer_live_readonly_partial):
2805         Update.
2806         * record-full.c (record_full_core_start, record_full_core_end):
2807         Remove.
2808         (record_full_core_sections): New global.
2809         (record_full_core_open_1, record_full_core_target::xfer_partial):
2810         Update.
2811         * exec.h (build_section_table, section_table_xfer_memory_partial)
2812         (add_target_sections): Take a target_section_table.
2813         * exec.c (exec_file_attach, clear_section_table): Update.
2814         (resize_section_table): Remove.
2815         (build_section_table, add_target_sections): Take a
2816         target_section_table.
2817         (add_target_sections_of_objfile, remove_target_sections)
2818         (exec_on_vfork): Update.
2819         (section_table_available_memory): Take a target_section_table.
2820         (section_table_read_available_memory): Update.
2821         (section_table_xfer_memory_partial): Take a target_section_table.
2822         (print_section_info, set_section_command)
2823         (exec_set_section_address, exec_target::has_memory): Update.
2824         * corelow.c (class core_target) <m_core_section_table,
2825         m_core_file_mappings>: Remove braces.
2826         <~core_target>: Remove.
2827         (core_target::core_target): Update.
2828         (core_target::~core_target): Remove.
2829         (core_target::build_file_mappings)
2830         (core_target::xfer_memory_via_mappings)
2831         (core_target::xfer_partial, core_target::info_proc_mappings):
2832         Update.
2833         * bfd-target.c (target_bfd::xfer_partial): Update.
2834         (target_bfd::target_bfd): Update.
2835         (target_bfd::~target_bfd): Remove.
2837 2020-10-12  Tom Tromey  <tom@tromey.com>
2839         * target.h (struct target_section, struct target_section_table):
2840         Move to target-section.h.
2841         * target-section.h: New file.
2843 2020-10-12  Pedro Alves  <pedro@palves.net>
2845         PR exp/26602
2846         * valops.c (struct struct_field_searcher): New.
2847         (update_search_result): Rename to ...
2848         (struct_field_searcher::update_result): ... this.  Simplify
2849         prototype.  Record all found fields.
2850         (do_search_struct_field): Rename to ...
2851         (struct_field_searcher::search): ... this.  Simplify prototype.
2852         Maintain stack of visited baseclass path.  Call update_result for
2853         fields too.  Keep searching fields in baseclasses instead of
2854         stopping at the first found field.
2855         (search_struct_field): Use struct_field_searcher.  When looking
2856         for fields, report ambiguous access attempts.
2858 2020-10-11  Andrew Burgess  <andrew.burgess@embecosm.com>
2860         * frame.c (inside_main_func): Check full symbols as well as
2861         minimal symbols.
2863 2020-10-09  Joel Brobecker  <brobecker@adacore.com>
2865         * ada-lang.c (advance_wild_match): Rewrite the function's
2866         description.  Change the type of target0, t0 and t1 to char.
2868 2020-10-09  Tom Tromey  <tromey@adacore.com>
2870         * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2872 2020-10-09  Tom Tromey  <tromey@adacore.com>
2874         * ada-lang.h (ada_encode): Return std::string.
2875         * ada-lang.c (ada_encode_1): Return std::string.
2876         (ada_encode): Likewise.
2877         (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2878         Update.
2879         * ada-exp.y (block_lookup, write_var_or_type): Update.
2881 2020-10-09  Hannes Domani  <ssbssa@yahoo.de>
2883         PR exp/26714
2884         * printcmd.c (print_formatted): Handle void results as
2885         unformatted prints.
2887 2020-10-09  Andrew Burgess  <andrew.burgess@embecosm.com>
2889         * arch/aarch32.c (aarch32_create_target_description): Release the
2890         target_desc_up as late as possible.
2891         * arch/aarch64.c (aarch64_create_target_description): Likewise.
2892         * arch/amd64.c (amd64_create_target_description): Likewise.
2893         * arch/arc.c (arc_create_target_description): Return a
2894         target_desc_up, don't release it.
2895         * arch/arc.h (arc_create_target_description): Update declaration.
2896         (arc_lookup_target_description): Move target_desc_up into the
2897         cache, and return a borrowed pointer.
2898         * arch/arm.c (arm_create_target_description): Release the
2899         target_desc_up as late as possible.
2900         * arch/i386.c (i386_create_target_description): Likewise.
2901         * arch/riscv.h (riscv_create_target_description): Update
2902         declaration to match definition.
2903         * arch/tic6x.c (tic6x_create_target_description): Release the
2904         target_desc_up as late as possible.
2906 2020-10-09  Andrew Burgess  <andrew.burgess@embecosm.com>
2908         * Makefile.in: Include Makefile.gnulib.inc.  Don't define LIBGNU
2909         or INCGNU.  Make use of LIBGNU_EXTRA_LIBS when linking.
2911 2020-10-09  Jan Vrany  <jan.vrany@labware.com>
2913         * source.c (directory_command): Notify observers that "directories"
2914         parameter has changed.
2916 2020-10-08  Tom Tromey  <tom@tromey.com>
2918         * cli/cli-cmds.c (print_disassembly): Style function name and
2919         addresses.  Add _() wrappers.
2921 2020-10-08  Shahab Vahedi  <shahab@synopsys.com>
2923         * NEWS: Mention ARC support in GDBserver.
2925 2020-10-08  Andrew Burgess  <andrew.burgess@embecosm.com>
2927         * arch/aarch32.c (aarch32_create_target_description): Release
2928         unique_ptr returned from allocate_target_description.
2929         * arch/aarch64.c (aarch64_create_target_description): Likewise.
2930         * arch/amd64.c (amd64_create_target_description): Likewise.
2931         * arch/arc.c (arc_create_target_description): Likewise.
2932         * arch/arm.c (arm_create_target_description): Likewise.
2933         * arch/i386.c (i386_create_target_description): Likewise.
2934         * arch/riscv.c (riscv_create_target_description): Update return
2935         type.  Handle allocate_target_description returning a unique_ptr.
2936         (riscv_lookup_target_description): Update to handle unique_ptr.
2937         * arch/tic6x.c (tic6x_create_target_description): Release
2938         unique_ptr returned from allocate_target_description.
2939         * features/microblaze-with-stack-protect.c: Regenerate.
2940         * features/microblaze.c: Regenerate.
2941         * features/mips-dsp-linux.c: Regenerate.
2942         * features/mips-linux.c: Regenerate.
2943         * features/mips64-dsp-linux.c: Regenerate.
2944         * features/mips64-linux.c: Regenerate.
2945         * features/nds32.c: Regenerate.
2946         * features/nios2.c: Regenerate.
2947         * features/or1k.c: Regenerate.
2948         * features/rs6000/powerpc-32.c: Regenerate.
2949         * features/rs6000/powerpc-32l.c: Regenerate.
2950         * features/rs6000/powerpc-403.c: Regenerate.
2951         * features/rs6000/powerpc-403gc.c: Regenerate.
2952         * features/rs6000/powerpc-405.c: Regenerate.
2953         * features/rs6000/powerpc-505.c: Regenerate.
2954         * features/rs6000/powerpc-601.c: Regenerate.
2955         * features/rs6000/powerpc-602.c: Regenerate.
2956         * features/rs6000/powerpc-603.c: Regenerate.
2957         * features/rs6000/powerpc-604.c: Regenerate.
2958         * features/rs6000/powerpc-64.c: Regenerate.
2959         * features/rs6000/powerpc-64l.c: Regenerate.
2960         * features/rs6000/powerpc-7400.c: Regenerate.
2961         * features/rs6000/powerpc-750.c: Regenerate.
2962         * features/rs6000/powerpc-860.c: Regenerate.
2963         * features/rs6000/powerpc-altivec32.c: Regenerate.
2964         * features/rs6000/powerpc-altivec32l.c: Regenerate.
2965         * features/rs6000/powerpc-altivec64.c: Regenerate.
2966         * features/rs6000/powerpc-altivec64l.c: Regenerate.
2967         * features/rs6000/powerpc-e500.c: Regenerate.
2968         * features/rs6000/powerpc-e500l.c: Regenerate.
2969         * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2970         * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2971         * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2972         * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2973         * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2974         * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2975         * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2976         * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2977         * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2978         * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2979         * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2980         * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2981         * features/rs6000/powerpc-vsx32.c: Regenerate.
2982         * features/rs6000/powerpc-vsx32l.c: Regenerate.
2983         * features/rs6000/powerpc-vsx64.c: Regenerate.
2984         * features/rs6000/powerpc-vsx64l.c: Regenerate.
2985         * features/rs6000/rs6000.c: Regenerate.
2986         * features/rx.c: Regenerate.
2987         * features/s390-gs-linux64.c: Regenerate.
2988         * features/s390-linux32.c: Regenerate.
2989         * features/s390-linux32v1.c: Regenerate.
2990         * features/s390-linux32v2.c: Regenerate.
2991         * features/s390-linux64.c: Regenerate.
2992         * features/s390-linux64v1.c: Regenerate.
2993         * features/s390-linux64v2.c: Regenerate.
2994         * features/s390-te-linux64.c: Regenerate.
2995         * features/s390-tevx-linux64.c: Regenerate.
2996         * features/s390-vx-linux64.c: Regenerate.
2997         * features/s390x-gs-linux64.c: Regenerate.
2998         * features/s390x-linux64.c: Regenerate.
2999         * features/s390x-linux64v1.c: Regenerate.
3000         * features/s390x-linux64v2.c: Regenerate.
3001         * features/s390x-te-linux64.c: Regenerate.
3002         * features/s390x-tevx-linux64.c: Regenerate.
3003         * features/s390x-vx-linux64.c: Regenerate.
3004         * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3005         from allocate_target_description.
3006         * target-descriptions.c (allocate_target_description): Update
3007         return type.
3008         (print_c_tdesc::visit_pre): Release unique_ptr returned from
3009         allocate_target_description.
3011 2020-10-07  Tom Tromey  <tromey@adacore.com>
3013         * unittests/search-memory-selftests.c: New file.
3014         * Makefile.in (SELFTESTS_SRCS): Add
3015         unittests/search-memory-selftests.c.
3017 2020-10-07  Tom Tromey  <tromey@adacore.com>
3019         PR gdb/16930:
3020         * findcmd.c (_initialize_mem_search): Mention that the range is
3021         inclusive.
3023 2020-10-07  Tom Tromey  <tromey@adacore.com>
3025         * target.h (simple_search_memory): Don't declare.
3026         * target.c (simple_search_memory): Move to gdbsupport.
3027         (default_search_memory): Update.
3028         * remote.c (remote_target::search_memory): Update.
3030 2020-10-07  Simon Marchi  <simon.marchi@efficios.com>
3032         * Makefile.in (COMPILE): Add CXXFLAGS.
3033         (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3034         (check-headers): Add CXXFLAGS.
3036 2020-10-07  Anton Kolesov  <anton.kolesov@synopsys.com>
3038         * arc-linux-tdep.h: New file.
3039         * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3040         arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3041         arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3042         arc_linux_gregset, arc_linux_v2_regset,
3043         arc_linux_iterate_over_regset_sections,
3044         arc_linux_core_read_description): Implement.
3045         (arc_linux_init_osabi): Set iterate_over_regset_sections.
3046         * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3047         (arc_gdbarch_features_create): Add.
3048         * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3050 2020-10-07  Shahab Vahedi  <shahab@synopsys.com>
3052         * arch/arc.h: Rename "arc_gdbarch_features" to
3053         "arc_arch_features".
3054         * arc-tdep.h: Likewise.
3055         * arc-tdep.c: Likewise.
3057 2020-10-07  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3059         * infcmd.c (attach_command): Remove the redundant call to
3060         `clear_proceed_status`.
3062 2020-10-07  Kamil Rytarowski  <n54@gmx.com>
3064         * nat/netbsd-nat.c (write_memory, read_memory): Update.
3066 2020-10-07  Kamil Rytarowski  <n54@gmx.com>
3068         * nat/netbsd-nat.c (write_memory, read_memory): Add.
3069         * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3070         * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3072 2020-10-07  Simon Marchi  <simon.marchi@polymtl.ca>
3074         * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3075         (_initialize_break_catch_sig): Don't allocate array.
3077 2020-10-06  Andrew Burgess  <andrew.burgess@embecosm.com>
3079         * symtab.c (find_pc_line): Return unmapped addresses when the
3080         requested address is also unmapped.
3082 2020-10-05  Simon Marchi  <simon.marchi@efficios.com>
3084         * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3085         tui/tui-out.h.
3087 2020-10-05  Simon Marchi  <simon.marchi@efficios.com>
3089         * amd64-windows-tdep.c (amd64_windows_return_value): Use
3090         type::is_vector instead of TYPE_VECTOR.
3092 2020-10-05  Simon Marchi  <simon.marchi@polymtl.ca>
3094         * auto-load.c (auto_load_objfile_script_1): Don't use
3095         debugfile_holder as temporary variable when stripping drive
3096         letter.
3098 2020-10-05  Hannes Domani  <ssbssa@yahoo.de>
3100         * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3101         Add TYPE_CODE_COMPLEX.
3102         (amd64_windows_return_value): Fix types returned via XMM0.
3104 2020-10-05  Alan Hayward  <alan.hayward@arm.com>
3106         * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3107         AArch64/ARM maintainers.
3109 2020-10-04  Simon Marchi  <simon.marchi@polymtl.ca>
3111         * NEWS: Mention set/show debug event-loop.
3113 2020-10-02  Tom Tromey  <tromey@adacore.com>
3115         * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3116         REG_EXTENDED.
3118 2020-10-02  Simon Marchi  <simon.marchi@efficios.com>
3120         * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3121         * procfs.c (procfs_inferior_created): Remove.
3122         (_initialize_procfs): Don't register procfs_inferior_created.
3124 2020-10-02  Simon Marchi  <simon.marchi@polymtl.ca>
3126         * async-event.c (invoke_async_signal_handlers): Add debug
3127         print.
3128         (check_async_event_handlers): Likewise.
3129         * event-top.c (show_debug_event_loop): New function.
3130         (_initialize_event_top): Register "set debug event-loop"
3131         setting.
3133 2020-10-02  Simon Marchi  <simon.marchi@polymtl.ca>
3135         * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3136         * debug.h: Remove.
3137         * infrun.c: Include gdbsupport/common-debug.h.
3138         * linux-nat.c: Likewise.
3140 2020-10-02  Simon Marchi  <simon.marchi@polymtl.ca>
3142         * async-event.h (create_async_signal_handler): Add name
3143         parameter.
3144         (create_async_event_handler): Likewise.
3145         * async-event.c (struct async_signal_handler) <name>: New field.
3146         (struct async_event_handler) <name>: New field.
3147         (create_async_signal_handler): Assign name.
3148         (create_async_event_handler): Assign name.
3149         * event-top.c (async_init_signals): Pass name when creating
3150         handler.
3151         * infrun.c (_initialize_infrun): Likewise.
3152         * record-btrace.c (record_btrace_push_target): Likewise.
3153         * record-full.c (record_full_open): Likewise.
3154         * remote-notif.c (remote_notif_state_allocate): Likewise.
3155         * remote.c (remote_target::open_1): Likewise.
3156         * tui/tui-win.c (tui_initialize_win): Likewise.
3158 2020-10-02  Simon Marchi  <simon.marchi@polymtl.ca>
3160         * async-event.c (initialize_async_signal_handlers): Pass name to
3161         add_file_handler
3162         * event-top.c (ui_register_input_event_handler): Likewise.
3163         * linux-nat.c (linux_nat_target::async): Likewise.
3164         * run-on-main-thread.c (_initialize_run_on_main_thread):
3165         Likewise
3166         * ser-base.c (reschedule): Likewise.
3167         (ser_base_async): Likewise.
3168         * tui/tui-io.c: Likewise.
3169         * top.h (struct ui) <num>: New field.
3170         * top.c (highest_ui_num): New variable.
3171         (ui::ui): Initialize num.
3173 2020-10-02  Simon Marchi  <simon.marchi@polymtl.ca>
3175         * observable.h <inferior_created>: Remove parameters.  Update all
3176         listeners.
3177         * inferior.h (post_create_inferior): Remove target parameter.
3178         Update all callers.
3180 2020-10-02  Nitika Achra  <Nitika.Achra@amd.com>
3182         * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3183         and DW_MACRO_undef_strx.
3184         (dwarf_decode_macros): Likewise
3185         * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3186         which is the value of DW_AT_str_offsets_base.
3187          * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3188         str_offsets_base.
3190 2020-10-01  Kamil Rytarowski  <n54@gmx.com>
3192         * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3194 2020-10-01  Kamil Rytarowski  <n54@gmx.com>
3196         * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3197         * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3199 2020-10-01  Kamil Rytarowski  <n54@gmx.com>
3201         * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3203 2020-09-30  Tom de Vries  <tdevries@suse.de>
3205         PR symtab/26683
3206         * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3208 2020-09-30  Tom Tromey  <tromey@adacore.com>
3210         * dwarf2/read.c (handle_variant): Use constant_value.
3212 2020-09-29  Tom Tromey  <tom@tromey.com>
3214         * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3215         (read_file_scope, dwarf2_get_pc_bounds)
3216         (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3217         (read_structure_type, handle_struct_member_die)
3218         (read_enumeration_type, read_array_type, read_set_type)
3219         (read_tag_pointer_type, read_tag_reference_type)
3220         (read_subroutine_type, read_base_type, read_subrange_type)
3221         (read_full_die_1, partial_die_info::read)
3222         (partial_die_info::read, by, new_symbol)
3223         (dwarf2_const_value_data, dwarf2_const_value_attr)
3224         (dump_die_shallow, dwarf2_fetch_constant_bytes)
3225         (prepare_one_comp_unit): Update.
3226         * dwarf2/attribute.h (DW_UNSND): Remove.
3228 2020-09-29  Tom Tromey  <tom@tromey.com>
3230         * dwarf2/read.c (read_func_scope, prototyped_function_p)
3231         (read_subroutine_type, partial_die_info::read)
3232         (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3233         (dwarf2_add_member_fn): Update.
3234         * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3235         * dwarf2/attribute.c (attribute::as_boolean): New method.
3237 2020-09-29  Tom Tromey  <tom@tromey.com>
3239         * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3240         * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3241         method.
3242         * dwarf2/attribute.c (attribute::as_virtuality): New method.
3244 2020-09-29  Tom Tromey  <tom@tromey.com>
3246         * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3247         the attribute's form.
3249 2020-09-29  Tom Tromey  <tom@tromey.com>
3251         * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3252         (dwarf2_add_member_fn): Update.
3253         * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3254         * dwarf2/attribute.c (attribute::defaulted): New method, from
3255         is_valid_DW_AT_defaulted.
3257 2020-09-29  Tom Tromey  <tom@tromey.com>
3259         * dwarf2/read.c (dw2_get_file_names_reader)
3260         (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3261         (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3262         (dwarf2_symbol_mark_computed): Use as_unsigned.
3263         * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3264         method.
3265         <form_is_section_offset>: Update comment.
3267 2020-09-29  Tom Tromey  <tom@tromey.com>
3269         * dwarf2/read.c (dwarf2_access_attribute): Rename from
3270         dwarf2_default_access_attribute.  Look up attribute.
3271         (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3272         Update.
3274 2020-09-29  Tom Tromey  <tom@tromey.com>
3276         * dwarf2/read.c (skip_one_die): Update.
3277         (read_full_die_1): Change how reprocessing is done.
3278         (partial_die_info::read): Update.
3279         (read_attribute_value): Remove need_reprocess parameter.
3280         (read_attribute): Likewise.
3281         * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3282         New method.
3284 2020-09-29  Tom Tromey  <tom@tromey.com>
3286         * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3287         (dwarf2_const_value_attr, dump_die_shallow)
3288         (dwarf2_fetch_constant_bytes): Update.
3289         * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3290         comment.
3291         <set_address>: New method.
3292         (DW_ADDR): Remove.
3293         * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3294         (attribute::as_string, attribute::as_address): Add assert.
3296 2020-09-29  Tom Tromey  <tom@tromey.com>
3298         * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3299         (read_attribute_reprocess, read_attribute_value): Update.
3300         (read_attribute): Clear requires_reprocessing.
3301         * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3302         form_requires_reprocessing>: New methods.
3303         <string_init>: Clear requires_reprocessing.
3304         <set_unsigned_reprocess>: New method.
3305         <name>: Shrink by one bit.
3306         <requires_reprocessing>: New member.
3307         * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3308         method.
3310 2020-09-29  Tom Tromey  <tom@tromey.com>
3312         * dwarf2/read.c (read_attribute_value): Update.
3313         * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3314         set_unsigned>: New methods.
3315         * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3317 2020-09-29  Tom Tromey  <tom@tromey.com>
3319         * dwarf2/read.c (get_alignment, read_array_order)
3320         (read_attribute_value, dwarf2_const_value_attr)
3321         (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3322         * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3323         New methods.
3324         (DW_SND): Remove.
3326 2020-09-29  Tom Tromey  <tom@tromey.com>
3328         * dwarf2/read.c (read_attribute_value, lookup_die_type)
3329         (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3330         Update.
3331         * dwarf2/attribute.h (struct attribute) <as_signature,
3332         set_signature>: New methods.
3333         (DW_SIGNATURE): Remove.
3335 2020-09-29  Tom Tromey  <tom@tromey.com>
3337         * dwarf2/read.c (read_call_site_scope)
3338         (handle_data_member_location, dwarf2_add_member_fn)
3339         (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3340         (partial_die_info::read, read_attribute_value)
3341         (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3342         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3343         (dwarf2_symbol_mark_computed): Update.
3344         * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3345         methods.
3346         (DW_BLOCK): Remove.
3347         * dwarf2/attribute.c (attribute::form_is_block): Add
3348         DW_FORM_data16.
3350 2020-09-29  Tom Tromey  <tom@tromey.com>
3352         * dwarf2/read.c (read_cutu_die_from_dwo)
3353         (read_attribute_reprocess, read_attribute_value, read_attribute)
3354         (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3355         (dwarf2_fetch_constant_bytes): Update.
3356         * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3357         <set_string_noncanonical, set_string_canonical>: New methods.
3358         <string_is_canonical>: Update comment.
3359         <canonical_string_p>: Add assert.
3360         (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3361         * dwarf2/attribute.c (attribute::form_is_string): New method.
3362         (attribute::string): Use it.
3364 2020-09-29  Tom Tromey  <tom@tromey.com>
3366         * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3367         (dump_die_shallow): Use canonical_string_p.
3368         * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3369         method.
3371 2020-09-29  Tom Tromey  <tom@tromey.com>
3373         * dwarf2/read.c (partial_die_info::read)
3374         (dwarf2_const_value_attr, anonymous_struct_prefix, )
3375         (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3376         attribute::as_string.
3378 2020-09-29  Tom Tromey  <tom@tromey.com>
3380         * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3381         DW_ADDR.
3382         (attribute::string): Don't use DW_STRING.
3383         (attribute::get_ref_die_offset): Don't use DW_UNSND.
3384         (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3386 2020-09-29  Tom Tromey  <tom@tromey.com>
3388         * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3389         (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3390         (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3391         * dwarf2/attribute.h (struct attribute): Rename methods.
3392         * dwarf2/attribute.c (attribute::as_address): Rename from
3393         value_as_address.
3394         (attribute::as_string): Rename from value_as_string.
3396 2020-09-29  Tom Tromey  <tom@tromey.com>
3398         * dwarf2/read.c (partial_die_info::read) <case
3399         DW_AT_linkage_name>: Use value_as_string.
3400         (dwarf2_string_attr): Use value_as_string.
3401         * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3402         method.
3403         * dwarf2/attribute.c (attribute::value_as_string): New method.
3405 2020-09-29  Pedro Alves  <pedro@palves.net>
3407         * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3408         defined before using '#pragma GCC diagnostic' instead of checking
3409         __clang__.
3411 2020-09-28  Tom Tromey  <tom@tromey.com>
3413         * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3414         (handle_signal_stop): Update.
3415         * procfs.c (procfs_target::insert_watchpoint): Update.
3416         * target.h (target_have_steppable_watchpoint): Now a function.
3418 2020-09-28  Tom Tromey  <tom@tromey.com>
3420         * infrun.c (set_schedlock_func): Update.
3421         * target.h (target_can_lock_scheduler): Now a function.
3423 2020-09-28  Tom Tromey  <tom@tromey.com>
3425         * inferior.h (class inferior) <has_execution>: Update.
3426         * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3427         * valops.c (find_function_in_inferior)
3428         (value_allocate_space_in_inferior): Update.
3429         * top.c (kill_or_detach): Update.
3430         * target.c (target_preopen, set_target_permissions): Update.
3431         (target_has_execution_current): Remove.
3432         * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3433         Update.
3434         * solib.c (update_solib_list, reload_shared_libraries): Update.
3435         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3436         * solib-dsbt.c (enable_break): Update.
3437         * score-tdep.c (score7_fetch_inst): Update.
3438         * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3439         Update.
3440         * remote.c (remote_target::start_remote)
3441         (remote_target::remote_check_symbols, remote_target::open_1)
3442         (remote_target::remote_detach_1, remote_target::verify_memory)
3443         (remote_target::xfer_partial, remote_target::read_description)
3444         (remote_target::get_min_fast_tracepoint_insn_len): Update.
3445         * record-full.c (record_full_open_1): Update.
3446         * record-btrace.c (record_btrace_target_open): Update.
3447         * objc-lang.c (lookup_objc_class, lookup_child_selector)
3448         (value_nsstring): Update.
3449         * linux-thread-db.c (add_thread_db_info)
3450         (thread_db_find_new_threads_silently, check_thread_db_callback)
3451         (try_thread_db_load_1, record_thread): Update.
3452         * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3453         Update.
3454         * linux-fork.c (checkpoint_command): Update.
3455         * infrun.c (set_non_stop, set_observer_mode)
3456         (check_multi_target_resumption, for_each_just_stopped_thread)
3457         (maybe_remove_breakpoints, normal_stop)
3458         (class infcall_suspend_state): Update.
3459         * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3460         (info_program_command, attach_command): Update.
3461         * infcall.c (call_function_by_hand_dummy): Update.
3462         * inf-loop.c (inferior_event_handler): Update.
3463         * gcore.c (gcore_command, derive_heap_segment): Update.
3464         * exec.c (exec_file_command): Update.
3465         * eval.c (evaluate_subexp): Update.
3466         * compile/compile.c (compile_to_object): Update.
3467         * cli/cli-dump.c (restore_command): Update.
3468         * breakpoint.c (update_watchpoint)
3469         (update_inserted_breakpoint_locations)
3470         (insert_breakpoint_locations, get_bpstat_thread): Update.
3471         * target.h (target_has_execution): Remove macro.
3472         (target_has_execution_current): Don't declare.
3473         (target_has_execution): Rename from target_has_execution_1.  Add
3474         argument default.
3476 2020-09-28  Tom Tromey  <tom@tromey.com>
3478         * mi/mi-main.c (exec_reverse_continue)
3479         (mi_cmd_list_target_features): Update.
3480         * infrun.c (set_exec_direction_func): Update.
3481         * target.c (default_execution_direction): Update.
3482         * reverse.c (exec_reverse_once): Update.
3483         * target.h (target_can_execute_reverse): Now a function.
3485 2020-09-28  Tom Tromey  <tom@tromey.com>
3487         * tui/tui-regs.c (tui_get_register)
3488         (tui_data_window::show_registers): Update.
3489         * thread.c (scoped_restore_current_thread::restore)
3490         (scoped_restore_current_thread::scoped_restore_current_thread):
3491         Update.
3492         * regcache-dump.c (regcache_print): Update.
3493         * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3494         Update.
3495         * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3496         * mep-tdep.c (current_me_module, current_options): Update.
3497         * linux-thread-db.c (thread_db_load): Update.
3498         * infcmd.c (registers_info, info_vector_command)
3499         (info_float_command): Update.
3500         * ia64-tdep.c (ia64_frame_prev_register)
3501         (ia64_sigtramp_frame_prev_register): Update.
3502         * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3503         * gcore.c (derive_stack_segment): Update.
3504         * frame.c (get_current_frame, has_stack_frames): Update.
3505         * findvar.c (language_defn::read_var_value): Update.
3506         * arm-tdep.c (arm_pc_is_thumb): Update.
3507         * target.c (target_has_registers): Rename from
3508         target_has_registers_1.
3509         * target.h (target_has_registers): Remove macro.
3510         (target_has_registers): Rename from target_has_registers_1.
3512 2020-09-28  Tom Tromey  <tom@tromey.com>
3514         * windows-tdep.c (tlb_make_value): Update.
3515         * tui/tui-regs.c (tui_data_window::show_registers): Update.
3516         * thread.c (scoped_restore_current_thread::restore)
3517         (scoped_restore_current_thread::scoped_restore_current_thread)
3518         (thread_command): Update.
3519         * stack.c (backtrace_command_1, frame_apply_level_command)
3520         (frame_apply_all_command, frame_apply_command): Update.
3521         * infrun.c (siginfo_make_value, restore_infcall_control_state):
3522         Update.
3523         * gcore.c (derive_stack_segment): Update.
3524         * frame.c (get_current_frame, has_stack_frames): Update.
3525         * auxv.c (info_auxv_command): Update.
3526         * ada-tasks.c (ada_build_task_list): Update.
3527         * target.c (target_has_stack): Rename from target_has_stack_1.
3528         * target.h (target_has_stack): Remove macro.
3529         (target_has_stack): Rename from target_has_stack_1.
3531 2020-09-28  Tom Tromey  <tom@tromey.com>
3533         * target.c (target_has_memory): Rename from target_has_memory_1.
3534         * tui/tui-regs.c (tui_data_window::show_registers): Update.
3535         * thread.c (scoped_restore_current_thread::restore)
3536         (scoped_restore_current_thread::scoped_restore_current_thread):
3537         Update.
3538         * frame.c (get_current_frame, has_stack_frames): Update.
3539         * target.h (target_has_memory): Remove macro.
3540         (target_has_memory): Rename from target_has_memory_1.
3542 2020-09-28  Tom Tromey  <tom@tromey.com>
3544         * target.c (target_has_all_memory_1): Remove.
3545         * target.h (target_has_all_memory): Remove define.
3546         (target_has_all_memory_1): Don't declare.
3548 2020-09-28  Simon Marchi  <simon.marchi@polymtl.ca>
3550         * ser-base.c: Adjust comments formatting.
3552 2020-09-27  Tom Tromey  <tom@tromey.com>
3554         PR tui/25342:
3555         * tui/tui-io.c (tui_puts): Rewrite.  Move earlier.
3557 2020-09-27  Tom Tromey  <tom@tromey.com>
3559         PR tui/25342:
3560         * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3562 2020-09-27  Tom Tromey  <tom@tromey.com>
3564         * unittests/tui-selftests.c: Update.
3565         * tui/tui-winsource.h (struct tui_source_window_base)
3566         <extra_margin, show_line_number, refresh_pad>: New methods.
3567         <m_max_length, m_pad>: New members.
3568         (tui_copy_source_line): Update.
3569         * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3570         first_col, line_width, ndigits parameters.  Add length.
3571         (tui_source_window_base::show_source_line): Write to pad.  Line
3572         number now 0-based.
3573         (tui_source_window_base::refresh_pad): New method.
3574         (tui_source_window_base::show_source_content): Write to pad.  Call
3575         refresh_pad.
3576         (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3577         not refill.
3578         (tui_source_window_base::update_exec_info): Call
3579         show_line_number.
3580         * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3581         method.
3582         <m_digits>: New member.
3583         * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3584         and m_max_length.
3585         (tui_source_window::show_line_number): New method.
3586         * tui/tui-io.h (tui_puts): Fix comment.
3587         * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3588         m_max_length.
3590 2020-09-27  Tom Tromey  <tom@tromey.com>
3592         * tui/tui-winsource.c
3593         (tui_source_window_base::set_is_exec_point_at): Don't call
3594         show_source_line.
3596 2020-09-27  Tom Tromey  <tom@tromey.com>
3598         * python/py-tui.c (class tui_py_window) <refresh_window>: New
3599         method.
3600         <erase>: Update.
3601         <cursor_x, cursor_y>: Remove.
3602         <m_inner_window>: New member.
3603         (tui_py_window::rerender): Create inner window.
3604         (tui_py_window::output): Write to inner window.
3606 2020-09-26  Gareth Rees <grees@undo.io>  (tiny change)
3608         PR python/26586
3609         * cli/cli-script.c (execute_control_commands): don't set
3610         instream to nullptr here as this breaks the from_tty argument
3611         to gdb.execute in Python.
3612         (execute_user_command): set instream to nullptr here instead.
3614 2020-09-25  Simon Marchi  <simon.marchi@efficios.com>
3616         * infrun.h (infrun_debug_printf): Fix formatting.
3617         * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3619 2020-09-25  Saagar Jha  <saagar@saagarjha.com>
3621         * compile/compile-object-load.h (struct munmap_list): Add
3622         explicitly-defined move constructor.
3624 2020-09-24  Tom Tromey  <tromey@adacore.com>
3626         PR tui/26638:
3627         * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3628         method.
3629         * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3630         * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3631         (tui_prev_win): Rewrite.
3633 2020-09-23  Hannes Domani  <ssbssa@yahoo.de>
3635         * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3636         in WOW64 processes as SIGINT.
3637         * nat/windows-nat.h: Make wow64_process a shared variable.
3638         * windows-nat.c: Remove static wow64_process variable.
3640 2020-09-23  Tom Tromey  <tom@tromey.com>
3642         PR symtab/25470:
3643         * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3644         offset and bit size.
3645         * printcmd.c (print_scalar_formatted): Handle zero-length
3646         integer.
3647         (print_scalar_formatted): Use bit_size_differs_p.
3648         * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3649         constant.
3650         (union type_specific): <int_stuff>: New member.
3651         (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3652         methods.
3653         * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3654         TYPE_SPECIFIC_FIELD.
3655         (recursive_dump_type, copy_type_recursive): Update.
3656         * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3657         DW_AT_data_bit_offset.
3659 2020-09-23  Tom Tromey  <tom@tromey.com>
3661         * utils.h (class gdb_argv): Add move operators.
3662         <append>: New methods.
3663         * compile/compile.c (build_argc_argv): Remove.
3664         (compile_args_argc): Remove.
3665         (compile_args_argv): Change type.
3666         (set_compile_args): Simplify.
3667         (append_args): Remove.
3668         (filter_args): Remove argcp parameter.
3669         (get_args): Return gdb_argv.  Simplify.
3670         (compile_to_object): Update.
3672 2020-09-23  Tom Tromey  <tom@tromey.com>
3674         * compile/compile-object-run.c (do_module_cleanup)
3675         <~do_module_cleanup> :Remove.
3676         (do_module_cleanup): Update.
3677         * compile/compile-object-load.h (struct munmap_list): Add move
3678         assignment operator.
3679         <source_file>: Now a std::string.
3680         <munmap_list>: Rename.  No longer a pointer.
3681         * compile/compile-object-load.c (struct setup_sections_data): Add
3682         constructor.
3683         <setup_one_section>: Declare.
3684         <munmap_list>: Move earlier.
3685         <m_bfd>: New member.
3686         <m_last_size, m_last_section_first, m_last_prot,
3687         m_last_max_alignment>: Rename, add initializers where needed.
3688         (setup_sections_data::setup_one_section): Rename from
3689         setup_sections.  Update.
3690         (compile_object_load): Update.  Don't use bfd_map_over_sections.
3692 2020-09-23  Tom Tromey  <tom@tromey.com>
3694         * compile/compile-object-run.c (struct do_module_cleanup): Add
3695         parameters to constructor.  Update destructor.
3696         <source_file, scope, scope_data, out_value_type, out_value_addr,
3697         munmap_list_head, objfile_name_string>: Remove.
3698         <module>: New member.
3699         (do_module_cleanup): Update.
3700         (compile_object_run): Update.
3702 2020-09-23  Tom Tromey  <tom@tromey.com>
3704         * compile/compile.c (eval_compile_command): Update.
3705         * compile/compile-object-run.h (compile_object_run): Take a
3706         compile_module_up.
3707         * compile/compile-object-run.c (compile_object_run): Take a
3708         compile_module_up.
3709         * compile/compile-object-load.h (struct compile_module): Add
3710         constructor, destructor.
3711         (compile_module_up): New typedef.
3712         (compile_object_load): Return compile_object_up.
3713         * compile/compile-object-load.c (compile_object_load): Return
3714         compile_module_up.
3716 2020-09-23  Tom Tromey  <tom@tromey.com>
3718         * compile/compile-object-run.c (struct do_module_cleanup): Add
3719         constructor, destructor.
3720         <objfile_name_string>: Don't use struct hack.
3721         (do_module_cleanup): Use delete.
3722         (compile_object_run): Use new.
3724 2020-09-23  Tom Tromey  <tom@tromey.com>
3726         * compile/compile-cplus-types.c
3727         (compile_cplus_convert_struct_or_union): Use std::vector.
3728         (compile_cplus_convert_func): Likewise.
3729         * compile/compile-c-types.c (convert_func): Use std::vector.
3731 2020-09-21  Tom Tromey  <tromey@adacore.com>
3733         * sparc-tdep.c (sparc32_skip_prologue): Use
3734         skip_prologue_using_sal.
3736 2020-09-19  Tom Tromey  <tom@tromey.com>
3738         * symfile.c (add_section_size_callback): Remove.
3739         (load_one_section): Rename from load_section_callback.  Change
3740         parameters.
3741         (generic_load): Use foreach.
3743 2020-09-19  Tom Tromey  <tom@tromey.com>
3745         * exec.c (add_to_section_table): Remove.
3746         (build_section_table): Use foreach.
3748 2020-09-19  Tom Tromey  <tom@tromey.com>
3750         * elfread.c (elf_locate_sections): Change parameters.
3751         (elf_symfile_read): Use foreach.
3753 2020-09-19  Tom Tromey  <tom@tromey.com>
3755         * cli/cli-dump.c (struct callback_data): Remove.
3756         (restore_one_section): Rename from restore_section_callback.
3757         Change parameters.
3758         (restore_binary_file): Change parameters.
3759         (restore_command): Use foreach.
3761 2020-09-19  Tom Tromey  <tom@tromey.com>
3763         * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3764         (gcore_copy_callback): Likewise.
3765         (gcore_memory_sections): Use foreach.
3767 2020-09-19  Tom Tromey  <tom@tromey.com>
3769         * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3770         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3771         parameters.
3772         (generic_elf_osabi_sniffer): Use foreach.
3773         * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3774         * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3776 2020-09-19  Tom Tromey  <tom@tromey.com>
3778         * dwarf2/read.c (locate_dwz_sections): Change parameters.
3779         (dwarf2_get_dwz_file): Use foreach.
3780         (dwarf2_locate_dwo_sections): Change parameters.
3781         (open_and_init_dwo_file): Use foreach.
3782         (dwarf2_locate_common_dwp_sections): Change parameters.
3783         (open_and_init_dwp_file): Use foreach.
3785 2020-09-19  Tom Tromey  <tom@tromey.com>
3787         * symfile.h: (find_lowest_section): Don't declare.
3788         * symfile.c (find_lowest_section): Now static.  Change
3789         parameters.
3790         (struct place_section_arg): Remove.
3791         (place_section): Change parameters.
3792         (addr_info_make_relative): Use foreach.
3793         (symfile_dummy_outputs): Remove.
3794         (default_symfile_relocate): Use foreach.
3796 2020-09-19  Tom Tromey  <tom@tromey.com>
3798         * objfiles.c (add_to_objfile_sections): Rename from
3799         add_to_objfile_sections_full.
3800         (add_to_objfile_sections): Remove.
3801         (build_objfile_section_table): Use foreach.
3803 2020-09-19  Tom Tromey  <tom@tromey.com>
3805         * stap-probe.c (get_stap_base_address_1): Remove.
3806         (get_stap_base_address): Use foreach.
3808 2020-09-19  Tom Tromey  <tom@tromey.com>
3810         * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3811         parameters.
3812         (gdb_bfd_close_or_warn): Use foreach.
3814 2020-09-19  Tom Tromey  <tom@tromey.com>
3816         * corelow.c (add_to_thread_list): Change parameters.
3817         (core_target_open): Use foreach.
3819 2020-09-19  Tom Tromey  <tom@tromey.com>
3821         * gdb_bfd.h (gdb_bfd_sections): New overload.  Fix formatting of
3822         existing function.
3824 2020-09-19  Andrew Burgess  <andrew.burgess@embecosm.com>
3826         * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3827         for arrays.
3829 2020-09-19  Andrew Burgess  <andrew.burgess@embecosm.com>
3831         * eval.c: Remove 'f-lang.h' include.
3832         (value_f90_subarray): Moved to f-lang.c.
3833         (eval_call): Renamed to...
3834         (evaluate_subexp_do_call): ...this, is no longer static, header
3835         comment moved into header file.
3836         (evaluate_funcall): Update call to eval_call.
3837         (skip_undetermined_arglist): Moved to f-lang.c.
3838         (fortran_value_subarray): Likewise.
3839         (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3840         moved to evaluate_subexp_f.
3841         (calc_f77_array_dims): Moved to f-lang.c
3842         * expprint.c (print_subexp_funcall): New function.
3843         (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3844         moved to print_subexp_f, OP_FUNCALL uses new function.
3845         (dump_subexp_body_funcall): New function.
3846         (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3847         moved to dump_subexp_f, OP_FUNCALL uses new function.
3848         * expression.h (evaluate_subexp_do_call): Declare.
3849         * f-lang.c (value_f90_subarray): Moved from eval.c.
3850         (skip_undetermined_arglist): Likewise.
3851         (calc_f77_array_dims): Likewise.
3852         (fortran_value_subarray): Likewise.
3853         (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3854         (operator_length_f): Likewise.
3855         (print_subexp_f): Likewise.
3856         (dump_subexp_body_f): Likewise.
3857         * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3858         declaration of this operation to here.
3859         * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3860         support moved to operator_length_f.
3861         * parser-defs.h (dump_subexp_body_funcall): Declare.
3862         (print_subexp_funcall): Declare.
3863         * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3864         fortran-operator.def.
3866 2020-09-19  Andrew Burgess  <andrew.burgess@embecosm.com>
3868         * eval.c (fortran_value_subarray): New function, content is taken
3869         from...
3870         (evaluate_subexp_standard): ...here, in two places.  Now arrays
3871         and strings both call the new function.
3872         (calc_f77_array_dims): Add header comment, handle strings.
3874 2020-09-18  Victor Collod  <vcollod@nvidia.com>
3876         PR gdb/26635
3877         * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3878         (i386_analyze_prologue): Call i386_skip_endbr.
3880 2020-09-18  Tom Tromey  <tromey@adacore.com>
3882         * windows-nat.c (struct windows_nat_target) <wait>: Update.
3883         (windows_nat_target::wait): Update.
3884         * target/wait.h (enum target_wait_flag): New.  Use
3885         DEF_ENUM_FLAGS_TYPE.
3886         * target/target.h (target_wait): Change type of options.
3887         * target.h (target_options_to_string, default_target_wait):
3888         Update.
3889         (struct target_ops) <wait>: Change type of options.
3890         * target.c (target_wait, default_target_wait, do_option): Change
3891         type of "options".
3892         (target_options_to_string): Likewise.
3893         * target-delegates.c: Rebuild.
3894         * target-debug.h (target_debug_print_target_wait_flags): Rename
3895         from target_debug_print_options.
3896         * sol-thread.c (class sol_thread_target) <wait>: Update.
3897         (sol_thread_target::wait): Update.
3898         * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3899         (rs6000_nat_target::wait): Update.
3900         * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3901         Update.
3902         (remote_target::wait_ns, remote_target::wait_as): Change type of
3903         "options".
3904         (remote_target::wait): Update.
3905         * remote-sim.c (struct gdbsim_target) <wait>: Update.
3906         (gdbsim_target::wait): Update.
3907         * record-full.c (class record_full_base_target) <wait>: Update.
3908         (record_full_wait_1): Change type of "options".
3909         (record_full_base_target::wait): Update.
3910         * record-btrace.c (class record_btrace_target) <wait>: Update.
3911         (record_btrace_target::wait): Update.
3912         * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3913         Update.
3914         (ravenscar_thread_target::wait): Update.
3915         * procfs.c (class procfs_target) <wait>: Update.
3916         (procfs_target::wait): Update.
3917         * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3918         * obsd-nat.c (obsd_nat_target::wait): Update.
3919         * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3920         (nto_procfs_target::wait): Update.
3921         * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3922         * nbsd-nat.c (nbsd_wait): Change type of "options".
3923         (nbsd_nat_target::wait): Update.
3924         * linux-thread-db.c (class thread_db_target) <wait>: Update.
3925         (thread_db_target::wait): Update.
3926         * linux-nat.h (class linux_nat_target) <wait>: Update.
3927         * linux-nat.c (linux_nat_target::wait): Update.
3928         (linux_nat_wait_1): Update.
3929         * infrun.c (do_target_wait_1, do_target_wait): Change type of
3930         "options".
3931         * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3932         * inf-ptrace.c (inf_ptrace_target::wait): Update.
3933         * go32-nat.c (struct go32_nat_target) <wait>: Update.
3934         (go32_nat_target::wait): Update.
3935         * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3936         * gnu-nat.c (gnu_nat_target::wait): Update.
3937         * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3938         * fbsd-nat.c (fbsd_nat_target::wait): Update.
3939         * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3940         * darwin-nat.c (darwin_nat_target::wait): Update.
3941         * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3942         (bsd_uthread_target::wait): Update.
3943         * aix-thread.c (class aix_thread_target) <wait>: Update.
3944         (aix_thread_target::wait): Update.
3946 2020-09-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3948         * compile/compile-object-run.c (create_copied_type_recursive): New
3949         function.
3950         (compile_object_run): Use new function.
3952 2020-08-21  Jon Turney  <jon.turney@dronecode.org.uk>
3954         * NEWS: Mention x86_64 Cygwin core file support.
3956 2020-07-01  Jon Turney  <jon.turney@dronecode.org.uk>
3958         * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3959         (core_process_module_section): Handle NOTE_INFO_MODULE64.
3961 2020-07-01  Jon Turney  <jon.turney@dronecode.org.uk>
3963         * windows-tdep.h: Add prototypes.
3964         * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3965         (i386_windows_core_pid_to_str): Move and rename ...
3966         * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3967         (windows_core_pid_to_str): ... and here.
3968         * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3970 2020-07-01  Jon Turney  <jon.turney@dronecode.org.uk>
3971         * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3972         (amd64_windows_init_abi_common): ... and register.
3974 2020-07-01  Jon Turney  <jon.turney@dronecode.org.uk>
3976         * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3977         (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3979 2020-09-18  Pedro Alves  <pedro@palves.net>
3981         PR gdb/26631
3982         * thread.c (thread_find_command): Switch inferior before calling
3983         target methods.
3985 2020-09-17  Tom Tromey  <tromey@adacore.com>
3987         * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3988         * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3989         (tdesc_arch_data_up): New typedef.
3990         (tdesc_use_registers, tdesc_data_alloc): Update.
3991         (tdesc_data_cleanup): Don't declare.
3992         * target-descriptions.c (tdesc_data_alloc): Return a
3993         tdesc_arch_data_up.
3994         (tdesc_arch_data_deleter::operator()): Rename from
3995         tdesc_data_cleanup.  Change argument type.
3996         (tdesc_use_registers): Change early_data to an rvalue reference.
3997         (tdesc_use_registers): Don't use delete.
3998         * sparc-tdep.c (sparc32_gdbarch_init): Update.
3999         * s390-tdep.c (s390_gdbarch_init): Update.
4000         * rx-tdep.c (rx_gdbarch_init): Update.
4001         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4002         * riscv-tdep.c (riscv_gdbarch_init): Update.
4003         * or1k-tdep.c (or1k_gdbarch_init): Update.
4004         * nios2-tdep.c (nios2_gdbarch_init): Update.
4005         * nds32-tdep.c (nds32_gdbarch_init): Update.
4006         * mips-tdep.c (mips_gdbarch_init): Update.
4007         * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4008         * m68k-tdep.c (m68k_gdbarch_init): Update.
4009         * i386-tdep.c (i386_gdbarch_init): Update.
4010         * arm-tdep.c (arm_gdbarch_init): Update.
4011         * arc-tdep.c (arc_tdesc_init): Update.
4012         (arc_gdbarch_init): Update.
4013         * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4015 2020-09-17  Hannes Domani  <ssbssa@yahoo.de>
4017         * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4018         for WOW64 processes.
4020 2020-09-17  Tom Tromey  <tom@tromey.com>
4022         * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4024 2020-09-17  Tom Tromey  <tom@tromey.com>
4026         * value.c (preserve_values): Update.
4027         * python/py-type.c (save_objfile_types): Update.
4028         * guile/scm-type.c (save_objfile_types): Update.
4029         * gdbtypes.h (create_copied_types_hash): Return htab_up.
4030         * gdbtypes.c (create_copied_types_hash): Return htab_up.
4031         * compile/compile-object-run.c (compile_object_run): Update.
4033 2020-09-17  Tom Tromey  <tom@tromey.com>
4035         * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4036         Remove.
4037         <m_table>: Now htab_up.
4038         * typeprint.c (typedef_hash_table::recursively_update)
4039         (typedef_hash_table::add_template_parameters)
4040         (typedef_hash_table::typedef_hash_table): Update.
4041         (typedef_hash_table::~typedef_hash_table): Remove.
4042         (typedef_hash_table::typedef_hash_table)
4043         (typedef_hash_table::find_global_typedef)
4044         (typedef_hash_table::find_typedef): Update.
4046 2020-09-17  Tom Tromey  <tom@tromey.com>
4048         * target-descriptions.c (tdesc_use_registers): Use htab_up.
4050 2020-09-17  Tom Tromey  <tom@tromey.com>
4052         * linespec.c (class decode_compound_collector)
4053         <~decode_compound_collector>: Remove.
4054         <m_unique_syms>: Now htab_up.
4055         (decode_compound_collector::operator ()): Update.
4056         (class symtab_collector) <~symtab_collector>: Remove.
4057         <m_symtab_table>: Now htab_up.
4058         (symtab_collector::operator ()): Update.
4060 2020-09-17  Tom Tromey  <tom@tromey.com>
4062         * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4063         (filename_seen_cache::clear): Update.
4064         (~filename_seen_cache): Remove.
4065         (filename_seen_cache::seen): Update.
4066         * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4067         htab_up.
4068         <~filename_seen_cache>: Remove.
4069         <traverse>: Update.
4071 2020-09-17  Tom Tromey  <tom@tromey.com>
4073         * completer.c (completion_tracker::discard_completions)
4074         (completion_tracker::~completion_tracker)
4075         (completion_tracker::maybe_add_completion)
4076         (completion_tracker::remove_completion)
4077         (completion_tracker::recompute_lowest_common_denominator)
4078         (completion_tracker::build_completion_result): Update.
4079         * completer.h (class completion_tracker) <have_completions>:
4080         Update.
4081         <m_entries_hash>: Now htab_up.
4083 2020-09-17  Tom Tromey  <tom@tromey.com>
4085         * breakpoint.c (ambiguous_names_p): Use htab_up.
4087 2020-09-17  Tom Tromey  <tom@tromey.com>
4089         * auto-load.c (struct auto_load_pspace_info)
4090         <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4091         <loaded_script_files, loaded_script_texts>: Change type to
4092         htab_up.
4093         (~auto_load_pspace_info) Remove.
4094         (init_loaded_scripts_info, maybe_add_script_file)
4095         (maybe_add_script_text, auto_load_info_scripts): Update.
4097 2020-09-17  Tom Tromey  <tromey@adacore.com>
4099         * c-exp.y (name_obstack): Now static.
4101 2020-09-17  Chungyi Chi  <demonic@csie.io>
4103         * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4105 2020-09-16  Simon Marchi  <simon.marchi@efficios.com>
4107         * breakpoint.h (init_catchpoint): Change int parameter to bool.
4108         (add_solib_catchpoint): Likewise.
4109         * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4110         to bool.
4111         (add_solib_catchpoint): Change int parameter/variable to bool.
4112         (catch_load_or_unload): Likewise.
4113         (init_catchpoint): Likewise.
4114         (create_fork_vfork_event_catchpoint): Likewise.
4115         (catch_fork_command_1): Likewise.
4116         (catch_exec_command_1): Likewise.
4118 2020-09-16  Simon Marchi  <simon.marchi@efficios.com>
4120         * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4121         Change instance_flags to m_instance_flags.
4123 2020-09-16  Tom Tromey  <tromey@adacore.com>
4125         PR gdb/26598:
4126         * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4128 2020-09-16  John Baldwin  <jhb@FreeBSD.org>
4130         * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4131         PL_FLAG_EXEC.
4132         (fbsd_nat_target::insert_exec_catchpoint)
4133         (fbsd_nat_target::remove_exec_catchpoint): Always define.
4134         * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4135         (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4137 2020-09-16  John Baldwin  <jhb@FreeBSD.org>
4139         * configure.ac: Remove check for kinfo_getvmmap().
4140         * configure, config.in: Regenerate.
4141         * fbsd-nat.c (fbsd_read_mapping): Remove
4142         (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4143         (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4144         kinfo_get_vmmap() are always present.
4146 2020-09-16  John Baldwin  <jhb@FreeBSD.org>
4148         * fbsd-nat.c: Always include support for
4149         TARGET_OBJECT_SIGNAL_INFO.
4151 2020-09-16  John Baldwin  <jhb@FreeBSD.org>
4153         * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4154         sysctl and remove procfs fallback.
4156 2020-09-16  John Baldwin  <jhb@FreeBSD.org>
4158         * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4159         * fbsd-nat.h: Likewise.
4161 2020-09-16  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
4163         * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4164         argument.
4166 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4168         * ada-lang.c (ada_language_data): Delete.
4169         (ada_language): Remove references to ada_language_data.
4170         * c-lang.c (c_language_data): Delete.
4171         (c_language): Remove references to c_language_data.
4172         (cplus_language_data): Delete.
4173         (cplus_language): Remove references to cplus_language_data.
4174         (asm_language_data): Delete.
4175         (asm_language): Remove references to asm_language_data.
4176         (minimal_language_data): Delete.
4177         (minimal_language): Remove references to minimal_language_data.
4178         * d-lang.c (d_language_data): Delete.
4179         (d_language): Remove references to d_language_data.
4180         * f-lang.c (f_language_data): Delete.
4181         (f_language): Remove references to f_language_data.
4182         * go-lang.c (go_language_data): Delete.
4183         (go_language): Remove references to go_language_data.
4184         * language.c (unknown_language_data): Delete.
4185         (unknown_language): Remove references to unknown_language_data.
4186         (auto_language_data): Delete.
4187         (auto_language): Remove references to auto_language_data.
4188         * language.h (language_data): Delete struct.
4189         (language_defn): No longer inherit from language_data.
4190         * m2-lang.c (m2_language_data): Delete.
4191         (m2_language): Remove references to m2_language_data.
4192         * objc-lang.c (objc_language_data): Delete.
4193         (objc_language): Remove references to objc_language_data.
4194         * opencl-lang.c (opencl_language_data): Delete.
4195         (opencl_language): Remove references to opencl_language_data.
4196         * p-lang.c (pascal_language_data): Delete.
4197         (pascal_language): Remove references to pascal_language_data.
4198         * rust-lang.c (rust_language_data): Delete.
4199         (rust_language): Remove references to rust_language_data.
4201 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4203         * ada-lang.c (ada_language_data): Remove la_op_print_tab
4204         initializer.
4205         (ada_language::opcode_print_table): New member function.
4206         * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4207         (c_language::opcode_print_table): New member function.
4208         (cplus_language_data): Remove la_op_print_tab initializer.
4209         (cplus_language::opcode_print_table): New member function.
4210         (asm_language_data): Remove la_op_print_tab initializer.
4211         (asm_language::opcode_print_table): New member function.
4212         (minimal_language_data): Remove la_op_print_tab initializer.
4213         (minimal_language::opcode_print_table): New member function.
4214         * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4215         (d_language::opcode_print_table): New member function.
4216         * expprint.c (print_subexp_standard): Update call to
4217         opcode_print_table.
4218         (op_string): Likewise.
4219         * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4220         (f_language::opcode_print_table): New member function.
4221         * go-lang.c (go_language_data): Remove la_op_print_tab
4222         initializer.
4223         (go_language::opcode_print_table): New member function.
4224         * language.c (unknown_language_data): Remove la_op_print_tab
4225         initializer.
4226         (unknown_language::opcode_print_table): New member function.
4227         (auto_language_data): Remove la_op_print_tab initializer.
4228         (auto_language::opcode_print_table): New member function.
4229         * language.h (language_data): Remove la_op_print_tab field.
4230         (language_defn::opcode_print_table): Declare new member function.
4231         * m2-lang.c (m2_language_data): Remove la_op_print_tab
4232         initializer.
4233         (m2_language::opcode_print_table): New member function.
4234         * objc-lang.c (objc_language_data): Remove la_op_print_tab
4235         initializer.
4236         (objc_language::opcode_print_table): New member function.
4237         * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4238         initializer.
4239         (opencl_language::opcode_print_table): New member function.
4240         * p-lang.c (pascal_language_data): Remove la_op_print_tab
4241         initializer.
4242         (pascal_language::opcode_print_table): New member function.
4243         * rust-lang.c (rust_language_data): Remove la_op_print_tab
4244         initializer.
4245         (rust_language::opcode_print_table): New member function.
4247 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4249         * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4250         (ada_language::expression_ops): New member function.
4251         * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4252         (c_language::expression_ops): New member function.
4253         (cplus_language_data): Remove la_exp_desc initializer.
4254         (cplus_language::expression_ops): New member function.
4255         (asm_language_data): Remove la_exp_desc initializer.
4256         (asm_language::expression_ops): New member function.
4257         (minimal_language_data): Remove la_exp_desc initializer.
4258         (minimal_language::expression_ops): New member function.
4259         * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4260         (d_language::expression_ops): New member function.
4261         * eval.c (evaluate_subexp): Update call to expression_ops.
4262         * expprint.c (print_subexp): Likewise.
4263         (op_name): Likewise.
4264         (dump_subexp_body): Likewise.
4265         * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4266         (f_language::expression_ops): New member function.
4267         * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4268         (go_language::expression_ops): New member function.
4269         * language.c (language_defn::expression_ops): New function.
4270         (unknown_language_data): Remove la_exp_desc initializer.
4271         (auto_language_data): Likewise.
4272         * language.h (language_data): Remove la_exp_desc field.
4273         (language_defn::expression_ops): Declare new member function.
4274         * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4275         (m2_language::expression_ops): New member function.
4276         * objc-lang.c (objc_language_data): Remove la_exp_desc
4277         initializer.
4278         * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4279         initializer.
4280         (opencl_language::expression_ops): New member function.
4281         * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4282         * parse.c (operator_length): Update call to expression_ops.
4283         (exp_iterate): Likewise.
4284         * rust-lang.c (rust_language_data): Remove la_exp_desc
4285         initializer.
4286         (ruse_language::expression_ops): New member function.
4288 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4290         * ada-lang.c (ada_language_data): Remove la_varobj_ops
4291         initializer.
4292         (ada_language::varobj_ops): New member function.
4293         * c-lang.c (c_language_data): Remove la_varobj_ops
4294         initializer.
4295         (cplus_language_data): Likewise.
4296         (cplus_language::varobj_ops): New member function.
4297         (asm_language_data): Remove la_varobj_ops initializer.
4298         (minimal_language_data): Likewise.
4299         * d-lang.c (d_language_data): Likewise.
4300         * f-lang.c (f_language_data): Likewise.
4301         * go-lang.c (go_language_data): Likewise.
4302         * language.c (language_defn::varobj_ops): New function.
4303         (unknown_language_data): Remove la_varobj_ops
4304         initializer.
4305         (auto_language_data): Likewise.
4306         * language.h (language_data): Remove la_varobj_ops field.
4307         (language_defn::varobj_ops): Declare new member function.
4308         * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4309         * objc-lang.c (objc_language_data): Likewise.
4310         * opencl-lang.c (opencl_language_data): Likewise.
4311         * p-lang.c (pascal_language_data): Likewise.
4312         * rust-lang.c (rust_language_data): Likewise.
4313         * varobj.c (varobj_create): Update call to varobj_ops.
4314         * varobj.h (default_varobj_ops): Delete define.
4316 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4318         * ada-lang.c (ada_language_data): Remove la_macro_expansion
4319         initializer.
4320         * c-lang.c (c_language_data): Likewise.
4321         (c_language::macro_expansion): New member function.
4322         (cplus_language_data): Likewise.
4323         (cplus_language::macro_expansion): New member function.
4324         (asm_language_data): Likewise.
4325         (asm_language::macro_expansion): New member function.
4326         (minimal_language_data): Likewise.
4327         (minimal_language::macro_expansion): New member function.
4328         * d-lang.c (d_language_data): Remove la_macro_expansion
4329         initializer.
4330         * f-lang.c (f_language_data): Likewise.
4331         * go-lang.c (go_language_data): Likewise.
4332         * language.c (unknown_language_data): Likewise.
4333         (auto_language_data): Likewise.
4334         * language.h (language_data): Remove la_macro_expansion field.
4335         (language_defn::macro_expansion): New member function.
4336         * m2-lang.c (m2_language_data): Remove la_macro_expansion
4337         initializer.
4338         * objc-lang.c (objc_language_data): Likewise.
4339         (objc_language::macro_expansion): New member function.
4340         * opencl-lang.c (opencl_language_data): Likewise.
4341         (opencl_language::macro_expansion): New member function.
4342         * p-lang.c (pascal_language_data): Remove la_macro_expansion
4343         initializer.
4344         * rust-lang.c (rust_language_data): Likewise.
4345         * symtab.c (default_collect_symbol_completion_matches_break_on):
4346         Update call to macro_expansion.
4348 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4350         * ada-lang.c (ada_language_data): Remove la_array_ordering
4351         initializer.
4352         * c-lang.c (c_language_data): Likewise.
4353         (cplus_language_data): Likewise.
4354         (asm_language_data): Likewise.
4355         (minimal_language_data): Likewise.
4356         * d-lang.c (d_language_data): Likewise.
4357         * dwarf2/read.c (read_array_order): Update for call to
4358         array_ordering.
4359         * f-lang.c (f_language_data): Remove la_array_ordering
4360         initializer.
4361         (f_language::array_ordering): New member function.
4362         * go-lang.c (go_language_data): Remove la_array_ordering
4363         initializer.
4364         * language.c (unknown_language_data): Likewise.
4365         (auto_language_data): Likewise.
4366         * language.h (language_data): Delete la_array_ordering field.
4367         (language_defn::array_ordering): New member function.
4368         * m2-lang.c (m2_language_data): Remove la_array_ordering
4369         initializer.
4370         * objc-lang.c (objc_language_data): Likewise.
4371         * opencl-lang.c (opencl_language_data): Likewise.
4372         * p-lang.c (pascal_language_data): Likewise.
4373         * rust-lang.c (rust_language_data): Likewise.
4375 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4377         * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4378         initializer.
4379         * c-lang.c (c_language_data): Likewise.
4380         (cplus_language_data): Likewise.
4381         (asm_language_data): Likewise.
4382         (minimal_language_data): Likewise.
4383         * d-lang.c (d_language_data): Likewise.
4384         * f-lang.c (f_language_data): Likewise.
4385         (f_language::case_sensitivity): New member function.
4386         * go-lang.c (go_language_data): Remove la_case_sensitivity
4387         initializer.
4388         * language.c (enum case_mode): Moved here from language.h.
4389         (case_mode): Make static.
4390         (show_case_command): Update for case_sensitivity being a method.
4391         (set_case_command): Likewise.
4392         (set_range_case): Likewise.
4393         (unknown_language_data): Remove la_case_sensitivity initializer.
4394         (auto_language_data): Likewise.
4395         * language.h (case_mode): Delete, move enum declaration to
4396         language.c.
4397         (language_data): Delete la_case_sensitivity field.
4398         (language_defn::case_sensitivity): New member function.
4399         * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4400         initializer.
4401         * objc-lang.c (objc_language_data): Likewise.
4402         * opencl-lang.c (opencl_language_data): Likewise.
4403         * p-lang.c (pascal_language_data): Likewise.
4404         * rust-lang.c (rust_language_data): Likewise.
4406 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4408         * ada-lang.c (ada_language_data): Remove la_range_check
4409         initializer.
4410         * c-lang.c (c_language_data): Likewise.
4411         (cplus_language_data): Likewise.
4412         (asm_language_data): Likewise.
4413         (minimal_language_data): Likewise.
4414         * d-lang.c (d_language_data): Likewise.
4415         * f-lang.c (f_language_data): Likewise.
4416         (f_language::range_checking_on_by_default): New member function.
4417         * go-lang.c (go_language_data): Remove la_range_check initializer.
4418         * language.c (enum range_mode): Moved here from language.h.
4419         (range_mode): Made static.
4420         (show_range_command): Update to use
4421         range_checking_on_by_default.
4422         (set_range_command): Likewise.
4423         (set_range_case): Likewise.
4424         (unknown_language_data): Remove la_range_check initializer.
4425         (auto_language_data): Likewise.
4426         * language.h (range_mode): Delete.  Enum definition moved to
4427         language.c.
4428         (language_data): Remove la_range_check field.
4429         (language_defn::range_checking_on_by_default): New member
4430         function.
4431         * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4432         (m2_language::range_checking_on_by_default): New member function.
4433         * objc-lang.c (objc_language_data): Remove la_range_check
4434         initializer.
4435         * opencl-lang.c (opencl_language_data): Likewise.
4436         * p-lang.c (pascal_language_data): Likewise.
4437         (pascal_language::range_checking_on_by_default): New member
4438         function.
4439         * rust-lang.c (rust_language_data): Remove la_range_check
4440         initializer.
4441         (rust_language::range_checking_on_by_default): New member
4442         function.
4444 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4446         * dwarf2/read.c (dwarf2_physname): Remove special case for
4447         language_go.
4448         * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4449         member function.
4451 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4453         * ada-lang.c (ada_language_data): Remove
4454         la_store_sym_names_in_linkage_form_p initializer.
4455         (ada_language::store_sym_names_in_linkage_form_p): New member
4456         function.
4457         * c-lang.c (c_language_data): Remove
4458         la_store_sym_names_in_linkage_form_p initializer.
4459         (c_language::store_sym_names_in_linkage_form_p): New member
4460         function.
4461         (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4462         initializer.
4463         (asm_language_data): Likewise.
4464         (asm_language::store_sym_names_in_linkage_form_p): New member
4465         function.
4466         (minimal_language_data): Remove
4467         la_store_sym_names_in_linkage_form_p initializer.
4468         (minimal_language::store_sym_names_in_linkage_form_p): New member
4469         function.
4470         * d-lang.c (d_language_data): Remove
4471         la_store_sym_names_in_linkage_form_p initializer.
4472         * dwarf2/read.c (dwarf2_physname): Update call to
4473         store_sym_names_in_linkage_form_p.
4474         * f-lang.c (f_language_data): Remove
4475         la_store_sym_names_in_linkage_form_p initializer.
4476         * go-lang.c (go_language_data): Remove
4477         la_store_sym_names_in_linkage_form_p initializer.
4478         * language.c (unknown_language_data): Remove
4479         la_store_sym_names_in_linkage_form_p initializer.
4480         (unknown_language::store_sym_names_in_linkage_form_p): New member
4481         function.
4482         (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4483         initializer.
4484         (auto_language::store_sym_names_in_linkage_form_p): New member
4485         function.
4486         * language.h (language_data): Remove
4487         la_store_sym_names_in_linkage_form_p member variable.
4488         (language_defn::store_sym_names_in_linkage_form_p): New member
4489         function.
4490         * m2-lang.c (m2_language_data): Remove
4491         la_store_sym_names_in_linkage_form_p initializer.
4492         * objc-lang.c (objc_language_data): Likewise.
4493         * opencl-lang.c (opencl_language_data): Likewise.
4494         * p-lang.c (pascal_language_data): Likewise.
4495         * rust-lang.c (rust_language_data): Likewise.
4497 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4499         * ada-lang.c (ada_language_data): Remove string_lower_bound
4500         initializer.
4501         * c-lang.c (c_language_data): Likewise.
4502         (cplus_language_data): Likewise.
4503         (asm_language_data): Likewise.
4504         (minimal_language_data): Likewise.
4505         * d-lang.c (d_language_data): Likewise.
4506         * f-lang.c (f_language_data): Likewise.
4507         * go-lang.c (go_language_data): Likewise.
4508         * language.c (unknown_language_data): Likewise.
4509         (auto_language_data): Likewise.
4510         * language.h (language_data): Remove string_lower_bound field.
4511         (language_defn::string_lower_bound): New member function.
4512         * m2-lang.c (m2_language_data): Remove string_lower_bound
4513         initializer.
4514         (m2_language::string_lower_bound): New member function.
4515         * objc-lang.c (objc_language_data): Remove string_lower_bound
4516         initializer.
4517         * opencl-lang.c (opencl_language_data): Likewise.
4518         * p-lang.c (pascal_language_data): Likewise.
4519         * rust-lang.c (rust_language_data): Likewise.
4520         * valops.c (value_cstring): Update call to string_lower_bound.
4521         (value_string): Likewise.
4522         * value.c (allocate_repeated_value): Likewise.
4524 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4526         * valops.c (value_repeat): Fix incorrect argument name in comment.
4528 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4530         * ada-lang.c (ada_language_data): Remove c_style_arrays
4531         initializer.
4532         (ada_language::c_style_arrays_p): New member fuction.
4533         * c-lang.c (c_language_data): Remove c_style_arrays
4534         initializer.
4535         (cplus_language_data): Likewise.
4536         (asm_language_data): Likewise.
4537         (minimal_language_data): Likewise.
4538         * d-lang.c (d_language_data): Likewise.
4539         * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4540         * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4541         (f_language::c_style_arrays_p): New member function.
4542         * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4543         * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4544         * language.c (unknown_language_data): Remove c_style_arrays
4545         initializer.
4546         (auto_language_data): Likewise.
4547         * language.h (language_data): Remove c_style_arrays field.
4548         (language_defn::c_style_arrays_p): New member function.
4549         * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4550         (m2_language::c_style_arrays_p): New member function.
4551         * objc-lang.c (objc_language_data): Remove c_style_arrays
4552         initializer.
4553         * opencl-lang.c (opencl_language_data): Likewise.
4554         * p-lang.c (pascal_language_data): Likewise.
4555         * rust-lang.c (rust_language_data): Likewise.
4556         * valarith.c (value_subscript): Update call to c_style_arrays_p,
4557         and update local variable to a bool.
4558         * valops.c (value_cast): Update call to c_style_arrays_p.
4559         (value_array): Likewise.
4560         * value.c (coerce_array): Likewise.
4562 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4564         * ada-lang.c (ada_language_data): Remove la_language initializer.
4565         * c-lang.c (c_language_data): Likewise.
4566         (cplus_language_data): Likewise.
4567         (asm_language_data): Likewise.
4568         (minimal_language_data): Likewise.
4569         * d-lang.c (d_language_data): Likewise.
4570         * f-lang.c (f_language_data): Likewise.
4571         * go-lang.c (go_language_data): Likewise.
4572         * language.c (unknown_language_data): Likewise.
4573         (auto_language_data): Likewise.
4574         * language.h (language_data): Remove la_language field.
4575         (language_defn::language_defn): Initialise la_language field.
4576         (language_defn::la_language): New member variable.
4577         * m2-lang.c (m2_language_data): Remove la_language field.
4578         * objc-lang.c (objc_language_data): Likewise.
4579         * opencl-lang.c (opencl_language_data): Likewise.
4580         * p-lang.c (pascal_language_data): Likewise.
4581         * rust-lang.c (rust_language_data): Likewise.
4583 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4585         * ada-lang.c (ada_extensions): Delete, moved into
4586         ada_language::filename_extensions.
4587         (ada_language_data): Remove la_filename_extensions initializer.
4588         (ada_language::filename_extensions): New member function.
4589         * c-lang.c (c_extensions): Delete, moved into
4590         c_language::filename_extensions.
4591         (c_language_data): Remove la_filename_extensions initializer.
4592         (c_language::filename_extensions): New member function.
4593         (cplus_extensions): Delete, moved into
4594         cplus_language::filename_extensions.
4595         (cplus_language_data): Remove la_filename_extensions initializer.
4596         (cplus_language::filename_extensions): New member function.
4597         (asm_extensions): Delete, moved into
4598         asm_language::filename_extensions.
4599         (asm_language_data): Remove la_filename_extensions initializer.
4600         (asm_language::filename_extensions): New member function.
4601         (minimal_language_data): Remove la_filename_extensions
4602         initializer.
4603         * d-lang.c (d_extensions): Delete, moved into
4604         d_language::filename_extensions.
4605         (d_language_data): Remove la_filename_extensions initializer.
4606         (d_language::filename_extensions): New member function.
4607         * f-lang.c (f_extensions): Delete, moved into
4608         f_language::filename_extensions.
4609         (f_language_data): Remove la_filename_extensions initializer.
4610         (f_language::filename_extensions): New member function.
4611         * go-lang.c (go_language_data): Remove la_filename_extensions
4612         initializer.
4613         * language.c (add_set_language_command): Update now that
4614         filename_extensions returns a vector.
4615         (unknown_language_data): Remove la_filename_extensions
4616         initializer.
4617         (auto_language_data): Likewise.
4618         * language.h (language_data): Remove la_filename_extensions field.
4619         (language_defn::filename_extensions): New member function.
4620         * m2-lang.c (m2_language_data): Remove la_filename_extensions
4621         initializer.
4622         * objc-lang.c (objc_extensions): Delete, moved into
4623         objc_language::filename_extensions.
4624         (objc_language_data): Remove la_filename_extensions initializer.
4625         (objc_language::filename_extensions): New member function.
4626         * opencl-lang.c (opencl_language_data): Remove
4627         la_filename_extensions initializer.
4628         * p-lang.c (pascal_extensions): Delete, moved into
4629         pascal_language::filename_extensions.
4630         (pascal_language_data): Remove la_filename_extensions initializer.
4631         (pascal_language::filename_extensions): New member function.
4632         * rust-lang.c (rust_extensions): Delete, moved into
4633         rust_language::filename_extensions.
4634         (rust_language_data): Remove la_filename_extensions initializer.
4635         (rust_language::filename_extensions): New member function.
4636         * symfile.c (add_filename_language): Add new assert.
4638 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4640         * ada-lang.c (ada_language_data): Remove la_name and
4641         la_natural_name initializers.
4642         (ada_language::name): New member function.
4643         (ada_language::natural_name): New member function.
4644         * c-lang.c (c_language_data): Remove la_name and
4645         la_natural_name initializers.
4646         (c_language::name): New member function.
4647         (c_language::natural_name): New member function.
4648         (cplus_language_data): Remove la_name and
4649         la_natural_name initializers.
4650         (cplus_language::name): New member function.
4651         (cplus_language::natural_name): New member function.
4652         (asm_language_data): Remove la_name and
4653         la_natural_name initializers.
4654         (asm_language::name): New member function.
4655         (asm_language::natural_name): New member function.
4656         (minimal_language_data): Remove la_name and
4657         la_natural_name initializers.
4658         (minimal_language::name): New member function.
4659         (minimal_language::natural_name): New member function.
4660         * compile/compile.c (compile_to_object): Update call to
4661         lanugage_defn::name.
4662         * d-lang.c (d_language_data): Remove la_name and
4663         la_natural_name initializers.
4664         (d_language::name): New member function.
4665         (d_language::natural_name): New member function.
4666         * expprint.c (print_subexp_standard): Update call to
4667         language_defn::name.
4668         (dump_raw_expression): Likewise
4669         (dump_prefix_expression): Likewise.
4670         * f-lang.c (f_language_data): Remove la_name and
4671         la_natural_name initializers.
4672         (f_language::name): New member function.
4673         (f_language::natural_name): New member function.
4674         * go-lang.c (go_language_data): Remove la_name and
4675         la_natural_name initializers.
4676         (go_language::name): New member function.
4677         (go_language::natural_name): New member function.
4678         * language.c (show_language_command): Update call to
4679         language_defn::name.
4680         (set_language_command): Likewise.
4681         (language_enum): Likewise.
4682         (language_str): Likewise.
4683         (add_set_language_command): Likewise, use
4684         language_defn::natural_name in the doc string.
4685         (unknown_language_data): Remove la_name and
4686         la_natural_name initializers.
4687         (unknown_language::name): New member function.
4688         (unknown_language::natural_name): New member function.
4689         (auto_language_data): Remove la_name and
4690         la_natural_name initializers.
4691         (auto_language::name): New member function.
4692         (auto_language::natural_name): New member function.
4693         (language_lookup_primitive_type_as_symbol): Update call to
4694         language_defn::name.
4695         * language.h (language_data): Remove la_name and la_natural_name
4696         member variables.
4697         (language_defn::name): New member function.
4698         (language_defn::natural_name): New member function.
4699         * m2-lang.c (m2_language_data): Remove la_name and
4700         la_natural_name initializers.
4701         (m2_language::name): New member function.
4702         (m2_language::natural_name): New member function.
4703         * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4704         language_defn::natural_name.
4705         * objc-lang.c (objc_language_data): Remove la_name and
4706         la_natural_name initializers.
4707         (objc_language::name): New member function.
4708         (objc_language::natural_name): New member function.
4709         * opencl-lang.c (opencl_language_data): Remove la_name and
4710         la_natural_name initializers.
4711         (opencl_language::name): New member function.
4712         (opencl_language::natural_name): New member function.
4713         * p-lang.c (pascal_language_data): Remove la_name and
4714         la_natural_name initializers.
4715         (pascal_language::name): New member function.
4716         (pascal_language::natural_name): New member function.
4717         * rust-lang.c (rust_language_data): Remove la_name and
4718         la_natural_name initializers.
4719         (rust_language::name): New member function.
4720         (rust_language::natural_name): New member function.
4721         * symtab.c (lookup_language_this): Update call to
4722         language_defn::name.
4724 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4726         * ada-lang.c (ada_language_data): Remove la_name_of_this
4727         initializer.
4728         * ax-gdb.c (gen_expr): Update call to name_of_this.
4729         * c-exp.y (classify_name): Likewise.
4730         * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4731         (cplus_language_data): Likewise.
4732         (cplus_language::name_of_this): New member function.
4733         (asm_language_data): Remove la_name_of_this initializer.
4734         (minimal_language_data): Likewise.
4735         * d-lang.c (d_language_data): Likewise.
4736         (d_language::name_of_this): New member function.
4737         * expprint.c (print_subexp_standard): Update call to name_of_this.
4738         * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4739         * go-lang.c (go_language_data): Likewise.
4740         * language.c (unknown_language_data): Likewise.
4741         (unknown_language::name_of_this): New member function.
4742         (auto_language_data): Remove la_name_of_this initializer.
4743         (auto_language::name_of_this): New member function.
4744         * language.h (language_data): Delete la_name_of_this member
4745         variable.
4746         (language_defn::name_of_this): New member function.
4747         * m2-lang.c (m2_language_data): Remove la_name_of_this
4748         initializer.
4749         * objc-lang.c (objc_language_data): Likewise.
4750         (objc_language::name_of_this): New member function.
4751         * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4752         initializer.
4753         * p-lang.c (pascal_language_data): Likewise.
4754         (pascal_language::name_of_this): New member function.
4755         * rust-lang.c (rust_language_data): Remove la_name_of_this
4756         initializer.
4757         * symtab.c (lookup_language_this): Update call to name_of_this.
4758         (lookup_symbol_aux): Likewise.
4759         * valops.c (value_of_this): Likewise.
4761 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4763         * ada-lang.c (ada_language_data): Remove
4764         la_struct_too_deep_ellipsis initializer.
4765         (ada_language::struct_too_deep_ellipsis): New member function.
4766         * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4767         initializer.
4768         (cplus_language_data): Likewise.
4769         (asm_language_data): Likewise.
4770         (minimal_language_data): Likewise.
4771         * cp-valprint.c (cp_print_value): Update call to
4772         struct_too_deep_ellipsis.
4773         * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4774         initializer.
4775         * f-lang.c (f_language_data): Likewise.
4776         (f_language::struct_too_deep_ellipsis): New member function.
4777         * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4778         initializer.
4779         * language.c (unknown_language_data): Likewise.
4780         (auto_language_data): Likewise.
4781         * language.h (language_data): Delete la_struct_too_deep_ellipsis
4782         member variable.
4783         (language_defn::struct_too_deep_ellipsis): New member function.
4784         * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4785         initializer.Q
4786         * objc-lang.c (objc_language_data): Likewise.
4787         * opencl-lang.c (opencl_language_data): Likewise.
4788         * p-lang.c (pascal_language_data): Likewise.
4789         * rust-lang.c (rust_language_data): Likewise.
4790         * valprint.c (val_print_check_max_depth): Update call to
4791         struct_too_deep_ellipsis.
4793 2020-09-16  Felix Willgerodt  <felix.willgerodt@intel.com>
4795         * MAINTAINERS (Write After Approval): Add myself.
4797 2020-09-15  Tom Tromey  <tom@tromey.com>
4799         * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4800         Remove.
4802 2020-09-15  Tom Tromey  <tom@tromey.com>
4804         * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4805         and TYPE_CODE_METHODPTR cases.
4806         * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4807         (c_value_print_inner): Update.
4808         * valprint.c (generic_value_print_memberptr): New function, from
4809         c_value_print_memberptr.
4810         (generic_value_print): Use it.  Call cplus_print_method_ptr.
4812 2020-09-15  Tom Tromey  <tromey@adacore.com>
4814         * python/python-internal.h (PyInt_FromLong): Remove define.
4815         * python/py-value.c (convert_value_from_python): Use
4816         gdb_py_object_from_longest.
4817         * python/py-type.c (typy_get_code): Use
4818         gdb_py_object_from_longest.
4819         * python/py-symtab.c (salpy_get_line): Use
4820         gdb_py_object_from_longest.
4821         * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4822         gdb_py_object_from_longest.
4823         * python/py-record.c (recpy_gap_reason_code): Use
4824         gdb_py_object_from_longest.
4825         * python/py-record-btrace.c (recpy_bt_insn_size)
4826         (recpy_bt_func_level, btpy_list_count): Use
4827         gdb_py_object_from_longest.
4828         * python/py-infthread.c (gdbpy_create_ptid_object): Use
4829         gdb_py_object_from_longest.  Fix error handling.
4830         * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4831         gdb_py_object_from_longest.
4832         * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4833         gdb_py_object_from_longest.
4834         * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4835         (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4836         (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4838 2020-09-15  Tom Tromey  <tromey@adacore.com>
4840         * python/python.c (gdbpy_parameter_value): Use
4841         gdb_py_object_from_ulongest.
4843 2020-09-15  Tom Tromey  <tromey@adacore.com>
4845         * python/py-infevents.c (create_register_changed_event_object):
4846         Use gdb_py_object_from_longest.
4847         * python/py-exitedevent.c (create_exited_event_object): Use
4848         gdb_py_object_from_longest.
4850 2020-09-15  Tom Tromey  <tromey@adacore.com>
4852         * python/python.c (gdbpy_parameter_value): Use
4853         gdb_py_object_from_longest.
4854         * python/py-type.c (convert_field, typy_range): Use
4855         gdb_py_object_from_longest.
4856         * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4857         gdb_py_object_from_longest.
4858         * python/py-lazy-string.c (stpy_get_length): Use
4859         gdb_py_object_from_longest.
4860         * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4861         gdb_py_object_from_longest.
4862         * python/py-infevents.c (create_memory_changed_event_object): Use
4863         gdb_py_object_from_longest.
4864         * python/py-inferior.c (infpy_get_num): Use
4865         gdb_py_object_from_longest.
4866         (infpy_get_pid): Likewise.
4868 2020-09-15  Tom Tromey  <tromey@adacore.com>
4870         * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4871         defines.
4872         * python/py-value.c (valpy_long): Use
4873         gdb_py_object_from_ulongest.
4874         * python/py-symtab.c (salpy_get_pc): Use
4875         gdb_py_object_from_ulongest.
4876         (salpy_get_last): Likewise.
4877         * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4878         gdb_py_object_from_ulongest.
4879         * python/py-lazy-string.c (stpy_get_address): Use
4880         gdb_py_object_from_ulongest.
4881         * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4882         * python/py-arch.c (archpy_disassemble): Use
4883         gdb_py_object_from_ulongest and gdb_py_object_from_longest.  Fix
4884         error handling.
4886 2020-09-15  Tom Tromey  <tromey@adacore.com>
4888         * python/python-internal.h (gdb_py_long_from_longest): Remove
4889         defines.
4890         * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4891         * python/py-type.c (convert_field, typy_get_sizeof): Use
4892         gdb_py_object_from_longest.
4893         * python/py-record-btrace.c (btpy_list_index): Use
4894         gdb_py_object_from_longest.
4896 2020-09-15  Tom Tromey  <tromey@adacore.com>
4898         * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4899         * python/py-record.c (recpy_element_number): Use
4900         gdb_py_object_from_longest.
4901         (recpy_gap_number): Likewise.
4903 2020-09-15  Tom Tromey  <tromey@adacore.com>
4905         * top.c (ui::ui): Update.
4906         (highest_ui_num): Remove.
4907         * top.h (struct ui) <num>: Remove.
4909 2020-09-15  Tom Tromey  <tromey@adacore.com>
4911         * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4912         * ui-style.c (ansi_regex_text): Now array.
4913         * rust-exp.y (number_regex_text): Now array.
4914         * linespec.c (linespec_quote_characters): Now array.
4915         * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4916         Now arrays.
4918 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
4920         * debuginfod-support.c (debuginfod_client_deleter): New.
4921         (debuginfod_client_up): New.
4922         (debuginfod_init): Return debuginfod_client_up.
4923         (debuginfod_source_query): Adjust.
4924         (debuginfod_debuginfo_query): Adjust.
4926 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
4928         * debuginfod-support.c (debuginfod_source_query): Use
4929         make_unique_xstrdup.
4931 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4933         * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4934         with `type::instance_flags`.
4936 2020-09-14  Michael Mullin  <masmullin@gmail.com>
4938         * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4939         Remove baton parameter.
4941 2020-09-14  Pedro Alves  <pedro@palves.net>
4943         * Makefile.in (SELFTESTS_SRCS): Add
4944         unittests/enum-flags-selftests.c.
4945         * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4946         btrace_function_flags instead of enum btrace_function_flag.
4947         * compile/compile-c-types.c (convert_qualified): Use
4948         enum_flags::raw.
4949         * compile/compile-cplus-symbols.c (convert_one_symbol)
4950         (convert_symbol_bmsym):
4951         * compile/compile-cplus-types.c (compile_cplus_convert_method)
4952         (compile_cplus_convert_struct_or_union_methods)
4953         (compile_cplus_instance::convert_qualified_base):
4954         * go-exp.y (parse_string_or_char): Add cast to int.
4955         * unittests/enum-flags-selftests.c: New file.
4956         * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4957         type to btrace_thread_flags from btrace_thread_flag.
4958         (record_btrace_cancel_resume, record_btrace_step_thread): Change
4959         local's type to btrace_thread_flags from btrace_thread_flag.  Add
4960         cast in DEBUG call.
4962 2020-09-14  Pedro Alves  <pedro@palves.net>
4964         * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4965         * gdbtypes.c (address_space_name_to_int): Rename to ...
4966         (address_space_name_to_type_instance_flags): ... this.
4967         (address_space_int_to_name): Rename to ...
4968         (address_space_type_instance_flags_to_name): ... this.
4969         * gdbtypes.h (address_space_name_to_int): Rename to ...
4970         (address_space_name_to_type_instance_flags): ... this.
4971         (address_space_int_to_name): Rename to ...
4972         (address_space_type_instance_flags_to_name): ... this.
4973         * type-stack.c (type_stack::insert): Adjust to rename.
4974         * type-stack.h (type_stack::insert): Likewise.
4976 2020-09-14  Pedro Alves  <pedro@palves.net>
4977             Andrew Burgess  <andrew.burgess@embecosm.com>
4979         * avr-tdep.c (avr_address_class_type_flags): Return
4980         type_instance_flags.
4981         (avr_address_class_type_flags_to_name): Take a
4982         type_instance_flags.
4983         (avr_address_class_name_to_type_flags): Return bool and take a
4984         type_instance_flags.
4985         * d-lang.c (build_d_types): Use type::set_instance_flags.
4986         * ft32-tdep.c (ft32_address_class_type_flags): Return
4987         type_instance_flags.
4988         (ft32_address_class_type_flags_to_name): Take a
4989         type_instance_flags.
4990         (ft32_address_class_name_to_type_flags): Return bool and take a
4991         type_instance_flags.
4992         (ft32_gdbarch_init): Use type::set_instance_flags.
4993         * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4994         * gdbarch.h, gdbarch.c: Regenerate.
4995         * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4996         (address_class_name_to_type_flags): Use type_instance_flags and
4997         bool.
4998         * gdbtypes.c (address_space_name_to_int)
4999         (address_space_int_to_name, make_qualified_type): Use
5000         type_instance_flags.
5001         (make_qualified_type): Use type_instance_flags and
5002         type::set_instance_flags.
5003         (make_type_with_address_space, make_cv_type, make_vector_type)
5004         (check_typedef): Use type_instance_flags.
5005         (recursive_dump_type): Cast type_instance_flags to unsigned for
5006         printing.
5007         (copy_type_recursive): Use type::set_instance_flags.
5008         (gdbtypes_post_init): Use type::set_instance_flags.
5009         * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5010         <m_instance_flags>: ... this.
5011         <instance_flags, set_instance_flags>: New methods.
5012         (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5013         (SET_TYPE_INSTANCE_FLAGS): New.
5014         (address_space_name_to_int, address_space_int_to_name)
5015         (make_type_with_address_space): Pass flags using
5016         type_instance_flags instead of int.
5017         * stabsread.c (cleanup_undefined_types_noname): Use
5018         type::set_instance_flags.
5019         * s390-tdep.c (s390_address_class_type_flags): Return
5020         type_instance_flags.
5021         (s390_address_class_type_flags_to_name): Take a
5022         type_instance_flags.
5023         (s390_address_class_name_to_type_flags): Return bool and take a
5024         type_instance_flags.
5025         * type-stack.c (type_stack::follow_types): Use
5026         type_instance_flags.
5027         * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5029 2020-09-14  Tom Tromey  <tromey@adacore.com>
5031         * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5032         * x86-tdep.c (x86_is_thunk_register_name)
5033         (x86_in_indirect_branch_thunk): Update.
5034         * sparc64-tdep.c (sparc64_fpu_register_names)
5035         (sparc64_cp0_register_names, sparc64_register_names)
5036         (sparc64_pseudo_register_names): Now const.
5037         * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5038         cp0_registers_num>: Now const.
5039         * sparc-tdep.c (sparc_core_register_names)
5040         (sparc32_fpu_register_names, sparc32_cp0_register_names)
5041         (sparc32_pseudo_register_names): Now const.
5042         (validate_tdesc_registers): Update.
5043         * rust-lang.c (rust_extensions): Now const.
5044         * p-lang.c (p_extensions): Now const.
5045         * objc-lang.c (objc_extensions): Now const.
5046         * nto-tdep.c (nto_thread_state_str): Now const.
5047         * moxie-tdep.c (moxie_register_names): Now const.
5048         * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5049         Now const.
5050         * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5051         (mips_linux_reg_names): Now const.
5052         (mips_gdbarch_init): Update.
5053         * microblaze-tdep.c (microblaze_register_names): Now const.
5054         * m68k-tdep.c (m68k_register_names): Now const.
5055         * m32r-tdep.c (m32r_register_names): Now const.
5056         * ia64-tdep.c (ia64_register_names): Now const.
5057         * i386-tdep.h (struct gdbarch_tdep) <register_names,
5058         ymmh_register_names, ymm16h_regnum, mpx_register_names,
5059         k_register_names, zmmh_register_names, xmm_avx512_register_names,
5060         ymm_avx512_register_names, pkeys_register_names>: Now const.
5061         * i386-tdep.c (i386_register_names, i386_zmm_names)
5062         (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5063         (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5064         (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5065         * f-lang.c (f_extensions): Now const.
5066         * d-lang.c (d_extensions): Now const.
5067         * csky-tdep.c (csky_register_names): Now const.
5068         * charset.c (default_charset_names, charset_enum): Now const.
5069         (_initialize_charset): Update.
5070         * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5071         const.
5072         * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5073         (bsd_uthread_solib_loaded): Update.
5074         (bsd_uthread_state): Now const.
5075         * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5076         (amd64_ymm_avx512_names, amd64_ymmh_names)
5077         (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5078         (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5079         (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5080         (amd64_dword_names): Now const.
5081         * agent.c (can_use_agent_enum): Now const.
5082         * ada-tasks.c (task_states, long_task_states): Now const.
5083         * ada-lang.c (known_runtime_file_name_patterns)
5084         (known_auxiliary_function_name_patterns, attribute_names)
5085         (standard_exc, ada_extensions): Now const.
5087 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
5089         * bcache.h (struct bcache) <bcache>: Remove constructor.
5090         <m_hash_function, m_compare_function>: Remove.
5091         <~bcache>: Make virtual.
5092         <compare>: Remove static method, introduce virtual method.
5093         <default_hash>: Remove.
5094         <hash>: New virtual method.
5095         * bcache.c (bcache::expand_hash_table): Update.
5096         (bcache::insert): Update.
5097         (bcache::hash): New.
5098         (bcache::compare): Update comment and parameter names.
5099         * gdbtypes.c (types_deeply_equal): Update.
5100         * psymtab.h (struct psymbol_bcache): New struct.
5101         (class psymtab_storage) <psymtab_storage>: Make default.
5102         <psymbol_cache>: Change type to psymbol_bcache.
5103         * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5104         (psymbol_hash): Change to...
5105         (psymbol_bcache::hash): ... this.
5106         (psymbol_compare): Change to...
5107         (psymbol_bcache::compare): ... this.
5109 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
5111         * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5112         checking for initial lwp.
5114 2020-09-14  Tom Tromey  <tromey@adacore.com>
5116         * m68k-tdep.c (m68k_extract_return_value): Use
5117         pointer_result_regnum.
5118         (m68k_store_return_value): Likewise.
5119         (m68k_reg_struct_return_p): Handle vectors and arrays.
5120         (m68k_return_value): Handle arrays.
5121         (m68k_svr4_return_value): Fix single-element aggregate handling.
5122         Handle long double.  Adjust for embedded ABI.
5123         (m68k_svr4_init_abi): Set pointer_result_regnum.
5124         (m68k_embedded_init_abi): New function.
5125         (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5126         (m68k_osabi_sniffer): New function.
5127         (_initialize_m68k_tdep): Register osabi sniffer.
5128         * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5129         member.
5131 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
5133         * xml-support.c (xml_fetch_content_from_file): Replace xfree
5134         with gdb::unique_xmalloc_ptr<char>.
5136 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
5138         * xml-support.h (xml_fetch_another): Change type to be a
5139         function_view.
5140         (xml_process_xincludes): Remove baton parameter.
5141         (xml_fetch_content_from_file): Change baton parameter to
5142         dirname.
5143         * xml-support.c (struct xinclude_parsing_data)
5144         <xinclude_parsing_data>: Remove baton parameter.
5145         <fetcher_baton>: Remove.
5146         (xinclude_start_include): Adjust.
5147         (xml_process_xincludes): Adjust.
5148         (xml_fetch_content_from_file): Replace baton parameter with
5149         dirname.
5150         * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5151         (xml_init_syscalls_info): Use a lambda.
5152         * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5153         (file_read_description_xml): Use a lambda.
5154         (fetch_available_features_from_target): Change baton parameter
5155         to target_ops.
5156         (target_read_description_xml): Use a lambda.
5157         (target_fetch_description_xml): Use a lambda.
5158         (string_read_description_xml): Update.
5160 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
5162         * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5163         uses with type::endianity_is_not_default.
5165 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
5167         * gdbtypes.h (struct type) <endianity_is_not_default,
5168         set_endianity_is_not_default>: New methods.
5169         (TYPE_ENDIANITY_NOT_DEFAULT): Use
5170         type::endianity_is_not_default, change all write call sites to
5171         use type::set_endianity_is_not_default.
5173 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
5175         * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5176         uses with type::is_fixed_instance.
5178 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
5180         * gdbtypes.h (struct type) <is_fixed_instance,
5181         set_is_fixed_instance>: New methods.
5182         (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5183         write call sites to use type::set_is_fixed_instance.
5185 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
5187         * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5188         uses with type::is_gnu_ifunc.
5190 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
5192         * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5193         (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5194         use type::set_is_gnu_ifunc.
5196 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
5198         * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5199         uses with type::stub_is_supported.
5201 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
5203         * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5204         (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5205         use type::set_stub_is_supported.
5207 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
5209         * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5210         uses with type::is_vector.
5212 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
5214         * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5215         (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5216         use type::set_is_vector.
5218 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
5220         * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5221         uses with type::has_varargs.
5223 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
5225         * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5226         (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5227         use type::set_has_varargs.
5229 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
5231         * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5232         uses with type::is_prototyped.
5234 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
5236         * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5237         New methods.
5238         (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5239         call sites to use type::set_is_prototyped.
5241 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
5243         * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5244         uses with type::target_is_stub.
5246 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
5248         * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5249         New methods.
5250         (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5251         sites to use type::set_target_is_stub.
5253 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
5255         * gdbtypes.h (TYPE_STUB): Remove, replace all
5256         uses with type::is_stub.
5258 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
5260         * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5261         (TYPE_STUB): Use type::is_stub, change all write call sites to
5262         use type::set_is_stub.
5264 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
5266         * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5267         type::has_no_signedness.
5269 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
5271         * gdbtypes.h (struct type) <has_no_signedness,
5272         set_has_no_signedness>: New methods.
5273         (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5274         call sites to use type::set_has_no_signedness.
5276 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
5278         * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5279         type::is_unsigned.
5281 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
5283         * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5284         methods.
5285         (TYPE_UNSIGNED): Use type::is_unsigned.  Change all write call
5286         sites to use type::set_is_unsigned.
5288 2020-09-14  Fredrik Hederstierna  <fredrik.hederstierna@verisure.com>
5289             Adam Renquinha <arenquinha@cimeq.qc.ca>
5291         * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5292         pointer and stack frame offset when unwinding.
5294 2020-09-13  Pedro Alves  <pedro@palves.net>
5296         * NEWS: Document "-break-insert --qualified".
5297         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5299 2020-09-13  Pedro Alves  <pedro@palves.net>
5301         * linespec.c (classify_mtype, compare_msyms): Delete.
5302         (search_minsyms_for_name): Remove classification logic.  Instead
5303         filter out trampoline symbols if we also found an external
5304         function of the same name.
5306 2020-09-13  Joel Brobecker  <brobecker@adacore.com>
5308         * NEWS: Create a new section for the next release branch.
5309         Rename the section of the current branch, now that it has
5310         been cut.
5312 2020-09-13  Joel Brobecker  <brobecker@adacore.com>
5314         GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5315         * version.in: Bump version to 11.0.50.DATE-git.
5317 2020-09-12  Joel Brobecker  <brobecker@adacore.com>
5319         * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5321 2020-09-11  Moritz Riesterer  <moritz.riesterer@intel.com>
5322             Felix Willgerodt  <Felix.Willgerodt@intel.com>
5324         * gdbarch.sh: Added bfloat16 type.
5325         * gdbarch.c: Regenerated.
5326         * gdbarch.h: Regenerated.
5327         * gdbtypes.c (floatformats_bfloat16): New struct.
5328         (gdbtypes_post_init): Add builtin_bfloat16.
5329         * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5330         (floatformats_bfloat16): New struct.
5331         * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5332         (i386_ymm_type): Add field "v16_bfloat16"
5333         (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5334         * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5335         * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5336         * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5337         * features/i386/64bit-avx512.xml: Add bfloat16 type.
5338         * features/i386/64bit-avx512.c: Regenerated.
5339         * features/i386/64bit-sse.xml: Add bfloat16 type.
5340         * features/i386/64bit-sse.c: Regenerated.
5342 2020-09-11  Felix Willgerodt  <felix.willgerodt@intel.com>
5344         * i386-tdep.c (i386_zmm_type): Fix field names.
5345         (i386_ymm_type): Fix field names.
5347 2020-09-11  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5349         * breakpoint.c: Fix typo in the help message of the
5350         "set breakpoint condition-evaluation" command.
5352 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
5354         * nbsd-nat.c: Include "nat/netbsd-nat.h".
5355         * (nbsd_nat_target::pid_to_exec_file)
5356         (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5357         (nbsd_nat_target::post_startup_inferior)
5358         (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5359         (nbsd_add_threads): Switch local code to common gdb/nat functions.
5360         * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5361         * (nbsd_thread_lister): Remove.
5363 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
5365         * fork-inferior.c (startup_inferior): Avoid double free.
5367 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
5369         * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5370         * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5372 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
5374         * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5375         * netbsd-nat.c: Include <sys/ptrace.h>.
5376         * (netbsd_nat::enable_proc_events): Add.
5378 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
5380         * netbsd-nat.h: Include "gdbsupport/function-view.h".
5381         * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5382         (netbsd_nat::for_each_thread): Add.
5383         * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5384         "gdbsupport/common-debug.h".
5385         * (netbsd_nat::netbsd_thread_lister)
5386         (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5387         (netbsd_nat::for_each_thread): Add.
5389 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
5391         * netbsd-nat.h: Include <unistd.h>.
5392         * (netbsd_nat::pid_to_exec_file): Add.
5393         * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5394         * (netbsd_nat::pid_to_exec_file) Add.
5396 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
5398         * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5400 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
5402         * netbsd-nat.h: New file.
5403         * netbsd-nat.c: Likewise.
5405 2020-09-09  Tom Tromey  <tromey@adacore.com>
5407         * ada-lang.c (remove_extra_symbols): Do not increment when
5408         removing an element
5410 2020-09-08  Tom Tromey  <tromey@adacore.com>
5412         * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5414 2020-09-08  Tom Tromey  <tromey@adacore.com>
5416         PR win32/25302:
5417         * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5418         (gdb_bfd_init_data): New function.
5419         (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5421 2020-09-07  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5423         * infrun.c (fetch_inferior_event): Use
5424         `switch_to_target_no_thread` to switch the target.
5426 2020-09-06  Tom Tromey  <tom@tromey.com>
5428         * symfile.h (dwarf2_free_objfile): Don't declare.
5430 2020-09-03  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
5432         * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5433         to match 16 byte real/complex type generated by Flang compiler.
5435 2020-09-03  Tom de Vries  <tdevries@suse.de>
5437         PR breakpoint/26546
5438         * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5439         LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5441 2020-09-02  Simon Marchi  <simon.marchi@polymtl.ca>
5443         * maint.c (index_digits): New function.
5444         (struct maint_print_section_data): Remove.
5445         (print_bfd_section_info): Remove print_data parameter, add arg
5446         and index_digits.
5447         (print_objfile_section_info): Likewise.
5448         (print_bfd_section_info_maybe_relocated): Likewise (plus
5449         objfile).
5450         (maintenance_info_sections): Adjust calls.
5452 2020-09-02  Tom Tromey  <tromey@adacore.com>
5454         * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5455         for null pointers.
5456         (ada_varobj_adjust_for_child_access): Special-case null pointers.
5458 2020-09-01  Simon Marchi  <simon.marchi@polymtl.ca>
5460         * bcache.h (struct bcache) <insert>: Change type of `added` to
5461         pointer to bool.
5462         * bcache.c (bcache::insert): Likewise.
5463         * gdbtypes.c (check_types_worklist): Adjust.
5464         * psymtab.c (add_psymbol_to_bcache): Adjust.
5466 2020-08-31  Kevin Buettner  <kevinb@redhat.com>
5468         * corelow.c (unordered_set): Include.
5469         (class core_target): Add field 'm_core_unavailable_mappings'.
5470         (core_target::build_file_mappings): Print only one warning
5471         per inaccessible file.  Add unavailable/broken mappings
5472         to m_core_unavailable_mappings.
5473         (core_target::xfer_partial): Call...
5474         (core_target::xfer_memory_via_mappings): New method.
5476 2020-08-31  Simon Marchi  <simon.marchi@polymtl.ca>
5478         * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5479         type to bool.
5481 2020-08-31  Simon Marchi  <simon.marchi@polymtl.ca>
5483         * dwarf2/read.c (struct field_info): Fix indentation.
5485 2020-08-31  Simon Marchi  <simon.marchi@efficios.com>
5487         * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5488         ordering in comment.
5489         * frame.c (frame_id_eq): Fix indentation.
5491 2020-08-31  Scott Linder  <scott@scottlinder.com>
5492             Simon Marchi  <simon.marchi@efficios.com>
5494         * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5495         inline frame ids in outer frame.
5497 2020-08-31  Simon Marchi  <simon.marchi@efficios.com>
5499         * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5500         * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5501         (outer_frame_id): Use FID_STACK_OUTER instead of
5502         FID_STACK_INVALID.
5503         (frame_id_p): Don't check for outer_frame_id.
5505 2020-08-31  Simon Marchi  <simon.marchi@efficios.com>
5507         * frame-unwind.c (frame_unwind_got_optimized): Don't set
5508         regnum/frame in value.  Call allocate_value_lazy.
5509         * frame.c (frame_unwind_register_value): Use
5510         val_print_not_saved.
5512 2020-08-31  Simon Marchi  <simon.marchi@efficios.com>
5514         * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5516 2020-08-29  Pedro Alves  <pedro@palves.net>
5518         * progspace.c (print_program_space): Use all_inferiors.  Switch to
5519         the inferior before calling target_pid_to_str.
5521 2020-08-28  Tom Tromey  <tom@tromey.com>
5523         * xcoffread.c (xcoff_end_psymtab): Update comment.
5524         * dbxread.c (dbx_end_psymtab): Update comment.
5526 2020-08-28  Tom de Vries  <tdevries@suse.de>
5528         PR breakpoint/26544
5529         * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5530         event_location.
5531         (create_breakpoint): Same.
5532         (base_breakpoint_decode_location): Same.
5533         (bkpt_create_sals_from_location): Same.
5534         (bkpt_decode_location): Same.
5535         (bkpt_probe_create_sals_from_location): Same.
5536         (bkpt_probe_decode_location): Same.
5537         (tracepoint_create_sals_from_location): Same.
5538         (tracepoint_decode_location): Same.
5539         (tracepoint_probe_decode_location): Same.
5540         (strace_marker_create_sals_from_location): Same.
5541         (strace_marker_decode_location): Same.
5542         (create_sals_from_location_default): Same.
5543         (decode_location_default): Same.
5544         * breakpoint.h (struct breakpoint_ops): Same.
5545         (create_breakpoint): Same.
5546         * linespec.h (decode_line_full): Same.
5547         * linespec.c (decode_line_full): Same.  Throw error if
5548         result.size () == 0.
5550 2020-08-27  Pedro Alves  <pedro@palves.net>
5552         PR gdb/26524
5553         * breakpoint.c (until_break_fsm) <location_breakpoint,
5554         caller_breakpoint>: Delete fields.
5555         <breakpoints>: New field.
5556         <until_break_fsm>: Adjust to save a breakpoint vector instead of
5557         two individual breakpoints.
5558         (until_break_fsm::should_stop): Loop over breakpoints in the
5559         breakpoint vector.
5560         (until_break_fsm::clean_up): Adjust to clear the breakpoints
5561         vector.
5562         (until_break_command): Handle location expanding into multiple
5563         sals.
5565 2020-08-27  Pedro Alves  <pedro@palves.net>
5567         PR gdb/26523
5568         * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5569         bp_until breakpoints user-specified locations.  Update intro
5570         comment.
5572 2020-08-27  Simon Marchi  <simon.marchi@polymtl.ca>
5574         * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5575         gdb_bfd_sections): New.
5576         * maint.c (print_bfd_section_info): Change param type to
5577         maint_print_section_data.
5578         (print_objfile_section_info): Likewise.
5579         (print_bfd_section_info_maybe_relocated): Likewise.
5580         (maintenance_info_sections): Use gdb_bfd_sections.
5582 2020-08-25  Shahab Vahedi  <shahab@synopsys.com>
5584         * MAINTAINERS: Add ARC target and maintainer.
5586 2020-08-25  Anton Kolesov  <anton.kolesov@synopsys.com>
5588         * configure.tgt: ARC support for GNU/Linux.
5589         * Makefile.in (ALL_TARGET_OBJS): Likewise.
5590         * arc-linux-tdep.c: New file.
5591         * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5592         * arc-tdep.c (arc_write_pc): Use it.
5594 2020-08-25  Shahab Vahedi  <shahab@synopsys.com>
5596         * arc-tdep.c (arc_check_for_hardware_loop): New.
5597         * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5599 2020-08-25  Shahab Vahedi  <shahab@synopsys.com>
5601         * arc-tdep.h: Include "gdbarch.h".
5603 2020-08-25  Shahab Vahedi  <shahab@synopsys.com>
5605         * arch/arc.h
5606         (arc_gdbarch_features): New class to stir the selection of target XML.
5607         (arc_create_target_description): Use FEATURES to choose XML target.
5608         (arc_lookup_target_description): Use arc_create_target_description
5609         to create _new_ target descriptions or return the already created
5610         ones if the FEATURES is the same.
5611         * arch/arc.c: Implementation of prototypes described above.
5612         * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5613         (arc_gdbarch_features_init): Initialize the FEATURES struct.
5614         * arc-tdep.c (*_feature_name): Make feature names consistent.
5615         (arc_register_feature): A new struct to hold information about
5616         registers of a particular target/feature.
5617         (arc_check_tdesc_feature): Check if XML provides registers in
5618         compliance with ARC_REGISTER_FEATURE structs.
5619         (arc_update_acc_reg_names): Add aliases for r58 and r59.
5620         (determine_*_reg_feature_set): Which feature name to look for.
5621         (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5622         (mach_type_to_arc_isa): Convert from a set of binutils machine types
5623         to expected ISA enums to be used in arc_gdbarch_features structs.
5624         * features/Makefile (FEATURE_XMLFILES): Add new files.
5625         * gdb/features/arc/v1-aux.c: New file.
5626         * gdb/features/arc/v1-aux.xml: Likewise.
5627         * gdb/features/arc/v1-core.c: Likewise.
5628         * gdb/features/arc/v1-core.xml: Likewise.
5629         * gdb/features/arc/v2-aux.c: Likewise.
5630         * gdb/features/arc/v2-aux.xml: Likewise.
5631         * gdb/features/arc/v2-core.c: Likewise.
5632         * gdb/features/arc/v2-core.xml: Likewise.
5633         * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5635 2020-08-25  Gaius Mulley  <gaiusmod2@gmail.com>
5636             Andrew Burgess  <andrew.burgess@embecosm.com>
5638         PR m2/26372
5639         * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5640         an assert.  Remove single element array indexing pattern as the
5641         MULTI_SUBSCRIPT support will handle this case too.
5643 2020-08-24  Simon Marchi  <simon.marchi@polymtl.ca>
5645         * value.h (valprint_check_validity): Move declaration from
5646         here...
5647         * valprint.h (valprint_check_validity): ... to here.
5649 2020-08-24  Simon Marchi  <simon.marchi@efficios.com>
5651         * debug.h: New file.
5652         * debug.c (debug_prefixed_vprintf): New function.
5653         * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5654         * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5656 2020-08-24  Simon Marchi  <simon.marchi@efficios.com>
5658         * infrun.h (infrun_debug_printf_1): New function declaration.
5659         (infrun_debug_printf): New macro.
5660         * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5661         throughout.
5662         (infrun_debug_printf): New function.
5663         * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5664         (handle_jit_event): Likewise.
5666 2020-08-21  Mark Wielaard  <mark@klomp.org>
5668         * ada-lex.l: Extend register warnings diagnostics comment for g++.
5670 2020-08-22  Simon Marchi  <simon.marchi@efficios.com>
5672         * frame.c (enum class frame_id_status): New.
5673         (struct frame_info) <this_id::p>: Change type to frame_id_status.
5674         (fprintf_frame): Update.
5675         (compute_frame_id): Set frame id status to "computing" on entry.
5676         Set it back to "not_computed" on failure and to "computed" on
5677         success.
5678         (get_frame_id): Assert the frame id is not being computed.
5679         (create_sentinel_frame): Use frame_id_status::COMPUTED.
5680         (create_new_frame): Likewise.
5681         (frame_cleanup_after_sniffer): Update assert.
5683 2020-08-20  Simon Marchi  <simon.marchi@polymtl.ca>
5685         * regcache.c (pid_ptid_regcache_map): New type.
5686         (target_ptid_regcache_map): Remove.
5687         (target_pid_ptid_regcache_map): New type.
5688         (regcaches): Change type to target_pid_ptid_regcache_map.
5689         (get_thread_arch_aspace_regcache): Update.
5690         (regcache_thread_ptid_changed): Update, handle pid-like ptid
5691         case.
5692         (regcaches_size): Update.
5693         (regcache_count): Update.
5694         (registers_changed_ptid_target_pid_test): New.
5695         (_initialize_regcache): Register new test.
5697 2020-08-20  Simon Marchi  <simon.marchi@polymtl.ca>
5699         * regcache.c (regcache_count): New.
5700         (struct regcache_test_data): New.
5701         (regcache_test_data_up): New.
5702         (populate_regcaches_for_test): New.
5703         (regcaches_test): Remove.
5704         (get_thread_arch_aspace_regcache_test): New.
5705         (registers_changed_ptid_all_test): New.
5706         (registers_changed_ptid_target_test): New.
5707         (registers_changed_ptid_target_ptid_test): New.
5708         (regcache_thread_ptid_changed): Remove regcache_count lambda.
5709         (_initialize_regcache): Register new tests.
5711 2020-08-20  Simon Marchi  <simon.marchi@polymtl.ca>
5713         * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5714         (get_thread_arch_aspace_regcache_and_check): ... this.  Remove
5715         gdbarch and aspace parameter.  Use current inferior's aspace.
5716         Validate regcache's arch value.
5717         (regcaches_test): Update.
5719 2020-08-20  Simon Marchi  <simon.marchi@polymtl.ca>
5721         * regcache.c (regcaches_test): Call registers_changed.
5723 2020-08-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5725         * infrun.c (process_event_stop_test): Fix typo "breapoint".
5727 2020-08-19  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
5729         * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5730         to find the end of prologue for flang compiled binaries.
5731         * arm-tdep.c (arm_skip_prologue): Likewise.
5732         * i386-tdep.c (i386_skip_prologue): Likewise.
5733         * producer.c (producer_is_llvm): New function.
5734         (producer_parsing_tests): Added new tests for clang/flang.
5735         * producer.h (producer_is_llvm): New declaration.
5737 2020-08-18  Simon Marchi  <simon.marchi@efficios.com>
5739         * linux-nat.c (linux_nat_debug_printf): New function.
5740         (linux_nat_debug_printf_1): New macro.  Use throughout the file.
5742 2020-08-18  Aaron Merey  <amerey@redhat.com>
5744         * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5745         (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5746         (CLIBS): Add DEBUGINFOD_LIBS.
5748 2020-08-17  Sergei Trofimovich  <siarheit@google.com>
5750         * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5751         'gdbarch_num_regs'.
5753 2020-08-17  Tom Tromey  <tromey@adacore.com>
5755         * ada-varobj.c (ada_varobj_decode_var): Handle case where
5756         ada_get_decoded_value returns NULL.
5758 2020-08-17  Tom Tromey  <tromey@adacore.com>
5760         * python/py-inferior.c (infpy_search_memory): Use
5761         gdb_py_object_from_ulongest.
5762         * python/py-infevents.c (create_inferior_call_event_object)
5763         (create_memory_changed_event_object): Use
5764         gdb_py_object_from_ulongest.
5765         * python/py-linetable.c (ltpy_entry_get_pc): Use
5766         gdb_py_object_from_ulongest.
5768 2020-08-17  Simon Marchi  <simon.marchi@polymtl.ca>
5770         * loc.c (class symbol_needs_eval_context): Fix indentation.
5772 2020-08-17  Simon Marchi  <simon.marchi@polymtl.ca>
5774         * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5775         bool.
5777 2020-08-17  Tom de Vries  <tdevries@suse.de>
5779         PR gdb/26393
5780         * gdbtypes.c (dump_dynamic_prop): New function.
5781         (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5783 2020-08-15  Tom de Vries  <tdevries@suse.de>
5785         PR backtrace/26390
5786         * stack.c (print_frame_args): Temporarily set the selected
5787         frame to FRAME while printing the frame's arguments.
5789 2020-08-14  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5791         PR breakpoints/26385
5792         * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5793         Always clear watchpoint with PTRACE_SET_DEBUGREG.
5795 2020-08-14  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5797         * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5798         (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5799         and >= to check return value instead of == -1 and != -1.
5801 2020-08-14  Simon Marchi  <simon.marchi@polymtl.ca>
5803         * utils.h (class gdb_argv) <as_array_view>: New method.
5804         * utils.c (gdb_argv_as_array_view_test): New.
5805         (_initialize_utils): Register selftest.
5806         * maint.c (maintenance_selftest): Use the new method.
5808 2020-08-13  Kamil Rytarowski  <n54@gmx.com>
5810         * target.h (supports_dumpcore, dumpcore): New
5811         function declarations.
5812         * target.c (supports_dumpcore, dumpcore): New
5813         functions.
5814         * target-delegates.c: Rebuild.
5815         * gcore.c (gcore_command): Use target_supports_dumpcore ()
5816         and target_dumpcore ().
5818 2020-08-13  Aaron Merey  <amerey@redhat.com>
5820         * debuginfod-support.c: Replace global variables with user_data.
5822 2020-08-13  Simon Marchi  <simon.marchi@polymtl.ca>
5824         * maint.c (maintenance_selftest): Split args and pass array_view
5825         to run_tests.
5827 2020-08-12  Luis Machado  <luis.machado@linaro.org>
5829         * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5830         type's length.
5831         Use %s and pulongest to print the length.
5833 2020-08-12  Pedro Alves  <palves@redhat.com>
5835         * NEWS: Move "Multi-target debugging support" item to the
5836         "Changes since GDB 9" section.
5838 2020-08-12  Pedro Alves  <palves@redhat.com>
5840         PR gdb/26336
5841         * progspace.c (program_space::remove_objfile): Invalidate the
5842         frame cache.
5844 2020-08-11  Tom de Vries  <tdevries@suse.de>
5846         * MAINTAINERS: Mark ms1 as deleted.
5848 2020-08-10  Luis Machado  <luis.machado@linaro.org>
5850         PR gdb/26310
5852         * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5853         act accordingly.
5854         (aarch64_analyze_prologue_test): Add more unit tests to exercise
5855         movz/str/stur/stp skipping behavior.
5857 2020-08-10  Luis Machado  <luis.machado@linaro.org>
5859         * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5860         struct user_sve_header instead of struct sve_context.
5862 2020-08-09  Simon Marchi  <simon.marchi@polymtl.ca>
5864         * read.h (dwarf2_fetch_die_loc_sect_off,
5865         dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5866         `void *` parameter with function_view.
5867         * read.c (dwarf2_fetch_die_loc_sect_off,
5868         dwarf2_fetch_die_loc_cu_off): Likewise.
5869         * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5870         (per_cu_dwarf_call): Adjust.
5871         (get_frame_address_in_block_wrapper): Remove.
5872         (indirect_synthetic_pointer): Adjust.
5873         (get_ax_pc): Remove.
5874         (dwarf2_compile_expr_to_ax): Adjust.
5876 2020-08-08  Tom de Vries  <tdevries@suse.de>
5878         PR build/26344
5879         * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5880         constructor.
5881         * regcache.c (get_thread_arch_aspace_regcache): Same.
5883 2020-08-07  Tom Tromey  <tromey@adacore.com>
5885         * ravenscar-thread.c
5886         (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5887         New method.
5888         (ravenscar_thread_target::wait): Check
5889         runtime_initialized.
5890         (ravenscar_thread_target::prepare_to_store)
5891         (ravenscar_thread_target::stopped_by_sw_breakpoint)
5892         (ravenscar_thread_target::stopped_by_hw_breakpoint)
5893         (ravenscar_thread_target::stopped_by_watchpoint)
5894         (ravenscar_thread_target::stopped_data_address)
5895         (ravenscar_thread_target::core_of_thread): Use
5896         scoped_restore_current_thread and
5897         set_base_thread_from_ravenscar_task.
5899 2020-08-07  Tom Tromey  <tromey@adacore.com>
5901         * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5903 2020-08-07  Tom Tromey  <tromey@adacore.com>
5905         * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5906         update_inferior_ptid before update_thread_list.
5907         (temporarily_change_regcache_ptid): New class.
5908         (ravenscar_thread_target::fetch_registers)
5909         (ravenscar_thread_target::store_registers)
5910         (ravenscar_thread_target::prepare_to_store): Use base thread when
5911         forwarding operation.
5913 2020-08-07  Tom Tromey  <tromey@adacore.com>
5915         * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5916         "is_pid" case.
5918 2020-08-07  Tom Tromey  <tromey@adacore.com>
5920         * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5921         New methods.
5922         (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5923         first.
5924         (ravenscar_thread_target::add_thread): Rename from
5925         ravenscar_add_thread.
5926         (ravenscar_thread_target::update_thread_list): Use a lambda.
5927         (ravenscar_thread_target::xfer_partial): New method.
5929 2020-08-07  Tom Tromey  <tromey@adacore.com>
5931         * ada-lang.h (ada_task_list_iterator_ftype): Now a
5932         gdb::function_view.
5933         (iterate_over_live_ada_tasks): Change type of argument.
5934         * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5935         of argument.
5937 2020-08-07  Tom Tromey  <tromey@adacore.com>
5939         * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5940         Remove.
5941         (ravenscar_thread_target::extra_thread_info): Remove.
5942         (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5943         defer to target beneath for non-Ravenscar threads.
5945 2020-08-07  Tom Tromey  <tromey@adacore.com>
5947         * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5948         get_base_thread_from_ravenscar_task>: Now methods.
5949         <m_cpu_map>: New member.
5950         (ravenscar_thread_target::get_thread_base_cpu): Rename from
5951         ravenscar_get_thread_base_cpu.  Check m_cpu_map.
5952         (ravenscar_thread_target::task_is_currently_active): Update.
5953         (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5954         Now a method.
5955         (ravenscar_thread_target::add_active_thread): Put initial thread
5956         into the m_cpu_map.
5958 2020-08-07  Tom Tromey  <tromey@adacore.com>
5960         * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5961         event_ptid.
5963 2020-08-07  Tom Tromey  <tromey@adacore.com>
5965         * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5966         runtime_initialized.
5968 2020-08-07  Tom Tromey  <tromey@adacore.com>
5970         * ravenscar-thread.c (ravenscar_thread_target): Don't call
5971         add_active_thread.
5972         (ravenscar_thread_target::add_active_thread): Now public.
5973         (ravenscar_inferior_created): Call add_active_thread after pushing
5974         the target.
5976 2020-08-07  Simon Marchi  <simon.marchi@polymtl.ca>
5978         * regcache.c (ptid_regcache_map): New type.
5979         (target_ptid_regcache_map): New type.
5980         (regcaches): Change type to target_ptid_regcache_map.
5981         (get_thread_arch_aspace_regcache): Update to regcaches' new
5982         type.
5983         (regcache_thread_ptid_changed): Likewise.
5984         (registers_changed_ptid): Likewise.
5985         (regcaches_size): Likewise.
5986         (regcaches_test): Update.
5987         (regcache_thread_ptid_changed): Update.
5988         * regcache.h (regcache_up): New type.
5989         * gdbsupport/ptid.h (hash_ptid): New struct.
5991 2020-08-07  Simon Marchi  <simon.marchi@efficios.com>
5993         * observable.h (thread_ptid_changed): Add parameter
5994         `process_stratum_target *`.
5995         * infrun.c (infrun_thread_ptid_changed): Add parameter
5996         `process_stratum_target *` and use it.
5997         (selftests): New namespace.
5998         (infrun_thread_ptid_changed): New function.
5999         (_initialize_infrun): Register selftest.
6000         * regcache.c (regcache_thread_ptid_changed): Add parameter
6001         `process_stratum_target *` and use it.
6002         (regcache_thread_ptid_changed): New function.
6003         (_initialize_regcache): Register selftest.
6004         * thread.c (thread_change_ptid): Pass target to
6005         thread_ptid_changed observable.
6007 2020-08-06  Caroline Tice <cmtice@google.com>
6009         * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6010         (struct dwp_sections): Update field comments.  Add loclists and
6011         rnglists fields.
6012         (struct virtual_v2_dwo_sections): Rename struct to
6013         'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6014         size & offset fields for loclists and rnglists.
6015         (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6016         (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6017         skipping dummy type units.
6018         (create_dwp_hash_table): Update the large comment above the function to
6019         discuss Version 5 DWP files as well, with references.  Update all the
6020         version checks in the function to check for version 5 as well.  Add new
6021         section at the end to create dwp hash table for version 5.
6022         (create_dwp_v2_section): Rename function to
6023         'create_dwp_v2_or_v5_section'.  Update function comment appropriately.
6024         Add V5 to error message text.
6025         (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6026         into calls to create_dwp_v2_or_v5_section.
6027         (create_dwo_unit_in_dwp_v5): New function.
6028         (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6029         check for version2; add else clause to handle version 5.
6030         (open_and_init_dwo_file): Add code to check dwarf version & only call
6031         create_debug_types_hash_table (with sections.types) if version is not 5;
6032         else call create_debug_type_hash_table, with sections.info.
6033         (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6034         version 5.
6035         (dwarf2_locate_v5_dwp_sections): New function.
6036         (open_and_init_dwp_file): Add else-if clause for version 5 to call
6037         bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6039 2020-08-06  Simon Marchi  <simon.marchi@efficios.com>
6041         * regcache.h (class regcache): Remove friend
6042         registers_changed_ptid.
6043         <regcache_thread_ptid_changed>: Remove.
6044         <regcaches>: Remove.
6045         * regcache.c (regcache::regcaches): Rename to...
6046         (regcaches): ... this.  Make static.
6047         (get_thread_arch_aspace_regcache): Update.
6048         (regcache::regcache_thread_ptid_changed): Rename to...
6049         (regcache_thread_ptid_changed): ... this.  Update.
6050         (class regcache_access): Remove.
6051         (regcaches_test): Update.
6052         (_initialize_regcache): Update.
6053         * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6054         <forward_list>.
6056 2020-08-06  Simon Marchi  <simon.marchi@efficios.com>
6058         * regcache.h (class regcache) <current_regcache>: Rename to...
6059         <regcaches>: ... this.  Move doc here.
6060         * regcache.c (regcache::current_regcache) Rename to...
6061         (regcache::regcaches): ... this.  Move doc to header.
6062         (get_thread_arch_aspace_regcache): Update.
6063         (regcache::regcache_thread_ptid_changed): Update.
6064         (registers_changed_ptid): Update.
6065         (class regcache_access) <current_regcache_size>: Rename to...
6066         <regcaches_size>: ... this.
6067         (current_regcache_test): Rename to...
6068         (regcaches_test): ... this.
6069         (_initialize_regcache): Update.
6071 2020-08-06  Victor Collod  <vcollod@nvidia.com>
6073         * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6075 2020-08-05  Kevin Buettner  <kevinb@redhat.com>
6077         * corelow.c (core_target::build_file_mappings): Don't output
6078         null pathname in warning.
6080 2020-08-05  Simon Marchi  <simon.marchi@polymtl.ca>
6082         * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6083         gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6084         gdb.dwarf2/dw2-single-line-discriminators.exp,
6085         dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6087 2020-08-05  Tom Tromey  <tromey@adacore.com>
6089         PR rust/26197:
6090         * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6091         (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6092         Fix off-by-one and type size errors in ordinary case.
6094 2020-08-05  Tom de Vries  <tdevries@suse.de>
6096         * gdbtypes.c (type_not_allocated, type_not_associated): Use
6097         "prop->const_val () == 0" instead of "prop->const_val () != 0".
6099 2020-08-04  Simon Marchi  <simon.marchi@efficios.com>
6101         * frame.h (frame_id_p): Return bool.
6102         (frame_id_artificial_p): Return bool.
6103         (frame_id_eq): Return bool.
6104         (has_stack_frames): Return bool.
6105         (get_selected_frame): Fix typo in comment.
6106         (get_frame_pc_if_available): Return bool.
6107         (get_frame_address_in_block_if_available): Return bool.
6108         (get_frame_func_if_available): Return bool.
6109         (read_frame_register_unsigned): Return bool.
6110         (get_frame_register_bytes): Return bool.
6111         (safe_frame_unwind_memory): Return bool.
6112         (deprecated_frame_register_read): Return bool.
6113         (frame_unwinder_is): Return bool.
6114         * frame.c (struct frame_info) <prev_arch::p>: Change type to
6115         bool.
6116         <this_id::p>: Likewise.
6117         <prev_p>: Likewise.
6118         (frame_stash_add): Return bool.
6119         (get_frame_id): Use bool.
6120         (frame_id_build_special) Use bool.
6121         (frame_id_build_unavailable_stack): Use bool.
6122         (frame_id_build): Use bool.
6123         (frame_id_p): Return bool, use true/false instead of 1/0.
6124         (frame_id_artificial_p): Likewise.
6125         (frame_id_eq): Likewise.
6126         (frame_id_inner): Likewise.
6127         (get_frame_func_if_available): Likewise.
6128         (read_frame_register_unsigned): Likewise.
6129         (deprecated_frame_register_read): Likewise.
6130         (get_frame_register_bytes): Likewise.
6131         (has_stack_frames): Likewise.
6132         (inside_main_func): Likewise.
6133         (inside_entry_func): Likewise.
6134         (get_frame_pc_if_available): Likewise.
6135         (get_frame_address_in_block_if_available): Likewise.
6136         (frame_unwinder_is): Likewise.
6137         (safe_frame_unwind_memory): Likewise.
6138         (frame_unwind_arch): Likewise.
6140 2020-08-04  Simon Marchi  <simon.marchi@efficios.com>
6142         * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6143         type to cached_copy_status.
6144         (fprintf_frame): Adjust.
6145         (get_frame_func_if_available): Adjust.
6146         (frame_cleanup_after_sniffer): Adjust.
6148 2020-08-04  Mark Wielaard  <mark@klomp.org>
6150         * MAINTAINERS (Write After Approval): Update email address.
6152 2020-08-04  Simon Marchi  <simon.marchi@polymtl.ca>
6154         * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6155         dynamic_prop::const_val.
6157 2020-08-04  Simon Marchi  <simon.marchi@polymtl.ca>
6159         * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6160         dynamic_prop::kind.
6162 2020-08-04  Simon Marchi  <simon.marchi@polymtl.ca>
6164         * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6166 2020-08-04  Jose E. Marchesi  <jose.marchesi@oracle.com>
6168         * configure.tgt: Set gdb_sim for bpf-*-* targets.
6170 2020-08-04  Weimin Pan <weimin.pan@oracle.com>
6171             Jose E. Marchesi  <jose.marchesi@oracle.com>
6173         * configure.tgt: Add entry for bpf-*-*.
6174         * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6175         (ALLDEPFILES): Add bpf-tdep.c.
6176         * bpf-tdep.c: New file.
6177         * MAINTAINERS: Add bpf target and maintainer.
6178         * NEWS: Mention the support for the new target.
6180 2020-08-04  Tom de Vries  <tdevries@suse.de>
6182         PR symtab/23270
6183         * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6184         Error.
6186 2020-08-03  John Baldwin  <jhb@FreeBSD.org>
6188         * syscalls/freebsd.xml: Regenerate.
6190 2020-08-03  John Baldwin  <jhb@FreeBSD.org>
6192         * syscalls/update-freebsd.sh: Fix usage and year range.
6194 2020-08-03  Tom de Vries  <tdevries@suse.de>
6196         PR symtab/26333
6197         * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6198         DW_LNE_lo_user/DW_LNE_hi_user range.
6200 2020-07-30  Simon Marchi  <simon.marchi@polymtl.ca>
6202         PR ada/26318
6203         * ada-lang.c (ada_modulus): Return 0 if property is not of const
6204         kind.
6206 2020-07-30  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
6208         * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6210 2020-07-30  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
6212         * breakpoint.c (set_breakpoint_condition): Update the condition
6213         expressions after checking that the input condition string parses
6214         successfully and does not contain junk at the end.
6216 2020-07-30  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
6218         * breakpoint.c (set_breakpoint_condition): Update the
6219         condition string after parsing the new condition successfully.
6221 2020-07-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6223         * proc-api.c (_STRUCTURED_PROC): Don't define.
6224         * proc-events.c: Likewise.
6225         * proc-flags.c: Likewise.
6226         * proc-why.c: Likewise.
6227         * procfs.c: Likewise.
6229         * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6230         * configure, config.in: Regenerate.
6232 2020-07-30  Tom de Vries  <tdevries@suse.de>
6234         PR build/26320
6235         * ui-style.h (struct ui_file_style::color): Wrap m_value and
6236         m_red/m_green/m_blue in a union.
6238 2020-07-29  Tom de Vries  <tdevries@suse.de>
6240         PR tdep/26280
6241         * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6243 2020-07-28  Tom Tromey  <tromey@adacore.com>
6245         PR symtab/26270:
6246         * symtab.h (find_pc_partial_function_sym): Declare.
6247         * cli/cli-cmds.c (disassemble_command): Use
6248         find_pc_partial_function_sym.  Check asm_demangle.
6249         * blockframe.c (cache_pc_function_sym): New global.
6250         (cache_pc_function_name): Remove.
6251         (clear_pc_function_cache): Update.
6252         (find_pc_partial_function_sym): New function, from
6253         find_pc_partial_function.
6254         (find_pc_partial_function): Rewrite using
6255         find_pc_partial_function_sym.
6257 2020-07-28  Tom Tromey  <tromey@adacore.com>
6259         * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6260         help.  Add usage.
6262 2020-07-28  Tom Tromey  <tromey@adacore.com>
6264         * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6265         <DW_OP_GNU_variable_value>: Cast to address type.
6267 2020-07-28  Kamil Rytarowski  <n54@gmx.com>
6269         * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6270         * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6271         * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6272         (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6273         (nbsd_get_siginfo_type): New.
6274         (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6275         (_initialize_nbsd_tdep): New.
6277 2020-07-28  H.J. Lu  <hongjiu.lu@intel.com>
6279         PR binutils/26301
6280         * configure: Regenerated.
6282 2020-07-28  H.J. Lu  <hongjiu.lu@intel.com>
6284         PR binutils/26301
6285         * configure: Regenerated.
6287 2020-07-28  Andrew Burgess  <andrew.burgess@embecosm.com>
6289         * python/py-frame.c: Remove 'user-regs.h' include.
6290         (frapy_read_register): Rewrite to make use of
6291         gdbpy_parse_register_id.
6292         * python/py-registers.c (gdbpy_parse_register_id): New function,
6293         moved here from python/py-unwind.c.  Updated the return type, and
6294         also accepts register descriptor objects.
6295         * python/py-unwind.c: Remove 'user-regs.h' include.
6296         (pyuw_parse_register_id): Moved to python/py-registers.c.
6297         (unwind_infopy_add_saved_register): Update to use
6298         gdbpy_parse_register_id.
6299         (pending_framepy_read_register): Likewise.
6300         * python/python-internal.h (gdbpy_parse_register_id): Declare.
6302 2020-07-28  Andrew Burgess  <andrew.burgess@embecosm.com>
6304         * python/py-registers.c: Add 'user-regs.h' include.
6305         (register_descriptor_iter_find): New function.
6306         (register_descriptor_iterator_object_methods): New static global
6307         methods array.
6308         (register_descriptor_iterator_object_type): Add pointer to methods
6309         array.
6311 2020-07-27  John Baldwin  <jhb@FreeBSD.org>
6313         * fbsd-nat.h: Include <osreldate.h>.  Define USE_SIGTRAP_SIGINFO
6314         for all architectures on FreeBSD 11.3 and later.
6316 2020-07-27  Tom Tromey  <tromey@adacore.com>
6318         * gcore.h (load_corefile): Don't declare.
6320 2020-07-27  Tom de Vries  <tdevries@suse.de>
6322         * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6323         * config.in: Regenerate.
6324         * configure: Regenerate.
6326 2020-07-26  Eli Zaretskii  <eliz@gnu.org>
6328         * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6329         ws2tcpip.h.  When checking whether socklen_t type is defined, use
6330         ws2tcpip.h if it is available and sys/socket.h isn't.
6331         * configure: Regenerate.
6332         * config.in: Regenerate.
6334 2020-07-25  Andrew Burgess  <andrew.burgess@embecosm.com>
6336         PR fortran/23051
6337         PR fortran/26139
6338         * valops.c (value_ind): Pass address to
6339         readjust_indirect_value_type.
6340         * value.c (readjust_indirect_value_type): Make parameter
6341         non-const, and add extra address parameter.  Resolve original type
6342         before using it.
6343         * value.h (readjust_indirect_value_type): Update function
6344         signature and comment.
6346 2020-07-25  Tom de Vries  <tdevries@suse.de>
6348         PR symtab/26243
6349         * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6350         entries.
6352 2020-07-24  Aaron Merey  <amerey@redhat.com>
6354         * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6355         * configure: Rebuild.
6357 2020-07-23  Kevin Buettner  <kevinb@redhat.com>
6359         PR corefiles/26294
6360         * corelow.c (_initialize_corelow): Add period to help text
6361         for "maintenance print core-file-backed-mappings".
6363 2020-07-23  Pedro Alves  <pedro@palves.net>
6365         * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6366         touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6367         meanwhile.
6368         * frame.c (frame_cache_generation, get_frame_cache_generation):
6369         New.
6370         (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6371         (get_prev_frame_if_no_cycle): On exception, don't touch
6372         PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6373         * frame.h (get_frame_cache_generation): Declare.
6375 2020-07-23  Tom de Vries  <tdevries@suse.de>
6377         PR tui/26282
6378         * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6379         New default constructor.
6381 2020-07-23  Andrew Burgess  <andrew.burgess@embecosm.com>
6383         * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6384         exclude non-statement entries.
6386 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
6388         * NEWS (New commands): Mention new command
6389         "maintenance print core-file-backed-mappings".
6391 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
6393         * corelow.c (gdbcmd.h): Include.
6394         (core_target::info_proc_mappings): New method.
6395         (get_current_core_target): New function.
6396         (maintenance_print_core_file_backed_mappings): New function.
6397         (_initialize_corelow): Add core-file-backed-mappings to
6398         "maint print" commands.
6400 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
6402         * linux-tdep.c (dump_note_entry_p): New function.
6403         (linux_dump_mapping_p_ftype): New typedef.
6404         (linux_find_memory_regions_full): Add new parameter,
6405         should_dump_mapping_p.
6406         (linux_find_memory_regions): Adjust call to
6407         linux_find_memory_regions_full.
6408         (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6409         call to linux_find_memory_regions_full.
6411 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
6413         * corelow.c (solist.h, unordered_map): Include.
6414         (class core_target): Add field m_core_file_mappings and
6415         method build_file_mappings.
6416         (core_target::core_target): Call build_file_mappings.
6417         (core_target::~core_target): Free memory associated with
6418         m_core_file_mappings.
6419         (core_target::build_file_mappings): New method.
6420         (core_target::xfer_partial): Use m_core_file_mappings
6421         for memory transfers.
6422         * linux-tdep.c (linux_read_core_file_mappings): New
6423         function.
6424         (linux_core_info_proc_mappings): Rewrite to use
6425         linux_read_core_file_mappings.
6426         (linux_init_abi): Register linux_read_core_file_mappings.
6428 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
6430         * arch-utils.c (default_read_core_file_mappings): New function.
6431         * arch-utils.c (default_read_core_file_mappings): Declare.
6432         * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6433         * gdbarch.h, gdbarch.c: Regenerate.
6435 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
6437         PR corefiles/25631
6438         * corelow.c (core_target:xfer_partial):  Revise
6439         TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6440         case after first checking the stratum beneath the core
6441         target.
6442         (has_all_memory): Return true.
6443         * target.c (raw_memory_xfer_partial): Revise comment
6444         regarding use of has_all_memory.
6446 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
6448         * exec.h (section_table_xfer_memory): Revise declaration,
6449         replacing section name parameter with an optional callback
6450         predicate.
6451         * exec.c (section_table_xfer_memory): Likewise.
6452         * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6453         of section_table_xfer_memory.
6455 2020-07-22  Tom Tromey  <tromey@adacore.com>
6457         * mi/mi-cmd-stack.c (list_args_or_locals): Use
6458         lookup_symbol_search_name.
6460 2020-07-22  Andrew Burgess  <andrew.burgess@embecosm.com>
6462         * python/py-registers.c (gdbpy_register_object_data_init): Remove
6463         redundant local variable.
6464         (gdbpy_get_register_descriptor): Extract descriptor vector as a
6465         reference, not pointer, update code accordingly.
6467 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
6468             Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
6470         * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6471         * jit.c (jit_breakpoint_re_set_internal): Use the
6472         `skip_jit_symbol_lookup` field.
6474 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
6475             Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
6477         * jit.c (jit_read_descriptor): Define the descriptor address once,
6478         use twice.
6479         (jit_breakpoint_deleted): Move the declaration of the loop variable
6480         `iter` into the loop header.
6481         (jit_breakpoint_re_set_internal): Move the declaration of the local
6482         variable `objf_data` to the first point of definition.
6483         (jit_event_handler): Move the declaration of local variables
6484         `code_entry`, `entry_addr`, and `objf` to their first point of use.
6485         Rename `objf` to `jited`.
6487 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
6489         * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6490         Remove.
6491         * jit.c (get_jiter_objfile_data): Update.
6493 2020-07-22  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
6494             Simon Marchi  <simon.marchi@polymtl.ca>
6496         * jit.c (struct jit_program_space_data): Remove.
6497         (jit_program_space_key): Remove.
6498         (jiter_objfile_data::~jiter_objfile_data): Remove program space
6499         stuff.
6500         (get_jit_program_space_data): Remove.
6501         (jit_breakpoint_deleted): Iterate on all of the program space's
6502         objfiles.
6503         (jit_inferior_init): Likewise.
6504         (jit_breakpoint_re_set_internal): Likewise.  Also change return
6505         type to void.
6506         (jit_breakpoint_re_set): Pass current_program_space to
6507         jit_breakpoint_re_set_internal.
6509 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
6511         * jit.h (struct jiter_objfile_data) <cached_code_address,
6512         jit_breakpoint>: Move to here from ...
6513         * jit.c (jit_program_space_data): ... here.
6514         (jiter_objfile_data::~jiter_objfile_data): Update.
6515         (jit_breakpoint_deleted): Update.
6516         (jit_breakpoint_re_set_internal): Update.
6518 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
6520         * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6521         checks.
6522         (jit_read_descriptor): Remove NULL check.
6523         (jit_event_handler): Add an assertion.
6525 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
6527         * jit.h (struct jit_objfile_data):  Split into...
6528         (struct jiter_objfile_data): ... this ...
6529         (struct jited_objfile_data): ... and this.
6530         * objfiles.h (struct objfile) <jit_data>: Remove.
6531         <jiter_data, jited_data>: New fields.
6532         * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6533         (jiter_objfile_data::~jiter_objfile_data): ... this.
6534         (get_jit_objfile_data): Rename to ...
6535         (get_jiter_objfile_data): ... this.
6536         (add_objfile_entry): Update.
6537         (jit_read_descriptor): Use get_jiter_objfile_data.
6538         (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6539         (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6540         (jit_inferior_exit_hook): Use objfile's jited_data field.
6542 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
6544         * jit.h: Forward-declare `struct minimal_symbol`.
6545         (struct jit_objfile_data): Migrate to here from jit.c; also add a
6546         constructor, destructor, and an objfile* field.
6547         * jit.c (jit_objfile_data): Remove.
6548         (struct jit_objfile_data): Migrate from here to jit.h.
6549         (jit_objfile_data::~jit_objfile_data): New destructor
6550         implementation with code moved from free_objfile_data.
6551         (free_objfile_data): Delete.
6552         (get_jit_objfile_data): Update to use the jit_data field of objfile.
6553         (jit_find_objf_with_entry_addr): Ditto.
6554         (jit_inferior_exit_hook): Ditto.
6555         (_initialize_jit): Remove the call to
6556         register_objfile_data_with_cleanup.
6557         * objfiles.h (struct objfile) <jit_data>: New field.
6559 2020-07-22  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
6561         * jit.h: Forward-declare `struct objfile`.
6562         (jit_event_handler): Add a second parameter, the JITer objfile.
6563         * jit.c (jit_read_descriptor): Change the signature to take the
6564         JITer objfile as an argument instead of the jit_program_space_data.
6565         (jit_inferior_init): Update the call to jit_read_descriptor.
6566         (jit_event_handler): Use the new JITer objfile argument when calling
6567         jit_read_descriptor.
6568         * breakpoint.c (handle_jit_event): Update the call to
6569         jit_event_handler to pass the JITer objfile.
6571 2020-07-21  John Baldwin  <jhb@FreeBSD.org>
6573         * gdbarch.c: Regenerate.
6574         * gdbarch.h: Regenerate.
6575         * gdbarch.sh (handle_segmentation_fault): Remove method.
6576         * infrun.c (handle_segmentation_fault): Remove.
6577         (print_signal_received_reason): Remove call to
6578         handle_segmentation_fault.
6580 2020-07-21  John Baldwin  <jhb@FreeBSD.org>
6582         * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6583         Rename to sparc64_linux_report_signal_info and add siggnal
6584         argument.
6585         (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6586         instead of sparc64_linux_handle_segmentation_fault.
6588 2020-07-21  John Baldwin  <jhb@FreeBSD.org>
6590         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6591         i386_linux_report_signal_info instead of
6592         i386_linux_handle_segmentation_fault.
6593         * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6594         to i386_linux_report_signal_info and add siggnal argument.
6595         (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6596         of i386_linux_handle_segmentation_fault.
6597         * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6598         to i386_linux_report_signal_info and add siggnal argument.
6600 2020-07-21  John Baldwin  <jhb@FreeBSD.org>
6602         * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6603         hook if present.
6605 2020-07-21  John Baldwin  <jhb@FreeBSD.org>
6607         * gdbarch.c: Regenerate.
6608         * gdbarch.h: Regenerate.
6609         * gdbarch.sh (report_signal_info): New method.
6610         * infrun.c (print_signal_received_reason): Invoke gdbarch
6611         report_signal_info hook if present.
6613 2020-07-21  Andrew Burgess  <andrew.burgess@embecosm.com>
6615         * python/py-registers.c : Add 'unordered_map' include.
6616         (gdbpy_new_reggroup): Renamed to...
6617         (gdbpy_get_reggroup): ...this.  Update to only create register
6618         group descriptors when needed.
6619         (gdbpy_reggroup_iter_next): Update.
6621 2020-07-21  Andrew Burgess  <andrew.burgess@embecosm.com>
6623         * python/py-registers.c (gdbpy_register_object_data): New static
6624         global.
6625         (gdbpy_register_object_data_init): New function.
6626         (gdbpy_new_register_descriptor): Renamed to...
6627         (gdbpy_get_register_descriptor): ...this, and update to reuse
6628         existing register descriptors where possible.
6629         (gdbpy_register_descriptor_iter_next): Update.
6630         (gdbpy_initialize_registers): Register new gdbarch data.
6632 2020-07-21  Simon Marchi  <simon.marchi@efficios.com>
6634         * linux-nat.c (stopped_pids): Make static.
6636 2020-07-21  Simon Marchi  <simon.marchi@polymtl.ca>
6638         PR ada/26235
6639         * gdbtypes.c (ada_discrete_type_low_bound,
6640         ada_discrete_type_high_bound): Handle undefined bounds.
6642 2020-07-21  Kamil Rytarowski  <n54@gmx.com>
6644         * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6645         declaration.
6646         * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6647         function.
6649 2020-07-20  John Baldwin  <jhb@FreeBSD.org>
6651         * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6652         (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6653         * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6654         * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6655         (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6656         method.
6658 2020-07-20 Ludovic Courtès  <ludo@gnu.org>
6660         * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6661         and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6662         which are deprecated in Guile 3.0.
6663         * configure.ac (try_guile_versions): Add "guile-3.0".
6664         * configure (try_guile_versions): Regenerate.
6665         * NEWS: Update entry.
6667 2020-07-20  Ludovic Courtès  <ludo@gnu.org>
6668             Doug Evans  <dje@google.com>
6670         PR gdb/21104
6671         * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6672         (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6673         USING_GUILE_BEFORE_2_2.
6674         (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6675         Change type to 'scm_t_port_type *'.
6676         (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6677         (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6678         parameter and honor it.  Update callers.
6679         (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6680         (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6681         functions.
6682         (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6683         USING_GUILE_BEFORE_2_2.
6684         (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6685         'ioscm_read_from_port'.  Call 'scm_set_port_read_wait_fd'.
6686         (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6687         (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6688         and 'SCM_PORT_TYPE'.
6689         (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6690         (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6691         (gdbscm_memory_port_read, gdbscm_memory_port_write)
6692         (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6693         [!USING_GUILE_BEFORE_2_2]: New functions.
6694         (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6695         (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6696         'gdbscm_memory_port_read'.
6697         Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6698         'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6699         (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6700         function.
6701         (ioscm_init_memory_port): Remove.
6702         (ioscm_init_memory_port_stream): New function
6703         (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6704         function.
6705         (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6706         Return scm_from_uint (0).
6707         (gdbscm_set_memory_port_read_buffer_size_x)
6708         [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6709         (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6710         Return scm_from_uint (0).
6711         (gdbscm_set_memory_port_write_buffer_size_x)
6712         [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6713         * configure.ac (try_guile_versions): Add "guile-2.2".
6714         * configure: Regenerate.
6715         * NEWS: Add entry.
6717 2020-07-18  Tom Tromey  <tom@tromey.com>
6719         * linux-nat.c (linux_multi_process): Remove.
6720         (linux_nat_target::supports_multi_process): Return true.
6722 2020-07-17  Andrew Burgess  <andrew.burgess@embecosm.com>
6724         * arch/riscv.c (riscv_tdesc_cache): Change map type.
6725         (riscv_lookup_target_description): Return pointer out of
6726         unique_ptr.
6727         * target-descriptions.c (allocate_target_description): Add
6728         comment.
6729         (target_desc_deleter::operator()): Likewise.
6730         * target-descriptions.h (struct target_desc_deleter): Moved to
6731         gdbsupport/tdesc.h.
6732         (target_desc_up): Likewise.
6734 2020-07-17  Tom Tromey  <tromey@adacore.com>
6736         * linux-nat.c (linux_nat_target::supports_non_stop)
6737         (linux_nat_target::always_non_stop_p): Use "true".
6738         (linux_nat_target::supports_disable_randomization): Use "true" and
6739         "false".
6741 2020-07-16  Caroline Tice  <cmtice@google.com>
6743         * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6744         (RNGLIST_HEADER_SIZE64): New constant definition.
6745         (struct dwop_section_names): Add rnglists_dwo.
6746         (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6747         (struct loclist_header): Rename to 'loclists_rnglists_header'.
6748         (struct dwo_sections): Add rnglists field.
6749         (read_attribut_reprocess): Add tag parameter.
6750         (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6751         (cu_debug_rnglists_section): New function (decl & definition).
6752         (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6753         (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6754         die whose range is being checked; get rnglist section from
6755         cu_debug_rnglists_section, to get from either objfile or dwo file as
6756         appropriate.  Add cases for DW_RLE_base_addressx,
6757         DW_RLE_startx_length, DW_RLE_startx_endx.  Also, update to only add
6758         the base address to DW_RLE_offset_pairs (not to all ranges), moving
6759         test inside if-condition and updating complaint message.
6760         (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6761         dwarf2_rnglists_process.
6762         (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6763         dwarf2_ranges_process.
6764         (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6765         need_ranges_base and update comment appropriately.  Also pass die tag
6766         to dwarf2_ranges_read.
6767         (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6768         need_ranges_base and update comment appropriately.  Also pass die tag
6769         to dwarf2_ranges_process.
6770         (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6771         cu->ranges_base.  Also pass die tag to read_attribute_reprocess.
6772         (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6773         need_ranges_base and update comment appropriately.  Also pass die tag
6774         to read_attribute_reprocess and dwarf2_ranges_read.
6775         (read_loclist_header): Rename function to read_loclists_rnglists_header,
6776         and update function comment appropriately.
6777         (read_loclist_index): Call read_loclists_rnglists_header instead of
6778         read_loclist_header.
6779         (read_rnglist_index): New function.
6780         (read_attribute_reprocess):  Add tag parameter. Add code for
6781         DW_FORM_rnglistx, passing tag to read_rnglist_index.
6782         (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6784 2020-07-15  Andrew Burgess  <andrew.burgess@embecosm.com>
6786         * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6787         being resolved.
6789 2020-07-14  Andrew Burgess  <andrew.burgess@embecosm.com>
6791         * arch-utils.c (show_architecture): Update formatting of messages.
6793 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6795         * gdbtypes.h (struct type) <bounds>: Handle array and string
6796         types.
6797         * ada-lang.c (assign_aggregate): Use type::bounds on
6798         array/string type.
6799         * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6800         * c-varobj.c (c_number_of_children): Likewise.
6801         (c_describe_child): Likewise.
6802         * eval.c (evaluate_subexp_for_sizeof): Likewise.
6803         * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6804         (f_type_print_base): Likewise.
6805         * f-valprint.c (f77_array_offset_tbl): Likewise.
6806         (f77_get_upperbound): Likewise.
6807         (f77_print_array_1): Likewise.
6808         * guile/scm-type.c (gdbscm_type_range): Likewise.
6809         * m2-typeprint.c (m2_array): Likewise.
6810         (m2_is_long_set_of_type): Likewise.
6811         * m2-valprint.c (get_long_set_bounds): Likewise.
6812         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6813         * python/py-type.c (typy_range): Likewise.
6814         * rust-lang.c (rust_internal_print_type): Likewise.
6815         * type-stack.c (type_stack::follow_types): Likewise.
6816         * valarith.c (value_subscripted_rvalue): Likewise.
6817         * valops.c (value_cast): Likewise.
6819 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6821         * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove.  Update all
6822         callers to use the equivalent accessor methods.
6824 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6826         * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6827         (struct type) <bit_stride>: New method.
6828         (TYPE_BIT_STRIDE): Remove.
6829         * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6831 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6833         * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6834         TYPE_ARRAY_UPPER_BOUND_VALUE): Remove.  Update all
6835         callers to use the equivalent accessor methods instead.
6837 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6839         * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6840         TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove.  Update all
6841         callers to use the equivalent accessor methods instead.
6843 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6845         * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6846         TYPE_HIGH_BOUND_KIND): Remove.  Update all callers
6847         to use dynamic_prop::kind.
6849 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6851         * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6852         TYPE_HIGH_BOUND_UNDEFINED): Remove.  Update all callers
6853         to get the bound property's kind and check against
6854         PROP_UNDEFINED.
6856 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6858         * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove.  Update
6859         all callers to use type::range_bounds followed by
6860         dynamic_prop::{low,high}.
6862 2020-07-12  Simon Marchi  <simon.marchi@polymtl.ca>
6864         * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6865         const_val, set_const_val, baton, set_locexpr, set_loclist,
6866         set_addr_offset, variant_parts, set_variant_parts,
6867         original_type, set_original_type>: New methods.
6868         <kind>: Rename to...
6869         <m_kind>: ... this.  Update all users to use the new methods
6870         instead.
6871         <data>: Rename to...
6872         <m_data>: ... this.  Update all users to use the new methods
6873         instead.
6875 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6877         * gdbtypes.c (get_discrete_bounds): Return failure if
6878         the range type's bounds are not both defined and constant
6879         values.
6880         (get_array_bounds): Update comment.  Remove undefined bound check.
6882 2020-07-12  Simon Marchi  <simon.marchi@polymtl.ca>
6884         * gdbtypes.h (TYPE_RANGE_DATA): Remove.  Update callers to use
6885         the type::bounds method directly.
6887 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6889         * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6890         (TYPE_RANGE_DATA): Use type::bounds.  Change all uses that
6891         are used to set the range type's bounds to use set_bounds.
6893 2020-07-11  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6895         * exec.c (_initialize_exec): Update exec-file-mismatch help.
6897 2020-07-10  Pedro Alves  <pedro@palves.net>
6899         * gdbthread.h (inferior_ref): Define.
6900         (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6901         (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6902         * thread.c
6903         (scoped_restore_current_thread::restore):
6904         Adjust to gdb::ref_ptr.
6905         (scoped_restore_current_thread::~scoped_restore_current_thread):
6906         Remove manual decref handling.
6907         (scoped_restore_current_thread::scoped_restore_current_thread):
6908         Adjust to use
6909         inferior_ref::new_reference/thread_info_ref::new_reference.
6910         Incref the thread before calling get_frame_id instead of after.
6911         Let TARGET_CLOSE_ERROR propagate.
6913 2020-07-10  Pedro Alves  <pedro@palves.net>
6915         * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6916         NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6917         NOT_AVAILABLE_ERROR.
6918         * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6919         OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6921 2020-07-10  Simon Marchi  <simon.marchi@polymtl.ca>
6922             Pedro Alves  <pedro@palves.net>
6924         PR gdb/26199
6925         * infrun.c (threads_are_resumed_pending_p): Delete.
6926         (do_target_wait): Remove threads_are_executing and
6927         threads_are_resumed_pending_p checks from the inferior_matches
6928         lambda.  Update comments.
6930 2020-07-10  Pedro Alves  <pedro@palves.net>
6932         PR gdb/26199
6933         * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6934         executing threads.
6936 2020-07-10  Pedro Alves  <pedro@palves.net>
6938         PR gdb/26199
6939         * infrun.c (handle_no_resumed): Handle multiple targets.
6941 2020-07-10  Pedro Alves  <pedro@palves.net>
6943         PR gdb/26199
6944         * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6945         target_is_async_p.
6947 2020-07-10  Pedro Alves  <pedro@palves.net>
6949         PR gdb/26199
6950         * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6951         threads, not all threads.
6953 2020-07-10  Pedro Alves  <pedro@palves.net>
6955         PR gdb/26199
6956         * remote.c (remote_target::open_1): Pass remote target pointer as
6957         data to create_async_event_handler.
6958         (remote_async_inferior_event_handler): Mark async event handler
6959         before returning if the remote target still has either pending
6960         events or unacknowledged notifications.
6962 2020-07-10  John Baldwin  <jhb@FreeBSD.org>
6964         * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6965         declaration.
6966         * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6967         function.
6969 2020-07-09  John Baldwin  <jhb@FreeBSD.org>
6971         * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6972         inferior_ptid.
6974 2020-07-09  John Baldwin  <jhb@FreeBSD.org>
6976         * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6977         AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6978         AT_FREEBSD_PS_STRINGS.
6980 2020-07-08  Hannes Domani  <ssbssa@yahoo.de>
6982         * auto-load.c (auto_load_objfile_script_1): Convert drive part
6983         of debugfile path on Windows.
6985 2020-07-08  John Baldwin  <jhb@FreeBSD.org>
6987         * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6988         argument to 'data'.
6990 2020-07-08  Tom Tromey  <tromey@adacore.com>
6992         * ada-lang.c (ada_exception_message_1): Use read_memory.
6994 2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6996         PR python/22748
6997         * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6998         special handling for inline frames.
6999         * findvar.c (value_of_register_lazy): Skip inline frames when
7000         creating lazy register values.
7001         * frame.c (frame_id_computed_p): Delete definition.
7002         * frame.h (frame_id_computed_p): Delete declaration.
7004 2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
7006         * NEWS: Mention additions to Python API.
7007         * python/py-arch.c (archpy_register_groups): New function.
7008         (arch_object_methods): Add 'register_groups' method.
7009         * python/py-registers.c (reggroup_iterator_object): New struct.
7010         (reggroup_object): New struct.
7011         (gdbpy_new_reggroup): New function.
7012         (gdbpy_reggroup_to_string): New function.
7013         (gdbpy_reggroup_name): New function.
7014         (gdbpy_reggroup_iter): New function.
7015         (gdbpy_reggroup_iter_next): New function.
7016         (gdbpy_new_reggroup_iterator): New function
7017         (gdbpy_initialize_registers): Register new types.
7018         (reggroup_iterator_object_type): Define new Python type.
7019         (gdbpy_reggroup_getset): New static global.
7020         (reggroup_object_type): Define new Python type.
7021         * python/python-internal.h
7023 2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
7025         * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7026         * python/py-arch.c (archpy_registers): New function.
7027         (arch_object_methods): Add 'registers' method.
7028         * python/py-registers.c: New file.
7029         * python/python-internal.h
7030         (gdbpy_new_register_descriptor_iterator): Declare.
7031         (gdbpy_initialize_registers): Declare.
7032         * python/python.c (do_start_initialization): Call
7033         gdbpy_initialize_registers.
7034         * NEWS: Mention additions to the Python API.
7036 2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
7038         * NEWS: Mention new Python API method.
7039         * python/py-unwind.c (pending_framepy_architecture): New function.
7040         (pending_frame_object_methods): Add architecture method.
7042 2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
7044         * gdbarch.c: Regenerate.
7045         * gdbarch.h: Regenerate.
7046         * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7047         (gdbarch_data): Use internal_error for the case where
7048         deprecated_set_gdbarch_data was originally needed.
7049         * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7050         and use passed in obstack.
7051         (libunwind_frame_set_descr): Should no longer get back NULL from
7052         gdbarch_data.
7053         (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7054         type.
7055         * user-regs.c (user_regs_init): Update parameters, and use passed
7056         in obstack.
7057         (user_reg_add): Should no longer get back NULL from gdbarch_data.
7058         (_initialize_user_regs): Register as a pre-init gdbarch data type.
7060 2020-07-06  Tom de Vries  <tdevries@suse.de>
7062         * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7063         End-Of-Sequence in lte_is_less_than.
7064         * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7065         "gdb: Don't reorder line table entries too much when sorting".
7067 2020-07-06  Tom de Vries  <tdevries@suse.de>
7069         PR tui/26205
7070         * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7072 2020-07-05  Tom de Vries  <tdevries@suse.de>
7074         PR build/26187
7075         * inferior.h (struct infcall_suspend_state_deleter): If available, use
7076         std::uncaught_exceptions instead of deprecated
7077         std::uncaught_exception.
7079 2020-07-02  Simon Marchi  <simon.marchi@polymtl.ca>
7081         * macroexp.h (macro_stringify): Return
7082         gdb::unique_xmalloc_ptr<char>.
7083         * macroexp.c (macro_stringify): Likewise.
7084         * macrotab.c (fixup_definition): Update.
7086 2020-07-02  Simon Marchi  <simon.marchi@polymtl.ca>
7088         * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7089         (lex_one_token): Update.
7090         * macroexp.c (struct macro_buffer) <release>: Return
7091         gdb::unique_xmalloc_ptr<char>.
7092         (macro_stringify): Update.
7093         (macro_expand): Update.
7094         (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7095         * macroexp.h (macro_expand_next): Likewise.
7097 2020-07-02  Simon Marchi  <simon.marchi@efficios.com>
7099         * macroexp.h (macro_lookup_ftype): Remove.
7100         (macro_expand, macro_expand_once, macro_expand_next): Remove
7101         lookup function parameters, add scope parameter.
7102         * macroexp.c (scan, substitute_args, expand, maybe_expand,
7103         macro_expand, macro_expand_once, macro_expand_next): Likewise.
7104         * macroscope.h (standard_macro_lookup): Change parameter type
7105         to macro_scope.
7106         * macroscope.c (standard_macro_lookup): Likewise.
7107         * c-exp.y (lex_one_token): Update.
7108         * macrocmd.c (macro_expand_command): Likewise.
7109         (macro_expand_once_command): Likewise.
7111 2020-07-02  Simon Marchi  <simon.marchi@polymtl.ca>
7113         * inf-loop.c (inferior_event_handler): Remove client_data param.
7114         * inf-loop.h (inferior_event_handler): Likewise.
7115         * infcmd.c (step_1): Adjust.
7116         * infrun.c (proceed): Adjust.
7117         (fetch_inferior_event): Remove client_data param.
7118         (infrun_async_inferior_event_handler): Adjust.
7119         * infrun.h (fetch_inferior_event): Remove `void *` param.
7120         * linux-nat.c (handle_target_event): Adjust.
7121         * record-btrace.c (record_btrace_handle_async_inferior_event):
7122         Adjust.
7123         * record-full.c (record_full_async_inferior_event_handler):
7124         Adjust.
7125         * remote.c (remote_async_inferior_event_handler): Adjust.
7127 2020-07-01  Tom Tromey  <tom@tromey.com>
7129         * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7130         * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7132 2020-07-01  Tom Tromey  <tom@tromey.com>
7134         * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7135         tui_gen_win_info.
7136         (tui_win_info::make_window): Merge with
7137         tui_gen_win_info::make_window.
7138         (tui_win_info::make_visible): Move from tui_gen_win_info.
7139         * tui/tui-win.c (tui_win_info::max_width): Move from
7140         tui_gen_win_info.
7141         * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7142         type.
7143         <window_factory>: Likewise.
7144         * tui/tui-layout.c (tui_win_info::resize): Move from
7145         tui_gen_win_info.
7146         (make_standard_window): Change return type.
7147         (get_locator_window, tui_get_window_by_name): Likewise.
7148         (tui_layout_window::apply): Remove a cast.
7149         * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7150         (struct tui_win_info): Merge with tui_gen_win_info.
7151         (struct tui_gen_win_info): Remove.
7153 2020-07-01  Tom Tromey  <tom@tromey.com>
7155         * tui/tui-stack.h (struct tui_locator_window): Derive from
7156         tui_win_info.
7157         <do_scroll_horizontal, do_scroll_vertical>: New methods.
7158         <can_box>: New method.
7160 2020-07-01  Tom Tromey  <tom@tromey.com>
7162         * tui/tui-stack.h (struct tui_locator_window): Remove body.
7164 2020-07-01  Tom Tromey  <tom@tromey.com>
7166         * tui/tui-regs.c (tui_data_window::display_registers_from)
7167         (tui_data_window::display_registers_from)
7168         (tui_data_window::first_data_item_displayed)
7169         (tui_data_window::delete_data_content_windows): Update.
7170         (tui_data_window::refresh_window, tui_data_window::no_refresh):
7171         Remove.
7172         (tui_data_window::check_register_values): Update.
7173         (tui_data_item_window::rerender): Add parameters.  Update.
7174         (tui_data_item_window::refresh_window): Remove.
7175         * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7176         virtual.
7177         * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7178         tui_gen_win_info.
7179         <refresh_window, max_height, min_height>: Remove.
7180         <rerender>: Add parameters.
7181         <x, y, visible>: New members.
7182         (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7183         <m_item_width>: New member.
7185 2020-07-01  Tom Tromey  <tom@tromey.com>
7187         * tui/tui-regs.c (tui_data_window::show_register_group)
7188         (tui_data_window::check_register_values): Update.
7189         * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7190         from item_no.
7192 2020-07-01  Tom Tromey  <tom@tromey.com>
7194         * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7195         useless "if".
7197 2020-07-01  Tom Tromey  <tom@tromey.com>
7199         * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7200         * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7202 2020-07-01  Tom Tromey  <tom@tromey.com>
7204         * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7205         * tui/tui-winsource.h (enum tui_line_or_address_kind)
7206         (struct tui_line_or_address): Move from tui-data.h.
7207         * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7208         * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7209         (tui_cmd_window, tui_source_window_base, tui_source_window)
7210         (tui_disasm_window): Don't declare.
7211         (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7212         to tui-winsource.h.
7213         (SINGLE_KEY): Move to tui-stack.c.
7215 2020-07-01  Tom Tromey  <tom@tromey.com>
7217         * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7218         std::string.
7219         * tui/tui-regs.c (class tab_expansion_file): New.
7220         (tab_expansion_file::write): New method.
7221         (tui_register_format): Change return type.  Use
7222         tab_expansion_file.
7223         (tui_get_register, tui_data_window::display_registers_from)
7224         (tui_data_item_window::rerender): Update.
7225         * tui/tui-io.h (tui_expand_tabs): Don't declare.
7226         * tui/tui-io.c (tui_expand_tabs): Remove.
7228 2020-07-01  Tom Tromey  <tom@tromey.com>
7230         * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7232 2020-07-01  Fangrui Song  <maskray@google.com>
7234         * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7236 2020-07-01  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
7238         * dwarf2/read.c (set_die_type): Removed conditions to restrict
7239         forms for DW_AT_associated and DW_AT_allocated attributes,
7240         which is already checked in function attr_to_dynamic_prop.
7242 2020-06-30  Tom Tromey  <tromey@adacore.com>
7244         * dwarf2/read.c (quirk_rust_enum): Correctly call
7245         alloc_rust_variant for default-less enum.
7247 2020-06-30  Tom Tromey  <tromey@adacore.com>
7249         PR build/26183:
7250         * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7251         gdb::to_string.
7253 2020-06-29  Simon Marchi  <simon.marchi@efficios.com>
7255         * gdbarch.sh (displaced_step_copy_insn): Update doc.
7256         * gdbarch.h: Re-generate.
7258 2020-06-28  Tom Tromey  <tom@tromey.com>
7260         * command.h (cmd_types): Remove.
7261         (cmd_type): Don't declare.
7262         * cli/cli-decode.h (enum cmd_types): Uncomment.  No longer a
7263         typedef.
7264         * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7265         * cli/cli-decode.c (cmd_type): Remove.
7267 2020-06-27  Pedro Alves  <palves@redhat.com>
7269         * fork-child.c (prefork_hook): Adjust.
7270         * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7271         Delete.
7272         (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7273         * inferior.c (inferior::set_tty, inferior::tty): New methods.
7274         * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7275         Remove declarations.
7276         (struct inferior) <set_tty, tty>: New methods.
7277         (struct inferior) <terminal>: Rename to ...
7278         (struct inferior) <m_terminal>: ... this and make private.
7279         * main.c (captured_main_1): Adjust.
7280         * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7281         (mi_cmd_inferior_tty_show): Adjust.
7282         * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7283         * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7285 2020-06-26  Nick Alcock  <nick.alcock@oracle.com>
7287         * configure.ac: Add --enable-libctf: handle --disable-static
7288         properly.
7289         * acinclude.m4: sinclude ../config/enable.m4.
7290         * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7291         (LIBCTF): Substitute in.
7292         (CTF_DEPS): New, likewise.
7293         (CLIBS): libctf needs symbols from libbfd: move earlier.
7294         (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7295         flags.
7296         * ctfread.c: Surround in ENABLE_LIBCTF.
7297         (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7298         * configure: Regenerate.
7299         * config.in: Likewise.
7301 2020-06-25  Simon Marchi  <simon.marchi@efficios.com>
7303         * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7305 2020-06-25  Simon Marchi  <simon.marchi@efficios.com>
7307         * inferior.h (struct inferior) <terminal>: Change type to
7308         gdb::unique_xmalloc_ptr<char>.
7309         * inferior.c (inferior::~inferior): Don't free inf->terminal.
7310         * infcmd.c (set_inferior_io_terminal): Don't free terminal
7311         field, adjust to unique pointer.
7312         (get_inferior_io_terminal): Adjust to unique pointer.
7314 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
7316         * riscv-tdep.c (riscv_print_registers_info): Loop over all
7317         registers, not just the known core set of registers.
7319 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
7321         * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7322         fflags, frm, and fcsr registers.
7323         (riscv_register_reggroup_p): Remove unknown CSRs from save and
7324         restore groups.
7325         (riscv_tdesc_unknown_reg): New function.
7326         (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7327         tdesc_use_registers.
7328         * riscv-tdep.h (struct gdbarch_tdep): Add
7329         unknown_csrs_first_regnum, unknown_csrs_count,
7330         duplicate_fflags_regnum, duplicate_frm_regnum, and
7331         duplicate_fcsr_regnum fields.
7333 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
7335         * target-descriptions.c (tdesc_use_registers): Add new parameter a
7336         callback, use the callback (when not null) to help number unknown
7337         registers.
7338         * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7339         (tdesc_use_registers): Add extra parameter to declaration.
7341 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
7343         * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7344         in the file.
7345         (class riscv_pending_register_alias): Likewise.
7346         (riscv_register_feature::register_info): Change 'required_p' field
7347         to 'required', and change its type.  Add 'check' member function.
7348         (riscv_register_feature::register_info::check): Define new member
7349         function.
7350         (riscv_xreg_feature): Change initialisation of 'required' field.
7351         (riscv_freg_feature): Likewise.
7352         (riscv_virtual_feature): Likewise.
7353         (riscv_csr_feature): Likewise.
7354         (riscv_check_tdesc_feature): Take extra parameter, the csr
7355         tdesc_feature, rewrite the function to use the new
7356         riscv_register_feature::register_info::check function.
7357         (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7359 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
7361         * features/Makefile: Remove all references to the deleted files
7362         below.
7363         * features/riscv/32bit-csr.c: Deleted.
7364         * features/riscv/32bit-csr.xml: Deleted.
7365         * features/riscv/64bit-csr.c: Deleted.
7366         * features/riscv/64bit-csr.xml: Deleted.
7367         * features/riscv/rebuild-csr-xml.sh: Deleted.
7369 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
7371         * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7372         whitespace error for declaration of names member variable.
7373         (struct riscv_register_feature): Add new prefer_first_name member
7374         variable, and fix whitespace error in declaration of registers.
7375         (riscv_xreg_feature): Initialize prefer_first_name field.
7376         (riscv_freg_feature): Likewise.
7377         (riscv_virtual_feature): Likewise.
7378         (riscv_csr_feature): Likewise.
7379         (riscv_register_name): Expand on comments.  Remove register name
7380         modifications for CSR and virtual registers.
7382 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
7384         * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7385         errors.
7387 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
7389         * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7390         riscv-opc.h.
7391         (class riscv_pending_register_alias): New class.
7392         (riscv_check_tdesc_feature): Take vector of pending aliases and
7393         populate it as appropriate.
7394         (riscv_setup_register_aliases): Delete.
7395         (riscv_gdbarch_init): Create vector of pending aliases and pass it
7396         to riscv_check_tdesc_feature in all cases.  Use the vector to
7397         create the register aliases.
7399 2020-06-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7401         * sol2-tdep.c (sol2_static_transform_name): Remove.
7402         (sol2_init_abi): Don't register it.
7403         * gdbarch.sh (static_transform_name): Remove.
7404         * gdbarch.c, gdbarch.h: Regenerate.
7406         * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7407         gdbarch_static_transform_name.
7408         * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7409         * stabsread.c (define_symbol) <'X'>: Remove.
7410         (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7411         handling.
7412         <'V'>: Likewise.
7413         * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7414         <'S'>: Remove call to gdbarch_static_transform_name.
7416 2020-06-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7418         * procfs.c (procfs_pre_trace): New function.
7419         (procfs_target::create_inferior): Pass it to fork_inferior.
7421 2020-06-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7423         * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7424         sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7425         <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7426         sol2-tdep.o, sparc-sol2-tdep.o.
7427         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7428         * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7429         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7430         * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7432 2020-06-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7434         * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7435         (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7436         Call sol2_init_abi.
7437         Remove calls to set_gdbarch_skip_solib_resolver,
7438         set_gdbarch_core_pid_to_str.
7439         * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7440         (i386_sol2_static_transform_name): Remove.
7441         (i386_sol2_init_abi): Call sol2_init_abi.
7442         Remove calls to set_gdbarch_sofun_address_maybe_missing,
7443         set_gdbarch_static_transform_name,
7444         set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7445         Use sol2_sigtramp_p.
7446         * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7447         (sol2_sigtramp_p): New function.
7448         (sol2_static_transform_name): New function.
7449         (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7450         (sol2_init_abi): New function.
7451         * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7452         (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7453         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7454         (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7455         (sparc_sol2_static_transform_name): Remove.
7456         (sparc32_sol2_init_abi): Call sol2_init_abi.
7457         Remove calls to set_gdbarch_sofun_address_maybe_missing,
7458         set_gdbarch_static_transform_name,
7459         set_gdbarch_skip_solib_resolver,
7460         set_gdbarch_core_pid_to_str.
7461         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7462         (sparc_sol2_static_transform_name): Remove
7463         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7464         call sol2_sigtramp_p.
7465         (sparc64_sol2_init_abi): Call sol2_init_abi.
7466         Remove calls to set_gdbarch_sofun_address_maybe_missing,
7467         set_gdbarch_static_transform_name,
7468         set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7470 2020-06-24  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7472         * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7473         * exec.c (validate_exec_file): If from_tty, set both
7474         SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7475         * symfile.c (symbol_file_add_with_addrs): if always_confirm
7476         and from_tty, unconditionally ask a confirmation.
7478 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
7480         * target-descriptions.c (tdesc_architecture_name): Protect against
7481         NULL pointer dereference.
7482         (maint_print_xml_tdesc_cmd): New function.
7483         (_initialize_target_descriptions): Register new 'maint print
7484         xml-tdesc' command and give it the filename completer.
7485         * NEWS: Mention new 'maint print xml-tdesc' command.
7487 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
7489         * target-descriptions.c (class tdesc_compatible_info): New class.
7490         (struct target_desc): Change type of compatible vector.
7491         (tdesc_compatible_p): Update for change in type of
7492         target_desc::compatible.
7493         (tdesc_compatible_info_list): New function.
7494         (tdesc_compatible_info_arch_name): New function.
7495         (tdesc_add_compatible): Update for change in type of
7496         target_desc::compatible.
7497         (print_c_tdesc::visit_pre): Likewise.
7499 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
7501         * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7502         whitespace to underscore.
7503         (maint_print_c_tdesc_cmd): Use fake filename for target
7504         descriptions that came from the target.
7505         (_initialize_target_descriptions): Add filename command completion
7506         for 'maint print c-tdesc'.
7508 2020-06-23  Simon Marchi  <simon.marchi@efficios.com>
7510         * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7511         lines.
7513 2020-06-23  Simon Marchi  <simon.marchi@efficios.com>
7515         * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7516         lines.
7517         (dwarf2_find_location_expression): Likewise.
7518         (call_site_parameter_matches): Likewise.
7519         (dwarf2_compile_expr_to_ax): Likewise.
7520         (disassemble_dwarf_expression): Likewise.
7521         (loclist_describe_location): Likewise.
7523 2020-06-23  Pedro Alves  <palves@redhat.com>
7525         * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7526         progspace-and-thread.h.  Include scoped-mock-context.h instead.
7527         (register_to_value_test): Use scoped_mock_context.
7528         * regcache.c: Include "scoped-mock-context.h".
7529         (cooked_read_test): Don't error out if a target is already pushed.
7530         Use scoped_mock_context.  Adjust.
7531         * scoped-mock-context.h: New file.
7533 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
7535         * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7536         initializer.
7537         (ada_language::is_string_type_p): New member function.
7538         * c-lang.c (c_language_data): Delete la_is_string_type_p
7539         initializer.
7540         (cplus_language_data): Likewise.
7541         (asm_language_data): Likewise.
7542         (minimal_language_data): Likewise.
7543         * d-lang.c (d_language_data): Likewise.
7544         * f-lang.c (f_is_string_type_p): Delete function, implementation
7545         moved to f_language::is_string_type_p.
7546         (f_language_data): Delete la_is_string_type_p initializer.
7547         (f_language::is_string_type_p): New member function,
7548         implementation from f_is_string_type_p.
7549         * go-lang.c (go_is_string_type_p): Delete function, implementation
7550         moved to go_language::is_string_type_p.
7551         (go_language_data): Delete la_is_string_type_p initializer.
7552         (go_language::is_string_type_p): New member function,
7553         implementation from go_is_string_type_p.
7554         * language.c (language_defn::is_string_type_p): Define new member
7555         function.
7556         (default_is_string_type_p): Make static, add comment copied from
7557         header file.
7558         (unknown_language_data): Delete la_is_string_type_p initializer.
7559         (unknown_language::is_string_type_p): New member function.
7560         (auto_language_data): Delete la_is_string_type_p initializer.
7561         (auto_language::is_string_type_p): New member function.
7562         * language.h (language_data): Delete la_is_string_type_p field.
7563         (language_defn::is_string_type_p): Declare new function.
7564         (default_is_string_type_p): Delete desclaration, move comment to
7565         definition.
7566         * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7567         moved to m2_language::is_string_type_p.
7568         (m2_language_data): Delete la_is_string_type_p initializer.
7569         (m2_language::is_string_type_p): New member function,
7570         implementation from m2_is_string_type_p.
7571         * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7572         initializer.
7573         * opencl-lang.c (opencl_language_data): Likewise.
7574         * p-lang.c (pascal_is_string_type_p): Delete function,
7575         implementation moved to pascal_language::is_string_type_p.
7576         (pascal_language_data): Delete la_is_string_type_p initializer.
7577         (pascal_language::is_string_type_p): New member function,
7578         implementation from pascal_is_string_type_p.
7579         * rust-lang.c (rust_is_string_type_p): Delete function,
7580         implementation moved to rust_language::is_string_type_p.
7581         (rust_language_data): Delete la_is_string_type_p initializer.
7582         (rust_language::is_string_type_p): New member function,
7583         implementation from rust_is_string_type_p.
7584         * valprint.c (val_print_scalar_or_string_type_p): Update call to
7585         is_string_type_p.
7587 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
7589         * ada-lang.c (ada_language_data): Delete la_print_typedef
7590         initializer.
7591         (ada_language::print_typedef): New member function.
7592         * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7593         (cplus_language_data): Likewise.
7594         (asm_language_data): Likewise.
7595         (minimal_language_data): Likewise.
7596         * d-lang.c (d_language_data): Likewise.
7597         * f-lang.c (f_language_data): Likewise.
7598         (f_language::print_typedef): New member function.
7599         * go-lang.c (go_language_data): Delete la_print_typedef
7600         initializer.
7601         * language.c (language_defn::print_typedef): Define member
7602         function.
7603         (unknown_language_data): Delete la_print_typedef initializer.
7604         (unknown_language::print_typedef): New member function.
7605         (auto_language_data): Delete la_print_typedef initializer.
7606         (auto_language::print_typedef): New member function.
7607         * language.h (language_data): Delete la_print_typedef field.
7608         (language_defn::print_typedef): Declare new member function.
7609         (LA_PRINT_TYPEDEF): Update call to print_typedef.
7610         (default_print_typedef): Delete declaration.
7611         * m2-lang.c (m2_language_data): Delete la_print_typedef
7612         initializer.
7613         (m2_language::print_typedef): New member function.
7614         * objc-lang.c (objc_language_data): Delete la_print_typedef
7615         initializer.
7616         * opencl-lang.c (opencl_language_data): Likewise.
7617         * p-lang.c (pascal_language_data): Likewise.
7618         (pascal_language::print_typedef): New member function.
7619         * rust-lang.c (rust_print_typedef): Delete function,
7620         implementation moved to rust_language::print_typedef.
7621         (rust_language): Delete la_print_typedef initializer.
7622         (rust_language::print_typedef): New member function,
7623         implementation from rust_print_typedef.
7624         * typeprint.c (default_print_typedef): Delete.
7626 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
7628         * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7629         (ada_language::printstr): New member function.
7630         * c-lang.c (c_language_data): Delete la_printstr initializer.
7631         (cplus_language_data): Likewise.
7632         (asm_language_data): Likewise.
7633         (minimal_language_data): Likewise.
7634         * d-lang.c (d_language_data): Likewise.
7635         * f-lang.c (f_printstr): Rename to f_language::printstr.
7636         (f_language_data): Delete la_printstr initializer.
7637         (f_language::printstr): New member function, implementation from
7638         f_printstr.
7639         * go-lang.c (go_language_data): Delete la_printstr initializer.
7640         * language.c (language_defn::printstr): Define new member
7641         function.
7642         (unk_lang_printstr): Delete.
7643         (unknown_language_data): Delete la_printstr initializer.
7644         (unknown_language::printstr): New member function.
7645         (auto_language_data): Delete la_printstr initializer.
7646         (auto_language::printstr): New member function.
7647         * language.h (language_data): Delete la_printstr field.
7648         (language_defn::printstr): Declare new member function.
7649         (LA_PRINT_STRING): Update call to printstr.
7650         * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7651         (m2_language_data): Delete la_printstr initializer.
7652         (m2_language::printstr): New member function, implementation from
7653         m2_printstr.
7654         * objc-lang.c (objc_language_data): Delete la_printstr
7655         initializer.
7656         * opencl-lang.c (opencl_language_data): Likewise.
7657         * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7658         (pascal_language_data): Delete la_printstr initializer.
7659         (pascal_language::printstr): New member function, implementation
7660         from pascal_printstr.
7661         * p-lang.h (pascal_printstr): Delete declaration.
7662         * rust-lang.c (rust_printstr): Update header comment.
7663         (rust_language_data): Delete la_printstr initializer.
7664         (rust_language::printstr): New member function.
7666 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
7668         * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7669         (ada_language::printchar): New member function.
7670         * c-lang.c (c_language_data): Delete la_printchar initializer.
7671         (cplus_language_data): Likewise.
7672         (asm_language_data): Likewise.
7673         (minimal_language_data): Likewise.
7674         * d-lang.c (d_language_data): Likewise.
7675         * f-lang.c (f_printchar): Rename to f_language::printchar.
7676         (f_language_data): Delete la_printchar initializer.
7677         (f_language::printchar): New member function, implementation from
7678         f_printchar.
7679         * go-lang.c (go_language_data): Delete la_printchar initializer.
7680         * language.c (unk_lang_printchar): Delete.
7681         (language_defn::printchar): Define new member function.
7682         (unknown_language_data): Delete la_printchar initializer.
7683         (unknown_language::printchar): New member function.
7684         (auto_language_data): Delete la_printchar initializer.
7685         (auto_language::printchar): New member function.
7686         * language.h (language_data): Delete la_printchar field.
7687         (language_defn::printchar): Declare new member function.
7688         (LA_PRINT_CHAR): Update call to printchar.
7689         * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7690         (m2_language::printchar): New member function.
7691         * objc-lang.c (objc_language_data): Delete la_printchar
7692         initializer.
7693         * opencl-lang.c (opencl_language_data): Likewise.
7694         * p-lang.c (pascal_language_data): Delete la_printchar
7695         initializer.
7696         (pascal_language::printchar): New member function.
7697         * rust-lang.c (rust_printchar): Rename to
7698         rust_language::printchar.
7699         (rust_language_data): Delete la_printchar initializer.
7700         (rust_language::printchar): New member function, implementation
7701         from rust_printchar.
7703 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
7705         * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7706         (ada_language_data): Delete la_emitchar initializer.
7707         (ada_language::emitchar): New member function, implementation from
7708         emit_char.
7709         * c-lang.c (c_language_data): Delete la_emitchar initializer.
7710         (cplus_language_data): Likewise.
7711         (asm_language_data): Likewise.
7712         (minimal_language_data): Likewise.
7713         * d-lang.c (d_language_data): Likewise.
7714         * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7715         (f_language_data): Delete la_emitchar initializer.
7716         (f_language::emitchar): New member function, implementation from
7717         f_emit_char.
7718         * go-lang.c (go_language_data): Delete la_emitchar initializer.
7719         * language.c (unk_lang_emit_char): Delete.
7720         (language_defn::emitchar): New member function definition.
7721         (unknown_language_data): Delete la_emitchar initializer.
7722         (unknown_language::emitchar): New member function.
7723         (auto_language_data): Delete la_emitchar initializer.
7724         (auto_language::emitchar): New member function.
7725         * language.h (language_data): Delete la_emitchar field.
7726         (language_defn::emitchar): New member field declaration.
7727         (LA_EMIT_CHAR): Update call to emitchar.
7728         * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7729         (m2_language_data): Delete la_emitchar initializer.
7730         (m2_language::emitchar): New member function, implementation from
7731         m2_emit_char.
7732         * objc-lang.c (objc_language_data): Delete la_emitchar
7733         initializer.
7734         * opencl-lang.c (opencl_language_data): Likewise.
7735         * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7736         (pascal_language_data): Delete la_emitchar initializer.
7737         (pascal_language::emitchar): New member function, implementation
7738         from pascal_emit_char.
7739         * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7740         (rust_language_data): Delete la_emitchar initializer.
7741         (rust_language::emitchar): New member function, implementation
7742         from rust_emitchar.
7744 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
7746         * ada-lang.c (resolve): Rename to ada_language::post_parser.
7747         (ada_language_data): Delete la_post_parser initializer.
7748         (ada_language::post_parser): New member function.
7749         * c-lang.c (c_language_data): Delete la_post_parser initializer.
7750         (cplus_language_data): Likewise.
7751         (asm_language_data): Likewise.
7752         (minimal_language_data): Likewise.
7753         * d-lang.c (d_language_data): Likewise.
7754         * f-lang.c (f_language_data): Likewise.
7755         * go-lang.c (go_language_data): Likewise.
7756         * language.c (unknown_language_data): Likewise.
7757         (auto_language_data): Likewise.
7758         * language.h (language_data): Delete la_post_parser field.
7759         (language_defn::post_parser): New member function.
7760         * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7761         * objc-lang.c (objc_language_data): Likewise.
7762         * opencl-lang.c (opencl_language_data): Likewise.
7763         * p-lang.c (pascal_language_data): Likewise.
7764         * parse.c (parse_exp_in_context): Update call to post_parser.
7765         (null_post_parser): Delete definition.
7766         * parser-defs.h (null_post_parser): Delete declaration.
7767         * rust-lang.c (rust_language_data): Delete la_post_parser
7768         initializer.
7770 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
7772         * ada-lang.c (parse): Rename to ada_language::parser.
7773         (ada_language_data): Delete la_parser initializer.
7774         (ada_language::parser): New member function, implementation from
7775         parse.
7776         * c-lang.c (c_language_data): Delete la_parser initializer.
7777         (cplus_language_data): Likewise.
7778         (asm_language_data): Likewise.
7779         (minimal_language_data): Likewise.
7780         * d-lang.c (d_language_data): Likewise.
7781         (d_language::parser): New member function.
7782         * f-lang.c (f_language_data): Delete la_parser initializer.
7783         (f_language::parser): New member function.
7784         * go-lang.c (go_language_data): Delete la_parser initializer.
7785         (go_language::parser): New member function.
7786         * language.c (unk_lang_parser): Delete.
7787         (language_defn::parser): Define new member function.
7788         (unknown_language_data): Delete la_parser initializer.
7789         (unknown_language::parser): New member function.
7790         (auto_language_data): Delete la_parser initializer.
7791         (auto_language::parser): New member function.
7792         * language.h (language_data): Delete la_parser field.
7793         (language_defn::parser): Declare new member function.
7794         * m2-lang.c (m2_language_data): Delete la_parser initializer.
7795         (m2_language::parser): New member function.
7796         * objc-lang.c (objc_language_data): Delete la_parser initializer.
7797         * opencl-lang.c (opencl_language_data): Likewise.
7798         * p-lang.c (pascal_language_data): Likewise.
7799         (pascal_language::parser): New member function.
7800         * parse.c (parse_exp_in_context): Update call to parser.
7801         * rust-lang.c (rust_language_data): Delete la_parser initializer.
7802         (rust_language::parser): New member function.
7804 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
7806         * top.c (print_gdb_configuration): Print --with-python-libdir
7807         configuration value.
7809 2020-06-22  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7811         * NEWS: Mention change to the alias command.
7813 2020-06-22  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7815         * cli/cli-cmds.c (lookup_cmd_for_default_args)
7816         (alias_command_completer)
7817         (make_alias_options_def_group): New functions.
7818         (alias_opts, alias_option_defs): New struct and array.
7819         (alias_usage_error): Update usage.
7820         (alias_command): Handles optional DEFAULT-ARGS... arguments.
7821         Use option framework.
7822         (_initialize_cli_cmds): Update alias command help.
7823         Update aliases command help.
7824         (show_user):
7825         Add NULL for new default_args lookup_cmd argument.
7826         (valid_command_p): Rename to validate_aliased_command.
7827         Add NULL for new default_args lookup_cmd argument.  Verify that the
7828         aliased_command has no default args.
7829         * cli/cli-decode.c (help_cmd): Show aliases definitions.
7830         (lookup_cmd_1, lookup_cmd): New argument default_args.
7831         (add_alias_cmd):
7832         Add NULL for new default_args lookup_cmd argument.
7833         (print_help_for_command): Show default args under the layout
7834          alias some_alias = some_aliased_cmd some_alias_default_arg.
7835         * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7836         xfree default_args in destructor.
7837         * cli/cli-script.c (process_next_line, do_define_command):
7838         Add NULL for new default_args lookup_cmd argument.
7839         * command.h: Declare new default_args argument in lookup_cmd
7840         and lookup_cmd_1.
7841         * completer.c (complete_line_internal_1):
7842         Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7843         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7844         * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7845         Likewise.
7846         * infcmd.c (_initialize_infcmd): Likewise.
7847         * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7848         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7849         * python/py-param.c (add_setshow_generic): Likewise.
7850         * remote.c (_initialize_remote): Likewise.
7851         * top.c (execute_command): Prepend default_args if command has some.
7852         (set_verbose):
7853         Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7854         * tracepoint.c (validate_actionline, encode_actions_1):
7855         Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7857 2020-06-22  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
7859         * jit.c (jit_read_descriptor): Use bool as the return type.
7860         (jit_breakpoint_re_set_internal): Use bool as the return type.
7861         Invert the return value logic; return true if the jit breakpoint
7862         has been successfully initialized.
7863         (jit_inferior_init): Update the call to
7864         jit_breakpoint_re_set_internal.
7866 2020-06-22  Pedro Alves  <palves@redhat.com>
7868         PR gdb/25939
7869         * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7870         Use the current inferior instead.  Don't return
7871         TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7872         wait again.
7873         * sol-thread.c (sol_thread_target::wait): Don't reference
7874         inferior_ptid.
7875         (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7876         (sol_update_thread_list_callback): Use the current inferior's pid
7877         instead of inferior_ptid.
7879 2020-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7881         * procfs.c: Cleanup many comments.
7883         (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7884         (AFTER_WATCHFLAG): Replace by value.
7886         (MAIN_PROC_NAME_FORMAT): Inline ...
7887         (create_procinfo): ... here.
7889         (procfs_debug_inferior): Remove SYS_exec handling.
7890         (syscall_is_exec): Likewise.
7891         (procfs_set_exec_trap): Likewise.
7893         (syscall_is_lwp_exit): Inline in callers.
7894         (syscall_is_exit): Likewise.
7895         (syscall_is_exec): Likewise.
7896         (syscall_is_lwp_create): Likewise.
7898         (invalidate_cache): Remove #if 0 code.
7900         (make_signal_thread_runnable):  Remove.
7901         (procfs_target::resume): Remove #if 0 code.
7903 2020-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7905         PR gdb/25939
7906         * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7907         call ...
7908         (procfs_target::create_inferior): ... here.
7910 2020-06-21  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7912         * exec.c (validate_exec_file): Ensure the build-id is up to
7913         date by calling reopen_exec_file (that checks file timestamp
7914         to decide to re-read the file).
7916 2020-06-18  Pedro Alves  <palves@redhat.com>
7918         PR gdb/25412
7919         * gdbthread.h (delete_thread, delete_thread_silent)
7920         (find_thread_ptid): Update comments.
7921         * thread.c (current_thread_): New global.
7922         (is_current_thread): Move higher, and reimplement.
7923         (inferior_thread): Reimplement.
7924         (set_thread_exited): Use bool.  Add assertions.
7925         (add_thread_silent): Simplify thread-reuse handling by always
7926         calling delete_thread.
7927         (delete_thread): Remove intro comment.
7928         (find_thread_ptid): Skip exited threads.
7929         (switch_to_thread_no_regs): Write to current_thread_.
7930         (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7931         INFERIOR_PTID.  Clear current_thread_.
7933 2020-06-18  Pedro Alves  <palves@redhat.com>
7935         * aix-thread.c (pd_update): Use switch_to_thread.
7937 2020-06-18  Pedro Alves  <palves@redhat.com>
7939         * ravenscar-thread.c (ravenscar_thread_target): Update.
7940         (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7941         (ravenscar_thread_target::add_active_thread): ... this.  Don't
7942         set m_base_ptid here.  Update to avoid referencing inferior_ptid.
7943         (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7945 2020-06-18  Pedro Alves  <palves@redhat.com>
7947         * nat/windows-nat.c (current_windows_thread): Remove.
7948         * nat/windows-nat.h (current_windows_thread): Remove.
7949         * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7950         Adjust.
7951         (display_selectors): Adjust to fetch the current
7952         windows_thread_info based on inferior_ptid.
7953         (fake_create_process): No longer write to current_windows_thread.
7954         (windows_nat_target::get_windows_debug_event):
7955         Don't set inferior_ptid or current_windows_thread.
7956         (windows_nat_target::wait): Adjust to not rely on
7957         current_windows_thread.
7958         (do_initial_windows_stuff): Now a method of windows_nat_target.
7959         Switch to the last_ptid thread.
7960         (windows_nat_target::attach): Adjust.
7961         (windows_nat_target::detach): Use switch_to_no_thread instead of
7962         writing to inferior_ptid directly.
7963         (windows_nat_target::create_inferior): Adjust.
7965 2020-06-18  Pedro Alves  <palves@redhat.com>
7967         * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7969 2020-06-18  Pedro Alves  <palves@redhat.com>
7971         * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7972         after creating it, instead of writing to inferior_ptid.  Don't
7973         write to inferior_ptid.
7975 2020-06-18  Pedro Alves  <palves@redhat.com>
7977         * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7979 2020-06-18  Pedro Alves  <palves@redhat.com>
7981         * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7982         it, instead of writing to inferior_ptid.
7984 2020-06-18  Pedro Alves  <palves@redhat.com>
7986         * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7987         to inferior_ptid.
7989 2020-06-18  Pedro Alves  <palves@redhat.com>
7991         * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7992         instead of writing to inferior_ptid directly.
7994 2020-06-18  Pedro Alves  <palves@redhat.com>
7996         * corelow.c (core_target::close): Use switch_to_no_thread instead
7997         of writing to inferior_ptid directly.
7998         (add_to_thread_list, core_target_open): Use switch_to_thread
7999         instead of writing to inferior_ptid directly.
8001 2020-06-18  Pedro Alves  <palves@redhat.com>
8003         * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8004         inferior_ptid.
8005         (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8006         inferior_ptid.
8007         (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8008         inferior_ptid directly.
8009         (darwin_nat_target::init_thread_list): Switch to thread, instead
8010         of writing to inferior_ptid.
8011         (darwin_nat_target::attach): Don't write to inferior_ptid.
8012         (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8014 2020-06-18  Pedro Alves  <palves@redhat.com>
8016         * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8017         thread.
8018         (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8019         Instead use switch_to_thread.
8020         (gnu_nat_target::detach): Use switch_to_no_thread
8021         instead of writing to inferior_ptid directly.  Used passed-in
8022         inferior instead of looking up the inferior by pid.
8024 2020-06-18  Pedro Alves  <palves@redhat.com>
8026         * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8027         inferior_ptid.
8029 2020-06-18  Pedro Alves  <palves@redhat.com>
8031         * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8032         inferior_ptid.
8033         (nto_procfs_target::attach): Avoid inferior_ptid.  Switch to
8034         thread.
8035         (nto_procfs_target::detach): Avoid referencing
8036         inferior_ptid.  Use switch_to_no_thread instead of writing to
8037         inferior_ptid directly.
8038         (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8039         instead of writing to inferior_ptid directly.
8040         (nto_procfs_target::create_inferior): Avoid inferior_ptid.  Switch
8041         to thread.
8043 2020-06-18  Pedro Alves  <palves@redhat.com>
8045         * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8046         after creating it, instead of writing to inferior_ptid.
8047         (gdbsim_target_open): Use switch_to_no_thread instead of writing
8048         to inferior_ptid directly.
8049         (gdbsim_target::wait): Don't write to inferior_ptid.
8051 2020-06-18  Pedro Alves  <palves@redhat.com>
8053         * remote.c (remote_target::remote_notice_new_inferior): Use
8054         switch_to_thread instead of writing to inferior_ptid directly.
8055         (remote_target::add_current_inferior_and_thread): Use
8056         switch_to_no_thread instead of writing to inferior_ptid directly.
8057         (extended_remote_target::attach): Use switch_to_inferior_no_thread
8058         and switch_to_thread instead of using set_current_inferior or
8059         writing to inferior_ptid directly.
8061 2020-06-18  Pedro Alves  <palves@redhat.com>
8063         * tracectf.c (ctf_target_open): Switch to added thread instead of
8064         writing to inferior_ptid directly.
8065         (ctf_target::close): Use switch_to_no_thread instead of writing to
8066         inferior_ptid directly.
8068 2020-06-18  Pedro Alves  <palves@redhat.com>
8070         * tracefile-tfile.c (tfile_target_open): Don't write to
8071         inferior_ptid directly, instead switch to added thread.
8072         (tfile_target::close): Use switch_to_no_thread instead of writing
8073         to inferior_ptid directly.
8075 2020-06-18  Pedro Alves  <palves@redhat.com>
8077         * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8078         (procfs_target::detach): Use switch_to_no_thread
8079         instead of writing to inferior_ptid directly.
8080         (do_attach): Change return type to void.  Switch to the added
8081         thread.
8082         (procfs_target::create_inferior): Switch to the added thread.
8083         (procfs_do_thread_registers): Don't write to inferior_ptid.
8085 2020-06-18  Pedro Alves  <palves@redhat.com>
8087         * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8088         of writing to inferior_ptid.
8089         (scoped_restore_exited_inferior): Delete.
8090         (handle_vfork_child_exec_or_exit): Simplify using
8091         scoped_restore_current_pspace_and_thread.  Use switch_to_thread
8092         instead of writing to inferior_ptid.
8093         (THREAD_STOPPED_BY): Delete.
8094         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8095         (thread_stopped_by_hw_breakpoint): Delete.
8096         (save_waitstatus): Use
8097         scoped_restore_current_thread+switch_to_thread, and call
8098         target_stopped_by_watchpoint instead of
8099         thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8100         instead of thread_stopped_by_sw_breakpoint, and
8101         target_stopped_by_hw_breakpoint instead of
8102         thread_stopped_by_hw_breakpoint.
8103         (handle_inferior_event)
8104         <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8105         inferior_ptid directly, nor
8106         set_current_inferior/set_current_program_space.  Use
8107         switch_to_thread / switch_to_inferior_no_thread instead.
8109 2020-06-18  Pedro Alves  <palves@redhat.com>
8111         * target.c (generic_mourn_inferior): Use switch_to_no_thread
8112         instead of writing to inferior_ptid.
8114 2020-06-18  Pedro Alves  <palves@redhat.com>
8116         * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8117         added thread.
8118         (inf_ptrace_target::attach): Don't write to inferior_ptid.  Switch
8119         to the added thread.
8120         (inf_ptrace_target::detach_success): Use switch_to_no_thread
8121         instead of writing to inferior_ptid.
8123 2020-06-18  Pedro Alves  <palves@redhat.com>
8125         * gdbarch-selftests.c: Include "progspace-and-thread.h".
8126         (register_to_value_test): Mock a program_space too.  Heap-allocate
8127         the address space.  Don't write to inferior_ptid.  Use
8128         switch_to_thread instead.
8130 2020-06-18  Pedro Alves  <palves@redhat.com>
8132         * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8133         Delete.
8134         (find_signalled_thread()): New, factored out from
8135         linux_make_corefile_notes and adjusted to handle exited threads.
8136         (linux_make_corefile_notes): Adjust to use the new
8137         find_signalled_thread.
8139 2020-06-18  Pedro Alves  <palves@redhat.com>
8141         * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8142         of saving/restoring inferior_ptid.
8144 2020-06-17  Tom Tromey  <tom@tromey.com>
8146         * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8147         (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8148         declare.
8149         * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8151 2020-06-15  Simon Marchi  <simon.marchi@efficios.com>
8153         * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8154         of partial symtabs.
8156 2020-06-17  Simon Marchi  <simon.marchi@efficios.com>
8158         * regformats/reg-arm.dat: Remove.
8159         * regformats/reg-bfin.dat: Remove.
8160         * regformats/reg-cris.dat: Remove.
8161         * regformats/reg-crisv32.dat: Remove.
8162         * regformats/reg-m32r.dat: Remove.
8163         * regformats/reg-tilegx.dat: Remove.
8164         * regformats/reg-tilegx32.dat: Remove.
8166 2020-06-17  Simon Marchi  <simon.marchi@efficios.com>
8168         * features/Makefile (WHICH): Remove arm files.
8169         * regformats/arm/arm-with-iwmmxt.dat: Remove.
8170         * regformats/arm/arm-with-neon.dat: Remove.
8171         * regformats/arm/arm-with-vfpv2.dat: Remove.
8172         * regformats/arm/arm-with-vfpv3.dat: Remove.
8174 2020-06-17  Simon Marchi  <simon.marchi@efficios.com>
8176         * features/Makefile (XMLTOC): Remove rx.xml.
8178 2020-06-17  Pedro Alves  <palves@redhat.com>
8180         * gdbthread.h (thread_control_state) <trap_expected> Update
8181         comments.
8183 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
8185         * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8186         ada_language::lookup_symbol_nonlocal.
8187         (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8188         (ada_language::lookup_symbol_nonlocal): New member function,
8189         implementation from ada_lookup_symbol_nonlocal.
8190         * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8191         initializer.
8192         (cplus_language_data): Delete la_lookup_symbol_nonlocal
8193         initializer.
8194         (cplus_language::lookup_symbol_nonlocal): New member function.
8195         (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8196         (minimal_language_data) Likewise.
8197         * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8198         * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8199         initializer.
8200         (d_language::lookup_symbol_nonlocal): New member function.
8201         * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8202         initializer.
8203         (f_language::lookup_symbol_nonlocal): New member function.
8204         * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8205         initializer.
8206         * language.c (unknown_language_data): Likewise.
8207         (auto_language_data): Likewise.
8208         * language.h (language_data): Delete la_lookup_symbol_nonlocal
8209         field.
8210         (language_defn::lookup_symbol_nonlocal): New member function.
8211         * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8212         initializer.
8213         * objc-lang.c (objc_language_data): Likewise.
8214         * opencl-lang.c (opencl_language_data): Likewise.
8215         * p-lang.c (pascal_language_data): Likewise.
8216         * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8217         rust_language::lookup_symbol_nonlocal.
8218         (rust_language_data): Delete la_lookup_symbol_nonlocal
8219         initializer.
8220         (rust_language::lookup_symbol_nonlocal): New member function,
8221         implementation from rust_lookup_symbol_nonlocal.
8222         * symtab.c (lookup_symbol_aux): Update call to
8223         lookup_symbol_nonlocal.
8224         (basic_lookup_symbol_nonlocal): Rename to...
8225         (language_defn::lookup_symbol_nonlocal): ...this, and update
8226         header comment.  Remove language_defn parameter, and replace with
8227         uses of `this'.
8228         * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8230 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
8232         * ada-lang.c (ada_language_data): Delete la_value_print_inner
8233         initializer.
8234         (ada_language::value_print_inner): New member function.
8235         * c-lang.c (c_language_data): Delete la_value_print_inner
8236         initializer.
8237         (cplus_language_data): Likewise.
8238         (asm_language_data): Likewise.
8239         (minimal_language_data): Likewise.
8240         * d-lang.c (d_language_data): Likewise.
8241         (d_language::value_print_inner): New member function.
8242         * f-lang.c (f_language_data): Delete la_value_print_inner
8243         initializer.
8244         (f_language::value_print_inner): New member function.
8245         * f-lang.h (f_value_print_innner): Rename to...
8246         (f_value_print_inner): ...this (note spelling of 'inner').
8247         * f-valprint.c (f_value_print_innner): Rename to...
8248         (f_value_print_inner): ...this (note spelling of 'inner').
8249         * go-lang.c (go_language_data): Delete la_value_print_inner
8250         initializer.
8251         (go_language::value_print_inner): New member function.
8252         * language.c (language_defn::value_print_inner): Define new member
8253         function.
8254         (unk_lang_value_print_inner): Delete.
8255         (unknown_language_data): Delete la_value_print_inner initializer.
8256         (unknown_language::value_print_inner): New member function.
8257         (auto_language_data): Delete la_value_print_inner initializer.
8258         (auto_language::value_print_inner): New member function.
8259         * language.h (language_data): Delete la_value_print_inner field.
8260         (language_defn::value_print_inner): Delcare new member function.
8261         * m2-lang.c (m2_language_data): Delete la_value_print_inner
8262         initializer.
8263         (m2_language::value_print_inner): New member function.
8264         * objc-lang.c (objc_language_data): Delete la_value_print_inner
8265         initializer.
8266         * opencl-lang.c (opencl_language_data): Likewise.
8267         * p-lang.c (pascal_language_data): Likewise.
8268         (pascal_language::value_print_inner): New member function.
8269         * rust-lang.c (rust_language_data): Delete la_value_print_inner
8270         initializer.
8271         (rust_language::value_print_inner): New member function.
8272         * valprint.c (do_val_print): Update call to value_print_inner.
8274 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
8276         * ada-lang.c (ada_language_data): Delete la_value_print
8277         initializer.
8278         (ada_language::value_print): New member function.
8279         * c-lang.c (c_language_data): Delete la_value_print initializer.
8280         (cplus_language_data): Likewise.
8281         (asm_language_data): Likewise.
8282         (minimal_language_data): Likewise.
8283         * d-lang.c (d_language_data): Likewise.
8284         * f-lang.c (f_language_data): Likewise.
8285         * go-lang.c (go_language_data): Likewise.
8286         * language.c (unk_lang_value_print): Delete.
8287         (language_defn::value_print): Define new member function.
8288         (unknown_language_data): Delete la_value_print initializer.
8289         (unknown_language::value_print): New member function.
8290         (auto_language_data): Delete la_value_print initializer.
8291         (auto_language::value_print): New member function.
8292         * language.h (language_data): Delete la_value_print field.
8293         (language_defn::value_print): Declare new member function.
8294         (LA_VALUE_PRINT): Update call to value_print.
8295         * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8296         * objc-lang.c (objc_language_data): Likewise.
8297         * opencl-lang.c (opencl_language_data): Likewise.
8298         * p-lang.c (pascal_language_data): Likewise.
8299         (pascal_language::value_print): New member function.
8300         * rust-lang.c (rust_language_data): Delete la_value_print
8301         initializer.
8303 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
8305         * ada-lang.c (ada_watch_location_expression): Rename to
8306         ada_language::watch_location_expression.
8307         (ada_language_data): Delete la_watch_location_expression
8308         initializer.
8309         (ada_language::watch_location_expression): New member function,
8310         implementation from ada_watch_location_expression.
8311         * breakpoint.c (watch_command_1): Update call to
8312         watch_location_expression.
8313         * c-lang.c (c_watch_location_expression): Rename to
8314         language_defn::watch_location_expression.
8315         (c_language_data): Delete la_watch_location_expression
8316         initializer.
8317         (cplus_language_data): Likewise.
8318         (asm_language_data): Likewise.
8319         (minimal_language_data): Likewise.
8320         * c-lang.h (c_watch_location_expression): Delete declaration.
8321         * d-lang.c (d_language_data): Delete la_watch_location_expression
8322         initializer.
8323         * f-lang.c (f_language_data): Likewise.
8324         * go-lang.c (go_language_data): Likewise.
8325         * language.c (language_defn::watch_location_expression): Member
8326         function implementation from c_watch_location_expression.
8327         (unknown_language_data): Delete la_watch_location_expression
8328         initializer.
8329         (auto_language_data): Likewise.
8330         * language.h (language_data): Delete la_watch_location_expression
8331         field.
8332         (language_defn::watch_location_expression): Declare new member
8333         function.
8334         * m2-lang.c (m2_language_data): Delete
8335         la_watch_location_expression initializer.
8336         * objc-lang.c (objc_language_data): Likewise.
8337         * opencl-lang.c (opencl_language_data): Likewise.
8338         * p-lang.c (pascal_language_data): Likewise.
8339         * rust-lang.c (rust_watch_location_expression): Rename to
8340         rust_language::watch_location_expression.
8341         (rust_language_data): Delete la_watch_location_expression
8342         initializer.
8343         (rust_language::watch_location_expression): New member function,
8344         implementation from rust_watch_location_expression.
8346 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
8348         * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8349         ada_language::collect_symbol_completion_matches.
8350         (ada_language_data): Delete la_collect_symbol_completion_matches
8351         initializer.
8352         (ada_language::collect_symbol_completion_matches): New member
8353         function, implementation from
8354         ada_collect_symbol_completion_matches.
8355         * c-lang.c (c_language_data): Delete
8356         la_collect_symbol_completion_matches initializer.
8357         (cplus_language_data): Likewise.
8358         (asm_language_data): Likewise.
8359         (minimal_language_data): Likewise.
8360         * d-lang.c (d_language_data): Likewise.
8361         * f-lang.c (f_collect_symbol_completion_matches): Rename to
8362         f_language::collect_symbol_completion_matches.
8363         (f_language_data): Delete la_collect_symbol_completion_matches
8364         initializer.
8365         (f_language::collect_symbol_completion_matches) New member
8366         function, implementation from f_collect_symbol_completion_matches.
8367         * go-lang.c (go_language_data): Delete
8368         la_collect_symbol_completion_matches initializer.
8369         * language.c (unknown_language_data): Likewise.
8370         (auto_language_data): Likewise.
8371         * language.h (language_data): Delete
8372         la_collect_symbol_completion_matches field.
8373         (language_defn::collect_symbol_completion_matches): New member
8374         function.
8375         * m2-lang.c (m2_language_data): Delete
8376         la_collect_symbol_completion_matches initializer.
8377         * objc-lang.c (objc_language_data): Likewise.
8378         * opencl-lang.c (opencl_language_data): Likewise.
8379         * p-lang.c (pascal_language_data): Likewise.
8380         * rust-lang.c (rust_language_data): Likewise.
8381         * symtab.c (default_collect_symbol_completion_matches): Delete.
8382         (collect_symbol_completion_matches): Update call to
8383         collect_symbol_completion_matches.
8384         (collect_symbol_completion_matches_type): Likewise.
8385         * symtab.h (default_collect_symbol_completion_matches): Delete
8386         declaration.
8388 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
8390         * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8391         (ada_language_data): Delete la_word_break_characters initializer.
8392         (ada_language::word_break_characters): New member function.
8393         * c-lang.c (c_language_data): Delete la_word_break_characters
8394         initializer.
8395         (cplus_language_data): Likewise.
8396         (asm_language_data): Likewise.
8397         (minimal_language_data): Likewise.
8398         * completer.c: Update global comment.
8399         (advance_to_expression_complete_word_point): Update call to
8400         word_break_characters.
8401         (complete_files_symbols): Likewise.
8402         (complete_line_internal_1): Likewise.
8403         (default_completer_handle_brkchars): Likewise.
8404         (skip_quoted_chars): Likewise.
8405         * d-lang.c (d_language_data): Delete la_word_break_characters
8406         initializer.
8407         * f-lang.c (f_word_break_characters): Delete.
8408         (f_language_data): Delete la_word_break_characters initializer.
8409         (f_language::word_break_characters): New member function.
8410         * go-lang.c (go_language_data): Delete la_word_break_characters
8411         initializer.
8412         * language.c (unknown_language_data): Likewise.
8413         (auto_language_data): Likewise.
8414         * language.h (default_word_break_characters): Move declaration to
8415         earlier in the file.
8416         (language_data): Delete la_word_break_characters field.
8417         (language_defn::word_break_characters): New member function.
8418         * m2-lang.c (m2_language_data): Delete la_word_break_characters
8419         initializer.
8420         * objc-lang.c (objc_language_data): Likewise.
8421         * opencl-lang.c (opencl_language_data): Likewise.
8422         * p-lang.c (pascal_language_data): Likewise.
8423         * rust-lang.c (rust_language_data): Likewise.
8425 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
8427         * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8428         (ada_language_data): Delete la_get_symbol_name_matcher
8429         initializer.
8430         (language_defn::get_symbol_name_matcher_inner): New member
8431         function.
8432         * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8433         initializer.
8434         (cplus_language_data): Likewise.
8435         (cplus_language::get_symbol_name_matcher_inner): New member
8436         function.
8437         (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8438         (minimal_language_data): Likewise.
8439         * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8440         * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8441         initializer.
8442         * dictionary.c (iter_match_first_hashed): Update call to
8443         get_symbol_name_matcher.
8444         (iter_match_next_hashed): Likewise.
8445         (iter_match_next_linear): Likewise.
8446         * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8447         * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8448         initializer.
8449         (f_language::get_symbol_name_matcher_inner): New member function.
8450         * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8451         initializer.
8452         * language.c (default_symbol_name_matcher): Update header comment,
8453         make static.
8454         (language_defn::get_symbol_name_matcher): New definition.
8455         (language_defn::get_symbol_name_matcher_inner): Likewise.
8456         (get_symbol_name_matcher): Delete.
8457         (unknown_language_data): Delete la_get_symbol_name_matcher
8458         initializer.
8459         (auto_language_data): Likewise.
8460         * language.h (language_data): Delete la_get_symbol_name_matcher
8461         field.
8462         (language_defn::get_symbol_name_matcher): New member function.
8463         (language_defn::get_symbol_name_matcher_inner): Likewise.
8464         (default_symbol_name_matcher): Delete declaration.
8465         * linespec.c (find_methods): Update call to
8466         get_symbol_name_matcher.
8467         * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8468         initializer.
8469         * minsyms.c (lookup_minimal_symbol): Update call to
8470         get_symbol_name_matcher.
8471         (iterate_over_minimal_symbols): Likewise.
8472         * objc-lang.c (objc_language_data): Delete
8473         la_get_symbol_name_matcher initializer.
8474         * opencl-lang.c (opencl_language_data): Likewise.
8475         * p-lang.c (pascal_language_data): Likewise.
8476         * psymtab.c (psymbol_name_matches): Update call to
8477         get_symbol_name_matcher.
8478         * rust-lang.c (rust_language_data): Delete
8479         la_get_symbol_name_matcher initializer.
8480         * symtab.c (symbol_matches_search_name): Update call to
8481         get_symbol_name_matcher.
8482         (compare_symbol_name): Likewise.
8484 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
8486         * ada-lang.c (ada_language_data): Delete la_compute_program
8487         initializer.
8488         * c-lang.c (c_language_data): Likewise.
8489         (c_language::compute_program): New member function.
8490         (cplus_language_data): Delete la_compute_program initializer.
8491         (cplus_language::compute_program): New member function.
8492         (asm_language_data): Delete la_compute_program initializer.
8493         (minimal_language_data): Likewise.
8494         * c-lang.h (c_compute_program): Update comment.
8495         (cplus_compute_program): Likewise.
8496         * compile/compile-c-support.c (c_compute_program): Likewise.
8497         (cplus_compute_program): Likewise.
8498         * compile/compile.c (compile_to_object): Update call to
8499         la_compute_program.
8500         * d-lang.c (d_language_data): Delete la_compute_program
8501         initializer.
8502         * f-lang.c (f_language_data): Likewise.
8503         * go-lang.c (go_language_data): Likewise.
8504         * language.c (unknown_language_data): Likewise.
8505         (auto_language_data): Likewise.
8506         * language.h (language_data): Delete la_compute_program field.
8507         (language_defn::compute_program): New member function.
8508         * m2-lang.c (m2_language_data): Delete la_compute_program
8509         initializer.
8510         * objc-lang.c (objc_language_data): Likewise.
8511         * opencl-lang.c (opencl_language_data): Likewise.
8512         * p-lang.c (pascal_language_data): Likewise.
8513         * rust-lang.c (rust_language_data): Likewise.
8515 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
8517         * ada-lang.c (ada_language_data) Delete
8518         la_class_name_from_physname initializer.
8519         * c-lang.c (c_language_data): Likewise.
8520         (cplus_language_data): Likewise.
8521         (cplus_language::class_name_from_physname): New member function.
8522         (asm_language_data): Delete la_class_name_from_physname
8523         initializer.
8524         (minimal_language_data): Likewise.
8525         * d-lang.c (d_language_data): Likewise.
8526         * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8527         method on language_defn class.
8528         (guess_full_die_structure_name): Likewise.
8529         * f-lang.c (f_language_data): Delete la_class_name_from_physname
8530         initializer.
8531         * go-lang.c (go_language_data): Likewise.
8532         * language.c (language_class_name_from_physname): Delete.
8533         (unk_lang_class_name): Delete.
8534         (unknown_language_data): Delete la_class_name_from_physname
8535         initializer.
8536         (auto_language_data): Likewise.
8537         * language.h (language_data): Delete la_class_name_from_physname
8538         field.
8539         (language_defn::class_name_from_physname): New function.
8540         (language_class_name_from_physname): Delete declaration.
8541         * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8542         initializer.
8543         * objc-lang.c (objc_language_data): Likewise.
8544         * opencl-lang.c (opencl_language_data): Likewise.
8545         * p-lang.c (pascal_language_data): Likewise.
8546         * rust-lang.c (rust_language_data): Likewise.
8548 2020-06-16  Tom Tromey  <tom@tromey.com>
8550         * tui/tui-data.h (STATUS_NAME): New macro.
8551         * tui/tui-layout.c (tui_remove_some_windows)
8552         (initialize_known_windows, tui_register_window)
8553         (tui_layout_split::remove_windows, initialize_layouts)
8554         (tui_new_layout_command): Don't use hard-coded window names.
8556 2020-06-16  Tom Tromey  <tom@tromey.com>
8558         PR tui/25348:
8559         * tui/tui.c (tui_ensure_readline_initialized): Rename from
8560         tui_initialize_readline.  Only run once.  Call rl_initialize.
8561         * tui/tui.h (tui_ensure_readline_initialized): Rename from
8562         tui_initialize_readline.
8563         * tui/tui-io.c (tui_setup_io): Call
8564         tui_ensure_readline_initialized.
8565         * tui/tui-interp.c (tui_interp::init): Update.
8567 2020-06-16  Tom Tromey  <tom@tromey.com>
8569         * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8570         Also preserve the status window.
8572 2020-06-16  Tom Tromey  <tom@tromey.com>
8574         * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8575         where m_window==nullptr.
8577 2020-06-15  Tom Tromey  <tromey@adacore.com>
8579         * windows-nat.c (windows_nat::handle_output_debug_string):
8580         Update.
8581         (windows_nat::handle_ms_vc_exception): Update.
8582         * target.h (target_read_string): Change API.
8583         * target.c (target_read_string): Change API.
8584         * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8585         Update.
8586         * solib-frv.c (frv_current_sos): Update.
8587         * solib-dsbt.c (dsbt_current_sos): Update.
8588         * solib-darwin.c (darwin_current_sos): Update.
8589         * linux-thread-db.c (inferior_has_bug): Update.
8590         * expprint.c (print_subexp_standard): Update.
8591         * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8592         (ada_exception_message_1): Update.
8594 2020-06-15  Tom Tromey  <tromey@adacore.com>
8596         * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8598 2020-06-15  Tom Tromey  <tromey@adacore.com>
8600         * valprint.c (read_string): Update comment.
8601         * target.c (MIN): Remove.
8602         (target_read_string): Rewrite.
8604 2020-06-15  Tom Tromey  <tromey@adacore.com>
8606         * corefile.c (read_memory_string): Remove.
8607         * ada-valprint.c (ada_value_print_ptr): Update.
8608         * ada-lang.h (ada_tag_name): Change return type.
8609         * ada-lang.c (type_from_tag): Update.
8610         (ada_tag_name_from_tsd): Change return type.  Use
8611         target_read_string.
8612         (ada_tag_name): Likewise.
8613         * gdbcore.h (read_memory_string): Don't declare.
8615 2020-06-14  Hannes Domani  <ssbssa@yahoo.de>
8617         * symtab.c (rbreak_command): Ignore Windows drive colon.
8619 2020-06-12  Simon Marchi  <simon.marchi@efficios.com>
8621         * NEWS: Mention removed GDBserver host support.
8623 2020-06-12  Nelson Chu  <nelson.chu@sifive.com>
8625         * features/riscv/rebuild-csr-xml.sh: Updated.
8627 2020-06-11  Tom Tromey  <tom@tromey.com>
8629         PR gdb/18318:
8630         * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8632 2020-06-09  Jonny Grant  <jg@jguk.org>
8633 2020-06-09  Simon Marchi  <simon.marchi@polymtl.ca>
8635         * main.c (captured_main_1): Don't print new line after help.
8636         (print_gdb_help): add mailing list and IRC channel information
8637         to --help.  Add new lines between items in the footer.  Remove
8638         quotes around bug url.
8640 2020-06-11  Keith Seitz  <keiths@redhat.com>
8642         PR gdb/21356
8643         * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8644         Resolve typedefs for type length calculations.
8646 2020-06-10  Tom de Vries  <tdevries@suse.de>
8648         PR ada/24713
8649         * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8650         (write_psymbols): Enable .gdb_index for ada.
8651         * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8652         ada.
8654 2020-06-10  Tom de Vries  <tdevries@suse.de>
8656         * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8657         (dw2_symtab_iter_init): ... here.  Add variant with "offset_type
8658         namei" instead of "const char *name" argument.
8659         (dw2_map_matching_symbols): Use "offset_type namei" variant of
8660         dw2_symtab_iter_init.
8662 2020-06-08  Simon Marchi  <simon.marchi@efficios.com>
8664         * gdbtypes.h (TYPE_FIELD_TYPE): Remove.  Change all call sites
8665         to use type::field and field::type instead.
8667 2020-06-08  Simon Marchi  <simon.marchi@efficios.com>
8669         * gdbtypes.h (FIELD_TYPE): Remove.  Change all call sites
8670         to use field::type instead.
8672 2020-06-08  Simon Marchi  <simon.marchi@efficios.com>
8674         * gdbtypes.h (struct field) <type, set_type>: New methods.
8675         Rename `type` field to...
8676         <m_type>: ... this.  Change references throughout to use type or
8677         set_type methods.
8678         (FIELD_TYPE): Use field::type.  Change call sites that modify
8679         the field's type to use field::set_type instead.
8681 2020-06-08  Simon Marchi  <simon.marchi@efficios.com>
8683         * gdbtypes.h (TYPE_INDEX_TYPE): Remove.  Change all call sites
8684         to use type::index_type instead.
8686 2020-06-08  Simon Marchi  <simon.marchi@efficios.com>
8688         * gdbtypes.h (struct type) <index_type, set_index_type>: New
8689         methods.
8690         (TYPE_INDEX_TYPE): Use type::index_type.
8691         * gdbtypes.c (create_array_type_with_stride): Likewise.
8693 2020-06-07  Tom Tromey  <tom@tromey.com>
8695         * valprint.c (generic_val_print_float): Remove "embedded_offset"
8696         parameter.
8697         (generic_value_print): Update.
8699 2020-06-05  Andrew Burgess  <andrew.burgess@embecosm.com>
8701         Revert commit 982a38f60b0.
8702         * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8704 2020-06-05  Andrew Burgess  <andrew.burgess@embecosm.com>
8706         * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8707         avoid use after free.
8709 2020-06-05  Tom de Vries  <tdevries@suse.de>
8711         * NEWS: Fix typos.
8713 2020-06-04  Simon Marchi  <simon.marchi@efficios.com>
8715         * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8716         the per_bfd object.
8717         (dwarf2_read_debug_names): Likewise.
8718         (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8719         object when re-using a per_bfd object with an index.
8721 2020-06-03  Tom de Vries  <tdevries@suse.de>
8723         PR symtab/26046
8724         * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8725         children for C++.
8726         (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8727         DW_TAG_subprogram.
8729 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8731         * ada-lang.c (ada_language_data): Delete skip_trampoline
8732         initializer.
8733         * c-lang.c (c_language_data): Likewise.
8734         (cplus_language_data): Likewise.
8735         (cplus_language::skip_trampoline): New member function.
8736         (asm_language_data): Delete skip_trampoline initializer.
8737         (minimal_language_data): Likewise.
8738         * d-lang.c (d_language_data): Likewise.
8739         * f-lang.c (f_language_data): Likewise.
8740         * go-lang.c (go_language_data): Likewise.
8741         * language.c (unk_lang_trampoline): Delete function.
8742         (skip_language_trampoline): Update.
8743         (unknown_language_data): Delete skip_trampoline initializer.
8744         (auto_language_data): Likewise.
8745         * language.h (language_data): Delete skip_trampoline field.
8746         (language_defn::skip_trampoline): New function.
8747         * m2-lang.c (m2_language_data): Delete skip_trampoline
8748         initializer.
8749         * objc-lang.c (objc_skip_trampoline): Delete function, move
8750         implementation to objc_language::skip_trampoline.
8751         (objc_language_data): Delete skip_trampoline initializer.
8752         (objc_language::skip_trampoline): New member function with
8753         implementation from objc_skip_trampoline.
8754         * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8755         initializer.
8756         * p-lang.c (pascal_language_data): Likewise.
8757         * rust-lang.c (rust_language_data): Likewise.
8759 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8761         * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8762         (ada_language::demangle): New member function.
8763         * c-lang.c (c_language_data): Delete la_demangle initializer.
8764         (cplus_language_data): Delete la_demangle initializer.
8765         (cplus_language::demangle): New member function.
8766         (asm_language_data): Delete la_demangle initializer.
8767         (minimal_language_data): Delete la_demangle initializer.
8768         * d-lang.c (d_language_data): Delete la_demangle initializer.
8769         (d_language::demangle): New member function.
8770         * f-lang.c (f_language_data): Delete la_demangle initializer.
8771         (f_language::demangle): New member function.
8772         * go-lang.c (go_language_data): Delete la_demangle initializer.
8773         (go_language::demangle): New member function.
8774         * language.c (language_demangle): Update.
8775         (unk_lang_demangle): Delete.
8776         (unknown_language_data): Delete la_demangle initializer.
8777         (unknown_language::demangle): New member function.
8778         (auto_language_data): Delete la_demangle initializer.
8779         (auto_language::demangle): New member function.
8780         * language.h (language_data): Delete la_demangle field.
8781         (language_defn::demangle): New function.
8782         * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8783         * objc-lang.c (objc_language_data): Delete la_demangle
8784         initializer.
8785         (objc_language::demangle): New member function.
8786         * opencl-lang.c (opencl_language_data): Delete la_demangle
8787         initializer.
8788         * p-lang.c (pascal_language_data): Likewise.
8789         * rust-lang.c (rust_language_data): Likewise.
8790         (rust_language::demangle): New member function.
8792 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8794         * ada-lang.c (ada_language_data): Delete la_print_type
8795         initializer.
8796         (ada_language::print_type): New member function.
8797         * c-lang.c (c_language_data): Delete la_print_type initializer.
8798         (c_language::print_type): New member function.
8799         (cplus_language_data): Delete la_print_type initializer.
8800         (cplus_language::print_type): New member function.
8801         (asm_language_data): Delete la_print_type initializer.
8802         (asm_language::print_type): New member function.
8803         (minimal_language_data): Delete la_print_type initializer.
8804         (minimal_language::print_type): New member function.
8805         * d-lang.c (d_language_data): Delete la_print_type initializer.
8806         (d_language::print_type): New member function.
8807         * f-lang.c (f_language_data): Delete la_print_type initializer.
8808         (f_language::print_type): New member function.
8809         * go-lang.c (go_language_data): Delete la_print_type initializer.
8810         (go_language::print_type): New member function.
8811         * language.c (unk_lang_print_type): Delete.
8812         (unknown_language_data): Delete la_print_type initializer.
8813         (unknown_language::print_type): New member function.
8814         (auto_language_data): Delete la_print_type initializer.
8815         (auto_language::print_type): New member function.
8816         * language.h (language_data): Delete la_print_type field.
8817         (language_defn::print_type): New function.
8818         (LA_PRINT_TYPE): Update.
8819         * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8820         (m2_language::print_type): New member function.
8821         * objc-lang.c (objc_language_data): Delete la_print_type
8822         initializer.
8823         (objc_language::print_type): New member function.
8824         * opencl-lang.c (opencl_print_type): Delete, implementation moved
8825         to opencl_language::print_type.
8826         (opencl_language_data): Delete la_print_type initializer.
8827         (opencl_language::print_type): New member function, implementation
8828         from opencl_print_type.
8829         * p-lang.c (pascal_language_data): Delete la_print_type
8830         initializer.
8831         (pascal_language::print_type): New member function.
8832         * rust-lang.c (rust_print_type): Delete, implementation moved to
8833         rust_language::print_type.
8834         (rust_language_data): Delete la_print_type initializer.
8835         (rust_language::print_type): New member function, implementation
8836         from rust_print_type.
8838 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8840         * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8841         implementation moves to...
8842         (ada_language::sniff_from_mangled_name): ...here.  Update return
8843         type.
8844         (ada_language_data): Delete la_sniff_from_mangled_name
8845         initializer.
8846         * c-lang.c (c_language_data): Likewise.
8847         (cplus_language_data): Likewise.
8848         (cplus_language::sniff_from_mangled_name): New member function,
8849         implementation taken from gdb_sniff_from_mangled_name.
8850         (asm_language_data): Delete la_sniff_from_mangled_name
8851         initializer.
8852         (minimal_language_data): Likewise.
8853         * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8854         implementation moves to cplus_language::sniff_from_mangled_name.
8855         * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8856         * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8857         moves to...
8858         (d_language::sniff_from_mangled_name): ...here.
8859         (d_language_data): Delete la_sniff_from_mangled_name initializer.
8860         * f-lang.c (f_language_data): Likewise.
8861         * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8862         moves to...
8863         (go_language::sniff_from_mangled_name): ...here.
8864         (go_language_data): Delete la_sniff_from_mangled_name initializer.
8865         * language.c (language_sniff_from_mangled_name): Delete.
8866         (unknown_language_data): Delete la_sniff_from_mangled_name
8867         initializer.
8868         (auto_language_data): Likewise.
8869         * language.h (language_data): Delete la_sniff_from_mangled_name
8870         field.
8871         (language_defn::sniff_from_mangled_name): New function.
8872         (language_sniff_from_mangled_name): Delete declaration.
8873         * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8874         field.
8875         * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8876         implementation moves to...
8877         (objc_language::sniff_from_mangled_name): ...here.
8878         (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8879         * opencl-lang.c (opencl_language_data): Likewise.
8880         * p-lang.c (pascal_language_data): Likewise.
8881         * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8882         implementation moves to...
8883         (rust_language::sniff_from_mangled_name): ...here.
8884         (rust_language_data): Delete la_sniff_from_mangled_name
8885         initializer.
8886         * symtab.c (symbol_find_demangled_name): Call
8887         sniff_from_mangled_name member function.
8889 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8891         * ada-lang.c (ada_language_data): Delete la_search_name_hash
8892         initializer.
8893         * c-lang.c (c_language_data): Likewise.
8894         (cplus_language_data): Likewise.
8895         (cplus_language::search_name_hash): New member function.
8896         (asm_language_data): Delete la_search_name_hash initializer.
8897         (minimal_language_data): Likewise.
8898         * d-lang.c (d_language_data): Likewise.
8899         * dictionary.c (default_search_name_hash): Rename to...
8900         (language_defn::search_name_hash): ...this.
8901         * f-lang.c (f_language_data): Likewise.
8902         (f_language::search_name_hash): New member function.
8903         * go-lang.c (go_language_data): Delete la_search_name_hash
8904         initializer.
8905         * language.c (unknown_language_data): Likewise.
8906         (auto_language_data): Likewise.
8907         * language.h (struct language_data): Delete la_search_name_hash
8908         field.
8909         (language_defn::search_name_hash): Declare new member function.
8910         (default_search_name_hash): Delete declaration.
8911         * m2-lang.c (m2_language_data): Delete la_search_name_hash
8912         initializer.
8913         * objc-lang.c (objc_language_data): Likewise.
8914         * opencl-lang.c (opencl_language_data): Likewise.
8915         * p-lang.c (pascal_language_data): Likewise.
8916         * rust-lang.c (rust_language_data): Likewise.
8917         * symtab.c (search_name_hash): Update call.
8919 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8921         * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8922         initializer.
8923         * c-lang.c (class compile_instance): Declare.
8924         (c_language_data): Delete la_get_compile_instance initializer.
8925         (c_language::get_compile_instance): New member function.
8926         (cplus_language_data): Delete la_get_compile_instance initializer.
8927         (cplus_language::get_compile_instance): New member function.
8928         (asm_language_data): Delete la_get_compile_instance initializer.
8929         (minimal_language_data): Likewise.
8930         * c-lang.h (c_get_compile_context): Update comment.
8931         (cplus_get_compile_context): Update comment.
8932         * compile/compile.c (compile_to_object): Update calls, don't rely
8933         on function pointer being NULL.
8934         * d-lang.c (d_language_data): Delete la_get_compile_instance
8935         initializer.
8936         * f-lang.c (f_language_data): Likewise.
8937         * go-lang.c (go_language_data): Likewise.
8938         * language.c (unknown_language_data): Likewise.
8939         (auto_language_data): Likewise.
8940         * language.h (language_data): Delete la_get_compile_instance field.
8941         (language_defn::get_compile_instance): New member function.
8942         * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8943         initializer.
8944         * objc-lang.c (objc_language_data): Likewise.
8945         * opencl-lang.c (opencl_language_data): Likewise.
8946         * p-lang.c (pascal_language_data): Likewise.
8947         * rust-lang.c (rust_language_data): Likewise.
8949 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8951         * ada-lang.c (ada_add_all_symbols): Update comment.
8952         (ada_iterate_over_symbols): Delete, move implementation to...
8953         (ada_language::iterate_over_symbols): ...here, a new member
8954         function, rewrite to use range based for loop.
8955         (ada_language_data): Delete la_iterate_over_symbols initializer.
8956         * c-lang.c (c_language_data): Likewise.
8957         (cplus_language_data): Likewise.
8958         (asm_language_data): Likewise.
8959         (minimal_language_data): Likewise.
8960         * d-lang.c (d_language_data): Likewise.
8961         * f-lang.c (f_language_data): Likewise.
8962         * go-lang.c (go_language_data): Likewise.
8963         * language.c (unknown_language_data): Likewise.
8964         (auto_language_data): Likewise.
8965         * language.h (language_data): Delete la_iterate_over_symbols field.
8966         (language_defn::iterate_over_symbols): New member function.
8967         (LA_ITERATE_OVER_SYMBOLS): Update.
8968         * linespec.c (iterate_over_all_matching_symtabs): Update.
8969         * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8970         initializer.
8971         * objc-lang.c (objc_language_data): Likewise.
8972         * opencl-lang.c (opencl_language_data): Likewise.
8973         * p-lang.c (pascal_language_data): Likewise.
8974         * rust-lang.c (rust_language_data): Likewise.
8976 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8978         * ada-lang.c (ada_language_data): Delete
8979         la_lookup_transparent_type initializer.
8980         * c-lang.c (c_language_data): Likewise.
8981         (cplus_language_data): Likewise.
8982         (cplus_language::lookup_transparent_type): New member function.
8983         (asm_language_data): Delete la_lookup_transparent_type
8984         initializer.
8985         (minimal_language_data): Likewise.
8986         * d-lang.c (d_language_data): Likewise.
8987         * f-lang.c (f_language_data): Likewise.
8988         * go-lang.c (go_language_data): Likewise.
8989         * language.c (unknown_language_data): Likewise.
8990         (auto_language_data): Likewise.
8991         * language.h (struct language_data): Delete
8992         la_lookup_transparent_type field.
8993         (language_defn::lookup_transparent_type): New member function.
8994         * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8995         initializer.
8996         * objc-lang.c (objc_language_data): Likewise.
8997         * opencl-lang.c (opencl_language_data): Likewise.
8998         * p-lang.c (pascal_language_data): Likewise.
8999         * rust-lang.c (rust_language_data): Likewise.
9000         * symtab.c (symbol_matches_domain): Update call.
9002 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
9004         * ada-lang.c (ada_language_arch_info): Delete function, move
9005         implementation to...
9006         (ada_language::language_arch_info): ...here, a new member
9007         function.
9008         (ada_language_data): Delete la_language_arch_info.
9009         * c-lang.c (c_language_data): Likewise.
9010         (c_language::language_arch_info): New member function.
9011         (cplus_language_arch_info): Delete function, move
9012         implementation to...
9013         (cplus_language::language_arch_info): ...here, a new member
9014         function.
9015         (cplus_language_data): Delete la_language_arch_info.
9016         (asm_language_data): Likewise.
9017         (asm_language::language_arch_info): New member function.
9018         (minimal_language_data): Delete la_language_arch_info.
9019         (minimal_language::language_arch_info): New member function.
9020         * d-lang.c (d_language_arch_info): Delete function, move
9021         implementation to...
9022         (d_language::language_arch_info): ...here, a new member
9023         function.
9024         (d_language_data): Delete la_language_arch_info.
9025         * f-lang.c (f_language_arch_info): Delete function, move
9026         implementation to...
9027         (f_language::language_arch_info): ...here, a new member
9028         function.
9029         (f_language_data): Delete la_language_arch_info.
9030         * go-lang.c (go_language_arch_info): Delete function, move
9031         implementation to...
9032         (go_language::language_arch_info): ...here, a new member
9033         function.
9034         (go_language_data): Delete la_language_arch_info.
9035         * language.c (unknown_language_data): Likewise.
9036         (unknown_language::language_arch_info): New member function.
9037         (auto_language_data): Delete la_language_arch_info.
9038         (auto_language::language_arch_info): New member function.
9039         (language_gdbarch_post_init): Update call to
9040         la_language_arch_info.
9041         * language.h (language_data): Delete la_language_arch_info
9042         function pointer.
9043         (language_defn::language_arch_info): New function.
9044         * m2-lang.c (m2_language_arch_info): Delete function, move
9045         implementation to...
9046         (m2_language::language_arch_info): ...here, a new member
9047         function.
9048         (m2_language_data): Delete la_language_arch_info.
9049         * objc-lang.c (objc_language_arch_info): Delete function, move
9050         implementation to...
9051         (objc_language::language_arch_info): ...here, a new member
9052         function.
9053         (objc_language_data): Delete la_language_arch_info.
9054         * opencl-lang.c (opencl_language_arch_info): Delete function, move
9055         implementation to...
9056         (opencl_language::language_arch_info): ...here, a new member
9057         function.
9058         (opencl_language_data): Delete la_language_arch_info.
9059         * p-lang.c (pascal_language_arch_info): Delete function, move
9060         implementation to...
9061         (pascal_language::language_arch_info): ...here, a new member
9062         function.
9063         (pascal_language_data): Delete la_language_arch_info.
9064         * rust-lang.c (rust_language_arch_info): Delete function, move
9065         implementation to...
9066         (rust_language::language_arch_info): ...here, a new member
9067         function.
9068         (rust_language_data): Delete la_language_arch_info.
9070 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
9072         * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9073         initializer.
9074         * c-lang.c (c_language_data): Likewise.
9075         (cplus_language_data): Likewise.
9076         (cplus_language::pass_by_reference_info): New method.
9077         (asm_language_data): Delete la_pass_by_reference initializer.
9078         (minimal_language_data): Likewise.
9079         * cp-abi.c (cp_pass_by_reference): Remove use of
9080         default_pass_by_reference.
9081         * d-lang.c (d_language_data): Likewise.
9082         * f-lang.c (f_language_data): Likewise.
9083         * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9084         default_pass_by_reference.
9085         * go-lang.c (go_language_data): Likewise.
9086         * language.c (language_pass_by_reference): Update.
9087         (default_pass_by_reference): Delete.
9088         (unknown_language_data): Delete la_pass_by_reference
9089         initializer.
9090         (auto_language_data): Likewise.
9091         * language.h (struct language_data): Delete la_pass_by_reference
9092         field.
9093         (language_defn::pass_by_reference_info): New member function.
9094         (default_pass_by_reference): Delete declaration.
9095         * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9096         initializer.
9097         * objc-lang.c (objc_language_data): Likewise.
9098         * opencl-lang.c (opencl_language_data): Likewise.
9099         * p-lang.c (pascal_language_data): Likewise.
9100         * rust-lang.c (rust_language_data): Likewise.
9102 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
9104         * ada-lang.c (ada_read_var_value): Delete function, move
9105         implementation to...
9106         (ada_language::read_var_value): ...here.
9107         (ada_language_data): Delete la_read_var_value initializer.
9108         * c-lang.c (c_language_data): Likewise.
9109         (cplus_language_data): Likewise.
9110         (minimal_language_data): Likewise.
9111         * d-lang.c (d_language_data): Likewise.
9112         * f-lang.c (f_language_data): Likewise.
9113         * findvar.c (default_read_var_value): Rename to...
9114         (language_defn::read_var_value): ...this.
9115         * findvar.c (read_var_value): Update header comment, and change to
9116         call member function instead of function pointer.
9117         * go-lang.c (go_language_data): Likewise.
9118         * language.c (unknown_language_data): Delete la_read_var_value
9119         initializer.
9120         (auto_language_data): Likewise.
9121         * language.h (struct language_data): Delete la_read_var_value
9122         field.
9123         (language_defn::read_var_value): New member function.
9124         (default_read_var_value): Delete declaration.
9125         * m2-lang.c (m2_language_data): Delete la_read_var_value
9126         initializer.
9127         * objc-lang.c (objc_language_data): Likewise.
9128         * opencl-lang.c (opencl_language_data): Likewise.
9129         * p-lang.c (pascal_language_data): Likewise.
9130         * rust-lang.c (rust_language_data): Likewise.
9131         * value.h (default_read_var_value): Delete declaration.
9133 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
9135         * ada-lang.c (ada_print_array_index): Delete function, move
9136         implementation to...
9137         (ada_language::print_array_index): ...here.
9138         (ada_language_data): Delete la_print_array_index initializer.
9139         * c-lang.c (c_language_data): Likewise.
9140         (cplus_language_data): Likewise.
9141         (minimal_language_data): Likewise.
9142         * d-lang.c (d_language_data): Likewise.
9143         * f-lang.c (f_language_data): Likewise.
9144         * go-lang.c (go_language_data): Likewise.
9145         * language.c (default_print_array_index): Delete function, move
9146         implementation to...
9147         (language_defn::print_array_index): ...here.
9148         (unknown_language_data): Delete la_print_array_index initializer.
9149         (auto_language_data): Likewise.
9150         * language.h (struct language_data): Delete la_print_array_index
9151         field.
9152         (language_defn::print_array_index): New member function.
9153         (LA_PRINT_ARRAY_INDEX): Update.
9154         (default_print_array_index): Delete declaration.
9155         * m2-lang.c (m2_language_data): Delete la_print_array_index
9156         initializer.
9157         * objc-lang.c (objc_language_data): Likewise.
9158         * opencl-lang.c (opencl_language_data): Likewise.
9159         * p-lang.c (pascal_language_data): Likewise.
9160         * rust-lang.c (rust_language_data): Likewise.
9162 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
9164         * gdb/ada-lang.c (ada_language_defn): Convert to...
9165         (ada_language_data): ...this.
9166         (class ada_language): New class.
9167         (ada_language_defn): New static global.
9168         * gdb/c-lang.c (c_language_defn): Convert to...
9169         (c_language_data): ...this.
9170         (class c_language): New class.
9171         (c_language_defn): New static global.
9172         (cplus_language_defn): Convert to...
9173         (cplus_language_data): ...this.
9174         (class cplus_language): New class.
9175         (cplus_language_defn): New static global.
9176         (asm_language_defn): Convert to...
9177         (asm_language_data): ...this.
9178         (class asm_language): New class.
9179         (asm_language_defn): New static global.
9180         (minimal_language_defn): Convert to...
9181         (minimal_language_data): ...this.
9182         (class minimal_language): New class.
9183         (minimal_language_defn): New static global.
9184         * gdb/d-lang.c (d_language_defn): Convert to...
9185         (d_language_data): ...this.
9186         (class d_language): New class.
9187         (d_language_defn): New static global.
9188         * gdb/f-lang.c (f_language_defn): Convert to...
9189         (f_language_data): ...this.
9190         (class f_language): New class.
9191         (f_language_defn): New static global.
9192         * gdb/go-lang.c (go_language_defn): Convert to...
9193         (go_language_data): ...this.
9194         (class go_language): New class.
9195         (go_language_defn): New static global.
9196         * gdb/language.c (unknown_language_defn): Remove declaration.
9197         (current_language): Initialize to nullptr, real initialization is
9198         moved to _initialize_language.
9199         (languages): Delete global.
9200         (language_defn::languages): Define.
9201         (set_language_command): Use language_defn::languages.
9202         (set_language): Likewise.
9203         (range_error): Likewise.
9204         (language_enum): Likewise.
9205         (language_def): Likewise.
9206         (add_set_language_command): Use language_def::languages for the
9207         language list, and language_def to lookup language pointers.
9208         (skip_language_trampoline): Use language_defn::languages.
9209         (unknown_language_defn): Convert to...
9210         (unknown_language_data): ...this.
9211         (class unknown_language): New class.
9212         (unknown_language_defn): New static global.
9213         (auto_language_defn): Convert to...
9214         (auto_language_data): ...this.
9215         (class auto_language): New class.
9216         (auto_language_defn): New static global.
9217         (language_gdbarch_post_init): Use language_defn::languages.
9218         (_initialize_language): Initialize current_language.
9219         * gdb/language.h (struct language_defn): Rename to...
9220         (struct language_data): ...this.
9221         (struct language_defn): New.
9222         (auto_language_defn): Delete.
9223         (unknown_language_defn): Delete.
9224         (minimal_language_defn): Delete.
9225         (ada_language_defn): Delete.
9226         (asm_language_defn): Delete.
9227         (c_language_defn): Delete.
9228         (cplus_language_defn): Delete.
9229         (d_language_defn): Delete.
9230         (f_language_defn): Delete.
9231         (go_language_defn): Delete.
9232         (m2_language_defn): Delete.
9233         (objc_language_defn): Delete.
9234         (opencl_language_defn): Delete.
9235         (pascal_language_defn): Delete.
9236         (rust_language_defn): Delete.
9237         * gdb/m2-lang.c (m2_language_defn): Convert to...
9238         (m2_language_data): ...this.
9239         (class m2_language): New class.
9240         (m2_language_defn): New static global.
9241         * gdb/objc-lang.c (objc_language_defn): Convert to...
9242         (objc_language_data): ...this.
9243         (class objc_language): New class.
9244         (objc_language_defn): New static global.
9245         * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9246         (opencl_language_data): ...this.
9247         (class opencl_language): New class.
9248         (opencl_language_defn): New static global.
9249         * gdb/p-lang.c (pascal_language_defn): Convert to...
9250         (pascal_language_data): ...this.
9251         (class pascal_language): New class.
9252         (pascal_language_defn): New static global.
9253         * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9254         language pointer, update comment format.
9255         * gdb/rust-lang.c (rust_language_defn): Convert to...
9256         (rust_language_data): ...this.
9257         (class rust_language): New class.
9258         (rust_language_defn): New static global.
9260 2020-06-01  Andrew Burgess  <andrew.burgess@embecosm.com>
9262         * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9263         member variable.
9264         <m_stmt_at_address>: New member variable.
9265         (lnp_state_machine::record_line): Don't record some lines, update
9266         tracking of is_stmt at the same address.
9267         (lnp_state_machine::lnp_state_machine): Initialise new member
9268         variables.
9270 2020-06-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9272         * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9273         "-include gnu-nat-mig.h".
9274         * gnu-nat-mig.h: New file.
9275         * gnu-nat.c: Include "gnu-nat-mig.h".
9276         (exc_server, msg_reply_server, notify_server,
9277         process_reply_server): Remove declarations.
9279 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9281         * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9282         steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9283         inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9284         inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9285         inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9286         inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9287         inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9288         proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9289         proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9290         to gnu_nat_target class.
9291         * gnu-nat.c: Likewise.
9292         (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9293         set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9294         set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9295         object.
9296         (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9297         instead of `gnu_target'.
9299 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9301         * i386-gnu-tdep.c: Include "gdbcore.h"
9302         (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9303         (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9304         I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9305         (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9306         i386_gnu_sigcontext_addr): New functions
9307         (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9308         i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9309         tdep.
9311 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9313         * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9314         before fork_inferior call. Avoid calling it if target_is_pushed returns
9315         true.
9317 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9319         * gnu-nat.h (gnu_target): New variable declaration.
9320         * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9321         gnu_target.
9322         * gnu-nat.c (gnu_target): New variable.
9323         (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9324         add_thread_silent, and add_thread calls.
9325         (gnu_nat_target::create_inferior): Pass gnu_target to
9326         add_thread_silent, thread_change_ptid call.
9327         (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9328         call.
9330 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9332         * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9333         (gnu_nat_target::find_memory_regions): Remove unused
9334         `old_address' variable.
9336 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9338         * gnu-nat.c: Include "gdbarch.h".
9340 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9342         * reply_mig_hack.awk (Error return): Cast function through
9343         void *, to bypass compiler function call check.
9345 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9347         * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9348         $(srcdir)/reply_mig_hack.awk.
9350 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9352         * gnu-nat.h (gnu_debug_flag): Set type to bool.
9354 2020-05-30  Jonny Grant  <jg@jguk.org>
9356         * configure.ac (ACX_BUGURL): change bug URL to https.
9358 2020-05-30  Pedro Alves  <palves@redhat.com>
9360         * cp-support.c (replace_typedefs_template): New.
9361         (replace_typedefs_qualified_name): Handle
9362         DEMANGLE_COMPONENT_TEMPLATE.
9364 2020-05-29  Simon Marchi  <simon.marchi@efficios.com>
9366         * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9367         dwarf2/index-cache.h, dwarf2/index-write.c,
9368         dwarf2/index-write.h, dwarf2/line-header.c,
9369         dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9370         dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9371         variables and fields from `dwarf2_per_objfile` to just
9372         `per_objfile` throughout.
9374 2020-05-28  Simon Marchi  <simon.marchi@polymtl.ca>
9376         * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9377         <push_dwarf_reg_entry_value>: Add comment.
9379 2020-05-28  Kevin Buettner  <kevinb@redhat.com>
9380             Keith Seitz  <keiths@redhat.com>
9382         * python/python.c (do_start_initialization): Call PyEval_SaveThread
9383         instead of PyEval_ReleaseLock.
9384         (class gdbpy_gil): Move to earlier in file.
9385         (finalize_python): Set gdb_python_initialized.
9386         (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil.  Return early
9387         when not initialized.
9389 2020-05-28  Simon Marchi  <simon.marchi@efficios.com>
9391         * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9392         <push_dwarf_reg_entry_value>: Remove assert.  Override
9393         per_objfile with caller_per_objfile.
9395 2020-05-28  Tom de Vries  <tdevries@suse.de>
9397         * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9398         PR gold/15646 workaround to symbol kind "type".
9400 2020-05-27  Tom Tromey  <tromey@adacore.com>
9402         * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9404 2020-05-27  Tom Tromey  <tromey@adacore.com>
9406         * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9407         Use htab_find_with_hash.
9408         <add_abbrev>: Remove "abbrev_number" parameter.
9409         * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9410         "abbrev_number" parameter.  Use htab_find_slot_with_hash.
9411         (hash_abbrev): Add comment.
9412         (abbrev_table::lookup_abbrev): Move to header file.
9413         (abbrev_table::read): Update.
9415 2020-05-27  Tom Tromey  <tromey@adacore.com>
9417         * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9418         method.
9419         <canonical_name>: New member.
9420         <raw_name>: Rename from "name".
9421         (partial_die_info): Initialize canonical_name.
9422         (scan_partial_symbols): Check raw_name.
9423         (partial_die_parent_scope, partial_die_full_name)
9424         (add_partial_symbol, add_partial_subprogram)
9425         (add_partial_enumeration, load_partial_dies): Use "name" method.
9426         (partial_die_info::name): New method.
9427         (partial_die_info::read, guess_partial_die_structure_name)
9428         (partial_die_info::fixup): Update.
9430 2020-05-27  Tom Tromey  <tromey@adacore.com>
9432         * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9433         <get_ref_die_offset>: Inline.
9434         <get_ref_die_offset_complaint>: New method.
9435         * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9436         (attribute::get_ref_die_offset_complaint): Rename from
9437         get_ref_die_offset.  Just issue complaint.
9439 2020-05-27  Hannes Domani  <ssbssa@yahoo.de>
9441         * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9443 2020-05-27  Hannes Domani  <ssbssa@yahoo.de>
9445         * exec.c (exec_file_attach): Use errno value of first openp failure.
9447 2020-05-27  Hannes Domani  <ssbssa@yahoo.de>
9449         * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9450         Don't close thread handle.
9452 2020-05-27  Tom Tromey  <tom@tromey.com>
9453             Simon Marchi  <simon.marchi@efficios.com>
9455         * objfiles.h (struct objfile) <partial_symtabs>: Now a
9456         shared_ptr.
9457         * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9458         member.
9459         * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9460         dwarf2_per_bfd_objfile_data_key>: New globals.
9461         (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9462         (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9463         (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9464         shared.
9465         (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9466         short-circuit when sharing.
9467         (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9468         (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9470 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9472         * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9473         to...
9474         (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9475         * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9477 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9479         * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9480         build_name_components, find_name_components_bounds>:
9481         Add per_objfile parameter.
9482         (struct mapped_index) <symbol_name_at>: Likewise.
9483         (struct mapped_debug_names): Remove constructor.
9484         <dwarf2_per_objfile>: Remove field.
9485         <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9486         (mapped_index_base::find_name_components_bounds,
9487         mapped_index_base::build_name_components,
9488         dw2_expand_symtabs_matching_symbol): Likewise.
9489         (class mock_mapped_index) <symbol_name_at>: Likewise.
9490         (check_match): Likewise.
9491         (check_find_bounds_finds): Likewise.
9492         (test_mapped_index_find_name_component_bounds): Update.
9493         (CHECK_MATCH): Update.
9494         (dw2_expand_symtabs_matching): Update.
9495         (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9496         per_objfile parameter.
9497         <find_vec_in_debug_names>: Likewise.
9498         <m_per_objfile>: New field.
9499         (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9500         parameter.
9501         (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9502         (dw2_debug_names_iterator::next): Update.
9503         (dw2_debug_names_lookup_symbol): Update.
9504         (dw2_debug_names_expand_symtabs_for_function): Update.
9505         (dw2_debug_names_map_matching_symbols): Update.
9506         (dw2_debug_names_expand_symtabs_matching): Update.
9507         (dwarf2_read_debug_names): Update.
9509 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9511         * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9512         (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9513         move to dwarf2_per_objfile.
9514         <read_in_chain>: Remove.
9515         (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9516         remove_all_cus, age_comp_units>: New methods.
9517         <m_dwarf2_cus>: New member.
9518         (struct dwarf2_per_cu_data) <cu>: Remove.
9519         * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9520         (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9521         moved to methods of dwarf2_per_objfile.
9522         (dwarf2_clear_marks): Remove.
9523         (dwarf2_queue_item::~dwarf2_queue_item): Update.
9524         (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9525         (dwarf2_per_bfd::free_cached_comp_units): Remove.
9526         (dwarf2_per_objfile::remove_all_cus): New.
9527         (class free_cached_comp_units) <~free_cached_comp_units>:
9528         Update.
9529         (load_cu): Update.
9530         (dw2_do_instantiate_symtab): Adjust.
9531         (fill_in_sig_entry_from_dwo_entry): Adjust.
9532         (cutu_reader::init_tu_and_read_dwo_dies): Update.
9533         (cutu_reader::cutu_reader): Likewise.
9534         (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9535         (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9536         (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9537         and dwarf2_per_objfile::age_comp_units.
9538         (load_partial_comp_unit): Update.
9539         (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9540         (process_queue): Likewise.
9541         (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9542         backlink.
9543         (dwarf2_read_addr_index): Likewise.
9544         (follow_die_offset): Likewise.
9545         (dwarf2_fetch_die_loc_sect_off): Likewise.
9546         (dwarf2_fetch_constant_bytes): Likewise.
9547         (dwarf2_fetch_die_type_sect_off): Likewise.
9548         (follow_die_sig_1): Likewise.
9549         (load_full_type_unit): Likewise.
9550         (read_signatured_type): Likewise.
9551         (dwarf2_cu::dwarf2_cu): Don't set cu field.
9552         (dwarf2_cu::~dwarf2_cu): Remove.
9553         (dwarf2_per_objfile::get_cu): New.
9554         (dwarf2_per_objfile::set_cu): New.
9555         (age_cached_comp_units): Rename to...
9556         (dwarf2_per_objfile::age_comp_units): ... this.  Adjust
9557         to std::unordered_map.
9558         (free_one_cached_comp_unit): Rename to...
9559         (dwarf2_per_objfile::remove_cu): ... this.  Adjust
9560         to std::unordered_map.
9561         (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9562         (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9563         a dwarf2_per_objfile in data.
9564         (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9565         (dwarf2_clear_marks): Remove.
9567 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9569         * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9570         `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9571         (init_tu_and_read_dwo_dies): Likewise.
9572         (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9573         (cutu_reader::cutu_reader): Likewise.
9574         (load_partial_comp_unit): Likewise.
9575         (process_psymtab_comp_unit): Update.
9576         (build_type_psymtabs_1): Update.
9577         (process_skeletonless_type_unit): Update.
9578         (load_full_comp_unit): Update.
9579         (find_partial_die): Update.
9580         (dwarf2_read_addr_index): Update.
9581         (read_signatured_type): Update.
9583 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
9585         * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9586         m_header_read_in>: New fields.
9587         <get_header>: New method.
9588         * dwarf2/read.c (per_cu_header_read_in): Remove.
9589         (dwarf2_per_cu_data::get_header): New.
9590         (dwarf2_per_cu_data::addr_size): Update.
9591         (dwarf2_per_cu_data::offset_size): Update.
9592         (dwarf2_per_cu_data::ref_addr_size): Update.
9594 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
9596         * dwarf2/read.c (load_cu): Return dwarf2_cu.
9597         (dw2_do_instantiate_symtab): Update.
9598         (queue_and_load_all_dwo_tus): Change parameter from
9599         dwarf2_per_cu_data to dwarf2_cu.
9600         (dwarf2_fetch_die_loc_sect_off): Update.
9601         (dwarf2_fetch_constant_bytes): Update.
9602         (dwarf2_fetch_die_type_sect_off): Update.
9604 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
9606         * dwarf2/read.c (process_full_comp_unit,
9607         process_full_type_unit): Remove per_cu, per_objfile paramters.
9608         Add dwarf2_cu parameter.
9609         (process_queue): Update.
9611 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
9613         * dwarf2/read.c (create_cu_from_index_list): Replace
9614         dwarf2_per_objfile parameter with dwarf2_per_bfd.
9615         (create_cus_from_index_list): Likewise.
9616         (create_cus_from_index): Likewise.
9617         (create_signatured_type_table_from_index): Likewise.
9618         (create_cus_from_debug_names_list): Likewise.
9619         (create_cus_from_debug_names): Likewise.
9620         (dwarf2_read_gdb_index): Update.
9621         (dwarf2_read_debug_names): Update.
9623 2020-05-27  Tom Tromey  <tom@tromey.com>
9624             Simon Marchi  <simon.marchi@efficios.com>
9626         * dwarf2/read.h (struct dwarf2_per_objfile)
9627         <get_type_for_signatured_type, set_type_for_signatured_type>:
9628         New methods.
9629         <m_type_map>: New member.
9630         (struct signatured_type) <type>: Remove.
9631         * dwarf2/read.c
9632         (dwarf2_per_objfile::get_type_for_signatured_type,
9633         dwarf2_per_objfile::set_type_for_signatured_type): New.
9634         (get_signatured_type): Use new methods.
9636 2020-05-27  Tom Tromey  <tom@tromey.com>
9637             Simon Marchi  <simon.marchi@efficios.com>
9639         * dwarf2/read.h (struct type_unit_group_unshareable): New.
9640         (struct dwarf2_per_objfile) <type_units>: New member.
9641         <get_type_unit_group_unshareable>: New method.
9642         * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9643         num_symtabs, symtabs>: Remove; move to
9644         type_unit_group_unshareable.
9645         (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9646         (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9647         (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9649 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9651         * dwarf2/read.h (struct dwarf2_per_cu_data):
9652         <dwarf2_per_objfile>: Remove.
9653         * dwarf2/read.c (create_cu_from_index_list): Don't assign
9654         dwarf2_per_objfile.
9655         (create_signatured_type_table_from_index): Likewise.
9656         (create_signatured_type_table_from_debug_names): Likewise.
9657         (create_debug_type_hash_table): Likewise.
9658         (fill_in_sig_entry_from_dwo_entry): Likewise.
9659         (create_type_unit_group): Likewise.
9660         (read_comp_units_from_section): Likewise.
9661         (create_cus_hash_table): Likewise.
9663 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9665         * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9666         dwarf2_per_cu_data::dwarf2_per_objfile.
9667         (compute_compunit_symtab_includes): Likewise.
9668         (dwarf2_cu::start_symtab): Likewise.
9670 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
9672         * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9673         parameter.
9674         * dwarf2/read.c (get_die_type_at_offset): Likewise.
9675         (read_namespace_alias): Update.
9676         (lookup_die_type): Update.
9677         (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9678         * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9679         Update.
9680         (disassemble_dwarf_expression): Update.
9682 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9684         * dwarf2/read.h (struct dwarf2_queue_item): Add
9685         dwarf2_per_objfile parameter, assign new parameter.
9686         <per_objfile>: New field.
9687         * dwarf2/read.c (free_one_cached_comp_unit): Add
9688         dwarf2_per_objfile parameter.
9689         (queue_comp_unit): Likewise.
9690         (dw2_do_instantiate_symtab): Update.
9691         (process_psymtab_comp_unit): Update.
9692         (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9693         (process_imported_unit_die): Update.
9694         (queue_and_load_dwo_tu): Update.
9695         (follow_die_offset): Update.
9696         (follow_die_sig_1): Update.
9698 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9700         * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9701         * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9702         (read_call_site_scope): Assign per_objfile.
9703         (dwarf2_per_cu_data::objfile): Remove.
9704         * gdbtypes.h (struct call_site) <per_objfile>: New member.
9705         * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9706         dwarf2_per_objfile parameter.
9707         * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9708         dwarf2_per_objfile parameter.
9709         (dwarf_expr_reg_to_entry_parameter): Add output
9710         dwarf2_per_objfile parameter.
9711         (locexpr_get_frame_base): Update.
9712         (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9713         <push_dwarf_reg_entry_value>: Update.
9714         <call_site_to_target_addr>: Update.
9715         (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9716         parameter.
9717         (value_of_dwarf_reg_entry): Update.
9718         (rw_pieced_value): Update.
9719         (indirect_synthetic_pointer): Update.
9720         (dwarf2_evaluate_property): Update.
9721         (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9722         parameter.
9723         (locexpr_read_variable): Update.
9724         (locexpr_get_symbol_read_needs): Update.
9725         (loclist_read_variable): Update.
9727 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9729         * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9730         dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9731         dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9732         parameter.
9733         * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9734         dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9735         dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9736         parameter.
9737         * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9738         sect_variable_value): Add dwarf2_per_objfile parameter.
9739         (class dwarf_evaluate_loc_desc) <dwarf_call,
9740         dwarf_variable_value>: Update.
9741         (fetch_const_value_from_synthetic_pointer): Add
9742         dwarf2_per_objfile parameter.
9743         (fetch_const_value_from_synthetic_pointer): Update.
9744         (coerced_pieced_ref): Update.
9745         (class symbol_needs_eval_context) <dwarf_call,
9746         dwarf_variable_value>: Update.
9747         (dwarf2_compile_expr_to_ax): Update.
9749 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9751         * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9752         parameter.
9753         (dwarf2_evaluate_loc_desc_full): Update.
9755 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9757         * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9758         parameter.
9759         * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9760         * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9761         dwarf2_per_objfile parameter.
9762         (decode_debug_loc_dwo_addresses): Likewise.
9763         (dwarf2_find_location_expression): Update.
9764         (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9765         (locexpr_describe_location_piece): Add dwarf2_per_objfile
9766         parameter.
9767         (disassemble_dwarf_expression): Add dwarf2_per_objfile
9768         parameter.
9769         (locexpr_describe_location_1): Likewise.
9770         (locexpr_describe_location): Update.
9772 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9774         * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9775         Remove.
9776         * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9777         * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9778         (dwarf2_compile_property_to_c): Update.
9779         (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9780         use text offset from objfile.
9781         (locexpr_tracepoint_var_ref): Update.
9782         (locexpr_generate_c_location): Update.
9783         (loclist_describe_location): Update.
9784         (loclist_tracepoint_var_ref): Update.
9785         * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9786         dwarf2_per_objfile parameter.
9787         * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9788         use text offset from objfile.
9789         (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9791 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9793         * dwarf2/expr.h (struct dwarf_expr_context)
9794         <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9795         <offset>: Remove.
9796         <per_objfile>: New member.
9797         * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9798         dwarf2_per_objfile parameter.  Don't set offset, set
9799         per_objfile.
9800         (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9801         * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9802         a dwarf2_per_objfile object instead of an offset.
9803         (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9804         constructor.
9805         (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9806         to dwarf2_expr_executor constructor.  Don't set offset.
9807         (dwarf2_fetch_cfa_info): Update.
9808         (struct dwarf2_frame_cache) <text_offset>: Remove.
9809         <per_objfile>: New field.
9810         (dwarf2_frame_cache): Update.
9811         (dwarf2_frame_prev_register): Update.
9812         * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9813         <dwarf_evaluate_loc_desc>: Add constructor.
9814         (dwarf2_evaluate_loc_desc_full): Update.
9815         (dwarf2_locexpr_baton_eval): Update.
9816         (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9817         Add constructor.
9818         (dwarf2_loc_desc_get_symbol_read_needs): Update.
9820 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9822         * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9823         addr_sized_int_type>: Move to dwarf2_cu.
9824         <int_type>: Move to dwarf2_per_objfile.
9825         (struct dwarf2_per_objfile) <int_type>: Move here.
9826         * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9827         addr_sized_int_type>: Move here.
9828         (read_func_scope): Update.
9829         (read_array_type): Update.
9830         (read_tag_string_type): Update.
9831         (attr_to_dynamic_prop): Update.
9832         (dwarf2_per_cu_data::int_type): Rename to...
9833         (dwarf2_per_objfile::int_type): ... this.
9834         (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9835         (dwarf2_cu::addr_sized_int_type): ... this.
9836         (read_subrange_type): Update.
9837         (dwarf2_per_cu_data::addr_type): Rename to...
9838         (dwarf2_cu::addr_type): ... this.
9839         (set_die_type): Update.
9841 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9843         * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9844         data through per_cu->cu.
9846 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9848         * dwarf2/read.c (lookup_dwo_comp_unit): Change
9849         dwarf2_per_cu_data parameter fo dwarf2_cu.
9850         (lookup_dwo_type_unit): Likewise.
9851         (read_cutu_die_from_dwo): Likewise.
9852         (lookup_dwo_unit): Likewise.
9853         (open_and_init_dwo_file): Likewise.
9854         (lookup_dwo_cutu): Likewise.
9855         (lookup_dwo_comp_unit): Likewise.
9856         (lookup_dwo_type_unit): Likewise.
9857         (cutu_reader::init_tu_and_read_dwo_dies): Update.
9858         (cutu_reader::cutu_reader): Update.
9860 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9862         * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9863         parameter.
9864         (process_full_type_unit): Likewise.
9865         (process_queue): Update.
9867 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9869         * dwarf2/read.c (recursively_compute_inclusions): Add
9870         dwarf2_per_objfile parameter.
9871         (compute_compunit_symtab_includes): Likewise.
9872         (process_cu_includes): Update.
9874 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9876         * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9877         parameter.
9878         (create_type_unit_group): Update.
9879         (process_psymtab_comp_unit_reader): Update.
9880         (build_type_psymtabs_reader): Update.
9882 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9884         * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9885         object through m_this_cu->cu.
9887 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
9889         * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9890         the info parameter.
9891         (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9893 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
9895         * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9896         per_objfile parameter.
9897         (load_full_type_unit): Add per_objfile parameter.
9898         (read_signatured_type): Likewise.
9899         (load_full_comp_unit): Likewise.
9900         (load_cu): Likewise.
9901         (dw2_do_instantiate_symtab): Likewise.
9902         (dw2_get_file_names): Likewise.
9903         (dw2_map_symtabs_matching_filename): Update.
9904         (dw_expand_symtabs_matching_file_matcher): Update.
9905         (dw2_map_symbol_filenames): Update.
9906         (process_psymtab_comp_unit): Add per_objfile parameter.
9907         (build_type_psymtabs_1): Update.
9908         (process_skeletonless_type_unit): Update.
9909         (dwarf2_build_psymtabs_hard): Update.
9910         (load_partial_comp_unit): Add per_objfile parameter.
9911         (scan_partial_symbols): Update.
9912         (load_full_comp_unit): Add per_objfile parameter.
9913         (process_imported_unit_die): Update.
9914         (create_cus_hash_table): Update.
9915         (find_partial_die): Update.
9916         (dwarf2_read_addr_index): Update.
9917         (follow_die_offset): Update.
9918         (dwarf2_fetch_die_loc_sect_off): Update.
9919         (dwarf2_fetch_constant_bytes): Update.
9920         (dwarf2_fetch_die_type_sect_off): Update.
9921         (follow_die_sig_1): Update.
9922         (load_full_type_unit): Add per_objfile parameter.
9923         (read_signatured_type): Likewise.
9925 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9927         * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9928         of objfile_name.
9930 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
9932         * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9933         (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9934         * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9935         field.
9936         (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9937         (create_cus_from_index): Update.
9938         (dwarf2_read_gdb_index): Update.
9939         (create_cus_from_debug_names): Update.
9940         (dwarf2_read_debug_names): Update.
9941         (get_abbrev_section_for_cu): Update.
9942         (create_all_comp_units): Update.
9943         (read_attribute_value): Update.
9944         (get_debug_line_section): Update.
9945         * dwarf2/index-cache.c (index_cache::store): Update.
9946         * dwarf2/index-write.c (save_gdb_index_command): Update.
9947         * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9949 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
9951         * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9952         member.
9953         * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9954         dwarf2_per_cu_data::per_bfd.
9955         (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9956         (create_type_unit_group): Likewise.
9957         (queue_comp_unit): Remove reference to
9958         per_cu->dwarf2_per_objfile.
9959         (maybe_queue_comp_unit): Likewise.
9960         (fill_in_sig_entry_from_dwo_entry): Assign new field.
9961         (create_cus_hash_table): Assign new field.
9963 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9965         * dwarf2/read.c: Replace
9966         dwarf2_cu->per_cu->dwarf2_per_objfile references with
9967         dwarf2_cu->per_objfile throughout.
9969 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9971         * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9972         parameter, don't use per_cu->dwarf2_per_objfile.
9973         (dw2_instantiate_symtab): Likewise.
9974         (dw2_find_last_source_symtab): Update.
9975         (dw2_map_expand_apply): Update.
9976         (dw2_lookup_symbol): Update.
9977         (dw2_expand_symtabs_for_function): Update.
9978         (dw2_expand_all_symtabs): Update.
9979         (dw2_expand_symtabs_with_fullname): Update.
9980         (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9981         don't use per_cu->dwarf2_per_objfile.
9982         (dw2_expand_marked_cus): Update.
9983         (dw2_find_pc_sect_compunit_symtab): Update.
9984         (dw2_debug_names_lookup_symbol): Update.
9985         (dw2_debug_names_expand_symtabs_for_function): Update.
9986         (dw2_debug_names_map_matching_symbols): Update.
9987         (dwarf2_psymtab::expand_psymtab): Update.
9989 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9991         * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9992         <per_objfile>: New member.
9993         (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9994         (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9995         call to dwarf2_cu.
9996         (cutu_reader::cutu_reader): Update.
9997         (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9999 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
10001         * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10002         struct dwarf2_per_objfile.
10003         (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10004         dwarf2_per_bfd.
10005         * dwarf2/read.c (set_die_type): Update.
10006         (get_die_type_at_offset): Update.
10008 2020-05-27  Tom Tromey  <tom@tromey.com>
10009             Simon Marchi  <simon.marchi@efficios.com>
10011         * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10012         method.
10013         (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10014         get_symtab, set_symtab>: New methods.
10015         <m_symtabs>: New field.
10016         (struct dwarf2_psymtab): Derive from partial_symtab.
10017         <readin_p, get_compunit_symtab>: Declare methods.
10018         * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10019         dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10020         New methods.
10021         (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10022         (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10023         (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10024         (dw2_symtab_iter_next, dw2_print_stats)
10025         (dw2_expand_symtabs_with_fullname)
10026         (dw2_expand_symtabs_matching_one)
10027         (dw_expand_symtabs_matching_file_matcher)
10028         (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10029         (dw2_debug_names_iterator::next)
10030         (dw2_debug_names_map_matching_symbols)
10031         (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10032         (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10033         (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10034         New methods.
10035         (get_compunit_symtab, process_full_comp_unit)
10036         (process_full_type_unit): Update.
10037         (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10039 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
10041         * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10042         then introduce a new dwarf2_per_objfile type.
10043         <read_line_string>: Move to the new dwarf2_per_objfile type.
10044         <objfile>: Likewise.
10045         (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10046         * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10047         dwarf2_per_objfile->per_bfd.
10048         (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10049         (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10050         (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10051         (dwarf2_per_bfd::free_cached_comp_units): ... this.
10052         (dwarf2_has_info): Allocate dwarf2_per_bfd.
10053         (dwarf2_per_objfile::locate_sections): Rename to...
10054         (dwarf2_per_bfd::locate_sections): ... this.
10055         (dwarf2_per_objfile::get_cutu): Rename to...
10056         (dwarf2_per_bfd::get_cutu): ... this.
10057         (dwarf2_per_objfile::get_cu): Rename to...
10058         (dwarf2_per_bfd::get_cu): ... this.
10059         (dwarf2_per_objfile::get_tu): Rename to...
10060         (dwarf2_per_bfd::get_tu): ... this.
10061         (dwarf2_per_objfile::allocate_per_cu): Rename to...
10062         (dwarf2_per_bfd::allocate_per_cu): ... this.
10063         (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10064         (dwarf2_per_bfd::allocate_signatured_type): ... this.
10065         (get_gdb_index_contents_ftype): Change parameter from
10066         dwarf2_per_objfile to dwarf2_per_bfd.
10067         * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10068         dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10070 2020-05-27  Tom Tromey  <tom@tromey.com>
10071             Simon Marchi  <simon.marchi@efficios.com>
10073         * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10074         (allocate_piece_closure): Set "per_objfile" member.
10075         (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10076         (locexpr_describe_location, loclist_describe_location): Use new
10077         member.
10078         * dwarf2/read.c (read_call_site_scope)
10079         (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10080         (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10081         (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10082         handle_data_member_location): Set per_objfile member.
10083         * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10084         member.
10085         (struct dwarf2_loclist_baton) <per_objfile>: New member.
10087 2020-05-27  Tom Tromey  <tom@tromey.com>
10089         * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10090         allocate_signatured_type>: Declare new methods.
10091         <m_num_psymtabs>: New member.
10092         (struct dwarf2_per_cu_data) <index>: New member.
10093         * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10094         (dwarf2_per_objfile::allocate_signatured_type): New methods.
10095         (create_cu_from_index_list): Use allocate_per_cu.
10096         (create_signatured_type_table_from_index)
10097         (create_signatured_type_table_from_debug_names)
10098         (create_debug_type_hash_table, add_type_unit)
10099         (read_comp_units_from_section): Use allocate_signatured_type.
10101 2020-05-27  Tom Tromey  <tom@tromey.com>
10103         * psymtab.c (partial_map_expand_apply)
10104         (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10105         (psym_lookup_global_symbol_language)
10106         (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10107         (psym_print_stats, psym_expand_symtabs_for_function)
10108         (psym_map_symbol_filenames, psym_map_matching_symbols)
10109         (psym_expand_symtabs_matching)
10110         (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10111         (maintenance_check_psymtabs): Update.
10112         * psympriv.h (struct partial_symtab) <readin_p,
10113         get_compunit_symtab>: Add objfile parameter.
10114         (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10115         Likewise.
10116         * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10117         get_compunit_symtab>: Likewise.
10118         (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10120 2020-05-27  Tom Tromey  <tom@tromey.com>
10122         * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10123         member.
10124         * dwarf2/read.c (delete_file_name_entry): Fix comment.
10125         (create_cu_from_index_list)
10126         (create_signatured_type_table_from_index)
10127         (create_signatured_type_table_from_debug_names)
10128         (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10129         (dwarf2_create_include_psymtab)
10130         (create_debug_type_hash_table, add_type_unit)
10131         (create_type_unit_group, read_comp_units_from_section)
10132         (dwarf2_compute_name, create_cus_hash_table)
10133         (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10134         (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10135         obstack.
10136         (dw2_get_real_path): Likewise.  Change argument to
10137         dwarf2_per_objfile.
10139 2020-05-27  Luis Machado  <luis.machado@linaro.org>
10141         PR tdep/26000
10142         * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10143         for ldrd (immediate).
10145 2020-05-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10147         * command.h: Add comment giving the name of class_tui.
10148         * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10149         create the fake command for the help for class_tui.
10151 2020-05-26  Tom Tromey  <tromey@adacore.com>
10153         * ada-lang.c (ada_print_array_index): Change type.  Call val_atr.
10154         (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10155         (val_atr): New function.
10156         (value_val_atr): Use it.
10157         * ada-valprint.c (print_optional_low_bound): Change low bound
10158         handling for enums.
10159         (val_print_packed_array_elements): Don't call discrete_position.
10160         * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10161         discrete_position for enum types.
10162         * language.c (default_print_array_index): Change type.
10163         * language.h (struct language_defn) <la_print_array_index>: Add
10164         index_type parameter, change type of index_value.
10165         (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10166         (default_print_array_index): Update.
10167         * valprint.c (maybe_print_array_index): Don't call
10168         value_from_longest.  Update.
10169         (value_print_array_elements): Don't call discrete_position.
10171 2020-05-26  Tom Tromey  <tromey@adacore.com>
10173         * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10174         * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10176 2020-05-25  Cristiano De Alti  <cristiano_dealti@hotmail.com>
10178         PR gdb/13519
10179         * avr-tdep.c (avr_integer_to_address): Return data or code
10180         address accordingly to the second 'type' argument of the
10181         function.
10183 2020-05-25  Michael Weghorn  <m.weghorn@posteo.de>
10185         * infcmd.c, inferior.h: (construct_inferior_arguments):
10186         Moved function from here to gdbsupport/common-inferior.{h,cc}
10188 2020-05-23  Tom Tromey  <tom@tromey.com>
10190         Revert commit eca1f90c:
10191         * NEWS: Remove entry for completion styling.
10192         * completer.c (_rl_completion_prefix_display_length): Move
10193         declaration later.
10194         (gdb_fnprint): Revert.
10195         (gdb_display_match_list_1): Likewise.
10196         * cli/cli-style.c (completion_prefix_style)
10197         (completion_difference_style, completion_suffix_style): Remove.
10198         (_initialize_cli_style): Revert.
10199         * cli/cli-style.h (completion_prefix_style)
10200         (completion_difference_style, completion_suffix_style): Don't
10201         declare.
10203 2020-05-24  Pedro Alves  <palves@redhat.com>
10205         * symtab.c (completion_list_add_name): Return boolean indication
10206         of whether the symbol matched.
10207         (completion_list_add_symbol): Don't try to remove C++ aliases if
10208         the symbol didn't match in the first place.
10209         * symtab.h (completion_list_add_name): Return bool.
10211 2020-05-23  Simon Marchi  <simon.marchi@polymtl.ca>
10213         * gdbtypes.h (TYPE_FIELD): Remove.  Replace all uses with
10214         type::field.
10216 2020-05-23  Joel Brobecker  <brobecker@adacore.com>
10218         GDB 9.2 released.
10220 2020-05-23  Tom Tromey  <tom@tromey.com>
10222         * NEWS: Add entry for completion styling.
10223         * completer.c (_rl_completion_prefix_display_length): Move
10224         declaration earlier.
10225         (gdb_fnprint): Use completion_style.
10226         (gdb_display_match_list_1): Likewise.
10227         * cli/cli-style.c (completion_prefix_style)
10228         (completion_difference_style, completion_suffix_style): New
10229         globals.
10230         (_initialize_cli_style): Register new globals.
10231         * cli/cli-style.h (completion_prefix_style)
10232         (completion_difference_style, completion_suffix_style): Declare.
10234 2020-05-23  Pedro Alves  <palves@redhat.com>
10236         * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10237         (parse_escape): Use ISDIGIT instead of isdigit.
10238         (puts_debug): Use gdb_isprint instead of isprint.
10239         (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10240         (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10241         ISSPACE instead of isspace.
10242         (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10243         instead of isspace.
10244         (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10245         (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10246         instead of isxdigit and ISDIGIT instead of isdigit.
10248 2020-05-22  Simon Marchi  <simon.marchi@efficios.com>
10250         * gdbtypes.h (struct type) <field>: New method.
10251         (TYPE_FIELDS): Remove, replace all uses with either type::fields
10252         or type::field.
10254 2020-05-22  Simon Marchi  <simon.marchi@efficios.com>
10256         * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10257         (TYPE_FIELDS): Use type::fields.  Change all call sites that
10258         modify the propery to use type::set_fields instead.
10260 2020-05-22  Simon Marchi  <simon.marchi@efficios.com>
10262         * gdbtypes.h (TYPE_NFIELDS): Remove.  Change all cal sites to use
10263         type::num_fields instead.
10265 2020-05-22  Simon Marchi  <simon.marchi@efficios.com>
10267         * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10268         methods.
10269         (TYPE_NFIELDS): Use type::num_fields.  Change all call sites
10270         that modify the number of fields to use type::set_num_fields
10271         instead.
10273 2020-05-22  Tom Tromey  <tromey@adacore.com>
10275         * compile/compile-object-load.h (munmap_list_free): Don't
10276         declare.
10278 2020-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
10280         * annotate.c (annotate_source_line): Update return type, add call
10281         to update current symtab and line.
10282         * annotate.h (annotate_source_line): Update return type, and
10283         extend header comment.
10284         * source.c (info_line_command): Check annotation_level before
10285         calling annotate_source_line.
10286         * stack.c (print_frame_info): If calling annotate_source_line
10287         returns true, then don't print any other source line information.
10289 2020-05-21  Simon Marchi  <simon.marchi@efficios.com>
10291         * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10293 2020-05-21  Simon Marchi  <simon.marchi@efficios.com>
10295         * coffread.c (patch_type): Remove NULL check before xfree.
10296         * corefile.c (set_gnutarget): Likewise.
10297         * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10298         * exec.c (build_section_table): Likewise.
10299         * remote.c (remote_target::pass_signals): Likewise.
10300         * utils.c (n_spaces): Likewise.
10301         * cli/cli-script.c (document_command): Likewise.
10302         * i386-windows-tdep.c (core_process_module_section): Likewise.
10303         * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10305 2020-05-20  Simon Marchi  <simon.marchi@efficios.com>
10307         * symfile.c (reread_symbols): Clear objfile's section_offsets
10308         vector and section indices, re-compute them by calling
10309         sym_offsets.
10311 2020-05-20  Tom Tromey  <tromey@adacore.com>
10313         * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10314         (desc_one_bound, desc_index_type): Compute field name.
10316 2020-05-20  Tom de Vries  <tdevries@suse.de>
10318         PR symtab/25833
10319         * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10321 2020-05-20  Alan Modra  <amodra@gmail.com>
10323         PR 25993
10324         * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10325         bfd_set_filename.
10326         * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10327         passed to bfd_set_filename.
10328         * symfile-mem.c (add_vsyscall_page): Likewise for string
10329         passed to symbol_file_add_from_memory.
10330         (symbol_file_add_from_memory): Make name param a const char* and
10331         don't strdup.
10333 2020-05-20  Alan Modra  <amodra@gmail.com>
10335         * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10336         rather than accessing bfd->filename directly.
10337         * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10338         and use bfd_section_name.
10339         * dwarf2/frame.c (decode_frame_entry): Likewise.
10340         * exec.c (exec_set_section_address): Likewise.
10341         * solib-aix.c (solib_aix_bfd_open): Likewise.
10342         * stap-probe.c (get_stap_base_address): Likewise.
10343         * symfile.c (reread_symbols): Likewise.
10345 2020-05-19  Tom Tromey  <tromey@adacore.com>
10347         * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10349 2020-05-19  Simon Marchi  <simon.marchi@efficios.com>
10351         * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10353 2020-05-19  Pedro Alves  <palves@redhat.com>
10355         * NEWS (set exec-file-mismatch): Adjust entry.
10356         * exec.c: Include "build-id.h".
10357         (validate_exec_file): Try to match build IDs instead of filenames.
10358         * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10359         (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10360         and pass down 'warn_if_slow'.
10361         (gdb_bfd_open): Add 'warn_if_slow' parameter.  Use
10362         gdb_bfd_open_closure to pass it down.
10363         * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10365 2020-05-19  Pedro Alves  <palves@redhat.com>
10367         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10368         * target.c (target_fileio_open_1): Rename to target_fileio_open
10369         and make extern.  Use bool.
10370         (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10371         (target_fileio_read_alloc_1): Adjust.
10372         * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10373         (target_fileio_open_warn_if_slow): Delete declaration.
10375 2020-05-19  Pedro Alves  <palves@redhat.com>
10377         * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10378         Adjust all callers.
10380 2020-05-19  Yoshinori Sato  <ysato@users.sourceforge.jp>
10382         * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10383         whether disp is negative.
10385 2020-05-19  Simon Marchi  <simon.marchi@efficios.com>
10387         * symfile.h (struct symfile_segment_data)
10388         <~symfile_segment_data>: Remove.
10389         <segment_info>: Change to std::vector.
10390         * symfile.c (default_symfile_segments): Update.
10391         * elfread.c (elf_symfile_segments): Update.
10393 2020-05-19  Simon Marchi  <simon.marchi@efficios.com>
10395         * symfile.h (struct symfile_segment_data) <struct segment>: New.
10396         <segments>: New.
10397         <segment_bases, segment_sizes>: Remove.
10398         * symfile.c (default_symfile_segments): Update.
10399         * elfread.c (elf_symfile_segments): Update.
10400         * remote.c (remote_target::get_offsets): Update.
10401         * solib-target.c (solib_target_relocate_section_addresses):
10402         Update.
10404 2020-05-19  Simon Marchi  <simon.marchi@efficios.com>
10406         * symfile.h (struct symfile_segment_data): Initialize fields.
10407         <~symfile_segment_data>: Add.
10408         (symfile_segment_data_up): New.
10409         (struct sym_fns) <sym_segments>: Return a
10410         symfile_segment_data_up.
10411         (default_symfile_segments): Return a symfile_segment_data_up.
10412         (free_symfile_segment_data): Remove.
10413         (get_symfile_segment_data): Return a symfile_segment_data_up.
10414         * symfile.c (default_symfile_segments): Likewise.
10415         (get_symfile_segment_data): Likewise.
10416         (free_symfile_segment_data): Remove.
10417         (symfile_find_segment_sections): Update.
10418         * elfread.c (elf_symfile_segments): Return a
10419         symfile_segment_data_up.
10420         * remote.c (remote_target::get_offsets): Update.
10421         * solib-target.c (solib_target_relocate_section_addresses):
10422         Update.
10423         * symfile-debug.c (debug_sym_segments): Return a
10424         symfile_segment_data_up.
10426 2020-05-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10428         PR build/25981
10429         * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10430         Hardcode register numbers.
10432         PR build/25981
10433         * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10434         procfs_find_LDT_entry): Remove.
10435         * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10436         procfs_find_LDT_entry): Remove.
10437         * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10438         Remove.
10440 2020-05-17  Pedro Alves  <palves@redhat.com>
10441             Andrew Burgess  <andrew.burgess@embecosm.com>
10442             Keno Fischer  <keno@juliacomputing.com>
10444         PR gdb/25741
10445         * breakpoint.c (build_target_condition_list): Update comments.
10446         (build_target_command_list): Update comments and skip matching
10447         locations.
10448         (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10449         a separate function.  Simplify "set breakpoint auto-hw off"
10450         handling.
10451         (insert_breakpoints): Update comment.
10452         (tracepoint_locations_match): New parameter.  For breakpoints,
10453         compare location types too, if the caller wants to.
10454         (handle_automatic_hardware_breakpoints): New functions.
10455         (bp_location_is_less_than): Also sort by location type and
10456         hardware breakpoint length.
10457         (update_global_location_list): Handle "set breakpoint auto-hw on"
10458         here.
10459         (update_breakpoint_locations): Ask breakpoint_locations_match to
10460         ignore location types.
10462 2020-05-16  Simon Marchi  <simon.marchi@efficios.com>
10464         * gdbtypes.h (TYPE_NAME): Remove.  Change all cal sites to use
10465         type::name instead.
10467 2020-05-16  Simon Marchi  <simon.marchi@efficios.com>
10469         * gdbtypes.h (struct type) <name, set_name>: New methods.
10470         (TYPE_CODE): Use type::name.  Change all call sites used to set
10471         the name to use type::set_name instead.
10473 2020-05-16  Tom Tromey  <tom@tromey.com>
10475         * top.c (quit_force): Update.
10476         * infrun.c (handle_no_resumed): Update.
10477         * top.h (all_uis): New function.
10478         (ALL_UIS): Remove.
10480 2020-05-16  Simon Marchi  <simon.marchi@efficios.com>
10482         * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10484 2020-05-16  Pedro Alves  <palves@redhat.com>
10486         * ia64-linux-nat.c
10487         (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10488         Declare method.
10489         (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10491 2020-05-15  Simon Marchi  <simon.marchi@efficios.com>
10493         * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10494         (sparc64_adi_info): Likewise.
10496 2020-05-15  Tom Tromey  <tom@tromey.com>
10498         * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10499         block_objfile.
10500         (lookup_objfile_from_block): Remove.
10501         (lookup_symbol_in_block, lookup_symbol_in_static_block)
10502         (lookup_global_symbol): Use block_objfile.
10503         * symtab.h (lookup_objfile_from_block): Don't declare.
10504         * printcmd.c (clear_dangling_display_expressions): Use
10505         block_objfile.
10506         * parse.c (operator_check_standard): Use block_objfile.
10508 2020-05-15  Tom Tromey  <tom@tromey.com>
10510         * language.c (language_alloc_type_symbol): Set
10511         SYMBOL_SECTION.
10512         * symtab.c (initialize_objfile_symbol): Remove.
10513         (allocate_symbol): Remove.
10514         (allocate_template_symbol): Remove.
10515         * dwarf2/read.c (fixup_go_packaging): Use "new".
10516         (new_symbol): Use "new".
10517         (read_variable): Don't call initialize_objfile_symbol.  Use
10518         "new".
10519         (read_func_scope): Use "new".
10520         * xcoffread.c (process_xcoff_symbol): Don't call
10521         initialize_objfile_symbol.
10522         (SYMBOL_DUP): Remove.
10523         * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10524         "new".
10525         * symtab.h (allocate_symbol, initialize_objfile_symbol)
10526         (allocate_template_symbol): Don't declare.
10527         (struct symbol): Add copy constructor.  Change defaults.
10528         * jit.c (finalize_symtab): Use "new".
10529         * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10530         Use "new".
10531         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10532         (common_block_end): Use "new".
10533         * mdebugread.c (parse_symbol): Use "new".
10534         (new_symbol): Likewise.
10536 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10538         * NEWS: Mention changes to help and apropos.
10540 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10542         * command.h (enum command_class): Improve comments, document
10543         that class_alias is for user-defined aliases, give the class
10544         name for each class, remove unused class_xdb.
10545         * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10546         * breakpoint.c (_initialize_breakpoint): Replace class_alias
10547         by a precise class.
10548         * infcmd.c (_initialize_infcmd): Likewise.
10549         * reverse.c (_initialize_reverse): Likewise.
10550         * stack.c (_initialize_stack): Likewise.
10551         * symfile.c (_initialize_symfile): Likewise.
10552         * tracepoint.c (_initialize_tracepoint): Likewise.
10554 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10556         * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10557         when their aliased command is traversed.
10558         (help_cmd): Add fput_command_names_styled call to
10559         output command name and aliases when command has an alias.
10561 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10563         * cli/cli-decode.h (help_cmd_list): Remove declaration.
10564         * cli/cli-decode.c (help_cmd_list): Declare as static,
10565         remove prefix argument, use bool for recurse arg, rework to show the aliases of
10566         a command together with the command.
10567         (fput_command_name_styled, fput_command_names_styled): New functions.
10568         (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10569         fput_command_name_styled.
10570         (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10571         * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10573 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10575         * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10576         * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10577         * command.h (cmd_show_list): Likewise.
10578         * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10579         * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output.  Skip aliases.
10581 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10583         * unittests/command-def-selftests.c (traverse_command_structure):
10584         Verify all commands of a list have the same prefix command and
10585         that only the top cmdlist commands have a null prefix.
10587 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10589         * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10590         as prefix, not one of its aliases.
10591         (set_cmd_prefix): Remove.
10592         (do_add_cmd): Centralize the setting of the prefix of a command, when
10593         command is defined after its full chain of prefix commands.
10594         (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10595         (add_setshow_cmd_full): Likewise.
10596         (update_prefix_field_of_prefixed_commands): New function.
10597         (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10598         update_prefix_field_of_prefixed_commands.
10599         * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10600         addresses of remote_set_cmdlist and remote_show_cmdlist given
10601         as argument, not the address of an argument.
10602         * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10603         * gdb/remote.c (_initialize_remote): Likewise.
10605 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10607         * cli/cli-cmds.c (alias_command): Check for an existing alias
10608         using lookup_cmd_composition, as valid_command_p is too strict
10609         and forbids aliases that are the prefix of an existing alias
10610         or command.
10611         * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10612         command is properly recognised as a valid command.
10614 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10616         * unittests/help-doc-selftests.c: Rename to
10617         unittests/command-def-selftests.c
10618         * unittests/command-def-selftests.c (help_doc_tests): Update some
10619         comments.
10620         (command_structure_tests, traverse_command_structure): New namespace
10621         and function.
10622         (command_structure_invariants_tests): New function.
10623         (_initialize_command_def_selftests) Renamed from
10624         _initialize_help_doc_selftests, register command_structure_invariants
10625         selftest.
10627 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10629         * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10630         an alias of 'show'.
10632 2020-05-15  Joel Brobecker  <brobecker@adacore.com>
10634         * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10635         ada_is_fixed_point_type.  Update all callers.
10636         (gnat_encoded_fixed_point_delta): Renames ada_delta.  Update
10637         all callers.
10638         * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10639         Update all callers.
10640         * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10641         print_fixed_point_type.  Update all callers.
10642         * ada-valprint.c (ada_value_print_num): Replace call to
10643         ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10645 2020-05-14  Kevin Buettner  <kevinb@redhat.com>
10647         * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10648         processors.
10649         (cpu_supports_bts): Add CV_AMD case.
10651 2020-05-14  Laurent Morichetti  <Laurent.Morichetti@amd.com>
10652             Simon Marchi  <simon.marchi@efficios.com>
10654         * infrun.c (stop_all_threads): Collect multiple wait events at
10655         each pass.
10657 2020-05-14  Simon Marchi  <simon.marchi@efficios.com>
10659         * gdbtypes.h (TYPE_CODE): Remove.  Change all call sites to use
10660         type::code instead.
10662 2020-05-14  Simon Marchi  <simon.marchi@efficios.com>
10664         * gdbtypes.h (struct type) <code, set_code>: New methods.
10665         (TYPE_CODE): Use type::code.  Change all call sites used to set
10666         the code to use type::set_code instead.
10668 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
10669             Tom de Vries  <tdevries@suse.de>
10670             Pedro Alves  <palves@redhat.com>
10672         PR threads/25478
10673         * infrun.c (stop_all_threads): Do NOT ignore
10674         TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10675         TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10676         received.
10677         (handle_no_resumed): Remove code handling a live inferior with no
10678         threads.
10679         * remote.c (has_single_non_exited_thread): New.
10680         (remote_target::update_thread_list): Do not delete a thread if is
10681         the last thread of the process.
10682         * thread.c (thread_select): Call delete_exited_threads instead of
10683         prune_threads.
10685 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
10687         * infrun.c (stop_all_threads): Enable/disable thread events of all
10688         targets.  Move a debug message denoting the end of the function
10689         into the SCOPED_EXIT block.
10691 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
10693         * process-stratum-target.h: Include <set>.
10694         (all_non_exited_process_targets, switch_to_target_no_thread): New
10695         function declarations.
10696         * process-stratum-target.c (all_non_exited_process_targets)
10697         (switch_to_target_no_thread): New function implementations.
10699 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
10701         * infrun.c (handle_inferior_event): Extract out a piece of code
10702         into...
10703         (mark_non_executing_threads): ...this new function.
10705 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
10707         * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10708         use.
10710 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
10712         * regcache.c (regcache_read_pc_protected): New function
10713         implementation that returns 0 if the PC cannot read via
10714         'regcache_read_pc'.
10715         * infrun.c (proceed): Call 'regcache_read_pc_protected'
10716         instead of 'regcache_read_pc'.
10717         (keep_going_pass_signal): Ditto.
10719 2020-05-13  Tom Tromey  <tromey@adacore.com>
10721         * ada-lang.c (align_value): Remove.
10722         (ada_template_to_fixed_record_type_1): Use align_up.
10724 2020-05-13  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
10726         * async-event.c: Update the copyright year.
10727         * async-event.h: Update the copyright year.
10729 2020-05-12  Simon Marchi  <simon.marchi@efficios.com>
10731         * objfiles.h (is_addr_in_objfile,
10732         shared_objfile_contains_address_p): Return bool.
10733         * objfile.c (is_addr_in_objfile,
10734         shared_objfile_contains_address_p): Return bool.
10736 2020-05-11  Tom Tromey  <tromey@adacore.com>
10738         * cli/cli-cmds.c (info_command): Restore.
10739         (_initialize_cli_cmds): Use add_prefix_command for "info".
10740         * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10742 2020-05-11  Tom Tromey  <tromey@adacore.com>
10744         * ada-lang.c (ada_value_primitive_field): Now public.
10745         * ada-lang.h (ada_value_primitive_field): Declare.
10746         * ada-valprint.c (print_field_values): Use
10747         ada_value_primitive_field for wrapper fields.
10749 2020-05-11  Tom de Vries  <tdevries@suse.de>
10751         * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10752         MODULE_DOMAIN.
10754 2020-05-11  Tom de Vries  <tdevries@suse.de>
10756         PR symtab/25941
10757         * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10758         with length 0, if not gdb-produced.
10759         (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10761 2020-05-09  Tom de Vries  <tdevries@suse.de>
10763         PR gdb/25955
10764         * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10765         calculation.
10767 2020-05-09  Tom Tromey  <tom@tromey.com>
10769         * top.c (server_command): Now bool.
10770         * top.h (server_command): Now bool.
10772 2020-05-08  Tom Tromey  <tromey@adacore.com>
10774         * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10775         already being processed.
10777 2020-05-08  Tom Tromey  <tom@tromey.com>
10779         * printcmd.c (struct display) <next>: Remove.
10780         <display>: New constructor.
10781         <exp_string>: Now a std::string.
10782         <enabled_p>: Now a bool.
10783         (display_number): Move definition earlier.
10784         (displays): Rename from display_chain.  Now a std::vector.
10785         (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10786         (display_command): Update.
10787         (do_one_display, disable_display)
10788         (enable_disable_display_command, do_enable_disable_display):
10789         Update.
10790         (free_display): Remove.
10791         (clear_displays): Rewrite.
10792         (delete_display): Update.
10793         (map_display_numbers): Use function_view.  Remove "data"
10794         parameter.  Update.
10795         (do_delete_display): Remove.
10796         (undisplay_command): Update.
10797         (do_one_display, do_displays, disable_display)
10798         (info_display_command): Update.
10799         (do_enable_disable_display): Remove.
10800         (enable_disable_display_command)
10801         (clear_dangling_display_expressions): Update.
10803 2020-05-08  Tom Tromey  <tom@tromey.com>
10805         * symtab.c (set_symbol_cache_size)
10806         (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10807         (maintenance_print_symbol_cache_statistics): Update.
10808         * symmisc.c (print_symbol_bcache_statistics)
10809         (print_objfile_statistics, maintenance_print_objfiles)
10810         (maintenance_info_symtabs, maintenance_check_symtabs)
10811         (maintenance_expand_symtabs, maintenance_info_line_tables):
10812         Update.
10813         * symfile-debug.c (set_debug_symfile): Update.
10814         * source.c (forget_cached_source_info): Update.
10815         * python/python.c (gdbpy_progspaces): Update.
10816         * psymtab.c (maintenance_info_psymtabs): Update.
10817         * probe.c (parse_probes): Update.
10818         * linespec.c (iterate_over_all_matching_symtabs)
10819         (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10820         * guile/scm-progspace.c (gdbscm_progspaces): Update.
10821         * exec.c (exec_target::close): Update.
10822         * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10823         * breakpoint.c (print_one_breakpoint_location)
10824         (create_longjmp_master_breakpoint)
10825         (create_std_terminate_master_breakpoint): Update.
10826         * progspace.c (program_spaces): Now a std::vector.
10827         (maybe_new_address_space): Update.
10828         (add_program_space): Remove.
10829         (program_space::program_space): Update.
10830         (remove_program_space): Update.
10831         (number_of_program_spaces): Remove.
10832         (print_program_space, update_address_spaces): Update.
10833         * progspace.h (program_spaces): Change type.
10834         (ALL_PSPACES): Remove.
10835         (number_of_program_spaces): Don't declare.
10836         (struct program_space) <next>: Remove.
10838 2020-05-08  Tom Tromey  <tom@tromey.com>
10840         * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10841         * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10842         (enable_break): Update.
10843         * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10844         (frv_fdpic_find_canonical_descriptor): Update.
10845         (frv_fetch_objfile_link_map): Update.
10846         * progspace.c (program_space::free_all_objfiles): Update.
10847         (program_space::solibs): New method.
10848         * progspace.h (struct program_space) <solibs>: New method.
10849         * solist.h (master_so_list): Don't declare.
10850         (ALL_SO_LIBS): Remove.
10851         * solib.h (so_list_head): Remove.
10852         (update_solib_list): Update comment.
10853         * solib.c (master_so_list): Remove.
10854         (solib_used, update_solib_list, solib_add)
10855         (info_sharedlibrary_command, clear_solib)
10856         (reload_shared_libraries_1, remove_user_added_objfile): Update.
10858 2020-05-08  Tom Tromey  <tom@tromey.com>
10860         * extension.c (extension_languages): Now a std::array.
10861         (ALL_EXTENSION_LANGUAGES): Remove.
10862         (get_ext_lang_defn, get_ext_lang_of_file)
10863         (eval_ext_lang_from_control_command): Update.
10864         (finish_ext_lang_initialization)
10865         (auto_load_ext_lang_scripts_for_objfile)
10866         (ext_lang_type_printers::ext_lang_type_printers)
10867         (apply_ext_lang_type_printers)
10868         (ext_lang_type_printers::~ext_lang_type_printers)
10869         (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10870         (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10871         (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10872         (get_matching_xmethod_workers, ext_lang_colorize)
10873         (ext_lang_before_prompt): Update.
10874         (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10876 2020-05-08  Tom Tromey  <tom@tromey.com>
10878         * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10879         overload.
10880         <swap_string, m_string>: Remove.
10881         * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10882         Update.
10883         * stabsread.c (define_symbol, read_type): Update.
10884         * linespec.c (find_linespec_symbols): Update.
10885         * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10886         * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10887         * dbxread.c (read_dbx_symtab): Update.
10888         * cp-support.h (cp_canonicalize_string_full)
10889         (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10890         Return unique_xmalloc_ptr.
10891         * cp-support.c (inspect_type): Update.
10892         (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10893         (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10894         Likewise.
10895         * c-typeprint.c (print_name_maybe_canonical): Update.
10896         * break-catch-throw.c (check_status_exception_catchpoint):
10897         Update.
10899 2020-05-08  Tom de Vries  <tdevries@suse.de>
10901         * infrun.c (follow_fork): Copy current_line and current_symtab to
10902         child thread.
10904 2020-05-07  Simon Marchi  <simon.marchi@efficios.com>
10906         * async-event.c (struct async_signal_handler, struct
10907         async_event_handler): Reformat, remove typedef.
10909 2020-05-07  Simon Marchi  <simon.marchi@efficios.com>
10911         * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove.  Update all users
10912         access thistype->main_type->dyn_prop_list directly.
10914 2020-05-07  Simon Marchi  <simon.marchi@efficios.com>
10916         * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10917         (remove_dyn_prop): Remove.  Update all users to use
10918         type::remove_dyn_prop.
10919         * gdbtypes.c (remove_dyn_prop): Rename to...
10920         (type::remove_dyn_prop): ... this.
10922 2020-05-07  Simon Marchi via Gdb-patches  <gdb-patches@sourceware.org>
10924         * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10925         (add_dyn_prop): Remove.  Update all users to use
10926         type::add_dyn_prop.
10927         * gdbtypes.c (add_dyn_prop): Rename to...
10928         (type::add_dyn_prop): ... this.
10930 2020-05-07  Simon Marchi  <simon.marchi@efficios.com>
10932         * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10933         (get_dyn_prop): Remove.  Update all users to use
10934         type::dyn_prop.
10935         * gdbtypes.c (get_dyn_prop): Rename to...
10936         (type::dyn_prop): ... this.
10938 2020-05-06  Simon Marchi  <simon.marchi@efficios.com>
10940         * gdbtypes.h (struct main_type) <flag_static>: Remove.
10942 2020-05-06  Simon Marchi  <simon.marchi@efficios.com>
10944         * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10945         instruction, skip it if it's there.
10947 2020-05-05  Simon Marchi  <simon.marchi@efficios.com>
10949         * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10951 2020-05-04  Simon Marchi  <simon.marchi@efficios.com>
10953         * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10954         * gdbtypes.c (recursive_dump_type): Remove use of
10955         TYPE_INCOMPLETE.
10957 2020-05-03  Tom Tromey  <tom@tromey.com>
10959         * breakpoint.c (catch_command, tcatch_command): Remove.
10960         (_initialize_breakpoint): Use add_basic_prefix_cmd,
10961         add_show_prefix_cmd.
10962         (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10963         * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10964         Remove.
10965         (add_internal_problem_command): Use add_basic_prefix_cmd,
10966         add_show_prefix_cmd.
10967         * mips-tdep.c (set_mipsfpu_command): Remove.
10968         (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10969         * dwarf2/index-cache.c (set_index_cache_command): Remove.
10970         (_initialize_index_cache): Use add_basic_prefix_cmd.
10971         * memattr.c (dummy_cmd): Remove.
10972         (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10973         * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10974         (_initialize_tui_win): Use add_basic_prefix_cmd,
10975         add_show_prefix_cmd.
10976         * cli/cli-logging.c (set_logging_command): Remove.
10977         (_initialize_cli_logging): Use add_basic_prefix_cmd,
10978         add_show_prefix_cmd.
10979         (show_logging_command): Remove.
10980         * target.c (target_command): Remove.
10981         (add_target): Use add_basic_prefix_cmd.
10983 2020-05-02  Hannes Domani  <ssbssa@yahoo.de>
10985         * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10987 2020-05-01  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10989         * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10990         info_command.
10992 2020-04-30  Kamil Rytarowski  <n54@gmx.com>
10994         * nbsd-nat.c (nbsd_enable_proc_events)
10995         (nbsd_nat_target::post_startup_inferior): Add.
10996         (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10997         (nbsd_nat_target::update_thread_list): Rewrite.
10998         (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10999         "PTRACE_LWP_CREATE".
11000         * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11002 2020-04-30  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
11004         * stack.c (_initialize_stack): Remove duplicated creation
11005         of "frame" command and "f" alias.
11007 2020-04-30  Hannes Domani  <ssbssa@yahoo.de>
11009         PR gdb/18706
11010         * gdbtypes.c (check_typedef): Calculate size of array of
11011         stubbed type.
11013 2020-04-30  Hannes Domani  <ssbssa@yahoo.de>
11015         PR gdb/15559
11016         * i386-tdep.c (i386_push_dummy_call): Call
11017         i386_thiscall_push_dummy_call.
11018         (i386_thiscall_push_dummy_call): New function.
11019         * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11020         * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11021         (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11023 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
11025         * gdbarch.sh (do_read): Add shellcheck disable directive for
11026         warning SC2162.
11028 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
11030         * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11031         "referenced but not assigned" warning.
11033 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
11035         * gdbarch.sh: Remove code that sets fallbackdefault.
11037 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
11039         * gdbarch.sh: Use shell operators && and || instead of
11040         -a and -o.
11042 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
11044         * gdbarch.sh: Use $(...) instead of `...`.
11046 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
11048         * gdbarch.sh: Use double quotes around variables.
11050 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
11052         * gdbarch.sh: Use %s with printf, instead of variables in the
11053         format string.
11055 2020-04-29  Tom Tromey  <tromey@adacore.com>
11057         PR ada/25875:
11058         * dwarf2/read.c (update_enumeration_type_from_children): Compute
11059         type fields here.
11060         (read_enumeration_type): Call
11061         update_enumeration_type_from_children later.  Update comments.
11062         (process_enumeration_scope): Don't create type fields.
11064 2020-04-29  Kamil Rytarowski  <n54@gmx.com>
11066         * nbsd-tdep.c: Include "xml-syscall.h".
11067         (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11069 2020-04-29  Kamil Rytarowski  <n54@gmx.com>
11071         * nbsd-nat.c: Include "sys/wait.h".
11072         (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11073         (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11074         (nbsd_nat_target::remove_exec_catchpoint)
11075         (nbsd_nat_target::set_syscall_catchpoint): Add.
11076         * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11077         (nbsd_nat_target::insert_exec_catchpoint)
11078         (nbsd_nat_target::remove_exec_catchpoint)
11079         (nbsd_nat_target::set_syscall_catchpoint): Add.
11080         * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11081         (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11082         `nbsd_get_syscall_number'.
11084 2020-04-29  Tom Tromey  <tom@tromey.com>
11086         * stack.c (print_block_frame_labels): Remove.
11088 2020-04-29  Hannes Domani  <ssbssa@yahoo.de>
11090         PR gdb/17320
11091         * ada-valprint.c (val_print_packed_array_elements): Move array
11092         end bracket to new line.
11093         (ada_val_print_string): Remove extra spaces before first array
11094         element.
11095         * c-valprint.c (c_value_print_array): Likewise.
11096         * m2-valprint.c (m2_print_array_contents): Likewise.
11097         (m2_value_print_inner): Likewise.
11098         * p-valprint.c (pascal_value_print_inner): Likewise.
11099         * valprint.c (generic_val_print_array): Likewise.
11100         (value_print_array_elements): Move first array element and array
11101         end bracket to new line.
11103 2020-04-29  Tom de Vries  <tdevries@suse.de>
11105         PR symtab/25889
11106         * linespec.c (find_method): Fix ix calculation.
11108 2020-04-28  Kamil Rytarowski  <n54@gmx.com>
11110         * syscalls/update-netbsd.sh: New file.
11111         * syscalls/netbsd.xml: Regenerate.
11112         * data-directory/Makefile.in: Register `netbsd.xml' in
11113         `SYSCALLS_FILES'.
11115 2020-04-28  Simon Marchi  <simon.marchi@efficios.com>
11117         * syscalls/update-freebsd.sh: Add double quotes.
11119 2020-04-28  Tom Tromey  <tom@tromey.com>
11121         * NEWS: Update.
11122         * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11123         (cmdpy_init): Allow class_tui.
11125 2020-04-28 Mark Williams <mark@myosotissp.com>
11127         PR gdb/24480
11128         * dwarf2read.c: Add missing assingments to list_in_scope when
11129         start_symtab was already called.
11131 2020-04-28  Simon Marchi  <simon.marchi@efficios.com>
11133         PR gdb/25881
11134         * dwarf2/read.c (offset_map_type): Use
11135         gdb:hash_enum<sect_offset> as hash function.
11137 2020-04-28  Tom de Vries  <tdevries@suse.de>
11139         * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11140         with DW_AT_signature.
11142 2020-04-27  Simon Marchi  <simon.marchi@efficios.com>
11144         * configure.ac: Remove check for fs_base/gs_base in
11145         user_regs_struct.
11146         * configure: Re-generate.
11147         * config.in: Re-generate.
11148         * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11149         * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11150         amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11152 2020-04-27  Luis Machado  <luis.machado@linaro.org>
11154         * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11155         problematic inline frame unwinding situation.
11156         * frame.c (frame_id_computed_p): New function.
11157         * frame.h (frame_id_computed_p): New prototype.
11159 2020-04-26  Tom Tromey  <tom@tromey.com>
11161         * command.h (enum command_class) <class_pseudo>: Remove.
11163 2020-04-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
11165         * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11166         and whitespace.
11168 2020-04-25  Kamil Rytarowski  <n54@gmx.com>
11170         * inf-ptrace.c (inf_ptrace_target::wait): Remove
11171         `PT_GET_PROCESS_STATE' block.
11173 2020-04-24  Tom Tromey  <tom@tromey.com>
11175         * symtab.h (symbol_get_demangled_name): Don't declare.
11176         * symtab.c (symbol_get_demangled_name): Remove.
11177         (general_symbol_info::natural_name)
11178         (general_symbol_info::demangled_name): Update.
11180 2020-04-24  Tom Tromey  <tom@tromey.com>
11182         PR rust/25025:
11183         * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11185 2020-04-24  Tom Tromey  <tom@tromey.com>
11187         PR symtab/12707:
11188         * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11189         exists.
11190         (new_symbol): Likewise.
11191         * compile/compile-object-load.c (get_out_value_type): Use
11192         symbol_matches_search_name.
11194 2020-04-24  Tom Tromey  <tom@tromey.com>
11196         * dwarf2/read.c (add_partial_symbol): Do not call
11197         compute_and_set_names.
11199 2020-04-24  Tom Tromey  <tom@tromey.com>
11201         * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11202         overload.
11204 2020-04-24  Tom Tromey  <tom@tromey.com>
11206         * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11207         (add_psymbol_to_list): New overload.  Make old overload call new
11208         one.
11209         * psympriv.h (add_psymbol_to_list): New overload.
11211 2020-04-24  Tom Tromey  <tom@tromey.com>
11213         * dwarf2/read.c (partial_die_info::read) <case
11214         DW_AT_linkage_name>: Use value_as_string.
11215         (dwarf2_string_attr): Use value_as_string.
11216         * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11217         method.
11218         * dwarf2/attribute.c (attribute::value_as_string): New method.
11220 2020-04-24  Tom Tromey  <tom@tromey.com>
11222         * symtab.c (general_symbol_info::natural_name)
11223         (general_symbol_info::demangled_name): Check for language_rust.
11225 2020-04-24  Tom Tromey  <tom@tromey.com>
11227         * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11228         (dwarf2_physname): ... from here.
11229         (partial_die_info::read): Add Rust "{" hack.
11231 2020-04-24  Tom Tromey  <tom@tromey.com>
11233         * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11234         method.
11235         (symbol_set_demangled_name): Don't declare.
11236         * symtab.c (general_symbol_info::set_demangled_name): Rename from
11237         symbol_set_demangled_name.
11238         (general_symbol_info::set_language)
11239         (general_symbol_info::compute_and_set_names): Update.
11240         * minsyms.c (minimal_symbol_reader::install): Update.
11241         * dwarf2/read.c (new_symbol): Update.
11243 2020-04-24  Tom Tromey  <tromey@adacore.com>
11245         PR python/23662:
11246         * python/py-type.c (convert_field): Handle
11247         FIELD_LOC_KIND_DWARF_BLOCK.
11248         (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11249         (typy_get_dynamic): Nw function.
11250         (type_object_getset): Add "dynamic".
11251         * NEWS: Add entry.
11253 2020-04-24  Tom Tromey  <tromey@adacore.com>
11255         * ada-typeprint.c (print_choices, print_variant_part)
11256         (print_record_field_types_dynamic): New functions.
11257         (print_record_field_types): Use print_record_field_types_dynamic.
11259 2020-04-24  Tom Tromey  <tromey@adacore.com>
11261         * dwarf2/read.c (handle_data_member_location): New overload.
11262         (dwarf2_add_field): Use it.
11263         (decode_locdesc): Add "computed" parameter.  Update comment.
11264         * gdbtypes.c (is_dynamic_type_internal): Also look for
11265         FIELD_LOC_KIND_DWARF_BLOCK.
11266         (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11267         * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11268         virtual base classes.
11269         * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11270         FIELD_LOC_KIND_DWARF_BLOCK.
11272 2020-04-24  Tom Tromey  <tromey@adacore.com>
11274         * dwarf2/read.c (read_structure_type): Handle dynamic length.
11275         * gdbtypes.c (is_dynamic_type_internal): Check
11276         TYPE_HAS_DYNAMIC_LENGTH.
11277         (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11278         * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11279         New macros.
11280         (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11281         constant.
11283 2020-04-24  Tom Tromey  <tromey@adacore.com>
11285         * dwarf2/read.c (struct variant_field): Rewrite.
11286         (struct variant_part_builder): New.
11287         (struct nextfield): Remove "variant" field.  Add "offset".
11288         (struct field_info): Add "current_variant_part" and
11289         "variant_parts".
11290         (alloc_discriminant_info): Remove.
11291         (alloc_rust_variant): New function.
11292         (quirk_rust_enum): Update.
11293         (dwarf2_add_field): Set "offset" member.  Don't handle
11294         DW_TAG_variant_part.
11295         (offset_map_type): New typedef.
11296         (convert_variant_range, create_one_variant)
11297         (create_one_variant_part, create_variant_parts)
11298         (add_variant_property): New functions.
11299         (dwarf2_attach_fields_to_type): Call add_variant_property.
11300         (read_structure_type): Don't handle DW_TAG_variant_part.
11301         (handle_variant_part, handle_variant): New functions.
11302         (handle_struct_member_die): Use them.
11303         (process_structure_scope): Don't handle variant parts.
11304         * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11305         (struct discriminant_info): Remove.
11306         (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11307         (struct main_type) <flag_discriminated_union>: Remove.
11308         * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11309         (rust_enum_variant): Return int.  Remove "contents".  Rewrite.
11310         (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11311         Update.
11312         * valops.c (value_union_variant): Remove.
11313         * value.h (value_union_variant): Don't declare.
11315 2020-04-24  Tom Tromey  <tromey@adacore.com>
11317         * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11318         (ada_value_primitive_packed_val): Update.
11319         * ada-valprint.c (ada_value_print_1): Update.
11320         * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11321         (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11322         just an address.  Use evaluate_for_locexpr_baton.
11323         (dwarf2_evaluate_property): Update.
11324         * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11325         array_view.
11326         * findvar.c (default_read_var_value): Update.
11327         * gdbtypes.c (compute_variant_fields_inner)
11328         (resolve_dynamic_type_internal): Update.
11329         (resolve_dynamic_type): Change type of valaddr parameter.
11330         * gdbtypes.h (resolve_dynamic_type): Update.
11331         * valarith.c (value_subscripted_rvalue): Update.
11332         * value.c (value_from_contents_and_address): Update.
11334 2020-04-24  Tom Tromey  <tromey@adacore.com>
11336         * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11337         "push_initial_value" parameter.
11338         (dwarf2_evaluate_property): Likewise.
11339         * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11341 2020-04-24  Tom Tromey  <tromey@adacore.com>
11343         * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11344         (variant::matches, compute_variant_fields_recurse)
11345         (compute_variant_fields_inner, compute_variant_fields): New
11346         functions.
11347         (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11348         Use resolved_type after type is made.
11349         (operator==): Add new cases.
11350         * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11351         (struct discriminant_range, struct variant, struct variant_part):
11352         New.
11353         (union dynamic_prop_data) <variant_parts, original_type>: New
11354         members.
11355         (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11356         (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11357         constants.
11358         * value.c (unpack_bits_as_long): Now public.
11359         * value.h (unpack_bits_as_long): Declare.
11361 2020-04-24  Tom Tromey  <tromey@adacore.com>
11363         * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11364         (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11366 2020-04-24  Hannes Domani  <ssbssa@yahoo.de>
11368         * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11370 2020-04-24  Kamil Rytarowski  <n54@gmx.com>
11372         * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11373         (remove_fork_catchpoint, post_startup_inferior)
11374         (post_attach): Move...
11375         * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11376         (remove_fork_catchpoint, post_startup_inferior)
11377         (post_attach): ...here.
11378         * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11379         (remove_fork_catchpoint, post_startup_inferior)
11380         (post_attach): Move...
11381         * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11382         (remove_fork_catchpoint, post_startup_inferior)
11383         (post_attach): ...here.
11385 2020-04-24  Tom Tromey  <tromey@adacore.com>
11387         * nat/windows-nat.h (struct windows_thread_info)
11388         <pc_adjusted>: New member.
11389         * windows-nat.c (windows_fetch_one_register): Check
11390         pc_adjusted.
11391         (windows_nat_target::get_windows_debug_event)
11392         (windows_nat_target::wait): Set pc_adjusted.
11394 2020-04-24  Tom de Vries  <tdevries@suse.de>
11396         * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11397         Run gdb-add-index inside temp dir.
11399 2020-04-23  Tom Tromey  <tromey@adacore.com>
11401         * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11402         in loop.
11404 2020-04-23  Luis Machado  <luis.machado@linaro.org>
11406         * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11407         get_frame_register instead of gdbarch_unwind_pc.
11409 2020-04-23  Tom de Vries  <tdevries@suse.de>
11411         * symtab.c (lookup_global_symbol): Prefer def over decl.
11413 2020-04-23  Tom de Vries  <tdevries@suse.de>
11415         PR symtab/25807
11416         * block.c (best_symbol, better_symbol): Promote to external.
11417         * block.h (best_symbol, better_symbol): Declare.
11418         * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11419         decl.
11421 2020-04-23  Tom Tromey  <tromey@adacore.com>
11423         PR ada/25837:
11424         * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11425         "const char *", not a "const std::string &".
11426         <name_and_matcher::operator==>: Update.
11427         * unittests/lookup_name_info-selftests.c: Change type of
11428         "result".
11430 2020-04-23  Tom Tromey  <tom@tromey.com>
11432         * inferior.h (iterate_over_inferiors): Don't declare.
11433         * inferior.c (iterate_over_inferiors): Remove.
11434         * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11435         Remove.
11436         (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11437         use iterate_over_inferiors.
11438         (darwin_resume_inferior_it)
11439         (struct resume_inferior_threads_param)
11440         (darwin_resume_inferior_threads_it): Remove.
11441         (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11443 2020-04-23  Tom de Vries  <tdevries@suse.de>
11445         * blockframe.c (find_pc_partial_function): Use
11446         find_pc_sect_compunit_symtab rather than
11447         objfile->sf->qf->find_pc_sect_compunit_symtab.
11449 2020-04-22  Tom de Vries  <tdevries@suse.de>
11451         PR symtab/25764
11452         * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11453         in psymtabs.
11455 2020-04-22  Tom de Vries  <tdevries@suse.de>
11457         PR symtab/25801
11458         * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11459         symtabs.
11461 2020-04-22  Tom de Vries  <tdevries@suse.de>
11463         PR symtab/25700
11464         * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11465         CU if already created.
11467 2020-04-21  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
11469         * infrun.c (displaced_step_fixup): Switch to the event_thread
11470         before calling displaced_step_restore, not after.
11472 2020-04-21  Markus Metzger  <markus.t.metzger@intel.com>
11474         * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11475         its inferior is not recorded by us.
11476         (record_btrace_target_open): Replace call to
11477         all_non_exited_threads () with call to current_inferior
11478         ()->non_exited_threads ().
11479         (record_btrace_target::stop_recording): Likewise.
11480         (record_btrace_target::close): Likewise.
11481         (record_btrace_target::wait): Likewise.
11482         (record_btrace_target::record_stop_replaying): Likewise.
11484 2020-04-21  Markus Metzger  <markus.t.metzger@intel.com>
11486         * btrace.c (btrace_enable): Throw an error on double enables and
11487         when enabling recording fails.
11488         (btrace_disable): Throw an error if the thread is not recorded.
11490 2020-04-21  Markus Metzger  <markus.t.metzger@intel.com>
11492         * record-btrace.c (record_btrace_target::fetch_registers): Forward
11493         request if we do not have a thread_info.
11495 2020-04-21  Tom de Vries  <tdevries@suse.de>
11497         PR gdb/25471
11498         * thread.c
11499         (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11500         exception in get_frame_id.
11502 2020-04-20  Tom Tromey  <tromey@adacore.com>
11504         * python/python.c (struct gdbpy_event): Mark move constructor as
11505         noexcept.
11506         * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11507         constructor as noexcept.
11508         * completer.h (struct completion_result): Mark move constructor as
11509         noexcept.
11510         * completer.c (completion_result::completion_result): Use
11511         initialization style.  Don't call reset_match_list.
11513 2020-04-20  Mihails Strasuns  <mihails.strasuns@intel.com>
11515         * MAINTAINERS (Write After Approval): Add myself.
11517 2020-04-18  Tom Tromey  <tom@tromey.com>
11519         * windows-tdep.c (init_w32_command_list)
11520         (w32_prefix_command_valid): Restore.
11521         (_initialize_windows_tdep): Call init_w32_command_list.
11523 2020-04-18  Tom Tromey  <tom@tromey.com>
11525         * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11526         * value.c (value_fn_field): Update.
11527         * valops.c (find_function_in_inferior)
11528         (value_allocate_space_in_inferior): Update.
11529         * tui/tui-winsource.c (tui_update_source_windows_with_line):
11530         Update.
11531         * tui/tui-source.c (tui_source_window::set_contents): Update.
11532         * symtab.c (lookup_global_or_static_symbol)
11533         (find_function_start_sal_1, skip_prologue_sal)
11534         (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11535         * symmisc.c (dump_msymbols, dump_symtab_1)
11536         (maintenance_print_one_line_table): Update.
11537         * symfile.c (init_entry_point_info, section_is_mapped)
11538         (list_overlays_command, simple_read_overlay_table)
11539         (simple_overlay_update_1): Update.
11540         * stap-probe.c (handle_stap_probe): Update.
11541         * stabsread.c (dbx_init_float_type, define_symbol)
11542         (read_one_struct_field, read_enum_type, read_range_type): Update.
11543         * source.c (info_line_command): Update.
11544         * python/python.c (gdbpy_source_objfile_script)
11545         (gdbpy_execute_objfile_script): Update.
11546         * python/py-type.c (save_objfile_types): Update.
11547         * python/py-objfile.c (py_free_objfile): Update.
11548         * python/py-inferior.c (python_new_objfile): Update.
11549         * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11550         (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11551         (maintenance_check_psymtabs): Update.
11552         * printcmd.c (info_address_command): Update.
11553         * objfiles.h (struct objfile) <arch>: New method, from
11554         get_objfile_arch.
11555         (get_objfile_arch): Don't declare.
11556         * objfiles.c (get_objfile_arch): Remove.
11557         (filter_overlapping_sections): Update.
11558         * minsyms.c (msymbol_is_function): Update.
11559         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11560         (output_nondebug_symbol): Update.
11561         * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11562         (mdebug_expand_psymtab): Update.
11563         * machoread.c (macho_add_oso_symfile): Update.
11564         * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11565         Update.
11566         * linux-fork.c (checkpoint_command): Update.
11567         * linespec.c (convert_linespec_to_sals): Update.
11568         * jit.c (finalize_symtab): Update.
11569         * infrun.c (insert_exception_resume_from_probe): Update.
11570         * ia64-tdep.c (ia64_find_unwind_table): Update.
11571         * hppa-tdep.c (internalize_unwinds): Update.
11572         * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11573         Update.
11574         * gcore.c (call_target_sbrk): Update.
11575         * elfread.c (record_minimal_symbol, elf_symtab_read)
11576         (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11577         (elf_gnu_ifunc_resolve_by_got): Update.
11578         * dwarf2/read.c (create_addrmap_from_index)
11579         (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11580         (read_debug_names_from_section)
11581         (process_psymtab_comp_unit_reader, add_partial_symbol)
11582         (add_partial_subprogram, process_full_comp_unit)
11583         (read_file_scope, read_func_scope, read_lexical_block_scope)
11584         (read_call_site_scope, dwarf2_ranges_read)
11585         (dwarf2_record_block_ranges, dwarf2_add_field)
11586         (mark_common_block_symbol_computed, read_tag_pointer_type)
11587         (read_tag_string_type, dwarf2_init_float_type)
11588         (dwarf2_init_complex_target_type, read_base_type)
11589         (partial_die_info::read, partial_die_info::read)
11590         (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11591         (dwarf2_fetch_die_loc_sect_off): Update.
11592         * dwarf2/loc.c (dwarf2_find_location_expression)
11593         (class dwarf_evaluate_loc_desc, rw_pieced_value)
11594         (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11595         (dwarf2_loc_desc_get_symbol_read_needs)
11596         (locexpr_describe_location_piece, locexpr_describe_location_1)
11597         (loclist_describe_location): Update.
11598         * dwarf2/index-write.c (write_debug_names): Update.
11599         * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11600         * dtrace-probe.c (dtrace_process_dof): Update.
11601         * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11602         (process_one_symbol): Update.
11603         * ctfread.c (ctf_init_float_type, read_base_type): Update.
11604         * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11605         (coff_read_enum_type): Update.
11606         * cli/cli-cmds.c (edit_command, list_command): Update.
11607         * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11608         * breakpoint.c (create_overlay_event_breakpoint)
11609         (create_longjmp_master_breakpoint)
11610         (create_std_terminate_master_breakpoint)
11611         (create_exception_master_breakpoint, get_sal_arch): Update.
11612         * block.c (block_gdbarch): Update.
11613         * annotate.c (annotate_source_line): Update.
11615 2020-04-17  Tom Tromey  <tromey@adacore.com>
11617         * auto-load.c (show_auto_load_cmd): Remove.
11618         (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11619         * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11620         (maintenance_print_arc_command): Remove.
11621         * tui/tui-win.c (tui_command): Remove.
11622         (tui_get_cmd_list): Use add_basic_prefix_cmd.
11623         * tui/tui-layout.c (tui_layout_command): Remove.
11624         (_initialize_tui_layout): Use add_basic_prefix_cmd.
11625         * python/python.c (user_set_python, user_show_python): Remove.
11626         (_initialize_python): Use add_basic_prefix_cmd,
11627         add_show_prefix_cmd.
11628         * guile/guile.c (set_guile_command, show_guile_command): Remove.
11629         (install_gdb_commands): Use add_basic_prefix_cmd,
11630         add_show_prefix_cmd.
11631         (info_guile_command): Remove.
11632         * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11633         (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11634         add_show_prefix_cmd.
11635         * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11636         Remove do_set and do_show parameters.
11637         * cli/cli-style.c (set_style, show_style): Remove.
11638         (_initialize_cli_style): Use add_basic_prefix_cmd,
11639         add_show_prefix_cmd.
11640         (cli_style_option::add_setshow_commands): Remove do_set and
11641         do_show parameters.
11642         (cli_style_option::add_setshow_commands): Use
11643         add_basic_prefix_cmd, add_show_prefix_cmd.
11644         (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11645         (set_style_name): Remove.
11646         * cli/cli-dump.c (dump_command, append_command): Remove.
11647         (srec_dump_command, ihex_dump_command, verilog_dump_command)
11648         (tekhex_dump_command, binary_dump_command)
11649         (binary_append_command): Remove.
11650         (_initialize_cli_dump): Use add_basic_prefix_cmd.
11651         * windows-tdep.c (w32_prefix_command_valid): Remove global.
11652         (init_w32_command_list): Remove; move into ...
11653         (_initialize_windows_tdep): ... here.  Use add_basic_prefix_cmd.
11654         * valprint.c (set_print, show_print, set_print_raw)
11655         (show_print_raw): Remove.
11656         (_initialize_valprint): Use add_basic_prefix_cmd,
11657         add_show_prefix_cmd.
11658         * typeprint.c (set_print_type, show_print_type): Remove.
11659         (_initialize_typeprint): Use add_basic_prefix_cmd,
11660         add_show_prefix_cmd.
11661         * record.c (set_record_command, show_record_command): Remove.
11662         (_initialize_record): Use add_basic_prefix_cmd,
11663         add_show_prefix_cmd.
11664         * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11665         add_show_prefix_cmd.
11666         (info_command, show_command, set_debug, show_debug): Remove.
11667         * top.h (set_history, show_history): Don't declare.
11668         * top.c (set_history, show_history): Remove.
11669         * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11670         (unset_tdesc_cmd): Remove.
11671         (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11672         add_show_prefix_cmd.
11673         * symtab.c (info_module_command): Remove.
11674         (_initialize_symtab): Use add_basic_prefix_cmd.
11675         * symfile.c (overlay_command): Remove.
11676         (_initialize_symfile): Use add_basic_prefix_cmd.
11677         * sparc64-tdep.c (info_adi_command): Remove.
11678         (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11679         * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11680         (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11681         add_show_prefix_cmd.
11682         * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11683         (_initialize_serial): Use add_basic_prefix_cmd,
11684         add_show_prefix_cmd.
11685         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11686         (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11687         add_show_prefix_cmd.
11688         * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11689         (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11690         add_show_prefix_cmd.
11691         * riscv-tdep.c (show_riscv_command, set_riscv_command)
11692         (show_debug_riscv_command, set_debug_riscv_command): Remove.
11693         (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11694         add_show_prefix_cmd.
11695         * remote.c (remote_command, set_remote_cmd): Remove.
11696         (_initialize_remote): Use add_basic_prefix_cmd.
11697         * record-full.c (set_record_full_command)
11698         (show_record_full_command): Remove.
11699         (_initialize_record_full): Use add_basic_prefix_cmd,
11700         add_show_prefix_cmd.
11701         * record-btrace.c (cmd_set_record_btrace)
11702         (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11703         (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11704         (cmd_show_record_btrace_pt): Remove.
11705         (_initialize_record_btrace): Use add_basic_prefix_cmd,
11706         add_show_prefix_cmd.
11707         * ravenscar-thread.c (set_ravenscar_command)
11708         (show_ravenscar_command): Remove.
11709         (_initialize_ravenscar): Use add_basic_prefix_cmd,
11710         add_show_prefix_cmd.
11711         * mips-tdep.c (show_mips_command, set_mips_command)
11712         (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11713         add_show_prefix_cmd.
11714         * maint.c (maintenance_command, maintenance_info_command)
11715         (maintenance_check_command, maintenance_print_command)
11716         (maintenance_set_cmd, maintenance_show_cmd): Remove.
11717         (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11718         add_show_prefix_cmd.
11719         (show_per_command_cmd): Remove.
11720         * maint-test-settings.c (maintenance_set_test_settings_cmd):
11721         Remove.
11722         (maintenance_show_test_settings_cmd): Remove.
11723         (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11724         add_show_prefix_cmd.
11725         * maint-test-options.c (maintenance_test_options_command):
11726         Remove.
11727         (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11728         * macrocmd.c (macro_command): Remove
11729         (_initialize_macrocmd): Use add_basic_prefix_cmd.
11730         * language.c (set_check, show_check): Remove.
11731         (_initialize_language): Use add_basic_prefix_cmd,
11732         add_show_prefix_cmd.
11733         * infcmd.c (unset_command): Remove.
11734         (_initialize_infcmd): Use add_basic_prefix_cmd.
11735         * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11736         (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11737         add_show_prefix_cmd.
11738         * go32-nat.c (go32_info_dos_command): Remove.
11739         (_initialize_go32_nat): Use add_basic_prefix_cmd.
11740         * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11741         (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11742         * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11743         (_initialize_frame): Use add_basic_prefix_cmd,
11744         add_show_prefix_cmd.
11745         * dcache.c (set_dcache_command, show_dcache_command): Remove.
11746         (_initialize_dcache): Use add_basic_prefix_cmd,
11747         add_show_prefix_cmd.
11748         * cp-support.c (maint_cplus_command): Remove.
11749         (_initialize_cp_support): Use add_basic_prefix_cmd.
11750         * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11751         (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11752         (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11753         add_basic_prefix_cmd, add_show_prefix_cmd.
11754         * breakpoint.c (save_command): Remove.
11755         (_initialize_breakpoint): Use add_basic_prefix_cmd.
11756         * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11757         (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11758         add_show_prefix_cmd.
11759         * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11760         (set_ada_command, show_ada_command): Remove.
11761         (_initialize_ada_language): Use add_basic_prefix_cmd,
11762         add_show_prefix_cmd.
11763         * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11765 2020-04-16  Kamil Rytarowski  <n54@gmx.com>
11767         * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11768         * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11770 2020-04-16  Simon Marchi  <simon.marchi@polymtl.ca>
11772         * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11773         warning messages.
11775 2020-04-16  Simon Marchi  <simon.marchi@polymtl.ca>
11777         * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11778         import table is not at beginning of .idata section.
11780 2020-04-16  Pedro Alves  <palves@redhat.com>
11782         * inferior.c (delete_inferior): Use delete operator directly
11783         instead of delete_program_space.
11784         * progspace.c (add_program_space): New, factored out from
11785         program_space::program_space.
11786         (remove_program_space): New, factored out from
11787         delete_program_space.
11788         (program_space::program_space): Remove intro comment.  Rewrite.
11789         (program_space::~program_space): Remove intro comment.  Call
11790         remove_program_space.
11791         (delete_program_space): Delete.
11792         * progspace.h (program_space::program_space): Make explicit.  Move
11793         intro comment here, adjusted.
11794         (program_space::~program_space): Move intro comment here,
11795         adjusted.
11796         (delete_program_space): Remove.
11798 2020-04-16  Tom Tromey  <tromey@adacore.com>
11800         * windows-nat.c (windows_nat::handle_access_violation): New
11801         function.
11802         * nat/windows-nat.h (handle_access_violation): Declare.
11803         * nat/windows-nat.c (handle_exception): Move Cygwin code to
11804         windows-nat.c.  Call handle_access_violation.
11806 2020-04-16  Tom de Vries  <tdevries@suse.de>
11808         PR symtab/25791
11809         * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11810         CUs without psymtab.
11812 2020-04-16  Kevin Buettner  <kevinb@redhat.com>
11814         * python/python.c (do_start_initialization): Don't call
11815         PyEval_InitThreads for Python 3.9 and beyond.
11817 2020-04-15  Kamil Rytarowski  <n54@gmx.com>
11819         * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11820         thread functions.
11821         (obsd_nat_target::wait): Likewise.
11823 2020-04-15  Tom Tromey  <tromey@adacore.com>
11825         * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11826         (DEBUG_EXCEPT): Use debug_printf.
11828 2020-04-15  Andrew Burgess  <andrew.burgess@embecosm.com>
11830         * completer.c (class completion_tracker::completion_hash_entry)
11831         <hash_name>: New member function.
11832         (completion_tracker::discard_completions): New callback to hash a
11833         completion_hash_entry, pass this to htab_create_alloc.
11835 2016-01-20  Jon Turney  <jon.turney@dronecode.org.uk>
11837         * windows-nat.c (windows_make_so): Warn rather than stopping with
11838         an error if realpath() fails.
11840 2020-04-14  Kamil Rytarowski  <n54@gmx.com>
11842         * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11843         (nbsd_nat_target::info_proc): Add do_status.
11845 2020-04-14  Simon Marchi  <simon.marchi@polymtl.ca>
11846             Tom de Vries  <tdevries@suse.de>
11848         PR symtab/25718
11849         * psympriv.h (struct partial_symtab::read_symtab)
11850         (struct partial_symtab::expand_psymtab)
11851         (struct partial_symtab::read_dependencies): Update comments.
11852         * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11853         read_symtab for includer.
11854         (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11855         (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11856         (struct dwarf2_include_psymtab::m_readin): Remove.
11857         (struct dwarf2_include_psymtab::includer): New member function.
11858         (dwarf2_psymtab::expand_psymtab): Assert !readin.
11860 2020-04-14  Tom de Vries  <tdevries@suse.de>
11862         PR symtab/25720
11863         * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11864         with NULL symbol_matcher and lookup_name.
11865         * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11866         and lookup_name.
11867         * dwarf2/read.c (dw2_expand_symtabs_matching)
11868         (dw2_debug_names_expand_symtabs_matching): Same.
11869         * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11870         Make lookup_name a pointer.  Update comment.
11871         * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11872         lookup_name being a pointer.
11873         * symfile.c (expand_symtabs_matching): Same.
11874         * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11875         * linespec.c (iterate_over_all_matching_symtabs): Same.
11877 2020-04-13  Tom Tromey  <tom@tromey.com>
11879         * run-on-main-thread.c: Update include.
11880         * unittests/main-thread-selftests.c: Update include.
11881         * tui/tui-win.c: Update include.
11882         * tui/tui-io.c: Update include.
11883         * tui/tui-interp.c: Update include.
11884         * tui/tui-hooks.c: Update include.
11885         * top.h: Update include.
11886         * top.c: Update include.
11887         * ser-base.c: Update include.
11888         * remote.c: Update include.
11889         * remote-notif.c: Update include.
11890         * remote-fileio.c: Update include.
11891         * record-full.c: Update include.
11892         * record-btrace.c: Update include.
11893         * python/python.c: Update include.
11894         * posix-hdep.c: Update include.
11895         * mingw-hdep.c: Update include.
11896         * mi/mi-main.c: Update include.
11897         * mi/mi-interp.c: Update include.
11898         * main.c: Update include.
11899         * linux-nat.c: Update include.
11900         * interps.c: Update include.
11901         * infrun.c: Update include.
11902         * inf-loop.c: Update include.
11903         * event-top.c: Update include.
11904         * event-loop.c: Move to ../gdbsupport/.
11905         * event-loop.h: Move to ../gdbsupport/.
11906         * async-event.h: Update include.
11907         * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11909 2020-04-13  Tom Tromey  <tom@tromey.com>
11911         * tui/tui-win.c: Include async-event.h.
11912         * remote.c: Include async-event.h.
11913         * remote-notif.c: Include async-event.h.
11914         * record-full.c: Include async-event.h.
11915         * record-btrace.c: Include async-event.h.
11916         * infrun.c: Include async-event.h.
11917         * event-top.c: Include async-event.h.
11918         * event-loop.h: Move some declarations to async-event.h.
11919         * event-loop.c: Don't include ser-event.h or top.h.  Move some
11920         code to async-event.c.
11921         * async-event.h: New file.
11922         * async-event.c: New file.
11923         * Makefile.in (COMMON_SFILES): Add async-event.c.
11924         (HFILES_NO_SRCDIR): Add async-event.h.
11926 2020-04-13  Tom Tromey  <tom@tromey.com>
11928         * utils.c (flush_streams): New function.
11929         * event-loop.c (gdb_wait_for_event): Call flush_streams.
11931 2020-04-13  Tom Tromey  <tom@tromey.com>
11933         * event-loop.c (handle_file_event): Use warning, not
11934         printf_unfiltered.
11936 2020-04-13  Tom Tromey  <tom@tromey.com>
11938         * event-loop.c: Include <chrono>.
11940 2020-04-13  Tom Tromey  <tom@tromey.com>
11942         * gdb_select.h: Move to ../gdbsupport/.
11943         * event-loop.c: Update include path.
11944         * top.c: Update include path.
11945         * ser-base.c: Update include path.
11946         * ui-file.c: Update include path.
11947         * ser-tcp.c: Update include path.
11948         * guile/scm-ports.c: Update include path.
11949         * posix-hdep.c: Update include path.
11950         * ser-unix.c: Update include path.
11951         * gdb_usleep.c: Update include path.
11952         * mingw-hdep.c: Update include path.
11953         * inflow.c: Update include path.
11954         * infrun.c: Update include path.
11955         * event-top.c: Update include path.
11957 2020-04-13  Tom Tromey  <tom@tromey.com>
11959         * configure: Rebuild.
11960         * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11962 2020-04-13  Tom Tromey  <tom@tromey.com>
11964         * event-loop.h (start_event_loop): Don't declare.
11965         * event-loop.c (start_event_loop): Move...
11966         * main.c (start_event_loop): ...here.  Now static.
11968 2020-04-13  Sergio Durigan Junior  <sergiodj@sergiodj.net>
11970         * MAINTAINERS: Update my email address.
11972 2020-04-12  Kamil Rytarowski  <n54@gmx.com>
11974         * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11975         IP_ALL.
11977 2020-04-12  Kamil Rytarowski  <n54@gmx.com>
11979         * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11980         (nbsd_nat_target::info_proc): Add do_cmdline.
11982 2020-04-12  Kamil Rytarowski  <n54@gmx.com>
11984         * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11985         (nbsd_nat_target::info_proc): Add do_cwd.
11987 2020-04-12  Kamil Rytarowski  <n54@gmx.com>
11989         * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11991 2020-04-11  Kamil Rytarowski  <n54@gmx.com>
11993         * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11994         * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11995         (nbsd_nat_target::info_proc): New functions.
11996         * nbsd-nat.c (kinfo_get_vmmap): New function.
11997         * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11998         nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11999         * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12000         (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12001         functions.
12002         * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12003         (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12004         (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12005         (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12006         (KINFO_VME_FLAG_GROWS_DOWN): New.
12008 2020-04-10  Artur Shepilko  <nomadbyte@gmail.com>
12010         * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12011         bit shift.
12013 2020-04-10  Tom Tromey  <tromey@adacore.com>
12015         * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12017 2020-04-10  Tom Tromey  <tromey@adacore.com>
12019         * symtab.c (get_symbol_address, get_msymbol_address): Skip
12020         separate debug files.
12022 2020-04-10  Hannes Domani  <ssbssa@yahoo.de>
12024         * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12025         Move to...
12026         * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12027         ... here.
12028         * windows-nat.c (windows_nat_target::get_windows_debug_event):
12029         Check for STATUS_WX86_BREAKPOINT.
12030         (windows_nat_target::wait): Same.
12032 2020-04-10  Tom de Vries  <tdevries@suse.de>
12034         PR cli/25808
12035         * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12037 2020-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
12039         * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12040         (Write After Approval): Remove Tom de Vries.
12042 2020-04-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12044         revert partially:
12045         2020-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12047         * buildsym.c (record_line): Fix undefined behavior and preserve
12048         lines at eof.
12050 2020-04-09  Kamil Rytarowski  <n54@gmx.com>
12052         * auxv.h (svr4_auxv_parse): New.
12053         * auxv.c (default_auxv_parse): Split into default_auxv_parse
12054         and generic_auxv_parse.
12055         (svr4_auxv_parse): Add.
12056         * obsd-tdep.c: Include "auxv.h".
12057         (obsd_auxv_parse): Remove.
12058         (obsd_init_abi): Remove comment.
12059         (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12060         from `obsd_auxv_parse' to `svr4_auxv_parse'.
12061         * nbsd-tdep.c: Include "auxv.h".
12062         (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12064 2020-04-08  Tom Tromey  <tromey@adacore.com>
12066         * nat/windows-nat.h (last_wait_event): Don't declare.
12067         (wait_for_debug_event): Update comment.
12068         * nat/windows-nat.c (last_wait_event): Now static.
12070 2020-04-08  Tom Tromey  <tromey@adacore.com>
12072         * windows-nat.c (wait_for_debug_event): Move to
12073         nat/windows-nat.c.
12074         * nat/windows-nat.h (wait_for_debug_event): Declare.
12075         * nat/windows-nat.c (wait_for_debug_event): Move from
12076         windows-nat.c.  No longer static.
12078 2020-04-08  Tom Tromey  <tromey@adacore.com>
12080         * windows-nat.c (get_windows_debug_event): Use
12081         fetch_pending_stop.
12082         * nat/windows-nat.h (fetch_pending_stop): Declare.
12083         * nat/windows-nat.c (fetch_pending_stop): New function.
12085 2020-04-08  Tom Tromey  <tromey@adacore.com>
12087         * windows-nat.c (windows_continue): Use matching_pending_stop and
12088         continue_last_debug_event.
12089         * nat/windows-nat.h (matching_pending_stop)
12090         (continue_last_debug_event): Declare.
12091         * nat/windows-nat.c (DEBUG_EVENTS): New define.
12092         (matching_pending_stop, continue_last_debug_event): New
12093         functions.
12095 2020-04-08  Tom Tromey  <tromey@adacore.com>
12097         * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12098         (handle_exception_result): Move to nat/windows-nat.h.
12099         (DEBUG_EXCEPTION_SIMPLE): Remove.
12100         (windows_nat::handle_ms_vc_exception): New function.
12101         (handle_exception): Move to nat/windows-nat.c.
12102         (get_windows_debug_event): Update.
12103         (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12104         nat/windows-nat.c.
12105         * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12106         (handle_exception_result): Move from windows-nat.c.
12107         (handle_exception): Declare.
12108         * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12109         (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12110         windows-nat.c.
12112 2020-04-08  Tom Tromey  <tromey@adacore.com>
12114         * windows-nat.c (exception_count, event_count): Remove.
12115         (handle_exception, get_windows_debug_event)
12116         (do_initial_windows_stuff): Update.
12118 2020-04-08  Tom Tromey  <tromey@adacore.com>
12120         * windows-nat.c (windows_nat::handle_load_dll)
12121         (windows_nat::handle_unload_dll): Rename.  No longer static.
12122         * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12123         Declare.
12125 2020-04-08  Tom Tromey  <tromey@adacore.com>
12127         * complaints.h (stop_whining): Declare at top-level.
12128         (complaint): Don't declare stop_whining.
12130 2020-04-08  Tom Tromey  <tromey@adacore.com>
12132         * windows-nat.c (windows_nat::handle_output_debug_string):
12133         Rename.  No longer static.
12134         * nat/windows-nat.h (handle_output_debug_string): Declare.
12136 2020-04-08  Tom Tromey  <tromey@adacore.com>
12138         * windows-nat.c (current_process_handle, current_process_id)
12139         (main_thread_id, last_sig, current_event, last_wait_event)
12140         (current_windows_thread, desired_stop_thread_id, pending_stops)
12141         (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12142         (display_selectors, fake_create_process)
12143         (get_windows_debug_event): Update.
12144         * nat/windows-nat.h (current_process_handle, current_process_id)
12145         (main_thread_id, last_sig, current_event, last_wait_event)
12146         (current_windows_thread, desired_stop_thread_id, pending_stops)
12147         (struct pending_stop, siginfo_er): Move from windows-nat.c.
12148         * nat/windows-nat.c (current_process_handle, current_process_id)
12149         (main_thread_id, last_sig, current_event, last_wait_event)
12150         (current_windows_thread, desired_stop_thread_id, pending_stops)
12151         (siginfo_er): New globals.  Move from windows-nat.c.
12153 2020-04-08  Tom Tromey  <tromey@adacore.com>
12155         * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12156         (handle_load_dll): Update.
12157         * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12159 2020-04-08  Tom Tromey  <tromey@adacore.com>
12161         * windows-nat.c (enum thread_disposition_type): Move to
12162         nat/windows-nat.h.
12163         (windows_nat::thread_rec): Rename from thread_rec.  No longer
12164         static.
12165         (windows_add_thread, windows_nat_target::fetch_registers)
12166         (windows_nat_target::store_registers, handle_exception)
12167         (windows_nat_target::resume, get_windows_debug_event)
12168         (windows_nat_target::get_tib_address)
12169         (windows_nat_target::thread_name)
12170         (windows_nat_target::thread_alive): Update.
12171         * nat/windows-nat.h (enum thread_disposition_type): Move from
12172         windows-nat.c.
12173         (thread_rec): Declare.
12175 2020-04-08  Tom Tromey  <tromey@adacore.com>
12177         * windows-nat.c: Add "using namespace".
12178         * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12179         * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12181 2020-04-08  Tom Tromey  <tromey@adacore.com>
12183         * nat/windows-nat.h (struct windows_thread_info): Declare
12184         destructor.
12185         * nat/windows-nat.c (~windows_thread_info): New.
12187 2020-04-08  Tom Tromey  <tromey@adacore.com>
12189         PR gdb/22992
12190         * windows-nat.c (current_event): Update comment.
12191         (last_wait_event, desired_stop_thread_id): New globals.
12192         (struct pending_stop): New.
12193         (pending_stops): New global.
12194         (windows_nat_target) <stopped_by_sw_breakpoint>
12195         <supports_stopped_by_sw_breakpoint>: New methods.
12196         (windows_fetch_one_register): Add assertions.  Adjust PC.
12197         (windows_continue): Handle pending stops.  Suspend other threads
12198         when stepping.  Use last_wait_event
12199         (wait_for_debug_event): New function.
12200         (get_windows_debug_event): Use wait_for_debug_event.  Handle
12201         pending stops.  Queue spurious stops.
12202         (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12203         (windows_nat_target::kill): Use wait_for_debug_event.
12204         * nat/windows-nat.h (struct windows_thread_info)
12205         <stopped_at_software_breakpoint>: New field.
12206         * nat/windows-nat.c (windows_thread_info::resume): Clear
12207         stopped_at_software_breakpoint.
12209 2020-04-08  Tom Tromey  <tromey@adacore.com>
12211         * windows-nat.c (enum thread_disposition_type): New.
12212         (thread_rec): Replace "get_context" parameter with "disposition";
12213         change type.
12214         (windows_add_thread, windows_nat_target::fetch_registers)
12215         (windows_nat_target::store_registers, handle_exception)
12216         (windows_nat_target::resume, get_windows_debug_event)
12217         (windows_nat_target::get_tib_address)
12218         (windows_nat_target::thread_name)
12219         (windows_nat_target::thread_alive): Update.
12221 2020-04-08  Tom Tromey  <tromey@adacore.com>
12223         * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12224         (windows_continue): Use windows_continue::resume.
12225         * nat/windows-nat.h (struct windows_thread_info) <suspend,
12226         resume>: Declare new methods.
12227         * nat/windows-nat.c: New file.
12228         * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12230 2020-04-08  Tom Tromey  <tromey@adacore.com>
12232         * windows-nat.c (windows_add_thread, windows_delete_thread)
12233         (windows_nat_target::fetch_registers)
12234         (windows_nat_target::store_registers, fake_create_process)
12235         (windows_nat_target::resume, windows_nat_target::resume)
12236         (get_windows_debug_event, windows_nat_target::wait)
12237         (windows_nat_target::pid_to_str)
12238         (windows_nat_target::get_tib_address)
12239         (windows_nat_target::get_ada_task_ptid)
12240         (windows_nat_target::thread_name)
12241         (windows_nat_target::thread_alive): Use lwp, not tid.
12243 2020-04-08  Tom Tromey  <tromey@adacore.com>
12245         * windows-nat.c (handle_exception)
12246         (windows_nat_target::thread_name): Update.
12247         * nat/windows-nat.h (windows_thread_info): Remove destructor.
12248         <name>: Now unique_xmalloc_ptr.
12250 2020-04-08  Tom Tromey  <tromey@adacore.com>
12252         * windows-nat.c (thread_rec)
12253         (windows_nat_target::fetch_registers): Update.
12254         * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12255         Update comment.
12256         <debug_registers_changed, reload_context>: Now bool.
12258 2020-04-08  Tom Tromey  <tromey@adacore.com>
12260         * windows-nat.c (windows_add_thread): Use new.
12261         (windows_init_thread_list, windows_delete_thread): Use delete.
12262         (get_windows_debug_event): Update.
12263         * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12264         destructor, and initializers.
12266 2020-04-08  Tom Tromey  <tromey@adacore.com>
12268         * windows-nat.c (struct windows_thread_info): Remove.
12269         * nat/windows-nat.h: New file.
12271 2020-04-08  Tom Tromey  <tromey@adacore.com>
12273         * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12274         (thread_rec, windows_add_thread, windows_delete_thread)
12275         (windows_continue): Update.
12277 2020-04-08  Tom Tromey  <tromey@adacore.com>
12279         * windows-nat.c (struct windows_thread_info): Remove typedef.
12280         (thread_head): Remove.
12281         (thread_list): New global.
12282         (thread_rec, windows_add_thread, windows_init_thread_list)
12283         (windows_delete_thread, windows_continue): Update.
12285 2020-04-08  Simon Marchi  <simon.marchi@polymtl.ca>
12287         * windows-tdep.h (windows_init_abi): Add comment.
12288         (cygwin_init_abi): New declaration.
12289         * windows-tdep.c: Split signal enumeration in two, one for
12290         Windows and one for Cygwin.
12291         (windows_gdb_signal_to_target): Only deal with signal of the
12292         Windows OS ABI.
12293         (cygwin_gdb_signal_to_target): New function.
12294         (windows_init_abi): Rename to windows_init_abi_common, don't set
12295         gdb_signal_to_target gdbarch method.  Add new new function with
12296         this name.
12297         (cygwin_init_abi): New function.
12298         * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12299         comment.  Don't call windows_init_abi.
12300         (amd64_windows_init_abi): Add comment, call windows_init_abi.
12301         (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12302         * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12303         i386_windows_init_abi_common, don't call windows_init_abi.  Add
12304         a new function of this name.
12305         (i386_cygwin_init_abi): New function.
12306         (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12307         OS ABI Cygwin.
12309 2020-04-08  Simon Marchi  <simon.marchi@polymtl.ca>
12311         * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12312         parameter.c.
12313         (dwarf2_read_gdb_index): Update.
12315 2020-04-07  Kamil Rytarowski  <n54@gmx.com>
12317         * nbsd-tdep.c: Include "objfiles.h".
12318         (nbsd_skip_solib_resolver): New.
12319         (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12321 2020-04-07  Nitika Achra  <Nitika.Achra@amd.com>
12323         * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12324         addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12325         with DW_LLE_base_addressx are being emitted in DWARFv5.
12326         Add the newly added kind DW_LOC_OFFSET_PAIR also.
12327         The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12328         unsigned integer.
12330 2020-04-07  Nitika Achra  <Nitika.Achra@amd.com>
12332         * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12333         (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12334         addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12335         with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12336         Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12337         (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12338         DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12341 2020-04-07  Nitika Achra  <Nitika.Achra@amd.com>
12343         * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12344         (read_loclist_index): New function definition.
12345         (lookup_loclist_base): New function definition.
12346         (read_loclist_header): New function definition.
12347         (dwarf2_cu): Add loclist_base and loclist_header field.
12348         (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12349         (read_full_die_1): Read the value of DW_AT_loclists_base.
12350         (read_attribute_reprocess): Handle DW_FORM_loclistx.
12351         (read_attribute_value): Handle DW_FORM_loclistx.
12352         (skip_one_die): Handle DW_FORM_loclistx.
12353         (loclist_header): New structure declaration.
12354         * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12356 2020-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
12358         * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12359         constructor.  Remove `addr` parameter from other constructor and
12360         add `per_cu` parameter.
12361         * dwarf2/read.c (create_partial_symtab): Update.
12363 2020-04-07  Tom de Vries  <tdevries@suse.de>
12365         PR symtab/25796
12366         * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12367         (partial_die_info::fixup): Inherit has_const_value.
12369 2020-04-07  Tom de Vries  <tdevries@suse.de>
12371         * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12372         symbols without address.
12374 2020-04-06  Kamil Rytarowski  <n54@gmx.com>
12376         * nbsd-nat.h (struct thread_info): Add forward declaration.
12377         (nbsd_nat_target::thread_alive): Add.
12378         (nbsd_nat_target::thread_name): Likewise.
12379         (nbsd_nat_target::update_thread_list): Likewise.
12380         (update_thread_list::post_attach): Likewise.
12381         (post_attach::pid_to_str): Likewise.
12382         * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12383         (nbsd_thread_lister): Add.
12384         (nbsd_nat_target::thread_alive): Likewise.
12385         (nbsd_nat_target::thread_name): Likewise.
12386         (nbsd_add_threads): Likewise.
12387         (update_thread_list::post_attach): Likewise.
12388         (nbsd_nat_target::update_thread_list): Likewise.
12389         (post_attach::pid_to_str): Likewise.
12391 2020-04-06  Tom Tromey  <tromey@adacore.com>
12393         * ada-valprint.c (print_variant_part): Extract the variant field.
12394         (print_field_values): Use the field as the outer value when
12395         recursing.
12397 2020-04-06  Tom Tromey  <tromey@adacore.com>
12399         * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12400         * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12401         * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12402         * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12403         * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12405 2020-04-06  Tom Tromey  <tromey@adacore.com>
12407         * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12408         TYPE_CODE_ERROR.
12410 2020-04-06  Kamil Rytarowski  <n54@gmx.com>
12412         * nbsd-tdep.c: Include "gdbarch.h".
12413         Define enum with NetBSD signal numbers.
12414         (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12415         * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12416         * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12417         * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12418         * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12419         * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12420         * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12421         * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12422         * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12423         * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12424         * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12425         * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12427 2020-04-03  Hannes Domani  <ssbssa@yahoo.de>
12429         PR gdb/25325
12430         * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12432 2020-04-03  Tom Tromey  <tromey@adacore.com>
12434         * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12435         Read constant block.
12437 2020-04-02  Simon Marchi  <simon.marchi@polymtl.ca>
12439         * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12440         (gdb_bfd_get_full_section_contents): New declaration.
12441         * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12442         * windows-tdep.c (is_linked_with_cygwin_dll): Use
12443         gdb_bfd_get_full_section_contents.
12445 2020-04-02  Simon Marchi  <simon.marchi@polymtl.ca>
12447         * exec.c (build_section_table): Replace internal_error with
12448         gdb_assert.
12449         (section_table_xfer_memory_partial): Likewise.
12450         * mdebugread.c (parse_partial_symbols): Likewise.
12451         * psymtab.c (lookup_partial_symbol): Likewise.
12452         * utils.c (wrap_here): Likewise.
12454 2020-04-02  Tom Tromey  <tromey@adacore.com>
12456         * f-lang.c (build_fortran_types): Use arch_type to initialize
12457         builtin_complex_s32 in the TYPE_CODE_ERROR case.
12459 2020-04-02  Tom Tromey  <tromey@adacore.com>
12461         * dwarf2/read.c (partial_die_info::read): Do not create a vector
12462         of attributes.
12464 2020-04-02  Andrew Burgess  <andrew.burgess@embecosm.com>
12465             Bernd Edlinger <bernd.edlinger@hotmail.de>
12466             Tom Tromey  <tromey@adacore.com>
12468         * buildsym.c (buildsym_compunit::record_line): Remove
12469         deduplication code.
12471 2020-04-02  Tom de Vries  <tdevries@suse.de>
12473         PR ada/24671
12474         * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12476 2020-04-02  Tom de Vries  <tdevries@suse.de>
12478         * dwarf2/read.c (dwarf2_gdb_index_functions,
12479         dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12480         NULL.
12481         * psymtab.c (psym_lookup_global_symbol_language): New function.
12482         (psym_functions): Init psym_lookup_global_symbol_language with
12483         psym_lookup_global_symbol_language.
12484         * symfile-debug.c (debug_sym_quick_functions): Init
12485         lookup_global_symbol_language with NULL.
12486         * symfile.c (set_initial_language): Remove fixme comment.
12487         * symfile.h (struct quick_symbol_functions): Add
12488         lookup_global_symbol_language.
12489         * symtab.c (find_quick_global_symbol_language): New function.
12490         (find_main_name): Use find_quick_global_symbol_language.
12492 2020-04-01  Simon Marchi  <simon.marchi@polymtl.ca>
12494         * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12496 2020-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12498         * buildsym.c (record_line): Fix undefined behavior and preserve
12499         lines at eof.
12501 2020-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12503         * buildsym.c (record_line): Fix the resizing condition.
12505 2020-04-01  Tom Tromey  <tom@tromey.com>
12507         * value.h (value_literal_complex): Add comment.
12508         * valops.c (value_literal_complex): Refer to value.h.
12510 2020-04-01  Tom Tromey  <tom@tromey.com>
12512         * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12513         (scalar_type): New rule, from typebase.
12514         (typebase): Use scalar_type.  Recognize complex types.
12515         (field_name): Handle FLOAT_KEYWORD.
12516         (ident_tokens): Add _Complex and __complex__.
12518 2020-04-01  Tom Tromey  <tom@tromey.com>
12520         PR exp/25299:
12521         * valarith.c (promotion_type, complex_binop): New functions.
12522         (scalar_binop): Handle complex numbers.  Use promotion_type.
12523         (value_pos, value_neg, value_complement): Handle complex numbers.
12525 2020-04-01  Tom Tromey  <tom@tromey.com>
12527         * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12528         (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12529         (parse_number): Handle complex numbers.
12531 2020-04-01  Tom Tromey  <tom@tromey.com>
12533         * c-valprint.c (c_decorations): Change complex suffix to "i".
12535 2020-04-01  Tom Tromey  <tom@tromey.com>
12537         * valprint.c (generic_value_print_complex): Use accessors.
12538         * value.h (value_real_part, value_imaginary_part): Declare.
12539         * valops.c (value_real_part, value_imaginary_part): New
12540         functions.
12541         * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12543 2020-04-01  Tom Tromey  <tom@tromey.com>
12545         * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12546         (read_range_type): Update.
12547         * mdebugread.c (basic_type): Update.
12548         * go-lang.c (build_go_types): Use init_complex_type.
12549         * gdbtypes.h (struct main_type) <complex_type>: New member.
12550         (init_complex_type): Update.
12551         (arch_complex_type): Don't declare.
12552         * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12553         Make name if none given.  Use alloc_type_copy.  Look for cached
12554         complex type.
12555         (arch_complex_type): Remove.
12556         (gdbtypes_post_init): Use init_complex_type.
12557         * f-lang.c (build_fortran_types): Use init_complex_type.
12558         * dwarf2/read.c (read_base_type): Update.
12559         * d-lang.c (build_d_types): Use init_complex_type.
12560         * ctfread.c (read_base_type): Update.
12562 2020-04-01  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
12564         * infrun.c (stop_all_threads): Update assertion, plus when
12565         stopping threads, take into account that we might be trying
12566         to stop an all-stop target.
12567         (stop_waiting): Call 'stop_all_threads' if there exists a
12568         non-stop target.
12570 2020-04-01  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
12572         * target.h (exists_non_stop_target): New function declaration.
12573         * target.c (exists_non_stop_target): New function.
12575 2020-04-01  Hannes Domani  <ssbssa@yahoo.de>
12577         PR gdb/24789
12578         * eval.c (is_integral_or_integral_reference): New function.
12579         (evaluate_subexp_standard): Allow integer references in
12580         pointer arithmetic.
12582 2020-04-01  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
12584         * remote.c (remote_target::remote_parse_stop_reply): Remove the
12585         check for no ptid in the stop reply when the target is non-stop.
12587 2020-04-01  Tom Tromey  <tromey@adacore.com>
12589         * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12590         "name" parameter to rvalue reference.  Initialize m_name_holder.
12591         <lookup_name_info>: New overloads.
12592         <name>: Return gdb::string_view.
12593         <c_str>: New method.
12594         <make_ignore_params>: Update.
12595         <search_name_hash>: Update.
12596         <language_lookup_name>: Return const char *.
12597         <m_name>: Change type.
12598         * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12599         (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12600         (lookup_name_info::match_any): Update.
12601         * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12602         Update.
12603         * minsyms.c (linkage_name_str): Update.
12604         * language.c (default_symbol_name_matcher): Update.
12605         * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12606         Update.
12607         * ada-lang.c (ada_fold_name): Change parameter to string_view.
12608         (ada_lookup_name_info::ada_lookup_name_info): Update.
12609         (literal_symbol_name_matcher): Update.
12611 2020-04-01  Tom Tromey  <tromey@adacore.com>
12613         * psymtab.c (psymtab_search_name): Remove function.
12614         (psym_lookup_symbol): Create search name and lookup name here.
12615         (lookup_partial_symbol): Remove "name" parameter; add
12616         lookup_name.
12617         (psym_expand_symtabs_for_function): Update.
12619 2020-03-31  Joel Jones  <joelkevinjones@gmail.com>
12621         PR tui/25597:
12622         * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12624 2020-03-31  Tom Tromey  <tromey@adacore.com>
12626         * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12627         memcpy.
12629 2020-03-30  Nelson Chu  <nelson.chu@sifive.com>
12631         * features/riscv/32bit-csr.xml: Regenerated.
12632         * features/riscv/64bit-csr.xml: Regenerated.
12634 2020-03-30  Tom Tromey  <tromey@adacore.com>
12636         * ada-valprint.c (print_variant_part): Update.
12637         * ada-lang.h (ada_which_variant_applies): Update.
12638         * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12639         outer_valaddr parameters; replace with "outer" value parameter.
12640         (to_fixed_variant_branch_type): Update.
12642 2020-03-30  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
12644         * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12645         <list>.  Remove inclusion of observable.h.
12646         (PPC_DEBUG_CURRENT_VERSION): Move up define.
12647         (struct arch_lwp_info): New struct.
12648         (class ppc_linux_dreg_interface): New class.
12649         (struct ppc_linux_process_info): New struct.
12650         (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12651         <low_new_clone, low_forget_process, low_prepare_to_resume>
12652         <copy_thread_dreg_state, mark_thread_stale>
12653         <mark_debug_registers_changed, register_hw_breakpoint>
12654         <clear_hw_breakpoint, register_wp, clear_wp>
12655         <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12656         <num_memory_accesses, get_trigger_type>
12657         <create_watchpoint_request, hwdebug_point_cmp>
12658         <init_arch_lwp_info, get_arch_lwp_info>
12659         <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12660         methods.
12661         <struct ptid_hash>: New inner struct.
12662         <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12663         members.
12664         (saved_dabr_value, hwdebug_info, max_slots_number)
12665         (struct hw_break_tuple, struct thread_points, ppc_threads)
12666         (have_ptrace_hwdebug_interface)
12667         (hwdebug_find_thread_points_by_tid)
12668         (hwdebug_insert_point, hwdebug_remove_point): Remove.
12669         (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12670         m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12671         (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12672         use m_dreg_interface.
12673         (hwdebug_point_cmp): Change to...
12674         (ppc_linux_nat_target::hwdebug_point_cmp): ...this method.  Use
12675         reference arguments instead of pointers.
12676         (ppc_linux_nat_target::ranged_break_num_registers): Use
12677         m_dreg_interface.
12678         (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12679         m_dreg_interface.  Call register_hw_breakpoint.
12680         (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12681         m_dreg_interface.  Call clear_hw_breakpoint.
12682         (get_trigger_type): Change to...
12683         (ppc_linux_nat_target::get_trigger_type): ...this method.  Add
12684         comment.
12685         (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12686         use m_dreg_interface.  Call register_hw_breakpoint.
12687         (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12688         use m_dreg_interface.  Call clear_hw_breakpoint.
12689         (can_use_watchpoint_cond_accel): Change to...
12690         (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12691         method.  Update comment, use m_dreg_interface and
12692         m_process_info.
12693         (calculate_dvc): Change to...
12694         (ppc_linux_nat_target::calculate_dvc): ...this method.  Use
12695         m_dreg_interface.
12696         (num_memory_accesses): Change to...
12697         (ppc_linux_nat_target::num_memory_accesses): ...this method.
12698         (check_condition): Change to...
12699         (ppc_linux_nat_target::check_condition): ...this method.
12700         (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12701         comment, use m_dreg_interface.
12702         (create_watchpoint_request): Change to...
12703         (ppc_linux_nat_target::create_watchpoint_request): ...this
12704         method.  Use m_dreg_interface.
12705         (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12706         m_dreg_interface.  Call register_hw_breakpoint or register_wp.
12707         (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12708         m_dreg_interface.  Call clear_hw_breakpoint or clear_wp.
12709         (ppc_linux_nat_target::low_forget_process)
12710         (ppc_linux_nat_target::low_new_fork)
12711         (ppc_linux_nat_target::low_new_clone)
12712         (ppc_linux_nat_target::low_delete_thread)
12713         (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12714         (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12715         only call mark_thread_stale.
12716         (ppc_linux_thread_exit): Remove.
12717         (ppc_linux_nat_target::stopped_data_address): Change to...
12718         (ppc_linux_nat_target::low_stopped_data_address): This. Add
12719         comment, use m_dreg_interface and m_thread_hw_breakpoints.
12720         (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12721         (ppc_linux_nat_target::stopped_by_watchpoint): This.  Add
12722         comment.  Call low_stopped_data_address.
12723         (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12724         m_dreg_interface.
12725         (ppc_linux_nat_target::masked_watch_num_registers): Use
12726         m_dreg_interface.
12727         (ppc_linux_nat_target::copy_thread_dreg_state)
12728         (ppc_linux_nat_target::mark_thread_stale)
12729         (ppc_linux_nat_target::mark_debug_registers_changed)
12730         (ppc_linux_nat_target::register_hw_breakpoint)
12731         (ppc_linux_nat_target::clear_hw_breakpoint)
12732         (ppc_linux_nat_target::register_wp)
12733         (ppc_linux_nat_target::clear_wp)
12734         (ppc_linux_nat_target::init_arch_lwp_info)
12735         (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12736         (_initialize_ppc_linux_nat): Remove observer callback.
12738 2020-03-30  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
12740         * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12741         (ppc_linux_nat_target::auxv_parse)
12742         (ppc_linux_nat_target::read_description)
12743         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12744         Move up.
12746 2020-03-30  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
12748         * linux-nat.h (low_new_clone): New method.
12749         * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12751 2020-03-29  Simon Marchi  <simon.marchi@polymtl.ca>
12753         * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12754         (dbx_expand_psymtab): ... this.
12755         (start_psymtab): Update.
12756         * mdebugread.c (psymtab_to_symtab_1): Rename to...
12757         (mdebug_expand_psymtab): ... this.
12758         (parse_partial_symbols): Update.
12759         (new_psymtab): Update.
12760         * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12761         (xcoff_expand_psymtab): ... this.
12762         (xcoff_start_psymtab): Update.
12764 2020-03-29  Simon Marchi  <simon.marchi@polymtl.ca>
12766         * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12767         <expand_dependencies>: ... this.
12768         * psymtab.c (partial_symtab::read_dependencies): Rename to...
12769         (partial_symtab::expand_dependencies): ... this.
12770         * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12771         Update.
12772         (dwarf2_psymtab::expand_psymtab): Update.
12773         * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12774         * mdebugread.c (psymtab_to_symtab_1): Update.
12775         * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12777 2020-03-29  Simon Marchi  <simon.marchi@polymtl.ca>
12779         * psympriv.h (discard_psymtab): Remove.
12780         * dbxread.c (dbx_end_psymtab): Update.
12781         * xcoffread.c (xcoff_end_psymtab): Update.
12783 2020-03-28  Tom Tromey  <tom@tromey.com>
12785         * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12786         comment.
12788 2020-03-28  Tom Tromey  <tom@tromey.com>
12790         * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12792 2020-03-27  Hannes Domani  <ssbssa@yahoo.de>
12794         * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12796 2020-03-26  John Baldwin  <jhb@FreeBSD.org>
12798         * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12800 2020-03-26  Tom Tromey  <tom@tromey.com>
12802         * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12803         (mark_common_block_symbol_computed, read_tag_string_type)
12804         (attr_to_dynamic_prop, read_subrange_type): Update.
12805         (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12806         to be methods on struct attribute.
12807         (skip_one_die, process_imported_unit_die, read_namespace_alias)
12808         (read_call_site_scope, partial_die_info::read)
12809         (partial_die_info::read, lookup_die_type, follow_die_ref):
12810         Update.
12811         * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12812         from dwarf2_get_ref_die_offset.
12813         (attribute::constant_value): New method, from
12814         dwarf2_get_attr_constant_value.
12815         * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12816         Declare method.
12817         <constant_value>: New method.
12819 2020-03-26  Tom Tromey  <tom@tromey.com>
12821         * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12822         (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12823         (dwarf_type_encoding_name): Move to stringify.c.
12824         * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12825         * dwarf2/stringify.c: New file.
12826         * dwarf2/stringify.h: New file.
12828 2020-03-26  Tom Tromey  <tom@tromey.com>
12830         * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12831         Rewrite.
12833 2020-03-26  Tom Tromey  <tom@tromey.com>
12835         * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12836         methods.
12837         * dwarf2/read.c (lookup_addr_base): Move to die.h.
12838         (lookup_ranges_base): Likewise.
12839         (read_cutu_die_from_dwo, read_full_die_1): Update.
12841 2020-03-26  Tom Tromey  <tom@tromey.com>
12843         * dwarf2/read.c (read_import_statement, read_file_scope)
12844         (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12845         (read_lexical_block_scope, read_call_site_scope)
12846         (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12847         (handle_struct_member_die, process_structure_scope)
12848         (update_enumeration_type_from_children)
12849         (process_enumeration_scope, read_array_type, read_common_block)
12850         (read_namespace, read_module, read_subroutine_type): Update.
12851         (sibling_die): Remove.
12853 2020-03-26  Tom Tromey  <tom@tromey.com>
12855         * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12856         (build_type_psymtabs_reader, read_structure_type)
12857         (read_enumeration_type, read_full_die_1): Update.
12858         (dwarf2_attr_no_follow): Move to die.h.
12859         * dwarf2/die.h (struct die_info) <attr>: New method.
12861 2020-03-26  Tom Tromey  <tom@tromey.com>
12863         * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12864         <base_address>: Now an optional.
12865         (dwarf2_find_base_address, dwarf2_rnglists_process)
12866         (dwarf2_ranges_process, fill_in_loclist_baton)
12867         (dwarf2_symbol_mark_computed): Update.
12869 2020-03-26  Tom Tromey  <tom@tromey.com>
12871         * dwarf2/read.c (struct die_info): Move to die.h.
12872         * dwarf2/die.h: New file.
12874 2020-03-26  Tom Tromey  <tom@tromey.com>
12876         * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12877         * dwarf2/read.c
12878         (dwarf2_statement_list_fits_in_line_number_section_complaint):
12879         Move to line-header.c.
12880         (read_checked_initial_length_and_offset, read_formatted_entries):
12881         Likewise.
12882         (dwarf_decode_line_header): Split into two.
12883         * dwarf2/line-header.c
12884         (dwarf2_statement_list_fits_in_line_number_section_complaint):
12885         Move from read.c.
12886         (read_checked_initial_length_and_offset, read_formatted_entries):
12887         Likewise.
12888         (dwarf_decode_line_header): New function, split from read.c.
12890 2020-03-26  Tom Tromey  <tom@tromey.com>
12892         * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12893         Declare method.
12894         * dwarf2/read.c (read_attribute_value): Update.
12895         (dwarf2_per_objfile::read_line_string): Rename from
12896         read_indirect_line_string.
12897         (read_formatted_entries): Update.
12899 2020-03-26  Tom Tromey  <tom@tromey.com>
12901         * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12902         variable.
12904 2020-03-26  Tom Tromey  <tom@tromey.com>
12906         * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12907         const.
12908         * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12909         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12910         parameter const.
12912 2020-03-26  Tom Tromey  <tom@tromey.com>
12914         * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12915         * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12916         * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12917         (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12919 2020-03-26  Tom Tromey  <tom@tromey.com>
12921         * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12922         file_names_size, file_full_name, file_file_name>: Use const.
12923         <file_name_at, file_names>: Add const overload.
12924         * dwarf2/line-header.c (line_header::file_file_name)
12925         (line_header::file_full_name): Update.
12927 2020-03-26  Tom Tromey  <tom@tromey.com>
12929         * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12930         (macro_start_file, consume_improper_spaces)
12931         (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12932         (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12933         (dwarf_decode_macros): Move to macro.c.
12934         * dwarf2/macro.c: New file.
12935         * dwarf2/macro.h: New file.
12936         * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12938 2020-03-26  Tom Tromey  <tom@tromey.com>
12940         * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12941         method.
12942         * dwarf2/section.c: New method.  From
12943         read_indirect_string_at_offset_from.
12944         * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12945         (read_indirect_string_at_offset_from): Move to section.c.
12946         (read_indirect_string_at_offset): Rewrite.
12947         (read_indirect_line_string_at_offset): Remove.
12948         (read_indirect_string, read_indirect_line_string)
12949         (dwarf_decode_macro_bytes): Update.
12951 2020-03-26  Tom Tromey  <tom@tromey.com>
12953         * dwarf2/section.h (struct dwarf2_section_info)
12954         <overload_complaint>: Declare.
12955         (dwarf2_section_buffer_overflow_complaint): Don't declare.
12956         * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12957         Rename from dwarf2_section_buffer_overflow_complaint.
12958         * dwarf2/read.c (skip_one_die, partial_die_info::read)
12959         (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12961 2020-03-26  Tom Tromey  <tom@tromey.com>
12963         * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12964         Declare.
12965         * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12966         Move from read.c.
12967         * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12968         to section.c.
12970 2020-03-26  Tom Tromey  <tom@tromey.com>
12972         * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12974 2020-03-26  Tom Tromey  <tom@tromey.com>
12976         * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12977         "builder".
12978         (dwarf_decode_macro_bytes): Likewise.  Add dwarf2_per_objfile
12979         parameter.
12980         (dwarf_decode_macros): Update.
12982 2020-03-26  Tom Tromey  <tom@tromey.com>
12984         * dwarf2/read.c (read_attribute_value): Update.
12985         (read_indirect_string_from_dwz): Move to dwz.c; change into
12986         method.
12987         (dwarf_decode_macro_bytes): Update.
12988         * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12989         * dwarf2/dwz.c: New file.
12990         * Makefile.in (COMMON_SFILES): Add dwz.c.
12992 2020-03-26  Tom Tromey  <tom@tromey.com>
12994         * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12995         * dwarf2/read.c: Add include.
12996         * dwarf2/index-write.c: Add include.
12997         * dwarf2/index-cache.c: Add include.
12998         * dwarf2/dwz.h: New file.
13000 2020-03-25  Tom Tromey  <tom@tromey.com>
13002         * compile/compile-object-load.c (get_out_value_type): Mention
13003         correct symbol name in error message.
13005 2020-03-25  Hannes Domani  <ssbssa@yahoo.de>
13007         * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13009 2020-03-25  Tom de Vries  <tdevries@suse.de>
13011         * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13012         * symmisc.c (dump_symtab_1): Print user and includes fields.
13013         (maintenance_info_symtabs): Same.
13015 2020-03-25  Andrew Burgess  <andrew.burgess@embecosm.com>
13017         PR gdb/25534
13018         * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13019         (riscv_regcache_cooked_write): New function.
13020         (riscv_push_dummy_call): Use new function.
13021         (riscv_return_value): Likewise.
13023 2020-03-24  Simon Marchi  <simon.marchi@polymtl.ca>
13025         * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13026         * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13027         * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13028         * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13029         * infrun.c (follow_fork): Likewise.
13030         (follow_fork_inferior): Likewise.
13031         * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13032         * linux-nat.h (class linux_nat_target): Likewise.
13033         * remote.c (class remote_target) <follow_fork>: Likewise.
13034         (remote_target::follow_fork): Likewise.
13035         * target-delegates.c: Re-generate.
13036         * target.c (default_follow_fork): Likewise.
13037         (target_follow_fork): Likewise.
13038         * target.h (struct target_ops) <follow_fork>: Likewise.
13039         (target_follow_fork): Likewise.
13041 2020-03-24  Tom de Vries  <tdevries@suse.de>
13043         * psymtab.c (maintenance_info_psymtabs): Print user field.
13045 2020-03-20  Tom Tromey  <tromey@adacore.com>
13047         * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13048         const.
13049         * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13050         const.
13052 2020-03-20  Simon Marchi  <simon.marchi@efficios.com>
13054         * ptrace.m4: Don't check for ptrace declaration.
13055         * config.in: Re-generate.
13056         * configure: Re-generate.
13057         * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13058         not defined.
13060 2020-03-20  Kamil Rytarowski  <n54@gmx.com>
13062         * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13063         `PTRACE_TYPE_RET'.
13064         * i386-bsd-nat.c (gdb_ptrace): Likewise.
13065         * sparc-nat.c (gdb_ptrace): Likewise.
13066         * x86-bsd-nat.c (gdb_ptrace): Likewise.
13068 2020-03-20  Tom Tromey  <tromey@adacore.com>
13070         * c-exp.y (lex_one_token): Fix assert.
13072 2020-03-20  Tom Tromey  <tromey@adacore.com>
13074         * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13075         * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13076         strncpy call.
13078 2020-03-20  Tom Tromey  <tromey@adacore.com>
13080         * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13082 2020-03-20  Tom Tromey  <tromey@adacore.com>
13084         * ada-valprint.c (print_variant_part): Remove parameters; switch
13085         to value-based API.
13086         (print_field_values): Likewise.
13087         (ada_val_print_struct_union): Likewise.
13088         (ada_value_print_1): Update.
13090 2020-03-20  Kamil Rytarowski  <n54@gmx.com>
13092         * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13093         nbsd_nat_target instead of inf_ptrace_target.
13094         * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13095         nbsd_nat_target.
13097 2020-03-20  Kamil Rytarowski  <n54@gmx.com>
13099         * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13100         it to the ptrace call.
13101         * (store_registers): Likewise.
13103 2020-03-20  Kamil Rytarowski  <n54@gmx.com>
13105         * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13106         it to the ptrace call.
13107         * (store_registers): Likewise.
13109 2020-03-19  Luis Machado  <luis.machado@linaro.org>
13111         * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13112         valid, fetch vg value from ptrace.
13114 2020-03-19  Kamil Rytarowski  <n54@gmx.com>
13115         * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13116         * inf-ptrace.c: Likewise.
13117         * (gdb_ptrace): Add.
13118         * (inf_ptrace_target::resume): Update.
13119         * (inf_ptrace_target::xfer_partial): Likewise.
13120         * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13121         * (inf_ptrace_peek_poke): Update.
13123 2020-03-19  Kamil Rytarowski  <n54@gmx.com>
13125         * x86-bsd-nat.c (gdb_ptrace): New.
13126         * (x86bsd_dr_set): Add new argument `ptid'.
13127         * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13128         x86bsd_dr_set_addr): Update.
13130 2020-03-19  Andrew Burgess  <andrew.burgess@embecosm.com>
13132         * remote.c (remote_target::process_stop_reply): Handle events for
13133         all threads differently.
13135 2020-03-19  Andrew Burgess  <andrew.burgess@embecosm.com>
13137         * completer.c (completion_tracker::remove_completion): Define new
13138         function.
13139         * completer.h (completion_tracker::remove_completion): Declare new
13140         function.
13141         * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13142         when adding a C++ function symbol.
13144 2020-03-19  Andrew Burgess  <andrew.burgess@embecosm.com>
13146         * completer.c (completion_tracker::completion_hash_entry): Define
13147         new class.
13148         (advance_to_filename_complete_word_point): Call
13149         recompute_lowest_common_denominator.
13150         (completion_tracker::completion_tracker): Call discard_completions
13151         to setup the hash table.
13152         (completion_tracker::discard_completions): Allow for being called
13153         from the constructor, pass new equal function, and element deleter
13154         when constructing the hash table.  Initialise new class member
13155         variables.
13156         (completion_tracker::maybe_add_completion): Remove use of
13157         m_entries_vec, and store more information into m_entries_hash.
13158         (completion_tracker::recompute_lcd_visitor): New function, most
13159         content taken from...
13160         (completion_tracker::recompute_lowest_common_denominator):
13161         ...here, this now just visits each item in the hash calling the
13162         above visitor.
13163         (completion_tracker::build_completion_result): Remove use of
13164         m_entries_vec, call recompute_lowest_common_denominator.
13165         * completer.h (completion_tracker::have_completions): Remove use
13166         of m_entries_vec.
13167         (completion_tracker::completion_hash_entry): Declare new class.
13168         (completion_tracker::recompute_lowest_common_denominator): Change
13169         function signature.
13170         (completion_tracker::recompute_lcd_visitor): Declare new function.
13171         (completion_tracker::m_entries_vec): Delete.
13172         (completion_tracker::m_entries_hash): Initialize to NULL.
13173         (completion_tracker::m_lowest_common_denominator_valid): New
13174         member variable.
13175         (completion_tracker::m_lowest_common_denominator_max_length): New
13176         member variable.
13178 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
13180         * regformats/regdef.h: Put reg in gdb namespace.
13182 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
13184         * i386-bsd-nat.c (gdb_ptrace): New.
13185         * (i386bsd_fetch_inferior_registers,
13186         i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13187         * (i386bsd_fetch_inferior_registers,
13188         i386bsd_store_inferior_registers) Use gdb_ptrace.
13190 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
13192         * amd64-bsd-nat.c (gdb_ptrace): New.
13193         * (amd64bsd_fetch_inferior_registers,
13194         amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13195         * (amd64bsd_fetch_inferior_registers,
13196         amd64bsd_store_inferior_registers) Use gdb_ptrace.
13198 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
13200         * user-regs.c (user_reg::read): Rename to...
13201         (user_reg::xread): ...this.
13202         * (append_user_reg): Rename argument `read' to `xread'.
13203         * (user_reg_add_builtin): Likewise.
13204         * (user_reg_add): Likewise.
13205         * (value_of_user_reg): Likewise.
13207 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
13209         * sparc-nat.c (gdb_ptrace): New.
13210         * sparc-nat.c (sparc_fetch_inferior_registers)
13211         (sparc_store_inferior_registers) Remove obsolete comment.
13212         * sparc-nat.c (sparc_fetch_inferior_registers)
13213         (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13214         * sparc-nat.c (sparc_fetch_inferior_registers)
13215         (sparc_store_inferior_registers) Use gdb_ptrace.
13217 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
13219         * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13220         it to the ptrace call.
13221         * sh-nbsd-nat.c (store_registers): Likewise.
13223 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
13225         * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13226         nbsd_nat_target instead of inf_ptrace_target.
13227         * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13228         nbsd_nat_target.
13230 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
13232         * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13234 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
13236         * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13237         <sys/sysctl.h>.
13238         * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13240 2020-03-17  Tom de Vries  <tdevries@suse.de>
13242         PR gdb/23710
13243         * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13244         fields.
13245         * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13246         fields.
13247         (process_imported_unit_die): Skip import of c++ CUs.
13249 2020-03-16  Tom Tromey  <tom@tromey.com>
13251         * p-valprint.c (pascal_object_print_value): Initialize
13252         base_value.
13254 2020-03-16  Anton Kolesov  <anton.kolesov@synopsys.com>
13255             Shahab Vahedi  <shahab@synopsys.com>
13257         * Makefile.in: Add arch/arc.o
13258         * configure.tgt: Likewise.
13259         * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13260         (_initialize_arc_tdep): Don't initialize old target descriptions.
13261         (arc_read_description): New function to cache target descriptions.
13262         * arc-tdep.h (arc_read_description): Add proto type.
13263         * arch/arc.c: New file.
13264         * arch/arc.h: Likewise.
13265         * features/Makefile: Replace old target descriptions with new.
13266         * features/arc-arcompact.c: Remove.
13267         * features/arc-arcompact.xml: Likewise.
13268         * features/arc-v2.c: Likewise
13269         * features/arc-v2.xml: Likewise
13270         * features/arc/aux-arcompact.xml: New file.
13271         * features/arc/aux-v2.xml: Likewise.
13272         * features/arc/core-arcompact.xml: Likewise.
13273         * features/arc/core-v2.xml: Likewise.
13274         * features/arc/aux-arcompact.c: Generate.
13275         * features/arc/aux-v2.c: Likewise.
13276         * features/arc/core-arcompact.c: Likewise.
13277         * features/arc/core-v2.c: Likewise.
13278         * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13280 2020-03-16  Tom Tromey  <tromey@adacore.com>
13282         PR gdb/25663:
13283         * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13284         putting value into bcache.
13286 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
13288         PR gdb/21500
13289         * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13290         to...
13291         (amd64_windows_init_abi_common): ... this.  Don't set size of
13292         long type.
13293         (amd64_windows_init_abi): New function.
13294         (amd64_cygwin_init_abi): New function.
13295         (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13296         the Cygwin OS ABI.
13297         * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13298         comment.
13300 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
13302         * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13303         * windows-tdep.c (CYGWIN_DLL_NAME): New.
13304         (pe_import_directory_entry): New struct type.
13305         (is_linked_with_cygwin_dll): New function.
13306         * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13307         GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13308         * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13310 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
13312         * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13313         i386_cygwin_core_osabi_sniffer.
13315 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
13317         * i386-cygwin-tdep.c: Rename to...
13318         * i386-windows-tdep.c: ... this.
13319         * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13320         i386-windows-tdep.c.
13321         * configure.tgt: Likewise.
13323 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
13325         * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13326         * osabi.c (gdb_osabi_names): Add "Windows".
13327         * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13328         GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13329         (i386_cygwin_core_osabi_sniffer): New function, extracted from
13330         i386_cygwin_osabi_sniffer.
13331         (_initialize_i386_cygwin_tdep): Register OS ABI
13332         GDB_OSABI_WINDOWS for i386.
13333         * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13334         GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13335         (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13336         for x86-64.
13337         * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13338         when the target matches '*-*-mingw*'.
13340 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
13342         * defs.h (enum gdb_osabi): Move to...
13343         * osabi.h (enum gdb_osabi): ... here.
13344         * gdbarch.sh: Include osabi.h in gdbarch.h.
13345         * gdbarch.h: Re-generate.
13347 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
13349         * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13350         function.
13351         (_initialize_amd64_windows_tdep): Register osabi sniffer.
13353 2020-03-14  Tom Tromey  <tom@tromey.com>
13355         * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13356         for C++.
13357         (c_type_print_modifier): Likewise.  Add "language" parameter.
13358         (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13359         (c_type_print_base_1): Update.
13360         * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13361         constants.
13362         * type-stack.c (type_stack::insert): Handle tp_atomic and
13363         tp_restrict.
13364         (type_stack::follow_type_instance_flags): Likewise.
13365         (type_stack::follow_types): Likewise.  Merge type-following code.
13366         * c-exp.y (RESTRICT, ATOMIC): New tokens.
13367         (space_identifier, cv_with_space_id)
13368         (const_or_volatile_or_space_identifier_noopt)
13369         (const_or_volatile_or_space_identifier): Remove.
13370         (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13371         rules.
13372         (ptr_operator, typebase): Update.
13373         (enum token_flag) <FLAG_C>: New constant.
13374         (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13375         "_Atomic".
13376         (lex_one_token): Handle FLAG_C.
13378 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
13380         * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13381         it to the ptrace call.
13382         * m68k-bsd-nat.c (store_registers): Likewise.
13384 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
13386         * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13387         gdb_byte *.
13388         * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13389         * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13390         * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13392 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
13394         * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13395         nbsd_nat_target instead of inf_ptrace_target.
13396         * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13397         nbsd_nat_target.
13399 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
13401         * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13402         register_t.
13404 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
13406         * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13407         it to the ptrace call.
13408         * alpha-bsd-nat.c (store_registers): Likewise.
13410 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
13412         * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13413         includes.
13414         * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13415         * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13416         fill_fpregset): Likewise.
13418 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
13420         * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13421         nbsd_nat_target instead of inf_ptrace_target.
13422         * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13423         nbsd_nat_target.
13425 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
13427         * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13428         register_t.
13430 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
13432         * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13433         it to the ptrace call.
13434         * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13435         * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13436         * arm-nbsd-nat.c (store_register): Likewise.
13437         * arm-nbsd-nat.c (store_regs): Likewise.
13438         * arm-nbsd-nat.c (store_fp_register): Likewise.
13439         * arm-nbsd-nat.c (store_fp_regs): Likewise.
13441 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
13443         * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13444         nbsd_nat_target instead of inf_ptrace_target.
13445         * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13446         nbsd_nat_target.
13448 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
13450         * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13451         it to the ptrace call.
13452         * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13454 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
13456         * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13457         it to the ptrace call.
13458         * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13460 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
13462         * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13463         gdb_byte *.
13464         * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13466 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
13468         * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13469         instead of inf_ptrace_target.
13470         * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13471         nbsd_nat_target.
13473 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
13475         * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13476         register_t.
13478 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
13480         * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13481         register_t.
13483 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
13485         * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13486         register_t.
13488 2020-03-13  Tom Tromey  <tom@tromey.com>
13490         * value.h (val_print): Don't declare.
13491         * valprint.h (val_print_array_elements)
13492         (val_print_scalar_formatted, generic_val_print): Don't declare.
13493         * valprint.c (generic_val_print_array): Take a struct value.
13494         (generic_val_print_ptr, generic_val_print_memberptr)
13495         (generic_val_print_bool, generic_val_print_int)
13496         (generic_val_print_char, generic_val_print_complex)
13497         (generic_val_print): Remove.
13498         (generic_value_print): Update.
13499         (do_val_print): Remove unused parameters.  Don't call
13500         la_val_print.
13501         (val_print): Remove.
13502         (common_val_print): Update.  Don't call value_check_printable.
13503         (val_print_scalar_formatted, val_print_array_elements): Remove.
13504         * rust-lang.c (rust_val_print): Remove.
13505         (rust_language_defn): Update.
13506         * p-valprint.c (pascal_val_print): Remove.
13507         (pascal_value_print_inner): Update.
13508         (pascal_object_print_val_fields, pascal_object_print_val):
13509         Remove.
13510         (pascal_object_print_static_field): Update.
13511         * p-lang.h (pascal_val_print): Don't declare.
13512         * p-lang.c (pascal_language_defn): Update.
13513         * opencl-lang.c (opencl_language_defn): Update.
13514         * objc-lang.c (objc_language_defn): Update.
13515         * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13516         * m2-lang.h (m2_val_print): Don't declare.
13517         * m2-lang.c (m2_language_defn): Update.
13518         * language.h (struct language_defn) <la_val_print>: Remove.
13519         * language.c (unk_lang_value_print_inner): Rename.  Change
13520         argument types.
13521         (unknown_language_defn, auto_language_defn): Update.
13522         * go-valprint.c (go_val_print): Remove.
13523         * go-lang.h (go_val_print): Don't declare.
13524         * go-lang.c (go_language_defn): Update.
13525         * f-valprint.c (f_val_print): Remove.
13526         * f-lang.h (f_value_print): Don't declare.
13527         * f-lang.c (f_language_defn): Update.
13528         * d-valprint.c (d_val_print): Remove.
13529         * d-lang.h (d_value_print): Don't declare.
13530         * d-lang.c (d_language_defn): Update.
13531         * cp-valprint.c (cp_print_value_fields)
13532         (cp_print_value_fields_rtti, cp_print_value): Remove.
13533         (cp_print_static_field): Update.
13534         * c-valprint.c (c_val_print_array, c_val_print_ptr)
13535         (c_val_print_struct, c_val_print_union, c_val_print_int)
13536         (c_val_print_memberptr, c_val_print): Remove.
13537         * c-lang.h (c_val_print_array, cp_print_value_fields)
13538         (cp_print_value_fields_rtti): Don't declare.
13539         * c-lang.c (c_language_defn, cplus_language_defn)
13540         (asm_language_defn, minimal_language_defn): Update.
13541         * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13542         (ada_val_print_enum): Take a struct value.
13543         (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13544         (ada_val_print): Remove.
13545         (ada_value_print_1): Update.
13546         (printable_val_type): Remove.
13547         * ada-lang.h (ada_val_print): Don't declare.
13548         * ada-lang.c (ada_language_defn): Update.
13550 2020-03-13  Tom Tromey  <tom@tromey.com>
13552         * valprint.c (do_val_print): Update.
13553         * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13554         a struct value.
13555         (value_to_value_object_no_release): Declare.
13556         * python/py-value.c (value_to_value_object_no_release): New
13557         function.
13558         * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13559         struct value.
13560         * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13561         function.
13562         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13563         a struct value.
13564         * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13565         Declare.
13566         (gdbscm_apply_val_pretty_printer): Take a struct value.
13567         * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13568         value.
13569         * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13570         value.
13571         * extension-priv.h (struct extension_language_ops)
13572         <apply_val_pretty_printer>: Take a struct value.
13573         * cp-valprint.c (cp_print_value): Create a struct value.
13574         (cp_print_value): Update.
13576 2020-03-13  Tom Tromey  <tom@tromey.com>
13578         * ada-valprint.c (print_field_values): Call common_val_print.
13580 2020-03-13  Tom Tromey  <tom@tromey.com>
13582         * ada-valprint.c (val_print_packed_array_elements): Remove
13583         bitoffset and val parameters.  Call common_val_print.
13584         (ada_val_print_string): Remove offset, address, and original_value
13585         parameters.
13586         (ada_val_print_array): Update.
13587         (ada_value_print_array): New function.
13588         (ada_value_print_1): Call it.
13590 2020-03-13  Tom Tromey  <tom@tromey.com>
13592         * ada-valprint.c (ada_value_print): Use common_val_print.
13594 2020-03-13  Tom Tromey  <tom@tromey.com>
13596         * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13598 2020-03-13  Tom Tromey  <tom@tromey.com>
13600         * ada-valprint.c (ada_value_print_num): New function.
13601         (ada_value_print_1): Use it.
13603 2020-03-13  Tom Tromey  <tom@tromey.com>
13605         * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13607 2020-03-13  Tom Tromey  <tom@tromey.com>
13609         * ada-valprint.c (ada_value_print_ptr): New function.
13610         (ada_value_print_1): Use it.
13612 2020-03-13  Tom Tromey  <tom@tromey.com>
13614         * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13615         call common_val_print.
13616         (ada_val_print_1): Update.
13617         (ada_value_print_1): New function.
13618         (ada_value_print_inner): Rewrite.
13620 2020-03-13  Tom Tromey  <tom@tromey.com>
13622         * cp-valprint.c (cp_print_value_fields): Update.
13623         (cp_print_value): New function.
13625 2020-03-13  Tom Tromey  <tom@tromey.com>
13627         * m2-valprint.c (m2_value_print_inner): Use
13628         cp_print_value_fields.
13629         * cp-valprint.c (cp_print_value_fields): New function.
13630         * c-valprint.c (c_value_print_struct): New function.
13631         (c_value_print_inner): Use c_value_print_struct.
13632         * c-lang.h (cp_print_value_fields): Declare.
13634 2020-03-13  Tom Tromey  <tom@tromey.com>
13636         * c-valprint.c (c_value_print_array): New function.
13637         (c_value_print_inner): Use it.
13639 2020-03-13  Tom Tromey  <tom@tromey.com>
13641         * c-valprint.c (c_value_print_memberptr): New function.
13642         (c_value_print_inner): Use it.
13644 2020-03-13  Tom Tromey  <tom@tromey.com>
13646         * c-valprint.c (c_value_print_int): New function.
13647         (c_value_print_inner): Use it.
13649 2020-03-13  Tom Tromey  <tom@tromey.com>
13651         * c-valprint.c (c_value_print_ptr): New function.
13652         (c_value_print_inner): Use it.
13654 2020-03-13  Tom Tromey  <tom@tromey.com>
13656         * c-valprint.c (c_value_print_inner): Rewrite.
13658 2020-03-13  Tom Tromey  <tom@tromey.com>
13660         * valprint.c (generic_value_print_complex): New function.
13661         (generic_value_print): Use it.
13663 2020-03-13  Tom Tromey  <tom@tromey.com>
13665         * valprint.c (generic_val_print_float): Don't call
13666         val_print_scalar_formatted.
13667         (generic_val_print, generic_value_print): Update.
13669 2020-03-13  Tom Tromey  <tom@tromey.com>
13671         * valprint.c (generic_value_print_char): New function
13672         (generic_value_print): Use it.
13674 2020-03-13  Tom Tromey  <tom@tromey.com>
13676         * valprint.c (generic_value_print_int): New function.
13677         (generic_value_print): Use it.
13679 2020-03-13  Tom Tromey  <tom@tromey.com>
13681         * valprint.c (generic_value_print_bool): New function.
13682         (generic_value_print): Use it.
13684 2020-03-13  Tom Tromey  <tom@tromey.com>
13686         * valprint.c (generic_val_print_func): Simplify.
13687         (generic_val_print, generic_value_print): Update.
13689 2020-03-13  Tom Tromey  <tom@tromey.com>
13691         * valprint.c (generic_val_print_flags): Remove.
13692         (generic_val_print, generic_value_print): Update.
13693         (val_print_type_code_flags): Add original_value parameter.
13695 2020-03-13  Tom Tromey  <tom@tromey.com>
13697         * valprint.c (generic_val_print): Update.
13698         (generic_value_print): Update.
13699         * valprint.c (generic_val_print_enum): Don't call
13700         val_print_scalar_formatted.
13702 2020-03-13  Tom Tromey  <tom@tromey.com>
13704         * valprint.c (generic_value_print): Call generic_value_print_ptr.
13705         * valprint.c (generic_value_print_ptr): New function.
13707 2020-03-13  Tom Tromey  <tom@tromey.com>
13709         * valprint.c (generic_value_print): Rewrite.
13711 2020-03-13  Tom Tromey  <tom@tromey.com>
13713         * p-valprint.c (pascal_object_print_value_fields)
13714         (pascal_object_print_value): New functions.
13716 2020-03-13  Tom Tromey  <tom@tromey.com>
13718         * p-valprint.c (pascal_value_print_inner): Rewrite.
13720 2020-03-13  Tom Tromey  <tom@tromey.com>
13722         * f-valprint.c (f_value_print_innner): Rewrite.
13724 2020-03-13  Tom Tromey  <tom@tromey.com>
13726         * m2-valprint.c (m2_print_unbounded_array): New overload.
13727         (m2_print_unbounded_array): Update.
13728         (m2_print_array_contents): Take a struct value.
13729         (m2_value_print_inner): Rewrite.
13731 2020-03-13  Tom Tromey  <tom@tromey.com>
13733         * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13734         (d_value_print_inner): New function.
13735         * d-lang.h (d_value_print_inner): Declare.
13736         * d-lang.c (d_language_defn): Use d_value_print_inner.
13738 2020-03-13  Tom Tromey  <tom@tromey.com>
13740         * go-valprint.c (go_value_print_inner): New function.
13741         * go-lang.h (go_value_print_inner): Declare.
13742         * go-lang.c (go_language_defn): Use go_value_print_inner.
13744 2020-03-13  Tom Tromey  <tom@tromey.com>
13746         * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13747         API.
13748         (rust_val_print): Rewrite.
13749         (rust_value_print_inner): New function, from rust_val_print.
13750         (rust_language_defn): Use rust_value_print_inner.
13752 2020-03-13  Tom Tromey  <tom@tromey.com>
13754         * ada-valprint.c (ada_value_print_inner): New function.
13755         * ada-lang.h (ada_value_print_inner): Declare.
13756         * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13758 2020-03-13  Tom Tromey  <tom@tromey.com>
13760         * f-valprint.c (f_value_print_innner): New function.
13761         * f-lang.h (f_value_print_innner): Declare.
13762         * f-lang.c (f_language_defn): Use f_value_print_innner.
13764 2020-03-13  Tom Tromey  <tom@tromey.com>
13766         * p-valprint.c (pascal_value_print_inner): New function.
13767         * p-lang.h (pascal_value_print_inner): Declare.
13768         * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13770 2020-03-13  Tom Tromey  <tom@tromey.com>
13772         * m2-valprint.c (m2_value_print_inner): New function.
13773         * m2-lang.h (m2_value_print_inner): Declare.
13774         * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13776 2020-03-13  Tom Tromey  <tom@tromey.com>
13778         * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13779         * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13780         * c-valprint.c (c_value_print_inner): New function.
13781         * c-lang.h (c_value_print_inner): Declare.
13782         * c-lang.c (c_language_defn, cplus_language_defn)
13783         (asm_language_defn, minimal_language_defn): Use
13784         c_value_print_inner.
13786 2020-03-13  Tom Tromey  <tom@tromey.com>
13788         * p-valprint.c (pascal_object_print_value_fields): Now static.
13789         * p-lang.h (pascal_object_print_value_fields): Don't declare.
13791 2020-03-13  Tom Tromey  <tom@tromey.com>
13793         * c-valprint.c (c_val_print_array): Simplify.
13795 2020-03-13  Tom Tromey  <tom@tromey.com>
13797         * valprint.c (value_print_array_elements): New function.
13798         * valprint.h (value_print_array_elements): Declare.
13800 2020-03-13  Tom Tromey  <tom@tromey.com>
13802         * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13803         * mips-tdep.c (mips_print_register): Use
13804         value_print_scalar_formatted.
13806 2020-03-13  Tom Tromey  <tom@tromey.com>
13808         * valprint.h (value_print_scalar_formatted): Declare.
13809         * valprint.c (value_print_scalar_formatted): New function.
13811 2020-03-13  Tom Tromey  <tom@tromey.com>
13813         * valprint.h (generic_value_print): Declare.
13814         * valprint.c (generic_value_print): New function.
13816 2020-03-13  Tom Tromey  <tom@tromey.com>
13818         * valprint.c (do_val_print): Call la_value_print_inner, if
13819         available.
13820         * rust-lang.c (rust_language_defn): Update.
13821         * p-lang.c (pascal_language_defn): Update.
13822         * opencl-lang.c (opencl_language_defn): Update.
13823         * objc-lang.c (objc_language_defn): Update.
13824         * m2-lang.c (m2_language_defn): Update.
13825         * language.h (struct language_defn) <la_value_print_inner>: New
13826         member.
13827         * language.c (unknown_language_defn, auto_language_defn): Update.
13828         * go-lang.c (go_language_defn): Update.
13829         * f-lang.c (f_language_defn): Update.
13830         * d-lang.c (d_language_defn): Update.
13831         * c-lang.c (c_language_defn, cplus_language_defn)
13832         (asm_language_defn, minimal_language_defn): Update.
13833         * ada-lang.c (ada_language_defn): Update.
13835 2020-03-13  Tom Tromey  <tom@tromey.com>
13837         * c-valprint.c (c_value_print): Use common_val_print.
13839 2020-03-13  Tom Tromey  <tom@tromey.com>
13841         * cp-valprint.c (cp_print_static_field): Use common_val_print.
13843 2020-03-13  Tom Tromey  <tom@tromey.com>
13845         * f-valprint.c (f77_print_array_1, f_val_print): Use
13846         common_val_print.
13848 2020-03-13  Tom Tromey  <tom@tromey.com>
13850         * riscv-tdep.c (riscv_print_one_register_info): Use
13851         common_val_print.
13853 2020-03-13  Tom Tromey  <tom@tromey.com>
13855         * mi/mi-main.c (output_register): Use common_val_print.
13857 2020-03-13  Tom Tromey  <tom@tromey.com>
13859         * infcmd.c (default_print_one_register_info): Use
13860         common_val_print.
13862 2020-03-13  Tom Tromey  <tom@tromey.com>
13864         * valprint.h (common_val_print_checked): Declare.
13865         * valprint.c (common_val_print_checked): New function.
13866         * stack.c (print_frame_arg): Use common_val_print_checked.
13868 2020-03-13  Tom Tromey  <tom@tromey.com>
13870         * valprint.c (do_val_print): New function, from val_print.
13871         (val_print): Use do_val_print.
13872         (common_val_print): Use do_val_print.
13874 2020-03-13  Tom Tromey  <tom@tromey.com>
13876         * valprint.c (value_print): Use scoped_value_mark.
13878 2020-03-13  Tom de Vries  <tdevries@suse.de>
13880         PR symtab/25646
13881         * psymtab.c (partial_symtab::partial_symtab): Don't set
13882         globals_offset and statics_offset.  Push element onto
13883         current_global_psymbols and current_static_psymbols stacks.
13884         (concat): New function.
13885         (end_psymtab_common): Set globals_offset and statics_offset.  Pop
13886         element from current_global_psymbols and current_static_psymbols
13887         stacks.  Concat popped elements to global_psymbols and
13888         static_symbols.
13889         (add_psymbol_to_list): Use current_global_psymbols and
13890         current_static_psymbols stacks.
13891         * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13892         current_static_psymbols fields.
13894 2020-03-12  Christian Biesinger  <cbiesinger@google.com>
13896         * corelow.c (sniff_core_bfd): Remove.
13897         (class core_target) <m_core_vec>: Remove.
13898         (core_target::core_target): Update.
13899         (core_file_fns): Remove.
13900         (deprecated_add_core_fns): Remove.
13901         (default_core_sniffer): Remove.
13902         (sniff_core_bfd): Remove.
13903         (default_check_format): Remove.
13904         (gdb_check_format): Remove.
13905         (core_target_open): Update.
13906         (core_target::get_core_register_section): Update.
13907         (get_core_registers_cb): Update.
13908         (core_target::fetch_registers): Update.
13909         * gdbcore.h (struct core_fns): Remove.
13910         (deprecated_add_core_fns): Remove.
13911         (default_core_sniffer): Remove.
13912         (default_check_format): Remove.
13914 2020-03-12  Tom Tromey  <tom@tromey.com>
13916         * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13917         CORE_ADDR.
13918         (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13920 2020-03-12  Tom Tromey  <tom@tromey.com>
13922         * remote.c (remote_target::download_tracepoint)
13923         (remote_target::enable_tracepoint)
13924         (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13925         * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13926         sprintf_vma.
13928 2020-03-12  Tom Tromey  <tom@tromey.com>
13930         * symfile-mem.c: Update CORE_ADDR size assert.
13932 2020-03-12  Simon Marchi  <simon.marchi@efficios.com>
13934         * selftest.m4: Move to gdbsupport/.
13935         * acinclude.m4: Update path to selftest.m4.
13937 2020-03-12  Simon Marchi  <simon.marchi@efficios.com>
13939         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13940         (SELFTESTS_SRCS): ... this.  Add disasm-selftests.c,
13941         gdbarch-selfselftests.c and selftest-arch.c.
13942         (SUBDIR_UNITTESTS_OBS): Rename to...
13943         (SELFTESTS_OBS): ... this.
13944         (COMMON_SFILES): Remove disasm-selftests.c and
13945         gdbarch-selftests.c.
13946         * configure.ac: Don't add selftest-arch.{c,o} to
13947         CONFIG_{SRCS,OBS}.
13948         * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13949         preprocessor conditions.
13951 2020-03-12  Simon Marchi  <simon.marchi@efficios.com>
13953         * configure.ac: Don't source bfd/development.sh.
13954         * selftest.m4: Modify comment.
13955         * configure: Re-generate.
13957 2020-03-12  Simon Marchi  <simon.marchi@efficios.com>
13959         * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13960         not "true" or "false".
13961         * configure: Re-generate.
13963 2020-03-12  Christian Biesinger  <cbiesinger@google.com>
13965         * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13966         * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13967         renamed to arm_nbsd_supply_gregset.
13968         (fetch_register): Update to call arm_nbsd_supply_gregset.
13969         (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13970         (arm_netbsd_nat_target::fetch_registers): Update.
13971         (fetch_elfcore_registers): Removed.
13972         (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13973         * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13974         (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13975         not require NetBSD system headers.
13976         (arm_nbsd_regset): New struct.
13977         (arm_nbsd_iterate_over_regset_sections): New function.
13978         (arm_netbsd_init_abi_common): Updated to call
13979         set_gdbarch_iterate_over_regset_sections.
13980         * arm-nbsd-tdep.h: New file.
13982 2020-03-11  Kevin Buettner  <kevinb@redhat.com>
13984         * symtab.c (find_pc_sect_line): Add check which prevents infinite
13985         recursion.
13986         
13987 2020-03-11  Simon Marchi  <simon.marchi@efficios.com>
13989         * configure: Re-generate.
13991 2020-03-11  Tom Tromey  <tromey@adacore.com>
13993         * ada-typeprint.c (print_choices): Fix comment.
13995 2020-03-11  Andrew Burgess  <andrew.burgess@embecosm.com>
13997         * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13998         previous item in the list, when the list has no items.
14000 2020-03-11  Tom de Vries  <tdevries@suse.de>
14002         * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14003         PROP_LOCLIST handling code.
14005 2020-03-10  Andrew Burgess  <andrew.burgess@embecosm.com>
14007         * buildsym-legacy.c (record_line): Pass extra parameter to
14008         record_line.
14009         * buildsym.c (buildsym_compunit::record_line): Take an extra
14010         parameter, reduce duplication in the line table, and record the
14011         is_stmt flag in the line table.
14012         * buildsym.h (buildsym_compunit::record_line): Add extra
14013         parameter.
14014         * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14015         non-statement lines.
14016         * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14017         this to the symtab builder.
14018         (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14019         (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14020         through to dwarf_record_line_1.
14021         * infrun.c (process_event_stop_test): When stepping, don't stop at
14022         a non-statement instruction, and only refresh the step info when
14023         we land in the middle of a line's range.  Also add an extra
14024         comment.
14025         * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14026         field.
14027         * record-btrace.c (btrace_find_line_range): Only record lines
14028         marked as is-statement.
14029         * stack.c (frame_show_address): Show the frame address if we are
14030         in a non-statement sal.
14031         * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14032         (maintenance_print_one_line_table): Print a header for the is_stmt
14033         column, and include is_stmt information in the output.
14034         * symtab.c (find_pc_sect_line): Find lines marked as statements in
14035         preference to non-statements.
14036         (find_pcs_for_symtab_line): Prefer is-statement entries.
14037         (find_line_common): Likewise.
14038         * symtab.h (struct linetable_entry): Add is_stmt field.
14039         (struct symtab_and_line): Likewise.
14040         * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14041         arranging the line table.
14043 2020-03-07  Tom de Vries  <tdevries@suse.de>
14045         * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14046         DIE.
14048 2020-03-07  Tom Tromey  <tom@tromey.com>
14050         * valops.c (value_literal_complex): Remove obsolete comment.
14051         * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14052         comment.
14054 2020-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
14056         * infrun.h: Forward-declare thread_info.
14057         (set_step_info): Add thread_info parameter, add doc.
14058         * infrun.c (set_step_info): Add thread_info parameter, move doc
14059         to header.
14060         * infrun.c (process_event_stop_test): Pass thread to
14061         set_step_info call.
14062         * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14063         set_step_info.
14064         (prepare_one_step): Add thread_info parameter, pass it to
14065         set_step_frame and prepare_one_step (recursive) call.
14066         (step_1): Pass thread to prepare_one_step call.
14067         (step_command_fsm::should_stop): Pass thread to
14068         prepare_one_step.
14069         (until_next_fsm): Pass thread to set_step_frame call.
14070         (finish_command): Pass thread to set_step_info call.
14072 2020-03-06  Hannes Domani  <ssbssa@yahoo.de>
14074         * windows-tdep.c (windows_solib_create_inferior_hook):
14075         Check if inferior is running.
14077 2020-03-06  Tom de Vries  <tdevries@suse.de>
14079         * NEWS: Fix "the the".
14080         * ctfread.c: Same.
14082 2020-03-06  Tom de Vries  <tdevries@suse.de>
14084         * psymtab.c (psymtab_to_symtab): Don't print "done.".
14086 2020-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
14088         * .dir-locals.el: Add a comment referencing the other copies of
14089         this file.
14091 2020-03-05  John Baldwin  <jhb@FreeBSD.org>
14093         * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14094         psargs.
14096 2020-03-05  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
14098         * .gitattributes: New file.
14100 2020-03-04  Tom Tromey  <tom@tromey.com>
14102         * symmisc.c (print_symbol_bcache_statistics)
14103         (print_objfile_statistics): Update.
14104         * symfile.c (allocate_symtab): Use intern.
14105         * psymtab.c (partial_symtab::partial_symtab): Use intern.
14106         * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14107         macro_cache>: Remove.
14108         <string_cache>: New member.
14109         (struct objfile) <intern>: New methods.
14110         * elfread.c (elf_symtab_read): Use intern.
14111         * dwarf2/read.c (fixup_go_packaging): Intern package name.
14112         (dwarf2_compute_name, dwarf2_physname)
14113         (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14114         names.
14115         (guess_partial_die_structure_name): Update.
14116         (partial_die_info::fixup): Intern name.
14117         (dwarf2_canonicalize_name): Change parameter to objfile.  Intern
14118         name.
14119         (dwarf2_name): Intern name.  Update.
14120         * buildsym.c (buildsym_compunit::get_macro_table): Use
14121         string_cache.
14123 2020-03-04  Tom Tromey  <tom@tromey.com>
14125         * jit.c (bfd_open_from_target_memory): Make "target" const.
14126         * corefile.c (gnutarget): Now const.
14127         * gdbcore.h (gnutarget): Now const.
14129 2020-03-04  Hannes Domani  <ssbssa@yahoo.de>
14131         * NEWS: Mention support for WOW64 processes.
14132         * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14133         (amd64_windows_segment_register_p): Remove static.
14134         (_initialize_amd64_windows_nat): Update.
14135         * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14136         * i386-windows-nat.c (context_offset): Update.
14137         (i386_mappings): Rename and remove static.
14138         (i386_windows_segment_register_p): Remove static.
14139         (_initialize_i386_windows_nat): Update.
14140         * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14141         (STATUS_WX86_SINGLE_STEP): New macro.
14142         (EnumProcessModulesEx): New macro.
14143         (Wow64SuspendThread): New macro.
14144         (Wow64GetThreadContext): New macro.
14145         (Wow64SetThreadContext): New macro.
14146         (Wow64GetThreadSelectorEntry): New macro.
14147         (windows_set_context_register_offsets): Add static.
14148         (windows_set_segment_register_p): Likewise.
14149         (windows_add_thread): Adapt for WOW64 processes.
14150         (windows_fetch_one_register): Likewise.
14151         (windows_nat_target::fetch_registers): Likewise.
14152         (windows_store_one_register): Likewise.
14153         (display_selector): Likewise.
14154         (display_selectors): Likewise.
14155         (handle_exception): Likewise.
14156         (windows_continue): Likewise.
14157         (windows_nat_target::resume): Likewise.
14158         (windows_add_all_dlls): Likewise.
14159         (do_initial_windows_stuff): Likewise.
14160         (windows_nat_target::attach): Likewise.
14161         (windows_get_exec_module_filename): Likewise.
14162         (windows_nat_target::create_inferior): Likewise.
14163         (windows_xfer_siginfo): Likewise.
14164         (_initialize_loadable): Initialize Wow64SuspendThread,
14165         Wow64GetThreadContext, Wow64SetThreadContext,
14166         Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14167         * windows-nat.h (windows_set_context_register_offsets):
14168         Remove declaration.
14169         (windows_set_segment_register_p): Likewise.
14170         (i386_windows_segment_register_p): Add declaration.
14171         (amd64_windows_segment_register_p): Likewise.
14173 2020-03-04  Luis Machado  <luis.machado@linaro.org>
14175         Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14176         in "info registers" for AArch64/ARM.
14178         The change caused "info registers" to not print GPR's.
14180         gdb/ChangeLog:
14182         2020-02-01  Shahab Vahedi  <shahab@synopsys.com>
14184         * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14185         when reg->group is empty and reggroup is not.
14187 2020-03-03  Tom Tromey  <tromey@adacore.com>
14189         * dwarf2/frame.c (struct dwarf2_frame_cache)
14190         <checked_tailcall_bottom, entry_cfa_sp_offset,
14191         entry_cfa_sp_offset_p>: Remove members.
14192         (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14193         (dwarf2_frame_prev_register): Don't call
14194         dwarf2_tailcall_sniffer_first.
14195         (dwarf2_append_unwinders): Don't append tailcall unwinder.
14196         * frame-unwind.c (add_unwinder): New fuction.
14197         (frame_unwind_init): Use it.  Add tailcall unwinder.
14199 2020-03-03  Andrew Burgess  <andrew.burgess@embecosm.com>
14200             Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
14202         * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14203         value should be printed as true.
14205 2020-03-03  Hannes Domani  <ssbssa@yahoo.de>
14207         * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14208         (windows_init_abi): Set and use windows_so_ops.
14210 2020-03-03  Sergio Durigan Junior  <sergiodj@redhat.com>
14212         * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14213         when verifying if dealing with a convenience variable.
14215 2020-03-03  Luis Machado  <luis.machado@linaro.org>
14217         * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14219 2020-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
14221         * infrun.c (gdbarch_supports_displaced_stepping): New.
14222         (use_displaced_stepping): Break up conditions in smaller pieces.
14223         Use gdbarch_supports_displaced_stepping.
14224         (displaced_step_prepare_throw): Use
14225         gdbarch_supports_displaced_stepping.
14227 2020-03-02  Andrew Burgess  <andrew.burgess@embecosm.com>
14229         * NEWS: Mention new behaviour of the history filename.
14230         * top.c (write_history_p): Add comment.
14231         (show_write_history_p): Add header comment, give a different
14232         message when history writing is on, but the history filename is
14233         empty.
14234         (history_filename): Add comment.
14235         (history_filename_empty): New function.
14236         (show_history_filename): Add header comment, give a different
14237         message when the filename is empty.
14238         (init_history): Compare history_filename against nullptr, and only
14239         read history if the filename is not empty.
14240         (set_history_filename): Add header comment, and only make
14241         non-empty filenames absolute.
14242         (init_main): Make the filename argument to 'set history filename'
14243         optional.
14245 2020-03-02  Christian Biesinger  <cbiesinger@google.com>
14247         * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14248         (arm_supply_vfpregset): ...this, and update to use VFP registers.
14249         (fetch_fp_register): Update.
14250         (fetch_fp_regs): Update.
14251         (store_fp_register): Update.
14252         (store_fp_regs): Update.
14253         (arm_netbsd_nat_target::read_description): New function.
14254         (fetch_elfcore_registers): Update.
14256 2020-03-02  Andrew Burgess  <andrew.burgess@embecosm.com>
14258         * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14259         general_thread if the stop reply is missing a thread-id.
14260         (remote_target::process_stop_reply): Use the first non-exited
14261         thread if the target didn't pass a thread-id.
14262         * infrun.c (do_target_wait): Move call to
14263         switch_to_inferior_no_thread to ....
14264         (do_target_wait_1): ... here.
14266 2020-02-29  Jon Turney  <jon.turney@dronecode.org.uk>
14268         * debuginfod-support.c: Include defs.h first.
14270 2020-02-28  Tom de Vries  <tdevries@suse.de>
14272         * symfile.c (set_initial_language): Use default language for lookup.
14274 2020-02-28  Simon Marchi  <simon.marchi@efficios.com>
14276         * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14277         reader variable, pass `this` to read_cutu_die_from_dwo.
14279 2020-02-27  Aaron Merey  <amerey@redhat.com>
14281         * source.c (open_source_file): Check for nullptr when computing
14282         srcpath.
14284 2020-02-27  Tom Tromey  <tromey@adacore.com>
14286         * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14287         member.
14288         (dwarf2_add_field): Don't update nfields.
14289         (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14291 2020-02-27  Andrew Burgess  <andrew.burgess@embecosm.com>
14293         * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14294         abs.
14296 2020-02-26  Tom Tromey  <tom@tromey.com>
14298         * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14299         (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14300         (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14301         (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14302         per_cu_data.
14304 2020-02-26  Tom Tromey  <tom@tromey.com>
14306         * dwarf2/index-write.c (psym_index_map): Change type.
14307         (add_address_entry_worker, write_one_signatured_type)
14308         (recursively_count_psymbols, recursively_write_psymbols)
14309         (class debug_names, psyms_seen_size, write_gdbindex)
14310         (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14312 2020-02-26  Aaron Merey  <amerey@redhat.com>
14314         * Makefile.in: Handle optional debuginfod support.
14315         * NEWS: Update.
14316         * README: Add --with-debuginfod summary.
14317         * config.in: Regenerate.
14318         * configure: Regenerate.
14319         * configure.ac: Handle optional debuginfod support.
14320         * debuginfod-support.c: debuginfod helper functions.
14321         * debuginfod-support.h: Ditto.
14322         * doc/gdb.texinfo: Add --with-debuginfod to configure options
14323         summary.
14324         * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14325         when a dwz file cannot be found.
14326         * elfread.c (elf_symfile_read): Query debuginfod servers when a
14327         debuginfo file cannot be found.
14328         * source.c (open_source_file): Query debuginfod servers when a
14329         source file cannot be found.
14330         * top.c (print_gdb_configuration): Include
14331         --{with,without}-debuginfod in the output.
14333 2020-02-26  Jérémie Galarneau  <jeremie.galarneau@efficios.com>
14335         * thread.c (thr_try_catch_cmd): Print thread name.
14337 2020-02-26  Simon Marchi  <simon.marchi@efficios.com>
14339         * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14340         dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14341         dwarf2_fetch_die_type_sect_off): Move to...
14342         * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14343         dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14344         dwarf2_fetch_die_type_sect_off): ... here.
14345         * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14346         dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14347         dwarf2_fetch_die_type_sect_off): Move doc to header file.
14349 2020-02-26  Tom de Vries  <tdevries@suse.de>
14351         PR gdb/25603
14352         * symfile.c (set_initial_language): Exit-early if
14353         language_mode == language_mode_manual.
14355 2020-02-25  Simon Marchi  <simon.marchi@polymtl.ca>
14357         * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14358         * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14359         * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14361 2020-02-25  Andrew Burgess  <andrew.burgess@embecosm.com>
14363         * gdbtypes.c (create_array_type_with_stride): Handle negative
14364         array strides.
14365         * valarith.c (value_subscripted_rvalue): Likewise.
14367 2020-02-25  Luis Machado  <luis.machado@linaro.org>
14369         * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14371 2020-02-25  Simon Marchi  <simon.marchi@polymtl.ca>
14373         * loc.h (dwarf2_get_die_type): Move to...
14374         * read.h (dwarf2_get_die_type): ... here.
14375         * read.c (dwarf2_get_die_type): Move doc to header.
14377 2020-02-25  Joel Brobecker  <brobecker@adacore.com>
14379         * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14380         'gnulib/Makefile.in' to the list.
14382 2020-02-24  Tom Tromey  <tom@tromey.com>
14384         * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14385         Remove.
14386         * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14387         XOBNEWVEC.
14389 2020-02-24  Tom Tromey  <tom@tromey.com>
14391         * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14392         New method.
14393         * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14394         (dw2_do_instantiate_symtab, dw2_get_file_names)
14395         (build_type_psymtab_dependencies, load_full_type_unit): Update.
14397 2020-02-24  Tom Tromey  <tom@tromey.com>
14399         * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14400         make_scoped_restore.
14401         (dwarf2_psymtab::read_symtab): Don't clear
14402         reading_partial_symbols.
14404 2020-02-24  Tom de Vries  <tdevries@suse.de>
14406         PR gdb/25592
14407         * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14409 2020-02-24  Tom de Vries  <tdevries@suse.de>
14411         * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14412         commands layout next/prev/regs.
14414 2020-02-22  Tom Tromey  <tom@tromey.com>
14416         * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14417         * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14419 2020-02-22  Tom Tromey  <tom@tromey.com>
14421         * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14423 2020-02-22  Tom Tromey  <tom@tromey.com>
14425         * tui/tui-win.c (_initialize_tui_win): Add usage text.
14426         * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14427         * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14428         * tui/tui.c (_initialize_tui): Add usage text.
14430 2020-02-22  Tom Tromey  <tom@tromey.com>
14432         * tui/tui-win.c (tui_set_focus_command)
14433         (tui_set_win_height_command): Use error_no_arg.
14434         (_initialize_tui_win): Update help text.
14435         (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14437 2020-02-22  Tom Tromey  <tom@tromey.com>
14439         * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14440         * tui/tui-disasm.h (struct tui_disasm_window)
14441         <display_start_addr>: Declare.
14442         * tui/tui-source.h (struct tui_source_window)
14443         <display_start_addr>: Declare.
14444         * tui/tui-winsource.h (struct tui_source_window_base)
14445         <show_source_line, display_start_addr>: New methods.
14446         <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14447         Rename and move to protected section.
14448         * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14449         (tui_source_window_base::do_erase_source_content): Update.
14450         (tui_source_window_base::show_source_line): Now a method.
14451         (tui_source_window_base::show_source_content)
14452         (tui_source_window_base::tui_source_window_base)
14453         (tui_source_window_base::rerender)
14454         (tui_source_window_base::refill)
14455         (tui_source_window_base::do_scroll_horizontal)
14456         (tui_source_window_base::set_is_exec_point_at)
14457         (tui_source_window_base::update_breakpoint_info)
14458         (tui_source_window_base::update_exec_info): Update.
14459         * tui/tui-source.c (tui_source_window::set_contents)
14460         (tui_source_window::showing_source_p)
14461         (tui_source_window::do_scroll_vertical)
14462         (tui_source_window::location_matches_p)
14463         (tui_source_window::line_is_displayed): Update.
14464         (tui_source_window::display_start_addr): New method.
14465         * tui/tui-disasm.c (tui_disasm_window::set_contents)
14466         (tui_disasm_window::do_scroll_vertical)
14467         (tui_disasm_window::location_matches_p): Update.
14468         (tui_disasm_window::display_start_addr): New method.
14470 2020-02-22  Tom Tromey  <tom@tromey.com>
14472         * NEWS: Add entry for gdb.register_window_type.
14473         * tui/tui-layout.h (window_factory): New typedef.
14474         (tui_register_window): Declare.
14475         * tui/tui-layout.c (saved_tui_windows): New global.
14476         (tui_apply_current_layout): Use it.
14477         (tui_register_window): New function.
14478         * python/python.c (do_start_initialization): Call
14479         gdbpy_initialize_tui.
14480         (python_GdbMethods): Add "register_window_type" function.
14481         * python/python-internal.h (gdbpy_register_tui_window)
14482         (gdbpy_initialize_tui): Declare.
14483         * python/py-tui.c: New file.
14484         * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14486 2020-02-22  Tom Tromey  <tom@tromey.com>
14488         * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14490 2020-02-22  Tom Tromey  <tom@tromey.com>
14492         * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14493         * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14494         * tui/tui-data.c (tui_set_win_with_focus): Remove.
14495         (tui_set_win_focus_to): Move from tui-win.c.
14497 2020-02-22  Tom Tromey  <tom@tromey.com>
14499         * tui/tui-layout.c (make_standard_window, get_locator_window): New
14500         functions.
14501         (known_window_types): New global.
14502         (tui_get_window_by_name): Reimplement.
14503         (initialize_known_windows): New function.
14504         (validate_window_name): Rewrite.
14505         (_initialize_tui_layout): Call initialize_known_windows.
14507 2020-02-22  Tom Tromey  <tom@tromey.com>
14509         * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14510         Remove constants.
14511         * tui/tui-winsource.h (struct tui_source_window_base)
14512         <tui_source_window_base>: Remove parameter.
14513         * tui/tui-winsource.c
14514         (tui_source_window_base::tui_source_window_base): Remove
14515         parameter.
14516         (tui_source_window_base::refill): Update.
14517         * tui/tui-stack.h (struct tui_locator_window)
14518         <tui_locator_window>: Update.
14519         * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14520         Default the constructor.
14521         * tui/tui-regs.h (struct tui_data_item_window)
14522         <tui_data_item_window>: Default the constructor.
14523         (struct tui_data_window) <tui_data_window>: Likewise.
14524         * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14525         Default the constructor.
14526         * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14527         Default the constructor.
14528         <type>: Remove.
14529         (struct tui_win_info) <tui_win_info>: Default the constructor.
14530         * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14531         * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14532         Default the constructor.
14534 2020-02-22  Tom Tromey  <tom@tromey.com>
14536         * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14537         * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14538         * tui/tui-win.c (tui_resize_all): Don't call
14539         tui_delete_invisible_windows.
14540         * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14541         done.
14542         (tui_set_layout): Update.
14543         (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14544         * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14545         * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14547 2020-02-22  Tom Tromey  <tom@tromey.com>
14549         * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14550         correctly.
14552 2020-02-22  Tom Tromey  <tom@tromey.com>
14554         * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14556 2020-02-22  Tom Tromey  <tom@tromey.com>
14558         * tui/tui-winsource.h (struct tui_source_window_iterator)
14559         <inner_iterator>: New etytypedef.
14560         <tui_source_window_iterator>: Take "end" parameter.
14561         <tui_source_window_iterator>: Take iterator.
14562         <operator*, advance>: Update.
14563         <m_iter>: Change type.
14564         <m_end>: New field.
14565         (struct tui_source_windows) <begin, end>: Update.
14566         * tui/tui-layout.c (tui_windows): New global.
14567         (tui_apply_current_layout): Clear tui_windows.
14568         (tui_layout_window::apply): Update tui_windows.
14569         * tui/tui-data.h (tui_windows): Declare.
14570         (all_tui_windows): Now inline function.
14571         (class tui_window_iterator, struct all_tui_windows): Remove.
14573 2020-02-22  Tom Tromey  <tom@tromey.com>
14575         PR tui/17850:
14576         * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14577         * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14578         "height" argument.
14579         (class tui_layout_window) <get_sizes>: Likewise.
14580         (class tui_layout_split) <tui_layout_split>: Add "vertical"
14581         argument.
14582         <get_sizes>: Add "height" argument.
14583         <m_vertical>: New field.
14584         * tui/tui-layout.c (tui_layout_split::clone): Update.
14585         (tui_layout_split::get_sizes): Add "height" argument.
14586         (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14587         (tui_new_layout_command): Parse "-horizontal".
14588         (_initialize_tui_layout): Update help string.
14589         (tui_layout_split::specification): Add "-horizontal" when needed.
14590         * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14591         argument.
14592         * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14593         New methods.
14595 2020-02-22  Tom Tromey  <tom@tromey.com>
14597         * tui/tui-layout.h (enum tui_adjust_result): New.
14598         (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14599         (class tui_layout_window) <adjust_size>: Return
14600         tui_adjust_result.  Rewrite.
14601         (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14602         * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14604 2020-02-22  Tom Tromey  <tom@tromey.com>
14606         * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14607         parameter and return types.
14608         (class tui_layout_base) <specification>: Add "depth".
14609         (class tui_layout_window) <specification>: Add "depth".
14610         (class tui_layout_split) <specification>: Add "depth".
14611         * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14612         and return types.
14613         (tui_new_layout_command): Parse sub-layouts.
14614         (_initialize_tui_layout): Update help string.
14615         (tui_layout_window::specification): Add "depth".
14616         (add_layout_command): Update.
14618 2020-02-22  Tom Tromey  <tom@tromey.com>
14620         * NEWS: Add "tui new-layout" item.
14621         * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14622         Add new-layout command to help text.
14623         (validate_window_name): New function.
14624         (tui_new_layout_command): New function.
14625         (_initialize_tui_layout): Register "new-layout".
14626         (tui_layout_window::specification): New method.
14627         (tui_layout_window::specification): New method.
14628         * tui/tui-layout.h (class tui_layout_base) <specification>: New
14629         method.
14630         (class tui_layout_window) <specification>: New method.
14631         (class tui_layout_split) <specification>: New method.
14633 2020-02-22  Tom Tromey  <tom@tromey.com>
14635         * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14636         * tui/tui-win.c (window_name_completer): Update comment.
14637         * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14638         Declare method.
14639         (class tui_layout_window) <replace_window>: Likewise.
14640         (class tui_layout_split) <replace_window>: Likewise.
14641         (tui_set_layout): Don't declare.
14642         (tui_set_initial_layout): Declare function.
14643         * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14644         (asm_regs_layout): New globals.
14645         (tui_current_layout, show_layout): Remove.
14646         (tui_set_layout, tui_add_win_to_layout): Rewrite.
14647         (find_layout, tui_apply_layout): New function.
14648         (layout_completer): Remove.
14649         (tui_next_layout): Reimplement.
14650         (tui_next_layout_command): New function.
14651         (tui_set_initial_layout, tui_prev_layout_command): New functions.
14652         (tui_regs_layout): Reimplement.
14653         (tui_regs_layout_command): New function.
14654         (extract_display_start_addr): Rewrite.
14655         (next_layout, prev_layout): Remove.
14656         (tui_layout_window::replace_window): New method.
14657         (tui_layout_split::replace_window): New method.
14658         (destroy_layout): New function.
14659         (layout_list): New global.
14660         (add_layout_command): New function.
14661         (initialize_layouts): Update.
14662         (tui_layout_command): New function.
14663         (_initialize_tui_layout): Install "layout" commands.
14664         * tui/tui-data.h (enum tui_layout_type): Remove.
14665         (tui_current_layout): Don't declare.
14667 2020-02-22  Tom Tromey  <tom@tromey.com>
14669         * tui/tui-regs.c (tui_reg_layout): Remove.
14670         (tui_reg_command): Use tui_regs_layout.
14671         * tui/tui-layout.h (tui_reg_command): Declare.
14672         * tui/tui-layout.c (tui_reg_command): New function.
14674 2020-02-22  Tom Tromey  <tom@tromey.com>
14676         * tui/tui.c (tui_rl_delete_other_windows): Call
14677         tui_remove_some_windows.
14678         * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14679         Declare method.
14680         (class tui_layout_window) <remove_windows>: New method.
14681         (class tui_layout_split) <remove_windows>: Declare.
14682         (tui_remove_some_windows): Declare.
14683         * tui/tui-layout.c (tui_remove_some_windows): New function.
14684         (tui_layout_split::remove_windows): New method.
14686 2020-02-22  Tom Tromey  <tom@tromey.com>
14688         * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14689         * tui/tui-layout.h (tui_next_layout): Declare.
14690         * tui/tui-layout.c (tui_next_layout): New function.
14692 2020-02-22  Tom Tromey  <tom@tromey.com>
14694         * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14695         correct coordinates.
14697 2020-02-22  Tom Tromey  <tom@tromey.com>
14699         * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14700         * tui/tui-layout.c (tui_add_win_to_layout): Add assert.  Remove
14701         DATA_WIN case.
14703 2020-02-22  Tom Tromey  <tom@tromey.com>
14705         * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14706         TUI_DISASM_WIN, not tui_win_list.
14708 2020-02-22  Tom Tromey  <tom@tromey.com>
14710         * valprint.c (generic_val_print_enum_1)
14711         (val_print_type_code_flags): Style member names.
14712         * rust-lang.c (val_print_struct, rust_print_enum)
14713         (rust_print_struct_def, rust_internal_print_type): Style member
14714         names.
14715         * p-valprint.c (pascal_object_print_value_fields): Style member
14716         names.  Only call fprintf_symbol_filtered for static members.
14717         * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14718         * f-valprint.c (f_val_print): Style member names.
14719         * f-typeprint.c (f_type_print_base): Style member names.
14720         * cp-valprint.c (cp_print_value_fields): Style member names.  Only
14721         call fprintf_symbol_filtered for static members.
14722         (cp_print_class_member): Style member names.
14723         * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14724         member names.
14725         * ada-valprint.c (ada_print_scalar): Style enum names.
14726         (ada_val_print_enum): Likewise.
14727         * ada-typeprint.c (print_enum_type): Style enum names.
14729 2020-02-21  Tom Tromey  <tom@tromey.com>
14731         * psympriv.h (struct partial_symtab): Update comment.
14733 2020-02-21  Tom Tromey  <tromey@adacore.com>
14735         * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14736         type is CORE_ADDR.
14738 2020-02-21  Tom de Vries  <tdevries@suse.de>
14740         PR gdb/25534
14741         * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14742         if dependencies[i]->user != NULL.
14744 2020-02-21  Ali Tamur  <tamur@google.com>
14746         * dwarf2/read.c (dwarf2_name): Add null check.
14748 2020-02-20  Tom Tromey  <tom@tromey.com>
14750         * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14751         ">=", in binary search.
14752         (dwarf2_find_containing_comp_unit): New overload.
14753         (run_test): New self-test.
14754         (_initialize_dwarf2_read): Register new test.
14756 2020-02-20  Nelson Chu  <nelson.chu@sifive.com>
14758         * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14759         * riscv-tdep.h: Likewise.
14760         * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14761         rv32-only CSR.
14762         * features/riscv/64bit-csr.xml: Regenerated.
14764 2020-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
14765             Tom Tromey  <tom@tromey.com>
14767         * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14768         of 'fputc_unfiltered'.
14769         (putchar_unfiltered): Call 'fputc_unfiltered'.
14770         (fputc_unfiltered): Call 'fputs_unfiltered'.
14772 2020-02-20  Andrew Burgess  <andrew.burgess@embecosm.com>
14774         * config.in: Regenerate.
14775         * configure: Regenerate.
14776         * configure.ac: Add --with-python-libdir option.
14777         * main.c: Use WITH_PYTHON_LIBDIR.
14779 2020-02-19  Tom Tromey  <tom@tromey.com>
14781         * symtab.c (general_symbol_info::compute_and_set_names): Use
14782         obstack_strndup.  Simplify call to symbol_set_demangled_name.
14784 2020-02-19  Simon Marchi  <simon.marchi@efficios.com>
14786         * dwarf2/read.c (allocate_signatured_type_table,
14787         allocate_dwo_unit_table, allocate_type_unit_groups_table,
14788         allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14789         Remove objfile parameter, update all callers.
14791 2020-02-19  Doug Evans  <dje@google.com>
14793         PR rust/25535
14794         * rust-lang.c (rust_print_enum): Apply embedded_offset to
14795         rust_enum_variant calculation.
14797 2020-02-19  Tom Tromey  <tromey@adacore.com>
14799         * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14801 2020-02-19  Tom Tromey  <tromey@adacore.com>
14803         * ada-lang.c (cache_symbol): Use obstack_strdup.
14805 2020-02-19  Andrew Burgess  <andrew.burgess@embecosm.com>
14807         * configure: Regenerate.
14809 2020-02-19  Tom Tromey  <tromey@adacore.com>
14811         * python/python.c (do_start_initialization): Use XNEWVEC.  Remove
14812         NULL check.
14814 2020-02-19  Maciej W. Rozycki  <macro@wdc.com>
14816         * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14818 2020-02-19  Andrew Burgess  <andrew.burgess@embecosm.com>
14820         * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14821         if GDBSERVER is not defined.
14822         (riscv_tdesc_cache): Likewise, also store const target_desc.
14823         (STATIC_IN_GDB): Define.
14824         (riscv_create_target_description): Update declaration with
14825         STATIC_IN_GDB.
14826         (riscv_lookup_target_description): New function, only define if
14827         GDBSERVER is not defined.
14828         * arch/riscv.h (riscv_create_target_description): Declare only
14829         when GDBSERVER is defined.
14830         (riscv_lookup_target_description): New declaration when GDBSERVER
14831         is not defined.
14832         * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14833         (riscv_linux_read_features): ...this, and return
14834         riscv_gdbarch_features instead of target_desc.
14835         * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14836         (riscv_linux_read_description): Rename to...
14837         (riscv_linux_read_features): ...this.
14838         * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14839         Update to use riscv_gdbarch_features and
14840         riscv_lookup_target_description.
14841         * riscv-tdep.c (riscv_find_default_target_description): Use
14842         riscv_lookup_target_description instead of
14843         riscv_create_target_description.
14845 2020-02-18  Simon Marchi  <simon.marchi@efficios.com>
14847         * valprint.c (generic_val_print_enum_1): When printing a flag
14848         enum with value 0 and there is no enumerator with value 0, print
14849         just "0" instead of "(unknown: 0x0)".
14851 2020-02-18  Simon Marchi  <simon.marchi@efficios.com>
14853         * valprint.c (generic_val_print_enum_1): Print unknown part of
14854         flag enum in hex.
14856 2020-02-18  Simon Marchi  <simon.marchi@efficios.com>
14858         * dwarf2/read.c (update_enumeration_type_from_children): Allow
14859         flag enums to contain duplicate enumerators.
14860         * valprint.c (generic_val_print_enum_1): Update comment.
14862 2020-02-18  Simon Marchi  <simon.marchi@efficios.com>
14864         * dwarf2/read.c: Include "count-one-bits.h".
14865         (update_enumeration_type_from_children): If an enumerator has
14866         multiple bits set, don't treat the enumeration as a "flag enum".
14867         * valprint.c (generic_val_print_enum_1): Assert that enumerators
14868         of flag enums have 0 or 1 bit set.
14870 2020-02-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14872         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14873         conversion.
14874         * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14875         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14876         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14877         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14878         * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14880 2020-02-18  Simon Marchi  <simon.marchi@efficios.com>
14882         * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14884 2020-02-14  Simon Marchi  <simon.marchi@efficios.com>
14886         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14887         displaced_step_closure_up.
14888         * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14889         (struct displaced_step_closure_up):
14890         * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14891         * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14892         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14893         Likewise.
14894         * gdbarch.sh (displaced_step_copy_insn): Likewise.
14895         * gdbarch.c, gdbarch.h: Re-generate.
14896         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14897         displaced_step_closure_up.
14898         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14899         * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14900         * infrun.h (displaced_step_closure_up): New type alias.
14901         (struct displaced_step_inferior_state) <step_closure>: Change
14902         type to displaced_step_closure_up.
14903         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14904         displaced_step_closure_up.
14905         * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14907 2020-02-14  Tom Tromey  <tom@tromey.com>
14909         * minidebug.c (gnu_debug_key): New global.
14910         (find_separate_debug_file_in_section): Use it.
14912 2020-02-14  Simon Marchi  <simon.marchi@efficios.com>
14914         * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14915         std::unique_ptr.
14916         * gdbarch.c: Re-generate.
14917         * gdbarch.h: Re-generate.
14918         * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14919         change.
14920         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14921         type to std::unique_ptr.
14922         * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14923         * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14924         * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14925         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14926         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14927         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14928         * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14929         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14930         * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14932 2020-02-14  Simon Marchi  <simon.marchi@efficios.com>
14934         * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14935         std::unique_ptr.
14936         (displaced_step_clear): Rename to...
14937         (displaced_step_reset): ... this.  Just call displaced->reset ().
14938         (displaced_step_clear_cleanup): Rename to...
14939         (displaced_step_reset_cleanup): ... this.
14940         (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14941         (displaced_step_fixup): Likewise.
14942         (resume_1): Likewise.
14943         (handle_inferior_event): Restore child's memory before calling
14944         displaced_step_fixup on the parent.
14945         * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14946         to std::unique_ptr.
14947         <step_closure>: Change type to std::unique_ptr.
14949 2020-02-14  Simon Marchi  <simon.marchi@efficios.com>
14951         * arm-tdep.c: Include count-one-bits.h.
14952         (cleanup_block_store_pc): Use count_one_bits.
14953         (cleanup_block_load_pc): Use count_one_bits.
14954         (arm_copy_block_xfer): Use count_one_bits.
14955         (thumb2_copy_block_xfer): Use count_one_bits.
14956         (thumb_copy_pop_pc_16bit): Use count_one_bits.
14957         * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14958         (thumb_get_next_pcs_raw): Use count_one_bits.
14959         (arm_get_next_pcs_raw): Use count_one_bits_l.
14960         * arch/arm.c (bitcount): Remove.
14961         * arch/arm.h (bitcount): Remove.
14963 2020-02-14  Tom Tromey  <tromey@adacore.com>
14965         * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14966         Update.
14967         * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14968         * dwarf2/loc.c (call_site_find_chain_1): Return
14969         unique_xmalloc_ptr.
14970         (call_site_find_chain): Likewise.
14972 2020-02-14  Richard Biener  <rguenther@suse.de>
14974         * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14975         on expression with division operators.
14977 2020-02-13  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
14979         * MAINTAINERS (Write After Approval): Adding myself.
14981 2020-02-12  Tom Tromey  <tom@tromey.com>
14983         * event-loop.c (event_data, gdb_event, event_handler_func):
14984         Remove.
14986 2020-02-12  Tom Tromey  <tom@tromey.com>
14988         * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14989         (dwarf2_frame_objfile_data): Add comment.
14990         (find_comp_unit, set_comp_unit): New functions.
14991         (dwarf2_frame_find_fde): Use find_comp_unit.
14992         (dwarf2_build_frame_info): Use set_comp_unit.
14994 2020-02-12  Tom Tromey  <tom@tromey.com>
14996         * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14997         (comp_unit): Don't initialize objfile.
14998         (execute_cfa_program): Add text_offset parameter.
14999         (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15000         (dwarf2_frame_cache): Update.
15001         (dwarf2_build_frame_info): Don't set "objfile" member.
15003 2020-02-12  Tom Tromey  <tom@tromey.com>
15005         * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15006         (decode_frame_entry): Likewise.
15007         (dwarf2_build_frame_info): Update.
15009 2020-02-12  Tom Tromey  <tom@tromey.com>
15011         * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15012         (decode_frame_entry_1): Use the comp_unit obstack.
15014 2020-02-12  Tom Tromey  <tom@tromey.com>
15016         * dwarf2/frame.c (struct comp_unit): Add initializers and
15017         constructor.
15018         (dwarf2_frame_objfile_data): Store a comp_unit.
15019         (dwarf2_frame_find_fde): Update.
15020         (dwarf2_build_frame_info): Use "new".
15022 2020-02-12  Tom Tromey  <tom@tromey.com>
15024         * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15025         (dwarf2_fde_table): Typedef for std::vector.
15026         (dwarf2_frame_objfile_data): Remove the deleter.  Now static.
15027         (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15028         (decode_frame_entry): Update.
15029         (dwarf2_build_frame_info): Use "new".
15031 2020-02-12  Christian Biesinger  <cbiesinger@google.com>
15033         * arm-tdep.c (arm_gdbarch_init): Update.
15034         * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15035         have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15036         have_neon, is_m>: Change to bool.
15038 2020-02-12  Christian Biesinger  <cbiesinger@google.com>
15040         * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15042 2020-02-12  Tom Tromey  <tom@tromey.com>
15044         * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15046 2020-02-12  Hannes Domani  <ssbssa@yahoo.de>
15048         * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15049         (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15051 2020-02-11  Tom Tromey  <tom@tromey.com>
15053         * psymtab.h: Update comment.
15055 2020-02-11  Tom Tromey  <tom@tromey.com>
15057         * gdb_obstack.h (struct auto_obstack): Use
15058         DISABLE_COPY_AND_ASSIGN.
15060 2020-02-11  Tom Tromey  <tom@tromey.com>
15062         * dwarf2/frame.h (struct objfile): Don't forward declare.
15064 2020-02-11  Christian Biesinger  <cbiesinger@google.com>
15066         * cris-tdep.c (cris_supply_gregset): Change signature to match
15067         what struct regset expects.
15068         (cris_regset): New struct.
15069         (fetch_core_registers): Remove.
15070         (cris_iterate_over_regset_sections): New function.
15071         (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15072         (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15074 2020-02-11  Christian Biesinger  <cbiesinger@google.com>
15076         * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15077         registers.
15079 2020-02-11  Christian Biesinger  <cbiesinger@google.com>
15081         * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15083 2020-02-11  Simon Marchi  <simon.marchi@efficios.com>
15085         * configure: Re-generate.
15087 2020-02-11  Simon Marchi  <simon.marchi@efficios.com>
15089         * configure: Re-generate.
15091 2020-02-11  Simon Marchi  <simon.marchi@efficios.com>
15093         * acinclude: Update warning.m4 path.
15094         * warning.m4: Move to gdbsupport.
15096 2020-02-11  Tom Tromey  <tromey@adacore.com>
15098         * remote.c (remote_console_output): Update.
15099         * printcmd.c (printf_command): Update.
15100         * event-loop.c (gdb_wait_for_event): Update.
15101         * linux-nat.c (sigchld_handler): Update.
15102         * remote-sim.c (gdb_os_write_stdout): Update.
15103         (gdb_os_flush_stdout): Update.
15104         (gdb_os_flush_stderr): Update.
15105         (gdb_os_write_stderr): Update.
15106         * exceptions.c (print_exception): Update.
15107         * remote-fileio.c (remote_fileio_func_read): Update.
15108         (remote_fileio_func_write): Update.
15109         * tui/tui.c (tui_enable): Update.
15110         * tui/tui-interp.c (tui_interp::init): Update.
15111         * utils.c (init_page_info): Update.
15112         (putchar_unfiltered, fputc_unfiltered): Update.
15113         (gdb_flush): Update.
15114         (emit_style_escape): Update.
15115         (flush_wrap_buffer, fputs_maybe_filtered): Update.
15116         * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15117         (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15118         (stderr_file::write): Update.
15119         (stderr_file::puts): Update.
15120         * ui-file.h (ui_file_isatty, ui_file_write)
15121         (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15122         (ui_file_puts): Don't declare.
15124 2020-02-10  Tom de Vries  <tdevries@suse.de>
15126         * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15127         sentinel to char *.
15129 2020-02-09  Tom de Vries  <tdevries@suse.de>
15131         * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15132         filename if it matches "<artificial>".
15134 2020-02-09  Hannes Domani  <ssbssa@yahoo.de>
15136         * windows-tdep.c (struct enum_value_name): New struct.
15137         (create_enum): New function.
15138         (windows_get_siginfo_type): Create and use enum types.
15140 2020-02-09  Hannes Domani  <ssbssa@yahoo.de>
15142         * NEWS: Mention $_siginfo support for Windows.
15143         * windows-nat.c (handle_exception): Set siginfo_er.
15144         (windows_nat_target::mourn_inferior): Reset siginfo_er.
15145         (windows_xfer_siginfo): New function.
15146         (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15147         * windows-tdep.c (struct windows_gdbarch_data): New struct.
15148         (init_windows_gdbarch_data): New function.
15149         (get_windows_gdbarch_data): New function.
15150         (windows_get_siginfo_type): New function.
15151         (windows_init_abi): Register windows_get_siginfo_type.
15152         (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15154 2020-02-08  Tom Tromey  <tom@tromey.com>
15156         * dwarf2/read.c (class cutu_reader) <cutu_reader,
15157         init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15158         <keep>: Declare method.
15159         <m_keep>: Remove member.
15160         <~cutu_reader>: Remove.
15161         (cutu_reader::init_tu_and_read_dwo_dies): Update.
15162         (cutu_reader::cutu_reader): Update.
15163         (cutu_reader::keep): Rename from ~cutu_reader.
15164         (process_psymtab_comp_unit, build_type_psymtabs_1)
15165         (process_skeletonless_type_unit, load_partial_comp_unit)
15166         (load_full_comp_unit, dwarf2_read_addr_index)
15167         (read_signatured_type): Update.
15169 2020-02-08  Tom Tromey  <tom@tromey.com>
15171         * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15172         "want_partial_unit" parameter.
15173         (process_psymtab_comp_unit): Change want_partial_unit to bool.
15174         Inline check for DW_TAG_partial_unit.
15175         (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15177 2020-02-08  Tom Tromey  <tom@tromey.com>
15179         * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15180         read.c.
15181         * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15182         read.c.
15184 2020-02-08  Tom Tromey  <tom@tromey.com>
15186         * dwarf2/read.c (read_address): Move to comp-unit.c.
15187         (dwarf2_rnglists_process, dwarf2_ranges_process)
15188         (read_attribute_value, dwarf_decode_lines_1)
15189         (var_decode_location, decode_locdesc): Update.
15190         * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15191         read.c.  Remove "cu" parameter.
15192         * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15193         method.
15195 2020-02-08  Tom Tromey  <tom@tromey.com>
15197         * dwarf2/read.c (read_attribute_value, read_indirect_string)
15198         (read_indirect_line_string): Update.
15199         * dwarf2/comp-unit.c (read_offset): Remove.
15200         (read_comp_unit_head): Update.
15201         * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15202         method.
15203         (read_offset): Don't declare.
15205 2020-02-08  Tom Tromey  <tom@tromey.com>
15207         * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15208         * dwarf2/read.c (struct comp_unit_head): Move to
15209         dwarf2/comp-unit.h.
15210         (enum class rcuh_kind): Move to comp-unit.h.
15211         (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15212         (read_comp_unit_head, error_check_comp_unit_head)
15213         (read_and_check_comp_unit_head): Move to comp-unit.c.
15214         (read_offset, dwarf_unit_type_name): Likewise.
15215         (create_debug_type_hash_table, read_cutu_die_from_dwo)
15216         (cutu_reader::cutu_reader, read_call_site_scope)
15217         (find_partial_die, follow_die_offset): Update.
15218         * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15220 2020-02-08  Tom Tromey  <tom@tromey.com>
15222         * dwarf2/read.c (read_offset_1): Move to leb.c.
15223         (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15224         (dwarf_decode_macro_bytes): Update.
15225         * dwarf2/leb.c (read_offset): Rename; move from read.c.
15226         * dwarf2/leb.h (read_offset): Declare.
15228 2020-02-08  Tom Tromey  <tom@tromey.com>
15230         * dwarf2/read.c (dwarf2_section_size): Remove.
15231         (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15232         Update.
15233         * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15235 2020-02-08  Tom Tromey  <tom@tromey.com>
15237         * dwarf2/read.c (read_initial_length): Move to leb.c.
15238         * dwarf2/leb.h (read_initial_length): Declare.
15239         * dwarf2/leb.c (read_initial_length): Move from read.c.  Add
15240         handle_nonstd parameter.
15241         * dwarf2/frame.c (read_initial_length): Remove.
15242         (decode_frame_entry_1): Update.
15244 2020-02-08  Tom Tromey  <tom@tromey.com>
15246         * dwarf2/loc.c (dwarf2_find_location_expression)
15247         (dwarf_evaluate_loc_desc::get_tls_address)
15248         (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15249         (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15250         (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15251         (dwarf2_compile_property_to_c)
15252         (dwarf2_loc_desc_get_symbol_read_needs)
15253         (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15254         (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15255         (loclist_describe_location, loclist_tracepoint_var_ref)
15256         (loclist_generate_c_location): Update.
15257         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15258         * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15259         (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15260         (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15261         * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15262         (dwarf2_per_cu_data::addr_size)
15263         (dwarf2_per_cu_data::ref_addr_size)
15264         (dwarf2_per_cu_data::text_offset)
15265         (dwarf2_per_cu_data::addr_type): Now methods.
15266         (per_cu_header_read_in): Make per_cu "const".
15267         (dwarf2_version): Remove.
15268         (dwarf2_per_cu_data::int_type): Now a method.
15269         (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15270         (set_die_type, read_array_type, read_subrange_index_type)
15271         (read_tag_string_type, read_subrange_type): Update.
15272         * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15273         offset_size, ref_addr_size, text_offset, addr_type, version,
15274         objfile, int_type, addr_sized_int_type>: Declare methods.
15276 2020-02-08  Tom Tromey  <tom@tromey.com>
15278         * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15279         Move earlier.
15281 2020-02-08  Tom Tromey  <tom@tromey.com>
15283         * dwarf2/read.h (dwarf_line_debug): Declare.
15284         * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15285         * dwarf2/read.c: Move line_header code to new files.
15286         (dwarf_line_debug): No longer static.
15287         * dwarf2/line-header.c: New file.
15288         * dwarf2/line-header.h: New file.
15290 2020-02-08  Tom Tromey  <tom@tromey.com>
15292         * dwarf2/read.c (struct line_header) <file_full_name,
15293         file_file_name>: Return unique_xmalloc_ptr.
15294         (line_header::file_file_name): Update.
15295         (line_header::file_full_name): Update.
15296         (dw2_get_file_names_reader): Update.
15297         (macro_start_file): Update.
15299 2020-02-08  Tom Tromey  <tom@tromey.com>
15301         * dwarf2/read.c (struct line_header) <file_full_name,
15302         file_file_name>: Declare methods.
15303         (dw2_get_file_names_reader): Update.
15304         (file_file_name): Now a method.
15305         (file_full_name): Likewise.
15306         (macro_start_file): Update.
15308 2020-02-08  Tom Tromey  <tom@tromey.com>
15310         * dwarf2/read.c (dwarf_always_disassemble)
15311         (show_dwarf_always_disassemble): Move to loc.c.
15312         (_initialize_dwarf2_read): Move "always-disassemble" registration
15313         to loc.c.
15314         * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15315         * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c.  Now
15316         static.
15317         (show_dwarf_always_disassemble): Move from read.c.
15318         (_initialize_dwarf2loc): Move always-disassemble from read.c.
15320 2020-02-08  Tom Tromey  <tom@tromey.com>
15322         * dwarf2/read.c (~dwarf2_per_objfile): Update.
15323         (create_quick_file_names_table): Return htab_up.
15324         (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15325         Update.
15326         * dwarf2/read.h (struct dwarf2_per_objfile)
15327         <quick_file_names_table>: Now htab_up.
15329 2020-02-08  Tom Tromey  <tom@tromey.com>
15331         * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15333 2020-02-08  Tom Tromey  <tom@tromey.com>
15335         * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15336         Rewrite.
15337         (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15338         * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15339         (abbrev_table::abbrev_table): No longer inline.
15340         (ABBREV_HASH_SIZE): Remove.
15341         (abbrev_table::m_abbrevs): Now an htab_up.
15343 2020-02-08  Tom Tromey  <tom@tromey.com>
15345         * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15346         (cutu_reader): Update.
15347         (build_type_psymtabs_1): Update.
15348         * dwarf2/abbrev.c (abbrev_table::read): Rename.
15349         (abbrev_table::alloc_abbrev): Update.
15350         * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15351         (abbrev_table::read): New static method, renamed from
15352         abbrev_table_read_table.
15353         (abbrev_table::alloc_abbrev)
15354         (abbrev_table::add_abbrev): Now private.
15355         (abbrev_table::abbrev_table): Now private.
15356         (abbrev_table::m_abbrev_obstack): Now private.  Rename.
15358 2020-02-08  Tom Tromey  <tom@tromey.com>
15360         * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15361         * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15362         htab_up.
15364 2020-02-08  Tom Tromey  <tom@tromey.com>
15366         * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15367         htab_up.
15368         (lookup_dwo_unit_in_dwp): Update.
15369         (allocate_dwp_loaded_cutus_table): Return htab_up.  Don't allocate
15370         on obstack.
15372 2020-02-08  Tom Tromey  <tom@tromey.com>
15374         * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15375         obstack.
15377 2020-02-08  Tom Tromey  <tom@tromey.com>
15379         * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15380         line_header_hash.
15381         (handle_DW_AT_stmt_list): Update.  Don't allocate on obstack.
15382         * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15383         Change type to htab_up.
15385 2020-02-08  Tom Tromey  <tom@tromey.com>
15387         * dwarf2/read.c (allocate_type_unit_groups_table): Return
15388         htab_up.  Don't allocate on obstack.
15389         (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15390         * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15391         Change type to htab_up.
15393 2020-02-08  Tom Tromey  <tom@tromey.com>
15395         * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15396         Change type to htab_up.
15397         * dwarf2/read.c (create_signatured_type_table_from_index)
15398         (create_signatured_type_table_from_debug_names)
15399         (create_all_type_units, add_type_unit)
15400         (lookup_dwo_signatured_type, lookup_signatured_type)
15401         (process_skeletonless_type_unit): Update.
15402         (create_debug_type_hash_table, create_debug_types_hash_table):
15403         Change type of types_htab.
15404         (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15405         htab_up.  Don't allocate on obstack.
15406         (create_cus_hash_table): Change type of cus_htab parameter.
15407         (struct dwo_file) <cus, tus>: Now htab_up.
15408         (lookup_dwo_signatured_type, lookup_dwo_cutu)
15409         (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15410         (queue_and_load_all_dwo_tus): Update.
15411         * dwarf2/index-write.c (write_gdbindex): Update.
15412         (write_debug_names): Update.
15414 2020-02-08  Tom Tromey  <tom@tromey.com>
15416         * dwarf2/read.h (struct dwarf2_queue_item): Move from
15417         dwarf2/read.c.  Remove "next" member.  Add constructor ntad
15418         destructor.
15419         (struct dwarf2_per_objfile) <queue>: New member.
15420         * dwarf2/read.c (struct dwarf2_queue_item): Move to
15421         dwarf2/read.h.
15422         (dwarf2_queue, dwarf2_queue_tail): Remove.
15423         (class dwarf2_queue_guard): Add parameter to constructor.  Use
15424         DISABLE_COPY_AND_ASSIGN.
15425         <m_per_objfile>: New member.
15426         <~dwarf2_queue_guard>: Rewrite.
15427         (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15428         Update.
15429         (~dwarf2_queue_item): New.
15431 2020-02-08  Tom Tromey  <tom@tromey.com>
15433         * dwarf2/read.c (struct die_info) <has_children>: New member.
15434         (dw2_get_file_names_reader): Remove has_children.
15435         (dw2_get_file_names): Update.
15436         (read_cutu_die_from_dwo): Remove has_children.
15437         (cutu_reader::init_tu_and_read_dwo_dies)
15438         (cutu_reader::cutu_reader): Update.
15439         (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15440         Remove has_children.
15441         (build_type_psymtabs_1, process_skeletonless_type_unit)
15442         (load_partial_comp_unit, load_full_comp_unit): Update.
15443         (create_dwo_cu_reader): Remove has_children.
15444         (create_cus_hash_table, read_die_and_children): Update.
15445         (read_full_die_1,read_full_die): Remove has_children.
15446         (read_signatured_type): Update.
15447         (class cutu_reader) <has_children>: Remove.
15449 2020-02-08  Tom Tromey  <tom@tromey.com>
15451         * dwarf2/expr.c: Rename from dwarf2expr.c.
15452         * dwarf2/expr.h: Rename from dwarf2expr.h.
15453         * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15454         * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15455         * dwarf2/frame.c: Rename from dwarf2-frame.c.
15456         * dwarf2/frame.h: Rename from dwarf2-frame.h.
15457         * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15458         * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15459         * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15460         * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15461         * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15462         * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15463         * dwarf2/loc.c: Rename from dwarf2loc.c.
15464         * dwarf2/loc.h: Rename from dwarf2loc.h.
15465         * dwarf2/read.c: Rename from dwarf2read.c.
15466         * dwarf2/read.h: Rename from dwarf2read.h.
15467         * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15468         amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15469         compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15470         compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15471         gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15472         hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15473         i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15474         m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15475         msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15476         riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15477         s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15478         sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15479         tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15480         Update.
15481         * Makefile.in (COMMON_SFILES): Update.
15482         (HFILES_NO_SRCDIR): Update.
15484 2020-02-08  Tom Tromey  <tom@tromey.com>
15486         * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15487         (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15489 2020-02-08  Tom Tromey  <tom@tromey.com>
15491         * dwarf2read.h (struct die_info): Don't declare.
15493 2020-02-08  Tom Tromey  <tom@tromey.com>
15495         * dwarf2read.h (die_info_ptr): Remove typedef.
15497 2020-02-08  Tom Tromey  <tom@tromey.com>
15499         * dwarf2read.c (read_call_site_scope)
15500         (handle_data_member_location, dwarf2_add_member_fn)
15501         (mark_common_block_symbol_computed, read_common_block)
15502         (attr_to_dynamic_prop, partial_die_info::read)
15503         (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15504         (dwarf2_symbol_mark_computed, set_die_type): Update.
15505         * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15506         method.
15507         (attr_form_is_block): Don't declare.
15508         * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15510 2020-02-08  Tom Tromey  <tom@tromey.com>
15512         * dwarf2read.c (dwarf2_find_base_address, )
15513         (read_call_site_scope, rust_containing_type)
15514         (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15515         (handle_data_member_location, dwarf2_add_member_fn)
15516         (get_alignment, read_structure_type, process_structure_scope)
15517         (mark_common_block_symbol_computed, read_common_block)
15518         (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15519         (partial_die_info::read, read_attribute_value, new_symbol)
15520         (lookup_die_type, dwarf2_get_ref_die_offset)
15521         (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15522         (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15523         (dwarf2_symbol_mark_computed): Update.
15524         * dwarf2/attribute.h (struct attribute) <value_as_address,
15525         form_is_section_offset, form_is_constant, form_is_ref>: Declare
15526         methods.
15527         (value_as_address, attr_form_is_section_offset)
15528         (attr_form_is_constant, attr_form_is_ref): Don't declare.
15529         * dwarf2/attribute.c (attribute::value_as_address)
15530         (attribute::form_is_section_offset, attribute::form_is_constant)
15531         (attribute::form_is_ref): Now methods.
15533 2020-02-08  Tom Tromey  <tom@tromey.com>
15535         * dwarf2read.c (struct attribute, DW_STRING)
15536         (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15537         (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15538         (attr_form_is_block, attr_form_is_section_offset)
15539         (attr_form_is_constant, attr_form_is_ref): Move.
15540         * dwarf2/attribute.h: New file.
15541         * dwarf2/attribute.c: New file, from dwarf2read.c.
15542         * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15544 2020-02-08  Tom Tromey  <tom@tromey.com>
15546         * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15547         (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15548         Move.
15549         (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15550         (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15551         (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15552         abbrev.c.
15553         * dwarf2/abbrev.h: New file.
15554         * dwarf2/abbrev.c: New file, from dwarf2read.c.
15555         * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15557 2020-02-08  Tom Tromey  <tom@tromey.com>
15559         * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15560         (dwarf2_section_size, dwarf2_get_section_info)
15561         (create_signatured_type_table_from_debug_names)
15562         (create_addrmap_from_aranges, read_debug_names_from_section)
15563         (get_gdb_index_contents_from_section, read_comp_unit_head)
15564         (error_check_comp_unit_head, read_abbrev_offset)
15565         (create_debug_type_hash_table, init_cu_die_reader)
15566         (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15567         (read_comp_units_from_section, create_cus_hash_table)
15568         (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15569         (create_dwp_v2_section, dwarf2_rnglists_process)
15570         (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15571         (abbrev_table_read_table, read_indirect_string_at_offset_from)
15572         (read_indirect_string_from_dwz, read_addr_index_1)
15573         (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15574         (dwarf_decode_macro_bytes, dwarf_decode_macros)
15575         (fill_in_loclist_baton): Update.
15576         * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15577         get_containing_section, get_bfd_owner, get_bfd_section,
15578         get_file_name, get_id, get_flags, empty, read>: Declare methods.
15579         (dwarf2_read_section, get_section_name, get_section_file_name)
15580         (get_containing_section, get_section_bfd_owner)
15581         (get_section_bfd_section, get_section_name, get_section_file_name)
15582         (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15583         declare.
15584         * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15585         (dwarf2_section_info::get_bfd_owner)
15586         (dwarf2_section_info::get_bfd_section)
15587         (dwarf2_section_info::get_name)
15588         (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15589         (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15590         (dwarf2_section_info::read): Now methods.
15591         * dwarf-index-write.c (class debug_names): Update.
15593 2020-02-08  Tom Tromey  <tom@tromey.com>
15595         * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15596         Move to dwarf2/section.h.
15597         * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15598         (get_section_bfd_section, get_section_name)
15599         (get_section_file_name, get_section_id, get_section_flags)
15600         (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15601         dwarf2/section.c.
15602         * dwarf2/section.h: New file.
15603         * dwarf2/section.c: New file, from dwarf2read.c.
15604         * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15606 2020-02-08  Tom Tromey  <tom@tromey.com>
15608         * dwarf2read.h (read_unsigned_leb128): Don't declare.
15609         * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15610         (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15611         (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15612         (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15613         * dwarf2/leb.h: New file, from dwarf2read.c.
15614         * dwarf2/leb.c: New file, from dwarf2read.c.
15615         * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15616         Remove.
15617         * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15618         (COMMON_SFILES): Add dwarf2/leb.c.
15620 2020-02-08  Joel Brobecker  <brobecker@adacore.com>
15622         GDB 9.1 released.
15624 2020-02-05  Iain Buclaw  <ibuclaw@gdcproject.org>
15626         PR gdb/25190:
15627         * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15628         * gdb/remote.c (remote_console_output): Update.
15629         * gdb/ui-file.c (fputs_unfiltered): Rename to...
15630         (ui_file_puts): ...this.
15631         * gdb/ui-file.h (ui_file_puts): Add declaration.
15632         * gdb/utils.c (emit_style_escape): Update.
15633         (flush_wrap_buffer): Update.
15634         (fputs_maybe_filtered): Update.
15635         (fputs_unfiltered): Add function.
15637 2020-02-05  Iain Buclaw  <ibuclaw@gdcproject.org>
15639         * gdb/event-loop.c (gdb_wait_for_event): Update.
15640         * gdb/printcmd.c (printf_command): Update.
15641         * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15642         * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15643         (gdb_os_flush_stderr): Update.
15644         * gdb/remote.c (remote_console_output): Update.
15645         * gdb/ui-file.c (gdb_flush): Rename to...
15646         (ui_file_flush): ...this.
15647         (stderr_file::write): Update.
15648         (stderr_file::puts): Update.
15649         * gdb/ui-file.h (gdb_flush): Rename to...
15650         (ui_file_flush): ...this.
15651         * gdb/utils.c (gdb_flush): Add function.
15652         * gdb/utils.h (gdb_flush): Add declaration.
15654 2020-02-07  Tom Tromey  <tromey@adacore.com>
15656         PR breakpoints/24915:
15657         * source.c (find_and_open_source): Do not check basenames_may_differ.
15659 2020-02-07  Tom Tromey  <tom@tromey.com>
15661         * README: Update gdbserver documentation.
15662         * gdbserver: Move to top level.
15663         * configure.tgt (build_gdbserver): Remove.
15664         * configure.ac: Remove --enable-gdbserver.
15665         * configure: Rebuild.
15666         * Makefile.in (distclean): Don't mention gdbserver.
15668 2020-02-06  Shahab Vahedi  <shahab@synopsys.com>
15670         * source-cache.c (source_cache::ensure): Surround
15671         get_plain_source_lines with a try/catch.
15672         (source_cache::get_line_charpos): Get rid of try/catch
15673         and only check for the return value of "ensure".
15674         * tui/tui-source.c (tui_source_window::set_contents):
15675         Simplify "nlines" calculation.
15677 2020-02-06  Shahab Vahedi  <shahab@synopsys.com>
15679         * MAINTAINERS (Write After Approval): Add myself.
15681 2020-02-05  Christian Biesinger  <cbiesinger@google.com>
15683         * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15684         function call.
15686 2020-02-05  Christian Biesinger  <cbiesinger@google.com>
15688         * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15690 2020-02-05  Maciej W. Rozycki  <macro@wdc.com>
15692         * nat/riscv-linux-tdesc.h: New file.
15693         * nat/riscv-linux-tdesc.c: New file, taking code from...
15694         * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15695         ... here.
15696         * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15697         NATDEPFILES.
15699 2020-02-04  Andrew Burgess  <andrew.burgess@embecosm.com>
15701         * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15702         we don't set the fake simulator ptid to the null_ptid.
15704 2020-02-03  Simon Marchi  <simon.marchi@efficios.com>
15706         * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15707         * gdbthread.h (class thread_info) <resumed>: Likewise.
15708         * infrun.c (resume_1): Likewise.
15709         (proceed): Likewise.
15710         (infrun_thread_stop_requested): Likewise.
15711         (stop_all_threads): Likewise.
15712         (handle_inferior_event): Likewise.
15713         (restart_threads): Likewise.
15714         (finish_step_over): Likewise.
15715         (keep_going_stepped_thread): Likewise.
15716         * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15717         (linux_handle_extended_wait): Likewise.
15718         * record-btrace.c (get_thread_current_frame_id): Likewise.
15719         * record-full.c (record_full_wait_1): Likewise.
15720         * remote.c (remote_target::process_initial_stop_replies): Likewise.
15721         * target.c (target_resume): Likewise.
15722         * thread.c (set_running_thread): Likewise.
15724 2020-02-03  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
15726         * f-valprint.c (f77_print_array_1): Changed datatype of index
15727         variable to LONGEST from int to enable it to contain bound
15728         values correctly.
15730 2020-02-03  Maciej W. Rozycki  <macro@wdc.com>
15732         * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15733         (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15734         offsets according to FLEN determined.
15735         (riscv_linux_nat_target::read_description): Determine FLEN
15736         dynamically.
15737         (riscv_linux_nat_target::fetch_registers): Size regset buffer
15738         according to FLEN determined.
15739         (riscv_linux_nat_target::store_registers): Likewise.
15741 2020-02-01  Shahab Vahedi  <shahab@synopsys.com>
15743         * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15744         when reg->group is empty and reggroup is not.
15746 2020-01-31  Tom Tromey  <tromey@adacore.com>
15748         * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15749         Call beneath target's mourn_inferior after unpushing.
15751 2020-01-31  Andrew Burgess  <andrew.burgess@embecosm.com>
15753         PR tui/9765
15754         * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15755         have enough lines to fill the screen, still return the lowest
15756         address we found.
15758 2020-01-31  Andrew Burgess  <andrew.burgess@embecosm.com>
15760         * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15761         '-', '<', and '>' commands.
15763 2020-01-29  Pedro Alves  <palves@redhat.com>
15764             Sergio Durigan Junior  <sergiodj@redhat.com>
15766         * infcmd.c (construct_inferior_arguments): Assert that
15767         'argc' is greater than 0.
15769 2020-01-29  Luis Machado  <luis.machado@linaro.org>
15771         * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15772         (BRK_INSN_MASK): Define to 0xd4200000.
15773         (aarch64_program_breakpoint_here_p): New function.
15774         (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15775         * arch-utils.c (default_program_breakpoint_here_p): Moved from
15776         breakpoint.c.
15777         * arch-utils.h (default_program_breakpoint_here_p): Moved from
15778         breakpoint.h
15779         * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15780         call gdbarch_program_breakpoint_here_p.
15781         (program_breakpoint_here): Moved to arch-utils.c, renamed to
15782         default_program_breakpoint_here_p, changed return type to bool and
15783         simplified.
15784         * breakpoint.h (program_breakpoint_here): Moved prototype to
15785         arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15786         return type to bool.
15787         * gdbarch.c: Regenerate.
15788         * gdbarch.h: Regenerate.
15789         * gdbarch.sh (program_breakpoint_here_p): New method.
15790         * infrun.c (handle_signal_stop): Call
15791         gdbarch_program_breakpoint_here_p.
15793 2020-01-26  Tom Tromey  <tom@tromey.com>
15795         * ctfread.c (struct ctf_fp_info): Reindent.
15796         (_initialize_ctfread): Remove.
15798 2020-01-26  Tom Tromey  <tom@tromey.com>
15800         * psymtab.c (partial_map_expand_apply)
15801         (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15802         (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15803         (psym_print_stats, psym_expand_symtabs_for_function)
15804         (psym_map_symbol_filenames, psym_map_matching_symbols)
15805         (psym_expand_symtabs_matching)
15806         (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15807         (maintenance_check_psymtabs): Use new methods.
15808         * psympriv.h (struct partial_symtab) <readin_p,
15809         get_compunit_symtab>: New methods.
15810         <readin, compunit_symtab>: Remove members.
15811         (struct standard_psymtab): New.
15812         (struct legacy_psymtab): Derive from standard_psymtab.
15813         * dwarf2read.h (struct dwarf2_psymtab): Derive from
15814         standard_psymtab.
15815         * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15817 2020-01-26  Tom Tromey  <tom@tromey.com>
15819         * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15820         read_dependencies.  Add assert.
15821         * psymtab.c (partial_symtab::read_dependencies): New method.
15822         * psympriv.h (struct partial_symtab) <read_dependencies>: New
15823         method.
15824         * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15825         * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15826         read_dependencies.
15827         * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15828         Add assert.
15830 2020-01-26  Tom Tromey  <tom@tromey.com>
15832         * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15833         Call expand_psymtab.
15834         (xcoff_read_symtab): Call expand_psymtab.
15835         (xcoff_start_psymtab, xcoff_end_psymtab): Set
15836         legacy_expand_psymtab.
15837         * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15838         method.
15839         (struct legacy_psymtab) <expand_psymtab>: Implement.
15840         <legacy_expand_psymtab>: New member.
15841         * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15842         (parse_partial_symbols): Set legacy_expand_psymtab.
15843         (psymtab_to_symtab_1): Change argument order.  Call
15844         expand_psymtab.
15845         (new_psymtab): Set legacy_expand_psymtab.
15846         * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15847         * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15848         expand_psymtab.
15849         (dwarf2_psymtab::expand_psymtab): Rename from
15850         psymtab_to_symtab_1.  Call expand_psymtab.
15851         * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15852         (dbx_end_psymtab): Likewise.
15853         (dbx_psymtab_to_symtab_1): Change argument order. Call
15854         expand_psymtab.
15855         (dbx_read_symtab): Call expand_psymtab.
15856         * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15857         (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15858         (ctf_psymtab::read_symtab): Call expand_psymtab.
15860 2020-01-26  Tom Tromey  <tom@tromey.com>
15862         * xcoffread.c (xcoff_read_symtab): Remove prints.  Add assert.
15863         * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15864         messages.
15865         * mdebugread.c (mdebug_read_symtab): Remove prints.
15866         * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints.  Add
15867         assert.
15868         * dbxread.c (dbx_read_symtab): Remove prints.  Add assert.
15870 2020-01-26  Tom Tromey  <tom@tromey.com>
15872         * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15873         (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15874         (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15875         legacy_symtab.
15876         * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15877         * psymtab.c (psymtab_to_symtab): Call method.
15878         (dump_psymtab): Update.
15879         * psympriv.h (struct partial_symtab): Add virtual destructor.
15880         <read_symtab>: New method.
15881         (struct legacy_symtab): New.
15882         * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15883         (struct pst_map) <pst>: Now a legacy_psymtab.
15884         (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15885         (new_psymtab): Use legacy_psymtab.
15886         * dwarf2read.h (struct dwarf2_psymtab): New.
15887         (struct dwarf2_per_cu_data) <psymtab>: Use it.
15888         * dwarf2read.c (dwarf2_create_include_psymtab)
15889         (dwarf2_build_include_psymtabs, create_type_unit_group)
15890         (create_partial_symtab, process_psymtab_comp_unit_reader)
15891         (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15892         (set_partial_user): Use dwarf2_psymtab.
15893         (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15894         (psymtab_to_symtab_1, process_full_comp_unit)
15895         (process_full_type_unit, dwarf2_ranges_read)
15896         (dwarf2_get_pc_bounds, psymtab_include_file_name)
15897         (dwarf_decode_lines): Use dwarf2_psymtab.
15898         * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15899         (add_address_entry_worker, write_one_signatured_type)
15900         (recursively_count_psymbols, recursively_write_psymbols)
15901         (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15902         (write_debug_names): Likewise.
15903         * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15904         <pst>: Now a legacy_psymtab.
15905         (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15906         (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15907         (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15908         * ctfread.c (struct ctf_psymtab): New.
15909         (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15910         ctf_psymtab.
15911         (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15912         (create_partial_symtab): Return a ctf_psymtab.
15913         (scan_partial_symbols): Update.
15915 2020-01-26  Tom Tromey  <tom@tromey.com>
15917         * xcoffread.c (xcoff_start_psymtab): Use new.
15918         * psymtab.c (partial_symtab::partial_symtab): New constructor,
15919         renamed from start_psymtab_common.
15920         * psympriv.h (struct partial_symtab): Add new constructor.
15921         (start_psymtab_common): Don't declare.
15922         * mdebugread.c (parse_partial_symbols): Use new.
15923         * dwarf2read.c (create_partial_symtab): Use new.
15924         * dbxread.c (start_psymtab): Use new.
15925         * ctfread.c (create_partial_symtab): Use new.
15927 2020-01-26  Tom Tromey  <tom@tromey.com>
15929         * xcoffread.c (xcoff_end_psymtab): Use new.
15930         * psymtab.c (start_psymtab_common): Use new.
15931         (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15932         Update.
15933         * psympriv.h (struct partial_symtab): Add parameters to
15934         constructor.  Don't inline.
15935         (allocate_psymtab): Don't declare.
15936         * mdebugread.c (new_psymtab): Use new.
15937         * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15938         * dbxread.c (dbx_end_psymtab): Use new.
15940 2020-01-26  Tom Tromey  <tom@tromey.com>
15942         * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15943         allocate_psymtab.  Update documentation.
15944         * psymtab.c (psymtab_storage::install_psymtab): Rename from
15945         allocate_psymtab.  Do not use new.
15946         (allocate_psymtab): Use new.  Update.
15948 2020-01-26  Tom Tromey  <tom@tromey.com>
15950         * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15951         * psymtab.c (psym_print_stats): Update.
15952         * psympriv.h (struct partial_symtab) <readin,
15953         psymtabs_addrmap_supported, anonymous>: Now bool.
15954         * mdebugread.c (psymtab_to_symtab_1): Update.
15955         * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15956         (build_type_psymtabs_reader, psymtab_to_symtab_1)
15957         (process_full_comp_unit, process_full_type_unit): Update.
15958         * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15959         * ctfread.c (psymtab_to_symtab): Update.
15961 2020-01-26  Tom Tromey  <tom@tromey.com>
15963         * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15964         * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15965         * psymtab.c (psymtab_storage): Delete psymtabs.
15966         (psymtab_storage::allocate_psymtab): Use new.
15967         (psymtab_storage::discard_psymtab): Use delete.
15968         * psympriv.h (struct partial_symtab): Add constructor and
15969         initializers.
15971 2020-01-26  Tom Tromey  <tom@tromey.com>
15973         * machoread.c: Do not include psympriv.h.
15975 2020-01-25  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
15977         * NEWS: Mention the new option and the set/show commands.
15979 2020-01-25  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
15981         * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15982         (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15983         (validate_exec_file): New variables, enums, functions.
15984         (exec_file_locate_attach, print_section_info): Style the filenames.
15985         (_initialize_exec): Install show_exec_file_mismatch_command and
15986          set_exec_file_mismatch_command.
15987         * gdbcore.h (validate_exec_file): Declare.
15988         * infcmd.c (attach_command): Call validate_exec_file.
15989         * remote.c ( remote_target::remote_add_inferior): Likewise.
15991 2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
15993         * frame.c (find_frame_sal): Move call to get_next_frame into more
15994         inner scope.
15995         * inline-frame.c (inilne_state) <inline_state>: Update argument
15996         types.
15997         (inilne_state) <skipped_symbol>: Rename to...
15998         (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15999         (skip_inline_frames): Build vector of skipped symbols and use this
16000         to reate the inline_state.
16001         (inline_skipped_symbol): Add a comment and some assertions, fetch
16002         skipped symbol from the list.
16004 2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
16006         * buildsym.c (lte_is_less_than): Delete.
16007         (buildsym_compunit::end_symtab_with_blockvector): Create local
16008         lambda function to sort line table entries, and use
16009         std::stable_sort instead of std::sort.
16010         * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16011         markers when looking for a previous line.
16013 2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
16015         * dwarf2read.c (lnp_state_machine::record_line): Include
16016         end_sequence parameter in debug print out.  Record the line if we
16017         are at an end_sequence marker even if it's not the start of a
16018         statement.
16019         * symmisc.c (maintenance_print_one_line_table): Print end of
16020         sequence markers with 'END' not '0'.
16022 2020-01-24  Pedro Alves  <palves@redhat.com>
16024         PR gdb/25410
16025         * thread.c (scoped_restore_current_thread::restore): Use
16026         switch_to_inferior_no_thread.
16027         * exec.c: Include "progspace-and-thread.h".
16028         (add_target_sections, remove_target_sections):
16029         scoped_restore_current_pspace_and_thread instead of
16030         scoped_restore_current_thread.
16031         * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16032         and aspace to the inferior before calling clone_program_space.
16033         Remove stale comment.
16035 2020-01-24  Christian Biesinger  <cbiesinger@google.com>
16037         * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16038         (arm_netbsd_nat_target::fetch_registers): ...this.
16039         (arm_nbsd_nat_target::store_registers): Rename to...
16040         (arm_netbsd_nat_target::store_registers): ...this.
16042 2020-01-24  Christian Biesinger  <cbiesinger@google.com>
16044         * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16045         register_t.
16047 2020-01-24  Christian Biesinger  <cbiesinger@google.com>
16049         * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16050         Update comment.
16051         * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16052         Likewise.
16053         * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16054         * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16055         the correct replacement (iterate_over_regset_sections).
16056         * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16057         Update comment.
16059 2020-01-24  Graham Markall  <graham.markall@embecosm.com>
16061         PR gdb/23718
16062         * gdb/python/python.c (execute_gdb_command): Call
16063         async_enable_stdin in catch block.
16065 2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
16067         * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16068         SWITCH_THRU_ALL_UIS.
16070 2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
16072         PR tui/9765
16073         * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16074         comment, add extra parameter, and update to store previous symbol
16075         when appropriate.
16076         * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16077         add extra parameter.
16078         * tui/tui-disasm.c (tui_disassemble): Update header comment,
16079         remove unneeded parameter, add try/catch around gdb_print_insn,
16080         rewrite to add items to asm_lines vector.
16081         (tui_find_backward_disassembly_start_address): New function.
16082         (tui_find_disassembly_address): Updated throughout.
16083         (tui_disasm_window::set_contents): Update for changes to
16084         tui_disassemble.
16085         (tui_disasm_window::do_scroll_vertical): No need to adjust the
16086         number of lines to scroll.
16088 2020-01-23  Simon Marchi  <simon.marchi@polymtl.ca>
16090         * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16091         (SECT_OFF_DATA): Likewise.
16092         (SECT_OFF_RODATA): Likewise.
16093         (SECT_OFF_TEXT): Likewise.
16094         (SECT_OFF_BSS): Likewise.
16095         (struct objfile) <text_section_offset, data_section_offset>: New
16096         methods.
16097         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16098         objfile::text_section_offset.
16099         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16100         * coffread.c (coff_symtab_read): Likewise.
16101         (enter_linenos): Likewise.
16102         (process_coff_symbol): Likewise.
16103         * ctfread.c (get_objfile_text_range): Likewise.
16104         * dtrace-probe.c (dtrace_probe::get_relocated_address):
16105         Use objfile::data_section_offset.
16106         * dwarf2-frame.c (execute_cfa_program): Use
16107         objfile::text_section_offset.
16108         (dwarf2_frame_find_fde): Likewise.
16109         * dwarf2read.c (create_addrmap_from_index): Likewise.
16110         (create_addrmap_from_aranges): Likewise.
16111         (dw2_find_pc_sect_compunit_symtab): Likewise.
16112         (process_psymtab_comp_unit_reader): Likewise.
16113         (add_partial_symbol): Likewise.
16114         (add_partial_subprogram): Likewise.
16115         (process_full_comp_unit): Likewise.
16116         (read_file_scope): Likewise.
16117         (read_func_scope): Likewise.
16118         (read_lexical_block_scope): Likewise.
16119         (read_call_site_scope): Likewise.
16120         (dwarf2_rnglists_process): Likewise.
16121         (dwarf2_ranges_process): Likewise.
16122         (dwarf2_ranges_read): Likewise.
16123         (dwarf_decode_lines_1): Likewise.
16124         (new_symbol): Likewise.
16125         (dwarf2_fetch_die_loc_sect_off): Likewise.
16126         (dwarf2_per_cu_text_offset): Likewise.
16127         * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16128         * hppa-tdep.c (read_unwind_info): Likewise.
16129         * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16130         * psympriv.h (struct partial_symtab): Likewise.
16131         * psymtab.c (find_pc_sect_psymtab): Likewise.
16132         * solib-svr4.c (enable_break): Likewise.
16133         * stap-probe.c (relocate_address): Use
16134         objfile::data_section_offset.
16135         * xcoffread.c (enter_line_range): Use
16136         objfile::text_section_offset.
16137         (read_xcoff_symtab): Likewise.
16139 2020-01-23  Simon Marchi  <simon.marchi@efficios.com>
16141         * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16142         declaration to narrower scopes.
16144 2020-01-23  Simon Marchi  <simon.marchi@efficios.com>
16146         * darwin-nat.h (struct darwin_exception_msg, enum
16147         darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16148         Move up.
16149         (class darwin_nat_target) <wait_1, check_new_threads,
16150         decode_exception_message, decode_message, stop_inferior,
16151         init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16152         * darwin-nat.c (darwin_check_new_threads): Rename to...
16153         (darwin_nat_target::check_new_threads): ... this.
16154         (darwin_suspend_inferior_it): Remove.
16155         (darwin_decode_exception_message): Rename to...
16156         (darwin_nat_target::decode_exception_message): ... this.
16157         (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16158         (darwin_decode_message): Rename to...
16159         (darwin_nat_target::decode_message): ... this.
16160         (cancel_breakpoint): Rename to...
16161         (darwin_nat_target::cancel_breakpoint): ... this.
16162         (darwin_wait): Rename to...
16163         (darwin_nat_target::wait_1): ... this.  Use range-based for loop
16164         instead of iterate_over_inferiors.
16165         (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16166         (darwin_stop_inferior): Rename to...
16167         (darwin_nat_target::stop_inferior): ... this.
16168         (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16169         (darwin_init_thread_list): Rename to...
16170         (darwin_nat_target::init_thread_list): ... this.
16171         (darwin_ptrace_him): Rename to...
16172         (darwin_nat_target::ptrace_him): ... this.
16173         (darwin_nat_target::create_inferior): Pass lambda function to
16174         fork_inferior.
16175         (darwin_nat_target::detach): Call stop_inferior instead of
16176         darwin_stop_inferior.
16177         * fork-inferior.h (fork_inferior): Change init_trace_fun
16178         parameter to gdb::function_view.
16179         * fork-inferior.c (fork_inferior): Likewise.
16181 2020-01-23  Hannes Domani  <ssbssa@yahoo.de>
16183         * i386-cygwin-tdep.c (core_process_module_section): Update.
16184         * windows-nat.c (struct lm_info_windows): Add text_offset.
16185         (windows_xfer_shared_libraries): Update.
16186         * windows-tdep.c (windows_xfer_shared_library):
16187         Add text_offset_cached argument.
16188         * windows-tdep.h (windows_xfer_shared_library): Update.
16190 2020-01-21  Simon Marchi  <simon.marchi@efficios.com>
16192         * gdbarch.sh: Add declaration for _initialize_gdbarch.
16194 2020-01-21  Simon Marchi  <simon.marchi@efficios.com>
16196         * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16197         (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16198         replace with range-based for.
16199         (gdbsim_interrupt_inferior): Remove.
16200         (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16201         with a range-based for.  Inline code from
16202         gdbsim_interrupt_inferior.
16204 2020-01-21  Simon Marchi  <simon.marchi@efficios.com>
16206         * infrun.c (proceed): Fix indentation.
16208 2020-01-21  Tom Tromey  <tromey@adacore.com>
16210         * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16211         * python/python.c (python_extension_ops): Update.
16212         (gdbpy_colorize): New function.
16213         * python/lib/gdb/__init__.py (colorize): New function.
16214         * extension.h (ext_lang_colorize): Declare.
16215         * extension.c (ext_lang_colorize): New function.
16216         * extension-priv.h (struct extension_language_ops) <colorize>: New
16217         member.
16218         * cli/cli-style.c (_initialize_cli_style): Update help text.
16220 2020-01-21  Luis Machado  <luis.machado@linaro.org>
16222         * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16223         <cond>: Change type to bool.
16224         (aarch64_displaced_step_b_cond): Update cond to use bool type.
16225         (aarch64_displaced_step_cb): Likewise.
16226         (aarch64_displaced_step_tb): Likewise.
16228 2020-01-21  Luis Machado  <luis.machado@linaro.org>
16230         * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16231         output.
16233 2020-01-21  Luis Machado  <luis.machado@linaro.org>
16235         * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16236         <pc_adjust>: Adjust the documentation.
16237         (aarch64_displaced_step_fixup): Check if PC really moved before
16238         adjusting it.
16240 2020-01-19  Tom Tromey  <tom@tromey.com>
16242         * disasm.c (~gdb_disassembler): New destructor.
16243         (gdb_buffered_insn_length): Call disassemble_free_target.
16244         * disasm.h (class gdb_disassembler): Declare destructor.  Use
16245         DISABLE_COPY_AND_ASSIGN.
16247 2020-01-19  Tom Tromey  <tom@tromey.com>
16249         * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16250         (die_reader_func_ftype): Remove.
16251         (cutu_reader): New class.
16252         (dw2_get_file_names_reader): Remove "data" parameter.
16253         (dw2_get_file_names): Use cutu_reader.
16254         (create_debug_type_hash_table): Update.
16255         (read_cutu_die_from_dwo): Update comment.
16256         (lookup_dwo_unit): Add dwo_name parameter.
16257         (cutu_reader::init_tu_and_read_dwo_dies): Now a method.  Remove
16258         die_reader_func_ftype and data parameters.
16259         (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16260         Remove die_reader_func_ftype and data parameters.
16261         (~cutu_reader): New; from init_cutu_and_read_dies.
16262         (cutu_reader::cutu_reader): Rename from
16263         init_cutu_and_read_dies_no_follow.  Remove die_reader_func_ftype
16264         and data parameters.
16265         (init_cutu_and_read_dies_simple): Remove.
16266         (struct process_psymtab_comp_unit_data): Remove.
16267         (process_psymtab_comp_unit_reader): Remove data parameter; add
16268         want_partial_unit and pretend_language parameters.
16269         (process_psymtab_comp_unit): Use cutu_reader.
16270         (build_type_psymtabs_reader): Remove data parameter.
16271         (build_type_psymtabs_1): Use cutu_reader.
16272         (process_skeletonless_type_unit): Likewise.
16273         (load_partial_comp_unit_reader): Remove.
16274         (load_partial_comp_unit): Use cutu_reader.
16275         (load_full_comp_unit_reader): Remove.
16276         (load_full_comp_unit): Use cutu_reader.
16277         (struct create_dwo_cu_data): Remove.
16278         (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16279         dwo_unit parameters.
16280         (create_cus_hash_table): Use cutu_reader.
16281         (struct dwarf2_read_addr_index_data): Remove.
16282         (dwarf2_read_addr_index_reader): Remove.
16283         (dwarf2_read_addr_index): Use cutu_reader.
16284         (read_signatured_type_reader): Remove.
16285         (read_signatured_type): Use cutu_reader.
16287 2020-01-19  Tom Tromey  <tom@tromey.com>
16289         * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16290         * tui/tui-wingeneral.h (class tui_suppress_output): New.
16291         (tui_wrefresh): Declare.
16292         * tui/tui-wingeneral.c (suppress_output): New global.
16293         (tui_suppress_output, ~tui_suppress_output): New constructor and
16294         destructor.
16295         (tui_wrefresh): New function.
16296         (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16297         (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16298         * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16299         method.
16300         * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16301         tui_wrefresh.
16302         (tui_data_window::no_refresh): New method.
16303         (tui_data_item_window::refresh_window): Call tui_wrefresh.
16304         (tui_reg_command): Use tui_suppress_output
16305         * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16306         * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16307         method.
16308         * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16310 2020-01-19  Tom Tromey  <tom@tromey.com>
16312         * tui/tui-winsource.c (tui_update_source_windows_with_line):
16313         Handle case where symtab is null.
16315 2020-01-19  Simon Marchi  <simon.marchi@polymtl.ca>
16317         * linux-fork.c (one_fork_p): Simplify.
16319 2020-01-17  Simon Marchi  <simon.marchi@efficios.com>
16321         * top.c (struct qt_args): Remove.
16322         (kill_or_detach): Change return type to void, replace `void *`
16323         parameter with a proper one.
16324         (print_inferior_quit_action):  Likewise.
16325         (quit_confirm): Use range-based for loop to iterate over inferiors.
16326         (quit_force): Likewise.
16328 2020-01-17  Simon Marchi  <simon.marchi@efficios.com>
16330         * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16331         `void *` parameter with proper parameters.
16332         (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16333         (print_one_inferior): Change return type to void, replace `void *`
16334         parameter with proper parameters.
16335         (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16336         inferiors.
16337         (get_other_inferior): Remove.
16338         (mi_cmd_remove_inferior): Use range-based loop to iterate over
16339         inferiors.
16341 2020-01-17  Simon Marchi  <simon.marchi@efficios.com>
16343         * mi/mi-interp.c (report_initial_inferior): Remove.
16344         (mi_interp::init): Use range-based for to iterate over inferiors.
16346 2020-01-17  Simon Marchi  <simon.marchi@efficios.com>
16348         * python/py-inferior.c (build_inferior_list): Remove.
16349         (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16351 2020-01-16  Christian Biesinger  <cbiesinger@google.com>
16353         * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16354         (btrace_stitch_trace): Likewise.
16355         * charset.c (intermediate_encoding): Likewise (vaild).
16356         * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16357         * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16358         * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16360 2020-01-16  Hannes Domani  <ssbssa@yahoo.de>
16362         * windows-tdep.c (windows_get_tlb_type):
16363         Add rtl_user_process_parameters type.
16365 2020-01-16  Pedro Alves  <palves@redhat.com>
16366             Norbert Lange  <nolange79@gmail.com>
16368         PR build/24805
16369         * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16370         (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16371         (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16372         (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16373         (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16374         (ps_plog): Redeclare exported functions with default visibility.
16376 2020-01-16  Nitika Achra  <Nitika.Achra@amd.com>
16378         * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16379         DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16381 2020-01-15  Simon Marchi  <simon.marchi@efficios.com>
16383         * infcmd.c (post_create_inferior): Use get_thread_regcache
16384         instead of get_current_regcache.
16386 2020-01-14  Tom Tromey  <tom@tromey.com>
16388         PR symtab/12535:
16389         * python/python.c (gdbpy_decode_line): Treat empty string the same
16390         as no argument.
16392 2020-01-14  Tom Tromey  <tom@tromey.com>
16394         * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16396 2020-01-14  Tom Tromey  <tom@tromey.com>
16398         * nat/linux-btrace.c: Don't include <config.h>.
16399         * nat/linux-ptrace.c: Don't include <config.h>.
16400         * nat/x86-linux-dregs.c: Don't include <config.h>.
16402 2020-01-14  Tom Tromey  <tom@tromey.com>
16404         * configure: Rebuild.
16405         * configure.ac: Move many checks to ../gdbsupport/common.m4.
16407 2020-01-14  Tom Tromey  <tom@tromey.com>
16409         * nat/x86-linux-dregs.c: Include configh.h.
16410         * nat/linux-ptrace.c: Include configh.h.
16411         * nat/linux-btrace.c: Include configh.h.
16412         * defs.h: Include config.h, bfd.h.
16413         * configure.ac: Don't source common.host.
16414         (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16415         * configure: Rebuild.
16416         * acinclude.m4: Update path.
16417         * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16418         (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16419         (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16420         (CLIBS): Add LIBSUPPORT.
16421         (CDEPS): Likewise.
16422         (COMMON_SFILES): Remove gdbsupport files.
16423         (HFILES_NO_SRCDIR): Likewise.
16424         (stamp-version): Update path to create-version.sh.
16425         (ALLDEPFILES): Remove gdbsupport files.
16427 2020-01-14  Tom Tromey  <tom@tromey.com>
16429         * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16430         USE_WIN32API when needed.
16431         * configure.ac (USE_WIN32API): Don't define.
16432         (WIN32LIBS): Use WIN32APILIBS.
16433         * configure: Rebuild.
16435 2020-01-14  Tom Tromey  <tom@tromey.com>
16437         * configure: Rebuild.
16438         * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16440 2020-01-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16442         * skip.c (skip_function_command): Make skip w/o arguments use the
16443         name of the inlined function if pc is inside any inlined function.
16445 2020-01-14  Luis Machado  <luis.machado@linaro.org>
16447         * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16448         * infrun.c (resume_1): Likewise.
16449         (handle_inferior_event): Remove stale comment.
16450         * linux-nat.c (linux_nat_target::resume): Update comments.
16451         (save_stop_reason): Likewise.
16452         (linux_nat_filter_event): Likewise.
16453         * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16455 2020-01-13  Andrew Burgess  <andrew.burgess@embecosm.com>
16457         * elfread.c (record_minimal_symbol): Set section index to 0 for
16458         non-allocatable sections.
16461 2020-01-13  Ali Tamur <tamur@google.com>
16463         * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16464         (dwarf2_cu): Add str_offsets_base field.  Change the type of addr_base
16465         to gdb::optional.  Update comments.
16466         (dwo_file): Update comments.
16467         (read_attribute): Update API to take an additional out parameter,
16468         need_reprocess.  This is used to mark attributes that need other
16469         attributes (e.g. str_offsets_base) for correct computation which may not
16470         have been read yet.
16471         (read_attribute_reprocess): New function declaration.
16472         (read_addr_index): Likewise.
16473         (read_dwo_str_index): Likewise.
16474         (read_stub_str_index): Likewise.
16475         (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16476         (lookup_addr_base): New function definition.
16477         (lookup_ranges_base): Likewise.
16478         (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16479         lookup_ranges_base.
16480         (init_cutu_and_read_dies): Update comments.
16481         (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16482         unit.  This is used to inherit parent's str_offsets_base and addr_base.
16483         Update comments.
16484         (init_cutu_and_read_dies_simple): Reflect API changes.
16485         (skip_one_die): Reflect API changes.  Handle DW_FORM_rnglistx.
16486         (create_cus_hash_table): Change API to take parent compile unit.  
16487         Reflect API changes.
16488         (open_and_init_dwo_file): Reflect API changes.
16489         (dwarf2_get_pc_bounds): Update comments.
16490         (dwarf2_record_block_ranges): Likewise.
16491         (read_full_die_1): Change implementation to reprocess attributes that
16492         need str_offsets_base and addr_base.
16493         (partial_die_info::read): Likewise.
16494         (read_attribute_reprocess): New function definition.
16495         (read_attribute_value): Change API to take an additional out parameter,
16496         need_reprocess.  Handle DW_FORM_rnglistx.  No longer trigger an error
16497         when a non-dwo compile unit has index based attributes.
16498         (read_attribute): Reflect API changes.
16499         (read_addr_index_1): Reflect API changes.  Update comments.
16500         (dwarf2_read_addr_index_data): Reflect API changes.
16501         (dwarf2_read_addr_index): Likewise.
16502         (read_str_index): Change API and implementation.  This becomes a helper
16503         to be used by the new string index related methods.  Update error
16504         message and comments.
16505         (read_dwo_str_index): New function definition.
16506         (read_stub_str_index): Likewise.
16507         * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16508         * symfile.h (dwarf2_debug_sections): Likewise.
16509         * xcoffread.c (dwarf2_debug_sections): Likewise.
16511 2020-01-13  Simon Marchi  <simon.marchi@efficios.com>
16513         * gdbcore.h (struct core_fns) <core_read_registers>: Change
16514         core_reg_sect type to gdb_byte *.
16515         * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16516         * cris-tdep.c (fetch_core_registers): Likewise.
16517         * corelow.c (core_target::get_core_register_section): Change
16518         type of `contents` to gdb::byte_vector.
16520 2020-01-13  Andrew Burgess  <andrew.burgess@embecosm.com>
16522         * tui/tui-wingeneral.c (box_win): Position the title in the center
16523         of the border.
16525 2020-01-13  Simon Marchi  <simon.marchi@polymtl.ca>
16527         * corelow.c (core_target::get_core_register_section): Use
16528           std::vector instead of alloca.
16530 2020-01-13  Simon Marchi  <simon.marchi@efficios.com>
16532         * warning.m4: Add -Wmissing-declarations to build_warnings.
16533         * configure: Re-generate.
16535 2020-01-13  Simon Marchi  <simon.marchi@efficios.com>
16537         * python/python.c (init__gdb_module): Add declaration.
16539 2020-01-13  Simon Marchi  <simon.marchi@efficios.com>
16541         * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16542         * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16543         * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16544         * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16545         * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16546         * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16547         * ada-exp.y (_initialize_ada_exp): Add declaration.
16548         * ada-lang.c (_initialize_ada_language): Add declaration.
16549         * ada-tasks.c (_initialize_tasks): Add declaration.
16550         * agent.c (_initialize_agent): Add declaration.
16551         * aix-thread.c (_initialize_aix_thread): Add declaration.
16552         * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16553         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16554         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16555         * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16556         * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16557         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16558         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16559         * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16560         * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16561         * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16562         * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16563         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16564         * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16565         * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16566         * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16567         * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16568         * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16569         * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16570         * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16571         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16572         * annotate.c (_initialize_annotate): Add declaration.
16573         * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16574         * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16575         * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16576         * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16577         * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16578         * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16579         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16580         * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16581         * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16582         * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16583         * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16584         * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16585         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16586         * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16587         * auto-load.c (_initialize_auto_load): Add declaration.
16588         * auxv.c (_initialize_auxv): Add declaration.
16589         * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16590         * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16591         * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16592         * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16593         * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16594         * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16595         * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16596         * breakpoint.c (_initialize_breakpoint): Add declaration.
16597         * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16598         * btrace.c (_initialize_btrace): Add declaration.
16599         * charset.c (_initialize_charset): Add declaration.
16600         * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16601         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16602         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16603         * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16604         * cli/cli-script.c (_initialize_cli_script): Add declaration.
16605         * cli/cli-style.c (_initialize_cli_style): Add declaration.
16606         * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16607         * coffread.c (_initialize_coffread): Add declaration.
16608         * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16609         * compile/compile.c (_initialize_compile): Add declaration.
16610         * complaints.c (_initialize_complaints): Add declaration.
16611         * completer.c (_initialize_completer): Add declaration.
16612         * copying.c (_initialize_copying): Add declaration.
16613         * corefile.c (_initialize_core): Add declaration.
16614         * corelow.c (_initialize_corelow): Add declaration.
16615         * cp-abi.c (_initialize_cp_abi): Add declaration.
16616         * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16617         * cp-support.c (_initialize_cp_support): Add declaration.
16618         * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16619         * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16620         * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16621         * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16622         * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16623         * ctfread.c (_initialize_ctfread): Add declaration.
16624         * d-lang.c (_initialize_d_language): Add declaration.
16625         * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16626         * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16627         * dbxread.c (_initialize_dbxread): Add declaration.
16628         * dcache.c (_initialize_dcache): Add declaration.
16629         * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16630         * disasm.c (_initialize_disasm): Add declaration.
16631         * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16632         * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16633         * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16634         * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16635         * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16636         * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16637         * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16638         * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16639         * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16640         * elfread.c (_initialize_elfread): Add declaration.
16641         * exec.c (_initialize_exec): Add declaration.
16642         * extension.c (_initialize_extension): Add declaration.
16643         * f-lang.c (_initialize_f_language): Add declaration.
16644         * f-valprint.c (_initialize_f_valprint): Add declaration.
16645         * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16646         * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16647         * filesystem.c (_initialize_filesystem): Add declaration.
16648         * findcmd.c (_initialize_mem_search): Add declaration.
16649         * findvar.c (_initialize_findvar): Add declaration.
16650         * fork-child.c (_initialize_fork_child): Add declaration.
16651         * frame-base.c (_initialize_frame_base): Add declaration.
16652         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16653         * frame.c (_initialize_frame): Add declaration.
16654         * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16655         * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16656         * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16657         * gcore.c (_initialize_gcore): Add declaration.
16658         * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16659         * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16660         * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16661         * gdbarch.c (_initialize_gdbarch): Add declaration.
16662         * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16663         * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16664         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16665         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16666         * go-lang.c (_initialize_go_language): Add declaration.
16667         * go32-nat.c (_initialize_go32_nat): Add declaration.
16668         * guile/guile.c (_initialize_guile): Add declaration.
16669         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16670         * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16671         * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16672         * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16673         * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16674         * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16675         * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16676         * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16677         * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16678         * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16679         * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16680         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16681         * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16682         * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16683         * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16684         * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16685         * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16686         * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16687         * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16688         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16689         * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16690         * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16691         * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16692         * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16693         * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16694         * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16695         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16696         * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16697         * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16698         * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16699         * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16700         * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16701         * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16702         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16703         * infcall.c (_initialize_infcall): Add declaration.
16704         * infcmd.c (_initialize_infcmd): Add declaration.
16705         * inflow.c (_initialize_inflow): Add declaration.
16706         * infrun.c (_initialize_infrun): Add declaration.
16707         * interps.c (_initialize_interpreter): Add declaration.
16708         * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16709         * jit.c (_initialize_jit): Add declaration.
16710         * language.c (_initialize_language): Add declaration.
16711         * linux-fork.c (_initialize_linux_fork): Add declaration.
16712         * linux-nat.c (_initialize_linux_nat): Add declaration.
16713         * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16714         * linux-thread-db.c (_initialize_thread_db): Add declaration.
16715         * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16716         * m2-lang.c (_initialize_m2_language): Add declaration.
16717         * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16718         * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16719         * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16720         * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16721         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16722         * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16723         * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16724         * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16725         * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16726         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16727         * machoread.c (_initialize_machoread): Add declaration.
16728         * macrocmd.c (_initialize_macrocmd): Add declaration.
16729         * macroscope.c (_initialize_macroscope): Add declaration.
16730         * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16731         * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16732         * maint.c (_initialize_maint_cmds): Add declaration.
16733         * mdebugread.c (_initialize_mdebugread): Add declaration.
16734         * memattr.c (_initialize_mem): Add declaration.
16735         * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16736         * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16737         * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16738         * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16739         * mi/mi-main.c (_initialize_mi_main): Add declaration.
16740         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16741         * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16742         * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16743         * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16744         * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16745         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16746         * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16747         * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16748         * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16749         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16750         * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16751         * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16752         * mipsread.c (_initialize_mipsread): Add declaration.
16753         * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16754         * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16755         * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16756         * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16757         * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16758         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16759         * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16760         * nto-procfs.c (_initialize_procfs): Add declaration.
16761         * objc-lang.c (_initialize_objc_language): Add declaration.
16762         * observable.c (_initialize_observer): Add declaration.
16763         * opencl-lang.c (_initialize_opencl_language): Add declaration.
16764         * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16765         * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16766         * osabi.c (_initialize_gdb_osabi): Add declaration.
16767         * osdata.c (_initialize_osdata): Add declaration.
16768         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16769         * parse.c (_initialize_parse): Add declaration.
16770         * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16771         * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16772         * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16773         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16774         * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16775         * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16776         * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16777         * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16778         * printcmd.c (_initialize_printcmd): Add declaration.
16779         * probe.c (_initialize_probe): Add declaration.
16780         * proc-api.c (_initialize_proc_api): Add declaration.
16781         * proc-events.c (_initialize_proc_events): Add declaration.
16782         * proc-service.c (_initialize_proc_service): Add declaration.
16783         * procfs.c (_initialize_procfs): Add declaration.
16784         * producer.c (_initialize_producer): Add declaration.
16785         * psymtab.c (_initialize_psymtab): Add declaration.
16786         * python/python.c (_initialize_python): Add declaration.
16787         * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16788         * record-btrace.c (_initialize_record_btrace): Add declaration.
16789         * record-full.c (_initialize_record_full): Add declaration.
16790         * record.c (_initialize_record): Add declaration.
16791         * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16792         * regcache.c (_initialize_regcache): Add declaration.
16793         * reggroups.c (_initialize_reggroup): Add declaration.
16794         * remote-notif.c (_initialize_notif): Add declaration.
16795         * remote-sim.c (_initialize_remote_sim): Add declaration.
16796         * remote.c (_initialize_remote): Add declaration.
16797         * reverse.c (_initialize_reverse): Add declaration.
16798         * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16799         * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16800         * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16801         * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16802         * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16803         * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16804         * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16805         * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16806         Add declaration.
16807         * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16808         * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16809         * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16810         * rust-exp.y (_initialize_rust_exp): Add declaration.
16811         * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16812         * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16813         * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16814         * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16815         * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16816         * score-tdep.c (_initialize_score_tdep): Add declaration.
16817         * ser-go32.c (_initialize_ser_dos): Add declaration.
16818         * ser-mingw.c (_initialize_ser_windows): Add declaration.
16819         * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16820         * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16821         * ser-uds.c (_initialize_ser_socket): Add declaration.
16822         * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16823         * serial.c (_initialize_serial): Add declaration.
16824         * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16825         * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16826         * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16827         * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16828         * skip.c (_initialize_step_skip): Add declaration.
16829         * sol-thread.c (_initialize_sol_thread): Add declaration.
16830         * solib-aix.c (_initialize_solib_aix): Add declaration.
16831         * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16832         * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16833         * solib-frv.c (_initialize_frv_solib): Add declaration.
16834         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16835         * solib-target.c (_initialize_solib_target): Add declaration.
16836         * solib.c (_initialize_solib): Add declaration.
16837         * source-cache.c (_initialize_source_cache): Add declaration.
16838         * source.c (_initialize_source): Add declaration.
16839         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16840         * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16841         * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16842         * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16843         * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16844         * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16845         * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16846         * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16847         * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16848         * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16849         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16850         * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16851         * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16852         * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16853         * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16854         * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16855         * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16856         * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16857         * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16858         * stabsread.c (_initialize_stabsread): Add declaration.
16859         * stack.c (_initialize_stack): Add declaration.
16860         * stap-probe.c (_initialize_stap_probe): Add declaration.
16861         * std-regs.c (_initialize_frame_reg): Add declaration.
16862         * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16863         * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16864         * symfile.c (_initialize_symfile): Add declaration.
16865         * symmisc.c (_initialize_symmisc): Add declaration.
16866         * symtab.c (_initialize_symtab): Add declaration.
16867         * target.c (_initialize_target): Add declaration.
16868         * target-connection.c (_initialize_target_connection): Add
16869         declaration.
16870         * target-dcache.c (_initialize_target_dcache): Add declaration.
16871         * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16872         * thread.c (_initialize_thread): Add declaration.
16873         * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16874         * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16875         * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16876         * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16877         * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16878         * tracectf.c (_initialize_ctf): Add declaration.
16879         * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16880         * tracefile.c (_initialize_tracefile): Add declaration.
16881         * tracepoint.c (_initialize_tracepoint): Add declaration.
16882         * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16883         * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16884         * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16885         * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16886         * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16887         * tui/tui-win.c (_initialize_tui_win): Add declaration.
16888         * tui/tui.c (_initialize_tui): Add declaration.
16889         * typeprint.c (_initialize_typeprint): Add declaration.
16890         * ui-style.c (_initialize_ui_style): Add declaration.
16891         * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16892         * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16893         * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16894         * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16895         * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16896         * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16897         * unittests/filtered_iterator-selftests.c
16898         (_initialize_filtered_iterator_selftests): Add declaration.
16899         * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16900         * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16901         * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16902         * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16903         * unittests/main-thread-selftests.c
16904         (_initialize_main_thread_selftests): Add declaration.
16905         * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16906         * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16907         * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16908         * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16909         * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16910         * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16911         * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16912         * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16913         * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16914         * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16915         * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16916         * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16917         * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16918         * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16919         * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16920         declaration.
16921         * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16922         * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16923         * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16924         * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16925         * user-regs.c (_initialize_user_regs): Add declaration.
16926         * utils.c (_initialize_utils): Add declaration.
16927         * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16928         * valops.c (_initialize_valops): Add declaration.
16929         * valprint.c (_initialize_valprint): Add declaration.
16930         * value.c (_initialize_values): Add declaration.
16931         * varobj.c (_initialize_varobj): Add declaration.
16932         * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16933         * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16934         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16935         * windows-nat.c (_initialize_windows_nat): Add declaration.
16936         (_initialize_check_for_gdb_ini): Add declaration.
16937         (_initialize_loadable): Add declaration.
16938         * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16939         * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16940         * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16941         * xcoffread.c (_initialize_xcoffread): Add declaration.
16942         * xml-support.c (_initialize_xml_support): Add declaration.
16943         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16944         * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16945         * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16946         * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16948 2020-01-13  Simon Marchi  <simon.marchi@polymtl.ca>
16950         * regformats/regdat.sh: Generate declaration for init function.
16952 2020-01-13  Simon Marchi  <simon.marchi@polymtl.ca>
16954         * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16955         up.
16956         (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16957         close_one_inferior>: New methods.
16958         (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16959         pass down target to find_inferior_pid.
16960         (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16961         Pass down target to find_inferior_ptid.
16962         (gdbsim_target::create_inferior): Pass down target to
16963         add_thread_silent.
16964         (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16965         target down to find_inferior_ptid and switch_to_thread.
16966         (gdbsim_target::close): Update to call close_one_inferior.
16967         (struct resume_data): Remove.
16968         (gdbsim_resume_inferior): Move to gdbsim_target.  Take arguments
16969         directly, rather than through a void pointer.
16970         (gdbsim_target::resume): Update to call resume_one_inferior.
16972 2020-01-12  Simon Marchi  <simon.marchi@polymtl.ca>
16974         * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16976 2020-01-12  Pedro Alves  <palves@redhat.com>
16978         * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16979         directly for the current inferior instead of
16980         discard_all_inferiors.
16981         (discard_all_inferiors): Delete.
16983 2020-01-11  Tom Tromey  <tom@tromey.com>
16985         * tui/tui-wingeneral.c (box_win): Check cli_styling.
16986         * tui/tui-winsource.c (tui_source_window_base::refill): Use
16987         deprecated_safe_get_selected_frame.
16989 2020-01-10  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
16991         * inferior.c (print_inferior): Switch inferior before printing it.
16993 2020-01-10  Aleksandar Paunovic  <aleksandar.paunovic@intel.com>
16994             Pedro Alves  <palves@redhat.com>
16996         * progspace-and-thread.c (switch_to_program_space_and_thread):
16997         Assert there's an inferior for PSPACE.  Use
16998         switch_to_inferior_no_thread to switch the inferior too.
16999         * progspace.c (program_space::~program_space): Call
17000         clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17001         (program_space::free_all_objfiles): Don't call clear_symtab_users
17002         here.
17003         * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17005 2020-01-10  Pedro Alves  <palves@redhat.com>
17007         * NEWS: Mention multi-target debugging, "info connections", and
17008         "add-inferior -no-connection".
17010 2020-01-10  Pedro Alves  <palves@redhat.com>
17012         * infrun.c: Include "target-connection.h".
17013         (check_multi_target_resumption): New.
17014         (proceed): Call it.
17015         * target-connection.c (make_target_connection_string): Make
17016         extern.
17017         * target-connection.h (make_target_connection_string): Declare.
17019 2020-01-10  Pedro Alves  <palves@redhat.com>
17021         * Makefile.in (COMMON_SFILES): Add target-connection.c.
17022         * inferior.c (uiout_field_connection): New function.
17023         (print_inferior): Add new "connection-id" column.
17024         (add_inferior_command): Show connection number/string of added
17025         inferior.
17026         * process-stratum-target.h
17027         (process_stratum_target::connection_string): New virtual method.
17028         (process_stratum_target::connection_number): New field.
17029         * remote.c (remote_target::connection_string): New override.
17030         * target-connection.c: New file.
17031         * target-connection.h: New file.
17032         * target.c (decref_target): Remove process_stratum targets from
17033         the connection list.
17034         (target_stack::push): Add process_stratum targets to the
17035         connection list.
17037 2020-01-10  Pedro Alves  <palves@redhat.com>
17039         Revert:
17040         2016-04-12  Pedro Alves  <palves@redhat.com>
17041         * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17042         Remove references to name.
17043         * serial.h (struct serial) <name>: Delete.
17045 2020-01-10  Pedro Alves  <palves@redhat.com>
17047         * gdbarch-selftests.c (register_to_value_test): Remove "target
17048         already pushed" check.
17050 2020-01-10  Pedro Alves  <palves@redhat.com>
17051             John Baldwin  <jhb@FreeBSD.org>
17053         * aarch64-linux-nat.c
17054         (aarch64_linux_nat_target::thread_architecture): Adjust.
17055         * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17056         (task_command_1): Likewise.
17057         * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17058         (aix_thread_target::wait, aix_thread_target::fetch_registers)
17059         (aix_thread_target::store_registers)
17060         (aix_thread_target::thread_alive): Adjust.
17061         * amd64-fbsd-tdep.c: Include "inferior.h".
17062         (amd64fbsd_get_thread_local_address): Pass down target.
17063         * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17064         thread's gdbarch instead of target_gdbarch.
17065         * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17066         get_last_target_status.
17067         * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17068         * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17069         inferiors.
17070         (update_inserted_breakpoint_locations): Skip if inferiors with no
17071         execution.
17072         (update_global_location_list): When handling moribund locations,
17073         find representative inferior for location's pspace, and use thread
17074         count of its process_stratum target.
17075         * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17076         * bsd-uthread.c (bsd_uthread_target::wait): Use
17077         as_process_stratum_target and adjust thread_change_ptid and
17078         add_thread calls.
17079         (bsd_uthread_target::update_thread_list): Use
17080         as_process_stratum_target and adjust find_thread_ptid,
17081         thread_change_ptid and add_thread calls.
17082         * btrace.c (maint_btrace_packet_history_cmd): Adjust
17083         find_thread_ptid call.
17084         * corelow.c (add_to_thread_list): Adjust add_thread call.
17085         (core_target_open): Adjust add_thread_silent and thread_count
17086         calls.
17087         (core_target::pid_to_str): Adjust find_inferior_ptid call.
17088         * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17089         * event-top.c (async_disconnect): Pop targets from all inferiors.
17090         * exec.c (add_target_sections): Push exec target on all inferiors
17091         sharing the program space.
17092         (remove_target_sections): Remove the exec target from all
17093         inferiors sharing the program space.
17094         (exec_on_vfork): New.
17095         * exec.h (exec_on_vfork): Declare.
17096         * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17097         Pass it down.
17098         (fbsd_nat_target::update_thread_list): Adjust.
17099         (fbsd_nat_target::resume): Adjust.
17100         (fbsd_handle_debug_trap): Add fbsd_nat_target parameter.  Pass it
17101         down.
17102         (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17103         * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17104         get_thread_arch_regcache call.
17105         * fork-child.c (gdb_startup_inferior): Pass target down to
17106         startup_inferior and set_executing.
17107         * gdbthread.h (struct process_stratum_target): Forward declare.
17108         (add_thread, add_thread_silent, add_thread_with_info)
17109         (in_thread_list): Add process_stratum_target parameter.
17110         (find_thread_ptid(inferior*, ptid_t)): New overload.
17111         (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17112         parameter.
17113         (all_threads()): Delete overload.
17114         (all_threads, all_non_exited_threads): Add process_stratum_target
17115         parameter.
17116         (all_threads_safe): Use brace initialization.
17117         (thread_count): Add process_stratum_target parameter.
17118         (set_resumed, set_running, set_stop_requested, set_executing)
17119         (threads_are_executing, finish_thread_state): Add
17120         process_stratum_target parameter.
17121         (switch_to_thread): Use is_current_thread.
17122         * i386-fbsd-tdep.c: Include "inferior.h".
17123         (i386fbsd_get_thread_local_address): Pass down target.
17124         * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17125         * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17126         have_inferiors check.
17127         * inf-ptrace.c (inf_ptrace_target::create_inferior)
17128         (inf_ptrace_target::attach): Adjust.
17129         * infcall.c (run_inferior_call): Adjust.
17130         * infcmd.c (run_command_1): Pass target to
17131         scoped_finish_thread_state.
17132         (proceed_thread_callback): Skip inferiors with no execution.
17133         (continue_command): Rename 'all_threads' local to avoid hiding
17134         'all_threads' function.  Adjust get_last_target_status call.
17135         (prepare_one_step): Adjust set_running call.
17136         (signal_command): Use user_visible_resume_target.  Compare thread
17137         pointers instead of inferior_ptid.
17138         (info_program_command): Adjust to pass down target.
17139         (attach_command): Mark target's 'thread_executing' flag.
17140         (stop_current_target_threads_ns): New, factored out from ...
17141         (interrupt_target_1): ... this.  Switch inferior before making
17142         target calls.
17143         * inferior-iter.h
17144         (struct all_inferiors_iterator, struct all_inferiors_range)
17145         (struct all_inferiors_safe_range)
17146         (struct all_non_exited_inferiors_range): Filter on
17147         process_stratum_target too.  Remove explicit.
17148         * inferior.c (inferior::inferior): Push dummy target on target
17149         stack.
17150         (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17151         Add process_stratum_target parameter, and pass it down.
17152         (have_live_inferiors): Adjust.
17153         (switch_to_inferior_and_push_target): New.
17154         (add_inferior_command, clone_inferior_command): Handle
17155         "-no-connection" parameter.  Use
17156         switch_to_inferior_and_push_target.
17157         (_initialize_inferior): Mention "-no-connection" option in
17158         the help of "add-inferior" and "clone-inferior" commands.
17159         * inferior.h: Include "process-stratum-target.h".
17160         (interrupt_target_1): Use bool.
17161         (struct inferior) <push_target, unpush_target, target_is_pushed,
17162         find_target_beneath, top_target, process_target, target_at,
17163         m_stack>: New.
17164         (discard_all_inferiors): Delete.
17165         (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17166         (all_inferiors, all_non_exited_inferiors): Add
17167         process_stratum_target parameter.
17168         * infrun.c: Include "gdb_select.h" and <unordered_map>.
17169         (target_last_proc_target): New global.
17170         (follow_fork_inferior): Push target on new inferior.  Pass target
17171         to add_thread_silent.  Call exec_on_vfork.  Handle target's
17172         reference count.
17173         (follow_fork): Adjust get_last_target_status call.  Also consider
17174         target.
17175         (follow_exec): Push target on new inferior.
17176         (struct execution_control_state) <target>: New field.
17177         (user_visible_resume_target): New.
17178         (do_target_resume): Call target_async.
17179         (resume_1): Set target's threads_executing flag.  Consider resume
17180         target.
17181         (commit_resume_all_targets): New.
17182         (proceed): Also consider resume target.  Skip threads of inferiors
17183         with no execution.  Commit resumtion in all targets.
17184         (start_remote): Pass current inferior to wait_for_inferior.
17185         (infrun_thread_stop_requested): Consider target as well.  Pass
17186         thread_info pointer to clear_inline_frame_state instead of ptid.
17187         (infrun_thread_thread_exit): Consider target as well.
17188         (random_pending_event_thread): New inferior parameter.  Use it.
17189         (do_target_wait): Rename to ...
17190         (do_target_wait_1): ... this.  Add inferior parameter, and pass it
17191         down.
17192         (threads_are_resumed_pending_p, do_target_wait): New.
17193         (prepare_for_detach): Adjust calls.
17194         (wait_for_inferior): New inferior parameter.  Handle it.  Use
17195         do_target_wait_1 instead of do_target_wait.
17196         (fetch_inferior_event): Adjust.  Switch to representative
17197         inferior.  Pass target down.
17198         (set_last_target_status): Add process_stratum_target parameter.
17199         Save target in global.
17200         (get_last_target_status): Add process_stratum_target parameter and
17201         handle it.
17202         (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17203         (context_switch): Check inferior_ptid == null_ptid before calling
17204         inferior_thread().
17205         (get_inferior_stop_soon): Pass down target.
17206         (wait_one): Rename to ...
17207         (poll_one_curr_target): ... this.
17208         (struct wait_one_event): New.
17209         (wait_one): New.
17210         (stop_all_threads): Adjust.
17211         (handle_no_resumed, handle_inferior_event): Adjust to consider the
17212         event's target.
17213         (switch_back_to_stepped_thread): Also consider target.
17214         (print_stop_event): Update.
17215         (normal_stop): Update.  Also consider the resume target.
17216         * infrun.h (wait_for_inferior): Remove declaration.
17217         (user_visible_resume_target): New declaration.
17218         (get_last_target_status, set_last_target_status): New
17219         process_stratum_target parameter.
17220         * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17221         process_stratum_target parameter, and use it.
17222         (clear_inline_frame_state (thread_info*)): New.
17223         * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17224         process_stratum_target parameter.
17225         (clear_inline_frame_state (thread_info*)): Declare.
17226         * linux-fork.c (delete_checkpoint_command): Pass target down to
17227         find_thread_ptid.
17228         (checkpoint_command): Adjust.
17229         * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17230         instead of just tweaking inferior_ptid.
17231         (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17232         (exit_lwp): Pass target down to find_thread_ptid.
17233         (attach_proc_task_lwp_callback): Pass target down to
17234         add_thread/set_running/set_executing.
17235         (linux_nat_target::attach): Pass target down to
17236         thread_change_ptid.
17237         (get_detach_signal): Pass target down to find_thread_ptid.
17238         Consider last target status's target.
17239         (linux_resume_one_lwp_throw, resume_lwp)
17240         (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17241         (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17242         (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17243         (linux_nat_target::async_wait_fd): New.
17244         (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17245         target down.
17246         * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17247         * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17248         * linux-thread-db.c (struct thread_db_info::process_target): New
17249         field.
17250         (add_thread_db_info): Save target.
17251         (get_thread_db_info): New process_stratum_target parameter.  Also
17252         match target.
17253         (delete_thread_db_info): New process_stratum_target parameter.
17254         Also match target.
17255         (thread_from_lwp): Adjust to pass down target.
17256         (thread_db_notice_clone): Pass down target.
17257         (check_thread_db_callback): Pass down target.
17258         (try_thread_db_load_1): Always push the thread_db target.
17259         (try_thread_db_load, record_thread): Pass target down.
17260         (thread_db_target::detach): Pass target down.  Always unpush the
17261         thread_db target.
17262         (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17263         target down.  Always unpush the thread_db target.
17264         (find_new_threads_callback, thread_db_find_new_threads_2)
17265         (thread_db_target::update_thread_list): Pass target down.
17266         (thread_db_target::pid_to_str): Pass current inferior down.
17267         (thread_db_target::get_thread_local_address): Pass target down.
17268         (thread_db_target::resume, maintenance_check_libthread_db): Pass
17269         target down.
17270         * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17271         * procfs.c (procfs_target::procfs_init_inferior): Declare.
17272         (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17273         (procfs_init_inferior): Rename to ...
17274         (procfs_target::procfs_init_inferior): ... this and adjust.
17275         (procfs_target::create_inferior, procfs_notice_thread)
17276         (procfs_do_thread_registers): Adjust.
17277         * ppc-fbsd-tdep.c: Include "inferior.h".
17278         (ppcfbsd_get_thread_local_address): Pass down target.
17279         * proc-service.c (ps_xfer_memory): Switch current inferior and
17280         program space as well.
17281         (get_ps_regcache): Pass target down.
17282         * process-stratum-target.c
17283         (process_stratum_target::thread_address_space)
17284         (process_stratum_target::thread_architecture): Pass target down.
17285         * process-stratum-target.h
17286         (process_stratum_target::threads_executing): New field.
17287         (as_process_stratum_target): New.
17288         * ravenscar-thread.c
17289         (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17290         (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17291         down.
17292         * record-btrace.c (record_btrace_target::info_record): Adjust.
17293         (record_btrace_target::record_method)
17294         (record_btrace_target::record_is_replaying)
17295         (record_btrace_target::fetch_registers)
17296         (get_thread_current_frame_id, record_btrace_target::resume)
17297         (record_btrace_target::wait, record_btrace_target::stop): Pass
17298         target down.
17299         * record-full.c (record_full_wait_1): Switch to event thread.
17300         Pass target down.
17301         * regcache.c (regcache::regcache)
17302         (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17303         process_stratum_target parameter and handle it.
17304         (current_thread_target): New global.
17305         (get_thread_regcache): Add process_stratum_target parameter and
17306         handle it.  Switch inferior before calling target method.
17307         (get_thread_regcache): Pass target down.
17308         (get_thread_regcache_for_ptid): Pass target down.
17309         (registers_changed_ptid): Add process_stratum_target parameter and
17310         handle it.
17311         (registers_changed_thread, registers_changed): Pass target down.
17312         (test_get_thread_arch_aspace_regcache): New.
17313         (current_regcache_test): Define a couple local test_target_ops
17314         instances and use them for testing.
17315         (readwrite_regcache): Pass process_stratum_target parameter.
17316         (cooked_read_test, cooked_write_test): Pass mock_target down.
17317         * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17318         (get_thread_arch_aspace_regcache): Add process_stratum_target
17319         parameter.
17320         (regcache::target): New method.
17321         (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17322         (regcache::registers_changed_ptid): Add process_stratum_target
17323         parameter.
17324         (regcache::m_target): New field.
17325         (registers_changed_ptid): Add process_stratum_target parameter.
17326         * remote.c (remote_state::supports_vCont_probed): New field.
17327         (remote_target::async_wait_fd): New method.
17328         (remote_unpush_and_throw): Add remote_target parameter.
17329         (get_current_remote_target): Adjust.
17330         (remote_target::remote_add_inferior): Push target.
17331         (remote_target::remote_add_thread)
17332         (remote_target::remote_notice_new_inferior)
17333         (get_remote_thread_info): Pass target down.
17334         (remote_target::update_thread_list): Skip threads of inferiors
17335         bound to other targets.  (remote_target::close): Don't discard
17336         inferiors.  (remote_target::add_current_inferior_and_thread)
17337         (remote_target::process_initial_stop_replies)
17338         (remote_target::start_remote)
17339         (remote_target::remote_serial_quit_handler): Pass down target.
17340         (remote_target::remote_unpush_target): New remote_target
17341         parameter.  Unpush the target from all inferiors.
17342         (remote_target::remote_unpush_and_throw): New remote_target
17343         parameter.  Pass it down.
17344         (remote_target::open_1): Check whether the current inferior has
17345         execution instead of checking whether any inferior is live.  Pass
17346         target down.
17347         (remote_target::remote_detach_1): Pass down target.  Use
17348         remote_unpush_target.
17349         (extended_remote_target::attach): Pass down target.
17350         (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17351         (remote_target::append_resumption): Pass down target.
17352         (remote_target::append_pending_thread_resumptions)
17353         (remote_target::remote_resume_with_hc, remote_target::resume)
17354         (remote_target::commit_resume): Pass down target.
17355         (remote_target::remote_stop_ns): Check supports_vCont_probed.
17356         (remote_target::interrupt_query)
17357         (remote_target::remove_new_fork_children)
17358         (remote_target::check_pending_events_prevent_wildcard_vcont)
17359         (remote_target::remote_parse_stop_reply)
17360         (remote_target::process_stop_reply): Pass down target.
17361         (first_remote_resumed_thread): New remote_target parameter.  Pass
17362         it down.
17363         (remote_target::wait_as): Pass down target.
17364         (unpush_and_perror): New remote_target parameter.  Pass it down.
17365         (remote_target::readchar, remote_target::remote_serial_write)
17366         (remote_target::getpkt_or_notif_sane_1)
17367         (remote_target::kill_new_fork_children, remote_target::kill): Pass
17368         down target.
17369         (remote_target::mourn_inferior): Pass down target.  Use
17370         remote_unpush_target.
17371         (remote_target::core_of_thread)
17372         (remote_target::remote_btrace_maybe_reopen): Pass down target.
17373         (remote_target::pid_to_exec_file)
17374         (remote_target::thread_handle_to_thread_info): Pass down target.
17375         (remote_target::async_wait_fd): New.
17376         * riscv-fbsd-tdep.c: Include "inferior.h".
17377         (riscv_fbsd_get_thread_local_address): Pass down target.
17378         * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17379         * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17380         (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17381         Adjust.
17382         * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17383         * solib-svr4.c (enable_break): Pass down target.
17384         * spu-multiarch.c (parse_spufs_run): Pass down target.
17385         * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17386         * target-delegates.c: Regenerate.
17387         * target.c (g_target_stack): Delete.
17388         (current_top_target): Return the current inferior's top target.
17389         (target_has_execution_1): Refer to the passed-in inferior's top
17390         target.
17391         (target_supports_terminal_ours): Check whether the initial
17392         inferior was already created.
17393         (decref_target): New.
17394         (target_stack::push): Incref/decref the target.
17395         (push_target, push_target, unpush_target): Adjust.
17396         (target_stack::unpush): Defref target.
17397         (target_is_pushed): Return bool.  Adjust to refer to the current
17398         inferior's target stack.
17399         (dispose_inferior): Delete, and inline parts ...
17400         (target_preopen): ... here.  Only dispose of the current inferior.
17401         (target_detach): Hold strong target reference while detaching.
17402         Pass target down.
17403         (target_thread_name): Add assertion.
17404         (target_resume): Pass down target.
17405         (target_ops::beneath, find_target_at): Adjust to refer to the
17406         current inferior's target stack.
17407         (get_dummy_target): New.
17408         (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17409         has a thread running.
17410         (initialize_targets): Rename to ...
17411         (_initialize_target): ... this.
17412         * target.h: Include "gdbsupport/refcounted-object.h".
17413         (struct target_ops): Inherit refcounted_object.
17414         (target_ops::shortname, target_ops::longname): Make const.
17415         (target_ops::async_wait_fd): New method.
17416         (decref_target): Declare.
17417         (struct target_ops_ref_policy): New.
17418         (target_ops_ref): New typedef.
17419         (get_dummy_target): Declare function.
17420         (target_is_pushed): Return bool.
17421         * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17422         (all_matching_threads_iterator::all_matching_threads_iterator):
17423         Handle filter target.
17424         * thread-iter.h (struct all_matching_threads_iterator, struct
17425         all_matching_threads_range, class all_non_exited_threads_range):
17426         Filter by target too.  Remove explicit.
17427         * thread.c (threads_executing): Delete.
17428         (inferior_thread): Pass down current inferior.
17429         (clear_thread_inferior_resources): Pass down thread pointer
17430         instead of ptid_t.
17431         (add_thread_silent, add_thread_with_info, add_thread): Add
17432         process_stratum_target parameter.  Use it for thread and inferior
17433         searches.
17434         (is_current_thread): New.
17435         (thread_info::deletable): Use it.
17436         (find_thread_ptid, thread_count, in_thread_list)
17437         (thread_change_ptid, set_resumed, set_running): New
17438         process_stratum_target parameter.  Pass it down.
17439         (set_executing): New process_stratum_target parameter.  Pass it
17440         down.  Adjust reference to 'threads_executing'.
17441         (threads_are_executing): New process_stratum_target parameter.
17442         Adjust reference to 'threads_executing'.
17443         (set_stop_requested, finish_thread_state): New
17444         process_stratum_target parameter.  Pass it down.
17445         (switch_to_thread): Also match inferior.
17446         (switch_to_thread): New process_stratum_target parameter.  Pass it
17447         down.
17448         (update_threads_executing): Reimplement.
17449         * top.c (quit_force): Pop targets from all inferior.
17450         (gdb_init): Don't call initialize_targets.
17451         * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17452         Declare.
17453         (windows_add_thread, windows_delete_thread): Adjust.
17454         (get_windows_debug_event): Rename to ...
17455         (windows_nat_target::get_windows_debug_event): ... this.  Adjust.
17456         * tracefile-tfile.c (tfile_target_open): Pass down target.
17457         * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17458         Forward declare.
17459         (switch_to_thread): Add process_stratum_target parameter.
17460         * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17461         parameter.  Use it.
17462         (mi_on_resume): Pass target down.
17463         * nat/fork-inferior.c (startup_inferior): Add
17464         process_stratum_target parameter.  Pass it down.
17465         * nat/fork-inferior.h (startup_inferior): Add
17466         process_stratum_target parameter.
17467         * python/py-threadevent.c (py_get_event_thread): Pass target down.
17469 2020-01-10  Pedro Alves  <palves@redhat.com>
17471         * remote.c (remote_target::start_remote): Don't set inferior_ptid
17472         directly.  Instead find the first thread in the thread list and
17473         use switch_to_thread.
17475 2020-01-10  Pedro Alves  <palves@redhat.com>
17477         * remote.c (remote_target::remote_add_inferior): Don't bind a
17478         process to the current inferior if the current inferior is already
17479         bound to a process.
17481 2020-01-10  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
17482             Pedro Alves  <palves@redhat.com>
17484         * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17485         If no process is specified, return null_ptid instead of
17486         inferior_ptid.
17487         (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17488         TARGET_WAITKIND_SIGNALLED with no pid.
17490 2020-01-10  Pedro Alves  <palves@redhat.com>
17492         * remote.c (first_remote_resumed_thread): New.
17493         (remote_target::wait_as): Use it as default event_ptid instead of
17494         inferior_ptid.
17496 2020-01-10  Pedro Alves  <palves@redhat.com>
17498         * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17500 2020-01-10  Pedro Alves  <palves@redhat.com>
17502         * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17503         not -1.
17505 2020-01-10  Pedro Alves  <palves@redhat.com>
17507         * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17508         ptid to get_last_target_status.
17509         * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17510         ptid to get_last_target_status.
17511         * infcmd.c (continue_command): Don't pass a target_waitstatus to
17512         get_last_target_status.
17513         (info_program_command): Don't pass a target_waitstatus to
17514         get_last_target_status.
17515         * infrun.c (init_wait_for_inferior): Use
17516         nullify_last_target_wait_ptid.
17517         (get_last_target_status): Handle nullptr arguments.
17518         (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17519         (print_stop_event): Don't pass a ptid to get_last_target_status.
17520         (normal_stop): Don't pass a ptid to get_last_target_status.
17521         * infrun.h (get_last_target_status, set_last_target_status): Move
17522         comments here and update.
17523         (nullify_last_target_wait_ptid): Declare.
17524         * linux-fork.c (fork_load_infrun_state): Remove local extern
17525         declaration of nullify_last_target_wait_ptid.
17526         * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17527         to get_last_target_status.
17529 2020-01-10  Pedro Alves  <palves@redhat.com>
17531         * gdbthread.h (scoped_restore_current_thread)
17532         <dont_restore, restore, m_dont_restore>: Declare.
17533         * thread.c (thread_alive): Add assertion.  Return bool.
17534         (switch_to_thread_if_alive): New.
17535         (prune_threads): Switch inferior/thread.
17536         (print_thread_info_1): Switch thread before calling target methods.
17537         (scoped_restore_current_thread::restore): New, factored out from
17538         ...
17539         (scoped_restore_current_thread::~scoped_restore_current_thread):
17540         ... this.
17541         (scoped_restore_current_thread::scoped_restore_current_thread):
17542         Add assertion.
17543         (thread_apply_all_command, thread_select): Use
17544         switch_to_thread_if_alive.
17545         * infrun.c (proceed, restart_threads, handle_signal_stop)
17546         (switch_back_to_stepped_thread): Switch current thread before
17547         calling target methods.
17549 2020-01-10  Pedro Alves <palves@redhat.com>
17551         * inferior.c (switch_to_inferior_no_thread): New function,
17552         factored out from ...
17553         (inferior_command): ... here.
17554         * inferior.h (switch_to_inferior_no_thread): Declare.
17555         * mi/mi-main.c (run_one_inferior): Use
17556         switch_to_inferior_no_thread.
17558 2020-01-10  Pedro Alves  <palves@redhat.com>
17560         * infcmd.c (kill_command): Remove dead code.
17562 2020-01-10  Pedro Alves  <palves@redhat.com>
17564         * remote.c (remote_target::mourn_inferior): No longer check
17565         whether the target is running.
17567 2020-01-10  Pedro Alves  <palves@redhat.com>
17569         * corelow.c (core_target::has_execution): Change parameter type to
17570         inferior pointer.
17571         * inferior.c (number_of_live_inferiors): Use
17572         inferior::has_execution instead of target_has_execution_1.
17573         * inferior.h (inferior::has_execution): New.
17574         * linux-thread-db.c (thread_db_target::update_thread_list): Use
17575         inferior::has_execution instead of target_has_execution_1.
17576         * process-stratum-target.c
17577         (process_stratum_target::has_execution): Change parameter type to
17578         inferior pointer.  Check the inferior's PID instead of
17579         inferior_ptid.
17580         * process-stratum-target.h
17581         (process_stratum_target::has_execution): Change parameter type to
17582         inferior pointer.
17583         * record-full.c (record_full_core_target::has_execution): Change
17584         parameter type to inferior pointer.
17585         * target.c (target_has_execution_1): Change parameter type to
17586         inferior pointer.
17587         (target_has_execution_current): Adjust.
17588         * target.h (target_ops::has_execution): Change parameter type to
17589         inferior pointer.
17590         (target_has_execution_1): Change parameter type to inferior
17591         pointer.  Change return type to bool.
17592         * tracefile.h (tracefile_target::has_execution): Change parameter
17593         type to inferior pointer.
17595 2020-01-10  Pedro Alves  <palves@redhat.com>
17597         * exceptions.c (print_flush): Remove current_top_target() check.
17599 2020-01-10  Pedro Alves  <palves@redhat.com>
17601         * remote.c (show_remote_exec_file): Show the current inferior's
17602         exec-file instead of the command variable's value.
17604 2020-01-10  Pedro Alves  <palves@redhat.com>
17606         * record-full.c (record_full_resume_ptid): New global.
17607         (record_full_target::resume): Set it.
17608         (record_full_wait_1): Use record_full_resume_ptid instead of
17609         inferior_ptid.
17611 2020-01-10  Pedro Alves  <palves@redhat.com>
17613         * gdbthread.h (scoped_restore_current_thread)
17614         <dont_restore, restore, m_dont_restore>: Declare.
17615         * thread.c (thread_alive): Add assertion.  Return bool.
17616         (switch_to_thread_if_alive): New.
17617         (prune_threads): Switch inferior/thread.
17618         (print_thread_info_1): Switch thread before calling target methods.
17619         (scoped_restore_current_thread::restore): New, factored out from
17620         ...
17621         (scoped_restore_current_thread::~scoped_restore_current_thread):
17622         ... this.
17623         (scoped_restore_current_thread::scoped_restore_current_thread):
17624         Add assertion.
17625         (thread_apply_all_command, thread_select): Use
17626         switch_to_thread_if_alive.
17628 2020-01-10  George Barrett  <bob@bob131.so>
17630         * stap-probe.c (stap_modify_semaphore): Don't check for null
17631         semaphores.
17632         (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17633         for null semaphores.
17635 2020-01-09  Andrew Burgess  <andrew.burgess@embecosm.com>
17637         * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17638         all source windows, and maintain horizontal scroll status while
17639         doing so.
17641 2020-01-09  Tom Tromey  <tom@tromey.com>
17643         PR tui/18932:
17644         * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17645         update_source_window, not print_source_lines.
17647 2020-01-09  Andrew Burgess  <andrew.burgess@embecosm.com>
17649         * tui/tui.c (tui_enable): Register tui hooks after calling
17650         tui_display_main.
17652 2020-01-09  Christian Biesinger  <cbiesinger@google.com>
17654         * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17656 2020-01-08  Simon Marchi  <simon.marchi@efficios.com>
17658         * thread.c (print_thread_info_1): Fix indentation.
17660 2020-01-09  Christian Biesinger  <cbiesinger@google.com>
17662         * symtab.c (general_symbol_info::compute_and_set_names): Move the
17663         unique_xmalloc_ptr outside the if to always free the demangled name.
17665 2020-01-08  Tom Tromey  <tromey@adacore.com>
17667         * xcoffread.c (enter_line_range, read_xcoff_symtab)
17668         (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17669         * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17670         (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17671         Remove.
17672         (section_offsets): New typedef.
17673         * symtab.c (fixup_section, get_msymbol_address): Update.
17674         * symmisc.c (dump_msymbols): Update.
17675         * symfile.h (relative_addr_info_to_section_offsets)
17676         (symfile_map_offsets_to_segments): Update.
17677         * symfile.c (build_section_addr_info_from_objfile)
17678         (init_objfile_sect_indices): Update.
17679         (struct place_section_arg): Change type of "offsets".
17680         (place_section): Update.
17681         (relative_addr_info_to_section_offsets): Change type of
17682         "section_offsets".  Remove "num_sections" parameter.
17683         (default_symfile_offsets, syms_from_objfile_1)
17684         (set_objfile_default_section_offset): Update.
17685         (reread_symbols): No need to preserve section offsets by hand.
17686         (symfile_map_offsets_to_segments): Change type of "offsets".
17687         * stap-probe.c (relocate_address): Update.
17688         * stabsread.h (process_one_symbol): Update.
17689         * solib-target.c (struct lm_info_target) <offsets>: Change type.
17690         (solib_target_relocate_section_addresses): Update.
17691         * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17692         Update.
17693         * solib-frv.c (frv_relocate_main_executable): Update.
17694         * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17695         * solib-aix.c (solib_aix_get_section_offsets): Change return
17696         type.
17697         (solib_aix_solib_create_inferior_hook): Update.
17698         * remote.c (remote_target::get_offsets): Update.
17699         * psymtab.c (find_pc_sect_psymtab): Update.
17700         * psympriv.h (struct partial_symbol) <address, text_low,
17701         text_high>: Update.
17702         * objfiles.h (obj_section_offset): Update.
17703         (struct objfile) <section_offsets>: Change type.
17704         <num_sections>: Remove.
17705         (objfile_relocate): Update.
17706         * objfiles.c (entry_point_address_query): Update
17707         (relocate_one_symbol): Change type of "section_offsets".
17708         (objfile_relocate1, objfile_relocate1): Change type of
17709         "new_offsets".
17710         (objfile_rebase1): Update.
17711         * mipsread.c (mipscoff_symfile_read): Update.
17712         (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17713         parameter.
17714         * mdebugread.c (parse_symbol): Change type of "section_offsets".
17715         (parse_external, psymtab_to_symtab_1): Update.
17716         * machoread.c (macho_symfile_offsets): Update.
17717         * ia64-tdep.c (ia64_find_unwind_table): Update.
17718         * hppa-tdep.c (read_unwind_info): Update.
17719         * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17720         * dwarf2read.c (create_addrmap_from_index)
17721         (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17722         (process_psymtab_comp_unit_reader, add_partial_symbol)
17723         (add_partial_subprogram, process_full_comp_unit)
17724         (read_file_scope, read_func_scope, read_lexical_block_scope)
17725         (read_call_site_scope, dwarf2_rnglists_process)
17726         (dwarf2_ranges_process, dwarf2_ranges_read)
17727         (dwarf_decode_lines_1, var_decode_location, new_symbol)
17728         (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17729         Update.
17730         * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17731         Update.
17732         * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17733         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17734         (process_one_symbol): Change type of "section_offsets".
17735         * ctfread.c (get_objfile_text_range): Update.
17736         * coffread.c (coff_symtab_read, enter_linenos)
17737         (process_coff_symbol): Update.
17738         * coff-pe-read.c (add_pe_forwarded_sym): Update.
17739         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17741 2020-01-08  Tom Tromey  <tromey@adacore.com>
17743         * dwarf2read.c (parse_macro_definition): Use std::string.
17744         (parse_macro_definition): Likewise.
17746 2020-01-08  Tom Tromey  <tromey@adacore.com>
17748         * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17749         (ATTR_ALLOC_CHUNK): Remove.
17751 2020-01-08  Tom Tromey  <tromey@adacore.com>
17753         * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17755 2020-01-08  Tom Tromey  <tromey@adacore.com>
17757         * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17758         (dwarf2_compute_name, open_dwo_file): Likewise.
17759         (process_enumeration_scope): Use std::vector.
17760         (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17761         (partial_die_info::fixup, dwarf2_start_subfile)
17762         (guess_full_die_structure_name, dwarf2_name): Likewise.
17763         (determine_prefix): Update.
17764         (guess_full_die_structure_name): Make return type const.
17765         (partial_die_full_name): Return unique_xmalloc_ptr.
17766         (DW_FIELD_ALLOC_CHUNK): Remove.
17768 2020-01-07  Tom Tromey  <tromey@adacore.com>
17770         PR build/24937:
17771         * stap-probe.c (class stap_static_probe_ops): Add constructor.
17773 2020-01-02  Jon Turney  <jon.turney@dronecode.org.uk>
17775         * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17777 2020-01-06  Andrew Burgess  <andrew.burgess@embecosm.com>
17779         * stack.c (print_frame_info): Move disassemble_next_line code
17780         inside source_print block.
17782 2020-01-06  Eli Zaretskii  <eliz@gnu.org>
17784         * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17785         gdb/signals.h, as we are now using native signal symbols.
17787 2020-01-06  Shahab Vahedi  <shahab@synopsys.com>
17789         * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17790         overflow by an early check of content vs threshold.
17791         * tui/tui-source.c (tui_source_window::line_is_displayed):
17792         Likewise.
17794 2020-01-06  Eli Zaretskii  <eliz@gnu.org>
17796         * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17798 2020-01-02  Jon Turney  <jon.turney@dronecode.org.uk>
17800         * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17801         export table if no section contains it's RVA.
17803 2020-01-06  Eli Zaretskii  <eliz@gnu.org>
17805         * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17807 2020-01-06  Hannes Domani  <ssbssa@yahoo.de>
17809         * source.c (print_source_lines_base): Set last_line_listed.
17811 2020-01-06  Shahab Vahedi  <shahab@synopsys.com>
17813         * tui/tui-disasm.c: Remove trailing spaces.
17815 2020-01-06  Eli Zaretskii  <eliz@gnu.org>
17816             Pedro Alves  <palves@redhat.com>
17818         * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17819         * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17820         (windows_gdb_signal_to_target): New function, uses the above
17821         enumeration to convert GDB internal signal codes to equivalent
17822         Windows codes.
17823         (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17824         * windows-nat.c: Include "gdb_wait.h".
17825         (get_windows_debug_event): Extract the fatal exception from the
17826         exit status and convert to the equivalent Posix signal number.
17827         * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17828         possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17829         * gdbsupport/gdb_wait.c: New file, implements
17830         windows_status_to_termsig.
17831         * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17832         (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17834 2020-01-05  Andrew Burgess  <andrew.burgess@embecosm.com>
17836         * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17837         show_layout.
17839 2020-01-05  Luis Machado  <luis.machado@linaro.org>
17841         * aarch64-linux-nat.c
17842         (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17843         and bfd_mach_aarch64.
17845 2020-01-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
17847         * ui-file.c (stdio_file::can_emit_style_escape)
17848         (tee_file::can_emit_style_escape): Ensure style is used also on
17849         gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17850         to gdb_stdout.
17851         * main.c (set_gdb_data_directory): Use file style to output the
17852         warning that the given pathname is not a directory.
17853         * top.c (show_history_filename, gdb_safe_append_history)
17854         (show_gdb_datadir): Use file style.
17856 2020-01-03  Hannes Domani  <ssbssa@yahoo.de>
17858         * solib-target.c (struct lm_info_target):
17859         Change offsets to be a unique_xmalloc_ptr.
17860         (solib_target_relocate_section_addresses): Update.
17862 2020-01-03  Hannes Domani  <ssbssa@yahoo.de>
17864         * windows-nat.c (windows_clear_solib): Free so_list linked list.
17866 2020-01-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17868         * MAINTAINERS (Write After Approval): Add myself.
17870 2020-01-02  Luis Machado  <luis.machado@linaro.org>
17872         * proc-service.c (get_ps_regcache): Remove reference to obsolete
17873         Cell BE architecture.
17874         * target.h (struct target_ops) <thread_architecture>: Likewise.
17876 2020-01-01  Hannes Domani  <ssbssa@yahoo.de>
17878         * Makefile.in: Use INSTALL_PROGRAM_ENV.
17880 2020-01-01  Hannes Domani  <ssbssa@yahoo.de>
17882         * MAINTAINERS (Write After Approval): Add myself.
17884 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
17886         * gdbarch.sh: Update copyright year range of generated files.
17888 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
17890         Update copyright year range in all GDB files.
17892 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
17894         * copyright.py: Convert to Python 3.
17896 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
17898         * copyright.py: Adapt after move of gnulib directory from gdb
17899         directory to toplevel directory.
17901 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
17903         * copyright.py (main): Exit if run from the wrong directory.
17905 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
17907         * top.c (print_gdb_version): Change copyright year to 2020.
17909 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
17911         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17913 For older changes see ChangeLog-2019.
17915 Local Variables:
17916 mode: change-log
17917 left-margin: 8
17918 fill-column: 74
17919 version-control: never
17920 coding: utf-8
17921 End: