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