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