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