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