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