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