]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fix formatting of read_attribute_reprocess
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f1749218
TT
12020-03-28 Tom Tromey <tom@tromey.com>
2
3 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
4
ebea7626
HD
52020-03-27 Hannes Domani <ssbssa@yahoo.de>
6
7 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8
a879b4d5
JB
92020-03-26 John Baldwin <jhb@FreeBSD.org>
10
11 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12
0826b30a
TT
132020-03-26 Tom Tromey <tom@tromey.com>
14
15 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
16 (mark_common_block_symbol_computed, read_tag_string_type)
17 (attr_to_dynamic_prop, read_subrange_type): Update.
18 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
19 to be methods on struct attribute.
20 (skip_one_die, process_imported_unit_die, read_namespace_alias)
21 (read_call_site_scope, partial_die_info::read)
22 (partial_die_info::read, lookup_die_type, follow_die_ref):
23 Update.
24 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
25 from dwarf2_get_ref_die_offset.
26 (attribute::constant_value): New method, from
27 dwarf2_get_attr_constant_value.
28 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
29 Declare method.
30 <constant_value>: New method.
31
2b2558bf
TT
322020-03-26 Tom Tromey <tom@tromey.com>
33
34 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
35 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
36 (dwarf_type_encoding_name): Move to stringify.c.
37 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
38 * dwarf2/stringify.c: New file.
39 * dwarf2/stringify.h: New file.
40
eeb64781
TT
412020-03-26 Tom Tromey <tom@tromey.com>
42
43 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
44 Rewrite.
45
a39fdb41
TT
462020-03-26 Tom Tromey <tom@tromey.com>
47
48 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
49 methods.
50 * dwarf2/read.c (lookup_addr_base): Move to die.h.
51 (lookup_ranges_base): Likewise.
52 (read_cutu_die_from_dwo, read_full_die_1): Update.
53
436c571c
TT
542020-03-26 Tom Tromey <tom@tromey.com>
55
56 * dwarf2/read.c (read_import_statement, read_file_scope)
57 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
58 (read_lexical_block_scope, read_call_site_scope)
59 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
60 (handle_struct_member_die, process_structure_scope)
61 (update_enumeration_type_from_children)
62 (process_enumeration_scope, read_array_type, read_common_block)
63 (read_namespace, read_module, read_subroutine_type): Update.
64 (sibling_die): Remove.
65
052c8bb8
TT
662020-03-26 Tom Tromey <tom@tromey.com>
67
68 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
69 (build_type_psymtabs_reader, read_structure_type)
70 (read_enumeration_type, read_full_die_1): Update.
71 (dwarf2_attr_no_follow): Move to die.h.
72 * dwarf2/die.h (struct die_info) <attr>: New method.
73
2b24b6e4
TT
742020-03-26 Tom Tromey <tom@tromey.com>
75
76 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
77 <base_address>: Now an optional.
78 (dwarf2_find_base_address, dwarf2_rnglists_process)
79 (dwarf2_ranges_process, fill_in_loclist_baton)
80 (dwarf2_symbol_mark_computed): Update.
81
c2d50fd0
TT
822020-03-26 Tom Tromey <tom@tromey.com>
83
84 * dwarf2/read.c (struct die_info): Move to die.h.
85 * dwarf2/die.h: New file.
86
0df7ad3a
TT
872020-03-26 Tom Tromey <tom@tromey.com>
88
89 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
90 * dwarf2/read.c
91 (dwarf2_statement_list_fits_in_line_number_section_complaint):
92 Move to line-header.c.
93 (read_checked_initial_length_and_offset, read_formatted_entries):
94 Likewise.
95 (dwarf_decode_line_header): Split into two.
96 * dwarf2/line-header.c
97 (dwarf2_statement_list_fits_in_line_number_section_complaint):
98 Move from read.c.
99 (read_checked_initial_length_and_offset, read_formatted_entries):
100 Likewise.
101 (dwarf_decode_line_header): New function, split from read.c.
102
86c0bb4c
TT
1032020-03-26 Tom Tromey <tom@tromey.com>
104
105 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
106 Declare method.
107 * dwarf2/read.c (read_attribute_value): Update.
108 (dwarf2_per_objfile::read_line_string): Rename from
109 read_indirect_line_string.
110 (read_formatted_entries): Update.
111
2ef46c2f
TT
1122020-03-26 Tom Tromey <tom@tromey.com>
113
114 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
115 variable.
116
4f9c1eda
TT
1172020-03-26 Tom Tromey <tom@tromey.com>
118
119 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
120 const.
121 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
122 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
123 parameter const.
124
5a0e026f
TT
1252020-03-26 Tom Tromey <tom@tromey.com>
126
127 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
128 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
129 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
130 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
131
8844c11b
TT
1322020-03-26 Tom Tromey <tom@tromey.com>
133
134 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
135 file_names_size, file_full_name, file_file_name>: Use const.
136 <file_name_at, file_names>: Add const overload.
137 * dwarf2/line-header.c (line_header::file_file_name)
138 (line_header::file_full_name): Update.
139
c90ec28a
TT
1402020-03-26 Tom Tromey <tom@tromey.com>
141
142 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
143 (macro_start_file, consume_improper_spaces)
144 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
145 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
146 (dwarf_decode_macros): Move to macro.c.
147 * dwarf2/macro.c: New file.
148 * dwarf2/macro.h: New file.
149 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
150
4f44ae6c
TT
1512020-03-26 Tom Tromey <tom@tromey.com>
152
153 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
154 method.
155 * dwarf2/section.c: New method. From
156 read_indirect_string_at_offset_from.
157 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
158 (read_indirect_string_at_offset_from): Move to section.c.
159 (read_indirect_string_at_offset): Rewrite.
160 (read_indirect_line_string_at_offset): Remove.
161 (read_indirect_string, read_indirect_line_string)
162 (dwarf_decode_macro_bytes): Update.
163
a0194fa8
TT
1642020-03-26 Tom Tromey <tom@tromey.com>
165
166 * dwarf2/section.h (struct dwarf2_section_info)
167 <overload_complaint>: Declare.
168 (dwarf2_section_buffer_overflow_complaint): Don't declare.
169 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
170 Rename from dwarf2_section_buffer_overflow_complaint.
171 * dwarf2/read.c (skip_one_die, partial_die_info::read)
172 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
173
3d27bbdb
TT
1742020-03-26 Tom Tromey <tom@tromey.com>
175
176 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
177 Declare.
178 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
179 Move from read.c.
180 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
181 to section.c.
182
9eac9650
TT
1832020-03-26 Tom Tromey <tom@tromey.com>
184
185 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
186
bf80d710
TT
1872020-03-26 Tom Tromey <tom@tromey.com>
188
189 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
190 "builder".
191 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
192 parameter.
193 (dwarf_decode_macros): Update.
194
0314b390
TT
1952020-03-26 Tom Tromey <tom@tromey.com>
196
197 * dwarf2/read.c (read_attribute_value): Update.
198 (read_indirect_string_from_dwz): Move to dwz.c; change into
199 method.
200 (dwarf_decode_macro_bytes): Update.
201 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
202 * dwarf2/dwz.c: New file.
203 * Makefile.in (COMMON_SFILES): Add dwz.c.
204
9fda78b6
TT
2052020-03-26 Tom Tromey <tom@tromey.com>
206
207 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
208 * dwarf2/read.c: Add include.
209 * dwarf2/index-write.c: Add include.
210 * dwarf2/index-cache.c: Add include.
211 * dwarf2/dwz.h: New file.
212
33aa3c10
TT
2132020-03-25 Tom Tromey <tom@tromey.com>
214
215 * compile/compile-object-load.c (get_out_value_type): Mention
216 correct symbol name in error message.
217
d503b685
HD
2182020-03-25 Hannes Domani <ssbssa@yahoo.de>
219
220 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
221
7b1eff95
TV
2222020-03-25 Tom de Vries <tdevries@suse.de>
223
224 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
225 * symmisc.c (dump_symtab_1): Print user and includes fields.
226 (maintenance_info_symtabs): Same.
227
dd895392
AB
2282020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
229
230 PR gdb/25534
231 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
232 (riscv_regcache_cooked_write): New function.
233 (riscv_push_dummy_call): Use new function.
234 (riscv_return_value): Likewise.
235
5ab2fbf1
SM
2362020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
237
238 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
239 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
240 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
241 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
242 * infrun.c (follow_fork): Likewise.
243 (follow_fork_inferior): Likewise.
244 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
245 * linux-nat.h (class linux_nat_target): Likewise.
246 * remote.c (class remote_target) <follow_fork>: Likewise.
247 (remote_target::follow_fork): Likewise.
248 * target-delegates.c: Re-generate.
249 * target.c (default_follow_fork): Likewise.
250 (target_follow_fork): Likewise.
251 * target.h (struct target_ops) <follow_fork>: Likewise.
252 (target_follow_fork): Likewise.
253
a64fafb5
TV
2542020-03-24 Tom de Vries <tdevries@suse.de>
255
256 * psymtab.c (maintenance_info_psymtabs): Print user field.
257
fe26d3a3
TT
2582020-03-20 Tom Tromey <tromey@adacore.com>
259
260 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
261 const.
262 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
263 const.
264
c884cc46
SM
2652020-03-20 Simon Marchi <simon.marchi@efficios.com>
266
267 * ptrace.m4: Don't check for ptrace declaration.
268 * config.in: Re-generate.
269 * configure: Re-generate.
270 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
271 not defined.
272
1ff700c2
KR
2732020-03-20 Kamil Rytarowski <n54@gmx.com>
274
275 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
276 `PTRACE_TYPE_RET'.
277 * i386-bsd-nat.c (gdb_ptrace): Likewise.
278 * sparc-nat.c (gdb_ptrace): Likewise.
279 * x86-bsd-nat.c (gdb_ptrace): Likewise.
280
f7d4f0b1
TT
2812020-03-20 Tom Tromey <tromey@adacore.com>
282
283 * c-exp.y (lex_one_token): Fix assert.
284
f67210ff
TT
2852020-03-20 Tom Tromey <tromey@adacore.com>
286
287 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
288 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
289 strncpy call.
290
1773be9e
TT
2912020-03-20 Tom Tromey <tromey@adacore.com>
292
293 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
294
70304be9
TT
2952020-03-20 Tom Tromey <tromey@adacore.com>
296
297 * ada-valprint.c (print_variant_part): Remove parameters; switch
298 to value-based API.
299 (print_field_values): Likewise.
300 (ada_val_print_struct_union): Likewise.
301 (ada_value_print_1): Update.
302
9faa006d
KR
3032020-03-20 Kamil Rytarowski <n54@gmx.com>
304
305 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
306 nbsd_nat_target instead of inf_ptrace_target.
307 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
308 nbsd_nat_target.
309
4a90f062
KR
3102020-03-20 Kamil Rytarowski <n54@gmx.com>
311
312 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
313 it to the ptrace call.
314 * (store_registers): Likewise.
315
3162020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
317
318 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
319 it to the ptrace call.
320 * (store_registers): Likewise.
321
2d07da27
LM
3222020-03-19 Luis Machado <luis.machado@linaro.org>
323
324 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
325 valid, fetch vg value from ptrace.
326
f09db380
KR
3272020-03-19 Kamil Rytarowski <n54@gmx.com>
328 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
329 * inf-ptrace.c: Likewise.
330 * (gdb_ptrace): Add.
331 * (inf_ptrace_target::resume): Update.
332 * (inf_ptrace_target::xfer_partial): Likewise.
333 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
334 * (inf_ptrace_peek_poke): Update.
335
fcc7376e
KR
3362020-03-19 Kamil Rytarowski <n54@gmx.com>
337
338 * x86-bsd-nat.c (gdb_ptrace): New.
339 * (x86bsd_dr_set): Add new argument `ptid'.
340 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
341 x86bsd_dr_set_addr): Update.
342
cada5fc9
AB
3432020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
344
345 * remote.c (remote_target::process_stop_reply): Handle events for
346 all threads differently.
347
19a2740f
AB
3482020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
349
350 * completer.c (completion_tracker::remove_completion): Define new
351 function.
352 * completer.h (completion_tracker::remove_completion): Declare new
353 function.
354 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
355 when adding a C++ function symbol.
356
724fd9ba
AB
3572020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
358
359 * completer.c (completion_tracker::completion_hash_entry): Define
360 new class.
361 (advance_to_filename_complete_word_point): Call
362 recompute_lowest_common_denominator.
363 (completion_tracker::completion_tracker): Call discard_completions
364 to setup the hash table.
365 (completion_tracker::discard_completions): Allow for being called
366 from the constructor, pass new equal function, and element deleter
367 when constructing the hash table. Initialise new class member
368 variables.
369 (completion_tracker::maybe_add_completion): Remove use of
370 m_entries_vec, and store more information into m_entries_hash.
371 (completion_tracker::recompute_lcd_visitor): New function, most
372 content taken from...
373 (completion_tracker::recompute_lowest_common_denominator):
374 ...here, this now just visits each item in the hash calling the
375 above visitor.
376 (completion_tracker::build_completion_result): Remove use of
377 m_entries_vec, call recompute_lowest_common_denominator.
378 * completer.h (completion_tracker::have_completions): Remove use
379 of m_entries_vec.
380 (completion_tracker::completion_hash_entry): Declare new class.
381 (completion_tracker::recompute_lowest_common_denominator): Change
382 function signature.
383 (completion_tracker::recompute_lcd_visitor): Declare new function.
384 (completion_tracker::m_entries_vec): Delete.
385 (completion_tracker::m_entries_hash): Initialize to NULL.
386 (completion_tracker::m_lowest_common_denominator_valid): New
387 member variable.
388 (completion_tracker::m_lowest_common_denominator_max_length): New
389 member variable.
390
5a82b8a1
KR
3912020-03-17 Kamil Rytarowski <n54@gmx.com>
392
393 * regformats/regdef.h: Put reg in gdb namespace.
394
fb516a69
KR
3952020-03-17 Kamil Rytarowski <n54@gmx.com>
396
397 * i386-bsd-nat.c (gdb_ptrace): New.
398 * (i386bsd_fetch_inferior_registers,
399 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
400 * (i386bsd_fetch_inferior_registers,
401 i386bsd_store_inferior_registers) Use gdb_ptrace.
402
1c0aa1fb
KR
4032020-03-17 Kamil Rytarowski <n54@gmx.com>
404
405 * amd64-bsd-nat.c (gdb_ptrace): New.
406 * (amd64bsd_fetch_inferior_registers,
407 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
408 * (amd64bsd_fetch_inferior_registers,
409 amd64bsd_store_inferior_registers) Use gdb_ptrace.
410
5ccd2fb7
KR
4112020-03-17 Kamil Rytarowski <n54@gmx.com>
412
413 * user-regs.c (user_reg::read): Rename to...
414 (user_reg::xread): ...this.
415 * (append_user_reg): Rename argument `read' to `xread'.
416 * (user_reg_add_builtin): Likewise.
417 * (user_reg_add): Likewise.
418 * (value_of_user_reg): Likewise.
419
2108a63a
KR
4202020-03-17 Kamil Rytarowski <n54@gmx.com>
421
422 * sparc-nat.c (gdb_ptrace): New.
423 * sparc-nat.c (sparc_fetch_inferior_registers)
424 (sparc_store_inferior_registers) Remove obsolete comment.
425 * sparc-nat.c (sparc_fetch_inferior_registers)
426 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
427 * sparc-nat.c (sparc_fetch_inferior_registers)
428 (sparc_store_inferior_registers) Use gdb_ptrace.
429
a225c9a8
KR
4302020-03-17 Kamil Rytarowski <n54@gmx.com>
431
432 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
433 it to the ptrace call.
434 * sh-nbsd-nat.c (store_registers): Likewise.
435
98097623
KR
4362020-03-17 Kamil Rytarowski <n54@gmx.com>
437
438 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
439 nbsd_nat_target instead of inf_ptrace_target.
440 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
441 nbsd_nat_target.
442
9e38d619
KR
4432020-03-17 Kamil Rytarowski <n54@gmx.com>
444
445 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
446
a2ecbe9f
KR
4472020-03-17 Kamil Rytarowski <n54@gmx.com>
448
449 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
450 <sys/sysctl.h>.
451 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
452
58990295
TV
4532020-03-17 Tom de Vries <tdevries@suse.de>
454
455 PR gdb/23710
456 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
457 fields.
458 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
459 fields.
460 (process_imported_unit_die): Skip import of c++ CUs.
461
771dd3a8
TT
4622020-03-16 Tom Tromey <tom@tromey.com>
463
464 * p-valprint.c (pascal_object_print_value): Initialize
465 base_value.
466
817a7585
AK
4672020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
468 Shahab Vahedi <shahab@synopsys.com>
469
470 * Makefile.in: Add arch/arc.o
471 * configure.tgt: Likewise.
472 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
473 (_initialize_arc_tdep): Don't initialize old target descriptions.
474 (arc_read_description): New function to cache target descriptions.
475 * arc-tdep.h (arc_read_description): Add proto type.
476 * arch/arc.c: New file.
477 * arch/arc.h: Likewise.
478 * features/Makefile: Replace old target descriptions with new.
479 * features/arc-arcompact.c: Remove.
480 * features/arc-arcompact.xml: Likewise.
481 * features/arc-v2.c: Likewise
482 * features/arc-v2.xml: Likewise
483 * features/arc/aux-arcompact.xml: New file.
484 * features/arc/aux-v2.xml: Likewise.
485 * features/arc/core-arcompact.xml: Likewise.
486 * features/arc/core-v2.xml: Likewise.
487 * features/arc/aux-arcompact.c: Generate.
488 * features/arc/aux-v2.c: Likewise.
489 * features/arc/core-arcompact.c: Likewise.
490 * features/arc/core-v2.c: Likewise.
491 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
492
67430cd0
TT
4932020-03-16 Tom Tromey <tromey@adacore.com>
494
495 PR gdb/25663:
496 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
497 putting value into bcache.
498
30efb6c7
SM
4992020-03-16 Simon Marchi <simon.marchi@efficios.com>
500
501 PR gdb/21500
502 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
503 to...
504 (amd64_windows_init_abi_common): ... this. Don't set size of
505 long type.
506 (amd64_windows_init_abi): New function.
507 (amd64_cygwin_init_abi): New function.
508 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
509 the Cygwin OS ABI.
510 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
511 comment.
512
8db52437
SM
5132020-03-16 Simon Marchi <simon.marchi@efficios.com>
514
515 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
516 * windows-tdep.c (CYGWIN_DLL_NAME): New.
517 (pe_import_directory_entry): New struct type.
518 (is_linked_with_cygwin_dll): New function.
519 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
520 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
521 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
522
5982a56a
SM
5232020-03-16 Simon Marchi <simon.marchi@efficios.com>
524
525 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
526 i386_cygwin_core_osabi_sniffer.
527
7a1998df
SM
5282020-03-16 Simon Marchi <simon.marchi@efficios.com>
529
530 * i386-cygwin-tdep.c: Rename to...
531 * i386-windows-tdep.c: ... this.
532 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
533 i386-windows-tdep.c.
534 * configure.tgt: Likewise.
535
053205cc
SM
5362020-03-16 Simon Marchi <simon.marchi@efficios.com>
537
538 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
539 * osabi.c (gdb_osabi_names): Add "Windows".
540 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
541 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
542 (i386_cygwin_core_osabi_sniffer): New function, extracted from
543 i386_cygwin_osabi_sniffer.
544 (_initialize_i386_cygwin_tdep): Register OS ABI
545 GDB_OSABI_WINDOWS for i386.
546 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
547 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
548 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
549 for x86-64.
550 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
551 when the target matches '*-*-mingw*'.
552
fe4b2ee6
SM
5532020-03-16 Simon Marchi <simon.marchi@efficios.com>
554
555 * defs.h (enum gdb_osabi): Move to...
556 * osabi.h (enum gdb_osabi): ... here.
557 * gdbarch.sh: Include osabi.h in gdbarch.h.
558 * gdbarch.h: Re-generate.
559
cb9b645d
SM
5602020-03-16 Simon Marchi <simon.marchi@efficios.com>
561
562 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
563 function.
564 (_initialize_amd64_windows_tdep): Register osabi sniffer.
565
3293bbaf
TT
5662020-03-14 Tom Tromey <tom@tromey.com>
567
568 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
569 for C++.
570 (c_type_print_modifier): Likewise. Add "language" parameter.
571 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
572 (c_type_print_base_1): Update.
573 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
574 constants.
575 * type-stack.c (type_stack::insert): Handle tp_atomic and
576 tp_restrict.
577 (type_stack::follow_type_instance_flags): Likewise.
578 (type_stack::follow_types): Likewise. Merge type-following code.
579 * c-exp.y (RESTRICT, ATOMIC): New tokens.
580 (space_identifier, cv_with_space_id)
581 (const_or_volatile_or_space_identifier_noopt)
582 (const_or_volatile_or_space_identifier): Remove.
583 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
584 rules.
585 (ptr_operator, typebase): Update.
586 (enum token_flag) <FLAG_C>: New constant.
587 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
588 "_Atomic".
589 (lex_one_token): Handle FLAG_C.
590
154151a6
KR
5912020-03-14 Kamil Rytarowski <n54@gmx.com>
592
593 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
594 it to the ptrace call.
595 * m68k-bsd-nat.c (store_registers): Likewise.
596
bc107784
KR
5972020-03-14 Kamil Rytarowski <n54@gmx.com>
598
599 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
600 gdb_byte *.
601 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
602 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
603 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
604
01a80117
KR
6052020-03-14 Kamil Rytarowski <n54@gmx.com>
606
607 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
608 nbsd_nat_target instead of inf_ptrace_target.
609 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
610 nbsd_nat_target.
611
f90280ca
KR
6122020-03-14 Kamil Rytarowski <n54@gmx.com>
613
614 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
615 register_t.
616
6def66f1
KR
6172020-03-14 Kamil Rytarowski <n54@gmx.com>
618
619 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
620 it to the ptrace call.
621 * alpha-bsd-nat.c (store_registers): Likewise.
622
66eaca97
KR
6232020-03-14 Kamil Rytarowski <n54@gmx.com>
624
625 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
626 includes.
627 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
628 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
629 fill_fpregset): Likewise.
630
4fed520b
KR
6312020-03-14 Kamil Rytarowski <n54@gmx.com>
632
633 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
634 nbsd_nat_target instead of inf_ptrace_target.
635 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
636 nbsd_nat_target.
637
2190cf06
KR
6382020-03-14 Kamil Rytarowski <n54@gmx.com>
639
640 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
641 register_t.
642
75c56d3d
KR
6432020-03-14 Kamil Rytarowski <n54@gmx.com>
644
645 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
646 it to the ptrace call.
647 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
648 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
649 * arm-nbsd-nat.c (store_register): Likewise.
650 * arm-nbsd-nat.c (store_regs): Likewise.
651 * arm-nbsd-nat.c (store_fp_register): Likewise.
652 * arm-nbsd-nat.c (store_fp_regs): Likewise.
653
6018d381
KR
6542020-03-14 Kamil Rytarowski <n54@gmx.com>
655
656 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
657 nbsd_nat_target instead of inf_ptrace_target.
658 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
659 nbsd_nat_target.
660
013f99f0
KR
6612020-03-14 Kamil Rytarowski <n54@gmx.com>
662
663 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
664 it to the ptrace call.
665 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
666
12753073
KR
6672020-03-14 Kamil Rytarowski <n54@gmx.com>
668
6227b330
KR
669 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
670 it to the ptrace call.
671 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
672
6732020-03-14 Kamil Rytarowski <n54@gmx.com>
674
675 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
676 gdb_byte *.
12753073
KR
677 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
678
d5be5fa4
KR
6792020-03-14 Kamil Rytarowski <n54@gmx.com>
680
681 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
682 instead of inf_ptrace_target.
683 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
684 nbsd_nat_target.
685
8110f842
KR
6862020-03-14 Kamil Rytarowski <n54@gmx.com>
687
688 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
689 register_t.
690
52feded7
KR
6912020-03-14 Kamil Rytarowski <n54@gmx.com>
692
693 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
694 register_t.
695
25567eee
KR
6962020-03-14 Kamil Rytarowski <n54@gmx.com>
697
698 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
699 register_t.
700
426a9c18
TT
7012020-03-13 Tom Tromey <tom@tromey.com>
702
703 * value.h (val_print): Don't declare.
704 * valprint.h (val_print_array_elements)
705 (val_print_scalar_formatted, generic_val_print): Don't declare.
706 * valprint.c (generic_val_print_array): Take a struct value.
707 (generic_val_print_ptr, generic_val_print_memberptr)
708 (generic_val_print_bool, generic_val_print_int)
709 (generic_val_print_char, generic_val_print_complex)
710 (generic_val_print): Remove.
711 (generic_value_print): Update.
712 (do_val_print): Remove unused parameters. Don't call
713 la_val_print.
714 (val_print): Remove.
715 (common_val_print): Update. Don't call value_check_printable.
716 (val_print_scalar_formatted, val_print_array_elements): Remove.
717 * rust-lang.c (rust_val_print): Remove.
718 (rust_language_defn): Update.
719 * p-valprint.c (pascal_val_print): Remove.
720 (pascal_value_print_inner): Update.
721 (pascal_object_print_val_fields, pascal_object_print_val):
722 Remove.
723 (pascal_object_print_static_field): Update.
724 * p-lang.h (pascal_val_print): Don't declare.
725 * p-lang.c (pascal_language_defn): Update.
726 * opencl-lang.c (opencl_language_defn): Update.
727 * objc-lang.c (objc_language_defn): Update.
728 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
729 * m2-lang.h (m2_val_print): Don't declare.
730 * m2-lang.c (m2_language_defn): Update.
731 * language.h (struct language_defn) <la_val_print>: Remove.
732 * language.c (unk_lang_value_print_inner): Rename. Change
733 argument types.
734 (unknown_language_defn, auto_language_defn): Update.
735 * go-valprint.c (go_val_print): Remove.
736 * go-lang.h (go_val_print): Don't declare.
737 * go-lang.c (go_language_defn): Update.
738 * f-valprint.c (f_val_print): Remove.
739 * f-lang.h (f_value_print): Don't declare.
740 * f-lang.c (f_language_defn): Update.
741 * d-valprint.c (d_val_print): Remove.
742 * d-lang.h (d_value_print): Don't declare.
743 * d-lang.c (d_language_defn): Update.
744 * cp-valprint.c (cp_print_value_fields)
745 (cp_print_value_fields_rtti, cp_print_value): Remove.
746 (cp_print_static_field): Update.
747 * c-valprint.c (c_val_print_array, c_val_print_ptr)
748 (c_val_print_struct, c_val_print_union, c_val_print_int)
749 (c_val_print_memberptr, c_val_print): Remove.
750 * c-lang.h (c_val_print_array, cp_print_value_fields)
751 (cp_print_value_fields_rtti): Don't declare.
752 * c-lang.c (c_language_defn, cplus_language_defn)
753 (asm_language_defn, minimal_language_defn): Update.
754 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
755 (ada_val_print_enum): Take a struct value.
756 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
757 (ada_val_print): Remove.
758 (ada_value_print_1): Update.
759 (printable_val_type): Remove.
760 * ada-lang.h (ada_val_print): Don't declare.
761 * ada-lang.c (ada_language_defn): Update.
762
42331a1e
TT
7632020-03-13 Tom Tromey <tom@tromey.com>
764
765 * valprint.c (do_val_print): Update.
766 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
767 a struct value.
768 (value_to_value_object_no_release): Declare.
769 * python/py-value.c (value_to_value_object_no_release): New
770 function.
771 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
772 struct value.
773 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
774 function.
775 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
776 a struct value.
777 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
778 Declare.
779 (gdbscm_apply_val_pretty_printer): Take a struct value.
780 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
781 value.
782 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
783 value.
784 * extension-priv.h (struct extension_language_ops)
785 <apply_val_pretty_printer>: Take a struct value.
786 * cp-valprint.c (cp_print_value): Create a struct value.
787 (cp_print_value): Update.
788
3a916a97
TT
7892020-03-13 Tom Tromey <tom@tromey.com>
790
791 * ada-valprint.c (print_field_values): Call common_val_print.
792
b59eac37
TT
7932020-03-13 Tom Tromey <tom@tromey.com>
794
795 * ada-valprint.c (val_print_packed_array_elements): Remove
796 bitoffset and val parameters. Call common_val_print.
797 (ada_val_print_string): Remove offset, address, and original_value
798 parameters.
799 (ada_val_print_array): Update.
800 (ada_value_print_array): New function.
801 (ada_value_print_1): Call it.
802
03371129
TT
8032020-03-13 Tom Tromey <tom@tromey.com>
804
805 * ada-valprint.c (ada_value_print): Use common_val_print.
806
2e088f8b
TT
8072020-03-13 Tom Tromey <tom@tromey.com>
808
809 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
810
39ef85a8
TT
8112020-03-13 Tom Tromey <tom@tromey.com>
812
813 * ada-valprint.c (ada_value_print_num): New function.
814 (ada_value_print_1): Use it.
815
b9fa6e07
TT
8162020-03-13 Tom Tromey <tom@tromey.com>
817
818 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
819
416595d6
TT
8202020-03-13 Tom Tromey <tom@tromey.com>
821
822 * ada-valprint.c (ada_value_print_ptr): New function.
823 (ada_value_print_1): Use it.
824
5b5e15ec
TT
8252020-03-13 Tom Tromey <tom@tromey.com>
826
827 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
828 call common_val_print.
829 (ada_val_print_1): Update.
830 (ada_value_print_1): New function.
831 (ada_value_print_inner): Rewrite.
832
fbf54e75
TT
8332020-03-13 Tom Tromey <tom@tromey.com>
834
835 * cp-valprint.c (cp_print_value_fields): Update.
836 (cp_print_value): New function.
837
64b653ca
TT
8382020-03-13 Tom Tromey <tom@tromey.com>
839
840 * m2-valprint.c (m2_value_print_inner): Use
841 cp_print_value_fields.
842 * cp-valprint.c (cp_print_value_fields): New function.
843 * c-valprint.c (c_value_print_struct): New function.
844 (c_value_print_inner): Use c_value_print_struct.
845 * c-lang.h (cp_print_value_fields): Declare.
846
6999f067
TT
8472020-03-13 Tom Tromey <tom@tromey.com>
848
849 * c-valprint.c (c_value_print_array): New function.
850 (c_value_print_inner): Use it.
851
ce80b8bd
TT
8522020-03-13 Tom Tromey <tom@tromey.com>
853
854 * c-valprint.c (c_value_print_memberptr): New function.
855 (c_value_print_inner): Use it.
856
2faac269
TT
8572020-03-13 Tom Tromey <tom@tromey.com>
858
859 * c-valprint.c (c_value_print_int): New function.
860 (c_value_print_inner): Use it.
861
da3e2c29
TT
8622020-03-13 Tom Tromey <tom@tromey.com>
863
864 * c-valprint.c (c_value_print_ptr): New function.
865 (c_value_print_inner): Use it.
866
50836231
TT
8672020-03-13 Tom Tromey <tom@tromey.com>
868
869 * c-valprint.c (c_value_print_inner): Rewrite.
870
4f412b6e
TT
8712020-03-13 Tom Tromey <tom@tromey.com>
872
873 * valprint.c (generic_value_print_complex): New function.
874 (generic_value_print): Use it.
875
f5354008
TT
8762020-03-13 Tom Tromey <tom@tromey.com>
877
878 * valprint.c (generic_val_print_float): Don't call
879 val_print_scalar_formatted.
880 (generic_val_print, generic_value_print): Update.
881
3eec3b05
TT
8822020-03-13 Tom Tromey <tom@tromey.com>
883
884 * valprint.c (generic_value_print_char): New function
885 (generic_value_print): Use it.
886
fdddfccb
TT
8872020-03-13 Tom Tromey <tom@tromey.com>
888
889 * valprint.c (generic_value_print_int): New function.
890 (generic_value_print): Use it.
891
6dde7521
TT
8922020-03-13 Tom Tromey <tom@tromey.com>
893
894 * valprint.c (generic_value_print_bool): New function.
895 (generic_value_print): Use it.
896
4112d2e6
TT
8972020-03-13 Tom Tromey <tom@tromey.com>
898
899 * valprint.c (generic_val_print_func): Simplify.
900 (generic_val_print, generic_value_print): Update.
901
65786af6
TT
9022020-03-13 Tom Tromey <tom@tromey.com>
903
904 * valprint.c (generic_val_print_flags): Remove.
905 (generic_val_print, generic_value_print): Update.
906 (val_print_type_code_flags): Add original_value parameter.
907
40f3ce18
TT
9082020-03-13 Tom Tromey <tom@tromey.com>
909
910 * valprint.c (generic_val_print): Update.
911 (generic_value_print): Update.
912 * valprint.c (generic_val_print_enum): Don't call
913 val_print_scalar_formatted.
914
2a5b130b
TT
9152020-03-13 Tom Tromey <tom@tromey.com>
916
917 * valprint.c (generic_value_print): Call generic_value_print_ptr.
918 * valprint.c (generic_value_print_ptr): New function.
919
abc66ce9
TT
9202020-03-13 Tom Tromey <tom@tromey.com>
921
922 * valprint.c (generic_value_print): Rewrite.
923
07a32858
TT
9242020-03-13 Tom Tromey <tom@tromey.com>
925
926 * p-valprint.c (pascal_object_print_value_fields)
927 (pascal_object_print_value): New functions.
928
64d64d3a
TT
9292020-03-13 Tom Tromey <tom@tromey.com>
930
931 * p-valprint.c (pascal_value_print_inner): Rewrite.
932
6a95a1f5
TT
9332020-03-13 Tom Tromey <tom@tromey.com>
934
935 * f-valprint.c (f_value_print_innner): Rewrite.
936
59fcdac6
TT
9372020-03-13 Tom Tromey <tom@tromey.com>
938
939 * m2-valprint.c (m2_print_unbounded_array): New overload.
940 (m2_print_unbounded_array): Update.
941 (m2_print_array_contents): Take a struct value.
942 (m2_value_print_inner): Rewrite.
943
d133c3e1
TT
9442020-03-13 Tom Tromey <tom@tromey.com>
945
946 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
947 (d_value_print_inner): New function.
948 * d-lang.h (d_value_print_inner): Declare.
949 * d-lang.c (d_language_defn): Use d_value_print_inner.
950
23b0f06b
TT
9512020-03-13 Tom Tromey <tom@tromey.com>
952
953 * go-valprint.c (go_value_print_inner): New function.
954 * go-lang.h (go_value_print_inner): Declare.
955 * go-lang.c (go_language_defn): Use go_value_print_inner.
956
5f56f7cb
TT
9572020-03-13 Tom Tromey <tom@tromey.com>
958
959 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
960 API.
961 (rust_val_print): Rewrite.
962 (rust_value_print_inner): New function, from rust_val_print.
963 (rust_language_defn): Use rust_value_print_inner.
964
26792ee0
TT
9652020-03-13 Tom Tromey <tom@tromey.com>
966
967 * ada-valprint.c (ada_value_print_inner): New function.
968 * ada-lang.h (ada_value_print_inner): Declare.
969 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
970
24051bbe
TT
9712020-03-13 Tom Tromey <tom@tromey.com>
972
973 * f-valprint.c (f_value_print_innner): New function.
974 * f-lang.h (f_value_print_innner): Declare.
975 * f-lang.c (f_language_defn): Use f_value_print_innner.
976
c0941be6
TT
9772020-03-13 Tom Tromey <tom@tromey.com>
978
979 * p-valprint.c (pascal_value_print_inner): New function.
980 * p-lang.h (pascal_value_print_inner): Declare.
981 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
982
62c4663d
TT
9832020-03-13 Tom Tromey <tom@tromey.com>
984
985 * m2-valprint.c (m2_value_print_inner): New function.
986 * m2-lang.h (m2_value_print_inner): Declare.
987 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
988
62182190
TT
9892020-03-13 Tom Tromey <tom@tromey.com>
990
991 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
992 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
993 * c-valprint.c (c_value_print_inner): New function.
994 * c-lang.h (c_value_print_inner): Declare.
995 * c-lang.c (c_language_defn, cplus_language_defn)
996 (asm_language_defn, minimal_language_defn): Use
997 c_value_print_inner.
998
1e592a8a
TT
9992020-03-13 Tom Tromey <tom@tromey.com>
1000
1001 * p-valprint.c (pascal_object_print_value_fields): Now static.
1002 * p-lang.h (pascal_object_print_value_fields): Don't declare.
1003
7fe471e9
TT
10042020-03-13 Tom Tromey <tom@tromey.com>
1005
1006 * c-valprint.c (c_val_print_array): Simplify.
1007
d121c6ce
TT
10082020-03-13 Tom Tromey <tom@tromey.com>
1009
1010 * valprint.c (value_print_array_elements): New function.
1011 * valprint.h (value_print_array_elements): Declare.
1012
4dba70ee
TT
10132020-03-13 Tom Tromey <tom@tromey.com>
1014
1015 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
1016 * mips-tdep.c (mips_print_register): Use
1017 value_print_scalar_formatted.
1018
4f9ae810
TT
10192020-03-13 Tom Tromey <tom@tromey.com>
1020
1021 * valprint.h (value_print_scalar_formatted): Declare.
1022 * valprint.c (value_print_scalar_formatted): New function.
1023
156bfec9
TT
10242020-03-13 Tom Tromey <tom@tromey.com>
1025
1026 * valprint.h (generic_value_print): Declare.
1027 * valprint.c (generic_value_print): New function.
1028
2b4e573d
TT
10292020-03-13 Tom Tromey <tom@tromey.com>
1030
1031 * valprint.c (do_val_print): Call la_value_print_inner, if
1032 available.
1033 * rust-lang.c (rust_language_defn): Update.
1034 * p-lang.c (pascal_language_defn): Update.
1035 * opencl-lang.c (opencl_language_defn): Update.
1036 * objc-lang.c (objc_language_defn): Update.
1037 * m2-lang.c (m2_language_defn): Update.
1038 * language.h (struct language_defn) <la_value_print_inner>: New
1039 member.
1040 * language.c (unknown_language_defn, auto_language_defn): Update.
1041 * go-lang.c (go_language_defn): Update.
1042 * f-lang.c (f_language_defn): Update.
1043 * d-lang.c (d_language_defn): Update.
1044 * c-lang.c (c_language_defn, cplus_language_defn)
1045 (asm_language_defn, minimal_language_defn): Update.
1046 * ada-lang.c (ada_language_defn): Update.
1047
a1f6a07c
TT
10482020-03-13 Tom Tromey <tom@tromey.com>
1049
1050 * c-valprint.c (c_value_print): Use common_val_print.
1051
410cf315
TT
10522020-03-13 Tom Tromey <tom@tromey.com>
1053
1054 * cp-valprint.c (cp_print_static_field): Use common_val_print.
1055
72a45c93
TT
10562020-03-13 Tom Tromey <tom@tromey.com>
1057
1058 * f-valprint.c (f77_print_array_1, f_val_print): Use
1059 common_val_print.
1060
040f66bd
TT
10612020-03-13 Tom Tromey <tom@tromey.com>
1062
1063 * riscv-tdep.c (riscv_print_one_register_info): Use
1064 common_val_print.
1065
a6e05a6c
TT
10662020-03-13 Tom Tromey <tom@tromey.com>
1067
1068 * mi/mi-main.c (output_register): Use common_val_print.
1069
3444c526
TT
10702020-03-13 Tom Tromey <tom@tromey.com>
1071
1072 * infcmd.c (default_print_one_register_info): Use
1073 common_val_print.
1074
c2a44efe
TT
10752020-03-13 Tom Tromey <tom@tromey.com>
1076
1077 * valprint.h (common_val_print_checked): Declare.
1078 * valprint.c (common_val_print_checked): New function.
1079 * stack.c (print_frame_arg): Use common_val_print_checked.
1080
b0c26e99
TT
10812020-03-13 Tom Tromey <tom@tromey.com>
1082
1083 * valprint.c (do_val_print): New function, from val_print.
1084 (val_print): Use do_val_print.
1085 (common_val_print): Use do_val_print.
1086
ce3acbe9
TT
10872020-03-13 Tom Tromey <tom@tromey.com>
1088
1089 * valprint.c (value_print): Use scoped_value_mark.
1090
96c7f873
TV
10912020-03-13 Tom de Vries <tdevries@suse.de>
1092
1093 PR symtab/25646
1094 * psymtab.c (partial_symtab::partial_symtab): Don't set
1095 globals_offset and statics_offset. Push element onto
1096 current_global_psymbols and current_static_psymbols stacks.
1097 (concat): New function.
1098 (end_psymtab_common): Set globals_offset and statics_offset. Pop
1099 element from current_global_psymbols and current_static_psymbols
1100 stacks. Concat popped elements to global_psymbols and
1101 static_symbols.
1102 (add_psymbol_to_list): Use current_global_psymbols and
1103 current_static_psymbols stacks.
1104 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
1105 current_static_psymbols fields.
1106
6ba0a321
CB
11072020-03-12 Christian Biesinger <cbiesinger@google.com>
1108
1109 * corelow.c (sniff_core_bfd): Remove.
1110 (class core_target) <m_core_vec>: Remove.
1111 (core_target::core_target): Update.
1112 (core_file_fns): Remove.
1113 (deprecated_add_core_fns): Remove.
1114 (default_core_sniffer): Remove.
1115 (sniff_core_bfd): Remove.
1116 (default_check_format): Remove.
1117 (gdb_check_format): Remove.
1118 (core_target_open): Update.
1119 (core_target::get_core_register_section): Update.
1120 (get_core_registers_cb): Update.
1121 (core_target::fetch_registers): Update.
1122 * gdbcore.h (struct core_fns): Remove.
1123 (deprecated_add_core_fns): Remove.
1124 (default_core_sniffer): Remove.
1125 (default_check_format): Remove.
1126
227031b2
TT
11272020-03-12 Tom Tromey <tom@tromey.com>
1128
1129 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
1130 CORE_ADDR.
1131 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
1132
53807e9f
TT
11332020-03-12 Tom Tromey <tom@tromey.com>
1134
1135 * remote.c (remote_target::download_tracepoint)
1136 (remote_target::enable_tracepoint)
1137 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
1138 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
1139 sprintf_vma.
1140
64f25102
TT
11412020-03-12 Tom Tromey <tom@tromey.com>
1142
1143 * symfile-mem.c: Update CORE_ADDR size assert.
1144
272cd5a3
SM
11452020-03-12 Simon Marchi <simon.marchi@efficios.com>
1146
1147 * selftest.m4: Move to gdbsupport/.
1148 * acinclude.m4: Update path to selftest.m4.
1149
74cd3f9d
SM
11502020-03-12 Simon Marchi <simon.marchi@efficios.com>
1151
1152 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
1153 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
1154 gdbarch-selfselftests.c and selftest-arch.c.
1155 (SUBDIR_UNITTESTS_OBS): Rename to...
1156 (SELFTESTS_OBS): ... this.
1157 (COMMON_SFILES): Remove disasm-selftests.c and
1158 gdbarch-selftests.c.
1159 * configure.ac: Don't add selftest-arch.{c,o} to
1160 CONFIG_{SRCS,OBS}.
1161 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
1162 preprocessor conditions.
1163
db6878ac
SM
11642020-03-12 Simon Marchi <simon.marchi@efficios.com>
1165
1166 * configure.ac: Don't source bfd/development.sh.
1167 * selftest.m4: Modify comment.
1168 * configure: Re-generate.
1169
4d696a5c
SM
11702020-03-12 Simon Marchi <simon.marchi@efficios.com>
1171
1172 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
1173 not "true" or "false".
1174 * configure: Re-generate.
1175
8dd8e1c7
CB
11762020-03-12 Christian Biesinger <cbiesinger@google.com>
1177
1178 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
1179 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
1180 renamed to arm_nbsd_supply_gregset.
1181 (fetch_register): Update to call arm_nbsd_supply_gregset.
1182 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
1183 (arm_netbsd_nat_target::fetch_registers): Update.
1184 (fetch_elfcore_registers): Removed.
1185 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
1186 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
1187 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
1188 not require NetBSD system headers.
1189 (arm_nbsd_regset): New struct.
1190 (arm_nbsd_iterate_over_regset_sections): New function.
1191 (arm_netbsd_init_abi_common): Updated to call
1192 set_gdbarch_iterate_over_regset_sections.
1193 * arm-nbsd-tdep.h: New file.
1194
dd69bf7a
KB
11952020-03-11 Kevin Buettner <kevinb@redhat.com>
1196
1197 * symtab.c (find_pc_sect_line): Add check which prevents infinite
1198 recursion.
1199
a0761e34
SM
12002020-03-11 Simon Marchi <simon.marchi@efficios.com>
1201
1202 * configure: Re-generate.
1203
e7a82140
TT
12042020-03-11 Tom Tromey <tromey@adacore.com>
1205
1206 * ada-typeprint.c (print_choices): Fix comment.
1207
dcc050c8
AB
12082020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
1209
1210 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
1211 previous item in the list, when the list has no items.
1212
1c33af77
TV
12132020-03-11 Tom de Vries <tdevries@suse.de>
1214
1215 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
1216 PROP_LOCLIST handling code.
1217
8c95582d
AB
12182020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
1219
1220 * buildsym-legacy.c (record_line): Pass extra parameter to
1221 record_line.
1222 * buildsym.c (buildsym_compunit::record_line): Take an extra
1223 parameter, reduce duplication in the line table, and record the
1224 is_stmt flag in the line table.
1225 * buildsym.h (buildsym_compunit::record_line): Add extra
1226 parameter.
1227 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
1228 non-statement lines.
1229 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
1230 this to the symtab builder.
1231 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
1232 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
1233 through to dwarf_record_line_1.
1234 * infrun.c (process_event_stop_test): When stepping, don't stop at
1235 a non-statement instruction, and only refresh the step info when
1236 we land in the middle of a line's range. Also add an extra
1237 comment.
1238 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
1239 field.
1240 * record-btrace.c (btrace_find_line_range): Only record lines
1241 marked as is-statement.
1242 * stack.c (frame_show_address): Show the frame address if we are
1243 in a non-statement sal.
1244 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
1245 (maintenance_print_one_line_table): Print a header for the is_stmt
1246 column, and include is_stmt information in the output.
1247 * symtab.c (find_pc_sect_line): Find lines marked as statements in
1248 preference to non-statements.
1249 (find_pcs_for_symtab_line): Prefer is-statement entries.
1250 (find_line_common): Likewise.
1251 * symtab.h (struct linetable_entry): Add is_stmt field.
1252 (struct symtab_and_line): Likewise.
1253 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
1254 arranging the line table.
1255
e4003a34
TV
12562020-03-07 Tom de Vries <tdevries@suse.de>
1257
1258 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
1259 DIE.
1260
e8932576
TT
12612020-03-07 Tom Tromey <tom@tromey.com>
1262
1263 * valops.c (value_literal_complex): Remove obsolete comment.
1264 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
1265 comment.
1266
29734269
SM
12672020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
1268
1269 * infrun.h: Forward-declare thread_info.
1270 (set_step_info): Add thread_info parameter, add doc.
1271 * infrun.c (set_step_info): Add thread_info parameter, move doc
1272 to header.
1273 * infrun.c (process_event_stop_test): Pass thread to
1274 set_step_info call.
1275 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
1276 set_step_info.
1277 (prepare_one_step): Add thread_info parameter, pass it to
1278 set_step_frame and prepare_one_step (recursive) call.
1279 (step_1): Pass thread to prepare_one_step call.
1280 (step_command_fsm::should_stop): Pass thread to
1281 prepare_one_step.
1282 (until_next_fsm): Pass thread to set_step_frame call.
1283 (finish_command): Pass thread to set_step_info call.
1284
b7d64b29
HD
12852020-03-06 Hannes Domani <ssbssa@yahoo.de>
1286
1287 * windows-tdep.c (windows_solib_create_inferior_hook):
1288 Check if inferior is running.
1289
09f2921c
TV
12902020-03-06 Tom de Vries <tdevries@suse.de>
1291
1292 * NEWS: Fix "the the".
1293 * ctfread.c: Same.
1294
fd760e79
TV
12952020-03-06 Tom de Vries <tdevries@suse.de>
1296
1297 * psymtab.c (psymtab_to_symtab): Don't print "done.".
1298
20ea4a60
AB
12992020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1300
1301 * .dir-locals.el: Add a comment referencing the other copies of
1302 this file.
1303
0afbabf0
JB
13042020-03-05 John Baldwin <jhb@FreeBSD.org>
1305
1306 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
1307 psargs.
1308
842806cb
TBA
13092020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1310
1311 * .gitattributes: New file.
1312
be1e3d3e
TT
13132020-03-04 Tom Tromey <tom@tromey.com>
1314
1315 * symmisc.c (print_symbol_bcache_statistics)
1316 (print_objfile_statistics): Update.
1317 * symfile.c (allocate_symtab): Use intern.
1318 * psymtab.c (partial_symtab::partial_symtab): Use intern.
1319 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
1320 macro_cache>: Remove.
1321 <string_cache>: New member.
1322 (struct objfile) <intern>: New methods.
1323 * elfread.c (elf_symtab_read): Use intern.
1324 * dwarf2/read.c (fixup_go_packaging): Intern package name.
1325 (dwarf2_compute_name, dwarf2_physname)
1326 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
1327 names.
1328 (guess_partial_die_structure_name): Update.
1329 (partial_die_info::fixup): Intern name.
1330 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
1331 name.
1332 (dwarf2_name): Intern name. Update.
1333 * buildsym.c (buildsym_compunit::get_macro_table): Use
1334 string_cache.
1335
4e7625fd
TT
13362020-03-04 Tom Tromey <tom@tromey.com>
1337
1338 * jit.c (bfd_open_from_target_memory): Make "target" const.
1339 * corefile.c (gnutarget): Now const.
1340 * gdbcore.h (gnutarget): Now const.
1341
46f9f931
HD
13422020-03-04 Hannes Domani <ssbssa@yahoo.de>
1343
1344 * NEWS: Mention support for WOW64 processes.
1345 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
1346 (amd64_windows_segment_register_p): Remove static.
1347 (_initialize_amd64_windows_nat): Update.
1348 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
1349 * i386-windows-nat.c (context_offset): Update.
1350 (i386_mappings): Rename and remove static.
1351 (i386_windows_segment_register_p): Remove static.
1352 (_initialize_i386_windows_nat): Update.
1353 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
1354 (STATUS_WX86_SINGLE_STEP): New macro.
1355 (EnumProcessModulesEx): New macro.
1356 (Wow64SuspendThread): New macro.
1357 (Wow64GetThreadContext): New macro.
1358 (Wow64SetThreadContext): New macro.
1359 (Wow64GetThreadSelectorEntry): New macro.
1360 (windows_set_context_register_offsets): Add static.
1361 (windows_set_segment_register_p): Likewise.
1362 (windows_add_thread): Adapt for WOW64 processes.
1363 (windows_fetch_one_register): Likewise.
1364 (windows_nat_target::fetch_registers): Likewise.
1365 (windows_store_one_register): Likewise.
1366 (display_selector): Likewise.
1367 (display_selectors): Likewise.
1368 (handle_exception): Likewise.
1369 (windows_continue): Likewise.
1370 (windows_nat_target::resume): Likewise.
1371 (windows_add_all_dlls): Likewise.
1372 (do_initial_windows_stuff): Likewise.
1373 (windows_nat_target::attach): Likewise.
1374 (windows_get_exec_module_filename): Likewise.
1375 (windows_nat_target::create_inferior): Likewise.
1376 (windows_xfer_siginfo): Likewise.
1377 (_initialize_loadable): Initialize Wow64SuspendThread,
1378 Wow64GetThreadContext, Wow64SetThreadContext,
1379 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
1380 * windows-nat.h (windows_set_context_register_offsets):
1381 Remove declaration.
1382 (windows_set_segment_register_p): Likewise.
1383 (i386_windows_segment_register_p): Add declaration.
1384 (amd64_windows_segment_register_p): Likewise.
1385
440cf44e
LM
13862020-03-04 Luis Machado <luis.machado@linaro.org>
1387
1388 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
1389 in "info registers" for AArch64/ARM.
1390
1391 The change caused "info registers" to not print GPR's.
1392
1393 gdb/ChangeLog:
1394
1395 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
1396
1397 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
1398 when reg->group is empty and reggroup is not.
1399
1009d92f
TT
14002020-03-03 Tom Tromey <tromey@adacore.com>
1401
1402 * dwarf2/frame.c (struct dwarf2_frame_cache)
1403 <checked_tailcall_bottom, entry_cfa_sp_offset,
1404 entry_cfa_sp_offset_p>: Remove members.
1405 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
1406 (dwarf2_frame_prev_register): Don't call
1407 dwarf2_tailcall_sniffer_first.
1408 (dwarf2_append_unwinders): Don't append tailcall unwinder.
1409 * frame-unwind.c (add_unwinder): New fuction.
1410 (frame_unwind_init): Use it. Add tailcall unwinder.
1411
5e5d66b6
AB
14122020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
1413 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1414
1415 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
1416 value should be printed as true.
1417
584cf46d
HD
14182020-03-03 Hannes Domani <ssbssa@yahoo.de>
1419
1420 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
1421 (windows_init_abi): Set and use windows_so_ops.
1422
7b973adc
SDJ
14232020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
1424
1425 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
1426 when verifying if dealing with a convenience variable.
1427
bb7b70ab
LM
14282020-03-03 Luis Machado <luis.machado@linaro.org>
1429
1430 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
1431
9822cb57
SM
14322020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1433
1434 * infrun.c (gdbarch_supports_displaced_stepping): New.
1435 (use_displaced_stepping): Break up conditions in smaller pieces.
1436 Use gdbarch_supports_displaced_stepping.
1437 (displaced_step_prepare_throw): Use
1438 gdbarch_supports_displaced_stepping.
1439
63e163f2
AB
14402020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
1441
1442 * NEWS: Mention new behaviour of the history filename.
1443 * top.c (write_history_p): Add comment.
1444 (show_write_history_p): Add header comment, give a different
1445 message when history writing is on, but the history filename is
1446 empty.
1447 (history_filename): Add comment.
1448 (history_filename_empty): New function.
1449 (show_history_filename): Add header comment, give a different
1450 message when the filename is empty.
1451 (init_history): Compare history_filename against nullptr, and only
1452 read history if the filename is not empty.
1453 (set_history_filename): Add header comment, and only make
1454 non-empty filenames absolute.
1455 (init_main): Make the filename argument to 'set history filename'
1456 optional.
1457
81b86b97
CB
14582020-03-02 Christian Biesinger <cbiesinger@google.com>
1459
1460 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
1461 (arm_supply_vfpregset): ...this, and update to use VFP registers.
1462 (fetch_fp_register): Update.
1463 (fetch_fp_regs): Update.
1464 (store_fp_register): Update.
1465 (store_fp_regs): Update.
1466 (arm_netbsd_nat_target::read_description): New function.
1467 (fetch_elfcore_registers): Update.
1468
24ed6739
AB
14692020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
1470
1471 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
1472 general_thread if the stop reply is missing a thread-id.
1473 (remote_target::process_stop_reply): Use the first non-exited
1474 thread if the target didn't pass a thread-id.
1475 * infrun.c (do_target_wait): Move call to
1476 switch_to_inferior_no_thread to ....
1477 (do_target_wait_1): ... here.
1478
a84bb2a0
JT
14792020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
1480
1481 * debuginfod-support.c: Include defs.h first.
1482
658dadf0
TV
14832020-02-28 Tom de Vries <tdevries@suse.de>
1484
1485 * symfile.c (set_initial_language): Use default language for lookup.
1486
4ebe4877
SM
14872020-02-28 Simon Marchi <simon.marchi@efficios.com>
1488
1489 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
1490 reader variable, pass `this` to read_cutu_die_from_dwo.
1491
e5da1139
AM
14922020-02-27 Aaron Merey <amerey@redhat.com>
1493
1494 * source.c (open_source_file): Check for nullptr when computing
1495 srcpath.
1496
317f7127
TT
14972020-02-27 Tom Tromey <tromey@adacore.com>
1498
1499 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
1500 member.
1501 (dwarf2_add_field): Don't update nfields.
1502 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
1503
3104d9ee
AB
15042020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1505
1506 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
1507 abs.
1508
b83470bf
TT
15092020-02-26 Tom Tromey <tom@tromey.com>
1510
1511 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
1512 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
1513 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
1514 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
1515 per_cu_data.
1516
edfe0a0c
TT
15172020-02-26 Tom Tromey <tom@tromey.com>
1518
1519 * dwarf2/index-write.c (psym_index_map): Change type.
1520 (add_address_entry_worker, write_one_signatured_type)
1521 (recursively_count_psymbols, recursively_write_psymbols)
1522 (class debug_names, psyms_seen_size, write_gdbindex)
1523 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
1524
0d79cdc4
AM
15252020-02-26 Aaron Merey <amerey@redhat.com>
1526
1527 * Makefile.in: Handle optional debuginfod support.
1528 * NEWS: Update.
1529 * README: Add --with-debuginfod summary.
1530 * config.in: Regenerate.
1531 * configure: Regenerate.
1532 * configure.ac: Handle optional debuginfod support.
1533 * debuginfod-support.c: debuginfod helper functions.
1534 * debuginfod-support.h: Ditto.
1535 * doc/gdb.texinfo: Add --with-debuginfod to configure options
1536 summary.
1537 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
1538 when a dwz file cannot be found.
1539 * elfread.c (elf_symfile_read): Query debuginfod servers when a
1540 debuginfo file cannot be found.
1541 * source.c (open_source_file): Query debuginfod servers when a
1542 source file cannot be found.
1543 * top.c (print_gdb_configuration): Include
1544 --{with,without}-debuginfod in the output.
1545
b65ce565
JG
15462020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
1547
1548 * thread.c (thr_try_catch_cmd): Print thread name.
1549
d4c9a4f8
SM
15502020-02-26 Simon Marchi <simon.marchi@efficios.com>
1551
1552 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
1553 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
1554 dwarf2_fetch_die_type_sect_off): Move to...
1555 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
1556 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
1557 dwarf2_fetch_die_type_sect_off): ... here.
1558 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
1559 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
1560 dwarf2_fetch_die_type_sect_off): Move doc to header file.
1561
0dce4280
TV
15622020-02-26 Tom de Vries <tdevries@suse.de>
1563
1564 PR gdb/25603
1565 * symfile.c (set_initial_language): Exit-early if
1566 language_mode == language_mode_manual.
1567
450a1bfc
SM
15682020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1569
1570 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
1571 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
1572 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
1573
9e80cfa1
AB
15742020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1575
1576 * gdbtypes.c (create_array_type_with_stride): Handle negative
1577 array strides.
1578 * valarith.c (value_subscripted_rvalue): Likewise.
1579
09624f1f
LM
15802020-02-25 Luis Machado <luis.machado@linaro.org>
1581
1582 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
1583
8cb5117c
SM
15842020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1585
1586 * loc.h (dwarf2_get_die_type): Move to...
1587 * read.h (dwarf2_get_die_type): ... here.
1588 * read.c (dwarf2_get_die_type): Move doc to header.
1589
c325c44e
JB
15902020-02-25 Joel Brobecker <brobecker@adacore.com>
1591
1592 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
1593 'gnulib/Makefile.in' to the list.
1594
4ac93832
TT
15952020-02-24 Tom Tromey <tom@tromey.com>
1596
1597 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
1598 Remove.
1599 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
1600 XOBNEWVEC.
1601
197400e8
TT
16022020-02-24 Tom Tromey <tom@tromey.com>
1603
1604 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
1605 New method.
1606 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
1607 (dw2_do_instantiate_symtab, dw2_get_file_names)
1608 (build_type_psymtab_dependencies, load_full_type_unit): Update.
1609
76935768
TT
16102020-02-24 Tom Tromey <tom@tromey.com>
1611
1612 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
1613 make_scoped_restore.
1614 (dwarf2_psymtab::read_symtab): Don't clear
1615 reading_partial_symbols.
1616
a88ef40d
TV
16172020-02-24 Tom de Vries <tdevries@suse.de>
1618
1619 PR gdb/25592
1620 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
1621
c9af6521
TV
16222020-02-24 Tom de Vries <tdevries@suse.de>
1623
1624 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
1625 commands layout next/prev/regs.
1626
5707a07a
TT
16272020-02-22 Tom Tromey <tom@tromey.com>
1628
1629 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
1630 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
1631
3b0fb49e
TT
16322020-02-22 Tom Tromey <tom@tromey.com>
1633
1634 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
1635
283be8bf
TT
16362020-02-22 Tom Tromey <tom@tromey.com>
1637
1638 * tui/tui-win.c (_initialize_tui_win): Add usage text.
1639 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
1640 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
1641 * tui/tui.c (_initialize_tui): Add usage text.
1642
ca793b96
TT
16432020-02-22 Tom Tromey <tom@tromey.com>
1644
1645 * tui/tui-win.c (tui_set_focus_command)
1646 (tui_set_win_height_command): Use error_no_arg.
1647 (_initialize_tui_win): Update help text.
1648 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
1649
432b5c40
TT
16502020-02-22 Tom Tromey <tom@tromey.com>
1651
1652 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
1653 * tui/tui-disasm.h (struct tui_disasm_window)
1654 <display_start_addr>: Declare.
1655 * tui/tui-source.h (struct tui_source_window)
1656 <display_start_addr>: Declare.
1657 * tui/tui-winsource.h (struct tui_source_window_base)
1658 <show_source_line, display_start_addr>: New methods.
1659 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
1660 Rename and move to protected section.
1661 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
1662 (tui_source_window_base::do_erase_source_content): Update.
1663 (tui_source_window_base::show_source_line): Now a method.
1664 (tui_source_window_base::show_source_content)
1665 (tui_source_window_base::tui_source_window_base)
1666 (tui_source_window_base::rerender)
1667 (tui_source_window_base::refill)
1668 (tui_source_window_base::do_scroll_horizontal)
1669 (tui_source_window_base::set_is_exec_point_at)
1670 (tui_source_window_base::update_breakpoint_info)
1671 (tui_source_window_base::update_exec_info): Update.
1672 * tui/tui-source.c (tui_source_window::set_contents)
1673 (tui_source_window::showing_source_p)
1674 (tui_source_window::do_scroll_vertical)
1675 (tui_source_window::location_matches_p)
1676 (tui_source_window::line_is_displayed): Update.
1677 (tui_source_window::display_start_addr): New method.
1678 * tui/tui-disasm.c (tui_disasm_window::set_contents)
1679 (tui_disasm_window::do_scroll_vertical)
1680 (tui_disasm_window::location_matches_p): Update.
1681 (tui_disasm_window::display_start_addr): New method.
1682
01b1af32
TT
16832020-02-22 Tom Tromey <tom@tromey.com>
1684
1685 * NEWS: Add entry for gdb.register_window_type.
1686 * tui/tui-layout.h (window_factory): New typedef.
1687 (tui_register_window): Declare.
1688 * tui/tui-layout.c (saved_tui_windows): New global.
1689 (tui_apply_current_layout): Use it.
1690 (tui_register_window): New function.
1691 * python/python.c (do_start_initialization): Call
1692 gdbpy_initialize_tui.
1693 (python_GdbMethods): Add "register_window_type" function.
1694 * python/python-internal.h (gdbpy_register_tui_window)
1695 (gdbpy_initialize_tui): Declare.
1696 * python/py-tui.c: New file.
1697 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
1698
fc96d20b
TT
16992020-02-22 Tom Tromey <tom@tromey.com>
1700
1701 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
1702
935c78c0
TT
17032020-02-22 Tom Tromey <tom@tromey.com>
1704
1705 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
1706 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
1707 * tui/tui-data.c (tui_set_win_with_focus): Remove.
1708 (tui_set_win_focus_to): Move from tui-win.c.
1709
0240c8f1
TT
17102020-02-22 Tom Tromey <tom@tromey.com>
1711
1712 * tui/tui-layout.c (make_standard_window, get_locator_window): New
1713 functions.
1714 (known_window_types): New global.
1715 (tui_get_window_by_name): Reimplement.
1716 (initialize_known_windows): New function.
1717 (validate_window_name): Rewrite.
1718 (_initialize_tui_layout): Call initialize_known_windows.
1719
fdb01f0c
TT
17202020-02-22 Tom Tromey <tom@tromey.com>
1721
1722 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
1723 Remove constants.
1724 * tui/tui-winsource.h (struct tui_source_window_base)
1725 <tui_source_window_base>: Remove parameter.
1726 * tui/tui-winsource.c
1727 (tui_source_window_base::tui_source_window_base): Remove
1728 parameter.
1729 (tui_source_window_base::refill): Update.
1730 * tui/tui-stack.h (struct tui_locator_window)
1731 <tui_locator_window>: Update.
1732 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
1733 Default the constructor.
1734 * tui/tui-regs.h (struct tui_data_item_window)
1735 <tui_data_item_window>: Default the constructor.
1736 (struct tui_data_window) <tui_data_window>: Likewise.
1737 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
1738 Default the constructor.
1739 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
1740 Default the constructor.
1741 <type>: Remove.
1742 (struct tui_win_info) <tui_win_info>: Default the constructor.
1743 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
1744 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1745 Default the constructor.
1746
865a5aec
TT
17472020-02-22 Tom Tromey <tom@tromey.com>
1748
1749 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
1750 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
1751 * tui/tui-win.c (tui_resize_all): Don't call
1752 tui_delete_invisible_windows.
1753 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
1754 done.
1755 (tui_set_layout): Update.
1756 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
1757 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
1758 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
1759
e098d18c
TT
17602020-02-22 Tom Tromey <tom@tromey.com>
1761
1762 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
1763 correctly.
1764
eb9c8874
TT
17652020-02-22 Tom Tromey <tom@tromey.com>
1766
1767 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
1768
7eed1a8e
TT
17692020-02-22 Tom Tromey <tom@tromey.com>
1770
1771 * tui/tui-winsource.h (struct tui_source_window_iterator)
1772 <inner_iterator>: New etytypedef.
1773 <tui_source_window_iterator>: Take "end" parameter.
1774 <tui_source_window_iterator>: Take iterator.
1775 <operator*, advance>: Update.
1776 <m_iter>: Change type.
1777 <m_end>: New field.
1778 (struct tui_source_windows) <begin, end>: Update.
1779 * tui/tui-layout.c (tui_windows): New global.
1780 (tui_apply_current_layout): Clear tui_windows.
1781 (tui_layout_window::apply): Update tui_windows.
1782 * tui/tui-data.h (tui_windows): Declare.
1783 (all_tui_windows): Now inline function.
1784 (class tui_window_iterator, struct all_tui_windows): Remove.
1785
7c043ba6
TT
17862020-02-22 Tom Tromey <tom@tromey.com>
1787
1788 PR tui/17850:
1789 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
1790 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
1791 "height" argument.
1792 (class tui_layout_window) <get_sizes>: Likewise.
1793 (class tui_layout_split) <tui_layout_split>: Add "vertical"
1794 argument.
1795 <get_sizes>: Add "height" argument.
1796 <m_vertical>: New field.
1797 * tui/tui-layout.c (tui_layout_split::clone): Update.
1798 (tui_layout_split::get_sizes): Add "height" argument.
1799 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
1800 (tui_new_layout_command): Parse "-horizontal".
1801 (_initialize_tui_layout): Update help string.
1802 (tui_layout_split::specification): Add "-horizontal" when needed.
1803 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
1804 argument.
1805 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
1806 New methods.
1807
6bc56648
TT
18082020-02-22 Tom Tromey <tom@tromey.com>
1809
1810 * tui/tui-layout.h (enum tui_adjust_result): New.
1811 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
1812 (class tui_layout_window) <adjust_size>: Return
1813 tui_adjust_result. Rewrite.
1814 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
1815 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
1816
c22fef7e
TT
18172020-02-22 Tom Tromey <tom@tromey.com>
1818
1819 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
1820 parameter and return types.
1821 (class tui_layout_base) <specification>: Add "depth".
1822 (class tui_layout_window) <specification>: Add "depth".
1823 (class tui_layout_split) <specification>: Add "depth".
1824 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
1825 and return types.
1826 (tui_new_layout_command): Parse sub-layouts.
1827 (_initialize_tui_layout): Update help string.
1828 (tui_layout_window::specification): Add "depth".
1829 (add_layout_command): Update.
1830
ee325b61
TT
18312020-02-22 Tom Tromey <tom@tromey.com>
1832
1833 * NEWS: Add "tui new-layout" item.
1834 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
1835 Add new-layout command to help text.
1836 (validate_window_name): New function.
1837 (tui_new_layout_command): New function.
1838 (_initialize_tui_layout): Register "new-layout".
1839 (tui_layout_window::specification): New method.
1840 (tui_layout_window::specification): New method.
1841 * tui/tui-layout.h (class tui_layout_base) <specification>: New
1842 method.
1843 (class tui_layout_window) <specification>: New method.
1844 (class tui_layout_split) <specification>: New method.
1845
416eb92d
TT
18462020-02-22 Tom Tromey <tom@tromey.com>
1847
1848 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
1849 * tui/tui-win.c (window_name_completer): Update comment.
1850 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
1851 Declare method.
1852 (class tui_layout_window) <replace_window>: Likewise.
1853 (class tui_layout_split) <replace_window>: Likewise.
1854 (tui_set_layout): Don't declare.
1855 (tui_set_initial_layout): Declare function.
1856 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
1857 (asm_regs_layout): New globals.
1858 (tui_current_layout, show_layout): Remove.
1859 (tui_set_layout, tui_add_win_to_layout): Rewrite.
1860 (find_layout, tui_apply_layout): New function.
1861 (layout_completer): Remove.
1862 (tui_next_layout): Reimplement.
1863 (tui_next_layout_command): New function.
1864 (tui_set_initial_layout, tui_prev_layout_command): New functions.
1865 (tui_regs_layout): Reimplement.
1866 (tui_regs_layout_command): New function.
1867 (extract_display_start_addr): Rewrite.
1868 (next_layout, prev_layout): Remove.
1869 (tui_layout_window::replace_window): New method.
1870 (tui_layout_split::replace_window): New method.
1871 (destroy_layout): New function.
1872 (layout_list): New global.
1873 (add_layout_command): New function.
1874 (initialize_layouts): Update.
1875 (tui_layout_command): New function.
1876 (_initialize_tui_layout): Install "layout" commands.
1877 * tui/tui-data.h (enum tui_layout_type): Remove.
1878 (tui_current_layout): Don't declare.
1879
0dbc2fc7
TT
18802020-02-22 Tom Tromey <tom@tromey.com>
1881
1882 * tui/tui-regs.c (tui_reg_layout): Remove.
1883 (tui_reg_command): Use tui_regs_layout.
1884 * tui/tui-layout.h (tui_reg_command): Declare.
1885 * tui/tui-layout.c (tui_reg_command): New function.
1886
5afe342e
TT
18872020-02-22 Tom Tromey <tom@tromey.com>
1888
1889 * tui/tui.c (tui_rl_delete_other_windows): Call
1890 tui_remove_some_windows.
1891 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
1892 Declare method.
1893 (class tui_layout_window) <remove_windows>: New method.
1894 (class tui_layout_split) <remove_windows>: Declare.
1895 (tui_remove_some_windows): Declare.
1896 * tui/tui-layout.c (tui_remove_some_windows): New function.
1897 (tui_layout_split::remove_windows): New method.
1898
427326a8
TT
18992020-02-22 Tom Tromey <tom@tromey.com>
1900
1901 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
1902 * tui/tui-layout.h (tui_next_layout): Declare.
1903 * tui/tui-layout.c (tui_next_layout): New function.
1904
3fe12b6d
TT
19052020-02-22 Tom Tromey <tom@tromey.com>
1906
1907 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
1908 correct coordinates.
1909
59b8b5d2
TT
19102020-02-22 Tom Tromey <tom@tromey.com>
1911
1912 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
1913 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
1914 DATA_WIN case.
1915
2a3d458b
TT
19162020-02-22 Tom Tromey <tom@tromey.com>
1917
1918 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
1919 TUI_DISASM_WIN, not tui_win_list.
1920
3f0cbb04
TT
19212020-02-22 Tom Tromey <tom@tromey.com>
1922
1923 * valprint.c (generic_val_print_enum_1)
1924 (val_print_type_code_flags): Style member names.
1925 * rust-lang.c (val_print_struct, rust_print_enum)
1926 (rust_print_struct_def, rust_internal_print_type): Style member
1927 names.
1928 * p-valprint.c (pascal_object_print_value_fields): Style member
1929 names. Only call fprintf_symbol_filtered for static members.
1930 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
1931 * f-valprint.c (f_val_print): Style member names.
1932 * f-typeprint.c (f_type_print_base): Style member names.
1933 * cp-valprint.c (cp_print_value_fields): Style member names. Only
1934 call fprintf_symbol_filtered for static members.
1935 (cp_print_class_member): Style member names.
1936 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
1937 member names.
1938 * ada-valprint.c (ada_print_scalar): Style enum names.
1939 (ada_val_print_enum): Likewise.
1940 * ada-typeprint.c (print_enum_type): Style enum names.
1941
d4d947ae
TT
19422020-02-21 Tom Tromey <tom@tromey.com>
1943
1944 * psympriv.h (struct partial_symtab): Update comment.
1945
e94e944b
TT
19462020-02-21 Tom Tromey <tromey@adacore.com>
1947
1948 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
1949 type is CORE_ADDR.
1950
1eb73179
TV
19512020-02-21 Tom de Vries <tdevries@suse.de>
1952
1953 PR gdb/25534
1954 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
1955 if dependencies[i]->user != NULL.
1956
4f180d53
AT
19572020-02-21 Ali Tamur <tamur@google.com>
1958
1959 * dwarf2/read.c (dwarf2_name): Add null check.
1960
22b6cd70
TT
19612020-02-20 Tom Tromey <tom@tromey.com>
1962
1963 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
1964 ">=", in binary search.
1965 (dwarf2_find_containing_comp_unit): New overload.
1966 (run_test): New self-test.
1967 (_initialize_dwarf2_read): Register new test.
1968
bd0cf5a6
NC
19692020-02-20 Nelson Chu <nelson.chu@sifive.com>
1970
1971 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
1972 * riscv-tdep.h: Likewise.
1973 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
1974 rv32-only CSR.
1975 * features/riscv/64bit-csr.xml: Regenerated.
1976
3f702acd
SDJ
19772020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
1978 Tom Tromey <tom@tromey.com>
1979
1980 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
1981 of 'fputc_unfiltered'.
1982 (putchar_unfiltered): Call 'fputc_unfiltered'.
1983 (fputc_unfiltered): Call 'fputs_unfiltered'.
1984
d13c7322
AB
19852020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
1986
1987 * config.in: Regenerate.
1988 * configure: Regenerate.
1989 * configure.ac: Add --with-python-libdir option.
1990 * main.c: Use WITH_PYTHON_LIBDIR.
1991
869d8950
TT
19922020-02-19 Tom Tromey <tom@tromey.com>
1993
1994 * symtab.c (general_symbol_info::compute_and_set_names): Use
1995 obstack_strndup. Simplify call to symbol_set_demangled_name.
1996
298e9637
SM
19972020-02-19 Simon Marchi <simon.marchi@efficios.com>
1998
1999 * dwarf2/read.c (allocate_signatured_type_table,
2000 allocate_dwo_unit_table, allocate_type_unit_groups_table,
2001 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
2002 Remove objfile parameter, update all callers.
2003
08410482
DE
20042020-02-19 Doug Evans <dje@google.com>
2005
2006 PR rust/25535
2007 * rust-lang.c (rust_print_enum): Apply embedded_offset to
2008 rust_enum_variant calculation.
2009
dfdeeca1
TT
20102020-02-19 Tom Tromey <tromey@adacore.com>
2011
2012 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
2013
2ef5453b
TT
20142020-02-19 Tom Tromey <tromey@adacore.com>
2015
2016 * ada-lang.c (cache_symbol): Use obstack_strdup.
2017
9f1528a1
AB
20182020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
2019
2020 * configure: Regenerate.
2021
d3c22fa8
TT
20222020-02-19 Tom Tromey <tromey@adacore.com>
2023
2024 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
2025 NULL check.
2026
bf84f706
MR
20272020-02-19 Maciej W. Rozycki <macro@wdc.com>
2028
2029 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
2030
d1c9b20f
AB
20312020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
2032
2033 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
2034 if GDBSERVER is not defined.
2035 (riscv_tdesc_cache): Likewise, also store const target_desc.
2036 (STATIC_IN_GDB): Define.
2037 (riscv_create_target_description): Update declaration with
2038 STATIC_IN_GDB.
2039 (riscv_lookup_target_description): New function, only define if
2040 GDBSERVER is not defined.
2041 * arch/riscv.h (riscv_create_target_description): Declare only
2042 when GDBSERVER is defined.
2043 (riscv_lookup_target_description): New declaration when GDBSERVER
2044 is not defined.
2045 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
2046 (riscv_linux_read_features): ...this, and return
2047 riscv_gdbarch_features instead of target_desc.
2048 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
2049 (riscv_linux_read_description): Rename to...
2050 (riscv_linux_read_features): ...this.
2051 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
2052 Update to use riscv_gdbarch_features and
2053 riscv_lookup_target_description.
2054 * riscv-tdep.c (riscv_find_default_target_description): Use
2055 riscv_lookup_target_description instead of
2056 riscv_create_target_description.
2057
373d7ac0
SM
20582020-02-18 Simon Marchi <simon.marchi@efficios.com>
2059
2060 * valprint.c (generic_val_print_enum_1): When printing a flag
2061 enum with value 0 and there is no enumerator with value 0, print
2062 just "0" instead of "(unknown: 0x0)".
2063
b29a2df0
SM
20642020-02-18 Simon Marchi <simon.marchi@efficios.com>
2065
2066 * valprint.c (generic_val_print_enum_1): Print unknown part of
2067 flag enum in hex.
2068
6740f0cc
SM
20692020-02-18 Simon Marchi <simon.marchi@efficios.com>
2070
2071 * dwarf2/read.c (update_enumeration_type_from_children): Allow
2072 flag enums to contain duplicate enumerators.
2073 * valprint.c (generic_val_print_enum_1): Update comment.
2074
edd45eb0
SM
20752020-02-18 Simon Marchi <simon.marchi@efficios.com>
2076
2077 * dwarf2/read.c: Include "count-one-bits.h".
2078 (update_enumeration_type_from_children): If an enumerator has
2079 multiple bits set, don't treat the enumeration as a "flag enum".
2080 * valprint.c (generic_val_print_enum_1): Assert that enumerators
2081 of flag enums have 0 or 1 bit set.
2082
6d0cf446
BE
20832020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
2084
2085 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
2086 conversion.
2087 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
2088 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2089 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2090 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2091 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
2092
7001c1b7
SM
20932020-02-18 Simon Marchi <simon.marchi@efficios.com>
2094
2095 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
2096
fdb61c6c
SM
20972020-02-14 Simon Marchi <simon.marchi@efficios.com>
2098
2099 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
2100 displaced_step_closure_up.
2101 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
2102 (struct displaced_step_closure_up):
2103 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
2104 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
2105 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
2106 Likewise.
2107 * gdbarch.sh (displaced_step_copy_insn): Likewise.
2108 * gdbarch.c, gdbarch.h: Re-generate.
2109 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
2110 displaced_step_closure_up.
2111 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2112 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
2113 * infrun.h (displaced_step_closure_up): New type alias.
2114 (struct displaced_step_inferior_state) <step_closure>: Change
2115 type to displaced_step_closure_up.
2116 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
2117 displaced_step_closure_up.
2118 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
2119
a4a38eb4
TT
21202020-02-14 Tom Tromey <tom@tromey.com>
2121
2122 * minidebug.c (gnu_debug_key): New global.
2123 (find_separate_debug_file_in_section): Use it.
2124
e8217e61
SM
21252020-02-14 Simon Marchi <simon.marchi@efficios.com>
2126
2127 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
2128 std::unique_ptr.
2129 * gdbarch.c: Re-generate.
2130 * gdbarch.h: Re-generate.
2131 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
2132 change.
2133 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
2134 type to std::unique_ptr.
2135 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
2136 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
2137 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
2138 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2139 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
2140 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2141 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
2142 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2143 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
2144
d8d83535
SM
21452020-02-14 Simon Marchi <simon.marchi@efficios.com>
2146
2147 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
2148 std::unique_ptr.
2149 (displaced_step_clear): Rename to...
2150 (displaced_step_reset): ... this. Just call displaced->reset ().
2151 (displaced_step_clear_cleanup): Rename to...
2152 (displaced_step_reset_cleanup): ... this.
2153 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
2154 (displaced_step_fixup): Likewise.
2155 (resume_1): Likewise.
2156 (handle_inferior_event): Restore child's memory before calling
2157 displaced_step_fixup on the parent.
2158 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
2159 to std::unique_ptr.
2160 <step_closure>: Change type to std::unique_ptr.
2161
5f661e03
SM
21622020-02-14 Simon Marchi <simon.marchi@efficios.com>
2163
2164 * arm-tdep.c: Include count-one-bits.h.
2165 (cleanup_block_store_pc): Use count_one_bits.
2166 (cleanup_block_load_pc): Use count_one_bits.
2167 (arm_copy_block_xfer): Use count_one_bits.
2168 (thumb2_copy_block_xfer): Use count_one_bits.
2169 (thumb_copy_pop_pc_16bit): Use count_one_bits.
2170 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
2171 (thumb_get_next_pcs_raw): Use count_one_bits.
2172 (arm_get_next_pcs_raw): Use count_one_bits_l.
2173 * arch/arm.c (bitcount): Remove.
2174 * arch/arm.h (bitcount): Remove.
2175
8084e579
TT
21762020-02-14 Tom Tromey <tromey@adacore.com>
2177
2178 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
2179 Update.
2180 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
2181 * dwarf2/loc.c (call_site_find_chain_1): Return
2182 unique_xmalloc_ptr.
2183 (call_site_find_chain): Likewise.
2184
258bf0ee
RB
21852020-02-14 Richard Biener <rguenther@suse.de>
2186
2187 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
2188 on expression with division operators.
2189
f98a8458
AKS
21902020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2191
2192 * MAINTAINERS (Write After Approval): Adding myself.
2193
d1437c0e
TT
21942020-02-12 Tom Tromey <tom@tromey.com>
2195
2196 * event-loop.c (event_data, gdb_event, event_handler_func):
2197 Remove.
2198
3d4560f7
TT
21992020-02-12 Tom Tromey <tom@tromey.com>
2200
2201 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
2202 (dwarf2_frame_objfile_data): Add comment.
2203 (find_comp_unit, set_comp_unit): New functions.
2204 (dwarf2_frame_find_fde): Use find_comp_unit.
2205 (dwarf2_build_frame_info): Use set_comp_unit.
2206
21982304
TT
22072020-02-12 Tom Tromey <tom@tromey.com>
2208
2209 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
2210 (comp_unit): Don't initialize objfile.
2211 (execute_cfa_program): Add text_offset parameter.
2212 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
2213 (dwarf2_frame_cache): Update.
2214 (dwarf2_build_frame_info): Don't set "objfile" member.
2215
4debb237
TT
22162020-02-12 Tom Tromey <tom@tromey.com>
2217
2218 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
2219 (decode_frame_entry): Likewise.
2220 (dwarf2_build_frame_info): Update.
2221
0d404d44
TT
22222020-02-12 Tom Tromey <tom@tromey.com>
2223
2224 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
2225 (decode_frame_entry_1): Use the comp_unit obstack.
2226
a7a3ae5c
TT
22272020-02-12 Tom Tromey <tom@tromey.com>
2228
2229 * dwarf2/frame.c (struct comp_unit): Add initializers and
2230 constructor.
2231 (dwarf2_frame_objfile_data): Store a comp_unit.
2232 (dwarf2_frame_find_fde): Update.
2233 (dwarf2_build_frame_info): Use "new".
2234
a9d65418
TT
22352020-02-12 Tom Tromey <tom@tromey.com>
2236
2237 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
2238 (dwarf2_fde_table): Typedef for std::vector.
2239 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
2240 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
2241 (decode_frame_entry): Update.
2242 (dwarf2_build_frame_info): Use "new".
2243
7559c217
CB
22442020-02-12 Christian Biesinger <cbiesinger@google.com>
2245
2246 * arm-tdep.c (arm_gdbarch_init): Update.
2247 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
2248 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
2249 have_neon, is_m>: Change to bool.
2250
aeefc73c
CB
22512020-02-12 Christian Biesinger <cbiesinger@google.com>
2252
2253 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
2254
d27b8e5f
TT
22552020-02-12 Tom Tromey <tom@tromey.com>
2256
2257 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
2258
cd5900f3
HD
22592020-02-12 Hannes Domani <ssbssa@yahoo.de>
2260
2261 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
2262 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
2263
f056b22b
TT
22642020-02-11 Tom Tromey <tom@tromey.com>
2265
2266 * psymtab.h: Update comment.
2267
f92ff6b5
TT
22682020-02-11 Tom Tromey <tom@tromey.com>
2269
2270 * gdb_obstack.h (struct auto_obstack): Use
2271 DISABLE_COPY_AND_ASSIGN.
2272
3fd6912b
TT
22732020-02-11 Tom Tromey <tom@tromey.com>
2274
2275 * dwarf2/frame.h (struct objfile): Don't forward declare.
2276
69ed9b74
CB
22772020-02-11 Christian Biesinger <cbiesinger@google.com>
2278
2279 * cris-tdep.c (cris_supply_gregset): Change signature to match
2280 what struct regset expects.
2281 (cris_regset): New struct.
2282 (fetch_core_registers): Remove.
2283 (cris_iterate_over_regset_sections): New function.
2284 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
2285 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
2286
bda874f6
CB
22872020-02-11 Christian Biesinger <cbiesinger@google.com>
2288
2289 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
2290 registers.
2291
754e1564
CB
22922020-02-11 Christian Biesinger <cbiesinger@google.com>
2293
2294 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
2295
8ddd8e0e
SM
22962020-02-11 Simon Marchi <simon.marchi@efficios.com>
2297
2298 * configure: Re-generate.
2299
898e7f60
SM
23002020-02-11 Simon Marchi <simon.marchi@efficios.com>
2301
2302 * configure: Re-generate.
2303
58df732b
SM
23042020-02-11 Simon Marchi <simon.marchi@efficios.com>
2305
2306 * acinclude: Update warning.m4 path.
2307 * warning.m4: Move to gdbsupport.
2308
da5bd37e
TT
23092020-02-11 Tom Tromey <tromey@adacore.com>
2310
2311 * remote.c (remote_console_output): Update.
2312 * printcmd.c (printf_command): Update.
2313 * event-loop.c (gdb_wait_for_event): Update.
2314 * linux-nat.c (sigchld_handler): Update.
2315 * remote-sim.c (gdb_os_write_stdout): Update.
2316 (gdb_os_flush_stdout): Update.
2317 (gdb_os_flush_stderr): Update.
2318 (gdb_os_write_stderr): Update.
2319 * exceptions.c (print_exception): Update.
2320 * remote-fileio.c (remote_fileio_func_read): Update.
2321 (remote_fileio_func_write): Update.
2322 * tui/tui.c (tui_enable): Update.
2323 * tui/tui-interp.c (tui_interp::init): Update.
2324 * utils.c (init_page_info): Update.
2325 (putchar_unfiltered, fputc_unfiltered): Update.
2326 (gdb_flush): Update.
2327 (emit_style_escape): Update.
2328 (flush_wrap_buffer, fputs_maybe_filtered): Update.
2329 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
2330 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
2331 (stderr_file::write): Update.
2332 (stderr_file::puts): Update.
2333 * ui-file.h (ui_file_isatty, ui_file_write)
2334 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
2335 (ui_file_puts): Don't declare.
2336
85f0dd3c
TV
23372020-02-10 Tom de Vries <tdevries@suse.de>
2338
2339 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
2340 sentinel to char *.
2341
2e927613
TV
23422020-02-09 Tom de Vries <tdevries@suse.de>
2343
2344 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
2345 filename if it matches "<artificial>".
2346
6bafc845
HD
23472020-02-09 Hannes Domani <ssbssa@yahoo.de>
2348
2349 * windows-tdep.c (struct enum_value_name): New struct.
2350 (create_enum): New function.
2351 (windows_get_siginfo_type): Create and use enum types.
2352
7928d571
HD
23532020-02-09 Hannes Domani <ssbssa@yahoo.de>
2354
2355 * NEWS: Mention $_siginfo support for Windows.
2356 * windows-nat.c (handle_exception): Set siginfo_er.
2357 (windows_nat_target::mourn_inferior): Reset siginfo_er.
2358 (windows_xfer_siginfo): New function.
2359 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
2360 * windows-tdep.c (struct windows_gdbarch_data): New struct.
2361 (init_windows_gdbarch_data): New function.
2362 (get_windows_gdbarch_data): New function.
2363 (windows_get_siginfo_type): New function.
2364 (windows_init_abi): Register windows_get_siginfo_type.
2365 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
2366
6751ebae
TT
23672020-02-08 Tom Tromey <tom@tromey.com>
2368
2369 * dwarf2/read.c (class cutu_reader) <cutu_reader,
2370 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
2371 <keep>: Declare method.
2372 <m_keep>: Remove member.
2373 <~cutu_reader>: Remove.
2374 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2375 (cutu_reader::cutu_reader): Update.
2376 (cutu_reader::keep): Rename from ~cutu_reader.
2377 (process_psymtab_comp_unit, build_type_psymtabs_1)
2378 (process_skeletonless_type_unit, load_partial_comp_unit)
2379 (load_full_comp_unit, dwarf2_read_addr_index)
2380 (read_signatured_type): Update.
2381
135f5437
TT
23822020-02-08 Tom Tromey <tom@tromey.com>
2383
2384 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
2385 "want_partial_unit" parameter.
2386 (process_psymtab_comp_unit): Change want_partial_unit to bool.
2387 Inline check for DW_TAG_partial_unit.
2388 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
2389
9f66ff1c
TT
23902020-02-08 Tom Tromey <tom@tromey.com>
2391
2392 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
2393 read.c.
2394 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
2395 read.c.
2396
c8a7a66f
TT
23972020-02-08 Tom Tromey <tom@tromey.com>
2398
2399 * dwarf2/read.c (read_address): Move to comp-unit.c.
2400 (dwarf2_rnglists_process, dwarf2_ranges_process)
2401 (read_attribute_value, dwarf_decode_lines_1)
2402 (var_decode_location, decode_locdesc): Update.
2403 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
2404 read.c. Remove "cu" parameter.
2405 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
2406 method.
2407
8266302d
TT
24082020-02-08 Tom Tromey <tom@tromey.com>
2409
2410 * dwarf2/read.c (read_attribute_value, read_indirect_string)
2411 (read_indirect_line_string): Update.
2412 * dwarf2/comp-unit.c (read_offset): Remove.
2413 (read_comp_unit_head): Update.
2414 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
2415 method.
2416 (read_offset): Don't declare.
2417
4057dfde
TT
24182020-02-08 Tom Tromey <tom@tromey.com>
2419
2420 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
2421 * dwarf2/read.c (struct comp_unit_head): Move to
2422 dwarf2/comp-unit.h.
2423 (enum class rcuh_kind): Move to comp-unit.h.
2424 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
2425 (read_comp_unit_head, error_check_comp_unit_head)
2426 (read_and_check_comp_unit_head): Move to comp-unit.c.
2427 (read_offset, dwarf_unit_type_name): Likewise.
2428 (create_debug_type_hash_table, read_cutu_die_from_dwo)
2429 (cutu_reader::cutu_reader, read_call_site_scope)
2430 (find_partial_die, follow_die_offset): Update.
2431 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
2432
24aa364d
TT
24332020-02-08 Tom Tromey <tom@tromey.com>
2434
2435 * dwarf2/read.c (read_offset_1): Move to leb.c.
2436 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
2437 (dwarf_decode_macro_bytes): Update.
2438 * dwarf2/leb.c (read_offset): Rename; move from read.c.
2439 * dwarf2/leb.h (read_offset): Declare.
2440
2c7d5afc
TT
24412020-02-08 Tom Tromey <tom@tromey.com>
2442
2443 * dwarf2/read.c (dwarf2_section_size): Remove.
2444 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
2445 Update.
2446 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
2447
4075cb26
TT
24482020-02-08 Tom Tromey <tom@tromey.com>
2449
2450 * dwarf2/read.c (read_initial_length): Move to leb.c.
2451 * dwarf2/leb.h (read_initial_length): Declare.
2452 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
2453 handle_nonstd parameter.
2454 * dwarf2/frame.c (read_initial_length): Remove.
2455 (decode_frame_entry_1): Update.
2456
09ba997f
TT
24572020-02-08 Tom Tromey <tom@tromey.com>
2458
2459 * dwarf2/loc.c (dwarf2_find_location_expression)
2460 (dwarf_evaluate_loc_desc::get_tls_address)
2461 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
2462 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
2463 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
2464 (dwarf2_compile_property_to_c)
2465 (dwarf2_loc_desc_get_symbol_read_needs)
2466 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
2467 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
2468 (loclist_describe_location, loclist_tracepoint_var_ref)
2469 (loclist_generate_c_location): Update.
2470 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
2471 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
2472 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
2473 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
2474 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
2475 (dwarf2_per_cu_data::addr_size)
2476 (dwarf2_per_cu_data::ref_addr_size)
2477 (dwarf2_per_cu_data::text_offset)
2478 (dwarf2_per_cu_data::addr_type): Now methods.
2479 (per_cu_header_read_in): Make per_cu "const".
2480 (dwarf2_version): Remove.
2481 (dwarf2_per_cu_data::int_type): Now a method.
2482 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
2483 (set_die_type, read_array_type, read_subrange_index_type)
2484 (read_tag_string_type, read_subrange_type): Update.
2485 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
2486 offset_size, ref_addr_size, text_offset, addr_type, version,
2487 objfile, int_type, addr_sized_int_type>: Declare methods.
2488
96c738c0
TT
24892020-02-08 Tom Tromey <tom@tromey.com>
2490
2491 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
2492 Move earlier.
2493
8fdd972c
TT
24942020-02-08 Tom Tromey <tom@tromey.com>
2495
2496 * dwarf2/read.h (dwarf_line_debug): Declare.
2497 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
2498 * dwarf2/read.c: Move line_header code to new files.
2499 (dwarf_line_debug): No longer static.
2500 * dwarf2/line-header.c: New file.
2501 * dwarf2/line-header.h: New file.
2502
03075812
TT
25032020-02-08 Tom Tromey <tom@tromey.com>
2504
2505 * dwarf2/read.c (struct line_header) <file_full_name,
2506 file_file_name>: Return unique_xmalloc_ptr.
2507 (line_header::file_file_name): Update.
2508 (line_header::file_full_name): Update.
2509 (dw2_get_file_names_reader): Update.
2510 (macro_start_file): Update.
2511
bb822404
TT
25122020-02-08 Tom Tromey <tom@tromey.com>
2513
2514 * dwarf2/read.c (struct line_header) <file_full_name,
2515 file_file_name>: Declare methods.
2516 (dw2_get_file_names_reader): Update.
2517 (file_file_name): Now a method.
2518 (file_full_name): Likewise.
2519 (macro_start_file): Update.
2520
009b64fc
TT
25212020-02-08 Tom Tromey <tom@tromey.com>
2522
2523 * dwarf2/read.c (dwarf_always_disassemble)
2524 (show_dwarf_always_disassemble): Move to loc.c.
2525 (_initialize_dwarf2_read): Move "always-disassemble" registration
2526 to loc.c.
2527 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
2528 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
2529 static.
2530 (show_dwarf_always_disassemble): Move from read.c.
2531 (_initialize_dwarf2loc): Move always-disassemble from read.c.
2532
5895093f
TT
25332020-02-08 Tom Tromey <tom@tromey.com>
2534
2535 * dwarf2/read.c (~dwarf2_per_objfile): Update.
2536 (create_quick_file_names_table): Return htab_up.
2537 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
2538 Update.
2539 * dwarf2/read.h (struct dwarf2_per_objfile)
2540 <quick_file_names_table>: Now htab_up.
2541
b3b32279
TT
25422020-02-08 Tom Tromey <tom@tromey.com>
2543
2544 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
2545
1d33d811
TT
25462020-02-08 Tom Tromey <tom@tromey.com>
2547
2548 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
2549 Rewrite.
2550 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
2551 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
2552 (abbrev_table::abbrev_table): No longer inline.
2553 (ABBREV_HASH_SIZE): Remove.
2554 (abbrev_table::m_abbrevs): Now an htab_up.
2555
86de1d91
TT
25562020-02-08 Tom Tromey <tom@tromey.com>
2557
2558 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
2559 (cutu_reader): Update.
2560 (build_type_psymtabs_1): Update.
2561 * dwarf2/abbrev.c (abbrev_table::read): Rename.
2562 (abbrev_table::alloc_abbrev): Update.
2563 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
2564 (abbrev_table::read): New static method, renamed from
2565 abbrev_table_read_table.
2566 (abbrev_table::alloc_abbrev)
2567 (abbrev_table::add_abbrev): Now private.
2568 (abbrev_table::abbrev_table): Now private.
2569 (abbrev_table::m_abbrev_obstack): Now private. Rename.
2570
0335378b
TT
25712020-02-08 Tom Tromey <tom@tromey.com>
2572
2573 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
2574 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
2575 htab_up.
2576
48b490f2
TT
25772020-02-08 Tom Tromey <tom@tromey.com>
2578
2579 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
2580 htab_up.
2581 (lookup_dwo_unit_in_dwp): Update.
2582 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
2583 on obstack.
2584
bc68fb19
TT
25852020-02-08 Tom Tromey <tom@tromey.com>
2586
2587 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
2588 obstack.
2589
d15acc42
TT
25902020-02-08 Tom Tromey <tom@tromey.com>
2591
2592 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
2593 line_header_hash.
2594 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
2595 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
2596 Change type to htab_up.
2597
eaa5fa8b
TT
25982020-02-08 Tom Tromey <tom@tromey.com>
2599
2600 * dwarf2/read.c (allocate_type_unit_groups_table): Return
2601 htab_up. Don't allocate on obstack.
2602 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
2603 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
2604 Change type to htab_up.
2605
b0b6a987
TT
26062020-02-08 Tom Tromey <tom@tromey.com>
2607
2608 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
2609 Change type to htab_up.
2610 * dwarf2/read.c (create_signatured_type_table_from_index)
2611 (create_signatured_type_table_from_debug_names)
2612 (create_all_type_units, add_type_unit)
2613 (lookup_dwo_signatured_type, lookup_signatured_type)
2614 (process_skeletonless_type_unit): Update.
2615 (create_debug_type_hash_table, create_debug_types_hash_table):
2616 Change type of types_htab.
2617 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
2618 htab_up. Don't allocate on obstack.
2619 (create_cus_hash_table): Change type of cus_htab parameter.
2620 (struct dwo_file) <cus, tus>: Now htab_up.
2621 (lookup_dwo_signatured_type, lookup_dwo_cutu)
2622 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
2623 (queue_and_load_all_dwo_tus): Update.
2624 * dwarf2/index-write.c (write_gdbindex): Update.
2625 (write_debug_names): Update.
2626
39856def
TT
26272020-02-08 Tom Tromey <tom@tromey.com>
2628
2629 * dwarf2/read.h (struct dwarf2_queue_item): Move from
2630 dwarf2/read.c. Remove "next" member. Add constructor ntad
2631 destructor.
2632 (struct dwarf2_per_objfile) <queue>: New member.
2633 * dwarf2/read.c (struct dwarf2_queue_item): Move to
2634 dwarf2/read.h.
2635 (dwarf2_queue, dwarf2_queue_tail): Remove.
2636 (class dwarf2_queue_guard): Add parameter to constructor. Use
2637 DISABLE_COPY_AND_ASSIGN.
2638 <m_per_objfile>: New member.
2639 <~dwarf2_queue_guard>: Rewrite.
2640 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
2641 Update.
2642 (~dwarf2_queue_item): New.
2643
3e225074
TT
26442020-02-08 Tom Tromey <tom@tromey.com>
2645
2646 * dwarf2/read.c (struct die_info) <has_children>: New member.
2647 (dw2_get_file_names_reader): Remove has_children.
2648 (dw2_get_file_names): Update.
2649 (read_cutu_die_from_dwo): Remove has_children.
2650 (cutu_reader::init_tu_and_read_dwo_dies)
2651 (cutu_reader::cutu_reader): Update.
2652 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
2653 Remove has_children.
2654 (build_type_psymtabs_1, process_skeletonless_type_unit)
2655 (load_partial_comp_unit, load_full_comp_unit): Update.
2656 (create_dwo_cu_reader): Remove has_children.
2657 (create_cus_hash_table, read_die_and_children): Update.
2658 (read_full_die_1,read_full_die): Remove has_children.
2659 (read_signatured_type): Update.
2660 (class cutu_reader) <has_children>: Remove.
2661
82ca8957
TT
26622020-02-08 Tom Tromey <tom@tromey.com>
2663
2664 * dwarf2/expr.c: Rename from dwarf2expr.c.
2665 * dwarf2/expr.h: Rename from dwarf2expr.h.
2666 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
2667 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
2668 * dwarf2/frame.c: Rename from dwarf2-frame.c.
2669 * dwarf2/frame.h: Rename from dwarf2-frame.h.
2670 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
2671 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
2672 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
2673 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
2674 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
2675 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
2676 * dwarf2/loc.c: Rename from dwarf2loc.c.
2677 * dwarf2/loc.h: Rename from dwarf2loc.h.
2678 * dwarf2/read.c: Rename from dwarf2read.c.
2679 * dwarf2/read.h: Rename from dwarf2read.h.
2680 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
2681 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
2682 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
2683 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
2684 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
2685 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
2686 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
2687 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
2688 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
2689 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
2690 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
2691 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
2692 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
2693 Update.
2694 * Makefile.in (COMMON_SFILES): Update.
2695 (HFILES_NO_SRCDIR): Update.
2696
9e35d499
TT
26972020-02-08 Tom Tromey <tom@tromey.com>
2698
2699 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
2700 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
2701
1eba2311
TT
27022020-02-08 Tom Tromey <tom@tromey.com>
2703
2704 * dwarf2read.h (struct die_info): Don't declare.
2705
e41c2da2
TT
27062020-02-08 Tom Tromey <tom@tromey.com>
2707
2708 * dwarf2read.h (die_info_ptr): Remove typedef.
2709
4fc6c0d5
TT
27102020-02-08 Tom Tromey <tom@tromey.com>
2711
2712 * dwarf2read.c (read_call_site_scope)
2713 (handle_data_member_location, dwarf2_add_member_fn)
2714 (mark_common_block_symbol_computed, read_common_block)
2715 (attr_to_dynamic_prop, partial_die_info::read)
2716 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
2717 (dwarf2_symbol_mark_computed, set_die_type): Update.
2718 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
2719 method.
2720 (attr_form_is_block): Don't declare.
2721 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
2722
cd6c91b4
TT
27232020-02-08 Tom Tromey <tom@tromey.com>
2724
2725 * dwarf2read.c (dwarf2_find_base_address, )
2726 (read_call_site_scope, rust_containing_type)
2727 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2728 (handle_data_member_location, dwarf2_add_member_fn)
2729 (get_alignment, read_structure_type, process_structure_scope)
2730 (mark_common_block_symbol_computed, read_common_block)
2731 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
2732 (partial_die_info::read, read_attribute_value, new_symbol)
2733 (lookup_die_type, dwarf2_get_ref_die_offset)
2734 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
2735 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
2736 (dwarf2_symbol_mark_computed): Update.
2737 * dwarf2/attribute.h (struct attribute) <value_as_address,
2738 form_is_section_offset, form_is_constant, form_is_ref>: Declare
2739 methods.
2740 (value_as_address, attr_form_is_section_offset)
2741 (attr_form_is_constant, attr_form_is_ref): Don't declare.
2742 * dwarf2/attribute.c (attribute::value_as_address)
2743 (attribute::form_is_section_offset, attribute::form_is_constant)
2744 (attribute::form_is_ref): Now methods.
2745
162dce55
TT
27462020-02-08 Tom Tromey <tom@tromey.com>
2747
2748 * dwarf2read.c (struct attribute, DW_STRING)
2749 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
2750 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
2751 (attr_form_is_block, attr_form_is_section_offset)
2752 (attr_form_is_constant, attr_form_is_ref): Move.
2753 * dwarf2/attribute.h: New file.
2754 * dwarf2/attribute.c: New file, from dwarf2read.c.
2755 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
2756
3054dd54
TT
27572020-02-08 Tom Tromey <tom@tromey.com>
2758
2759 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
2760 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
2761 Move.
2762 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
2763 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
2764 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
2765 abbrev.c.
2766 * dwarf2/abbrev.h: New file.
2767 * dwarf2/abbrev.c: New file, from dwarf2read.c.
2768 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
2769
96b79293
TT
27702020-02-08 Tom Tromey <tom@tromey.com>
2771
2772 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
2773 (dwarf2_section_size, dwarf2_get_section_info)
2774 (create_signatured_type_table_from_debug_names)
2775 (create_addrmap_from_aranges, read_debug_names_from_section)
2776 (get_gdb_index_contents_from_section, read_comp_unit_head)
2777 (error_check_comp_unit_head, read_abbrev_offset)
2778 (create_debug_type_hash_table, init_cu_die_reader)
2779 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
2780 (read_comp_units_from_section, create_cus_hash_table)
2781 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
2782 (create_dwp_v2_section, dwarf2_rnglists_process)
2783 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
2784 (abbrev_table_read_table, read_indirect_string_at_offset_from)
2785 (read_indirect_string_from_dwz, read_addr_index_1)
2786 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
2787 (dwarf_decode_macro_bytes, dwarf_decode_macros)
2788 (fill_in_loclist_baton): Update.
2789 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
2790 get_containing_section, get_bfd_owner, get_bfd_section,
2791 get_file_name, get_id, get_flags, empty, read>: Declare methods.
2792 (dwarf2_read_section, get_section_name, get_section_file_name)
2793 (get_containing_section, get_section_bfd_owner)
2794 (get_section_bfd_section, get_section_name, get_section_file_name)
2795 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
2796 declare.
2797 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
2798 (dwarf2_section_info::get_bfd_owner)
2799 (dwarf2_section_info::get_bfd_section)
2800 (dwarf2_section_info::get_name)
2801 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
2802 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
2803 (dwarf2_section_info::read): Now methods.
2804 * dwarf-index-write.c (class debug_names): Update.
2805
2c86cff9
TT
28062020-02-08 Tom Tromey <tom@tromey.com>
2807
2808 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
2809 Move to dwarf2/section.h.
2810 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
2811 (get_section_bfd_section, get_section_name)
2812 (get_section_file_name, get_section_id, get_section_flags)
2813 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
2814 dwarf2/section.c.
2815 * dwarf2/section.h: New file.
2816 * dwarf2/section.c: New file, from dwarf2read.c.
2817 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
2818
f4382c45
TT
28192020-02-08 Tom Tromey <tom@tromey.com>
2820
2821 * dwarf2read.h (read_unsigned_leb128): Don't declare.
2822 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
2823 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
2824 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
2825 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
2826 * dwarf2/leb.h: New file, from dwarf2read.c.
2827 * dwarf2/leb.c: New file, from dwarf2read.c.
2828 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
2829 Remove.
2830 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
2831 (COMMON_SFILES): Add dwarf2/leb.c.
2832
01840b7a
JB
28332020-02-08 Joel Brobecker <brobecker@adacore.com>
2834
2835 GDB 9.1 released.
2836
dfcb27e4
IB
28372020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
2838
2839 PR gdb/25190:
2840 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
2841 * gdb/remote.c (remote_console_output): Update.
2842 * gdb/ui-file.c (fputs_unfiltered): Rename to...
2843 (ui_file_puts): ...this.
2844 * gdb/ui-file.h (ui_file_puts): Add declaration.
2845 * gdb/utils.c (emit_style_escape): Update.
2846 (flush_wrap_buffer): Update.
2847 (fputs_maybe_filtered): Update.
2848 (fputs_unfiltered): Add function.
2849
faa17681
IB
28502020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
2851
2852 * gdb/event-loop.c (gdb_wait_for_event): Update.
2853 * gdb/printcmd.c (printf_command): Update.
2854 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
2855 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
2856 (gdb_os_flush_stderr): Update.
2857 * gdb/remote.c (remote_console_output): Update.
2858 * gdb/ui-file.c (gdb_flush): Rename to...
2859 (ui_file_flush): ...this.
2860 (stderr_file::write): Update.
2861 (stderr_file::puts): Update.
2862 * gdb/ui-file.h (gdb_flush): Rename to...
2863 (ui_file_flush): ...this.
2864 * gdb/utils.c (gdb_flush): Add function.
2865 * gdb/utils.h (gdb_flush): Add declaration.
2866
5abbbe1d
TT
28672020-02-07 Tom Tromey <tromey@adacore.com>
2868
2869 PR breakpoints/24915:
2870 * source.c (find_and_open_source): Do not check basenames_may_differ.
2871
919adfe8
TT
28722020-02-07 Tom Tromey <tom@tromey.com>
2873
2874 * README: Update gdbserver documentation.
2875 * gdbserver: Move to top level.
2876 * configure.tgt (build_gdbserver): Remove.
2877 * configure.ac: Remove --enable-gdbserver.
2878 * configure: Rebuild.
2879 * Makefile.in (distclean): Don't mention gdbserver.
2880
1d5d29e7
SV
28812020-02-06 Shahab Vahedi <shahab@synopsys.com>
2882
2883 * source-cache.c (source_cache::ensure): Surround
2884 get_plain_source_lines with a try/catch.
2885 (source_cache::get_line_charpos): Get rid of try/catch
2886 and only check for the return value of "ensure".
2887 * tui/tui-source.c (tui_source_window::set_contents):
2888 Simplify "nlines" calculation.
2889
6eb1129c
SV
28902020-02-06 Shahab Vahedi <shahab@synopsys.com>
2891
2892 * MAINTAINERS (Write After Approval): Add myself.
2893
c6a42d11
CB
28942020-02-05 Christian Biesinger <cbiesinger@google.com>
2895
2896 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
2897 function call.
2898
c8ecdda6
CB
28992020-02-05 Christian Biesinger <cbiesinger@google.com>
2900
2901 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
2902
f6480e70
MR
29032020-02-05 Maciej W. Rozycki <macro@wdc.com>
2904
2905 * nat/riscv-linux-tdesc.h: New file.
2906 * nat/riscv-linux-tdesc.c: New file, taking code from...
2907 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
2908 ... here.
2909 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
2910 NATDEPFILES.
2911
dcc9fbc6
AB
29122020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
2913
2914 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
2915 we don't set the fake simulator ptid to the null_ptid.
2916
719546c4
SM
29172020-02-03 Simon Marchi <simon.marchi@efficios.com>
2918
2919 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
2920 * gdbthread.h (class thread_info) <resumed>: Likewise.
2921 * infrun.c (resume_1): Likewise.
2922 (proceed): Likewise.
2923 (infrun_thread_stop_requested): Likewise.
2924 (stop_all_threads): Likewise.
2925 (handle_inferior_event): Likewise.
2926 (restart_threads): Likewise.
2927 (finish_step_over): Likewise.
2928 (keep_going_stepped_thread): Likewise.
2929 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
2930 (linux_handle_extended_wait): Likewise.
2931 * record-btrace.c (get_thread_current_frame_id): Likewise.
2932 * record-full.c (record_full_wait_1): Likewise.
2933 * remote.c (remote_target::process_initial_stop_replies): Likewise.
2934 * target.c (target_resume): Likewise.
2935 * thread.c (set_running_thread): Likewise.
2936
e409c542
AKS
29372020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2938
2939 * f-valprint.c (f77_print_array_1): Changed datatype of index
2940 variable to LONGEST from int to enable it to contain bound
2941 values correctly.
2942
ee98c0da
MR
29432020-02-03 Maciej W. Rozycki <macro@wdc.com>
2944
2945 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
2946 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
2947 offsets according to FLEN determined.
2948 (riscv_linux_nat_target::read_description): Determine FLEN
2949 dynamically.
2950 (riscv_linux_nat_target::fetch_registers): Size regset buffer
2951 according to FLEN determined.
2952 (riscv_linux_nat_target::store_registers): Likewise.
2953
aa66aac4
SV
29542020-02-01 Shahab Vahedi <shahab@synopsys.com>
2955
2956 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
2957 when reg->group is empty and reggroup is not.
2958
fd9faca8
TT
29592020-01-31 Tom Tromey <tromey@adacore.com>
2960
2961 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
2962 Call beneath target's mourn_inferior after unpushing.
2963
42330a68
AB
29642020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
2965
2966 PR tui/9765
2967 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
2968 have enough lines to fill the screen, still return the lowest
2969 address we found.
2970
7a27a45b
AB
29712020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
2972
2973 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
2974 '-', '<', and '>' commands.
2975
c47f70e2
PA
29762020-01-29 Pedro Alves <palves@redhat.com>
2977 Sergio Durigan Junior <sergiodj@redhat.com>
2978
2979 * infcmd.c (construct_inferior_arguments): Assert that
2980 'argc' is greater than 0.
2981
5133a315
LM
29822020-01-29 Luis Machado <luis.machado@linaro.org>
2983
2984 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
2985 (BRK_INSN_MASK): Define to 0xd4200000.
2986 (aarch64_program_breakpoint_here_p): New function.
2987 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
2988 * arch-utils.c (default_program_breakpoint_here_p): Moved from
2989 breakpoint.c.
2990 * arch-utils.h (default_program_breakpoint_here_p): Moved from
2991 breakpoint.h
2992 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
2993 call gdbarch_program_breakpoint_here_p.
2994 (program_breakpoint_here): Moved to arch-utils.c, renamed to
2995 default_program_breakpoint_here_p, changed return type to bool and
2996 simplified.
2997 * breakpoint.h (program_breakpoint_here): Moved prototype to
2998 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
2999 return type to bool.
3000 * gdbarch.c: Regenerate.
3001 * gdbarch.h: Regenerate.
3002 * gdbarch.sh (program_breakpoint_here_p): New method.
3003 * infrun.c (handle_signal_stop): Call
3004 gdbarch_program_breakpoint_here_p.
3005
168f8c6b
TT
30062020-01-26 Tom Tromey <tom@tromey.com>
3007
3008 * ctfread.c (struct ctf_fp_info): Reindent.
3009 (_initialize_ctfread): Remove.
3010
128a391f
TT
30112020-01-26 Tom Tromey <tom@tromey.com>
3012
3013 * psymtab.c (partial_map_expand_apply)
3014 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3015 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3016 (psym_print_stats, psym_expand_symtabs_for_function)
3017 (psym_map_symbol_filenames, psym_map_matching_symbols)
3018 (psym_expand_symtabs_matching)
3019 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3020 (maintenance_check_psymtabs): Use new methods.
3021 * psympriv.h (struct partial_symtab) <readin_p,
3022 get_compunit_symtab>: New methods.
3023 <readin, compunit_symtab>: Remove members.
3024 (struct standard_psymtab): New.
3025 (struct legacy_psymtab): Derive from standard_psymtab.
3026 * dwarf2read.h (struct dwarf2_psymtab): Derive from
3027 standard_psymtab.
3028 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
3029
0494dbec
TT
30302020-01-26 Tom Tromey <tom@tromey.com>
3031
3032 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
3033 read_dependencies. Add assert.
3034 * psymtab.c (partial_symtab::read_dependencies): New method.
3035 * psympriv.h (struct partial_symtab) <read_dependencies>: New
3036 method.
3037 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
3038 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
3039 read_dependencies.
3040 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
3041 Add assert.
3042
8566b89b
TT
30432020-01-26 Tom Tromey <tom@tromey.com>
3044
3045 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
3046 Call expand_psymtab.
3047 (xcoff_read_symtab): Call expand_psymtab.
3048 (xcoff_start_psymtab, xcoff_end_psymtab): Set
3049 legacy_expand_psymtab.
3050 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
3051 method.
3052 (struct legacy_psymtab) <expand_psymtab>: Implement.
3053 <legacy_expand_psymtab>: New member.
3054 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
3055 (parse_partial_symbols): Set legacy_expand_psymtab.
3056 (psymtab_to_symtab_1): Change argument order. Call
3057 expand_psymtab.
3058 (new_psymtab): Set legacy_expand_psymtab.
3059 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
3060 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
3061 expand_psymtab.
3062 (dwarf2_psymtab::expand_psymtab): Rename from
3063 psymtab_to_symtab_1. Call expand_psymtab.
3064 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
3065 (dbx_end_psymtab): Likewise.
3066 (dbx_psymtab_to_symtab_1): Change argument order. Call
3067 expand_psymtab.
3068 (dbx_read_symtab): Call expand_psymtab.
3069 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
3070 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
3071 (ctf_psymtab::read_symtab): Call expand_psymtab.
3072
077cbab2
TT
30732020-01-26 Tom Tromey <tom@tromey.com>
3074
3075 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
3076 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
3077 messages.
3078 * mdebugread.c (mdebug_read_symtab): Remove prints.
3079 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
3080 assert.
3081 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
3082
891813be
TT
30832020-01-26 Tom Tromey <tom@tromey.com>
3084
3085 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
3086 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
3087 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
3088 legacy_symtab.
3089 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
3090 * psymtab.c (psymtab_to_symtab): Call method.
3091 (dump_psymtab): Update.
3092 * psympriv.h (struct partial_symtab): Add virtual destructor.
3093 <read_symtab>: New method.
3094 (struct legacy_symtab): New.
3095 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
3096 (struct pst_map) <pst>: Now a legacy_psymtab.
3097 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
3098 (new_psymtab): Use legacy_psymtab.
3099 * dwarf2read.h (struct dwarf2_psymtab): New.
3100 (struct dwarf2_per_cu_data) <psymtab>: Use it.
3101 * dwarf2read.c (dwarf2_create_include_psymtab)
3102 (dwarf2_build_include_psymtabs, create_type_unit_group)
3103 (create_partial_symtab, process_psymtab_comp_unit_reader)
3104 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
3105 (set_partial_user): Use dwarf2_psymtab.
3106 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
3107 (psymtab_to_symtab_1, process_full_comp_unit)
3108 (process_full_type_unit, dwarf2_ranges_read)
3109 (dwarf2_get_pc_bounds, psymtab_include_file_name)
3110 (dwarf_decode_lines): Use dwarf2_psymtab.
3111 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
3112 (add_address_entry_worker, write_one_signatured_type)
3113 (recursively_count_psymbols, recursively_write_psymbols)
3114 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
3115 (write_debug_names): Likewise.
3116 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
3117 <pst>: Now a legacy_psymtab.
3118 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
3119 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
3120 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
3121 * ctfread.c (struct ctf_psymtab): New.
3122 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
3123 ctf_psymtab.
3124 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
3125 (create_partial_symtab): Return a ctf_psymtab.
3126 (scan_partial_symbols): Update.
3127
c3693a1d
TT
31282020-01-26 Tom Tromey <tom@tromey.com>
3129
3130 * xcoffread.c (xcoff_start_psymtab): Use new.
3131 * psymtab.c (partial_symtab::partial_symtab): New constructor,
3132 renamed from start_psymtab_common.
3133 * psympriv.h (struct partial_symtab): Add new constructor.
3134 (start_psymtab_common): Don't declare.
3135 * mdebugread.c (parse_partial_symbols): Use new.
3136 * dwarf2read.c (create_partial_symtab): Use new.
3137 * dbxread.c (start_psymtab): Use new.
3138 * ctfread.c (create_partial_symtab): Use new.
3139
32caafd0
TT
31402020-01-26 Tom Tromey <tom@tromey.com>
3141
3142 * xcoffread.c (xcoff_end_psymtab): Use new.
3143 * psymtab.c (start_psymtab_common): Use new.
3144 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
3145 Update.
3146 * psympriv.h (struct partial_symtab): Add parameters to
3147 constructor. Don't inline.
3148 (allocate_psymtab): Don't declare.
3149 * mdebugread.c (new_psymtab): Use new.
3150 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
3151 * dbxread.c (dbx_end_psymtab): Use new.
3152
abaa2f23
TT
31532020-01-26 Tom Tromey <tom@tromey.com>
3154
3155 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
3156 allocate_psymtab. Update documentation.
3157 * psymtab.c (psymtab_storage::install_psymtab): Rename from
3158 allocate_psymtab. Do not use new.
3159 (allocate_psymtab): Use new. Update.
3160
6d94535f
TT
31612020-01-26 Tom Tromey <tom@tromey.com>
3162
3163 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3164 * psymtab.c (psym_print_stats): Update.
3165 * psympriv.h (struct partial_symtab) <readin,
3166 psymtabs_addrmap_supported, anonymous>: Now bool.
3167 * mdebugread.c (psymtab_to_symtab_1): Update.
3168 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
3169 (build_type_psymtabs_reader, psymtab_to_symtab_1)
3170 (process_full_comp_unit, process_full_type_unit): Update.
3171 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
3172 * ctfread.c (psymtab_to_symtab): Update.
3173
6f17252b
TT
31742020-01-26 Tom Tromey <tom@tromey.com>
3175
3176 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
3177 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
3178 * psymtab.c (psymtab_storage): Delete psymtabs.
3179 (psymtab_storage::allocate_psymtab): Use new.
3180 (psymtab_storage::discard_psymtab): Use delete.
3181 * psympriv.h (struct partial_symtab): Add constructor and
3182 initializers.
3183
f6f1cebc
TT
31842020-01-26 Tom Tromey <tom@tromey.com>
3185
3186 * machoread.c: Do not include psympriv.h.
3187
e47e48f6
PW
31882020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3189
3190 * NEWS: Mention the new option and the set/show commands.
3191
a2fedca9
PW
31922020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3193
3194 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
3195 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
3196 (validate_exec_file): New variables, enums, functions.
3197 (exec_file_locate_attach, print_section_info): Style the filenames.
3198 (_initialize_exec): Install show_exec_file_mismatch_command and
3199 set_exec_file_mismatch_command.
3200 * gdbcore.h (validate_exec_file): Declare.
3201 * infcmd.c (attach_command): Call validate_exec_file.
3202 * remote.c ( remote_target::remote_add_inferior): Likewise.
3203
7ffa82e1
AB
32042020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3205
3206 * frame.c (find_frame_sal): Move call to get_next_frame into more
3207 inner scope.
3208 * inline-frame.c (inilne_state) <inline_state>: Update argument
3209 types.
3210 (inilne_state) <skipped_symbol>: Rename to...
3211 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
3212 (skip_inline_frames): Build vector of skipped symbols and use this
3213 to reate the inline_state.
3214 (inline_skipped_symbol): Add a comment and some assertions, fetch
3215 skipped symbol from the list.
3216
3d92a3e3
AB
32172020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3218
3219 * buildsym.c (lte_is_less_than): Delete.
3220 (buildsym_compunit::end_symtab_with_blockvector): Create local
3221 lambda function to sort line table entries, and use
3222 std::stable_sort instead of std::sort.
3223 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
3224 markers when looking for a previous line.
3225
94a72be7
AB
32262020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3227
3228 * dwarf2read.c (lnp_state_machine::record_line): Include
3229 end_sequence parameter in debug print out. Record the line if we
3230 are at an end_sequence marker even if it's not the start of a
3231 statement.
3232 * symmisc.c (maintenance_print_one_line_table): Print end of
3233 sequence markers with 'END' not '0'.
3234
53af73bf
PA
32352020-01-24 Pedro Alves <palves@redhat.com>
3236
3237 PR gdb/25410
3238 * thread.c (scoped_restore_current_thread::restore): Use
3239 switch_to_inferior_no_thread.
3240 * exec.c: Include "progspace-and-thread.h".
3241 (add_target_sections, remove_target_sections):
3242 scoped_restore_current_pspace_and_thread instead of
3243 scoped_restore_current_thread.
3244 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
3245 and aspace to the inferior before calling clone_program_space.
3246 Remove stale comment.
3247
3050c6f4
CB
32482020-01-24 Christian Biesinger <cbiesinger@google.com>
3249
3250 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
3251 (arm_netbsd_nat_target::fetch_registers): ...this.
3252 (arm_nbsd_nat_target::store_registers): Rename to...
3253 (arm_netbsd_nat_target::store_registers): ...this.
3254
73685c7e
CB
32552020-01-24 Christian Biesinger <cbiesinger@google.com>
3256
3257 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
3258 register_t.
3259
89203d40
CB
32602020-01-24 Christian Biesinger <cbiesinger@google.com>
3261
3262 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
3263 Update comment.
3264 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
3265 Likewise.
3266 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
3267 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
3268 the correct replacement (iterate_over_regset_sections).
3269 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
3270 Update comment.
3271
1ba1ac88
AB
32722020-01-24 Graham Markall <graham.markall@embecosm.com>
3273
3274 PR gdb/23718
3275 * gdb/python/python.c (execute_gdb_command): Call
3276 async_enable_stdin in catch block.
3277
f3364a6d
AB
32782020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3279
3280 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
3281 SWITCH_THRU_ALL_UIS.
3282
733d0a67
AB
32832020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3284
3285 PR tui/9765
3286 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
3287 comment, add extra parameter, and update to store previous symbol
3288 when appropriate.
3289 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
3290 add extra parameter.
3291 * tui/tui-disasm.c (tui_disassemble): Update header comment,
3292 remove unneeded parameter, add try/catch around gdb_print_insn,
3293 rewrite to add items to asm_lines vector.
3294 (tui_find_backward_disassembly_start_address): New function.
3295 (tui_find_disassembly_address): Updated throughout.
3296 (tui_disasm_window::set_contents): Update for changes to
3297 tui_disassemble.
3298 (tui_disasm_window::do_scroll_vertical): No need to adjust the
3299 number of lines to scroll.
3300
b3b3bada
SM
33012020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
3302
3303 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
3304 (SECT_OFF_DATA): Likewise.
3305 (SECT_OFF_RODATA): Likewise.
3306 (SECT_OFF_TEXT): Likewise.
3307 (SECT_OFF_BSS): Likewise.
3308 (struct objfile) <text_section_offset, data_section_offset>: New
3309 methods.
3310 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
3311 objfile::text_section_offset.
3312 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
3313 * coffread.c (coff_symtab_read): Likewise.
3314 (enter_linenos): Likewise.
3315 (process_coff_symbol): Likewise.
3316 * ctfread.c (get_objfile_text_range): Likewise.
3317 * dtrace-probe.c (dtrace_probe::get_relocated_address):
3318 Use objfile::data_section_offset.
3319 * dwarf2-frame.c (execute_cfa_program): Use
3320 objfile::text_section_offset.
3321 (dwarf2_frame_find_fde): Likewise.
3322 * dwarf2read.c (create_addrmap_from_index): Likewise.
3323 (create_addrmap_from_aranges): Likewise.
3324 (dw2_find_pc_sect_compunit_symtab): Likewise.
3325 (process_psymtab_comp_unit_reader): Likewise.
3326 (add_partial_symbol): Likewise.
3327 (add_partial_subprogram): Likewise.
3328 (process_full_comp_unit): Likewise.
3329 (read_file_scope): Likewise.
3330 (read_func_scope): Likewise.
3331 (read_lexical_block_scope): Likewise.
3332 (read_call_site_scope): Likewise.
3333 (dwarf2_rnglists_process): Likewise.
3334 (dwarf2_ranges_process): Likewise.
3335 (dwarf2_ranges_read): Likewise.
3336 (dwarf_decode_lines_1): Likewise.
3337 (new_symbol): Likewise.
3338 (dwarf2_fetch_die_loc_sect_off): Likewise.
3339 (dwarf2_per_cu_text_offset): Likewise.
3340 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3341 * hppa-tdep.c (read_unwind_info): Likewise.
3342 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
3343 * psympriv.h (struct partial_symtab): Likewise.
3344 * psymtab.c (find_pc_sect_psymtab): Likewise.
3345 * solib-svr4.c (enable_break): Likewise.
3346 * stap-probe.c (relocate_address): Use
3347 objfile::data_section_offset.
3348 * xcoffread.c (enter_line_range): Use
3349 objfile::text_section_offset.
3350 (read_xcoff_symtab): Likewise.
3351
ab53f382
SM
33522020-01-23 Simon Marchi <simon.marchi@efficios.com>
3353
3354 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
3355 declaration to narrower scopes.
3356
e7eee665
SM
33572020-01-23 Simon Marchi <simon.marchi@efficios.com>
3358
3359 * darwin-nat.h (struct darwin_exception_msg, enum
3360 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
3361 Move up.
3362 (class darwin_nat_target) <wait_1, check_new_threads,
3363 decode_exception_message, decode_message, stop_inferior,
3364 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
3365 * darwin-nat.c (darwin_check_new_threads): Rename to...
3366 (darwin_nat_target::check_new_threads): ... this.
3367 (darwin_suspend_inferior_it): Remove.
3368 (darwin_decode_exception_message): Rename to...
3369 (darwin_nat_target::decode_exception_message): ... this.
3370 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
3371 (darwin_decode_message): Rename to...
3372 (darwin_nat_target::decode_message): ... this.
3373 (cancel_breakpoint): Rename to...
3374 (darwin_nat_target::cancel_breakpoint): ... this.
3375 (darwin_wait): Rename to...
3376 (darwin_nat_target::wait_1): ... this. Use range-based for loop
3377 instead of iterate_over_inferiors.
3378 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
3379 (darwin_stop_inferior): Rename to...
3380 (darwin_nat_target::stop_inferior): ... this.
3381 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
3382 (darwin_init_thread_list): Rename to...
3383 (darwin_nat_target::init_thread_list): ... this.
3384 (darwin_ptrace_him): Rename to...
3385 (darwin_nat_target::ptrace_him): ... this.
3386 (darwin_nat_target::create_inferior): Pass lambda function to
3387 fork_inferior.
3388 (darwin_nat_target::detach): Call stop_inferior instead of
3389 darwin_stop_inferior.
3390 * fork-inferior.h (fork_inferior): Change init_trace_fun
3391 parameter to gdb::function_view.
3392 * fork-inferior.c (fork_inferior): Likewise.
3393
c162ed3e
HD
33942020-01-23 Hannes Domani <ssbssa@yahoo.de>
3395
3396 * i386-cygwin-tdep.c (core_process_module_section): Update.
3397 * windows-nat.c (struct lm_info_windows): Add text_offset.
3398 (windows_xfer_shared_libraries): Update.
3399 * windows-tdep.c (windows_xfer_shared_library):
3400 Add text_offset_cached argument.
3401 * windows-tdep.h (windows_xfer_shared_library): Update.
3402
a1237872
SM
34032020-01-21 Simon Marchi <simon.marchi@efficios.com>
3404
3405 * gdbarch.sh: Add declaration for _initialize_gdbarch.
3406
b3ee6dd9
SM
34072020-01-21 Simon Marchi <simon.marchi@efficios.com>
3408
3409 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
3410 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
3411 replace with range-based for.
3412 (gdbsim_interrupt_inferior): Remove.
3413 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
3414 with a range-based for. Inline code from
3415 gdbsim_interrupt_inferior.
3416
f9fac3c8
SM
34172020-01-21 Simon Marchi <simon.marchi@efficios.com>
3418
3419 * infrun.c (proceed): Fix indentation.
3420
f6474de9
TT
34212020-01-21 Tom Tromey <tromey@adacore.com>
3422
3423 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
3424 * python/python.c (python_extension_ops): Update.
3425 (gdbpy_colorize): New function.
3426 * python/lib/gdb/__init__.py (colorize): New function.
3427 * extension.h (ext_lang_colorize): Declare.
3428 * extension.c (ext_lang_colorize): New function.
3429 * extension-priv.h (struct extension_language_ops) <colorize>: New
3430 member.
3431 * cli/cli-style.c (_initialize_cli_style): Update help text.
3432
f0c702d4
LM
34332020-01-21 Luis Machado <luis.machado@linaro.org>
3434
3435 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
3436 <cond>: Change type to bool.
3437 (aarch64_displaced_step_b_cond): Update cond to use bool type.
3438 (aarch64_displaced_step_cb): Likewise.
3439 (aarch64_displaced_step_tb): Likewise.
3440
1ab139e5
LM
34412020-01-21 Luis Machado <luis.machado@linaro.org>
3442
3443 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
3444 output.
3445
0c271889
LM
34462020-01-21 Luis Machado <luis.machado@linaro.org>
3447
3448 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
3449 <pc_adjust>: Adjust the documentation.
3450 (aarch64_displaced_step_fixup): Check if PC really moved before
3451 adjusting it.
3452
4d89c1c7
TT
34532020-01-19 Tom Tromey <tom@tromey.com>
3454
3455 * disasm.c (~gdb_disassembler): New destructor.
3456 (gdb_buffered_insn_length): Call disassemble_free_target.
3457 * disasm.h (class gdb_disassembler): Declare destructor. Use
3458 DISABLE_COPY_AND_ASSIGN.
3459
c0ab21c2
TT
34602020-01-19 Tom Tromey <tom@tromey.com>
3461
3462 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
3463 (die_reader_func_ftype): Remove.
3464 (cutu_reader): New class.
3465 (dw2_get_file_names_reader): Remove "data" parameter.
3466 (dw2_get_file_names): Use cutu_reader.
3467 (create_debug_type_hash_table): Update.
3468 (read_cutu_die_from_dwo): Update comment.
3469 (lookup_dwo_unit): Add dwo_name parameter.
3470 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
3471 die_reader_func_ftype and data parameters.
3472 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
3473 Remove die_reader_func_ftype and data parameters.
3474 (~cutu_reader): New; from init_cutu_and_read_dies.
3475 (cutu_reader::cutu_reader): Rename from
3476 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
3477 and data parameters.
3478 (init_cutu_and_read_dies_simple): Remove.
3479 (struct process_psymtab_comp_unit_data): Remove.
3480 (process_psymtab_comp_unit_reader): Remove data parameter; add
3481 want_partial_unit and pretend_language parameters.
3482 (process_psymtab_comp_unit): Use cutu_reader.
3483 (build_type_psymtabs_reader): Remove data parameter.
3484 (build_type_psymtabs_1): Use cutu_reader.
3485 (process_skeletonless_type_unit): Likewise.
3486 (load_partial_comp_unit_reader): Remove.
3487 (load_partial_comp_unit): Use cutu_reader.
3488 (load_full_comp_unit_reader): Remove.
3489 (load_full_comp_unit): Use cutu_reader.
3490 (struct create_dwo_cu_data): Remove.
3491 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
3492 dwo_unit parameters.
3493 (create_cus_hash_table): Use cutu_reader.
3494 (struct dwarf2_read_addr_index_data): Remove.
3495 (dwarf2_read_addr_index_reader): Remove.
3496 (dwarf2_read_addr_index): Use cutu_reader.
3497 (read_signatured_type_reader): Remove.
3498 (read_signatured_type): Use cutu_reader.
3499
45bbae5c
TT
35002020-01-19 Tom Tromey <tom@tromey.com>
3501
3502 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
3503 * tui/tui-wingeneral.h (class tui_suppress_output): New.
3504 (tui_wrefresh): Declare.
3505 * tui/tui-wingeneral.c (suppress_output): New global.
3506 (tui_suppress_output, ~tui_suppress_output): New constructor and
3507 destructor.
3508 (tui_wrefresh): New function.
3509 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
3510 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
3511 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
3512 method.
3513 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
3514 tui_wrefresh.
3515 (tui_data_window::no_refresh): New method.
3516 (tui_data_item_window::refresh_window): Call tui_wrefresh.
3517 (tui_reg_command): Use tui_suppress_output
3518 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
3519 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
3520 method.
3521 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
3522
4f13c1c0
TT
35232020-01-19 Tom Tromey <tom@tromey.com>
3524
3525 * tui/tui-winsource.c (tui_update_source_windows_with_line):
3526 Handle case where symtab is null.
3527
fa47e446
SM
35282020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
3529
3530 * linux-fork.c (one_fork_p): Simplify.
3531
26f42329
SM
35322020-01-17 Simon Marchi <simon.marchi@efficios.com>
3533
3534 * top.c (struct qt_args): Remove.
3535 (kill_or_detach): Change return type to void, replace `void *`
3536 parameter with a proper one.
3537 (print_inferior_quit_action): Likewise.
3538 (quit_confirm): Use range-based for loop to iterate over inferiors.
3539 (quit_force): Likewise.
3540
a9ac81b1
SM
35412020-01-17 Simon Marchi <simon.marchi@efficios.com>
3542
3543 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
3544 `void *` parameter with proper parameters.
3545 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
3546 (print_one_inferior): Change return type to void, replace `void *`
3547 parameter with proper parameters.
3548 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
3549 inferiors.
3550 (get_other_inferior): Remove.
3551 (mi_cmd_remove_inferior): Use range-based loop to iterate over
3552 inferiors.
3553
788eca49
SM
35542020-01-17 Simon Marchi <simon.marchi@efficios.com>
3555
3556 * mi/mi-interp.c (report_initial_inferior): Remove.
3557 (mi_interp::init): Use range-based for to iterate over inferiors.
3558
d9bc85b6
SM
35592020-01-17 Simon Marchi <simon.marchi@efficios.com>
3560
3561 * python/py-inferior.c (build_inferior_list): Remove.
3562 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
3563
40c94099
CB
35642020-01-16 Christian Biesinger <cbiesinger@google.com>
3565
3566 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
3567 (btrace_stitch_trace): Likewise.
3568 * charset.c (intermediate_encoding): Likewise (vaild).
3569 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
3570 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
3571 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
3572
e0cdfe3c
HD
35732020-01-16 Hannes Domani <ssbssa@yahoo.de>
3574
3575 * windows-tdep.c (windows_get_tlb_type):
3576 Add rtl_user_process_parameters type.
3577
790f1718
PA
35782020-01-16 Pedro Alves <palves@redhat.com>
3579 Norbert Lange <nolange79@gmail.com>
3580
3581 PR build/24805
3582 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
3583 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
3584 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
3585 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
3586 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
3587 (ps_plog): Redeclare exported functions with default visibility.
3588
3112ed97
NA
35892020-01-16 Nitika Achra <Nitika.Achra@amd.com>
3590
3591 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
3592 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
3593
8dc3273e
SM
35942020-01-15 Simon Marchi <simon.marchi@efficios.com>
3595
3596 * infcmd.c (post_create_inferior): Use get_thread_regcache
3597 instead of get_current_regcache.
3598
ff47f4f0
TT
35992020-01-14 Tom Tromey <tom@tromey.com>
3600
3601 PR symtab/12535:
3602 * python/python.c (gdbpy_decode_line): Treat empty string the same
3603 as no argument.
3604
975f45b7
TT
36052020-01-14 Tom Tromey <tom@tromey.com>
3606
3607 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
3608
25e57356
TT
36092020-01-14 Tom Tromey <tom@tromey.com>
3610
3611 * nat/linux-btrace.c: Don't include <config.h>.
3612 * nat/linux-ptrace.c: Don't include <config.h>.
3613 * nat/x86-linux-dregs.c: Don't include <config.h>.
3614
05ea2a05
TT
36152020-01-14 Tom Tromey <tom@tromey.com>
3616
3617 * configure: Rebuild.
3618 * configure.ac: Move many checks to ../gdbsupport/common.m4.
3619
01027315
TT
36202020-01-14 Tom Tromey <tom@tromey.com>
3621
3622 * nat/x86-linux-dregs.c: Include configh.h.
3623 * nat/linux-ptrace.c: Include configh.h.
3624 * nat/linux-btrace.c: Include configh.h.
3625 * defs.h: Include config.h, bfd.h.
3626 * configure.ac: Don't source common.host.
3627 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
3628 * configure: Rebuild.
3629 * acinclude.m4: Update path.
3630 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
3631 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
3632 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
3633 (CLIBS): Add LIBSUPPORT.
3634 (CDEPS): Likewise.
3635 (COMMON_SFILES): Remove gdbsupport files.
3636 (HFILES_NO_SRCDIR): Likewise.
3637 (stamp-version): Update path to create-version.sh.
3638 (ALLDEPFILES): Remove gdbsupport files.
3639
b2ceabe8
TT
36402020-01-14 Tom Tromey <tom@tromey.com>
3641
3642 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
3643 USE_WIN32API when needed.
3644 * configure.ac (USE_WIN32API): Don't define.
3645 (WIN32LIBS): Use WIN32APILIBS.
3646 * configure: Rebuild.
3647
25c51f71
TT
36482020-01-14 Tom Tromey <tom@tromey.com>
3649
3650 * configure: Rebuild.
3651 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
3652
717c684d
BE
36532020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3654
3655 * skip.c (skip_function_command): Make skip w/o arguments use the
3656 name of the inlined function if pc is inside any inlined function.
3657
7da6a5b9
LM
36582020-01-14 Luis Machado <luis.machado@linaro.org>
3659
3660 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
3661 * infrun.c (resume_1): Likewise.
3662 (handle_inferior_event): Remove stale comment.
3663 * linux-nat.c (linux_nat_target::resume): Update comments.
3664 (save_stop_reason): Likewise.
3665 (linux_nat_filter_event): Likewise.
3666 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
3667
44e4c775
AB
36682020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3669
3670 * elfread.c (record_minimal_symbol): Set section index to 0 for
3671 non-allocatable sections.
3672
18a8505e
AT
3673
36742020-01-13 Ali Tamur <tamur@google.com>
3675
3676 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
3677 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
3678 to gdb::optional. Update comments.
3679 (dwo_file): Update comments.
3680 (read_attribute): Update API to take an additional out parameter,
3681 need_reprocess. This is used to mark attributes that need other
3682 attributes (e.g. str_offsets_base) for correct computation which may not
3683 have been read yet.
3684 (read_attribute_reprocess): New function declaration.
3685 (read_addr_index): Likewise.
3686 (read_dwo_str_index): Likewise.
3687 (read_stub_str_index): Likewise.
3688 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
3689 (lookup_addr_base): New function definition.
3690 (lookup_ranges_base): Likewise.
3691 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
3692 lookup_ranges_base.
3693 (init_cutu_and_read_dies): Update comments.
3694 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
3695 unit. This is used to inherit parent's str_offsets_base and addr_base.
3696 Update comments.
3697 (init_cutu_and_read_dies_simple): Reflect API changes.
3698 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
3699 (create_cus_hash_table): Change API to take parent compile unit.
3700 Reflect API changes.
3701 (open_and_init_dwo_file): Reflect API changes.
3702 (dwarf2_get_pc_bounds): Update comments.
3703 (dwarf2_record_block_ranges): Likewise.
3704 (read_full_die_1): Change implementation to reprocess attributes that
3705 need str_offsets_base and addr_base.
3706 (partial_die_info::read): Likewise.
3707 (read_attribute_reprocess): New function definition.
3708 (read_attribute_value): Change API to take an additional out parameter,
3709 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
3710 when a non-dwo compile unit has index based attributes.
3711 (read_attribute): Reflect API changes.
3712 (read_addr_index_1): Reflect API changes. Update comments.
3713 (dwarf2_read_addr_index_data): Reflect API changes.
3714 (dwarf2_read_addr_index): Likewise.
3715 (read_str_index): Change API and implementation. This becomes a helper
3716 to be used by the new string index related methods. Update error
3717 message and comments.
3718 (read_dwo_str_index): New function definition.
3719 (read_stub_str_index): Likewise.
3720 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
3721 * symfile.h (dwarf2_debug_sections): Likewise.
3722 * xcoffread.c (dwarf2_debug_sections): Likewise.
3723
0cac9354
SM
37242020-01-13 Simon Marchi <simon.marchi@efficios.com>
3725
3726 * gdbcore.h (struct core_fns) <core_read_registers>: Change
3727 core_reg_sect type to gdb_byte *.
3728 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
3729 * cris-tdep.c (fetch_core_registers): Likewise.
3730 * corelow.c (core_target::get_core_register_section): Change
3731 type of `contents` to gdb::byte_vector.
3732
9a6d629c
AB
37332020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3734
3735 * tui/tui-wingeneral.c (box_win): Position the title in the center
3736 of the border.
3737
d8b2f9e3
SM
37382020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3739
3740 * corelow.c (core_target::get_core_register_section): Use
3741 std::vector instead of alloca.
3742
bb564c58
SM
37432020-01-13 Simon Marchi <simon.marchi@efficios.com>
3744
3745 * warning.m4: Add -Wmissing-declarations to build_warnings.
3746 * configure: Re-generate.
3747
6b366111
SM
37482020-01-13 Simon Marchi <simon.marchi@efficios.com>
3749
3750 * python/python.c (init__gdb_module): Add declaration.
3751
6c265988
SM
37522020-01-13 Simon Marchi <simon.marchi@efficios.com>
3753
3754 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
3755 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
3756 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
3757 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
3758 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
3759 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
3760 * ada-exp.y (_initialize_ada_exp): Add declaration.
3761 * ada-lang.c (_initialize_ada_language): Add declaration.
3762 * ada-tasks.c (_initialize_tasks): Add declaration.
3763 * agent.c (_initialize_agent): Add declaration.
3764 * aix-thread.c (_initialize_aix_thread): Add declaration.
3765 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
3766 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
3767 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
3768 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
3769 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
3770 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3771 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
3772 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
3773 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
3774 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
3775 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
3776 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
3777 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
3778 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
3779 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
3780 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
3781 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
3782 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
3783 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
3784 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
3785 * annotate.c (_initialize_annotate): Add declaration.
3786 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
3787 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
3788 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
3789 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
3790 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
3791 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
3792 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
3793 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
3794 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
3795 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
3796 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
3797 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
3798 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3799 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
3800 * auto-load.c (_initialize_auto_load): Add declaration.
3801 * auxv.c (_initialize_auxv): Add declaration.
3802 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
3803 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
3804 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
3805 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
3806 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
3807 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
3808 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
3809 * breakpoint.c (_initialize_breakpoint): Add declaration.
3810 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
3811 * btrace.c (_initialize_btrace): Add declaration.
3812 * charset.c (_initialize_charset): Add declaration.
3813 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
3814 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3815 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3816 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
3817 * cli/cli-script.c (_initialize_cli_script): Add declaration.
3818 * cli/cli-style.c (_initialize_cli_style): Add declaration.
3819 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
3820 * coffread.c (_initialize_coffread): Add declaration.
3821 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
3822 * compile/compile.c (_initialize_compile): Add declaration.
3823 * complaints.c (_initialize_complaints): Add declaration.
3824 * completer.c (_initialize_completer): Add declaration.
3825 * copying.c (_initialize_copying): Add declaration.
3826 * corefile.c (_initialize_core): Add declaration.
3827 * corelow.c (_initialize_corelow): Add declaration.
3828 * cp-abi.c (_initialize_cp_abi): Add declaration.
3829 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
3830 * cp-support.c (_initialize_cp_support): Add declaration.
3831 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
3832 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
3833 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
3834 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
3835 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
3836 * ctfread.c (_initialize_ctfread): Add declaration.
3837 * d-lang.c (_initialize_d_language): Add declaration.
3838 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
3839 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
3840 * dbxread.c (_initialize_dbxread): Add declaration.
3841 * dcache.c (_initialize_dcache): Add declaration.
3842 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
3843 * disasm.c (_initialize_disasm): Add declaration.
3844 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
3845 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
3846 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
3847 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
3848 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
3849 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
3850 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
3851 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
3852 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
3853 * elfread.c (_initialize_elfread): Add declaration.
3854 * exec.c (_initialize_exec): Add declaration.
3855 * extension.c (_initialize_extension): Add declaration.
3856 * f-lang.c (_initialize_f_language): Add declaration.
3857 * f-valprint.c (_initialize_f_valprint): Add declaration.
3858 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
3859 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
3860 * filesystem.c (_initialize_filesystem): Add declaration.
3861 * findcmd.c (_initialize_mem_search): Add declaration.
3862 * findvar.c (_initialize_findvar): Add declaration.
3863 * fork-child.c (_initialize_fork_child): Add declaration.
3864 * frame-base.c (_initialize_frame_base): Add declaration.
3865 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3866 * frame.c (_initialize_frame): Add declaration.
3867 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
3868 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
3869 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
3870 * gcore.c (_initialize_gcore): Add declaration.
3871 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
3872 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
3873 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
3874 * gdbarch.c (_initialize_gdbarch): Add declaration.
3875 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
3876 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
3877 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
3878 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
3879 * go-lang.c (_initialize_go_language): Add declaration.
3880 * go32-nat.c (_initialize_go32_nat): Add declaration.
3881 * guile/guile.c (_initialize_guile): Add declaration.
3882 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3883 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
3884 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
3885 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
3886 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
3887 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
3888 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
3889 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
3890 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
3891 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
3892 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
3893 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
3894 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
3895 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
3896 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
3897 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
3898 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
3899 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
3900 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
3901 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
3902 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
3903 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
3904 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
3905 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
3906 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
3907 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
3908 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
3909 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
3910 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
3911 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
3912 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
3913 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
3914 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
3915 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
3916 * infcall.c (_initialize_infcall): Add declaration.
3917 * infcmd.c (_initialize_infcmd): Add declaration.
3918 * inflow.c (_initialize_inflow): Add declaration.
3919 * infrun.c (_initialize_infrun): Add declaration.
3920 * interps.c (_initialize_interpreter): Add declaration.
3921 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
3922 * jit.c (_initialize_jit): Add declaration.
3923 * language.c (_initialize_language): Add declaration.
3924 * linux-fork.c (_initialize_linux_fork): Add declaration.
3925 * linux-nat.c (_initialize_linux_nat): Add declaration.
3926 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
3927 * linux-thread-db.c (_initialize_thread_db): Add declaration.
3928 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
3929 * m2-lang.c (_initialize_m2_language): Add declaration.
3930 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
3931 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
3932 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
3933 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
3934 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3935 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
3936 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
3937 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
3938 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
3939 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3940 * machoread.c (_initialize_machoread): Add declaration.
3941 * macrocmd.c (_initialize_macrocmd): Add declaration.
3942 * macroscope.c (_initialize_macroscope): Add declaration.
3943 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
3944 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
3945 * maint.c (_initialize_maint_cmds): Add declaration.
3946 * mdebugread.c (_initialize_mdebugread): Add declaration.
3947 * memattr.c (_initialize_mem): Add declaration.
3948 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
3949 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
3950 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
3951 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
3952 * mi/mi-main.c (_initialize_mi_main): Add declaration.
3953 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
3954 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
3955 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
3956 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
3957 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
3958 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
3959 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
3960 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
3961 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
3962 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3963 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
3964 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
3965 * mipsread.c (_initialize_mipsread): Add declaration.
3966 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
3967 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
3968 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
3969 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
3970 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
3971 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
3972 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
3973 * nto-procfs.c (_initialize_procfs): Add declaration.
3974 * objc-lang.c (_initialize_objc_language): Add declaration.
3975 * observable.c (_initialize_observer): Add declaration.
3976 * opencl-lang.c (_initialize_opencl_language): Add declaration.
3977 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
3978 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
3979 * osabi.c (_initialize_gdb_osabi): Add declaration.
3980 * osdata.c (_initialize_osdata): Add declaration.
3981 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3982 * parse.c (_initialize_parse): Add declaration.
3983 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
3984 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
3985 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
3986 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
3987 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
3988 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
3989 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
3990 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
3991 * printcmd.c (_initialize_printcmd): Add declaration.
3992 * probe.c (_initialize_probe): Add declaration.
3993 * proc-api.c (_initialize_proc_api): Add declaration.
3994 * proc-events.c (_initialize_proc_events): Add declaration.
3995 * proc-service.c (_initialize_proc_service): Add declaration.
3996 * procfs.c (_initialize_procfs): Add declaration.
3997 * producer.c (_initialize_producer): Add declaration.
3998 * psymtab.c (_initialize_psymtab): Add declaration.
3999 * python/python.c (_initialize_python): Add declaration.
4000 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
4001 * record-btrace.c (_initialize_record_btrace): Add declaration.
4002 * record-full.c (_initialize_record_full): Add declaration.
4003 * record.c (_initialize_record): Add declaration.
4004 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
4005 * regcache.c (_initialize_regcache): Add declaration.
4006 * reggroups.c (_initialize_reggroup): Add declaration.
4007 * remote-notif.c (_initialize_notif): Add declaration.
4008 * remote-sim.c (_initialize_remote_sim): Add declaration.
4009 * remote.c (_initialize_remote): Add declaration.
4010 * reverse.c (_initialize_reverse): Add declaration.
4011 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
4012 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
4013 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
4014 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
4015 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
4016 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
4017 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
4018 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
4019 Add declaration.
4020 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
4021 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
4022 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
4023 * rust-exp.y (_initialize_rust_exp): Add declaration.
4024 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
4025 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
4026 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
4027 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
4028 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
4029 * score-tdep.c (_initialize_score_tdep): Add declaration.
4030 * ser-go32.c (_initialize_ser_dos): Add declaration.
4031 * ser-mingw.c (_initialize_ser_windows): Add declaration.
4032 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
4033 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
4034 * ser-uds.c (_initialize_ser_socket): Add declaration.
4035 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
4036 * serial.c (_initialize_serial): Add declaration.
4037 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
4038 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
4039 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
4040 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
4041 * skip.c (_initialize_step_skip): Add declaration.
4042 * sol-thread.c (_initialize_sol_thread): Add declaration.
4043 * solib-aix.c (_initialize_solib_aix): Add declaration.
4044 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
4045 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
4046 * solib-frv.c (_initialize_frv_solib): Add declaration.
4047 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4048 * solib-target.c (_initialize_solib_target): Add declaration.
4049 * solib.c (_initialize_solib): Add declaration.
4050 * source-cache.c (_initialize_source_cache): Add declaration.
4051 * source.c (_initialize_source): Add declaration.
4052 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
4053 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
4054 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
4055 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
4056 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
4057 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
4058 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
4059 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
4060 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
4061 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
4062 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
4063 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
4064 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
4065 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
4066 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
4067 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
4068 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
4069 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
4070 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
4071 * stabsread.c (_initialize_stabsread): Add declaration.
4072 * stack.c (_initialize_stack): Add declaration.
4073 * stap-probe.c (_initialize_stap_probe): Add declaration.
4074 * std-regs.c (_initialize_frame_reg): Add declaration.
4075 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
4076 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
4077 * symfile.c (_initialize_symfile): Add declaration.
4078 * symmisc.c (_initialize_symmisc): Add declaration.
4079 * symtab.c (_initialize_symtab): Add declaration.
4080 * target.c (_initialize_target): Add declaration.
4081 * target-connection.c (_initialize_target_connection): Add
4082 declaration.
4083 * target-dcache.c (_initialize_target_dcache): Add declaration.
4084 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
4085 * thread.c (_initialize_thread): Add declaration.
4086 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
4087 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
4088 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
4089 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
4090 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
4091 * tracectf.c (_initialize_ctf): Add declaration.
4092 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
4093 * tracefile.c (_initialize_tracefile): Add declaration.
4094 * tracepoint.c (_initialize_tracepoint): Add declaration.
4095 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
4096 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
4097 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
4098 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
4099 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
4100 * tui/tui-win.c (_initialize_tui_win): Add declaration.
4101 * tui/tui.c (_initialize_tui): Add declaration.
4102 * typeprint.c (_initialize_typeprint): Add declaration.
4103 * ui-style.c (_initialize_ui_style): Add declaration.
4104 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
4105 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
4106 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
4107 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
4108 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
4109 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
4110 * unittests/filtered_iterator-selftests.c
4111 (_initialize_filtered_iterator_selftests): Add declaration.
4112 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
4113 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
4114 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
4115 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
4116 * unittests/main-thread-selftests.c
4117 (_initialize_main_thread_selftests): Add declaration.
4118 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
4119 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
4120 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
4121 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
4122 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
4123 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
4124 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
4125 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
4126 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
4127 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
4128 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
4129 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
4130 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
4131 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
4132 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
4133 declaration.
4134 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
4135 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
4136 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
4137 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
4138 * user-regs.c (_initialize_user_regs): Add declaration.
4139 * utils.c (_initialize_utils): Add declaration.
4140 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
4141 * valops.c (_initialize_valops): Add declaration.
4142 * valprint.c (_initialize_valprint): Add declaration.
4143 * value.c (_initialize_values): Add declaration.
4144 * varobj.c (_initialize_varobj): Add declaration.
4145 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
4146 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
4147 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4148 * windows-nat.c (_initialize_windows_nat): Add declaration.
4149 (_initialize_check_for_gdb_ini): Add declaration.
4150 (_initialize_loadable): Add declaration.
4151 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
4152 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
4153 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
4154 * xcoffread.c (_initialize_xcoffread): Add declaration.
4155 * xml-support.c (_initialize_xml_support): Add declaration.
4156 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
4157 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
4158 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
4159 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
4160
e2de1eec
SM
41612020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4162
4163 * regformats/regdat.sh: Generate declaration for init function.
4164
e0037b4c
SM
41652020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4166
4167 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
4168 up.
4169 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
4170 close_one_inferior>: New methods.
4171 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
4172 pass down target to find_inferior_pid.
4173 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
4174 Pass down target to find_inferior_ptid.
4175 (gdbsim_target::create_inferior): Pass down target to
4176 add_thread_silent.
4177 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
4178 target down to find_inferior_ptid and switch_to_thread.
4179 (gdbsim_target::close): Update to call close_one_inferior.
4180 (struct resume_data): Remove.
4181 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
4182 directly, rather than through a void pointer.
4183 (gdbsim_target::resume): Update to call resume_one_inferior.
4184
58920b5b
SM
41852020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4186
4187 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
4188
4ec89149
PA
41892020-01-12 Pedro Alves <palves@redhat.com>
4190
4191 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
4192 directly for the current inferior instead of
4193 discard_all_inferiors.
4194 (discard_all_inferiors): Delete.
4195
7c392d1d
TT
41962020-01-11 Tom Tromey <tom@tromey.com>
4197
4198 * tui/tui-wingeneral.c (box_win): Check cli_styling.
4199 * tui/tui-winsource.c (tui_source_window_base::refill): Use
4200 deprecated_safe_get_selected_frame.
4201
d9ebdab7
TBA
42022020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4203
4204 * inferior.c (print_inferior): Switch inferior before printing it.
4205
f3c469b9
PA
42062020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
4207 Pedro Alves <palves@redhat.com>
4208
4209 * progspace-and-thread.c (switch_to_program_space_and_thread):
4210 Assert there's an inferior for PSPACE. Use
4211 switch_to_inferior_no_thread to switch the inferior too.
4212 * progspace.c (program_space::~program_space): Call
4213 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
4214 (program_space::free_all_objfiles): Don't call clear_symtab_users
4215 here.
4216 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
4217
65c574f6
PA
42182020-01-10 Pedro Alves <palves@redhat.com>
4219
4220 * NEWS: Mention multi-target debugging, "info connections", and
4221 "add-inferior -no-connection".
4222
2f4fcf00
PA
42232020-01-10 Pedro Alves <palves@redhat.com>
4224
4225 * infrun.c: Include "target-connection.h".
4226 (check_multi_target_resumption): New.
4227 (proceed): Call it.
4228 * target-connection.c (make_target_connection_string): Make
4229 extern.
4230 * target-connection.h (make_target_connection_string): Declare.
4231
121b3efd
PA
42322020-01-10 Pedro Alves <palves@redhat.com>
4233
4234 * Makefile.in (COMMON_SFILES): Add target-connection.c.
4235 * inferior.c (uiout_field_connection): New function.
4236 (print_inferior): Add new "connection-id" column.
4237 (add_inferior_command): Show connection number/string of added
4238 inferior.
4239 * process-stratum-target.h
4240 (process_stratum_target::connection_string): New virtual method.
4241 (process_stratum_target::connection_number): New field.
4242 * remote.c (remote_target::connection_string): New override.
4243 * target-connection.c: New file.
4244 * target-connection.h: New file.
4245 * target.c (decref_target): Remove process_stratum targets from
4246 the connection list.
4247 (target_stack::push): Add process_stratum targets to the
4248 connection list.
4249
4f837581
PA
42502020-01-10 Pedro Alves <palves@redhat.com>
4251
4252 Revert:
4253 2016-04-12 Pedro Alves <palves@redhat.com>
4254 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
4255 Remove references to name.
4256 * serial.h (struct serial) <name>: Delete.
4257
f4ec508e
PA
42582020-01-10 Pedro Alves <palves@redhat.com>
4259
4260 * gdbarch-selftests.c (register_to_value_test): Remove "target
4261 already pushed" check.
4262
5b6d1e4f
PA
42632020-01-10 Pedro Alves <palves@redhat.com>
4264 John Baldwin <jhb@FreeBSD.org>
4265
4266 * aarch64-linux-nat.c
4267 (aarch64_linux_nat_target::thread_architecture): Adjust.
4268 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
4269 (task_command_1): Likewise.
4270 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
4271 (aix_thread_target::wait, aix_thread_target::fetch_registers)
4272 (aix_thread_target::store_registers)
4273 (aix_thread_target::thread_alive): Adjust.
4274 * amd64-fbsd-tdep.c: Include "inferior.h".
4275 (amd64fbsd_get_thread_local_address): Pass down target.
4276 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
4277 thread's gdbarch instead of target_gdbarch.
4278 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
4279 get_last_target_status.
4280 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
4281 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
4282 inferiors.
4283 (update_inserted_breakpoint_locations): Skip if inferiors with no
4284 execution.
4285 (update_global_location_list): When handling moribund locations,
4286 find representative inferior for location's pspace, and use thread
4287 count of its process_stratum target.
4288 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
4289 * bsd-uthread.c (bsd_uthread_target::wait): Use
4290 as_process_stratum_target and adjust thread_change_ptid and
4291 add_thread calls.
4292 (bsd_uthread_target::update_thread_list): Use
4293 as_process_stratum_target and adjust find_thread_ptid,
4294 thread_change_ptid and add_thread calls.
4295 * btrace.c (maint_btrace_packet_history_cmd): Adjust
4296 find_thread_ptid call.
4297 * corelow.c (add_to_thread_list): Adjust add_thread call.
4298 (core_target_open): Adjust add_thread_silent and thread_count
4299 calls.
4300 (core_target::pid_to_str): Adjust find_inferior_ptid call.
4301 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
4302 * event-top.c (async_disconnect): Pop targets from all inferiors.
4303 * exec.c (add_target_sections): Push exec target on all inferiors
4304 sharing the program space.
4305 (remove_target_sections): Remove the exec target from all
4306 inferiors sharing the program space.
4307 (exec_on_vfork): New.
4308 * exec.h (exec_on_vfork): Declare.
4309 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
4310 Pass it down.
4311 (fbsd_nat_target::update_thread_list): Adjust.
4312 (fbsd_nat_target::resume): Adjust.
4313 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
4314 down.
4315 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
4316 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
4317 get_thread_arch_regcache call.
4318 * fork-child.c (gdb_startup_inferior): Pass target down to
4319 startup_inferior and set_executing.
4320 * gdbthread.h (struct process_stratum_target): Forward declare.
4321 (add_thread, add_thread_silent, add_thread_with_info)
4322 (in_thread_list): Add process_stratum_target parameter.
4323 (find_thread_ptid(inferior*, ptid_t)): New overload.
4324 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
4325 parameter.
4326 (all_threads()): Delete overload.
4327 (all_threads, all_non_exited_threads): Add process_stratum_target
4328 parameter.
4329 (all_threads_safe): Use brace initialization.
4330 (thread_count): Add process_stratum_target parameter.
4331 (set_resumed, set_running, set_stop_requested, set_executing)
4332 (threads_are_executing, finish_thread_state): Add
4333 process_stratum_target parameter.
4334 (switch_to_thread): Use is_current_thread.
4335 * i386-fbsd-tdep.c: Include "inferior.h".
4336 (i386fbsd_get_thread_local_address): Pass down target.
4337 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
4338 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
4339 have_inferiors check.
4340 * inf-ptrace.c (inf_ptrace_target::create_inferior)
4341 (inf_ptrace_target::attach): Adjust.
4342 * infcall.c (run_inferior_call): Adjust.
4343 * infcmd.c (run_command_1): Pass target to
4344 scoped_finish_thread_state.
4345 (proceed_thread_callback): Skip inferiors with no execution.
4346 (continue_command): Rename 'all_threads' local to avoid hiding
4347 'all_threads' function. Adjust get_last_target_status call.
4348 (prepare_one_step): Adjust set_running call.
4349 (signal_command): Use user_visible_resume_target. Compare thread
4350 pointers instead of inferior_ptid.
4351 (info_program_command): Adjust to pass down target.
4352 (attach_command): Mark target's 'thread_executing' flag.
4353 (stop_current_target_threads_ns): New, factored out from ...
4354 (interrupt_target_1): ... this. Switch inferior before making
4355 target calls.
4356 * inferior-iter.h
4357 (struct all_inferiors_iterator, struct all_inferiors_range)
4358 (struct all_inferiors_safe_range)
4359 (struct all_non_exited_inferiors_range): Filter on
4360 process_stratum_target too. Remove explicit.
4361 * inferior.c (inferior::inferior): Push dummy target on target
4362 stack.
4363 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
4364 Add process_stratum_target parameter, and pass it down.
4365 (have_live_inferiors): Adjust.
4366 (switch_to_inferior_and_push_target): New.
4367 (add_inferior_command, clone_inferior_command): Handle
4368 "-no-connection" parameter. Use
4369 switch_to_inferior_and_push_target.
4370 (_initialize_inferior): Mention "-no-connection" option in
4371 the help of "add-inferior" and "clone-inferior" commands.
4372 * inferior.h: Include "process-stratum-target.h".
4373 (interrupt_target_1): Use bool.
4374 (struct inferior) <push_target, unpush_target, target_is_pushed,
4375 find_target_beneath, top_target, process_target, target_at,
4376 m_stack>: New.
4377 (discard_all_inferiors): Delete.
4378 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
4379 (all_inferiors, all_non_exited_inferiors): Add
4380 process_stratum_target parameter.
4381 * infrun.c: Include "gdb_select.h" and <unordered_map>.
4382 (target_last_proc_target): New global.
4383 (follow_fork_inferior): Push target on new inferior. Pass target
4384 to add_thread_silent. Call exec_on_vfork. Handle target's
4385 reference count.
4386 (follow_fork): Adjust get_last_target_status call. Also consider
4387 target.
4388 (follow_exec): Push target on new inferior.
4389 (struct execution_control_state) <target>: New field.
4390 (user_visible_resume_target): New.
4391 (do_target_resume): Call target_async.
4392 (resume_1): Set target's threads_executing flag. Consider resume
4393 target.
4394 (commit_resume_all_targets): New.
4395 (proceed): Also consider resume target. Skip threads of inferiors
4396 with no execution. Commit resumtion in all targets.
4397 (start_remote): Pass current inferior to wait_for_inferior.
4398 (infrun_thread_stop_requested): Consider target as well. Pass
4399 thread_info pointer to clear_inline_frame_state instead of ptid.
4400 (infrun_thread_thread_exit): Consider target as well.
4401 (random_pending_event_thread): New inferior parameter. Use it.
4402 (do_target_wait): Rename to ...
4403 (do_target_wait_1): ... this. Add inferior parameter, and pass it
4404 down.
4405 (threads_are_resumed_pending_p, do_target_wait): New.
4406 (prepare_for_detach): Adjust calls.
4407 (wait_for_inferior): New inferior parameter. Handle it. Use
4408 do_target_wait_1 instead of do_target_wait.
4409 (fetch_inferior_event): Adjust. Switch to representative
4410 inferior. Pass target down.
4411 (set_last_target_status): Add process_stratum_target parameter.
4412 Save target in global.
4413 (get_last_target_status): Add process_stratum_target parameter and
4414 handle it.
4415 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
4416 (context_switch): Check inferior_ptid == null_ptid before calling
4417 inferior_thread().
4418 (get_inferior_stop_soon): Pass down target.
4419 (wait_one): Rename to ...
4420 (poll_one_curr_target): ... this.
4421 (struct wait_one_event): New.
4422 (wait_one): New.
4423 (stop_all_threads): Adjust.
4424 (handle_no_resumed, handle_inferior_event): Adjust to consider the
4425 event's target.
4426 (switch_back_to_stepped_thread): Also consider target.
4427 (print_stop_event): Update.
4428 (normal_stop): Update. Also consider the resume target.
4429 * infrun.h (wait_for_inferior): Remove declaration.
4430 (user_visible_resume_target): New declaration.
4431 (get_last_target_status, set_last_target_status): New
4432 process_stratum_target parameter.
4433 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
4434 process_stratum_target parameter, and use it.
4435 (clear_inline_frame_state (thread_info*)): New.
4436 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
4437 process_stratum_target parameter.
4438 (clear_inline_frame_state (thread_info*)): Declare.
4439 * linux-fork.c (delete_checkpoint_command): Pass target down to
4440 find_thread_ptid.
4441 (checkpoint_command): Adjust.
4442 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
4443 instead of just tweaking inferior_ptid.
4444 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
4445 (exit_lwp): Pass target down to find_thread_ptid.
4446 (attach_proc_task_lwp_callback): Pass target down to
4447 add_thread/set_running/set_executing.
4448 (linux_nat_target::attach): Pass target down to
4449 thread_change_ptid.
4450 (get_detach_signal): Pass target down to find_thread_ptid.
4451 Consider last target status's target.
4452 (linux_resume_one_lwp_throw, resume_lwp)
4453 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
4454 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
4455 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
4456 (linux_nat_target::async_wait_fd): New.
4457 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
4458 target down.
4459 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
4460 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
4461 * linux-thread-db.c (struct thread_db_info::process_target): New
4462 field.
4463 (add_thread_db_info): Save target.
4464 (get_thread_db_info): New process_stratum_target parameter. Also
4465 match target.
4466 (delete_thread_db_info): New process_stratum_target parameter.
4467 Also match target.
4468 (thread_from_lwp): Adjust to pass down target.
4469 (thread_db_notice_clone): Pass down target.
4470 (check_thread_db_callback): Pass down target.
4471 (try_thread_db_load_1): Always push the thread_db target.
4472 (try_thread_db_load, record_thread): Pass target down.
4473 (thread_db_target::detach): Pass target down. Always unpush the
4474 thread_db target.
4475 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
4476 target down. Always unpush the thread_db target.
4477 (find_new_threads_callback, thread_db_find_new_threads_2)
4478 (thread_db_target::update_thread_list): Pass target down.
4479 (thread_db_target::pid_to_str): Pass current inferior down.
4480 (thread_db_target::get_thread_local_address): Pass target down.
4481 (thread_db_target::resume, maintenance_check_libthread_db): Pass
4482 target down.
4483 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
4484 * procfs.c (procfs_target::procfs_init_inferior): Declare.
4485 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
4486 (procfs_init_inferior): Rename to ...
4487 (procfs_target::procfs_init_inferior): ... this and adjust.
4488 (procfs_target::create_inferior, procfs_notice_thread)
4489 (procfs_do_thread_registers): Adjust.
4490 * ppc-fbsd-tdep.c: Include "inferior.h".
4491 (ppcfbsd_get_thread_local_address): Pass down target.
4492 * proc-service.c (ps_xfer_memory): Switch current inferior and
4493 program space as well.
4494 (get_ps_regcache): Pass target down.
4495 * process-stratum-target.c
4496 (process_stratum_target::thread_address_space)
4497 (process_stratum_target::thread_architecture): Pass target down.
4498 * process-stratum-target.h
4499 (process_stratum_target::threads_executing): New field.
4500 (as_process_stratum_target): New.
4501 * ravenscar-thread.c
4502 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
4503 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
4504 down.
4505 * record-btrace.c (record_btrace_target::info_record): Adjust.
4506 (record_btrace_target::record_method)
4507 (record_btrace_target::record_is_replaying)
4508 (record_btrace_target::fetch_registers)
4509 (get_thread_current_frame_id, record_btrace_target::resume)
4510 (record_btrace_target::wait, record_btrace_target::stop): Pass
4511 target down.
4512 * record-full.c (record_full_wait_1): Switch to event thread.
4513 Pass target down.
4514 * regcache.c (regcache::regcache)
4515 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
4516 process_stratum_target parameter and handle it.
4517 (current_thread_target): New global.
4518 (get_thread_regcache): Add process_stratum_target parameter and
4519 handle it. Switch inferior before calling target method.
4520 (get_thread_regcache): Pass target down.
4521 (get_thread_regcache_for_ptid): Pass target down.
4522 (registers_changed_ptid): Add process_stratum_target parameter and
4523 handle it.
4524 (registers_changed_thread, registers_changed): Pass target down.
4525 (test_get_thread_arch_aspace_regcache): New.
4526 (current_regcache_test): Define a couple local test_target_ops
4527 instances and use them for testing.
4528 (readwrite_regcache): Pass process_stratum_target parameter.
4529 (cooked_read_test, cooked_write_test): Pass mock_target down.
4530 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
4531 (get_thread_arch_aspace_regcache): Add process_stratum_target
4532 parameter.
4533 (regcache::target): New method.
4534 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
4535 (regcache::registers_changed_ptid): Add process_stratum_target
4536 parameter.
4537 (regcache::m_target): New field.
4538 (registers_changed_ptid): Add process_stratum_target parameter.
4539 * remote.c (remote_state::supports_vCont_probed): New field.
4540 (remote_target::async_wait_fd): New method.
4541 (remote_unpush_and_throw): Add remote_target parameter.
4542 (get_current_remote_target): Adjust.
4543 (remote_target::remote_add_inferior): Push target.
4544 (remote_target::remote_add_thread)
4545 (remote_target::remote_notice_new_inferior)
4546 (get_remote_thread_info): Pass target down.
4547 (remote_target::update_thread_list): Skip threads of inferiors
4548 bound to other targets. (remote_target::close): Don't discard
4549 inferiors. (remote_target::add_current_inferior_and_thread)
4550 (remote_target::process_initial_stop_replies)
4551 (remote_target::start_remote)
4552 (remote_target::remote_serial_quit_handler): Pass down target.
4553 (remote_target::remote_unpush_target): New remote_target
4554 parameter. Unpush the target from all inferiors.
4555 (remote_target::remote_unpush_and_throw): New remote_target
4556 parameter. Pass it down.
4557 (remote_target::open_1): Check whether the current inferior has
4558 execution instead of checking whether any inferior is live. Pass
4559 target down.
4560 (remote_target::remote_detach_1): Pass down target. Use
4561 remote_unpush_target.
4562 (extended_remote_target::attach): Pass down target.
4563 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
4564 (remote_target::append_resumption): Pass down target.
4565 (remote_target::append_pending_thread_resumptions)
4566 (remote_target::remote_resume_with_hc, remote_target::resume)
4567 (remote_target::commit_resume): Pass down target.
4568 (remote_target::remote_stop_ns): Check supports_vCont_probed.
4569 (remote_target::interrupt_query)
4570 (remote_target::remove_new_fork_children)
4571 (remote_target::check_pending_events_prevent_wildcard_vcont)
4572 (remote_target::remote_parse_stop_reply)
4573 (remote_target::process_stop_reply): Pass down target.
4574 (first_remote_resumed_thread): New remote_target parameter. Pass
4575 it down.
4576 (remote_target::wait_as): Pass down target.
4577 (unpush_and_perror): New remote_target parameter. Pass it down.
4578 (remote_target::readchar, remote_target::remote_serial_write)
4579 (remote_target::getpkt_or_notif_sane_1)
4580 (remote_target::kill_new_fork_children, remote_target::kill): Pass
4581 down target.
4582 (remote_target::mourn_inferior): Pass down target. Use
4583 remote_unpush_target.
4584 (remote_target::core_of_thread)
4585 (remote_target::remote_btrace_maybe_reopen): Pass down target.
4586 (remote_target::pid_to_exec_file)
4587 (remote_target::thread_handle_to_thread_info): Pass down target.
4588 (remote_target::async_wait_fd): New.
4589 * riscv-fbsd-tdep.c: Include "inferior.h".
4590 (riscv_fbsd_get_thread_local_address): Pass down target.
4591 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
4592 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
4593 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
4594 Adjust.
4595 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
4596 * solib-svr4.c (enable_break): Pass down target.
4597 * spu-multiarch.c (parse_spufs_run): Pass down target.
4598 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
4599 * target-delegates.c: Regenerate.
4600 * target.c (g_target_stack): Delete.
4601 (current_top_target): Return the current inferior's top target.
4602 (target_has_execution_1): Refer to the passed-in inferior's top
4603 target.
4604 (target_supports_terminal_ours): Check whether the initial
4605 inferior was already created.
4606 (decref_target): New.
4607 (target_stack::push): Incref/decref the target.
4608 (push_target, push_target, unpush_target): Adjust.
4609 (target_stack::unpush): Defref target.
4610 (target_is_pushed): Return bool. Adjust to refer to the current
4611 inferior's target stack.
4612 (dispose_inferior): Delete, and inline parts ...
4613 (target_preopen): ... here. Only dispose of the current inferior.
4614 (target_detach): Hold strong target reference while detaching.
4615 Pass target down.
4616 (target_thread_name): Add assertion.
4617 (target_resume): Pass down target.
4618 (target_ops::beneath, find_target_at): Adjust to refer to the
4619 current inferior's target stack.
4620 (get_dummy_target): New.
4621 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
4622 has a thread running.
4623 (initialize_targets): Rename to ...
4624 (_initialize_target): ... this.
4625 * target.h: Include "gdbsupport/refcounted-object.h".
4626 (struct target_ops): Inherit refcounted_object.
4627 (target_ops::shortname, target_ops::longname): Make const.
4628 (target_ops::async_wait_fd): New method.
4629 (decref_target): Declare.
4630 (struct target_ops_ref_policy): New.
4631 (target_ops_ref): New typedef.
4632 (get_dummy_target): Declare function.
4633 (target_is_pushed): Return bool.
4634 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
4635 (all_matching_threads_iterator::all_matching_threads_iterator):
4636 Handle filter target.
4637 * thread-iter.h (struct all_matching_threads_iterator, struct
4638 all_matching_threads_range, class all_non_exited_threads_range):
4639 Filter by target too. Remove explicit.
4640 * thread.c (threads_executing): Delete.
4641 (inferior_thread): Pass down current inferior.
4642 (clear_thread_inferior_resources): Pass down thread pointer
4643 instead of ptid_t.
4644 (add_thread_silent, add_thread_with_info, add_thread): Add
4645 process_stratum_target parameter. Use it for thread and inferior
4646 searches.
4647 (is_current_thread): New.
4648 (thread_info::deletable): Use it.
4649 (find_thread_ptid, thread_count, in_thread_list)
4650 (thread_change_ptid, set_resumed, set_running): New
4651 process_stratum_target parameter. Pass it down.
4652 (set_executing): New process_stratum_target parameter. Pass it
4653 down. Adjust reference to 'threads_executing'.
4654 (threads_are_executing): New process_stratum_target parameter.
4655 Adjust reference to 'threads_executing'.
4656 (set_stop_requested, finish_thread_state): New
4657 process_stratum_target parameter. Pass it down.
4658 (switch_to_thread): Also match inferior.
4659 (switch_to_thread): New process_stratum_target parameter. Pass it
4660 down.
4661 (update_threads_executing): Reimplement.
4662 * top.c (quit_force): Pop targets from all inferior.
4663 (gdb_init): Don't call initialize_targets.
4664 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
4665 Declare.
4666 (windows_add_thread, windows_delete_thread): Adjust.
4667 (get_windows_debug_event): Rename to ...
4668 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
4669 * tracefile-tfile.c (tfile_target_open): Pass down target.
4670 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
4671 Forward declare.
4672 (switch_to_thread): Add process_stratum_target parameter.
4673 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
4674 parameter. Use it.
4675 (mi_on_resume): Pass target down.
4676 * nat/fork-inferior.c (startup_inferior): Add
4677 process_stratum_target parameter. Pass it down.
4678 * nat/fork-inferior.h (startup_inferior): Add
4679 process_stratum_target parameter.
4680 * python/py-threadevent.c (py_get_event_thread): Pass target down.
4681
75c6c844
PA
46822020-01-10 Pedro Alves <palves@redhat.com>
4683
4684 * remote.c (remote_target::start_remote): Don't set inferior_ptid
4685 directly. Instead find the first thread in the thread list and
4686 use switch_to_thread.
4687
78f2c40a
PA
46882020-01-10 Pedro Alves <palves@redhat.com>
4689
4690 * remote.c (remote_target::remote_add_inferior): Don't bind a
4691 process to the current inferior if the current inferior is already
4692 bound to a process.
4693
e7af6c70
TBA
46942020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4695 Pedro Alves <palves@redhat.com>
4696
4697 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
4698 If no process is specified, return null_ptid instead of
4699 inferior_ptid.
4700 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
4701 TARGET_WAITKIND_SIGNALLED with no pid.
4702
31ba933e
PA
47032020-01-10 Pedro Alves <palves@redhat.com>
4704
4705 * remote.c (first_remote_resumed_thread): New.
4706 (remote_target::wait_as): Use it as default event_ptid instead of
4707 inferior_ptid.
4708
735fc2ca
PA
47092020-01-10 Pedro Alves <palves@redhat.com>
4710
4711 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
4712
c17e02e1
PA
47132020-01-10 Pedro Alves <palves@redhat.com>
4714
4715 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
4716 not -1.
4717
ab1ddbcf
PA
47182020-01-10 Pedro Alves <palves@redhat.com>
4719
4720 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
4721 ptid to get_last_target_status.
4722 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
4723 ptid to get_last_target_status.
4724 * infcmd.c (continue_command): Don't pass a target_waitstatus to
4725 get_last_target_status.
4726 (info_program_command): Don't pass a target_waitstatus to
4727 get_last_target_status.
4728 * infrun.c (init_wait_for_inferior): Use
4729 nullify_last_target_wait_ptid.
4730 (get_last_target_status): Handle nullptr arguments.
4731 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
4732 (print_stop_event): Don't pass a ptid to get_last_target_status.
4733 (normal_stop): Don't pass a ptid to get_last_target_status.
4734 * infrun.h (get_last_target_status, set_last_target_status): Move
4735 comments here and update.
4736 (nullify_last_target_wait_ptid): Declare.
4737 * linux-fork.c (fork_load_infrun_state): Remove local extern
4738 declaration of nullify_last_target_wait_ptid.
4739 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
4740 to get_last_target_status.
4741
f3f8ece4
PA
47422020-01-10 Pedro Alves <palves@redhat.com>
4743
4744 * gdbthread.h (scoped_restore_current_thread)
4745 <dont_restore, restore, m_dont_restore>: Declare.
4746 * thread.c (thread_alive): Add assertion. Return bool.
4747 (switch_to_thread_if_alive): New.
4748 (prune_threads): Switch inferior/thread.
4749 (print_thread_info_1): Switch thread before calling target methods.
4750 (scoped_restore_current_thread::restore): New, factored out from
4751 ...
4752 (scoped_restore_current_thread::~scoped_restore_current_thread):
4753 ... this.
4754 (scoped_restore_current_thread::scoped_restore_current_thread):
4755 Add assertion.
4756 (thread_apply_all_command, thread_select): Use
4757 switch_to_thread_if_alive.
4758 * infrun.c (proceed, restart_threads, handle_signal_stop)
4759 (switch_back_to_stepped_thread): Switch current thread before
4760 calling target methods.
4761
db2d40f7
PA
47622020-01-10 Pedro Alves <palves@redhat.com>
4763
4764 * inferior.c (switch_to_inferior_no_thread): New function,
4765 factored out from ...
4766 (inferior_command): ... here.
4767 * inferior.h (switch_to_inferior_no_thread): Declare.
4768 * mi/mi-main.c (run_one_inferior): Use
4769 switch_to_inferior_no_thread.
4770
bd420a2d
PA
47712020-01-10 Pedro Alves <palves@redhat.com>
4772
4773 * infcmd.c (kill_command): Remove dead code.
4774
ddf5db90
PA
47752020-01-10 Pedro Alves <palves@redhat.com>
4776
4777 * remote.c (remote_target::mourn_inferior): No longer check
4778 whether the target is running.
4779
5018ce90
PA
47802020-01-10 Pedro Alves <palves@redhat.com>
4781
4782 * corelow.c (core_target::has_execution): Change parameter type to
4783 inferior pointer.
4784 * inferior.c (number_of_live_inferiors): Use
4785 inferior::has_execution instead of target_has_execution_1.
4786 * inferior.h (inferior::has_execution): New.
4787 * linux-thread-db.c (thread_db_target::update_thread_list): Use
4788 inferior::has_execution instead of target_has_execution_1.
4789 * process-stratum-target.c
4790 (process_stratum_target::has_execution): Change parameter type to
4791 inferior pointer. Check the inferior's PID instead of
4792 inferior_ptid.
4793 * process-stratum-target.h
4794 (process_stratum_target::has_execution): Change parameter type to
4795 inferior pointer.
4796 * record-full.c (record_full_core_target::has_execution): Change
4797 parameter type to inferior pointer.
4798 * target.c (target_has_execution_1): Change parameter type to
4799 inferior pointer.
4800 (target_has_execution_current): Adjust.
4801 * target.h (target_ops::has_execution): Change parameter type to
4802 inferior pointer.
4803 (target_has_execution_1): Change parameter type to inferior
4804 pointer. Change return type to bool.
4805 * tracefile.h (tracefile_target::has_execution): Change parameter
4806 type to inferior pointer.
4807
74375d18
PA
48082020-01-10 Pedro Alves <palves@redhat.com>
4809
4810 * exceptions.c (print_flush): Remove current_top_target() check.
4811
acdf84a6
PA
48122020-01-10 Pedro Alves <palves@redhat.com>
4813
4814 * remote.c (show_remote_exec_file): Show the current inferior's
4815 exec-file instead of the command variable's value.
4816
ec506636
PA
48172020-01-10 Pedro Alves <palves@redhat.com>
4818
4819 * record-full.c (record_full_resume_ptid): New global.
4820 (record_full_target::resume): Set it.
4821 (record_full_wait_1): Use record_full_resume_ptid instead of
4822 inferior_ptid.
4823
873657b9
PA
48242020-01-10 Pedro Alves <palves@redhat.com>
4825
4826 * gdbthread.h (scoped_restore_current_thread)
4827 <dont_restore, restore, m_dont_restore>: Declare.
4828 * thread.c (thread_alive): Add assertion. Return bool.
4829 (switch_to_thread_if_alive): New.
4830 (prune_threads): Switch inferior/thread.
4831 (print_thread_info_1): Switch thread before calling target methods.
4832 (scoped_restore_current_thread::restore): New, factored out from
4833 ...
4834 (scoped_restore_current_thread::~scoped_restore_current_thread):
4835 ... this.
4836 (scoped_restore_current_thread::scoped_restore_current_thread):
4837 Add assertion.
4838 (thread_apply_all_command, thread_select): Use
4839 switch_to_thread_if_alive.
4840
7f0ae84c
GB
48412020-01-10 George Barrett <bob@bob131.so>
4842
4843 * stap-probe.c (stap_modify_semaphore): Don't check for null
4844 semaphores.
4845 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
4846 for null semaphores.
4847
f5a7c406
AB
48482020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
4849
4850 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
4851 all source windows, and maintain horizontal scroll status while
4852 doing so.
4853
9ae6bf64
TT
48542020-01-09 Tom Tromey <tom@tromey.com>
4855
4856 PR tui/18932:
4857 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
4858 update_source_window, not print_source_lines.
4859
b2efe70c
AB
48602020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
4861
4862 * tui/tui.c (tui_enable): Register tui hooks after calling
4863 tui_display_main.
4864
5f23a082
CB
48652020-01-09 Christian Biesinger <cbiesinger@google.com>
4866
4867 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
4868
3061113b
SM
48692020-01-08 Simon Marchi <simon.marchi@efficios.com>
4870
4871 * thread.c (print_thread_info_1): Fix indentation.
4872
57d75002
CB
48732020-01-09 Christian Biesinger <cbiesinger@google.com>
4874
4875 * symtab.c (general_symbol_info::compute_and_set_names): Move the
4876 unique_xmalloc_ptr outside the if to always free the demangled name.
4877
6a053cb1
TT
48782020-01-08 Tom Tromey <tromey@adacore.com>
4879
4880 * xcoffread.c (enter_line_range, read_xcoff_symtab)
4881 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
4882 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
4883 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
4884 Remove.
4885 (section_offsets): New typedef.
4886 * symtab.c (fixup_section, get_msymbol_address): Update.
4887 * symmisc.c (dump_msymbols): Update.
4888 * symfile.h (relative_addr_info_to_section_offsets)
4889 (symfile_map_offsets_to_segments): Update.
4890 * symfile.c (build_section_addr_info_from_objfile)
4891 (init_objfile_sect_indices): Update.
4892 (struct place_section_arg): Change type of "offsets".
4893 (place_section): Update.
4894 (relative_addr_info_to_section_offsets): Change type of
4895 "section_offsets". Remove "num_sections" parameter.
4896 (default_symfile_offsets, syms_from_objfile_1)
4897 (set_objfile_default_section_offset): Update.
4898 (reread_symbols): No need to preserve section offsets by hand.
4899 (symfile_map_offsets_to_segments): Change type of "offsets".
4900 * stap-probe.c (relocate_address): Update.
4901 * stabsread.h (process_one_symbol): Update.
4902 * solib-target.c (struct lm_info_target) <offsets>: Change type.
4903 (solib_target_relocate_section_addresses): Update.
4904 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
4905 Update.
4906 * solib-frv.c (frv_relocate_main_executable): Update.
4907 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
4908 * solib-aix.c (solib_aix_get_section_offsets): Change return
4909 type.
4910 (solib_aix_solib_create_inferior_hook): Update.
4911 * remote.c (remote_target::get_offsets): Update.
4912 * psymtab.c (find_pc_sect_psymtab): Update.
4913 * psympriv.h (struct partial_symbol) <address, text_low,
4914 text_high>: Update.
4915 * objfiles.h (obj_section_offset): Update.
4916 (struct objfile) <section_offsets>: Change type.
4917 <num_sections>: Remove.
4918 (objfile_relocate): Update.
4919 * objfiles.c (entry_point_address_query): Update
4920 (relocate_one_symbol): Change type of "section_offsets".
4921 (objfile_relocate1, objfile_relocate1): Change type of
4922 "new_offsets".
4923 (objfile_rebase1): Update.
4924 * mipsread.c (mipscoff_symfile_read): Update.
4925 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
4926 parameter.
4927 * mdebugread.c (parse_symbol): Change type of "section_offsets".
4928 (parse_external, psymtab_to_symtab_1): Update.
4929 * machoread.c (macho_symfile_offsets): Update.
4930 * ia64-tdep.c (ia64_find_unwind_table): Update.
4931 * hppa-tdep.c (read_unwind_info): Update.
4932 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
4933 * dwarf2read.c (create_addrmap_from_index)
4934 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4935 (process_psymtab_comp_unit_reader, add_partial_symbol)
4936 (add_partial_subprogram, process_full_comp_unit)
4937 (read_file_scope, read_func_scope, read_lexical_block_scope)
4938 (read_call_site_scope, dwarf2_rnglists_process)
4939 (dwarf2_ranges_process, dwarf2_ranges_read)
4940 (dwarf_decode_lines_1, var_decode_location, new_symbol)
4941 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
4942 Update.
4943 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
4944 Update.
4945 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
4946 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
4947 (process_one_symbol): Change type of "section_offsets".
4948 * ctfread.c (get_objfile_text_range): Update.
4949 * coffread.c (coff_symtab_read, enter_linenos)
4950 (process_coff_symbol): Update.
4951 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4952 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
4953
456e800a
TT
49542020-01-08 Tom Tromey <tromey@adacore.com>
4955
4956 * dwarf2read.c (parse_macro_definition): Use std::string.
4957 (parse_macro_definition): Likewise.
4958
6dfa2fc2
TT
49592020-01-08 Tom Tromey <tromey@adacore.com>
4960
4961 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
4962 (ATTR_ALLOC_CHUNK): Remove.
4963
421d1616
TT
49642020-01-08 Tom Tromey <tromey@adacore.com>
4965
4966 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
4967
43816ebc
TT
49682020-01-08 Tom Tromey <tromey@adacore.com>
4969
4970 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
4971 (dwarf2_compute_name, open_dwo_file): Likewise.
4972 (process_enumeration_scope): Use std::vector.
4973 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
4974 (partial_die_info::fixup, dwarf2_start_subfile)
4975 (guess_full_die_structure_name, dwarf2_name): Likewise.
4976 (determine_prefix): Update.
4977 (guess_full_die_structure_name): Make return type const.
4978 (partial_die_full_name): Return unique_xmalloc_ptr.
4979 (DW_FIELD_ALLOC_CHUNK): Remove.
4980
4212d509
TT
49812020-01-07 Tom Tromey <tromey@adacore.com>
4982
4983 PR build/24937:
4984 * stap-probe.c (class stap_static_probe_ops): Add constructor.
4985
06a6207a
JT
49862020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
4987
4988 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
4989
153d79c4
AB
49902020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
4991
4992 * stack.c (print_frame_info): Move disassemble_next_line code
4993 inside source_print block.
4994
66182876
EZ
49952020-01-06 Eli Zaretskii <eliz@gnu.org>
4996
4997 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
4998 gdb/signals.h, as we are now using native signal symbols.
4999
cbfa8581
SV
50002020-01-06 Shahab Vahedi <shahab@synopsys.com>
5001
5002 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
5003 overflow by an early check of content vs threshold.
5004 * tui/tui-source.c (tui_source_window::line_is_displayed):
5005 Likewise.
5006
3f602821
EZ
50072020-01-06 Eli Zaretskii <eliz@gnu.org>
5008
5009 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
5010
a08c904d
JT
50112020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
5012
5013 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
5014 export table if no section contains it's RVA.
5015
89a65580
EZ
50162020-01-06 Eli Zaretskii <eliz@gnu.org>
5017
5018 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
5019
8b7fcda2
HD
50202020-01-06 Hannes Domani <ssbssa@yahoo.de>
5021
5022 * source.c (print_source_lines_base): Set last_line_listed.
5023
a61b4f69
SV
50242020-01-06 Shahab Vahedi <shahab@synopsys.com>
5025
5026 * tui/tui-disasm.c: Remove trailing spaces.
5027
559e7e50
EZ
50282020-01-06 Eli Zaretskii <eliz@gnu.org>
5029 Pedro Alves <palves@redhat.com>
5030
5031 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
5032 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
5033 (windows_gdb_signal_to_target): New function, uses the above
5034 enumeration to convert GDB internal signal codes to equivalent
5035 Windows codes.
5036 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
5037 * windows-nat.c: Include "gdb_wait.h".
5038 (get_windows_debug_event): Extract the fatal exception from the
5039 exit status and convert to the equivalent Posix signal number.
5040 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
5041 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
5042 * gdbsupport/gdb_wait.c: New file, implements
5043 windows_status_to_termsig.
5044 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
5045 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
5046
f2302a34
AB
50472020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
5048
5049 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
5050 show_layout.
5051
6a5206eb
LM
50522020-01-05 Luis Machado <luis.machado@linaro.org>
5053
5054 * aarch64-linux-nat.c
5055 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
5056 and bfd_mach_aarch64.
5057
6ec1d75e
PW
50582020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5059
5060 * ui-file.c (stdio_file::can_emit_style_escape)
5061 (tee_file::can_emit_style_escape): Ensure style is used also on
5062 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
5063 to gdb_stdout.
5064 * main.c (set_gdb_data_directory): Use file style to output the
5065 warning that the given pathname is not a directory.
5066 * top.c (show_history_filename, gdb_safe_append_history)
5067 (show_gdb_datadir): Use file style.
5068
44f81a76
HD
50692020-01-03 Hannes Domani <ssbssa@yahoo.de>
5070
5071 * solib-target.c (struct lm_info_target):
5072 Change offsets to be a unique_xmalloc_ptr.
5073 (solib_target_relocate_section_addresses): Update.
5074
25057eb0
HD
50752020-01-03 Hannes Domani <ssbssa@yahoo.de>
5076
5077 * windows-nat.c (windows_clear_solib): Free so_list linked list.
5078
6e2118f5
BE
50792020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5080
5081 * MAINTAINERS (Write After Approval): Add myself.
5082
8133c7dc
LM
50832020-01-02 Luis Machado <luis.machado@linaro.org>
5084
5085 * proc-service.c (get_ps_regcache): Remove reference to obsolete
5086 Cell BE architecture.
5087 * target.h (struct target_ops) <thread_architecture>: Likewise.
5088
48189bec
HD
50892020-01-01 Hannes Domani <ssbssa@yahoo.de>
5090
5091 * Makefile.in: Use INSTALL_PROGRAM_ENV.
5092
ead1063b
HD
50932020-01-01 Hannes Domani <ssbssa@yahoo.de>
5094
5095 * MAINTAINERS (Write After Approval): Add myself.
5096
e5d78223
JB
50972020-01-01 Joel Brobecker <brobecker@adacore.com>
5098
5099 * gdbarch.sh: Update copyright year range of generated files.
5100
b811d2c2
JB
51012020-01-01 Joel Brobecker <brobecker@adacore.com>
5102
5103 Update copyright year range in all GDB files.
5104
5f4def5c
JB
51052020-01-01 Joel Brobecker <brobecker@adacore.com>
5106
5107 * copyright.py: Convert to Python 3.
5108
51fd4002
JB
51092020-01-01 Joel Brobecker <brobecker@adacore.com>
5110
5111 * copyright.py: Adapt after move of gnulib directory from gdb
5112 directory to toplevel directory.
5113
5fb651f2
JB
51142020-01-01 Joel Brobecker <brobecker@adacore.com>
5115
5116 * copyright.py (main): Exit if run from the wrong directory.
5117
5dd8bf88
JB
51182020-01-01 Joel Brobecker <brobecker@adacore.com>
5119
5120 * top.c (print_gdb_version): Change copyright year to 2020.
5121
9f71dacb 51222020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 5123
9f71dacb 5124 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 5125
9f71dacb 5126For older changes see ChangeLog-2019.
c906108c
SS
5127\f
5128Local Variables:
5129mode: change-log
5130left-margin: 8
5131fill-column: 74
5132version-control: never
57da7796 5133coding: utf-8
c906108c 5134End: