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