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