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