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