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