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