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