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