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