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