]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Remove dwarf2_per_cu_data::dwarf2_per_objfile reference in cutu_reader::keep
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e3beb21d
SM
12020-05-27 Simon Marchi <simon.marchi@efficios.com>
2
3 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4 object through m_this_cu->cu.
5
d460f660
SM
62020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7
8 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9 the info parameter.
10 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
11
ab432490
SM
122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
13
14 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
15 per_objfile parameter.
16 (load_full_type_unit): Add per_objfile parameter.
17 (read_signatured_type): Likewise.
18 (load_full_comp_unit): Likewise.
19 (load_cu): Likewise.
20 (dw2_do_instantiate_symtab): Likewise.
21 (dw2_get_file_names): Likewise.
22 (dw2_map_symtabs_matching_filename): Update.
23 (dw_expand_symtabs_matching_file_matcher): Update.
24 (dw2_map_symbol_filenames): Update.
25 (process_psymtab_comp_unit): Add per_objfile parameter.
26 (build_type_psymtabs_1): Update.
27 (process_skeletonless_type_unit): Update.
28 (dwarf2_build_psymtabs_hard): Update.
29 (load_partial_comp_unit): Add per_objfile parameter.
30 (scan_partial_symbols): Update.
31 (load_full_comp_unit): Add per_objfile parameter.
32 (process_imported_unit_die): Update.
33 (create_cus_hash_table): Update.
34 (find_partial_die): Update.
35 (dwarf2_read_addr_index): Update.
36 (follow_die_offset): Update.
37 (dwarf2_fetch_die_loc_sect_off): Update.
38 (dwarf2_fetch_constant_bytes): Update.
39 (dwarf2_fetch_die_type_sect_off): Update.
40 (follow_die_sig_1): Update.
41 (load_full_type_unit): Add per_objfile parameter.
42 (read_signatured_type): Likewise.
43
313bad1b
SM
442020-05-27 Simon Marchi <simon.marchi@efficios.com>
45
46 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
47 of objfile_name.
48
c3699833
SM
492020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
50
51 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
52 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
53 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
54 field.
55 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
56 (create_cus_from_index): Update.
57 (dwarf2_read_gdb_index): Update.
58 (create_cus_from_debug_names): Update.
59 (dwarf2_read_debug_names): Update.
60 (get_abbrev_section_for_cu): Update.
61 (create_all_comp_units): Update.
62 (read_attribute_value): Update.
63 (get_debug_line_section): Update.
64 * dwarf2/index-cache.c (index_cache::store): Update.
65 * dwarf2/index-write.c (save_gdb_index_command): Update.
66 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
67
1859c670
SM
682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
69
70 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
71 member.
72 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
73 dwarf2_per_cu_data::per_bfd.
74 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
75 (create_type_unit_group): Likewise.
76 (queue_comp_unit): Remove reference to
77 per_cu->dwarf2_per_objfile.
78 (maybe_queue_comp_unit): Likewise.
79 (fill_in_sig_entry_from_dwo_entry): Assign new field.
80 (create_cus_hash_table): Assign new field.
81
5e22e966
SM
822020-05-27 Simon Marchi <simon.marchi@efficios.com>
83
84 * dwarf2/read.c: Replace
85 dwarf2_cu->per_cu->dwarf2_per_objfile references with
86 dwarf2_cu->per_objfile throughout.
87
97a1449a
SM
882020-05-27 Simon Marchi <simon.marchi@efficios.com>
89
90 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
91 parameter, don't use per_cu->dwarf2_per_objfile.
92 (dw2_instantiate_symtab): Likewise.
93 (dw2_find_last_source_symtab): Update.
94 (dw2_map_expand_apply): Update.
95 (dw2_lookup_symbol): Update.
96 (dw2_expand_symtabs_for_function): Update.
97 (dw2_expand_all_symtabs): Update.
98 (dw2_expand_symtabs_with_fullname): Update.
99 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
100 don't use per_cu->dwarf2_per_objfile.
101 (dw2_expand_marked_cus): Update.
102 (dw2_find_pc_sect_compunit_symtab): Update.
103 (dw2_debug_names_lookup_symbol): Update.
104 (dw2_debug_names_expand_symtabs_for_function): Update.
105 (dw2_debug_names_map_matching_symbols): Update.
106 (dwarf2_psymtab::expand_psymtab): Update.
107
9e021579
SM
1082020-05-27 Simon Marchi <simon.marchi@efficios.com>
109
110 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
111 <per_objfile>: New member.
112 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
113 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
114 call to dwarf2_cu.
115 (cutu_reader::cutu_reader): Update.
116 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
117
ae090bdb
SM
1182020-05-27 Simon Marchi <simon.marchi@efficios.com>
119
120 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
121 struct dwarf2_per_objfile.
122 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
123 dwarf2_per_bfd.
124 * dwarf2/read.c (set_die_type): Update.
125 (get_die_type_at_offset): Update.
126
af758d11
SM
1272020-05-27 Tom Tromey <tom@tromey.com>
128 Simon Marchi <simon.marchi@efficios.com>
129
130 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
131 method.
132 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
133 get_symtab, set_symtab>: New methods.
134 <m_symtabs>: New field.
135 (struct dwarf2_psymtab): Derive from partial_symtab.
136 <readin_p, get_compunit_symtab>: Declare methods.
137 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
138 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
139 New methods.
140 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
141 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
142 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
143 (dw2_symtab_iter_next, dw2_print_stats)
144 (dw2_expand_symtabs_with_fullname)
145 (dw2_expand_symtabs_matching_one)
146 (dw_expand_symtabs_matching_file_matcher)
147 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
148 (dw2_debug_names_iterator::next)
149 (dw2_debug_names_map_matching_symbols)
150 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
151 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
152 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
153 New methods.
154 (get_compunit_symtab, process_full_comp_unit)
155 (process_full_type_unit): Update.
156 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
157
5989a64e
SM
1582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
159
160 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
161 then introduce a new dwarf2_per_objfile type.
162 <read_line_string>: Move to the new dwarf2_per_objfile type.
163 <objfile>: Likewise.
164 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
165 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
166 dwarf2_per_objfile->per_bfd.
167 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
168 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
169 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
170 (dwarf2_per_bfd::free_cached_comp_units): ... this.
171 (dwarf2_has_info): Allocate dwarf2_per_bfd.
172 (dwarf2_per_objfile::locate_sections): Rename to...
173 (dwarf2_per_bfd::locate_sections): ... this.
174 (dwarf2_per_objfile::get_cutu): Rename to...
175 (dwarf2_per_bfd::get_cutu): ... this.
176 (dwarf2_per_objfile::get_cu): Rename to...
177 (dwarf2_per_bfd::get_cu): ... this.
178 (dwarf2_per_objfile::get_tu): Rename to...
179 (dwarf2_per_bfd::get_tu): ... this.
180 (dwarf2_per_objfile::allocate_per_cu): Rename to...
181 (dwarf2_per_bfd::allocate_per_cu): ... this.
182 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
183 (dwarf2_per_bfd::allocate_signatured_type): ... this.
184 (get_gdb_index_contents_ftype): Change parameter from
185 dwarf2_per_objfile to dwarf2_per_bfd.
186 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
187 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
188
a50264ba
TT
1892020-05-27 Tom Tromey <tom@tromey.com>
190 Simon Marchi <simon.marchi@efficios.com>
191
192 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
193 (allocate_piece_closure): Set "per_objfile" member.
194 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
195 (locexpr_describe_location, loclist_describe_location): Use new
196 member.
197 * dwarf2/read.c (read_call_site_scope)
198 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
199 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
200 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
201 handle_data_member_location): Set per_objfile member.
202 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
203 member.
204 (struct dwarf2_loclist_baton) <per_objfile>: New member.
205
d3473f0c
TT
2062020-05-27 Tom Tromey <tom@tromey.com>
207
208 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
209 allocate_signatured_type>: Declare new methods.
210 <m_num_psymtabs>: New member.
211 (struct dwarf2_per_cu_data) <index>: New member.
212 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
213 (dwarf2_per_objfile::allocate_signatured_type): New methods.
214 (create_cu_from_index_list): Use allocate_per_cu.
215 (create_signatured_type_table_from_index)
216 (create_signatured_type_table_from_debug_names)
217 (create_debug_type_hash_table, add_type_unit)
218 (read_comp_units_from_section): Use allocate_signatured_type.
219
5717c425
TT
2202020-05-27 Tom Tromey <tom@tromey.com>
221
222 * psymtab.c (partial_map_expand_apply)
223 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
224 (psym_lookup_global_symbol_language)
225 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
226 (psym_print_stats, psym_expand_symtabs_for_function)
227 (psym_map_symbol_filenames, psym_map_matching_symbols)
228 (psym_expand_symtabs_matching)
229 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
230 (maintenance_check_psymtabs): Update.
231 * psympriv.h (struct partial_symtab) <readin_p,
232 get_compunit_symtab>: Add objfile parameter.
233 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
234 Likewise.
235 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
236 get_compunit_symtab>: Likewise.
237 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
238
45940949
TT
2392020-05-27 Tom Tromey <tom@tromey.com>
240
241 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
242 member.
243 * dwarf2/read.c (delete_file_name_entry): Fix comment.
244 (create_cu_from_index_list)
245 (create_signatured_type_table_from_index)
246 (create_signatured_type_table_from_debug_names)
247 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
248 (dwarf2_create_include_psymtab)
249 (create_debug_type_hash_table, add_type_unit)
250 (create_type_unit_group, read_comp_units_from_section)
251 (dwarf2_compute_name, create_cus_hash_table)
252 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
253 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
254 obstack.
255 (dw2_get_real_path): Likewise. Change argument to
256 dwarf2_per_objfile.
257
f8c6d152
LM
2582020-05-27 Luis Machado <luis.machado@linaro.org>
259
260 PR tdep/26000
261 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
262 for ldrd (immediate).
263
e98d2e6d
PW
2642020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
265
266 * command.h: Add comment giving the name of class_tui.
267 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
268 create the fake command for the help for class_tui.
269
53a47a3e
TT
2702020-05-26 Tom Tromey <tromey@adacore.com>
271
272 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
273 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
274 (val_atr): New function.
275 (value_val_atr): Use it.
276 * ada-valprint.c (print_optional_low_bound): Change low bound
277 handling for enums.
278 (val_print_packed_array_elements): Don't call discrete_position.
279 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
280 discrete_position for enum types.
281 * language.c (default_print_array_index): Change type.
282 * language.h (struct language_defn) <la_print_array_index>: Add
283 index_type parameter, change type of index_value.
284 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
285 (default_print_array_index): Update.
286 * valprint.c (maybe_print_array_index): Don't call
287 value_from_longest. Update.
288 (value_print_array_elements): Don't call discrete_position.
289
0bc2354b
TT
2902020-05-26 Tom Tromey <tromey@adacore.com>
291
292 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
293 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
294
1218a4bf
CDA
2952020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
296
297 PR gdb/13519
298 * avr-tdep.c (avr_integer_to_address): Return data or code
299 address accordingly to the second 'type' argument of the
300 function.
301
92651b1d
MW
3022020-05-25 Michael Weghorn <m.weghorn@posteo.de>
303
304 * infcmd.c, inferior.h: (construct_inferior_arguments):
305 Moved function from here to gdbsupport/common-inferior.{h,cc}
306
0a4f5f8c
TT
3072020-05-23 Tom Tromey <tom@tromey.com>
308
309 Revert commit eca1f90c:
310 * NEWS: Remove entry for completion styling.
311 * completer.c (_rl_completion_prefix_display_length): Move
312 declaration later.
313 (gdb_fnprint): Revert.
314 (gdb_display_match_list_1): Likewise.
315 * cli/cli-style.c (completion_prefix_style)
316 (completion_difference_style, completion_suffix_style): Remove.
317 (_initialize_cli_style): Revert.
318 * cli/cli-style.h (completion_prefix_style)
319 (completion_difference_style, completion_suffix_style): Don't
320 declare.
321
e08bd6c5
PA
3222020-05-24 Pedro Alves <palves@redhat.com>
323
324 * symtab.c (completion_list_add_name): Return boolean indication
325 of whether the symbol matched.
326 (completion_list_add_symbol): Don't try to remove C++ aliases if
327 the symbol didn't match in the first place.
328 * symtab.h (completion_list_add_name): Return bool.
329
ceacbf6e
SM
3302020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
331
332 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
333 type::field.
334
26f16254
JB
3352020-05-23 Joel Brobecker <brobecker@adacore.com>
336
337 GDB 9.2 released.
338
eca1f90c
TT
3392020-05-23 Tom Tromey <tom@tromey.com>
340
341 * NEWS: Add entry for completion styling.
342 * completer.c (_rl_completion_prefix_display_length): Move
343 declaration earlier.
344 (gdb_fnprint): Use completion_style.
345 (gdb_display_match_list_1): Likewise.
346 * cli/cli-style.c (completion_prefix_style)
347 (completion_difference_style, completion_suffix_style): New
348 globals.
349 (_initialize_cli_style): Register new globals.
350 * cli/cli-style.h (completion_prefix_style)
351 (completion_difference_style, completion_suffix_style): Declare.
352
51e2cfa2
PA
3532020-05-23 Pedro Alves <palves@redhat.com>
354
355 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
356 (parse_escape): Use ISDIGIT instead of isdigit.
357 (puts_debug): Use gdb_isprint instead of isprint.
358 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
359 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
360 ISSPACE instead of isspace.
361 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
362 instead of isspace.
363 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
364 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
365 instead of isxdigit and ISDIGIT instead of isdigit.
366
80fc5e77
SM
3672020-05-22 Simon Marchi <simon.marchi@efficios.com>
368
369 * gdbtypes.h (struct type) <field>: New method.
370 (TYPE_FIELDS): Remove, replace all uses with either type::fields
371 or type::field.
372
3cabb6b0
SM
3732020-05-22 Simon Marchi <simon.marchi@efficios.com>
374
375 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
376 (TYPE_FIELDS): Use type::fields. Change all call sites that
377 modify the propery to use type::set_fields instead.
378
1f704f76
SM
3792020-05-22 Simon Marchi <simon.marchi@efficios.com>
380
381 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
382 type::num_fields instead.
383
5e33d5f4
SM
3842020-05-22 Simon Marchi <simon.marchi@efficios.com>
385
386 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
387 methods.
388 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
389 that modify the number of fields to use type::set_num_fields
390 instead.
391
9392ebb3
TT
3922020-05-22 Tom Tromey <tromey@adacore.com>
393
394 * compile/compile-object-load.h (munmap_list_free): Don't
395 declare.
396
7c13f4e8
AB
3972020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
398
399 * annotate.c (annotate_source_line): Update return type, add call
400 to update current symtab and line.
401 * annotate.h (annotate_source_line): Update return type, and
402 extend header comment.
403 * source.c (info_line_command): Check annotation_level before
404 calling annotate_source_line.
405 * stack.c (print_frame_info): If calling annotate_source_line
406 returns true, then don't print any other source line information.
407
aa370940
SM
4082020-05-21 Simon Marchi <simon.marchi@efficios.com>
409
410 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
411
84d53fa9
SM
4122020-05-21 Simon Marchi <simon.marchi@efficios.com>
413
414 * coffread.c (patch_type): Remove NULL check before xfree.
415 * corefile.c (set_gnutarget): Likewise.
416 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
417 * exec.c (build_section_table): Likewise.
418 * remote.c (remote_target::pass_signals): Likewise.
419 * utils.c (n_spaces): Likewise.
420 * cli/cli-script.c (document_command): Likewise.
421 * i386-windows-tdep.c (core_process_module_section): Likewise.
422 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
423
9d428aae
SM
4242020-05-20 Simon Marchi <simon.marchi@efficios.com>
425
426 * symfile.c (reread_symbols): Clear objfile's section_offsets
427 vector and section indices, re-compute them by calling
428 sym_offsets.
429
250106a7
TT
4302020-05-20 Tom Tromey <tromey@adacore.com>
431
432 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
433 (desc_one_bound, desc_index_type): Compute field name.
434
9a0bacfb
TV
4352020-05-20 Tom de Vries <tdevries@suse.de>
436
437 PR symtab/25833
438 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
439
7b958a48
AM
4402020-05-20 Alan Modra <amodra@gmail.com>
441
442 PR 25993
443 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
444 bfd_set_filename.
445 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
446 passed to bfd_set_filename.
447 * symfile-mem.c (add_vsyscall_page): Likewise for string
448 passed to symbol_file_add_from_memory.
449 (symbol_file_add_from_memory): Make name param a const char* and
450 don't strdup.
451
c7e97679
AM
4522020-05-20 Alan Modra <amodra@gmail.com>
453
454 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
455 rather than accessing bfd->filename directly.
456 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
457 and use bfd_section_name.
458 * dwarf2/frame.c (decode_frame_entry): Likewise.
459 * exec.c (exec_set_section_address): Likewise.
460 * solib-aix.c (solib_aix_bfd_open): Likewise.
461 * stap-probe.c (get_stap_base_address): Likewise.
462 * symfile.c (reread_symbols): Likewise.
463
563c591b
TT
4642020-05-19 Tom Tromey <tromey@adacore.com>
465
466 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
467
f408d82c
SM
4682020-05-19 Simon Marchi <simon.marchi@efficios.com>
469
470 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
471
98c59b52
PA
4722020-05-19 Pedro Alves <palves@redhat.com>
473
474 * NEWS (set exec-file-mismatch): Adjust entry.
475 * exec.c: Include "build-id.h".
476 (validate_exec_file): Try to match build IDs instead of filenames.
477 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
478 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
479 and pass down 'warn_if_slow'.
480 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
481 gdb_bfd_open_closure to pass it down.
482 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
483
4111f652
PA
4842020-05-19 Pedro Alves <palves@redhat.com>
485
486 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
487 * target.c (target_fileio_open_1): Rename to target_fileio_open
488 and make extern. Use bool.
489 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
490 (target_fileio_read_alloc_1): Adjust.
491 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
492 (target_fileio_open_warn_if_slow): Delete declaration.
493
ad80db5b
PA
4942020-05-19 Pedro Alves <palves@redhat.com>
495
496 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
497 Adjust all callers.
498
1d6ce4d3
YS
4992020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
500
501 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
502 whether disp is negative.
503
9005fbbb
SM
5042020-05-19 Simon Marchi <simon.marchi@efficios.com>
505
506 * symfile.h (struct symfile_segment_data)
507 <~symfile_segment_data>: Remove.
508 <segment_info>: Change to std::vector.
509 * symfile.c (default_symfile_segments): Update.
510 * elfread.c (elf_symfile_segments): Update.
511
68b888ff
SM
5122020-05-19 Simon Marchi <simon.marchi@efficios.com>
513
514 * symfile.h (struct symfile_segment_data) <struct segment>: New.
515 <segments>: New.
516 <segment_bases, segment_sizes>: Remove.
517 * symfile.c (default_symfile_segments): Update.
518 * elfread.c (elf_symfile_segments): Update.
519 * remote.c (remote_target::get_offsets): Update.
520 * solib-target.c (solib_target_relocate_section_addresses):
521 Update.
522
62982abd
SM
5232020-05-19 Simon Marchi <simon.marchi@efficios.com>
524
525 * symfile.h (struct symfile_segment_data): Initialize fields.
526 <~symfile_segment_data>: Add.
527 (symfile_segment_data_up): New.
528 (struct sym_fns) <sym_segments>: Return a
529 symfile_segment_data_up.
530 (default_symfile_segments): Return a symfile_segment_data_up.
531 (free_symfile_segment_data): Remove.
532 (get_symfile_segment_data): Return a symfile_segment_data_up.
533 * symfile.c (default_symfile_segments): Likewise.
534 (get_symfile_segment_data): Likewise.
535 (free_symfile_segment_data): Remove.
536 (symfile_find_segment_sections): Update.
537 * elfread.c (elf_symfile_segments): Return a
538 symfile_segment_data_up.
539 * remote.c (remote_target::get_offsets): Update.
540 * solib-target.c (solib_target_relocate_section_addresses):
541 Update.
542 * symfile-debug.c (debug_sym_segments): Return a
543 symfile_segment_data_up.
544
7f204339
RO
5452020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
546
e52a0f1b
RO
547 PR build/25981
548 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
549 Hardcode register numbers.
550
7f204339
RO
551 PR build/25981
552 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
553 procfs_find_LDT_entry): Remove.
554 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
555 procfs_find_LDT_entry): Remove.
556 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
557 Remove.
558
7f32a4d5
PA
5592020-05-17 Pedro Alves <palves@redhat.com>
560 Andrew Burgess <andrew.burgess@embecosm.com>
561 Keno Fischer <keno@juliacomputing.com>
562
563 PR gdb/25741
564 * breakpoint.c (build_target_condition_list): Update comments.
565 (build_target_command_list): Update comments and skip matching
566 locations.
567 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
568 a separate function. Simplify "set breakpoint auto-hw off"
569 handling.
570 (insert_breakpoints): Update comment.
571 (tracepoint_locations_match): New parameter. For breakpoints,
572 compare location types too, if the caller wants to.
573 (handle_automatic_hardware_breakpoints): New functions.
574 (bp_location_is_less_than): Also sort by location type and
575 hardware breakpoint length.
576 (update_global_location_list): Handle "set breakpoint auto-hw on"
577 here.
578 (update_breakpoint_locations): Ask breakpoint_locations_match to
579 ignore location types.
580
7d93a1e0
SM
5812020-05-16 Simon Marchi <simon.marchi@efficios.com>
582
583 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
584 type::name instead.
585
d0e39ea2
SM
5862020-05-16 Simon Marchi <simon.marchi@efficios.com>
587
588 * gdbtypes.h (struct type) <name, set_name>: New methods.
589 (TYPE_CODE): Use type::name. Change all call sites used to set
590 the name to use type::set_name instead.
591
2dab0c7b
TT
5922020-05-16 Tom Tromey <tom@tromey.com>
593
594 * top.c (quit_force): Update.
595 * infrun.c (handle_no_resumed): Update.
596 * top.h (all_uis): New function.
597 (ALL_UIS): Remove.
598
59f7bd8d
SM
5992020-05-16 Simon Marchi <simon.marchi@efficios.com>
600
601 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
602
9bf058f0
PA
6032020-05-16 Pedro Alves <palves@redhat.com>
604
605 * ia64-linux-nat.c
606 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
607 Declare method.
608 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
609
8f86ae1a
SM
6102020-05-15 Simon Marchi <simon.marchi@efficios.com>
611
612 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
613 (sparc64_adi_info): Likewise.
614
d6bc0792
TT
6152020-05-15 Tom Tromey <tom@tromey.com>
616
617 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
618 block_objfile.
619 (lookup_objfile_from_block): Remove.
620 (lookup_symbol_in_block, lookup_symbol_in_static_block)
621 (lookup_global_symbol): Use block_objfile.
622 * symtab.h (lookup_objfile_from_block): Don't declare.
623 * printcmd.c (clear_dangling_display_expressions): Use
624 block_objfile.
625 * parse.c (operator_check_standard): Use block_objfile.
626
8c14c3a3
TT
6272020-05-15 Tom Tromey <tom@tromey.com>
628
629 * language.c (language_alloc_type_symbol): Set
630 SYMBOL_SECTION.
631 * symtab.c (initialize_objfile_symbol): Remove.
632 (allocate_symbol): Remove.
633 (allocate_template_symbol): Remove.
634 * dwarf2/read.c (fixup_go_packaging): Use "new".
635 (new_symbol): Use "new".
636 (read_variable): Don't call initialize_objfile_symbol. Use
637 "new".
638 (read_func_scope): Use "new".
639 * xcoffread.c (process_xcoff_symbol): Don't call
640 initialize_objfile_symbol.
641 (SYMBOL_DUP): Remove.
642 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
643 "new".
644 * symtab.h (allocate_symbol, initialize_objfile_symbol)
645 (allocate_template_symbol): Don't declare.
646 (struct symbol): Add copy constructor. Change defaults.
647 * jit.c (finalize_symtab): Use "new".
648 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
649 Use "new".
650 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
651 (common_block_end): Use "new".
652 * mdebugread.c (parse_symbol): Use "new".
653 (new_symbol): Likewise.
654
5b4a1a8d
PW
6552020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
656
657 * NEWS: Mention changes to help and apropos.
658
57b4f16e
PW
6592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
660
661 * command.h (enum command_class): Improve comments, document
662 that class_alias is for user-defined aliases, give the class
663 name for each class, remove unused class_xdb.
664 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
665 * breakpoint.c (_initialize_breakpoint): Replace class_alias
666 by a precise class.
667 * infcmd.c (_initialize_infcmd): Likewise.
668 * reverse.c (_initialize_reverse): Likewise.
669 * stack.c (_initialize_stack): Likewise.
670 * symfile.c (_initialize_symfile): Likewise.
671 * tracepoint.c (_initialize_tracepoint): Likewise.
672
7c05caf7
PW
6732020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
674
675 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
676 when their aliased command is traversed.
677 (help_cmd): Add fput_command_names_styled call to
678 output command name and aliases when command has an alias.
679
3b3aaacb
PW
6802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
681
682 * cli/cli-decode.h (help_cmd_list): Remove declaration.
683 * cli/cli-decode.c (help_cmd_list): Declare as static,
684 remove prefix argument, use bool for recurse arg, rework to show the aliases of
685 a command together with the command.
686 (fput_command_name_styled, fput_command_names_styled): New functions.
687 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
688 fput_command_name_styled.
689 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
690 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
691
7aa1b46f
PW
6922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
693
694 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
695 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
696 * command.h (cmd_show_list): Likewise.
697 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
698 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
699
89bcba74
PW
7002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
701
702 * unittests/command-def-selftests.c (traverse_command_structure):
703 Verify all commands of a list have the same prefix command and
704 that only the top cmdlist commands have a null prefix.
705
3f4d92eb
PW
7062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
707
708 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
709 as prefix, not one of its aliases.
710 (set_cmd_prefix): Remove.
711 (do_add_cmd): Centralize the setting of the prefix of a command, when
712 command is defined after its full chain of prefix commands.
713 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
714 (add_setshow_cmd_full): Likewise.
715 (update_prefix_field_of_prefixed_commands): New function.
716 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
717 update_prefix_field_of_prefixed_commands.
718 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
719 addresses of remote_set_cmdlist and remote_show_cmdlist given
720 as argument, not the address of an argument.
721 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
722 * gdb/remote.c (_initialize_remote): Likewise.
723
0605465f
PW
7242020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
725
726 * cli/cli-cmds.c (alias_command): Check for an existing alias
727 using lookup_cmd_composition, as valid_command_p is too strict
728 and forbids aliases that are the prefix of an existing alias
729 or command.
730 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
731 command is properly recognised as a valid command.
732
58e6ac70
PW
7332020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
734
735 * unittests/help-doc-selftests.c: Rename to
736 unittests/command-def-selftests.c
737 * unittests/command-def-selftests.c (help_doc_tests): Update some
738 comments.
739 (command_structure_tests, traverse_command_structure): New namespace
740 and function.
741 (command_structure_invariants_tests): New function.
742 (_initialize_command_def_selftests) Renamed from
743 _initialize_help_doc_selftests, register command_structure_invariants
744 selftest.
745
a7b9ceb8
PW
7462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
747
748 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
749 an alias of 'show'.
750
b2188a06
JB
7512020-05-15 Joel Brobecker <brobecker@adacore.com>
752
753 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
754 ada_is_fixed_point_type. Update all callers.
755 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
756 all callers.
757 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
758 Update all callers.
759 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
760 print_fixed_point_type. Update all callers.
761 * ada-valprint.c (ada_value_print_num): Replace call to
762 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
763
a51951c2
KB
7642020-05-14 Kevin Buettner <kevinb@redhat.com>
765
766 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
767 processors.
768 (cpu_supports_bts): Add CV_AMD case.
769
29d6859f
LM
7702020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
771 Simon Marchi <simon.marchi@efficios.com>
772
773 * infrun.c (stop_all_threads): Collect multiple wait events at
774 each pass.
775
78134374
SM
7762020-05-14 Simon Marchi <simon.marchi@efficios.com>
777
778 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
779 type::code instead.
780
67607e24
SM
7812020-05-14 Simon Marchi <simon.marchi@efficios.com>
782
783 * gdbtypes.h (struct type) <code, set_code>: New methods.
784 (TYPE_CODE): Use type::code. Change all call sites used to set
785 the code to use type::set_code instead.
786
a05575d3
TBA
7872020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
788 Tom de Vries <tdevries@suse.de>
789 Pedro Alves <palves@redhat.com>
790
791 PR threads/25478
792 * infrun.c (stop_all_threads): Do NOT ignore
793 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
794 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
795 received.
796 (handle_no_resumed): Remove code handling a live inferior with no
797 threads.
798 * remote.c (has_single_non_exited_thread): New.
799 (remote_target::update_thread_list): Do not delete a thread if is
800 the last thread of the process.
801 * thread.c (thread_select): Call delete_exited_threads instead of
802 prune_threads.
803
6ad82919
TBA
8042020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
805
806 * infrun.c (stop_all_threads): Enable/disable thread events of all
807 targets. Move a debug message denoting the end of the function
808 into the SCOPED_EXIT block.
809
d890404b
TBA
8102020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
811
812 * process-stratum-target.h: Include <set>.
813 (all_non_exited_process_targets, switch_to_target_no_thread): New
814 function declarations.
815 * process-stratum-target.c (all_non_exited_process_targets)
816 (switch_to_target_no_thread): New function implementations.
817
293b3ebc
TBA
8182020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
819
820 * infrun.c (handle_inferior_event): Extract out a piece of code
821 into...
822 (mark_non_executing_threads): ...this new function.
823
7ca9b62a
TBA
8242020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
825
826 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
827 use.
828
fc75c28b
TBA
8292020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
830
831 * regcache.c (regcache_read_pc_protected): New function
832 implementation that returns 0 if the PC cannot read via
833 'regcache_read_pc'.
834 * infrun.c (proceed): Call 'regcache_read_pc_protected'
835 instead of 'regcache_read_pc'.
836 (keep_going_pass_signal): Ditto.
837
a89febbd
TT
8382020-05-13 Tom Tromey <tromey@adacore.com>
839
840 * ada-lang.c (align_value): Remove.
841 (ada_template_to_fixed_record_type_1): Use align_up.
842
f7e23710
TBA
8432020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
844
845 * async-event.c: Update the copyright year.
846 * async-event.h: Update the copyright year.
847
02ff80c2
SM
8482020-05-12 Simon Marchi <simon.marchi@efficios.com>
849
850 * objfiles.h (is_addr_in_objfile,
851 shared_objfile_contains_address_p): Return bool.
852 * objfile.c (is_addr_in_objfile,
853 shared_objfile_contains_address_p): Return bool.
854
4fd6c7e8
TT
8552020-05-11 Tom Tromey <tromey@adacore.com>
856
857 * cli/cli-cmds.c (info_command): Restore.
858 (_initialize_cli_cmds): Use add_prefix_command for "info".
859 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
860
5eb68a39
TT
8612020-05-11 Tom Tromey <tromey@adacore.com>
862
863 * ada-lang.c (ada_value_primitive_field): Now public.
864 * ada-lang.h (ada_value_primitive_field): Declare.
865 * ada-valprint.c (print_field_values): Use
866 ada_value_primitive_field for wrapper fields.
867
7666722f
TV
8682020-05-11 Tom de Vries <tdevries@suse.de>
869
870 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
871 MODULE_DOMAIN.
872
3ee6bb11
TV
8732020-05-11 Tom de Vries <tdevries@suse.de>
874
875 PR symtab/25941
876 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
877 with length 0, if not gdb-produced.
878 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
879
43434996
TV
8802020-05-09 Tom de Vries <tdevries@suse.de>
881
882 PR gdb/25955
883 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
884 calculation.
885
2f78cffc
TT
8862020-05-09 Tom Tromey <tom@tromey.com>
887
888 * top.c (server_command): Now bool.
889 * top.h (server_command): Now bool.
890
4f7bc5ed
TT
8912020-05-08 Tom Tromey <tromey@adacore.com>
892
893 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
894 already being processed.
895
8be4b118
TT
8962020-05-08 Tom Tromey <tom@tromey.com>
897
898 * printcmd.c (struct display) <next>: Remove.
899 <display>: New constructor.
900 <exp_string>: Now a std::string.
901 <enabled_p>: Now a bool.
902 (display_number): Move definition earlier.
903 (displays): Rename from display_chain. Now a std::vector.
904 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
905 (display_command): Update.
906 (do_one_display, disable_display)
907 (enable_disable_display_command, do_enable_disable_display):
908 Update.
909 (free_display): Remove.
910 (clear_displays): Rewrite.
911 (delete_display): Update.
912 (map_display_numbers): Use function_view. Remove "data"
913 parameter. Update.
914 (do_delete_display): Remove.
915 (undisplay_command): Update.
916 (do_one_display, do_displays, disable_display)
917 (info_display_command): Update.
918 (do_enable_disable_display): Remove.
919 (enable_disable_display_command)
920 (clear_dangling_display_expressions): Update.
921
94c93c35
TT
9222020-05-08 Tom Tromey <tom@tromey.com>
923
924 * symtab.c (set_symbol_cache_size)
925 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
926 (maintenance_print_symbol_cache_statistics): Update.
927 * symmisc.c (print_symbol_bcache_statistics)
928 (print_objfile_statistics, maintenance_print_objfiles)
929 (maintenance_info_symtabs, maintenance_check_symtabs)
930 (maintenance_expand_symtabs, maintenance_info_line_tables):
931 Update.
932 * symfile-debug.c (set_debug_symfile): Update.
933 * source.c (forget_cached_source_info): Update.
934 * python/python.c (gdbpy_progspaces): Update.
935 * psymtab.c (maintenance_info_psymtabs): Update.
936 * probe.c (parse_probes): Update.
937 * linespec.c (iterate_over_all_matching_symtabs)
938 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
939 * guile/scm-progspace.c (gdbscm_progspaces): Update.
940 * exec.c (exec_target::close): Update.
941 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
942 * breakpoint.c (print_one_breakpoint_location)
943 (create_longjmp_master_breakpoint)
944 (create_std_terminate_master_breakpoint): Update.
945 * progspace.c (program_spaces): Now a std::vector.
946 (maybe_new_address_space): Update.
947 (add_program_space): Remove.
948 (program_space::program_space): Update.
949 (remove_program_space): Update.
950 (number_of_program_spaces): Remove.
951 (print_program_space, update_address_spaces): Update.
952 * progspace.h (program_spaces): Change type.
953 (ALL_PSPACES): Remove.
954 (number_of_program_spaces): Don't declare.
955 (struct program_space) <next>: Remove.
956
a1fd1ac9
TT
9572020-05-08 Tom Tromey <tom@tromey.com>
958
959 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
960 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
961 (enable_break): Update.
962 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
963 (frv_fdpic_find_canonical_descriptor): Update.
964 (frv_fetch_objfile_link_map): Update.
965 * progspace.c (program_space::free_all_objfiles): Update.
966 (program_space::solibs): New method.
967 * progspace.h (struct program_space) <solibs>: New method.
968 * solist.h (master_so_list): Don't declare.
969 (ALL_SO_LIBS): Remove.
970 * solib.h (so_list_head): Remove.
971 (update_solib_list): Update comment.
972 * solib.c (master_so_list): Remove.
973 (solib_used, update_solib_list, solib_add)
974 (info_sharedlibrary_command, clear_solib)
975 (reload_shared_libraries_1, remove_user_added_objfile): Update.
976
38eae084
TT
9772020-05-08 Tom Tromey <tom@tromey.com>
978
979 * extension.c (extension_languages): Now a std::array.
980 (ALL_EXTENSION_LANGUAGES): Remove.
981 (get_ext_lang_defn, get_ext_lang_of_file)
982 (eval_ext_lang_from_control_command): Update.
983 (finish_ext_lang_initialization)
984 (auto_load_ext_lang_scripts_for_objfile)
985 (ext_lang_type_printers::ext_lang_type_printers)
986 (apply_ext_lang_type_printers)
987 (ext_lang_type_printers::~ext_lang_type_printers)
988 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
989 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
990 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
991 (get_matching_xmethod_workers, ext_lang_colorize)
992 (ext_lang_before_prompt): Update.
993 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
994
596dc4ad
TT
9952020-05-08 Tom Tromey <tom@tromey.com>
996
997 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
998 overload.
999 <swap_string, m_string>: Remove.
1000 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
1001 Update.
1002 * stabsread.c (define_symbol, read_type): Update.
1003 * linespec.c (find_linespec_symbols): Update.
1004 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
1005 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
1006 * dbxread.c (read_dbx_symtab): Update.
1007 * cp-support.h (cp_canonicalize_string_full)
1008 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
1009 Return unique_xmalloc_ptr.
1010 * cp-support.c (inspect_type): Update.
1011 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
1012 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
1013 Likewise.
1014 * c-typeprint.c (print_name_maybe_canonical): Update.
1015 * break-catch-throw.c (check_status_exception_catchpoint):
1016 Update.
1017
bf4cb9be
TV
10182020-05-08 Tom de Vries <tdevries@suse.de>
1019
1020 * infrun.c (follow_fork): Copy current_line and current_symtab to
1021 child thread.
1022
a1b68f28
SM
10232020-05-07 Simon Marchi <simon.marchi@efficios.com>
1024
1025 * async-event.c (struct async_signal_handler, struct
1026 async_event_handler): Reformat, remove typedef.
1027
98d48915
SM
10282020-05-07 Simon Marchi <simon.marchi@efficios.com>
1029
1030 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
1031 access thistype->main_type->dyn_prop_list directly.
1032
7aa91313
SM
10332020-05-07 Simon Marchi <simon.marchi@efficios.com>
1034
1035 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
1036 (remove_dyn_prop): Remove. Update all users to use
1037 type::remove_dyn_prop.
1038 * gdbtypes.c (remove_dyn_prop): Rename to...
1039 (type::remove_dyn_prop): ... this.
1040
5c54719c
SM
10412020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
1042
1043 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
1044 (add_dyn_prop): Remove. Update all users to use
1045 type::add_dyn_prop.
1046 * gdbtypes.c (add_dyn_prop): Rename to...
1047 (type::add_dyn_prop): ... this.
1048
24e99c6c
SM
10492020-05-07 Simon Marchi <simon.marchi@efficios.com>
1050
1051 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
1052 (get_dyn_prop): Remove. Update all users to use
1053 type::dyn_prop.
1054 * gdbtypes.c (get_dyn_prop): Rename to...
1055 (type::dyn_prop): ... this.
1056
0d4bf016
SM
10572020-05-06 Simon Marchi <simon.marchi@efficios.com>
1058
1059 * gdbtypes.h (struct main_type) <flag_static>: Remove.
1060
ac4a4f1c
SM
10612020-05-06 Simon Marchi <simon.marchi@efficios.com>
1062
1063 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
1064 instruction, skip it if it's there.
1065
a3bbacc1
SM
10662020-05-05 Simon Marchi <simon.marchi@efficios.com>
1067
1068 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
1069
c3236f84
SM
10702020-05-04 Simon Marchi <simon.marchi@efficios.com>
1071
1072 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
1073 * gdbtypes.c (recursive_dump_type): Remove use of
1074 TYPE_INCOMPLETE.
1075
3b6acaee
TT
10762020-05-03 Tom Tromey <tom@tromey.com>
1077
1078 * breakpoint.c (catch_command, tcatch_command): Remove.
1079 (_initialize_breakpoint): Use add_basic_prefix_cmd,
1080 add_show_prefix_cmd.
1081 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
1082 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
1083 Remove.
1084 (add_internal_problem_command): Use add_basic_prefix_cmd,
1085 add_show_prefix_cmd.
1086 * mips-tdep.c (set_mipsfpu_command): Remove.
1087 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
1088 * dwarf2/index-cache.c (set_index_cache_command): Remove.
1089 (_initialize_index_cache): Use add_basic_prefix_cmd.
1090 * memattr.c (dummy_cmd): Remove.
1091 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
1092 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
1093 (_initialize_tui_win): Use add_basic_prefix_cmd,
1094 add_show_prefix_cmd.
1095 * cli/cli-logging.c (set_logging_command): Remove.
1096 (_initialize_cli_logging): Use add_basic_prefix_cmd,
1097 add_show_prefix_cmd.
1098 (show_logging_command): Remove.
1099 * target.c (target_command): Remove.
1100 (add_target): Use add_basic_prefix_cmd.
1101
a51119cd
HD
11022020-05-02 Hannes Domani <ssbssa@yahoo.de>
1103
1104 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
1105
652fc23a 11062020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 1107
652fc23a
PW
1108 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
1109 info_command.
1110
117539e6
KR
11112020-04-30 Kamil Rytarowski <n54@gmx.com>
1112
1113 * nbsd-nat.c (nbsd_enable_proc_events)
1114 (nbsd_nat_target::post_startup_inferior): Add.
1115 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
1116 (nbsd_nat_target::update_thread_list): Rewrite.
1117 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
1118 "PTRACE_LWP_CREATE".
1119 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
1120
102e38eb 11212020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 1122
102e38eb
PW
1123 * stack.c (_initialize_stack): Remove duplicated creation
1124 of "frame" command and "f" alias.
1125
ee9d1e5f
HD
11262020-04-30 Hannes Domani <ssbssa@yahoo.de>
1127
1128 PR gdb/18706
1129 * gdbtypes.c (check_typedef): Calculate size of array of
1130 stubbed type.
1131
627c7fb8
HD
11322020-04-30 Hannes Domani <ssbssa@yahoo.de>
1133
1134 PR gdb/15559
1135 * i386-tdep.c (i386_push_dummy_call): Call
1136 i386_thiscall_push_dummy_call.
1137 (i386_thiscall_push_dummy_call): New function.
1138 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
1139 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
1140 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
1141
ffc2844e
SM
11422020-04-29 Simon Marchi <simon.marchi@efficios.com>
1143
1144 * gdbarch.sh (do_read): Add shellcheck disable directive for
1145 warning SC2162.
1146
1207375d
SM
11472020-04-29 Simon Marchi <simon.marchi@efficios.com>
1148
1149 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
1150 "referenced but not assigned" warning.
1151
9fdb2916
SM
11522020-04-29 Simon Marchi <simon.marchi@efficios.com>
1153
1154 * gdbarch.sh: Remove code that sets fallbackdefault.
1155
759cea5e
SM
11562020-04-29 Simon Marchi <simon.marchi@efficios.com>
1157
1158 * gdbarch.sh: Use shell operators && and || instead of
1159 -a and -o.
1160
cb02ab24
SM
11612020-04-29 Simon Marchi <simon.marchi@efficios.com>
1162
1163 * gdbarch.sh: Use $(...) instead of `...`.
1164
a6fc5ffc
SM
11652020-04-29 Simon Marchi <simon.marchi@efficios.com>
1166
1167 * gdbarch.sh: Use double quotes around variables.
1168
8d113d13
SM
11692020-04-29 Simon Marchi <simon.marchi@efficios.com>
1170
1171 * gdbarch.sh: Use %s with printf, instead of variables in the
1172 format string.
1173
ed6acedd
TT
11742020-04-29 Tom Tromey <tromey@adacore.com>
1175
1176 PR ada/25875:
1177 * dwarf2/read.c (update_enumeration_type_from_children): Compute
1178 type fields here.
1179 (read_enumeration_type): Call
1180 update_enumeration_type_from_children later. Update comments.
1181 (process_enumeration_scope): Don't create type fields.
1182
b68b1b58
KR
11832020-04-29 Kamil Rytarowski <n54@gmx.com>
1184
1185 * nbsd-tdep.c: Include "xml-syscall.h".
1186 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
1187
f94b2e03
KR
11882020-04-29 Kamil Rytarowski <n54@gmx.com>
1189
1190 * nbsd-nat.c: Include "sys/wait.h".
1191 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
1192 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
1193 (nbsd_nat_target::remove_exec_catchpoint)
1194 (nbsd_nat_target::set_syscall_catchpoint): Add.
1195 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
1196 (nbsd_nat_target::insert_exec_catchpoint)
1197 (nbsd_nat_target::remove_exec_catchpoint)
1198 (nbsd_nat_target::set_syscall_catchpoint): Add.
1199 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
1200 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
1201 `nbsd_get_syscall_number'.
1202
fc49bc72
TT
12032020-04-29 Tom Tromey <tom@tromey.com>
1204
1205 * stack.c (print_block_frame_labels): Remove.
1206
d642b692
HD
12072020-04-29 Hannes Domani <ssbssa@yahoo.de>
1208
1209 PR gdb/17320
1210 * ada-valprint.c (val_print_packed_array_elements): Move array
1211 end bracket to new line.
1212 (ada_val_print_string): Remove extra spaces before first array
1213 element.
1214 * c-valprint.c (c_value_print_array): Likewise.
1215 * m2-valprint.c (m2_print_array_contents): Likewise.
1216 (m2_value_print_inner): Likewise.
1217 * p-valprint.c (pascal_value_print_inner): Likewise.
1218 * valprint.c (generic_val_print_array): Likewise.
1219 (value_print_array_elements): Move first array element and array
1220 end bracket to new line.
1221
ea90f227
TV
12222020-04-29 Tom de Vries <tdevries@suse.de>
1223
1224 PR symtab/25889
1225 * linespec.c (find_method): Fix ix calculation.
1226
4498ef4f
KR
12272020-04-28 Kamil Rytarowski <n54@gmx.com>
1228
1229 * syscalls/update-netbsd.sh: New file.
1230 * syscalls/netbsd.xml: Regenerate.
1231 * data-directory/Makefile.in: Register `netbsd.xml' in
1232 `SYSCALLS_FILES'.
1233
a55e30b5
SM
12342020-04-28 Simon Marchi <simon.marchi@efficios.com>
1235
1236 * syscalls/update-freebsd.sh: Add double quotes.
1237
2b2fbab8
TT
12382020-04-28 Tom Tromey <tom@tromey.com>
1239
1240 * NEWS: Update.
1241 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
1242 (cmdpy_init): Allow class_tui.
1243
a65189c9
TV
12442020-04-28 Mark Williams <mark@myosotissp.com>
1245
1246 PR gdb/24480
1247 * dwarf2read.c: Add missing assingments to list_in_scope when
1248 start_symtab was already called.
1249
1b95cdb7
SM
12502020-04-28 Simon Marchi <simon.marchi@efficios.com>
1251
1252 PR gdb/25881
1253 * dwarf2/read.c (offset_map_type): Use
1254 gdb:hash_enum<sect_offset> as hash function.
1255
15cd93d0
TV
12562020-04-28 Tom de Vries <tdevries@suse.de>
1257
1258 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
1259 with DW_AT_signature.
1260
1eb39914
SM
12612020-04-27 Simon Marchi <simon.marchi@efficios.com>
1262
1263 * configure.ac: Remove check for fs_base/gs_base in
1264 user_regs_struct.
1265 * configure: Re-generate.
1266 * config.in: Re-generate.
1267 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
1268 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
1269 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
1270
991a3e2e
LM
12712020-04-27 Luis Machado <luis.machado@linaro.org>
1272
1273 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
1274 problematic inline frame unwinding situation.
1275 * frame.c (frame_id_computed_p): New function.
1276 * frame.h (frame_id_computed_p): New prototype.
1277
361ba0e8
TT
12782020-04-26 Tom Tromey <tom@tromey.com>
1279
1280 * command.h (enum command_class) <class_pseudo>: Remove.
1281
bc3609fd
PW
12822020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1283
1284 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
1285 and whitespace.
1286
b9771db7
KR
12872020-04-25 Kamil Rytarowski <n54@gmx.com>
1288
1289 * inf-ptrace.c (inf_ptrace_target::wait): Remove
1290 `PT_GET_PROCESS_STATE' block.
1291
7151c1af
TT
12922020-04-24 Tom Tromey <tom@tromey.com>
1293
1294 * symtab.h (symbol_get_demangled_name): Don't declare.
1295 * symtab.c (symbol_get_demangled_name): Remove.
1296 (general_symbol_info::natural_name)
1297 (general_symbol_info::demangled_name): Update.
1298
906bb4c5
TT
12992020-04-24 Tom Tromey <tom@tromey.com>
1300
1301 PR rust/25025:
1302 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
1303
bcfe6157
TT
13042020-04-24 Tom Tromey <tom@tromey.com>
1305
1306 PR symtab/12707:
1307 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
1308 exists.
1309 (new_symbol): Likewise.
1310 * compile/compile-object-load.c (get_out_value_type): Use
1311 symbol_matches_search_name.
1312
f049a313
TT
13132020-04-24 Tom Tromey <tom@tromey.com>
1314
1315 * dwarf2/read.c (add_partial_symbol): Do not call
1316 compute_and_set_names.
1317
76e288d1
TT
13182020-04-24 Tom Tromey <tom@tromey.com>
1319
1320 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
1321 overload.
1322
2467f4f6
TT
13232020-04-24 Tom Tromey <tom@tromey.com>
1324
1325 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
1326 (add_psymbol_to_list): New overload. Make old overload call new
1327 one.
1328 * psympriv.h (add_psymbol_to_list): New overload.
1329
e61108c9
TT
13302020-04-24 Tom Tromey <tom@tromey.com>
1331
1332 * dwarf2/read.c (partial_die_info::read) <case
1333 DW_AT_linkage_name>: Use value_as_string.
1334 (dwarf2_string_attr): Use value_as_string.
1335 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1336 method.
1337 * dwarf2/attribute.c (attribute::value_as_string): New method.
1338
8c87a452
TT
13392020-04-24 Tom Tromey <tom@tromey.com>
1340
1341 * symtab.c (general_symbol_info::natural_name)
1342 (general_symbol_info::demangled_name): Check for language_rust.
1343
787de330
TT
13442020-04-24 Tom Tromey <tom@tromey.com>
1345
1346 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
1347 (dwarf2_physname): ... from here.
1348 (partial_die_info::read): Add Rust "{" hack.
1349
ff985671
TT
13502020-04-24 Tom Tromey <tom@tromey.com>
1351
1352 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
1353 method.
1354 (symbol_set_demangled_name): Don't declare.
1355 * symtab.c (general_symbol_info::set_demangled_name): Rename from
1356 symbol_set_demangled_name.
1357 (general_symbol_info::set_language)
1358 (general_symbol_info::compute_and_set_names): Update.
1359 * minsyms.c (minimal_symbol_reader::install): Update.
1360 * dwarf2/read.c (new_symbol): Update.
1361
1acda803
TT
13622020-04-24 Tom Tromey <tromey@adacore.com>
1363
1364 PR python/23662:
1365 * python/py-type.c (convert_field): Handle
1366 FIELD_LOC_KIND_DWARF_BLOCK.
1367 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
1368 (typy_get_dynamic): Nw function.
1369 (type_object_getset): Add "dynamic".
1370 * NEWS: Add entry.
1371
d656f129
TT
13722020-04-24 Tom Tromey <tromey@adacore.com>
1373
1374 * ada-typeprint.c (print_choices, print_variant_part)
1375 (print_record_field_types_dynamic): New functions.
1376 (print_record_field_types): Use print_record_field_types_dynamic.
1377
7d79de9a
TT
13782020-04-24 Tom Tromey <tromey@adacore.com>
1379
1380 * dwarf2/read.c (handle_data_member_location): New overload.
1381 (dwarf2_add_field): Use it.
1382 (decode_locdesc): Add "computed" parameter. Update comment.
1383 * gdbtypes.c (is_dynamic_type_internal): Also look for
1384 FIELD_LOC_KIND_DWARF_BLOCK.
1385 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
1386 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
1387 virtual base classes.
1388 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
1389 FIELD_LOC_KIND_DWARF_BLOCK.
1390
f8e89861
TT
13912020-04-24 Tom Tromey <tromey@adacore.com>
1392
1393 * dwarf2/read.c (read_structure_type): Handle dynamic length.
1394 * gdbtypes.c (is_dynamic_type_internal): Check
1395 TYPE_HAS_DYNAMIC_LENGTH.
1396 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
1397 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
1398 New macros.
1399 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
1400 constant.
1401
9c6a1327
TT
14022020-04-24 Tom Tromey <tromey@adacore.com>
1403
1404 * dwarf2/read.c (struct variant_field): Rewrite.
1405 (struct variant_part_builder): New.
1406 (struct nextfield): Remove "variant" field. Add "offset".
1407 (struct field_info): Add "current_variant_part" and
1408 "variant_parts".
1409 (alloc_discriminant_info): Remove.
1410 (alloc_rust_variant): New function.
1411 (quirk_rust_enum): Update.
1412 (dwarf2_add_field): Set "offset" member. Don't handle
1413 DW_TAG_variant_part.
1414 (offset_map_type): New typedef.
1415 (convert_variant_range, create_one_variant)
1416 (create_one_variant_part, create_variant_parts)
1417 (add_variant_property): New functions.
1418 (dwarf2_attach_fields_to_type): Call add_variant_property.
1419 (read_structure_type): Don't handle DW_TAG_variant_part.
1420 (handle_variant_part, handle_variant): New functions.
1421 (handle_struct_member_die): Use them.
1422 (process_structure_scope): Don't handle variant parts.
1423 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
1424 (struct discriminant_info): Remove.
1425 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
1426 (struct main_type) <flag_discriminated_union>: Remove.
1427 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
1428 (rust_enum_variant): Return int. Remove "contents". Rewrite.
1429 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
1430 Update.
1431 * valops.c (value_union_variant): Remove.
1432 * value.h (value_union_variant): Don't declare.
1433
b249d2c2
TT
14342020-04-24 Tom Tromey <tromey@adacore.com>
1435
1436 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
1437 (ada_value_primitive_packed_val): Update.
1438 * ada-valprint.c (ada_value_print_1): Update.
1439 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
1440 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
1441 just an address. Use evaluate_for_locexpr_baton.
1442 (dwarf2_evaluate_property): Update.
1443 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
1444 array_view.
1445 * findvar.c (default_read_var_value): Update.
1446 * gdbtypes.c (compute_variant_fields_inner)
1447 (resolve_dynamic_type_internal): Update.
1448 (resolve_dynamic_type): Change type of valaddr parameter.
1449 * gdbtypes.h (resolve_dynamic_type): Update.
1450 * valarith.c (value_subscripted_rvalue): Update.
1451 * value.c (value_from_contents_and_address): Update.
1452
61122aa9
TT
14532020-04-24 Tom Tromey <tromey@adacore.com>
1454
1455 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
1456 "push_initial_value" parameter.
1457 (dwarf2_evaluate_property): Likewise.
1458 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
1459
ef83a141
TT
14602020-04-24 Tom Tromey <tromey@adacore.com>
1461
1462 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
1463 (variant::matches, compute_variant_fields_recurse)
1464 (compute_variant_fields_inner, compute_variant_fields): New
1465 functions.
1466 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
1467 Use resolved_type after type is made.
1468 (operator==): Add new cases.
1469 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
1470 (struct discriminant_range, struct variant, struct variant_part):
1471 New.
1472 (union dynamic_prop_data) <variant_parts, original_type>: New
1473 members.
1474 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
1475 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
1476 constants.
1477 * value.c (unpack_bits_as_long): Now public.
1478 * value.h (unpack_bits_as_long): Declare.
1479
675127ec
TT
14802020-04-24 Tom Tromey <tromey@adacore.com>
1481
1482 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
1483 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
1484
9852ceef
HD
14852020-04-24 Hannes Domani <ssbssa@yahoo.de>
1486
1487 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
1488
7632c6ce
KR
14892020-04-24 Kamil Rytarowski <n54@gmx.com>
1490
1491 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
1492 (remove_fork_catchpoint, post_startup_inferior)
1493 (post_attach): Move...
1494 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
1495 (remove_fork_catchpoint, post_startup_inferior)
1496 (post_attach): ...here.
1497 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
1498 (remove_fork_catchpoint, post_startup_inferior)
1499 (post_attach): Move...
1500 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
1501 (remove_fork_catchpoint, post_startup_inferior)
1502 (post_attach): ...here.
1503
7be2bb4f
TT
15042020-04-24 Tom Tromey <tromey@adacore.com>
1505
1506 * nat/windows-nat.h (struct windows_thread_info)
1507 <pc_adjusted>: New member.
1508 * windows-nat.c (windows_fetch_one_register): Check
1509 pc_adjusted.
1510 (windows_nat_target::get_windows_debug_event)
1511 (windows_nat_target::wait): Set pc_adjusted.
1512
f80cb3b4
TV
15132020-04-24 Tom de Vries <tdevries@suse.de>
1514
1515 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
1516 Run gdb-add-index inside temp dir.
1517
29514b87
TT
15182020-04-23 Tom Tromey <tromey@adacore.com>
1519
1520 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
1521 in loop.
1522
5939967b
LM
15232020-04-23 Luis Machado <luis.machado@linaro.org>
1524
1525 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
1526 get_frame_register instead of gdbarch_unwind_pc.
1527
70bc38f5
TV
15282020-04-23 Tom de Vries <tdevries@suse.de>
1529
1530 * symtab.c (lookup_global_symbol): Prefer def over decl.
1531
de82891c
TV
15322020-04-23 Tom de Vries <tdevries@suse.de>
1533
1534 PR symtab/25807
1535 * block.c (best_symbol, better_symbol): Promote to external.
1536 * block.h (best_symbol, better_symbol): Declare.
1537 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
1538 decl.
1539
ecc6c606
TT
15402020-04-23 Tom Tromey <tromey@adacore.com>
1541
1542 PR ada/25837:
1543 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
1544 "const char *", not a "const std::string &".
1545 <name_and_matcher::operator==>: Update.
1546 * unittests/lookup_name_info-selftests.c: Change type of
1547 "result".
1548
740480b8
TT
15492020-04-23 Tom Tromey <tom@tromey.com>
1550
1551 * inferior.h (iterate_over_inferiors): Don't declare.
1552 * inferior.c (iterate_over_inferiors): Remove.
1553 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
1554 Remove.
1555 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
1556 use iterate_over_inferiors.
1557 (darwin_resume_inferior_it)
1558 (struct resume_inferior_threads_param)
1559 (darwin_resume_inferior_threads_it): Remove.
1560 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
1561
ae3ab1f0
TV
15622020-04-23 Tom de Vries <tdevries@suse.de>
1563
1564 * blockframe.c (find_pc_partial_function): Use
1565 find_pc_sect_compunit_symtab rather than
1566 objfile->sf->qf->find_pc_sect_compunit_symtab.
1567
317d2668
TV
15682020-04-22 Tom de Vries <tdevries@suse.de>
1569
1570 PR symtab/25764
1571 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
1572 in psymtabs.
1573
eea9e357
TV
15742020-04-22 Tom de Vries <tdevries@suse.de>
1575
1576 PR symtab/25801
1577 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
1578 symtabs.
1579
3d5afab3
TV
15802020-04-22 Tom de Vries <tdevries@suse.de>
1581
1582 PR symtab/25700
1583 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
1584 CU if already created.
1585
d43b7a2d
TBA
15862020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1587
1588 * infrun.c (displaced_step_fixup): Switch to the event_thread
1589 before calling displaced_step_restore, not after.
1590
d89edf9b
MM
15912020-04-21 Markus Metzger <markus.t.metzger@intel.com>
1592
1593 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
1594 its inferior is not recorded by us.
1595 (record_btrace_target_open): Replace call to
1596 all_non_exited_threads () with call to current_inferior
1597 ()->non_exited_threads ().
1598 (record_btrace_target::stop_recording): Likewise.
1599 (record_btrace_target::close): Likewise.
1600 (record_btrace_target::wait): Likewise.
1601 (record_btrace_target::record_stop_replaying): Likewise.
1602
5897fd49
MM
16032020-04-21 Markus Metzger <markus.t.metzger@intel.com>
1604
1605 * btrace.c (btrace_enable): Throw an error on double enables and
1606 when enabling recording fails.
1607 (btrace_disable): Throw an error if the thread is not recorded.
1608
1a476b6d
MM
16092020-04-21 Markus Metzger <markus.t.metzger@intel.com>
1610
1611 * record-btrace.c (record_btrace_target::fetch_registers): Forward
1612 request if we do not have a thread_info.
1613
4778a5f8
TV
16142020-04-21 Tom de Vries <tdevries@suse.de>
1615
1616 PR gdb/25471
1617 * thread.c
1618 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
1619 exception in get_frame_id.
1620
0fa7617d
TT
16212020-04-20 Tom Tromey <tromey@adacore.com>
1622
1623 * python/python.c (struct gdbpy_event): Mark move constructor as
1624 noexcept.
1625 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
1626 constructor as noexcept.
1627 * completer.h (struct completion_result): Mark move constructor as
1628 noexcept.
1629 * completer.c (completion_result::completion_result): Use
1630 initialization style. Don't call reset_match_list.
1631
ad23bda0
MS
16322020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
1633
1634 * MAINTAINERS (Write After Approval): Add myself.
1635
45e1f031
TT
16362020-04-18 Tom Tromey <tom@tromey.com>
1637
1638 * windows-tdep.c (init_w32_command_list)
1639 (w32_prefix_command_valid): Restore.
1640 (_initialize_windows_tdep): Call init_w32_command_list.
1641
08feed99
TT
16422020-04-18 Tom Tromey <tom@tromey.com>
1643
1644 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
1645 * value.c (value_fn_field): Update.
1646 * valops.c (find_function_in_inferior)
1647 (value_allocate_space_in_inferior): Update.
1648 * tui/tui-winsource.c (tui_update_source_windows_with_line):
1649 Update.
1650 * tui/tui-source.c (tui_source_window::set_contents): Update.
1651 * symtab.c (lookup_global_or_static_symbol)
1652 (find_function_start_sal_1, skip_prologue_sal)
1653 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
1654 * symmisc.c (dump_msymbols, dump_symtab_1)
1655 (maintenance_print_one_line_table): Update.
1656 * symfile.c (init_entry_point_info, section_is_mapped)
1657 (list_overlays_command, simple_read_overlay_table)
1658 (simple_overlay_update_1): Update.
1659 * stap-probe.c (handle_stap_probe): Update.
1660 * stabsread.c (dbx_init_float_type, define_symbol)
1661 (read_one_struct_field, read_enum_type, read_range_type): Update.
1662 * source.c (info_line_command): Update.
1663 * python/python.c (gdbpy_source_objfile_script)
1664 (gdbpy_execute_objfile_script): Update.
1665 * python/py-type.c (save_objfile_types): Update.
1666 * python/py-objfile.c (py_free_objfile): Update.
1667 * python/py-inferior.c (python_new_objfile): Update.
1668 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
1669 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
1670 (maintenance_check_psymtabs): Update.
1671 * printcmd.c (info_address_command): Update.
1672 * objfiles.h (struct objfile) <arch>: New method, from
1673 get_objfile_arch.
1674 (get_objfile_arch): Don't declare.
1675 * objfiles.c (get_objfile_arch): Remove.
1676 (filter_overlapping_sections): Update.
1677 * minsyms.c (msymbol_is_function): Update.
1678 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
1679 (output_nondebug_symbol): Update.
1680 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
1681 (mdebug_expand_psymtab): Update.
1682 * machoread.c (macho_add_oso_symfile): Update.
1683 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
1684 Update.
1685 * linux-fork.c (checkpoint_command): Update.
1686 * linespec.c (convert_linespec_to_sals): Update.
1687 * jit.c (finalize_symtab): Update.
1688 * infrun.c (insert_exception_resume_from_probe): Update.
1689 * ia64-tdep.c (ia64_find_unwind_table): Update.
1690 * hppa-tdep.c (internalize_unwinds): Update.
1691 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
1692 Update.
1693 * gcore.c (call_target_sbrk): Update.
1694 * elfread.c (record_minimal_symbol, elf_symtab_read)
1695 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
1696 (elf_gnu_ifunc_resolve_by_got): Update.
1697 * dwarf2/read.c (create_addrmap_from_index)
1698 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
1699 (read_debug_names_from_section)
1700 (process_psymtab_comp_unit_reader, add_partial_symbol)
1701 (add_partial_subprogram, process_full_comp_unit)
1702 (read_file_scope, read_func_scope, read_lexical_block_scope)
1703 (read_call_site_scope, dwarf2_ranges_read)
1704 (dwarf2_record_block_ranges, dwarf2_add_field)
1705 (mark_common_block_symbol_computed, read_tag_pointer_type)
1706 (read_tag_string_type, dwarf2_init_float_type)
1707 (dwarf2_init_complex_target_type, read_base_type)
1708 (partial_die_info::read, partial_die_info::read)
1709 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
1710 (dwarf2_fetch_die_loc_sect_off): Update.
1711 * dwarf2/loc.c (dwarf2_find_location_expression)
1712 (class dwarf_evaluate_loc_desc, rw_pieced_value)
1713 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
1714 (dwarf2_loc_desc_get_symbol_read_needs)
1715 (locexpr_describe_location_piece, locexpr_describe_location_1)
1716 (loclist_describe_location): Update.
1717 * dwarf2/index-write.c (write_debug_names): Update.
1718 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
1719 * dtrace-probe.c (dtrace_process_dof): Update.
1720 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
1721 (process_one_symbol): Update.
1722 * ctfread.c (ctf_init_float_type, read_base_type): Update.
1723 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
1724 (coff_read_enum_type): Update.
1725 * cli/cli-cmds.c (edit_command, list_command): Update.
1726 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
1727 * breakpoint.c (create_overlay_event_breakpoint)
1728 (create_longjmp_master_breakpoint)
1729 (create_std_terminate_master_breakpoint)
1730 (create_exception_master_breakpoint, get_sal_arch): Update.
1731 * block.c (block_gdbarch): Update.
1732 * annotate.c (annotate_source_line): Update.
1733
0743fc83
TT
17342020-04-17 Tom Tromey <tromey@adacore.com>
1735
1736 * auto-load.c (show_auto_load_cmd): Remove.
1737 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
1738 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
1739 (maintenance_print_arc_command): Remove.
1740 * tui/tui-win.c (tui_command): Remove.
1741 (tui_get_cmd_list): Use add_basic_prefix_cmd.
1742 * tui/tui-layout.c (tui_layout_command): Remove.
1743 (_initialize_tui_layout): Use add_basic_prefix_cmd.
1744 * python/python.c (user_set_python, user_show_python): Remove.
1745 (_initialize_python): Use add_basic_prefix_cmd,
1746 add_show_prefix_cmd.
1747 * guile/guile.c (set_guile_command, show_guile_command): Remove.
1748 (install_gdb_commands): Use add_basic_prefix_cmd,
1749 add_show_prefix_cmd.
1750 (info_guile_command): Remove.
1751 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
1752 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
1753 add_show_prefix_cmd.
1754 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
1755 Remove do_set and do_show parameters.
1756 * cli/cli-style.c (set_style, show_style): Remove.
1757 (_initialize_cli_style): Use add_basic_prefix_cmd,
1758 add_show_prefix_cmd.
1759 (cli_style_option::add_setshow_commands): Remove do_set and
1760 do_show parameters.
1761 (cli_style_option::add_setshow_commands): Use
1762 add_basic_prefix_cmd, add_show_prefix_cmd.
1763 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
1764 (set_style_name): Remove.
1765 * cli/cli-dump.c (dump_command, append_command): Remove.
1766 (srec_dump_command, ihex_dump_command, verilog_dump_command)
1767 (tekhex_dump_command, binary_dump_command)
1768 (binary_append_command): Remove.
1769 (_initialize_cli_dump): Use add_basic_prefix_cmd.
1770 * windows-tdep.c (w32_prefix_command_valid): Remove global.
1771 (init_w32_command_list): Remove; move into ...
1772 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
1773 * valprint.c (set_print, show_print, set_print_raw)
1774 (show_print_raw): Remove.
1775 (_initialize_valprint): Use add_basic_prefix_cmd,
1776 add_show_prefix_cmd.
1777 * typeprint.c (set_print_type, show_print_type): Remove.
1778 (_initialize_typeprint): Use add_basic_prefix_cmd,
1779 add_show_prefix_cmd.
1780 * record.c (set_record_command, show_record_command): Remove.
1781 (_initialize_record): Use add_basic_prefix_cmd,
1782 add_show_prefix_cmd.
1783 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
1784 add_show_prefix_cmd.
1785 (info_command, show_command, set_debug, show_debug): Remove.
1786 * top.h (set_history, show_history): Don't declare.
1787 * top.c (set_history, show_history): Remove.
1788 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
1789 (unset_tdesc_cmd): Remove.
1790 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
1791 add_show_prefix_cmd.
1792 * symtab.c (info_module_command): Remove.
1793 (_initialize_symtab): Use add_basic_prefix_cmd.
1794 * symfile.c (overlay_command): Remove.
1795 (_initialize_symfile): Use add_basic_prefix_cmd.
1796 * sparc64-tdep.c (info_adi_command): Remove.
1797 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
1798 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
1799 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
1800 add_show_prefix_cmd.
1801 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
1802 (_initialize_serial): Use add_basic_prefix_cmd,
1803 add_show_prefix_cmd.
1804 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
1805 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
1806 add_show_prefix_cmd.
1807 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
1808 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
1809 add_show_prefix_cmd.
1810 * riscv-tdep.c (show_riscv_command, set_riscv_command)
1811 (show_debug_riscv_command, set_debug_riscv_command): Remove.
1812 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
1813 add_show_prefix_cmd.
1814 * remote.c (remote_command, set_remote_cmd): Remove.
1815 (_initialize_remote): Use add_basic_prefix_cmd.
1816 * record-full.c (set_record_full_command)
1817 (show_record_full_command): Remove.
1818 (_initialize_record_full): Use add_basic_prefix_cmd,
1819 add_show_prefix_cmd.
1820 * record-btrace.c (cmd_set_record_btrace)
1821 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
1822 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
1823 (cmd_show_record_btrace_pt): Remove.
1824 (_initialize_record_btrace): Use add_basic_prefix_cmd,
1825 add_show_prefix_cmd.
1826 * ravenscar-thread.c (set_ravenscar_command)
1827 (show_ravenscar_command): Remove.
1828 (_initialize_ravenscar): Use add_basic_prefix_cmd,
1829 add_show_prefix_cmd.
1830 * mips-tdep.c (show_mips_command, set_mips_command)
1831 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
1832 add_show_prefix_cmd.
1833 * maint.c (maintenance_command, maintenance_info_command)
1834 (maintenance_check_command, maintenance_print_command)
1835 (maintenance_set_cmd, maintenance_show_cmd): Remove.
1836 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
1837 add_show_prefix_cmd.
1838 (show_per_command_cmd): Remove.
1839 * maint-test-settings.c (maintenance_set_test_settings_cmd):
1840 Remove.
1841 (maintenance_show_test_settings_cmd): Remove.
1842 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
1843 add_show_prefix_cmd.
1844 * maint-test-options.c (maintenance_test_options_command):
1845 Remove.
1846 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
1847 * macrocmd.c (macro_command): Remove
1848 (_initialize_macrocmd): Use add_basic_prefix_cmd.
1849 * language.c (set_check, show_check): Remove.
1850 (_initialize_language): Use add_basic_prefix_cmd,
1851 add_show_prefix_cmd.
1852 * infcmd.c (unset_command): Remove.
1853 (_initialize_infcmd): Use add_basic_prefix_cmd.
1854 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
1855 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
1856 add_show_prefix_cmd.
1857 * go32-nat.c (go32_info_dos_command): Remove.
1858 (_initialize_go32_nat): Use add_basic_prefix_cmd.
1859 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
1860 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
1861 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
1862 (_initialize_frame): Use add_basic_prefix_cmd,
1863 add_show_prefix_cmd.
1864 * dcache.c (set_dcache_command, show_dcache_command): Remove.
1865 (_initialize_dcache): Use add_basic_prefix_cmd,
1866 add_show_prefix_cmd.
1867 * cp-support.c (maint_cplus_command): Remove.
1868 (_initialize_cp_support): Use add_basic_prefix_cmd.
1869 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1870 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1871 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
1872 add_basic_prefix_cmd, add_show_prefix_cmd.
1873 * breakpoint.c (save_command): Remove.
1874 (_initialize_breakpoint): Use add_basic_prefix_cmd.
1875 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
1876 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
1877 add_show_prefix_cmd.
1878 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
1879 (set_ada_command, show_ada_command): Remove.
1880 (_initialize_ada_language): Use add_basic_prefix_cmd,
1881 add_show_prefix_cmd.
1882 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
1883
3557f442
KR
18842020-04-16 Kamil Rytarowski <n54@gmx.com>
1885
1886 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
1887 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
1888
16197208
SM
18892020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
1890
1891 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
1892 warning messages.
1893
00ac85d3
SM
18942020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
1895
1896 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
1897 import table is not at beginning of .idata section.
1898
381ce63f
PA
18992020-04-16 Pedro Alves <palves@redhat.com>
1900
1901 * inferior.c (delete_inferior): Use delete operator directly
1902 instead of delete_program_space.
1903 * progspace.c (add_program_space): New, factored out from
1904 program_space::program_space.
1905 (remove_program_space): New, factored out from
1906 delete_program_space.
1907 (program_space::program_space): Remove intro comment. Rewrite.
1908 (program_space::~program_space): Remove intro comment. Call
1909 remove_program_space.
1910 (delete_program_space): Delete.
1911 * progspace.h (program_space::program_space): Make explicit. Move
1912 intro comment here, adjusted.
1913 (program_space::~program_space): Move intro comment here,
1914 adjusted.
1915 (delete_program_space): Remove.
1916
a010605f
TT
19172020-04-16 Tom Tromey <tromey@adacore.com>
1918
1919 * windows-nat.c (windows_nat::handle_access_violation): New
1920 function.
1921 * nat/windows-nat.h (handle_access_violation): Declare.
1922 * nat/windows-nat.c (handle_exception): Move Cygwin code to
1923 windows-nat.c. Call handle_access_violation.
1924
efba5c23
TV
19252020-04-16 Tom de Vries <tdevries@suse.de>
1926
1927 PR symtab/25791
1928 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
1929 CUs without psymtab.
1930
97ed802d
KB
19312020-04-16 Kevin Buettner <kevinb@redhat.com>
1932
1933 * python/python.c (do_start_initialization): Don't call
1934 PyEval_InitThreads for Python 3.9 and beyond.
1935
c7d64809
KR
19362020-04-15 Kamil Rytarowski <n54@gmx.com>
1937
1938 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
1939 thread functions.
1940 (obsd_nat_target::wait): Likewise.
1941
ce127a96
TT
19422020-04-15 Tom Tromey <tromey@adacore.com>
1943
1944 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
1945 (DEBUG_EXCEPT): Use debug_printf.
1946
99f1bc6a
AB
19472020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1948
1949 * completer.c (class completion_tracker::completion_hash_entry)
1950 <hash_name>: New member function.
1951 (completion_tracker::discard_completions): New callback to hash a
1952 completion_hash_entry, pass this to htab_create_alloc.
1953
a0e9b532
JT
19542016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
1955
1956 * windows-nat.c (windows_make_so): Warn rather than stopping with
1957 an error if realpath() fails.
1958
06ca5dd4
KR
19592020-04-14 Kamil Rytarowski <n54@gmx.com>
1960
1961 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
1962 (nbsd_nat_target::info_proc): Add do_status.
1963
194d088f
TV
19642020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
1965 Tom de Vries <tdevries@suse.de>
1966
1967 PR symtab/25718
1968 * psympriv.h (struct partial_symtab::read_symtab)
1969 (struct partial_symtab::expand_psymtab)
1970 (struct partial_symtab::read_dependencies): Update comments.
1971 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
1972 read_symtab for includer.
1973 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
1974 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
1975 (struct dwarf2_include_psymtab::m_readin): Remove.
1976 (struct dwarf2_include_psymtab::includer): New member function.
1977 (dwarf2_psymtab::expand_psymtab): Assert !readin.
1978
c1a66c06
TV
19792020-04-14 Tom de Vries <tdevries@suse.de>
1980
1981 PR symtab/25720
1982 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
1983 with NULL symbol_matcher and lookup_name.
1984 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
1985 and lookup_name.
1986 * dwarf2/read.c (dw2_expand_symtabs_matching)
1987 (dw2_debug_names_expand_symtabs_matching): Same.
1988 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
1989 Make lookup_name a pointer. Update comment.
1990 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
1991 lookup_name being a pointer.
1992 * symfile.c (expand_symtabs_matching): Same.
1993 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
1994 * linespec.c (iterate_over_all_matching_symtabs): Same.
1995
400b5eca
TT
19962020-04-13 Tom Tromey <tom@tromey.com>
1997
1998 * run-on-main-thread.c: Update include.
1999 * unittests/main-thread-selftests.c: Update include.
2000 * tui/tui-win.c: Update include.
2001 * tui/tui-io.c: Update include.
2002 * tui/tui-interp.c: Update include.
2003 * tui/tui-hooks.c: Update include.
2004 * top.h: Update include.
2005 * top.c: Update include.
2006 * ser-base.c: Update include.
2007 * remote.c: Update include.
2008 * remote-notif.c: Update include.
2009 * remote-fileio.c: Update include.
2010 * record-full.c: Update include.
2011 * record-btrace.c: Update include.
2012 * python/python.c: Update include.
2013 * posix-hdep.c: Update include.
2014 * mingw-hdep.c: Update include.
2015 * mi/mi-main.c: Update include.
2016 * mi/mi-interp.c: Update include.
2017 * main.c: Update include.
2018 * linux-nat.c: Update include.
2019 * interps.c: Update include.
2020 * infrun.c: Update include.
2021 * inf-loop.c: Update include.
2022 * event-top.c: Update include.
2023 * event-loop.c: Move to ../gdbsupport/.
2024 * event-loop.h: Move to ../gdbsupport/.
2025 * async-event.h: Update include.
2026 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
2027
93b54c8e
TT
20282020-04-13 Tom Tromey <tom@tromey.com>
2029
2030 * tui/tui-win.c: Include async-event.h.
2031 * remote.c: Include async-event.h.
2032 * remote-notif.c: Include async-event.h.
2033 * record-full.c: Include async-event.h.
2034 * record-btrace.c: Include async-event.h.
2035 * infrun.c: Include async-event.h.
2036 * event-top.c: Include async-event.h.
2037 * event-loop.h: Move some declarations to async-event.h.
2038 * event-loop.c: Don't include ser-event.h or top.h. Move some
2039 code to async-event.c.
2040 * async-event.h: New file.
2041 * async-event.c: New file.
2042 * Makefile.in (COMMON_SFILES): Add async-event.c.
2043 (HFILES_NO_SRCDIR): Add async-event.h.
2044
c1cd3163
TT
20452020-04-13 Tom Tromey <tom@tromey.com>
2046
2047 * utils.c (flush_streams): New function.
2048 * event-loop.c (gdb_wait_for_event): Call flush_streams.
2049
29f2bf4f
TT
20502020-04-13 Tom Tromey <tom@tromey.com>
2051
2052 * event-loop.c (handle_file_event): Use warning, not
2053 printf_unfiltered.
2054
98029d02
TT
20552020-04-13 Tom Tromey <tom@tromey.com>
2056
2057 * event-loop.c: Include <chrono>.
2058
06cc9596
TT
20592020-04-13 Tom Tromey <tom@tromey.com>
2060
2061 * gdb_select.h: Move to ../gdbsupport/.
2062 * event-loop.c: Update include path.
2063 * top.c: Update include path.
2064 * ser-base.c: Update include path.
2065 * ui-file.c: Update include path.
2066 * ser-tcp.c: Update include path.
2067 * guile/scm-ports.c: Update include path.
2068 * posix-hdep.c: Update include path.
2069 * ser-unix.c: Update include path.
2070 * gdb_usleep.c: Update include path.
2071 * mingw-hdep.c: Update include path.
2072 * inflow.c: Update include path.
2073 * infrun.c: Update include path.
2074 * event-top.c: Update include path.
2075
8ae8e197
TT
20762020-04-13 Tom Tromey <tom@tromey.com>
2077
2078 * configure: Rebuild.
2079 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
2080
58cf28e8
TT
20812020-04-13 Tom Tromey <tom@tromey.com>
2082
2083 * event-loop.h (start_event_loop): Don't declare.
2084 * event-loop.c (start_event_loop): Move...
2085 * main.c (start_event_loop): ...here. Now static.
2086
b7f999ae
SDJ
20872020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
2088
2089 * MAINTAINERS: Update my email address.
2090
1085dfd4
KR
20912020-04-12 Kamil Rytarowski <n54@gmx.com>
2092
2093 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
2094 IP_ALL.
2095
49d1d1f5
KR
20962020-04-12 Kamil Rytarowski <n54@gmx.com>
2097
2098 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 2099 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 2100
b4848d2a
KR
21012020-04-12 Kamil Rytarowski <n54@gmx.com>
2102
2103 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 2104 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 2105
51c133d5
KR
21062020-04-12 Kamil Rytarowski <n54@gmx.com>
2107
2108 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
2109
54b8cbd0
KR
21102020-04-11 Kamil Rytarowski <n54@gmx.com>
2111
2112 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
2113 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
2114 (nbsd_nat_target::info_proc): New functions.
2115 * nbsd-nat.c (kinfo_get_vmmap): New function.
2116 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
2117 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
2118 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
2119 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
2120 functions.
2121 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
2122 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
2123 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
2124 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
2125 (KINFO_VME_FLAG_GROWS_DOWN): New.
2126
cf83625d
AS
21272020-04-10 Artur Shepilko <nomadbyte@gmail.com>
2128
2129 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
2130 bit shift.
2131
0c4311ab
TT
21322020-04-10 Tom Tromey <tromey@adacore.com>
2133
2134 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
2135
3e65b3e9
TT
21362020-04-10 Tom Tromey <tromey@adacore.com>
2137
2138 * symtab.c (get_symbol_address, get_msymbol_address): Skip
2139 separate debug files.
2140
13302e95
HD
21412020-04-10 Hannes Domani <ssbssa@yahoo.de>
2142
2143 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
2144 Move to...
2145 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
2146 ... here.
2147 * windows-nat.c (windows_nat_target::get_windows_debug_event):
2148 Check for STATUS_WX86_BREAKPOINT.
2149 (windows_nat_target::wait): Same.
2150
bdfc1e8a
TV
21512020-04-10 Tom de Vries <tdevries@suse.de>
2152
2153 PR cli/25808
2154 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
2155
f4460aec
SM
21562020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
2157
2158 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
2159 (Write After Approval): Remove Tom de Vries.
2160
a25198bb
BE
21612020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
2162
2163 revert partially:
2164 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
2165
aac66a4c
SM
2166 * buildsym.c (record_line): Fix undefined behavior and preserve
2167 lines at eof.
a25198bb 2168
206c98a6
KR
21692020-04-09 Kamil Rytarowski <n54@gmx.com>
2170
2171 * auxv.h (svr4_auxv_parse): New.
2172 * auxv.c (default_auxv_parse): Split into default_auxv_parse
2173 and generic_auxv_parse.
2174 (svr4_auxv_parse): Add.
2175 * obsd-tdep.c: Include "auxv.h".
2176 (obsd_auxv_parse): Remove.
2177 (obsd_init_abi): Remove comment.
2178 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
2179 from `obsd_auxv_parse' to `svr4_auxv_parse'.
2180 * nbsd-tdep.c: Include "auxv.h".
2181 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
2182
71fbdbaf
TT
21832020-04-08 Tom Tromey <tromey@adacore.com>
2184
2185 * nat/windows-nat.h (last_wait_event): Don't declare.
2186 (wait_for_debug_event): Update comment.
2187 * nat/windows-nat.c (last_wait_event): Now static.
2188
2c1d95e8
TT
21892020-04-08 Tom Tromey <tromey@adacore.com>
2190
2191 * windows-nat.c (wait_for_debug_event): Move to
2192 nat/windows-nat.c.
2193 * nat/windows-nat.h (wait_for_debug_event): Declare.
2194 * nat/windows-nat.c (wait_for_debug_event): Move from
2195 windows-nat.c. No longer static.
2196
d2977bc4
TT
21972020-04-08 Tom Tromey <tromey@adacore.com>
2198
2199 * windows-nat.c (get_windows_debug_event): Use
2200 fetch_pending_stop.
2201 * nat/windows-nat.h (fetch_pending_stop): Declare.
2202 * nat/windows-nat.c (fetch_pending_stop): New function.
2203
e758e19c
TT
22042020-04-08 Tom Tromey <tromey@adacore.com>
2205
2206 * windows-nat.c (windows_continue): Use matching_pending_stop and
2207 continue_last_debug_event.
2208 * nat/windows-nat.h (matching_pending_stop)
2209 (continue_last_debug_event): Declare.
2210 * nat/windows-nat.c (DEBUG_EVENTS): New define.
2211 (matching_pending_stop, continue_last_debug_event): New
2212 functions.
2213
8d30e395
TT
22142020-04-08 Tom Tromey <tromey@adacore.com>
2215
2216 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
2217 (handle_exception_result): Move to nat/windows-nat.h.
2218 (DEBUG_EXCEPTION_SIMPLE): Remove.
2219 (windows_nat::handle_ms_vc_exception): New function.
2220 (handle_exception): Move to nat/windows-nat.c.
2221 (get_windows_debug_event): Update.
2222 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
2223 nat/windows-nat.c.
2224 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
2225 (handle_exception_result): Move from windows-nat.c.
2226 (handle_exception): Declare.
2227 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
2228 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
2229 windows-nat.c.
2230
29de418d
TT
22312020-04-08 Tom Tromey <tromey@adacore.com>
2232
2233 * windows-nat.c (exception_count, event_count): Remove.
2234 (handle_exception, get_windows_debug_event)
2235 (do_initial_windows_stuff): Update.
2236
a816ba18
TT
22372020-04-08 Tom Tromey <tromey@adacore.com>
2238
2239 * windows-nat.c (windows_nat::handle_load_dll)
2240 (windows_nat::handle_unload_dll): Rename. No longer static.
2241 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
2242 Declare.
2243
a00caa12
TT
22442020-04-08 Tom Tromey <tromey@adacore.com>
2245
2246 * complaints.h (stop_whining): Declare at top-level.
2247 (complaint): Don't declare stop_whining.
2248
d41b524f
TT
22492020-04-08 Tom Tromey <tromey@adacore.com>
2250
2251 * windows-nat.c (windows_nat::handle_output_debug_string):
2252 Rename. No longer static.
2253 * nat/windows-nat.h (handle_output_debug_string): Declare.
2254
3c76026d
TT
22552020-04-08 Tom Tromey <tromey@adacore.com>
2256
2257 * windows-nat.c (current_process_handle, current_process_id)
2258 (main_thread_id, last_sig, current_event, last_wait_event)
2259 (current_windows_thread, desired_stop_thread_id, pending_stops)
2260 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
2261 (display_selectors, fake_create_process)
2262 (get_windows_debug_event): Update.
2263 * nat/windows-nat.h (current_process_handle, current_process_id)
2264 (main_thread_id, last_sig, current_event, last_wait_event)
2265 (current_windows_thread, desired_stop_thread_id, pending_stops)
2266 (struct pending_stop, siginfo_er): Move from windows-nat.c.
2267 * nat/windows-nat.c (current_process_handle, current_process_id)
2268 (main_thread_id, last_sig, current_event, last_wait_event)
2269 (current_windows_thread, desired_stop_thread_id, pending_stops)
2270 (siginfo_er): New globals. Move from windows-nat.c.
2271
9d8679cc
TT
22722020-04-08 Tom Tromey <tromey@adacore.com>
2273
2274 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
2275 (handle_load_dll): Update.
2276 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
2277
28688adf
TT
22782020-04-08 Tom Tromey <tromey@adacore.com>
2279
2280 * windows-nat.c (enum thread_disposition_type): Move to
2281 nat/windows-nat.h.
2282 (windows_nat::thread_rec): Rename from thread_rec. No longer
2283 static.
2284 (windows_add_thread, windows_nat_target::fetch_registers)
2285 (windows_nat_target::store_registers, handle_exception)
2286 (windows_nat_target::resume, get_windows_debug_event)
2287 (windows_nat_target::get_tib_address)
2288 (windows_nat_target::thread_name)
2289 (windows_nat_target::thread_alive): Update.
2290 * nat/windows-nat.h (enum thread_disposition_type): Move from
2291 windows-nat.c.
2292 (thread_rec): Declare.
2293
4834dad0
TT
22942020-04-08 Tom Tromey <tromey@adacore.com>
2295
2296 * windows-nat.c: Add "using namespace".
2297 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
2298 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
2299
65bafd5b
TT
23002020-04-08 Tom Tromey <tromey@adacore.com>
2301
2302 * nat/windows-nat.h (struct windows_thread_info): Declare
2303 destructor.
2304 * nat/windows-nat.c (~windows_thread_info): New.
2305
0a4afda3
TT
23062020-04-08 Tom Tromey <tromey@adacore.com>
2307
2308 PR gdb/22992
2309 * windows-nat.c (current_event): Update comment.
2310 (last_wait_event, desired_stop_thread_id): New globals.
2311 (struct pending_stop): New.
2312 (pending_stops): New global.
2313 (windows_nat_target) <stopped_by_sw_breakpoint>
2314 <supports_stopped_by_sw_breakpoint>: New methods.
2315 (windows_fetch_one_register): Add assertions. Adjust PC.
2316 (windows_continue): Handle pending stops. Suspend other threads
2317 when stepping. Use last_wait_event
2318 (wait_for_debug_event): New function.
2319 (get_windows_debug_event): Use wait_for_debug_event. Handle
2320 pending stops. Queue spurious stops.
2321 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
2322 (windows_nat_target::kill): Use wait_for_debug_event.
2323 * nat/windows-nat.h (struct windows_thread_info)
2324 <stopped_at_software_breakpoint>: New field.
2325 * nat/windows-nat.c (windows_thread_info::resume): Clear
2326 stopped_at_software_breakpoint.
2327
8e61ebec
TT
23282020-04-08 Tom Tromey <tromey@adacore.com>
2329
2330 * windows-nat.c (enum thread_disposition_type): New.
2331 (thread_rec): Replace "get_context" parameter with "disposition";
2332 change type.
2333 (windows_add_thread, windows_nat_target::fetch_registers)
2334 (windows_nat_target::store_registers, handle_exception)
2335 (windows_nat_target::resume, get_windows_debug_event)
2336 (windows_nat_target::get_tib_address)
2337 (windows_nat_target::thread_name)
2338 (windows_nat_target::thread_alive): Update.
2339
98a03287
TT
23402020-04-08 Tom Tromey <tromey@adacore.com>
2341
2342 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
2343 (windows_continue): Use windows_continue::resume.
2344 * nat/windows-nat.h (struct windows_thread_info) <suspend,
2345 resume>: Declare new methods.
2346 * nat/windows-nat.c: New file.
2347 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
2348
7c7411bc
TT
23492020-04-08 Tom Tromey <tromey@adacore.com>
2350
2351 * windows-nat.c (windows_add_thread, windows_delete_thread)
2352 (windows_nat_target::fetch_registers)
2353 (windows_nat_target::store_registers, fake_create_process)
2354 (windows_nat_target::resume, windows_nat_target::resume)
2355 (get_windows_debug_event, windows_nat_target::wait)
2356 (windows_nat_target::pid_to_str)
2357 (windows_nat_target::get_tib_address)
2358 (windows_nat_target::get_ada_task_ptid)
2359 (windows_nat_target::thread_name)
2360 (windows_nat_target::thread_alive): Use lwp, not tid.
2361
2950fdf7
TT
23622020-04-08 Tom Tromey <tromey@adacore.com>
2363
2364 * windows-nat.c (handle_exception)
2365 (windows_nat_target::thread_name): Update.
2366 * nat/windows-nat.h (windows_thread_info): Remove destructor.
2367 <name>: Now unique_xmalloc_ptr.
2368
62fe396b
TT
23692020-04-08 Tom Tromey <tromey@adacore.com>
2370
2371 * windows-nat.c (thread_rec)
2372 (windows_nat_target::fetch_registers): Update.
2373 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
2374 Update comment.
2375 <debug_registers_changed, reload_context>: Now bool.
2376
e9534bd2
TT
23772020-04-08 Tom Tromey <tromey@adacore.com>
2378
2379 * windows-nat.c (windows_add_thread): Use new.
2380 (windows_init_thread_list, windows_delete_thread): Use delete.
2381 (get_windows_debug_event): Update.
2382 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
2383 destructor, and initializers.
2384
ae1f8880
TT
23852020-04-08 Tom Tromey <tromey@adacore.com>
2386
2387 * windows-nat.c (struct windows_thread_info): Remove.
2388 * nat/windows-nat.h: New file.
2389
55a1e039
TT
23902020-04-08 Tom Tromey <tromey@adacore.com>
2391
2392 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
2393 (thread_rec, windows_add_thread, windows_delete_thread)
2394 (windows_continue): Update.
2395
93366324
TT
23962020-04-08 Tom Tromey <tromey@adacore.com>
2397
2398 * windows-nat.c (struct windows_thread_info): Remove typedef.
2399 (thread_head): Remove.
2400 (thread_list): New global.
2401 (thread_rec, windows_add_thread, windows_init_thread_list)
2402 (windows_delete_thread, windows_continue): Update.
2403
0f2265e2
SM
24042020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
2405
2406 * windows-tdep.h (windows_init_abi): Add comment.
2407 (cygwin_init_abi): New declaration.
2408 * windows-tdep.c: Split signal enumeration in two, one for
2409 Windows and one for Cygwin.
2410 (windows_gdb_signal_to_target): Only deal with signal of the
2411 Windows OS ABI.
2412 (cygwin_gdb_signal_to_target): New function.
2413 (windows_init_abi): Rename to windows_init_abi_common, don't set
2414 gdb_signal_to_target gdbarch method. Add new new function with
2415 this name.
2416 (cygwin_init_abi): New function.
2417 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
2418 comment. Don't call windows_init_abi.
2419 (amd64_windows_init_abi): Add comment, call windows_init_abi.
2420 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
2421 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
2422 i386_windows_init_abi_common, don't call windows_init_abi. Add
2423 a new function of this name.
2424 (i386_cygwin_init_abi): New function.
2425 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
2426 OS ABI Cygwin.
2427
3810f182
SM
24282020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
2429
2430 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
2431 parameter.c.
2432 (dwarf2_read_gdb_index): Update.
2433
063f8e80
KR
24342020-04-07 Kamil Rytarowski <n54@gmx.com>
2435
2436 * nbsd-tdep.c: Include "objfiles.h".
2437 (nbsd_skip_solib_resolver): New.
2438 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
2439
85a9510c 24402020-04-07 Nitika Achra <Nitika.Achra@amd.com>
2441
2442 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
2443 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
2444 with DW_LLE_base_addressx are being emitted in DWARFv5.
2445 Add the newly added kind DW_LOC_OFFSET_PAIR also.
2446 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
2447 unsigned integer.
2448
9fc3eaae 24492020-04-07 Nitika Achra <Nitika.Achra@amd.com>
2450
2451 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
2452 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
2453 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
2454 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
2455 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
2456 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
2457 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
2458
2459
41144253 24602020-04-07 Nitika Achra <Nitika.Achra@amd.com>
2461
2462 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
2463 (read_loclist_index): New function definition.
2464 (lookup_loclist_base): New function definition.
2465 (read_loclist_header): New function definition.
2466 (dwarf2_cu): Add loclist_base and loclist_header field.
2467 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
2468 (read_full_die_1): Read the value of DW_AT_loclists_base.
2469 (read_attribute_reprocess): Handle DW_FORM_loclistx.
2470 (read_attribute_value): Handle DW_FORM_loclistx.
2471 (skip_one_die): Handle DW_FORM_loclistx.
2472 (loclist_header): New structure declaration.
2473 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
2474
9f4e76a4
SM
24752020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2476
2477 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
2478 constructor. Remove `addr` parameter from other constructor and
2479 add `per_cu` parameter.
2480 * dwarf2/read.c (create_partial_symtab): Update.
2481
25c11aca
TV
24822020-04-07 Tom de Vries <tdevries@suse.de>
2483
2484 PR symtab/25796
2485 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
2486 (partial_die_info::fixup): Inherit has_const_value.
2487
5707e24b
TV
24882020-04-07 Tom de Vries <tdevries@suse.de>
2489
2490 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
2491 symbols without address.
2492
05f00e22
KR
24932020-04-06 Kamil Rytarowski <n54@gmx.com>
2494
2495 * nbsd-nat.h (struct thread_info): Add forward declaration.
2496 (nbsd_nat_target::thread_alive): Add.
2497 (nbsd_nat_target::thread_name): Likewise.
2498 (nbsd_nat_target::update_thread_list): Likewise.
2499 (update_thread_list::post_attach): Likewise.
2500 (post_attach::pid_to_str): Likewise.
2501 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
2502 (nbsd_thread_lister): Add.
2503 (nbsd_nat_target::thread_alive): Likewise.
2504 (nbsd_nat_target::thread_name): Likewise.
2505 (nbsd_add_threads): Likewise.
2506 (update_thread_list::post_attach): Likewise.
2507 (nbsd_nat_target::update_thread_list): Likewise.
2508 (post_attach::pid_to_str): Likewise.
2509
6ee448cc
TT
25102020-04-06 Tom Tromey <tromey@adacore.com>
2511
2512 * ada-valprint.c (print_variant_part): Extract the variant field.
2513 (print_field_values): Use the field as the outer value when
2514 recursing.
2515
dea34e8c
TT
25162020-04-06 Tom Tromey <tromey@adacore.com>
2517
2518 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
2519 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
2520 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
2521 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
2522 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
2523
93689ce9
TT
25242020-04-06 Tom Tromey <tromey@adacore.com>
2525
2526 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
2527 TYPE_CODE_ERROR.
2528
79743962
KR
25292020-04-06 Kamil Rytarowski <n54@gmx.com>
2530
2531 * nbsd-tdep.c: Include "gdbarch.h".
2532 Define enum with NetBSD signal numbers.
2533 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
2534 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
2535 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
2536 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
2537 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
2538 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
2539 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
2540 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
2541 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
2542 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
2543 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
2544 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
2545
9e7c9a03
HD
25462020-04-03 Hannes Domani <ssbssa@yahoo.de>
2547
2548 PR gdb/25325
2549 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
2550
d9e49b61
TT
25512020-04-03 Tom Tromey <tromey@adacore.com>
2552
2553 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
2554 Read constant block.
2555
e0fc5c3f
SM
25562020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2557
2558 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
2559 (gdb_bfd_get_full_section_contents): New declaration.
2560 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
2561 * windows-tdep.c (is_linked_with_cygwin_dll): Use
2562 gdb_bfd_get_full_section_contents.
2563
e2ff18a0
SM
25642020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2565
2566 * exec.c (build_section_table): Replace internal_error with
2567 gdb_assert.
2568 (section_table_xfer_memory_partial): Likewise.
2569 * mdebugread.c (parse_partial_symbols): Likewise.
2570 * psymtab.c (lookup_partial_symbol): Likewise.
2571 * utils.c (wrap_here): Likewise.
2572
0830d301
TT
25732020-04-02 Tom Tromey <tromey@adacore.com>
2574
2575 * f-lang.c (build_fortran_types): Use arch_type to initialize
2576 builtin_complex_s32 in the TYPE_CODE_ERROR case.
2577
e7da7f8f
TT
25782020-04-02 Tom Tromey <tromey@adacore.com>
2579
2580 * dwarf2/read.c (partial_die_info::read): Do not create a vector
2581 of attributes.
2582
c90d28ac
AB
25832020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
2584 Bernd Edlinger <bernd.edlinger@hotmail.de>
2585 Tom Tromey <tromey@adacore.com>
2586
2587 * buildsym.c (buildsym_compunit::record_line): Remove
2588 deduplication code.
2589
1aa98955
TV
25902020-04-02 Tom de Vries <tdevries@suse.de>
2591
2592 PR ada/24671
2593 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
2594
d3214198
TV
25952020-04-02 Tom de Vries <tdevries@suse.de>
2596
2597 * dwarf2/read.c (dwarf2_gdb_index_functions,
2598 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
2599 NULL.
2600 * psymtab.c (psym_lookup_global_symbol_language): New function.
2601 (psym_functions): Init psym_lookup_global_symbol_language with
2602 psym_lookup_global_symbol_language.
2603 * symfile-debug.c (debug_sym_quick_functions): Init
2604 lookup_global_symbol_language with NULL.
2605 * symfile.c (set_initial_language): Remove fixme comment.
2606 * symfile.h (struct quick_symbol_functions): Add
2607 lookup_global_symbol_language.
2608 * symtab.c (find_quick_global_symbol_language): New function.
2609 (find_main_name): Use find_quick_global_symbol_language.
2610
2836752f
SM
26112020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
2612
2613 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
2614
64dc2d4b
BE
26152020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
2616
2617 * buildsym.c (record_line): Fix undefined behavior and preserve
2618 lines at eof.
2619
bbe3dc41
BE
26202020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
2621
2622 * buildsym.c (record_line): Fix the resizing condition.
2623
6b4a335b
TT
26242020-04-01 Tom Tromey <tom@tromey.com>
2625
2626 * value.h (value_literal_complex): Add comment.
2627 * valops.c (value_literal_complex): Refer to value.h.
2628
3638a098
TT
26292020-04-01 Tom Tromey <tom@tromey.com>
2630
2631 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
2632 (scalar_type): New rule, from typebase.
2633 (typebase): Use scalar_type. Recognize complex types.
2634 (field_name): Handle FLOAT_KEYWORD.
2635 (ident_tokens): Add _Complex and __complex__.
2636
c34e8714
TT
26372020-04-01 Tom Tromey <tom@tromey.com>
2638
2639 PR exp/25299:
2640 * valarith.c (promotion_type, complex_binop): New functions.
2641 (scalar_binop): Handle complex numbers. Use promotion_type.
2642 (value_pos, value_neg, value_complement): Handle complex numbers.
2643
fa649bb7
TT
26442020-04-01 Tom Tromey <tom@tromey.com>
2645
2646 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
2647 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
2648 (parse_number): Handle complex numbers.
2649
981c08ce
TT
26502020-04-01 Tom Tromey <tom@tromey.com>
2651
2652 * c-valprint.c (c_decorations): Change complex suffix to "i".
2653
4c99290d
TT
26542020-04-01 Tom Tromey <tom@tromey.com>
2655
2656 * valprint.c (generic_value_print_complex): Use accessors.
2657 * value.h (value_real_part, value_imaginary_part): Declare.
2658 * valops.c (value_real_part, value_imaginary_part): New
2659 functions.
2660 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
2661
5b930b45
TT
26622020-04-01 Tom Tromey <tom@tromey.com>
2663
2664 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
2665 (read_range_type): Update.
2666 * mdebugread.c (basic_type): Update.
2667 * go-lang.c (build_go_types): Use init_complex_type.
2668 * gdbtypes.h (struct main_type) <complex_type>: New member.
2669 (init_complex_type): Update.
2670 (arch_complex_type): Don't declare.
2671 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
2672 Make name if none given. Use alloc_type_copy. Look for cached
2673 complex type.
2674 (arch_complex_type): Remove.
2675 (gdbtypes_post_init): Use init_complex_type.
2676 * f-lang.c (build_fortran_types): Use init_complex_type.
2677 * dwarf2/read.c (read_base_type): Update.
2678 * d-lang.c (build_d_types): Use init_complex_type.
2679 * ctfread.c (read_base_type): Update.
2680
53cccef1
TBA
26812020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2682
2683 * infrun.c (stop_all_threads): Update assertion, plus when
2684 stopping threads, take into account that we might be trying
2685 to stop an all-stop target.
2686 (stop_waiting): Call 'stop_all_threads' if there exists a
2687 non-stop target.
2688
a0714d30
TBA
26892020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2690
2691 * target.h (exists_non_stop_target): New function declaration.
2692 * target.c (exists_non_stop_target): New function.
2693
60e22c1e
HD
26942020-04-01 Hannes Domani <ssbssa@yahoo.de>
2695
2696 PR gdb/24789
2697 * eval.c (is_integral_or_integral_reference): New function.
2698 (evaluate_subexp_standard): Allow integer references in
2699 pointer arithmetic.
2700
e139a727
TBA
27012020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2702
2703 * remote.c (remote_target::remote_parse_stop_reply): Remove the
2704 check for no ptid in the stop reply when the target is non-stop.
2705
e0802d59
TT
27062020-04-01 Tom Tromey <tromey@adacore.com>
2707
2708 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
2709 "name" parameter to rvalue reference. Initialize m_name_holder.
2710 <lookup_name_info>: New overloads.
2711 <name>: Return gdb::string_view.
2712 <c_str>: New method.
2713 <make_ignore_params>: Update.
2714 <search_name_hash>: Update.
2715 <language_lookup_name>: Return const char *.
2716 <m_name>: Change type.
2717 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
2718 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
2719 (lookup_name_info::match_any): Update.
2720 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
2721 Update.
2722 * minsyms.c (linkage_name_str): Update.
2723 * language.c (default_symbol_name_matcher): Update.
2724 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
2725 Update.
2726 * ada-lang.c (ada_fold_name): Change parameter to string_view.
2727 (ada_lookup_name_info::ada_lookup_name_info): Update.
2728 (literal_symbol_name_matcher): Update.
2729
8c072cb6
TT
27302020-04-01 Tom Tromey <tromey@adacore.com>
2731
2732 * psymtab.c (psymtab_search_name): Remove function.
2733 (psym_lookup_symbol): Create search name and lookup name here.
2734 (lookup_partial_symbol): Remove "name" parameter; add
2735 lookup_name.
2736 (psym_expand_symtabs_for_function): Update.
2737
6f29a534
TT
27382020-03-31 Joel Jones <joelkevinjones@gmail.com>
2739
2740 PR tui/25597:
2741 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
2742
af62665e
TT
27432020-03-31 Tom Tromey <tromey@adacore.com>
2744
2745 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
2746 memcpy.
2747
d1a89da5
NC
27482020-03-30 Nelson Chu <nelson.chu@sifive.com>
2749
2750 * features/riscv/32bit-csr.xml: Regenerated.
2751 * features/riscv/64bit-csr.xml: Regenerated.
2752
d8af9068
TT
27532020-03-30 Tom Tromey <tromey@adacore.com>
2754
2755 * ada-valprint.c (print_variant_part): Update.
2756 * ada-lang.h (ada_which_variant_applies): Update.
2757 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
2758 outer_valaddr parameters; replace with "outer" value parameter.
2759 (to_fixed_variant_branch_type): Update.
2760
227c0bf4
PFC
27612020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2762
2763 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
2764 <list>. Remove inclusion of observable.h.
2765 (PPC_DEBUG_CURRENT_VERSION): Move up define.
2766 (struct arch_lwp_info): New struct.
2767 (class ppc_linux_dreg_interface): New class.
2768 (struct ppc_linux_process_info): New struct.
2769 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
2770 <low_new_clone, low_forget_process, low_prepare_to_resume>
2771 <copy_thread_dreg_state, mark_thread_stale>
2772 <mark_debug_registers_changed, register_hw_breakpoint>
2773 <clear_hw_breakpoint, register_wp, clear_wp>
2774 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
2775 <num_memory_accesses, get_trigger_type>
2776 <create_watchpoint_request, hwdebug_point_cmp>
2777 <init_arch_lwp_info, get_arch_lwp_info>
2778 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
2779 methods.
2780 <struct ptid_hash>: New inner struct.
2781 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
2782 members.
2783 (saved_dabr_value, hwdebug_info, max_slots_number)
2784 (struct hw_break_tuple, struct thread_points, ppc_threads)
2785 (have_ptrace_hwdebug_interface)
2786 (hwdebug_find_thread_points_by_tid)
2787 (hwdebug_insert_point, hwdebug_remove_point): Remove.
2788 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
2789 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
2790 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
2791 use m_dreg_interface.
2792 (hwdebug_point_cmp): Change to...
2793 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
2794 reference arguments instead of pointers.
2795 (ppc_linux_nat_target::ranged_break_num_registers): Use
2796 m_dreg_interface.
2797 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
2798 m_dreg_interface. Call register_hw_breakpoint.
2799 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
2800 m_dreg_interface. Call clear_hw_breakpoint.
2801 (get_trigger_type): Change to...
2802 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
2803 comment.
2804 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
2805 use m_dreg_interface. Call register_hw_breakpoint.
2806 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
2807 use m_dreg_interface. Call clear_hw_breakpoint.
2808 (can_use_watchpoint_cond_accel): Change to...
2809 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
2810 method. Update comment, use m_dreg_interface and
2811 m_process_info.
2812 (calculate_dvc): Change to...
2813 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
2814 m_dreg_interface.
2815 (num_memory_accesses): Change to...
2816 (ppc_linux_nat_target::num_memory_accesses): ...this method.
2817 (check_condition): Change to...
2818 (ppc_linux_nat_target::check_condition): ...this method.
2819 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
2820 comment, use m_dreg_interface.
2821 (create_watchpoint_request): Change to...
2822 (ppc_linux_nat_target::create_watchpoint_request): ...this
2823 method. Use m_dreg_interface.
2824 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
2825 m_dreg_interface. Call register_hw_breakpoint or register_wp.
2826 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
2827 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
2828 (ppc_linux_nat_target::low_forget_process)
2829 (ppc_linux_nat_target::low_new_fork)
2830 (ppc_linux_nat_target::low_new_clone)
2831 (ppc_linux_nat_target::low_delete_thread)
2832 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
2833 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
2834 only call mark_thread_stale.
2835 (ppc_linux_thread_exit): Remove.
2836 (ppc_linux_nat_target::stopped_data_address): Change to...
2837 (ppc_linux_nat_target::low_stopped_data_address): This. Add
2838 comment, use m_dreg_interface and m_thread_hw_breakpoints.
2839 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
2840 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
2841 comment. Call low_stopped_data_address.
2842 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
2843 m_dreg_interface.
2844 (ppc_linux_nat_target::masked_watch_num_registers): Use
2845 m_dreg_interface.
2846 (ppc_linux_nat_target::copy_thread_dreg_state)
2847 (ppc_linux_nat_target::mark_thread_stale)
2848 (ppc_linux_nat_target::mark_debug_registers_changed)
2849 (ppc_linux_nat_target::register_hw_breakpoint)
2850 (ppc_linux_nat_target::clear_hw_breakpoint)
2851 (ppc_linux_nat_target::register_wp)
2852 (ppc_linux_nat_target::clear_wp)
2853 (ppc_linux_nat_target::init_arch_lwp_info)
2854 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
2855 (_initialize_ppc_linux_nat): Remove observer callback.
2856
4db10d8f
PFC
28572020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2858
2859 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
2860 (ppc_linux_nat_target::auxv_parse)
2861 (ppc_linux_nat_target::read_description)
2862 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2863 Move up.
2864
1310c1b0
PFC
28652020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2866
2867 * linux-nat.h (low_new_clone): New method.
2868 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
2869
69b037c3
SM
28702020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
2871
2872 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
2873 (dbx_expand_psymtab): ... this.
2874 (start_psymtab): Update.
2875 * mdebugread.c (psymtab_to_symtab_1): Rename to...
2876 (mdebug_expand_psymtab): ... this.
2877 (parse_partial_symbols): Update.
2878 (new_psymtab): Update.
2879 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
2880 (xcoff_expand_psymtab): ... this.
2881 (xcoff_start_psymtab): Update.
2882
48993951
SM
28832020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
2884
2885 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
2886 <expand_dependencies>: ... this.
2887 * psymtab.c (partial_symtab::read_dependencies): Rename to...
2888 (partial_symtab::expand_dependencies): ... this.
2889 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
2890 Update.
2891 (dwarf2_psymtab::expand_psymtab): Update.
2892 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
2893 * mdebugread.c (psymtab_to_symtab_1): Update.
2894 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2895
3ad83046
SM
28962020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
2897
2898 * psympriv.h (discard_psymtab): Remove.
2899 * dbxread.c (dbx_end_psymtab): Update.
2900 * xcoffread.c (xcoff_end_psymtab): Update.
2901
4d1b9ab6
TT
29022020-03-28 Tom Tromey <tom@tromey.com>
2903
2904 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
2905 comment.
2906
f1749218
TT
29072020-03-28 Tom Tromey <tom@tromey.com>
2908
2909 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
2910
ebea7626
HD
29112020-03-27 Hannes Domani <ssbssa@yahoo.de>
2912
2913 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
2914
a879b4d5
JB
29152020-03-26 John Baldwin <jhb@FreeBSD.org>
2916
2917 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
2918
0826b30a
TT
29192020-03-26 Tom Tromey <tom@tromey.com>
2920
2921 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
2922 (mark_common_block_symbol_computed, read_tag_string_type)
2923 (attr_to_dynamic_prop, read_subrange_type): Update.
2924 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
2925 to be methods on struct attribute.
2926 (skip_one_die, process_imported_unit_die, read_namespace_alias)
2927 (read_call_site_scope, partial_die_info::read)
2928 (partial_die_info::read, lookup_die_type, follow_die_ref):
2929 Update.
2930 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
2931 from dwarf2_get_ref_die_offset.
2932 (attribute::constant_value): New method, from
2933 dwarf2_get_attr_constant_value.
2934 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
2935 Declare method.
2936 <constant_value>: New method.
2937
2b2558bf
TT
29382020-03-26 Tom Tromey <tom@tromey.com>
2939
2940 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
2941 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
2942 (dwarf_type_encoding_name): Move to stringify.c.
2943 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
2944 * dwarf2/stringify.c: New file.
2945 * dwarf2/stringify.h: New file.
2946
eeb64781
TT
29472020-03-26 Tom Tromey <tom@tromey.com>
2948
2949 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
2950 Rewrite.
2951
a39fdb41
TT
29522020-03-26 Tom Tromey <tom@tromey.com>
2953
2954 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
2955 methods.
2956 * dwarf2/read.c (lookup_addr_base): Move to die.h.
2957 (lookup_ranges_base): Likewise.
2958 (read_cutu_die_from_dwo, read_full_die_1): Update.
2959
436c571c
TT
29602020-03-26 Tom Tromey <tom@tromey.com>
2961
2962 * dwarf2/read.c (read_import_statement, read_file_scope)
2963 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
2964 (read_lexical_block_scope, read_call_site_scope)
2965 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
2966 (handle_struct_member_die, process_structure_scope)
2967 (update_enumeration_type_from_children)
2968 (process_enumeration_scope, read_array_type, read_common_block)
2969 (read_namespace, read_module, read_subroutine_type): Update.
2970 (sibling_die): Remove.
2971
052c8bb8
TT
29722020-03-26 Tom Tromey <tom@tromey.com>
2973
2974 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
2975 (build_type_psymtabs_reader, read_structure_type)
2976 (read_enumeration_type, read_full_die_1): Update.
2977 (dwarf2_attr_no_follow): Move to die.h.
2978 * dwarf2/die.h (struct die_info) <attr>: New method.
2979
2b24b6e4
TT
29802020-03-26 Tom Tromey <tom@tromey.com>
2981
2982 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
2983 <base_address>: Now an optional.
2984 (dwarf2_find_base_address, dwarf2_rnglists_process)
2985 (dwarf2_ranges_process, fill_in_loclist_baton)
2986 (dwarf2_symbol_mark_computed): Update.
2987
c2d50fd0
TT
29882020-03-26 Tom Tromey <tom@tromey.com>
2989
2990 * dwarf2/read.c (struct die_info): Move to die.h.
2991 * dwarf2/die.h: New file.
2992
0df7ad3a
TT
29932020-03-26 Tom Tromey <tom@tromey.com>
2994
2995 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
2996 * dwarf2/read.c
2997 (dwarf2_statement_list_fits_in_line_number_section_complaint):
2998 Move to line-header.c.
2999 (read_checked_initial_length_and_offset, read_formatted_entries):
3000 Likewise.
3001 (dwarf_decode_line_header): Split into two.
3002 * dwarf2/line-header.c
3003 (dwarf2_statement_list_fits_in_line_number_section_complaint):
3004 Move from read.c.
3005 (read_checked_initial_length_and_offset, read_formatted_entries):
3006 Likewise.
3007 (dwarf_decode_line_header): New function, split from read.c.
3008
86c0bb4c
TT
30092020-03-26 Tom Tromey <tom@tromey.com>
3010
3011 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
3012 Declare method.
3013 * dwarf2/read.c (read_attribute_value): Update.
3014 (dwarf2_per_objfile::read_line_string): Rename from
3015 read_indirect_line_string.
3016 (read_formatted_entries): Update.
3017
2ef46c2f
TT
30182020-03-26 Tom Tromey <tom@tromey.com>
3019
3020 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
3021 variable.
3022
4f9c1eda
TT
30232020-03-26 Tom Tromey <tom@tromey.com>
3024
3025 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
3026 const.
3027 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
3028 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
3029 parameter const.
3030
5a0e026f
TT
30312020-03-26 Tom Tromey <tom@tromey.com>
3032
3033 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
3034 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
3035 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
3036 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
3037
8844c11b
TT
30382020-03-26 Tom Tromey <tom@tromey.com>
3039
3040 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
3041 file_names_size, file_full_name, file_file_name>: Use const.
3042 <file_name_at, file_names>: Add const overload.
3043 * dwarf2/line-header.c (line_header::file_file_name)
3044 (line_header::file_full_name): Update.
3045
c90ec28a
TT
30462020-03-26 Tom Tromey <tom@tromey.com>
3047
3048 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
3049 (macro_start_file, consume_improper_spaces)
3050 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
3051 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
3052 (dwarf_decode_macros): Move to macro.c.
3053 * dwarf2/macro.c: New file.
3054 * dwarf2/macro.h: New file.
3055 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
3056
4f44ae6c
TT
30572020-03-26 Tom Tromey <tom@tromey.com>
3058
3059 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
3060 method.
3061 * dwarf2/section.c: New method. From
3062 read_indirect_string_at_offset_from.
3063 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
3064 (read_indirect_string_at_offset_from): Move to section.c.
3065 (read_indirect_string_at_offset): Rewrite.
3066 (read_indirect_line_string_at_offset): Remove.
3067 (read_indirect_string, read_indirect_line_string)
3068 (dwarf_decode_macro_bytes): Update.
3069
a0194fa8
TT
30702020-03-26 Tom Tromey <tom@tromey.com>
3071
3072 * dwarf2/section.h (struct dwarf2_section_info)
3073 <overload_complaint>: Declare.
3074 (dwarf2_section_buffer_overflow_complaint): Don't declare.
3075 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
3076 Rename from dwarf2_section_buffer_overflow_complaint.
3077 * dwarf2/read.c (skip_one_die, partial_die_info::read)
3078 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
3079
3d27bbdb
TT
30802020-03-26 Tom Tromey <tom@tromey.com>
3081
3082 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
3083 Declare.
3084 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
3085 Move from read.c.
3086 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
3087 to section.c.
3088
9eac9650
TT
30892020-03-26 Tom Tromey <tom@tromey.com>
3090
3091 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
3092
bf80d710
TT
30932020-03-26 Tom Tromey <tom@tromey.com>
3094
3095 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
3096 "builder".
3097 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
3098 parameter.
3099 (dwarf_decode_macros): Update.
3100
0314b390
TT
31012020-03-26 Tom Tromey <tom@tromey.com>
3102
3103 * dwarf2/read.c (read_attribute_value): Update.
3104 (read_indirect_string_from_dwz): Move to dwz.c; change into
3105 method.
3106 (dwarf_decode_macro_bytes): Update.
3107 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
3108 * dwarf2/dwz.c: New file.
3109 * Makefile.in (COMMON_SFILES): Add dwz.c.
3110
9fda78b6
TT
31112020-03-26 Tom Tromey <tom@tromey.com>
3112
3113 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
3114 * dwarf2/read.c: Add include.
3115 * dwarf2/index-write.c: Add include.
3116 * dwarf2/index-cache.c: Add include.
3117 * dwarf2/dwz.h: New file.
3118
33aa3c10
TT
31192020-03-25 Tom Tromey <tom@tromey.com>
3120
3121 * compile/compile-object-load.c (get_out_value_type): Mention
3122 correct symbol name in error message.
3123
d503b685
HD
31242020-03-25 Hannes Domani <ssbssa@yahoo.de>
3125
3126 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
3127
7b1eff95
TV
31282020-03-25 Tom de Vries <tdevries@suse.de>
3129
3130 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
3131 * symmisc.c (dump_symtab_1): Print user and includes fields.
3132 (maintenance_info_symtabs): Same.
3133
dd895392
AB
31342020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
3135
3136 PR gdb/25534
3137 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
3138 (riscv_regcache_cooked_write): New function.
3139 (riscv_push_dummy_call): Use new function.
3140 (riscv_return_value): Likewise.
3141
5ab2fbf1
SM
31422020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
3143
3144 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
3145 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
3146 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
3147 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
3148 * infrun.c (follow_fork): Likewise.
3149 (follow_fork_inferior): Likewise.
3150 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
3151 * linux-nat.h (class linux_nat_target): Likewise.
3152 * remote.c (class remote_target) <follow_fork>: Likewise.
3153 (remote_target::follow_fork): Likewise.
3154 * target-delegates.c: Re-generate.
3155 * target.c (default_follow_fork): Likewise.
3156 (target_follow_fork): Likewise.
3157 * target.h (struct target_ops) <follow_fork>: Likewise.
3158 (target_follow_fork): Likewise.
3159
a64fafb5
TV
31602020-03-24 Tom de Vries <tdevries@suse.de>
3161
3162 * psymtab.c (maintenance_info_psymtabs): Print user field.
3163
fe26d3a3
TT
31642020-03-20 Tom Tromey <tromey@adacore.com>
3165
3166 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
3167 const.
3168 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
3169 const.
3170
c884cc46
SM
31712020-03-20 Simon Marchi <simon.marchi@efficios.com>
3172
3173 * ptrace.m4: Don't check for ptrace declaration.
3174 * config.in: Re-generate.
3175 * configure: Re-generate.
3176 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
3177 not defined.
3178
1ff700c2
KR
31792020-03-20 Kamil Rytarowski <n54@gmx.com>
3180
3181 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
3182 `PTRACE_TYPE_RET'.
3183 * i386-bsd-nat.c (gdb_ptrace): Likewise.
3184 * sparc-nat.c (gdb_ptrace): Likewise.
3185 * x86-bsd-nat.c (gdb_ptrace): Likewise.
3186
f7d4f0b1
TT
31872020-03-20 Tom Tromey <tromey@adacore.com>
3188
3189 * c-exp.y (lex_one_token): Fix assert.
3190
f67210ff
TT
31912020-03-20 Tom Tromey <tromey@adacore.com>
3192
3193 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
3194 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
3195 strncpy call.
3196
1773be9e
TT
31972020-03-20 Tom Tromey <tromey@adacore.com>
3198
3199 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
3200
70304be9
TT
32012020-03-20 Tom Tromey <tromey@adacore.com>
3202
3203 * ada-valprint.c (print_variant_part): Remove parameters; switch
3204 to value-based API.
3205 (print_field_values): Likewise.
3206 (ada_val_print_struct_union): Likewise.
3207 (ada_value_print_1): Update.
3208
9faa006d
KR
32092020-03-20 Kamil Rytarowski <n54@gmx.com>
3210
3211 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
3212 nbsd_nat_target instead of inf_ptrace_target.
3213 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
3214 nbsd_nat_target.
3215
4a90f062
KR
32162020-03-20 Kamil Rytarowski <n54@gmx.com>
3217
3218 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
3219 it to the ptrace call.
3220 * (store_registers): Likewise.
3221
32222020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
3223
3224 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
3225 it to the ptrace call.
3226 * (store_registers): Likewise.
3227
2d07da27
LM
32282020-03-19 Luis Machado <luis.machado@linaro.org>
3229
3230 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
3231 valid, fetch vg value from ptrace.
3232
f09db380
KR
32332020-03-19 Kamil Rytarowski <n54@gmx.com>
3234 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
3235 * inf-ptrace.c: Likewise.
3236 * (gdb_ptrace): Add.
3237 * (inf_ptrace_target::resume): Update.
3238 * (inf_ptrace_target::xfer_partial): Likewise.
3239 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
3240 * (inf_ptrace_peek_poke): Update.
3241
fcc7376e
KR
32422020-03-19 Kamil Rytarowski <n54@gmx.com>
3243
3244 * x86-bsd-nat.c (gdb_ptrace): New.
3245 * (x86bsd_dr_set): Add new argument `ptid'.
3246 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
3247 x86bsd_dr_set_addr): Update.
3248
cada5fc9
AB
32492020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
3250
3251 * remote.c (remote_target::process_stop_reply): Handle events for
3252 all threads differently.
3253
19a2740f
AB
32542020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
3255
3256 * completer.c (completion_tracker::remove_completion): Define new
3257 function.
3258 * completer.h (completion_tracker::remove_completion): Declare new
3259 function.
3260 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
3261 when adding a C++ function symbol.
3262
724fd9ba
AB
32632020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
3264
3265 * completer.c (completion_tracker::completion_hash_entry): Define
3266 new class.
3267 (advance_to_filename_complete_word_point): Call
3268 recompute_lowest_common_denominator.
3269 (completion_tracker::completion_tracker): Call discard_completions
3270 to setup the hash table.
3271 (completion_tracker::discard_completions): Allow for being called
3272 from the constructor, pass new equal function, and element deleter
3273 when constructing the hash table. Initialise new class member
3274 variables.
3275 (completion_tracker::maybe_add_completion): Remove use of
3276 m_entries_vec, and store more information into m_entries_hash.
3277 (completion_tracker::recompute_lcd_visitor): New function, most
3278 content taken from...
3279 (completion_tracker::recompute_lowest_common_denominator):
3280 ...here, this now just visits each item in the hash calling the
3281 above visitor.
3282 (completion_tracker::build_completion_result): Remove use of
3283 m_entries_vec, call recompute_lowest_common_denominator.
3284 * completer.h (completion_tracker::have_completions): Remove use
3285 of m_entries_vec.
3286 (completion_tracker::completion_hash_entry): Declare new class.
3287 (completion_tracker::recompute_lowest_common_denominator): Change
3288 function signature.
3289 (completion_tracker::recompute_lcd_visitor): Declare new function.
3290 (completion_tracker::m_entries_vec): Delete.
3291 (completion_tracker::m_entries_hash): Initialize to NULL.
3292 (completion_tracker::m_lowest_common_denominator_valid): New
3293 member variable.
3294 (completion_tracker::m_lowest_common_denominator_max_length): New
3295 member variable.
3296
5a82b8a1
KR
32972020-03-17 Kamil Rytarowski <n54@gmx.com>
3298
3299 * regformats/regdef.h: Put reg in gdb namespace.
3300
fb516a69
KR
33012020-03-17 Kamil Rytarowski <n54@gmx.com>
3302
3303 * i386-bsd-nat.c (gdb_ptrace): New.
3304 * (i386bsd_fetch_inferior_registers,
3305 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
3306 * (i386bsd_fetch_inferior_registers,
3307 i386bsd_store_inferior_registers) Use gdb_ptrace.
3308
1c0aa1fb
KR
33092020-03-17 Kamil Rytarowski <n54@gmx.com>
3310
3311 * amd64-bsd-nat.c (gdb_ptrace): New.
3312 * (amd64bsd_fetch_inferior_registers,
3313 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
3314 * (amd64bsd_fetch_inferior_registers,
3315 amd64bsd_store_inferior_registers) Use gdb_ptrace.
3316
5ccd2fb7
KR
33172020-03-17 Kamil Rytarowski <n54@gmx.com>
3318
3319 * user-regs.c (user_reg::read): Rename to...
3320 (user_reg::xread): ...this.
3321 * (append_user_reg): Rename argument `read' to `xread'.
3322 * (user_reg_add_builtin): Likewise.
3323 * (user_reg_add): Likewise.
3324 * (value_of_user_reg): Likewise.
3325
2108a63a
KR
33262020-03-17 Kamil Rytarowski <n54@gmx.com>
3327
3328 * sparc-nat.c (gdb_ptrace): New.
3329 * sparc-nat.c (sparc_fetch_inferior_registers)
3330 (sparc_store_inferior_registers) Remove obsolete comment.
3331 * sparc-nat.c (sparc_fetch_inferior_registers)
3332 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
3333 * sparc-nat.c (sparc_fetch_inferior_registers)
3334 (sparc_store_inferior_registers) Use gdb_ptrace.
3335
a225c9a8
KR
33362020-03-17 Kamil Rytarowski <n54@gmx.com>
3337
3338 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
3339 it to the ptrace call.
3340 * sh-nbsd-nat.c (store_registers): Likewise.
3341
98097623
KR
33422020-03-17 Kamil Rytarowski <n54@gmx.com>
3343
3344 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
3345 nbsd_nat_target instead of inf_ptrace_target.
3346 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
3347 nbsd_nat_target.
3348
9e38d619
KR
33492020-03-17 Kamil Rytarowski <n54@gmx.com>
3350
3351 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
3352
a2ecbe9f
KR
33532020-03-17 Kamil Rytarowski <n54@gmx.com>
3354
3355 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
3356 <sys/sysctl.h>.
3357 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
3358
58990295
TV
33592020-03-17 Tom de Vries <tdevries@suse.de>
3360
3361 PR gdb/23710
3362 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
3363 fields.
3364 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
3365 fields.
3366 (process_imported_unit_die): Skip import of c++ CUs.
3367
771dd3a8
TT
33682020-03-16 Tom Tromey <tom@tromey.com>
3369
3370 * p-valprint.c (pascal_object_print_value): Initialize
3371 base_value.
3372
817a7585
AK
33732020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
3374 Shahab Vahedi <shahab@synopsys.com>
3375
3376 * Makefile.in: Add arch/arc.o
3377 * configure.tgt: Likewise.
3378 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
3379 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 3380 (arc_read_description): New function to cache target descriptions.
817a7585
AK
3381 * arc-tdep.h (arc_read_description): Add proto type.
3382 * arch/arc.c: New file.
3383 * arch/arc.h: Likewise.
3384 * features/Makefile: Replace old target descriptions with new.
3385 * features/arc-arcompact.c: Remove.
3386 * features/arc-arcompact.xml: Likewise.
3387 * features/arc-v2.c: Likewise
3388 * features/arc-v2.xml: Likewise
3389 * features/arc/aux-arcompact.xml: New file.
3390 * features/arc/aux-v2.xml: Likewise.
3391 * features/arc/core-arcompact.xml: Likewise.
3392 * features/arc/core-v2.xml: Likewise.
3393 * features/arc/aux-arcompact.c: Generate.
3394 * features/arc/aux-v2.c: Likewise.
3395 * features/arc/core-arcompact.c: Likewise.
3396 * features/arc/core-v2.c: Likewise.
3397 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
3398
67430cd0
TT
33992020-03-16 Tom Tromey <tromey@adacore.com>
3400
3401 PR gdb/25663:
3402 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
3403 putting value into bcache.
3404
30efb6c7
SM
34052020-03-16 Simon Marchi <simon.marchi@efficios.com>
3406
3407 PR gdb/21500
3408 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
3409 to...
3410 (amd64_windows_init_abi_common): ... this. Don't set size of
3411 long type.
3412 (amd64_windows_init_abi): New function.
3413 (amd64_cygwin_init_abi): New function.
3414 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
3415 the Cygwin OS ABI.
3416 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
3417 comment.
3418
8db52437
SM
34192020-03-16 Simon Marchi <simon.marchi@efficios.com>
3420
3421 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
3422 * windows-tdep.c (CYGWIN_DLL_NAME): New.
3423 (pe_import_directory_entry): New struct type.
3424 (is_linked_with_cygwin_dll): New function.
3425 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
3426 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
3427 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
3428
5982a56a
SM
34292020-03-16 Simon Marchi <simon.marchi@efficios.com>
3430
3431 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
3432 i386_cygwin_core_osabi_sniffer.
3433
7a1998df
SM
34342020-03-16 Simon Marchi <simon.marchi@efficios.com>
3435
3436 * i386-cygwin-tdep.c: Rename to...
3437 * i386-windows-tdep.c: ... this.
3438 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
3439 i386-windows-tdep.c.
3440 * configure.tgt: Likewise.
3441
053205cc
SM
34422020-03-16 Simon Marchi <simon.marchi@efficios.com>
3443
3444 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
3445 * osabi.c (gdb_osabi_names): Add "Windows".
3446 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
3447 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
3448 (i386_cygwin_core_osabi_sniffer): New function, extracted from
3449 i386_cygwin_osabi_sniffer.
3450 (_initialize_i386_cygwin_tdep): Register OS ABI
3451 GDB_OSABI_WINDOWS for i386.
3452 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
3453 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
3454 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
3455 for x86-64.
3456 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
3457 when the target matches '*-*-mingw*'.
3458
fe4b2ee6
SM
34592020-03-16 Simon Marchi <simon.marchi@efficios.com>
3460
3461 * defs.h (enum gdb_osabi): Move to...
3462 * osabi.h (enum gdb_osabi): ... here.
3463 * gdbarch.sh: Include osabi.h in gdbarch.h.
3464 * gdbarch.h: Re-generate.
3465
cb9b645d
SM
34662020-03-16 Simon Marchi <simon.marchi@efficios.com>
3467
3468 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
3469 function.
3470 (_initialize_amd64_windows_tdep): Register osabi sniffer.
3471
3293bbaf
TT
34722020-03-14 Tom Tromey <tom@tromey.com>
3473
3474 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
3475 for C++.
3476 (c_type_print_modifier): Likewise. Add "language" parameter.
3477 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
3478 (c_type_print_base_1): Update.
3479 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
3480 constants.
3481 * type-stack.c (type_stack::insert): Handle tp_atomic and
3482 tp_restrict.
3483 (type_stack::follow_type_instance_flags): Likewise.
3484 (type_stack::follow_types): Likewise. Merge type-following code.
3485 * c-exp.y (RESTRICT, ATOMIC): New tokens.
3486 (space_identifier, cv_with_space_id)
3487 (const_or_volatile_or_space_identifier_noopt)
3488 (const_or_volatile_or_space_identifier): Remove.
3489 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
3490 rules.
3491 (ptr_operator, typebase): Update.
3492 (enum token_flag) <FLAG_C>: New constant.
3493 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
3494 "_Atomic".
3495 (lex_one_token): Handle FLAG_C.
3496
154151a6
KR
34972020-03-14 Kamil Rytarowski <n54@gmx.com>
3498
3499 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
3500 it to the ptrace call.
3501 * m68k-bsd-nat.c (store_registers): Likewise.
3502
bc107784
KR
35032020-03-14 Kamil Rytarowski <n54@gmx.com>
3504
3505 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
3506 gdb_byte *.
3507 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
3508 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
3509 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
3510
01a80117
KR
35112020-03-14 Kamil Rytarowski <n54@gmx.com>
3512
3513 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
3514 nbsd_nat_target instead of inf_ptrace_target.
3515 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
3516 nbsd_nat_target.
3517
f90280ca
KR
35182020-03-14 Kamil Rytarowski <n54@gmx.com>
3519
3520 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
3521 register_t.
3522
6def66f1
KR
35232020-03-14 Kamil Rytarowski <n54@gmx.com>
3524
3525 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
3526 it to the ptrace call.
3527 * alpha-bsd-nat.c (store_registers): Likewise.
3528
66eaca97
KR
35292020-03-14 Kamil Rytarowski <n54@gmx.com>
3530
3531 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
3532 includes.
3533 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
3534 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
3535 fill_fpregset): Likewise.
3536
4fed520b
KR
35372020-03-14 Kamil Rytarowski <n54@gmx.com>
3538
3539 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
3540 nbsd_nat_target instead of inf_ptrace_target.
3541 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
3542 nbsd_nat_target.
3543
2190cf06
KR
35442020-03-14 Kamil Rytarowski <n54@gmx.com>
3545
3546 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
3547 register_t.
3548
75c56d3d
KR
35492020-03-14 Kamil Rytarowski <n54@gmx.com>
3550
3551 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
3552 it to the ptrace call.
3553 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
3554 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
3555 * arm-nbsd-nat.c (store_register): Likewise.
3556 * arm-nbsd-nat.c (store_regs): Likewise.
3557 * arm-nbsd-nat.c (store_fp_register): Likewise.
3558 * arm-nbsd-nat.c (store_fp_regs): Likewise.
3559
6018d381
KR
35602020-03-14 Kamil Rytarowski <n54@gmx.com>
3561
3562 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
3563 nbsd_nat_target instead of inf_ptrace_target.
3564 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
3565 nbsd_nat_target.
3566
013f99f0
KR
35672020-03-14 Kamil Rytarowski <n54@gmx.com>
3568
3569 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
3570 it to the ptrace call.
3571 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
3572
12753073
KR
35732020-03-14 Kamil Rytarowski <n54@gmx.com>
3574
6227b330
KR
3575 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
3576 it to the ptrace call.
3577 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
3578
35792020-03-14 Kamil Rytarowski <n54@gmx.com>
3580
3581 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
3582 gdb_byte *.
12753073
KR
3583 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
3584
d5be5fa4
KR
35852020-03-14 Kamil Rytarowski <n54@gmx.com>
3586
3587 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
3588 instead of inf_ptrace_target.
3589 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
3590 nbsd_nat_target.
3591
8110f842
KR
35922020-03-14 Kamil Rytarowski <n54@gmx.com>
3593
3594 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
3595 register_t.
3596
52feded7
KR
35972020-03-14 Kamil Rytarowski <n54@gmx.com>
3598
3599 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
3600 register_t.
3601
25567eee
KR
36022020-03-14 Kamil Rytarowski <n54@gmx.com>
3603
3604 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
3605 register_t.
3606
426a9c18
TT
36072020-03-13 Tom Tromey <tom@tromey.com>
3608
3609 * value.h (val_print): Don't declare.
3610 * valprint.h (val_print_array_elements)
3611 (val_print_scalar_formatted, generic_val_print): Don't declare.
3612 * valprint.c (generic_val_print_array): Take a struct value.
3613 (generic_val_print_ptr, generic_val_print_memberptr)
3614 (generic_val_print_bool, generic_val_print_int)
3615 (generic_val_print_char, generic_val_print_complex)
3616 (generic_val_print): Remove.
3617 (generic_value_print): Update.
3618 (do_val_print): Remove unused parameters. Don't call
3619 la_val_print.
3620 (val_print): Remove.
3621 (common_val_print): Update. Don't call value_check_printable.
3622 (val_print_scalar_formatted, val_print_array_elements): Remove.
3623 * rust-lang.c (rust_val_print): Remove.
3624 (rust_language_defn): Update.
3625 * p-valprint.c (pascal_val_print): Remove.
3626 (pascal_value_print_inner): Update.
3627 (pascal_object_print_val_fields, pascal_object_print_val):
3628 Remove.
3629 (pascal_object_print_static_field): Update.
3630 * p-lang.h (pascal_val_print): Don't declare.
3631 * p-lang.c (pascal_language_defn): Update.
3632 * opencl-lang.c (opencl_language_defn): Update.
3633 * objc-lang.c (objc_language_defn): Update.
3634 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
3635 * m2-lang.h (m2_val_print): Don't declare.
3636 * m2-lang.c (m2_language_defn): Update.
3637 * language.h (struct language_defn) <la_val_print>: Remove.
3638 * language.c (unk_lang_value_print_inner): Rename. Change
3639 argument types.
3640 (unknown_language_defn, auto_language_defn): Update.
3641 * go-valprint.c (go_val_print): Remove.
3642 * go-lang.h (go_val_print): Don't declare.
3643 * go-lang.c (go_language_defn): Update.
3644 * f-valprint.c (f_val_print): Remove.
3645 * f-lang.h (f_value_print): Don't declare.
3646 * f-lang.c (f_language_defn): Update.
3647 * d-valprint.c (d_val_print): Remove.
3648 * d-lang.h (d_value_print): Don't declare.
3649 * d-lang.c (d_language_defn): Update.
3650 * cp-valprint.c (cp_print_value_fields)
3651 (cp_print_value_fields_rtti, cp_print_value): Remove.
3652 (cp_print_static_field): Update.
3653 * c-valprint.c (c_val_print_array, c_val_print_ptr)
3654 (c_val_print_struct, c_val_print_union, c_val_print_int)
3655 (c_val_print_memberptr, c_val_print): Remove.
3656 * c-lang.h (c_val_print_array, cp_print_value_fields)
3657 (cp_print_value_fields_rtti): Don't declare.
3658 * c-lang.c (c_language_defn, cplus_language_defn)
3659 (asm_language_defn, minimal_language_defn): Update.
3660 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
3661 (ada_val_print_enum): Take a struct value.
3662 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
3663 (ada_val_print): Remove.
3664 (ada_value_print_1): Update.
3665 (printable_val_type): Remove.
3666 * ada-lang.h (ada_val_print): Don't declare.
3667 * ada-lang.c (ada_language_defn): Update.
3668
42331a1e
TT
36692020-03-13 Tom Tromey <tom@tromey.com>
3670
3671 * valprint.c (do_val_print): Update.
3672 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
3673 a struct value.
3674 (value_to_value_object_no_release): Declare.
3675 * python/py-value.c (value_to_value_object_no_release): New
3676 function.
3677 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
3678 struct value.
3679 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
3680 function.
3681 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
3682 a struct value.
3683 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
3684 Declare.
3685 (gdbscm_apply_val_pretty_printer): Take a struct value.
3686 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
3687 value.
3688 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
3689 value.
3690 * extension-priv.h (struct extension_language_ops)
3691 <apply_val_pretty_printer>: Take a struct value.
3692 * cp-valprint.c (cp_print_value): Create a struct value.
3693 (cp_print_value): Update.
3694
3a916a97
TT
36952020-03-13 Tom Tromey <tom@tromey.com>
3696
3697 * ada-valprint.c (print_field_values): Call common_val_print.
3698
b59eac37
TT
36992020-03-13 Tom Tromey <tom@tromey.com>
3700
3701 * ada-valprint.c (val_print_packed_array_elements): Remove
3702 bitoffset and val parameters. Call common_val_print.
3703 (ada_val_print_string): Remove offset, address, and original_value
3704 parameters.
3705 (ada_val_print_array): Update.
3706 (ada_value_print_array): New function.
3707 (ada_value_print_1): Call it.
3708
03371129
TT
37092020-03-13 Tom Tromey <tom@tromey.com>
3710
3711 * ada-valprint.c (ada_value_print): Use common_val_print.
3712
2e088f8b
TT
37132020-03-13 Tom Tromey <tom@tromey.com>
3714
3715 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
3716
39ef85a8
TT
37172020-03-13 Tom Tromey <tom@tromey.com>
3718
3719 * ada-valprint.c (ada_value_print_num): New function.
3720 (ada_value_print_1): Use it.
3721
b9fa6e07
TT
37222020-03-13 Tom Tromey <tom@tromey.com>
3723
3724 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
3725
416595d6
TT
37262020-03-13 Tom Tromey <tom@tromey.com>
3727
3728 * ada-valprint.c (ada_value_print_ptr): New function.
3729 (ada_value_print_1): Use it.
3730
5b5e15ec
TT
37312020-03-13 Tom Tromey <tom@tromey.com>
3732
3733 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
3734 call common_val_print.
3735 (ada_val_print_1): Update.
3736 (ada_value_print_1): New function.
3737 (ada_value_print_inner): Rewrite.
3738
fbf54e75
TT
37392020-03-13 Tom Tromey <tom@tromey.com>
3740
3741 * cp-valprint.c (cp_print_value_fields): Update.
3742 (cp_print_value): New function.
3743
64b653ca
TT
37442020-03-13 Tom Tromey <tom@tromey.com>
3745
3746 * m2-valprint.c (m2_value_print_inner): Use
3747 cp_print_value_fields.
3748 * cp-valprint.c (cp_print_value_fields): New function.
3749 * c-valprint.c (c_value_print_struct): New function.
3750 (c_value_print_inner): Use c_value_print_struct.
3751 * c-lang.h (cp_print_value_fields): Declare.
3752
6999f067
TT
37532020-03-13 Tom Tromey <tom@tromey.com>
3754
3755 * c-valprint.c (c_value_print_array): New function.
3756 (c_value_print_inner): Use it.
3757
ce80b8bd
TT
37582020-03-13 Tom Tromey <tom@tromey.com>
3759
3760 * c-valprint.c (c_value_print_memberptr): New function.
3761 (c_value_print_inner): Use it.
3762
2faac269
TT
37632020-03-13 Tom Tromey <tom@tromey.com>
3764
3765 * c-valprint.c (c_value_print_int): New function.
3766 (c_value_print_inner): Use it.
3767
da3e2c29
TT
37682020-03-13 Tom Tromey <tom@tromey.com>
3769
3770 * c-valprint.c (c_value_print_ptr): New function.
3771 (c_value_print_inner): Use it.
3772
50836231
TT
37732020-03-13 Tom Tromey <tom@tromey.com>
3774
3775 * c-valprint.c (c_value_print_inner): Rewrite.
3776
4f412b6e
TT
37772020-03-13 Tom Tromey <tom@tromey.com>
3778
3779 * valprint.c (generic_value_print_complex): New function.
3780 (generic_value_print): Use it.
3781
f5354008
TT
37822020-03-13 Tom Tromey <tom@tromey.com>
3783
3784 * valprint.c (generic_val_print_float): Don't call
3785 val_print_scalar_formatted.
3786 (generic_val_print, generic_value_print): Update.
3787
3eec3b05
TT
37882020-03-13 Tom Tromey <tom@tromey.com>
3789
3790 * valprint.c (generic_value_print_char): New function
3791 (generic_value_print): Use it.
3792
fdddfccb
TT
37932020-03-13 Tom Tromey <tom@tromey.com>
3794
3795 * valprint.c (generic_value_print_int): New function.
3796 (generic_value_print): Use it.
3797
6dde7521
TT
37982020-03-13 Tom Tromey <tom@tromey.com>
3799
3800 * valprint.c (generic_value_print_bool): New function.
3801 (generic_value_print): Use it.
3802
4112d2e6
TT
38032020-03-13 Tom Tromey <tom@tromey.com>
3804
3805 * valprint.c (generic_val_print_func): Simplify.
3806 (generic_val_print, generic_value_print): Update.
3807
65786af6
TT
38082020-03-13 Tom Tromey <tom@tromey.com>
3809
3810 * valprint.c (generic_val_print_flags): Remove.
3811 (generic_val_print, generic_value_print): Update.
3812 (val_print_type_code_flags): Add original_value parameter.
3813
40f3ce18
TT
38142020-03-13 Tom Tromey <tom@tromey.com>
3815
3816 * valprint.c (generic_val_print): Update.
3817 (generic_value_print): Update.
3818 * valprint.c (generic_val_print_enum): Don't call
3819 val_print_scalar_formatted.
3820
2a5b130b
TT
38212020-03-13 Tom Tromey <tom@tromey.com>
3822
3823 * valprint.c (generic_value_print): Call generic_value_print_ptr.
3824 * valprint.c (generic_value_print_ptr): New function.
3825
abc66ce9
TT
38262020-03-13 Tom Tromey <tom@tromey.com>
3827
3828 * valprint.c (generic_value_print): Rewrite.
3829
07a32858
TT
38302020-03-13 Tom Tromey <tom@tromey.com>
3831
3832 * p-valprint.c (pascal_object_print_value_fields)
3833 (pascal_object_print_value): New functions.
3834
64d64d3a
TT
38352020-03-13 Tom Tromey <tom@tromey.com>
3836
3837 * p-valprint.c (pascal_value_print_inner): Rewrite.
3838
6a95a1f5
TT
38392020-03-13 Tom Tromey <tom@tromey.com>
3840
3841 * f-valprint.c (f_value_print_innner): Rewrite.
3842
59fcdac6
TT
38432020-03-13 Tom Tromey <tom@tromey.com>
3844
3845 * m2-valprint.c (m2_print_unbounded_array): New overload.
3846 (m2_print_unbounded_array): Update.
3847 (m2_print_array_contents): Take a struct value.
3848 (m2_value_print_inner): Rewrite.
3849
d133c3e1
TT
38502020-03-13 Tom Tromey <tom@tromey.com>
3851
3852 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
3853 (d_value_print_inner): New function.
3854 * d-lang.h (d_value_print_inner): Declare.
3855 * d-lang.c (d_language_defn): Use d_value_print_inner.
3856
23b0f06b
TT
38572020-03-13 Tom Tromey <tom@tromey.com>
3858
3859 * go-valprint.c (go_value_print_inner): New function.
3860 * go-lang.h (go_value_print_inner): Declare.
3861 * go-lang.c (go_language_defn): Use go_value_print_inner.
3862
5f56f7cb
TT
38632020-03-13 Tom Tromey <tom@tromey.com>
3864
3865 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
3866 API.
3867 (rust_val_print): Rewrite.
3868 (rust_value_print_inner): New function, from rust_val_print.
3869 (rust_language_defn): Use rust_value_print_inner.
3870
26792ee0
TT
38712020-03-13 Tom Tromey <tom@tromey.com>
3872
3873 * ada-valprint.c (ada_value_print_inner): New function.
3874 * ada-lang.h (ada_value_print_inner): Declare.
3875 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
3876
24051bbe
TT
38772020-03-13 Tom Tromey <tom@tromey.com>
3878
3879 * f-valprint.c (f_value_print_innner): New function.
3880 * f-lang.h (f_value_print_innner): Declare.
3881 * f-lang.c (f_language_defn): Use f_value_print_innner.
3882
c0941be6
TT
38832020-03-13 Tom Tromey <tom@tromey.com>
3884
3885 * p-valprint.c (pascal_value_print_inner): New function.
3886 * p-lang.h (pascal_value_print_inner): Declare.
3887 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
3888
62c4663d
TT
38892020-03-13 Tom Tromey <tom@tromey.com>
3890
3891 * m2-valprint.c (m2_value_print_inner): New function.
3892 * m2-lang.h (m2_value_print_inner): Declare.
3893 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
3894
62182190
TT
38952020-03-13 Tom Tromey <tom@tromey.com>
3896
3897 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
3898 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
3899 * c-valprint.c (c_value_print_inner): New function.
3900 * c-lang.h (c_value_print_inner): Declare.
3901 * c-lang.c (c_language_defn, cplus_language_defn)
3902 (asm_language_defn, minimal_language_defn): Use
3903 c_value_print_inner.
3904
1e592a8a
TT
39052020-03-13 Tom Tromey <tom@tromey.com>
3906
3907 * p-valprint.c (pascal_object_print_value_fields): Now static.
3908 * p-lang.h (pascal_object_print_value_fields): Don't declare.
3909
7fe471e9
TT
39102020-03-13 Tom Tromey <tom@tromey.com>
3911
3912 * c-valprint.c (c_val_print_array): Simplify.
3913
d121c6ce
TT
39142020-03-13 Tom Tromey <tom@tromey.com>
3915
3916 * valprint.c (value_print_array_elements): New function.
3917 * valprint.h (value_print_array_elements): Declare.
3918
4dba70ee
TT
39192020-03-13 Tom Tromey <tom@tromey.com>
3920
3921 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
3922 * mips-tdep.c (mips_print_register): Use
3923 value_print_scalar_formatted.
3924
4f9ae810
TT
39252020-03-13 Tom Tromey <tom@tromey.com>
3926
3927 * valprint.h (value_print_scalar_formatted): Declare.
3928 * valprint.c (value_print_scalar_formatted): New function.
3929
156bfec9
TT
39302020-03-13 Tom Tromey <tom@tromey.com>
3931
3932 * valprint.h (generic_value_print): Declare.
3933 * valprint.c (generic_value_print): New function.
3934
2b4e573d
TT
39352020-03-13 Tom Tromey <tom@tromey.com>
3936
3937 * valprint.c (do_val_print): Call la_value_print_inner, if
3938 available.
3939 * rust-lang.c (rust_language_defn): Update.
3940 * p-lang.c (pascal_language_defn): Update.
3941 * opencl-lang.c (opencl_language_defn): Update.
3942 * objc-lang.c (objc_language_defn): Update.
3943 * m2-lang.c (m2_language_defn): Update.
3944 * language.h (struct language_defn) <la_value_print_inner>: New
3945 member.
3946 * language.c (unknown_language_defn, auto_language_defn): Update.
3947 * go-lang.c (go_language_defn): Update.
3948 * f-lang.c (f_language_defn): Update.
3949 * d-lang.c (d_language_defn): Update.
3950 * c-lang.c (c_language_defn, cplus_language_defn)
3951 (asm_language_defn, minimal_language_defn): Update.
3952 * ada-lang.c (ada_language_defn): Update.
3953
a1f6a07c
TT
39542020-03-13 Tom Tromey <tom@tromey.com>
3955
3956 * c-valprint.c (c_value_print): Use common_val_print.
3957
410cf315
TT
39582020-03-13 Tom Tromey <tom@tromey.com>
3959
3960 * cp-valprint.c (cp_print_static_field): Use common_val_print.
3961
72a45c93
TT
39622020-03-13 Tom Tromey <tom@tromey.com>
3963
3964 * f-valprint.c (f77_print_array_1, f_val_print): Use
3965 common_val_print.
3966
040f66bd
TT
39672020-03-13 Tom Tromey <tom@tromey.com>
3968
3969 * riscv-tdep.c (riscv_print_one_register_info): Use
3970 common_val_print.
3971
a6e05a6c
TT
39722020-03-13 Tom Tromey <tom@tromey.com>
3973
3974 * mi/mi-main.c (output_register): Use common_val_print.
3975
3444c526
TT
39762020-03-13 Tom Tromey <tom@tromey.com>
3977
3978 * infcmd.c (default_print_one_register_info): Use
3979 common_val_print.
3980
c2a44efe
TT
39812020-03-13 Tom Tromey <tom@tromey.com>
3982
3983 * valprint.h (common_val_print_checked): Declare.
3984 * valprint.c (common_val_print_checked): New function.
3985 * stack.c (print_frame_arg): Use common_val_print_checked.
3986
b0c26e99
TT
39872020-03-13 Tom Tromey <tom@tromey.com>
3988
3989 * valprint.c (do_val_print): New function, from val_print.
3990 (val_print): Use do_val_print.
3991 (common_val_print): Use do_val_print.
3992
ce3acbe9
TT
39932020-03-13 Tom Tromey <tom@tromey.com>
3994
3995 * valprint.c (value_print): Use scoped_value_mark.
3996
96c7f873
TV
39972020-03-13 Tom de Vries <tdevries@suse.de>
3998
3999 PR symtab/25646
4000 * psymtab.c (partial_symtab::partial_symtab): Don't set
4001 globals_offset and statics_offset. Push element onto
4002 current_global_psymbols and current_static_psymbols stacks.
4003 (concat): New function.
4004 (end_psymtab_common): Set globals_offset and statics_offset. Pop
4005 element from current_global_psymbols and current_static_psymbols
4006 stacks. Concat popped elements to global_psymbols and
4007 static_symbols.
4008 (add_psymbol_to_list): Use current_global_psymbols and
4009 current_static_psymbols stacks.
4010 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
4011 current_static_psymbols fields.
4012
6ba0a321
CB
40132020-03-12 Christian Biesinger <cbiesinger@google.com>
4014
4015 * corelow.c (sniff_core_bfd): Remove.
4016 (class core_target) <m_core_vec>: Remove.
4017 (core_target::core_target): Update.
4018 (core_file_fns): Remove.
4019 (deprecated_add_core_fns): Remove.
4020 (default_core_sniffer): Remove.
4021 (sniff_core_bfd): Remove.
4022 (default_check_format): Remove.
4023 (gdb_check_format): Remove.
4024 (core_target_open): Update.
4025 (core_target::get_core_register_section): Update.
4026 (get_core_registers_cb): Update.
4027 (core_target::fetch_registers): Update.
4028 * gdbcore.h (struct core_fns): Remove.
4029 (deprecated_add_core_fns): Remove.
4030 (default_core_sniffer): Remove.
4031 (default_check_format): Remove.
4032
227031b2
TT
40332020-03-12 Tom Tromey <tom@tromey.com>
4034
4035 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
4036 CORE_ADDR.
4037 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
4038
53807e9f
TT
40392020-03-12 Tom Tromey <tom@tromey.com>
4040
4041 * remote.c (remote_target::download_tracepoint)
4042 (remote_target::enable_tracepoint)
4043 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
4044 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
4045 sprintf_vma.
4046
64f25102
TT
40472020-03-12 Tom Tromey <tom@tromey.com>
4048
4049 * symfile-mem.c: Update CORE_ADDR size assert.
4050
272cd5a3
SM
40512020-03-12 Simon Marchi <simon.marchi@efficios.com>
4052
4053 * selftest.m4: Move to gdbsupport/.
4054 * acinclude.m4: Update path to selftest.m4.
4055
74cd3f9d
SM
40562020-03-12 Simon Marchi <simon.marchi@efficios.com>
4057
4058 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
4059 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
4060 gdbarch-selfselftests.c and selftest-arch.c.
4061 (SUBDIR_UNITTESTS_OBS): Rename to...
4062 (SELFTESTS_OBS): ... this.
4063 (COMMON_SFILES): Remove disasm-selftests.c and
4064 gdbarch-selftests.c.
4065 * configure.ac: Don't add selftest-arch.{c,o} to
4066 CONFIG_{SRCS,OBS}.
4067 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
4068 preprocessor conditions.
4069
db6878ac
SM
40702020-03-12 Simon Marchi <simon.marchi@efficios.com>
4071
4072 * configure.ac: Don't source bfd/development.sh.
4073 * selftest.m4: Modify comment.
4074 * configure: Re-generate.
4075
4d696a5c
SM
40762020-03-12 Simon Marchi <simon.marchi@efficios.com>
4077
4078 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
4079 not "true" or "false".
4080 * configure: Re-generate.
4081
8dd8e1c7
CB
40822020-03-12 Christian Biesinger <cbiesinger@google.com>
4083
4084 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
4085 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
4086 renamed to arm_nbsd_supply_gregset.
4087 (fetch_register): Update to call arm_nbsd_supply_gregset.
4088 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
4089 (arm_netbsd_nat_target::fetch_registers): Update.
4090 (fetch_elfcore_registers): Removed.
4091 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
4092 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
4093 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
4094 not require NetBSD system headers.
4095 (arm_nbsd_regset): New struct.
4096 (arm_nbsd_iterate_over_regset_sections): New function.
4097 (arm_netbsd_init_abi_common): Updated to call
4098 set_gdbarch_iterate_over_regset_sections.
4099 * arm-nbsd-tdep.h: New file.
4100
dd69bf7a
KB
41012020-03-11 Kevin Buettner <kevinb@redhat.com>
4102
4103 * symtab.c (find_pc_sect_line): Add check which prevents infinite
4104 recursion.
4105
a0761e34
SM
41062020-03-11 Simon Marchi <simon.marchi@efficios.com>
4107
4108 * configure: Re-generate.
4109
e7a82140
TT
41102020-03-11 Tom Tromey <tromey@adacore.com>
4111
4112 * ada-typeprint.c (print_choices): Fix comment.
4113
dcc050c8
AB
41142020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
4115
4116 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
4117 previous item in the list, when the list has no items.
4118
1c33af77
TV
41192020-03-11 Tom de Vries <tdevries@suse.de>
4120
4121 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
4122 PROP_LOCLIST handling code.
4123
8c95582d
AB
41242020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
4125
4126 * buildsym-legacy.c (record_line): Pass extra parameter to
4127 record_line.
4128 * buildsym.c (buildsym_compunit::record_line): Take an extra
4129 parameter, reduce duplication in the line table, and record the
4130 is_stmt flag in the line table.
4131 * buildsym.h (buildsym_compunit::record_line): Add extra
4132 parameter.
4133 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
4134 non-statement lines.
4135 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
4136 this to the symtab builder.
4137 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
4138 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
4139 through to dwarf_record_line_1.
4140 * infrun.c (process_event_stop_test): When stepping, don't stop at
4141 a non-statement instruction, and only refresh the step info when
4142 we land in the middle of a line's range. Also add an extra
4143 comment.
4144 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
4145 field.
4146 * record-btrace.c (btrace_find_line_range): Only record lines
4147 marked as is-statement.
4148 * stack.c (frame_show_address): Show the frame address if we are
4149 in a non-statement sal.
4150 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
4151 (maintenance_print_one_line_table): Print a header for the is_stmt
4152 column, and include is_stmt information in the output.
4153 * symtab.c (find_pc_sect_line): Find lines marked as statements in
4154 preference to non-statements.
4155 (find_pcs_for_symtab_line): Prefer is-statement entries.
4156 (find_line_common): Likewise.
4157 * symtab.h (struct linetable_entry): Add is_stmt field.
4158 (struct symtab_and_line): Likewise.
4159 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
4160 arranging the line table.
4161
e4003a34
TV
41622020-03-07 Tom de Vries <tdevries@suse.de>
4163
4164 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
4165 DIE.
4166
e8932576
TT
41672020-03-07 Tom Tromey <tom@tromey.com>
4168
4169 * valops.c (value_literal_complex): Remove obsolete comment.
4170 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
4171 comment.
4172
29734269
SM
41732020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
4174
4175 * infrun.h: Forward-declare thread_info.
4176 (set_step_info): Add thread_info parameter, add doc.
4177 * infrun.c (set_step_info): Add thread_info parameter, move doc
4178 to header.
4179 * infrun.c (process_event_stop_test): Pass thread to
4180 set_step_info call.
4181 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
4182 set_step_info.
4183 (prepare_one_step): Add thread_info parameter, pass it to
4184 set_step_frame and prepare_one_step (recursive) call.
4185 (step_1): Pass thread to prepare_one_step call.
4186 (step_command_fsm::should_stop): Pass thread to
4187 prepare_one_step.
4188 (until_next_fsm): Pass thread to set_step_frame call.
4189 (finish_command): Pass thread to set_step_info call.
4190
b7d64b29
HD
41912020-03-06 Hannes Domani <ssbssa@yahoo.de>
4192
4193 * windows-tdep.c (windows_solib_create_inferior_hook):
4194 Check if inferior is running.
4195
09f2921c
TV
41962020-03-06 Tom de Vries <tdevries@suse.de>
4197
4198 * NEWS: Fix "the the".
4199 * ctfread.c: Same.
4200
fd760e79
TV
42012020-03-06 Tom de Vries <tdevries@suse.de>
4202
4203 * psymtab.c (psymtab_to_symtab): Don't print "done.".
4204
20ea4a60
AB
42052020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4206
4207 * .dir-locals.el: Add a comment referencing the other copies of
4208 this file.
4209
0afbabf0
JB
42102020-03-05 John Baldwin <jhb@FreeBSD.org>
4211
4212 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
4213 psargs.
4214
842806cb
TBA
42152020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4216
4217 * .gitattributes: New file.
4218
be1e3d3e
TT
42192020-03-04 Tom Tromey <tom@tromey.com>
4220
4221 * symmisc.c (print_symbol_bcache_statistics)
4222 (print_objfile_statistics): Update.
4223 * symfile.c (allocate_symtab): Use intern.
4224 * psymtab.c (partial_symtab::partial_symtab): Use intern.
4225 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
4226 macro_cache>: Remove.
4227 <string_cache>: New member.
4228 (struct objfile) <intern>: New methods.
4229 * elfread.c (elf_symtab_read): Use intern.
4230 * dwarf2/read.c (fixup_go_packaging): Intern package name.
4231 (dwarf2_compute_name, dwarf2_physname)
4232 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
4233 names.
4234 (guess_partial_die_structure_name): Update.
4235 (partial_die_info::fixup): Intern name.
4236 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
4237 name.
4238 (dwarf2_name): Intern name. Update.
4239 * buildsym.c (buildsym_compunit::get_macro_table): Use
4240 string_cache.
4241
4e7625fd
TT
42422020-03-04 Tom Tromey <tom@tromey.com>
4243
4244 * jit.c (bfd_open_from_target_memory): Make "target" const.
4245 * corefile.c (gnutarget): Now const.
4246 * gdbcore.h (gnutarget): Now const.
4247
46f9f931
HD
42482020-03-04 Hannes Domani <ssbssa@yahoo.de>
4249
4250 * NEWS: Mention support for WOW64 processes.
4251 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
4252 (amd64_windows_segment_register_p): Remove static.
4253 (_initialize_amd64_windows_nat): Update.
4254 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
4255 * i386-windows-nat.c (context_offset): Update.
4256 (i386_mappings): Rename and remove static.
4257 (i386_windows_segment_register_p): Remove static.
4258 (_initialize_i386_windows_nat): Update.
4259 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
4260 (STATUS_WX86_SINGLE_STEP): New macro.
4261 (EnumProcessModulesEx): New macro.
4262 (Wow64SuspendThread): New macro.
4263 (Wow64GetThreadContext): New macro.
4264 (Wow64SetThreadContext): New macro.
4265 (Wow64GetThreadSelectorEntry): New macro.
4266 (windows_set_context_register_offsets): Add static.
4267 (windows_set_segment_register_p): Likewise.
4268 (windows_add_thread): Adapt for WOW64 processes.
4269 (windows_fetch_one_register): Likewise.
4270 (windows_nat_target::fetch_registers): Likewise.
4271 (windows_store_one_register): Likewise.
4272 (display_selector): Likewise.
4273 (display_selectors): Likewise.
4274 (handle_exception): Likewise.
4275 (windows_continue): Likewise.
4276 (windows_nat_target::resume): Likewise.
4277 (windows_add_all_dlls): Likewise.
4278 (do_initial_windows_stuff): Likewise.
4279 (windows_nat_target::attach): Likewise.
4280 (windows_get_exec_module_filename): Likewise.
4281 (windows_nat_target::create_inferior): Likewise.
4282 (windows_xfer_siginfo): Likewise.
4283 (_initialize_loadable): Initialize Wow64SuspendThread,
4284 Wow64GetThreadContext, Wow64SetThreadContext,
4285 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
4286 * windows-nat.h (windows_set_context_register_offsets):
4287 Remove declaration.
4288 (windows_set_segment_register_p): Likewise.
4289 (i386_windows_segment_register_p): Add declaration.
4290 (amd64_windows_segment_register_p): Likewise.
4291
440cf44e
LM
42922020-03-04 Luis Machado <luis.machado@linaro.org>
4293
4294 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
4295 in "info registers" for AArch64/ARM.
4296
4297 The change caused "info registers" to not print GPR's.
4298
4299 gdb/ChangeLog:
4300
4301 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
4302
4303 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
4304 when reg->group is empty and reggroup is not.
4305
1009d92f
TT
43062020-03-03 Tom Tromey <tromey@adacore.com>
4307
4308 * dwarf2/frame.c (struct dwarf2_frame_cache)
4309 <checked_tailcall_bottom, entry_cfa_sp_offset,
4310 entry_cfa_sp_offset_p>: Remove members.
4311 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
4312 (dwarf2_frame_prev_register): Don't call
4313 dwarf2_tailcall_sniffer_first.
4314 (dwarf2_append_unwinders): Don't append tailcall unwinder.
4315 * frame-unwind.c (add_unwinder): New fuction.
4316 (frame_unwind_init): Use it. Add tailcall unwinder.
4317
5e5d66b6
AB
43182020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
4319 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4320
4321 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
4322 value should be printed as true.
4323
584cf46d
HD
43242020-03-03 Hannes Domani <ssbssa@yahoo.de>
4325
4326 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
4327 (windows_init_abi): Set and use windows_so_ops.
4328
7b973adc
SDJ
43292020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
4330
4331 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
4332 when verifying if dealing with a convenience variable.
4333
bb7b70ab
LM
43342020-03-03 Luis Machado <luis.machado@linaro.org>
4335
4336 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
4337
9822cb57
SM
43382020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
4339
4340 * infrun.c (gdbarch_supports_displaced_stepping): New.
4341 (use_displaced_stepping): Break up conditions in smaller pieces.
4342 Use gdbarch_supports_displaced_stepping.
4343 (displaced_step_prepare_throw): Use
4344 gdbarch_supports_displaced_stepping.
4345
63e163f2
AB
43462020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
4347
4348 * NEWS: Mention new behaviour of the history filename.
4349 * top.c (write_history_p): Add comment.
4350 (show_write_history_p): Add header comment, give a different
4351 message when history writing is on, but the history filename is
4352 empty.
4353 (history_filename): Add comment.
4354 (history_filename_empty): New function.
4355 (show_history_filename): Add header comment, give a different
4356 message when the filename is empty.
4357 (init_history): Compare history_filename against nullptr, and only
4358 read history if the filename is not empty.
4359 (set_history_filename): Add header comment, and only make
4360 non-empty filenames absolute.
4361 (init_main): Make the filename argument to 'set history filename'
4362 optional.
4363
81b86b97
CB
43642020-03-02 Christian Biesinger <cbiesinger@google.com>
4365
4366 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
4367 (arm_supply_vfpregset): ...this, and update to use VFP registers.
4368 (fetch_fp_register): Update.
4369 (fetch_fp_regs): Update.
4370 (store_fp_register): Update.
4371 (store_fp_regs): Update.
4372 (arm_netbsd_nat_target::read_description): New function.
4373 (fetch_elfcore_registers): Update.
4374
24ed6739
AB
43752020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
4376
4377 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
4378 general_thread if the stop reply is missing a thread-id.
4379 (remote_target::process_stop_reply): Use the first non-exited
4380 thread if the target didn't pass a thread-id.
4381 * infrun.c (do_target_wait): Move call to
4382 switch_to_inferior_no_thread to ....
4383 (do_target_wait_1): ... here.
4384
a84bb2a0
JT
43852020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
4386
4387 * debuginfod-support.c: Include defs.h first.
4388
658dadf0
TV
43892020-02-28 Tom de Vries <tdevries@suse.de>
4390
4391 * symfile.c (set_initial_language): Use default language for lookup.
4392
4ebe4877
SM
43932020-02-28 Simon Marchi <simon.marchi@efficios.com>
4394
4395 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
4396 reader variable, pass `this` to read_cutu_die_from_dwo.
4397
e5da1139
AM
43982020-02-27 Aaron Merey <amerey@redhat.com>
4399
4400 * source.c (open_source_file): Check for nullptr when computing
4401 srcpath.
4402
317f7127
TT
44032020-02-27 Tom Tromey <tromey@adacore.com>
4404
4405 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
4406 member.
4407 (dwarf2_add_field): Don't update nfields.
4408 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
4409
3104d9ee
AB
44102020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4411
4412 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
4413 abs.
4414
b83470bf
TT
44152020-02-26 Tom Tromey <tom@tromey.com>
4416
4417 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
4418 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
4419 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
4420 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
4421 per_cu_data.
4422
edfe0a0c
TT
44232020-02-26 Tom Tromey <tom@tromey.com>
4424
4425 * dwarf2/index-write.c (psym_index_map): Change type.
4426 (add_address_entry_worker, write_one_signatured_type)
4427 (recursively_count_psymbols, recursively_write_psymbols)
4428 (class debug_names, psyms_seen_size, write_gdbindex)
4429 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
4430
0d79cdc4
AM
44312020-02-26 Aaron Merey <amerey@redhat.com>
4432
4433 * Makefile.in: Handle optional debuginfod support.
4434 * NEWS: Update.
4435 * README: Add --with-debuginfod summary.
4436 * config.in: Regenerate.
4437 * configure: Regenerate.
4438 * configure.ac: Handle optional debuginfod support.
4439 * debuginfod-support.c: debuginfod helper functions.
4440 * debuginfod-support.h: Ditto.
4441 * doc/gdb.texinfo: Add --with-debuginfod to configure options
4442 summary.
4443 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
4444 when a dwz file cannot be found.
4445 * elfread.c (elf_symfile_read): Query debuginfod servers when a
4446 debuginfo file cannot be found.
4447 * source.c (open_source_file): Query debuginfod servers when a
4448 source file cannot be found.
4449 * top.c (print_gdb_configuration): Include
4450 --{with,without}-debuginfod in the output.
4451
b65ce565
JG
44522020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4453
4454 * thread.c (thr_try_catch_cmd): Print thread name.
4455
d4c9a4f8
SM
44562020-02-26 Simon Marchi <simon.marchi@efficios.com>
4457
4458 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
4459 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4460 dwarf2_fetch_die_type_sect_off): Move to...
4461 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4462 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4463 dwarf2_fetch_die_type_sect_off): ... here.
4464 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4465 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4466 dwarf2_fetch_die_type_sect_off): Move doc to header file.
4467
0dce4280
TV
44682020-02-26 Tom de Vries <tdevries@suse.de>
4469
4470 PR gdb/25603
4471 * symfile.c (set_initial_language): Exit-early if
4472 language_mode == language_mode_manual.
4473
450a1bfc
SM
44742020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4475
4476 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
4477 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
4478 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
4479
9e80cfa1
AB
44802020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4481
4482 * gdbtypes.c (create_array_type_with_stride): Handle negative
4483 array strides.
4484 * valarith.c (value_subscripted_rvalue): Likewise.
4485
09624f1f
LM
44862020-02-25 Luis Machado <luis.machado@linaro.org>
4487
4488 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
4489
8cb5117c
SM
44902020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4491
4492 * loc.h (dwarf2_get_die_type): Move to...
4493 * read.h (dwarf2_get_die_type): ... here.
4494 * read.c (dwarf2_get_die_type): Move doc to header.
4495
c325c44e
JB
44962020-02-25 Joel Brobecker <brobecker@adacore.com>
4497
4498 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
4499 'gnulib/Makefile.in' to the list.
4500
4ac93832
TT
45012020-02-24 Tom Tromey <tom@tromey.com>
4502
4503 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
4504 Remove.
4505 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
4506 XOBNEWVEC.
4507
197400e8
TT
45082020-02-24 Tom Tromey <tom@tromey.com>
4509
4510 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
4511 New method.
4512 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
4513 (dw2_do_instantiate_symtab, dw2_get_file_names)
4514 (build_type_psymtab_dependencies, load_full_type_unit): Update.
4515
76935768
TT
45162020-02-24 Tom Tromey <tom@tromey.com>
4517
4518 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
4519 make_scoped_restore.
4520 (dwarf2_psymtab::read_symtab): Don't clear
4521 reading_partial_symbols.
4522
a88ef40d
TV
45232020-02-24 Tom de Vries <tdevries@suse.de>
4524
4525 PR gdb/25592
4526 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
4527
c9af6521
TV
45282020-02-24 Tom de Vries <tdevries@suse.de>
4529
4530 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
4531 commands layout next/prev/regs.
4532
5707a07a
TT
45332020-02-22 Tom Tromey <tom@tromey.com>
4534
4535 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
4536 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
4537
3b0fb49e
TT
45382020-02-22 Tom Tromey <tom@tromey.com>
4539
4540 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
4541
283be8bf
TT
45422020-02-22 Tom Tromey <tom@tromey.com>
4543
4544 * tui/tui-win.c (_initialize_tui_win): Add usage text.
4545 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
4546 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
4547 * tui/tui.c (_initialize_tui): Add usage text.
4548
ca793b96
TT
45492020-02-22 Tom Tromey <tom@tromey.com>
4550
4551 * tui/tui-win.c (tui_set_focus_command)
4552 (tui_set_win_height_command): Use error_no_arg.
4553 (_initialize_tui_win): Update help text.
4554 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
4555
432b5c40
TT
45562020-02-22 Tom Tromey <tom@tromey.com>
4557
4558 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
4559 * tui/tui-disasm.h (struct tui_disasm_window)
4560 <display_start_addr>: Declare.
4561 * tui/tui-source.h (struct tui_source_window)
4562 <display_start_addr>: Declare.
4563 * tui/tui-winsource.h (struct tui_source_window_base)
4564 <show_source_line, display_start_addr>: New methods.
4565 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
4566 Rename and move to protected section.
4567 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
4568 (tui_source_window_base::do_erase_source_content): Update.
4569 (tui_source_window_base::show_source_line): Now a method.
4570 (tui_source_window_base::show_source_content)
4571 (tui_source_window_base::tui_source_window_base)
4572 (tui_source_window_base::rerender)
4573 (tui_source_window_base::refill)
4574 (tui_source_window_base::do_scroll_horizontal)
4575 (tui_source_window_base::set_is_exec_point_at)
4576 (tui_source_window_base::update_breakpoint_info)
4577 (tui_source_window_base::update_exec_info): Update.
4578 * tui/tui-source.c (tui_source_window::set_contents)
4579 (tui_source_window::showing_source_p)
4580 (tui_source_window::do_scroll_vertical)
4581 (tui_source_window::location_matches_p)
4582 (tui_source_window::line_is_displayed): Update.
4583 (tui_source_window::display_start_addr): New method.
4584 * tui/tui-disasm.c (tui_disasm_window::set_contents)
4585 (tui_disasm_window::do_scroll_vertical)
4586 (tui_disasm_window::location_matches_p): Update.
4587 (tui_disasm_window::display_start_addr): New method.
4588
01b1af32
TT
45892020-02-22 Tom Tromey <tom@tromey.com>
4590
4591 * NEWS: Add entry for gdb.register_window_type.
4592 * tui/tui-layout.h (window_factory): New typedef.
4593 (tui_register_window): Declare.
4594 * tui/tui-layout.c (saved_tui_windows): New global.
4595 (tui_apply_current_layout): Use it.
4596 (tui_register_window): New function.
4597 * python/python.c (do_start_initialization): Call
4598 gdbpy_initialize_tui.
4599 (python_GdbMethods): Add "register_window_type" function.
4600 * python/python-internal.h (gdbpy_register_tui_window)
4601 (gdbpy_initialize_tui): Declare.
4602 * python/py-tui.c: New file.
4603 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
4604
fc96d20b
TT
46052020-02-22 Tom Tromey <tom@tromey.com>
4606
4607 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
4608
935c78c0
TT
46092020-02-22 Tom Tromey <tom@tromey.com>
4610
4611 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
4612 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
4613 * tui/tui-data.c (tui_set_win_with_focus): Remove.
4614 (tui_set_win_focus_to): Move from tui-win.c.
4615
0240c8f1
TT
46162020-02-22 Tom Tromey <tom@tromey.com>
4617
4618 * tui/tui-layout.c (make_standard_window, get_locator_window): New
4619 functions.
4620 (known_window_types): New global.
4621 (tui_get_window_by_name): Reimplement.
4622 (initialize_known_windows): New function.
4623 (validate_window_name): Rewrite.
4624 (_initialize_tui_layout): Call initialize_known_windows.
4625
fdb01f0c
TT
46262020-02-22 Tom Tromey <tom@tromey.com>
4627
4628 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
4629 Remove constants.
4630 * tui/tui-winsource.h (struct tui_source_window_base)
4631 <tui_source_window_base>: Remove parameter.
4632 * tui/tui-winsource.c
4633 (tui_source_window_base::tui_source_window_base): Remove
4634 parameter.
4635 (tui_source_window_base::refill): Update.
4636 * tui/tui-stack.h (struct tui_locator_window)
4637 <tui_locator_window>: Update.
4638 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
4639 Default the constructor.
4640 * tui/tui-regs.h (struct tui_data_item_window)
4641 <tui_data_item_window>: Default the constructor.
4642 (struct tui_data_window) <tui_data_window>: Likewise.
4643 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
4644 Default the constructor.
4645 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
4646 Default the constructor.
4647 <type>: Remove.
4648 (struct tui_win_info) <tui_win_info>: Default the constructor.
4649 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
4650 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
4651 Default the constructor.
4652
865a5aec
TT
46532020-02-22 Tom Tromey <tom@tromey.com>
4654
4655 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
4656 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
4657 * tui/tui-win.c (tui_resize_all): Don't call
4658 tui_delete_invisible_windows.
4659 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
4660 done.
4661 (tui_set_layout): Update.
4662 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
4663 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
4664 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
4665
e098d18c
TT
46662020-02-22 Tom Tromey <tom@tromey.com>
4667
4668 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
4669 correctly.
4670
eb9c8874
TT
46712020-02-22 Tom Tromey <tom@tromey.com>
4672
4673 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
4674
7eed1a8e
TT
46752020-02-22 Tom Tromey <tom@tromey.com>
4676
4677 * tui/tui-winsource.h (struct tui_source_window_iterator)
4678 <inner_iterator>: New etytypedef.
4679 <tui_source_window_iterator>: Take "end" parameter.
4680 <tui_source_window_iterator>: Take iterator.
4681 <operator*, advance>: Update.
4682 <m_iter>: Change type.
4683 <m_end>: New field.
4684 (struct tui_source_windows) <begin, end>: Update.
4685 * tui/tui-layout.c (tui_windows): New global.
4686 (tui_apply_current_layout): Clear tui_windows.
4687 (tui_layout_window::apply): Update tui_windows.
4688 * tui/tui-data.h (tui_windows): Declare.
4689 (all_tui_windows): Now inline function.
4690 (class tui_window_iterator, struct all_tui_windows): Remove.
4691
7c043ba6
TT
46922020-02-22 Tom Tromey <tom@tromey.com>
4693
4694 PR tui/17850:
4695 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
4696 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
4697 "height" argument.
4698 (class tui_layout_window) <get_sizes>: Likewise.
4699 (class tui_layout_split) <tui_layout_split>: Add "vertical"
4700 argument.
4701 <get_sizes>: Add "height" argument.
4702 <m_vertical>: New field.
4703 * tui/tui-layout.c (tui_layout_split::clone): Update.
4704 (tui_layout_split::get_sizes): Add "height" argument.
4705 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
4706 (tui_new_layout_command): Parse "-horizontal".
4707 (_initialize_tui_layout): Update help string.
4708 (tui_layout_split::specification): Add "-horizontal" when needed.
4709 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
4710 argument.
4711 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
4712 New methods.
4713
6bc56648
TT
47142020-02-22 Tom Tromey <tom@tromey.com>
4715
4716 * tui/tui-layout.h (enum tui_adjust_result): New.
4717 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
4718 (class tui_layout_window) <adjust_size>: Return
4719 tui_adjust_result. Rewrite.
4720 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
4721 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
4722
c22fef7e
TT
47232020-02-22 Tom Tromey <tom@tromey.com>
4724
4725 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
4726 parameter and return types.
4727 (class tui_layout_base) <specification>: Add "depth".
4728 (class tui_layout_window) <specification>: Add "depth".
4729 (class tui_layout_split) <specification>: Add "depth".
4730 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
4731 and return types.
4732 (tui_new_layout_command): Parse sub-layouts.
4733 (_initialize_tui_layout): Update help string.
4734 (tui_layout_window::specification): Add "depth".
4735 (add_layout_command): Update.
4736
ee325b61
TT
47372020-02-22 Tom Tromey <tom@tromey.com>
4738
4739 * NEWS: Add "tui new-layout" item.
4740 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
4741 Add new-layout command to help text.
4742 (validate_window_name): New function.
4743 (tui_new_layout_command): New function.
4744 (_initialize_tui_layout): Register "new-layout".
4745 (tui_layout_window::specification): New method.
4746 (tui_layout_window::specification): New method.
4747 * tui/tui-layout.h (class tui_layout_base) <specification>: New
4748 method.
4749 (class tui_layout_window) <specification>: New method.
4750 (class tui_layout_split) <specification>: New method.
4751
416eb92d
TT
47522020-02-22 Tom Tromey <tom@tromey.com>
4753
4754 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
4755 * tui/tui-win.c (window_name_completer): Update comment.
4756 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
4757 Declare method.
4758 (class tui_layout_window) <replace_window>: Likewise.
4759 (class tui_layout_split) <replace_window>: Likewise.
4760 (tui_set_layout): Don't declare.
4761 (tui_set_initial_layout): Declare function.
4762 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
4763 (asm_regs_layout): New globals.
4764 (tui_current_layout, show_layout): Remove.
4765 (tui_set_layout, tui_add_win_to_layout): Rewrite.
4766 (find_layout, tui_apply_layout): New function.
4767 (layout_completer): Remove.
4768 (tui_next_layout): Reimplement.
4769 (tui_next_layout_command): New function.
4770 (tui_set_initial_layout, tui_prev_layout_command): New functions.
4771 (tui_regs_layout): Reimplement.
4772 (tui_regs_layout_command): New function.
4773 (extract_display_start_addr): Rewrite.
4774 (next_layout, prev_layout): Remove.
4775 (tui_layout_window::replace_window): New method.
4776 (tui_layout_split::replace_window): New method.
4777 (destroy_layout): New function.
4778 (layout_list): New global.
4779 (add_layout_command): New function.
4780 (initialize_layouts): Update.
4781 (tui_layout_command): New function.
4782 (_initialize_tui_layout): Install "layout" commands.
4783 * tui/tui-data.h (enum tui_layout_type): Remove.
4784 (tui_current_layout): Don't declare.
4785
0dbc2fc7
TT
47862020-02-22 Tom Tromey <tom@tromey.com>
4787
4788 * tui/tui-regs.c (tui_reg_layout): Remove.
4789 (tui_reg_command): Use tui_regs_layout.
4790 * tui/tui-layout.h (tui_reg_command): Declare.
4791 * tui/tui-layout.c (tui_reg_command): New function.
4792
5afe342e
TT
47932020-02-22 Tom Tromey <tom@tromey.com>
4794
4795 * tui/tui.c (tui_rl_delete_other_windows): Call
4796 tui_remove_some_windows.
4797 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
4798 Declare method.
4799 (class tui_layout_window) <remove_windows>: New method.
4800 (class tui_layout_split) <remove_windows>: Declare.
4801 (tui_remove_some_windows): Declare.
4802 * tui/tui-layout.c (tui_remove_some_windows): New function.
4803 (tui_layout_split::remove_windows): New method.
4804
427326a8
TT
48052020-02-22 Tom Tromey <tom@tromey.com>
4806
4807 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
4808 * tui/tui-layout.h (tui_next_layout): Declare.
4809 * tui/tui-layout.c (tui_next_layout): New function.
4810
3fe12b6d
TT
48112020-02-22 Tom Tromey <tom@tromey.com>
4812
4813 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
4814 correct coordinates.
4815
59b8b5d2
TT
48162020-02-22 Tom Tromey <tom@tromey.com>
4817
4818 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
4819 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
4820 DATA_WIN case.
4821
2a3d458b
TT
48222020-02-22 Tom Tromey <tom@tromey.com>
4823
4824 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
4825 TUI_DISASM_WIN, not tui_win_list.
4826
3f0cbb04
TT
48272020-02-22 Tom Tromey <tom@tromey.com>
4828
4829 * valprint.c (generic_val_print_enum_1)
4830 (val_print_type_code_flags): Style member names.
4831 * rust-lang.c (val_print_struct, rust_print_enum)
4832 (rust_print_struct_def, rust_internal_print_type): Style member
4833 names.
4834 * p-valprint.c (pascal_object_print_value_fields): Style member
4835 names. Only call fprintf_symbol_filtered for static members.
4836 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
4837 * f-valprint.c (f_val_print): Style member names.
4838 * f-typeprint.c (f_type_print_base): Style member names.
4839 * cp-valprint.c (cp_print_value_fields): Style member names. Only
4840 call fprintf_symbol_filtered for static members.
4841 (cp_print_class_member): Style member names.
4842 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
4843 member names.
4844 * ada-valprint.c (ada_print_scalar): Style enum names.
4845 (ada_val_print_enum): Likewise.
4846 * ada-typeprint.c (print_enum_type): Style enum names.
4847
d4d947ae
TT
48482020-02-21 Tom Tromey <tom@tromey.com>
4849
4850 * psympriv.h (struct partial_symtab): Update comment.
4851
e94e944b
TT
48522020-02-21 Tom Tromey <tromey@adacore.com>
4853
4854 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
4855 type is CORE_ADDR.
4856
1eb73179
TV
48572020-02-21 Tom de Vries <tdevries@suse.de>
4858
4859 PR gdb/25534
4860 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
4861 if dependencies[i]->user != NULL.
4862
4f180d53
AT
48632020-02-21 Ali Tamur <tamur@google.com>
4864
4865 * dwarf2/read.c (dwarf2_name): Add null check.
4866
22b6cd70
TT
48672020-02-20 Tom Tromey <tom@tromey.com>
4868
4869 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
4870 ">=", in binary search.
4871 (dwarf2_find_containing_comp_unit): New overload.
4872 (run_test): New self-test.
4873 (_initialize_dwarf2_read): Register new test.
4874
bd0cf5a6
NC
48752020-02-20 Nelson Chu <nelson.chu@sifive.com>
4876
4877 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
4878 * riscv-tdep.h: Likewise.
4879 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
4880 rv32-only CSR.
4881 * features/riscv/64bit-csr.xml: Regenerated.
4882
3f702acd
SDJ
48832020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4884 Tom Tromey <tom@tromey.com>
4885
4886 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
4887 of 'fputc_unfiltered'.
4888 (putchar_unfiltered): Call 'fputc_unfiltered'.
4889 (fputc_unfiltered): Call 'fputs_unfiltered'.
4890
d13c7322
AB
48912020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
4892
4893 * config.in: Regenerate.
4894 * configure: Regenerate.
4895 * configure.ac: Add --with-python-libdir option.
4896 * main.c: Use WITH_PYTHON_LIBDIR.
4897
869d8950
TT
48982020-02-19 Tom Tromey <tom@tromey.com>
4899
4900 * symtab.c (general_symbol_info::compute_and_set_names): Use
4901 obstack_strndup. Simplify call to symbol_set_demangled_name.
4902
298e9637
SM
49032020-02-19 Simon Marchi <simon.marchi@efficios.com>
4904
4905 * dwarf2/read.c (allocate_signatured_type_table,
4906 allocate_dwo_unit_table, allocate_type_unit_groups_table,
4907 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
4908 Remove objfile parameter, update all callers.
4909
08410482
DE
49102020-02-19 Doug Evans <dje@google.com>
4911
4912 PR rust/25535
4913 * rust-lang.c (rust_print_enum): Apply embedded_offset to
4914 rust_enum_variant calculation.
4915
dfdeeca1
TT
49162020-02-19 Tom Tromey <tromey@adacore.com>
4917
4918 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
4919
2ef5453b
TT
49202020-02-19 Tom Tromey <tromey@adacore.com>
4921
4922 * ada-lang.c (cache_symbol): Use obstack_strdup.
4923
9f1528a1
AB
49242020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4925
4926 * configure: Regenerate.
4927
d3c22fa8
TT
49282020-02-19 Tom Tromey <tromey@adacore.com>
4929
4930 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
4931 NULL check.
4932
bf84f706
MR
49332020-02-19 Maciej W. Rozycki <macro@wdc.com>
4934
4935 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
4936
d1c9b20f
AB
49372020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4938
4939 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
4940 if GDBSERVER is not defined.
4941 (riscv_tdesc_cache): Likewise, also store const target_desc.
4942 (STATIC_IN_GDB): Define.
4943 (riscv_create_target_description): Update declaration with
4944 STATIC_IN_GDB.
4945 (riscv_lookup_target_description): New function, only define if
4946 GDBSERVER is not defined.
4947 * arch/riscv.h (riscv_create_target_description): Declare only
4948 when GDBSERVER is defined.
4949 (riscv_lookup_target_description): New declaration when GDBSERVER
4950 is not defined.
4951 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
4952 (riscv_linux_read_features): ...this, and return
4953 riscv_gdbarch_features instead of target_desc.
4954 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
4955 (riscv_linux_read_description): Rename to...
4956 (riscv_linux_read_features): ...this.
4957 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
4958 Update to use riscv_gdbarch_features and
4959 riscv_lookup_target_description.
4960 * riscv-tdep.c (riscv_find_default_target_description): Use
4961 riscv_lookup_target_description instead of
4962 riscv_create_target_description.
4963
373d7ac0
SM
49642020-02-18 Simon Marchi <simon.marchi@efficios.com>
4965
4966 * valprint.c (generic_val_print_enum_1): When printing a flag
4967 enum with value 0 and there is no enumerator with value 0, print
4968 just "0" instead of "(unknown: 0x0)".
4969
b29a2df0
SM
49702020-02-18 Simon Marchi <simon.marchi@efficios.com>
4971
4972 * valprint.c (generic_val_print_enum_1): Print unknown part of
4973 flag enum in hex.
4974
6740f0cc
SM
49752020-02-18 Simon Marchi <simon.marchi@efficios.com>
4976
4977 * dwarf2/read.c (update_enumeration_type_from_children): Allow
4978 flag enums to contain duplicate enumerators.
4979 * valprint.c (generic_val_print_enum_1): Update comment.
4980
edd45eb0
SM
49812020-02-18 Simon Marchi <simon.marchi@efficios.com>
4982
4983 * dwarf2/read.c: Include "count-one-bits.h".
4984 (update_enumeration_type_from_children): If an enumerator has
4985 multiple bits set, don't treat the enumeration as a "flag enum".
4986 * valprint.c (generic_val_print_enum_1): Assert that enumerators
4987 of flag enums have 0 or 1 bit set.
4988
6d0cf446
BE
49892020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
4990
4991 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
4992 conversion.
4993 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
4994 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
4995 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
4996 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
4997 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
4998
7001c1b7
SM
49992020-02-18 Simon Marchi <simon.marchi@efficios.com>
5000
5001 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
5002
fdb61c6c
SM
50032020-02-14 Simon Marchi <simon.marchi@efficios.com>
5004
5005 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
5006 displaced_step_closure_up.
5007 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
5008 (struct displaced_step_closure_up):
5009 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
5010 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
5011 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
5012 Likewise.
5013 * gdbarch.sh (displaced_step_copy_insn): Likewise.
5014 * gdbarch.c, gdbarch.h: Re-generate.
5015 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
5016 displaced_step_closure_up.
5017 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
5018 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
5019 * infrun.h (displaced_step_closure_up): New type alias.
5020 (struct displaced_step_inferior_state) <step_closure>: Change
5021 type to displaced_step_closure_up.
5022 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
5023 displaced_step_closure_up.
5024 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
5025
a4a38eb4
TT
50262020-02-14 Tom Tromey <tom@tromey.com>
5027
5028 * minidebug.c (gnu_debug_key): New global.
5029 (find_separate_debug_file_in_section): Use it.
5030
e8217e61
SM
50312020-02-14 Simon Marchi <simon.marchi@efficios.com>
5032
5033 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
5034 std::unique_ptr.
5035 * gdbarch.c: Re-generate.
5036 * gdbarch.h: Re-generate.
5037 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
5038 change.
5039 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
5040 type to std::unique_ptr.
5041 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
5042 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
5043 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
5044 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
5045 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
5046 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
5047 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
5048 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
5049 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
5050
d8d83535
SM
50512020-02-14 Simon Marchi <simon.marchi@efficios.com>
5052
5053 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
5054 std::unique_ptr.
5055 (displaced_step_clear): Rename to...
5056 (displaced_step_reset): ... this. Just call displaced->reset ().
5057 (displaced_step_clear_cleanup): Rename to...
5058 (displaced_step_reset_cleanup): ... this.
5059 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
5060 (displaced_step_fixup): Likewise.
5061 (resume_1): Likewise.
5062 (handle_inferior_event): Restore child's memory before calling
5063 displaced_step_fixup on the parent.
5064 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
5065 to std::unique_ptr.
5066 <step_closure>: Change type to std::unique_ptr.
5067
5f661e03
SM
50682020-02-14 Simon Marchi <simon.marchi@efficios.com>
5069
5070 * arm-tdep.c: Include count-one-bits.h.
5071 (cleanup_block_store_pc): Use count_one_bits.
5072 (cleanup_block_load_pc): Use count_one_bits.
5073 (arm_copy_block_xfer): Use count_one_bits.
5074 (thumb2_copy_block_xfer): Use count_one_bits.
5075 (thumb_copy_pop_pc_16bit): Use count_one_bits.
5076 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
5077 (thumb_get_next_pcs_raw): Use count_one_bits.
5078 (arm_get_next_pcs_raw): Use count_one_bits_l.
5079 * arch/arm.c (bitcount): Remove.
5080 * arch/arm.h (bitcount): Remove.
5081
8084e579
TT
50822020-02-14 Tom Tromey <tromey@adacore.com>
5083
5084 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
5085 Update.
5086 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
5087 * dwarf2/loc.c (call_site_find_chain_1): Return
5088 unique_xmalloc_ptr.
5089 (call_site_find_chain): Likewise.
5090
258bf0ee
RB
50912020-02-14 Richard Biener <rguenther@suse.de>
5092
5093 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
5094 on expression with division operators.
5095
f98a8458
AKS
50962020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5097
5098 * MAINTAINERS (Write After Approval): Adding myself.
5099
d1437c0e
TT
51002020-02-12 Tom Tromey <tom@tromey.com>
5101
5102 * event-loop.c (event_data, gdb_event, event_handler_func):
5103 Remove.
5104
3d4560f7
TT
51052020-02-12 Tom Tromey <tom@tromey.com>
5106
5107 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
5108 (dwarf2_frame_objfile_data): Add comment.
5109 (find_comp_unit, set_comp_unit): New functions.
5110 (dwarf2_frame_find_fde): Use find_comp_unit.
5111 (dwarf2_build_frame_info): Use set_comp_unit.
5112
21982304
TT
51132020-02-12 Tom Tromey <tom@tromey.com>
5114
5115 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
5116 (comp_unit): Don't initialize objfile.
5117 (execute_cfa_program): Add text_offset parameter.
5118 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
5119 (dwarf2_frame_cache): Update.
5120 (dwarf2_build_frame_info): Don't set "objfile" member.
5121
4debb237
TT
51222020-02-12 Tom Tromey <tom@tromey.com>
5123
5124 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
5125 (decode_frame_entry): Likewise.
5126 (dwarf2_build_frame_info): Update.
5127
0d404d44
TT
51282020-02-12 Tom Tromey <tom@tromey.com>
5129
5130 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
5131 (decode_frame_entry_1): Use the comp_unit obstack.
5132
a7a3ae5c
TT
51332020-02-12 Tom Tromey <tom@tromey.com>
5134
5135 * dwarf2/frame.c (struct comp_unit): Add initializers and
5136 constructor.
5137 (dwarf2_frame_objfile_data): Store a comp_unit.
5138 (dwarf2_frame_find_fde): Update.
5139 (dwarf2_build_frame_info): Use "new".
5140
a9d65418
TT
51412020-02-12 Tom Tromey <tom@tromey.com>
5142
5143 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
5144 (dwarf2_fde_table): Typedef for std::vector.
5145 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
5146 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
5147 (decode_frame_entry): Update.
5148 (dwarf2_build_frame_info): Use "new".
5149
7559c217
CB
51502020-02-12 Christian Biesinger <cbiesinger@google.com>
5151
5152 * arm-tdep.c (arm_gdbarch_init): Update.
5153 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
5154 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
5155 have_neon, is_m>: Change to bool.
5156
aeefc73c
CB
51572020-02-12 Christian Biesinger <cbiesinger@google.com>
5158
5159 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
5160
d27b8e5f
TT
51612020-02-12 Tom Tromey <tom@tromey.com>
5162
5163 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
5164
cd5900f3
HD
51652020-02-12 Hannes Domani <ssbssa@yahoo.de>
5166
5167 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
5168 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
5169
f056b22b
TT
51702020-02-11 Tom Tromey <tom@tromey.com>
5171
5172 * psymtab.h: Update comment.
5173
f92ff6b5
TT
51742020-02-11 Tom Tromey <tom@tromey.com>
5175
5176 * gdb_obstack.h (struct auto_obstack): Use
5177 DISABLE_COPY_AND_ASSIGN.
5178
3fd6912b
TT
51792020-02-11 Tom Tromey <tom@tromey.com>
5180
5181 * dwarf2/frame.h (struct objfile): Don't forward declare.
5182
69ed9b74
CB
51832020-02-11 Christian Biesinger <cbiesinger@google.com>
5184
5185 * cris-tdep.c (cris_supply_gregset): Change signature to match
5186 what struct regset expects.
5187 (cris_regset): New struct.
5188 (fetch_core_registers): Remove.
5189 (cris_iterate_over_regset_sections): New function.
5190 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
5191 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
5192
bda874f6
CB
51932020-02-11 Christian Biesinger <cbiesinger@google.com>
5194
5195 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
5196 registers.
5197
754e1564
CB
51982020-02-11 Christian Biesinger <cbiesinger@google.com>
5199
5200 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
5201
8ddd8e0e
SM
52022020-02-11 Simon Marchi <simon.marchi@efficios.com>
5203
5204 * configure: Re-generate.
5205
898e7f60
SM
52062020-02-11 Simon Marchi <simon.marchi@efficios.com>
5207
5208 * configure: Re-generate.
5209
58df732b
SM
52102020-02-11 Simon Marchi <simon.marchi@efficios.com>
5211
5212 * acinclude: Update warning.m4 path.
5213 * warning.m4: Move to gdbsupport.
5214
da5bd37e
TT
52152020-02-11 Tom Tromey <tromey@adacore.com>
5216
5217 * remote.c (remote_console_output): Update.
5218 * printcmd.c (printf_command): Update.
5219 * event-loop.c (gdb_wait_for_event): Update.
5220 * linux-nat.c (sigchld_handler): Update.
5221 * remote-sim.c (gdb_os_write_stdout): Update.
5222 (gdb_os_flush_stdout): Update.
5223 (gdb_os_flush_stderr): Update.
5224 (gdb_os_write_stderr): Update.
5225 * exceptions.c (print_exception): Update.
5226 * remote-fileio.c (remote_fileio_func_read): Update.
5227 (remote_fileio_func_write): Update.
5228 * tui/tui.c (tui_enable): Update.
5229 * tui/tui-interp.c (tui_interp::init): Update.
5230 * utils.c (init_page_info): Update.
5231 (putchar_unfiltered, fputc_unfiltered): Update.
5232 (gdb_flush): Update.
5233 (emit_style_escape): Update.
5234 (flush_wrap_buffer, fputs_maybe_filtered): Update.
5235 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
5236 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
5237 (stderr_file::write): Update.
5238 (stderr_file::puts): Update.
5239 * ui-file.h (ui_file_isatty, ui_file_write)
5240 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
5241 (ui_file_puts): Don't declare.
5242
85f0dd3c
TV
52432020-02-10 Tom de Vries <tdevries@suse.de>
5244
5245 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
5246 sentinel to char *.
5247
2e927613
TV
52482020-02-09 Tom de Vries <tdevries@suse.de>
5249
5250 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
5251 filename if it matches "<artificial>".
5252
6bafc845
HD
52532020-02-09 Hannes Domani <ssbssa@yahoo.de>
5254
5255 * windows-tdep.c (struct enum_value_name): New struct.
5256 (create_enum): New function.
5257 (windows_get_siginfo_type): Create and use enum types.
5258
7928d571
HD
52592020-02-09 Hannes Domani <ssbssa@yahoo.de>
5260
5261 * NEWS: Mention $_siginfo support for Windows.
5262 * windows-nat.c (handle_exception): Set siginfo_er.
5263 (windows_nat_target::mourn_inferior): Reset siginfo_er.
5264 (windows_xfer_siginfo): New function.
5265 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
5266 * windows-tdep.c (struct windows_gdbarch_data): New struct.
5267 (init_windows_gdbarch_data): New function.
5268 (get_windows_gdbarch_data): New function.
5269 (windows_get_siginfo_type): New function.
5270 (windows_init_abi): Register windows_get_siginfo_type.
5271 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
5272
6751ebae
TT
52732020-02-08 Tom Tromey <tom@tromey.com>
5274
5275 * dwarf2/read.c (class cutu_reader) <cutu_reader,
5276 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
5277 <keep>: Declare method.
5278 <m_keep>: Remove member.
5279 <~cutu_reader>: Remove.
5280 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5281 (cutu_reader::cutu_reader): Update.
5282 (cutu_reader::keep): Rename from ~cutu_reader.
5283 (process_psymtab_comp_unit, build_type_psymtabs_1)
5284 (process_skeletonless_type_unit, load_partial_comp_unit)
5285 (load_full_comp_unit, dwarf2_read_addr_index)
5286 (read_signatured_type): Update.
5287
135f5437
TT
52882020-02-08 Tom Tromey <tom@tromey.com>
5289
5290 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
5291 "want_partial_unit" parameter.
5292 (process_psymtab_comp_unit): Change want_partial_unit to bool.
5293 Inline check for DW_TAG_partial_unit.
5294 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
5295
9f66ff1c
TT
52962020-02-08 Tom Tromey <tom@tromey.com>
5297
5298 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
5299 read.c.
5300 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
5301 read.c.
5302
c8a7a66f
TT
53032020-02-08 Tom Tromey <tom@tromey.com>
5304
5305 * dwarf2/read.c (read_address): Move to comp-unit.c.
5306 (dwarf2_rnglists_process, dwarf2_ranges_process)
5307 (read_attribute_value, dwarf_decode_lines_1)
5308 (var_decode_location, decode_locdesc): Update.
5309 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
5310 read.c. Remove "cu" parameter.
5311 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
5312 method.
5313
8266302d
TT
53142020-02-08 Tom Tromey <tom@tromey.com>
5315
5316 * dwarf2/read.c (read_attribute_value, read_indirect_string)
5317 (read_indirect_line_string): Update.
5318 * dwarf2/comp-unit.c (read_offset): Remove.
5319 (read_comp_unit_head): Update.
5320 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
5321 method.
5322 (read_offset): Don't declare.
5323
4057dfde
TT
53242020-02-08 Tom Tromey <tom@tromey.com>
5325
5326 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
5327 * dwarf2/read.c (struct comp_unit_head): Move to
5328 dwarf2/comp-unit.h.
5329 (enum class rcuh_kind): Move to comp-unit.h.
5330 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
5331 (read_comp_unit_head, error_check_comp_unit_head)
5332 (read_and_check_comp_unit_head): Move to comp-unit.c.
5333 (read_offset, dwarf_unit_type_name): Likewise.
5334 (create_debug_type_hash_table, read_cutu_die_from_dwo)
5335 (cutu_reader::cutu_reader, read_call_site_scope)
5336 (find_partial_die, follow_die_offset): Update.
5337 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
5338
24aa364d
TT
53392020-02-08 Tom Tromey <tom@tromey.com>
5340
5341 * dwarf2/read.c (read_offset_1): Move to leb.c.
5342 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
5343 (dwarf_decode_macro_bytes): Update.
5344 * dwarf2/leb.c (read_offset): Rename; move from read.c.
5345 * dwarf2/leb.h (read_offset): Declare.
5346
2c7d5afc
TT
53472020-02-08 Tom Tromey <tom@tromey.com>
5348
5349 * dwarf2/read.c (dwarf2_section_size): Remove.
5350 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
5351 Update.
5352 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
5353
4075cb26
TT
53542020-02-08 Tom Tromey <tom@tromey.com>
5355
5356 * dwarf2/read.c (read_initial_length): Move to leb.c.
5357 * dwarf2/leb.h (read_initial_length): Declare.
5358 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
5359 handle_nonstd parameter.
5360 * dwarf2/frame.c (read_initial_length): Remove.
5361 (decode_frame_entry_1): Update.
5362
09ba997f
TT
53632020-02-08 Tom Tromey <tom@tromey.com>
5364
5365 * dwarf2/loc.c (dwarf2_find_location_expression)
5366 (dwarf_evaluate_loc_desc::get_tls_address)
5367 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
5368 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
5369 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
5370 (dwarf2_compile_property_to_c)
5371 (dwarf2_loc_desc_get_symbol_read_needs)
5372 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
5373 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
5374 (loclist_describe_location, loclist_tracepoint_var_ref)
5375 (loclist_generate_c_location): Update.
5376 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
5377 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
5378 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
5379 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
5380 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
5381 (dwarf2_per_cu_data::addr_size)
5382 (dwarf2_per_cu_data::ref_addr_size)
5383 (dwarf2_per_cu_data::text_offset)
5384 (dwarf2_per_cu_data::addr_type): Now methods.
5385 (per_cu_header_read_in): Make per_cu "const".
5386 (dwarf2_version): Remove.
5387 (dwarf2_per_cu_data::int_type): Now a method.
5388 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
5389 (set_die_type, read_array_type, read_subrange_index_type)
5390 (read_tag_string_type, read_subrange_type): Update.
5391 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
5392 offset_size, ref_addr_size, text_offset, addr_type, version,
5393 objfile, int_type, addr_sized_int_type>: Declare methods.
5394
96c738c0
TT
53952020-02-08 Tom Tromey <tom@tromey.com>
5396
5397 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
5398 Move earlier.
5399
8fdd972c
TT
54002020-02-08 Tom Tromey <tom@tromey.com>
5401
5402 * dwarf2/read.h (dwarf_line_debug): Declare.
5403 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
5404 * dwarf2/read.c: Move line_header code to new files.
5405 (dwarf_line_debug): No longer static.
5406 * dwarf2/line-header.c: New file.
5407 * dwarf2/line-header.h: New file.
5408
03075812
TT
54092020-02-08 Tom Tromey <tom@tromey.com>
5410
5411 * dwarf2/read.c (struct line_header) <file_full_name,
5412 file_file_name>: Return unique_xmalloc_ptr.
5413 (line_header::file_file_name): Update.
5414 (line_header::file_full_name): Update.
5415 (dw2_get_file_names_reader): Update.
5416 (macro_start_file): Update.
5417
bb822404
TT
54182020-02-08 Tom Tromey <tom@tromey.com>
5419
5420 * dwarf2/read.c (struct line_header) <file_full_name,
5421 file_file_name>: Declare methods.
5422 (dw2_get_file_names_reader): Update.
5423 (file_file_name): Now a method.
5424 (file_full_name): Likewise.
5425 (macro_start_file): Update.
5426
009b64fc
TT
54272020-02-08 Tom Tromey <tom@tromey.com>
5428
5429 * dwarf2/read.c (dwarf_always_disassemble)
5430 (show_dwarf_always_disassemble): Move to loc.c.
5431 (_initialize_dwarf2_read): Move "always-disassemble" registration
5432 to loc.c.
5433 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
5434 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
5435 static.
5436 (show_dwarf_always_disassemble): Move from read.c.
5437 (_initialize_dwarf2loc): Move always-disassemble from read.c.
5438
5895093f
TT
54392020-02-08 Tom Tromey <tom@tromey.com>
5440
5441 * dwarf2/read.c (~dwarf2_per_objfile): Update.
5442 (create_quick_file_names_table): Return htab_up.
5443 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
5444 Update.
5445 * dwarf2/read.h (struct dwarf2_per_objfile)
5446 <quick_file_names_table>: Now htab_up.
5447
b3b32279
TT
54482020-02-08 Tom Tromey <tom@tromey.com>
5449
5450 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
5451
1d33d811
TT
54522020-02-08 Tom Tromey <tom@tromey.com>
5453
5454 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
5455 Rewrite.
5456 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
5457 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
5458 (abbrev_table::abbrev_table): No longer inline.
5459 (ABBREV_HASH_SIZE): Remove.
5460 (abbrev_table::m_abbrevs): Now an htab_up.
5461
86de1d91
TT
54622020-02-08 Tom Tromey <tom@tromey.com>
5463
5464 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
5465 (cutu_reader): Update.
5466 (build_type_psymtabs_1): Update.
5467 * dwarf2/abbrev.c (abbrev_table::read): Rename.
5468 (abbrev_table::alloc_abbrev): Update.
5469 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
5470 (abbrev_table::read): New static method, renamed from
5471 abbrev_table_read_table.
5472 (abbrev_table::alloc_abbrev)
5473 (abbrev_table::add_abbrev): Now private.
5474 (abbrev_table::abbrev_table): Now private.
5475 (abbrev_table::m_abbrev_obstack): Now private. Rename.
5476
0335378b
TT
54772020-02-08 Tom Tromey <tom@tromey.com>
5478
5479 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
5480 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
5481 htab_up.
5482
48b490f2
TT
54832020-02-08 Tom Tromey <tom@tromey.com>
5484
5485 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
5486 htab_up.
5487 (lookup_dwo_unit_in_dwp): Update.
5488 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
5489 on obstack.
5490
bc68fb19
TT
54912020-02-08 Tom Tromey <tom@tromey.com>
5492
5493 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
5494 obstack.
5495
d15acc42
TT
54962020-02-08 Tom Tromey <tom@tromey.com>
5497
5498 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
5499 line_header_hash.
5500 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
5501 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
5502 Change type to htab_up.
5503
eaa5fa8b
TT
55042020-02-08 Tom Tromey <tom@tromey.com>
5505
5506 * dwarf2/read.c (allocate_type_unit_groups_table): Return
5507 htab_up. Don't allocate on obstack.
5508 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
5509 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
5510 Change type to htab_up.
5511
b0b6a987
TT
55122020-02-08 Tom Tromey <tom@tromey.com>
5513
5514 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
5515 Change type to htab_up.
5516 * dwarf2/read.c (create_signatured_type_table_from_index)
5517 (create_signatured_type_table_from_debug_names)
5518 (create_all_type_units, add_type_unit)
5519 (lookup_dwo_signatured_type, lookup_signatured_type)
5520 (process_skeletonless_type_unit): Update.
5521 (create_debug_type_hash_table, create_debug_types_hash_table):
5522 Change type of types_htab.
5523 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
5524 htab_up. Don't allocate on obstack.
5525 (create_cus_hash_table): Change type of cus_htab parameter.
5526 (struct dwo_file) <cus, tus>: Now htab_up.
5527 (lookup_dwo_signatured_type, lookup_dwo_cutu)
5528 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
5529 (queue_and_load_all_dwo_tus): Update.
5530 * dwarf2/index-write.c (write_gdbindex): Update.
5531 (write_debug_names): Update.
5532
39856def
TT
55332020-02-08 Tom Tromey <tom@tromey.com>
5534
5535 * dwarf2/read.h (struct dwarf2_queue_item): Move from
5536 dwarf2/read.c. Remove "next" member. Add constructor ntad
5537 destructor.
5538 (struct dwarf2_per_objfile) <queue>: New member.
5539 * dwarf2/read.c (struct dwarf2_queue_item): Move to
5540 dwarf2/read.h.
5541 (dwarf2_queue, dwarf2_queue_tail): Remove.
5542 (class dwarf2_queue_guard): Add parameter to constructor. Use
5543 DISABLE_COPY_AND_ASSIGN.
5544 <m_per_objfile>: New member.
5545 <~dwarf2_queue_guard>: Rewrite.
5546 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
5547 Update.
5548 (~dwarf2_queue_item): New.
5549
3e225074
TT
55502020-02-08 Tom Tromey <tom@tromey.com>
5551
5552 * dwarf2/read.c (struct die_info) <has_children>: New member.
5553 (dw2_get_file_names_reader): Remove has_children.
5554 (dw2_get_file_names): Update.
5555 (read_cutu_die_from_dwo): Remove has_children.
5556 (cutu_reader::init_tu_and_read_dwo_dies)
5557 (cutu_reader::cutu_reader): Update.
5558 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
5559 Remove has_children.
5560 (build_type_psymtabs_1, process_skeletonless_type_unit)
5561 (load_partial_comp_unit, load_full_comp_unit): Update.
5562 (create_dwo_cu_reader): Remove has_children.
5563 (create_cus_hash_table, read_die_and_children): Update.
5564 (read_full_die_1,read_full_die): Remove has_children.
5565 (read_signatured_type): Update.
5566 (class cutu_reader) <has_children>: Remove.
5567
82ca8957
TT
55682020-02-08 Tom Tromey <tom@tromey.com>
5569
5570 * dwarf2/expr.c: Rename from dwarf2expr.c.
5571 * dwarf2/expr.h: Rename from dwarf2expr.h.
5572 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
5573 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
5574 * dwarf2/frame.c: Rename from dwarf2-frame.c.
5575 * dwarf2/frame.h: Rename from dwarf2-frame.h.
5576 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
5577 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
5578 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
5579 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
5580 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
5581 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
5582 * dwarf2/loc.c: Rename from dwarf2loc.c.
5583 * dwarf2/loc.h: Rename from dwarf2loc.h.
5584 * dwarf2/read.c: Rename from dwarf2read.c.
5585 * dwarf2/read.h: Rename from dwarf2read.h.
5586 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
5587 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
5588 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
5589 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
5590 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
5591 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
5592 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
5593 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
5594 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
5595 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
5596 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
5597 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
5598 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
5599 Update.
5600 * Makefile.in (COMMON_SFILES): Update.
5601 (HFILES_NO_SRCDIR): Update.
5602
9e35d499
TT
56032020-02-08 Tom Tromey <tom@tromey.com>
5604
5605 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
5606 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
5607
1eba2311
TT
56082020-02-08 Tom Tromey <tom@tromey.com>
5609
5610 * dwarf2read.h (struct die_info): Don't declare.
5611
e41c2da2
TT
56122020-02-08 Tom Tromey <tom@tromey.com>
5613
5614 * dwarf2read.h (die_info_ptr): Remove typedef.
5615
4fc6c0d5
TT
56162020-02-08 Tom Tromey <tom@tromey.com>
5617
5618 * dwarf2read.c (read_call_site_scope)
5619 (handle_data_member_location, dwarf2_add_member_fn)
5620 (mark_common_block_symbol_computed, read_common_block)
5621 (attr_to_dynamic_prop, partial_die_info::read)
5622 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
5623 (dwarf2_symbol_mark_computed, set_die_type): Update.
5624 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
5625 method.
5626 (attr_form_is_block): Don't declare.
5627 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
5628
cd6c91b4
TT
56292020-02-08 Tom Tromey <tom@tromey.com>
5630
5631 * dwarf2read.c (dwarf2_find_base_address, )
5632 (read_call_site_scope, rust_containing_type)
5633 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
5634 (handle_data_member_location, dwarf2_add_member_fn)
5635 (get_alignment, read_structure_type, process_structure_scope)
5636 (mark_common_block_symbol_computed, read_common_block)
5637 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
5638 (partial_die_info::read, read_attribute_value, new_symbol)
5639 (lookup_die_type, dwarf2_get_ref_die_offset)
5640 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
5641 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
5642 (dwarf2_symbol_mark_computed): Update.
5643 * dwarf2/attribute.h (struct attribute) <value_as_address,
5644 form_is_section_offset, form_is_constant, form_is_ref>: Declare
5645 methods.
5646 (value_as_address, attr_form_is_section_offset)
5647 (attr_form_is_constant, attr_form_is_ref): Don't declare.
5648 * dwarf2/attribute.c (attribute::value_as_address)
5649 (attribute::form_is_section_offset, attribute::form_is_constant)
5650 (attribute::form_is_ref): Now methods.
5651
162dce55
TT
56522020-02-08 Tom Tromey <tom@tromey.com>
5653
5654 * dwarf2read.c (struct attribute, DW_STRING)
5655 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
5656 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
5657 (attr_form_is_block, attr_form_is_section_offset)
5658 (attr_form_is_constant, attr_form_is_ref): Move.
5659 * dwarf2/attribute.h: New file.
5660 * dwarf2/attribute.c: New file, from dwarf2read.c.
5661 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
5662
3054dd54
TT
56632020-02-08 Tom Tromey <tom@tromey.com>
5664
5665 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
5666 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
5667 Move.
5668 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
5669 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
5670 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
5671 abbrev.c.
5672 * dwarf2/abbrev.h: New file.
5673 * dwarf2/abbrev.c: New file, from dwarf2read.c.
5674 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
5675
96b79293
TT
56762020-02-08 Tom Tromey <tom@tromey.com>
5677
5678 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
5679 (dwarf2_section_size, dwarf2_get_section_info)
5680 (create_signatured_type_table_from_debug_names)
5681 (create_addrmap_from_aranges, read_debug_names_from_section)
5682 (get_gdb_index_contents_from_section, read_comp_unit_head)
5683 (error_check_comp_unit_head, read_abbrev_offset)
5684 (create_debug_type_hash_table, init_cu_die_reader)
5685 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
5686 (read_comp_units_from_section, create_cus_hash_table)
5687 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5688 (create_dwp_v2_section, dwarf2_rnglists_process)
5689 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
5690 (abbrev_table_read_table, read_indirect_string_at_offset_from)
5691 (read_indirect_string_from_dwz, read_addr_index_1)
5692 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
5693 (dwarf_decode_macro_bytes, dwarf_decode_macros)
5694 (fill_in_loclist_baton): Update.
5695 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
5696 get_containing_section, get_bfd_owner, get_bfd_section,
5697 get_file_name, get_id, get_flags, empty, read>: Declare methods.
5698 (dwarf2_read_section, get_section_name, get_section_file_name)
5699 (get_containing_section, get_section_bfd_owner)
5700 (get_section_bfd_section, get_section_name, get_section_file_name)
5701 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
5702 declare.
5703 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
5704 (dwarf2_section_info::get_bfd_owner)
5705 (dwarf2_section_info::get_bfd_section)
5706 (dwarf2_section_info::get_name)
5707 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
5708 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
5709 (dwarf2_section_info::read): Now methods.
5710 * dwarf-index-write.c (class debug_names): Update.
5711
2c86cff9
TT
57122020-02-08 Tom Tromey <tom@tromey.com>
5713
5714 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
5715 Move to dwarf2/section.h.
5716 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
5717 (get_section_bfd_section, get_section_name)
5718 (get_section_file_name, get_section_id, get_section_flags)
5719 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
5720 dwarf2/section.c.
5721 * dwarf2/section.h: New file.
5722 * dwarf2/section.c: New file, from dwarf2read.c.
5723 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
5724
f4382c45
TT
57252020-02-08 Tom Tromey <tom@tromey.com>
5726
5727 * dwarf2read.h (read_unsigned_leb128): Don't declare.
5728 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
5729 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
5730 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
5731 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
5732 * dwarf2/leb.h: New file, from dwarf2read.c.
5733 * dwarf2/leb.c: New file, from dwarf2read.c.
5734 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
5735 Remove.
5736 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
5737 (COMMON_SFILES): Add dwarf2/leb.c.
5738
01840b7a
JB
57392020-02-08 Joel Brobecker <brobecker@adacore.com>
5740
5741 GDB 9.1 released.
5742
dfcb27e4
IB
57432020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
5744
5745 PR gdb/25190:
aac66a4c
SM
5746 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
5747 * gdb/remote.c (remote_console_output): Update.
5748 * gdb/ui-file.c (fputs_unfiltered): Rename to...
5749 (ui_file_puts): ...this.
5750 * gdb/ui-file.h (ui_file_puts): Add declaration.
5751 * gdb/utils.c (emit_style_escape): Update.
5752 (flush_wrap_buffer): Update.
5753 (fputs_maybe_filtered): Update.
5754 (fputs_unfiltered): Add function.
dfcb27e4 5755
faa17681
IB
57562020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
5757
aac66a4c
SM
5758 * gdb/event-loop.c (gdb_wait_for_event): Update.
5759 * gdb/printcmd.c (printf_command): Update.
5760 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
5761 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
5762 (gdb_os_flush_stderr): Update.
5763 * gdb/remote.c (remote_console_output): Update.
5764 * gdb/ui-file.c (gdb_flush): Rename to...
5765 (ui_file_flush): ...this.
5766 (stderr_file::write): Update.
5767 (stderr_file::puts): Update.
5768 * gdb/ui-file.h (gdb_flush): Rename to...
5769 (ui_file_flush): ...this.
5770 * gdb/utils.c (gdb_flush): Add function.
5771 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 5772
5abbbe1d
TT
57732020-02-07 Tom Tromey <tromey@adacore.com>
5774
5775 PR breakpoints/24915:
5776 * source.c (find_and_open_source): Do not check basenames_may_differ.
5777
919adfe8
TT
57782020-02-07 Tom Tromey <tom@tromey.com>
5779
5780 * README: Update gdbserver documentation.
5781 * gdbserver: Move to top level.
5782 * configure.tgt (build_gdbserver): Remove.
5783 * configure.ac: Remove --enable-gdbserver.
5784 * configure: Rebuild.
5785 * Makefile.in (distclean): Don't mention gdbserver.
5786
1d5d29e7
SV
57872020-02-06 Shahab Vahedi <shahab@synopsys.com>
5788
5789 * source-cache.c (source_cache::ensure): Surround
5790 get_plain_source_lines with a try/catch.
5791 (source_cache::get_line_charpos): Get rid of try/catch
5792 and only check for the return value of "ensure".
5793 * tui/tui-source.c (tui_source_window::set_contents):
5794 Simplify "nlines" calculation.
5795
6eb1129c
SV
57962020-02-06 Shahab Vahedi <shahab@synopsys.com>
5797
5798 * MAINTAINERS (Write After Approval): Add myself.
5799
c6a42d11
CB
58002020-02-05 Christian Biesinger <cbiesinger@google.com>
5801
5802 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
5803 function call.
5804
c8ecdda6
CB
58052020-02-05 Christian Biesinger <cbiesinger@google.com>
5806
5807 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
5808
f6480e70
MR
58092020-02-05 Maciej W. Rozycki <macro@wdc.com>
5810
5811 * nat/riscv-linux-tdesc.h: New file.
5812 * nat/riscv-linux-tdesc.c: New file, taking code from...
5813 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
5814 ... here.
5815 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
5816 NATDEPFILES.
5817
dcc9fbc6
AB
58182020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
5819
5820 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
5821 we don't set the fake simulator ptid to the null_ptid.
5822
719546c4
SM
58232020-02-03 Simon Marchi <simon.marchi@efficios.com>
5824
5825 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
5826 * gdbthread.h (class thread_info) <resumed>: Likewise.
5827 * infrun.c (resume_1): Likewise.
5828 (proceed): Likewise.
5829 (infrun_thread_stop_requested): Likewise.
5830 (stop_all_threads): Likewise.
5831 (handle_inferior_event): Likewise.
5832 (restart_threads): Likewise.
5833 (finish_step_over): Likewise.
5834 (keep_going_stepped_thread): Likewise.
5835 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
5836 (linux_handle_extended_wait): Likewise.
5837 * record-btrace.c (get_thread_current_frame_id): Likewise.
5838 * record-full.c (record_full_wait_1): Likewise.
5839 * remote.c (remote_target::process_initial_stop_replies): Likewise.
5840 * target.c (target_resume): Likewise.
5841 * thread.c (set_running_thread): Likewise.
5842
e409c542
AKS
58432020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5844
5845 * f-valprint.c (f77_print_array_1): Changed datatype of index
5846 variable to LONGEST from int to enable it to contain bound
5847 values correctly.
5848
ee98c0da
MR
58492020-02-03 Maciej W. Rozycki <macro@wdc.com>
5850
5851 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
5852 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
5853 offsets according to FLEN determined.
5854 (riscv_linux_nat_target::read_description): Determine FLEN
5855 dynamically.
5856 (riscv_linux_nat_target::fetch_registers): Size regset buffer
5857 according to FLEN determined.
5858 (riscv_linux_nat_target::store_registers): Likewise.
5859
aa66aac4
SV
58602020-02-01 Shahab Vahedi <shahab@synopsys.com>
5861
5862 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
5863 when reg->group is empty and reggroup is not.
5864
fd9faca8
TT
58652020-01-31 Tom Tromey <tromey@adacore.com>
5866
5867 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
5868 Call beneath target's mourn_inferior after unpushing.
5869
42330a68
AB
58702020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
5871
5872 PR tui/9765
5873 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
5874 have enough lines to fill the screen, still return the lowest
5875 address we found.
5876
7a27a45b
AB
58772020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
5878
5879 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
5880 '-', '<', and '>' commands.
5881
c47f70e2
PA
58822020-01-29 Pedro Alves <palves@redhat.com>
5883 Sergio Durigan Junior <sergiodj@redhat.com>
5884
5885 * infcmd.c (construct_inferior_arguments): Assert that
5886 'argc' is greater than 0.
5887
5133a315
LM
58882020-01-29 Luis Machado <luis.machado@linaro.org>
5889
5890 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
5891 (BRK_INSN_MASK): Define to 0xd4200000.
5892 (aarch64_program_breakpoint_here_p): New function.
5893 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
5894 * arch-utils.c (default_program_breakpoint_here_p): Moved from
5895 breakpoint.c.
5896 * arch-utils.h (default_program_breakpoint_here_p): Moved from
5897 breakpoint.h
5898 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
5899 call gdbarch_program_breakpoint_here_p.
5900 (program_breakpoint_here): Moved to arch-utils.c, renamed to
5901 default_program_breakpoint_here_p, changed return type to bool and
5902 simplified.
5903 * breakpoint.h (program_breakpoint_here): Moved prototype to
5904 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
5905 return type to bool.
5906 * gdbarch.c: Regenerate.
5907 * gdbarch.h: Regenerate.
5908 * gdbarch.sh (program_breakpoint_here_p): New method.
5909 * infrun.c (handle_signal_stop): Call
5910 gdbarch_program_breakpoint_here_p.
5911
168f8c6b
TT
59122020-01-26 Tom Tromey <tom@tromey.com>
5913
5914 * ctfread.c (struct ctf_fp_info): Reindent.
5915 (_initialize_ctfread): Remove.
5916
128a391f
TT
59172020-01-26 Tom Tromey <tom@tromey.com>
5918
5919 * psymtab.c (partial_map_expand_apply)
5920 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5921 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5922 (psym_print_stats, psym_expand_symtabs_for_function)
5923 (psym_map_symbol_filenames, psym_map_matching_symbols)
5924 (psym_expand_symtabs_matching)
5925 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5926 (maintenance_check_psymtabs): Use new methods.
5927 * psympriv.h (struct partial_symtab) <readin_p,
5928 get_compunit_symtab>: New methods.
5929 <readin, compunit_symtab>: Remove members.
5930 (struct standard_psymtab): New.
5931 (struct legacy_psymtab): Derive from standard_psymtab.
5932 * dwarf2read.h (struct dwarf2_psymtab): Derive from
5933 standard_psymtab.
5934 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
5935
0494dbec
TT
59362020-01-26 Tom Tromey <tom@tromey.com>
5937
5938 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
5939 read_dependencies. Add assert.
5940 * psymtab.c (partial_symtab::read_dependencies): New method.
5941 * psympriv.h (struct partial_symtab) <read_dependencies>: New
5942 method.
5943 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
5944 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
5945 read_dependencies.
5946 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
5947 Add assert.
5948
8566b89b
TT
59492020-01-26 Tom Tromey <tom@tromey.com>
5950
5951 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
5952 Call expand_psymtab.
5953 (xcoff_read_symtab): Call expand_psymtab.
5954 (xcoff_start_psymtab, xcoff_end_psymtab): Set
5955 legacy_expand_psymtab.
5956 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
5957 method.
5958 (struct legacy_psymtab) <expand_psymtab>: Implement.
5959 <legacy_expand_psymtab>: New member.
5960 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
5961 (parse_partial_symbols): Set legacy_expand_psymtab.
5962 (psymtab_to_symtab_1): Change argument order. Call
5963 expand_psymtab.
5964 (new_psymtab): Set legacy_expand_psymtab.
5965 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
5966 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
5967 expand_psymtab.
5968 (dwarf2_psymtab::expand_psymtab): Rename from
5969 psymtab_to_symtab_1. Call expand_psymtab.
5970 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
5971 (dbx_end_psymtab): Likewise.
5972 (dbx_psymtab_to_symtab_1): Change argument order. Call
5973 expand_psymtab.
5974 (dbx_read_symtab): Call expand_psymtab.
5975 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
5976 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
5977 (ctf_psymtab::read_symtab): Call expand_psymtab.
5978
077cbab2
TT
59792020-01-26 Tom Tromey <tom@tromey.com>
5980
5981 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
5982 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
5983 messages.
5984 * mdebugread.c (mdebug_read_symtab): Remove prints.
5985 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
5986 assert.
5987 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
5988
891813be
TT
59892020-01-26 Tom Tromey <tom@tromey.com>
5990
5991 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
5992 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
5993 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
5994 legacy_symtab.
5995 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
5996 * psymtab.c (psymtab_to_symtab): Call method.
5997 (dump_psymtab): Update.
5998 * psympriv.h (struct partial_symtab): Add virtual destructor.
5999 <read_symtab>: New method.
6000 (struct legacy_symtab): New.
6001 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
6002 (struct pst_map) <pst>: Now a legacy_psymtab.
6003 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
6004 (new_psymtab): Use legacy_psymtab.
6005 * dwarf2read.h (struct dwarf2_psymtab): New.
6006 (struct dwarf2_per_cu_data) <psymtab>: Use it.
6007 * dwarf2read.c (dwarf2_create_include_psymtab)
6008 (dwarf2_build_include_psymtabs, create_type_unit_group)
6009 (create_partial_symtab, process_psymtab_comp_unit_reader)
6010 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
6011 (set_partial_user): Use dwarf2_psymtab.
6012 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
6013 (psymtab_to_symtab_1, process_full_comp_unit)
6014 (process_full_type_unit, dwarf2_ranges_read)
6015 (dwarf2_get_pc_bounds, psymtab_include_file_name)
6016 (dwarf_decode_lines): Use dwarf2_psymtab.
6017 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
6018 (add_address_entry_worker, write_one_signatured_type)
6019 (recursively_count_psymbols, recursively_write_psymbols)
6020 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
6021 (write_debug_names): Likewise.
6022 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
6023 <pst>: Now a legacy_psymtab.
6024 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
6025 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
6026 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
6027 * ctfread.c (struct ctf_psymtab): New.
6028 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
6029 ctf_psymtab.
6030 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
6031 (create_partial_symtab): Return a ctf_psymtab.
6032 (scan_partial_symbols): Update.
6033
c3693a1d
TT
60342020-01-26 Tom Tromey <tom@tromey.com>
6035
6036 * xcoffread.c (xcoff_start_psymtab): Use new.
6037 * psymtab.c (partial_symtab::partial_symtab): New constructor,
6038 renamed from start_psymtab_common.
6039 * psympriv.h (struct partial_symtab): Add new constructor.
6040 (start_psymtab_common): Don't declare.
6041 * mdebugread.c (parse_partial_symbols): Use new.
6042 * dwarf2read.c (create_partial_symtab): Use new.
6043 * dbxread.c (start_psymtab): Use new.
6044 * ctfread.c (create_partial_symtab): Use new.
6045
32caafd0
TT
60462020-01-26 Tom Tromey <tom@tromey.com>
6047
6048 * xcoffread.c (xcoff_end_psymtab): Use new.
6049 * psymtab.c (start_psymtab_common): Use new.
6050 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
6051 Update.
6052 * psympriv.h (struct partial_symtab): Add parameters to
6053 constructor. Don't inline.
6054 (allocate_psymtab): Don't declare.
6055 * mdebugread.c (new_psymtab): Use new.
6056 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
6057 * dbxread.c (dbx_end_psymtab): Use new.
6058
abaa2f23
TT
60592020-01-26 Tom Tromey <tom@tromey.com>
6060
6061 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
6062 allocate_psymtab. Update documentation.
6063 * psymtab.c (psymtab_storage::install_psymtab): Rename from
6064 allocate_psymtab. Do not use new.
6065 (allocate_psymtab): Use new. Update.
6066
6d94535f
TT
60672020-01-26 Tom Tromey <tom@tromey.com>
6068
6069 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6070 * psymtab.c (psym_print_stats): Update.
6071 * psympriv.h (struct partial_symtab) <readin,
6072 psymtabs_addrmap_supported, anonymous>: Now bool.
6073 * mdebugread.c (psymtab_to_symtab_1): Update.
6074 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
6075 (build_type_psymtabs_reader, psymtab_to_symtab_1)
6076 (process_full_comp_unit, process_full_type_unit): Update.
6077 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6078 * ctfread.c (psymtab_to_symtab): Update.
6079
6f17252b
TT
60802020-01-26 Tom Tromey <tom@tromey.com>
6081
6082 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
6083 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
6084 * psymtab.c (psymtab_storage): Delete psymtabs.
6085 (psymtab_storage::allocate_psymtab): Use new.
6086 (psymtab_storage::discard_psymtab): Use delete.
6087 * psympriv.h (struct partial_symtab): Add constructor and
6088 initializers.
6089
f6f1cebc
TT
60902020-01-26 Tom Tromey <tom@tromey.com>
6091
6092 * machoread.c: Do not include psympriv.h.
6093
e47e48f6
PW
60942020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6095
6096 * NEWS: Mention the new option and the set/show commands.
6097
a2fedca9
PW
60982020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6099
6100 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
6101 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
6102 (validate_exec_file): New variables, enums, functions.
6103 (exec_file_locate_attach, print_section_info): Style the filenames.
6104 (_initialize_exec): Install show_exec_file_mismatch_command and
6105 set_exec_file_mismatch_command.
6106 * gdbcore.h (validate_exec_file): Declare.
6107 * infcmd.c (attach_command): Call validate_exec_file.
6108 * remote.c ( remote_target::remote_add_inferior): Likewise.
6109
7ffa82e1
AB
61102020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
6111
6112 * frame.c (find_frame_sal): Move call to get_next_frame into more
6113 inner scope.
6114 * inline-frame.c (inilne_state) <inline_state>: Update argument
6115 types.
6116 (inilne_state) <skipped_symbol>: Rename to...
6117 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
6118 (skip_inline_frames): Build vector of skipped symbols and use this
6119 to reate the inline_state.
6120 (inline_skipped_symbol): Add a comment and some assertions, fetch
6121 skipped symbol from the list.
6122
3d92a3e3
AB
61232020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
6124
6125 * buildsym.c (lte_is_less_than): Delete.
6126 (buildsym_compunit::end_symtab_with_blockvector): Create local
6127 lambda function to sort line table entries, and use
6128 std::stable_sort instead of std::sort.
6129 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
6130 markers when looking for a previous line.
6131
94a72be7
AB
61322020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
6133
6134 * dwarf2read.c (lnp_state_machine::record_line): Include
6135 end_sequence parameter in debug print out. Record the line if we
6136 are at an end_sequence marker even if it's not the start of a
6137 statement.
6138 * symmisc.c (maintenance_print_one_line_table): Print end of
6139 sequence markers with 'END' not '0'.
6140
53af73bf
PA
61412020-01-24 Pedro Alves <palves@redhat.com>
6142
6143 PR gdb/25410
6144 * thread.c (scoped_restore_current_thread::restore): Use
6145 switch_to_inferior_no_thread.
6146 * exec.c: Include "progspace-and-thread.h".
6147 (add_target_sections, remove_target_sections):
6148 scoped_restore_current_pspace_and_thread instead of
6149 scoped_restore_current_thread.
6150 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
6151 and aspace to the inferior before calling clone_program_space.
6152 Remove stale comment.
6153
3050c6f4
CB
61542020-01-24 Christian Biesinger <cbiesinger@google.com>
6155
6156 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
6157 (arm_netbsd_nat_target::fetch_registers): ...this.
6158 (arm_nbsd_nat_target::store_registers): Rename to...
6159 (arm_netbsd_nat_target::store_registers): ...this.
6160
73685c7e
CB
61612020-01-24 Christian Biesinger <cbiesinger@google.com>
6162
6163 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6164 register_t.
6165
89203d40
CB
61662020-01-24 Christian Biesinger <cbiesinger@google.com>
6167
6168 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
6169 Update comment.
6170 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
6171 Likewise.
6172 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
6173 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
6174 the correct replacement (iterate_over_regset_sections).
6175 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
6176 Update comment.
6177
1ba1ac88
AB
61782020-01-24 Graham Markall <graham.markall@embecosm.com>
6179
6180 PR gdb/23718
6181 * gdb/python/python.c (execute_gdb_command): Call
6182 async_enable_stdin in catch block.
6183
f3364a6d
AB
61842020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
6185
6186 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
6187 SWITCH_THRU_ALL_UIS.
6188
733d0a67
AB
61892020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
6190
6191 PR tui/9765
6192 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
6193 comment, add extra parameter, and update to store previous symbol
6194 when appropriate.
6195 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
6196 add extra parameter.
6197 * tui/tui-disasm.c (tui_disassemble): Update header comment,
6198 remove unneeded parameter, add try/catch around gdb_print_insn,
6199 rewrite to add items to asm_lines vector.
6200 (tui_find_backward_disassembly_start_address): New function.
6201 (tui_find_disassembly_address): Updated throughout.
6202 (tui_disasm_window::set_contents): Update for changes to
6203 tui_disassemble.
6204 (tui_disasm_window::do_scroll_vertical): No need to adjust the
6205 number of lines to scroll.
6206
b3b3bada
SM
62072020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
6208
6209 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
6210 (SECT_OFF_DATA): Likewise.
6211 (SECT_OFF_RODATA): Likewise.
6212 (SECT_OFF_TEXT): Likewise.
6213 (SECT_OFF_BSS): Likewise.
6214 (struct objfile) <text_section_offset, data_section_offset>: New
6215 methods.
6216 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
6217 objfile::text_section_offset.
6218 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
6219 * coffread.c (coff_symtab_read): Likewise.
6220 (enter_linenos): Likewise.
6221 (process_coff_symbol): Likewise.
6222 * ctfread.c (get_objfile_text_range): Likewise.
6223 * dtrace-probe.c (dtrace_probe::get_relocated_address):
6224 Use objfile::data_section_offset.
6225 * dwarf2-frame.c (execute_cfa_program): Use
6226 objfile::text_section_offset.
6227 (dwarf2_frame_find_fde): Likewise.
6228 * dwarf2read.c (create_addrmap_from_index): Likewise.
6229 (create_addrmap_from_aranges): Likewise.
6230 (dw2_find_pc_sect_compunit_symtab): Likewise.
6231 (process_psymtab_comp_unit_reader): Likewise.
6232 (add_partial_symbol): Likewise.
6233 (add_partial_subprogram): Likewise.
6234 (process_full_comp_unit): Likewise.
6235 (read_file_scope): Likewise.
6236 (read_func_scope): Likewise.
6237 (read_lexical_block_scope): Likewise.
6238 (read_call_site_scope): Likewise.
6239 (dwarf2_rnglists_process): Likewise.
6240 (dwarf2_ranges_process): Likewise.
6241 (dwarf2_ranges_read): Likewise.
6242 (dwarf_decode_lines_1): Likewise.
6243 (new_symbol): Likewise.
6244 (dwarf2_fetch_die_loc_sect_off): Likewise.
6245 (dwarf2_per_cu_text_offset): Likewise.
6246 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
6247 * hppa-tdep.c (read_unwind_info): Likewise.
6248 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
6249 * psympriv.h (struct partial_symtab): Likewise.
6250 * psymtab.c (find_pc_sect_psymtab): Likewise.
6251 * solib-svr4.c (enable_break): Likewise.
6252 * stap-probe.c (relocate_address): Use
6253 objfile::data_section_offset.
6254 * xcoffread.c (enter_line_range): Use
6255 objfile::text_section_offset.
6256 (read_xcoff_symtab): Likewise.
6257
ab53f382
SM
62582020-01-23 Simon Marchi <simon.marchi@efficios.com>
6259
6260 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
6261 declaration to narrower scopes.
6262
e7eee665
SM
62632020-01-23 Simon Marchi <simon.marchi@efficios.com>
6264
6265 * darwin-nat.h (struct darwin_exception_msg, enum
6266 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
6267 Move up.
6268 (class darwin_nat_target) <wait_1, check_new_threads,
6269 decode_exception_message, decode_message, stop_inferior,
6270 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
6271 * darwin-nat.c (darwin_check_new_threads): Rename to...
6272 (darwin_nat_target::check_new_threads): ... this.
6273 (darwin_suspend_inferior_it): Remove.
6274 (darwin_decode_exception_message): Rename to...
6275 (darwin_nat_target::decode_exception_message): ... this.
6276 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
6277 (darwin_decode_message): Rename to...
6278 (darwin_nat_target::decode_message): ... this.
6279 (cancel_breakpoint): Rename to...
6280 (darwin_nat_target::cancel_breakpoint): ... this.
6281 (darwin_wait): Rename to...
6282 (darwin_nat_target::wait_1): ... this. Use range-based for loop
6283 instead of iterate_over_inferiors.
6284 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
6285 (darwin_stop_inferior): Rename to...
6286 (darwin_nat_target::stop_inferior): ... this.
6287 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
6288 (darwin_init_thread_list): Rename to...
6289 (darwin_nat_target::init_thread_list): ... this.
6290 (darwin_ptrace_him): Rename to...
6291 (darwin_nat_target::ptrace_him): ... this.
6292 (darwin_nat_target::create_inferior): Pass lambda function to
6293 fork_inferior.
6294 (darwin_nat_target::detach): Call stop_inferior instead of
6295 darwin_stop_inferior.
6296 * fork-inferior.h (fork_inferior): Change init_trace_fun
6297 parameter to gdb::function_view.
6298 * fork-inferior.c (fork_inferior): Likewise.
6299
c162ed3e
HD
63002020-01-23 Hannes Domani <ssbssa@yahoo.de>
6301
6302 * i386-cygwin-tdep.c (core_process_module_section): Update.
6303 * windows-nat.c (struct lm_info_windows): Add text_offset.
6304 (windows_xfer_shared_libraries): Update.
6305 * windows-tdep.c (windows_xfer_shared_library):
6306 Add text_offset_cached argument.
6307 * windows-tdep.h (windows_xfer_shared_library): Update.
6308
a1237872
SM
63092020-01-21 Simon Marchi <simon.marchi@efficios.com>
6310
6311 * gdbarch.sh: Add declaration for _initialize_gdbarch.
6312
b3ee6dd9
SM
63132020-01-21 Simon Marchi <simon.marchi@efficios.com>
6314
6315 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
6316 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
6317 replace with range-based for.
6318 (gdbsim_interrupt_inferior): Remove.
6319 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
6320 with a range-based for. Inline code from
6321 gdbsim_interrupt_inferior.
6322
f9fac3c8
SM
63232020-01-21 Simon Marchi <simon.marchi@efficios.com>
6324
6325 * infrun.c (proceed): Fix indentation.
6326
f6474de9
TT
63272020-01-21 Tom Tromey <tromey@adacore.com>
6328
6329 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
6330 * python/python.c (python_extension_ops): Update.
6331 (gdbpy_colorize): New function.
6332 * python/lib/gdb/__init__.py (colorize): New function.
6333 * extension.h (ext_lang_colorize): Declare.
6334 * extension.c (ext_lang_colorize): New function.
6335 * extension-priv.h (struct extension_language_ops) <colorize>: New
6336 member.
6337 * cli/cli-style.c (_initialize_cli_style): Update help text.
6338
f0c702d4
LM
63392020-01-21 Luis Machado <luis.machado@linaro.org>
6340
6341 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
6342 <cond>: Change type to bool.
6343 (aarch64_displaced_step_b_cond): Update cond to use bool type.
6344 (aarch64_displaced_step_cb): Likewise.
6345 (aarch64_displaced_step_tb): Likewise.
6346
1ab139e5
LM
63472020-01-21 Luis Machado <luis.machado@linaro.org>
6348
6349 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
6350 output.
6351
0c271889
LM
63522020-01-21 Luis Machado <luis.machado@linaro.org>
6353
6354 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
6355 <pc_adjust>: Adjust the documentation.
6356 (aarch64_displaced_step_fixup): Check if PC really moved before
6357 adjusting it.
6358
4d89c1c7
TT
63592020-01-19 Tom Tromey <tom@tromey.com>
6360
6361 * disasm.c (~gdb_disassembler): New destructor.
6362 (gdb_buffered_insn_length): Call disassemble_free_target.
6363 * disasm.h (class gdb_disassembler): Declare destructor. Use
6364 DISABLE_COPY_AND_ASSIGN.
6365
c0ab21c2
TT
63662020-01-19 Tom Tromey <tom@tromey.com>
6367
6368 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
6369 (die_reader_func_ftype): Remove.
6370 (cutu_reader): New class.
6371 (dw2_get_file_names_reader): Remove "data" parameter.
6372 (dw2_get_file_names): Use cutu_reader.
6373 (create_debug_type_hash_table): Update.
6374 (read_cutu_die_from_dwo): Update comment.
6375 (lookup_dwo_unit): Add dwo_name parameter.
6376 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
6377 die_reader_func_ftype and data parameters.
6378 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
6379 Remove die_reader_func_ftype and data parameters.
6380 (~cutu_reader): New; from init_cutu_and_read_dies.
6381 (cutu_reader::cutu_reader): Rename from
6382 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
6383 and data parameters.
6384 (init_cutu_and_read_dies_simple): Remove.
6385 (struct process_psymtab_comp_unit_data): Remove.
6386 (process_psymtab_comp_unit_reader): Remove data parameter; add
6387 want_partial_unit and pretend_language parameters.
6388 (process_psymtab_comp_unit): Use cutu_reader.
6389 (build_type_psymtabs_reader): Remove data parameter.
6390 (build_type_psymtabs_1): Use cutu_reader.
6391 (process_skeletonless_type_unit): Likewise.
6392 (load_partial_comp_unit_reader): Remove.
6393 (load_partial_comp_unit): Use cutu_reader.
6394 (load_full_comp_unit_reader): Remove.
6395 (load_full_comp_unit): Use cutu_reader.
6396 (struct create_dwo_cu_data): Remove.
6397 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
6398 dwo_unit parameters.
6399 (create_cus_hash_table): Use cutu_reader.
6400 (struct dwarf2_read_addr_index_data): Remove.
6401 (dwarf2_read_addr_index_reader): Remove.
6402 (dwarf2_read_addr_index): Use cutu_reader.
6403 (read_signatured_type_reader): Remove.
6404 (read_signatured_type): Use cutu_reader.
6405
45bbae5c
TT
64062020-01-19 Tom Tromey <tom@tromey.com>
6407
6408 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
6409 * tui/tui-wingeneral.h (class tui_suppress_output): New.
6410 (tui_wrefresh): Declare.
6411 * tui/tui-wingeneral.c (suppress_output): New global.
6412 (tui_suppress_output, ~tui_suppress_output): New constructor and
6413 destructor.
6414 (tui_wrefresh): New function.
6415 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
6416 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
6417 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
6418 method.
6419 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
6420 tui_wrefresh.
6421 (tui_data_window::no_refresh): New method.
6422 (tui_data_item_window::refresh_window): Call tui_wrefresh.
6423 (tui_reg_command): Use tui_suppress_output
6424 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
6425 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
6426 method.
6427 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
6428
4f13c1c0
TT
64292020-01-19 Tom Tromey <tom@tromey.com>
6430
6431 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6432 Handle case where symtab is null.
6433
fa47e446
SM
64342020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
6435
6436 * linux-fork.c (one_fork_p): Simplify.
6437
26f42329
SM
64382020-01-17 Simon Marchi <simon.marchi@efficios.com>
6439
6440 * top.c (struct qt_args): Remove.
6441 (kill_or_detach): Change return type to void, replace `void *`
6442 parameter with a proper one.
6443 (print_inferior_quit_action): Likewise.
6444 (quit_confirm): Use range-based for loop to iterate over inferiors.
6445 (quit_force): Likewise.
6446
a9ac81b1
SM
64472020-01-17 Simon Marchi <simon.marchi@efficios.com>
6448
6449 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
6450 `void *` parameter with proper parameters.
6451 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
6452 (print_one_inferior): Change return type to void, replace `void *`
6453 parameter with proper parameters.
6454 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
6455 inferiors.
6456 (get_other_inferior): Remove.
6457 (mi_cmd_remove_inferior): Use range-based loop to iterate over
6458 inferiors.
6459
788eca49
SM
64602020-01-17 Simon Marchi <simon.marchi@efficios.com>
6461
6462 * mi/mi-interp.c (report_initial_inferior): Remove.
6463 (mi_interp::init): Use range-based for to iterate over inferiors.
6464
d9bc85b6
SM
64652020-01-17 Simon Marchi <simon.marchi@efficios.com>
6466
6467 * python/py-inferior.c (build_inferior_list): Remove.
6468 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
6469
40c94099
CB
64702020-01-16 Christian Biesinger <cbiesinger@google.com>
6471
6472 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
6473 (btrace_stitch_trace): Likewise.
6474 * charset.c (intermediate_encoding): Likewise (vaild).
6475 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
6476 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
6477 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
6478
e0cdfe3c
HD
64792020-01-16 Hannes Domani <ssbssa@yahoo.de>
6480
6481 * windows-tdep.c (windows_get_tlb_type):
6482 Add rtl_user_process_parameters type.
6483
790f1718 64842020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 6485 Norbert Lange <nolange79@gmail.com>
790f1718
PA
6486
6487 PR build/24805
6488 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
6489 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
6490 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
6491 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
6492 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
6493 (ps_plog): Redeclare exported functions with default visibility.
6494
3112ed97
NA
64952020-01-16 Nitika Achra <Nitika.Achra@amd.com>
6496
6497 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
6498 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
6499
8dc3273e
SM
65002020-01-15 Simon Marchi <simon.marchi@efficios.com>
6501
6502 * infcmd.c (post_create_inferior): Use get_thread_regcache
6503 instead of get_current_regcache.
6504
ff47f4f0
TT
65052020-01-14 Tom Tromey <tom@tromey.com>
6506
6507 PR symtab/12535:
6508 * python/python.c (gdbpy_decode_line): Treat empty string the same
6509 as no argument.
6510
975f45b7
TT
65112020-01-14 Tom Tromey <tom@tromey.com>
6512
6513 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
6514
25e57356
TT
65152020-01-14 Tom Tromey <tom@tromey.com>
6516
6517 * nat/linux-btrace.c: Don't include <config.h>.
6518 * nat/linux-ptrace.c: Don't include <config.h>.
6519 * nat/x86-linux-dregs.c: Don't include <config.h>.
6520
05ea2a05
TT
65212020-01-14 Tom Tromey <tom@tromey.com>
6522
6523 * configure: Rebuild.
6524 * configure.ac: Move many checks to ../gdbsupport/common.m4.
6525
01027315
TT
65262020-01-14 Tom Tromey <tom@tromey.com>
6527
6528 * nat/x86-linux-dregs.c: Include configh.h.
6529 * nat/linux-ptrace.c: Include configh.h.
6530 * nat/linux-btrace.c: Include configh.h.
6531 * defs.h: Include config.h, bfd.h.
6532 * configure.ac: Don't source common.host.
6533 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
6534 * configure: Rebuild.
6535 * acinclude.m4: Update path.
6536 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
6537 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
6538 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
6539 (CLIBS): Add LIBSUPPORT.
6540 (CDEPS): Likewise.
6541 (COMMON_SFILES): Remove gdbsupport files.
6542 (HFILES_NO_SRCDIR): Likewise.
6543 (stamp-version): Update path to create-version.sh.
6544 (ALLDEPFILES): Remove gdbsupport files.
6545
b2ceabe8
TT
65462020-01-14 Tom Tromey <tom@tromey.com>
6547
6548 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
6549 USE_WIN32API when needed.
6550 * configure.ac (USE_WIN32API): Don't define.
6551 (WIN32LIBS): Use WIN32APILIBS.
6552 * configure: Rebuild.
6553
25c51f71
TT
65542020-01-14 Tom Tromey <tom@tromey.com>
6555
6556 * configure: Rebuild.
6557 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
6558
717c684d
BE
65592020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6560
6561 * skip.c (skip_function_command): Make skip w/o arguments use the
6562 name of the inlined function if pc is inside any inlined function.
6563
7da6a5b9
LM
65642020-01-14 Luis Machado <luis.machado@linaro.org>
6565
6566 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
6567 * infrun.c (resume_1): Likewise.
6568 (handle_inferior_event): Remove stale comment.
6569 * linux-nat.c (linux_nat_target::resume): Update comments.
6570 (save_stop_reason): Likewise.
6571 (linux_nat_filter_event): Likewise.
6572 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
6573
44e4c775
AB
65742020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6575
6576 * elfread.c (record_minimal_symbol): Set section index to 0 for
6577 non-allocatable sections.
6578
18a8505e
AT
6579
65802020-01-13 Ali Tamur <tamur@google.com>
6581
6582 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
6583 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
6584 to gdb::optional. Update comments.
6585 (dwo_file): Update comments.
6586 (read_attribute): Update API to take an additional out parameter,
6587 need_reprocess. This is used to mark attributes that need other
6588 attributes (e.g. str_offsets_base) for correct computation which may not
6589 have been read yet.
6590 (read_attribute_reprocess): New function declaration.
6591 (read_addr_index): Likewise.
6592 (read_dwo_str_index): Likewise.
6593 (read_stub_str_index): Likewise.
6594 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
6595 (lookup_addr_base): New function definition.
6596 (lookup_ranges_base): Likewise.
6597 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
6598 lookup_ranges_base.
6599 (init_cutu_and_read_dies): Update comments.
6600 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
6601 unit. This is used to inherit parent's str_offsets_base and addr_base.
6602 Update comments.
6603 (init_cutu_and_read_dies_simple): Reflect API changes.
6604 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
6605 (create_cus_hash_table): Change API to take parent compile unit.
6606 Reflect API changes.
6607 (open_and_init_dwo_file): Reflect API changes.
6608 (dwarf2_get_pc_bounds): Update comments.
6609 (dwarf2_record_block_ranges): Likewise.
6610 (read_full_die_1): Change implementation to reprocess attributes that
6611 need str_offsets_base and addr_base.
6612 (partial_die_info::read): Likewise.
6613 (read_attribute_reprocess): New function definition.
6614 (read_attribute_value): Change API to take an additional out parameter,
6615 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
6616 when a non-dwo compile unit has index based attributes.
6617 (read_attribute): Reflect API changes.
6618 (read_addr_index_1): Reflect API changes. Update comments.
6619 (dwarf2_read_addr_index_data): Reflect API changes.
6620 (dwarf2_read_addr_index): Likewise.
6621 (read_str_index): Change API and implementation. This becomes a helper
6622 to be used by the new string index related methods. Update error
6623 message and comments.
6624 (read_dwo_str_index): New function definition.
6625 (read_stub_str_index): Likewise.
6626 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
6627 * symfile.h (dwarf2_debug_sections): Likewise.
6628 * xcoffread.c (dwarf2_debug_sections): Likewise.
6629
0cac9354
SM
66302020-01-13 Simon Marchi <simon.marchi@efficios.com>
6631
6632 * gdbcore.h (struct core_fns) <core_read_registers>: Change
6633 core_reg_sect type to gdb_byte *.
6634 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
6635 * cris-tdep.c (fetch_core_registers): Likewise.
6636 * corelow.c (core_target::get_core_register_section): Change
6637 type of `contents` to gdb::byte_vector.
6638
9a6d629c
AB
66392020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6640
6641 * tui/tui-wingeneral.c (box_win): Position the title in the center
6642 of the border.
6643
d8b2f9e3
SM
66442020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6645
6646 * corelow.c (core_target::get_core_register_section): Use
6647 std::vector instead of alloca.
6648
bb564c58
SM
66492020-01-13 Simon Marchi <simon.marchi@efficios.com>
6650
6651 * warning.m4: Add -Wmissing-declarations to build_warnings.
6652 * configure: Re-generate.
6653
6b366111
SM
66542020-01-13 Simon Marchi <simon.marchi@efficios.com>
6655
6656 * python/python.c (init__gdb_module): Add declaration.
6657
6c265988
SM
66582020-01-13 Simon Marchi <simon.marchi@efficios.com>
6659
6660 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
6661 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
6662 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
6663 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
6664 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
6665 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
6666 * ada-exp.y (_initialize_ada_exp): Add declaration.
6667 * ada-lang.c (_initialize_ada_language): Add declaration.
6668 * ada-tasks.c (_initialize_tasks): Add declaration.
6669 * agent.c (_initialize_agent): Add declaration.
6670 * aix-thread.c (_initialize_aix_thread): Add declaration.
6671 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
6672 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
6673 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
6674 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
6675 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
6676 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6677 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
6678 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
6679 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
6680 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
6681 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
6682 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
6683 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
6684 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
6685 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
6686 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
6687 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
6688 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
6689 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
6690 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
6691 * annotate.c (_initialize_annotate): Add declaration.
6692 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
6693 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
6694 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
6695 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
6696 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
6697 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
6698 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
6699 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
6700 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
6701 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
6702 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
6703 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
6704 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6705 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
6706 * auto-load.c (_initialize_auto_load): Add declaration.
6707 * auxv.c (_initialize_auxv): Add declaration.
6708 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
6709 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
6710 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
6711 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
6712 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
6713 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
6714 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
6715 * breakpoint.c (_initialize_breakpoint): Add declaration.
6716 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
6717 * btrace.c (_initialize_btrace): Add declaration.
6718 * charset.c (_initialize_charset): Add declaration.
6719 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
6720 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6721 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6722 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
6723 * cli/cli-script.c (_initialize_cli_script): Add declaration.
6724 * cli/cli-style.c (_initialize_cli_style): Add declaration.
6725 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
6726 * coffread.c (_initialize_coffread): Add declaration.
6727 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
6728 * compile/compile.c (_initialize_compile): Add declaration.
6729 * complaints.c (_initialize_complaints): Add declaration.
6730 * completer.c (_initialize_completer): Add declaration.
6731 * copying.c (_initialize_copying): Add declaration.
6732 * corefile.c (_initialize_core): Add declaration.
6733 * corelow.c (_initialize_corelow): Add declaration.
6734 * cp-abi.c (_initialize_cp_abi): Add declaration.
6735 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
6736 * cp-support.c (_initialize_cp_support): Add declaration.
6737 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
6738 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
6739 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
6740 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
6741 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
6742 * ctfread.c (_initialize_ctfread): Add declaration.
6743 * d-lang.c (_initialize_d_language): Add declaration.
6744 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
6745 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
6746 * dbxread.c (_initialize_dbxread): Add declaration.
6747 * dcache.c (_initialize_dcache): Add declaration.
6748 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
6749 * disasm.c (_initialize_disasm): Add declaration.
6750 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
6751 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
6752 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
6753 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
6754 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
6755 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
6756 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
6757 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
6758 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
6759 * elfread.c (_initialize_elfread): Add declaration.
6760 * exec.c (_initialize_exec): Add declaration.
6761 * extension.c (_initialize_extension): Add declaration.
6762 * f-lang.c (_initialize_f_language): Add declaration.
6763 * f-valprint.c (_initialize_f_valprint): Add declaration.
6764 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
6765 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
6766 * filesystem.c (_initialize_filesystem): Add declaration.
6767 * findcmd.c (_initialize_mem_search): Add declaration.
6768 * findvar.c (_initialize_findvar): Add declaration.
6769 * fork-child.c (_initialize_fork_child): Add declaration.
6770 * frame-base.c (_initialize_frame_base): Add declaration.
6771 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6772 * frame.c (_initialize_frame): Add declaration.
6773 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
6774 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
6775 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
6776 * gcore.c (_initialize_gcore): Add declaration.
6777 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
6778 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
6779 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
6780 * gdbarch.c (_initialize_gdbarch): Add declaration.
6781 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
6782 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
6783 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
6784 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
6785 * go-lang.c (_initialize_go_language): Add declaration.
6786 * go32-nat.c (_initialize_go32_nat): Add declaration.
6787 * guile/guile.c (_initialize_guile): Add declaration.
6788 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6789 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
6790 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
6791 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
6792 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
6793 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
6794 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
6795 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
6796 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
6797 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
6798 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
6799 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
6800 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
6801 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
6802 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
6803 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
6804 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
6805 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
6806 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
6807 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
6808 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
6809 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
6810 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
6811 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
6812 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
6813 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
6814 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
6815 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
6816 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
6817 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
6818 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
6819 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
6820 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
6821 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
6822 * infcall.c (_initialize_infcall): Add declaration.
6823 * infcmd.c (_initialize_infcmd): Add declaration.
6824 * inflow.c (_initialize_inflow): Add declaration.
6825 * infrun.c (_initialize_infrun): Add declaration.
6826 * interps.c (_initialize_interpreter): Add declaration.
6827 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
6828 * jit.c (_initialize_jit): Add declaration.
6829 * language.c (_initialize_language): Add declaration.
6830 * linux-fork.c (_initialize_linux_fork): Add declaration.
6831 * linux-nat.c (_initialize_linux_nat): Add declaration.
6832 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
6833 * linux-thread-db.c (_initialize_thread_db): Add declaration.
6834 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
6835 * m2-lang.c (_initialize_m2_language): Add declaration.
6836 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
6837 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
6838 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
6839 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
6840 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6841 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
6842 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
6843 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
6844 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
6845 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6846 * machoread.c (_initialize_machoread): Add declaration.
6847 * macrocmd.c (_initialize_macrocmd): Add declaration.
6848 * macroscope.c (_initialize_macroscope): Add declaration.
6849 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
6850 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
6851 * maint.c (_initialize_maint_cmds): Add declaration.
6852 * mdebugread.c (_initialize_mdebugread): Add declaration.
6853 * memattr.c (_initialize_mem): Add declaration.
6854 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
6855 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
6856 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
6857 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
6858 * mi/mi-main.c (_initialize_mi_main): Add declaration.
6859 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
6860 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
6861 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
6862 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
6863 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
6864 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
6865 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
6866 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
6867 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
6868 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6869 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
6870 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
6871 * mipsread.c (_initialize_mipsread): Add declaration.
6872 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
6873 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
6874 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
6875 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
6876 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
6877 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
6878 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
6879 * nto-procfs.c (_initialize_procfs): Add declaration.
6880 * objc-lang.c (_initialize_objc_language): Add declaration.
6881 * observable.c (_initialize_observer): Add declaration.
6882 * opencl-lang.c (_initialize_opencl_language): Add declaration.
6883 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
6884 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
6885 * osabi.c (_initialize_gdb_osabi): Add declaration.
6886 * osdata.c (_initialize_osdata): Add declaration.
6887 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6888 * parse.c (_initialize_parse): Add declaration.
6889 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
6890 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
6891 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
6892 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
6893 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
6894 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
6895 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
6896 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
6897 * printcmd.c (_initialize_printcmd): Add declaration.
6898 * probe.c (_initialize_probe): Add declaration.
6899 * proc-api.c (_initialize_proc_api): Add declaration.
6900 * proc-events.c (_initialize_proc_events): Add declaration.
6901 * proc-service.c (_initialize_proc_service): Add declaration.
6902 * procfs.c (_initialize_procfs): Add declaration.
6903 * producer.c (_initialize_producer): Add declaration.
6904 * psymtab.c (_initialize_psymtab): Add declaration.
6905 * python/python.c (_initialize_python): Add declaration.
6906 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
6907 * record-btrace.c (_initialize_record_btrace): Add declaration.
6908 * record-full.c (_initialize_record_full): Add declaration.
6909 * record.c (_initialize_record): Add declaration.
6910 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
6911 * regcache.c (_initialize_regcache): Add declaration.
6912 * reggroups.c (_initialize_reggroup): Add declaration.
6913 * remote-notif.c (_initialize_notif): Add declaration.
6914 * remote-sim.c (_initialize_remote_sim): Add declaration.
6915 * remote.c (_initialize_remote): Add declaration.
6916 * reverse.c (_initialize_reverse): Add declaration.
6917 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
6918 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
6919 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
6920 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
6921 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
6922 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
6923 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
6924 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
6925 Add declaration.
6926 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
6927 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
6928 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
6929 * rust-exp.y (_initialize_rust_exp): Add declaration.
6930 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
6931 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
6932 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
6933 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
6934 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
6935 * score-tdep.c (_initialize_score_tdep): Add declaration.
6936 * ser-go32.c (_initialize_ser_dos): Add declaration.
6937 * ser-mingw.c (_initialize_ser_windows): Add declaration.
6938 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
6939 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
6940 * ser-uds.c (_initialize_ser_socket): Add declaration.
6941 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
6942 * serial.c (_initialize_serial): Add declaration.
6943 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
6944 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
6945 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
6946 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
6947 * skip.c (_initialize_step_skip): Add declaration.
6948 * sol-thread.c (_initialize_sol_thread): Add declaration.
6949 * solib-aix.c (_initialize_solib_aix): Add declaration.
6950 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
6951 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
6952 * solib-frv.c (_initialize_frv_solib): Add declaration.
6953 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6954 * solib-target.c (_initialize_solib_target): Add declaration.
6955 * solib.c (_initialize_solib): Add declaration.
6956 * source-cache.c (_initialize_source_cache): Add declaration.
6957 * source.c (_initialize_source): Add declaration.
6958 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
6959 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
6960 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
6961 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
6962 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
6963 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
6964 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
6965 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
6966 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
6967 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
6968 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
6969 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
6970 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
6971 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
6972 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
6973 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
6974 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
6975 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
6976 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
6977 * stabsread.c (_initialize_stabsread): Add declaration.
6978 * stack.c (_initialize_stack): Add declaration.
6979 * stap-probe.c (_initialize_stap_probe): Add declaration.
6980 * std-regs.c (_initialize_frame_reg): Add declaration.
6981 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
6982 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
6983 * symfile.c (_initialize_symfile): Add declaration.
6984 * symmisc.c (_initialize_symmisc): Add declaration.
6985 * symtab.c (_initialize_symtab): Add declaration.
6986 * target.c (_initialize_target): Add declaration.
6987 * target-connection.c (_initialize_target_connection): Add
6988 declaration.
6989 * target-dcache.c (_initialize_target_dcache): Add declaration.
6990 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
6991 * thread.c (_initialize_thread): Add declaration.
6992 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
6993 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
6994 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
6995 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
6996 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
6997 * tracectf.c (_initialize_ctf): Add declaration.
6998 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
6999 * tracefile.c (_initialize_tracefile): Add declaration.
7000 * tracepoint.c (_initialize_tracepoint): Add declaration.
7001 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
7002 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
7003 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
7004 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
7005 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
7006 * tui/tui-win.c (_initialize_tui_win): Add declaration.
7007 * tui/tui.c (_initialize_tui): Add declaration.
7008 * typeprint.c (_initialize_typeprint): Add declaration.
7009 * ui-style.c (_initialize_ui_style): Add declaration.
7010 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
7011 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
7012 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
7013 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
7014 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
7015 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
7016 * unittests/filtered_iterator-selftests.c
7017 (_initialize_filtered_iterator_selftests): Add declaration.
7018 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
7019 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
7020 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
7021 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
7022 * unittests/main-thread-selftests.c
7023 (_initialize_main_thread_selftests): Add declaration.
7024 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
7025 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
7026 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
7027 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
7028 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
7029 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
7030 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
7031 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
7032 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
7033 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
7034 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
7035 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
7036 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
7037 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
7038 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
7039 declaration.
7040 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
7041 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
7042 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
7043 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
7044 * user-regs.c (_initialize_user_regs): Add declaration.
7045 * utils.c (_initialize_utils): Add declaration.
7046 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
7047 * valops.c (_initialize_valops): Add declaration.
7048 * valprint.c (_initialize_valprint): Add declaration.
7049 * value.c (_initialize_values): Add declaration.
7050 * varobj.c (_initialize_varobj): Add declaration.
7051 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
7052 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
7053 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
7054 * windows-nat.c (_initialize_windows_nat): Add declaration.
7055 (_initialize_check_for_gdb_ini): Add declaration.
7056 (_initialize_loadable): Add declaration.
7057 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
7058 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
7059 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
7060 * xcoffread.c (_initialize_xcoffread): Add declaration.
7061 * xml-support.c (_initialize_xml_support): Add declaration.
7062 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
7063 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
7064 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
7065 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
7066
e2de1eec
SM
70672020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7068
7069 * regformats/regdat.sh: Generate declaration for init function.
7070
e0037b4c
SM
70712020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7072
7073 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
7074 up.
7075 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
7076 close_one_inferior>: New methods.
7077 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
7078 pass down target to find_inferior_pid.
7079 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
7080 Pass down target to find_inferior_ptid.
7081 (gdbsim_target::create_inferior): Pass down target to
7082 add_thread_silent.
7083 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
7084 target down to find_inferior_ptid and switch_to_thread.
7085 (gdbsim_target::close): Update to call close_one_inferior.
7086 (struct resume_data): Remove.
7087 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
7088 directly, rather than through a void pointer.
7089 (gdbsim_target::resume): Update to call resume_one_inferior.
7090
58920b5b
SM
70912020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7092
7093 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
7094
4ec89149
PA
70952020-01-12 Pedro Alves <palves@redhat.com>
7096
7097 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
7098 directly for the current inferior instead of
7099 discard_all_inferiors.
7100 (discard_all_inferiors): Delete.
7101
7c392d1d
TT
71022020-01-11 Tom Tromey <tom@tromey.com>
7103
7104 * tui/tui-wingeneral.c (box_win): Check cli_styling.
7105 * tui/tui-winsource.c (tui_source_window_base::refill): Use
7106 deprecated_safe_get_selected_frame.
7107
d9ebdab7
TBA
71082020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7109
7110 * inferior.c (print_inferior): Switch inferior before printing it.
7111
f3c469b9
PA
71122020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
7113 Pedro Alves <palves@redhat.com>
7114
7115 * progspace-and-thread.c (switch_to_program_space_and_thread):
7116 Assert there's an inferior for PSPACE. Use
7117 switch_to_inferior_no_thread to switch the inferior too.
7118 * progspace.c (program_space::~program_space): Call
7119 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
7120 (program_space::free_all_objfiles): Don't call clear_symtab_users
7121 here.
7122 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
7123
65c574f6
PA
71242020-01-10 Pedro Alves <palves@redhat.com>
7125
7126 * NEWS: Mention multi-target debugging, "info connections", and
7127 "add-inferior -no-connection".
7128
2f4fcf00
PA
71292020-01-10 Pedro Alves <palves@redhat.com>
7130
7131 * infrun.c: Include "target-connection.h".
7132 (check_multi_target_resumption): New.
7133 (proceed): Call it.
7134 * target-connection.c (make_target_connection_string): Make
7135 extern.
7136 * target-connection.h (make_target_connection_string): Declare.
7137
121b3efd
PA
71382020-01-10 Pedro Alves <palves@redhat.com>
7139
7140 * Makefile.in (COMMON_SFILES): Add target-connection.c.
7141 * inferior.c (uiout_field_connection): New function.
7142 (print_inferior): Add new "connection-id" column.
7143 (add_inferior_command): Show connection number/string of added
7144 inferior.
7145 * process-stratum-target.h
7146 (process_stratum_target::connection_string): New virtual method.
7147 (process_stratum_target::connection_number): New field.
7148 * remote.c (remote_target::connection_string): New override.
7149 * target-connection.c: New file.
7150 * target-connection.h: New file.
7151 * target.c (decref_target): Remove process_stratum targets from
7152 the connection list.
7153 (target_stack::push): Add process_stratum targets to the
7154 connection list.
7155
4f837581
PA
71562020-01-10 Pedro Alves <palves@redhat.com>
7157
7158 Revert:
7159 2016-04-12 Pedro Alves <palves@redhat.com>
7160 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
7161 Remove references to name.
7162 * serial.h (struct serial) <name>: Delete.
7163
f4ec508e
PA
71642020-01-10 Pedro Alves <palves@redhat.com>
7165
7166 * gdbarch-selftests.c (register_to_value_test): Remove "target
7167 already pushed" check.
7168
5b6d1e4f
PA
71692020-01-10 Pedro Alves <palves@redhat.com>
7170 John Baldwin <jhb@FreeBSD.org>
7171
7172 * aarch64-linux-nat.c
7173 (aarch64_linux_nat_target::thread_architecture): Adjust.
7174 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
7175 (task_command_1): Likewise.
7176 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
7177 (aix_thread_target::wait, aix_thread_target::fetch_registers)
7178 (aix_thread_target::store_registers)
7179 (aix_thread_target::thread_alive): Adjust.
7180 * amd64-fbsd-tdep.c: Include "inferior.h".
7181 (amd64fbsd_get_thread_local_address): Pass down target.
7182 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
7183 thread's gdbarch instead of target_gdbarch.
7184 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
7185 get_last_target_status.
7186 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
7187 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
7188 inferiors.
7189 (update_inserted_breakpoint_locations): Skip if inferiors with no
7190 execution.
7191 (update_global_location_list): When handling moribund locations,
7192 find representative inferior for location's pspace, and use thread
7193 count of its process_stratum target.
7194 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
7195 * bsd-uthread.c (bsd_uthread_target::wait): Use
7196 as_process_stratum_target and adjust thread_change_ptid and
7197 add_thread calls.
7198 (bsd_uthread_target::update_thread_list): Use
7199 as_process_stratum_target and adjust find_thread_ptid,
7200 thread_change_ptid and add_thread calls.
7201 * btrace.c (maint_btrace_packet_history_cmd): Adjust
7202 find_thread_ptid call.
7203 * corelow.c (add_to_thread_list): Adjust add_thread call.
7204 (core_target_open): Adjust add_thread_silent and thread_count
7205 calls.
7206 (core_target::pid_to_str): Adjust find_inferior_ptid call.
7207 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
7208 * event-top.c (async_disconnect): Pop targets from all inferiors.
7209 * exec.c (add_target_sections): Push exec target on all inferiors
7210 sharing the program space.
7211 (remove_target_sections): Remove the exec target from all
7212 inferiors sharing the program space.
7213 (exec_on_vfork): New.
7214 * exec.h (exec_on_vfork): Declare.
7215 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
7216 Pass it down.
7217 (fbsd_nat_target::update_thread_list): Adjust.
7218 (fbsd_nat_target::resume): Adjust.
7219 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
7220 down.
7221 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
7222 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
7223 get_thread_arch_regcache call.
7224 * fork-child.c (gdb_startup_inferior): Pass target down to
7225 startup_inferior and set_executing.
7226 * gdbthread.h (struct process_stratum_target): Forward declare.
7227 (add_thread, add_thread_silent, add_thread_with_info)
7228 (in_thread_list): Add process_stratum_target parameter.
7229 (find_thread_ptid(inferior*, ptid_t)): New overload.
7230 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
7231 parameter.
7232 (all_threads()): Delete overload.
7233 (all_threads, all_non_exited_threads): Add process_stratum_target
7234 parameter.
7235 (all_threads_safe): Use brace initialization.
7236 (thread_count): Add process_stratum_target parameter.
7237 (set_resumed, set_running, set_stop_requested, set_executing)
7238 (threads_are_executing, finish_thread_state): Add
7239 process_stratum_target parameter.
7240 (switch_to_thread): Use is_current_thread.
7241 * i386-fbsd-tdep.c: Include "inferior.h".
7242 (i386fbsd_get_thread_local_address): Pass down target.
7243 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
7244 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
7245 have_inferiors check.
7246 * inf-ptrace.c (inf_ptrace_target::create_inferior)
7247 (inf_ptrace_target::attach): Adjust.
7248 * infcall.c (run_inferior_call): Adjust.
7249 * infcmd.c (run_command_1): Pass target to
7250 scoped_finish_thread_state.
7251 (proceed_thread_callback): Skip inferiors with no execution.
7252 (continue_command): Rename 'all_threads' local to avoid hiding
7253 'all_threads' function. Adjust get_last_target_status call.
7254 (prepare_one_step): Adjust set_running call.
7255 (signal_command): Use user_visible_resume_target. Compare thread
7256 pointers instead of inferior_ptid.
7257 (info_program_command): Adjust to pass down target.
7258 (attach_command): Mark target's 'thread_executing' flag.
7259 (stop_current_target_threads_ns): New, factored out from ...
7260 (interrupt_target_1): ... this. Switch inferior before making
7261 target calls.
7262 * inferior-iter.h
7263 (struct all_inferiors_iterator, struct all_inferiors_range)
7264 (struct all_inferiors_safe_range)
7265 (struct all_non_exited_inferiors_range): Filter on
7266 process_stratum_target too. Remove explicit.
7267 * inferior.c (inferior::inferior): Push dummy target on target
7268 stack.
7269 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
7270 Add process_stratum_target parameter, and pass it down.
7271 (have_live_inferiors): Adjust.
7272 (switch_to_inferior_and_push_target): New.
7273 (add_inferior_command, clone_inferior_command): Handle
7274 "-no-connection" parameter. Use
7275 switch_to_inferior_and_push_target.
7276 (_initialize_inferior): Mention "-no-connection" option in
7277 the help of "add-inferior" and "clone-inferior" commands.
7278 * inferior.h: Include "process-stratum-target.h".
7279 (interrupt_target_1): Use bool.
7280 (struct inferior) <push_target, unpush_target, target_is_pushed,
7281 find_target_beneath, top_target, process_target, target_at,
7282 m_stack>: New.
7283 (discard_all_inferiors): Delete.
7284 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
7285 (all_inferiors, all_non_exited_inferiors): Add
7286 process_stratum_target parameter.
7287 * infrun.c: Include "gdb_select.h" and <unordered_map>.
7288 (target_last_proc_target): New global.
7289 (follow_fork_inferior): Push target on new inferior. Pass target
7290 to add_thread_silent. Call exec_on_vfork. Handle target's
7291 reference count.
7292 (follow_fork): Adjust get_last_target_status call. Also consider
7293 target.
7294 (follow_exec): Push target on new inferior.
7295 (struct execution_control_state) <target>: New field.
7296 (user_visible_resume_target): New.
7297 (do_target_resume): Call target_async.
7298 (resume_1): Set target's threads_executing flag. Consider resume
7299 target.
7300 (commit_resume_all_targets): New.
7301 (proceed): Also consider resume target. Skip threads of inferiors
7302 with no execution. Commit resumtion in all targets.
7303 (start_remote): Pass current inferior to wait_for_inferior.
7304 (infrun_thread_stop_requested): Consider target as well. Pass
7305 thread_info pointer to clear_inline_frame_state instead of ptid.
7306 (infrun_thread_thread_exit): Consider target as well.
7307 (random_pending_event_thread): New inferior parameter. Use it.
7308 (do_target_wait): Rename to ...
7309 (do_target_wait_1): ... this. Add inferior parameter, and pass it
7310 down.
7311 (threads_are_resumed_pending_p, do_target_wait): New.
7312 (prepare_for_detach): Adjust calls.
7313 (wait_for_inferior): New inferior parameter. Handle it. Use
7314 do_target_wait_1 instead of do_target_wait.
7315 (fetch_inferior_event): Adjust. Switch to representative
7316 inferior. Pass target down.
7317 (set_last_target_status): Add process_stratum_target parameter.
7318 Save target in global.
7319 (get_last_target_status): Add process_stratum_target parameter and
7320 handle it.
7321 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
7322 (context_switch): Check inferior_ptid == null_ptid before calling
7323 inferior_thread().
7324 (get_inferior_stop_soon): Pass down target.
7325 (wait_one): Rename to ...
7326 (poll_one_curr_target): ... this.
7327 (struct wait_one_event): New.
7328 (wait_one): New.
7329 (stop_all_threads): Adjust.
7330 (handle_no_resumed, handle_inferior_event): Adjust to consider the
7331 event's target.
7332 (switch_back_to_stepped_thread): Also consider target.
7333 (print_stop_event): Update.
7334 (normal_stop): Update. Also consider the resume target.
7335 * infrun.h (wait_for_inferior): Remove declaration.
7336 (user_visible_resume_target): New declaration.
7337 (get_last_target_status, set_last_target_status): New
7338 process_stratum_target parameter.
7339 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
7340 process_stratum_target parameter, and use it.
7341 (clear_inline_frame_state (thread_info*)): New.
7342 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
7343 process_stratum_target parameter.
7344 (clear_inline_frame_state (thread_info*)): Declare.
7345 * linux-fork.c (delete_checkpoint_command): Pass target down to
7346 find_thread_ptid.
7347 (checkpoint_command): Adjust.
7348 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
7349 instead of just tweaking inferior_ptid.
7350 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
7351 (exit_lwp): Pass target down to find_thread_ptid.
7352 (attach_proc_task_lwp_callback): Pass target down to
7353 add_thread/set_running/set_executing.
7354 (linux_nat_target::attach): Pass target down to
7355 thread_change_ptid.
7356 (get_detach_signal): Pass target down to find_thread_ptid.
7357 Consider last target status's target.
7358 (linux_resume_one_lwp_throw, resume_lwp)
7359 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
7360 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
7361 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
7362 (linux_nat_target::async_wait_fd): New.
7363 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
7364 target down.
7365 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
7366 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
7367 * linux-thread-db.c (struct thread_db_info::process_target): New
7368 field.
7369 (add_thread_db_info): Save target.
7370 (get_thread_db_info): New process_stratum_target parameter. Also
7371 match target.
7372 (delete_thread_db_info): New process_stratum_target parameter.
7373 Also match target.
7374 (thread_from_lwp): Adjust to pass down target.
7375 (thread_db_notice_clone): Pass down target.
7376 (check_thread_db_callback): Pass down target.
7377 (try_thread_db_load_1): Always push the thread_db target.
7378 (try_thread_db_load, record_thread): Pass target down.
7379 (thread_db_target::detach): Pass target down. Always unpush the
7380 thread_db target.
7381 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
7382 target down. Always unpush the thread_db target.
7383 (find_new_threads_callback, thread_db_find_new_threads_2)
7384 (thread_db_target::update_thread_list): Pass target down.
7385 (thread_db_target::pid_to_str): Pass current inferior down.
7386 (thread_db_target::get_thread_local_address): Pass target down.
7387 (thread_db_target::resume, maintenance_check_libthread_db): Pass
7388 target down.
7389 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
7390 * procfs.c (procfs_target::procfs_init_inferior): Declare.
7391 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
7392 (procfs_init_inferior): Rename to ...
7393 (procfs_target::procfs_init_inferior): ... this and adjust.
7394 (procfs_target::create_inferior, procfs_notice_thread)
7395 (procfs_do_thread_registers): Adjust.
7396 * ppc-fbsd-tdep.c: Include "inferior.h".
7397 (ppcfbsd_get_thread_local_address): Pass down target.
7398 * proc-service.c (ps_xfer_memory): Switch current inferior and
7399 program space as well.
7400 (get_ps_regcache): Pass target down.
7401 * process-stratum-target.c
7402 (process_stratum_target::thread_address_space)
7403 (process_stratum_target::thread_architecture): Pass target down.
7404 * process-stratum-target.h
7405 (process_stratum_target::threads_executing): New field.
7406 (as_process_stratum_target): New.
7407 * ravenscar-thread.c
7408 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
7409 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
7410 down.
7411 * record-btrace.c (record_btrace_target::info_record): Adjust.
7412 (record_btrace_target::record_method)
7413 (record_btrace_target::record_is_replaying)
7414 (record_btrace_target::fetch_registers)
7415 (get_thread_current_frame_id, record_btrace_target::resume)
7416 (record_btrace_target::wait, record_btrace_target::stop): Pass
7417 target down.
7418 * record-full.c (record_full_wait_1): Switch to event thread.
7419 Pass target down.
7420 * regcache.c (regcache::regcache)
7421 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
7422 process_stratum_target parameter and handle it.
7423 (current_thread_target): New global.
7424 (get_thread_regcache): Add process_stratum_target parameter and
7425 handle it. Switch inferior before calling target method.
7426 (get_thread_regcache): Pass target down.
7427 (get_thread_regcache_for_ptid): Pass target down.
7428 (registers_changed_ptid): Add process_stratum_target parameter and
7429 handle it.
7430 (registers_changed_thread, registers_changed): Pass target down.
7431 (test_get_thread_arch_aspace_regcache): New.
7432 (current_regcache_test): Define a couple local test_target_ops
7433 instances and use them for testing.
7434 (readwrite_regcache): Pass process_stratum_target parameter.
7435 (cooked_read_test, cooked_write_test): Pass mock_target down.
7436 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
7437 (get_thread_arch_aspace_regcache): Add process_stratum_target
7438 parameter.
7439 (regcache::target): New method.
7440 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
7441 (regcache::registers_changed_ptid): Add process_stratum_target
7442 parameter.
7443 (regcache::m_target): New field.
7444 (registers_changed_ptid): Add process_stratum_target parameter.
7445 * remote.c (remote_state::supports_vCont_probed): New field.
7446 (remote_target::async_wait_fd): New method.
7447 (remote_unpush_and_throw): Add remote_target parameter.
7448 (get_current_remote_target): Adjust.
7449 (remote_target::remote_add_inferior): Push target.
7450 (remote_target::remote_add_thread)
7451 (remote_target::remote_notice_new_inferior)
7452 (get_remote_thread_info): Pass target down.
7453 (remote_target::update_thread_list): Skip threads of inferiors
7454 bound to other targets. (remote_target::close): Don't discard
7455 inferiors. (remote_target::add_current_inferior_and_thread)
7456 (remote_target::process_initial_stop_replies)
7457 (remote_target::start_remote)
7458 (remote_target::remote_serial_quit_handler): Pass down target.
7459 (remote_target::remote_unpush_target): New remote_target
7460 parameter. Unpush the target from all inferiors.
7461 (remote_target::remote_unpush_and_throw): New remote_target
7462 parameter. Pass it down.
7463 (remote_target::open_1): Check whether the current inferior has
7464 execution instead of checking whether any inferior is live. Pass
7465 target down.
7466 (remote_target::remote_detach_1): Pass down target. Use
7467 remote_unpush_target.
7468 (extended_remote_target::attach): Pass down target.
7469 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
7470 (remote_target::append_resumption): Pass down target.
7471 (remote_target::append_pending_thread_resumptions)
7472 (remote_target::remote_resume_with_hc, remote_target::resume)
7473 (remote_target::commit_resume): Pass down target.
7474 (remote_target::remote_stop_ns): Check supports_vCont_probed.
7475 (remote_target::interrupt_query)
7476 (remote_target::remove_new_fork_children)
7477 (remote_target::check_pending_events_prevent_wildcard_vcont)
7478 (remote_target::remote_parse_stop_reply)
7479 (remote_target::process_stop_reply): Pass down target.
7480 (first_remote_resumed_thread): New remote_target parameter. Pass
7481 it down.
7482 (remote_target::wait_as): Pass down target.
7483 (unpush_and_perror): New remote_target parameter. Pass it down.
7484 (remote_target::readchar, remote_target::remote_serial_write)
7485 (remote_target::getpkt_or_notif_sane_1)
7486 (remote_target::kill_new_fork_children, remote_target::kill): Pass
7487 down target.
7488 (remote_target::mourn_inferior): Pass down target. Use
7489 remote_unpush_target.
7490 (remote_target::core_of_thread)
7491 (remote_target::remote_btrace_maybe_reopen): Pass down target.
7492 (remote_target::pid_to_exec_file)
7493 (remote_target::thread_handle_to_thread_info): Pass down target.
7494 (remote_target::async_wait_fd): New.
7495 * riscv-fbsd-tdep.c: Include "inferior.h".
7496 (riscv_fbsd_get_thread_local_address): Pass down target.
7497 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
7498 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
7499 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
7500 Adjust.
7501 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
7502 * solib-svr4.c (enable_break): Pass down target.
7503 * spu-multiarch.c (parse_spufs_run): Pass down target.
7504 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
7505 * target-delegates.c: Regenerate.
7506 * target.c (g_target_stack): Delete.
7507 (current_top_target): Return the current inferior's top target.
7508 (target_has_execution_1): Refer to the passed-in inferior's top
7509 target.
7510 (target_supports_terminal_ours): Check whether the initial
7511 inferior was already created.
7512 (decref_target): New.
7513 (target_stack::push): Incref/decref the target.
7514 (push_target, push_target, unpush_target): Adjust.
7515 (target_stack::unpush): Defref target.
7516 (target_is_pushed): Return bool. Adjust to refer to the current
7517 inferior's target stack.
7518 (dispose_inferior): Delete, and inline parts ...
7519 (target_preopen): ... here. Only dispose of the current inferior.
7520 (target_detach): Hold strong target reference while detaching.
7521 Pass target down.
7522 (target_thread_name): Add assertion.
7523 (target_resume): Pass down target.
7524 (target_ops::beneath, find_target_at): Adjust to refer to the
7525 current inferior's target stack.
7526 (get_dummy_target): New.
7527 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
7528 has a thread running.
7529 (initialize_targets): Rename to ...
7530 (_initialize_target): ... this.
7531 * target.h: Include "gdbsupport/refcounted-object.h".
7532 (struct target_ops): Inherit refcounted_object.
7533 (target_ops::shortname, target_ops::longname): Make const.
7534 (target_ops::async_wait_fd): New method.
7535 (decref_target): Declare.
7536 (struct target_ops_ref_policy): New.
7537 (target_ops_ref): New typedef.
7538 (get_dummy_target): Declare function.
7539 (target_is_pushed): Return bool.
7540 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
7541 (all_matching_threads_iterator::all_matching_threads_iterator):
7542 Handle filter target.
7543 * thread-iter.h (struct all_matching_threads_iterator, struct
7544 all_matching_threads_range, class all_non_exited_threads_range):
7545 Filter by target too. Remove explicit.
7546 * thread.c (threads_executing): Delete.
7547 (inferior_thread): Pass down current inferior.
7548 (clear_thread_inferior_resources): Pass down thread pointer
7549 instead of ptid_t.
7550 (add_thread_silent, add_thread_with_info, add_thread): Add
7551 process_stratum_target parameter. Use it for thread and inferior
7552 searches.
7553 (is_current_thread): New.
7554 (thread_info::deletable): Use it.
7555 (find_thread_ptid, thread_count, in_thread_list)
7556 (thread_change_ptid, set_resumed, set_running): New
7557 process_stratum_target parameter. Pass it down.
7558 (set_executing): New process_stratum_target parameter. Pass it
7559 down. Adjust reference to 'threads_executing'.
7560 (threads_are_executing): New process_stratum_target parameter.
7561 Adjust reference to 'threads_executing'.
7562 (set_stop_requested, finish_thread_state): New
7563 process_stratum_target parameter. Pass it down.
7564 (switch_to_thread): Also match inferior.
7565 (switch_to_thread): New process_stratum_target parameter. Pass it
7566 down.
7567 (update_threads_executing): Reimplement.
7568 * top.c (quit_force): Pop targets from all inferior.
7569 (gdb_init): Don't call initialize_targets.
7570 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
7571 Declare.
7572 (windows_add_thread, windows_delete_thread): Adjust.
7573 (get_windows_debug_event): Rename to ...
7574 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
7575 * tracefile-tfile.c (tfile_target_open): Pass down target.
7576 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
7577 Forward declare.
7578 (switch_to_thread): Add process_stratum_target parameter.
7579 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
7580 parameter. Use it.
7581 (mi_on_resume): Pass target down.
7582 * nat/fork-inferior.c (startup_inferior): Add
7583 process_stratum_target parameter. Pass it down.
7584 * nat/fork-inferior.h (startup_inferior): Add
7585 process_stratum_target parameter.
7586 * python/py-threadevent.c (py_get_event_thread): Pass target down.
7587
75c6c844
PA
75882020-01-10 Pedro Alves <palves@redhat.com>
7589
7590 * remote.c (remote_target::start_remote): Don't set inferior_ptid
7591 directly. Instead find the first thread in the thread list and
7592 use switch_to_thread.
7593
78f2c40a
PA
75942020-01-10 Pedro Alves <palves@redhat.com>
7595
7596 * remote.c (remote_target::remote_add_inferior): Don't bind a
7597 process to the current inferior if the current inferior is already
7598 bound to a process.
7599
e7af6c70
TBA
76002020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7601 Pedro Alves <palves@redhat.com>
7602
7603 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
7604 If no process is specified, return null_ptid instead of
7605 inferior_ptid.
7606 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
7607 TARGET_WAITKIND_SIGNALLED with no pid.
7608
31ba933e
PA
76092020-01-10 Pedro Alves <palves@redhat.com>
7610
7611 * remote.c (first_remote_resumed_thread): New.
7612 (remote_target::wait_as): Use it as default event_ptid instead of
7613 inferior_ptid.
7614
735fc2ca
PA
76152020-01-10 Pedro Alves <palves@redhat.com>
7616
7617 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
7618
c17e02e1
PA
76192020-01-10 Pedro Alves <palves@redhat.com>
7620
7621 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
7622 not -1.
7623
ab1ddbcf
PA
76242020-01-10 Pedro Alves <palves@redhat.com>
7625
7626 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
7627 ptid to get_last_target_status.
7628 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
7629 ptid to get_last_target_status.
7630 * infcmd.c (continue_command): Don't pass a target_waitstatus to
7631 get_last_target_status.
7632 (info_program_command): Don't pass a target_waitstatus to
7633 get_last_target_status.
7634 * infrun.c (init_wait_for_inferior): Use
7635 nullify_last_target_wait_ptid.
7636 (get_last_target_status): Handle nullptr arguments.
7637 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
7638 (print_stop_event): Don't pass a ptid to get_last_target_status.
7639 (normal_stop): Don't pass a ptid to get_last_target_status.
7640 * infrun.h (get_last_target_status, set_last_target_status): Move
7641 comments here and update.
7642 (nullify_last_target_wait_ptid): Declare.
7643 * linux-fork.c (fork_load_infrun_state): Remove local extern
7644 declaration of nullify_last_target_wait_ptid.
7645 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
7646 to get_last_target_status.
7647
f3f8ece4
PA
76482020-01-10 Pedro Alves <palves@redhat.com>
7649
7650 * gdbthread.h (scoped_restore_current_thread)
7651 <dont_restore, restore, m_dont_restore>: Declare.
7652 * thread.c (thread_alive): Add assertion. Return bool.
7653 (switch_to_thread_if_alive): New.
7654 (prune_threads): Switch inferior/thread.
7655 (print_thread_info_1): Switch thread before calling target methods.
7656 (scoped_restore_current_thread::restore): New, factored out from
7657 ...
7658 (scoped_restore_current_thread::~scoped_restore_current_thread):
7659 ... this.
7660 (scoped_restore_current_thread::scoped_restore_current_thread):
7661 Add assertion.
7662 (thread_apply_all_command, thread_select): Use
7663 switch_to_thread_if_alive.
7664 * infrun.c (proceed, restart_threads, handle_signal_stop)
7665 (switch_back_to_stepped_thread): Switch current thread before
7666 calling target methods.
7667
db2d40f7
PA
76682020-01-10 Pedro Alves <palves@redhat.com>
7669
7670 * inferior.c (switch_to_inferior_no_thread): New function,
7671 factored out from ...
7672 (inferior_command): ... here.
7673 * inferior.h (switch_to_inferior_no_thread): Declare.
7674 * mi/mi-main.c (run_one_inferior): Use
7675 switch_to_inferior_no_thread.
7676
bd420a2d
PA
76772020-01-10 Pedro Alves <palves@redhat.com>
7678
7679 * infcmd.c (kill_command): Remove dead code.
7680
ddf5db90
PA
76812020-01-10 Pedro Alves <palves@redhat.com>
7682
7683 * remote.c (remote_target::mourn_inferior): No longer check
7684 whether the target is running.
7685
5018ce90
PA
76862020-01-10 Pedro Alves <palves@redhat.com>
7687
7688 * corelow.c (core_target::has_execution): Change parameter type to
7689 inferior pointer.
7690 * inferior.c (number_of_live_inferiors): Use
7691 inferior::has_execution instead of target_has_execution_1.
7692 * inferior.h (inferior::has_execution): New.
7693 * linux-thread-db.c (thread_db_target::update_thread_list): Use
7694 inferior::has_execution instead of target_has_execution_1.
7695 * process-stratum-target.c
7696 (process_stratum_target::has_execution): Change parameter type to
7697 inferior pointer. Check the inferior's PID instead of
7698 inferior_ptid.
7699 * process-stratum-target.h
7700 (process_stratum_target::has_execution): Change parameter type to
7701 inferior pointer.
7702 * record-full.c (record_full_core_target::has_execution): Change
7703 parameter type to inferior pointer.
7704 * target.c (target_has_execution_1): Change parameter type to
7705 inferior pointer.
7706 (target_has_execution_current): Adjust.
7707 * target.h (target_ops::has_execution): Change parameter type to
7708 inferior pointer.
7709 (target_has_execution_1): Change parameter type to inferior
7710 pointer. Change return type to bool.
7711 * tracefile.h (tracefile_target::has_execution): Change parameter
7712 type to inferior pointer.
7713
74375d18
PA
77142020-01-10 Pedro Alves <palves@redhat.com>
7715
7716 * exceptions.c (print_flush): Remove current_top_target() check.
7717
acdf84a6
PA
77182020-01-10 Pedro Alves <palves@redhat.com>
7719
7720 * remote.c (show_remote_exec_file): Show the current inferior's
7721 exec-file instead of the command variable's value.
7722
ec506636
PA
77232020-01-10 Pedro Alves <palves@redhat.com>
7724
7725 * record-full.c (record_full_resume_ptid): New global.
7726 (record_full_target::resume): Set it.
7727 (record_full_wait_1): Use record_full_resume_ptid instead of
7728 inferior_ptid.
7729
873657b9
PA
77302020-01-10 Pedro Alves <palves@redhat.com>
7731
7732 * gdbthread.h (scoped_restore_current_thread)
7733 <dont_restore, restore, m_dont_restore>: Declare.
7734 * thread.c (thread_alive): Add assertion. Return bool.
7735 (switch_to_thread_if_alive): New.
7736 (prune_threads): Switch inferior/thread.
7737 (print_thread_info_1): Switch thread before calling target methods.
7738 (scoped_restore_current_thread::restore): New, factored out from
7739 ...
7740 (scoped_restore_current_thread::~scoped_restore_current_thread):
7741 ... this.
7742 (scoped_restore_current_thread::scoped_restore_current_thread):
7743 Add assertion.
7744 (thread_apply_all_command, thread_select): Use
7745 switch_to_thread_if_alive.
7746
7f0ae84c
GB
77472020-01-10 George Barrett <bob@bob131.so>
7748
7749 * stap-probe.c (stap_modify_semaphore): Don't check for null
7750 semaphores.
7751 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
7752 for null semaphores.
7753
f5a7c406
AB
77542020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
7755
7756 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
7757 all source windows, and maintain horizontal scroll status while
7758 doing so.
7759
9ae6bf64
TT
77602020-01-09 Tom Tromey <tom@tromey.com>
7761
7762 PR tui/18932:
7763 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
7764 update_source_window, not print_source_lines.
7765
b2efe70c
AB
77662020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
7767
7768 * tui/tui.c (tui_enable): Register tui hooks after calling
7769 tui_display_main.
7770
5f23a082
CB
77712020-01-09 Christian Biesinger <cbiesinger@google.com>
7772
7773 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
7774
3061113b
SM
77752020-01-08 Simon Marchi <simon.marchi@efficios.com>
7776
7777 * thread.c (print_thread_info_1): Fix indentation.
7778
57d75002
CB
77792020-01-09 Christian Biesinger <cbiesinger@google.com>
7780
7781 * symtab.c (general_symbol_info::compute_and_set_names): Move the
7782 unique_xmalloc_ptr outside the if to always free the demangled name.
7783
6a053cb1
TT
77842020-01-08 Tom Tromey <tromey@adacore.com>
7785
7786 * xcoffread.c (enter_line_range, read_xcoff_symtab)
7787 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
7788 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
7789 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
7790 Remove.
7791 (section_offsets): New typedef.
7792 * symtab.c (fixup_section, get_msymbol_address): Update.
7793 * symmisc.c (dump_msymbols): Update.
7794 * symfile.h (relative_addr_info_to_section_offsets)
7795 (symfile_map_offsets_to_segments): Update.
7796 * symfile.c (build_section_addr_info_from_objfile)
7797 (init_objfile_sect_indices): Update.
7798 (struct place_section_arg): Change type of "offsets".
7799 (place_section): Update.
7800 (relative_addr_info_to_section_offsets): Change type of
7801 "section_offsets". Remove "num_sections" parameter.
7802 (default_symfile_offsets, syms_from_objfile_1)
7803 (set_objfile_default_section_offset): Update.
7804 (reread_symbols): No need to preserve section offsets by hand.
7805 (symfile_map_offsets_to_segments): Change type of "offsets".
7806 * stap-probe.c (relocate_address): Update.
7807 * stabsread.h (process_one_symbol): Update.
7808 * solib-target.c (struct lm_info_target) <offsets>: Change type.
7809 (solib_target_relocate_section_addresses): Update.
7810 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
7811 Update.
7812 * solib-frv.c (frv_relocate_main_executable): Update.
7813 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7814 * solib-aix.c (solib_aix_get_section_offsets): Change return
7815 type.
7816 (solib_aix_solib_create_inferior_hook): Update.
7817 * remote.c (remote_target::get_offsets): Update.
7818 * psymtab.c (find_pc_sect_psymtab): Update.
7819 * psympriv.h (struct partial_symbol) <address, text_low,
7820 text_high>: Update.
7821 * objfiles.h (obj_section_offset): Update.
7822 (struct objfile) <section_offsets>: Change type.
7823 <num_sections>: Remove.
7824 (objfile_relocate): Update.
7825 * objfiles.c (entry_point_address_query): Update
7826 (relocate_one_symbol): Change type of "section_offsets".
7827 (objfile_relocate1, objfile_relocate1): Change type of
7828 "new_offsets".
7829 (objfile_rebase1): Update.
7830 * mipsread.c (mipscoff_symfile_read): Update.
7831 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
7832 parameter.
7833 * mdebugread.c (parse_symbol): Change type of "section_offsets".
7834 (parse_external, psymtab_to_symtab_1): Update.
7835 * machoread.c (macho_symfile_offsets): Update.
7836 * ia64-tdep.c (ia64_find_unwind_table): Update.
7837 * hppa-tdep.c (read_unwind_info): Update.
7838 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
7839 * dwarf2read.c (create_addrmap_from_index)
7840 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7841 (process_psymtab_comp_unit_reader, add_partial_symbol)
7842 (add_partial_subprogram, process_full_comp_unit)
7843 (read_file_scope, read_func_scope, read_lexical_block_scope)
7844 (read_call_site_scope, dwarf2_rnglists_process)
7845 (dwarf2_ranges_process, dwarf2_ranges_read)
7846 (dwarf_decode_lines_1, var_decode_location, new_symbol)
7847 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
7848 Update.
7849 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
7850 Update.
7851 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
7852 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
7853 (process_one_symbol): Change type of "section_offsets".
7854 * ctfread.c (get_objfile_text_range): Update.
7855 * coffread.c (coff_symtab_read, enter_linenos)
7856 (process_coff_symbol): Update.
7857 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7858 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
7859
456e800a
TT
78602020-01-08 Tom Tromey <tromey@adacore.com>
7861
7862 * dwarf2read.c (parse_macro_definition): Use std::string.
7863 (parse_macro_definition): Likewise.
7864
6dfa2fc2
TT
78652020-01-08 Tom Tromey <tromey@adacore.com>
7866
7867 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
7868 (ATTR_ALLOC_CHUNK): Remove.
7869
421d1616
TT
78702020-01-08 Tom Tromey <tromey@adacore.com>
7871
7872 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
7873
43816ebc
TT
78742020-01-08 Tom Tromey <tromey@adacore.com>
7875
7876 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
7877 (dwarf2_compute_name, open_dwo_file): Likewise.
7878 (process_enumeration_scope): Use std::vector.
7879 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
7880 (partial_die_info::fixup, dwarf2_start_subfile)
7881 (guess_full_die_structure_name, dwarf2_name): Likewise.
7882 (determine_prefix): Update.
7883 (guess_full_die_structure_name): Make return type const.
7884 (partial_die_full_name): Return unique_xmalloc_ptr.
7885 (DW_FIELD_ALLOC_CHUNK): Remove.
7886
4212d509
TT
78872020-01-07 Tom Tromey <tromey@adacore.com>
7888
7889 PR build/24937:
7890 * stap-probe.c (class stap_static_probe_ops): Add constructor.
7891
06a6207a
JT
78922020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
7893
7894 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
7895
153d79c4
AB
78962020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
7897
7898 * stack.c (print_frame_info): Move disassemble_next_line code
7899 inside source_print block.
7900
66182876
EZ
79012020-01-06 Eli Zaretskii <eliz@gnu.org>
7902
7903 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
7904 gdb/signals.h, as we are now using native signal symbols.
7905
cbfa8581
SV
79062020-01-06 Shahab Vahedi <shahab@synopsys.com>
7907
7908 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
7909 overflow by an early check of content vs threshold.
aac66a4c 7910 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
7911 Likewise.
7912
3f602821
EZ
79132020-01-06 Eli Zaretskii <eliz@gnu.org>
7914
7915 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
7916
a08c904d
JT
79172020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
7918
7919 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
7920 export table if no section contains it's RVA.
7921
89a65580
EZ
79222020-01-06 Eli Zaretskii <eliz@gnu.org>
7923
7924 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
7925
8b7fcda2
HD
79262020-01-06 Hannes Domani <ssbssa@yahoo.de>
7927
7928 * source.c (print_source_lines_base): Set last_line_listed.
7929
a61b4f69
SV
79302020-01-06 Shahab Vahedi <shahab@synopsys.com>
7931
7932 * tui/tui-disasm.c: Remove trailing spaces.
7933
559e7e50
EZ
79342020-01-06 Eli Zaretskii <eliz@gnu.org>
7935 Pedro Alves <palves@redhat.com>
7936
7937 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
7938 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
7939 (windows_gdb_signal_to_target): New function, uses the above
7940 enumeration to convert GDB internal signal codes to equivalent
7941 Windows codes.
7942 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
7943 * windows-nat.c: Include "gdb_wait.h".
7944 (get_windows_debug_event): Extract the fatal exception from the
7945 exit status and convert to the equivalent Posix signal number.
7946 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
7947 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
7948 * gdbsupport/gdb_wait.c: New file, implements
7949 windows_status_to_termsig.
7950 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
7951 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
7952
f2302a34
AB
79532020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
7954
7955 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
7956 show_layout.
7957
6a5206eb
LM
79582020-01-05 Luis Machado <luis.machado@linaro.org>
7959
7960 * aarch64-linux-nat.c
7961 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
7962 and bfd_mach_aarch64.
7963
6ec1d75e
PW
79642020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7965
7966 * ui-file.c (stdio_file::can_emit_style_escape)
7967 (tee_file::can_emit_style_escape): Ensure style is used also on
7968 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
7969 to gdb_stdout.
7970 * main.c (set_gdb_data_directory): Use file style to output the
7971 warning that the given pathname is not a directory.
7972 * top.c (show_history_filename, gdb_safe_append_history)
7973 (show_gdb_datadir): Use file style.
7974
44f81a76
HD
79752020-01-03 Hannes Domani <ssbssa@yahoo.de>
7976
7977 * solib-target.c (struct lm_info_target):
7978 Change offsets to be a unique_xmalloc_ptr.
7979 (solib_target_relocate_section_addresses): Update.
7980
25057eb0
HD
79812020-01-03 Hannes Domani <ssbssa@yahoo.de>
7982
7983 * windows-nat.c (windows_clear_solib): Free so_list linked list.
7984
6e2118f5
BE
79852020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7986
7987 * MAINTAINERS (Write After Approval): Add myself.
7988
8133c7dc
LM
79892020-01-02 Luis Machado <luis.machado@linaro.org>
7990
7991 * proc-service.c (get_ps_regcache): Remove reference to obsolete
7992 Cell BE architecture.
7993 * target.h (struct target_ops) <thread_architecture>: Likewise.
7994
48189bec
HD
79952020-01-01 Hannes Domani <ssbssa@yahoo.de>
7996
7997 * Makefile.in: Use INSTALL_PROGRAM_ENV.
7998
ead1063b
HD
79992020-01-01 Hannes Domani <ssbssa@yahoo.de>
8000
8001 * MAINTAINERS (Write After Approval): Add myself.
8002
e5d78223
JB
80032020-01-01 Joel Brobecker <brobecker@adacore.com>
8004
8005 * gdbarch.sh: Update copyright year range of generated files.
8006
b811d2c2
JB
80072020-01-01 Joel Brobecker <brobecker@adacore.com>
8008
8009 Update copyright year range in all GDB files.
8010
5f4def5c
JB
80112020-01-01 Joel Brobecker <brobecker@adacore.com>
8012
8013 * copyright.py: Convert to Python 3.
8014
51fd4002
JB
80152020-01-01 Joel Brobecker <brobecker@adacore.com>
8016
8017 * copyright.py: Adapt after move of gnulib directory from gdb
8018 directory to toplevel directory.
8019
5fb651f2
JB
80202020-01-01 Joel Brobecker <brobecker@adacore.com>
8021
8022 * copyright.py (main): Exit if run from the wrong directory.
8023
5dd8bf88
JB
80242020-01-01 Joel Brobecker <brobecker@adacore.com>
8025
8026 * top.c (print_gdb_version): Change copyright year to 2020.
8027
9f71dacb 80282020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 8029
9f71dacb 8030 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 8031
9f71dacb 8032For older changes see ChangeLog-2019.
c906108c
SS
8033\f
8034Local Variables:
8035mode: change-log
8036left-margin: 8
8037fill-column: 74
8038version-control: never
57da7796 8039coding: utf-8
c906108c 8040End: