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