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