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