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