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