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