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