]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
readelf: NULL dereference
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
bc3609fd
PW
12020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2
3 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4 and whitespace.
5
b9771db7
KR
62020-04-25 Kamil Rytarowski <n54@gmx.com>
7
8 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9 `PT_GET_PROCESS_STATE' block.
10
7151c1af
TT
112020-04-24 Tom Tromey <tom@tromey.com>
12
13 * symtab.h (symbol_get_demangled_name): Don't declare.
14 * symtab.c (symbol_get_demangled_name): Remove.
15 (general_symbol_info::natural_name)
16 (general_symbol_info::demangled_name): Update.
17
906bb4c5
TT
182020-04-24 Tom Tromey <tom@tromey.com>
19
20 PR rust/25025:
21 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
22
bcfe6157
TT
232020-04-24 Tom Tromey <tom@tromey.com>
24
25 PR symtab/12707:
26 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
27 exists.
28 (new_symbol): Likewise.
29 * compile/compile-object-load.c (get_out_value_type): Use
30 symbol_matches_search_name.
31
f049a313
TT
322020-04-24 Tom Tromey <tom@tromey.com>
33
34 * dwarf2/read.c (add_partial_symbol): Do not call
35 compute_and_set_names.
36
76e288d1
TT
372020-04-24 Tom Tromey <tom@tromey.com>
38
39 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
40 overload.
41
2467f4f6
TT
422020-04-24 Tom Tromey <tom@tromey.com>
43
44 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
45 (add_psymbol_to_list): New overload. Make old overload call new
46 one.
47 * psympriv.h (add_psymbol_to_list): New overload.
48
e61108c9
TT
492020-04-24 Tom Tromey <tom@tromey.com>
50
51 * dwarf2/read.c (partial_die_info::read) <case
52 DW_AT_linkage_name>: Use value_as_string.
53 (dwarf2_string_attr): Use value_as_string.
54 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
55 method.
56 * dwarf2/attribute.c (attribute::value_as_string): New method.
57
8c87a452
TT
582020-04-24 Tom Tromey <tom@tromey.com>
59
60 * symtab.c (general_symbol_info::natural_name)
61 (general_symbol_info::demangled_name): Check for language_rust.
62
787de330
TT
632020-04-24 Tom Tromey <tom@tromey.com>
64
65 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
66 (dwarf2_physname): ... from here.
67 (partial_die_info::read): Add Rust "{" hack.
68
ff985671
TT
692020-04-24 Tom Tromey <tom@tromey.com>
70
71 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
72 method.
73 (symbol_set_demangled_name): Don't declare.
74 * symtab.c (general_symbol_info::set_demangled_name): Rename from
75 symbol_set_demangled_name.
76 (general_symbol_info::set_language)
77 (general_symbol_info::compute_and_set_names): Update.
78 * minsyms.c (minimal_symbol_reader::install): Update.
79 * dwarf2/read.c (new_symbol): Update.
80
1acda803
TT
812020-04-24 Tom Tromey <tromey@adacore.com>
82
83 PR python/23662:
84 * python/py-type.c (convert_field): Handle
85 FIELD_LOC_KIND_DWARF_BLOCK.
86 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
87 (typy_get_dynamic): Nw function.
88 (type_object_getset): Add "dynamic".
89 * NEWS: Add entry.
90
d656f129
TT
912020-04-24 Tom Tromey <tromey@adacore.com>
92
93 * ada-typeprint.c (print_choices, print_variant_part)
94 (print_record_field_types_dynamic): New functions.
95 (print_record_field_types): Use print_record_field_types_dynamic.
96
7d79de9a
TT
972020-04-24 Tom Tromey <tromey@adacore.com>
98
99 * dwarf2/read.c (handle_data_member_location): New overload.
100 (dwarf2_add_field): Use it.
101 (decode_locdesc): Add "computed" parameter. Update comment.
102 * gdbtypes.c (is_dynamic_type_internal): Also look for
103 FIELD_LOC_KIND_DWARF_BLOCK.
104 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
105 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
106 virtual base classes.
107 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
108 FIELD_LOC_KIND_DWARF_BLOCK.
109
f8e89861
TT
1102020-04-24 Tom Tromey <tromey@adacore.com>
111
112 * dwarf2/read.c (read_structure_type): Handle dynamic length.
113 * gdbtypes.c (is_dynamic_type_internal): Check
114 TYPE_HAS_DYNAMIC_LENGTH.
115 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
116 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
117 New macros.
118 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
119 constant.
120
9c6a1327
TT
1212020-04-24 Tom Tromey <tromey@adacore.com>
122
123 * dwarf2/read.c (struct variant_field): Rewrite.
124 (struct variant_part_builder): New.
125 (struct nextfield): Remove "variant" field. Add "offset".
126 (struct field_info): Add "current_variant_part" and
127 "variant_parts".
128 (alloc_discriminant_info): Remove.
129 (alloc_rust_variant): New function.
130 (quirk_rust_enum): Update.
131 (dwarf2_add_field): Set "offset" member. Don't handle
132 DW_TAG_variant_part.
133 (offset_map_type): New typedef.
134 (convert_variant_range, create_one_variant)
135 (create_one_variant_part, create_variant_parts)
136 (add_variant_property): New functions.
137 (dwarf2_attach_fields_to_type): Call add_variant_property.
138 (read_structure_type): Don't handle DW_TAG_variant_part.
139 (handle_variant_part, handle_variant): New functions.
140 (handle_struct_member_die): Use them.
141 (process_structure_scope): Don't handle variant parts.
142 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
143 (struct discriminant_info): Remove.
144 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
145 (struct main_type) <flag_discriminated_union>: Remove.
146 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
147 (rust_enum_variant): Return int. Remove "contents". Rewrite.
148 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
149 Update.
150 * valops.c (value_union_variant): Remove.
151 * value.h (value_union_variant): Don't declare.
152
b249d2c2
TT
1532020-04-24 Tom Tromey <tromey@adacore.com>
154
155 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
156 (ada_value_primitive_packed_val): Update.
157 * ada-valprint.c (ada_value_print_1): Update.
158 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
159 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
160 just an address. Use evaluate_for_locexpr_baton.
161 (dwarf2_evaluate_property): Update.
162 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
163 array_view.
164 * findvar.c (default_read_var_value): Update.
165 * gdbtypes.c (compute_variant_fields_inner)
166 (resolve_dynamic_type_internal): Update.
167 (resolve_dynamic_type): Change type of valaddr parameter.
168 * gdbtypes.h (resolve_dynamic_type): Update.
169 * valarith.c (value_subscripted_rvalue): Update.
170 * value.c (value_from_contents_and_address): Update.
171
61122aa9
TT
1722020-04-24 Tom Tromey <tromey@adacore.com>
173
174 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
175 "push_initial_value" parameter.
176 (dwarf2_evaluate_property): Likewise.
177 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
178
ef83a141
TT
1792020-04-24 Tom Tromey <tromey@adacore.com>
180
181 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
182 (variant::matches, compute_variant_fields_recurse)
183 (compute_variant_fields_inner, compute_variant_fields): New
184 functions.
185 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
186 Use resolved_type after type is made.
187 (operator==): Add new cases.
188 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
189 (struct discriminant_range, struct variant, struct variant_part):
190 New.
191 (union dynamic_prop_data) <variant_parts, original_type>: New
192 members.
193 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
194 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
195 constants.
196 * value.c (unpack_bits_as_long): Now public.
197 * value.h (unpack_bits_as_long): Declare.
198
675127ec
TT
1992020-04-24 Tom Tromey <tromey@adacore.com>
200
201 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
202 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
203
9852ceef
HD
2042020-04-24 Hannes Domani <ssbssa@yahoo.de>
205
206 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
207
7632c6ce
KR
2082020-04-24 Kamil Rytarowski <n54@gmx.com>
209
210 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
211 (remove_fork_catchpoint, post_startup_inferior)
212 (post_attach): Move...
213 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
214 (remove_fork_catchpoint, post_startup_inferior)
215 (post_attach): ...here.
216 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
217 (remove_fork_catchpoint, post_startup_inferior)
218 (post_attach): Move...
219 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
220 (remove_fork_catchpoint, post_startup_inferior)
221 (post_attach): ...here.
222
7be2bb4f
TT
2232020-04-24 Tom Tromey <tromey@adacore.com>
224
225 * nat/windows-nat.h (struct windows_thread_info)
226 <pc_adjusted>: New member.
227 * windows-nat.c (windows_fetch_one_register): Check
228 pc_adjusted.
229 (windows_nat_target::get_windows_debug_event)
230 (windows_nat_target::wait): Set pc_adjusted.
231
f80cb3b4
TV
2322020-04-24 Tom de Vries <tdevries@suse.de>
233
234 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
235 Run gdb-add-index inside temp dir.
236
29514b87
TT
2372020-04-23 Tom Tromey <tromey@adacore.com>
238
239 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
240 in loop.
241
5939967b
LM
2422020-04-23 Luis Machado <luis.machado@linaro.org>
243
244 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
245 get_frame_register instead of gdbarch_unwind_pc.
246
70bc38f5
TV
2472020-04-23 Tom de Vries <tdevries@suse.de>
248
249 * symtab.c (lookup_global_symbol): Prefer def over decl.
250
de82891c
TV
2512020-04-23 Tom de Vries <tdevries@suse.de>
252
253 PR symtab/25807
254 * block.c (best_symbol, better_symbol): Promote to external.
255 * block.h (best_symbol, better_symbol): Declare.
256 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
257 decl.
258
ecc6c606
TT
2592020-04-23 Tom Tromey <tromey@adacore.com>
260
261 PR ada/25837:
262 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
263 "const char *", not a "const std::string &".
264 <name_and_matcher::operator==>: Update.
265 * unittests/lookup_name_info-selftests.c: Change type of
266 "result".
267
740480b8
TT
2682020-04-23 Tom Tromey <tom@tromey.com>
269
270 * inferior.h (iterate_over_inferiors): Don't declare.
271 * inferior.c (iterate_over_inferiors): Remove.
272 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
273 Remove.
274 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
275 use iterate_over_inferiors.
276 (darwin_resume_inferior_it)
277 (struct resume_inferior_threads_param)
278 (darwin_resume_inferior_threads_it): Remove.
279 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
280
ae3ab1f0
TV
2812020-04-23 Tom de Vries <tdevries@suse.de>
282
283 * blockframe.c (find_pc_partial_function): Use
284 find_pc_sect_compunit_symtab rather than
285 objfile->sf->qf->find_pc_sect_compunit_symtab.
286
317d2668
TV
2872020-04-22 Tom de Vries <tdevries@suse.de>
288
289 PR symtab/25764
290 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
291 in psymtabs.
292
eea9e357
TV
2932020-04-22 Tom de Vries <tdevries@suse.de>
294
295 PR symtab/25801
296 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
297 symtabs.
298
3d5afab3
TV
2992020-04-22 Tom de Vries <tdevries@suse.de>
300
301 PR symtab/25700
302 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
303 CU if already created.
304
d43b7a2d
TBA
3052020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
306
307 * infrun.c (displaced_step_fixup): Switch to the event_thread
308 before calling displaced_step_restore, not after.
309
d89edf9b
MM
3102020-04-21 Markus Metzger <markus.t.metzger@intel.com>
311
312 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
313 its inferior is not recorded by us.
314 (record_btrace_target_open): Replace call to
315 all_non_exited_threads () with call to current_inferior
316 ()->non_exited_threads ().
317 (record_btrace_target::stop_recording): Likewise.
318 (record_btrace_target::close): Likewise.
319 (record_btrace_target::wait): Likewise.
320 (record_btrace_target::record_stop_replaying): Likewise.
321
5897fd49
MM
3222020-04-21 Markus Metzger <markus.t.metzger@intel.com>
323
324 * btrace.c (btrace_enable): Throw an error on double enables and
325 when enabling recording fails.
326 (btrace_disable): Throw an error if the thread is not recorded.
327
1a476b6d
MM
3282020-04-21 Markus Metzger <markus.t.metzger@intel.com>
329
330 * record-btrace.c (record_btrace_target::fetch_registers): Forward
331 request if we do not have a thread_info.
332
4778a5f8
TV
3332020-04-21 Tom de Vries <tdevries@suse.de>
334
335 PR gdb/25471
336 * thread.c
337 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
338 exception in get_frame_id.
339
0fa7617d
TT
3402020-04-20 Tom Tromey <tromey@adacore.com>
341
342 * python/python.c (struct gdbpy_event): Mark move constructor as
343 noexcept.
344 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
345 constructor as noexcept.
346 * completer.h (struct completion_result): Mark move constructor as
347 noexcept.
348 * completer.c (completion_result::completion_result): Use
349 initialization style. Don't call reset_match_list.
350
ad23bda0
MS
3512020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
352
353 * MAINTAINERS (Write After Approval): Add myself.
354
45e1f031
TT
3552020-04-18 Tom Tromey <tom@tromey.com>
356
357 * windows-tdep.c (init_w32_command_list)
358 (w32_prefix_command_valid): Restore.
359 (_initialize_windows_tdep): Call init_w32_command_list.
360
08feed99
TT
3612020-04-18 Tom Tromey <tom@tromey.com>
362
363 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
364 * value.c (value_fn_field): Update.
365 * valops.c (find_function_in_inferior)
366 (value_allocate_space_in_inferior): Update.
367 * tui/tui-winsource.c (tui_update_source_windows_with_line):
368 Update.
369 * tui/tui-source.c (tui_source_window::set_contents): Update.
370 * symtab.c (lookup_global_or_static_symbol)
371 (find_function_start_sal_1, skip_prologue_sal)
372 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
373 * symmisc.c (dump_msymbols, dump_symtab_1)
374 (maintenance_print_one_line_table): Update.
375 * symfile.c (init_entry_point_info, section_is_mapped)
376 (list_overlays_command, simple_read_overlay_table)
377 (simple_overlay_update_1): Update.
378 * stap-probe.c (handle_stap_probe): Update.
379 * stabsread.c (dbx_init_float_type, define_symbol)
380 (read_one_struct_field, read_enum_type, read_range_type): Update.
381 * source.c (info_line_command): Update.
382 * python/python.c (gdbpy_source_objfile_script)
383 (gdbpy_execute_objfile_script): Update.
384 * python/py-type.c (save_objfile_types): Update.
385 * python/py-objfile.c (py_free_objfile): Update.
386 * python/py-inferior.c (python_new_objfile): Update.
387 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
388 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
389 (maintenance_check_psymtabs): Update.
390 * printcmd.c (info_address_command): Update.
391 * objfiles.h (struct objfile) <arch>: New method, from
392 get_objfile_arch.
393 (get_objfile_arch): Don't declare.
394 * objfiles.c (get_objfile_arch): Remove.
395 (filter_overlapping_sections): Update.
396 * minsyms.c (msymbol_is_function): Update.
397 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
398 (output_nondebug_symbol): Update.
399 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
400 (mdebug_expand_psymtab): Update.
401 * machoread.c (macho_add_oso_symfile): Update.
402 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
403 Update.
404 * linux-fork.c (checkpoint_command): Update.
405 * linespec.c (convert_linespec_to_sals): Update.
406 * jit.c (finalize_symtab): Update.
407 * infrun.c (insert_exception_resume_from_probe): Update.
408 * ia64-tdep.c (ia64_find_unwind_table): Update.
409 * hppa-tdep.c (internalize_unwinds): Update.
410 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
411 Update.
412 * gcore.c (call_target_sbrk): Update.
413 * elfread.c (record_minimal_symbol, elf_symtab_read)
414 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
415 (elf_gnu_ifunc_resolve_by_got): Update.
416 * dwarf2/read.c (create_addrmap_from_index)
417 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
418 (read_debug_names_from_section)
419 (process_psymtab_comp_unit_reader, add_partial_symbol)
420 (add_partial_subprogram, process_full_comp_unit)
421 (read_file_scope, read_func_scope, read_lexical_block_scope)
422 (read_call_site_scope, dwarf2_ranges_read)
423 (dwarf2_record_block_ranges, dwarf2_add_field)
424 (mark_common_block_symbol_computed, read_tag_pointer_type)
425 (read_tag_string_type, dwarf2_init_float_type)
426 (dwarf2_init_complex_target_type, read_base_type)
427 (partial_die_info::read, partial_die_info::read)
428 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
429 (dwarf2_fetch_die_loc_sect_off): Update.
430 * dwarf2/loc.c (dwarf2_find_location_expression)
431 (class dwarf_evaluate_loc_desc, rw_pieced_value)
432 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
433 (dwarf2_loc_desc_get_symbol_read_needs)
434 (locexpr_describe_location_piece, locexpr_describe_location_1)
435 (loclist_describe_location): Update.
436 * dwarf2/index-write.c (write_debug_names): Update.
437 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
438 * dtrace-probe.c (dtrace_process_dof): Update.
439 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
440 (process_one_symbol): Update.
441 * ctfread.c (ctf_init_float_type, read_base_type): Update.
442 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
443 (coff_read_enum_type): Update.
444 * cli/cli-cmds.c (edit_command, list_command): Update.
445 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
446 * breakpoint.c (create_overlay_event_breakpoint)
447 (create_longjmp_master_breakpoint)
448 (create_std_terminate_master_breakpoint)
449 (create_exception_master_breakpoint, get_sal_arch): Update.
450 * block.c (block_gdbarch): Update.
451 * annotate.c (annotate_source_line): Update.
452
0743fc83
TT
4532020-04-17 Tom Tromey <tromey@adacore.com>
454
455 * auto-load.c (show_auto_load_cmd): Remove.
456 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
457 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
458 (maintenance_print_arc_command): Remove.
459 * tui/tui-win.c (tui_command): Remove.
460 (tui_get_cmd_list): Use add_basic_prefix_cmd.
461 * tui/tui-layout.c (tui_layout_command): Remove.
462 (_initialize_tui_layout): Use add_basic_prefix_cmd.
463 * python/python.c (user_set_python, user_show_python): Remove.
464 (_initialize_python): Use add_basic_prefix_cmd,
465 add_show_prefix_cmd.
466 * guile/guile.c (set_guile_command, show_guile_command): Remove.
467 (install_gdb_commands): Use add_basic_prefix_cmd,
468 add_show_prefix_cmd.
469 (info_guile_command): Remove.
470 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
471 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
472 add_show_prefix_cmd.
473 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
474 Remove do_set and do_show parameters.
475 * cli/cli-style.c (set_style, show_style): Remove.
476 (_initialize_cli_style): Use add_basic_prefix_cmd,
477 add_show_prefix_cmd.
478 (cli_style_option::add_setshow_commands): Remove do_set and
479 do_show parameters.
480 (cli_style_option::add_setshow_commands): Use
481 add_basic_prefix_cmd, add_show_prefix_cmd.
482 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
483 (set_style_name): Remove.
484 * cli/cli-dump.c (dump_command, append_command): Remove.
485 (srec_dump_command, ihex_dump_command, verilog_dump_command)
486 (tekhex_dump_command, binary_dump_command)
487 (binary_append_command): Remove.
488 (_initialize_cli_dump): Use add_basic_prefix_cmd.
489 * windows-tdep.c (w32_prefix_command_valid): Remove global.
490 (init_w32_command_list): Remove; move into ...
491 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
492 * valprint.c (set_print, show_print, set_print_raw)
493 (show_print_raw): Remove.
494 (_initialize_valprint): Use add_basic_prefix_cmd,
495 add_show_prefix_cmd.
496 * typeprint.c (set_print_type, show_print_type): Remove.
497 (_initialize_typeprint): Use add_basic_prefix_cmd,
498 add_show_prefix_cmd.
499 * record.c (set_record_command, show_record_command): Remove.
500 (_initialize_record): Use add_basic_prefix_cmd,
501 add_show_prefix_cmd.
502 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
503 add_show_prefix_cmd.
504 (info_command, show_command, set_debug, show_debug): Remove.
505 * top.h (set_history, show_history): Don't declare.
506 * top.c (set_history, show_history): Remove.
507 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
508 (unset_tdesc_cmd): Remove.
509 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
510 add_show_prefix_cmd.
511 * symtab.c (info_module_command): Remove.
512 (_initialize_symtab): Use add_basic_prefix_cmd.
513 * symfile.c (overlay_command): Remove.
514 (_initialize_symfile): Use add_basic_prefix_cmd.
515 * sparc64-tdep.c (info_adi_command): Remove.
516 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
517 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
518 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
519 add_show_prefix_cmd.
520 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
521 (_initialize_serial): Use add_basic_prefix_cmd,
522 add_show_prefix_cmd.
523 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
524 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
525 add_show_prefix_cmd.
526 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
527 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
528 add_show_prefix_cmd.
529 * riscv-tdep.c (show_riscv_command, set_riscv_command)
530 (show_debug_riscv_command, set_debug_riscv_command): Remove.
531 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
532 add_show_prefix_cmd.
533 * remote.c (remote_command, set_remote_cmd): Remove.
534 (_initialize_remote): Use add_basic_prefix_cmd.
535 * record-full.c (set_record_full_command)
536 (show_record_full_command): Remove.
537 (_initialize_record_full): Use add_basic_prefix_cmd,
538 add_show_prefix_cmd.
539 * record-btrace.c (cmd_set_record_btrace)
540 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
541 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
542 (cmd_show_record_btrace_pt): Remove.
543 (_initialize_record_btrace): Use add_basic_prefix_cmd,
544 add_show_prefix_cmd.
545 * ravenscar-thread.c (set_ravenscar_command)
546 (show_ravenscar_command): Remove.
547 (_initialize_ravenscar): Use add_basic_prefix_cmd,
548 add_show_prefix_cmd.
549 * mips-tdep.c (show_mips_command, set_mips_command)
550 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
551 add_show_prefix_cmd.
552 * maint.c (maintenance_command, maintenance_info_command)
553 (maintenance_check_command, maintenance_print_command)
554 (maintenance_set_cmd, maintenance_show_cmd): Remove.
555 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
556 add_show_prefix_cmd.
557 (show_per_command_cmd): Remove.
558 * maint-test-settings.c (maintenance_set_test_settings_cmd):
559 Remove.
560 (maintenance_show_test_settings_cmd): Remove.
561 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
562 add_show_prefix_cmd.
563 * maint-test-options.c (maintenance_test_options_command):
564 Remove.
565 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
566 * macrocmd.c (macro_command): Remove
567 (_initialize_macrocmd): Use add_basic_prefix_cmd.
568 * language.c (set_check, show_check): Remove.
569 (_initialize_language): Use add_basic_prefix_cmd,
570 add_show_prefix_cmd.
571 * infcmd.c (unset_command): Remove.
572 (_initialize_infcmd): Use add_basic_prefix_cmd.
573 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
574 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
575 add_show_prefix_cmd.
576 * go32-nat.c (go32_info_dos_command): Remove.
577 (_initialize_go32_nat): Use add_basic_prefix_cmd.
578 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
579 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
580 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
581 (_initialize_frame): Use add_basic_prefix_cmd,
582 add_show_prefix_cmd.
583 * dcache.c (set_dcache_command, show_dcache_command): Remove.
584 (_initialize_dcache): Use add_basic_prefix_cmd,
585 add_show_prefix_cmd.
586 * cp-support.c (maint_cplus_command): Remove.
587 (_initialize_cp_support): Use add_basic_prefix_cmd.
588 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
589 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
590 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
591 add_basic_prefix_cmd, add_show_prefix_cmd.
592 * breakpoint.c (save_command): Remove.
593 (_initialize_breakpoint): Use add_basic_prefix_cmd.
594 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
595 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
596 add_show_prefix_cmd.
597 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
598 (set_ada_command, show_ada_command): Remove.
599 (_initialize_ada_language): Use add_basic_prefix_cmd,
600 add_show_prefix_cmd.
601 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
602
3557f442
KR
6032020-04-16 Kamil Rytarowski <n54@gmx.com>
604
605 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
606 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
607
16197208
SM
6082020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
609
610 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
611 warning messages.
612
00ac85d3
SM
6132020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
614
615 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
616 import table is not at beginning of .idata section.
617
381ce63f
PA
6182020-04-16 Pedro Alves <palves@redhat.com>
619
620 * inferior.c (delete_inferior): Use delete operator directly
621 instead of delete_program_space.
622 * progspace.c (add_program_space): New, factored out from
623 program_space::program_space.
624 (remove_program_space): New, factored out from
625 delete_program_space.
626 (program_space::program_space): Remove intro comment. Rewrite.
627 (program_space::~program_space): Remove intro comment. Call
628 remove_program_space.
629 (delete_program_space): Delete.
630 * progspace.h (program_space::program_space): Make explicit. Move
631 intro comment here, adjusted.
632 (program_space::~program_space): Move intro comment here,
633 adjusted.
634 (delete_program_space): Remove.
635
a010605f
TT
6362020-04-16 Tom Tromey <tromey@adacore.com>
637
638 * windows-nat.c (windows_nat::handle_access_violation): New
639 function.
640 * nat/windows-nat.h (handle_access_violation): Declare.
641 * nat/windows-nat.c (handle_exception): Move Cygwin code to
642 windows-nat.c. Call handle_access_violation.
643
efba5c23
TV
6442020-04-16 Tom de Vries <tdevries@suse.de>
645
646 PR symtab/25791
647 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
648 CUs without psymtab.
649
97ed802d
KB
6502020-04-16 Kevin Buettner <kevinb@redhat.com>
651
652 * python/python.c (do_start_initialization): Don't call
653 PyEval_InitThreads for Python 3.9 and beyond.
654
c7d64809
KR
6552020-04-15 Kamil Rytarowski <n54@gmx.com>
656
657 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
658 thread functions.
659 (obsd_nat_target::wait): Likewise.
660
ce127a96
TT
6612020-04-15 Tom Tromey <tromey@adacore.com>
662
663 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
664 (DEBUG_EXCEPT): Use debug_printf.
665
99f1bc6a
AB
6662020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
667
668 * completer.c (class completion_tracker::completion_hash_entry)
669 <hash_name>: New member function.
670 (completion_tracker::discard_completions): New callback to hash a
671 completion_hash_entry, pass this to htab_create_alloc.
672
a0e9b532
JT
6732016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
674
675 * windows-nat.c (windows_make_so): Warn rather than stopping with
676 an error if realpath() fails.
677
06ca5dd4
KR
6782020-04-14 Kamil Rytarowski <n54@gmx.com>
679
680 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
681 (nbsd_nat_target::info_proc): Add do_status.
682
194d088f
TV
6832020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
684 Tom de Vries <tdevries@suse.de>
685
686 PR symtab/25718
687 * psympriv.h (struct partial_symtab::read_symtab)
688 (struct partial_symtab::expand_psymtab)
689 (struct partial_symtab::read_dependencies): Update comments.
690 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
691 read_symtab for includer.
692 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
693 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
694 (struct dwarf2_include_psymtab::m_readin): Remove.
695 (struct dwarf2_include_psymtab::includer): New member function.
696 (dwarf2_psymtab::expand_psymtab): Assert !readin.
697
c1a66c06
TV
6982020-04-14 Tom de Vries <tdevries@suse.de>
699
700 PR symtab/25720
701 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
702 with NULL symbol_matcher and lookup_name.
703 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
704 and lookup_name.
705 * dwarf2/read.c (dw2_expand_symtabs_matching)
706 (dw2_debug_names_expand_symtabs_matching): Same.
707 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
708 Make lookup_name a pointer. Update comment.
709 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
710 lookup_name being a pointer.
711 * symfile.c (expand_symtabs_matching): Same.
712 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
713 * linespec.c (iterate_over_all_matching_symtabs): Same.
714
400b5eca
TT
7152020-04-13 Tom Tromey <tom@tromey.com>
716
717 * run-on-main-thread.c: Update include.
718 * unittests/main-thread-selftests.c: Update include.
719 * tui/tui-win.c: Update include.
720 * tui/tui-io.c: Update include.
721 * tui/tui-interp.c: Update include.
722 * tui/tui-hooks.c: Update include.
723 * top.h: Update include.
724 * top.c: Update include.
725 * ser-base.c: Update include.
726 * remote.c: Update include.
727 * remote-notif.c: Update include.
728 * remote-fileio.c: Update include.
729 * record-full.c: Update include.
730 * record-btrace.c: Update include.
731 * python/python.c: Update include.
732 * posix-hdep.c: Update include.
733 * mingw-hdep.c: Update include.
734 * mi/mi-main.c: Update include.
735 * mi/mi-interp.c: Update include.
736 * main.c: Update include.
737 * linux-nat.c: Update include.
738 * interps.c: Update include.
739 * infrun.c: Update include.
740 * inf-loop.c: Update include.
741 * event-top.c: Update include.
742 * event-loop.c: Move to ../gdbsupport/.
743 * event-loop.h: Move to ../gdbsupport/.
744 * async-event.h: Update include.
745 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
746
93b54c8e
TT
7472020-04-13 Tom Tromey <tom@tromey.com>
748
749 * tui/tui-win.c: Include async-event.h.
750 * remote.c: Include async-event.h.
751 * remote-notif.c: Include async-event.h.
752 * record-full.c: Include async-event.h.
753 * record-btrace.c: Include async-event.h.
754 * infrun.c: Include async-event.h.
755 * event-top.c: Include async-event.h.
756 * event-loop.h: Move some declarations to async-event.h.
757 * event-loop.c: Don't include ser-event.h or top.h. Move some
758 code to async-event.c.
759 * async-event.h: New file.
760 * async-event.c: New file.
761 * Makefile.in (COMMON_SFILES): Add async-event.c.
762 (HFILES_NO_SRCDIR): Add async-event.h.
763
c1cd3163
TT
7642020-04-13 Tom Tromey <tom@tromey.com>
765
766 * utils.c (flush_streams): New function.
767 * event-loop.c (gdb_wait_for_event): Call flush_streams.
768
29f2bf4f
TT
7692020-04-13 Tom Tromey <tom@tromey.com>
770
771 * event-loop.c (handle_file_event): Use warning, not
772 printf_unfiltered.
773
98029d02
TT
7742020-04-13 Tom Tromey <tom@tromey.com>
775
776 * event-loop.c: Include <chrono>.
777
06cc9596
TT
7782020-04-13 Tom Tromey <tom@tromey.com>
779
780 * gdb_select.h: Move to ../gdbsupport/.
781 * event-loop.c: Update include path.
782 * top.c: Update include path.
783 * ser-base.c: Update include path.
784 * ui-file.c: Update include path.
785 * ser-tcp.c: Update include path.
786 * guile/scm-ports.c: Update include path.
787 * posix-hdep.c: Update include path.
788 * ser-unix.c: Update include path.
789 * gdb_usleep.c: Update include path.
790 * mingw-hdep.c: Update include path.
791 * inflow.c: Update include path.
792 * infrun.c: Update include path.
793 * event-top.c: Update include path.
794
8ae8e197
TT
7952020-04-13 Tom Tromey <tom@tromey.com>
796
797 * configure: Rebuild.
798 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
799
58cf28e8
TT
8002020-04-13 Tom Tromey <tom@tromey.com>
801
802 * event-loop.h (start_event_loop): Don't declare.
803 * event-loop.c (start_event_loop): Move...
804 * main.c (start_event_loop): ...here. Now static.
805
b7f999ae
SDJ
8062020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
807
808 * MAINTAINERS: Update my email address.
809
1085dfd4
KR
8102020-04-12 Kamil Rytarowski <n54@gmx.com>
811
812 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
813 IP_ALL.
814
49d1d1f5
KR
8152020-04-12 Kamil Rytarowski <n54@gmx.com>
816
817 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 818 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 819
b4848d2a
KR
8202020-04-12 Kamil Rytarowski <n54@gmx.com>
821
822 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 823 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 824
51c133d5
KR
8252020-04-12 Kamil Rytarowski <n54@gmx.com>
826
827 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
828
54b8cbd0
KR
8292020-04-11 Kamil Rytarowski <n54@gmx.com>
830
831 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
832 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
833 (nbsd_nat_target::info_proc): New functions.
834 * nbsd-nat.c (kinfo_get_vmmap): New function.
835 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
836 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
837 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
838 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
839 functions.
840 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
841 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
842 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
843 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
844 (KINFO_VME_FLAG_GROWS_DOWN): New.
845
cf83625d
AS
8462020-04-10 Artur Shepilko <nomadbyte@gmail.com>
847
848 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
849 bit shift.
850
0c4311ab
TT
8512020-04-10 Tom Tromey <tromey@adacore.com>
852
853 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
854
3e65b3e9
TT
8552020-04-10 Tom Tromey <tromey@adacore.com>
856
857 * symtab.c (get_symbol_address, get_msymbol_address): Skip
858 separate debug files.
859
13302e95
HD
8602020-04-10 Hannes Domani <ssbssa@yahoo.de>
861
862 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
863 Move to...
864 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
865 ... here.
866 * windows-nat.c (windows_nat_target::get_windows_debug_event):
867 Check for STATUS_WX86_BREAKPOINT.
868 (windows_nat_target::wait): Same.
869
bdfc1e8a
TV
8702020-04-10 Tom de Vries <tdevries@suse.de>
871
872 PR cli/25808
873 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
874
f4460aec
SM
8752020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
876
877 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
878 (Write After Approval): Remove Tom de Vries.
879
a25198bb
BE
8802020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
881
882 revert partially:
883 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
884
aac66a4c
SM
885 * buildsym.c (record_line): Fix undefined behavior and preserve
886 lines at eof.
a25198bb 887
206c98a6
KR
8882020-04-09 Kamil Rytarowski <n54@gmx.com>
889
890 * auxv.h (svr4_auxv_parse): New.
891 * auxv.c (default_auxv_parse): Split into default_auxv_parse
892 and generic_auxv_parse.
893 (svr4_auxv_parse): Add.
894 * obsd-tdep.c: Include "auxv.h".
895 (obsd_auxv_parse): Remove.
896 (obsd_init_abi): Remove comment.
897 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
898 from `obsd_auxv_parse' to `svr4_auxv_parse'.
899 * nbsd-tdep.c: Include "auxv.h".
900 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
901
71fbdbaf
TT
9022020-04-08 Tom Tromey <tromey@adacore.com>
903
904 * nat/windows-nat.h (last_wait_event): Don't declare.
905 (wait_for_debug_event): Update comment.
906 * nat/windows-nat.c (last_wait_event): Now static.
907
2c1d95e8
TT
9082020-04-08 Tom Tromey <tromey@adacore.com>
909
910 * windows-nat.c (wait_for_debug_event): Move to
911 nat/windows-nat.c.
912 * nat/windows-nat.h (wait_for_debug_event): Declare.
913 * nat/windows-nat.c (wait_for_debug_event): Move from
914 windows-nat.c. No longer static.
915
d2977bc4
TT
9162020-04-08 Tom Tromey <tromey@adacore.com>
917
918 * windows-nat.c (get_windows_debug_event): Use
919 fetch_pending_stop.
920 * nat/windows-nat.h (fetch_pending_stop): Declare.
921 * nat/windows-nat.c (fetch_pending_stop): New function.
922
e758e19c
TT
9232020-04-08 Tom Tromey <tromey@adacore.com>
924
925 * windows-nat.c (windows_continue): Use matching_pending_stop and
926 continue_last_debug_event.
927 * nat/windows-nat.h (matching_pending_stop)
928 (continue_last_debug_event): Declare.
929 * nat/windows-nat.c (DEBUG_EVENTS): New define.
930 (matching_pending_stop, continue_last_debug_event): New
931 functions.
932
8d30e395
TT
9332020-04-08 Tom Tromey <tromey@adacore.com>
934
935 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
936 (handle_exception_result): Move to nat/windows-nat.h.
937 (DEBUG_EXCEPTION_SIMPLE): Remove.
938 (windows_nat::handle_ms_vc_exception): New function.
939 (handle_exception): Move to nat/windows-nat.c.
940 (get_windows_debug_event): Update.
941 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
942 nat/windows-nat.c.
943 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
944 (handle_exception_result): Move from windows-nat.c.
945 (handle_exception): Declare.
946 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
947 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
948 windows-nat.c.
949
29de418d
TT
9502020-04-08 Tom Tromey <tromey@adacore.com>
951
952 * windows-nat.c (exception_count, event_count): Remove.
953 (handle_exception, get_windows_debug_event)
954 (do_initial_windows_stuff): Update.
955
a816ba18
TT
9562020-04-08 Tom Tromey <tromey@adacore.com>
957
958 * windows-nat.c (windows_nat::handle_load_dll)
959 (windows_nat::handle_unload_dll): Rename. No longer static.
960 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
961 Declare.
962
a00caa12
TT
9632020-04-08 Tom Tromey <tromey@adacore.com>
964
965 * complaints.h (stop_whining): Declare at top-level.
966 (complaint): Don't declare stop_whining.
967
d41b524f
TT
9682020-04-08 Tom Tromey <tromey@adacore.com>
969
970 * windows-nat.c (windows_nat::handle_output_debug_string):
971 Rename. No longer static.
972 * nat/windows-nat.h (handle_output_debug_string): Declare.
973
3c76026d
TT
9742020-04-08 Tom Tromey <tromey@adacore.com>
975
976 * windows-nat.c (current_process_handle, current_process_id)
977 (main_thread_id, last_sig, current_event, last_wait_event)
978 (current_windows_thread, desired_stop_thread_id, pending_stops)
979 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
980 (display_selectors, fake_create_process)
981 (get_windows_debug_event): Update.
982 * nat/windows-nat.h (current_process_handle, current_process_id)
983 (main_thread_id, last_sig, current_event, last_wait_event)
984 (current_windows_thread, desired_stop_thread_id, pending_stops)
985 (struct pending_stop, siginfo_er): Move from windows-nat.c.
986 * nat/windows-nat.c (current_process_handle, current_process_id)
987 (main_thread_id, last_sig, current_event, last_wait_event)
988 (current_windows_thread, desired_stop_thread_id, pending_stops)
989 (siginfo_er): New globals. Move from windows-nat.c.
990
9d8679cc
TT
9912020-04-08 Tom Tromey <tromey@adacore.com>
992
993 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
994 (handle_load_dll): Update.
995 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
996
28688adf
TT
9972020-04-08 Tom Tromey <tromey@adacore.com>
998
999 * windows-nat.c (enum thread_disposition_type): Move to
1000 nat/windows-nat.h.
1001 (windows_nat::thread_rec): Rename from thread_rec. No longer
1002 static.
1003 (windows_add_thread, windows_nat_target::fetch_registers)
1004 (windows_nat_target::store_registers, handle_exception)
1005 (windows_nat_target::resume, get_windows_debug_event)
1006 (windows_nat_target::get_tib_address)
1007 (windows_nat_target::thread_name)
1008 (windows_nat_target::thread_alive): Update.
1009 * nat/windows-nat.h (enum thread_disposition_type): Move from
1010 windows-nat.c.
1011 (thread_rec): Declare.
1012
4834dad0
TT
10132020-04-08 Tom Tromey <tromey@adacore.com>
1014
1015 * windows-nat.c: Add "using namespace".
1016 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
1017 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
1018
65bafd5b
TT
10192020-04-08 Tom Tromey <tromey@adacore.com>
1020
1021 * nat/windows-nat.h (struct windows_thread_info): Declare
1022 destructor.
1023 * nat/windows-nat.c (~windows_thread_info): New.
1024
0a4afda3
TT
10252020-04-08 Tom Tromey <tromey@adacore.com>
1026
1027 PR gdb/22992
1028 * windows-nat.c (current_event): Update comment.
1029 (last_wait_event, desired_stop_thread_id): New globals.
1030 (struct pending_stop): New.
1031 (pending_stops): New global.
1032 (windows_nat_target) <stopped_by_sw_breakpoint>
1033 <supports_stopped_by_sw_breakpoint>: New methods.
1034 (windows_fetch_one_register): Add assertions. Adjust PC.
1035 (windows_continue): Handle pending stops. Suspend other threads
1036 when stepping. Use last_wait_event
1037 (wait_for_debug_event): New function.
1038 (get_windows_debug_event): Use wait_for_debug_event. Handle
1039 pending stops. Queue spurious stops.
1040 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
1041 (windows_nat_target::kill): Use wait_for_debug_event.
1042 * nat/windows-nat.h (struct windows_thread_info)
1043 <stopped_at_software_breakpoint>: New field.
1044 * nat/windows-nat.c (windows_thread_info::resume): Clear
1045 stopped_at_software_breakpoint.
1046
8e61ebec
TT
10472020-04-08 Tom Tromey <tromey@adacore.com>
1048
1049 * windows-nat.c (enum thread_disposition_type): New.
1050 (thread_rec): Replace "get_context" parameter with "disposition";
1051 change type.
1052 (windows_add_thread, windows_nat_target::fetch_registers)
1053 (windows_nat_target::store_registers, handle_exception)
1054 (windows_nat_target::resume, get_windows_debug_event)
1055 (windows_nat_target::get_tib_address)
1056 (windows_nat_target::thread_name)
1057 (windows_nat_target::thread_alive): Update.
1058
98a03287
TT
10592020-04-08 Tom Tromey <tromey@adacore.com>
1060
1061 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
1062 (windows_continue): Use windows_continue::resume.
1063 * nat/windows-nat.h (struct windows_thread_info) <suspend,
1064 resume>: Declare new methods.
1065 * nat/windows-nat.c: New file.
1066 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
1067
7c7411bc
TT
10682020-04-08 Tom Tromey <tromey@adacore.com>
1069
1070 * windows-nat.c (windows_add_thread, windows_delete_thread)
1071 (windows_nat_target::fetch_registers)
1072 (windows_nat_target::store_registers, fake_create_process)
1073 (windows_nat_target::resume, windows_nat_target::resume)
1074 (get_windows_debug_event, windows_nat_target::wait)
1075 (windows_nat_target::pid_to_str)
1076 (windows_nat_target::get_tib_address)
1077 (windows_nat_target::get_ada_task_ptid)
1078 (windows_nat_target::thread_name)
1079 (windows_nat_target::thread_alive): Use lwp, not tid.
1080
2950fdf7
TT
10812020-04-08 Tom Tromey <tromey@adacore.com>
1082
1083 * windows-nat.c (handle_exception)
1084 (windows_nat_target::thread_name): Update.
1085 * nat/windows-nat.h (windows_thread_info): Remove destructor.
1086 <name>: Now unique_xmalloc_ptr.
1087
62fe396b
TT
10882020-04-08 Tom Tromey <tromey@adacore.com>
1089
1090 * windows-nat.c (thread_rec)
1091 (windows_nat_target::fetch_registers): Update.
1092 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
1093 Update comment.
1094 <debug_registers_changed, reload_context>: Now bool.
1095
e9534bd2
TT
10962020-04-08 Tom Tromey <tromey@adacore.com>
1097
1098 * windows-nat.c (windows_add_thread): Use new.
1099 (windows_init_thread_list, windows_delete_thread): Use delete.
1100 (get_windows_debug_event): Update.
1101 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
1102 destructor, and initializers.
1103
ae1f8880
TT
11042020-04-08 Tom Tromey <tromey@adacore.com>
1105
1106 * windows-nat.c (struct windows_thread_info): Remove.
1107 * nat/windows-nat.h: New file.
1108
55a1e039
TT
11092020-04-08 Tom Tromey <tromey@adacore.com>
1110
1111 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
1112 (thread_rec, windows_add_thread, windows_delete_thread)
1113 (windows_continue): Update.
1114
93366324
TT
11152020-04-08 Tom Tromey <tromey@adacore.com>
1116
1117 * windows-nat.c (struct windows_thread_info): Remove typedef.
1118 (thread_head): Remove.
1119 (thread_list): New global.
1120 (thread_rec, windows_add_thread, windows_init_thread_list)
1121 (windows_delete_thread, windows_continue): Update.
1122
0f2265e2
SM
11232020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
1124
1125 * windows-tdep.h (windows_init_abi): Add comment.
1126 (cygwin_init_abi): New declaration.
1127 * windows-tdep.c: Split signal enumeration in two, one for
1128 Windows and one for Cygwin.
1129 (windows_gdb_signal_to_target): Only deal with signal of the
1130 Windows OS ABI.
1131 (cygwin_gdb_signal_to_target): New function.
1132 (windows_init_abi): Rename to windows_init_abi_common, don't set
1133 gdb_signal_to_target gdbarch method. Add new new function with
1134 this name.
1135 (cygwin_init_abi): New function.
1136 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
1137 comment. Don't call windows_init_abi.
1138 (amd64_windows_init_abi): Add comment, call windows_init_abi.
1139 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
1140 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
1141 i386_windows_init_abi_common, don't call windows_init_abi. Add
1142 a new function of this name.
1143 (i386_cygwin_init_abi): New function.
1144 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
1145 OS ABI Cygwin.
1146
3810f182
SM
11472020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
1148
1149 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
1150 parameter.c.
1151 (dwarf2_read_gdb_index): Update.
1152
063f8e80
KR
11532020-04-07 Kamil Rytarowski <n54@gmx.com>
1154
1155 * nbsd-tdep.c: Include "objfiles.h".
1156 (nbsd_skip_solib_resolver): New.
1157 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
1158
85a9510c 11592020-04-07 Nitika Achra <Nitika.Achra@amd.com>
1160
1161 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
1162 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
1163 with DW_LLE_base_addressx are being emitted in DWARFv5.
1164 Add the newly added kind DW_LOC_OFFSET_PAIR also.
1165 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
1166 unsigned integer.
1167
9fc3eaae 11682020-04-07 Nitika Achra <Nitika.Achra@amd.com>
1169
1170 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
1171 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
1172 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
1173 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
1174 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
1175 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
1176 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
1177
1178
41144253 11792020-04-07 Nitika Achra <Nitika.Achra@amd.com>
1180
1181 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
1182 (read_loclist_index): New function definition.
1183 (lookup_loclist_base): New function definition.
1184 (read_loclist_header): New function definition.
1185 (dwarf2_cu): Add loclist_base and loclist_header field.
1186 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
1187 (read_full_die_1): Read the value of DW_AT_loclists_base.
1188 (read_attribute_reprocess): Handle DW_FORM_loclistx.
1189 (read_attribute_value): Handle DW_FORM_loclistx.
1190 (skip_one_die): Handle DW_FORM_loclistx.
1191 (loclist_header): New structure declaration.
1192 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
1193
9f4e76a4
SM
11942020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1195
1196 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
1197 constructor. Remove `addr` parameter from other constructor and
1198 add `per_cu` parameter.
1199 * dwarf2/read.c (create_partial_symtab): Update.
1200
25c11aca
TV
12012020-04-07 Tom de Vries <tdevries@suse.de>
1202
1203 PR symtab/25796
1204 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
1205 (partial_die_info::fixup): Inherit has_const_value.
1206
5707e24b
TV
12072020-04-07 Tom de Vries <tdevries@suse.de>
1208
1209 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
1210 symbols without address.
1211
05f00e22
KR
12122020-04-06 Kamil Rytarowski <n54@gmx.com>
1213
1214 * nbsd-nat.h (struct thread_info): Add forward declaration.
1215 (nbsd_nat_target::thread_alive): Add.
1216 (nbsd_nat_target::thread_name): Likewise.
1217 (nbsd_nat_target::update_thread_list): Likewise.
1218 (update_thread_list::post_attach): Likewise.
1219 (post_attach::pid_to_str): Likewise.
1220 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
1221 (nbsd_thread_lister): Add.
1222 (nbsd_nat_target::thread_alive): Likewise.
1223 (nbsd_nat_target::thread_name): Likewise.
1224 (nbsd_add_threads): Likewise.
1225 (update_thread_list::post_attach): Likewise.
1226 (nbsd_nat_target::update_thread_list): Likewise.
1227 (post_attach::pid_to_str): Likewise.
1228
6ee448cc
TT
12292020-04-06 Tom Tromey <tromey@adacore.com>
1230
1231 * ada-valprint.c (print_variant_part): Extract the variant field.
1232 (print_field_values): Use the field as the outer value when
1233 recursing.
1234
dea34e8c
TT
12352020-04-06 Tom Tromey <tromey@adacore.com>
1236
1237 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
1238 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
1239 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
1240 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
1241 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
1242
93689ce9
TT
12432020-04-06 Tom Tromey <tromey@adacore.com>
1244
1245 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
1246 TYPE_CODE_ERROR.
1247
79743962
KR
12482020-04-06 Kamil Rytarowski <n54@gmx.com>
1249
1250 * nbsd-tdep.c: Include "gdbarch.h".
1251 Define enum with NetBSD signal numbers.
1252 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
1253 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
1254 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
1255 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
1256 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
1257 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
1258 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
1259 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
1260 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
1261 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
1262 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
1263 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
1264
9e7c9a03
HD
12652020-04-03 Hannes Domani <ssbssa@yahoo.de>
1266
1267 PR gdb/25325
1268 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
1269
d9e49b61
TT
12702020-04-03 Tom Tromey <tromey@adacore.com>
1271
1272 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
1273 Read constant block.
1274
e0fc5c3f
SM
12752020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1276
1277 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
1278 (gdb_bfd_get_full_section_contents): New declaration.
1279 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
1280 * windows-tdep.c (is_linked_with_cygwin_dll): Use
1281 gdb_bfd_get_full_section_contents.
1282
e2ff18a0
SM
12832020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1284
1285 * exec.c (build_section_table): Replace internal_error with
1286 gdb_assert.
1287 (section_table_xfer_memory_partial): Likewise.
1288 * mdebugread.c (parse_partial_symbols): Likewise.
1289 * psymtab.c (lookup_partial_symbol): Likewise.
1290 * utils.c (wrap_here): Likewise.
1291
0830d301
TT
12922020-04-02 Tom Tromey <tromey@adacore.com>
1293
1294 * f-lang.c (build_fortran_types): Use arch_type to initialize
1295 builtin_complex_s32 in the TYPE_CODE_ERROR case.
1296
e7da7f8f
TT
12972020-04-02 Tom Tromey <tromey@adacore.com>
1298
1299 * dwarf2/read.c (partial_die_info::read): Do not create a vector
1300 of attributes.
1301
c90d28ac
AB
13022020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
1303 Bernd Edlinger <bernd.edlinger@hotmail.de>
1304 Tom Tromey <tromey@adacore.com>
1305
1306 * buildsym.c (buildsym_compunit::record_line): Remove
1307 deduplication code.
1308
1aa98955
TV
13092020-04-02 Tom de Vries <tdevries@suse.de>
1310
1311 PR ada/24671
1312 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
1313
d3214198
TV
13142020-04-02 Tom de Vries <tdevries@suse.de>
1315
1316 * dwarf2/read.c (dwarf2_gdb_index_functions,
1317 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
1318 NULL.
1319 * psymtab.c (psym_lookup_global_symbol_language): New function.
1320 (psym_functions): Init psym_lookup_global_symbol_language with
1321 psym_lookup_global_symbol_language.
1322 * symfile-debug.c (debug_sym_quick_functions): Init
1323 lookup_global_symbol_language with NULL.
1324 * symfile.c (set_initial_language): Remove fixme comment.
1325 * symfile.h (struct quick_symbol_functions): Add
1326 lookup_global_symbol_language.
1327 * symtab.c (find_quick_global_symbol_language): New function.
1328 (find_main_name): Use find_quick_global_symbol_language.
1329
2836752f
SM
13302020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
1331
1332 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
1333
64dc2d4b
BE
13342020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1335
1336 * buildsym.c (record_line): Fix undefined behavior and preserve
1337 lines at eof.
1338
bbe3dc41
BE
13392020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1340
1341 * buildsym.c (record_line): Fix the resizing condition.
1342
6b4a335b
TT
13432020-04-01 Tom Tromey <tom@tromey.com>
1344
1345 * value.h (value_literal_complex): Add comment.
1346 * valops.c (value_literal_complex): Refer to value.h.
1347
3638a098
TT
13482020-04-01 Tom Tromey <tom@tromey.com>
1349
1350 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
1351 (scalar_type): New rule, from typebase.
1352 (typebase): Use scalar_type. Recognize complex types.
1353 (field_name): Handle FLOAT_KEYWORD.
1354 (ident_tokens): Add _Complex and __complex__.
1355
c34e8714
TT
13562020-04-01 Tom Tromey <tom@tromey.com>
1357
1358 PR exp/25299:
1359 * valarith.c (promotion_type, complex_binop): New functions.
1360 (scalar_binop): Handle complex numbers. Use promotion_type.
1361 (value_pos, value_neg, value_complement): Handle complex numbers.
1362
fa649bb7
TT
13632020-04-01 Tom Tromey <tom@tromey.com>
1364
1365 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
1366 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
1367 (parse_number): Handle complex numbers.
1368
981c08ce
TT
13692020-04-01 Tom Tromey <tom@tromey.com>
1370
1371 * c-valprint.c (c_decorations): Change complex suffix to "i".
1372
4c99290d
TT
13732020-04-01 Tom Tromey <tom@tromey.com>
1374
1375 * valprint.c (generic_value_print_complex): Use accessors.
1376 * value.h (value_real_part, value_imaginary_part): Declare.
1377 * valops.c (value_real_part, value_imaginary_part): New
1378 functions.
1379 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
1380
5b930b45
TT
13812020-04-01 Tom Tromey <tom@tromey.com>
1382
1383 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
1384 (read_range_type): Update.
1385 * mdebugread.c (basic_type): Update.
1386 * go-lang.c (build_go_types): Use init_complex_type.
1387 * gdbtypes.h (struct main_type) <complex_type>: New member.
1388 (init_complex_type): Update.
1389 (arch_complex_type): Don't declare.
1390 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
1391 Make name if none given. Use alloc_type_copy. Look for cached
1392 complex type.
1393 (arch_complex_type): Remove.
1394 (gdbtypes_post_init): Use init_complex_type.
1395 * f-lang.c (build_fortran_types): Use init_complex_type.
1396 * dwarf2/read.c (read_base_type): Update.
1397 * d-lang.c (build_d_types): Use init_complex_type.
1398 * ctfread.c (read_base_type): Update.
1399
53cccef1
TBA
14002020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1401
1402 * infrun.c (stop_all_threads): Update assertion, plus when
1403 stopping threads, take into account that we might be trying
1404 to stop an all-stop target.
1405 (stop_waiting): Call 'stop_all_threads' if there exists a
1406 non-stop target.
1407
a0714d30
TBA
14082020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1409
1410 * target.h (exists_non_stop_target): New function declaration.
1411 * target.c (exists_non_stop_target): New function.
1412
60e22c1e
HD
14132020-04-01 Hannes Domani <ssbssa@yahoo.de>
1414
1415 PR gdb/24789
1416 * eval.c (is_integral_or_integral_reference): New function.
1417 (evaluate_subexp_standard): Allow integer references in
1418 pointer arithmetic.
1419
e139a727
TBA
14202020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1421
1422 * remote.c (remote_target::remote_parse_stop_reply): Remove the
1423 check for no ptid in the stop reply when the target is non-stop.
1424
e0802d59
TT
14252020-04-01 Tom Tromey <tromey@adacore.com>
1426
1427 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
1428 "name" parameter to rvalue reference. Initialize m_name_holder.
1429 <lookup_name_info>: New overloads.
1430 <name>: Return gdb::string_view.
1431 <c_str>: New method.
1432 <make_ignore_params>: Update.
1433 <search_name_hash>: Update.
1434 <language_lookup_name>: Return const char *.
1435 <m_name>: Change type.
1436 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
1437 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
1438 (lookup_name_info::match_any): Update.
1439 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
1440 Update.
1441 * minsyms.c (linkage_name_str): Update.
1442 * language.c (default_symbol_name_matcher): Update.
1443 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
1444 Update.
1445 * ada-lang.c (ada_fold_name): Change parameter to string_view.
1446 (ada_lookup_name_info::ada_lookup_name_info): Update.
1447 (literal_symbol_name_matcher): Update.
1448
8c072cb6
TT
14492020-04-01 Tom Tromey <tromey@adacore.com>
1450
1451 * psymtab.c (psymtab_search_name): Remove function.
1452 (psym_lookup_symbol): Create search name and lookup name here.
1453 (lookup_partial_symbol): Remove "name" parameter; add
1454 lookup_name.
1455 (psym_expand_symtabs_for_function): Update.
1456
6f29a534
TT
14572020-03-31 Joel Jones <joelkevinjones@gmail.com>
1458
1459 PR tui/25597:
1460 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
1461
af62665e
TT
14622020-03-31 Tom Tromey <tromey@adacore.com>
1463
1464 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
1465 memcpy.
1466
d1a89da5
NC
14672020-03-30 Nelson Chu <nelson.chu@sifive.com>
1468
1469 * features/riscv/32bit-csr.xml: Regenerated.
1470 * features/riscv/64bit-csr.xml: Regenerated.
1471
d8af9068
TT
14722020-03-30 Tom Tromey <tromey@adacore.com>
1473
1474 * ada-valprint.c (print_variant_part): Update.
1475 * ada-lang.h (ada_which_variant_applies): Update.
1476 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
1477 outer_valaddr parameters; replace with "outer" value parameter.
1478 (to_fixed_variant_branch_type): Update.
1479
227c0bf4
PFC
14802020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1481
1482 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
1483 <list>. Remove inclusion of observable.h.
1484 (PPC_DEBUG_CURRENT_VERSION): Move up define.
1485 (struct arch_lwp_info): New struct.
1486 (class ppc_linux_dreg_interface): New class.
1487 (struct ppc_linux_process_info): New struct.
1488 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
1489 <low_new_clone, low_forget_process, low_prepare_to_resume>
1490 <copy_thread_dreg_state, mark_thread_stale>
1491 <mark_debug_registers_changed, register_hw_breakpoint>
1492 <clear_hw_breakpoint, register_wp, clear_wp>
1493 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
1494 <num_memory_accesses, get_trigger_type>
1495 <create_watchpoint_request, hwdebug_point_cmp>
1496 <init_arch_lwp_info, get_arch_lwp_info>
1497 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
1498 methods.
1499 <struct ptid_hash>: New inner struct.
1500 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
1501 members.
1502 (saved_dabr_value, hwdebug_info, max_slots_number)
1503 (struct hw_break_tuple, struct thread_points, ppc_threads)
1504 (have_ptrace_hwdebug_interface)
1505 (hwdebug_find_thread_points_by_tid)
1506 (hwdebug_insert_point, hwdebug_remove_point): Remove.
1507 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
1508 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
1509 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
1510 use m_dreg_interface.
1511 (hwdebug_point_cmp): Change to...
1512 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
1513 reference arguments instead of pointers.
1514 (ppc_linux_nat_target::ranged_break_num_registers): Use
1515 m_dreg_interface.
1516 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
1517 m_dreg_interface. Call register_hw_breakpoint.
1518 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
1519 m_dreg_interface. Call clear_hw_breakpoint.
1520 (get_trigger_type): Change to...
1521 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
1522 comment.
1523 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
1524 use m_dreg_interface. Call register_hw_breakpoint.
1525 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
1526 use m_dreg_interface. Call clear_hw_breakpoint.
1527 (can_use_watchpoint_cond_accel): Change to...
1528 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
1529 method. Update comment, use m_dreg_interface and
1530 m_process_info.
1531 (calculate_dvc): Change to...
1532 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
1533 m_dreg_interface.
1534 (num_memory_accesses): Change to...
1535 (ppc_linux_nat_target::num_memory_accesses): ...this method.
1536 (check_condition): Change to...
1537 (ppc_linux_nat_target::check_condition): ...this method.
1538 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
1539 comment, use m_dreg_interface.
1540 (create_watchpoint_request): Change to...
1541 (ppc_linux_nat_target::create_watchpoint_request): ...this
1542 method. Use m_dreg_interface.
1543 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
1544 m_dreg_interface. Call register_hw_breakpoint or register_wp.
1545 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
1546 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
1547 (ppc_linux_nat_target::low_forget_process)
1548 (ppc_linux_nat_target::low_new_fork)
1549 (ppc_linux_nat_target::low_new_clone)
1550 (ppc_linux_nat_target::low_delete_thread)
1551 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
1552 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
1553 only call mark_thread_stale.
1554 (ppc_linux_thread_exit): Remove.
1555 (ppc_linux_nat_target::stopped_data_address): Change to...
1556 (ppc_linux_nat_target::low_stopped_data_address): This. Add
1557 comment, use m_dreg_interface and m_thread_hw_breakpoints.
1558 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
1559 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
1560 comment. Call low_stopped_data_address.
1561 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
1562 m_dreg_interface.
1563 (ppc_linux_nat_target::masked_watch_num_registers): Use
1564 m_dreg_interface.
1565 (ppc_linux_nat_target::copy_thread_dreg_state)
1566 (ppc_linux_nat_target::mark_thread_stale)
1567 (ppc_linux_nat_target::mark_debug_registers_changed)
1568 (ppc_linux_nat_target::register_hw_breakpoint)
1569 (ppc_linux_nat_target::clear_hw_breakpoint)
1570 (ppc_linux_nat_target::register_wp)
1571 (ppc_linux_nat_target::clear_wp)
1572 (ppc_linux_nat_target::init_arch_lwp_info)
1573 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
1574 (_initialize_ppc_linux_nat): Remove observer callback.
1575
4db10d8f
PFC
15762020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1577
1578 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
1579 (ppc_linux_nat_target::auxv_parse)
1580 (ppc_linux_nat_target::read_description)
1581 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
1582 Move up.
1583
1310c1b0
PFC
15842020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1585
1586 * linux-nat.h (low_new_clone): New method.
1587 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
1588
69b037c3
SM
15892020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
1590
1591 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
1592 (dbx_expand_psymtab): ... this.
1593 (start_psymtab): Update.
1594 * mdebugread.c (psymtab_to_symtab_1): Rename to...
1595 (mdebug_expand_psymtab): ... this.
1596 (parse_partial_symbols): Update.
1597 (new_psymtab): Update.
1598 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
1599 (xcoff_expand_psymtab): ... this.
1600 (xcoff_start_psymtab): Update.
1601
48993951
SM
16022020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
1603
1604 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
1605 <expand_dependencies>: ... this.
1606 * psymtab.c (partial_symtab::read_dependencies): Rename to...
1607 (partial_symtab::expand_dependencies): ... this.
1608 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
1609 Update.
1610 (dwarf2_psymtab::expand_psymtab): Update.
1611 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
1612 * mdebugread.c (psymtab_to_symtab_1): Update.
1613 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
1614
3ad83046
SM
16152020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
1616
1617 * psympriv.h (discard_psymtab): Remove.
1618 * dbxread.c (dbx_end_psymtab): Update.
1619 * xcoffread.c (xcoff_end_psymtab): Update.
1620
4d1b9ab6
TT
16212020-03-28 Tom Tromey <tom@tromey.com>
1622
1623 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
1624 comment.
1625
f1749218
TT
16262020-03-28 Tom Tromey <tom@tromey.com>
1627
1628 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
1629
ebea7626
HD
16302020-03-27 Hannes Domani <ssbssa@yahoo.de>
1631
1632 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
1633
a879b4d5
JB
16342020-03-26 John Baldwin <jhb@FreeBSD.org>
1635
1636 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
1637
0826b30a
TT
16382020-03-26 Tom Tromey <tom@tromey.com>
1639
1640 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
1641 (mark_common_block_symbol_computed, read_tag_string_type)
1642 (attr_to_dynamic_prop, read_subrange_type): Update.
1643 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
1644 to be methods on struct attribute.
1645 (skip_one_die, process_imported_unit_die, read_namespace_alias)
1646 (read_call_site_scope, partial_die_info::read)
1647 (partial_die_info::read, lookup_die_type, follow_die_ref):
1648 Update.
1649 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
1650 from dwarf2_get_ref_die_offset.
1651 (attribute::constant_value): New method, from
1652 dwarf2_get_attr_constant_value.
1653 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
1654 Declare method.
1655 <constant_value>: New method.
1656
2b2558bf
TT
16572020-03-26 Tom Tromey <tom@tromey.com>
1658
1659 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
1660 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
1661 (dwarf_type_encoding_name): Move to stringify.c.
1662 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
1663 * dwarf2/stringify.c: New file.
1664 * dwarf2/stringify.h: New file.
1665
eeb64781
TT
16662020-03-26 Tom Tromey <tom@tromey.com>
1667
1668 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
1669 Rewrite.
1670
a39fdb41
TT
16712020-03-26 Tom Tromey <tom@tromey.com>
1672
1673 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
1674 methods.
1675 * dwarf2/read.c (lookup_addr_base): Move to die.h.
1676 (lookup_ranges_base): Likewise.
1677 (read_cutu_die_from_dwo, read_full_die_1): Update.
1678
436c571c
TT
16792020-03-26 Tom Tromey <tom@tromey.com>
1680
1681 * dwarf2/read.c (read_import_statement, read_file_scope)
1682 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
1683 (read_lexical_block_scope, read_call_site_scope)
1684 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
1685 (handle_struct_member_die, process_structure_scope)
1686 (update_enumeration_type_from_children)
1687 (process_enumeration_scope, read_array_type, read_common_block)
1688 (read_namespace, read_module, read_subroutine_type): Update.
1689 (sibling_die): Remove.
1690
052c8bb8
TT
16912020-03-26 Tom Tromey <tom@tromey.com>
1692
1693 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
1694 (build_type_psymtabs_reader, read_structure_type)
1695 (read_enumeration_type, read_full_die_1): Update.
1696 (dwarf2_attr_no_follow): Move to die.h.
1697 * dwarf2/die.h (struct die_info) <attr>: New method.
1698
2b24b6e4
TT
16992020-03-26 Tom Tromey <tom@tromey.com>
1700
1701 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
1702 <base_address>: Now an optional.
1703 (dwarf2_find_base_address, dwarf2_rnglists_process)
1704 (dwarf2_ranges_process, fill_in_loclist_baton)
1705 (dwarf2_symbol_mark_computed): Update.
1706
c2d50fd0
TT
17072020-03-26 Tom Tromey <tom@tromey.com>
1708
1709 * dwarf2/read.c (struct die_info): Move to die.h.
1710 * dwarf2/die.h: New file.
1711
0df7ad3a
TT
17122020-03-26 Tom Tromey <tom@tromey.com>
1713
1714 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
1715 * dwarf2/read.c
1716 (dwarf2_statement_list_fits_in_line_number_section_complaint):
1717 Move to line-header.c.
1718 (read_checked_initial_length_and_offset, read_formatted_entries):
1719 Likewise.
1720 (dwarf_decode_line_header): Split into two.
1721 * dwarf2/line-header.c
1722 (dwarf2_statement_list_fits_in_line_number_section_complaint):
1723 Move from read.c.
1724 (read_checked_initial_length_and_offset, read_formatted_entries):
1725 Likewise.
1726 (dwarf_decode_line_header): New function, split from read.c.
1727
86c0bb4c
TT
17282020-03-26 Tom Tromey <tom@tromey.com>
1729
1730 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
1731 Declare method.
1732 * dwarf2/read.c (read_attribute_value): Update.
1733 (dwarf2_per_objfile::read_line_string): Rename from
1734 read_indirect_line_string.
1735 (read_formatted_entries): Update.
1736
2ef46c2f
TT
17372020-03-26 Tom Tromey <tom@tromey.com>
1738
1739 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
1740 variable.
1741
4f9c1eda
TT
17422020-03-26 Tom Tromey <tom@tromey.com>
1743
1744 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
1745 const.
1746 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
1747 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
1748 parameter const.
1749
5a0e026f
TT
17502020-03-26 Tom Tromey <tom@tromey.com>
1751
1752 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
1753 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
1754 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
1755 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
1756
8844c11b
TT
17572020-03-26 Tom Tromey <tom@tromey.com>
1758
1759 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
1760 file_names_size, file_full_name, file_file_name>: Use const.
1761 <file_name_at, file_names>: Add const overload.
1762 * dwarf2/line-header.c (line_header::file_file_name)
1763 (line_header::file_full_name): Update.
1764
c90ec28a
TT
17652020-03-26 Tom Tromey <tom@tromey.com>
1766
1767 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
1768 (macro_start_file, consume_improper_spaces)
1769 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
1770 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
1771 (dwarf_decode_macros): Move to macro.c.
1772 * dwarf2/macro.c: New file.
1773 * dwarf2/macro.h: New file.
1774 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
1775
4f44ae6c
TT
17762020-03-26 Tom Tromey <tom@tromey.com>
1777
1778 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
1779 method.
1780 * dwarf2/section.c: New method. From
1781 read_indirect_string_at_offset_from.
1782 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
1783 (read_indirect_string_at_offset_from): Move to section.c.
1784 (read_indirect_string_at_offset): Rewrite.
1785 (read_indirect_line_string_at_offset): Remove.
1786 (read_indirect_string, read_indirect_line_string)
1787 (dwarf_decode_macro_bytes): Update.
1788
a0194fa8
TT
17892020-03-26 Tom Tromey <tom@tromey.com>
1790
1791 * dwarf2/section.h (struct dwarf2_section_info)
1792 <overload_complaint>: Declare.
1793 (dwarf2_section_buffer_overflow_complaint): Don't declare.
1794 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
1795 Rename from dwarf2_section_buffer_overflow_complaint.
1796 * dwarf2/read.c (skip_one_die, partial_die_info::read)
1797 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
1798
3d27bbdb
TT
17992020-03-26 Tom Tromey <tom@tromey.com>
1800
1801 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
1802 Declare.
1803 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
1804 Move from read.c.
1805 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
1806 to section.c.
1807
9eac9650
TT
18082020-03-26 Tom Tromey <tom@tromey.com>
1809
1810 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
1811
bf80d710
TT
18122020-03-26 Tom Tromey <tom@tromey.com>
1813
1814 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
1815 "builder".
1816 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
1817 parameter.
1818 (dwarf_decode_macros): Update.
1819
0314b390
TT
18202020-03-26 Tom Tromey <tom@tromey.com>
1821
1822 * dwarf2/read.c (read_attribute_value): Update.
1823 (read_indirect_string_from_dwz): Move to dwz.c; change into
1824 method.
1825 (dwarf_decode_macro_bytes): Update.
1826 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
1827 * dwarf2/dwz.c: New file.
1828 * Makefile.in (COMMON_SFILES): Add dwz.c.
1829
9fda78b6
TT
18302020-03-26 Tom Tromey <tom@tromey.com>
1831
1832 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
1833 * dwarf2/read.c: Add include.
1834 * dwarf2/index-write.c: Add include.
1835 * dwarf2/index-cache.c: Add include.
1836 * dwarf2/dwz.h: New file.
1837
33aa3c10
TT
18382020-03-25 Tom Tromey <tom@tromey.com>
1839
1840 * compile/compile-object-load.c (get_out_value_type): Mention
1841 correct symbol name in error message.
1842
d503b685
HD
18432020-03-25 Hannes Domani <ssbssa@yahoo.de>
1844
1845 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
1846
7b1eff95
TV
18472020-03-25 Tom de Vries <tdevries@suse.de>
1848
1849 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
1850 * symmisc.c (dump_symtab_1): Print user and includes fields.
1851 (maintenance_info_symtabs): Same.
1852
dd895392
AB
18532020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
1854
1855 PR gdb/25534
1856 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
1857 (riscv_regcache_cooked_write): New function.
1858 (riscv_push_dummy_call): Use new function.
1859 (riscv_return_value): Likewise.
1860
5ab2fbf1
SM
18612020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1862
1863 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
1864 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
1865 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
1866 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
1867 * infrun.c (follow_fork): Likewise.
1868 (follow_fork_inferior): Likewise.
1869 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
1870 * linux-nat.h (class linux_nat_target): Likewise.
1871 * remote.c (class remote_target) <follow_fork>: Likewise.
1872 (remote_target::follow_fork): Likewise.
1873 * target-delegates.c: Re-generate.
1874 * target.c (default_follow_fork): Likewise.
1875 (target_follow_fork): Likewise.
1876 * target.h (struct target_ops) <follow_fork>: Likewise.
1877 (target_follow_fork): Likewise.
1878
a64fafb5
TV
18792020-03-24 Tom de Vries <tdevries@suse.de>
1880
1881 * psymtab.c (maintenance_info_psymtabs): Print user field.
1882
fe26d3a3
TT
18832020-03-20 Tom Tromey <tromey@adacore.com>
1884
1885 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
1886 const.
1887 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
1888 const.
1889
c884cc46
SM
18902020-03-20 Simon Marchi <simon.marchi@efficios.com>
1891
1892 * ptrace.m4: Don't check for ptrace declaration.
1893 * config.in: Re-generate.
1894 * configure: Re-generate.
1895 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
1896 not defined.
1897
1ff700c2
KR
18982020-03-20 Kamil Rytarowski <n54@gmx.com>
1899
1900 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
1901 `PTRACE_TYPE_RET'.
1902 * i386-bsd-nat.c (gdb_ptrace): Likewise.
1903 * sparc-nat.c (gdb_ptrace): Likewise.
1904 * x86-bsd-nat.c (gdb_ptrace): Likewise.
1905
f7d4f0b1
TT
19062020-03-20 Tom Tromey <tromey@adacore.com>
1907
1908 * c-exp.y (lex_one_token): Fix assert.
1909
f67210ff
TT
19102020-03-20 Tom Tromey <tromey@adacore.com>
1911
1912 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
1913 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
1914 strncpy call.
1915
1773be9e
TT
19162020-03-20 Tom Tromey <tromey@adacore.com>
1917
1918 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
1919
70304be9
TT
19202020-03-20 Tom Tromey <tromey@adacore.com>
1921
1922 * ada-valprint.c (print_variant_part): Remove parameters; switch
1923 to value-based API.
1924 (print_field_values): Likewise.
1925 (ada_val_print_struct_union): Likewise.
1926 (ada_value_print_1): Update.
1927
9faa006d
KR
19282020-03-20 Kamil Rytarowski <n54@gmx.com>
1929
1930 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
1931 nbsd_nat_target instead of inf_ptrace_target.
1932 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
1933 nbsd_nat_target.
1934
4a90f062
KR
19352020-03-20 Kamil Rytarowski <n54@gmx.com>
1936
1937 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
1938 it to the ptrace call.
1939 * (store_registers): Likewise.
1940
19412020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
1942
1943 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
1944 it to the ptrace call.
1945 * (store_registers): Likewise.
1946
2d07da27
LM
19472020-03-19 Luis Machado <luis.machado@linaro.org>
1948
1949 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
1950 valid, fetch vg value from ptrace.
1951
f09db380
KR
19522020-03-19 Kamil Rytarowski <n54@gmx.com>
1953 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
1954 * inf-ptrace.c: Likewise.
1955 * (gdb_ptrace): Add.
1956 * (inf_ptrace_target::resume): Update.
1957 * (inf_ptrace_target::xfer_partial): Likewise.
1958 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
1959 * (inf_ptrace_peek_poke): Update.
1960
fcc7376e
KR
19612020-03-19 Kamil Rytarowski <n54@gmx.com>
1962
1963 * x86-bsd-nat.c (gdb_ptrace): New.
1964 * (x86bsd_dr_set): Add new argument `ptid'.
1965 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
1966 x86bsd_dr_set_addr): Update.
1967
cada5fc9
AB
19682020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
1969
1970 * remote.c (remote_target::process_stop_reply): Handle events for
1971 all threads differently.
1972
19a2740f
AB
19732020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
1974
1975 * completer.c (completion_tracker::remove_completion): Define new
1976 function.
1977 * completer.h (completion_tracker::remove_completion): Declare new
1978 function.
1979 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
1980 when adding a C++ function symbol.
1981
724fd9ba
AB
19822020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
1983
1984 * completer.c (completion_tracker::completion_hash_entry): Define
1985 new class.
1986 (advance_to_filename_complete_word_point): Call
1987 recompute_lowest_common_denominator.
1988 (completion_tracker::completion_tracker): Call discard_completions
1989 to setup the hash table.
1990 (completion_tracker::discard_completions): Allow for being called
1991 from the constructor, pass new equal function, and element deleter
1992 when constructing the hash table. Initialise new class member
1993 variables.
1994 (completion_tracker::maybe_add_completion): Remove use of
1995 m_entries_vec, and store more information into m_entries_hash.
1996 (completion_tracker::recompute_lcd_visitor): New function, most
1997 content taken from...
1998 (completion_tracker::recompute_lowest_common_denominator):
1999 ...here, this now just visits each item in the hash calling the
2000 above visitor.
2001 (completion_tracker::build_completion_result): Remove use of
2002 m_entries_vec, call recompute_lowest_common_denominator.
2003 * completer.h (completion_tracker::have_completions): Remove use
2004 of m_entries_vec.
2005 (completion_tracker::completion_hash_entry): Declare new class.
2006 (completion_tracker::recompute_lowest_common_denominator): Change
2007 function signature.
2008 (completion_tracker::recompute_lcd_visitor): Declare new function.
2009 (completion_tracker::m_entries_vec): Delete.
2010 (completion_tracker::m_entries_hash): Initialize to NULL.
2011 (completion_tracker::m_lowest_common_denominator_valid): New
2012 member variable.
2013 (completion_tracker::m_lowest_common_denominator_max_length): New
2014 member variable.
2015
5a82b8a1
KR
20162020-03-17 Kamil Rytarowski <n54@gmx.com>
2017
2018 * regformats/regdef.h: Put reg in gdb namespace.
2019
fb516a69
KR
20202020-03-17 Kamil Rytarowski <n54@gmx.com>
2021
2022 * i386-bsd-nat.c (gdb_ptrace): New.
2023 * (i386bsd_fetch_inferior_registers,
2024 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
2025 * (i386bsd_fetch_inferior_registers,
2026 i386bsd_store_inferior_registers) Use gdb_ptrace.
2027
1c0aa1fb
KR
20282020-03-17 Kamil Rytarowski <n54@gmx.com>
2029
2030 * amd64-bsd-nat.c (gdb_ptrace): New.
2031 * (amd64bsd_fetch_inferior_registers,
2032 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
2033 * (amd64bsd_fetch_inferior_registers,
2034 amd64bsd_store_inferior_registers) Use gdb_ptrace.
2035
5ccd2fb7
KR
20362020-03-17 Kamil Rytarowski <n54@gmx.com>
2037
2038 * user-regs.c (user_reg::read): Rename to...
2039 (user_reg::xread): ...this.
2040 * (append_user_reg): Rename argument `read' to `xread'.
2041 * (user_reg_add_builtin): Likewise.
2042 * (user_reg_add): Likewise.
2043 * (value_of_user_reg): Likewise.
2044
2108a63a
KR
20452020-03-17 Kamil Rytarowski <n54@gmx.com>
2046
2047 * sparc-nat.c (gdb_ptrace): New.
2048 * sparc-nat.c (sparc_fetch_inferior_registers)
2049 (sparc_store_inferior_registers) Remove obsolete comment.
2050 * sparc-nat.c (sparc_fetch_inferior_registers)
2051 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
2052 * sparc-nat.c (sparc_fetch_inferior_registers)
2053 (sparc_store_inferior_registers) Use gdb_ptrace.
2054
a225c9a8
KR
20552020-03-17 Kamil Rytarowski <n54@gmx.com>
2056
2057 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
2058 it to the ptrace call.
2059 * sh-nbsd-nat.c (store_registers): Likewise.
2060
98097623
KR
20612020-03-17 Kamil Rytarowski <n54@gmx.com>
2062
2063 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
2064 nbsd_nat_target instead of inf_ptrace_target.
2065 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
2066 nbsd_nat_target.
2067
9e38d619
KR
20682020-03-17 Kamil Rytarowski <n54@gmx.com>
2069
2070 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
2071
a2ecbe9f
KR
20722020-03-17 Kamil Rytarowski <n54@gmx.com>
2073
2074 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
2075 <sys/sysctl.h>.
2076 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
2077
58990295
TV
20782020-03-17 Tom de Vries <tdevries@suse.de>
2079
2080 PR gdb/23710
2081 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
2082 fields.
2083 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
2084 fields.
2085 (process_imported_unit_die): Skip import of c++ CUs.
2086
771dd3a8
TT
20872020-03-16 Tom Tromey <tom@tromey.com>
2088
2089 * p-valprint.c (pascal_object_print_value): Initialize
2090 base_value.
2091
817a7585
AK
20922020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
2093 Shahab Vahedi <shahab@synopsys.com>
2094
2095 * Makefile.in: Add arch/arc.o
2096 * configure.tgt: Likewise.
2097 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
2098 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 2099 (arc_read_description): New function to cache target descriptions.
817a7585
AK
2100 * arc-tdep.h (arc_read_description): Add proto type.
2101 * arch/arc.c: New file.
2102 * arch/arc.h: Likewise.
2103 * features/Makefile: Replace old target descriptions with new.
2104 * features/arc-arcompact.c: Remove.
2105 * features/arc-arcompact.xml: Likewise.
2106 * features/arc-v2.c: Likewise
2107 * features/arc-v2.xml: Likewise
2108 * features/arc/aux-arcompact.xml: New file.
2109 * features/arc/aux-v2.xml: Likewise.
2110 * features/arc/core-arcompact.xml: Likewise.
2111 * features/arc/core-v2.xml: Likewise.
2112 * features/arc/aux-arcompact.c: Generate.
2113 * features/arc/aux-v2.c: Likewise.
2114 * features/arc/core-arcompact.c: Likewise.
2115 * features/arc/core-v2.c: Likewise.
2116 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
2117
67430cd0
TT
21182020-03-16 Tom Tromey <tromey@adacore.com>
2119
2120 PR gdb/25663:
2121 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
2122 putting value into bcache.
2123
30efb6c7
SM
21242020-03-16 Simon Marchi <simon.marchi@efficios.com>
2125
2126 PR gdb/21500
2127 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
2128 to...
2129 (amd64_windows_init_abi_common): ... this. Don't set size of
2130 long type.
2131 (amd64_windows_init_abi): New function.
2132 (amd64_cygwin_init_abi): New function.
2133 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
2134 the Cygwin OS ABI.
2135 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
2136 comment.
2137
8db52437
SM
21382020-03-16 Simon Marchi <simon.marchi@efficios.com>
2139
2140 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
2141 * windows-tdep.c (CYGWIN_DLL_NAME): New.
2142 (pe_import_directory_entry): New struct type.
2143 (is_linked_with_cygwin_dll): New function.
2144 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
2145 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
2146 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
2147
5982a56a
SM
21482020-03-16 Simon Marchi <simon.marchi@efficios.com>
2149
2150 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
2151 i386_cygwin_core_osabi_sniffer.
2152
7a1998df
SM
21532020-03-16 Simon Marchi <simon.marchi@efficios.com>
2154
2155 * i386-cygwin-tdep.c: Rename to...
2156 * i386-windows-tdep.c: ... this.
2157 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
2158 i386-windows-tdep.c.
2159 * configure.tgt: Likewise.
2160
053205cc
SM
21612020-03-16 Simon Marchi <simon.marchi@efficios.com>
2162
2163 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
2164 * osabi.c (gdb_osabi_names): Add "Windows".
2165 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
2166 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
2167 (i386_cygwin_core_osabi_sniffer): New function, extracted from
2168 i386_cygwin_osabi_sniffer.
2169 (_initialize_i386_cygwin_tdep): Register OS ABI
2170 GDB_OSABI_WINDOWS for i386.
2171 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
2172 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
2173 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
2174 for x86-64.
2175 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
2176 when the target matches '*-*-mingw*'.
2177
fe4b2ee6
SM
21782020-03-16 Simon Marchi <simon.marchi@efficios.com>
2179
2180 * defs.h (enum gdb_osabi): Move to...
2181 * osabi.h (enum gdb_osabi): ... here.
2182 * gdbarch.sh: Include osabi.h in gdbarch.h.
2183 * gdbarch.h: Re-generate.
2184
cb9b645d
SM
21852020-03-16 Simon Marchi <simon.marchi@efficios.com>
2186
2187 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
2188 function.
2189 (_initialize_amd64_windows_tdep): Register osabi sniffer.
2190
3293bbaf
TT
21912020-03-14 Tom Tromey <tom@tromey.com>
2192
2193 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
2194 for C++.
2195 (c_type_print_modifier): Likewise. Add "language" parameter.
2196 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
2197 (c_type_print_base_1): Update.
2198 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
2199 constants.
2200 * type-stack.c (type_stack::insert): Handle tp_atomic and
2201 tp_restrict.
2202 (type_stack::follow_type_instance_flags): Likewise.
2203 (type_stack::follow_types): Likewise. Merge type-following code.
2204 * c-exp.y (RESTRICT, ATOMIC): New tokens.
2205 (space_identifier, cv_with_space_id)
2206 (const_or_volatile_or_space_identifier_noopt)
2207 (const_or_volatile_or_space_identifier): Remove.
2208 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
2209 rules.
2210 (ptr_operator, typebase): Update.
2211 (enum token_flag) <FLAG_C>: New constant.
2212 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
2213 "_Atomic".
2214 (lex_one_token): Handle FLAG_C.
2215
154151a6
KR
22162020-03-14 Kamil Rytarowski <n54@gmx.com>
2217
2218 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
2219 it to the ptrace call.
2220 * m68k-bsd-nat.c (store_registers): Likewise.
2221
bc107784
KR
22222020-03-14 Kamil Rytarowski <n54@gmx.com>
2223
2224 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
2225 gdb_byte *.
2226 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
2227 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
2228 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
2229
01a80117
KR
22302020-03-14 Kamil Rytarowski <n54@gmx.com>
2231
2232 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
2233 nbsd_nat_target instead of inf_ptrace_target.
2234 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
2235 nbsd_nat_target.
2236
f90280ca
KR
22372020-03-14 Kamil Rytarowski <n54@gmx.com>
2238
2239 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
2240 register_t.
2241
6def66f1
KR
22422020-03-14 Kamil Rytarowski <n54@gmx.com>
2243
2244 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
2245 it to the ptrace call.
2246 * alpha-bsd-nat.c (store_registers): Likewise.
2247
66eaca97
KR
22482020-03-14 Kamil Rytarowski <n54@gmx.com>
2249
2250 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
2251 includes.
2252 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
2253 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
2254 fill_fpregset): Likewise.
2255
4fed520b
KR
22562020-03-14 Kamil Rytarowski <n54@gmx.com>
2257
2258 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
2259 nbsd_nat_target instead of inf_ptrace_target.
2260 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
2261 nbsd_nat_target.
2262
2190cf06
KR
22632020-03-14 Kamil Rytarowski <n54@gmx.com>
2264
2265 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
2266 register_t.
2267
75c56d3d
KR
22682020-03-14 Kamil Rytarowski <n54@gmx.com>
2269
2270 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
2271 it to the ptrace call.
2272 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
2273 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
2274 * arm-nbsd-nat.c (store_register): Likewise.
2275 * arm-nbsd-nat.c (store_regs): Likewise.
2276 * arm-nbsd-nat.c (store_fp_register): Likewise.
2277 * arm-nbsd-nat.c (store_fp_regs): Likewise.
2278
6018d381
KR
22792020-03-14 Kamil Rytarowski <n54@gmx.com>
2280
2281 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
2282 nbsd_nat_target instead of inf_ptrace_target.
2283 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
2284 nbsd_nat_target.
2285
013f99f0
KR
22862020-03-14 Kamil Rytarowski <n54@gmx.com>
2287
2288 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
2289 it to the ptrace call.
2290 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
2291
12753073
KR
22922020-03-14 Kamil Rytarowski <n54@gmx.com>
2293
6227b330
KR
2294 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
2295 it to the ptrace call.
2296 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
2297
22982020-03-14 Kamil Rytarowski <n54@gmx.com>
2299
2300 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
2301 gdb_byte *.
12753073
KR
2302 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
2303
d5be5fa4
KR
23042020-03-14 Kamil Rytarowski <n54@gmx.com>
2305
2306 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
2307 instead of inf_ptrace_target.
2308 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
2309 nbsd_nat_target.
2310
8110f842
KR
23112020-03-14 Kamil Rytarowski <n54@gmx.com>
2312
2313 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
2314 register_t.
2315
52feded7
KR
23162020-03-14 Kamil Rytarowski <n54@gmx.com>
2317
2318 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
2319 register_t.
2320
25567eee
KR
23212020-03-14 Kamil Rytarowski <n54@gmx.com>
2322
2323 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
2324 register_t.
2325
426a9c18
TT
23262020-03-13 Tom Tromey <tom@tromey.com>
2327
2328 * value.h (val_print): Don't declare.
2329 * valprint.h (val_print_array_elements)
2330 (val_print_scalar_formatted, generic_val_print): Don't declare.
2331 * valprint.c (generic_val_print_array): Take a struct value.
2332 (generic_val_print_ptr, generic_val_print_memberptr)
2333 (generic_val_print_bool, generic_val_print_int)
2334 (generic_val_print_char, generic_val_print_complex)
2335 (generic_val_print): Remove.
2336 (generic_value_print): Update.
2337 (do_val_print): Remove unused parameters. Don't call
2338 la_val_print.
2339 (val_print): Remove.
2340 (common_val_print): Update. Don't call value_check_printable.
2341 (val_print_scalar_formatted, val_print_array_elements): Remove.
2342 * rust-lang.c (rust_val_print): Remove.
2343 (rust_language_defn): Update.
2344 * p-valprint.c (pascal_val_print): Remove.
2345 (pascal_value_print_inner): Update.
2346 (pascal_object_print_val_fields, pascal_object_print_val):
2347 Remove.
2348 (pascal_object_print_static_field): Update.
2349 * p-lang.h (pascal_val_print): Don't declare.
2350 * p-lang.c (pascal_language_defn): Update.
2351 * opencl-lang.c (opencl_language_defn): Update.
2352 * objc-lang.c (objc_language_defn): Update.
2353 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
2354 * m2-lang.h (m2_val_print): Don't declare.
2355 * m2-lang.c (m2_language_defn): Update.
2356 * language.h (struct language_defn) <la_val_print>: Remove.
2357 * language.c (unk_lang_value_print_inner): Rename. Change
2358 argument types.
2359 (unknown_language_defn, auto_language_defn): Update.
2360 * go-valprint.c (go_val_print): Remove.
2361 * go-lang.h (go_val_print): Don't declare.
2362 * go-lang.c (go_language_defn): Update.
2363 * f-valprint.c (f_val_print): Remove.
2364 * f-lang.h (f_value_print): Don't declare.
2365 * f-lang.c (f_language_defn): Update.
2366 * d-valprint.c (d_val_print): Remove.
2367 * d-lang.h (d_value_print): Don't declare.
2368 * d-lang.c (d_language_defn): Update.
2369 * cp-valprint.c (cp_print_value_fields)
2370 (cp_print_value_fields_rtti, cp_print_value): Remove.
2371 (cp_print_static_field): Update.
2372 * c-valprint.c (c_val_print_array, c_val_print_ptr)
2373 (c_val_print_struct, c_val_print_union, c_val_print_int)
2374 (c_val_print_memberptr, c_val_print): Remove.
2375 * c-lang.h (c_val_print_array, cp_print_value_fields)
2376 (cp_print_value_fields_rtti): Don't declare.
2377 * c-lang.c (c_language_defn, cplus_language_defn)
2378 (asm_language_defn, minimal_language_defn): Update.
2379 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
2380 (ada_val_print_enum): Take a struct value.
2381 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
2382 (ada_val_print): Remove.
2383 (ada_value_print_1): Update.
2384 (printable_val_type): Remove.
2385 * ada-lang.h (ada_val_print): Don't declare.
2386 * ada-lang.c (ada_language_defn): Update.
2387
42331a1e
TT
23882020-03-13 Tom Tromey <tom@tromey.com>
2389
2390 * valprint.c (do_val_print): Update.
2391 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
2392 a struct value.
2393 (value_to_value_object_no_release): Declare.
2394 * python/py-value.c (value_to_value_object_no_release): New
2395 function.
2396 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
2397 struct value.
2398 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
2399 function.
2400 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
2401 a struct value.
2402 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
2403 Declare.
2404 (gdbscm_apply_val_pretty_printer): Take a struct value.
2405 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
2406 value.
2407 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
2408 value.
2409 * extension-priv.h (struct extension_language_ops)
2410 <apply_val_pretty_printer>: Take a struct value.
2411 * cp-valprint.c (cp_print_value): Create a struct value.
2412 (cp_print_value): Update.
2413
3a916a97
TT
24142020-03-13 Tom Tromey <tom@tromey.com>
2415
2416 * ada-valprint.c (print_field_values): Call common_val_print.
2417
b59eac37
TT
24182020-03-13 Tom Tromey <tom@tromey.com>
2419
2420 * ada-valprint.c (val_print_packed_array_elements): Remove
2421 bitoffset and val parameters. Call common_val_print.
2422 (ada_val_print_string): Remove offset, address, and original_value
2423 parameters.
2424 (ada_val_print_array): Update.
2425 (ada_value_print_array): New function.
2426 (ada_value_print_1): Call it.
2427
03371129
TT
24282020-03-13 Tom Tromey <tom@tromey.com>
2429
2430 * ada-valprint.c (ada_value_print): Use common_val_print.
2431
2e088f8b
TT
24322020-03-13 Tom Tromey <tom@tromey.com>
2433
2434 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
2435
39ef85a8
TT
24362020-03-13 Tom Tromey <tom@tromey.com>
2437
2438 * ada-valprint.c (ada_value_print_num): New function.
2439 (ada_value_print_1): Use it.
2440
b9fa6e07
TT
24412020-03-13 Tom Tromey <tom@tromey.com>
2442
2443 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
2444
416595d6
TT
24452020-03-13 Tom Tromey <tom@tromey.com>
2446
2447 * ada-valprint.c (ada_value_print_ptr): New function.
2448 (ada_value_print_1): Use it.
2449
5b5e15ec
TT
24502020-03-13 Tom Tromey <tom@tromey.com>
2451
2452 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
2453 call common_val_print.
2454 (ada_val_print_1): Update.
2455 (ada_value_print_1): New function.
2456 (ada_value_print_inner): Rewrite.
2457
fbf54e75
TT
24582020-03-13 Tom Tromey <tom@tromey.com>
2459
2460 * cp-valprint.c (cp_print_value_fields): Update.
2461 (cp_print_value): New function.
2462
64b653ca
TT
24632020-03-13 Tom Tromey <tom@tromey.com>
2464
2465 * m2-valprint.c (m2_value_print_inner): Use
2466 cp_print_value_fields.
2467 * cp-valprint.c (cp_print_value_fields): New function.
2468 * c-valprint.c (c_value_print_struct): New function.
2469 (c_value_print_inner): Use c_value_print_struct.
2470 * c-lang.h (cp_print_value_fields): Declare.
2471
6999f067
TT
24722020-03-13 Tom Tromey <tom@tromey.com>
2473
2474 * c-valprint.c (c_value_print_array): New function.
2475 (c_value_print_inner): Use it.
2476
ce80b8bd
TT
24772020-03-13 Tom Tromey <tom@tromey.com>
2478
2479 * c-valprint.c (c_value_print_memberptr): New function.
2480 (c_value_print_inner): Use it.
2481
2faac269
TT
24822020-03-13 Tom Tromey <tom@tromey.com>
2483
2484 * c-valprint.c (c_value_print_int): New function.
2485 (c_value_print_inner): Use it.
2486
da3e2c29
TT
24872020-03-13 Tom Tromey <tom@tromey.com>
2488
2489 * c-valprint.c (c_value_print_ptr): New function.
2490 (c_value_print_inner): Use it.
2491
50836231
TT
24922020-03-13 Tom Tromey <tom@tromey.com>
2493
2494 * c-valprint.c (c_value_print_inner): Rewrite.
2495
4f412b6e
TT
24962020-03-13 Tom Tromey <tom@tromey.com>
2497
2498 * valprint.c (generic_value_print_complex): New function.
2499 (generic_value_print): Use it.
2500
f5354008
TT
25012020-03-13 Tom Tromey <tom@tromey.com>
2502
2503 * valprint.c (generic_val_print_float): Don't call
2504 val_print_scalar_formatted.
2505 (generic_val_print, generic_value_print): Update.
2506
3eec3b05
TT
25072020-03-13 Tom Tromey <tom@tromey.com>
2508
2509 * valprint.c (generic_value_print_char): New function
2510 (generic_value_print): Use it.
2511
fdddfccb
TT
25122020-03-13 Tom Tromey <tom@tromey.com>
2513
2514 * valprint.c (generic_value_print_int): New function.
2515 (generic_value_print): Use it.
2516
6dde7521
TT
25172020-03-13 Tom Tromey <tom@tromey.com>
2518
2519 * valprint.c (generic_value_print_bool): New function.
2520 (generic_value_print): Use it.
2521
4112d2e6
TT
25222020-03-13 Tom Tromey <tom@tromey.com>
2523
2524 * valprint.c (generic_val_print_func): Simplify.
2525 (generic_val_print, generic_value_print): Update.
2526
65786af6
TT
25272020-03-13 Tom Tromey <tom@tromey.com>
2528
2529 * valprint.c (generic_val_print_flags): Remove.
2530 (generic_val_print, generic_value_print): Update.
2531 (val_print_type_code_flags): Add original_value parameter.
2532
40f3ce18
TT
25332020-03-13 Tom Tromey <tom@tromey.com>
2534
2535 * valprint.c (generic_val_print): Update.
2536 (generic_value_print): Update.
2537 * valprint.c (generic_val_print_enum): Don't call
2538 val_print_scalar_formatted.
2539
2a5b130b
TT
25402020-03-13 Tom Tromey <tom@tromey.com>
2541
2542 * valprint.c (generic_value_print): Call generic_value_print_ptr.
2543 * valprint.c (generic_value_print_ptr): New function.
2544
abc66ce9
TT
25452020-03-13 Tom Tromey <tom@tromey.com>
2546
2547 * valprint.c (generic_value_print): Rewrite.
2548
07a32858
TT
25492020-03-13 Tom Tromey <tom@tromey.com>
2550
2551 * p-valprint.c (pascal_object_print_value_fields)
2552 (pascal_object_print_value): New functions.
2553
64d64d3a
TT
25542020-03-13 Tom Tromey <tom@tromey.com>
2555
2556 * p-valprint.c (pascal_value_print_inner): Rewrite.
2557
6a95a1f5
TT
25582020-03-13 Tom Tromey <tom@tromey.com>
2559
2560 * f-valprint.c (f_value_print_innner): Rewrite.
2561
59fcdac6
TT
25622020-03-13 Tom Tromey <tom@tromey.com>
2563
2564 * m2-valprint.c (m2_print_unbounded_array): New overload.
2565 (m2_print_unbounded_array): Update.
2566 (m2_print_array_contents): Take a struct value.
2567 (m2_value_print_inner): Rewrite.
2568
d133c3e1
TT
25692020-03-13 Tom Tromey <tom@tromey.com>
2570
2571 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
2572 (d_value_print_inner): New function.
2573 * d-lang.h (d_value_print_inner): Declare.
2574 * d-lang.c (d_language_defn): Use d_value_print_inner.
2575
23b0f06b
TT
25762020-03-13 Tom Tromey <tom@tromey.com>
2577
2578 * go-valprint.c (go_value_print_inner): New function.
2579 * go-lang.h (go_value_print_inner): Declare.
2580 * go-lang.c (go_language_defn): Use go_value_print_inner.
2581
5f56f7cb
TT
25822020-03-13 Tom Tromey <tom@tromey.com>
2583
2584 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
2585 API.
2586 (rust_val_print): Rewrite.
2587 (rust_value_print_inner): New function, from rust_val_print.
2588 (rust_language_defn): Use rust_value_print_inner.
2589
26792ee0
TT
25902020-03-13 Tom Tromey <tom@tromey.com>
2591
2592 * ada-valprint.c (ada_value_print_inner): New function.
2593 * ada-lang.h (ada_value_print_inner): Declare.
2594 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
2595
24051bbe
TT
25962020-03-13 Tom Tromey <tom@tromey.com>
2597
2598 * f-valprint.c (f_value_print_innner): New function.
2599 * f-lang.h (f_value_print_innner): Declare.
2600 * f-lang.c (f_language_defn): Use f_value_print_innner.
2601
c0941be6
TT
26022020-03-13 Tom Tromey <tom@tromey.com>
2603
2604 * p-valprint.c (pascal_value_print_inner): New function.
2605 * p-lang.h (pascal_value_print_inner): Declare.
2606 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
2607
62c4663d
TT
26082020-03-13 Tom Tromey <tom@tromey.com>
2609
2610 * m2-valprint.c (m2_value_print_inner): New function.
2611 * m2-lang.h (m2_value_print_inner): Declare.
2612 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
2613
62182190
TT
26142020-03-13 Tom Tromey <tom@tromey.com>
2615
2616 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
2617 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
2618 * c-valprint.c (c_value_print_inner): New function.
2619 * c-lang.h (c_value_print_inner): Declare.
2620 * c-lang.c (c_language_defn, cplus_language_defn)
2621 (asm_language_defn, minimal_language_defn): Use
2622 c_value_print_inner.
2623
1e592a8a
TT
26242020-03-13 Tom Tromey <tom@tromey.com>
2625
2626 * p-valprint.c (pascal_object_print_value_fields): Now static.
2627 * p-lang.h (pascal_object_print_value_fields): Don't declare.
2628
7fe471e9
TT
26292020-03-13 Tom Tromey <tom@tromey.com>
2630
2631 * c-valprint.c (c_val_print_array): Simplify.
2632
d121c6ce
TT
26332020-03-13 Tom Tromey <tom@tromey.com>
2634
2635 * valprint.c (value_print_array_elements): New function.
2636 * valprint.h (value_print_array_elements): Declare.
2637
4dba70ee
TT
26382020-03-13 Tom Tromey <tom@tromey.com>
2639
2640 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
2641 * mips-tdep.c (mips_print_register): Use
2642 value_print_scalar_formatted.
2643
4f9ae810
TT
26442020-03-13 Tom Tromey <tom@tromey.com>
2645
2646 * valprint.h (value_print_scalar_formatted): Declare.
2647 * valprint.c (value_print_scalar_formatted): New function.
2648
156bfec9
TT
26492020-03-13 Tom Tromey <tom@tromey.com>
2650
2651 * valprint.h (generic_value_print): Declare.
2652 * valprint.c (generic_value_print): New function.
2653
2b4e573d
TT
26542020-03-13 Tom Tromey <tom@tromey.com>
2655
2656 * valprint.c (do_val_print): Call la_value_print_inner, if
2657 available.
2658 * rust-lang.c (rust_language_defn): Update.
2659 * p-lang.c (pascal_language_defn): Update.
2660 * opencl-lang.c (opencl_language_defn): Update.
2661 * objc-lang.c (objc_language_defn): Update.
2662 * m2-lang.c (m2_language_defn): Update.
2663 * language.h (struct language_defn) <la_value_print_inner>: New
2664 member.
2665 * language.c (unknown_language_defn, auto_language_defn): Update.
2666 * go-lang.c (go_language_defn): Update.
2667 * f-lang.c (f_language_defn): Update.
2668 * d-lang.c (d_language_defn): Update.
2669 * c-lang.c (c_language_defn, cplus_language_defn)
2670 (asm_language_defn, minimal_language_defn): Update.
2671 * ada-lang.c (ada_language_defn): Update.
2672
a1f6a07c
TT
26732020-03-13 Tom Tromey <tom@tromey.com>
2674
2675 * c-valprint.c (c_value_print): Use common_val_print.
2676
410cf315
TT
26772020-03-13 Tom Tromey <tom@tromey.com>
2678
2679 * cp-valprint.c (cp_print_static_field): Use common_val_print.
2680
72a45c93
TT
26812020-03-13 Tom Tromey <tom@tromey.com>
2682
2683 * f-valprint.c (f77_print_array_1, f_val_print): Use
2684 common_val_print.
2685
040f66bd
TT
26862020-03-13 Tom Tromey <tom@tromey.com>
2687
2688 * riscv-tdep.c (riscv_print_one_register_info): Use
2689 common_val_print.
2690
a6e05a6c
TT
26912020-03-13 Tom Tromey <tom@tromey.com>
2692
2693 * mi/mi-main.c (output_register): Use common_val_print.
2694
3444c526
TT
26952020-03-13 Tom Tromey <tom@tromey.com>
2696
2697 * infcmd.c (default_print_one_register_info): Use
2698 common_val_print.
2699
c2a44efe
TT
27002020-03-13 Tom Tromey <tom@tromey.com>
2701
2702 * valprint.h (common_val_print_checked): Declare.
2703 * valprint.c (common_val_print_checked): New function.
2704 * stack.c (print_frame_arg): Use common_val_print_checked.
2705
b0c26e99
TT
27062020-03-13 Tom Tromey <tom@tromey.com>
2707
2708 * valprint.c (do_val_print): New function, from val_print.
2709 (val_print): Use do_val_print.
2710 (common_val_print): Use do_val_print.
2711
ce3acbe9
TT
27122020-03-13 Tom Tromey <tom@tromey.com>
2713
2714 * valprint.c (value_print): Use scoped_value_mark.
2715
96c7f873
TV
27162020-03-13 Tom de Vries <tdevries@suse.de>
2717
2718 PR symtab/25646
2719 * psymtab.c (partial_symtab::partial_symtab): Don't set
2720 globals_offset and statics_offset. Push element onto
2721 current_global_psymbols and current_static_psymbols stacks.
2722 (concat): New function.
2723 (end_psymtab_common): Set globals_offset and statics_offset. Pop
2724 element from current_global_psymbols and current_static_psymbols
2725 stacks. Concat popped elements to global_psymbols and
2726 static_symbols.
2727 (add_psymbol_to_list): Use current_global_psymbols and
2728 current_static_psymbols stacks.
2729 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
2730 current_static_psymbols fields.
2731
6ba0a321
CB
27322020-03-12 Christian Biesinger <cbiesinger@google.com>
2733
2734 * corelow.c (sniff_core_bfd): Remove.
2735 (class core_target) <m_core_vec>: Remove.
2736 (core_target::core_target): Update.
2737 (core_file_fns): Remove.
2738 (deprecated_add_core_fns): Remove.
2739 (default_core_sniffer): Remove.
2740 (sniff_core_bfd): Remove.
2741 (default_check_format): Remove.
2742 (gdb_check_format): Remove.
2743 (core_target_open): Update.
2744 (core_target::get_core_register_section): Update.
2745 (get_core_registers_cb): Update.
2746 (core_target::fetch_registers): Update.
2747 * gdbcore.h (struct core_fns): Remove.
2748 (deprecated_add_core_fns): Remove.
2749 (default_core_sniffer): Remove.
2750 (default_check_format): Remove.
2751
227031b2
TT
27522020-03-12 Tom Tromey <tom@tromey.com>
2753
2754 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
2755 CORE_ADDR.
2756 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
2757
53807e9f
TT
27582020-03-12 Tom Tromey <tom@tromey.com>
2759
2760 * remote.c (remote_target::download_tracepoint)
2761 (remote_target::enable_tracepoint)
2762 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
2763 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
2764 sprintf_vma.
2765
64f25102
TT
27662020-03-12 Tom Tromey <tom@tromey.com>
2767
2768 * symfile-mem.c: Update CORE_ADDR size assert.
2769
272cd5a3
SM
27702020-03-12 Simon Marchi <simon.marchi@efficios.com>
2771
2772 * selftest.m4: Move to gdbsupport/.
2773 * acinclude.m4: Update path to selftest.m4.
2774
74cd3f9d
SM
27752020-03-12 Simon Marchi <simon.marchi@efficios.com>
2776
2777 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
2778 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
2779 gdbarch-selfselftests.c and selftest-arch.c.
2780 (SUBDIR_UNITTESTS_OBS): Rename to...
2781 (SELFTESTS_OBS): ... this.
2782 (COMMON_SFILES): Remove disasm-selftests.c and
2783 gdbarch-selftests.c.
2784 * configure.ac: Don't add selftest-arch.{c,o} to
2785 CONFIG_{SRCS,OBS}.
2786 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
2787 preprocessor conditions.
2788
db6878ac
SM
27892020-03-12 Simon Marchi <simon.marchi@efficios.com>
2790
2791 * configure.ac: Don't source bfd/development.sh.
2792 * selftest.m4: Modify comment.
2793 * configure: Re-generate.
2794
4d696a5c
SM
27952020-03-12 Simon Marchi <simon.marchi@efficios.com>
2796
2797 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
2798 not "true" or "false".
2799 * configure: Re-generate.
2800
8dd8e1c7
CB
28012020-03-12 Christian Biesinger <cbiesinger@google.com>
2802
2803 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
2804 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
2805 renamed to arm_nbsd_supply_gregset.
2806 (fetch_register): Update to call arm_nbsd_supply_gregset.
2807 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
2808 (arm_netbsd_nat_target::fetch_registers): Update.
2809 (fetch_elfcore_registers): Removed.
2810 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
2811 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
2812 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
2813 not require NetBSD system headers.
2814 (arm_nbsd_regset): New struct.
2815 (arm_nbsd_iterate_over_regset_sections): New function.
2816 (arm_netbsd_init_abi_common): Updated to call
2817 set_gdbarch_iterate_over_regset_sections.
2818 * arm-nbsd-tdep.h: New file.
2819
dd69bf7a
KB
28202020-03-11 Kevin Buettner <kevinb@redhat.com>
2821
2822 * symtab.c (find_pc_sect_line): Add check which prevents infinite
2823 recursion.
2824
a0761e34
SM
28252020-03-11 Simon Marchi <simon.marchi@efficios.com>
2826
2827 * configure: Re-generate.
2828
e7a82140
TT
28292020-03-11 Tom Tromey <tromey@adacore.com>
2830
2831 * ada-typeprint.c (print_choices): Fix comment.
2832
dcc050c8
AB
28332020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
2834
2835 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
2836 previous item in the list, when the list has no items.
2837
1c33af77
TV
28382020-03-11 Tom de Vries <tdevries@suse.de>
2839
2840 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
2841 PROP_LOCLIST handling code.
2842
8c95582d
AB
28432020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
2844
2845 * buildsym-legacy.c (record_line): Pass extra parameter to
2846 record_line.
2847 * buildsym.c (buildsym_compunit::record_line): Take an extra
2848 parameter, reduce duplication in the line table, and record the
2849 is_stmt flag in the line table.
2850 * buildsym.h (buildsym_compunit::record_line): Add extra
2851 parameter.
2852 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
2853 non-statement lines.
2854 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
2855 this to the symtab builder.
2856 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
2857 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
2858 through to dwarf_record_line_1.
2859 * infrun.c (process_event_stop_test): When stepping, don't stop at
2860 a non-statement instruction, and only refresh the step info when
2861 we land in the middle of a line's range. Also add an extra
2862 comment.
2863 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
2864 field.
2865 * record-btrace.c (btrace_find_line_range): Only record lines
2866 marked as is-statement.
2867 * stack.c (frame_show_address): Show the frame address if we are
2868 in a non-statement sal.
2869 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
2870 (maintenance_print_one_line_table): Print a header for the is_stmt
2871 column, and include is_stmt information in the output.
2872 * symtab.c (find_pc_sect_line): Find lines marked as statements in
2873 preference to non-statements.
2874 (find_pcs_for_symtab_line): Prefer is-statement entries.
2875 (find_line_common): Likewise.
2876 * symtab.h (struct linetable_entry): Add is_stmt field.
2877 (struct symtab_and_line): Likewise.
2878 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
2879 arranging the line table.
2880
e4003a34
TV
28812020-03-07 Tom de Vries <tdevries@suse.de>
2882
2883 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
2884 DIE.
2885
e8932576
TT
28862020-03-07 Tom Tromey <tom@tromey.com>
2887
2888 * valops.c (value_literal_complex): Remove obsolete comment.
2889 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
2890 comment.
2891
29734269
SM
28922020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
2893
2894 * infrun.h: Forward-declare thread_info.
2895 (set_step_info): Add thread_info parameter, add doc.
2896 * infrun.c (set_step_info): Add thread_info parameter, move doc
2897 to header.
2898 * infrun.c (process_event_stop_test): Pass thread to
2899 set_step_info call.
2900 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
2901 set_step_info.
2902 (prepare_one_step): Add thread_info parameter, pass it to
2903 set_step_frame and prepare_one_step (recursive) call.
2904 (step_1): Pass thread to prepare_one_step call.
2905 (step_command_fsm::should_stop): Pass thread to
2906 prepare_one_step.
2907 (until_next_fsm): Pass thread to set_step_frame call.
2908 (finish_command): Pass thread to set_step_info call.
2909
b7d64b29
HD
29102020-03-06 Hannes Domani <ssbssa@yahoo.de>
2911
2912 * windows-tdep.c (windows_solib_create_inferior_hook):
2913 Check if inferior is running.
2914
09f2921c
TV
29152020-03-06 Tom de Vries <tdevries@suse.de>
2916
2917 * NEWS: Fix "the the".
2918 * ctfread.c: Same.
2919
fd760e79
TV
29202020-03-06 Tom de Vries <tdevries@suse.de>
2921
2922 * psymtab.c (psymtab_to_symtab): Don't print "done.".
2923
20ea4a60
AB
29242020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2925
2926 * .dir-locals.el: Add a comment referencing the other copies of
2927 this file.
2928
0afbabf0
JB
29292020-03-05 John Baldwin <jhb@FreeBSD.org>
2930
2931 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
2932 psargs.
2933
842806cb
TBA
29342020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2935
2936 * .gitattributes: New file.
2937
be1e3d3e
TT
29382020-03-04 Tom Tromey <tom@tromey.com>
2939
2940 * symmisc.c (print_symbol_bcache_statistics)
2941 (print_objfile_statistics): Update.
2942 * symfile.c (allocate_symtab): Use intern.
2943 * psymtab.c (partial_symtab::partial_symtab): Use intern.
2944 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
2945 macro_cache>: Remove.
2946 <string_cache>: New member.
2947 (struct objfile) <intern>: New methods.
2948 * elfread.c (elf_symtab_read): Use intern.
2949 * dwarf2/read.c (fixup_go_packaging): Intern package name.
2950 (dwarf2_compute_name, dwarf2_physname)
2951 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
2952 names.
2953 (guess_partial_die_structure_name): Update.
2954 (partial_die_info::fixup): Intern name.
2955 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
2956 name.
2957 (dwarf2_name): Intern name. Update.
2958 * buildsym.c (buildsym_compunit::get_macro_table): Use
2959 string_cache.
2960
4e7625fd
TT
29612020-03-04 Tom Tromey <tom@tromey.com>
2962
2963 * jit.c (bfd_open_from_target_memory): Make "target" const.
2964 * corefile.c (gnutarget): Now const.
2965 * gdbcore.h (gnutarget): Now const.
2966
46f9f931
HD
29672020-03-04 Hannes Domani <ssbssa@yahoo.de>
2968
2969 * NEWS: Mention support for WOW64 processes.
2970 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
2971 (amd64_windows_segment_register_p): Remove static.
2972 (_initialize_amd64_windows_nat): Update.
2973 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
2974 * i386-windows-nat.c (context_offset): Update.
2975 (i386_mappings): Rename and remove static.
2976 (i386_windows_segment_register_p): Remove static.
2977 (_initialize_i386_windows_nat): Update.
2978 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
2979 (STATUS_WX86_SINGLE_STEP): New macro.
2980 (EnumProcessModulesEx): New macro.
2981 (Wow64SuspendThread): New macro.
2982 (Wow64GetThreadContext): New macro.
2983 (Wow64SetThreadContext): New macro.
2984 (Wow64GetThreadSelectorEntry): New macro.
2985 (windows_set_context_register_offsets): Add static.
2986 (windows_set_segment_register_p): Likewise.
2987 (windows_add_thread): Adapt for WOW64 processes.
2988 (windows_fetch_one_register): Likewise.
2989 (windows_nat_target::fetch_registers): Likewise.
2990 (windows_store_one_register): Likewise.
2991 (display_selector): Likewise.
2992 (display_selectors): Likewise.
2993 (handle_exception): Likewise.
2994 (windows_continue): Likewise.
2995 (windows_nat_target::resume): Likewise.
2996 (windows_add_all_dlls): Likewise.
2997 (do_initial_windows_stuff): Likewise.
2998 (windows_nat_target::attach): Likewise.
2999 (windows_get_exec_module_filename): Likewise.
3000 (windows_nat_target::create_inferior): Likewise.
3001 (windows_xfer_siginfo): Likewise.
3002 (_initialize_loadable): Initialize Wow64SuspendThread,
3003 Wow64GetThreadContext, Wow64SetThreadContext,
3004 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
3005 * windows-nat.h (windows_set_context_register_offsets):
3006 Remove declaration.
3007 (windows_set_segment_register_p): Likewise.
3008 (i386_windows_segment_register_p): Add declaration.
3009 (amd64_windows_segment_register_p): Likewise.
3010
440cf44e
LM
30112020-03-04 Luis Machado <luis.machado@linaro.org>
3012
3013 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
3014 in "info registers" for AArch64/ARM.
3015
3016 The change caused "info registers" to not print GPR's.
3017
3018 gdb/ChangeLog:
3019
3020 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
3021
3022 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
3023 when reg->group is empty and reggroup is not.
3024
1009d92f
TT
30252020-03-03 Tom Tromey <tromey@adacore.com>
3026
3027 * dwarf2/frame.c (struct dwarf2_frame_cache)
3028 <checked_tailcall_bottom, entry_cfa_sp_offset,
3029 entry_cfa_sp_offset_p>: Remove members.
3030 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
3031 (dwarf2_frame_prev_register): Don't call
3032 dwarf2_tailcall_sniffer_first.
3033 (dwarf2_append_unwinders): Don't append tailcall unwinder.
3034 * frame-unwind.c (add_unwinder): New fuction.
3035 (frame_unwind_init): Use it. Add tailcall unwinder.
3036
5e5d66b6
AB
30372020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
3038 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3039
3040 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
3041 value should be printed as true.
3042
584cf46d
HD
30432020-03-03 Hannes Domani <ssbssa@yahoo.de>
3044
3045 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
3046 (windows_init_abi): Set and use windows_so_ops.
3047
7b973adc
SDJ
30482020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
3049
3050 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
3051 when verifying if dealing with a convenience variable.
3052
bb7b70ab
LM
30532020-03-03 Luis Machado <luis.machado@linaro.org>
3054
3055 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
3056
9822cb57
SM
30572020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3058
3059 * infrun.c (gdbarch_supports_displaced_stepping): New.
3060 (use_displaced_stepping): Break up conditions in smaller pieces.
3061 Use gdbarch_supports_displaced_stepping.
3062 (displaced_step_prepare_throw): Use
3063 gdbarch_supports_displaced_stepping.
3064
63e163f2
AB
30652020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
3066
3067 * NEWS: Mention new behaviour of the history filename.
3068 * top.c (write_history_p): Add comment.
3069 (show_write_history_p): Add header comment, give a different
3070 message when history writing is on, but the history filename is
3071 empty.
3072 (history_filename): Add comment.
3073 (history_filename_empty): New function.
3074 (show_history_filename): Add header comment, give a different
3075 message when the filename is empty.
3076 (init_history): Compare history_filename against nullptr, and only
3077 read history if the filename is not empty.
3078 (set_history_filename): Add header comment, and only make
3079 non-empty filenames absolute.
3080 (init_main): Make the filename argument to 'set history filename'
3081 optional.
3082
81b86b97
CB
30832020-03-02 Christian Biesinger <cbiesinger@google.com>
3084
3085 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
3086 (arm_supply_vfpregset): ...this, and update to use VFP registers.
3087 (fetch_fp_register): Update.
3088 (fetch_fp_regs): Update.
3089 (store_fp_register): Update.
3090 (store_fp_regs): Update.
3091 (arm_netbsd_nat_target::read_description): New function.
3092 (fetch_elfcore_registers): Update.
3093
24ed6739
AB
30942020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
3095
3096 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
3097 general_thread if the stop reply is missing a thread-id.
3098 (remote_target::process_stop_reply): Use the first non-exited
3099 thread if the target didn't pass a thread-id.
3100 * infrun.c (do_target_wait): Move call to
3101 switch_to_inferior_no_thread to ....
3102 (do_target_wait_1): ... here.
3103
a84bb2a0
JT
31042020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
3105
3106 * debuginfod-support.c: Include defs.h first.
3107
658dadf0
TV
31082020-02-28 Tom de Vries <tdevries@suse.de>
3109
3110 * symfile.c (set_initial_language): Use default language for lookup.
3111
4ebe4877
SM
31122020-02-28 Simon Marchi <simon.marchi@efficios.com>
3113
3114 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
3115 reader variable, pass `this` to read_cutu_die_from_dwo.
3116
e5da1139
AM
31172020-02-27 Aaron Merey <amerey@redhat.com>
3118
3119 * source.c (open_source_file): Check for nullptr when computing
3120 srcpath.
3121
317f7127
TT
31222020-02-27 Tom Tromey <tromey@adacore.com>
3123
3124 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
3125 member.
3126 (dwarf2_add_field): Don't update nfields.
3127 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
3128
3104d9ee
AB
31292020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3130
3131 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
3132 abs.
3133
b83470bf
TT
31342020-02-26 Tom Tromey <tom@tromey.com>
3135
3136 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
3137 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
3138 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
3139 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
3140 per_cu_data.
3141
edfe0a0c
TT
31422020-02-26 Tom Tromey <tom@tromey.com>
3143
3144 * dwarf2/index-write.c (psym_index_map): Change type.
3145 (add_address_entry_worker, write_one_signatured_type)
3146 (recursively_count_psymbols, recursively_write_psymbols)
3147 (class debug_names, psyms_seen_size, write_gdbindex)
3148 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
3149
0d79cdc4
AM
31502020-02-26 Aaron Merey <amerey@redhat.com>
3151
3152 * Makefile.in: Handle optional debuginfod support.
3153 * NEWS: Update.
3154 * README: Add --with-debuginfod summary.
3155 * config.in: Regenerate.
3156 * configure: Regenerate.
3157 * configure.ac: Handle optional debuginfod support.
3158 * debuginfod-support.c: debuginfod helper functions.
3159 * debuginfod-support.h: Ditto.
3160 * doc/gdb.texinfo: Add --with-debuginfod to configure options
3161 summary.
3162 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
3163 when a dwz file cannot be found.
3164 * elfread.c (elf_symfile_read): Query debuginfod servers when a
3165 debuginfo file cannot be found.
3166 * source.c (open_source_file): Query debuginfod servers when a
3167 source file cannot be found.
3168 * top.c (print_gdb_configuration): Include
3169 --{with,without}-debuginfod in the output.
3170
b65ce565
JG
31712020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3172
3173 * thread.c (thr_try_catch_cmd): Print thread name.
3174
d4c9a4f8
SM
31752020-02-26 Simon Marchi <simon.marchi@efficios.com>
3176
3177 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
3178 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3179 dwarf2_fetch_die_type_sect_off): Move to...
3180 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3181 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3182 dwarf2_fetch_die_type_sect_off): ... here.
3183 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3184 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3185 dwarf2_fetch_die_type_sect_off): Move doc to header file.
3186
0dce4280
TV
31872020-02-26 Tom de Vries <tdevries@suse.de>
3188
3189 PR gdb/25603
3190 * symfile.c (set_initial_language): Exit-early if
3191 language_mode == language_mode_manual.
3192
450a1bfc
SM
31932020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3194
3195 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
3196 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
3197 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
3198
9e80cfa1
AB
31992020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3200
3201 * gdbtypes.c (create_array_type_with_stride): Handle negative
3202 array strides.
3203 * valarith.c (value_subscripted_rvalue): Likewise.
3204
09624f1f
LM
32052020-02-25 Luis Machado <luis.machado@linaro.org>
3206
3207 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
3208
8cb5117c
SM
32092020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3210
3211 * loc.h (dwarf2_get_die_type): Move to...
3212 * read.h (dwarf2_get_die_type): ... here.
3213 * read.c (dwarf2_get_die_type): Move doc to header.
3214
c325c44e
JB
32152020-02-25 Joel Brobecker <brobecker@adacore.com>
3216
3217 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
3218 'gnulib/Makefile.in' to the list.
3219
4ac93832
TT
32202020-02-24 Tom Tromey <tom@tromey.com>
3221
3222 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
3223 Remove.
3224 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
3225 XOBNEWVEC.
3226
197400e8
TT
32272020-02-24 Tom Tromey <tom@tromey.com>
3228
3229 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
3230 New method.
3231 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
3232 (dw2_do_instantiate_symtab, dw2_get_file_names)
3233 (build_type_psymtab_dependencies, load_full_type_unit): Update.
3234
76935768
TT
32352020-02-24 Tom Tromey <tom@tromey.com>
3236
3237 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
3238 make_scoped_restore.
3239 (dwarf2_psymtab::read_symtab): Don't clear
3240 reading_partial_symbols.
3241
a88ef40d
TV
32422020-02-24 Tom de Vries <tdevries@suse.de>
3243
3244 PR gdb/25592
3245 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
3246
c9af6521
TV
32472020-02-24 Tom de Vries <tdevries@suse.de>
3248
3249 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
3250 commands layout next/prev/regs.
3251
5707a07a
TT
32522020-02-22 Tom Tromey <tom@tromey.com>
3253
3254 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
3255 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
3256
3b0fb49e
TT
32572020-02-22 Tom Tromey <tom@tromey.com>
3258
3259 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
3260
283be8bf
TT
32612020-02-22 Tom Tromey <tom@tromey.com>
3262
3263 * tui/tui-win.c (_initialize_tui_win): Add usage text.
3264 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
3265 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
3266 * tui/tui.c (_initialize_tui): Add usage text.
3267
ca793b96
TT
32682020-02-22 Tom Tromey <tom@tromey.com>
3269
3270 * tui/tui-win.c (tui_set_focus_command)
3271 (tui_set_win_height_command): Use error_no_arg.
3272 (_initialize_tui_win): Update help text.
3273 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
3274
432b5c40
TT
32752020-02-22 Tom Tromey <tom@tromey.com>
3276
3277 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
3278 * tui/tui-disasm.h (struct tui_disasm_window)
3279 <display_start_addr>: Declare.
3280 * tui/tui-source.h (struct tui_source_window)
3281 <display_start_addr>: Declare.
3282 * tui/tui-winsource.h (struct tui_source_window_base)
3283 <show_source_line, display_start_addr>: New methods.
3284 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
3285 Rename and move to protected section.
3286 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
3287 (tui_source_window_base::do_erase_source_content): Update.
3288 (tui_source_window_base::show_source_line): Now a method.
3289 (tui_source_window_base::show_source_content)
3290 (tui_source_window_base::tui_source_window_base)
3291 (tui_source_window_base::rerender)
3292 (tui_source_window_base::refill)
3293 (tui_source_window_base::do_scroll_horizontal)
3294 (tui_source_window_base::set_is_exec_point_at)
3295 (tui_source_window_base::update_breakpoint_info)
3296 (tui_source_window_base::update_exec_info): Update.
3297 * tui/tui-source.c (tui_source_window::set_contents)
3298 (tui_source_window::showing_source_p)
3299 (tui_source_window::do_scroll_vertical)
3300 (tui_source_window::location_matches_p)
3301 (tui_source_window::line_is_displayed): Update.
3302 (tui_source_window::display_start_addr): New method.
3303 * tui/tui-disasm.c (tui_disasm_window::set_contents)
3304 (tui_disasm_window::do_scroll_vertical)
3305 (tui_disasm_window::location_matches_p): Update.
3306 (tui_disasm_window::display_start_addr): New method.
3307
01b1af32
TT
33082020-02-22 Tom Tromey <tom@tromey.com>
3309
3310 * NEWS: Add entry for gdb.register_window_type.
3311 * tui/tui-layout.h (window_factory): New typedef.
3312 (tui_register_window): Declare.
3313 * tui/tui-layout.c (saved_tui_windows): New global.
3314 (tui_apply_current_layout): Use it.
3315 (tui_register_window): New function.
3316 * python/python.c (do_start_initialization): Call
3317 gdbpy_initialize_tui.
3318 (python_GdbMethods): Add "register_window_type" function.
3319 * python/python-internal.h (gdbpy_register_tui_window)
3320 (gdbpy_initialize_tui): Declare.
3321 * python/py-tui.c: New file.
3322 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
3323
fc96d20b
TT
33242020-02-22 Tom Tromey <tom@tromey.com>
3325
3326 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
3327
935c78c0
TT
33282020-02-22 Tom Tromey <tom@tromey.com>
3329
3330 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
3331 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
3332 * tui/tui-data.c (tui_set_win_with_focus): Remove.
3333 (tui_set_win_focus_to): Move from tui-win.c.
3334
0240c8f1
TT
33352020-02-22 Tom Tromey <tom@tromey.com>
3336
3337 * tui/tui-layout.c (make_standard_window, get_locator_window): New
3338 functions.
3339 (known_window_types): New global.
3340 (tui_get_window_by_name): Reimplement.
3341 (initialize_known_windows): New function.
3342 (validate_window_name): Rewrite.
3343 (_initialize_tui_layout): Call initialize_known_windows.
3344
fdb01f0c
TT
33452020-02-22 Tom Tromey <tom@tromey.com>
3346
3347 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
3348 Remove constants.
3349 * tui/tui-winsource.h (struct tui_source_window_base)
3350 <tui_source_window_base>: Remove parameter.
3351 * tui/tui-winsource.c
3352 (tui_source_window_base::tui_source_window_base): Remove
3353 parameter.
3354 (tui_source_window_base::refill): Update.
3355 * tui/tui-stack.h (struct tui_locator_window)
3356 <tui_locator_window>: Update.
3357 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
3358 Default the constructor.
3359 * tui/tui-regs.h (struct tui_data_item_window)
3360 <tui_data_item_window>: Default the constructor.
3361 (struct tui_data_window) <tui_data_window>: Likewise.
3362 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
3363 Default the constructor.
3364 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
3365 Default the constructor.
3366 <type>: Remove.
3367 (struct tui_win_info) <tui_win_info>: Default the constructor.
3368 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
3369 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
3370 Default the constructor.
3371
865a5aec
TT
33722020-02-22 Tom Tromey <tom@tromey.com>
3373
3374 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
3375 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
3376 * tui/tui-win.c (tui_resize_all): Don't call
3377 tui_delete_invisible_windows.
3378 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
3379 done.
3380 (tui_set_layout): Update.
3381 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
3382 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
3383 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
3384
e098d18c
TT
33852020-02-22 Tom Tromey <tom@tromey.com>
3386
3387 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
3388 correctly.
3389
eb9c8874
TT
33902020-02-22 Tom Tromey <tom@tromey.com>
3391
3392 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
3393
7eed1a8e
TT
33942020-02-22 Tom Tromey <tom@tromey.com>
3395
3396 * tui/tui-winsource.h (struct tui_source_window_iterator)
3397 <inner_iterator>: New etytypedef.
3398 <tui_source_window_iterator>: Take "end" parameter.
3399 <tui_source_window_iterator>: Take iterator.
3400 <operator*, advance>: Update.
3401 <m_iter>: Change type.
3402 <m_end>: New field.
3403 (struct tui_source_windows) <begin, end>: Update.
3404 * tui/tui-layout.c (tui_windows): New global.
3405 (tui_apply_current_layout): Clear tui_windows.
3406 (tui_layout_window::apply): Update tui_windows.
3407 * tui/tui-data.h (tui_windows): Declare.
3408 (all_tui_windows): Now inline function.
3409 (class tui_window_iterator, struct all_tui_windows): Remove.
3410
7c043ba6
TT
34112020-02-22 Tom Tromey <tom@tromey.com>
3412
3413 PR tui/17850:
3414 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
3415 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
3416 "height" argument.
3417 (class tui_layout_window) <get_sizes>: Likewise.
3418 (class tui_layout_split) <tui_layout_split>: Add "vertical"
3419 argument.
3420 <get_sizes>: Add "height" argument.
3421 <m_vertical>: New field.
3422 * tui/tui-layout.c (tui_layout_split::clone): Update.
3423 (tui_layout_split::get_sizes): Add "height" argument.
3424 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
3425 (tui_new_layout_command): Parse "-horizontal".
3426 (_initialize_tui_layout): Update help string.
3427 (tui_layout_split::specification): Add "-horizontal" when needed.
3428 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
3429 argument.
3430 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
3431 New methods.
3432
6bc56648
TT
34332020-02-22 Tom Tromey <tom@tromey.com>
3434
3435 * tui/tui-layout.h (enum tui_adjust_result): New.
3436 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
3437 (class tui_layout_window) <adjust_size>: Return
3438 tui_adjust_result. Rewrite.
3439 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
3440 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
3441
c22fef7e
TT
34422020-02-22 Tom Tromey <tom@tromey.com>
3443
3444 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
3445 parameter and return types.
3446 (class tui_layout_base) <specification>: Add "depth".
3447 (class tui_layout_window) <specification>: Add "depth".
3448 (class tui_layout_split) <specification>: Add "depth".
3449 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
3450 and return types.
3451 (tui_new_layout_command): Parse sub-layouts.
3452 (_initialize_tui_layout): Update help string.
3453 (tui_layout_window::specification): Add "depth".
3454 (add_layout_command): Update.
3455
ee325b61
TT
34562020-02-22 Tom Tromey <tom@tromey.com>
3457
3458 * NEWS: Add "tui new-layout" item.
3459 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
3460 Add new-layout command to help text.
3461 (validate_window_name): New function.
3462 (tui_new_layout_command): New function.
3463 (_initialize_tui_layout): Register "new-layout".
3464 (tui_layout_window::specification): New method.
3465 (tui_layout_window::specification): New method.
3466 * tui/tui-layout.h (class tui_layout_base) <specification>: New
3467 method.
3468 (class tui_layout_window) <specification>: New method.
3469 (class tui_layout_split) <specification>: New method.
3470
416eb92d
TT
34712020-02-22 Tom Tromey <tom@tromey.com>
3472
3473 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
3474 * tui/tui-win.c (window_name_completer): Update comment.
3475 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
3476 Declare method.
3477 (class tui_layout_window) <replace_window>: Likewise.
3478 (class tui_layout_split) <replace_window>: Likewise.
3479 (tui_set_layout): Don't declare.
3480 (tui_set_initial_layout): Declare function.
3481 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
3482 (asm_regs_layout): New globals.
3483 (tui_current_layout, show_layout): Remove.
3484 (tui_set_layout, tui_add_win_to_layout): Rewrite.
3485 (find_layout, tui_apply_layout): New function.
3486 (layout_completer): Remove.
3487 (tui_next_layout): Reimplement.
3488 (tui_next_layout_command): New function.
3489 (tui_set_initial_layout, tui_prev_layout_command): New functions.
3490 (tui_regs_layout): Reimplement.
3491 (tui_regs_layout_command): New function.
3492 (extract_display_start_addr): Rewrite.
3493 (next_layout, prev_layout): Remove.
3494 (tui_layout_window::replace_window): New method.
3495 (tui_layout_split::replace_window): New method.
3496 (destroy_layout): New function.
3497 (layout_list): New global.
3498 (add_layout_command): New function.
3499 (initialize_layouts): Update.
3500 (tui_layout_command): New function.
3501 (_initialize_tui_layout): Install "layout" commands.
3502 * tui/tui-data.h (enum tui_layout_type): Remove.
3503 (tui_current_layout): Don't declare.
3504
0dbc2fc7
TT
35052020-02-22 Tom Tromey <tom@tromey.com>
3506
3507 * tui/tui-regs.c (tui_reg_layout): Remove.
3508 (tui_reg_command): Use tui_regs_layout.
3509 * tui/tui-layout.h (tui_reg_command): Declare.
3510 * tui/tui-layout.c (tui_reg_command): New function.
3511
5afe342e
TT
35122020-02-22 Tom Tromey <tom@tromey.com>
3513
3514 * tui/tui.c (tui_rl_delete_other_windows): Call
3515 tui_remove_some_windows.
3516 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
3517 Declare method.
3518 (class tui_layout_window) <remove_windows>: New method.
3519 (class tui_layout_split) <remove_windows>: Declare.
3520 (tui_remove_some_windows): Declare.
3521 * tui/tui-layout.c (tui_remove_some_windows): New function.
3522 (tui_layout_split::remove_windows): New method.
3523
427326a8
TT
35242020-02-22 Tom Tromey <tom@tromey.com>
3525
3526 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
3527 * tui/tui-layout.h (tui_next_layout): Declare.
3528 * tui/tui-layout.c (tui_next_layout): New function.
3529
3fe12b6d
TT
35302020-02-22 Tom Tromey <tom@tromey.com>
3531
3532 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
3533 correct coordinates.
3534
59b8b5d2
TT
35352020-02-22 Tom Tromey <tom@tromey.com>
3536
3537 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
3538 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
3539 DATA_WIN case.
3540
2a3d458b
TT
35412020-02-22 Tom Tromey <tom@tromey.com>
3542
3543 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
3544 TUI_DISASM_WIN, not tui_win_list.
3545
3f0cbb04
TT
35462020-02-22 Tom Tromey <tom@tromey.com>
3547
3548 * valprint.c (generic_val_print_enum_1)
3549 (val_print_type_code_flags): Style member names.
3550 * rust-lang.c (val_print_struct, rust_print_enum)
3551 (rust_print_struct_def, rust_internal_print_type): Style member
3552 names.
3553 * p-valprint.c (pascal_object_print_value_fields): Style member
3554 names. Only call fprintf_symbol_filtered for static members.
3555 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
3556 * f-valprint.c (f_val_print): Style member names.
3557 * f-typeprint.c (f_type_print_base): Style member names.
3558 * cp-valprint.c (cp_print_value_fields): Style member names. Only
3559 call fprintf_symbol_filtered for static members.
3560 (cp_print_class_member): Style member names.
3561 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
3562 member names.
3563 * ada-valprint.c (ada_print_scalar): Style enum names.
3564 (ada_val_print_enum): Likewise.
3565 * ada-typeprint.c (print_enum_type): Style enum names.
3566
d4d947ae
TT
35672020-02-21 Tom Tromey <tom@tromey.com>
3568
3569 * psympriv.h (struct partial_symtab): Update comment.
3570
e94e944b
TT
35712020-02-21 Tom Tromey <tromey@adacore.com>
3572
3573 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
3574 type is CORE_ADDR.
3575
1eb73179
TV
35762020-02-21 Tom de Vries <tdevries@suse.de>
3577
3578 PR gdb/25534
3579 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
3580 if dependencies[i]->user != NULL.
3581
4f180d53
AT
35822020-02-21 Ali Tamur <tamur@google.com>
3583
3584 * dwarf2/read.c (dwarf2_name): Add null check.
3585
22b6cd70
TT
35862020-02-20 Tom Tromey <tom@tromey.com>
3587
3588 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
3589 ">=", in binary search.
3590 (dwarf2_find_containing_comp_unit): New overload.
3591 (run_test): New self-test.
3592 (_initialize_dwarf2_read): Register new test.
3593
bd0cf5a6
NC
35942020-02-20 Nelson Chu <nelson.chu@sifive.com>
3595
3596 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
3597 * riscv-tdep.h: Likewise.
3598 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
3599 rv32-only CSR.
3600 * features/riscv/64bit-csr.xml: Regenerated.
3601
3f702acd
SDJ
36022020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3603 Tom Tromey <tom@tromey.com>
3604
3605 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
3606 of 'fputc_unfiltered'.
3607 (putchar_unfiltered): Call 'fputc_unfiltered'.
3608 (fputc_unfiltered): Call 'fputs_unfiltered'.
3609
d13c7322
AB
36102020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
3611
3612 * config.in: Regenerate.
3613 * configure: Regenerate.
3614 * configure.ac: Add --with-python-libdir option.
3615 * main.c: Use WITH_PYTHON_LIBDIR.
3616
869d8950
TT
36172020-02-19 Tom Tromey <tom@tromey.com>
3618
3619 * symtab.c (general_symbol_info::compute_and_set_names): Use
3620 obstack_strndup. Simplify call to symbol_set_demangled_name.
3621
298e9637
SM
36222020-02-19 Simon Marchi <simon.marchi@efficios.com>
3623
3624 * dwarf2/read.c (allocate_signatured_type_table,
3625 allocate_dwo_unit_table, allocate_type_unit_groups_table,
3626 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
3627 Remove objfile parameter, update all callers.
3628
08410482
DE
36292020-02-19 Doug Evans <dje@google.com>
3630
3631 PR rust/25535
3632 * rust-lang.c (rust_print_enum): Apply embedded_offset to
3633 rust_enum_variant calculation.
3634
dfdeeca1
TT
36352020-02-19 Tom Tromey <tromey@adacore.com>
3636
3637 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
3638
2ef5453b
TT
36392020-02-19 Tom Tromey <tromey@adacore.com>
3640
3641 * ada-lang.c (cache_symbol): Use obstack_strdup.
3642
9f1528a1
AB
36432020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3644
3645 * configure: Regenerate.
3646
d3c22fa8
TT
36472020-02-19 Tom Tromey <tromey@adacore.com>
3648
3649 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
3650 NULL check.
3651
bf84f706
MR
36522020-02-19 Maciej W. Rozycki <macro@wdc.com>
3653
3654 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
3655
d1c9b20f
AB
36562020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3657
3658 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
3659 if GDBSERVER is not defined.
3660 (riscv_tdesc_cache): Likewise, also store const target_desc.
3661 (STATIC_IN_GDB): Define.
3662 (riscv_create_target_description): Update declaration with
3663 STATIC_IN_GDB.
3664 (riscv_lookup_target_description): New function, only define if
3665 GDBSERVER is not defined.
3666 * arch/riscv.h (riscv_create_target_description): Declare only
3667 when GDBSERVER is defined.
3668 (riscv_lookup_target_description): New declaration when GDBSERVER
3669 is not defined.
3670 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
3671 (riscv_linux_read_features): ...this, and return
3672 riscv_gdbarch_features instead of target_desc.
3673 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
3674 (riscv_linux_read_description): Rename to...
3675 (riscv_linux_read_features): ...this.
3676 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
3677 Update to use riscv_gdbarch_features and
3678 riscv_lookup_target_description.
3679 * riscv-tdep.c (riscv_find_default_target_description): Use
3680 riscv_lookup_target_description instead of
3681 riscv_create_target_description.
3682
373d7ac0
SM
36832020-02-18 Simon Marchi <simon.marchi@efficios.com>
3684
3685 * valprint.c (generic_val_print_enum_1): When printing a flag
3686 enum with value 0 and there is no enumerator with value 0, print
3687 just "0" instead of "(unknown: 0x0)".
3688
b29a2df0
SM
36892020-02-18 Simon Marchi <simon.marchi@efficios.com>
3690
3691 * valprint.c (generic_val_print_enum_1): Print unknown part of
3692 flag enum in hex.
3693
6740f0cc
SM
36942020-02-18 Simon Marchi <simon.marchi@efficios.com>
3695
3696 * dwarf2/read.c (update_enumeration_type_from_children): Allow
3697 flag enums to contain duplicate enumerators.
3698 * valprint.c (generic_val_print_enum_1): Update comment.
3699
edd45eb0
SM
37002020-02-18 Simon Marchi <simon.marchi@efficios.com>
3701
3702 * dwarf2/read.c: Include "count-one-bits.h".
3703 (update_enumeration_type_from_children): If an enumerator has
3704 multiple bits set, don't treat the enumeration as a "flag enum".
3705 * valprint.c (generic_val_print_enum_1): Assert that enumerators
3706 of flag enums have 0 or 1 bit set.
3707
6d0cf446
BE
37082020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
3709
3710 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
3711 conversion.
3712 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
3713 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3714 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3715 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
3716 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
3717
7001c1b7
SM
37182020-02-18 Simon Marchi <simon.marchi@efficios.com>
3719
3720 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
3721
fdb61c6c
SM
37222020-02-14 Simon Marchi <simon.marchi@efficios.com>
3723
3724 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
3725 displaced_step_closure_up.
3726 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
3727 (struct displaced_step_closure_up):
3728 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
3729 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
3730 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
3731 Likewise.
3732 * gdbarch.sh (displaced_step_copy_insn): Likewise.
3733 * gdbarch.c, gdbarch.h: Re-generate.
3734 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
3735 displaced_step_closure_up.
3736 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3737 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
3738 * infrun.h (displaced_step_closure_up): New type alias.
3739 (struct displaced_step_inferior_state) <step_closure>: Change
3740 type to displaced_step_closure_up.
3741 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
3742 displaced_step_closure_up.
3743 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
3744
a4a38eb4
TT
37452020-02-14 Tom Tromey <tom@tromey.com>
3746
3747 * minidebug.c (gnu_debug_key): New global.
3748 (find_separate_debug_file_in_section): Use it.
3749
e8217e61
SM
37502020-02-14 Simon Marchi <simon.marchi@efficios.com>
3751
3752 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
3753 std::unique_ptr.
3754 * gdbarch.c: Re-generate.
3755 * gdbarch.h: Re-generate.
3756 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
3757 change.
3758 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
3759 type to std::unique_ptr.
3760 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
3761 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
3762 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
3763 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3764 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
3765 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3766 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
3767 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
3768 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
3769
d8d83535
SM
37702020-02-14 Simon Marchi <simon.marchi@efficios.com>
3771
3772 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
3773 std::unique_ptr.
3774 (displaced_step_clear): Rename to...
3775 (displaced_step_reset): ... this. Just call displaced->reset ().
3776 (displaced_step_clear_cleanup): Rename to...
3777 (displaced_step_reset_cleanup): ... this.
3778 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
3779 (displaced_step_fixup): Likewise.
3780 (resume_1): Likewise.
3781 (handle_inferior_event): Restore child's memory before calling
3782 displaced_step_fixup on the parent.
3783 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
3784 to std::unique_ptr.
3785 <step_closure>: Change type to std::unique_ptr.
3786
5f661e03
SM
37872020-02-14 Simon Marchi <simon.marchi@efficios.com>
3788
3789 * arm-tdep.c: Include count-one-bits.h.
3790 (cleanup_block_store_pc): Use count_one_bits.
3791 (cleanup_block_load_pc): Use count_one_bits.
3792 (arm_copy_block_xfer): Use count_one_bits.
3793 (thumb2_copy_block_xfer): Use count_one_bits.
3794 (thumb_copy_pop_pc_16bit): Use count_one_bits.
3795 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
3796 (thumb_get_next_pcs_raw): Use count_one_bits.
3797 (arm_get_next_pcs_raw): Use count_one_bits_l.
3798 * arch/arm.c (bitcount): Remove.
3799 * arch/arm.h (bitcount): Remove.
3800
8084e579
TT
38012020-02-14 Tom Tromey <tromey@adacore.com>
3802
3803 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
3804 Update.
3805 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
3806 * dwarf2/loc.c (call_site_find_chain_1): Return
3807 unique_xmalloc_ptr.
3808 (call_site_find_chain): Likewise.
3809
258bf0ee
RB
38102020-02-14 Richard Biener <rguenther@suse.de>
3811
3812 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
3813 on expression with division operators.
3814
f98a8458
AKS
38152020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3816
3817 * MAINTAINERS (Write After Approval): Adding myself.
3818
d1437c0e
TT
38192020-02-12 Tom Tromey <tom@tromey.com>
3820
3821 * event-loop.c (event_data, gdb_event, event_handler_func):
3822 Remove.
3823
3d4560f7
TT
38242020-02-12 Tom Tromey <tom@tromey.com>
3825
3826 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
3827 (dwarf2_frame_objfile_data): Add comment.
3828 (find_comp_unit, set_comp_unit): New functions.
3829 (dwarf2_frame_find_fde): Use find_comp_unit.
3830 (dwarf2_build_frame_info): Use set_comp_unit.
3831
21982304
TT
38322020-02-12 Tom Tromey <tom@tromey.com>
3833
3834 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
3835 (comp_unit): Don't initialize objfile.
3836 (execute_cfa_program): Add text_offset parameter.
3837 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
3838 (dwarf2_frame_cache): Update.
3839 (dwarf2_build_frame_info): Don't set "objfile" member.
3840
4debb237
TT
38412020-02-12 Tom Tromey <tom@tromey.com>
3842
3843 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
3844 (decode_frame_entry): Likewise.
3845 (dwarf2_build_frame_info): Update.
3846
0d404d44
TT
38472020-02-12 Tom Tromey <tom@tromey.com>
3848
3849 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
3850 (decode_frame_entry_1): Use the comp_unit obstack.
3851
a7a3ae5c
TT
38522020-02-12 Tom Tromey <tom@tromey.com>
3853
3854 * dwarf2/frame.c (struct comp_unit): Add initializers and
3855 constructor.
3856 (dwarf2_frame_objfile_data): Store a comp_unit.
3857 (dwarf2_frame_find_fde): Update.
3858 (dwarf2_build_frame_info): Use "new".
3859
a9d65418
TT
38602020-02-12 Tom Tromey <tom@tromey.com>
3861
3862 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
3863 (dwarf2_fde_table): Typedef for std::vector.
3864 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
3865 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
3866 (decode_frame_entry): Update.
3867 (dwarf2_build_frame_info): Use "new".
3868
7559c217
CB
38692020-02-12 Christian Biesinger <cbiesinger@google.com>
3870
3871 * arm-tdep.c (arm_gdbarch_init): Update.
3872 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
3873 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
3874 have_neon, is_m>: Change to bool.
3875
aeefc73c
CB
38762020-02-12 Christian Biesinger <cbiesinger@google.com>
3877
3878 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
3879
d27b8e5f
TT
38802020-02-12 Tom Tromey <tom@tromey.com>
3881
3882 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
3883
cd5900f3
HD
38842020-02-12 Hannes Domani <ssbssa@yahoo.de>
3885
3886 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
3887 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
3888
f056b22b
TT
38892020-02-11 Tom Tromey <tom@tromey.com>
3890
3891 * psymtab.h: Update comment.
3892
f92ff6b5
TT
38932020-02-11 Tom Tromey <tom@tromey.com>
3894
3895 * gdb_obstack.h (struct auto_obstack): Use
3896 DISABLE_COPY_AND_ASSIGN.
3897
3fd6912b
TT
38982020-02-11 Tom Tromey <tom@tromey.com>
3899
3900 * dwarf2/frame.h (struct objfile): Don't forward declare.
3901
69ed9b74
CB
39022020-02-11 Christian Biesinger <cbiesinger@google.com>
3903
3904 * cris-tdep.c (cris_supply_gregset): Change signature to match
3905 what struct regset expects.
3906 (cris_regset): New struct.
3907 (fetch_core_registers): Remove.
3908 (cris_iterate_over_regset_sections): New function.
3909 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
3910 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
3911
bda874f6
CB
39122020-02-11 Christian Biesinger <cbiesinger@google.com>
3913
3914 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
3915 registers.
3916
754e1564
CB
39172020-02-11 Christian Biesinger <cbiesinger@google.com>
3918
3919 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
3920
8ddd8e0e
SM
39212020-02-11 Simon Marchi <simon.marchi@efficios.com>
3922
3923 * configure: Re-generate.
3924
898e7f60
SM
39252020-02-11 Simon Marchi <simon.marchi@efficios.com>
3926
3927 * configure: Re-generate.
3928
58df732b
SM
39292020-02-11 Simon Marchi <simon.marchi@efficios.com>
3930
3931 * acinclude: Update warning.m4 path.
3932 * warning.m4: Move to gdbsupport.
3933
da5bd37e
TT
39342020-02-11 Tom Tromey <tromey@adacore.com>
3935
3936 * remote.c (remote_console_output): Update.
3937 * printcmd.c (printf_command): Update.
3938 * event-loop.c (gdb_wait_for_event): Update.
3939 * linux-nat.c (sigchld_handler): Update.
3940 * remote-sim.c (gdb_os_write_stdout): Update.
3941 (gdb_os_flush_stdout): Update.
3942 (gdb_os_flush_stderr): Update.
3943 (gdb_os_write_stderr): Update.
3944 * exceptions.c (print_exception): Update.
3945 * remote-fileio.c (remote_fileio_func_read): Update.
3946 (remote_fileio_func_write): Update.
3947 * tui/tui.c (tui_enable): Update.
3948 * tui/tui-interp.c (tui_interp::init): Update.
3949 * utils.c (init_page_info): Update.
3950 (putchar_unfiltered, fputc_unfiltered): Update.
3951 (gdb_flush): Update.
3952 (emit_style_escape): Update.
3953 (flush_wrap_buffer, fputs_maybe_filtered): Update.
3954 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
3955 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
3956 (stderr_file::write): Update.
3957 (stderr_file::puts): Update.
3958 * ui-file.h (ui_file_isatty, ui_file_write)
3959 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
3960 (ui_file_puts): Don't declare.
3961
85f0dd3c
TV
39622020-02-10 Tom de Vries <tdevries@suse.de>
3963
3964 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
3965 sentinel to char *.
3966
2e927613
TV
39672020-02-09 Tom de Vries <tdevries@suse.de>
3968
3969 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
3970 filename if it matches "<artificial>".
3971
6bafc845
HD
39722020-02-09 Hannes Domani <ssbssa@yahoo.de>
3973
3974 * windows-tdep.c (struct enum_value_name): New struct.
3975 (create_enum): New function.
3976 (windows_get_siginfo_type): Create and use enum types.
3977
7928d571
HD
39782020-02-09 Hannes Domani <ssbssa@yahoo.de>
3979
3980 * NEWS: Mention $_siginfo support for Windows.
3981 * windows-nat.c (handle_exception): Set siginfo_er.
3982 (windows_nat_target::mourn_inferior): Reset siginfo_er.
3983 (windows_xfer_siginfo): New function.
3984 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
3985 * windows-tdep.c (struct windows_gdbarch_data): New struct.
3986 (init_windows_gdbarch_data): New function.
3987 (get_windows_gdbarch_data): New function.
3988 (windows_get_siginfo_type): New function.
3989 (windows_init_abi): Register windows_get_siginfo_type.
3990 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
3991
6751ebae
TT
39922020-02-08 Tom Tromey <tom@tromey.com>
3993
3994 * dwarf2/read.c (class cutu_reader) <cutu_reader,
3995 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
3996 <keep>: Declare method.
3997 <m_keep>: Remove member.
3998 <~cutu_reader>: Remove.
3999 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4000 (cutu_reader::cutu_reader): Update.
4001 (cutu_reader::keep): Rename from ~cutu_reader.
4002 (process_psymtab_comp_unit, build_type_psymtabs_1)
4003 (process_skeletonless_type_unit, load_partial_comp_unit)
4004 (load_full_comp_unit, dwarf2_read_addr_index)
4005 (read_signatured_type): Update.
4006
135f5437
TT
40072020-02-08 Tom Tromey <tom@tromey.com>
4008
4009 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
4010 "want_partial_unit" parameter.
4011 (process_psymtab_comp_unit): Change want_partial_unit to bool.
4012 Inline check for DW_TAG_partial_unit.
4013 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
4014
9f66ff1c
TT
40152020-02-08 Tom Tromey <tom@tromey.com>
4016
4017 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
4018 read.c.
4019 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
4020 read.c.
4021
c8a7a66f
TT
40222020-02-08 Tom Tromey <tom@tromey.com>
4023
4024 * dwarf2/read.c (read_address): Move to comp-unit.c.
4025 (dwarf2_rnglists_process, dwarf2_ranges_process)
4026 (read_attribute_value, dwarf_decode_lines_1)
4027 (var_decode_location, decode_locdesc): Update.
4028 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
4029 read.c. Remove "cu" parameter.
4030 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
4031 method.
4032
8266302d
TT
40332020-02-08 Tom Tromey <tom@tromey.com>
4034
4035 * dwarf2/read.c (read_attribute_value, read_indirect_string)
4036 (read_indirect_line_string): Update.
4037 * dwarf2/comp-unit.c (read_offset): Remove.
4038 (read_comp_unit_head): Update.
4039 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
4040 method.
4041 (read_offset): Don't declare.
4042
4057dfde
TT
40432020-02-08 Tom Tromey <tom@tromey.com>
4044
4045 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
4046 * dwarf2/read.c (struct comp_unit_head): Move to
4047 dwarf2/comp-unit.h.
4048 (enum class rcuh_kind): Move to comp-unit.h.
4049 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
4050 (read_comp_unit_head, error_check_comp_unit_head)
4051 (read_and_check_comp_unit_head): Move to comp-unit.c.
4052 (read_offset, dwarf_unit_type_name): Likewise.
4053 (create_debug_type_hash_table, read_cutu_die_from_dwo)
4054 (cutu_reader::cutu_reader, read_call_site_scope)
4055 (find_partial_die, follow_die_offset): Update.
4056 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
4057
24aa364d
TT
40582020-02-08 Tom Tromey <tom@tromey.com>
4059
4060 * dwarf2/read.c (read_offset_1): Move to leb.c.
4061 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
4062 (dwarf_decode_macro_bytes): Update.
4063 * dwarf2/leb.c (read_offset): Rename; move from read.c.
4064 * dwarf2/leb.h (read_offset): Declare.
4065
2c7d5afc
TT
40662020-02-08 Tom Tromey <tom@tromey.com>
4067
4068 * dwarf2/read.c (dwarf2_section_size): Remove.
4069 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
4070 Update.
4071 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
4072
4075cb26
TT
40732020-02-08 Tom Tromey <tom@tromey.com>
4074
4075 * dwarf2/read.c (read_initial_length): Move to leb.c.
4076 * dwarf2/leb.h (read_initial_length): Declare.
4077 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
4078 handle_nonstd parameter.
4079 * dwarf2/frame.c (read_initial_length): Remove.
4080 (decode_frame_entry_1): Update.
4081
09ba997f
TT
40822020-02-08 Tom Tromey <tom@tromey.com>
4083
4084 * dwarf2/loc.c (dwarf2_find_location_expression)
4085 (dwarf_evaluate_loc_desc::get_tls_address)
4086 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
4087 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
4088 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
4089 (dwarf2_compile_property_to_c)
4090 (dwarf2_loc_desc_get_symbol_read_needs)
4091 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
4092 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
4093 (loclist_describe_location, loclist_tracepoint_var_ref)
4094 (loclist_generate_c_location): Update.
4095 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
4096 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
4097 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
4098 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
4099 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
4100 (dwarf2_per_cu_data::addr_size)
4101 (dwarf2_per_cu_data::ref_addr_size)
4102 (dwarf2_per_cu_data::text_offset)
4103 (dwarf2_per_cu_data::addr_type): Now methods.
4104 (per_cu_header_read_in): Make per_cu "const".
4105 (dwarf2_version): Remove.
4106 (dwarf2_per_cu_data::int_type): Now a method.
4107 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
4108 (set_die_type, read_array_type, read_subrange_index_type)
4109 (read_tag_string_type, read_subrange_type): Update.
4110 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
4111 offset_size, ref_addr_size, text_offset, addr_type, version,
4112 objfile, int_type, addr_sized_int_type>: Declare methods.
4113
96c738c0
TT
41142020-02-08 Tom Tromey <tom@tromey.com>
4115
4116 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
4117 Move earlier.
4118
8fdd972c
TT
41192020-02-08 Tom Tromey <tom@tromey.com>
4120
4121 * dwarf2/read.h (dwarf_line_debug): Declare.
4122 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
4123 * dwarf2/read.c: Move line_header code to new files.
4124 (dwarf_line_debug): No longer static.
4125 * dwarf2/line-header.c: New file.
4126 * dwarf2/line-header.h: New file.
4127
03075812
TT
41282020-02-08 Tom Tromey <tom@tromey.com>
4129
4130 * dwarf2/read.c (struct line_header) <file_full_name,
4131 file_file_name>: Return unique_xmalloc_ptr.
4132 (line_header::file_file_name): Update.
4133 (line_header::file_full_name): Update.
4134 (dw2_get_file_names_reader): Update.
4135 (macro_start_file): Update.
4136
bb822404
TT
41372020-02-08 Tom Tromey <tom@tromey.com>
4138
4139 * dwarf2/read.c (struct line_header) <file_full_name,
4140 file_file_name>: Declare methods.
4141 (dw2_get_file_names_reader): Update.
4142 (file_file_name): Now a method.
4143 (file_full_name): Likewise.
4144 (macro_start_file): Update.
4145
009b64fc
TT
41462020-02-08 Tom Tromey <tom@tromey.com>
4147
4148 * dwarf2/read.c (dwarf_always_disassemble)
4149 (show_dwarf_always_disassemble): Move to loc.c.
4150 (_initialize_dwarf2_read): Move "always-disassemble" registration
4151 to loc.c.
4152 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
4153 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
4154 static.
4155 (show_dwarf_always_disassemble): Move from read.c.
4156 (_initialize_dwarf2loc): Move always-disassemble from read.c.
4157
5895093f
TT
41582020-02-08 Tom Tromey <tom@tromey.com>
4159
4160 * dwarf2/read.c (~dwarf2_per_objfile): Update.
4161 (create_quick_file_names_table): Return htab_up.
4162 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
4163 Update.
4164 * dwarf2/read.h (struct dwarf2_per_objfile)
4165 <quick_file_names_table>: Now htab_up.
4166
b3b32279
TT
41672020-02-08 Tom Tromey <tom@tromey.com>
4168
4169 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
4170
1d33d811
TT
41712020-02-08 Tom Tromey <tom@tromey.com>
4172
4173 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
4174 Rewrite.
4175 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
4176 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
4177 (abbrev_table::abbrev_table): No longer inline.
4178 (ABBREV_HASH_SIZE): Remove.
4179 (abbrev_table::m_abbrevs): Now an htab_up.
4180
86de1d91
TT
41812020-02-08 Tom Tromey <tom@tromey.com>
4182
4183 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
4184 (cutu_reader): Update.
4185 (build_type_psymtabs_1): Update.
4186 * dwarf2/abbrev.c (abbrev_table::read): Rename.
4187 (abbrev_table::alloc_abbrev): Update.
4188 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
4189 (abbrev_table::read): New static method, renamed from
4190 abbrev_table_read_table.
4191 (abbrev_table::alloc_abbrev)
4192 (abbrev_table::add_abbrev): Now private.
4193 (abbrev_table::abbrev_table): Now private.
4194 (abbrev_table::m_abbrev_obstack): Now private. Rename.
4195
0335378b
TT
41962020-02-08 Tom Tromey <tom@tromey.com>
4197
4198 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
4199 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
4200 htab_up.
4201
48b490f2
TT
42022020-02-08 Tom Tromey <tom@tromey.com>
4203
4204 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
4205 htab_up.
4206 (lookup_dwo_unit_in_dwp): Update.
4207 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
4208 on obstack.
4209
bc68fb19
TT
42102020-02-08 Tom Tromey <tom@tromey.com>
4211
4212 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
4213 obstack.
4214
d15acc42
TT
42152020-02-08 Tom Tromey <tom@tromey.com>
4216
4217 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
4218 line_header_hash.
4219 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
4220 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
4221 Change type to htab_up.
4222
eaa5fa8b
TT
42232020-02-08 Tom Tromey <tom@tromey.com>
4224
4225 * dwarf2/read.c (allocate_type_unit_groups_table): Return
4226 htab_up. Don't allocate on obstack.
4227 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
4228 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
4229 Change type to htab_up.
4230
b0b6a987
TT
42312020-02-08 Tom Tromey <tom@tromey.com>
4232
4233 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
4234 Change type to htab_up.
4235 * dwarf2/read.c (create_signatured_type_table_from_index)
4236 (create_signatured_type_table_from_debug_names)
4237 (create_all_type_units, add_type_unit)
4238 (lookup_dwo_signatured_type, lookup_signatured_type)
4239 (process_skeletonless_type_unit): Update.
4240 (create_debug_type_hash_table, create_debug_types_hash_table):
4241 Change type of types_htab.
4242 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
4243 htab_up. Don't allocate on obstack.
4244 (create_cus_hash_table): Change type of cus_htab parameter.
4245 (struct dwo_file) <cus, tus>: Now htab_up.
4246 (lookup_dwo_signatured_type, lookup_dwo_cutu)
4247 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
4248 (queue_and_load_all_dwo_tus): Update.
4249 * dwarf2/index-write.c (write_gdbindex): Update.
4250 (write_debug_names): Update.
4251
39856def
TT
42522020-02-08 Tom Tromey <tom@tromey.com>
4253
4254 * dwarf2/read.h (struct dwarf2_queue_item): Move from
4255 dwarf2/read.c. Remove "next" member. Add constructor ntad
4256 destructor.
4257 (struct dwarf2_per_objfile) <queue>: New member.
4258 * dwarf2/read.c (struct dwarf2_queue_item): Move to
4259 dwarf2/read.h.
4260 (dwarf2_queue, dwarf2_queue_tail): Remove.
4261 (class dwarf2_queue_guard): Add parameter to constructor. Use
4262 DISABLE_COPY_AND_ASSIGN.
4263 <m_per_objfile>: New member.
4264 <~dwarf2_queue_guard>: Rewrite.
4265 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
4266 Update.
4267 (~dwarf2_queue_item): New.
4268
3e225074
TT
42692020-02-08 Tom Tromey <tom@tromey.com>
4270
4271 * dwarf2/read.c (struct die_info) <has_children>: New member.
4272 (dw2_get_file_names_reader): Remove has_children.
4273 (dw2_get_file_names): Update.
4274 (read_cutu_die_from_dwo): Remove has_children.
4275 (cutu_reader::init_tu_and_read_dwo_dies)
4276 (cutu_reader::cutu_reader): Update.
4277 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
4278 Remove has_children.
4279 (build_type_psymtabs_1, process_skeletonless_type_unit)
4280 (load_partial_comp_unit, load_full_comp_unit): Update.
4281 (create_dwo_cu_reader): Remove has_children.
4282 (create_cus_hash_table, read_die_and_children): Update.
4283 (read_full_die_1,read_full_die): Remove has_children.
4284 (read_signatured_type): Update.
4285 (class cutu_reader) <has_children>: Remove.
4286
82ca8957
TT
42872020-02-08 Tom Tromey <tom@tromey.com>
4288
4289 * dwarf2/expr.c: Rename from dwarf2expr.c.
4290 * dwarf2/expr.h: Rename from dwarf2expr.h.
4291 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
4292 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
4293 * dwarf2/frame.c: Rename from dwarf2-frame.c.
4294 * dwarf2/frame.h: Rename from dwarf2-frame.h.
4295 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
4296 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
4297 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
4298 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
4299 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
4300 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
4301 * dwarf2/loc.c: Rename from dwarf2loc.c.
4302 * dwarf2/loc.h: Rename from dwarf2loc.h.
4303 * dwarf2/read.c: Rename from dwarf2read.c.
4304 * dwarf2/read.h: Rename from dwarf2read.h.
4305 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
4306 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
4307 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
4308 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
4309 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
4310 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
4311 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
4312 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
4313 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
4314 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
4315 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
4316 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
4317 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
4318 Update.
4319 * Makefile.in (COMMON_SFILES): Update.
4320 (HFILES_NO_SRCDIR): Update.
4321
9e35d499
TT
43222020-02-08 Tom Tromey <tom@tromey.com>
4323
4324 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
4325 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
4326
1eba2311
TT
43272020-02-08 Tom Tromey <tom@tromey.com>
4328
4329 * dwarf2read.h (struct die_info): Don't declare.
4330
e41c2da2
TT
43312020-02-08 Tom Tromey <tom@tromey.com>
4332
4333 * dwarf2read.h (die_info_ptr): Remove typedef.
4334
4fc6c0d5
TT
43352020-02-08 Tom Tromey <tom@tromey.com>
4336
4337 * dwarf2read.c (read_call_site_scope)
4338 (handle_data_member_location, dwarf2_add_member_fn)
4339 (mark_common_block_symbol_computed, read_common_block)
4340 (attr_to_dynamic_prop, partial_die_info::read)
4341 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
4342 (dwarf2_symbol_mark_computed, set_die_type): Update.
4343 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
4344 method.
4345 (attr_form_is_block): Don't declare.
4346 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
4347
cd6c91b4
TT
43482020-02-08 Tom Tromey <tom@tromey.com>
4349
4350 * dwarf2read.c (dwarf2_find_base_address, )
4351 (read_call_site_scope, rust_containing_type)
4352 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
4353 (handle_data_member_location, dwarf2_add_member_fn)
4354 (get_alignment, read_structure_type, process_structure_scope)
4355 (mark_common_block_symbol_computed, read_common_block)
4356 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
4357 (partial_die_info::read, read_attribute_value, new_symbol)
4358 (lookup_die_type, dwarf2_get_ref_die_offset)
4359 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
4360 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
4361 (dwarf2_symbol_mark_computed): Update.
4362 * dwarf2/attribute.h (struct attribute) <value_as_address,
4363 form_is_section_offset, form_is_constant, form_is_ref>: Declare
4364 methods.
4365 (value_as_address, attr_form_is_section_offset)
4366 (attr_form_is_constant, attr_form_is_ref): Don't declare.
4367 * dwarf2/attribute.c (attribute::value_as_address)
4368 (attribute::form_is_section_offset, attribute::form_is_constant)
4369 (attribute::form_is_ref): Now methods.
4370
162dce55
TT
43712020-02-08 Tom Tromey <tom@tromey.com>
4372
4373 * dwarf2read.c (struct attribute, DW_STRING)
4374 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
4375 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
4376 (attr_form_is_block, attr_form_is_section_offset)
4377 (attr_form_is_constant, attr_form_is_ref): Move.
4378 * dwarf2/attribute.h: New file.
4379 * dwarf2/attribute.c: New file, from dwarf2read.c.
4380 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
4381
3054dd54
TT
43822020-02-08 Tom Tromey <tom@tromey.com>
4383
4384 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
4385 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
4386 Move.
4387 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
4388 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
4389 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
4390 abbrev.c.
4391 * dwarf2/abbrev.h: New file.
4392 * dwarf2/abbrev.c: New file, from dwarf2read.c.
4393 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
4394
96b79293
TT
43952020-02-08 Tom Tromey <tom@tromey.com>
4396
4397 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
4398 (dwarf2_section_size, dwarf2_get_section_info)
4399 (create_signatured_type_table_from_debug_names)
4400 (create_addrmap_from_aranges, read_debug_names_from_section)
4401 (get_gdb_index_contents_from_section, read_comp_unit_head)
4402 (error_check_comp_unit_head, read_abbrev_offset)
4403 (create_debug_type_hash_table, init_cu_die_reader)
4404 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
4405 (read_comp_units_from_section, create_cus_hash_table)
4406 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4407 (create_dwp_v2_section, dwarf2_rnglists_process)
4408 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
4409 (abbrev_table_read_table, read_indirect_string_at_offset_from)
4410 (read_indirect_string_from_dwz, read_addr_index_1)
4411 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
4412 (dwarf_decode_macro_bytes, dwarf_decode_macros)
4413 (fill_in_loclist_baton): Update.
4414 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
4415 get_containing_section, get_bfd_owner, get_bfd_section,
4416 get_file_name, get_id, get_flags, empty, read>: Declare methods.
4417 (dwarf2_read_section, get_section_name, get_section_file_name)
4418 (get_containing_section, get_section_bfd_owner)
4419 (get_section_bfd_section, get_section_name, get_section_file_name)
4420 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
4421 declare.
4422 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
4423 (dwarf2_section_info::get_bfd_owner)
4424 (dwarf2_section_info::get_bfd_section)
4425 (dwarf2_section_info::get_name)
4426 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
4427 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
4428 (dwarf2_section_info::read): Now methods.
4429 * dwarf-index-write.c (class debug_names): Update.
4430
2c86cff9
TT
44312020-02-08 Tom Tromey <tom@tromey.com>
4432
4433 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
4434 Move to dwarf2/section.h.
4435 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
4436 (get_section_bfd_section, get_section_name)
4437 (get_section_file_name, get_section_id, get_section_flags)
4438 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
4439 dwarf2/section.c.
4440 * dwarf2/section.h: New file.
4441 * dwarf2/section.c: New file, from dwarf2read.c.
4442 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
4443
f4382c45
TT
44442020-02-08 Tom Tromey <tom@tromey.com>
4445
4446 * dwarf2read.h (read_unsigned_leb128): Don't declare.
4447 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
4448 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
4449 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
4450 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
4451 * dwarf2/leb.h: New file, from dwarf2read.c.
4452 * dwarf2/leb.c: New file, from dwarf2read.c.
4453 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
4454 Remove.
4455 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
4456 (COMMON_SFILES): Add dwarf2/leb.c.
4457
01840b7a
JB
44582020-02-08 Joel Brobecker <brobecker@adacore.com>
4459
4460 GDB 9.1 released.
4461
dfcb27e4
IB
44622020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
4463
4464 PR gdb/25190:
aac66a4c
SM
4465 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
4466 * gdb/remote.c (remote_console_output): Update.
4467 * gdb/ui-file.c (fputs_unfiltered): Rename to...
4468 (ui_file_puts): ...this.
4469 * gdb/ui-file.h (ui_file_puts): Add declaration.
4470 * gdb/utils.c (emit_style_escape): Update.
4471 (flush_wrap_buffer): Update.
4472 (fputs_maybe_filtered): Update.
4473 (fputs_unfiltered): Add function.
dfcb27e4 4474
faa17681
IB
44752020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
4476
aac66a4c
SM
4477 * gdb/event-loop.c (gdb_wait_for_event): Update.
4478 * gdb/printcmd.c (printf_command): Update.
4479 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
4480 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
4481 (gdb_os_flush_stderr): Update.
4482 * gdb/remote.c (remote_console_output): Update.
4483 * gdb/ui-file.c (gdb_flush): Rename to...
4484 (ui_file_flush): ...this.
4485 (stderr_file::write): Update.
4486 (stderr_file::puts): Update.
4487 * gdb/ui-file.h (gdb_flush): Rename to...
4488 (ui_file_flush): ...this.
4489 * gdb/utils.c (gdb_flush): Add function.
4490 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 4491
5abbbe1d
TT
44922020-02-07 Tom Tromey <tromey@adacore.com>
4493
4494 PR breakpoints/24915:
4495 * source.c (find_and_open_source): Do not check basenames_may_differ.
4496
919adfe8
TT
44972020-02-07 Tom Tromey <tom@tromey.com>
4498
4499 * README: Update gdbserver documentation.
4500 * gdbserver: Move to top level.
4501 * configure.tgt (build_gdbserver): Remove.
4502 * configure.ac: Remove --enable-gdbserver.
4503 * configure: Rebuild.
4504 * Makefile.in (distclean): Don't mention gdbserver.
4505
1d5d29e7
SV
45062020-02-06 Shahab Vahedi <shahab@synopsys.com>
4507
4508 * source-cache.c (source_cache::ensure): Surround
4509 get_plain_source_lines with a try/catch.
4510 (source_cache::get_line_charpos): Get rid of try/catch
4511 and only check for the return value of "ensure".
4512 * tui/tui-source.c (tui_source_window::set_contents):
4513 Simplify "nlines" calculation.
4514
6eb1129c
SV
45152020-02-06 Shahab Vahedi <shahab@synopsys.com>
4516
4517 * MAINTAINERS (Write After Approval): Add myself.
4518
c6a42d11
CB
45192020-02-05 Christian Biesinger <cbiesinger@google.com>
4520
4521 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
4522 function call.
4523
c8ecdda6
CB
45242020-02-05 Christian Biesinger <cbiesinger@google.com>
4525
4526 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
4527
f6480e70
MR
45282020-02-05 Maciej W. Rozycki <macro@wdc.com>
4529
4530 * nat/riscv-linux-tdesc.h: New file.
4531 * nat/riscv-linux-tdesc.c: New file, taking code from...
4532 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
4533 ... here.
4534 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
4535 NATDEPFILES.
4536
dcc9fbc6
AB
45372020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
4538
4539 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
4540 we don't set the fake simulator ptid to the null_ptid.
4541
719546c4
SM
45422020-02-03 Simon Marchi <simon.marchi@efficios.com>
4543
4544 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
4545 * gdbthread.h (class thread_info) <resumed>: Likewise.
4546 * infrun.c (resume_1): Likewise.
4547 (proceed): Likewise.
4548 (infrun_thread_stop_requested): Likewise.
4549 (stop_all_threads): Likewise.
4550 (handle_inferior_event): Likewise.
4551 (restart_threads): Likewise.
4552 (finish_step_over): Likewise.
4553 (keep_going_stepped_thread): Likewise.
4554 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
4555 (linux_handle_extended_wait): Likewise.
4556 * record-btrace.c (get_thread_current_frame_id): Likewise.
4557 * record-full.c (record_full_wait_1): Likewise.
4558 * remote.c (remote_target::process_initial_stop_replies): Likewise.
4559 * target.c (target_resume): Likewise.
4560 * thread.c (set_running_thread): Likewise.
4561
e409c542
AKS
45622020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4563
4564 * f-valprint.c (f77_print_array_1): Changed datatype of index
4565 variable to LONGEST from int to enable it to contain bound
4566 values correctly.
4567
ee98c0da
MR
45682020-02-03 Maciej W. Rozycki <macro@wdc.com>
4569
4570 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
4571 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
4572 offsets according to FLEN determined.
4573 (riscv_linux_nat_target::read_description): Determine FLEN
4574 dynamically.
4575 (riscv_linux_nat_target::fetch_registers): Size regset buffer
4576 according to FLEN determined.
4577 (riscv_linux_nat_target::store_registers): Likewise.
4578
aa66aac4
SV
45792020-02-01 Shahab Vahedi <shahab@synopsys.com>
4580
4581 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
4582 when reg->group is empty and reggroup is not.
4583
fd9faca8
TT
45842020-01-31 Tom Tromey <tromey@adacore.com>
4585
4586 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
4587 Call beneath target's mourn_inferior after unpushing.
4588
42330a68
AB
45892020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
4590
4591 PR tui/9765
4592 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
4593 have enough lines to fill the screen, still return the lowest
4594 address we found.
4595
7a27a45b
AB
45962020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
4597
4598 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
4599 '-', '<', and '>' commands.
4600
c47f70e2
PA
46012020-01-29 Pedro Alves <palves@redhat.com>
4602 Sergio Durigan Junior <sergiodj@redhat.com>
4603
4604 * infcmd.c (construct_inferior_arguments): Assert that
4605 'argc' is greater than 0.
4606
5133a315
LM
46072020-01-29 Luis Machado <luis.machado@linaro.org>
4608
4609 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
4610 (BRK_INSN_MASK): Define to 0xd4200000.
4611 (aarch64_program_breakpoint_here_p): New function.
4612 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
4613 * arch-utils.c (default_program_breakpoint_here_p): Moved from
4614 breakpoint.c.
4615 * arch-utils.h (default_program_breakpoint_here_p): Moved from
4616 breakpoint.h
4617 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
4618 call gdbarch_program_breakpoint_here_p.
4619 (program_breakpoint_here): Moved to arch-utils.c, renamed to
4620 default_program_breakpoint_here_p, changed return type to bool and
4621 simplified.
4622 * breakpoint.h (program_breakpoint_here): Moved prototype to
4623 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
4624 return type to bool.
4625 * gdbarch.c: Regenerate.
4626 * gdbarch.h: Regenerate.
4627 * gdbarch.sh (program_breakpoint_here_p): New method.
4628 * infrun.c (handle_signal_stop): Call
4629 gdbarch_program_breakpoint_here_p.
4630
168f8c6b
TT
46312020-01-26 Tom Tromey <tom@tromey.com>
4632
4633 * ctfread.c (struct ctf_fp_info): Reindent.
4634 (_initialize_ctfread): Remove.
4635
128a391f
TT
46362020-01-26 Tom Tromey <tom@tromey.com>
4637
4638 * psymtab.c (partial_map_expand_apply)
4639 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4640 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4641 (psym_print_stats, psym_expand_symtabs_for_function)
4642 (psym_map_symbol_filenames, psym_map_matching_symbols)
4643 (psym_expand_symtabs_matching)
4644 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4645 (maintenance_check_psymtabs): Use new methods.
4646 * psympriv.h (struct partial_symtab) <readin_p,
4647 get_compunit_symtab>: New methods.
4648 <readin, compunit_symtab>: Remove members.
4649 (struct standard_psymtab): New.
4650 (struct legacy_psymtab): Derive from standard_psymtab.
4651 * dwarf2read.h (struct dwarf2_psymtab): Derive from
4652 standard_psymtab.
4653 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
4654
0494dbec
TT
46552020-01-26 Tom Tromey <tom@tromey.com>
4656
4657 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
4658 read_dependencies. Add assert.
4659 * psymtab.c (partial_symtab::read_dependencies): New method.
4660 * psympriv.h (struct partial_symtab) <read_dependencies>: New
4661 method.
4662 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
4663 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
4664 read_dependencies.
4665 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
4666 Add assert.
4667
8566b89b
TT
46682020-01-26 Tom Tromey <tom@tromey.com>
4669
4670 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
4671 Call expand_psymtab.
4672 (xcoff_read_symtab): Call expand_psymtab.
4673 (xcoff_start_psymtab, xcoff_end_psymtab): Set
4674 legacy_expand_psymtab.
4675 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
4676 method.
4677 (struct legacy_psymtab) <expand_psymtab>: Implement.
4678 <legacy_expand_psymtab>: New member.
4679 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
4680 (parse_partial_symbols): Set legacy_expand_psymtab.
4681 (psymtab_to_symtab_1): Change argument order. Call
4682 expand_psymtab.
4683 (new_psymtab): Set legacy_expand_psymtab.
4684 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
4685 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
4686 expand_psymtab.
4687 (dwarf2_psymtab::expand_psymtab): Rename from
4688 psymtab_to_symtab_1. Call expand_psymtab.
4689 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
4690 (dbx_end_psymtab): Likewise.
4691 (dbx_psymtab_to_symtab_1): Change argument order. Call
4692 expand_psymtab.
4693 (dbx_read_symtab): Call expand_psymtab.
4694 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
4695 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
4696 (ctf_psymtab::read_symtab): Call expand_psymtab.
4697
077cbab2
TT
46982020-01-26 Tom Tromey <tom@tromey.com>
4699
4700 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
4701 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
4702 messages.
4703 * mdebugread.c (mdebug_read_symtab): Remove prints.
4704 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
4705 assert.
4706 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
4707
891813be
TT
47082020-01-26 Tom Tromey <tom@tromey.com>
4709
4710 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
4711 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
4712 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
4713 legacy_symtab.
4714 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
4715 * psymtab.c (psymtab_to_symtab): Call method.
4716 (dump_psymtab): Update.
4717 * psympriv.h (struct partial_symtab): Add virtual destructor.
4718 <read_symtab>: New method.
4719 (struct legacy_symtab): New.
4720 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
4721 (struct pst_map) <pst>: Now a legacy_psymtab.
4722 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
4723 (new_psymtab): Use legacy_psymtab.
4724 * dwarf2read.h (struct dwarf2_psymtab): New.
4725 (struct dwarf2_per_cu_data) <psymtab>: Use it.
4726 * dwarf2read.c (dwarf2_create_include_psymtab)
4727 (dwarf2_build_include_psymtabs, create_type_unit_group)
4728 (create_partial_symtab, process_psymtab_comp_unit_reader)
4729 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
4730 (set_partial_user): Use dwarf2_psymtab.
4731 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
4732 (psymtab_to_symtab_1, process_full_comp_unit)
4733 (process_full_type_unit, dwarf2_ranges_read)
4734 (dwarf2_get_pc_bounds, psymtab_include_file_name)
4735 (dwarf_decode_lines): Use dwarf2_psymtab.
4736 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
4737 (add_address_entry_worker, write_one_signatured_type)
4738 (recursively_count_psymbols, recursively_write_psymbols)
4739 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
4740 (write_debug_names): Likewise.
4741 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
4742 <pst>: Now a legacy_psymtab.
4743 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
4744 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
4745 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
4746 * ctfread.c (struct ctf_psymtab): New.
4747 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
4748 ctf_psymtab.
4749 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
4750 (create_partial_symtab): Return a ctf_psymtab.
4751 (scan_partial_symbols): Update.
4752
c3693a1d
TT
47532020-01-26 Tom Tromey <tom@tromey.com>
4754
4755 * xcoffread.c (xcoff_start_psymtab): Use new.
4756 * psymtab.c (partial_symtab::partial_symtab): New constructor,
4757 renamed from start_psymtab_common.
4758 * psympriv.h (struct partial_symtab): Add new constructor.
4759 (start_psymtab_common): Don't declare.
4760 * mdebugread.c (parse_partial_symbols): Use new.
4761 * dwarf2read.c (create_partial_symtab): Use new.
4762 * dbxread.c (start_psymtab): Use new.
4763 * ctfread.c (create_partial_symtab): Use new.
4764
32caafd0
TT
47652020-01-26 Tom Tromey <tom@tromey.com>
4766
4767 * xcoffread.c (xcoff_end_psymtab): Use new.
4768 * psymtab.c (start_psymtab_common): Use new.
4769 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
4770 Update.
4771 * psympriv.h (struct partial_symtab): Add parameters to
4772 constructor. Don't inline.
4773 (allocate_psymtab): Don't declare.
4774 * mdebugread.c (new_psymtab): Use new.
4775 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
4776 * dbxread.c (dbx_end_psymtab): Use new.
4777
abaa2f23
TT
47782020-01-26 Tom Tromey <tom@tromey.com>
4779
4780 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
4781 allocate_psymtab. Update documentation.
4782 * psymtab.c (psymtab_storage::install_psymtab): Rename from
4783 allocate_psymtab. Do not use new.
4784 (allocate_psymtab): Use new. Update.
4785
6d94535f
TT
47862020-01-26 Tom Tromey <tom@tromey.com>
4787
4788 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4789 * psymtab.c (psym_print_stats): Update.
4790 * psympriv.h (struct partial_symtab) <readin,
4791 psymtabs_addrmap_supported, anonymous>: Now bool.
4792 * mdebugread.c (psymtab_to_symtab_1): Update.
4793 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
4794 (build_type_psymtabs_reader, psymtab_to_symtab_1)
4795 (process_full_comp_unit, process_full_type_unit): Update.
4796 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
4797 * ctfread.c (psymtab_to_symtab): Update.
4798
6f17252b
TT
47992020-01-26 Tom Tromey <tom@tromey.com>
4800
4801 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
4802 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
4803 * psymtab.c (psymtab_storage): Delete psymtabs.
4804 (psymtab_storage::allocate_psymtab): Use new.
4805 (psymtab_storage::discard_psymtab): Use delete.
4806 * psympriv.h (struct partial_symtab): Add constructor and
4807 initializers.
4808
f6f1cebc
TT
48092020-01-26 Tom Tromey <tom@tromey.com>
4810
4811 * machoread.c: Do not include psympriv.h.
4812
e47e48f6
PW
48132020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4814
4815 * NEWS: Mention the new option and the set/show commands.
4816
a2fedca9
PW
48172020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4818
4819 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
4820 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
4821 (validate_exec_file): New variables, enums, functions.
4822 (exec_file_locate_attach, print_section_info): Style the filenames.
4823 (_initialize_exec): Install show_exec_file_mismatch_command and
4824 set_exec_file_mismatch_command.
4825 * gdbcore.h (validate_exec_file): Declare.
4826 * infcmd.c (attach_command): Call validate_exec_file.
4827 * remote.c ( remote_target::remote_add_inferior): Likewise.
4828
7ffa82e1
AB
48292020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4830
4831 * frame.c (find_frame_sal): Move call to get_next_frame into more
4832 inner scope.
4833 * inline-frame.c (inilne_state) <inline_state>: Update argument
4834 types.
4835 (inilne_state) <skipped_symbol>: Rename to...
4836 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
4837 (skip_inline_frames): Build vector of skipped symbols and use this
4838 to reate the inline_state.
4839 (inline_skipped_symbol): Add a comment and some assertions, fetch
4840 skipped symbol from the list.
4841
3d92a3e3
AB
48422020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4843
4844 * buildsym.c (lte_is_less_than): Delete.
4845 (buildsym_compunit::end_symtab_with_blockvector): Create local
4846 lambda function to sort line table entries, and use
4847 std::stable_sort instead of std::sort.
4848 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
4849 markers when looking for a previous line.
4850
94a72be7
AB
48512020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4852
4853 * dwarf2read.c (lnp_state_machine::record_line): Include
4854 end_sequence parameter in debug print out. Record the line if we
4855 are at an end_sequence marker even if it's not the start of a
4856 statement.
4857 * symmisc.c (maintenance_print_one_line_table): Print end of
4858 sequence markers with 'END' not '0'.
4859
53af73bf
PA
48602020-01-24 Pedro Alves <palves@redhat.com>
4861
4862 PR gdb/25410
4863 * thread.c (scoped_restore_current_thread::restore): Use
4864 switch_to_inferior_no_thread.
4865 * exec.c: Include "progspace-and-thread.h".
4866 (add_target_sections, remove_target_sections):
4867 scoped_restore_current_pspace_and_thread instead of
4868 scoped_restore_current_thread.
4869 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
4870 and aspace to the inferior before calling clone_program_space.
4871 Remove stale comment.
4872
3050c6f4
CB
48732020-01-24 Christian Biesinger <cbiesinger@google.com>
4874
4875 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
4876 (arm_netbsd_nat_target::fetch_registers): ...this.
4877 (arm_nbsd_nat_target::store_registers): Rename to...
4878 (arm_netbsd_nat_target::store_registers): ...this.
4879
73685c7e
CB
48802020-01-24 Christian Biesinger <cbiesinger@google.com>
4881
4882 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
4883 register_t.
4884
89203d40
CB
48852020-01-24 Christian Biesinger <cbiesinger@google.com>
4886
4887 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
4888 Update comment.
4889 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
4890 Likewise.
4891 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
4892 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
4893 the correct replacement (iterate_over_regset_sections).
4894 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
4895 Update comment.
4896
1ba1ac88
AB
48972020-01-24 Graham Markall <graham.markall@embecosm.com>
4898
4899 PR gdb/23718
4900 * gdb/python/python.c (execute_gdb_command): Call
4901 async_enable_stdin in catch block.
4902
f3364a6d
AB
49032020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4904
4905 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
4906 SWITCH_THRU_ALL_UIS.
4907
733d0a67
AB
49082020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4909
4910 PR tui/9765
4911 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
4912 comment, add extra parameter, and update to store previous symbol
4913 when appropriate.
4914 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
4915 add extra parameter.
4916 * tui/tui-disasm.c (tui_disassemble): Update header comment,
4917 remove unneeded parameter, add try/catch around gdb_print_insn,
4918 rewrite to add items to asm_lines vector.
4919 (tui_find_backward_disassembly_start_address): New function.
4920 (tui_find_disassembly_address): Updated throughout.
4921 (tui_disasm_window::set_contents): Update for changes to
4922 tui_disassemble.
4923 (tui_disasm_window::do_scroll_vertical): No need to adjust the
4924 number of lines to scroll.
4925
b3b3bada
SM
49262020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
4927
4928 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
4929 (SECT_OFF_DATA): Likewise.
4930 (SECT_OFF_RODATA): Likewise.
4931 (SECT_OFF_TEXT): Likewise.
4932 (SECT_OFF_BSS): Likewise.
4933 (struct objfile) <text_section_offset, data_section_offset>: New
4934 methods.
4935 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
4936 objfile::text_section_offset.
4937 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
4938 * coffread.c (coff_symtab_read): Likewise.
4939 (enter_linenos): Likewise.
4940 (process_coff_symbol): Likewise.
4941 * ctfread.c (get_objfile_text_range): Likewise.
4942 * dtrace-probe.c (dtrace_probe::get_relocated_address):
4943 Use objfile::data_section_offset.
4944 * dwarf2-frame.c (execute_cfa_program): Use
4945 objfile::text_section_offset.
4946 (dwarf2_frame_find_fde): Likewise.
4947 * dwarf2read.c (create_addrmap_from_index): Likewise.
4948 (create_addrmap_from_aranges): Likewise.
4949 (dw2_find_pc_sect_compunit_symtab): Likewise.
4950 (process_psymtab_comp_unit_reader): Likewise.
4951 (add_partial_symbol): Likewise.
4952 (add_partial_subprogram): Likewise.
4953 (process_full_comp_unit): Likewise.
4954 (read_file_scope): Likewise.
4955 (read_func_scope): Likewise.
4956 (read_lexical_block_scope): Likewise.
4957 (read_call_site_scope): Likewise.
4958 (dwarf2_rnglists_process): Likewise.
4959 (dwarf2_ranges_process): Likewise.
4960 (dwarf2_ranges_read): Likewise.
4961 (dwarf_decode_lines_1): Likewise.
4962 (new_symbol): Likewise.
4963 (dwarf2_fetch_die_loc_sect_off): Likewise.
4964 (dwarf2_per_cu_text_offset): Likewise.
4965 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4966 * hppa-tdep.c (read_unwind_info): Likewise.
4967 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
4968 * psympriv.h (struct partial_symtab): Likewise.
4969 * psymtab.c (find_pc_sect_psymtab): Likewise.
4970 * solib-svr4.c (enable_break): Likewise.
4971 * stap-probe.c (relocate_address): Use
4972 objfile::data_section_offset.
4973 * xcoffread.c (enter_line_range): Use
4974 objfile::text_section_offset.
4975 (read_xcoff_symtab): Likewise.
4976
ab53f382
SM
49772020-01-23 Simon Marchi <simon.marchi@efficios.com>
4978
4979 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
4980 declaration to narrower scopes.
4981
e7eee665
SM
49822020-01-23 Simon Marchi <simon.marchi@efficios.com>
4983
4984 * darwin-nat.h (struct darwin_exception_msg, enum
4985 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
4986 Move up.
4987 (class darwin_nat_target) <wait_1, check_new_threads,
4988 decode_exception_message, decode_message, stop_inferior,
4989 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
4990 * darwin-nat.c (darwin_check_new_threads): Rename to...
4991 (darwin_nat_target::check_new_threads): ... this.
4992 (darwin_suspend_inferior_it): Remove.
4993 (darwin_decode_exception_message): Rename to...
4994 (darwin_nat_target::decode_exception_message): ... this.
4995 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
4996 (darwin_decode_message): Rename to...
4997 (darwin_nat_target::decode_message): ... this.
4998 (cancel_breakpoint): Rename to...
4999 (darwin_nat_target::cancel_breakpoint): ... this.
5000 (darwin_wait): Rename to...
5001 (darwin_nat_target::wait_1): ... this. Use range-based for loop
5002 instead of iterate_over_inferiors.
5003 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
5004 (darwin_stop_inferior): Rename to...
5005 (darwin_nat_target::stop_inferior): ... this.
5006 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
5007 (darwin_init_thread_list): Rename to...
5008 (darwin_nat_target::init_thread_list): ... this.
5009 (darwin_ptrace_him): Rename to...
5010 (darwin_nat_target::ptrace_him): ... this.
5011 (darwin_nat_target::create_inferior): Pass lambda function to
5012 fork_inferior.
5013 (darwin_nat_target::detach): Call stop_inferior instead of
5014 darwin_stop_inferior.
5015 * fork-inferior.h (fork_inferior): Change init_trace_fun
5016 parameter to gdb::function_view.
5017 * fork-inferior.c (fork_inferior): Likewise.
5018
c162ed3e
HD
50192020-01-23 Hannes Domani <ssbssa@yahoo.de>
5020
5021 * i386-cygwin-tdep.c (core_process_module_section): Update.
5022 * windows-nat.c (struct lm_info_windows): Add text_offset.
5023 (windows_xfer_shared_libraries): Update.
5024 * windows-tdep.c (windows_xfer_shared_library):
5025 Add text_offset_cached argument.
5026 * windows-tdep.h (windows_xfer_shared_library): Update.
5027
a1237872
SM
50282020-01-21 Simon Marchi <simon.marchi@efficios.com>
5029
5030 * gdbarch.sh: Add declaration for _initialize_gdbarch.
5031
b3ee6dd9
SM
50322020-01-21 Simon Marchi <simon.marchi@efficios.com>
5033
5034 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
5035 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
5036 replace with range-based for.
5037 (gdbsim_interrupt_inferior): Remove.
5038 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
5039 with a range-based for. Inline code from
5040 gdbsim_interrupt_inferior.
5041
f9fac3c8
SM
50422020-01-21 Simon Marchi <simon.marchi@efficios.com>
5043
5044 * infrun.c (proceed): Fix indentation.
5045
f6474de9
TT
50462020-01-21 Tom Tromey <tromey@adacore.com>
5047
5048 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
5049 * python/python.c (python_extension_ops): Update.
5050 (gdbpy_colorize): New function.
5051 * python/lib/gdb/__init__.py (colorize): New function.
5052 * extension.h (ext_lang_colorize): Declare.
5053 * extension.c (ext_lang_colorize): New function.
5054 * extension-priv.h (struct extension_language_ops) <colorize>: New
5055 member.
5056 * cli/cli-style.c (_initialize_cli_style): Update help text.
5057
f0c702d4
LM
50582020-01-21 Luis Machado <luis.machado@linaro.org>
5059
5060 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
5061 <cond>: Change type to bool.
5062 (aarch64_displaced_step_b_cond): Update cond to use bool type.
5063 (aarch64_displaced_step_cb): Likewise.
5064 (aarch64_displaced_step_tb): Likewise.
5065
1ab139e5
LM
50662020-01-21 Luis Machado <luis.machado@linaro.org>
5067
5068 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
5069 output.
5070
0c271889
LM
50712020-01-21 Luis Machado <luis.machado@linaro.org>
5072
5073 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
5074 <pc_adjust>: Adjust the documentation.
5075 (aarch64_displaced_step_fixup): Check if PC really moved before
5076 adjusting it.
5077
4d89c1c7
TT
50782020-01-19 Tom Tromey <tom@tromey.com>
5079
5080 * disasm.c (~gdb_disassembler): New destructor.
5081 (gdb_buffered_insn_length): Call disassemble_free_target.
5082 * disasm.h (class gdb_disassembler): Declare destructor. Use
5083 DISABLE_COPY_AND_ASSIGN.
5084
c0ab21c2
TT
50852020-01-19 Tom Tromey <tom@tromey.com>
5086
5087 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
5088 (die_reader_func_ftype): Remove.
5089 (cutu_reader): New class.
5090 (dw2_get_file_names_reader): Remove "data" parameter.
5091 (dw2_get_file_names): Use cutu_reader.
5092 (create_debug_type_hash_table): Update.
5093 (read_cutu_die_from_dwo): Update comment.
5094 (lookup_dwo_unit): Add dwo_name parameter.
5095 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
5096 die_reader_func_ftype and data parameters.
5097 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
5098 Remove die_reader_func_ftype and data parameters.
5099 (~cutu_reader): New; from init_cutu_and_read_dies.
5100 (cutu_reader::cutu_reader): Rename from
5101 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
5102 and data parameters.
5103 (init_cutu_and_read_dies_simple): Remove.
5104 (struct process_psymtab_comp_unit_data): Remove.
5105 (process_psymtab_comp_unit_reader): Remove data parameter; add
5106 want_partial_unit and pretend_language parameters.
5107 (process_psymtab_comp_unit): Use cutu_reader.
5108 (build_type_psymtabs_reader): Remove data parameter.
5109 (build_type_psymtabs_1): Use cutu_reader.
5110 (process_skeletonless_type_unit): Likewise.
5111 (load_partial_comp_unit_reader): Remove.
5112 (load_partial_comp_unit): Use cutu_reader.
5113 (load_full_comp_unit_reader): Remove.
5114 (load_full_comp_unit): Use cutu_reader.
5115 (struct create_dwo_cu_data): Remove.
5116 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
5117 dwo_unit parameters.
5118 (create_cus_hash_table): Use cutu_reader.
5119 (struct dwarf2_read_addr_index_data): Remove.
5120 (dwarf2_read_addr_index_reader): Remove.
5121 (dwarf2_read_addr_index): Use cutu_reader.
5122 (read_signatured_type_reader): Remove.
5123 (read_signatured_type): Use cutu_reader.
5124
45bbae5c
TT
51252020-01-19 Tom Tromey <tom@tromey.com>
5126
5127 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
5128 * tui/tui-wingeneral.h (class tui_suppress_output): New.
5129 (tui_wrefresh): Declare.
5130 * tui/tui-wingeneral.c (suppress_output): New global.
5131 (tui_suppress_output, ~tui_suppress_output): New constructor and
5132 destructor.
5133 (tui_wrefresh): New function.
5134 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
5135 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
5136 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
5137 method.
5138 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
5139 tui_wrefresh.
5140 (tui_data_window::no_refresh): New method.
5141 (tui_data_item_window::refresh_window): Call tui_wrefresh.
5142 (tui_reg_command): Use tui_suppress_output
5143 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
5144 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
5145 method.
5146 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
5147
4f13c1c0
TT
51482020-01-19 Tom Tromey <tom@tromey.com>
5149
5150 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5151 Handle case where symtab is null.
5152
fa47e446
SM
51532020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
5154
5155 * linux-fork.c (one_fork_p): Simplify.
5156
26f42329
SM
51572020-01-17 Simon Marchi <simon.marchi@efficios.com>
5158
5159 * top.c (struct qt_args): Remove.
5160 (kill_or_detach): Change return type to void, replace `void *`
5161 parameter with a proper one.
5162 (print_inferior_quit_action): Likewise.
5163 (quit_confirm): Use range-based for loop to iterate over inferiors.
5164 (quit_force): Likewise.
5165
a9ac81b1
SM
51662020-01-17 Simon Marchi <simon.marchi@efficios.com>
5167
5168 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
5169 `void *` parameter with proper parameters.
5170 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
5171 (print_one_inferior): Change return type to void, replace `void *`
5172 parameter with proper parameters.
5173 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
5174 inferiors.
5175 (get_other_inferior): Remove.
5176 (mi_cmd_remove_inferior): Use range-based loop to iterate over
5177 inferiors.
5178
788eca49
SM
51792020-01-17 Simon Marchi <simon.marchi@efficios.com>
5180
5181 * mi/mi-interp.c (report_initial_inferior): Remove.
5182 (mi_interp::init): Use range-based for to iterate over inferiors.
5183
d9bc85b6
SM
51842020-01-17 Simon Marchi <simon.marchi@efficios.com>
5185
5186 * python/py-inferior.c (build_inferior_list): Remove.
5187 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
5188
40c94099
CB
51892020-01-16 Christian Biesinger <cbiesinger@google.com>
5190
5191 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
5192 (btrace_stitch_trace): Likewise.
5193 * charset.c (intermediate_encoding): Likewise (vaild).
5194 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
5195 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
5196 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
5197
e0cdfe3c
HD
51982020-01-16 Hannes Domani <ssbssa@yahoo.de>
5199
5200 * windows-tdep.c (windows_get_tlb_type):
5201 Add rtl_user_process_parameters type.
5202
790f1718 52032020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 5204 Norbert Lange <nolange79@gmail.com>
790f1718
PA
5205
5206 PR build/24805
5207 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
5208 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
5209 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
5210 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
5211 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
5212 (ps_plog): Redeclare exported functions with default visibility.
5213
3112ed97
NA
52142020-01-16 Nitika Achra <Nitika.Achra@amd.com>
5215
5216 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
5217 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
5218
8dc3273e
SM
52192020-01-15 Simon Marchi <simon.marchi@efficios.com>
5220
5221 * infcmd.c (post_create_inferior): Use get_thread_regcache
5222 instead of get_current_regcache.
5223
ff47f4f0
TT
52242020-01-14 Tom Tromey <tom@tromey.com>
5225
5226 PR symtab/12535:
5227 * python/python.c (gdbpy_decode_line): Treat empty string the same
5228 as no argument.
5229
975f45b7
TT
52302020-01-14 Tom Tromey <tom@tromey.com>
5231
5232 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
5233
25e57356
TT
52342020-01-14 Tom Tromey <tom@tromey.com>
5235
5236 * nat/linux-btrace.c: Don't include <config.h>.
5237 * nat/linux-ptrace.c: Don't include <config.h>.
5238 * nat/x86-linux-dregs.c: Don't include <config.h>.
5239
05ea2a05
TT
52402020-01-14 Tom Tromey <tom@tromey.com>
5241
5242 * configure: Rebuild.
5243 * configure.ac: Move many checks to ../gdbsupport/common.m4.
5244
01027315
TT
52452020-01-14 Tom Tromey <tom@tromey.com>
5246
5247 * nat/x86-linux-dregs.c: Include configh.h.
5248 * nat/linux-ptrace.c: Include configh.h.
5249 * nat/linux-btrace.c: Include configh.h.
5250 * defs.h: Include config.h, bfd.h.
5251 * configure.ac: Don't source common.host.
5252 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
5253 * configure: Rebuild.
5254 * acinclude.m4: Update path.
5255 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
5256 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
5257 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
5258 (CLIBS): Add LIBSUPPORT.
5259 (CDEPS): Likewise.
5260 (COMMON_SFILES): Remove gdbsupport files.
5261 (HFILES_NO_SRCDIR): Likewise.
5262 (stamp-version): Update path to create-version.sh.
5263 (ALLDEPFILES): Remove gdbsupport files.
5264
b2ceabe8
TT
52652020-01-14 Tom Tromey <tom@tromey.com>
5266
5267 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
5268 USE_WIN32API when needed.
5269 * configure.ac (USE_WIN32API): Don't define.
5270 (WIN32LIBS): Use WIN32APILIBS.
5271 * configure: Rebuild.
5272
25c51f71
TT
52732020-01-14 Tom Tromey <tom@tromey.com>
5274
5275 * configure: Rebuild.
5276 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
5277
717c684d
BE
52782020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5279
5280 * skip.c (skip_function_command): Make skip w/o arguments use the
5281 name of the inlined function if pc is inside any inlined function.
5282
7da6a5b9
LM
52832020-01-14 Luis Machado <luis.machado@linaro.org>
5284
5285 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
5286 * infrun.c (resume_1): Likewise.
5287 (handle_inferior_event): Remove stale comment.
5288 * linux-nat.c (linux_nat_target::resume): Update comments.
5289 (save_stop_reason): Likewise.
5290 (linux_nat_filter_event): Likewise.
5291 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
5292
44e4c775
AB
52932020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5294
5295 * elfread.c (record_minimal_symbol): Set section index to 0 for
5296 non-allocatable sections.
5297
18a8505e
AT
5298
52992020-01-13 Ali Tamur <tamur@google.com>
5300
5301 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
5302 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
5303 to gdb::optional. Update comments.
5304 (dwo_file): Update comments.
5305 (read_attribute): Update API to take an additional out parameter,
5306 need_reprocess. This is used to mark attributes that need other
5307 attributes (e.g. str_offsets_base) for correct computation which may not
5308 have been read yet.
5309 (read_attribute_reprocess): New function declaration.
5310 (read_addr_index): Likewise.
5311 (read_dwo_str_index): Likewise.
5312 (read_stub_str_index): Likewise.
5313 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
5314 (lookup_addr_base): New function definition.
5315 (lookup_ranges_base): Likewise.
5316 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
5317 lookup_ranges_base.
5318 (init_cutu_and_read_dies): Update comments.
5319 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
5320 unit. This is used to inherit parent's str_offsets_base and addr_base.
5321 Update comments.
5322 (init_cutu_and_read_dies_simple): Reflect API changes.
5323 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
5324 (create_cus_hash_table): Change API to take parent compile unit.
5325 Reflect API changes.
5326 (open_and_init_dwo_file): Reflect API changes.
5327 (dwarf2_get_pc_bounds): Update comments.
5328 (dwarf2_record_block_ranges): Likewise.
5329 (read_full_die_1): Change implementation to reprocess attributes that
5330 need str_offsets_base and addr_base.
5331 (partial_die_info::read): Likewise.
5332 (read_attribute_reprocess): New function definition.
5333 (read_attribute_value): Change API to take an additional out parameter,
5334 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
5335 when a non-dwo compile unit has index based attributes.
5336 (read_attribute): Reflect API changes.
5337 (read_addr_index_1): Reflect API changes. Update comments.
5338 (dwarf2_read_addr_index_data): Reflect API changes.
5339 (dwarf2_read_addr_index): Likewise.
5340 (read_str_index): Change API and implementation. This becomes a helper
5341 to be used by the new string index related methods. Update error
5342 message and comments.
5343 (read_dwo_str_index): New function definition.
5344 (read_stub_str_index): Likewise.
5345 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
5346 * symfile.h (dwarf2_debug_sections): Likewise.
5347 * xcoffread.c (dwarf2_debug_sections): Likewise.
5348
0cac9354
SM
53492020-01-13 Simon Marchi <simon.marchi@efficios.com>
5350
5351 * gdbcore.h (struct core_fns) <core_read_registers>: Change
5352 core_reg_sect type to gdb_byte *.
5353 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
5354 * cris-tdep.c (fetch_core_registers): Likewise.
5355 * corelow.c (core_target::get_core_register_section): Change
5356 type of `contents` to gdb::byte_vector.
5357
9a6d629c
AB
53582020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5359
5360 * tui/tui-wingeneral.c (box_win): Position the title in the center
5361 of the border.
5362
d8b2f9e3
SM
53632020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5364
5365 * corelow.c (core_target::get_core_register_section): Use
5366 std::vector instead of alloca.
5367
bb564c58
SM
53682020-01-13 Simon Marchi <simon.marchi@efficios.com>
5369
5370 * warning.m4: Add -Wmissing-declarations to build_warnings.
5371 * configure: Re-generate.
5372
6b366111
SM
53732020-01-13 Simon Marchi <simon.marchi@efficios.com>
5374
5375 * python/python.c (init__gdb_module): Add declaration.
5376
6c265988
SM
53772020-01-13 Simon Marchi <simon.marchi@efficios.com>
5378
5379 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
5380 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
5381 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
5382 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
5383 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
5384 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
5385 * ada-exp.y (_initialize_ada_exp): Add declaration.
5386 * ada-lang.c (_initialize_ada_language): Add declaration.
5387 * ada-tasks.c (_initialize_tasks): Add declaration.
5388 * agent.c (_initialize_agent): Add declaration.
5389 * aix-thread.c (_initialize_aix_thread): Add declaration.
5390 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
5391 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
5392 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
5393 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
5394 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
5395 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5396 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
5397 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
5398 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
5399 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
5400 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
5401 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
5402 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
5403 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
5404 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
5405 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
5406 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
5407 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
5408 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
5409 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
5410 * annotate.c (_initialize_annotate): Add declaration.
5411 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
5412 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
5413 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
5414 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
5415 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
5416 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
5417 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
5418 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
5419 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
5420 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
5421 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
5422 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
5423 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5424 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
5425 * auto-load.c (_initialize_auto_load): Add declaration.
5426 * auxv.c (_initialize_auxv): Add declaration.
5427 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
5428 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
5429 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
5430 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
5431 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
5432 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
5433 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
5434 * breakpoint.c (_initialize_breakpoint): Add declaration.
5435 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
5436 * btrace.c (_initialize_btrace): Add declaration.
5437 * charset.c (_initialize_charset): Add declaration.
5438 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
5439 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5440 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5441 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
5442 * cli/cli-script.c (_initialize_cli_script): Add declaration.
5443 * cli/cli-style.c (_initialize_cli_style): Add declaration.
5444 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
5445 * coffread.c (_initialize_coffread): Add declaration.
5446 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
5447 * compile/compile.c (_initialize_compile): Add declaration.
5448 * complaints.c (_initialize_complaints): Add declaration.
5449 * completer.c (_initialize_completer): Add declaration.
5450 * copying.c (_initialize_copying): Add declaration.
5451 * corefile.c (_initialize_core): Add declaration.
5452 * corelow.c (_initialize_corelow): Add declaration.
5453 * cp-abi.c (_initialize_cp_abi): Add declaration.
5454 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
5455 * cp-support.c (_initialize_cp_support): Add declaration.
5456 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
5457 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
5458 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
5459 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
5460 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
5461 * ctfread.c (_initialize_ctfread): Add declaration.
5462 * d-lang.c (_initialize_d_language): Add declaration.
5463 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
5464 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
5465 * dbxread.c (_initialize_dbxread): Add declaration.
5466 * dcache.c (_initialize_dcache): Add declaration.
5467 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
5468 * disasm.c (_initialize_disasm): Add declaration.
5469 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
5470 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
5471 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
5472 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
5473 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
5474 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
5475 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
5476 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
5477 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
5478 * elfread.c (_initialize_elfread): Add declaration.
5479 * exec.c (_initialize_exec): Add declaration.
5480 * extension.c (_initialize_extension): Add declaration.
5481 * f-lang.c (_initialize_f_language): Add declaration.
5482 * f-valprint.c (_initialize_f_valprint): Add declaration.
5483 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
5484 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
5485 * filesystem.c (_initialize_filesystem): Add declaration.
5486 * findcmd.c (_initialize_mem_search): Add declaration.
5487 * findvar.c (_initialize_findvar): Add declaration.
5488 * fork-child.c (_initialize_fork_child): Add declaration.
5489 * frame-base.c (_initialize_frame_base): Add declaration.
5490 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5491 * frame.c (_initialize_frame): Add declaration.
5492 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
5493 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
5494 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
5495 * gcore.c (_initialize_gcore): Add declaration.
5496 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
5497 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
5498 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
5499 * gdbarch.c (_initialize_gdbarch): Add declaration.
5500 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
5501 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
5502 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
5503 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
5504 * go-lang.c (_initialize_go_language): Add declaration.
5505 * go32-nat.c (_initialize_go32_nat): Add declaration.
5506 * guile/guile.c (_initialize_guile): Add declaration.
5507 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5508 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
5509 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
5510 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
5511 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
5512 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
5513 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
5514 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
5515 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
5516 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
5517 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
5518 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
5519 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
5520 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
5521 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
5522 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
5523 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
5524 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
5525 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
5526 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
5527 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
5528 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
5529 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
5530 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
5531 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
5532 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
5533 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
5534 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
5535 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
5536 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
5537 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
5538 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
5539 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
5540 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
5541 * infcall.c (_initialize_infcall): Add declaration.
5542 * infcmd.c (_initialize_infcmd): Add declaration.
5543 * inflow.c (_initialize_inflow): Add declaration.
5544 * infrun.c (_initialize_infrun): Add declaration.
5545 * interps.c (_initialize_interpreter): Add declaration.
5546 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
5547 * jit.c (_initialize_jit): Add declaration.
5548 * language.c (_initialize_language): Add declaration.
5549 * linux-fork.c (_initialize_linux_fork): Add declaration.
5550 * linux-nat.c (_initialize_linux_nat): Add declaration.
5551 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
5552 * linux-thread-db.c (_initialize_thread_db): Add declaration.
5553 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
5554 * m2-lang.c (_initialize_m2_language): Add declaration.
5555 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
5556 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
5557 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
5558 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
5559 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5560 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
5561 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
5562 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
5563 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
5564 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5565 * machoread.c (_initialize_machoread): Add declaration.
5566 * macrocmd.c (_initialize_macrocmd): Add declaration.
5567 * macroscope.c (_initialize_macroscope): Add declaration.
5568 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
5569 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
5570 * maint.c (_initialize_maint_cmds): Add declaration.
5571 * mdebugread.c (_initialize_mdebugread): Add declaration.
5572 * memattr.c (_initialize_mem): Add declaration.
5573 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
5574 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
5575 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
5576 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
5577 * mi/mi-main.c (_initialize_mi_main): Add declaration.
5578 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
5579 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
5580 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
5581 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
5582 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
5583 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
5584 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
5585 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
5586 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
5587 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5588 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
5589 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
5590 * mipsread.c (_initialize_mipsread): Add declaration.
5591 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
5592 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
5593 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
5594 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
5595 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
5596 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
5597 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
5598 * nto-procfs.c (_initialize_procfs): Add declaration.
5599 * objc-lang.c (_initialize_objc_language): Add declaration.
5600 * observable.c (_initialize_observer): Add declaration.
5601 * opencl-lang.c (_initialize_opencl_language): Add declaration.
5602 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
5603 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
5604 * osabi.c (_initialize_gdb_osabi): Add declaration.
5605 * osdata.c (_initialize_osdata): Add declaration.
5606 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5607 * parse.c (_initialize_parse): Add declaration.
5608 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
5609 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
5610 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
5611 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
5612 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
5613 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
5614 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
5615 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
5616 * printcmd.c (_initialize_printcmd): Add declaration.
5617 * probe.c (_initialize_probe): Add declaration.
5618 * proc-api.c (_initialize_proc_api): Add declaration.
5619 * proc-events.c (_initialize_proc_events): Add declaration.
5620 * proc-service.c (_initialize_proc_service): Add declaration.
5621 * procfs.c (_initialize_procfs): Add declaration.
5622 * producer.c (_initialize_producer): Add declaration.
5623 * psymtab.c (_initialize_psymtab): Add declaration.
5624 * python/python.c (_initialize_python): Add declaration.
5625 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
5626 * record-btrace.c (_initialize_record_btrace): Add declaration.
5627 * record-full.c (_initialize_record_full): Add declaration.
5628 * record.c (_initialize_record): Add declaration.
5629 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
5630 * regcache.c (_initialize_regcache): Add declaration.
5631 * reggroups.c (_initialize_reggroup): Add declaration.
5632 * remote-notif.c (_initialize_notif): Add declaration.
5633 * remote-sim.c (_initialize_remote_sim): Add declaration.
5634 * remote.c (_initialize_remote): Add declaration.
5635 * reverse.c (_initialize_reverse): Add declaration.
5636 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
5637 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
5638 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
5639 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
5640 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
5641 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
5642 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
5643 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
5644 Add declaration.
5645 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
5646 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
5647 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
5648 * rust-exp.y (_initialize_rust_exp): Add declaration.
5649 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
5650 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
5651 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
5652 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
5653 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
5654 * score-tdep.c (_initialize_score_tdep): Add declaration.
5655 * ser-go32.c (_initialize_ser_dos): Add declaration.
5656 * ser-mingw.c (_initialize_ser_windows): Add declaration.
5657 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
5658 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
5659 * ser-uds.c (_initialize_ser_socket): Add declaration.
5660 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
5661 * serial.c (_initialize_serial): Add declaration.
5662 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
5663 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
5664 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
5665 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
5666 * skip.c (_initialize_step_skip): Add declaration.
5667 * sol-thread.c (_initialize_sol_thread): Add declaration.
5668 * solib-aix.c (_initialize_solib_aix): Add declaration.
5669 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
5670 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
5671 * solib-frv.c (_initialize_frv_solib): Add declaration.
5672 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5673 * solib-target.c (_initialize_solib_target): Add declaration.
5674 * solib.c (_initialize_solib): Add declaration.
5675 * source-cache.c (_initialize_source_cache): Add declaration.
5676 * source.c (_initialize_source): Add declaration.
5677 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
5678 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
5679 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
5680 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
5681 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
5682 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
5683 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
5684 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
5685 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
5686 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
5687 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
5688 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
5689 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
5690 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
5691 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
5692 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
5693 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
5694 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
5695 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
5696 * stabsread.c (_initialize_stabsread): Add declaration.
5697 * stack.c (_initialize_stack): Add declaration.
5698 * stap-probe.c (_initialize_stap_probe): Add declaration.
5699 * std-regs.c (_initialize_frame_reg): Add declaration.
5700 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
5701 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
5702 * symfile.c (_initialize_symfile): Add declaration.
5703 * symmisc.c (_initialize_symmisc): Add declaration.
5704 * symtab.c (_initialize_symtab): Add declaration.
5705 * target.c (_initialize_target): Add declaration.
5706 * target-connection.c (_initialize_target_connection): Add
5707 declaration.
5708 * target-dcache.c (_initialize_target_dcache): Add declaration.
5709 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
5710 * thread.c (_initialize_thread): Add declaration.
5711 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
5712 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
5713 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
5714 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
5715 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
5716 * tracectf.c (_initialize_ctf): Add declaration.
5717 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
5718 * tracefile.c (_initialize_tracefile): Add declaration.
5719 * tracepoint.c (_initialize_tracepoint): Add declaration.
5720 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
5721 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
5722 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
5723 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
5724 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
5725 * tui/tui-win.c (_initialize_tui_win): Add declaration.
5726 * tui/tui.c (_initialize_tui): Add declaration.
5727 * typeprint.c (_initialize_typeprint): Add declaration.
5728 * ui-style.c (_initialize_ui_style): Add declaration.
5729 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
5730 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
5731 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
5732 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
5733 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
5734 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
5735 * unittests/filtered_iterator-selftests.c
5736 (_initialize_filtered_iterator_selftests): Add declaration.
5737 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
5738 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
5739 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
5740 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
5741 * unittests/main-thread-selftests.c
5742 (_initialize_main_thread_selftests): Add declaration.
5743 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
5744 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
5745 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
5746 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
5747 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
5748 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
5749 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
5750 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
5751 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
5752 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
5753 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
5754 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
5755 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
5756 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
5757 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
5758 declaration.
5759 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
5760 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
5761 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
5762 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
5763 * user-regs.c (_initialize_user_regs): Add declaration.
5764 * utils.c (_initialize_utils): Add declaration.
5765 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
5766 * valops.c (_initialize_valops): Add declaration.
5767 * valprint.c (_initialize_valprint): Add declaration.
5768 * value.c (_initialize_values): Add declaration.
5769 * varobj.c (_initialize_varobj): Add declaration.
5770 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
5771 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
5772 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5773 * windows-nat.c (_initialize_windows_nat): Add declaration.
5774 (_initialize_check_for_gdb_ini): Add declaration.
5775 (_initialize_loadable): Add declaration.
5776 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
5777 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
5778 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
5779 * xcoffread.c (_initialize_xcoffread): Add declaration.
5780 * xml-support.c (_initialize_xml_support): Add declaration.
5781 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
5782 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
5783 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
5784 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
5785
e2de1eec
SM
57862020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5787
5788 * regformats/regdat.sh: Generate declaration for init function.
5789
e0037b4c
SM
57902020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5791
5792 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
5793 up.
5794 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
5795 close_one_inferior>: New methods.
5796 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
5797 pass down target to find_inferior_pid.
5798 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
5799 Pass down target to find_inferior_ptid.
5800 (gdbsim_target::create_inferior): Pass down target to
5801 add_thread_silent.
5802 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
5803 target down to find_inferior_ptid and switch_to_thread.
5804 (gdbsim_target::close): Update to call close_one_inferior.
5805 (struct resume_data): Remove.
5806 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
5807 directly, rather than through a void pointer.
5808 (gdbsim_target::resume): Update to call resume_one_inferior.
5809
58920b5b
SM
58102020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5811
5812 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
5813
4ec89149
PA
58142020-01-12 Pedro Alves <palves@redhat.com>
5815
5816 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
5817 directly for the current inferior instead of
5818 discard_all_inferiors.
5819 (discard_all_inferiors): Delete.
5820
7c392d1d
TT
58212020-01-11 Tom Tromey <tom@tromey.com>
5822
5823 * tui/tui-wingeneral.c (box_win): Check cli_styling.
5824 * tui/tui-winsource.c (tui_source_window_base::refill): Use
5825 deprecated_safe_get_selected_frame.
5826
d9ebdab7
TBA
58272020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5828
5829 * inferior.c (print_inferior): Switch inferior before printing it.
5830
f3c469b9
PA
58312020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
5832 Pedro Alves <palves@redhat.com>
5833
5834 * progspace-and-thread.c (switch_to_program_space_and_thread):
5835 Assert there's an inferior for PSPACE. Use
5836 switch_to_inferior_no_thread to switch the inferior too.
5837 * progspace.c (program_space::~program_space): Call
5838 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
5839 (program_space::free_all_objfiles): Don't call clear_symtab_users
5840 here.
5841 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
5842
65c574f6
PA
58432020-01-10 Pedro Alves <palves@redhat.com>
5844
5845 * NEWS: Mention multi-target debugging, "info connections", and
5846 "add-inferior -no-connection".
5847
2f4fcf00
PA
58482020-01-10 Pedro Alves <palves@redhat.com>
5849
5850 * infrun.c: Include "target-connection.h".
5851 (check_multi_target_resumption): New.
5852 (proceed): Call it.
5853 * target-connection.c (make_target_connection_string): Make
5854 extern.
5855 * target-connection.h (make_target_connection_string): Declare.
5856
121b3efd
PA
58572020-01-10 Pedro Alves <palves@redhat.com>
5858
5859 * Makefile.in (COMMON_SFILES): Add target-connection.c.
5860 * inferior.c (uiout_field_connection): New function.
5861 (print_inferior): Add new "connection-id" column.
5862 (add_inferior_command): Show connection number/string of added
5863 inferior.
5864 * process-stratum-target.h
5865 (process_stratum_target::connection_string): New virtual method.
5866 (process_stratum_target::connection_number): New field.
5867 * remote.c (remote_target::connection_string): New override.
5868 * target-connection.c: New file.
5869 * target-connection.h: New file.
5870 * target.c (decref_target): Remove process_stratum targets from
5871 the connection list.
5872 (target_stack::push): Add process_stratum targets to the
5873 connection list.
5874
4f837581
PA
58752020-01-10 Pedro Alves <palves@redhat.com>
5876
5877 Revert:
5878 2016-04-12 Pedro Alves <palves@redhat.com>
5879 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
5880 Remove references to name.
5881 * serial.h (struct serial) <name>: Delete.
5882
f4ec508e
PA
58832020-01-10 Pedro Alves <palves@redhat.com>
5884
5885 * gdbarch-selftests.c (register_to_value_test): Remove "target
5886 already pushed" check.
5887
5b6d1e4f
PA
58882020-01-10 Pedro Alves <palves@redhat.com>
5889 John Baldwin <jhb@FreeBSD.org>
5890
5891 * aarch64-linux-nat.c
5892 (aarch64_linux_nat_target::thread_architecture): Adjust.
5893 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
5894 (task_command_1): Likewise.
5895 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
5896 (aix_thread_target::wait, aix_thread_target::fetch_registers)
5897 (aix_thread_target::store_registers)
5898 (aix_thread_target::thread_alive): Adjust.
5899 * amd64-fbsd-tdep.c: Include "inferior.h".
5900 (amd64fbsd_get_thread_local_address): Pass down target.
5901 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
5902 thread's gdbarch instead of target_gdbarch.
5903 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
5904 get_last_target_status.
5905 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
5906 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
5907 inferiors.
5908 (update_inserted_breakpoint_locations): Skip if inferiors with no
5909 execution.
5910 (update_global_location_list): When handling moribund locations,
5911 find representative inferior for location's pspace, and use thread
5912 count of its process_stratum target.
5913 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
5914 * bsd-uthread.c (bsd_uthread_target::wait): Use
5915 as_process_stratum_target and adjust thread_change_ptid and
5916 add_thread calls.
5917 (bsd_uthread_target::update_thread_list): Use
5918 as_process_stratum_target and adjust find_thread_ptid,
5919 thread_change_ptid and add_thread calls.
5920 * btrace.c (maint_btrace_packet_history_cmd): Adjust
5921 find_thread_ptid call.
5922 * corelow.c (add_to_thread_list): Adjust add_thread call.
5923 (core_target_open): Adjust add_thread_silent and thread_count
5924 calls.
5925 (core_target::pid_to_str): Adjust find_inferior_ptid call.
5926 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
5927 * event-top.c (async_disconnect): Pop targets from all inferiors.
5928 * exec.c (add_target_sections): Push exec target on all inferiors
5929 sharing the program space.
5930 (remove_target_sections): Remove the exec target from all
5931 inferiors sharing the program space.
5932 (exec_on_vfork): New.
5933 * exec.h (exec_on_vfork): Declare.
5934 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
5935 Pass it down.
5936 (fbsd_nat_target::update_thread_list): Adjust.
5937 (fbsd_nat_target::resume): Adjust.
5938 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
5939 down.
5940 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
5941 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
5942 get_thread_arch_regcache call.
5943 * fork-child.c (gdb_startup_inferior): Pass target down to
5944 startup_inferior and set_executing.
5945 * gdbthread.h (struct process_stratum_target): Forward declare.
5946 (add_thread, add_thread_silent, add_thread_with_info)
5947 (in_thread_list): Add process_stratum_target parameter.
5948 (find_thread_ptid(inferior*, ptid_t)): New overload.
5949 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
5950 parameter.
5951 (all_threads()): Delete overload.
5952 (all_threads, all_non_exited_threads): Add process_stratum_target
5953 parameter.
5954 (all_threads_safe): Use brace initialization.
5955 (thread_count): Add process_stratum_target parameter.
5956 (set_resumed, set_running, set_stop_requested, set_executing)
5957 (threads_are_executing, finish_thread_state): Add
5958 process_stratum_target parameter.
5959 (switch_to_thread): Use is_current_thread.
5960 * i386-fbsd-tdep.c: Include "inferior.h".
5961 (i386fbsd_get_thread_local_address): Pass down target.
5962 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
5963 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
5964 have_inferiors check.
5965 * inf-ptrace.c (inf_ptrace_target::create_inferior)
5966 (inf_ptrace_target::attach): Adjust.
5967 * infcall.c (run_inferior_call): Adjust.
5968 * infcmd.c (run_command_1): Pass target to
5969 scoped_finish_thread_state.
5970 (proceed_thread_callback): Skip inferiors with no execution.
5971 (continue_command): Rename 'all_threads' local to avoid hiding
5972 'all_threads' function. Adjust get_last_target_status call.
5973 (prepare_one_step): Adjust set_running call.
5974 (signal_command): Use user_visible_resume_target. Compare thread
5975 pointers instead of inferior_ptid.
5976 (info_program_command): Adjust to pass down target.
5977 (attach_command): Mark target's 'thread_executing' flag.
5978 (stop_current_target_threads_ns): New, factored out from ...
5979 (interrupt_target_1): ... this. Switch inferior before making
5980 target calls.
5981 * inferior-iter.h
5982 (struct all_inferiors_iterator, struct all_inferiors_range)
5983 (struct all_inferiors_safe_range)
5984 (struct all_non_exited_inferiors_range): Filter on
5985 process_stratum_target too. Remove explicit.
5986 * inferior.c (inferior::inferior): Push dummy target on target
5987 stack.
5988 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
5989 Add process_stratum_target parameter, and pass it down.
5990 (have_live_inferiors): Adjust.
5991 (switch_to_inferior_and_push_target): New.
5992 (add_inferior_command, clone_inferior_command): Handle
5993 "-no-connection" parameter. Use
5994 switch_to_inferior_and_push_target.
5995 (_initialize_inferior): Mention "-no-connection" option in
5996 the help of "add-inferior" and "clone-inferior" commands.
5997 * inferior.h: Include "process-stratum-target.h".
5998 (interrupt_target_1): Use bool.
5999 (struct inferior) <push_target, unpush_target, target_is_pushed,
6000 find_target_beneath, top_target, process_target, target_at,
6001 m_stack>: New.
6002 (discard_all_inferiors): Delete.
6003 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
6004 (all_inferiors, all_non_exited_inferiors): Add
6005 process_stratum_target parameter.
6006 * infrun.c: Include "gdb_select.h" and <unordered_map>.
6007 (target_last_proc_target): New global.
6008 (follow_fork_inferior): Push target on new inferior. Pass target
6009 to add_thread_silent. Call exec_on_vfork. Handle target's
6010 reference count.
6011 (follow_fork): Adjust get_last_target_status call. Also consider
6012 target.
6013 (follow_exec): Push target on new inferior.
6014 (struct execution_control_state) <target>: New field.
6015 (user_visible_resume_target): New.
6016 (do_target_resume): Call target_async.
6017 (resume_1): Set target's threads_executing flag. Consider resume
6018 target.
6019 (commit_resume_all_targets): New.
6020 (proceed): Also consider resume target. Skip threads of inferiors
6021 with no execution. Commit resumtion in all targets.
6022 (start_remote): Pass current inferior to wait_for_inferior.
6023 (infrun_thread_stop_requested): Consider target as well. Pass
6024 thread_info pointer to clear_inline_frame_state instead of ptid.
6025 (infrun_thread_thread_exit): Consider target as well.
6026 (random_pending_event_thread): New inferior parameter. Use it.
6027 (do_target_wait): Rename to ...
6028 (do_target_wait_1): ... this. Add inferior parameter, and pass it
6029 down.
6030 (threads_are_resumed_pending_p, do_target_wait): New.
6031 (prepare_for_detach): Adjust calls.
6032 (wait_for_inferior): New inferior parameter. Handle it. Use
6033 do_target_wait_1 instead of do_target_wait.
6034 (fetch_inferior_event): Adjust. Switch to representative
6035 inferior. Pass target down.
6036 (set_last_target_status): Add process_stratum_target parameter.
6037 Save target in global.
6038 (get_last_target_status): Add process_stratum_target parameter and
6039 handle it.
6040 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
6041 (context_switch): Check inferior_ptid == null_ptid before calling
6042 inferior_thread().
6043 (get_inferior_stop_soon): Pass down target.
6044 (wait_one): Rename to ...
6045 (poll_one_curr_target): ... this.
6046 (struct wait_one_event): New.
6047 (wait_one): New.
6048 (stop_all_threads): Adjust.
6049 (handle_no_resumed, handle_inferior_event): Adjust to consider the
6050 event's target.
6051 (switch_back_to_stepped_thread): Also consider target.
6052 (print_stop_event): Update.
6053 (normal_stop): Update. Also consider the resume target.
6054 * infrun.h (wait_for_inferior): Remove declaration.
6055 (user_visible_resume_target): New declaration.
6056 (get_last_target_status, set_last_target_status): New
6057 process_stratum_target parameter.
6058 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
6059 process_stratum_target parameter, and use it.
6060 (clear_inline_frame_state (thread_info*)): New.
6061 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
6062 process_stratum_target parameter.
6063 (clear_inline_frame_state (thread_info*)): Declare.
6064 * linux-fork.c (delete_checkpoint_command): Pass target down to
6065 find_thread_ptid.
6066 (checkpoint_command): Adjust.
6067 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
6068 instead of just tweaking inferior_ptid.
6069 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
6070 (exit_lwp): Pass target down to find_thread_ptid.
6071 (attach_proc_task_lwp_callback): Pass target down to
6072 add_thread/set_running/set_executing.
6073 (linux_nat_target::attach): Pass target down to
6074 thread_change_ptid.
6075 (get_detach_signal): Pass target down to find_thread_ptid.
6076 Consider last target status's target.
6077 (linux_resume_one_lwp_throw, resume_lwp)
6078 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
6079 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
6080 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
6081 (linux_nat_target::async_wait_fd): New.
6082 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
6083 target down.
6084 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
6085 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
6086 * linux-thread-db.c (struct thread_db_info::process_target): New
6087 field.
6088 (add_thread_db_info): Save target.
6089 (get_thread_db_info): New process_stratum_target parameter. Also
6090 match target.
6091 (delete_thread_db_info): New process_stratum_target parameter.
6092 Also match target.
6093 (thread_from_lwp): Adjust to pass down target.
6094 (thread_db_notice_clone): Pass down target.
6095 (check_thread_db_callback): Pass down target.
6096 (try_thread_db_load_1): Always push the thread_db target.
6097 (try_thread_db_load, record_thread): Pass target down.
6098 (thread_db_target::detach): Pass target down. Always unpush the
6099 thread_db target.
6100 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
6101 target down. Always unpush the thread_db target.
6102 (find_new_threads_callback, thread_db_find_new_threads_2)
6103 (thread_db_target::update_thread_list): Pass target down.
6104 (thread_db_target::pid_to_str): Pass current inferior down.
6105 (thread_db_target::get_thread_local_address): Pass target down.
6106 (thread_db_target::resume, maintenance_check_libthread_db): Pass
6107 target down.
6108 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
6109 * procfs.c (procfs_target::procfs_init_inferior): Declare.
6110 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
6111 (procfs_init_inferior): Rename to ...
6112 (procfs_target::procfs_init_inferior): ... this and adjust.
6113 (procfs_target::create_inferior, procfs_notice_thread)
6114 (procfs_do_thread_registers): Adjust.
6115 * ppc-fbsd-tdep.c: Include "inferior.h".
6116 (ppcfbsd_get_thread_local_address): Pass down target.
6117 * proc-service.c (ps_xfer_memory): Switch current inferior and
6118 program space as well.
6119 (get_ps_regcache): Pass target down.
6120 * process-stratum-target.c
6121 (process_stratum_target::thread_address_space)
6122 (process_stratum_target::thread_architecture): Pass target down.
6123 * process-stratum-target.h
6124 (process_stratum_target::threads_executing): New field.
6125 (as_process_stratum_target): New.
6126 * ravenscar-thread.c
6127 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
6128 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
6129 down.
6130 * record-btrace.c (record_btrace_target::info_record): Adjust.
6131 (record_btrace_target::record_method)
6132 (record_btrace_target::record_is_replaying)
6133 (record_btrace_target::fetch_registers)
6134 (get_thread_current_frame_id, record_btrace_target::resume)
6135 (record_btrace_target::wait, record_btrace_target::stop): Pass
6136 target down.
6137 * record-full.c (record_full_wait_1): Switch to event thread.
6138 Pass target down.
6139 * regcache.c (regcache::regcache)
6140 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
6141 process_stratum_target parameter and handle it.
6142 (current_thread_target): New global.
6143 (get_thread_regcache): Add process_stratum_target parameter and
6144 handle it. Switch inferior before calling target method.
6145 (get_thread_regcache): Pass target down.
6146 (get_thread_regcache_for_ptid): Pass target down.
6147 (registers_changed_ptid): Add process_stratum_target parameter and
6148 handle it.
6149 (registers_changed_thread, registers_changed): Pass target down.
6150 (test_get_thread_arch_aspace_regcache): New.
6151 (current_regcache_test): Define a couple local test_target_ops
6152 instances and use them for testing.
6153 (readwrite_regcache): Pass process_stratum_target parameter.
6154 (cooked_read_test, cooked_write_test): Pass mock_target down.
6155 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
6156 (get_thread_arch_aspace_regcache): Add process_stratum_target
6157 parameter.
6158 (regcache::target): New method.
6159 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
6160 (regcache::registers_changed_ptid): Add process_stratum_target
6161 parameter.
6162 (regcache::m_target): New field.
6163 (registers_changed_ptid): Add process_stratum_target parameter.
6164 * remote.c (remote_state::supports_vCont_probed): New field.
6165 (remote_target::async_wait_fd): New method.
6166 (remote_unpush_and_throw): Add remote_target parameter.
6167 (get_current_remote_target): Adjust.
6168 (remote_target::remote_add_inferior): Push target.
6169 (remote_target::remote_add_thread)
6170 (remote_target::remote_notice_new_inferior)
6171 (get_remote_thread_info): Pass target down.
6172 (remote_target::update_thread_list): Skip threads of inferiors
6173 bound to other targets. (remote_target::close): Don't discard
6174 inferiors. (remote_target::add_current_inferior_and_thread)
6175 (remote_target::process_initial_stop_replies)
6176 (remote_target::start_remote)
6177 (remote_target::remote_serial_quit_handler): Pass down target.
6178 (remote_target::remote_unpush_target): New remote_target
6179 parameter. Unpush the target from all inferiors.
6180 (remote_target::remote_unpush_and_throw): New remote_target
6181 parameter. Pass it down.
6182 (remote_target::open_1): Check whether the current inferior has
6183 execution instead of checking whether any inferior is live. Pass
6184 target down.
6185 (remote_target::remote_detach_1): Pass down target. Use
6186 remote_unpush_target.
6187 (extended_remote_target::attach): Pass down target.
6188 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
6189 (remote_target::append_resumption): Pass down target.
6190 (remote_target::append_pending_thread_resumptions)
6191 (remote_target::remote_resume_with_hc, remote_target::resume)
6192 (remote_target::commit_resume): Pass down target.
6193 (remote_target::remote_stop_ns): Check supports_vCont_probed.
6194 (remote_target::interrupt_query)
6195 (remote_target::remove_new_fork_children)
6196 (remote_target::check_pending_events_prevent_wildcard_vcont)
6197 (remote_target::remote_parse_stop_reply)
6198 (remote_target::process_stop_reply): Pass down target.
6199 (first_remote_resumed_thread): New remote_target parameter. Pass
6200 it down.
6201 (remote_target::wait_as): Pass down target.
6202 (unpush_and_perror): New remote_target parameter. Pass it down.
6203 (remote_target::readchar, remote_target::remote_serial_write)
6204 (remote_target::getpkt_or_notif_sane_1)
6205 (remote_target::kill_new_fork_children, remote_target::kill): Pass
6206 down target.
6207 (remote_target::mourn_inferior): Pass down target. Use
6208 remote_unpush_target.
6209 (remote_target::core_of_thread)
6210 (remote_target::remote_btrace_maybe_reopen): Pass down target.
6211 (remote_target::pid_to_exec_file)
6212 (remote_target::thread_handle_to_thread_info): Pass down target.
6213 (remote_target::async_wait_fd): New.
6214 * riscv-fbsd-tdep.c: Include "inferior.h".
6215 (riscv_fbsd_get_thread_local_address): Pass down target.
6216 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
6217 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
6218 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
6219 Adjust.
6220 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
6221 * solib-svr4.c (enable_break): Pass down target.
6222 * spu-multiarch.c (parse_spufs_run): Pass down target.
6223 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
6224 * target-delegates.c: Regenerate.
6225 * target.c (g_target_stack): Delete.
6226 (current_top_target): Return the current inferior's top target.
6227 (target_has_execution_1): Refer to the passed-in inferior's top
6228 target.
6229 (target_supports_terminal_ours): Check whether the initial
6230 inferior was already created.
6231 (decref_target): New.
6232 (target_stack::push): Incref/decref the target.
6233 (push_target, push_target, unpush_target): Adjust.
6234 (target_stack::unpush): Defref target.
6235 (target_is_pushed): Return bool. Adjust to refer to the current
6236 inferior's target stack.
6237 (dispose_inferior): Delete, and inline parts ...
6238 (target_preopen): ... here. Only dispose of the current inferior.
6239 (target_detach): Hold strong target reference while detaching.
6240 Pass target down.
6241 (target_thread_name): Add assertion.
6242 (target_resume): Pass down target.
6243 (target_ops::beneath, find_target_at): Adjust to refer to the
6244 current inferior's target stack.
6245 (get_dummy_target): New.
6246 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
6247 has a thread running.
6248 (initialize_targets): Rename to ...
6249 (_initialize_target): ... this.
6250 * target.h: Include "gdbsupport/refcounted-object.h".
6251 (struct target_ops): Inherit refcounted_object.
6252 (target_ops::shortname, target_ops::longname): Make const.
6253 (target_ops::async_wait_fd): New method.
6254 (decref_target): Declare.
6255 (struct target_ops_ref_policy): New.
6256 (target_ops_ref): New typedef.
6257 (get_dummy_target): Declare function.
6258 (target_is_pushed): Return bool.
6259 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
6260 (all_matching_threads_iterator::all_matching_threads_iterator):
6261 Handle filter target.
6262 * thread-iter.h (struct all_matching_threads_iterator, struct
6263 all_matching_threads_range, class all_non_exited_threads_range):
6264 Filter by target too. Remove explicit.
6265 * thread.c (threads_executing): Delete.
6266 (inferior_thread): Pass down current inferior.
6267 (clear_thread_inferior_resources): Pass down thread pointer
6268 instead of ptid_t.
6269 (add_thread_silent, add_thread_with_info, add_thread): Add
6270 process_stratum_target parameter. Use it for thread and inferior
6271 searches.
6272 (is_current_thread): New.
6273 (thread_info::deletable): Use it.
6274 (find_thread_ptid, thread_count, in_thread_list)
6275 (thread_change_ptid, set_resumed, set_running): New
6276 process_stratum_target parameter. Pass it down.
6277 (set_executing): New process_stratum_target parameter. Pass it
6278 down. Adjust reference to 'threads_executing'.
6279 (threads_are_executing): New process_stratum_target parameter.
6280 Adjust reference to 'threads_executing'.
6281 (set_stop_requested, finish_thread_state): New
6282 process_stratum_target parameter. Pass it down.
6283 (switch_to_thread): Also match inferior.
6284 (switch_to_thread): New process_stratum_target parameter. Pass it
6285 down.
6286 (update_threads_executing): Reimplement.
6287 * top.c (quit_force): Pop targets from all inferior.
6288 (gdb_init): Don't call initialize_targets.
6289 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
6290 Declare.
6291 (windows_add_thread, windows_delete_thread): Adjust.
6292 (get_windows_debug_event): Rename to ...
6293 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
6294 * tracefile-tfile.c (tfile_target_open): Pass down target.
6295 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
6296 Forward declare.
6297 (switch_to_thread): Add process_stratum_target parameter.
6298 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
6299 parameter. Use it.
6300 (mi_on_resume): Pass target down.
6301 * nat/fork-inferior.c (startup_inferior): Add
6302 process_stratum_target parameter. Pass it down.
6303 * nat/fork-inferior.h (startup_inferior): Add
6304 process_stratum_target parameter.
6305 * python/py-threadevent.c (py_get_event_thread): Pass target down.
6306
75c6c844
PA
63072020-01-10 Pedro Alves <palves@redhat.com>
6308
6309 * remote.c (remote_target::start_remote): Don't set inferior_ptid
6310 directly. Instead find the first thread in the thread list and
6311 use switch_to_thread.
6312
78f2c40a
PA
63132020-01-10 Pedro Alves <palves@redhat.com>
6314
6315 * remote.c (remote_target::remote_add_inferior): Don't bind a
6316 process to the current inferior if the current inferior is already
6317 bound to a process.
6318
e7af6c70
TBA
63192020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6320 Pedro Alves <palves@redhat.com>
6321
6322 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
6323 If no process is specified, return null_ptid instead of
6324 inferior_ptid.
6325 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
6326 TARGET_WAITKIND_SIGNALLED with no pid.
6327
31ba933e
PA
63282020-01-10 Pedro Alves <palves@redhat.com>
6329
6330 * remote.c (first_remote_resumed_thread): New.
6331 (remote_target::wait_as): Use it as default event_ptid instead of
6332 inferior_ptid.
6333
735fc2ca
PA
63342020-01-10 Pedro Alves <palves@redhat.com>
6335
6336 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
6337
c17e02e1
PA
63382020-01-10 Pedro Alves <palves@redhat.com>
6339
6340 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
6341 not -1.
6342
ab1ddbcf
PA
63432020-01-10 Pedro Alves <palves@redhat.com>
6344
6345 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
6346 ptid to get_last_target_status.
6347 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
6348 ptid to get_last_target_status.
6349 * infcmd.c (continue_command): Don't pass a target_waitstatus to
6350 get_last_target_status.
6351 (info_program_command): Don't pass a target_waitstatus to
6352 get_last_target_status.
6353 * infrun.c (init_wait_for_inferior): Use
6354 nullify_last_target_wait_ptid.
6355 (get_last_target_status): Handle nullptr arguments.
6356 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
6357 (print_stop_event): Don't pass a ptid to get_last_target_status.
6358 (normal_stop): Don't pass a ptid to get_last_target_status.
6359 * infrun.h (get_last_target_status, set_last_target_status): Move
6360 comments here and update.
6361 (nullify_last_target_wait_ptid): Declare.
6362 * linux-fork.c (fork_load_infrun_state): Remove local extern
6363 declaration of nullify_last_target_wait_ptid.
6364 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
6365 to get_last_target_status.
6366
f3f8ece4
PA
63672020-01-10 Pedro Alves <palves@redhat.com>
6368
6369 * gdbthread.h (scoped_restore_current_thread)
6370 <dont_restore, restore, m_dont_restore>: Declare.
6371 * thread.c (thread_alive): Add assertion. Return bool.
6372 (switch_to_thread_if_alive): New.
6373 (prune_threads): Switch inferior/thread.
6374 (print_thread_info_1): Switch thread before calling target methods.
6375 (scoped_restore_current_thread::restore): New, factored out from
6376 ...
6377 (scoped_restore_current_thread::~scoped_restore_current_thread):
6378 ... this.
6379 (scoped_restore_current_thread::scoped_restore_current_thread):
6380 Add assertion.
6381 (thread_apply_all_command, thread_select): Use
6382 switch_to_thread_if_alive.
6383 * infrun.c (proceed, restart_threads, handle_signal_stop)
6384 (switch_back_to_stepped_thread): Switch current thread before
6385 calling target methods.
6386
db2d40f7
PA
63872020-01-10 Pedro Alves <palves@redhat.com>
6388
6389 * inferior.c (switch_to_inferior_no_thread): New function,
6390 factored out from ...
6391 (inferior_command): ... here.
6392 * inferior.h (switch_to_inferior_no_thread): Declare.
6393 * mi/mi-main.c (run_one_inferior): Use
6394 switch_to_inferior_no_thread.
6395
bd420a2d
PA
63962020-01-10 Pedro Alves <palves@redhat.com>
6397
6398 * infcmd.c (kill_command): Remove dead code.
6399
ddf5db90
PA
64002020-01-10 Pedro Alves <palves@redhat.com>
6401
6402 * remote.c (remote_target::mourn_inferior): No longer check
6403 whether the target is running.
6404
5018ce90
PA
64052020-01-10 Pedro Alves <palves@redhat.com>
6406
6407 * corelow.c (core_target::has_execution): Change parameter type to
6408 inferior pointer.
6409 * inferior.c (number_of_live_inferiors): Use
6410 inferior::has_execution instead of target_has_execution_1.
6411 * inferior.h (inferior::has_execution): New.
6412 * linux-thread-db.c (thread_db_target::update_thread_list): Use
6413 inferior::has_execution instead of target_has_execution_1.
6414 * process-stratum-target.c
6415 (process_stratum_target::has_execution): Change parameter type to
6416 inferior pointer. Check the inferior's PID instead of
6417 inferior_ptid.
6418 * process-stratum-target.h
6419 (process_stratum_target::has_execution): Change parameter type to
6420 inferior pointer.
6421 * record-full.c (record_full_core_target::has_execution): Change
6422 parameter type to inferior pointer.
6423 * target.c (target_has_execution_1): Change parameter type to
6424 inferior pointer.
6425 (target_has_execution_current): Adjust.
6426 * target.h (target_ops::has_execution): Change parameter type to
6427 inferior pointer.
6428 (target_has_execution_1): Change parameter type to inferior
6429 pointer. Change return type to bool.
6430 * tracefile.h (tracefile_target::has_execution): Change parameter
6431 type to inferior pointer.
6432
74375d18
PA
64332020-01-10 Pedro Alves <palves@redhat.com>
6434
6435 * exceptions.c (print_flush): Remove current_top_target() check.
6436
acdf84a6
PA
64372020-01-10 Pedro Alves <palves@redhat.com>
6438
6439 * remote.c (show_remote_exec_file): Show the current inferior's
6440 exec-file instead of the command variable's value.
6441
ec506636
PA
64422020-01-10 Pedro Alves <palves@redhat.com>
6443
6444 * record-full.c (record_full_resume_ptid): New global.
6445 (record_full_target::resume): Set it.
6446 (record_full_wait_1): Use record_full_resume_ptid instead of
6447 inferior_ptid.
6448
873657b9
PA
64492020-01-10 Pedro Alves <palves@redhat.com>
6450
6451 * gdbthread.h (scoped_restore_current_thread)
6452 <dont_restore, restore, m_dont_restore>: Declare.
6453 * thread.c (thread_alive): Add assertion. Return bool.
6454 (switch_to_thread_if_alive): New.
6455 (prune_threads): Switch inferior/thread.
6456 (print_thread_info_1): Switch thread before calling target methods.
6457 (scoped_restore_current_thread::restore): New, factored out from
6458 ...
6459 (scoped_restore_current_thread::~scoped_restore_current_thread):
6460 ... this.
6461 (scoped_restore_current_thread::scoped_restore_current_thread):
6462 Add assertion.
6463 (thread_apply_all_command, thread_select): Use
6464 switch_to_thread_if_alive.
6465
7f0ae84c
GB
64662020-01-10 George Barrett <bob@bob131.so>
6467
6468 * stap-probe.c (stap_modify_semaphore): Don't check for null
6469 semaphores.
6470 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
6471 for null semaphores.
6472
f5a7c406
AB
64732020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6474
6475 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
6476 all source windows, and maintain horizontal scroll status while
6477 doing so.
6478
9ae6bf64
TT
64792020-01-09 Tom Tromey <tom@tromey.com>
6480
6481 PR tui/18932:
6482 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
6483 update_source_window, not print_source_lines.
6484
b2efe70c
AB
64852020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6486
6487 * tui/tui.c (tui_enable): Register tui hooks after calling
6488 tui_display_main.
6489
5f23a082
CB
64902020-01-09 Christian Biesinger <cbiesinger@google.com>
6491
6492 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
6493
3061113b
SM
64942020-01-08 Simon Marchi <simon.marchi@efficios.com>
6495
6496 * thread.c (print_thread_info_1): Fix indentation.
6497
57d75002
CB
64982020-01-09 Christian Biesinger <cbiesinger@google.com>
6499
6500 * symtab.c (general_symbol_info::compute_and_set_names): Move the
6501 unique_xmalloc_ptr outside the if to always free the demangled name.
6502
6a053cb1
TT
65032020-01-08 Tom Tromey <tromey@adacore.com>
6504
6505 * xcoffread.c (enter_line_range, read_xcoff_symtab)
6506 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
6507 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
6508 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
6509 Remove.
6510 (section_offsets): New typedef.
6511 * symtab.c (fixup_section, get_msymbol_address): Update.
6512 * symmisc.c (dump_msymbols): Update.
6513 * symfile.h (relative_addr_info_to_section_offsets)
6514 (symfile_map_offsets_to_segments): Update.
6515 * symfile.c (build_section_addr_info_from_objfile)
6516 (init_objfile_sect_indices): Update.
6517 (struct place_section_arg): Change type of "offsets".
6518 (place_section): Update.
6519 (relative_addr_info_to_section_offsets): Change type of
6520 "section_offsets". Remove "num_sections" parameter.
6521 (default_symfile_offsets, syms_from_objfile_1)
6522 (set_objfile_default_section_offset): Update.
6523 (reread_symbols): No need to preserve section offsets by hand.
6524 (symfile_map_offsets_to_segments): Change type of "offsets".
6525 * stap-probe.c (relocate_address): Update.
6526 * stabsread.h (process_one_symbol): Update.
6527 * solib-target.c (struct lm_info_target) <offsets>: Change type.
6528 (solib_target_relocate_section_addresses): Update.
6529 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
6530 Update.
6531 * solib-frv.c (frv_relocate_main_executable): Update.
6532 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6533 * solib-aix.c (solib_aix_get_section_offsets): Change return
6534 type.
6535 (solib_aix_solib_create_inferior_hook): Update.
6536 * remote.c (remote_target::get_offsets): Update.
6537 * psymtab.c (find_pc_sect_psymtab): Update.
6538 * psympriv.h (struct partial_symbol) <address, text_low,
6539 text_high>: Update.
6540 * objfiles.h (obj_section_offset): Update.
6541 (struct objfile) <section_offsets>: Change type.
6542 <num_sections>: Remove.
6543 (objfile_relocate): Update.
6544 * objfiles.c (entry_point_address_query): Update
6545 (relocate_one_symbol): Change type of "section_offsets".
6546 (objfile_relocate1, objfile_relocate1): Change type of
6547 "new_offsets".
6548 (objfile_rebase1): Update.
6549 * mipsread.c (mipscoff_symfile_read): Update.
6550 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
6551 parameter.
6552 * mdebugread.c (parse_symbol): Change type of "section_offsets".
6553 (parse_external, psymtab_to_symtab_1): Update.
6554 * machoread.c (macho_symfile_offsets): Update.
6555 * ia64-tdep.c (ia64_find_unwind_table): Update.
6556 * hppa-tdep.c (read_unwind_info): Update.
6557 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
6558 * dwarf2read.c (create_addrmap_from_index)
6559 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6560 (process_psymtab_comp_unit_reader, add_partial_symbol)
6561 (add_partial_subprogram, process_full_comp_unit)
6562 (read_file_scope, read_func_scope, read_lexical_block_scope)
6563 (read_call_site_scope, dwarf2_rnglists_process)
6564 (dwarf2_ranges_process, dwarf2_ranges_read)
6565 (dwarf_decode_lines_1, var_decode_location, new_symbol)
6566 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
6567 Update.
6568 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
6569 Update.
6570 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
6571 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
6572 (process_one_symbol): Change type of "section_offsets".
6573 * ctfread.c (get_objfile_text_range): Update.
6574 * coffread.c (coff_symtab_read, enter_linenos)
6575 (process_coff_symbol): Update.
6576 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6577 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
6578
456e800a
TT
65792020-01-08 Tom Tromey <tromey@adacore.com>
6580
6581 * dwarf2read.c (parse_macro_definition): Use std::string.
6582 (parse_macro_definition): Likewise.
6583
6dfa2fc2
TT
65842020-01-08 Tom Tromey <tromey@adacore.com>
6585
6586 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
6587 (ATTR_ALLOC_CHUNK): Remove.
6588
421d1616
TT
65892020-01-08 Tom Tromey <tromey@adacore.com>
6590
6591 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
6592
43816ebc
TT
65932020-01-08 Tom Tromey <tromey@adacore.com>
6594
6595 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
6596 (dwarf2_compute_name, open_dwo_file): Likewise.
6597 (process_enumeration_scope): Use std::vector.
6598 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
6599 (partial_die_info::fixup, dwarf2_start_subfile)
6600 (guess_full_die_structure_name, dwarf2_name): Likewise.
6601 (determine_prefix): Update.
6602 (guess_full_die_structure_name): Make return type const.
6603 (partial_die_full_name): Return unique_xmalloc_ptr.
6604 (DW_FIELD_ALLOC_CHUNK): Remove.
6605
4212d509
TT
66062020-01-07 Tom Tromey <tromey@adacore.com>
6607
6608 PR build/24937:
6609 * stap-probe.c (class stap_static_probe_ops): Add constructor.
6610
06a6207a
JT
66112020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
6612
6613 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
6614
153d79c4
AB
66152020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
6616
6617 * stack.c (print_frame_info): Move disassemble_next_line code
6618 inside source_print block.
6619
66182876
EZ
66202020-01-06 Eli Zaretskii <eliz@gnu.org>
6621
6622 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
6623 gdb/signals.h, as we are now using native signal symbols.
6624
cbfa8581
SV
66252020-01-06 Shahab Vahedi <shahab@synopsys.com>
6626
6627 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
6628 overflow by an early check of content vs threshold.
aac66a4c 6629 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
6630 Likewise.
6631
3f602821
EZ
66322020-01-06 Eli Zaretskii <eliz@gnu.org>
6633
6634 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
6635
a08c904d
JT
66362020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
6637
6638 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
6639 export table if no section contains it's RVA.
6640
89a65580
EZ
66412020-01-06 Eli Zaretskii <eliz@gnu.org>
6642
6643 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
6644
8b7fcda2
HD
66452020-01-06 Hannes Domani <ssbssa@yahoo.de>
6646
6647 * source.c (print_source_lines_base): Set last_line_listed.
6648
a61b4f69
SV
66492020-01-06 Shahab Vahedi <shahab@synopsys.com>
6650
6651 * tui/tui-disasm.c: Remove trailing spaces.
6652
559e7e50
EZ
66532020-01-06 Eli Zaretskii <eliz@gnu.org>
6654 Pedro Alves <palves@redhat.com>
6655
6656 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
6657 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
6658 (windows_gdb_signal_to_target): New function, uses the above
6659 enumeration to convert GDB internal signal codes to equivalent
6660 Windows codes.
6661 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
6662 * windows-nat.c: Include "gdb_wait.h".
6663 (get_windows_debug_event): Extract the fatal exception from the
6664 exit status and convert to the equivalent Posix signal number.
6665 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
6666 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
6667 * gdbsupport/gdb_wait.c: New file, implements
6668 windows_status_to_termsig.
6669 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
6670 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
6671
f2302a34
AB
66722020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
6673
6674 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
6675 show_layout.
6676
6a5206eb
LM
66772020-01-05 Luis Machado <luis.machado@linaro.org>
6678
6679 * aarch64-linux-nat.c
6680 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
6681 and bfd_mach_aarch64.
6682
6ec1d75e
PW
66832020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6684
6685 * ui-file.c (stdio_file::can_emit_style_escape)
6686 (tee_file::can_emit_style_escape): Ensure style is used also on
6687 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
6688 to gdb_stdout.
6689 * main.c (set_gdb_data_directory): Use file style to output the
6690 warning that the given pathname is not a directory.
6691 * top.c (show_history_filename, gdb_safe_append_history)
6692 (show_gdb_datadir): Use file style.
6693
44f81a76
HD
66942020-01-03 Hannes Domani <ssbssa@yahoo.de>
6695
6696 * solib-target.c (struct lm_info_target):
6697 Change offsets to be a unique_xmalloc_ptr.
6698 (solib_target_relocate_section_addresses): Update.
6699
25057eb0
HD
67002020-01-03 Hannes Domani <ssbssa@yahoo.de>
6701
6702 * windows-nat.c (windows_clear_solib): Free so_list linked list.
6703
6e2118f5
BE
67042020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
6705
6706 * MAINTAINERS (Write After Approval): Add myself.
6707
8133c7dc
LM
67082020-01-02 Luis Machado <luis.machado@linaro.org>
6709
6710 * proc-service.c (get_ps_regcache): Remove reference to obsolete
6711 Cell BE architecture.
6712 * target.h (struct target_ops) <thread_architecture>: Likewise.
6713
48189bec
HD
67142020-01-01 Hannes Domani <ssbssa@yahoo.de>
6715
6716 * Makefile.in: Use INSTALL_PROGRAM_ENV.
6717
ead1063b
HD
67182020-01-01 Hannes Domani <ssbssa@yahoo.de>
6719
6720 * MAINTAINERS (Write After Approval): Add myself.
6721
e5d78223
JB
67222020-01-01 Joel Brobecker <brobecker@adacore.com>
6723
6724 * gdbarch.sh: Update copyright year range of generated files.
6725
b811d2c2
JB
67262020-01-01 Joel Brobecker <brobecker@adacore.com>
6727
6728 Update copyright year range in all GDB files.
6729
5f4def5c
JB
67302020-01-01 Joel Brobecker <brobecker@adacore.com>
6731
6732 * copyright.py: Convert to Python 3.
6733
51fd4002
JB
67342020-01-01 Joel Brobecker <brobecker@adacore.com>
6735
6736 * copyright.py: Adapt after move of gnulib directory from gdb
6737 directory to toplevel directory.
6738
5fb651f2
JB
67392020-01-01 Joel Brobecker <brobecker@adacore.com>
6740
6741 * copyright.py (main): Exit if run from the wrong directory.
6742
5dd8bf88
JB
67432020-01-01 Joel Brobecker <brobecker@adacore.com>
6744
6745 * top.c (print_gdb_version): Change copyright year to 2020.
6746
9f71dacb 67472020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 6748
9f71dacb 6749 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 6750
9f71dacb 6751For older changes see ChangeLog-2019.
c906108c
SS
6752\f
6753Local Variables:
6754mode: change-log
6755left-margin: 8
6756fill-column: 74
6757version-control: never
57da7796 6758coding: utf-8
c906108c 6759End: