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