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