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