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