]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Select variant field when printing variant
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6ee448cc
TT
12020-04-06 Tom Tromey <tromey@adacore.com>
2
3 * ada-valprint.c (print_variant_part): Extract the variant field.
4 (print_field_values): Use the field as the outer value when
5 recursing.
6
dea34e8c
TT
72020-04-06 Tom Tromey <tromey@adacore.com>
8
9 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
13 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
14
93689ce9
TT
152020-04-06 Tom Tromey <tromey@adacore.com>
16
17 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
18 TYPE_CODE_ERROR.
19
79743962
KR
202020-04-06 Kamil Rytarowski <n54@gmx.com>
21
22 * nbsd-tdep.c: Include "gdbarch.h".
23 Define enum with NetBSD signal numbers.
24 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
25 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
26 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
27 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
28 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
29 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
30 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
31 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
32 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
33 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
34 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
35 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
36
9e7c9a03
HD
372020-04-03 Hannes Domani <ssbssa@yahoo.de>
38
39 PR gdb/25325
40 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
41
d9e49b61
TT
422020-04-03 Tom Tromey <tromey@adacore.com>
43
44 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
45 Read constant block.
46
e0fc5c3f
SM
472020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
48
49 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
50 (gdb_bfd_get_full_section_contents): New declaration.
51 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
52 * windows-tdep.c (is_linked_with_cygwin_dll): Use
53 gdb_bfd_get_full_section_contents.
54
e2ff18a0
SM
552020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
56
57 * exec.c (build_section_table): Replace internal_error with
58 gdb_assert.
59 (section_table_xfer_memory_partial): Likewise.
60 * mdebugread.c (parse_partial_symbols): Likewise.
61 * psymtab.c (lookup_partial_symbol): Likewise.
62 * utils.c (wrap_here): Likewise.
63
0830d301
TT
642020-04-02 Tom Tromey <tromey@adacore.com>
65
66 * f-lang.c (build_fortran_types): Use arch_type to initialize
67 builtin_complex_s32 in the TYPE_CODE_ERROR case.
68
e7da7f8f
TT
692020-04-02 Tom Tromey <tromey@adacore.com>
70
71 * dwarf2/read.c (partial_die_info::read): Do not create a vector
72 of attributes.
73
c90d28ac
AB
742020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
75 Bernd Edlinger <bernd.edlinger@hotmail.de>
76 Tom Tromey <tromey@adacore.com>
77
78 * buildsym.c (buildsym_compunit::record_line): Remove
79 deduplication code.
80
1aa98955
TV
812020-04-02 Tom de Vries <tdevries@suse.de>
82
83 PR ada/24671
84 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
85
d3214198
TV
862020-04-02 Tom de Vries <tdevries@suse.de>
87
88 * dwarf2/read.c (dwarf2_gdb_index_functions,
89 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
90 NULL.
91 * psymtab.c (psym_lookup_global_symbol_language): New function.
92 (psym_functions): Init psym_lookup_global_symbol_language with
93 psym_lookup_global_symbol_language.
94 * symfile-debug.c (debug_sym_quick_functions): Init
95 lookup_global_symbol_language with NULL.
96 * symfile.c (set_initial_language): Remove fixme comment.
97 * symfile.h (struct quick_symbol_functions): Add
98 lookup_global_symbol_language.
99 * symtab.c (find_quick_global_symbol_language): New function.
100 (find_main_name): Use find_quick_global_symbol_language.
101
2836752f
SM
1022020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
103
104 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
105
64dc2d4b
BE
1062020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
107
108 * buildsym.c (record_line): Fix undefined behavior and preserve
109 lines at eof.
110
bbe3dc41
BE
1112020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
112
113 * buildsym.c (record_line): Fix the resizing condition.
114
6b4a335b
TT
1152020-04-01 Tom Tromey <tom@tromey.com>
116
117 * value.h (value_literal_complex): Add comment.
118 * valops.c (value_literal_complex): Refer to value.h.
119
3638a098
TT
1202020-04-01 Tom Tromey <tom@tromey.com>
121
122 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
123 (scalar_type): New rule, from typebase.
124 (typebase): Use scalar_type. Recognize complex types.
125 (field_name): Handle FLOAT_KEYWORD.
126 (ident_tokens): Add _Complex and __complex__.
127
c34e8714
TT
1282020-04-01 Tom Tromey <tom@tromey.com>
129
130 PR exp/25299:
131 * valarith.c (promotion_type, complex_binop): New functions.
132 (scalar_binop): Handle complex numbers. Use promotion_type.
133 (value_pos, value_neg, value_complement): Handle complex numbers.
134
fa649bb7
TT
1352020-04-01 Tom Tromey <tom@tromey.com>
136
137 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
138 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
139 (parse_number): Handle complex numbers.
140
981c08ce
TT
1412020-04-01 Tom Tromey <tom@tromey.com>
142
143 * c-valprint.c (c_decorations): Change complex suffix to "i".
144
4c99290d
TT
1452020-04-01 Tom Tromey <tom@tromey.com>
146
147 * valprint.c (generic_value_print_complex): Use accessors.
148 * value.h (value_real_part, value_imaginary_part): Declare.
149 * valops.c (value_real_part, value_imaginary_part): New
150 functions.
151 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
152
5b930b45
TT
1532020-04-01 Tom Tromey <tom@tromey.com>
154
155 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
156 (read_range_type): Update.
157 * mdebugread.c (basic_type): Update.
158 * go-lang.c (build_go_types): Use init_complex_type.
159 * gdbtypes.h (struct main_type) <complex_type>: New member.
160 (init_complex_type): Update.
161 (arch_complex_type): Don't declare.
162 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
163 Make name if none given. Use alloc_type_copy. Look for cached
164 complex type.
165 (arch_complex_type): Remove.
166 (gdbtypes_post_init): Use init_complex_type.
167 * f-lang.c (build_fortran_types): Use init_complex_type.
168 * dwarf2/read.c (read_base_type): Update.
169 * d-lang.c (build_d_types): Use init_complex_type.
170 * ctfread.c (read_base_type): Update.
171
53cccef1
TBA
1722020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
173
174 * infrun.c (stop_all_threads): Update assertion, plus when
175 stopping threads, take into account that we might be trying
176 to stop an all-stop target.
177 (stop_waiting): Call 'stop_all_threads' if there exists a
178 non-stop target.
179
a0714d30
TBA
1802020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
181
182 * target.h (exists_non_stop_target): New function declaration.
183 * target.c (exists_non_stop_target): New function.
184
60e22c1e
HD
1852020-04-01 Hannes Domani <ssbssa@yahoo.de>
186
187 PR gdb/24789
188 * eval.c (is_integral_or_integral_reference): New function.
189 (evaluate_subexp_standard): Allow integer references in
190 pointer arithmetic.
191
e139a727
TBA
1922020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
193
194 * remote.c (remote_target::remote_parse_stop_reply): Remove the
195 check for no ptid in the stop reply when the target is non-stop.
196
e0802d59
TT
1972020-04-01 Tom Tromey <tromey@adacore.com>
198
199 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
200 "name" parameter to rvalue reference. Initialize m_name_holder.
201 <lookup_name_info>: New overloads.
202 <name>: Return gdb::string_view.
203 <c_str>: New method.
204 <make_ignore_params>: Update.
205 <search_name_hash>: Update.
206 <language_lookup_name>: Return const char *.
207 <m_name>: Change type.
208 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
209 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
210 (lookup_name_info::match_any): Update.
211 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
212 Update.
213 * minsyms.c (linkage_name_str): Update.
214 * language.c (default_symbol_name_matcher): Update.
215 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
216 Update.
217 * ada-lang.c (ada_fold_name): Change parameter to string_view.
218 (ada_lookup_name_info::ada_lookup_name_info): Update.
219 (literal_symbol_name_matcher): Update.
220
8c072cb6
TT
2212020-04-01 Tom Tromey <tromey@adacore.com>
222
223 * psymtab.c (psymtab_search_name): Remove function.
224 (psym_lookup_symbol): Create search name and lookup name here.
225 (lookup_partial_symbol): Remove "name" parameter; add
226 lookup_name.
227 (psym_expand_symtabs_for_function): Update.
228
6f29a534
TT
2292020-03-31 Joel Jones <joelkevinjones@gmail.com>
230
231 PR tui/25597:
232 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
233
af62665e
TT
2342020-03-31 Tom Tromey <tromey@adacore.com>
235
236 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
237 memcpy.
238
d1a89da5
NC
2392020-03-30 Nelson Chu <nelson.chu@sifive.com>
240
241 * features/riscv/32bit-csr.xml: Regenerated.
242 * features/riscv/64bit-csr.xml: Regenerated.
243
d8af9068
TT
2442020-03-30 Tom Tromey <tromey@adacore.com>
245
246 * ada-valprint.c (print_variant_part): Update.
247 * ada-lang.h (ada_which_variant_applies): Update.
248 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
249 outer_valaddr parameters; replace with "outer" value parameter.
250 (to_fixed_variant_branch_type): Update.
251
227c0bf4
PFC
2522020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
253
254 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
255 <list>. Remove inclusion of observable.h.
256 (PPC_DEBUG_CURRENT_VERSION): Move up define.
257 (struct arch_lwp_info): New struct.
258 (class ppc_linux_dreg_interface): New class.
259 (struct ppc_linux_process_info): New struct.
260 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
261 <low_new_clone, low_forget_process, low_prepare_to_resume>
262 <copy_thread_dreg_state, mark_thread_stale>
263 <mark_debug_registers_changed, register_hw_breakpoint>
264 <clear_hw_breakpoint, register_wp, clear_wp>
265 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
266 <num_memory_accesses, get_trigger_type>
267 <create_watchpoint_request, hwdebug_point_cmp>
268 <init_arch_lwp_info, get_arch_lwp_info>
269 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
270 methods.
271 <struct ptid_hash>: New inner struct.
272 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
273 members.
274 (saved_dabr_value, hwdebug_info, max_slots_number)
275 (struct hw_break_tuple, struct thread_points, ppc_threads)
276 (have_ptrace_hwdebug_interface)
277 (hwdebug_find_thread_points_by_tid)
278 (hwdebug_insert_point, hwdebug_remove_point): Remove.
279 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
280 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
281 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
282 use m_dreg_interface.
283 (hwdebug_point_cmp): Change to...
284 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
285 reference arguments instead of pointers.
286 (ppc_linux_nat_target::ranged_break_num_registers): Use
287 m_dreg_interface.
288 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
289 m_dreg_interface. Call register_hw_breakpoint.
290 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
291 m_dreg_interface. Call clear_hw_breakpoint.
292 (get_trigger_type): Change to...
293 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
294 comment.
295 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
296 use m_dreg_interface. Call register_hw_breakpoint.
297 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
298 use m_dreg_interface. Call clear_hw_breakpoint.
299 (can_use_watchpoint_cond_accel): Change to...
300 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
301 method. Update comment, use m_dreg_interface and
302 m_process_info.
303 (calculate_dvc): Change to...
304 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
305 m_dreg_interface.
306 (num_memory_accesses): Change to...
307 (ppc_linux_nat_target::num_memory_accesses): ...this method.
308 (check_condition): Change to...
309 (ppc_linux_nat_target::check_condition): ...this method.
310 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
311 comment, use m_dreg_interface.
312 (create_watchpoint_request): Change to...
313 (ppc_linux_nat_target::create_watchpoint_request): ...this
314 method. Use m_dreg_interface.
315 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
316 m_dreg_interface. Call register_hw_breakpoint or register_wp.
317 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
318 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
319 (ppc_linux_nat_target::low_forget_process)
320 (ppc_linux_nat_target::low_new_fork)
321 (ppc_linux_nat_target::low_new_clone)
322 (ppc_linux_nat_target::low_delete_thread)
323 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
324 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
325 only call mark_thread_stale.
326 (ppc_linux_thread_exit): Remove.
327 (ppc_linux_nat_target::stopped_data_address): Change to...
328 (ppc_linux_nat_target::low_stopped_data_address): This. Add
329 comment, use m_dreg_interface and m_thread_hw_breakpoints.
330 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
331 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
332 comment. Call low_stopped_data_address.
333 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
334 m_dreg_interface.
335 (ppc_linux_nat_target::masked_watch_num_registers): Use
336 m_dreg_interface.
337 (ppc_linux_nat_target::copy_thread_dreg_state)
338 (ppc_linux_nat_target::mark_thread_stale)
339 (ppc_linux_nat_target::mark_debug_registers_changed)
340 (ppc_linux_nat_target::register_hw_breakpoint)
341 (ppc_linux_nat_target::clear_hw_breakpoint)
342 (ppc_linux_nat_target::register_wp)
343 (ppc_linux_nat_target::clear_wp)
344 (ppc_linux_nat_target::init_arch_lwp_info)
345 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
346 (_initialize_ppc_linux_nat): Remove observer callback.
347
4db10d8f
PFC
3482020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
349
350 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
351 (ppc_linux_nat_target::auxv_parse)
352 (ppc_linux_nat_target::read_description)
353 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
354 Move up.
355
1310c1b0
PFC
3562020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
357
358 * linux-nat.h (low_new_clone): New method.
359 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
360
69b037c3
SM
3612020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
362
363 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
364 (dbx_expand_psymtab): ... this.
365 (start_psymtab): Update.
366 * mdebugread.c (psymtab_to_symtab_1): Rename to...
367 (mdebug_expand_psymtab): ... this.
368 (parse_partial_symbols): Update.
369 (new_psymtab): Update.
370 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
371 (xcoff_expand_psymtab): ... this.
372 (xcoff_start_psymtab): Update.
373
48993951
SM
3742020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
375
376 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
377 <expand_dependencies>: ... this.
378 * psymtab.c (partial_symtab::read_dependencies): Rename to...
379 (partial_symtab::expand_dependencies): ... this.
380 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
381 Update.
382 (dwarf2_psymtab::expand_psymtab): Update.
383 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
384 * mdebugread.c (psymtab_to_symtab_1): Update.
385 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
386
3ad83046
SM
3872020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
388
389 * psympriv.h (discard_psymtab): Remove.
390 * dbxread.c (dbx_end_psymtab): Update.
391 * xcoffread.c (xcoff_end_psymtab): Update.
392
4d1b9ab6
TT
3932020-03-28 Tom Tromey <tom@tromey.com>
394
395 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
396 comment.
397
f1749218
TT
3982020-03-28 Tom Tromey <tom@tromey.com>
399
400 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
401
ebea7626
HD
4022020-03-27 Hannes Domani <ssbssa@yahoo.de>
403
404 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
405
a879b4d5
JB
4062020-03-26 John Baldwin <jhb@FreeBSD.org>
407
408 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
409
0826b30a
TT
4102020-03-26 Tom Tromey <tom@tromey.com>
411
412 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
413 (mark_common_block_symbol_computed, read_tag_string_type)
414 (attr_to_dynamic_prop, read_subrange_type): Update.
415 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
416 to be methods on struct attribute.
417 (skip_one_die, process_imported_unit_die, read_namespace_alias)
418 (read_call_site_scope, partial_die_info::read)
419 (partial_die_info::read, lookup_die_type, follow_die_ref):
420 Update.
421 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
422 from dwarf2_get_ref_die_offset.
423 (attribute::constant_value): New method, from
424 dwarf2_get_attr_constant_value.
425 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
426 Declare method.
427 <constant_value>: New method.
428
2b2558bf
TT
4292020-03-26 Tom Tromey <tom@tromey.com>
430
431 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
432 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
433 (dwarf_type_encoding_name): Move to stringify.c.
434 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
435 * dwarf2/stringify.c: New file.
436 * dwarf2/stringify.h: New file.
437
eeb64781
TT
4382020-03-26 Tom Tromey <tom@tromey.com>
439
440 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
441 Rewrite.
442
a39fdb41
TT
4432020-03-26 Tom Tromey <tom@tromey.com>
444
445 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
446 methods.
447 * dwarf2/read.c (lookup_addr_base): Move to die.h.
448 (lookup_ranges_base): Likewise.
449 (read_cutu_die_from_dwo, read_full_die_1): Update.
450
436c571c
TT
4512020-03-26 Tom Tromey <tom@tromey.com>
452
453 * dwarf2/read.c (read_import_statement, read_file_scope)
454 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
455 (read_lexical_block_scope, read_call_site_scope)
456 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
457 (handle_struct_member_die, process_structure_scope)
458 (update_enumeration_type_from_children)
459 (process_enumeration_scope, read_array_type, read_common_block)
460 (read_namespace, read_module, read_subroutine_type): Update.
461 (sibling_die): Remove.
462
052c8bb8
TT
4632020-03-26 Tom Tromey <tom@tromey.com>
464
465 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
466 (build_type_psymtabs_reader, read_structure_type)
467 (read_enumeration_type, read_full_die_1): Update.
468 (dwarf2_attr_no_follow): Move to die.h.
469 * dwarf2/die.h (struct die_info) <attr>: New method.
470
2b24b6e4
TT
4712020-03-26 Tom Tromey <tom@tromey.com>
472
473 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
474 <base_address>: Now an optional.
475 (dwarf2_find_base_address, dwarf2_rnglists_process)
476 (dwarf2_ranges_process, fill_in_loclist_baton)
477 (dwarf2_symbol_mark_computed): Update.
478
c2d50fd0
TT
4792020-03-26 Tom Tromey <tom@tromey.com>
480
481 * dwarf2/read.c (struct die_info): Move to die.h.
482 * dwarf2/die.h: New file.
483
0df7ad3a
TT
4842020-03-26 Tom Tromey <tom@tromey.com>
485
486 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
487 * dwarf2/read.c
488 (dwarf2_statement_list_fits_in_line_number_section_complaint):
489 Move to line-header.c.
490 (read_checked_initial_length_and_offset, read_formatted_entries):
491 Likewise.
492 (dwarf_decode_line_header): Split into two.
493 * dwarf2/line-header.c
494 (dwarf2_statement_list_fits_in_line_number_section_complaint):
495 Move from read.c.
496 (read_checked_initial_length_and_offset, read_formatted_entries):
497 Likewise.
498 (dwarf_decode_line_header): New function, split from read.c.
499
86c0bb4c
TT
5002020-03-26 Tom Tromey <tom@tromey.com>
501
502 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
503 Declare method.
504 * dwarf2/read.c (read_attribute_value): Update.
505 (dwarf2_per_objfile::read_line_string): Rename from
506 read_indirect_line_string.
507 (read_formatted_entries): Update.
508
2ef46c2f
TT
5092020-03-26 Tom Tromey <tom@tromey.com>
510
511 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
512 variable.
513
4f9c1eda
TT
5142020-03-26 Tom Tromey <tom@tromey.com>
515
516 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
517 const.
518 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
519 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
520 parameter const.
521
5a0e026f
TT
5222020-03-26 Tom Tromey <tom@tromey.com>
523
524 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
525 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
526 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
527 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
528
8844c11b
TT
5292020-03-26 Tom Tromey <tom@tromey.com>
530
531 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
532 file_names_size, file_full_name, file_file_name>: Use const.
533 <file_name_at, file_names>: Add const overload.
534 * dwarf2/line-header.c (line_header::file_file_name)
535 (line_header::file_full_name): Update.
536
c90ec28a
TT
5372020-03-26 Tom Tromey <tom@tromey.com>
538
539 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
540 (macro_start_file, consume_improper_spaces)
541 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
542 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
543 (dwarf_decode_macros): Move to macro.c.
544 * dwarf2/macro.c: New file.
545 * dwarf2/macro.h: New file.
546 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
547
4f44ae6c
TT
5482020-03-26 Tom Tromey <tom@tromey.com>
549
550 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
551 method.
552 * dwarf2/section.c: New method. From
553 read_indirect_string_at_offset_from.
554 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
555 (read_indirect_string_at_offset_from): Move to section.c.
556 (read_indirect_string_at_offset): Rewrite.
557 (read_indirect_line_string_at_offset): Remove.
558 (read_indirect_string, read_indirect_line_string)
559 (dwarf_decode_macro_bytes): Update.
560
a0194fa8
TT
5612020-03-26 Tom Tromey <tom@tromey.com>
562
563 * dwarf2/section.h (struct dwarf2_section_info)
564 <overload_complaint>: Declare.
565 (dwarf2_section_buffer_overflow_complaint): Don't declare.
566 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
567 Rename from dwarf2_section_buffer_overflow_complaint.
568 * dwarf2/read.c (skip_one_die, partial_die_info::read)
569 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
570
3d27bbdb
TT
5712020-03-26 Tom Tromey <tom@tromey.com>
572
573 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
574 Declare.
575 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
576 Move from read.c.
577 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
578 to section.c.
579
9eac9650
TT
5802020-03-26 Tom Tromey <tom@tromey.com>
581
582 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
583
bf80d710
TT
5842020-03-26 Tom Tromey <tom@tromey.com>
585
586 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
587 "builder".
588 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
589 parameter.
590 (dwarf_decode_macros): Update.
591
0314b390
TT
5922020-03-26 Tom Tromey <tom@tromey.com>
593
594 * dwarf2/read.c (read_attribute_value): Update.
595 (read_indirect_string_from_dwz): Move to dwz.c; change into
596 method.
597 (dwarf_decode_macro_bytes): Update.
598 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
599 * dwarf2/dwz.c: New file.
600 * Makefile.in (COMMON_SFILES): Add dwz.c.
601
9fda78b6
TT
6022020-03-26 Tom Tromey <tom@tromey.com>
603
604 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
605 * dwarf2/read.c: Add include.
606 * dwarf2/index-write.c: Add include.
607 * dwarf2/index-cache.c: Add include.
608 * dwarf2/dwz.h: New file.
609
33aa3c10
TT
6102020-03-25 Tom Tromey <tom@tromey.com>
611
612 * compile/compile-object-load.c (get_out_value_type): Mention
613 correct symbol name in error message.
614
d503b685
HD
6152020-03-25 Hannes Domani <ssbssa@yahoo.de>
616
617 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
618
7b1eff95
TV
6192020-03-25 Tom de Vries <tdevries@suse.de>
620
621 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
622 * symmisc.c (dump_symtab_1): Print user and includes fields.
623 (maintenance_info_symtabs): Same.
624
dd895392
AB
6252020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
626
627 PR gdb/25534
628 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
629 (riscv_regcache_cooked_write): New function.
630 (riscv_push_dummy_call): Use new function.
631 (riscv_return_value): Likewise.
632
5ab2fbf1
SM
6332020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
634
635 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
636 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
637 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
638 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
639 * infrun.c (follow_fork): Likewise.
640 (follow_fork_inferior): Likewise.
641 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
642 * linux-nat.h (class linux_nat_target): Likewise.
643 * remote.c (class remote_target) <follow_fork>: Likewise.
644 (remote_target::follow_fork): Likewise.
645 * target-delegates.c: Re-generate.
646 * target.c (default_follow_fork): Likewise.
647 (target_follow_fork): Likewise.
648 * target.h (struct target_ops) <follow_fork>: Likewise.
649 (target_follow_fork): Likewise.
650
a64fafb5
TV
6512020-03-24 Tom de Vries <tdevries@suse.de>
652
653 * psymtab.c (maintenance_info_psymtabs): Print user field.
654
fe26d3a3
TT
6552020-03-20 Tom Tromey <tromey@adacore.com>
656
657 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
658 const.
659 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
660 const.
661
c884cc46
SM
6622020-03-20 Simon Marchi <simon.marchi@efficios.com>
663
664 * ptrace.m4: Don't check for ptrace declaration.
665 * config.in: Re-generate.
666 * configure: Re-generate.
667 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
668 not defined.
669
1ff700c2
KR
6702020-03-20 Kamil Rytarowski <n54@gmx.com>
671
672 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
673 `PTRACE_TYPE_RET'.
674 * i386-bsd-nat.c (gdb_ptrace): Likewise.
675 * sparc-nat.c (gdb_ptrace): Likewise.
676 * x86-bsd-nat.c (gdb_ptrace): Likewise.
677
f7d4f0b1
TT
6782020-03-20 Tom Tromey <tromey@adacore.com>
679
680 * c-exp.y (lex_one_token): Fix assert.
681
f67210ff
TT
6822020-03-20 Tom Tromey <tromey@adacore.com>
683
684 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
685 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
686 strncpy call.
687
1773be9e
TT
6882020-03-20 Tom Tromey <tromey@adacore.com>
689
690 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
691
70304be9
TT
6922020-03-20 Tom Tromey <tromey@adacore.com>
693
694 * ada-valprint.c (print_variant_part): Remove parameters; switch
695 to value-based API.
696 (print_field_values): Likewise.
697 (ada_val_print_struct_union): Likewise.
698 (ada_value_print_1): Update.
699
9faa006d
KR
7002020-03-20 Kamil Rytarowski <n54@gmx.com>
701
702 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
703 nbsd_nat_target instead of inf_ptrace_target.
704 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
705 nbsd_nat_target.
706
4a90f062
KR
7072020-03-20 Kamil Rytarowski <n54@gmx.com>
708
709 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
710 it to the ptrace call.
711 * (store_registers): Likewise.
712
7132020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
714
715 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
716 it to the ptrace call.
717 * (store_registers): Likewise.
718
2d07da27
LM
7192020-03-19 Luis Machado <luis.machado@linaro.org>
720
721 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
722 valid, fetch vg value from ptrace.
723
f09db380
KR
7242020-03-19 Kamil Rytarowski <n54@gmx.com>
725 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
726 * inf-ptrace.c: Likewise.
727 * (gdb_ptrace): Add.
728 * (inf_ptrace_target::resume): Update.
729 * (inf_ptrace_target::xfer_partial): Likewise.
730 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
731 * (inf_ptrace_peek_poke): Update.
732
fcc7376e
KR
7332020-03-19 Kamil Rytarowski <n54@gmx.com>
734
735 * x86-bsd-nat.c (gdb_ptrace): New.
736 * (x86bsd_dr_set): Add new argument `ptid'.
737 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
738 x86bsd_dr_set_addr): Update.
739
cada5fc9
AB
7402020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
741
742 * remote.c (remote_target::process_stop_reply): Handle events for
743 all threads differently.
744
19a2740f
AB
7452020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
746
747 * completer.c (completion_tracker::remove_completion): Define new
748 function.
749 * completer.h (completion_tracker::remove_completion): Declare new
750 function.
751 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
752 when adding a C++ function symbol.
753
724fd9ba
AB
7542020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
755
756 * completer.c (completion_tracker::completion_hash_entry): Define
757 new class.
758 (advance_to_filename_complete_word_point): Call
759 recompute_lowest_common_denominator.
760 (completion_tracker::completion_tracker): Call discard_completions
761 to setup the hash table.
762 (completion_tracker::discard_completions): Allow for being called
763 from the constructor, pass new equal function, and element deleter
764 when constructing the hash table. Initialise new class member
765 variables.
766 (completion_tracker::maybe_add_completion): Remove use of
767 m_entries_vec, and store more information into m_entries_hash.
768 (completion_tracker::recompute_lcd_visitor): New function, most
769 content taken from...
770 (completion_tracker::recompute_lowest_common_denominator):
771 ...here, this now just visits each item in the hash calling the
772 above visitor.
773 (completion_tracker::build_completion_result): Remove use of
774 m_entries_vec, call recompute_lowest_common_denominator.
775 * completer.h (completion_tracker::have_completions): Remove use
776 of m_entries_vec.
777 (completion_tracker::completion_hash_entry): Declare new class.
778 (completion_tracker::recompute_lowest_common_denominator): Change
779 function signature.
780 (completion_tracker::recompute_lcd_visitor): Declare new function.
781 (completion_tracker::m_entries_vec): Delete.
782 (completion_tracker::m_entries_hash): Initialize to NULL.
783 (completion_tracker::m_lowest_common_denominator_valid): New
784 member variable.
785 (completion_tracker::m_lowest_common_denominator_max_length): New
786 member variable.
787
5a82b8a1
KR
7882020-03-17 Kamil Rytarowski <n54@gmx.com>
789
790 * regformats/regdef.h: Put reg in gdb namespace.
791
fb516a69
KR
7922020-03-17 Kamil Rytarowski <n54@gmx.com>
793
794 * i386-bsd-nat.c (gdb_ptrace): New.
795 * (i386bsd_fetch_inferior_registers,
796 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
797 * (i386bsd_fetch_inferior_registers,
798 i386bsd_store_inferior_registers) Use gdb_ptrace.
799
1c0aa1fb
KR
8002020-03-17 Kamil Rytarowski <n54@gmx.com>
801
802 * amd64-bsd-nat.c (gdb_ptrace): New.
803 * (amd64bsd_fetch_inferior_registers,
804 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
805 * (amd64bsd_fetch_inferior_registers,
806 amd64bsd_store_inferior_registers) Use gdb_ptrace.
807
5ccd2fb7
KR
8082020-03-17 Kamil Rytarowski <n54@gmx.com>
809
810 * user-regs.c (user_reg::read): Rename to...
811 (user_reg::xread): ...this.
812 * (append_user_reg): Rename argument `read' to `xread'.
813 * (user_reg_add_builtin): Likewise.
814 * (user_reg_add): Likewise.
815 * (value_of_user_reg): Likewise.
816
2108a63a
KR
8172020-03-17 Kamil Rytarowski <n54@gmx.com>
818
819 * sparc-nat.c (gdb_ptrace): New.
820 * sparc-nat.c (sparc_fetch_inferior_registers)
821 (sparc_store_inferior_registers) Remove obsolete comment.
822 * sparc-nat.c (sparc_fetch_inferior_registers)
823 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
824 * sparc-nat.c (sparc_fetch_inferior_registers)
825 (sparc_store_inferior_registers) Use gdb_ptrace.
826
a225c9a8
KR
8272020-03-17 Kamil Rytarowski <n54@gmx.com>
828
829 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
830 it to the ptrace call.
831 * sh-nbsd-nat.c (store_registers): Likewise.
832
98097623
KR
8332020-03-17 Kamil Rytarowski <n54@gmx.com>
834
835 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
836 nbsd_nat_target instead of inf_ptrace_target.
837 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
838 nbsd_nat_target.
839
9e38d619
KR
8402020-03-17 Kamil Rytarowski <n54@gmx.com>
841
842 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
843
a2ecbe9f
KR
8442020-03-17 Kamil Rytarowski <n54@gmx.com>
845
846 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
847 <sys/sysctl.h>.
848 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
849
58990295
TV
8502020-03-17 Tom de Vries <tdevries@suse.de>
851
852 PR gdb/23710
853 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
854 fields.
855 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
856 fields.
857 (process_imported_unit_die): Skip import of c++ CUs.
858
771dd3a8
TT
8592020-03-16 Tom Tromey <tom@tromey.com>
860
861 * p-valprint.c (pascal_object_print_value): Initialize
862 base_value.
863
817a7585
AK
8642020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
865 Shahab Vahedi <shahab@synopsys.com>
866
867 * Makefile.in: Add arch/arc.o
868 * configure.tgt: Likewise.
869 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
870 (_initialize_arc_tdep): Don't initialize old target descriptions.
871 (arc_read_description): New function to cache target descriptions.
872 * arc-tdep.h (arc_read_description): Add proto type.
873 * arch/arc.c: New file.
874 * arch/arc.h: Likewise.
875 * features/Makefile: Replace old target descriptions with new.
876 * features/arc-arcompact.c: Remove.
877 * features/arc-arcompact.xml: Likewise.
878 * features/arc-v2.c: Likewise
879 * features/arc-v2.xml: Likewise
880 * features/arc/aux-arcompact.xml: New file.
881 * features/arc/aux-v2.xml: Likewise.
882 * features/arc/core-arcompact.xml: Likewise.
883 * features/arc/core-v2.xml: Likewise.
884 * features/arc/aux-arcompact.c: Generate.
885 * features/arc/aux-v2.c: Likewise.
886 * features/arc/core-arcompact.c: Likewise.
887 * features/arc/core-v2.c: Likewise.
888 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
889
67430cd0
TT
8902020-03-16 Tom Tromey <tromey@adacore.com>
891
892 PR gdb/25663:
893 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
894 putting value into bcache.
895
30efb6c7
SM
8962020-03-16 Simon Marchi <simon.marchi@efficios.com>
897
898 PR gdb/21500
899 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
900 to...
901 (amd64_windows_init_abi_common): ... this. Don't set size of
902 long type.
903 (amd64_windows_init_abi): New function.
904 (amd64_cygwin_init_abi): New function.
905 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
906 the Cygwin OS ABI.
907 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
908 comment.
909
8db52437
SM
9102020-03-16 Simon Marchi <simon.marchi@efficios.com>
911
912 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
913 * windows-tdep.c (CYGWIN_DLL_NAME): New.
914 (pe_import_directory_entry): New struct type.
915 (is_linked_with_cygwin_dll): New function.
916 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
917 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
918 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
919
5982a56a
SM
9202020-03-16 Simon Marchi <simon.marchi@efficios.com>
921
922 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
923 i386_cygwin_core_osabi_sniffer.
924
7a1998df
SM
9252020-03-16 Simon Marchi <simon.marchi@efficios.com>
926
927 * i386-cygwin-tdep.c: Rename to...
928 * i386-windows-tdep.c: ... this.
929 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
930 i386-windows-tdep.c.
931 * configure.tgt: Likewise.
932
053205cc
SM
9332020-03-16 Simon Marchi <simon.marchi@efficios.com>
934
935 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
936 * osabi.c (gdb_osabi_names): Add "Windows".
937 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
938 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
939 (i386_cygwin_core_osabi_sniffer): New function, extracted from
940 i386_cygwin_osabi_sniffer.
941 (_initialize_i386_cygwin_tdep): Register OS ABI
942 GDB_OSABI_WINDOWS for i386.
943 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
944 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
945 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
946 for x86-64.
947 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
948 when the target matches '*-*-mingw*'.
949
fe4b2ee6
SM
9502020-03-16 Simon Marchi <simon.marchi@efficios.com>
951
952 * defs.h (enum gdb_osabi): Move to...
953 * osabi.h (enum gdb_osabi): ... here.
954 * gdbarch.sh: Include osabi.h in gdbarch.h.
955 * gdbarch.h: Re-generate.
956
cb9b645d
SM
9572020-03-16 Simon Marchi <simon.marchi@efficios.com>
958
959 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
960 function.
961 (_initialize_amd64_windows_tdep): Register osabi sniffer.
962
3293bbaf
TT
9632020-03-14 Tom Tromey <tom@tromey.com>
964
965 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
966 for C++.
967 (c_type_print_modifier): Likewise. Add "language" parameter.
968 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
969 (c_type_print_base_1): Update.
970 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
971 constants.
972 * type-stack.c (type_stack::insert): Handle tp_atomic and
973 tp_restrict.
974 (type_stack::follow_type_instance_flags): Likewise.
975 (type_stack::follow_types): Likewise. Merge type-following code.
976 * c-exp.y (RESTRICT, ATOMIC): New tokens.
977 (space_identifier, cv_with_space_id)
978 (const_or_volatile_or_space_identifier_noopt)
979 (const_or_volatile_or_space_identifier): Remove.
980 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
981 rules.
982 (ptr_operator, typebase): Update.
983 (enum token_flag) <FLAG_C>: New constant.
984 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
985 "_Atomic".
986 (lex_one_token): Handle FLAG_C.
987
154151a6
KR
9882020-03-14 Kamil Rytarowski <n54@gmx.com>
989
990 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
991 it to the ptrace call.
992 * m68k-bsd-nat.c (store_registers): Likewise.
993
bc107784
KR
9942020-03-14 Kamil Rytarowski <n54@gmx.com>
995
996 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
997 gdb_byte *.
998 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
999 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
1000 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
1001
01a80117
KR
10022020-03-14 Kamil Rytarowski <n54@gmx.com>
1003
1004 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
1005 nbsd_nat_target instead of inf_ptrace_target.
1006 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
1007 nbsd_nat_target.
1008
f90280ca
KR
10092020-03-14 Kamil Rytarowski <n54@gmx.com>
1010
1011 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
1012 register_t.
1013
6def66f1
KR
10142020-03-14 Kamil Rytarowski <n54@gmx.com>
1015
1016 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
1017 it to the ptrace call.
1018 * alpha-bsd-nat.c (store_registers): Likewise.
1019
66eaca97
KR
10202020-03-14 Kamil Rytarowski <n54@gmx.com>
1021
1022 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
1023 includes.
1024 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
1025 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
1026 fill_fpregset): Likewise.
1027
4fed520b
KR
10282020-03-14 Kamil Rytarowski <n54@gmx.com>
1029
1030 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
1031 nbsd_nat_target instead of inf_ptrace_target.
1032 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
1033 nbsd_nat_target.
1034
2190cf06
KR
10352020-03-14 Kamil Rytarowski <n54@gmx.com>
1036
1037 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
1038 register_t.
1039
75c56d3d
KR
10402020-03-14 Kamil Rytarowski <n54@gmx.com>
1041
1042 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
1043 it to the ptrace call.
1044 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
1045 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
1046 * arm-nbsd-nat.c (store_register): Likewise.
1047 * arm-nbsd-nat.c (store_regs): Likewise.
1048 * arm-nbsd-nat.c (store_fp_register): Likewise.
1049 * arm-nbsd-nat.c (store_fp_regs): Likewise.
1050
6018d381
KR
10512020-03-14 Kamil Rytarowski <n54@gmx.com>
1052
1053 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
1054 nbsd_nat_target instead of inf_ptrace_target.
1055 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
1056 nbsd_nat_target.
1057
013f99f0
KR
10582020-03-14 Kamil Rytarowski <n54@gmx.com>
1059
1060 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
1061 it to the ptrace call.
1062 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
1063
12753073
KR
10642020-03-14 Kamil Rytarowski <n54@gmx.com>
1065
6227b330
KR
1066 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
1067 it to the ptrace call.
1068 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
1069
10702020-03-14 Kamil Rytarowski <n54@gmx.com>
1071
1072 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
1073 gdb_byte *.
12753073
KR
1074 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
1075
d5be5fa4
KR
10762020-03-14 Kamil Rytarowski <n54@gmx.com>
1077
1078 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
1079 instead of inf_ptrace_target.
1080 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
1081 nbsd_nat_target.
1082
8110f842
KR
10832020-03-14 Kamil Rytarowski <n54@gmx.com>
1084
1085 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
1086 register_t.
1087
52feded7
KR
10882020-03-14 Kamil Rytarowski <n54@gmx.com>
1089
1090 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
1091 register_t.
1092
25567eee
KR
10932020-03-14 Kamil Rytarowski <n54@gmx.com>
1094
1095 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
1096 register_t.
1097
426a9c18
TT
10982020-03-13 Tom Tromey <tom@tromey.com>
1099
1100 * value.h (val_print): Don't declare.
1101 * valprint.h (val_print_array_elements)
1102 (val_print_scalar_formatted, generic_val_print): Don't declare.
1103 * valprint.c (generic_val_print_array): Take a struct value.
1104 (generic_val_print_ptr, generic_val_print_memberptr)
1105 (generic_val_print_bool, generic_val_print_int)
1106 (generic_val_print_char, generic_val_print_complex)
1107 (generic_val_print): Remove.
1108 (generic_value_print): Update.
1109 (do_val_print): Remove unused parameters. Don't call
1110 la_val_print.
1111 (val_print): Remove.
1112 (common_val_print): Update. Don't call value_check_printable.
1113 (val_print_scalar_formatted, val_print_array_elements): Remove.
1114 * rust-lang.c (rust_val_print): Remove.
1115 (rust_language_defn): Update.
1116 * p-valprint.c (pascal_val_print): Remove.
1117 (pascal_value_print_inner): Update.
1118 (pascal_object_print_val_fields, pascal_object_print_val):
1119 Remove.
1120 (pascal_object_print_static_field): Update.
1121 * p-lang.h (pascal_val_print): Don't declare.
1122 * p-lang.c (pascal_language_defn): Update.
1123 * opencl-lang.c (opencl_language_defn): Update.
1124 * objc-lang.c (objc_language_defn): Update.
1125 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
1126 * m2-lang.h (m2_val_print): Don't declare.
1127 * m2-lang.c (m2_language_defn): Update.
1128 * language.h (struct language_defn) <la_val_print>: Remove.
1129 * language.c (unk_lang_value_print_inner): Rename. Change
1130 argument types.
1131 (unknown_language_defn, auto_language_defn): Update.
1132 * go-valprint.c (go_val_print): Remove.
1133 * go-lang.h (go_val_print): Don't declare.
1134 * go-lang.c (go_language_defn): Update.
1135 * f-valprint.c (f_val_print): Remove.
1136 * f-lang.h (f_value_print): Don't declare.
1137 * f-lang.c (f_language_defn): Update.
1138 * d-valprint.c (d_val_print): Remove.
1139 * d-lang.h (d_value_print): Don't declare.
1140 * d-lang.c (d_language_defn): Update.
1141 * cp-valprint.c (cp_print_value_fields)
1142 (cp_print_value_fields_rtti, cp_print_value): Remove.
1143 (cp_print_static_field): Update.
1144 * c-valprint.c (c_val_print_array, c_val_print_ptr)
1145 (c_val_print_struct, c_val_print_union, c_val_print_int)
1146 (c_val_print_memberptr, c_val_print): Remove.
1147 * c-lang.h (c_val_print_array, cp_print_value_fields)
1148 (cp_print_value_fields_rtti): Don't declare.
1149 * c-lang.c (c_language_defn, cplus_language_defn)
1150 (asm_language_defn, minimal_language_defn): Update.
1151 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
1152 (ada_val_print_enum): Take a struct value.
1153 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
1154 (ada_val_print): Remove.
1155 (ada_value_print_1): Update.
1156 (printable_val_type): Remove.
1157 * ada-lang.h (ada_val_print): Don't declare.
1158 * ada-lang.c (ada_language_defn): Update.
1159
42331a1e
TT
11602020-03-13 Tom Tromey <tom@tromey.com>
1161
1162 * valprint.c (do_val_print): Update.
1163 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
1164 a struct value.
1165 (value_to_value_object_no_release): Declare.
1166 * python/py-value.c (value_to_value_object_no_release): New
1167 function.
1168 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
1169 struct value.
1170 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
1171 function.
1172 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
1173 a struct value.
1174 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
1175 Declare.
1176 (gdbscm_apply_val_pretty_printer): Take a struct value.
1177 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
1178 value.
1179 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
1180 value.
1181 * extension-priv.h (struct extension_language_ops)
1182 <apply_val_pretty_printer>: Take a struct value.
1183 * cp-valprint.c (cp_print_value): Create a struct value.
1184 (cp_print_value): Update.
1185
3a916a97
TT
11862020-03-13 Tom Tromey <tom@tromey.com>
1187
1188 * ada-valprint.c (print_field_values): Call common_val_print.
1189
b59eac37
TT
11902020-03-13 Tom Tromey <tom@tromey.com>
1191
1192 * ada-valprint.c (val_print_packed_array_elements): Remove
1193 bitoffset and val parameters. Call common_val_print.
1194 (ada_val_print_string): Remove offset, address, and original_value
1195 parameters.
1196 (ada_val_print_array): Update.
1197 (ada_value_print_array): New function.
1198 (ada_value_print_1): Call it.
1199
03371129
TT
12002020-03-13 Tom Tromey <tom@tromey.com>
1201
1202 * ada-valprint.c (ada_value_print): Use common_val_print.
1203
2e088f8b
TT
12042020-03-13 Tom Tromey <tom@tromey.com>
1205
1206 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
1207
39ef85a8
TT
12082020-03-13 Tom Tromey <tom@tromey.com>
1209
1210 * ada-valprint.c (ada_value_print_num): New function.
1211 (ada_value_print_1): Use it.
1212
b9fa6e07
TT
12132020-03-13 Tom Tromey <tom@tromey.com>
1214
1215 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
1216
416595d6
TT
12172020-03-13 Tom Tromey <tom@tromey.com>
1218
1219 * ada-valprint.c (ada_value_print_ptr): New function.
1220 (ada_value_print_1): Use it.
1221
5b5e15ec
TT
12222020-03-13 Tom Tromey <tom@tromey.com>
1223
1224 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
1225 call common_val_print.
1226 (ada_val_print_1): Update.
1227 (ada_value_print_1): New function.
1228 (ada_value_print_inner): Rewrite.
1229
fbf54e75
TT
12302020-03-13 Tom Tromey <tom@tromey.com>
1231
1232 * cp-valprint.c (cp_print_value_fields): Update.
1233 (cp_print_value): New function.
1234
64b653ca
TT
12352020-03-13 Tom Tromey <tom@tromey.com>
1236
1237 * m2-valprint.c (m2_value_print_inner): Use
1238 cp_print_value_fields.
1239 * cp-valprint.c (cp_print_value_fields): New function.
1240 * c-valprint.c (c_value_print_struct): New function.
1241 (c_value_print_inner): Use c_value_print_struct.
1242 * c-lang.h (cp_print_value_fields): Declare.
1243
6999f067
TT
12442020-03-13 Tom Tromey <tom@tromey.com>
1245
1246 * c-valprint.c (c_value_print_array): New function.
1247 (c_value_print_inner): Use it.
1248
ce80b8bd
TT
12492020-03-13 Tom Tromey <tom@tromey.com>
1250
1251 * c-valprint.c (c_value_print_memberptr): New function.
1252 (c_value_print_inner): Use it.
1253
2faac269
TT
12542020-03-13 Tom Tromey <tom@tromey.com>
1255
1256 * c-valprint.c (c_value_print_int): New function.
1257 (c_value_print_inner): Use it.
1258
da3e2c29
TT
12592020-03-13 Tom Tromey <tom@tromey.com>
1260
1261 * c-valprint.c (c_value_print_ptr): New function.
1262 (c_value_print_inner): Use it.
1263
50836231
TT
12642020-03-13 Tom Tromey <tom@tromey.com>
1265
1266 * c-valprint.c (c_value_print_inner): Rewrite.
1267
4f412b6e
TT
12682020-03-13 Tom Tromey <tom@tromey.com>
1269
1270 * valprint.c (generic_value_print_complex): New function.
1271 (generic_value_print): Use it.
1272
f5354008
TT
12732020-03-13 Tom Tromey <tom@tromey.com>
1274
1275 * valprint.c (generic_val_print_float): Don't call
1276 val_print_scalar_formatted.
1277 (generic_val_print, generic_value_print): Update.
1278
3eec3b05
TT
12792020-03-13 Tom Tromey <tom@tromey.com>
1280
1281 * valprint.c (generic_value_print_char): New function
1282 (generic_value_print): Use it.
1283
fdddfccb
TT
12842020-03-13 Tom Tromey <tom@tromey.com>
1285
1286 * valprint.c (generic_value_print_int): New function.
1287 (generic_value_print): Use it.
1288
6dde7521
TT
12892020-03-13 Tom Tromey <tom@tromey.com>
1290
1291 * valprint.c (generic_value_print_bool): New function.
1292 (generic_value_print): Use it.
1293
4112d2e6
TT
12942020-03-13 Tom Tromey <tom@tromey.com>
1295
1296 * valprint.c (generic_val_print_func): Simplify.
1297 (generic_val_print, generic_value_print): Update.
1298
65786af6
TT
12992020-03-13 Tom Tromey <tom@tromey.com>
1300
1301 * valprint.c (generic_val_print_flags): Remove.
1302 (generic_val_print, generic_value_print): Update.
1303 (val_print_type_code_flags): Add original_value parameter.
1304
40f3ce18
TT
13052020-03-13 Tom Tromey <tom@tromey.com>
1306
1307 * valprint.c (generic_val_print): Update.
1308 (generic_value_print): Update.
1309 * valprint.c (generic_val_print_enum): Don't call
1310 val_print_scalar_formatted.
1311
2a5b130b
TT
13122020-03-13 Tom Tromey <tom@tromey.com>
1313
1314 * valprint.c (generic_value_print): Call generic_value_print_ptr.
1315 * valprint.c (generic_value_print_ptr): New function.
1316
abc66ce9
TT
13172020-03-13 Tom Tromey <tom@tromey.com>
1318
1319 * valprint.c (generic_value_print): Rewrite.
1320
07a32858
TT
13212020-03-13 Tom Tromey <tom@tromey.com>
1322
1323 * p-valprint.c (pascal_object_print_value_fields)
1324 (pascal_object_print_value): New functions.
1325
64d64d3a
TT
13262020-03-13 Tom Tromey <tom@tromey.com>
1327
1328 * p-valprint.c (pascal_value_print_inner): Rewrite.
1329
6a95a1f5
TT
13302020-03-13 Tom Tromey <tom@tromey.com>
1331
1332 * f-valprint.c (f_value_print_innner): Rewrite.
1333
59fcdac6
TT
13342020-03-13 Tom Tromey <tom@tromey.com>
1335
1336 * m2-valprint.c (m2_print_unbounded_array): New overload.
1337 (m2_print_unbounded_array): Update.
1338 (m2_print_array_contents): Take a struct value.
1339 (m2_value_print_inner): Rewrite.
1340
d133c3e1
TT
13412020-03-13 Tom Tromey <tom@tromey.com>
1342
1343 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
1344 (d_value_print_inner): New function.
1345 * d-lang.h (d_value_print_inner): Declare.
1346 * d-lang.c (d_language_defn): Use d_value_print_inner.
1347
23b0f06b
TT
13482020-03-13 Tom Tromey <tom@tromey.com>
1349
1350 * go-valprint.c (go_value_print_inner): New function.
1351 * go-lang.h (go_value_print_inner): Declare.
1352 * go-lang.c (go_language_defn): Use go_value_print_inner.
1353
5f56f7cb
TT
13542020-03-13 Tom Tromey <tom@tromey.com>
1355
1356 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
1357 API.
1358 (rust_val_print): Rewrite.
1359 (rust_value_print_inner): New function, from rust_val_print.
1360 (rust_language_defn): Use rust_value_print_inner.
1361
26792ee0
TT
13622020-03-13 Tom Tromey <tom@tromey.com>
1363
1364 * ada-valprint.c (ada_value_print_inner): New function.
1365 * ada-lang.h (ada_value_print_inner): Declare.
1366 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
1367
24051bbe
TT
13682020-03-13 Tom Tromey <tom@tromey.com>
1369
1370 * f-valprint.c (f_value_print_innner): New function.
1371 * f-lang.h (f_value_print_innner): Declare.
1372 * f-lang.c (f_language_defn): Use f_value_print_innner.
1373
c0941be6
TT
13742020-03-13 Tom Tromey <tom@tromey.com>
1375
1376 * p-valprint.c (pascal_value_print_inner): New function.
1377 * p-lang.h (pascal_value_print_inner): Declare.
1378 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
1379
62c4663d
TT
13802020-03-13 Tom Tromey <tom@tromey.com>
1381
1382 * m2-valprint.c (m2_value_print_inner): New function.
1383 * m2-lang.h (m2_value_print_inner): Declare.
1384 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
1385
62182190
TT
13862020-03-13 Tom Tromey <tom@tromey.com>
1387
1388 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
1389 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
1390 * c-valprint.c (c_value_print_inner): New function.
1391 * c-lang.h (c_value_print_inner): Declare.
1392 * c-lang.c (c_language_defn, cplus_language_defn)
1393 (asm_language_defn, minimal_language_defn): Use
1394 c_value_print_inner.
1395
1e592a8a
TT
13962020-03-13 Tom Tromey <tom@tromey.com>
1397
1398 * p-valprint.c (pascal_object_print_value_fields): Now static.
1399 * p-lang.h (pascal_object_print_value_fields): Don't declare.
1400
7fe471e9
TT
14012020-03-13 Tom Tromey <tom@tromey.com>
1402
1403 * c-valprint.c (c_val_print_array): Simplify.
1404
d121c6ce
TT
14052020-03-13 Tom Tromey <tom@tromey.com>
1406
1407 * valprint.c (value_print_array_elements): New function.
1408 * valprint.h (value_print_array_elements): Declare.
1409
4dba70ee
TT
14102020-03-13 Tom Tromey <tom@tromey.com>
1411
1412 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
1413 * mips-tdep.c (mips_print_register): Use
1414 value_print_scalar_formatted.
1415
4f9ae810
TT
14162020-03-13 Tom Tromey <tom@tromey.com>
1417
1418 * valprint.h (value_print_scalar_formatted): Declare.
1419 * valprint.c (value_print_scalar_formatted): New function.
1420
156bfec9
TT
14212020-03-13 Tom Tromey <tom@tromey.com>
1422
1423 * valprint.h (generic_value_print): Declare.
1424 * valprint.c (generic_value_print): New function.
1425
2b4e573d
TT
14262020-03-13 Tom Tromey <tom@tromey.com>
1427
1428 * valprint.c (do_val_print): Call la_value_print_inner, if
1429 available.
1430 * rust-lang.c (rust_language_defn): Update.
1431 * p-lang.c (pascal_language_defn): Update.
1432 * opencl-lang.c (opencl_language_defn): Update.
1433 * objc-lang.c (objc_language_defn): Update.
1434 * m2-lang.c (m2_language_defn): Update.
1435 * language.h (struct language_defn) <la_value_print_inner>: New
1436 member.
1437 * language.c (unknown_language_defn, auto_language_defn): Update.
1438 * go-lang.c (go_language_defn): Update.
1439 * f-lang.c (f_language_defn): Update.
1440 * d-lang.c (d_language_defn): Update.
1441 * c-lang.c (c_language_defn, cplus_language_defn)
1442 (asm_language_defn, minimal_language_defn): Update.
1443 * ada-lang.c (ada_language_defn): Update.
1444
a1f6a07c
TT
14452020-03-13 Tom Tromey <tom@tromey.com>
1446
1447 * c-valprint.c (c_value_print): Use common_val_print.
1448
410cf315
TT
14492020-03-13 Tom Tromey <tom@tromey.com>
1450
1451 * cp-valprint.c (cp_print_static_field): Use common_val_print.
1452
72a45c93
TT
14532020-03-13 Tom Tromey <tom@tromey.com>
1454
1455 * f-valprint.c (f77_print_array_1, f_val_print): Use
1456 common_val_print.
1457
040f66bd
TT
14582020-03-13 Tom Tromey <tom@tromey.com>
1459
1460 * riscv-tdep.c (riscv_print_one_register_info): Use
1461 common_val_print.
1462
a6e05a6c
TT
14632020-03-13 Tom Tromey <tom@tromey.com>
1464
1465 * mi/mi-main.c (output_register): Use common_val_print.
1466
3444c526
TT
14672020-03-13 Tom Tromey <tom@tromey.com>
1468
1469 * infcmd.c (default_print_one_register_info): Use
1470 common_val_print.
1471
c2a44efe
TT
14722020-03-13 Tom Tromey <tom@tromey.com>
1473
1474 * valprint.h (common_val_print_checked): Declare.
1475 * valprint.c (common_val_print_checked): New function.
1476 * stack.c (print_frame_arg): Use common_val_print_checked.
1477
b0c26e99
TT
14782020-03-13 Tom Tromey <tom@tromey.com>
1479
1480 * valprint.c (do_val_print): New function, from val_print.
1481 (val_print): Use do_val_print.
1482 (common_val_print): Use do_val_print.
1483
ce3acbe9
TT
14842020-03-13 Tom Tromey <tom@tromey.com>
1485
1486 * valprint.c (value_print): Use scoped_value_mark.
1487
96c7f873
TV
14882020-03-13 Tom de Vries <tdevries@suse.de>
1489
1490 PR symtab/25646
1491 * psymtab.c (partial_symtab::partial_symtab): Don't set
1492 globals_offset and statics_offset. Push element onto
1493 current_global_psymbols and current_static_psymbols stacks.
1494 (concat): New function.
1495 (end_psymtab_common): Set globals_offset and statics_offset. Pop
1496 element from current_global_psymbols and current_static_psymbols
1497 stacks. Concat popped elements to global_psymbols and
1498 static_symbols.
1499 (add_psymbol_to_list): Use current_global_psymbols and
1500 current_static_psymbols stacks.
1501 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
1502 current_static_psymbols fields.
1503
6ba0a321
CB
15042020-03-12 Christian Biesinger <cbiesinger@google.com>
1505
1506 * corelow.c (sniff_core_bfd): Remove.
1507 (class core_target) <m_core_vec>: Remove.
1508 (core_target::core_target): Update.
1509 (core_file_fns): Remove.
1510 (deprecated_add_core_fns): Remove.
1511 (default_core_sniffer): Remove.
1512 (sniff_core_bfd): Remove.
1513 (default_check_format): Remove.
1514 (gdb_check_format): Remove.
1515 (core_target_open): Update.
1516 (core_target::get_core_register_section): Update.
1517 (get_core_registers_cb): Update.
1518 (core_target::fetch_registers): Update.
1519 * gdbcore.h (struct core_fns): Remove.
1520 (deprecated_add_core_fns): Remove.
1521 (default_core_sniffer): Remove.
1522 (default_check_format): Remove.
1523
227031b2
TT
15242020-03-12 Tom Tromey <tom@tromey.com>
1525
1526 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
1527 CORE_ADDR.
1528 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
1529
53807e9f
TT
15302020-03-12 Tom Tromey <tom@tromey.com>
1531
1532 * remote.c (remote_target::download_tracepoint)
1533 (remote_target::enable_tracepoint)
1534 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
1535 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
1536 sprintf_vma.
1537
64f25102
TT
15382020-03-12 Tom Tromey <tom@tromey.com>
1539
1540 * symfile-mem.c: Update CORE_ADDR size assert.
1541
272cd5a3
SM
15422020-03-12 Simon Marchi <simon.marchi@efficios.com>
1543
1544 * selftest.m4: Move to gdbsupport/.
1545 * acinclude.m4: Update path to selftest.m4.
1546
74cd3f9d
SM
15472020-03-12 Simon Marchi <simon.marchi@efficios.com>
1548
1549 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
1550 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
1551 gdbarch-selfselftests.c and selftest-arch.c.
1552 (SUBDIR_UNITTESTS_OBS): Rename to...
1553 (SELFTESTS_OBS): ... this.
1554 (COMMON_SFILES): Remove disasm-selftests.c and
1555 gdbarch-selftests.c.
1556 * configure.ac: Don't add selftest-arch.{c,o} to
1557 CONFIG_{SRCS,OBS}.
1558 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
1559 preprocessor conditions.
1560
db6878ac
SM
15612020-03-12 Simon Marchi <simon.marchi@efficios.com>
1562
1563 * configure.ac: Don't source bfd/development.sh.
1564 * selftest.m4: Modify comment.
1565 * configure: Re-generate.
1566
4d696a5c
SM
15672020-03-12 Simon Marchi <simon.marchi@efficios.com>
1568
1569 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
1570 not "true" or "false".
1571 * configure: Re-generate.
1572
8dd8e1c7
CB
15732020-03-12 Christian Biesinger <cbiesinger@google.com>
1574
1575 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
1576 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
1577 renamed to arm_nbsd_supply_gregset.
1578 (fetch_register): Update to call arm_nbsd_supply_gregset.
1579 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
1580 (arm_netbsd_nat_target::fetch_registers): Update.
1581 (fetch_elfcore_registers): Removed.
1582 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
1583 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
1584 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
1585 not require NetBSD system headers.
1586 (arm_nbsd_regset): New struct.
1587 (arm_nbsd_iterate_over_regset_sections): New function.
1588 (arm_netbsd_init_abi_common): Updated to call
1589 set_gdbarch_iterate_over_regset_sections.
1590 * arm-nbsd-tdep.h: New file.
1591
dd69bf7a
KB
15922020-03-11 Kevin Buettner <kevinb@redhat.com>
1593
1594 * symtab.c (find_pc_sect_line): Add check which prevents infinite
1595 recursion.
1596
a0761e34
SM
15972020-03-11 Simon Marchi <simon.marchi@efficios.com>
1598
1599 * configure: Re-generate.
1600
e7a82140
TT
16012020-03-11 Tom Tromey <tromey@adacore.com>
1602
1603 * ada-typeprint.c (print_choices): Fix comment.
1604
dcc050c8
AB
16052020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
1606
1607 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
1608 previous item in the list, when the list has no items.
1609
1c33af77
TV
16102020-03-11 Tom de Vries <tdevries@suse.de>
1611
1612 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
1613 PROP_LOCLIST handling code.
1614
8c95582d
AB
16152020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
1616
1617 * buildsym-legacy.c (record_line): Pass extra parameter to
1618 record_line.
1619 * buildsym.c (buildsym_compunit::record_line): Take an extra
1620 parameter, reduce duplication in the line table, and record the
1621 is_stmt flag in the line table.
1622 * buildsym.h (buildsym_compunit::record_line): Add extra
1623 parameter.
1624 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
1625 non-statement lines.
1626 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
1627 this to the symtab builder.
1628 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
1629 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
1630 through to dwarf_record_line_1.
1631 * infrun.c (process_event_stop_test): When stepping, don't stop at
1632 a non-statement instruction, and only refresh the step info when
1633 we land in the middle of a line's range. Also add an extra
1634 comment.
1635 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
1636 field.
1637 * record-btrace.c (btrace_find_line_range): Only record lines
1638 marked as is-statement.
1639 * stack.c (frame_show_address): Show the frame address if we are
1640 in a non-statement sal.
1641 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
1642 (maintenance_print_one_line_table): Print a header for the is_stmt
1643 column, and include is_stmt information in the output.
1644 * symtab.c (find_pc_sect_line): Find lines marked as statements in
1645 preference to non-statements.
1646 (find_pcs_for_symtab_line): Prefer is-statement entries.
1647 (find_line_common): Likewise.
1648 * symtab.h (struct linetable_entry): Add is_stmt field.
1649 (struct symtab_and_line): Likewise.
1650 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
1651 arranging the line table.
1652
e4003a34
TV
16532020-03-07 Tom de Vries <tdevries@suse.de>
1654
1655 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
1656 DIE.
1657
e8932576
TT
16582020-03-07 Tom Tromey <tom@tromey.com>
1659
1660 * valops.c (value_literal_complex): Remove obsolete comment.
1661 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
1662 comment.
1663
29734269
SM
16642020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
1665
1666 * infrun.h: Forward-declare thread_info.
1667 (set_step_info): Add thread_info parameter, add doc.
1668 * infrun.c (set_step_info): Add thread_info parameter, move doc
1669 to header.
1670 * infrun.c (process_event_stop_test): Pass thread to
1671 set_step_info call.
1672 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
1673 set_step_info.
1674 (prepare_one_step): Add thread_info parameter, pass it to
1675 set_step_frame and prepare_one_step (recursive) call.
1676 (step_1): Pass thread to prepare_one_step call.
1677 (step_command_fsm::should_stop): Pass thread to
1678 prepare_one_step.
1679 (until_next_fsm): Pass thread to set_step_frame call.
1680 (finish_command): Pass thread to set_step_info call.
1681
b7d64b29
HD
16822020-03-06 Hannes Domani <ssbssa@yahoo.de>
1683
1684 * windows-tdep.c (windows_solib_create_inferior_hook):
1685 Check if inferior is running.
1686
09f2921c
TV
16872020-03-06 Tom de Vries <tdevries@suse.de>
1688
1689 * NEWS: Fix "the the".
1690 * ctfread.c: Same.
1691
fd760e79
TV
16922020-03-06 Tom de Vries <tdevries@suse.de>
1693
1694 * psymtab.c (psymtab_to_symtab): Don't print "done.".
1695
20ea4a60
AB
16962020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1697
1698 * .dir-locals.el: Add a comment referencing the other copies of
1699 this file.
1700
0afbabf0
JB
17012020-03-05 John Baldwin <jhb@FreeBSD.org>
1702
1703 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
1704 psargs.
1705
842806cb
TBA
17062020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1707
1708 * .gitattributes: New file.
1709
be1e3d3e
TT
17102020-03-04 Tom Tromey <tom@tromey.com>
1711
1712 * symmisc.c (print_symbol_bcache_statistics)
1713 (print_objfile_statistics): Update.
1714 * symfile.c (allocate_symtab): Use intern.
1715 * psymtab.c (partial_symtab::partial_symtab): Use intern.
1716 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
1717 macro_cache>: Remove.
1718 <string_cache>: New member.
1719 (struct objfile) <intern>: New methods.
1720 * elfread.c (elf_symtab_read): Use intern.
1721 * dwarf2/read.c (fixup_go_packaging): Intern package name.
1722 (dwarf2_compute_name, dwarf2_physname)
1723 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
1724 names.
1725 (guess_partial_die_structure_name): Update.
1726 (partial_die_info::fixup): Intern name.
1727 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
1728 name.
1729 (dwarf2_name): Intern name. Update.
1730 * buildsym.c (buildsym_compunit::get_macro_table): Use
1731 string_cache.
1732
4e7625fd
TT
17332020-03-04 Tom Tromey <tom@tromey.com>
1734
1735 * jit.c (bfd_open_from_target_memory): Make "target" const.
1736 * corefile.c (gnutarget): Now const.
1737 * gdbcore.h (gnutarget): Now const.
1738
46f9f931
HD
17392020-03-04 Hannes Domani <ssbssa@yahoo.de>
1740
1741 * NEWS: Mention support for WOW64 processes.
1742 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
1743 (amd64_windows_segment_register_p): Remove static.
1744 (_initialize_amd64_windows_nat): Update.
1745 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
1746 * i386-windows-nat.c (context_offset): Update.
1747 (i386_mappings): Rename and remove static.
1748 (i386_windows_segment_register_p): Remove static.
1749 (_initialize_i386_windows_nat): Update.
1750 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
1751 (STATUS_WX86_SINGLE_STEP): New macro.
1752 (EnumProcessModulesEx): New macro.
1753 (Wow64SuspendThread): New macro.
1754 (Wow64GetThreadContext): New macro.
1755 (Wow64SetThreadContext): New macro.
1756 (Wow64GetThreadSelectorEntry): New macro.
1757 (windows_set_context_register_offsets): Add static.
1758 (windows_set_segment_register_p): Likewise.
1759 (windows_add_thread): Adapt for WOW64 processes.
1760 (windows_fetch_one_register): Likewise.
1761 (windows_nat_target::fetch_registers): Likewise.
1762 (windows_store_one_register): Likewise.
1763 (display_selector): Likewise.
1764 (display_selectors): Likewise.
1765 (handle_exception): Likewise.
1766 (windows_continue): Likewise.
1767 (windows_nat_target::resume): Likewise.
1768 (windows_add_all_dlls): Likewise.
1769 (do_initial_windows_stuff): Likewise.
1770 (windows_nat_target::attach): Likewise.
1771 (windows_get_exec_module_filename): Likewise.
1772 (windows_nat_target::create_inferior): Likewise.
1773 (windows_xfer_siginfo): Likewise.
1774 (_initialize_loadable): Initialize Wow64SuspendThread,
1775 Wow64GetThreadContext, Wow64SetThreadContext,
1776 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
1777 * windows-nat.h (windows_set_context_register_offsets):
1778 Remove declaration.
1779 (windows_set_segment_register_p): Likewise.
1780 (i386_windows_segment_register_p): Add declaration.
1781 (amd64_windows_segment_register_p): Likewise.
1782
440cf44e
LM
17832020-03-04 Luis Machado <luis.machado@linaro.org>
1784
1785 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
1786 in "info registers" for AArch64/ARM.
1787
1788 The change caused "info registers" to not print GPR's.
1789
1790 gdb/ChangeLog:
1791
1792 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
1793
1794 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
1795 when reg->group is empty and reggroup is not.
1796
1009d92f
TT
17972020-03-03 Tom Tromey <tromey@adacore.com>
1798
1799 * dwarf2/frame.c (struct dwarf2_frame_cache)
1800 <checked_tailcall_bottom, entry_cfa_sp_offset,
1801 entry_cfa_sp_offset_p>: Remove members.
1802 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
1803 (dwarf2_frame_prev_register): Don't call
1804 dwarf2_tailcall_sniffer_first.
1805 (dwarf2_append_unwinders): Don't append tailcall unwinder.
1806 * frame-unwind.c (add_unwinder): New fuction.
1807 (frame_unwind_init): Use it. Add tailcall unwinder.
1808
5e5d66b6
AB
18092020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
1810 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1811
1812 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
1813 value should be printed as true.
1814
584cf46d
HD
18152020-03-03 Hannes Domani <ssbssa@yahoo.de>
1816
1817 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
1818 (windows_init_abi): Set and use windows_so_ops.
1819
7b973adc
SDJ
18202020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
1821
1822 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
1823 when verifying if dealing with a convenience variable.
1824
bb7b70ab
LM
18252020-03-03 Luis Machado <luis.machado@linaro.org>
1826
1827 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
1828
9822cb57
SM
18292020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1830
1831 * infrun.c (gdbarch_supports_displaced_stepping): New.
1832 (use_displaced_stepping): Break up conditions in smaller pieces.
1833 Use gdbarch_supports_displaced_stepping.
1834 (displaced_step_prepare_throw): Use
1835 gdbarch_supports_displaced_stepping.
1836
63e163f2
AB
18372020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
1838
1839 * NEWS: Mention new behaviour of the history filename.
1840 * top.c (write_history_p): Add comment.
1841 (show_write_history_p): Add header comment, give a different
1842 message when history writing is on, but the history filename is
1843 empty.
1844 (history_filename): Add comment.
1845 (history_filename_empty): New function.
1846 (show_history_filename): Add header comment, give a different
1847 message when the filename is empty.
1848 (init_history): Compare history_filename against nullptr, and only
1849 read history if the filename is not empty.
1850 (set_history_filename): Add header comment, and only make
1851 non-empty filenames absolute.
1852 (init_main): Make the filename argument to 'set history filename'
1853 optional.
1854
81b86b97
CB
18552020-03-02 Christian Biesinger <cbiesinger@google.com>
1856
1857 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
1858 (arm_supply_vfpregset): ...this, and update to use VFP registers.
1859 (fetch_fp_register): Update.
1860 (fetch_fp_regs): Update.
1861 (store_fp_register): Update.
1862 (store_fp_regs): Update.
1863 (arm_netbsd_nat_target::read_description): New function.
1864 (fetch_elfcore_registers): Update.
1865
24ed6739
AB
18662020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
1867
1868 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
1869 general_thread if the stop reply is missing a thread-id.
1870 (remote_target::process_stop_reply): Use the first non-exited
1871 thread if the target didn't pass a thread-id.
1872 * infrun.c (do_target_wait): Move call to
1873 switch_to_inferior_no_thread to ....
1874 (do_target_wait_1): ... here.
1875
a84bb2a0
JT
18762020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
1877
1878 * debuginfod-support.c: Include defs.h first.
1879
658dadf0
TV
18802020-02-28 Tom de Vries <tdevries@suse.de>
1881
1882 * symfile.c (set_initial_language): Use default language for lookup.
1883
4ebe4877
SM
18842020-02-28 Simon Marchi <simon.marchi@efficios.com>
1885
1886 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
1887 reader variable, pass `this` to read_cutu_die_from_dwo.
1888
e5da1139
AM
18892020-02-27 Aaron Merey <amerey@redhat.com>
1890
1891 * source.c (open_source_file): Check for nullptr when computing
1892 srcpath.
1893
317f7127
TT
18942020-02-27 Tom Tromey <tromey@adacore.com>
1895
1896 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
1897 member.
1898 (dwarf2_add_field): Don't update nfields.
1899 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
1900
3104d9ee
AB
19012020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1902
1903 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
1904 abs.
1905
b83470bf
TT
19062020-02-26 Tom Tromey <tom@tromey.com>
1907
1908 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
1909 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
1910 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
1911 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
1912 per_cu_data.
1913
edfe0a0c
TT
19142020-02-26 Tom Tromey <tom@tromey.com>
1915
1916 * dwarf2/index-write.c (psym_index_map): Change type.
1917 (add_address_entry_worker, write_one_signatured_type)
1918 (recursively_count_psymbols, recursively_write_psymbols)
1919 (class debug_names, psyms_seen_size, write_gdbindex)
1920 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
1921
0d79cdc4
AM
19222020-02-26 Aaron Merey <amerey@redhat.com>
1923
1924 * Makefile.in: Handle optional debuginfod support.
1925 * NEWS: Update.
1926 * README: Add --with-debuginfod summary.
1927 * config.in: Regenerate.
1928 * configure: Regenerate.
1929 * configure.ac: Handle optional debuginfod support.
1930 * debuginfod-support.c: debuginfod helper functions.
1931 * debuginfod-support.h: Ditto.
1932 * doc/gdb.texinfo: Add --with-debuginfod to configure options
1933 summary.
1934 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
1935 when a dwz file cannot be found.
1936 * elfread.c (elf_symfile_read): Query debuginfod servers when a
1937 debuginfo file cannot be found.
1938 * source.c (open_source_file): Query debuginfod servers when a
1939 source file cannot be found.
1940 * top.c (print_gdb_configuration): Include
1941 --{with,without}-debuginfod in the output.
1942
b65ce565
JG
19432020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
1944
1945 * thread.c (thr_try_catch_cmd): Print thread name.
1946
d4c9a4f8
SM
19472020-02-26 Simon Marchi <simon.marchi@efficios.com>
1948
1949 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
1950 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
1951 dwarf2_fetch_die_type_sect_off): Move to...
1952 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
1953 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
1954 dwarf2_fetch_die_type_sect_off): ... here.
1955 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
1956 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
1957 dwarf2_fetch_die_type_sect_off): Move doc to header file.
1958
0dce4280
TV
19592020-02-26 Tom de Vries <tdevries@suse.de>
1960
1961 PR gdb/25603
1962 * symfile.c (set_initial_language): Exit-early if
1963 language_mode == language_mode_manual.
1964
450a1bfc
SM
19652020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1966
1967 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
1968 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
1969 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
1970
9e80cfa1
AB
19712020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1972
1973 * gdbtypes.c (create_array_type_with_stride): Handle negative
1974 array strides.
1975 * valarith.c (value_subscripted_rvalue): Likewise.
1976
09624f1f
LM
19772020-02-25 Luis Machado <luis.machado@linaro.org>
1978
1979 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
1980
8cb5117c
SM
19812020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1982
1983 * loc.h (dwarf2_get_die_type): Move to...
1984 * read.h (dwarf2_get_die_type): ... here.
1985 * read.c (dwarf2_get_die_type): Move doc to header.
1986
c325c44e
JB
19872020-02-25 Joel Brobecker <brobecker@adacore.com>
1988
1989 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
1990 'gnulib/Makefile.in' to the list.
1991
4ac93832
TT
19922020-02-24 Tom Tromey <tom@tromey.com>
1993
1994 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
1995 Remove.
1996 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
1997 XOBNEWVEC.
1998
197400e8
TT
19992020-02-24 Tom Tromey <tom@tromey.com>
2000
2001 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
2002 New method.
2003 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
2004 (dw2_do_instantiate_symtab, dw2_get_file_names)
2005 (build_type_psymtab_dependencies, load_full_type_unit): Update.
2006
76935768
TT
20072020-02-24 Tom Tromey <tom@tromey.com>
2008
2009 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
2010 make_scoped_restore.
2011 (dwarf2_psymtab::read_symtab): Don't clear
2012 reading_partial_symbols.
2013
a88ef40d
TV
20142020-02-24 Tom de Vries <tdevries@suse.de>
2015
2016 PR gdb/25592
2017 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
2018
c9af6521
TV
20192020-02-24 Tom de Vries <tdevries@suse.de>
2020
2021 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
2022 commands layout next/prev/regs.
2023
5707a07a
TT
20242020-02-22 Tom Tromey <tom@tromey.com>
2025
2026 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
2027 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
2028
3b0fb49e
TT
20292020-02-22 Tom Tromey <tom@tromey.com>
2030
2031 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
2032
283be8bf
TT
20332020-02-22 Tom Tromey <tom@tromey.com>
2034
2035 * tui/tui-win.c (_initialize_tui_win): Add usage text.
2036 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
2037 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
2038 * tui/tui.c (_initialize_tui): Add usage text.
2039
ca793b96
TT
20402020-02-22 Tom Tromey <tom@tromey.com>
2041
2042 * tui/tui-win.c (tui_set_focus_command)
2043 (tui_set_win_height_command): Use error_no_arg.
2044 (_initialize_tui_win): Update help text.
2045 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
2046
432b5c40
TT
20472020-02-22 Tom Tromey <tom@tromey.com>
2048
2049 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
2050 * tui/tui-disasm.h (struct tui_disasm_window)
2051 <display_start_addr>: Declare.
2052 * tui/tui-source.h (struct tui_source_window)
2053 <display_start_addr>: Declare.
2054 * tui/tui-winsource.h (struct tui_source_window_base)
2055 <show_source_line, display_start_addr>: New methods.
2056 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
2057 Rename and move to protected section.
2058 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
2059 (tui_source_window_base::do_erase_source_content): Update.
2060 (tui_source_window_base::show_source_line): Now a method.
2061 (tui_source_window_base::show_source_content)
2062 (tui_source_window_base::tui_source_window_base)
2063 (tui_source_window_base::rerender)
2064 (tui_source_window_base::refill)
2065 (tui_source_window_base::do_scroll_horizontal)
2066 (tui_source_window_base::set_is_exec_point_at)
2067 (tui_source_window_base::update_breakpoint_info)
2068 (tui_source_window_base::update_exec_info): Update.
2069 * tui/tui-source.c (tui_source_window::set_contents)
2070 (tui_source_window::showing_source_p)
2071 (tui_source_window::do_scroll_vertical)
2072 (tui_source_window::location_matches_p)
2073 (tui_source_window::line_is_displayed): Update.
2074 (tui_source_window::display_start_addr): New method.
2075 * tui/tui-disasm.c (tui_disasm_window::set_contents)
2076 (tui_disasm_window::do_scroll_vertical)
2077 (tui_disasm_window::location_matches_p): Update.
2078 (tui_disasm_window::display_start_addr): New method.
2079
01b1af32
TT
20802020-02-22 Tom Tromey <tom@tromey.com>
2081
2082 * NEWS: Add entry for gdb.register_window_type.
2083 * tui/tui-layout.h (window_factory): New typedef.
2084 (tui_register_window): Declare.
2085 * tui/tui-layout.c (saved_tui_windows): New global.
2086 (tui_apply_current_layout): Use it.
2087 (tui_register_window): New function.
2088 * python/python.c (do_start_initialization): Call
2089 gdbpy_initialize_tui.
2090 (python_GdbMethods): Add "register_window_type" function.
2091 * python/python-internal.h (gdbpy_register_tui_window)
2092 (gdbpy_initialize_tui): Declare.
2093 * python/py-tui.c: New file.
2094 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
2095
fc96d20b
TT
20962020-02-22 Tom Tromey <tom@tromey.com>
2097
2098 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
2099
935c78c0
TT
21002020-02-22 Tom Tromey <tom@tromey.com>
2101
2102 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
2103 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
2104 * tui/tui-data.c (tui_set_win_with_focus): Remove.
2105 (tui_set_win_focus_to): Move from tui-win.c.
2106
0240c8f1
TT
21072020-02-22 Tom Tromey <tom@tromey.com>
2108
2109 * tui/tui-layout.c (make_standard_window, get_locator_window): New
2110 functions.
2111 (known_window_types): New global.
2112 (tui_get_window_by_name): Reimplement.
2113 (initialize_known_windows): New function.
2114 (validate_window_name): Rewrite.
2115 (_initialize_tui_layout): Call initialize_known_windows.
2116
fdb01f0c
TT
21172020-02-22 Tom Tromey <tom@tromey.com>
2118
2119 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
2120 Remove constants.
2121 * tui/tui-winsource.h (struct tui_source_window_base)
2122 <tui_source_window_base>: Remove parameter.
2123 * tui/tui-winsource.c
2124 (tui_source_window_base::tui_source_window_base): Remove
2125 parameter.
2126 (tui_source_window_base::refill): Update.
2127 * tui/tui-stack.h (struct tui_locator_window)
2128 <tui_locator_window>: Update.
2129 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
2130 Default the constructor.
2131 * tui/tui-regs.h (struct tui_data_item_window)
2132 <tui_data_item_window>: Default the constructor.
2133 (struct tui_data_window) <tui_data_window>: Likewise.
2134 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
2135 Default the constructor.
2136 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
2137 Default the constructor.
2138 <type>: Remove.
2139 (struct tui_win_info) <tui_win_info>: Default the constructor.
2140 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
2141 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2142 Default the constructor.
2143
865a5aec
TT
21442020-02-22 Tom Tromey <tom@tromey.com>
2145
2146 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
2147 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
2148 * tui/tui-win.c (tui_resize_all): Don't call
2149 tui_delete_invisible_windows.
2150 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
2151 done.
2152 (tui_set_layout): Update.
2153 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
2154 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
2155 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
2156
e098d18c
TT
21572020-02-22 Tom Tromey <tom@tromey.com>
2158
2159 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
2160 correctly.
2161
eb9c8874
TT
21622020-02-22 Tom Tromey <tom@tromey.com>
2163
2164 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
2165
7eed1a8e
TT
21662020-02-22 Tom Tromey <tom@tromey.com>
2167
2168 * tui/tui-winsource.h (struct tui_source_window_iterator)
2169 <inner_iterator>: New etytypedef.
2170 <tui_source_window_iterator>: Take "end" parameter.
2171 <tui_source_window_iterator>: Take iterator.
2172 <operator*, advance>: Update.
2173 <m_iter>: Change type.
2174 <m_end>: New field.
2175 (struct tui_source_windows) <begin, end>: Update.
2176 * tui/tui-layout.c (tui_windows): New global.
2177 (tui_apply_current_layout): Clear tui_windows.
2178 (tui_layout_window::apply): Update tui_windows.
2179 * tui/tui-data.h (tui_windows): Declare.
2180 (all_tui_windows): Now inline function.
2181 (class tui_window_iterator, struct all_tui_windows): Remove.
2182
7c043ba6
TT
21832020-02-22 Tom Tromey <tom@tromey.com>
2184
2185 PR tui/17850:
2186 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
2187 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
2188 "height" argument.
2189 (class tui_layout_window) <get_sizes>: Likewise.
2190 (class tui_layout_split) <tui_layout_split>: Add "vertical"
2191 argument.
2192 <get_sizes>: Add "height" argument.
2193 <m_vertical>: New field.
2194 * tui/tui-layout.c (tui_layout_split::clone): Update.
2195 (tui_layout_split::get_sizes): Add "height" argument.
2196 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
2197 (tui_new_layout_command): Parse "-horizontal".
2198 (_initialize_tui_layout): Update help string.
2199 (tui_layout_split::specification): Add "-horizontal" when needed.
2200 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
2201 argument.
2202 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
2203 New methods.
2204
6bc56648
TT
22052020-02-22 Tom Tromey <tom@tromey.com>
2206
2207 * tui/tui-layout.h (enum tui_adjust_result): New.
2208 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
2209 (class tui_layout_window) <adjust_size>: Return
2210 tui_adjust_result. Rewrite.
2211 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
2212 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
2213
c22fef7e
TT
22142020-02-22 Tom Tromey <tom@tromey.com>
2215
2216 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
2217 parameter and return types.
2218 (class tui_layout_base) <specification>: Add "depth".
2219 (class tui_layout_window) <specification>: Add "depth".
2220 (class tui_layout_split) <specification>: Add "depth".
2221 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
2222 and return types.
2223 (tui_new_layout_command): Parse sub-layouts.
2224 (_initialize_tui_layout): Update help string.
2225 (tui_layout_window::specification): Add "depth".
2226 (add_layout_command): Update.
2227
ee325b61
TT
22282020-02-22 Tom Tromey <tom@tromey.com>
2229
2230 * NEWS: Add "tui new-layout" item.
2231 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
2232 Add new-layout command to help text.
2233 (validate_window_name): New function.
2234 (tui_new_layout_command): New function.
2235 (_initialize_tui_layout): Register "new-layout".
2236 (tui_layout_window::specification): New method.
2237 (tui_layout_window::specification): New method.
2238 * tui/tui-layout.h (class tui_layout_base) <specification>: New
2239 method.
2240 (class tui_layout_window) <specification>: New method.
2241 (class tui_layout_split) <specification>: New method.
2242
416eb92d
TT
22432020-02-22 Tom Tromey <tom@tromey.com>
2244
2245 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
2246 * tui/tui-win.c (window_name_completer): Update comment.
2247 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
2248 Declare method.
2249 (class tui_layout_window) <replace_window>: Likewise.
2250 (class tui_layout_split) <replace_window>: Likewise.
2251 (tui_set_layout): Don't declare.
2252 (tui_set_initial_layout): Declare function.
2253 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
2254 (asm_regs_layout): New globals.
2255 (tui_current_layout, show_layout): Remove.
2256 (tui_set_layout, tui_add_win_to_layout): Rewrite.
2257 (find_layout, tui_apply_layout): New function.
2258 (layout_completer): Remove.
2259 (tui_next_layout): Reimplement.
2260 (tui_next_layout_command): New function.
2261 (tui_set_initial_layout, tui_prev_layout_command): New functions.
2262 (tui_regs_layout): Reimplement.
2263 (tui_regs_layout_command): New function.
2264 (extract_display_start_addr): Rewrite.
2265 (next_layout, prev_layout): Remove.
2266 (tui_layout_window::replace_window): New method.
2267 (tui_layout_split::replace_window): New method.
2268 (destroy_layout): New function.
2269 (layout_list): New global.
2270 (add_layout_command): New function.
2271 (initialize_layouts): Update.
2272 (tui_layout_command): New function.
2273 (_initialize_tui_layout): Install "layout" commands.
2274 * tui/tui-data.h (enum tui_layout_type): Remove.
2275 (tui_current_layout): Don't declare.
2276
0dbc2fc7
TT
22772020-02-22 Tom Tromey <tom@tromey.com>
2278
2279 * tui/tui-regs.c (tui_reg_layout): Remove.
2280 (tui_reg_command): Use tui_regs_layout.
2281 * tui/tui-layout.h (tui_reg_command): Declare.
2282 * tui/tui-layout.c (tui_reg_command): New function.
2283
5afe342e
TT
22842020-02-22 Tom Tromey <tom@tromey.com>
2285
2286 * tui/tui.c (tui_rl_delete_other_windows): Call
2287 tui_remove_some_windows.
2288 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
2289 Declare method.
2290 (class tui_layout_window) <remove_windows>: New method.
2291 (class tui_layout_split) <remove_windows>: Declare.
2292 (tui_remove_some_windows): Declare.
2293 * tui/tui-layout.c (tui_remove_some_windows): New function.
2294 (tui_layout_split::remove_windows): New method.
2295
427326a8
TT
22962020-02-22 Tom Tromey <tom@tromey.com>
2297
2298 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
2299 * tui/tui-layout.h (tui_next_layout): Declare.
2300 * tui/tui-layout.c (tui_next_layout): New function.
2301
3fe12b6d
TT
23022020-02-22 Tom Tromey <tom@tromey.com>
2303
2304 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
2305 correct coordinates.
2306
59b8b5d2
TT
23072020-02-22 Tom Tromey <tom@tromey.com>
2308
2309 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
2310 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
2311 DATA_WIN case.
2312
2a3d458b
TT
23132020-02-22 Tom Tromey <tom@tromey.com>
2314
2315 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
2316 TUI_DISASM_WIN, not tui_win_list.
2317
3f0cbb04
TT
23182020-02-22 Tom Tromey <tom@tromey.com>
2319
2320 * valprint.c (generic_val_print_enum_1)
2321 (val_print_type_code_flags): Style member names.
2322 * rust-lang.c (val_print_struct, rust_print_enum)
2323 (rust_print_struct_def, rust_internal_print_type): Style member
2324 names.
2325 * p-valprint.c (pascal_object_print_value_fields): Style member
2326 names. Only call fprintf_symbol_filtered for static members.
2327 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
2328 * f-valprint.c (f_val_print): Style member names.
2329 * f-typeprint.c (f_type_print_base): Style member names.
2330 * cp-valprint.c (cp_print_value_fields): Style member names. Only
2331 call fprintf_symbol_filtered for static members.
2332 (cp_print_class_member): Style member names.
2333 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
2334 member names.
2335 * ada-valprint.c (ada_print_scalar): Style enum names.
2336 (ada_val_print_enum): Likewise.
2337 * ada-typeprint.c (print_enum_type): Style enum names.
2338
d4d947ae
TT
23392020-02-21 Tom Tromey <tom@tromey.com>
2340
2341 * psympriv.h (struct partial_symtab): Update comment.
2342
e94e944b
TT
23432020-02-21 Tom Tromey <tromey@adacore.com>
2344
2345 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
2346 type is CORE_ADDR.
2347
1eb73179
TV
23482020-02-21 Tom de Vries <tdevries@suse.de>
2349
2350 PR gdb/25534
2351 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
2352 if dependencies[i]->user != NULL.
2353
4f180d53
AT
23542020-02-21 Ali Tamur <tamur@google.com>
2355
2356 * dwarf2/read.c (dwarf2_name): Add null check.
2357
22b6cd70
TT
23582020-02-20 Tom Tromey <tom@tromey.com>
2359
2360 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
2361 ">=", in binary search.
2362 (dwarf2_find_containing_comp_unit): New overload.
2363 (run_test): New self-test.
2364 (_initialize_dwarf2_read): Register new test.
2365
bd0cf5a6
NC
23662020-02-20 Nelson Chu <nelson.chu@sifive.com>
2367
2368 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
2369 * riscv-tdep.h: Likewise.
2370 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
2371 rv32-only CSR.
2372 * features/riscv/64bit-csr.xml: Regenerated.
2373
3f702acd
SDJ
23742020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
2375 Tom Tromey <tom@tromey.com>
2376
2377 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
2378 of 'fputc_unfiltered'.
2379 (putchar_unfiltered): Call 'fputc_unfiltered'.
2380 (fputc_unfiltered): Call 'fputs_unfiltered'.
2381
d13c7322
AB
23822020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
2383
2384 * config.in: Regenerate.
2385 * configure: Regenerate.
2386 * configure.ac: Add --with-python-libdir option.
2387 * main.c: Use WITH_PYTHON_LIBDIR.
2388
869d8950
TT
23892020-02-19 Tom Tromey <tom@tromey.com>
2390
2391 * symtab.c (general_symbol_info::compute_and_set_names): Use
2392 obstack_strndup. Simplify call to symbol_set_demangled_name.
2393
298e9637
SM
23942020-02-19 Simon Marchi <simon.marchi@efficios.com>
2395
2396 * dwarf2/read.c (allocate_signatured_type_table,
2397 allocate_dwo_unit_table, allocate_type_unit_groups_table,
2398 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
2399 Remove objfile parameter, update all callers.
2400
08410482
DE
24012020-02-19 Doug Evans <dje@google.com>
2402
2403 PR rust/25535
2404 * rust-lang.c (rust_print_enum): Apply embedded_offset to
2405 rust_enum_variant calculation.
2406
dfdeeca1
TT
24072020-02-19 Tom Tromey <tromey@adacore.com>
2408
2409 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
2410
2ef5453b
TT
24112020-02-19 Tom Tromey <tromey@adacore.com>
2412
2413 * ada-lang.c (cache_symbol): Use obstack_strdup.
2414
9f1528a1
AB
24152020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
2416
2417 * configure: Regenerate.
2418
d3c22fa8
TT
24192020-02-19 Tom Tromey <tromey@adacore.com>
2420
2421 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
2422 NULL check.
2423
bf84f706
MR
24242020-02-19 Maciej W. Rozycki <macro@wdc.com>
2425
2426 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
2427
d1c9b20f
AB
24282020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
2429
2430 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
2431 if GDBSERVER is not defined.
2432 (riscv_tdesc_cache): Likewise, also store const target_desc.
2433 (STATIC_IN_GDB): Define.
2434 (riscv_create_target_description): Update declaration with
2435 STATIC_IN_GDB.
2436 (riscv_lookup_target_description): New function, only define if
2437 GDBSERVER is not defined.
2438 * arch/riscv.h (riscv_create_target_description): Declare only
2439 when GDBSERVER is defined.
2440 (riscv_lookup_target_description): New declaration when GDBSERVER
2441 is not defined.
2442 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
2443 (riscv_linux_read_features): ...this, and return
2444 riscv_gdbarch_features instead of target_desc.
2445 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
2446 (riscv_linux_read_description): Rename to...
2447 (riscv_linux_read_features): ...this.
2448 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
2449 Update to use riscv_gdbarch_features and
2450 riscv_lookup_target_description.
2451 * riscv-tdep.c (riscv_find_default_target_description): Use
2452 riscv_lookup_target_description instead of
2453 riscv_create_target_description.
2454
373d7ac0
SM
24552020-02-18 Simon Marchi <simon.marchi@efficios.com>
2456
2457 * valprint.c (generic_val_print_enum_1): When printing a flag
2458 enum with value 0 and there is no enumerator with value 0, print
2459 just "0" instead of "(unknown: 0x0)".
2460
b29a2df0
SM
24612020-02-18 Simon Marchi <simon.marchi@efficios.com>
2462
2463 * valprint.c (generic_val_print_enum_1): Print unknown part of
2464 flag enum in hex.
2465
6740f0cc
SM
24662020-02-18 Simon Marchi <simon.marchi@efficios.com>
2467
2468 * dwarf2/read.c (update_enumeration_type_from_children): Allow
2469 flag enums to contain duplicate enumerators.
2470 * valprint.c (generic_val_print_enum_1): Update comment.
2471
edd45eb0
SM
24722020-02-18 Simon Marchi <simon.marchi@efficios.com>
2473
2474 * dwarf2/read.c: Include "count-one-bits.h".
2475 (update_enumeration_type_from_children): If an enumerator has
2476 multiple bits set, don't treat the enumeration as a "flag enum".
2477 * valprint.c (generic_val_print_enum_1): Assert that enumerators
2478 of flag enums have 0 or 1 bit set.
2479
6d0cf446
BE
24802020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
2481
2482 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
2483 conversion.
2484 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
2485 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2486 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2487 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2488 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
2489
7001c1b7
SM
24902020-02-18 Simon Marchi <simon.marchi@efficios.com>
2491
2492 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
2493
fdb61c6c
SM
24942020-02-14 Simon Marchi <simon.marchi@efficios.com>
2495
2496 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
2497 displaced_step_closure_up.
2498 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
2499 (struct displaced_step_closure_up):
2500 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
2501 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
2502 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
2503 Likewise.
2504 * gdbarch.sh (displaced_step_copy_insn): Likewise.
2505 * gdbarch.c, gdbarch.h: Re-generate.
2506 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
2507 displaced_step_closure_up.
2508 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2509 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
2510 * infrun.h (displaced_step_closure_up): New type alias.
2511 (struct displaced_step_inferior_state) <step_closure>: Change
2512 type to displaced_step_closure_up.
2513 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
2514 displaced_step_closure_up.
2515 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
2516
a4a38eb4
TT
25172020-02-14 Tom Tromey <tom@tromey.com>
2518
2519 * minidebug.c (gnu_debug_key): New global.
2520 (find_separate_debug_file_in_section): Use it.
2521
e8217e61
SM
25222020-02-14 Simon Marchi <simon.marchi@efficios.com>
2523
2524 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
2525 std::unique_ptr.
2526 * gdbarch.c: Re-generate.
2527 * gdbarch.h: Re-generate.
2528 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
2529 change.
2530 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
2531 type to std::unique_ptr.
2532 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
2533 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
2534 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
2535 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2536 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
2537 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2538 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
2539 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2540 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
2541
d8d83535
SM
25422020-02-14 Simon Marchi <simon.marchi@efficios.com>
2543
2544 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
2545 std::unique_ptr.
2546 (displaced_step_clear): Rename to...
2547 (displaced_step_reset): ... this. Just call displaced->reset ().
2548 (displaced_step_clear_cleanup): Rename to...
2549 (displaced_step_reset_cleanup): ... this.
2550 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
2551 (displaced_step_fixup): Likewise.
2552 (resume_1): Likewise.
2553 (handle_inferior_event): Restore child's memory before calling
2554 displaced_step_fixup on the parent.
2555 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
2556 to std::unique_ptr.
2557 <step_closure>: Change type to std::unique_ptr.
2558
5f661e03
SM
25592020-02-14 Simon Marchi <simon.marchi@efficios.com>
2560
2561 * arm-tdep.c: Include count-one-bits.h.
2562 (cleanup_block_store_pc): Use count_one_bits.
2563 (cleanup_block_load_pc): Use count_one_bits.
2564 (arm_copy_block_xfer): Use count_one_bits.
2565 (thumb2_copy_block_xfer): Use count_one_bits.
2566 (thumb_copy_pop_pc_16bit): Use count_one_bits.
2567 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
2568 (thumb_get_next_pcs_raw): Use count_one_bits.
2569 (arm_get_next_pcs_raw): Use count_one_bits_l.
2570 * arch/arm.c (bitcount): Remove.
2571 * arch/arm.h (bitcount): Remove.
2572
8084e579
TT
25732020-02-14 Tom Tromey <tromey@adacore.com>
2574
2575 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
2576 Update.
2577 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
2578 * dwarf2/loc.c (call_site_find_chain_1): Return
2579 unique_xmalloc_ptr.
2580 (call_site_find_chain): Likewise.
2581
258bf0ee
RB
25822020-02-14 Richard Biener <rguenther@suse.de>
2583
2584 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
2585 on expression with division operators.
2586
f98a8458
AKS
25872020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2588
2589 * MAINTAINERS (Write After Approval): Adding myself.
2590
d1437c0e
TT
25912020-02-12 Tom Tromey <tom@tromey.com>
2592
2593 * event-loop.c (event_data, gdb_event, event_handler_func):
2594 Remove.
2595
3d4560f7
TT
25962020-02-12 Tom Tromey <tom@tromey.com>
2597
2598 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
2599 (dwarf2_frame_objfile_data): Add comment.
2600 (find_comp_unit, set_comp_unit): New functions.
2601 (dwarf2_frame_find_fde): Use find_comp_unit.
2602 (dwarf2_build_frame_info): Use set_comp_unit.
2603
21982304
TT
26042020-02-12 Tom Tromey <tom@tromey.com>
2605
2606 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
2607 (comp_unit): Don't initialize objfile.
2608 (execute_cfa_program): Add text_offset parameter.
2609 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
2610 (dwarf2_frame_cache): Update.
2611 (dwarf2_build_frame_info): Don't set "objfile" member.
2612
4debb237
TT
26132020-02-12 Tom Tromey <tom@tromey.com>
2614
2615 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
2616 (decode_frame_entry): Likewise.
2617 (dwarf2_build_frame_info): Update.
2618
0d404d44
TT
26192020-02-12 Tom Tromey <tom@tromey.com>
2620
2621 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
2622 (decode_frame_entry_1): Use the comp_unit obstack.
2623
a7a3ae5c
TT
26242020-02-12 Tom Tromey <tom@tromey.com>
2625
2626 * dwarf2/frame.c (struct comp_unit): Add initializers and
2627 constructor.
2628 (dwarf2_frame_objfile_data): Store a comp_unit.
2629 (dwarf2_frame_find_fde): Update.
2630 (dwarf2_build_frame_info): Use "new".
2631
a9d65418
TT
26322020-02-12 Tom Tromey <tom@tromey.com>
2633
2634 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
2635 (dwarf2_fde_table): Typedef for std::vector.
2636 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
2637 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
2638 (decode_frame_entry): Update.
2639 (dwarf2_build_frame_info): Use "new".
2640
7559c217
CB
26412020-02-12 Christian Biesinger <cbiesinger@google.com>
2642
2643 * arm-tdep.c (arm_gdbarch_init): Update.
2644 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
2645 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
2646 have_neon, is_m>: Change to bool.
2647
aeefc73c
CB
26482020-02-12 Christian Biesinger <cbiesinger@google.com>
2649
2650 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
2651
d27b8e5f
TT
26522020-02-12 Tom Tromey <tom@tromey.com>
2653
2654 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
2655
cd5900f3
HD
26562020-02-12 Hannes Domani <ssbssa@yahoo.de>
2657
2658 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
2659 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
2660
f056b22b
TT
26612020-02-11 Tom Tromey <tom@tromey.com>
2662
2663 * psymtab.h: Update comment.
2664
f92ff6b5
TT
26652020-02-11 Tom Tromey <tom@tromey.com>
2666
2667 * gdb_obstack.h (struct auto_obstack): Use
2668 DISABLE_COPY_AND_ASSIGN.
2669
3fd6912b
TT
26702020-02-11 Tom Tromey <tom@tromey.com>
2671
2672 * dwarf2/frame.h (struct objfile): Don't forward declare.
2673
69ed9b74
CB
26742020-02-11 Christian Biesinger <cbiesinger@google.com>
2675
2676 * cris-tdep.c (cris_supply_gregset): Change signature to match
2677 what struct regset expects.
2678 (cris_regset): New struct.
2679 (fetch_core_registers): Remove.
2680 (cris_iterate_over_regset_sections): New function.
2681 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
2682 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
2683
bda874f6
CB
26842020-02-11 Christian Biesinger <cbiesinger@google.com>
2685
2686 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
2687 registers.
2688
754e1564
CB
26892020-02-11 Christian Biesinger <cbiesinger@google.com>
2690
2691 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
2692
8ddd8e0e
SM
26932020-02-11 Simon Marchi <simon.marchi@efficios.com>
2694
2695 * configure: Re-generate.
2696
898e7f60
SM
26972020-02-11 Simon Marchi <simon.marchi@efficios.com>
2698
2699 * configure: Re-generate.
2700
58df732b
SM
27012020-02-11 Simon Marchi <simon.marchi@efficios.com>
2702
2703 * acinclude: Update warning.m4 path.
2704 * warning.m4: Move to gdbsupport.
2705
da5bd37e
TT
27062020-02-11 Tom Tromey <tromey@adacore.com>
2707
2708 * remote.c (remote_console_output): Update.
2709 * printcmd.c (printf_command): Update.
2710 * event-loop.c (gdb_wait_for_event): Update.
2711 * linux-nat.c (sigchld_handler): Update.
2712 * remote-sim.c (gdb_os_write_stdout): Update.
2713 (gdb_os_flush_stdout): Update.
2714 (gdb_os_flush_stderr): Update.
2715 (gdb_os_write_stderr): Update.
2716 * exceptions.c (print_exception): Update.
2717 * remote-fileio.c (remote_fileio_func_read): Update.
2718 (remote_fileio_func_write): Update.
2719 * tui/tui.c (tui_enable): Update.
2720 * tui/tui-interp.c (tui_interp::init): Update.
2721 * utils.c (init_page_info): Update.
2722 (putchar_unfiltered, fputc_unfiltered): Update.
2723 (gdb_flush): Update.
2724 (emit_style_escape): Update.
2725 (flush_wrap_buffer, fputs_maybe_filtered): Update.
2726 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
2727 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
2728 (stderr_file::write): Update.
2729 (stderr_file::puts): Update.
2730 * ui-file.h (ui_file_isatty, ui_file_write)
2731 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
2732 (ui_file_puts): Don't declare.
2733
85f0dd3c
TV
27342020-02-10 Tom de Vries <tdevries@suse.de>
2735
2736 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
2737 sentinel to char *.
2738
2e927613
TV
27392020-02-09 Tom de Vries <tdevries@suse.de>
2740
2741 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
2742 filename if it matches "<artificial>".
2743
6bafc845
HD
27442020-02-09 Hannes Domani <ssbssa@yahoo.de>
2745
2746 * windows-tdep.c (struct enum_value_name): New struct.
2747 (create_enum): New function.
2748 (windows_get_siginfo_type): Create and use enum types.
2749
7928d571
HD
27502020-02-09 Hannes Domani <ssbssa@yahoo.de>
2751
2752 * NEWS: Mention $_siginfo support for Windows.
2753 * windows-nat.c (handle_exception): Set siginfo_er.
2754 (windows_nat_target::mourn_inferior): Reset siginfo_er.
2755 (windows_xfer_siginfo): New function.
2756 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
2757 * windows-tdep.c (struct windows_gdbarch_data): New struct.
2758 (init_windows_gdbarch_data): New function.
2759 (get_windows_gdbarch_data): New function.
2760 (windows_get_siginfo_type): New function.
2761 (windows_init_abi): Register windows_get_siginfo_type.
2762 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
2763
6751ebae
TT
27642020-02-08 Tom Tromey <tom@tromey.com>
2765
2766 * dwarf2/read.c (class cutu_reader) <cutu_reader,
2767 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
2768 <keep>: Declare method.
2769 <m_keep>: Remove member.
2770 <~cutu_reader>: Remove.
2771 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2772 (cutu_reader::cutu_reader): Update.
2773 (cutu_reader::keep): Rename from ~cutu_reader.
2774 (process_psymtab_comp_unit, build_type_psymtabs_1)
2775 (process_skeletonless_type_unit, load_partial_comp_unit)
2776 (load_full_comp_unit, dwarf2_read_addr_index)
2777 (read_signatured_type): Update.
2778
135f5437
TT
27792020-02-08 Tom Tromey <tom@tromey.com>
2780
2781 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
2782 "want_partial_unit" parameter.
2783 (process_psymtab_comp_unit): Change want_partial_unit to bool.
2784 Inline check for DW_TAG_partial_unit.
2785 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
2786
9f66ff1c
TT
27872020-02-08 Tom Tromey <tom@tromey.com>
2788
2789 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
2790 read.c.
2791 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
2792 read.c.
2793
c8a7a66f
TT
27942020-02-08 Tom Tromey <tom@tromey.com>
2795
2796 * dwarf2/read.c (read_address): Move to comp-unit.c.
2797 (dwarf2_rnglists_process, dwarf2_ranges_process)
2798 (read_attribute_value, dwarf_decode_lines_1)
2799 (var_decode_location, decode_locdesc): Update.
2800 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
2801 read.c. Remove "cu" parameter.
2802 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
2803 method.
2804
8266302d
TT
28052020-02-08 Tom Tromey <tom@tromey.com>
2806
2807 * dwarf2/read.c (read_attribute_value, read_indirect_string)
2808 (read_indirect_line_string): Update.
2809 * dwarf2/comp-unit.c (read_offset): Remove.
2810 (read_comp_unit_head): Update.
2811 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
2812 method.
2813 (read_offset): Don't declare.
2814
4057dfde
TT
28152020-02-08 Tom Tromey <tom@tromey.com>
2816
2817 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
2818 * dwarf2/read.c (struct comp_unit_head): Move to
2819 dwarf2/comp-unit.h.
2820 (enum class rcuh_kind): Move to comp-unit.h.
2821 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
2822 (read_comp_unit_head, error_check_comp_unit_head)
2823 (read_and_check_comp_unit_head): Move to comp-unit.c.
2824 (read_offset, dwarf_unit_type_name): Likewise.
2825 (create_debug_type_hash_table, read_cutu_die_from_dwo)
2826 (cutu_reader::cutu_reader, read_call_site_scope)
2827 (find_partial_die, follow_die_offset): Update.
2828 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
2829
24aa364d
TT
28302020-02-08 Tom Tromey <tom@tromey.com>
2831
2832 * dwarf2/read.c (read_offset_1): Move to leb.c.
2833 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
2834 (dwarf_decode_macro_bytes): Update.
2835 * dwarf2/leb.c (read_offset): Rename; move from read.c.
2836 * dwarf2/leb.h (read_offset): Declare.
2837
2c7d5afc
TT
28382020-02-08 Tom Tromey <tom@tromey.com>
2839
2840 * dwarf2/read.c (dwarf2_section_size): Remove.
2841 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
2842 Update.
2843 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
2844
4075cb26
TT
28452020-02-08 Tom Tromey <tom@tromey.com>
2846
2847 * dwarf2/read.c (read_initial_length): Move to leb.c.
2848 * dwarf2/leb.h (read_initial_length): Declare.
2849 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
2850 handle_nonstd parameter.
2851 * dwarf2/frame.c (read_initial_length): Remove.
2852 (decode_frame_entry_1): Update.
2853
09ba997f
TT
28542020-02-08 Tom Tromey <tom@tromey.com>
2855
2856 * dwarf2/loc.c (dwarf2_find_location_expression)
2857 (dwarf_evaluate_loc_desc::get_tls_address)
2858 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
2859 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
2860 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
2861 (dwarf2_compile_property_to_c)
2862 (dwarf2_loc_desc_get_symbol_read_needs)
2863 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
2864 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
2865 (loclist_describe_location, loclist_tracepoint_var_ref)
2866 (loclist_generate_c_location): Update.
2867 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
2868 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
2869 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
2870 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
2871 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
2872 (dwarf2_per_cu_data::addr_size)
2873 (dwarf2_per_cu_data::ref_addr_size)
2874 (dwarf2_per_cu_data::text_offset)
2875 (dwarf2_per_cu_data::addr_type): Now methods.
2876 (per_cu_header_read_in): Make per_cu "const".
2877 (dwarf2_version): Remove.
2878 (dwarf2_per_cu_data::int_type): Now a method.
2879 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
2880 (set_die_type, read_array_type, read_subrange_index_type)
2881 (read_tag_string_type, read_subrange_type): Update.
2882 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
2883 offset_size, ref_addr_size, text_offset, addr_type, version,
2884 objfile, int_type, addr_sized_int_type>: Declare methods.
2885
96c738c0
TT
28862020-02-08 Tom Tromey <tom@tromey.com>
2887
2888 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
2889 Move earlier.
2890
8fdd972c
TT
28912020-02-08 Tom Tromey <tom@tromey.com>
2892
2893 * dwarf2/read.h (dwarf_line_debug): Declare.
2894 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
2895 * dwarf2/read.c: Move line_header code to new files.
2896 (dwarf_line_debug): No longer static.
2897 * dwarf2/line-header.c: New file.
2898 * dwarf2/line-header.h: New file.
2899
03075812
TT
29002020-02-08 Tom Tromey <tom@tromey.com>
2901
2902 * dwarf2/read.c (struct line_header) <file_full_name,
2903 file_file_name>: Return unique_xmalloc_ptr.
2904 (line_header::file_file_name): Update.
2905 (line_header::file_full_name): Update.
2906 (dw2_get_file_names_reader): Update.
2907 (macro_start_file): Update.
2908
bb822404
TT
29092020-02-08 Tom Tromey <tom@tromey.com>
2910
2911 * dwarf2/read.c (struct line_header) <file_full_name,
2912 file_file_name>: Declare methods.
2913 (dw2_get_file_names_reader): Update.
2914 (file_file_name): Now a method.
2915 (file_full_name): Likewise.
2916 (macro_start_file): Update.
2917
009b64fc
TT
29182020-02-08 Tom Tromey <tom@tromey.com>
2919
2920 * dwarf2/read.c (dwarf_always_disassemble)
2921 (show_dwarf_always_disassemble): Move to loc.c.
2922 (_initialize_dwarf2_read): Move "always-disassemble" registration
2923 to loc.c.
2924 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
2925 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
2926 static.
2927 (show_dwarf_always_disassemble): Move from read.c.
2928 (_initialize_dwarf2loc): Move always-disassemble from read.c.
2929
5895093f
TT
29302020-02-08 Tom Tromey <tom@tromey.com>
2931
2932 * dwarf2/read.c (~dwarf2_per_objfile): Update.
2933 (create_quick_file_names_table): Return htab_up.
2934 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
2935 Update.
2936 * dwarf2/read.h (struct dwarf2_per_objfile)
2937 <quick_file_names_table>: Now htab_up.
2938
b3b32279
TT
29392020-02-08 Tom Tromey <tom@tromey.com>
2940
2941 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
2942
1d33d811
TT
29432020-02-08 Tom Tromey <tom@tromey.com>
2944
2945 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
2946 Rewrite.
2947 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
2948 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
2949 (abbrev_table::abbrev_table): No longer inline.
2950 (ABBREV_HASH_SIZE): Remove.
2951 (abbrev_table::m_abbrevs): Now an htab_up.
2952
86de1d91
TT
29532020-02-08 Tom Tromey <tom@tromey.com>
2954
2955 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
2956 (cutu_reader): Update.
2957 (build_type_psymtabs_1): Update.
2958 * dwarf2/abbrev.c (abbrev_table::read): Rename.
2959 (abbrev_table::alloc_abbrev): Update.
2960 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
2961 (abbrev_table::read): New static method, renamed from
2962 abbrev_table_read_table.
2963 (abbrev_table::alloc_abbrev)
2964 (abbrev_table::add_abbrev): Now private.
2965 (abbrev_table::abbrev_table): Now private.
2966 (abbrev_table::m_abbrev_obstack): Now private. Rename.
2967
0335378b
TT
29682020-02-08 Tom Tromey <tom@tromey.com>
2969
2970 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
2971 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
2972 htab_up.
2973
48b490f2
TT
29742020-02-08 Tom Tromey <tom@tromey.com>
2975
2976 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
2977 htab_up.
2978 (lookup_dwo_unit_in_dwp): Update.
2979 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
2980 on obstack.
2981
bc68fb19
TT
29822020-02-08 Tom Tromey <tom@tromey.com>
2983
2984 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
2985 obstack.
2986
d15acc42
TT
29872020-02-08 Tom Tromey <tom@tromey.com>
2988
2989 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
2990 line_header_hash.
2991 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
2992 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
2993 Change type to htab_up.
2994
eaa5fa8b
TT
29952020-02-08 Tom Tromey <tom@tromey.com>
2996
2997 * dwarf2/read.c (allocate_type_unit_groups_table): Return
2998 htab_up. Don't allocate on obstack.
2999 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
3000 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
3001 Change type to htab_up.
3002
b0b6a987
TT
30032020-02-08 Tom Tromey <tom@tromey.com>
3004
3005 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
3006 Change type to htab_up.
3007 * dwarf2/read.c (create_signatured_type_table_from_index)
3008 (create_signatured_type_table_from_debug_names)
3009 (create_all_type_units, add_type_unit)
3010 (lookup_dwo_signatured_type, lookup_signatured_type)
3011 (process_skeletonless_type_unit): Update.
3012 (create_debug_type_hash_table, create_debug_types_hash_table):
3013 Change type of types_htab.
3014 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
3015 htab_up. Don't allocate on obstack.
3016 (create_cus_hash_table): Change type of cus_htab parameter.
3017 (struct dwo_file) <cus, tus>: Now htab_up.
3018 (lookup_dwo_signatured_type, lookup_dwo_cutu)
3019 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
3020 (queue_and_load_all_dwo_tus): Update.
3021 * dwarf2/index-write.c (write_gdbindex): Update.
3022 (write_debug_names): Update.
3023
39856def
TT
30242020-02-08 Tom Tromey <tom@tromey.com>
3025
3026 * dwarf2/read.h (struct dwarf2_queue_item): Move from
3027 dwarf2/read.c. Remove "next" member. Add constructor ntad
3028 destructor.
3029 (struct dwarf2_per_objfile) <queue>: New member.
3030 * dwarf2/read.c (struct dwarf2_queue_item): Move to
3031 dwarf2/read.h.
3032 (dwarf2_queue, dwarf2_queue_tail): Remove.
3033 (class dwarf2_queue_guard): Add parameter to constructor. Use
3034 DISABLE_COPY_AND_ASSIGN.
3035 <m_per_objfile>: New member.
3036 <~dwarf2_queue_guard>: Rewrite.
3037 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
3038 Update.
3039 (~dwarf2_queue_item): New.
3040
3e225074
TT
30412020-02-08 Tom Tromey <tom@tromey.com>
3042
3043 * dwarf2/read.c (struct die_info) <has_children>: New member.
3044 (dw2_get_file_names_reader): Remove has_children.
3045 (dw2_get_file_names): Update.
3046 (read_cutu_die_from_dwo): Remove has_children.
3047 (cutu_reader::init_tu_and_read_dwo_dies)
3048 (cutu_reader::cutu_reader): Update.
3049 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
3050 Remove has_children.
3051 (build_type_psymtabs_1, process_skeletonless_type_unit)
3052 (load_partial_comp_unit, load_full_comp_unit): Update.
3053 (create_dwo_cu_reader): Remove has_children.
3054 (create_cus_hash_table, read_die_and_children): Update.
3055 (read_full_die_1,read_full_die): Remove has_children.
3056 (read_signatured_type): Update.
3057 (class cutu_reader) <has_children>: Remove.
3058
82ca8957
TT
30592020-02-08 Tom Tromey <tom@tromey.com>
3060
3061 * dwarf2/expr.c: Rename from dwarf2expr.c.
3062 * dwarf2/expr.h: Rename from dwarf2expr.h.
3063 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
3064 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
3065 * dwarf2/frame.c: Rename from dwarf2-frame.c.
3066 * dwarf2/frame.h: Rename from dwarf2-frame.h.
3067 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
3068 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
3069 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
3070 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
3071 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
3072 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
3073 * dwarf2/loc.c: Rename from dwarf2loc.c.
3074 * dwarf2/loc.h: Rename from dwarf2loc.h.
3075 * dwarf2/read.c: Rename from dwarf2read.c.
3076 * dwarf2/read.h: Rename from dwarf2read.h.
3077 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
3078 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
3079 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
3080 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
3081 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
3082 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
3083 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
3084 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
3085 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
3086 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
3087 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
3088 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
3089 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
3090 Update.
3091 * Makefile.in (COMMON_SFILES): Update.
3092 (HFILES_NO_SRCDIR): Update.
3093
9e35d499
TT
30942020-02-08 Tom Tromey <tom@tromey.com>
3095
3096 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
3097 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
3098
1eba2311
TT
30992020-02-08 Tom Tromey <tom@tromey.com>
3100
3101 * dwarf2read.h (struct die_info): Don't declare.
3102
e41c2da2
TT
31032020-02-08 Tom Tromey <tom@tromey.com>
3104
3105 * dwarf2read.h (die_info_ptr): Remove typedef.
3106
4fc6c0d5
TT
31072020-02-08 Tom Tromey <tom@tromey.com>
3108
3109 * dwarf2read.c (read_call_site_scope)
3110 (handle_data_member_location, dwarf2_add_member_fn)
3111 (mark_common_block_symbol_computed, read_common_block)
3112 (attr_to_dynamic_prop, partial_die_info::read)
3113 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
3114 (dwarf2_symbol_mark_computed, set_die_type): Update.
3115 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
3116 method.
3117 (attr_form_is_block): Don't declare.
3118 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
3119
cd6c91b4
TT
31202020-02-08 Tom Tromey <tom@tromey.com>
3121
3122 * dwarf2read.c (dwarf2_find_base_address, )
3123 (read_call_site_scope, rust_containing_type)
3124 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3125 (handle_data_member_location, dwarf2_add_member_fn)
3126 (get_alignment, read_structure_type, process_structure_scope)
3127 (mark_common_block_symbol_computed, read_common_block)
3128 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
3129 (partial_die_info::read, read_attribute_value, new_symbol)
3130 (lookup_die_type, dwarf2_get_ref_die_offset)
3131 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
3132 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
3133 (dwarf2_symbol_mark_computed): Update.
3134 * dwarf2/attribute.h (struct attribute) <value_as_address,
3135 form_is_section_offset, form_is_constant, form_is_ref>: Declare
3136 methods.
3137 (value_as_address, attr_form_is_section_offset)
3138 (attr_form_is_constant, attr_form_is_ref): Don't declare.
3139 * dwarf2/attribute.c (attribute::value_as_address)
3140 (attribute::form_is_section_offset, attribute::form_is_constant)
3141 (attribute::form_is_ref): Now methods.
3142
162dce55
TT
31432020-02-08 Tom Tromey <tom@tromey.com>
3144
3145 * dwarf2read.c (struct attribute, DW_STRING)
3146 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
3147 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
3148 (attr_form_is_block, attr_form_is_section_offset)
3149 (attr_form_is_constant, attr_form_is_ref): Move.
3150 * dwarf2/attribute.h: New file.
3151 * dwarf2/attribute.c: New file, from dwarf2read.c.
3152 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
3153
3054dd54
TT
31542020-02-08 Tom Tromey <tom@tromey.com>
3155
3156 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
3157 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
3158 Move.
3159 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
3160 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
3161 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
3162 abbrev.c.
3163 * dwarf2/abbrev.h: New file.
3164 * dwarf2/abbrev.c: New file, from dwarf2read.c.
3165 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
3166
96b79293
TT
31672020-02-08 Tom Tromey <tom@tromey.com>
3168
3169 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
3170 (dwarf2_section_size, dwarf2_get_section_info)
3171 (create_signatured_type_table_from_debug_names)
3172 (create_addrmap_from_aranges, read_debug_names_from_section)
3173 (get_gdb_index_contents_from_section, read_comp_unit_head)
3174 (error_check_comp_unit_head, read_abbrev_offset)
3175 (create_debug_type_hash_table, init_cu_die_reader)
3176 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
3177 (read_comp_units_from_section, create_cus_hash_table)
3178 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3179 (create_dwp_v2_section, dwarf2_rnglists_process)
3180 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
3181 (abbrev_table_read_table, read_indirect_string_at_offset_from)
3182 (read_indirect_string_from_dwz, read_addr_index_1)
3183 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
3184 (dwarf_decode_macro_bytes, dwarf_decode_macros)
3185 (fill_in_loclist_baton): Update.
3186 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
3187 get_containing_section, get_bfd_owner, get_bfd_section,
3188 get_file_name, get_id, get_flags, empty, read>: Declare methods.
3189 (dwarf2_read_section, get_section_name, get_section_file_name)
3190 (get_containing_section, get_section_bfd_owner)
3191 (get_section_bfd_section, get_section_name, get_section_file_name)
3192 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
3193 declare.
3194 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
3195 (dwarf2_section_info::get_bfd_owner)
3196 (dwarf2_section_info::get_bfd_section)
3197 (dwarf2_section_info::get_name)
3198 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
3199 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
3200 (dwarf2_section_info::read): Now methods.
3201 * dwarf-index-write.c (class debug_names): Update.
3202
2c86cff9
TT
32032020-02-08 Tom Tromey <tom@tromey.com>
3204
3205 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
3206 Move to dwarf2/section.h.
3207 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
3208 (get_section_bfd_section, get_section_name)
3209 (get_section_file_name, get_section_id, get_section_flags)
3210 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
3211 dwarf2/section.c.
3212 * dwarf2/section.h: New file.
3213 * dwarf2/section.c: New file, from dwarf2read.c.
3214 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
3215
f4382c45
TT
32162020-02-08 Tom Tromey <tom@tromey.com>
3217
3218 * dwarf2read.h (read_unsigned_leb128): Don't declare.
3219 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
3220 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
3221 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
3222 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
3223 * dwarf2/leb.h: New file, from dwarf2read.c.
3224 * dwarf2/leb.c: New file, from dwarf2read.c.
3225 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
3226 Remove.
3227 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
3228 (COMMON_SFILES): Add dwarf2/leb.c.
3229
01840b7a
JB
32302020-02-08 Joel Brobecker <brobecker@adacore.com>
3231
3232 GDB 9.1 released.
3233
dfcb27e4
IB
32342020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
3235
3236 PR gdb/25190:
3237 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
3238 * gdb/remote.c (remote_console_output): Update.
3239 * gdb/ui-file.c (fputs_unfiltered): Rename to...
3240 (ui_file_puts): ...this.
3241 * gdb/ui-file.h (ui_file_puts): Add declaration.
3242 * gdb/utils.c (emit_style_escape): Update.
3243 (flush_wrap_buffer): Update.
3244 (fputs_maybe_filtered): Update.
3245 (fputs_unfiltered): Add function.
3246
faa17681
IB
32472020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
3248
3249 * gdb/event-loop.c (gdb_wait_for_event): Update.
3250 * gdb/printcmd.c (printf_command): Update.
3251 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
3252 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
3253 (gdb_os_flush_stderr): Update.
3254 * gdb/remote.c (remote_console_output): Update.
3255 * gdb/ui-file.c (gdb_flush): Rename to...
3256 (ui_file_flush): ...this.
3257 (stderr_file::write): Update.
3258 (stderr_file::puts): Update.
3259 * gdb/ui-file.h (gdb_flush): Rename to...
3260 (ui_file_flush): ...this.
3261 * gdb/utils.c (gdb_flush): Add function.
3262 * gdb/utils.h (gdb_flush): Add declaration.
3263
5abbbe1d
TT
32642020-02-07 Tom Tromey <tromey@adacore.com>
3265
3266 PR breakpoints/24915:
3267 * source.c (find_and_open_source): Do not check basenames_may_differ.
3268
919adfe8
TT
32692020-02-07 Tom Tromey <tom@tromey.com>
3270
3271 * README: Update gdbserver documentation.
3272 * gdbserver: Move to top level.
3273 * configure.tgt (build_gdbserver): Remove.
3274 * configure.ac: Remove --enable-gdbserver.
3275 * configure: Rebuild.
3276 * Makefile.in (distclean): Don't mention gdbserver.
3277
1d5d29e7
SV
32782020-02-06 Shahab Vahedi <shahab@synopsys.com>
3279
3280 * source-cache.c (source_cache::ensure): Surround
3281 get_plain_source_lines with a try/catch.
3282 (source_cache::get_line_charpos): Get rid of try/catch
3283 and only check for the return value of "ensure".
3284 * tui/tui-source.c (tui_source_window::set_contents):
3285 Simplify "nlines" calculation.
3286
6eb1129c
SV
32872020-02-06 Shahab Vahedi <shahab@synopsys.com>
3288
3289 * MAINTAINERS (Write After Approval): Add myself.
3290
c6a42d11
CB
32912020-02-05 Christian Biesinger <cbiesinger@google.com>
3292
3293 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
3294 function call.
3295
c8ecdda6
CB
32962020-02-05 Christian Biesinger <cbiesinger@google.com>
3297
3298 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
3299
f6480e70
MR
33002020-02-05 Maciej W. Rozycki <macro@wdc.com>
3301
3302 * nat/riscv-linux-tdesc.h: New file.
3303 * nat/riscv-linux-tdesc.c: New file, taking code from...
3304 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
3305 ... here.
3306 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
3307 NATDEPFILES.
3308
dcc9fbc6
AB
33092020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
3310
3311 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
3312 we don't set the fake simulator ptid to the null_ptid.
3313
719546c4
SM
33142020-02-03 Simon Marchi <simon.marchi@efficios.com>
3315
3316 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
3317 * gdbthread.h (class thread_info) <resumed>: Likewise.
3318 * infrun.c (resume_1): Likewise.
3319 (proceed): Likewise.
3320 (infrun_thread_stop_requested): Likewise.
3321 (stop_all_threads): Likewise.
3322 (handle_inferior_event): Likewise.
3323 (restart_threads): Likewise.
3324 (finish_step_over): Likewise.
3325 (keep_going_stepped_thread): Likewise.
3326 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
3327 (linux_handle_extended_wait): Likewise.
3328 * record-btrace.c (get_thread_current_frame_id): Likewise.
3329 * record-full.c (record_full_wait_1): Likewise.
3330 * remote.c (remote_target::process_initial_stop_replies): Likewise.
3331 * target.c (target_resume): Likewise.
3332 * thread.c (set_running_thread): Likewise.
3333
e409c542
AKS
33342020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3335
3336 * f-valprint.c (f77_print_array_1): Changed datatype of index
3337 variable to LONGEST from int to enable it to contain bound
3338 values correctly.
3339
ee98c0da
MR
33402020-02-03 Maciej W. Rozycki <macro@wdc.com>
3341
3342 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
3343 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
3344 offsets according to FLEN determined.
3345 (riscv_linux_nat_target::read_description): Determine FLEN
3346 dynamically.
3347 (riscv_linux_nat_target::fetch_registers): Size regset buffer
3348 according to FLEN determined.
3349 (riscv_linux_nat_target::store_registers): Likewise.
3350
aa66aac4
SV
33512020-02-01 Shahab Vahedi <shahab@synopsys.com>
3352
3353 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
3354 when reg->group is empty and reggroup is not.
3355
fd9faca8
TT
33562020-01-31 Tom Tromey <tromey@adacore.com>
3357
3358 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
3359 Call beneath target's mourn_inferior after unpushing.
3360
42330a68
AB
33612020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
3362
3363 PR tui/9765
3364 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
3365 have enough lines to fill the screen, still return the lowest
3366 address we found.
3367
7a27a45b
AB
33682020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
3369
3370 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
3371 '-', '<', and '>' commands.
3372
c47f70e2
PA
33732020-01-29 Pedro Alves <palves@redhat.com>
3374 Sergio Durigan Junior <sergiodj@redhat.com>
3375
3376 * infcmd.c (construct_inferior_arguments): Assert that
3377 'argc' is greater than 0.
3378
5133a315
LM
33792020-01-29 Luis Machado <luis.machado@linaro.org>
3380
3381 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
3382 (BRK_INSN_MASK): Define to 0xd4200000.
3383 (aarch64_program_breakpoint_here_p): New function.
3384 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
3385 * arch-utils.c (default_program_breakpoint_here_p): Moved from
3386 breakpoint.c.
3387 * arch-utils.h (default_program_breakpoint_here_p): Moved from
3388 breakpoint.h
3389 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
3390 call gdbarch_program_breakpoint_here_p.
3391 (program_breakpoint_here): Moved to arch-utils.c, renamed to
3392 default_program_breakpoint_here_p, changed return type to bool and
3393 simplified.
3394 * breakpoint.h (program_breakpoint_here): Moved prototype to
3395 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
3396 return type to bool.
3397 * gdbarch.c: Regenerate.
3398 * gdbarch.h: Regenerate.
3399 * gdbarch.sh (program_breakpoint_here_p): New method.
3400 * infrun.c (handle_signal_stop): Call
3401 gdbarch_program_breakpoint_here_p.
3402
168f8c6b
TT
34032020-01-26 Tom Tromey <tom@tromey.com>
3404
3405 * ctfread.c (struct ctf_fp_info): Reindent.
3406 (_initialize_ctfread): Remove.
3407
128a391f
TT
34082020-01-26 Tom Tromey <tom@tromey.com>
3409
3410 * psymtab.c (partial_map_expand_apply)
3411 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3412 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3413 (psym_print_stats, psym_expand_symtabs_for_function)
3414 (psym_map_symbol_filenames, psym_map_matching_symbols)
3415 (psym_expand_symtabs_matching)
3416 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3417 (maintenance_check_psymtabs): Use new methods.
3418 * psympriv.h (struct partial_symtab) <readin_p,
3419 get_compunit_symtab>: New methods.
3420 <readin, compunit_symtab>: Remove members.
3421 (struct standard_psymtab): New.
3422 (struct legacy_psymtab): Derive from standard_psymtab.
3423 * dwarf2read.h (struct dwarf2_psymtab): Derive from
3424 standard_psymtab.
3425 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
3426
0494dbec
TT
34272020-01-26 Tom Tromey <tom@tromey.com>
3428
3429 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
3430 read_dependencies. Add assert.
3431 * psymtab.c (partial_symtab::read_dependencies): New method.
3432 * psympriv.h (struct partial_symtab) <read_dependencies>: New
3433 method.
3434 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
3435 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
3436 read_dependencies.
3437 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
3438 Add assert.
3439
8566b89b
TT
34402020-01-26 Tom Tromey <tom@tromey.com>
3441
3442 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
3443 Call expand_psymtab.
3444 (xcoff_read_symtab): Call expand_psymtab.
3445 (xcoff_start_psymtab, xcoff_end_psymtab): Set
3446 legacy_expand_psymtab.
3447 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
3448 method.
3449 (struct legacy_psymtab) <expand_psymtab>: Implement.
3450 <legacy_expand_psymtab>: New member.
3451 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
3452 (parse_partial_symbols): Set legacy_expand_psymtab.
3453 (psymtab_to_symtab_1): Change argument order. Call
3454 expand_psymtab.
3455 (new_psymtab): Set legacy_expand_psymtab.
3456 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
3457 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
3458 expand_psymtab.
3459 (dwarf2_psymtab::expand_psymtab): Rename from
3460 psymtab_to_symtab_1. Call expand_psymtab.
3461 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
3462 (dbx_end_psymtab): Likewise.
3463 (dbx_psymtab_to_symtab_1): Change argument order. Call
3464 expand_psymtab.
3465 (dbx_read_symtab): Call expand_psymtab.
3466 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
3467 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
3468 (ctf_psymtab::read_symtab): Call expand_psymtab.
3469
077cbab2
TT
34702020-01-26 Tom Tromey <tom@tromey.com>
3471
3472 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
3473 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
3474 messages.
3475 * mdebugread.c (mdebug_read_symtab): Remove prints.
3476 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
3477 assert.
3478 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
3479
891813be
TT
34802020-01-26 Tom Tromey <tom@tromey.com>
3481
3482 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
3483 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
3484 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
3485 legacy_symtab.
3486 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
3487 * psymtab.c (psymtab_to_symtab): Call method.
3488 (dump_psymtab): Update.
3489 * psympriv.h (struct partial_symtab): Add virtual destructor.
3490 <read_symtab>: New method.
3491 (struct legacy_symtab): New.
3492 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
3493 (struct pst_map) <pst>: Now a legacy_psymtab.
3494 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
3495 (new_psymtab): Use legacy_psymtab.
3496 * dwarf2read.h (struct dwarf2_psymtab): New.
3497 (struct dwarf2_per_cu_data) <psymtab>: Use it.
3498 * dwarf2read.c (dwarf2_create_include_psymtab)
3499 (dwarf2_build_include_psymtabs, create_type_unit_group)
3500 (create_partial_symtab, process_psymtab_comp_unit_reader)
3501 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
3502 (set_partial_user): Use dwarf2_psymtab.
3503 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
3504 (psymtab_to_symtab_1, process_full_comp_unit)
3505 (process_full_type_unit, dwarf2_ranges_read)
3506 (dwarf2_get_pc_bounds, psymtab_include_file_name)
3507 (dwarf_decode_lines): Use dwarf2_psymtab.
3508 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
3509 (add_address_entry_worker, write_one_signatured_type)
3510 (recursively_count_psymbols, recursively_write_psymbols)
3511 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
3512 (write_debug_names): Likewise.
3513 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
3514 <pst>: Now a legacy_psymtab.
3515 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
3516 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
3517 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
3518 * ctfread.c (struct ctf_psymtab): New.
3519 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
3520 ctf_psymtab.
3521 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
3522 (create_partial_symtab): Return a ctf_psymtab.
3523 (scan_partial_symbols): Update.
3524
c3693a1d
TT
35252020-01-26 Tom Tromey <tom@tromey.com>
3526
3527 * xcoffread.c (xcoff_start_psymtab): Use new.
3528 * psymtab.c (partial_symtab::partial_symtab): New constructor,
3529 renamed from start_psymtab_common.
3530 * psympriv.h (struct partial_symtab): Add new constructor.
3531 (start_psymtab_common): Don't declare.
3532 * mdebugread.c (parse_partial_symbols): Use new.
3533 * dwarf2read.c (create_partial_symtab): Use new.
3534 * dbxread.c (start_psymtab): Use new.
3535 * ctfread.c (create_partial_symtab): Use new.
3536
32caafd0
TT
35372020-01-26 Tom Tromey <tom@tromey.com>
3538
3539 * xcoffread.c (xcoff_end_psymtab): Use new.
3540 * psymtab.c (start_psymtab_common): Use new.
3541 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
3542 Update.
3543 * psympriv.h (struct partial_symtab): Add parameters to
3544 constructor. Don't inline.
3545 (allocate_psymtab): Don't declare.
3546 * mdebugread.c (new_psymtab): Use new.
3547 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
3548 * dbxread.c (dbx_end_psymtab): Use new.
3549
abaa2f23
TT
35502020-01-26 Tom Tromey <tom@tromey.com>
3551
3552 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
3553 allocate_psymtab. Update documentation.
3554 * psymtab.c (psymtab_storage::install_psymtab): Rename from
3555 allocate_psymtab. Do not use new.
3556 (allocate_psymtab): Use new. Update.
3557
6d94535f
TT
35582020-01-26 Tom Tromey <tom@tromey.com>
3559
3560 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3561 * psymtab.c (psym_print_stats): Update.
3562 * psympriv.h (struct partial_symtab) <readin,
3563 psymtabs_addrmap_supported, anonymous>: Now bool.
3564 * mdebugread.c (psymtab_to_symtab_1): Update.
3565 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
3566 (build_type_psymtabs_reader, psymtab_to_symtab_1)
3567 (process_full_comp_unit, process_full_type_unit): Update.
3568 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
3569 * ctfread.c (psymtab_to_symtab): Update.
3570
6f17252b
TT
35712020-01-26 Tom Tromey <tom@tromey.com>
3572
3573 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
3574 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
3575 * psymtab.c (psymtab_storage): Delete psymtabs.
3576 (psymtab_storage::allocate_psymtab): Use new.
3577 (psymtab_storage::discard_psymtab): Use delete.
3578 * psympriv.h (struct partial_symtab): Add constructor and
3579 initializers.
3580
f6f1cebc
TT
35812020-01-26 Tom Tromey <tom@tromey.com>
3582
3583 * machoread.c: Do not include psympriv.h.
3584
e47e48f6
PW
35852020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3586
3587 * NEWS: Mention the new option and the set/show commands.
3588
a2fedca9
PW
35892020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3590
3591 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
3592 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
3593 (validate_exec_file): New variables, enums, functions.
3594 (exec_file_locate_attach, print_section_info): Style the filenames.
3595 (_initialize_exec): Install show_exec_file_mismatch_command and
3596 set_exec_file_mismatch_command.
3597 * gdbcore.h (validate_exec_file): Declare.
3598 * infcmd.c (attach_command): Call validate_exec_file.
3599 * remote.c ( remote_target::remote_add_inferior): Likewise.
3600
7ffa82e1
AB
36012020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3602
3603 * frame.c (find_frame_sal): Move call to get_next_frame into more
3604 inner scope.
3605 * inline-frame.c (inilne_state) <inline_state>: Update argument
3606 types.
3607 (inilne_state) <skipped_symbol>: Rename to...
3608 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
3609 (skip_inline_frames): Build vector of skipped symbols and use this
3610 to reate the inline_state.
3611 (inline_skipped_symbol): Add a comment and some assertions, fetch
3612 skipped symbol from the list.
3613
3d92a3e3
AB
36142020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3615
3616 * buildsym.c (lte_is_less_than): Delete.
3617 (buildsym_compunit::end_symtab_with_blockvector): Create local
3618 lambda function to sort line table entries, and use
3619 std::stable_sort instead of std::sort.
3620 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
3621 markers when looking for a previous line.
3622
94a72be7
AB
36232020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3624
3625 * dwarf2read.c (lnp_state_machine::record_line): Include
3626 end_sequence parameter in debug print out. Record the line if we
3627 are at an end_sequence marker even if it's not the start of a
3628 statement.
3629 * symmisc.c (maintenance_print_one_line_table): Print end of
3630 sequence markers with 'END' not '0'.
3631
53af73bf
PA
36322020-01-24 Pedro Alves <palves@redhat.com>
3633
3634 PR gdb/25410
3635 * thread.c (scoped_restore_current_thread::restore): Use
3636 switch_to_inferior_no_thread.
3637 * exec.c: Include "progspace-and-thread.h".
3638 (add_target_sections, remove_target_sections):
3639 scoped_restore_current_pspace_and_thread instead of
3640 scoped_restore_current_thread.
3641 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
3642 and aspace to the inferior before calling clone_program_space.
3643 Remove stale comment.
3644
3050c6f4
CB
36452020-01-24 Christian Biesinger <cbiesinger@google.com>
3646
3647 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
3648 (arm_netbsd_nat_target::fetch_registers): ...this.
3649 (arm_nbsd_nat_target::store_registers): Rename to...
3650 (arm_netbsd_nat_target::store_registers): ...this.
3651
73685c7e
CB
36522020-01-24 Christian Biesinger <cbiesinger@google.com>
3653
3654 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
3655 register_t.
3656
89203d40
CB
36572020-01-24 Christian Biesinger <cbiesinger@google.com>
3658
3659 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
3660 Update comment.
3661 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
3662 Likewise.
3663 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
3664 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
3665 the correct replacement (iterate_over_regset_sections).
3666 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
3667 Update comment.
3668
1ba1ac88
AB
36692020-01-24 Graham Markall <graham.markall@embecosm.com>
3670
3671 PR gdb/23718
3672 * gdb/python/python.c (execute_gdb_command): Call
3673 async_enable_stdin in catch block.
3674
f3364a6d
AB
36752020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3676
3677 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
3678 SWITCH_THRU_ALL_UIS.
3679
733d0a67
AB
36802020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3681
3682 PR tui/9765
3683 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
3684 comment, add extra parameter, and update to store previous symbol
3685 when appropriate.
3686 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
3687 add extra parameter.
3688 * tui/tui-disasm.c (tui_disassemble): Update header comment,
3689 remove unneeded parameter, add try/catch around gdb_print_insn,
3690 rewrite to add items to asm_lines vector.
3691 (tui_find_backward_disassembly_start_address): New function.
3692 (tui_find_disassembly_address): Updated throughout.
3693 (tui_disasm_window::set_contents): Update for changes to
3694 tui_disassemble.
3695 (tui_disasm_window::do_scroll_vertical): No need to adjust the
3696 number of lines to scroll.
3697
b3b3bada
SM
36982020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
3699
3700 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
3701 (SECT_OFF_DATA): Likewise.
3702 (SECT_OFF_RODATA): Likewise.
3703 (SECT_OFF_TEXT): Likewise.
3704 (SECT_OFF_BSS): Likewise.
3705 (struct objfile) <text_section_offset, data_section_offset>: New
3706 methods.
3707 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
3708 objfile::text_section_offset.
3709 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
3710 * coffread.c (coff_symtab_read): Likewise.
3711 (enter_linenos): Likewise.
3712 (process_coff_symbol): Likewise.
3713 * ctfread.c (get_objfile_text_range): Likewise.
3714 * dtrace-probe.c (dtrace_probe::get_relocated_address):
3715 Use objfile::data_section_offset.
3716 * dwarf2-frame.c (execute_cfa_program): Use
3717 objfile::text_section_offset.
3718 (dwarf2_frame_find_fde): Likewise.
3719 * dwarf2read.c (create_addrmap_from_index): Likewise.
3720 (create_addrmap_from_aranges): Likewise.
3721 (dw2_find_pc_sect_compunit_symtab): Likewise.
3722 (process_psymtab_comp_unit_reader): Likewise.
3723 (add_partial_symbol): Likewise.
3724 (add_partial_subprogram): Likewise.
3725 (process_full_comp_unit): Likewise.
3726 (read_file_scope): Likewise.
3727 (read_func_scope): Likewise.
3728 (read_lexical_block_scope): Likewise.
3729 (read_call_site_scope): Likewise.
3730 (dwarf2_rnglists_process): Likewise.
3731 (dwarf2_ranges_process): Likewise.
3732 (dwarf2_ranges_read): Likewise.
3733 (dwarf_decode_lines_1): Likewise.
3734 (new_symbol): Likewise.
3735 (dwarf2_fetch_die_loc_sect_off): Likewise.
3736 (dwarf2_per_cu_text_offset): Likewise.
3737 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3738 * hppa-tdep.c (read_unwind_info): Likewise.
3739 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
3740 * psympriv.h (struct partial_symtab): Likewise.
3741 * psymtab.c (find_pc_sect_psymtab): Likewise.
3742 * solib-svr4.c (enable_break): Likewise.
3743 * stap-probe.c (relocate_address): Use
3744 objfile::data_section_offset.
3745 * xcoffread.c (enter_line_range): Use
3746 objfile::text_section_offset.
3747 (read_xcoff_symtab): Likewise.
3748
ab53f382
SM
37492020-01-23 Simon Marchi <simon.marchi@efficios.com>
3750
3751 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
3752 declaration to narrower scopes.
3753
e7eee665
SM
37542020-01-23 Simon Marchi <simon.marchi@efficios.com>
3755
3756 * darwin-nat.h (struct darwin_exception_msg, enum
3757 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
3758 Move up.
3759 (class darwin_nat_target) <wait_1, check_new_threads,
3760 decode_exception_message, decode_message, stop_inferior,
3761 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
3762 * darwin-nat.c (darwin_check_new_threads): Rename to...
3763 (darwin_nat_target::check_new_threads): ... this.
3764 (darwin_suspend_inferior_it): Remove.
3765 (darwin_decode_exception_message): Rename to...
3766 (darwin_nat_target::decode_exception_message): ... this.
3767 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
3768 (darwin_decode_message): Rename to...
3769 (darwin_nat_target::decode_message): ... this.
3770 (cancel_breakpoint): Rename to...
3771 (darwin_nat_target::cancel_breakpoint): ... this.
3772 (darwin_wait): Rename to...
3773 (darwin_nat_target::wait_1): ... this. Use range-based for loop
3774 instead of iterate_over_inferiors.
3775 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
3776 (darwin_stop_inferior): Rename to...
3777 (darwin_nat_target::stop_inferior): ... this.
3778 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
3779 (darwin_init_thread_list): Rename to...
3780 (darwin_nat_target::init_thread_list): ... this.
3781 (darwin_ptrace_him): Rename to...
3782 (darwin_nat_target::ptrace_him): ... this.
3783 (darwin_nat_target::create_inferior): Pass lambda function to
3784 fork_inferior.
3785 (darwin_nat_target::detach): Call stop_inferior instead of
3786 darwin_stop_inferior.
3787 * fork-inferior.h (fork_inferior): Change init_trace_fun
3788 parameter to gdb::function_view.
3789 * fork-inferior.c (fork_inferior): Likewise.
3790
c162ed3e
HD
37912020-01-23 Hannes Domani <ssbssa@yahoo.de>
3792
3793 * i386-cygwin-tdep.c (core_process_module_section): Update.
3794 * windows-nat.c (struct lm_info_windows): Add text_offset.
3795 (windows_xfer_shared_libraries): Update.
3796 * windows-tdep.c (windows_xfer_shared_library):
3797 Add text_offset_cached argument.
3798 * windows-tdep.h (windows_xfer_shared_library): Update.
3799
a1237872
SM
38002020-01-21 Simon Marchi <simon.marchi@efficios.com>
3801
3802 * gdbarch.sh: Add declaration for _initialize_gdbarch.
3803
b3ee6dd9
SM
38042020-01-21 Simon Marchi <simon.marchi@efficios.com>
3805
3806 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
3807 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
3808 replace with range-based for.
3809 (gdbsim_interrupt_inferior): Remove.
3810 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
3811 with a range-based for. Inline code from
3812 gdbsim_interrupt_inferior.
3813
f9fac3c8
SM
38142020-01-21 Simon Marchi <simon.marchi@efficios.com>
3815
3816 * infrun.c (proceed): Fix indentation.
3817
f6474de9
TT
38182020-01-21 Tom Tromey <tromey@adacore.com>
3819
3820 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
3821 * python/python.c (python_extension_ops): Update.
3822 (gdbpy_colorize): New function.
3823 * python/lib/gdb/__init__.py (colorize): New function.
3824 * extension.h (ext_lang_colorize): Declare.
3825 * extension.c (ext_lang_colorize): New function.
3826 * extension-priv.h (struct extension_language_ops) <colorize>: New
3827 member.
3828 * cli/cli-style.c (_initialize_cli_style): Update help text.
3829
f0c702d4
LM
38302020-01-21 Luis Machado <luis.machado@linaro.org>
3831
3832 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
3833 <cond>: Change type to bool.
3834 (aarch64_displaced_step_b_cond): Update cond to use bool type.
3835 (aarch64_displaced_step_cb): Likewise.
3836 (aarch64_displaced_step_tb): Likewise.
3837
1ab139e5
LM
38382020-01-21 Luis Machado <luis.machado@linaro.org>
3839
3840 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
3841 output.
3842
0c271889
LM
38432020-01-21 Luis Machado <luis.machado@linaro.org>
3844
3845 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
3846 <pc_adjust>: Adjust the documentation.
3847 (aarch64_displaced_step_fixup): Check if PC really moved before
3848 adjusting it.
3849
4d89c1c7
TT
38502020-01-19 Tom Tromey <tom@tromey.com>
3851
3852 * disasm.c (~gdb_disassembler): New destructor.
3853 (gdb_buffered_insn_length): Call disassemble_free_target.
3854 * disasm.h (class gdb_disassembler): Declare destructor. Use
3855 DISABLE_COPY_AND_ASSIGN.
3856
c0ab21c2
TT
38572020-01-19 Tom Tromey <tom@tromey.com>
3858
3859 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
3860 (die_reader_func_ftype): Remove.
3861 (cutu_reader): New class.
3862 (dw2_get_file_names_reader): Remove "data" parameter.
3863 (dw2_get_file_names): Use cutu_reader.
3864 (create_debug_type_hash_table): Update.
3865 (read_cutu_die_from_dwo): Update comment.
3866 (lookup_dwo_unit): Add dwo_name parameter.
3867 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
3868 die_reader_func_ftype and data parameters.
3869 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
3870 Remove die_reader_func_ftype and data parameters.
3871 (~cutu_reader): New; from init_cutu_and_read_dies.
3872 (cutu_reader::cutu_reader): Rename from
3873 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
3874 and data parameters.
3875 (init_cutu_and_read_dies_simple): Remove.
3876 (struct process_psymtab_comp_unit_data): Remove.
3877 (process_psymtab_comp_unit_reader): Remove data parameter; add
3878 want_partial_unit and pretend_language parameters.
3879 (process_psymtab_comp_unit): Use cutu_reader.
3880 (build_type_psymtabs_reader): Remove data parameter.
3881 (build_type_psymtabs_1): Use cutu_reader.
3882 (process_skeletonless_type_unit): Likewise.
3883 (load_partial_comp_unit_reader): Remove.
3884 (load_partial_comp_unit): Use cutu_reader.
3885 (load_full_comp_unit_reader): Remove.
3886 (load_full_comp_unit): Use cutu_reader.
3887 (struct create_dwo_cu_data): Remove.
3888 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
3889 dwo_unit parameters.
3890 (create_cus_hash_table): Use cutu_reader.
3891 (struct dwarf2_read_addr_index_data): Remove.
3892 (dwarf2_read_addr_index_reader): Remove.
3893 (dwarf2_read_addr_index): Use cutu_reader.
3894 (read_signatured_type_reader): Remove.
3895 (read_signatured_type): Use cutu_reader.
3896
45bbae5c
TT
38972020-01-19 Tom Tromey <tom@tromey.com>
3898
3899 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
3900 * tui/tui-wingeneral.h (class tui_suppress_output): New.
3901 (tui_wrefresh): Declare.
3902 * tui/tui-wingeneral.c (suppress_output): New global.
3903 (tui_suppress_output, ~tui_suppress_output): New constructor and
3904 destructor.
3905 (tui_wrefresh): New function.
3906 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
3907 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
3908 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
3909 method.
3910 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
3911 tui_wrefresh.
3912 (tui_data_window::no_refresh): New method.
3913 (tui_data_item_window::refresh_window): Call tui_wrefresh.
3914 (tui_reg_command): Use tui_suppress_output
3915 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
3916 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
3917 method.
3918 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
3919
4f13c1c0
TT
39202020-01-19 Tom Tromey <tom@tromey.com>
3921
3922 * tui/tui-winsource.c (tui_update_source_windows_with_line):
3923 Handle case where symtab is null.
3924
fa47e446
SM
39252020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
3926
3927 * linux-fork.c (one_fork_p): Simplify.
3928
26f42329
SM
39292020-01-17 Simon Marchi <simon.marchi@efficios.com>
3930
3931 * top.c (struct qt_args): Remove.
3932 (kill_or_detach): Change return type to void, replace `void *`
3933 parameter with a proper one.
3934 (print_inferior_quit_action): Likewise.
3935 (quit_confirm): Use range-based for loop to iterate over inferiors.
3936 (quit_force): Likewise.
3937
a9ac81b1
SM
39382020-01-17 Simon Marchi <simon.marchi@efficios.com>
3939
3940 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
3941 `void *` parameter with proper parameters.
3942 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
3943 (print_one_inferior): Change return type to void, replace `void *`
3944 parameter with proper parameters.
3945 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
3946 inferiors.
3947 (get_other_inferior): Remove.
3948 (mi_cmd_remove_inferior): Use range-based loop to iterate over
3949 inferiors.
3950
788eca49
SM
39512020-01-17 Simon Marchi <simon.marchi@efficios.com>
3952
3953 * mi/mi-interp.c (report_initial_inferior): Remove.
3954 (mi_interp::init): Use range-based for to iterate over inferiors.
3955
d9bc85b6
SM
39562020-01-17 Simon Marchi <simon.marchi@efficios.com>
3957
3958 * python/py-inferior.c (build_inferior_list): Remove.
3959 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
3960
40c94099
CB
39612020-01-16 Christian Biesinger <cbiesinger@google.com>
3962
3963 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
3964 (btrace_stitch_trace): Likewise.
3965 * charset.c (intermediate_encoding): Likewise (vaild).
3966 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
3967 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
3968 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
3969
e0cdfe3c
HD
39702020-01-16 Hannes Domani <ssbssa@yahoo.de>
3971
3972 * windows-tdep.c (windows_get_tlb_type):
3973 Add rtl_user_process_parameters type.
3974
790f1718
PA
39752020-01-16 Pedro Alves <palves@redhat.com>
3976 Norbert Lange <nolange79@gmail.com>
3977
3978 PR build/24805
3979 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
3980 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
3981 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
3982 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
3983 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
3984 (ps_plog): Redeclare exported functions with default visibility.
3985
3112ed97
NA
39862020-01-16 Nitika Achra <Nitika.Achra@amd.com>
3987
3988 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
3989 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
3990
8dc3273e
SM
39912020-01-15 Simon Marchi <simon.marchi@efficios.com>
3992
3993 * infcmd.c (post_create_inferior): Use get_thread_regcache
3994 instead of get_current_regcache.
3995
ff47f4f0
TT
39962020-01-14 Tom Tromey <tom@tromey.com>
3997
3998 PR symtab/12535:
3999 * python/python.c (gdbpy_decode_line): Treat empty string the same
4000 as no argument.
4001
975f45b7
TT
40022020-01-14 Tom Tromey <tom@tromey.com>
4003
4004 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
4005
25e57356
TT
40062020-01-14 Tom Tromey <tom@tromey.com>
4007
4008 * nat/linux-btrace.c: Don't include <config.h>.
4009 * nat/linux-ptrace.c: Don't include <config.h>.
4010 * nat/x86-linux-dregs.c: Don't include <config.h>.
4011
05ea2a05
TT
40122020-01-14 Tom Tromey <tom@tromey.com>
4013
4014 * configure: Rebuild.
4015 * configure.ac: Move many checks to ../gdbsupport/common.m4.
4016
01027315
TT
40172020-01-14 Tom Tromey <tom@tromey.com>
4018
4019 * nat/x86-linux-dregs.c: Include configh.h.
4020 * nat/linux-ptrace.c: Include configh.h.
4021 * nat/linux-btrace.c: Include configh.h.
4022 * defs.h: Include config.h, bfd.h.
4023 * configure.ac: Don't source common.host.
4024 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
4025 * configure: Rebuild.
4026 * acinclude.m4: Update path.
4027 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
4028 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
4029 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
4030 (CLIBS): Add LIBSUPPORT.
4031 (CDEPS): Likewise.
4032 (COMMON_SFILES): Remove gdbsupport files.
4033 (HFILES_NO_SRCDIR): Likewise.
4034 (stamp-version): Update path to create-version.sh.
4035 (ALLDEPFILES): Remove gdbsupport files.
4036
b2ceabe8
TT
40372020-01-14 Tom Tromey <tom@tromey.com>
4038
4039 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
4040 USE_WIN32API when needed.
4041 * configure.ac (USE_WIN32API): Don't define.
4042 (WIN32LIBS): Use WIN32APILIBS.
4043 * configure: Rebuild.
4044
25c51f71
TT
40452020-01-14 Tom Tromey <tom@tromey.com>
4046
4047 * configure: Rebuild.
4048 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
4049
717c684d
BE
40502020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
4051
4052 * skip.c (skip_function_command): Make skip w/o arguments use the
4053 name of the inlined function if pc is inside any inlined function.
4054
7da6a5b9
LM
40552020-01-14 Luis Machado <luis.machado@linaro.org>
4056
4057 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
4058 * infrun.c (resume_1): Likewise.
4059 (handle_inferior_event): Remove stale comment.
4060 * linux-nat.c (linux_nat_target::resume): Update comments.
4061 (save_stop_reason): Likewise.
4062 (linux_nat_filter_event): Likewise.
4063 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
4064
44e4c775
AB
40652020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
4066
4067 * elfread.c (record_minimal_symbol): Set section index to 0 for
4068 non-allocatable sections.
4069
18a8505e
AT
4070
40712020-01-13 Ali Tamur <tamur@google.com>
4072
4073 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
4074 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
4075 to gdb::optional. Update comments.
4076 (dwo_file): Update comments.
4077 (read_attribute): Update API to take an additional out parameter,
4078 need_reprocess. This is used to mark attributes that need other
4079 attributes (e.g. str_offsets_base) for correct computation which may not
4080 have been read yet.
4081 (read_attribute_reprocess): New function declaration.
4082 (read_addr_index): Likewise.
4083 (read_dwo_str_index): Likewise.
4084 (read_stub_str_index): Likewise.
4085 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
4086 (lookup_addr_base): New function definition.
4087 (lookup_ranges_base): Likewise.
4088 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
4089 lookup_ranges_base.
4090 (init_cutu_and_read_dies): Update comments.
4091 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
4092 unit. This is used to inherit parent's str_offsets_base and addr_base.
4093 Update comments.
4094 (init_cutu_and_read_dies_simple): Reflect API changes.
4095 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
4096 (create_cus_hash_table): Change API to take parent compile unit.
4097 Reflect API changes.
4098 (open_and_init_dwo_file): Reflect API changes.
4099 (dwarf2_get_pc_bounds): Update comments.
4100 (dwarf2_record_block_ranges): Likewise.
4101 (read_full_die_1): Change implementation to reprocess attributes that
4102 need str_offsets_base and addr_base.
4103 (partial_die_info::read): Likewise.
4104 (read_attribute_reprocess): New function definition.
4105 (read_attribute_value): Change API to take an additional out parameter,
4106 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
4107 when a non-dwo compile unit has index based attributes.
4108 (read_attribute): Reflect API changes.
4109 (read_addr_index_1): Reflect API changes. Update comments.
4110 (dwarf2_read_addr_index_data): Reflect API changes.
4111 (dwarf2_read_addr_index): Likewise.
4112 (read_str_index): Change API and implementation. This becomes a helper
4113 to be used by the new string index related methods. Update error
4114 message and comments.
4115 (read_dwo_str_index): New function definition.
4116 (read_stub_str_index): Likewise.
4117 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
4118 * symfile.h (dwarf2_debug_sections): Likewise.
4119 * xcoffread.c (dwarf2_debug_sections): Likewise.
4120
0cac9354
SM
41212020-01-13 Simon Marchi <simon.marchi@efficios.com>
4122
4123 * gdbcore.h (struct core_fns) <core_read_registers>: Change
4124 core_reg_sect type to gdb_byte *.
4125 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
4126 * cris-tdep.c (fetch_core_registers): Likewise.
4127 * corelow.c (core_target::get_core_register_section): Change
4128 type of `contents` to gdb::byte_vector.
4129
9a6d629c
AB
41302020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
4131
4132 * tui/tui-wingeneral.c (box_win): Position the title in the center
4133 of the border.
4134
d8b2f9e3
SM
41352020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4136
4137 * corelow.c (core_target::get_core_register_section): Use
4138 std::vector instead of alloca.
4139
bb564c58
SM
41402020-01-13 Simon Marchi <simon.marchi@efficios.com>
4141
4142 * warning.m4: Add -Wmissing-declarations to build_warnings.
4143 * configure: Re-generate.
4144
6b366111
SM
41452020-01-13 Simon Marchi <simon.marchi@efficios.com>
4146
4147 * python/python.c (init__gdb_module): Add declaration.
4148
6c265988
SM
41492020-01-13 Simon Marchi <simon.marchi@efficios.com>
4150
4151 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
4152 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
4153 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
4154 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
4155 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
4156 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
4157 * ada-exp.y (_initialize_ada_exp): Add declaration.
4158 * ada-lang.c (_initialize_ada_language): Add declaration.
4159 * ada-tasks.c (_initialize_tasks): Add declaration.
4160 * agent.c (_initialize_agent): Add declaration.
4161 * aix-thread.c (_initialize_aix_thread): Add declaration.
4162 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
4163 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
4164 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
4165 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
4166 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
4167 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4168 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
4169 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
4170 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
4171 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
4172 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
4173 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
4174 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
4175 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
4176 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
4177 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
4178 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
4179 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
4180 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
4181 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
4182 * annotate.c (_initialize_annotate): Add declaration.
4183 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
4184 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
4185 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
4186 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
4187 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
4188 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
4189 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
4190 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
4191 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
4192 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
4193 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
4194 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
4195 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4196 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
4197 * auto-load.c (_initialize_auto_load): Add declaration.
4198 * auxv.c (_initialize_auxv): Add declaration.
4199 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
4200 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
4201 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
4202 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
4203 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
4204 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
4205 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
4206 * breakpoint.c (_initialize_breakpoint): Add declaration.
4207 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
4208 * btrace.c (_initialize_btrace): Add declaration.
4209 * charset.c (_initialize_charset): Add declaration.
4210 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
4211 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4212 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4213 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
4214 * cli/cli-script.c (_initialize_cli_script): Add declaration.
4215 * cli/cli-style.c (_initialize_cli_style): Add declaration.
4216 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
4217 * coffread.c (_initialize_coffread): Add declaration.
4218 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
4219 * compile/compile.c (_initialize_compile): Add declaration.
4220 * complaints.c (_initialize_complaints): Add declaration.
4221 * completer.c (_initialize_completer): Add declaration.
4222 * copying.c (_initialize_copying): Add declaration.
4223 * corefile.c (_initialize_core): Add declaration.
4224 * corelow.c (_initialize_corelow): Add declaration.
4225 * cp-abi.c (_initialize_cp_abi): Add declaration.
4226 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
4227 * cp-support.c (_initialize_cp_support): Add declaration.
4228 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
4229 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
4230 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
4231 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
4232 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
4233 * ctfread.c (_initialize_ctfread): Add declaration.
4234 * d-lang.c (_initialize_d_language): Add declaration.
4235 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
4236 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
4237 * dbxread.c (_initialize_dbxread): Add declaration.
4238 * dcache.c (_initialize_dcache): Add declaration.
4239 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
4240 * disasm.c (_initialize_disasm): Add declaration.
4241 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
4242 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
4243 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
4244 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
4245 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
4246 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
4247 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
4248 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
4249 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
4250 * elfread.c (_initialize_elfread): Add declaration.
4251 * exec.c (_initialize_exec): Add declaration.
4252 * extension.c (_initialize_extension): Add declaration.
4253 * f-lang.c (_initialize_f_language): Add declaration.
4254 * f-valprint.c (_initialize_f_valprint): Add declaration.
4255 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
4256 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
4257 * filesystem.c (_initialize_filesystem): Add declaration.
4258 * findcmd.c (_initialize_mem_search): Add declaration.
4259 * findvar.c (_initialize_findvar): Add declaration.
4260 * fork-child.c (_initialize_fork_child): Add declaration.
4261 * frame-base.c (_initialize_frame_base): Add declaration.
4262 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4263 * frame.c (_initialize_frame): Add declaration.
4264 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
4265 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
4266 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
4267 * gcore.c (_initialize_gcore): Add declaration.
4268 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
4269 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
4270 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
4271 * gdbarch.c (_initialize_gdbarch): Add declaration.
4272 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
4273 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
4274 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
4275 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
4276 * go-lang.c (_initialize_go_language): Add declaration.
4277 * go32-nat.c (_initialize_go32_nat): Add declaration.
4278 * guile/guile.c (_initialize_guile): Add declaration.
4279 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4280 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
4281 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
4282 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
4283 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
4284 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
4285 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
4286 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
4287 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
4288 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
4289 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
4290 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
4291 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
4292 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
4293 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
4294 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
4295 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
4296 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
4297 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
4298 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
4299 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
4300 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
4301 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
4302 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
4303 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
4304 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
4305 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
4306 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
4307 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
4308 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
4309 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
4310 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
4311 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
4312 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
4313 * infcall.c (_initialize_infcall): Add declaration.
4314 * infcmd.c (_initialize_infcmd): Add declaration.
4315 * inflow.c (_initialize_inflow): Add declaration.
4316 * infrun.c (_initialize_infrun): Add declaration.
4317 * interps.c (_initialize_interpreter): Add declaration.
4318 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
4319 * jit.c (_initialize_jit): Add declaration.
4320 * language.c (_initialize_language): Add declaration.
4321 * linux-fork.c (_initialize_linux_fork): Add declaration.
4322 * linux-nat.c (_initialize_linux_nat): Add declaration.
4323 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
4324 * linux-thread-db.c (_initialize_thread_db): Add declaration.
4325 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
4326 * m2-lang.c (_initialize_m2_language): Add declaration.
4327 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
4328 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
4329 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
4330 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
4331 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4332 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
4333 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
4334 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
4335 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
4336 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4337 * machoread.c (_initialize_machoread): Add declaration.
4338 * macrocmd.c (_initialize_macrocmd): Add declaration.
4339 * macroscope.c (_initialize_macroscope): Add declaration.
4340 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
4341 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
4342 * maint.c (_initialize_maint_cmds): Add declaration.
4343 * mdebugread.c (_initialize_mdebugread): Add declaration.
4344 * memattr.c (_initialize_mem): Add declaration.
4345 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
4346 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
4347 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
4348 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
4349 * mi/mi-main.c (_initialize_mi_main): Add declaration.
4350 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
4351 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
4352 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
4353 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
4354 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
4355 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
4356 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
4357 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
4358 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
4359 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4360 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
4361 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
4362 * mipsread.c (_initialize_mipsread): Add declaration.
4363 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
4364 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
4365 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
4366 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
4367 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
4368 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
4369 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
4370 * nto-procfs.c (_initialize_procfs): Add declaration.
4371 * objc-lang.c (_initialize_objc_language): Add declaration.
4372 * observable.c (_initialize_observer): Add declaration.
4373 * opencl-lang.c (_initialize_opencl_language): Add declaration.
4374 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
4375 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
4376 * osabi.c (_initialize_gdb_osabi): Add declaration.
4377 * osdata.c (_initialize_osdata): Add declaration.
4378 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4379 * parse.c (_initialize_parse): Add declaration.
4380 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
4381 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
4382 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
4383 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
4384 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
4385 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
4386 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
4387 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
4388 * printcmd.c (_initialize_printcmd): Add declaration.
4389 * probe.c (_initialize_probe): Add declaration.
4390 * proc-api.c (_initialize_proc_api): Add declaration.
4391 * proc-events.c (_initialize_proc_events): Add declaration.
4392 * proc-service.c (_initialize_proc_service): Add declaration.
4393 * procfs.c (_initialize_procfs): Add declaration.
4394 * producer.c (_initialize_producer): Add declaration.
4395 * psymtab.c (_initialize_psymtab): Add declaration.
4396 * python/python.c (_initialize_python): Add declaration.
4397 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
4398 * record-btrace.c (_initialize_record_btrace): Add declaration.
4399 * record-full.c (_initialize_record_full): Add declaration.
4400 * record.c (_initialize_record): Add declaration.
4401 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
4402 * regcache.c (_initialize_regcache): Add declaration.
4403 * reggroups.c (_initialize_reggroup): Add declaration.
4404 * remote-notif.c (_initialize_notif): Add declaration.
4405 * remote-sim.c (_initialize_remote_sim): Add declaration.
4406 * remote.c (_initialize_remote): Add declaration.
4407 * reverse.c (_initialize_reverse): Add declaration.
4408 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
4409 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
4410 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
4411 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
4412 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
4413 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
4414 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
4415 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
4416 Add declaration.
4417 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
4418 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
4419 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
4420 * rust-exp.y (_initialize_rust_exp): Add declaration.
4421 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
4422 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
4423 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
4424 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
4425 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
4426 * score-tdep.c (_initialize_score_tdep): Add declaration.
4427 * ser-go32.c (_initialize_ser_dos): Add declaration.
4428 * ser-mingw.c (_initialize_ser_windows): Add declaration.
4429 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
4430 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
4431 * ser-uds.c (_initialize_ser_socket): Add declaration.
4432 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
4433 * serial.c (_initialize_serial): Add declaration.
4434 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
4435 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
4436 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
4437 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
4438 * skip.c (_initialize_step_skip): Add declaration.
4439 * sol-thread.c (_initialize_sol_thread): Add declaration.
4440 * solib-aix.c (_initialize_solib_aix): Add declaration.
4441 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
4442 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
4443 * solib-frv.c (_initialize_frv_solib): Add declaration.
4444 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4445 * solib-target.c (_initialize_solib_target): Add declaration.
4446 * solib.c (_initialize_solib): Add declaration.
4447 * source-cache.c (_initialize_source_cache): Add declaration.
4448 * source.c (_initialize_source): Add declaration.
4449 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
4450 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
4451 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
4452 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
4453 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
4454 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
4455 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
4456 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
4457 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
4458 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
4459 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
4460 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
4461 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
4462 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
4463 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
4464 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
4465 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
4466 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
4467 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
4468 * stabsread.c (_initialize_stabsread): Add declaration.
4469 * stack.c (_initialize_stack): Add declaration.
4470 * stap-probe.c (_initialize_stap_probe): Add declaration.
4471 * std-regs.c (_initialize_frame_reg): Add declaration.
4472 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
4473 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
4474 * symfile.c (_initialize_symfile): Add declaration.
4475 * symmisc.c (_initialize_symmisc): Add declaration.
4476 * symtab.c (_initialize_symtab): Add declaration.
4477 * target.c (_initialize_target): Add declaration.
4478 * target-connection.c (_initialize_target_connection): Add
4479 declaration.
4480 * target-dcache.c (_initialize_target_dcache): Add declaration.
4481 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
4482 * thread.c (_initialize_thread): Add declaration.
4483 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
4484 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
4485 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
4486 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
4487 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
4488 * tracectf.c (_initialize_ctf): Add declaration.
4489 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
4490 * tracefile.c (_initialize_tracefile): Add declaration.
4491 * tracepoint.c (_initialize_tracepoint): Add declaration.
4492 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
4493 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
4494 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
4495 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
4496 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
4497 * tui/tui-win.c (_initialize_tui_win): Add declaration.
4498 * tui/tui.c (_initialize_tui): Add declaration.
4499 * typeprint.c (_initialize_typeprint): Add declaration.
4500 * ui-style.c (_initialize_ui_style): Add declaration.
4501 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
4502 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
4503 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
4504 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
4505 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
4506 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
4507 * unittests/filtered_iterator-selftests.c
4508 (_initialize_filtered_iterator_selftests): Add declaration.
4509 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
4510 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
4511 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
4512 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
4513 * unittests/main-thread-selftests.c
4514 (_initialize_main_thread_selftests): Add declaration.
4515 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
4516 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
4517 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
4518 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
4519 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
4520 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
4521 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
4522 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
4523 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
4524 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
4525 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
4526 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
4527 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
4528 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
4529 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
4530 declaration.
4531 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
4532 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
4533 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
4534 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
4535 * user-regs.c (_initialize_user_regs): Add declaration.
4536 * utils.c (_initialize_utils): Add declaration.
4537 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
4538 * valops.c (_initialize_valops): Add declaration.
4539 * valprint.c (_initialize_valprint): Add declaration.
4540 * value.c (_initialize_values): Add declaration.
4541 * varobj.c (_initialize_varobj): Add declaration.
4542 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
4543 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
4544 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4545 * windows-nat.c (_initialize_windows_nat): Add declaration.
4546 (_initialize_check_for_gdb_ini): Add declaration.
4547 (_initialize_loadable): Add declaration.
4548 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
4549 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
4550 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
4551 * xcoffread.c (_initialize_xcoffread): Add declaration.
4552 * xml-support.c (_initialize_xml_support): Add declaration.
4553 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
4554 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
4555 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
4556 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
4557
e2de1eec
SM
45582020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4559
4560 * regformats/regdat.sh: Generate declaration for init function.
4561
e0037b4c
SM
45622020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4563
4564 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
4565 up.
4566 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
4567 close_one_inferior>: New methods.
4568 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
4569 pass down target to find_inferior_pid.
4570 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
4571 Pass down target to find_inferior_ptid.
4572 (gdbsim_target::create_inferior): Pass down target to
4573 add_thread_silent.
4574 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
4575 target down to find_inferior_ptid and switch_to_thread.
4576 (gdbsim_target::close): Update to call close_one_inferior.
4577 (struct resume_data): Remove.
4578 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
4579 directly, rather than through a void pointer.
4580 (gdbsim_target::resume): Update to call resume_one_inferior.
4581
58920b5b
SM
45822020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4583
4584 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
4585
4ec89149
PA
45862020-01-12 Pedro Alves <palves@redhat.com>
4587
4588 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
4589 directly for the current inferior instead of
4590 discard_all_inferiors.
4591 (discard_all_inferiors): Delete.
4592
7c392d1d
TT
45932020-01-11 Tom Tromey <tom@tromey.com>
4594
4595 * tui/tui-wingeneral.c (box_win): Check cli_styling.
4596 * tui/tui-winsource.c (tui_source_window_base::refill): Use
4597 deprecated_safe_get_selected_frame.
4598
d9ebdab7
TBA
45992020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4600
4601 * inferior.c (print_inferior): Switch inferior before printing it.
4602
f3c469b9
PA
46032020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
4604 Pedro Alves <palves@redhat.com>
4605
4606 * progspace-and-thread.c (switch_to_program_space_and_thread):
4607 Assert there's an inferior for PSPACE. Use
4608 switch_to_inferior_no_thread to switch the inferior too.
4609 * progspace.c (program_space::~program_space): Call
4610 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
4611 (program_space::free_all_objfiles): Don't call clear_symtab_users
4612 here.
4613 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
4614
65c574f6
PA
46152020-01-10 Pedro Alves <palves@redhat.com>
4616
4617 * NEWS: Mention multi-target debugging, "info connections", and
4618 "add-inferior -no-connection".
4619
2f4fcf00
PA
46202020-01-10 Pedro Alves <palves@redhat.com>
4621
4622 * infrun.c: Include "target-connection.h".
4623 (check_multi_target_resumption): New.
4624 (proceed): Call it.
4625 * target-connection.c (make_target_connection_string): Make
4626 extern.
4627 * target-connection.h (make_target_connection_string): Declare.
4628
121b3efd
PA
46292020-01-10 Pedro Alves <palves@redhat.com>
4630
4631 * Makefile.in (COMMON_SFILES): Add target-connection.c.
4632 * inferior.c (uiout_field_connection): New function.
4633 (print_inferior): Add new "connection-id" column.
4634 (add_inferior_command): Show connection number/string of added
4635 inferior.
4636 * process-stratum-target.h
4637 (process_stratum_target::connection_string): New virtual method.
4638 (process_stratum_target::connection_number): New field.
4639 * remote.c (remote_target::connection_string): New override.
4640 * target-connection.c: New file.
4641 * target-connection.h: New file.
4642 * target.c (decref_target): Remove process_stratum targets from
4643 the connection list.
4644 (target_stack::push): Add process_stratum targets to the
4645 connection list.
4646
4f837581
PA
46472020-01-10 Pedro Alves <palves@redhat.com>
4648
4649 Revert:
4650 2016-04-12 Pedro Alves <palves@redhat.com>
4651 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
4652 Remove references to name.
4653 * serial.h (struct serial) <name>: Delete.
4654
f4ec508e
PA
46552020-01-10 Pedro Alves <palves@redhat.com>
4656
4657 * gdbarch-selftests.c (register_to_value_test): Remove "target
4658 already pushed" check.
4659
5b6d1e4f
PA
46602020-01-10 Pedro Alves <palves@redhat.com>
4661 John Baldwin <jhb@FreeBSD.org>
4662
4663 * aarch64-linux-nat.c
4664 (aarch64_linux_nat_target::thread_architecture): Adjust.
4665 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
4666 (task_command_1): Likewise.
4667 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
4668 (aix_thread_target::wait, aix_thread_target::fetch_registers)
4669 (aix_thread_target::store_registers)
4670 (aix_thread_target::thread_alive): Adjust.
4671 * amd64-fbsd-tdep.c: Include "inferior.h".
4672 (amd64fbsd_get_thread_local_address): Pass down target.
4673 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
4674 thread's gdbarch instead of target_gdbarch.
4675 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
4676 get_last_target_status.
4677 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
4678 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
4679 inferiors.
4680 (update_inserted_breakpoint_locations): Skip if inferiors with no
4681 execution.
4682 (update_global_location_list): When handling moribund locations,
4683 find representative inferior for location's pspace, and use thread
4684 count of its process_stratum target.
4685 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
4686 * bsd-uthread.c (bsd_uthread_target::wait): Use
4687 as_process_stratum_target and adjust thread_change_ptid and
4688 add_thread calls.
4689 (bsd_uthread_target::update_thread_list): Use
4690 as_process_stratum_target and adjust find_thread_ptid,
4691 thread_change_ptid and add_thread calls.
4692 * btrace.c (maint_btrace_packet_history_cmd): Adjust
4693 find_thread_ptid call.
4694 * corelow.c (add_to_thread_list): Adjust add_thread call.
4695 (core_target_open): Adjust add_thread_silent and thread_count
4696 calls.
4697 (core_target::pid_to_str): Adjust find_inferior_ptid call.
4698 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
4699 * event-top.c (async_disconnect): Pop targets from all inferiors.
4700 * exec.c (add_target_sections): Push exec target on all inferiors
4701 sharing the program space.
4702 (remove_target_sections): Remove the exec target from all
4703 inferiors sharing the program space.
4704 (exec_on_vfork): New.
4705 * exec.h (exec_on_vfork): Declare.
4706 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
4707 Pass it down.
4708 (fbsd_nat_target::update_thread_list): Adjust.
4709 (fbsd_nat_target::resume): Adjust.
4710 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
4711 down.
4712 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
4713 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
4714 get_thread_arch_regcache call.
4715 * fork-child.c (gdb_startup_inferior): Pass target down to
4716 startup_inferior and set_executing.
4717 * gdbthread.h (struct process_stratum_target): Forward declare.
4718 (add_thread, add_thread_silent, add_thread_with_info)
4719 (in_thread_list): Add process_stratum_target parameter.
4720 (find_thread_ptid(inferior*, ptid_t)): New overload.
4721 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
4722 parameter.
4723 (all_threads()): Delete overload.
4724 (all_threads, all_non_exited_threads): Add process_stratum_target
4725 parameter.
4726 (all_threads_safe): Use brace initialization.
4727 (thread_count): Add process_stratum_target parameter.
4728 (set_resumed, set_running, set_stop_requested, set_executing)
4729 (threads_are_executing, finish_thread_state): Add
4730 process_stratum_target parameter.
4731 (switch_to_thread): Use is_current_thread.
4732 * i386-fbsd-tdep.c: Include "inferior.h".
4733 (i386fbsd_get_thread_local_address): Pass down target.
4734 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
4735 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
4736 have_inferiors check.
4737 * inf-ptrace.c (inf_ptrace_target::create_inferior)
4738 (inf_ptrace_target::attach): Adjust.
4739 * infcall.c (run_inferior_call): Adjust.
4740 * infcmd.c (run_command_1): Pass target to
4741 scoped_finish_thread_state.
4742 (proceed_thread_callback): Skip inferiors with no execution.
4743 (continue_command): Rename 'all_threads' local to avoid hiding
4744 'all_threads' function. Adjust get_last_target_status call.
4745 (prepare_one_step): Adjust set_running call.
4746 (signal_command): Use user_visible_resume_target. Compare thread
4747 pointers instead of inferior_ptid.
4748 (info_program_command): Adjust to pass down target.
4749 (attach_command): Mark target's 'thread_executing' flag.
4750 (stop_current_target_threads_ns): New, factored out from ...
4751 (interrupt_target_1): ... this. Switch inferior before making
4752 target calls.
4753 * inferior-iter.h
4754 (struct all_inferiors_iterator, struct all_inferiors_range)
4755 (struct all_inferiors_safe_range)
4756 (struct all_non_exited_inferiors_range): Filter on
4757 process_stratum_target too. Remove explicit.
4758 * inferior.c (inferior::inferior): Push dummy target on target
4759 stack.
4760 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
4761 Add process_stratum_target parameter, and pass it down.
4762 (have_live_inferiors): Adjust.
4763 (switch_to_inferior_and_push_target): New.
4764 (add_inferior_command, clone_inferior_command): Handle
4765 "-no-connection" parameter. Use
4766 switch_to_inferior_and_push_target.
4767 (_initialize_inferior): Mention "-no-connection" option in
4768 the help of "add-inferior" and "clone-inferior" commands.
4769 * inferior.h: Include "process-stratum-target.h".
4770 (interrupt_target_1): Use bool.
4771 (struct inferior) <push_target, unpush_target, target_is_pushed,
4772 find_target_beneath, top_target, process_target, target_at,
4773 m_stack>: New.
4774 (discard_all_inferiors): Delete.
4775 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
4776 (all_inferiors, all_non_exited_inferiors): Add
4777 process_stratum_target parameter.
4778 * infrun.c: Include "gdb_select.h" and <unordered_map>.
4779 (target_last_proc_target): New global.
4780 (follow_fork_inferior): Push target on new inferior. Pass target
4781 to add_thread_silent. Call exec_on_vfork. Handle target's
4782 reference count.
4783 (follow_fork): Adjust get_last_target_status call. Also consider
4784 target.
4785 (follow_exec): Push target on new inferior.
4786 (struct execution_control_state) <target>: New field.
4787 (user_visible_resume_target): New.
4788 (do_target_resume): Call target_async.
4789 (resume_1): Set target's threads_executing flag. Consider resume
4790 target.
4791 (commit_resume_all_targets): New.
4792 (proceed): Also consider resume target. Skip threads of inferiors
4793 with no execution. Commit resumtion in all targets.
4794 (start_remote): Pass current inferior to wait_for_inferior.
4795 (infrun_thread_stop_requested): Consider target as well. Pass
4796 thread_info pointer to clear_inline_frame_state instead of ptid.
4797 (infrun_thread_thread_exit): Consider target as well.
4798 (random_pending_event_thread): New inferior parameter. Use it.
4799 (do_target_wait): Rename to ...
4800 (do_target_wait_1): ... this. Add inferior parameter, and pass it
4801 down.
4802 (threads_are_resumed_pending_p, do_target_wait): New.
4803 (prepare_for_detach): Adjust calls.
4804 (wait_for_inferior): New inferior parameter. Handle it. Use
4805 do_target_wait_1 instead of do_target_wait.
4806 (fetch_inferior_event): Adjust. Switch to representative
4807 inferior. Pass target down.
4808 (set_last_target_status): Add process_stratum_target parameter.
4809 Save target in global.
4810 (get_last_target_status): Add process_stratum_target parameter and
4811 handle it.
4812 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
4813 (context_switch): Check inferior_ptid == null_ptid before calling
4814 inferior_thread().
4815 (get_inferior_stop_soon): Pass down target.
4816 (wait_one): Rename to ...
4817 (poll_one_curr_target): ... this.
4818 (struct wait_one_event): New.
4819 (wait_one): New.
4820 (stop_all_threads): Adjust.
4821 (handle_no_resumed, handle_inferior_event): Adjust to consider the
4822 event's target.
4823 (switch_back_to_stepped_thread): Also consider target.
4824 (print_stop_event): Update.
4825 (normal_stop): Update. Also consider the resume target.
4826 * infrun.h (wait_for_inferior): Remove declaration.
4827 (user_visible_resume_target): New declaration.
4828 (get_last_target_status, set_last_target_status): New
4829 process_stratum_target parameter.
4830 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
4831 process_stratum_target parameter, and use it.
4832 (clear_inline_frame_state (thread_info*)): New.
4833 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
4834 process_stratum_target parameter.
4835 (clear_inline_frame_state (thread_info*)): Declare.
4836 * linux-fork.c (delete_checkpoint_command): Pass target down to
4837 find_thread_ptid.
4838 (checkpoint_command): Adjust.
4839 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
4840 instead of just tweaking inferior_ptid.
4841 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
4842 (exit_lwp): Pass target down to find_thread_ptid.
4843 (attach_proc_task_lwp_callback): Pass target down to
4844 add_thread/set_running/set_executing.
4845 (linux_nat_target::attach): Pass target down to
4846 thread_change_ptid.
4847 (get_detach_signal): Pass target down to find_thread_ptid.
4848 Consider last target status's target.
4849 (linux_resume_one_lwp_throw, resume_lwp)
4850 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
4851 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
4852 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
4853 (linux_nat_target::async_wait_fd): New.
4854 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
4855 target down.
4856 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
4857 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
4858 * linux-thread-db.c (struct thread_db_info::process_target): New
4859 field.
4860 (add_thread_db_info): Save target.
4861 (get_thread_db_info): New process_stratum_target parameter. Also
4862 match target.
4863 (delete_thread_db_info): New process_stratum_target parameter.
4864 Also match target.
4865 (thread_from_lwp): Adjust to pass down target.
4866 (thread_db_notice_clone): Pass down target.
4867 (check_thread_db_callback): Pass down target.
4868 (try_thread_db_load_1): Always push the thread_db target.
4869 (try_thread_db_load, record_thread): Pass target down.
4870 (thread_db_target::detach): Pass target down. Always unpush the
4871 thread_db target.
4872 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
4873 target down. Always unpush the thread_db target.
4874 (find_new_threads_callback, thread_db_find_new_threads_2)
4875 (thread_db_target::update_thread_list): Pass target down.
4876 (thread_db_target::pid_to_str): Pass current inferior down.
4877 (thread_db_target::get_thread_local_address): Pass target down.
4878 (thread_db_target::resume, maintenance_check_libthread_db): Pass
4879 target down.
4880 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
4881 * procfs.c (procfs_target::procfs_init_inferior): Declare.
4882 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
4883 (procfs_init_inferior): Rename to ...
4884 (procfs_target::procfs_init_inferior): ... this and adjust.
4885 (procfs_target::create_inferior, procfs_notice_thread)
4886 (procfs_do_thread_registers): Adjust.
4887 * ppc-fbsd-tdep.c: Include "inferior.h".
4888 (ppcfbsd_get_thread_local_address): Pass down target.
4889 * proc-service.c (ps_xfer_memory): Switch current inferior and
4890 program space as well.
4891 (get_ps_regcache): Pass target down.
4892 * process-stratum-target.c
4893 (process_stratum_target::thread_address_space)
4894 (process_stratum_target::thread_architecture): Pass target down.
4895 * process-stratum-target.h
4896 (process_stratum_target::threads_executing): New field.
4897 (as_process_stratum_target): New.
4898 * ravenscar-thread.c
4899 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
4900 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
4901 down.
4902 * record-btrace.c (record_btrace_target::info_record): Adjust.
4903 (record_btrace_target::record_method)
4904 (record_btrace_target::record_is_replaying)
4905 (record_btrace_target::fetch_registers)
4906 (get_thread_current_frame_id, record_btrace_target::resume)
4907 (record_btrace_target::wait, record_btrace_target::stop): Pass
4908 target down.
4909 * record-full.c (record_full_wait_1): Switch to event thread.
4910 Pass target down.
4911 * regcache.c (regcache::regcache)
4912 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
4913 process_stratum_target parameter and handle it.
4914 (current_thread_target): New global.
4915 (get_thread_regcache): Add process_stratum_target parameter and
4916 handle it. Switch inferior before calling target method.
4917 (get_thread_regcache): Pass target down.
4918 (get_thread_regcache_for_ptid): Pass target down.
4919 (registers_changed_ptid): Add process_stratum_target parameter and
4920 handle it.
4921 (registers_changed_thread, registers_changed): Pass target down.
4922 (test_get_thread_arch_aspace_regcache): New.
4923 (current_regcache_test): Define a couple local test_target_ops
4924 instances and use them for testing.
4925 (readwrite_regcache): Pass process_stratum_target parameter.
4926 (cooked_read_test, cooked_write_test): Pass mock_target down.
4927 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
4928 (get_thread_arch_aspace_regcache): Add process_stratum_target
4929 parameter.
4930 (regcache::target): New method.
4931 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
4932 (regcache::registers_changed_ptid): Add process_stratum_target
4933 parameter.
4934 (regcache::m_target): New field.
4935 (registers_changed_ptid): Add process_stratum_target parameter.
4936 * remote.c (remote_state::supports_vCont_probed): New field.
4937 (remote_target::async_wait_fd): New method.
4938 (remote_unpush_and_throw): Add remote_target parameter.
4939 (get_current_remote_target): Adjust.
4940 (remote_target::remote_add_inferior): Push target.
4941 (remote_target::remote_add_thread)
4942 (remote_target::remote_notice_new_inferior)
4943 (get_remote_thread_info): Pass target down.
4944 (remote_target::update_thread_list): Skip threads of inferiors
4945 bound to other targets. (remote_target::close): Don't discard
4946 inferiors. (remote_target::add_current_inferior_and_thread)
4947 (remote_target::process_initial_stop_replies)
4948 (remote_target::start_remote)
4949 (remote_target::remote_serial_quit_handler): Pass down target.
4950 (remote_target::remote_unpush_target): New remote_target
4951 parameter. Unpush the target from all inferiors.
4952 (remote_target::remote_unpush_and_throw): New remote_target
4953 parameter. Pass it down.
4954 (remote_target::open_1): Check whether the current inferior has
4955 execution instead of checking whether any inferior is live. Pass
4956 target down.
4957 (remote_target::remote_detach_1): Pass down target. Use
4958 remote_unpush_target.
4959 (extended_remote_target::attach): Pass down target.
4960 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
4961 (remote_target::append_resumption): Pass down target.
4962 (remote_target::append_pending_thread_resumptions)
4963 (remote_target::remote_resume_with_hc, remote_target::resume)
4964 (remote_target::commit_resume): Pass down target.
4965 (remote_target::remote_stop_ns): Check supports_vCont_probed.
4966 (remote_target::interrupt_query)
4967 (remote_target::remove_new_fork_children)
4968 (remote_target::check_pending_events_prevent_wildcard_vcont)
4969 (remote_target::remote_parse_stop_reply)
4970 (remote_target::process_stop_reply): Pass down target.
4971 (first_remote_resumed_thread): New remote_target parameter. Pass
4972 it down.
4973 (remote_target::wait_as): Pass down target.
4974 (unpush_and_perror): New remote_target parameter. Pass it down.
4975 (remote_target::readchar, remote_target::remote_serial_write)
4976 (remote_target::getpkt_or_notif_sane_1)
4977 (remote_target::kill_new_fork_children, remote_target::kill): Pass
4978 down target.
4979 (remote_target::mourn_inferior): Pass down target. Use
4980 remote_unpush_target.
4981 (remote_target::core_of_thread)
4982 (remote_target::remote_btrace_maybe_reopen): Pass down target.
4983 (remote_target::pid_to_exec_file)
4984 (remote_target::thread_handle_to_thread_info): Pass down target.
4985 (remote_target::async_wait_fd): New.
4986 * riscv-fbsd-tdep.c: Include "inferior.h".
4987 (riscv_fbsd_get_thread_local_address): Pass down target.
4988 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
4989 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
4990 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
4991 Adjust.
4992 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
4993 * solib-svr4.c (enable_break): Pass down target.
4994 * spu-multiarch.c (parse_spufs_run): Pass down target.
4995 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
4996 * target-delegates.c: Regenerate.
4997 * target.c (g_target_stack): Delete.
4998 (current_top_target): Return the current inferior's top target.
4999 (target_has_execution_1): Refer to the passed-in inferior's top
5000 target.
5001 (target_supports_terminal_ours): Check whether the initial
5002 inferior was already created.
5003 (decref_target): New.
5004 (target_stack::push): Incref/decref the target.
5005 (push_target, push_target, unpush_target): Adjust.
5006 (target_stack::unpush): Defref target.
5007 (target_is_pushed): Return bool. Adjust to refer to the current
5008 inferior's target stack.
5009 (dispose_inferior): Delete, and inline parts ...
5010 (target_preopen): ... here. Only dispose of the current inferior.
5011 (target_detach): Hold strong target reference while detaching.
5012 Pass target down.
5013 (target_thread_name): Add assertion.
5014 (target_resume): Pass down target.
5015 (target_ops::beneath, find_target_at): Adjust to refer to the
5016 current inferior's target stack.
5017 (get_dummy_target): New.
5018 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
5019 has a thread running.
5020 (initialize_targets): Rename to ...
5021 (_initialize_target): ... this.
5022 * target.h: Include "gdbsupport/refcounted-object.h".
5023 (struct target_ops): Inherit refcounted_object.
5024 (target_ops::shortname, target_ops::longname): Make const.
5025 (target_ops::async_wait_fd): New method.
5026 (decref_target): Declare.
5027 (struct target_ops_ref_policy): New.
5028 (target_ops_ref): New typedef.
5029 (get_dummy_target): Declare function.
5030 (target_is_pushed): Return bool.
5031 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
5032 (all_matching_threads_iterator::all_matching_threads_iterator):
5033 Handle filter target.
5034 * thread-iter.h (struct all_matching_threads_iterator, struct
5035 all_matching_threads_range, class all_non_exited_threads_range):
5036 Filter by target too. Remove explicit.
5037 * thread.c (threads_executing): Delete.
5038 (inferior_thread): Pass down current inferior.
5039 (clear_thread_inferior_resources): Pass down thread pointer
5040 instead of ptid_t.
5041 (add_thread_silent, add_thread_with_info, add_thread): Add
5042 process_stratum_target parameter. Use it for thread and inferior
5043 searches.
5044 (is_current_thread): New.
5045 (thread_info::deletable): Use it.
5046 (find_thread_ptid, thread_count, in_thread_list)
5047 (thread_change_ptid, set_resumed, set_running): New
5048 process_stratum_target parameter. Pass it down.
5049 (set_executing): New process_stratum_target parameter. Pass it
5050 down. Adjust reference to 'threads_executing'.
5051 (threads_are_executing): New process_stratum_target parameter.
5052 Adjust reference to 'threads_executing'.
5053 (set_stop_requested, finish_thread_state): New
5054 process_stratum_target parameter. Pass it down.
5055 (switch_to_thread): Also match inferior.
5056 (switch_to_thread): New process_stratum_target parameter. Pass it
5057 down.
5058 (update_threads_executing): Reimplement.
5059 * top.c (quit_force): Pop targets from all inferior.
5060 (gdb_init): Don't call initialize_targets.
5061 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
5062 Declare.
5063 (windows_add_thread, windows_delete_thread): Adjust.
5064 (get_windows_debug_event): Rename to ...
5065 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
5066 * tracefile-tfile.c (tfile_target_open): Pass down target.
5067 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
5068 Forward declare.
5069 (switch_to_thread): Add process_stratum_target parameter.
5070 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
5071 parameter. Use it.
5072 (mi_on_resume): Pass target down.
5073 * nat/fork-inferior.c (startup_inferior): Add
5074 process_stratum_target parameter. Pass it down.
5075 * nat/fork-inferior.h (startup_inferior): Add
5076 process_stratum_target parameter.
5077 * python/py-threadevent.c (py_get_event_thread): Pass target down.
5078
75c6c844
PA
50792020-01-10 Pedro Alves <palves@redhat.com>
5080
5081 * remote.c (remote_target::start_remote): Don't set inferior_ptid
5082 directly. Instead find the first thread in the thread list and
5083 use switch_to_thread.
5084
78f2c40a
PA
50852020-01-10 Pedro Alves <palves@redhat.com>
5086
5087 * remote.c (remote_target::remote_add_inferior): Don't bind a
5088 process to the current inferior if the current inferior is already
5089 bound to a process.
5090
e7af6c70
TBA
50912020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5092 Pedro Alves <palves@redhat.com>
5093
5094 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
5095 If no process is specified, return null_ptid instead of
5096 inferior_ptid.
5097 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
5098 TARGET_WAITKIND_SIGNALLED with no pid.
5099
31ba933e
PA
51002020-01-10 Pedro Alves <palves@redhat.com>
5101
5102 * remote.c (first_remote_resumed_thread): New.
5103 (remote_target::wait_as): Use it as default event_ptid instead of
5104 inferior_ptid.
5105
735fc2ca
PA
51062020-01-10 Pedro Alves <palves@redhat.com>
5107
5108 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
5109
c17e02e1
PA
51102020-01-10 Pedro Alves <palves@redhat.com>
5111
5112 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
5113 not -1.
5114
ab1ddbcf
PA
51152020-01-10 Pedro Alves <palves@redhat.com>
5116
5117 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
5118 ptid to get_last_target_status.
5119 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
5120 ptid to get_last_target_status.
5121 * infcmd.c (continue_command): Don't pass a target_waitstatus to
5122 get_last_target_status.
5123 (info_program_command): Don't pass a target_waitstatus to
5124 get_last_target_status.
5125 * infrun.c (init_wait_for_inferior): Use
5126 nullify_last_target_wait_ptid.
5127 (get_last_target_status): Handle nullptr arguments.
5128 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
5129 (print_stop_event): Don't pass a ptid to get_last_target_status.
5130 (normal_stop): Don't pass a ptid to get_last_target_status.
5131 * infrun.h (get_last_target_status, set_last_target_status): Move
5132 comments here and update.
5133 (nullify_last_target_wait_ptid): Declare.
5134 * linux-fork.c (fork_load_infrun_state): Remove local extern
5135 declaration of nullify_last_target_wait_ptid.
5136 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
5137 to get_last_target_status.
5138
f3f8ece4
PA
51392020-01-10 Pedro Alves <palves@redhat.com>
5140
5141 * gdbthread.h (scoped_restore_current_thread)
5142 <dont_restore, restore, m_dont_restore>: Declare.
5143 * thread.c (thread_alive): Add assertion. Return bool.
5144 (switch_to_thread_if_alive): New.
5145 (prune_threads): Switch inferior/thread.
5146 (print_thread_info_1): Switch thread before calling target methods.
5147 (scoped_restore_current_thread::restore): New, factored out from
5148 ...
5149 (scoped_restore_current_thread::~scoped_restore_current_thread):
5150 ... this.
5151 (scoped_restore_current_thread::scoped_restore_current_thread):
5152 Add assertion.
5153 (thread_apply_all_command, thread_select): Use
5154 switch_to_thread_if_alive.
5155 * infrun.c (proceed, restart_threads, handle_signal_stop)
5156 (switch_back_to_stepped_thread): Switch current thread before
5157 calling target methods.
5158
db2d40f7
PA
51592020-01-10 Pedro Alves <palves@redhat.com>
5160
5161 * inferior.c (switch_to_inferior_no_thread): New function,
5162 factored out from ...
5163 (inferior_command): ... here.
5164 * inferior.h (switch_to_inferior_no_thread): Declare.
5165 * mi/mi-main.c (run_one_inferior): Use
5166 switch_to_inferior_no_thread.
5167
bd420a2d
PA
51682020-01-10 Pedro Alves <palves@redhat.com>
5169
5170 * infcmd.c (kill_command): Remove dead code.
5171
ddf5db90
PA
51722020-01-10 Pedro Alves <palves@redhat.com>
5173
5174 * remote.c (remote_target::mourn_inferior): No longer check
5175 whether the target is running.
5176
5018ce90
PA
51772020-01-10 Pedro Alves <palves@redhat.com>
5178
5179 * corelow.c (core_target::has_execution): Change parameter type to
5180 inferior pointer.
5181 * inferior.c (number_of_live_inferiors): Use
5182 inferior::has_execution instead of target_has_execution_1.
5183 * inferior.h (inferior::has_execution): New.
5184 * linux-thread-db.c (thread_db_target::update_thread_list): Use
5185 inferior::has_execution instead of target_has_execution_1.
5186 * process-stratum-target.c
5187 (process_stratum_target::has_execution): Change parameter type to
5188 inferior pointer. Check the inferior's PID instead of
5189 inferior_ptid.
5190 * process-stratum-target.h
5191 (process_stratum_target::has_execution): Change parameter type to
5192 inferior pointer.
5193 * record-full.c (record_full_core_target::has_execution): Change
5194 parameter type to inferior pointer.
5195 * target.c (target_has_execution_1): Change parameter type to
5196 inferior pointer.
5197 (target_has_execution_current): Adjust.
5198 * target.h (target_ops::has_execution): Change parameter type to
5199 inferior pointer.
5200 (target_has_execution_1): Change parameter type to inferior
5201 pointer. Change return type to bool.
5202 * tracefile.h (tracefile_target::has_execution): Change parameter
5203 type to inferior pointer.
5204
74375d18
PA
52052020-01-10 Pedro Alves <palves@redhat.com>
5206
5207 * exceptions.c (print_flush): Remove current_top_target() check.
5208
acdf84a6
PA
52092020-01-10 Pedro Alves <palves@redhat.com>
5210
5211 * remote.c (show_remote_exec_file): Show the current inferior's
5212 exec-file instead of the command variable's value.
5213
ec506636
PA
52142020-01-10 Pedro Alves <palves@redhat.com>
5215
5216 * record-full.c (record_full_resume_ptid): New global.
5217 (record_full_target::resume): Set it.
5218 (record_full_wait_1): Use record_full_resume_ptid instead of
5219 inferior_ptid.
5220
873657b9
PA
52212020-01-10 Pedro Alves <palves@redhat.com>
5222
5223 * gdbthread.h (scoped_restore_current_thread)
5224 <dont_restore, restore, m_dont_restore>: Declare.
5225 * thread.c (thread_alive): Add assertion. Return bool.
5226 (switch_to_thread_if_alive): New.
5227 (prune_threads): Switch inferior/thread.
5228 (print_thread_info_1): Switch thread before calling target methods.
5229 (scoped_restore_current_thread::restore): New, factored out from
5230 ...
5231 (scoped_restore_current_thread::~scoped_restore_current_thread):
5232 ... this.
5233 (scoped_restore_current_thread::scoped_restore_current_thread):
5234 Add assertion.
5235 (thread_apply_all_command, thread_select): Use
5236 switch_to_thread_if_alive.
5237
7f0ae84c
GB
52382020-01-10 George Barrett <bob@bob131.so>
5239
5240 * stap-probe.c (stap_modify_semaphore): Don't check for null
5241 semaphores.
5242 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
5243 for null semaphores.
5244
f5a7c406
AB
52452020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
5246
5247 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
5248 all source windows, and maintain horizontal scroll status while
5249 doing so.
5250
9ae6bf64
TT
52512020-01-09 Tom Tromey <tom@tromey.com>
5252
5253 PR tui/18932:
5254 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
5255 update_source_window, not print_source_lines.
5256
b2efe70c
AB
52572020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
5258
5259 * tui/tui.c (tui_enable): Register tui hooks after calling
5260 tui_display_main.
5261
5f23a082
CB
52622020-01-09 Christian Biesinger <cbiesinger@google.com>
5263
5264 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
5265
3061113b
SM
52662020-01-08 Simon Marchi <simon.marchi@efficios.com>
5267
5268 * thread.c (print_thread_info_1): Fix indentation.
5269
57d75002
CB
52702020-01-09 Christian Biesinger <cbiesinger@google.com>
5271
5272 * symtab.c (general_symbol_info::compute_and_set_names): Move the
5273 unique_xmalloc_ptr outside the if to always free the demangled name.
5274
6a053cb1
TT
52752020-01-08 Tom Tromey <tromey@adacore.com>
5276
5277 * xcoffread.c (enter_line_range, read_xcoff_symtab)
5278 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
5279 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
5280 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
5281 Remove.
5282 (section_offsets): New typedef.
5283 * symtab.c (fixup_section, get_msymbol_address): Update.
5284 * symmisc.c (dump_msymbols): Update.
5285 * symfile.h (relative_addr_info_to_section_offsets)
5286 (symfile_map_offsets_to_segments): Update.
5287 * symfile.c (build_section_addr_info_from_objfile)
5288 (init_objfile_sect_indices): Update.
5289 (struct place_section_arg): Change type of "offsets".
5290 (place_section): Update.
5291 (relative_addr_info_to_section_offsets): Change type of
5292 "section_offsets". Remove "num_sections" parameter.
5293 (default_symfile_offsets, syms_from_objfile_1)
5294 (set_objfile_default_section_offset): Update.
5295 (reread_symbols): No need to preserve section offsets by hand.
5296 (symfile_map_offsets_to_segments): Change type of "offsets".
5297 * stap-probe.c (relocate_address): Update.
5298 * stabsread.h (process_one_symbol): Update.
5299 * solib-target.c (struct lm_info_target) <offsets>: Change type.
5300 (solib_target_relocate_section_addresses): Update.
5301 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
5302 Update.
5303 * solib-frv.c (frv_relocate_main_executable): Update.
5304 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
5305 * solib-aix.c (solib_aix_get_section_offsets): Change return
5306 type.
5307 (solib_aix_solib_create_inferior_hook): Update.
5308 * remote.c (remote_target::get_offsets): Update.
5309 * psymtab.c (find_pc_sect_psymtab): Update.
5310 * psympriv.h (struct partial_symbol) <address, text_low,
5311 text_high>: Update.
5312 * objfiles.h (obj_section_offset): Update.
5313 (struct objfile) <section_offsets>: Change type.
5314 <num_sections>: Remove.
5315 (objfile_relocate): Update.
5316 * objfiles.c (entry_point_address_query): Update
5317 (relocate_one_symbol): Change type of "section_offsets".
5318 (objfile_relocate1, objfile_relocate1): Change type of
5319 "new_offsets".
5320 (objfile_rebase1): Update.
5321 * mipsread.c (mipscoff_symfile_read): Update.
5322 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
5323 parameter.
5324 * mdebugread.c (parse_symbol): Change type of "section_offsets".
5325 (parse_external, psymtab_to_symtab_1): Update.
5326 * machoread.c (macho_symfile_offsets): Update.
5327 * ia64-tdep.c (ia64_find_unwind_table): Update.
5328 * hppa-tdep.c (read_unwind_info): Update.
5329 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
5330 * dwarf2read.c (create_addrmap_from_index)
5331 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5332 (process_psymtab_comp_unit_reader, add_partial_symbol)
5333 (add_partial_subprogram, process_full_comp_unit)
5334 (read_file_scope, read_func_scope, read_lexical_block_scope)
5335 (read_call_site_scope, dwarf2_rnglists_process)
5336 (dwarf2_ranges_process, dwarf2_ranges_read)
5337 (dwarf_decode_lines_1, var_decode_location, new_symbol)
5338 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
5339 Update.
5340 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
5341 Update.
5342 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
5343 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
5344 (process_one_symbol): Change type of "section_offsets".
5345 * ctfread.c (get_objfile_text_range): Update.
5346 * coffread.c (coff_symtab_read, enter_linenos)
5347 (process_coff_symbol): Update.
5348 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5349 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
5350
456e800a
TT
53512020-01-08 Tom Tromey <tromey@adacore.com>
5352
5353 * dwarf2read.c (parse_macro_definition): Use std::string.
5354 (parse_macro_definition): Likewise.
5355
6dfa2fc2
TT
53562020-01-08 Tom Tromey <tromey@adacore.com>
5357
5358 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
5359 (ATTR_ALLOC_CHUNK): Remove.
5360
421d1616
TT
53612020-01-08 Tom Tromey <tromey@adacore.com>
5362
5363 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
5364
43816ebc
TT
53652020-01-08 Tom Tromey <tromey@adacore.com>
5366
5367 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
5368 (dwarf2_compute_name, open_dwo_file): Likewise.
5369 (process_enumeration_scope): Use std::vector.
5370 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
5371 (partial_die_info::fixup, dwarf2_start_subfile)
5372 (guess_full_die_structure_name, dwarf2_name): Likewise.
5373 (determine_prefix): Update.
5374 (guess_full_die_structure_name): Make return type const.
5375 (partial_die_full_name): Return unique_xmalloc_ptr.
5376 (DW_FIELD_ALLOC_CHUNK): Remove.
5377
4212d509
TT
53782020-01-07 Tom Tromey <tromey@adacore.com>
5379
5380 PR build/24937:
5381 * stap-probe.c (class stap_static_probe_ops): Add constructor.
5382
06a6207a
JT
53832020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
5384
5385 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
5386
153d79c4
AB
53872020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
5388
5389 * stack.c (print_frame_info): Move disassemble_next_line code
5390 inside source_print block.
5391
66182876
EZ
53922020-01-06 Eli Zaretskii <eliz@gnu.org>
5393
5394 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
5395 gdb/signals.h, as we are now using native signal symbols.
5396
cbfa8581
SV
53972020-01-06 Shahab Vahedi <shahab@synopsys.com>
5398
5399 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
5400 overflow by an early check of content vs threshold.
5401 * tui/tui-source.c (tui_source_window::line_is_displayed):
5402 Likewise.
5403
3f602821
EZ
54042020-01-06 Eli Zaretskii <eliz@gnu.org>
5405
5406 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
5407
a08c904d
JT
54082020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
5409
5410 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
5411 export table if no section contains it's RVA.
5412
89a65580
EZ
54132020-01-06 Eli Zaretskii <eliz@gnu.org>
5414
5415 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
5416
8b7fcda2
HD
54172020-01-06 Hannes Domani <ssbssa@yahoo.de>
5418
5419 * source.c (print_source_lines_base): Set last_line_listed.
5420
a61b4f69
SV
54212020-01-06 Shahab Vahedi <shahab@synopsys.com>
5422
5423 * tui/tui-disasm.c: Remove trailing spaces.
5424
559e7e50
EZ
54252020-01-06 Eli Zaretskii <eliz@gnu.org>
5426 Pedro Alves <palves@redhat.com>
5427
5428 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
5429 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
5430 (windows_gdb_signal_to_target): New function, uses the above
5431 enumeration to convert GDB internal signal codes to equivalent
5432 Windows codes.
5433 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
5434 * windows-nat.c: Include "gdb_wait.h".
5435 (get_windows_debug_event): Extract the fatal exception from the
5436 exit status and convert to the equivalent Posix signal number.
5437 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
5438 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
5439 * gdbsupport/gdb_wait.c: New file, implements
5440 windows_status_to_termsig.
5441 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
5442 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
5443
f2302a34
AB
54442020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
5445
5446 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
5447 show_layout.
5448
6a5206eb
LM
54492020-01-05 Luis Machado <luis.machado@linaro.org>
5450
5451 * aarch64-linux-nat.c
5452 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
5453 and bfd_mach_aarch64.
5454
6ec1d75e
PW
54552020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5456
5457 * ui-file.c (stdio_file::can_emit_style_escape)
5458 (tee_file::can_emit_style_escape): Ensure style is used also on
5459 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
5460 to gdb_stdout.
5461 * main.c (set_gdb_data_directory): Use file style to output the
5462 warning that the given pathname is not a directory.
5463 * top.c (show_history_filename, gdb_safe_append_history)
5464 (show_gdb_datadir): Use file style.
5465
44f81a76
HD
54662020-01-03 Hannes Domani <ssbssa@yahoo.de>
5467
5468 * solib-target.c (struct lm_info_target):
5469 Change offsets to be a unique_xmalloc_ptr.
5470 (solib_target_relocate_section_addresses): Update.
5471
25057eb0
HD
54722020-01-03 Hannes Domani <ssbssa@yahoo.de>
5473
5474 * windows-nat.c (windows_clear_solib): Free so_list linked list.
5475
6e2118f5
BE
54762020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5477
5478 * MAINTAINERS (Write After Approval): Add myself.
5479
8133c7dc
LM
54802020-01-02 Luis Machado <luis.machado@linaro.org>
5481
5482 * proc-service.c (get_ps_regcache): Remove reference to obsolete
5483 Cell BE architecture.
5484 * target.h (struct target_ops) <thread_architecture>: Likewise.
5485
48189bec
HD
54862020-01-01 Hannes Domani <ssbssa@yahoo.de>
5487
5488 * Makefile.in: Use INSTALL_PROGRAM_ENV.
5489
ead1063b
HD
54902020-01-01 Hannes Domani <ssbssa@yahoo.de>
5491
5492 * MAINTAINERS (Write After Approval): Add myself.
5493
e5d78223
JB
54942020-01-01 Joel Brobecker <brobecker@adacore.com>
5495
5496 * gdbarch.sh: Update copyright year range of generated files.
5497
b811d2c2
JB
54982020-01-01 Joel Brobecker <brobecker@adacore.com>
5499
5500 Update copyright year range in all GDB files.
5501
5f4def5c
JB
55022020-01-01 Joel Brobecker <brobecker@adacore.com>
5503
5504 * copyright.py: Convert to Python 3.
5505
51fd4002
JB
55062020-01-01 Joel Brobecker <brobecker@adacore.com>
5507
5508 * copyright.py: Adapt after move of gnulib directory from gdb
5509 directory to toplevel directory.
5510
5fb651f2
JB
55112020-01-01 Joel Brobecker <brobecker@adacore.com>
5512
5513 * copyright.py (main): Exit if run from the wrong directory.
5514
5dd8bf88
JB
55152020-01-01 Joel Brobecker <brobecker@adacore.com>
5516
5517 * top.c (print_gdb_version): Change copyright year to 2020.
5518
9f71dacb 55192020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 5520
9f71dacb 5521 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 5522
9f71dacb 5523For older changes see ChangeLog-2019.
c906108c
SS
5524\f
5525Local Variables:
5526mode: change-log
5527left-margin: 8
5528fill-column: 74
5529version-control: never
57da7796 5530coding: utf-8
c906108c 5531End: