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