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