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